struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / support / sdbinutils / binutils / configure
blobd2dbfd80a0d98daf2576d081a7bfa636771b2793
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for binutils 2.38.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
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 ## -------------------- ##
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 *) :
30 esac
34 as_nl='
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"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
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=';'
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"
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
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
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
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
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='+ '
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
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
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 *) :
174 esac
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; }
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 :
190 else
191 exitcode=1; echo positional parameters were not saved.
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
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
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
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
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
222 as_found=:
223 case $as_dir in #(
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
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
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
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."
280 exit 1
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
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
293 # as_fn_unset VAR
294 # ---------------
295 # Portably unset VAR.
296 as_fn_unset ()
298 { eval $1=; unset $1;}
300 as_unset=as_fn_unset
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
305 as_fn_set_status ()
307 return $1
308 } # as_fn_set_status
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 ()
315 set +e
316 as_fn_set_status $1
317 exit $1
318 } # as_fn_exit
320 # as_fn_mkdir_p
321 # -------------
322 # Create "$as_dir" as a directory, including parents if necessary.
323 as_fn_mkdir_p ()
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/
347 /^X\(\/\/\)[^/].*/{
348 s//\1/
351 /^X\(\/\/\)$/{
352 s//\1/
355 /^X\(\/\).*/{
356 s//\1/
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"
366 } # as_fn_mkdir_p
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
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 ()
384 eval $1+=\$2
386 else
387 as_fn_append ()
389 eval $1=\$$1\$2
391 fi # as_fn_append
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 ()
401 as_val=$(( $* ))
403 else
404 as_fn_arith ()
406 as_val=`expr "$@" || test $? -eq 1`
408 fi # as_fn_arith
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 ()
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
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit $as_status
425 } # as_fn_error
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
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 as_basename=basename
436 else
437 as_basename=false
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
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/
455 /^X\/\(\/\/\)$/{
456 s//\1/
459 /^X\/\(\/\).*/{
460 s//\1/
463 s/.*/./; q'`
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
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 '
480 /[$]LINENO/=
481 ' <$as_myself |
482 sed '
483 s/[$]LINENO.*/&-/
484 t lineno
486 :lineno
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; }
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
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;;
518 ECHO_N='-n';;
519 esac
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
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'
542 else
543 as_ln_s='cp -pR'
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
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
555 as_test_x='test -x'
556 as_executable_p=as_fn_executable_p
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'"
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'"
564 SHELL=${CONFIG_SHELL-/bin/sh}
567 test -n "$DJDIR" || exec 7<&0 </dev/null
568 exec 6>&1
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`
576 # Initializations.
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=
587 # Identity of this package.
588 PACKAGE_NAME='binutils'
589 PACKAGE_TARNAME='binutils'
590 PACKAGE_VERSION='2.38'
591 PACKAGE_STRING='binutils 2.38'
592 PACKAGE_BUGREPORT=''
593 PACKAGE_URL=''
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"
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 DEMANGLER_NAME
654 EXEEXT_FOR_BUILD
655 CC_FOR_BUILD
656 HDEFINES
657 GENINSRC_NEVER_FALSE
658 GENINSRC_NEVER_TRUE
659 MAINT
660 MAINTAINER_MODE_FALSE
661 MAINTAINER_MODE_TRUE
662 MSGMERGE
663 MSGFMT
664 MKINSTALLDIRS
665 CATOBJEXT
666 GENCAT
667 INSTOBJEXT
668 DATADIRNAME
669 CATALOGS
670 POSUB
671 GMSGFMT
672 XGETTEXT
673 INCINTL
674 LIBINTL_DEP
675 LIBINTL
676 USE_NLS
677 LEXLIB
678 LEX_OUTPUT_ROOT
680 YFLAGS
681 YACC
682 WARN_WRITE_STRINGS
683 NO_WERROR
684 WARN_CFLAGS_FOR_BUILD
685 WARN_CFLAGS
686 ENABLE_LIBCTF_FALSE
687 ENABLE_LIBCTF_TRUE
688 DEBUGINFOD_LIBS
689 DEBUGINFOD_CFLAGS
690 PKG_CONFIG_LIBDIR
691 PKG_CONFIG_PATH
692 PKG_CONFIG
693 LARGEFILE_CPPFLAGS
694 OTOOL64
695 OTOOL
696 LIPO
697 NMEDIT
698 DSYMUTIL
699 RANLIB
701 OBJDUMP
702 LN_S
704 ac_ct_DUMPBIN
705 DUMPBIN
707 FGREP
709 LIBTOOL
710 EGREP
711 GREP
713 am__fastdepCC_FALSE
714 am__fastdepCC_TRUE
715 CCDEPMODE
716 am__nodep
717 AMDEPBACKSLASH
718 AMDEP_FALSE
719 AMDEP_TRUE
720 am__quote
721 am__include
722 DEPDIR
723 OBJEXT
724 EXEEXT
725 ac_ct_CC
726 CPPFLAGS
727 LDFLAGS
728 CFLAGS
730 AM_BACKSLASH
731 AM_DEFAULT_VERBOSITY
732 AM_DEFAULT_V
733 AM_V
734 am__untar
735 am__tar
736 AMTAR
737 am__leading_dot
738 SET_MAKE
740 mkdir_p
741 MKDIR_P
742 INSTALL_STRIP_PROGRAM
743 STRIP
744 install_sh
745 MAKEINFO
746 AUTOHEADER
747 AUTOMAKE
748 AUTOCONF
749 ACLOCAL
750 VERSION
751 PACKAGE
752 CYGPATH_W
753 am__isrc
754 INSTALL_DATA
755 INSTALL_SCRIPT
756 INSTALL_PROGRAM
757 target_os
758 target_vendor
759 target_cpu
760 target
761 host_os
762 host_vendor
763 host_cpu
764 host
765 build_os
766 build_vendor
767 build_cpu
768 build
769 target_alias
770 host_alias
771 build_alias
772 LIBS
773 ECHO_T
774 ECHO_N
775 ECHO_C
776 DEFS
777 mandir
778 localedir
779 libdir
780 psdir
781 pdfdir
782 dvidir
783 htmldir
784 infodir
785 docdir
786 oldincludedir
787 includedir
788 localstatedir
789 sharedstatedir
790 sysconfdir
791 datadir
792 datarootdir
793 libexecdir
794 sbindir
795 bindir
796 program_transform_name
797 prefix
798 exec_prefix
799 PACKAGE_URL
800 PACKAGE_BUGREPORT
801 PACKAGE_STRING
802 PACKAGE_VERSION
803 PACKAGE_TARNAME
804 PACKAGE_NAME
805 PATH_SEPARATOR
806 SHELL'
807 ac_subst_files=''
808 ac_user_opts='
809 enable_option_checking
810 enable_silent_rules
811 enable_dependency_tracking
812 enable_shared
813 enable_static
814 with_pic
815 enable_fast_install
816 with_gnu_ld
817 enable_libtool_lock
818 enable_plugins
819 enable_largefile
820 enable_checking
821 enable_targets
822 enable_deterministic_archives
823 enable_default_strings_all
824 enable_f_for_ifunc_symbols
825 enable_follow_debug_links
826 with_debuginfod
827 enable_libctf
828 enable_werror
829 enable_build_warnings
830 enable_nls
831 enable_maintainer_mode
832 with_system_zlib
833 enable_rpath
834 with_libiconv_prefix
835 with_libiconv_type
837 ac_precious_vars='build_alias
838 host_alias
839 target_alias
841 CFLAGS
842 LDFLAGS
843 LIBS
844 CPPFLAGS
846 PKG_CONFIG
847 PKG_CONFIG_PATH
848 PKG_CONFIG_LIBDIR
849 DEBUGINFOD_CFLAGS
850 DEBUGINFOD_LIBS
851 YACC
852 YFLAGS'
855 # Initialize some variables set by options.
856 ac_init_help=
857 ac_init_version=false
858 ac_unrecognized_opts=
859 ac_unrecognized_sep=
860 # The variables have the same names as the options, with
861 # dashes changed to underlines.
862 cache_file=/dev/null
863 exec_prefix=NONE
864 no_create=
865 no_recursion=
866 prefix=NONE
867 program_prefix=NONE
868 program_suffix=NONE
869 program_transform_name=s,x,x,
870 silent=
871 site=
872 srcdir=
873 verbose=
874 x_includes=NONE
875 x_libraries=NONE
877 # Installation directory options.
878 # These are left unexpanded so users can "make install exec_prefix=/foo"
879 # and all the variables that are supposed to be based on exec_prefix
880 # by default will actually change.
881 # Use braces instead of parens because sh, perl, etc. also accept them.
882 # (The list follows the same order as the GNU Coding Standards.)
883 bindir='${exec_prefix}/bin'
884 sbindir='${exec_prefix}/sbin'
885 libexecdir='${exec_prefix}/libexec'
886 datarootdir='${prefix}/share'
887 datadir='${datarootdir}'
888 sysconfdir='${prefix}/etc'
889 sharedstatedir='${prefix}/com'
890 localstatedir='${prefix}/var'
891 includedir='${prefix}/include'
892 oldincludedir='/usr/include'
893 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
894 infodir='${datarootdir}/info'
895 htmldir='${docdir}'
896 dvidir='${docdir}'
897 pdfdir='${docdir}'
898 psdir='${docdir}'
899 libdir='${exec_prefix}/lib'
900 localedir='${datarootdir}/locale'
901 mandir='${datarootdir}/man'
903 ac_prev=
904 ac_dashdash=
905 for ac_option
907 # If the previous option needs an argument, assign it.
908 if test -n "$ac_prev"; then
909 eval $ac_prev=\$ac_option
910 ac_prev=
911 continue
914 case $ac_option in
915 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
916 *=) ac_optarg= ;;
917 *) ac_optarg=yes ;;
918 esac
920 # Accept the important Cygnus configure options, so we can diagnose typos.
922 case $ac_dashdash$ac_option in
924 ac_dashdash=yes ;;
926 -bindir | --bindir | --bindi | --bind | --bin | --bi)
927 ac_prev=bindir ;;
928 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
929 bindir=$ac_optarg ;;
931 -build | --build | --buil | --bui | --bu)
932 ac_prev=build_alias ;;
933 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
934 build_alias=$ac_optarg ;;
936 -cache-file | --cache-file | --cache-fil | --cache-fi \
937 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
938 ac_prev=cache_file ;;
939 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
940 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
941 cache_file=$ac_optarg ;;
943 --config-cache | -C)
944 cache_file=config.cache ;;
946 -datadir | --datadir | --datadi | --datad)
947 ac_prev=datadir ;;
948 -datadir=* | --datadir=* | --datadi=* | --datad=*)
949 datadir=$ac_optarg ;;
951 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
952 | --dataroo | --dataro | --datar)
953 ac_prev=datarootdir ;;
954 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
955 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
956 datarootdir=$ac_optarg ;;
958 -disable-* | --disable-*)
959 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
960 # Reject names that are not valid shell variable names.
961 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
962 as_fn_error $? "invalid feature name: $ac_useropt"
963 ac_useropt_orig=$ac_useropt
964 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
965 case $ac_user_opts in
967 "enable_$ac_useropt"
968 "*) ;;
969 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
970 ac_unrecognized_sep=', ';;
971 esac
972 eval enable_$ac_useropt=no ;;
974 -docdir | --docdir | --docdi | --doc | --do)
975 ac_prev=docdir ;;
976 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
977 docdir=$ac_optarg ;;
979 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
980 ac_prev=dvidir ;;
981 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
982 dvidir=$ac_optarg ;;
984 -enable-* | --enable-*)
985 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
986 # Reject names that are not valid shell variable names.
987 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
988 as_fn_error $? "invalid feature name: $ac_useropt"
989 ac_useropt_orig=$ac_useropt
990 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
991 case $ac_user_opts in
993 "enable_$ac_useropt"
994 "*) ;;
995 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
996 ac_unrecognized_sep=', ';;
997 esac
998 eval enable_$ac_useropt=\$ac_optarg ;;
1000 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1001 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1002 | --exec | --exe | --ex)
1003 ac_prev=exec_prefix ;;
1004 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1005 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1006 | --exec=* | --exe=* | --ex=*)
1007 exec_prefix=$ac_optarg ;;
1009 -gas | --gas | --ga | --g)
1010 # Obsolete; use --with-gas.
1011 with_gas=yes ;;
1013 -help | --help | --hel | --he | -h)
1014 ac_init_help=long ;;
1015 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1016 ac_init_help=recursive ;;
1017 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1018 ac_init_help=short ;;
1020 -host | --host | --hos | --ho)
1021 ac_prev=host_alias ;;
1022 -host=* | --host=* | --hos=* | --ho=*)
1023 host_alias=$ac_optarg ;;
1025 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1026 ac_prev=htmldir ;;
1027 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1028 | --ht=*)
1029 htmldir=$ac_optarg ;;
1031 -includedir | --includedir | --includedi | --included | --include \
1032 | --includ | --inclu | --incl | --inc)
1033 ac_prev=includedir ;;
1034 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1035 | --includ=* | --inclu=* | --incl=* | --inc=*)
1036 includedir=$ac_optarg ;;
1038 -infodir | --infodir | --infodi | --infod | --info | --inf)
1039 ac_prev=infodir ;;
1040 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1041 infodir=$ac_optarg ;;
1043 -libdir | --libdir | --libdi | --libd)
1044 ac_prev=libdir ;;
1045 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1046 libdir=$ac_optarg ;;
1048 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1049 | --libexe | --libex | --libe)
1050 ac_prev=libexecdir ;;
1051 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1052 | --libexe=* | --libex=* | --libe=*)
1053 libexecdir=$ac_optarg ;;
1055 -localedir | --localedir | --localedi | --localed | --locale)
1056 ac_prev=localedir ;;
1057 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1058 localedir=$ac_optarg ;;
1060 -localstatedir | --localstatedir | --localstatedi | --localstated \
1061 | --localstate | --localstat | --localsta | --localst | --locals)
1062 ac_prev=localstatedir ;;
1063 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1064 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1065 localstatedir=$ac_optarg ;;
1067 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1068 ac_prev=mandir ;;
1069 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1070 mandir=$ac_optarg ;;
1072 -nfp | --nfp | --nf)
1073 # Obsolete; use --without-fp.
1074 with_fp=no ;;
1076 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1077 | --no-cr | --no-c | -n)
1078 no_create=yes ;;
1080 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1081 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1082 no_recursion=yes ;;
1084 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1085 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1086 | --oldin | --oldi | --old | --ol | --o)
1087 ac_prev=oldincludedir ;;
1088 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1089 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1090 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1091 oldincludedir=$ac_optarg ;;
1093 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1094 ac_prev=prefix ;;
1095 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1096 prefix=$ac_optarg ;;
1098 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1099 | --program-pre | --program-pr | --program-p)
1100 ac_prev=program_prefix ;;
1101 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1102 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1103 program_prefix=$ac_optarg ;;
1105 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1106 | --program-suf | --program-su | --program-s)
1107 ac_prev=program_suffix ;;
1108 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1109 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1110 program_suffix=$ac_optarg ;;
1112 -program-transform-name | --program-transform-name \
1113 | --program-transform-nam | --program-transform-na \
1114 | --program-transform-n | --program-transform- \
1115 | --program-transform | --program-transfor \
1116 | --program-transfo | --program-transf \
1117 | --program-trans | --program-tran \
1118 | --progr-tra | --program-tr | --program-t)
1119 ac_prev=program_transform_name ;;
1120 -program-transform-name=* | --program-transform-name=* \
1121 | --program-transform-nam=* | --program-transform-na=* \
1122 | --program-transform-n=* | --program-transform-=* \
1123 | --program-transform=* | --program-transfor=* \
1124 | --program-transfo=* | --program-transf=* \
1125 | --program-trans=* | --program-tran=* \
1126 | --progr-tra=* | --program-tr=* | --program-t=*)
1127 program_transform_name=$ac_optarg ;;
1129 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1130 ac_prev=pdfdir ;;
1131 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1132 pdfdir=$ac_optarg ;;
1134 -psdir | --psdir | --psdi | --psd | --ps)
1135 ac_prev=psdir ;;
1136 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1137 psdir=$ac_optarg ;;
1139 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1140 | -silent | --silent | --silen | --sile | --sil)
1141 silent=yes ;;
1143 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1144 ac_prev=sbindir ;;
1145 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1146 | --sbi=* | --sb=*)
1147 sbindir=$ac_optarg ;;
1149 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1150 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1151 | --sharedst | --shareds | --shared | --share | --shar \
1152 | --sha | --sh)
1153 ac_prev=sharedstatedir ;;
1154 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1155 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1156 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1157 | --sha=* | --sh=*)
1158 sharedstatedir=$ac_optarg ;;
1160 -site | --site | --sit)
1161 ac_prev=site ;;
1162 -site=* | --site=* | --sit=*)
1163 site=$ac_optarg ;;
1165 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1166 ac_prev=srcdir ;;
1167 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1168 srcdir=$ac_optarg ;;
1170 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1171 | --syscon | --sysco | --sysc | --sys | --sy)
1172 ac_prev=sysconfdir ;;
1173 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1174 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1175 sysconfdir=$ac_optarg ;;
1177 -target | --target | --targe | --targ | --tar | --ta | --t)
1178 ac_prev=target_alias ;;
1179 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1180 target_alias=$ac_optarg ;;
1182 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1183 verbose=yes ;;
1185 -version | --version | --versio | --versi | --vers | -V)
1186 ac_init_version=: ;;
1188 -with-* | --with-*)
1189 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1190 # Reject names that are not valid shell variable names.
1191 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1192 as_fn_error $? "invalid package name: $ac_useropt"
1193 ac_useropt_orig=$ac_useropt
1194 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1195 case $ac_user_opts in
1197 "with_$ac_useropt"
1198 "*) ;;
1199 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1200 ac_unrecognized_sep=', ';;
1201 esac
1202 eval with_$ac_useropt=\$ac_optarg ;;
1204 -without-* | --without-*)
1205 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1206 # Reject names that are not valid shell variable names.
1207 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1208 as_fn_error $? "invalid package name: $ac_useropt"
1209 ac_useropt_orig=$ac_useropt
1210 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1211 case $ac_user_opts in
1213 "with_$ac_useropt"
1214 "*) ;;
1215 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1216 ac_unrecognized_sep=', ';;
1217 esac
1218 eval with_$ac_useropt=no ;;
1220 --x)
1221 # Obsolete; use --with-x.
1222 with_x=yes ;;
1224 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1225 | --x-incl | --x-inc | --x-in | --x-i)
1226 ac_prev=x_includes ;;
1227 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1228 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1229 x_includes=$ac_optarg ;;
1231 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1232 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1233 ac_prev=x_libraries ;;
1234 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1235 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1236 x_libraries=$ac_optarg ;;
1238 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1239 Try \`$0 --help' for more information"
1242 *=*)
1243 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1244 # Reject names that are not valid shell variable names.
1245 case $ac_envvar in #(
1246 '' | [0-9]* | *[!_$as_cr_alnum]* )
1247 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1248 esac
1249 eval $ac_envvar=\$ac_optarg
1250 export $ac_envvar ;;
1253 # FIXME: should be removed in autoconf 3.0.
1254 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1255 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1256 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1257 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1260 esac
1261 done
1263 if test -n "$ac_prev"; then
1264 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1265 as_fn_error $? "missing argument to $ac_option"
1268 if test -n "$ac_unrecognized_opts"; then
1269 case $enable_option_checking in
1270 no) ;;
1271 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1272 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1273 esac
1276 # Check all directory arguments for consistency.
1277 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1278 datadir sysconfdir sharedstatedir localstatedir includedir \
1279 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1280 libdir localedir mandir
1282 eval ac_val=\$$ac_var
1283 # Remove trailing slashes.
1284 case $ac_val in
1285 */ )
1286 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1287 eval $ac_var=\$ac_val;;
1288 esac
1289 # Be sure to have absolute directory names.
1290 case $ac_val in
1291 [\\/$]* | ?:[\\/]* ) continue;;
1292 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1293 esac
1294 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1295 done
1297 # There might be people who depend on the old broken behavior: `$host'
1298 # used to hold the argument of --host etc.
1299 # FIXME: To remove some day.
1300 build=$build_alias
1301 host=$host_alias
1302 target=$target_alias
1304 # FIXME: To remove some day.
1305 if test "x$host_alias" != x; then
1306 if test "x$build_alias" = x; then
1307 cross_compiling=maybe
1308 elif test "x$build_alias" != "x$host_alias"; then
1309 cross_compiling=yes
1313 ac_tool_prefix=
1314 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1316 test "$silent" = yes && exec 6>/dev/null
1319 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1320 ac_ls_di=`ls -di .` &&
1321 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1322 as_fn_error $? "working directory cannot be determined"
1323 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1324 as_fn_error $? "pwd does not report name of working directory"
1327 # Find the source files, if location was not specified.
1328 if test -z "$srcdir"; then
1329 ac_srcdir_defaulted=yes
1330 # Try the directory containing this script, then the parent directory.
1331 ac_confdir=`$as_dirname -- "$as_myself" ||
1332 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1333 X"$as_myself" : 'X\(//\)[^/]' \| \
1334 X"$as_myself" : 'X\(//\)$' \| \
1335 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1336 $as_echo X"$as_myself" |
1337 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1338 s//\1/
1341 /^X\(\/\/\)[^/].*/{
1342 s//\1/
1345 /^X\(\/\/\)$/{
1346 s//\1/
1349 /^X\(\/\).*/{
1350 s//\1/
1353 s/.*/./; q'`
1354 srcdir=$ac_confdir
1355 if test ! -r "$srcdir/$ac_unique_file"; then
1356 srcdir=..
1358 else
1359 ac_srcdir_defaulted=no
1361 if test ! -r "$srcdir/$ac_unique_file"; then
1362 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1363 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1365 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1366 ac_abs_confdir=`(
1367 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1368 pwd)`
1369 # When building in place, set srcdir=.
1370 if test "$ac_abs_confdir" = "$ac_pwd"; then
1371 srcdir=.
1373 # Remove unnecessary trailing slashes from srcdir.
1374 # Double slashes in file names in object file debugging info
1375 # mess up M-x gdb in Emacs.
1376 case $srcdir in
1377 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1378 esac
1379 for ac_var in $ac_precious_vars; do
1380 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1381 eval ac_env_${ac_var}_value=\$${ac_var}
1382 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1383 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1384 done
1387 # Report the --help message.
1389 if test "$ac_init_help" = "long"; then
1390 # Omit some internal or obsolete options to make the list less imposing.
1391 # This message is too long to be a string in the A/UX 3.1 sh.
1392 cat <<_ACEOF
1393 \`configure' configures binutils 2.38 to adapt to many kinds of systems.
1395 Usage: $0 [OPTION]... [VAR=VALUE]...
1397 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1398 VAR=VALUE. See below for descriptions of some of the useful variables.
1400 Defaults for the options are specified in brackets.
1402 Configuration:
1403 -h, --help display this help and exit
1404 --help=short display options specific to this package
1405 --help=recursive display the short help of all the included packages
1406 -V, --version display version information and exit
1407 -q, --quiet, --silent do not print \`checking ...' messages
1408 --cache-file=FILE cache test results in FILE [disabled]
1409 -C, --config-cache alias for \`--cache-file=config.cache'
1410 -n, --no-create do not create output files
1411 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1413 Installation directories:
1414 --prefix=PREFIX install architecture-independent files in PREFIX
1415 [$ac_default_prefix]
1416 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1417 [PREFIX]
1419 By default, \`make install' will install all the files in
1420 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1421 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1422 for instance \`--prefix=\$HOME'.
1424 For better control, use the options below.
1426 Fine tuning of the installation directories:
1427 --bindir=DIR user executables [EPREFIX/bin]
1428 --sbindir=DIR system admin executables [EPREFIX/sbin]
1429 --libexecdir=DIR program executables [EPREFIX/libexec]
1430 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1431 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1432 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1433 --libdir=DIR object code libraries [EPREFIX/lib]
1434 --includedir=DIR C header files [PREFIX/include]
1435 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1436 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1437 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1438 --infodir=DIR info documentation [DATAROOTDIR/info]
1439 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1440 --mandir=DIR man documentation [DATAROOTDIR/man]
1441 --docdir=DIR documentation root [DATAROOTDIR/doc/binutils]
1442 --htmldir=DIR html documentation [DOCDIR]
1443 --dvidir=DIR dvi documentation [DOCDIR]
1444 --pdfdir=DIR pdf documentation [DOCDIR]
1445 --psdir=DIR ps documentation [DOCDIR]
1446 _ACEOF
1448 cat <<\_ACEOF
1450 Program names:
1451 --program-prefix=PREFIX prepend PREFIX to installed program names
1452 --program-suffix=SUFFIX append SUFFIX to installed program names
1453 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1455 System types:
1456 --build=BUILD configure for building on BUILD [guessed]
1457 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1458 --target=TARGET configure for building compilers for TARGET [HOST]
1459 _ACEOF
1462 if test -n "$ac_init_help"; then
1463 case $ac_init_help in
1464 short | recursive ) echo "Configuration of binutils 2.38:";;
1465 esac
1466 cat <<\_ACEOF
1468 Optional Features:
1469 --disable-option-checking ignore unrecognized --enable/--with options
1470 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1471 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1472 --enable-silent-rules less verbose build output (undo: "make V=1")
1473 --disable-silent-rules verbose build output (undo: "make V=0")
1474 --enable-dependency-tracking
1475 do not reject slow dependency extractors
1476 --disable-dependency-tracking
1477 speeds up one-time build
1478 --enable-shared[=PKGS] build shared libraries [default=yes]
1479 --enable-static[=PKGS] build static libraries [default=yes]
1480 --enable-fast-install[=PKGS]
1481 optimize for fast installation [default=yes]
1482 --disable-libtool-lock avoid locking (might break parallel builds)
1483 --enable-plugins Enable support for plugins
1484 --disable-largefile omit support for large files
1485 --enable-checking enable run-time checks
1486 --enable-targets alternative target configurations
1487 --enable-deterministic-archives
1488 ar and ranlib default to -D behavior
1489 --disable-default-strings-all
1490 strings defaults to --data behavior
1491 --enable-f-for-ifunc-symbols
1492 Have nm use F and f for global and local ifunc
1493 symbols
1494 --enable-follow-debug-links
1495 Have readelf and objdump follow debug links by
1496 default
1497 --enable-libctf Handle .ctf type-info sections [default=yes]
1498 --enable-werror treat compile warnings as errors
1499 --enable-build-warnings enable build-time compiler warnings
1500 --disable-nls do not use Native Language Support
1501 --enable-maintainer-mode
1502 enable make rules and dependencies not useful (and
1503 sometimes confusing) to the casual installer
1504 --disable-rpath do not hardcode runtime library paths
1506 Optional Packages:
1507 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1508 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1509 --with-pic try to use only PIC/non-PIC objects [default=use
1510 both]
1511 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1512 --with-debuginfod Enable debuginfo lookups with debuginfod
1513 (auto/yes/no)
1514 --with-system-zlib use installed libz
1515 --with-gnu-ld assume the C compiler uses GNU ld default=no
1516 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1517 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1518 --with-libiconv-type=TYPE type of library to search for (auto/static/shared)
1520 Some influential environment variables:
1521 CC C compiler command
1522 CFLAGS C compiler flags
1523 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1524 nonstandard directory <lib dir>
1525 LIBS libraries to pass to the linker, e.g. -l<library>
1526 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1527 you have headers in a nonstandard directory <include dir>
1528 CPP C preprocessor
1529 PKG_CONFIG path to pkg-config utility
1530 PKG_CONFIG_PATH
1531 directories to add to pkg-config's search path
1532 PKG_CONFIG_LIBDIR
1533 path overriding pkg-config's built-in search path
1534 DEBUGINFOD_CFLAGS
1535 C compiler flags for DEBUGINFOD, overriding pkg-config
1536 DEBUGINFOD_LIBS
1537 linker flags for DEBUGINFOD, overriding pkg-config
1538 YACC The `Yet Another Compiler Compiler' implementation to use.
1539 Defaults to the first program found out of: `bison -y', `byacc',
1540 `yacc'.
1541 YFLAGS The list of arguments that will be passed by default to $YACC.
1542 This script will default YFLAGS to the empty string to avoid a
1543 default value of `-d' given by some make applications.
1545 Use these variables to override the choices made by `configure' or to help
1546 it to find libraries and programs with nonstandard names/locations.
1548 Report bugs to the package provider.
1549 _ACEOF
1550 ac_status=$?
1553 if test "$ac_init_help" = "recursive"; then
1554 # If there are subdirs, report their specific --help.
1555 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1556 test -d "$ac_dir" ||
1557 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1558 continue
1559 ac_builddir=.
1561 case "$ac_dir" in
1562 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1564 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1565 # A ".." for each directory in $ac_dir_suffix.
1566 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1567 case $ac_top_builddir_sub in
1568 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1569 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1570 esac ;;
1571 esac
1572 ac_abs_top_builddir=$ac_pwd
1573 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1574 # for backward compatibility:
1575 ac_top_builddir=$ac_top_build_prefix
1577 case $srcdir in
1578 .) # We are building in place.
1579 ac_srcdir=.
1580 ac_top_srcdir=$ac_top_builddir_sub
1581 ac_abs_top_srcdir=$ac_pwd ;;
1582 [\\/]* | ?:[\\/]* ) # Absolute name.
1583 ac_srcdir=$srcdir$ac_dir_suffix;
1584 ac_top_srcdir=$srcdir
1585 ac_abs_top_srcdir=$srcdir ;;
1586 *) # Relative name.
1587 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1588 ac_top_srcdir=$ac_top_build_prefix$srcdir
1589 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1590 esac
1591 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1593 cd "$ac_dir" || { ac_status=$?; continue; }
1594 # Check for guested configure.
1595 if test -f "$ac_srcdir/configure.gnu"; then
1596 echo &&
1597 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1598 elif test -f "$ac_srcdir/configure"; then
1599 echo &&
1600 $SHELL "$ac_srcdir/configure" --help=recursive
1601 else
1602 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1603 fi || ac_status=$?
1604 cd "$ac_pwd" || { ac_status=$?; break; }
1605 done
1608 test -n "$ac_init_help" && exit $ac_status
1609 if $ac_init_version; then
1610 cat <<\_ACEOF
1611 binutils configure 2.38
1612 generated by GNU Autoconf 2.69
1614 Copyright (C) 2012 Free Software Foundation, Inc.
1615 This configure script is free software; the Free Software Foundation
1616 gives unlimited permission to copy, distribute and modify it.
1617 _ACEOF
1618 exit
1621 ## ------------------------ ##
1622 ## Autoconf initialization. ##
1623 ## ------------------------ ##
1625 # ac_fn_c_try_compile LINENO
1626 # --------------------------
1627 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1628 ac_fn_c_try_compile ()
1630 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1631 rm -f conftest.$ac_objext
1632 if { { ac_try="$ac_compile"
1633 case "(($ac_try" in
1634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1635 *) ac_try_echo=$ac_try;;
1636 esac
1637 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1638 $as_echo "$ac_try_echo"; } >&5
1639 (eval "$ac_compile") 2>conftest.err
1640 ac_status=$?
1641 if test -s conftest.err; then
1642 grep -v '^ *+' conftest.err >conftest.er1
1643 cat conftest.er1 >&5
1644 mv -f conftest.er1 conftest.err
1646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1647 test $ac_status = 0; } && {
1648 test -z "$ac_c_werror_flag" ||
1649 test ! -s conftest.err
1650 } && test -s conftest.$ac_objext; then :
1651 ac_retval=0
1652 else
1653 $as_echo "$as_me: failed program was:" >&5
1654 sed 's/^/| /' conftest.$ac_ext >&5
1656 ac_retval=1
1658 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1659 as_fn_set_status $ac_retval
1661 } # ac_fn_c_try_compile
1663 # ac_fn_c_try_cpp LINENO
1664 # ----------------------
1665 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1666 ac_fn_c_try_cpp ()
1668 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1669 if { { ac_try="$ac_cpp conftest.$ac_ext"
1670 case "(($ac_try" in
1671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1672 *) ac_try_echo=$ac_try;;
1673 esac
1674 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1675 $as_echo "$ac_try_echo"; } >&5
1676 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1677 ac_status=$?
1678 if test -s conftest.err; then
1679 grep -v '^ *+' conftest.err >conftest.er1
1680 cat conftest.er1 >&5
1681 mv -f conftest.er1 conftest.err
1683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1684 test $ac_status = 0; } > conftest.i && {
1685 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1686 test ! -s conftest.err
1687 }; then :
1688 ac_retval=0
1689 else
1690 $as_echo "$as_me: failed program was:" >&5
1691 sed 's/^/| /' conftest.$ac_ext >&5
1693 ac_retval=1
1695 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1696 as_fn_set_status $ac_retval
1698 } # ac_fn_c_try_cpp
1700 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1701 # -------------------------------------------------------
1702 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1703 # the include files in INCLUDES and setting the cache variable VAR
1704 # accordingly.
1705 ac_fn_c_check_header_mongrel ()
1707 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1708 if eval \${$3+:} false; then :
1709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1710 $as_echo_n "checking for $2... " >&6; }
1711 if eval \${$3+:} false; then :
1712 $as_echo_n "(cached) " >&6
1714 eval ac_res=\$$3
1715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1716 $as_echo "$ac_res" >&6; }
1717 else
1718 # Is the header compilable?
1719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1720 $as_echo_n "checking $2 usability... " >&6; }
1721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1722 /* end confdefs.h. */
1724 #include <$2>
1725 _ACEOF
1726 if ac_fn_c_try_compile "$LINENO"; then :
1727 ac_header_compiler=yes
1728 else
1729 ac_header_compiler=no
1731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1733 $as_echo "$ac_header_compiler" >&6; }
1735 # Is the header present?
1736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1737 $as_echo_n "checking $2 presence... " >&6; }
1738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1739 /* end confdefs.h. */
1740 #include <$2>
1741 _ACEOF
1742 if ac_fn_c_try_cpp "$LINENO"; then :
1743 ac_header_preproc=yes
1744 else
1745 ac_header_preproc=no
1747 rm -f conftest.err conftest.i conftest.$ac_ext
1748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1749 $as_echo "$ac_header_preproc" >&6; }
1751 # So? What about this header?
1752 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1753 yes:no: )
1754 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1755 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1756 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1757 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1759 no:yes:* )
1760 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1761 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1762 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1763 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1764 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1765 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1766 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1767 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1768 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1769 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1771 esac
1772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1773 $as_echo_n "checking for $2... " >&6; }
1774 if eval \${$3+:} false; then :
1775 $as_echo_n "(cached) " >&6
1776 else
1777 eval "$3=\$ac_header_compiler"
1779 eval ac_res=\$$3
1780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1781 $as_echo "$ac_res" >&6; }
1783 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1785 } # ac_fn_c_check_header_mongrel
1787 # ac_fn_c_try_run LINENO
1788 # ----------------------
1789 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1790 # that executables *can* be run.
1791 ac_fn_c_try_run ()
1793 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1794 if { { ac_try="$ac_link"
1795 case "(($ac_try" in
1796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1797 *) ac_try_echo=$ac_try;;
1798 esac
1799 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1800 $as_echo "$ac_try_echo"; } >&5
1801 (eval "$ac_link") 2>&5
1802 ac_status=$?
1803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1804 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1805 { { case "(($ac_try" in
1806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1807 *) ac_try_echo=$ac_try;;
1808 esac
1809 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1810 $as_echo "$ac_try_echo"; } >&5
1811 (eval "$ac_try") 2>&5
1812 ac_status=$?
1813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1814 test $ac_status = 0; }; }; then :
1815 ac_retval=0
1816 else
1817 $as_echo "$as_me: program exited with status $ac_status" >&5
1818 $as_echo "$as_me: failed program was:" >&5
1819 sed 's/^/| /' conftest.$ac_ext >&5
1821 ac_retval=$ac_status
1823 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1824 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1825 as_fn_set_status $ac_retval
1827 } # ac_fn_c_try_run
1829 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1830 # -------------------------------------------------------
1831 # Tests whether HEADER exists and can be compiled using the include files in
1832 # INCLUDES, setting the cache variable VAR accordingly.
1833 ac_fn_c_check_header_compile ()
1835 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1837 $as_echo_n "checking for $2... " >&6; }
1838 if eval \${$3+:} false; then :
1839 $as_echo_n "(cached) " >&6
1840 else
1841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1842 /* end confdefs.h. */
1844 #include <$2>
1845 _ACEOF
1846 if ac_fn_c_try_compile "$LINENO"; then :
1847 eval "$3=yes"
1848 else
1849 eval "$3=no"
1851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1853 eval ac_res=\$$3
1854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1855 $as_echo "$ac_res" >&6; }
1856 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1858 } # ac_fn_c_check_header_compile
1860 # ac_fn_c_try_link LINENO
1861 # -----------------------
1862 # Try to link conftest.$ac_ext, and return whether this succeeded.
1863 ac_fn_c_try_link ()
1865 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1866 rm -f conftest.$ac_objext conftest$ac_exeext
1867 if { { ac_try="$ac_link"
1868 case "(($ac_try" in
1869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1870 *) ac_try_echo=$ac_try;;
1871 esac
1872 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1873 $as_echo "$ac_try_echo"; } >&5
1874 (eval "$ac_link") 2>conftest.err
1875 ac_status=$?
1876 if test -s conftest.err; then
1877 grep -v '^ *+' conftest.err >conftest.er1
1878 cat conftest.er1 >&5
1879 mv -f conftest.er1 conftest.err
1881 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1882 test $ac_status = 0; } && {
1883 test -z "$ac_c_werror_flag" ||
1884 test ! -s conftest.err
1885 } && test -s conftest$ac_exeext && {
1886 test "$cross_compiling" = yes ||
1887 test -x conftest$ac_exeext
1888 }; then :
1889 ac_retval=0
1890 else
1891 $as_echo "$as_me: failed program was:" >&5
1892 sed 's/^/| /' conftest.$ac_ext >&5
1894 ac_retval=1
1896 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1897 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1898 # interfere with the next link command; also delete a directory that is
1899 # left behind by Apple's compiler. We do this before executing the actions.
1900 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1901 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1902 as_fn_set_status $ac_retval
1904 } # ac_fn_c_try_link
1906 # ac_fn_c_check_func LINENO FUNC VAR
1907 # ----------------------------------
1908 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1909 ac_fn_c_check_func ()
1911 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1913 $as_echo_n "checking for $2... " >&6; }
1914 if eval \${$3+:} false; then :
1915 $as_echo_n "(cached) " >&6
1916 else
1917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1918 /* end confdefs.h. */
1919 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1920 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1921 #define $2 innocuous_$2
1923 /* System header to define __stub macros and hopefully few prototypes,
1924 which can conflict with char $2 (); below.
1925 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1926 <limits.h> exists even on freestanding compilers. */
1928 #ifdef __STDC__
1929 # include <limits.h>
1930 #else
1931 # include <assert.h>
1932 #endif
1934 #undef $2
1936 /* Override any GCC internal prototype to avoid an error.
1937 Use char because int might match the return type of a GCC
1938 builtin and then its argument prototype would still apply. */
1939 #ifdef __cplusplus
1940 extern "C"
1941 #endif
1942 char $2 ();
1943 /* The GNU C library defines this for functions which it implements
1944 to always fail with ENOSYS. Some functions are actually named
1945 something starting with __ and the normal name is an alias. */
1946 #if defined __stub_$2 || defined __stub___$2
1947 choke me
1948 #endif
1951 main ()
1953 return $2 ();
1955 return 0;
1957 _ACEOF
1958 if ac_fn_c_try_link "$LINENO"; then :
1959 eval "$3=yes"
1960 else
1961 eval "$3=no"
1963 rm -f core conftest.err conftest.$ac_objext \
1964 conftest$ac_exeext conftest.$ac_ext
1966 eval ac_res=\$$3
1967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1968 $as_echo "$ac_res" >&6; }
1969 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1971 } # ac_fn_c_check_func
1973 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1974 # --------------------------------------------
1975 # Tries to find the compile-time value of EXPR in a program that includes
1976 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1977 # computed
1978 ac_fn_c_compute_int ()
1980 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1981 if test "$cross_compiling" = yes; then
1982 # Depending upon the size, compute the lo and hi bounds.
1983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1984 /* end confdefs.h. */
1987 main ()
1989 static int test_array [1 - 2 * !(($2) >= 0)];
1990 test_array [0] = 0;
1991 return test_array [0];
1994 return 0;
1996 _ACEOF
1997 if ac_fn_c_try_compile "$LINENO"; then :
1998 ac_lo=0 ac_mid=0
1999 while :; do
2000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2001 /* end confdefs.h. */
2004 main ()
2006 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2007 test_array [0] = 0;
2008 return test_array [0];
2011 return 0;
2013 _ACEOF
2014 if ac_fn_c_try_compile "$LINENO"; then :
2015 ac_hi=$ac_mid; break
2016 else
2017 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2018 if test $ac_lo -le $ac_mid; then
2019 ac_lo= ac_hi=
2020 break
2022 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2025 done
2026 else
2027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2028 /* end confdefs.h. */
2031 main ()
2033 static int test_array [1 - 2 * !(($2) < 0)];
2034 test_array [0] = 0;
2035 return test_array [0];
2038 return 0;
2040 _ACEOF
2041 if ac_fn_c_try_compile "$LINENO"; then :
2042 ac_hi=-1 ac_mid=-1
2043 while :; do
2044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2045 /* end confdefs.h. */
2048 main ()
2050 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2051 test_array [0] = 0;
2052 return test_array [0];
2055 return 0;
2057 _ACEOF
2058 if ac_fn_c_try_compile "$LINENO"; then :
2059 ac_lo=$ac_mid; break
2060 else
2061 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2062 if test $ac_mid -le $ac_hi; then
2063 ac_lo= ac_hi=
2064 break
2066 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2069 done
2070 else
2071 ac_lo= ac_hi=
2073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2076 # Binary search between lo and hi bounds.
2077 while test "x$ac_lo" != "x$ac_hi"; do
2078 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2080 /* end confdefs.h. */
2083 main ()
2085 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2086 test_array [0] = 0;
2087 return test_array [0];
2090 return 0;
2092 _ACEOF
2093 if ac_fn_c_try_compile "$LINENO"; then :
2094 ac_hi=$ac_mid
2095 else
2096 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2099 done
2100 case $ac_lo in #((
2101 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2102 '') ac_retval=1 ;;
2103 esac
2104 else
2105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2106 /* end confdefs.h. */
2108 static long int longval () { return $2; }
2109 static unsigned long int ulongval () { return $2; }
2110 #include <stdio.h>
2111 #include <stdlib.h>
2113 main ()
2116 FILE *f = fopen ("conftest.val", "w");
2117 if (! f)
2118 return 1;
2119 if (($2) < 0)
2121 long int i = longval ();
2122 if (i != ($2))
2123 return 1;
2124 fprintf (f, "%ld", i);
2126 else
2128 unsigned long int i = ulongval ();
2129 if (i != ($2))
2130 return 1;
2131 fprintf (f, "%lu", i);
2133 /* Do not output a trailing newline, as this causes \r\n confusion
2134 on some platforms. */
2135 return ferror (f) || fclose (f) != 0;
2138 return 0;
2140 _ACEOF
2141 if ac_fn_c_try_run "$LINENO"; then :
2142 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2143 else
2144 ac_retval=1
2146 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2147 conftest.$ac_objext conftest.beam conftest.$ac_ext
2148 rm -f conftest.val
2151 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2152 as_fn_set_status $ac_retval
2154 } # ac_fn_c_compute_int
2156 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2157 # ----------------------------------------------------
2158 # Tries to find if the field MEMBER exists in type AGGR, after including
2159 # INCLUDES, setting cache variable VAR accordingly.
2160 ac_fn_c_check_member ()
2162 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2164 $as_echo_n "checking for $2.$3... " >&6; }
2165 if eval \${$4+:} false; then :
2166 $as_echo_n "(cached) " >&6
2167 else
2168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2169 /* end confdefs.h. */
2172 main ()
2174 static $2 ac_aggr;
2175 if (ac_aggr.$3)
2176 return 0;
2178 return 0;
2180 _ACEOF
2181 if ac_fn_c_try_compile "$LINENO"; then :
2182 eval "$4=yes"
2183 else
2184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2185 /* end confdefs.h. */
2188 main ()
2190 static $2 ac_aggr;
2191 if (sizeof ac_aggr.$3)
2192 return 0;
2194 return 0;
2196 _ACEOF
2197 if ac_fn_c_try_compile "$LINENO"; then :
2198 eval "$4=yes"
2199 else
2200 eval "$4=no"
2202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2206 eval ac_res=\$$4
2207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2208 $as_echo "$ac_res" >&6; }
2209 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2211 } # ac_fn_c_check_member
2213 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2214 # ---------------------------------------------
2215 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2216 # accordingly.
2217 ac_fn_c_check_decl ()
2219 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2220 as_decl_name=`echo $2|sed 's/ *(.*//'`
2221 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2223 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2224 if eval \${$3+:} false; then :
2225 $as_echo_n "(cached) " >&6
2226 else
2227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2228 /* end confdefs.h. */
2231 main ()
2233 #ifndef $as_decl_name
2234 #ifdef __cplusplus
2235 (void) $as_decl_use;
2236 #else
2237 (void) $as_decl_name;
2238 #endif
2239 #endif
2242 return 0;
2244 _ACEOF
2245 if ac_fn_c_try_compile "$LINENO"; then :
2246 eval "$3=yes"
2247 else
2248 eval "$3=no"
2250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2252 eval ac_res=\$$3
2253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2254 $as_echo "$ac_res" >&6; }
2255 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2257 } # ac_fn_c_check_decl
2258 cat >config.log <<_ACEOF
2259 This file contains any messages produced by compilers while
2260 running configure, to aid debugging if configure makes a mistake.
2262 It was created by binutils $as_me 2.38, which was
2263 generated by GNU Autoconf 2.69. Invocation command line was
2265 $ $0 $@
2267 _ACEOF
2268 exec 5>>config.log
2270 cat <<_ASUNAME
2271 ## --------- ##
2272 ## Platform. ##
2273 ## --------- ##
2275 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2276 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2277 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2278 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2279 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2281 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2282 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2284 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2285 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2286 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2287 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2288 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2289 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2290 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2292 _ASUNAME
2294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2295 for as_dir in $PATH
2297 IFS=$as_save_IFS
2298 test -z "$as_dir" && as_dir=.
2299 $as_echo "PATH: $as_dir"
2300 done
2301 IFS=$as_save_IFS
2303 } >&5
2305 cat >&5 <<_ACEOF
2308 ## ----------- ##
2309 ## Core tests. ##
2310 ## ----------- ##
2312 _ACEOF
2315 # Keep a trace of the command line.
2316 # Strip out --no-create and --no-recursion so they do not pile up.
2317 # Strip out --silent because we don't want to record it for future runs.
2318 # Also quote any args containing shell meta-characters.
2319 # Make two passes to allow for proper duplicate-argument suppression.
2320 ac_configure_args=
2321 ac_configure_args0=
2322 ac_configure_args1=
2323 ac_must_keep_next=false
2324 for ac_pass in 1 2
2326 for ac_arg
2328 case $ac_arg in
2329 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2330 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2331 | -silent | --silent | --silen | --sile | --sil)
2332 continue ;;
2333 *\'*)
2334 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2335 esac
2336 case $ac_pass in
2337 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2339 as_fn_append ac_configure_args1 " '$ac_arg'"
2340 if test $ac_must_keep_next = true; then
2341 ac_must_keep_next=false # Got value, back to normal.
2342 else
2343 case $ac_arg in
2344 *=* | --config-cache | -C | -disable-* | --disable-* \
2345 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2346 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2347 | -with-* | --with-* | -without-* | --without-* | --x)
2348 case "$ac_configure_args0 " in
2349 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2350 esac
2352 -* ) ac_must_keep_next=true ;;
2353 esac
2355 as_fn_append ac_configure_args " '$ac_arg'"
2357 esac
2358 done
2359 done
2360 { ac_configure_args0=; unset ac_configure_args0;}
2361 { ac_configure_args1=; unset ac_configure_args1;}
2363 # When interrupted or exit'd, cleanup temporary files, and complete
2364 # config.log. We remove comments because anyway the quotes in there
2365 # would cause problems or look ugly.
2366 # WARNING: Use '\'' to represent an apostrophe within the trap.
2367 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2368 trap 'exit_status=$?
2369 # Save into config.log some information that might help in debugging.
2371 echo
2373 $as_echo "## ---------------- ##
2374 ## Cache variables. ##
2375 ## ---------------- ##"
2376 echo
2377 # The following way of writing the cache mishandles newlines in values,
2379 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2380 eval ac_val=\$$ac_var
2381 case $ac_val in #(
2382 *${as_nl}*)
2383 case $ac_var in #(
2384 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2385 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2386 esac
2387 case $ac_var in #(
2388 _ | IFS | as_nl) ;; #(
2389 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2390 *) { eval $ac_var=; unset $ac_var;} ;;
2391 esac ;;
2392 esac
2393 done
2394 (set) 2>&1 |
2395 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2396 *${as_nl}ac_space=\ *)
2397 sed -n \
2398 "s/'\''/'\''\\\\'\'''\''/g;
2399 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2400 ;; #(
2402 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2404 esac |
2405 sort
2407 echo
2409 $as_echo "## ----------------- ##
2410 ## Output variables. ##
2411 ## ----------------- ##"
2412 echo
2413 for ac_var in $ac_subst_vars
2415 eval ac_val=\$$ac_var
2416 case $ac_val in
2417 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2418 esac
2419 $as_echo "$ac_var='\''$ac_val'\''"
2420 done | sort
2421 echo
2423 if test -n "$ac_subst_files"; then
2424 $as_echo "## ------------------- ##
2425 ## File substitutions. ##
2426 ## ------------------- ##"
2427 echo
2428 for ac_var in $ac_subst_files
2430 eval ac_val=\$$ac_var
2431 case $ac_val in
2432 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2433 esac
2434 $as_echo "$ac_var='\''$ac_val'\''"
2435 done | sort
2436 echo
2439 if test -s confdefs.h; then
2440 $as_echo "## ----------- ##
2441 ## confdefs.h. ##
2442 ## ----------- ##"
2443 echo
2444 cat confdefs.h
2445 echo
2447 test "$ac_signal" != 0 &&
2448 $as_echo "$as_me: caught signal $ac_signal"
2449 $as_echo "$as_me: exit $exit_status"
2450 } >&5
2451 rm -f core *.core core.conftest.* &&
2452 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2453 exit $exit_status
2455 for ac_signal in 1 2 13 15; do
2456 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2457 done
2458 ac_signal=0
2460 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2461 rm -f -r conftest* confdefs.h
2463 $as_echo "/* confdefs.h */" > confdefs.h
2465 # Predefined preprocessor variables.
2467 cat >>confdefs.h <<_ACEOF
2468 #define PACKAGE_NAME "$PACKAGE_NAME"
2469 _ACEOF
2471 cat >>confdefs.h <<_ACEOF
2472 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2473 _ACEOF
2475 cat >>confdefs.h <<_ACEOF
2476 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2477 _ACEOF
2479 cat >>confdefs.h <<_ACEOF
2480 #define PACKAGE_STRING "$PACKAGE_STRING"
2481 _ACEOF
2483 cat >>confdefs.h <<_ACEOF
2484 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2485 _ACEOF
2487 cat >>confdefs.h <<_ACEOF
2488 #define PACKAGE_URL "$PACKAGE_URL"
2489 _ACEOF
2492 # Let the site file select an alternate cache file if it wants to.
2493 # Prefer an explicitly selected file to automatically selected ones.
2494 ac_site_file1=NONE
2495 ac_site_file2=NONE
2496 if test -n "$CONFIG_SITE"; then
2497 # We do not want a PATH search for config.site.
2498 case $CONFIG_SITE in #((
2499 -*) ac_site_file1=./$CONFIG_SITE;;
2500 */*) ac_site_file1=$CONFIG_SITE;;
2501 *) ac_site_file1=./$CONFIG_SITE;;
2502 esac
2503 elif test "x$prefix" != xNONE; then
2504 ac_site_file1=$prefix/share/config.site
2505 ac_site_file2=$prefix/etc/config.site
2506 else
2507 ac_site_file1=$ac_default_prefix/share/config.site
2508 ac_site_file2=$ac_default_prefix/etc/config.site
2510 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2512 test "x$ac_site_file" = xNONE && continue
2513 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2514 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2515 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2516 sed 's/^/| /' "$ac_site_file" >&5
2517 . "$ac_site_file" \
2518 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2519 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2520 as_fn_error $? "failed to load site script $ac_site_file
2521 See \`config.log' for more details" "$LINENO" 5; }
2523 done
2525 if test -r "$cache_file"; then
2526 # Some versions of bash will fail to source /dev/null (special files
2527 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2528 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2529 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2530 $as_echo "$as_me: loading cache $cache_file" >&6;}
2531 case $cache_file in
2532 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2533 *) . "./$cache_file";;
2534 esac
2536 else
2537 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2538 $as_echo "$as_me: creating cache $cache_file" >&6;}
2539 >$cache_file
2542 as_fn_append ac_header_list " stdlib.h"
2543 as_fn_append ac_header_list " unistd.h"
2544 as_fn_append ac_header_list " sys/param.h"
2545 # Check that the precious variables saved in the cache have kept the same
2546 # value.
2547 ac_cache_corrupted=false
2548 for ac_var in $ac_precious_vars; do
2549 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2550 eval ac_new_set=\$ac_env_${ac_var}_set
2551 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2552 eval ac_new_val=\$ac_env_${ac_var}_value
2553 case $ac_old_set,$ac_new_set in
2554 set,)
2555 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2556 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2557 ac_cache_corrupted=: ;;
2558 ,set)
2559 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2560 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2561 ac_cache_corrupted=: ;;
2562 ,);;
2564 if test "x$ac_old_val" != "x$ac_new_val"; then
2565 # differences in whitespace do not lead to failure.
2566 ac_old_val_w=`echo x $ac_old_val`
2567 ac_new_val_w=`echo x $ac_new_val`
2568 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2569 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2570 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2571 ac_cache_corrupted=:
2572 else
2573 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2574 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2575 eval $ac_var=\$ac_old_val
2577 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2578 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2579 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2580 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2581 fi;;
2582 esac
2583 # Pass precious variables to config.status.
2584 if test "$ac_new_set" = set; then
2585 case $ac_new_val in
2586 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2587 *) ac_arg=$ac_var=$ac_new_val ;;
2588 esac
2589 case " $ac_configure_args " in
2590 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2591 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2592 esac
2594 done
2595 if $ac_cache_corrupted; then
2596 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2597 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2598 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2599 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2600 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2602 ## -------------------- ##
2603 ## Main body of script. ##
2604 ## -------------------- ##
2606 ac_ext=c
2607 ac_cpp='$CPP $CPPFLAGS'
2608 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2609 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2610 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2618 ac_aux_dir=
2619 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2620 if test -f "$ac_dir/install-sh"; then
2621 ac_aux_dir=$ac_dir
2622 ac_install_sh="$ac_aux_dir/install-sh -c"
2623 break
2624 elif test -f "$ac_dir/install.sh"; then
2625 ac_aux_dir=$ac_dir
2626 ac_install_sh="$ac_aux_dir/install.sh -c"
2627 break
2628 elif test -f "$ac_dir/shtool"; then
2629 ac_aux_dir=$ac_dir
2630 ac_install_sh="$ac_aux_dir/shtool install -c"
2631 break
2633 done
2634 if test -z "$ac_aux_dir"; then
2635 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2638 # These three variables are undocumented and unsupported,
2639 # and are intended to be withdrawn in a future Autoconf release.
2640 # They can cause serious problems if a builder's source tree is in a directory
2641 # whose full name contains unusual characters.
2642 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2643 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2644 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2647 # Make sure we can run config.sub.
2648 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2649 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2652 $as_echo_n "checking build system type... " >&6; }
2653 if ${ac_cv_build+:} false; then :
2654 $as_echo_n "(cached) " >&6
2655 else
2656 ac_build_alias=$build_alias
2657 test "x$ac_build_alias" = x &&
2658 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2659 test "x$ac_build_alias" = x &&
2660 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2661 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2662 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2666 $as_echo "$ac_cv_build" >&6; }
2667 case $ac_cv_build in
2668 *-*-*) ;;
2669 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2670 esac
2671 build=$ac_cv_build
2672 ac_save_IFS=$IFS; IFS='-'
2673 set x $ac_cv_build
2674 shift
2675 build_cpu=$1
2676 build_vendor=$2
2677 shift; shift
2678 # Remember, the first character of IFS is used to create $*,
2679 # except with old shells:
2680 build_os=$*
2681 IFS=$ac_save_IFS
2682 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2686 $as_echo_n "checking host system type... " >&6; }
2687 if ${ac_cv_host+:} false; then :
2688 $as_echo_n "(cached) " >&6
2689 else
2690 if test "x$host_alias" = x; then
2691 ac_cv_host=$ac_cv_build
2692 else
2693 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2694 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2699 $as_echo "$ac_cv_host" >&6; }
2700 case $ac_cv_host in
2701 *-*-*) ;;
2702 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2703 esac
2704 host=$ac_cv_host
2705 ac_save_IFS=$IFS; IFS='-'
2706 set x $ac_cv_host
2707 shift
2708 host_cpu=$1
2709 host_vendor=$2
2710 shift; shift
2711 # Remember, the first character of IFS is used to create $*,
2712 # except with old shells:
2713 host_os=$*
2714 IFS=$ac_save_IFS
2715 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2719 $as_echo_n "checking target system type... " >&6; }
2720 if ${ac_cv_target+:} false; then :
2721 $as_echo_n "(cached) " >&6
2722 else
2723 if test "x$target_alias" = x; then
2724 ac_cv_target=$ac_cv_host
2725 else
2726 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2727 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2732 $as_echo "$ac_cv_target" >&6; }
2733 case $ac_cv_target in
2734 *-*-*) ;;
2735 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2736 esac
2737 target=$ac_cv_target
2738 ac_save_IFS=$IFS; IFS='-'
2739 set x $ac_cv_target
2740 shift
2741 target_cpu=$1
2742 target_vendor=$2
2743 shift; shift
2744 # Remember, the first character of IFS is used to create $*,
2745 # except with old shells:
2746 target_os=$*
2747 IFS=$ac_save_IFS
2748 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2751 # The aliases save the names the user supplied, while $host etc.
2752 # will get canonicalized.
2753 test -n "$target_alias" &&
2754 test "$program_prefix$program_suffix$program_transform_name" = \
2755 NONENONEs,x,x, &&
2756 program_prefix=${target_alias}-
2758 am__api_version='1.15'
2760 # Find a good install program. We prefer a C program (faster),
2761 # so one script is as good as another. But avoid the broken or
2762 # incompatible versions:
2763 # SysV /etc/install, /usr/sbin/install
2764 # SunOS /usr/etc/install
2765 # IRIX /sbin/install
2766 # AIX /bin/install
2767 # AmigaOS /C/install, which installs bootblocks on floppy discs
2768 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2769 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2770 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2771 # OS/2's system install, which has a completely different semantic
2772 # ./install, which can be erroneously created by make from ./install.sh.
2773 # Reject install programs that cannot install multiple files.
2774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2775 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2776 if test -z "$INSTALL"; then
2777 if ${ac_cv_path_install+:} false; then :
2778 $as_echo_n "(cached) " >&6
2779 else
2780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2781 for as_dir in $PATH
2783 IFS=$as_save_IFS
2784 test -z "$as_dir" && as_dir=.
2785 # Account for people who put trailing slashes in PATH elements.
2786 case $as_dir/ in #((
2787 ./ | .// | /[cC]/* | \
2788 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2789 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2790 /usr/ucb/* ) ;;
2792 # OSF1 and SCO ODT 3.0 have their own names for install.
2793 # Don't use installbsd from OSF since it installs stuff as root
2794 # by default.
2795 for ac_prog in ginstall scoinst install; do
2796 for ac_exec_ext in '' $ac_executable_extensions; do
2797 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2798 if test $ac_prog = install &&
2799 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2800 # AIX install. It has an incompatible calling convention.
2802 elif test $ac_prog = install &&
2803 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2804 # program-specific install script used by HP pwplus--don't use.
2806 else
2807 rm -rf conftest.one conftest.two conftest.dir
2808 echo one > conftest.one
2809 echo two > conftest.two
2810 mkdir conftest.dir
2811 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2812 test -s conftest.one && test -s conftest.two &&
2813 test -s conftest.dir/conftest.one &&
2814 test -s conftest.dir/conftest.two
2815 then
2816 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2817 break 3
2821 done
2822 done
2824 esac
2826 done
2827 IFS=$as_save_IFS
2829 rm -rf conftest.one conftest.two conftest.dir
2832 if test "${ac_cv_path_install+set}" = set; then
2833 INSTALL=$ac_cv_path_install
2834 else
2835 # As a last resort, use the slow shell script. Don't cache a
2836 # value for INSTALL within a source directory, because that will
2837 # break other packages using the cache if that directory is
2838 # removed, or if the value is a relative name.
2839 INSTALL=$ac_install_sh
2842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2843 $as_echo "$INSTALL" >&6; }
2845 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2846 # It thinks the first close brace ends the variable substitution.
2847 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2849 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2851 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2854 $as_echo_n "checking whether build environment is sane... " >&6; }
2855 # Reject unsafe characters in $srcdir or the absolute working directory
2856 # name. Accept space and tab only in the latter.
2857 am_lf='
2859 case `pwd` in
2860 *[\\\"\#\$\&\'\`$am_lf]*)
2861 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2862 esac
2863 case $srcdir in
2864 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2865 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2866 esac
2868 # Do 'set' in a subshell so we don't clobber the current shell's
2869 # arguments. Must try -L first in case configure is actually a
2870 # symlink; some systems play weird games with the mod time of symlinks
2871 # (eg FreeBSD returns the mod time of the symlink's containing
2872 # directory).
2873 if (
2874 am_has_slept=no
2875 for am_try in 1 2; do
2876 echo "timestamp, slept: $am_has_slept" > conftest.file
2877 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2878 if test "$*" = "X"; then
2879 # -L didn't work.
2880 set X `ls -t "$srcdir/configure" conftest.file`
2882 if test "$*" != "X $srcdir/configure conftest.file" \
2883 && test "$*" != "X conftest.file $srcdir/configure"; then
2885 # If neither matched, then we have a broken ls. This can happen
2886 # if, for instance, CONFIG_SHELL is bash and it inherits a
2887 # broken ls alias from the environment. This has actually
2888 # happened. Such a system could not be considered "sane".
2889 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2890 alias in your environment" "$LINENO" 5
2892 if test "$2" = conftest.file || test $am_try -eq 2; then
2893 break
2895 # Just in case.
2896 sleep 1
2897 am_has_slept=yes
2898 done
2899 test "$2" = conftest.file
2901 then
2902 # Ok.
2904 else
2905 as_fn_error $? "newly created file is older than distributed files!
2906 Check your system clock" "$LINENO" 5
2908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2909 $as_echo "yes" >&6; }
2910 # If we didn't sleep, we still need to ensure time stamps of config.status and
2911 # generated files are strictly newer.
2912 am_sleep_pid=
2913 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2914 ( sleep 1 ) &
2915 am_sleep_pid=$!
2918 rm -f conftest.file
2920 test "$program_prefix" != NONE &&
2921 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2922 # Use a double $ so make ignores it.
2923 test "$program_suffix" != NONE &&
2924 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2925 # Double any \ or $.
2926 # By default was `s,x,x', remove it if useless.
2927 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2928 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2930 # Expand $ac_aux_dir to an absolute path.
2931 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2933 if test x"${MISSING+set}" != xset; then
2934 case $am_aux_dir in
2935 *\ * | *\ *)
2936 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2938 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2939 esac
2941 # Use eval to expand $SHELL
2942 if eval "$MISSING --is-lightweight"; then
2943 am_missing_run="$MISSING "
2944 else
2945 am_missing_run=
2946 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2947 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2950 if test x"${install_sh+set}" != xset; then
2951 case $am_aux_dir in
2952 *\ * | *\ *)
2953 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2955 install_sh="\${SHELL} $am_aux_dir/install-sh"
2956 esac
2959 # Installed binaries are usually stripped using 'strip' when the user
2960 # run "make install-strip". However 'strip' might not be the right
2961 # tool to use in cross-compilation environments, therefore Automake
2962 # will honor the 'STRIP' environment variable to overrule this program.
2963 if test "$cross_compiling" != no; then
2964 if test -n "$ac_tool_prefix"; then
2965 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2966 set dummy ${ac_tool_prefix}strip; ac_word=$2
2967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2968 $as_echo_n "checking for $ac_word... " >&6; }
2969 if ${ac_cv_prog_STRIP+:} false; then :
2970 $as_echo_n "(cached) " >&6
2971 else
2972 if test -n "$STRIP"; then
2973 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2974 else
2975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2976 for as_dir in $PATH
2978 IFS=$as_save_IFS
2979 test -z "$as_dir" && as_dir=.
2980 for ac_exec_ext in '' $ac_executable_extensions; do
2981 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2982 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2984 break 2
2986 done
2987 done
2988 IFS=$as_save_IFS
2992 STRIP=$ac_cv_prog_STRIP
2993 if test -n "$STRIP"; then
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2995 $as_echo "$STRIP" >&6; }
2996 else
2997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2998 $as_echo "no" >&6; }
3003 if test -z "$ac_cv_prog_STRIP"; then
3004 ac_ct_STRIP=$STRIP
3005 # Extract the first word of "strip", so it can be a program name with args.
3006 set dummy strip; ac_word=$2
3007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3008 $as_echo_n "checking for $ac_word... " >&6; }
3009 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3010 $as_echo_n "(cached) " >&6
3011 else
3012 if test -n "$ac_ct_STRIP"; then
3013 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3014 else
3015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3016 for as_dir in $PATH
3018 IFS=$as_save_IFS
3019 test -z "$as_dir" && as_dir=.
3020 for ac_exec_ext in '' $ac_executable_extensions; do
3021 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3022 ac_cv_prog_ac_ct_STRIP="strip"
3023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3024 break 2
3026 done
3027 done
3028 IFS=$as_save_IFS
3032 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3033 if test -n "$ac_ct_STRIP"; then
3034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3035 $as_echo "$ac_ct_STRIP" >&6; }
3036 else
3037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3038 $as_echo "no" >&6; }
3041 if test "x$ac_ct_STRIP" = x; then
3042 STRIP=":"
3043 else
3044 case $cross_compiling:$ac_tool_warned in
3045 yes:)
3046 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3047 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3048 ac_tool_warned=yes ;;
3049 esac
3050 STRIP=$ac_ct_STRIP
3052 else
3053 STRIP="$ac_cv_prog_STRIP"
3057 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3060 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3061 if test -z "$MKDIR_P"; then
3062 if ${ac_cv_path_mkdir+:} false; then :
3063 $as_echo_n "(cached) " >&6
3064 else
3065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3066 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3068 IFS=$as_save_IFS
3069 test -z "$as_dir" && as_dir=.
3070 for ac_prog in mkdir gmkdir; do
3071 for ac_exec_ext in '' $ac_executable_extensions; do
3072 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3073 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3074 'mkdir (GNU coreutils) '* | \
3075 'mkdir (coreutils) '* | \
3076 'mkdir (fileutils) '4.1*)
3077 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3078 break 3;;
3079 esac
3080 done
3081 done
3082 done
3083 IFS=$as_save_IFS
3087 test -d ./--version && rmdir ./--version
3088 if test "${ac_cv_path_mkdir+set}" = set; then
3089 MKDIR_P="$ac_cv_path_mkdir -p"
3090 else
3091 # As a last resort, use the slow shell script. Don't cache a
3092 # value for MKDIR_P within a source directory, because that will
3093 # break other packages using the cache if that directory is
3094 # removed, or if the value is a relative name.
3095 MKDIR_P="$ac_install_sh -d"
3098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3099 $as_echo "$MKDIR_P" >&6; }
3101 for ac_prog in gawk mawk nawk awk
3103 # Extract the first word of "$ac_prog", so it can be a program name with args.
3104 set dummy $ac_prog; ac_word=$2
3105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3106 $as_echo_n "checking for $ac_word... " >&6; }
3107 if ${ac_cv_prog_AWK+:} false; then :
3108 $as_echo_n "(cached) " >&6
3109 else
3110 if test -n "$AWK"; then
3111 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3112 else
3113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3114 for as_dir in $PATH
3116 IFS=$as_save_IFS
3117 test -z "$as_dir" && as_dir=.
3118 for ac_exec_ext in '' $ac_executable_extensions; do
3119 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3120 ac_cv_prog_AWK="$ac_prog"
3121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3122 break 2
3124 done
3125 done
3126 IFS=$as_save_IFS
3130 AWK=$ac_cv_prog_AWK
3131 if test -n "$AWK"; then
3132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3133 $as_echo "$AWK" >&6; }
3134 else
3135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3136 $as_echo "no" >&6; }
3140 test -n "$AWK" && break
3141 done
3143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3144 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3145 set x ${MAKE-make}
3146 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3147 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3148 $as_echo_n "(cached) " >&6
3149 else
3150 cat >conftest.make <<\_ACEOF
3151 SHELL = /bin/sh
3152 all:
3153 @echo '@@@%%%=$(MAKE)=@@@%%%'
3154 _ACEOF
3155 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3156 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3157 *@@@%%%=?*=@@@%%%*)
3158 eval ac_cv_prog_make_${ac_make}_set=yes;;
3160 eval ac_cv_prog_make_${ac_make}_set=no;;
3161 esac
3162 rm -f conftest.make
3164 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3166 $as_echo "yes" >&6; }
3167 SET_MAKE=
3168 else
3169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3170 $as_echo "no" >&6; }
3171 SET_MAKE="MAKE=${MAKE-make}"
3174 rm -rf .tst 2>/dev/null
3175 mkdir .tst 2>/dev/null
3176 if test -d .tst; then
3177 am__leading_dot=.
3178 else
3179 am__leading_dot=_
3181 rmdir .tst 2>/dev/null
3183 # Check whether --enable-silent-rules was given.
3184 if test "${enable_silent_rules+set}" = set; then :
3185 enableval=$enable_silent_rules;
3188 case $enable_silent_rules in # (((
3189 yes) AM_DEFAULT_VERBOSITY=0;;
3190 no) AM_DEFAULT_VERBOSITY=1;;
3191 *) AM_DEFAULT_VERBOSITY=1;;
3192 esac
3193 am_make=${MAKE-make}
3194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3195 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3196 if ${am_cv_make_support_nested_variables+:} false; then :
3197 $as_echo_n "(cached) " >&6
3198 else
3199 if $as_echo 'TRUE=$(BAR$(V))
3200 BAR0=false
3201 BAR1=true
3203 am__doit:
3204 @$(TRUE)
3205 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3206 am_cv_make_support_nested_variables=yes
3207 else
3208 am_cv_make_support_nested_variables=no
3211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3212 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3213 if test $am_cv_make_support_nested_variables = yes; then
3214 AM_V='$(V)'
3215 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3216 else
3217 AM_V=$AM_DEFAULT_VERBOSITY
3218 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3220 AM_BACKSLASH='\'
3222 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3223 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3224 # is not polluted with repeated "-I."
3225 am__isrc=' -I$(srcdir)'
3226 # test to see if srcdir already configured
3227 if test -f $srcdir/config.status; then
3228 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3232 # test whether we have cygpath
3233 if test -z "$CYGPATH_W"; then
3234 if (cygpath --version) >/dev/null 2>/dev/null; then
3235 CYGPATH_W='cygpath -w'
3236 else
3237 CYGPATH_W=echo
3242 # Define the identity of the package.
3243 PACKAGE='binutils'
3244 VERSION='2.38'
3247 cat >>confdefs.h <<_ACEOF
3248 #define PACKAGE "$PACKAGE"
3249 _ACEOF
3252 cat >>confdefs.h <<_ACEOF
3253 #define VERSION "$VERSION"
3254 _ACEOF
3256 # Some tools Automake needs.
3258 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3261 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3264 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3267 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3270 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3272 # For better backward compatibility. To be removed once Automake 1.9.x
3273 # dies out for good. For more background, see:
3274 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3275 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3276 mkdir_p='$(MKDIR_P)'
3278 # We need awk for the "check" target (and possibly the TAP driver). The
3279 # system "awk" is bad on some platforms.
3280 # Always define AMTAR for backward compatibility. Yes, it's still used
3281 # in the wild :-( We should find a proper way to deprecate it ...
3282 AMTAR='$${TAR-tar}'
3285 # We'll loop over all known methods to create a tar archive until one works.
3286 _am_tools='gnutar pax cpio none'
3288 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3295 # POSIX will say in a future version that running "rm -f" with no argument
3296 # is OK; and we want to be able to make that assumption in our Makefile
3297 # recipes. So use an aggressive probe to check that the usage we want is
3298 # actually supported "in the wild" to an acceptable degree.
3299 # See automake bug#10828.
3300 # To make any issue more visible, cause the running configure to be aborted
3301 # by default if the 'rm' program in use doesn't match our expectations; the
3302 # user can still override this though.
3303 if rm -f && rm -fr && rm -rf; then : OK; else
3304 cat >&2 <<'END'
3305 Oops!
3307 Your 'rm' program seems unable to run without file operands specified
3308 on the command line, even when the '-f' option is present. This is contrary
3309 to the behaviour of most rm programs out there, and not conforming with
3310 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3312 Please tell bug-automake@gnu.org about your system, including the value
3313 of your $PATH and any error possibly output before this message. This
3314 can help us improve future automake versions.
3317 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3318 echo 'Configuration will proceed anyway, since you have set the' >&2
3319 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3320 echo >&2
3321 else
3322 cat >&2 <<'END'
3323 Aborting the configuration process, to ensure you take notice of the issue.
3325 You can download and install GNU coreutils to get an 'rm' implementation
3326 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3328 If you want to complete the configuration process using your problematic
3329 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3330 to "yes", and re-run configure.
3333 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3337 # Check whether --enable-silent-rules was given.
3338 if test "${enable_silent_rules+set}" = set; then :
3339 enableval=$enable_silent_rules;
3342 case $enable_silent_rules in # (((
3343 yes) AM_DEFAULT_VERBOSITY=0;;
3344 no) AM_DEFAULT_VERBOSITY=1;;
3345 *) AM_DEFAULT_VERBOSITY=0;;
3346 esac
3347 am_make=${MAKE-make}
3348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3349 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3350 if ${am_cv_make_support_nested_variables+:} false; then :
3351 $as_echo_n "(cached) " >&6
3352 else
3353 if $as_echo 'TRUE=$(BAR$(V))
3354 BAR0=false
3355 BAR1=true
3357 am__doit:
3358 @$(TRUE)
3359 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3360 am_cv_make_support_nested_variables=yes
3361 else
3362 am_cv_make_support_nested_variables=no
3365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3366 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3367 if test $am_cv_make_support_nested_variables = yes; then
3368 AM_V='$(V)'
3369 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3370 else
3371 AM_V=$AM_DEFAULT_VERBOSITY
3372 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3374 AM_BACKSLASH='\'
3377 ac_ext=c
3378 ac_cpp='$CPP $CPPFLAGS'
3379 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3380 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3381 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3382 if test -n "$ac_tool_prefix"; then
3383 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3384 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3386 $as_echo_n "checking for $ac_word... " >&6; }
3387 if ${ac_cv_prog_CC+:} false; then :
3388 $as_echo_n "(cached) " >&6
3389 else
3390 if test -n "$CC"; then
3391 ac_cv_prog_CC="$CC" # Let the user override the test.
3392 else
3393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3394 for as_dir in $PATH
3396 IFS=$as_save_IFS
3397 test -z "$as_dir" && as_dir=.
3398 for ac_exec_ext in '' $ac_executable_extensions; do
3399 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3400 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3402 break 2
3404 done
3405 done
3406 IFS=$as_save_IFS
3410 CC=$ac_cv_prog_CC
3411 if test -n "$CC"; then
3412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3413 $as_echo "$CC" >&6; }
3414 else
3415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3416 $as_echo "no" >&6; }
3421 if test -z "$ac_cv_prog_CC"; then
3422 ac_ct_CC=$CC
3423 # Extract the first word of "gcc", so it can be a program name with args.
3424 set dummy gcc; ac_word=$2
3425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3426 $as_echo_n "checking for $ac_word... " >&6; }
3427 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3428 $as_echo_n "(cached) " >&6
3429 else
3430 if test -n "$ac_ct_CC"; then
3431 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3432 else
3433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3434 for as_dir in $PATH
3436 IFS=$as_save_IFS
3437 test -z "$as_dir" && as_dir=.
3438 for ac_exec_ext in '' $ac_executable_extensions; do
3439 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3440 ac_cv_prog_ac_ct_CC="gcc"
3441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3442 break 2
3444 done
3445 done
3446 IFS=$as_save_IFS
3450 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3451 if test -n "$ac_ct_CC"; then
3452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3453 $as_echo "$ac_ct_CC" >&6; }
3454 else
3455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3456 $as_echo "no" >&6; }
3459 if test "x$ac_ct_CC" = x; then
3460 CC=""
3461 else
3462 case $cross_compiling:$ac_tool_warned in
3463 yes:)
3464 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3465 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3466 ac_tool_warned=yes ;;
3467 esac
3468 CC=$ac_ct_CC
3470 else
3471 CC="$ac_cv_prog_CC"
3474 if test -z "$CC"; then
3475 if test -n "$ac_tool_prefix"; then
3476 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3477 set dummy ${ac_tool_prefix}cc; ac_word=$2
3478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3479 $as_echo_n "checking for $ac_word... " >&6; }
3480 if ${ac_cv_prog_CC+:} false; then :
3481 $as_echo_n "(cached) " >&6
3482 else
3483 if test -n "$CC"; then
3484 ac_cv_prog_CC="$CC" # Let the user override the test.
3485 else
3486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3487 for as_dir in $PATH
3489 IFS=$as_save_IFS
3490 test -z "$as_dir" && as_dir=.
3491 for ac_exec_ext in '' $ac_executable_extensions; do
3492 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3493 ac_cv_prog_CC="${ac_tool_prefix}cc"
3494 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3495 break 2
3497 done
3498 done
3499 IFS=$as_save_IFS
3503 CC=$ac_cv_prog_CC
3504 if test -n "$CC"; then
3505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3506 $as_echo "$CC" >&6; }
3507 else
3508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3509 $as_echo "no" >&6; }
3515 if test -z "$CC"; then
3516 # Extract the first word of "cc", so it can be a program name with args.
3517 set dummy cc; ac_word=$2
3518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3519 $as_echo_n "checking for $ac_word... " >&6; }
3520 if ${ac_cv_prog_CC+:} false; then :
3521 $as_echo_n "(cached) " >&6
3522 else
3523 if test -n "$CC"; then
3524 ac_cv_prog_CC="$CC" # Let the user override the test.
3525 else
3526 ac_prog_rejected=no
3527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3528 for as_dir in $PATH
3530 IFS=$as_save_IFS
3531 test -z "$as_dir" && as_dir=.
3532 for ac_exec_ext in '' $ac_executable_extensions; do
3533 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3534 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3535 ac_prog_rejected=yes
3536 continue
3538 ac_cv_prog_CC="cc"
3539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3540 break 2
3542 done
3543 done
3544 IFS=$as_save_IFS
3546 if test $ac_prog_rejected = yes; then
3547 # We found a bogon in the path, so make sure we never use it.
3548 set dummy $ac_cv_prog_CC
3549 shift
3550 if test $# != 0; then
3551 # We chose a different compiler from the bogus one.
3552 # However, it has the same basename, so the bogon will be chosen
3553 # first if we set CC to just the basename; use the full file name.
3554 shift
3555 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3560 CC=$ac_cv_prog_CC
3561 if test -n "$CC"; then
3562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3563 $as_echo "$CC" >&6; }
3564 else
3565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3566 $as_echo "no" >&6; }
3571 if test -z "$CC"; then
3572 if test -n "$ac_tool_prefix"; then
3573 for ac_prog in cl.exe
3575 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3576 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3578 $as_echo_n "checking for $ac_word... " >&6; }
3579 if ${ac_cv_prog_CC+:} false; then :
3580 $as_echo_n "(cached) " >&6
3581 else
3582 if test -n "$CC"; then
3583 ac_cv_prog_CC="$CC" # Let the user override the test.
3584 else
3585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3586 for as_dir in $PATH
3588 IFS=$as_save_IFS
3589 test -z "$as_dir" && as_dir=.
3590 for ac_exec_ext in '' $ac_executable_extensions; do
3591 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3592 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3594 break 2
3596 done
3597 done
3598 IFS=$as_save_IFS
3602 CC=$ac_cv_prog_CC
3603 if test -n "$CC"; then
3604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3605 $as_echo "$CC" >&6; }
3606 else
3607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3608 $as_echo "no" >&6; }
3612 test -n "$CC" && break
3613 done
3615 if test -z "$CC"; then
3616 ac_ct_CC=$CC
3617 for ac_prog in cl.exe
3619 # Extract the first word of "$ac_prog", so it can be a program name with args.
3620 set dummy $ac_prog; ac_word=$2
3621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3622 $as_echo_n "checking for $ac_word... " >&6; }
3623 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3624 $as_echo_n "(cached) " >&6
3625 else
3626 if test -n "$ac_ct_CC"; then
3627 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3628 else
3629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3630 for as_dir in $PATH
3632 IFS=$as_save_IFS
3633 test -z "$as_dir" && as_dir=.
3634 for ac_exec_ext in '' $ac_executable_extensions; do
3635 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3636 ac_cv_prog_ac_ct_CC="$ac_prog"
3637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3638 break 2
3640 done
3641 done
3642 IFS=$as_save_IFS
3646 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3647 if test -n "$ac_ct_CC"; then
3648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3649 $as_echo "$ac_ct_CC" >&6; }
3650 else
3651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3652 $as_echo "no" >&6; }
3656 test -n "$ac_ct_CC" && break
3657 done
3659 if test "x$ac_ct_CC" = x; then
3660 CC=""
3661 else
3662 case $cross_compiling:$ac_tool_warned in
3663 yes:)
3664 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3665 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3666 ac_tool_warned=yes ;;
3667 esac
3668 CC=$ac_ct_CC
3675 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3676 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3677 as_fn_error $? "no acceptable C compiler found in \$PATH
3678 See \`config.log' for more details" "$LINENO" 5; }
3680 # Provide some information about the compiler.
3681 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3682 set X $ac_compile
3683 ac_compiler=$2
3684 for ac_option in --version -v -V -qversion; do
3685 { { ac_try="$ac_compiler $ac_option >&5"
3686 case "(($ac_try" in
3687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3688 *) ac_try_echo=$ac_try;;
3689 esac
3690 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3691 $as_echo "$ac_try_echo"; } >&5
3692 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3693 ac_status=$?
3694 if test -s conftest.err; then
3695 sed '10a\
3696 ... rest of stderr output deleted ...
3697 10q' conftest.err >conftest.er1
3698 cat conftest.er1 >&5
3700 rm -f conftest.er1 conftest.err
3701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3702 test $ac_status = 0; }
3703 done
3705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3706 /* end confdefs.h. */
3709 main ()
3713 return 0;
3715 _ACEOF
3716 ac_clean_files_save=$ac_clean_files
3717 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3718 # Try to create an executable without -o first, disregard a.out.
3719 # It will help us diagnose broken compilers, and finding out an intuition
3720 # of exeext.
3721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3722 $as_echo_n "checking whether the C compiler works... " >&6; }
3723 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3725 # The possible output files:
3726 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3728 ac_rmfiles=
3729 for ac_file in $ac_files
3731 case $ac_file in
3732 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3733 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3734 esac
3735 done
3736 rm -f $ac_rmfiles
3738 if { { ac_try="$ac_link_default"
3739 case "(($ac_try" in
3740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3741 *) ac_try_echo=$ac_try;;
3742 esac
3743 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3744 $as_echo "$ac_try_echo"; } >&5
3745 (eval "$ac_link_default") 2>&5
3746 ac_status=$?
3747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3748 test $ac_status = 0; }; then :
3749 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3750 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3751 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3752 # so that the user can short-circuit this test for compilers unknown to
3753 # Autoconf.
3754 for ac_file in $ac_files ''
3756 test -f "$ac_file" || continue
3757 case $ac_file in
3758 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3760 [ab].out )
3761 # We found the default executable, but exeext='' is most
3762 # certainly right.
3763 break;;
3764 *.* )
3765 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3766 then :; else
3767 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3769 # We set ac_cv_exeext here because the later test for it is not
3770 # safe: cross compilers may not add the suffix if given an `-o'
3771 # argument, so we may need to know it at that point already.
3772 # Even if this section looks crufty: it has the advantage of
3773 # actually working.
3774 break;;
3776 break;;
3777 esac
3778 done
3779 test "$ac_cv_exeext" = no && ac_cv_exeext=
3781 else
3782 ac_file=''
3784 if test -z "$ac_file"; then :
3785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3786 $as_echo "no" >&6; }
3787 $as_echo "$as_me: failed program was:" >&5
3788 sed 's/^/| /' conftest.$ac_ext >&5
3790 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3791 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3792 as_fn_error 77 "C compiler cannot create executables
3793 See \`config.log' for more details" "$LINENO" 5; }
3794 else
3795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3796 $as_echo "yes" >&6; }
3798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3799 $as_echo_n "checking for C compiler default output file name... " >&6; }
3800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3801 $as_echo "$ac_file" >&6; }
3802 ac_exeext=$ac_cv_exeext
3804 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3805 ac_clean_files=$ac_clean_files_save
3806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3807 $as_echo_n "checking for suffix of executables... " >&6; }
3808 if { { ac_try="$ac_link"
3809 case "(($ac_try" in
3810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3811 *) ac_try_echo=$ac_try;;
3812 esac
3813 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3814 $as_echo "$ac_try_echo"; } >&5
3815 (eval "$ac_link") 2>&5
3816 ac_status=$?
3817 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3818 test $ac_status = 0; }; then :
3819 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3820 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3821 # work properly (i.e., refer to `conftest.exe'), while it won't with
3822 # `rm'.
3823 for ac_file in conftest.exe conftest conftest.*; do
3824 test -f "$ac_file" || continue
3825 case $ac_file in
3826 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3827 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3828 break;;
3829 * ) break;;
3830 esac
3831 done
3832 else
3833 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3834 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3835 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3836 See \`config.log' for more details" "$LINENO" 5; }
3838 rm -f conftest conftest$ac_cv_exeext
3839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3840 $as_echo "$ac_cv_exeext" >&6; }
3842 rm -f conftest.$ac_ext
3843 EXEEXT=$ac_cv_exeext
3844 ac_exeext=$EXEEXT
3845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3846 /* end confdefs.h. */
3847 #include <stdio.h>
3849 main ()
3851 FILE *f = fopen ("conftest.out", "w");
3852 return ferror (f) || fclose (f) != 0;
3855 return 0;
3857 _ACEOF
3858 ac_clean_files="$ac_clean_files conftest.out"
3859 # Check that the compiler produces executables we can run. If not, either
3860 # the compiler is broken, or we cross compile.
3861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3862 $as_echo_n "checking whether we are cross compiling... " >&6; }
3863 if test "$cross_compiling" != yes; then
3864 { { ac_try="$ac_link"
3865 case "(($ac_try" in
3866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3867 *) ac_try_echo=$ac_try;;
3868 esac
3869 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3870 $as_echo "$ac_try_echo"; } >&5
3871 (eval "$ac_link") 2>&5
3872 ac_status=$?
3873 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3874 test $ac_status = 0; }
3875 if { ac_try='./conftest$ac_cv_exeext'
3876 { { case "(($ac_try" in
3877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3878 *) ac_try_echo=$ac_try;;
3879 esac
3880 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3881 $as_echo "$ac_try_echo"; } >&5
3882 (eval "$ac_try") 2>&5
3883 ac_status=$?
3884 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3885 test $ac_status = 0; }; }; then
3886 cross_compiling=no
3887 else
3888 if test "$cross_compiling" = maybe; then
3889 cross_compiling=yes
3890 else
3891 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3892 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3893 as_fn_error $? "cannot run C compiled programs.
3894 If you meant to cross compile, use \`--host'.
3895 See \`config.log' for more details" "$LINENO" 5; }
3899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3900 $as_echo "$cross_compiling" >&6; }
3902 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3903 ac_clean_files=$ac_clean_files_save
3904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3905 $as_echo_n "checking for suffix of object files... " >&6; }
3906 if ${ac_cv_objext+:} false; then :
3907 $as_echo_n "(cached) " >&6
3908 else
3909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3910 /* end confdefs.h. */
3913 main ()
3917 return 0;
3919 _ACEOF
3920 rm -f conftest.o conftest.obj
3921 if { { ac_try="$ac_compile"
3922 case "(($ac_try" in
3923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3924 *) ac_try_echo=$ac_try;;
3925 esac
3926 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3927 $as_echo "$ac_try_echo"; } >&5
3928 (eval "$ac_compile") 2>&5
3929 ac_status=$?
3930 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3931 test $ac_status = 0; }; then :
3932 for ac_file in conftest.o conftest.obj conftest.*; do
3933 test -f "$ac_file" || continue;
3934 case $ac_file in
3935 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3936 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3937 break;;
3938 esac
3939 done
3940 else
3941 $as_echo "$as_me: failed program was:" >&5
3942 sed 's/^/| /' conftest.$ac_ext >&5
3944 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3945 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3946 as_fn_error $? "cannot compute suffix of object files: cannot compile
3947 See \`config.log' for more details" "$LINENO" 5; }
3949 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3952 $as_echo "$ac_cv_objext" >&6; }
3953 OBJEXT=$ac_cv_objext
3954 ac_objext=$OBJEXT
3955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3956 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3957 if ${ac_cv_c_compiler_gnu+:} false; then :
3958 $as_echo_n "(cached) " >&6
3959 else
3960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3961 /* end confdefs.h. */
3964 main ()
3966 #ifndef __GNUC__
3967 choke me
3968 #endif
3971 return 0;
3973 _ACEOF
3974 if ac_fn_c_try_compile "$LINENO"; then :
3975 ac_compiler_gnu=yes
3976 else
3977 ac_compiler_gnu=no
3979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3980 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3984 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3985 if test $ac_compiler_gnu = yes; then
3986 GCC=yes
3987 else
3988 GCC=
3990 ac_test_CFLAGS=${CFLAGS+set}
3991 ac_save_CFLAGS=$CFLAGS
3992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3993 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3994 if ${ac_cv_prog_cc_g+:} false; then :
3995 $as_echo_n "(cached) " >&6
3996 else
3997 ac_save_c_werror_flag=$ac_c_werror_flag
3998 ac_c_werror_flag=yes
3999 ac_cv_prog_cc_g=no
4000 CFLAGS="-g"
4001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4002 /* end confdefs.h. */
4005 main ()
4009 return 0;
4011 _ACEOF
4012 if ac_fn_c_try_compile "$LINENO"; then :
4013 ac_cv_prog_cc_g=yes
4014 else
4015 CFLAGS=""
4016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4017 /* end confdefs.h. */
4020 main ()
4024 return 0;
4026 _ACEOF
4027 if ac_fn_c_try_compile "$LINENO"; then :
4029 else
4030 ac_c_werror_flag=$ac_save_c_werror_flag
4031 CFLAGS="-g"
4032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4033 /* end confdefs.h. */
4036 main ()
4040 return 0;
4042 _ACEOF
4043 if ac_fn_c_try_compile "$LINENO"; then :
4044 ac_cv_prog_cc_g=yes
4046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4051 ac_c_werror_flag=$ac_save_c_werror_flag
4053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4054 $as_echo "$ac_cv_prog_cc_g" >&6; }
4055 if test "$ac_test_CFLAGS" = set; then
4056 CFLAGS=$ac_save_CFLAGS
4057 elif test $ac_cv_prog_cc_g = yes; then
4058 if test "$GCC" = yes; then
4059 CFLAGS="-g -O2"
4060 else
4061 CFLAGS="-g"
4063 else
4064 if test "$GCC" = yes; then
4065 CFLAGS="-O2"
4066 else
4067 CFLAGS=
4070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4071 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4072 if ${ac_cv_prog_cc_c89+:} false; then :
4073 $as_echo_n "(cached) " >&6
4074 else
4075 ac_cv_prog_cc_c89=no
4076 ac_save_CC=$CC
4077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4078 /* end confdefs.h. */
4079 #include <stdarg.h>
4080 #include <stdio.h>
4081 struct stat;
4082 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4083 struct buf { int x; };
4084 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4085 static char *e (p, i)
4086 char **p;
4087 int i;
4089 return p[i];
4091 static char *f (char * (*g) (char **, int), char **p, ...)
4093 char *s;
4094 va_list v;
4095 va_start (v,p);
4096 s = g (p, va_arg (v,int));
4097 va_end (v);
4098 return s;
4101 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4102 function prototypes and stuff, but not '\xHH' hex character constants.
4103 These don't provoke an error unfortunately, instead are silently treated
4104 as 'x'. The following induces an error, until -std is added to get
4105 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4106 array size at least. It's necessary to write '\x00'==0 to get something
4107 that's true only with -std. */
4108 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4110 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4111 inside strings and character constants. */
4112 #define FOO(x) 'x'
4113 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4115 int test (int i, double x);
4116 struct s1 {int (*f) (int a);};
4117 struct s2 {int (*f) (double a);};
4118 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4119 int argc;
4120 char **argv;
4122 main ()
4124 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4126 return 0;
4128 _ACEOF
4129 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4130 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4132 CC="$ac_save_CC $ac_arg"
4133 if ac_fn_c_try_compile "$LINENO"; then :
4134 ac_cv_prog_cc_c89=$ac_arg
4136 rm -f core conftest.err conftest.$ac_objext
4137 test "x$ac_cv_prog_cc_c89" != "xno" && break
4138 done
4139 rm -f conftest.$ac_ext
4140 CC=$ac_save_CC
4143 # AC_CACHE_VAL
4144 case "x$ac_cv_prog_cc_c89" in
4146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4147 $as_echo "none needed" >&6; } ;;
4148 xno)
4149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4150 $as_echo "unsupported" >&6; } ;;
4152 CC="$CC $ac_cv_prog_cc_c89"
4153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4154 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4155 esac
4156 if test "x$ac_cv_prog_cc_c89" != xno; then :
4160 ac_ext=c
4161 ac_cpp='$CPP $CPPFLAGS'
4162 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4163 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4164 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4166 ac_ext=c
4167 ac_cpp='$CPP $CPPFLAGS'
4168 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4169 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4170 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4172 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4173 if ${am_cv_prog_cc_c_o+:} false; then :
4174 $as_echo_n "(cached) " >&6
4175 else
4176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4177 /* end confdefs.h. */
4180 main ()
4184 return 0;
4186 _ACEOF
4187 # Make sure it works both with $CC and with simple cc.
4188 # Following AC_PROG_CC_C_O, we do the test twice because some
4189 # compilers refuse to overwrite an existing .o file with -o,
4190 # though they will create one.
4191 am_cv_prog_cc_c_o=yes
4192 for am_i in 1 2; do
4193 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4194 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4195 ac_status=$?
4196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4197 (exit $ac_status); } \
4198 && test -f conftest2.$ac_objext; then
4199 : OK
4200 else
4201 am_cv_prog_cc_c_o=no
4202 break
4204 done
4205 rm -f core conftest*
4206 unset am_i
4208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4209 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4210 if test "$am_cv_prog_cc_c_o" != yes; then
4211 # Losing compiler, so override with the script.
4212 # FIXME: It is wrong to rewrite CC.
4213 # But if we don't then we get into trouble of one sort or another.
4214 # A longer-term fix would be to have automake use am__CC in this case,
4215 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4216 CC="$am_aux_dir/compile $CC"
4218 ac_ext=c
4219 ac_cpp='$CPP $CPPFLAGS'
4220 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4221 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4222 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4224 DEPDIR="${am__leading_dot}deps"
4226 ac_config_commands="$ac_config_commands depfiles"
4229 am_make=${MAKE-make}
4230 cat > confinc << 'END'
4231 am__doit:
4232 @echo this is the am__doit target
4233 .PHONY: am__doit
4235 # If we don't find an include directive, just comment out the code.
4236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4237 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4238 am__include="#"
4239 am__quote=
4240 _am_result=none
4241 # First try GNU make style include.
4242 echo "include confinc" > confmf
4243 # Ignore all kinds of additional output from 'make'.
4244 case `$am_make -s -f confmf 2> /dev/null` in #(
4245 *the\ am__doit\ target*)
4246 am__include=include
4247 am__quote=
4248 _am_result=GNU
4250 esac
4251 # Now try BSD make style include.
4252 if test "$am__include" = "#"; then
4253 echo '.include "confinc"' > confmf
4254 case `$am_make -s -f confmf 2> /dev/null` in #(
4255 *the\ am__doit\ target*)
4256 am__include=.include
4257 am__quote="\""
4258 _am_result=BSD
4260 esac
4264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4265 $as_echo "$_am_result" >&6; }
4266 rm -f confinc confmf
4268 # Check whether --enable-dependency-tracking was given.
4269 if test "${enable_dependency_tracking+set}" = set; then :
4270 enableval=$enable_dependency_tracking;
4273 if test "x$enable_dependency_tracking" != xno; then
4274 am_depcomp="$ac_aux_dir/depcomp"
4275 AMDEPBACKSLASH='\'
4276 am__nodep='_no'
4278 if test "x$enable_dependency_tracking" != xno; then
4279 AMDEP_TRUE=
4280 AMDEP_FALSE='#'
4281 else
4282 AMDEP_TRUE='#'
4283 AMDEP_FALSE=
4288 depcc="$CC" am_compiler_list=
4290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4291 $as_echo_n "checking dependency style of $depcc... " >&6; }
4292 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4293 $as_echo_n "(cached) " >&6
4294 else
4295 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4296 # We make a subdir and do the tests there. Otherwise we can end up
4297 # making bogus files that we don't know about and never remove. For
4298 # instance it was reported that on HP-UX the gcc test will end up
4299 # making a dummy file named 'D' -- because '-MD' means "put the output
4300 # in D".
4301 rm -rf conftest.dir
4302 mkdir conftest.dir
4303 # Copy depcomp to subdir because otherwise we won't find it if we're
4304 # using a relative directory.
4305 cp "$am_depcomp" conftest.dir
4306 cd conftest.dir
4307 # We will build objects and dependencies in a subdirectory because
4308 # it helps to detect inapplicable dependency modes. For instance
4309 # both Tru64's cc and ICC support -MD to output dependencies as a
4310 # side effect of compilation, but ICC will put the dependencies in
4311 # the current directory while Tru64 will put them in the object
4312 # directory.
4313 mkdir sub
4315 am_cv_CC_dependencies_compiler_type=none
4316 if test "$am_compiler_list" = ""; then
4317 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4319 am__universal=false
4320 case " $depcc " in #(
4321 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4322 esac
4324 for depmode in $am_compiler_list; do
4325 # Setup a source with many dependencies, because some compilers
4326 # like to wrap large dependency lists on column 80 (with \), and
4327 # we should not choose a depcomp mode which is confused by this.
4329 # We need to recreate these files for each test, as the compiler may
4330 # overwrite some of them when testing with obscure command lines.
4331 # This happens at least with the AIX C compiler.
4332 : > sub/conftest.c
4333 for i in 1 2 3 4 5 6; do
4334 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4335 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4336 # Solaris 10 /bin/sh.
4337 echo '/* dummy */' > sub/conftst$i.h
4338 done
4339 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4341 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4342 # mode. It turns out that the SunPro C++ compiler does not properly
4343 # handle '-M -o', and we need to detect this. Also, some Intel
4344 # versions had trouble with output in subdirs.
4345 am__obj=sub/conftest.${OBJEXT-o}
4346 am__minus_obj="-o $am__obj"
4347 case $depmode in
4348 gcc)
4349 # This depmode causes a compiler race in universal mode.
4350 test "$am__universal" = false || continue
4352 nosideeffect)
4353 # After this tag, mechanisms are not by side-effect, so they'll
4354 # only be used when explicitly requested.
4355 if test "x$enable_dependency_tracking" = xyes; then
4356 continue
4357 else
4358 break
4361 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4362 # This compiler won't grok '-c -o', but also, the minuso test has
4363 # not run yet. These depmodes are late enough in the game, and
4364 # so weak that their functioning should not be impacted.
4365 am__obj=conftest.${OBJEXT-o}
4366 am__minus_obj=
4368 none) break ;;
4369 esac
4370 if depmode=$depmode \
4371 source=sub/conftest.c object=$am__obj \
4372 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4373 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4374 >/dev/null 2>conftest.err &&
4375 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4376 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4377 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4378 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4379 # icc doesn't choke on unknown options, it will just issue warnings
4380 # or remarks (even with -Werror). So we grep stderr for any message
4381 # that says an option was ignored or not supported.
4382 # When given -MP, icc 7.0 and 7.1 complain thusly:
4383 # icc: Command line warning: ignoring option '-M'; no argument required
4384 # The diagnosis changed in icc 8.0:
4385 # icc: Command line remark: option '-MP' not supported
4386 if (grep 'ignoring option' conftest.err ||
4387 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4388 am_cv_CC_dependencies_compiler_type=$depmode
4389 break
4392 done
4394 cd ..
4395 rm -rf conftest.dir
4396 else
4397 am_cv_CC_dependencies_compiler_type=none
4401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4402 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4403 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4406 test "x$enable_dependency_tracking" != xno \
4407 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4408 am__fastdepCC_TRUE=
4409 am__fastdepCC_FALSE='#'
4410 else
4411 am__fastdepCC_TRUE='#'
4412 am__fastdepCC_FALSE=
4417 ac_ext=c
4418 ac_cpp='$CPP $CPPFLAGS'
4419 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4420 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4421 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4423 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4424 # On Suns, sometimes $CPP names a directory.
4425 if test -n "$CPP" && test -d "$CPP"; then
4426 CPP=
4428 if test -z "$CPP"; then
4429 if ${ac_cv_prog_CPP+:} false; then :
4430 $as_echo_n "(cached) " >&6
4431 else
4432 # Double quotes because CPP needs to be expanded
4433 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4435 ac_preproc_ok=false
4436 for ac_c_preproc_warn_flag in '' yes
4438 # Use a header file that comes with gcc, so configuring glibc
4439 # with a fresh cross-compiler works.
4440 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4441 # <limits.h> exists even on freestanding compilers.
4442 # On the NeXT, cc -E runs the code through the compiler's parser,
4443 # not just through cpp. "Syntax error" is here to catch this case.
4444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4445 /* end confdefs.h. */
4446 #ifdef __STDC__
4447 # include <limits.h>
4448 #else
4449 # include <assert.h>
4450 #endif
4451 Syntax error
4452 _ACEOF
4453 if ac_fn_c_try_cpp "$LINENO"; then :
4455 else
4456 # Broken: fails on valid input.
4457 continue
4459 rm -f conftest.err conftest.i conftest.$ac_ext
4461 # OK, works on sane cases. Now check whether nonexistent headers
4462 # can be detected and how.
4463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4464 /* end confdefs.h. */
4465 #include <ac_nonexistent.h>
4466 _ACEOF
4467 if ac_fn_c_try_cpp "$LINENO"; then :
4468 # Broken: success on invalid input.
4469 continue
4470 else
4471 # Passes both tests.
4472 ac_preproc_ok=:
4473 break
4475 rm -f conftest.err conftest.i conftest.$ac_ext
4477 done
4478 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4479 rm -f conftest.i conftest.err conftest.$ac_ext
4480 if $ac_preproc_ok; then :
4481 break
4484 done
4485 ac_cv_prog_CPP=$CPP
4488 CPP=$ac_cv_prog_CPP
4489 else
4490 ac_cv_prog_CPP=$CPP
4492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4493 $as_echo "$CPP" >&6; }
4494 ac_preproc_ok=false
4495 for ac_c_preproc_warn_flag in '' yes
4497 # Use a header file that comes with gcc, so configuring glibc
4498 # with a fresh cross-compiler works.
4499 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4500 # <limits.h> exists even on freestanding compilers.
4501 # On the NeXT, cc -E runs the code through the compiler's parser,
4502 # not just through cpp. "Syntax error" is here to catch this case.
4503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4504 /* end confdefs.h. */
4505 #ifdef __STDC__
4506 # include <limits.h>
4507 #else
4508 # include <assert.h>
4509 #endif
4510 Syntax error
4511 _ACEOF
4512 if ac_fn_c_try_cpp "$LINENO"; then :
4514 else
4515 # Broken: fails on valid input.
4516 continue
4518 rm -f conftest.err conftest.i conftest.$ac_ext
4520 # OK, works on sane cases. Now check whether nonexistent headers
4521 # can be detected and how.
4522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4523 /* end confdefs.h. */
4524 #include <ac_nonexistent.h>
4525 _ACEOF
4526 if ac_fn_c_try_cpp "$LINENO"; then :
4527 # Broken: success on invalid input.
4528 continue
4529 else
4530 # Passes both tests.
4531 ac_preproc_ok=:
4532 break
4534 rm -f conftest.err conftest.i conftest.$ac_ext
4536 done
4537 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4538 rm -f conftest.i conftest.err conftest.$ac_ext
4539 if $ac_preproc_ok; then :
4541 else
4542 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4543 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4544 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4545 See \`config.log' for more details" "$LINENO" 5; }
4548 ac_ext=c
4549 ac_cpp='$CPP $CPPFLAGS'
4550 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4551 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4552 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4556 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4557 if ${ac_cv_path_GREP+:} false; then :
4558 $as_echo_n "(cached) " >&6
4559 else
4560 if test -z "$GREP"; then
4561 ac_path_GREP_found=false
4562 # Loop through the user's path and test for each of PROGNAME-LIST
4563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4564 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4566 IFS=$as_save_IFS
4567 test -z "$as_dir" && as_dir=.
4568 for ac_prog in grep ggrep; do
4569 for ac_exec_ext in '' $ac_executable_extensions; do
4570 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4571 as_fn_executable_p "$ac_path_GREP" || continue
4572 # Check for GNU ac_path_GREP and select it if it is found.
4573 # Check for GNU $ac_path_GREP
4574 case `"$ac_path_GREP" --version 2>&1` in
4575 *GNU*)
4576 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4578 ac_count=0
4579 $as_echo_n 0123456789 >"conftest.in"
4580 while :
4582 cat "conftest.in" "conftest.in" >"conftest.tmp"
4583 mv "conftest.tmp" "conftest.in"
4584 cp "conftest.in" "conftest.nl"
4585 $as_echo 'GREP' >> "conftest.nl"
4586 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4587 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4588 as_fn_arith $ac_count + 1 && ac_count=$as_val
4589 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4590 # Best one so far, save it but keep looking for a better one
4591 ac_cv_path_GREP="$ac_path_GREP"
4592 ac_path_GREP_max=$ac_count
4594 # 10*(2^10) chars as input seems more than enough
4595 test $ac_count -gt 10 && break
4596 done
4597 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4598 esac
4600 $ac_path_GREP_found && break 3
4601 done
4602 done
4603 done
4604 IFS=$as_save_IFS
4605 if test -z "$ac_cv_path_GREP"; then
4606 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4608 else
4609 ac_cv_path_GREP=$GREP
4613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4614 $as_echo "$ac_cv_path_GREP" >&6; }
4615 GREP="$ac_cv_path_GREP"
4618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4619 $as_echo_n "checking for egrep... " >&6; }
4620 if ${ac_cv_path_EGREP+:} false; then :
4621 $as_echo_n "(cached) " >&6
4622 else
4623 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4624 then ac_cv_path_EGREP="$GREP -E"
4625 else
4626 if test -z "$EGREP"; then
4627 ac_path_EGREP_found=false
4628 # Loop through the user's path and test for each of PROGNAME-LIST
4629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4630 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4632 IFS=$as_save_IFS
4633 test -z "$as_dir" && as_dir=.
4634 for ac_prog in egrep; do
4635 for ac_exec_ext in '' $ac_executable_extensions; do
4636 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4637 as_fn_executable_p "$ac_path_EGREP" || continue
4638 # Check for GNU ac_path_EGREP and select it if it is found.
4639 # Check for GNU $ac_path_EGREP
4640 case `"$ac_path_EGREP" --version 2>&1` in
4641 *GNU*)
4642 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4644 ac_count=0
4645 $as_echo_n 0123456789 >"conftest.in"
4646 while :
4648 cat "conftest.in" "conftest.in" >"conftest.tmp"
4649 mv "conftest.tmp" "conftest.in"
4650 cp "conftest.in" "conftest.nl"
4651 $as_echo 'EGREP' >> "conftest.nl"
4652 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4653 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4654 as_fn_arith $ac_count + 1 && ac_count=$as_val
4655 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4656 # Best one so far, save it but keep looking for a better one
4657 ac_cv_path_EGREP="$ac_path_EGREP"
4658 ac_path_EGREP_max=$ac_count
4660 # 10*(2^10) chars as input seems more than enough
4661 test $ac_count -gt 10 && break
4662 done
4663 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4664 esac
4666 $ac_path_EGREP_found && break 3
4667 done
4668 done
4669 done
4670 IFS=$as_save_IFS
4671 if test -z "$ac_cv_path_EGREP"; then
4672 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4674 else
4675 ac_cv_path_EGREP=$EGREP
4680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4681 $as_echo "$ac_cv_path_EGREP" >&6; }
4682 EGREP="$ac_cv_path_EGREP"
4685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4686 $as_echo_n "checking for ANSI C header files... " >&6; }
4687 if ${ac_cv_header_stdc+:} false; then :
4688 $as_echo_n "(cached) " >&6
4689 else
4690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4691 /* end confdefs.h. */
4692 #include <stdlib.h>
4693 #include <stdarg.h>
4694 #include <string.h>
4695 #include <float.h>
4698 main ()
4702 return 0;
4704 _ACEOF
4705 if ac_fn_c_try_compile "$LINENO"; then :
4706 ac_cv_header_stdc=yes
4707 else
4708 ac_cv_header_stdc=no
4710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4712 if test $ac_cv_header_stdc = yes; then
4713 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4715 /* end confdefs.h. */
4716 #include <string.h>
4718 _ACEOF
4719 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4720 $EGREP "memchr" >/dev/null 2>&1; then :
4722 else
4723 ac_cv_header_stdc=no
4725 rm -f conftest*
4729 if test $ac_cv_header_stdc = yes; then
4730 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4732 /* end confdefs.h. */
4733 #include <stdlib.h>
4735 _ACEOF
4736 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4737 $EGREP "free" >/dev/null 2>&1; then :
4739 else
4740 ac_cv_header_stdc=no
4742 rm -f conftest*
4746 if test $ac_cv_header_stdc = yes; then
4747 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4748 if test "$cross_compiling" = yes; then :
4750 else
4751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4752 /* end confdefs.h. */
4753 #include <ctype.h>
4754 #include <stdlib.h>
4755 #if ((' ' & 0x0FF) == 0x020)
4756 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4757 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4758 #else
4759 # define ISLOWER(c) \
4760 (('a' <= (c) && (c) <= 'i') \
4761 || ('j' <= (c) && (c) <= 'r') \
4762 || ('s' <= (c) && (c) <= 'z'))
4763 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4764 #endif
4766 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4768 main ()
4770 int i;
4771 for (i = 0; i < 256; i++)
4772 if (XOR (islower (i), ISLOWER (i))
4773 || toupper (i) != TOUPPER (i))
4774 return 2;
4775 return 0;
4777 _ACEOF
4778 if ac_fn_c_try_run "$LINENO"; then :
4780 else
4781 ac_cv_header_stdc=no
4783 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4784 conftest.$ac_objext conftest.beam conftest.$ac_ext
4789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4790 $as_echo "$ac_cv_header_stdc" >&6; }
4791 if test $ac_cv_header_stdc = yes; then
4793 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4797 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4798 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4799 inttypes.h stdint.h unistd.h
4800 do :
4801 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4802 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4804 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4805 cat >>confdefs.h <<_ACEOF
4806 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4807 _ACEOF
4811 done
4815 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4816 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4817 MINIX=yes
4818 else
4819 MINIX=
4823 if test "$MINIX" = yes; then
4825 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4828 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4831 $as_echo "#define _MINIX 1" >>confdefs.h
4836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4837 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4838 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4839 $as_echo_n "(cached) " >&6
4840 else
4841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4842 /* end confdefs.h. */
4844 # define __EXTENSIONS__ 1
4845 $ac_includes_default
4847 main ()
4851 return 0;
4853 _ACEOF
4854 if ac_fn_c_try_compile "$LINENO"; then :
4855 ac_cv_safe_to_define___extensions__=yes
4856 else
4857 ac_cv_safe_to_define___extensions__=no
4859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4862 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4863 test $ac_cv_safe_to_define___extensions__ = yes &&
4864 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4866 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4868 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4870 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4872 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4878 case `pwd` in
4879 *\ * | *\ *)
4880 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4881 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4882 esac
4886 macro_version='2.2.7a'
4887 macro_revision='1.3134'
4901 ltmain="$ac_aux_dir/ltmain.sh"
4903 # Backslashify metacharacters that are still active within
4904 # double-quoted strings.
4905 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4907 # Same as above, but do not quote variable references.
4908 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4910 # Sed substitution to delay expansion of an escaped shell variable in a
4911 # double_quote_subst'ed string.
4912 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4914 # Sed substitution to delay expansion of an escaped single quote.
4915 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4917 # Sed substitution to avoid accidental globbing in evaled expressions
4918 no_glob_subst='s/\*/\\\*/g'
4920 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4921 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4922 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4925 $as_echo_n "checking how to print strings... " >&6; }
4926 # Test print first, because it will be a builtin if present.
4927 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4928 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4929 ECHO='print -r --'
4930 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4931 ECHO='printf %s\n'
4932 else
4933 # Use this function as a fallback that always works.
4934 func_fallback_echo ()
4936 eval 'cat <<_LTECHO_EOF
4938 _LTECHO_EOF'
4940 ECHO='func_fallback_echo'
4943 # func_echo_all arg...
4944 # Invoke $ECHO with all args, space-separated.
4945 func_echo_all ()
4947 $ECHO ""
4950 case "$ECHO" in
4951 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4952 $as_echo "printf" >&6; } ;;
4953 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4954 $as_echo "print -r" >&6; } ;;
4955 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4956 $as_echo "cat" >&6; } ;;
4957 esac
4972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4973 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4974 if ${ac_cv_path_SED+:} false; then :
4975 $as_echo_n "(cached) " >&6
4976 else
4977 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4978 for ac_i in 1 2 3 4 5 6 7; do
4979 ac_script="$ac_script$as_nl$ac_script"
4980 done
4981 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4982 { ac_script=; unset ac_script;}
4983 if test -z "$SED"; then
4984 ac_path_SED_found=false
4985 # Loop through the user's path and test for each of PROGNAME-LIST
4986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4987 for as_dir in $PATH
4989 IFS=$as_save_IFS
4990 test -z "$as_dir" && as_dir=.
4991 for ac_prog in sed gsed; do
4992 for ac_exec_ext in '' $ac_executable_extensions; do
4993 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4994 as_fn_executable_p "$ac_path_SED" || continue
4995 # Check for GNU ac_path_SED and select it if it is found.
4996 # Check for GNU $ac_path_SED
4997 case `"$ac_path_SED" --version 2>&1` in
4998 *GNU*)
4999 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5001 ac_count=0
5002 $as_echo_n 0123456789 >"conftest.in"
5003 while :
5005 cat "conftest.in" "conftest.in" >"conftest.tmp"
5006 mv "conftest.tmp" "conftest.in"
5007 cp "conftest.in" "conftest.nl"
5008 $as_echo '' >> "conftest.nl"
5009 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5010 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5011 as_fn_arith $ac_count + 1 && ac_count=$as_val
5012 if test $ac_count -gt ${ac_path_SED_max-0}; then
5013 # Best one so far, save it but keep looking for a better one
5014 ac_cv_path_SED="$ac_path_SED"
5015 ac_path_SED_max=$ac_count
5017 # 10*(2^10) chars as input seems more than enough
5018 test $ac_count -gt 10 && break
5019 done
5020 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5021 esac
5023 $ac_path_SED_found && break 3
5024 done
5025 done
5026 done
5027 IFS=$as_save_IFS
5028 if test -z "$ac_cv_path_SED"; then
5029 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5031 else
5032 ac_cv_path_SED=$SED
5036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5037 $as_echo "$ac_cv_path_SED" >&6; }
5038 SED="$ac_cv_path_SED"
5039 rm -f conftest.sed
5041 test -z "$SED" && SED=sed
5042 Xsed="$SED -e 1s/^X//"
5054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5055 $as_echo_n "checking for fgrep... " >&6; }
5056 if ${ac_cv_path_FGREP+:} false; then :
5057 $as_echo_n "(cached) " >&6
5058 else
5059 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5060 then ac_cv_path_FGREP="$GREP -F"
5061 else
5062 if test -z "$FGREP"; then
5063 ac_path_FGREP_found=false
5064 # Loop through the user's path and test for each of PROGNAME-LIST
5065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5066 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5068 IFS=$as_save_IFS
5069 test -z "$as_dir" && as_dir=.
5070 for ac_prog in fgrep; do
5071 for ac_exec_ext in '' $ac_executable_extensions; do
5072 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5073 as_fn_executable_p "$ac_path_FGREP" || continue
5074 # Check for GNU ac_path_FGREP and select it if it is found.
5075 # Check for GNU $ac_path_FGREP
5076 case `"$ac_path_FGREP" --version 2>&1` in
5077 *GNU*)
5078 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5080 ac_count=0
5081 $as_echo_n 0123456789 >"conftest.in"
5082 while :
5084 cat "conftest.in" "conftest.in" >"conftest.tmp"
5085 mv "conftest.tmp" "conftest.in"
5086 cp "conftest.in" "conftest.nl"
5087 $as_echo 'FGREP' >> "conftest.nl"
5088 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5089 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5090 as_fn_arith $ac_count + 1 && ac_count=$as_val
5091 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5092 # Best one so far, save it but keep looking for a better one
5093 ac_cv_path_FGREP="$ac_path_FGREP"
5094 ac_path_FGREP_max=$ac_count
5096 # 10*(2^10) chars as input seems more than enough
5097 test $ac_count -gt 10 && break
5098 done
5099 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5100 esac
5102 $ac_path_FGREP_found && break 3
5103 done
5104 done
5105 done
5106 IFS=$as_save_IFS
5107 if test -z "$ac_cv_path_FGREP"; then
5108 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5110 else
5111 ac_cv_path_FGREP=$FGREP
5116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5117 $as_echo "$ac_cv_path_FGREP" >&6; }
5118 FGREP="$ac_cv_path_FGREP"
5121 test -z "$GREP" && GREP=grep
5141 # Check whether --with-gnu-ld was given.
5142 if test "${with_gnu_ld+set}" = set; then :
5143 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5144 else
5145 with_gnu_ld=no
5148 ac_prog=ld
5149 if test "$GCC" = yes; then
5150 # Check if gcc -print-prog-name=ld gives a path.
5151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5152 $as_echo_n "checking for ld used by $CC... " >&6; }
5153 case $host in
5154 *-*-mingw*)
5155 # gcc leaves a trailing carriage return which upsets mingw
5156 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5158 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5159 esac
5160 case $ac_prog in
5161 # Accept absolute paths.
5162 [\\/]* | ?:[\\/]*)
5163 re_direlt='/[^/][^/]*/\.\./'
5164 # Canonicalize the pathname of ld
5165 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5166 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5167 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5168 done
5169 test -z "$LD" && LD="$ac_prog"
5172 # If it fails, then pretend we aren't using GCC.
5173 ac_prog=ld
5176 # If it is relative, then search for the first ld in PATH.
5177 with_gnu_ld=unknown
5179 esac
5180 elif test "$with_gnu_ld" = yes; then
5181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5182 $as_echo_n "checking for GNU ld... " >&6; }
5183 else
5184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5185 $as_echo_n "checking for non-GNU ld... " >&6; }
5187 if ${lt_cv_path_LD+:} false; then :
5188 $as_echo_n "(cached) " >&6
5189 else
5190 if test -z "$LD"; then
5191 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5192 for ac_dir in $PATH; do
5193 IFS="$lt_save_ifs"
5194 test -z "$ac_dir" && ac_dir=.
5195 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5196 lt_cv_path_LD="$ac_dir/$ac_prog"
5197 # Check to see if the program is GNU ld. I'd rather use --version,
5198 # but apparently some variants of GNU ld only accept -v.
5199 # Break only if it was the GNU/non-GNU ld that we prefer.
5200 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5201 *GNU* | *'with BFD'*)
5202 test "$with_gnu_ld" != no && break
5205 test "$with_gnu_ld" != yes && break
5207 esac
5209 done
5210 IFS="$lt_save_ifs"
5211 else
5212 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5216 LD="$lt_cv_path_LD"
5217 if test -n "$LD"; then
5218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5219 $as_echo "$LD" >&6; }
5220 else
5221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5222 $as_echo "no" >&6; }
5224 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5226 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5227 if ${lt_cv_prog_gnu_ld+:} false; then :
5228 $as_echo_n "(cached) " >&6
5229 else
5230 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5231 case `$LD -v 2>&1 </dev/null` in
5232 *GNU* | *'with BFD'*)
5233 lt_cv_prog_gnu_ld=yes
5236 lt_cv_prog_gnu_ld=no
5238 esac
5240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5241 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5242 with_gnu_ld=$lt_cv_prog_gnu_ld
5252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5253 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5254 if ${lt_cv_path_NM+:} false; then :
5255 $as_echo_n "(cached) " >&6
5256 else
5257 if test -n "$NM"; then
5258 # Let the user override the nm to test.
5259 lt_nm_to_check="$NM"
5260 else
5261 lt_nm_to_check="${ac_tool_prefix}nm"
5262 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5263 lt_nm_to_check="$lt_nm_to_check nm"
5266 for lt_tmp_nm in $lt_nm_to_check; do
5267 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5268 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5269 IFS="$lt_save_ifs"
5270 test -z "$ac_dir" && ac_dir=.
5271 case "$lt_tmp_nm" in
5272 */*|*\\*) tmp_nm="$lt_tmp_nm";;
5273 *) tmp_nm="$ac_dir/$lt_tmp_nm";;
5274 esac
5275 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5276 # Check to see if the nm accepts a BSD-compat flag.
5277 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5278 # nm: unknown option "B" ignored
5279 case `"$tmp_nm" -B "$tmp_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
5280 *$tmp_nm*) lt_cv_path_NM="$tmp_nm -B"
5281 break
5284 case `"$tmp_nm" -p "$tmp_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
5285 *$tmp_nm*)
5286 lt_cv_path_NM="$tmp_nm -p"
5287 break
5290 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5291 continue # so that we can try to find one that supports BSD flags
5293 esac
5295 esac
5297 done
5298 IFS="$lt_save_ifs"
5299 done
5300 : ${lt_cv_path_NM=no}
5302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5303 $as_echo "$lt_cv_path_NM" >&6; }
5304 if test "$lt_cv_path_NM" != "no"; then
5305 NM="$lt_cv_path_NM"
5306 else
5307 # Didn't find any BSD compatible name lister, look for dumpbin.
5308 if test -n "$DUMPBIN"; then :
5309 # Let the user override the test.
5310 else
5311 if test -n "$ac_tool_prefix"; then
5312 for ac_prog in dumpbin "link -dump"
5314 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5315 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5317 $as_echo_n "checking for $ac_word... " >&6; }
5318 if ${ac_cv_prog_DUMPBIN+:} false; then :
5319 $as_echo_n "(cached) " >&6
5320 else
5321 if test -n "$DUMPBIN"; then
5322 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5323 else
5324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5325 for as_dir in $PATH
5327 IFS=$as_save_IFS
5328 test -z "$as_dir" && as_dir=.
5329 for ac_exec_ext in '' $ac_executable_extensions; do
5330 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5331 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5333 break 2
5335 done
5336 done
5337 IFS=$as_save_IFS
5341 DUMPBIN=$ac_cv_prog_DUMPBIN
5342 if test -n "$DUMPBIN"; then
5343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5344 $as_echo "$DUMPBIN" >&6; }
5345 else
5346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5347 $as_echo "no" >&6; }
5351 test -n "$DUMPBIN" && break
5352 done
5354 if test -z "$DUMPBIN"; then
5355 ac_ct_DUMPBIN=$DUMPBIN
5356 for ac_prog in dumpbin "link -dump"
5358 # Extract the first word of "$ac_prog", so it can be a program name with args.
5359 set dummy $ac_prog; ac_word=$2
5360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5361 $as_echo_n "checking for $ac_word... " >&6; }
5362 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5363 $as_echo_n "(cached) " >&6
5364 else
5365 if test -n "$ac_ct_DUMPBIN"; then
5366 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5367 else
5368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5369 for as_dir in $PATH
5371 IFS=$as_save_IFS
5372 test -z "$as_dir" && as_dir=.
5373 for ac_exec_ext in '' $ac_executable_extensions; do
5374 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5375 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5377 break 2
5379 done
5380 done
5381 IFS=$as_save_IFS
5385 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5386 if test -n "$ac_ct_DUMPBIN"; then
5387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5388 $as_echo "$ac_ct_DUMPBIN" >&6; }
5389 else
5390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5391 $as_echo "no" >&6; }
5395 test -n "$ac_ct_DUMPBIN" && break
5396 done
5398 if test "x$ac_ct_DUMPBIN" = x; then
5399 DUMPBIN=":"
5400 else
5401 case $cross_compiling:$ac_tool_warned in
5402 yes:)
5403 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5404 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5405 ac_tool_warned=yes ;;
5406 esac
5407 DUMPBIN=$ac_ct_DUMPBIN
5411 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5412 *COFF*)
5413 DUMPBIN="$DUMPBIN -symbols"
5416 DUMPBIN=:
5418 esac
5421 if test "$DUMPBIN" != ":"; then
5422 NM="$DUMPBIN"
5425 test -z "$NM" && NM=nm
5432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5433 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5434 if ${lt_cv_nm_interface+:} false; then :
5435 $as_echo_n "(cached) " >&6
5436 else
5437 lt_cv_nm_interface="BSD nm"
5438 echo "int some_variable = 0;" > conftest.$ac_ext
5439 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5440 (eval "$ac_compile" 2>conftest.err)
5441 cat conftest.err >&5
5442 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5443 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5444 cat conftest.err >&5
5445 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5446 cat conftest.out >&5
5447 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5448 lt_cv_nm_interface="MS dumpbin"
5450 rm -f conftest*
5452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5453 $as_echo "$lt_cv_nm_interface" >&6; }
5455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5456 $as_echo_n "checking whether ln -s works... " >&6; }
5457 LN_S=$as_ln_s
5458 if test "$LN_S" = "ln -s"; then
5459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5460 $as_echo "yes" >&6; }
5461 else
5462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5463 $as_echo "no, using $LN_S" >&6; }
5466 # find the maximum length of command line arguments
5467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5468 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5469 if ${lt_cv_sys_max_cmd_len+:} false; then :
5470 $as_echo_n "(cached) " >&6
5471 else
5473 teststring="ABCD"
5475 case $build_os in
5476 msdosdjgpp*)
5477 # On DJGPP, this test can blow up pretty badly due to problems in libc
5478 # (any single argument exceeding 2000 bytes causes a buffer overrun
5479 # during glob expansion). Even if it were fixed, the result of this
5480 # check would be larger than it should be.
5481 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5484 gnu*)
5485 # Under GNU Hurd, this test is not required because there is
5486 # no limit to the length of command line arguments.
5487 # Libtool will interpret -1 as no limit whatsoever
5488 lt_cv_sys_max_cmd_len=-1;
5491 cygwin* | mingw* | cegcc*)
5492 # On Win9x/ME, this test blows up -- it succeeds, but takes
5493 # about 5 minutes as the teststring grows exponentially.
5494 # Worse, since 9x/ME are not pre-emptively multitasking,
5495 # you end up with a "frozen" computer, even though with patience
5496 # the test eventually succeeds (with a max line length of 256k).
5497 # Instead, let's just punt: use the minimum linelength reported by
5498 # all of the supported platforms: 8192 (on NT/2K/XP).
5499 lt_cv_sys_max_cmd_len=8192;
5502 mint*)
5503 # On MiNT this can take a long time and run out of memory.
5504 lt_cv_sys_max_cmd_len=8192;
5507 amigaos*)
5508 # On AmigaOS with pdksh, this test takes hours, literally.
5509 # So we just punt and use a minimum line length of 8192.
5510 lt_cv_sys_max_cmd_len=8192;
5513 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5514 # This has been around since 386BSD, at least. Likely further.
5515 if test -x /sbin/sysctl; then
5516 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5517 elif test -x /usr/sbin/sysctl; then
5518 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5519 else
5520 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5522 # And add a safety zone
5523 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5524 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5527 interix*)
5528 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5529 lt_cv_sys_max_cmd_len=196608
5532 osf*)
5533 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5534 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5535 # nice to cause kernel panics so lets avoid the loop below.
5536 # First set a reasonable default.
5537 lt_cv_sys_max_cmd_len=16384
5539 if test -x /sbin/sysconfig; then
5540 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5541 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5542 esac
5545 sco3.2v5*)
5546 lt_cv_sys_max_cmd_len=102400
5548 sysv5* | sco5v6* | sysv4.2uw2*)
5549 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5550 if test -n "$kargmax"; then
5551 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5552 else
5553 lt_cv_sys_max_cmd_len=32768
5557 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5558 if test -n "$lt_cv_sys_max_cmd_len"; then
5559 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5560 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5561 else
5562 # Make teststring a little bigger before we do anything with it.
5563 # a 1K string should be a reasonable start.
5564 for i in 1 2 3 4 5 6 7 8 ; do
5565 teststring=$teststring$teststring
5566 done
5567 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5568 # If test is not a shell built-in, we'll probably end up computing a
5569 # maximum length that is only half of the actual maximum length, but
5570 # we can't tell.
5571 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5572 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5573 test $i != 17 # 1/2 MB should be enough
5575 i=`expr $i + 1`
5576 teststring=$teststring$teststring
5577 done
5578 # Only check the string length outside the loop.
5579 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5580 teststring=
5581 # Add a significant safety factor because C++ compilers can tack on
5582 # massive amounts of additional arguments before passing them to the
5583 # linker. It appears as though 1/2 is a usable value.
5584 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5587 esac
5591 if test -n $lt_cv_sys_max_cmd_len ; then
5592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5593 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5594 else
5595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5596 $as_echo "none" >&6; }
5598 max_cmd_len=$lt_cv_sys_max_cmd_len
5605 : ${CP="cp -f"}
5606 : ${MV="mv -f"}
5607 : ${RM="rm -f"}
5609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5610 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5611 # Try some XSI features
5612 xsi_shell=no
5613 ( _lt_dummy="a/b/c"
5614 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5615 = c,a/b,, \
5616 && eval 'test $(( 1 + 1 )) -eq 2 \
5617 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5618 && xsi_shell=yes
5619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5620 $as_echo "$xsi_shell" >&6; }
5623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5624 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5625 lt_shell_append=no
5626 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5627 >/dev/null 2>&1 \
5628 && lt_shell_append=yes
5629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5630 $as_echo "$lt_shell_append" >&6; }
5633 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5634 lt_unset=unset
5635 else
5636 lt_unset=false
5643 # test EBCDIC or ASCII
5644 case `echo X|tr X '\101'` in
5645 A) # ASCII based system
5646 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5647 lt_SP2NL='tr \040 \012'
5648 lt_NL2SP='tr \015\012 \040\040'
5650 *) # EBCDIC based system
5651 lt_SP2NL='tr \100 \n'
5652 lt_NL2SP='tr \r\n \100\100'
5654 esac
5664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5665 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5666 if ${lt_cv_ld_reload_flag+:} false; then :
5667 $as_echo_n "(cached) " >&6
5668 else
5669 lt_cv_ld_reload_flag='-r'
5671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5672 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5673 reload_flag=$lt_cv_ld_reload_flag
5674 case $reload_flag in
5675 "" | " "*) ;;
5676 *) reload_flag=" $reload_flag" ;;
5677 esac
5678 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5679 case $host_os in
5680 darwin*)
5681 if test "$GCC" = yes; then
5682 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5683 else
5684 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5687 esac
5697 if test -n "$ac_tool_prefix"; then
5698 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5699 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5701 $as_echo_n "checking for $ac_word... " >&6; }
5702 if ${ac_cv_prog_OBJDUMP+:} false; then :
5703 $as_echo_n "(cached) " >&6
5704 else
5705 if test -n "$OBJDUMP"; then
5706 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5707 else
5708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5709 for as_dir in $PATH
5711 IFS=$as_save_IFS
5712 test -z "$as_dir" && as_dir=.
5713 for ac_exec_ext in '' $ac_executable_extensions; do
5714 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5715 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5717 break 2
5719 done
5720 done
5721 IFS=$as_save_IFS
5725 OBJDUMP=$ac_cv_prog_OBJDUMP
5726 if test -n "$OBJDUMP"; then
5727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5728 $as_echo "$OBJDUMP" >&6; }
5729 else
5730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5731 $as_echo "no" >&6; }
5736 if test -z "$ac_cv_prog_OBJDUMP"; then
5737 ac_ct_OBJDUMP=$OBJDUMP
5738 # Extract the first word of "objdump", so it can be a program name with args.
5739 set dummy objdump; ac_word=$2
5740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5741 $as_echo_n "checking for $ac_word... " >&6; }
5742 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5743 $as_echo_n "(cached) " >&6
5744 else
5745 if test -n "$ac_ct_OBJDUMP"; then
5746 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5747 else
5748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5749 for as_dir in $PATH
5751 IFS=$as_save_IFS
5752 test -z "$as_dir" && as_dir=.
5753 for ac_exec_ext in '' $ac_executable_extensions; do
5754 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5755 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5757 break 2
5759 done
5760 done
5761 IFS=$as_save_IFS
5765 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5766 if test -n "$ac_ct_OBJDUMP"; then
5767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5768 $as_echo "$ac_ct_OBJDUMP" >&6; }
5769 else
5770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5771 $as_echo "no" >&6; }
5774 if test "x$ac_ct_OBJDUMP" = x; then
5775 OBJDUMP="false"
5776 else
5777 case $cross_compiling:$ac_tool_warned in
5778 yes:)
5779 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5780 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5781 ac_tool_warned=yes ;;
5782 esac
5783 OBJDUMP=$ac_ct_OBJDUMP
5785 else
5786 OBJDUMP="$ac_cv_prog_OBJDUMP"
5789 test -z "$OBJDUMP" && OBJDUMP=objdump
5799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5800 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5801 if ${lt_cv_deplibs_check_method+:} false; then :
5802 $as_echo_n "(cached) " >&6
5803 else
5804 lt_cv_file_magic_cmd='$MAGIC_CMD'
5805 lt_cv_file_magic_test_file=
5806 lt_cv_deplibs_check_method='unknown'
5807 # Need to set the preceding variable on all platforms that support
5808 # interlibrary dependencies.
5809 # 'none' -- dependencies not supported.
5810 # `unknown' -- same as none, but documents that we really don't know.
5811 # 'pass_all' -- all dependencies passed with no checks.
5812 # 'test_compile' -- check by making test program.
5813 # 'file_magic [[regex]]' -- check by looking for files in library path
5814 # which responds to the $file_magic_cmd with a given extended regex.
5815 # If you have `file' or equivalent on your system and you're not sure
5816 # whether `pass_all' will *always* work, you probably want this one.
5818 case $host_os in
5819 aix[4-9]*)
5820 lt_cv_deplibs_check_method=pass_all
5823 beos*)
5824 lt_cv_deplibs_check_method=pass_all
5827 bsdi[45]*)
5828 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5829 lt_cv_file_magic_cmd='/usr/bin/file -L'
5830 lt_cv_file_magic_test_file=/shlib/libc.so
5833 cygwin*)
5834 # func_win32_libid is a shell function defined in ltmain.sh
5835 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5836 lt_cv_file_magic_cmd='func_win32_libid'
5839 mingw* | pw32*)
5840 # Base MSYS/MinGW do not provide the 'file' command needed by
5841 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5842 # unless we find 'file', for example because we are cross-compiling.
5843 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5844 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5845 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5846 lt_cv_file_magic_cmd='func_win32_libid'
5847 else
5848 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5849 lt_cv_file_magic_cmd='$OBJDUMP -f'
5853 cegcc*)
5854 # use the weaker test based on 'objdump'. See mingw*.
5855 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5856 lt_cv_file_magic_cmd='$OBJDUMP -f'
5859 darwin* | rhapsody*)
5860 lt_cv_deplibs_check_method=pass_all
5863 freebsd* | dragonfly*)
5864 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5865 case $host_cpu in
5866 i*86 )
5867 # Not sure whether the presence of OpenBSD here was a mistake.
5868 # Let's accept both of them until this is cleared up.
5869 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5870 lt_cv_file_magic_cmd=/usr/bin/file
5871 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5873 esac
5874 else
5875 lt_cv_deplibs_check_method=pass_all
5879 gnu*)
5880 lt_cv_deplibs_check_method=pass_all
5883 haiku*)
5884 lt_cv_deplibs_check_method=pass_all
5887 hpux10.20* | hpux11*)
5888 lt_cv_file_magic_cmd=/usr/bin/file
5889 case $host_cpu in
5890 ia64*)
5891 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5892 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5894 hppa*64*)
5895 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]'
5896 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5899 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5900 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5902 esac
5905 interix[3-9]*)
5906 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5907 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5910 irix5* | irix6* | nonstopux*)
5911 case $LD in
5912 *-32|*"-32 ") libmagic=32-bit;;
5913 *-n32|*"-n32 ") libmagic=N32;;
5914 *-64|*"-64 ") libmagic=64-bit;;
5915 *) libmagic=never-match;;
5916 esac
5917 lt_cv_deplibs_check_method=pass_all
5920 # This must be Linux ELF.
5921 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5922 lt_cv_deplibs_check_method=pass_all
5925 netbsd*)
5926 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5927 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5928 else
5929 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5933 newos6*)
5934 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5935 lt_cv_file_magic_cmd=/usr/bin/file
5936 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5939 *nto* | *qnx*)
5940 lt_cv_deplibs_check_method=pass_all
5943 openbsd*)
5944 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5945 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5946 else
5947 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5951 osf3* | osf4* | osf5*)
5952 lt_cv_deplibs_check_method=pass_all
5955 rdos*)
5956 lt_cv_deplibs_check_method=pass_all
5959 solaris*)
5960 lt_cv_deplibs_check_method=pass_all
5963 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5964 lt_cv_deplibs_check_method=pass_all
5967 sysv4 | sysv4.3*)
5968 case $host_vendor in
5969 motorola)
5970 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]'
5971 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5973 ncr)
5974 lt_cv_deplibs_check_method=pass_all
5976 sequent)
5977 lt_cv_file_magic_cmd='/bin/file'
5978 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5980 sni)
5981 lt_cv_file_magic_cmd='/bin/file'
5982 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5983 lt_cv_file_magic_test_file=/lib/libc.so
5985 siemens)
5986 lt_cv_deplibs_check_method=pass_all
5989 lt_cv_deplibs_check_method=pass_all
5991 esac
5994 tpf*)
5995 lt_cv_deplibs_check_method=pass_all
5997 esac
6000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6001 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6002 file_magic_cmd=$lt_cv_file_magic_cmd
6003 deplibs_check_method=$lt_cv_deplibs_check_method
6004 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6017 plugin_option=
6018 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
6019 for plugin in $plugin_names; do
6020 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
6021 if test x$plugin_so = x$plugin; then
6022 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
6024 if test x$plugin_so != x$plugin; then
6025 plugin_option="--plugin $plugin_so"
6026 break
6028 done
6030 if test -n "$ac_tool_prefix"; then
6031 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6032 set dummy ${ac_tool_prefix}ar; ac_word=$2
6033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6034 $as_echo_n "checking for $ac_word... " >&6; }
6035 if ${ac_cv_prog_AR+:} false; then :
6036 $as_echo_n "(cached) " >&6
6037 else
6038 if test -n "$AR"; then
6039 ac_cv_prog_AR="$AR" # Let the user override the test.
6040 else
6041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6042 for as_dir in $PATH
6044 IFS=$as_save_IFS
6045 test -z "$as_dir" && as_dir=.
6046 for ac_exec_ext in '' $ac_executable_extensions; do
6047 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6048 ac_cv_prog_AR="${ac_tool_prefix}ar"
6049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6050 break 2
6052 done
6053 done
6054 IFS=$as_save_IFS
6058 AR=$ac_cv_prog_AR
6059 if test -n "$AR"; then
6060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6061 $as_echo "$AR" >&6; }
6062 else
6063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6064 $as_echo "no" >&6; }
6069 if test -z "$ac_cv_prog_AR"; then
6070 ac_ct_AR=$AR
6071 # Extract the first word of "ar", so it can be a program name with args.
6072 set dummy ar; ac_word=$2
6073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6074 $as_echo_n "checking for $ac_word... " >&6; }
6075 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6076 $as_echo_n "(cached) " >&6
6077 else
6078 if test -n "$ac_ct_AR"; then
6079 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6080 else
6081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6082 for as_dir in $PATH
6084 IFS=$as_save_IFS
6085 test -z "$as_dir" && as_dir=.
6086 for ac_exec_ext in '' $ac_executable_extensions; do
6087 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6088 ac_cv_prog_ac_ct_AR="ar"
6089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6090 break 2
6092 done
6093 done
6094 IFS=$as_save_IFS
6098 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6099 if test -n "$ac_ct_AR"; then
6100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6101 $as_echo "$ac_ct_AR" >&6; }
6102 else
6103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6104 $as_echo "no" >&6; }
6107 if test "x$ac_ct_AR" = x; then
6108 AR="false"
6109 else
6110 case $cross_compiling:$ac_tool_warned in
6111 yes:)
6112 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6113 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6114 ac_tool_warned=yes ;;
6115 esac
6116 AR=$ac_ct_AR
6118 else
6119 AR="$ac_cv_prog_AR"
6122 test -z "$AR" && AR=ar
6123 if test -n "$plugin_option"; then
6124 if $AR --help 2>&1 | grep -q "\--plugin"; then
6125 touch conftest.c
6126 $AR $plugin_option rc conftest.a conftest.c
6127 if test "$?" != 0; then
6128 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
6129 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
6130 else
6131 AR="$AR $plugin_option"
6133 rm -f conftest.*
6136 test -z "$AR_FLAGS" && AR_FLAGS=cru
6148 if test -n "$ac_tool_prefix"; then
6149 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6150 set dummy ${ac_tool_prefix}strip; ac_word=$2
6151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6152 $as_echo_n "checking for $ac_word... " >&6; }
6153 if ${ac_cv_prog_STRIP+:} false; then :
6154 $as_echo_n "(cached) " >&6
6155 else
6156 if test -n "$STRIP"; then
6157 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6158 else
6159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6160 for as_dir in $PATH
6162 IFS=$as_save_IFS
6163 test -z "$as_dir" && as_dir=.
6164 for ac_exec_ext in '' $ac_executable_extensions; do
6165 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6166 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6168 break 2
6170 done
6171 done
6172 IFS=$as_save_IFS
6176 STRIP=$ac_cv_prog_STRIP
6177 if test -n "$STRIP"; then
6178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6179 $as_echo "$STRIP" >&6; }
6180 else
6181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6182 $as_echo "no" >&6; }
6187 if test -z "$ac_cv_prog_STRIP"; then
6188 ac_ct_STRIP=$STRIP
6189 # Extract the first word of "strip", so it can be a program name with args.
6190 set dummy strip; ac_word=$2
6191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6192 $as_echo_n "checking for $ac_word... " >&6; }
6193 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6194 $as_echo_n "(cached) " >&6
6195 else
6196 if test -n "$ac_ct_STRIP"; then
6197 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6198 else
6199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6200 for as_dir in $PATH
6202 IFS=$as_save_IFS
6203 test -z "$as_dir" && as_dir=.
6204 for ac_exec_ext in '' $ac_executable_extensions; do
6205 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6206 ac_cv_prog_ac_ct_STRIP="strip"
6207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6208 break 2
6210 done
6211 done
6212 IFS=$as_save_IFS
6216 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6217 if test -n "$ac_ct_STRIP"; then
6218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6219 $as_echo "$ac_ct_STRIP" >&6; }
6220 else
6221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6222 $as_echo "no" >&6; }
6225 if test "x$ac_ct_STRIP" = x; then
6226 STRIP=":"
6227 else
6228 case $cross_compiling:$ac_tool_warned in
6229 yes:)
6230 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6231 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6232 ac_tool_warned=yes ;;
6233 esac
6234 STRIP=$ac_ct_STRIP
6236 else
6237 STRIP="$ac_cv_prog_STRIP"
6240 test -z "$STRIP" && STRIP=:
6247 if test -n "$ac_tool_prefix"; then
6248 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6249 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6251 $as_echo_n "checking for $ac_word... " >&6; }
6252 if ${ac_cv_prog_RANLIB+:} false; then :
6253 $as_echo_n "(cached) " >&6
6254 else
6255 if test -n "$RANLIB"; then
6256 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6257 else
6258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6259 for as_dir in $PATH
6261 IFS=$as_save_IFS
6262 test -z "$as_dir" && as_dir=.
6263 for ac_exec_ext in '' $ac_executable_extensions; do
6264 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6265 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6266 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6267 break 2
6269 done
6270 done
6271 IFS=$as_save_IFS
6275 RANLIB=$ac_cv_prog_RANLIB
6276 if test -n "$RANLIB"; then
6277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6278 $as_echo "$RANLIB" >&6; }
6279 else
6280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6281 $as_echo "no" >&6; }
6286 if test -z "$ac_cv_prog_RANLIB"; then
6287 ac_ct_RANLIB=$RANLIB
6288 # Extract the first word of "ranlib", so it can be a program name with args.
6289 set dummy ranlib; ac_word=$2
6290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6291 $as_echo_n "checking for $ac_word... " >&6; }
6292 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6293 $as_echo_n "(cached) " >&6
6294 else
6295 if test -n "$ac_ct_RANLIB"; then
6296 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6297 else
6298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6299 for as_dir in $PATH
6301 IFS=$as_save_IFS
6302 test -z "$as_dir" && as_dir=.
6303 for ac_exec_ext in '' $ac_executable_extensions; do
6304 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6305 ac_cv_prog_ac_ct_RANLIB="ranlib"
6306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6307 break 2
6309 done
6310 done
6311 IFS=$as_save_IFS
6315 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6316 if test -n "$ac_ct_RANLIB"; then
6317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6318 $as_echo "$ac_ct_RANLIB" >&6; }
6319 else
6320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6321 $as_echo "no" >&6; }
6324 if test "x$ac_ct_RANLIB" = x; then
6325 RANLIB=":"
6326 else
6327 case $cross_compiling:$ac_tool_warned in
6328 yes:)
6329 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6330 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6331 ac_tool_warned=yes ;;
6332 esac
6333 RANLIB=$ac_ct_RANLIB
6335 else
6336 RANLIB="$ac_cv_prog_RANLIB"
6339 test -z "$RANLIB" && RANLIB=:
6340 if test -n "$plugin_option" && test "$RANLIB" != ":"; then
6341 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
6342 RANLIB="$RANLIB $plugin_option"
6351 # Determine commands to create old-style static archives.
6352 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6353 old_postinstall_cmds='chmod 644 $oldlib'
6354 old_postuninstall_cmds=
6356 if test -n "$RANLIB"; then
6357 case $host_os in
6358 openbsd*)
6359 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6362 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6364 esac
6365 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6368 case $host_os in
6369 darwin*)
6370 lock_old_archive_extraction=yes ;;
6372 lock_old_archive_extraction=no ;;
6373 esac
6413 # If no C compiler was specified, use CC.
6414 LTCC=${LTCC-"$CC"}
6416 # If no C compiler flags were specified, use CFLAGS.
6417 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6419 # Allow CC to be a program name with arguments.
6420 compiler=$CC
6423 # Check for command to grab the raw symbol name followed by C symbol from nm.
6424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6425 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6426 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6427 $as_echo_n "(cached) " >&6
6428 else
6430 # These are sane defaults that work on at least a few old systems.
6431 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6433 # Character class describing NM global symbol codes.
6434 symcode='[BCDEGRST]'
6436 # Regexp to match symbols that can be accessed directly from C.
6437 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6439 # Define system-specific variables.
6440 case $host_os in
6441 aix*)
6442 symcode='[BCDT]'
6444 cygwin* | mingw* | pw32* | cegcc*)
6445 symcode='[ABCDGISTW]'
6447 hpux*)
6448 if test "$host_cpu" = ia64; then
6449 symcode='[ABCDEGRST]'
6452 irix* | nonstopux*)
6453 symcode='[BCDEGRST]'
6455 osf*)
6456 symcode='[BCDEGQRST]'
6458 solaris*)
6459 symcode='[BCDRT]'
6461 sco3.2v5*)
6462 symcode='[DT]'
6464 sysv4.2uw2*)
6465 symcode='[DT]'
6467 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6468 symcode='[ABDT]'
6470 sysv4)
6471 symcode='[DFNSTU]'
6473 esac
6475 # If we're using GNU nm, then use its standard symbol codes.
6476 case `$NM -V 2>&1` in
6477 *GNU* | *'with BFD'*)
6478 symcode='[ABCDGIRSTW]' ;;
6479 esac
6481 # Transform an extracted symbol line into a proper C declaration.
6482 # Some systems (esp. on ia64) link data and code symbols differently,
6483 # so use this general approach.
6484 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6486 # Transform an extracted symbol line into symbol name and symbol address
6487 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6488 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'"
6490 # Handle CRLF in mingw tool chain
6491 opt_cr=
6492 case $build_os in
6493 mingw*)
6494 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6496 esac
6498 # Try without a prefix underscore, then with it.
6499 for ac_symprfx in "" "_"; do
6501 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6502 symxfrm="\\1 $ac_symprfx\\2 \\2"
6504 # Write the raw and C identifiers.
6505 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6506 # Fake it for dumpbin and say T for any non-static function
6507 # and D for any global variable.
6508 # Also find C++ and __fastcall symbols from MSVC++,
6509 # which start with @ or ?.
6510 lt_cv_sys_global_symbol_pipe="$AWK '"\
6511 " {last_section=section; section=\$ 3};"\
6512 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6513 " \$ 0!~/External *\|/{next};"\
6514 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6515 " {if(hide[section]) next};"\
6516 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6517 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6518 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6519 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6520 " ' prfx=^$ac_symprfx"
6521 else
6522 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6525 # Check to see that the pipe works correctly.
6526 pipe_works=no
6528 rm -f conftest*
6529 cat > conftest.$ac_ext <<_LT_EOF
6530 #ifdef __cplusplus
6531 extern "C" {
6532 #endif
6533 char nm_test_var;
6534 void nm_test_func(void);
6535 void nm_test_func(void){}
6536 #ifdef __cplusplus
6538 #endif
6539 int main(){nm_test_var='a';nm_test_func();return(0);}
6540 _LT_EOF
6542 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6543 (eval $ac_compile) 2>&5
6544 ac_status=$?
6545 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6546 test $ac_status = 0; }; then
6547 # Now try to grab the symbols.
6548 nlist=conftest.nm
6549 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6550 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6551 ac_status=$?
6552 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6553 test $ac_status = 0; } && test -s "$nlist"; then
6554 # Try sorting and uniquifying the output.
6555 if sort "$nlist" | uniq > "$nlist"T; then
6556 mv -f "$nlist"T "$nlist"
6557 else
6558 rm -f "$nlist"T
6561 # Make sure that we snagged all the symbols we need.
6562 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6563 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6564 cat <<_LT_EOF > conftest.$ac_ext
6565 #ifdef __cplusplus
6566 extern "C" {
6567 #endif
6569 _LT_EOF
6570 # Now generate the symbol file.
6571 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6573 cat <<_LT_EOF >> conftest.$ac_ext
6575 /* The mapping between symbol names and symbols. */
6576 const struct {
6577 const char *name;
6578 void *address;
6580 lt__PROGRAM__LTX_preloaded_symbols[] =
6582 { "@PROGRAM@", (void *) 0 },
6583 _LT_EOF
6584 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6585 cat <<\_LT_EOF >> conftest.$ac_ext
6586 {0, (void *) 0}
6589 /* This works around a problem in FreeBSD linker */
6590 #ifdef FREEBSD_WORKAROUND
6591 static const void *lt_preloaded_setup() {
6592 return lt__PROGRAM__LTX_preloaded_symbols;
6594 #endif
6596 #ifdef __cplusplus
6598 #endif
6599 _LT_EOF
6600 # Now try linking the two files.
6601 mv conftest.$ac_objext conftstm.$ac_objext
6602 lt_save_LIBS="$LIBS"
6603 lt_save_CFLAGS="$CFLAGS"
6604 LIBS="conftstm.$ac_objext"
6605 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6606 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6607 (eval $ac_link) 2>&5
6608 ac_status=$?
6609 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6610 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6611 pipe_works=yes
6613 LIBS="$lt_save_LIBS"
6614 CFLAGS="$lt_save_CFLAGS"
6615 else
6616 echo "cannot find nm_test_func in $nlist" >&5
6618 else
6619 echo "cannot find nm_test_var in $nlist" >&5
6621 else
6622 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6624 else
6625 echo "$progname: failed program was:" >&5
6626 cat conftest.$ac_ext >&5
6628 rm -rf conftest* conftst*
6630 # Do not use the global_symbol_pipe unless it works.
6631 if test "$pipe_works" = yes; then
6632 break
6633 else
6634 lt_cv_sys_global_symbol_pipe=
6636 done
6640 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6641 lt_cv_sys_global_symbol_to_cdecl=
6643 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6645 $as_echo "failed" >&6; }
6646 else
6647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6648 $as_echo "ok" >&6; }
6672 # Check whether --enable-libtool-lock was given.
6673 if test "${enable_libtool_lock+set}" = set; then :
6674 enableval=$enable_libtool_lock;
6677 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6679 # Some flags need to be propagated to the compiler or linker for good
6680 # libtool support.
6681 case $host in
6682 ia64-*-hpux*)
6683 # Find out which ABI we are using.
6684 echo 'int i;' > conftest.$ac_ext
6685 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6686 (eval $ac_compile) 2>&5
6687 ac_status=$?
6688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6689 test $ac_status = 0; }; then
6690 case `/usr/bin/file conftest.$ac_objext` in
6691 *ELF-32*)
6692 HPUX_IA64_MODE="32"
6694 *ELF-64*)
6695 HPUX_IA64_MODE="64"
6697 esac
6699 rm -rf conftest*
6701 *-*-irix6*)
6702 # Find out which ABI we are using.
6703 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6704 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6705 (eval $ac_compile) 2>&5
6706 ac_status=$?
6707 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6708 test $ac_status = 0; }; then
6709 if test "$lt_cv_prog_gnu_ld" = yes; then
6710 case `/usr/bin/file conftest.$ac_objext` in
6711 *32-bit*)
6712 LD="${LD-ld} -melf32bsmip"
6714 *N32*)
6715 LD="${LD-ld} -melf32bmipn32"
6717 *64-bit*)
6718 LD="${LD-ld} -melf64bmip"
6720 esac
6721 else
6722 case `/usr/bin/file conftest.$ac_objext` in
6723 *32-bit*)
6724 LD="${LD-ld} -32"
6726 *N32*)
6727 LD="${LD-ld} -n32"
6729 *64-bit*)
6730 LD="${LD-ld} -64"
6732 esac
6735 rm -rf conftest*
6738 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6739 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6740 # Find out which ABI we are using.
6741 echo 'int i;' > conftest.$ac_ext
6742 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6743 (eval $ac_compile) 2>&5
6744 ac_status=$?
6745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6746 test $ac_status = 0; }; then
6747 case `/usr/bin/file conftest.o` in
6748 *32-bit*)
6749 case $host in
6750 x86_64-*kfreebsd*-gnu)
6751 LD="${LD-ld} -m elf_i386_fbsd"
6753 x86_64-*linux*)
6754 case `/usr/bin/file conftest.o` in
6755 *x86-64*)
6756 LD="${LD-ld} -m elf32_x86_64"
6759 LD="${LD-ld} -m elf_i386"
6761 esac
6763 powerpc64le-*linux*)
6764 LD="${LD-ld} -m elf32lppclinux"
6766 powerpc64-*linux*)
6767 LD="${LD-ld} -m elf32ppclinux"
6769 s390x-*linux*)
6770 LD="${LD-ld} -m elf_s390"
6772 sparc64-*linux*)
6773 LD="${LD-ld} -m elf32_sparc"
6775 esac
6777 *64-bit*)
6778 case $host in
6779 x86_64-*kfreebsd*-gnu)
6780 LD="${LD-ld} -m elf_x86_64_fbsd"
6782 x86_64-*linux*)
6783 LD="${LD-ld} -m elf_x86_64"
6785 powerpcle-*linux*)
6786 LD="${LD-ld} -m elf64lppc"
6788 powerpc-*linux*)
6789 LD="${LD-ld} -m elf64ppc"
6791 s390*-*linux*|s390*-*tpf*)
6792 LD="${LD-ld} -m elf64_s390"
6794 sparc*-*linux*)
6795 LD="${LD-ld} -m elf64_sparc"
6797 esac
6799 esac
6801 rm -rf conftest*
6804 *-*-sco3.2v5*)
6805 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6806 SAVE_CFLAGS="$CFLAGS"
6807 CFLAGS="$CFLAGS -belf"
6808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6809 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6810 if ${lt_cv_cc_needs_belf+:} false; then :
6811 $as_echo_n "(cached) " >&6
6812 else
6813 ac_ext=c
6814 ac_cpp='$CPP $CPPFLAGS'
6815 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6816 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6817 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6820 /* end confdefs.h. */
6823 main ()
6827 return 0;
6829 _ACEOF
6830 if ac_fn_c_try_link "$LINENO"; then :
6831 lt_cv_cc_needs_belf=yes
6832 else
6833 lt_cv_cc_needs_belf=no
6835 rm -f core conftest.err conftest.$ac_objext \
6836 conftest$ac_exeext conftest.$ac_ext
6837 ac_ext=c
6838 ac_cpp='$CPP $CPPFLAGS'
6839 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6840 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6841 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6845 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6846 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6847 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6848 CFLAGS="$SAVE_CFLAGS"
6851 sparc*-*solaris*)
6852 # Find out which ABI we are using.
6853 echo 'int i;' > conftest.$ac_ext
6854 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6855 (eval $ac_compile) 2>&5
6856 ac_status=$?
6857 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6858 test $ac_status = 0; }; then
6859 case `/usr/bin/file conftest.o` in
6860 *64-bit*)
6861 case $lt_cv_prog_gnu_ld in
6862 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6864 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6865 LD="${LD-ld} -64"
6868 esac
6870 esac
6872 rm -rf conftest*
6874 esac
6876 need_locks="$enable_libtool_lock"
6879 case $host_os in
6880 rhapsody* | darwin*)
6881 if test -n "$ac_tool_prefix"; then
6882 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6883 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6885 $as_echo_n "checking for $ac_word... " >&6; }
6886 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6887 $as_echo_n "(cached) " >&6
6888 else
6889 if test -n "$DSYMUTIL"; then
6890 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6891 else
6892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6893 for as_dir in $PATH
6895 IFS=$as_save_IFS
6896 test -z "$as_dir" && as_dir=.
6897 for ac_exec_ext in '' $ac_executable_extensions; do
6898 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6899 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6901 break 2
6903 done
6904 done
6905 IFS=$as_save_IFS
6909 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6910 if test -n "$DSYMUTIL"; then
6911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6912 $as_echo "$DSYMUTIL" >&6; }
6913 else
6914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6915 $as_echo "no" >&6; }
6920 if test -z "$ac_cv_prog_DSYMUTIL"; then
6921 ac_ct_DSYMUTIL=$DSYMUTIL
6922 # Extract the first word of "dsymutil", so it can be a program name with args.
6923 set dummy dsymutil; ac_word=$2
6924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6925 $as_echo_n "checking for $ac_word... " >&6; }
6926 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6927 $as_echo_n "(cached) " >&6
6928 else
6929 if test -n "$ac_ct_DSYMUTIL"; then
6930 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6931 else
6932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6933 for as_dir in $PATH
6935 IFS=$as_save_IFS
6936 test -z "$as_dir" && as_dir=.
6937 for ac_exec_ext in '' $ac_executable_extensions; do
6938 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6939 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6941 break 2
6943 done
6944 done
6945 IFS=$as_save_IFS
6949 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6950 if test -n "$ac_ct_DSYMUTIL"; then
6951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6952 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6953 else
6954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6955 $as_echo "no" >&6; }
6958 if test "x$ac_ct_DSYMUTIL" = x; then
6959 DSYMUTIL=":"
6960 else
6961 case $cross_compiling:$ac_tool_warned in
6962 yes:)
6963 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6964 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6965 ac_tool_warned=yes ;;
6966 esac
6967 DSYMUTIL=$ac_ct_DSYMUTIL
6969 else
6970 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6973 if test -n "$ac_tool_prefix"; then
6974 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6975 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6977 $as_echo_n "checking for $ac_word... " >&6; }
6978 if ${ac_cv_prog_NMEDIT+:} false; then :
6979 $as_echo_n "(cached) " >&6
6980 else
6981 if test -n "$NMEDIT"; then
6982 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6983 else
6984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6985 for as_dir in $PATH
6987 IFS=$as_save_IFS
6988 test -z "$as_dir" && as_dir=.
6989 for ac_exec_ext in '' $ac_executable_extensions; do
6990 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6991 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6993 break 2
6995 done
6996 done
6997 IFS=$as_save_IFS
7001 NMEDIT=$ac_cv_prog_NMEDIT
7002 if test -n "$NMEDIT"; then
7003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7004 $as_echo "$NMEDIT" >&6; }
7005 else
7006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7007 $as_echo "no" >&6; }
7012 if test -z "$ac_cv_prog_NMEDIT"; then
7013 ac_ct_NMEDIT=$NMEDIT
7014 # Extract the first word of "nmedit", so it can be a program name with args.
7015 set dummy nmedit; ac_word=$2
7016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7017 $as_echo_n "checking for $ac_word... " >&6; }
7018 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7019 $as_echo_n "(cached) " >&6
7020 else
7021 if test -n "$ac_ct_NMEDIT"; then
7022 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7023 else
7024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7025 for as_dir in $PATH
7027 IFS=$as_save_IFS
7028 test -z "$as_dir" && as_dir=.
7029 for ac_exec_ext in '' $ac_executable_extensions; do
7030 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7031 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7033 break 2
7035 done
7036 done
7037 IFS=$as_save_IFS
7041 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7042 if test -n "$ac_ct_NMEDIT"; then
7043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7044 $as_echo "$ac_ct_NMEDIT" >&6; }
7045 else
7046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7047 $as_echo "no" >&6; }
7050 if test "x$ac_ct_NMEDIT" = x; then
7051 NMEDIT=":"
7052 else
7053 case $cross_compiling:$ac_tool_warned in
7054 yes:)
7055 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7056 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7057 ac_tool_warned=yes ;;
7058 esac
7059 NMEDIT=$ac_ct_NMEDIT
7061 else
7062 NMEDIT="$ac_cv_prog_NMEDIT"
7065 if test -n "$ac_tool_prefix"; then
7066 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7067 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7069 $as_echo_n "checking for $ac_word... " >&6; }
7070 if ${ac_cv_prog_LIPO+:} false; then :
7071 $as_echo_n "(cached) " >&6
7072 else
7073 if test -n "$LIPO"; then
7074 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7075 else
7076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7077 for as_dir in $PATH
7079 IFS=$as_save_IFS
7080 test -z "$as_dir" && as_dir=.
7081 for ac_exec_ext in '' $ac_executable_extensions; do
7082 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7083 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7085 break 2
7087 done
7088 done
7089 IFS=$as_save_IFS
7093 LIPO=$ac_cv_prog_LIPO
7094 if test -n "$LIPO"; then
7095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7096 $as_echo "$LIPO" >&6; }
7097 else
7098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7099 $as_echo "no" >&6; }
7104 if test -z "$ac_cv_prog_LIPO"; then
7105 ac_ct_LIPO=$LIPO
7106 # Extract the first word of "lipo", so it can be a program name with args.
7107 set dummy lipo; ac_word=$2
7108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7109 $as_echo_n "checking for $ac_word... " >&6; }
7110 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7111 $as_echo_n "(cached) " >&6
7112 else
7113 if test -n "$ac_ct_LIPO"; then
7114 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7115 else
7116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7117 for as_dir in $PATH
7119 IFS=$as_save_IFS
7120 test -z "$as_dir" && as_dir=.
7121 for ac_exec_ext in '' $ac_executable_extensions; do
7122 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7123 ac_cv_prog_ac_ct_LIPO="lipo"
7124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7125 break 2
7127 done
7128 done
7129 IFS=$as_save_IFS
7133 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7134 if test -n "$ac_ct_LIPO"; then
7135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7136 $as_echo "$ac_ct_LIPO" >&6; }
7137 else
7138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7139 $as_echo "no" >&6; }
7142 if test "x$ac_ct_LIPO" = x; then
7143 LIPO=":"
7144 else
7145 case $cross_compiling:$ac_tool_warned in
7146 yes:)
7147 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7148 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7149 ac_tool_warned=yes ;;
7150 esac
7151 LIPO=$ac_ct_LIPO
7153 else
7154 LIPO="$ac_cv_prog_LIPO"
7157 if test -n "$ac_tool_prefix"; then
7158 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7159 set dummy ${ac_tool_prefix}otool; ac_word=$2
7160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7161 $as_echo_n "checking for $ac_word... " >&6; }
7162 if ${ac_cv_prog_OTOOL+:} false; then :
7163 $as_echo_n "(cached) " >&6
7164 else
7165 if test -n "$OTOOL"; then
7166 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7167 else
7168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7169 for as_dir in $PATH
7171 IFS=$as_save_IFS
7172 test -z "$as_dir" && as_dir=.
7173 for ac_exec_ext in '' $ac_executable_extensions; do
7174 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7175 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7177 break 2
7179 done
7180 done
7181 IFS=$as_save_IFS
7185 OTOOL=$ac_cv_prog_OTOOL
7186 if test -n "$OTOOL"; then
7187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7188 $as_echo "$OTOOL" >&6; }
7189 else
7190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7191 $as_echo "no" >&6; }
7196 if test -z "$ac_cv_prog_OTOOL"; then
7197 ac_ct_OTOOL=$OTOOL
7198 # Extract the first word of "otool", so it can be a program name with args.
7199 set dummy otool; ac_word=$2
7200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7201 $as_echo_n "checking for $ac_word... " >&6; }
7202 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7203 $as_echo_n "(cached) " >&6
7204 else
7205 if test -n "$ac_ct_OTOOL"; then
7206 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7207 else
7208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7209 for as_dir in $PATH
7211 IFS=$as_save_IFS
7212 test -z "$as_dir" && as_dir=.
7213 for ac_exec_ext in '' $ac_executable_extensions; do
7214 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7215 ac_cv_prog_ac_ct_OTOOL="otool"
7216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7217 break 2
7219 done
7220 done
7221 IFS=$as_save_IFS
7225 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7226 if test -n "$ac_ct_OTOOL"; then
7227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7228 $as_echo "$ac_ct_OTOOL" >&6; }
7229 else
7230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7231 $as_echo "no" >&6; }
7234 if test "x$ac_ct_OTOOL" = x; then
7235 OTOOL=":"
7236 else
7237 case $cross_compiling:$ac_tool_warned in
7238 yes:)
7239 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7240 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7241 ac_tool_warned=yes ;;
7242 esac
7243 OTOOL=$ac_ct_OTOOL
7245 else
7246 OTOOL="$ac_cv_prog_OTOOL"
7249 if test -n "$ac_tool_prefix"; then
7250 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7251 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7253 $as_echo_n "checking for $ac_word... " >&6; }
7254 if ${ac_cv_prog_OTOOL64+:} false; then :
7255 $as_echo_n "(cached) " >&6
7256 else
7257 if test -n "$OTOOL64"; then
7258 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7259 else
7260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7261 for as_dir in $PATH
7263 IFS=$as_save_IFS
7264 test -z "$as_dir" && as_dir=.
7265 for ac_exec_ext in '' $ac_executable_extensions; do
7266 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7267 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7269 break 2
7271 done
7272 done
7273 IFS=$as_save_IFS
7277 OTOOL64=$ac_cv_prog_OTOOL64
7278 if test -n "$OTOOL64"; then
7279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7280 $as_echo "$OTOOL64" >&6; }
7281 else
7282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7283 $as_echo "no" >&6; }
7288 if test -z "$ac_cv_prog_OTOOL64"; then
7289 ac_ct_OTOOL64=$OTOOL64
7290 # Extract the first word of "otool64", so it can be a program name with args.
7291 set dummy otool64; ac_word=$2
7292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7293 $as_echo_n "checking for $ac_word... " >&6; }
7294 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7295 $as_echo_n "(cached) " >&6
7296 else
7297 if test -n "$ac_ct_OTOOL64"; then
7298 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7299 else
7300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7301 for as_dir in $PATH
7303 IFS=$as_save_IFS
7304 test -z "$as_dir" && as_dir=.
7305 for ac_exec_ext in '' $ac_executable_extensions; do
7306 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7307 ac_cv_prog_ac_ct_OTOOL64="otool64"
7308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7309 break 2
7311 done
7312 done
7313 IFS=$as_save_IFS
7317 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7318 if test -n "$ac_ct_OTOOL64"; then
7319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7320 $as_echo "$ac_ct_OTOOL64" >&6; }
7321 else
7322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7323 $as_echo "no" >&6; }
7326 if test "x$ac_ct_OTOOL64" = x; then
7327 OTOOL64=":"
7328 else
7329 case $cross_compiling:$ac_tool_warned in
7330 yes:)
7331 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7332 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7333 ac_tool_warned=yes ;;
7334 esac
7335 OTOOL64=$ac_ct_OTOOL64
7337 else
7338 OTOOL64="$ac_cv_prog_OTOOL64"
7367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7368 $as_echo_n "checking for -single_module linker flag... " >&6; }
7369 if ${lt_cv_apple_cc_single_mod+:} false; then :
7370 $as_echo_n "(cached) " >&6
7371 else
7372 lt_cv_apple_cc_single_mod=no
7373 if test -z "${LT_MULTI_MODULE}"; then
7374 # By default we will add the -single_module flag. You can override
7375 # by either setting the environment variable LT_MULTI_MODULE
7376 # non-empty at configure time, or by adding -multi_module to the
7377 # link flags.
7378 rm -rf libconftest.dylib*
7379 echo "int foo(void){return 1;}" > conftest.c
7380 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7381 -dynamiclib -Wl,-single_module conftest.c" >&5
7382 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7383 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7384 _lt_result=$?
7385 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7386 lt_cv_apple_cc_single_mod=yes
7387 else
7388 cat conftest.err >&5
7390 rm -rf libconftest.dylib*
7391 rm -f conftest.*
7394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7395 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7397 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7398 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7399 $as_echo_n "(cached) " >&6
7400 else
7401 lt_cv_ld_exported_symbols_list=no
7402 save_LDFLAGS=$LDFLAGS
7403 echo "_main" > conftest.sym
7404 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7406 /* end confdefs.h. */
7409 main ()
7413 return 0;
7415 _ACEOF
7416 if ac_fn_c_try_link "$LINENO"; then :
7417 lt_cv_ld_exported_symbols_list=yes
7418 else
7419 lt_cv_ld_exported_symbols_list=no
7421 rm -f core conftest.err conftest.$ac_objext \
7422 conftest$ac_exeext conftest.$ac_ext
7423 LDFLAGS="$save_LDFLAGS"
7426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7427 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7429 $as_echo_n "checking for -force_load linker flag... " >&6; }
7430 if ${lt_cv_ld_force_load+:} false; then :
7431 $as_echo_n "(cached) " >&6
7432 else
7433 lt_cv_ld_force_load=no
7434 cat > conftest.c << _LT_EOF
7435 int forced_loaded() { return 2;}
7436 _LT_EOF
7437 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7438 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7439 echo "$AR cru libconftest.a conftest.o" >&5
7440 $AR cru libconftest.a conftest.o 2>&5
7441 cat > conftest.c << _LT_EOF
7442 int main() { return 0;}
7443 _LT_EOF
7444 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7445 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7446 _lt_result=$?
7447 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7448 lt_cv_ld_force_load=yes
7449 else
7450 cat conftest.err >&5
7452 rm -f conftest.err libconftest.a conftest conftest.c
7453 rm -rf conftest.dSYM
7456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7457 $as_echo "$lt_cv_ld_force_load" >&6; }
7458 case $host_os in
7459 rhapsody* | darwin1.[012])
7460 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7461 darwin1.*)
7462 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7463 darwin*) # darwin 5.x on
7464 # if running on 10.5 or later, the deployment target defaults
7465 # to the OS version, if on x86, and 10.4, the deployment
7466 # target defaults to 10.4. Don't you love it?
7467 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7468 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7469 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7470 10.[012][,.]*)
7471 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7472 10.*)
7473 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7474 esac
7476 esac
7477 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7478 _lt_dar_single_mod='$single_module'
7480 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7481 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7482 else
7483 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7485 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7486 _lt_dsymutil='~$DSYMUTIL $lib || :'
7487 else
7488 _lt_dsymutil=
7491 esac
7493 for ac_header in dlfcn.h
7494 do :
7495 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7497 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7498 cat >>confdefs.h <<_ACEOF
7499 #define HAVE_DLFCN_H 1
7500 _ACEOF
7504 done
7510 # Set options
7514 enable_dlopen=no
7517 enable_win32_dll=no
7520 # Check whether --enable-shared was given.
7521 if test "${enable_shared+set}" = set; then :
7522 enableval=$enable_shared; p=${PACKAGE-default}
7523 case $enableval in
7524 yes) enable_shared=yes ;;
7525 no) enable_shared=no ;;
7527 enable_shared=no
7528 # Look at the argument we got. We use all the common list separators.
7529 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7530 for pkg in $enableval; do
7531 IFS="$lt_save_ifs"
7532 if test "X$pkg" = "X$p"; then
7533 enable_shared=yes
7535 done
7536 IFS="$lt_save_ifs"
7538 esac
7539 else
7540 enable_shared=yes
7551 # Check whether --enable-static was given.
7552 if test "${enable_static+set}" = set; then :
7553 enableval=$enable_static; p=${PACKAGE-default}
7554 case $enableval in
7555 yes) enable_static=yes ;;
7556 no) enable_static=no ;;
7558 enable_static=no
7559 # Look at the argument we got. We use all the common list separators.
7560 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7561 for pkg in $enableval; do
7562 IFS="$lt_save_ifs"
7563 if test "X$pkg" = "X$p"; then
7564 enable_static=yes
7566 done
7567 IFS="$lt_save_ifs"
7569 esac
7570 else
7571 enable_static=yes
7583 # Check whether --with-pic was given.
7584 if test "${with_pic+set}" = set; then :
7585 withval=$with_pic; pic_mode="$withval"
7586 else
7587 pic_mode=default
7591 test -z "$pic_mode" && pic_mode=default
7599 # Check whether --enable-fast-install was given.
7600 if test "${enable_fast_install+set}" = set; then :
7601 enableval=$enable_fast_install; p=${PACKAGE-default}
7602 case $enableval in
7603 yes) enable_fast_install=yes ;;
7604 no) enable_fast_install=no ;;
7606 enable_fast_install=no
7607 # Look at the argument we got. We use all the common list separators.
7608 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7609 for pkg in $enableval; do
7610 IFS="$lt_save_ifs"
7611 if test "X$pkg" = "X$p"; then
7612 enable_fast_install=yes
7614 done
7615 IFS="$lt_save_ifs"
7617 esac
7618 else
7619 enable_fast_install=yes
7632 # This can be used to rebuild libtool when needed
7633 LIBTOOL_DEPS="$ltmain"
7635 # Always use our own libtool.
7636 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7663 test -z "$LN_S" && LN_S="ln -s"
7678 if test -n "${ZSH_VERSION+set}" ; then
7679 setopt NO_GLOB_SUBST
7682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7683 $as_echo_n "checking for objdir... " >&6; }
7684 if ${lt_cv_objdir+:} false; then :
7685 $as_echo_n "(cached) " >&6
7686 else
7687 rm -f .libs 2>/dev/null
7688 mkdir .libs 2>/dev/null
7689 if test -d .libs; then
7690 lt_cv_objdir=.libs
7691 else
7692 # MS-DOS does not allow filenames that begin with a dot.
7693 lt_cv_objdir=_libs
7695 rmdir .libs 2>/dev/null
7697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7698 $as_echo "$lt_cv_objdir" >&6; }
7699 objdir=$lt_cv_objdir
7705 cat >>confdefs.h <<_ACEOF
7706 #define LT_OBJDIR "$lt_cv_objdir/"
7707 _ACEOF
7712 case $host_os in
7713 aix3*)
7714 # AIX sometimes has problems with the GCC collect2 program. For some
7715 # reason, if we set the COLLECT_NAMES environment variable, the problems
7716 # vanish in a puff of smoke.
7717 if test "X${COLLECT_NAMES+set}" != Xset; then
7718 COLLECT_NAMES=
7719 export COLLECT_NAMES
7722 esac
7724 # Global variables:
7725 ofile=libtool
7726 can_build_shared=yes
7728 # All known linkers require a `.a' archive for static linking (except MSVC,
7729 # which needs '.lib').
7730 libext=a
7732 with_gnu_ld="$lt_cv_prog_gnu_ld"
7734 old_CC="$CC"
7735 old_CFLAGS="$CFLAGS"
7737 # Set sane defaults for various variables
7738 test -z "$CC" && CC=cc
7739 test -z "$LTCC" && LTCC=$CC
7740 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7741 test -z "$LD" && LD=ld
7742 test -z "$ac_objext" && ac_objext=o
7744 for cc_temp in $compiler""; do
7745 case $cc_temp in
7746 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7747 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7748 \-*) ;;
7749 *) break;;
7750 esac
7751 done
7752 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7755 # Only perform the check for file, if the check method requires it
7756 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7757 case $deplibs_check_method in
7758 file_magic*)
7759 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7761 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7762 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7763 $as_echo_n "(cached) " >&6
7764 else
7765 case $MAGIC_CMD in
7766 [\\/*] | ?:[\\/]*)
7767 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7770 lt_save_MAGIC_CMD="$MAGIC_CMD"
7771 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7772 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7773 for ac_dir in $ac_dummy; do
7774 IFS="$lt_save_ifs"
7775 test -z "$ac_dir" && ac_dir=.
7776 if test -f $ac_dir/${ac_tool_prefix}file; then
7777 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7778 if test -n "$file_magic_test_file"; then
7779 case $deplibs_check_method in
7780 "file_magic "*)
7781 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7782 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7783 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7784 $EGREP "$file_magic_regex" > /dev/null; then
7786 else
7787 cat <<_LT_EOF 1>&2
7789 *** Warning: the command libtool uses to detect shared libraries,
7790 *** $file_magic_cmd, produces output that libtool cannot recognize.
7791 *** The result is that libtool may fail to recognize shared libraries
7792 *** as such. This will affect the creation of libtool libraries that
7793 *** depend on shared libraries, but programs linked with such libtool
7794 *** libraries will work regardless of this problem. Nevertheless, you
7795 *** may want to report the problem to your system manager and/or to
7796 *** bug-libtool@gnu.org
7798 _LT_EOF
7799 fi ;;
7800 esac
7802 break
7804 done
7805 IFS="$lt_save_ifs"
7806 MAGIC_CMD="$lt_save_MAGIC_CMD"
7808 esac
7811 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7812 if test -n "$MAGIC_CMD"; then
7813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7814 $as_echo "$MAGIC_CMD" >&6; }
7815 else
7816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7817 $as_echo "no" >&6; }
7824 if test -z "$lt_cv_path_MAGIC_CMD"; then
7825 if test -n "$ac_tool_prefix"; then
7826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7827 $as_echo_n "checking for file... " >&6; }
7828 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7829 $as_echo_n "(cached) " >&6
7830 else
7831 case $MAGIC_CMD in
7832 [\\/*] | ?:[\\/]*)
7833 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7836 lt_save_MAGIC_CMD="$MAGIC_CMD"
7837 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7838 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7839 for ac_dir in $ac_dummy; do
7840 IFS="$lt_save_ifs"
7841 test -z "$ac_dir" && ac_dir=.
7842 if test -f $ac_dir/file; then
7843 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7844 if test -n "$file_magic_test_file"; then
7845 case $deplibs_check_method in
7846 "file_magic "*)
7847 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7848 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7849 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7850 $EGREP "$file_magic_regex" > /dev/null; then
7852 else
7853 cat <<_LT_EOF 1>&2
7855 *** Warning: the command libtool uses to detect shared libraries,
7856 *** $file_magic_cmd, produces output that libtool cannot recognize.
7857 *** The result is that libtool may fail to recognize shared libraries
7858 *** as such. This will affect the creation of libtool libraries that
7859 *** depend on shared libraries, but programs linked with such libtool
7860 *** libraries will work regardless of this problem. Nevertheless, you
7861 *** may want to report the problem to your system manager and/or to
7862 *** bug-libtool@gnu.org
7864 _LT_EOF
7865 fi ;;
7866 esac
7868 break
7870 done
7871 IFS="$lt_save_ifs"
7872 MAGIC_CMD="$lt_save_MAGIC_CMD"
7874 esac
7877 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7878 if test -n "$MAGIC_CMD"; then
7879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7880 $as_echo "$MAGIC_CMD" >&6; }
7881 else
7882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7883 $as_echo "no" >&6; }
7887 else
7888 MAGIC_CMD=:
7894 esac
7896 # Use C for the default configuration in the libtool script
7898 lt_save_CC="$CC"
7899 ac_ext=c
7900 ac_cpp='$CPP $CPPFLAGS'
7901 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7902 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7903 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7906 # Source file extension for C test sources.
7907 ac_ext=c
7909 # Object file extension for compiled C test sources.
7910 objext=o
7911 objext=$objext
7913 # Code to be used in simple compile tests
7914 lt_simple_compile_test_code="int some_variable = 0;"
7916 # Code to be used in simple link tests
7917 lt_simple_link_test_code='int main(){return(0);}'
7925 # If no C compiler was specified, use CC.
7926 LTCC=${LTCC-"$CC"}
7928 # If no C compiler flags were specified, use CFLAGS.
7929 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7931 # Allow CC to be a program name with arguments.
7932 compiler=$CC
7934 # Save the default compiler, since it gets overwritten when the other
7935 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7936 compiler_DEFAULT=$CC
7938 # save warnings/boilerplate of simple test code
7939 ac_outfile=conftest.$ac_objext
7940 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7941 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7942 _lt_compiler_boilerplate=`cat conftest.err`
7943 $RM conftest*
7945 ac_outfile=conftest.$ac_objext
7946 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7947 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7948 _lt_linker_boilerplate=`cat conftest.err`
7949 $RM -r conftest*
7952 ## CAVEAT EMPTOR:
7953 ## There is no encapsulation within the following macros, do not change
7954 ## the running order or otherwise move them around unless you know exactly
7955 ## what you are doing...
7956 if test -n "$compiler"; then
7958 lt_prog_compiler_no_builtin_flag=
7960 if test "$GCC" = yes; then
7961 case $cc_basename in
7962 nvcc*)
7963 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7965 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7966 esac
7968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7969 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7970 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7971 $as_echo_n "(cached) " >&6
7972 else
7973 lt_cv_prog_compiler_rtti_exceptions=no
7974 ac_outfile=conftest.$ac_objext
7975 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7976 lt_compiler_flag="-fno-rtti -fno-exceptions"
7977 # Insert the option either (1) after the last *FLAGS variable, or
7978 # (2) before a word containing "conftest.", or (3) at the end.
7979 # Note that $ac_compile itself does not contain backslashes and begins
7980 # with a dollar sign (not a hyphen), so the echo should work correctly.
7981 # The option is referenced via a variable to avoid confusing sed.
7982 lt_compile=`echo "$ac_compile" | $SED \
7983 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7984 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7985 -e 's:$: $lt_compiler_flag:'`
7986 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7987 (eval "$lt_compile" 2>conftest.err)
7988 ac_status=$?
7989 cat conftest.err >&5
7990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7991 if (exit $ac_status) && test -s "$ac_outfile"; then
7992 # The compiler can only warn and ignore the option if not recognized
7993 # So say no if there are warnings other than the usual output.
7994 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7995 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7996 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7997 lt_cv_prog_compiler_rtti_exceptions=yes
8000 $RM conftest*
8003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8004 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8006 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8007 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8008 else
8019 lt_prog_compiler_wl=
8020 lt_prog_compiler_pic=
8021 lt_prog_compiler_static=
8023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8024 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8026 if test "$GCC" = yes; then
8027 lt_prog_compiler_wl='-Wl,'
8028 lt_prog_compiler_static='-static'
8030 case $host_os in
8031 aix*)
8032 # All AIX code is PIC.
8033 if test "$host_cpu" = ia64; then
8034 # AIX 5 now supports IA64 processor
8035 lt_prog_compiler_static='-Bstatic'
8037 lt_prog_compiler_pic='-fPIC'
8040 amigaos*)
8041 case $host_cpu in
8042 powerpc)
8043 # see comment about AmigaOS4 .so support
8044 lt_prog_compiler_pic='-fPIC'
8046 m68k)
8047 # FIXME: we need at least 68020 code to build shared libraries, but
8048 # adding the `-m68020' flag to GCC prevents building anything better,
8049 # like `-m68040'.
8050 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8052 esac
8055 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8056 # PIC is the default for these OSes.
8059 mingw* | cygwin* | pw32* | os2* | cegcc*)
8060 # This hack is so that the source file can tell whether it is being
8061 # built for inclusion in a dll (and should export symbols for example).
8062 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8063 # (--disable-auto-import) libraries
8064 lt_prog_compiler_pic='-DDLL_EXPORT'
8067 darwin* | rhapsody*)
8068 # PIC is the default on this platform
8069 # Common symbols not allowed in MH_DYLIB files
8070 lt_prog_compiler_pic='-fno-common'
8073 haiku*)
8074 # PIC is the default for Haiku.
8075 # The "-static" flag exists, but is broken.
8076 lt_prog_compiler_static=
8079 hpux*)
8080 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8081 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8082 # sets the default TLS model and affects inlining.
8083 case $host_cpu in
8084 hppa*64*)
8085 # +Z the default
8088 lt_prog_compiler_pic='-fPIC'
8090 esac
8093 interix[3-9]*)
8094 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8095 # Instead, we relocate shared libraries at runtime.
8098 msdosdjgpp*)
8099 # Just because we use GCC doesn't mean we suddenly get shared libraries
8100 # on systems that don't support them.
8101 lt_prog_compiler_can_build_shared=no
8102 enable_shared=no
8105 *nto* | *qnx*)
8106 # QNX uses GNU C++, but need to define -shared option too, otherwise
8107 # it will coredump.
8108 lt_prog_compiler_pic='-fPIC -shared'
8111 sysv4*MP*)
8112 if test -d /usr/nec; then
8113 lt_prog_compiler_pic=-Kconform_pic
8118 lt_prog_compiler_pic='-fPIC'
8120 esac
8122 case $cc_basename in
8123 nvcc*) # Cuda Compiler Driver 2.2
8124 lt_prog_compiler_wl='-Xlinker '
8125 lt_prog_compiler_pic='-Xcompiler -fPIC'
8127 esac
8128 else
8129 # PORTME Check for flag to pass linker flags through the system compiler.
8130 case $host_os in
8131 aix*)
8132 lt_prog_compiler_wl='-Wl,'
8133 if test "$host_cpu" = ia64; then
8134 # AIX 5 now supports IA64 processor
8135 lt_prog_compiler_static='-Bstatic'
8136 else
8137 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8141 mingw* | cygwin* | pw32* | os2* | cegcc*)
8142 # This hack is so that the source file can tell whether it is being
8143 # built for inclusion in a dll (and should export symbols for example).
8144 lt_prog_compiler_pic='-DDLL_EXPORT'
8147 hpux9* | hpux10* | hpux11*)
8148 lt_prog_compiler_wl='-Wl,'
8149 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8150 # not for PA HP-UX.
8151 case $host_cpu in
8152 hppa*64*|ia64*)
8153 # +Z the default
8156 lt_prog_compiler_pic='+Z'
8158 esac
8159 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8160 lt_prog_compiler_static='${wl}-a ${wl}archive'
8163 irix5* | irix6* | nonstopux*)
8164 lt_prog_compiler_wl='-Wl,'
8165 # PIC (with -KPIC) is the default.
8166 lt_prog_compiler_static='-non_shared'
8169 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8170 case $cc_basename in
8171 # old Intel for x86_64 which still supported -KPIC.
8172 ecc*)
8173 lt_prog_compiler_wl='-Wl,'
8174 lt_prog_compiler_pic='-KPIC'
8175 lt_prog_compiler_static='-static'
8177 # icc used to be incompatible with GCC.
8178 # ICC 10 doesn't accept -KPIC any more.
8179 icc* | ifort*)
8180 lt_prog_compiler_wl='-Wl,'
8181 lt_prog_compiler_pic='-fPIC'
8182 lt_prog_compiler_static='-static'
8184 # Lahey Fortran 8.1.
8185 lf95*)
8186 lt_prog_compiler_wl='-Wl,'
8187 lt_prog_compiler_pic='--shared'
8188 lt_prog_compiler_static='--static'
8190 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8191 # Portland Group compilers (*not* the Pentium gcc compiler,
8192 # which looks to be a dead project)
8193 lt_prog_compiler_wl='-Wl,'
8194 lt_prog_compiler_pic='-fpic'
8195 lt_prog_compiler_static='-Bstatic'
8197 ccc*)
8198 lt_prog_compiler_wl='-Wl,'
8199 # All Alpha code is PIC.
8200 lt_prog_compiler_static='-non_shared'
8202 xl* | bgxl* | bgf* | mpixl*)
8203 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8204 lt_prog_compiler_wl='-Wl,'
8205 lt_prog_compiler_pic='-qpic'
8206 lt_prog_compiler_static='-qstaticlink'
8209 case `$CC -V 2>&1 | sed 5q` in
8210 *Sun\ F* | *Sun*Fortran*)
8211 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8212 lt_prog_compiler_pic='-KPIC'
8213 lt_prog_compiler_static='-Bstatic'
8214 lt_prog_compiler_wl=''
8216 *Sun\ C*)
8217 # Sun C 5.9
8218 lt_prog_compiler_pic='-KPIC'
8219 lt_prog_compiler_static='-Bstatic'
8220 lt_prog_compiler_wl='-Wl,'
8222 esac
8224 esac
8227 newsos6)
8228 lt_prog_compiler_pic='-KPIC'
8229 lt_prog_compiler_static='-Bstatic'
8232 *nto* | *qnx*)
8233 # QNX uses GNU C++, but need to define -shared option too, otherwise
8234 # it will coredump.
8235 lt_prog_compiler_pic='-fPIC -shared'
8238 osf3* | osf4* | osf5*)
8239 lt_prog_compiler_wl='-Wl,'
8240 # All OSF/1 code is PIC.
8241 lt_prog_compiler_static='-non_shared'
8244 rdos*)
8245 lt_prog_compiler_static='-non_shared'
8248 solaris*)
8249 lt_prog_compiler_pic='-KPIC'
8250 lt_prog_compiler_static='-Bstatic'
8251 case $cc_basename in
8252 f77* | f90* | f95*)
8253 lt_prog_compiler_wl='-Qoption ld ';;
8255 lt_prog_compiler_wl='-Wl,';;
8256 esac
8259 sunos4*)
8260 lt_prog_compiler_wl='-Qoption ld '
8261 lt_prog_compiler_pic='-PIC'
8262 lt_prog_compiler_static='-Bstatic'
8265 sysv4 | sysv4.2uw2* | sysv4.3*)
8266 lt_prog_compiler_wl='-Wl,'
8267 lt_prog_compiler_pic='-KPIC'
8268 lt_prog_compiler_static='-Bstatic'
8271 sysv4*MP*)
8272 if test -d /usr/nec ;then
8273 lt_prog_compiler_pic='-Kconform_pic'
8274 lt_prog_compiler_static='-Bstatic'
8278 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8279 lt_prog_compiler_wl='-Wl,'
8280 lt_prog_compiler_pic='-KPIC'
8281 lt_prog_compiler_static='-Bstatic'
8284 unicos*)
8285 lt_prog_compiler_wl='-Wl,'
8286 lt_prog_compiler_can_build_shared=no
8289 uts4*)
8290 lt_prog_compiler_pic='-pic'
8291 lt_prog_compiler_static='-Bstatic'
8295 lt_prog_compiler_can_build_shared=no
8297 esac
8300 case $host_os in
8301 # For platforms which do not support PIC, -DPIC is meaningless:
8302 *djgpp*)
8303 lt_prog_compiler_pic=
8306 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8308 esac
8309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8310 $as_echo "$lt_prog_compiler_pic" >&6; }
8318 # Check to make sure the PIC flag actually works.
8320 if test -n "$lt_prog_compiler_pic"; then
8321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8322 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8323 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8324 $as_echo_n "(cached) " >&6
8325 else
8326 lt_cv_prog_compiler_pic_works=no
8327 ac_outfile=conftest.$ac_objext
8328 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8329 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8330 # Insert the option either (1) after the last *FLAGS variable, or
8331 # (2) before a word containing "conftest.", or (3) at the end.
8332 # Note that $ac_compile itself does not contain backslashes and begins
8333 # with a dollar sign (not a hyphen), so the echo should work correctly.
8334 # The option is referenced via a variable to avoid confusing sed.
8335 lt_compile=`echo "$ac_compile" | $SED \
8336 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8337 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8338 -e 's:$: $lt_compiler_flag:'`
8339 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8340 (eval "$lt_compile" 2>conftest.err)
8341 ac_status=$?
8342 cat conftest.err >&5
8343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8344 if (exit $ac_status) && test -s "$ac_outfile"; then
8345 # The compiler can only warn and ignore the option if not recognized
8346 # So say no if there are warnings other than the usual output.
8347 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8348 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8349 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8350 lt_cv_prog_compiler_pic_works=yes
8353 $RM conftest*
8356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8357 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8359 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8360 case $lt_prog_compiler_pic in
8361 "" | " "*) ;;
8362 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8363 esac
8364 else
8365 lt_prog_compiler_pic=
8366 lt_prog_compiler_can_build_shared=no
8377 # Check to make sure the static flag actually works.
8379 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8381 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8382 if ${lt_cv_prog_compiler_static_works+:} false; then :
8383 $as_echo_n "(cached) " >&6
8384 else
8385 lt_cv_prog_compiler_static_works=no
8386 save_LDFLAGS="$LDFLAGS"
8387 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8388 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8389 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8390 # The linker can only warn and ignore the option if not recognized
8391 # So say no if there are warnings
8392 if test -s conftest.err; then
8393 # Append any errors to the config.log.
8394 cat conftest.err 1>&5
8395 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8396 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8397 if diff conftest.exp conftest.er2 >/dev/null; then
8398 lt_cv_prog_compiler_static_works=yes
8400 else
8401 lt_cv_prog_compiler_static_works=yes
8404 $RM -r conftest*
8405 LDFLAGS="$save_LDFLAGS"
8408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8409 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8411 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8413 else
8414 lt_prog_compiler_static=
8423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8424 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8425 if ${lt_cv_prog_compiler_c_o+:} false; then :
8426 $as_echo_n "(cached) " >&6
8427 else
8428 lt_cv_prog_compiler_c_o=no
8429 $RM -r conftest 2>/dev/null
8430 mkdir conftest
8431 cd conftest
8432 mkdir out
8433 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8435 lt_compiler_flag="-o out/conftest2.$ac_objext"
8436 # Insert the option either (1) after the last *FLAGS variable, or
8437 # (2) before a word containing "conftest.", or (3) at the end.
8438 # Note that $ac_compile itself does not contain backslashes and begins
8439 # with a dollar sign (not a hyphen), so the echo should work correctly.
8440 lt_compile=`echo "$ac_compile" | $SED \
8441 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8442 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8443 -e 's:$: $lt_compiler_flag:'`
8444 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8445 (eval "$lt_compile" 2>out/conftest.err)
8446 ac_status=$?
8447 cat out/conftest.err >&5
8448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8449 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8450 then
8451 # The compiler can only warn and ignore the option if not recognized
8452 # So say no if there are warnings
8453 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8454 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8455 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8456 lt_cv_prog_compiler_c_o=yes
8459 chmod u+w . 2>&5
8460 $RM conftest*
8461 # SGI C++ compiler will create directory out/ii_files/ for
8462 # template instantiation
8463 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8464 $RM out/* && rmdir out
8465 cd ..
8466 $RM -r conftest
8467 $RM conftest*
8470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8471 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8479 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8480 if ${lt_cv_prog_compiler_c_o+:} false; then :
8481 $as_echo_n "(cached) " >&6
8482 else
8483 lt_cv_prog_compiler_c_o=no
8484 $RM -r conftest 2>/dev/null
8485 mkdir conftest
8486 cd conftest
8487 mkdir out
8488 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8490 lt_compiler_flag="-o out/conftest2.$ac_objext"
8491 # Insert the option either (1) after the last *FLAGS variable, or
8492 # (2) before a word containing "conftest.", or (3) at the end.
8493 # Note that $ac_compile itself does not contain backslashes and begins
8494 # with a dollar sign (not a hyphen), so the echo should work correctly.
8495 lt_compile=`echo "$ac_compile" | $SED \
8496 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8497 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8498 -e 's:$: $lt_compiler_flag:'`
8499 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8500 (eval "$lt_compile" 2>out/conftest.err)
8501 ac_status=$?
8502 cat out/conftest.err >&5
8503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8504 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8505 then
8506 # The compiler can only warn and ignore the option if not recognized
8507 # So say no if there are warnings
8508 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8509 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8510 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8511 lt_cv_prog_compiler_c_o=yes
8514 chmod u+w . 2>&5
8515 $RM conftest*
8516 # SGI C++ compiler will create directory out/ii_files/ for
8517 # template instantiation
8518 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8519 $RM out/* && rmdir out
8520 cd ..
8521 $RM -r conftest
8522 $RM conftest*
8525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8526 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8531 hard_links="nottested"
8532 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8533 # do not overwrite the value of need_locks provided by the user
8534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8535 $as_echo_n "checking if we can lock with hard links... " >&6; }
8536 hard_links=yes
8537 $RM conftest*
8538 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8539 touch conftest.a
8540 ln conftest.a conftest.b 2>&5 || hard_links=no
8541 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8543 $as_echo "$hard_links" >&6; }
8544 if test "$hard_links" = no; then
8545 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8546 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8547 need_locks=warn
8549 else
8550 need_locks=no
8558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8559 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8561 runpath_var=
8562 allow_undefined_flag=
8563 always_export_symbols=no
8564 archive_cmds=
8565 archive_expsym_cmds=
8566 compiler_needs_object=no
8567 enable_shared_with_static_runtimes=no
8568 export_dynamic_flag_spec=
8569 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8570 hardcode_automatic=no
8571 hardcode_direct=no
8572 hardcode_direct_absolute=no
8573 hardcode_libdir_flag_spec=
8574 hardcode_libdir_flag_spec_ld=
8575 hardcode_libdir_separator=
8576 hardcode_minus_L=no
8577 hardcode_shlibpath_var=unsupported
8578 inherit_rpath=no
8579 link_all_deplibs=unknown
8580 module_cmds=
8581 module_expsym_cmds=
8582 old_archive_from_new_cmds=
8583 old_archive_from_expsyms_cmds=
8584 thread_safe_flag_spec=
8585 whole_archive_flag_spec=
8586 # include_expsyms should be a list of space-separated symbols to be *always*
8587 # included in the symbol list
8588 include_expsyms=
8589 # exclude_expsyms can be an extended regexp of symbols to exclude
8590 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8591 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8592 # as well as any symbol that contains `d'.
8593 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8594 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8595 # platforms (ab)use it in PIC code, but their linkers get confused if
8596 # the symbol is explicitly referenced. Since portable code cannot
8597 # rely on this symbol name, it's probably fine to never include it in
8598 # preloaded symbol tables.
8599 # Exclude shared library initialization/finalization symbols.
8600 extract_expsyms_cmds=
8602 case $host_os in
8603 cygwin* | mingw* | pw32* | cegcc*)
8604 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8605 # When not using gcc, we currently assume that we are using
8606 # Microsoft Visual C++.
8607 if test "$GCC" != yes; then
8608 with_gnu_ld=no
8611 interix*)
8612 # we just hope/assume this is gcc and not c89 (= MSVC++)
8613 with_gnu_ld=yes
8615 openbsd*)
8616 with_gnu_ld=no
8618 esac
8620 ld_shlibs=yes
8622 # On some targets, GNU ld is compatible enough with the native linker
8623 # that we're better off using the native interface for both.
8624 lt_use_gnu_ld_interface=no
8625 if test "$with_gnu_ld" = yes; then
8626 case $host_os in
8627 aix*)
8628 # The AIX port of GNU ld has always aspired to compatibility
8629 # with the native linker. However, as the warning in the GNU ld
8630 # block says, versions before 2.19.5* couldn't really create working
8631 # shared libraries, regardless of the interface used.
8632 case `$LD -v 2>&1` in
8633 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8634 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8635 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8637 lt_use_gnu_ld_interface=yes
8639 esac
8642 lt_use_gnu_ld_interface=yes
8644 esac
8647 if test "$lt_use_gnu_ld_interface" = yes; then
8648 # If archive_cmds runs LD, not CC, wlarc should be empty
8649 wlarc='${wl}'
8651 # Set some defaults for GNU ld with shared library support. These
8652 # are reset later if shared libraries are not supported. Putting them
8653 # here allows them to be overridden if necessary.
8654 runpath_var=LD_RUN_PATH
8655 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8656 export_dynamic_flag_spec='${wl}--export-dynamic'
8657 # ancient GNU ld didn't support --whole-archive et. al.
8658 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8659 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8660 else
8661 whole_archive_flag_spec=
8663 supports_anon_versioning=no
8664 case `$LD -v 2>&1` in
8665 *GNU\ gold*) supports_anon_versioning=yes ;;
8666 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8667 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8668 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8669 *\ 2.11.*) ;; # other 2.11 versions
8670 *) supports_anon_versioning=yes ;;
8671 esac
8673 # See if GNU ld supports shared libraries.
8674 case $host_os in
8675 aix[3-9]*)
8676 # On AIX/PPC, the GNU linker is very broken
8677 if test "$host_cpu" != ia64; then
8678 ld_shlibs=no
8679 cat <<_LT_EOF 1>&2
8681 *** Warning: the GNU linker, at least up to release 2.19, is reported
8682 *** to be unable to reliably create shared libraries on AIX.
8683 *** Therefore, libtool is disabling shared libraries support. If you
8684 *** really care for shared libraries, you may want to install binutils
8685 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8686 *** You will then need to restart the configuration process.
8688 _LT_EOF
8692 amigaos*)
8693 case $host_cpu in
8694 powerpc)
8695 # see comment about AmigaOS4 .so support
8696 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8697 archive_expsym_cmds=''
8699 m68k)
8700 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)'
8701 hardcode_libdir_flag_spec='-L$libdir'
8702 hardcode_minus_L=yes
8704 esac
8707 beos*)
8708 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8709 allow_undefined_flag=unsupported
8710 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8711 # support --undefined. This deserves some investigation. FIXME
8712 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8713 else
8714 ld_shlibs=no
8718 cygwin* | mingw* | pw32* | cegcc*)
8719 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8720 # as there is no search path for DLLs.
8721 hardcode_libdir_flag_spec='-L$libdir'
8722 export_dynamic_flag_spec='${wl}--export-all-symbols'
8723 allow_undefined_flag=unsupported
8724 always_export_symbols=no
8725 enable_shared_with_static_runtimes=yes
8726 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8728 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8729 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8730 # If the export-symbols file already is a .def file (1st line
8731 # is EXPORTS), use it as is; otherwise, prepend...
8732 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8733 cp $export_symbols $output_objdir/$soname.def;
8734 else
8735 echo EXPORTS > $output_objdir/$soname.def;
8736 cat $export_symbols >> $output_objdir/$soname.def;
8738 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8739 else
8740 ld_shlibs=no
8744 haiku*)
8745 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8746 link_all_deplibs=yes
8749 interix[3-9]*)
8750 hardcode_direct=no
8751 hardcode_shlibpath_var=no
8752 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8753 export_dynamic_flag_spec='${wl}-E'
8754 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8755 # Instead, shared libraries are loaded at an image base (0x10000000 by
8756 # default) and relocated if they conflict, which is a slow very memory
8757 # consuming and fragmenting process. To avoid this, we pick a random,
8758 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8759 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8760 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8761 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'
8764 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8765 tmp_diet=no
8766 if test "$host_os" = linux-dietlibc; then
8767 case $cc_basename in
8768 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8769 esac
8771 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8772 && test "$tmp_diet" = no
8773 then
8774 tmp_addflag=' $pic_flag'
8775 tmp_sharedflag='-shared'
8776 case $cc_basename,$host_cpu in
8777 pgcc*) # Portland Group C compiler
8778 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'
8779 tmp_addflag=' $pic_flag'
8781 pgf77* | pgf90* | pgf95* | pgfortran*)
8782 # Portland Group f77 and f90 compilers
8783 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'
8784 tmp_addflag=' $pic_flag -Mnomain' ;;
8785 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8786 tmp_addflag=' -i_dynamic' ;;
8787 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8788 tmp_addflag=' -i_dynamic -nofor_main' ;;
8789 ifc* | ifort*) # Intel Fortran compiler
8790 tmp_addflag=' -nofor_main' ;;
8791 lf95*) # Lahey Fortran 8.1
8792 whole_archive_flag_spec=
8793 tmp_sharedflag='--shared' ;;
8794 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8795 tmp_sharedflag='-qmkshrobj'
8796 tmp_addflag= ;;
8797 nvcc*) # Cuda Compiler Driver 2.2
8798 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'
8799 compiler_needs_object=yes
8801 esac
8802 case `$CC -V 2>&1 | sed 5q` in
8803 *Sun\ C*) # Sun C 5.9
8804 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'
8805 compiler_needs_object=yes
8806 tmp_sharedflag='-G' ;;
8807 *Sun\ F*) # Sun Fortran 8.3
8808 tmp_sharedflag='-G' ;;
8809 esac
8810 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8812 if test "x$supports_anon_versioning" = xyes; then
8813 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8814 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8815 echo "local: *; };" >> $output_objdir/$libname.ver~
8816 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8819 case $cc_basename in
8820 xlf* | bgf* | bgxlf* | mpixlf*)
8821 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8822 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8823 hardcode_libdir_flag_spec=
8824 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8825 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8826 if test "x$supports_anon_versioning" = xyes; then
8827 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8828 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8829 echo "local: *; };" >> $output_objdir/$libname.ver~
8830 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8833 esac
8834 else
8835 ld_shlibs=no
8839 netbsd*)
8840 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8841 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8842 wlarc=
8843 else
8844 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8845 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8849 solaris*)
8850 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8851 ld_shlibs=no
8852 cat <<_LT_EOF 1>&2
8854 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8855 *** create shared libraries on Solaris systems. Therefore, libtool
8856 *** is disabling shared libraries support. We urge you to upgrade GNU
8857 *** binutils to release 2.9.1 or newer. Another option is to modify
8858 *** your PATH or compiler configuration so that the native linker is
8859 *** used, and then restart.
8861 _LT_EOF
8862 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8863 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8864 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8865 else
8866 ld_shlibs=no
8870 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8871 case `$LD -v 2>&1` in
8872 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8873 ld_shlibs=no
8874 cat <<_LT_EOF 1>&2
8876 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8877 *** reliably create shared libraries on SCO systems. Therefore, libtool
8878 *** is disabling shared libraries support. We urge you to upgrade GNU
8879 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8880 *** your PATH or compiler configuration so that the native linker is
8881 *** used, and then restart.
8883 _LT_EOF
8886 # For security reasons, it is highly recommended that you always
8887 # use absolute paths for naming shared libraries, and exclude the
8888 # DT_RUNPATH tag from executables and libraries. But doing so
8889 # requires that you compile everything twice, which is a pain.
8890 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8891 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8892 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8893 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8894 else
8895 ld_shlibs=no
8898 esac
8901 sunos4*)
8902 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8903 wlarc=
8904 hardcode_direct=yes
8905 hardcode_shlibpath_var=no
8909 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8910 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8911 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8912 else
8913 ld_shlibs=no
8916 esac
8918 if test "$ld_shlibs" = no; then
8919 runpath_var=
8920 hardcode_libdir_flag_spec=
8921 export_dynamic_flag_spec=
8922 whole_archive_flag_spec=
8924 else
8925 # PORTME fill in a description of your system's linker (not GNU ld)
8926 case $host_os in
8927 aix3*)
8928 allow_undefined_flag=unsupported
8929 always_export_symbols=yes
8930 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'
8931 # Note: this linker hardcodes the directories in LIBPATH if there
8932 # are no directories specified by -L.
8933 hardcode_minus_L=yes
8934 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8935 # Neither direct hardcoding nor static linking is supported with a
8936 # broken collect2.
8937 hardcode_direct=unsupported
8941 aix[4-9]*)
8942 if test "$host_cpu" = ia64; then
8943 # On IA64, the linker does run time linking by default, so we don't
8944 # have to do anything special.
8945 aix_use_runtimelinking=no
8946 exp_sym_flag='-Bexport'
8947 no_entry_flag=""
8948 else
8949 # If we're using GNU nm, then we don't want the "-C" option.
8950 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8951 # Also, AIX nm treats weak defined symbols like other global
8952 # defined symbols, whereas GNU nm marks them as "W".
8953 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8954 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'
8955 else
8956 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'
8958 aix_use_runtimelinking=no
8960 # Test if we are trying to use run time linking or normal
8961 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8962 # need to do runtime linking.
8963 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8964 for ld_flag in $LDFLAGS; do
8965 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8966 aix_use_runtimelinking=yes
8967 break
8969 done
8971 esac
8973 exp_sym_flag='-bexport'
8974 no_entry_flag='-bnoentry'
8977 # When large executables or shared objects are built, AIX ld can
8978 # have problems creating the table of contents. If linking a library
8979 # or program results in "error TOC overflow" add -mminimal-toc to
8980 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8981 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8983 archive_cmds=''
8984 hardcode_direct=yes
8985 hardcode_direct_absolute=yes
8986 hardcode_libdir_separator=':'
8987 link_all_deplibs=yes
8988 file_list_spec='${wl}-f,'
8990 if test "$GCC" = yes; then
8991 case $host_os in aix4.[012]|aix4.[012].*)
8992 # We only want to do this on AIX 4.2 and lower, the check
8993 # below for broken collect2 doesn't work under 4.3+
8994 collect2name=`${CC} -print-prog-name=collect2`
8995 if test -f "$collect2name" &&
8996 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8997 then
8998 # We have reworked collect2
9000 else
9001 # We have old collect2
9002 hardcode_direct=unsupported
9003 # It fails to find uninstalled libraries when the uninstalled
9004 # path is not listed in the libpath. Setting hardcode_minus_L
9005 # to unsupported forces relinking
9006 hardcode_minus_L=yes
9007 hardcode_libdir_flag_spec='-L$libdir'
9008 hardcode_libdir_separator=
9011 esac
9012 shared_flag='-shared'
9013 if test "$aix_use_runtimelinking" = yes; then
9014 shared_flag="$shared_flag "'${wl}-G'
9016 else
9017 # not using gcc
9018 if test "$host_cpu" = ia64; then
9019 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9020 # chokes on -Wl,-G. The following line is correct:
9021 shared_flag='-G'
9022 else
9023 if test "$aix_use_runtimelinking" = yes; then
9024 shared_flag='${wl}-G'
9025 else
9026 shared_flag='${wl}-bM:SRE'
9031 export_dynamic_flag_spec='${wl}-bexpall'
9032 # It seems that -bexpall does not export symbols beginning with
9033 # underscore (_), so it is better to generate a list of symbols to export.
9034 always_export_symbols=yes
9035 if test "$aix_use_runtimelinking" = yes; then
9036 # Warning - without using the other runtime loading flags (-brtl),
9037 # -berok will link without error, but may produce a broken library.
9038 allow_undefined_flag='-berok'
9039 # Determine the default libpath from the value encoded in an
9040 # empty executable.
9041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9042 /* end confdefs.h. */
9045 main ()
9049 return 0;
9051 _ACEOF
9052 if ac_fn_c_try_link "$LINENO"; then :
9054 lt_aix_libpath_sed='
9055 /Import File Strings/,/^$/ {
9056 /^0/ {
9057 s/^0 *\(.*\)$/\1/
9061 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9062 # Check for a 64-bit object if we didn't find anything.
9063 if test -z "$aix_libpath"; then
9064 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9067 rm -f core conftest.err conftest.$ac_objext \
9068 conftest$ac_exeext conftest.$ac_ext
9069 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9071 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9072 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"
9073 else
9074 if test "$host_cpu" = ia64; then
9075 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9076 allow_undefined_flag="-z nodefs"
9077 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"
9078 else
9079 # Determine the default libpath from the value encoded in an
9080 # empty executable.
9081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9082 /* end confdefs.h. */
9085 main ()
9089 return 0;
9091 _ACEOF
9092 if ac_fn_c_try_link "$LINENO"; then :
9094 lt_aix_libpath_sed='
9095 /Import File Strings/,/^$/ {
9096 /^0/ {
9097 s/^0 *\(.*\)$/\1/
9101 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9102 # Check for a 64-bit object if we didn't find anything.
9103 if test -z "$aix_libpath"; then
9104 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9107 rm -f core conftest.err conftest.$ac_objext \
9108 conftest$ac_exeext conftest.$ac_ext
9109 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9111 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9112 # Warning - without using the other run time loading flags,
9113 # -berok will link without error, but may produce a broken library.
9114 no_undefined_flag=' ${wl}-bernotok'
9115 allow_undefined_flag=' ${wl}-berok'
9116 if test "$with_gnu_ld" = yes; then
9117 # We only use this code for GNU lds that support --whole-archive.
9118 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9119 else
9120 # Exported symbols can be pulled into shared objects from archives
9121 whole_archive_flag_spec='$convenience'
9123 archive_cmds_need_lc=yes
9124 # This is similar to how AIX traditionally builds its shared libraries.
9125 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'
9130 amigaos*)
9131 case $host_cpu in
9132 powerpc)
9133 # see comment about AmigaOS4 .so support
9134 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9135 archive_expsym_cmds=''
9137 m68k)
9138 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)'
9139 hardcode_libdir_flag_spec='-L$libdir'
9140 hardcode_minus_L=yes
9142 esac
9145 bsdi[45]*)
9146 export_dynamic_flag_spec=-rdynamic
9149 cygwin* | mingw* | pw32* | cegcc*)
9150 # When not using gcc, we currently assume that we are using
9151 # Microsoft Visual C++.
9152 # hardcode_libdir_flag_spec is actually meaningless, as there is
9153 # no search path for DLLs.
9154 hardcode_libdir_flag_spec=' '
9155 allow_undefined_flag=unsupported
9156 # Tell ltmain to make .lib files, not .a files.
9157 libext=lib
9158 # Tell ltmain to make .dll files, not .so files.
9159 shrext_cmds=".dll"
9160 # FIXME: Setting linknames here is a bad hack.
9161 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9162 # The linker will automatically build a .lib file if we build a DLL.
9163 old_archive_from_new_cmds='true'
9164 # FIXME: Should let the user specify the lib program.
9165 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9166 fix_srcfile_path='`cygpath -w "$srcfile"`'
9167 enable_shared_with_static_runtimes=yes
9170 darwin* | rhapsody*)
9173 archive_cmds_need_lc=no
9174 hardcode_direct=no
9175 hardcode_automatic=yes
9176 hardcode_shlibpath_var=unsupported
9177 if test "$lt_cv_ld_force_load" = "yes"; then
9178 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\"`'
9179 else
9180 whole_archive_flag_spec=''
9182 link_all_deplibs=yes
9183 allow_undefined_flag="$_lt_dar_allow_undefined"
9184 case $cc_basename in
9185 ifort*) _lt_dar_can_shared=yes ;;
9186 *) _lt_dar_can_shared=$GCC ;;
9187 esac
9188 if test "$_lt_dar_can_shared" = "yes"; then
9189 output_verbose_link_cmd=func_echo_all
9190 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9191 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9192 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}"
9193 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}"
9195 else
9196 ld_shlibs=no
9201 dgux*)
9202 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9203 hardcode_libdir_flag_spec='-L$libdir'
9204 hardcode_shlibpath_var=no
9207 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9208 # support. Future versions do this automatically, but an explicit c++rt0.o
9209 # does not break anything, and helps significantly (at the cost of a little
9210 # extra space).
9211 freebsd2.2*)
9212 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9213 hardcode_libdir_flag_spec='-R$libdir'
9214 hardcode_direct=yes
9215 hardcode_shlibpath_var=no
9218 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9219 freebsd2.*)
9220 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9221 hardcode_direct=yes
9222 hardcode_minus_L=yes
9223 hardcode_shlibpath_var=no
9226 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9227 freebsd* | dragonfly*)
9228 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9229 hardcode_libdir_flag_spec='-R$libdir'
9230 hardcode_direct=yes
9231 hardcode_shlibpath_var=no
9234 hpux9*)
9235 if test "$GCC" = yes; then
9236 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'
9237 else
9238 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'
9240 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9241 hardcode_libdir_separator=:
9242 hardcode_direct=yes
9244 # hardcode_minus_L: Not really in the search PATH,
9245 # but as the default location of the library.
9246 hardcode_minus_L=yes
9247 export_dynamic_flag_spec='${wl}-E'
9250 hpux10*)
9251 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9252 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9253 else
9254 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9256 if test "$with_gnu_ld" = no; then
9257 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9258 hardcode_libdir_flag_spec_ld='+b $libdir'
9259 hardcode_libdir_separator=:
9260 hardcode_direct=yes
9261 hardcode_direct_absolute=yes
9262 export_dynamic_flag_spec='${wl}-E'
9263 # hardcode_minus_L: Not really in the search PATH,
9264 # but as the default location of the library.
9265 hardcode_minus_L=yes
9269 hpux11*)
9270 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9271 case $host_cpu in
9272 hppa*64*)
9273 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9275 ia64*)
9276 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9279 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9281 esac
9282 else
9283 case $host_cpu in
9284 hppa*64*)
9285 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9287 ia64*)
9288 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9292 # Older versions of the 11.00 compiler do not understand -b yet
9293 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9295 $as_echo_n "checking if $CC understands -b... " >&6; }
9296 if ${lt_cv_prog_compiler__b+:} false; then :
9297 $as_echo_n "(cached) " >&6
9298 else
9299 lt_cv_prog_compiler__b=no
9300 save_LDFLAGS="$LDFLAGS"
9301 LDFLAGS="$LDFLAGS -b"
9302 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9303 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9304 # The linker can only warn and ignore the option if not recognized
9305 # So say no if there are warnings
9306 if test -s conftest.err; then
9307 # Append any errors to the config.log.
9308 cat conftest.err 1>&5
9309 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9310 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9311 if diff conftest.exp conftest.er2 >/dev/null; then
9312 lt_cv_prog_compiler__b=yes
9314 else
9315 lt_cv_prog_compiler__b=yes
9318 $RM -r conftest*
9319 LDFLAGS="$save_LDFLAGS"
9322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9323 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9325 if test x"$lt_cv_prog_compiler__b" = xyes; then
9326 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9327 else
9328 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9332 esac
9334 if test "$with_gnu_ld" = no; then
9335 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9336 hardcode_libdir_separator=:
9338 case $host_cpu in
9339 hppa*64*|ia64*)
9340 hardcode_direct=no
9341 hardcode_shlibpath_var=no
9344 hardcode_direct=yes
9345 hardcode_direct_absolute=yes
9346 export_dynamic_flag_spec='${wl}-E'
9348 # hardcode_minus_L: Not really in the search PATH,
9349 # but as the default location of the library.
9350 hardcode_minus_L=yes
9352 esac
9356 irix5* | irix6* | nonstopux*)
9357 if test "$GCC" = yes; then
9358 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'
9359 # Try to use the -exported_symbol ld option, if it does not
9360 # work, assume that -exports_file does not work either and
9361 # implicitly export all symbols.
9362 save_LDFLAGS="$LDFLAGS"
9363 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9365 /* end confdefs.h. */
9366 int foo(void) {}
9367 _ACEOF
9368 if ac_fn_c_try_link "$LINENO"; then :
9369 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'
9372 rm -f core conftest.err conftest.$ac_objext \
9373 conftest$ac_exeext conftest.$ac_ext
9374 LDFLAGS="$save_LDFLAGS"
9375 else
9376 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'
9377 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'
9379 archive_cmds_need_lc='no'
9380 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9381 hardcode_libdir_separator=:
9382 inherit_rpath=yes
9383 link_all_deplibs=yes
9386 netbsd*)
9387 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9388 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9389 else
9390 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9392 hardcode_libdir_flag_spec='-R$libdir'
9393 hardcode_direct=yes
9394 hardcode_shlibpath_var=no
9397 newsos6)
9398 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9399 hardcode_direct=yes
9400 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9401 hardcode_libdir_separator=:
9402 hardcode_shlibpath_var=no
9405 *nto* | *qnx*)
9408 openbsd*)
9409 if test -f /usr/libexec/ld.so; then
9410 hardcode_direct=yes
9411 hardcode_shlibpath_var=no
9412 hardcode_direct_absolute=yes
9413 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9414 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9415 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9416 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9417 export_dynamic_flag_spec='${wl}-E'
9418 else
9419 case $host_os in
9420 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9421 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9422 hardcode_libdir_flag_spec='-R$libdir'
9425 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9426 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9428 esac
9430 else
9431 ld_shlibs=no
9435 os2*)
9436 hardcode_libdir_flag_spec='-L$libdir'
9437 hardcode_minus_L=yes
9438 allow_undefined_flag=unsupported
9439 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'
9440 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9443 osf3*)
9444 if test "$GCC" = yes; then
9445 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9446 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'
9447 else
9448 allow_undefined_flag=' -expect_unresolved \*'
9449 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'
9451 archive_cmds_need_lc='no'
9452 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9453 hardcode_libdir_separator=:
9456 osf4* | osf5*) # as osf3* with the addition of -msym flag
9457 if test "$GCC" = yes; then
9458 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9459 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'
9460 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9461 else
9462 allow_undefined_flag=' -expect_unresolved \*'
9463 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'
9464 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~
9465 $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'
9467 # Both c and cxx compiler support -rpath directly
9468 hardcode_libdir_flag_spec='-rpath $libdir'
9470 archive_cmds_need_lc='no'
9471 hardcode_libdir_separator=:
9474 solaris*)
9475 no_undefined_flag=' -z defs'
9476 if test "$GCC" = yes; then
9477 wlarc='${wl}'
9478 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9479 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9480 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9481 else
9482 case `$CC -V 2>&1` in
9483 *"Compilers 5.0"*)
9484 wlarc=''
9485 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9486 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9487 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9490 wlarc='${wl}'
9491 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9492 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9493 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9495 esac
9497 hardcode_libdir_flag_spec='-R$libdir'
9498 hardcode_shlibpath_var=no
9499 case $host_os in
9500 solaris2.[0-5] | solaris2.[0-5].*) ;;
9502 # The compiler driver will combine and reorder linker options,
9503 # but understands `-z linker_flag'. GCC discards it without `$wl',
9504 # but is careful enough not to reorder.
9505 # Supported since Solaris 2.6 (maybe 2.5.1?)
9506 if test "$GCC" = yes; then
9507 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9508 else
9509 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9512 esac
9513 link_all_deplibs=yes
9516 sunos4*)
9517 if test "x$host_vendor" = xsequent; then
9518 # Use $CC to link under sequent, because it throws in some extra .o
9519 # files that make .init and .fini sections work.
9520 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9521 else
9522 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9524 hardcode_libdir_flag_spec='-L$libdir'
9525 hardcode_direct=yes
9526 hardcode_minus_L=yes
9527 hardcode_shlibpath_var=no
9530 sysv4)
9531 case $host_vendor in
9532 sni)
9533 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9534 hardcode_direct=yes # is this really true???
9536 siemens)
9537 ## LD is ld it makes a PLAMLIB
9538 ## CC just makes a GrossModule.
9539 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9540 reload_cmds='$CC -r -o $output$reload_objs'
9541 hardcode_direct=no
9543 motorola)
9544 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9545 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9547 esac
9548 runpath_var='LD_RUN_PATH'
9549 hardcode_shlibpath_var=no
9552 sysv4.3*)
9553 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9554 hardcode_shlibpath_var=no
9555 export_dynamic_flag_spec='-Bexport'
9558 sysv4*MP*)
9559 if test -d /usr/nec; then
9560 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9561 hardcode_shlibpath_var=no
9562 runpath_var=LD_RUN_PATH
9563 hardcode_runpath_var=yes
9564 ld_shlibs=yes
9568 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9569 no_undefined_flag='${wl}-z,text'
9570 archive_cmds_need_lc=no
9571 hardcode_shlibpath_var=no
9572 runpath_var='LD_RUN_PATH'
9574 if test "$GCC" = yes; then
9575 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9576 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9577 else
9578 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9579 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9583 sysv5* | sco3.2v5* | sco5v6*)
9584 # Note: We can NOT use -z defs as we might desire, because we do not
9585 # link with -lc, and that would cause any symbols used from libc to
9586 # always be unresolved, which means just about no library would
9587 # ever link correctly. If we're not using GNU ld we use -z text
9588 # though, which does catch some bad symbols but isn't as heavy-handed
9589 # as -z defs.
9590 no_undefined_flag='${wl}-z,text'
9591 allow_undefined_flag='${wl}-z,nodefs'
9592 archive_cmds_need_lc=no
9593 hardcode_shlibpath_var=no
9594 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9595 hardcode_libdir_separator=':'
9596 link_all_deplibs=yes
9597 export_dynamic_flag_spec='${wl}-Bexport'
9598 runpath_var='LD_RUN_PATH'
9600 if test "$GCC" = yes; then
9601 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9602 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9603 else
9604 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9605 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9609 uts4*)
9610 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9611 hardcode_libdir_flag_spec='-L$libdir'
9612 hardcode_shlibpath_var=no
9616 ld_shlibs=no
9618 esac
9620 if test x$host_vendor = xsni; then
9621 case $host in
9622 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9623 export_dynamic_flag_spec='${wl}-Blargedynsym'
9625 esac
9629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9630 $as_echo "$ld_shlibs" >&6; }
9631 test "$ld_shlibs" = no && can_build_shared=no
9633 with_gnu_ld=$with_gnu_ld
9650 # Do we need to explicitly link libc?
9652 case "x$archive_cmds_need_lc" in
9653 x|xyes)
9654 # Assume -lc should be added
9655 archive_cmds_need_lc=yes
9657 if test "$enable_shared" = yes && test "$GCC" = yes; then
9658 case $archive_cmds in
9659 *'~'*)
9660 # FIXME: we may have to deal with multi-command sequences.
9662 '$CC '*)
9663 # Test whether the compiler implicitly links with -lc since on some
9664 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9665 # to ld, don't add -lc before -lgcc.
9666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9667 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9668 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9669 $as_echo_n "(cached) " >&6
9670 else
9671 $RM conftest*
9672 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9674 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9675 (eval $ac_compile) 2>&5
9676 ac_status=$?
9677 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9678 test $ac_status = 0; } 2>conftest.err; then
9679 soname=conftest
9680 lib=conftest
9681 libobjs=conftest.$ac_objext
9682 deplibs=
9683 wl=$lt_prog_compiler_wl
9684 pic_flag=$lt_prog_compiler_pic
9685 compiler_flags=-v
9686 linker_flags=-v
9687 verstring=
9688 output_objdir=.
9689 libname=conftest
9690 lt_save_allow_undefined_flag=$allow_undefined_flag
9691 allow_undefined_flag=
9692 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9693 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9694 ac_status=$?
9695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9696 test $ac_status = 0; }
9697 then
9698 lt_cv_archive_cmds_need_lc=no
9699 else
9700 lt_cv_archive_cmds_need_lc=yes
9702 allow_undefined_flag=$lt_save_allow_undefined_flag
9703 else
9704 cat conftest.err 1>&5
9706 $RM conftest*
9709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9710 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9711 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9713 esac
9716 esac
9874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9875 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9877 if test "$GCC" = yes; then
9878 case $host_os in
9879 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9880 *) lt_awk_arg="/^libraries:/" ;;
9881 esac
9882 case $host_os in
9883 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9884 *) lt_sed_strip_eq="s,=/,/,g" ;;
9885 esac
9886 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9887 case $lt_search_path_spec in
9888 *\;*)
9889 # if the path contains ";" then we assume it to be the separator
9890 # otherwise default to the standard path separator (i.e. ":") - it is
9891 # assumed that no part of a normal pathname contains ";" but that should
9892 # okay in the real world where ";" in dirpaths is itself problematic.
9893 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9896 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9898 esac
9899 # Ok, now we have the path, separated by spaces, we can step through it
9900 # and add multilib dir if necessary.
9901 lt_tmp_lt_search_path_spec=
9902 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9903 for lt_sys_path in $lt_search_path_spec; do
9904 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9905 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9906 else
9907 test -d "$lt_sys_path" && \
9908 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9910 done
9911 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9912 BEGIN {RS=" "; FS="/|\n";} {
9913 lt_foo="";
9914 lt_count=0;
9915 for (lt_i = NF; lt_i > 0; lt_i--) {
9916 if ($lt_i != "" && $lt_i != ".") {
9917 if ($lt_i == "..") {
9918 lt_count++;
9919 } else {
9920 if (lt_count == 0) {
9921 lt_foo="/" $lt_i lt_foo;
9922 } else {
9923 lt_count--;
9928 if (lt_foo != "") { lt_freq[lt_foo]++; }
9929 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9931 # AWK program above erroneously prepends '/' to C:/dos/paths
9932 # for these hosts.
9933 case $host_os in
9934 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9935 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9936 esac
9937 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9938 else
9939 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9941 library_names_spec=
9942 libname_spec='lib$name'
9943 soname_spec=
9944 shrext_cmds=".so"
9945 postinstall_cmds=
9946 postuninstall_cmds=
9947 finish_cmds=
9948 finish_eval=
9949 shlibpath_var=
9950 shlibpath_overrides_runpath=unknown
9951 version_type=none
9952 dynamic_linker="$host_os ld.so"
9953 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9954 need_lib_prefix=unknown
9955 hardcode_into_libs=no
9957 # when you set need_version to no, make sure it does not cause -set_version
9958 # flags to be left without arguments
9959 need_version=unknown
9961 case $host_os in
9962 aix3*)
9963 version_type=linux
9964 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9965 shlibpath_var=LIBPATH
9967 # AIX 3 has no versioning support, so we append a major version to the name.
9968 soname_spec='${libname}${release}${shared_ext}$major'
9971 aix[4-9]*)
9972 version_type=linux
9973 need_lib_prefix=no
9974 need_version=no
9975 hardcode_into_libs=yes
9976 if test "$host_cpu" = ia64; then
9977 # AIX 5 supports IA64
9978 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9979 shlibpath_var=LD_LIBRARY_PATH
9980 else
9981 # With GCC up to 2.95.x, collect2 would create an import file
9982 # for dependence libraries. The import file would start with
9983 # the line `#! .'. This would cause the generated library to
9984 # depend on `.', always an invalid library. This was fixed in
9985 # development snapshots of GCC prior to 3.0.
9986 case $host_os in
9987 aix4 | aix4.[01] | aix4.[01].*)
9988 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9989 echo ' yes '
9990 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9992 else
9993 can_build_shared=no
9996 esac
9997 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9998 # soname into executable. Probably we can add versioning support to
9999 # collect2, so additional links can be useful in future.
10000 if test "$aix_use_runtimelinking" = yes; then
10001 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10002 # instead of lib<name>.a to let people know that these are not
10003 # typical AIX shared libraries.
10004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10005 else
10006 # We preserve .a as extension for shared libraries through AIX4.2
10007 # and later when we are not doing run time linking.
10008 library_names_spec='${libname}${release}.a $libname.a'
10009 soname_spec='${libname}${release}${shared_ext}$major'
10011 shlibpath_var=LIBPATH
10015 amigaos*)
10016 case $host_cpu in
10017 powerpc)
10018 # Since July 2007 AmigaOS4 officially supports .so libraries.
10019 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10022 m68k)
10023 library_names_spec='$libname.ixlibrary $libname.a'
10024 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10025 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'
10027 esac
10030 beos*)
10031 library_names_spec='${libname}${shared_ext}'
10032 dynamic_linker="$host_os ld.so"
10033 shlibpath_var=LIBRARY_PATH
10036 bsdi[45]*)
10037 version_type=linux
10038 need_version=no
10039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10040 soname_spec='${libname}${release}${shared_ext}$major'
10041 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10042 shlibpath_var=LD_LIBRARY_PATH
10043 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10044 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10045 # the default ld.so.conf also contains /usr/contrib/lib and
10046 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10047 # libtool to hard-code these into programs
10050 cygwin* | mingw* | pw32* | cegcc*)
10051 version_type=windows
10052 shrext_cmds=".dll"
10053 need_version=no
10054 need_lib_prefix=no
10056 case $GCC,$host_os in
10057 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10058 library_names_spec='$libname.dll.a'
10059 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10060 postinstall_cmds='base_file=`basename \${file}`~
10061 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10062 dldir=$destdir/`dirname \$dlpath`~
10063 test -d \$dldir || mkdir -p \$dldir~
10064 $install_prog $dir/$dlname \$dldir/$dlname~
10065 chmod a+x \$dldir/$dlname~
10066 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10067 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10069 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10070 dlpath=$dir/\$dldll~
10071 $RM \$dlpath'
10072 shlibpath_overrides_runpath=yes
10074 case $host_os in
10075 cygwin*)
10076 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10077 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10079 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10081 mingw* | cegcc*)
10082 # MinGW DLLs use traditional 'lib' prefix
10083 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10085 pw32*)
10086 # pw32 DLLs use 'pw' prefix rather than 'lib'
10087 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10089 esac
10093 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10095 esac
10096 dynamic_linker='Win32 ld.exe'
10097 # FIXME: first we should search . and the directory the executable is in
10098 shlibpath_var=PATH
10101 darwin* | rhapsody*)
10102 dynamic_linker="$host_os dyld"
10103 version_type=darwin
10104 need_lib_prefix=no
10105 need_version=no
10106 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10107 soname_spec='${libname}${release}${major}$shared_ext'
10108 shlibpath_overrides_runpath=yes
10109 shlibpath_var=DYLD_LIBRARY_PATH
10110 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10112 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10113 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10116 dgux*)
10117 version_type=linux
10118 need_lib_prefix=no
10119 need_version=no
10120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10121 soname_spec='${libname}${release}${shared_ext}$major'
10122 shlibpath_var=LD_LIBRARY_PATH
10125 freebsd* | dragonfly*)
10126 # DragonFly does not have aout. When/if they implement a new
10127 # versioning mechanism, adjust this.
10128 if test -x /usr/bin/objformat; then
10129 objformat=`/usr/bin/objformat`
10130 else
10131 case $host_os in
10132 freebsd[23].*) objformat=aout ;;
10133 *) objformat=elf ;;
10134 esac
10136 version_type=freebsd-$objformat
10137 case $version_type in
10138 freebsd-elf*)
10139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10140 need_version=no
10141 need_lib_prefix=no
10143 freebsd-*)
10144 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10145 need_version=yes
10147 esac
10148 shlibpath_var=LD_LIBRARY_PATH
10149 case $host_os in
10150 freebsd2.*)
10151 shlibpath_overrides_runpath=yes
10153 freebsd3.[01]* | freebsdelf3.[01]*)
10154 shlibpath_overrides_runpath=yes
10155 hardcode_into_libs=yes
10157 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10158 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10159 shlibpath_overrides_runpath=no
10160 hardcode_into_libs=yes
10162 *) # from 4.6 on, and DragonFly
10163 shlibpath_overrides_runpath=yes
10164 hardcode_into_libs=yes
10166 esac
10169 haiku*)
10170 version_type=linux
10171 need_lib_prefix=no
10172 need_version=no
10173 dynamic_linker="$host_os runtime_loader"
10174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10175 soname_spec='${libname}${release}${shared_ext}$major'
10176 shlibpath_var=LIBRARY_PATH
10177 shlibpath_overrides_runpath=yes
10178 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10179 hardcode_into_libs=yes
10182 hpux9* | hpux10* | hpux11*)
10183 # Give a soname corresponding to the major version so that dld.sl refuses to
10184 # link against other versions.
10185 version_type=sunos
10186 need_lib_prefix=no
10187 need_version=no
10188 case $host_cpu in
10189 ia64*)
10190 shrext_cmds='.so'
10191 hardcode_into_libs=yes
10192 dynamic_linker="$host_os dld.so"
10193 shlibpath_var=LD_LIBRARY_PATH
10194 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10196 soname_spec='${libname}${release}${shared_ext}$major'
10197 if test "X$HPUX_IA64_MODE" = X32; then
10198 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10199 else
10200 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10202 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10204 hppa*64*)
10205 shrext_cmds='.sl'
10206 hardcode_into_libs=yes
10207 dynamic_linker="$host_os dld.sl"
10208 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10209 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10210 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10211 soname_spec='${libname}${release}${shared_ext}$major'
10212 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10213 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10216 shrext_cmds='.sl'
10217 dynamic_linker="$host_os dld.sl"
10218 shlibpath_var=SHLIB_PATH
10219 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10221 soname_spec='${libname}${release}${shared_ext}$major'
10223 esac
10224 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10225 postinstall_cmds='chmod 555 $lib'
10226 # or fails outright, so override atomically:
10227 install_override_mode=555
10230 interix[3-9]*)
10231 version_type=linux
10232 need_lib_prefix=no
10233 need_version=no
10234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10235 soname_spec='${libname}${release}${shared_ext}$major'
10236 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10237 shlibpath_var=LD_LIBRARY_PATH
10238 shlibpath_overrides_runpath=no
10239 hardcode_into_libs=yes
10242 irix5* | irix6* | nonstopux*)
10243 case $host_os in
10244 nonstopux*) version_type=nonstopux ;;
10246 if test "$lt_cv_prog_gnu_ld" = yes; then
10247 version_type=linux
10248 else
10249 version_type=irix
10250 fi ;;
10251 esac
10252 need_lib_prefix=no
10253 need_version=no
10254 soname_spec='${libname}${release}${shared_ext}$major'
10255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10256 case $host_os in
10257 irix5* | nonstopux*)
10258 libsuff= shlibsuff=
10261 case $LD in # libtool.m4 will add one of these switches to LD
10262 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10263 libsuff= shlibsuff= libmagic=32-bit;;
10264 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10265 libsuff=32 shlibsuff=N32 libmagic=N32;;
10266 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10267 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10268 *) libsuff= shlibsuff= libmagic=never-match;;
10269 esac
10271 esac
10272 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10273 shlibpath_overrides_runpath=no
10274 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10275 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10276 hardcode_into_libs=yes
10279 # No shared lib support for Linux oldld, aout, or coff.
10280 linux*oldld* | linux*aout* | linux*coff*)
10281 dynamic_linker=no
10284 # This must be Linux ELF.
10285 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10286 version_type=linux
10287 need_lib_prefix=no
10288 need_version=no
10289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10290 soname_spec='${libname}${release}${shared_ext}$major'
10291 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10292 shlibpath_var=LD_LIBRARY_PATH
10293 shlibpath_overrides_runpath=no
10295 # Some binutils ld are patched to set DT_RUNPATH
10296 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10297 $as_echo_n "(cached) " >&6
10298 else
10299 lt_cv_shlibpath_overrides_runpath=no
10300 save_LDFLAGS=$LDFLAGS
10301 save_libdir=$libdir
10302 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10303 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10305 /* end confdefs.h. */
10308 main ()
10312 return 0;
10314 _ACEOF
10315 if ac_fn_c_try_link "$LINENO"; then :
10316 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10317 lt_cv_shlibpath_overrides_runpath=yes
10320 rm -f core conftest.err conftest.$ac_objext \
10321 conftest$ac_exeext conftest.$ac_ext
10322 LDFLAGS=$save_LDFLAGS
10323 libdir=$save_libdir
10327 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10329 # This implies no fast_install, which is unacceptable.
10330 # Some rework will be needed to allow for fast_install
10331 # before this can be enabled.
10332 hardcode_into_libs=yes
10334 # Append ld.so.conf contents to the search path
10335 if test -f /etc/ld.so.conf; then
10336 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' ' '`
10337 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10340 # We used to test for /lib/ld.so.1 and disable shared libraries on
10341 # powerpc, because MkLinux only supported shared libraries with the
10342 # GNU dynamic linker. Since this was broken with cross compilers,
10343 # most powerpc-linux boxes support dynamic linking these days and
10344 # people can always --disable-shared, the test was removed, and we
10345 # assume the GNU/Linux dynamic linker is in use.
10346 dynamic_linker='GNU/Linux ld.so'
10349 netbsd*)
10350 version_type=sunos
10351 need_lib_prefix=no
10352 need_version=no
10353 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10355 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10356 dynamic_linker='NetBSD (a.out) ld.so'
10357 else
10358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10359 soname_spec='${libname}${release}${shared_ext}$major'
10360 dynamic_linker='NetBSD ld.elf_so'
10362 shlibpath_var=LD_LIBRARY_PATH
10363 shlibpath_overrides_runpath=yes
10364 hardcode_into_libs=yes
10367 newsos6)
10368 version_type=linux
10369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10370 shlibpath_var=LD_LIBRARY_PATH
10371 shlibpath_overrides_runpath=yes
10374 *nto* | *qnx*)
10375 version_type=qnx
10376 need_lib_prefix=no
10377 need_version=no
10378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10379 soname_spec='${libname}${release}${shared_ext}$major'
10380 shlibpath_var=LD_LIBRARY_PATH
10381 shlibpath_overrides_runpath=no
10382 hardcode_into_libs=yes
10383 dynamic_linker='ldqnx.so'
10386 openbsd*)
10387 version_type=sunos
10388 sys_lib_dlsearch_path_spec="/usr/lib"
10389 need_lib_prefix=no
10390 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10391 case $host_os in
10392 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10393 *) need_version=no ;;
10394 esac
10395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10396 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10397 shlibpath_var=LD_LIBRARY_PATH
10398 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10399 case $host_os in
10400 openbsd2.[89] | openbsd2.[89].*)
10401 shlibpath_overrides_runpath=no
10404 shlibpath_overrides_runpath=yes
10406 esac
10407 else
10408 shlibpath_overrides_runpath=yes
10412 os2*)
10413 libname_spec='$name'
10414 shrext_cmds=".dll"
10415 need_lib_prefix=no
10416 library_names_spec='$libname${shared_ext} $libname.a'
10417 dynamic_linker='OS/2 ld.exe'
10418 shlibpath_var=LIBPATH
10421 osf3* | osf4* | osf5*)
10422 version_type=osf
10423 need_lib_prefix=no
10424 need_version=no
10425 soname_spec='${libname}${release}${shared_ext}$major'
10426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10427 shlibpath_var=LD_LIBRARY_PATH
10428 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10429 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10432 rdos*)
10433 dynamic_linker=no
10436 solaris*)
10437 version_type=linux
10438 need_lib_prefix=no
10439 need_version=no
10440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10441 soname_spec='${libname}${release}${shared_ext}$major'
10442 shlibpath_var=LD_LIBRARY_PATH
10443 shlibpath_overrides_runpath=yes
10444 hardcode_into_libs=yes
10445 # ldd complains unless libraries are executable
10446 postinstall_cmds='chmod +x $lib'
10449 sunos4*)
10450 version_type=sunos
10451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10452 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10453 shlibpath_var=LD_LIBRARY_PATH
10454 shlibpath_overrides_runpath=yes
10455 if test "$with_gnu_ld" = yes; then
10456 need_lib_prefix=no
10458 need_version=yes
10461 sysv4 | sysv4.3*)
10462 version_type=linux
10463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10464 soname_spec='${libname}${release}${shared_ext}$major'
10465 shlibpath_var=LD_LIBRARY_PATH
10466 case $host_vendor in
10467 sni)
10468 shlibpath_overrides_runpath=no
10469 need_lib_prefix=no
10470 runpath_var=LD_RUN_PATH
10472 siemens)
10473 need_lib_prefix=no
10475 motorola)
10476 need_lib_prefix=no
10477 need_version=no
10478 shlibpath_overrides_runpath=no
10479 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10481 esac
10484 sysv4*MP*)
10485 if test -d /usr/nec ;then
10486 version_type=linux
10487 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10488 soname_spec='$libname${shared_ext}.$major'
10489 shlibpath_var=LD_LIBRARY_PATH
10493 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10494 version_type=freebsd-elf
10495 need_lib_prefix=no
10496 need_version=no
10497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10498 soname_spec='${libname}${release}${shared_ext}$major'
10499 shlibpath_var=LD_LIBRARY_PATH
10500 shlibpath_overrides_runpath=yes
10501 hardcode_into_libs=yes
10502 if test "$with_gnu_ld" = yes; then
10503 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10504 else
10505 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10506 case $host_os in
10507 sco3.2v5*)
10508 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10510 esac
10512 sys_lib_dlsearch_path_spec='/usr/lib'
10515 tpf*)
10516 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10517 version_type=linux
10518 need_lib_prefix=no
10519 need_version=no
10520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10521 shlibpath_var=LD_LIBRARY_PATH
10522 shlibpath_overrides_runpath=no
10523 hardcode_into_libs=yes
10526 uts4*)
10527 version_type=linux
10528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10529 soname_spec='${libname}${release}${shared_ext}$major'
10530 shlibpath_var=LD_LIBRARY_PATH
10534 dynamic_linker=no
10536 esac
10537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10538 $as_echo "$dynamic_linker" >&6; }
10539 test "$dynamic_linker" = no && can_build_shared=no
10541 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10542 if test "$GCC" = yes; then
10543 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10546 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10547 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10549 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10550 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10645 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10646 hardcode_action=
10647 if test -n "$hardcode_libdir_flag_spec" ||
10648 test -n "$runpath_var" ||
10649 test "X$hardcode_automatic" = "Xyes" ; then
10651 # We can hardcode non-existent directories.
10652 if test "$hardcode_direct" != no &&
10653 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10654 # have to relink, otherwise we might link with an installed library
10655 # when we should be linking with a yet-to-be-installed one
10656 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10657 test "$hardcode_minus_L" != no; then
10658 # Linking always hardcodes the temporary library directory.
10659 hardcode_action=relink
10660 else
10661 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10662 hardcode_action=immediate
10664 else
10665 # We cannot hardcode anything, or else we can only hardcode existing
10666 # directories.
10667 hardcode_action=unsupported
10669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10670 $as_echo "$hardcode_action" >&6; }
10672 if test "$hardcode_action" = relink ||
10673 test "$inherit_rpath" = yes; then
10674 # Fast installation is not supported
10675 enable_fast_install=no
10676 elif test "$shlibpath_overrides_runpath" = yes ||
10677 test "$enable_shared" = no; then
10678 # Fast installation is not necessary
10679 enable_fast_install=needless
10687 if test "x$enable_dlopen" != xyes; then
10688 enable_dlopen=unknown
10689 enable_dlopen_self=unknown
10690 enable_dlopen_self_static=unknown
10691 else
10692 lt_cv_dlopen=no
10693 lt_cv_dlopen_libs=
10695 case $host_os in
10696 beos*)
10697 lt_cv_dlopen="load_add_on"
10698 lt_cv_dlopen_libs=
10699 lt_cv_dlopen_self=yes
10702 mingw* | pw32* | cegcc*)
10703 lt_cv_dlopen="LoadLibrary"
10704 lt_cv_dlopen_libs=
10707 cygwin*)
10708 lt_cv_dlopen="dlopen"
10709 lt_cv_dlopen_libs=
10712 darwin*)
10713 # if libdl is installed we need to link against it
10714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10715 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10716 if ${ac_cv_lib_dl_dlopen+:} false; then :
10717 $as_echo_n "(cached) " >&6
10718 else
10719 ac_check_lib_save_LIBS=$LIBS
10720 LIBS="-ldl $LIBS"
10721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10722 /* end confdefs.h. */
10724 /* Override any GCC internal prototype to avoid an error.
10725 Use char because int might match the return type of a GCC
10726 builtin and then its argument prototype would still apply. */
10727 #ifdef __cplusplus
10728 extern "C"
10729 #endif
10730 char dlopen ();
10732 main ()
10734 return dlopen ();
10736 return 0;
10738 _ACEOF
10739 if ac_fn_c_try_link "$LINENO"; then :
10740 ac_cv_lib_dl_dlopen=yes
10741 else
10742 ac_cv_lib_dl_dlopen=no
10744 rm -f core conftest.err conftest.$ac_objext \
10745 conftest$ac_exeext conftest.$ac_ext
10746 LIBS=$ac_check_lib_save_LIBS
10748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10749 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10750 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10751 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10752 else
10754 lt_cv_dlopen="dyld"
10755 lt_cv_dlopen_libs=
10756 lt_cv_dlopen_self=yes
10763 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10764 if test "x$ac_cv_func_shl_load" = xyes; then :
10765 lt_cv_dlopen="shl_load"
10766 else
10767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10768 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10769 if ${ac_cv_lib_dld_shl_load+:} false; then :
10770 $as_echo_n "(cached) " >&6
10771 else
10772 ac_check_lib_save_LIBS=$LIBS
10773 LIBS="-ldld $LIBS"
10774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10775 /* end confdefs.h. */
10777 /* Override any GCC internal prototype to avoid an error.
10778 Use char because int might match the return type of a GCC
10779 builtin and then its argument prototype would still apply. */
10780 #ifdef __cplusplus
10781 extern "C"
10782 #endif
10783 char shl_load ();
10785 main ()
10787 return shl_load ();
10789 return 0;
10791 _ACEOF
10792 if ac_fn_c_try_link "$LINENO"; then :
10793 ac_cv_lib_dld_shl_load=yes
10794 else
10795 ac_cv_lib_dld_shl_load=no
10797 rm -f core conftest.err conftest.$ac_objext \
10798 conftest$ac_exeext conftest.$ac_ext
10799 LIBS=$ac_check_lib_save_LIBS
10801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10802 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10803 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10804 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10805 else
10806 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10807 if test "x$ac_cv_func_dlopen" = xyes; then :
10808 lt_cv_dlopen="dlopen"
10809 else
10810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10811 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10812 if ${ac_cv_lib_dl_dlopen+:} false; then :
10813 $as_echo_n "(cached) " >&6
10814 else
10815 ac_check_lib_save_LIBS=$LIBS
10816 LIBS="-ldl $LIBS"
10817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10818 /* end confdefs.h. */
10820 /* Override any GCC internal prototype to avoid an error.
10821 Use char because int might match the return type of a GCC
10822 builtin and then its argument prototype would still apply. */
10823 #ifdef __cplusplus
10824 extern "C"
10825 #endif
10826 char dlopen ();
10828 main ()
10830 return dlopen ();
10832 return 0;
10834 _ACEOF
10835 if ac_fn_c_try_link "$LINENO"; then :
10836 ac_cv_lib_dl_dlopen=yes
10837 else
10838 ac_cv_lib_dl_dlopen=no
10840 rm -f core conftest.err conftest.$ac_objext \
10841 conftest$ac_exeext conftest.$ac_ext
10842 LIBS=$ac_check_lib_save_LIBS
10844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10845 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10846 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10847 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10848 else
10849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10850 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10851 if ${ac_cv_lib_svld_dlopen+:} false; then :
10852 $as_echo_n "(cached) " >&6
10853 else
10854 ac_check_lib_save_LIBS=$LIBS
10855 LIBS="-lsvld $LIBS"
10856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10857 /* end confdefs.h. */
10859 /* Override any GCC internal prototype to avoid an error.
10860 Use char because int might match the return type of a GCC
10861 builtin and then its argument prototype would still apply. */
10862 #ifdef __cplusplus
10863 extern "C"
10864 #endif
10865 char dlopen ();
10867 main ()
10869 return dlopen ();
10871 return 0;
10873 _ACEOF
10874 if ac_fn_c_try_link "$LINENO"; then :
10875 ac_cv_lib_svld_dlopen=yes
10876 else
10877 ac_cv_lib_svld_dlopen=no
10879 rm -f core conftest.err conftest.$ac_objext \
10880 conftest$ac_exeext conftest.$ac_ext
10881 LIBS=$ac_check_lib_save_LIBS
10883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10884 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10885 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10886 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10887 else
10888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10889 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10890 if ${ac_cv_lib_dld_dld_link+:} false; then :
10891 $as_echo_n "(cached) " >&6
10892 else
10893 ac_check_lib_save_LIBS=$LIBS
10894 LIBS="-ldld $LIBS"
10895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10896 /* end confdefs.h. */
10898 /* Override any GCC internal prototype to avoid an error.
10899 Use char because int might match the return type of a GCC
10900 builtin and then its argument prototype would still apply. */
10901 #ifdef __cplusplus
10902 extern "C"
10903 #endif
10904 char dld_link ();
10906 main ()
10908 return dld_link ();
10910 return 0;
10912 _ACEOF
10913 if ac_fn_c_try_link "$LINENO"; then :
10914 ac_cv_lib_dld_dld_link=yes
10915 else
10916 ac_cv_lib_dld_dld_link=no
10918 rm -f core conftest.err conftest.$ac_objext \
10919 conftest$ac_exeext conftest.$ac_ext
10920 LIBS=$ac_check_lib_save_LIBS
10922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10923 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10924 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10925 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10944 esac
10946 if test "x$lt_cv_dlopen" != xno; then
10947 enable_dlopen=yes
10948 else
10949 enable_dlopen=no
10952 case $lt_cv_dlopen in
10953 dlopen)
10954 save_CPPFLAGS="$CPPFLAGS"
10955 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10957 save_LDFLAGS="$LDFLAGS"
10958 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10960 save_LIBS="$LIBS"
10961 LIBS="$lt_cv_dlopen_libs $LIBS"
10963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10964 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10965 if ${lt_cv_dlopen_self+:} false; then :
10966 $as_echo_n "(cached) " >&6
10967 else
10968 if test "$cross_compiling" = yes; then :
10969 lt_cv_dlopen_self=cross
10970 else
10971 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10972 lt_status=$lt_dlunknown
10973 cat > conftest.$ac_ext <<_LT_EOF
10974 #line 10974 "configure"
10975 #include "confdefs.h"
10977 #if HAVE_DLFCN_H
10978 #include <dlfcn.h>
10979 #endif
10981 #include <stdio.h>
10983 #ifdef RTLD_GLOBAL
10984 # define LT_DLGLOBAL RTLD_GLOBAL
10985 #else
10986 # ifdef DL_GLOBAL
10987 # define LT_DLGLOBAL DL_GLOBAL
10988 # else
10989 # define LT_DLGLOBAL 0
10990 # endif
10991 #endif
10993 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10994 find out it does not work in some platform. */
10995 #ifndef LT_DLLAZY_OR_NOW
10996 # ifdef RTLD_LAZY
10997 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10998 # else
10999 # ifdef DL_LAZY
11000 # define LT_DLLAZY_OR_NOW DL_LAZY
11001 # else
11002 # ifdef RTLD_NOW
11003 # define LT_DLLAZY_OR_NOW RTLD_NOW
11004 # else
11005 # ifdef DL_NOW
11006 # define LT_DLLAZY_OR_NOW DL_NOW
11007 # else
11008 # define LT_DLLAZY_OR_NOW 0
11009 # endif
11010 # endif
11011 # endif
11012 # endif
11013 #endif
11015 /* When -fvisbility=hidden is used, assume the code has been annotated
11016 correspondingly for the symbols needed. */
11017 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11018 void fnord () __attribute__((visibility("default")));
11019 #endif
11021 void fnord () { int i=42; }
11022 int main ()
11024 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11025 int status = $lt_dlunknown;
11027 if (self)
11029 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11030 else
11032 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11033 else puts (dlerror ());
11035 /* dlclose (self); */
11037 else
11038 puts (dlerror ());
11040 return status;
11042 _LT_EOF
11043 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11044 (eval $ac_link) 2>&5
11045 ac_status=$?
11046 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11047 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11048 (./conftest; exit; ) >&5 2>/dev/null
11049 lt_status=$?
11050 case x$lt_status in
11051 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11052 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11053 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11054 esac
11055 else :
11056 # compilation failed
11057 lt_cv_dlopen_self=no
11060 rm -fr conftest*
11064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11065 $as_echo "$lt_cv_dlopen_self" >&6; }
11067 if test "x$lt_cv_dlopen_self" = xyes; then
11068 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11070 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11071 if ${lt_cv_dlopen_self_static+:} false; then :
11072 $as_echo_n "(cached) " >&6
11073 else
11074 if test "$cross_compiling" = yes; then :
11075 lt_cv_dlopen_self_static=cross
11076 else
11077 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11078 lt_status=$lt_dlunknown
11079 cat > conftest.$ac_ext <<_LT_EOF
11080 #line 11080 "configure"
11081 #include "confdefs.h"
11083 #if HAVE_DLFCN_H
11084 #include <dlfcn.h>
11085 #endif
11087 #include <stdio.h>
11089 #ifdef RTLD_GLOBAL
11090 # define LT_DLGLOBAL RTLD_GLOBAL
11091 #else
11092 # ifdef DL_GLOBAL
11093 # define LT_DLGLOBAL DL_GLOBAL
11094 # else
11095 # define LT_DLGLOBAL 0
11096 # endif
11097 #endif
11099 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11100 find out it does not work in some platform. */
11101 #ifndef LT_DLLAZY_OR_NOW
11102 # ifdef RTLD_LAZY
11103 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11104 # else
11105 # ifdef DL_LAZY
11106 # define LT_DLLAZY_OR_NOW DL_LAZY
11107 # else
11108 # ifdef RTLD_NOW
11109 # define LT_DLLAZY_OR_NOW RTLD_NOW
11110 # else
11111 # ifdef DL_NOW
11112 # define LT_DLLAZY_OR_NOW DL_NOW
11113 # else
11114 # define LT_DLLAZY_OR_NOW 0
11115 # endif
11116 # endif
11117 # endif
11118 # endif
11119 #endif
11121 /* When -fvisbility=hidden is used, assume the code has been annotated
11122 correspondingly for the symbols needed. */
11123 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11124 void fnord () __attribute__((visibility("default")));
11125 #endif
11127 void fnord () { int i=42; }
11128 int main ()
11130 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11131 int status = $lt_dlunknown;
11133 if (self)
11135 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11136 else
11138 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11139 else puts (dlerror ());
11141 /* dlclose (self); */
11143 else
11144 puts (dlerror ());
11146 return status;
11148 _LT_EOF
11149 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11150 (eval $ac_link) 2>&5
11151 ac_status=$?
11152 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11153 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11154 (./conftest; exit; ) >&5 2>/dev/null
11155 lt_status=$?
11156 case x$lt_status in
11157 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11158 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11159 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11160 esac
11161 else :
11162 # compilation failed
11163 lt_cv_dlopen_self_static=no
11166 rm -fr conftest*
11170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11171 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11174 CPPFLAGS="$save_CPPFLAGS"
11175 LDFLAGS="$save_LDFLAGS"
11176 LIBS="$save_LIBS"
11178 esac
11180 case $lt_cv_dlopen_self in
11181 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11182 *) enable_dlopen_self=unknown ;;
11183 esac
11185 case $lt_cv_dlopen_self_static in
11186 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11187 *) enable_dlopen_self_static=unknown ;;
11188 esac
11207 striplib=
11208 old_striplib=
11209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11210 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11211 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11212 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11213 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11215 $as_echo "yes" >&6; }
11216 else
11217 # FIXME - insert some real tests, host_os isn't really good enough
11218 case $host_os in
11219 darwin*)
11220 if test -n "$STRIP" ; then
11221 striplib="$STRIP -x"
11222 old_striplib="$STRIP -S"
11223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11224 $as_echo "yes" >&6; }
11225 else
11226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11227 $as_echo "no" >&6; }
11231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11232 $as_echo "no" >&6; }
11234 esac
11248 # Report which library types will actually be built
11249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11250 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11252 $as_echo "$can_build_shared" >&6; }
11254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11255 $as_echo_n "checking whether to build shared libraries... " >&6; }
11256 test "$can_build_shared" = "no" && enable_shared=no
11258 # On AIX, shared libraries and static libraries use the same namespace, and
11259 # are all built from PIC.
11260 case $host_os in
11261 aix3*)
11262 test "$enable_shared" = yes && enable_static=no
11263 if test -n "$RANLIB"; then
11264 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11265 postinstall_cmds='$RANLIB $lib'
11269 aix[4-9]*)
11270 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11271 test "$enable_shared" = yes && enable_static=no
11274 esac
11275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11276 $as_echo "$enable_shared" >&6; }
11278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11279 $as_echo_n "checking whether to build static libraries... " >&6; }
11280 # Make sure either enable_shared or enable_static is yes.
11281 test "$enable_shared" = yes || enable_static=yes
11282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11283 $as_echo "$enable_static" >&6; }
11289 ac_ext=c
11290 ac_cpp='$CPP $CPPFLAGS'
11291 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11292 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11293 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11295 CC="$lt_save_CC"
11309 ac_config_commands="$ac_config_commands libtool"
11314 # Only expand once:
11318 # The tests for host and target for $enable_largefile require
11319 # canonical names.
11323 # As the $enable_largefile decision depends on --enable-plugins we must set it
11324 # even in directories otherwise not depending on the $plugins option.
11327 maybe_plugins=no
11328 for ac_header in dlfcn.h
11329 do :
11330 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
11332 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
11333 cat >>confdefs.h <<_ACEOF
11334 #define HAVE_DLFCN_H 1
11335 _ACEOF
11336 maybe_plugins=yes
11339 done
11341 for ac_header in windows.h
11342 do :
11343 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
11345 if test "x$ac_cv_header_windows_h" = xyes; then :
11346 cat >>confdefs.h <<_ACEOF
11347 #define HAVE_WINDOWS_H 1
11348 _ACEOF
11349 maybe_plugins=yes
11352 done
11355 # Check whether --enable-plugins was given.
11356 if test "${enable_plugins+set}" = set; then :
11357 enableval=$enable_plugins; case "${enableval}" in
11358 no) plugins=no ;;
11359 *) plugins=yes
11360 if test "$maybe_plugins" != "yes" ; then
11361 as_fn_error $? "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
11362 fi ;;
11363 esac
11364 else
11365 plugins=$maybe_plugins
11369 if test "$plugins" = "yes"; then
11370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
11371 $as_echo_n "checking for library containing dlsym... " >&6; }
11372 if ${ac_cv_search_dlsym+:} false; then :
11373 $as_echo_n "(cached) " >&6
11374 else
11375 ac_func_search_save_LIBS=$LIBS
11376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11377 /* end confdefs.h. */
11379 /* Override any GCC internal prototype to avoid an error.
11380 Use char because int might match the return type of a GCC
11381 builtin and then its argument prototype would still apply. */
11382 #ifdef __cplusplus
11383 extern "C"
11384 #endif
11385 char dlsym ();
11387 main ()
11389 return dlsym ();
11391 return 0;
11393 _ACEOF
11394 for ac_lib in '' dl; do
11395 if test -z "$ac_lib"; then
11396 ac_res="none required"
11397 else
11398 ac_res=-l$ac_lib
11399 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11401 if ac_fn_c_try_link "$LINENO"; then :
11402 ac_cv_search_dlsym=$ac_res
11404 rm -f core conftest.err conftest.$ac_objext \
11405 conftest$ac_exeext
11406 if ${ac_cv_search_dlsym+:} false; then :
11407 break
11409 done
11410 if ${ac_cv_search_dlsym+:} false; then :
11412 else
11413 ac_cv_search_dlsym=no
11415 rm conftest.$ac_ext
11416 LIBS=$ac_func_search_save_LIBS
11418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
11419 $as_echo "$ac_cv_search_dlsym" >&6; }
11420 ac_res=$ac_cv_search_dlsym
11421 if test "$ac_res" != no; then :
11422 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11429 case "${host}" in
11430 sparc-*-solaris*|i?86-*-solaris*)
11431 # On native 32-bit Solaris/SPARC and x86, large-file and procfs support
11432 # were mutually exclusive until Solaris 11.3. Without procfs support,
11433 # the bfd/ elf module cannot provide certain routines such as
11434 # elfcore_write_prpsinfo or elfcore_write_prstatus. So unless the user
11435 # explicitly requested large-file support through the
11436 # --enable-largefile switch, disable large-file support in favor of
11437 # procfs support.
11439 # Check if <sys/procfs.h> is incompatible with large-file support.
11440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11441 /* end confdefs.h. */
11442 #define _FILE_OFFSET_BITS 64
11443 #define _STRUCTURED_PROC 1
11444 #include <sys/procfs.h>
11446 main ()
11450 return 0;
11452 _ACEOF
11453 if ac_fn_c_try_compile "$LINENO"; then :
11454 acx_cv_procfs_lfs=yes
11455 else
11456 acx_cv_procfs_lfs=no
11458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11460 # Forcefully disable large-file support only if necessary, gdb is in
11461 # tree and enabled.
11462 if test "${target}" = "${host}" -a "$acx_cv_procfs_lfs" = no \
11463 -a -d $srcdir/../gdb -a "$enable_gdb" != no; then
11464 : ${enable_largefile="no"}
11465 if test "$plugins" = yes; then
11466 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
11467 plugin support disabled; require large-file support which is incompatible with GDB." >&5
11468 $as_echo "$as_me: WARNING:
11469 plugin support disabled; require large-file support which is incompatible with GDB." >&2;}
11470 plugins=no
11474 # Explicitly undef _FILE_OFFSET_BITS if enable_largefile=no for the
11475 # benefit of g++ 9+ which predefines it on Solaris.
11476 if test "$enable_largefile" = no; then
11477 LARGEFILE_CPPFLAGS="-U_FILE_OFFSET_BITS"
11481 esac
11483 # Check whether --enable-largefile was given.
11484 if test "${enable_largefile+set}" = set; then :
11485 enableval=$enable_largefile;
11488 if test "$enable_largefile" != no; then
11490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
11491 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
11492 if ${ac_cv_sys_largefile_CC+:} false; then :
11493 $as_echo_n "(cached) " >&6
11494 else
11495 ac_cv_sys_largefile_CC=no
11496 if test "$GCC" != yes; then
11497 ac_save_CC=$CC
11498 while :; do
11499 # IRIX 6.2 and later do not support large files by default,
11500 # so use the C compiler's -n32 option if that helps.
11501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11502 /* end confdefs.h. */
11503 #include <sys/types.h>
11504 /* Check that off_t can represent 2**63 - 1 correctly.
11505 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11506 since some C++ compilers masquerading as C compilers
11507 incorrectly reject 9223372036854775807. */
11508 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11509 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11510 && LARGE_OFF_T % 2147483647 == 1)
11511 ? 1 : -1];
11513 main ()
11517 return 0;
11519 _ACEOF
11520 if ac_fn_c_try_compile "$LINENO"; then :
11521 break
11523 rm -f core conftest.err conftest.$ac_objext
11524 CC="$CC -n32"
11525 if ac_fn_c_try_compile "$LINENO"; then :
11526 ac_cv_sys_largefile_CC=' -n32'; break
11528 rm -f core conftest.err conftest.$ac_objext
11529 break
11530 done
11531 CC=$ac_save_CC
11532 rm -f conftest.$ac_ext
11535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
11536 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
11537 if test "$ac_cv_sys_largefile_CC" != no; then
11538 CC=$CC$ac_cv_sys_largefile_CC
11541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
11542 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
11543 if ${ac_cv_sys_file_offset_bits+:} false; then :
11544 $as_echo_n "(cached) " >&6
11545 else
11546 while :; do
11547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11548 /* end confdefs.h. */
11549 #include <sys/types.h>
11550 /* Check that off_t can represent 2**63 - 1 correctly.
11551 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11552 since some C++ compilers masquerading as C compilers
11553 incorrectly reject 9223372036854775807. */
11554 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11555 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11556 && LARGE_OFF_T % 2147483647 == 1)
11557 ? 1 : -1];
11559 main ()
11563 return 0;
11565 _ACEOF
11566 if ac_fn_c_try_compile "$LINENO"; then :
11567 ac_cv_sys_file_offset_bits=no; break
11569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11571 /* end confdefs.h. */
11572 #define _FILE_OFFSET_BITS 64
11573 #include <sys/types.h>
11574 /* Check that off_t can represent 2**63 - 1 correctly.
11575 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11576 since some C++ compilers masquerading as C compilers
11577 incorrectly reject 9223372036854775807. */
11578 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11579 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11580 && LARGE_OFF_T % 2147483647 == 1)
11581 ? 1 : -1];
11583 main ()
11587 return 0;
11589 _ACEOF
11590 if ac_fn_c_try_compile "$LINENO"; then :
11591 ac_cv_sys_file_offset_bits=64; break
11593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11594 ac_cv_sys_file_offset_bits=unknown
11595 break
11596 done
11598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
11599 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
11600 case $ac_cv_sys_file_offset_bits in #(
11601 no | unknown) ;;
11603 cat >>confdefs.h <<_ACEOF
11604 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
11605 _ACEOF
11607 esac
11608 rm -rf conftest*
11609 if test $ac_cv_sys_file_offset_bits = unknown; then
11610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
11611 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
11612 if ${ac_cv_sys_large_files+:} false; then :
11613 $as_echo_n "(cached) " >&6
11614 else
11615 while :; do
11616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11617 /* end confdefs.h. */
11618 #include <sys/types.h>
11619 /* Check that off_t can represent 2**63 - 1 correctly.
11620 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11621 since some C++ compilers masquerading as C compilers
11622 incorrectly reject 9223372036854775807. */
11623 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11624 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11625 && LARGE_OFF_T % 2147483647 == 1)
11626 ? 1 : -1];
11628 main ()
11632 return 0;
11634 _ACEOF
11635 if ac_fn_c_try_compile "$LINENO"; then :
11636 ac_cv_sys_large_files=no; break
11638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11640 /* end confdefs.h. */
11641 #define _LARGE_FILES 1
11642 #include <sys/types.h>
11643 /* Check that off_t can represent 2**63 - 1 correctly.
11644 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11645 since some C++ compilers masquerading as C compilers
11646 incorrectly reject 9223372036854775807. */
11647 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11648 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11649 && LARGE_OFF_T % 2147483647 == 1)
11650 ? 1 : -1];
11652 main ()
11656 return 0;
11658 _ACEOF
11659 if ac_fn_c_try_compile "$LINENO"; then :
11660 ac_cv_sys_large_files=1; break
11662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11663 ac_cv_sys_large_files=unknown
11664 break
11665 done
11667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
11668 $as_echo "$ac_cv_sys_large_files" >&6; }
11669 case $ac_cv_sys_large_files in #(
11670 no | unknown) ;;
11672 cat >>confdefs.h <<_ACEOF
11673 #define _LARGE_FILES $ac_cv_sys_large_files
11674 _ACEOF
11676 esac
11677 rm -rf conftest*
11685 ac_checking=
11686 . ${srcdir}/../bfd/development.sh
11687 test "$development" = true && ac_checking=yes
11688 # Check whether --enable-checking was given.
11689 if test "${enable_checking+set}" = set; then :
11690 enableval=$enable_checking; case "${enableval}" in
11691 no|none) ac_checking= ;;
11692 *) ac_checking=yes ;;
11693 esac
11695 if test x$ac_checking != x ; then
11697 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
11701 # Check whether --enable-targets was given.
11702 if test "${enable_targets+set}" = set; then :
11703 enableval=$enable_targets; case "${enableval}" in
11704 yes | "") as_fn_error $? "enable-targets option must specify target names or 'all'" "$LINENO" 5
11706 no) enable_targets= ;;
11707 *) enable_targets=$enableval ;;
11708 esac
11712 # Check whether --enable-deterministic-archives was given.
11713 if test "${enable_deterministic_archives+set}" = set; then :
11714 enableval=$enable_deterministic_archives;
11715 if test "${enableval}" = no; then
11716 default_ar_deterministic=0
11717 else
11718 default_ar_deterministic=1
11720 else
11721 default_ar_deterministic=0
11726 cat >>confdefs.h <<_ACEOF
11727 #define DEFAULT_AR_DETERMINISTIC $default_ar_deterministic
11728 _ACEOF
11732 # Check whether --enable-default-strings-all was given.
11733 if test "${enable_default_strings_all+set}" = set; then :
11734 enableval=$enable_default_strings_all;
11735 if test "${enableval}" = no; then
11736 default_strings_all=0
11737 else
11738 default_strings_all=1
11740 else
11741 default_strings_all=1
11746 cat >>confdefs.h <<_ACEOF
11747 #define DEFAULT_STRINGS_ALL $default_strings_all
11748 _ACEOF
11752 # Check whether --enable-f-for-ifunc-symbols was given.
11753 if test "${enable_f_for_ifunc_symbols+set}" = set; then :
11754 enableval=$enable_f_for_ifunc_symbols;
11755 if test "${enableval}" = no; then
11756 default_f_for_ifunc=0
11757 else
11758 default_f_for_ifunc=1
11760 else
11761 default_f_for_ifunc=0
11766 cat >>confdefs.h <<_ACEOF
11767 #define DEFAULT_F_FOR_IFUNC_SYMBOLS $default_f_for_ifunc
11768 _ACEOF
11772 # Check whether --enable-follow-debug-links was given.
11773 if test "${enable_follow_debug_links+set}" = set; then :
11774 enableval=$enable_follow_debug_links;
11775 if test "${enableval}" = no; then
11776 default_for_follow_links=0
11777 else
11778 default_for_follow_links=1
11780 else
11781 default_for_follow_links=1
11786 cat >>confdefs.h <<_ACEOF
11787 #define DEFAULT_FOR_FOLLOW_LINKS $default_for_follow_links
11788 _ACEOF
11799 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11800 if test -n "$ac_tool_prefix"; then
11801 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11802 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11804 $as_echo_n "checking for $ac_word... " >&6; }
11805 if ${ac_cv_path_PKG_CONFIG+:} false; then :
11806 $as_echo_n "(cached) " >&6
11807 else
11808 case $PKG_CONFIG in
11809 [\\/]* | ?:[\\/]*)
11810 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11814 for as_dir in $PATH
11816 IFS=$as_save_IFS
11817 test -z "$as_dir" && as_dir=.
11818 for ac_exec_ext in '' $ac_executable_extensions; do
11819 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11820 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11822 break 2
11824 done
11825 done
11826 IFS=$as_save_IFS
11829 esac
11831 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11832 if test -n "$PKG_CONFIG"; then
11833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11834 $as_echo "$PKG_CONFIG" >&6; }
11835 else
11836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11837 $as_echo "no" >&6; }
11842 if test -z "$ac_cv_path_PKG_CONFIG"; then
11843 ac_pt_PKG_CONFIG=$PKG_CONFIG
11844 # Extract the first word of "pkg-config", so it can be a program name with args.
11845 set dummy pkg-config; ac_word=$2
11846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11847 $as_echo_n "checking for $ac_word... " >&6; }
11848 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
11849 $as_echo_n "(cached) " >&6
11850 else
11851 case $ac_pt_PKG_CONFIG in
11852 [\\/]* | ?:[\\/]*)
11853 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
11856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11857 for as_dir in $PATH
11859 IFS=$as_save_IFS
11860 test -z "$as_dir" && as_dir=.
11861 for ac_exec_ext in '' $ac_executable_extensions; do
11862 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11863 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11864 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11865 break 2
11867 done
11868 done
11869 IFS=$as_save_IFS
11872 esac
11874 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
11875 if test -n "$ac_pt_PKG_CONFIG"; then
11876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
11877 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
11878 else
11879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11880 $as_echo "no" >&6; }
11883 if test "x$ac_pt_PKG_CONFIG" = x; then
11884 PKG_CONFIG=""
11885 else
11886 case $cross_compiling:$ac_tool_warned in
11887 yes:)
11888 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11889 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11890 ac_tool_warned=yes ;;
11891 esac
11892 PKG_CONFIG=$ac_pt_PKG_CONFIG
11894 else
11895 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11899 if test -n "$PKG_CONFIG"; then
11900 _pkg_min_version=0.9.0
11901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
11902 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
11903 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
11904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11905 $as_echo "yes" >&6; }
11906 else
11907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11908 $as_echo "no" >&6; }
11909 PKG_CONFIG=""
11913 # Handle optional debuginfod support
11915 # Check whether --with-debuginfod was given.
11916 if test "${with_debuginfod+set}" = set; then :
11917 withval=$with_debuginfod;
11918 else
11919 with_debuginfod=auto
11922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use debuginfod" >&5
11923 $as_echo_n "checking whether to use debuginfod... " >&6; }
11924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_debuginfod" >&5
11925 $as_echo "$with_debuginfod" >&6; }
11927 if test "x$with_debuginfod" != xno; then
11929 pkg_failed=no
11930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libdebuginfod >= 0.179" >&5
11931 $as_echo_n "checking for libdebuginfod >= 0.179... " >&6; }
11933 if test -n "$DEBUGINFOD_CFLAGS"; then
11934 pkg_cv_DEBUGINFOD_CFLAGS="$DEBUGINFOD_CFLAGS"
11935 elif test -n "$PKG_CONFIG"; then
11936 if test -n "$PKG_CONFIG" && \
11937 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdebuginfod >= 0.179\""; } >&5
11938 ($PKG_CONFIG --exists --print-errors "libdebuginfod >= 0.179") 2>&5
11939 ac_status=$?
11940 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11941 test $ac_status = 0; }; then
11942 pkg_cv_DEBUGINFOD_CFLAGS=`$PKG_CONFIG --cflags "libdebuginfod >= 0.179" 2>/dev/null`
11943 test "x$?" != "x0" && pkg_failed=yes
11944 else
11945 pkg_failed=yes
11947 else
11948 pkg_failed=untried
11950 if test -n "$DEBUGINFOD_LIBS"; then
11951 pkg_cv_DEBUGINFOD_LIBS="$DEBUGINFOD_LIBS"
11952 elif test -n "$PKG_CONFIG"; then
11953 if test -n "$PKG_CONFIG" && \
11954 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdebuginfod >= 0.179\""; } >&5
11955 ($PKG_CONFIG --exists --print-errors "libdebuginfod >= 0.179") 2>&5
11956 ac_status=$?
11957 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11958 test $ac_status = 0; }; then
11959 pkg_cv_DEBUGINFOD_LIBS=`$PKG_CONFIG --libs "libdebuginfod >= 0.179" 2>/dev/null`
11960 test "x$?" != "x0" && pkg_failed=yes
11961 else
11962 pkg_failed=yes
11964 else
11965 pkg_failed=untried
11968 if test $pkg_failed = no; then
11969 pkg_save_LDFLAGS="$LDFLAGS"
11970 LDFLAGS="$LDFLAGS $pkg_cv_DEBUGINFOD_LIBS"
11971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11972 /* end confdefs.h. */
11975 main ()
11979 return 0;
11981 _ACEOF
11982 if ac_fn_c_try_link "$LINENO"; then :
11984 else
11985 pkg_failed=yes
11987 rm -f core conftest.err conftest.$ac_objext \
11988 conftest$ac_exeext conftest.$ac_ext
11989 LDFLAGS=$pkg_save_LDFLAGS
11994 if test $pkg_failed = yes; then
11995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11996 $as_echo "no" >&6; }
11998 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11999 _pkg_short_errors_supported=yes
12000 else
12001 _pkg_short_errors_supported=no
12003 if test $_pkg_short_errors_supported = yes; then
12004 DEBUGINFOD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdebuginfod >= 0.179" 2>&1`
12005 else
12006 DEBUGINFOD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdebuginfod >= 0.179" 2>&1`
12008 # Put the nasty error message in config.log where it belongs
12009 echo "$DEBUGINFOD_PKG_ERRORS" >&5
12011 if test "x$with_debuginfod" = xyes; then
12012 as_fn_error $? "\"--with-debuginfod was given, but libdebuginfod is missing or unusable.\"" "$LINENO" 5
12013 else
12014 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libdebuginfod is missing or unusable; some features may be unavailable." >&5
12015 $as_echo "$as_me: WARNING: libdebuginfod is missing or unusable; some features may be unavailable." >&2;}
12017 elif test $pkg_failed = untried; then
12018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12019 $as_echo "no" >&6; }
12020 if test "x$with_debuginfod" = xyes; then
12021 as_fn_error $? "\"--with-debuginfod was given, but libdebuginfod is missing or unusable.\"" "$LINENO" 5
12022 else
12023 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libdebuginfod is missing or unusable; some features may be unavailable." >&5
12024 $as_echo "$as_me: WARNING: libdebuginfod is missing or unusable; some features may be unavailable." >&2;}
12026 else
12027 DEBUGINFOD_CFLAGS=$pkg_cv_DEBUGINFOD_CFLAGS
12028 DEBUGINFOD_LIBS=$pkg_cv_DEBUGINFOD_LIBS
12029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12030 $as_echo "yes" >&6; }
12032 $as_echo "#define HAVE_LIBDEBUGINFOD 1" >>confdefs.h
12035 else
12036 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: debuginfod support disabled; some features may be unavailable." >&5
12037 $as_echo "$as_me: WARNING: debuginfod support disabled; some features may be unavailable." >&2;}
12041 # Check whether --enable-libctf was given.
12042 if test "${enable_libctf+set}" = set; then :
12043 enableval=$enable_libctf;
12044 case "$enableval" in
12045 yes|no) ;;
12046 *) as_fn_error $? "Argument to enable/disable libctf must be yes or no" "$LINENO" 5 ;;
12047 esac
12049 else
12050 enable_libctf=yes
12054 if test "${enable_libctf}" = yes; then
12056 $as_echo "#define ENABLE_LIBCTF 1" >>confdefs.h
12059 if test "${enable_libctf}" = yes; then
12060 ENABLE_LIBCTF_TRUE=
12061 ENABLE_LIBCTF_FALSE='#'
12062 else
12063 ENABLE_LIBCTF_TRUE='#'
12064 ENABLE_LIBCTF_FALSE=
12069 # Set the 'development' global.
12070 . $srcdir/../bfd/development.sh
12072 # Set acp_cpp_for_build variable
12073 ac_cpp_for_build="$CC_FOR_BUILD -E $CPPFLAGS_FOR_BUILD"
12075 # Default set of GCC warnings to enable.
12076 GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
12077 GCC_WARN_CFLAGS_FOR_BUILD="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
12079 # Add -Wshadow if the compiler is a sufficiently recent version of GCC.
12080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12081 /* end confdefs.h. */
12082 __GNUC__
12083 _ACEOF
12084 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12085 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
12087 else
12088 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow"
12090 rm -f conftest*
12093 # Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
12094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12095 /* end confdefs.h. */
12096 __GNUC__
12097 _ACEOF
12098 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12099 $EGREP "(^[0-4]$|^__GNUC__$)" >/dev/null 2>&1; then :
12101 else
12102 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wstack-usage=262144"
12104 rm -f conftest*
12107 # Set WARN_WRITE_STRINGS if the compiler supports -Wwrite-strings.
12108 WARN_WRITE_STRINGS=""
12109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12110 /* end confdefs.h. */
12111 __GNUC__
12112 _ACEOF
12113 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12114 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
12116 else
12117 WARN_WRITE_STRINGS="-Wwrite-strings"
12119 rm -f conftest*
12122 # Verify CC_FOR_BUILD to be compatible with warning flags
12124 # Add -Wshadow if the compiler is a sufficiently recent version of GCC.
12125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12126 /* end confdefs.h. */
12127 __GNUC__
12128 _ACEOF
12129 if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
12130 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
12132 else
12133 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wshadow"
12135 rm -f conftest*
12138 # Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
12139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12140 /* end confdefs.h. */
12141 __GNUC__
12142 _ACEOF
12143 if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
12144 $EGREP "(^[0-4]$|^__GNUC__$)" >/dev/null 2>&1; then :
12146 else
12147 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wstack-usage=262144"
12149 rm -f conftest*
12152 # Check whether --enable-werror was given.
12153 if test "${enable_werror+set}" = set; then :
12154 enableval=$enable_werror; case "${enableval}" in
12155 yes | y) ERROR_ON_WARNING="yes" ;;
12156 no | n) ERROR_ON_WARNING="no" ;;
12157 *) as_fn_error $? "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
12158 esac
12162 # Disable -Wformat by default when using gcc on mingw
12163 case "${host}" in
12164 *-*-mingw32*)
12165 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
12166 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
12167 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wno-format"
12170 *) ;;
12171 esac
12173 # Enable -Werror by default when using gcc. Turn it off for releases.
12174 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" -a "$development" = true ; then
12175 ERROR_ON_WARNING=yes
12178 NO_WERROR=
12179 if test "${ERROR_ON_WARNING}" = yes ; then
12180 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
12181 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Werror"
12182 NO_WERROR="-Wno-error"
12185 if test "${GCC}" = yes ; then
12186 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
12187 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}"
12190 # Check whether --enable-build-warnings was given.
12191 if test "${enable_build_warnings+set}" = set; then :
12192 enableval=$enable_build_warnings; case "${enableval}" in
12193 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}"
12194 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}";;
12195 no) if test "${GCC}" = yes ; then
12196 WARN_CFLAGS="-w"
12197 WARN_CFLAGS_FOR_BUILD="-w"
12198 fi;;
12199 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
12200 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}"
12201 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD} ${t}";;
12202 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
12203 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}"
12204 WARN_CFLAGS_FOR_BUILD="${t} ${GCC_WARN_CFLAGS_FOR_BUILD}";;
12205 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`
12206 WARN_CFLAGS_FOR_BUILD=`echo "${enableval}" | sed -e "s/,/ /g"`;;
12207 esac
12211 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
12212 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
12221 ac_config_headers="$ac_config_headers config.h:config.in"
12226 if test -z "$target" ; then
12227 as_fn_error $? "Unrecognized target system type; please check config.sub." "$LINENO" 5
12229 if test -z "$host" ; then
12230 as_fn_error $? "Unrecognized host system type; please check config.sub." "$LINENO" 5
12233 for ac_prog in 'bison -y' byacc
12235 # Extract the first word of "$ac_prog", so it can be a program name with args.
12236 set dummy $ac_prog; ac_word=$2
12237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12238 $as_echo_n "checking for $ac_word... " >&6; }
12239 if ${ac_cv_prog_YACC+:} false; then :
12240 $as_echo_n "(cached) " >&6
12241 else
12242 if test -n "$YACC"; then
12243 ac_cv_prog_YACC="$YACC" # Let the user override the test.
12244 else
12245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12246 for as_dir in $PATH
12248 IFS=$as_save_IFS
12249 test -z "$as_dir" && as_dir=.
12250 for ac_exec_ext in '' $ac_executable_extensions; do
12251 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12252 ac_cv_prog_YACC="$ac_prog"
12253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12254 break 2
12256 done
12257 done
12258 IFS=$as_save_IFS
12262 YACC=$ac_cv_prog_YACC
12263 if test -n "$YACC"; then
12264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
12265 $as_echo "$YACC" >&6; }
12266 else
12267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12268 $as_echo "no" >&6; }
12272 test -n "$YACC" && break
12273 done
12274 test -n "$YACC" || YACC="yacc"
12276 for ac_prog in flex lex
12278 # Extract the first word of "$ac_prog", so it can be a program name with args.
12279 set dummy $ac_prog; ac_word=$2
12280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12281 $as_echo_n "checking for $ac_word... " >&6; }
12282 if ${ac_cv_prog_LEX+:} false; then :
12283 $as_echo_n "(cached) " >&6
12284 else
12285 if test -n "$LEX"; then
12286 ac_cv_prog_LEX="$LEX" # Let the user override the test.
12287 else
12288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12289 for as_dir in $PATH
12291 IFS=$as_save_IFS
12292 test -z "$as_dir" && as_dir=.
12293 for ac_exec_ext in '' $ac_executable_extensions; do
12294 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12295 ac_cv_prog_LEX="$ac_prog"
12296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12297 break 2
12299 done
12300 done
12301 IFS=$as_save_IFS
12305 LEX=$ac_cv_prog_LEX
12306 if test -n "$LEX"; then
12307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
12308 $as_echo "$LEX" >&6; }
12309 else
12310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12311 $as_echo "no" >&6; }
12315 test -n "$LEX" && break
12316 done
12317 test -n "$LEX" || LEX=":"
12319 case "$LEX" in
12320 :|*"missing "*) ;;
12321 *) cat >conftest.l <<_ACEOF
12323 a { ECHO; }
12324 b { REJECT; }
12325 c { yymore (); }
12326 d { yyless (1); }
12327 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
12328 yyless ((input () != 0)); }
12329 f { unput (yytext[0]); }
12330 . { BEGIN INITIAL; }
12332 #ifdef YYTEXT_POINTER
12333 extern char *yytext;
12334 #endif
12336 main (void)
12338 return ! yylex () + ! yywrap ();
12340 _ACEOF
12341 { { ac_try="$LEX conftest.l"
12342 case "(($ac_try" in
12343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12344 *) ac_try_echo=$ac_try;;
12345 esac
12346 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12347 $as_echo "$ac_try_echo"; } >&5
12348 (eval "$LEX conftest.l") 2>&5
12349 ac_status=$?
12350 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12351 test $ac_status = 0; }
12352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
12353 $as_echo_n "checking lex output file root... " >&6; }
12354 if ${ac_cv_prog_lex_root+:} false; then :
12355 $as_echo_n "(cached) " >&6
12356 else
12358 if test -f lex.yy.c; then
12359 ac_cv_prog_lex_root=lex.yy
12360 elif test -f lexyy.c; then
12361 ac_cv_prog_lex_root=lexyy
12362 else
12363 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
12366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
12367 $as_echo "$ac_cv_prog_lex_root" >&6; }
12368 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
12370 if test -z "${LEXLIB+set}"; then
12371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
12372 $as_echo_n "checking lex library... " >&6; }
12373 if ${ac_cv_lib_lex+:} false; then :
12374 $as_echo_n "(cached) " >&6
12375 else
12377 ac_save_LIBS=$LIBS
12378 ac_cv_lib_lex='none needed'
12379 for ac_lib in '' -lfl -ll; do
12380 LIBS="$ac_lib $ac_save_LIBS"
12381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12382 /* end confdefs.h. */
12383 `cat $LEX_OUTPUT_ROOT.c`
12384 _ACEOF
12385 if ac_fn_c_try_link "$LINENO"; then :
12386 ac_cv_lib_lex=$ac_lib
12388 rm -f core conftest.err conftest.$ac_objext \
12389 conftest$ac_exeext conftest.$ac_ext
12390 test "$ac_cv_lib_lex" != 'none needed' && break
12391 done
12392 LIBS=$ac_save_LIBS
12395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
12396 $as_echo "$ac_cv_lib_lex" >&6; }
12397 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
12401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
12402 $as_echo_n "checking whether yytext is a pointer... " >&6; }
12403 if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
12404 $as_echo_n "(cached) " >&6
12405 else
12406 # POSIX says lex can declare yytext either as a pointer or an array; the
12407 # default is implementation-dependent. Figure out which it is, since
12408 # not all implementations provide the %pointer and %array declarations.
12409 ac_cv_prog_lex_yytext_pointer=no
12410 ac_save_LIBS=$LIBS
12411 LIBS="$LEXLIB $ac_save_LIBS"
12412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12413 /* end confdefs.h. */
12415 #define YYTEXT_POINTER 1
12416 `cat $LEX_OUTPUT_ROOT.c`
12417 _ACEOF
12418 if ac_fn_c_try_link "$LINENO"; then :
12419 ac_cv_prog_lex_yytext_pointer=yes
12421 rm -f core conftest.err conftest.$ac_objext \
12422 conftest$ac_exeext conftest.$ac_ext
12423 LIBS=$ac_save_LIBS
12426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
12427 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
12428 if test $ac_cv_prog_lex_yytext_pointer = yes; then
12430 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
12433 rm -f conftest.l $LEX_OUTPUT_ROOT.c
12435 esac
12436 if test "$LEX" = :; then
12437 LEX=${am_missing_run}flex
12440 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"
12441 # If we haven't got the data from the intl directory,
12442 # assume NLS is disabled.
12443 USE_NLS=no
12444 LIBINTL=
12445 LIBINTL_DEP=
12446 INCINTL=
12447 XGETTEXT=
12448 GMSGFMT=
12449 POSUB=
12451 if test -f ../intl/config.intl; then
12452 . ../intl/config.intl
12454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
12455 $as_echo_n "checking whether NLS is requested... " >&6; }
12456 if test x"$USE_NLS" != xyes; then
12457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12458 $as_echo "no" >&6; }
12459 else
12460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12461 $as_echo "yes" >&6; }
12463 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
12466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
12467 $as_echo_n "checking for catalogs to be installed... " >&6; }
12468 # Look for .po and .gmo files in the source directory.
12469 CATALOGS=
12470 XLINGUAS=
12471 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
12472 # If there aren't any .gmo files the shell will give us the
12473 # literal string "../path/to/srcdir/po/*.gmo" which has to be
12474 # weeded out.
12475 case "$cat" in *\**)
12476 continue;;
12477 esac
12478 # The quadruple backslash is collapsed to a double backslash
12479 # by the backticks, then collapsed again by the double quotes,
12480 # leaving us with one backslash in the sed expression (right
12481 # before the dot that mustn't act as a wildcard).
12482 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
12483 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
12484 # The user is allowed to set LINGUAS to a list of languages to
12485 # install catalogs for. If it's empty that means "all of them."
12486 if test "x$LINGUAS" = x; then
12487 CATALOGS="$CATALOGS $cat"
12488 XLINGUAS="$XLINGUAS $lang"
12489 else
12490 case "$LINGUAS" in *$lang*)
12491 CATALOGS="$CATALOGS $cat"
12492 XLINGUAS="$XLINGUAS $lang"
12494 esac
12496 done
12497 LINGUAS="$XLINGUAS"
12498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
12499 $as_echo "$LINGUAS" >&6; }
12502 DATADIRNAME=share
12504 INSTOBJEXT=.mo
12506 GENCAT=gencat
12508 CATOBJEXT=.gmo
12512 MKINSTALLDIRS=
12513 if test -n "$ac_aux_dir"; then
12514 case "$ac_aux_dir" in
12515 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
12516 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
12517 esac
12519 if test -z "$MKINSTALLDIRS"; then
12520 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
12525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
12526 $as_echo_n "checking whether NLS is requested... " >&6; }
12527 # Check whether --enable-nls was given.
12528 if test "${enable_nls+set}" = set; then :
12529 enableval=$enable_nls; USE_NLS=$enableval
12530 else
12531 USE_NLS=yes
12534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
12535 $as_echo "$USE_NLS" >&6; }
12542 # Prepare PATH_SEPARATOR.
12543 # The user is always right.
12544 if test "${PATH_SEPARATOR+set}" != set; then
12545 echo "#! /bin/sh" >conf$$.sh
12546 echo "exit 0" >>conf$$.sh
12547 chmod +x conf$$.sh
12548 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12549 PATH_SEPARATOR=';'
12550 else
12551 PATH_SEPARATOR=:
12553 rm -f conf$$.sh
12556 # Find out how to test for executable files. Don't use a zero-byte file,
12557 # as systems may use methods other than mode bits to determine executability.
12558 cat >conf$$.file <<_ASEOF
12559 #! /bin/sh
12560 exit 0
12561 _ASEOF
12562 chmod +x conf$$.file
12563 if test -x conf$$.file >/dev/null 2>&1; then
12564 ac_executable_p="test -x"
12565 else
12566 ac_executable_p="test -f"
12568 rm -f conf$$.file
12570 # Extract the first word of "msgfmt", so it can be a program name with args.
12571 set dummy msgfmt; ac_word=$2
12572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12573 $as_echo_n "checking for $ac_word... " >&6; }
12574 if ${ac_cv_path_MSGFMT+:} false; then :
12575 $as_echo_n "(cached) " >&6
12576 else
12577 case "$MSGFMT" in
12578 [\\/]* | ?:[\\/]*)
12579 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
12582 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12583 for ac_dir in $PATH; do
12584 IFS="$ac_save_IFS"
12585 test -z "$ac_dir" && ac_dir=.
12586 for ac_exec_ext in '' $ac_executable_extensions; do
12587 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12588 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
12589 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12590 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
12591 break 2
12594 done
12595 done
12596 IFS="$ac_save_IFS"
12597 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
12599 esac
12601 MSGFMT="$ac_cv_path_MSGFMT"
12602 if test "$MSGFMT" != ":"; then
12603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
12604 $as_echo "$MSGFMT" >&6; }
12605 else
12606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12607 $as_echo "no" >&6; }
12610 # Extract the first word of "gmsgfmt", so it can be a program name with args.
12611 set dummy gmsgfmt; ac_word=$2
12612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12613 $as_echo_n "checking for $ac_word... " >&6; }
12614 if ${ac_cv_path_GMSGFMT+:} false; then :
12615 $as_echo_n "(cached) " >&6
12616 else
12617 case $GMSGFMT in
12618 [\\/]* | ?:[\\/]*)
12619 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
12622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12623 for as_dir in $PATH
12625 IFS=$as_save_IFS
12626 test -z "$as_dir" && as_dir=.
12627 for ac_exec_ext in '' $ac_executable_extensions; do
12628 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12629 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
12630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12631 break 2
12633 done
12634 done
12635 IFS=$as_save_IFS
12637 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
12639 esac
12641 GMSGFMT=$ac_cv_path_GMSGFMT
12642 if test -n "$GMSGFMT"; then
12643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
12644 $as_echo "$GMSGFMT" >&6; }
12645 else
12646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12647 $as_echo "no" >&6; }
12653 # Prepare PATH_SEPARATOR.
12654 # The user is always right.
12655 if test "${PATH_SEPARATOR+set}" != set; then
12656 echo "#! /bin/sh" >conf$$.sh
12657 echo "exit 0" >>conf$$.sh
12658 chmod +x conf$$.sh
12659 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12660 PATH_SEPARATOR=';'
12661 else
12662 PATH_SEPARATOR=:
12664 rm -f conf$$.sh
12667 # Find out how to test for executable files. Don't use a zero-byte file,
12668 # as systems may use methods other than mode bits to determine executability.
12669 cat >conf$$.file <<_ASEOF
12670 #! /bin/sh
12671 exit 0
12672 _ASEOF
12673 chmod +x conf$$.file
12674 if test -x conf$$.file >/dev/null 2>&1; then
12675 ac_executable_p="test -x"
12676 else
12677 ac_executable_p="test -f"
12679 rm -f conf$$.file
12681 # Extract the first word of "xgettext", so it can be a program name with args.
12682 set dummy xgettext; ac_word=$2
12683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12684 $as_echo_n "checking for $ac_word... " >&6; }
12685 if ${ac_cv_path_XGETTEXT+:} false; then :
12686 $as_echo_n "(cached) " >&6
12687 else
12688 case "$XGETTEXT" in
12689 [\\/]* | ?:[\\/]*)
12690 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
12693 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12694 for ac_dir in $PATH; do
12695 IFS="$ac_save_IFS"
12696 test -z "$ac_dir" && ac_dir=.
12697 for ac_exec_ext in '' $ac_executable_extensions; do
12698 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12699 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
12700 (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
12701 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
12702 break 2
12705 done
12706 done
12707 IFS="$ac_save_IFS"
12708 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
12710 esac
12712 XGETTEXT="$ac_cv_path_XGETTEXT"
12713 if test "$XGETTEXT" != ":"; then
12714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
12715 $as_echo "$XGETTEXT" >&6; }
12716 else
12717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12718 $as_echo "no" >&6; }
12721 rm -f messages.po
12724 # Prepare PATH_SEPARATOR.
12725 # The user is always right.
12726 if test "${PATH_SEPARATOR+set}" != set; then
12727 echo "#! /bin/sh" >conf$$.sh
12728 echo "exit 0" >>conf$$.sh
12729 chmod +x conf$$.sh
12730 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12731 PATH_SEPARATOR=';'
12732 else
12733 PATH_SEPARATOR=:
12735 rm -f conf$$.sh
12738 # Find out how to test for executable files. Don't use a zero-byte file,
12739 # as systems may use methods other than mode bits to determine executability.
12740 cat >conf$$.file <<_ASEOF
12741 #! /bin/sh
12742 exit 0
12743 _ASEOF
12744 chmod +x conf$$.file
12745 if test -x conf$$.file >/dev/null 2>&1; then
12746 ac_executable_p="test -x"
12747 else
12748 ac_executable_p="test -f"
12750 rm -f conf$$.file
12752 # Extract the first word of "msgmerge", so it can be a program name with args.
12753 set dummy msgmerge; ac_word=$2
12754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12755 $as_echo_n "checking for $ac_word... " >&6; }
12756 if ${ac_cv_path_MSGMERGE+:} false; then :
12757 $as_echo_n "(cached) " >&6
12758 else
12759 case "$MSGMERGE" in
12760 [\\/]* | ?:[\\/]*)
12761 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
12764 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12765 for ac_dir in $PATH; do
12766 IFS="$ac_save_IFS"
12767 test -z "$ac_dir" && ac_dir=.
12768 for ac_exec_ext in '' $ac_executable_extensions; do
12769 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12770 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
12771 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
12772 break 2
12775 done
12776 done
12777 IFS="$ac_save_IFS"
12778 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
12780 esac
12782 MSGMERGE="$ac_cv_path_MSGMERGE"
12783 if test "$MSGMERGE" != ":"; then
12784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
12785 $as_echo "$MSGMERGE" >&6; }
12786 else
12787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12788 $as_echo "no" >&6; }
12792 if test "$GMSGFMT" != ":"; then
12793 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
12794 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12796 else
12797 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
12798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
12799 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
12800 GMSGFMT=":"
12804 if test "$XGETTEXT" != ":"; then
12805 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
12806 (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
12808 else
12809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
12810 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
12811 XGETTEXT=":"
12813 rm -f messages.po
12816 ac_config_commands="$ac_config_commands default-1"
12821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
12822 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
12823 # Check whether --enable-maintainer-mode was given.
12824 if test "${enable_maintainer_mode+set}" = set; then :
12825 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
12826 else
12827 USE_MAINTAINER_MODE=no
12830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
12831 $as_echo "$USE_MAINTAINER_MODE" >&6; }
12832 if test $USE_MAINTAINER_MODE = yes; then
12833 MAINTAINER_MODE_TRUE=
12834 MAINTAINER_MODE_FALSE='#'
12835 else
12836 MAINTAINER_MODE_TRUE='#'
12837 MAINTAINER_MODE_FALSE=
12840 MAINT=$MAINTAINER_MODE_TRUE
12843 if false; then
12844 GENINSRC_NEVER_TRUE=
12845 GENINSRC_NEVER_FALSE='#'
12846 else
12847 GENINSRC_NEVER_TRUE='#'
12848 GENINSRC_NEVER_FALSE=
12852 if test -n "$EXEEXT"; then
12854 $as_echo "#define HAVE_EXECUTABLE_SUFFIX 1" >>confdefs.h
12858 cat >>confdefs.h <<_ACEOF
12859 #define EXECUTABLE_SUFFIX "${EXEEXT}"
12860 _ACEOF
12863 # host-specific stuff:
12865 HDEFINES=
12867 . ${srcdir}/../bfd/configure.host
12870 AR=${AR-ar}
12872 if test -n "$ac_tool_prefix"; then
12873 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12874 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12876 $as_echo_n "checking for $ac_word... " >&6; }
12877 if ${ac_cv_prog_RANLIB+:} false; then :
12878 $as_echo_n "(cached) " >&6
12879 else
12880 if test -n "$RANLIB"; then
12881 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12882 else
12883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12884 for as_dir in $PATH
12886 IFS=$as_save_IFS
12887 test -z "$as_dir" && as_dir=.
12888 for ac_exec_ext in '' $ac_executable_extensions; do
12889 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12890 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12892 break 2
12894 done
12895 done
12896 IFS=$as_save_IFS
12900 RANLIB=$ac_cv_prog_RANLIB
12901 if test -n "$RANLIB"; then
12902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12903 $as_echo "$RANLIB" >&6; }
12904 else
12905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12906 $as_echo "no" >&6; }
12911 if test -z "$ac_cv_prog_RANLIB"; then
12912 ac_ct_RANLIB=$RANLIB
12913 # Extract the first word of "ranlib", so it can be a program name with args.
12914 set dummy ranlib; ac_word=$2
12915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12916 $as_echo_n "checking for $ac_word... " >&6; }
12917 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
12918 $as_echo_n "(cached) " >&6
12919 else
12920 if test -n "$ac_ct_RANLIB"; then
12921 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12922 else
12923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12924 for as_dir in $PATH
12926 IFS=$as_save_IFS
12927 test -z "$as_dir" && as_dir=.
12928 for ac_exec_ext in '' $ac_executable_extensions; do
12929 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12930 ac_cv_prog_ac_ct_RANLIB="ranlib"
12931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12932 break 2
12934 done
12935 done
12936 IFS=$as_save_IFS
12940 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12941 if test -n "$ac_ct_RANLIB"; then
12942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12943 $as_echo "$ac_ct_RANLIB" >&6; }
12944 else
12945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12946 $as_echo "no" >&6; }
12949 if test "x$ac_ct_RANLIB" = x; then
12950 RANLIB=":"
12951 else
12952 case $cross_compiling:$ac_tool_warned in
12953 yes:)
12954 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12955 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12956 ac_tool_warned=yes ;;
12957 esac
12958 RANLIB=$ac_ct_RANLIB
12960 else
12961 RANLIB="$ac_cv_prog_RANLIB"
12966 # Put a plausible default for CC_FOR_BUILD in Makefile.
12967 if test -z "$CC_FOR_BUILD"; then
12968 if test "x$cross_compiling" = "xno"; then
12969 CC_FOR_BUILD='$(CC)'
12970 else
12971 CC_FOR_BUILD=gcc
12975 # Also set EXEEXT_FOR_BUILD.
12976 if test "x$cross_compiling" = "xno"; then
12977 EXEEXT_FOR_BUILD='$(EXEEXT)'
12978 else
12979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build system executable suffix" >&5
12980 $as_echo_n "checking for build system executable suffix... " >&6; }
12981 if ${bfd_cv_build_exeext+:} false; then :
12982 $as_echo_n "(cached) " >&6
12983 else
12984 rm -f conftest*
12985 echo 'int main () { return 0; }' > conftest.c
12986 bfd_cv_build_exeext=
12987 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
12988 for file in conftest.*; do
12989 case $file in
12990 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
12991 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
12992 esac
12993 done
12994 rm -f conftest*
12995 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
12997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_build_exeext" >&5
12998 $as_echo "$bfd_cv_build_exeext" >&6; }
12999 EXEEXT_FOR_BUILD=""
13000 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
13004 DEMANGLER_NAME=c++filt
13005 case "${host}" in
13006 *-*-go32* | *-*-msdos*)
13007 DEMANGLER_NAME=cxxfilt
13008 esac
13011 # The cast to long int works around a bug in the HP C Compiler
13012 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13013 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13014 # This bug is HP SR number 8606223364.
13015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
13016 $as_echo_n "checking size of long... " >&6; }
13017 if ${ac_cv_sizeof_long+:} false; then :
13018 $as_echo_n "(cached) " >&6
13019 else
13020 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
13022 else
13023 if test "$ac_cv_type_long" = yes; then
13024 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13025 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13026 as_fn_error 77 "cannot compute sizeof (long)
13027 See \`config.log' for more details" "$LINENO" 5; }
13028 else
13029 ac_cv_sizeof_long=0
13034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
13035 $as_echo "$ac_cv_sizeof_long" >&6; }
13039 cat >>confdefs.h <<_ACEOF
13040 #define SIZEOF_LONG $ac_cv_sizeof_long
13041 _ACEOF
13044 # The cast to long int works around a bug in the HP C Compiler
13045 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13046 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13047 # This bug is HP SR number 8606223364.
13048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
13049 $as_echo_n "checking size of long long... " >&6; }
13050 if ${ac_cv_sizeof_long_long+:} false; then :
13051 $as_echo_n "(cached) " >&6
13052 else
13053 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
13055 else
13056 if test "$ac_cv_type_long_long" = yes; then
13057 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13058 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13059 as_fn_error 77 "cannot compute sizeof (long long)
13060 See \`config.log' for more details" "$LINENO" 5; }
13061 else
13062 ac_cv_sizeof_long_long=0
13067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
13068 $as_echo "$ac_cv_sizeof_long_long" >&6; }
13072 cat >>confdefs.h <<_ACEOF
13073 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
13074 _ACEOF
13078 # We use headers from include/ that check various HAVE_*_H macros, thus
13079 # should ensure they are set by configure. This is true even when C99
13080 # guarantees they are available.
13081 # plugin-api.h tests HAVE_STDINT_H and HAVE_INTTYPES_H
13082 # Besides those, we need to check anything used in binutils/ not in C99.
13083 for ac_header in fcntl.h inttypes.h stdint.h sys/file.h \
13084 sys/stat.h sys/time.h sys/types.h unistd.h
13085 do :
13086 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13087 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13088 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13089 cat >>confdefs.h <<_ACEOF
13090 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13091 _ACEOF
13095 done
13097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
13098 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
13099 if ${ac_cv_header_sys_wait_h+:} false; then :
13100 $as_echo_n "(cached) " >&6
13101 else
13102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13103 /* end confdefs.h. */
13104 #include <sys/types.h>
13105 #include <sys/wait.h>
13106 #ifndef WEXITSTATUS
13107 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
13108 #endif
13109 #ifndef WIFEXITED
13110 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
13111 #endif
13114 main ()
13116 int s;
13117 wait (&s);
13118 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
13120 return 0;
13122 _ACEOF
13123 if ac_fn_c_try_compile "$LINENO"; then :
13124 ac_cv_header_sys_wait_h=yes
13125 else
13126 ac_cv_header_sys_wait_h=no
13128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
13131 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
13132 if test $ac_cv_header_sys_wait_h = yes; then
13134 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
13141 for ac_header in $ac_header_list
13142 do :
13143 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13144 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
13146 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13147 cat >>confdefs.h <<_ACEOF
13148 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13149 _ACEOF
13153 done
13162 for ac_func in getpagesize
13163 do :
13164 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
13165 if test "x$ac_cv_func_getpagesize" = xyes; then :
13166 cat >>confdefs.h <<_ACEOF
13167 #define HAVE_GETPAGESIZE 1
13168 _ACEOF
13171 done
13173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
13174 $as_echo_n "checking for working mmap... " >&6; }
13175 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
13176 $as_echo_n "(cached) " >&6
13177 else
13178 if test "$cross_compiling" = yes; then :
13179 ac_cv_func_mmap_fixed_mapped=no
13180 else
13181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13182 /* end confdefs.h. */
13183 $ac_includes_default
13184 /* malloc might have been renamed as rpl_malloc. */
13185 #undef malloc
13187 /* Thanks to Mike Haertel and Jim Avera for this test.
13188 Here is a matrix of mmap possibilities:
13189 mmap private not fixed
13190 mmap private fixed at somewhere currently unmapped
13191 mmap private fixed at somewhere already mapped
13192 mmap shared not fixed
13193 mmap shared fixed at somewhere currently unmapped
13194 mmap shared fixed at somewhere already mapped
13195 For private mappings, we should verify that changes cannot be read()
13196 back from the file, nor mmap's back from the file at a different
13197 address. (There have been systems where private was not correctly
13198 implemented like the infamous i386 svr4.0, and systems where the
13199 VM page cache was not coherent with the file system buffer cache
13200 like early versions of FreeBSD and possibly contemporary NetBSD.)
13201 For shared mappings, we should conversely verify that changes get
13202 propagated back to all the places they're supposed to be.
13204 Grep wants private fixed already mapped.
13205 The main things grep needs to know about mmap are:
13206 * does it exist and is it safe to write into the mmap'd area
13207 * how to use it (BSD variants) */
13209 #include <fcntl.h>
13210 #include <sys/mman.h>
13212 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
13213 char *malloc ();
13214 #endif
13216 /* This mess was copied from the GNU getpagesize.h. */
13217 #ifndef HAVE_GETPAGESIZE
13218 # ifdef _SC_PAGESIZE
13219 # define getpagesize() sysconf(_SC_PAGESIZE)
13220 # else /* no _SC_PAGESIZE */
13221 # ifdef HAVE_SYS_PARAM_H
13222 # include <sys/param.h>
13223 # ifdef EXEC_PAGESIZE
13224 # define getpagesize() EXEC_PAGESIZE
13225 # else /* no EXEC_PAGESIZE */
13226 # ifdef NBPG
13227 # define getpagesize() NBPG * CLSIZE
13228 # ifndef CLSIZE
13229 # define CLSIZE 1
13230 # endif /* no CLSIZE */
13231 # else /* no NBPG */
13232 # ifdef NBPC
13233 # define getpagesize() NBPC
13234 # else /* no NBPC */
13235 # ifdef PAGESIZE
13236 # define getpagesize() PAGESIZE
13237 # endif /* PAGESIZE */
13238 # endif /* no NBPC */
13239 # endif /* no NBPG */
13240 # endif /* no EXEC_PAGESIZE */
13241 # else /* no HAVE_SYS_PARAM_H */
13242 # define getpagesize() 8192 /* punt totally */
13243 # endif /* no HAVE_SYS_PARAM_H */
13244 # endif /* no _SC_PAGESIZE */
13246 #endif /* no HAVE_GETPAGESIZE */
13249 main ()
13251 char *data, *data2, *data3;
13252 const char *cdata2;
13253 int i, pagesize;
13254 int fd, fd2;
13256 pagesize = getpagesize ();
13258 /* First, make a file with some known garbage in it. */
13259 data = (char *) malloc (pagesize);
13260 if (!data)
13261 return 1;
13262 for (i = 0; i < pagesize; ++i)
13263 *(data + i) = rand ();
13264 umask (0);
13265 fd = creat ("conftest.mmap", 0600);
13266 if (fd < 0)
13267 return 2;
13268 if (write (fd, data, pagesize) != pagesize)
13269 return 3;
13270 close (fd);
13272 /* Next, check that the tail of a page is zero-filled. File must have
13273 non-zero length, otherwise we risk SIGBUS for entire page. */
13274 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
13275 if (fd2 < 0)
13276 return 4;
13277 cdata2 = "";
13278 if (write (fd2, cdata2, 1) != 1)
13279 return 5;
13280 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
13281 if (data2 == MAP_FAILED)
13282 return 6;
13283 for (i = 0; i < pagesize; ++i)
13284 if (*(data2 + i))
13285 return 7;
13286 close (fd2);
13287 if (munmap (data2, pagesize))
13288 return 8;
13290 /* Next, try to mmap the file at a fixed address which already has
13291 something else allocated at it. If we can, also make sure that
13292 we see the same garbage. */
13293 fd = open ("conftest.mmap", O_RDWR);
13294 if (fd < 0)
13295 return 9;
13296 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
13297 MAP_PRIVATE | MAP_FIXED, fd, 0L))
13298 return 10;
13299 for (i = 0; i < pagesize; ++i)
13300 if (*(data + i) != *(data2 + i))
13301 return 11;
13303 /* Finally, make sure that changes to the mapped area do not
13304 percolate back to the file as seen by read(). (This is a bug on
13305 some variants of i386 svr4.0.) */
13306 for (i = 0; i < pagesize; ++i)
13307 *(data2 + i) = *(data2 + i) + 1;
13308 data3 = (char *) malloc (pagesize);
13309 if (!data3)
13310 return 12;
13311 if (read (fd, data3, pagesize) != pagesize)
13312 return 13;
13313 for (i = 0; i < pagesize; ++i)
13314 if (*(data + i) != *(data3 + i))
13315 return 14;
13316 close (fd);
13317 return 0;
13319 _ACEOF
13320 if ac_fn_c_try_run "$LINENO"; then :
13321 ac_cv_func_mmap_fixed_mapped=yes
13322 else
13323 ac_cv_func_mmap_fixed_mapped=no
13325 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13326 conftest.$ac_objext conftest.beam conftest.$ac_ext
13330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
13331 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
13332 if test $ac_cv_func_mmap_fixed_mapped = yes; then
13334 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
13337 rm -f conftest.mmap conftest.txt
13339 for ac_func in getc_unlocked mkdtemp mkstemp sbrk utimensat utimes
13340 do :
13341 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13342 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13343 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13344 cat >>confdefs.h <<_ACEOF
13345 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13346 _ACEOF
13349 done
13352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
13353 $as_echo_n "checking for mbstate_t... " >&6; }
13354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13355 /* end confdefs.h. */
13356 #include <wchar.h>
13358 main ()
13360 mbstate_t teststate;
13362 return 0;
13364 _ACEOF
13365 if ac_fn_c_try_compile "$LINENO"; then :
13366 have_mbstate_t=yes
13367 else
13368 have_mbstate_t=no
13370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mbstate_t" >&5
13372 $as_echo "$have_mbstate_t" >&6; }
13373 if test x"$have_mbstate_t" = xyes; then
13375 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
13379 # Copied from gnulib stat-time.m4.
13380 # We should just switch over to using gnulib.
13381 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim.tv_nsec" "ac_cv_member_struct_stat_st_atim_tv_nsec" "#include <sys/types.h>
13382 #include <sys/stat.h>
13384 if test "x$ac_cv_member_struct_stat_st_atim_tv_nsec" = xyes; then :
13386 cat >>confdefs.h <<_ACEOF
13387 #define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1
13388 _ACEOF
13390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat.st_atim is of type struct timespec" >&5
13391 $as_echo_n "checking whether struct stat.st_atim is of type struct timespec... " >&6; }
13392 if ${ac_cv_typeof_struct_stat_st_atim_is_struct_timespec+:} false; then :
13393 $as_echo_n "(cached) " >&6
13394 else
13395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13396 /* end confdefs.h. */
13398 #include <sys/types.h>
13399 #include <sys/stat.h>
13400 #if HAVE_SYS_TIME_H
13401 # include <sys/time.h>
13402 #endif
13403 #include <time.h>
13404 struct timespec ts;
13405 struct stat st;
13408 main ()
13411 st.st_atim = ts;
13414 return 0;
13416 _ACEOF
13417 if ac_fn_c_try_compile "$LINENO"; then :
13418 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=yes
13419 else
13420 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=no
13422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&5
13425 $as_echo "$ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&6; }
13426 if test $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec = yes; then
13428 $as_echo "#define TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC 1" >>confdefs.h
13431 else
13432 ac_fn_c_check_member "$LINENO" "struct stat" "st_atimespec.tv_nsec" "ac_cv_member_struct_stat_st_atimespec_tv_nsec" "#include <sys/types.h>
13433 #include <sys/stat.h>
13435 if test "x$ac_cv_member_struct_stat_st_atimespec_tv_nsec" = xyes; then :
13437 cat >>confdefs.h <<_ACEOF
13438 #define HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC 1
13439 _ACEOF
13442 else
13443 ac_fn_c_check_member "$LINENO" "struct stat" "st_atimensec" "ac_cv_member_struct_stat_st_atimensec" "#include <sys/types.h>
13444 #include <sys/stat.h>
13446 if test "x$ac_cv_member_struct_stat_st_atimensec" = xyes; then :
13448 cat >>confdefs.h <<_ACEOF
13449 #define HAVE_STRUCT_STAT_ST_ATIMENSEC 1
13450 _ACEOF
13453 else
13454 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim.st__tim.tv_nsec" "ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" "#include <sys/types.h>
13455 #include <sys/stat.h>
13457 if test "x$ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" = xyes; then :
13459 cat >>confdefs.h <<_ACEOF
13460 #define HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC 1
13461 _ACEOF
13473 # Some systems have frexp only in -lm, not in -lc.
13474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing frexp" >&5
13475 $as_echo_n "checking for library containing frexp... " >&6; }
13476 if ${ac_cv_search_frexp+:} false; then :
13477 $as_echo_n "(cached) " >&6
13478 else
13479 ac_func_search_save_LIBS=$LIBS
13480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13481 /* end confdefs.h. */
13483 /* Override any GCC internal prototype to avoid an error.
13484 Use char because int might match the return type of a GCC
13485 builtin and then its argument prototype would still apply. */
13486 #ifdef __cplusplus
13487 extern "C"
13488 #endif
13489 char frexp ();
13491 main ()
13493 return frexp ();
13495 return 0;
13497 _ACEOF
13498 for ac_lib in '' m; do
13499 if test -z "$ac_lib"; then
13500 ac_res="none required"
13501 else
13502 ac_res=-l$ac_lib
13503 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13505 if ac_fn_c_try_link "$LINENO"; then :
13506 ac_cv_search_frexp=$ac_res
13508 rm -f core conftest.err conftest.$ac_objext \
13509 conftest$ac_exeext
13510 if ${ac_cv_search_frexp+:} false; then :
13511 break
13513 done
13514 if ${ac_cv_search_frexp+:} false; then :
13516 else
13517 ac_cv_search_frexp=no
13519 rm conftest.$ac_ext
13520 LIBS=$ac_func_search_save_LIBS
13522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_frexp" >&5
13523 $as_echo "$ac_cv_search_frexp" >&6; }
13524 ac_res=$ac_cv_search_frexp
13525 if test "$ac_res" != no; then :
13526 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
13533 $as_echo_n "checking for LC_MESSAGES... " >&6; }
13534 if ${am_cv_val_LC_MESSAGES+:} false; then :
13535 $as_echo_n "(cached) " >&6
13536 else
13537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13538 /* end confdefs.h. */
13539 #include <locale.h>
13541 main ()
13543 return LC_MESSAGES
13545 return 0;
13547 _ACEOF
13548 if ac_fn_c_try_link "$LINENO"; then :
13549 am_cv_val_LC_MESSAGES=yes
13550 else
13551 am_cv_val_LC_MESSAGES=no
13553 rm -f core conftest.err conftest.$ac_objext \
13554 conftest$ac_exeext conftest.$ac_ext
13556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
13557 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
13558 if test $am_cv_val_LC_MESSAGES = yes; then
13560 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
13565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a known getopt prototype in unistd.h" >&5
13566 $as_echo_n "checking for a known getopt prototype in unistd.h... " >&6; }
13567 if ${bu_cv_decl_getopt_unistd_h+:} false; then :
13568 $as_echo_n "(cached) " >&6
13569 else
13570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13571 /* end confdefs.h. */
13572 #include <unistd.h>
13574 main ()
13576 extern int getopt (int, char *const*, const char *);
13578 return 0;
13580 _ACEOF
13581 if ac_fn_c_try_compile "$LINENO"; then :
13582 bu_cv_decl_getopt_unistd_h=yes
13583 else
13584 bu_cv_decl_getopt_unistd_h=no
13586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bu_cv_decl_getopt_unistd_h" >&5
13590 $as_echo "$bu_cv_decl_getopt_unistd_h" >&6; }
13591 if test $bu_cv_decl_getopt_unistd_h = yes; then
13593 $as_echo "#define HAVE_DECL_GETOPT 1" >>confdefs.h
13597 # Under Next 3.2 <utime.h> apparently does not define struct utimbuf
13598 # by default.
13599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utime.h" >&5
13600 $as_echo_n "checking for utime.h... " >&6; }
13601 if ${bu_cv_header_utime_h+:} false; then :
13602 $as_echo_n "(cached) " >&6
13603 else
13604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13605 /* end confdefs.h. */
13606 #include <sys/types.h>
13607 #ifdef HAVE_TIME_H
13608 #include <time.h>
13609 #endif
13610 #include <utime.h>
13612 main ()
13614 struct utimbuf s;
13616 return 0;
13618 _ACEOF
13619 if ac_fn_c_try_compile "$LINENO"; then :
13620 bu_cv_header_utime_h=yes
13621 else
13622 bu_cv_header_utime_h=no
13624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bu_cv_header_utime_h" >&5
13628 $as_echo "$bu_cv_header_utime_h" >&6; }
13629 if test $bu_cv_header_utime_h = yes; then
13631 $as_echo "#define HAVE_GOOD_UTIME_H 1" >>confdefs.h
13635 ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
13636 if test "x$ac_cv_have_decl_asprintf" = xyes; then :
13637 ac_have_decl=1
13638 else
13639 ac_have_decl=0
13642 cat >>confdefs.h <<_ACEOF
13643 #define HAVE_DECL_ASPRINTF $ac_have_decl
13644 _ACEOF
13645 ac_fn_c_check_decl "$LINENO" "environ" "ac_cv_have_decl_environ" "$ac_includes_default"
13646 if test "x$ac_cv_have_decl_environ" = xyes; then :
13647 ac_have_decl=1
13648 else
13649 ac_have_decl=0
13652 cat >>confdefs.h <<_ACEOF
13653 #define HAVE_DECL_ENVIRON $ac_have_decl
13654 _ACEOF
13655 ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
13656 if test "x$ac_cv_have_decl_getc_unlocked" = xyes; then :
13657 ac_have_decl=1
13658 else
13659 ac_have_decl=0
13662 cat >>confdefs.h <<_ACEOF
13663 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
13664 _ACEOF
13665 ac_fn_c_check_decl "$LINENO" "sbrk" "ac_cv_have_decl_sbrk" "$ac_includes_default"
13666 if test "x$ac_cv_have_decl_sbrk" = xyes; then :
13667 ac_have_decl=1
13668 else
13669 ac_have_decl=0
13672 cat >>confdefs.h <<_ACEOF
13673 #define HAVE_DECL_SBRK $ac_have_decl
13674 _ACEOF
13675 ac_fn_c_check_decl "$LINENO" "stpcpy" "ac_cv_have_decl_stpcpy" "$ac_includes_default"
13676 if test "x$ac_cv_have_decl_stpcpy" = xyes; then :
13677 ac_have_decl=1
13678 else
13679 ac_have_decl=0
13682 cat >>confdefs.h <<_ACEOF
13683 #define HAVE_DECL_STPCPY $ac_have_decl
13684 _ACEOF
13685 ac_fn_c_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default"
13686 if test "x$ac_cv_have_decl_strnlen" = xyes; then :
13687 ac_have_decl=1
13688 else
13689 ac_have_decl=0
13692 cat >>confdefs.h <<_ACEOF
13693 #define HAVE_DECL_STRNLEN $ac_have_decl
13694 _ACEOF
13697 # Link in zlib if we can. This allows us to read compressed debug
13698 # sections. This is used only by readelf.c (objdump uses bfd for
13699 # reading compressed sections).
13701 # Use the system's zlib library.
13702 zlibdir="-L\$(top_builddir)/../zlib"
13703 zlibinc="-I\$(top_srcdir)/../zlib"
13705 # Check whether --with-system-zlib was given.
13706 if test "${with_system_zlib+set}" = set; then :
13707 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
13708 zlibdir=
13709 zlibinc=
13719 case "${host}" in
13720 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
13722 $as_echo "#define USE_BINARY_FOPEN 1" >>confdefs.h
13724 esac
13726 # target-specific stuff:
13728 # Canonicalize the secondary target names.
13729 if test -n "$enable_targets"; then
13730 for targ in `echo $enable_targets | sed 's/,/ /g'`
13732 result=`$ac_config_sub $targ 2>/dev/null`
13733 if test -n "$result"; then
13734 canon_targets="$canon_targets $result"
13735 else
13736 # Allow targets that config.sub doesn't recognize, like "all".
13737 canon_targets="$canon_targets $targ"
13739 done
13742 ac_fn_c_check_header_mongrel "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default"
13743 if test "x$ac_cv_header_iconv_h" = xyes; then :
13749 if test "X$prefix" = "XNONE"; then
13750 acl_final_prefix="$ac_default_prefix"
13751 else
13752 acl_final_prefix="$prefix"
13754 if test "X$exec_prefix" = "XNONE"; then
13755 acl_final_exec_prefix='${prefix}'
13756 else
13757 acl_final_exec_prefix="$exec_prefix"
13759 acl_save_prefix="$prefix"
13760 prefix="$acl_final_prefix"
13761 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
13762 prefix="$acl_save_prefix"
13765 # Check whether --with-gnu-ld was given.
13766 if test "${with_gnu_ld+set}" = set; then :
13767 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13768 else
13769 with_gnu_ld=no
13772 # Prepare PATH_SEPARATOR.
13773 # The user is always right.
13774 if test "${PATH_SEPARATOR+set}" != set; then
13775 echo "#! /bin/sh" >conf$$.sh
13776 echo "exit 0" >>conf$$.sh
13777 chmod +x conf$$.sh
13778 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13779 PATH_SEPARATOR=';'
13780 else
13781 PATH_SEPARATOR=:
13783 rm -f conf$$.sh
13785 ac_prog=ld
13786 if test "$GCC" = yes; then
13787 # Check if gcc -print-prog-name=ld gives a path.
13788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
13789 $as_echo_n "checking for ld used by GCC... " >&6; }
13790 case $host in
13791 *-*-mingw*)
13792 # gcc leaves a trailing carriage return which upsets mingw
13793 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13795 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13796 esac
13797 case $ac_prog in
13798 # Accept absolute paths.
13799 [\\/]* | [A-Za-z]:[\\/]*)
13800 re_direlt='/[^/][^/]*/\.\./'
13801 # Canonicalize the path of ld
13802 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
13803 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
13804 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
13805 done
13806 test -z "$LD" && LD="$ac_prog"
13809 # If it fails, then pretend we aren't using GCC.
13810 ac_prog=ld
13813 # If it is relative, then search for the first ld in PATH.
13814 with_gnu_ld=unknown
13816 esac
13817 elif test "$with_gnu_ld" = yes; then
13818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13819 $as_echo_n "checking for GNU ld... " >&6; }
13820 else
13821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13822 $as_echo_n "checking for non-GNU ld... " >&6; }
13824 if ${acl_cv_path_LD+:} false; then :
13825 $as_echo_n "(cached) " >&6
13826 else
13827 if test -z "$LD"; then
13828 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
13829 for ac_dir in $PATH; do
13830 test -z "$ac_dir" && ac_dir=.
13831 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13832 acl_cv_path_LD="$ac_dir/$ac_prog"
13833 # Check to see if the program is GNU ld. I'd rather use --version,
13834 # but apparently some GNU ld's only accept -v.
13835 # Break only if it was the GNU/non-GNU ld that we prefer.
13836 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
13837 test "$with_gnu_ld" != no && break
13838 else
13839 test "$with_gnu_ld" != yes && break
13842 done
13843 IFS="$ac_save_ifs"
13844 else
13845 acl_cv_path_LD="$LD" # Let the user override the test with a path.
13849 LD="$acl_cv_path_LD"
13850 if test -n "$LD"; then
13851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13852 $as_echo "$LD" >&6; }
13853 else
13854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13855 $as_echo "no" >&6; }
13857 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13859 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13860 if ${acl_cv_prog_gnu_ld+:} false; then :
13861 $as_echo_n "(cached) " >&6
13862 else
13863 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
13864 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
13865 acl_cv_prog_gnu_ld=yes
13866 else
13867 acl_cv_prog_gnu_ld=no
13870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
13871 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
13872 with_gnu_ld=$acl_cv_prog_gnu_ld
13876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
13877 $as_echo_n "checking for shared library run path origin... " >&6; }
13878 if ${acl_cv_rpath+:} false; then :
13879 $as_echo_n "(cached) " >&6
13880 else
13882 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
13883 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
13884 . ./conftest.sh
13885 rm -f ./conftest.sh
13886 acl_cv_rpath=done
13889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
13890 $as_echo "$acl_cv_rpath" >&6; }
13891 wl="$acl_cv_wl"
13892 libext="$acl_cv_libext"
13893 shlibext="$acl_cv_shlibext"
13894 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
13895 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
13896 hardcode_direct="$acl_cv_hardcode_direct"
13897 hardcode_minus_L="$acl_cv_hardcode_minus_L"
13898 # Check whether --enable-rpath was given.
13899 if test "${enable_rpath+set}" = set; then :
13900 enableval=$enable_rpath; :
13901 else
13902 enable_rpath=yes
13912 use_additional=yes
13914 acl_save_prefix="$prefix"
13915 prefix="$acl_final_prefix"
13916 acl_save_exec_prefix="$exec_prefix"
13917 exec_prefix="$acl_final_exec_prefix"
13919 eval additional_includedir=\"$includedir\"
13920 eval additional_libdir=\"$libdir\"
13922 exec_prefix="$acl_save_exec_prefix"
13923 prefix="$acl_save_prefix"
13926 # Check whether --with-libiconv-prefix was given.
13927 if test "${with_libiconv_prefix+set}" = set; then :
13928 withval=$with_libiconv_prefix;
13929 if test "X$withval" = "Xno"; then
13930 use_additional=no
13931 else
13932 if test "X$withval" = "X"; then
13934 acl_save_prefix="$prefix"
13935 prefix="$acl_final_prefix"
13936 acl_save_exec_prefix="$exec_prefix"
13937 exec_prefix="$acl_final_exec_prefix"
13939 eval additional_includedir=\"$includedir\"
13940 eval additional_libdir=\"$libdir\"
13942 exec_prefix="$acl_save_exec_prefix"
13943 prefix="$acl_save_prefix"
13945 else
13946 additional_includedir="$withval/include"
13947 additional_libdir="$withval/lib"
13954 # Check whether --with-libiconv-type was given.
13955 if test "${with_libiconv_type+set}" = set; then :
13956 withval=$with_libiconv_type; with_libiconv_type=$withval
13957 else
13958 with_libiconv_type=auto
13961 lib_type=`eval echo \$with_libiconv_type`
13963 LIBICONV=
13964 LTLIBICONV=
13965 INCICONV=
13966 rpathdirs=
13967 ltrpathdirs=
13968 names_already_handled=
13969 names_next_round='iconv '
13970 while test -n "$names_next_round"; do
13971 names_this_round="$names_next_round"
13972 names_next_round=
13973 for name in $names_this_round; do
13974 already_handled=
13975 for n in $names_already_handled; do
13976 if test "$n" = "$name"; then
13977 already_handled=yes
13978 break
13980 done
13981 if test -z "$already_handled"; then
13982 names_already_handled="$names_already_handled $name"
13983 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
13984 eval value=\"\$HAVE_LIB$uppername\"
13985 if test -n "$value"; then
13986 if test "$value" = yes; then
13987 eval value=\"\$LIB$uppername\"
13988 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
13989 eval value=\"\$LTLIB$uppername\"
13990 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
13991 else
13994 else
13995 found_dir=
13996 found_la=
13997 found_so=
13998 found_a=
13999 if test $use_additional = yes; then
14000 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
14001 found_dir="$additional_libdir"
14002 found_so="$additional_libdir/lib$name.$shlibext"
14003 if test -f "$additional_libdir/lib$name.la"; then
14004 found_la="$additional_libdir/lib$name.la"
14006 elif test x$lib_type != xshared; then
14007 if test -f "$additional_libdir/lib$name.$libext"; then
14008 found_dir="$additional_libdir"
14009 found_a="$additional_libdir/lib$name.$libext"
14010 if test -f "$additional_libdir/lib$name.la"; then
14011 found_la="$additional_libdir/lib$name.la"
14016 if test "X$found_dir" = "X"; then
14017 for x in $LDFLAGS $LTLIBICONV; do
14019 acl_save_prefix="$prefix"
14020 prefix="$acl_final_prefix"
14021 acl_save_exec_prefix="$exec_prefix"
14022 exec_prefix="$acl_final_exec_prefix"
14023 eval x=\"$x\"
14024 exec_prefix="$acl_save_exec_prefix"
14025 prefix="$acl_save_prefix"
14027 case "$x" in
14028 -L*)
14029 dir=`echo "X$x" | sed -e 's/^X-L//'`
14030 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
14031 found_dir="$dir"
14032 found_so="$dir/lib$name.$shlibext"
14033 if test -f "$dir/lib$name.la"; then
14034 found_la="$dir/lib$name.la"
14036 elif test x$lib_type != xshared; then
14037 if test -f "$dir/lib$name.$libext"; then
14038 found_dir="$dir"
14039 found_a="$dir/lib$name.$libext"
14040 if test -f "$dir/lib$name.la"; then
14041 found_la="$dir/lib$name.la"
14046 esac
14047 if test "X$found_dir" != "X"; then
14048 break
14050 done
14052 if test "X$found_dir" != "X"; then
14053 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
14054 if test "X$found_so" != "X"; then
14055 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
14056 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14057 else
14058 haveit=
14059 for x in $ltrpathdirs; do
14060 if test "X$x" = "X$found_dir"; then
14061 haveit=yes
14062 break
14064 done
14065 if test -z "$haveit"; then
14066 ltrpathdirs="$ltrpathdirs $found_dir"
14068 if test "$hardcode_direct" = yes; then
14069 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14070 else
14071 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
14072 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14073 haveit=
14074 for x in $rpathdirs; do
14075 if test "X$x" = "X$found_dir"; then
14076 haveit=yes
14077 break
14079 done
14080 if test -z "$haveit"; then
14081 rpathdirs="$rpathdirs $found_dir"
14083 else
14084 haveit=
14085 for x in $LDFLAGS $LIBICONV; do
14087 acl_save_prefix="$prefix"
14088 prefix="$acl_final_prefix"
14089 acl_save_exec_prefix="$exec_prefix"
14090 exec_prefix="$acl_final_exec_prefix"
14091 eval x=\"$x\"
14092 exec_prefix="$acl_save_exec_prefix"
14093 prefix="$acl_save_prefix"
14095 if test "X$x" = "X-L$found_dir"; then
14096 haveit=yes
14097 break
14099 done
14100 if test -z "$haveit"; then
14101 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
14103 if test "$hardcode_minus_L" != no; then
14104 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14105 else
14106 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
14111 else
14112 if test "X$found_a" != "X"; then
14113 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
14114 else
14115 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
14118 additional_includedir=
14119 case "$found_dir" in
14120 */lib | */lib/)
14121 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
14122 additional_includedir="$basedir/include"
14124 esac
14125 if test "X$additional_includedir" != "X"; then
14126 if test "X$additional_includedir" != "X/usr/include"; then
14127 haveit=
14128 if test "X$additional_includedir" = "X/usr/local/include"; then
14129 if test -n "$GCC"; then
14130 case $host_os in
14131 linux*) haveit=yes;;
14132 esac
14135 if test -z "$haveit"; then
14136 for x in $CPPFLAGS $INCICONV; do
14138 acl_save_prefix="$prefix"
14139 prefix="$acl_final_prefix"
14140 acl_save_exec_prefix="$exec_prefix"
14141 exec_prefix="$acl_final_exec_prefix"
14142 eval x=\"$x\"
14143 exec_prefix="$acl_save_exec_prefix"
14144 prefix="$acl_save_prefix"
14146 if test "X$x" = "X-I$additional_includedir"; then
14147 haveit=yes
14148 break
14150 done
14151 if test -z "$haveit"; then
14152 if test -d "$additional_includedir"; then
14153 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
14159 if test -n "$found_la"; then
14160 save_libdir="$libdir"
14161 case "$found_la" in
14162 */* | *\\*) . "$found_la" ;;
14163 *) . "./$found_la" ;;
14164 esac
14165 libdir="$save_libdir"
14166 for dep in $dependency_libs; do
14167 case "$dep" in
14168 -L*)
14169 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
14170 if test "X$additional_libdir" != "X/usr/lib"; then
14171 haveit=
14172 if test "X$additional_libdir" = "X/usr/local/lib"; then
14173 if test -n "$GCC"; then
14174 case $host_os in
14175 linux*) haveit=yes;;
14176 esac
14179 if test -z "$haveit"; then
14180 haveit=
14181 for x in $LDFLAGS $LIBICONV; do
14183 acl_save_prefix="$prefix"
14184 prefix="$acl_final_prefix"
14185 acl_save_exec_prefix="$exec_prefix"
14186 exec_prefix="$acl_final_exec_prefix"
14187 eval x=\"$x\"
14188 exec_prefix="$acl_save_exec_prefix"
14189 prefix="$acl_save_prefix"
14191 if test "X$x" = "X-L$additional_libdir"; then
14192 haveit=yes
14193 break
14195 done
14196 if test -z "$haveit"; then
14197 if test -d "$additional_libdir"; then
14198 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
14201 haveit=
14202 for x in $LDFLAGS $LTLIBICONV; do
14204 acl_save_prefix="$prefix"
14205 prefix="$acl_final_prefix"
14206 acl_save_exec_prefix="$exec_prefix"
14207 exec_prefix="$acl_final_exec_prefix"
14208 eval x=\"$x\"
14209 exec_prefix="$acl_save_exec_prefix"
14210 prefix="$acl_save_prefix"
14212 if test "X$x" = "X-L$additional_libdir"; then
14213 haveit=yes
14214 break
14216 done
14217 if test -z "$haveit"; then
14218 if test -d "$additional_libdir"; then
14219 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
14225 -R*)
14226 dir=`echo "X$dep" | sed -e 's/^X-R//'`
14227 if test "$enable_rpath" != no; then
14228 haveit=
14229 for x in $rpathdirs; do
14230 if test "X$x" = "X$dir"; then
14231 haveit=yes
14232 break
14234 done
14235 if test -z "$haveit"; then
14236 rpathdirs="$rpathdirs $dir"
14238 haveit=
14239 for x in $ltrpathdirs; do
14240 if test "X$x" = "X$dir"; then
14241 haveit=yes
14242 break
14244 done
14245 if test -z "$haveit"; then
14246 ltrpathdirs="$ltrpathdirs $dir"
14250 -l*)
14251 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14253 *.la)
14254 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14257 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
14258 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
14260 esac
14261 done
14263 else
14264 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
14265 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
14266 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
14267 else
14268 LIBICONV="${LIBICONV}${LIBICONV:+ }-l:lib$name.$libext"
14269 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l:lib$name.$libext"
14274 done
14275 done
14276 if test "X$rpathdirs" != "X"; then
14277 if test -n "$hardcode_libdir_separator"; then
14278 alldirs=
14279 for found_dir in $rpathdirs; do
14280 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
14281 done
14282 acl_save_libdir="$libdir"
14283 libdir="$alldirs"
14284 eval flag=\"$hardcode_libdir_flag_spec\"
14285 libdir="$acl_save_libdir"
14286 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
14287 else
14288 for found_dir in $rpathdirs; do
14289 acl_save_libdir="$libdir"
14290 libdir="$found_dir"
14291 eval flag=\"$hardcode_libdir_flag_spec\"
14292 libdir="$acl_save_libdir"
14293 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
14294 done
14297 if test "X$ltrpathdirs" != "X"; then
14298 for found_dir in $ltrpathdirs; do
14299 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
14300 done
14309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
14310 $as_echo_n "checking for iconv... " >&6; }
14311 if ${am_cv_func_iconv+:} false; then :
14312 $as_echo_n "(cached) " >&6
14313 else
14315 am_cv_func_iconv="no, consider installing GNU libiconv"
14316 am_cv_lib_iconv=no
14317 am_save_CPPFLAGS="$CPPFLAGS"
14318 CPPFLAGS="$CPPFLAGS $INCICONV"
14319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14320 /* end confdefs.h. */
14321 #include <stdlib.h>
14322 #include <iconv.h>
14324 main ()
14326 iconv_t cd = iconv_open("","");
14327 iconv(cd,NULL,NULL,NULL,NULL);
14328 iconv_close(cd);
14330 return 0;
14332 _ACEOF
14333 if ac_fn_c_try_link "$LINENO"; then :
14334 am_cv_func_iconv=yes
14336 rm -f core conftest.err conftest.$ac_objext \
14337 conftest$ac_exeext conftest.$ac_ext
14338 CPPFLAGS="$am_save_CPPFLAGS"
14340 if test "$am_cv_func_iconv" != yes && test -d ../libiconv; then
14341 for _libs in .libs _libs; do
14342 am_save_CPPFLAGS="$CPPFLAGS"
14343 am_save_LIBS="$LIBS"
14344 CPPFLAGS="$CPPFLAGS -I../libiconv/include"
14345 LIBS="$LIBS ../libiconv/lib/$_libs/libiconv.a"
14346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14347 /* end confdefs.h. */
14348 #include <stdlib.h>
14349 #include <iconv.h>
14351 main ()
14353 iconv_t cd = iconv_open("","");
14354 iconv(cd,NULL,NULL,NULL,NULL);
14355 iconv_close(cd);
14357 return 0;
14359 _ACEOF
14360 if ac_fn_c_try_link "$LINENO"; then :
14361 INCICONV="-I../libiconv/include"
14362 LIBICONV='${top_builddir}'/../libiconv/lib/$_libs/libiconv.a
14363 LTLIBICONV='${top_builddir}'/../libiconv/lib/libiconv.la
14364 am_cv_lib_iconv=yes
14365 am_cv_func_iconv=yes
14367 rm -f core conftest.err conftest.$ac_objext \
14368 conftest$ac_exeext conftest.$ac_ext
14369 CPPFLAGS="$am_save_CPPFLAGS"
14370 LIBS="$am_save_LIBS"
14371 if test "$am_cv_func_iconv" = "yes"; then
14372 break
14374 done
14377 if test "$am_cv_func_iconv" != yes; then
14378 am_save_CPPFLAGS="$CPPFLAGS"
14379 am_save_LIBS="$LIBS"
14380 CPPFLAGS="$CPPFLAGS $INCICONV"
14381 LIBS="$LIBS $LIBICONV"
14382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14383 /* end confdefs.h. */
14384 #include <stdlib.h>
14385 #include <iconv.h>
14387 main ()
14389 iconv_t cd = iconv_open("","");
14390 iconv(cd,NULL,NULL,NULL,NULL);
14391 iconv_close(cd);
14393 return 0;
14395 _ACEOF
14396 if ac_fn_c_try_link "$LINENO"; then :
14397 am_cv_lib_iconv=yes
14398 am_cv_func_iconv=yes
14400 rm -f core conftest.err conftest.$ac_objext \
14401 conftest$ac_exeext conftest.$ac_ext
14402 CPPFLAGS="$am_save_CPPFLAGS"
14403 LIBS="$am_save_LIBS"
14407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
14408 $as_echo "$am_cv_func_iconv" >&6; }
14409 if test "$am_cv_func_iconv" = yes; then
14411 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
14414 if test "$am_cv_lib_iconv" = yes; then
14416 for element in $INCICONV; do
14417 haveit=
14418 for x in $CPPFLAGS; do
14420 acl_save_prefix="$prefix"
14421 prefix="$acl_final_prefix"
14422 acl_save_exec_prefix="$exec_prefix"
14423 exec_prefix="$acl_final_exec_prefix"
14424 eval x=\"$x\"
14425 exec_prefix="$acl_save_exec_prefix"
14426 prefix="$acl_save_prefix"
14428 if test "X$x" = "X$element"; then
14429 haveit=yes
14430 break
14432 done
14433 if test -z "$haveit"; then
14434 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
14436 done
14438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
14439 $as_echo_n "checking how to link with libiconv... " >&6; }
14440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
14441 $as_echo "$LIBICONV" >&6; }
14442 else
14443 LIBICONV=
14444 LTLIBICONV=
14449 if test "$am_cv_func_iconv" = yes; then
14450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
14451 $as_echo_n "checking for iconv declaration... " >&6; }
14452 if ${am_cv_proto_iconv+:} false; then :
14453 $as_echo_n "(cached) " >&6
14454 else
14456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14457 /* end confdefs.h. */
14459 #include <stdlib.h>
14460 #include <iconv.h>
14461 extern
14462 #ifdef __cplusplus
14464 #endif
14465 #if defined(__STDC__) || defined(__cplusplus)
14466 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
14467 #else
14468 size_t iconv();
14469 #endif
14472 main ()
14476 return 0;
14478 _ACEOF
14479 if ac_fn_c_try_compile "$LINENO"; then :
14480 am_cv_proto_iconv_arg1=""
14481 else
14482 am_cv_proto_iconv_arg1="const"
14484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14485 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);"
14488 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
14489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
14490 }$am_cv_proto_iconv" >&5
14491 $as_echo "${ac_t:-
14492 }$am_cv_proto_iconv" >&6; }
14494 cat >>confdefs.h <<_ACEOF
14495 #define ICONV_CONST $am_cv_proto_iconv_arg1
14496 _ACEOF
14501 all_targets=false
14502 BUILD_SRCONV=
14503 BUILD_DLLTOOL=
14504 DLLTOOL_DEFS=
14505 DLLTOOL_DEFAULT=
14506 BUILD_WINDRES=
14507 BUILD_WINDMC=
14508 BUILD_DLLWRAP=
14509 BUILD_MISC=
14510 BUILD_INSTALL_MISC=
14511 OBJDUMP_DEFS=
14512 OBJDUMP_PRIVATE_VECTORS=
14513 OBJDUMP_PRIVATE_OFILES=
14514 od_vectors=
14516 for targ in $target $canon_targets
14518 if test "x$targ" = "xall"; then
14519 all_targets=true
14520 BUILD_SRCONV='$(SRCONV_PROG)'
14521 BUILD_MISC="${BUILD_MISC} "'bin2c$(EXEEXT_FOR_BUILD)'
14522 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
14523 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
14524 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
14525 if test -z "$DLLTOOL_DEFAULT"; then
14526 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386"
14528 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
14529 BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
14530 od_vectors="$od_vectors objdump_private_desc_xcoff"
14531 else
14532 case $targ in
14533 *-*-hms*) BUILD_SRCONV='$(SRCONV_PROG)' ;;
14534 esac
14536 case $targ in
14537 arm-wince-pe* | arm-*-wince | arm*-*-cegcc* | arm*-*-mingw32ce*)
14538 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
14539 if test -z "$DLLTOOL_DEFAULT"; then
14540 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM_WINCE"
14542 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM_WINCE -DDLLTOOL_ARM"
14543 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
14544 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
14546 arm-*-pe*)
14547 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
14548 if test -z "$DLLTOOL_DEFAULT"; then
14549 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM"
14551 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM"
14552 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
14553 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
14555 x86_64-*-mingw* | x86_64-*-cygwin*)
14556 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
14557 if test -z "$DLLTOOL_DEFAULT"; then
14558 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MX86_64"
14560 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MX86_64"
14561 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
14562 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
14563 BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
14565 i[3-7]86-*-pe* | i[3-7]86-*-cygwin* | i[3-7]86-*-mingw32**)
14566 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
14567 if test -z "$DLLTOOL_DEFAULT"; then
14568 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386"
14570 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
14571 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
14572 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
14573 BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
14575 i[3-7]86-*-interix)
14576 BUILD_DLLTOOL='$(DLLTOOL_PROG)'
14577 if test -z "$DLLTOOL_DEFAULT"; then
14578 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386"
14580 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
14582 powerpc*-aix5.[01])
14584 powerpc*-aix[5-9].*)
14585 OBJDUMP_DEFS="-DAIX_WEAK_SUPPORT"
14587 powerpc*-*-linux* | powerpc*-*-elf* | powerpc*-*-eabi*)
14588 case "$BUILD_INSTALL_MISC" in
14589 *embedspu*) ;;
14590 *) BUILD_INSTALL_MISC="${BUILD_INSTALL_MISC} embedspu"
14591 esac
14593 sh*-*-pe)
14594 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
14595 if test -z "$DLLTOOL_DEFAULT"; then
14596 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_SH"
14598 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_SH"
14599 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
14600 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
14602 spu-*-*)
14603 BUILD_MISC="${BUILD_MISC} "'bin2c$(EXEEXT_FOR_BUILD)'
14605 mips*-*-pe)
14606 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
14607 if test -z "$DLLTOOL_DEFAULT"; then
14608 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MIPS"
14610 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MIPS"
14611 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
14612 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
14614 mcore-*-pe)
14615 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
14616 if test -z "$DLLTOOL_DEFAULT"; then
14617 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MCORE"
14619 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MCORE"
14620 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
14621 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
14623 mcore-*-elf)
14624 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
14625 if test -z "$DLLTOOL_DEFAULT"; then
14626 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MCORE_ELF"
14628 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MCORE_ELF"
14630 mep-*)
14631 OBJDUMP_DEFS="-DSKIP_ZEROES=256 -DSKIP_ZEROES_AT_END=0"
14633 esac
14635 # Add objdump private vectors.
14636 case $targ in
14637 avr-*-*)
14638 od_vectors="$od_vectors objdump_private_desc_elf32_avr"
14640 powerpc*-*-aix* | rs6000-*-aix*)
14641 od_vectors="$od_vectors objdump_private_desc_xcoff"
14643 *-*-darwin*)
14644 od_vectors="$od_vectors objdump_private_desc_mach_o"
14646 esac
14648 done
14650 # Uniq objdump private vector, build objdump target ofiles.
14651 od_files=
14652 f=""
14653 for i in $od_vectors ; do
14654 case " $f " in
14655 *" $i "*) ;;
14657 f="$f $i"
14658 OBJDUMP_PRIVATE_VECTORS="$OBJDUMP_PRIVATE_VECTORS &$i,"
14659 case $i in
14660 objdump_private_desc_elf32_avr)
14661 od_files="$od_files od-elf32_avr" ;;
14662 objdump_private_desc_xcoff)
14663 od_files="$od_files od-xcoff" ;;
14664 objdump_private_desc_mach_o)
14665 od_files="$od_files od-macho" ;;
14666 *) as_fn_error $? "*** unknown private vector $i" "$LINENO" 5 ;;
14667 esac
14669 esac
14670 done
14672 # Uniq objdump target ofiles
14673 f=""
14674 for i in $od_files ; do
14675 case " $f " in
14676 *" $i "*) ;;
14678 f="$f $i"
14679 OBJDUMP_PRIVATE_OFILES="$OBJDUMP_PRIVATE_OFILES $i.$objext"
14681 esac
14682 done
14684 DLLTOOL_DEFS="$DLLTOOL_DEFS $DLLTOOL_DEFAULT"
14686 if test "${with_windres+set}" = set; then
14687 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
14690 if test "${with_windmc+set}" = set; then
14691 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
14694 OBJDUMP_DEFS="${OBJDUMP_DEFS} -DOBJDUMP_PRIVATE_VECTORS=\"${OBJDUMP_PRIVATE_VECTORS}\""
14708 cat >>confdefs.h <<_ACEOF
14709 #define TARGET "asxxxx"
14710 _ACEOF
14713 targ=$target
14714 . $srcdir/../bfd/config.bfd
14715 if test "x$targ_underscore" = "xyes"; then
14716 UNDERSCORE=1
14717 else
14718 UNDERSCORE=0
14721 cat >>confdefs.h <<_ACEOF
14722 #define TARGET_PREPENDS_UNDERSCORE $UNDERSCORE
14723 _ACEOF
14726 # Emulation
14727 targ=$target
14728 . ${srcdir}/configure.tgt
14729 EMULATION=$targ_emul
14730 EMULATION_VECTOR=$targ_emul_vector
14735 # Required for html and install-html
14741 ac_config_files="$ac_config_files Makefile"
14743 cat >confcache <<\_ACEOF
14744 # This file is a shell script that caches the results of configure
14745 # tests run on this system so they can be shared between configure
14746 # scripts and configure runs, see configure's option --config-cache.
14747 # It is not useful on other systems. If it contains results you don't
14748 # want to keep, you may remove or edit it.
14750 # config.status only pays attention to the cache file if you give it
14751 # the --recheck option to rerun configure.
14753 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14754 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14755 # following values.
14757 _ACEOF
14759 # The following way of writing the cache mishandles newlines in values,
14760 # but we know of no workaround that is simple, portable, and efficient.
14761 # So, we kill variables containing newlines.
14762 # Ultrix sh set writes to stderr and can't be redirected directly,
14763 # and sets the high bit in the cache file unless we assign to the vars.
14765 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14766 eval ac_val=\$$ac_var
14767 case $ac_val in #(
14768 *${as_nl}*)
14769 case $ac_var in #(
14770 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14771 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14772 esac
14773 case $ac_var in #(
14774 _ | IFS | as_nl) ;; #(
14775 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14776 *) { eval $ac_var=; unset $ac_var;} ;;
14777 esac ;;
14778 esac
14779 done
14781 (set) 2>&1 |
14782 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14783 *${as_nl}ac_space=\ *)
14784 # `set' does not quote correctly, so add quotes: double-quote
14785 # substitution turns \\\\ into \\, and sed turns \\ into \.
14786 sed -n \
14787 "s/'/'\\\\''/g;
14788 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14789 ;; #(
14791 # `set' quotes correctly as required by POSIX, so do not add quotes.
14792 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14794 esac |
14795 sort
14797 sed '
14798 /^ac_cv_env_/b end
14799 t clear
14800 :clear
14801 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14802 t end
14803 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14804 :end' >>confcache
14805 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14806 if test -w "$cache_file"; then
14807 if test "x$cache_file" != "x/dev/null"; then
14808 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14809 $as_echo "$as_me: updating cache $cache_file" >&6;}
14810 if test ! -f "$cache_file" || test -h "$cache_file"; then
14811 cat confcache >"$cache_file"
14812 else
14813 case $cache_file in #(
14814 */* | ?:*)
14815 mv -f confcache "$cache_file"$$ &&
14816 mv -f "$cache_file"$$ "$cache_file" ;; #(
14818 mv -f confcache "$cache_file" ;;
14819 esac
14822 else
14823 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14824 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14827 rm -f confcache
14829 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14830 # Let make expand exec_prefix.
14831 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14833 DEFS=-DHAVE_CONFIG_H
14835 ac_libobjs=
14836 ac_ltlibobjs=
14838 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14839 # 1. Remove the extension, and $U if already installed.
14840 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14841 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14842 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14843 # will be set to the directory where LIBOBJS objects are built.
14844 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14845 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14846 done
14847 LIBOBJS=$ac_libobjs
14849 LTLIBOBJS=$ac_ltlibobjs
14852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
14853 $as_echo_n "checking that generated files are newer than configure... " >&6; }
14854 if test -n "$am_sleep_pid"; then
14855 # Hide warnings about reused PIDs.
14856 wait $am_sleep_pid 2>/dev/null
14858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
14859 $as_echo "done" >&6; }
14860 if test -n "$EXEEXT"; then
14861 am__EXEEXT_TRUE=
14862 am__EXEEXT_FALSE='#'
14863 else
14864 am__EXEEXT_TRUE='#'
14865 am__EXEEXT_FALSE=
14868 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14869 as_fn_error $? "conditional \"AMDEP\" was never defined.
14870 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14872 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14873 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14874 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14876 if test -z "${ENABLE_LIBCTF_TRUE}" && test -z "${ENABLE_LIBCTF_FALSE}"; then
14877 as_fn_error $? "conditional \"ENABLE_LIBCTF\" was never defined.
14878 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14880 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14881 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
14882 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14884 if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
14885 as_fn_error $? "conditional \"GENINSRC_NEVER\" was never defined.
14886 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14889 : "${CONFIG_STATUS=./config.status}"
14890 ac_write_fail=0
14891 ac_clean_files_save=$ac_clean_files
14892 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14893 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14894 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14895 as_write_fail=0
14896 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14897 #! $SHELL
14898 # Generated by $as_me.
14899 # Run this file to recreate the current configuration.
14900 # Compiler output produced by configure, useful for debugging
14901 # configure, is in config.log if it exists.
14903 debug=false
14904 ac_cs_recheck=false
14905 ac_cs_silent=false
14907 SHELL=\${CONFIG_SHELL-$SHELL}
14908 export SHELL
14909 _ASEOF
14910 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14911 ## -------------------- ##
14912 ## M4sh Initialization. ##
14913 ## -------------------- ##
14915 # Be more Bourne compatible
14916 DUALCASE=1; export DUALCASE # for MKS sh
14917 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14918 emulate sh
14919 NULLCMD=:
14920 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14921 # is contrary to our usage. Disable this feature.
14922 alias -g '${1+"$@"}'='"$@"'
14923 setopt NO_GLOB_SUBST
14924 else
14925 case `(set -o) 2>/dev/null` in #(
14926 *posix*) :
14927 set -o posix ;; #(
14928 *) :
14930 esac
14934 as_nl='
14936 export as_nl
14937 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14938 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14939 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14940 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14941 # Prefer a ksh shell builtin over an external printf program on Solaris,
14942 # but without wasting forks for bash or zsh.
14943 if test -z "$BASH_VERSION$ZSH_VERSION" \
14944 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14945 as_echo='print -r --'
14946 as_echo_n='print -rn --'
14947 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14948 as_echo='printf %s\n'
14949 as_echo_n='printf %s'
14950 else
14951 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14952 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14953 as_echo_n='/usr/ucb/echo -n'
14954 else
14955 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14956 as_echo_n_body='eval
14957 arg=$1;
14958 case $arg in #(
14959 *"$as_nl"*)
14960 expr "X$arg" : "X\\(.*\\)$as_nl";
14961 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14962 esac;
14963 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14965 export as_echo_n_body
14966 as_echo_n='sh -c $as_echo_n_body as_echo'
14968 export as_echo_body
14969 as_echo='sh -c $as_echo_body as_echo'
14972 # The user is always right.
14973 if test "${PATH_SEPARATOR+set}" != set; then
14974 PATH_SEPARATOR=:
14975 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14976 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14977 PATH_SEPARATOR=';'
14982 # IFS
14983 # We need space, tab and new line, in precisely that order. Quoting is
14984 # there to prevent editors from complaining about space-tab.
14985 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14986 # splitting by setting IFS to empty value.)
14987 IFS=" "" $as_nl"
14989 # Find who we are. Look in the path if we contain no directory separator.
14990 as_myself=
14991 case $0 in #((
14992 *[\\/]* ) as_myself=$0 ;;
14993 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14994 for as_dir in $PATH
14996 IFS=$as_save_IFS
14997 test -z "$as_dir" && as_dir=.
14998 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14999 done
15000 IFS=$as_save_IFS
15003 esac
15004 # We did not find ourselves, most probably we were run as `sh COMMAND'
15005 # in which case we are not to be found in the path.
15006 if test "x$as_myself" = x; then
15007 as_myself=$0
15009 if test ! -f "$as_myself"; then
15010 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15011 exit 1
15014 # Unset variables that we do not need and which cause bugs (e.g. in
15015 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15016 # suppresses any "Segmentation fault" message there. '((' could
15017 # trigger a bug in pdksh 5.2.14.
15018 for as_var in BASH_ENV ENV MAIL MAILPATH
15019 do eval test x\${$as_var+set} = xset \
15020 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15021 done
15022 PS1='$ '
15023 PS2='> '
15024 PS4='+ '
15026 # NLS nuisances.
15027 LC_ALL=C
15028 export LC_ALL
15029 LANGUAGE=C
15030 export LANGUAGE
15032 # CDPATH.
15033 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15036 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15037 # ----------------------------------------
15038 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15039 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15040 # script with STATUS, using 1 if that was 0.
15041 as_fn_error ()
15043 as_status=$1; test $as_status -eq 0 && as_status=1
15044 if test "$4"; then
15045 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15046 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15048 $as_echo "$as_me: error: $2" >&2
15049 as_fn_exit $as_status
15050 } # as_fn_error
15053 # as_fn_set_status STATUS
15054 # -----------------------
15055 # Set $? to STATUS, without forking.
15056 as_fn_set_status ()
15058 return $1
15059 } # as_fn_set_status
15061 # as_fn_exit STATUS
15062 # -----------------
15063 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15064 as_fn_exit ()
15066 set +e
15067 as_fn_set_status $1
15068 exit $1
15069 } # as_fn_exit
15071 # as_fn_unset VAR
15072 # ---------------
15073 # Portably unset VAR.
15074 as_fn_unset ()
15076 { eval $1=; unset $1;}
15078 as_unset=as_fn_unset
15079 # as_fn_append VAR VALUE
15080 # ----------------------
15081 # Append the text in VALUE to the end of the definition contained in VAR. Take
15082 # advantage of any shell optimizations that allow amortized linear growth over
15083 # repeated appends, instead of the typical quadratic growth present in naive
15084 # implementations.
15085 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15086 eval 'as_fn_append ()
15088 eval $1+=\$2
15090 else
15091 as_fn_append ()
15093 eval $1=\$$1\$2
15095 fi # as_fn_append
15097 # as_fn_arith ARG...
15098 # ------------------
15099 # Perform arithmetic evaluation on the ARGs, and store the result in the
15100 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15101 # must be portable across $(()) and expr.
15102 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15103 eval 'as_fn_arith ()
15105 as_val=$(( $* ))
15107 else
15108 as_fn_arith ()
15110 as_val=`expr "$@" || test $? -eq 1`
15112 fi # as_fn_arith
15115 if expr a : '\(a\)' >/dev/null 2>&1 &&
15116 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15117 as_expr=expr
15118 else
15119 as_expr=false
15122 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15123 as_basename=basename
15124 else
15125 as_basename=false
15128 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15129 as_dirname=dirname
15130 else
15131 as_dirname=false
15134 as_me=`$as_basename -- "$0" ||
15135 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15136 X"$0" : 'X\(//\)$' \| \
15137 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15138 $as_echo X/"$0" |
15139 sed '/^.*\/\([^/][^/]*\)\/*$/{
15140 s//\1/
15143 /^X\/\(\/\/\)$/{
15144 s//\1/
15147 /^X\/\(\/\).*/{
15148 s//\1/
15151 s/.*/./; q'`
15153 # Avoid depending upon Character Ranges.
15154 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15155 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15156 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15157 as_cr_digits='0123456789'
15158 as_cr_alnum=$as_cr_Letters$as_cr_digits
15160 ECHO_C= ECHO_N= ECHO_T=
15161 case `echo -n x` in #(((((
15162 -n*)
15163 case `echo 'xy\c'` in
15164 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15165 xy) ECHO_C='\c';;
15166 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15167 ECHO_T=' ';;
15168 esac;;
15170 ECHO_N='-n';;
15171 esac
15173 rm -f conf$$ conf$$.exe conf$$.file
15174 if test -d conf$$.dir; then
15175 rm -f conf$$.dir/conf$$.file
15176 else
15177 rm -f conf$$.dir
15178 mkdir conf$$.dir 2>/dev/null
15180 if (echo >conf$$.file) 2>/dev/null; then
15181 if ln -s conf$$.file conf$$ 2>/dev/null; then
15182 as_ln_s='ln -s'
15183 # ... but there are two gotchas:
15184 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15185 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15186 # In both cases, we have to default to `cp -pR'.
15187 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15188 as_ln_s='cp -pR'
15189 elif ln conf$$.file conf$$ 2>/dev/null; then
15190 as_ln_s=ln
15191 else
15192 as_ln_s='cp -pR'
15194 else
15195 as_ln_s='cp -pR'
15197 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15198 rmdir conf$$.dir 2>/dev/null
15201 # as_fn_mkdir_p
15202 # -------------
15203 # Create "$as_dir" as a directory, including parents if necessary.
15204 as_fn_mkdir_p ()
15207 case $as_dir in #(
15208 -*) as_dir=./$as_dir;;
15209 esac
15210 test -d "$as_dir" || eval $as_mkdir_p || {
15211 as_dirs=
15212 while :; do
15213 case $as_dir in #(
15214 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15215 *) as_qdir=$as_dir;;
15216 esac
15217 as_dirs="'$as_qdir' $as_dirs"
15218 as_dir=`$as_dirname -- "$as_dir" ||
15219 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15220 X"$as_dir" : 'X\(//\)[^/]' \| \
15221 X"$as_dir" : 'X\(//\)$' \| \
15222 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15223 $as_echo X"$as_dir" |
15224 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15225 s//\1/
15228 /^X\(\/\/\)[^/].*/{
15229 s//\1/
15232 /^X\(\/\/\)$/{
15233 s//\1/
15236 /^X\(\/\).*/{
15237 s//\1/
15240 s/.*/./; q'`
15241 test -d "$as_dir" && break
15242 done
15243 test -z "$as_dirs" || eval "mkdir $as_dirs"
15244 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15247 } # as_fn_mkdir_p
15248 if mkdir -p . 2>/dev/null; then
15249 as_mkdir_p='mkdir -p "$as_dir"'
15250 else
15251 test -d ./-p && rmdir ./-p
15252 as_mkdir_p=false
15256 # as_fn_executable_p FILE
15257 # -----------------------
15258 # Test if FILE is an executable regular file.
15259 as_fn_executable_p ()
15261 test -f "$1" && test -x "$1"
15262 } # as_fn_executable_p
15263 as_test_x='test -x'
15264 as_executable_p=as_fn_executable_p
15266 # Sed expression to map a string onto a valid CPP name.
15267 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15269 # Sed expression to map a string onto a valid variable name.
15270 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15273 exec 6>&1
15274 ## ----------------------------------- ##
15275 ## Main body of $CONFIG_STATUS script. ##
15276 ## ----------------------------------- ##
15277 _ASEOF
15278 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15280 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15281 # Save the log message, to keep $0 and so on meaningful, and to
15282 # report actual input values of CONFIG_FILES etc. instead of their
15283 # values after options handling.
15284 ac_log="
15285 This file was extended by binutils $as_me 2.38, which was
15286 generated by GNU Autoconf 2.69. Invocation command line was
15288 CONFIG_FILES = $CONFIG_FILES
15289 CONFIG_HEADERS = $CONFIG_HEADERS
15290 CONFIG_LINKS = $CONFIG_LINKS
15291 CONFIG_COMMANDS = $CONFIG_COMMANDS
15292 $ $0 $@
15294 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15297 _ACEOF
15299 case $ac_config_files in *"
15300 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15301 esac
15303 case $ac_config_headers in *"
15304 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15305 esac
15308 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15309 # Files that config.status was made for.
15310 config_files="$ac_config_files"
15311 config_headers="$ac_config_headers"
15312 config_commands="$ac_config_commands"
15314 _ACEOF
15316 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15317 ac_cs_usage="\
15318 \`$as_me' instantiates files and other configuration actions
15319 from templates according to the current configuration. Unless the files
15320 and actions are specified as TAGs, all are instantiated by default.
15322 Usage: $0 [OPTION]... [TAG]...
15324 -h, --help print this help, then exit
15325 -V, --version print version number and configuration settings, then exit
15326 --config print configuration, then exit
15327 -q, --quiet, --silent
15328 do not print progress messages
15329 -d, --debug don't remove temporary files
15330 --recheck update $as_me by reconfiguring in the same conditions
15331 --file=FILE[:TEMPLATE]
15332 instantiate the configuration file FILE
15333 --header=FILE[:TEMPLATE]
15334 instantiate the configuration header FILE
15336 Configuration files:
15337 $config_files
15339 Configuration headers:
15340 $config_headers
15342 Configuration commands:
15343 $config_commands
15345 Report bugs to the package provider."
15347 _ACEOF
15348 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15349 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15350 ac_cs_version="\\
15351 binutils config.status 2.38
15352 configured by $0, generated by GNU Autoconf 2.69,
15353 with options \\"\$ac_cs_config\\"
15355 Copyright (C) 2012 Free Software Foundation, Inc.
15356 This config.status script is free software; the Free Software Foundation
15357 gives unlimited permission to copy, distribute and modify it."
15359 ac_pwd='$ac_pwd'
15360 srcdir='$srcdir'
15361 INSTALL='$INSTALL'
15362 MKDIR_P='$MKDIR_P'
15363 AWK='$AWK'
15364 test -n "\$AWK" || AWK=awk
15365 _ACEOF
15367 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15368 # The default lists apply if the user does not specify any file.
15369 ac_need_defaults=:
15370 while test $# != 0
15372 case $1 in
15373 --*=?*)
15374 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15375 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15376 ac_shift=:
15378 --*=)
15379 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15380 ac_optarg=
15381 ac_shift=:
15384 ac_option=$1
15385 ac_optarg=$2
15386 ac_shift=shift
15388 esac
15390 case $ac_option in
15391 # Handling of the options.
15392 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15393 ac_cs_recheck=: ;;
15394 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15395 $as_echo "$ac_cs_version"; exit ;;
15396 --config | --confi | --conf | --con | --co | --c )
15397 $as_echo "$ac_cs_config"; exit ;;
15398 --debug | --debu | --deb | --de | --d | -d )
15399 debug=: ;;
15400 --file | --fil | --fi | --f )
15401 $ac_shift
15402 case $ac_optarg in
15403 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15404 '') as_fn_error $? "missing file argument" ;;
15405 esac
15406 as_fn_append CONFIG_FILES " '$ac_optarg'"
15407 ac_need_defaults=false;;
15408 --header | --heade | --head | --hea )
15409 $ac_shift
15410 case $ac_optarg in
15411 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15412 esac
15413 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15414 ac_need_defaults=false;;
15415 --he | --h)
15416 # Conflict between --help and --header
15417 as_fn_error $? "ambiguous option: \`$1'
15418 Try \`$0 --help' for more information.";;
15419 --help | --hel | -h )
15420 $as_echo "$ac_cs_usage"; exit ;;
15421 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15422 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15423 ac_cs_silent=: ;;
15425 # This is an error.
15426 -*) as_fn_error $? "unrecognized option: \`$1'
15427 Try \`$0 --help' for more information." ;;
15429 *) as_fn_append ac_config_targets " $1"
15430 ac_need_defaults=false ;;
15432 esac
15433 shift
15434 done
15436 ac_configure_extra_args=
15438 if $ac_cs_silent; then
15439 exec 6>/dev/null
15440 ac_configure_extra_args="$ac_configure_extra_args --silent"
15443 _ACEOF
15444 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15445 if \$ac_cs_recheck; then
15446 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15447 shift
15448 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15449 CONFIG_SHELL='$SHELL'
15450 export CONFIG_SHELL
15451 exec "\$@"
15454 _ACEOF
15455 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15456 exec 5>>config.log
15458 echo
15459 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15460 ## Running $as_me. ##
15461 _ASBOX
15462 $as_echo "$ac_log"
15463 } >&5
15465 _ACEOF
15466 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15468 # INIT-COMMANDS
15470 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15473 # The HP-UX ksh and POSIX shell print the target directory to stdout
15474 # if CDPATH is set.
15475 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15477 sed_quote_subst='$sed_quote_subst'
15478 double_quote_subst='$double_quote_subst'
15479 delay_variable_subst='$delay_variable_subst'
15480 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15481 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15482 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15483 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15484 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15485 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15486 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15487 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15488 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15489 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15490 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15491 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15492 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15493 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15494 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15495 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15496 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15497 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15498 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15499 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15500 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15501 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15502 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15503 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15504 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15505 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15506 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15507 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15508 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15509 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15510 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15511 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15512 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15513 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15514 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15515 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15516 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15517 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15518 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15519 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15520 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15521 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15522 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15523 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15524 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15525 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15526 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15527 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15528 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"`'
15529 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15530 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15531 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15532 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15533 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15534 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15535 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15536 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15537 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15538 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15539 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15540 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15541 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15542 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15543 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15544 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15545 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15546 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15547 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15548 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15549 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15550 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15551 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15552 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15553 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15554 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15555 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15556 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15557 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15558 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15559 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15560 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
15561 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15562 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15563 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15564 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15565 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15566 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15567 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15568 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15569 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
15570 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15571 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15572 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15573 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15574 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15575 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15576 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15577 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15578 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15579 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15580 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15581 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15582 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15583 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15584 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15585 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15586 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15587 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15588 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15589 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15590 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15591 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15592 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15593 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15594 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15595 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15596 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15597 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15598 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15599 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15601 LTCC='$LTCC'
15602 LTCFLAGS='$LTCFLAGS'
15603 compiler='$compiler_DEFAULT'
15605 # A function that is used when there is no print builtin or printf.
15606 func_fallback_echo ()
15608 eval 'cat <<_LTECHO_EOF
15610 _LTECHO_EOF'
15613 # Quote evaled strings.
15614 for var in SHELL \
15615 ECHO \
15616 SED \
15617 GREP \
15618 EGREP \
15619 FGREP \
15620 LD \
15621 NM \
15622 LN_S \
15623 lt_SP2NL \
15624 lt_NL2SP \
15625 reload_flag \
15626 OBJDUMP \
15627 deplibs_check_method \
15628 file_magic_cmd \
15629 AR \
15630 AR_FLAGS \
15631 STRIP \
15632 RANLIB \
15633 CC \
15634 CFLAGS \
15635 compiler \
15636 lt_cv_sys_global_symbol_pipe \
15637 lt_cv_sys_global_symbol_to_cdecl \
15638 lt_cv_sys_global_symbol_to_c_name_address \
15639 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15640 lt_prog_compiler_no_builtin_flag \
15641 lt_prog_compiler_wl \
15642 lt_prog_compiler_pic \
15643 lt_prog_compiler_static \
15644 lt_cv_prog_compiler_c_o \
15645 need_locks \
15646 DSYMUTIL \
15647 NMEDIT \
15648 LIPO \
15649 OTOOL \
15650 OTOOL64 \
15651 shrext_cmds \
15652 export_dynamic_flag_spec \
15653 whole_archive_flag_spec \
15654 compiler_needs_object \
15655 with_gnu_ld \
15656 allow_undefined_flag \
15657 no_undefined_flag \
15658 hardcode_libdir_flag_spec \
15659 hardcode_libdir_flag_spec_ld \
15660 hardcode_libdir_separator \
15661 fix_srcfile_path \
15662 exclude_expsyms \
15663 include_expsyms \
15664 file_list_spec \
15665 variables_saved_for_relink \
15666 libname_spec \
15667 library_names_spec \
15668 soname_spec \
15669 install_override_mode \
15670 finish_eval \
15671 old_striplib \
15672 striplib; do
15673 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15674 *[\\\\\\\`\\"\\\$]*)
15675 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15678 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15680 esac
15681 done
15683 # Double-quote double-evaled strings.
15684 for var in reload_cmds \
15685 old_postinstall_cmds \
15686 old_postuninstall_cmds \
15687 old_archive_cmds \
15688 extract_expsyms_cmds \
15689 old_archive_from_new_cmds \
15690 old_archive_from_expsyms_cmds \
15691 archive_cmds \
15692 archive_expsym_cmds \
15693 module_cmds \
15694 module_expsym_cmds \
15695 export_symbols_cmds \
15696 prelink_cmds \
15697 postinstall_cmds \
15698 postuninstall_cmds \
15699 finish_cmds \
15700 sys_lib_search_path_spec \
15701 sys_lib_dlsearch_path_spec; do
15702 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15703 *[\\\\\\\`\\"\\\$]*)
15704 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15707 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15709 esac
15710 done
15712 ac_aux_dir='$ac_aux_dir'
15713 xsi_shell='$xsi_shell'
15714 lt_shell_append='$lt_shell_append'
15716 # See if we are running on zsh, and set the options which allow our
15717 # commands through without removal of \ escapes INIT.
15718 if test -n "\${ZSH_VERSION+set}" ; then
15719 setopt NO_GLOB_SUBST
15723 PACKAGE='$PACKAGE'
15724 VERSION='$VERSION'
15725 TIMESTAMP='$TIMESTAMP'
15726 RM='$RM'
15727 ofile='$ofile'
15731 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
15732 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
15733 # from automake.
15734 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
15735 # Capture the value of LINGUAS because we need it to compute CATALOGS.
15736 LINGUAS="${LINGUAS-%UNSET%}"
15739 _ACEOF
15741 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15743 # Handling of arguments.
15744 for ac_config_target in $ac_config_targets
15746 case $ac_config_target in
15747 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15748 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15749 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
15750 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
15751 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15753 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15754 esac
15755 done
15758 # If the user did not use the arguments to specify the items to instantiate,
15759 # then the envvar interface is used. Set only those that are not.
15760 # We use the long form for the default assignment because of an extremely
15761 # bizarre bug on SunOS 4.1.3.
15762 if $ac_need_defaults; then
15763 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15764 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15765 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15768 # Have a temporary directory for convenience. Make it in the build tree
15769 # simply because there is no reason against having it here, and in addition,
15770 # creating and moving files from /tmp can sometimes cause problems.
15771 # Hook for its removal unless debugging.
15772 # Note that there is a small window in which the directory will not be cleaned:
15773 # after its creation but before its name has been assigned to `$tmp'.
15774 $debug ||
15776 tmp= ac_tmp=
15777 trap 'exit_status=$?
15778 : "${ac_tmp:=$tmp}"
15779 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15781 trap 'as_fn_exit 1' 1 2 13 15
15783 # Create a (secure) tmp directory for tmp files.
15786 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15787 test -d "$tmp"
15788 } ||
15790 tmp=./conf$$-$RANDOM
15791 (umask 077 && mkdir "$tmp")
15792 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15793 ac_tmp=$tmp
15795 # Set up the scripts for CONFIG_FILES section.
15796 # No need to generate them if there are no CONFIG_FILES.
15797 # This happens for instance with `./config.status config.h'.
15798 if test -n "$CONFIG_FILES"; then
15801 ac_cr=`echo X | tr X '\015'`
15802 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15803 # But we know of no other shell where ac_cr would be empty at this
15804 # point, so we can use a bashism as a fallback.
15805 if test "x$ac_cr" = x; then
15806 eval ac_cr=\$\'\\r\'
15808 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15809 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15810 ac_cs_awk_cr='\\r'
15811 else
15812 ac_cs_awk_cr=$ac_cr
15815 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15816 _ACEOF
15820 echo "cat >conf$$subs.awk <<_ACEOF" &&
15821 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15822 echo "_ACEOF"
15823 } >conf$$subs.sh ||
15824 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15825 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15826 ac_delim='%!_!# '
15827 for ac_last_try in false false false false false :; do
15828 . ./conf$$subs.sh ||
15829 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15831 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15832 if test $ac_delim_n = $ac_delim_num; then
15833 break
15834 elif $ac_last_try; then
15835 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15836 else
15837 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15839 done
15840 rm -f conf$$subs.sh
15842 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15843 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15844 _ACEOF
15845 sed -n '
15847 s/^/S["/; s/!.*/"]=/
15850 s/^[^!]*!//
15851 :repl
15852 t repl
15853 s/'"$ac_delim"'$//
15854 t delim
15857 s/\(.\{148\}\)..*/\1/
15858 t more1
15859 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15862 b repl
15863 :more1
15864 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15867 s/.\{148\}//
15868 t nl
15869 :delim
15871 s/\(.\{148\}\)..*/\1/
15872 t more2
15873 s/["\\]/\\&/g; s/^/"/; s/$/"/
15876 :more2
15877 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15880 s/.\{148\}//
15881 t delim
15882 ' <conf$$subs.awk | sed '
15883 /^[^""]/{
15885 s/\n//
15887 ' >>$CONFIG_STATUS || ac_write_fail=1
15888 rm -f conf$$subs.awk
15889 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15890 _ACAWK
15891 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15892 for (key in S) S_is_set[key] = 1
15893 FS = "\a"
15897 line = $ 0
15898 nfields = split(line, field, "@")
15899 substed = 0
15900 len = length(field[1])
15901 for (i = 2; i < nfields; i++) {
15902 key = field[i]
15903 keylen = length(key)
15904 if (S_is_set[key]) {
15905 value = S[key]
15906 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15907 len += length(value) + length(field[++i])
15908 substed = 1
15909 } else
15910 len += 1 + keylen
15913 print line
15916 _ACAWK
15917 _ACEOF
15918 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15919 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15920 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15921 else
15923 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15924 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15925 _ACEOF
15927 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15928 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15929 # trailing colons and then remove the whole line if VPATH becomes empty
15930 # (actually we leave an empty line to preserve line numbers).
15931 if test "x$srcdir" = x.; then
15932 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15934 s///
15935 s/^/:/
15936 s/[ ]*$/:/
15937 s/:\$(srcdir):/:/g
15938 s/:\${srcdir}:/:/g
15939 s/:@srcdir@:/:/g
15940 s/^:*//
15941 s/:*$//
15943 s/\(=[ ]*\).*/\1/
15945 s/\n//
15946 s/^[^=]*=[ ]*$//
15950 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15951 fi # test -n "$CONFIG_FILES"
15953 # Set up the scripts for CONFIG_HEADERS section.
15954 # No need to generate them if there are no CONFIG_HEADERS.
15955 # This happens for instance with `./config.status Makefile'.
15956 if test -n "$CONFIG_HEADERS"; then
15957 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15958 BEGIN {
15959 _ACEOF
15961 # Transform confdefs.h into an awk script `defines.awk', embedded as
15962 # here-document in config.status, that substitutes the proper values into
15963 # config.h.in to produce config.h.
15965 # Create a delimiter string that does not exist in confdefs.h, to ease
15966 # handling of long lines.
15967 ac_delim='%!_!# '
15968 for ac_last_try in false false :; do
15969 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15970 if test -z "$ac_tt"; then
15971 break
15972 elif $ac_last_try; then
15973 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15974 else
15975 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15977 done
15979 # For the awk script, D is an array of macro values keyed by name,
15980 # likewise P contains macro parameters if any. Preserve backslash
15981 # newline sequences.
15983 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15984 sed -n '
15985 s/.\{148\}/&'"$ac_delim"'/g
15986 t rset
15987 :rset
15988 s/^[ ]*#[ ]*define[ ][ ]*/ /
15989 t def
15991 :def
15992 s/\\$//
15993 t bsnl
15994 s/["\\]/\\&/g
15995 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15996 D["\1"]=" \3"/p
15997 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15999 :bsnl
16000 s/["\\]/\\&/g
16001 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16002 D["\1"]=" \3\\\\\\n"\\/p
16003 t cont
16004 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16005 t cont
16007 :cont
16009 s/.\{148\}/&'"$ac_delim"'/g
16010 t clear
16011 :clear
16012 s/\\$//
16013 t bsnlc
16014 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16016 :bsnlc
16017 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16018 b cont
16019 ' <confdefs.h | sed '
16020 s/'"$ac_delim"'/"\\\
16021 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16023 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16024 for (key in D) D_is_set[key] = 1
16025 FS = "\a"
16027 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16028 line = \$ 0
16029 split(line, arg, " ")
16030 if (arg[1] == "#") {
16031 defundef = arg[2]
16032 mac1 = arg[3]
16033 } else {
16034 defundef = substr(arg[1], 2)
16035 mac1 = arg[2]
16037 split(mac1, mac2, "(") #)
16038 macro = mac2[1]
16039 prefix = substr(line, 1, index(line, defundef) - 1)
16040 if (D_is_set[macro]) {
16041 # Preserve the white space surrounding the "#".
16042 print prefix "define", macro P[macro] D[macro]
16043 next
16044 } else {
16045 # Replace #undef with comments. This is necessary, for example,
16046 # in the case of _POSIX_SOURCE, which is predefined and required
16047 # on some systems where configure will not decide to define it.
16048 if (defundef == "undef") {
16049 print "/*", prefix defundef, macro, "*/"
16050 next
16054 { print }
16055 _ACAWK
16056 _ACEOF
16057 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16058 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16059 fi # test -n "$CONFIG_HEADERS"
16062 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16063 shift
16064 for ac_tag
16066 case $ac_tag in
16067 :[FHLC]) ac_mode=$ac_tag; continue;;
16068 esac
16069 case $ac_mode$ac_tag in
16070 :[FHL]*:*);;
16071 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16072 :[FH]-) ac_tag=-:-;;
16073 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16074 esac
16075 ac_save_IFS=$IFS
16076 IFS=:
16077 set x $ac_tag
16078 IFS=$ac_save_IFS
16079 shift
16080 ac_file=$1
16081 shift
16083 case $ac_mode in
16084 :L) ac_source=$1;;
16085 :[FH])
16086 ac_file_inputs=
16087 for ac_f
16089 case $ac_f in
16090 -) ac_f="$ac_tmp/stdin";;
16091 *) # Look for the file first in the build tree, then in the source tree
16092 # (if the path is not absolute). The absolute path cannot be DOS-style,
16093 # because $ac_f cannot contain `:'.
16094 test -f "$ac_f" ||
16095 case $ac_f in
16096 [\\/$]*) false;;
16097 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16098 esac ||
16099 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16100 esac
16101 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16102 as_fn_append ac_file_inputs " '$ac_f'"
16103 done
16105 # Let's still pretend it is `configure' which instantiates (i.e., don't
16106 # use $as_me), people would be surprised to read:
16107 # /* config.h. Generated by config.status. */
16108 configure_input='Generated from '`
16109 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16110 `' by configure.'
16111 if test x"$ac_file" != x-; then
16112 configure_input="$ac_file. $configure_input"
16113 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16114 $as_echo "$as_me: creating $ac_file" >&6;}
16116 # Neutralize special characters interpreted by sed in replacement strings.
16117 case $configure_input in #(
16118 *\&* | *\|* | *\\* )
16119 ac_sed_conf_input=`$as_echo "$configure_input" |
16120 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16121 *) ac_sed_conf_input=$configure_input;;
16122 esac
16124 case $ac_tag in
16125 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16126 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16127 esac
16129 esac
16131 ac_dir=`$as_dirname -- "$ac_file" ||
16132 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16133 X"$ac_file" : 'X\(//\)[^/]' \| \
16134 X"$ac_file" : 'X\(//\)$' \| \
16135 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16136 $as_echo X"$ac_file" |
16137 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16138 s//\1/
16141 /^X\(\/\/\)[^/].*/{
16142 s//\1/
16145 /^X\(\/\/\)$/{
16146 s//\1/
16149 /^X\(\/\).*/{
16150 s//\1/
16153 s/.*/./; q'`
16154 as_dir="$ac_dir"; as_fn_mkdir_p
16155 ac_builddir=.
16157 case "$ac_dir" in
16158 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16160 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16161 # A ".." for each directory in $ac_dir_suffix.
16162 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16163 case $ac_top_builddir_sub in
16164 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16165 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16166 esac ;;
16167 esac
16168 ac_abs_top_builddir=$ac_pwd
16169 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16170 # for backward compatibility:
16171 ac_top_builddir=$ac_top_build_prefix
16173 case $srcdir in
16174 .) # We are building in place.
16175 ac_srcdir=.
16176 ac_top_srcdir=$ac_top_builddir_sub
16177 ac_abs_top_srcdir=$ac_pwd ;;
16178 [\\/]* | ?:[\\/]* ) # Absolute name.
16179 ac_srcdir=$srcdir$ac_dir_suffix;
16180 ac_top_srcdir=$srcdir
16181 ac_abs_top_srcdir=$srcdir ;;
16182 *) # Relative name.
16183 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16184 ac_top_srcdir=$ac_top_build_prefix$srcdir
16185 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16186 esac
16187 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16190 case $ac_mode in
16193 # CONFIG_FILE
16196 case $INSTALL in
16197 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16198 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16199 esac
16200 ac_MKDIR_P=$MKDIR_P
16201 case $MKDIR_P in
16202 [\\/$]* | ?:[\\/]* ) ;;
16203 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16204 esac
16205 _ACEOF
16207 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16208 # If the template does not know about datarootdir, expand it.
16209 # FIXME: This hack should be removed a few years after 2.60.
16210 ac_datarootdir_hack=; ac_datarootdir_seen=
16211 ac_sed_dataroot='
16212 /datarootdir/ {
16216 /@datadir@/p
16217 /@docdir@/p
16218 /@infodir@/p
16219 /@localedir@/p
16220 /@mandir@/p'
16221 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16222 *datarootdir*) ac_datarootdir_seen=yes;;
16223 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16224 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16225 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16226 _ACEOF
16227 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16228 ac_datarootdir_hack='
16229 s&@datadir@&$datadir&g
16230 s&@docdir@&$docdir&g
16231 s&@infodir@&$infodir&g
16232 s&@localedir@&$localedir&g
16233 s&@mandir@&$mandir&g
16234 s&\\\${datarootdir}&$datarootdir&g' ;;
16235 esac
16236 _ACEOF
16238 # Neutralize VPATH when `$srcdir' = `.'.
16239 # Shell code in configure.ac might set extrasub.
16240 # FIXME: do we really want to maintain this feature?
16241 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16242 ac_sed_extra="$ac_vpsub
16243 $extrasub
16244 _ACEOF
16245 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16247 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16248 s|@configure_input@|$ac_sed_conf_input|;t t
16249 s&@top_builddir@&$ac_top_builddir_sub&;t t
16250 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16251 s&@srcdir@&$ac_srcdir&;t t
16252 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16253 s&@top_srcdir@&$ac_top_srcdir&;t t
16254 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16255 s&@builddir@&$ac_builddir&;t t
16256 s&@abs_builddir@&$ac_abs_builddir&;t t
16257 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16258 s&@INSTALL@&$ac_INSTALL&;t t
16259 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16260 $ac_datarootdir_hack
16262 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16263 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16265 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16266 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16267 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16268 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16269 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16270 which seems to be undefined. Please make sure it is defined" >&5
16271 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16272 which seems to be undefined. Please make sure it is defined" >&2;}
16274 rm -f "$ac_tmp/stdin"
16275 case $ac_file in
16276 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16277 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16278 esac \
16279 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16283 # CONFIG_HEADER
16285 if test x"$ac_file" != x-; then
16287 $as_echo "/* $configure_input */" \
16288 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16289 } >"$ac_tmp/config.h" \
16290 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16291 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16292 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16293 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16294 else
16295 rm -f "$ac_file"
16296 mv "$ac_tmp/config.h" "$ac_file" \
16297 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16299 else
16300 $as_echo "/* $configure_input */" \
16301 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16302 || as_fn_error $? "could not create -" "$LINENO" 5
16304 # Compute "$ac_file"'s index in $config_headers.
16305 _am_arg="$ac_file"
16306 _am_stamp_count=1
16307 for _am_header in $config_headers :; do
16308 case $_am_header in
16309 $_am_arg | $_am_arg:* )
16310 break ;;
16312 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16313 esac
16314 done
16315 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16316 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16317 X"$_am_arg" : 'X\(//\)[^/]' \| \
16318 X"$_am_arg" : 'X\(//\)$' \| \
16319 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16320 $as_echo X"$_am_arg" |
16321 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16322 s//\1/
16325 /^X\(\/\/\)[^/].*/{
16326 s//\1/
16329 /^X\(\/\/\)$/{
16330 s//\1/
16333 /^X\(\/\).*/{
16334 s//\1/
16337 s/.*/./; q'`/stamp-h$_am_stamp_count
16340 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16341 $as_echo "$as_me: executing $ac_file commands" >&6;}
16343 esac
16346 case $ac_file$ac_mode in
16347 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16348 # Older Autoconf quotes --file arguments for eval, but not when files
16349 # are listed without --file. Let's play safe and only enable the eval
16350 # if we detect the quoting.
16351 case $CONFIG_FILES in
16352 *\'*) eval set x "$CONFIG_FILES" ;;
16353 *) set x $CONFIG_FILES ;;
16354 esac
16355 shift
16356 for mf
16358 # Strip MF so we end up with the name of the file.
16359 mf=`echo "$mf" | sed -e 's/:.*$//'`
16360 # Check whether this is an Automake generated Makefile or not.
16361 # We used to match only the files named 'Makefile.in', but
16362 # some people rename them; so instead we look at the file content.
16363 # Grep'ing the first line is not enough: some people post-process
16364 # each Makefile.in and add a new line on top of each file to say so.
16365 # Grep'ing the whole file is not good either: AIX grep has a line
16366 # limit of 2048, but all sed's we know have understand at least 4000.
16367 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16368 dirpart=`$as_dirname -- "$mf" ||
16369 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16370 X"$mf" : 'X\(//\)[^/]' \| \
16371 X"$mf" : 'X\(//\)$' \| \
16372 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16373 $as_echo X"$mf" |
16374 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16375 s//\1/
16378 /^X\(\/\/\)[^/].*/{
16379 s//\1/
16382 /^X\(\/\/\)$/{
16383 s//\1/
16386 /^X\(\/\).*/{
16387 s//\1/
16390 s/.*/./; q'`
16391 else
16392 continue
16394 # Extract the definition of DEPDIR, am__include, and am__quote
16395 # from the Makefile without running 'make'.
16396 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16397 test -z "$DEPDIR" && continue
16398 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16399 test -z "$am__include" && continue
16400 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16401 # Find all dependency output files, they are included files with
16402 # $(DEPDIR) in their names. We invoke sed twice because it is the
16403 # simplest approach to changing $(DEPDIR) to its actual value in the
16404 # expansion.
16405 for file in `sed -n "
16406 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16407 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
16408 # Make sure the directory exists.
16409 test -f "$dirpart/$file" && continue
16410 fdir=`$as_dirname -- "$file" ||
16411 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16412 X"$file" : 'X\(//\)[^/]' \| \
16413 X"$file" : 'X\(//\)$' \| \
16414 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16415 $as_echo X"$file" |
16416 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16417 s//\1/
16420 /^X\(\/\/\)[^/].*/{
16421 s//\1/
16424 /^X\(\/\/\)$/{
16425 s//\1/
16428 /^X\(\/\).*/{
16429 s//\1/
16432 s/.*/./; q'`
16433 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16434 # echo "creating $dirpart/$file"
16435 echo '# dummy' > "$dirpart/$file"
16436 done
16437 done
16440 "libtool":C)
16442 # See if we are running on zsh, and set the options which allow our
16443 # commands through without removal of \ escapes.
16444 if test -n "${ZSH_VERSION+set}" ; then
16445 setopt NO_GLOB_SUBST
16448 cfgfile="${ofile}T"
16449 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16450 $RM "$cfgfile"
16452 cat <<_LT_EOF >> "$cfgfile"
16453 #! $SHELL
16455 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16456 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16457 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16458 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16460 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16461 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
16462 # Written by Gordon Matzigkeit, 1996
16464 # This file is part of GNU Libtool.
16466 # GNU Libtool is free software; you can redistribute it and/or
16467 # modify it under the terms of the GNU General Public License as
16468 # published by the Free Software Foundation; either version 2 of
16469 # the License, or (at your option) any later version.
16471 # As a special exception to the GNU General Public License,
16472 # if you distribute this file as part of a program or library that
16473 # is built using GNU Libtool, you may include this file under the
16474 # same distribution terms that you use for the rest of that program.
16476 # GNU Libtool is distributed in the hope that it will be useful,
16477 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16478 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16479 # GNU General Public License for more details.
16481 # You should have received a copy of the GNU General Public License
16482 # along with GNU Libtool; see the file COPYING. If not, a copy
16483 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16484 # obtained by writing to the Free Software Foundation, Inc.,
16485 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16488 # The names of the tagged configurations supported by this script.
16489 available_tags=""
16491 # ### BEGIN LIBTOOL CONFIG
16493 # Which release of libtool.m4 was used?
16494 macro_version=$macro_version
16495 macro_revision=$macro_revision
16497 # Whether or not to build shared libraries.
16498 build_libtool_libs=$enable_shared
16500 # Whether or not to build static libraries.
16501 build_old_libs=$enable_static
16503 # What type of objects to build.
16504 pic_mode=$pic_mode
16506 # Whether or not to optimize for fast installation.
16507 fast_install=$enable_fast_install
16509 # Shell to use when invoking shell scripts.
16510 SHELL=$lt_SHELL
16512 # An echo program that protects backslashes.
16513 ECHO=$lt_ECHO
16515 # The host system.
16516 host_alias=$host_alias
16517 host=$host
16518 host_os=$host_os
16520 # The build system.
16521 build_alias=$build_alias
16522 build=$build
16523 build_os=$build_os
16525 # A sed program that does not truncate output.
16526 SED=$lt_SED
16528 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16529 Xsed="\$SED -e 1s/^X//"
16531 # A grep program that handles long lines.
16532 GREP=$lt_GREP
16534 # An ERE matcher.
16535 EGREP=$lt_EGREP
16537 # A literal string matcher.
16538 FGREP=$lt_FGREP
16540 # A BSD- or MS-compatible name lister.
16541 NM=$lt_NM
16543 # Whether we need soft or hard links.
16544 LN_S=$lt_LN_S
16546 # What is the maximum length of a command?
16547 max_cmd_len=$max_cmd_len
16549 # Object file suffix (normally "o").
16550 objext=$ac_objext
16552 # Executable file suffix (normally "").
16553 exeext=$exeext
16555 # whether the shell understands "unset".
16556 lt_unset=$lt_unset
16558 # turn spaces into newlines.
16559 SP2NL=$lt_lt_SP2NL
16561 # turn newlines into spaces.
16562 NL2SP=$lt_lt_NL2SP
16564 # An object symbol dumper.
16565 OBJDUMP=$lt_OBJDUMP
16567 # Method to check whether dependent libraries are shared objects.
16568 deplibs_check_method=$lt_deplibs_check_method
16570 # Command to use when deplibs_check_method == "file_magic".
16571 file_magic_cmd=$lt_file_magic_cmd
16573 # The archiver.
16574 AR=$lt_AR
16575 AR_FLAGS=$lt_AR_FLAGS
16577 # A symbol stripping program.
16578 STRIP=$lt_STRIP
16580 # Commands used to install an old-style archive.
16581 RANLIB=$lt_RANLIB
16582 old_postinstall_cmds=$lt_old_postinstall_cmds
16583 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16585 # Whether to use a lock for old archive extraction.
16586 lock_old_archive_extraction=$lock_old_archive_extraction
16588 # A C compiler.
16589 LTCC=$lt_CC
16591 # LTCC compiler flags.
16592 LTCFLAGS=$lt_CFLAGS
16594 # Take the output of nm and produce a listing of raw symbols and C names.
16595 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16597 # Transform the output of nm in a proper C declaration.
16598 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16600 # Transform the output of nm in a C name address pair.
16601 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16603 # Transform the output of nm in a C name address pair when lib prefix is needed.
16604 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16606 # The name of the directory that contains temporary libtool files.
16607 objdir=$objdir
16609 # Used to examine libraries when file_magic_cmd begins with "file".
16610 MAGIC_CMD=$MAGIC_CMD
16612 # Must we lock files when doing compilation?
16613 need_locks=$lt_need_locks
16615 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16616 DSYMUTIL=$lt_DSYMUTIL
16618 # Tool to change global to local symbols on Mac OS X.
16619 NMEDIT=$lt_NMEDIT
16621 # Tool to manipulate fat objects and archives on Mac OS X.
16622 LIPO=$lt_LIPO
16624 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16625 OTOOL=$lt_OTOOL
16627 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16628 OTOOL64=$lt_OTOOL64
16630 # Old archive suffix (normally "a").
16631 libext=$libext
16633 # Shared library suffix (normally ".so").
16634 shrext_cmds=$lt_shrext_cmds
16636 # The commands to extract the exported symbol list from a shared archive.
16637 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16639 # Variables whose values should be saved in libtool wrapper scripts and
16640 # restored at link time.
16641 variables_saved_for_relink=$lt_variables_saved_for_relink
16643 # Do we need the "lib" prefix for modules?
16644 need_lib_prefix=$need_lib_prefix
16646 # Do we need a version for libraries?
16647 need_version=$need_version
16649 # Library versioning type.
16650 version_type=$version_type
16652 # Shared library runtime path variable.
16653 runpath_var=$runpath_var
16655 # Shared library path variable.
16656 shlibpath_var=$shlibpath_var
16658 # Is shlibpath searched before the hard-coded library search path?
16659 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16661 # Format of library name prefix.
16662 libname_spec=$lt_libname_spec
16664 # List of archive names. First name is the real one, the rest are links.
16665 # The last name is the one that the linker finds with -lNAME
16666 library_names_spec=$lt_library_names_spec
16668 # The coded name of the library, if different from the real name.
16669 soname_spec=$lt_soname_spec
16671 # Permission mode override for installation of shared libraries.
16672 install_override_mode=$lt_install_override_mode
16674 # Command to use after installation of a shared archive.
16675 postinstall_cmds=$lt_postinstall_cmds
16677 # Command to use after uninstallation of a shared archive.
16678 postuninstall_cmds=$lt_postuninstall_cmds
16680 # Commands used to finish a libtool library installation in a directory.
16681 finish_cmds=$lt_finish_cmds
16683 # As "finish_cmds", except a single script fragment to be evaled but
16684 # not shown.
16685 finish_eval=$lt_finish_eval
16687 # Whether we should hardcode library paths into libraries.
16688 hardcode_into_libs=$hardcode_into_libs
16690 # Compile-time system search path for libraries.
16691 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16693 # Run-time system search path for libraries.
16694 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16696 # Whether dlopen is supported.
16697 dlopen_support=$enable_dlopen
16699 # Whether dlopen of programs is supported.
16700 dlopen_self=$enable_dlopen_self
16702 # Whether dlopen of statically linked programs is supported.
16703 dlopen_self_static=$enable_dlopen_self_static
16705 # Commands to strip libraries.
16706 old_striplib=$lt_old_striplib
16707 striplib=$lt_striplib
16710 # The linker used to build libraries.
16711 LD=$lt_LD
16713 # How to create reloadable object files.
16714 reload_flag=$lt_reload_flag
16715 reload_cmds=$lt_reload_cmds
16717 # Commands used to build an old-style archive.
16718 old_archive_cmds=$lt_old_archive_cmds
16720 # A language specific compiler.
16721 CC=$lt_compiler
16723 # Is the compiler the GNU compiler?
16724 with_gcc=$GCC
16726 # Compiler flag to turn off builtin functions.
16727 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16729 # How to pass a linker flag through the compiler.
16730 wl=$lt_lt_prog_compiler_wl
16732 # Additional compiler flags for building library objects.
16733 pic_flag=$lt_lt_prog_compiler_pic
16735 # Compiler flag to prevent dynamic linking.
16736 link_static_flag=$lt_lt_prog_compiler_static
16738 # Does compiler simultaneously support -c and -o options?
16739 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16741 # Whether or not to add -lc for building shared libraries.
16742 build_libtool_need_lc=$archive_cmds_need_lc
16744 # Whether or not to disallow shared libs when runtime libs are static.
16745 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16747 # Compiler flag to allow reflexive dlopens.
16748 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16750 # Compiler flag to generate shared objects directly from archives.
16751 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16753 # Whether the compiler copes with passing no objects directly.
16754 compiler_needs_object=$lt_compiler_needs_object
16756 # Create an old-style archive from a shared archive.
16757 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16759 # Create a temporary old-style archive to link instead of a shared archive.
16760 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16762 # Commands used to build a shared archive.
16763 archive_cmds=$lt_archive_cmds
16764 archive_expsym_cmds=$lt_archive_expsym_cmds
16766 # Commands used to build a loadable module if different from building
16767 # a shared archive.
16768 module_cmds=$lt_module_cmds
16769 module_expsym_cmds=$lt_module_expsym_cmds
16771 # Whether we are building with GNU ld or not.
16772 with_gnu_ld=$lt_with_gnu_ld
16774 # Flag that allows shared libraries with undefined symbols to be built.
16775 allow_undefined_flag=$lt_allow_undefined_flag
16777 # Flag that enforces no undefined symbols.
16778 no_undefined_flag=$lt_no_undefined_flag
16780 # Flag to hardcode \$libdir into a binary during linking.
16781 # This must work even if \$libdir does not exist
16782 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16784 # If ld is used when linking, flag to hardcode \$libdir into a binary
16785 # during linking. This must work even if \$libdir does not exist.
16786 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16788 # Whether we need a single "-rpath" flag with a separated argument.
16789 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16791 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16792 # DIR into the resulting binary.
16793 hardcode_direct=$hardcode_direct
16795 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16796 # DIR into the resulting binary and the resulting library dependency is
16797 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16798 # library is relocated.
16799 hardcode_direct_absolute=$hardcode_direct_absolute
16801 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16802 # into the resulting binary.
16803 hardcode_minus_L=$hardcode_minus_L
16805 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16806 # into the resulting binary.
16807 hardcode_shlibpath_var=$hardcode_shlibpath_var
16809 # Set to "yes" if building a shared library automatically hardcodes DIR
16810 # into the library and all subsequent libraries and executables linked
16811 # against it.
16812 hardcode_automatic=$hardcode_automatic
16814 # Set to yes if linker adds runtime paths of dependent libraries
16815 # to runtime path list.
16816 inherit_rpath=$inherit_rpath
16818 # Whether libtool must link a program against all its dependency libraries.
16819 link_all_deplibs=$link_all_deplibs
16821 # Fix the shell variable \$srcfile for the compiler.
16822 fix_srcfile_path=$lt_fix_srcfile_path
16824 # Set to "yes" if exported symbols are required.
16825 always_export_symbols=$always_export_symbols
16827 # The commands to list exported symbols.
16828 export_symbols_cmds=$lt_export_symbols_cmds
16830 # Symbols that should not be listed in the preloaded symbols.
16831 exclude_expsyms=$lt_exclude_expsyms
16833 # Symbols that must always be exported.
16834 include_expsyms=$lt_include_expsyms
16836 # Commands necessary for linking programs (against libraries) with templates.
16837 prelink_cmds=$lt_prelink_cmds
16839 # Specify filename containing input files.
16840 file_list_spec=$lt_file_list_spec
16842 # How to hardcode a shared library path into an executable.
16843 hardcode_action=$hardcode_action
16845 # ### END LIBTOOL CONFIG
16847 _LT_EOF
16849 case $host_os in
16850 aix3*)
16851 cat <<\_LT_EOF >> "$cfgfile"
16852 # AIX sometimes has problems with the GCC collect2 program. For some
16853 # reason, if we set the COLLECT_NAMES environment variable, the problems
16854 # vanish in a puff of smoke.
16855 if test "X${COLLECT_NAMES+set}" != Xset; then
16856 COLLECT_NAMES=
16857 export COLLECT_NAMES
16859 _LT_EOF
16861 esac
16864 ltmain="$ac_aux_dir/ltmain.sh"
16867 # We use sed instead of cat because bash on DJGPP gets confused if
16868 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16869 # text mode, it properly converts lines to CR/LF. This bash problem
16870 # is reportedly fixed, but why not run on old versions too?
16871 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16872 || (rm -f "$cfgfile"; exit 1)
16874 case $xsi_shell in
16875 yes)
16876 cat << \_LT_EOF >> "$cfgfile"
16878 # func_dirname file append nondir_replacement
16879 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16880 # otherwise set result to NONDIR_REPLACEMENT.
16881 func_dirname ()
16883 case ${1} in
16884 */*) func_dirname_result="${1%/*}${2}" ;;
16885 * ) func_dirname_result="${3}" ;;
16886 esac
16889 # func_basename file
16890 func_basename ()
16892 func_basename_result="${1##*/}"
16895 # func_dirname_and_basename file append nondir_replacement
16896 # perform func_basename and func_dirname in a single function
16897 # call:
16898 # dirname: Compute the dirname of FILE. If nonempty,
16899 # add APPEND to the result, otherwise set result
16900 # to NONDIR_REPLACEMENT.
16901 # value returned in "$func_dirname_result"
16902 # basename: Compute filename of FILE.
16903 # value retuned in "$func_basename_result"
16904 # Implementation must be kept synchronized with func_dirname
16905 # and func_basename. For efficiency, we do not delegate to
16906 # those functions but instead duplicate the functionality here.
16907 func_dirname_and_basename ()
16909 case ${1} in
16910 */*) func_dirname_result="${1%/*}${2}" ;;
16911 * ) func_dirname_result="${3}" ;;
16912 esac
16913 func_basename_result="${1##*/}"
16916 # func_stripname prefix suffix name
16917 # strip PREFIX and SUFFIX off of NAME.
16918 # PREFIX and SUFFIX must not contain globbing or regex special
16919 # characters, hashes, percent signs, but SUFFIX may contain a leading
16920 # dot (in which case that matches only a dot).
16921 func_stripname ()
16923 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16924 # positional parameters, so assign one to ordinary parameter first.
16925 func_stripname_result=${3}
16926 func_stripname_result=${func_stripname_result#"${1}"}
16927 func_stripname_result=${func_stripname_result%"${2}"}
16930 # func_opt_split
16931 func_opt_split ()
16933 func_opt_split_opt=${1%%=*}
16934 func_opt_split_arg=${1#*=}
16937 # func_lo2o object
16938 func_lo2o ()
16940 case ${1} in
16941 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16942 *) func_lo2o_result=${1} ;;
16943 esac
16946 # func_xform libobj-or-source
16947 func_xform ()
16949 func_xform_result=${1%.*}.lo
16952 # func_arith arithmetic-term...
16953 func_arith ()
16955 func_arith_result=$(( $* ))
16958 # func_len string
16959 # STRING may not start with a hyphen.
16960 func_len ()
16962 func_len_result=${#1}
16965 _LT_EOF
16967 *) # Bourne compatible functions.
16968 cat << \_LT_EOF >> "$cfgfile"
16970 # func_dirname file append nondir_replacement
16971 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16972 # otherwise set result to NONDIR_REPLACEMENT.
16973 func_dirname ()
16975 # Extract subdirectory from the argument.
16976 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
16977 if test "X$func_dirname_result" = "X${1}"; then
16978 func_dirname_result="${3}"
16979 else
16980 func_dirname_result="$func_dirname_result${2}"
16984 # func_basename file
16985 func_basename ()
16987 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
16991 # func_stripname prefix suffix name
16992 # strip PREFIX and SUFFIX off of NAME.
16993 # PREFIX and SUFFIX must not contain globbing or regex special
16994 # characters, hashes, percent signs, but SUFFIX may contain a leading
16995 # dot (in which case that matches only a dot).
16996 # func_strip_suffix prefix name
16997 func_stripname ()
16999 case ${2} in
17000 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
17001 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
17002 esac
17005 # sed scripts:
17006 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17007 my_sed_long_arg='1s/^-[^=]*=//'
17009 # func_opt_split
17010 func_opt_split ()
17012 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
17013 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
17016 # func_lo2o object
17017 func_lo2o ()
17019 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
17022 # func_xform libobj-or-source
17023 func_xform ()
17025 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
17028 # func_arith arithmetic-term...
17029 func_arith ()
17031 func_arith_result=`expr "$@"`
17034 # func_len string
17035 # STRING may not start with a hyphen.
17036 func_len ()
17038 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17041 _LT_EOF
17042 esac
17044 case $lt_shell_append in
17045 yes)
17046 cat << \_LT_EOF >> "$cfgfile"
17048 # func_append var value
17049 # Append VALUE to the end of shell variable VAR.
17050 func_append ()
17052 eval "$1+=\$2"
17054 _LT_EOF
17057 cat << \_LT_EOF >> "$cfgfile"
17059 # func_append var value
17060 # Append VALUE to the end of shell variable VAR.
17061 func_append ()
17063 eval "$1=\$$1\$2"
17066 _LT_EOF
17068 esac
17071 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17072 || (rm -f "$cfgfile"; exit 1)
17074 mv -f "$cfgfile" "$ofile" ||
17075 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17076 chmod +x "$ofile"
17079 "default-1":C)
17080 for ac_file in $CONFIG_FILES; do
17081 # Support "outfile[:infile[:infile...]]"
17082 case "$ac_file" in
17083 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
17084 esac
17085 # PO directories have a Makefile.in generated from Makefile.in.in.
17086 case "$ac_file" in */Makefile.in)
17087 # Adjust a relative srcdir.
17088 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
17089 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
17090 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
17091 # In autoconf-2.13 it is called $ac_given_srcdir.
17092 # In autoconf-2.50 it is called $srcdir.
17093 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
17094 case "$ac_given_srcdir" in
17095 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
17096 /*) top_srcdir="$ac_given_srcdir" ;;
17097 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
17098 esac
17099 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
17100 rm -f "$ac_dir/POTFILES"
17101 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
17102 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
17103 POMAKEFILEDEPS="POTFILES.in"
17104 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
17105 # on $ac_dir but don't depend on user-specified configuration
17106 # parameters.
17107 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
17108 # The LINGUAS file contains the set of available languages.
17109 if test -n "$OBSOLETE_ALL_LINGUAS"; then
17110 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.ac is obsolete" || echo "setting ALL_LINGUAS in configure.ac is obsolete"
17112 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
17113 # Hide the ALL_LINGUAS assigment from automake.
17114 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
17115 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
17116 else
17117 # The set of available languages was given in configure.ac.
17118 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
17120 case "$ac_given_srcdir" in
17121 .) srcdirpre= ;;
17122 *) srcdirpre='$(srcdir)/' ;;
17123 esac
17124 POFILES=
17125 GMOFILES=
17126 UPDATEPOFILES=
17127 DUMMYPOFILES=
17128 for lang in $ALL_LINGUAS; do
17129 POFILES="$POFILES $srcdirpre$lang.po"
17130 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
17131 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
17132 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
17133 done
17134 # CATALOGS depends on both $ac_dir and the user's LINGUAS
17135 # environment variable.
17136 INST_LINGUAS=
17137 if test -n "$ALL_LINGUAS"; then
17138 for presentlang in $ALL_LINGUAS; do
17139 useit=no
17140 if test "%UNSET%" != "$LINGUAS"; then
17141 desiredlanguages="$LINGUAS"
17142 else
17143 desiredlanguages="$ALL_LINGUAS"
17145 for desiredlang in $desiredlanguages; do
17146 # Use the presentlang catalog if desiredlang is
17147 # a. equal to presentlang, or
17148 # b. a variant of presentlang (because in this case,
17149 # presentlang can be used as a fallback for messages
17150 # which are not translated in the desiredlang catalog).
17151 case "$desiredlang" in
17152 "$presentlang"*) useit=yes;;
17153 esac
17154 done
17155 if test $useit = yes; then
17156 INST_LINGUAS="$INST_LINGUAS $presentlang"
17158 done
17160 CATALOGS=
17161 if test -n "$INST_LINGUAS"; then
17162 for lang in $INST_LINGUAS; do
17163 CATALOGS="$CATALOGS $lang.gmo"
17164 done
17166 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
17167 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"
17168 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
17169 if test -f "$f"; then
17170 case "$f" in
17171 *.orig | *.bak | *~) ;;
17172 *) cat "$f" >> "$ac_dir/Makefile" ;;
17173 esac
17175 done
17178 esac
17179 done ;;
17181 esac
17182 done # for ac_tag
17185 as_fn_exit 0
17186 _ACEOF
17187 ac_clean_files=$ac_clean_files_save
17189 test $ac_write_fail = 0 ||
17190 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17193 # configure is writing to config.log, and then calls config.status.
17194 # config.status does its own redirection, appending to config.log.
17195 # Unfortunately, on DOS this fails, as config.log is still kept open
17196 # by configure, so config.status won't be able to write to it; its
17197 # output is simply discarded. So we exec the FD to /dev/null,
17198 # effectively closing config.log, so it can be properly (re)opened and
17199 # appended to by config.status. When coming back to configure, we
17200 # need to make the FD available again.
17201 if test "$no_create" != yes; then
17202 ac_cs_success=:
17203 ac_config_status_args=
17204 test "$silent" = yes &&
17205 ac_config_status_args="$ac_config_status_args --quiet"
17206 exec 5>/dev/null
17207 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17208 exec 5>>config.log
17209 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17210 # would make configure fail if this is the last instruction.
17211 $ac_cs_success || as_fn_exit 1
17213 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17214 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17215 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17220 touch config.status.tmp
17221 if touch --reference=config.status config.status.tmp > /dev/null 2>&1; then
17222 sed '/as_fn_exit 0/i \
17223 sed -e \"s/^\t\\\(\\\$(AM_V_CCLD)\\\)/\t+ \\\1/\" Makefile > Makefile.tmp \
17224 touch --reference=Makefile Makefile.tmp \
17225 mv Makefile.tmp Makefile \
17226 ' config.status > config.status.tmp
17227 touch --reference=config.status config.status.tmp
17228 mv config.status.tmp config.status
17229 chmod +x config.status
17230 sed -e "s/^\t\(\$(AM_V_CCLD)\)/\t+ \1/" Makefile > Makefile.tmp
17231 touch --reference=Makefile Makefile.tmp
17232 mv Makefile.tmp Makefile
17233 else
17234 rm -f config.status.tmp