Update version number to 2.32.90 for pre-release on 2.33 branch.
[external/binutils.git] / binutils / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for binutils 2.32.90.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
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 as_myself=
91 case $0 in #((
92   *[\\/]* ) as_myself=$0 ;;
93   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96   IFS=$as_save_IFS
97   test -z "$as_dir" && as_dir=.
98     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99   done
100 IFS=$as_save_IFS
101
102      ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107   as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111   exit 1
112 fi
113
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there.  '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135 # Use a proper internal environment variable to ensure we don't fall
136   # into an infinite loop, continuously re-executing ourselves.
137   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138     _as_can_reexec=no; export _as_can_reexec;
139     # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147   *v*x* | *x*v* ) as_opts=-vx ;;
148   *v* ) as_opts=-v ;;
149   *x* ) as_opts=-x ;;
150   * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
157   fi
158   # We don't want this to propagate to other subprocesses.
159           { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162   emulate sh
163   NULLCMD=:
164   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165   # is contrary to our usage.  Disable this feature.
166   alias -g '\${1+\"\$@\"}'='\"\$@\"'
167   setopt NO_GLOB_SUBST
168 else
169   case \`(set -o) 2>/dev/null\` in #(
170   *posix*) :
171     set -o posix ;; #(
172   *) :
173      ;;
174 esac
175 fi
176 "
177   as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
182
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190 else
191   exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1
200
201   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205     PATH=/empty FPATH=/empty; export PATH FPATH
206     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
207       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
208   if (eval "$as_required") 2>/dev/null; then :
209   as_have_required=yes
210 else
211   as_have_required=no
212 fi
213   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215 else
216   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217 as_found=false
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219 do
220   IFS=$as_save_IFS
221   test -z "$as_dir" && as_dir=.
222   as_found=:
223   case $as_dir in #(
224          /*)
225            for as_base in sh bash ksh sh5; do
226              # Try only shells that exist, to save several forks.
227              as_shell=$as_dir/$as_base
228              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230   CONFIG_SHELL=$as_shell as_have_required=yes
231                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232   break 2
233 fi
234 fi
235            done;;
236        esac
237   as_found=false
238 done
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241   CONFIG_SHELL=$SHELL as_have_required=yes
242 fi; }
243 IFS=$as_save_IFS
244
245
246       if test "x$CONFIG_SHELL" != x; then :
247   export CONFIG_SHELL
248              # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
252 BASH_ENV=/dev/null
253 ENV=/dev/null
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255 case $- in # ((((
256   *v*x* | *x*v* ) as_opts=-vx ;;
257   *v* ) as_opts=-v ;;
258   *x* ) as_opts=-x ;;
259   * ) as_opts= ;;
260 esac
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265 exit 255
266 fi
267
268     if test x$as_have_required = xno; then :
269   $as_echo "$0: This script requires a shell more modern than all"
270   $as_echo "$0: the shells that I found on your system."
271   if test x${ZSH_VERSION+set} = xset ; then
272     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274   else
275     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
279   fi
280   exit 1
281 fi
282 fi
283 fi
284 SHELL=${CONFIG_SHELL-/bin/sh}
285 export SHELL
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
289
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
293 # as_fn_unset VAR
294 # ---------------
295 # Portably unset VAR.
296 as_fn_unset ()
297 {
298   { eval $1=; unset $1;}
299 }
300 as_unset=as_fn_unset
301
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
305 as_fn_set_status ()
306 {
307   return $1
308 } # as_fn_set_status
309
310 # as_fn_exit STATUS
311 # -----------------
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313 as_fn_exit ()
314 {
315   set +e
316   as_fn_set_status $1
317   exit $1
318 } # as_fn_exit
319
320 # as_fn_mkdir_p
321 # -------------
322 # Create "$as_dir" as a directory, including parents if necessary.
323 as_fn_mkdir_p ()
324 {
325
326   case $as_dir in #(
327   -*) as_dir=./$as_dir;;
328   esac
329   test -d "$as_dir" || eval $as_mkdir_p || {
330     as_dirs=
331     while :; do
332       case $as_dir in #(
333       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334       *) as_qdir=$as_dir;;
335       esac
336       as_dirs="'$as_qdir' $as_dirs"
337       as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339          X"$as_dir" : 'X\(//\)[^/]' \| \
340          X"$as_dir" : 'X\(//\)$' \| \
341          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344             s//\1/
345             q
346           }
347           /^X\(\/\/\)[^/].*/{
348             s//\1/
349             q
350           }
351           /^X\(\/\/\)$/{
352             s//\1/
353             q
354           }
355           /^X\(\/\).*/{
356             s//\1/
357             q
358           }
359           s/.*/./; q'`
360       test -d "$as_dir" && break
361     done
362     test -z "$as_dirs" || eval "mkdir $as_dirs"
363   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364
365
366 } # as_fn_mkdir_p
367
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
372 {
373   test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
380 # implementations.
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382   eval 'as_fn_append ()
383   {
384     eval $1+=\$2
385   }'
386 else
387   as_fn_append ()
388   {
389     eval $1=\$$1\$2
390   }
391 fi # as_fn_append
392
393 # as_fn_arith ARG...
394 # ------------------
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399   eval 'as_fn_arith ()
400   {
401     as_val=$(( $* ))
402   }'
403 else
404   as_fn_arith ()
405   {
406     as_val=`expr "$@" || test $? -eq 1`
407   }
408 fi # as_fn_arith
409
410
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
416 as_fn_error ()
417 {
418   as_status=$1; test $as_status -eq 0 && as_status=1
419   if test "$4"; then
420     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
422   fi
423   $as_echo "$as_me: error: $2" >&2
424   as_fn_exit $as_status
425 } # as_fn_error
426
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428    test "X`expr 00001 : '.*\(...\)'`" = X001; then
429   as_expr=expr
430 else
431   as_expr=false
432 fi
433
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435   as_basename=basename
436 else
437   as_basename=false
438 fi
439
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441   as_dirname=dirname
442 else
443   as_dirname=false
444 fi
445
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448          X"$0" : 'X\(//\)$' \| \
449          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450 $as_echo X/"$0" |
451     sed '/^.*\/\([^/][^/]*\)\/*$/{
452             s//\1/
453             q
454           }
455           /^X\/\(\/\/\)$/{
456             s//\1/
457             q
458           }
459           /^X\/\(\/\).*/{
460             s//\1/
461             q
462           }
463           s/.*/./; q'`
464
465 # Avoid depending upon Character Ranges.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_cr_alnum=$as_cr_Letters$as_cr_digits
471
472
473   as_lineno_1=$LINENO as_lineno_1a=$LINENO
474   as_lineno_2=$LINENO as_lineno_2a=$LINENO
475   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
478   sed -n '
479     p
480     /[$]LINENO/=
481   ' <$as_myself |
482     sed '
483       s/[$]LINENO.*/&-/
484       t lineno
485       b
486       :lineno
487       N
488       :loop
489       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490       t loop
491       s/-\n.*//
492     ' >$as_me.lineno &&
493   chmod +x "$as_me.lineno" ||
494     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
495
496   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497   # already done that, so ensure we don't try to do so again and fall
498   # in an infinite loop.  This has already happened in practice.
499   _as_can_reexec=no; export _as_can_reexec
500   # Don't try to exec as it changes $[0], causing all sort of problems
501   # (the dirname of $[0] is not the place where we might find the
502   # original and so on.  Autoconf is especially sensitive to this).
503   . "./$as_me.lineno"
504   # Exit status is that of the last command.
505   exit
506 }
507
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
510 -n*)
511   case `echo 'xy\c'` in
512   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
513   xy)  ECHO_C='\c';;
514   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
515        ECHO_T=' ';;
516   esac;;
517 *)
518   ECHO_N='-n';;
519 esac
520
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523   rm -f conf$$.dir/conf$$.file
524 else
525   rm -f conf$$.dir
526   mkdir conf$$.dir 2>/dev/null
527 fi
528 if (echo >conf$$.file) 2>/dev/null; then
529   if ln -s conf$$.file conf$$ 2>/dev/null; then
530     as_ln_s='ln -s'
531     # ... but there are two gotchas:
532     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534     # In both cases, we have to default to `cp -pR'.
535     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536       as_ln_s='cp -pR'
537   elif ln conf$$.file conf$$ 2>/dev/null; then
538     as_ln_s=ln
539   else
540     as_ln_s='cp -pR'
541   fi
542 else
543   as_ln_s='cp -pR'
544 fi
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
547
548 if mkdir -p . 2>/dev/null; then
549   as_mkdir_p='mkdir -p "$as_dir"'
550 else
551   test -d ./-p && rmdir ./-p
552   as_mkdir_p=false
553 fi
554
555 as_test_x='test -x'
556 as_executable_p=as_fn_executable_p
557
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
564 SHELL=${CONFIG_SHELL-/bin/sh}
565
566
567 test -n "$DJDIR" || exec 7<&0 </dev/null
568 exec 6>&1
569
570 # Name of the host.
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575 #
576 # Initializations.
577 #
578 ac_default_prefix=/usr/local
579 ac_clean_files=
580 ac_config_libobj_dir=.
581 LIBOBJS=
582 cross_compiling=no
583 subdirs=
584 MFLAGS=
585 MAKEFLAGS=
586
587 # Identity of this package.
588 PACKAGE_NAME='binutils'
589 PACKAGE_TARNAME='binutils'
590 PACKAGE_VERSION='2.32.90'
591 PACKAGE_STRING='binutils 2.32.90'
592 PACKAGE_BUGREPORT=''
593 PACKAGE_URL=''
594
595 ac_unique_file="ar.c"
596 # Factoring default headers for most tests.
597 ac_includes_default="\
598 #include <stdio.h>
599 #ifdef HAVE_SYS_TYPES_H
600 # include <sys/types.h>
601 #endif
602 #ifdef HAVE_SYS_STAT_H
603 # include <sys/stat.h>
604 #endif
605 #ifdef STDC_HEADERS
606 # include <stdlib.h>
607 # include <stddef.h>
608 #else
609 # ifdef HAVE_STDLIB_H
610 #  include <stdlib.h>
611 # endif
612 #endif
613 #ifdef HAVE_STRING_H
614 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
615 #  include <memory.h>
616 # endif
617 # include <string.h>
618 #endif
619 #ifdef HAVE_STRINGS_H
620 # include <strings.h>
621 #endif
622 #ifdef HAVE_INTTYPES_H
623 # include <inttypes.h>
624 #endif
625 #ifdef HAVE_STDINT_H
626 # include <stdint.h>
627 #endif
628 #ifdef HAVE_UNISTD_H
629 # include <unistd.h>
630 #endif"
631
632 ac_header_list=
633 ac_subst_vars='am__EXEEXT_FALSE
634 am__EXEEXT_TRUE
635 LTLIBOBJS
636 LIBOBJS
637 EMULATION_VECTOR
638 EMULATION
639 OBJDUMP_PRIVATE_OFILES
640 OBJDUMP_DEFS
641 BUILD_INSTALL_MISC
642 BUILD_MISC
643 BUILD_DLLWRAP
644 BUILD_WINDMC
645 BUILD_WINDRES
646 DLLTOOL_DEFS
647 BUILD_DLLTOOL
648 BUILD_SRCONV
649 LTLIBICONV
650 LIBICONV
651 zlibinc
652 zlibdir
653 ALLOCA
654 DEMANGLER_NAME
655 EXEEXT_FOR_BUILD
656 CC_FOR_BUILD
657 HDEFINES
658 GENINSRC_NEVER_FALSE
659 GENINSRC_NEVER_TRUE
660 MAINT
661 MAINTAINER_MODE_FALSE
662 MAINTAINER_MODE_TRUE
663 MSGMERGE
664 MSGFMT
665 MKINSTALLDIRS
666 CATOBJEXT
667 GENCAT
668 INSTOBJEXT
669 DATADIRNAME
670 CATALOGS
671 POSUB
672 GMSGFMT
673 XGETTEXT
674 INCINTL
675 LIBINTL_DEP
676 LIBINTL
677 USE_NLS
678 LEXLIB
679 LEX_OUTPUT_ROOT
680 LEX
681 YFLAGS
682 YACC
683 WARN_WRITE_STRINGS
684 NO_WERROR
685 WARN_CFLAGS_FOR_BUILD
686 WARN_CFLAGS
687 OTOOL64
688 OTOOL
689 LIPO
690 NMEDIT
691 DSYMUTIL
692 RANLIB
693 AR
694 OBJDUMP
695 LN_S
696 NM
697 ac_ct_DUMPBIN
698 DUMPBIN
699 LD
700 FGREP
701 SED
702 LIBTOOL
703 EGREP
704 GREP
705 CPP
706 AM_BACKSLASH
707 AM_DEFAULT_VERBOSITY
708 AM_DEFAULT_V
709 AM_V
710 am__fastdepCC_FALSE
711 am__fastdepCC_TRUE
712 CCDEPMODE
713 am__nodep
714 AMDEPBACKSLASH
715 AMDEP_FALSE
716 AMDEP_TRUE
717 am__quote
718 am__include
719 DEPDIR
720 am__untar
721 am__tar
722 AMTAR
723 am__leading_dot
724 SET_MAKE
725 AWK
726 mkdir_p
727 MKDIR_P
728 INSTALL_STRIP_PROGRAM
729 STRIP
730 install_sh
731 MAKEINFO
732 AUTOHEADER
733 AUTOMAKE
734 AUTOCONF
735 ACLOCAL
736 VERSION
737 PACKAGE
738 CYGPATH_W
739 am__isrc
740 INSTALL_DATA
741 INSTALL_SCRIPT
742 INSTALL_PROGRAM
743 OBJEXT
744 EXEEXT
745 ac_ct_CC
746 CPPFLAGS
747 LDFLAGS
748 CFLAGS
749 CC
750 target_os
751 target_vendor
752 target_cpu
753 target
754 host_os
755 host_vendor
756 host_cpu
757 host
758 build_os
759 build_vendor
760 build_cpu
761 build
762 target_alias
763 host_alias
764 build_alias
765 LIBS
766 ECHO_T
767 ECHO_N
768 ECHO_C
769 DEFS
770 mandir
771 localedir
772 libdir
773 psdir
774 pdfdir
775 dvidir
776 htmldir
777 infodir
778 docdir
779 oldincludedir
780 includedir
781 runstatedir
782 localstatedir
783 sharedstatedir
784 sysconfdir
785 datadir
786 datarootdir
787 libexecdir
788 sbindir
789 bindir
790 program_transform_name
791 prefix
792 exec_prefix
793 PACKAGE_URL
794 PACKAGE_BUGREPORT
795 PACKAGE_STRING
796 PACKAGE_VERSION
797 PACKAGE_TARNAME
798 PACKAGE_NAME
799 PATH_SEPARATOR
800 SHELL'
801 ac_subst_files=''
802 ac_user_opts='
803 enable_option_checking
804 enable_dependency_tracking
805 enable_silent_rules
806 enable_shared
807 enable_static
808 with_pic
809 enable_fast_install
810 with_gnu_ld
811 enable_libtool_lock
812 enable_plugins
813 enable_largefile
814 enable_targets
815 enable_deterministic_archives
816 enable_default_strings_all
817 enable_werror
818 enable_build_warnings
819 enable_nls
820 enable_maintainer_mode
821 with_system_zlib
822 enable_rpath
823 with_libiconv_prefix
824 '
825       ac_precious_vars='build_alias
826 host_alias
827 target_alias
828 CC
829 CFLAGS
830 LDFLAGS
831 LIBS
832 CPPFLAGS
833 CPP
834 YACC
835 YFLAGS'
836
837
838 # Initialize some variables set by options.
839 ac_init_help=
840 ac_init_version=false
841 ac_unrecognized_opts=
842 ac_unrecognized_sep=
843 # The variables have the same names as the options, with
844 # dashes changed to underlines.
845 cache_file=/dev/null
846 exec_prefix=NONE
847 no_create=
848 no_recursion=
849 prefix=NONE
850 program_prefix=NONE
851 program_suffix=NONE
852 program_transform_name=s,x,x,
853 silent=
854 site=
855 srcdir=
856 verbose=
857 x_includes=NONE
858 x_libraries=NONE
859
860 # Installation directory options.
861 # These are left unexpanded so users can "make install exec_prefix=/foo"
862 # and all the variables that are supposed to be based on exec_prefix
863 # by default will actually change.
864 # Use braces instead of parens because sh, perl, etc. also accept them.
865 # (The list follows the same order as the GNU Coding Standards.)
866 bindir='${exec_prefix}/bin'
867 sbindir='${exec_prefix}/sbin'
868 libexecdir='${exec_prefix}/libexec'
869 datarootdir='${prefix}/share'
870 datadir='${datarootdir}'
871 sysconfdir='${prefix}/etc'
872 sharedstatedir='${prefix}/com'
873 localstatedir='${prefix}/var'
874 runstatedir='${localstatedir}/run'
875 includedir='${prefix}/include'
876 oldincludedir='/usr/include'
877 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
878 infodir='${datarootdir}/info'
879 htmldir='${docdir}'
880 dvidir='${docdir}'
881 pdfdir='${docdir}'
882 psdir='${docdir}'
883 libdir='${exec_prefix}/lib'
884 localedir='${datarootdir}/locale'
885 mandir='${datarootdir}/man'
886
887 ac_prev=
888 ac_dashdash=
889 for ac_option
890 do
891   # If the previous option needs an argument, assign it.
892   if test -n "$ac_prev"; then
893     eval $ac_prev=\$ac_option
894     ac_prev=
895     continue
896   fi
897
898   case $ac_option in
899   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
900   *=)   ac_optarg= ;;
901   *)    ac_optarg=yes ;;
902   esac
903
904   # Accept the important Cygnus configure options, so we can diagnose typos.
905
906   case $ac_dashdash$ac_option in
907   --)
908     ac_dashdash=yes ;;
909
910   -bindir | --bindir | --bindi | --bind | --bin | --bi)
911     ac_prev=bindir ;;
912   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
913     bindir=$ac_optarg ;;
914
915   -build | --build | --buil | --bui | --bu)
916     ac_prev=build_alias ;;
917   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
918     build_alias=$ac_optarg ;;
919
920   -cache-file | --cache-file | --cache-fil | --cache-fi \
921   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
922     ac_prev=cache_file ;;
923   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
924   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
925     cache_file=$ac_optarg ;;
926
927   --config-cache | -C)
928     cache_file=config.cache ;;
929
930   -datadir | --datadir | --datadi | --datad)
931     ac_prev=datadir ;;
932   -datadir=* | --datadir=* | --datadi=* | --datad=*)
933     datadir=$ac_optarg ;;
934
935   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
936   | --dataroo | --dataro | --datar)
937     ac_prev=datarootdir ;;
938   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
939   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
940     datarootdir=$ac_optarg ;;
941
942   -disable-* | --disable-*)
943     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
944     # Reject names that are not valid shell variable names.
945     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
946       as_fn_error $? "invalid feature name: $ac_useropt"
947     ac_useropt_orig=$ac_useropt
948     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
949     case $ac_user_opts in
950       *"
951 "enable_$ac_useropt"
952 "*) ;;
953       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
954          ac_unrecognized_sep=', ';;
955     esac
956     eval enable_$ac_useropt=no ;;
957
958   -docdir | --docdir | --docdi | --doc | --do)
959     ac_prev=docdir ;;
960   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
961     docdir=$ac_optarg ;;
962
963   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
964     ac_prev=dvidir ;;
965   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
966     dvidir=$ac_optarg ;;
967
968   -enable-* | --enable-*)
969     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
970     # Reject names that are not valid shell variable names.
971     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
972       as_fn_error $? "invalid feature name: $ac_useropt"
973     ac_useropt_orig=$ac_useropt
974     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
975     case $ac_user_opts in
976       *"
977 "enable_$ac_useropt"
978 "*) ;;
979       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
980          ac_unrecognized_sep=', ';;
981     esac
982     eval enable_$ac_useropt=\$ac_optarg ;;
983
984   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
985   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
986   | --exec | --exe | --ex)
987     ac_prev=exec_prefix ;;
988   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
989   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
990   | --exec=* | --exe=* | --ex=*)
991     exec_prefix=$ac_optarg ;;
992
993   -gas | --gas | --ga | --g)
994     # Obsolete; use --with-gas.
995     with_gas=yes ;;
996
997   -help | --help | --hel | --he | -h)
998     ac_init_help=long ;;
999   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1000     ac_init_help=recursive ;;
1001   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1002     ac_init_help=short ;;
1003
1004   -host | --host | --hos | --ho)
1005     ac_prev=host_alias ;;
1006   -host=* | --host=* | --hos=* | --ho=*)
1007     host_alias=$ac_optarg ;;
1008
1009   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1010     ac_prev=htmldir ;;
1011   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1012   | --ht=*)
1013     htmldir=$ac_optarg ;;
1014
1015   -includedir | --includedir | --includedi | --included | --include \
1016   | --includ | --inclu | --incl | --inc)
1017     ac_prev=includedir ;;
1018   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1019   | --includ=* | --inclu=* | --incl=* | --inc=*)
1020     includedir=$ac_optarg ;;
1021
1022   -infodir | --infodir | --infodi | --infod | --info | --inf)
1023     ac_prev=infodir ;;
1024   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1025     infodir=$ac_optarg ;;
1026
1027   -libdir | --libdir | --libdi | --libd)
1028     ac_prev=libdir ;;
1029   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1030     libdir=$ac_optarg ;;
1031
1032   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1033   | --libexe | --libex | --libe)
1034     ac_prev=libexecdir ;;
1035   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1036   | --libexe=* | --libex=* | --libe=*)
1037     libexecdir=$ac_optarg ;;
1038
1039   -localedir | --localedir | --localedi | --localed | --locale)
1040     ac_prev=localedir ;;
1041   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1042     localedir=$ac_optarg ;;
1043
1044   -localstatedir | --localstatedir | --localstatedi | --localstated \
1045   | --localstate | --localstat | --localsta | --localst | --locals)
1046     ac_prev=localstatedir ;;
1047   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1048   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1049     localstatedir=$ac_optarg ;;
1050
1051   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1052     ac_prev=mandir ;;
1053   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1054     mandir=$ac_optarg ;;
1055
1056   -nfp | --nfp | --nf)
1057     # Obsolete; use --without-fp.
1058     with_fp=no ;;
1059
1060   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1061   | --no-cr | --no-c | -n)
1062     no_create=yes ;;
1063
1064   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1065   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1066     no_recursion=yes ;;
1067
1068   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1069   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1070   | --oldin | --oldi | --old | --ol | --o)
1071     ac_prev=oldincludedir ;;
1072   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1073   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1074   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1075     oldincludedir=$ac_optarg ;;
1076
1077   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1078     ac_prev=prefix ;;
1079   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1080     prefix=$ac_optarg ;;
1081
1082   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1083   | --program-pre | --program-pr | --program-p)
1084     ac_prev=program_prefix ;;
1085   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1086   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1087     program_prefix=$ac_optarg ;;
1088
1089   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1090   | --program-suf | --program-su | --program-s)
1091     ac_prev=program_suffix ;;
1092   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1093   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1094     program_suffix=$ac_optarg ;;
1095
1096   -program-transform-name | --program-transform-name \
1097   | --program-transform-nam | --program-transform-na \
1098   | --program-transform-n | --program-transform- \
1099   | --program-transform | --program-transfor \
1100   | --program-transfo | --program-transf \
1101   | --program-trans | --program-tran \
1102   | --progr-tra | --program-tr | --program-t)
1103     ac_prev=program_transform_name ;;
1104   -program-transform-name=* | --program-transform-name=* \
1105   | --program-transform-nam=* | --program-transform-na=* \
1106   | --program-transform-n=* | --program-transform-=* \
1107   | --program-transform=* | --program-transfor=* \
1108   | --program-transfo=* | --program-transf=* \
1109   | --program-trans=* | --program-tran=* \
1110   | --progr-tra=* | --program-tr=* | --program-t=*)
1111     program_transform_name=$ac_optarg ;;
1112
1113   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1114     ac_prev=pdfdir ;;
1115   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1116     pdfdir=$ac_optarg ;;
1117
1118   -psdir | --psdir | --psdi | --psd | --ps)
1119     ac_prev=psdir ;;
1120   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1121     psdir=$ac_optarg ;;
1122
1123   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1124   | -silent | --silent | --silen | --sile | --sil)
1125     silent=yes ;;
1126
1127   -runstatedir | --runstatedir | --runstatedi | --runstated \
1128   | --runstate | --runstat | --runsta | --runst | --runs \
1129   | --run | --ru | --r)
1130     ac_prev=runstatedir ;;
1131   -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1132   | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1133   | --run=* | --ru=* | --r=*)
1134     runstatedir=$ac_optarg ;;
1135
1136   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1137     ac_prev=sbindir ;;
1138   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1139   | --sbi=* | --sb=*)
1140     sbindir=$ac_optarg ;;
1141
1142   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1143   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1144   | --sharedst | --shareds | --shared | --share | --shar \
1145   | --sha | --sh)
1146     ac_prev=sharedstatedir ;;
1147   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1148   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1149   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1150   | --sha=* | --sh=*)
1151     sharedstatedir=$ac_optarg ;;
1152
1153   -site | --site | --sit)
1154     ac_prev=site ;;
1155   -site=* | --site=* | --sit=*)
1156     site=$ac_optarg ;;
1157
1158   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1159     ac_prev=srcdir ;;
1160   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1161     srcdir=$ac_optarg ;;
1162
1163   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1164   | --syscon | --sysco | --sysc | --sys | --sy)
1165     ac_prev=sysconfdir ;;
1166   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1167   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1168     sysconfdir=$ac_optarg ;;
1169
1170   -target | --target | --targe | --targ | --tar | --ta | --t)
1171     ac_prev=target_alias ;;
1172   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1173     target_alias=$ac_optarg ;;
1174
1175   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1176     verbose=yes ;;
1177
1178   -version | --version | --versio | --versi | --vers | -V)
1179     ac_init_version=: ;;
1180
1181   -with-* | --with-*)
1182     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1183     # Reject names that are not valid shell variable names.
1184     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1185       as_fn_error $? "invalid package name: $ac_useropt"
1186     ac_useropt_orig=$ac_useropt
1187     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1188     case $ac_user_opts in
1189       *"
1190 "with_$ac_useropt"
1191 "*) ;;
1192       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1193          ac_unrecognized_sep=', ';;
1194     esac
1195     eval with_$ac_useropt=\$ac_optarg ;;
1196
1197   -without-* | --without-*)
1198     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1199     # Reject names that are not valid shell variable names.
1200     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1201       as_fn_error $? "invalid package name: $ac_useropt"
1202     ac_useropt_orig=$ac_useropt
1203     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1204     case $ac_user_opts in
1205       *"
1206 "with_$ac_useropt"
1207 "*) ;;
1208       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1209          ac_unrecognized_sep=', ';;
1210     esac
1211     eval with_$ac_useropt=no ;;
1212
1213   --x)
1214     # Obsolete; use --with-x.
1215     with_x=yes ;;
1216
1217   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1218   | --x-incl | --x-inc | --x-in | --x-i)
1219     ac_prev=x_includes ;;
1220   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1221   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1222     x_includes=$ac_optarg ;;
1223
1224   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1225   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1226     ac_prev=x_libraries ;;
1227   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1228   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1229     x_libraries=$ac_optarg ;;
1230
1231   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1232 Try \`$0 --help' for more information"
1233     ;;
1234
1235   *=*)
1236     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1237     # Reject names that are not valid shell variable names.
1238     case $ac_envvar in #(
1239       '' | [0-9]* | *[!_$as_cr_alnum]* )
1240       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1241     esac
1242     eval $ac_envvar=\$ac_optarg
1243     export $ac_envvar ;;
1244
1245   *)
1246     # FIXME: should be removed in autoconf 3.0.
1247     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1248     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1249       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1250     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1251     ;;
1252
1253   esac
1254 done
1255
1256 if test -n "$ac_prev"; then
1257   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1258   as_fn_error $? "missing argument to $ac_option"
1259 fi
1260
1261 if test -n "$ac_unrecognized_opts"; then
1262   case $enable_option_checking in
1263     no) ;;
1264     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1265     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1266   esac
1267 fi
1268
1269 # Check all directory arguments for consistency.
1270 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1271                 datadir sysconfdir sharedstatedir localstatedir includedir \
1272                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1273                 libdir localedir mandir runstatedir
1274 do
1275   eval ac_val=\$$ac_var
1276   # Remove trailing slashes.
1277   case $ac_val in
1278     */ )
1279       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1280       eval $ac_var=\$ac_val;;
1281   esac
1282   # Be sure to have absolute directory names.
1283   case $ac_val in
1284     [\\/$]* | ?:[\\/]* )  continue;;
1285     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1286   esac
1287   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1288 done
1289
1290 # There might be people who depend on the old broken behavior: `$host'
1291 # used to hold the argument of --host etc.
1292 # FIXME: To remove some day.
1293 build=$build_alias
1294 host=$host_alias
1295 target=$target_alias
1296
1297 # FIXME: To remove some day.
1298 if test "x$host_alias" != x; then
1299   if test "x$build_alias" = x; then
1300     cross_compiling=maybe
1301   elif test "x$build_alias" != "x$host_alias"; then
1302     cross_compiling=yes
1303   fi
1304 fi
1305
1306 ac_tool_prefix=
1307 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1308
1309 test "$silent" = yes && exec 6>/dev/null
1310
1311
1312 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1313 ac_ls_di=`ls -di .` &&
1314 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1315   as_fn_error $? "working directory cannot be determined"
1316 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1317   as_fn_error $? "pwd does not report name of working directory"
1318
1319
1320 # Find the source files, if location was not specified.
1321 if test -z "$srcdir"; then
1322   ac_srcdir_defaulted=yes
1323   # Try the directory containing this script, then the parent directory.
1324   ac_confdir=`$as_dirname -- "$as_myself" ||
1325 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1326          X"$as_myself" : 'X\(//\)[^/]' \| \
1327          X"$as_myself" : 'X\(//\)$' \| \
1328          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1329 $as_echo X"$as_myself" |
1330     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1331             s//\1/
1332             q
1333           }
1334           /^X\(\/\/\)[^/].*/{
1335             s//\1/
1336             q
1337           }
1338           /^X\(\/\/\)$/{
1339             s//\1/
1340             q
1341           }
1342           /^X\(\/\).*/{
1343             s//\1/
1344             q
1345           }
1346           s/.*/./; q'`
1347   srcdir=$ac_confdir
1348   if test ! -r "$srcdir/$ac_unique_file"; then
1349     srcdir=..
1350   fi
1351 else
1352   ac_srcdir_defaulted=no
1353 fi
1354 if test ! -r "$srcdir/$ac_unique_file"; then
1355   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1356   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1357 fi
1358 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1359 ac_abs_confdir=`(
1360         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1361         pwd)`
1362 # When building in place, set srcdir=.
1363 if test "$ac_abs_confdir" = "$ac_pwd"; then
1364   srcdir=.
1365 fi
1366 # Remove unnecessary trailing slashes from srcdir.
1367 # Double slashes in file names in object file debugging info
1368 # mess up M-x gdb in Emacs.
1369 case $srcdir in
1370 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1371 esac
1372 for ac_var in $ac_precious_vars; do
1373   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1374   eval ac_env_${ac_var}_value=\$${ac_var}
1375   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1376   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1377 done
1378
1379 #
1380 # Report the --help message.
1381 #
1382 if test "$ac_init_help" = "long"; then
1383   # Omit some internal or obsolete options to make the list less imposing.
1384   # This message is too long to be a string in the A/UX 3.1 sh.
1385   cat <<_ACEOF
1386 \`configure' configures binutils 2.32.90 to adapt to many kinds of systems.
1387
1388 Usage: $0 [OPTION]... [VAR=VALUE]...
1389
1390 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1391 VAR=VALUE.  See below for descriptions of some of the useful variables.
1392
1393 Defaults for the options are specified in brackets.
1394
1395 Configuration:
1396   -h, --help              display this help and exit
1397       --help=short        display options specific to this package
1398       --help=recursive    display the short help of all the included packages
1399   -V, --version           display version information and exit
1400   -q, --quiet, --silent   do not print \`checking ...' messages
1401       --cache-file=FILE   cache test results in FILE [disabled]
1402   -C, --config-cache      alias for \`--cache-file=config.cache'
1403   -n, --no-create         do not create output files
1404       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1405
1406 Installation directories:
1407   --prefix=PREFIX         install architecture-independent files in PREFIX
1408                           [$ac_default_prefix]
1409   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1410                           [PREFIX]
1411
1412 By default, \`make install' will install all the files in
1413 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1414 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1415 for instance \`--prefix=\$HOME'.
1416
1417 For better control, use the options below.
1418
1419 Fine tuning of the installation directories:
1420   --bindir=DIR            user executables [EPREFIX/bin]
1421   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1422   --libexecdir=DIR        program executables [EPREFIX/libexec]
1423   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1424   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1425   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1426   --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1427   --libdir=DIR            object code libraries [EPREFIX/lib]
1428   --includedir=DIR        C header files [PREFIX/include]
1429   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1430   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1431   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1432   --infodir=DIR           info documentation [DATAROOTDIR/info]
1433   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1434   --mandir=DIR            man documentation [DATAROOTDIR/man]
1435   --docdir=DIR            documentation root [DATAROOTDIR/doc/binutils]
1436   --htmldir=DIR           html documentation [DOCDIR]
1437   --dvidir=DIR            dvi documentation [DOCDIR]
1438   --pdfdir=DIR            pdf documentation [DOCDIR]
1439   --psdir=DIR             ps documentation [DOCDIR]
1440 _ACEOF
1441
1442   cat <<\_ACEOF
1443
1444 Program names:
1445   --program-prefix=PREFIX            prepend PREFIX to installed program names
1446   --program-suffix=SUFFIX            append SUFFIX to installed program names
1447   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1448
1449 System types:
1450   --build=BUILD     configure for building on BUILD [guessed]
1451   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1452   --target=TARGET   configure for building compilers for TARGET [HOST]
1453 _ACEOF
1454 fi
1455
1456 if test -n "$ac_init_help"; then
1457   case $ac_init_help in
1458      short | recursive ) echo "Configuration of binutils 2.32.90:";;
1459    esac
1460   cat <<\_ACEOF
1461
1462 Optional Features:
1463   --disable-option-checking  ignore unrecognized --enable/--with options
1464   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1465   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1466   --enable-dependency-tracking
1467                           do not reject slow dependency extractors
1468   --disable-dependency-tracking
1469                           speeds up one-time build
1470   --enable-silent-rules   less verbose build output (undo: "make V=1")
1471   --disable-silent-rules  verbose build output (undo: "make V=0")
1472   --enable-shared[=PKGS]  build shared libraries [default=yes]
1473   --enable-static[=PKGS]  build static libraries [default=yes]
1474   --enable-fast-install[=PKGS]
1475                           optimize for fast installation [default=yes]
1476   --disable-libtool-lock  avoid locking (might break parallel builds)
1477   --enable-plugins        Enable support for plugins
1478   --disable-largefile     omit support for large files
1479   --enable-targets        alternative target configurations
1480   --enable-deterministic-archives
1481                           ar and ranlib default to -D behavior
1482   --disable-default-strings-all
1483                           strings defaults to --data behavior
1484   --enable-werror         treat compile warnings as errors
1485   --enable-build-warnings enable build-time compiler warnings
1486   --disable-nls           do not use Native Language Support
1487   --enable-maintainer-mode
1488                           enable make rules and dependencies not useful (and
1489                           sometimes confusing) to the casual installer
1490   --disable-rpath         do not hardcode runtime library paths
1491
1492 Optional Packages:
1493   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1494   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1495   --with-pic              try to use only PIC/non-PIC objects [default=use
1496                           both]
1497   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1498   --with-system-zlib      use installed libz
1499   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1500   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1501   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1502
1503 Some influential environment variables:
1504   CC          C compiler command
1505   CFLAGS      C compiler flags
1506   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1507               nonstandard directory <lib dir>
1508   LIBS        libraries to pass to the linker, e.g. -l<library>
1509   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1510               you have headers in a nonstandard directory <include dir>
1511   CPP         C preprocessor
1512   YACC        The `Yet Another Compiler Compiler' implementation to use.
1513               Defaults to the first program found out of: `bison -y', `byacc',
1514               `yacc'.
1515   YFLAGS      The list of arguments that will be passed by default to $YACC.
1516               This script will default YFLAGS to the empty string to avoid a
1517               default value of `-d' given by some make applications.
1518
1519 Use these variables to override the choices made by `configure' or to help
1520 it to find libraries and programs with nonstandard names/locations.
1521
1522 Report bugs to the package provider.
1523 _ACEOF
1524 ac_status=$?
1525 fi
1526
1527 if test "$ac_init_help" = "recursive"; then
1528   # If there are subdirs, report their specific --help.
1529   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1530     test -d "$ac_dir" ||
1531       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1532       continue
1533     ac_builddir=.
1534
1535 case "$ac_dir" in
1536 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1537 *)
1538   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1539   # A ".." for each directory in $ac_dir_suffix.
1540   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1541   case $ac_top_builddir_sub in
1542   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1543   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1544   esac ;;
1545 esac
1546 ac_abs_top_builddir=$ac_pwd
1547 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1548 # for backward compatibility:
1549 ac_top_builddir=$ac_top_build_prefix
1550
1551 case $srcdir in
1552   .)  # We are building in place.
1553     ac_srcdir=.
1554     ac_top_srcdir=$ac_top_builddir_sub
1555     ac_abs_top_srcdir=$ac_pwd ;;
1556   [\\/]* | ?:[\\/]* )  # Absolute name.
1557     ac_srcdir=$srcdir$ac_dir_suffix;
1558     ac_top_srcdir=$srcdir
1559     ac_abs_top_srcdir=$srcdir ;;
1560   *) # Relative name.
1561     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1562     ac_top_srcdir=$ac_top_build_prefix$srcdir
1563     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1564 esac
1565 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1566
1567     cd "$ac_dir" || { ac_status=$?; continue; }
1568     # Check for guested configure.
1569     if test -f "$ac_srcdir/configure.gnu"; then
1570       echo &&
1571       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1572     elif test -f "$ac_srcdir/configure"; then
1573       echo &&
1574       $SHELL "$ac_srcdir/configure" --help=recursive
1575     else
1576       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1577     fi || ac_status=$?
1578     cd "$ac_pwd" || { ac_status=$?; break; }
1579   done
1580 fi
1581
1582 test -n "$ac_init_help" && exit $ac_status
1583 if $ac_init_version; then
1584   cat <<\_ACEOF
1585 binutils configure 2.32.90
1586 generated by GNU Autoconf 2.69
1587
1588 Copyright (C) 2012 Free Software Foundation, Inc.
1589 This configure script is free software; the Free Software Foundation
1590 gives unlimited permission to copy, distribute and modify it.
1591 _ACEOF
1592   exit
1593 fi
1594
1595 ## ------------------------ ##
1596 ## Autoconf initialization. ##
1597 ## ------------------------ ##
1598
1599 # ac_fn_c_try_compile LINENO
1600 # --------------------------
1601 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1602 ac_fn_c_try_compile ()
1603 {
1604   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1605   rm -f conftest.$ac_objext
1606   if { { ac_try="$ac_compile"
1607 case "(($ac_try" in
1608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1609   *) ac_try_echo=$ac_try;;
1610 esac
1611 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1612 $as_echo "$ac_try_echo"; } >&5
1613   (eval "$ac_compile") 2>conftest.err
1614   ac_status=$?
1615   if test -s conftest.err; then
1616     grep -v '^ *+' conftest.err >conftest.er1
1617     cat conftest.er1 >&5
1618     mv -f conftest.er1 conftest.err
1619   fi
1620   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1621   test $ac_status = 0; } && {
1622          test -z "$ac_c_werror_flag" ||
1623          test ! -s conftest.err
1624        } && test -s conftest.$ac_objext; then :
1625   ac_retval=0
1626 else
1627   $as_echo "$as_me: failed program was:" >&5
1628 sed 's/^/| /' conftest.$ac_ext >&5
1629
1630         ac_retval=1
1631 fi
1632   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1633   as_fn_set_status $ac_retval
1634
1635 } # ac_fn_c_try_compile
1636
1637 # ac_fn_c_try_link LINENO
1638 # -----------------------
1639 # Try to link conftest.$ac_ext, and return whether this succeeded.
1640 ac_fn_c_try_link ()
1641 {
1642   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1643   rm -f conftest.$ac_objext conftest$ac_exeext
1644   if { { ac_try="$ac_link"
1645 case "(($ac_try" in
1646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1647   *) ac_try_echo=$ac_try;;
1648 esac
1649 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1650 $as_echo "$ac_try_echo"; } >&5
1651   (eval "$ac_link") 2>conftest.err
1652   ac_status=$?
1653   if test -s conftest.err; then
1654     grep -v '^ *+' conftest.err >conftest.er1
1655     cat conftest.er1 >&5
1656     mv -f conftest.er1 conftest.err
1657   fi
1658   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1659   test $ac_status = 0; } && {
1660          test -z "$ac_c_werror_flag" ||
1661          test ! -s conftest.err
1662        } && test -s conftest$ac_exeext && {
1663          test "$cross_compiling" = yes ||
1664          test -x conftest$ac_exeext
1665        }; then :
1666   ac_retval=0
1667 else
1668   $as_echo "$as_me: failed program was:" >&5
1669 sed 's/^/| /' conftest.$ac_ext >&5
1670
1671         ac_retval=1
1672 fi
1673   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1674   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1675   # interfere with the next link command; also delete a directory that is
1676   # left behind by Apple's compiler.  We do this before executing the actions.
1677   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1678   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1679   as_fn_set_status $ac_retval
1680
1681 } # ac_fn_c_try_link
1682
1683 # ac_fn_c_try_cpp LINENO
1684 # ----------------------
1685 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1686 ac_fn_c_try_cpp ()
1687 {
1688   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1689   if { { ac_try="$ac_cpp conftest.$ac_ext"
1690 case "(($ac_try" in
1691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1692   *) ac_try_echo=$ac_try;;
1693 esac
1694 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1695 $as_echo "$ac_try_echo"; } >&5
1696   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1697   ac_status=$?
1698   if test -s conftest.err; then
1699     grep -v '^ *+' conftest.err >conftest.er1
1700     cat conftest.er1 >&5
1701     mv -f conftest.er1 conftest.err
1702   fi
1703   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1704   test $ac_status = 0; } > conftest.i && {
1705          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1706          test ! -s conftest.err
1707        }; then :
1708   ac_retval=0
1709 else
1710   $as_echo "$as_me: failed program was:" >&5
1711 sed 's/^/| /' conftest.$ac_ext >&5
1712
1713     ac_retval=1
1714 fi
1715   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1716   as_fn_set_status $ac_retval
1717
1718 } # ac_fn_c_try_cpp
1719
1720 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1721 # -------------------------------------------------------
1722 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1723 # the include files in INCLUDES and setting the cache variable VAR
1724 # accordingly.
1725 ac_fn_c_check_header_mongrel ()
1726 {
1727   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1728   if eval \${$3+:} false; then :
1729   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1730 $as_echo_n "checking for $2... " >&6; }
1731 if eval \${$3+:} false; then :
1732   $as_echo_n "(cached) " >&6
1733 fi
1734 eval ac_res=\$$3
1735                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1736 $as_echo "$ac_res" >&6; }
1737 else
1738   # Is the header compilable?
1739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1740 $as_echo_n "checking $2 usability... " >&6; }
1741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1742 /* end confdefs.h.  */
1743 $4
1744 #include <$2>
1745 _ACEOF
1746 if ac_fn_c_try_compile "$LINENO"; then :
1747   ac_header_compiler=yes
1748 else
1749   ac_header_compiler=no
1750 fi
1751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1753 $as_echo "$ac_header_compiler" >&6; }
1754
1755 # Is the header present?
1756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1757 $as_echo_n "checking $2 presence... " >&6; }
1758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1759 /* end confdefs.h.  */
1760 #include <$2>
1761 _ACEOF
1762 if ac_fn_c_try_cpp "$LINENO"; then :
1763   ac_header_preproc=yes
1764 else
1765   ac_header_preproc=no
1766 fi
1767 rm -f conftest.err conftest.i conftest.$ac_ext
1768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1769 $as_echo "$ac_header_preproc" >&6; }
1770
1771 # So?  What about this header?
1772 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1773   yes:no: )
1774     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1775 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1776     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1777 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1778     ;;
1779   no:yes:* )
1780     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1781 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1782     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1783 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1784     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1785 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1786     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1787 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1788     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1789 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1790     ;;
1791 esac
1792   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1793 $as_echo_n "checking for $2... " >&6; }
1794 if eval \${$3+:} false; then :
1795   $as_echo_n "(cached) " >&6
1796 else
1797   eval "$3=\$ac_header_compiler"
1798 fi
1799 eval ac_res=\$$3
1800                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1801 $as_echo "$ac_res" >&6; }
1802 fi
1803   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1804
1805 } # ac_fn_c_check_header_mongrel
1806
1807 # ac_fn_c_try_run LINENO
1808 # ----------------------
1809 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1810 # that executables *can* be run.
1811 ac_fn_c_try_run ()
1812 {
1813   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1814   if { { ac_try="$ac_link"
1815 case "(($ac_try" in
1816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1817   *) ac_try_echo=$ac_try;;
1818 esac
1819 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1820 $as_echo "$ac_try_echo"; } >&5
1821   (eval "$ac_link") 2>&5
1822   ac_status=$?
1823   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1824   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1825   { { case "(($ac_try" in
1826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1827   *) ac_try_echo=$ac_try;;
1828 esac
1829 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1830 $as_echo "$ac_try_echo"; } >&5
1831   (eval "$ac_try") 2>&5
1832   ac_status=$?
1833   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1834   test $ac_status = 0; }; }; then :
1835   ac_retval=0
1836 else
1837   $as_echo "$as_me: program exited with status $ac_status" >&5
1838        $as_echo "$as_me: failed program was:" >&5
1839 sed 's/^/| /' conftest.$ac_ext >&5
1840
1841        ac_retval=$ac_status
1842 fi
1843   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1844   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1845   as_fn_set_status $ac_retval
1846
1847 } # ac_fn_c_try_run
1848
1849 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1850 # -------------------------------------------------------
1851 # Tests whether HEADER exists and can be compiled using the include files in
1852 # INCLUDES, setting the cache variable VAR accordingly.
1853 ac_fn_c_check_header_compile ()
1854 {
1855   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1856   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1857 $as_echo_n "checking for $2... " >&6; }
1858 if eval \${$3+:} false; then :
1859   $as_echo_n "(cached) " >&6
1860 else
1861   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1862 /* end confdefs.h.  */
1863 $4
1864 #include <$2>
1865 _ACEOF
1866 if ac_fn_c_try_compile "$LINENO"; then :
1867   eval "$3=yes"
1868 else
1869   eval "$3=no"
1870 fi
1871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1872 fi
1873 eval ac_res=\$$3
1874                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1875 $as_echo "$ac_res" >&6; }
1876   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1877
1878 } # ac_fn_c_check_header_compile
1879
1880 # ac_fn_c_check_func LINENO FUNC VAR
1881 # ----------------------------------
1882 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1883 ac_fn_c_check_func ()
1884 {
1885   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1886   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1887 $as_echo_n "checking for $2... " >&6; }
1888 if eval \${$3+:} false; then :
1889   $as_echo_n "(cached) " >&6
1890 else
1891   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1892 /* end confdefs.h.  */
1893 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1894    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1895 #define $2 innocuous_$2
1896
1897 /* System header to define __stub macros and hopefully few prototypes,
1898     which can conflict with char $2 (); below.
1899     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1900     <limits.h> exists even on freestanding compilers.  */
1901
1902 #ifdef __STDC__
1903 # include <limits.h>
1904 #else
1905 # include <assert.h>
1906 #endif
1907
1908 #undef $2
1909
1910 /* Override any GCC internal prototype to avoid an error.
1911    Use char because int might match the return type of a GCC
1912    builtin and then its argument prototype would still apply.  */
1913 #ifdef __cplusplus
1914 extern "C"
1915 #endif
1916 char $2 ();
1917 /* The GNU C library defines this for functions which it implements
1918     to always fail with ENOSYS.  Some functions are actually named
1919     something starting with __ and the normal name is an alias.  */
1920 #if defined __stub_$2 || defined __stub___$2
1921 choke me
1922 #endif
1923
1924 int
1925 main ()
1926 {
1927 return $2 ();
1928   ;
1929   return 0;
1930 }
1931 _ACEOF
1932 if ac_fn_c_try_link "$LINENO"; then :
1933   eval "$3=yes"
1934 else
1935   eval "$3=no"
1936 fi
1937 rm -f core conftest.err conftest.$ac_objext \
1938     conftest$ac_exeext conftest.$ac_ext
1939 fi
1940 eval ac_res=\$$3
1941                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1942 $as_echo "$ac_res" >&6; }
1943   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1944
1945 } # ac_fn_c_check_func
1946
1947 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1948 # --------------------------------------------
1949 # Tries to find the compile-time value of EXPR in a program that includes
1950 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1951 # computed
1952 ac_fn_c_compute_int ()
1953 {
1954   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1955   if test "$cross_compiling" = yes; then
1956     # Depending upon the size, compute the lo and hi bounds.
1957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1958 /* end confdefs.h.  */
1959 $4
1960 int
1961 main ()
1962 {
1963 static int test_array [1 - 2 * !(($2) >= 0)];
1964 test_array [0] = 0;
1965 return test_array [0];
1966
1967   ;
1968   return 0;
1969 }
1970 _ACEOF
1971 if ac_fn_c_try_compile "$LINENO"; then :
1972   ac_lo=0 ac_mid=0
1973   while :; do
1974     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1975 /* end confdefs.h.  */
1976 $4
1977 int
1978 main ()
1979 {
1980 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1981 test_array [0] = 0;
1982 return test_array [0];
1983
1984   ;
1985   return 0;
1986 }
1987 _ACEOF
1988 if ac_fn_c_try_compile "$LINENO"; then :
1989   ac_hi=$ac_mid; break
1990 else
1991   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1992                         if test $ac_lo -le $ac_mid; then
1993                           ac_lo= ac_hi=
1994                           break
1995                         fi
1996                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1997 fi
1998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1999   done
2000 else
2001   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2002 /* end confdefs.h.  */
2003 $4
2004 int
2005 main ()
2006 {
2007 static int test_array [1 - 2 * !(($2) < 0)];
2008 test_array [0] = 0;
2009 return test_array [0];
2010
2011   ;
2012   return 0;
2013 }
2014 _ACEOF
2015 if ac_fn_c_try_compile "$LINENO"; then :
2016   ac_hi=-1 ac_mid=-1
2017   while :; do
2018     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2019 /* end confdefs.h.  */
2020 $4
2021 int
2022 main ()
2023 {
2024 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2025 test_array [0] = 0;
2026 return test_array [0];
2027
2028   ;
2029   return 0;
2030 }
2031 _ACEOF
2032 if ac_fn_c_try_compile "$LINENO"; then :
2033   ac_lo=$ac_mid; break
2034 else
2035   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2036                         if test $ac_mid -le $ac_hi; then
2037                           ac_lo= ac_hi=
2038                           break
2039                         fi
2040                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2041 fi
2042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2043   done
2044 else
2045   ac_lo= ac_hi=
2046 fi
2047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2048 fi
2049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2050 # Binary search between lo and hi bounds.
2051 while test "x$ac_lo" != "x$ac_hi"; do
2052   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2053   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2054 /* end confdefs.h.  */
2055 $4
2056 int
2057 main ()
2058 {
2059 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2060 test_array [0] = 0;
2061 return test_array [0];
2062
2063   ;
2064   return 0;
2065 }
2066 _ACEOF
2067 if ac_fn_c_try_compile "$LINENO"; then :
2068   ac_hi=$ac_mid
2069 else
2070   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2071 fi
2072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2073 done
2074 case $ac_lo in #((
2075 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2076 '') ac_retval=1 ;;
2077 esac
2078   else
2079     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2080 /* end confdefs.h.  */
2081 $4
2082 static long int longval () { return $2; }
2083 static unsigned long int ulongval () { return $2; }
2084 #include <stdio.h>
2085 #include <stdlib.h>
2086 int
2087 main ()
2088 {
2089
2090   FILE *f = fopen ("conftest.val", "w");
2091   if (! f)
2092     return 1;
2093   if (($2) < 0)
2094     {
2095       long int i = longval ();
2096       if (i != ($2))
2097         return 1;
2098       fprintf (f, "%ld", i);
2099     }
2100   else
2101     {
2102       unsigned long int i = ulongval ();
2103       if (i != ($2))
2104         return 1;
2105       fprintf (f, "%lu", i);
2106     }
2107   /* Do not output a trailing newline, as this causes \r\n confusion
2108      on some platforms.  */
2109   return ferror (f) || fclose (f) != 0;
2110
2111   ;
2112   return 0;
2113 }
2114 _ACEOF
2115 if ac_fn_c_try_run "$LINENO"; then :
2116   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2117 else
2118   ac_retval=1
2119 fi
2120 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2121   conftest.$ac_objext conftest.beam conftest.$ac_ext
2122 rm -f conftest.val
2123
2124   fi
2125   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2126   as_fn_set_status $ac_retval
2127
2128 } # ac_fn_c_compute_int
2129
2130 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2131 # -------------------------------------------
2132 # Tests whether TYPE exists after having included INCLUDES, setting cache
2133 # variable VAR accordingly.
2134 ac_fn_c_check_type ()
2135 {
2136   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2137   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2138 $as_echo_n "checking for $2... " >&6; }
2139 if eval \${$3+:} false; then :
2140   $as_echo_n "(cached) " >&6
2141 else
2142   eval "$3=no"
2143   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2144 /* end confdefs.h.  */
2145 $4
2146 int
2147 main ()
2148 {
2149 if (sizeof ($2))
2150          return 0;
2151   ;
2152   return 0;
2153 }
2154 _ACEOF
2155 if ac_fn_c_try_compile "$LINENO"; then :
2156   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2157 /* end confdefs.h.  */
2158 $4
2159 int
2160 main ()
2161 {
2162 if (sizeof (($2)))
2163             return 0;
2164   ;
2165   return 0;
2166 }
2167 _ACEOF
2168 if ac_fn_c_try_compile "$LINENO"; then :
2169
2170 else
2171   eval "$3=yes"
2172 fi
2173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2174 fi
2175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2176 fi
2177 eval ac_res=\$$3
2178                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2179 $as_echo "$ac_res" >&6; }
2180   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2181
2182 } # ac_fn_c_check_type
2183
2184 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2185 # ---------------------------------------------
2186 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2187 # accordingly.
2188 ac_fn_c_check_decl ()
2189 {
2190   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2191   as_decl_name=`echo $2|sed 's/ *(.*//'`
2192   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2193   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2194 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2195 if eval \${$3+:} false; then :
2196   $as_echo_n "(cached) " >&6
2197 else
2198   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2199 /* end confdefs.h.  */
2200 $4
2201 int
2202 main ()
2203 {
2204 #ifndef $as_decl_name
2205 #ifdef __cplusplus
2206   (void) $as_decl_use;
2207 #else
2208   (void) $as_decl_name;
2209 #endif
2210 #endif
2211
2212   ;
2213   return 0;
2214 }
2215 _ACEOF
2216 if ac_fn_c_try_compile "$LINENO"; then :
2217   eval "$3=yes"
2218 else
2219   eval "$3=no"
2220 fi
2221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2222 fi
2223 eval ac_res=\$$3
2224                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2225 $as_echo "$ac_res" >&6; }
2226   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2227
2228 } # ac_fn_c_check_decl
2229 cat >config.log <<_ACEOF
2230 This file contains any messages produced by compilers while
2231 running configure, to aid debugging if configure makes a mistake.
2232
2233 It was created by binutils $as_me 2.32.90, which was
2234 generated by GNU Autoconf 2.69.  Invocation command line was
2235
2236   $ $0 $@
2237
2238 _ACEOF
2239 exec 5>>config.log
2240 {
2241 cat <<_ASUNAME
2242 ## --------- ##
2243 ## Platform. ##
2244 ## --------- ##
2245
2246 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2247 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2248 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2249 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2250 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2251
2252 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2253 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2254
2255 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2256 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2257 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2258 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2259 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2260 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2261 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2262
2263 _ASUNAME
2264
2265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2266 for as_dir in $PATH
2267 do
2268   IFS=$as_save_IFS
2269   test -z "$as_dir" && as_dir=.
2270     $as_echo "PATH: $as_dir"
2271   done
2272 IFS=$as_save_IFS
2273
2274 } >&5
2275
2276 cat >&5 <<_ACEOF
2277
2278
2279 ## ----------- ##
2280 ## Core tests. ##
2281 ## ----------- ##
2282
2283 _ACEOF
2284
2285
2286 # Keep a trace of the command line.
2287 # Strip out --no-create and --no-recursion so they do not pile up.
2288 # Strip out --silent because we don't want to record it for future runs.
2289 # Also quote any args containing shell meta-characters.
2290 # Make two passes to allow for proper duplicate-argument suppression.
2291 ac_configure_args=
2292 ac_configure_args0=
2293 ac_configure_args1=
2294 ac_must_keep_next=false
2295 for ac_pass in 1 2
2296 do
2297   for ac_arg
2298   do
2299     case $ac_arg in
2300     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2301     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2302     | -silent | --silent | --silen | --sile | --sil)
2303       continue ;;
2304     *\'*)
2305       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2306     esac
2307     case $ac_pass in
2308     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2309     2)
2310       as_fn_append ac_configure_args1 " '$ac_arg'"
2311       if test $ac_must_keep_next = true; then
2312         ac_must_keep_next=false # Got value, back to normal.
2313       else
2314         case $ac_arg in
2315           *=* | --config-cache | -C | -disable-* | --disable-* \
2316           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2317           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2318           | -with-* | --with-* | -without-* | --without-* | --x)
2319             case "$ac_configure_args0 " in
2320               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2321             esac
2322             ;;
2323           -* ) ac_must_keep_next=true ;;
2324         esac
2325       fi
2326       as_fn_append ac_configure_args " '$ac_arg'"
2327       ;;
2328     esac
2329   done
2330 done
2331 { ac_configure_args0=; unset ac_configure_args0;}
2332 { ac_configure_args1=; unset ac_configure_args1;}
2333
2334 # When interrupted or exit'd, cleanup temporary files, and complete
2335 # config.log.  We remove comments because anyway the quotes in there
2336 # would cause problems or look ugly.
2337 # WARNING: Use '\'' to represent an apostrophe within the trap.
2338 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2339 trap 'exit_status=$?
2340   # Save into config.log some information that might help in debugging.
2341   {
2342     echo
2343
2344     $as_echo "## ---------------- ##
2345 ## Cache variables. ##
2346 ## ---------------- ##"
2347     echo
2348     # The following way of writing the cache mishandles newlines in values,
2349 (
2350   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2351     eval ac_val=\$$ac_var
2352     case $ac_val in #(
2353     *${as_nl}*)
2354       case $ac_var in #(
2355       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2356 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2357       esac
2358       case $ac_var in #(
2359       _ | IFS | as_nl) ;; #(
2360       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2361       *) { eval $ac_var=; unset $ac_var;} ;;
2362       esac ;;
2363     esac
2364   done
2365   (set) 2>&1 |
2366     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2367     *${as_nl}ac_space=\ *)
2368       sed -n \
2369         "s/'\''/'\''\\\\'\'''\''/g;
2370           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2371       ;; #(
2372     *)
2373       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2374       ;;
2375     esac |
2376     sort
2377 )
2378     echo
2379
2380     $as_echo "## ----------------- ##
2381 ## Output variables. ##
2382 ## ----------------- ##"
2383     echo
2384     for ac_var in $ac_subst_vars
2385     do
2386       eval ac_val=\$$ac_var
2387       case $ac_val in
2388       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2389       esac
2390       $as_echo "$ac_var='\''$ac_val'\''"
2391     done | sort
2392     echo
2393
2394     if test -n "$ac_subst_files"; then
2395       $as_echo "## ------------------- ##
2396 ## File substitutions. ##
2397 ## ------------------- ##"
2398       echo
2399       for ac_var in $ac_subst_files
2400       do
2401         eval ac_val=\$$ac_var
2402         case $ac_val in
2403         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2404         esac
2405         $as_echo "$ac_var='\''$ac_val'\''"
2406       done | sort
2407       echo
2408     fi
2409
2410     if test -s confdefs.h; then
2411       $as_echo "## ----------- ##
2412 ## confdefs.h. ##
2413 ## ----------- ##"
2414       echo
2415       cat confdefs.h
2416       echo
2417     fi
2418     test "$ac_signal" != 0 &&
2419       $as_echo "$as_me: caught signal $ac_signal"
2420     $as_echo "$as_me: exit $exit_status"
2421   } >&5
2422   rm -f core *.core core.conftest.* &&
2423     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2424     exit $exit_status
2425 ' 0
2426 for ac_signal in 1 2 13 15; do
2427   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2428 done
2429 ac_signal=0
2430
2431 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2432 rm -f -r conftest* confdefs.h
2433
2434 $as_echo "/* confdefs.h */" > confdefs.h
2435
2436 # Predefined preprocessor variables.
2437
2438 cat >>confdefs.h <<_ACEOF
2439 #define PACKAGE_NAME "$PACKAGE_NAME"
2440 _ACEOF
2441
2442 cat >>confdefs.h <<_ACEOF
2443 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2444 _ACEOF
2445
2446 cat >>confdefs.h <<_ACEOF
2447 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2448 _ACEOF
2449
2450 cat >>confdefs.h <<_ACEOF
2451 #define PACKAGE_STRING "$PACKAGE_STRING"
2452 _ACEOF
2453
2454 cat >>confdefs.h <<_ACEOF
2455 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2456 _ACEOF
2457
2458 cat >>confdefs.h <<_ACEOF
2459 #define PACKAGE_URL "$PACKAGE_URL"
2460 _ACEOF
2461
2462
2463 # Let the site file select an alternate cache file if it wants to.
2464 # Prefer an explicitly selected file to automatically selected ones.
2465 ac_site_file1=NONE
2466 ac_site_file2=NONE
2467 if test -n "$CONFIG_SITE"; then
2468   # We do not want a PATH search for config.site.
2469   case $CONFIG_SITE in #((
2470     -*)  ac_site_file1=./$CONFIG_SITE;;
2471     */*) ac_site_file1=$CONFIG_SITE;;
2472     *)   ac_site_file1=./$CONFIG_SITE;;
2473   esac
2474 elif test "x$prefix" != xNONE; then
2475   ac_site_file1=$prefix/share/config.site
2476   ac_site_file2=$prefix/etc/config.site
2477 else
2478   ac_site_file1=$ac_default_prefix/share/config.site
2479   ac_site_file2=$ac_default_prefix/etc/config.site
2480 fi
2481 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2482 do
2483   test "x$ac_site_file" = xNONE && continue
2484   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2485     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2486 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2487     sed 's/^/| /' "$ac_site_file" >&5
2488     . "$ac_site_file" \
2489       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2490 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2491 as_fn_error $? "failed to load site script $ac_site_file
2492 See \`config.log' for more details" "$LINENO" 5; }
2493   fi
2494 done
2495
2496 if test -r "$cache_file"; then
2497   # Some versions of bash will fail to source /dev/null (special files
2498   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2499   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2500     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2501 $as_echo "$as_me: loading cache $cache_file" >&6;}
2502     case $cache_file in
2503       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2504       *)                      . "./$cache_file";;
2505     esac
2506   fi
2507 else
2508   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2509 $as_echo "$as_me: creating cache $cache_file" >&6;}
2510   >$cache_file
2511 fi
2512
2513 as_fn_append ac_header_list " stdlib.h"
2514 as_fn_append ac_header_list " unistd.h"
2515 as_fn_append ac_header_list " sys/param.h"
2516 # Check that the precious variables saved in the cache have kept the same
2517 # value.
2518 ac_cache_corrupted=false
2519 for ac_var in $ac_precious_vars; do
2520   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2521   eval ac_new_set=\$ac_env_${ac_var}_set
2522   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2523   eval ac_new_val=\$ac_env_${ac_var}_value
2524   case $ac_old_set,$ac_new_set in
2525     set,)
2526       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2527 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2528       ac_cache_corrupted=: ;;
2529     ,set)
2530       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2531 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2532       ac_cache_corrupted=: ;;
2533     ,);;
2534     *)
2535       if test "x$ac_old_val" != "x$ac_new_val"; then
2536         # differences in whitespace do not lead to failure.
2537         ac_old_val_w=`echo x $ac_old_val`
2538         ac_new_val_w=`echo x $ac_new_val`
2539         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2540           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2541 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2542           ac_cache_corrupted=:
2543         else
2544           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2545 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2546           eval $ac_var=\$ac_old_val
2547         fi
2548         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2549 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2550         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2551 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2552       fi;;
2553   esac
2554   # Pass precious variables to config.status.
2555   if test "$ac_new_set" = set; then
2556     case $ac_new_val in
2557     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2558     *) ac_arg=$ac_var=$ac_new_val ;;
2559     esac
2560     case " $ac_configure_args " in
2561       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2562       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2563     esac
2564   fi
2565 done
2566 if $ac_cache_corrupted; then
2567   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2568 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2569   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2570 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2571   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2572 fi
2573 ## -------------------- ##
2574 ## Main body of script. ##
2575 ## -------------------- ##
2576
2577 ac_ext=c
2578 ac_cpp='$CPP $CPPFLAGS'
2579 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2580 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2581 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2582
2583
2584
2585
2586
2587
2588
2589 ac_aux_dir=
2590 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2591   if test -f "$ac_dir/install-sh"; then
2592     ac_aux_dir=$ac_dir
2593     ac_install_sh="$ac_aux_dir/install-sh -c"
2594     break
2595   elif test -f "$ac_dir/install.sh"; then
2596     ac_aux_dir=$ac_dir
2597     ac_install_sh="$ac_aux_dir/install.sh -c"
2598     break
2599   elif test -f "$ac_dir/shtool"; then
2600     ac_aux_dir=$ac_dir
2601     ac_install_sh="$ac_aux_dir/shtool install -c"
2602     break
2603   fi
2604 done
2605 if test -z "$ac_aux_dir"; then
2606   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2607 fi
2608
2609 # These three variables are undocumented and unsupported,
2610 # and are intended to be withdrawn in a future Autoconf release.
2611 # They can cause serious problems if a builder's source tree is in a directory
2612 # whose full name contains unusual characters.
2613 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2614 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2615 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2616
2617
2618 # Make sure we can run config.sub.
2619 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2620   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2621
2622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2623 $as_echo_n "checking build system type... " >&6; }
2624 if ${ac_cv_build+:} false; then :
2625   $as_echo_n "(cached) " >&6
2626 else
2627   ac_build_alias=$build_alias
2628 test "x$ac_build_alias" = x &&
2629   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2630 test "x$ac_build_alias" = x &&
2631   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2632 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2633   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2634
2635 fi
2636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2637 $as_echo "$ac_cv_build" >&6; }
2638 case $ac_cv_build in
2639 *-*-*) ;;
2640 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2641 esac
2642 build=$ac_cv_build
2643 ac_save_IFS=$IFS; IFS='-'
2644 set x $ac_cv_build
2645 shift
2646 build_cpu=$1
2647 build_vendor=$2
2648 shift; shift
2649 # Remember, the first character of IFS is used to create $*,
2650 # except with old shells:
2651 build_os=$*
2652 IFS=$ac_save_IFS
2653 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2654
2655
2656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2657 $as_echo_n "checking host system type... " >&6; }
2658 if ${ac_cv_host+:} false; then :
2659   $as_echo_n "(cached) " >&6
2660 else
2661   if test "x$host_alias" = x; then
2662   ac_cv_host=$ac_cv_build
2663 else
2664   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2665     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2666 fi
2667
2668 fi
2669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2670 $as_echo "$ac_cv_host" >&6; }
2671 case $ac_cv_host in
2672 *-*-*) ;;
2673 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2674 esac
2675 host=$ac_cv_host
2676 ac_save_IFS=$IFS; IFS='-'
2677 set x $ac_cv_host
2678 shift
2679 host_cpu=$1
2680 host_vendor=$2
2681 shift; shift
2682 # Remember, the first character of IFS is used to create $*,
2683 # except with old shells:
2684 host_os=$*
2685 IFS=$ac_save_IFS
2686 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2687
2688
2689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2690 $as_echo_n "checking target system type... " >&6; }
2691 if ${ac_cv_target+:} false; then :
2692   $as_echo_n "(cached) " >&6
2693 else
2694   if test "x$target_alias" = x; then
2695   ac_cv_target=$ac_cv_host
2696 else
2697   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2698     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2699 fi
2700
2701 fi
2702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2703 $as_echo "$ac_cv_target" >&6; }
2704 case $ac_cv_target in
2705 *-*-*) ;;
2706 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2707 esac
2708 target=$ac_cv_target
2709 ac_save_IFS=$IFS; IFS='-'
2710 set x $ac_cv_target
2711 shift
2712 target_cpu=$1
2713 target_vendor=$2
2714 shift; shift
2715 # Remember, the first character of IFS is used to create $*,
2716 # except with old shells:
2717 target_os=$*
2718 IFS=$ac_save_IFS
2719 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2720
2721
2722 # The aliases save the names the user supplied, while $host etc.
2723 # will get canonicalized.
2724 test -n "$target_alias" &&
2725   test "$program_prefix$program_suffix$program_transform_name" = \
2726     NONENONEs,x,x, &&
2727   program_prefix=${target_alias}-
2728 # Expand $ac_aux_dir to an absolute path.
2729 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2730
2731 ac_ext=c
2732 ac_cpp='$CPP $CPPFLAGS'
2733 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2734 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2735 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2736 if test -n "$ac_tool_prefix"; then
2737   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2738 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2740 $as_echo_n "checking for $ac_word... " >&6; }
2741 if ${ac_cv_prog_CC+:} false; then :
2742   $as_echo_n "(cached) " >&6
2743 else
2744   if test -n "$CC"; then
2745   ac_cv_prog_CC="$CC" # Let the user override the test.
2746 else
2747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2748 for as_dir in $PATH
2749 do
2750   IFS=$as_save_IFS
2751   test -z "$as_dir" && as_dir=.
2752     for ac_exec_ext in '' $ac_executable_extensions; do
2753   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2754     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2755     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2756     break 2
2757   fi
2758 done
2759   done
2760 IFS=$as_save_IFS
2761
2762 fi
2763 fi
2764 CC=$ac_cv_prog_CC
2765 if test -n "$CC"; then
2766   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2767 $as_echo "$CC" >&6; }
2768 else
2769   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2770 $as_echo "no" >&6; }
2771 fi
2772
2773
2774 fi
2775 if test -z "$ac_cv_prog_CC"; then
2776   ac_ct_CC=$CC
2777   # Extract the first word of "gcc", so it can be a program name with args.
2778 set dummy gcc; ac_word=$2
2779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2780 $as_echo_n "checking for $ac_word... " >&6; }
2781 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2782   $as_echo_n "(cached) " >&6
2783 else
2784   if test -n "$ac_ct_CC"; then
2785   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2786 else
2787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2788 for as_dir in $PATH
2789 do
2790   IFS=$as_save_IFS
2791   test -z "$as_dir" && as_dir=.
2792     for ac_exec_ext in '' $ac_executable_extensions; do
2793   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2794     ac_cv_prog_ac_ct_CC="gcc"
2795     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2796     break 2
2797   fi
2798 done
2799   done
2800 IFS=$as_save_IFS
2801
2802 fi
2803 fi
2804 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2805 if test -n "$ac_ct_CC"; then
2806   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2807 $as_echo "$ac_ct_CC" >&6; }
2808 else
2809   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2810 $as_echo "no" >&6; }
2811 fi
2812
2813   if test "x$ac_ct_CC" = x; then
2814     CC=""
2815   else
2816     case $cross_compiling:$ac_tool_warned in
2817 yes:)
2818 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2819 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2820 ac_tool_warned=yes ;;
2821 esac
2822     CC=$ac_ct_CC
2823   fi
2824 else
2825   CC="$ac_cv_prog_CC"
2826 fi
2827
2828 if test -z "$CC"; then
2829           if test -n "$ac_tool_prefix"; then
2830     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2831 set dummy ${ac_tool_prefix}cc; ac_word=$2
2832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2833 $as_echo_n "checking for $ac_word... " >&6; }
2834 if ${ac_cv_prog_CC+:} false; then :
2835   $as_echo_n "(cached) " >&6
2836 else
2837   if test -n "$CC"; then
2838   ac_cv_prog_CC="$CC" # Let the user override the test.
2839 else
2840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2841 for as_dir in $PATH
2842 do
2843   IFS=$as_save_IFS
2844   test -z "$as_dir" && as_dir=.
2845     for ac_exec_ext in '' $ac_executable_extensions; do
2846   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2847     ac_cv_prog_CC="${ac_tool_prefix}cc"
2848     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2849     break 2
2850   fi
2851 done
2852   done
2853 IFS=$as_save_IFS
2854
2855 fi
2856 fi
2857 CC=$ac_cv_prog_CC
2858 if test -n "$CC"; then
2859   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2860 $as_echo "$CC" >&6; }
2861 else
2862   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2863 $as_echo "no" >&6; }
2864 fi
2865
2866
2867   fi
2868 fi
2869 if test -z "$CC"; then
2870   # Extract the first word of "cc", so it can be a program name with args.
2871 set dummy cc; ac_word=$2
2872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2873 $as_echo_n "checking for $ac_word... " >&6; }
2874 if ${ac_cv_prog_CC+:} false; then :
2875   $as_echo_n "(cached) " >&6
2876 else
2877   if test -n "$CC"; then
2878   ac_cv_prog_CC="$CC" # Let the user override the test.
2879 else
2880   ac_prog_rejected=no
2881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2882 for as_dir in $PATH
2883 do
2884   IFS=$as_save_IFS
2885   test -z "$as_dir" && as_dir=.
2886     for ac_exec_ext in '' $ac_executable_extensions; do
2887   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2888     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2889        ac_prog_rejected=yes
2890        continue
2891      fi
2892     ac_cv_prog_CC="cc"
2893     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2894     break 2
2895   fi
2896 done
2897   done
2898 IFS=$as_save_IFS
2899
2900 if test $ac_prog_rejected = yes; then
2901   # We found a bogon in the path, so make sure we never use it.
2902   set dummy $ac_cv_prog_CC
2903   shift
2904   if test $# != 0; then
2905     # We chose a different compiler from the bogus one.
2906     # However, it has the same basename, so the bogon will be chosen
2907     # first if we set CC to just the basename; use the full file name.
2908     shift
2909     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2910   fi
2911 fi
2912 fi
2913 fi
2914 CC=$ac_cv_prog_CC
2915 if test -n "$CC"; then
2916   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2917 $as_echo "$CC" >&6; }
2918 else
2919   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2920 $as_echo "no" >&6; }
2921 fi
2922
2923
2924 fi
2925 if test -z "$CC"; then
2926   if test -n "$ac_tool_prefix"; then
2927   for ac_prog in cl.exe
2928   do
2929     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2930 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2932 $as_echo_n "checking for $ac_word... " >&6; }
2933 if ${ac_cv_prog_CC+:} false; then :
2934   $as_echo_n "(cached) " >&6
2935 else
2936   if test -n "$CC"; then
2937   ac_cv_prog_CC="$CC" # Let the user override the test.
2938 else
2939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2940 for as_dir in $PATH
2941 do
2942   IFS=$as_save_IFS
2943   test -z "$as_dir" && as_dir=.
2944     for ac_exec_ext in '' $ac_executable_extensions; do
2945   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2946     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2947     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2948     break 2
2949   fi
2950 done
2951   done
2952 IFS=$as_save_IFS
2953
2954 fi
2955 fi
2956 CC=$ac_cv_prog_CC
2957 if test -n "$CC"; then
2958   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2959 $as_echo "$CC" >&6; }
2960 else
2961   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2962 $as_echo "no" >&6; }
2963 fi
2964
2965
2966     test -n "$CC" && break
2967   done
2968 fi
2969 if test -z "$CC"; then
2970   ac_ct_CC=$CC
2971   for ac_prog in cl.exe
2972 do
2973   # Extract the first word of "$ac_prog", so it can be a program name with args.
2974 set dummy $ac_prog; ac_word=$2
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2976 $as_echo_n "checking for $ac_word... " >&6; }
2977 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2978   $as_echo_n "(cached) " >&6
2979 else
2980   if test -n "$ac_ct_CC"; then
2981   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2982 else
2983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2984 for as_dir in $PATH
2985 do
2986   IFS=$as_save_IFS
2987   test -z "$as_dir" && as_dir=.
2988     for ac_exec_ext in '' $ac_executable_extensions; do
2989   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2990     ac_cv_prog_ac_ct_CC="$ac_prog"
2991     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2992     break 2
2993   fi
2994 done
2995   done
2996 IFS=$as_save_IFS
2997
2998 fi
2999 fi
3000 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3001 if test -n "$ac_ct_CC"; then
3002   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3003 $as_echo "$ac_ct_CC" >&6; }
3004 else
3005   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3006 $as_echo "no" >&6; }
3007 fi
3008
3009
3010   test -n "$ac_ct_CC" && break
3011 done
3012
3013   if test "x$ac_ct_CC" = x; then
3014     CC=""
3015   else
3016     case $cross_compiling:$ac_tool_warned in
3017 yes:)
3018 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3019 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3020 ac_tool_warned=yes ;;
3021 esac
3022     CC=$ac_ct_CC
3023   fi
3024 fi
3025
3026 fi
3027
3028
3029 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3030 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3031 as_fn_error $? "no acceptable C compiler found in \$PATH
3032 See \`config.log' for more details" "$LINENO" 5; }
3033
3034 # Provide some information about the compiler.
3035 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3036 set X $ac_compile
3037 ac_compiler=$2
3038 for ac_option in --version -v -V -qversion; do
3039   { { ac_try="$ac_compiler $ac_option >&5"
3040 case "(($ac_try" in
3041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3042   *) ac_try_echo=$ac_try;;
3043 esac
3044 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3045 $as_echo "$ac_try_echo"; } >&5
3046   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3047   ac_status=$?
3048   if test -s conftest.err; then
3049     sed '10a\
3050 ... rest of stderr output deleted ...
3051          10q' conftest.err >conftest.er1
3052     cat conftest.er1 >&5
3053   fi
3054   rm -f conftest.er1 conftest.err
3055   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3056   test $ac_status = 0; }
3057 done
3058
3059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3060 /* end confdefs.h.  */
3061
3062 int
3063 main ()
3064 {
3065
3066   ;
3067   return 0;
3068 }
3069 _ACEOF
3070 ac_clean_files_save=$ac_clean_files
3071 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3072 # Try to create an executable without -o first, disregard a.out.
3073 # It will help us diagnose broken compilers, and finding out an intuition
3074 # of exeext.
3075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3076 $as_echo_n "checking whether the C compiler works... " >&6; }
3077 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3078
3079 # The possible output files:
3080 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3081
3082 ac_rmfiles=
3083 for ac_file in $ac_files
3084 do
3085   case $ac_file in
3086     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3087     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3088   esac
3089 done
3090 rm -f $ac_rmfiles
3091
3092 if { { ac_try="$ac_link_default"
3093 case "(($ac_try" in
3094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3095   *) ac_try_echo=$ac_try;;
3096 esac
3097 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3098 $as_echo "$ac_try_echo"; } >&5
3099   (eval "$ac_link_default") 2>&5
3100   ac_status=$?
3101   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3102   test $ac_status = 0; }; then :
3103   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3104 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3105 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3106 # so that the user can short-circuit this test for compilers unknown to
3107 # Autoconf.
3108 for ac_file in $ac_files ''
3109 do
3110   test -f "$ac_file" || continue
3111   case $ac_file in
3112     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3113         ;;
3114     [ab].out )
3115         # We found the default executable, but exeext='' is most
3116         # certainly right.
3117         break;;
3118     *.* )
3119         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3120         then :; else
3121            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3122         fi
3123         # We set ac_cv_exeext here because the later test for it is not
3124         # safe: cross compilers may not add the suffix if given an `-o'
3125         # argument, so we may need to know it at that point already.
3126         # Even if this section looks crufty: it has the advantage of
3127         # actually working.
3128         break;;
3129     * )
3130         break;;
3131   esac
3132 done
3133 test "$ac_cv_exeext" = no && ac_cv_exeext=
3134
3135 else
3136   ac_file=''
3137 fi
3138 if test -z "$ac_file"; then :
3139   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3140 $as_echo "no" >&6; }
3141 $as_echo "$as_me: failed program was:" >&5
3142 sed 's/^/| /' conftest.$ac_ext >&5
3143
3144 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3145 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3146 as_fn_error 77 "C compiler cannot create executables
3147 See \`config.log' for more details" "$LINENO" 5; }
3148 else
3149   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3150 $as_echo "yes" >&6; }
3151 fi
3152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3153 $as_echo_n "checking for C compiler default output file name... " >&6; }
3154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3155 $as_echo "$ac_file" >&6; }
3156 ac_exeext=$ac_cv_exeext
3157
3158 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3159 ac_clean_files=$ac_clean_files_save
3160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3161 $as_echo_n "checking for suffix of executables... " >&6; }
3162 if { { ac_try="$ac_link"
3163 case "(($ac_try" in
3164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3165   *) ac_try_echo=$ac_try;;
3166 esac
3167 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3168 $as_echo "$ac_try_echo"; } >&5
3169   (eval "$ac_link") 2>&5
3170   ac_status=$?
3171   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3172   test $ac_status = 0; }; then :
3173   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3174 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3175 # work properly (i.e., refer to `conftest.exe'), while it won't with
3176 # `rm'.
3177 for ac_file in conftest.exe conftest conftest.*; do
3178   test -f "$ac_file" || continue
3179   case $ac_file in
3180     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3181     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3182           break;;
3183     * ) break;;
3184   esac
3185 done
3186 else
3187   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3188 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3189 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3190 See \`config.log' for more details" "$LINENO" 5; }
3191 fi
3192 rm -f conftest conftest$ac_cv_exeext
3193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3194 $as_echo "$ac_cv_exeext" >&6; }
3195
3196 rm -f conftest.$ac_ext
3197 EXEEXT=$ac_cv_exeext
3198 ac_exeext=$EXEEXT
3199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3200 /* end confdefs.h.  */
3201 #include <stdio.h>
3202 int
3203 main ()
3204 {
3205 FILE *f = fopen ("conftest.out", "w");
3206  return ferror (f) || fclose (f) != 0;
3207
3208   ;
3209   return 0;
3210 }
3211 _ACEOF
3212 ac_clean_files="$ac_clean_files conftest.out"
3213 # Check that the compiler produces executables we can run.  If not, either
3214 # the compiler is broken, or we cross compile.
3215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3216 $as_echo_n "checking whether we are cross compiling... " >&6; }
3217 if test "$cross_compiling" != yes; then
3218   { { ac_try="$ac_link"
3219 case "(($ac_try" in
3220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3221   *) ac_try_echo=$ac_try;;
3222 esac
3223 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3224 $as_echo "$ac_try_echo"; } >&5
3225   (eval "$ac_link") 2>&5
3226   ac_status=$?
3227   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3228   test $ac_status = 0; }
3229   if { ac_try='./conftest$ac_cv_exeext'
3230   { { case "(($ac_try" in
3231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3232   *) ac_try_echo=$ac_try;;
3233 esac
3234 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3235 $as_echo "$ac_try_echo"; } >&5
3236   (eval "$ac_try") 2>&5
3237   ac_status=$?
3238   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3239   test $ac_status = 0; }; }; then
3240     cross_compiling=no
3241   else
3242     if test "$cross_compiling" = maybe; then
3243         cross_compiling=yes
3244     else
3245         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3246 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3247 as_fn_error $? "cannot run C compiled programs.
3248 If you meant to cross compile, use \`--host'.
3249 See \`config.log' for more details" "$LINENO" 5; }
3250     fi
3251   fi
3252 fi
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3254 $as_echo "$cross_compiling" >&6; }
3255
3256 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3257 ac_clean_files=$ac_clean_files_save
3258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3259 $as_echo_n "checking for suffix of object files... " >&6; }
3260 if ${ac_cv_objext+:} false; then :
3261   $as_echo_n "(cached) " >&6
3262 else
3263   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3264 /* end confdefs.h.  */
3265
3266 int
3267 main ()
3268 {
3269
3270   ;
3271   return 0;
3272 }
3273 _ACEOF
3274 rm -f conftest.o conftest.obj
3275 if { { ac_try="$ac_compile"
3276 case "(($ac_try" in
3277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3278   *) ac_try_echo=$ac_try;;
3279 esac
3280 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3281 $as_echo "$ac_try_echo"; } >&5
3282   (eval "$ac_compile") 2>&5
3283   ac_status=$?
3284   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3285   test $ac_status = 0; }; then :
3286   for ac_file in conftest.o conftest.obj conftest.*; do
3287   test -f "$ac_file" || continue;
3288   case $ac_file in
3289     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3290     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3291        break;;
3292   esac
3293 done
3294 else
3295   $as_echo "$as_me: failed program was:" >&5
3296 sed 's/^/| /' conftest.$ac_ext >&5
3297
3298 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3299 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3300 as_fn_error $? "cannot compute suffix of object files: cannot compile
3301 See \`config.log' for more details" "$LINENO" 5; }
3302 fi
3303 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3304 fi
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3306 $as_echo "$ac_cv_objext" >&6; }
3307 OBJEXT=$ac_cv_objext
3308 ac_objext=$OBJEXT
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3310 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3311 if ${ac_cv_c_compiler_gnu+:} false; then :
3312   $as_echo_n "(cached) " >&6
3313 else
3314   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3315 /* end confdefs.h.  */
3316
3317 int
3318 main ()
3319 {
3320 #ifndef __GNUC__
3321        choke me
3322 #endif
3323
3324   ;
3325   return 0;
3326 }
3327 _ACEOF
3328 if ac_fn_c_try_compile "$LINENO"; then :
3329   ac_compiler_gnu=yes
3330 else
3331   ac_compiler_gnu=no
3332 fi
3333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3334 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3335
3336 fi
3337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3338 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3339 if test $ac_compiler_gnu = yes; then
3340   GCC=yes
3341 else
3342   GCC=
3343 fi
3344 ac_test_CFLAGS=${CFLAGS+set}
3345 ac_save_CFLAGS=$CFLAGS
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3347 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3348 if ${ac_cv_prog_cc_g+:} false; then :
3349   $as_echo_n "(cached) " >&6
3350 else
3351   ac_save_c_werror_flag=$ac_c_werror_flag
3352    ac_c_werror_flag=yes
3353    ac_cv_prog_cc_g=no
3354    CFLAGS="-g"
3355    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3356 /* end confdefs.h.  */
3357
3358 int
3359 main ()
3360 {
3361
3362   ;
3363   return 0;
3364 }
3365 _ACEOF
3366 if ac_fn_c_try_compile "$LINENO"; then :
3367   ac_cv_prog_cc_g=yes
3368 else
3369   CFLAGS=""
3370       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3371 /* end confdefs.h.  */
3372
3373 int
3374 main ()
3375 {
3376
3377   ;
3378   return 0;
3379 }
3380 _ACEOF
3381 if ac_fn_c_try_compile "$LINENO"; then :
3382
3383 else
3384   ac_c_werror_flag=$ac_save_c_werror_flag
3385          CFLAGS="-g"
3386          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3387 /* end confdefs.h.  */
3388
3389 int
3390 main ()
3391 {
3392
3393   ;
3394   return 0;
3395 }
3396 _ACEOF
3397 if ac_fn_c_try_compile "$LINENO"; then :
3398   ac_cv_prog_cc_g=yes
3399 fi
3400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3401 fi
3402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3403 fi
3404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3405    ac_c_werror_flag=$ac_save_c_werror_flag
3406 fi
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3408 $as_echo "$ac_cv_prog_cc_g" >&6; }
3409 if test "$ac_test_CFLAGS" = set; then
3410   CFLAGS=$ac_save_CFLAGS
3411 elif test $ac_cv_prog_cc_g = yes; then
3412   if test "$GCC" = yes; then
3413     CFLAGS="-g -O2"
3414   else
3415     CFLAGS="-g"
3416   fi
3417 else
3418   if test "$GCC" = yes; then
3419     CFLAGS="-O2"
3420   else
3421     CFLAGS=
3422   fi
3423 fi
3424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3425 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3426 if ${ac_cv_prog_cc_c89+:} false; then :
3427   $as_echo_n "(cached) " >&6
3428 else
3429   ac_cv_prog_cc_c89=no
3430 ac_save_CC=$CC
3431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3432 /* end confdefs.h.  */
3433 #include <stdarg.h>
3434 #include <stdio.h>
3435 struct stat;
3436 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3437 struct buf { int x; };
3438 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3439 static char *e (p, i)
3440      char **p;
3441      int i;
3442 {
3443   return p[i];
3444 }
3445 static char *f (char * (*g) (char **, int), char **p, ...)
3446 {
3447   char *s;
3448   va_list v;
3449   va_start (v,p);
3450   s = g (p, va_arg (v,int));
3451   va_end (v);
3452   return s;
3453 }
3454
3455 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3456    function prototypes and stuff, but not '\xHH' hex character constants.
3457    These don't provoke an error unfortunately, instead are silently treated
3458    as 'x'.  The following induces an error, until -std is added to get
3459    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3460    array size at least.  It's necessary to write '\x00'==0 to get something
3461    that's true only with -std.  */
3462 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3463
3464 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3465    inside strings and character constants.  */
3466 #define FOO(x) 'x'
3467 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3468
3469 int test (int i, double x);
3470 struct s1 {int (*f) (int a);};
3471 struct s2 {int (*f) (double a);};
3472 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3473 int argc;
3474 char **argv;
3475 int
3476 main ()
3477 {
3478 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3479   ;
3480   return 0;
3481 }
3482 _ACEOF
3483 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3484         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3485 do
3486   CC="$ac_save_CC $ac_arg"
3487   if ac_fn_c_try_compile "$LINENO"; then :
3488   ac_cv_prog_cc_c89=$ac_arg
3489 fi
3490 rm -f core conftest.err conftest.$ac_objext
3491   test "x$ac_cv_prog_cc_c89" != "xno" && break
3492 done
3493 rm -f conftest.$ac_ext
3494 CC=$ac_save_CC
3495
3496 fi
3497 # AC_CACHE_VAL
3498 case "x$ac_cv_prog_cc_c89" in
3499   x)
3500     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3501 $as_echo "none needed" >&6; } ;;
3502   xno)
3503     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3504 $as_echo "unsupported" >&6; } ;;
3505   *)
3506     CC="$CC $ac_cv_prog_cc_c89"
3507     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3508 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3509 esac
3510 if test "x$ac_cv_prog_cc_c89" != xno; then :
3511
3512 fi
3513
3514 ac_ext=c
3515 ac_cpp='$CPP $CPPFLAGS'
3516 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3517 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3518 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3519
3520 ac_ext=c
3521 ac_cpp='$CPP $CPPFLAGS'
3522 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3523 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3524 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3526 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3527 if ${am_cv_prog_cc_c_o+:} false; then :
3528   $as_echo_n "(cached) " >&6
3529 else
3530   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3531 /* end confdefs.h.  */
3532
3533 int
3534 main ()
3535 {
3536
3537   ;
3538   return 0;
3539 }
3540 _ACEOF
3541   # Make sure it works both with $CC and with simple cc.
3542   # Following AC_PROG_CC_C_O, we do the test twice because some
3543   # compilers refuse to overwrite an existing .o file with -o,
3544   # though they will create one.
3545   am_cv_prog_cc_c_o=yes
3546   for am_i in 1 2; do
3547     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3548    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3549    ac_status=$?
3550    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3551    (exit $ac_status); } \
3552          && test -f conftest2.$ac_objext; then
3553       : OK
3554     else
3555       am_cv_prog_cc_c_o=no
3556       break
3557     fi
3558   done
3559   rm -f core conftest*
3560   unset am_i
3561 fi
3562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3563 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3564 if test "$am_cv_prog_cc_c_o" != yes; then
3565    # Losing compiler, so override with the script.
3566    # FIXME: It is wrong to rewrite CC.
3567    # But if we don't then we get into trouble of one sort or another.
3568    # A longer-term fix would be to have automake use am__CC in this case,
3569    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3570    CC="$am_aux_dir/compile $CC"
3571 fi
3572 ac_ext=c
3573 ac_cpp='$CPP $CPPFLAGS'
3574 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3575 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3576 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3577
3578
3579
3580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
3581 $as_echo_n "checking for library containing strerror... " >&6; }
3582 if ${ac_cv_search_strerror+:} false; then :
3583   $as_echo_n "(cached) " >&6
3584 else
3585   ac_func_search_save_LIBS=$LIBS
3586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3587 /* end confdefs.h.  */
3588
3589 /* Override any GCC internal prototype to avoid an error.
3590    Use char because int might match the return type of a GCC
3591    builtin and then its argument prototype would still apply.  */
3592 #ifdef __cplusplus
3593 extern "C"
3594 #endif
3595 char strerror ();
3596 int
3597 main ()
3598 {
3599 return strerror ();
3600   ;
3601   return 0;
3602 }
3603 _ACEOF
3604 for ac_lib in '' cposix; do
3605   if test -z "$ac_lib"; then
3606     ac_res="none required"
3607   else
3608     ac_res=-l$ac_lib
3609     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
3610   fi
3611   if ac_fn_c_try_link "$LINENO"; then :
3612   ac_cv_search_strerror=$ac_res
3613 fi
3614 rm -f core conftest.err conftest.$ac_objext \
3615     conftest$ac_exeext
3616   if ${ac_cv_search_strerror+:} false; then :
3617   break
3618 fi
3619 done
3620 if ${ac_cv_search_strerror+:} false; then :
3621
3622 else
3623   ac_cv_search_strerror=no
3624 fi
3625 rm conftest.$ac_ext
3626 LIBS=$ac_func_search_save_LIBS
3627 fi
3628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
3629 $as_echo "$ac_cv_search_strerror" >&6; }
3630 ac_res=$ac_cv_search_strerror
3631 if test "$ac_res" != no; then :
3632   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3633
3634 fi
3635
3636
3637 am__api_version='1.15'
3638
3639 # Find a good install program.  We prefer a C program (faster),
3640 # so one script is as good as another.  But avoid the broken or
3641 # incompatible versions:
3642 # SysV /etc/install, /usr/sbin/install
3643 # SunOS /usr/etc/install
3644 # IRIX /sbin/install
3645 # AIX /bin/install
3646 # AmigaOS /C/install, which installs bootblocks on floppy discs
3647 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3648 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3649 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3650 # OS/2's system install, which has a completely different semantic
3651 # ./install, which can be erroneously created by make from ./install.sh.
3652 # Reject install programs that cannot install multiple files.
3653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3654 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3655 if test -z "$INSTALL"; then
3656 if ${ac_cv_path_install+:} false; then :
3657   $as_echo_n "(cached) " >&6
3658 else
3659   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3660 for as_dir in $PATH
3661 do
3662   IFS=$as_save_IFS
3663   test -z "$as_dir" && as_dir=.
3664     # Account for people who put trailing slashes in PATH elements.
3665 case $as_dir/ in #((
3666   ./ | .// | /[cC]/* | \
3667   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3668   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3669   /usr/ucb/* ) ;;
3670   *)
3671     # OSF1 and SCO ODT 3.0 have their own names for install.
3672     # Don't use installbsd from OSF since it installs stuff as root
3673     # by default.
3674     for ac_prog in ginstall scoinst install; do
3675       for ac_exec_ext in '' $ac_executable_extensions; do
3676         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3677           if test $ac_prog = install &&
3678             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3679             # AIX install.  It has an incompatible calling convention.
3680             :
3681           elif test $ac_prog = install &&
3682             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3683             # program-specific install script used by HP pwplus--don't use.
3684             :
3685           else
3686             rm -rf conftest.one conftest.two conftest.dir
3687             echo one > conftest.one
3688             echo two > conftest.two
3689             mkdir conftest.dir
3690             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3691               test -s conftest.one && test -s conftest.two &&
3692               test -s conftest.dir/conftest.one &&
3693               test -s conftest.dir/conftest.two
3694             then
3695               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3696               break 3
3697             fi
3698           fi
3699         fi
3700       done
3701     done
3702     ;;
3703 esac
3704
3705   done
3706 IFS=$as_save_IFS
3707
3708 rm -rf conftest.one conftest.two conftest.dir
3709
3710 fi
3711   if test "${ac_cv_path_install+set}" = set; then
3712     INSTALL=$ac_cv_path_install
3713   else
3714     # As a last resort, use the slow shell script.  Don't cache a
3715     # value for INSTALL within a source directory, because that will
3716     # break other packages using the cache if that directory is
3717     # removed, or if the value is a relative name.
3718     INSTALL=$ac_install_sh
3719   fi
3720 fi
3721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3722 $as_echo "$INSTALL" >&6; }
3723
3724 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3725 # It thinks the first close brace ends the variable substitution.
3726 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3727
3728 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3729
3730 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3731
3732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3733 $as_echo_n "checking whether build environment is sane... " >&6; }
3734 # Reject unsafe characters in $srcdir or the absolute working directory
3735 # name.  Accept space and tab only in the latter.
3736 am_lf='
3737 '
3738 case `pwd` in
3739   *[\\\"\#\$\&\'\`$am_lf]*)
3740     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3741 esac
3742 case $srcdir in
3743   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
3744     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3745 esac
3746
3747 # Do 'set' in a subshell so we don't clobber the current shell's
3748 # arguments.  Must try -L first in case configure is actually a
3749 # symlink; some systems play weird games with the mod time of symlinks
3750 # (eg FreeBSD returns the mod time of the symlink's containing
3751 # directory).
3752 if (
3753    am_has_slept=no
3754    for am_try in 1 2; do
3755      echo "timestamp, slept: $am_has_slept" > conftest.file
3756      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3757      if test "$*" = "X"; then
3758         # -L didn't work.
3759         set X `ls -t "$srcdir/configure" conftest.file`
3760      fi
3761      if test "$*" != "X $srcdir/configure conftest.file" \
3762         && test "$*" != "X conftest.file $srcdir/configure"; then
3763
3764         # If neither matched, then we have a broken ls.  This can happen
3765         # if, for instance, CONFIG_SHELL is bash and it inherits a
3766         # broken ls alias from the environment.  This has actually
3767         # happened.  Such a system could not be considered "sane".
3768         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3769   alias in your environment" "$LINENO" 5
3770      fi
3771      if test "$2" = conftest.file || test $am_try -eq 2; then
3772        break
3773      fi
3774      # Just in case.
3775      sleep 1
3776      am_has_slept=yes
3777    done
3778    test "$2" = conftest.file
3779    )
3780 then
3781    # Ok.
3782    :
3783 else
3784    as_fn_error $? "newly created file is older than distributed files!
3785 Check your system clock" "$LINENO" 5
3786 fi
3787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3788 $as_echo "yes" >&6; }
3789 # If we didn't sleep, we still need to ensure time stamps of config.status and
3790 # generated files are strictly newer.
3791 am_sleep_pid=
3792 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3793   ( sleep 1 ) &
3794   am_sleep_pid=$!
3795 fi
3796
3797 rm -f conftest.file
3798
3799 test "$program_prefix" != NONE &&
3800   program_transform_name="s&^&$program_prefix&;$program_transform_name"
3801 # Use a double $ so make ignores it.
3802 test "$program_suffix" != NONE &&
3803   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3804 # Double any \ or $.
3805 # By default was `s,x,x', remove it if useless.
3806 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3807 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3808
3809 if test x"${MISSING+set}" != xset; then
3810   case $am_aux_dir in
3811   *\ * | *\     *)
3812     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3813   *)
3814     MISSING="\${SHELL} $am_aux_dir/missing" ;;
3815   esac
3816 fi
3817 # Use eval to expand $SHELL
3818 if eval "$MISSING --is-lightweight"; then
3819   am_missing_run="$MISSING "
3820 else
3821   am_missing_run=
3822   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3823 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3824 fi
3825
3826 if test x"${install_sh+set}" != xset; then
3827   case $am_aux_dir in
3828   *\ * | *\     *)
3829     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3830   *)
3831     install_sh="\${SHELL} $am_aux_dir/install-sh"
3832   esac
3833 fi
3834
3835 # Installed binaries are usually stripped using 'strip' when the user
3836 # run "make install-strip".  However 'strip' might not be the right
3837 # tool to use in cross-compilation environments, therefore Automake
3838 # will honor the 'STRIP' environment variable to overrule this program.
3839 if test "$cross_compiling" != no; then
3840   if test -n "$ac_tool_prefix"; then
3841   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3842 set dummy ${ac_tool_prefix}strip; ac_word=$2
3843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3844 $as_echo_n "checking for $ac_word... " >&6; }
3845 if ${ac_cv_prog_STRIP+:} false; then :
3846   $as_echo_n "(cached) " >&6
3847 else
3848   if test -n "$STRIP"; then
3849   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3850 else
3851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3852 for as_dir in $PATH
3853 do
3854   IFS=$as_save_IFS
3855   test -z "$as_dir" && as_dir=.
3856     for ac_exec_ext in '' $ac_executable_extensions; do
3857   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3858     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3859     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3860     break 2
3861   fi
3862 done
3863   done
3864 IFS=$as_save_IFS
3865
3866 fi
3867 fi
3868 STRIP=$ac_cv_prog_STRIP
3869 if test -n "$STRIP"; then
3870   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3871 $as_echo "$STRIP" >&6; }
3872 else
3873   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3874 $as_echo "no" >&6; }
3875 fi
3876
3877
3878 fi
3879 if test -z "$ac_cv_prog_STRIP"; then
3880   ac_ct_STRIP=$STRIP
3881   # Extract the first word of "strip", so it can be a program name with args.
3882 set dummy strip; ac_word=$2
3883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3884 $as_echo_n "checking for $ac_word... " >&6; }
3885 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3886   $as_echo_n "(cached) " >&6
3887 else
3888   if test -n "$ac_ct_STRIP"; then
3889   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3890 else
3891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3892 for as_dir in $PATH
3893 do
3894   IFS=$as_save_IFS
3895   test -z "$as_dir" && as_dir=.
3896     for ac_exec_ext in '' $ac_executable_extensions; do
3897   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3898     ac_cv_prog_ac_ct_STRIP="strip"
3899     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3900     break 2
3901   fi
3902 done
3903   done
3904 IFS=$as_save_IFS
3905
3906 fi
3907 fi
3908 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3909 if test -n "$ac_ct_STRIP"; then
3910   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3911 $as_echo "$ac_ct_STRIP" >&6; }
3912 else
3913   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3914 $as_echo "no" >&6; }
3915 fi
3916
3917   if test "x$ac_ct_STRIP" = x; then
3918     STRIP=":"
3919   else
3920     case $cross_compiling:$ac_tool_warned in
3921 yes:)
3922 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3923 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3924 ac_tool_warned=yes ;;
3925 esac
3926     STRIP=$ac_ct_STRIP
3927   fi
3928 else
3929   STRIP="$ac_cv_prog_STRIP"
3930 fi
3931
3932 fi
3933 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3934
3935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3936 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3937 if test -z "$MKDIR_P"; then
3938   if ${ac_cv_path_mkdir+:} false; then :
3939   $as_echo_n "(cached) " >&6
3940 else
3941   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3942 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3943 do
3944   IFS=$as_save_IFS
3945   test -z "$as_dir" && as_dir=.
3946     for ac_prog in mkdir gmkdir; do
3947          for ac_exec_ext in '' $ac_executable_extensions; do
3948            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3949            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3950              'mkdir (GNU coreutils) '* | \
3951              'mkdir (coreutils) '* | \
3952              'mkdir (fileutils) '4.1*)
3953                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3954                break 3;;
3955            esac
3956          done
3957        done
3958   done
3959 IFS=$as_save_IFS
3960
3961 fi
3962
3963   test -d ./--version && rmdir ./--version
3964   if test "${ac_cv_path_mkdir+set}" = set; then
3965     MKDIR_P="$ac_cv_path_mkdir -p"
3966   else
3967     # As a last resort, use the slow shell script.  Don't cache a
3968     # value for MKDIR_P within a source directory, because that will
3969     # break other packages using the cache if that directory is
3970     # removed, or if the value is a relative name.
3971     MKDIR_P="$ac_install_sh -d"
3972   fi
3973 fi
3974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3975 $as_echo "$MKDIR_P" >&6; }
3976
3977 for ac_prog in gawk mawk nawk awk
3978 do
3979   # Extract the first word of "$ac_prog", so it can be a program name with args.
3980 set dummy $ac_prog; ac_word=$2
3981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3982 $as_echo_n "checking for $ac_word... " >&6; }
3983 if ${ac_cv_prog_AWK+:} false; then :
3984   $as_echo_n "(cached) " >&6
3985 else
3986   if test -n "$AWK"; then
3987   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3988 else
3989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3990 for as_dir in $PATH
3991 do
3992   IFS=$as_save_IFS
3993   test -z "$as_dir" && as_dir=.
3994     for ac_exec_ext in '' $ac_executable_extensions; do
3995   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3996     ac_cv_prog_AWK="$ac_prog"
3997     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3998     break 2
3999   fi
4000 done
4001   done
4002 IFS=$as_save_IFS
4003
4004 fi
4005 fi
4006 AWK=$ac_cv_prog_AWK
4007 if test -n "$AWK"; then
4008   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4009 $as_echo "$AWK" >&6; }
4010 else
4011   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4012 $as_echo "no" >&6; }
4013 fi
4014
4015
4016   test -n "$AWK" && break
4017 done
4018
4019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4020 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4021 set x ${MAKE-make}
4022 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4023 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4024   $as_echo_n "(cached) " >&6
4025 else
4026   cat >conftest.make <<\_ACEOF
4027 SHELL = /bin/sh
4028 all:
4029         @echo '@@@%%%=$(MAKE)=@@@%%%'
4030 _ACEOF
4031 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4032 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4033   *@@@%%%=?*=@@@%%%*)
4034     eval ac_cv_prog_make_${ac_make}_set=yes;;
4035   *)
4036     eval ac_cv_prog_make_${ac_make}_set=no;;
4037 esac
4038 rm -f conftest.make
4039 fi
4040 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4041   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4042 $as_echo "yes" >&6; }
4043   SET_MAKE=
4044 else
4045   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4046 $as_echo "no" >&6; }
4047   SET_MAKE="MAKE=${MAKE-make}"
4048 fi
4049
4050 rm -rf .tst 2>/dev/null
4051 mkdir .tst 2>/dev/null
4052 if test -d .tst; then
4053   am__leading_dot=.
4054 else
4055   am__leading_dot=_
4056 fi
4057 rmdir .tst 2>/dev/null
4058
4059 DEPDIR="${am__leading_dot}deps"
4060
4061 ac_config_commands="$ac_config_commands depfiles"
4062
4063
4064 am_make=${MAKE-make}
4065 cat > confinc << 'END'
4066 am__doit:
4067         @echo this is the am__doit target
4068 .PHONY: am__doit
4069 END
4070 # If we don't find an include directive, just comment out the code.
4071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4072 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4073 am__include="#"
4074 am__quote=
4075 _am_result=none
4076 # First try GNU make style include.
4077 echo "include confinc" > confmf
4078 # Ignore all kinds of additional output from 'make'.
4079 case `$am_make -s -f confmf 2> /dev/null` in #(
4080 *the\ am__doit\ target*)
4081   am__include=include
4082   am__quote=
4083   _am_result=GNU
4084   ;;
4085 esac
4086 # Now try BSD make style include.
4087 if test "$am__include" = "#"; then
4088    echo '.include "confinc"' > confmf
4089    case `$am_make -s -f confmf 2> /dev/null` in #(
4090    *the\ am__doit\ target*)
4091      am__include=.include
4092      am__quote="\""
4093      _am_result=BSD
4094      ;;
4095    esac
4096 fi
4097
4098
4099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4100 $as_echo "$_am_result" >&6; }
4101 rm -f confinc confmf
4102
4103 # Check whether --enable-dependency-tracking was given.
4104 if test "${enable_dependency_tracking+set}" = set; then :
4105   enableval=$enable_dependency_tracking;
4106 fi
4107
4108 if test "x$enable_dependency_tracking" != xno; then
4109   am_depcomp="$ac_aux_dir/depcomp"
4110   AMDEPBACKSLASH='\'
4111   am__nodep='_no'
4112 fi
4113  if test "x$enable_dependency_tracking" != xno; then
4114   AMDEP_TRUE=
4115   AMDEP_FALSE='#'
4116 else
4117   AMDEP_TRUE='#'
4118   AMDEP_FALSE=
4119 fi
4120
4121
4122 # Check whether --enable-silent-rules was given.
4123 if test "${enable_silent_rules+set}" = set; then :
4124   enableval=$enable_silent_rules;
4125 fi
4126
4127 case $enable_silent_rules in # (((
4128   yes) AM_DEFAULT_VERBOSITY=0;;
4129    no) AM_DEFAULT_VERBOSITY=1;;
4130     *) AM_DEFAULT_VERBOSITY=1;;
4131 esac
4132 am_make=${MAKE-make}
4133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4134 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4135 if ${am_cv_make_support_nested_variables+:} false; then :
4136   $as_echo_n "(cached) " >&6
4137 else
4138   if $as_echo 'TRUE=$(BAR$(V))
4139 BAR0=false
4140 BAR1=true
4141 V=1
4142 am__doit:
4143         @$(TRUE)
4144 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4145   am_cv_make_support_nested_variables=yes
4146 else
4147   am_cv_make_support_nested_variables=no
4148 fi
4149 fi
4150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4151 $as_echo "$am_cv_make_support_nested_variables" >&6; }
4152 if test $am_cv_make_support_nested_variables = yes; then
4153     AM_V='$(V)'
4154   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4155 else
4156   AM_V=$AM_DEFAULT_VERBOSITY
4157   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4158 fi
4159 AM_BACKSLASH='\'
4160
4161 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4162   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4163   # is not polluted with repeated "-I."
4164   am__isrc=' -I$(srcdir)'
4165   # test to see if srcdir already configured
4166   if test -f $srcdir/config.status; then
4167     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4168   fi
4169 fi
4170
4171 # test whether we have cygpath
4172 if test -z "$CYGPATH_W"; then
4173   if (cygpath --version) >/dev/null 2>/dev/null; then
4174     CYGPATH_W='cygpath -w'
4175   else
4176     CYGPATH_W=echo
4177   fi
4178 fi
4179
4180
4181 # Define the identity of the package.
4182  PACKAGE='binutils'
4183  VERSION='2.32.90'
4184
4185
4186 cat >>confdefs.h <<_ACEOF
4187 #define PACKAGE "$PACKAGE"
4188 _ACEOF
4189
4190
4191 cat >>confdefs.h <<_ACEOF
4192 #define VERSION "$VERSION"
4193 _ACEOF
4194
4195 # Some tools Automake needs.
4196
4197 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4198
4199
4200 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4201
4202
4203 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4204
4205
4206 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4207
4208
4209 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4210
4211 # For better backward compatibility.  To be removed once Automake 1.9.x
4212 # dies out for good.  For more background, see:
4213 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4214 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4215 mkdir_p='$(MKDIR_P)'
4216
4217 # We need awk for the "check" target (and possibly the TAP driver).  The
4218 # system "awk" is bad on some platforms.
4219 # Always define AMTAR for backward compatibility.  Yes, it's still used
4220 # in the wild :-(  We should find a proper way to deprecate it ...
4221 AMTAR='$${TAR-tar}'
4222
4223
4224 # We'll loop over all known methods to create a tar archive until one works.
4225 _am_tools='gnutar  pax cpio none'
4226
4227 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4228
4229
4230
4231
4232
4233 depcc="$CC"   am_compiler_list=
4234
4235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4236 $as_echo_n "checking dependency style of $depcc... " >&6; }
4237 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4238   $as_echo_n "(cached) " >&6
4239 else
4240   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4241   # We make a subdir and do the tests there.  Otherwise we can end up
4242   # making bogus files that we don't know about and never remove.  For
4243   # instance it was reported that on HP-UX the gcc test will end up
4244   # making a dummy file named 'D' -- because '-MD' means "put the output
4245   # in D".
4246   rm -rf conftest.dir
4247   mkdir conftest.dir
4248   # Copy depcomp to subdir because otherwise we won't find it if we're
4249   # using a relative directory.
4250   cp "$am_depcomp" conftest.dir
4251   cd conftest.dir
4252   # We will build objects and dependencies in a subdirectory because
4253   # it helps to detect inapplicable dependency modes.  For instance
4254   # both Tru64's cc and ICC support -MD to output dependencies as a
4255   # side effect of compilation, but ICC will put the dependencies in
4256   # the current directory while Tru64 will put them in the object
4257   # directory.
4258   mkdir sub
4259
4260   am_cv_CC_dependencies_compiler_type=none
4261   if test "$am_compiler_list" = ""; then
4262      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4263   fi
4264   am__universal=false
4265   case " $depcc " in #(
4266      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4267      esac
4268
4269   for depmode in $am_compiler_list; do
4270     # Setup a source with many dependencies, because some compilers
4271     # like to wrap large dependency lists on column 80 (with \), and
4272     # we should not choose a depcomp mode which is confused by this.
4273     #
4274     # We need to recreate these files for each test, as the compiler may
4275     # overwrite some of them when testing with obscure command lines.
4276     # This happens at least with the AIX C compiler.
4277     : > sub/conftest.c
4278     for i in 1 2 3 4 5 6; do
4279       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4280       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4281       # Solaris 10 /bin/sh.
4282       echo '/* dummy */' > sub/conftst$i.h
4283     done
4284     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4285
4286     # We check with '-c' and '-o' for the sake of the "dashmstdout"
4287     # mode.  It turns out that the SunPro C++ compiler does not properly
4288     # handle '-M -o', and we need to detect this.  Also, some Intel
4289     # versions had trouble with output in subdirs.
4290     am__obj=sub/conftest.${OBJEXT-o}
4291     am__minus_obj="-o $am__obj"
4292     case $depmode in
4293     gcc)
4294       # This depmode causes a compiler race in universal mode.
4295       test "$am__universal" = false || continue
4296       ;;
4297     nosideeffect)
4298       # After this tag, mechanisms are not by side-effect, so they'll
4299       # only be used when explicitly requested.
4300       if test "x$enable_dependency_tracking" = xyes; then
4301         continue
4302       else
4303         break
4304       fi
4305       ;;
4306     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4307       # This compiler won't grok '-c -o', but also, the minuso test has
4308       # not run yet.  These depmodes are late enough in the game, and
4309       # so weak that their functioning should not be impacted.
4310       am__obj=conftest.${OBJEXT-o}
4311       am__minus_obj=
4312       ;;
4313     none) break ;;
4314     esac
4315     if depmode=$depmode \
4316        source=sub/conftest.c object=$am__obj \
4317        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4318        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4319          >/dev/null 2>conftest.err &&
4320        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4321        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4322        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4323        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4324       # icc doesn't choke on unknown options, it will just issue warnings
4325       # or remarks (even with -Werror).  So we grep stderr for any message
4326       # that says an option was ignored or not supported.
4327       # When given -MP, icc 7.0 and 7.1 complain thusly:
4328       #   icc: Command line warning: ignoring option '-M'; no argument required
4329       # The diagnosis changed in icc 8.0:
4330       #   icc: Command line remark: option '-MP' not supported
4331       if (grep 'ignoring option' conftest.err ||
4332           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4333         am_cv_CC_dependencies_compiler_type=$depmode
4334         break
4335       fi
4336     fi
4337   done
4338
4339   cd ..
4340   rm -rf conftest.dir
4341 else
4342   am_cv_CC_dependencies_compiler_type=none
4343 fi
4344
4345 fi
4346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4347 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4348 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4349
4350  if
4351   test "x$enable_dependency_tracking" != xno \
4352   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4353   am__fastdepCC_TRUE=
4354   am__fastdepCC_FALSE='#'
4355 else
4356   am__fastdepCC_TRUE='#'
4357   am__fastdepCC_FALSE=
4358 fi
4359
4360
4361
4362 # POSIX will say in a future version that running "rm -f" with no argument
4363 # is OK; and we want to be able to make that assumption in our Makefile
4364 # recipes.  So use an aggressive probe to check that the usage we want is
4365 # actually supported "in the wild" to an acceptable degree.
4366 # See automake bug#10828.
4367 # To make any issue more visible, cause the running configure to be aborted
4368 # by default if the 'rm' program in use doesn't match our expectations; the
4369 # user can still override this though.
4370 if rm -f && rm -fr && rm -rf; then : OK; else
4371   cat >&2 <<'END'
4372 Oops!
4373
4374 Your 'rm' program seems unable to run without file operands specified
4375 on the command line, even when the '-f' option is present.  This is contrary
4376 to the behaviour of most rm programs out there, and not conforming with
4377 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4378
4379 Please tell bug-automake@gnu.org about your system, including the value
4380 of your $PATH and any error possibly output before this message.  This
4381 can help us improve future automake versions.
4382
4383 END
4384   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4385     echo 'Configuration will proceed anyway, since you have set the' >&2
4386     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4387     echo >&2
4388   else
4389     cat >&2 <<'END'
4390 Aborting the configuration process, to ensure you take notice of the issue.
4391
4392 You can download and install GNU coreutils to get an 'rm' implementation
4393 that behaves properly: <http://www.gnu.org/software/coreutils/>.
4394
4395 If you want to complete the configuration process using your problematic
4396 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4397 to "yes", and re-run configure.
4398
4399 END
4400     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4401   fi
4402 fi
4403
4404
4405 ac_ext=c
4406 ac_cpp='$CPP $CPPFLAGS'
4407 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4408 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4409 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4410 if test -n "$ac_tool_prefix"; then
4411   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4412 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4414 $as_echo_n "checking for $ac_word... " >&6; }
4415 if ${ac_cv_prog_CC+:} false; then :
4416   $as_echo_n "(cached) " >&6
4417 else
4418   if test -n "$CC"; then
4419   ac_cv_prog_CC="$CC" # Let the user override the test.
4420 else
4421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4422 for as_dir in $PATH
4423 do
4424   IFS=$as_save_IFS
4425   test -z "$as_dir" && as_dir=.
4426     for ac_exec_ext in '' $ac_executable_extensions; do
4427   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4428     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4429     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4430     break 2
4431   fi
4432 done
4433   done
4434 IFS=$as_save_IFS
4435
4436 fi
4437 fi
4438 CC=$ac_cv_prog_CC
4439 if test -n "$CC"; then
4440   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4441 $as_echo "$CC" >&6; }
4442 else
4443   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4444 $as_echo "no" >&6; }
4445 fi
4446
4447
4448 fi
4449 if test -z "$ac_cv_prog_CC"; then
4450   ac_ct_CC=$CC
4451   # Extract the first word of "gcc", so it can be a program name with args.
4452 set dummy gcc; ac_word=$2
4453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4454 $as_echo_n "checking for $ac_word... " >&6; }
4455 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4456   $as_echo_n "(cached) " >&6
4457 else
4458   if test -n "$ac_ct_CC"; then
4459   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4460 else
4461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4462 for as_dir in $PATH
4463 do
4464   IFS=$as_save_IFS
4465   test -z "$as_dir" && as_dir=.
4466     for ac_exec_ext in '' $ac_executable_extensions; do
4467   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4468     ac_cv_prog_ac_ct_CC="gcc"
4469     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4470     break 2
4471   fi
4472 done
4473   done
4474 IFS=$as_save_IFS
4475
4476 fi
4477 fi
4478 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4479 if test -n "$ac_ct_CC"; then
4480   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4481 $as_echo "$ac_ct_CC" >&6; }
4482 else
4483   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4484 $as_echo "no" >&6; }
4485 fi
4486
4487   if test "x$ac_ct_CC" = x; then
4488     CC=""
4489   else
4490     case $cross_compiling:$ac_tool_warned in
4491 yes:)
4492 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4493 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4494 ac_tool_warned=yes ;;
4495 esac
4496     CC=$ac_ct_CC
4497   fi
4498 else
4499   CC="$ac_cv_prog_CC"
4500 fi
4501
4502 if test -z "$CC"; then
4503           if test -n "$ac_tool_prefix"; then
4504     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4505 set dummy ${ac_tool_prefix}cc; ac_word=$2
4506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4507 $as_echo_n "checking for $ac_word... " >&6; }
4508 if ${ac_cv_prog_CC+:} false; then :
4509   $as_echo_n "(cached) " >&6
4510 else
4511   if test -n "$CC"; then
4512   ac_cv_prog_CC="$CC" # Let the user override the test.
4513 else
4514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4515 for as_dir in $PATH
4516 do
4517   IFS=$as_save_IFS
4518   test -z "$as_dir" && as_dir=.
4519     for ac_exec_ext in '' $ac_executable_extensions; do
4520   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4521     ac_cv_prog_CC="${ac_tool_prefix}cc"
4522     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4523     break 2
4524   fi
4525 done
4526   done
4527 IFS=$as_save_IFS
4528
4529 fi
4530 fi
4531 CC=$ac_cv_prog_CC
4532 if test -n "$CC"; then
4533   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4534 $as_echo "$CC" >&6; }
4535 else
4536   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4537 $as_echo "no" >&6; }
4538 fi
4539
4540
4541   fi
4542 fi
4543 if test -z "$CC"; then
4544   # Extract the first word of "cc", so it can be a program name with args.
4545 set dummy cc; ac_word=$2
4546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4547 $as_echo_n "checking for $ac_word... " >&6; }
4548 if ${ac_cv_prog_CC+:} false; then :
4549   $as_echo_n "(cached) " >&6
4550 else
4551   if test -n "$CC"; then
4552   ac_cv_prog_CC="$CC" # Let the user override the test.
4553 else
4554   ac_prog_rejected=no
4555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4556 for as_dir in $PATH
4557 do
4558   IFS=$as_save_IFS
4559   test -z "$as_dir" && as_dir=.
4560     for ac_exec_ext in '' $ac_executable_extensions; do
4561   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4562     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4563        ac_prog_rejected=yes
4564        continue
4565      fi
4566     ac_cv_prog_CC="cc"
4567     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4568     break 2
4569   fi
4570 done
4571   done
4572 IFS=$as_save_IFS
4573
4574 if test $ac_prog_rejected = yes; then
4575   # We found a bogon in the path, so make sure we never use it.
4576   set dummy $ac_cv_prog_CC
4577   shift
4578   if test $# != 0; then
4579     # We chose a different compiler from the bogus one.
4580     # However, it has the same basename, so the bogon will be chosen
4581     # first if we set CC to just the basename; use the full file name.
4582     shift
4583     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4584   fi
4585 fi
4586 fi
4587 fi
4588 CC=$ac_cv_prog_CC
4589 if test -n "$CC"; then
4590   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4591 $as_echo "$CC" >&6; }
4592 else
4593   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4594 $as_echo "no" >&6; }
4595 fi
4596
4597
4598 fi
4599 if test -z "$CC"; then
4600   if test -n "$ac_tool_prefix"; then
4601   for ac_prog in cl.exe
4602   do
4603     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4604 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4606 $as_echo_n "checking for $ac_word... " >&6; }
4607 if ${ac_cv_prog_CC+:} false; then :
4608   $as_echo_n "(cached) " >&6
4609 else
4610   if test -n "$CC"; then
4611   ac_cv_prog_CC="$CC" # Let the user override the test.
4612 else
4613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4614 for as_dir in $PATH
4615 do
4616   IFS=$as_save_IFS
4617   test -z "$as_dir" && as_dir=.
4618     for ac_exec_ext in '' $ac_executable_extensions; do
4619   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4620     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4621     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4622     break 2
4623   fi
4624 done
4625   done
4626 IFS=$as_save_IFS
4627
4628 fi
4629 fi
4630 CC=$ac_cv_prog_CC
4631 if test -n "$CC"; then
4632   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4633 $as_echo "$CC" >&6; }
4634 else
4635   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4636 $as_echo "no" >&6; }
4637 fi
4638
4639
4640     test -n "$CC" && break
4641   done
4642 fi
4643 if test -z "$CC"; then
4644   ac_ct_CC=$CC
4645   for ac_prog in cl.exe
4646 do
4647   # Extract the first word of "$ac_prog", so it can be a program name with args.
4648 set dummy $ac_prog; ac_word=$2
4649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4650 $as_echo_n "checking for $ac_word... " >&6; }
4651 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4652   $as_echo_n "(cached) " >&6
4653 else
4654   if test -n "$ac_ct_CC"; then
4655   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4656 else
4657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4658 for as_dir in $PATH
4659 do
4660   IFS=$as_save_IFS
4661   test -z "$as_dir" && as_dir=.
4662     for ac_exec_ext in '' $ac_executable_extensions; do
4663   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4664     ac_cv_prog_ac_ct_CC="$ac_prog"
4665     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4666     break 2
4667   fi
4668 done
4669   done
4670 IFS=$as_save_IFS
4671
4672 fi
4673 fi
4674 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4675 if test -n "$ac_ct_CC"; then
4676   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4677 $as_echo "$ac_ct_CC" >&6; }
4678 else
4679   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4680 $as_echo "no" >&6; }
4681 fi
4682
4683
4684   test -n "$ac_ct_CC" && break
4685 done
4686
4687   if test "x$ac_ct_CC" = x; then
4688     CC=""
4689   else
4690     case $cross_compiling:$ac_tool_warned in
4691 yes:)
4692 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4693 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4694 ac_tool_warned=yes ;;
4695 esac
4696     CC=$ac_ct_CC
4697   fi
4698 fi
4699
4700 fi
4701
4702
4703 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4704 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4705 as_fn_error $? "no acceptable C compiler found in \$PATH
4706 See \`config.log' for more details" "$LINENO" 5; }
4707
4708 # Provide some information about the compiler.
4709 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4710 set X $ac_compile
4711 ac_compiler=$2
4712 for ac_option in --version -v -V -qversion; do
4713   { { ac_try="$ac_compiler $ac_option >&5"
4714 case "(($ac_try" in
4715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4716   *) ac_try_echo=$ac_try;;
4717 esac
4718 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4719 $as_echo "$ac_try_echo"; } >&5
4720   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4721   ac_status=$?
4722   if test -s conftest.err; then
4723     sed '10a\
4724 ... rest of stderr output deleted ...
4725          10q' conftest.err >conftest.er1
4726     cat conftest.er1 >&5
4727   fi
4728   rm -f conftest.er1 conftest.err
4729   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4730   test $ac_status = 0; }
4731 done
4732
4733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4734 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4735 if ${ac_cv_c_compiler_gnu+:} false; then :
4736   $as_echo_n "(cached) " >&6
4737 else
4738   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4739 /* end confdefs.h.  */
4740
4741 int
4742 main ()
4743 {
4744 #ifndef __GNUC__
4745        choke me
4746 #endif
4747
4748   ;
4749   return 0;
4750 }
4751 _ACEOF
4752 if ac_fn_c_try_compile "$LINENO"; then :
4753   ac_compiler_gnu=yes
4754 else
4755   ac_compiler_gnu=no
4756 fi
4757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4758 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4759
4760 fi
4761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4762 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4763 if test $ac_compiler_gnu = yes; then
4764   GCC=yes
4765 else
4766   GCC=
4767 fi
4768 ac_test_CFLAGS=${CFLAGS+set}
4769 ac_save_CFLAGS=$CFLAGS
4770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4771 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4772 if ${ac_cv_prog_cc_g+:} false; then :
4773   $as_echo_n "(cached) " >&6
4774 else
4775   ac_save_c_werror_flag=$ac_c_werror_flag
4776    ac_c_werror_flag=yes
4777    ac_cv_prog_cc_g=no
4778    CFLAGS="-g"
4779    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4780 /* end confdefs.h.  */
4781
4782 int
4783 main ()
4784 {
4785
4786   ;
4787   return 0;
4788 }
4789 _ACEOF
4790 if ac_fn_c_try_compile "$LINENO"; then :
4791   ac_cv_prog_cc_g=yes
4792 else
4793   CFLAGS=""
4794       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4795 /* end confdefs.h.  */
4796
4797 int
4798 main ()
4799 {
4800
4801   ;
4802   return 0;
4803 }
4804 _ACEOF
4805 if ac_fn_c_try_compile "$LINENO"; then :
4806
4807 else
4808   ac_c_werror_flag=$ac_save_c_werror_flag
4809          CFLAGS="-g"
4810          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4811 /* end confdefs.h.  */
4812
4813 int
4814 main ()
4815 {
4816
4817   ;
4818   return 0;
4819 }
4820 _ACEOF
4821 if ac_fn_c_try_compile "$LINENO"; then :
4822   ac_cv_prog_cc_g=yes
4823 fi
4824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4825 fi
4826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4827 fi
4828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4829    ac_c_werror_flag=$ac_save_c_werror_flag
4830 fi
4831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4832 $as_echo "$ac_cv_prog_cc_g" >&6; }
4833 if test "$ac_test_CFLAGS" = set; then
4834   CFLAGS=$ac_save_CFLAGS
4835 elif test $ac_cv_prog_cc_g = yes; then
4836   if test "$GCC" = yes; then
4837     CFLAGS="-g -O2"
4838   else
4839     CFLAGS="-g"
4840   fi
4841 else
4842   if test "$GCC" = yes; then
4843     CFLAGS="-O2"
4844   else
4845     CFLAGS=
4846   fi
4847 fi
4848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4849 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4850 if ${ac_cv_prog_cc_c89+:} false; then :
4851   $as_echo_n "(cached) " >&6
4852 else
4853   ac_cv_prog_cc_c89=no
4854 ac_save_CC=$CC
4855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4856 /* end confdefs.h.  */
4857 #include <stdarg.h>
4858 #include <stdio.h>
4859 struct stat;
4860 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4861 struct buf { int x; };
4862 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4863 static char *e (p, i)
4864      char **p;
4865      int i;
4866 {
4867   return p[i];
4868 }
4869 static char *f (char * (*g) (char **, int), char **p, ...)
4870 {
4871   char *s;
4872   va_list v;
4873   va_start (v,p);
4874   s = g (p, va_arg (v,int));
4875   va_end (v);
4876   return s;
4877 }
4878
4879 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4880    function prototypes and stuff, but not '\xHH' hex character constants.
4881    These don't provoke an error unfortunately, instead are silently treated
4882    as 'x'.  The following induces an error, until -std is added to get
4883    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4884    array size at least.  It's necessary to write '\x00'==0 to get something
4885    that's true only with -std.  */
4886 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4887
4888 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4889    inside strings and character constants.  */
4890 #define FOO(x) 'x'
4891 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4892
4893 int test (int i, double x);
4894 struct s1 {int (*f) (int a);};
4895 struct s2 {int (*f) (double a);};
4896 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4897 int argc;
4898 char **argv;
4899 int
4900 main ()
4901 {
4902 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4903   ;
4904   return 0;
4905 }
4906 _ACEOF
4907 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4908         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4909 do
4910   CC="$ac_save_CC $ac_arg"
4911   if ac_fn_c_try_compile "$LINENO"; then :
4912   ac_cv_prog_cc_c89=$ac_arg
4913 fi
4914 rm -f core conftest.err conftest.$ac_objext
4915   test "x$ac_cv_prog_cc_c89" != "xno" && break
4916 done
4917 rm -f conftest.$ac_ext
4918 CC=$ac_save_CC
4919
4920 fi
4921 # AC_CACHE_VAL
4922 case "x$ac_cv_prog_cc_c89" in
4923   x)
4924     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4925 $as_echo "none needed" >&6; } ;;
4926   xno)
4927     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4928 $as_echo "unsupported" >&6; } ;;
4929   *)
4930     CC="$CC $ac_cv_prog_cc_c89"
4931     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4932 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4933 esac
4934 if test "x$ac_cv_prog_cc_c89" != xno; then :
4935
4936 fi
4937
4938 ac_ext=c
4939 ac_cpp='$CPP $CPPFLAGS'
4940 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4941 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4942 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4943
4944 ac_ext=c
4945 ac_cpp='$CPP $CPPFLAGS'
4946 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4947 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4948 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4950 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4951 if ${am_cv_prog_cc_c_o+:} false; then :
4952   $as_echo_n "(cached) " >&6
4953 else
4954   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4955 /* end confdefs.h.  */
4956
4957 int
4958 main ()
4959 {
4960
4961   ;
4962   return 0;
4963 }
4964 _ACEOF
4965   # Make sure it works both with $CC and with simple cc.
4966   # Following AC_PROG_CC_C_O, we do the test twice because some
4967   # compilers refuse to overwrite an existing .o file with -o,
4968   # though they will create one.
4969   am_cv_prog_cc_c_o=yes
4970   for am_i in 1 2; do
4971     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4972    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4973    ac_status=$?
4974    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4975    (exit $ac_status); } \
4976          && test -f conftest2.$ac_objext; then
4977       : OK
4978     else
4979       am_cv_prog_cc_c_o=no
4980       break
4981     fi
4982   done
4983   rm -f core conftest*
4984   unset am_i
4985 fi
4986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4987 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4988 if test "$am_cv_prog_cc_c_o" != yes; then
4989    # Losing compiler, so override with the script.
4990    # FIXME: It is wrong to rewrite CC.
4991    # But if we don't then we get into trouble of one sort or another.
4992    # A longer-term fix would be to have automake use am__CC in this case,
4993    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4994    CC="$am_aux_dir/compile $CC"
4995 fi
4996 ac_ext=c
4997 ac_cpp='$CPP $CPPFLAGS'
4998 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4999 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5000 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5001
5002
5003 ac_ext=c
5004 ac_cpp='$CPP $CPPFLAGS'
5005 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5006 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5007 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5009 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5010 # On Suns, sometimes $CPP names a directory.
5011 if test -n "$CPP" && test -d "$CPP"; then
5012   CPP=
5013 fi
5014 if test -z "$CPP"; then
5015   if ${ac_cv_prog_CPP+:} false; then :
5016   $as_echo_n "(cached) " >&6
5017 else
5018       # Double quotes because CPP needs to be expanded
5019     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5020     do
5021       ac_preproc_ok=false
5022 for ac_c_preproc_warn_flag in '' yes
5023 do
5024   # Use a header file that comes with gcc, so configuring glibc
5025   # with a fresh cross-compiler works.
5026   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5027   # <limits.h> exists even on freestanding compilers.
5028   # On the NeXT, cc -E runs the code through the compiler's parser,
5029   # not just through cpp. "Syntax error" is here to catch this case.
5030   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5031 /* end confdefs.h.  */
5032 #ifdef __STDC__
5033 # include <limits.h>
5034 #else
5035 # include <assert.h>
5036 #endif
5037                      Syntax error
5038 _ACEOF
5039 if ac_fn_c_try_cpp "$LINENO"; then :
5040
5041 else
5042   # Broken: fails on valid input.
5043 continue
5044 fi
5045 rm -f conftest.err conftest.i conftest.$ac_ext
5046
5047   # OK, works on sane cases.  Now check whether nonexistent headers
5048   # can be detected and how.
5049   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5050 /* end confdefs.h.  */
5051 #include <ac_nonexistent.h>
5052 _ACEOF
5053 if ac_fn_c_try_cpp "$LINENO"; then :
5054   # Broken: success on invalid input.
5055 continue
5056 else
5057   # Passes both tests.
5058 ac_preproc_ok=:
5059 break
5060 fi
5061 rm -f conftest.err conftest.i conftest.$ac_ext
5062
5063 done
5064 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5065 rm -f conftest.i conftest.err conftest.$ac_ext
5066 if $ac_preproc_ok; then :
5067   break
5068 fi
5069
5070     done
5071     ac_cv_prog_CPP=$CPP
5072
5073 fi
5074   CPP=$ac_cv_prog_CPP
5075 else
5076   ac_cv_prog_CPP=$CPP
5077 fi
5078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5079 $as_echo "$CPP" >&6; }
5080 ac_preproc_ok=false
5081 for ac_c_preproc_warn_flag in '' yes
5082 do
5083   # Use a header file that comes with gcc, so configuring glibc
5084   # with a fresh cross-compiler works.
5085   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5086   # <limits.h> exists even on freestanding compilers.
5087   # On the NeXT, cc -E runs the code through the compiler's parser,
5088   # not just through cpp. "Syntax error" is here to catch this case.
5089   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5090 /* end confdefs.h.  */
5091 #ifdef __STDC__
5092 # include <limits.h>
5093 #else
5094 # include <assert.h>
5095 #endif
5096                      Syntax error
5097 _ACEOF
5098 if ac_fn_c_try_cpp "$LINENO"; then :
5099
5100 else
5101   # Broken: fails on valid input.
5102 continue
5103 fi
5104 rm -f conftest.err conftest.i conftest.$ac_ext
5105
5106   # OK, works on sane cases.  Now check whether nonexistent headers
5107   # can be detected and how.
5108   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5109 /* end confdefs.h.  */
5110 #include <ac_nonexistent.h>
5111 _ACEOF
5112 if ac_fn_c_try_cpp "$LINENO"; then :
5113   # Broken: success on invalid input.
5114 continue
5115 else
5116   # Passes both tests.
5117 ac_preproc_ok=:
5118 break
5119 fi
5120 rm -f conftest.err conftest.i conftest.$ac_ext
5121
5122 done
5123 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5124 rm -f conftest.i conftest.err conftest.$ac_ext
5125 if $ac_preproc_ok; then :
5126
5127 else
5128   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5129 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5130 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5131 See \`config.log' for more details" "$LINENO" 5; }
5132 fi
5133
5134 ac_ext=c
5135 ac_cpp='$CPP $CPPFLAGS'
5136 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5137 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5138 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5139
5140
5141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5142 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5143 if ${ac_cv_path_GREP+:} false; then :
5144   $as_echo_n "(cached) " >&6
5145 else
5146   if test -z "$GREP"; then
5147   ac_path_GREP_found=false
5148   # Loop through the user's path and test for each of PROGNAME-LIST
5149   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5150 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5151 do
5152   IFS=$as_save_IFS
5153   test -z "$as_dir" && as_dir=.
5154     for ac_prog in grep ggrep; do
5155     for ac_exec_ext in '' $ac_executable_extensions; do
5156       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5157       as_fn_executable_p "$ac_path_GREP" || continue
5158 # Check for GNU ac_path_GREP and select it if it is found.
5159   # Check for GNU $ac_path_GREP
5160 case `"$ac_path_GREP" --version 2>&1` in
5161 *GNU*)
5162   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5163 *)
5164   ac_count=0
5165   $as_echo_n 0123456789 >"conftest.in"
5166   while :
5167   do
5168     cat "conftest.in" "conftest.in" >"conftest.tmp"
5169     mv "conftest.tmp" "conftest.in"
5170     cp "conftest.in" "conftest.nl"
5171     $as_echo 'GREP' >> "conftest.nl"
5172     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5173     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5174     as_fn_arith $ac_count + 1 && ac_count=$as_val
5175     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5176       # Best one so far, save it but keep looking for a better one
5177       ac_cv_path_GREP="$ac_path_GREP"
5178       ac_path_GREP_max=$ac_count
5179     fi
5180     # 10*(2^10) chars as input seems more than enough
5181     test $ac_count -gt 10 && break
5182   done
5183   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5184 esac
5185
5186       $ac_path_GREP_found && break 3
5187     done
5188   done
5189   done
5190 IFS=$as_save_IFS
5191   if test -z "$ac_cv_path_GREP"; then
5192     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5193   fi
5194 else
5195   ac_cv_path_GREP=$GREP
5196 fi
5197
5198 fi
5199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5200 $as_echo "$ac_cv_path_GREP" >&6; }
5201  GREP="$ac_cv_path_GREP"
5202
5203
5204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5205 $as_echo_n "checking for egrep... " >&6; }
5206 if ${ac_cv_path_EGREP+:} false; then :
5207   $as_echo_n "(cached) " >&6
5208 else
5209   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5210    then ac_cv_path_EGREP="$GREP -E"
5211    else
5212      if test -z "$EGREP"; then
5213   ac_path_EGREP_found=false
5214   # Loop through the user's path and test for each of PROGNAME-LIST
5215   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5216 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5217 do
5218   IFS=$as_save_IFS
5219   test -z "$as_dir" && as_dir=.
5220     for ac_prog in egrep; do
5221     for ac_exec_ext in '' $ac_executable_extensions; do
5222       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5223       as_fn_executable_p "$ac_path_EGREP" || continue
5224 # Check for GNU ac_path_EGREP and select it if it is found.
5225   # Check for GNU $ac_path_EGREP
5226 case `"$ac_path_EGREP" --version 2>&1` in
5227 *GNU*)
5228   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5229 *)
5230   ac_count=0
5231   $as_echo_n 0123456789 >"conftest.in"
5232   while :
5233   do
5234     cat "conftest.in" "conftest.in" >"conftest.tmp"
5235     mv "conftest.tmp" "conftest.in"
5236     cp "conftest.in" "conftest.nl"
5237     $as_echo 'EGREP' >> "conftest.nl"
5238     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5239     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5240     as_fn_arith $ac_count + 1 && ac_count=$as_val
5241     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5242       # Best one so far, save it but keep looking for a better one
5243       ac_cv_path_EGREP="$ac_path_EGREP"
5244       ac_path_EGREP_max=$ac_count
5245     fi
5246     # 10*(2^10) chars as input seems more than enough
5247     test $ac_count -gt 10 && break
5248   done
5249   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5250 esac
5251
5252       $ac_path_EGREP_found && break 3
5253     done
5254   done
5255   done
5256 IFS=$as_save_IFS
5257   if test -z "$ac_cv_path_EGREP"; then
5258     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5259   fi
5260 else
5261   ac_cv_path_EGREP=$EGREP
5262 fi
5263
5264    fi
5265 fi
5266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5267 $as_echo "$ac_cv_path_EGREP" >&6; }
5268  EGREP="$ac_cv_path_EGREP"
5269
5270
5271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5272 $as_echo_n "checking for ANSI C header files... " >&6; }
5273 if ${ac_cv_header_stdc+:} false; then :
5274   $as_echo_n "(cached) " >&6
5275 else
5276   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5277 /* end confdefs.h.  */
5278 #include <stdlib.h>
5279 #include <stdarg.h>
5280 #include <string.h>
5281 #include <float.h>
5282
5283 int
5284 main ()
5285 {
5286
5287   ;
5288   return 0;
5289 }
5290 _ACEOF
5291 if ac_fn_c_try_compile "$LINENO"; then :
5292   ac_cv_header_stdc=yes
5293 else
5294   ac_cv_header_stdc=no
5295 fi
5296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5297
5298 if test $ac_cv_header_stdc = yes; then
5299   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5300   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5301 /* end confdefs.h.  */
5302 #include <string.h>
5303
5304 _ACEOF
5305 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5306   $EGREP "memchr" >/dev/null 2>&1; then :
5307
5308 else
5309   ac_cv_header_stdc=no
5310 fi
5311 rm -f conftest*
5312
5313 fi
5314
5315 if test $ac_cv_header_stdc = yes; then
5316   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5317   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5318 /* end confdefs.h.  */
5319 #include <stdlib.h>
5320
5321 _ACEOF
5322 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5323   $EGREP "free" >/dev/null 2>&1; then :
5324
5325 else
5326   ac_cv_header_stdc=no
5327 fi
5328 rm -f conftest*
5329
5330 fi
5331
5332 if test $ac_cv_header_stdc = yes; then
5333   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5334   if test "$cross_compiling" = yes; then :
5335   :
5336 else
5337   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5338 /* end confdefs.h.  */
5339 #include <ctype.h>
5340 #include <stdlib.h>
5341 #if ((' ' & 0x0FF) == 0x020)
5342 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5343 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5344 #else
5345 # define ISLOWER(c) \
5346                    (('a' <= (c) && (c) <= 'i') \
5347                      || ('j' <= (c) && (c) <= 'r') \
5348                      || ('s' <= (c) && (c) <= 'z'))
5349 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5350 #endif
5351
5352 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5353 int
5354 main ()
5355 {
5356   int i;
5357   for (i = 0; i < 256; i++)
5358     if (XOR (islower (i), ISLOWER (i))
5359         || toupper (i) != TOUPPER (i))
5360       return 2;
5361   return 0;
5362 }
5363 _ACEOF
5364 if ac_fn_c_try_run "$LINENO"; then :
5365
5366 else
5367   ac_cv_header_stdc=no
5368 fi
5369 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5370   conftest.$ac_objext conftest.beam conftest.$ac_ext
5371 fi
5372
5373 fi
5374 fi
5375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5376 $as_echo "$ac_cv_header_stdc" >&6; }
5377 if test $ac_cv_header_stdc = yes; then
5378
5379 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5380
5381 fi
5382
5383 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5384 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5385                   inttypes.h stdint.h unistd.h
5386 do :
5387   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5388 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5389 "
5390 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5391   cat >>confdefs.h <<_ACEOF
5392 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5393 _ACEOF
5394
5395 fi
5396
5397 done
5398
5399
5400
5401   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5402 if test "x$ac_cv_header_minix_config_h" = xyes; then :
5403   MINIX=yes
5404 else
5405   MINIX=
5406 fi
5407
5408
5409   if test "$MINIX" = yes; then
5410
5411 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5412
5413
5414 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5415
5416
5417 $as_echo "#define _MINIX 1" >>confdefs.h
5418
5419   fi
5420
5421
5422   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5423 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5424 if ${ac_cv_safe_to_define___extensions__+:} false; then :
5425   $as_echo_n "(cached) " >&6
5426 else
5427   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5428 /* end confdefs.h.  */
5429
5430 #         define __EXTENSIONS__ 1
5431           $ac_includes_default
5432 int
5433 main ()
5434 {
5435
5436   ;
5437   return 0;
5438 }
5439 _ACEOF
5440 if ac_fn_c_try_compile "$LINENO"; then :
5441   ac_cv_safe_to_define___extensions__=yes
5442 else
5443   ac_cv_safe_to_define___extensions__=no
5444 fi
5445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5446 fi
5447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5448 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5449   test $ac_cv_safe_to_define___extensions__ = yes &&
5450     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5451
5452   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5453
5454   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5455
5456   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5457
5458   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5459
5460
5461
5462
5463
5464 case `pwd` in
5465   *\ * | *\     *)
5466     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5467 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5468 esac
5469
5470
5471
5472 macro_version='2.2.7a'
5473 macro_revision='1.3134'
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487 ltmain="$ac_aux_dir/ltmain.sh"
5488
5489 # Backslashify metacharacters that are still active within
5490 # double-quoted strings.
5491 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5492
5493 # Same as above, but do not quote variable references.
5494 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5495
5496 # Sed substitution to delay expansion of an escaped shell variable in a
5497 # double_quote_subst'ed string.
5498 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5499
5500 # Sed substitution to delay expansion of an escaped single quote.
5501 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5502
5503 # Sed substitution to avoid accidental globbing in evaled expressions
5504 no_glob_subst='s/\*/\\\*/g'
5505
5506 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5507 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5508 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5509
5510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5511 $as_echo_n "checking how to print strings... " >&6; }
5512 # Test print first, because it will be a builtin if present.
5513 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5514    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5515   ECHO='print -r --'
5516 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5517   ECHO='printf %s\n'
5518 else
5519   # Use this function as a fallback that always works.
5520   func_fallback_echo ()
5521   {
5522     eval 'cat <<_LTECHO_EOF
5523 $1
5524 _LTECHO_EOF'
5525   }
5526   ECHO='func_fallback_echo'
5527 fi
5528
5529 # func_echo_all arg...
5530 # Invoke $ECHO with all args, space-separated.
5531 func_echo_all ()
5532 {
5533     $ECHO ""
5534 }
5535
5536 case "$ECHO" in
5537   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5538 $as_echo "printf" >&6; } ;;
5539   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5540 $as_echo "print -r" >&6; } ;;
5541   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5542 $as_echo "cat" >&6; } ;;
5543 esac
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5559 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5560 if ${ac_cv_path_SED+:} false; then :
5561   $as_echo_n "(cached) " >&6
5562 else
5563             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5564      for ac_i in 1 2 3 4 5 6 7; do
5565        ac_script="$ac_script$as_nl$ac_script"
5566      done
5567      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5568      { ac_script=; unset ac_script;}
5569      if test -z "$SED"; then
5570   ac_path_SED_found=false
5571   # Loop through the user's path and test for each of PROGNAME-LIST
5572   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5573 for as_dir in $PATH
5574 do
5575   IFS=$as_save_IFS
5576   test -z "$as_dir" && as_dir=.
5577     for ac_prog in sed gsed; do
5578     for ac_exec_ext in '' $ac_executable_extensions; do
5579       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5580       as_fn_executable_p "$ac_path_SED" || continue
5581 # Check for GNU ac_path_SED and select it if it is found.
5582   # Check for GNU $ac_path_SED
5583 case `"$ac_path_SED" --version 2>&1` in
5584 *GNU*)
5585   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5586 *)
5587   ac_count=0
5588   $as_echo_n 0123456789 >"conftest.in"
5589   while :
5590   do
5591     cat "conftest.in" "conftest.in" >"conftest.tmp"
5592     mv "conftest.tmp" "conftest.in"
5593     cp "conftest.in" "conftest.nl"
5594     $as_echo '' >> "conftest.nl"
5595     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5596     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5597     as_fn_arith $ac_count + 1 && ac_count=$as_val
5598     if test $ac_count -gt ${ac_path_SED_max-0}; then
5599       # Best one so far, save it but keep looking for a better one
5600       ac_cv_path_SED="$ac_path_SED"
5601       ac_path_SED_max=$ac_count
5602     fi
5603     # 10*(2^10) chars as input seems more than enough
5604     test $ac_count -gt 10 && break
5605   done
5606   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5607 esac
5608
5609       $ac_path_SED_found && break 3
5610     done
5611   done
5612   done
5613 IFS=$as_save_IFS
5614   if test -z "$ac_cv_path_SED"; then
5615     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5616   fi
5617 else
5618   ac_cv_path_SED=$SED
5619 fi
5620
5621 fi
5622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5623 $as_echo "$ac_cv_path_SED" >&6; }
5624  SED="$ac_cv_path_SED"
5625   rm -f conftest.sed
5626
5627 test -z "$SED" && SED=sed
5628 Xsed="$SED -e 1s/^X//"
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5641 $as_echo_n "checking for fgrep... " >&6; }
5642 if ${ac_cv_path_FGREP+:} false; then :
5643   $as_echo_n "(cached) " >&6
5644 else
5645   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5646    then ac_cv_path_FGREP="$GREP -F"
5647    else
5648      if test -z "$FGREP"; then
5649   ac_path_FGREP_found=false
5650   # Loop through the user's path and test for each of PROGNAME-LIST
5651   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5652 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5653 do
5654   IFS=$as_save_IFS
5655   test -z "$as_dir" && as_dir=.
5656     for ac_prog in fgrep; do
5657     for ac_exec_ext in '' $ac_executable_extensions; do
5658       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5659       as_fn_executable_p "$ac_path_FGREP" || continue
5660 # Check for GNU ac_path_FGREP and select it if it is found.
5661   # Check for GNU $ac_path_FGREP
5662 case `"$ac_path_FGREP" --version 2>&1` in
5663 *GNU*)
5664   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5665 *)
5666   ac_count=0
5667   $as_echo_n 0123456789 >"conftest.in"
5668   while :
5669   do
5670     cat "conftest.in" "conftest.in" >"conftest.tmp"
5671     mv "conftest.tmp" "conftest.in"
5672     cp "conftest.in" "conftest.nl"
5673     $as_echo 'FGREP' >> "conftest.nl"
5674     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5675     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5676     as_fn_arith $ac_count + 1 && ac_count=$as_val
5677     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5678       # Best one so far, save it but keep looking for a better one
5679       ac_cv_path_FGREP="$ac_path_FGREP"
5680       ac_path_FGREP_max=$ac_count
5681     fi
5682     # 10*(2^10) chars as input seems more than enough
5683     test $ac_count -gt 10 && break
5684   done
5685   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5686 esac
5687
5688       $ac_path_FGREP_found && break 3
5689     done
5690   done
5691   done
5692 IFS=$as_save_IFS
5693   if test -z "$ac_cv_path_FGREP"; then
5694     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5695   fi
5696 else
5697   ac_cv_path_FGREP=$FGREP
5698 fi
5699
5700    fi
5701 fi
5702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5703 $as_echo "$ac_cv_path_FGREP" >&6; }
5704  FGREP="$ac_cv_path_FGREP"
5705
5706
5707 test -z "$GREP" && GREP=grep
5708
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727 # Check whether --with-gnu-ld was given.
5728 if test "${with_gnu_ld+set}" = set; then :
5729   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5730 else
5731   with_gnu_ld=no
5732 fi
5733
5734 ac_prog=ld
5735 if test "$GCC" = yes; then
5736   # Check if gcc -print-prog-name=ld gives a path.
5737   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5738 $as_echo_n "checking for ld used by $CC... " >&6; }
5739   case $host in
5740   *-*-mingw*)
5741     # gcc leaves a trailing carriage return which upsets mingw
5742     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5743   *)
5744     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5745   esac
5746   case $ac_prog in
5747     # Accept absolute paths.
5748     [\\/]* | ?:[\\/]*)
5749       re_direlt='/[^/][^/]*/\.\./'
5750       # Canonicalize the pathname of ld
5751       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5752       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5753         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5754       done
5755       test -z "$LD" && LD="$ac_prog"
5756       ;;
5757   "")
5758     # If it fails, then pretend we aren't using GCC.
5759     ac_prog=ld
5760     ;;
5761   *)
5762     # If it is relative, then search for the first ld in PATH.
5763     with_gnu_ld=unknown
5764     ;;
5765   esac
5766 elif test "$with_gnu_ld" = yes; then
5767   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5768 $as_echo_n "checking for GNU ld... " >&6; }
5769 else
5770   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5771 $as_echo_n "checking for non-GNU ld... " >&6; }
5772 fi
5773 if ${lt_cv_path_LD+:} false; then :
5774   $as_echo_n "(cached) " >&6
5775 else
5776   if test -z "$LD"; then
5777   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5778   for ac_dir in $PATH; do
5779     IFS="$lt_save_ifs"
5780     test -z "$ac_dir" && ac_dir=.
5781     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5782       lt_cv_path_LD="$ac_dir/$ac_prog"
5783       # Check to see if the program is GNU ld.  I'd rather use --version,
5784       # but apparently some variants of GNU ld only accept -v.
5785       # Break only if it was the GNU/non-GNU ld that we prefer.
5786       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5787       *GNU* | *'with BFD'*)
5788         test "$with_gnu_ld" != no && break
5789         ;;
5790       *)
5791         test "$with_gnu_ld" != yes && break
5792         ;;
5793       esac
5794     fi
5795   done
5796   IFS="$lt_save_ifs"
5797 else
5798   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5799 fi
5800 fi
5801
5802 LD="$lt_cv_path_LD"
5803 if test -n "$LD"; then
5804   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5805 $as_echo "$LD" >&6; }
5806 else
5807   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5808 $as_echo "no" >&6; }
5809 fi
5810 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5812 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5813 if ${lt_cv_prog_gnu_ld+:} false; then :
5814   $as_echo_n "(cached) " >&6
5815 else
5816   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5817 case `$LD -v 2>&1 </dev/null` in
5818 *GNU* | *'with BFD'*)
5819   lt_cv_prog_gnu_ld=yes
5820   ;;
5821 *)
5822   lt_cv_prog_gnu_ld=no
5823   ;;
5824 esac
5825 fi
5826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5827 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5828 with_gnu_ld=$lt_cv_prog_gnu_ld
5829
5830
5831
5832
5833
5834
5835
5836
5837
5838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5839 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5840 if ${lt_cv_path_NM+:} false; then :
5841   $as_echo_n "(cached) " >&6
5842 else
5843   if test -n "$NM"; then
5844   # Let the user override the test.
5845   lt_cv_path_NM="$NM"
5846 else
5847   lt_nm_to_check="${ac_tool_prefix}nm"
5848   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5849     lt_nm_to_check="$lt_nm_to_check nm"
5850   fi
5851   for lt_tmp_nm in $lt_nm_to_check; do
5852     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5853     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5854       IFS="$lt_save_ifs"
5855       test -z "$ac_dir" && ac_dir=.
5856       tmp_nm="$ac_dir/$lt_tmp_nm"
5857       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5858         # Check to see if the nm accepts a BSD-compat flag.
5859         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5860         #   nm: unknown option "B" ignored
5861         # Tru64's nm complains that /dev/null is an invalid object file
5862         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5863         */dev/null* | *'Invalid file or object type'*)
5864           lt_cv_path_NM="$tmp_nm -B"
5865           break
5866           ;;
5867         *)
5868           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5869           */dev/null*)
5870             lt_cv_path_NM="$tmp_nm -p"
5871             break
5872             ;;
5873           *)
5874             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5875             continue # so that we can try to find one that supports BSD flags
5876             ;;
5877           esac
5878           ;;
5879         esac
5880       fi
5881     done
5882     IFS="$lt_save_ifs"
5883   done
5884   : ${lt_cv_path_NM=no}
5885 fi
5886 fi
5887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5888 $as_echo "$lt_cv_path_NM" >&6; }
5889 if test "$lt_cv_path_NM" != "no"; then
5890   NM="$lt_cv_path_NM"
5891 else
5892   # Didn't find any BSD compatible name lister, look for dumpbin.
5893   if test -n "$DUMPBIN"; then :
5894     # Let the user override the test.
5895   else
5896     if test -n "$ac_tool_prefix"; then
5897   for ac_prog in dumpbin "link -dump"
5898   do
5899     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5900 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5902 $as_echo_n "checking for $ac_word... " >&6; }
5903 if ${ac_cv_prog_DUMPBIN+:} false; then :
5904   $as_echo_n "(cached) " >&6
5905 else
5906   if test -n "$DUMPBIN"; then
5907   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5908 else
5909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5910 for as_dir in $PATH
5911 do
5912   IFS=$as_save_IFS
5913   test -z "$as_dir" && as_dir=.
5914     for ac_exec_ext in '' $ac_executable_extensions; do
5915   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5916     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5917     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5918     break 2
5919   fi
5920 done
5921   done
5922 IFS=$as_save_IFS
5923
5924 fi
5925 fi
5926 DUMPBIN=$ac_cv_prog_DUMPBIN
5927 if test -n "$DUMPBIN"; then
5928   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5929 $as_echo "$DUMPBIN" >&6; }
5930 else
5931   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5932 $as_echo "no" >&6; }
5933 fi
5934
5935
5936     test -n "$DUMPBIN" && break
5937   done
5938 fi
5939 if test -z "$DUMPBIN"; then
5940   ac_ct_DUMPBIN=$DUMPBIN
5941   for ac_prog in dumpbin "link -dump"
5942 do
5943   # Extract the first word of "$ac_prog", so it can be a program name with args.
5944 set dummy $ac_prog; ac_word=$2
5945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5946 $as_echo_n "checking for $ac_word... " >&6; }
5947 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5948   $as_echo_n "(cached) " >&6
5949 else
5950   if test -n "$ac_ct_DUMPBIN"; then
5951   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5952 else
5953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5954 for as_dir in $PATH
5955 do
5956   IFS=$as_save_IFS
5957   test -z "$as_dir" && as_dir=.
5958     for ac_exec_ext in '' $ac_executable_extensions; do
5959   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5960     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5961     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5962     break 2
5963   fi
5964 done
5965   done
5966 IFS=$as_save_IFS
5967
5968 fi
5969 fi
5970 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5971 if test -n "$ac_ct_DUMPBIN"; then
5972   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5973 $as_echo "$ac_ct_DUMPBIN" >&6; }
5974 else
5975   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5976 $as_echo "no" >&6; }
5977 fi
5978
5979
5980   test -n "$ac_ct_DUMPBIN" && break
5981 done
5982
5983   if test "x$ac_ct_DUMPBIN" = x; then
5984     DUMPBIN=":"
5985   else
5986     case $cross_compiling:$ac_tool_warned in
5987 yes:)
5988 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5989 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5990 ac_tool_warned=yes ;;
5991 esac
5992     DUMPBIN=$ac_ct_DUMPBIN
5993   fi
5994 fi
5995
5996     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5997     *COFF*)
5998       DUMPBIN="$DUMPBIN -symbols"
5999       ;;
6000     *)
6001       DUMPBIN=:
6002       ;;
6003     esac
6004   fi
6005
6006   if test "$DUMPBIN" != ":"; then
6007     NM="$DUMPBIN"
6008   fi
6009 fi
6010 test -z "$NM" && NM=nm
6011
6012
6013
6014
6015
6016
6017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6018 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6019 if ${lt_cv_nm_interface+:} false; then :
6020   $as_echo_n "(cached) " >&6
6021 else
6022   lt_cv_nm_interface="BSD nm"
6023   echo "int some_variable = 0;" > conftest.$ac_ext
6024   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6025   (eval "$ac_compile" 2>conftest.err)
6026   cat conftest.err >&5
6027   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6028   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6029   cat conftest.err >&5
6030   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6031   cat conftest.out >&5
6032   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6033     lt_cv_nm_interface="MS dumpbin"
6034   fi
6035   rm -f conftest*
6036 fi
6037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6038 $as_echo "$lt_cv_nm_interface" >&6; }
6039
6040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6041 $as_echo_n "checking whether ln -s works... " >&6; }
6042 LN_S=$as_ln_s
6043 if test "$LN_S" = "ln -s"; then
6044   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6045 $as_echo "yes" >&6; }
6046 else
6047   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6048 $as_echo "no, using $LN_S" >&6; }
6049 fi
6050
6051 # find the maximum length of command line arguments
6052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6053 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6054 if ${lt_cv_sys_max_cmd_len+:} false; then :
6055   $as_echo_n "(cached) " >&6
6056 else
6057     i=0
6058   teststring="ABCD"
6059
6060   case $build_os in
6061   msdosdjgpp*)
6062     # On DJGPP, this test can blow up pretty badly due to problems in libc
6063     # (any single argument exceeding 2000 bytes causes a buffer overrun
6064     # during glob expansion).  Even if it were fixed, the result of this
6065     # check would be larger than it should be.
6066     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6067     ;;
6068
6069   gnu*)
6070     # Under GNU Hurd, this test is not required because there is
6071     # no limit to the length of command line arguments.
6072     # Libtool will interpret -1 as no limit whatsoever
6073     lt_cv_sys_max_cmd_len=-1;
6074     ;;
6075
6076   cygwin* | mingw* | cegcc*)
6077     # On Win9x/ME, this test blows up -- it succeeds, but takes
6078     # about 5 minutes as the teststring grows exponentially.
6079     # Worse, since 9x/ME are not pre-emptively multitasking,
6080     # you end up with a "frozen" computer, even though with patience
6081     # the test eventually succeeds (with a max line length of 256k).
6082     # Instead, let's just punt: use the minimum linelength reported by
6083     # all of the supported platforms: 8192 (on NT/2K/XP).
6084     lt_cv_sys_max_cmd_len=8192;
6085     ;;
6086
6087   mint*)
6088     # On MiNT this can take a long time and run out of memory.
6089     lt_cv_sys_max_cmd_len=8192;
6090     ;;
6091
6092   amigaos*)
6093     # On AmigaOS with pdksh, this test takes hours, literally.
6094     # So we just punt and use a minimum line length of 8192.
6095     lt_cv_sys_max_cmd_len=8192;
6096     ;;
6097
6098   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6099     # This has been around since 386BSD, at least.  Likely further.
6100     if test -x /sbin/sysctl; then
6101       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6102     elif test -x /usr/sbin/sysctl; then
6103       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6104     else
6105       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6106     fi
6107     # And add a safety zone
6108     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6109     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6110     ;;
6111
6112   interix*)
6113     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6114     lt_cv_sys_max_cmd_len=196608
6115     ;;
6116
6117   osf*)
6118     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6119     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6120     # nice to cause kernel panics so lets avoid the loop below.
6121     # First set a reasonable default.
6122     lt_cv_sys_max_cmd_len=16384
6123     #
6124     if test -x /sbin/sysconfig; then
6125       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6126         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6127       esac
6128     fi
6129     ;;
6130   sco3.2v5*)
6131     lt_cv_sys_max_cmd_len=102400
6132     ;;
6133   sysv5* | sco5v6* | sysv4.2uw2*)
6134     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6135     if test -n "$kargmax"; then
6136       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
6137     else
6138       lt_cv_sys_max_cmd_len=32768
6139     fi
6140     ;;
6141   *)
6142     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6143     if test -n "$lt_cv_sys_max_cmd_len"; then
6144       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6145       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6146     else
6147       # Make teststring a little bigger before we do anything with it.
6148       # a 1K string should be a reasonable start.
6149       for i in 1 2 3 4 5 6 7 8 ; do
6150         teststring=$teststring$teststring
6151       done
6152       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6153       # If test is not a shell built-in, we'll probably end up computing a
6154       # maximum length that is only half of the actual maximum length, but
6155       # we can't tell.
6156       while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6157                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6158               test $i != 17 # 1/2 MB should be enough
6159       do
6160         i=`expr $i + 1`
6161         teststring=$teststring$teststring
6162       done
6163       # Only check the string length outside the loop.
6164       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6165       teststring=
6166       # Add a significant safety factor because C++ compilers can tack on
6167       # massive amounts of additional arguments before passing them to the
6168       # linker.  It appears as though 1/2 is a usable value.
6169       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6170     fi
6171     ;;
6172   esac
6173
6174 fi
6175
6176 if test -n $lt_cv_sys_max_cmd_len ; then
6177   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6178 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6179 else
6180   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6181 $as_echo "none" >&6; }
6182 fi
6183 max_cmd_len=$lt_cv_sys_max_cmd_len
6184
6185
6186
6187
6188
6189
6190 : ${CP="cp -f"}
6191 : ${MV="mv -f"}
6192 : ${RM="rm -f"}
6193
6194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6195 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6196 # Try some XSI features
6197 xsi_shell=no
6198 ( _lt_dummy="a/b/c"
6199   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6200       = c,a/b,, \
6201     && eval 'test $(( 1 + 1 )) -eq 2 \
6202     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6203   && xsi_shell=yes
6204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6205 $as_echo "$xsi_shell" >&6; }
6206
6207
6208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6209 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6210 lt_shell_append=no
6211 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6212     >/dev/null 2>&1 \
6213   && lt_shell_append=yes
6214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6215 $as_echo "$lt_shell_append" >&6; }
6216
6217
6218 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6219   lt_unset=unset
6220 else
6221   lt_unset=false
6222 fi
6223
6224
6225
6226
6227
6228 # test EBCDIC or ASCII
6229 case `echo X|tr X '\101'` in
6230  A) # ASCII based system
6231     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6232   lt_SP2NL='tr \040 \012'
6233   lt_NL2SP='tr \015\012 \040\040'
6234   ;;
6235  *) # EBCDIC based system
6236   lt_SP2NL='tr \100 \n'
6237   lt_NL2SP='tr \r\n \100\100'
6238   ;;
6239 esac
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6250 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6251 if ${lt_cv_ld_reload_flag+:} false; then :
6252   $as_echo_n "(cached) " >&6
6253 else
6254   lt_cv_ld_reload_flag='-r'
6255 fi
6256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6257 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6258 reload_flag=$lt_cv_ld_reload_flag
6259 case $reload_flag in
6260 "" | " "*) ;;
6261 *) reload_flag=" $reload_flag" ;;
6262 esac
6263 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6264 case $host_os in
6265   darwin*)
6266     if test "$GCC" = yes; then
6267       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6268     else
6269       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6270     fi
6271     ;;
6272 esac
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282 if test -n "$ac_tool_prefix"; then
6283   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6284 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6286 $as_echo_n "checking for $ac_word... " >&6; }
6287 if ${ac_cv_prog_OBJDUMP+:} false; then :
6288   $as_echo_n "(cached) " >&6
6289 else
6290   if test -n "$OBJDUMP"; then
6291   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6292 else
6293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6294 for as_dir in $PATH
6295 do
6296   IFS=$as_save_IFS
6297   test -z "$as_dir" && as_dir=.
6298     for ac_exec_ext in '' $ac_executable_extensions; do
6299   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6300     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6301     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6302     break 2
6303   fi
6304 done
6305   done
6306 IFS=$as_save_IFS
6307
6308 fi
6309 fi
6310 OBJDUMP=$ac_cv_prog_OBJDUMP
6311 if test -n "$OBJDUMP"; then
6312   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6313 $as_echo "$OBJDUMP" >&6; }
6314 else
6315   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6316 $as_echo "no" >&6; }
6317 fi
6318
6319
6320 fi
6321 if test -z "$ac_cv_prog_OBJDUMP"; then
6322   ac_ct_OBJDUMP=$OBJDUMP
6323   # Extract the first word of "objdump", so it can be a program name with args.
6324 set dummy objdump; ac_word=$2
6325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6326 $as_echo_n "checking for $ac_word... " >&6; }
6327 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6328   $as_echo_n "(cached) " >&6
6329 else
6330   if test -n "$ac_ct_OBJDUMP"; then
6331   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6332 else
6333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6334 for as_dir in $PATH
6335 do
6336   IFS=$as_save_IFS
6337   test -z "$as_dir" && as_dir=.
6338     for ac_exec_ext in '' $ac_executable_extensions; do
6339   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6340     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6341     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6342     break 2
6343   fi
6344 done
6345   done
6346 IFS=$as_save_IFS
6347
6348 fi
6349 fi
6350 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6351 if test -n "$ac_ct_OBJDUMP"; then
6352   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6353 $as_echo "$ac_ct_OBJDUMP" >&6; }
6354 else
6355   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6356 $as_echo "no" >&6; }
6357 fi
6358
6359   if test "x$ac_ct_OBJDUMP" = x; then
6360     OBJDUMP="false"
6361   else
6362     case $cross_compiling:$ac_tool_warned in
6363 yes:)
6364 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6365 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6366 ac_tool_warned=yes ;;
6367 esac
6368     OBJDUMP=$ac_ct_OBJDUMP
6369   fi
6370 else
6371   OBJDUMP="$ac_cv_prog_OBJDUMP"
6372 fi
6373
6374 test -z "$OBJDUMP" && OBJDUMP=objdump
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6385 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6386 if ${lt_cv_deplibs_check_method+:} false; then :
6387   $as_echo_n "(cached) " >&6
6388 else
6389   lt_cv_file_magic_cmd='$MAGIC_CMD'
6390 lt_cv_file_magic_test_file=
6391 lt_cv_deplibs_check_method='unknown'
6392 # Need to set the preceding variable on all platforms that support
6393 # interlibrary dependencies.
6394 # 'none' -- dependencies not supported.
6395 # `unknown' -- same as none, but documents that we really don't know.
6396 # 'pass_all' -- all dependencies passed with no checks.
6397 # 'test_compile' -- check by making test program.
6398 # 'file_magic [[regex]]' -- check by looking for files in library path
6399 # which responds to the $file_magic_cmd with a given extended regex.
6400 # If you have `file' or equivalent on your system and you're not sure
6401 # whether `pass_all' will *always* work, you probably want this one.
6402
6403 case $host_os in
6404 aix[4-9]*)
6405   lt_cv_deplibs_check_method=pass_all
6406   ;;
6407
6408 beos*)
6409   lt_cv_deplibs_check_method=pass_all
6410   ;;
6411
6412 bsdi[45]*)
6413   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6414   lt_cv_file_magic_cmd='/usr/bin/file -L'
6415   lt_cv_file_magic_test_file=/shlib/libc.so
6416   ;;
6417
6418 cygwin*)
6419   # func_win32_libid is a shell function defined in ltmain.sh
6420   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6421   lt_cv_file_magic_cmd='func_win32_libid'
6422   ;;
6423
6424 mingw* | pw32*)
6425   # Base MSYS/MinGW do not provide the 'file' command needed by
6426   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6427   # unless we find 'file', for example because we are cross-compiling.
6428   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6429   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6430     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6431     lt_cv_file_magic_cmd='func_win32_libid'
6432   else
6433     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6434     lt_cv_file_magic_cmd='$OBJDUMP -f'
6435   fi
6436   ;;
6437
6438 cegcc*)
6439   # use the weaker test based on 'objdump'. See mingw*.
6440   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6441   lt_cv_file_magic_cmd='$OBJDUMP -f'
6442   ;;
6443
6444 darwin* | rhapsody*)
6445   lt_cv_deplibs_check_method=pass_all
6446   ;;
6447
6448 freebsd* | dragonfly*)
6449   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6450     case $host_cpu in
6451     i*86 )
6452       # Not sure whether the presence of OpenBSD here was a mistake.
6453       # Let's accept both of them until this is cleared up.
6454       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6455       lt_cv_file_magic_cmd=/usr/bin/file
6456       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6457       ;;
6458     esac
6459   else
6460     lt_cv_deplibs_check_method=pass_all
6461   fi
6462   ;;
6463
6464 gnu*)
6465   lt_cv_deplibs_check_method=pass_all
6466   ;;
6467
6468 haiku*)
6469   lt_cv_deplibs_check_method=pass_all
6470   ;;
6471
6472 hpux10.20* | hpux11*)
6473   lt_cv_file_magic_cmd=/usr/bin/file
6474   case $host_cpu in
6475   ia64*)
6476     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6477     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6478     ;;
6479   hppa*64*)
6480     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]'
6481     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6482     ;;
6483   *)
6484     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6485     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6486     ;;
6487   esac
6488   ;;
6489
6490 interix[3-9]*)
6491   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6492   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6493   ;;
6494
6495 irix5* | irix6* | nonstopux*)
6496   case $LD in
6497   *-32|*"-32 ") libmagic=32-bit;;
6498   *-n32|*"-n32 ") libmagic=N32;;
6499   *-64|*"-64 ") libmagic=64-bit;;
6500   *) libmagic=never-match;;
6501   esac
6502   lt_cv_deplibs_check_method=pass_all
6503   ;;
6504
6505 # This must be Linux ELF.
6506 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6507   lt_cv_deplibs_check_method=pass_all
6508   ;;
6509
6510 netbsd*)
6511   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6512     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6513   else
6514     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6515   fi
6516   ;;
6517
6518 newos6*)
6519   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6520   lt_cv_file_magic_cmd=/usr/bin/file
6521   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6522   ;;
6523
6524 *nto* | *qnx*)
6525   lt_cv_deplibs_check_method=pass_all
6526   ;;
6527
6528 openbsd*)
6529   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6530     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6531   else
6532     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6533   fi
6534   ;;
6535
6536 osf3* | osf4* | osf5*)
6537   lt_cv_deplibs_check_method=pass_all
6538   ;;
6539
6540 rdos*)
6541   lt_cv_deplibs_check_method=pass_all
6542   ;;
6543
6544 solaris*)
6545   lt_cv_deplibs_check_method=pass_all
6546   ;;
6547
6548 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6549   lt_cv_deplibs_check_method=pass_all
6550   ;;
6551
6552 sysv4 | sysv4.3*)
6553   case $host_vendor in
6554   motorola)
6555     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]'
6556     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6557     ;;
6558   ncr)
6559     lt_cv_deplibs_check_method=pass_all
6560     ;;
6561   sequent)
6562     lt_cv_file_magic_cmd='/bin/file'
6563     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6564     ;;
6565   sni)
6566     lt_cv_file_magic_cmd='/bin/file'
6567     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6568     lt_cv_file_magic_test_file=/lib/libc.so
6569     ;;
6570   siemens)
6571     lt_cv_deplibs_check_method=pass_all
6572     ;;
6573   pc)
6574     lt_cv_deplibs_check_method=pass_all
6575     ;;
6576   esac
6577   ;;
6578
6579 tpf*)
6580   lt_cv_deplibs_check_method=pass_all
6581   ;;
6582 esac
6583
6584 fi
6585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6586 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6587 file_magic_cmd=$lt_cv_file_magic_cmd
6588 deplibs_check_method=$lt_cv_deplibs_check_method
6589 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602 if test -n "$ac_tool_prefix"; then
6603   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6604 set dummy ${ac_tool_prefix}ar; ac_word=$2
6605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6606 $as_echo_n "checking for $ac_word... " >&6; }
6607 if ${ac_cv_prog_AR+:} false; then :
6608   $as_echo_n "(cached) " >&6
6609 else
6610   if test -n "$AR"; then
6611   ac_cv_prog_AR="$AR" # Let the user override the test.
6612 else
6613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6614 for as_dir in $PATH
6615 do
6616   IFS=$as_save_IFS
6617   test -z "$as_dir" && as_dir=.
6618     for ac_exec_ext in '' $ac_executable_extensions; do
6619   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6620     ac_cv_prog_AR="${ac_tool_prefix}ar"
6621     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6622     break 2
6623   fi
6624 done
6625   done
6626 IFS=$as_save_IFS
6627
6628 fi
6629 fi
6630 AR=$ac_cv_prog_AR
6631 if test -n "$AR"; then
6632   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6633 $as_echo "$AR" >&6; }
6634 else
6635   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6636 $as_echo "no" >&6; }
6637 fi
6638
6639
6640 fi
6641 if test -z "$ac_cv_prog_AR"; then
6642   ac_ct_AR=$AR
6643   # Extract the first word of "ar", so it can be a program name with args.
6644 set dummy ar; ac_word=$2
6645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6646 $as_echo_n "checking for $ac_word... " >&6; }
6647 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6648   $as_echo_n "(cached) " >&6
6649 else
6650   if test -n "$ac_ct_AR"; then
6651   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6652 else
6653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6654 for as_dir in $PATH
6655 do
6656   IFS=$as_save_IFS
6657   test -z "$as_dir" && as_dir=.
6658     for ac_exec_ext in '' $ac_executable_extensions; do
6659   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6660     ac_cv_prog_ac_ct_AR="ar"
6661     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6662     break 2
6663   fi
6664 done
6665   done
6666 IFS=$as_save_IFS
6667
6668 fi
6669 fi
6670 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6671 if test -n "$ac_ct_AR"; then
6672   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6673 $as_echo "$ac_ct_AR" >&6; }
6674 else
6675   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6676 $as_echo "no" >&6; }
6677 fi
6678
6679   if test "x$ac_ct_AR" = x; then
6680     AR="false"
6681   else
6682     case $cross_compiling:$ac_tool_warned in
6683 yes:)
6684 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6685 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6686 ac_tool_warned=yes ;;
6687 esac
6688     AR=$ac_ct_AR
6689   fi
6690 else
6691   AR="$ac_cv_prog_AR"
6692 fi
6693
6694 test -z "$AR" && AR=ar
6695 test -z "$AR_FLAGS" && AR_FLAGS=cru
6696
6697
6698
6699
6700
6701
6702
6703
6704
6705
6706
6707 if test -n "$ac_tool_prefix"; then
6708   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6709 set dummy ${ac_tool_prefix}strip; ac_word=$2
6710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6711 $as_echo_n "checking for $ac_word... " >&6; }
6712 if ${ac_cv_prog_STRIP+:} false; then :
6713   $as_echo_n "(cached) " >&6
6714 else
6715   if test -n "$STRIP"; then
6716   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6717 else
6718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6719 for as_dir in $PATH
6720 do
6721   IFS=$as_save_IFS
6722   test -z "$as_dir" && as_dir=.
6723     for ac_exec_ext in '' $ac_executable_extensions; do
6724   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6725     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6726     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6727     break 2
6728   fi
6729 done
6730   done
6731 IFS=$as_save_IFS
6732
6733 fi
6734 fi
6735 STRIP=$ac_cv_prog_STRIP
6736 if test -n "$STRIP"; then
6737   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6738 $as_echo "$STRIP" >&6; }
6739 else
6740   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6741 $as_echo "no" >&6; }
6742 fi
6743
6744
6745 fi
6746 if test -z "$ac_cv_prog_STRIP"; then
6747   ac_ct_STRIP=$STRIP
6748   # Extract the first word of "strip", so it can be a program name with args.
6749 set dummy strip; ac_word=$2
6750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6751 $as_echo_n "checking for $ac_word... " >&6; }
6752 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6753   $as_echo_n "(cached) " >&6
6754 else
6755   if test -n "$ac_ct_STRIP"; then
6756   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6757 else
6758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6759 for as_dir in $PATH
6760 do
6761   IFS=$as_save_IFS
6762   test -z "$as_dir" && as_dir=.
6763     for ac_exec_ext in '' $ac_executable_extensions; do
6764   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6765     ac_cv_prog_ac_ct_STRIP="strip"
6766     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6767     break 2
6768   fi
6769 done
6770   done
6771 IFS=$as_save_IFS
6772
6773 fi
6774 fi
6775 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6776 if test -n "$ac_ct_STRIP"; then
6777   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6778 $as_echo "$ac_ct_STRIP" >&6; }
6779 else
6780   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6781 $as_echo "no" >&6; }
6782 fi
6783
6784   if test "x$ac_ct_STRIP" = x; then
6785     STRIP=":"
6786   else
6787     case $cross_compiling:$ac_tool_warned in
6788 yes:)
6789 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6790 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6791 ac_tool_warned=yes ;;
6792 esac
6793     STRIP=$ac_ct_STRIP
6794   fi
6795 else
6796   STRIP="$ac_cv_prog_STRIP"
6797 fi
6798
6799 test -z "$STRIP" && STRIP=:
6800
6801
6802
6803
6804
6805
6806 if test -n "$ac_tool_prefix"; then
6807   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6808 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6810 $as_echo_n "checking for $ac_word... " >&6; }
6811 if ${ac_cv_prog_RANLIB+:} false; then :
6812   $as_echo_n "(cached) " >&6
6813 else
6814   if test -n "$RANLIB"; then
6815   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6816 else
6817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6818 for as_dir in $PATH
6819 do
6820   IFS=$as_save_IFS
6821   test -z "$as_dir" && as_dir=.
6822     for ac_exec_ext in '' $ac_executable_extensions; do
6823   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6824     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6825     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6826     break 2
6827   fi
6828 done
6829   done
6830 IFS=$as_save_IFS
6831
6832 fi
6833 fi
6834 RANLIB=$ac_cv_prog_RANLIB
6835 if test -n "$RANLIB"; then
6836   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6837 $as_echo "$RANLIB" >&6; }
6838 else
6839   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6840 $as_echo "no" >&6; }
6841 fi
6842
6843
6844 fi
6845 if test -z "$ac_cv_prog_RANLIB"; then
6846   ac_ct_RANLIB=$RANLIB
6847   # Extract the first word of "ranlib", so it can be a program name with args.
6848 set dummy ranlib; ac_word=$2
6849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6850 $as_echo_n "checking for $ac_word... " >&6; }
6851 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6852   $as_echo_n "(cached) " >&6
6853 else
6854   if test -n "$ac_ct_RANLIB"; then
6855   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6856 else
6857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6858 for as_dir in $PATH
6859 do
6860   IFS=$as_save_IFS
6861   test -z "$as_dir" && as_dir=.
6862     for ac_exec_ext in '' $ac_executable_extensions; do
6863   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6864     ac_cv_prog_ac_ct_RANLIB="ranlib"
6865     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6866     break 2
6867   fi
6868 done
6869   done
6870 IFS=$as_save_IFS
6871
6872 fi
6873 fi
6874 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6875 if test -n "$ac_ct_RANLIB"; then
6876   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6877 $as_echo "$ac_ct_RANLIB" >&6; }
6878 else
6879   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6880 $as_echo "no" >&6; }
6881 fi
6882
6883   if test "x$ac_ct_RANLIB" = x; then
6884     RANLIB=":"
6885   else
6886     case $cross_compiling:$ac_tool_warned in
6887 yes:)
6888 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6889 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6890 ac_tool_warned=yes ;;
6891 esac
6892     RANLIB=$ac_ct_RANLIB
6893   fi
6894 else
6895   RANLIB="$ac_cv_prog_RANLIB"
6896 fi
6897
6898 test -z "$RANLIB" && RANLIB=:
6899
6900
6901
6902
6903
6904
6905 # Determine commands to create old-style static archives.
6906 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6907 old_postinstall_cmds='chmod 644 $oldlib'
6908 old_postuninstall_cmds=
6909
6910 if test -n "$RANLIB"; then
6911   case $host_os in
6912   openbsd*)
6913     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6914     ;;
6915   *)
6916     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6917     ;;
6918   esac
6919   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6920 fi
6921
6922 case $host_os in
6923   darwin*)
6924     lock_old_archive_extraction=yes ;;
6925   *)
6926     lock_old_archive_extraction=no ;;
6927 esac
6928
6929
6930
6931
6932
6933
6934
6935
6936
6937
6938
6939
6940
6941
6942
6943
6944
6945
6946
6947
6948
6949
6950
6951
6952
6953
6954
6955
6956
6957
6958
6959
6960
6961
6962
6963
6964
6965
6966
6967 # If no C compiler was specified, use CC.
6968 LTCC=${LTCC-"$CC"}
6969
6970 # If no C compiler flags were specified, use CFLAGS.
6971 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6972
6973 # Allow CC to be a program name with arguments.
6974 compiler=$CC
6975
6976
6977 # Check for command to grab the raw symbol name followed by C symbol from nm.
6978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6979 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6980 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6981   $as_echo_n "(cached) " >&6
6982 else
6983
6984 # These are sane defaults that work on at least a few old systems.
6985 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6986
6987 # Character class describing NM global symbol codes.
6988 symcode='[BCDEGRST]'
6989
6990 # Regexp to match symbols that can be accessed directly from C.
6991 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6992
6993 # Define system-specific variables.
6994 case $host_os in
6995 aix*)
6996   symcode='[BCDT]'
6997   ;;
6998 cygwin* | mingw* | pw32* | cegcc*)
6999   symcode='[ABCDGISTW]'
7000   ;;
7001 hpux*)
7002   if test "$host_cpu" = ia64; then
7003     symcode='[ABCDEGRST]'
7004   fi
7005   ;;
7006 irix* | nonstopux*)
7007   symcode='[BCDEGRST]'
7008   ;;
7009 osf*)
7010   symcode='[BCDEGQRST]'
7011   ;;
7012 solaris*)
7013   symcode='[BDRT]'
7014   ;;
7015 sco3.2v5*)
7016   symcode='[DT]'
7017   ;;
7018 sysv4.2uw2*)
7019   symcode='[DT]'
7020   ;;
7021 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7022   symcode='[ABDT]'
7023   ;;
7024 sysv4)
7025   symcode='[DFNSTU]'
7026   ;;
7027 esac
7028
7029 # If we're using GNU nm, then use its standard symbol codes.
7030 case `$NM -V 2>&1` in
7031 *GNU* | *'with BFD'*)
7032   symcode='[ABCDGIRSTW]' ;;
7033 esac
7034
7035 # Transform an extracted symbol line into a proper C declaration.
7036 # Some systems (esp. on ia64) link data and code symbols differently,
7037 # so use this general approach.
7038 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7039
7040 # Transform an extracted symbol line into symbol name and symbol address
7041 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7042 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'"
7043
7044 # Handle CRLF in mingw tool chain
7045 opt_cr=
7046 case $build_os in
7047 mingw*)
7048   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7049   ;;
7050 esac
7051
7052 # Try without a prefix underscore, then with it.
7053 for ac_symprfx in "" "_"; do
7054
7055   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7056   symxfrm="\\1 $ac_symprfx\\2 \\2"
7057
7058   # Write the raw and C identifiers.
7059   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7060     # Fake it for dumpbin and say T for any non-static function
7061     # and D for any global variable.
7062     # Also find C++ and __fastcall symbols from MSVC++,
7063     # which start with @ or ?.
7064     lt_cv_sys_global_symbol_pipe="$AWK '"\
7065 "     {last_section=section; section=\$ 3};"\
7066 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7067 "     \$ 0!~/External *\|/{next};"\
7068 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7069 "     {if(hide[section]) next};"\
7070 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7071 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7072 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7073 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7074 "     ' prfx=^$ac_symprfx"
7075   else
7076     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7077   fi
7078
7079   # Check to see that the pipe works correctly.
7080   pipe_works=no
7081
7082   rm -f conftest*
7083   cat > conftest.$ac_ext <<_LT_EOF
7084 #ifdef __cplusplus
7085 extern "C" {
7086 #endif
7087 char nm_test_var;
7088 void nm_test_func(void);
7089 void nm_test_func(void){}
7090 #ifdef __cplusplus
7091 }
7092 #endif
7093 int main(){nm_test_var='a';nm_test_func();return(0);}
7094 _LT_EOF
7095
7096   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7097   (eval $ac_compile) 2>&5
7098   ac_status=$?
7099   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7100   test $ac_status = 0; }; then
7101     # Now try to grab the symbols.
7102     nlist=conftest.nm
7103     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7104   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7105   ac_status=$?
7106   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7107   test $ac_status = 0; } && test -s "$nlist"; then
7108       # Try sorting and uniquifying the output.
7109       if sort "$nlist" | uniq > "$nlist"T; then
7110         mv -f "$nlist"T "$nlist"
7111       else
7112         rm -f "$nlist"T
7113       fi
7114
7115       # Make sure that we snagged all the symbols we need.
7116       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7117         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7118           cat <<_LT_EOF > conftest.$ac_ext
7119 #ifdef __cplusplus
7120 extern "C" {
7121 #endif
7122
7123 _LT_EOF
7124           # Now generate the symbol file.
7125           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7126
7127           cat <<_LT_EOF >> conftest.$ac_ext
7128
7129 /* The mapping between symbol names and symbols.  */
7130 const struct {
7131   const char *name;
7132   void       *address;
7133 }
7134 lt__PROGRAM__LTX_preloaded_symbols[] =
7135 {
7136   { "@PROGRAM@", (void *) 0 },
7137 _LT_EOF
7138           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7139           cat <<\_LT_EOF >> conftest.$ac_ext
7140   {0, (void *) 0}
7141 };
7142
7143 /* This works around a problem in FreeBSD linker */
7144 #ifdef FREEBSD_WORKAROUND
7145 static const void *lt_preloaded_setup() {
7146   return lt__PROGRAM__LTX_preloaded_symbols;
7147 }
7148 #endif
7149
7150 #ifdef __cplusplus
7151 }
7152 #endif
7153 _LT_EOF
7154           # Now try linking the two files.
7155           mv conftest.$ac_objext conftstm.$ac_objext
7156           lt_save_LIBS="$LIBS"
7157           lt_save_CFLAGS="$CFLAGS"
7158           LIBS="conftstm.$ac_objext"
7159           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7160           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7161   (eval $ac_link) 2>&5
7162   ac_status=$?
7163   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7164   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7165             pipe_works=yes
7166           fi
7167           LIBS="$lt_save_LIBS"
7168           CFLAGS="$lt_save_CFLAGS"
7169         else
7170           echo "cannot find nm_test_func in $nlist" >&5
7171         fi
7172       else
7173         echo "cannot find nm_test_var in $nlist" >&5
7174       fi
7175     else
7176       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7177     fi
7178   else
7179     echo "$progname: failed program was:" >&5
7180     cat conftest.$ac_ext >&5
7181   fi
7182   rm -rf conftest* conftst*
7183
7184   # Do not use the global_symbol_pipe unless it works.
7185   if test "$pipe_works" = yes; then
7186     break
7187   else
7188     lt_cv_sys_global_symbol_pipe=
7189   fi
7190 done
7191
7192 fi
7193
7194 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7195   lt_cv_sys_global_symbol_to_cdecl=
7196 fi
7197 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7198   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7199 $as_echo "failed" >&6; }
7200 else
7201   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7202 $as_echo "ok" >&6; }
7203 fi
7204
7205
7206
7207
7208
7209
7210
7211
7212
7213
7214
7215
7216
7217
7218
7219
7220
7221
7222
7223
7224
7225
7226 # Check whether --enable-libtool-lock was given.
7227 if test "${enable_libtool_lock+set}" = set; then :
7228   enableval=$enable_libtool_lock;
7229 fi
7230
7231 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7232
7233 # Some flags need to be propagated to the compiler or linker for good
7234 # libtool support.
7235 case $host in
7236 ia64-*-hpux*)
7237   # Find out which ABI we are using.
7238   echo 'int i;' > conftest.$ac_ext
7239   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7240   (eval $ac_compile) 2>&5
7241   ac_status=$?
7242   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7243   test $ac_status = 0; }; then
7244     case `/usr/bin/file conftest.$ac_objext` in
7245       *ELF-32*)
7246         HPUX_IA64_MODE="32"
7247         ;;
7248       *ELF-64*)
7249         HPUX_IA64_MODE="64"
7250         ;;
7251     esac
7252   fi
7253   rm -rf conftest*
7254   ;;
7255 *-*-irix6*)
7256   # Find out which ABI we are using.
7257   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7258   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7259   (eval $ac_compile) 2>&5
7260   ac_status=$?
7261   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7262   test $ac_status = 0; }; then
7263     if test "$lt_cv_prog_gnu_ld" = yes; then
7264       case `/usr/bin/file conftest.$ac_objext` in
7265         *32-bit*)
7266           LD="${LD-ld} -melf32bsmip"
7267           ;;
7268         *N32*)
7269           LD="${LD-ld} -melf32bmipn32"
7270           ;;
7271         *64-bit*)
7272           LD="${LD-ld} -melf64bmip"
7273         ;;
7274       esac
7275     else
7276       case `/usr/bin/file conftest.$ac_objext` in
7277         *32-bit*)
7278           LD="${LD-ld} -32"
7279           ;;
7280         *N32*)
7281           LD="${LD-ld} -n32"
7282           ;;
7283         *64-bit*)
7284           LD="${LD-ld} -64"
7285           ;;
7286       esac
7287     fi
7288   fi
7289   rm -rf conftest*
7290   ;;
7291
7292 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7293 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7294   # Find out which ABI we are using.
7295   echo 'int i;' > conftest.$ac_ext
7296   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7297   (eval $ac_compile) 2>&5
7298   ac_status=$?
7299   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7300   test $ac_status = 0; }; then
7301     case `/usr/bin/file conftest.o` in
7302       *32-bit*)
7303         case $host in
7304           x86_64-*kfreebsd*-gnu)
7305             LD="${LD-ld} -m elf_i386_fbsd"
7306             ;;
7307           x86_64-*linux*)
7308             case `/usr/bin/file conftest.o` in
7309               *x86-64*)
7310                 LD="${LD-ld} -m elf32_x86_64"
7311                 ;;
7312               *)
7313                 LD="${LD-ld} -m elf_i386"
7314                 ;;
7315             esac
7316             ;;
7317           powerpc64le-*linux*)
7318             LD="${LD-ld} -m elf32lppclinux"
7319             ;;
7320           powerpc64-*linux*)
7321             LD="${LD-ld} -m elf32ppclinux"
7322             ;;
7323           s390x-*linux*)
7324             LD="${LD-ld} -m elf_s390"
7325             ;;
7326           sparc64-*linux*)
7327             LD="${LD-ld} -m elf32_sparc"
7328             ;;
7329         esac
7330         ;;
7331       *64-bit*)
7332         case $host in
7333           x86_64-*kfreebsd*-gnu)
7334             LD="${LD-ld} -m elf_x86_64_fbsd"
7335             ;;
7336           x86_64-*linux*)
7337             LD="${LD-ld} -m elf_x86_64"
7338             ;;
7339           powerpcle-*linux*)
7340             LD="${LD-ld} -m elf64lppc"
7341             ;;
7342           powerpc-*linux*)
7343             LD="${LD-ld} -m elf64ppc"
7344             ;;
7345           s390*-*linux*|s390*-*tpf*)
7346             LD="${LD-ld} -m elf64_s390"
7347             ;;
7348           sparc*-*linux*)
7349             LD="${LD-ld} -m elf64_sparc"
7350             ;;
7351         esac
7352         ;;
7353     esac
7354   fi
7355   rm -rf conftest*
7356   ;;
7357
7358 *-*-sco3.2v5*)
7359   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7360   SAVE_CFLAGS="$CFLAGS"
7361   CFLAGS="$CFLAGS -belf"
7362   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7363 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7364 if ${lt_cv_cc_needs_belf+:} false; then :
7365   $as_echo_n "(cached) " >&6
7366 else
7367   ac_ext=c
7368 ac_cpp='$CPP $CPPFLAGS'
7369 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7370 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7371 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7372
7373      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7374 /* end confdefs.h.  */
7375
7376 int
7377 main ()
7378 {
7379
7380   ;
7381   return 0;
7382 }
7383 _ACEOF
7384 if ac_fn_c_try_link "$LINENO"; then :
7385   lt_cv_cc_needs_belf=yes
7386 else
7387   lt_cv_cc_needs_belf=no
7388 fi
7389 rm -f core conftest.err conftest.$ac_objext \
7390     conftest$ac_exeext conftest.$ac_ext
7391      ac_ext=c
7392 ac_cpp='$CPP $CPPFLAGS'
7393 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7394 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7395 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7396
7397 fi
7398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7399 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7400   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7401     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7402     CFLAGS="$SAVE_CFLAGS"
7403   fi
7404   ;;
7405 sparc*-*solaris*)
7406   # Find out which ABI we are using.
7407   echo 'int i;' > conftest.$ac_ext
7408   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7409   (eval $ac_compile) 2>&5
7410   ac_status=$?
7411   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7412   test $ac_status = 0; }; then
7413     case `/usr/bin/file conftest.o` in
7414     *64-bit*)
7415       case $lt_cv_prog_gnu_ld in
7416       yes*) LD="${LD-ld} -m elf64_sparc" ;;
7417       *)
7418         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7419           LD="${LD-ld} -64"
7420         fi
7421         ;;
7422       esac
7423       ;;
7424     esac
7425   fi
7426   rm -rf conftest*
7427   ;;
7428 esac
7429
7430 need_locks="$enable_libtool_lock"
7431
7432
7433   case $host_os in
7434     rhapsody* | darwin*)
7435     if test -n "$ac_tool_prefix"; then
7436   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7437 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7439 $as_echo_n "checking for $ac_word... " >&6; }
7440 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7441   $as_echo_n "(cached) " >&6
7442 else
7443   if test -n "$DSYMUTIL"; then
7444   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7445 else
7446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7447 for as_dir in $PATH
7448 do
7449   IFS=$as_save_IFS
7450   test -z "$as_dir" && as_dir=.
7451     for ac_exec_ext in '' $ac_executable_extensions; do
7452   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7453     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7454     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7455     break 2
7456   fi
7457 done
7458   done
7459 IFS=$as_save_IFS
7460
7461 fi
7462 fi
7463 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7464 if test -n "$DSYMUTIL"; then
7465   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7466 $as_echo "$DSYMUTIL" >&6; }
7467 else
7468   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7469 $as_echo "no" >&6; }
7470 fi
7471
7472
7473 fi
7474 if test -z "$ac_cv_prog_DSYMUTIL"; then
7475   ac_ct_DSYMUTIL=$DSYMUTIL
7476   # Extract the first word of "dsymutil", so it can be a program name with args.
7477 set dummy dsymutil; ac_word=$2
7478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7479 $as_echo_n "checking for $ac_word... " >&6; }
7480 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7481   $as_echo_n "(cached) " >&6
7482 else
7483   if test -n "$ac_ct_DSYMUTIL"; then
7484   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7485 else
7486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7487 for as_dir in $PATH
7488 do
7489   IFS=$as_save_IFS
7490   test -z "$as_dir" && as_dir=.
7491     for ac_exec_ext in '' $ac_executable_extensions; do
7492   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7493     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7494     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7495     break 2
7496   fi
7497 done
7498   done
7499 IFS=$as_save_IFS
7500
7501 fi
7502 fi
7503 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7504 if test -n "$ac_ct_DSYMUTIL"; then
7505   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7506 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7507 else
7508   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7509 $as_echo "no" >&6; }
7510 fi
7511
7512   if test "x$ac_ct_DSYMUTIL" = x; then
7513     DSYMUTIL=":"
7514   else
7515     case $cross_compiling:$ac_tool_warned in
7516 yes:)
7517 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7518 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7519 ac_tool_warned=yes ;;
7520 esac
7521     DSYMUTIL=$ac_ct_DSYMUTIL
7522   fi
7523 else
7524   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7525 fi
7526
7527     if test -n "$ac_tool_prefix"; then
7528   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7529 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7531 $as_echo_n "checking for $ac_word... " >&6; }
7532 if ${ac_cv_prog_NMEDIT+:} false; then :
7533   $as_echo_n "(cached) " >&6
7534 else
7535   if test -n "$NMEDIT"; then
7536   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7537 else
7538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7539 for as_dir in $PATH
7540 do
7541   IFS=$as_save_IFS
7542   test -z "$as_dir" && as_dir=.
7543     for ac_exec_ext in '' $ac_executable_extensions; do
7544   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7545     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7546     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7547     break 2
7548   fi
7549 done
7550   done
7551 IFS=$as_save_IFS
7552
7553 fi
7554 fi
7555 NMEDIT=$ac_cv_prog_NMEDIT
7556 if test -n "$NMEDIT"; then
7557   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7558 $as_echo "$NMEDIT" >&6; }
7559 else
7560   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7561 $as_echo "no" >&6; }
7562 fi
7563
7564
7565 fi
7566 if test -z "$ac_cv_prog_NMEDIT"; then
7567   ac_ct_NMEDIT=$NMEDIT
7568   # Extract the first word of "nmedit", so it can be a program name with args.
7569 set dummy nmedit; ac_word=$2
7570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7571 $as_echo_n "checking for $ac_word... " >&6; }
7572 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7573   $as_echo_n "(cached) " >&6
7574 else
7575   if test -n "$ac_ct_NMEDIT"; then
7576   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7577 else
7578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7579 for as_dir in $PATH
7580 do
7581   IFS=$as_save_IFS
7582   test -z "$as_dir" && as_dir=.
7583     for ac_exec_ext in '' $ac_executable_extensions; do
7584   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7585     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7586     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7587     break 2
7588   fi
7589 done
7590   done
7591 IFS=$as_save_IFS
7592
7593 fi
7594 fi
7595 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7596 if test -n "$ac_ct_NMEDIT"; then
7597   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7598 $as_echo "$ac_ct_NMEDIT" >&6; }
7599 else
7600   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7601 $as_echo "no" >&6; }
7602 fi
7603
7604   if test "x$ac_ct_NMEDIT" = x; then
7605     NMEDIT=":"
7606   else
7607     case $cross_compiling:$ac_tool_warned in
7608 yes:)
7609 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7610 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7611 ac_tool_warned=yes ;;
7612 esac
7613     NMEDIT=$ac_ct_NMEDIT
7614   fi
7615 else
7616   NMEDIT="$ac_cv_prog_NMEDIT"
7617 fi
7618
7619     if test -n "$ac_tool_prefix"; then
7620   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7621 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7623 $as_echo_n "checking for $ac_word... " >&6; }
7624 if ${ac_cv_prog_LIPO+:} false; then :
7625   $as_echo_n "(cached) " >&6
7626 else
7627   if test -n "$LIPO"; then
7628   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7629 else
7630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7631 for as_dir in $PATH
7632 do
7633   IFS=$as_save_IFS
7634   test -z "$as_dir" && as_dir=.
7635     for ac_exec_ext in '' $ac_executable_extensions; do
7636   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7637     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7638     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7639     break 2
7640   fi
7641 done
7642   done
7643 IFS=$as_save_IFS
7644
7645 fi
7646 fi
7647 LIPO=$ac_cv_prog_LIPO
7648 if test -n "$LIPO"; then
7649   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7650 $as_echo "$LIPO" >&6; }
7651 else
7652   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7653 $as_echo "no" >&6; }
7654 fi
7655
7656
7657 fi
7658 if test -z "$ac_cv_prog_LIPO"; then
7659   ac_ct_LIPO=$LIPO
7660   # Extract the first word of "lipo", so it can be a program name with args.
7661 set dummy lipo; ac_word=$2
7662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7663 $as_echo_n "checking for $ac_word... " >&6; }
7664 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7665   $as_echo_n "(cached) " >&6
7666 else
7667   if test -n "$ac_ct_LIPO"; then
7668   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7669 else
7670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7671 for as_dir in $PATH
7672 do
7673   IFS=$as_save_IFS
7674   test -z "$as_dir" && as_dir=.
7675     for ac_exec_ext in '' $ac_executable_extensions; do
7676   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7677     ac_cv_prog_ac_ct_LIPO="lipo"
7678     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7679     break 2
7680   fi
7681 done
7682   done
7683 IFS=$as_save_IFS
7684
7685 fi
7686 fi
7687 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7688 if test -n "$ac_ct_LIPO"; then
7689   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7690 $as_echo "$ac_ct_LIPO" >&6; }
7691 else
7692   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7693 $as_echo "no" >&6; }
7694 fi
7695
7696   if test "x$ac_ct_LIPO" = x; then
7697     LIPO=":"
7698   else
7699     case $cross_compiling:$ac_tool_warned in
7700 yes:)
7701 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7702 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7703 ac_tool_warned=yes ;;
7704 esac
7705     LIPO=$ac_ct_LIPO
7706   fi
7707 else
7708   LIPO="$ac_cv_prog_LIPO"
7709 fi
7710
7711     if test -n "$ac_tool_prefix"; then
7712   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7713 set dummy ${ac_tool_prefix}otool; ac_word=$2
7714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7715 $as_echo_n "checking for $ac_word... " >&6; }
7716 if ${ac_cv_prog_OTOOL+:} false; then :
7717   $as_echo_n "(cached) " >&6
7718 else
7719   if test -n "$OTOOL"; then
7720   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7721 else
7722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7723 for as_dir in $PATH
7724 do
7725   IFS=$as_save_IFS
7726   test -z "$as_dir" && as_dir=.
7727     for ac_exec_ext in '' $ac_executable_extensions; do
7728   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7729     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7730     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7731     break 2
7732   fi
7733 done
7734   done
7735 IFS=$as_save_IFS
7736
7737 fi
7738 fi
7739 OTOOL=$ac_cv_prog_OTOOL
7740 if test -n "$OTOOL"; then
7741   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7742 $as_echo "$OTOOL" >&6; }
7743 else
7744   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7745 $as_echo "no" >&6; }
7746 fi
7747
7748
7749 fi
7750 if test -z "$ac_cv_prog_OTOOL"; then
7751   ac_ct_OTOOL=$OTOOL
7752   # Extract the first word of "otool", so it can be a program name with args.
7753 set dummy otool; ac_word=$2
7754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7755 $as_echo_n "checking for $ac_word... " >&6; }
7756 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7757   $as_echo_n "(cached) " >&6
7758 else
7759   if test -n "$ac_ct_OTOOL"; then
7760   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7761 else
7762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7763 for as_dir in $PATH
7764 do
7765   IFS=$as_save_IFS
7766   test -z "$as_dir" && as_dir=.
7767     for ac_exec_ext in '' $ac_executable_extensions; do
7768   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7769     ac_cv_prog_ac_ct_OTOOL="otool"
7770     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7771     break 2
7772   fi
7773 done
7774   done
7775 IFS=$as_save_IFS
7776
7777 fi
7778 fi
7779 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7780 if test -n "$ac_ct_OTOOL"; then
7781   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7782 $as_echo "$ac_ct_OTOOL" >&6; }
7783 else
7784   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7785 $as_echo "no" >&6; }
7786 fi
7787
7788   if test "x$ac_ct_OTOOL" = x; then
7789     OTOOL=":"
7790   else
7791     case $cross_compiling:$ac_tool_warned in
7792 yes:)
7793 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7794 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7795 ac_tool_warned=yes ;;
7796 esac
7797     OTOOL=$ac_ct_OTOOL
7798   fi
7799 else
7800   OTOOL="$ac_cv_prog_OTOOL"
7801 fi
7802
7803     if test -n "$ac_tool_prefix"; then
7804   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7805 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7807 $as_echo_n "checking for $ac_word... " >&6; }
7808 if ${ac_cv_prog_OTOOL64+:} false; then :
7809   $as_echo_n "(cached) " >&6
7810 else
7811   if test -n "$OTOOL64"; then
7812   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7813 else
7814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7815 for as_dir in $PATH
7816 do
7817   IFS=$as_save_IFS
7818   test -z "$as_dir" && as_dir=.
7819     for ac_exec_ext in '' $ac_executable_extensions; do
7820   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7821     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7822     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7823     break 2
7824   fi
7825 done
7826   done
7827 IFS=$as_save_IFS
7828
7829 fi
7830 fi
7831 OTOOL64=$ac_cv_prog_OTOOL64
7832 if test -n "$OTOOL64"; then
7833   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7834 $as_echo "$OTOOL64" >&6; }
7835 else
7836   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7837 $as_echo "no" >&6; }
7838 fi
7839
7840
7841 fi
7842 if test -z "$ac_cv_prog_OTOOL64"; then
7843   ac_ct_OTOOL64=$OTOOL64
7844   # Extract the first word of "otool64", so it can be a program name with args.
7845 set dummy otool64; ac_word=$2
7846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7847 $as_echo_n "checking for $ac_word... " >&6; }
7848 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7849   $as_echo_n "(cached) " >&6
7850 else
7851   if test -n "$ac_ct_OTOOL64"; then
7852   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7853 else
7854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7855 for as_dir in $PATH
7856 do
7857   IFS=$as_save_IFS
7858   test -z "$as_dir" && as_dir=.
7859     for ac_exec_ext in '' $ac_executable_extensions; do
7860   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7861     ac_cv_prog_ac_ct_OTOOL64="otool64"
7862     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7863     break 2
7864   fi
7865 done
7866   done
7867 IFS=$as_save_IFS
7868
7869 fi
7870 fi
7871 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7872 if test -n "$ac_ct_OTOOL64"; then
7873   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7874 $as_echo "$ac_ct_OTOOL64" >&6; }
7875 else
7876   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7877 $as_echo "no" >&6; }
7878 fi
7879
7880   if test "x$ac_ct_OTOOL64" = x; then
7881     OTOOL64=":"
7882   else
7883     case $cross_compiling:$ac_tool_warned in
7884 yes:)
7885 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7886 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7887 ac_tool_warned=yes ;;
7888 esac
7889     OTOOL64=$ac_ct_OTOOL64
7890   fi
7891 else
7892   OTOOL64="$ac_cv_prog_OTOOL64"
7893 fi
7894
7895
7896
7897
7898
7899
7900
7901
7902
7903
7904
7905
7906
7907
7908
7909
7910
7911
7912
7913
7914
7915
7916
7917
7918
7919
7920
7921     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7922 $as_echo_n "checking for -single_module linker flag... " >&6; }
7923 if ${lt_cv_apple_cc_single_mod+:} false; then :
7924   $as_echo_n "(cached) " >&6
7925 else
7926   lt_cv_apple_cc_single_mod=no
7927       if test -z "${LT_MULTI_MODULE}"; then
7928         # By default we will add the -single_module flag. You can override
7929         # by either setting the environment variable LT_MULTI_MODULE
7930         # non-empty at configure time, or by adding -multi_module to the
7931         # link flags.
7932         rm -rf libconftest.dylib*
7933         echo "int foo(void){return 1;}" > conftest.c
7934         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7935 -dynamiclib -Wl,-single_module conftest.c" >&5
7936         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7937           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7938         _lt_result=$?
7939         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7940           lt_cv_apple_cc_single_mod=yes
7941         else
7942           cat conftest.err >&5
7943         fi
7944         rm -rf libconftest.dylib*
7945         rm -f conftest.*
7946       fi
7947 fi
7948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7949 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7950     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7951 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7952 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7953   $as_echo_n "(cached) " >&6
7954 else
7955   lt_cv_ld_exported_symbols_list=no
7956       save_LDFLAGS=$LDFLAGS
7957       echo "_main" > conftest.sym
7958       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7959       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7960 /* end confdefs.h.  */
7961
7962 int
7963 main ()
7964 {
7965
7966   ;
7967   return 0;
7968 }
7969 _ACEOF
7970 if ac_fn_c_try_link "$LINENO"; then :
7971   lt_cv_ld_exported_symbols_list=yes
7972 else
7973   lt_cv_ld_exported_symbols_list=no
7974 fi
7975 rm -f core conftest.err conftest.$ac_objext \
7976     conftest$ac_exeext conftest.$ac_ext
7977         LDFLAGS="$save_LDFLAGS"
7978
7979 fi
7980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7981 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7982     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7983 $as_echo_n "checking for -force_load linker flag... " >&6; }
7984 if ${lt_cv_ld_force_load+:} false; then :
7985   $as_echo_n "(cached) " >&6
7986 else
7987   lt_cv_ld_force_load=no
7988       cat > conftest.c << _LT_EOF
7989 int forced_loaded() { return 2;}
7990 _LT_EOF
7991       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7992       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7993       echo "$AR cru libconftest.a conftest.o" >&5
7994       $AR cru libconftest.a conftest.o 2>&5
7995       cat > conftest.c << _LT_EOF
7996 int main() { return 0;}
7997 _LT_EOF
7998       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7999       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8000       _lt_result=$?
8001       if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8002         lt_cv_ld_force_load=yes
8003       else
8004         cat conftest.err >&5
8005       fi
8006         rm -f conftest.err libconftest.a conftest conftest.c
8007         rm -rf conftest.dSYM
8008
8009 fi
8010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8011 $as_echo "$lt_cv_ld_force_load" >&6; }
8012     case $host_os in
8013     rhapsody* | darwin1.[012])
8014       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8015     darwin1.*)
8016       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8017     darwin*) # darwin 5.x on
8018       # if running on 10.5 or later, the deployment target defaults
8019       # to the OS version, if on x86, and 10.4, the deployment
8020       # target defaults to 10.4. Don't you love it?
8021       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8022         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8023           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8024         10.[012][,.]*)
8025           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8026         10.*)
8027           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8028       esac
8029     ;;
8030   esac
8031     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8032       _lt_dar_single_mod='$single_module'
8033     fi
8034     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8035       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8036     else
8037       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8038     fi
8039     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8040       _lt_dsymutil='~$DSYMUTIL $lib || :'
8041     else
8042       _lt_dsymutil=
8043     fi
8044     ;;
8045   esac
8046
8047 for ac_header in dlfcn.h
8048 do :
8049   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8050 "
8051 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8052   cat >>confdefs.h <<_ACEOF
8053 #define HAVE_DLFCN_H 1
8054 _ACEOF
8055
8056 fi
8057
8058 done
8059
8060
8061
8062
8063
8064 # Set options
8065
8066
8067
8068         enable_dlopen=no
8069
8070
8071   enable_win32_dll=no
8072
8073
8074             # Check whether --enable-shared was given.
8075 if test "${enable_shared+set}" = set; then :
8076   enableval=$enable_shared; p=${PACKAGE-default}
8077     case $enableval in
8078     yes) enable_shared=yes ;;
8079     no) enable_shared=no ;;
8080     *)
8081       enable_shared=no
8082       # Look at the argument we got.  We use all the common list separators.
8083       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8084       for pkg in $enableval; do
8085         IFS="$lt_save_ifs"
8086         if test "X$pkg" = "X$p"; then
8087           enable_shared=yes
8088         fi
8089       done
8090       IFS="$lt_save_ifs"
8091       ;;
8092     esac
8093 else
8094   enable_shared=yes
8095 fi
8096
8097
8098
8099
8100
8101
8102
8103
8104
8105   # Check whether --enable-static was given.
8106 if test "${enable_static+set}" = set; then :
8107   enableval=$enable_static; p=${PACKAGE-default}
8108     case $enableval in
8109     yes) enable_static=yes ;;
8110     no) enable_static=no ;;
8111     *)
8112      enable_static=no
8113       # Look at the argument we got.  We use all the common list separators.
8114       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8115       for pkg in $enableval; do
8116         IFS="$lt_save_ifs"
8117         if test "X$pkg" = "X$p"; then
8118           enable_static=yes
8119         fi
8120       done
8121       IFS="$lt_save_ifs"
8122       ;;
8123     esac
8124 else
8125   enable_static=yes
8126 fi
8127
8128
8129
8130
8131
8132
8133
8134
8135
8136
8137 # Check whether --with-pic was given.
8138 if test "${with_pic+set}" = set; then :
8139   withval=$with_pic; pic_mode="$withval"
8140 else
8141   pic_mode=default
8142 fi
8143
8144
8145 test -z "$pic_mode" && pic_mode=default
8146
8147
8148
8149
8150
8151
8152
8153   # Check whether --enable-fast-install was given.
8154 if test "${enable_fast_install+set}" = set; then :
8155   enableval=$enable_fast_install; p=${PACKAGE-default}
8156     case $enableval in
8157     yes) enable_fast_install=yes ;;
8158     no) enable_fast_install=no ;;
8159     *)
8160       enable_fast_install=no
8161       # Look at the argument we got.  We use all the common list separators.
8162       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8163       for pkg in $enableval; do
8164         IFS="$lt_save_ifs"
8165         if test "X$pkg" = "X$p"; then
8166           enable_fast_install=yes
8167         fi
8168       done
8169       IFS="$lt_save_ifs"
8170       ;;
8171     esac
8172 else
8173   enable_fast_install=yes
8174 fi
8175
8176
8177
8178
8179
8180
8181
8182
8183
8184
8185
8186 # This can be used to rebuild libtool when needed
8187 LIBTOOL_DEPS="$ltmain"
8188
8189 # Always use our own libtool.
8190 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8191
8192
8193
8194
8195
8196
8197
8198
8199
8200
8201
8202
8203
8204
8205
8206
8207
8208
8209
8210
8211
8212
8213
8214
8215
8216
8217 test -z "$LN_S" && LN_S="ln -s"
8218
8219
8220
8221
8222
8223
8224
8225
8226
8227
8228
8229
8230
8231
8232 if test -n "${ZSH_VERSION+set}" ; then
8233    setopt NO_GLOB_SUBST
8234 fi
8235
8236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8237 $as_echo_n "checking for objdir... " >&6; }
8238 if ${lt_cv_objdir+:} false; then :
8239   $as_echo_n "(cached) " >&6
8240 else
8241   rm -f .libs 2>/dev/null
8242 mkdir .libs 2>/dev/null
8243 if test -d .libs; then
8244   lt_cv_objdir=.libs
8245 else
8246   # MS-DOS does not allow filenames that begin with a dot.
8247   lt_cv_objdir=_libs
8248 fi
8249 rmdir .libs 2>/dev/null
8250 fi
8251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8252 $as_echo "$lt_cv_objdir" >&6; }
8253 objdir=$lt_cv_objdir
8254
8255
8256
8257
8258
8259 cat >>confdefs.h <<_ACEOF
8260 #define LT_OBJDIR "$lt_cv_objdir/"
8261 _ACEOF
8262
8263
8264
8265
8266 case $host_os in
8267 aix3*)
8268   # AIX sometimes has problems with the GCC collect2 program.  For some
8269   # reason, if we set the COLLECT_NAMES environment variable, the problems
8270   # vanish in a puff of smoke.
8271   if test "X${COLLECT_NAMES+set}" != Xset; then
8272     COLLECT_NAMES=
8273     export COLLECT_NAMES
8274   fi
8275   ;;
8276 esac
8277
8278 # Global variables:
8279 ofile=libtool
8280 can_build_shared=yes
8281
8282 # All known linkers require a `.a' archive for static linking (except MSVC,
8283 # which needs '.lib').
8284 libext=a
8285
8286 with_gnu_ld="$lt_cv_prog_gnu_ld"
8287
8288 old_CC="$CC"
8289 old_CFLAGS="$CFLAGS"
8290
8291 # Set sane defaults for various variables
8292 test -z "$CC" && CC=cc
8293 test -z "$LTCC" && LTCC=$CC
8294 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8295 test -z "$LD" && LD=ld
8296 test -z "$ac_objext" && ac_objext=o
8297
8298 for cc_temp in $compiler""; do
8299   case $cc_temp in
8300     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8301     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8302     \-*) ;;
8303     *) break;;
8304   esac
8305 done
8306 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8307
8308
8309 # Only perform the check for file, if the check method requires it
8310 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8311 case $deplibs_check_method in
8312 file_magic*)
8313   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8314     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8315 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8316 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8317   $as_echo_n "(cached) " >&6
8318 else
8319   case $MAGIC_CMD in
8320 [\\/*] |  ?:[\\/]*)
8321   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8322   ;;
8323 *)
8324   lt_save_MAGIC_CMD="$MAGIC_CMD"
8325   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8326   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8327   for ac_dir in $ac_dummy; do
8328     IFS="$lt_save_ifs"
8329     test -z "$ac_dir" && ac_dir=.
8330     if test -f $ac_dir/${ac_tool_prefix}file; then
8331       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8332       if test -n "$file_magic_test_file"; then
8333         case $deplibs_check_method in
8334         "file_magic "*)
8335           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8336           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8337           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8338             $EGREP "$file_magic_regex" > /dev/null; then
8339             :
8340           else
8341             cat <<_LT_EOF 1>&2
8342
8343 *** Warning: the command libtool uses to detect shared libraries,
8344 *** $file_magic_cmd, produces output that libtool cannot recognize.
8345 *** The result is that libtool may fail to recognize shared libraries
8346 *** as such.  This will affect the creation of libtool libraries that
8347 *** depend on shared libraries, but programs linked with such libtool
8348 *** libraries will work regardless of this problem.  Nevertheless, you
8349 *** may want to report the problem to your system manager and/or to
8350 *** bug-libtool@gnu.org
8351
8352 _LT_EOF
8353           fi ;;
8354         esac
8355       fi
8356       break
8357     fi
8358   done
8359   IFS="$lt_save_ifs"
8360   MAGIC_CMD="$lt_save_MAGIC_CMD"
8361   ;;
8362 esac
8363 fi
8364
8365 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8366 if test -n "$MAGIC_CMD"; then
8367   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8368 $as_echo "$MAGIC_CMD" >&6; }
8369 else
8370   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8371 $as_echo "no" >&6; }
8372 fi
8373
8374
8375
8376
8377
8378 if test -z "$lt_cv_path_MAGIC_CMD"; then
8379   if test -n "$ac_tool_prefix"; then
8380     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8381 $as_echo_n "checking for file... " >&6; }
8382 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8383   $as_echo_n "(cached) " >&6
8384 else
8385   case $MAGIC_CMD in
8386 [\\/*] |  ?:[\\/]*)
8387   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8388   ;;
8389 *)
8390   lt_save_MAGIC_CMD="$MAGIC_CMD"
8391   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8392   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8393   for ac_dir in $ac_dummy; do
8394     IFS="$lt_save_ifs"
8395     test -z "$ac_dir" && ac_dir=.
8396     if test -f $ac_dir/file; then
8397       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8398       if test -n "$file_magic_test_file"; then
8399         case $deplibs_check_method in
8400         "file_magic "*)
8401           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8402           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8403           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8404             $EGREP "$file_magic_regex" > /dev/null; then
8405             :
8406           else
8407             cat <<_LT_EOF 1>&2
8408
8409 *** Warning: the command libtool uses to detect shared libraries,
8410 *** $file_magic_cmd, produces output that libtool cannot recognize.
8411 *** The result is that libtool may fail to recognize shared libraries
8412 *** as such.  This will affect the creation of libtool libraries that
8413 *** depend on shared libraries, but programs linked with such libtool
8414 *** libraries will work regardless of this problem.  Nevertheless, you
8415 *** may want to report the problem to your system manager and/or to
8416 *** bug-libtool@gnu.org
8417
8418 _LT_EOF
8419           fi ;;
8420         esac
8421       fi
8422       break
8423     fi
8424   done
8425   IFS="$lt_save_ifs"
8426   MAGIC_CMD="$lt_save_MAGIC_CMD"
8427   ;;
8428 esac
8429 fi
8430
8431 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8432 if test -n "$MAGIC_CMD"; then
8433   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8434 $as_echo "$MAGIC_CMD" >&6; }
8435 else
8436   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8437 $as_echo "no" >&6; }
8438 fi
8439
8440
8441   else
8442     MAGIC_CMD=:
8443   fi
8444 fi
8445
8446   fi
8447   ;;
8448 esac
8449
8450 # Use C for the default configuration in the libtool script
8451
8452 lt_save_CC="$CC"
8453 ac_ext=c
8454 ac_cpp='$CPP $CPPFLAGS'
8455 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8456 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8457 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8458
8459
8460 # Source file extension for C test sources.
8461 ac_ext=c
8462
8463 # Object file extension for compiled C test sources.
8464 objext=o
8465 objext=$objext
8466
8467 # Code to be used in simple compile tests
8468 lt_simple_compile_test_code="int some_variable = 0;"
8469
8470 # Code to be used in simple link tests
8471 lt_simple_link_test_code='int main(){return(0);}'
8472
8473
8474
8475
8476
8477
8478
8479 # If no C compiler was specified, use CC.
8480 LTCC=${LTCC-"$CC"}
8481
8482 # If no C compiler flags were specified, use CFLAGS.
8483 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8484
8485 # Allow CC to be a program name with arguments.
8486 compiler=$CC
8487
8488 # Save the default compiler, since it gets overwritten when the other
8489 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8490 compiler_DEFAULT=$CC
8491
8492 # save warnings/boilerplate of simple test code
8493 ac_outfile=conftest.$ac_objext
8494 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8495 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8496 _lt_compiler_boilerplate=`cat conftest.err`
8497 $RM conftest*
8498
8499 ac_outfile=conftest.$ac_objext
8500 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8501 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8502 _lt_linker_boilerplate=`cat conftest.err`
8503 $RM -r conftest*
8504
8505
8506 ## CAVEAT EMPTOR:
8507 ## There is no encapsulation within the following macros, do not change
8508 ## the running order or otherwise move them around unless you know exactly
8509 ## what you are doing...
8510 if test -n "$compiler"; then
8511
8512 lt_prog_compiler_no_builtin_flag=
8513
8514 if test "$GCC" = yes; then
8515   case $cc_basename in
8516   nvcc*)
8517     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8518   *)
8519     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8520   esac
8521
8522   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8523 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8524 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8525   $as_echo_n "(cached) " >&6
8526 else
8527   lt_cv_prog_compiler_rtti_exceptions=no
8528    ac_outfile=conftest.$ac_objext
8529    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8530    lt_compiler_flag="-fno-rtti -fno-exceptions"
8531    # Insert the option either (1) after the last *FLAGS variable, or
8532    # (2) before a word containing "conftest.", or (3) at the end.
8533    # Note that $ac_compile itself does not contain backslashes and begins
8534    # with a dollar sign (not a hyphen), so the echo should work correctly.
8535    # The option is referenced via a variable to avoid confusing sed.
8536    lt_compile=`echo "$ac_compile" | $SED \
8537    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8538    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8539    -e 's:$: $lt_compiler_flag:'`
8540    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8541    (eval "$lt_compile" 2>conftest.err)
8542    ac_status=$?
8543    cat conftest.err >&5
8544    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8545    if (exit $ac_status) && test -s "$ac_outfile"; then
8546      # The compiler can only warn and ignore the option if not recognized
8547      # So say no if there are warnings other than the usual output.
8548      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8549      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8550      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8551        lt_cv_prog_compiler_rtti_exceptions=yes
8552      fi
8553    fi
8554    $RM conftest*
8555
8556 fi
8557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8558 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8559
8560 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8561     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8562 else
8563     :
8564 fi
8565
8566 fi
8567
8568
8569
8570
8571
8572
8573   lt_prog_compiler_wl=
8574 lt_prog_compiler_pic=
8575 lt_prog_compiler_static=
8576
8577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8578 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8579
8580   if test "$GCC" = yes; then
8581     lt_prog_compiler_wl='-Wl,'
8582     lt_prog_compiler_static='-static'
8583
8584     case $host_os in
8585       aix*)
8586       # All AIX code is PIC.
8587       if test "$host_cpu" = ia64; then
8588         # AIX 5 now supports IA64 processor
8589         lt_prog_compiler_static='-Bstatic'
8590       fi
8591       lt_prog_compiler_pic='-fPIC'
8592       ;;
8593
8594     amigaos*)
8595       case $host_cpu in
8596       powerpc)
8597             # see comment about AmigaOS4 .so support
8598             lt_prog_compiler_pic='-fPIC'
8599         ;;
8600       m68k)
8601             # FIXME: we need at least 68020 code to build shared libraries, but
8602             # adding the `-m68020' flag to GCC prevents building anything better,
8603             # like `-m68040'.
8604             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8605         ;;
8606       esac
8607       ;;
8608
8609     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8610       # PIC is the default for these OSes.
8611       ;;
8612
8613     mingw* | cygwin* | pw32* | os2* | cegcc*)
8614       # This hack is so that the source file can tell whether it is being
8615       # built for inclusion in a dll (and should export symbols for example).
8616       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8617       # (--disable-auto-import) libraries
8618       lt_prog_compiler_pic='-DDLL_EXPORT'
8619       ;;
8620
8621     darwin* | rhapsody*)
8622       # PIC is the default on this platform
8623       # Common symbols not allowed in MH_DYLIB files
8624       lt_prog_compiler_pic='-fno-common'
8625       ;;
8626
8627     haiku*)
8628       # PIC is the default for Haiku.
8629       # The "-static" flag exists, but is broken.
8630       lt_prog_compiler_static=
8631       ;;
8632
8633     hpux*)
8634       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8635       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8636       # sets the default TLS model and affects inlining.
8637       case $host_cpu in
8638       hppa*64*)
8639         # +Z the default
8640         ;;
8641       *)
8642         lt_prog_compiler_pic='-fPIC'
8643         ;;
8644       esac
8645       ;;
8646
8647     interix[3-9]*)
8648       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8649       # Instead, we relocate shared libraries at runtime.
8650       ;;
8651
8652     msdosdjgpp*)
8653       # Just because we use GCC doesn't mean we suddenly get shared libraries
8654       # on systems that don't support them.
8655       lt_prog_compiler_can_build_shared=no
8656       enable_shared=no
8657       ;;
8658
8659     *nto* | *qnx*)
8660       # QNX uses GNU C++, but need to define -shared option too, otherwise
8661       # it will coredump.
8662       lt_prog_compiler_pic='-fPIC -shared'
8663       ;;
8664
8665     sysv4*MP*)
8666       if test -d /usr/nec; then
8667         lt_prog_compiler_pic=-Kconform_pic
8668       fi
8669       ;;
8670
8671     *)
8672       lt_prog_compiler_pic='-fPIC'
8673       ;;
8674     esac
8675
8676     case $cc_basename in
8677     nvcc*) # Cuda Compiler Driver 2.2
8678       lt_prog_compiler_wl='-Xlinker '
8679       lt_prog_compiler_pic='-Xcompiler -fPIC'
8680       ;;
8681     esac
8682   else
8683     # PORTME Check for flag to pass linker flags through the system compiler.
8684     case $host_os in
8685     aix*)
8686       lt_prog_compiler_wl='-Wl,'
8687       if test "$host_cpu" = ia64; then
8688         # AIX 5 now supports IA64 processor
8689         lt_prog_compiler_static='-Bstatic'
8690       else
8691         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8692       fi
8693       ;;
8694
8695     mingw* | cygwin* | pw32* | os2* | cegcc*)
8696       # This hack is so that the source file can tell whether it is being
8697       # built for inclusion in a dll (and should export symbols for example).
8698       lt_prog_compiler_pic='-DDLL_EXPORT'
8699       ;;
8700
8701     hpux9* | hpux10* | hpux11*)
8702       lt_prog_compiler_wl='-Wl,'
8703       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8704       # not for PA HP-UX.
8705       case $host_cpu in
8706       hppa*64*|ia64*)
8707         # +Z the default
8708         ;;
8709       *)
8710         lt_prog_compiler_pic='+Z'
8711         ;;
8712       esac
8713       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8714       lt_prog_compiler_static='${wl}-a ${wl}archive'
8715       ;;
8716
8717     irix5* | irix6* | nonstopux*)
8718       lt_prog_compiler_wl='-Wl,'
8719       # PIC (with -KPIC) is the default.
8720       lt_prog_compiler_static='-non_shared'
8721       ;;
8722
8723     linux* | k*bsd*-gnu | kopensolaris*-gnu)
8724       case $cc_basename in
8725       # old Intel for x86_64 which still supported -KPIC.
8726       ecc*)
8727         lt_prog_compiler_wl='-Wl,'
8728         lt_prog_compiler_pic='-KPIC'
8729         lt_prog_compiler_static='-static'
8730         ;;
8731       # icc used to be incompatible with GCC.
8732       # ICC 10 doesn't accept -KPIC any more.
8733       icc* | ifort*)
8734         lt_prog_compiler_wl='-Wl,'
8735         lt_prog_compiler_pic='-fPIC'
8736         lt_prog_compiler_static='-static'
8737         ;;
8738       # Lahey Fortran 8.1.
8739       lf95*)
8740         lt_prog_compiler_wl='-Wl,'
8741         lt_prog_compiler_pic='--shared'
8742         lt_prog_compiler_static='--static'
8743         ;;
8744       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8745         # Portland Group compilers (*not* the Pentium gcc compiler,
8746         # which looks to be a dead project)
8747         lt_prog_compiler_wl='-Wl,'
8748         lt_prog_compiler_pic='-fpic'
8749         lt_prog_compiler_static='-Bstatic'
8750         ;;
8751       ccc*)
8752         lt_prog_compiler_wl='-Wl,'
8753         # All Alpha code is PIC.
8754         lt_prog_compiler_static='-non_shared'
8755         ;;
8756       xl* | bgxl* | bgf* | mpixl*)
8757         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8758         lt_prog_compiler_wl='-Wl,'
8759         lt_prog_compiler_pic='-qpic'
8760         lt_prog_compiler_static='-qstaticlink'
8761         ;;
8762       *)
8763         case `$CC -V 2>&1 | sed 5q` in
8764         *Sun\ F* | *Sun*Fortran*)
8765           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8766           lt_prog_compiler_pic='-KPIC'
8767           lt_prog_compiler_static='-Bstatic'
8768           lt_prog_compiler_wl=''
8769           ;;
8770         *Sun\ C*)
8771           # Sun C 5.9
8772           lt_prog_compiler_pic='-KPIC'
8773           lt_prog_compiler_static='-Bstatic'
8774           lt_prog_compiler_wl='-Wl,'
8775           ;;
8776         esac
8777         ;;
8778       esac
8779       ;;
8780
8781     newsos6)
8782       lt_prog_compiler_pic='-KPIC'
8783       lt_prog_compiler_static='-Bstatic'
8784       ;;
8785
8786     *nto* | *qnx*)
8787       # QNX uses GNU C++, but need to define -shared option too, otherwise
8788       # it will coredump.
8789       lt_prog_compiler_pic='-fPIC -shared'
8790       ;;
8791
8792     osf3* | osf4* | osf5*)
8793       lt_prog_compiler_wl='-Wl,'
8794       # All OSF/1 code is PIC.
8795       lt_prog_compiler_static='-non_shared'
8796       ;;
8797
8798     rdos*)
8799       lt_prog_compiler_static='-non_shared'
8800       ;;
8801
8802     solaris*)
8803       lt_prog_compiler_pic='-KPIC'
8804       lt_prog_compiler_static='-Bstatic'
8805       case $cc_basename in
8806       f77* | f90* | f95*)
8807         lt_prog_compiler_wl='-Qoption ld ';;
8808       *)
8809         lt_prog_compiler_wl='-Wl,';;
8810       esac
8811       ;;
8812
8813     sunos4*)
8814       lt_prog_compiler_wl='-Qoption ld '
8815       lt_prog_compiler_pic='-PIC'
8816       lt_prog_compiler_static='-Bstatic'
8817       ;;
8818
8819     sysv4 | sysv4.2uw2* | sysv4.3*)
8820       lt_prog_compiler_wl='-Wl,'
8821       lt_prog_compiler_pic='-KPIC'
8822       lt_prog_compiler_static='-Bstatic'
8823       ;;
8824
8825     sysv4*MP*)
8826       if test -d /usr/nec ;then
8827         lt_prog_compiler_pic='-Kconform_pic'
8828         lt_prog_compiler_static='-Bstatic'
8829       fi
8830       ;;
8831
8832     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8833       lt_prog_compiler_wl='-Wl,'
8834       lt_prog_compiler_pic='-KPIC'
8835       lt_prog_compiler_static='-Bstatic'
8836       ;;
8837
8838     unicos*)
8839       lt_prog_compiler_wl='-Wl,'
8840       lt_prog_compiler_can_build_shared=no
8841       ;;
8842
8843     uts4*)
8844       lt_prog_compiler_pic='-pic'
8845       lt_prog_compiler_static='-Bstatic'
8846       ;;
8847
8848     *)
8849       lt_prog_compiler_can_build_shared=no
8850       ;;
8851     esac
8852   fi
8853
8854 case $host_os in
8855   # For platforms which do not support PIC, -DPIC is meaningless:
8856   *djgpp*)
8857     lt_prog_compiler_pic=
8858     ;;
8859   *)
8860     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8861     ;;
8862 esac
8863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8864 $as_echo "$lt_prog_compiler_pic" >&6; }
8865
8866
8867
8868
8869
8870
8871 #
8872 # Check to make sure the PIC flag actually works.
8873 #
8874 if test -n "$lt_prog_compiler_pic"; then
8875   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8876 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8877 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8878   $as_echo_n "(cached) " >&6
8879 else
8880   lt_cv_prog_compiler_pic_works=no
8881    ac_outfile=conftest.$ac_objext
8882    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8883    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8884    # Insert the option either (1) after the last *FLAGS variable, or
8885    # (2) before a word containing "conftest.", or (3) at the end.
8886    # Note that $ac_compile itself does not contain backslashes and begins
8887    # with a dollar sign (not a hyphen), so the echo should work correctly.
8888    # The option is referenced via a variable to avoid confusing sed.
8889    lt_compile=`echo "$ac_compile" | $SED \
8890    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8891    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8892    -e 's:$: $lt_compiler_flag:'`
8893    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8894    (eval "$lt_compile" 2>conftest.err)
8895    ac_status=$?
8896    cat conftest.err >&5
8897    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8898    if (exit $ac_status) && test -s "$ac_outfile"; then
8899      # The compiler can only warn and ignore the option if not recognized
8900      # So say no if there are warnings other than the usual output.
8901      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8902      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8903      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8904        lt_cv_prog_compiler_pic_works=yes
8905      fi
8906    fi
8907    $RM conftest*
8908
8909 fi
8910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8911 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8912
8913 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8914     case $lt_prog_compiler_pic in
8915      "" | " "*) ;;
8916      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8917      esac
8918 else
8919     lt_prog_compiler_pic=
8920      lt_prog_compiler_can_build_shared=no
8921 fi
8922
8923 fi
8924
8925
8926
8927
8928
8929
8930 #
8931 # Check to make sure the static flag actually works.
8932 #
8933 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8935 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8936 if ${lt_cv_prog_compiler_static_works+:} false; then :
8937   $as_echo_n "(cached) " >&6
8938 else
8939   lt_cv_prog_compiler_static_works=no
8940    save_LDFLAGS="$LDFLAGS"
8941    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8942    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8943    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8944      # The linker can only warn and ignore the option if not recognized
8945      # So say no if there are warnings
8946      if test -s conftest.err; then
8947        # Append any errors to the config.log.
8948        cat conftest.err 1>&5
8949        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8950        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8951        if diff conftest.exp conftest.er2 >/dev/null; then
8952          lt_cv_prog_compiler_static_works=yes
8953        fi
8954      else
8955        lt_cv_prog_compiler_static_works=yes
8956      fi
8957    fi
8958    $RM -r conftest*
8959    LDFLAGS="$save_LDFLAGS"
8960
8961 fi
8962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8963 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8964
8965 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8966     :
8967 else
8968     lt_prog_compiler_static=
8969 fi
8970
8971
8972
8973
8974
8975
8976
8977   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8978 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8979 if ${lt_cv_prog_compiler_c_o+:} false; then :
8980   $as_echo_n "(cached) " >&6
8981 else
8982   lt_cv_prog_compiler_c_o=no
8983    $RM -r conftest 2>/dev/null
8984    mkdir conftest
8985    cd conftest
8986    mkdir out
8987    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8988
8989    lt_compiler_flag="-o out/conftest2.$ac_objext"
8990    # Insert the option either (1) after the last *FLAGS variable, or
8991    # (2) before a word containing "conftest.", or (3) at the end.
8992    # Note that $ac_compile itself does not contain backslashes and begins
8993    # with a dollar sign (not a hyphen), so the echo should work correctly.
8994    lt_compile=`echo "$ac_compile" | $SED \
8995    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8996    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8997    -e 's:$: $lt_compiler_flag:'`
8998    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8999    (eval "$lt_compile" 2>out/conftest.err)
9000    ac_status=$?
9001    cat out/conftest.err >&5
9002    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9003    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9004    then
9005      # The compiler can only warn and ignore the option if not recognized
9006      # So say no if there are warnings
9007      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9008      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9009      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9010        lt_cv_prog_compiler_c_o=yes
9011      fi
9012    fi
9013    chmod u+w . 2>&5
9014    $RM conftest*
9015    # SGI C++ compiler will create directory out/ii_files/ for
9016    # template instantiation
9017    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9018    $RM out/* && rmdir out
9019    cd ..
9020    $RM -r conftest
9021    $RM conftest*
9022
9023 fi
9024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9025 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9026
9027
9028
9029
9030
9031
9032   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9033 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9034 if ${lt_cv_prog_compiler_c_o+:} false; then :
9035   $as_echo_n "(cached) " >&6
9036 else
9037   lt_cv_prog_compiler_c_o=no
9038    $RM -r conftest 2>/dev/null
9039    mkdir conftest
9040    cd conftest
9041    mkdir out
9042    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9043
9044    lt_compiler_flag="-o out/conftest2.$ac_objext"
9045    # Insert the option either (1) after the last *FLAGS variable, or
9046    # (2) before a word containing "conftest.", or (3) at the end.
9047    # Note that $ac_compile itself does not contain backslashes and begins
9048    # with a dollar sign (not a hyphen), so the echo should work correctly.
9049    lt_compile=`echo "$ac_compile" | $SED \
9050    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9051    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9052    -e 's:$: $lt_compiler_flag:'`
9053    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9054    (eval "$lt_compile" 2>out/conftest.err)
9055    ac_status=$?
9056    cat out/conftest.err >&5
9057    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9058    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9059    then
9060      # The compiler can only warn and ignore the option if not recognized
9061      # So say no if there are warnings
9062      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9063      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9064      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9065        lt_cv_prog_compiler_c_o=yes
9066      fi
9067    fi
9068    chmod u+w . 2>&5
9069    $RM conftest*
9070    # SGI C++ compiler will create directory out/ii_files/ for
9071    # template instantiation
9072    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9073    $RM out/* && rmdir out
9074    cd ..
9075    $RM -r conftest
9076    $RM conftest*
9077
9078 fi
9079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9080 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9081
9082
9083
9084
9085 hard_links="nottested"
9086 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9087   # do not overwrite the value of need_locks provided by the user
9088   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9089 $as_echo_n "checking if we can lock with hard links... " >&6; }
9090   hard_links=yes
9091   $RM conftest*
9092   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9093   touch conftest.a
9094   ln conftest.a conftest.b 2>&5 || hard_links=no
9095   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9096   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9097 $as_echo "$hard_links" >&6; }
9098   if test "$hard_links" = no; then
9099     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9100 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9101     need_locks=warn
9102   fi
9103 else
9104   need_locks=no
9105 fi
9106
9107
9108
9109
9110
9111
9112   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9113 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9114
9115   runpath_var=
9116   allow_undefined_flag=
9117   always_export_symbols=no
9118   archive_cmds=
9119   archive_expsym_cmds=
9120   compiler_needs_object=no
9121   enable_shared_with_static_runtimes=no
9122   export_dynamic_flag_spec=
9123   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9124   hardcode_automatic=no
9125   hardcode_direct=no
9126   hardcode_direct_absolute=no
9127   hardcode_libdir_flag_spec=
9128   hardcode_libdir_flag_spec_ld=
9129   hardcode_libdir_separator=
9130   hardcode_minus_L=no
9131   hardcode_shlibpath_var=unsupported
9132   inherit_rpath=no
9133   link_all_deplibs=unknown
9134   module_cmds=
9135   module_expsym_cmds=
9136   old_archive_from_new_cmds=
9137   old_archive_from_expsyms_cmds=
9138   thread_safe_flag_spec=
9139   whole_archive_flag_spec=
9140   # include_expsyms should be a list of space-separated symbols to be *always*
9141   # included in the symbol list
9142   include_expsyms=
9143   # exclude_expsyms can be an extended regexp of symbols to exclude
9144   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9145   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9146   # as well as any symbol that contains `d'.
9147   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9148   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9149   # platforms (ab)use it in PIC code, but their linkers get confused if
9150   # the symbol is explicitly referenced.  Since portable code cannot
9151   # rely on this symbol name, it's probably fine to never include it in
9152   # preloaded symbol tables.
9153   # Exclude shared library initialization/finalization symbols.
9154   extract_expsyms_cmds=
9155
9156   case $host_os in
9157   cygwin* | mingw* | pw32* | cegcc*)
9158     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9159     # When not using gcc, we currently assume that we are using
9160     # Microsoft Visual C++.
9161     if test "$GCC" != yes; then
9162       with_gnu_ld=no
9163     fi
9164     ;;
9165   interix*)
9166     # we just hope/assume this is gcc and not c89 (= MSVC++)
9167     with_gnu_ld=yes
9168     ;;
9169   openbsd*)
9170     with_gnu_ld=no
9171     ;;
9172   esac
9173
9174   ld_shlibs=yes
9175
9176   # On some targets, GNU ld is compatible enough with the native linker
9177   # that we're better off using the native interface for both.
9178   lt_use_gnu_ld_interface=no
9179   if test "$with_gnu_ld" = yes; then
9180     case $host_os in
9181       aix*)
9182         # The AIX port of GNU ld has always aspired to compatibility
9183         # with the native linker.  However, as the warning in the GNU ld
9184         # block says, versions before 2.19.5* couldn't really create working
9185         # shared libraries, regardless of the interface used.
9186         case `$LD -v 2>&1` in
9187           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9188           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9189           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9190           *)
9191             lt_use_gnu_ld_interface=yes
9192             ;;
9193         esac
9194         ;;
9195       *)
9196         lt_use_gnu_ld_interface=yes
9197         ;;
9198     esac
9199   fi
9200
9201   if test "$lt_use_gnu_ld_interface" = yes; then
9202     # If archive_cmds runs LD, not CC, wlarc should be empty
9203     wlarc='${wl}'
9204
9205     # Set some defaults for GNU ld with shared library support. These
9206     # are reset later if shared libraries are not supported. Putting them
9207     # here allows them to be overridden if necessary.
9208     runpath_var=LD_RUN_PATH
9209     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9210     export_dynamic_flag_spec='${wl}--export-dynamic'
9211     # ancient GNU ld didn't support --whole-archive et. al.
9212     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9213       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9214     else
9215       whole_archive_flag_spec=
9216     fi
9217     supports_anon_versioning=no
9218     case `$LD -v 2>&1` in
9219       *GNU\ gold*) supports_anon_versioning=yes ;;
9220       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9221       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9222       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9223       *\ 2.11.*) ;; # other 2.11 versions
9224       *) supports_anon_versioning=yes ;;
9225     esac
9226
9227     # See if GNU ld supports shared libraries.
9228     case $host_os in
9229     aix[3-9]*)
9230       # On AIX/PPC, the GNU linker is very broken
9231       if test "$host_cpu" != ia64; then
9232         ld_shlibs=no
9233         cat <<_LT_EOF 1>&2
9234
9235 *** Warning: the GNU linker, at least up to release 2.19, is reported
9236 *** to be unable to reliably create shared libraries on AIX.
9237 *** Therefore, libtool is disabling shared libraries support.  If you
9238 *** really care for shared libraries, you may want to install binutils
9239 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9240 *** You will then need to restart the configuration process.
9241
9242 _LT_EOF
9243       fi
9244       ;;
9245
9246     amigaos*)
9247       case $host_cpu in
9248       powerpc)
9249             # see comment about AmigaOS4 .so support
9250             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9251             archive_expsym_cmds=''
9252         ;;
9253       m68k)
9254             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)'
9255             hardcode_libdir_flag_spec='-L$libdir'
9256             hardcode_minus_L=yes
9257         ;;
9258       esac
9259       ;;
9260
9261     beos*)
9262       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9263         allow_undefined_flag=unsupported
9264         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9265         # support --undefined.  This deserves some investigation.  FIXME
9266         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9267       else
9268         ld_shlibs=no
9269       fi
9270       ;;
9271
9272     cygwin* | mingw* | pw32* | cegcc*)
9273       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9274       # as there is no search path for DLLs.
9275       hardcode_libdir_flag_spec='-L$libdir'
9276       export_dynamic_flag_spec='${wl}--export-all-symbols'
9277       allow_undefined_flag=unsupported
9278       always_export_symbols=no
9279       enable_shared_with_static_runtimes=yes
9280       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9281
9282       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9283         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9284         # If the export-symbols file already is a .def file (1st line
9285         # is EXPORTS), use it as is; otherwise, prepend...
9286         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9287           cp $export_symbols $output_objdir/$soname.def;
9288         else
9289           echo EXPORTS > $output_objdir/$soname.def;
9290           cat $export_symbols >> $output_objdir/$soname.def;
9291         fi~
9292         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9293       else
9294         ld_shlibs=no
9295       fi
9296       ;;
9297
9298     haiku*)
9299       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9300       link_all_deplibs=yes
9301       ;;
9302
9303     interix[3-9]*)
9304       hardcode_direct=no
9305       hardcode_shlibpath_var=no
9306       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9307       export_dynamic_flag_spec='${wl}-E'
9308       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9309       # Instead, shared libraries are loaded at an image base (0x10000000 by
9310       # default) and relocated if they conflict, which is a slow very memory
9311       # consuming and fragmenting process.  To avoid this, we pick a random,
9312       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9313       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9314       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9315       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'
9316       ;;
9317
9318     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9319       tmp_diet=no
9320       if test "$host_os" = linux-dietlibc; then
9321         case $cc_basename in
9322           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9323         esac
9324       fi
9325       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9326          && test "$tmp_diet" = no
9327       then
9328         tmp_addflag=' $pic_flag'
9329         tmp_sharedflag='-shared'
9330         case $cc_basename,$host_cpu in
9331         pgcc*)                          # Portland Group C compiler
9332           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'
9333           tmp_addflag=' $pic_flag'
9334           ;;
9335         pgf77* | pgf90* | pgf95* | pgfortran*)
9336                                         # Portland Group f77 and f90 compilers
9337           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'
9338           tmp_addflag=' $pic_flag -Mnomain' ;;
9339         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9340           tmp_addflag=' -i_dynamic' ;;
9341         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9342           tmp_addflag=' -i_dynamic -nofor_main' ;;
9343         ifc* | ifort*)                  # Intel Fortran compiler
9344           tmp_addflag=' -nofor_main' ;;
9345         lf95*)                          # Lahey Fortran 8.1
9346           whole_archive_flag_spec=
9347           tmp_sharedflag='--shared' ;;
9348         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9349           tmp_sharedflag='-qmkshrobj'
9350           tmp_addflag= ;;
9351         nvcc*)  # Cuda Compiler Driver 2.2
9352           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'
9353           compiler_needs_object=yes
9354           ;;
9355         esac
9356         case `$CC -V 2>&1 | sed 5q` in
9357         *Sun\ C*)                       # Sun C 5.9
9358           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'
9359           compiler_needs_object=yes
9360           tmp_sharedflag='-G' ;;
9361         *Sun\ F*)                       # Sun Fortran 8.3
9362           tmp_sharedflag='-G' ;;
9363         esac
9364         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9365
9366         if test "x$supports_anon_versioning" = xyes; then
9367           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9368             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9369             echo "local: *; };" >> $output_objdir/$libname.ver~
9370             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9371         fi
9372
9373         case $cc_basename in
9374         xlf* | bgf* | bgxlf* | mpixlf*)
9375           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9376           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9377           hardcode_libdir_flag_spec=
9378           hardcode_libdir_flag_spec_ld='-rpath $libdir'
9379           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9380           if test "x$supports_anon_versioning" = xyes; then
9381             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9382               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9383               echo "local: *; };" >> $output_objdir/$libname.ver~
9384               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9385           fi
9386           ;;
9387         esac
9388       else
9389         ld_shlibs=no
9390       fi
9391       ;;
9392
9393     netbsd*)
9394       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9395         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9396         wlarc=
9397       else
9398         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9399         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9400       fi
9401       ;;
9402
9403     solaris*)
9404       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9405         ld_shlibs=no
9406         cat <<_LT_EOF 1>&2
9407
9408 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9409 *** create shared libraries on Solaris systems.  Therefore, libtool
9410 *** is disabling shared libraries support.  We urge you to upgrade GNU
9411 *** binutils to release 2.9.1 or newer.  Another option is to modify
9412 *** your PATH or compiler configuration so that the native linker is
9413 *** used, and then restart.
9414
9415 _LT_EOF
9416       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9417         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9418         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9419       else
9420         ld_shlibs=no
9421       fi
9422       ;;
9423
9424     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9425       case `$LD -v 2>&1` in
9426         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9427         ld_shlibs=no
9428         cat <<_LT_EOF 1>&2
9429
9430 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9431 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9432 *** is disabling shared libraries support.  We urge you to upgrade GNU
9433 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9434 *** your PATH or compiler configuration so that the native linker is
9435 *** used, and then restart.
9436
9437 _LT_EOF
9438         ;;
9439         *)
9440           # For security reasons, it is highly recommended that you always
9441           # use absolute paths for naming shared libraries, and exclude the
9442           # DT_RUNPATH tag from executables and libraries.  But doing so
9443           # requires that you compile everything twice, which is a pain.
9444           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9445             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9446             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9447             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9448           else
9449             ld_shlibs=no
9450           fi
9451         ;;
9452       esac
9453       ;;
9454
9455     sunos4*)
9456       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9457       wlarc=
9458       hardcode_direct=yes
9459       hardcode_shlibpath_var=no
9460       ;;
9461
9462     *)
9463       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9464         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9465         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9466       else
9467         ld_shlibs=no
9468       fi
9469       ;;
9470     esac
9471
9472     if test "$ld_shlibs" = no; then
9473       runpath_var=
9474       hardcode_libdir_flag_spec=
9475       export_dynamic_flag_spec=
9476       whole_archive_flag_spec=
9477     fi
9478   else
9479     # PORTME fill in a description of your system's linker (not GNU ld)
9480     case $host_os in
9481     aix3*)
9482       allow_undefined_flag=unsupported
9483       always_export_symbols=yes
9484       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'
9485       # Note: this linker hardcodes the directories in LIBPATH if there
9486       # are no directories specified by -L.
9487       hardcode_minus_L=yes
9488       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9489         # Neither direct hardcoding nor static linking is supported with a
9490         # broken collect2.
9491         hardcode_direct=unsupported
9492       fi
9493       ;;
9494
9495     aix[4-9]*)
9496       if test "$host_cpu" = ia64; then
9497         # On IA64, the linker does run time linking by default, so we don't
9498         # have to do anything special.
9499         aix_use_runtimelinking=no
9500         exp_sym_flag='-Bexport'
9501         no_entry_flag=""
9502       else
9503         # If we're using GNU nm, then we don't want the "-C" option.
9504         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9505         # Also, AIX nm treats weak defined symbols like other global
9506         # defined symbols, whereas GNU nm marks them as "W".
9507         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9508           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'
9509         else
9510           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'
9511         fi
9512         aix_use_runtimelinking=no
9513
9514         # Test if we are trying to use run time linking or normal
9515         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9516         # need to do runtime linking.
9517         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9518           for ld_flag in $LDFLAGS; do
9519           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9520             aix_use_runtimelinking=yes
9521             break
9522           fi
9523           done
9524           ;;
9525         esac
9526
9527         exp_sym_flag='-bexport'
9528         no_entry_flag='-bnoentry'
9529       fi
9530
9531       # When large executables or shared objects are built, AIX ld can
9532       # have problems creating the table of contents.  If linking a library
9533       # or program results in "error TOC overflow" add -mminimal-toc to
9534       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9535       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9536
9537       archive_cmds=''
9538       hardcode_direct=yes
9539       hardcode_direct_absolute=yes
9540       hardcode_libdir_separator=':'
9541       link_all_deplibs=yes
9542       file_list_spec='${wl}-f,'
9543
9544       if test "$GCC" = yes; then
9545         case $host_os in aix4.[012]|aix4.[012].*)
9546         # We only want to do this on AIX 4.2 and lower, the check
9547         # below for broken collect2 doesn't work under 4.3+
9548           collect2name=`${CC} -print-prog-name=collect2`
9549           if test -f "$collect2name" &&
9550            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9551           then
9552           # We have reworked collect2
9553           :
9554           else
9555           # We have old collect2
9556           hardcode_direct=unsupported
9557           # It fails to find uninstalled libraries when the uninstalled
9558           # path is not listed in the libpath.  Setting hardcode_minus_L
9559           # to unsupported forces relinking
9560           hardcode_minus_L=yes
9561           hardcode_libdir_flag_spec='-L$libdir'
9562           hardcode_libdir_separator=
9563           fi
9564           ;;
9565         esac
9566         shared_flag='-shared'
9567         if test "$aix_use_runtimelinking" = yes; then
9568           shared_flag="$shared_flag "'${wl}-G'
9569         fi
9570       else
9571         # not using gcc
9572         if test "$host_cpu" = ia64; then
9573         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9574         # chokes on -Wl,-G. The following line is correct:
9575           shared_flag='-G'
9576         else
9577           if test "$aix_use_runtimelinking" = yes; then
9578             shared_flag='${wl}-G'
9579           else
9580             shared_flag='${wl}-bM:SRE'
9581           fi
9582         fi
9583       fi
9584
9585       export_dynamic_flag_spec='${wl}-bexpall'
9586       # It seems that -bexpall does not export symbols beginning with
9587       # underscore (_), so it is better to generate a list of symbols to export.
9588       always_export_symbols=yes
9589       if test "$aix_use_runtimelinking" = yes; then
9590         # Warning - without using the other runtime loading flags (-brtl),
9591         # -berok will link without error, but may produce a broken library.
9592         allow_undefined_flag='-berok'
9593         # Determine the default libpath from the value encoded in an
9594         # empty executable.
9595         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9596 /* end confdefs.h.  */
9597
9598 int
9599 main ()
9600 {
9601
9602   ;
9603   return 0;
9604 }
9605 _ACEOF
9606 if ac_fn_c_try_link "$LINENO"; then :
9607
9608 lt_aix_libpath_sed='
9609     /Import File Strings/,/^$/ {
9610         /^0/ {
9611             s/^0  *\(.*\)$/\1/
9612             p
9613         }
9614     }'
9615 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9616 # Check for a 64-bit object if we didn't find anything.
9617 if test -z "$aix_libpath"; then
9618   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9619 fi
9620 fi
9621 rm -f core conftest.err conftest.$ac_objext \
9622     conftest$ac_exeext conftest.$ac_ext
9623 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9624
9625         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9626         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"
9627       else
9628         if test "$host_cpu" = ia64; then
9629           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9630           allow_undefined_flag="-z nodefs"
9631           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"
9632         else
9633          # Determine the default libpath from the value encoded in an
9634          # empty executable.
9635          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9636 /* end confdefs.h.  */
9637
9638 int
9639 main ()
9640 {
9641
9642   ;
9643   return 0;
9644 }
9645 _ACEOF
9646 if ac_fn_c_try_link "$LINENO"; then :
9647
9648 lt_aix_libpath_sed='
9649     /Import File Strings/,/^$/ {
9650         /^0/ {
9651             s/^0  *\(.*\)$/\1/
9652             p
9653         }
9654     }'
9655 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9656 # Check for a 64-bit object if we didn't find anything.
9657 if test -z "$aix_libpath"; then
9658   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9659 fi
9660 fi
9661 rm -f core conftest.err conftest.$ac_objext \
9662     conftest$ac_exeext conftest.$ac_ext
9663 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9664
9665          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9666           # Warning - without using the other run time loading flags,
9667           # -berok will link without error, but may produce a broken library.
9668           no_undefined_flag=' ${wl}-bernotok'
9669           allow_undefined_flag=' ${wl}-berok'
9670           if test "$with_gnu_ld" = yes; then
9671             # We only use this code for GNU lds that support --whole-archive.
9672             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9673           else
9674             # Exported symbols can be pulled into shared objects from archives
9675             whole_archive_flag_spec='$convenience'
9676           fi
9677           archive_cmds_need_lc=yes
9678           # This is similar to how AIX traditionally builds its shared libraries.
9679           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'
9680         fi
9681       fi
9682       ;;
9683
9684     amigaos*)
9685       case $host_cpu in
9686       powerpc)
9687             # see comment about AmigaOS4 .so support
9688             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9689             archive_expsym_cmds=''
9690         ;;
9691       m68k)
9692             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)'
9693             hardcode_libdir_flag_spec='-L$libdir'
9694             hardcode_minus_L=yes
9695         ;;
9696       esac
9697       ;;
9698
9699     bsdi[45]*)
9700       export_dynamic_flag_spec=-rdynamic
9701       ;;
9702
9703     cygwin* | mingw* | pw32* | cegcc*)
9704       # When not using gcc, we currently assume that we are using
9705       # Microsoft Visual C++.
9706       # hardcode_libdir_flag_spec is actually meaningless, as there is
9707       # no search path for DLLs.
9708       hardcode_libdir_flag_spec=' '
9709       allow_undefined_flag=unsupported
9710       # Tell ltmain to make .lib files, not .a files.
9711       libext=lib
9712       # Tell ltmain to make .dll files, not .so files.
9713       shrext_cmds=".dll"
9714       # FIXME: Setting linknames here is a bad hack.
9715       archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9716       # The linker will automatically build a .lib file if we build a DLL.
9717       old_archive_from_new_cmds='true'
9718       # FIXME: Should let the user specify the lib program.
9719       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9720       fix_srcfile_path='`cygpath -w "$srcfile"`'
9721       enable_shared_with_static_runtimes=yes
9722       ;;
9723
9724     darwin* | rhapsody*)
9725
9726
9727   archive_cmds_need_lc=no
9728   hardcode_direct=no
9729   hardcode_automatic=yes
9730   hardcode_shlibpath_var=unsupported
9731   if test "$lt_cv_ld_force_load" = "yes"; then
9732     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\"`'
9733   else
9734     whole_archive_flag_spec=''
9735   fi
9736   link_all_deplibs=yes
9737   allow_undefined_flag="$_lt_dar_allow_undefined"
9738   case $cc_basename in
9739      ifort*) _lt_dar_can_shared=yes ;;
9740      *) _lt_dar_can_shared=$GCC ;;
9741   esac
9742   if test "$_lt_dar_can_shared" = "yes"; then
9743     output_verbose_link_cmd=func_echo_all
9744     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9745     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9746     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}"
9747     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}"
9748
9749   else
9750   ld_shlibs=no
9751   fi
9752
9753       ;;
9754
9755     dgux*)
9756       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9757       hardcode_libdir_flag_spec='-L$libdir'
9758       hardcode_shlibpath_var=no
9759       ;;
9760
9761     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9762     # support.  Future versions do this automatically, but an explicit c++rt0.o
9763     # does not break anything, and helps significantly (at the cost of a little
9764     # extra space).
9765     freebsd2.2*)
9766       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9767       hardcode_libdir_flag_spec='-R$libdir'
9768       hardcode_direct=yes
9769       hardcode_shlibpath_var=no
9770       ;;
9771
9772     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9773     freebsd2.*)
9774       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9775       hardcode_direct=yes
9776       hardcode_minus_L=yes
9777       hardcode_shlibpath_var=no
9778       ;;
9779
9780     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9781     freebsd* | dragonfly*)
9782       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9783       hardcode_libdir_flag_spec='-R$libdir'
9784       hardcode_direct=yes
9785       hardcode_shlibpath_var=no
9786       ;;
9787
9788     hpux9*)
9789       if test "$GCC" = yes; then
9790         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'
9791       else
9792         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'
9793       fi
9794       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9795       hardcode_libdir_separator=:
9796       hardcode_direct=yes
9797
9798       # hardcode_minus_L: Not really in the search PATH,
9799       # but as the default location of the library.
9800       hardcode_minus_L=yes
9801       export_dynamic_flag_spec='${wl}-E'
9802       ;;
9803
9804     hpux10*)
9805       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9806         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9807       else
9808         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9809       fi
9810       if test "$with_gnu_ld" = no; then
9811         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9812         hardcode_libdir_flag_spec_ld='+b $libdir'
9813         hardcode_libdir_separator=:
9814         hardcode_direct=yes
9815         hardcode_direct_absolute=yes
9816         export_dynamic_flag_spec='${wl}-E'
9817         # hardcode_minus_L: Not really in the search PATH,
9818         # but as the default location of the library.
9819         hardcode_minus_L=yes
9820       fi
9821       ;;
9822
9823     hpux11*)
9824       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9825         case $host_cpu in
9826         hppa*64*)
9827           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9828           ;;
9829         ia64*)
9830           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9831           ;;
9832         *)
9833           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9834           ;;
9835         esac
9836       else
9837         case $host_cpu in
9838         hppa*64*)
9839           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9840           ;;
9841         ia64*)
9842           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9843           ;;
9844         *)
9845
9846           # Older versions of the 11.00 compiler do not understand -b yet
9847           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9848           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9849 $as_echo_n "checking if $CC understands -b... " >&6; }
9850 if ${lt_cv_prog_compiler__b+:} false; then :
9851   $as_echo_n "(cached) " >&6
9852 else
9853   lt_cv_prog_compiler__b=no
9854    save_LDFLAGS="$LDFLAGS"
9855    LDFLAGS="$LDFLAGS -b"
9856    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9857    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9858      # The linker can only warn and ignore the option if not recognized
9859      # So say no if there are warnings
9860      if test -s conftest.err; then
9861        # Append any errors to the config.log.
9862        cat conftest.err 1>&5
9863        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9864        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9865        if diff conftest.exp conftest.er2 >/dev/null; then
9866          lt_cv_prog_compiler__b=yes
9867        fi
9868      else
9869        lt_cv_prog_compiler__b=yes
9870      fi
9871    fi
9872    $RM -r conftest*
9873    LDFLAGS="$save_LDFLAGS"
9874
9875 fi
9876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9877 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9878
9879 if test x"$lt_cv_prog_compiler__b" = xyes; then
9880     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9881 else
9882     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9883 fi
9884
9885           ;;
9886         esac
9887       fi
9888       if test "$with_gnu_ld" = no; then
9889         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9890         hardcode_libdir_separator=:
9891
9892         case $host_cpu in
9893         hppa*64*|ia64*)
9894           hardcode_direct=no
9895           hardcode_shlibpath_var=no
9896           ;;
9897         *)
9898           hardcode_direct=yes
9899           hardcode_direct_absolute=yes
9900           export_dynamic_flag_spec='${wl}-E'
9901
9902           # hardcode_minus_L: Not really in the search PATH,
9903           # but as the default location of the library.
9904           hardcode_minus_L=yes
9905           ;;
9906         esac
9907       fi
9908       ;;
9909
9910     irix5* | irix6* | nonstopux*)
9911       if test "$GCC" = yes; then
9912         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'
9913         # Try to use the -exported_symbol ld option, if it does not
9914         # work, assume that -exports_file does not work either and
9915         # implicitly export all symbols.
9916         save_LDFLAGS="$LDFLAGS"
9917         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9918         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9919 /* end confdefs.h.  */
9920 int foo(void) {}
9921 _ACEOF
9922 if ac_fn_c_try_link "$LINENO"; then :
9923   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'
9924
9925 fi
9926 rm -f core conftest.err conftest.$ac_objext \
9927     conftest$ac_exeext conftest.$ac_ext
9928         LDFLAGS="$save_LDFLAGS"
9929       else
9930         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'
9931         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'
9932       fi
9933       archive_cmds_need_lc='no'
9934       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9935       hardcode_libdir_separator=:
9936       inherit_rpath=yes
9937       link_all_deplibs=yes
9938       ;;
9939
9940     netbsd*)
9941       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9942         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9943       else
9944         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9945       fi
9946       hardcode_libdir_flag_spec='-R$libdir'
9947       hardcode_direct=yes
9948       hardcode_shlibpath_var=no
9949       ;;
9950
9951     newsos6)
9952       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9953       hardcode_direct=yes
9954       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9955       hardcode_libdir_separator=:
9956       hardcode_shlibpath_var=no
9957       ;;
9958
9959     *nto* | *qnx*)
9960       ;;
9961
9962     openbsd*)
9963       if test -f /usr/libexec/ld.so; then
9964         hardcode_direct=yes
9965         hardcode_shlibpath_var=no
9966         hardcode_direct_absolute=yes
9967         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9968           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9969           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9970           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9971           export_dynamic_flag_spec='${wl}-E'
9972         else
9973           case $host_os in
9974            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9975              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9976              hardcode_libdir_flag_spec='-R$libdir'
9977              ;;
9978            *)
9979              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9980              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9981              ;;
9982           esac
9983         fi
9984       else
9985         ld_shlibs=no
9986       fi
9987       ;;
9988
9989     os2*)
9990       hardcode_libdir_flag_spec='-L$libdir'
9991       hardcode_minus_L=yes
9992       allow_undefined_flag=unsupported
9993       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'
9994       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9995       ;;
9996
9997     osf3*)
9998       if test "$GCC" = yes; then
9999         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10000         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'
10001       else
10002         allow_undefined_flag=' -expect_unresolved \*'
10003         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'
10004       fi
10005       archive_cmds_need_lc='no'
10006       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10007       hardcode_libdir_separator=:
10008       ;;
10009
10010     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10011       if test "$GCC" = yes; then
10012         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10013         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'
10014         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10015       else
10016         allow_undefined_flag=' -expect_unresolved \*'
10017         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'
10018         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~
10019         $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'
10020
10021         # Both c and cxx compiler support -rpath directly
10022         hardcode_libdir_flag_spec='-rpath $libdir'
10023       fi
10024       archive_cmds_need_lc='no'
10025       hardcode_libdir_separator=:
10026       ;;
10027
10028     solaris*)
10029       no_undefined_flag=' -z defs'
10030       if test "$GCC" = yes; then
10031         wlarc='${wl}'
10032         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10033         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10034           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10035       else
10036         case `$CC -V 2>&1` in
10037         *"Compilers 5.0"*)
10038           wlarc=''
10039           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10040           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10041           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10042           ;;
10043         *)
10044           wlarc='${wl}'
10045           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10046           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10047           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10048           ;;
10049         esac
10050       fi
10051       hardcode_libdir_flag_spec='-R$libdir'
10052       hardcode_shlibpath_var=no
10053       case $host_os in
10054       solaris2.[0-5] | solaris2.[0-5].*) ;;
10055       *)
10056         # The compiler driver will combine and reorder linker options,
10057         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10058         # but is careful enough not to reorder.
10059         # Supported since Solaris 2.6 (maybe 2.5.1?)
10060         if test "$GCC" = yes; then
10061           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10062         else
10063           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10064         fi
10065         ;;
10066       esac
10067       link_all_deplibs=yes
10068       ;;
10069
10070     sunos4*)
10071       if test "x$host_vendor" = xsequent; then
10072         # Use $CC to link under sequent, because it throws in some extra .o
10073         # files that make .init and .fini sections work.
10074         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10075       else
10076         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10077       fi
10078       hardcode_libdir_flag_spec='-L$libdir'
10079       hardcode_direct=yes
10080       hardcode_minus_L=yes
10081       hardcode_shlibpath_var=no
10082       ;;
10083
10084     sysv4)
10085       case $host_vendor in
10086         sni)
10087           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10088           hardcode_direct=yes # is this really true???
10089         ;;
10090         siemens)
10091           ## LD is ld it makes a PLAMLIB
10092           ## CC just makes a GrossModule.
10093           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10094           reload_cmds='$CC -r -o $output$reload_objs'
10095           hardcode_direct=no
10096         ;;
10097         motorola)
10098           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10099           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10100         ;;
10101       esac
10102       runpath_var='LD_RUN_PATH'
10103       hardcode_shlibpath_var=no
10104       ;;
10105
10106     sysv4.3*)
10107       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10108       hardcode_shlibpath_var=no
10109       export_dynamic_flag_spec='-Bexport'
10110       ;;
10111
10112     sysv4*MP*)
10113       if test -d /usr/nec; then
10114         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10115         hardcode_shlibpath_var=no
10116         runpath_var=LD_RUN_PATH
10117         hardcode_runpath_var=yes
10118         ld_shlibs=yes
10119       fi
10120       ;;
10121
10122     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10123       no_undefined_flag='${wl}-z,text'
10124       archive_cmds_need_lc=no
10125       hardcode_shlibpath_var=no
10126       runpath_var='LD_RUN_PATH'
10127
10128       if test "$GCC" = yes; then
10129         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10130         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10131       else
10132         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10133         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10134       fi
10135       ;;
10136
10137     sysv5* | sco3.2v5* | sco5v6*)
10138       # Note: We can NOT use -z defs as we might desire, because we do not
10139       # link with -lc, and that would cause any symbols used from libc to
10140       # always be unresolved, which means just about no library would
10141       # ever link correctly.  If we're not using GNU ld we use -z text
10142       # though, which does catch some bad symbols but isn't as heavy-handed
10143       # as -z defs.
10144       no_undefined_flag='${wl}-z,text'
10145       allow_undefined_flag='${wl}-z,nodefs'
10146       archive_cmds_need_lc=no
10147       hardcode_shlibpath_var=no
10148       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10149       hardcode_libdir_separator=':'
10150       link_all_deplibs=yes
10151       export_dynamic_flag_spec='${wl}-Bexport'
10152       runpath_var='LD_RUN_PATH'
10153
10154       if test "$GCC" = yes; then
10155         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10156         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10157       else
10158         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10159         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10160       fi
10161       ;;
10162
10163     uts4*)
10164       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10165       hardcode_libdir_flag_spec='-L$libdir'
10166       hardcode_shlibpath_var=no
10167       ;;
10168
10169     *)
10170       ld_shlibs=no
10171       ;;
10172     esac
10173
10174     if test x$host_vendor = xsni; then
10175       case $host in
10176       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10177         export_dynamic_flag_spec='${wl}-Blargedynsym'
10178         ;;
10179       esac
10180     fi
10181   fi
10182
10183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10184 $as_echo "$ld_shlibs" >&6; }
10185 test "$ld_shlibs" = no && can_build_shared=no
10186
10187 with_gnu_ld=$with_gnu_ld
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203 #
10204 # Do we need to explicitly link libc?
10205 #
10206 case "x$archive_cmds_need_lc" in
10207 x|xyes)
10208   # Assume -lc should be added
10209   archive_cmds_need_lc=yes
10210
10211   if test "$enable_shared" = yes && test "$GCC" = yes; then
10212     case $archive_cmds in
10213     *'~'*)
10214       # FIXME: we may have to deal with multi-command sequences.
10215       ;;
10216     '$CC '*)
10217       # Test whether the compiler implicitly links with -lc since on some
10218       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10219       # to ld, don't add -lc before -lgcc.
10220       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10221 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10222 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10223   $as_echo_n "(cached) " >&6
10224 else
10225   $RM conftest*
10226         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10227
10228         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10229   (eval $ac_compile) 2>&5
10230   ac_status=$?
10231   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10232   test $ac_status = 0; } 2>conftest.err; then
10233           soname=conftest
10234           lib=conftest
10235           libobjs=conftest.$ac_objext
10236           deplibs=
10237           wl=$lt_prog_compiler_wl
10238           pic_flag=$lt_prog_compiler_pic
10239           compiler_flags=-v
10240           linker_flags=-v
10241           verstring=
10242           output_objdir=.
10243           libname=conftest
10244           lt_save_allow_undefined_flag=$allow_undefined_flag
10245           allow_undefined_flag=
10246           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10247   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10248   ac_status=$?
10249   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10250   test $ac_status = 0; }
10251           then
10252             lt_cv_archive_cmds_need_lc=no
10253           else
10254             lt_cv_archive_cmds_need_lc=yes
10255           fi
10256           allow_undefined_flag=$lt_save_allow_undefined_flag
10257         else
10258           cat conftest.err 1>&5
10259         fi
10260         $RM conftest*
10261
10262 fi
10263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10264 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10265       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10266       ;;
10267     esac
10268   fi
10269   ;;
10270 esac
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10429 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10430
10431 if test "$GCC" = yes; then
10432   case $host_os in
10433     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10434     *) lt_awk_arg="/^libraries:/" ;;
10435   esac
10436   case $host_os in
10437     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10438     *) lt_sed_strip_eq="s,=/,/,g" ;;
10439   esac
10440   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10441   case $lt_search_path_spec in
10442   *\;*)
10443     # if the path contains ";" then we assume it to be the separator
10444     # otherwise default to the standard path separator (i.e. ":") - it is
10445     # assumed that no part of a normal pathname contains ";" but that should
10446     # okay in the real world where ";" in dirpaths is itself problematic.
10447     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10448     ;;
10449   *)
10450     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10451     ;;
10452   esac
10453   # Ok, now we have the path, separated by spaces, we can step through it
10454   # and add multilib dir if necessary.
10455   lt_tmp_lt_search_path_spec=
10456   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10457   for lt_sys_path in $lt_search_path_spec; do
10458     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10459       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10460     else
10461       test -d "$lt_sys_path" && \
10462         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10463     fi
10464   done
10465   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10466 BEGIN {RS=" "; FS="/|\n";} {
10467   lt_foo="";
10468   lt_count=0;
10469   for (lt_i = NF; lt_i > 0; lt_i--) {
10470     if ($lt_i != "" && $lt_i != ".") {
10471       if ($lt_i == "..") {
10472         lt_count++;
10473       } else {
10474         if (lt_count == 0) {
10475           lt_foo="/" $lt_i lt_foo;
10476         } else {
10477           lt_count--;
10478         }
10479       }
10480     }
10481   }
10482   if (lt_foo != "") { lt_freq[lt_foo]++; }
10483   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10484 }'`
10485   # AWK program above erroneously prepends '/' to C:/dos/paths
10486   # for these hosts.
10487   case $host_os in
10488     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10489       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10490   esac
10491   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10492 else
10493   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10494 fi
10495 library_names_spec=
10496 libname_spec='lib$name'
10497 soname_spec=
10498 shrext_cmds=".so"
10499 postinstall_cmds=
10500 postuninstall_cmds=
10501 finish_cmds=
10502 finish_eval=
10503 shlibpath_var=
10504 shlibpath_overrides_runpath=unknown
10505 version_type=none
10506 dynamic_linker="$host_os ld.so"
10507 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10508 need_lib_prefix=unknown
10509 hardcode_into_libs=no
10510
10511 # when you set need_version to no, make sure it does not cause -set_version
10512 # flags to be left without arguments
10513 need_version=unknown
10514
10515 case $host_os in
10516 aix3*)
10517   version_type=linux
10518   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10519   shlibpath_var=LIBPATH
10520
10521   # AIX 3 has no versioning support, so we append a major version to the name.
10522   soname_spec='${libname}${release}${shared_ext}$major'
10523   ;;
10524
10525 aix[4-9]*)
10526   version_type=linux
10527   need_lib_prefix=no
10528   need_version=no
10529   hardcode_into_libs=yes
10530   if test "$host_cpu" = ia64; then
10531     # AIX 5 supports IA64
10532     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10533     shlibpath_var=LD_LIBRARY_PATH
10534   else
10535     # With GCC up to 2.95.x, collect2 would create an import file
10536     # for dependence libraries.  The import file would start with
10537     # the line `#! .'.  This would cause the generated library to
10538     # depend on `.', always an invalid library.  This was fixed in
10539     # development snapshots of GCC prior to 3.0.
10540     case $host_os in
10541       aix4 | aix4.[01] | aix4.[01].*)
10542       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10543            echo ' yes '
10544            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10545         :
10546       else
10547         can_build_shared=no
10548       fi
10549       ;;
10550     esac
10551     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10552     # soname into executable. Probably we can add versioning support to
10553     # collect2, so additional links can be useful in future.
10554     if test "$aix_use_runtimelinking" = yes; then
10555       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10556       # instead of lib<name>.a to let people know that these are not
10557       # typical AIX shared libraries.
10558       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10559     else
10560       # We preserve .a as extension for shared libraries through AIX4.2
10561       # and later when we are not doing run time linking.
10562       library_names_spec='${libname}${release}.a $libname.a'
10563       soname_spec='${libname}${release}${shared_ext}$major'
10564     fi
10565     shlibpath_var=LIBPATH
10566   fi
10567   ;;
10568
10569 amigaos*)
10570   case $host_cpu in
10571   powerpc)
10572     # Since July 2007 AmigaOS4 officially supports .so libraries.
10573     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10574     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10575     ;;
10576   m68k)
10577     library_names_spec='$libname.ixlibrary $libname.a'
10578     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10579     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'
10580     ;;
10581   esac
10582   ;;
10583
10584 beos*)
10585   library_names_spec='${libname}${shared_ext}'
10586   dynamic_linker="$host_os ld.so"
10587   shlibpath_var=LIBRARY_PATH
10588   ;;
10589
10590 bsdi[45]*)
10591   version_type=linux
10592   need_version=no
10593   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10594   soname_spec='${libname}${release}${shared_ext}$major'
10595   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10596   shlibpath_var=LD_LIBRARY_PATH
10597   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10598   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10599   # the default ld.so.conf also contains /usr/contrib/lib and
10600   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10601   # libtool to hard-code these into programs
10602   ;;
10603
10604 cygwin* | mingw* | pw32* | cegcc*)
10605   version_type=windows
10606   shrext_cmds=".dll"
10607   need_version=no
10608   need_lib_prefix=no
10609
10610   case $GCC,$host_os in
10611   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10612     library_names_spec='$libname.dll.a'
10613     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10614     postinstall_cmds='base_file=`basename \${file}`~
10615       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10616       dldir=$destdir/`dirname \$dlpath`~
10617       test -d \$dldir || mkdir -p \$dldir~
10618       $install_prog $dir/$dlname \$dldir/$dlname~
10619       chmod a+x \$dldir/$dlname~
10620       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10621         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10622       fi'
10623     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10624       dlpath=$dir/\$dldll~
10625        $RM \$dlpath'
10626     shlibpath_overrides_runpath=yes
10627
10628     case $host_os in
10629     cygwin*)
10630       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10631       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10632
10633       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10634       ;;
10635     mingw* | cegcc*)
10636       # MinGW DLLs use traditional 'lib' prefix
10637       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10638       ;;
10639     pw32*)
10640       # pw32 DLLs use 'pw' prefix rather than 'lib'
10641       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10642       ;;
10643     esac
10644     ;;
10645
10646   *)
10647     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10648     ;;
10649   esac
10650   dynamic_linker='Win32 ld.exe'
10651   # FIXME: first we should search . and the directory the executable is in
10652   shlibpath_var=PATH
10653   ;;
10654
10655 darwin* | rhapsody*)
10656   dynamic_linker="$host_os dyld"
10657   version_type=darwin
10658   need_lib_prefix=no
10659   need_version=no
10660   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10661   soname_spec='${libname}${release}${major}$shared_ext'
10662   shlibpath_overrides_runpath=yes
10663   shlibpath_var=DYLD_LIBRARY_PATH
10664   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10665
10666   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10667   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10668   ;;
10669
10670 dgux*)
10671   version_type=linux
10672   need_lib_prefix=no
10673   need_version=no
10674   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10675   soname_spec='${libname}${release}${shared_ext}$major'
10676   shlibpath_var=LD_LIBRARY_PATH
10677   ;;
10678
10679 freebsd* | dragonfly*)
10680   # DragonFly does not have aout.  When/if they implement a new
10681   # versioning mechanism, adjust this.
10682   if test -x /usr/bin/objformat; then
10683     objformat=`/usr/bin/objformat`
10684   else
10685     case $host_os in
10686     freebsd[23].*) objformat=aout ;;
10687     *) objformat=elf ;;
10688     esac
10689   fi
10690   version_type=freebsd-$objformat
10691   case $version_type in
10692     freebsd-elf*)
10693       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10694       need_version=no
10695       need_lib_prefix=no
10696       ;;
10697     freebsd-*)
10698       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10699       need_version=yes
10700       ;;
10701   esac
10702   shlibpath_var=LD_LIBRARY_PATH
10703   case $host_os in
10704   freebsd2.*)
10705     shlibpath_overrides_runpath=yes
10706     ;;
10707   freebsd3.[01]* | freebsdelf3.[01]*)
10708     shlibpath_overrides_runpath=yes
10709     hardcode_into_libs=yes
10710     ;;
10711   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10712   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10713     shlibpath_overrides_runpath=no
10714     hardcode_into_libs=yes
10715     ;;
10716   *) # from 4.6 on, and DragonFly
10717     shlibpath_overrides_runpath=yes
10718     hardcode_into_libs=yes
10719     ;;
10720   esac
10721   ;;
10722
10723 gnu*)
10724   version_type=linux
10725   need_lib_prefix=no
10726   need_version=no
10727   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10728   soname_spec='${libname}${release}${shared_ext}$major'
10729   shlibpath_var=LD_LIBRARY_PATH
10730   hardcode_into_libs=yes
10731   ;;
10732
10733 haiku*)
10734   version_type=linux
10735   need_lib_prefix=no
10736   need_version=no
10737   dynamic_linker="$host_os runtime_loader"
10738   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10739   soname_spec='${libname}${release}${shared_ext}$major'
10740   shlibpath_var=LIBRARY_PATH
10741   shlibpath_overrides_runpath=yes
10742   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10743   hardcode_into_libs=yes
10744   ;;
10745
10746 hpux9* | hpux10* | hpux11*)
10747   # Give a soname corresponding to the major version so that dld.sl refuses to
10748   # link against other versions.
10749   version_type=sunos
10750   need_lib_prefix=no
10751   need_version=no
10752   case $host_cpu in
10753   ia64*)
10754     shrext_cmds='.so'
10755     hardcode_into_libs=yes
10756     dynamic_linker="$host_os dld.so"
10757     shlibpath_var=LD_LIBRARY_PATH
10758     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10759     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10760     soname_spec='${libname}${release}${shared_ext}$major'
10761     if test "X$HPUX_IA64_MODE" = X32; then
10762       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10763     else
10764       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10765     fi
10766     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10767     ;;
10768   hppa*64*)
10769     shrext_cmds='.sl'
10770     hardcode_into_libs=yes
10771     dynamic_linker="$host_os dld.sl"
10772     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10773     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10774     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10775     soname_spec='${libname}${release}${shared_ext}$major'
10776     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10777     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10778     ;;
10779   *)
10780     shrext_cmds='.sl'
10781     dynamic_linker="$host_os dld.sl"
10782     shlibpath_var=SHLIB_PATH
10783     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10784     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10785     soname_spec='${libname}${release}${shared_ext}$major'
10786     ;;
10787   esac
10788   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10789   postinstall_cmds='chmod 555 $lib'
10790   # or fails outright, so override atomically:
10791   install_override_mode=555
10792   ;;
10793
10794 interix[3-9]*)
10795   version_type=linux
10796   need_lib_prefix=no
10797   need_version=no
10798   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10799   soname_spec='${libname}${release}${shared_ext}$major'
10800   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10801   shlibpath_var=LD_LIBRARY_PATH
10802   shlibpath_overrides_runpath=no
10803   hardcode_into_libs=yes
10804   ;;
10805
10806 irix5* | irix6* | nonstopux*)
10807   case $host_os in
10808     nonstopux*) version_type=nonstopux ;;
10809     *)
10810         if test "$lt_cv_prog_gnu_ld" = yes; then
10811                 version_type=linux
10812         else
10813                 version_type=irix
10814         fi ;;
10815   esac
10816   need_lib_prefix=no
10817   need_version=no
10818   soname_spec='${libname}${release}${shared_ext}$major'
10819   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10820   case $host_os in
10821   irix5* | nonstopux*)
10822     libsuff= shlibsuff=
10823     ;;
10824   *)
10825     case $LD in # libtool.m4 will add one of these switches to LD
10826     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10827       libsuff= shlibsuff= libmagic=32-bit;;
10828     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10829       libsuff=32 shlibsuff=N32 libmagic=N32;;
10830     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10831       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10832     *) libsuff= shlibsuff= libmagic=never-match;;
10833     esac
10834     ;;
10835   esac
10836   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10837   shlibpath_overrides_runpath=no
10838   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10839   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10840   hardcode_into_libs=yes
10841   ;;
10842
10843 # No shared lib support for Linux oldld, aout, or coff.
10844 linux*oldld* | linux*aout* | linux*coff*)
10845   dynamic_linker=no
10846   ;;
10847
10848 # This must be Linux ELF.
10849 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10850   version_type=linux
10851   need_lib_prefix=no
10852   need_version=no
10853   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10854   soname_spec='${libname}${release}${shared_ext}$major'
10855   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10856   shlibpath_var=LD_LIBRARY_PATH
10857   shlibpath_overrides_runpath=no
10858
10859   # Some binutils ld are patched to set DT_RUNPATH
10860   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10861   $as_echo_n "(cached) " >&6
10862 else
10863   lt_cv_shlibpath_overrides_runpath=no
10864     save_LDFLAGS=$LDFLAGS
10865     save_libdir=$libdir
10866     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10867          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10868     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10869 /* end confdefs.h.  */
10870
10871 int
10872 main ()
10873 {
10874
10875   ;
10876   return 0;
10877 }
10878 _ACEOF
10879 if ac_fn_c_try_link "$LINENO"; then :
10880   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10881   lt_cv_shlibpath_overrides_runpath=yes
10882 fi
10883 fi
10884 rm -f core conftest.err conftest.$ac_objext \
10885     conftest$ac_exeext conftest.$ac_ext
10886     LDFLAGS=$save_LDFLAGS
10887     libdir=$save_libdir
10888
10889 fi
10890
10891   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10892
10893   # This implies no fast_install, which is unacceptable.
10894   # Some rework will be needed to allow for fast_install
10895   # before this can be enabled.
10896   hardcode_into_libs=yes
10897
10898   # Append ld.so.conf contents to the search path
10899   if test -f /etc/ld.so.conf; then
10900     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' ' '`
10901     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10902   fi
10903
10904   # We used to test for /lib/ld.so.1 and disable shared libraries on
10905   # powerpc, because MkLinux only supported shared libraries with the
10906   # GNU dynamic linker.  Since this was broken with cross compilers,
10907   # most powerpc-linux boxes support dynamic linking these days and
10908   # people can always --disable-shared, the test was removed, and we
10909   # assume the GNU/Linux dynamic linker is in use.
10910   dynamic_linker='GNU/Linux ld.so'
10911   ;;
10912
10913 netbsd*)
10914   version_type=sunos
10915   need_lib_prefix=no
10916   need_version=no
10917   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10918     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10919     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10920     dynamic_linker='NetBSD (a.out) ld.so'
10921   else
10922     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10923     soname_spec='${libname}${release}${shared_ext}$major'
10924     dynamic_linker='NetBSD ld.elf_so'
10925   fi
10926   shlibpath_var=LD_LIBRARY_PATH
10927   shlibpath_overrides_runpath=yes
10928   hardcode_into_libs=yes
10929   ;;
10930
10931 newsos6)
10932   version_type=linux
10933   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10934   shlibpath_var=LD_LIBRARY_PATH
10935   shlibpath_overrides_runpath=yes
10936   ;;
10937
10938 *nto* | *qnx*)
10939   version_type=qnx
10940   need_lib_prefix=no
10941   need_version=no
10942   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10943   soname_spec='${libname}${release}${shared_ext}$major'
10944   shlibpath_var=LD_LIBRARY_PATH
10945   shlibpath_overrides_runpath=no
10946   hardcode_into_libs=yes
10947   dynamic_linker='ldqnx.so'
10948   ;;
10949
10950 openbsd*)
10951   version_type=sunos
10952   sys_lib_dlsearch_path_spec="/usr/lib"
10953   need_lib_prefix=no
10954   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10955   case $host_os in
10956     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10957     *)                          need_version=no  ;;
10958   esac
10959   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10960   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10961   shlibpath_var=LD_LIBRARY_PATH
10962   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10963     case $host_os in
10964       openbsd2.[89] | openbsd2.[89].*)
10965         shlibpath_overrides_runpath=no
10966         ;;
10967       *)
10968         shlibpath_overrides_runpath=yes
10969         ;;
10970       esac
10971   else
10972     shlibpath_overrides_runpath=yes
10973   fi
10974   ;;
10975
10976 os2*)
10977   libname_spec='$name'
10978   shrext_cmds=".dll"
10979   need_lib_prefix=no
10980   library_names_spec='$libname${shared_ext} $libname.a'
10981   dynamic_linker='OS/2 ld.exe'
10982   shlibpath_var=LIBPATH
10983   ;;
10984
10985 osf3* | osf4* | osf5*)
10986   version_type=osf
10987   need_lib_prefix=no
10988   need_version=no
10989   soname_spec='${libname}${release}${shared_ext}$major'
10990   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10991   shlibpath_var=LD_LIBRARY_PATH
10992   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10993   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10994   ;;
10995
10996 rdos*)
10997   dynamic_linker=no
10998   ;;
10999
11000 solaris*)
11001   version_type=linux
11002   need_lib_prefix=no
11003   need_version=no
11004   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11005   soname_spec='${libname}${release}${shared_ext}$major'
11006   shlibpath_var=LD_LIBRARY_PATH
11007   shlibpath_overrides_runpath=yes
11008   hardcode_into_libs=yes
11009   # ldd complains unless libraries are executable
11010   postinstall_cmds='chmod +x $lib'
11011   ;;
11012
11013 sunos4*)
11014   version_type=sunos
11015   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11016   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11017   shlibpath_var=LD_LIBRARY_PATH
11018   shlibpath_overrides_runpath=yes
11019   if test "$with_gnu_ld" = yes; then
11020     need_lib_prefix=no
11021   fi
11022   need_version=yes
11023   ;;
11024
11025 sysv4 | sysv4.3*)
11026   version_type=linux
11027   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11028   soname_spec='${libname}${release}${shared_ext}$major'
11029   shlibpath_var=LD_LIBRARY_PATH
11030   case $host_vendor in
11031     sni)
11032       shlibpath_overrides_runpath=no
11033       need_lib_prefix=no
11034       runpath_var=LD_RUN_PATH
11035       ;;
11036     siemens)
11037       need_lib_prefix=no
11038       ;;
11039     motorola)
11040       need_lib_prefix=no
11041       need_version=no
11042       shlibpath_overrides_runpath=no
11043       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11044       ;;
11045   esac
11046   ;;
11047
11048 sysv4*MP*)
11049   if test -d /usr/nec ;then
11050     version_type=linux
11051     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11052     soname_spec='$libname${shared_ext}.$major'
11053     shlibpath_var=LD_LIBRARY_PATH
11054   fi
11055   ;;
11056
11057 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11058   version_type=freebsd-elf
11059   need_lib_prefix=no
11060   need_version=no
11061   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11062   soname_spec='${libname}${release}${shared_ext}$major'
11063   shlibpath_var=LD_LIBRARY_PATH
11064   shlibpath_overrides_runpath=yes
11065   hardcode_into_libs=yes
11066   if test "$with_gnu_ld" = yes; then
11067     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11068   else
11069     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11070     case $host_os in
11071       sco3.2v5*)
11072         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11073         ;;
11074     esac
11075   fi
11076   sys_lib_dlsearch_path_spec='/usr/lib'
11077   ;;
11078
11079 tpf*)
11080   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11081   version_type=linux
11082   need_lib_prefix=no
11083   need_version=no
11084   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11085   shlibpath_var=LD_LIBRARY_PATH
11086   shlibpath_overrides_runpath=no
11087   hardcode_into_libs=yes
11088   ;;
11089
11090 uts4*)
11091   version_type=linux
11092   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11093   soname_spec='${libname}${release}${shared_ext}$major'
11094   shlibpath_var=LD_LIBRARY_PATH
11095   ;;
11096
11097 *)
11098   dynamic_linker=no
11099   ;;
11100 esac
11101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11102 $as_echo "$dynamic_linker" >&6; }
11103 test "$dynamic_linker" = no && can_build_shared=no
11104
11105 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11106 if test "$GCC" = yes; then
11107   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11108 fi
11109
11110 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11111   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11112 fi
11113 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11114   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11115 fi
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11209 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11210 hardcode_action=
11211 if test -n "$hardcode_libdir_flag_spec" ||
11212    test -n "$runpath_var" ||
11213    test "X$hardcode_automatic" = "Xyes" ; then
11214
11215   # We can hardcode non-existent directories.
11216   if test "$hardcode_direct" != no &&
11217      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11218      # have to relink, otherwise we might link with an installed library
11219      # when we should be linking with a yet-to-be-installed one
11220      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11221      test "$hardcode_minus_L" != no; then
11222     # Linking always hardcodes the temporary library directory.
11223     hardcode_action=relink
11224   else
11225     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11226     hardcode_action=immediate
11227   fi
11228 else
11229   # We cannot hardcode anything, or else we can only hardcode existing
11230   # directories.
11231   hardcode_action=unsupported
11232 fi
11233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11234 $as_echo "$hardcode_action" >&6; }
11235
11236 if test "$hardcode_action" = relink ||
11237    test "$inherit_rpath" = yes; then
11238   # Fast installation is not supported
11239   enable_fast_install=no
11240 elif test "$shlibpath_overrides_runpath" = yes ||
11241      test "$enable_shared" = no; then
11242   # Fast installation is not necessary
11243   enable_fast_install=needless
11244 fi
11245
11246
11247
11248
11249
11250
11251   if test "x$enable_dlopen" != xyes; then
11252   enable_dlopen=unknown
11253   enable_dlopen_self=unknown
11254   enable_dlopen_self_static=unknown
11255 else
11256   lt_cv_dlopen=no
11257   lt_cv_dlopen_libs=
11258
11259   case $host_os in
11260   beos*)
11261     lt_cv_dlopen="load_add_on"
11262     lt_cv_dlopen_libs=
11263     lt_cv_dlopen_self=yes
11264     ;;
11265
11266   mingw* | pw32* | cegcc*)
11267     lt_cv_dlopen="LoadLibrary"
11268     lt_cv_dlopen_libs=
11269     ;;
11270
11271   cygwin*)
11272     lt_cv_dlopen="dlopen"
11273     lt_cv_dlopen_libs=
11274     ;;
11275
11276   darwin*)
11277   # if libdl is installed we need to link against it
11278     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11279 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11280 if ${ac_cv_lib_dl_dlopen+:} false; then :
11281   $as_echo_n "(cached) " >&6
11282 else
11283   ac_check_lib_save_LIBS=$LIBS
11284 LIBS="-ldl  $LIBS"
11285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11286 /* end confdefs.h.  */
11287
11288 /* Override any GCC internal prototype to avoid an error.
11289    Use char because int might match the return type of a GCC
11290    builtin and then its argument prototype would still apply.  */
11291 #ifdef __cplusplus
11292 extern "C"
11293 #endif
11294 char dlopen ();
11295 int
11296 main ()
11297 {
11298 return dlopen ();
11299   ;
11300   return 0;
11301 }
11302 _ACEOF
11303 if ac_fn_c_try_link "$LINENO"; then :
11304   ac_cv_lib_dl_dlopen=yes
11305 else
11306   ac_cv_lib_dl_dlopen=no
11307 fi
11308 rm -f core conftest.err conftest.$ac_objext \
11309     conftest$ac_exeext conftest.$ac_ext
11310 LIBS=$ac_check_lib_save_LIBS
11311 fi
11312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11313 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11314 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11315   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11316 else
11317
11318     lt_cv_dlopen="dyld"
11319     lt_cv_dlopen_libs=
11320     lt_cv_dlopen_self=yes
11321
11322 fi
11323
11324     ;;
11325
11326   *)
11327     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11328 if test "x$ac_cv_func_shl_load" = xyes; then :
11329   lt_cv_dlopen="shl_load"
11330 else
11331   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11332 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11333 if ${ac_cv_lib_dld_shl_load+:} false; then :
11334   $as_echo_n "(cached) " >&6
11335 else
11336   ac_check_lib_save_LIBS=$LIBS
11337 LIBS="-ldld  $LIBS"
11338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11339 /* end confdefs.h.  */
11340
11341 /* Override any GCC internal prototype to avoid an error.
11342    Use char because int might match the return type of a GCC
11343    builtin and then its argument prototype would still apply.  */
11344 #ifdef __cplusplus
11345 extern "C"
11346 #endif
11347 char shl_load ();
11348 int
11349 main ()
11350 {
11351 return shl_load ();
11352   ;
11353   return 0;
11354 }
11355 _ACEOF
11356 if ac_fn_c_try_link "$LINENO"; then :
11357   ac_cv_lib_dld_shl_load=yes
11358 else
11359   ac_cv_lib_dld_shl_load=no
11360 fi
11361 rm -f core conftest.err conftest.$ac_objext \
11362     conftest$ac_exeext conftest.$ac_ext
11363 LIBS=$ac_check_lib_save_LIBS
11364 fi
11365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11366 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11367 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11368   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11369 else
11370   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11371 if test "x$ac_cv_func_dlopen" = xyes; then :
11372   lt_cv_dlopen="dlopen"
11373 else
11374   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11375 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11376 if ${ac_cv_lib_dl_dlopen+:} false; then :
11377   $as_echo_n "(cached) " >&6
11378 else
11379   ac_check_lib_save_LIBS=$LIBS
11380 LIBS="-ldl  $LIBS"
11381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11382 /* end confdefs.h.  */
11383
11384 /* Override any GCC internal prototype to avoid an error.
11385    Use char because int might match the return type of a GCC
11386    builtin and then its argument prototype would still apply.  */
11387 #ifdef __cplusplus
11388 extern "C"
11389 #endif
11390 char dlopen ();
11391 int
11392 main ()
11393 {
11394 return dlopen ();
11395   ;
11396   return 0;
11397 }
11398 _ACEOF
11399 if ac_fn_c_try_link "$LINENO"; then :
11400   ac_cv_lib_dl_dlopen=yes
11401 else
11402   ac_cv_lib_dl_dlopen=no
11403 fi
11404 rm -f core conftest.err conftest.$ac_objext \
11405     conftest$ac_exeext conftest.$ac_ext
11406 LIBS=$ac_check_lib_save_LIBS
11407 fi
11408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11409 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11410 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11411   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11412 else
11413   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11414 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11415 if ${ac_cv_lib_svld_dlopen+:} false; then :
11416   $as_echo_n "(cached) " >&6
11417 else
11418   ac_check_lib_save_LIBS=$LIBS
11419 LIBS="-lsvld  $LIBS"
11420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11421 /* end confdefs.h.  */
11422
11423 /* Override any GCC internal prototype to avoid an error.
11424    Use char because int might match the return type of a GCC
11425    builtin and then its argument prototype would still apply.  */
11426 #ifdef __cplusplus
11427 extern "C"
11428 #endif
11429 char dlopen ();
11430 int
11431 main ()
11432 {
11433 return dlopen ();
11434   ;
11435   return 0;
11436 }
11437 _ACEOF
11438 if ac_fn_c_try_link "$LINENO"; then :
11439   ac_cv_lib_svld_dlopen=yes
11440 else
11441   ac_cv_lib_svld_dlopen=no
11442 fi
11443 rm -f core conftest.err conftest.$ac_objext \
11444     conftest$ac_exeext conftest.$ac_ext
11445 LIBS=$ac_check_lib_save_LIBS
11446 fi
11447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11448 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11449 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11450   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11451 else
11452   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11453 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11454 if ${ac_cv_lib_dld_dld_link+:} false; then :
11455   $as_echo_n "(cached) " >&6
11456 else
11457   ac_check_lib_save_LIBS=$LIBS
11458 LIBS="-ldld  $LIBS"
11459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11460 /* end confdefs.h.  */
11461
11462 /* Override any GCC internal prototype to avoid an error.
11463    Use char because int might match the return type of a GCC
11464    builtin and then its argument prototype would still apply.  */
11465 #ifdef __cplusplus
11466 extern "C"
11467 #endif
11468 char dld_link ();
11469 int
11470 main ()
11471 {
11472 return dld_link ();
11473   ;
11474   return 0;
11475 }
11476 _ACEOF
11477 if ac_fn_c_try_link "$LINENO"; then :
11478   ac_cv_lib_dld_dld_link=yes
11479 else
11480   ac_cv_lib_dld_dld_link=no
11481 fi
11482 rm -f core conftest.err conftest.$ac_objext \
11483     conftest$ac_exeext conftest.$ac_ext
11484 LIBS=$ac_check_lib_save_LIBS
11485 fi
11486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11487 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11488 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11489   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11490 fi
11491
11492
11493 fi
11494
11495
11496 fi
11497
11498
11499 fi
11500
11501
11502 fi
11503
11504
11505 fi
11506
11507     ;;
11508   esac
11509
11510   if test "x$lt_cv_dlopen" != xno; then
11511     enable_dlopen=yes
11512   else
11513     enable_dlopen=no
11514   fi
11515
11516   case $lt_cv_dlopen in
11517   dlopen)
11518     save_CPPFLAGS="$CPPFLAGS"
11519     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11520
11521     save_LDFLAGS="$LDFLAGS"
11522     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11523
11524     save_LIBS="$LIBS"
11525     LIBS="$lt_cv_dlopen_libs $LIBS"
11526
11527     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11528 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11529 if ${lt_cv_dlopen_self+:} false; then :
11530   $as_echo_n "(cached) " >&6
11531 else
11532           if test "$cross_compiling" = yes; then :
11533   lt_cv_dlopen_self=cross
11534 else
11535   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11536   lt_status=$lt_dlunknown
11537   cat > conftest.$ac_ext <<_LT_EOF
11538 #line 11538 "configure"
11539 #include "confdefs.h"
11540
11541 #if HAVE_DLFCN_H
11542 #include <dlfcn.h>
11543 #endif
11544
11545 #include <stdio.h>
11546
11547 #ifdef RTLD_GLOBAL
11548 #  define LT_DLGLOBAL           RTLD_GLOBAL
11549 #else
11550 #  ifdef DL_GLOBAL
11551 #    define LT_DLGLOBAL         DL_GLOBAL
11552 #  else
11553 #    define LT_DLGLOBAL         0
11554 #  endif
11555 #endif
11556
11557 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11558    find out it does not work in some platform. */
11559 #ifndef LT_DLLAZY_OR_NOW
11560 #  ifdef RTLD_LAZY
11561 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11562 #  else
11563 #    ifdef DL_LAZY
11564 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11565 #    else
11566 #      ifdef RTLD_NOW
11567 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11568 #      else
11569 #        ifdef DL_NOW
11570 #          define LT_DLLAZY_OR_NOW      DL_NOW
11571 #        else
11572 #          define LT_DLLAZY_OR_NOW      0
11573 #        endif
11574 #      endif
11575 #    endif
11576 #  endif
11577 #endif
11578
11579 /* When -fvisbility=hidden is used, assume the code has been annotated
11580    correspondingly for the symbols needed.  */
11581 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11582 void fnord () __attribute__((visibility("default")));
11583 #endif
11584
11585 void fnord () { int i=42; }
11586 int main ()
11587 {
11588   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11589   int status = $lt_dlunknown;
11590
11591   if (self)
11592     {
11593       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11594       else
11595         {
11596           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11597           else puts (dlerror ());
11598         }
11599       /* dlclose (self); */
11600     }
11601   else
11602     puts (dlerror ());
11603
11604   return status;
11605 }
11606 _LT_EOF
11607   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11608   (eval $ac_link) 2>&5
11609   ac_status=$?
11610   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11611   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11612     (./conftest; exit; ) >&5 2>/dev/null
11613     lt_status=$?
11614     case x$lt_status in
11615       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11616       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11617       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11618     esac
11619   else :
11620     # compilation failed
11621     lt_cv_dlopen_self=no
11622   fi
11623 fi
11624 rm -fr conftest*
11625
11626
11627 fi
11628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11629 $as_echo "$lt_cv_dlopen_self" >&6; }
11630
11631     if test "x$lt_cv_dlopen_self" = xyes; then
11632       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11633       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11634 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11635 if ${lt_cv_dlopen_self_static+:} false; then :
11636   $as_echo_n "(cached) " >&6
11637 else
11638           if test "$cross_compiling" = yes; then :
11639   lt_cv_dlopen_self_static=cross
11640 else
11641   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11642   lt_status=$lt_dlunknown
11643   cat > conftest.$ac_ext <<_LT_EOF
11644 #line 11644 "configure"
11645 #include "confdefs.h"
11646
11647 #if HAVE_DLFCN_H
11648 #include <dlfcn.h>
11649 #endif
11650
11651 #include <stdio.h>
11652
11653 #ifdef RTLD_GLOBAL
11654 #  define LT_DLGLOBAL           RTLD_GLOBAL
11655 #else
11656 #  ifdef DL_GLOBAL
11657 #    define LT_DLGLOBAL         DL_GLOBAL
11658 #  else
11659 #    define LT_DLGLOBAL         0
11660 #  endif
11661 #endif
11662
11663 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11664    find out it does not work in some platform. */
11665 #ifndef LT_DLLAZY_OR_NOW
11666 #  ifdef RTLD_LAZY
11667 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11668 #  else
11669 #    ifdef DL_LAZY
11670 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11671 #    else
11672 #      ifdef RTLD_NOW
11673 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11674 #      else
11675 #        ifdef DL_NOW
11676 #          define LT_DLLAZY_OR_NOW      DL_NOW
11677 #        else
11678 #          define LT_DLLAZY_OR_NOW      0
11679 #        endif
11680 #      endif
11681 #    endif
11682 #  endif
11683 #endif
11684
11685 /* When -fvisbility=hidden is used, assume the code has been annotated
11686    correspondingly for the symbols needed.  */
11687 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11688 void fnord () __attribute__((visibility("default")));
11689 #endif
11690
11691 void fnord () { int i=42; }
11692 int main ()
11693 {
11694   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11695   int status = $lt_dlunknown;
11696
11697   if (self)
11698     {
11699       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11700       else
11701         {
11702           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11703           else puts (dlerror ());
11704         }
11705       /* dlclose (self); */
11706     }
11707   else
11708     puts (dlerror ());
11709
11710   return status;
11711 }
11712 _LT_EOF
11713   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11714   (eval $ac_link) 2>&5
11715   ac_status=$?
11716   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11717   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11718     (./conftest; exit; ) >&5 2>/dev/null
11719     lt_status=$?
11720     case x$lt_status in
11721       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11722       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11723       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11724     esac
11725   else :
11726     # compilation failed
11727     lt_cv_dlopen_self_static=no
11728   fi
11729 fi
11730 rm -fr conftest*
11731
11732
11733 fi
11734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11735 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11736     fi
11737
11738     CPPFLAGS="$save_CPPFLAGS"
11739     LDFLAGS="$save_LDFLAGS"
11740     LIBS="$save_LIBS"
11741     ;;
11742   esac
11743
11744   case $lt_cv_dlopen_self in
11745   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11746   *) enable_dlopen_self=unknown ;;
11747   esac
11748
11749   case $lt_cv_dlopen_self_static in
11750   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11751   *) enable_dlopen_self_static=unknown ;;
11752   esac
11753 fi
11754
11755
11756
11757
11758
11759
11760
11761
11762
11763
11764
11765
11766
11767
11768
11769
11770
11771 striplib=
11772 old_striplib=
11773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11774 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11775 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11776   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11777   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11778   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11779 $as_echo "yes" >&6; }
11780 else
11781 # FIXME - insert some real tests, host_os isn't really good enough
11782   case $host_os in
11783   darwin*)
11784     if test -n "$STRIP" ; then
11785       striplib="$STRIP -x"
11786       old_striplib="$STRIP -S"
11787       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11788 $as_echo "yes" >&6; }
11789     else
11790       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11791 $as_echo "no" >&6; }
11792     fi
11793     ;;
11794   *)
11795     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11796 $as_echo "no" >&6; }
11797     ;;
11798   esac
11799 fi
11800
11801
11802
11803
11804
11805
11806
11807
11808
11809
11810
11811
11812   # Report which library types will actually be built
11813   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11814 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11815   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11816 $as_echo "$can_build_shared" >&6; }
11817
11818   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11819 $as_echo_n "checking whether to build shared libraries... " >&6; }
11820   test "$can_build_shared" = "no" && enable_shared=no
11821
11822   # On AIX, shared libraries and static libraries use the same namespace, and
11823   # are all built from PIC.
11824   case $host_os in
11825   aix3*)
11826     test "$enable_shared" = yes && enable_static=no
11827     if test -n "$RANLIB"; then
11828       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11829       postinstall_cmds='$RANLIB $lib'
11830     fi
11831     ;;
11832
11833   aix[4-9]*)
11834     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11835       test "$enable_shared" = yes && enable_static=no
11836     fi
11837     ;;
11838   esac
11839   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11840 $as_echo "$enable_shared" >&6; }
11841
11842   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11843 $as_echo_n "checking whether to build static libraries... " >&6; }
11844   # Make sure either enable_shared or enable_static is yes.
11845   test "$enable_shared" = yes || enable_static=yes
11846   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11847 $as_echo "$enable_static" >&6; }
11848
11849
11850
11851
11852 fi
11853 ac_ext=c
11854 ac_cpp='$CPP $CPPFLAGS'
11855 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11856 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11857 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11858
11859 CC="$lt_save_CC"
11860
11861
11862
11863
11864
11865
11866
11867
11868
11869
11870
11871
11872
11873         ac_config_commands="$ac_config_commands libtool"
11874
11875
11876
11877
11878 # Only expand once:
11879
11880
11881
11882 # The tests for host and target for $enable_largefile require
11883 # canonical names.
11884
11885
11886
11887 # As the $enable_largefile decision depends on --enable-plugins we must set it
11888 # even in directories otherwise not depending on the $plugins option.
11889
11890
11891   maybe_plugins=no
11892   for ac_header in dlfcn.h
11893 do :
11894   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
11895 "
11896 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
11897   cat >>confdefs.h <<_ACEOF
11898 #define HAVE_DLFCN_H 1
11899 _ACEOF
11900  maybe_plugins=yes
11901 fi
11902
11903 done
11904
11905   for ac_header in windows.h
11906 do :
11907   ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
11908 "
11909 if test "x$ac_cv_header_windows_h" = xyes; then :
11910   cat >>confdefs.h <<_ACEOF
11911 #define HAVE_WINDOWS_H 1
11912 _ACEOF
11913  maybe_plugins=yes
11914 fi
11915
11916 done
11917
11918
11919   # Check whether --enable-plugins was given.
11920 if test "${enable_plugins+set}" = set; then :
11921   enableval=$enable_plugins; case "${enableval}" in
11922       no) plugins=no ;;
11923       *) plugins=yes
11924          if test "$maybe_plugins" != "yes" ; then
11925            as_fn_error $? "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
11926          fi ;;
11927      esac
11928 else
11929   plugins=$maybe_plugins
11930
11931 fi
11932
11933   if test "$plugins" = "yes"; then
11934     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
11935 $as_echo_n "checking for library containing dlsym... " >&6; }
11936 if ${ac_cv_search_dlsym+:} false; then :
11937   $as_echo_n "(cached) " >&6
11938 else
11939   ac_func_search_save_LIBS=$LIBS
11940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11941 /* end confdefs.h.  */
11942
11943 /* Override any GCC internal prototype to avoid an error.
11944    Use char because int might match the return type of a GCC
11945    builtin and then its argument prototype would still apply.  */
11946 #ifdef __cplusplus
11947 extern "C"
11948 #endif
11949 char dlsym ();
11950 int
11951 main ()
11952 {
11953 return dlsym ();
11954   ;
11955   return 0;
11956 }
11957 _ACEOF
11958 for ac_lib in '' dl; do
11959   if test -z "$ac_lib"; then
11960     ac_res="none required"
11961   else
11962     ac_res=-l$ac_lib
11963     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11964   fi
11965   if ac_fn_c_try_link "$LINENO"; then :
11966   ac_cv_search_dlsym=$ac_res
11967 fi
11968 rm -f core conftest.err conftest.$ac_objext \
11969     conftest$ac_exeext
11970   if ${ac_cv_search_dlsym+:} false; then :
11971   break
11972 fi
11973 done
11974 if ${ac_cv_search_dlsym+:} false; then :
11975
11976 else
11977   ac_cv_search_dlsym=no
11978 fi
11979 rm conftest.$ac_ext
11980 LIBS=$ac_func_search_save_LIBS
11981 fi
11982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
11983 $as_echo "$ac_cv_search_dlsym" >&6; }
11984 ac_res=$ac_cv_search_dlsym
11985 if test "$ac_res" != no; then :
11986   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11987
11988 fi
11989
11990   fi
11991
11992
11993 case "${host}" in
11994   sparc-*-solaris*|i[3-7]86-*-solaris*)
11995     # On native 32bit sparc and ia32 solaris, large-file and procfs support
11996     # are mutually exclusive; and without procfs support, the bfd/ elf module
11997     # cannot provide certain routines such as elfcore_write_prpsinfo
11998     # or elfcore_write_prstatus.  So unless the user explicitly requested
11999     # large-file support through the --enable-largefile switch, disable
12000     # large-file support in favor of procfs support.
12001     test "${target}" = "${host}" -a "x$plugins" = xno \
12002       && : ${enable_largefile="no"}
12003     ;;
12004 esac
12005
12006 # Check whether --enable-largefile was given.
12007 if test "${enable_largefile+set}" = set; then :
12008   enableval=$enable_largefile;
12009 fi
12010
12011 if test "$enable_largefile" != no; then
12012
12013   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
12014 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
12015 if ${ac_cv_sys_largefile_CC+:} false; then :
12016   $as_echo_n "(cached) " >&6
12017 else
12018   ac_cv_sys_largefile_CC=no
12019      if test "$GCC" != yes; then
12020        ac_save_CC=$CC
12021        while :; do
12022          # IRIX 6.2 and later do not support large files by default,
12023          # so use the C compiler's -n32 option if that helps.
12024          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12025 /* end confdefs.h.  */
12026 #include <sys/types.h>
12027  /* Check that off_t can represent 2**63 - 1 correctly.
12028     We can't simply define LARGE_OFF_T to be 9223372036854775807,
12029     since some C++ compilers masquerading as C compilers
12030     incorrectly reject 9223372036854775807.  */
12031 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
12032   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12033                        && LARGE_OFF_T % 2147483647 == 1)
12034                       ? 1 : -1];
12035 int
12036 main ()
12037 {
12038
12039   ;
12040   return 0;
12041 }
12042 _ACEOF
12043          if ac_fn_c_try_compile "$LINENO"; then :
12044   break
12045 fi
12046 rm -f core conftest.err conftest.$ac_objext
12047          CC="$CC -n32"
12048          if ac_fn_c_try_compile "$LINENO"; then :
12049   ac_cv_sys_largefile_CC=' -n32'; break
12050 fi
12051 rm -f core conftest.err conftest.$ac_objext
12052          break
12053        done
12054        CC=$ac_save_CC
12055        rm -f conftest.$ac_ext
12056     fi
12057 fi
12058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
12059 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
12060   if test "$ac_cv_sys_largefile_CC" != no; then
12061     CC=$CC$ac_cv_sys_largefile_CC
12062   fi
12063
12064   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
12065 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
12066 if ${ac_cv_sys_file_offset_bits+:} false; then :
12067   $as_echo_n "(cached) " >&6
12068 else
12069   while :; do
12070   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12071 /* end confdefs.h.  */
12072 #include <sys/types.h>
12073  /* Check that off_t can represent 2**63 - 1 correctly.
12074     We can't simply define LARGE_OFF_T to be 9223372036854775807,
12075     since some C++ compilers masquerading as C compilers
12076     incorrectly reject 9223372036854775807.  */
12077 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
12078   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12079                        && LARGE_OFF_T % 2147483647 == 1)
12080                       ? 1 : -1];
12081 int
12082 main ()
12083 {
12084
12085   ;
12086   return 0;
12087 }
12088 _ACEOF
12089 if ac_fn_c_try_compile "$LINENO"; then :
12090   ac_cv_sys_file_offset_bits=no; break
12091 fi
12092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12093   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12094 /* end confdefs.h.  */
12095 #define _FILE_OFFSET_BITS 64
12096 #include <sys/types.h>
12097  /* Check that off_t can represent 2**63 - 1 correctly.
12098     We can't simply define LARGE_OFF_T to be 9223372036854775807,
12099     since some C++ compilers masquerading as C compilers
12100     incorrectly reject 9223372036854775807.  */
12101 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
12102   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12103                        && LARGE_OFF_T % 2147483647 == 1)
12104                       ? 1 : -1];
12105 int
12106 main ()
12107 {
12108
12109   ;
12110   return 0;
12111 }
12112 _ACEOF
12113 if ac_fn_c_try_compile "$LINENO"; then :
12114   ac_cv_sys_file_offset_bits=64; break
12115 fi
12116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12117   ac_cv_sys_file_offset_bits=unknown
12118   break
12119 done
12120 fi
12121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
12122 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
12123 case $ac_cv_sys_file_offset_bits in #(
12124   no | unknown) ;;
12125   *)
12126 cat >>confdefs.h <<_ACEOF
12127 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
12128 _ACEOF
12129 ;;
12130 esac
12131 rm -rf conftest*
12132   if test $ac_cv_sys_file_offset_bits = unknown; then
12133     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
12134 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
12135 if ${ac_cv_sys_large_files+:} false; then :
12136   $as_echo_n "(cached) " >&6
12137 else
12138   while :; do
12139   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12140 /* end confdefs.h.  */
12141 #include <sys/types.h>
12142  /* Check that off_t can represent 2**63 - 1 correctly.
12143     We can't simply define LARGE_OFF_T to be 9223372036854775807,
12144     since some C++ compilers masquerading as C compilers
12145     incorrectly reject 9223372036854775807.  */
12146 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
12147   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12148                        && LARGE_OFF_T % 2147483647 == 1)
12149                       ? 1 : -1];
12150 int
12151 main ()
12152 {
12153
12154   ;
12155   return 0;
12156 }
12157 _ACEOF
12158 if ac_fn_c_try_compile "$LINENO"; then :
12159   ac_cv_sys_large_files=no; break
12160 fi
12161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12162   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12163 /* end confdefs.h.  */
12164 #define _LARGE_FILES 1
12165 #include <sys/types.h>
12166  /* Check that off_t can represent 2**63 - 1 correctly.
12167     We can't simply define LARGE_OFF_T to be 9223372036854775807,
12168     since some C++ compilers masquerading as C compilers
12169     incorrectly reject 9223372036854775807.  */
12170 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
12171   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12172                        && LARGE_OFF_T % 2147483647 == 1)
12173                       ? 1 : -1];
12174 int
12175 main ()
12176 {
12177
12178   ;
12179   return 0;
12180 }
12181 _ACEOF
12182 if ac_fn_c_try_compile "$LINENO"; then :
12183   ac_cv_sys_large_files=1; break
12184 fi
12185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12186   ac_cv_sys_large_files=unknown
12187   break
12188 done
12189 fi
12190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
12191 $as_echo "$ac_cv_sys_large_files" >&6; }
12192 case $ac_cv_sys_large_files in #(
12193   no | unknown) ;;
12194   *)
12195 cat >>confdefs.h <<_ACEOF
12196 #define _LARGE_FILES $ac_cv_sys_large_files
12197 _ACEOF
12198 ;;
12199 esac
12200 rm -rf conftest*
12201   fi
12202
12203
12204 fi
12205
12206
12207
12208 # Check whether --enable-targets was given.
12209 if test "${enable_targets+set}" = set; then :
12210   enableval=$enable_targets; case "${enableval}" in
12211   yes | "") as_fn_error $? "enable-targets option must specify target names or 'all'" "$LINENO" 5
12212             ;;
12213   no)       enable_targets= ;;
12214   *)        enable_targets=$enableval ;;
12215 esac
12216 fi
12217
12218 # Check whether --enable-deterministic-archives was given.
12219 if test "${enable_deterministic_archives+set}" = set; then :
12220   enableval=$enable_deterministic_archives;
12221 if test "${enableval}" = no; then
12222   default_ar_deterministic=0
12223 else
12224   default_ar_deterministic=1
12225 fi
12226 else
12227   default_ar_deterministic=0
12228 fi
12229
12230
12231
12232 cat >>confdefs.h <<_ACEOF
12233 #define DEFAULT_AR_DETERMINISTIC $default_ar_deterministic
12234 _ACEOF
12235
12236
12237 # Check whether --enable-default-strings-all was given.
12238 if test "${enable_default_strings_all+set}" = set; then :
12239   enableval=$enable_default_strings_all;
12240 if test "${enableval}" = no; then
12241   default_strings_all=0
12242 else
12243   default_strings_all=1
12244 fi
12245 else
12246   default_strings_all=1
12247 fi
12248
12249
12250
12251 cat >>confdefs.h <<_ACEOF
12252 #define DEFAULT_STRINGS_ALL $default_strings_all
12253 _ACEOF
12254
12255
12256
12257 # Set the 'development' global.
12258 . $srcdir/../bfd/development.sh
12259
12260 # Set acp_cpp_for_build variable
12261 ac_cpp_for_build="$CC_FOR_BUILD -E $CPPFLAGS_FOR_BUILD"
12262
12263 # Default set of GCC warnings to enable.
12264 GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
12265 GCC_WARN_CFLAGS_FOR_BUILD="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
12266
12267 # Add -Wshadow if the compiler is a sufficiently recent version of GCC.
12268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12269 /* end confdefs.h.  */
12270 __GNUC__
12271 _ACEOF
12272 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12273   $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
12274
12275 else
12276   GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow"
12277 fi
12278 rm -f conftest*
12279
12280
12281 # Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
12282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12283 /* end confdefs.h.  */
12284 __GNUC__
12285 _ACEOF
12286 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12287   $EGREP "(^[0-4]$|^__GNUC__$)" >/dev/null 2>&1; then :
12288
12289 else
12290   GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wstack-usage=262144"
12291 fi
12292 rm -f conftest*
12293
12294
12295 # Set WARN_WRITE_STRINGS if the compiler supports -Wwrite-strings.
12296 WARN_WRITE_STRINGS=""
12297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12298 /* end confdefs.h.  */
12299 __GNUC__
12300 _ACEOF
12301 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12302   $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
12303
12304 else
12305   WARN_WRITE_STRINGS="-Wwrite-strings"
12306 fi
12307 rm -f conftest*
12308
12309
12310 # Verify CC_FOR_BUILD to be compatible with warning flags
12311
12312 # Add -Wshadow if the compiler is a sufficiently recent version of GCC.
12313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12314 /* end confdefs.h.  */
12315 __GNUC__
12316 _ACEOF
12317 if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
12318   $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
12319
12320 else
12321   GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wshadow"
12322 fi
12323 rm -f conftest*
12324
12325
12326 # Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
12327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12328 /* end confdefs.h.  */
12329 __GNUC__
12330 _ACEOF
12331 if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
12332   $EGREP "(^[0-4]$|^__GNUC__$)" >/dev/null 2>&1; then :
12333
12334 else
12335   GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wstack-usage=262144"
12336 fi
12337 rm -f conftest*
12338
12339
12340 # Check whether --enable-werror was given.
12341 if test "${enable_werror+set}" = set; then :
12342   enableval=$enable_werror; case "${enableval}" in
12343      yes | y) ERROR_ON_WARNING="yes" ;;
12344      no | n)  ERROR_ON_WARNING="no" ;;
12345      *) as_fn_error $? "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
12346    esac
12347 fi
12348
12349
12350 # Disable -Wformat by default when using gcc on mingw
12351 case "${host}" in
12352   *-*-mingw32*)
12353     if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
12354       GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
12355       GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wno-format"
12356     fi
12357     ;;
12358   *) ;;
12359 esac
12360
12361 # Enable -Werror by default when using gcc.  Turn it off for releases.
12362 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" -a "$development" = true ; then
12363     ERROR_ON_WARNING=yes
12364 fi
12365
12366 NO_WERROR=
12367 if test "${ERROR_ON_WARNING}" = yes ; then
12368     GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
12369     GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Werror"
12370     NO_WERROR="-Wno-error"
12371 fi
12372
12373 if test "${GCC}" = yes ; then
12374   WARN_CFLAGS="${GCC_WARN_CFLAGS}"
12375   WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}"
12376 fi
12377
12378 # Check whether --enable-build-warnings was given.
12379 if test "${enable_build_warnings+set}" = set; then :
12380   enableval=$enable_build_warnings; case "${enableval}" in
12381   yes)  WARN_CFLAGS="${GCC_WARN_CFLAGS}"
12382         WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}";;
12383   no)   if test "${GCC}" = yes ; then
12384           WARN_CFLAGS="-w"
12385       WARN_CFLAGS_FOR_BUILD="-w"
12386         fi;;
12387   ,*)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
12388         WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}"
12389         WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD} ${t}";;
12390   *,)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
12391         WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}"
12392         WARN_CFLAGS_FOR_BUILD="${t} ${GCC_WARN_CFLAGS_FOR_BUILD}";;
12393   *)    WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`
12394         WARN_CFLAGS_FOR_BUILD=`echo "${enableval}" | sed -e "s/,/ /g"`;;
12395 esac
12396 fi
12397
12398
12399 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
12400   echo "Setting warning flags = $WARN_CFLAGS" 6>&1
12401 fi
12402
12403
12404
12405
12406
12407
12408
12409 ac_config_headers="$ac_config_headers config.h:config.in"
12410
12411
12412
12413
12414 if test -z "$target" ; then
12415     as_fn_error $? "Unrecognized target system type; please check config.sub." "$LINENO" 5
12416 fi
12417 if test -z "$host" ; then
12418     as_fn_error $? "Unrecognized host system type; please check config.sub." "$LINENO" 5
12419 fi
12420
12421 for ac_prog in 'bison -y' byacc
12422 do
12423   # Extract the first word of "$ac_prog", so it can be a program name with args.
12424 set dummy $ac_prog; ac_word=$2
12425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12426 $as_echo_n "checking for $ac_word... " >&6; }
12427 if ${ac_cv_prog_YACC+:} false; then :
12428   $as_echo_n "(cached) " >&6
12429 else
12430   if test -n "$YACC"; then
12431   ac_cv_prog_YACC="$YACC" # Let the user override the test.
12432 else
12433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12434 for as_dir in $PATH
12435 do
12436   IFS=$as_save_IFS
12437   test -z "$as_dir" && as_dir=.
12438     for ac_exec_ext in '' $ac_executable_extensions; do
12439   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12440     ac_cv_prog_YACC="$ac_prog"
12441     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12442     break 2
12443   fi
12444 done
12445   done
12446 IFS=$as_save_IFS
12447
12448 fi
12449 fi
12450 YACC=$ac_cv_prog_YACC
12451 if test -n "$YACC"; then
12452   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
12453 $as_echo "$YACC" >&6; }
12454 else
12455   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12456 $as_echo "no" >&6; }
12457 fi
12458
12459
12460   test -n "$YACC" && break
12461 done
12462 test -n "$YACC" || YACC="yacc"
12463
12464 for ac_prog in flex lex
12465 do
12466   # Extract the first word of "$ac_prog", so it can be a program name with args.
12467 set dummy $ac_prog; ac_word=$2
12468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12469 $as_echo_n "checking for $ac_word... " >&6; }
12470 if ${ac_cv_prog_LEX+:} false; then :
12471   $as_echo_n "(cached) " >&6
12472 else
12473   if test -n "$LEX"; then
12474   ac_cv_prog_LEX="$LEX" # Let the user override the test.
12475 else
12476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12477 for as_dir in $PATH
12478 do
12479   IFS=$as_save_IFS
12480   test -z "$as_dir" && as_dir=.
12481     for ac_exec_ext in '' $ac_executable_extensions; do
12482   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12483     ac_cv_prog_LEX="$ac_prog"
12484     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12485     break 2
12486   fi
12487 done
12488   done
12489 IFS=$as_save_IFS
12490
12491 fi
12492 fi
12493 LEX=$ac_cv_prog_LEX
12494 if test -n "$LEX"; then
12495   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
12496 $as_echo "$LEX" >&6; }
12497 else
12498   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12499 $as_echo "no" >&6; }
12500 fi
12501
12502
12503   test -n "$LEX" && break
12504 done
12505 test -n "$LEX" || LEX=":"
12506
12507 case "$LEX" in
12508   :|*"missing "*) ;;
12509   *) cat >conftest.l <<_ACEOF
12510 %%
12511 a { ECHO; }
12512 b { REJECT; }
12513 c { yymore (); }
12514 d { yyless (1); }
12515 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument.  */
12516     yyless ((input () != 0)); }
12517 f { unput (yytext[0]); }
12518 . { BEGIN INITIAL; }
12519 %%
12520 #ifdef YYTEXT_POINTER
12521 extern char *yytext;
12522 #endif
12523 int
12524 main (void)
12525 {
12526   return ! yylex () + ! yywrap ();
12527 }
12528 _ACEOF
12529 { { ac_try="$LEX conftest.l"
12530 case "(($ac_try" in
12531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12532   *) ac_try_echo=$ac_try;;
12533 esac
12534 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12535 $as_echo "$ac_try_echo"; } >&5
12536   (eval "$LEX conftest.l") 2>&5
12537   ac_status=$?
12538   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12539   test $ac_status = 0; }
12540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
12541 $as_echo_n "checking lex output file root... " >&6; }
12542 if ${ac_cv_prog_lex_root+:} false; then :
12543   $as_echo_n "(cached) " >&6
12544 else
12545
12546 if test -f lex.yy.c; then
12547   ac_cv_prog_lex_root=lex.yy
12548 elif test -f lexyy.c; then
12549   ac_cv_prog_lex_root=lexyy
12550 else
12551   as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
12552 fi
12553 fi
12554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
12555 $as_echo "$ac_cv_prog_lex_root" >&6; }
12556 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
12557
12558 if test -z "${LEXLIB+set}"; then
12559   { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
12560 $as_echo_n "checking lex library... " >&6; }
12561 if ${ac_cv_lib_lex+:} false; then :
12562   $as_echo_n "(cached) " >&6
12563 else
12564
12565     ac_save_LIBS=$LIBS
12566     ac_cv_lib_lex='none needed'
12567     for ac_lib in '' -lfl -ll; do
12568       LIBS="$ac_lib $ac_save_LIBS"
12569       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12570 /* end confdefs.h.  */
12571 `cat $LEX_OUTPUT_ROOT.c`
12572 _ACEOF
12573 if ac_fn_c_try_link "$LINENO"; then :
12574   ac_cv_lib_lex=$ac_lib
12575 fi
12576 rm -f core conftest.err conftest.$ac_objext \
12577     conftest$ac_exeext conftest.$ac_ext
12578       test "$ac_cv_lib_lex" != 'none needed' && break
12579     done
12580     LIBS=$ac_save_LIBS
12581
12582 fi
12583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
12584 $as_echo "$ac_cv_lib_lex" >&6; }
12585   test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
12586 fi
12587
12588
12589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
12590 $as_echo_n "checking whether yytext is a pointer... " >&6; }
12591 if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
12592   $as_echo_n "(cached) " >&6
12593 else
12594   # POSIX says lex can declare yytext either as a pointer or an array; the
12595 # default is implementation-dependent.  Figure out which it is, since
12596 # not all implementations provide the %pointer and %array declarations.
12597 ac_cv_prog_lex_yytext_pointer=no
12598 ac_save_LIBS=$LIBS
12599 LIBS="$LEXLIB $ac_save_LIBS"
12600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12601 /* end confdefs.h.  */
12602
12603   #define YYTEXT_POINTER 1
12604 `cat $LEX_OUTPUT_ROOT.c`
12605 _ACEOF
12606 if ac_fn_c_try_link "$LINENO"; then :
12607   ac_cv_prog_lex_yytext_pointer=yes
12608 fi
12609 rm -f core conftest.err conftest.$ac_objext \
12610     conftest$ac_exeext conftest.$ac_ext
12611 LIBS=$ac_save_LIBS
12612
12613 fi
12614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
12615 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
12616 if test $ac_cv_prog_lex_yytext_pointer = yes; then
12617
12618 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
12619
12620 fi
12621 rm -f conftest.l $LEX_OUTPUT_ROOT.c
12622  ;;
12623 esac
12624 if test "$LEX" = :; then
12625   LEX=${am_missing_run}flex
12626 fi
12627
12628 ALL_LINGUAS="bg ca da es fi fr hr id it ja pt ro ru rw sk sr sv tr uk vi zh_CN zh_TW"
12629 # If we haven't got the data from the intl directory,
12630 # assume NLS is disabled.
12631 USE_NLS=no
12632 LIBINTL=
12633 LIBINTL_DEP=
12634 INCINTL=
12635 XGETTEXT=
12636 GMSGFMT=
12637 POSUB=
12638
12639 if test -f  ../intl/config.intl; then
12640   .  ../intl/config.intl
12641 fi
12642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
12643 $as_echo_n "checking whether NLS is requested... " >&6; }
12644 if test x"$USE_NLS" != xyes; then
12645   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12646 $as_echo "no" >&6; }
12647 else
12648   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12649 $as_echo "yes" >&6; }
12650
12651 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
12652
12653
12654   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
12655 $as_echo_n "checking for catalogs to be installed... " >&6; }
12656   # Look for .po and .gmo files in the source directory.
12657   CATALOGS=
12658   XLINGUAS=
12659   for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
12660     # If there aren't any .gmo files the shell will give us the
12661     # literal string "../path/to/srcdir/po/*.gmo" which has to be
12662     # weeded out.
12663     case "$cat" in *\**)
12664       continue;;
12665     esac
12666     # The quadruple backslash is collapsed to a double backslash
12667     # by the backticks, then collapsed again by the double quotes,
12668     # leaving us with one backslash in the sed expression (right
12669     # before the dot that mustn't act as a wildcard).
12670     cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
12671     lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
12672     # The user is allowed to set LINGUAS to a list of languages to
12673     # install catalogs for.  If it's empty that means "all of them."
12674     if test "x$LINGUAS" = x; then
12675       CATALOGS="$CATALOGS $cat"
12676       XLINGUAS="$XLINGUAS $lang"
12677     else
12678       case "$LINGUAS" in *$lang*)
12679         CATALOGS="$CATALOGS $cat"
12680         XLINGUAS="$XLINGUAS $lang"
12681         ;;
12682       esac
12683     fi
12684   done
12685   LINGUAS="$XLINGUAS"
12686   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
12687 $as_echo "$LINGUAS" >&6; }
12688
12689
12690     DATADIRNAME=share
12691
12692   INSTOBJEXT=.mo
12693
12694   GENCAT=gencat
12695
12696   CATOBJEXT=.gmo
12697
12698 fi
12699
12700         MKINSTALLDIRS=
12701   if test -n "$ac_aux_dir"; then
12702     case "$ac_aux_dir" in
12703       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
12704       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
12705     esac
12706   fi
12707   if test -z "$MKINSTALLDIRS"; then
12708     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
12709   fi
12710
12711
12712
12713   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
12714 $as_echo_n "checking whether NLS is requested... " >&6; }
12715     # Check whether --enable-nls was given.
12716 if test "${enable_nls+set}" = set; then :
12717   enableval=$enable_nls; USE_NLS=$enableval
12718 else
12719   USE_NLS=yes
12720 fi
12721
12722   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
12723 $as_echo "$USE_NLS" >&6; }
12724
12725
12726
12727
12728
12729
12730 # Prepare PATH_SEPARATOR.
12731 # The user is always right.
12732 if test "${PATH_SEPARATOR+set}" != set; then
12733   echo "#! /bin/sh" >conf$$.sh
12734   echo  "exit 0"   >>conf$$.sh
12735   chmod +x conf$$.sh
12736   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12737     PATH_SEPARATOR=';'
12738   else
12739     PATH_SEPARATOR=:
12740   fi
12741   rm -f conf$$.sh
12742 fi
12743
12744 # Find out how to test for executable files. Don't use a zero-byte file,
12745 # as systems may use methods other than mode bits to determine executability.
12746 cat >conf$$.file <<_ASEOF
12747 #! /bin/sh
12748 exit 0
12749 _ASEOF
12750 chmod +x conf$$.file
12751 if test -x conf$$.file >/dev/null 2>&1; then
12752   ac_executable_p="test -x"
12753 else
12754   ac_executable_p="test -f"
12755 fi
12756 rm -f conf$$.file
12757
12758 # Extract the first word of "msgfmt", so it can be a program name with args.
12759 set dummy msgfmt; ac_word=$2
12760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12761 $as_echo_n "checking for $ac_word... " >&6; }
12762 if ${ac_cv_path_MSGFMT+:} false; then :
12763   $as_echo_n "(cached) " >&6
12764 else
12765   case "$MSGFMT" in
12766   [\\/]* | ?:[\\/]*)
12767     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
12768     ;;
12769   *)
12770     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12771     for ac_dir in $PATH; do
12772       IFS="$ac_save_IFS"
12773       test -z "$ac_dir" && ac_dir=.
12774       for ac_exec_ext in '' $ac_executable_extensions; do
12775         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12776           if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
12777      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12778             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
12779             break 2
12780           fi
12781         fi
12782       done
12783     done
12784     IFS="$ac_save_IFS"
12785   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
12786     ;;
12787 esac
12788 fi
12789 MSGFMT="$ac_cv_path_MSGFMT"
12790 if test "$MSGFMT" != ":"; then
12791   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
12792 $as_echo "$MSGFMT" >&6; }
12793 else
12794   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12795 $as_echo "no" >&6; }
12796 fi
12797
12798   # Extract the first word of "gmsgfmt", so it can be a program name with args.
12799 set dummy gmsgfmt; ac_word=$2
12800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12801 $as_echo_n "checking for $ac_word... " >&6; }
12802 if ${ac_cv_path_GMSGFMT+:} false; then :
12803   $as_echo_n "(cached) " >&6
12804 else
12805   case $GMSGFMT in
12806   [\\/]* | ?:[\\/]*)
12807   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
12808   ;;
12809   *)
12810   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12811 for as_dir in $PATH
12812 do
12813   IFS=$as_save_IFS
12814   test -z "$as_dir" && as_dir=.
12815     for ac_exec_ext in '' $ac_executable_extensions; do
12816   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12817     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
12818     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12819     break 2
12820   fi
12821 done
12822   done
12823 IFS=$as_save_IFS
12824
12825   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
12826   ;;
12827 esac
12828 fi
12829 GMSGFMT=$ac_cv_path_GMSGFMT
12830 if test -n "$GMSGFMT"; then
12831   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
12832 $as_echo "$GMSGFMT" >&6; }
12833 else
12834   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12835 $as_echo "no" >&6; }
12836 fi
12837
12838
12839
12840
12841 # Prepare PATH_SEPARATOR.
12842 # The user is always right.
12843 if test "${PATH_SEPARATOR+set}" != set; then
12844   echo "#! /bin/sh" >conf$$.sh
12845   echo  "exit 0"   >>conf$$.sh
12846   chmod +x conf$$.sh
12847   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12848     PATH_SEPARATOR=';'
12849   else
12850     PATH_SEPARATOR=:
12851   fi
12852   rm -f conf$$.sh
12853 fi
12854
12855 # Find out how to test for executable files. Don't use a zero-byte file,
12856 # as systems may use methods other than mode bits to determine executability.
12857 cat >conf$$.file <<_ASEOF
12858 #! /bin/sh
12859 exit 0
12860 _ASEOF
12861 chmod +x conf$$.file
12862 if test -x conf$$.file >/dev/null 2>&1; then
12863   ac_executable_p="test -x"
12864 else
12865   ac_executable_p="test -f"
12866 fi
12867 rm -f conf$$.file
12868
12869 # Extract the first word of "xgettext", so it can be a program name with args.
12870 set dummy xgettext; ac_word=$2
12871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12872 $as_echo_n "checking for $ac_word... " >&6; }
12873 if ${ac_cv_path_XGETTEXT+:} false; then :
12874   $as_echo_n "(cached) " >&6
12875 else
12876   case "$XGETTEXT" in
12877   [\\/]* | ?:[\\/]*)
12878     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
12879     ;;
12880   *)
12881     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12882     for ac_dir in $PATH; do
12883       IFS="$ac_save_IFS"
12884       test -z "$ac_dir" && ac_dir=.
12885       for ac_exec_ext in '' $ac_executable_extensions; do
12886         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12887           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
12888      (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
12889             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
12890             break 2
12891           fi
12892         fi
12893       done
12894     done
12895     IFS="$ac_save_IFS"
12896   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
12897     ;;
12898 esac
12899 fi
12900 XGETTEXT="$ac_cv_path_XGETTEXT"
12901 if test "$XGETTEXT" != ":"; then
12902   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
12903 $as_echo "$XGETTEXT" >&6; }
12904 else
12905   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12906 $as_echo "no" >&6; }
12907 fi
12908
12909     rm -f messages.po
12910
12911
12912 # Prepare PATH_SEPARATOR.
12913 # The user is always right.
12914 if test "${PATH_SEPARATOR+set}" != set; then
12915   echo "#! /bin/sh" >conf$$.sh
12916   echo  "exit 0"   >>conf$$.sh
12917   chmod +x conf$$.sh
12918   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12919     PATH_SEPARATOR=';'
12920   else
12921     PATH_SEPARATOR=:
12922   fi
12923   rm -f conf$$.sh
12924 fi
12925
12926 # Find out how to test for executable files. Don't use a zero-byte file,
12927 # as systems may use methods other than mode bits to determine executability.
12928 cat >conf$$.file <<_ASEOF
12929 #! /bin/sh
12930 exit 0
12931 _ASEOF
12932 chmod +x conf$$.file
12933 if test -x conf$$.file >/dev/null 2>&1; then
12934   ac_executable_p="test -x"
12935 else
12936   ac_executable_p="test -f"
12937 fi
12938 rm -f conf$$.file
12939
12940 # Extract the first word of "msgmerge", so it can be a program name with args.
12941 set dummy msgmerge; ac_word=$2
12942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12943 $as_echo_n "checking for $ac_word... " >&6; }
12944 if ${ac_cv_path_MSGMERGE+:} false; then :
12945   $as_echo_n "(cached) " >&6
12946 else
12947   case "$MSGMERGE" in
12948   [\\/]* | ?:[\\/]*)
12949     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
12950     ;;
12951   *)
12952     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12953     for ac_dir in $PATH; do
12954       IFS="$ac_save_IFS"
12955       test -z "$ac_dir" && ac_dir=.
12956       for ac_exec_ext in '' $ac_executable_extensions; do
12957         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12958           if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
12959             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
12960             break 2
12961           fi
12962         fi
12963       done
12964     done
12965     IFS="$ac_save_IFS"
12966   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
12967     ;;
12968 esac
12969 fi
12970 MSGMERGE="$ac_cv_path_MSGMERGE"
12971 if test "$MSGMERGE" != ":"; then
12972   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
12973 $as_echo "$MSGMERGE" >&6; }
12974 else
12975   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12976 $as_echo "no" >&6; }
12977 fi
12978
12979
12980       if test "$GMSGFMT" != ":"; then
12981             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
12982        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12983       : ;
12984     else
12985       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
12986       { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
12987 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
12988       GMSGFMT=":"
12989     fi
12990   fi
12991
12992       if test "$XGETTEXT" != ":"; then
12993             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
12994        (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
12995       : ;
12996     else
12997       { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
12998 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
12999       XGETTEXT=":"
13000     fi
13001         rm -f messages.po
13002   fi
13003
13004   ac_config_commands="$ac_config_commands default-1"
13005
13006
13007
13008
13009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
13010 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
13011     # Check whether --enable-maintainer-mode was given.
13012 if test "${enable_maintainer_mode+set}" = set; then :
13013   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
13014 else
13015   USE_MAINTAINER_MODE=no
13016 fi
13017
13018   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
13019 $as_echo "$USE_MAINTAINER_MODE" >&6; }
13020    if test $USE_MAINTAINER_MODE = yes; then
13021   MAINTAINER_MODE_TRUE=
13022   MAINTAINER_MODE_FALSE='#'
13023 else
13024   MAINTAINER_MODE_TRUE='#'
13025   MAINTAINER_MODE_FALSE=
13026 fi
13027
13028   MAINT=$MAINTAINER_MODE_TRUE
13029
13030
13031  if false; then
13032   GENINSRC_NEVER_TRUE=
13033   GENINSRC_NEVER_FALSE='#'
13034 else
13035   GENINSRC_NEVER_TRUE='#'
13036   GENINSRC_NEVER_FALSE=
13037 fi
13038
13039
13040 if test -n "$EXEEXT"; then
13041
13042 $as_echo "#define HAVE_EXECUTABLE_SUFFIX 1" >>confdefs.h
13043
13044 fi
13045
13046 cat >>confdefs.h <<_ACEOF
13047 #define EXECUTABLE_SUFFIX "${EXEEXT}"
13048 _ACEOF
13049
13050
13051 # host-specific stuff:
13052
13053 HDEFINES=
13054
13055 . ${srcdir}/../bfd/configure.host
13056
13057
13058 AR=${AR-ar}
13059
13060 if test -n "$ac_tool_prefix"; then
13061   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13062 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13064 $as_echo_n "checking for $ac_word... " >&6; }
13065 if ${ac_cv_prog_RANLIB+:} false; then :
13066   $as_echo_n "(cached) " >&6
13067 else
13068   if test -n "$RANLIB"; then
13069   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13070 else
13071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13072 for as_dir in $PATH
13073 do
13074   IFS=$as_save_IFS
13075   test -z "$as_dir" && as_dir=.
13076     for ac_exec_ext in '' $ac_executable_extensions; do
13077   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13078     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13079     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13080     break 2
13081   fi
13082 done
13083   done
13084 IFS=$as_save_IFS
13085
13086 fi
13087 fi
13088 RANLIB=$ac_cv_prog_RANLIB
13089 if test -n "$RANLIB"; then
13090   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13091 $as_echo "$RANLIB" >&6; }
13092 else
13093   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13094 $as_echo "no" >&6; }
13095 fi
13096
13097
13098 fi
13099 if test -z "$ac_cv_prog_RANLIB"; then
13100   ac_ct_RANLIB=$RANLIB
13101   # Extract the first word of "ranlib", so it can be a program name with args.
13102 set dummy ranlib; ac_word=$2
13103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13104 $as_echo_n "checking for $ac_word... " >&6; }
13105 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
13106   $as_echo_n "(cached) " >&6
13107 else
13108   if test -n "$ac_ct_RANLIB"; then
13109   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13110 else
13111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13112 for as_dir in $PATH
13113 do
13114   IFS=$as_save_IFS
13115   test -z "$as_dir" && as_dir=.
13116     for ac_exec_ext in '' $ac_executable_extensions; do
13117   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13118     ac_cv_prog_ac_ct_RANLIB="ranlib"
13119     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13120     break 2
13121   fi
13122 done
13123   done
13124 IFS=$as_save_IFS
13125
13126 fi
13127 fi
13128 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13129 if test -n "$ac_ct_RANLIB"; then
13130   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13131 $as_echo "$ac_ct_RANLIB" >&6; }
13132 else
13133   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13134 $as_echo "no" >&6; }
13135 fi
13136
13137   if test "x$ac_ct_RANLIB" = x; then
13138     RANLIB=":"
13139   else
13140     case $cross_compiling:$ac_tool_warned in
13141 yes:)
13142 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13143 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13144 ac_tool_warned=yes ;;
13145 esac
13146     RANLIB=$ac_ct_RANLIB
13147   fi
13148 else
13149   RANLIB="$ac_cv_prog_RANLIB"
13150 fi
13151
13152
13153
13154 # Put a plausible default for CC_FOR_BUILD in Makefile.
13155 if test -z "$CC_FOR_BUILD"; then
13156   if test "x$cross_compiling" = "xno"; then
13157     CC_FOR_BUILD='$(CC)'
13158   else
13159     CC_FOR_BUILD=gcc
13160   fi
13161 fi
13162
13163 # Also set EXEEXT_FOR_BUILD.
13164 if test "x$cross_compiling" = "xno"; then
13165   EXEEXT_FOR_BUILD='$(EXEEXT)'
13166 else
13167   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build system executable suffix" >&5
13168 $as_echo_n "checking for build system executable suffix... " >&6; }
13169 if ${bfd_cv_build_exeext+:} false; then :
13170   $as_echo_n "(cached) " >&6
13171 else
13172   rm -f conftest*
13173      echo 'int main () { return 0; }' > conftest.c
13174      bfd_cv_build_exeext=
13175      ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
13176      for file in conftest.*; do
13177        case $file in
13178        *.c | *.o | *.obj | *.ilk | *.pdb) ;;
13179        *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
13180        esac
13181      done
13182      rm -f conftest*
13183      test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
13184 fi
13185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_build_exeext" >&5
13186 $as_echo "$bfd_cv_build_exeext" >&6; }
13187   EXEEXT_FOR_BUILD=""
13188   test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
13189 fi
13190
13191
13192 DEMANGLER_NAME=c++filt
13193 case "${host}" in
13194   *-*-go32* | *-*-msdos*)
13195     DEMANGLER_NAME=cxxfilt
13196 esac
13197
13198
13199 # The cast to long int works around a bug in the HP C Compiler
13200 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13201 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13202 # This bug is HP SR number 8606223364.
13203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
13204 $as_echo_n "checking size of long... " >&6; }
13205 if ${ac_cv_sizeof_long+:} false; then :
13206   $as_echo_n "(cached) " >&6
13207 else
13208   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
13209
13210 else
13211   if test "$ac_cv_type_long" = yes; then
13212      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13213 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13214 as_fn_error 77 "cannot compute sizeof (long)
13215 See \`config.log' for more details" "$LINENO" 5; }
13216    else
13217      ac_cv_sizeof_long=0
13218    fi
13219 fi
13220
13221 fi
13222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
13223 $as_echo "$ac_cv_sizeof_long" >&6; }
13224
13225
13226
13227 cat >>confdefs.h <<_ACEOF
13228 #define SIZEOF_LONG $ac_cv_sizeof_long
13229 _ACEOF
13230
13231
13232 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
13233 if test "x$ac_cv_type_long_long" = xyes; then :
13234
13235 cat >>confdefs.h <<_ACEOF
13236 #define HAVE_LONG_LONG 1
13237 _ACEOF
13238
13239 # The cast to long int works around a bug in the HP C Compiler
13240 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13241 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13242 # This bug is HP SR number 8606223364.
13243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
13244 $as_echo_n "checking size of long long... " >&6; }
13245 if ${ac_cv_sizeof_long_long+:} false; then :
13246   $as_echo_n "(cached) " >&6
13247 else
13248   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
13249
13250 else
13251   if test "$ac_cv_type_long_long" = yes; then
13252      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13253 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13254 as_fn_error 77 "cannot compute sizeof (long long)
13255 See \`config.log' for more details" "$LINENO" 5; }
13256    else
13257      ac_cv_sizeof_long_long=0
13258    fi
13259 fi
13260
13261 fi
13262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
13263 $as_echo "$ac_cv_sizeof_long_long" >&6; }
13264
13265
13266
13267 cat >>confdefs.h <<_ACEOF
13268 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
13269 _ACEOF
13270
13271
13272 fi
13273
13274
13275 for ac_header in string.h strings.h stdlib.h unistd.h fcntl.h sys/file.h limits.h locale.h sys/param.h wchar.h
13276 do :
13277   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13278 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13279 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13280   cat >>confdefs.h <<_ACEOF
13281 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13282 _ACEOF
13283
13284 fi
13285
13286 done
13287
13288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
13289 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
13290 if ${ac_cv_header_sys_wait_h+:} false; then :
13291   $as_echo_n "(cached) " >&6
13292 else
13293   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13294 /* end confdefs.h.  */
13295 #include <sys/types.h>
13296 #include <sys/wait.h>
13297 #ifndef WEXITSTATUS
13298 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
13299 #endif
13300 #ifndef WIFEXITED
13301 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
13302 #endif
13303
13304 int
13305 main ()
13306 {
13307   int s;
13308   wait (&s);
13309   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
13310   ;
13311   return 0;
13312 }
13313 _ACEOF
13314 if ac_fn_c_try_compile "$LINENO"; then :
13315   ac_cv_header_sys_wait_h=yes
13316 else
13317   ac_cv_header_sys_wait_h=no
13318 fi
13319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13320 fi
13321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
13322 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
13323 if test $ac_cv_header_sys_wait_h = yes; then
13324
13325 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
13326
13327 fi
13328
13329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
13330 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
13331 if ${gcc_cv_header_string+:} false; then :
13332   $as_echo_n "(cached) " >&6
13333 else
13334   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13335 /* end confdefs.h.  */
13336 #include <string.h>
13337 #include <strings.h>
13338 int
13339 main ()
13340 {
13341
13342   ;
13343   return 0;
13344 }
13345 _ACEOF
13346 if ac_fn_c_try_compile "$LINENO"; then :
13347   gcc_cv_header_string=yes
13348 else
13349   gcc_cv_header_string=no
13350 fi
13351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13352 fi
13353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
13354 $as_echo "$gcc_cv_header_string" >&6; }
13355 if test $gcc_cv_header_string = yes; then
13356
13357 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
13358
13359 fi
13360
13361 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13362 if test "x$ac_cv_type_size_t" = xyes; then :
13363
13364 else
13365
13366 cat >>confdefs.h <<_ACEOF
13367 #define size_t unsigned int
13368 _ACEOF
13369
13370 fi
13371
13372 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
13373 # for constant arguments.  Useless!
13374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
13375 $as_echo_n "checking for working alloca.h... " >&6; }
13376 if ${ac_cv_working_alloca_h+:} false; then :
13377   $as_echo_n "(cached) " >&6
13378 else
13379   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13380 /* end confdefs.h.  */
13381 #include <alloca.h>
13382 int
13383 main ()
13384 {
13385 char *p = (char *) alloca (2 * sizeof (int));
13386                           if (p) return 0;
13387   ;
13388   return 0;
13389 }
13390 _ACEOF
13391 if ac_fn_c_try_link "$LINENO"; then :
13392   ac_cv_working_alloca_h=yes
13393 else
13394   ac_cv_working_alloca_h=no
13395 fi
13396 rm -f core conftest.err conftest.$ac_objext \
13397     conftest$ac_exeext conftest.$ac_ext
13398 fi
13399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
13400 $as_echo "$ac_cv_working_alloca_h" >&6; }
13401 if test $ac_cv_working_alloca_h = yes; then
13402
13403 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
13404
13405 fi
13406
13407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
13408 $as_echo_n "checking for alloca... " >&6; }
13409 if ${ac_cv_func_alloca_works+:} false; then :
13410   $as_echo_n "(cached) " >&6
13411 else
13412   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13413 /* end confdefs.h.  */
13414 #ifdef __GNUC__
13415 # define alloca __builtin_alloca
13416 #else
13417 # ifdef _MSC_VER
13418 #  include <malloc.h>
13419 #  define alloca _alloca
13420 # else
13421 #  ifdef HAVE_ALLOCA_H
13422 #   include <alloca.h>
13423 #  else
13424 #   ifdef _AIX
13425  #pragma alloca
13426 #   else
13427 #    ifndef alloca /* predefined by HP cc +Olibcalls */
13428 void *alloca (size_t);
13429 #    endif
13430 #   endif
13431 #  endif
13432 # endif
13433 #endif
13434
13435 int
13436 main ()
13437 {
13438 char *p = (char *) alloca (1);
13439                                     if (p) return 0;
13440   ;
13441   return 0;
13442 }
13443 _ACEOF
13444 if ac_fn_c_try_link "$LINENO"; then :
13445   ac_cv_func_alloca_works=yes
13446 else
13447   ac_cv_func_alloca_works=no
13448 fi
13449 rm -f core conftest.err conftest.$ac_objext \
13450     conftest$ac_exeext conftest.$ac_ext
13451 fi
13452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
13453 $as_echo "$ac_cv_func_alloca_works" >&6; }
13454
13455 if test $ac_cv_func_alloca_works = yes; then
13456
13457 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
13458
13459 else
13460   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13461 # that cause trouble.  Some versions do not even contain alloca or
13462 # contain a buggy version.  If you still want to use their alloca,
13463 # use ar to extract alloca.o from them instead of compiling alloca.c.
13464
13465 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
13466
13467 $as_echo "#define C_ALLOCA 1" >>confdefs.h
13468
13469
13470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
13471 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
13472 if ${ac_cv_os_cray+:} false; then :
13473   $as_echo_n "(cached) " >&6
13474 else
13475   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13476 /* end confdefs.h.  */
13477 #if defined CRAY && ! defined CRAY2
13478 webecray
13479 #else
13480 wenotbecray
13481 #endif
13482
13483 _ACEOF
13484 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13485   $EGREP "webecray" >/dev/null 2>&1; then :
13486   ac_cv_os_cray=yes
13487 else
13488   ac_cv_os_cray=no
13489 fi
13490 rm -f conftest*
13491
13492 fi
13493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
13494 $as_echo "$ac_cv_os_cray" >&6; }
13495 if test $ac_cv_os_cray = yes; then
13496   for ac_func in _getb67 GETB67 getb67; do
13497     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13498 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13499 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13500
13501 cat >>confdefs.h <<_ACEOF
13502 #define CRAY_STACKSEG_END $ac_func
13503 _ACEOF
13504
13505     break
13506 fi
13507
13508   done
13509 fi
13510
13511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
13512 $as_echo_n "checking stack direction for C alloca... " >&6; }
13513 if ${ac_cv_c_stack_direction+:} false; then :
13514   $as_echo_n "(cached) " >&6
13515 else
13516   if test "$cross_compiling" = yes; then :
13517   ac_cv_c_stack_direction=0
13518 else
13519   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13520 /* end confdefs.h.  */
13521 $ac_includes_default
13522 int
13523 find_stack_direction (int *addr, int depth)
13524 {
13525   int dir, dummy = 0;
13526   if (! addr)
13527     addr = &dummy;
13528   *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
13529   dir = depth ? find_stack_direction (addr, depth - 1) : 0;
13530   return dir + dummy;
13531 }
13532
13533 int
13534 main (int argc, char **argv)
13535 {
13536   return find_stack_direction (0, argc + !argv + 20) < 0;
13537 }
13538 _ACEOF
13539 if ac_fn_c_try_run "$LINENO"; then :
13540   ac_cv_c_stack_direction=1
13541 else
13542   ac_cv_c_stack_direction=-1
13543 fi
13544 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13545   conftest.$ac_objext conftest.beam conftest.$ac_ext
13546 fi
13547
13548 fi
13549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
13550 $as_echo "$ac_cv_c_stack_direction" >&6; }
13551 cat >>confdefs.h <<_ACEOF
13552 #define STACK_DIRECTION $ac_cv_c_stack_direction
13553 _ACEOF
13554
13555
13556 fi
13557
13558
13559
13560
13561   for ac_header in $ac_header_list
13562 do :
13563   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13564 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
13565 "
13566 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13567   cat >>confdefs.h <<_ACEOF
13568 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13569 _ACEOF
13570
13571 fi
13572
13573 done
13574
13575
13576
13577
13578
13579
13580
13581
13582 for ac_func in getpagesize
13583 do :
13584   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
13585 if test "x$ac_cv_func_getpagesize" = xyes; then :
13586   cat >>confdefs.h <<_ACEOF
13587 #define HAVE_GETPAGESIZE 1
13588 _ACEOF
13589
13590 fi
13591 done
13592
13593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
13594 $as_echo_n "checking for working mmap... " >&6; }
13595 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
13596   $as_echo_n "(cached) " >&6
13597 else
13598   if test "$cross_compiling" = yes; then :
13599   ac_cv_func_mmap_fixed_mapped=no
13600 else
13601   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13602 /* end confdefs.h.  */
13603 $ac_includes_default
13604 /* malloc might have been renamed as rpl_malloc. */
13605 #undef malloc
13606
13607 /* Thanks to Mike Haertel and Jim Avera for this test.
13608    Here is a matrix of mmap possibilities:
13609         mmap private not fixed
13610         mmap private fixed at somewhere currently unmapped
13611         mmap private fixed at somewhere already mapped
13612         mmap shared not fixed
13613         mmap shared fixed at somewhere currently unmapped
13614         mmap shared fixed at somewhere already mapped
13615    For private mappings, we should verify that changes cannot be read()
13616    back from the file, nor mmap's back from the file at a different
13617    address.  (There have been systems where private was not correctly
13618    implemented like the infamous i386 svr4.0, and systems where the
13619    VM page cache was not coherent with the file system buffer cache
13620    like early versions of FreeBSD and possibly contemporary NetBSD.)
13621    For shared mappings, we should conversely verify that changes get
13622    propagated back to all the places they're supposed to be.
13623
13624    Grep wants private fixed already mapped.
13625    The main things grep needs to know about mmap are:
13626    * does it exist and is it safe to write into the mmap'd area
13627    * how to use it (BSD variants)  */
13628
13629 #include <fcntl.h>
13630 #include <sys/mman.h>
13631
13632 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
13633 char *malloc ();
13634 #endif
13635
13636 /* This mess was copied from the GNU getpagesize.h.  */
13637 #ifndef HAVE_GETPAGESIZE
13638 # ifdef _SC_PAGESIZE
13639 #  define getpagesize() sysconf(_SC_PAGESIZE)
13640 # else /* no _SC_PAGESIZE */
13641 #  ifdef HAVE_SYS_PARAM_H
13642 #   include <sys/param.h>
13643 #   ifdef EXEC_PAGESIZE
13644 #    define getpagesize() EXEC_PAGESIZE
13645 #   else /* no EXEC_PAGESIZE */
13646 #    ifdef NBPG
13647 #     define getpagesize() NBPG * CLSIZE
13648 #     ifndef CLSIZE
13649 #      define CLSIZE 1
13650 #     endif /* no CLSIZE */
13651 #    else /* no NBPG */
13652 #     ifdef NBPC
13653 #      define getpagesize() NBPC
13654 #     else /* no NBPC */
13655 #      ifdef PAGESIZE
13656 #       define getpagesize() PAGESIZE
13657 #      endif /* PAGESIZE */
13658 #     endif /* no NBPC */
13659 #    endif /* no NBPG */
13660 #   endif /* no EXEC_PAGESIZE */
13661 #  else /* no HAVE_SYS_PARAM_H */
13662 #   define getpagesize() 8192   /* punt totally */
13663 #  endif /* no HAVE_SYS_PARAM_H */
13664 # endif /* no _SC_PAGESIZE */
13665
13666 #endif /* no HAVE_GETPAGESIZE */
13667
13668 int
13669 main ()
13670 {
13671   char *data, *data2, *data3;
13672   const char *cdata2;
13673   int i, pagesize;
13674   int fd, fd2;
13675
13676   pagesize = getpagesize ();
13677
13678   /* First, make a file with some known garbage in it. */
13679   data = (char *) malloc (pagesize);
13680   if (!data)
13681     return 1;
13682   for (i = 0; i < pagesize; ++i)
13683     *(data + i) = rand ();
13684   umask (0);
13685   fd = creat ("conftest.mmap", 0600);
13686   if (fd < 0)
13687     return 2;
13688   if (write (fd, data, pagesize) != pagesize)
13689     return 3;
13690   close (fd);
13691
13692   /* Next, check that the tail of a page is zero-filled.  File must have
13693      non-zero length, otherwise we risk SIGBUS for entire page.  */
13694   fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
13695   if (fd2 < 0)
13696     return 4;
13697   cdata2 = "";
13698   if (write (fd2, cdata2, 1) != 1)
13699     return 5;
13700   data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
13701   if (data2 == MAP_FAILED)
13702     return 6;
13703   for (i = 0; i < pagesize; ++i)
13704     if (*(data2 + i))
13705       return 7;
13706   close (fd2);
13707   if (munmap (data2, pagesize))
13708     return 8;
13709
13710   /* Next, try to mmap the file at a fixed address which already has
13711      something else allocated at it.  If we can, also make sure that
13712      we see the same garbage.  */
13713   fd = open ("conftest.mmap", O_RDWR);
13714   if (fd < 0)
13715     return 9;
13716   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
13717                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
13718     return 10;
13719   for (i = 0; i < pagesize; ++i)
13720     if (*(data + i) != *(data2 + i))
13721       return 11;
13722
13723   /* Finally, make sure that changes to the mapped area do not
13724      percolate back to the file as seen by read().  (This is a bug on
13725      some variants of i386 svr4.0.)  */
13726   for (i = 0; i < pagesize; ++i)
13727     *(data2 + i) = *(data2 + i) + 1;
13728   data3 = (char *) malloc (pagesize);
13729   if (!data3)
13730     return 12;
13731   if (read (fd, data3, pagesize) != pagesize)
13732     return 13;
13733   for (i = 0; i < pagesize; ++i)
13734     if (*(data + i) != *(data3 + i))
13735       return 14;
13736   close (fd);
13737   free (data);
13738   free (data3);
13739   return 0;
13740 }
13741 _ACEOF
13742 if ac_fn_c_try_run "$LINENO"; then :
13743   ac_cv_func_mmap_fixed_mapped=yes
13744 else
13745   ac_cv_func_mmap_fixed_mapped=no
13746 fi
13747 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13748   conftest.$ac_objext conftest.beam conftest.$ac_ext
13749 fi
13750
13751 fi
13752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
13753 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
13754 if test $ac_cv_func_mmap_fixed_mapped = yes; then
13755
13756 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
13757
13758 fi
13759 rm -f conftest.mmap conftest.txt
13760
13761 for ac_func in sbrk utimes setmode getc_unlocked strcoll setlocale
13762 do :
13763   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13764 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13765 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13766   cat >>confdefs.h <<_ACEOF
13767 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13768 _ACEOF
13769
13770 fi
13771 done
13772
13773 ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
13774 if test "x$ac_cv_func_mkstemp" = xyes; then :
13775
13776 $as_echo "#define HAVE_MKSTEMP 1" >>confdefs.h
13777
13778 fi
13779
13780 ac_fn_c_check_func "$LINENO" "mkdtemp" "ac_cv_func_mkdtemp"
13781 if test "x$ac_cv_func_mkdtemp" = xyes; then :
13782
13783 $as_echo "#define HAVE_MKDTEMP 1" >>confdefs.h
13784
13785 fi
13786
13787   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
13788 $as_echo_n "checking for mbstate_t... " >&6; }
13789   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13790 /* end confdefs.h.  */
13791 #include <wchar.h>
13792 int
13793 main ()
13794 {
13795 mbstate_t teststate;
13796   ;
13797   return 0;
13798 }
13799 _ACEOF
13800 if ac_fn_c_try_compile "$LINENO"; then :
13801   have_mbstate_t=yes
13802 else
13803   have_mbstate_t=no
13804 fi
13805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13806   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mbstate_t" >&5
13807 $as_echo "$have_mbstate_t" >&6; }
13808   if test x"$have_mbstate_t" = xyes; then
13809
13810 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
13811
13812   fi
13813
13814 # Some systems have frexp only in -lm, not in -lc.
13815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing frexp" >&5
13816 $as_echo_n "checking for library containing frexp... " >&6; }
13817 if ${ac_cv_search_frexp+:} false; then :
13818   $as_echo_n "(cached) " >&6
13819 else
13820   ac_func_search_save_LIBS=$LIBS
13821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13822 /* end confdefs.h.  */
13823
13824 /* Override any GCC internal prototype to avoid an error.
13825    Use char because int might match the return type of a GCC
13826    builtin and then its argument prototype would still apply.  */
13827 #ifdef __cplusplus
13828 extern "C"
13829 #endif
13830 char frexp ();
13831 int
13832 main ()
13833 {
13834 return frexp ();
13835   ;
13836   return 0;
13837 }
13838 _ACEOF
13839 for ac_lib in '' m; do
13840   if test -z "$ac_lib"; then
13841     ac_res="none required"
13842   else
13843     ac_res=-l$ac_lib
13844     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13845   fi
13846   if ac_fn_c_try_link "$LINENO"; then :
13847   ac_cv_search_frexp=$ac_res
13848 fi
13849 rm -f core conftest.err conftest.$ac_objext \
13850     conftest$ac_exeext
13851   if ${ac_cv_search_frexp+:} false; then :
13852   break
13853 fi
13854 done
13855 if ${ac_cv_search_frexp+:} false; then :
13856
13857 else
13858   ac_cv_search_frexp=no
13859 fi
13860 rm conftest.$ac_ext
13861 LIBS=$ac_func_search_save_LIBS
13862 fi
13863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_frexp" >&5
13864 $as_echo "$ac_cv_search_frexp" >&6; }
13865 ac_res=$ac_cv_search_frexp
13866 if test "$ac_res" != no; then :
13867   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13868
13869 fi
13870
13871
13872
13873   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
13874 $as_echo_n "checking for LC_MESSAGES... " >&6; }
13875 if ${am_cv_val_LC_MESSAGES+:} false; then :
13876   $as_echo_n "(cached) " >&6
13877 else
13878   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13879 /* end confdefs.h.  */
13880 #include <locale.h>
13881 int
13882 main ()
13883 {
13884 return LC_MESSAGES
13885   ;
13886   return 0;
13887 }
13888 _ACEOF
13889 if ac_fn_c_try_link "$LINENO"; then :
13890   am_cv_val_LC_MESSAGES=yes
13891 else
13892   am_cv_val_LC_MESSAGES=no
13893 fi
13894 rm -f core conftest.err conftest.$ac_objext \
13895     conftest$ac_exeext conftest.$ac_ext
13896 fi
13897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
13898 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
13899   if test $am_cv_val_LC_MESSAGES = yes; then
13900
13901 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
13902
13903   fi
13904
13905
13906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for time_t in time.h" >&5
13907 $as_echo_n "checking for time_t in time.h... " >&6; }
13908 if ${bu_cv_decl_time_t_time_h+:} false; then :
13909   $as_echo_n "(cached) " >&6
13910 else
13911   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13912 /* end confdefs.h.  */
13913 #include <time.h>
13914 int
13915 main ()
13916 {
13917 time_t i;
13918   ;
13919   return 0;
13920 }
13921 _ACEOF
13922 if ac_fn_c_try_compile "$LINENO"; then :
13923   bu_cv_decl_time_t_time_h=yes
13924 else
13925   bu_cv_decl_time_t_time_h=no
13926 fi
13927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13928 fi
13929
13930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bu_cv_decl_time_t_time_h" >&5
13931 $as_echo "$bu_cv_decl_time_t_time_h" >&6; }
13932 if test $bu_cv_decl_time_t_time_h = yes; then
13933
13934 $as_echo "#define HAVE_TIME_T_IN_TIME_H 1" >>confdefs.h
13935
13936 fi
13937
13938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for time_t in sys/types.h" >&5
13939 $as_echo_n "checking for time_t in sys/types.h... " >&6; }
13940 if ${bu_cv_decl_time_t_types_h+:} false; then :
13941   $as_echo_n "(cached) " >&6
13942 else
13943   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13944 /* end confdefs.h.  */
13945 #include <sys/types.h>
13946 int
13947 main ()
13948 {
13949 time_t i;
13950   ;
13951   return 0;
13952 }
13953 _ACEOF
13954 if ac_fn_c_try_compile "$LINENO"; then :
13955   bu_cv_decl_time_t_types_h=yes
13956 else
13957   bu_cv_decl_time_t_types_h=no
13958 fi
13959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13960 fi
13961
13962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bu_cv_decl_time_t_types_h" >&5
13963 $as_echo "$bu_cv_decl_time_t_types_h" >&6; }
13964 if test $bu_cv_decl_time_t_types_h = yes; then
13965
13966 $as_echo "#define HAVE_TIME_T_IN_TYPES_H 1" >>confdefs.h
13967
13968 fi
13969
13970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a known getopt prototype in unistd.h" >&5
13971 $as_echo_n "checking for a known getopt prototype in unistd.h... " >&6; }
13972 if ${bu_cv_decl_getopt_unistd_h+:} false; then :
13973   $as_echo_n "(cached) " >&6
13974 else
13975   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13976 /* end confdefs.h.  */
13977 #include <unistd.h>
13978 int
13979 main ()
13980 {
13981 extern int getopt (int, char *const*, const char *);
13982   ;
13983   return 0;
13984 }
13985 _ACEOF
13986 if ac_fn_c_try_compile "$LINENO"; then :
13987   bu_cv_decl_getopt_unistd_h=yes
13988 else
13989   bu_cv_decl_getopt_unistd_h=no
13990 fi
13991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13992 fi
13993
13994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bu_cv_decl_getopt_unistd_h" >&5
13995 $as_echo "$bu_cv_decl_getopt_unistd_h" >&6; }
13996 if test $bu_cv_decl_getopt_unistd_h = yes; then
13997
13998 $as_echo "#define HAVE_DECL_GETOPT 1" >>confdefs.h
13999
14000 fi
14001
14002 # Under Next 3.2 <utime.h> apparently does not define struct utimbuf
14003 # by default.
14004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utime.h" >&5
14005 $as_echo_n "checking for utime.h... " >&6; }
14006 if ${bu_cv_header_utime_h+:} false; then :
14007   $as_echo_n "(cached) " >&6
14008 else
14009   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14010 /* end confdefs.h.  */
14011 #include <sys/types.h>
14012 #ifdef HAVE_TIME_H
14013 #include <time.h>
14014 #endif
14015 #include <utime.h>
14016 int
14017 main ()
14018 {
14019 struct utimbuf s;
14020   ;
14021   return 0;
14022 }
14023 _ACEOF
14024 if ac_fn_c_try_compile "$LINENO"; then :
14025   bu_cv_header_utime_h=yes
14026 else
14027   bu_cv_header_utime_h=no
14028 fi
14029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14030 fi
14031
14032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bu_cv_header_utime_h" >&5
14033 $as_echo "$bu_cv_header_utime_h" >&6; }
14034 if test $bu_cv_header_utime_h = yes; then
14035
14036 $as_echo "#define HAVE_GOOD_UTIME_H 1" >>confdefs.h
14037
14038 fi
14039
14040 ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
14041 if test "x$ac_cv_have_decl_asprintf" = xyes; then :
14042   ac_have_decl=1
14043 else
14044   ac_have_decl=0
14045 fi
14046
14047 cat >>confdefs.h <<_ACEOF
14048 #define HAVE_DECL_ASPRINTF $ac_have_decl
14049 _ACEOF
14050 ac_fn_c_check_decl "$LINENO" "environ" "ac_cv_have_decl_environ" "$ac_includes_default"
14051 if test "x$ac_cv_have_decl_environ" = xyes; then :
14052   ac_have_decl=1
14053 else
14054   ac_have_decl=0
14055 fi
14056
14057 cat >>confdefs.h <<_ACEOF
14058 #define HAVE_DECL_ENVIRON $ac_have_decl
14059 _ACEOF
14060 ac_fn_c_check_decl "$LINENO" "fprintf" "ac_cv_have_decl_fprintf" "$ac_includes_default"
14061 if test "x$ac_cv_have_decl_fprintf" = xyes; then :
14062   ac_have_decl=1
14063 else
14064   ac_have_decl=0
14065 fi
14066
14067 cat >>confdefs.h <<_ACEOF
14068 #define HAVE_DECL_FPRINTF $ac_have_decl
14069 _ACEOF
14070 ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
14071 if test "x$ac_cv_have_decl_getc_unlocked" = xyes; then :
14072   ac_have_decl=1
14073 else
14074   ac_have_decl=0
14075 fi
14076
14077 cat >>confdefs.h <<_ACEOF
14078 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
14079 _ACEOF
14080 ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
14081 if test "x$ac_cv_have_decl_getenv" = xyes; then :
14082   ac_have_decl=1
14083 else
14084   ac_have_decl=0
14085 fi
14086
14087 cat >>confdefs.h <<_ACEOF
14088 #define HAVE_DECL_GETENV $ac_have_decl
14089 _ACEOF
14090 ac_fn_c_check_decl "$LINENO" "sbrk" "ac_cv_have_decl_sbrk" "$ac_includes_default"
14091 if test "x$ac_cv_have_decl_sbrk" = xyes; then :
14092   ac_have_decl=1
14093 else
14094   ac_have_decl=0
14095 fi
14096
14097 cat >>confdefs.h <<_ACEOF
14098 #define HAVE_DECL_SBRK $ac_have_decl
14099 _ACEOF
14100 ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
14101 if test "x$ac_cv_have_decl_snprintf" = xyes; then :
14102   ac_have_decl=1
14103 else
14104   ac_have_decl=0
14105 fi
14106
14107 cat >>confdefs.h <<_ACEOF
14108 #define HAVE_DECL_SNPRINTF $ac_have_decl
14109 _ACEOF
14110 ac_fn_c_check_decl "$LINENO" "stpcpy" "ac_cv_have_decl_stpcpy" "$ac_includes_default"
14111 if test "x$ac_cv_have_decl_stpcpy" = xyes; then :
14112   ac_have_decl=1
14113 else
14114   ac_have_decl=0
14115 fi
14116
14117 cat >>confdefs.h <<_ACEOF
14118 #define HAVE_DECL_STPCPY $ac_have_decl
14119 _ACEOF
14120 ac_fn_c_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default"
14121 if test "x$ac_cv_have_decl_strnlen" = xyes; then :
14122   ac_have_decl=1
14123 else
14124   ac_have_decl=0
14125 fi
14126
14127 cat >>confdefs.h <<_ACEOF
14128 #define HAVE_DECL_STRNLEN $ac_have_decl
14129 _ACEOF
14130 ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
14131 if test "x$ac_cv_have_decl_strstr" = xyes; then :
14132   ac_have_decl=1
14133 else
14134   ac_have_decl=0
14135 fi
14136
14137 cat >>confdefs.h <<_ACEOF
14138 #define HAVE_DECL_STRSTR $ac_have_decl
14139 _ACEOF
14140 ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
14141 if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
14142   ac_have_decl=1
14143 else
14144   ac_have_decl=0
14145 fi
14146
14147 cat >>confdefs.h <<_ACEOF
14148 #define HAVE_DECL_VSNPRINTF $ac_have_decl
14149 _ACEOF
14150
14151
14152 # Link in zlib if we can.  This allows us to read compressed debug
14153 # sections.  This is used only by readelf.c (objdump uses bfd for
14154 # reading compressed sections).
14155
14156   # Use the system's zlib library.
14157   zlibdir="-L\$(top_builddir)/../zlib"
14158   zlibinc="-I\$(top_srcdir)/../zlib"
14159
14160 # Check whether --with-system-zlib was given.
14161 if test "${with_system_zlib+set}" = set; then :
14162   withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
14163     zlibdir=
14164     zlibinc=
14165   fi
14166
14167 fi
14168
14169
14170
14171
14172
14173
14174 case "${host}" in
14175 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
14176
14177 $as_echo "#define USE_BINARY_FOPEN 1" >>confdefs.h
14178  ;;
14179 esac
14180
14181 # target-specific stuff:
14182
14183 # Canonicalize the secondary target names.
14184 if test -n "$enable_targets"; then
14185     for targ in `echo $enable_targets | sed 's/,/ /g'`
14186     do
14187         result=`$ac_config_sub $targ 2>/dev/null`
14188         if test -n "$result"; then
14189             canon_targets="$canon_targets $result"
14190         else
14191             # Allow targets that config.sub doesn't recognize, like "all".
14192             canon_targets="$canon_targets $targ"
14193         fi
14194     done
14195 fi
14196
14197 ac_fn_c_check_header_mongrel "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default"
14198 if test "x$ac_cv_header_iconv_h" = xyes; then :
14199
14200 fi
14201
14202
14203
14204       if test "X$prefix" = "XNONE"; then
14205     acl_final_prefix="$ac_default_prefix"
14206   else
14207     acl_final_prefix="$prefix"
14208   fi
14209   if test "X$exec_prefix" = "XNONE"; then
14210     acl_final_exec_prefix='${prefix}'
14211   else
14212     acl_final_exec_prefix="$exec_prefix"
14213   fi
14214   acl_save_prefix="$prefix"
14215   prefix="$acl_final_prefix"
14216   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
14217   prefix="$acl_save_prefix"
14218
14219
14220 # Check whether --with-gnu-ld was given.
14221 if test "${with_gnu_ld+set}" = set; then :
14222   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
14223 else
14224   with_gnu_ld=no
14225 fi
14226
14227 # Prepare PATH_SEPARATOR.
14228 # The user is always right.
14229 if test "${PATH_SEPARATOR+set}" != set; then
14230   echo "#! /bin/sh" >conf$$.sh
14231   echo  "exit 0"   >>conf$$.sh
14232   chmod +x conf$$.sh
14233   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14234     PATH_SEPARATOR=';'
14235   else
14236     PATH_SEPARATOR=:
14237   fi
14238   rm -f conf$$.sh
14239 fi
14240 ac_prog=ld
14241 if test "$GCC" = yes; then
14242   # Check if gcc -print-prog-name=ld gives a path.
14243   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
14244 $as_echo_n "checking for ld used by GCC... " >&6; }
14245   case $host in
14246   *-*-mingw*)
14247     # gcc leaves a trailing carriage return which upsets mingw
14248     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14249   *)
14250     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14251   esac
14252   case $ac_prog in
14253     # Accept absolute paths.
14254     [\\/]* | [A-Za-z]:[\\/]*)
14255       re_direlt='/[^/][^/]*/\.\./'
14256       # Canonicalize the path of ld
14257       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
14258       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
14259         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
14260       done
14261       test -z "$LD" && LD="$ac_prog"
14262       ;;
14263   "")
14264     # If it fails, then pretend we aren't using GCC.
14265     ac_prog=ld
14266     ;;
14267   *)
14268     # If it is relative, then search for the first ld in PATH.
14269     with_gnu_ld=unknown
14270     ;;
14271   esac
14272 elif test "$with_gnu_ld" = yes; then
14273   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14274 $as_echo_n "checking for GNU ld... " >&6; }
14275 else
14276   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14277 $as_echo_n "checking for non-GNU ld... " >&6; }
14278 fi
14279 if ${acl_cv_path_LD+:} false; then :
14280   $as_echo_n "(cached) " >&6
14281 else
14282   if test -z "$LD"; then
14283   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
14284   for ac_dir in $PATH; do
14285     test -z "$ac_dir" && ac_dir=.
14286     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14287       acl_cv_path_LD="$ac_dir/$ac_prog"
14288       # Check to see if the program is GNU ld.  I'd rather use --version,
14289       # but apparently some GNU ld's only accept -v.
14290       # Break only if it was the GNU/non-GNU ld that we prefer.
14291       if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
14292         test "$with_gnu_ld" != no && break
14293       else
14294         test "$with_gnu_ld" != yes && break
14295       fi
14296     fi
14297   done
14298   IFS="$ac_save_ifs"
14299 else
14300   acl_cv_path_LD="$LD" # Let the user override the test with a path.
14301 fi
14302 fi
14303
14304 LD="$acl_cv_path_LD"
14305 if test -n "$LD"; then
14306   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14307 $as_echo "$LD" >&6; }
14308 else
14309   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14310 $as_echo "no" >&6; }
14311 fi
14312 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
14313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14314 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
14315 if ${acl_cv_prog_gnu_ld+:} false; then :
14316   $as_echo_n "(cached) " >&6
14317 else
14318   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
14319 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
14320   acl_cv_prog_gnu_ld=yes
14321 else
14322   acl_cv_prog_gnu_ld=no
14323 fi
14324 fi
14325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
14326 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
14327 with_gnu_ld=$acl_cv_prog_gnu_ld
14328
14329
14330
14331                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
14332 $as_echo_n "checking for shared library run path origin... " >&6; }
14333 if ${acl_cv_rpath+:} false; then :
14334   $as_echo_n "(cached) " >&6
14335 else
14336
14337     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
14338     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
14339     . ./conftest.sh
14340     rm -f ./conftest.sh
14341     acl_cv_rpath=done
14342
14343 fi
14344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
14345 $as_echo "$acl_cv_rpath" >&6; }
14346   wl="$acl_cv_wl"
14347   libext="$acl_cv_libext"
14348   shlibext="$acl_cv_shlibext"
14349   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
14350   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
14351   hardcode_direct="$acl_cv_hardcode_direct"
14352   hardcode_minus_L="$acl_cv_hardcode_minus_L"
14353     # Check whether --enable-rpath was given.
14354 if test "${enable_rpath+set}" = set; then :
14355   enableval=$enable_rpath; :
14356 else
14357   enable_rpath=yes
14358 fi
14359
14360
14361
14362
14363
14364
14365
14366
14367     use_additional=yes
14368
14369   acl_save_prefix="$prefix"
14370   prefix="$acl_final_prefix"
14371   acl_save_exec_prefix="$exec_prefix"
14372   exec_prefix="$acl_final_exec_prefix"
14373
14374     eval additional_includedir=\"$includedir\"
14375     eval additional_libdir=\"$libdir\"
14376
14377   exec_prefix="$acl_save_exec_prefix"
14378   prefix="$acl_save_prefix"
14379
14380
14381 # Check whether --with-libiconv-prefix was given.
14382 if test "${with_libiconv_prefix+set}" = set; then :
14383   withval=$with_libiconv_prefix;
14384     if test "X$withval" = "Xno"; then
14385       use_additional=no
14386     else
14387       if test "X$withval" = "X"; then
14388
14389   acl_save_prefix="$prefix"
14390   prefix="$acl_final_prefix"
14391   acl_save_exec_prefix="$exec_prefix"
14392   exec_prefix="$acl_final_exec_prefix"
14393
14394           eval additional_includedir=\"$includedir\"
14395           eval additional_libdir=\"$libdir\"
14396
14397   exec_prefix="$acl_save_exec_prefix"
14398   prefix="$acl_save_prefix"
14399
14400       else
14401         additional_includedir="$withval/include"
14402         additional_libdir="$withval/lib"
14403       fi
14404     fi
14405
14406 fi
14407
14408       LIBICONV=
14409   LTLIBICONV=
14410   INCICONV=
14411   rpathdirs=
14412   ltrpathdirs=
14413   names_already_handled=
14414   names_next_round='iconv '
14415   while test -n "$names_next_round"; do
14416     names_this_round="$names_next_round"
14417     names_next_round=
14418     for name in $names_this_round; do
14419       already_handled=
14420       for n in $names_already_handled; do
14421         if test "$n" = "$name"; then
14422           already_handled=yes
14423           break
14424         fi
14425       done
14426       if test -z "$already_handled"; then
14427         names_already_handled="$names_already_handled $name"
14428                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
14429         eval value=\"\$HAVE_LIB$uppername\"
14430         if test -n "$value"; then
14431           if test "$value" = yes; then
14432             eval value=\"\$LIB$uppername\"
14433             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
14434             eval value=\"\$LTLIB$uppername\"
14435             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
14436           else
14437                                     :
14438           fi
14439         else
14440                               found_dir=
14441           found_la=
14442           found_so=
14443           found_a=
14444           if test $use_additional = yes; then
14445             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
14446               found_dir="$additional_libdir"
14447               found_so="$additional_libdir/lib$name.$shlibext"
14448               if test -f "$additional_libdir/lib$name.la"; then
14449                 found_la="$additional_libdir/lib$name.la"
14450               fi
14451             else
14452               if test -f "$additional_libdir/lib$name.$libext"; then
14453                 found_dir="$additional_libdir"
14454                 found_a="$additional_libdir/lib$name.$libext"
14455                 if test -f "$additional_libdir/lib$name.la"; then
14456                   found_la="$additional_libdir/lib$name.la"
14457                 fi
14458               fi
14459             fi
14460           fi
14461           if test "X$found_dir" = "X"; then
14462             for x in $LDFLAGS $LTLIBICONV; do
14463
14464   acl_save_prefix="$prefix"
14465   prefix="$acl_final_prefix"
14466   acl_save_exec_prefix="$exec_prefix"
14467   exec_prefix="$acl_final_exec_prefix"
14468   eval x=\"$x\"
14469   exec_prefix="$acl_save_exec_prefix"
14470   prefix="$acl_save_prefix"
14471
14472               case "$x" in
14473                 -L*)
14474                   dir=`echo "X$x" | sed -e 's/^X-L//'`
14475                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
14476                     found_dir="$dir"
14477                     found_so="$dir/lib$name.$shlibext"
14478                     if test -f "$dir/lib$name.la"; then
14479                       found_la="$dir/lib$name.la"
14480                     fi
14481                   else
14482                     if test -f "$dir/lib$name.$libext"; then
14483                       found_dir="$dir"
14484                       found_a="$dir/lib$name.$libext"
14485                       if test -f "$dir/lib$name.la"; then
14486                         found_la="$dir/lib$name.la"
14487                       fi
14488                     fi
14489                   fi
14490                   ;;
14491               esac
14492               if test "X$found_dir" != "X"; then
14493                 break
14494               fi
14495             done
14496           fi
14497           if test "X$found_dir" != "X"; then
14498                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
14499             if test "X$found_so" != "X"; then
14500                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
14501                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14502               else
14503                                                                                 haveit=
14504                 for x in $ltrpathdirs; do
14505                   if test "X$x" = "X$found_dir"; then
14506                     haveit=yes
14507                     break
14508                   fi
14509                 done
14510                 if test -z "$haveit"; then
14511                   ltrpathdirs="$ltrpathdirs $found_dir"
14512                 fi
14513                                 if test "$hardcode_direct" = yes; then
14514                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14515                 else
14516                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
14517                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14518                                                             haveit=
14519                     for x in $rpathdirs; do
14520                       if test "X$x" = "X$found_dir"; then
14521                         haveit=yes
14522                         break
14523                       fi
14524                     done
14525                     if test -z "$haveit"; then
14526                       rpathdirs="$rpathdirs $found_dir"
14527                     fi
14528                   else
14529                                                                                 haveit=
14530                     for x in $LDFLAGS $LIBICONV; do
14531
14532   acl_save_prefix="$prefix"
14533   prefix="$acl_final_prefix"
14534   acl_save_exec_prefix="$exec_prefix"
14535   exec_prefix="$acl_final_exec_prefix"
14536   eval x=\"$x\"
14537   exec_prefix="$acl_save_exec_prefix"
14538   prefix="$acl_save_prefix"
14539
14540                       if test "X$x" = "X-L$found_dir"; then
14541                         haveit=yes
14542                         break
14543                       fi
14544                     done
14545                     if test -z "$haveit"; then
14546                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
14547                     fi
14548                     if test "$hardcode_minus_L" != no; then
14549                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14550                     else
14551                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
14552                     fi
14553                   fi
14554                 fi
14555               fi
14556             else
14557               if test "X$found_a" != "X"; then
14558                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
14559               else
14560                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
14561               fi
14562             fi
14563                         additional_includedir=
14564             case "$found_dir" in
14565               */lib | */lib/)
14566                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
14567                 additional_includedir="$basedir/include"
14568                 ;;
14569             esac
14570             if test "X$additional_includedir" != "X"; then
14571                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
14572                 haveit=
14573                 if test "X$additional_includedir" = "X/usr/local/include"; then
14574                   if test -n "$GCC"; then
14575                     case $host_os in
14576                       linux*) haveit=yes;;
14577                     esac
14578                   fi
14579                 fi
14580                 if test -z "$haveit"; then
14581                   for x in $CPPFLAGS $INCICONV; do
14582
14583   acl_save_prefix="$prefix"
14584   prefix="$acl_final_prefix"
14585   acl_save_exec_prefix="$exec_prefix"
14586   exec_prefix="$acl_final_exec_prefix"
14587   eval x=\"$x\"
14588   exec_prefix="$acl_save_exec_prefix"
14589   prefix="$acl_save_prefix"
14590
14591                     if test "X$x" = "X-I$additional_includedir"; then
14592                       haveit=yes
14593                       break
14594                     fi
14595                   done
14596                   if test -z "$haveit"; then
14597                     if test -d "$additional_includedir"; then
14598                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
14599                     fi
14600                   fi
14601                 fi
14602               fi
14603             fi
14604                         if test -n "$found_la"; then
14605                                                         save_libdir="$libdir"
14606               case "$found_la" in
14607                 */* | *\\*) . "$found_la" ;;
14608                 *) . "./$found_la" ;;
14609               esac
14610               libdir="$save_libdir"
14611                             for dep in $dependency_libs; do
14612                 case "$dep" in
14613                   -L*)
14614                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
14615                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
14616                       haveit=
14617                       if test "X$additional_libdir" = "X/usr/local/lib"; then
14618                         if test -n "$GCC"; then
14619                           case $host_os in
14620                             linux*) haveit=yes;;
14621                           esac
14622                         fi
14623                       fi
14624                       if test -z "$haveit"; then
14625                         haveit=
14626                         for x in $LDFLAGS $LIBICONV; do
14627
14628   acl_save_prefix="$prefix"
14629   prefix="$acl_final_prefix"
14630   acl_save_exec_prefix="$exec_prefix"
14631   exec_prefix="$acl_final_exec_prefix"
14632   eval x=\"$x\"
14633   exec_prefix="$acl_save_exec_prefix"
14634   prefix="$acl_save_prefix"
14635
14636                           if test "X$x" = "X-L$additional_libdir"; then
14637                             haveit=yes
14638                             break
14639                           fi
14640                         done
14641                         if test -z "$haveit"; then
14642                           if test -d "$additional_libdir"; then
14643                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
14644                           fi
14645                         fi
14646                         haveit=
14647                         for x in $LDFLAGS $LTLIBICONV; do
14648
14649   acl_save_prefix="$prefix"
14650   prefix="$acl_final_prefix"
14651   acl_save_exec_prefix="$exec_prefix"
14652   exec_prefix="$acl_final_exec_prefix"
14653   eval x=\"$x\"
14654   exec_prefix="$acl_save_exec_prefix"
14655   prefix="$acl_save_prefix"
14656
14657                           if test "X$x" = "X-L$additional_libdir"; then
14658                             haveit=yes
14659                             break
14660                           fi
14661                         done
14662                         if test -z "$haveit"; then
14663                           if test -d "$additional_libdir"; then
14664                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
14665                           fi
14666                         fi
14667                       fi
14668                     fi
14669                     ;;
14670                   -R*)
14671                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
14672                     if test "$enable_rpath" != no; then
14673                                                                   haveit=
14674                       for x in $rpathdirs; do
14675                         if test "X$x" = "X$dir"; then
14676                           haveit=yes
14677                           break
14678                         fi
14679                       done
14680                       if test -z "$haveit"; then
14681                         rpathdirs="$rpathdirs $dir"
14682                       fi
14683                                                                   haveit=
14684                       for x in $ltrpathdirs; do
14685                         if test "X$x" = "X$dir"; then
14686                           haveit=yes
14687                           break
14688                         fi
14689                       done
14690                       if test -z "$haveit"; then
14691                         ltrpathdirs="$ltrpathdirs $dir"
14692                       fi
14693                     fi
14694                     ;;
14695                   -l*)
14696                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14697                     ;;
14698                   *.la)
14699                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14700                     ;;
14701                   *)
14702                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
14703                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
14704                     ;;
14705                 esac
14706               done
14707             fi
14708           else
14709                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
14710             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
14711           fi
14712         fi
14713       fi
14714     done
14715   done
14716   if test "X$rpathdirs" != "X"; then
14717     if test -n "$hardcode_libdir_separator"; then
14718                         alldirs=
14719       for found_dir in $rpathdirs; do
14720         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
14721       done
14722             acl_save_libdir="$libdir"
14723       libdir="$alldirs"
14724       eval flag=\"$hardcode_libdir_flag_spec\"
14725       libdir="$acl_save_libdir"
14726       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
14727     else
14728             for found_dir in $rpathdirs; do
14729         acl_save_libdir="$libdir"
14730         libdir="$found_dir"
14731         eval flag=\"$hardcode_libdir_flag_spec\"
14732         libdir="$acl_save_libdir"
14733         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
14734       done
14735     fi
14736   fi
14737   if test "X$ltrpathdirs" != "X"; then
14738             for found_dir in $ltrpathdirs; do
14739       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
14740     done
14741   fi
14742
14743
14744
14745
14746
14747
14748
14749   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
14750 $as_echo_n "checking for iconv... " >&6; }
14751 if ${am_cv_func_iconv+:} false; then :
14752   $as_echo_n "(cached) " >&6
14753 else
14754
14755     am_cv_func_iconv="no, consider installing GNU libiconv"
14756     am_cv_lib_iconv=no
14757                     am_save_CPPFLAGS="$CPPFLAGS"
14758     CPPFLAGS="$CPPFLAGS $INCICONV"
14759     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14760 /* end confdefs.h.  */
14761 #include <stdlib.h>
14762 #include <iconv.h>
14763 int
14764 main ()
14765 {
14766 iconv_t cd = iconv_open("","");
14767        iconv(cd,NULL,NULL,NULL,NULL);
14768        iconv_close(cd);
14769   ;
14770   return 0;
14771 }
14772 _ACEOF
14773 if ac_fn_c_try_link "$LINENO"; then :
14774   am_cv_func_iconv=yes
14775 fi
14776 rm -f core conftest.err conftest.$ac_objext \
14777     conftest$ac_exeext conftest.$ac_ext
14778     CPPFLAGS="$am_save_CPPFLAGS"
14779
14780     if test "$am_cv_func_iconv" != yes && test -d ../libiconv; then
14781       for _libs in .libs _libs; do
14782         am_save_CPPFLAGS="$CPPFLAGS"
14783         am_save_LIBS="$LIBS"
14784         CPPFLAGS="$CPPFLAGS -I../libiconv/include"
14785         LIBS="$LIBS ../libiconv/lib/$_libs/libiconv.a"
14786         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14787 /* end confdefs.h.  */
14788 #include <stdlib.h>
14789 #include <iconv.h>
14790 int
14791 main ()
14792 {
14793 iconv_t cd = iconv_open("","");
14794            iconv(cd,NULL,NULL,NULL,NULL);
14795            iconv_close(cd);
14796   ;
14797   return 0;
14798 }
14799 _ACEOF
14800 if ac_fn_c_try_link "$LINENO"; then :
14801   INCICONV="-I../libiconv/include"
14802           LIBICONV='${top_builddir}'/../libiconv/lib/$_libs/libiconv.a
14803           LTLIBICONV='${top_builddir}'/../libiconv/lib/libiconv.la
14804           am_cv_lib_iconv=yes
14805           am_cv_func_iconv=yes
14806 fi
14807 rm -f core conftest.err conftest.$ac_objext \
14808     conftest$ac_exeext conftest.$ac_ext
14809         CPPFLAGS="$am_save_CPPFLAGS"
14810         LIBS="$am_save_LIBS"
14811         if test "$am_cv_func_iconv" = "yes"; then
14812           break
14813         fi
14814       done
14815     fi
14816
14817     if test "$am_cv_func_iconv" != yes; then
14818       am_save_CPPFLAGS="$CPPFLAGS"
14819       am_save_LIBS="$LIBS"
14820       CPPFLAGS="$CPPFLAGS $INCICONV"
14821       LIBS="$LIBS $LIBICONV"
14822       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14823 /* end confdefs.h.  */
14824 #include <stdlib.h>
14825 #include <iconv.h>
14826 int
14827 main ()
14828 {
14829 iconv_t cd = iconv_open("","");
14830          iconv(cd,NULL,NULL,NULL,NULL);
14831          iconv_close(cd);
14832   ;
14833   return 0;
14834 }
14835 _ACEOF
14836 if ac_fn_c_try_link "$LINENO"; then :
14837   am_cv_lib_iconv=yes
14838         am_cv_func_iconv=yes
14839 fi
14840 rm -f core conftest.err conftest.$ac_objext \
14841     conftest$ac_exeext conftest.$ac_ext
14842       CPPFLAGS="$am_save_CPPFLAGS"
14843       LIBS="$am_save_LIBS"
14844     fi
14845
14846 fi
14847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
14848 $as_echo "$am_cv_func_iconv" >&6; }
14849   if test "$am_cv_func_iconv" = yes; then
14850
14851 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
14852
14853   fi
14854   if test "$am_cv_lib_iconv" = yes; then
14855
14856   for element in $INCICONV; do
14857     haveit=
14858     for x in $CPPFLAGS; do
14859
14860   acl_save_prefix="$prefix"
14861   prefix="$acl_final_prefix"
14862   acl_save_exec_prefix="$exec_prefix"
14863   exec_prefix="$acl_final_exec_prefix"
14864   eval x=\"$x\"
14865   exec_prefix="$acl_save_exec_prefix"
14866   prefix="$acl_save_prefix"
14867
14868       if test "X$x" = "X$element"; then
14869         haveit=yes
14870         break
14871       fi
14872     done
14873     if test -z "$haveit"; then
14874       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
14875     fi
14876   done
14877
14878     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
14879 $as_echo_n "checking how to link with libiconv... " >&6; }
14880     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
14881 $as_echo "$LIBICONV" >&6; }
14882   else
14883     LIBICONV=
14884     LTLIBICONV=
14885   fi
14886
14887
14888
14889   if test "$am_cv_func_iconv" = yes; then
14890     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
14891 $as_echo_n "checking for iconv declaration... " >&6; }
14892     if ${am_cv_proto_iconv+:} false; then :
14893   $as_echo_n "(cached) " >&6
14894 else
14895
14896       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14897 /* end confdefs.h.  */
14898
14899 #include <stdlib.h>
14900 #include <iconv.h>
14901 extern
14902 #ifdef __cplusplus
14903 "C"
14904 #endif
14905 #if defined(__STDC__) || defined(__cplusplus)
14906 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
14907 #else
14908 size_t iconv();
14909 #endif
14910
14911 int
14912 main ()
14913 {
14914
14915   ;
14916   return 0;
14917 }
14918 _ACEOF
14919 if ac_fn_c_try_compile "$LINENO"; then :
14920   am_cv_proto_iconv_arg1=""
14921 else
14922   am_cv_proto_iconv_arg1="const"
14923 fi
14924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14925       am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
14926 fi
14927
14928     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
14929     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
14930          }$am_cv_proto_iconv" >&5
14931 $as_echo "${ac_t:-
14932          }$am_cv_proto_iconv" >&6; }
14933
14934 cat >>confdefs.h <<_ACEOF
14935 #define ICONV_CONST $am_cv_proto_iconv_arg1
14936 _ACEOF
14937
14938   fi
14939
14940
14941 all_targets=false
14942 BUILD_SRCONV=
14943 BUILD_DLLTOOL=
14944 DLLTOOL_DEFS=
14945 DLLTOOL_DEFAULT=
14946 BUILD_WINDRES=
14947 BUILD_WINDMC=
14948 BUILD_DLLWRAP=
14949 BUILD_MISC=
14950 BUILD_INSTALL_MISC=
14951 OBJDUMP_DEFS=
14952 OBJDUMP_PRIVATE_VECTORS=
14953 OBJDUMP_PRIVATE_OFILES=
14954 od_vectors=
14955
14956 for targ in $target $canon_targets
14957 do
14958     if test "x$targ" = "xall"; then
14959         all_targets=true
14960         BUILD_SRCONV='$(SRCONV_PROG)'
14961         BUILD_MISC="${BUILD_MISC} "'bin2c$(EXEEXT_FOR_BUILD)'
14962         BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
14963         BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
14964         BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
14965         if test -z "$DLLTOOL_DEFAULT"; then
14966           DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386"
14967         fi
14968         DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
14969         BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
14970         od_vectors="$od_vectors objdump_private_desc_xcoff"
14971     else
14972         case $targ in
14973         *-*-hms*) BUILD_SRCONV='$(SRCONV_PROG)' ;;
14974         esac
14975
14976         case $targ in
14977         arm-wince-pe* | arm-*-wince | arm*-*-cegcc* | arm*-*-mingw32ce*)
14978           BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
14979           if test -z "$DLLTOOL_DEFAULT"; then
14980             DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM_WINCE"
14981           fi
14982           DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM_WINCE -DDLLTOOL_ARM"
14983           BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
14984           BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
14985           ;;
14986         arm-*-pe*)
14987           BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
14988           if test -z "$DLLTOOL_DEFAULT"; then
14989             DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM"
14990           fi
14991           DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM"
14992           BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
14993           BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
14994           ;;
14995         x86_64-*-mingw* | x86_64-*-cygwin*)
14996           BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
14997           if test -z "$DLLTOOL_DEFAULT"; then
14998             DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MX86_64"
14999           fi
15000           DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MX86_64"
15001           BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
15002           BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
15003           BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
15004           ;;
15005         i[3-7]86-*-pe* | i[3-7]86-*-cygwin* | i[3-7]86-*-mingw32** | i[3-7]86-*-netbsdpe*)
15006           BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
15007           if test -z "$DLLTOOL_DEFAULT"; then
15008             DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386"
15009           fi
15010           DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
15011           BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
15012           BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
15013           BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
15014           ;;
15015         i[3-7]86-*-interix)
15016           BUILD_DLLTOOL='$(DLLTOOL_PROG)'
15017           if test -z "$DLLTOOL_DEFAULT"; then
15018             DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386"
15019           fi
15020           DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
15021           ;;
15022         powerpc*-aix5.[01])
15023           ;;
15024         powerpc*-aix[5-9].*)
15025           OBJDUMP_DEFS="-DAIX_WEAK_SUPPORT"
15026           ;;
15027         powerpc*-*-pe* | powerpc*-*-cygwin*)
15028           BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
15029           if test -z "$DLLTOOL_DEFAULT"; then
15030             DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_PPC"
15031           fi
15032           DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_PPC"
15033           BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
15034           BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
15035           ;;
15036         powerpc*-*-linux* | powerpc*-*-elf* | powerpc*-*-eabi*)
15037           case "$BUILD_INSTALL_MISC" in
15038             *embedspu*) ;;
15039             *) BUILD_INSTALL_MISC="${BUILD_INSTALL_MISC} embedspu"
15040           esac
15041           ;;
15042         sh*-*-pe)
15043           BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
15044           if test -z "$DLLTOOL_DEFAULT"; then
15045             DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_SH"
15046           fi
15047           DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_SH"
15048           BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
15049           BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
15050           ;;
15051         spu-*-*)
15052           BUILD_MISC="${BUILD_MISC} "'bin2c$(EXEEXT_FOR_BUILD)'
15053           ;;
15054         mips*-*-pe)
15055           BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
15056           if test -z "$DLLTOOL_DEFAULT"; then
15057             DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MIPS"
15058           fi
15059           DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MIPS"
15060           BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
15061           BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
15062           ;;
15063         mcore-*-pe)
15064           BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
15065           if test -z "$DLLTOOL_DEFAULT"; then
15066             DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MCORE"
15067           fi
15068           DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MCORE"
15069           BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
15070           BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
15071           ;;
15072         mcore-*-elf)
15073           BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
15074           if test -z "$DLLTOOL_DEFAULT"; then
15075             DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MCORE_ELF"
15076           fi
15077           DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MCORE_ELF"
15078           ;;
15079         mep-*)
15080           OBJDUMP_DEFS="-DSKIP_ZEROES=256 -DSKIP_ZEROES_AT_END=0"
15081           ;;
15082         esac
15083
15084         # Add objdump private vectors.
15085         case $targ in
15086         avr-*-*)
15087           od_vectors="$od_vectors objdump_private_desc_elf32_avr"
15088           ;;
15089         powerpc*-*-aix* | rs6000-*-aix*)
15090           od_vectors="$od_vectors objdump_private_desc_xcoff"
15091           ;;
15092         *-*-darwin*)
15093           od_vectors="$od_vectors objdump_private_desc_mach_o"
15094           ;;
15095         esac
15096     fi
15097 done
15098
15099 # Uniq objdump private vector, build objdump target ofiles.
15100 od_files=
15101 f=""
15102 for i in $od_vectors ; do
15103     case " $f " in
15104     *" $i "*) ;;
15105     *)
15106         f="$f $i"
15107         OBJDUMP_PRIVATE_VECTORS="$OBJDUMP_PRIVATE_VECTORS &$i,"
15108         case $i in
15109         objdump_private_desc_elf32_avr)
15110             od_files="$od_files od-elf32_avr" ;;
15111         objdump_private_desc_xcoff)
15112             od_files="$od_files od-xcoff" ;;
15113         objdump_private_desc_mach_o)
15114             od_files="$od_files od-macho" ;;
15115         *) as_fn_error $? "*** unknown private vector $i" "$LINENO" 5 ;;
15116         esac
15117         ;;
15118     esac
15119 done
15120
15121 # Uniq objdump target ofiles
15122 f=""
15123 for i in $od_files ; do
15124     case " $f " in
15125     *" $i "*) ;;
15126     *)
15127         f="$f $i"
15128         OBJDUMP_PRIVATE_OFILES="$OBJDUMP_PRIVATE_OFILES $i.$objext"
15129         ;;
15130     esac
15131 done
15132
15133 DLLTOOL_DEFS="$DLLTOOL_DEFS $DLLTOOL_DEFAULT"
15134
15135 if test "${with_windres+set}" = set; then
15136           BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
15137 fi
15138
15139 if test "${with_windmc+set}" = set; then
15140           BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
15141 fi
15142
15143 OBJDUMP_DEFS="${OBJDUMP_DEFS} -DOBJDUMP_PRIVATE_VECTORS=\"${OBJDUMP_PRIVATE_VECTORS}\""
15144
15145
15146
15147
15148
15149
15150
15151
15152
15153
15154
15155
15156
15157 cat >>confdefs.h <<_ACEOF
15158 #define TARGET "${target}"
15159 _ACEOF
15160
15161
15162 targ=$target
15163 . $srcdir/../bfd/config.bfd
15164 if test "x$targ_underscore" = "xyes"; then
15165     UNDERSCORE=1
15166 else
15167     UNDERSCORE=0
15168 fi
15169
15170 cat >>confdefs.h <<_ACEOF
15171 #define TARGET_PREPENDS_UNDERSCORE $UNDERSCORE
15172 _ACEOF
15173
15174
15175 # Emulation
15176 targ=$target
15177 . ${srcdir}/configure.tgt
15178 EMULATION=$targ_emul
15179 EMULATION_VECTOR=$targ_emul_vector
15180
15181
15182
15183
15184 # Required for html and install-html
15185
15186
15187
15188
15189
15190 ac_config_files="$ac_config_files Makefile doc/Makefile po/Makefile.in:po/Make-in"
15191
15192 cat >confcache <<\_ACEOF
15193 # This file is a shell script that caches the results of configure
15194 # tests run on this system so they can be shared between configure
15195 # scripts and configure runs, see configure's option --config-cache.
15196 # It is not useful on other systems.  If it contains results you don't
15197 # want to keep, you may remove or edit it.
15198 #
15199 # config.status only pays attention to the cache file if you give it
15200 # the --recheck option to rerun configure.
15201 #
15202 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15203 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15204 # following values.
15205
15206 _ACEOF
15207
15208 # The following way of writing the cache mishandles newlines in values,
15209 # but we know of no workaround that is simple, portable, and efficient.
15210 # So, we kill variables containing newlines.
15211 # Ultrix sh set writes to stderr and can't be redirected directly,
15212 # and sets the high bit in the cache file unless we assign to the vars.
15213 (
15214   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15215     eval ac_val=\$$ac_var
15216     case $ac_val in #(
15217     *${as_nl}*)
15218       case $ac_var in #(
15219       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15220 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15221       esac
15222       case $ac_var in #(
15223       _ | IFS | as_nl) ;; #(
15224       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15225       *) { eval $ac_var=; unset $ac_var;} ;;
15226       esac ;;
15227     esac
15228   done
15229
15230   (set) 2>&1 |
15231     case $as_nl`(ac_space=' '; set) 2>&1` in #(
15232     *${as_nl}ac_space=\ *)
15233       # `set' does not quote correctly, so add quotes: double-quote
15234       # substitution turns \\\\ into \\, and sed turns \\ into \.
15235       sed -n \
15236         "s/'/'\\\\''/g;
15237           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15238       ;; #(
15239     *)
15240       # `set' quotes correctly as required by POSIX, so do not add quotes.
15241       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15242       ;;
15243     esac |
15244     sort
15245 ) |
15246   sed '
15247      /^ac_cv_env_/b end
15248      t clear
15249      :clear
15250      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15251      t end
15252      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15253      :end' >>confcache
15254 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15255   if test -w "$cache_file"; then
15256     if test "x$cache_file" != "x/dev/null"; then
15257       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15258 $as_echo "$as_me: updating cache $cache_file" >&6;}
15259       if test ! -f "$cache_file" || test -h "$cache_file"; then
15260         cat confcache >"$cache_file"
15261       else
15262         case $cache_file in #(
15263         */* | ?:*)
15264           mv -f confcache "$cache_file"$$ &&
15265           mv -f "$cache_file"$$ "$cache_file" ;; #(
15266         *)
15267           mv -f confcache "$cache_file" ;;
15268         esac
15269       fi
15270     fi
15271   else
15272     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15273 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15274   fi
15275 fi
15276 rm -f confcache
15277
15278 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15279 # Let make expand exec_prefix.
15280 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15281
15282 DEFS=-DHAVE_CONFIG_H
15283
15284 ac_libobjs=
15285 ac_ltlibobjs=
15286 U=
15287 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15288   # 1. Remove the extension, and $U if already installed.
15289   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15290   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15291   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
15292   #    will be set to the directory where LIBOBJS objects are built.
15293   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15294   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15295 done
15296 LIBOBJS=$ac_libobjs
15297
15298 LTLIBOBJS=$ac_ltlibobjs
15299
15300
15301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15302 $as_echo_n "checking that generated files are newer than configure... " >&6; }
15303    if test -n "$am_sleep_pid"; then
15304      # Hide warnings about reused PIDs.
15305      wait $am_sleep_pid 2>/dev/null
15306    fi
15307    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15308 $as_echo "done" >&6; }
15309 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15310   as_fn_error $? "conditional \"AMDEP\" was never defined.
15311 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15312 fi
15313 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15314   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15315 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15316 fi
15317  if test -n "$EXEEXT"; then
15318   am__EXEEXT_TRUE=
15319   am__EXEEXT_FALSE='#'
15320 else
15321   am__EXEEXT_TRUE='#'
15322   am__EXEEXT_FALSE=
15323 fi
15324
15325 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15326   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
15327 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15328 fi
15329 if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
15330   as_fn_error $? "conditional \"GENINSRC_NEVER\" was never defined.
15331 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15332 fi
15333
15334 : "${CONFIG_STATUS=./config.status}"
15335 ac_write_fail=0
15336 ac_clean_files_save=$ac_clean_files
15337 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15338 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15339 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15340 as_write_fail=0
15341 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15342 #! $SHELL
15343 # Generated by $as_me.
15344 # Run this file to recreate the current configuration.
15345 # Compiler output produced by configure, useful for debugging
15346 # configure, is in config.log if it exists.
15347
15348 debug=false
15349 ac_cs_recheck=false
15350 ac_cs_silent=false
15351
15352 SHELL=\${CONFIG_SHELL-$SHELL}
15353 export SHELL
15354 _ASEOF
15355 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15356 ## -------------------- ##
15357 ## M4sh Initialization. ##
15358 ## -------------------- ##
15359
15360 # Be more Bourne compatible
15361 DUALCASE=1; export DUALCASE # for MKS sh
15362 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15363   emulate sh
15364   NULLCMD=:
15365   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15366   # is contrary to our usage.  Disable this feature.
15367   alias -g '${1+"$@"}'='"$@"'
15368   setopt NO_GLOB_SUBST
15369 else
15370   case `(set -o) 2>/dev/null` in #(
15371   *posix*) :
15372     set -o posix ;; #(
15373   *) :
15374      ;;
15375 esac
15376 fi
15377
15378
15379 as_nl='
15380 '
15381 export as_nl
15382 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15383 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15384 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15385 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15386 # Prefer a ksh shell builtin over an external printf program on Solaris,
15387 # but without wasting forks for bash or zsh.
15388 if test -z "$BASH_VERSION$ZSH_VERSION" \
15389     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15390   as_echo='print -r --'
15391   as_echo_n='print -rn --'
15392 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15393   as_echo='printf %s\n'
15394   as_echo_n='printf %s'
15395 else
15396   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15397     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15398     as_echo_n='/usr/ucb/echo -n'
15399   else
15400     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15401     as_echo_n_body='eval
15402       arg=$1;
15403       case $arg in #(
15404       *"$as_nl"*)
15405         expr "X$arg" : "X\\(.*\\)$as_nl";
15406         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15407       esac;
15408       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15409     '
15410     export as_echo_n_body
15411     as_echo_n='sh -c $as_echo_n_body as_echo'
15412   fi
15413   export as_echo_body
15414   as_echo='sh -c $as_echo_body as_echo'
15415 fi
15416
15417 # The user is always right.
15418 if test "${PATH_SEPARATOR+set}" != set; then
15419   PATH_SEPARATOR=:
15420   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15421     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15422       PATH_SEPARATOR=';'
15423   }
15424 fi
15425
15426
15427 # IFS
15428 # We need space, tab and new line, in precisely that order.  Quoting is
15429 # there to prevent editors from complaining about space-tab.
15430 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15431 # splitting by setting IFS to empty value.)
15432 IFS=" ""        $as_nl"
15433
15434 # Find who we are.  Look in the path if we contain no directory separator.
15435 as_myself=
15436 case $0 in #((
15437   *[\\/]* ) as_myself=$0 ;;
15438   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15439 for as_dir in $PATH
15440 do
15441   IFS=$as_save_IFS
15442   test -z "$as_dir" && as_dir=.
15443     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15444   done
15445 IFS=$as_save_IFS
15446
15447      ;;
15448 esac
15449 # We did not find ourselves, most probably we were run as `sh COMMAND'
15450 # in which case we are not to be found in the path.
15451 if test "x$as_myself" = x; then
15452   as_myself=$0
15453 fi
15454 if test ! -f "$as_myself"; then
15455   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15456   exit 1
15457 fi
15458
15459 # Unset variables that we do not need and which cause bugs (e.g. in
15460 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
15461 # suppresses any "Segmentation fault" message there.  '((' could
15462 # trigger a bug in pdksh 5.2.14.
15463 for as_var in BASH_ENV ENV MAIL MAILPATH
15464 do eval test x\${$as_var+set} = xset \
15465   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15466 done
15467 PS1='$ '
15468 PS2='> '
15469 PS4='+ '
15470
15471 # NLS nuisances.
15472 LC_ALL=C
15473 export LC_ALL
15474 LANGUAGE=C
15475 export LANGUAGE
15476
15477 # CDPATH.
15478 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15479
15480
15481 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15482 # ----------------------------------------
15483 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15484 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15485 # script with STATUS, using 1 if that was 0.
15486 as_fn_error ()
15487 {
15488   as_status=$1; test $as_status -eq 0 && as_status=1
15489   if test "$4"; then
15490     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15491     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15492   fi
15493   $as_echo "$as_me: error: $2" >&2
15494   as_fn_exit $as_status
15495 } # as_fn_error
15496
15497
15498 # as_fn_set_status STATUS
15499 # -----------------------
15500 # Set $? to STATUS, without forking.
15501 as_fn_set_status ()
15502 {
15503   return $1
15504 } # as_fn_set_status
15505
15506 # as_fn_exit STATUS
15507 # -----------------
15508 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15509 as_fn_exit ()
15510 {
15511   set +e
15512   as_fn_set_status $1
15513   exit $1
15514 } # as_fn_exit
15515
15516 # as_fn_unset VAR
15517 # ---------------
15518 # Portably unset VAR.
15519 as_fn_unset ()
15520 {
15521   { eval $1=; unset $1;}
15522 }
15523 as_unset=as_fn_unset
15524 # as_fn_append VAR VALUE
15525 # ----------------------
15526 # Append the text in VALUE to the end of the definition contained in VAR. Take
15527 # advantage of any shell optimizations that allow amortized linear growth over
15528 # repeated appends, instead of the typical quadratic growth present in naive
15529 # implementations.
15530 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15531   eval 'as_fn_append ()
15532   {
15533     eval $1+=\$2
15534   }'
15535 else
15536   as_fn_append ()
15537   {
15538     eval $1=\$$1\$2
15539   }
15540 fi # as_fn_append
15541
15542 # as_fn_arith ARG...
15543 # ------------------
15544 # Perform arithmetic evaluation on the ARGs, and store the result in the
15545 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15546 # must be portable across $(()) and expr.
15547 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15548   eval 'as_fn_arith ()
15549   {
15550     as_val=$(( $* ))
15551   }'
15552 else
15553   as_fn_arith ()
15554   {
15555     as_val=`expr "$@" || test $? -eq 1`
15556   }
15557 fi # as_fn_arith
15558
15559
15560 if expr a : '\(a\)' >/dev/null 2>&1 &&
15561    test "X`expr 00001 : '.*\(...\)'`" = X001; then
15562   as_expr=expr
15563 else
15564   as_expr=false
15565 fi
15566
15567 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15568   as_basename=basename
15569 else
15570   as_basename=false
15571 fi
15572
15573 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15574   as_dirname=dirname
15575 else
15576   as_dirname=false
15577 fi
15578
15579 as_me=`$as_basename -- "$0" ||
15580 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15581          X"$0" : 'X\(//\)$' \| \
15582          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15583 $as_echo X/"$0" |
15584     sed '/^.*\/\([^/][^/]*\)\/*$/{
15585             s//\1/
15586             q
15587           }
15588           /^X\/\(\/\/\)$/{
15589             s//\1/
15590             q
15591           }
15592           /^X\/\(\/\).*/{
15593             s//\1/
15594             q
15595           }
15596           s/.*/./; q'`
15597
15598 # Avoid depending upon Character Ranges.
15599 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15600 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15601 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15602 as_cr_digits='0123456789'
15603 as_cr_alnum=$as_cr_Letters$as_cr_digits
15604
15605 ECHO_C= ECHO_N= ECHO_T=
15606 case `echo -n x` in #(((((
15607 -n*)
15608   case `echo 'xy\c'` in
15609   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
15610   xy)  ECHO_C='\c';;
15611   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
15612        ECHO_T=' ';;
15613   esac;;
15614 *)
15615   ECHO_N='-n';;
15616 esac
15617
15618 rm -f conf$$ conf$$.exe conf$$.file
15619 if test -d conf$$.dir; then
15620   rm -f conf$$.dir/conf$$.file
15621 else
15622   rm -f conf$$.dir
15623   mkdir conf$$.dir 2>/dev/null
15624 fi
15625 if (echo >conf$$.file) 2>/dev/null; then
15626   if ln -s conf$$.file conf$$ 2>/dev/null; then
15627     as_ln_s='ln -s'
15628     # ... but there are two gotchas:
15629     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15630     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15631     # In both cases, we have to default to `cp -pR'.
15632     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15633       as_ln_s='cp -pR'
15634   elif ln conf$$.file conf$$ 2>/dev/null; then
15635     as_ln_s=ln
15636   else
15637     as_ln_s='cp -pR'
15638   fi
15639 else
15640   as_ln_s='cp -pR'
15641 fi
15642 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15643 rmdir conf$$.dir 2>/dev/null
15644
15645
15646 # as_fn_mkdir_p
15647 # -------------
15648 # Create "$as_dir" as a directory, including parents if necessary.
15649 as_fn_mkdir_p ()
15650 {
15651
15652   case $as_dir in #(
15653   -*) as_dir=./$as_dir;;
15654   esac
15655   test -d "$as_dir" || eval $as_mkdir_p || {
15656     as_dirs=
15657     while :; do
15658       case $as_dir in #(
15659       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15660       *) as_qdir=$as_dir;;
15661       esac
15662       as_dirs="'$as_qdir' $as_dirs"
15663       as_dir=`$as_dirname -- "$as_dir" ||
15664 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15665          X"$as_dir" : 'X\(//\)[^/]' \| \
15666          X"$as_dir" : 'X\(//\)$' \| \
15667          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15668 $as_echo X"$as_dir" |
15669     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15670             s//\1/
15671             q
15672           }
15673           /^X\(\/\/\)[^/].*/{
15674             s//\1/
15675             q
15676           }
15677           /^X\(\/\/\)$/{
15678             s//\1/
15679             q
15680           }
15681           /^X\(\/\).*/{
15682             s//\1/
15683             q
15684           }
15685           s/.*/./; q'`
15686       test -d "$as_dir" && break
15687     done
15688     test -z "$as_dirs" || eval "mkdir $as_dirs"
15689   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15690
15691
15692 } # as_fn_mkdir_p
15693 if mkdir -p . 2>/dev/null; then
15694   as_mkdir_p='mkdir -p "$as_dir"'
15695 else
15696   test -d ./-p && rmdir ./-p
15697   as_mkdir_p=false
15698 fi
15699
15700
15701 # as_fn_executable_p FILE
15702 # -----------------------
15703 # Test if FILE is an executable regular file.
15704 as_fn_executable_p ()
15705 {
15706   test -f "$1" && test -x "$1"
15707 } # as_fn_executable_p
15708 as_test_x='test -x'
15709 as_executable_p=as_fn_executable_p
15710
15711 # Sed expression to map a string onto a valid CPP name.
15712 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15713
15714 # Sed expression to map a string onto a valid variable name.
15715 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15716
15717
15718 exec 6>&1
15719 ## ----------------------------------- ##
15720 ## Main body of $CONFIG_STATUS script. ##
15721 ## ----------------------------------- ##
15722 _ASEOF
15723 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15724
15725 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15726 # Save the log message, to keep $0 and so on meaningful, and to
15727 # report actual input values of CONFIG_FILES etc. instead of their
15728 # values after options handling.
15729 ac_log="
15730 This file was extended by binutils $as_me 2.32.90, which was
15731 generated by GNU Autoconf 2.69.  Invocation command line was
15732
15733   CONFIG_FILES    = $CONFIG_FILES
15734   CONFIG_HEADERS  = $CONFIG_HEADERS
15735   CONFIG_LINKS    = $CONFIG_LINKS
15736   CONFIG_COMMANDS = $CONFIG_COMMANDS
15737   $ $0 $@
15738
15739 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15740 "
15741
15742 _ACEOF
15743
15744 case $ac_config_files in *"
15745 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15746 esac
15747
15748 case $ac_config_headers in *"
15749 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15750 esac
15751
15752
15753 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15754 # Files that config.status was made for.
15755 config_files="$ac_config_files"
15756 config_headers="$ac_config_headers"
15757 config_commands="$ac_config_commands"
15758
15759 _ACEOF
15760
15761 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15762 ac_cs_usage="\
15763 \`$as_me' instantiates files and other configuration actions
15764 from templates according to the current configuration.  Unless the files
15765 and actions are specified as TAGs, all are instantiated by default.
15766
15767 Usage: $0 [OPTION]... [TAG]...
15768
15769   -h, --help       print this help, then exit
15770   -V, --version    print version number and configuration settings, then exit
15771       --config     print configuration, then exit
15772   -q, --quiet, --silent
15773                    do not print progress messages
15774   -d, --debug      don't remove temporary files
15775       --recheck    update $as_me by reconfiguring in the same conditions
15776       --file=FILE[:TEMPLATE]
15777                    instantiate the configuration file FILE
15778       --header=FILE[:TEMPLATE]
15779                    instantiate the configuration header FILE
15780
15781 Configuration files:
15782 $config_files
15783
15784 Configuration headers:
15785 $config_headers
15786
15787 Configuration commands:
15788 $config_commands
15789
15790 Report bugs to the package provider."
15791
15792 _ACEOF
15793 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15794 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15795 ac_cs_version="\\
15796 binutils config.status 2.32.90
15797 configured by $0, generated by GNU Autoconf 2.69,
15798   with options \\"\$ac_cs_config\\"
15799
15800 Copyright (C) 2012 Free Software Foundation, Inc.
15801 This config.status script is free software; the Free Software Foundation
15802 gives unlimited permission to copy, distribute and modify it."
15803
15804 ac_pwd='$ac_pwd'
15805 srcdir='$srcdir'
15806 INSTALL='$INSTALL'
15807 MKDIR_P='$MKDIR_P'
15808 AWK='$AWK'
15809 test -n "\$AWK" || AWK=awk
15810 _ACEOF
15811
15812 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15813 # The default lists apply if the user does not specify any file.
15814 ac_need_defaults=:
15815 while test $# != 0
15816 do
15817   case $1 in
15818   --*=?*)
15819     ac_option=`expr "X$1" : 'X\([^=]*\)='`
15820     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15821     ac_shift=:
15822     ;;
15823   --*=)
15824     ac_option=`expr "X$1" : 'X\([^=]*\)='`
15825     ac_optarg=
15826     ac_shift=:
15827     ;;
15828   *)
15829     ac_option=$1
15830     ac_optarg=$2
15831     ac_shift=shift
15832     ;;
15833   esac
15834
15835   case $ac_option in
15836   # Handling of the options.
15837   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15838     ac_cs_recheck=: ;;
15839   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15840     $as_echo "$ac_cs_version"; exit ;;
15841   --config | --confi | --conf | --con | --co | --c )
15842     $as_echo "$ac_cs_config"; exit ;;
15843   --debug | --debu | --deb | --de | --d | -d )
15844     debug=: ;;
15845   --file | --fil | --fi | --f )
15846     $ac_shift
15847     case $ac_optarg in
15848     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15849     '') as_fn_error $? "missing file argument" ;;
15850     esac
15851     as_fn_append CONFIG_FILES " '$ac_optarg'"
15852     ac_need_defaults=false;;
15853   --header | --heade | --head | --hea )
15854     $ac_shift
15855     case $ac_optarg in
15856     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15857     esac
15858     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15859     ac_need_defaults=false;;
15860   --he | --h)
15861     # Conflict between --help and --header
15862     as_fn_error $? "ambiguous option: \`$1'
15863 Try \`$0 --help' for more information.";;
15864   --help | --hel | -h )
15865     $as_echo "$ac_cs_usage"; exit ;;
15866   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15867   | -silent | --silent | --silen | --sile | --sil | --si | --s)
15868     ac_cs_silent=: ;;
15869
15870   # This is an error.
15871   -*) as_fn_error $? "unrecognized option: \`$1'
15872 Try \`$0 --help' for more information." ;;
15873
15874   *) as_fn_append ac_config_targets " $1"
15875      ac_need_defaults=false ;;
15876
15877   esac
15878   shift
15879 done
15880
15881 ac_configure_extra_args=
15882
15883 if $ac_cs_silent; then
15884   exec 6>/dev/null
15885   ac_configure_extra_args="$ac_configure_extra_args --silent"
15886 fi
15887
15888 _ACEOF
15889 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15890 if \$ac_cs_recheck; then
15891   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15892   shift
15893   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15894   CONFIG_SHELL='$SHELL'
15895   export CONFIG_SHELL
15896   exec "\$@"
15897 fi
15898
15899 _ACEOF
15900 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15901 exec 5>>config.log
15902 {
15903   echo
15904   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15905 ## Running $as_me. ##
15906 _ASBOX
15907   $as_echo "$ac_log"
15908 } >&5
15909
15910 _ACEOF
15911 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15912 #
15913 # INIT-COMMANDS
15914 #
15915 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15916
15917
15918 # The HP-UX ksh and POSIX shell print the target directory to stdout
15919 # if CDPATH is set.
15920 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15921
15922 sed_quote_subst='$sed_quote_subst'
15923 double_quote_subst='$double_quote_subst'
15924 delay_variable_subst='$delay_variable_subst'
15925 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15926 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15927 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15928 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15929 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15930 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15931 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15932 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15933 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15934 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15935 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15936 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15937 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15938 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15939 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15940 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15941 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15942 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15943 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15944 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15945 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15946 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15947 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15948 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15949 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15950 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15951 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15952 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15953 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15954 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15955 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15956 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15957 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15958 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15959 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15960 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15961 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15962 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15963 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15964 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15965 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15966 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15967 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15968 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15969 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15970 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15971 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15972 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15973 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"`'
15974 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15975 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15976 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15977 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15978 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15979 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15980 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15981 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15982 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15983 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15984 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15985 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15986 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15987 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15988 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15989 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15990 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15991 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15992 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15993 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15994 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15995 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15996 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15997 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15998 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15999 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16000 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16001 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16002 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16003 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16004 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16005 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
16006 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16007 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16008 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16009 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16010 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16011 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16012 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16013 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16014 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
16015 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16016 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16017 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16018 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16019 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16020 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16021 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16022 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16023 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16024 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16025 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16026 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16027 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16028 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16029 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16030 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16031 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16032 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16033 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16034 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16035 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16036 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16037 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16038 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16039 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16040 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16041 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16042 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16043 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16044 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16045
16046 LTCC='$LTCC'
16047 LTCFLAGS='$LTCFLAGS'
16048 compiler='$compiler_DEFAULT'
16049
16050 # A function that is used when there is no print builtin or printf.
16051 func_fallback_echo ()
16052 {
16053   eval 'cat <<_LTECHO_EOF
16054 \$1
16055 _LTECHO_EOF'
16056 }
16057
16058 # Quote evaled strings.
16059 for var in SHELL \
16060 ECHO \
16061 SED \
16062 GREP \
16063 EGREP \
16064 FGREP \
16065 LD \
16066 NM \
16067 LN_S \
16068 lt_SP2NL \
16069 lt_NL2SP \
16070 reload_flag \
16071 OBJDUMP \
16072 deplibs_check_method \
16073 file_magic_cmd \
16074 AR \
16075 AR_FLAGS \
16076 STRIP \
16077 RANLIB \
16078 CC \
16079 CFLAGS \
16080 compiler \
16081 lt_cv_sys_global_symbol_pipe \
16082 lt_cv_sys_global_symbol_to_cdecl \
16083 lt_cv_sys_global_symbol_to_c_name_address \
16084 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16085 lt_prog_compiler_no_builtin_flag \
16086 lt_prog_compiler_wl \
16087 lt_prog_compiler_pic \
16088 lt_prog_compiler_static \
16089 lt_cv_prog_compiler_c_o \
16090 need_locks \
16091 DSYMUTIL \
16092 NMEDIT \
16093 LIPO \
16094 OTOOL \
16095 OTOOL64 \
16096 shrext_cmds \
16097 export_dynamic_flag_spec \
16098 whole_archive_flag_spec \
16099 compiler_needs_object \
16100 with_gnu_ld \
16101 allow_undefined_flag \
16102 no_undefined_flag \
16103 hardcode_libdir_flag_spec \
16104 hardcode_libdir_flag_spec_ld \
16105 hardcode_libdir_separator \
16106 fix_srcfile_path \
16107 exclude_expsyms \
16108 include_expsyms \
16109 file_list_spec \
16110 variables_saved_for_relink \
16111 libname_spec \
16112 library_names_spec \
16113 soname_spec \
16114 install_override_mode \
16115 finish_eval \
16116 old_striplib \
16117 striplib; do
16118     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16119     *[\\\\\\\`\\"\\\$]*)
16120       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16121       ;;
16122     *)
16123       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16124       ;;
16125     esac
16126 done
16127
16128 # Double-quote double-evaled strings.
16129 for var in reload_cmds \
16130 old_postinstall_cmds \
16131 old_postuninstall_cmds \
16132 old_archive_cmds \
16133 extract_expsyms_cmds \
16134 old_archive_from_new_cmds \
16135 old_archive_from_expsyms_cmds \
16136 archive_cmds \
16137 archive_expsym_cmds \
16138 module_cmds \
16139 module_expsym_cmds \
16140 export_symbols_cmds \
16141 prelink_cmds \
16142 postinstall_cmds \
16143 postuninstall_cmds \
16144 finish_cmds \
16145 sys_lib_search_path_spec \
16146 sys_lib_dlsearch_path_spec; do
16147     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16148     *[\\\\\\\`\\"\\\$]*)
16149       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16150       ;;
16151     *)
16152       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16153       ;;
16154     esac
16155 done
16156
16157 ac_aux_dir='$ac_aux_dir'
16158 xsi_shell='$xsi_shell'
16159 lt_shell_append='$lt_shell_append'
16160
16161 # See if we are running on zsh, and set the options which allow our
16162 # commands through without removal of \ escapes INIT.
16163 if test -n "\${ZSH_VERSION+set}" ; then
16164    setopt NO_GLOB_SUBST
16165 fi
16166
16167
16168     PACKAGE='$PACKAGE'
16169     VERSION='$VERSION'
16170     TIMESTAMP='$TIMESTAMP'
16171     RM='$RM'
16172     ofile='$ofile'
16173
16174
16175
16176 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
16177     # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
16178     # from automake.
16179     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
16180     # Capture the value of LINGUAS because we need it to compute CATALOGS.
16181     LINGUAS="${LINGUAS-%UNSET%}"
16182
16183
16184 _ACEOF
16185
16186 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16187
16188 # Handling of arguments.
16189 for ac_config_target in $ac_config_targets
16190 do
16191   case $ac_config_target in
16192     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16193     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16194     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
16195     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
16196     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16197     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
16198     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
16199
16200   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16201   esac
16202 done
16203
16204
16205 # If the user did not use the arguments to specify the items to instantiate,
16206 # then the envvar interface is used.  Set only those that are not.
16207 # We use the long form for the default assignment because of an extremely
16208 # bizarre bug on SunOS 4.1.3.
16209 if $ac_need_defaults; then
16210   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16211   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16212   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16213 fi
16214
16215 # Have a temporary directory for convenience.  Make it in the build tree
16216 # simply because there is no reason against having it here, and in addition,
16217 # creating and moving files from /tmp can sometimes cause problems.
16218 # Hook for its removal unless debugging.
16219 # Note that there is a small window in which the directory will not be cleaned:
16220 # after its creation but before its name has been assigned to `$tmp'.
16221 $debug ||
16222 {
16223   tmp= ac_tmp=
16224   trap 'exit_status=$?
16225   : "${ac_tmp:=$tmp}"
16226   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16227 ' 0
16228   trap 'as_fn_exit 1' 1 2 13 15
16229 }
16230 # Create a (secure) tmp directory for tmp files.
16231
16232 {
16233   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16234   test -d "$tmp"
16235 }  ||
16236 {
16237   tmp=./conf$$-$RANDOM
16238   (umask 077 && mkdir "$tmp")
16239 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16240 ac_tmp=$tmp
16241
16242 # Set up the scripts for CONFIG_FILES section.
16243 # No need to generate them if there are no CONFIG_FILES.
16244 # This happens for instance with `./config.status config.h'.
16245 if test -n "$CONFIG_FILES"; then
16246
16247
16248 ac_cr=`echo X | tr X '\015'`
16249 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16250 # But we know of no other shell where ac_cr would be empty at this
16251 # point, so we can use a bashism as a fallback.
16252 if test "x$ac_cr" = x; then
16253   eval ac_cr=\$\'\\r\'
16254 fi
16255 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16256 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16257   ac_cs_awk_cr='\\r'
16258 else
16259   ac_cs_awk_cr=$ac_cr
16260 fi
16261
16262 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16263 _ACEOF
16264
16265
16266 {
16267   echo "cat >conf$$subs.awk <<_ACEOF" &&
16268   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16269   echo "_ACEOF"
16270 } >conf$$subs.sh ||
16271   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16272 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16273 ac_delim='%!_!# '
16274 for ac_last_try in false false false false false :; do
16275   . ./conf$$subs.sh ||
16276     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16277
16278   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16279   if test $ac_delim_n = $ac_delim_num; then
16280     break
16281   elif $ac_last_try; then
16282     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16283   else
16284     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16285   fi
16286 done
16287 rm -f conf$$subs.sh
16288
16289 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16290 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16291 _ACEOF
16292 sed -n '
16293 h
16294 s/^/S["/; s/!.*/"]=/
16295 p
16296 g
16297 s/^[^!]*!//
16298 :repl
16299 t repl
16300 s/'"$ac_delim"'$//
16301 t delim
16302 :nl
16303 h
16304 s/\(.\{148\}\)..*/\1/
16305 t more1
16306 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16307 p
16308 n
16309 b repl
16310 :more1
16311 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16312 p
16313 g
16314 s/.\{148\}//
16315 t nl
16316 :delim
16317 h
16318 s/\(.\{148\}\)..*/\1/
16319 t more2
16320 s/["\\]/\\&/g; s/^/"/; s/$/"/
16321 p
16322 b
16323 :more2
16324 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16325 p
16326 g
16327 s/.\{148\}//
16328 t delim
16329 ' <conf$$subs.awk | sed '
16330 /^[^""]/{
16331   N
16332   s/\n//
16333 }
16334 ' >>$CONFIG_STATUS || ac_write_fail=1
16335 rm -f conf$$subs.awk
16336 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16337 _ACAWK
16338 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16339   for (key in S) S_is_set[key] = 1
16340   FS = "\a"
16341
16342 }
16343 {
16344   line = $ 0
16345   nfields = split(line, field, "@")
16346   substed = 0
16347   len = length(field[1])
16348   for (i = 2; i < nfields; i++) {
16349     key = field[i]
16350     keylen = length(key)
16351     if (S_is_set[key]) {
16352       value = S[key]
16353       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16354       len += length(value) + length(field[++i])
16355       substed = 1
16356     } else
16357       len += 1 + keylen
16358   }
16359
16360   print line
16361 }
16362
16363 _ACAWK
16364 _ACEOF
16365 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16366 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16367   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16368 else
16369   cat
16370 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16371   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16372 _ACEOF
16373
16374 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16375 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16376 # trailing colons and then remove the whole line if VPATH becomes empty
16377 # (actually we leave an empty line to preserve line numbers).
16378 if test "x$srcdir" = x.; then
16379   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
16380 h
16381 s///
16382 s/^/:/
16383 s/[      ]*$/:/
16384 s/:\$(srcdir):/:/g
16385 s/:\${srcdir}:/:/g
16386 s/:@srcdir@:/:/g
16387 s/^:*//
16388 s/:*$//
16389 x
16390 s/\(=[   ]*\).*/\1/
16391 G
16392 s/\n//
16393 s/^[^=]*=[       ]*$//
16394 }'
16395 fi
16396
16397 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16398 fi # test -n "$CONFIG_FILES"
16399
16400 # Set up the scripts for CONFIG_HEADERS section.
16401 # No need to generate them if there are no CONFIG_HEADERS.
16402 # This happens for instance with `./config.status Makefile'.
16403 if test -n "$CONFIG_HEADERS"; then
16404 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16405 BEGIN {
16406 _ACEOF
16407
16408 # Transform confdefs.h into an awk script `defines.awk', embedded as
16409 # here-document in config.status, that substitutes the proper values into
16410 # config.h.in to produce config.h.
16411
16412 # Create a delimiter string that does not exist in confdefs.h, to ease
16413 # handling of long lines.
16414 ac_delim='%!_!# '
16415 for ac_last_try in false false :; do
16416   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16417   if test -z "$ac_tt"; then
16418     break
16419   elif $ac_last_try; then
16420     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16421   else
16422     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16423   fi
16424 done
16425
16426 # For the awk script, D is an array of macro values keyed by name,
16427 # likewise P contains macro parameters if any.  Preserve backslash
16428 # newline sequences.
16429
16430 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16431 sed -n '
16432 s/.\{148\}/&'"$ac_delim"'/g
16433 t rset
16434 :rset
16435 s/^[     ]*#[    ]*define[       ][      ]*/ /
16436 t def
16437 d
16438 :def
16439 s/\\$//
16440 t bsnl
16441 s/["\\]/\\&/g
16442 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16443 D["\1"]=" \3"/p
16444 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
16445 d
16446 :bsnl
16447 s/["\\]/\\&/g
16448 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16449 D["\1"]=" \3\\\\\\n"\\/p
16450 t cont
16451 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16452 t cont
16453 d
16454 :cont
16455 n
16456 s/.\{148\}/&'"$ac_delim"'/g
16457 t clear
16458 :clear
16459 s/\\$//
16460 t bsnlc
16461 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16462 d
16463 :bsnlc
16464 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16465 b cont
16466 ' <confdefs.h | sed '
16467 s/'"$ac_delim"'/"\\\
16468 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16469
16470 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16471   for (key in D) D_is_set[key] = 1
16472   FS = "\a"
16473 }
16474 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16475   line = \$ 0
16476   split(line, arg, " ")
16477   if (arg[1] == "#") {
16478     defundef = arg[2]
16479     mac1 = arg[3]
16480   } else {
16481     defundef = substr(arg[1], 2)
16482     mac1 = arg[2]
16483   }
16484   split(mac1, mac2, "(") #)
16485   macro = mac2[1]
16486   prefix = substr(line, 1, index(line, defundef) - 1)
16487   if (D_is_set[macro]) {
16488     # Preserve the white space surrounding the "#".
16489     print prefix "define", macro P[macro] D[macro]
16490     next
16491   } else {
16492     # Replace #undef with comments.  This is necessary, for example,
16493     # in the case of _POSIX_SOURCE, which is predefined and required
16494     # on some systems where configure will not decide to define it.
16495     if (defundef == "undef") {
16496       print "/*", prefix defundef, macro, "*/"
16497       next
16498     }
16499   }
16500 }
16501 { print }
16502 _ACAWK
16503 _ACEOF
16504 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16505   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16506 fi # test -n "$CONFIG_HEADERS"
16507
16508
16509 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
16510 shift
16511 for ac_tag
16512 do
16513   case $ac_tag in
16514   :[FHLC]) ac_mode=$ac_tag; continue;;
16515   esac
16516   case $ac_mode$ac_tag in
16517   :[FHL]*:*);;
16518   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16519   :[FH]-) ac_tag=-:-;;
16520   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16521   esac
16522   ac_save_IFS=$IFS
16523   IFS=:
16524   set x $ac_tag
16525   IFS=$ac_save_IFS
16526   shift
16527   ac_file=$1
16528   shift
16529
16530   case $ac_mode in
16531   :L) ac_source=$1;;
16532   :[FH])
16533     ac_file_inputs=
16534     for ac_f
16535     do
16536       case $ac_f in
16537       -) ac_f="$ac_tmp/stdin";;
16538       *) # Look for the file first in the build tree, then in the source tree
16539          # (if the path is not absolute).  The absolute path cannot be DOS-style,
16540          # because $ac_f cannot contain `:'.
16541          test -f "$ac_f" ||
16542            case $ac_f in
16543            [\\/$]*) false;;
16544            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16545            esac ||
16546            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16547       esac
16548       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16549       as_fn_append ac_file_inputs " '$ac_f'"
16550     done
16551
16552     # Let's still pretend it is `configure' which instantiates (i.e., don't
16553     # use $as_me), people would be surprised to read:
16554     #    /* config.h.  Generated by config.status.  */
16555     configure_input='Generated from '`
16556           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16557         `' by configure.'
16558     if test x"$ac_file" != x-; then
16559       configure_input="$ac_file.  $configure_input"
16560       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16561 $as_echo "$as_me: creating $ac_file" >&6;}
16562     fi
16563     # Neutralize special characters interpreted by sed in replacement strings.
16564     case $configure_input in #(
16565     *\&* | *\|* | *\\* )
16566        ac_sed_conf_input=`$as_echo "$configure_input" |
16567        sed 's/[\\\\&|]/\\\\&/g'`;; #(
16568     *) ac_sed_conf_input=$configure_input;;
16569     esac
16570
16571     case $ac_tag in
16572     *:-:* | *:-) cat >"$ac_tmp/stdin" \
16573       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16574     esac
16575     ;;
16576   esac
16577
16578   ac_dir=`$as_dirname -- "$ac_file" ||
16579 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16580          X"$ac_file" : 'X\(//\)[^/]' \| \
16581          X"$ac_file" : 'X\(//\)$' \| \
16582          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16583 $as_echo X"$ac_file" |
16584     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16585             s//\1/
16586             q
16587           }
16588           /^X\(\/\/\)[^/].*/{
16589             s//\1/
16590             q
16591           }
16592           /^X\(\/\/\)$/{
16593             s//\1/
16594             q
16595           }
16596           /^X\(\/\).*/{
16597             s//\1/
16598             q
16599           }
16600           s/.*/./; q'`
16601   as_dir="$ac_dir"; as_fn_mkdir_p
16602   ac_builddir=.
16603
16604 case "$ac_dir" in
16605 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16606 *)
16607   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16608   # A ".." for each directory in $ac_dir_suffix.
16609   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16610   case $ac_top_builddir_sub in
16611   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16612   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16613   esac ;;
16614 esac
16615 ac_abs_top_builddir=$ac_pwd
16616 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16617 # for backward compatibility:
16618 ac_top_builddir=$ac_top_build_prefix
16619
16620 case $srcdir in
16621   .)  # We are building in place.
16622     ac_srcdir=.
16623     ac_top_srcdir=$ac_top_builddir_sub
16624     ac_abs_top_srcdir=$ac_pwd ;;
16625   [\\/]* | ?:[\\/]* )  # Absolute name.
16626     ac_srcdir=$srcdir$ac_dir_suffix;
16627     ac_top_srcdir=$srcdir
16628     ac_abs_top_srcdir=$srcdir ;;
16629   *) # Relative name.
16630     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16631     ac_top_srcdir=$ac_top_build_prefix$srcdir
16632     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16633 esac
16634 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16635
16636
16637   case $ac_mode in
16638   :F)
16639   #
16640   # CONFIG_FILE
16641   #
16642
16643   case $INSTALL in
16644   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16645   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16646   esac
16647   ac_MKDIR_P=$MKDIR_P
16648   case $MKDIR_P in
16649   [\\/$]* | ?:[\\/]* ) ;;
16650   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16651   esac
16652 _ACEOF
16653
16654 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16655 # If the template does not know about datarootdir, expand it.
16656 # FIXME: This hack should be removed a few years after 2.60.
16657 ac_datarootdir_hack=; ac_datarootdir_seen=
16658 ac_sed_dataroot='
16659 /datarootdir/ {
16660   p
16661   q
16662 }
16663 /@datadir@/p
16664 /@docdir@/p
16665 /@infodir@/p
16666 /@localedir@/p
16667 /@mandir@/p'
16668 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16669 *datarootdir*) ac_datarootdir_seen=yes;;
16670 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16671   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16672 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16673 _ACEOF
16674 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16675   ac_datarootdir_hack='
16676   s&@datadir@&$datadir&g
16677   s&@docdir@&$docdir&g
16678   s&@infodir@&$infodir&g
16679   s&@localedir@&$localedir&g
16680   s&@mandir@&$mandir&g
16681   s&\\\${datarootdir}&$datarootdir&g' ;;
16682 esac
16683 _ACEOF
16684
16685 # Neutralize VPATH when `$srcdir' = `.'.
16686 # Shell code in configure.ac might set extrasub.
16687 # FIXME: do we really want to maintain this feature?
16688 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16689 ac_sed_extra="$ac_vpsub
16690 $extrasub
16691 _ACEOF
16692 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16693 :t
16694 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16695 s|@configure_input@|$ac_sed_conf_input|;t t
16696 s&@top_builddir@&$ac_top_builddir_sub&;t t
16697 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16698 s&@srcdir@&$ac_srcdir&;t t
16699 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16700 s&@top_srcdir@&$ac_top_srcdir&;t t
16701 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16702 s&@builddir@&$ac_builddir&;t t
16703 s&@abs_builddir@&$ac_abs_builddir&;t t
16704 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16705 s&@INSTALL@&$ac_INSTALL&;t t
16706 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16707 $ac_datarootdir_hack
16708 "
16709 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16710   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16711
16712 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16713   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16714   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
16715       "$ac_tmp/out"`; test -z "$ac_out"; } &&
16716   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16717 which seems to be undefined.  Please make sure it is defined" >&5
16718 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16719 which seems to be undefined.  Please make sure it is defined" >&2;}
16720
16721   rm -f "$ac_tmp/stdin"
16722   case $ac_file in
16723   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16724   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16725   esac \
16726   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16727  ;;
16728   :H)
16729   #
16730   # CONFIG_HEADER
16731   #
16732   if test x"$ac_file" != x-; then
16733     {
16734       $as_echo "/* $configure_input  */" \
16735       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16736     } >"$ac_tmp/config.h" \
16737       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16738     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16739       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16740 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16741     else
16742       rm -f "$ac_file"
16743       mv "$ac_tmp/config.h" "$ac_file" \
16744         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16745     fi
16746   else
16747     $as_echo "/* $configure_input  */" \
16748       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16749       || as_fn_error $? "could not create -" "$LINENO" 5
16750   fi
16751 # Compute "$ac_file"'s index in $config_headers.
16752 _am_arg="$ac_file"
16753 _am_stamp_count=1
16754 for _am_header in $config_headers :; do
16755   case $_am_header in
16756     $_am_arg | $_am_arg:* )
16757       break ;;
16758     * )
16759       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16760   esac
16761 done
16762 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16763 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16764          X"$_am_arg" : 'X\(//\)[^/]' \| \
16765          X"$_am_arg" : 'X\(//\)$' \| \
16766          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16767 $as_echo X"$_am_arg" |
16768     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16769             s//\1/
16770             q
16771           }
16772           /^X\(\/\/\)[^/].*/{
16773             s//\1/
16774             q
16775           }
16776           /^X\(\/\/\)$/{
16777             s//\1/
16778             q
16779           }
16780           /^X\(\/\).*/{
16781             s//\1/
16782             q
16783           }
16784           s/.*/./; q'`/stamp-h$_am_stamp_count
16785  ;;
16786
16787   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16788 $as_echo "$as_me: executing $ac_file commands" >&6;}
16789  ;;
16790   esac
16791
16792
16793   case $ac_file$ac_mode in
16794     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16795   # Older Autoconf quotes --file arguments for eval, but not when files
16796   # are listed without --file.  Let's play safe and only enable the eval
16797   # if we detect the quoting.
16798   case $CONFIG_FILES in
16799   *\'*) eval set x "$CONFIG_FILES" ;;
16800   *)   set x $CONFIG_FILES ;;
16801   esac
16802   shift
16803   for mf
16804   do
16805     # Strip MF so we end up with the name of the file.
16806     mf=`echo "$mf" | sed -e 's/:.*$//'`
16807     # Check whether this is an Automake generated Makefile or not.
16808     # We used to match only the files named 'Makefile.in', but
16809     # some people rename them; so instead we look at the file content.
16810     # Grep'ing the first line is not enough: some people post-process
16811     # each Makefile.in and add a new line on top of each file to say so.
16812     # Grep'ing the whole file is not good either: AIX grep has a line
16813     # limit of 2048, but all sed's we know have understand at least 4000.
16814     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16815       dirpart=`$as_dirname -- "$mf" ||
16816 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16817          X"$mf" : 'X\(//\)[^/]' \| \
16818          X"$mf" : 'X\(//\)$' \| \
16819          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16820 $as_echo X"$mf" |
16821     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16822             s//\1/
16823             q
16824           }
16825           /^X\(\/\/\)[^/].*/{
16826             s//\1/
16827             q
16828           }
16829           /^X\(\/\/\)$/{
16830             s//\1/
16831             q
16832           }
16833           /^X\(\/\).*/{
16834             s//\1/
16835             q
16836           }
16837           s/.*/./; q'`
16838     else
16839       continue
16840     fi
16841     # Extract the definition of DEPDIR, am__include, and am__quote
16842     # from the Makefile without running 'make'.
16843     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16844     test -z "$DEPDIR" && continue
16845     am__include=`sed -n 's/^am__include = //p' < "$mf"`
16846     test -z "$am__include" && continue
16847     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16848     # Find all dependency output files, they are included files with
16849     # $(DEPDIR) in their names.  We invoke sed twice because it is the
16850     # simplest approach to changing $(DEPDIR) to its actual value in the
16851     # expansion.
16852     for file in `sed -n "
16853       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16854          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
16855       # Make sure the directory exists.
16856       test -f "$dirpart/$file" && continue
16857       fdir=`$as_dirname -- "$file" ||
16858 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16859          X"$file" : 'X\(//\)[^/]' \| \
16860          X"$file" : 'X\(//\)$' \| \
16861          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16862 $as_echo X"$file" |
16863     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16864             s//\1/
16865             q
16866           }
16867           /^X\(\/\/\)[^/].*/{
16868             s//\1/
16869             q
16870           }
16871           /^X\(\/\/\)$/{
16872             s//\1/
16873             q
16874           }
16875           /^X\(\/\).*/{
16876             s//\1/
16877             q
16878           }
16879           s/.*/./; q'`
16880       as_dir=$dirpart/$fdir; as_fn_mkdir_p
16881       # echo "creating $dirpart/$file"
16882       echo '# dummy' > "$dirpart/$file"
16883     done
16884   done
16885 }
16886  ;;
16887     "libtool":C)
16888
16889     # See if we are running on zsh, and set the options which allow our
16890     # commands through without removal of \ escapes.
16891     if test -n "${ZSH_VERSION+set}" ; then
16892       setopt NO_GLOB_SUBST
16893     fi
16894
16895     cfgfile="${ofile}T"
16896     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16897     $RM "$cfgfile"
16898
16899     cat <<_LT_EOF >> "$cfgfile"
16900 #! $SHELL
16901
16902 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16903 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16904 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16905 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16906 #
16907 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16908 #                 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
16909 #   Written by Gordon Matzigkeit, 1996
16910 #
16911 #   This file is part of GNU Libtool.
16912 #
16913 # GNU Libtool is free software; you can redistribute it and/or
16914 # modify it under the terms of the GNU General Public License as
16915 # published by the Free Software Foundation; either version 2 of
16916 # the License, or (at your option) any later version.
16917 #
16918 # As a special exception to the GNU General Public License,
16919 # if you distribute this file as part of a program or library that
16920 # is built using GNU Libtool, you may include this file under the
16921 # same distribution terms that you use for the rest of that program.
16922 #
16923 # GNU Libtool is distributed in the hope that it will be useful,
16924 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16925 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16926 # GNU General Public License for more details.
16927 #
16928 # You should have received a copy of the GNU General Public License
16929 # along with GNU Libtool; see the file COPYING.  If not, a copy
16930 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16931 # obtained by writing to the Free Software Foundation, Inc.,
16932 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16933
16934
16935 # The names of the tagged configurations supported by this script.
16936 available_tags=""
16937
16938 # ### BEGIN LIBTOOL CONFIG
16939
16940 # Which release of libtool.m4 was used?
16941 macro_version=$macro_version
16942 macro_revision=$macro_revision
16943
16944 # Whether or not to build shared libraries.
16945 build_libtool_libs=$enable_shared
16946
16947 # Whether or not to build static libraries.
16948 build_old_libs=$enable_static
16949
16950 # What type of objects to build.
16951 pic_mode=$pic_mode
16952
16953 # Whether or not to optimize for fast installation.
16954 fast_install=$enable_fast_install
16955
16956 # Shell to use when invoking shell scripts.
16957 SHELL=$lt_SHELL
16958
16959 # An echo program that protects backslashes.
16960 ECHO=$lt_ECHO
16961
16962 # The host system.
16963 host_alias=$host_alias
16964 host=$host
16965 host_os=$host_os
16966
16967 # The build system.
16968 build_alias=$build_alias
16969 build=$build
16970 build_os=$build_os
16971
16972 # A sed program that does not truncate output.
16973 SED=$lt_SED
16974
16975 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16976 Xsed="\$SED -e 1s/^X//"
16977
16978 # A grep program that handles long lines.
16979 GREP=$lt_GREP
16980
16981 # An ERE matcher.
16982 EGREP=$lt_EGREP
16983
16984 # A literal string matcher.
16985 FGREP=$lt_FGREP
16986
16987 # A BSD- or MS-compatible name lister.
16988 NM=$lt_NM
16989
16990 # Whether we need soft or hard links.
16991 LN_S=$lt_LN_S
16992
16993 # What is the maximum length of a command?
16994 max_cmd_len=$max_cmd_len
16995
16996 # Object file suffix (normally "o").
16997 objext=$ac_objext
16998
16999 # Executable file suffix (normally "").
17000 exeext=$exeext
17001
17002 # whether the shell understands "unset".
17003 lt_unset=$lt_unset
17004
17005 # turn spaces into newlines.
17006 SP2NL=$lt_lt_SP2NL
17007
17008 # turn newlines into spaces.
17009 NL2SP=$lt_lt_NL2SP
17010
17011 # An object symbol dumper.
17012 OBJDUMP=$lt_OBJDUMP
17013
17014 # Method to check whether dependent libraries are shared objects.
17015 deplibs_check_method=$lt_deplibs_check_method
17016
17017 # Command to use when deplibs_check_method == "file_magic".
17018 file_magic_cmd=$lt_file_magic_cmd
17019
17020 # The archiver.
17021 AR=$lt_AR
17022 AR_FLAGS=$lt_AR_FLAGS
17023
17024 # A symbol stripping program.
17025 STRIP=$lt_STRIP
17026
17027 # Commands used to install an old-style archive.
17028 RANLIB=$lt_RANLIB
17029 old_postinstall_cmds=$lt_old_postinstall_cmds
17030 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17031
17032 # Whether to use a lock for old archive extraction.
17033 lock_old_archive_extraction=$lock_old_archive_extraction
17034
17035 # A C compiler.
17036 LTCC=$lt_CC
17037
17038 # LTCC compiler flags.
17039 LTCFLAGS=$lt_CFLAGS
17040
17041 # Take the output of nm and produce a listing of raw symbols and C names.
17042 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17043
17044 # Transform the output of nm in a proper C declaration.
17045 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17046
17047 # Transform the output of nm in a C name address pair.
17048 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17049
17050 # Transform the output of nm in a C name address pair when lib prefix is needed.
17051 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17052
17053 # The name of the directory that contains temporary libtool files.
17054 objdir=$objdir
17055
17056 # Used to examine libraries when file_magic_cmd begins with "file".
17057 MAGIC_CMD=$MAGIC_CMD
17058
17059 # Must we lock files when doing compilation?
17060 need_locks=$lt_need_locks
17061
17062 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17063 DSYMUTIL=$lt_DSYMUTIL
17064
17065 # Tool to change global to local symbols on Mac OS X.
17066 NMEDIT=$lt_NMEDIT
17067
17068 # Tool to manipulate fat objects and archives on Mac OS X.
17069 LIPO=$lt_LIPO
17070
17071 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17072 OTOOL=$lt_OTOOL
17073
17074 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17075 OTOOL64=$lt_OTOOL64
17076
17077 # Old archive suffix (normally "a").
17078 libext=$libext
17079
17080 # Shared library suffix (normally ".so").
17081 shrext_cmds=$lt_shrext_cmds
17082
17083 # The commands to extract the exported symbol list from a shared archive.
17084 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17085
17086 # Variables whose values should be saved in libtool wrapper scripts and
17087 # restored at link time.
17088 variables_saved_for_relink=$lt_variables_saved_for_relink
17089
17090 # Do we need the "lib" prefix for modules?
17091 need_lib_prefix=$need_lib_prefix
17092
17093 # Do we need a version for libraries?
17094 need_version=$need_version
17095
17096 # Library versioning type.
17097 version_type=$version_type
17098
17099 # Shared library runtime path variable.
17100 runpath_var=$runpath_var
17101
17102 # Shared library path variable.
17103 shlibpath_var=$shlibpath_var
17104
17105 # Is shlibpath searched before the hard-coded library search path?
17106 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17107
17108 # Format of library name prefix.
17109 libname_spec=$lt_libname_spec
17110
17111 # List of archive names.  First name is the real one, the rest are links.
17112 # The last name is the one that the linker finds with -lNAME
17113 library_names_spec=$lt_library_names_spec
17114
17115 # The coded name of the library, if different from the real name.
17116 soname_spec=$lt_soname_spec
17117
17118 # Permission mode override for installation of shared libraries.
17119 install_override_mode=$lt_install_override_mode
17120
17121 # Command to use after installation of a shared archive.
17122 postinstall_cmds=$lt_postinstall_cmds
17123
17124 # Command to use after uninstallation of a shared archive.
17125 postuninstall_cmds=$lt_postuninstall_cmds
17126
17127 # Commands used to finish a libtool library installation in a directory.
17128 finish_cmds=$lt_finish_cmds
17129
17130 # As "finish_cmds", except a single script fragment to be evaled but
17131 # not shown.
17132 finish_eval=$lt_finish_eval
17133
17134 # Whether we should hardcode library paths into libraries.
17135 hardcode_into_libs=$hardcode_into_libs
17136
17137 # Compile-time system search path for libraries.
17138 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17139
17140 # Run-time system search path for libraries.
17141 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17142
17143 # Whether dlopen is supported.
17144 dlopen_support=$enable_dlopen
17145
17146 # Whether dlopen of programs is supported.
17147 dlopen_self=$enable_dlopen_self
17148
17149 # Whether dlopen of statically linked programs is supported.
17150 dlopen_self_static=$enable_dlopen_self_static
17151
17152 # Commands to strip libraries.
17153 old_striplib=$lt_old_striplib
17154 striplib=$lt_striplib
17155
17156
17157 # The linker used to build libraries.
17158 LD=$lt_LD
17159
17160 # How to create reloadable object files.
17161 reload_flag=$lt_reload_flag
17162 reload_cmds=$lt_reload_cmds
17163
17164 # Commands used to build an old-style archive.
17165 old_archive_cmds=$lt_old_archive_cmds
17166
17167 # A language specific compiler.
17168 CC=$lt_compiler
17169
17170 # Is the compiler the GNU compiler?
17171 with_gcc=$GCC
17172
17173 # Compiler flag to turn off builtin functions.
17174 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17175
17176 # How to pass a linker flag through the compiler.
17177 wl=$lt_lt_prog_compiler_wl
17178
17179 # Additional compiler flags for building library objects.
17180 pic_flag=$lt_lt_prog_compiler_pic
17181
17182 # Compiler flag to prevent dynamic linking.
17183 link_static_flag=$lt_lt_prog_compiler_static
17184
17185 # Does compiler simultaneously support -c and -o options?
17186 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17187
17188 # Whether or not to add -lc for building shared libraries.
17189 build_libtool_need_lc=$archive_cmds_need_lc
17190
17191 # Whether or not to disallow shared libs when runtime libs are static.
17192 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17193
17194 # Compiler flag to allow reflexive dlopens.
17195 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17196
17197 # Compiler flag to generate shared objects directly from archives.
17198 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17199
17200 # Whether the compiler copes with passing no objects directly.
17201 compiler_needs_object=$lt_compiler_needs_object
17202
17203 # Create an old-style archive from a shared archive.
17204 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17205
17206 # Create a temporary old-style archive to link instead of a shared archive.
17207 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17208
17209 # Commands used to build a shared archive.
17210 archive_cmds=$lt_archive_cmds
17211 archive_expsym_cmds=$lt_archive_expsym_cmds
17212
17213 # Commands used to build a loadable module if different from building
17214 # a shared archive.
17215 module_cmds=$lt_module_cmds
17216 module_expsym_cmds=$lt_module_expsym_cmds
17217
17218 # Whether we are building with GNU ld or not.
17219 with_gnu_ld=$lt_with_gnu_ld
17220
17221 # Flag that allows shared libraries with undefined symbols to be built.
17222 allow_undefined_flag=$lt_allow_undefined_flag
17223
17224 # Flag that enforces no undefined symbols.
17225 no_undefined_flag=$lt_no_undefined_flag
17226
17227 # Flag to hardcode \$libdir into a binary during linking.
17228 # This must work even if \$libdir does not exist
17229 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17230
17231 # If ld is used when linking, flag to hardcode \$libdir into a binary
17232 # during linking.  This must work even if \$libdir does not exist.
17233 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17234
17235 # Whether we need a single "-rpath" flag with a separated argument.
17236 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17237
17238 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17239 # DIR into the resulting binary.
17240 hardcode_direct=$hardcode_direct
17241
17242 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17243 # DIR into the resulting binary and the resulting library dependency is
17244 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17245 # library is relocated.
17246 hardcode_direct_absolute=$hardcode_direct_absolute
17247
17248 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17249 # into the resulting binary.
17250 hardcode_minus_L=$hardcode_minus_L
17251
17252 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17253 # into the resulting binary.
17254 hardcode_shlibpath_var=$hardcode_shlibpath_var
17255
17256 # Set to "yes" if building a shared library automatically hardcodes DIR
17257 # into the library and all subsequent libraries and executables linked
17258 # against it.
17259 hardcode_automatic=$hardcode_automatic
17260
17261 # Set to yes if linker adds runtime paths of dependent libraries
17262 # to runtime path list.
17263 inherit_rpath=$inherit_rpath
17264
17265 # Whether libtool must link a program against all its dependency libraries.
17266 link_all_deplibs=$link_all_deplibs
17267
17268 # Fix the shell variable \$srcfile for the compiler.
17269 fix_srcfile_path=$lt_fix_srcfile_path
17270
17271 # Set to "yes" if exported symbols are required.
17272 always_export_symbols=$always_export_symbols
17273
17274 # The commands to list exported symbols.
17275 export_symbols_cmds=$lt_export_symbols_cmds
17276
17277 # Symbols that should not be listed in the preloaded symbols.
17278 exclude_expsyms=$lt_exclude_expsyms
17279
17280 # Symbols that must always be exported.
17281 include_expsyms=$lt_include_expsyms
17282
17283 # Commands necessary for linking programs (against libraries) with templates.
17284 prelink_cmds=$lt_prelink_cmds
17285
17286 # Specify filename containing input files.
17287 file_list_spec=$lt_file_list_spec
17288
17289 # How to hardcode a shared library path into an executable.
17290 hardcode_action=$hardcode_action
17291
17292 # ### END LIBTOOL CONFIG
17293
17294 _LT_EOF
17295
17296   case $host_os in
17297   aix3*)
17298     cat <<\_LT_EOF >> "$cfgfile"
17299 # AIX sometimes has problems with the GCC collect2 program.  For some
17300 # reason, if we set the COLLECT_NAMES environment variable, the problems
17301 # vanish in a puff of smoke.
17302 if test "X${COLLECT_NAMES+set}" != Xset; then
17303   COLLECT_NAMES=
17304   export COLLECT_NAMES
17305 fi
17306 _LT_EOF
17307     ;;
17308   esac
17309
17310
17311 ltmain="$ac_aux_dir/ltmain.sh"
17312
17313
17314   # We use sed instead of cat because bash on DJGPP gets confused if
17315   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
17316   # text mode, it properly converts lines to CR/LF.  This bash problem
17317   # is reportedly fixed, but why not run on old versions too?
17318   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17319     || (rm -f "$cfgfile"; exit 1)
17320
17321   case $xsi_shell in
17322   yes)
17323     cat << \_LT_EOF >> "$cfgfile"
17324
17325 # func_dirname file append nondir_replacement
17326 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
17327 # otherwise set result to NONDIR_REPLACEMENT.
17328 func_dirname ()
17329 {
17330   case ${1} in
17331     */*) func_dirname_result="${1%/*}${2}" ;;
17332     *  ) func_dirname_result="${3}" ;;
17333   esac
17334 }
17335
17336 # func_basename file
17337 func_basename ()
17338 {
17339   func_basename_result="${1##*/}"
17340 }
17341
17342 # func_dirname_and_basename file append nondir_replacement
17343 # perform func_basename and func_dirname in a single function
17344 # call:
17345 #   dirname:  Compute the dirname of FILE.  If nonempty,
17346 #             add APPEND to the result, otherwise set result
17347 #             to NONDIR_REPLACEMENT.
17348 #             value returned in "$func_dirname_result"
17349 #   basename: Compute filename of FILE.
17350 #             value retuned in "$func_basename_result"
17351 # Implementation must be kept synchronized with func_dirname
17352 # and func_basename. For efficiency, we do not delegate to
17353 # those functions but instead duplicate the functionality here.
17354 func_dirname_and_basename ()
17355 {
17356   case ${1} in
17357     */*) func_dirname_result="${1%/*}${2}" ;;
17358     *  ) func_dirname_result="${3}" ;;
17359   esac
17360   func_basename_result="${1##*/}"
17361 }
17362
17363 # func_stripname prefix suffix name
17364 # strip PREFIX and SUFFIX off of NAME.
17365 # PREFIX and SUFFIX must not contain globbing or regex special
17366 # characters, hashes, percent signs, but SUFFIX may contain a leading
17367 # dot (in which case that matches only a dot).
17368 func_stripname ()
17369 {
17370   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17371   # positional parameters, so assign one to ordinary parameter first.
17372   func_stripname_result=${3}
17373   func_stripname_result=${func_stripname_result#"${1}"}
17374   func_stripname_result=${func_stripname_result%"${2}"}
17375 }
17376
17377 # func_opt_split
17378 func_opt_split ()
17379 {
17380   func_opt_split_opt=${1%%=*}
17381   func_opt_split_arg=${1#*=}
17382 }
17383
17384 # func_lo2o object
17385 func_lo2o ()
17386 {
17387   case ${1} in
17388     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17389     *)    func_lo2o_result=${1} ;;
17390   esac
17391 }
17392
17393 # func_xform libobj-or-source
17394 func_xform ()
17395 {
17396   func_xform_result=${1%.*}.lo
17397 }
17398
17399 # func_arith arithmetic-term...
17400 func_arith ()
17401 {
17402   func_arith_result=$(( $* ))
17403 }
17404
17405 # func_len string
17406 # STRING may not start with a hyphen.
17407 func_len ()
17408 {
17409   func_len_result=${#1}
17410 }
17411
17412 _LT_EOF
17413     ;;
17414   *) # Bourne compatible functions.
17415     cat << \_LT_EOF >> "$cfgfile"
17416
17417 # func_dirname file append nondir_replacement
17418 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
17419 # otherwise set result to NONDIR_REPLACEMENT.
17420 func_dirname ()
17421 {
17422   # Extract subdirectory from the argument.
17423   func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
17424   if test "X$func_dirname_result" = "X${1}"; then
17425     func_dirname_result="${3}"
17426   else
17427     func_dirname_result="$func_dirname_result${2}"
17428   fi
17429 }
17430
17431 # func_basename file
17432 func_basename ()
17433 {
17434   func_basename_result=`$ECHO "${1}" | $SED "$basename"`
17435 }
17436
17437
17438 # func_stripname prefix suffix name
17439 # strip PREFIX and SUFFIX off of NAME.
17440 # PREFIX and SUFFIX must not contain globbing or regex special
17441 # characters, hashes, percent signs, but SUFFIX may contain a leading
17442 # dot (in which case that matches only a dot).
17443 # func_strip_suffix prefix name
17444 func_stripname ()
17445 {
17446   case ${2} in
17447     .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
17448     *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
17449   esac
17450 }
17451
17452 # sed scripts:
17453 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17454 my_sed_long_arg='1s/^-[^=]*=//'
17455
17456 # func_opt_split
17457 func_opt_split ()
17458 {
17459   func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
17460   func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
17461 }
17462
17463 # func_lo2o object
17464 func_lo2o ()
17465 {
17466   func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
17467 }
17468
17469 # func_xform libobj-or-source
17470 func_xform ()
17471 {
17472   func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
17473 }
17474
17475 # func_arith arithmetic-term...
17476 func_arith ()
17477 {
17478   func_arith_result=`expr "$@"`
17479 }
17480
17481 # func_len string
17482 # STRING may not start with a hyphen.
17483 func_len ()
17484 {
17485   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17486 }
17487
17488 _LT_EOF
17489 esac
17490
17491 case $lt_shell_append in
17492   yes)
17493     cat << \_LT_EOF >> "$cfgfile"
17494
17495 # func_append var value
17496 # Append VALUE to the end of shell variable VAR.
17497 func_append ()
17498 {
17499   eval "$1+=\$2"
17500 }
17501 _LT_EOF
17502     ;;
17503   *)
17504     cat << \_LT_EOF >> "$cfgfile"
17505
17506 # func_append var value
17507 # Append VALUE to the end of shell variable VAR.
17508 func_append ()
17509 {
17510   eval "$1=\$$1\$2"
17511 }
17512
17513 _LT_EOF
17514     ;;
17515   esac
17516
17517
17518   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17519     || (rm -f "$cfgfile"; exit 1)
17520
17521   mv -f "$cfgfile" "$ofile" ||
17522     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17523   chmod +x "$ofile"
17524
17525  ;;
17526     "default-1":C)
17527     for ac_file in $CONFIG_FILES; do
17528       # Support "outfile[:infile[:infile...]]"
17529       case "$ac_file" in
17530         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
17531       esac
17532       # PO directories have a Makefile.in generated from Makefile.in.in.
17533       case "$ac_file" in */Makefile.in)
17534         # Adjust a relative srcdir.
17535         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
17536         ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
17537         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
17538         # In autoconf-2.13 it is called $ac_given_srcdir.
17539         # In autoconf-2.50 it is called $srcdir.
17540         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
17541         case "$ac_given_srcdir" in
17542           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
17543           /*) top_srcdir="$ac_given_srcdir" ;;
17544           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
17545         esac
17546         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
17547           rm -f "$ac_dir/POTFILES"
17548           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
17549           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
17550           POMAKEFILEDEPS="POTFILES.in"
17551           # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
17552           # on $ac_dir but don't depend on user-specified configuration
17553           # parameters.
17554           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
17555             # The LINGUAS file contains the set of available languages.
17556             if test -n "$OBSOLETE_ALL_LINGUAS"; then
17557               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.ac is obsolete" || echo "setting ALL_LINGUAS in configure.ac is obsolete"
17558             fi
17559             ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
17560             # Hide the ALL_LINGUAS assigment from automake.
17561             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
17562             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
17563           else
17564             # The set of available languages was given in configure.ac.
17565             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
17566           fi
17567           case "$ac_given_srcdir" in
17568             .) srcdirpre= ;;
17569             *) srcdirpre='$(srcdir)/' ;;
17570           esac
17571           POFILES=
17572           GMOFILES=
17573           UPDATEPOFILES=
17574           DUMMYPOFILES=
17575           for lang in $ALL_LINGUAS; do
17576             POFILES="$POFILES $srcdirpre$lang.po"
17577             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
17578             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
17579             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
17580           done
17581           # CATALOGS depends on both $ac_dir and the user's LINGUAS
17582           # environment variable.
17583           INST_LINGUAS=
17584           if test -n "$ALL_LINGUAS"; then
17585             for presentlang in $ALL_LINGUAS; do
17586               useit=no
17587               if test "%UNSET%" != "$LINGUAS"; then
17588                 desiredlanguages="$LINGUAS"
17589               else
17590                 desiredlanguages="$ALL_LINGUAS"
17591               fi
17592               for desiredlang in $desiredlanguages; do
17593                 # Use the presentlang catalog if desiredlang is
17594                 #   a. equal to presentlang, or
17595                 #   b. a variant of presentlang (because in this case,
17596                 #      presentlang can be used as a fallback for messages
17597                 #      which are not translated in the desiredlang catalog).
17598                 case "$desiredlang" in
17599                   "$presentlang"*) useit=yes;;
17600                 esac
17601               done
17602               if test $useit = yes; then
17603                 INST_LINGUAS="$INST_LINGUAS $presentlang"
17604               fi
17605             done
17606           fi
17607           CATALOGS=
17608           if test -n "$INST_LINGUAS"; then
17609             for lang in $INST_LINGUAS; do
17610               CATALOGS="$CATALOGS $lang.gmo"
17611             done
17612           fi
17613           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
17614           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"
17615           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
17616             if test -f "$f"; then
17617               case "$f" in
17618                 *.orig | *.bak | *~) ;;
17619                 *) cat "$f" >> "$ac_dir/Makefile" ;;
17620               esac
17621             fi
17622           done
17623         fi
17624         ;;
17625       esac
17626     done ;;
17627
17628   esac
17629 done # for ac_tag
17630
17631
17632 as_fn_exit 0
17633 _ACEOF
17634 ac_clean_files=$ac_clean_files_save
17635
17636 test $ac_write_fail = 0 ||
17637   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17638
17639
17640 # configure is writing to config.log, and then calls config.status.
17641 # config.status does its own redirection, appending to config.log.
17642 # Unfortunately, on DOS this fails, as config.log is still kept open
17643 # by configure, so config.status won't be able to write to it; its
17644 # output is simply discarded.  So we exec the FD to /dev/null,
17645 # effectively closing config.log, so it can be properly (re)opened and
17646 # appended to by config.status.  When coming back to configure, we
17647 # need to make the FD available again.
17648 if test "$no_create" != yes; then
17649   ac_cs_success=:
17650   ac_config_status_args=
17651   test "$silent" = yes &&
17652     ac_config_status_args="$ac_config_status_args --quiet"
17653   exec 5>/dev/null
17654   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17655   exec 5>>config.log
17656   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17657   # would make configure fail if this is the last instruction.
17658   $ac_cs_success || as_fn_exit 1
17659 fi
17660 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17661   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17662 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17663 fi
17664