Automatic date update in version.in
[binutils-gdb.git] / binutils / configure
blob7806ff2a0b35b77109882f9c0d08a30470701b6f
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for binutils 2.41.50.
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.41.50'
591 PACKAGE_STRING='binutils 2.41.50'
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 MSGPACK_LIBS
652 MSGPACK_CFLAGS
653 ZSTD_LIBS
654 ZSTD_CFLAGS
655 zlibinc
656 zlibdir
657 DEMANGLER_NAME
658 EXEEXT_FOR_BUILD
659 CC_FOR_BUILD
660 HDEFINES
661 GENINSRC_NEVER_FALSE
662 GENINSRC_NEVER_TRUE
663 MAINT
664 MAINTAINER_MODE_FALSE
665 MAINTAINER_MODE_TRUE
666 MSGMERGE
667 MSGFMT
668 MKINSTALLDIRS
669 CATOBJEXT
670 GENCAT
671 INSTOBJEXT
672 DATADIRNAME
673 CATALOGS
674 POSUB
675 GMSGFMT
676 XGETTEXT
677 INCINTL
678 LIBINTL_DEP
679 LIBINTL
680 USE_NLS
681 LEXLIB
682 LEX_OUTPUT_ROOT
684 YFLAGS
685 YACC
686 WARN_WRITE_STRINGS
687 NO_WERROR
688 WARN_CFLAGS_FOR_BUILD
689 WARN_CFLAGS
690 ENABLE_LIBCTF_FALSE
691 ENABLE_LIBCTF_TRUE
692 DEBUGINFOD_LIBS
693 DEBUGINFOD_CFLAGS
694 PKG_CONFIG_LIBDIR
695 PKG_CONFIG_PATH
696 PKG_CONFIG
697 LARGEFILE_CPPFLAGS
698 OTOOL64
699 OTOOL
700 LIPO
701 NMEDIT
702 DSYMUTIL
703 RANLIB
705 OBJDUMP
706 LN_S
708 ac_ct_DUMPBIN
709 DUMPBIN
711 FGREP
713 LIBTOOL
714 EGREP
715 GREP
717 am__fastdepCC_FALSE
718 am__fastdepCC_TRUE
719 CCDEPMODE
720 am__nodep
721 AMDEPBACKSLASH
722 AMDEP_FALSE
723 AMDEP_TRUE
724 am__quote
725 am__include
726 DEPDIR
727 OBJEXT
728 EXEEXT
729 ac_ct_CC
730 CPPFLAGS
731 LDFLAGS
732 CFLAGS
734 AM_BACKSLASH
735 AM_DEFAULT_VERBOSITY
736 AM_DEFAULT_V
737 AM_V
738 am__untar
739 am__tar
740 AMTAR
741 am__leading_dot
742 SET_MAKE
744 mkdir_p
745 MKDIR_P
746 INSTALL_STRIP_PROGRAM
747 STRIP
748 install_sh
749 MAKEINFO
750 AUTOHEADER
751 AUTOMAKE
752 AUTOCONF
753 ACLOCAL
754 VERSION
755 PACKAGE
756 CYGPATH_W
757 am__isrc
758 INSTALL_DATA
759 INSTALL_SCRIPT
760 INSTALL_PROGRAM
761 target_os
762 target_vendor
763 target_cpu
764 target
765 host_os
766 host_vendor
767 host_cpu
768 host
769 build_os
770 build_vendor
771 build_cpu
772 build
773 target_alias
774 host_alias
775 build_alias
776 LIBS
777 ECHO_T
778 ECHO_N
779 ECHO_C
780 DEFS
781 mandir
782 localedir
783 libdir
784 psdir
785 pdfdir
786 dvidir
787 htmldir
788 infodir
789 docdir
790 oldincludedir
791 includedir
792 localstatedir
793 sharedstatedir
794 sysconfdir
795 datadir
796 datarootdir
797 libexecdir
798 sbindir
799 bindir
800 program_transform_name
801 prefix
802 exec_prefix
803 PACKAGE_URL
804 PACKAGE_BUGREPORT
805 PACKAGE_STRING
806 PACKAGE_VERSION
807 PACKAGE_TARNAME
808 PACKAGE_NAME
809 PATH_SEPARATOR
810 SHELL'
811 ac_subst_files=''
812 ac_user_opts='
813 enable_option_checking
814 enable_silent_rules
815 enable_dependency_tracking
816 enable_shared
817 enable_static
818 with_pic
819 enable_fast_install
820 with_gnu_ld
821 enable_libtool_lock
822 enable_plugins
823 enable_largefile
824 enable_checking
825 enable_targets
826 enable_deterministic_archives
827 enable_default_strings_all
828 enable_f_for_ifunc_symbols
829 enable_follow_debug_links
830 enable_colored_disassembly
831 with_debuginfod
832 enable_libctf
833 enable_werror
834 enable_build_warnings
835 enable_nls
836 enable_maintainer_mode
837 with_system_zlib
838 with_zstd
839 with_msgpack
840 enable_rpath
841 with_libiconv_prefix
842 with_libiconv_type
844 ac_precious_vars='build_alias
845 host_alias
846 target_alias
848 CFLAGS
849 LDFLAGS
850 LIBS
851 CPPFLAGS
853 PKG_CONFIG
854 PKG_CONFIG_PATH
855 PKG_CONFIG_LIBDIR
856 DEBUGINFOD_CFLAGS
857 DEBUGINFOD_LIBS
858 YACC
859 YFLAGS
860 ZSTD_CFLAGS
861 ZSTD_LIBS
862 MSGPACK_CFLAGS
863 MSGPACK_LIBS'
866 # Initialize some variables set by options.
867 ac_init_help=
868 ac_init_version=false
869 ac_unrecognized_opts=
870 ac_unrecognized_sep=
871 # The variables have the same names as the options, with
872 # dashes changed to underlines.
873 cache_file=/dev/null
874 exec_prefix=NONE
875 no_create=
876 no_recursion=
877 prefix=NONE
878 program_prefix=NONE
879 program_suffix=NONE
880 program_transform_name=s,x,x,
881 silent=
882 site=
883 srcdir=
884 verbose=
885 x_includes=NONE
886 x_libraries=NONE
888 # Installation directory options.
889 # These are left unexpanded so users can "make install exec_prefix=/foo"
890 # and all the variables that are supposed to be based on exec_prefix
891 # by default will actually change.
892 # Use braces instead of parens because sh, perl, etc. also accept them.
893 # (The list follows the same order as the GNU Coding Standards.)
894 bindir='${exec_prefix}/bin'
895 sbindir='${exec_prefix}/sbin'
896 libexecdir='${exec_prefix}/libexec'
897 datarootdir='${prefix}/share'
898 datadir='${datarootdir}'
899 sysconfdir='${prefix}/etc'
900 sharedstatedir='${prefix}/com'
901 localstatedir='${prefix}/var'
902 includedir='${prefix}/include'
903 oldincludedir='/usr/include'
904 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
905 infodir='${datarootdir}/info'
906 htmldir='${docdir}'
907 dvidir='${docdir}'
908 pdfdir='${docdir}'
909 psdir='${docdir}'
910 libdir='${exec_prefix}/lib'
911 localedir='${datarootdir}/locale'
912 mandir='${datarootdir}/man'
914 ac_prev=
915 ac_dashdash=
916 for ac_option
918 # If the previous option needs an argument, assign it.
919 if test -n "$ac_prev"; then
920 eval $ac_prev=\$ac_option
921 ac_prev=
922 continue
925 case $ac_option in
926 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
927 *=) ac_optarg= ;;
928 *) ac_optarg=yes ;;
929 esac
931 # Accept the important Cygnus configure options, so we can diagnose typos.
933 case $ac_dashdash$ac_option in
935 ac_dashdash=yes ;;
937 -bindir | --bindir | --bindi | --bind | --bin | --bi)
938 ac_prev=bindir ;;
939 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
940 bindir=$ac_optarg ;;
942 -build | --build | --buil | --bui | --bu)
943 ac_prev=build_alias ;;
944 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
945 build_alias=$ac_optarg ;;
947 -cache-file | --cache-file | --cache-fil | --cache-fi \
948 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
949 ac_prev=cache_file ;;
950 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
951 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
952 cache_file=$ac_optarg ;;
954 --config-cache | -C)
955 cache_file=config.cache ;;
957 -datadir | --datadir | --datadi | --datad)
958 ac_prev=datadir ;;
959 -datadir=* | --datadir=* | --datadi=* | --datad=*)
960 datadir=$ac_optarg ;;
962 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
963 | --dataroo | --dataro | --datar)
964 ac_prev=datarootdir ;;
965 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
966 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
967 datarootdir=$ac_optarg ;;
969 -disable-* | --disable-*)
970 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
971 # Reject names that are not valid shell variable names.
972 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
973 as_fn_error $? "invalid feature name: $ac_useropt"
974 ac_useropt_orig=$ac_useropt
975 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
976 case $ac_user_opts in
978 "enable_$ac_useropt"
979 "*) ;;
980 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
981 ac_unrecognized_sep=', ';;
982 esac
983 eval enable_$ac_useropt=no ;;
985 -docdir | --docdir | --docdi | --doc | --do)
986 ac_prev=docdir ;;
987 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
988 docdir=$ac_optarg ;;
990 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
991 ac_prev=dvidir ;;
992 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
993 dvidir=$ac_optarg ;;
995 -enable-* | --enable-*)
996 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
997 # Reject names that are not valid shell variable names.
998 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
999 as_fn_error $? "invalid feature name: $ac_useropt"
1000 ac_useropt_orig=$ac_useropt
1001 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1002 case $ac_user_opts in
1004 "enable_$ac_useropt"
1005 "*) ;;
1006 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1007 ac_unrecognized_sep=', ';;
1008 esac
1009 eval enable_$ac_useropt=\$ac_optarg ;;
1011 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1012 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1013 | --exec | --exe | --ex)
1014 ac_prev=exec_prefix ;;
1015 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1016 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1017 | --exec=* | --exe=* | --ex=*)
1018 exec_prefix=$ac_optarg ;;
1020 -gas | --gas | --ga | --g)
1021 # Obsolete; use --with-gas.
1022 with_gas=yes ;;
1024 -help | --help | --hel | --he | -h)
1025 ac_init_help=long ;;
1026 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1027 ac_init_help=recursive ;;
1028 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1029 ac_init_help=short ;;
1031 -host | --host | --hos | --ho)
1032 ac_prev=host_alias ;;
1033 -host=* | --host=* | --hos=* | --ho=*)
1034 host_alias=$ac_optarg ;;
1036 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1037 ac_prev=htmldir ;;
1038 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1039 | --ht=*)
1040 htmldir=$ac_optarg ;;
1042 -includedir | --includedir | --includedi | --included | --include \
1043 | --includ | --inclu | --incl | --inc)
1044 ac_prev=includedir ;;
1045 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1046 | --includ=* | --inclu=* | --incl=* | --inc=*)
1047 includedir=$ac_optarg ;;
1049 -infodir | --infodir | --infodi | --infod | --info | --inf)
1050 ac_prev=infodir ;;
1051 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1052 infodir=$ac_optarg ;;
1054 -libdir | --libdir | --libdi | --libd)
1055 ac_prev=libdir ;;
1056 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1057 libdir=$ac_optarg ;;
1059 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1060 | --libexe | --libex | --libe)
1061 ac_prev=libexecdir ;;
1062 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1063 | --libexe=* | --libex=* | --libe=*)
1064 libexecdir=$ac_optarg ;;
1066 -localedir | --localedir | --localedi | --localed | --locale)
1067 ac_prev=localedir ;;
1068 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1069 localedir=$ac_optarg ;;
1071 -localstatedir | --localstatedir | --localstatedi | --localstated \
1072 | --localstate | --localstat | --localsta | --localst | --locals)
1073 ac_prev=localstatedir ;;
1074 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1075 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1076 localstatedir=$ac_optarg ;;
1078 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1079 ac_prev=mandir ;;
1080 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1081 mandir=$ac_optarg ;;
1083 -nfp | --nfp | --nf)
1084 # Obsolete; use --without-fp.
1085 with_fp=no ;;
1087 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1088 | --no-cr | --no-c | -n)
1089 no_create=yes ;;
1091 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1092 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1093 no_recursion=yes ;;
1095 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1096 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1097 | --oldin | --oldi | --old | --ol | --o)
1098 ac_prev=oldincludedir ;;
1099 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1100 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1101 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1102 oldincludedir=$ac_optarg ;;
1104 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1105 ac_prev=prefix ;;
1106 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1107 prefix=$ac_optarg ;;
1109 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1110 | --program-pre | --program-pr | --program-p)
1111 ac_prev=program_prefix ;;
1112 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1113 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1114 program_prefix=$ac_optarg ;;
1116 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1117 | --program-suf | --program-su | --program-s)
1118 ac_prev=program_suffix ;;
1119 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1120 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1121 program_suffix=$ac_optarg ;;
1123 -program-transform-name | --program-transform-name \
1124 | --program-transform-nam | --program-transform-na \
1125 | --program-transform-n | --program-transform- \
1126 | --program-transform | --program-transfor \
1127 | --program-transfo | --program-transf \
1128 | --program-trans | --program-tran \
1129 | --progr-tra | --program-tr | --program-t)
1130 ac_prev=program_transform_name ;;
1131 -program-transform-name=* | --program-transform-name=* \
1132 | --program-transform-nam=* | --program-transform-na=* \
1133 | --program-transform-n=* | --program-transform-=* \
1134 | --program-transform=* | --program-transfor=* \
1135 | --program-transfo=* | --program-transf=* \
1136 | --program-trans=* | --program-tran=* \
1137 | --progr-tra=* | --program-tr=* | --program-t=*)
1138 program_transform_name=$ac_optarg ;;
1140 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1141 ac_prev=pdfdir ;;
1142 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1143 pdfdir=$ac_optarg ;;
1145 -psdir | --psdir | --psdi | --psd | --ps)
1146 ac_prev=psdir ;;
1147 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1148 psdir=$ac_optarg ;;
1150 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1151 | -silent | --silent | --silen | --sile | --sil)
1152 silent=yes ;;
1154 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1155 ac_prev=sbindir ;;
1156 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1157 | --sbi=* | --sb=*)
1158 sbindir=$ac_optarg ;;
1160 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1161 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1162 | --sharedst | --shareds | --shared | --share | --shar \
1163 | --sha | --sh)
1164 ac_prev=sharedstatedir ;;
1165 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1166 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1167 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1168 | --sha=* | --sh=*)
1169 sharedstatedir=$ac_optarg ;;
1171 -site | --site | --sit)
1172 ac_prev=site ;;
1173 -site=* | --site=* | --sit=*)
1174 site=$ac_optarg ;;
1176 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1177 ac_prev=srcdir ;;
1178 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1179 srcdir=$ac_optarg ;;
1181 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1182 | --syscon | --sysco | --sysc | --sys | --sy)
1183 ac_prev=sysconfdir ;;
1184 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1185 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1186 sysconfdir=$ac_optarg ;;
1188 -target | --target | --targe | --targ | --tar | --ta | --t)
1189 ac_prev=target_alias ;;
1190 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1191 target_alias=$ac_optarg ;;
1193 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1194 verbose=yes ;;
1196 -version | --version | --versio | --versi | --vers | -V)
1197 ac_init_version=: ;;
1199 -with-* | --with-*)
1200 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1201 # Reject names that are not valid shell variable names.
1202 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1203 as_fn_error $? "invalid package name: $ac_useropt"
1204 ac_useropt_orig=$ac_useropt
1205 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1206 case $ac_user_opts in
1208 "with_$ac_useropt"
1209 "*) ;;
1210 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1211 ac_unrecognized_sep=', ';;
1212 esac
1213 eval with_$ac_useropt=\$ac_optarg ;;
1215 -without-* | --without-*)
1216 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1217 # Reject names that are not valid shell variable names.
1218 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1219 as_fn_error $? "invalid package name: $ac_useropt"
1220 ac_useropt_orig=$ac_useropt
1221 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1222 case $ac_user_opts in
1224 "with_$ac_useropt"
1225 "*) ;;
1226 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1227 ac_unrecognized_sep=', ';;
1228 esac
1229 eval with_$ac_useropt=no ;;
1231 --x)
1232 # Obsolete; use --with-x.
1233 with_x=yes ;;
1235 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1236 | --x-incl | --x-inc | --x-in | --x-i)
1237 ac_prev=x_includes ;;
1238 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1239 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1240 x_includes=$ac_optarg ;;
1242 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1243 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1244 ac_prev=x_libraries ;;
1245 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1246 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1247 x_libraries=$ac_optarg ;;
1249 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1250 Try \`$0 --help' for more information"
1253 *=*)
1254 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1255 # Reject names that are not valid shell variable names.
1256 case $ac_envvar in #(
1257 '' | [0-9]* | *[!_$as_cr_alnum]* )
1258 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1259 esac
1260 eval $ac_envvar=\$ac_optarg
1261 export $ac_envvar ;;
1264 # FIXME: should be removed in autoconf 3.0.
1265 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1266 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1267 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1268 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1271 esac
1272 done
1274 if test -n "$ac_prev"; then
1275 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1276 as_fn_error $? "missing argument to $ac_option"
1279 if test -n "$ac_unrecognized_opts"; then
1280 case $enable_option_checking in
1281 no) ;;
1282 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1283 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1284 esac
1287 # Check all directory arguments for consistency.
1288 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1289 datadir sysconfdir sharedstatedir localstatedir includedir \
1290 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1291 libdir localedir mandir
1293 eval ac_val=\$$ac_var
1294 # Remove trailing slashes.
1295 case $ac_val in
1296 */ )
1297 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1298 eval $ac_var=\$ac_val;;
1299 esac
1300 # Be sure to have absolute directory names.
1301 case $ac_val in
1302 [\\/$]* | ?:[\\/]* ) continue;;
1303 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1304 esac
1305 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1306 done
1308 # There might be people who depend on the old broken behavior: `$host'
1309 # used to hold the argument of --host etc.
1310 # FIXME: To remove some day.
1311 build=$build_alias
1312 host=$host_alias
1313 target=$target_alias
1315 # FIXME: To remove some day.
1316 if test "x$host_alias" != x; then
1317 if test "x$build_alias" = x; then
1318 cross_compiling=maybe
1319 elif test "x$build_alias" != "x$host_alias"; then
1320 cross_compiling=yes
1324 ac_tool_prefix=
1325 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1327 test "$silent" = yes && exec 6>/dev/null
1330 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1331 ac_ls_di=`ls -di .` &&
1332 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1333 as_fn_error $? "working directory cannot be determined"
1334 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1335 as_fn_error $? "pwd does not report name of working directory"
1338 # Find the source files, if location was not specified.
1339 if test -z "$srcdir"; then
1340 ac_srcdir_defaulted=yes
1341 # Try the directory containing this script, then the parent directory.
1342 ac_confdir=`$as_dirname -- "$as_myself" ||
1343 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1344 X"$as_myself" : 'X\(//\)[^/]' \| \
1345 X"$as_myself" : 'X\(//\)$' \| \
1346 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1347 $as_echo X"$as_myself" |
1348 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1349 s//\1/
1352 /^X\(\/\/\)[^/].*/{
1353 s//\1/
1356 /^X\(\/\/\)$/{
1357 s//\1/
1360 /^X\(\/\).*/{
1361 s//\1/
1364 s/.*/./; q'`
1365 srcdir=$ac_confdir
1366 if test ! -r "$srcdir/$ac_unique_file"; then
1367 srcdir=..
1369 else
1370 ac_srcdir_defaulted=no
1372 if test ! -r "$srcdir/$ac_unique_file"; then
1373 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1374 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1376 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1377 ac_abs_confdir=`(
1378 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1379 pwd)`
1380 # When building in place, set srcdir=.
1381 if test "$ac_abs_confdir" = "$ac_pwd"; then
1382 srcdir=.
1384 # Remove unnecessary trailing slashes from srcdir.
1385 # Double slashes in file names in object file debugging info
1386 # mess up M-x gdb in Emacs.
1387 case $srcdir in
1388 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1389 esac
1390 for ac_var in $ac_precious_vars; do
1391 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1392 eval ac_env_${ac_var}_value=\$${ac_var}
1393 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1394 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1395 done
1398 # Report the --help message.
1400 if test "$ac_init_help" = "long"; then
1401 # Omit some internal or obsolete options to make the list less imposing.
1402 # This message is too long to be a string in the A/UX 3.1 sh.
1403 cat <<_ACEOF
1404 \`configure' configures binutils 2.41.50 to adapt to many kinds of systems.
1406 Usage: $0 [OPTION]... [VAR=VALUE]...
1408 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1409 VAR=VALUE. See below for descriptions of some of the useful variables.
1411 Defaults for the options are specified in brackets.
1413 Configuration:
1414 -h, --help display this help and exit
1415 --help=short display options specific to this package
1416 --help=recursive display the short help of all the included packages
1417 -V, --version display version information and exit
1418 -q, --quiet, --silent do not print \`checking ...' messages
1419 --cache-file=FILE cache test results in FILE [disabled]
1420 -C, --config-cache alias for \`--cache-file=config.cache'
1421 -n, --no-create do not create output files
1422 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1424 Installation directories:
1425 --prefix=PREFIX install architecture-independent files in PREFIX
1426 [$ac_default_prefix]
1427 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1428 [PREFIX]
1430 By default, \`make install' will install all the files in
1431 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1432 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1433 for instance \`--prefix=\$HOME'.
1435 For better control, use the options below.
1437 Fine tuning of the installation directories:
1438 --bindir=DIR user executables [EPREFIX/bin]
1439 --sbindir=DIR system admin executables [EPREFIX/sbin]
1440 --libexecdir=DIR program executables [EPREFIX/libexec]
1441 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1442 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1443 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1444 --libdir=DIR object code libraries [EPREFIX/lib]
1445 --includedir=DIR C header files [PREFIX/include]
1446 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1447 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1448 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1449 --infodir=DIR info documentation [DATAROOTDIR/info]
1450 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1451 --mandir=DIR man documentation [DATAROOTDIR/man]
1452 --docdir=DIR documentation root [DATAROOTDIR/doc/binutils]
1453 --htmldir=DIR html documentation [DOCDIR]
1454 --dvidir=DIR dvi documentation [DOCDIR]
1455 --pdfdir=DIR pdf documentation [DOCDIR]
1456 --psdir=DIR ps documentation [DOCDIR]
1457 _ACEOF
1459 cat <<\_ACEOF
1461 Program names:
1462 --program-prefix=PREFIX prepend PREFIX to installed program names
1463 --program-suffix=SUFFIX append SUFFIX to installed program names
1464 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1466 System types:
1467 --build=BUILD configure for building on BUILD [guessed]
1468 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1469 --target=TARGET configure for building compilers for TARGET [HOST]
1470 _ACEOF
1473 if test -n "$ac_init_help"; then
1474 case $ac_init_help in
1475 short | recursive ) echo "Configuration of binutils 2.41.50:";;
1476 esac
1477 cat <<\_ACEOF
1479 Optional Features:
1480 --disable-option-checking ignore unrecognized --enable/--with options
1481 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1482 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1483 --enable-silent-rules less verbose build output (undo: "make V=1")
1484 --disable-silent-rules verbose build output (undo: "make V=0")
1485 --enable-dependency-tracking
1486 do not reject slow dependency extractors
1487 --disable-dependency-tracking
1488 speeds up one-time build
1489 --enable-shared[=PKGS] build shared libraries [default=yes]
1490 --enable-static[=PKGS] build static libraries [default=yes]
1491 --enable-fast-install[=PKGS]
1492 optimize for fast installation [default=yes]
1493 --disable-libtool-lock avoid locking (might break parallel builds)
1494 --enable-plugins Enable support for plugins
1495 --disable-largefile omit support for large files
1496 --enable-checking enable run-time checks
1497 --enable-targets alternative target configurations
1498 --enable-deterministic-archives
1499 ar and ranlib default to -D behavior
1500 --disable-default-strings-all
1501 strings defaults to --data behavior
1502 --enable-f-for-ifunc-symbols
1503 Have nm use F and f for global and local ifunc
1504 symbols
1505 --enable-follow-debug-links
1506 Have readelf and objdump follow debug links by
1507 default
1508 --enable-colored-disassembly
1509 Have objdump use colors in its disassembly by
1510 default
1511 --enable-libctf Handle .ctf type-info sections [default=yes]
1512 --enable-werror treat compile warnings as errors
1513 --enable-build-warnings enable build-time compiler warnings
1514 --disable-nls do not use Native Language Support
1515 --enable-maintainer-mode
1516 enable make rules and dependencies not useful (and
1517 sometimes confusing) to the casual installer
1518 --disable-rpath do not hardcode runtime library paths
1520 Optional Packages:
1521 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1522 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1523 --with-pic try to use only PIC/non-PIC objects [default=use
1524 both]
1525 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1526 --with-debuginfod Enable debuginfo lookups with debuginfod
1527 (auto/yes/no)
1528 --with-system-zlib use installed libz
1529 --with-zstd support zstd compressed debug sections
1530 (default=auto)
1531 --with-msgpack Enable msgpack support (auto/yes/no)
1532 --with-gnu-ld assume the C compiler uses GNU ld default=no
1533 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1534 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1535 --with-libiconv-type=TYPE type of library to search for (auto/static/shared)
1537 Some influential environment variables:
1538 CC C compiler command
1539 CFLAGS C compiler flags
1540 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1541 nonstandard directory <lib dir>
1542 LIBS libraries to pass to the linker, e.g. -l<library>
1543 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1544 you have headers in a nonstandard directory <include dir>
1545 CPP C preprocessor
1546 PKG_CONFIG path to pkg-config utility
1547 PKG_CONFIG_PATH
1548 directories to add to pkg-config's search path
1549 PKG_CONFIG_LIBDIR
1550 path overriding pkg-config's built-in search path
1551 DEBUGINFOD_CFLAGS
1552 C compiler flags for DEBUGINFOD, overriding pkg-config
1553 DEBUGINFOD_LIBS
1554 linker flags for DEBUGINFOD, overriding pkg-config
1555 YACC The `Yet Another Compiler Compiler' implementation to use.
1556 Defaults to the first program found out of: `bison -y', `byacc',
1557 `yacc'.
1558 YFLAGS The list of arguments that will be passed by default to $YACC.
1559 This script will default YFLAGS to the empty string to avoid a
1560 default value of `-d' given by some make applications.
1561 ZSTD_CFLAGS C compiler flags for ZSTD, overriding pkg-config
1562 ZSTD_LIBS linker flags for ZSTD, overriding pkg-config
1563 MSGPACK_CFLAGS
1564 C compiler flags for MSGPACK, overriding pkg-config
1565 MSGPACK_LIBS
1566 linker flags for MSGPACK, overriding pkg-config
1568 Use these variables to override the choices made by `configure' or to help
1569 it to find libraries and programs with nonstandard names/locations.
1571 Report bugs to the package provider.
1572 _ACEOF
1573 ac_status=$?
1576 if test "$ac_init_help" = "recursive"; then
1577 # If there are subdirs, report their specific --help.
1578 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1579 test -d "$ac_dir" ||
1580 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1581 continue
1582 ac_builddir=.
1584 case "$ac_dir" in
1585 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1587 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1588 # A ".." for each directory in $ac_dir_suffix.
1589 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1590 case $ac_top_builddir_sub in
1591 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1592 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1593 esac ;;
1594 esac
1595 ac_abs_top_builddir=$ac_pwd
1596 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1597 # for backward compatibility:
1598 ac_top_builddir=$ac_top_build_prefix
1600 case $srcdir in
1601 .) # We are building in place.
1602 ac_srcdir=.
1603 ac_top_srcdir=$ac_top_builddir_sub
1604 ac_abs_top_srcdir=$ac_pwd ;;
1605 [\\/]* | ?:[\\/]* ) # Absolute name.
1606 ac_srcdir=$srcdir$ac_dir_suffix;
1607 ac_top_srcdir=$srcdir
1608 ac_abs_top_srcdir=$srcdir ;;
1609 *) # Relative name.
1610 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1611 ac_top_srcdir=$ac_top_build_prefix$srcdir
1612 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1613 esac
1614 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1616 cd "$ac_dir" || { ac_status=$?; continue; }
1617 # Check for guested configure.
1618 if test -f "$ac_srcdir/configure.gnu"; then
1619 echo &&
1620 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1621 elif test -f "$ac_srcdir/configure"; then
1622 echo &&
1623 $SHELL "$ac_srcdir/configure" --help=recursive
1624 else
1625 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1626 fi || ac_status=$?
1627 cd "$ac_pwd" || { ac_status=$?; break; }
1628 done
1631 test -n "$ac_init_help" && exit $ac_status
1632 if $ac_init_version; then
1633 cat <<\_ACEOF
1634 binutils configure 2.41.50
1635 generated by GNU Autoconf 2.69
1637 Copyright (C) 2012 Free Software Foundation, Inc.
1638 This configure script is free software; the Free Software Foundation
1639 gives unlimited permission to copy, distribute and modify it.
1640 _ACEOF
1641 exit
1644 ## ------------------------ ##
1645 ## Autoconf initialization. ##
1646 ## ------------------------ ##
1648 # ac_fn_c_try_compile LINENO
1649 # --------------------------
1650 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1651 ac_fn_c_try_compile ()
1653 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1654 rm -f conftest.$ac_objext
1655 if { { ac_try="$ac_compile"
1656 case "(($ac_try" in
1657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1658 *) ac_try_echo=$ac_try;;
1659 esac
1660 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1661 $as_echo "$ac_try_echo"; } >&5
1662 (eval "$ac_compile") 2>conftest.err
1663 ac_status=$?
1664 if test -s conftest.err; then
1665 grep -v '^ *+' conftest.err >conftest.er1
1666 cat conftest.er1 >&5
1667 mv -f conftest.er1 conftest.err
1669 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1670 test $ac_status = 0; } && {
1671 test -z "$ac_c_werror_flag" ||
1672 test ! -s conftest.err
1673 } && test -s conftest.$ac_objext; then :
1674 ac_retval=0
1675 else
1676 $as_echo "$as_me: failed program was:" >&5
1677 sed 's/^/| /' conftest.$ac_ext >&5
1679 ac_retval=1
1681 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1682 as_fn_set_status $ac_retval
1684 } # ac_fn_c_try_compile
1686 # ac_fn_c_try_cpp LINENO
1687 # ----------------------
1688 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1689 ac_fn_c_try_cpp ()
1691 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1692 if { { ac_try="$ac_cpp conftest.$ac_ext"
1693 case "(($ac_try" in
1694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1695 *) ac_try_echo=$ac_try;;
1696 esac
1697 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1698 $as_echo "$ac_try_echo"; } >&5
1699 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1700 ac_status=$?
1701 if test -s conftest.err; then
1702 grep -v '^ *+' conftest.err >conftest.er1
1703 cat conftest.er1 >&5
1704 mv -f conftest.er1 conftest.err
1706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1707 test $ac_status = 0; } > conftest.i && {
1708 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1709 test ! -s conftest.err
1710 }; then :
1711 ac_retval=0
1712 else
1713 $as_echo "$as_me: failed program was:" >&5
1714 sed 's/^/| /' conftest.$ac_ext >&5
1716 ac_retval=1
1718 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1719 as_fn_set_status $ac_retval
1721 } # ac_fn_c_try_cpp
1723 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1724 # -------------------------------------------------------
1725 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1726 # the include files in INCLUDES and setting the cache variable VAR
1727 # accordingly.
1728 ac_fn_c_check_header_mongrel ()
1730 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1731 if eval \${$3+:} false; then :
1732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1733 $as_echo_n "checking for $2... " >&6; }
1734 if eval \${$3+:} false; then :
1735 $as_echo_n "(cached) " >&6
1737 eval ac_res=\$$3
1738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1739 $as_echo "$ac_res" >&6; }
1740 else
1741 # Is the header compilable?
1742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1743 $as_echo_n "checking $2 usability... " >&6; }
1744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1745 /* end confdefs.h. */
1747 #include <$2>
1748 _ACEOF
1749 if ac_fn_c_try_compile "$LINENO"; then :
1750 ac_header_compiler=yes
1751 else
1752 ac_header_compiler=no
1754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1756 $as_echo "$ac_header_compiler" >&6; }
1758 # Is the header present?
1759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1760 $as_echo_n "checking $2 presence... " >&6; }
1761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1762 /* end confdefs.h. */
1763 #include <$2>
1764 _ACEOF
1765 if ac_fn_c_try_cpp "$LINENO"; then :
1766 ac_header_preproc=yes
1767 else
1768 ac_header_preproc=no
1770 rm -f conftest.err conftest.i conftest.$ac_ext
1771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1772 $as_echo "$ac_header_preproc" >&6; }
1774 # So? What about this header?
1775 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1776 yes:no: )
1777 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1778 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1779 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1780 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1782 no:yes:* )
1783 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1784 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1785 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1786 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1787 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1788 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1789 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1790 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1791 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1792 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1794 esac
1795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1796 $as_echo_n "checking for $2... " >&6; }
1797 if eval \${$3+:} false; then :
1798 $as_echo_n "(cached) " >&6
1799 else
1800 eval "$3=\$ac_header_compiler"
1802 eval ac_res=\$$3
1803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1804 $as_echo "$ac_res" >&6; }
1806 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1808 } # ac_fn_c_check_header_mongrel
1810 # ac_fn_c_try_run LINENO
1811 # ----------------------
1812 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1813 # that executables *can* be run.
1814 ac_fn_c_try_run ()
1816 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1817 if { { ac_try="$ac_link"
1818 case "(($ac_try" in
1819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1820 *) ac_try_echo=$ac_try;;
1821 esac
1822 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1823 $as_echo "$ac_try_echo"; } >&5
1824 (eval "$ac_link") 2>&5
1825 ac_status=$?
1826 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1827 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1828 { { case "(($ac_try" in
1829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1830 *) ac_try_echo=$ac_try;;
1831 esac
1832 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1833 $as_echo "$ac_try_echo"; } >&5
1834 (eval "$ac_try") 2>&5
1835 ac_status=$?
1836 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1837 test $ac_status = 0; }; }; then :
1838 ac_retval=0
1839 else
1840 $as_echo "$as_me: program exited with status $ac_status" >&5
1841 $as_echo "$as_me: failed program was:" >&5
1842 sed 's/^/| /' conftest.$ac_ext >&5
1844 ac_retval=$ac_status
1846 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1847 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1848 as_fn_set_status $ac_retval
1850 } # ac_fn_c_try_run
1852 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1853 # -------------------------------------------------------
1854 # Tests whether HEADER exists and can be compiled using the include files in
1855 # INCLUDES, setting the cache variable VAR accordingly.
1856 ac_fn_c_check_header_compile ()
1858 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1860 $as_echo_n "checking for $2... " >&6; }
1861 if eval \${$3+:} false; then :
1862 $as_echo_n "(cached) " >&6
1863 else
1864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1865 /* end confdefs.h. */
1867 #include <$2>
1868 _ACEOF
1869 if ac_fn_c_try_compile "$LINENO"; then :
1870 eval "$3=yes"
1871 else
1872 eval "$3=no"
1874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1876 eval ac_res=\$$3
1877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1878 $as_echo "$ac_res" >&6; }
1879 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1881 } # ac_fn_c_check_header_compile
1883 # ac_fn_c_try_link LINENO
1884 # -----------------------
1885 # Try to link conftest.$ac_ext, and return whether this succeeded.
1886 ac_fn_c_try_link ()
1888 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1889 rm -f conftest.$ac_objext conftest$ac_exeext
1890 if { { ac_try="$ac_link"
1891 case "(($ac_try" in
1892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1893 *) ac_try_echo=$ac_try;;
1894 esac
1895 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1896 $as_echo "$ac_try_echo"; } >&5
1897 (eval "$ac_link") 2>conftest.err
1898 ac_status=$?
1899 if test -s conftest.err; then
1900 grep -v '^ *+' conftest.err >conftest.er1
1901 cat conftest.er1 >&5
1902 mv -f conftest.er1 conftest.err
1904 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1905 test $ac_status = 0; } && {
1906 test -z "$ac_c_werror_flag" ||
1907 test ! -s conftest.err
1908 } && test -s conftest$ac_exeext && {
1909 test "$cross_compiling" = yes ||
1910 test -x conftest$ac_exeext
1911 }; then :
1912 ac_retval=0
1913 else
1914 $as_echo "$as_me: failed program was:" >&5
1915 sed 's/^/| /' conftest.$ac_ext >&5
1917 ac_retval=1
1919 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1920 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1921 # interfere with the next link command; also delete a directory that is
1922 # left behind by Apple's compiler. We do this before executing the actions.
1923 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1924 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1925 as_fn_set_status $ac_retval
1927 } # ac_fn_c_try_link
1929 # ac_fn_c_check_func LINENO FUNC VAR
1930 # ----------------------------------
1931 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1932 ac_fn_c_check_func ()
1934 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1936 $as_echo_n "checking for $2... " >&6; }
1937 if eval \${$3+:} false; then :
1938 $as_echo_n "(cached) " >&6
1939 else
1940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1941 /* end confdefs.h. */
1942 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1943 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1944 #define $2 innocuous_$2
1946 /* System header to define __stub macros and hopefully few prototypes,
1947 which can conflict with char $2 (); below.
1948 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1949 <limits.h> exists even on freestanding compilers. */
1951 #ifdef __STDC__
1952 # include <limits.h>
1953 #else
1954 # include <assert.h>
1955 #endif
1957 #undef $2
1959 /* Override any GCC internal prototype to avoid an error.
1960 Use char because int might match the return type of a GCC
1961 builtin and then its argument prototype would still apply. */
1962 #ifdef __cplusplus
1963 extern "C"
1964 #endif
1965 char $2 ();
1966 /* The GNU C library defines this for functions which it implements
1967 to always fail with ENOSYS. Some functions are actually named
1968 something starting with __ and the normal name is an alias. */
1969 #if defined __stub_$2 || defined __stub___$2
1970 choke me
1971 #endif
1974 main ()
1976 return $2 ();
1978 return 0;
1980 _ACEOF
1981 if ac_fn_c_try_link "$LINENO"; then :
1982 eval "$3=yes"
1983 else
1984 eval "$3=no"
1986 rm -f core conftest.err conftest.$ac_objext \
1987 conftest$ac_exeext conftest.$ac_ext
1989 eval ac_res=\$$3
1990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1991 $as_echo "$ac_res" >&6; }
1992 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1994 } # ac_fn_c_check_func
1996 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1997 # ----------------------------------------------------
1998 # Tries to find if the field MEMBER exists in type AGGR, after including
1999 # INCLUDES, setting cache variable VAR accordingly.
2000 ac_fn_c_check_member ()
2002 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2004 $as_echo_n "checking for $2.$3... " >&6; }
2005 if eval \${$4+:} false; then :
2006 $as_echo_n "(cached) " >&6
2007 else
2008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2009 /* end confdefs.h. */
2012 main ()
2014 static $2 ac_aggr;
2015 if (ac_aggr.$3)
2016 return 0;
2018 return 0;
2020 _ACEOF
2021 if ac_fn_c_try_compile "$LINENO"; then :
2022 eval "$4=yes"
2023 else
2024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2025 /* end confdefs.h. */
2028 main ()
2030 static $2 ac_aggr;
2031 if (sizeof ac_aggr.$3)
2032 return 0;
2034 return 0;
2036 _ACEOF
2037 if ac_fn_c_try_compile "$LINENO"; then :
2038 eval "$4=yes"
2039 else
2040 eval "$4=no"
2042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2046 eval ac_res=\$$4
2047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2048 $as_echo "$ac_res" >&6; }
2049 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2051 } # ac_fn_c_check_member
2053 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2054 # ---------------------------------------------
2055 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2056 # accordingly.
2057 ac_fn_c_check_decl ()
2059 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2060 as_decl_name=`echo $2|sed 's/ *(.*//'`
2061 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2063 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2064 if eval \${$3+:} false; then :
2065 $as_echo_n "(cached) " >&6
2066 else
2067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2068 /* end confdefs.h. */
2071 main ()
2073 #ifndef $as_decl_name
2074 #ifdef __cplusplus
2075 (void) $as_decl_use;
2076 #else
2077 (void) $as_decl_name;
2078 #endif
2079 #endif
2082 return 0;
2084 _ACEOF
2085 if ac_fn_c_try_compile "$LINENO"; then :
2086 eval "$3=yes"
2087 else
2088 eval "$3=no"
2090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2092 eval ac_res=\$$3
2093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2094 $as_echo "$ac_res" >&6; }
2095 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2097 } # ac_fn_c_check_decl
2098 cat >config.log <<_ACEOF
2099 This file contains any messages produced by compilers while
2100 running configure, to aid debugging if configure makes a mistake.
2102 It was created by binutils $as_me 2.41.50, which was
2103 generated by GNU Autoconf 2.69. Invocation command line was
2105 $ $0 $@
2107 _ACEOF
2108 exec 5>>config.log
2110 cat <<_ASUNAME
2111 ## --------- ##
2112 ## Platform. ##
2113 ## --------- ##
2115 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2116 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2117 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2118 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2119 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2121 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2122 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2124 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2125 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2126 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2127 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2128 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2129 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2130 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2132 _ASUNAME
2134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2135 for as_dir in $PATH
2137 IFS=$as_save_IFS
2138 test -z "$as_dir" && as_dir=.
2139 $as_echo "PATH: $as_dir"
2140 done
2141 IFS=$as_save_IFS
2143 } >&5
2145 cat >&5 <<_ACEOF
2148 ## ----------- ##
2149 ## Core tests. ##
2150 ## ----------- ##
2152 _ACEOF
2155 # Keep a trace of the command line.
2156 # Strip out --no-create and --no-recursion so they do not pile up.
2157 # Strip out --silent because we don't want to record it for future runs.
2158 # Also quote any args containing shell meta-characters.
2159 # Make two passes to allow for proper duplicate-argument suppression.
2160 ac_configure_args=
2161 ac_configure_args0=
2162 ac_configure_args1=
2163 ac_must_keep_next=false
2164 for ac_pass in 1 2
2166 for ac_arg
2168 case $ac_arg in
2169 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2170 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2171 | -silent | --silent | --silen | --sile | --sil)
2172 continue ;;
2173 *\'*)
2174 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2175 esac
2176 case $ac_pass in
2177 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2179 as_fn_append ac_configure_args1 " '$ac_arg'"
2180 if test $ac_must_keep_next = true; then
2181 ac_must_keep_next=false # Got value, back to normal.
2182 else
2183 case $ac_arg in
2184 *=* | --config-cache | -C | -disable-* | --disable-* \
2185 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2186 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2187 | -with-* | --with-* | -without-* | --without-* | --x)
2188 case "$ac_configure_args0 " in
2189 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2190 esac
2192 -* ) ac_must_keep_next=true ;;
2193 esac
2195 as_fn_append ac_configure_args " '$ac_arg'"
2197 esac
2198 done
2199 done
2200 { ac_configure_args0=; unset ac_configure_args0;}
2201 { ac_configure_args1=; unset ac_configure_args1;}
2203 # When interrupted or exit'd, cleanup temporary files, and complete
2204 # config.log. We remove comments because anyway the quotes in there
2205 # would cause problems or look ugly.
2206 # WARNING: Use '\'' to represent an apostrophe within the trap.
2207 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2208 trap 'exit_status=$?
2209 # Save into config.log some information that might help in debugging.
2211 echo
2213 $as_echo "## ---------------- ##
2214 ## Cache variables. ##
2215 ## ---------------- ##"
2216 echo
2217 # The following way of writing the cache mishandles newlines in values,
2219 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2220 eval ac_val=\$$ac_var
2221 case $ac_val in #(
2222 *${as_nl}*)
2223 case $ac_var in #(
2224 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2225 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2226 esac
2227 case $ac_var in #(
2228 _ | IFS | as_nl) ;; #(
2229 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2230 *) { eval $ac_var=; unset $ac_var;} ;;
2231 esac ;;
2232 esac
2233 done
2234 (set) 2>&1 |
2235 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2236 *${as_nl}ac_space=\ *)
2237 sed -n \
2238 "s/'\''/'\''\\\\'\'''\''/g;
2239 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2240 ;; #(
2242 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2244 esac |
2245 sort
2247 echo
2249 $as_echo "## ----------------- ##
2250 ## Output variables. ##
2251 ## ----------------- ##"
2252 echo
2253 for ac_var in $ac_subst_vars
2255 eval ac_val=\$$ac_var
2256 case $ac_val in
2257 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2258 esac
2259 $as_echo "$ac_var='\''$ac_val'\''"
2260 done | sort
2261 echo
2263 if test -n "$ac_subst_files"; then
2264 $as_echo "## ------------------- ##
2265 ## File substitutions. ##
2266 ## ------------------- ##"
2267 echo
2268 for ac_var in $ac_subst_files
2270 eval ac_val=\$$ac_var
2271 case $ac_val in
2272 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2273 esac
2274 $as_echo "$ac_var='\''$ac_val'\''"
2275 done | sort
2276 echo
2279 if test -s confdefs.h; then
2280 $as_echo "## ----------- ##
2281 ## confdefs.h. ##
2282 ## ----------- ##"
2283 echo
2284 cat confdefs.h
2285 echo
2287 test "$ac_signal" != 0 &&
2288 $as_echo "$as_me: caught signal $ac_signal"
2289 $as_echo "$as_me: exit $exit_status"
2290 } >&5
2291 rm -f core *.core core.conftest.* &&
2292 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2293 exit $exit_status
2295 for ac_signal in 1 2 13 15; do
2296 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2297 done
2298 ac_signal=0
2300 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2301 rm -f -r conftest* confdefs.h
2303 $as_echo "/* confdefs.h */" > confdefs.h
2305 # Predefined preprocessor variables.
2307 cat >>confdefs.h <<_ACEOF
2308 #define PACKAGE_NAME "$PACKAGE_NAME"
2309 _ACEOF
2311 cat >>confdefs.h <<_ACEOF
2312 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2313 _ACEOF
2315 cat >>confdefs.h <<_ACEOF
2316 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2317 _ACEOF
2319 cat >>confdefs.h <<_ACEOF
2320 #define PACKAGE_STRING "$PACKAGE_STRING"
2321 _ACEOF
2323 cat >>confdefs.h <<_ACEOF
2324 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2325 _ACEOF
2327 cat >>confdefs.h <<_ACEOF
2328 #define PACKAGE_URL "$PACKAGE_URL"
2329 _ACEOF
2332 # Let the site file select an alternate cache file if it wants to.
2333 # Prefer an explicitly selected file to automatically selected ones.
2334 ac_site_file1=NONE
2335 ac_site_file2=NONE
2336 if test -n "$CONFIG_SITE"; then
2337 # We do not want a PATH search for config.site.
2338 case $CONFIG_SITE in #((
2339 -*) ac_site_file1=./$CONFIG_SITE;;
2340 */*) ac_site_file1=$CONFIG_SITE;;
2341 *) ac_site_file1=./$CONFIG_SITE;;
2342 esac
2343 elif test "x$prefix" != xNONE; then
2344 ac_site_file1=$prefix/share/config.site
2345 ac_site_file2=$prefix/etc/config.site
2346 else
2347 ac_site_file1=$ac_default_prefix/share/config.site
2348 ac_site_file2=$ac_default_prefix/etc/config.site
2350 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2352 test "x$ac_site_file" = xNONE && continue
2353 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2354 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2355 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2356 sed 's/^/| /' "$ac_site_file" >&5
2357 . "$ac_site_file" \
2358 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2359 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2360 as_fn_error $? "failed to load site script $ac_site_file
2361 See \`config.log' for more details" "$LINENO" 5; }
2363 done
2365 if test -r "$cache_file"; then
2366 # Some versions of bash will fail to source /dev/null (special files
2367 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2368 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2369 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2370 $as_echo "$as_me: loading cache $cache_file" >&6;}
2371 case $cache_file in
2372 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2373 *) . "./$cache_file";;
2374 esac
2376 else
2377 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2378 $as_echo "$as_me: creating cache $cache_file" >&6;}
2379 >$cache_file
2382 as_fn_append ac_header_list " stdlib.h"
2383 as_fn_append ac_header_list " unistd.h"
2384 as_fn_append ac_header_list " sys/param.h"
2385 # Check that the precious variables saved in the cache have kept the same
2386 # value.
2387 ac_cache_corrupted=false
2388 for ac_var in $ac_precious_vars; do
2389 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2390 eval ac_new_set=\$ac_env_${ac_var}_set
2391 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2392 eval ac_new_val=\$ac_env_${ac_var}_value
2393 case $ac_old_set,$ac_new_set in
2394 set,)
2395 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2396 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2397 ac_cache_corrupted=: ;;
2398 ,set)
2399 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2400 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2401 ac_cache_corrupted=: ;;
2402 ,);;
2404 if test "x$ac_old_val" != "x$ac_new_val"; then
2405 # differences in whitespace do not lead to failure.
2406 ac_old_val_w=`echo x $ac_old_val`
2407 ac_new_val_w=`echo x $ac_new_val`
2408 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2409 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2410 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2411 ac_cache_corrupted=:
2412 else
2413 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2414 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2415 eval $ac_var=\$ac_old_val
2417 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2418 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2419 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2420 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2421 fi;;
2422 esac
2423 # Pass precious variables to config.status.
2424 if test "$ac_new_set" = set; then
2425 case $ac_new_val in
2426 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2427 *) ac_arg=$ac_var=$ac_new_val ;;
2428 esac
2429 case " $ac_configure_args " in
2430 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2431 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2432 esac
2434 done
2435 if $ac_cache_corrupted; then
2436 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2437 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2438 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2439 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2440 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2442 ## -------------------- ##
2443 ## Main body of script. ##
2444 ## -------------------- ##
2446 ac_ext=c
2447 ac_cpp='$CPP $CPPFLAGS'
2448 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2449 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2450 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2458 ac_aux_dir=
2459 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2460 if test -f "$ac_dir/install-sh"; then
2461 ac_aux_dir=$ac_dir
2462 ac_install_sh="$ac_aux_dir/install-sh -c"
2463 break
2464 elif test -f "$ac_dir/install.sh"; then
2465 ac_aux_dir=$ac_dir
2466 ac_install_sh="$ac_aux_dir/install.sh -c"
2467 break
2468 elif test -f "$ac_dir/shtool"; then
2469 ac_aux_dir=$ac_dir
2470 ac_install_sh="$ac_aux_dir/shtool install -c"
2471 break
2473 done
2474 if test -z "$ac_aux_dir"; then
2475 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2478 # These three variables are undocumented and unsupported,
2479 # and are intended to be withdrawn in a future Autoconf release.
2480 # They can cause serious problems if a builder's source tree is in a directory
2481 # whose full name contains unusual characters.
2482 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2483 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2484 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2487 # Make sure we can run config.sub.
2488 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2489 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2492 $as_echo_n "checking build system type... " >&6; }
2493 if ${ac_cv_build+:} false; then :
2494 $as_echo_n "(cached) " >&6
2495 else
2496 ac_build_alias=$build_alias
2497 test "x$ac_build_alias" = x &&
2498 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2499 test "x$ac_build_alias" = x &&
2500 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2501 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2502 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2506 $as_echo "$ac_cv_build" >&6; }
2507 case $ac_cv_build in
2508 *-*-*) ;;
2509 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2510 esac
2511 build=$ac_cv_build
2512 ac_save_IFS=$IFS; IFS='-'
2513 set x $ac_cv_build
2514 shift
2515 build_cpu=$1
2516 build_vendor=$2
2517 shift; shift
2518 # Remember, the first character of IFS is used to create $*,
2519 # except with old shells:
2520 build_os=$*
2521 IFS=$ac_save_IFS
2522 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2526 $as_echo_n "checking host system type... " >&6; }
2527 if ${ac_cv_host+:} false; then :
2528 $as_echo_n "(cached) " >&6
2529 else
2530 if test "x$host_alias" = x; then
2531 ac_cv_host=$ac_cv_build
2532 else
2533 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2534 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2539 $as_echo "$ac_cv_host" >&6; }
2540 case $ac_cv_host in
2541 *-*-*) ;;
2542 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2543 esac
2544 host=$ac_cv_host
2545 ac_save_IFS=$IFS; IFS='-'
2546 set x $ac_cv_host
2547 shift
2548 host_cpu=$1
2549 host_vendor=$2
2550 shift; shift
2551 # Remember, the first character of IFS is used to create $*,
2552 # except with old shells:
2553 host_os=$*
2554 IFS=$ac_save_IFS
2555 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2559 $as_echo_n "checking target system type... " >&6; }
2560 if ${ac_cv_target+:} false; then :
2561 $as_echo_n "(cached) " >&6
2562 else
2563 if test "x$target_alias" = x; then
2564 ac_cv_target=$ac_cv_host
2565 else
2566 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2567 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2572 $as_echo "$ac_cv_target" >&6; }
2573 case $ac_cv_target in
2574 *-*-*) ;;
2575 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2576 esac
2577 target=$ac_cv_target
2578 ac_save_IFS=$IFS; IFS='-'
2579 set x $ac_cv_target
2580 shift
2581 target_cpu=$1
2582 target_vendor=$2
2583 shift; shift
2584 # Remember, the first character of IFS is used to create $*,
2585 # except with old shells:
2586 target_os=$*
2587 IFS=$ac_save_IFS
2588 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2591 # The aliases save the names the user supplied, while $host etc.
2592 # will get canonicalized.
2593 test -n "$target_alias" &&
2594 test "$program_prefix$program_suffix$program_transform_name" = \
2595 NONENONEs,x,x, &&
2596 program_prefix=${target_alias}-
2598 am__api_version='1.15'
2600 # Find a good install program. We prefer a C program (faster),
2601 # so one script is as good as another. But avoid the broken or
2602 # incompatible versions:
2603 # SysV /etc/install, /usr/sbin/install
2604 # SunOS /usr/etc/install
2605 # IRIX /sbin/install
2606 # AIX /bin/install
2607 # AmigaOS /C/install, which installs bootblocks on floppy discs
2608 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2609 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2610 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2611 # OS/2's system install, which has a completely different semantic
2612 # ./install, which can be erroneously created by make from ./install.sh.
2613 # Reject install programs that cannot install multiple files.
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2615 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2616 if test -z "$INSTALL"; then
2617 if ${ac_cv_path_install+:} false; then :
2618 $as_echo_n "(cached) " >&6
2619 else
2620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2621 for as_dir in $PATH
2623 IFS=$as_save_IFS
2624 test -z "$as_dir" && as_dir=.
2625 # Account for people who put trailing slashes in PATH elements.
2626 case $as_dir/ in #((
2627 ./ | .// | /[cC]/* | \
2628 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2629 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2630 /usr/ucb/* ) ;;
2632 # OSF1 and SCO ODT 3.0 have their own names for install.
2633 # Don't use installbsd from OSF since it installs stuff as root
2634 # by default.
2635 for ac_prog in ginstall scoinst install; do
2636 for ac_exec_ext in '' $ac_executable_extensions; do
2637 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2638 if test $ac_prog = install &&
2639 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2640 # AIX install. It has an incompatible calling convention.
2642 elif test $ac_prog = install &&
2643 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2644 # program-specific install script used by HP pwplus--don't use.
2646 else
2647 rm -rf conftest.one conftest.two conftest.dir
2648 echo one > conftest.one
2649 echo two > conftest.two
2650 mkdir conftest.dir
2651 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2652 test -s conftest.one && test -s conftest.two &&
2653 test -s conftest.dir/conftest.one &&
2654 test -s conftest.dir/conftest.two
2655 then
2656 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2657 break 3
2661 done
2662 done
2664 esac
2666 done
2667 IFS=$as_save_IFS
2669 rm -rf conftest.one conftest.two conftest.dir
2672 if test "${ac_cv_path_install+set}" = set; then
2673 INSTALL=$ac_cv_path_install
2674 else
2675 # As a last resort, use the slow shell script. Don't cache a
2676 # value for INSTALL within a source directory, because that will
2677 # break other packages using the cache if that directory is
2678 # removed, or if the value is a relative name.
2679 INSTALL=$ac_install_sh
2682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2683 $as_echo "$INSTALL" >&6; }
2685 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2686 # It thinks the first close brace ends the variable substitution.
2687 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2689 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2691 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2694 $as_echo_n "checking whether build environment is sane... " >&6; }
2695 # Reject unsafe characters in $srcdir or the absolute working directory
2696 # name. Accept space and tab only in the latter.
2697 am_lf='
2699 case `pwd` in
2700 *[\\\"\#\$\&\'\`$am_lf]*)
2701 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2702 esac
2703 case $srcdir in
2704 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2705 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2706 esac
2708 # Do 'set' in a subshell so we don't clobber the current shell's
2709 # arguments. Must try -L first in case configure is actually a
2710 # symlink; some systems play weird games with the mod time of symlinks
2711 # (eg FreeBSD returns the mod time of the symlink's containing
2712 # directory).
2713 if (
2714 am_has_slept=no
2715 for am_try in 1 2; do
2716 echo "timestamp, slept: $am_has_slept" > conftest.file
2717 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2718 if test "$*" = "X"; then
2719 # -L didn't work.
2720 set X `ls -t "$srcdir/configure" conftest.file`
2722 if test "$*" != "X $srcdir/configure conftest.file" \
2723 && test "$*" != "X conftest.file $srcdir/configure"; then
2725 # If neither matched, then we have a broken ls. This can happen
2726 # if, for instance, CONFIG_SHELL is bash and it inherits a
2727 # broken ls alias from the environment. This has actually
2728 # happened. Such a system could not be considered "sane".
2729 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2730 alias in your environment" "$LINENO" 5
2732 if test "$2" = conftest.file || test $am_try -eq 2; then
2733 break
2735 # Just in case.
2736 sleep 1
2737 am_has_slept=yes
2738 done
2739 test "$2" = conftest.file
2741 then
2742 # Ok.
2744 else
2745 as_fn_error $? "newly created file is older than distributed files!
2746 Check your system clock" "$LINENO" 5
2748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2749 $as_echo "yes" >&6; }
2750 # If we didn't sleep, we still need to ensure time stamps of config.status and
2751 # generated files are strictly newer.
2752 am_sleep_pid=
2753 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2754 ( sleep 1 ) &
2755 am_sleep_pid=$!
2758 rm -f conftest.file
2760 test "$program_prefix" != NONE &&
2761 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2762 # Use a double $ so make ignores it.
2763 test "$program_suffix" != NONE &&
2764 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2765 # Double any \ or $.
2766 # By default was `s,x,x', remove it if useless.
2767 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2768 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2770 # Expand $ac_aux_dir to an absolute path.
2771 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2773 if test x"${MISSING+set}" != xset; then
2774 case $am_aux_dir in
2775 *\ * | *\ *)
2776 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2778 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2779 esac
2781 # Use eval to expand $SHELL
2782 if eval "$MISSING --is-lightweight"; then
2783 am_missing_run="$MISSING "
2784 else
2785 am_missing_run=
2786 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2787 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2790 if test x"${install_sh+set}" != xset; then
2791 case $am_aux_dir in
2792 *\ * | *\ *)
2793 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2795 install_sh="\${SHELL} $am_aux_dir/install-sh"
2796 esac
2799 # Installed binaries are usually stripped using 'strip' when the user
2800 # run "make install-strip". However 'strip' might not be the right
2801 # tool to use in cross-compilation environments, therefore Automake
2802 # will honor the 'STRIP' environment variable to overrule this program.
2803 if test "$cross_compiling" != no; then
2804 if test -n "$ac_tool_prefix"; then
2805 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2806 set dummy ${ac_tool_prefix}strip; ac_word=$2
2807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2808 $as_echo_n "checking for $ac_word... " >&6; }
2809 if ${ac_cv_prog_STRIP+:} false; then :
2810 $as_echo_n "(cached) " >&6
2811 else
2812 if test -n "$STRIP"; then
2813 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2814 else
2815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2816 for as_dir in $PATH
2818 IFS=$as_save_IFS
2819 test -z "$as_dir" && as_dir=.
2820 for ac_exec_ext in '' $ac_executable_extensions; do
2821 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2822 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2824 break 2
2826 done
2827 done
2828 IFS=$as_save_IFS
2832 STRIP=$ac_cv_prog_STRIP
2833 if test -n "$STRIP"; then
2834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2835 $as_echo "$STRIP" >&6; }
2836 else
2837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2838 $as_echo "no" >&6; }
2843 if test -z "$ac_cv_prog_STRIP"; then
2844 ac_ct_STRIP=$STRIP
2845 # Extract the first word of "strip", so it can be a program name with args.
2846 set dummy strip; ac_word=$2
2847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2848 $as_echo_n "checking for $ac_word... " >&6; }
2849 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2850 $as_echo_n "(cached) " >&6
2851 else
2852 if test -n "$ac_ct_STRIP"; then
2853 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2854 else
2855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2856 for as_dir in $PATH
2858 IFS=$as_save_IFS
2859 test -z "$as_dir" && as_dir=.
2860 for ac_exec_ext in '' $ac_executable_extensions; do
2861 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2862 ac_cv_prog_ac_ct_STRIP="strip"
2863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2864 break 2
2866 done
2867 done
2868 IFS=$as_save_IFS
2872 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2873 if test -n "$ac_ct_STRIP"; then
2874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2875 $as_echo "$ac_ct_STRIP" >&6; }
2876 else
2877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2878 $as_echo "no" >&6; }
2881 if test "x$ac_ct_STRIP" = x; then
2882 STRIP=":"
2883 else
2884 case $cross_compiling:$ac_tool_warned in
2885 yes:)
2886 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2887 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2888 ac_tool_warned=yes ;;
2889 esac
2890 STRIP=$ac_ct_STRIP
2892 else
2893 STRIP="$ac_cv_prog_STRIP"
2897 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2900 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2901 if test -z "$MKDIR_P"; then
2902 if ${ac_cv_path_mkdir+:} false; then :
2903 $as_echo_n "(cached) " >&6
2904 else
2905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2906 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2908 IFS=$as_save_IFS
2909 test -z "$as_dir" && as_dir=.
2910 for ac_prog in mkdir gmkdir; do
2911 for ac_exec_ext in '' $ac_executable_extensions; do
2912 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2913 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2914 'mkdir (GNU coreutils) '* | \
2915 'mkdir (coreutils) '* | \
2916 'mkdir (fileutils) '4.1*)
2917 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2918 break 3;;
2919 esac
2920 done
2921 done
2922 done
2923 IFS=$as_save_IFS
2927 test -d ./--version && rmdir ./--version
2928 if test "${ac_cv_path_mkdir+set}" = set; then
2929 MKDIR_P="$ac_cv_path_mkdir -p"
2930 else
2931 # As a last resort, use the slow shell script. Don't cache a
2932 # value for MKDIR_P within a source directory, because that will
2933 # break other packages using the cache if that directory is
2934 # removed, or if the value is a relative name.
2935 MKDIR_P="$ac_install_sh -d"
2938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2939 $as_echo "$MKDIR_P" >&6; }
2941 for ac_prog in gawk mawk nawk awk
2943 # Extract the first word of "$ac_prog", so it can be a program name with args.
2944 set dummy $ac_prog; ac_word=$2
2945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2946 $as_echo_n "checking for $ac_word... " >&6; }
2947 if ${ac_cv_prog_AWK+:} false; then :
2948 $as_echo_n "(cached) " >&6
2949 else
2950 if test -n "$AWK"; then
2951 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2952 else
2953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2954 for as_dir in $PATH
2956 IFS=$as_save_IFS
2957 test -z "$as_dir" && as_dir=.
2958 for ac_exec_ext in '' $ac_executable_extensions; do
2959 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2960 ac_cv_prog_AWK="$ac_prog"
2961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2962 break 2
2964 done
2965 done
2966 IFS=$as_save_IFS
2970 AWK=$ac_cv_prog_AWK
2971 if test -n "$AWK"; then
2972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2973 $as_echo "$AWK" >&6; }
2974 else
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2976 $as_echo "no" >&6; }
2980 test -n "$AWK" && break
2981 done
2983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2984 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2985 set x ${MAKE-make}
2986 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2987 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2988 $as_echo_n "(cached) " >&6
2989 else
2990 cat >conftest.make <<\_ACEOF
2991 SHELL = /bin/sh
2992 all:
2993 @echo '@@@%%%=$(MAKE)=@@@%%%'
2994 _ACEOF
2995 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2996 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2997 *@@@%%%=?*=@@@%%%*)
2998 eval ac_cv_prog_make_${ac_make}_set=yes;;
3000 eval ac_cv_prog_make_${ac_make}_set=no;;
3001 esac
3002 rm -f conftest.make
3004 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3006 $as_echo "yes" >&6; }
3007 SET_MAKE=
3008 else
3009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3010 $as_echo "no" >&6; }
3011 SET_MAKE="MAKE=${MAKE-make}"
3014 rm -rf .tst 2>/dev/null
3015 mkdir .tst 2>/dev/null
3016 if test -d .tst; then
3017 am__leading_dot=.
3018 else
3019 am__leading_dot=_
3021 rmdir .tst 2>/dev/null
3023 # Check whether --enable-silent-rules was given.
3024 if test "${enable_silent_rules+set}" = set; then :
3025 enableval=$enable_silent_rules;
3028 case $enable_silent_rules in # (((
3029 yes) AM_DEFAULT_VERBOSITY=0;;
3030 no) AM_DEFAULT_VERBOSITY=1;;
3031 *) AM_DEFAULT_VERBOSITY=1;;
3032 esac
3033 am_make=${MAKE-make}
3034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3035 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3036 if ${am_cv_make_support_nested_variables+:} false; then :
3037 $as_echo_n "(cached) " >&6
3038 else
3039 if $as_echo 'TRUE=$(BAR$(V))
3040 BAR0=false
3041 BAR1=true
3043 am__doit:
3044 @$(TRUE)
3045 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3046 am_cv_make_support_nested_variables=yes
3047 else
3048 am_cv_make_support_nested_variables=no
3051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3052 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3053 if test $am_cv_make_support_nested_variables = yes; then
3054 AM_V='$(V)'
3055 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3056 else
3057 AM_V=$AM_DEFAULT_VERBOSITY
3058 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3060 AM_BACKSLASH='\'
3062 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3063 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3064 # is not polluted with repeated "-I."
3065 am__isrc=' -I$(srcdir)'
3066 # test to see if srcdir already configured
3067 if test -f $srcdir/config.status; then
3068 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3072 # test whether we have cygpath
3073 if test -z "$CYGPATH_W"; then
3074 if (cygpath --version) >/dev/null 2>/dev/null; then
3075 CYGPATH_W='cygpath -w'
3076 else
3077 CYGPATH_W=echo
3082 # Define the identity of the package.
3083 PACKAGE='binutils'
3084 VERSION='2.41.50'
3087 cat >>confdefs.h <<_ACEOF
3088 #define PACKAGE "$PACKAGE"
3089 _ACEOF
3092 cat >>confdefs.h <<_ACEOF
3093 #define VERSION "$VERSION"
3094 _ACEOF
3096 # Some tools Automake needs.
3098 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3101 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3104 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3107 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3110 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3112 # For better backward compatibility. To be removed once Automake 1.9.x
3113 # dies out for good. For more background, see:
3114 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3115 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3116 mkdir_p='$(MKDIR_P)'
3118 # We need awk for the "check" target (and possibly the TAP driver). The
3119 # system "awk" is bad on some platforms.
3120 # Always define AMTAR for backward compatibility. Yes, it's still used
3121 # in the wild :-( We should find a proper way to deprecate it ...
3122 AMTAR='$${TAR-tar}'
3125 # We'll loop over all known methods to create a tar archive until one works.
3126 _am_tools='gnutar pax cpio none'
3128 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3135 # POSIX will say in a future version that running "rm -f" with no argument
3136 # is OK; and we want to be able to make that assumption in our Makefile
3137 # recipes. So use an aggressive probe to check that the usage we want is
3138 # actually supported "in the wild" to an acceptable degree.
3139 # See automake bug#10828.
3140 # To make any issue more visible, cause the running configure to be aborted
3141 # by default if the 'rm' program in use doesn't match our expectations; the
3142 # user can still override this though.
3143 if rm -f && rm -fr && rm -rf; then : OK; else
3144 cat >&2 <<'END'
3145 Oops!
3147 Your 'rm' program seems unable to run without file operands specified
3148 on the command line, even when the '-f' option is present. This is contrary
3149 to the behaviour of most rm programs out there, and not conforming with
3150 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3152 Please tell bug-automake@gnu.org about your system, including the value
3153 of your $PATH and any error possibly output before this message. This
3154 can help us improve future automake versions.
3157 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3158 echo 'Configuration will proceed anyway, since you have set the' >&2
3159 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3160 echo >&2
3161 else
3162 cat >&2 <<'END'
3163 Aborting the configuration process, to ensure you take notice of the issue.
3165 You can download and install GNU coreutils to get an 'rm' implementation
3166 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3168 If you want to complete the configuration process using your problematic
3169 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3170 to "yes", and re-run configure.
3173 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3177 # Check whether --enable-silent-rules was given.
3178 if test "${enable_silent_rules+set}" = set; then :
3179 enableval=$enable_silent_rules;
3182 case $enable_silent_rules in # (((
3183 yes) AM_DEFAULT_VERBOSITY=0;;
3184 no) AM_DEFAULT_VERBOSITY=1;;
3185 *) AM_DEFAULT_VERBOSITY=0;;
3186 esac
3187 am_make=${MAKE-make}
3188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3189 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3190 if ${am_cv_make_support_nested_variables+:} false; then :
3191 $as_echo_n "(cached) " >&6
3192 else
3193 if $as_echo 'TRUE=$(BAR$(V))
3194 BAR0=false
3195 BAR1=true
3197 am__doit:
3198 @$(TRUE)
3199 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3200 am_cv_make_support_nested_variables=yes
3201 else
3202 am_cv_make_support_nested_variables=no
3205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3206 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3207 if test $am_cv_make_support_nested_variables = yes; then
3208 AM_V='$(V)'
3209 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3210 else
3211 AM_V=$AM_DEFAULT_VERBOSITY
3212 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3214 AM_BACKSLASH='\'
3217 ac_ext=c
3218 ac_cpp='$CPP $CPPFLAGS'
3219 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3220 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3221 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3222 if test -n "$ac_tool_prefix"; then
3223 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3224 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3226 $as_echo_n "checking for $ac_word... " >&6; }
3227 if ${ac_cv_prog_CC+:} false; then :
3228 $as_echo_n "(cached) " >&6
3229 else
3230 if test -n "$CC"; then
3231 ac_cv_prog_CC="$CC" # Let the user override the test.
3232 else
3233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3234 for as_dir in $PATH
3236 IFS=$as_save_IFS
3237 test -z "$as_dir" && as_dir=.
3238 for ac_exec_ext in '' $ac_executable_extensions; do
3239 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3240 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3242 break 2
3244 done
3245 done
3246 IFS=$as_save_IFS
3250 CC=$ac_cv_prog_CC
3251 if test -n "$CC"; then
3252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3253 $as_echo "$CC" >&6; }
3254 else
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3256 $as_echo "no" >&6; }
3261 if test -z "$ac_cv_prog_CC"; then
3262 ac_ct_CC=$CC
3263 # Extract the first word of "gcc", so it can be a program name with args.
3264 set dummy gcc; ac_word=$2
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3266 $as_echo_n "checking for $ac_word... " >&6; }
3267 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3268 $as_echo_n "(cached) " >&6
3269 else
3270 if test -n "$ac_ct_CC"; then
3271 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3272 else
3273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3274 for as_dir in $PATH
3276 IFS=$as_save_IFS
3277 test -z "$as_dir" && as_dir=.
3278 for ac_exec_ext in '' $ac_executable_extensions; do
3279 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3280 ac_cv_prog_ac_ct_CC="gcc"
3281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3282 break 2
3284 done
3285 done
3286 IFS=$as_save_IFS
3290 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3291 if test -n "$ac_ct_CC"; then
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3293 $as_echo "$ac_ct_CC" >&6; }
3294 else
3295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3296 $as_echo "no" >&6; }
3299 if test "x$ac_ct_CC" = x; then
3300 CC=""
3301 else
3302 case $cross_compiling:$ac_tool_warned in
3303 yes:)
3304 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3305 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3306 ac_tool_warned=yes ;;
3307 esac
3308 CC=$ac_ct_CC
3310 else
3311 CC="$ac_cv_prog_CC"
3314 if test -z "$CC"; then
3315 if test -n "$ac_tool_prefix"; then
3316 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3317 set dummy ${ac_tool_prefix}cc; ac_word=$2
3318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3319 $as_echo_n "checking for $ac_word... " >&6; }
3320 if ${ac_cv_prog_CC+:} false; then :
3321 $as_echo_n "(cached) " >&6
3322 else
3323 if test -n "$CC"; then
3324 ac_cv_prog_CC="$CC" # Let the user override the test.
3325 else
3326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3327 for as_dir in $PATH
3329 IFS=$as_save_IFS
3330 test -z "$as_dir" && as_dir=.
3331 for ac_exec_ext in '' $ac_executable_extensions; do
3332 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3333 ac_cv_prog_CC="${ac_tool_prefix}cc"
3334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3335 break 2
3337 done
3338 done
3339 IFS=$as_save_IFS
3343 CC=$ac_cv_prog_CC
3344 if test -n "$CC"; then
3345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3346 $as_echo "$CC" >&6; }
3347 else
3348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3349 $as_echo "no" >&6; }
3355 if test -z "$CC"; then
3356 # Extract the first word of "cc", so it can be a program name with args.
3357 set dummy cc; ac_word=$2
3358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3359 $as_echo_n "checking for $ac_word... " >&6; }
3360 if ${ac_cv_prog_CC+:} false; then :
3361 $as_echo_n "(cached) " >&6
3362 else
3363 if test -n "$CC"; then
3364 ac_cv_prog_CC="$CC" # Let the user override the test.
3365 else
3366 ac_prog_rejected=no
3367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3368 for as_dir in $PATH
3370 IFS=$as_save_IFS
3371 test -z "$as_dir" && as_dir=.
3372 for ac_exec_ext in '' $ac_executable_extensions; do
3373 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3374 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3375 ac_prog_rejected=yes
3376 continue
3378 ac_cv_prog_CC="cc"
3379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3380 break 2
3382 done
3383 done
3384 IFS=$as_save_IFS
3386 if test $ac_prog_rejected = yes; then
3387 # We found a bogon in the path, so make sure we never use it.
3388 set dummy $ac_cv_prog_CC
3389 shift
3390 if test $# != 0; then
3391 # We chose a different compiler from the bogus one.
3392 # However, it has the same basename, so the bogon will be chosen
3393 # first if we set CC to just the basename; use the full file name.
3394 shift
3395 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3400 CC=$ac_cv_prog_CC
3401 if test -n "$CC"; then
3402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3403 $as_echo "$CC" >&6; }
3404 else
3405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3406 $as_echo "no" >&6; }
3411 if test -z "$CC"; then
3412 if test -n "$ac_tool_prefix"; then
3413 for ac_prog in cl.exe
3415 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3416 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3418 $as_echo_n "checking for $ac_word... " >&6; }
3419 if ${ac_cv_prog_CC+:} false; then :
3420 $as_echo_n "(cached) " >&6
3421 else
3422 if test -n "$CC"; then
3423 ac_cv_prog_CC="$CC" # Let the user override the test.
3424 else
3425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3426 for as_dir in $PATH
3428 IFS=$as_save_IFS
3429 test -z "$as_dir" && as_dir=.
3430 for ac_exec_ext in '' $ac_executable_extensions; do
3431 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3432 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3434 break 2
3436 done
3437 done
3438 IFS=$as_save_IFS
3442 CC=$ac_cv_prog_CC
3443 if test -n "$CC"; then
3444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3445 $as_echo "$CC" >&6; }
3446 else
3447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3448 $as_echo "no" >&6; }
3452 test -n "$CC" && break
3453 done
3455 if test -z "$CC"; then
3456 ac_ct_CC=$CC
3457 for ac_prog in cl.exe
3459 # Extract the first word of "$ac_prog", so it can be a program name with args.
3460 set dummy $ac_prog; ac_word=$2
3461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3462 $as_echo_n "checking for $ac_word... " >&6; }
3463 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3464 $as_echo_n "(cached) " >&6
3465 else
3466 if test -n "$ac_ct_CC"; then
3467 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3468 else
3469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3470 for as_dir in $PATH
3472 IFS=$as_save_IFS
3473 test -z "$as_dir" && as_dir=.
3474 for ac_exec_ext in '' $ac_executable_extensions; do
3475 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3476 ac_cv_prog_ac_ct_CC="$ac_prog"
3477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3478 break 2
3480 done
3481 done
3482 IFS=$as_save_IFS
3486 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3487 if test -n "$ac_ct_CC"; then
3488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3489 $as_echo "$ac_ct_CC" >&6; }
3490 else
3491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3492 $as_echo "no" >&6; }
3496 test -n "$ac_ct_CC" && break
3497 done
3499 if test "x$ac_ct_CC" = x; then
3500 CC=""
3501 else
3502 case $cross_compiling:$ac_tool_warned in
3503 yes:)
3504 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3505 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3506 ac_tool_warned=yes ;;
3507 esac
3508 CC=$ac_ct_CC
3515 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3516 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3517 as_fn_error $? "no acceptable C compiler found in \$PATH
3518 See \`config.log' for more details" "$LINENO" 5; }
3520 # Provide some information about the compiler.
3521 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3522 set X $ac_compile
3523 ac_compiler=$2
3524 for ac_option in --version -v -V -qversion; do
3525 { { ac_try="$ac_compiler $ac_option >&5"
3526 case "(($ac_try" in
3527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3528 *) ac_try_echo=$ac_try;;
3529 esac
3530 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3531 $as_echo "$ac_try_echo"; } >&5
3532 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3533 ac_status=$?
3534 if test -s conftest.err; then
3535 sed '10a\
3536 ... rest of stderr output deleted ...
3537 10q' conftest.err >conftest.er1
3538 cat conftest.er1 >&5
3540 rm -f conftest.er1 conftest.err
3541 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3542 test $ac_status = 0; }
3543 done
3545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3546 /* end confdefs.h. */
3549 main ()
3553 return 0;
3555 _ACEOF
3556 ac_clean_files_save=$ac_clean_files
3557 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3558 # Try to create an executable without -o first, disregard a.out.
3559 # It will help us diagnose broken compilers, and finding out an intuition
3560 # of exeext.
3561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3562 $as_echo_n "checking whether the C compiler works... " >&6; }
3563 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3565 # The possible output files:
3566 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3568 ac_rmfiles=
3569 for ac_file in $ac_files
3571 case $ac_file in
3572 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3573 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3574 esac
3575 done
3576 rm -f $ac_rmfiles
3578 if { { ac_try="$ac_link_default"
3579 case "(($ac_try" in
3580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3581 *) ac_try_echo=$ac_try;;
3582 esac
3583 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3584 $as_echo "$ac_try_echo"; } >&5
3585 (eval "$ac_link_default") 2>&5
3586 ac_status=$?
3587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3588 test $ac_status = 0; }; then :
3589 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3590 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3591 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3592 # so that the user can short-circuit this test for compilers unknown to
3593 # Autoconf.
3594 for ac_file in $ac_files ''
3596 test -f "$ac_file" || continue
3597 case $ac_file in
3598 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3600 [ab].out )
3601 # We found the default executable, but exeext='' is most
3602 # certainly right.
3603 break;;
3604 *.* )
3605 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3606 then :; else
3607 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3609 # We set ac_cv_exeext here because the later test for it is not
3610 # safe: cross compilers may not add the suffix if given an `-o'
3611 # argument, so we may need to know it at that point already.
3612 # Even if this section looks crufty: it has the advantage of
3613 # actually working.
3614 break;;
3616 break;;
3617 esac
3618 done
3619 test "$ac_cv_exeext" = no && ac_cv_exeext=
3621 else
3622 ac_file=''
3624 if test -z "$ac_file"; then :
3625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3626 $as_echo "no" >&6; }
3627 $as_echo "$as_me: failed program was:" >&5
3628 sed 's/^/| /' conftest.$ac_ext >&5
3630 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3631 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3632 as_fn_error 77 "C compiler cannot create executables
3633 See \`config.log' for more details" "$LINENO" 5; }
3634 else
3635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3636 $as_echo "yes" >&6; }
3638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3639 $as_echo_n "checking for C compiler default output file name... " >&6; }
3640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3641 $as_echo "$ac_file" >&6; }
3642 ac_exeext=$ac_cv_exeext
3644 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3645 ac_clean_files=$ac_clean_files_save
3646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3647 $as_echo_n "checking for suffix of executables... " >&6; }
3648 if { { ac_try="$ac_link"
3649 case "(($ac_try" in
3650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3651 *) ac_try_echo=$ac_try;;
3652 esac
3653 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3654 $as_echo "$ac_try_echo"; } >&5
3655 (eval "$ac_link") 2>&5
3656 ac_status=$?
3657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3658 test $ac_status = 0; }; then :
3659 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3660 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3661 # work properly (i.e., refer to `conftest.exe'), while it won't with
3662 # `rm'.
3663 for ac_file in conftest.exe conftest conftest.*; do
3664 test -f "$ac_file" || continue
3665 case $ac_file in
3666 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3667 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3668 break;;
3669 * ) break;;
3670 esac
3671 done
3672 else
3673 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3674 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3675 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3676 See \`config.log' for more details" "$LINENO" 5; }
3678 rm -f conftest conftest$ac_cv_exeext
3679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3680 $as_echo "$ac_cv_exeext" >&6; }
3682 rm -f conftest.$ac_ext
3683 EXEEXT=$ac_cv_exeext
3684 ac_exeext=$EXEEXT
3685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3686 /* end confdefs.h. */
3687 #include <stdio.h>
3689 main ()
3691 FILE *f = fopen ("conftest.out", "w");
3692 return ferror (f) || fclose (f) != 0;
3695 return 0;
3697 _ACEOF
3698 ac_clean_files="$ac_clean_files conftest.out"
3699 # Check that the compiler produces executables we can run. If not, either
3700 # the compiler is broken, or we cross compile.
3701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3702 $as_echo_n "checking whether we are cross compiling... " >&6; }
3703 if test "$cross_compiling" != yes; then
3704 { { ac_try="$ac_link"
3705 case "(($ac_try" in
3706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3707 *) ac_try_echo=$ac_try;;
3708 esac
3709 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3710 $as_echo "$ac_try_echo"; } >&5
3711 (eval "$ac_link") 2>&5
3712 ac_status=$?
3713 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3714 test $ac_status = 0; }
3715 if { ac_try='./conftest$ac_cv_exeext'
3716 { { case "(($ac_try" in
3717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3718 *) ac_try_echo=$ac_try;;
3719 esac
3720 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3721 $as_echo "$ac_try_echo"; } >&5
3722 (eval "$ac_try") 2>&5
3723 ac_status=$?
3724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3725 test $ac_status = 0; }; }; then
3726 cross_compiling=no
3727 else
3728 if test "$cross_compiling" = maybe; then
3729 cross_compiling=yes
3730 else
3731 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3732 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3733 as_fn_error $? "cannot run C compiled programs.
3734 If you meant to cross compile, use \`--host'.
3735 See \`config.log' for more details" "$LINENO" 5; }
3739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3740 $as_echo "$cross_compiling" >&6; }
3742 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3743 ac_clean_files=$ac_clean_files_save
3744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3745 $as_echo_n "checking for suffix of object files... " >&6; }
3746 if ${ac_cv_objext+:} false; then :
3747 $as_echo_n "(cached) " >&6
3748 else
3749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3750 /* end confdefs.h. */
3753 main ()
3757 return 0;
3759 _ACEOF
3760 rm -f conftest.o conftest.obj
3761 if { { ac_try="$ac_compile"
3762 case "(($ac_try" in
3763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3764 *) ac_try_echo=$ac_try;;
3765 esac
3766 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3767 $as_echo "$ac_try_echo"; } >&5
3768 (eval "$ac_compile") 2>&5
3769 ac_status=$?
3770 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3771 test $ac_status = 0; }; then :
3772 for ac_file in conftest.o conftest.obj conftest.*; do
3773 test -f "$ac_file" || continue;
3774 case $ac_file in
3775 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3776 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3777 break;;
3778 esac
3779 done
3780 else
3781 $as_echo "$as_me: failed program was:" >&5
3782 sed 's/^/| /' conftest.$ac_ext >&5
3784 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3785 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3786 as_fn_error $? "cannot compute suffix of object files: cannot compile
3787 See \`config.log' for more details" "$LINENO" 5; }
3789 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3792 $as_echo "$ac_cv_objext" >&6; }
3793 OBJEXT=$ac_cv_objext
3794 ac_objext=$OBJEXT
3795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3796 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3797 if ${ac_cv_c_compiler_gnu+:} false; then :
3798 $as_echo_n "(cached) " >&6
3799 else
3800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3801 /* end confdefs.h. */
3804 main ()
3806 #ifndef __GNUC__
3807 choke me
3808 #endif
3811 return 0;
3813 _ACEOF
3814 if ac_fn_c_try_compile "$LINENO"; then :
3815 ac_compiler_gnu=yes
3816 else
3817 ac_compiler_gnu=no
3819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3820 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3824 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3825 if test $ac_compiler_gnu = yes; then
3826 GCC=yes
3827 else
3828 GCC=
3830 ac_test_CFLAGS=${CFLAGS+set}
3831 ac_save_CFLAGS=$CFLAGS
3832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3833 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3834 if ${ac_cv_prog_cc_g+:} false; then :
3835 $as_echo_n "(cached) " >&6
3836 else
3837 ac_save_c_werror_flag=$ac_c_werror_flag
3838 ac_c_werror_flag=yes
3839 ac_cv_prog_cc_g=no
3840 CFLAGS="-g"
3841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3842 /* end confdefs.h. */
3845 main ()
3849 return 0;
3851 _ACEOF
3852 if ac_fn_c_try_compile "$LINENO"; then :
3853 ac_cv_prog_cc_g=yes
3854 else
3855 CFLAGS=""
3856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3857 /* end confdefs.h. */
3860 main ()
3864 return 0;
3866 _ACEOF
3867 if ac_fn_c_try_compile "$LINENO"; then :
3869 else
3870 ac_c_werror_flag=$ac_save_c_werror_flag
3871 CFLAGS="-g"
3872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3873 /* end confdefs.h. */
3876 main ()
3880 return 0;
3882 _ACEOF
3883 if ac_fn_c_try_compile "$LINENO"; then :
3884 ac_cv_prog_cc_g=yes
3886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3891 ac_c_werror_flag=$ac_save_c_werror_flag
3893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3894 $as_echo "$ac_cv_prog_cc_g" >&6; }
3895 if test "$ac_test_CFLAGS" = set; then
3896 CFLAGS=$ac_save_CFLAGS
3897 elif test $ac_cv_prog_cc_g = yes; then
3898 if test "$GCC" = yes; then
3899 CFLAGS="-g -O2"
3900 else
3901 CFLAGS="-g"
3903 else
3904 if test "$GCC" = yes; then
3905 CFLAGS="-O2"
3906 else
3907 CFLAGS=
3910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3911 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3912 if ${ac_cv_prog_cc_c89+:} false; then :
3913 $as_echo_n "(cached) " >&6
3914 else
3915 ac_cv_prog_cc_c89=no
3916 ac_save_CC=$CC
3917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3918 /* end confdefs.h. */
3919 #include <stdarg.h>
3920 #include <stdio.h>
3921 struct stat;
3922 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3923 struct buf { int x; };
3924 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3925 static char *e (p, i)
3926 char **p;
3927 int i;
3929 return p[i];
3931 static char *f (char * (*g) (char **, int), char **p, ...)
3933 char *s;
3934 va_list v;
3935 va_start (v,p);
3936 s = g (p, va_arg (v,int));
3937 va_end (v);
3938 return s;
3941 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3942 function prototypes and stuff, but not '\xHH' hex character constants.
3943 These don't provoke an error unfortunately, instead are silently treated
3944 as 'x'. The following induces an error, until -std is added to get
3945 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3946 array size at least. It's necessary to write '\x00'==0 to get something
3947 that's true only with -std. */
3948 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3950 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3951 inside strings and character constants. */
3952 #define FOO(x) 'x'
3953 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3955 int test (int i, double x);
3956 struct s1 {int (*f) (int a);};
3957 struct s2 {int (*f) (double a);};
3958 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3959 int argc;
3960 char **argv;
3962 main ()
3964 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3966 return 0;
3968 _ACEOF
3969 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3970 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3972 CC="$ac_save_CC $ac_arg"
3973 if ac_fn_c_try_compile "$LINENO"; then :
3974 ac_cv_prog_cc_c89=$ac_arg
3976 rm -f core conftest.err conftest.$ac_objext
3977 test "x$ac_cv_prog_cc_c89" != "xno" && break
3978 done
3979 rm -f conftest.$ac_ext
3980 CC=$ac_save_CC
3983 # AC_CACHE_VAL
3984 case "x$ac_cv_prog_cc_c89" in
3986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3987 $as_echo "none needed" >&6; } ;;
3988 xno)
3989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3990 $as_echo "unsupported" >&6; } ;;
3992 CC="$CC $ac_cv_prog_cc_c89"
3993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3994 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3995 esac
3996 if test "x$ac_cv_prog_cc_c89" != xno; then :
4000 ac_ext=c
4001 ac_cpp='$CPP $CPPFLAGS'
4002 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4003 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4004 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4006 ac_ext=c
4007 ac_cpp='$CPP $CPPFLAGS'
4008 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4009 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4010 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4012 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4013 if ${am_cv_prog_cc_c_o+:} false; then :
4014 $as_echo_n "(cached) " >&6
4015 else
4016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4017 /* end confdefs.h. */
4020 main ()
4024 return 0;
4026 _ACEOF
4027 # Make sure it works both with $CC and with simple cc.
4028 # Following AC_PROG_CC_C_O, we do the test twice because some
4029 # compilers refuse to overwrite an existing .o file with -o,
4030 # though they will create one.
4031 am_cv_prog_cc_c_o=yes
4032 for am_i in 1 2; do
4033 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4034 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4035 ac_status=$?
4036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4037 (exit $ac_status); } \
4038 && test -f conftest2.$ac_objext; then
4039 : OK
4040 else
4041 am_cv_prog_cc_c_o=no
4042 break
4044 done
4045 rm -f core conftest*
4046 unset am_i
4048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4049 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4050 if test "$am_cv_prog_cc_c_o" != yes; then
4051 # Losing compiler, so override with the script.
4052 # FIXME: It is wrong to rewrite CC.
4053 # But if we don't then we get into trouble of one sort or another.
4054 # A longer-term fix would be to have automake use am__CC in this case,
4055 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4056 CC="$am_aux_dir/compile $CC"
4058 ac_ext=c
4059 ac_cpp='$CPP $CPPFLAGS'
4060 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4061 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4062 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4064 DEPDIR="${am__leading_dot}deps"
4066 ac_config_commands="$ac_config_commands depfiles"
4069 am_make=${MAKE-make}
4070 cat > confinc << 'END'
4071 am__doit:
4072 @echo this is the am__doit target
4073 .PHONY: am__doit
4075 # If we don't find an include directive, just comment out the code.
4076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4077 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4078 am__include="#"
4079 am__quote=
4080 _am_result=none
4081 # First try GNU make style include.
4082 echo "include confinc" > confmf
4083 # Ignore all kinds of additional output from 'make'.
4084 case `$am_make -s -f confmf 2> /dev/null` in #(
4085 *the\ am__doit\ target*)
4086 am__include=include
4087 am__quote=
4088 _am_result=GNU
4090 esac
4091 # Now try BSD make style include.
4092 if test "$am__include" = "#"; then
4093 echo '.include "confinc"' > confmf
4094 case `$am_make -s -f confmf 2> /dev/null` in #(
4095 *the\ am__doit\ target*)
4096 am__include=.include
4097 am__quote="\""
4098 _am_result=BSD
4100 esac
4104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4105 $as_echo "$_am_result" >&6; }
4106 rm -f confinc confmf
4108 # Check whether --enable-dependency-tracking was given.
4109 if test "${enable_dependency_tracking+set}" = set; then :
4110 enableval=$enable_dependency_tracking;
4113 if test "x$enable_dependency_tracking" != xno; then
4114 am_depcomp="$ac_aux_dir/depcomp"
4115 AMDEPBACKSLASH='\'
4116 am__nodep='_no'
4118 if test "x$enable_dependency_tracking" != xno; then
4119 AMDEP_TRUE=
4120 AMDEP_FALSE='#'
4121 else
4122 AMDEP_TRUE='#'
4123 AMDEP_FALSE=
4128 depcc="$CC" am_compiler_list=
4130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4131 $as_echo_n "checking dependency style of $depcc... " >&6; }
4132 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4133 $as_echo_n "(cached) " >&6
4134 else
4135 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4136 # We make a subdir and do the tests there. Otherwise we can end up
4137 # making bogus files that we don't know about and never remove. For
4138 # instance it was reported that on HP-UX the gcc test will end up
4139 # making a dummy file named 'D' -- because '-MD' means "put the output
4140 # in D".
4141 rm -rf conftest.dir
4142 mkdir conftest.dir
4143 # Copy depcomp to subdir because otherwise we won't find it if we're
4144 # using a relative directory.
4145 cp "$am_depcomp" conftest.dir
4146 cd conftest.dir
4147 # We will build objects and dependencies in a subdirectory because
4148 # it helps to detect inapplicable dependency modes. For instance
4149 # both Tru64's cc and ICC support -MD to output dependencies as a
4150 # side effect of compilation, but ICC will put the dependencies in
4151 # the current directory while Tru64 will put them in the object
4152 # directory.
4153 mkdir sub
4155 am_cv_CC_dependencies_compiler_type=none
4156 if test "$am_compiler_list" = ""; then
4157 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4159 am__universal=false
4160 case " $depcc " in #(
4161 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4162 esac
4164 for depmode in $am_compiler_list; do
4165 # Setup a source with many dependencies, because some compilers
4166 # like to wrap large dependency lists on column 80 (with \), and
4167 # we should not choose a depcomp mode which is confused by this.
4169 # We need to recreate these files for each test, as the compiler may
4170 # overwrite some of them when testing with obscure command lines.
4171 # This happens at least with the AIX C compiler.
4172 : > sub/conftest.c
4173 for i in 1 2 3 4 5 6; do
4174 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4175 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4176 # Solaris 10 /bin/sh.
4177 echo '/* dummy */' > sub/conftst$i.h
4178 done
4179 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4181 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4182 # mode. It turns out that the SunPro C++ compiler does not properly
4183 # handle '-M -o', and we need to detect this. Also, some Intel
4184 # versions had trouble with output in subdirs.
4185 am__obj=sub/conftest.${OBJEXT-o}
4186 am__minus_obj="-o $am__obj"
4187 case $depmode in
4188 gcc)
4189 # This depmode causes a compiler race in universal mode.
4190 test "$am__universal" = false || continue
4192 nosideeffect)
4193 # After this tag, mechanisms are not by side-effect, so they'll
4194 # only be used when explicitly requested.
4195 if test "x$enable_dependency_tracking" = xyes; then
4196 continue
4197 else
4198 break
4201 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4202 # This compiler won't grok '-c -o', but also, the minuso test has
4203 # not run yet. These depmodes are late enough in the game, and
4204 # so weak that their functioning should not be impacted.
4205 am__obj=conftest.${OBJEXT-o}
4206 am__minus_obj=
4208 none) break ;;
4209 esac
4210 if depmode=$depmode \
4211 source=sub/conftest.c object=$am__obj \
4212 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4213 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4214 >/dev/null 2>conftest.err &&
4215 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4216 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4217 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4218 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4219 # icc doesn't choke on unknown options, it will just issue warnings
4220 # or remarks (even with -Werror). So we grep stderr for any message
4221 # that says an option was ignored or not supported.
4222 # When given -MP, icc 7.0 and 7.1 complain thusly:
4223 # icc: Command line warning: ignoring option '-M'; no argument required
4224 # The diagnosis changed in icc 8.0:
4225 # icc: Command line remark: option '-MP' not supported
4226 if (grep 'ignoring option' conftest.err ||
4227 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4228 am_cv_CC_dependencies_compiler_type=$depmode
4229 break
4232 done
4234 cd ..
4235 rm -rf conftest.dir
4236 else
4237 am_cv_CC_dependencies_compiler_type=none
4241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4242 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4243 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4246 test "x$enable_dependency_tracking" != xno \
4247 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4248 am__fastdepCC_TRUE=
4249 am__fastdepCC_FALSE='#'
4250 else
4251 am__fastdepCC_TRUE='#'
4252 am__fastdepCC_FALSE=
4257 ac_ext=c
4258 ac_cpp='$CPP $CPPFLAGS'
4259 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4260 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4261 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4263 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4264 # On Suns, sometimes $CPP names a directory.
4265 if test -n "$CPP" && test -d "$CPP"; then
4266 CPP=
4268 if test -z "$CPP"; then
4269 if ${ac_cv_prog_CPP+:} false; then :
4270 $as_echo_n "(cached) " >&6
4271 else
4272 # Double quotes because CPP needs to be expanded
4273 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4275 ac_preproc_ok=false
4276 for ac_c_preproc_warn_flag in '' yes
4278 # Use a header file that comes with gcc, so configuring glibc
4279 # with a fresh cross-compiler works.
4280 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4281 # <limits.h> exists even on freestanding compilers.
4282 # On the NeXT, cc -E runs the code through the compiler's parser,
4283 # not just through cpp. "Syntax error" is here to catch this case.
4284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4285 /* end confdefs.h. */
4286 #ifdef __STDC__
4287 # include <limits.h>
4288 #else
4289 # include <assert.h>
4290 #endif
4291 Syntax error
4292 _ACEOF
4293 if ac_fn_c_try_cpp "$LINENO"; then :
4295 else
4296 # Broken: fails on valid input.
4297 continue
4299 rm -f conftest.err conftest.i conftest.$ac_ext
4301 # OK, works on sane cases. Now check whether nonexistent headers
4302 # can be detected and how.
4303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4304 /* end confdefs.h. */
4305 #include <ac_nonexistent.h>
4306 _ACEOF
4307 if ac_fn_c_try_cpp "$LINENO"; then :
4308 # Broken: success on invalid input.
4309 continue
4310 else
4311 # Passes both tests.
4312 ac_preproc_ok=:
4313 break
4315 rm -f conftest.err conftest.i conftest.$ac_ext
4317 done
4318 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4319 rm -f conftest.i conftest.err conftest.$ac_ext
4320 if $ac_preproc_ok; then :
4321 break
4324 done
4325 ac_cv_prog_CPP=$CPP
4328 CPP=$ac_cv_prog_CPP
4329 else
4330 ac_cv_prog_CPP=$CPP
4332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4333 $as_echo "$CPP" >&6; }
4334 ac_preproc_ok=false
4335 for ac_c_preproc_warn_flag in '' yes
4337 # Use a header file that comes with gcc, so configuring glibc
4338 # with a fresh cross-compiler works.
4339 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4340 # <limits.h> exists even on freestanding compilers.
4341 # On the NeXT, cc -E runs the code through the compiler's parser,
4342 # not just through cpp. "Syntax error" is here to catch this case.
4343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4344 /* end confdefs.h. */
4345 #ifdef __STDC__
4346 # include <limits.h>
4347 #else
4348 # include <assert.h>
4349 #endif
4350 Syntax error
4351 _ACEOF
4352 if ac_fn_c_try_cpp "$LINENO"; then :
4354 else
4355 # Broken: fails on valid input.
4356 continue
4358 rm -f conftest.err conftest.i conftest.$ac_ext
4360 # OK, works on sane cases. Now check whether nonexistent headers
4361 # can be detected and how.
4362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4363 /* end confdefs.h. */
4364 #include <ac_nonexistent.h>
4365 _ACEOF
4366 if ac_fn_c_try_cpp "$LINENO"; then :
4367 # Broken: success on invalid input.
4368 continue
4369 else
4370 # Passes both tests.
4371 ac_preproc_ok=:
4372 break
4374 rm -f conftest.err conftest.i conftest.$ac_ext
4376 done
4377 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4378 rm -f conftest.i conftest.err conftest.$ac_ext
4379 if $ac_preproc_ok; then :
4381 else
4382 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4383 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4384 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4385 See \`config.log' for more details" "$LINENO" 5; }
4388 ac_ext=c
4389 ac_cpp='$CPP $CPPFLAGS'
4390 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4391 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4392 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4396 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4397 if ${ac_cv_path_GREP+:} false; then :
4398 $as_echo_n "(cached) " >&6
4399 else
4400 if test -z "$GREP"; then
4401 ac_path_GREP_found=false
4402 # Loop through the user's path and test for each of PROGNAME-LIST
4403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4404 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4406 IFS=$as_save_IFS
4407 test -z "$as_dir" && as_dir=.
4408 for ac_prog in grep ggrep; do
4409 for ac_exec_ext in '' $ac_executable_extensions; do
4410 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4411 as_fn_executable_p "$ac_path_GREP" || continue
4412 # Check for GNU ac_path_GREP and select it if it is found.
4413 # Check for GNU $ac_path_GREP
4414 case `"$ac_path_GREP" --version 2>&1` in
4415 *GNU*)
4416 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4418 ac_count=0
4419 $as_echo_n 0123456789 >"conftest.in"
4420 while :
4422 cat "conftest.in" "conftest.in" >"conftest.tmp"
4423 mv "conftest.tmp" "conftest.in"
4424 cp "conftest.in" "conftest.nl"
4425 $as_echo 'GREP' >> "conftest.nl"
4426 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4427 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4428 as_fn_arith $ac_count + 1 && ac_count=$as_val
4429 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4430 # Best one so far, save it but keep looking for a better one
4431 ac_cv_path_GREP="$ac_path_GREP"
4432 ac_path_GREP_max=$ac_count
4434 # 10*(2^10) chars as input seems more than enough
4435 test $ac_count -gt 10 && break
4436 done
4437 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4438 esac
4440 $ac_path_GREP_found && break 3
4441 done
4442 done
4443 done
4444 IFS=$as_save_IFS
4445 if test -z "$ac_cv_path_GREP"; then
4446 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4448 else
4449 ac_cv_path_GREP=$GREP
4453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4454 $as_echo "$ac_cv_path_GREP" >&6; }
4455 GREP="$ac_cv_path_GREP"
4458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4459 $as_echo_n "checking for egrep... " >&6; }
4460 if ${ac_cv_path_EGREP+:} false; then :
4461 $as_echo_n "(cached) " >&6
4462 else
4463 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4464 then ac_cv_path_EGREP="$GREP -E"
4465 else
4466 if test -z "$EGREP"; then
4467 ac_path_EGREP_found=false
4468 # Loop through the user's path and test for each of PROGNAME-LIST
4469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4470 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4472 IFS=$as_save_IFS
4473 test -z "$as_dir" && as_dir=.
4474 for ac_prog in egrep; do
4475 for ac_exec_ext in '' $ac_executable_extensions; do
4476 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4477 as_fn_executable_p "$ac_path_EGREP" || continue
4478 # Check for GNU ac_path_EGREP and select it if it is found.
4479 # Check for GNU $ac_path_EGREP
4480 case `"$ac_path_EGREP" --version 2>&1` in
4481 *GNU*)
4482 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4484 ac_count=0
4485 $as_echo_n 0123456789 >"conftest.in"
4486 while :
4488 cat "conftest.in" "conftest.in" >"conftest.tmp"
4489 mv "conftest.tmp" "conftest.in"
4490 cp "conftest.in" "conftest.nl"
4491 $as_echo 'EGREP' >> "conftest.nl"
4492 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4493 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4494 as_fn_arith $ac_count + 1 && ac_count=$as_val
4495 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4496 # Best one so far, save it but keep looking for a better one
4497 ac_cv_path_EGREP="$ac_path_EGREP"
4498 ac_path_EGREP_max=$ac_count
4500 # 10*(2^10) chars as input seems more than enough
4501 test $ac_count -gt 10 && break
4502 done
4503 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4504 esac
4506 $ac_path_EGREP_found && break 3
4507 done
4508 done
4509 done
4510 IFS=$as_save_IFS
4511 if test -z "$ac_cv_path_EGREP"; then
4512 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4514 else
4515 ac_cv_path_EGREP=$EGREP
4520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4521 $as_echo "$ac_cv_path_EGREP" >&6; }
4522 EGREP="$ac_cv_path_EGREP"
4525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4526 $as_echo_n "checking for ANSI C header files... " >&6; }
4527 if ${ac_cv_header_stdc+:} false; then :
4528 $as_echo_n "(cached) " >&6
4529 else
4530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4531 /* end confdefs.h. */
4532 #include <stdlib.h>
4533 #include <stdarg.h>
4534 #include <string.h>
4535 #include <float.h>
4538 main ()
4542 return 0;
4544 _ACEOF
4545 if ac_fn_c_try_compile "$LINENO"; then :
4546 ac_cv_header_stdc=yes
4547 else
4548 ac_cv_header_stdc=no
4550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4552 if test $ac_cv_header_stdc = yes; then
4553 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4555 /* end confdefs.h. */
4556 #include <string.h>
4558 _ACEOF
4559 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4560 $EGREP "memchr" >/dev/null 2>&1; then :
4562 else
4563 ac_cv_header_stdc=no
4565 rm -f conftest*
4569 if test $ac_cv_header_stdc = yes; then
4570 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4572 /* end confdefs.h. */
4573 #include <stdlib.h>
4575 _ACEOF
4576 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4577 $EGREP "free" >/dev/null 2>&1; then :
4579 else
4580 ac_cv_header_stdc=no
4582 rm -f conftest*
4586 if test $ac_cv_header_stdc = yes; then
4587 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4588 if test "$cross_compiling" = yes; then :
4590 else
4591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4592 /* end confdefs.h. */
4593 #include <ctype.h>
4594 #include <stdlib.h>
4595 #if ((' ' & 0x0FF) == 0x020)
4596 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4597 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4598 #else
4599 # define ISLOWER(c) \
4600 (('a' <= (c) && (c) <= 'i') \
4601 || ('j' <= (c) && (c) <= 'r') \
4602 || ('s' <= (c) && (c) <= 'z'))
4603 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4604 #endif
4606 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4608 main ()
4610 int i;
4611 for (i = 0; i < 256; i++)
4612 if (XOR (islower (i), ISLOWER (i))
4613 || toupper (i) != TOUPPER (i))
4614 return 2;
4615 return 0;
4617 _ACEOF
4618 if ac_fn_c_try_run "$LINENO"; then :
4620 else
4621 ac_cv_header_stdc=no
4623 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4624 conftest.$ac_objext conftest.beam conftest.$ac_ext
4629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4630 $as_echo "$ac_cv_header_stdc" >&6; }
4631 if test $ac_cv_header_stdc = yes; then
4633 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4637 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4638 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4639 inttypes.h stdint.h unistd.h
4640 do :
4641 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4642 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4644 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4645 cat >>confdefs.h <<_ACEOF
4646 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4647 _ACEOF
4651 done
4655 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4656 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4657 MINIX=yes
4658 else
4659 MINIX=
4663 if test "$MINIX" = yes; then
4665 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4668 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4671 $as_echo "#define _MINIX 1" >>confdefs.h
4676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4677 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4678 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4679 $as_echo_n "(cached) " >&6
4680 else
4681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4682 /* end confdefs.h. */
4684 # define __EXTENSIONS__ 1
4685 $ac_includes_default
4687 main ()
4691 return 0;
4693 _ACEOF
4694 if ac_fn_c_try_compile "$LINENO"; then :
4695 ac_cv_safe_to_define___extensions__=yes
4696 else
4697 ac_cv_safe_to_define___extensions__=no
4699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4702 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4703 test $ac_cv_safe_to_define___extensions__ = yes &&
4704 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4706 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4708 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4710 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4712 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4718 case `pwd` in
4719 *\ * | *\ *)
4720 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4721 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4722 esac
4726 macro_version='2.2.7a'
4727 macro_revision='1.3134'
4741 ltmain="$ac_aux_dir/ltmain.sh"
4743 # Backslashify metacharacters that are still active within
4744 # double-quoted strings.
4745 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4747 # Same as above, but do not quote variable references.
4748 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4750 # Sed substitution to delay expansion of an escaped shell variable in a
4751 # double_quote_subst'ed string.
4752 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4754 # Sed substitution to delay expansion of an escaped single quote.
4755 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4757 # Sed substitution to avoid accidental globbing in evaled expressions
4758 no_glob_subst='s/\*/\\\*/g'
4760 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4761 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4762 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4765 $as_echo_n "checking how to print strings... " >&6; }
4766 # Test print first, because it will be a builtin if present.
4767 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4768 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4769 ECHO='print -r --'
4770 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4771 ECHO='printf %s\n'
4772 else
4773 # Use this function as a fallback that always works.
4774 func_fallback_echo ()
4776 eval 'cat <<_LTECHO_EOF
4778 _LTECHO_EOF'
4780 ECHO='func_fallback_echo'
4783 # func_echo_all arg...
4784 # Invoke $ECHO with all args, space-separated.
4785 func_echo_all ()
4787 $ECHO ""
4790 case "$ECHO" in
4791 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4792 $as_echo "printf" >&6; } ;;
4793 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4794 $as_echo "print -r" >&6; } ;;
4795 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4796 $as_echo "cat" >&6; } ;;
4797 esac
4812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4813 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4814 if ${ac_cv_path_SED+:} false; then :
4815 $as_echo_n "(cached) " >&6
4816 else
4817 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4818 for ac_i in 1 2 3 4 5 6 7; do
4819 ac_script="$ac_script$as_nl$ac_script"
4820 done
4821 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4822 { ac_script=; unset ac_script;}
4823 if test -z "$SED"; then
4824 ac_path_SED_found=false
4825 # Loop through the user's path and test for each of PROGNAME-LIST
4826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4827 for as_dir in $PATH
4829 IFS=$as_save_IFS
4830 test -z "$as_dir" && as_dir=.
4831 for ac_prog in sed gsed; do
4832 for ac_exec_ext in '' $ac_executable_extensions; do
4833 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4834 as_fn_executable_p "$ac_path_SED" || continue
4835 # Check for GNU ac_path_SED and select it if it is found.
4836 # Check for GNU $ac_path_SED
4837 case `"$ac_path_SED" --version 2>&1` in
4838 *GNU*)
4839 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4841 ac_count=0
4842 $as_echo_n 0123456789 >"conftest.in"
4843 while :
4845 cat "conftest.in" "conftest.in" >"conftest.tmp"
4846 mv "conftest.tmp" "conftest.in"
4847 cp "conftest.in" "conftest.nl"
4848 $as_echo '' >> "conftest.nl"
4849 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4850 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4851 as_fn_arith $ac_count + 1 && ac_count=$as_val
4852 if test $ac_count -gt ${ac_path_SED_max-0}; then
4853 # Best one so far, save it but keep looking for a better one
4854 ac_cv_path_SED="$ac_path_SED"
4855 ac_path_SED_max=$ac_count
4857 # 10*(2^10) chars as input seems more than enough
4858 test $ac_count -gt 10 && break
4859 done
4860 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4861 esac
4863 $ac_path_SED_found && break 3
4864 done
4865 done
4866 done
4867 IFS=$as_save_IFS
4868 if test -z "$ac_cv_path_SED"; then
4869 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4871 else
4872 ac_cv_path_SED=$SED
4876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4877 $as_echo "$ac_cv_path_SED" >&6; }
4878 SED="$ac_cv_path_SED"
4879 rm -f conftest.sed
4881 test -z "$SED" && SED=sed
4882 Xsed="$SED -e 1s/^X//"
4894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4895 $as_echo_n "checking for fgrep... " >&6; }
4896 if ${ac_cv_path_FGREP+:} false; then :
4897 $as_echo_n "(cached) " >&6
4898 else
4899 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4900 then ac_cv_path_FGREP="$GREP -F"
4901 else
4902 if test -z "$FGREP"; then
4903 ac_path_FGREP_found=false
4904 # Loop through the user's path and test for each of PROGNAME-LIST
4905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4906 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4908 IFS=$as_save_IFS
4909 test -z "$as_dir" && as_dir=.
4910 for ac_prog in fgrep; do
4911 for ac_exec_ext in '' $ac_executable_extensions; do
4912 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4913 as_fn_executable_p "$ac_path_FGREP" || continue
4914 # Check for GNU ac_path_FGREP and select it if it is found.
4915 # Check for GNU $ac_path_FGREP
4916 case `"$ac_path_FGREP" --version 2>&1` in
4917 *GNU*)
4918 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4920 ac_count=0
4921 $as_echo_n 0123456789 >"conftest.in"
4922 while :
4924 cat "conftest.in" "conftest.in" >"conftest.tmp"
4925 mv "conftest.tmp" "conftest.in"
4926 cp "conftest.in" "conftest.nl"
4927 $as_echo 'FGREP' >> "conftest.nl"
4928 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4929 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4930 as_fn_arith $ac_count + 1 && ac_count=$as_val
4931 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4932 # Best one so far, save it but keep looking for a better one
4933 ac_cv_path_FGREP="$ac_path_FGREP"
4934 ac_path_FGREP_max=$ac_count
4936 # 10*(2^10) chars as input seems more than enough
4937 test $ac_count -gt 10 && break
4938 done
4939 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4940 esac
4942 $ac_path_FGREP_found && break 3
4943 done
4944 done
4945 done
4946 IFS=$as_save_IFS
4947 if test -z "$ac_cv_path_FGREP"; then
4948 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4950 else
4951 ac_cv_path_FGREP=$FGREP
4956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4957 $as_echo "$ac_cv_path_FGREP" >&6; }
4958 FGREP="$ac_cv_path_FGREP"
4961 test -z "$GREP" && GREP=grep
4981 # Check whether --with-gnu-ld was given.
4982 if test "${with_gnu_ld+set}" = set; then :
4983 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4984 else
4985 with_gnu_ld=no
4988 ac_prog=ld
4989 if test "$GCC" = yes; then
4990 # Check if gcc -print-prog-name=ld gives a path.
4991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4992 $as_echo_n "checking for ld used by $CC... " >&6; }
4993 case $host in
4994 *-*-mingw*)
4995 # gcc leaves a trailing carriage return which upsets mingw
4996 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4998 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4999 esac
5000 case $ac_prog in
5001 # Accept absolute paths.
5002 [\\/]* | ?:[\\/]*)
5003 re_direlt='/[^/][^/]*/\.\./'
5004 # Canonicalize the pathname of ld
5005 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5006 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5007 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5008 done
5009 test -z "$LD" && LD="$ac_prog"
5012 # If it fails, then pretend we aren't using GCC.
5013 ac_prog=ld
5016 # If it is relative, then search for the first ld in PATH.
5017 with_gnu_ld=unknown
5019 esac
5020 elif test "$with_gnu_ld" = yes; then
5021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5022 $as_echo_n "checking for GNU ld... " >&6; }
5023 else
5024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5025 $as_echo_n "checking for non-GNU ld... " >&6; }
5027 if ${lt_cv_path_LD+:} false; then :
5028 $as_echo_n "(cached) " >&6
5029 else
5030 if test -z "$LD"; then
5031 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5032 for ac_dir in $PATH; do
5033 IFS="$lt_save_ifs"
5034 test -z "$ac_dir" && ac_dir=.
5035 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5036 lt_cv_path_LD="$ac_dir/$ac_prog"
5037 # Check to see if the program is GNU ld. I'd rather use --version,
5038 # but apparently some variants of GNU ld only accept -v.
5039 # Break only if it was the GNU/non-GNU ld that we prefer.
5040 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5041 *GNU* | *'with BFD'*)
5042 test "$with_gnu_ld" != no && break
5045 test "$with_gnu_ld" != yes && break
5047 esac
5049 done
5050 IFS="$lt_save_ifs"
5051 else
5052 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5056 LD="$lt_cv_path_LD"
5057 if test -n "$LD"; then
5058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5059 $as_echo "$LD" >&6; }
5060 else
5061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5062 $as_echo "no" >&6; }
5064 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5066 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5067 if ${lt_cv_prog_gnu_ld+:} false; then :
5068 $as_echo_n "(cached) " >&6
5069 else
5070 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5071 case `$LD -v 2>&1 </dev/null` in
5072 *GNU* | *'with BFD'*)
5073 lt_cv_prog_gnu_ld=yes
5076 lt_cv_prog_gnu_ld=no
5078 esac
5080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5081 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5082 with_gnu_ld=$lt_cv_prog_gnu_ld
5092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5093 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5094 if ${lt_cv_path_NM+:} false; then :
5095 $as_echo_n "(cached) " >&6
5096 else
5097 if test -n "$NM"; then
5098 # Let the user override the nm to test.
5099 lt_nm_to_check="$NM"
5100 else
5101 lt_nm_to_check="${ac_tool_prefix}nm"
5102 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5103 lt_nm_to_check="$lt_nm_to_check nm"
5106 for lt_tmp_nm in "$lt_nm_to_check"; do
5107 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5108 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5109 IFS="$lt_save_ifs"
5110 test -z "$ac_dir" && ac_dir=.
5111 # Strip out any user-provided options from the nm to test twice,
5112 # the first time to test to see if nm (rather than its options) has
5113 # an explicit path, the second time to yield a file which can be
5114 # nm'ed itself.
5115 tmp_nm_path="`$ECHO "$lt_tmp_nm" | sed 's, -.*$,,'`"
5116 case "$tmp_nm_path" in
5117 */*|*\\*) tmp_nm="$lt_tmp_nm";;
5118 *) tmp_nm="$ac_dir/$lt_tmp_nm";;
5119 esac
5120 tmp_nm_to_nm="`$ECHO "$tmp_nm" | sed 's, -.*$,,'`"
5121 if test -f "$tmp_nm_to_nm" || test -f "$tmp_nm_to_nm$ac_exeext" ; then
5122 # Check to see if the nm accepts a BSD-compat flag.
5123 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5124 # nm: unknown option "B" ignored
5125 case `"$tmp_nm" -B "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
5126 *$tmp_nm*) lt_cv_path_NM="$tmp_nm -B"
5127 break
5130 case `"$tmp_nm" -p "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
5131 *$tmp_nm*)
5132 lt_cv_path_NM="$tmp_nm -p"
5133 break
5136 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5137 continue # so that we can try to find one that supports BSD flags
5139 esac
5141 esac
5143 done
5144 IFS="$lt_save_ifs"
5145 done
5146 : ${lt_cv_path_NM=no}
5148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5149 $as_echo "$lt_cv_path_NM" >&6; }
5150 if test "$lt_cv_path_NM" != "no"; then
5151 NM="$lt_cv_path_NM"
5152 else
5153 # Didn't find any BSD compatible name lister, look for dumpbin.
5154 if test -n "$DUMPBIN"; then :
5155 # Let the user override the test.
5156 else
5157 if test -n "$ac_tool_prefix"; then
5158 for ac_prog in dumpbin "link -dump"
5160 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5161 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5163 $as_echo_n "checking for $ac_word... " >&6; }
5164 if ${ac_cv_prog_DUMPBIN+:} false; then :
5165 $as_echo_n "(cached) " >&6
5166 else
5167 if test -n "$DUMPBIN"; then
5168 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5169 else
5170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5171 for as_dir in $PATH
5173 IFS=$as_save_IFS
5174 test -z "$as_dir" && as_dir=.
5175 for ac_exec_ext in '' $ac_executable_extensions; do
5176 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5177 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5179 break 2
5181 done
5182 done
5183 IFS=$as_save_IFS
5187 DUMPBIN=$ac_cv_prog_DUMPBIN
5188 if test -n "$DUMPBIN"; then
5189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5190 $as_echo "$DUMPBIN" >&6; }
5191 else
5192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5193 $as_echo "no" >&6; }
5197 test -n "$DUMPBIN" && break
5198 done
5200 if test -z "$DUMPBIN"; then
5201 ac_ct_DUMPBIN=$DUMPBIN
5202 for ac_prog in dumpbin "link -dump"
5204 # Extract the first word of "$ac_prog", so it can be a program name with args.
5205 set dummy $ac_prog; ac_word=$2
5206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5207 $as_echo_n "checking for $ac_word... " >&6; }
5208 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5209 $as_echo_n "(cached) " >&6
5210 else
5211 if test -n "$ac_ct_DUMPBIN"; then
5212 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5213 else
5214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5215 for as_dir in $PATH
5217 IFS=$as_save_IFS
5218 test -z "$as_dir" && as_dir=.
5219 for ac_exec_ext in '' $ac_executable_extensions; do
5220 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5221 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5223 break 2
5225 done
5226 done
5227 IFS=$as_save_IFS
5231 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5232 if test -n "$ac_ct_DUMPBIN"; then
5233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5234 $as_echo "$ac_ct_DUMPBIN" >&6; }
5235 else
5236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5237 $as_echo "no" >&6; }
5241 test -n "$ac_ct_DUMPBIN" && break
5242 done
5244 if test "x$ac_ct_DUMPBIN" = x; then
5245 DUMPBIN=":"
5246 else
5247 case $cross_compiling:$ac_tool_warned in
5248 yes:)
5249 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5250 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5251 ac_tool_warned=yes ;;
5252 esac
5253 DUMPBIN=$ac_ct_DUMPBIN
5257 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5258 *COFF*)
5259 DUMPBIN="$DUMPBIN -symbols"
5262 DUMPBIN=:
5264 esac
5267 if test "$DUMPBIN" != ":"; then
5268 NM="$DUMPBIN"
5271 test -z "$NM" && NM=nm
5278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5279 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5280 if ${lt_cv_nm_interface+:} false; then :
5281 $as_echo_n "(cached) " >&6
5282 else
5283 lt_cv_nm_interface="BSD nm"
5284 echo "int some_variable = 0;" > conftest.$ac_ext
5285 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5286 (eval "$ac_compile" 2>conftest.err)
5287 cat conftest.err >&5
5288 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5289 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5290 cat conftest.err >&5
5291 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5292 cat conftest.out >&5
5293 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5294 lt_cv_nm_interface="MS dumpbin"
5296 rm -f conftest*
5298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5299 $as_echo "$lt_cv_nm_interface" >&6; }
5301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5302 $as_echo_n "checking whether ln -s works... " >&6; }
5303 LN_S=$as_ln_s
5304 if test "$LN_S" = "ln -s"; then
5305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5306 $as_echo "yes" >&6; }
5307 else
5308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5309 $as_echo "no, using $LN_S" >&6; }
5312 # find the maximum length of command line arguments
5313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5314 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5315 if ${lt_cv_sys_max_cmd_len+:} false; then :
5316 $as_echo_n "(cached) " >&6
5317 else
5319 teststring="ABCD"
5321 case $build_os in
5322 msdosdjgpp*)
5323 # On DJGPP, this test can blow up pretty badly due to problems in libc
5324 # (any single argument exceeding 2000 bytes causes a buffer overrun
5325 # during glob expansion). Even if it were fixed, the result of this
5326 # check would be larger than it should be.
5327 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5330 gnu*)
5331 # Under GNU Hurd, this test is not required because there is
5332 # no limit to the length of command line arguments.
5333 # Libtool will interpret -1 as no limit whatsoever
5334 lt_cv_sys_max_cmd_len=-1;
5337 cygwin* | mingw* | cegcc*)
5338 # On Win9x/ME, this test blows up -- it succeeds, but takes
5339 # about 5 minutes as the teststring grows exponentially.
5340 # Worse, since 9x/ME are not pre-emptively multitasking,
5341 # you end up with a "frozen" computer, even though with patience
5342 # the test eventually succeeds (with a max line length of 256k).
5343 # Instead, let's just punt: use the minimum linelength reported by
5344 # all of the supported platforms: 8192 (on NT/2K/XP).
5345 lt_cv_sys_max_cmd_len=8192;
5348 mint*)
5349 # On MiNT this can take a long time and run out of memory.
5350 lt_cv_sys_max_cmd_len=8192;
5353 amigaos*)
5354 # On AmigaOS with pdksh, this test takes hours, literally.
5355 # So we just punt and use a minimum line length of 8192.
5356 lt_cv_sys_max_cmd_len=8192;
5359 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5360 # This has been around since 386BSD, at least. Likely further.
5361 if test -x /sbin/sysctl; then
5362 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5363 elif test -x /usr/sbin/sysctl; then
5364 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5365 else
5366 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5368 # And add a safety zone
5369 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5370 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5373 interix*)
5374 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5375 lt_cv_sys_max_cmd_len=196608
5378 osf*)
5379 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5380 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5381 # nice to cause kernel panics so lets avoid the loop below.
5382 # First set a reasonable default.
5383 lt_cv_sys_max_cmd_len=16384
5385 if test -x /sbin/sysconfig; then
5386 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5387 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5388 esac
5391 sco3.2v5*)
5392 lt_cv_sys_max_cmd_len=102400
5394 sysv5* | sco5v6* | sysv4.2uw2*)
5395 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5396 if test -n "$kargmax"; then
5397 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5398 else
5399 lt_cv_sys_max_cmd_len=32768
5403 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5404 if test -n "$lt_cv_sys_max_cmd_len"; then
5405 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5406 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5407 else
5408 # Make teststring a little bigger before we do anything with it.
5409 # a 1K string should be a reasonable start.
5410 for i in 1 2 3 4 5 6 7 8 ; do
5411 teststring=$teststring$teststring
5412 done
5413 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5414 # If test is not a shell built-in, we'll probably end up computing a
5415 # maximum length that is only half of the actual maximum length, but
5416 # we can't tell.
5417 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5418 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5419 test $i != 17 # 1/2 MB should be enough
5421 i=`expr $i + 1`
5422 teststring=$teststring$teststring
5423 done
5424 # Only check the string length outside the loop.
5425 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5426 teststring=
5427 # Add a significant safety factor because C++ compilers can tack on
5428 # massive amounts of additional arguments before passing them to the
5429 # linker. It appears as though 1/2 is a usable value.
5430 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5433 esac
5437 if test -n $lt_cv_sys_max_cmd_len ; then
5438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5439 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5440 else
5441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5442 $as_echo "none" >&6; }
5444 max_cmd_len=$lt_cv_sys_max_cmd_len
5451 : ${CP="cp -f"}
5452 : ${MV="mv -f"}
5453 : ${RM="rm -f"}
5455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5456 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5457 # Try some XSI features
5458 xsi_shell=no
5459 ( _lt_dummy="a/b/c"
5460 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5461 = c,a/b,, \
5462 && eval 'test $(( 1 + 1 )) -eq 2 \
5463 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5464 && xsi_shell=yes
5465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5466 $as_echo "$xsi_shell" >&6; }
5469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5470 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5471 lt_shell_append=no
5472 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5473 >/dev/null 2>&1 \
5474 && lt_shell_append=yes
5475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5476 $as_echo "$lt_shell_append" >&6; }
5479 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5480 lt_unset=unset
5481 else
5482 lt_unset=false
5489 # test EBCDIC or ASCII
5490 case `echo X|tr X '\101'` in
5491 A) # ASCII based system
5492 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5493 lt_SP2NL='tr \040 \012'
5494 lt_NL2SP='tr \015\012 \040\040'
5496 *) # EBCDIC based system
5497 lt_SP2NL='tr \100 \n'
5498 lt_NL2SP='tr \r\n \100\100'
5500 esac
5510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5511 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5512 if ${lt_cv_ld_reload_flag+:} false; then :
5513 $as_echo_n "(cached) " >&6
5514 else
5515 lt_cv_ld_reload_flag='-r'
5517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5518 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5519 reload_flag=$lt_cv_ld_reload_flag
5520 case $reload_flag in
5521 "" | " "*) ;;
5522 *) reload_flag=" $reload_flag" ;;
5523 esac
5524 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5525 case $host_os in
5526 darwin*)
5527 if test "$GCC" = yes; then
5528 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5529 else
5530 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5533 esac
5543 if test -n "$ac_tool_prefix"; then
5544 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5545 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5547 $as_echo_n "checking for $ac_word... " >&6; }
5548 if ${ac_cv_prog_OBJDUMP+:} false; then :
5549 $as_echo_n "(cached) " >&6
5550 else
5551 if test -n "$OBJDUMP"; then
5552 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5553 else
5554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5555 for as_dir in $PATH
5557 IFS=$as_save_IFS
5558 test -z "$as_dir" && as_dir=.
5559 for ac_exec_ext in '' $ac_executable_extensions; do
5560 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5561 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5563 break 2
5565 done
5566 done
5567 IFS=$as_save_IFS
5571 OBJDUMP=$ac_cv_prog_OBJDUMP
5572 if test -n "$OBJDUMP"; then
5573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5574 $as_echo "$OBJDUMP" >&6; }
5575 else
5576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5577 $as_echo "no" >&6; }
5582 if test -z "$ac_cv_prog_OBJDUMP"; then
5583 ac_ct_OBJDUMP=$OBJDUMP
5584 # Extract the first word of "objdump", so it can be a program name with args.
5585 set dummy objdump; ac_word=$2
5586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5587 $as_echo_n "checking for $ac_word... " >&6; }
5588 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5589 $as_echo_n "(cached) " >&6
5590 else
5591 if test -n "$ac_ct_OBJDUMP"; then
5592 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5593 else
5594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5595 for as_dir in $PATH
5597 IFS=$as_save_IFS
5598 test -z "$as_dir" && as_dir=.
5599 for ac_exec_ext in '' $ac_executable_extensions; do
5600 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5601 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5603 break 2
5605 done
5606 done
5607 IFS=$as_save_IFS
5611 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5612 if test -n "$ac_ct_OBJDUMP"; then
5613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5614 $as_echo "$ac_ct_OBJDUMP" >&6; }
5615 else
5616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5617 $as_echo "no" >&6; }
5620 if test "x$ac_ct_OBJDUMP" = x; then
5621 OBJDUMP="false"
5622 else
5623 case $cross_compiling:$ac_tool_warned in
5624 yes:)
5625 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5626 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5627 ac_tool_warned=yes ;;
5628 esac
5629 OBJDUMP=$ac_ct_OBJDUMP
5631 else
5632 OBJDUMP="$ac_cv_prog_OBJDUMP"
5635 test -z "$OBJDUMP" && OBJDUMP=objdump
5645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5646 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5647 if ${lt_cv_deplibs_check_method+:} false; then :
5648 $as_echo_n "(cached) " >&6
5649 else
5650 lt_cv_file_magic_cmd='$MAGIC_CMD'
5651 lt_cv_file_magic_test_file=
5652 lt_cv_deplibs_check_method='unknown'
5653 # Need to set the preceding variable on all platforms that support
5654 # interlibrary dependencies.
5655 # 'none' -- dependencies not supported.
5656 # `unknown' -- same as none, but documents that we really don't know.
5657 # 'pass_all' -- all dependencies passed with no checks.
5658 # 'test_compile' -- check by making test program.
5659 # 'file_magic [[regex]]' -- check by looking for files in library path
5660 # which responds to the $file_magic_cmd with a given extended regex.
5661 # If you have `file' or equivalent on your system and you're not sure
5662 # whether `pass_all' will *always* work, you probably want this one.
5664 case $host_os in
5665 aix[4-9]*)
5666 lt_cv_deplibs_check_method=pass_all
5669 beos*)
5670 lt_cv_deplibs_check_method=pass_all
5673 bsdi[45]*)
5674 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5675 lt_cv_file_magic_cmd='/usr/bin/file -L'
5676 lt_cv_file_magic_test_file=/shlib/libc.so
5679 cygwin*)
5680 # func_win32_libid is a shell function defined in ltmain.sh
5681 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5682 lt_cv_file_magic_cmd='func_win32_libid'
5685 mingw* | pw32*)
5686 # Base MSYS/MinGW do not provide the 'file' command needed by
5687 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5688 # unless we find 'file', for example because we are cross-compiling.
5689 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5690 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5691 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5692 lt_cv_file_magic_cmd='func_win32_libid'
5693 else
5694 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5695 lt_cv_file_magic_cmd='$OBJDUMP -f'
5699 cegcc*)
5700 # use the weaker test based on 'objdump'. See mingw*.
5701 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5702 lt_cv_file_magic_cmd='$OBJDUMP -f'
5705 darwin* | rhapsody*)
5706 lt_cv_deplibs_check_method=pass_all
5709 freebsd* | dragonfly*)
5710 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5711 case $host_cpu in
5712 i*86 )
5713 # Not sure whether the presence of OpenBSD here was a mistake.
5714 # Let's accept both of them until this is cleared up.
5715 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5716 lt_cv_file_magic_cmd=/usr/bin/file
5717 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5719 esac
5720 else
5721 lt_cv_deplibs_check_method=pass_all
5725 gnu*)
5726 lt_cv_deplibs_check_method=pass_all
5729 haiku*)
5730 lt_cv_deplibs_check_method=pass_all
5733 hpux10.20* | hpux11*)
5734 lt_cv_file_magic_cmd=/usr/bin/file
5735 case $host_cpu in
5736 ia64*)
5737 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5738 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5740 hppa*64*)
5741 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]'
5742 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5745 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5746 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5748 esac
5751 interix[3-9]*)
5752 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5753 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5756 irix5* | irix6* | nonstopux*)
5757 case $LD in
5758 *-32|*"-32 ") libmagic=32-bit;;
5759 *-n32|*"-n32 ") libmagic=N32;;
5760 *-64|*"-64 ") libmagic=64-bit;;
5761 *) libmagic=never-match;;
5762 esac
5763 lt_cv_deplibs_check_method=pass_all
5766 # This must be Linux ELF.
5767 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
5768 lt_cv_deplibs_check_method=pass_all
5771 netbsd*)
5772 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5773 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5774 else
5775 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5779 newos6*)
5780 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5781 lt_cv_file_magic_cmd=/usr/bin/file
5782 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5785 *nto* | *qnx*)
5786 lt_cv_deplibs_check_method=pass_all
5789 openbsd*)
5790 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5791 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5792 else
5793 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5797 osf3* | osf4* | osf5*)
5798 lt_cv_deplibs_check_method=pass_all
5801 rdos*)
5802 lt_cv_deplibs_check_method=pass_all
5805 solaris*)
5806 lt_cv_deplibs_check_method=pass_all
5809 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5810 lt_cv_deplibs_check_method=pass_all
5813 sysv4 | sysv4.3*)
5814 case $host_vendor in
5815 motorola)
5816 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]'
5817 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5819 ncr)
5820 lt_cv_deplibs_check_method=pass_all
5822 sequent)
5823 lt_cv_file_magic_cmd='/bin/file'
5824 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5826 sni)
5827 lt_cv_file_magic_cmd='/bin/file'
5828 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5829 lt_cv_file_magic_test_file=/lib/libc.so
5831 siemens)
5832 lt_cv_deplibs_check_method=pass_all
5835 lt_cv_deplibs_check_method=pass_all
5837 esac
5840 tpf*)
5841 lt_cv_deplibs_check_method=pass_all
5843 vxworks*)
5844 # Assume VxWorks cross toolchains are built on Linux, possibly
5845 # as canadian for Windows hosts.
5846 lt_cv_deplibs_check_method=pass_all
5848 esac
5851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5852 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5853 file_magic_cmd=$lt_cv_file_magic_cmd
5854 deplibs_check_method=$lt_cv_deplibs_check_method
5855 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5868 plugin_option=
5869 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
5870 for plugin in $plugin_names; do
5871 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
5872 if test x$plugin_so = x$plugin; then
5873 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
5875 if test x$plugin_so != x$plugin; then
5876 plugin_option="--plugin $plugin_so"
5877 break
5879 done
5881 if test -n "$ac_tool_prefix"; then
5882 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5883 set dummy ${ac_tool_prefix}ar; ac_word=$2
5884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5885 $as_echo_n "checking for $ac_word... " >&6; }
5886 if ${ac_cv_prog_AR+:} false; then :
5887 $as_echo_n "(cached) " >&6
5888 else
5889 if test -n "$AR"; then
5890 ac_cv_prog_AR="$AR" # Let the user override the test.
5891 else
5892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5893 for as_dir in $PATH
5895 IFS=$as_save_IFS
5896 test -z "$as_dir" && as_dir=.
5897 for ac_exec_ext in '' $ac_executable_extensions; do
5898 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5899 ac_cv_prog_AR="${ac_tool_prefix}ar"
5900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5901 break 2
5903 done
5904 done
5905 IFS=$as_save_IFS
5909 AR=$ac_cv_prog_AR
5910 if test -n "$AR"; then
5911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5912 $as_echo "$AR" >&6; }
5913 else
5914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5915 $as_echo "no" >&6; }
5920 if test -z "$ac_cv_prog_AR"; then
5921 ac_ct_AR=$AR
5922 # Extract the first word of "ar", so it can be a program name with args.
5923 set dummy ar; ac_word=$2
5924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5925 $as_echo_n "checking for $ac_word... " >&6; }
5926 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5927 $as_echo_n "(cached) " >&6
5928 else
5929 if test -n "$ac_ct_AR"; then
5930 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5931 else
5932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5933 for as_dir in $PATH
5935 IFS=$as_save_IFS
5936 test -z "$as_dir" && as_dir=.
5937 for ac_exec_ext in '' $ac_executable_extensions; do
5938 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5939 ac_cv_prog_ac_ct_AR="ar"
5940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5941 break 2
5943 done
5944 done
5945 IFS=$as_save_IFS
5949 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5950 if test -n "$ac_ct_AR"; then
5951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5952 $as_echo "$ac_ct_AR" >&6; }
5953 else
5954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5955 $as_echo "no" >&6; }
5958 if test "x$ac_ct_AR" = x; then
5959 AR="false"
5960 else
5961 case $cross_compiling:$ac_tool_warned in
5962 yes:)
5963 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5964 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5965 ac_tool_warned=yes ;;
5966 esac
5967 AR=$ac_ct_AR
5969 else
5970 AR="$ac_cv_prog_AR"
5973 test -z "$AR" && AR=ar
5974 if test -n "$plugin_option"; then
5975 if $AR --help 2>&1 | grep -q "\--plugin"; then
5976 touch conftest.c
5977 $AR $plugin_option rc conftest.a conftest.c
5978 if test "$?" != 0; then
5979 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
5980 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
5981 else
5982 AR="$AR $plugin_option"
5984 rm -f conftest.*
5987 test -z "$AR_FLAGS" && AR_FLAGS=cru
5999 if test -n "$ac_tool_prefix"; then
6000 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6001 set dummy ${ac_tool_prefix}strip; ac_word=$2
6002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6003 $as_echo_n "checking for $ac_word... " >&6; }
6004 if ${ac_cv_prog_STRIP+:} false; then :
6005 $as_echo_n "(cached) " >&6
6006 else
6007 if test -n "$STRIP"; then
6008 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6009 else
6010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6011 for as_dir in $PATH
6013 IFS=$as_save_IFS
6014 test -z "$as_dir" && as_dir=.
6015 for ac_exec_ext in '' $ac_executable_extensions; do
6016 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6017 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6019 break 2
6021 done
6022 done
6023 IFS=$as_save_IFS
6027 STRIP=$ac_cv_prog_STRIP
6028 if test -n "$STRIP"; then
6029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6030 $as_echo "$STRIP" >&6; }
6031 else
6032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6033 $as_echo "no" >&6; }
6038 if test -z "$ac_cv_prog_STRIP"; then
6039 ac_ct_STRIP=$STRIP
6040 # Extract the first word of "strip", so it can be a program name with args.
6041 set dummy strip; ac_word=$2
6042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6043 $as_echo_n "checking for $ac_word... " >&6; }
6044 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6045 $as_echo_n "(cached) " >&6
6046 else
6047 if test -n "$ac_ct_STRIP"; then
6048 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6049 else
6050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6051 for as_dir in $PATH
6053 IFS=$as_save_IFS
6054 test -z "$as_dir" && as_dir=.
6055 for ac_exec_ext in '' $ac_executable_extensions; do
6056 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6057 ac_cv_prog_ac_ct_STRIP="strip"
6058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6059 break 2
6061 done
6062 done
6063 IFS=$as_save_IFS
6067 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6068 if test -n "$ac_ct_STRIP"; then
6069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6070 $as_echo "$ac_ct_STRIP" >&6; }
6071 else
6072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6073 $as_echo "no" >&6; }
6076 if test "x$ac_ct_STRIP" = x; then
6077 STRIP=":"
6078 else
6079 case $cross_compiling:$ac_tool_warned in
6080 yes:)
6081 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6082 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6083 ac_tool_warned=yes ;;
6084 esac
6085 STRIP=$ac_ct_STRIP
6087 else
6088 STRIP="$ac_cv_prog_STRIP"
6091 test -z "$STRIP" && STRIP=:
6098 if test -n "$ac_tool_prefix"; then
6099 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6100 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6102 $as_echo_n "checking for $ac_word... " >&6; }
6103 if ${ac_cv_prog_RANLIB+:} false; then :
6104 $as_echo_n "(cached) " >&6
6105 else
6106 if test -n "$RANLIB"; then
6107 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6108 else
6109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6110 for as_dir in $PATH
6112 IFS=$as_save_IFS
6113 test -z "$as_dir" && as_dir=.
6114 for ac_exec_ext in '' $ac_executable_extensions; do
6115 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6116 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6118 break 2
6120 done
6121 done
6122 IFS=$as_save_IFS
6126 RANLIB=$ac_cv_prog_RANLIB
6127 if test -n "$RANLIB"; then
6128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6129 $as_echo "$RANLIB" >&6; }
6130 else
6131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6132 $as_echo "no" >&6; }
6137 if test -z "$ac_cv_prog_RANLIB"; then
6138 ac_ct_RANLIB=$RANLIB
6139 # Extract the first word of "ranlib", so it can be a program name with args.
6140 set dummy ranlib; ac_word=$2
6141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6142 $as_echo_n "checking for $ac_word... " >&6; }
6143 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6144 $as_echo_n "(cached) " >&6
6145 else
6146 if test -n "$ac_ct_RANLIB"; then
6147 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6148 else
6149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6150 for as_dir in $PATH
6152 IFS=$as_save_IFS
6153 test -z "$as_dir" && as_dir=.
6154 for ac_exec_ext in '' $ac_executable_extensions; do
6155 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6156 ac_cv_prog_ac_ct_RANLIB="ranlib"
6157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6158 break 2
6160 done
6161 done
6162 IFS=$as_save_IFS
6166 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6167 if test -n "$ac_ct_RANLIB"; then
6168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6169 $as_echo "$ac_ct_RANLIB" >&6; }
6170 else
6171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6172 $as_echo "no" >&6; }
6175 if test "x$ac_ct_RANLIB" = x; then
6176 RANLIB=":"
6177 else
6178 case $cross_compiling:$ac_tool_warned in
6179 yes:)
6180 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6181 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6182 ac_tool_warned=yes ;;
6183 esac
6184 RANLIB=$ac_ct_RANLIB
6186 else
6187 RANLIB="$ac_cv_prog_RANLIB"
6190 test -z "$RANLIB" && RANLIB=:
6191 if test -n "$plugin_option" && test "$RANLIB" != ":"; then
6192 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
6193 RANLIB="$RANLIB $plugin_option"
6202 # Determine commands to create old-style static archives.
6203 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6204 old_postinstall_cmds='chmod 644 $oldlib'
6205 old_postuninstall_cmds=
6207 if test -n "$RANLIB"; then
6208 case $host_os in
6209 openbsd*)
6210 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6213 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6215 esac
6216 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6219 case $host_os in
6220 darwin*)
6221 lock_old_archive_extraction=yes ;;
6223 lock_old_archive_extraction=no ;;
6224 esac
6264 # If no C compiler was specified, use CC.
6265 LTCC=${LTCC-"$CC"}
6267 # If no C compiler flags were specified, use CFLAGS.
6268 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6270 # Allow CC to be a program name with arguments.
6271 compiler=$CC
6274 # Check for command to grab the raw symbol name followed by C symbol from nm.
6275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6276 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6277 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6278 $as_echo_n "(cached) " >&6
6279 else
6281 # These are sane defaults that work on at least a few old systems.
6282 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6284 # Character class describing NM global symbol codes.
6285 symcode='[BCDEGRST]'
6287 # Regexp to match symbols that can be accessed directly from C.
6288 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6290 # Define system-specific variables.
6291 case $host_os in
6292 aix*)
6293 symcode='[BCDT]'
6295 cygwin* | mingw* | pw32* | cegcc*)
6296 symcode='[ABCDGISTW]'
6298 hpux*)
6299 if test "$host_cpu" = ia64; then
6300 symcode='[ABCDEGRST]'
6303 irix* | nonstopux*)
6304 symcode='[BCDEGRST]'
6306 osf*)
6307 symcode='[BCDEGQRST]'
6309 solaris*)
6310 symcode='[BCDRT]'
6312 sco3.2v5*)
6313 symcode='[DT]'
6315 sysv4.2uw2*)
6316 symcode='[DT]'
6318 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6319 symcode='[ABDT]'
6321 sysv4)
6322 symcode='[DFNSTU]'
6324 esac
6326 # If we're using GNU nm, then use its standard symbol codes.
6327 case `$NM -V 2>&1` in
6328 *GNU* | *'with BFD'*)
6329 symcode='[ABCDGIRSTW]' ;;
6330 esac
6332 # Transform an extracted symbol line into a proper C declaration.
6333 # Some systems (esp. on ia64) link data and code symbols differently,
6334 # so use this general approach.
6335 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6337 # Transform an extracted symbol line into symbol name and symbol address
6338 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6339 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'"
6341 # Handle CRLF in mingw tool chain
6342 opt_cr=
6343 case $build_os in
6344 mingw*)
6345 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6347 esac
6349 # Try without a prefix underscore, then with it.
6350 for ac_symprfx in "" "_"; do
6352 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6353 symxfrm="\\1 $ac_symprfx\\2 \\2"
6355 # Write the raw and C identifiers.
6356 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6357 # Fake it for dumpbin and say T for any non-static function
6358 # and D for any global variable.
6359 # Also find C++ and __fastcall symbols from MSVC++,
6360 # which start with @ or ?.
6361 lt_cv_sys_global_symbol_pipe="$AWK '"\
6362 " {last_section=section; section=\$ 3};"\
6363 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6364 " \$ 0!~/External *\|/{next};"\
6365 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6366 " {if(hide[section]) next};"\
6367 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6368 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6369 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6370 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6371 " ' prfx=^$ac_symprfx"
6372 else
6373 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6376 # Check to see that the pipe works correctly.
6377 pipe_works=no
6379 rm -f conftest*
6380 cat > conftest.$ac_ext <<_LT_EOF
6381 #ifdef __cplusplus
6382 extern "C" {
6383 #endif
6384 char nm_test_var;
6385 void nm_test_func(void);
6386 void nm_test_func(void){}
6387 #ifdef __cplusplus
6389 #endif
6390 int main(){nm_test_var='a';nm_test_func();return(0);}
6391 _LT_EOF
6393 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6394 (eval $ac_compile) 2>&5
6395 ac_status=$?
6396 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6397 test $ac_status = 0; }; then
6398 # Now try to grab the symbols.
6399 nlist=conftest.nm
6400 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6401 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6402 ac_status=$?
6403 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6404 test $ac_status = 0; } && test -s "$nlist"; then
6405 # Try sorting and uniquifying the output.
6406 if sort "$nlist" | uniq > "$nlist"T; then
6407 mv -f "$nlist"T "$nlist"
6408 else
6409 rm -f "$nlist"T
6412 # Make sure that we snagged all the symbols we need.
6413 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6414 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6415 cat <<_LT_EOF > conftest.$ac_ext
6416 #ifdef __cplusplus
6417 extern "C" {
6418 #endif
6420 _LT_EOF
6421 # Now generate the symbol file.
6422 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6424 cat <<_LT_EOF >> conftest.$ac_ext
6426 /* The mapping between symbol names and symbols. */
6427 const struct {
6428 const char *name;
6429 void *address;
6431 lt__PROGRAM__LTX_preloaded_symbols[] =
6433 { "@PROGRAM@", (void *) 0 },
6434 _LT_EOF
6435 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6436 cat <<\_LT_EOF >> conftest.$ac_ext
6437 {0, (void *) 0}
6440 /* This works around a problem in FreeBSD linker */
6441 #ifdef FREEBSD_WORKAROUND
6442 static const void *lt_preloaded_setup() {
6443 return lt__PROGRAM__LTX_preloaded_symbols;
6445 #endif
6447 #ifdef __cplusplus
6449 #endif
6450 _LT_EOF
6451 # Now try linking the two files.
6452 mv conftest.$ac_objext conftstm.$ac_objext
6453 lt_save_LIBS="$LIBS"
6454 lt_save_CFLAGS="$CFLAGS"
6455 LIBS="conftstm.$ac_objext"
6456 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6457 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6458 (eval $ac_link) 2>&5
6459 ac_status=$?
6460 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6461 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6462 pipe_works=yes
6464 LIBS="$lt_save_LIBS"
6465 CFLAGS="$lt_save_CFLAGS"
6466 else
6467 echo "cannot find nm_test_func in $nlist" >&5
6469 else
6470 echo "cannot find nm_test_var in $nlist" >&5
6472 else
6473 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6475 else
6476 echo "$progname: failed program was:" >&5
6477 cat conftest.$ac_ext >&5
6479 rm -rf conftest* conftst*
6481 # Do not use the global_symbol_pipe unless it works.
6482 if test "$pipe_works" = yes; then
6483 break
6484 else
6485 lt_cv_sys_global_symbol_pipe=
6487 done
6491 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6492 lt_cv_sys_global_symbol_to_cdecl=
6494 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6496 $as_echo "failed" >&6; }
6497 else
6498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6499 $as_echo "ok" >&6; }
6523 # Check whether --enable-libtool-lock was given.
6524 if test "${enable_libtool_lock+set}" = set; then :
6525 enableval=$enable_libtool_lock;
6528 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6530 # Some flags need to be propagated to the compiler or linker for good
6531 # libtool support.
6532 case $host in
6533 ia64-*-hpux*)
6534 # Find out which ABI we are using.
6535 echo 'int i;' > conftest.$ac_ext
6536 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6537 (eval $ac_compile) 2>&5
6538 ac_status=$?
6539 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6540 test $ac_status = 0; }; then
6541 case `/usr/bin/file conftest.$ac_objext` in
6542 *ELF-32*)
6543 HPUX_IA64_MODE="32"
6545 *ELF-64*)
6546 HPUX_IA64_MODE="64"
6548 esac
6550 rm -rf conftest*
6552 *-*-irix6*)
6553 # Find out which ABI we are using.
6554 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6555 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6556 (eval $ac_compile) 2>&5
6557 ac_status=$?
6558 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6559 test $ac_status = 0; }; then
6560 if test "$lt_cv_prog_gnu_ld" = yes; then
6561 case `/usr/bin/file conftest.$ac_objext` in
6562 *32-bit*)
6563 LD="${LD-ld} -melf32bsmip"
6565 *N32*)
6566 LD="${LD-ld} -melf32bmipn32"
6568 *64-bit*)
6569 LD="${LD-ld} -melf64bmip"
6571 esac
6572 else
6573 case `/usr/bin/file conftest.$ac_objext` in
6574 *32-bit*)
6575 LD="${LD-ld} -32"
6577 *N32*)
6578 LD="${LD-ld} -n32"
6580 *64-bit*)
6581 LD="${LD-ld} -64"
6583 esac
6586 rm -rf conftest*
6589 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6590 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6591 # Find out which ABI we are using.
6592 echo 'int i;' > conftest.$ac_ext
6593 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6594 (eval $ac_compile) 2>&5
6595 ac_status=$?
6596 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6597 test $ac_status = 0; }; then
6598 case `/usr/bin/file conftest.o` in
6599 *32-bit*)
6600 case $host in
6601 x86_64-*kfreebsd*-gnu)
6602 LD="${LD-ld} -m elf_i386_fbsd"
6604 x86_64-*linux*)
6605 case `/usr/bin/file conftest.o` in
6606 *x86-64*)
6607 LD="${LD-ld} -m elf32_x86_64"
6610 LD="${LD-ld} -m elf_i386"
6612 esac
6614 powerpc64le-*linux*)
6615 LD="${LD-ld} -m elf32lppclinux"
6617 powerpc64-*linux*)
6618 LD="${LD-ld} -m elf32ppclinux"
6620 s390x-*linux*)
6621 LD="${LD-ld} -m elf_s390"
6623 sparc64-*linux*)
6624 LD="${LD-ld} -m elf32_sparc"
6626 esac
6628 *64-bit*)
6629 case $host in
6630 x86_64-*kfreebsd*-gnu)
6631 LD="${LD-ld} -m elf_x86_64_fbsd"
6633 x86_64-*linux*)
6634 LD="${LD-ld} -m elf_x86_64"
6636 powerpcle-*linux*)
6637 LD="${LD-ld} -m elf64lppc"
6639 powerpc-*linux*)
6640 LD="${LD-ld} -m elf64ppc"
6642 s390*-*linux*|s390*-*tpf*)
6643 LD="${LD-ld} -m elf64_s390"
6645 sparc*-*linux*)
6646 LD="${LD-ld} -m elf64_sparc"
6648 esac
6650 esac
6652 rm -rf conftest*
6655 *-*-sco3.2v5*)
6656 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6657 SAVE_CFLAGS="$CFLAGS"
6658 CFLAGS="$CFLAGS -belf"
6659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6660 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6661 if ${lt_cv_cc_needs_belf+:} false; then :
6662 $as_echo_n "(cached) " >&6
6663 else
6664 ac_ext=c
6665 ac_cpp='$CPP $CPPFLAGS'
6666 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6667 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6668 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6671 /* end confdefs.h. */
6674 main ()
6678 return 0;
6680 _ACEOF
6681 if ac_fn_c_try_link "$LINENO"; then :
6682 lt_cv_cc_needs_belf=yes
6683 else
6684 lt_cv_cc_needs_belf=no
6686 rm -f core conftest.err conftest.$ac_objext \
6687 conftest$ac_exeext conftest.$ac_ext
6688 ac_ext=c
6689 ac_cpp='$CPP $CPPFLAGS'
6690 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6691 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6692 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6696 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6697 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6698 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6699 CFLAGS="$SAVE_CFLAGS"
6702 sparc*-*solaris*)
6703 # Find out which ABI we are using.
6704 echo 'int i;' > conftest.$ac_ext
6705 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6706 (eval $ac_compile) 2>&5
6707 ac_status=$?
6708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6709 test $ac_status = 0; }; then
6710 case `/usr/bin/file conftest.o` in
6711 *64-bit*)
6712 case $lt_cv_prog_gnu_ld in
6713 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6715 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6716 LD="${LD-ld} -64"
6719 esac
6721 esac
6723 rm -rf conftest*
6725 esac
6727 need_locks="$enable_libtool_lock"
6730 case $host_os in
6731 rhapsody* | darwin*)
6732 if test -n "$ac_tool_prefix"; then
6733 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6734 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6736 $as_echo_n "checking for $ac_word... " >&6; }
6737 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6738 $as_echo_n "(cached) " >&6
6739 else
6740 if test -n "$DSYMUTIL"; then
6741 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6742 else
6743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6744 for as_dir in $PATH
6746 IFS=$as_save_IFS
6747 test -z "$as_dir" && as_dir=.
6748 for ac_exec_ext in '' $ac_executable_extensions; do
6749 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6750 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6752 break 2
6754 done
6755 done
6756 IFS=$as_save_IFS
6760 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6761 if test -n "$DSYMUTIL"; then
6762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6763 $as_echo "$DSYMUTIL" >&6; }
6764 else
6765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6766 $as_echo "no" >&6; }
6771 if test -z "$ac_cv_prog_DSYMUTIL"; then
6772 ac_ct_DSYMUTIL=$DSYMUTIL
6773 # Extract the first word of "dsymutil", so it can be a program name with args.
6774 set dummy dsymutil; ac_word=$2
6775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6776 $as_echo_n "checking for $ac_word... " >&6; }
6777 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6778 $as_echo_n "(cached) " >&6
6779 else
6780 if test -n "$ac_ct_DSYMUTIL"; then
6781 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6782 else
6783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6784 for as_dir in $PATH
6786 IFS=$as_save_IFS
6787 test -z "$as_dir" && as_dir=.
6788 for ac_exec_ext in '' $ac_executable_extensions; do
6789 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6790 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6792 break 2
6794 done
6795 done
6796 IFS=$as_save_IFS
6800 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6801 if test -n "$ac_ct_DSYMUTIL"; then
6802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6803 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6804 else
6805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6806 $as_echo "no" >&6; }
6809 if test "x$ac_ct_DSYMUTIL" = x; then
6810 DSYMUTIL=":"
6811 else
6812 case $cross_compiling:$ac_tool_warned in
6813 yes:)
6814 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6815 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6816 ac_tool_warned=yes ;;
6817 esac
6818 DSYMUTIL=$ac_ct_DSYMUTIL
6820 else
6821 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6824 if test -n "$ac_tool_prefix"; then
6825 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6826 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6828 $as_echo_n "checking for $ac_word... " >&6; }
6829 if ${ac_cv_prog_NMEDIT+:} false; then :
6830 $as_echo_n "(cached) " >&6
6831 else
6832 if test -n "$NMEDIT"; then
6833 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6834 else
6835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6836 for as_dir in $PATH
6838 IFS=$as_save_IFS
6839 test -z "$as_dir" && as_dir=.
6840 for ac_exec_ext in '' $ac_executable_extensions; do
6841 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6842 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6844 break 2
6846 done
6847 done
6848 IFS=$as_save_IFS
6852 NMEDIT=$ac_cv_prog_NMEDIT
6853 if test -n "$NMEDIT"; then
6854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6855 $as_echo "$NMEDIT" >&6; }
6856 else
6857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6858 $as_echo "no" >&6; }
6863 if test -z "$ac_cv_prog_NMEDIT"; then
6864 ac_ct_NMEDIT=$NMEDIT
6865 # Extract the first word of "nmedit", so it can be a program name with args.
6866 set dummy nmedit; ac_word=$2
6867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6868 $as_echo_n "checking for $ac_word... " >&6; }
6869 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6870 $as_echo_n "(cached) " >&6
6871 else
6872 if test -n "$ac_ct_NMEDIT"; then
6873 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6874 else
6875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6876 for as_dir in $PATH
6878 IFS=$as_save_IFS
6879 test -z "$as_dir" && as_dir=.
6880 for ac_exec_ext in '' $ac_executable_extensions; do
6881 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6882 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6884 break 2
6886 done
6887 done
6888 IFS=$as_save_IFS
6892 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6893 if test -n "$ac_ct_NMEDIT"; then
6894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6895 $as_echo "$ac_ct_NMEDIT" >&6; }
6896 else
6897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6898 $as_echo "no" >&6; }
6901 if test "x$ac_ct_NMEDIT" = x; then
6902 NMEDIT=":"
6903 else
6904 case $cross_compiling:$ac_tool_warned in
6905 yes:)
6906 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6907 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6908 ac_tool_warned=yes ;;
6909 esac
6910 NMEDIT=$ac_ct_NMEDIT
6912 else
6913 NMEDIT="$ac_cv_prog_NMEDIT"
6916 if test -n "$ac_tool_prefix"; then
6917 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6918 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6920 $as_echo_n "checking for $ac_word... " >&6; }
6921 if ${ac_cv_prog_LIPO+:} false; then :
6922 $as_echo_n "(cached) " >&6
6923 else
6924 if test -n "$LIPO"; then
6925 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6926 else
6927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6928 for as_dir in $PATH
6930 IFS=$as_save_IFS
6931 test -z "$as_dir" && as_dir=.
6932 for ac_exec_ext in '' $ac_executable_extensions; do
6933 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6934 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6936 break 2
6938 done
6939 done
6940 IFS=$as_save_IFS
6944 LIPO=$ac_cv_prog_LIPO
6945 if test -n "$LIPO"; then
6946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6947 $as_echo "$LIPO" >&6; }
6948 else
6949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6950 $as_echo "no" >&6; }
6955 if test -z "$ac_cv_prog_LIPO"; then
6956 ac_ct_LIPO=$LIPO
6957 # Extract the first word of "lipo", so it can be a program name with args.
6958 set dummy lipo; ac_word=$2
6959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6960 $as_echo_n "checking for $ac_word... " >&6; }
6961 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6962 $as_echo_n "(cached) " >&6
6963 else
6964 if test -n "$ac_ct_LIPO"; then
6965 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6966 else
6967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6968 for as_dir in $PATH
6970 IFS=$as_save_IFS
6971 test -z "$as_dir" && as_dir=.
6972 for ac_exec_ext in '' $ac_executable_extensions; do
6973 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6974 ac_cv_prog_ac_ct_LIPO="lipo"
6975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6976 break 2
6978 done
6979 done
6980 IFS=$as_save_IFS
6984 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6985 if test -n "$ac_ct_LIPO"; then
6986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6987 $as_echo "$ac_ct_LIPO" >&6; }
6988 else
6989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6990 $as_echo "no" >&6; }
6993 if test "x$ac_ct_LIPO" = x; then
6994 LIPO=":"
6995 else
6996 case $cross_compiling:$ac_tool_warned in
6997 yes:)
6998 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6999 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7000 ac_tool_warned=yes ;;
7001 esac
7002 LIPO=$ac_ct_LIPO
7004 else
7005 LIPO="$ac_cv_prog_LIPO"
7008 if test -n "$ac_tool_prefix"; then
7009 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7010 set dummy ${ac_tool_prefix}otool; ac_word=$2
7011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7012 $as_echo_n "checking for $ac_word... " >&6; }
7013 if ${ac_cv_prog_OTOOL+:} false; then :
7014 $as_echo_n "(cached) " >&6
7015 else
7016 if test -n "$OTOOL"; then
7017 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7018 else
7019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7020 for as_dir in $PATH
7022 IFS=$as_save_IFS
7023 test -z "$as_dir" && as_dir=.
7024 for ac_exec_ext in '' $ac_executable_extensions; do
7025 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7026 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7028 break 2
7030 done
7031 done
7032 IFS=$as_save_IFS
7036 OTOOL=$ac_cv_prog_OTOOL
7037 if test -n "$OTOOL"; then
7038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7039 $as_echo "$OTOOL" >&6; }
7040 else
7041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7042 $as_echo "no" >&6; }
7047 if test -z "$ac_cv_prog_OTOOL"; then
7048 ac_ct_OTOOL=$OTOOL
7049 # Extract the first word of "otool", so it can be a program name with args.
7050 set dummy otool; ac_word=$2
7051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7052 $as_echo_n "checking for $ac_word... " >&6; }
7053 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7054 $as_echo_n "(cached) " >&6
7055 else
7056 if test -n "$ac_ct_OTOOL"; then
7057 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7058 else
7059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7060 for as_dir in $PATH
7062 IFS=$as_save_IFS
7063 test -z "$as_dir" && as_dir=.
7064 for ac_exec_ext in '' $ac_executable_extensions; do
7065 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7066 ac_cv_prog_ac_ct_OTOOL="otool"
7067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7068 break 2
7070 done
7071 done
7072 IFS=$as_save_IFS
7076 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7077 if test -n "$ac_ct_OTOOL"; then
7078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7079 $as_echo "$ac_ct_OTOOL" >&6; }
7080 else
7081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7082 $as_echo "no" >&6; }
7085 if test "x$ac_ct_OTOOL" = x; then
7086 OTOOL=":"
7087 else
7088 case $cross_compiling:$ac_tool_warned in
7089 yes:)
7090 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7091 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7092 ac_tool_warned=yes ;;
7093 esac
7094 OTOOL=$ac_ct_OTOOL
7096 else
7097 OTOOL="$ac_cv_prog_OTOOL"
7100 if test -n "$ac_tool_prefix"; then
7101 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7102 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7104 $as_echo_n "checking for $ac_word... " >&6; }
7105 if ${ac_cv_prog_OTOOL64+:} false; then :
7106 $as_echo_n "(cached) " >&6
7107 else
7108 if test -n "$OTOOL64"; then
7109 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7110 else
7111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7112 for as_dir in $PATH
7114 IFS=$as_save_IFS
7115 test -z "$as_dir" && as_dir=.
7116 for ac_exec_ext in '' $ac_executable_extensions; do
7117 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7118 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7120 break 2
7122 done
7123 done
7124 IFS=$as_save_IFS
7128 OTOOL64=$ac_cv_prog_OTOOL64
7129 if test -n "$OTOOL64"; then
7130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7131 $as_echo "$OTOOL64" >&6; }
7132 else
7133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7134 $as_echo "no" >&6; }
7139 if test -z "$ac_cv_prog_OTOOL64"; then
7140 ac_ct_OTOOL64=$OTOOL64
7141 # Extract the first word of "otool64", so it can be a program name with args.
7142 set dummy otool64; ac_word=$2
7143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7144 $as_echo_n "checking for $ac_word... " >&6; }
7145 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7146 $as_echo_n "(cached) " >&6
7147 else
7148 if test -n "$ac_ct_OTOOL64"; then
7149 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7150 else
7151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7152 for as_dir in $PATH
7154 IFS=$as_save_IFS
7155 test -z "$as_dir" && as_dir=.
7156 for ac_exec_ext in '' $ac_executable_extensions; do
7157 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7158 ac_cv_prog_ac_ct_OTOOL64="otool64"
7159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7160 break 2
7162 done
7163 done
7164 IFS=$as_save_IFS
7168 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7169 if test -n "$ac_ct_OTOOL64"; then
7170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7171 $as_echo "$ac_ct_OTOOL64" >&6; }
7172 else
7173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7174 $as_echo "no" >&6; }
7177 if test "x$ac_ct_OTOOL64" = x; then
7178 OTOOL64=":"
7179 else
7180 case $cross_compiling:$ac_tool_warned in
7181 yes:)
7182 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7183 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7184 ac_tool_warned=yes ;;
7185 esac
7186 OTOOL64=$ac_ct_OTOOL64
7188 else
7189 OTOOL64="$ac_cv_prog_OTOOL64"
7218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7219 $as_echo_n "checking for -single_module linker flag... " >&6; }
7220 if ${lt_cv_apple_cc_single_mod+:} false; then :
7221 $as_echo_n "(cached) " >&6
7222 else
7223 lt_cv_apple_cc_single_mod=no
7224 if test -z "${LT_MULTI_MODULE}"; then
7225 # By default we will add the -single_module flag. You can override
7226 # by either setting the environment variable LT_MULTI_MODULE
7227 # non-empty at configure time, or by adding -multi_module to the
7228 # link flags.
7229 rm -rf libconftest.dylib*
7230 echo "int foo(void){return 1;}" > conftest.c
7231 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7232 -dynamiclib -Wl,-single_module conftest.c" >&5
7233 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7234 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7235 _lt_result=$?
7236 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7237 lt_cv_apple_cc_single_mod=yes
7238 else
7239 cat conftest.err >&5
7241 rm -rf libconftest.dylib*
7242 rm -f conftest.*
7245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7246 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7248 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7249 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7250 $as_echo_n "(cached) " >&6
7251 else
7252 lt_cv_ld_exported_symbols_list=no
7253 save_LDFLAGS=$LDFLAGS
7254 echo "_main" > conftest.sym
7255 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7257 /* end confdefs.h. */
7260 main ()
7264 return 0;
7266 _ACEOF
7267 if ac_fn_c_try_link "$LINENO"; then :
7268 lt_cv_ld_exported_symbols_list=yes
7269 else
7270 lt_cv_ld_exported_symbols_list=no
7272 rm -f core conftest.err conftest.$ac_objext \
7273 conftest$ac_exeext conftest.$ac_ext
7274 LDFLAGS="$save_LDFLAGS"
7277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7278 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7280 $as_echo_n "checking for -force_load linker flag... " >&6; }
7281 if ${lt_cv_ld_force_load+:} false; then :
7282 $as_echo_n "(cached) " >&6
7283 else
7284 lt_cv_ld_force_load=no
7285 cat > conftest.c << _LT_EOF
7286 int forced_loaded() { return 2;}
7287 _LT_EOF
7288 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7289 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7290 echo "$AR cru libconftest.a conftest.o" >&5
7291 $AR cru libconftest.a conftest.o 2>&5
7292 cat > conftest.c << _LT_EOF
7293 int main() { return 0;}
7294 _LT_EOF
7295 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7296 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7297 _lt_result=$?
7298 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7299 lt_cv_ld_force_load=yes
7300 else
7301 cat conftest.err >&5
7303 rm -f conftest.err libconftest.a conftest conftest.c
7304 rm -rf conftest.dSYM
7307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7308 $as_echo "$lt_cv_ld_force_load" >&6; }
7309 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
7310 # build without first building modern cctools / linker.
7311 case $host_cpu-$host_os in
7312 *-rhapsody* | *-darwin1.[012])
7313 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7314 *-darwin1.*)
7315 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7316 *-darwin*)
7317 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
7318 # deployment target is forced to an earlier version.
7319 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
7320 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*)
7322 10.[012][,.]*)
7323 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7327 esac
7329 esac
7330 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7331 _lt_dar_single_mod='$single_module'
7333 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7334 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7335 else
7336 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7338 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7339 _lt_dsymutil='~$DSYMUTIL $lib || :'
7340 else
7341 _lt_dsymutil=
7344 esac
7346 for ac_header in dlfcn.h
7347 do :
7348 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7350 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7351 cat >>confdefs.h <<_ACEOF
7352 #define HAVE_DLFCN_H 1
7353 _ACEOF
7357 done
7363 # Set options
7367 enable_dlopen=no
7370 enable_win32_dll=no
7373 # Check whether --enable-shared was given.
7374 if test "${enable_shared+set}" = set; then :
7375 enableval=$enable_shared; p=${PACKAGE-default}
7376 case $enableval in
7377 yes) enable_shared=yes ;;
7378 no) enable_shared=no ;;
7380 enable_shared=no
7381 # Look at the argument we got. We use all the common list separators.
7382 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7383 for pkg in $enableval; do
7384 IFS="$lt_save_ifs"
7385 if test "X$pkg" = "X$p"; then
7386 enable_shared=yes
7388 done
7389 IFS="$lt_save_ifs"
7391 esac
7392 else
7393 enable_shared=yes
7404 # Check whether --enable-static was given.
7405 if test "${enable_static+set}" = set; then :
7406 enableval=$enable_static; p=${PACKAGE-default}
7407 case $enableval in
7408 yes) enable_static=yes ;;
7409 no) enable_static=no ;;
7411 enable_static=no
7412 # Look at the argument we got. We use all the common list separators.
7413 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7414 for pkg in $enableval; do
7415 IFS="$lt_save_ifs"
7416 if test "X$pkg" = "X$p"; then
7417 enable_static=yes
7419 done
7420 IFS="$lt_save_ifs"
7422 esac
7423 else
7424 enable_static=yes
7436 # Check whether --with-pic was given.
7437 if test "${with_pic+set}" = set; then :
7438 withval=$with_pic; pic_mode="$withval"
7439 else
7440 pic_mode=default
7444 test -z "$pic_mode" && pic_mode=default
7452 # Check whether --enable-fast-install was given.
7453 if test "${enable_fast_install+set}" = set; then :
7454 enableval=$enable_fast_install; p=${PACKAGE-default}
7455 case $enableval in
7456 yes) enable_fast_install=yes ;;
7457 no) enable_fast_install=no ;;
7459 enable_fast_install=no
7460 # Look at the argument we got. We use all the common list separators.
7461 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7462 for pkg in $enableval; do
7463 IFS="$lt_save_ifs"
7464 if test "X$pkg" = "X$p"; then
7465 enable_fast_install=yes
7467 done
7468 IFS="$lt_save_ifs"
7470 esac
7471 else
7472 enable_fast_install=yes
7485 # This can be used to rebuild libtool when needed
7486 LIBTOOL_DEPS="$ltmain"
7488 # Always use our own libtool.
7489 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7516 test -z "$LN_S" && LN_S="ln -s"
7531 if test -n "${ZSH_VERSION+set}" ; then
7532 setopt NO_GLOB_SUBST
7535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7536 $as_echo_n "checking for objdir... " >&6; }
7537 if ${lt_cv_objdir+:} false; then :
7538 $as_echo_n "(cached) " >&6
7539 else
7540 rm -f .libs 2>/dev/null
7541 mkdir .libs 2>/dev/null
7542 if test -d .libs; then
7543 lt_cv_objdir=.libs
7544 else
7545 # MS-DOS does not allow filenames that begin with a dot.
7546 lt_cv_objdir=_libs
7548 rmdir .libs 2>/dev/null
7550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7551 $as_echo "$lt_cv_objdir" >&6; }
7552 objdir=$lt_cv_objdir
7558 cat >>confdefs.h <<_ACEOF
7559 #define LT_OBJDIR "$lt_cv_objdir/"
7560 _ACEOF
7565 case $host_os in
7566 aix3*)
7567 # AIX sometimes has problems with the GCC collect2 program. For some
7568 # reason, if we set the COLLECT_NAMES environment variable, the problems
7569 # vanish in a puff of smoke.
7570 if test "X${COLLECT_NAMES+set}" != Xset; then
7571 COLLECT_NAMES=
7572 export COLLECT_NAMES
7575 esac
7577 # Global variables:
7578 ofile=libtool
7579 can_build_shared=yes
7581 # All known linkers require a `.a' archive for static linking (except MSVC,
7582 # which needs '.lib').
7583 libext=a
7585 with_gnu_ld="$lt_cv_prog_gnu_ld"
7587 old_CC="$CC"
7588 old_CFLAGS="$CFLAGS"
7590 # Set sane defaults for various variables
7591 test -z "$CC" && CC=cc
7592 test -z "$LTCC" && LTCC=$CC
7593 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7594 test -z "$LD" && LD=ld
7595 test -z "$ac_objext" && ac_objext=o
7597 for cc_temp in $compiler""; do
7598 case $cc_temp in
7599 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7600 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7601 \-*) ;;
7602 *) break;;
7603 esac
7604 done
7605 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7608 # Only perform the check for file, if the check method requires it
7609 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7610 case $deplibs_check_method in
7611 file_magic*)
7612 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7614 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7615 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7616 $as_echo_n "(cached) " >&6
7617 else
7618 case $MAGIC_CMD in
7619 [\\/*] | ?:[\\/]*)
7620 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7623 lt_save_MAGIC_CMD="$MAGIC_CMD"
7624 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7625 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7626 for ac_dir in $ac_dummy; do
7627 IFS="$lt_save_ifs"
7628 test -z "$ac_dir" && ac_dir=.
7629 if test -f $ac_dir/${ac_tool_prefix}file; then
7630 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7631 if test -n "$file_magic_test_file"; then
7632 case $deplibs_check_method in
7633 "file_magic "*)
7634 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7635 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7636 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7637 $EGREP "$file_magic_regex" > /dev/null; then
7639 else
7640 cat <<_LT_EOF 1>&2
7642 *** Warning: the command libtool uses to detect shared libraries,
7643 *** $file_magic_cmd, produces output that libtool cannot recognize.
7644 *** The result is that libtool may fail to recognize shared libraries
7645 *** as such. This will affect the creation of libtool libraries that
7646 *** depend on shared libraries, but programs linked with such libtool
7647 *** libraries will work regardless of this problem. Nevertheless, you
7648 *** may want to report the problem to your system manager and/or to
7649 *** bug-libtool@gnu.org
7651 _LT_EOF
7652 fi ;;
7653 esac
7655 break
7657 done
7658 IFS="$lt_save_ifs"
7659 MAGIC_CMD="$lt_save_MAGIC_CMD"
7661 esac
7664 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7665 if test -n "$MAGIC_CMD"; then
7666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7667 $as_echo "$MAGIC_CMD" >&6; }
7668 else
7669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7670 $as_echo "no" >&6; }
7677 if test -z "$lt_cv_path_MAGIC_CMD"; then
7678 if test -n "$ac_tool_prefix"; then
7679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7680 $as_echo_n "checking for file... " >&6; }
7681 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7682 $as_echo_n "(cached) " >&6
7683 else
7684 case $MAGIC_CMD in
7685 [\\/*] | ?:[\\/]*)
7686 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7689 lt_save_MAGIC_CMD="$MAGIC_CMD"
7690 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7691 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7692 for ac_dir in $ac_dummy; do
7693 IFS="$lt_save_ifs"
7694 test -z "$ac_dir" && ac_dir=.
7695 if test -f $ac_dir/file; then
7696 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7697 if test -n "$file_magic_test_file"; then
7698 case $deplibs_check_method in
7699 "file_magic "*)
7700 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7701 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7702 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7703 $EGREP "$file_magic_regex" > /dev/null; then
7705 else
7706 cat <<_LT_EOF 1>&2
7708 *** Warning: the command libtool uses to detect shared libraries,
7709 *** $file_magic_cmd, produces output that libtool cannot recognize.
7710 *** The result is that libtool may fail to recognize shared libraries
7711 *** as such. This will affect the creation of libtool libraries that
7712 *** depend on shared libraries, but programs linked with such libtool
7713 *** libraries will work regardless of this problem. Nevertheless, you
7714 *** may want to report the problem to your system manager and/or to
7715 *** bug-libtool@gnu.org
7717 _LT_EOF
7718 fi ;;
7719 esac
7721 break
7723 done
7724 IFS="$lt_save_ifs"
7725 MAGIC_CMD="$lt_save_MAGIC_CMD"
7727 esac
7730 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7731 if test -n "$MAGIC_CMD"; then
7732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7733 $as_echo "$MAGIC_CMD" >&6; }
7734 else
7735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7736 $as_echo "no" >&6; }
7740 else
7741 MAGIC_CMD=:
7747 esac
7749 # Use C for the default configuration in the libtool script
7751 lt_save_CC="$CC"
7752 ac_ext=c
7753 ac_cpp='$CPP $CPPFLAGS'
7754 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7755 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7756 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7759 # Source file extension for C test sources.
7760 ac_ext=c
7762 # Object file extension for compiled C test sources.
7763 objext=o
7764 objext=$objext
7766 # Code to be used in simple compile tests
7767 lt_simple_compile_test_code="int some_variable = 0;"
7769 # Code to be used in simple link tests
7770 lt_simple_link_test_code='int main(){return(0);}'
7778 # If no C compiler was specified, use CC.
7779 LTCC=${LTCC-"$CC"}
7781 # If no C compiler flags were specified, use CFLAGS.
7782 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7784 # Allow CC to be a program name with arguments.
7785 compiler=$CC
7787 # Save the default compiler, since it gets overwritten when the other
7788 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7789 compiler_DEFAULT=$CC
7791 # save warnings/boilerplate of simple test code
7792 ac_outfile=conftest.$ac_objext
7793 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7794 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7795 _lt_compiler_boilerplate=`cat conftest.err`
7796 $RM conftest*
7798 ac_outfile=conftest.$ac_objext
7799 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7800 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7801 _lt_linker_boilerplate=`cat conftest.err`
7802 $RM -r conftest*
7805 ## CAVEAT EMPTOR:
7806 ## There is no encapsulation within the following macros, do not change
7807 ## the running order or otherwise move them around unless you know exactly
7808 ## what you are doing...
7809 if test -n "$compiler"; then
7811 lt_prog_compiler_no_builtin_flag=
7813 if test "$GCC" = yes; then
7814 case $cc_basename in
7815 nvcc*)
7816 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7818 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7819 esac
7821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7822 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7823 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7824 $as_echo_n "(cached) " >&6
7825 else
7826 lt_cv_prog_compiler_rtti_exceptions=no
7827 ac_outfile=conftest.$ac_objext
7828 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7829 lt_compiler_flag="-fno-rtti -fno-exceptions"
7830 # Insert the option either (1) after the last *FLAGS variable, or
7831 # (2) before a word containing "conftest.", or (3) at the end.
7832 # Note that $ac_compile itself does not contain backslashes and begins
7833 # with a dollar sign (not a hyphen), so the echo should work correctly.
7834 # The option is referenced via a variable to avoid confusing sed.
7835 lt_compile=`echo "$ac_compile" | $SED \
7836 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7837 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7838 -e 's:$: $lt_compiler_flag:'`
7839 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7840 (eval "$lt_compile" 2>conftest.err)
7841 ac_status=$?
7842 cat conftest.err >&5
7843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7844 if (exit $ac_status) && test -s "$ac_outfile"; then
7845 # The compiler can only warn and ignore the option if not recognized
7846 # So say no if there are warnings other than the usual output.
7847 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7848 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7849 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7850 lt_cv_prog_compiler_rtti_exceptions=yes
7853 $RM conftest*
7856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7857 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7859 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7860 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7861 else
7872 lt_prog_compiler_wl=
7873 lt_prog_compiler_pic=
7874 lt_prog_compiler_static=
7876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7877 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7879 if test "$GCC" = yes; then
7880 lt_prog_compiler_wl='-Wl,'
7881 lt_prog_compiler_static='-static'
7883 case $host_os in
7884 aix*)
7885 # All AIX code is PIC.
7886 if test "$host_cpu" = ia64; then
7887 # AIX 5 now supports IA64 processor
7888 lt_prog_compiler_static='-Bstatic'
7890 lt_prog_compiler_pic='-fPIC'
7893 amigaos*)
7894 case $host_cpu in
7895 powerpc)
7896 # see comment about AmigaOS4 .so support
7897 lt_prog_compiler_pic='-fPIC'
7899 m68k)
7900 # FIXME: we need at least 68020 code to build shared libraries, but
7901 # adding the `-m68020' flag to GCC prevents building anything better,
7902 # like `-m68040'.
7903 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7905 esac
7908 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7909 # PIC is the default for these OSes.
7912 mingw* | cygwin* | pw32* | os2* | cegcc*)
7913 # This hack is so that the source file can tell whether it is being
7914 # built for inclusion in a dll (and should export symbols for example).
7915 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7916 # (--disable-auto-import) libraries
7917 lt_prog_compiler_pic='-DDLL_EXPORT'
7920 darwin* | rhapsody*)
7921 # PIC is the default on this platform
7922 # Common symbols not allowed in MH_DYLIB files
7923 lt_prog_compiler_pic='-fno-common'
7926 haiku*)
7927 # PIC is the default for Haiku.
7928 # The "-static" flag exists, but is broken.
7929 lt_prog_compiler_static=
7932 hpux*)
7933 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7934 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7935 # sets the default TLS model and affects inlining.
7936 case $host_cpu in
7937 hppa*64*)
7938 # +Z the default
7941 lt_prog_compiler_pic='-fPIC'
7943 esac
7946 interix[3-9]*)
7947 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7948 # Instead, we relocate shared libraries at runtime.
7951 msdosdjgpp*)
7952 # Just because we use GCC doesn't mean we suddenly get shared libraries
7953 # on systems that don't support them.
7954 lt_prog_compiler_can_build_shared=no
7955 enable_shared=no
7958 *nto* | *qnx*)
7959 # QNX uses GNU C++, but need to define -shared option too, otherwise
7960 # it will coredump.
7961 lt_prog_compiler_pic='-fPIC -shared'
7964 sysv4*MP*)
7965 if test -d /usr/nec; then
7966 lt_prog_compiler_pic=-Kconform_pic
7971 lt_prog_compiler_pic='-fPIC'
7973 esac
7975 case $cc_basename in
7976 nvcc*) # Cuda Compiler Driver 2.2
7977 lt_prog_compiler_wl='-Xlinker '
7978 lt_prog_compiler_pic='-Xcompiler -fPIC'
7980 esac
7981 else
7982 # PORTME Check for flag to pass linker flags through the system compiler.
7983 case $host_os in
7984 aix*)
7985 lt_prog_compiler_wl='-Wl,'
7986 if test "$host_cpu" = ia64; then
7987 # AIX 5 now supports IA64 processor
7988 lt_prog_compiler_static='-Bstatic'
7989 else
7990 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7994 mingw* | cygwin* | pw32* | os2* | cegcc*)
7995 # This hack is so that the source file can tell whether it is being
7996 # built for inclusion in a dll (and should export symbols for example).
7997 lt_prog_compiler_pic='-DDLL_EXPORT'
8000 hpux9* | hpux10* | hpux11*)
8001 lt_prog_compiler_wl='-Wl,'
8002 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8003 # not for PA HP-UX.
8004 case $host_cpu in
8005 hppa*64*|ia64*)
8006 # +Z the default
8009 lt_prog_compiler_pic='+Z'
8011 esac
8012 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8013 lt_prog_compiler_static='${wl}-a ${wl}archive'
8016 irix5* | irix6* | nonstopux*)
8017 lt_prog_compiler_wl='-Wl,'
8018 # PIC (with -KPIC) is the default.
8019 lt_prog_compiler_static='-non_shared'
8022 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8023 case $cc_basename in
8024 # old Intel for x86_64 which still supported -KPIC.
8025 ecc*)
8026 lt_prog_compiler_wl='-Wl,'
8027 lt_prog_compiler_pic='-KPIC'
8028 lt_prog_compiler_static='-static'
8030 # icc used to be incompatible with GCC.
8031 # ICC 10 doesn't accept -KPIC any more.
8032 icc* | ifort*)
8033 lt_prog_compiler_wl='-Wl,'
8034 lt_prog_compiler_pic='-fPIC'
8035 lt_prog_compiler_static='-static'
8037 # Lahey Fortran 8.1.
8038 lf95*)
8039 lt_prog_compiler_wl='-Wl,'
8040 lt_prog_compiler_pic='--shared'
8041 lt_prog_compiler_static='--static'
8043 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8044 # Portland Group compilers (*not* the Pentium gcc compiler,
8045 # which looks to be a dead project)
8046 lt_prog_compiler_wl='-Wl,'
8047 lt_prog_compiler_pic='-fpic'
8048 lt_prog_compiler_static='-Bstatic'
8050 ccc*)
8051 lt_prog_compiler_wl='-Wl,'
8052 # All Alpha code is PIC.
8053 lt_prog_compiler_static='-non_shared'
8055 xl* | bgxl* | bgf* | mpixl*)
8056 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8057 lt_prog_compiler_wl='-Wl,'
8058 lt_prog_compiler_pic='-qpic'
8059 lt_prog_compiler_static='-qstaticlink'
8062 case `$CC -V 2>&1 | sed 5q` in
8063 *Sun\ F* | *Sun*Fortran*)
8064 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8065 lt_prog_compiler_pic='-KPIC'
8066 lt_prog_compiler_static='-Bstatic'
8067 lt_prog_compiler_wl=''
8069 *Sun\ C*)
8070 # Sun C 5.9
8071 lt_prog_compiler_pic='-KPIC'
8072 lt_prog_compiler_static='-Bstatic'
8073 lt_prog_compiler_wl='-Wl,'
8075 esac
8077 esac
8080 newsos6)
8081 lt_prog_compiler_pic='-KPIC'
8082 lt_prog_compiler_static='-Bstatic'
8085 *nto* | *qnx*)
8086 # QNX uses GNU C++, but need to define -shared option too, otherwise
8087 # it will coredump.
8088 lt_prog_compiler_pic='-fPIC -shared'
8091 osf3* | osf4* | osf5*)
8092 lt_prog_compiler_wl='-Wl,'
8093 # All OSF/1 code is PIC.
8094 lt_prog_compiler_static='-non_shared'
8097 rdos*)
8098 lt_prog_compiler_static='-non_shared'
8101 solaris*)
8102 lt_prog_compiler_pic='-KPIC'
8103 lt_prog_compiler_static='-Bstatic'
8104 case $cc_basename in
8105 f77* | f90* | f95*)
8106 lt_prog_compiler_wl='-Qoption ld ';;
8108 lt_prog_compiler_wl='-Wl,';;
8109 esac
8112 sunos4*)
8113 lt_prog_compiler_wl='-Qoption ld '
8114 lt_prog_compiler_pic='-PIC'
8115 lt_prog_compiler_static='-Bstatic'
8118 sysv4 | sysv4.2uw2* | sysv4.3*)
8119 lt_prog_compiler_wl='-Wl,'
8120 lt_prog_compiler_pic='-KPIC'
8121 lt_prog_compiler_static='-Bstatic'
8124 sysv4*MP*)
8125 if test -d /usr/nec ;then
8126 lt_prog_compiler_pic='-Kconform_pic'
8127 lt_prog_compiler_static='-Bstatic'
8131 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8132 lt_prog_compiler_wl='-Wl,'
8133 lt_prog_compiler_pic='-KPIC'
8134 lt_prog_compiler_static='-Bstatic'
8137 unicos*)
8138 lt_prog_compiler_wl='-Wl,'
8139 lt_prog_compiler_can_build_shared=no
8142 uts4*)
8143 lt_prog_compiler_pic='-pic'
8144 lt_prog_compiler_static='-Bstatic'
8148 lt_prog_compiler_can_build_shared=no
8150 esac
8153 case $host_os in
8154 # For platforms which do not support PIC, -DPIC is meaningless:
8155 *djgpp*)
8156 lt_prog_compiler_pic=
8159 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8161 esac
8162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8163 $as_echo "$lt_prog_compiler_pic" >&6; }
8171 # Check to make sure the PIC flag actually works.
8173 if test -n "$lt_prog_compiler_pic"; then
8174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8175 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8176 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8177 $as_echo_n "(cached) " >&6
8178 else
8179 lt_cv_prog_compiler_pic_works=no
8180 ac_outfile=conftest.$ac_objext
8181 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8182 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8183 # Insert the option either (1) after the last *FLAGS variable, or
8184 # (2) before a word containing "conftest.", or (3) at the end.
8185 # Note that $ac_compile itself does not contain backslashes and begins
8186 # with a dollar sign (not a hyphen), so the echo should work correctly.
8187 # The option is referenced via a variable to avoid confusing sed.
8188 lt_compile=`echo "$ac_compile" | $SED \
8189 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8190 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8191 -e 's:$: $lt_compiler_flag:'`
8192 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8193 (eval "$lt_compile" 2>conftest.err)
8194 ac_status=$?
8195 cat conftest.err >&5
8196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8197 if (exit $ac_status) && test -s "$ac_outfile"; then
8198 # The compiler can only warn and ignore the option if not recognized
8199 # So say no if there are warnings other than the usual output.
8200 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8201 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8202 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8203 lt_cv_prog_compiler_pic_works=yes
8206 $RM conftest*
8209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8210 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8212 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8213 case $lt_prog_compiler_pic in
8214 "" | " "*) ;;
8215 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8216 esac
8217 else
8218 lt_prog_compiler_pic=
8219 lt_prog_compiler_can_build_shared=no
8230 # Check to make sure the static flag actually works.
8232 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8234 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8235 if ${lt_cv_prog_compiler_static_works+:} false; then :
8236 $as_echo_n "(cached) " >&6
8237 else
8238 lt_cv_prog_compiler_static_works=no
8239 save_LDFLAGS="$LDFLAGS"
8240 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8241 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8242 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8243 # The linker can only warn and ignore the option if not recognized
8244 # So say no if there are warnings
8245 if test -s conftest.err; then
8246 # Append any errors to the config.log.
8247 cat conftest.err 1>&5
8248 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8249 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8250 if diff conftest.exp conftest.er2 >/dev/null; then
8251 lt_cv_prog_compiler_static_works=yes
8253 else
8254 lt_cv_prog_compiler_static_works=yes
8257 $RM -r conftest*
8258 LDFLAGS="$save_LDFLAGS"
8261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8262 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8264 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8266 else
8267 lt_prog_compiler_static=
8276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8277 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8278 if ${lt_cv_prog_compiler_c_o+:} false; then :
8279 $as_echo_n "(cached) " >&6
8280 else
8281 lt_cv_prog_compiler_c_o=no
8282 $RM -r conftest 2>/dev/null
8283 mkdir conftest
8284 cd conftest
8285 mkdir out
8286 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8288 lt_compiler_flag="-o out/conftest2.$ac_objext"
8289 # Insert the option either (1) after the last *FLAGS variable, or
8290 # (2) before a word containing "conftest.", or (3) at the end.
8291 # Note that $ac_compile itself does not contain backslashes and begins
8292 # with a dollar sign (not a hyphen), so the echo should work correctly.
8293 lt_compile=`echo "$ac_compile" | $SED \
8294 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8295 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8296 -e 's:$: $lt_compiler_flag:'`
8297 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8298 (eval "$lt_compile" 2>out/conftest.err)
8299 ac_status=$?
8300 cat out/conftest.err >&5
8301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8302 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8303 then
8304 # The compiler can only warn and ignore the option if not recognized
8305 # So say no if there are warnings
8306 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8307 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8308 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8309 lt_cv_prog_compiler_c_o=yes
8312 chmod u+w . 2>&5
8313 $RM conftest*
8314 # SGI C++ compiler will create directory out/ii_files/ for
8315 # template instantiation
8316 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8317 $RM out/* && rmdir out
8318 cd ..
8319 $RM -r conftest
8320 $RM conftest*
8323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8324 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8332 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8333 if ${lt_cv_prog_compiler_c_o+:} false; then :
8334 $as_echo_n "(cached) " >&6
8335 else
8336 lt_cv_prog_compiler_c_o=no
8337 $RM -r conftest 2>/dev/null
8338 mkdir conftest
8339 cd conftest
8340 mkdir out
8341 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8343 lt_compiler_flag="-o out/conftest2.$ac_objext"
8344 # Insert the option either (1) after the last *FLAGS variable, or
8345 # (2) before a word containing "conftest.", or (3) at the end.
8346 # Note that $ac_compile itself does not contain backslashes and begins
8347 # with a dollar sign (not a hyphen), so the echo should work correctly.
8348 lt_compile=`echo "$ac_compile" | $SED \
8349 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8350 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8351 -e 's:$: $lt_compiler_flag:'`
8352 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8353 (eval "$lt_compile" 2>out/conftest.err)
8354 ac_status=$?
8355 cat out/conftest.err >&5
8356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8357 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8358 then
8359 # The compiler can only warn and ignore the option if not recognized
8360 # So say no if there are warnings
8361 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8362 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8363 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8364 lt_cv_prog_compiler_c_o=yes
8367 chmod u+w . 2>&5
8368 $RM conftest*
8369 # SGI C++ compiler will create directory out/ii_files/ for
8370 # template instantiation
8371 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8372 $RM out/* && rmdir out
8373 cd ..
8374 $RM -r conftest
8375 $RM conftest*
8378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8379 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8384 hard_links="nottested"
8385 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8386 # do not overwrite the value of need_locks provided by the user
8387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8388 $as_echo_n "checking if we can lock with hard links... " >&6; }
8389 hard_links=yes
8390 $RM conftest*
8391 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8392 touch conftest.a
8393 ln conftest.a conftest.b 2>&5 || hard_links=no
8394 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8396 $as_echo "$hard_links" >&6; }
8397 if test "$hard_links" = no; then
8398 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8399 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8400 need_locks=warn
8402 else
8403 need_locks=no
8411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8412 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8414 runpath_var=
8415 allow_undefined_flag=
8416 always_export_symbols=no
8417 archive_cmds=
8418 archive_expsym_cmds=
8419 compiler_needs_object=no
8420 enable_shared_with_static_runtimes=no
8421 export_dynamic_flag_spec=
8422 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8423 hardcode_automatic=no
8424 hardcode_direct=no
8425 hardcode_direct_absolute=no
8426 hardcode_libdir_flag_spec=
8427 hardcode_libdir_flag_spec_ld=
8428 hardcode_libdir_separator=
8429 hardcode_minus_L=no
8430 hardcode_shlibpath_var=unsupported
8431 inherit_rpath=no
8432 link_all_deplibs=unknown
8433 module_cmds=
8434 module_expsym_cmds=
8435 old_archive_from_new_cmds=
8436 old_archive_from_expsyms_cmds=
8437 thread_safe_flag_spec=
8438 whole_archive_flag_spec=
8439 # include_expsyms should be a list of space-separated symbols to be *always*
8440 # included in the symbol list
8441 include_expsyms=
8442 # exclude_expsyms can be an extended regexp of symbols to exclude
8443 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8444 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8445 # as well as any symbol that contains `d'.
8446 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8447 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8448 # platforms (ab)use it in PIC code, but their linkers get confused if
8449 # the symbol is explicitly referenced. Since portable code cannot
8450 # rely on this symbol name, it's probably fine to never include it in
8451 # preloaded symbol tables.
8452 # Exclude shared library initialization/finalization symbols.
8453 extract_expsyms_cmds=
8455 case $host_os in
8456 cygwin* | mingw* | pw32* | cegcc*)
8457 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8458 # When not using gcc, we currently assume that we are using
8459 # Microsoft Visual C++.
8460 if test "$GCC" != yes; then
8461 with_gnu_ld=no
8464 interix*)
8465 # we just hope/assume this is gcc and not c89 (= MSVC++)
8466 with_gnu_ld=yes
8468 openbsd*)
8469 with_gnu_ld=no
8471 esac
8473 ld_shlibs=yes
8475 # On some targets, GNU ld is compatible enough with the native linker
8476 # that we're better off using the native interface for both.
8477 lt_use_gnu_ld_interface=no
8478 if test "$with_gnu_ld" = yes; then
8479 case $host_os in
8480 aix*)
8481 # The AIX port of GNU ld has always aspired to compatibility
8482 # with the native linker. However, as the warning in the GNU ld
8483 # block says, versions before 2.19.5* couldn't really create working
8484 # shared libraries, regardless of the interface used.
8485 case `$LD -v 2>&1` in
8486 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8487 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8488 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8490 lt_use_gnu_ld_interface=yes
8492 esac
8495 lt_use_gnu_ld_interface=yes
8497 esac
8500 if test "$lt_use_gnu_ld_interface" = yes; then
8501 # If archive_cmds runs LD, not CC, wlarc should be empty
8502 wlarc='${wl}'
8504 # Set some defaults for GNU ld with shared library support. These
8505 # are reset later if shared libraries are not supported. Putting them
8506 # here allows them to be overridden if necessary.
8507 runpath_var=LD_RUN_PATH
8508 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8509 export_dynamic_flag_spec='${wl}--export-dynamic'
8510 # ancient GNU ld didn't support --whole-archive et. al.
8511 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8512 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8513 else
8514 whole_archive_flag_spec=
8516 supports_anon_versioning=no
8517 case `$LD -v 2>&1` in
8518 *GNU\ gold*) supports_anon_versioning=yes ;;
8519 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8520 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8521 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8522 *\ 2.11.*) ;; # other 2.11 versions
8523 *) supports_anon_versioning=yes ;;
8524 esac
8526 # See if GNU ld supports shared libraries.
8527 case $host_os in
8528 aix[3-9]*)
8529 # On AIX/PPC, the GNU linker is very broken
8530 if test "$host_cpu" != ia64; then
8531 ld_shlibs=no
8532 cat <<_LT_EOF 1>&2
8534 *** Warning: the GNU linker, at least up to release 2.19, is reported
8535 *** to be unable to reliably create shared libraries on AIX.
8536 *** Therefore, libtool is disabling shared libraries support. If you
8537 *** really care for shared libraries, you may want to install binutils
8538 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8539 *** You will then need to restart the configuration process.
8541 _LT_EOF
8545 amigaos*)
8546 case $host_cpu in
8547 powerpc)
8548 # see comment about AmigaOS4 .so support
8549 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8550 archive_expsym_cmds=''
8552 m68k)
8553 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)'
8554 hardcode_libdir_flag_spec='-L$libdir'
8555 hardcode_minus_L=yes
8557 esac
8560 beos*)
8561 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8562 allow_undefined_flag=unsupported
8563 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8564 # support --undefined. This deserves some investigation. FIXME
8565 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8566 else
8567 ld_shlibs=no
8571 cygwin* | mingw* | pw32* | cegcc*)
8572 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8573 # as there is no search path for DLLs.
8574 hardcode_libdir_flag_spec='-L$libdir'
8575 export_dynamic_flag_spec='${wl}--export-all-symbols'
8576 allow_undefined_flag=unsupported
8577 always_export_symbols=no
8578 enable_shared_with_static_runtimes=yes
8579 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8581 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8582 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8583 # If the export-symbols file already is a .def file (1st line
8584 # is EXPORTS), use it as is; otherwise, prepend...
8585 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8586 cp $export_symbols $output_objdir/$soname.def;
8587 else
8588 echo EXPORTS > $output_objdir/$soname.def;
8589 cat $export_symbols >> $output_objdir/$soname.def;
8591 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8592 else
8593 ld_shlibs=no
8597 haiku*)
8598 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8599 link_all_deplibs=yes
8602 interix[3-9]*)
8603 hardcode_direct=no
8604 hardcode_shlibpath_var=no
8605 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8606 export_dynamic_flag_spec='${wl}-E'
8607 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8608 # Instead, shared libraries are loaded at an image base (0x10000000 by
8609 # default) and relocated if they conflict, which is a slow very memory
8610 # consuming and fragmenting process. To avoid this, we pick a random,
8611 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8612 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8613 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8614 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'
8617 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
8618 tmp_diet=no
8619 if test "$host_os" = linux-dietlibc; then
8620 case $cc_basename in
8621 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8622 esac
8624 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8625 && test "$tmp_diet" = no
8626 then
8627 tmp_addflag=' $pic_flag'
8628 tmp_sharedflag='-shared'
8629 case $cc_basename,$host_cpu in
8630 pgcc*) # Portland Group C compiler
8631 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'
8632 tmp_addflag=' $pic_flag'
8634 pgf77* | pgf90* | pgf95* | pgfortran*)
8635 # Portland Group f77 and f90 compilers
8636 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'
8637 tmp_addflag=' $pic_flag -Mnomain' ;;
8638 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8639 tmp_addflag=' -i_dynamic' ;;
8640 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8641 tmp_addflag=' -i_dynamic -nofor_main' ;;
8642 ifc* | ifort*) # Intel Fortran compiler
8643 tmp_addflag=' -nofor_main' ;;
8644 lf95*) # Lahey Fortran 8.1
8645 whole_archive_flag_spec=
8646 tmp_sharedflag='--shared' ;;
8647 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8648 tmp_sharedflag='-qmkshrobj'
8649 tmp_addflag= ;;
8650 nvcc*) # Cuda Compiler Driver 2.2
8651 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'
8652 compiler_needs_object=yes
8654 esac
8655 case `$CC -V 2>&1 | sed 5q` in
8656 *Sun\ C*) # Sun C 5.9
8657 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'
8658 compiler_needs_object=yes
8659 tmp_sharedflag='-G' ;;
8660 *Sun\ F*) # Sun Fortran 8.3
8661 tmp_sharedflag='-G' ;;
8662 esac
8663 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8665 if test "x$supports_anon_versioning" = xyes; then
8666 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8667 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8668 echo "local: *; };" >> $output_objdir/$libname.ver~
8669 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8672 case $cc_basename in
8673 xlf* | bgf* | bgxlf* | mpixlf*)
8674 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8675 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8676 hardcode_libdir_flag_spec=
8677 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8678 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8679 if test "x$supports_anon_versioning" = xyes; then
8680 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8681 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8682 echo "local: *; };" >> $output_objdir/$libname.ver~
8683 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8686 esac
8687 else
8688 ld_shlibs=no
8692 netbsd*)
8693 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8694 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8695 wlarc=
8696 else
8697 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8698 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8702 solaris*)
8703 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8704 ld_shlibs=no
8705 cat <<_LT_EOF 1>&2
8707 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8708 *** create shared libraries on Solaris systems. Therefore, libtool
8709 *** is disabling shared libraries support. We urge you to upgrade GNU
8710 *** binutils to release 2.9.1 or newer. Another option is to modify
8711 *** your PATH or compiler configuration so that the native linker is
8712 *** used, and then restart.
8714 _LT_EOF
8715 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8716 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8717 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8718 else
8719 ld_shlibs=no
8723 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8724 case `$LD -v 2>&1` in
8725 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8726 ld_shlibs=no
8727 cat <<_LT_EOF 1>&2
8729 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8730 *** reliably create shared libraries on SCO systems. Therefore, libtool
8731 *** is disabling shared libraries support. We urge you to upgrade GNU
8732 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8733 *** your PATH or compiler configuration so that the native linker is
8734 *** used, and then restart.
8736 _LT_EOF
8739 # For security reasons, it is highly recommended that you always
8740 # use absolute paths for naming shared libraries, and exclude the
8741 # DT_RUNPATH tag from executables and libraries. But doing so
8742 # requires that you compile everything twice, which is a pain.
8743 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8744 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8745 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8746 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8747 else
8748 ld_shlibs=no
8751 esac
8754 sunos4*)
8755 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8756 wlarc=
8757 hardcode_direct=yes
8758 hardcode_shlibpath_var=no
8762 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8763 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8764 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8765 else
8766 ld_shlibs=no
8769 esac
8771 if test "$ld_shlibs" = no; then
8772 runpath_var=
8773 hardcode_libdir_flag_spec=
8774 export_dynamic_flag_spec=
8775 whole_archive_flag_spec=
8777 else
8778 # PORTME fill in a description of your system's linker (not GNU ld)
8779 case $host_os in
8780 aix3*)
8781 allow_undefined_flag=unsupported
8782 always_export_symbols=yes
8783 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'
8784 # Note: this linker hardcodes the directories in LIBPATH if there
8785 # are no directories specified by -L.
8786 hardcode_minus_L=yes
8787 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8788 # Neither direct hardcoding nor static linking is supported with a
8789 # broken collect2.
8790 hardcode_direct=unsupported
8794 aix[4-9]*)
8795 if test "$host_cpu" = ia64; then
8796 # On IA64, the linker does run time linking by default, so we don't
8797 # have to do anything special.
8798 aix_use_runtimelinking=no
8799 exp_sym_flag='-Bexport'
8800 no_entry_flag=""
8801 else
8802 # If we're using GNU nm, then we don't want the "-C" option.
8803 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8804 # Also, AIX nm treats weak defined symbols like other global
8805 # defined symbols, whereas GNU nm marks them as "W".
8806 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8807 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'
8808 else
8809 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'
8811 aix_use_runtimelinking=no
8813 # Test if we are trying to use run time linking or normal
8814 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8815 # need to do runtime linking.
8816 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8817 for ld_flag in $LDFLAGS; do
8818 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8819 aix_use_runtimelinking=yes
8820 break
8822 done
8824 esac
8826 exp_sym_flag='-bexport'
8827 no_entry_flag='-bnoentry'
8830 # When large executables or shared objects are built, AIX ld can
8831 # have problems creating the table of contents. If linking a library
8832 # or program results in "error TOC overflow" add -mminimal-toc to
8833 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8834 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8836 archive_cmds=''
8837 hardcode_direct=yes
8838 hardcode_direct_absolute=yes
8839 hardcode_libdir_separator=':'
8840 link_all_deplibs=yes
8841 file_list_spec='${wl}-f,'
8843 if test "$GCC" = yes; then
8844 case $host_os in aix4.[012]|aix4.[012].*)
8845 # We only want to do this on AIX 4.2 and lower, the check
8846 # below for broken collect2 doesn't work under 4.3+
8847 collect2name=`${CC} -print-prog-name=collect2`
8848 if test -f "$collect2name" &&
8849 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8850 then
8851 # We have reworked collect2
8853 else
8854 # We have old collect2
8855 hardcode_direct=unsupported
8856 # It fails to find uninstalled libraries when the uninstalled
8857 # path is not listed in the libpath. Setting hardcode_minus_L
8858 # to unsupported forces relinking
8859 hardcode_minus_L=yes
8860 hardcode_libdir_flag_spec='-L$libdir'
8861 hardcode_libdir_separator=
8864 esac
8865 shared_flag='-shared'
8866 if test "$aix_use_runtimelinking" = yes; then
8867 shared_flag="$shared_flag "'${wl}-G'
8869 else
8870 # not using gcc
8871 if test "$host_cpu" = ia64; then
8872 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8873 # chokes on -Wl,-G. The following line is correct:
8874 shared_flag='-G'
8875 else
8876 if test "$aix_use_runtimelinking" = yes; then
8877 shared_flag='${wl}-G'
8878 else
8879 shared_flag='${wl}-bM:SRE'
8884 export_dynamic_flag_spec='${wl}-bexpall'
8885 # It seems that -bexpall does not export symbols beginning with
8886 # underscore (_), so it is better to generate a list of symbols to export.
8887 always_export_symbols=yes
8888 if test "$aix_use_runtimelinking" = yes; then
8889 # Warning - without using the other runtime loading flags (-brtl),
8890 # -berok will link without error, but may produce a broken library.
8891 allow_undefined_flag='-berok'
8892 # Determine the default libpath from the value encoded in an
8893 # empty executable.
8894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8895 /* end confdefs.h. */
8898 main ()
8902 return 0;
8904 _ACEOF
8905 if ac_fn_c_try_link "$LINENO"; then :
8907 lt_aix_libpath_sed='
8908 /Import File Strings/,/^$/ {
8909 /^0/ {
8910 s/^0 *\(.*\)$/\1/
8914 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8915 # Check for a 64-bit object if we didn't find anything.
8916 if test -z "$aix_libpath"; then
8917 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8920 rm -f core conftest.err conftest.$ac_objext \
8921 conftest$ac_exeext conftest.$ac_ext
8922 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8924 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8925 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"
8926 else
8927 if test "$host_cpu" = ia64; then
8928 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8929 allow_undefined_flag="-z nodefs"
8930 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"
8931 else
8932 # Determine the default libpath from the value encoded in an
8933 # empty executable.
8934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8935 /* end confdefs.h. */
8938 main ()
8942 return 0;
8944 _ACEOF
8945 if ac_fn_c_try_link "$LINENO"; then :
8947 lt_aix_libpath_sed='
8948 /Import File Strings/,/^$/ {
8949 /^0/ {
8950 s/^0 *\(.*\)$/\1/
8954 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8955 # Check for a 64-bit object if we didn't find anything.
8956 if test -z "$aix_libpath"; then
8957 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8960 rm -f core conftest.err conftest.$ac_objext \
8961 conftest$ac_exeext conftest.$ac_ext
8962 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8964 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8965 # Warning - without using the other run time loading flags,
8966 # -berok will link without error, but may produce a broken library.
8967 no_undefined_flag=' ${wl}-bernotok'
8968 allow_undefined_flag=' ${wl}-berok'
8969 if test "$with_gnu_ld" = yes; then
8970 # We only use this code for GNU lds that support --whole-archive.
8971 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8972 else
8973 # Exported symbols can be pulled into shared objects from archives
8974 whole_archive_flag_spec='$convenience'
8976 archive_cmds_need_lc=yes
8977 # This is similar to how AIX traditionally builds its shared libraries.
8978 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'
8983 amigaos*)
8984 case $host_cpu in
8985 powerpc)
8986 # see comment about AmigaOS4 .so support
8987 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8988 archive_expsym_cmds=''
8990 m68k)
8991 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)'
8992 hardcode_libdir_flag_spec='-L$libdir'
8993 hardcode_minus_L=yes
8995 esac
8998 bsdi[45]*)
8999 export_dynamic_flag_spec=-rdynamic
9002 cygwin* | mingw* | pw32* | cegcc*)
9003 # When not using gcc, we currently assume that we are using
9004 # Microsoft Visual C++.
9005 # hardcode_libdir_flag_spec is actually meaningless, as there is
9006 # no search path for DLLs.
9007 hardcode_libdir_flag_spec=' '
9008 allow_undefined_flag=unsupported
9009 # Tell ltmain to make .lib files, not .a files.
9010 libext=lib
9011 # Tell ltmain to make .dll files, not .so files.
9012 shrext_cmds=".dll"
9013 # FIXME: Setting linknames here is a bad hack.
9014 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9015 # The linker will automatically build a .lib file if we build a DLL.
9016 old_archive_from_new_cmds='true'
9017 # FIXME: Should let the user specify the lib program.
9018 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9019 fix_srcfile_path='`cygpath -w "$srcfile"`'
9020 enable_shared_with_static_runtimes=yes
9023 darwin* | rhapsody*)
9026 archive_cmds_need_lc=no
9027 hardcode_direct=no
9028 hardcode_automatic=yes
9029 hardcode_shlibpath_var=unsupported
9030 if test "$lt_cv_ld_force_load" = "yes"; then
9031 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\"`'
9032 else
9033 whole_archive_flag_spec=''
9035 link_all_deplibs=yes
9036 allow_undefined_flag="$_lt_dar_allow_undefined"
9037 case $cc_basename in
9038 ifort*) _lt_dar_can_shared=yes ;;
9039 *) _lt_dar_can_shared=$GCC ;;
9040 esac
9041 if test "$_lt_dar_can_shared" = "yes"; then
9042 output_verbose_link_cmd=func_echo_all
9043 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9044 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9045 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}"
9046 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}"
9048 else
9049 ld_shlibs=no
9054 dgux*)
9055 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9056 hardcode_libdir_flag_spec='-L$libdir'
9057 hardcode_shlibpath_var=no
9060 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9061 # support. Future versions do this automatically, but an explicit c++rt0.o
9062 # does not break anything, and helps significantly (at the cost of a little
9063 # extra space).
9064 freebsd2.2*)
9065 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9066 hardcode_libdir_flag_spec='-R$libdir'
9067 hardcode_direct=yes
9068 hardcode_shlibpath_var=no
9071 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9072 freebsd2.*)
9073 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9074 hardcode_direct=yes
9075 hardcode_minus_L=yes
9076 hardcode_shlibpath_var=no
9079 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9080 freebsd* | dragonfly*)
9081 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9082 hardcode_libdir_flag_spec='-R$libdir'
9083 hardcode_direct=yes
9084 hardcode_shlibpath_var=no
9087 hpux9*)
9088 if test "$GCC" = yes; then
9089 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'
9090 else
9091 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'
9093 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9094 hardcode_libdir_separator=:
9095 hardcode_direct=yes
9097 # hardcode_minus_L: Not really in the search PATH,
9098 # but as the default location of the library.
9099 hardcode_minus_L=yes
9100 export_dynamic_flag_spec='${wl}-E'
9103 hpux10*)
9104 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9105 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9106 else
9107 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9109 if test "$with_gnu_ld" = no; then
9110 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9111 hardcode_libdir_flag_spec_ld='+b $libdir'
9112 hardcode_libdir_separator=:
9113 hardcode_direct=yes
9114 hardcode_direct_absolute=yes
9115 export_dynamic_flag_spec='${wl}-E'
9116 # hardcode_minus_L: Not really in the search PATH,
9117 # but as the default location of the library.
9118 hardcode_minus_L=yes
9122 hpux11*)
9123 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9124 case $host_cpu in
9125 hppa*64*)
9126 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9128 ia64*)
9129 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9132 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9134 esac
9135 else
9136 case $host_cpu in
9137 hppa*64*)
9138 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9140 ia64*)
9141 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9145 # Older versions of the 11.00 compiler do not understand -b yet
9146 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9148 $as_echo_n "checking if $CC understands -b... " >&6; }
9149 if ${lt_cv_prog_compiler__b+:} false; then :
9150 $as_echo_n "(cached) " >&6
9151 else
9152 lt_cv_prog_compiler__b=no
9153 save_LDFLAGS="$LDFLAGS"
9154 LDFLAGS="$LDFLAGS -b"
9155 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9156 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9157 # The linker can only warn and ignore the option if not recognized
9158 # So say no if there are warnings
9159 if test -s conftest.err; then
9160 # Append any errors to the config.log.
9161 cat conftest.err 1>&5
9162 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9163 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9164 if diff conftest.exp conftest.er2 >/dev/null; then
9165 lt_cv_prog_compiler__b=yes
9167 else
9168 lt_cv_prog_compiler__b=yes
9171 $RM -r conftest*
9172 LDFLAGS="$save_LDFLAGS"
9175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9176 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9178 if test x"$lt_cv_prog_compiler__b" = xyes; then
9179 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9180 else
9181 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9185 esac
9187 if test "$with_gnu_ld" = no; then
9188 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9189 hardcode_libdir_separator=:
9191 case $host_cpu in
9192 hppa*64*|ia64*)
9193 hardcode_direct=no
9194 hardcode_shlibpath_var=no
9197 hardcode_direct=yes
9198 hardcode_direct_absolute=yes
9199 export_dynamic_flag_spec='${wl}-E'
9201 # hardcode_minus_L: Not really in the search PATH,
9202 # but as the default location of the library.
9203 hardcode_minus_L=yes
9205 esac
9209 irix5* | irix6* | nonstopux*)
9210 if test "$GCC" = yes; then
9211 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'
9212 # Try to use the -exported_symbol ld option, if it does not
9213 # work, assume that -exports_file does not work either and
9214 # implicitly export all symbols.
9215 save_LDFLAGS="$LDFLAGS"
9216 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9218 /* end confdefs.h. */
9219 int foo(void) {}
9220 _ACEOF
9221 if ac_fn_c_try_link "$LINENO"; then :
9222 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'
9225 rm -f core conftest.err conftest.$ac_objext \
9226 conftest$ac_exeext conftest.$ac_ext
9227 LDFLAGS="$save_LDFLAGS"
9228 else
9229 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'
9230 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'
9232 archive_cmds_need_lc='no'
9233 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9234 hardcode_libdir_separator=:
9235 inherit_rpath=yes
9236 link_all_deplibs=yes
9239 netbsd*)
9240 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9241 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9242 else
9243 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9245 hardcode_libdir_flag_spec='-R$libdir'
9246 hardcode_direct=yes
9247 hardcode_shlibpath_var=no
9250 newsos6)
9251 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9252 hardcode_direct=yes
9253 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9254 hardcode_libdir_separator=:
9255 hardcode_shlibpath_var=no
9258 *nto* | *qnx*)
9261 openbsd*)
9262 if test -f /usr/libexec/ld.so; then
9263 hardcode_direct=yes
9264 hardcode_shlibpath_var=no
9265 hardcode_direct_absolute=yes
9266 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9267 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9268 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9269 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9270 export_dynamic_flag_spec='${wl}-E'
9271 else
9272 case $host_os in
9273 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9274 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9275 hardcode_libdir_flag_spec='-R$libdir'
9278 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9279 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9281 esac
9283 else
9284 ld_shlibs=no
9288 os2*)
9289 hardcode_libdir_flag_spec='-L$libdir'
9290 hardcode_minus_L=yes
9291 allow_undefined_flag=unsupported
9292 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'
9293 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9296 osf3*)
9297 if test "$GCC" = yes; then
9298 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9299 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'
9300 else
9301 allow_undefined_flag=' -expect_unresolved \*'
9302 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'
9304 archive_cmds_need_lc='no'
9305 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9306 hardcode_libdir_separator=:
9309 osf4* | osf5*) # as osf3* with the addition of -msym flag
9310 if test "$GCC" = yes; then
9311 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9312 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'
9313 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9314 else
9315 allow_undefined_flag=' -expect_unresolved \*'
9316 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'
9317 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~
9318 $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'
9320 # Both c and cxx compiler support -rpath directly
9321 hardcode_libdir_flag_spec='-rpath $libdir'
9323 archive_cmds_need_lc='no'
9324 hardcode_libdir_separator=:
9327 solaris*)
9328 no_undefined_flag=' -z defs'
9329 if test "$GCC" = yes; then
9330 wlarc='${wl}'
9331 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9332 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9333 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9334 else
9335 case `$CC -V 2>&1` in
9336 *"Compilers 5.0"*)
9337 wlarc=''
9338 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9339 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9340 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9343 wlarc='${wl}'
9344 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9345 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9346 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9348 esac
9350 hardcode_libdir_flag_spec='-R$libdir'
9351 hardcode_shlibpath_var=no
9352 case $host_os in
9353 solaris2.[0-5] | solaris2.[0-5].*) ;;
9355 # The compiler driver will combine and reorder linker options,
9356 # but understands `-z linker_flag'. GCC discards it without `$wl',
9357 # but is careful enough not to reorder.
9358 # Supported since Solaris 2.6 (maybe 2.5.1?)
9359 if test "$GCC" = yes; then
9360 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9361 else
9362 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9365 esac
9366 link_all_deplibs=yes
9369 sunos4*)
9370 if test "x$host_vendor" = xsequent; then
9371 # Use $CC to link under sequent, because it throws in some extra .o
9372 # files that make .init and .fini sections work.
9373 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9374 else
9375 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9377 hardcode_libdir_flag_spec='-L$libdir'
9378 hardcode_direct=yes
9379 hardcode_minus_L=yes
9380 hardcode_shlibpath_var=no
9383 sysv4)
9384 case $host_vendor in
9385 sni)
9386 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9387 hardcode_direct=yes # is this really true???
9389 siemens)
9390 ## LD is ld it makes a PLAMLIB
9391 ## CC just makes a GrossModule.
9392 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9393 reload_cmds='$CC -r -o $output$reload_objs'
9394 hardcode_direct=no
9396 motorola)
9397 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9398 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9400 esac
9401 runpath_var='LD_RUN_PATH'
9402 hardcode_shlibpath_var=no
9405 sysv4.3*)
9406 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9407 hardcode_shlibpath_var=no
9408 export_dynamic_flag_spec='-Bexport'
9411 sysv4*MP*)
9412 if test -d /usr/nec; then
9413 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9414 hardcode_shlibpath_var=no
9415 runpath_var=LD_RUN_PATH
9416 hardcode_runpath_var=yes
9417 ld_shlibs=yes
9421 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9422 no_undefined_flag='${wl}-z,text'
9423 archive_cmds_need_lc=no
9424 hardcode_shlibpath_var=no
9425 runpath_var='LD_RUN_PATH'
9427 if test "$GCC" = yes; then
9428 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9429 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9430 else
9431 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9432 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9436 sysv5* | sco3.2v5* | sco5v6*)
9437 # Note: We can NOT use -z defs as we might desire, because we do not
9438 # link with -lc, and that would cause any symbols used from libc to
9439 # always be unresolved, which means just about no library would
9440 # ever link correctly. If we're not using GNU ld we use -z text
9441 # though, which does catch some bad symbols but isn't as heavy-handed
9442 # as -z defs.
9443 no_undefined_flag='${wl}-z,text'
9444 allow_undefined_flag='${wl}-z,nodefs'
9445 archive_cmds_need_lc=no
9446 hardcode_shlibpath_var=no
9447 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9448 hardcode_libdir_separator=':'
9449 link_all_deplibs=yes
9450 export_dynamic_flag_spec='${wl}-Bexport'
9451 runpath_var='LD_RUN_PATH'
9453 if test "$GCC" = yes; then
9454 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9455 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9456 else
9457 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9458 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9462 uts4*)
9463 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9464 hardcode_libdir_flag_spec='-L$libdir'
9465 hardcode_shlibpath_var=no
9469 ld_shlibs=no
9471 esac
9473 if test x$host_vendor = xsni; then
9474 case $host in
9475 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9476 export_dynamic_flag_spec='${wl}-Blargedynsym'
9478 esac
9482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9483 $as_echo "$ld_shlibs" >&6; }
9484 test "$ld_shlibs" = no && can_build_shared=no
9486 with_gnu_ld=$with_gnu_ld
9503 # Do we need to explicitly link libc?
9505 case "x$archive_cmds_need_lc" in
9506 x|xyes)
9507 # Assume -lc should be added
9508 archive_cmds_need_lc=yes
9510 if test "$enable_shared" = yes && test "$GCC" = yes; then
9511 case $archive_cmds in
9512 *'~'*)
9513 # FIXME: we may have to deal with multi-command sequences.
9515 '$CC '*)
9516 # Test whether the compiler implicitly links with -lc since on some
9517 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9518 # to ld, don't add -lc before -lgcc.
9519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9520 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9521 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9522 $as_echo_n "(cached) " >&6
9523 else
9524 $RM conftest*
9525 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9527 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9528 (eval $ac_compile) 2>&5
9529 ac_status=$?
9530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9531 test $ac_status = 0; } 2>conftest.err; then
9532 soname=conftest
9533 lib=conftest
9534 libobjs=conftest.$ac_objext
9535 deplibs=
9536 wl=$lt_prog_compiler_wl
9537 pic_flag=$lt_prog_compiler_pic
9538 compiler_flags=-v
9539 linker_flags=-v
9540 verstring=
9541 output_objdir=.
9542 libname=conftest
9543 lt_save_allow_undefined_flag=$allow_undefined_flag
9544 allow_undefined_flag=
9545 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9546 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9547 ac_status=$?
9548 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9549 test $ac_status = 0; }
9550 then
9551 lt_cv_archive_cmds_need_lc=no
9552 else
9553 lt_cv_archive_cmds_need_lc=yes
9555 allow_undefined_flag=$lt_save_allow_undefined_flag
9556 else
9557 cat conftest.err 1>&5
9559 $RM conftest*
9562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9563 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9564 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9566 esac
9569 esac
9727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9728 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9730 if test "$GCC" = yes; then
9731 case $host_os in
9732 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9733 *) lt_awk_arg="/^libraries:/" ;;
9734 esac
9735 case $host_os in
9736 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9737 *) lt_sed_strip_eq="s,=/,/,g" ;;
9738 esac
9739 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9740 case $lt_search_path_spec in
9741 *\;*)
9742 # if the path contains ";" then we assume it to be the separator
9743 # otherwise default to the standard path separator (i.e. ":") - it is
9744 # assumed that no part of a normal pathname contains ";" but that should
9745 # okay in the real world where ";" in dirpaths is itself problematic.
9746 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9749 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9751 esac
9752 # Ok, now we have the path, separated by spaces, we can step through it
9753 # and add multilib dir if necessary.
9754 lt_tmp_lt_search_path_spec=
9755 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9756 for lt_sys_path in $lt_search_path_spec; do
9757 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9758 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9759 else
9760 test -d "$lt_sys_path" && \
9761 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9763 done
9764 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9765 BEGIN {RS=" "; FS="/|\n";} {
9766 lt_foo="";
9767 lt_count=0;
9768 for (lt_i = NF; lt_i > 0; lt_i--) {
9769 if ($lt_i != "" && $lt_i != ".") {
9770 if ($lt_i == "..") {
9771 lt_count++;
9772 } else {
9773 if (lt_count == 0) {
9774 lt_foo="/" $lt_i lt_foo;
9775 } else {
9776 lt_count--;
9781 if (lt_foo != "") { lt_freq[lt_foo]++; }
9782 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9784 # AWK program above erroneously prepends '/' to C:/dos/paths
9785 # for these hosts.
9786 case $host_os in
9787 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9788 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9789 esac
9790 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9791 else
9792 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9794 library_names_spec=
9795 libname_spec='lib$name'
9796 soname_spec=
9797 shrext_cmds=".so"
9798 postinstall_cmds=
9799 postuninstall_cmds=
9800 finish_cmds=
9801 finish_eval=
9802 shlibpath_var=
9803 shlibpath_overrides_runpath=unknown
9804 version_type=none
9805 dynamic_linker="$host_os ld.so"
9806 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9807 need_lib_prefix=unknown
9808 hardcode_into_libs=no
9810 # when you set need_version to no, make sure it does not cause -set_version
9811 # flags to be left without arguments
9812 need_version=unknown
9814 case $host_os in
9815 aix3*)
9816 version_type=linux
9817 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9818 shlibpath_var=LIBPATH
9820 # AIX 3 has no versioning support, so we append a major version to the name.
9821 soname_spec='${libname}${release}${shared_ext}$major'
9824 aix[4-9]*)
9825 version_type=linux
9826 need_lib_prefix=no
9827 need_version=no
9828 hardcode_into_libs=yes
9829 if test "$host_cpu" = ia64; then
9830 # AIX 5 supports IA64
9831 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9832 shlibpath_var=LD_LIBRARY_PATH
9833 else
9834 # With GCC up to 2.95.x, collect2 would create an import file
9835 # for dependence libraries. The import file would start with
9836 # the line `#! .'. This would cause the generated library to
9837 # depend on `.', always an invalid library. This was fixed in
9838 # development snapshots of GCC prior to 3.0.
9839 case $host_os in
9840 aix4 | aix4.[01] | aix4.[01].*)
9841 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9842 echo ' yes '
9843 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9845 else
9846 can_build_shared=no
9849 esac
9850 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9851 # soname into executable. Probably we can add versioning support to
9852 # collect2, so additional links can be useful in future.
9853 if test "$aix_use_runtimelinking" = yes; then
9854 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9855 # instead of lib<name>.a to let people know that these are not
9856 # typical AIX shared libraries.
9857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9858 else
9859 # We preserve .a as extension for shared libraries through AIX4.2
9860 # and later when we are not doing run time linking.
9861 library_names_spec='${libname}${release}.a $libname.a'
9862 soname_spec='${libname}${release}${shared_ext}$major'
9864 shlibpath_var=LIBPATH
9868 amigaos*)
9869 case $host_cpu in
9870 powerpc)
9871 # Since July 2007 AmigaOS4 officially supports .so libraries.
9872 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9875 m68k)
9876 library_names_spec='$libname.ixlibrary $libname.a'
9877 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9878 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'
9880 esac
9883 beos*)
9884 library_names_spec='${libname}${shared_ext}'
9885 dynamic_linker="$host_os ld.so"
9886 shlibpath_var=LIBRARY_PATH
9889 bsdi[45]*)
9890 version_type=linux
9891 need_version=no
9892 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9893 soname_spec='${libname}${release}${shared_ext}$major'
9894 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9895 shlibpath_var=LD_LIBRARY_PATH
9896 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9897 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9898 # the default ld.so.conf also contains /usr/contrib/lib and
9899 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9900 # libtool to hard-code these into programs
9903 cygwin* | mingw* | pw32* | cegcc*)
9904 version_type=windows
9905 shrext_cmds=".dll"
9906 need_version=no
9907 need_lib_prefix=no
9909 case $GCC,$host_os in
9910 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9911 library_names_spec='$libname.dll.a'
9912 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9913 postinstall_cmds='base_file=`basename \${file}`~
9914 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9915 dldir=$destdir/`dirname \$dlpath`~
9916 test -d \$dldir || mkdir -p \$dldir~
9917 $install_prog $dir/$dlname \$dldir/$dlname~
9918 chmod a+x \$dldir/$dlname~
9919 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9920 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9922 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9923 dlpath=$dir/\$dldll~
9924 $RM \$dlpath'
9925 shlibpath_overrides_runpath=yes
9927 case $host_os in
9928 cygwin*)
9929 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9930 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9932 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9934 mingw* | cegcc*)
9935 # MinGW DLLs use traditional 'lib' prefix
9936 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9938 pw32*)
9939 # pw32 DLLs use 'pw' prefix rather than 'lib'
9940 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9942 esac
9946 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9948 esac
9949 dynamic_linker='Win32 ld.exe'
9950 # FIXME: first we should search . and the directory the executable is in
9951 shlibpath_var=PATH
9954 darwin* | rhapsody*)
9955 dynamic_linker="$host_os dyld"
9956 version_type=darwin
9957 need_lib_prefix=no
9958 need_version=no
9959 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9960 soname_spec='${libname}${release}${major}$shared_ext'
9961 shlibpath_overrides_runpath=yes
9962 shlibpath_var=DYLD_LIBRARY_PATH
9963 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9965 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9966 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9969 dgux*)
9970 version_type=linux
9971 need_lib_prefix=no
9972 need_version=no
9973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9974 soname_spec='${libname}${release}${shared_ext}$major'
9975 shlibpath_var=LD_LIBRARY_PATH
9978 freebsd* | dragonfly*)
9979 # DragonFly does not have aout. When/if they implement a new
9980 # versioning mechanism, adjust this.
9981 if test -x /usr/bin/objformat; then
9982 objformat=`/usr/bin/objformat`
9983 else
9984 case $host_os in
9985 freebsd[23].*) objformat=aout ;;
9986 *) objformat=elf ;;
9987 esac
9989 version_type=freebsd-$objformat
9990 case $version_type in
9991 freebsd-elf*)
9992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9993 need_version=no
9994 need_lib_prefix=no
9996 freebsd-*)
9997 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9998 need_version=yes
10000 esac
10001 shlibpath_var=LD_LIBRARY_PATH
10002 case $host_os in
10003 freebsd2.*)
10004 shlibpath_overrides_runpath=yes
10006 freebsd3.[01]* | freebsdelf3.[01]*)
10007 shlibpath_overrides_runpath=yes
10008 hardcode_into_libs=yes
10010 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10011 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10012 shlibpath_overrides_runpath=no
10013 hardcode_into_libs=yes
10015 *) # from 4.6 on, and DragonFly
10016 shlibpath_overrides_runpath=yes
10017 hardcode_into_libs=yes
10019 esac
10022 haiku*)
10023 version_type=linux
10024 need_lib_prefix=no
10025 need_version=no
10026 dynamic_linker="$host_os runtime_loader"
10027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10028 soname_spec='${libname}${release}${shared_ext}$major'
10029 shlibpath_var=LIBRARY_PATH
10030 shlibpath_overrides_runpath=yes
10031 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10032 hardcode_into_libs=yes
10035 hpux9* | hpux10* | hpux11*)
10036 # Give a soname corresponding to the major version so that dld.sl refuses to
10037 # link against other versions.
10038 version_type=sunos
10039 need_lib_prefix=no
10040 need_version=no
10041 case $host_cpu in
10042 ia64*)
10043 shrext_cmds='.so'
10044 hardcode_into_libs=yes
10045 dynamic_linker="$host_os dld.so"
10046 shlibpath_var=LD_LIBRARY_PATH
10047 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10049 soname_spec='${libname}${release}${shared_ext}$major'
10050 if test "X$HPUX_IA64_MODE" = X32; then
10051 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10052 else
10053 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10055 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10057 hppa*64*)
10058 shrext_cmds='.sl'
10059 hardcode_into_libs=yes
10060 dynamic_linker="$host_os dld.sl"
10061 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10062 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10064 soname_spec='${libname}${release}${shared_ext}$major'
10065 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10066 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10069 shrext_cmds='.sl'
10070 dynamic_linker="$host_os dld.sl"
10071 shlibpath_var=SHLIB_PATH
10072 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10074 soname_spec='${libname}${release}${shared_ext}$major'
10076 esac
10077 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10078 postinstall_cmds='chmod 555 $lib'
10079 # or fails outright, so override atomically:
10080 install_override_mode=555
10083 interix[3-9]*)
10084 version_type=linux
10085 need_lib_prefix=no
10086 need_version=no
10087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10088 soname_spec='${libname}${release}${shared_ext}$major'
10089 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10090 shlibpath_var=LD_LIBRARY_PATH
10091 shlibpath_overrides_runpath=no
10092 hardcode_into_libs=yes
10095 irix5* | irix6* | nonstopux*)
10096 case $host_os in
10097 nonstopux*) version_type=nonstopux ;;
10099 if test "$lt_cv_prog_gnu_ld" = yes; then
10100 version_type=linux
10101 else
10102 version_type=irix
10103 fi ;;
10104 esac
10105 need_lib_prefix=no
10106 need_version=no
10107 soname_spec='${libname}${release}${shared_ext}$major'
10108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10109 case $host_os in
10110 irix5* | nonstopux*)
10111 libsuff= shlibsuff=
10114 case $LD in # libtool.m4 will add one of these switches to LD
10115 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10116 libsuff= shlibsuff= libmagic=32-bit;;
10117 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10118 libsuff=32 shlibsuff=N32 libmagic=N32;;
10119 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10120 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10121 *) libsuff= shlibsuff= libmagic=never-match;;
10122 esac
10124 esac
10125 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10126 shlibpath_overrides_runpath=no
10127 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10128 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10129 hardcode_into_libs=yes
10132 # No shared lib support for Linux oldld, aout, or coff.
10133 linux*oldld* | linux*aout* | linux*coff*)
10134 dynamic_linker=no
10137 # This must be Linux ELF.
10139 # uclinux* changes (here and below) have been submitted to the libtool
10140 # project, but have not yet been accepted: they are GCC-local changes
10141 # for the time being. (See
10142 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
10143 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
10144 version_type=linux
10145 need_lib_prefix=no
10146 need_version=no
10147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10148 soname_spec='${libname}${release}${shared_ext}$major'
10149 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10150 shlibpath_var=LD_LIBRARY_PATH
10151 shlibpath_overrides_runpath=no
10153 # Some binutils ld are patched to set DT_RUNPATH
10154 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10155 $as_echo_n "(cached) " >&6
10156 else
10157 lt_cv_shlibpath_overrides_runpath=no
10158 save_LDFLAGS=$LDFLAGS
10159 save_libdir=$libdir
10160 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10161 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10163 /* end confdefs.h. */
10166 main ()
10170 return 0;
10172 _ACEOF
10173 if ac_fn_c_try_link "$LINENO"; then :
10174 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10175 lt_cv_shlibpath_overrides_runpath=yes
10178 rm -f core conftest.err conftest.$ac_objext \
10179 conftest$ac_exeext conftest.$ac_ext
10180 LDFLAGS=$save_LDFLAGS
10181 libdir=$save_libdir
10185 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10187 # This implies no fast_install, which is unacceptable.
10188 # Some rework will be needed to allow for fast_install
10189 # before this can be enabled.
10190 hardcode_into_libs=yes
10192 # Append ld.so.conf contents to the search path
10193 if test -f /etc/ld.so.conf; then
10194 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' ' '`
10195 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10198 # We used to test for /lib/ld.so.1 and disable shared libraries on
10199 # powerpc, because MkLinux only supported shared libraries with the
10200 # GNU dynamic linker. Since this was broken with cross compilers,
10201 # most powerpc-linux boxes support dynamic linking these days and
10202 # people can always --disable-shared, the test was removed, and we
10203 # assume the GNU/Linux dynamic linker is in use.
10204 dynamic_linker='GNU/Linux ld.so'
10207 netbsd*)
10208 version_type=sunos
10209 need_lib_prefix=no
10210 need_version=no
10211 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10213 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10214 dynamic_linker='NetBSD (a.out) ld.so'
10215 else
10216 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10217 soname_spec='${libname}${release}${shared_ext}$major'
10218 dynamic_linker='NetBSD ld.elf_so'
10220 shlibpath_var=LD_LIBRARY_PATH
10221 shlibpath_overrides_runpath=yes
10222 hardcode_into_libs=yes
10225 newsos6)
10226 version_type=linux
10227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10228 shlibpath_var=LD_LIBRARY_PATH
10229 shlibpath_overrides_runpath=yes
10232 *nto* | *qnx*)
10233 version_type=qnx
10234 need_lib_prefix=no
10235 need_version=no
10236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10237 soname_spec='${libname}${release}${shared_ext}$major'
10238 shlibpath_var=LD_LIBRARY_PATH
10239 shlibpath_overrides_runpath=no
10240 hardcode_into_libs=yes
10241 dynamic_linker='ldqnx.so'
10244 openbsd*)
10245 version_type=sunos
10246 sys_lib_dlsearch_path_spec="/usr/lib"
10247 need_lib_prefix=no
10248 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10249 case $host_os in
10250 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10251 *) need_version=no ;;
10252 esac
10253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10254 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10255 shlibpath_var=LD_LIBRARY_PATH
10256 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10257 case $host_os in
10258 openbsd2.[89] | openbsd2.[89].*)
10259 shlibpath_overrides_runpath=no
10262 shlibpath_overrides_runpath=yes
10264 esac
10265 else
10266 shlibpath_overrides_runpath=yes
10270 os2*)
10271 libname_spec='$name'
10272 shrext_cmds=".dll"
10273 need_lib_prefix=no
10274 library_names_spec='$libname${shared_ext} $libname.a'
10275 dynamic_linker='OS/2 ld.exe'
10276 shlibpath_var=LIBPATH
10279 osf3* | osf4* | osf5*)
10280 version_type=osf
10281 need_lib_prefix=no
10282 need_version=no
10283 soname_spec='${libname}${release}${shared_ext}$major'
10284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10285 shlibpath_var=LD_LIBRARY_PATH
10286 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10287 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10290 rdos*)
10291 dynamic_linker=no
10294 solaris*)
10295 version_type=linux
10296 need_lib_prefix=no
10297 need_version=no
10298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10299 soname_spec='${libname}${release}${shared_ext}$major'
10300 shlibpath_var=LD_LIBRARY_PATH
10301 shlibpath_overrides_runpath=yes
10302 hardcode_into_libs=yes
10303 # ldd complains unless libraries are executable
10304 postinstall_cmds='chmod +x $lib'
10307 sunos4*)
10308 version_type=sunos
10309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10310 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10311 shlibpath_var=LD_LIBRARY_PATH
10312 shlibpath_overrides_runpath=yes
10313 if test "$with_gnu_ld" = yes; then
10314 need_lib_prefix=no
10316 need_version=yes
10319 sysv4 | sysv4.3*)
10320 version_type=linux
10321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10322 soname_spec='${libname}${release}${shared_ext}$major'
10323 shlibpath_var=LD_LIBRARY_PATH
10324 case $host_vendor in
10325 sni)
10326 shlibpath_overrides_runpath=no
10327 need_lib_prefix=no
10328 runpath_var=LD_RUN_PATH
10330 siemens)
10331 need_lib_prefix=no
10333 motorola)
10334 need_lib_prefix=no
10335 need_version=no
10336 shlibpath_overrides_runpath=no
10337 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10339 esac
10342 sysv4*MP*)
10343 if test -d /usr/nec ;then
10344 version_type=linux
10345 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10346 soname_spec='$libname${shared_ext}.$major'
10347 shlibpath_var=LD_LIBRARY_PATH
10351 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10352 version_type=freebsd-elf
10353 need_lib_prefix=no
10354 need_version=no
10355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10356 soname_spec='${libname}${release}${shared_ext}$major'
10357 shlibpath_var=LD_LIBRARY_PATH
10358 shlibpath_overrides_runpath=yes
10359 hardcode_into_libs=yes
10360 if test "$with_gnu_ld" = yes; then
10361 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10362 else
10363 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10364 case $host_os in
10365 sco3.2v5*)
10366 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10368 esac
10370 sys_lib_dlsearch_path_spec='/usr/lib'
10373 tpf*)
10374 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10375 version_type=linux
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 shlibpath_var=LD_LIBRARY_PATH
10380 shlibpath_overrides_runpath=no
10381 hardcode_into_libs=yes
10384 uts4*)
10385 version_type=linux
10386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10387 soname_spec='${libname}${release}${shared_ext}$major'
10388 shlibpath_var=LD_LIBRARY_PATH
10391 # Shared libraries for VwWorks, >= 7 only at this stage
10392 # and (fpic) still incompatible with "large" code models
10393 # in a few configurations. Only for RTP mode in any case,
10394 # and upon explicit request at configure time.
10395 vxworks7*)
10396 dynamic_linker=no
10397 case ${with_multisubdir}-${enable_shared} in
10398 *large*)
10400 *mrtp*-yes)
10401 version_type=linux
10402 need_lib_prefix=no
10403 need_version=no
10404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10405 soname_spec='${libname}${release}${shared_ext}$major'
10406 dynamic_linker="$host_os module_loader"
10408 esac
10411 dynamic_linker=no
10413 esac
10414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10415 $as_echo "$dynamic_linker" >&6; }
10416 test "$dynamic_linker" = no && can_build_shared=no
10418 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10419 if test "$GCC" = yes; then
10420 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10423 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10424 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10426 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10427 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10522 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10523 hardcode_action=
10524 if test -n "$hardcode_libdir_flag_spec" ||
10525 test -n "$runpath_var" ||
10526 test "X$hardcode_automatic" = "Xyes" ; then
10528 # We can hardcode non-existent directories.
10529 if test "$hardcode_direct" != no &&
10530 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10531 # have to relink, otherwise we might link with an installed library
10532 # when we should be linking with a yet-to-be-installed one
10533 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10534 test "$hardcode_minus_L" != no; then
10535 # Linking always hardcodes the temporary library directory.
10536 hardcode_action=relink
10537 else
10538 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10539 hardcode_action=immediate
10541 else
10542 # We cannot hardcode anything, or else we can only hardcode existing
10543 # directories.
10544 hardcode_action=unsupported
10546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10547 $as_echo "$hardcode_action" >&6; }
10549 if test "$hardcode_action" = relink ||
10550 test "$inherit_rpath" = yes; then
10551 # Fast installation is not supported
10552 enable_fast_install=no
10553 elif test "$shlibpath_overrides_runpath" = yes ||
10554 test "$enable_shared" = no; then
10555 # Fast installation is not necessary
10556 enable_fast_install=needless
10564 if test "x$enable_dlopen" != xyes; then
10565 enable_dlopen=unknown
10566 enable_dlopen_self=unknown
10567 enable_dlopen_self_static=unknown
10568 else
10569 lt_cv_dlopen=no
10570 lt_cv_dlopen_libs=
10572 case $host_os in
10573 beos*)
10574 lt_cv_dlopen="load_add_on"
10575 lt_cv_dlopen_libs=
10576 lt_cv_dlopen_self=yes
10579 mingw* | pw32* | cegcc*)
10580 lt_cv_dlopen="LoadLibrary"
10581 lt_cv_dlopen_libs=
10584 cygwin*)
10585 lt_cv_dlopen="dlopen"
10586 lt_cv_dlopen_libs=
10589 darwin*)
10590 # if libdl is installed we need to link against it
10591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10592 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10593 if ${ac_cv_lib_dl_dlopen+:} false; then :
10594 $as_echo_n "(cached) " >&6
10595 else
10596 ac_check_lib_save_LIBS=$LIBS
10597 LIBS="-ldl $LIBS"
10598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10599 /* end confdefs.h. */
10601 /* Override any GCC internal prototype to avoid an error.
10602 Use char because int might match the return type of a GCC
10603 builtin and then its argument prototype would still apply. */
10604 #ifdef __cplusplus
10605 extern "C"
10606 #endif
10607 char dlopen ();
10609 main ()
10611 return dlopen ();
10613 return 0;
10615 _ACEOF
10616 if ac_fn_c_try_link "$LINENO"; then :
10617 ac_cv_lib_dl_dlopen=yes
10618 else
10619 ac_cv_lib_dl_dlopen=no
10621 rm -f core conftest.err conftest.$ac_objext \
10622 conftest$ac_exeext conftest.$ac_ext
10623 LIBS=$ac_check_lib_save_LIBS
10625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10626 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10627 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10628 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10629 else
10631 lt_cv_dlopen="dyld"
10632 lt_cv_dlopen_libs=
10633 lt_cv_dlopen_self=yes
10640 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10641 if test "x$ac_cv_func_shl_load" = xyes; then :
10642 lt_cv_dlopen="shl_load"
10643 else
10644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10645 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10646 if ${ac_cv_lib_dld_shl_load+:} false; then :
10647 $as_echo_n "(cached) " >&6
10648 else
10649 ac_check_lib_save_LIBS=$LIBS
10650 LIBS="-ldld $LIBS"
10651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10652 /* end confdefs.h. */
10654 /* Override any GCC internal prototype to avoid an error.
10655 Use char because int might match the return type of a GCC
10656 builtin and then its argument prototype would still apply. */
10657 #ifdef __cplusplus
10658 extern "C"
10659 #endif
10660 char shl_load ();
10662 main ()
10664 return shl_load ();
10666 return 0;
10668 _ACEOF
10669 if ac_fn_c_try_link "$LINENO"; then :
10670 ac_cv_lib_dld_shl_load=yes
10671 else
10672 ac_cv_lib_dld_shl_load=no
10674 rm -f core conftest.err conftest.$ac_objext \
10675 conftest$ac_exeext conftest.$ac_ext
10676 LIBS=$ac_check_lib_save_LIBS
10678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10679 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10680 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10681 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10682 else
10683 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10684 if test "x$ac_cv_func_dlopen" = xyes; then :
10685 lt_cv_dlopen="dlopen"
10686 else
10687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10688 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10689 if ${ac_cv_lib_dl_dlopen+:} false; then :
10690 $as_echo_n "(cached) " >&6
10691 else
10692 ac_check_lib_save_LIBS=$LIBS
10693 LIBS="-ldl $LIBS"
10694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10695 /* end confdefs.h. */
10697 /* Override any GCC internal prototype to avoid an error.
10698 Use char because int might match the return type of a GCC
10699 builtin and then its argument prototype would still apply. */
10700 #ifdef __cplusplus
10701 extern "C"
10702 #endif
10703 char dlopen ();
10705 main ()
10707 return dlopen ();
10709 return 0;
10711 _ACEOF
10712 if ac_fn_c_try_link "$LINENO"; then :
10713 ac_cv_lib_dl_dlopen=yes
10714 else
10715 ac_cv_lib_dl_dlopen=no
10717 rm -f core conftest.err conftest.$ac_objext \
10718 conftest$ac_exeext conftest.$ac_ext
10719 LIBS=$ac_check_lib_save_LIBS
10721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10722 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10723 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10724 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10725 else
10726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10727 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10728 if ${ac_cv_lib_svld_dlopen+:} false; then :
10729 $as_echo_n "(cached) " >&6
10730 else
10731 ac_check_lib_save_LIBS=$LIBS
10732 LIBS="-lsvld $LIBS"
10733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10734 /* end confdefs.h. */
10736 /* Override any GCC internal prototype to avoid an error.
10737 Use char because int might match the return type of a GCC
10738 builtin and then its argument prototype would still apply. */
10739 #ifdef __cplusplus
10740 extern "C"
10741 #endif
10742 char dlopen ();
10744 main ()
10746 return dlopen ();
10748 return 0;
10750 _ACEOF
10751 if ac_fn_c_try_link "$LINENO"; then :
10752 ac_cv_lib_svld_dlopen=yes
10753 else
10754 ac_cv_lib_svld_dlopen=no
10756 rm -f core conftest.err conftest.$ac_objext \
10757 conftest$ac_exeext conftest.$ac_ext
10758 LIBS=$ac_check_lib_save_LIBS
10760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10761 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10762 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10763 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10764 else
10765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10766 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10767 if ${ac_cv_lib_dld_dld_link+:} false; then :
10768 $as_echo_n "(cached) " >&6
10769 else
10770 ac_check_lib_save_LIBS=$LIBS
10771 LIBS="-ldld $LIBS"
10772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10773 /* end confdefs.h. */
10775 /* Override any GCC internal prototype to avoid an error.
10776 Use char because int might match the return type of a GCC
10777 builtin and then its argument prototype would still apply. */
10778 #ifdef __cplusplus
10779 extern "C"
10780 #endif
10781 char dld_link ();
10783 main ()
10785 return dld_link ();
10787 return 0;
10789 _ACEOF
10790 if ac_fn_c_try_link "$LINENO"; then :
10791 ac_cv_lib_dld_dld_link=yes
10792 else
10793 ac_cv_lib_dld_dld_link=no
10795 rm -f core conftest.err conftest.$ac_objext \
10796 conftest$ac_exeext conftest.$ac_ext
10797 LIBS=$ac_check_lib_save_LIBS
10799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10800 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10801 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10802 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10821 esac
10823 if test "x$lt_cv_dlopen" != xno; then
10824 enable_dlopen=yes
10825 else
10826 enable_dlopen=no
10829 case $lt_cv_dlopen in
10830 dlopen)
10831 save_CPPFLAGS="$CPPFLAGS"
10832 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10834 save_LDFLAGS="$LDFLAGS"
10835 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10837 save_LIBS="$LIBS"
10838 LIBS="$lt_cv_dlopen_libs $LIBS"
10840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10841 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10842 if ${lt_cv_dlopen_self+:} false; then :
10843 $as_echo_n "(cached) " >&6
10844 else
10845 if test "$cross_compiling" = yes; then :
10846 lt_cv_dlopen_self=cross
10847 else
10848 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10849 lt_status=$lt_dlunknown
10850 cat > conftest.$ac_ext <<_LT_EOF
10851 #line 10851 "configure"
10852 #include "confdefs.h"
10854 #if HAVE_DLFCN_H
10855 #include <dlfcn.h>
10856 #endif
10858 #include <stdio.h>
10860 #ifdef RTLD_GLOBAL
10861 # define LT_DLGLOBAL RTLD_GLOBAL
10862 #else
10863 # ifdef DL_GLOBAL
10864 # define LT_DLGLOBAL DL_GLOBAL
10865 # else
10866 # define LT_DLGLOBAL 0
10867 # endif
10868 #endif
10870 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10871 find out it does not work in some platform. */
10872 #ifndef LT_DLLAZY_OR_NOW
10873 # ifdef RTLD_LAZY
10874 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10875 # else
10876 # ifdef DL_LAZY
10877 # define LT_DLLAZY_OR_NOW DL_LAZY
10878 # else
10879 # ifdef RTLD_NOW
10880 # define LT_DLLAZY_OR_NOW RTLD_NOW
10881 # else
10882 # ifdef DL_NOW
10883 # define LT_DLLAZY_OR_NOW DL_NOW
10884 # else
10885 # define LT_DLLAZY_OR_NOW 0
10886 # endif
10887 # endif
10888 # endif
10889 # endif
10890 #endif
10892 /* When -fvisbility=hidden is used, assume the code has been annotated
10893 correspondingly for the symbols needed. */
10894 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10895 void fnord () __attribute__((visibility("default")));
10896 #endif
10898 void fnord () { int i=42; }
10899 int main ()
10901 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10902 int status = $lt_dlunknown;
10904 if (self)
10906 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10907 else
10909 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10910 else puts (dlerror ());
10912 /* dlclose (self); */
10914 else
10915 puts (dlerror ());
10917 return status;
10919 _LT_EOF
10920 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10921 (eval $ac_link) 2>&5
10922 ac_status=$?
10923 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10924 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10925 (./conftest; exit; ) >&5 2>/dev/null
10926 lt_status=$?
10927 case x$lt_status in
10928 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10929 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10930 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10931 esac
10932 else :
10933 # compilation failed
10934 lt_cv_dlopen_self=no
10937 rm -fr conftest*
10941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10942 $as_echo "$lt_cv_dlopen_self" >&6; }
10944 if test "x$lt_cv_dlopen_self" = xyes; then
10945 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10947 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10948 if ${lt_cv_dlopen_self_static+:} false; then :
10949 $as_echo_n "(cached) " >&6
10950 else
10951 if test "$cross_compiling" = yes; then :
10952 lt_cv_dlopen_self_static=cross
10953 else
10954 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10955 lt_status=$lt_dlunknown
10956 cat > conftest.$ac_ext <<_LT_EOF
10957 #line 10957 "configure"
10958 #include "confdefs.h"
10960 #if HAVE_DLFCN_H
10961 #include <dlfcn.h>
10962 #endif
10964 #include <stdio.h>
10966 #ifdef RTLD_GLOBAL
10967 # define LT_DLGLOBAL RTLD_GLOBAL
10968 #else
10969 # ifdef DL_GLOBAL
10970 # define LT_DLGLOBAL DL_GLOBAL
10971 # else
10972 # define LT_DLGLOBAL 0
10973 # endif
10974 #endif
10976 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10977 find out it does not work in some platform. */
10978 #ifndef LT_DLLAZY_OR_NOW
10979 # ifdef RTLD_LAZY
10980 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10981 # else
10982 # ifdef DL_LAZY
10983 # define LT_DLLAZY_OR_NOW DL_LAZY
10984 # else
10985 # ifdef RTLD_NOW
10986 # define LT_DLLAZY_OR_NOW RTLD_NOW
10987 # else
10988 # ifdef DL_NOW
10989 # define LT_DLLAZY_OR_NOW DL_NOW
10990 # else
10991 # define LT_DLLAZY_OR_NOW 0
10992 # endif
10993 # endif
10994 # endif
10995 # endif
10996 #endif
10998 /* When -fvisbility=hidden is used, assume the code has been annotated
10999 correspondingly for the symbols needed. */
11000 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11001 void fnord () __attribute__((visibility("default")));
11002 #endif
11004 void fnord () { int i=42; }
11005 int main ()
11007 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11008 int status = $lt_dlunknown;
11010 if (self)
11012 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11013 else
11015 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11016 else puts (dlerror ());
11018 /* dlclose (self); */
11020 else
11021 puts (dlerror ());
11023 return status;
11025 _LT_EOF
11026 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11027 (eval $ac_link) 2>&5
11028 ac_status=$?
11029 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11030 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11031 (./conftest; exit; ) >&5 2>/dev/null
11032 lt_status=$?
11033 case x$lt_status in
11034 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11035 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11036 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11037 esac
11038 else :
11039 # compilation failed
11040 lt_cv_dlopen_self_static=no
11043 rm -fr conftest*
11047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11048 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11051 CPPFLAGS="$save_CPPFLAGS"
11052 LDFLAGS="$save_LDFLAGS"
11053 LIBS="$save_LIBS"
11055 esac
11057 case $lt_cv_dlopen_self in
11058 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11059 *) enable_dlopen_self=unknown ;;
11060 esac
11062 case $lt_cv_dlopen_self_static in
11063 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11064 *) enable_dlopen_self_static=unknown ;;
11065 esac
11084 striplib=
11085 old_striplib=
11086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11087 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11088 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11089 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11090 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11092 $as_echo "yes" >&6; }
11093 else
11094 # FIXME - insert some real tests, host_os isn't really good enough
11095 case $host_os in
11096 darwin*)
11097 if test -n "$STRIP" ; then
11098 striplib="$STRIP -x"
11099 old_striplib="$STRIP -S"
11100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11101 $as_echo "yes" >&6; }
11102 else
11103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11104 $as_echo "no" >&6; }
11108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11109 $as_echo "no" >&6; }
11111 esac
11125 # Report which library types will actually be built
11126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11127 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11129 $as_echo "$can_build_shared" >&6; }
11131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11132 $as_echo_n "checking whether to build shared libraries... " >&6; }
11133 test "$can_build_shared" = "no" && enable_shared=no
11135 # On AIX, shared libraries and static libraries use the same namespace, and
11136 # are all built from PIC.
11137 case $host_os in
11138 aix3*)
11139 test "$enable_shared" = yes && enable_static=no
11140 if test -n "$RANLIB"; then
11141 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11142 postinstall_cmds='$RANLIB $lib'
11146 aix[4-9]*)
11147 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11148 test "$enable_shared" = yes && enable_static=no
11151 esac
11152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11153 $as_echo "$enable_shared" >&6; }
11155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11156 $as_echo_n "checking whether to build static libraries... " >&6; }
11157 # Make sure either enable_shared or enable_static is yes.
11158 test "$enable_shared" = yes || enable_static=yes
11159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11160 $as_echo "$enable_static" >&6; }
11166 ac_ext=c
11167 ac_cpp='$CPP $CPPFLAGS'
11168 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11169 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11170 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11172 CC="$lt_save_CC"
11186 ac_config_commands="$ac_config_commands libtool"
11191 # Only expand once:
11195 # The tests for host and target for $enable_largefile require
11196 # canonical names.
11200 # As the $enable_largefile decision depends on --enable-plugins we must set it
11201 # even in directories otherwise not depending on the $plugins option.
11204 maybe_plugins=no
11205 for ac_header in dlfcn.h
11206 do :
11207 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
11209 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
11210 cat >>confdefs.h <<_ACEOF
11211 #define HAVE_DLFCN_H 1
11212 _ACEOF
11213 maybe_plugins=yes
11216 done
11218 for ac_header in windows.h
11219 do :
11220 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
11222 if test "x$ac_cv_header_windows_h" = xyes; then :
11223 cat >>confdefs.h <<_ACEOF
11224 #define HAVE_WINDOWS_H 1
11225 _ACEOF
11226 maybe_plugins=yes
11229 done
11232 # Check whether --enable-plugins was given.
11233 if test "${enable_plugins+set}" = set; then :
11234 enableval=$enable_plugins; case "${enableval}" in
11235 no) plugins=no ;;
11236 *) plugins=yes
11237 if test "$maybe_plugins" != "yes" ; then
11238 as_fn_error $? "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
11239 fi ;;
11240 esac
11241 else
11242 plugins=$maybe_plugins
11246 if test "$plugins" = "yes"; then
11247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
11248 $as_echo_n "checking for library containing dlsym... " >&6; }
11249 if ${ac_cv_search_dlsym+:} false; then :
11250 $as_echo_n "(cached) " >&6
11251 else
11252 ac_func_search_save_LIBS=$LIBS
11253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11254 /* end confdefs.h. */
11256 /* Override any GCC internal prototype to avoid an error.
11257 Use char because int might match the return type of a GCC
11258 builtin and then its argument prototype would still apply. */
11259 #ifdef __cplusplus
11260 extern "C"
11261 #endif
11262 char dlsym ();
11264 main ()
11266 return dlsym ();
11268 return 0;
11270 _ACEOF
11271 for ac_lib in '' dl; do
11272 if test -z "$ac_lib"; then
11273 ac_res="none required"
11274 else
11275 ac_res=-l$ac_lib
11276 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11278 if ac_fn_c_try_link "$LINENO"; then :
11279 ac_cv_search_dlsym=$ac_res
11281 rm -f core conftest.err conftest.$ac_objext \
11282 conftest$ac_exeext
11283 if ${ac_cv_search_dlsym+:} false; then :
11284 break
11286 done
11287 if ${ac_cv_search_dlsym+:} false; then :
11289 else
11290 ac_cv_search_dlsym=no
11292 rm conftest.$ac_ext
11293 LIBS=$ac_func_search_save_LIBS
11295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
11296 $as_echo "$ac_cv_search_dlsym" >&6; }
11297 ac_res=$ac_cv_search_dlsym
11298 if test "$ac_res" != no; then :
11299 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11306 case "${host}" in
11307 sparc-*-solaris*|i?86-*-solaris*)
11308 # On native 32-bit Solaris/SPARC and x86, large-file and procfs support
11309 # were mutually exclusive until Solaris 11.3. Without procfs support,
11310 # the bfd/ elf module cannot provide certain routines such as
11311 # elfcore_write_prpsinfo or elfcore_write_prstatus. So unless the user
11312 # explicitly requested large-file support through the
11313 # --enable-largefile switch, disable large-file support in favor of
11314 # procfs support.
11316 # Check if <sys/procfs.h> is incompatible with large-file support.
11317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11318 /* end confdefs.h. */
11319 #define _FILE_OFFSET_BITS 64
11320 #define _STRUCTURED_PROC 1
11321 #include <sys/procfs.h>
11323 main ()
11327 return 0;
11329 _ACEOF
11330 if ac_fn_c_try_compile "$LINENO"; then :
11331 acx_cv_procfs_lfs=yes
11332 else
11333 acx_cv_procfs_lfs=no
11335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11337 # Forcefully disable large-file support only if necessary, gdb is in
11338 # tree and enabled.
11339 if test "${target}" = "${host}" -a "$acx_cv_procfs_lfs" = no \
11340 -a -d $srcdir/../gdb -a "$enable_gdb" != no; then
11341 : ${enable_largefile="no"}
11342 if test "$plugins" = yes; then
11343 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
11344 plugin support disabled; require large-file support which is incompatible with GDB." >&5
11345 $as_echo "$as_me: WARNING:
11346 plugin support disabled; require large-file support which is incompatible with GDB." >&2;}
11347 plugins=no
11351 # Explicitly undef _FILE_OFFSET_BITS if enable_largefile=no for the
11352 # benefit of g++ 9+ which predefines it on Solaris.
11353 if test "$enable_largefile" = no; then
11354 LARGEFILE_CPPFLAGS="-U_FILE_OFFSET_BITS"
11358 esac
11360 # Check whether --enable-largefile was given.
11361 if test "${enable_largefile+set}" = set; then :
11362 enableval=$enable_largefile;
11365 if test "$enable_largefile" != no; then
11367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
11368 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
11369 if ${ac_cv_sys_largefile_CC+:} false; then :
11370 $as_echo_n "(cached) " >&6
11371 else
11372 ac_cv_sys_largefile_CC=no
11373 if test "$GCC" != yes; then
11374 ac_save_CC=$CC
11375 while :; do
11376 # IRIX 6.2 and later do not support large files by default,
11377 # so use the C compiler's -n32 option if that helps.
11378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11379 /* end confdefs.h. */
11380 #include <sys/types.h>
11381 /* Check that off_t can represent 2**63 - 1 correctly.
11382 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11383 since some C++ compilers masquerading as C compilers
11384 incorrectly reject 9223372036854775807. */
11385 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11386 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11387 && LARGE_OFF_T % 2147483647 == 1)
11388 ? 1 : -1];
11390 main ()
11394 return 0;
11396 _ACEOF
11397 if ac_fn_c_try_compile "$LINENO"; then :
11398 break
11400 rm -f core conftest.err conftest.$ac_objext
11401 CC="$CC -n32"
11402 if ac_fn_c_try_compile "$LINENO"; then :
11403 ac_cv_sys_largefile_CC=' -n32'; break
11405 rm -f core conftest.err conftest.$ac_objext
11406 break
11407 done
11408 CC=$ac_save_CC
11409 rm -f conftest.$ac_ext
11412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
11413 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
11414 if test "$ac_cv_sys_largefile_CC" != no; then
11415 CC=$CC$ac_cv_sys_largefile_CC
11418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
11419 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
11420 if ${ac_cv_sys_file_offset_bits+:} false; then :
11421 $as_echo_n "(cached) " >&6
11422 else
11423 while :; do
11424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11425 /* end confdefs.h. */
11426 #include <sys/types.h>
11427 /* Check that off_t can represent 2**63 - 1 correctly.
11428 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11429 since some C++ compilers masquerading as C compilers
11430 incorrectly reject 9223372036854775807. */
11431 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11432 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11433 && LARGE_OFF_T % 2147483647 == 1)
11434 ? 1 : -1];
11436 main ()
11440 return 0;
11442 _ACEOF
11443 if ac_fn_c_try_compile "$LINENO"; then :
11444 ac_cv_sys_file_offset_bits=no; break
11446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11448 /* end confdefs.h. */
11449 #define _FILE_OFFSET_BITS 64
11450 #include <sys/types.h>
11451 /* Check that off_t can represent 2**63 - 1 correctly.
11452 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11453 since some C++ compilers masquerading as C compilers
11454 incorrectly reject 9223372036854775807. */
11455 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11456 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11457 && LARGE_OFF_T % 2147483647 == 1)
11458 ? 1 : -1];
11460 main ()
11464 return 0;
11466 _ACEOF
11467 if ac_fn_c_try_compile "$LINENO"; then :
11468 ac_cv_sys_file_offset_bits=64; break
11470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11471 ac_cv_sys_file_offset_bits=unknown
11472 break
11473 done
11475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
11476 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
11477 case $ac_cv_sys_file_offset_bits in #(
11478 no | unknown) ;;
11480 cat >>confdefs.h <<_ACEOF
11481 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
11482 _ACEOF
11484 esac
11485 rm -rf conftest*
11486 if test $ac_cv_sys_file_offset_bits = unknown; then
11487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
11488 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
11489 if ${ac_cv_sys_large_files+:} false; then :
11490 $as_echo_n "(cached) " >&6
11491 else
11492 while :; do
11493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11494 /* end confdefs.h. */
11495 #include <sys/types.h>
11496 /* Check that off_t can represent 2**63 - 1 correctly.
11497 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11498 since some C++ compilers masquerading as C compilers
11499 incorrectly reject 9223372036854775807. */
11500 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11501 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11502 && LARGE_OFF_T % 2147483647 == 1)
11503 ? 1 : -1];
11505 main ()
11509 return 0;
11511 _ACEOF
11512 if ac_fn_c_try_compile "$LINENO"; then :
11513 ac_cv_sys_large_files=no; break
11515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11517 /* end confdefs.h. */
11518 #define _LARGE_FILES 1
11519 #include <sys/types.h>
11520 /* Check that off_t can represent 2**63 - 1 correctly.
11521 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11522 since some C++ compilers masquerading as C compilers
11523 incorrectly reject 9223372036854775807. */
11524 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11525 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11526 && LARGE_OFF_T % 2147483647 == 1)
11527 ? 1 : -1];
11529 main ()
11533 return 0;
11535 _ACEOF
11536 if ac_fn_c_try_compile "$LINENO"; then :
11537 ac_cv_sys_large_files=1; break
11539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11540 ac_cv_sys_large_files=unknown
11541 break
11542 done
11544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
11545 $as_echo "$ac_cv_sys_large_files" >&6; }
11546 case $ac_cv_sys_large_files in #(
11547 no | unknown) ;;
11549 cat >>confdefs.h <<_ACEOF
11550 #define _LARGE_FILES $ac_cv_sys_large_files
11551 _ACEOF
11553 esac
11554 rm -rf conftest*
11562 ac_checking=
11563 . ${srcdir}/../bfd/development.sh
11564 test "$development" = true && ac_checking=yes
11565 # Check whether --enable-checking was given.
11566 if test "${enable_checking+set}" = set; then :
11567 enableval=$enable_checking; case "${enableval}" in
11568 no|none) ac_checking= ;;
11569 *) ac_checking=yes ;;
11570 esac
11572 if test x$ac_checking != x ; then
11574 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
11578 # Check whether --enable-targets was given.
11579 if test "${enable_targets+set}" = set; then :
11580 enableval=$enable_targets; case "${enableval}" in
11581 yes | "") as_fn_error $? "enable-targets option must specify target names or 'all'" "$LINENO" 5
11583 no) enable_targets= ;;
11584 *) enable_targets=$enableval ;;
11585 esac
11589 # Check whether --enable-deterministic-archives was given.
11590 if test "${enable_deterministic_archives+set}" = set; then :
11591 enableval=$enable_deterministic_archives;
11592 if test "${enableval}" = no; then
11593 default_ar_deterministic=0
11594 else
11595 default_ar_deterministic=1
11597 else
11598 default_ar_deterministic=0
11603 cat >>confdefs.h <<_ACEOF
11604 #define DEFAULT_AR_DETERMINISTIC $default_ar_deterministic
11605 _ACEOF
11609 # Check whether --enable-default-strings-all was given.
11610 if test "${enable_default_strings_all+set}" = set; then :
11611 enableval=$enable_default_strings_all;
11612 if test "${enableval}" = no; then
11613 default_strings_all=0
11614 else
11615 default_strings_all=1
11617 else
11618 default_strings_all=1
11623 cat >>confdefs.h <<_ACEOF
11624 #define DEFAULT_STRINGS_ALL $default_strings_all
11625 _ACEOF
11629 # Check whether --enable-f-for-ifunc-symbols was given.
11630 if test "${enable_f_for_ifunc_symbols+set}" = set; then :
11631 enableval=$enable_f_for_ifunc_symbols;
11632 if test "${enableval}" = no; then
11633 default_f_for_ifunc=0
11634 else
11635 default_f_for_ifunc=1
11637 else
11638 default_f_for_ifunc=0
11643 cat >>confdefs.h <<_ACEOF
11644 #define DEFAULT_F_FOR_IFUNC_SYMBOLS $default_f_for_ifunc
11645 _ACEOF
11649 # Check whether --enable-follow-debug-links was given.
11650 if test "${enable_follow_debug_links+set}" = set; then :
11651 enableval=$enable_follow_debug_links;
11652 if test "${enableval}" = no; then
11653 default_for_follow_links=0
11654 else
11655 default_for_follow_links=1
11657 else
11658 default_for_follow_links=1
11663 cat >>confdefs.h <<_ACEOF
11664 #define DEFAULT_FOR_FOLLOW_LINKS $default_for_follow_links
11665 _ACEOF
11671 # Check whether --enable-colored-disassembly was given.
11672 if test "${enable_colored_disassembly+set}" = set; then :
11673 enableval=$enable_colored_disassembly;
11674 if test "${enableval}" = no; then
11675 default_for_colored_disassembly=0
11676 else
11677 default_for_colored_disassembly=1
11679 else
11680 default_for_colored_disassembly=0
11685 cat >>confdefs.h <<_ACEOF
11686 #define DEFAULT_FOR_COLORED_DISASSEMBLY $default_for_colored_disassembly
11687 _ACEOF
11698 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11699 if test -n "$ac_tool_prefix"; then
11700 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11701 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11703 $as_echo_n "checking for $ac_word... " >&6; }
11704 if ${ac_cv_path_PKG_CONFIG+:} false; then :
11705 $as_echo_n "(cached) " >&6
11706 else
11707 case $PKG_CONFIG in
11708 [\\/]* | ?:[\\/]*)
11709 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11713 for as_dir in $PATH
11715 IFS=$as_save_IFS
11716 test -z "$as_dir" && as_dir=.
11717 for ac_exec_ext in '' $ac_executable_extensions; do
11718 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11719 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11721 break 2
11723 done
11724 done
11725 IFS=$as_save_IFS
11728 esac
11730 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11731 if test -n "$PKG_CONFIG"; then
11732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11733 $as_echo "$PKG_CONFIG" >&6; }
11734 else
11735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11736 $as_echo "no" >&6; }
11741 if test -z "$ac_cv_path_PKG_CONFIG"; then
11742 ac_pt_PKG_CONFIG=$PKG_CONFIG
11743 # Extract the first word of "pkg-config", so it can be a program name with args.
11744 set dummy pkg-config; ac_word=$2
11745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11746 $as_echo_n "checking for $ac_word... " >&6; }
11747 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
11748 $as_echo_n "(cached) " >&6
11749 else
11750 case $ac_pt_PKG_CONFIG in
11751 [\\/]* | ?:[\\/]*)
11752 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
11755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11756 for as_dir in $PATH
11758 IFS=$as_save_IFS
11759 test -z "$as_dir" && as_dir=.
11760 for ac_exec_ext in '' $ac_executable_extensions; do
11761 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11762 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11764 break 2
11766 done
11767 done
11768 IFS=$as_save_IFS
11771 esac
11773 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
11774 if test -n "$ac_pt_PKG_CONFIG"; then
11775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
11776 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
11777 else
11778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11779 $as_echo "no" >&6; }
11782 if test "x$ac_pt_PKG_CONFIG" = x; then
11783 PKG_CONFIG=""
11784 else
11785 case $cross_compiling:$ac_tool_warned in
11786 yes:)
11787 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11788 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11789 ac_tool_warned=yes ;;
11790 esac
11791 PKG_CONFIG=$ac_pt_PKG_CONFIG
11793 else
11794 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11798 if test -n "$PKG_CONFIG"; then
11799 _pkg_min_version=0.9.0
11800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
11801 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
11802 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
11803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11804 $as_echo "yes" >&6; }
11805 else
11806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11807 $as_echo "no" >&6; }
11808 PKG_CONFIG=""
11812 # Handle optional debuginfod support as well as optional section
11813 # downloading support.
11815 # Define HAVE_LIBDEBUGINFOD if libdebuginfod is found with version >= 0.179.
11817 # Define HAVE_LIBDEBUGINFOD_FIND_SECTION if libdebuginfod is found with
11818 # version >= 0.188.
11820 # Check whether --with-debuginfod was given.
11821 if test "${with_debuginfod+set}" = set; then :
11822 withval=$with_debuginfod;
11823 else
11824 with_debuginfod=auto
11827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use debuginfod" >&5
11828 $as_echo_n "checking whether to use debuginfod... " >&6; }
11829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_debuginfod" >&5
11830 $as_echo "$with_debuginfod" >&6; }
11832 if test "x$with_debuginfod" != xno; then
11834 pkg_failed=no
11835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libdebuginfod >= 0.188" >&5
11836 $as_echo_n "checking for libdebuginfod >= 0.188... " >&6; }
11838 if test -n "$DEBUGINFOD_CFLAGS"; then
11839 pkg_cv_DEBUGINFOD_CFLAGS="$DEBUGINFOD_CFLAGS"
11840 elif test -n "$PKG_CONFIG"; then
11841 if test -n "$PKG_CONFIG" && \
11842 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdebuginfod >= 0.188\""; } >&5
11843 ($PKG_CONFIG --exists --print-errors "libdebuginfod >= 0.188") 2>&5
11844 ac_status=$?
11845 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11846 test $ac_status = 0; }; then
11847 pkg_cv_DEBUGINFOD_CFLAGS=`$PKG_CONFIG --cflags "libdebuginfod >= 0.188" 2>/dev/null`
11848 test "x$?" != "x0" && pkg_failed=yes
11849 else
11850 pkg_failed=yes
11852 else
11853 pkg_failed=untried
11855 if test -n "$DEBUGINFOD_LIBS"; then
11856 pkg_cv_DEBUGINFOD_LIBS="$DEBUGINFOD_LIBS"
11857 elif test -n "$PKG_CONFIG"; then
11858 if test -n "$PKG_CONFIG" && \
11859 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdebuginfod >= 0.188\""; } >&5
11860 ($PKG_CONFIG --exists --print-errors "libdebuginfod >= 0.188") 2>&5
11861 ac_status=$?
11862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11863 test $ac_status = 0; }; then
11864 pkg_cv_DEBUGINFOD_LIBS=`$PKG_CONFIG --libs "libdebuginfod >= 0.188" 2>/dev/null`
11865 test "x$?" != "x0" && pkg_failed=yes
11866 else
11867 pkg_failed=yes
11869 else
11870 pkg_failed=untried
11873 if test $pkg_failed = no; then
11874 pkg_save_LDFLAGS="$LDFLAGS"
11875 LDFLAGS="$LDFLAGS $pkg_cv_DEBUGINFOD_LIBS"
11876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11877 /* end confdefs.h. */
11880 main ()
11884 return 0;
11886 _ACEOF
11887 if ac_fn_c_try_link "$LINENO"; then :
11889 else
11890 pkg_failed=yes
11892 rm -f core conftest.err conftest.$ac_objext \
11893 conftest$ac_exeext conftest.$ac_ext
11894 LDFLAGS=$pkg_save_LDFLAGS
11899 if test $pkg_failed = yes; then
11900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11901 $as_echo "no" >&6; }
11903 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11904 _pkg_short_errors_supported=yes
11905 else
11906 _pkg_short_errors_supported=no
11908 if test $_pkg_short_errors_supported = yes; then
11909 DEBUGINFOD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdebuginfod >= 0.188" 2>&1`
11910 else
11911 DEBUGINFOD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdebuginfod >= 0.188" 2>&1`
11913 # Put the nasty error message in config.log where it belongs
11914 echo "$DEBUGINFOD_PKG_ERRORS" >&5
11916 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libdebuginfod is missing or some features may be unavailable." >&5
11917 $as_echo "$as_me: WARNING: libdebuginfod is missing or some features may be unavailable." >&2;}
11918 elif test $pkg_failed = untried; then
11919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11920 $as_echo "no" >&6; }
11921 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libdebuginfod is missing or some features may be unavailable." >&5
11922 $as_echo "$as_me: WARNING: libdebuginfod is missing or some features may be unavailable." >&2;}
11923 else
11924 DEBUGINFOD_CFLAGS=$pkg_cv_DEBUGINFOD_CFLAGS
11925 DEBUGINFOD_LIBS=$pkg_cv_DEBUGINFOD_LIBS
11926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11927 $as_echo "yes" >&6; }
11929 $as_echo "#define HAVE_LIBDEBUGINFOD_FIND_SECTION 1" >>confdefs.h
11934 pkg_failed=no
11935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libdebuginfod >= 0.179" >&5
11936 $as_echo_n "checking for libdebuginfod >= 0.179... " >&6; }
11938 if test -n "$DEBUGINFOD_CFLAGS"; then
11939 pkg_cv_DEBUGINFOD_CFLAGS="$DEBUGINFOD_CFLAGS"
11940 elif test -n "$PKG_CONFIG"; then
11941 if test -n "$PKG_CONFIG" && \
11942 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdebuginfod >= 0.179\""; } >&5
11943 ($PKG_CONFIG --exists --print-errors "libdebuginfod >= 0.179") 2>&5
11944 ac_status=$?
11945 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11946 test $ac_status = 0; }; then
11947 pkg_cv_DEBUGINFOD_CFLAGS=`$PKG_CONFIG --cflags "libdebuginfod >= 0.179" 2>/dev/null`
11948 test "x$?" != "x0" && pkg_failed=yes
11949 else
11950 pkg_failed=yes
11952 else
11953 pkg_failed=untried
11955 if test -n "$DEBUGINFOD_LIBS"; then
11956 pkg_cv_DEBUGINFOD_LIBS="$DEBUGINFOD_LIBS"
11957 elif test -n "$PKG_CONFIG"; then
11958 if test -n "$PKG_CONFIG" && \
11959 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdebuginfod >= 0.179\""; } >&5
11960 ($PKG_CONFIG --exists --print-errors "libdebuginfod >= 0.179") 2>&5
11961 ac_status=$?
11962 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11963 test $ac_status = 0; }; then
11964 pkg_cv_DEBUGINFOD_LIBS=`$PKG_CONFIG --libs "libdebuginfod >= 0.179" 2>/dev/null`
11965 test "x$?" != "x0" && pkg_failed=yes
11966 else
11967 pkg_failed=yes
11969 else
11970 pkg_failed=untried
11973 if test $pkg_failed = no; then
11974 pkg_save_LDFLAGS="$LDFLAGS"
11975 LDFLAGS="$LDFLAGS $pkg_cv_DEBUGINFOD_LIBS"
11976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11977 /* end confdefs.h. */
11980 main ()
11984 return 0;
11986 _ACEOF
11987 if ac_fn_c_try_link "$LINENO"; then :
11989 else
11990 pkg_failed=yes
11992 rm -f core conftest.err conftest.$ac_objext \
11993 conftest$ac_exeext conftest.$ac_ext
11994 LDFLAGS=$pkg_save_LDFLAGS
11999 if test $pkg_failed = yes; then
12000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12001 $as_echo "no" >&6; }
12003 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12004 _pkg_short_errors_supported=yes
12005 else
12006 _pkg_short_errors_supported=no
12008 if test $_pkg_short_errors_supported = yes; then
12009 DEBUGINFOD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdebuginfod >= 0.179" 2>&1`
12010 else
12011 DEBUGINFOD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdebuginfod >= 0.179" 2>&1`
12013 # Put the nasty error message in config.log where it belongs
12014 echo "$DEBUGINFOD_PKG_ERRORS" >&5
12016 if test "x$with_debuginfod" = xyes; then
12017 as_fn_error $? "\"--with-debuginfod was given, but libdebuginfod is missing or unusable.\"" "$LINENO" 5
12018 else
12019 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libdebuginfod is missing or unusable; some features may be unavailable." >&5
12020 $as_echo "$as_me: WARNING: libdebuginfod is missing or unusable; some features may be unavailable." >&2;}
12022 elif test $pkg_failed = untried; then
12023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12024 $as_echo "no" >&6; }
12025 if test "x$with_debuginfod" = xyes; then
12026 as_fn_error $? "\"--with-debuginfod was given, but libdebuginfod is missing or unusable.\"" "$LINENO" 5
12027 else
12028 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libdebuginfod is missing or unusable; some features may be unavailable." >&5
12029 $as_echo "$as_me: WARNING: libdebuginfod is missing or unusable; some features may be unavailable." >&2;}
12031 else
12032 DEBUGINFOD_CFLAGS=$pkg_cv_DEBUGINFOD_CFLAGS
12033 DEBUGINFOD_LIBS=$pkg_cv_DEBUGINFOD_LIBS
12034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12035 $as_echo "yes" >&6; }
12037 $as_echo "#define HAVE_LIBDEBUGINFOD 1" >>confdefs.h
12040 else
12041 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: debuginfod support disabled; some features may be unavailable." >&5
12042 $as_echo "$as_me: WARNING: debuginfod support disabled; some features may be unavailable." >&2;}
12046 # Check whether --enable-libctf was given.
12047 if test "${enable_libctf+set}" = set; then :
12048 enableval=$enable_libctf;
12049 case "$enableval" in
12050 yes|no) ;;
12051 *) as_fn_error $? "Argument to enable/disable libctf must be yes or no" "$LINENO" 5 ;;
12052 esac
12054 else
12055 enable_libctf=yes
12059 if test "${enable_libctf}" = yes; then
12061 $as_echo "#define ENABLE_LIBCTF 1" >>confdefs.h
12064 if test "${enable_libctf}" = yes; then
12065 ENABLE_LIBCTF_TRUE=
12066 ENABLE_LIBCTF_FALSE='#'
12067 else
12068 ENABLE_LIBCTF_TRUE='#'
12069 ENABLE_LIBCTF_FALSE=
12074 # Set the 'development' global.
12075 . $srcdir/../bfd/development.sh
12077 # Set acp_cpp_for_build variable
12078 ac_cpp_for_build="$CC_FOR_BUILD -E $CPPFLAGS_FOR_BUILD"
12080 # Default set of GCC warnings to enable.
12081 GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
12082 GCC_WARN_CFLAGS_FOR_BUILD="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
12084 # Add -Wshadow if the compiler is a sufficiently recent version of GCC.
12085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12086 /* end confdefs.h. */
12087 __GNUC__
12088 _ACEOF
12089 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12090 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
12092 else
12093 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow"
12095 rm -f conftest*
12098 # Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
12099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12100 /* end confdefs.h. */
12101 __GNUC__
12102 _ACEOF
12103 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12104 $EGREP "(^[0-4]$|^__GNUC__$)" >/dev/null 2>&1; then :
12106 else
12107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12108 /* end confdefs.h. */
12109 __clang__
12110 _ACEOF
12111 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12112 $EGREP "^__clang__$" >/dev/null 2>&1; then :
12113 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wstack-usage=262144"
12115 rm -f conftest*
12118 rm -f conftest*
12121 # Set WARN_WRITE_STRINGS if the compiler supports -Wwrite-strings.
12122 WARN_WRITE_STRINGS=""
12123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12124 /* end confdefs.h. */
12125 __GNUC__
12126 _ACEOF
12127 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12128 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
12130 else
12131 WARN_WRITE_STRINGS="-Wwrite-strings"
12133 rm -f conftest*
12136 # Verify CC_FOR_BUILD to be compatible with warning flags
12138 # Add -Wshadow 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-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
12146 else
12147 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wshadow"
12149 rm -f conftest*
12152 # Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
12153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12154 /* end confdefs.h. */
12155 __GNUC__
12156 _ACEOF
12157 if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
12158 $EGREP "(^[0-4]$|^__GNUC__$)" >/dev/null 2>&1; then :
12160 else
12161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12162 /* end confdefs.h. */
12163 __clang__
12164 _ACEOF
12165 if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
12166 $EGREP "^__clang__$" >/dev/null 2>&1; then :
12167 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wstack-usage=262144"
12169 rm -f conftest*
12172 rm -f conftest*
12175 # Check whether --enable-werror was given.
12176 if test "${enable_werror+set}" = set; then :
12177 enableval=$enable_werror; case "${enableval}" in
12178 yes | y) ERROR_ON_WARNING="yes" ;;
12179 no | n) ERROR_ON_WARNING="no" ;;
12180 *) as_fn_error $? "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
12181 esac
12185 # Disable -Wformat by default when using gcc on mingw
12186 case "${host}" in
12187 *-*-mingw32*)
12188 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
12189 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
12190 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wno-format"
12193 *) ;;
12194 esac
12196 # Enable -Werror by default when using gcc. Turn it off for releases.
12197 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" -a "$development" = true ; then
12198 ERROR_ON_WARNING=yes
12201 NO_WERROR=
12202 if test "${ERROR_ON_WARNING}" = yes ; then
12203 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
12204 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Werror"
12205 NO_WERROR="-Wno-error"
12208 if test "${GCC}" = yes ; then
12209 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
12210 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}"
12213 # Check whether --enable-build-warnings was given.
12214 if test "${enable_build_warnings+set}" = set; then :
12215 enableval=$enable_build_warnings; case "${enableval}" in
12216 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}"
12217 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}";;
12218 no) if test "${GCC}" = yes ; then
12219 WARN_CFLAGS="-w"
12220 WARN_CFLAGS_FOR_BUILD="-w"
12221 fi;;
12222 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
12223 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}"
12224 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD} ${t}";;
12225 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
12226 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}"
12227 WARN_CFLAGS_FOR_BUILD="${t} ${GCC_WARN_CFLAGS_FOR_BUILD}";;
12228 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`
12229 WARN_CFLAGS_FOR_BUILD=`echo "${enableval}" | sed -e "s/,/ /g"`;;
12230 esac
12234 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
12235 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
12244 ac_config_headers="$ac_config_headers config.h:config.in"
12249 if test -z "$target" ; then
12250 as_fn_error $? "Unrecognized target system type; please check config.sub." "$LINENO" 5
12252 if test -z "$host" ; then
12253 as_fn_error $? "Unrecognized host system type; please check config.sub." "$LINENO" 5
12256 for ac_prog in 'bison -y' byacc
12258 # Extract the first word of "$ac_prog", so it can be a program name with args.
12259 set dummy $ac_prog; ac_word=$2
12260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12261 $as_echo_n "checking for $ac_word... " >&6; }
12262 if ${ac_cv_prog_YACC+:} false; then :
12263 $as_echo_n "(cached) " >&6
12264 else
12265 if test -n "$YACC"; then
12266 ac_cv_prog_YACC="$YACC" # Let the user override the test.
12267 else
12268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12269 for as_dir in $PATH
12271 IFS=$as_save_IFS
12272 test -z "$as_dir" && as_dir=.
12273 for ac_exec_ext in '' $ac_executable_extensions; do
12274 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12275 ac_cv_prog_YACC="$ac_prog"
12276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12277 break 2
12279 done
12280 done
12281 IFS=$as_save_IFS
12285 YACC=$ac_cv_prog_YACC
12286 if test -n "$YACC"; then
12287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
12288 $as_echo "$YACC" >&6; }
12289 else
12290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12291 $as_echo "no" >&6; }
12295 test -n "$YACC" && break
12296 done
12297 test -n "$YACC" || YACC="yacc"
12299 for ac_prog in flex lex
12301 # Extract the first word of "$ac_prog", so it can be a program name with args.
12302 set dummy $ac_prog; ac_word=$2
12303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12304 $as_echo_n "checking for $ac_word... " >&6; }
12305 if ${ac_cv_prog_LEX+:} false; then :
12306 $as_echo_n "(cached) " >&6
12307 else
12308 if test -n "$LEX"; then
12309 ac_cv_prog_LEX="$LEX" # Let the user override the test.
12310 else
12311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12312 for as_dir in $PATH
12314 IFS=$as_save_IFS
12315 test -z "$as_dir" && as_dir=.
12316 for ac_exec_ext in '' $ac_executable_extensions; do
12317 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12318 ac_cv_prog_LEX="$ac_prog"
12319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12320 break 2
12322 done
12323 done
12324 IFS=$as_save_IFS
12328 LEX=$ac_cv_prog_LEX
12329 if test -n "$LEX"; then
12330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
12331 $as_echo "$LEX" >&6; }
12332 else
12333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12334 $as_echo "no" >&6; }
12338 test -n "$LEX" && break
12339 done
12340 test -n "$LEX" || LEX=":"
12342 case "$LEX" in
12343 :|*"missing "*) ;;
12344 *) cat >conftest.l <<_ACEOF
12346 a { ECHO; }
12347 b { REJECT; }
12348 c { yymore (); }
12349 d { yyless (1); }
12350 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
12351 yyless ((input () != 0)); }
12352 f { unput (yytext[0]); }
12353 . { BEGIN INITIAL; }
12355 #ifdef YYTEXT_POINTER
12356 extern char *yytext;
12357 #endif
12359 main (void)
12361 return ! yylex () + ! yywrap ();
12363 _ACEOF
12364 { { ac_try="$LEX conftest.l"
12365 case "(($ac_try" in
12366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12367 *) ac_try_echo=$ac_try;;
12368 esac
12369 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12370 $as_echo "$ac_try_echo"; } >&5
12371 (eval "$LEX conftest.l") 2>&5
12372 ac_status=$?
12373 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12374 test $ac_status = 0; }
12375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
12376 $as_echo_n "checking lex output file root... " >&6; }
12377 if ${ac_cv_prog_lex_root+:} false; then :
12378 $as_echo_n "(cached) " >&6
12379 else
12381 if test -f lex.yy.c; then
12382 ac_cv_prog_lex_root=lex.yy
12383 elif test -f lexyy.c; then
12384 ac_cv_prog_lex_root=lexyy
12385 else
12386 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
12389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
12390 $as_echo "$ac_cv_prog_lex_root" >&6; }
12391 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
12393 if test -z "${LEXLIB+set}"; then
12394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
12395 $as_echo_n "checking lex library... " >&6; }
12396 if ${ac_cv_lib_lex+:} false; then :
12397 $as_echo_n "(cached) " >&6
12398 else
12400 ac_save_LIBS=$LIBS
12401 ac_cv_lib_lex='none needed'
12402 for ac_lib in '' -lfl -ll; do
12403 LIBS="$ac_lib $ac_save_LIBS"
12404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12405 /* end confdefs.h. */
12406 `cat $LEX_OUTPUT_ROOT.c`
12407 _ACEOF
12408 if ac_fn_c_try_link "$LINENO"; then :
12409 ac_cv_lib_lex=$ac_lib
12411 rm -f core conftest.err conftest.$ac_objext \
12412 conftest$ac_exeext conftest.$ac_ext
12413 test "$ac_cv_lib_lex" != 'none needed' && break
12414 done
12415 LIBS=$ac_save_LIBS
12418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
12419 $as_echo "$ac_cv_lib_lex" >&6; }
12420 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
12424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
12425 $as_echo_n "checking whether yytext is a pointer... " >&6; }
12426 if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
12427 $as_echo_n "(cached) " >&6
12428 else
12429 # POSIX says lex can declare yytext either as a pointer or an array; the
12430 # default is implementation-dependent. Figure out which it is, since
12431 # not all implementations provide the %pointer and %array declarations.
12432 ac_cv_prog_lex_yytext_pointer=no
12433 ac_save_LIBS=$LIBS
12434 LIBS="$LEXLIB $ac_save_LIBS"
12435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12436 /* end confdefs.h. */
12438 #define YYTEXT_POINTER 1
12439 `cat $LEX_OUTPUT_ROOT.c`
12440 _ACEOF
12441 if ac_fn_c_try_link "$LINENO"; then :
12442 ac_cv_prog_lex_yytext_pointer=yes
12444 rm -f core conftest.err conftest.$ac_objext \
12445 conftest$ac_exeext conftest.$ac_ext
12446 LIBS=$ac_save_LIBS
12449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
12450 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
12451 if test $ac_cv_prog_lex_yytext_pointer = yes; then
12453 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
12456 rm -f conftest.l $LEX_OUTPUT_ROOT.c
12458 esac
12459 if test "$LEX" = :; then
12460 LEX=${am_missing_run}flex
12463 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"
12464 # If we haven't got the data from the intl directory,
12465 # assume NLS is disabled.
12466 USE_NLS=no
12467 LIBINTL=
12468 LIBINTL_DEP=
12469 INCINTL=
12470 XGETTEXT=
12471 GMSGFMT=
12472 POSUB=
12474 if test -f ../intl/config.intl; then
12475 . ../intl/config.intl
12477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
12478 $as_echo_n "checking whether NLS is requested... " >&6; }
12479 if test x"$USE_NLS" != xyes; then
12480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12481 $as_echo "no" >&6; }
12482 else
12483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12484 $as_echo "yes" >&6; }
12486 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
12489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
12490 $as_echo_n "checking for catalogs to be installed... " >&6; }
12491 # Look for .po and .gmo files in the source directory.
12492 CATALOGS=
12493 XLINGUAS=
12494 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
12495 # If there aren't any .gmo files the shell will give us the
12496 # literal string "../path/to/srcdir/po/*.gmo" which has to be
12497 # weeded out.
12498 case "$cat" in *\**)
12499 continue;;
12500 esac
12501 # The quadruple backslash is collapsed to a double backslash
12502 # by the backticks, then collapsed again by the double quotes,
12503 # leaving us with one backslash in the sed expression (right
12504 # before the dot that mustn't act as a wildcard).
12505 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
12506 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
12507 # The user is allowed to set LINGUAS to a list of languages to
12508 # install catalogs for. If it's empty that means "all of them."
12509 if test "x$LINGUAS" = x; then
12510 CATALOGS="$CATALOGS $cat"
12511 XLINGUAS="$XLINGUAS $lang"
12512 else
12513 case "$LINGUAS" in *$lang*)
12514 CATALOGS="$CATALOGS $cat"
12515 XLINGUAS="$XLINGUAS $lang"
12517 esac
12519 done
12520 LINGUAS="$XLINGUAS"
12521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
12522 $as_echo "$LINGUAS" >&6; }
12525 DATADIRNAME=share
12527 INSTOBJEXT=.mo
12529 GENCAT=gencat
12531 CATOBJEXT=.gmo
12535 MKINSTALLDIRS=
12536 if test -n "$ac_aux_dir"; then
12537 case "$ac_aux_dir" in
12538 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
12539 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
12540 esac
12542 if test -z "$MKINSTALLDIRS"; then
12543 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
12548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
12549 $as_echo_n "checking whether NLS is requested... " >&6; }
12550 # Check whether --enable-nls was given.
12551 if test "${enable_nls+set}" = set; then :
12552 enableval=$enable_nls; USE_NLS=$enableval
12553 else
12554 USE_NLS=yes
12557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
12558 $as_echo "$USE_NLS" >&6; }
12565 # Prepare PATH_SEPARATOR.
12566 # The user is always right.
12567 if test "${PATH_SEPARATOR+set}" != set; then
12568 echo "#! /bin/sh" >conf$$.sh
12569 echo "exit 0" >>conf$$.sh
12570 chmod +x conf$$.sh
12571 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12572 PATH_SEPARATOR=';'
12573 else
12574 PATH_SEPARATOR=:
12576 rm -f conf$$.sh
12579 # Find out how to test for executable files. Don't use a zero-byte file,
12580 # as systems may use methods other than mode bits to determine executability.
12581 cat >conf$$.file <<_ASEOF
12582 #! /bin/sh
12583 exit 0
12584 _ASEOF
12585 chmod +x conf$$.file
12586 if test -x conf$$.file >/dev/null 2>&1; then
12587 ac_executable_p="test -x"
12588 else
12589 ac_executable_p="test -f"
12591 rm -f conf$$.file
12593 # Extract the first word of "msgfmt", so it can be a program name with args.
12594 set dummy msgfmt; ac_word=$2
12595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12596 $as_echo_n "checking for $ac_word... " >&6; }
12597 if ${ac_cv_path_MSGFMT+:} false; then :
12598 $as_echo_n "(cached) " >&6
12599 else
12600 case "$MSGFMT" in
12601 [\\/]* | ?:[\\/]*)
12602 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
12605 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12606 for ac_dir in $PATH; do
12607 IFS="$ac_save_IFS"
12608 test -z "$ac_dir" && ac_dir=.
12609 for ac_exec_ext in '' $ac_executable_extensions; do
12610 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12611 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
12612 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12613 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
12614 break 2
12617 done
12618 done
12619 IFS="$ac_save_IFS"
12620 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
12622 esac
12624 MSGFMT="$ac_cv_path_MSGFMT"
12625 if test "$MSGFMT" != ":"; then
12626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
12627 $as_echo "$MSGFMT" >&6; }
12628 else
12629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12630 $as_echo "no" >&6; }
12633 # Extract the first word of "gmsgfmt", so it can be a program name with args.
12634 set dummy gmsgfmt; ac_word=$2
12635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12636 $as_echo_n "checking for $ac_word... " >&6; }
12637 if ${ac_cv_path_GMSGFMT+:} false; then :
12638 $as_echo_n "(cached) " >&6
12639 else
12640 case $GMSGFMT in
12641 [\\/]* | ?:[\\/]*)
12642 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
12645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12646 for as_dir in $PATH
12648 IFS=$as_save_IFS
12649 test -z "$as_dir" && as_dir=.
12650 for ac_exec_ext in '' $ac_executable_extensions; do
12651 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12652 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
12653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12654 break 2
12656 done
12657 done
12658 IFS=$as_save_IFS
12660 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
12662 esac
12664 GMSGFMT=$ac_cv_path_GMSGFMT
12665 if test -n "$GMSGFMT"; then
12666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
12667 $as_echo "$GMSGFMT" >&6; }
12668 else
12669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12670 $as_echo "no" >&6; }
12676 # Prepare PATH_SEPARATOR.
12677 # The user is always right.
12678 if test "${PATH_SEPARATOR+set}" != set; then
12679 echo "#! /bin/sh" >conf$$.sh
12680 echo "exit 0" >>conf$$.sh
12681 chmod +x conf$$.sh
12682 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12683 PATH_SEPARATOR=';'
12684 else
12685 PATH_SEPARATOR=:
12687 rm -f conf$$.sh
12690 # Find out how to test for executable files. Don't use a zero-byte file,
12691 # as systems may use methods other than mode bits to determine executability.
12692 cat >conf$$.file <<_ASEOF
12693 #! /bin/sh
12694 exit 0
12695 _ASEOF
12696 chmod +x conf$$.file
12697 if test -x conf$$.file >/dev/null 2>&1; then
12698 ac_executable_p="test -x"
12699 else
12700 ac_executable_p="test -f"
12702 rm -f conf$$.file
12704 # Extract the first word of "xgettext", so it can be a program name with args.
12705 set dummy xgettext; ac_word=$2
12706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12707 $as_echo_n "checking for $ac_word... " >&6; }
12708 if ${ac_cv_path_XGETTEXT+:} false; then :
12709 $as_echo_n "(cached) " >&6
12710 else
12711 case "$XGETTEXT" in
12712 [\\/]* | ?:[\\/]*)
12713 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
12716 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12717 for ac_dir in $PATH; do
12718 IFS="$ac_save_IFS"
12719 test -z "$ac_dir" && ac_dir=.
12720 for ac_exec_ext in '' $ac_executable_extensions; do
12721 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12722 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
12723 (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
12724 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
12725 break 2
12728 done
12729 done
12730 IFS="$ac_save_IFS"
12731 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
12733 esac
12735 XGETTEXT="$ac_cv_path_XGETTEXT"
12736 if test "$XGETTEXT" != ":"; then
12737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
12738 $as_echo "$XGETTEXT" >&6; }
12739 else
12740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12741 $as_echo "no" >&6; }
12744 rm -f messages.po
12747 # Prepare PATH_SEPARATOR.
12748 # The user is always right.
12749 if test "${PATH_SEPARATOR+set}" != set; then
12750 echo "#! /bin/sh" >conf$$.sh
12751 echo "exit 0" >>conf$$.sh
12752 chmod +x conf$$.sh
12753 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12754 PATH_SEPARATOR=';'
12755 else
12756 PATH_SEPARATOR=:
12758 rm -f conf$$.sh
12761 # Find out how to test for executable files. Don't use a zero-byte file,
12762 # as systems may use methods other than mode bits to determine executability.
12763 cat >conf$$.file <<_ASEOF
12764 #! /bin/sh
12765 exit 0
12766 _ASEOF
12767 chmod +x conf$$.file
12768 if test -x conf$$.file >/dev/null 2>&1; then
12769 ac_executable_p="test -x"
12770 else
12771 ac_executable_p="test -f"
12773 rm -f conf$$.file
12775 # Extract the first word of "msgmerge", so it can be a program name with args.
12776 set dummy msgmerge; ac_word=$2
12777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12778 $as_echo_n "checking for $ac_word... " >&6; }
12779 if ${ac_cv_path_MSGMERGE+:} false; then :
12780 $as_echo_n "(cached) " >&6
12781 else
12782 case "$MSGMERGE" in
12783 [\\/]* | ?:[\\/]*)
12784 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
12787 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12788 for ac_dir in $PATH; do
12789 IFS="$ac_save_IFS"
12790 test -z "$ac_dir" && ac_dir=.
12791 for ac_exec_ext in '' $ac_executable_extensions; do
12792 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12793 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
12794 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
12795 break 2
12798 done
12799 done
12800 IFS="$ac_save_IFS"
12801 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
12803 esac
12805 MSGMERGE="$ac_cv_path_MSGMERGE"
12806 if test "$MSGMERGE" != ":"; then
12807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
12808 $as_echo "$MSGMERGE" >&6; }
12809 else
12810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12811 $as_echo "no" >&6; }
12815 if test "$GMSGFMT" != ":"; then
12816 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
12817 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12819 else
12820 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
12821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
12822 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
12823 GMSGFMT=":"
12827 if test "$XGETTEXT" != ":"; then
12828 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
12829 (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
12831 else
12832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
12833 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
12834 XGETTEXT=":"
12836 rm -f messages.po
12839 ac_config_commands="$ac_config_commands default-1"
12844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
12845 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
12846 # Check whether --enable-maintainer-mode was given.
12847 if test "${enable_maintainer_mode+set}" = set; then :
12848 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
12849 else
12850 USE_MAINTAINER_MODE=no
12853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
12854 $as_echo "$USE_MAINTAINER_MODE" >&6; }
12855 if test $USE_MAINTAINER_MODE = yes; then
12856 MAINTAINER_MODE_TRUE=
12857 MAINTAINER_MODE_FALSE='#'
12858 else
12859 MAINTAINER_MODE_TRUE='#'
12860 MAINTAINER_MODE_FALSE=
12863 MAINT=$MAINTAINER_MODE_TRUE
12866 if false; then
12867 GENINSRC_NEVER_TRUE=
12868 GENINSRC_NEVER_FALSE='#'
12869 else
12870 GENINSRC_NEVER_TRUE='#'
12871 GENINSRC_NEVER_FALSE=
12875 if test -n "$EXEEXT"; then
12877 $as_echo "#define HAVE_EXECUTABLE_SUFFIX 1" >>confdefs.h
12881 cat >>confdefs.h <<_ACEOF
12882 #define EXECUTABLE_SUFFIX "${EXEEXT}"
12883 _ACEOF
12886 # host-specific stuff:
12888 HDEFINES=
12890 . ${srcdir}/../bfd/configure.host
12893 AR=${AR-ar}
12895 if test -n "$ac_tool_prefix"; then
12896 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12897 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12899 $as_echo_n "checking for $ac_word... " >&6; }
12900 if ${ac_cv_prog_RANLIB+:} false; then :
12901 $as_echo_n "(cached) " >&6
12902 else
12903 if test -n "$RANLIB"; then
12904 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12905 else
12906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12907 for as_dir in $PATH
12909 IFS=$as_save_IFS
12910 test -z "$as_dir" && as_dir=.
12911 for ac_exec_ext in '' $ac_executable_extensions; do
12912 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12913 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12915 break 2
12917 done
12918 done
12919 IFS=$as_save_IFS
12923 RANLIB=$ac_cv_prog_RANLIB
12924 if test -n "$RANLIB"; then
12925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12926 $as_echo "$RANLIB" >&6; }
12927 else
12928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12929 $as_echo "no" >&6; }
12934 if test -z "$ac_cv_prog_RANLIB"; then
12935 ac_ct_RANLIB=$RANLIB
12936 # Extract the first word of "ranlib", so it can be a program name with args.
12937 set dummy ranlib; ac_word=$2
12938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12939 $as_echo_n "checking for $ac_word... " >&6; }
12940 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
12941 $as_echo_n "(cached) " >&6
12942 else
12943 if test -n "$ac_ct_RANLIB"; then
12944 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12945 else
12946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12947 for as_dir in $PATH
12949 IFS=$as_save_IFS
12950 test -z "$as_dir" && as_dir=.
12951 for ac_exec_ext in '' $ac_executable_extensions; do
12952 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12953 ac_cv_prog_ac_ct_RANLIB="ranlib"
12954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12955 break 2
12957 done
12958 done
12959 IFS=$as_save_IFS
12963 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12964 if test -n "$ac_ct_RANLIB"; then
12965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12966 $as_echo "$ac_ct_RANLIB" >&6; }
12967 else
12968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12969 $as_echo "no" >&6; }
12972 if test "x$ac_ct_RANLIB" = x; then
12973 RANLIB=":"
12974 else
12975 case $cross_compiling:$ac_tool_warned in
12976 yes:)
12977 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12978 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12979 ac_tool_warned=yes ;;
12980 esac
12981 RANLIB=$ac_ct_RANLIB
12983 else
12984 RANLIB="$ac_cv_prog_RANLIB"
12989 # Put a plausible default for CC_FOR_BUILD in Makefile.
12990 if test -z "$CC_FOR_BUILD"; then
12991 if test "x$cross_compiling" = "xno"; then
12992 CC_FOR_BUILD='$(CC)'
12993 else
12994 CC_FOR_BUILD=gcc
12998 # Also set EXEEXT_FOR_BUILD.
12999 if test "x$cross_compiling" = "xno"; then
13000 EXEEXT_FOR_BUILD='$(EXEEXT)'
13001 else
13002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build system executable suffix" >&5
13003 $as_echo_n "checking for build system executable suffix... " >&6; }
13004 if ${bfd_cv_build_exeext+:} false; then :
13005 $as_echo_n "(cached) " >&6
13006 else
13007 rm -f conftest*
13008 echo 'int main () { return 0; }' > conftest.c
13009 bfd_cv_build_exeext=
13010 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
13011 for file in conftest.*; do
13012 case $file in
13013 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
13014 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
13015 esac
13016 done
13017 rm -f conftest*
13018 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
13020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_build_exeext" >&5
13021 $as_echo "$bfd_cv_build_exeext" >&6; }
13022 EXEEXT_FOR_BUILD=""
13023 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
13027 DEMANGLER_NAME=c++filt
13028 case "${host}" in
13029 *-*-go32* | *-*-msdos*)
13030 DEMANGLER_NAME=cxxfilt
13031 esac
13034 # We use headers from include/ that check various HAVE_*_H macros, thus
13035 # should ensure they are set by configure. This is true even when C99
13036 # guarantees they are available.
13037 # plugin-api.h tests HAVE_STDINT_H and HAVE_INTTYPES_H
13038 # Besides those, we need to check anything used in binutils/ not in C99.
13039 for ac_header in fcntl.h inttypes.h stdint.h sys/file.h \
13040 sys/stat.h sys/time.h sys/types.h unistd.h
13041 do :
13042 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13043 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13044 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13045 cat >>confdefs.h <<_ACEOF
13046 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13047 _ACEOF
13051 done
13053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
13054 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
13055 if ${ac_cv_header_sys_wait_h+:} false; then :
13056 $as_echo_n "(cached) " >&6
13057 else
13058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13059 /* end confdefs.h. */
13060 #include <sys/types.h>
13061 #include <sys/wait.h>
13062 #ifndef WEXITSTATUS
13063 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
13064 #endif
13065 #ifndef WIFEXITED
13066 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
13067 #endif
13070 main ()
13072 int s;
13073 wait (&s);
13074 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
13076 return 0;
13078 _ACEOF
13079 if ac_fn_c_try_compile "$LINENO"; then :
13080 ac_cv_header_sys_wait_h=yes
13081 else
13082 ac_cv_header_sys_wait_h=no
13084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
13087 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
13088 if test $ac_cv_header_sys_wait_h = yes; then
13090 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
13097 for ac_header in $ac_header_list
13098 do :
13099 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13100 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
13102 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13103 cat >>confdefs.h <<_ACEOF
13104 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13105 _ACEOF
13109 done
13118 for ac_func in getpagesize
13119 do :
13120 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
13121 if test "x$ac_cv_func_getpagesize" = xyes; then :
13122 cat >>confdefs.h <<_ACEOF
13123 #define HAVE_GETPAGESIZE 1
13124 _ACEOF
13127 done
13129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
13130 $as_echo_n "checking for working mmap... " >&6; }
13131 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
13132 $as_echo_n "(cached) " >&6
13133 else
13134 if test "$cross_compiling" = yes; then :
13135 ac_cv_func_mmap_fixed_mapped=no
13136 else
13137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13138 /* end confdefs.h. */
13139 $ac_includes_default
13140 /* malloc might have been renamed as rpl_malloc. */
13141 #undef malloc
13143 /* Thanks to Mike Haertel and Jim Avera for this test.
13144 Here is a matrix of mmap possibilities:
13145 mmap private not fixed
13146 mmap private fixed at somewhere currently unmapped
13147 mmap private fixed at somewhere already mapped
13148 mmap shared not fixed
13149 mmap shared fixed at somewhere currently unmapped
13150 mmap shared fixed at somewhere already mapped
13151 For private mappings, we should verify that changes cannot be read()
13152 back from the file, nor mmap's back from the file at a different
13153 address. (There have been systems where private was not correctly
13154 implemented like the infamous i386 svr4.0, and systems where the
13155 VM page cache was not coherent with the file system buffer cache
13156 like early versions of FreeBSD and possibly contemporary NetBSD.)
13157 For shared mappings, we should conversely verify that changes get
13158 propagated back to all the places they're supposed to be.
13160 Grep wants private fixed already mapped.
13161 The main things grep needs to know about mmap are:
13162 * does it exist and is it safe to write into the mmap'd area
13163 * how to use it (BSD variants) */
13165 #include <fcntl.h>
13166 #include <sys/mman.h>
13168 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
13169 char *malloc ();
13170 #endif
13172 /* This mess was copied from the GNU getpagesize.h. */
13173 #ifndef HAVE_GETPAGESIZE
13174 # ifdef _SC_PAGESIZE
13175 # define getpagesize() sysconf(_SC_PAGESIZE)
13176 # else /* no _SC_PAGESIZE */
13177 # ifdef HAVE_SYS_PARAM_H
13178 # include <sys/param.h>
13179 # ifdef EXEC_PAGESIZE
13180 # define getpagesize() EXEC_PAGESIZE
13181 # else /* no EXEC_PAGESIZE */
13182 # ifdef NBPG
13183 # define getpagesize() NBPG * CLSIZE
13184 # ifndef CLSIZE
13185 # define CLSIZE 1
13186 # endif /* no CLSIZE */
13187 # else /* no NBPG */
13188 # ifdef NBPC
13189 # define getpagesize() NBPC
13190 # else /* no NBPC */
13191 # ifdef PAGESIZE
13192 # define getpagesize() PAGESIZE
13193 # endif /* PAGESIZE */
13194 # endif /* no NBPC */
13195 # endif /* no NBPG */
13196 # endif /* no EXEC_PAGESIZE */
13197 # else /* no HAVE_SYS_PARAM_H */
13198 # define getpagesize() 8192 /* punt totally */
13199 # endif /* no HAVE_SYS_PARAM_H */
13200 # endif /* no _SC_PAGESIZE */
13202 #endif /* no HAVE_GETPAGESIZE */
13205 main ()
13207 char *data, *data2, *data3;
13208 const char *cdata2;
13209 int i, pagesize;
13210 int fd, fd2;
13212 pagesize = getpagesize ();
13214 /* First, make a file with some known garbage in it. */
13215 data = (char *) malloc (pagesize);
13216 if (!data)
13217 return 1;
13218 for (i = 0; i < pagesize; ++i)
13219 *(data + i) = rand ();
13220 umask (0);
13221 fd = creat ("conftest.mmap", 0600);
13222 if (fd < 0)
13223 return 2;
13224 if (write (fd, data, pagesize) != pagesize)
13225 return 3;
13226 close (fd);
13228 /* Next, check that the tail of a page is zero-filled. File must have
13229 non-zero length, otherwise we risk SIGBUS for entire page. */
13230 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
13231 if (fd2 < 0)
13232 return 4;
13233 cdata2 = "";
13234 if (write (fd2, cdata2, 1) != 1)
13235 return 5;
13236 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
13237 if (data2 == MAP_FAILED)
13238 return 6;
13239 for (i = 0; i < pagesize; ++i)
13240 if (*(data2 + i))
13241 return 7;
13242 close (fd2);
13243 if (munmap (data2, pagesize))
13244 return 8;
13246 /* Next, try to mmap the file at a fixed address which already has
13247 something else allocated at it. If we can, also make sure that
13248 we see the same garbage. */
13249 fd = open ("conftest.mmap", O_RDWR);
13250 if (fd < 0)
13251 return 9;
13252 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
13253 MAP_PRIVATE | MAP_FIXED, fd, 0L))
13254 return 10;
13255 for (i = 0; i < pagesize; ++i)
13256 if (*(data + i) != *(data2 + i))
13257 return 11;
13259 /* Finally, make sure that changes to the mapped area do not
13260 percolate back to the file as seen by read(). (This is a bug on
13261 some variants of i386 svr4.0.) */
13262 for (i = 0; i < pagesize; ++i)
13263 *(data2 + i) = *(data2 + i) + 1;
13264 data3 = (char *) malloc (pagesize);
13265 if (!data3)
13266 return 12;
13267 if (read (fd, data3, pagesize) != pagesize)
13268 return 13;
13269 for (i = 0; i < pagesize; ++i)
13270 if (*(data + i) != *(data3 + i))
13271 return 14;
13272 close (fd);
13273 return 0;
13275 _ACEOF
13276 if ac_fn_c_try_run "$LINENO"; then :
13277 ac_cv_func_mmap_fixed_mapped=yes
13278 else
13279 ac_cv_func_mmap_fixed_mapped=no
13281 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13282 conftest.$ac_objext conftest.beam conftest.$ac_ext
13286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
13287 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
13288 if test $ac_cv_func_mmap_fixed_mapped = yes; then
13290 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
13293 rm -f conftest.mmap conftest.txt
13295 for ac_func in fseeko fseeko64 getc_unlocked mkdtemp mkstemp utimensat utimes
13296 do :
13297 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13298 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13299 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13300 cat >>confdefs.h <<_ACEOF
13301 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13302 _ACEOF
13305 done
13308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
13309 $as_echo_n "checking for mbstate_t... " >&6; }
13310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13311 /* end confdefs.h. */
13312 #include <wchar.h>
13314 main ()
13316 mbstate_t teststate;
13318 return 0;
13320 _ACEOF
13321 if ac_fn_c_try_compile "$LINENO"; then :
13322 have_mbstate_t=yes
13323 else
13324 have_mbstate_t=no
13326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mbstate_t" >&5
13328 $as_echo "$have_mbstate_t" >&6; }
13329 if test x"$have_mbstate_t" = xyes; then
13331 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
13335 # Copied from gnulib stat-time.m4.
13336 # We should just switch over to using gnulib.
13337 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>
13338 #include <sys/stat.h>
13340 if test "x$ac_cv_member_struct_stat_st_atim_tv_nsec" = xyes; then :
13342 cat >>confdefs.h <<_ACEOF
13343 #define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1
13344 _ACEOF
13346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat.st_atim is of type struct timespec" >&5
13347 $as_echo_n "checking whether struct stat.st_atim is of type struct timespec... " >&6; }
13348 if ${ac_cv_typeof_struct_stat_st_atim_is_struct_timespec+:} false; then :
13349 $as_echo_n "(cached) " >&6
13350 else
13351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13352 /* end confdefs.h. */
13354 #include <sys/types.h>
13355 #include <sys/stat.h>
13356 #if HAVE_SYS_TIME_H
13357 # include <sys/time.h>
13358 #endif
13359 #include <time.h>
13360 struct timespec ts;
13361 struct stat st;
13364 main ()
13367 st.st_atim = ts;
13370 return 0;
13372 _ACEOF
13373 if ac_fn_c_try_compile "$LINENO"; then :
13374 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=yes
13375 else
13376 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=no
13378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&5
13381 $as_echo "$ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&6; }
13382 if test $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec = yes; then
13384 $as_echo "#define TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC 1" >>confdefs.h
13387 else
13388 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>
13389 #include <sys/stat.h>
13391 if test "x$ac_cv_member_struct_stat_st_atimespec_tv_nsec" = xyes; then :
13393 cat >>confdefs.h <<_ACEOF
13394 #define HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC 1
13395 _ACEOF
13398 else
13399 ac_fn_c_check_member "$LINENO" "struct stat" "st_atimensec" "ac_cv_member_struct_stat_st_atimensec" "#include <sys/types.h>
13400 #include <sys/stat.h>
13402 if test "x$ac_cv_member_struct_stat_st_atimensec" = xyes; then :
13404 cat >>confdefs.h <<_ACEOF
13405 #define HAVE_STRUCT_STAT_ST_ATIMENSEC 1
13406 _ACEOF
13409 else
13410 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>
13411 #include <sys/stat.h>
13413 if test "x$ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" = xyes; then :
13415 cat >>confdefs.h <<_ACEOF
13416 #define HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC 1
13417 _ACEOF
13429 # Some systems have frexp only in -lm, not in -lc.
13430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing frexp" >&5
13431 $as_echo_n "checking for library containing frexp... " >&6; }
13432 if ${ac_cv_search_frexp+:} false; then :
13433 $as_echo_n "(cached) " >&6
13434 else
13435 ac_func_search_save_LIBS=$LIBS
13436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13437 /* end confdefs.h. */
13439 /* Override any GCC internal prototype to avoid an error.
13440 Use char because int might match the return type of a GCC
13441 builtin and then its argument prototype would still apply. */
13442 #ifdef __cplusplus
13443 extern "C"
13444 #endif
13445 char frexp ();
13447 main ()
13449 return frexp ();
13451 return 0;
13453 _ACEOF
13454 for ac_lib in '' m; do
13455 if test -z "$ac_lib"; then
13456 ac_res="none required"
13457 else
13458 ac_res=-l$ac_lib
13459 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13461 if ac_fn_c_try_link "$LINENO"; then :
13462 ac_cv_search_frexp=$ac_res
13464 rm -f core conftest.err conftest.$ac_objext \
13465 conftest$ac_exeext
13466 if ${ac_cv_search_frexp+:} false; then :
13467 break
13469 done
13470 if ${ac_cv_search_frexp+:} false; then :
13472 else
13473 ac_cv_search_frexp=no
13475 rm conftest.$ac_ext
13476 LIBS=$ac_func_search_save_LIBS
13478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_frexp" >&5
13479 $as_echo "$ac_cv_search_frexp" >&6; }
13480 ac_res=$ac_cv_search_frexp
13481 if test "$ac_res" != no; then :
13482 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
13489 $as_echo_n "checking for LC_MESSAGES... " >&6; }
13490 if ${am_cv_val_LC_MESSAGES+:} false; then :
13491 $as_echo_n "(cached) " >&6
13492 else
13493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13494 /* end confdefs.h. */
13495 #include <locale.h>
13497 main ()
13499 return LC_MESSAGES
13501 return 0;
13503 _ACEOF
13504 if ac_fn_c_try_link "$LINENO"; then :
13505 am_cv_val_LC_MESSAGES=yes
13506 else
13507 am_cv_val_LC_MESSAGES=no
13509 rm -f core conftest.err conftest.$ac_objext \
13510 conftest$ac_exeext conftest.$ac_ext
13512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
13513 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
13514 if test $am_cv_val_LC_MESSAGES = yes; then
13516 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
13521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a known getopt prototype in unistd.h" >&5
13522 $as_echo_n "checking for a known getopt prototype in unistd.h... " >&6; }
13523 if ${bu_cv_decl_getopt_unistd_h+:} false; then :
13524 $as_echo_n "(cached) " >&6
13525 else
13526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13527 /* end confdefs.h. */
13528 #include <unistd.h>
13530 main ()
13532 extern int getopt (int, char *const*, const char *);
13534 return 0;
13536 _ACEOF
13537 if ac_fn_c_try_compile "$LINENO"; then :
13538 bu_cv_decl_getopt_unistd_h=yes
13539 else
13540 bu_cv_decl_getopt_unistd_h=no
13542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bu_cv_decl_getopt_unistd_h" >&5
13546 $as_echo "$bu_cv_decl_getopt_unistd_h" >&6; }
13547 if test $bu_cv_decl_getopt_unistd_h = yes; then
13549 $as_echo "#define HAVE_DECL_GETOPT 1" >>confdefs.h
13553 # Under Next 3.2 <utime.h> apparently does not define struct utimbuf
13554 # by default.
13555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utime.h" >&5
13556 $as_echo_n "checking for utime.h... " >&6; }
13557 if ${bu_cv_header_utime_h+:} false; then :
13558 $as_echo_n "(cached) " >&6
13559 else
13560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13561 /* end confdefs.h. */
13562 #include <sys/types.h>
13563 #ifdef HAVE_TIME_H
13564 #include <time.h>
13565 #endif
13566 #include <utime.h>
13568 main ()
13570 struct utimbuf s;
13572 return 0;
13574 _ACEOF
13575 if ac_fn_c_try_compile "$LINENO"; then :
13576 bu_cv_header_utime_h=yes
13577 else
13578 bu_cv_header_utime_h=no
13580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bu_cv_header_utime_h" >&5
13584 $as_echo "$bu_cv_header_utime_h" >&6; }
13585 if test $bu_cv_header_utime_h = yes; then
13587 $as_echo "#define HAVE_GOOD_UTIME_H 1" >>confdefs.h
13591 ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
13592 if test "x$ac_cv_have_decl_asprintf" = xyes; then :
13593 ac_have_decl=1
13594 else
13595 ac_have_decl=0
13598 cat >>confdefs.h <<_ACEOF
13599 #define HAVE_DECL_ASPRINTF $ac_have_decl
13600 _ACEOF
13601 ac_fn_c_check_decl "$LINENO" "environ" "ac_cv_have_decl_environ" "$ac_includes_default"
13602 if test "x$ac_cv_have_decl_environ" = xyes; then :
13603 ac_have_decl=1
13604 else
13605 ac_have_decl=0
13608 cat >>confdefs.h <<_ACEOF
13609 #define HAVE_DECL_ENVIRON $ac_have_decl
13610 _ACEOF
13611 ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
13612 if test "x$ac_cv_have_decl_getc_unlocked" = xyes; then :
13613 ac_have_decl=1
13614 else
13615 ac_have_decl=0
13618 cat >>confdefs.h <<_ACEOF
13619 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
13620 _ACEOF
13621 ac_fn_c_check_decl "$LINENO" "stpcpy" "ac_cv_have_decl_stpcpy" "$ac_includes_default"
13622 if test "x$ac_cv_have_decl_stpcpy" = xyes; then :
13623 ac_have_decl=1
13624 else
13625 ac_have_decl=0
13628 cat >>confdefs.h <<_ACEOF
13629 #define HAVE_DECL_STPCPY $ac_have_decl
13630 _ACEOF
13631 ac_fn_c_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default"
13632 if test "x$ac_cv_have_decl_strnlen" = xyes; then :
13633 ac_have_decl=1
13634 else
13635 ac_have_decl=0
13638 cat >>confdefs.h <<_ACEOF
13639 #define HAVE_DECL_STRNLEN $ac_have_decl
13640 _ACEOF
13643 # Link in zlib/zstd if we can. This allows us to read compressed debug
13644 # sections. This is used only by readelf.c (objdump uses bfd for
13645 # reading compressed sections).
13647 # Use the system's zlib library.
13648 zlibdir="-L\$(top_builddir)/../zlib"
13649 zlibinc="-I\$(top_srcdir)/../zlib"
13651 # Check whether --with-system-zlib was given.
13652 if test "${with_system_zlib+set}" = set; then :
13653 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
13654 zlibdir=
13655 zlibinc=
13665 # Check whether --with-zstd was given.
13666 if test "${with_zstd+set}" = set; then :
13667 withval=$with_zstd;
13668 else
13669 with_zstd=auto
13673 if test "$with_zstd" != no; then :
13675 pkg_failed=no
13676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libzstd >= 1.4.0" >&5
13677 $as_echo_n "checking for libzstd >= 1.4.0... " >&6; }
13679 if test -n "$ZSTD_CFLAGS"; then
13680 pkg_cv_ZSTD_CFLAGS="$ZSTD_CFLAGS"
13681 elif test -n "$PKG_CONFIG"; then
13682 if test -n "$PKG_CONFIG" && \
13683 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libzstd >= 1.4.0\""; } >&5
13684 ($PKG_CONFIG --exists --print-errors "libzstd >= 1.4.0") 2>&5
13685 ac_status=$?
13686 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13687 test $ac_status = 0; }; then
13688 pkg_cv_ZSTD_CFLAGS=`$PKG_CONFIG --cflags "libzstd >= 1.4.0" 2>/dev/null`
13689 test "x$?" != "x0" && pkg_failed=yes
13690 else
13691 pkg_failed=yes
13693 else
13694 pkg_failed=untried
13696 if test -n "$ZSTD_LIBS"; then
13697 pkg_cv_ZSTD_LIBS="$ZSTD_LIBS"
13698 elif test -n "$PKG_CONFIG"; then
13699 if test -n "$PKG_CONFIG" && \
13700 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libzstd >= 1.4.0\""; } >&5
13701 ($PKG_CONFIG --exists --print-errors "libzstd >= 1.4.0") 2>&5
13702 ac_status=$?
13703 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13704 test $ac_status = 0; }; then
13705 pkg_cv_ZSTD_LIBS=`$PKG_CONFIG --libs "libzstd >= 1.4.0" 2>/dev/null`
13706 test "x$?" != "x0" && pkg_failed=yes
13707 else
13708 pkg_failed=yes
13710 else
13711 pkg_failed=untried
13714 if test $pkg_failed = no; then
13715 pkg_save_LDFLAGS="$LDFLAGS"
13716 LDFLAGS="$LDFLAGS $pkg_cv_ZSTD_LIBS"
13717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13718 /* end confdefs.h. */
13721 main ()
13725 return 0;
13727 _ACEOF
13728 if ac_fn_c_try_link "$LINENO"; then :
13730 else
13731 pkg_failed=yes
13733 rm -f core conftest.err conftest.$ac_objext \
13734 conftest$ac_exeext conftest.$ac_ext
13735 LDFLAGS=$pkg_save_LDFLAGS
13740 if test $pkg_failed = yes; then
13741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13742 $as_echo "no" >&6; }
13744 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13745 _pkg_short_errors_supported=yes
13746 else
13747 _pkg_short_errors_supported=no
13749 if test $_pkg_short_errors_supported = yes; then
13750 ZSTD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libzstd >= 1.4.0" 2>&1`
13751 else
13752 ZSTD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libzstd >= 1.4.0" 2>&1`
13754 # Put the nasty error message in config.log where it belongs
13755 echo "$ZSTD_PKG_ERRORS" >&5
13758 if test "$with_zstd" = yes; then
13759 as_fn_error $? "--with-zstd was given, but pkgconfig/libzstd.pc is not found" "$LINENO" 5
13762 elif test $pkg_failed = untried; then
13763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13764 $as_echo "no" >&6; }
13766 if test "$with_zstd" = yes; then
13767 as_fn_error $? "--with-zstd was given, but pkgconfig/libzstd.pc is not found" "$LINENO" 5
13770 else
13771 ZSTD_CFLAGS=$pkg_cv_ZSTD_CFLAGS
13772 ZSTD_LIBS=$pkg_cv_ZSTD_LIBS
13773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13774 $as_echo "yes" >&6; }
13777 $as_echo "#define HAVE_ZSTD 1" >>confdefs.h
13786 case "${host}" in
13787 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
13789 $as_echo "#define USE_BINARY_FOPEN 1" >>confdefs.h
13791 esac
13793 # Support for the msgpack C library.
13795 # Check whether --with-msgpack was given.
13796 if test "${with_msgpack+set}" = set; then :
13797 withval=$with_msgpack;
13798 else
13799 with_msgpack=auto
13803 if test "$with_msgpack" != no; then :
13805 pkg_failed=no
13806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msgpack" >&5
13807 $as_echo_n "checking for msgpack... " >&6; }
13809 if test -n "$MSGPACK_CFLAGS"; then
13810 pkg_cv_MSGPACK_CFLAGS="$MSGPACK_CFLAGS"
13811 elif test -n "$PKG_CONFIG"; then
13812 if test -n "$PKG_CONFIG" && \
13813 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"msgpack\""; } >&5
13814 ($PKG_CONFIG --exists --print-errors "msgpack") 2>&5
13815 ac_status=$?
13816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13817 test $ac_status = 0; }; then
13818 pkg_cv_MSGPACK_CFLAGS=`$PKG_CONFIG --cflags "msgpack" 2>/dev/null`
13819 test "x$?" != "x0" && pkg_failed=yes
13820 else
13821 pkg_failed=yes
13823 else
13824 pkg_failed=untried
13826 if test -n "$MSGPACK_LIBS"; then
13827 pkg_cv_MSGPACK_LIBS="$MSGPACK_LIBS"
13828 elif test -n "$PKG_CONFIG"; then
13829 if test -n "$PKG_CONFIG" && \
13830 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"msgpack\""; } >&5
13831 ($PKG_CONFIG --exists --print-errors "msgpack") 2>&5
13832 ac_status=$?
13833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13834 test $ac_status = 0; }; then
13835 pkg_cv_MSGPACK_LIBS=`$PKG_CONFIG --libs "msgpack" 2>/dev/null`
13836 test "x$?" != "x0" && pkg_failed=yes
13837 else
13838 pkg_failed=yes
13840 else
13841 pkg_failed=untried
13844 if test $pkg_failed = no; then
13845 pkg_save_LDFLAGS="$LDFLAGS"
13846 LDFLAGS="$LDFLAGS $pkg_cv_MSGPACK_LIBS"
13847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13848 /* end confdefs.h. */
13851 main ()
13855 return 0;
13857 _ACEOF
13858 if ac_fn_c_try_link "$LINENO"; then :
13860 else
13861 pkg_failed=yes
13863 rm -f core conftest.err conftest.$ac_objext \
13864 conftest$ac_exeext conftest.$ac_ext
13865 LDFLAGS=$pkg_save_LDFLAGS
13870 if test $pkg_failed = yes; then
13871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13872 $as_echo "no" >&6; }
13874 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13875 _pkg_short_errors_supported=yes
13876 else
13877 _pkg_short_errors_supported=no
13879 if test $_pkg_short_errors_supported = yes; then
13880 MSGPACK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "msgpack" 2>&1`
13881 else
13882 MSGPACK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "msgpack" 2>&1`
13884 # Put the nasty error message in config.log where it belongs
13885 echo "$MSGPACK_PKG_ERRORS" >&5
13887 if test "$with_msgpack" = yes; then :
13888 as_fn_error $? "--with-msgpack was given, but msgpack is missing or unusable." "$LINENO" 5
13890 elif test $pkg_failed = untried; then
13891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13892 $as_echo "no" >&6; }
13893 if test "$with_msgpack" = yes; then :
13894 as_fn_error $? "--with-msgpack was given, but msgpack is missing or unusable." "$LINENO" 5
13896 else
13897 MSGPACK_CFLAGS=$pkg_cv_MSGPACK_CFLAGS
13898 MSGPACK_LIBS=$pkg_cv_MSGPACK_LIBS
13899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13900 $as_echo "yes" >&6; }
13902 $as_echo "#define HAVE_MSGPACK 1" >>confdefs.h
13907 # target-specific stuff:
13909 # Canonicalize the secondary target names.
13910 if test -n "$enable_targets"; then
13911 for targ in `echo $enable_targets | sed 's/,/ /g'`
13913 result=`$ac_config_sub $targ 2>/dev/null`
13914 if test -n "$result"; then
13915 canon_targets="$canon_targets $result"
13916 else
13917 # Allow targets that config.sub doesn't recognize, like "all".
13918 canon_targets="$canon_targets $targ"
13920 done
13923 ac_fn_c_check_header_mongrel "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default"
13924 if test "x$ac_cv_header_iconv_h" = xyes; then :
13930 if test "X$prefix" = "XNONE"; then
13931 acl_final_prefix="$ac_default_prefix"
13932 else
13933 acl_final_prefix="$prefix"
13935 if test "X$exec_prefix" = "XNONE"; then
13936 acl_final_exec_prefix='${prefix}'
13937 else
13938 acl_final_exec_prefix="$exec_prefix"
13940 acl_save_prefix="$prefix"
13941 prefix="$acl_final_prefix"
13942 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
13943 prefix="$acl_save_prefix"
13946 # Check whether --with-gnu-ld was given.
13947 if test "${with_gnu_ld+set}" = set; then :
13948 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13949 else
13950 with_gnu_ld=no
13953 # Prepare PATH_SEPARATOR.
13954 # The user is always right.
13955 if test "${PATH_SEPARATOR+set}" != set; then
13956 echo "#! /bin/sh" >conf$$.sh
13957 echo "exit 0" >>conf$$.sh
13958 chmod +x conf$$.sh
13959 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13960 PATH_SEPARATOR=';'
13961 else
13962 PATH_SEPARATOR=:
13964 rm -f conf$$.sh
13966 ac_prog=ld
13967 if test "$GCC" = yes; then
13968 # Check if gcc -print-prog-name=ld gives a path.
13969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
13970 $as_echo_n "checking for ld used by GCC... " >&6; }
13971 case $host in
13972 *-*-mingw*)
13973 # gcc leaves a trailing carriage return which upsets mingw
13974 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13976 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13977 esac
13978 case $ac_prog in
13979 # Accept absolute paths.
13980 [\\/]* | [A-Za-z]:[\\/]*)
13981 re_direlt='/[^/][^/]*/\.\./'
13982 # Canonicalize the path of ld
13983 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
13984 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
13985 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
13986 done
13987 test -z "$LD" && LD="$ac_prog"
13990 # If it fails, then pretend we aren't using GCC.
13991 ac_prog=ld
13994 # If it is relative, then search for the first ld in PATH.
13995 with_gnu_ld=unknown
13997 esac
13998 elif test "$with_gnu_ld" = yes; then
13999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14000 $as_echo_n "checking for GNU ld... " >&6; }
14001 else
14002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14003 $as_echo_n "checking for non-GNU ld... " >&6; }
14005 if ${acl_cv_path_LD+:} false; then :
14006 $as_echo_n "(cached) " >&6
14007 else
14008 if test -z "$LD"; then
14009 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
14010 for ac_dir in $PATH; do
14011 test -z "$ac_dir" && ac_dir=.
14012 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14013 acl_cv_path_LD="$ac_dir/$ac_prog"
14014 # Check to see if the program is GNU ld. I'd rather use --version,
14015 # but apparently some GNU ld's only accept -v.
14016 # Break only if it was the GNU/non-GNU ld that we prefer.
14017 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | $EGREP '(GNU|with BFD)' > /dev/null; then
14018 test "$with_gnu_ld" != no && break
14019 else
14020 test "$with_gnu_ld" != yes && break
14023 done
14024 IFS="$ac_save_ifs"
14025 else
14026 acl_cv_path_LD="$LD" # Let the user override the test with a path.
14030 LD="$acl_cv_path_LD"
14031 if test -n "$LD"; then
14032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14033 $as_echo "$LD" >&6; }
14034 else
14035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14036 $as_echo "no" >&6; }
14038 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
14039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14040 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
14041 if ${acl_cv_prog_gnu_ld+:} false; then :
14042 $as_echo_n "(cached) " >&6
14043 else
14044 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
14045 if $LD -v 2>&1 </dev/null | $EGREP '(GNU|with BFD)' 1>&5; then
14046 acl_cv_prog_gnu_ld=yes
14047 else
14048 acl_cv_prog_gnu_ld=no
14051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
14052 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
14053 with_gnu_ld=$acl_cv_prog_gnu_ld
14057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
14058 $as_echo_n "checking for shared library run path origin... " >&6; }
14059 if ${acl_cv_rpath+:} false; then :
14060 $as_echo_n "(cached) " >&6
14061 else
14063 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
14064 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
14065 . ./conftest.sh
14066 rm -f ./conftest.sh
14067 acl_cv_rpath=done
14070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
14071 $as_echo "$acl_cv_rpath" >&6; }
14072 wl="$acl_cv_wl"
14073 libext="$acl_cv_libext"
14074 shlibext="$acl_cv_shlibext"
14075 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
14076 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
14077 hardcode_direct="$acl_cv_hardcode_direct"
14078 hardcode_minus_L="$acl_cv_hardcode_minus_L"
14079 # Check whether --enable-rpath was given.
14080 if test "${enable_rpath+set}" = set; then :
14081 enableval=$enable_rpath; :
14082 else
14083 enable_rpath=yes
14093 use_additional=yes
14095 acl_save_prefix="$prefix"
14096 prefix="$acl_final_prefix"
14097 acl_save_exec_prefix="$exec_prefix"
14098 exec_prefix="$acl_final_exec_prefix"
14100 eval additional_includedir=\"$includedir\"
14101 eval additional_libdir=\"$libdir\"
14103 exec_prefix="$acl_save_exec_prefix"
14104 prefix="$acl_save_prefix"
14107 # Check whether --with-libiconv-prefix was given.
14108 if test "${with_libiconv_prefix+set}" = set; then :
14109 withval=$with_libiconv_prefix;
14110 if test "X$withval" = "Xno"; then
14111 use_additional=no
14112 else
14113 if test "X$withval" = "X"; then
14115 acl_save_prefix="$prefix"
14116 prefix="$acl_final_prefix"
14117 acl_save_exec_prefix="$exec_prefix"
14118 exec_prefix="$acl_final_exec_prefix"
14120 eval additional_includedir=\"$includedir\"
14121 eval additional_libdir=\"$libdir\"
14123 exec_prefix="$acl_save_exec_prefix"
14124 prefix="$acl_save_prefix"
14126 else
14127 additional_includedir="$withval/include"
14128 additional_libdir="$withval/lib"
14135 # Check whether --with-libiconv-type was given.
14136 if test "${with_libiconv_type+set}" = set; then :
14137 withval=$with_libiconv_type; with_libiconv_type=$withval
14138 else
14139 with_libiconv_type=auto
14142 lib_type=`eval echo \$with_libiconv_type`
14144 LIBICONV=
14145 LTLIBICONV=
14146 INCICONV=
14147 rpathdirs=
14148 ltrpathdirs=
14149 names_already_handled=
14150 names_next_round='iconv '
14151 while test -n "$names_next_round"; do
14152 names_this_round="$names_next_round"
14153 names_next_round=
14154 for name in $names_this_round; do
14155 already_handled=
14156 for n in $names_already_handled; do
14157 if test "$n" = "$name"; then
14158 already_handled=yes
14159 break
14161 done
14162 if test -z "$already_handled"; then
14163 names_already_handled="$names_already_handled $name"
14164 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
14165 eval value=\"\$HAVE_LIB$uppername\"
14166 if test -n "$value"; then
14167 if test "$value" = yes; then
14168 eval value=\"\$LIB$uppername\"
14169 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
14170 eval value=\"\$LTLIB$uppername\"
14171 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
14172 else
14175 else
14176 found_dir=
14177 found_la=
14178 found_so=
14179 found_a=
14180 if test $use_additional = yes; then
14181 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
14182 found_dir="$additional_libdir"
14183 found_so="$additional_libdir/lib$name.$shlibext"
14184 if test -f "$additional_libdir/lib$name.la"; then
14185 found_la="$additional_libdir/lib$name.la"
14187 elif test x$lib_type != xshared; then
14188 if test -f "$additional_libdir/lib$name.$libext"; then
14189 found_dir="$additional_libdir"
14190 found_a="$additional_libdir/lib$name.$libext"
14191 if test -f "$additional_libdir/lib$name.la"; then
14192 found_la="$additional_libdir/lib$name.la"
14197 if test "X$found_dir" = "X"; then
14198 for x in $LDFLAGS $LTLIBICONV; do
14200 acl_save_prefix="$prefix"
14201 prefix="$acl_final_prefix"
14202 acl_save_exec_prefix="$exec_prefix"
14203 exec_prefix="$acl_final_exec_prefix"
14204 eval x=\"$x\"
14205 exec_prefix="$acl_save_exec_prefix"
14206 prefix="$acl_save_prefix"
14208 case "$x" in
14209 -L*)
14210 dir=`echo "X$x" | sed -e 's/^X-L//'`
14211 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
14212 found_dir="$dir"
14213 found_so="$dir/lib$name.$shlibext"
14214 if test -f "$dir/lib$name.la"; then
14215 found_la="$dir/lib$name.la"
14217 elif test x$lib_type != xshared; then
14218 if test -f "$dir/lib$name.$libext"; then
14219 found_dir="$dir"
14220 found_a="$dir/lib$name.$libext"
14221 if test -f "$dir/lib$name.la"; then
14222 found_la="$dir/lib$name.la"
14227 esac
14228 if test "X$found_dir" != "X"; then
14229 break
14231 done
14233 if test "X$found_dir" != "X"; then
14234 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
14235 if test "X$found_so" != "X"; then
14236 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
14237 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14238 else
14239 haveit=
14240 for x in $ltrpathdirs; do
14241 if test "X$x" = "X$found_dir"; then
14242 haveit=yes
14243 break
14245 done
14246 if test -z "$haveit"; then
14247 ltrpathdirs="$ltrpathdirs $found_dir"
14249 if test "$hardcode_direct" = yes; then
14250 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14251 else
14252 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
14253 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14254 haveit=
14255 for x in $rpathdirs; do
14256 if test "X$x" = "X$found_dir"; then
14257 haveit=yes
14258 break
14260 done
14261 if test -z "$haveit"; then
14262 rpathdirs="$rpathdirs $found_dir"
14264 else
14265 haveit=
14266 for x in $LDFLAGS $LIBICONV; do
14268 acl_save_prefix="$prefix"
14269 prefix="$acl_final_prefix"
14270 acl_save_exec_prefix="$exec_prefix"
14271 exec_prefix="$acl_final_exec_prefix"
14272 eval x=\"$x\"
14273 exec_prefix="$acl_save_exec_prefix"
14274 prefix="$acl_save_prefix"
14276 if test "X$x" = "X-L$found_dir"; then
14277 haveit=yes
14278 break
14280 done
14281 if test -z "$haveit"; then
14282 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
14284 if test "$hardcode_minus_L" != no; then
14285 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14286 else
14287 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
14292 else
14293 if test "X$found_a" != "X"; then
14294 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
14295 else
14296 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
14299 additional_includedir=
14300 case "$found_dir" in
14301 */lib | */lib/)
14302 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
14303 additional_includedir="$basedir/include"
14305 esac
14306 if test "X$additional_includedir" != "X"; then
14307 if test "X$additional_includedir" != "X/usr/include"; then
14308 haveit=
14309 if test "X$additional_includedir" = "X/usr/local/include"; then
14310 if test -n "$GCC"; then
14311 case $host_os in
14312 linux*) haveit=yes;;
14313 esac
14316 if test -z "$haveit"; then
14317 for x in $CPPFLAGS $INCICONV; do
14319 acl_save_prefix="$prefix"
14320 prefix="$acl_final_prefix"
14321 acl_save_exec_prefix="$exec_prefix"
14322 exec_prefix="$acl_final_exec_prefix"
14323 eval x=\"$x\"
14324 exec_prefix="$acl_save_exec_prefix"
14325 prefix="$acl_save_prefix"
14327 if test "X$x" = "X-I$additional_includedir"; then
14328 haveit=yes
14329 break
14331 done
14332 if test -z "$haveit"; then
14333 if test -d "$additional_includedir"; then
14334 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
14340 if test -n "$found_la"; then
14341 save_libdir="$libdir"
14342 case "$found_la" in
14343 */* | *\\*) . "$found_la" ;;
14344 *) . "./$found_la" ;;
14345 esac
14346 libdir="$save_libdir"
14347 for dep in $dependency_libs; do
14348 case "$dep" in
14349 -L*)
14350 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
14351 if test "X$additional_libdir" != "X/usr/lib"; then
14352 haveit=
14353 if test "X$additional_libdir" = "X/usr/local/lib"; then
14354 if test -n "$GCC"; then
14355 case $host_os in
14356 linux*) haveit=yes;;
14357 esac
14360 if test -z "$haveit"; then
14361 haveit=
14362 for x in $LDFLAGS $LIBICONV; do
14364 acl_save_prefix="$prefix"
14365 prefix="$acl_final_prefix"
14366 acl_save_exec_prefix="$exec_prefix"
14367 exec_prefix="$acl_final_exec_prefix"
14368 eval x=\"$x\"
14369 exec_prefix="$acl_save_exec_prefix"
14370 prefix="$acl_save_prefix"
14372 if test "X$x" = "X-L$additional_libdir"; then
14373 haveit=yes
14374 break
14376 done
14377 if test -z "$haveit"; then
14378 if test -d "$additional_libdir"; then
14379 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
14382 haveit=
14383 for x in $LDFLAGS $LTLIBICONV; do
14385 acl_save_prefix="$prefix"
14386 prefix="$acl_final_prefix"
14387 acl_save_exec_prefix="$exec_prefix"
14388 exec_prefix="$acl_final_exec_prefix"
14389 eval x=\"$x\"
14390 exec_prefix="$acl_save_exec_prefix"
14391 prefix="$acl_save_prefix"
14393 if test "X$x" = "X-L$additional_libdir"; then
14394 haveit=yes
14395 break
14397 done
14398 if test -z "$haveit"; then
14399 if test -d "$additional_libdir"; then
14400 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
14406 -R*)
14407 dir=`echo "X$dep" | sed -e 's/^X-R//'`
14408 if test "$enable_rpath" != no; then
14409 haveit=
14410 for x in $rpathdirs; do
14411 if test "X$x" = "X$dir"; then
14412 haveit=yes
14413 break
14415 done
14416 if test -z "$haveit"; then
14417 rpathdirs="$rpathdirs $dir"
14419 haveit=
14420 for x in $ltrpathdirs; do
14421 if test "X$x" = "X$dir"; then
14422 haveit=yes
14423 break
14425 done
14426 if test -z "$haveit"; then
14427 ltrpathdirs="$ltrpathdirs $dir"
14431 -l*)
14432 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14434 *.la)
14435 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14438 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
14439 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
14441 esac
14442 done
14444 else
14445 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
14446 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
14447 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
14448 else
14449 LIBICONV="${LIBICONV}${LIBICONV:+ }-l:lib$name.$libext"
14450 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l:lib$name.$libext"
14455 done
14456 done
14457 if test "X$rpathdirs" != "X"; then
14458 if test -n "$hardcode_libdir_separator"; then
14459 alldirs=
14460 for found_dir in $rpathdirs; do
14461 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
14462 done
14463 acl_save_libdir="$libdir"
14464 libdir="$alldirs"
14465 eval flag=\"$hardcode_libdir_flag_spec\"
14466 libdir="$acl_save_libdir"
14467 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
14468 else
14469 for found_dir in $rpathdirs; do
14470 acl_save_libdir="$libdir"
14471 libdir="$found_dir"
14472 eval flag=\"$hardcode_libdir_flag_spec\"
14473 libdir="$acl_save_libdir"
14474 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
14475 done
14478 if test "X$ltrpathdirs" != "X"; then
14479 for found_dir in $ltrpathdirs; do
14480 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
14481 done
14490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
14491 $as_echo_n "checking for iconv... " >&6; }
14492 if ${am_cv_func_iconv+:} false; then :
14493 $as_echo_n "(cached) " >&6
14494 else
14496 am_cv_func_iconv="no, consider installing GNU libiconv"
14497 am_cv_lib_iconv=no
14498 am_save_CPPFLAGS="$CPPFLAGS"
14499 CPPFLAGS="$CPPFLAGS $INCICONV"
14500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14501 /* end confdefs.h. */
14502 #include <stdlib.h>
14503 #include <iconv.h>
14505 main ()
14507 iconv_t cd = iconv_open("","");
14508 iconv(cd,NULL,NULL,NULL,NULL);
14509 iconv_close(cd);
14511 return 0;
14513 _ACEOF
14514 if ac_fn_c_try_link "$LINENO"; then :
14515 am_cv_func_iconv=yes
14517 rm -f core conftest.err conftest.$ac_objext \
14518 conftest$ac_exeext conftest.$ac_ext
14519 CPPFLAGS="$am_save_CPPFLAGS"
14521 if test "$am_cv_func_iconv" != yes && test -d ../libiconv; then
14522 for _libs in .libs _libs; do
14523 am_save_CPPFLAGS="$CPPFLAGS"
14524 am_save_LIBS="$LIBS"
14525 CPPFLAGS="$CPPFLAGS -I../libiconv/include"
14526 LIBS="$LIBS ../libiconv/lib/$_libs/libiconv.a"
14527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14528 /* end confdefs.h. */
14529 #include <stdlib.h>
14530 #include <iconv.h>
14532 main ()
14534 iconv_t cd = iconv_open("","");
14535 iconv(cd,NULL,NULL,NULL,NULL);
14536 iconv_close(cd);
14538 return 0;
14540 _ACEOF
14541 if ac_fn_c_try_link "$LINENO"; then :
14542 INCICONV="-I../libiconv/include"
14543 LIBICONV='${top_builddir}'/../libiconv/lib/$_libs/libiconv.a
14544 LTLIBICONV='${top_builddir}'/../libiconv/lib/libiconv.la
14545 am_cv_lib_iconv=yes
14546 am_cv_func_iconv=yes
14548 rm -f core conftest.err conftest.$ac_objext \
14549 conftest$ac_exeext conftest.$ac_ext
14550 CPPFLAGS="$am_save_CPPFLAGS"
14551 LIBS="$am_save_LIBS"
14552 if test "$am_cv_func_iconv" = "yes"; then
14553 break
14555 done
14558 if test "$am_cv_func_iconv" != yes; then
14559 am_save_CPPFLAGS="$CPPFLAGS"
14560 am_save_LIBS="$LIBS"
14561 CPPFLAGS="$CPPFLAGS $INCICONV"
14562 LIBS="$LIBS $LIBICONV"
14563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14564 /* end confdefs.h. */
14565 #include <stdlib.h>
14566 #include <iconv.h>
14568 main ()
14570 iconv_t cd = iconv_open("","");
14571 iconv(cd,NULL,NULL,NULL,NULL);
14572 iconv_close(cd);
14574 return 0;
14576 _ACEOF
14577 if ac_fn_c_try_link "$LINENO"; then :
14578 am_cv_lib_iconv=yes
14579 am_cv_func_iconv=yes
14581 rm -f core conftest.err conftest.$ac_objext \
14582 conftest$ac_exeext conftest.$ac_ext
14583 CPPFLAGS="$am_save_CPPFLAGS"
14584 LIBS="$am_save_LIBS"
14588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
14589 $as_echo "$am_cv_func_iconv" >&6; }
14590 if test "$am_cv_func_iconv" = yes; then
14592 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
14595 if test "$am_cv_lib_iconv" = yes; then
14597 for element in $INCICONV; do
14598 haveit=
14599 for x in $CPPFLAGS; do
14601 acl_save_prefix="$prefix"
14602 prefix="$acl_final_prefix"
14603 acl_save_exec_prefix="$exec_prefix"
14604 exec_prefix="$acl_final_exec_prefix"
14605 eval x=\"$x\"
14606 exec_prefix="$acl_save_exec_prefix"
14607 prefix="$acl_save_prefix"
14609 if test "X$x" = "X$element"; then
14610 haveit=yes
14611 break
14613 done
14614 if test -z "$haveit"; then
14615 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
14617 done
14619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
14620 $as_echo_n "checking how to link with libiconv... " >&6; }
14621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
14622 $as_echo "$LIBICONV" >&6; }
14623 else
14624 LIBICONV=
14625 LTLIBICONV=
14630 if test "$am_cv_func_iconv" = yes; then
14631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
14632 $as_echo_n "checking for iconv declaration... " >&6; }
14633 if ${am_cv_proto_iconv+:} false; then :
14634 $as_echo_n "(cached) " >&6
14635 else
14637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14638 /* end confdefs.h. */
14640 #include <stdlib.h>
14641 #include <iconv.h>
14642 extern
14643 #ifdef __cplusplus
14645 #endif
14646 #if defined(__STDC__) || defined(__cplusplus)
14647 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
14648 #else
14649 size_t iconv();
14650 #endif
14653 main ()
14657 return 0;
14659 _ACEOF
14660 if ac_fn_c_try_compile "$LINENO"; then :
14661 am_cv_proto_iconv_arg1=""
14662 else
14663 am_cv_proto_iconv_arg1="const"
14665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14666 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);"
14669 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
14670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
14671 }$am_cv_proto_iconv" >&5
14672 $as_echo "${ac_t:-
14673 }$am_cv_proto_iconv" >&6; }
14675 cat >>confdefs.h <<_ACEOF
14676 #define ICONV_CONST $am_cv_proto_iconv_arg1
14677 _ACEOF
14682 BUILD_SRCONV=
14683 BUILD_DLLTOOL=
14684 DLLTOOL_DEFS=
14685 DLLTOOL_DEFAULT=
14686 BUILD_WINDRES=
14687 BUILD_WINDMC=
14688 BUILD_DLLWRAP=
14689 BUILD_MISC=
14690 BUILD_INSTALL_MISC=
14691 OBJDUMP_DEFS=
14692 OBJDUMP_PRIVATE_VECTORS=
14693 OBJDUMP_PRIVATE_OFILES=
14694 od_vectors=
14696 for targ in $target $canon_targets
14698 case $targ in
14699 all | *-*-hms*)
14700 BUILD_SRCONV='$(SRCONV_PROG)'
14702 esac
14704 case $targ in
14705 all | spu-*-*)
14706 BUILD_MISC='bin2c$(EXEEXT_FOR_BUILD)'
14708 esac
14710 case $targ in
14711 powerpc*-*-linux* | powerpc*-*-elf* | powerpc*-*-eabi*)
14712 BUILD_INSTALL_MISC=embedspu
14714 esac
14716 case $targ in
14717 mep-*)
14718 OBJDUMP_DEFS="-DSKIP_ZEROES=256 -DSKIP_ZEROES_AT_END=0"
14720 powerpc*-aix5.[01])
14722 powerpc*-aix[5-9].*)
14723 OBJDUMP_DEFS="-DAIX_WEAK_SUPPORT"
14725 esac
14727 case $targ in
14728 aarch64-*-mingw*)
14729 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
14730 if test -z "$DLLTOOL_DEFAULT"; then
14731 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_AARCH64"
14733 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_AARCH64"
14734 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
14735 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
14736 BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
14738 arm-wince-pe* | arm-*-wince | arm*-*-cegcc* | arm*-*-mingw32ce*)
14739 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
14740 if test -z "$DLLTOOL_DEFAULT"; then
14741 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM_WINCE"
14743 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM_WINCE -DDLLTOOL_ARM"
14744 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
14745 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
14747 arm-*-pe*)
14748 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
14749 if test -z "$DLLTOOL_DEFAULT"; then
14750 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM"
14752 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM"
14753 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
14754 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
14756 i[3-7]86-*-pe* | i[3-7]86-*-cygwin* | i[3-7]86-*-mingw32** | all)
14757 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
14758 if test -z "$DLLTOOL_DEFAULT"; then
14759 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386"
14761 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
14762 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
14763 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
14764 BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
14766 i[3-7]86-*-interix)
14767 BUILD_DLLTOOL='$(DLLTOOL_PROG)'
14768 if test -z "$DLLTOOL_DEFAULT"; then
14769 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386"
14771 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
14773 mcore-*-pe)
14774 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
14775 if test -z "$DLLTOOL_DEFAULT"; then
14776 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MCORE"
14778 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MCORE"
14779 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
14780 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
14782 mcore-*-elf)
14783 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
14784 if test -z "$DLLTOOL_DEFAULT"; then
14785 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MCORE_ELF"
14787 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MCORE_ELF"
14789 sh*-*-pe)
14790 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
14791 if test -z "$DLLTOOL_DEFAULT"; then
14792 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_SH"
14794 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_SH"
14795 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
14796 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
14798 x86_64-*-mingw* | x86_64-*-cygwin*)
14799 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
14800 if test -z "$DLLTOOL_DEFAULT"; then
14801 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MX86_64"
14803 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MX86_64"
14804 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
14805 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
14806 BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
14808 esac
14810 # Add objdump private vectors.
14811 case $targ in
14812 all)
14813 od_vectors="objdump_private_desc_elf32_avr objdump_private_desc_xcoff\
14814 objdump_private_desc_pe objdump_private_desc_mach_o"
14816 avr-*-*)
14817 od_vectors="$od_vectors objdump_private_desc_elf32_avr"
14819 powerpc*-*-aix* | rs6000-*-aix*)
14820 od_vectors="$od_vectors objdump_private_desc_xcoff"
14822 *-*-pe* | *-*-cygwin* | *-*-mingw*)
14823 od_vectors="$od_vectors objdump_private_desc_pe"
14825 *-*-darwin*)
14826 od_vectors="$od_vectors objdump_private_desc_mach_o"
14828 esac
14829 done
14831 # Uniq objdump private vector, build objdump target ofiles.
14832 od_files=
14833 f=""
14834 for i in $od_vectors ; do
14835 case " $f " in
14836 *" $i "*) ;;
14838 f="$f $i"
14839 OBJDUMP_PRIVATE_VECTORS="$OBJDUMP_PRIVATE_VECTORS &$i,"
14840 case $i in
14841 objdump_private_desc_elf32_avr)
14842 od_files="$od_files od-elf32_avr" ;;
14843 objdump_private_desc_xcoff)
14844 od_files="$od_files od-xcoff" ;;
14845 objdump_private_desc_pe)
14846 od_files="$od_files od-pe" ;;
14847 objdump_private_desc_mach_o)
14848 od_files="$od_files od-macho" ;;
14849 *) as_fn_error $? "*** unknown private vector $i" "$LINENO" 5 ;;
14850 esac
14852 esac
14853 done
14855 # Uniq objdump target ofiles
14856 f=""
14857 for i in $od_files ; do
14858 case " $f " in
14859 *" $i "*) ;;
14861 f="$f $i"
14862 OBJDUMP_PRIVATE_OFILES="$OBJDUMP_PRIVATE_OFILES $i.$objext"
14864 esac
14865 done
14867 DLLTOOL_DEFS="$DLLTOOL_DEFS $DLLTOOL_DEFAULT"
14869 if test "${with_windres+set}" = set; then
14870 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
14873 if test "${with_windmc+set}" = set; then
14874 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
14877 OBJDUMP_DEFS="${OBJDUMP_DEFS} -DOBJDUMP_PRIVATE_VECTORS=\"${OBJDUMP_PRIVATE_VECTORS}\""
14891 cat >>confdefs.h <<_ACEOF
14892 #define TARGET "${target}"
14893 _ACEOF
14896 targ=$target
14897 . $srcdir/../bfd/config.bfd
14898 if test "x$targ_underscore" = "xyes"; then
14899 UNDERSCORE=1
14900 else
14901 UNDERSCORE=0
14904 cat >>confdefs.h <<_ACEOF
14905 #define TARGET_PREPENDS_UNDERSCORE $UNDERSCORE
14906 _ACEOF
14909 # Emulation
14910 targ=$target
14911 . ${srcdir}/configure.tgt
14912 EMULATION=$targ_emul
14913 EMULATION_VECTOR=$targ_emul_vector
14918 # Required for html and install-html
14924 ac_config_files="$ac_config_files Makefile po/Makefile.in:po/Make-in"
14926 cat >confcache <<\_ACEOF
14927 # This file is a shell script that caches the results of configure
14928 # tests run on this system so they can be shared between configure
14929 # scripts and configure runs, see configure's option --config-cache.
14930 # It is not useful on other systems. If it contains results you don't
14931 # want to keep, you may remove or edit it.
14933 # config.status only pays attention to the cache file if you give it
14934 # the --recheck option to rerun configure.
14936 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14937 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14938 # following values.
14940 _ACEOF
14942 # The following way of writing the cache mishandles newlines in values,
14943 # but we know of no workaround that is simple, portable, and efficient.
14944 # So, we kill variables containing newlines.
14945 # Ultrix sh set writes to stderr and can't be redirected directly,
14946 # and sets the high bit in the cache file unless we assign to the vars.
14948 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14949 eval ac_val=\$$ac_var
14950 case $ac_val in #(
14951 *${as_nl}*)
14952 case $ac_var in #(
14953 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14954 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14955 esac
14956 case $ac_var in #(
14957 _ | IFS | as_nl) ;; #(
14958 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14959 *) { eval $ac_var=; unset $ac_var;} ;;
14960 esac ;;
14961 esac
14962 done
14964 (set) 2>&1 |
14965 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14966 *${as_nl}ac_space=\ *)
14967 # `set' does not quote correctly, so add quotes: double-quote
14968 # substitution turns \\\\ into \\, and sed turns \\ into \.
14969 sed -n \
14970 "s/'/'\\\\''/g;
14971 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14972 ;; #(
14974 # `set' quotes correctly as required by POSIX, so do not add quotes.
14975 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14977 esac |
14978 sort
14980 sed '
14981 /^ac_cv_env_/b end
14982 t clear
14983 :clear
14984 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14985 t end
14986 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14987 :end' >>confcache
14988 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14989 if test -w "$cache_file"; then
14990 if test "x$cache_file" != "x/dev/null"; then
14991 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14992 $as_echo "$as_me: updating cache $cache_file" >&6;}
14993 if test ! -f "$cache_file" || test -h "$cache_file"; then
14994 cat confcache >"$cache_file"
14995 else
14996 case $cache_file in #(
14997 */* | ?:*)
14998 mv -f confcache "$cache_file"$$ &&
14999 mv -f "$cache_file"$$ "$cache_file" ;; #(
15001 mv -f confcache "$cache_file" ;;
15002 esac
15005 else
15006 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15007 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15010 rm -f confcache
15012 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15013 # Let make expand exec_prefix.
15014 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15016 DEFS=-DHAVE_CONFIG_H
15018 ac_libobjs=
15019 ac_ltlibobjs=
15021 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15022 # 1. Remove the extension, and $U if already installed.
15023 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15024 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15025 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15026 # will be set to the directory where LIBOBJS objects are built.
15027 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15028 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15029 done
15030 LIBOBJS=$ac_libobjs
15032 LTLIBOBJS=$ac_ltlibobjs
15035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15036 $as_echo_n "checking that generated files are newer than configure... " >&6; }
15037 if test -n "$am_sleep_pid"; then
15038 # Hide warnings about reused PIDs.
15039 wait $am_sleep_pid 2>/dev/null
15041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15042 $as_echo "done" >&6; }
15043 if test -n "$EXEEXT"; then
15044 am__EXEEXT_TRUE=
15045 am__EXEEXT_FALSE='#'
15046 else
15047 am__EXEEXT_TRUE='#'
15048 am__EXEEXT_FALSE=
15051 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15052 as_fn_error $? "conditional \"AMDEP\" was never defined.
15053 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15055 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15056 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15057 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15059 if test -z "${ENABLE_LIBCTF_TRUE}" && test -z "${ENABLE_LIBCTF_FALSE}"; then
15060 as_fn_error $? "conditional \"ENABLE_LIBCTF\" was never defined.
15061 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15063 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15064 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
15065 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15067 if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
15068 as_fn_error $? "conditional \"GENINSRC_NEVER\" was never defined.
15069 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15072 : "${CONFIG_STATUS=./config.status}"
15073 ac_write_fail=0
15074 ac_clean_files_save=$ac_clean_files
15075 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15076 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15077 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15078 as_write_fail=0
15079 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15080 #! $SHELL
15081 # Generated by $as_me.
15082 # Run this file to recreate the current configuration.
15083 # Compiler output produced by configure, useful for debugging
15084 # configure, is in config.log if it exists.
15086 debug=false
15087 ac_cs_recheck=false
15088 ac_cs_silent=false
15090 SHELL=\${CONFIG_SHELL-$SHELL}
15091 export SHELL
15092 _ASEOF
15093 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15094 ## -------------------- ##
15095 ## M4sh Initialization. ##
15096 ## -------------------- ##
15098 # Be more Bourne compatible
15099 DUALCASE=1; export DUALCASE # for MKS sh
15100 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15101 emulate sh
15102 NULLCMD=:
15103 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15104 # is contrary to our usage. Disable this feature.
15105 alias -g '${1+"$@"}'='"$@"'
15106 setopt NO_GLOB_SUBST
15107 else
15108 case `(set -o) 2>/dev/null` in #(
15109 *posix*) :
15110 set -o posix ;; #(
15111 *) :
15113 esac
15117 as_nl='
15119 export as_nl
15120 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15121 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15122 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15123 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15124 # Prefer a ksh shell builtin over an external printf program on Solaris,
15125 # but without wasting forks for bash or zsh.
15126 if test -z "$BASH_VERSION$ZSH_VERSION" \
15127 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15128 as_echo='print -r --'
15129 as_echo_n='print -rn --'
15130 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15131 as_echo='printf %s\n'
15132 as_echo_n='printf %s'
15133 else
15134 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15135 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15136 as_echo_n='/usr/ucb/echo -n'
15137 else
15138 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15139 as_echo_n_body='eval
15140 arg=$1;
15141 case $arg in #(
15142 *"$as_nl"*)
15143 expr "X$arg" : "X\\(.*\\)$as_nl";
15144 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15145 esac;
15146 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15148 export as_echo_n_body
15149 as_echo_n='sh -c $as_echo_n_body as_echo'
15151 export as_echo_body
15152 as_echo='sh -c $as_echo_body as_echo'
15155 # The user is always right.
15156 if test "${PATH_SEPARATOR+set}" != set; then
15157 PATH_SEPARATOR=:
15158 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15159 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15160 PATH_SEPARATOR=';'
15165 # IFS
15166 # We need space, tab and new line, in precisely that order. Quoting is
15167 # there to prevent editors from complaining about space-tab.
15168 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15169 # splitting by setting IFS to empty value.)
15170 IFS=" "" $as_nl"
15172 # Find who we are. Look in the path if we contain no directory separator.
15173 as_myself=
15174 case $0 in #((
15175 *[\\/]* ) as_myself=$0 ;;
15176 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15177 for as_dir in $PATH
15179 IFS=$as_save_IFS
15180 test -z "$as_dir" && as_dir=.
15181 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15182 done
15183 IFS=$as_save_IFS
15186 esac
15187 # We did not find ourselves, most probably we were run as `sh COMMAND'
15188 # in which case we are not to be found in the path.
15189 if test "x$as_myself" = x; then
15190 as_myself=$0
15192 if test ! -f "$as_myself"; then
15193 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15194 exit 1
15197 # Unset variables that we do not need and which cause bugs (e.g. in
15198 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15199 # suppresses any "Segmentation fault" message there. '((' could
15200 # trigger a bug in pdksh 5.2.14.
15201 for as_var in BASH_ENV ENV MAIL MAILPATH
15202 do eval test x\${$as_var+set} = xset \
15203 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15204 done
15205 PS1='$ '
15206 PS2='> '
15207 PS4='+ '
15209 # NLS nuisances.
15210 LC_ALL=C
15211 export LC_ALL
15212 LANGUAGE=C
15213 export LANGUAGE
15215 # CDPATH.
15216 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15219 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15220 # ----------------------------------------
15221 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15222 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15223 # script with STATUS, using 1 if that was 0.
15224 as_fn_error ()
15226 as_status=$1; test $as_status -eq 0 && as_status=1
15227 if test "$4"; then
15228 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15229 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15231 $as_echo "$as_me: error: $2" >&2
15232 as_fn_exit $as_status
15233 } # as_fn_error
15236 # as_fn_set_status STATUS
15237 # -----------------------
15238 # Set $? to STATUS, without forking.
15239 as_fn_set_status ()
15241 return $1
15242 } # as_fn_set_status
15244 # as_fn_exit STATUS
15245 # -----------------
15246 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15247 as_fn_exit ()
15249 set +e
15250 as_fn_set_status $1
15251 exit $1
15252 } # as_fn_exit
15254 # as_fn_unset VAR
15255 # ---------------
15256 # Portably unset VAR.
15257 as_fn_unset ()
15259 { eval $1=; unset $1;}
15261 as_unset=as_fn_unset
15262 # as_fn_append VAR VALUE
15263 # ----------------------
15264 # Append the text in VALUE to the end of the definition contained in VAR. Take
15265 # advantage of any shell optimizations that allow amortized linear growth over
15266 # repeated appends, instead of the typical quadratic growth present in naive
15267 # implementations.
15268 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15269 eval 'as_fn_append ()
15271 eval $1+=\$2
15273 else
15274 as_fn_append ()
15276 eval $1=\$$1\$2
15278 fi # as_fn_append
15280 # as_fn_arith ARG...
15281 # ------------------
15282 # Perform arithmetic evaluation on the ARGs, and store the result in the
15283 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15284 # must be portable across $(()) and expr.
15285 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15286 eval 'as_fn_arith ()
15288 as_val=$(( $* ))
15290 else
15291 as_fn_arith ()
15293 as_val=`expr "$@" || test $? -eq 1`
15295 fi # as_fn_arith
15298 if expr a : '\(a\)' >/dev/null 2>&1 &&
15299 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15300 as_expr=expr
15301 else
15302 as_expr=false
15305 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15306 as_basename=basename
15307 else
15308 as_basename=false
15311 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15312 as_dirname=dirname
15313 else
15314 as_dirname=false
15317 as_me=`$as_basename -- "$0" ||
15318 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15319 X"$0" : 'X\(//\)$' \| \
15320 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15321 $as_echo X/"$0" |
15322 sed '/^.*\/\([^/][^/]*\)\/*$/{
15323 s//\1/
15326 /^X\/\(\/\/\)$/{
15327 s//\1/
15330 /^X\/\(\/\).*/{
15331 s//\1/
15334 s/.*/./; q'`
15336 # Avoid depending upon Character Ranges.
15337 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15338 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15339 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15340 as_cr_digits='0123456789'
15341 as_cr_alnum=$as_cr_Letters$as_cr_digits
15343 ECHO_C= ECHO_N= ECHO_T=
15344 case `echo -n x` in #(((((
15345 -n*)
15346 case `echo 'xy\c'` in
15347 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15348 xy) ECHO_C='\c';;
15349 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15350 ECHO_T=' ';;
15351 esac;;
15353 ECHO_N='-n';;
15354 esac
15356 rm -f conf$$ conf$$.exe conf$$.file
15357 if test -d conf$$.dir; then
15358 rm -f conf$$.dir/conf$$.file
15359 else
15360 rm -f conf$$.dir
15361 mkdir conf$$.dir 2>/dev/null
15363 if (echo >conf$$.file) 2>/dev/null; then
15364 if ln -s conf$$.file conf$$ 2>/dev/null; then
15365 as_ln_s='ln -s'
15366 # ... but there are two gotchas:
15367 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15368 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15369 # In both cases, we have to default to `cp -pR'.
15370 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15371 as_ln_s='cp -pR'
15372 elif ln conf$$.file conf$$ 2>/dev/null; then
15373 as_ln_s=ln
15374 else
15375 as_ln_s='cp -pR'
15377 else
15378 as_ln_s='cp -pR'
15380 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15381 rmdir conf$$.dir 2>/dev/null
15384 # as_fn_mkdir_p
15385 # -------------
15386 # Create "$as_dir" as a directory, including parents if necessary.
15387 as_fn_mkdir_p ()
15390 case $as_dir in #(
15391 -*) as_dir=./$as_dir;;
15392 esac
15393 test -d "$as_dir" || eval $as_mkdir_p || {
15394 as_dirs=
15395 while :; do
15396 case $as_dir in #(
15397 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15398 *) as_qdir=$as_dir;;
15399 esac
15400 as_dirs="'$as_qdir' $as_dirs"
15401 as_dir=`$as_dirname -- "$as_dir" ||
15402 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15403 X"$as_dir" : 'X\(//\)[^/]' \| \
15404 X"$as_dir" : 'X\(//\)$' \| \
15405 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15406 $as_echo X"$as_dir" |
15407 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15408 s//\1/
15411 /^X\(\/\/\)[^/].*/{
15412 s//\1/
15415 /^X\(\/\/\)$/{
15416 s//\1/
15419 /^X\(\/\).*/{
15420 s//\1/
15423 s/.*/./; q'`
15424 test -d "$as_dir" && break
15425 done
15426 test -z "$as_dirs" || eval "mkdir $as_dirs"
15427 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15430 } # as_fn_mkdir_p
15431 if mkdir -p . 2>/dev/null; then
15432 as_mkdir_p='mkdir -p "$as_dir"'
15433 else
15434 test -d ./-p && rmdir ./-p
15435 as_mkdir_p=false
15439 # as_fn_executable_p FILE
15440 # -----------------------
15441 # Test if FILE is an executable regular file.
15442 as_fn_executable_p ()
15444 test -f "$1" && test -x "$1"
15445 } # as_fn_executable_p
15446 as_test_x='test -x'
15447 as_executable_p=as_fn_executable_p
15449 # Sed expression to map a string onto a valid CPP name.
15450 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15452 # Sed expression to map a string onto a valid variable name.
15453 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15456 exec 6>&1
15457 ## ----------------------------------- ##
15458 ## Main body of $CONFIG_STATUS script. ##
15459 ## ----------------------------------- ##
15460 _ASEOF
15461 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15463 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15464 # Save the log message, to keep $0 and so on meaningful, and to
15465 # report actual input values of CONFIG_FILES etc. instead of their
15466 # values after options handling.
15467 ac_log="
15468 This file was extended by binutils $as_me 2.41.50, which was
15469 generated by GNU Autoconf 2.69. Invocation command line was
15471 CONFIG_FILES = $CONFIG_FILES
15472 CONFIG_HEADERS = $CONFIG_HEADERS
15473 CONFIG_LINKS = $CONFIG_LINKS
15474 CONFIG_COMMANDS = $CONFIG_COMMANDS
15475 $ $0 $@
15477 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15480 _ACEOF
15482 case $ac_config_files in *"
15483 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15484 esac
15486 case $ac_config_headers in *"
15487 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15488 esac
15491 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15492 # Files that config.status was made for.
15493 config_files="$ac_config_files"
15494 config_headers="$ac_config_headers"
15495 config_commands="$ac_config_commands"
15497 _ACEOF
15499 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15500 ac_cs_usage="\
15501 \`$as_me' instantiates files and other configuration actions
15502 from templates according to the current configuration. Unless the files
15503 and actions are specified as TAGs, all are instantiated by default.
15505 Usage: $0 [OPTION]... [TAG]...
15507 -h, --help print this help, then exit
15508 -V, --version print version number and configuration settings, then exit
15509 --config print configuration, then exit
15510 -q, --quiet, --silent
15511 do not print progress messages
15512 -d, --debug don't remove temporary files
15513 --recheck update $as_me by reconfiguring in the same conditions
15514 --file=FILE[:TEMPLATE]
15515 instantiate the configuration file FILE
15516 --header=FILE[:TEMPLATE]
15517 instantiate the configuration header FILE
15519 Configuration files:
15520 $config_files
15522 Configuration headers:
15523 $config_headers
15525 Configuration commands:
15526 $config_commands
15528 Report bugs to the package provider."
15530 _ACEOF
15531 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15532 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15533 ac_cs_version="\\
15534 binutils config.status 2.41.50
15535 configured by $0, generated by GNU Autoconf 2.69,
15536 with options \\"\$ac_cs_config\\"
15538 Copyright (C) 2012 Free Software Foundation, Inc.
15539 This config.status script is free software; the Free Software Foundation
15540 gives unlimited permission to copy, distribute and modify it."
15542 ac_pwd='$ac_pwd'
15543 srcdir='$srcdir'
15544 INSTALL='$INSTALL'
15545 MKDIR_P='$MKDIR_P'
15546 AWK='$AWK'
15547 test -n "\$AWK" || AWK=awk
15548 _ACEOF
15550 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15551 # The default lists apply if the user does not specify any file.
15552 ac_need_defaults=:
15553 while test $# != 0
15555 case $1 in
15556 --*=?*)
15557 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15558 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15559 ac_shift=:
15561 --*=)
15562 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15563 ac_optarg=
15564 ac_shift=:
15567 ac_option=$1
15568 ac_optarg=$2
15569 ac_shift=shift
15571 esac
15573 case $ac_option in
15574 # Handling of the options.
15575 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15576 ac_cs_recheck=: ;;
15577 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15578 $as_echo "$ac_cs_version"; exit ;;
15579 --config | --confi | --conf | --con | --co | --c )
15580 $as_echo "$ac_cs_config"; exit ;;
15581 --debug | --debu | --deb | --de | --d | -d )
15582 debug=: ;;
15583 --file | --fil | --fi | --f )
15584 $ac_shift
15585 case $ac_optarg in
15586 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15587 '') as_fn_error $? "missing file argument" ;;
15588 esac
15589 as_fn_append CONFIG_FILES " '$ac_optarg'"
15590 ac_need_defaults=false;;
15591 --header | --heade | --head | --hea )
15592 $ac_shift
15593 case $ac_optarg in
15594 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15595 esac
15596 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15597 ac_need_defaults=false;;
15598 --he | --h)
15599 # Conflict between --help and --header
15600 as_fn_error $? "ambiguous option: \`$1'
15601 Try \`$0 --help' for more information.";;
15602 --help | --hel | -h )
15603 $as_echo "$ac_cs_usage"; exit ;;
15604 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15605 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15606 ac_cs_silent=: ;;
15608 # This is an error.
15609 -*) as_fn_error $? "unrecognized option: \`$1'
15610 Try \`$0 --help' for more information." ;;
15612 *) as_fn_append ac_config_targets " $1"
15613 ac_need_defaults=false ;;
15615 esac
15616 shift
15617 done
15619 ac_configure_extra_args=
15621 if $ac_cs_silent; then
15622 exec 6>/dev/null
15623 ac_configure_extra_args="$ac_configure_extra_args --silent"
15626 _ACEOF
15627 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15628 if \$ac_cs_recheck; then
15629 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15630 shift
15631 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15632 CONFIG_SHELL='$SHELL'
15633 export CONFIG_SHELL
15634 exec "\$@"
15637 _ACEOF
15638 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15639 exec 5>>config.log
15641 echo
15642 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15643 ## Running $as_me. ##
15644 _ASBOX
15645 $as_echo "$ac_log"
15646 } >&5
15648 _ACEOF
15649 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15651 # INIT-COMMANDS
15653 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15656 # The HP-UX ksh and POSIX shell print the target directory to stdout
15657 # if CDPATH is set.
15658 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15660 sed_quote_subst='$sed_quote_subst'
15661 double_quote_subst='$double_quote_subst'
15662 delay_variable_subst='$delay_variable_subst'
15663 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15664 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15665 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15666 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15667 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15668 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15669 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15670 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15671 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15672 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15673 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15674 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15675 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15676 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15677 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15678 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15679 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15680 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15681 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15682 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15683 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15684 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15685 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15686 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15687 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15688 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15689 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15690 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15691 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15692 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15693 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15694 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15695 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15696 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15697 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15698 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15699 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15700 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15701 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15702 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15703 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15704 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15705 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15706 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15707 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15708 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15709 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15710 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15711 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"`'
15712 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15713 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15714 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15715 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15716 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15717 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15718 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15719 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15720 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15721 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15722 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15723 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15724 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15725 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15726 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15727 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15728 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15729 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15730 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15731 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15732 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15733 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15734 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15735 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15736 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15737 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15738 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15739 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15740 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15741 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15742 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15743 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
15744 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15745 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15746 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15747 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15748 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15749 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15750 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15751 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15752 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
15753 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15754 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15755 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15756 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15757 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15758 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15759 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15760 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15761 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15762 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15763 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15764 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15765 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15766 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15767 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15768 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15769 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15770 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15771 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15772 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15773 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15774 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15775 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15776 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15777 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15778 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15779 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15780 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15781 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15782 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15784 LTCC='$LTCC'
15785 LTCFLAGS='$LTCFLAGS'
15786 compiler='$compiler_DEFAULT'
15788 # A function that is used when there is no print builtin or printf.
15789 func_fallback_echo ()
15791 eval 'cat <<_LTECHO_EOF
15793 _LTECHO_EOF'
15796 # Quote evaled strings.
15797 for var in SHELL \
15798 ECHO \
15799 SED \
15800 GREP \
15801 EGREP \
15802 FGREP \
15803 LD \
15804 NM \
15805 LN_S \
15806 lt_SP2NL \
15807 lt_NL2SP \
15808 reload_flag \
15809 OBJDUMP \
15810 deplibs_check_method \
15811 file_magic_cmd \
15812 AR \
15813 AR_FLAGS \
15814 STRIP \
15815 RANLIB \
15816 CC \
15817 CFLAGS \
15818 compiler \
15819 lt_cv_sys_global_symbol_pipe \
15820 lt_cv_sys_global_symbol_to_cdecl \
15821 lt_cv_sys_global_symbol_to_c_name_address \
15822 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15823 lt_prog_compiler_no_builtin_flag \
15824 lt_prog_compiler_wl \
15825 lt_prog_compiler_pic \
15826 lt_prog_compiler_static \
15827 lt_cv_prog_compiler_c_o \
15828 need_locks \
15829 DSYMUTIL \
15830 NMEDIT \
15831 LIPO \
15832 OTOOL \
15833 OTOOL64 \
15834 shrext_cmds \
15835 export_dynamic_flag_spec \
15836 whole_archive_flag_spec \
15837 compiler_needs_object \
15838 with_gnu_ld \
15839 allow_undefined_flag \
15840 no_undefined_flag \
15841 hardcode_libdir_flag_spec \
15842 hardcode_libdir_flag_spec_ld \
15843 hardcode_libdir_separator \
15844 fix_srcfile_path \
15845 exclude_expsyms \
15846 include_expsyms \
15847 file_list_spec \
15848 variables_saved_for_relink \
15849 libname_spec \
15850 library_names_spec \
15851 soname_spec \
15852 install_override_mode \
15853 finish_eval \
15854 old_striplib \
15855 striplib; do
15856 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15857 *[\\\\\\\`\\"\\\$]*)
15858 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15861 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15863 esac
15864 done
15866 # Double-quote double-evaled strings.
15867 for var in reload_cmds \
15868 old_postinstall_cmds \
15869 old_postuninstall_cmds \
15870 old_archive_cmds \
15871 extract_expsyms_cmds \
15872 old_archive_from_new_cmds \
15873 old_archive_from_expsyms_cmds \
15874 archive_cmds \
15875 archive_expsym_cmds \
15876 module_cmds \
15877 module_expsym_cmds \
15878 export_symbols_cmds \
15879 prelink_cmds \
15880 postinstall_cmds \
15881 postuninstall_cmds \
15882 finish_cmds \
15883 sys_lib_search_path_spec \
15884 sys_lib_dlsearch_path_spec; do
15885 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15886 *[\\\\\\\`\\"\\\$]*)
15887 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15890 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15892 esac
15893 done
15895 ac_aux_dir='$ac_aux_dir'
15896 xsi_shell='$xsi_shell'
15897 lt_shell_append='$lt_shell_append'
15899 # See if we are running on zsh, and set the options which allow our
15900 # commands through without removal of \ escapes INIT.
15901 if test -n "\${ZSH_VERSION+set}" ; then
15902 setopt NO_GLOB_SUBST
15906 PACKAGE='$PACKAGE'
15907 VERSION='$VERSION'
15908 TIMESTAMP='$TIMESTAMP'
15909 RM='$RM'
15910 ofile='$ofile'
15914 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
15915 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
15916 # from automake.
15917 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
15918 # Capture the value of LINGUAS because we need it to compute CATALOGS.
15919 LINGUAS="${LINGUAS-%UNSET%}"
15922 _ACEOF
15924 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15926 # Handling of arguments.
15927 for ac_config_target in $ac_config_targets
15929 case $ac_config_target in
15930 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15931 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15932 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
15933 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
15934 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15935 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
15937 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15938 esac
15939 done
15942 # If the user did not use the arguments to specify the items to instantiate,
15943 # then the envvar interface is used. Set only those that are not.
15944 # We use the long form for the default assignment because of an extremely
15945 # bizarre bug on SunOS 4.1.3.
15946 if $ac_need_defaults; then
15947 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15948 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15949 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15952 # Have a temporary directory for convenience. Make it in the build tree
15953 # simply because there is no reason against having it here, and in addition,
15954 # creating and moving files from /tmp can sometimes cause problems.
15955 # Hook for its removal unless debugging.
15956 # Note that there is a small window in which the directory will not be cleaned:
15957 # after its creation but before its name has been assigned to `$tmp'.
15958 $debug ||
15960 tmp= ac_tmp=
15961 trap 'exit_status=$?
15962 : "${ac_tmp:=$tmp}"
15963 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15965 trap 'as_fn_exit 1' 1 2 13 15
15967 # Create a (secure) tmp directory for tmp files.
15970 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15971 test -d "$tmp"
15972 } ||
15974 tmp=./conf$$-$RANDOM
15975 (umask 077 && mkdir "$tmp")
15976 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15977 ac_tmp=$tmp
15979 # Set up the scripts for CONFIG_FILES section.
15980 # No need to generate them if there are no CONFIG_FILES.
15981 # This happens for instance with `./config.status config.h'.
15982 if test -n "$CONFIG_FILES"; then
15985 ac_cr=`echo X | tr X '\015'`
15986 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15987 # But we know of no other shell where ac_cr would be empty at this
15988 # point, so we can use a bashism as a fallback.
15989 if test "x$ac_cr" = x; then
15990 eval ac_cr=\$\'\\r\'
15992 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15993 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15994 ac_cs_awk_cr='\\r'
15995 else
15996 ac_cs_awk_cr=$ac_cr
15999 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16000 _ACEOF
16004 echo "cat >conf$$subs.awk <<_ACEOF" &&
16005 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16006 echo "_ACEOF"
16007 } >conf$$subs.sh ||
16008 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16009 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16010 ac_delim='%!_!# '
16011 for ac_last_try in false false false false false :; do
16012 . ./conf$$subs.sh ||
16013 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16015 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16016 if test $ac_delim_n = $ac_delim_num; then
16017 break
16018 elif $ac_last_try; then
16019 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16020 else
16021 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16023 done
16024 rm -f conf$$subs.sh
16026 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16027 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16028 _ACEOF
16029 sed -n '
16031 s/^/S["/; s/!.*/"]=/
16034 s/^[^!]*!//
16035 :repl
16036 t repl
16037 s/'"$ac_delim"'$//
16038 t delim
16041 s/\(.\{148\}\)..*/\1/
16042 t more1
16043 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16046 b repl
16047 :more1
16048 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16051 s/.\{148\}//
16052 t nl
16053 :delim
16055 s/\(.\{148\}\)..*/\1/
16056 t more2
16057 s/["\\]/\\&/g; s/^/"/; s/$/"/
16060 :more2
16061 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16064 s/.\{148\}//
16065 t delim
16066 ' <conf$$subs.awk | sed '
16067 /^[^""]/{
16069 s/\n//
16071 ' >>$CONFIG_STATUS || ac_write_fail=1
16072 rm -f conf$$subs.awk
16073 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16074 _ACAWK
16075 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16076 for (key in S) S_is_set[key] = 1
16077 FS = "\a"
16081 line = $ 0
16082 nfields = split(line, field, "@")
16083 substed = 0
16084 len = length(field[1])
16085 for (i = 2; i < nfields; i++) {
16086 key = field[i]
16087 keylen = length(key)
16088 if (S_is_set[key]) {
16089 value = S[key]
16090 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16091 len += length(value) + length(field[++i])
16092 substed = 1
16093 } else
16094 len += 1 + keylen
16097 print line
16100 _ACAWK
16101 _ACEOF
16102 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16103 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16104 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16105 else
16107 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16108 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16109 _ACEOF
16111 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16112 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16113 # trailing colons and then remove the whole line if VPATH becomes empty
16114 # (actually we leave an empty line to preserve line numbers).
16115 if test "x$srcdir" = x.; then
16116 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16118 s///
16119 s/^/:/
16120 s/[ ]*$/:/
16121 s/:\$(srcdir):/:/g
16122 s/:\${srcdir}:/:/g
16123 s/:@srcdir@:/:/g
16124 s/^:*//
16125 s/:*$//
16127 s/\(=[ ]*\).*/\1/
16129 s/\n//
16130 s/^[^=]*=[ ]*$//
16134 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16135 fi # test -n "$CONFIG_FILES"
16137 # Set up the scripts for CONFIG_HEADERS section.
16138 # No need to generate them if there are no CONFIG_HEADERS.
16139 # This happens for instance with `./config.status Makefile'.
16140 if test -n "$CONFIG_HEADERS"; then
16141 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16142 BEGIN {
16143 _ACEOF
16145 # Transform confdefs.h into an awk script `defines.awk', embedded as
16146 # here-document in config.status, that substitutes the proper values into
16147 # config.h.in to produce config.h.
16149 # Create a delimiter string that does not exist in confdefs.h, to ease
16150 # handling of long lines.
16151 ac_delim='%!_!# '
16152 for ac_last_try in false false :; do
16153 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16154 if test -z "$ac_tt"; then
16155 break
16156 elif $ac_last_try; then
16157 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16158 else
16159 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16161 done
16163 # For the awk script, D is an array of macro values keyed by name,
16164 # likewise P contains macro parameters if any. Preserve backslash
16165 # newline sequences.
16167 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16168 sed -n '
16169 s/.\{148\}/&'"$ac_delim"'/g
16170 t rset
16171 :rset
16172 s/^[ ]*#[ ]*define[ ][ ]*/ /
16173 t def
16175 :def
16176 s/\\$//
16177 t bsnl
16178 s/["\\]/\\&/g
16179 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16180 D["\1"]=" \3"/p
16181 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16183 :bsnl
16184 s/["\\]/\\&/g
16185 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16186 D["\1"]=" \3\\\\\\n"\\/p
16187 t cont
16188 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16189 t cont
16191 :cont
16193 s/.\{148\}/&'"$ac_delim"'/g
16194 t clear
16195 :clear
16196 s/\\$//
16197 t bsnlc
16198 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16200 :bsnlc
16201 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16202 b cont
16203 ' <confdefs.h | sed '
16204 s/'"$ac_delim"'/"\\\
16205 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16207 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16208 for (key in D) D_is_set[key] = 1
16209 FS = "\a"
16211 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16212 line = \$ 0
16213 split(line, arg, " ")
16214 if (arg[1] == "#") {
16215 defundef = arg[2]
16216 mac1 = arg[3]
16217 } else {
16218 defundef = substr(arg[1], 2)
16219 mac1 = arg[2]
16221 split(mac1, mac2, "(") #)
16222 macro = mac2[1]
16223 prefix = substr(line, 1, index(line, defundef) - 1)
16224 if (D_is_set[macro]) {
16225 # Preserve the white space surrounding the "#".
16226 print prefix "define", macro P[macro] D[macro]
16227 next
16228 } else {
16229 # Replace #undef with comments. This is necessary, for example,
16230 # in the case of _POSIX_SOURCE, which is predefined and required
16231 # on some systems where configure will not decide to define it.
16232 if (defundef == "undef") {
16233 print "/*", prefix defundef, macro, "*/"
16234 next
16238 { print }
16239 _ACAWK
16240 _ACEOF
16241 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16242 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16243 fi # test -n "$CONFIG_HEADERS"
16246 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16247 shift
16248 for ac_tag
16250 case $ac_tag in
16251 :[FHLC]) ac_mode=$ac_tag; continue;;
16252 esac
16253 case $ac_mode$ac_tag in
16254 :[FHL]*:*);;
16255 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16256 :[FH]-) ac_tag=-:-;;
16257 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16258 esac
16259 ac_save_IFS=$IFS
16260 IFS=:
16261 set x $ac_tag
16262 IFS=$ac_save_IFS
16263 shift
16264 ac_file=$1
16265 shift
16267 case $ac_mode in
16268 :L) ac_source=$1;;
16269 :[FH])
16270 ac_file_inputs=
16271 for ac_f
16273 case $ac_f in
16274 -) ac_f="$ac_tmp/stdin";;
16275 *) # Look for the file first in the build tree, then in the source tree
16276 # (if the path is not absolute). The absolute path cannot be DOS-style,
16277 # because $ac_f cannot contain `:'.
16278 test -f "$ac_f" ||
16279 case $ac_f in
16280 [\\/$]*) false;;
16281 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16282 esac ||
16283 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16284 esac
16285 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16286 as_fn_append ac_file_inputs " '$ac_f'"
16287 done
16289 # Let's still pretend it is `configure' which instantiates (i.e., don't
16290 # use $as_me), people would be surprised to read:
16291 # /* config.h. Generated by config.status. */
16292 configure_input='Generated from '`
16293 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16294 `' by configure.'
16295 if test x"$ac_file" != x-; then
16296 configure_input="$ac_file. $configure_input"
16297 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16298 $as_echo "$as_me: creating $ac_file" >&6;}
16300 # Neutralize special characters interpreted by sed in replacement strings.
16301 case $configure_input in #(
16302 *\&* | *\|* | *\\* )
16303 ac_sed_conf_input=`$as_echo "$configure_input" |
16304 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16305 *) ac_sed_conf_input=$configure_input;;
16306 esac
16308 case $ac_tag in
16309 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16310 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16311 esac
16313 esac
16315 ac_dir=`$as_dirname -- "$ac_file" ||
16316 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16317 X"$ac_file" : 'X\(//\)[^/]' \| \
16318 X"$ac_file" : 'X\(//\)$' \| \
16319 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16320 $as_echo X"$ac_file" |
16321 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16322 s//\1/
16325 /^X\(\/\/\)[^/].*/{
16326 s//\1/
16329 /^X\(\/\/\)$/{
16330 s//\1/
16333 /^X\(\/\).*/{
16334 s//\1/
16337 s/.*/./; q'`
16338 as_dir="$ac_dir"; as_fn_mkdir_p
16339 ac_builddir=.
16341 case "$ac_dir" in
16342 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16344 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16345 # A ".." for each directory in $ac_dir_suffix.
16346 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16347 case $ac_top_builddir_sub in
16348 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16349 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16350 esac ;;
16351 esac
16352 ac_abs_top_builddir=$ac_pwd
16353 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16354 # for backward compatibility:
16355 ac_top_builddir=$ac_top_build_prefix
16357 case $srcdir in
16358 .) # We are building in place.
16359 ac_srcdir=.
16360 ac_top_srcdir=$ac_top_builddir_sub
16361 ac_abs_top_srcdir=$ac_pwd ;;
16362 [\\/]* | ?:[\\/]* ) # Absolute name.
16363 ac_srcdir=$srcdir$ac_dir_suffix;
16364 ac_top_srcdir=$srcdir
16365 ac_abs_top_srcdir=$srcdir ;;
16366 *) # Relative name.
16367 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16368 ac_top_srcdir=$ac_top_build_prefix$srcdir
16369 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16370 esac
16371 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16374 case $ac_mode in
16377 # CONFIG_FILE
16380 case $INSTALL in
16381 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16382 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16383 esac
16384 ac_MKDIR_P=$MKDIR_P
16385 case $MKDIR_P in
16386 [\\/$]* | ?:[\\/]* ) ;;
16387 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16388 esac
16389 _ACEOF
16391 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16392 # If the template does not know about datarootdir, expand it.
16393 # FIXME: This hack should be removed a few years after 2.60.
16394 ac_datarootdir_hack=; ac_datarootdir_seen=
16395 ac_sed_dataroot='
16396 /datarootdir/ {
16400 /@datadir@/p
16401 /@docdir@/p
16402 /@infodir@/p
16403 /@localedir@/p
16404 /@mandir@/p'
16405 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16406 *datarootdir*) ac_datarootdir_seen=yes;;
16407 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16408 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16409 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16410 _ACEOF
16411 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16412 ac_datarootdir_hack='
16413 s&@datadir@&$datadir&g
16414 s&@docdir@&$docdir&g
16415 s&@infodir@&$infodir&g
16416 s&@localedir@&$localedir&g
16417 s&@mandir@&$mandir&g
16418 s&\\\${datarootdir}&$datarootdir&g' ;;
16419 esac
16420 _ACEOF
16422 # Neutralize VPATH when `$srcdir' = `.'.
16423 # Shell code in configure.ac might set extrasub.
16424 # FIXME: do we really want to maintain this feature?
16425 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16426 ac_sed_extra="$ac_vpsub
16427 $extrasub
16428 _ACEOF
16429 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16431 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16432 s|@configure_input@|$ac_sed_conf_input|;t t
16433 s&@top_builddir@&$ac_top_builddir_sub&;t t
16434 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16435 s&@srcdir@&$ac_srcdir&;t t
16436 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16437 s&@top_srcdir@&$ac_top_srcdir&;t t
16438 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16439 s&@builddir@&$ac_builddir&;t t
16440 s&@abs_builddir@&$ac_abs_builddir&;t t
16441 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16442 s&@INSTALL@&$ac_INSTALL&;t t
16443 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16444 $ac_datarootdir_hack
16446 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16447 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16449 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16450 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16451 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16452 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16453 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16454 which seems to be undefined. Please make sure it is defined" >&5
16455 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16456 which seems to be undefined. Please make sure it is defined" >&2;}
16458 rm -f "$ac_tmp/stdin"
16459 case $ac_file in
16460 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16461 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16462 esac \
16463 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16467 # CONFIG_HEADER
16469 if test x"$ac_file" != x-; then
16471 $as_echo "/* $configure_input */" \
16472 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16473 } >"$ac_tmp/config.h" \
16474 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16475 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16476 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16477 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16478 else
16479 rm -f "$ac_file"
16480 mv "$ac_tmp/config.h" "$ac_file" \
16481 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16483 else
16484 $as_echo "/* $configure_input */" \
16485 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16486 || as_fn_error $? "could not create -" "$LINENO" 5
16488 # Compute "$ac_file"'s index in $config_headers.
16489 _am_arg="$ac_file"
16490 _am_stamp_count=1
16491 for _am_header in $config_headers :; do
16492 case $_am_header in
16493 $_am_arg | $_am_arg:* )
16494 break ;;
16496 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16497 esac
16498 done
16499 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16500 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16501 X"$_am_arg" : 'X\(//\)[^/]' \| \
16502 X"$_am_arg" : 'X\(//\)$' \| \
16503 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16504 $as_echo X"$_am_arg" |
16505 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16506 s//\1/
16509 /^X\(\/\/\)[^/].*/{
16510 s//\1/
16513 /^X\(\/\/\)$/{
16514 s//\1/
16517 /^X\(\/\).*/{
16518 s//\1/
16521 s/.*/./; q'`/stamp-h$_am_stamp_count
16524 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16525 $as_echo "$as_me: executing $ac_file commands" >&6;}
16527 esac
16530 case $ac_file$ac_mode in
16531 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16532 # Older Autoconf quotes --file arguments for eval, but not when files
16533 # are listed without --file. Let's play safe and only enable the eval
16534 # if we detect the quoting.
16535 case $CONFIG_FILES in
16536 *\'*) eval set x "$CONFIG_FILES" ;;
16537 *) set x $CONFIG_FILES ;;
16538 esac
16539 shift
16540 for mf
16542 # Strip MF so we end up with the name of the file.
16543 mf=`echo "$mf" | sed -e 's/:.*$//'`
16544 # Check whether this is an Automake generated Makefile or not.
16545 # We used to match only the files named 'Makefile.in', but
16546 # some people rename them; so instead we look at the file content.
16547 # Grep'ing the first line is not enough: some people post-process
16548 # each Makefile.in and add a new line on top of each file to say so.
16549 # Grep'ing the whole file is not good either: AIX grep has a line
16550 # limit of 2048, but all sed's we know have understand at least 4000.
16551 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16552 dirpart=`$as_dirname -- "$mf" ||
16553 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16554 X"$mf" : 'X\(//\)[^/]' \| \
16555 X"$mf" : 'X\(//\)$' \| \
16556 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16557 $as_echo X"$mf" |
16558 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16559 s//\1/
16562 /^X\(\/\/\)[^/].*/{
16563 s//\1/
16566 /^X\(\/\/\)$/{
16567 s//\1/
16570 /^X\(\/\).*/{
16571 s//\1/
16574 s/.*/./; q'`
16575 else
16576 continue
16578 # Extract the definition of DEPDIR, am__include, and am__quote
16579 # from the Makefile without running 'make'.
16580 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16581 test -z "$DEPDIR" && continue
16582 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16583 test -z "$am__include" && continue
16584 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16585 # Find all dependency output files, they are included files with
16586 # $(DEPDIR) in their names. We invoke sed twice because it is the
16587 # simplest approach to changing $(DEPDIR) to its actual value in the
16588 # expansion.
16589 for file in `sed -n "
16590 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16591 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
16592 # Make sure the directory exists.
16593 test -f "$dirpart/$file" && continue
16594 fdir=`$as_dirname -- "$file" ||
16595 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16596 X"$file" : 'X\(//\)[^/]' \| \
16597 X"$file" : 'X\(//\)$' \| \
16598 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16599 $as_echo X"$file" |
16600 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16601 s//\1/
16604 /^X\(\/\/\)[^/].*/{
16605 s//\1/
16608 /^X\(\/\/\)$/{
16609 s//\1/
16612 /^X\(\/\).*/{
16613 s//\1/
16616 s/.*/./; q'`
16617 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16618 # echo "creating $dirpart/$file"
16619 echo '# dummy' > "$dirpart/$file"
16620 done
16621 done
16624 "libtool":C)
16626 # See if we are running on zsh, and set the options which allow our
16627 # commands through without removal of \ escapes.
16628 if test -n "${ZSH_VERSION+set}" ; then
16629 setopt NO_GLOB_SUBST
16632 cfgfile="${ofile}T"
16633 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16634 $RM "$cfgfile"
16636 cat <<_LT_EOF >> "$cfgfile"
16637 #! $SHELL
16639 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16640 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16641 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16642 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16644 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16645 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
16646 # Written by Gordon Matzigkeit, 1996
16648 # This file is part of GNU Libtool.
16650 # GNU Libtool is free software; you can redistribute it and/or
16651 # modify it under the terms of the GNU General Public License as
16652 # published by the Free Software Foundation; either version 2 of
16653 # the License, or (at your option) any later version.
16655 # As a special exception to the GNU General Public License,
16656 # if you distribute this file as part of a program or library that
16657 # is built using GNU Libtool, you may include this file under the
16658 # same distribution terms that you use for the rest of that program.
16660 # GNU Libtool is distributed in the hope that it will be useful,
16661 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16662 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16663 # GNU General Public License for more details.
16665 # You should have received a copy of the GNU General Public License
16666 # along with GNU Libtool; see the file COPYING. If not, a copy
16667 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16668 # obtained by writing to the Free Software Foundation, Inc.,
16669 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16672 # The names of the tagged configurations supported by this script.
16673 available_tags=""
16675 # ### BEGIN LIBTOOL CONFIG
16677 # Which release of libtool.m4 was used?
16678 macro_version=$macro_version
16679 macro_revision=$macro_revision
16681 # Whether or not to build shared libraries.
16682 build_libtool_libs=$enable_shared
16684 # Whether or not to build static libraries.
16685 build_old_libs=$enable_static
16687 # What type of objects to build.
16688 pic_mode=$pic_mode
16690 # Whether or not to optimize for fast installation.
16691 fast_install=$enable_fast_install
16693 # Shell to use when invoking shell scripts.
16694 SHELL=$lt_SHELL
16696 # An echo program that protects backslashes.
16697 ECHO=$lt_ECHO
16699 # The host system.
16700 host_alias=$host_alias
16701 host=$host
16702 host_os=$host_os
16704 # The build system.
16705 build_alias=$build_alias
16706 build=$build
16707 build_os=$build_os
16709 # A sed program that does not truncate output.
16710 SED=$lt_SED
16712 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16713 Xsed="\$SED -e 1s/^X//"
16715 # A grep program that handles long lines.
16716 GREP=$lt_GREP
16718 # An ERE matcher.
16719 EGREP=$lt_EGREP
16721 # A literal string matcher.
16722 FGREP=$lt_FGREP
16724 # A BSD- or MS-compatible name lister.
16725 NM=$lt_NM
16727 # Whether we need soft or hard links.
16728 LN_S=$lt_LN_S
16730 # What is the maximum length of a command?
16731 max_cmd_len=$max_cmd_len
16733 # Object file suffix (normally "o").
16734 objext=$ac_objext
16736 # Executable file suffix (normally "").
16737 exeext=$exeext
16739 # whether the shell understands "unset".
16740 lt_unset=$lt_unset
16742 # turn spaces into newlines.
16743 SP2NL=$lt_lt_SP2NL
16745 # turn newlines into spaces.
16746 NL2SP=$lt_lt_NL2SP
16748 # An object symbol dumper.
16749 OBJDUMP=$lt_OBJDUMP
16751 # Method to check whether dependent libraries are shared objects.
16752 deplibs_check_method=$lt_deplibs_check_method
16754 # Command to use when deplibs_check_method == "file_magic".
16755 file_magic_cmd=$lt_file_magic_cmd
16757 # The archiver.
16758 AR=$lt_AR
16759 AR_FLAGS=$lt_AR_FLAGS
16761 # A symbol stripping program.
16762 STRIP=$lt_STRIP
16764 # Commands used to install an old-style archive.
16765 RANLIB=$lt_RANLIB
16766 old_postinstall_cmds=$lt_old_postinstall_cmds
16767 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16769 # Whether to use a lock for old archive extraction.
16770 lock_old_archive_extraction=$lock_old_archive_extraction
16772 # A C compiler.
16773 LTCC=$lt_CC
16775 # LTCC compiler flags.
16776 LTCFLAGS=$lt_CFLAGS
16778 # Take the output of nm and produce a listing of raw symbols and C names.
16779 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16781 # Transform the output of nm in a proper C declaration.
16782 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16784 # Transform the output of nm in a C name address pair.
16785 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16787 # Transform the output of nm in a C name address pair when lib prefix is needed.
16788 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16790 # The name of the directory that contains temporary libtool files.
16791 objdir=$objdir
16793 # Used to examine libraries when file_magic_cmd begins with "file".
16794 MAGIC_CMD=$MAGIC_CMD
16796 # Must we lock files when doing compilation?
16797 need_locks=$lt_need_locks
16799 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16800 DSYMUTIL=$lt_DSYMUTIL
16802 # Tool to change global to local symbols on Mac OS X.
16803 NMEDIT=$lt_NMEDIT
16805 # Tool to manipulate fat objects and archives on Mac OS X.
16806 LIPO=$lt_LIPO
16808 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16809 OTOOL=$lt_OTOOL
16811 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16812 OTOOL64=$lt_OTOOL64
16814 # Old archive suffix (normally "a").
16815 libext=$libext
16817 # Shared library suffix (normally ".so").
16818 shrext_cmds=$lt_shrext_cmds
16820 # The commands to extract the exported symbol list from a shared archive.
16821 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16823 # Variables whose values should be saved in libtool wrapper scripts and
16824 # restored at link time.
16825 variables_saved_for_relink=$lt_variables_saved_for_relink
16827 # Do we need the "lib" prefix for modules?
16828 need_lib_prefix=$need_lib_prefix
16830 # Do we need a version for libraries?
16831 need_version=$need_version
16833 # Library versioning type.
16834 version_type=$version_type
16836 # Shared library runtime path variable.
16837 runpath_var=$runpath_var
16839 # Shared library path variable.
16840 shlibpath_var=$shlibpath_var
16842 # Is shlibpath searched before the hard-coded library search path?
16843 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16845 # Format of library name prefix.
16846 libname_spec=$lt_libname_spec
16848 # List of archive names. First name is the real one, the rest are links.
16849 # The last name is the one that the linker finds with -lNAME
16850 library_names_spec=$lt_library_names_spec
16852 # The coded name of the library, if different from the real name.
16853 soname_spec=$lt_soname_spec
16855 # Permission mode override for installation of shared libraries.
16856 install_override_mode=$lt_install_override_mode
16858 # Command to use after installation of a shared archive.
16859 postinstall_cmds=$lt_postinstall_cmds
16861 # Command to use after uninstallation of a shared archive.
16862 postuninstall_cmds=$lt_postuninstall_cmds
16864 # Commands used to finish a libtool library installation in a directory.
16865 finish_cmds=$lt_finish_cmds
16867 # As "finish_cmds", except a single script fragment to be evaled but
16868 # not shown.
16869 finish_eval=$lt_finish_eval
16871 # Whether we should hardcode library paths into libraries.
16872 hardcode_into_libs=$hardcode_into_libs
16874 # Compile-time system search path for libraries.
16875 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16877 # Run-time system search path for libraries.
16878 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16880 # Whether dlopen is supported.
16881 dlopen_support=$enable_dlopen
16883 # Whether dlopen of programs is supported.
16884 dlopen_self=$enable_dlopen_self
16886 # Whether dlopen of statically linked programs is supported.
16887 dlopen_self_static=$enable_dlopen_self_static
16889 # Commands to strip libraries.
16890 old_striplib=$lt_old_striplib
16891 striplib=$lt_striplib
16894 # The linker used to build libraries.
16895 LD=$lt_LD
16897 # How to create reloadable object files.
16898 reload_flag=$lt_reload_flag
16899 reload_cmds=$lt_reload_cmds
16901 # Commands used to build an old-style archive.
16902 old_archive_cmds=$lt_old_archive_cmds
16904 # A language specific compiler.
16905 CC=$lt_compiler
16907 # Is the compiler the GNU compiler?
16908 with_gcc=$GCC
16910 # Compiler flag to turn off builtin functions.
16911 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16913 # How to pass a linker flag through the compiler.
16914 wl=$lt_lt_prog_compiler_wl
16916 # Additional compiler flags for building library objects.
16917 pic_flag=$lt_lt_prog_compiler_pic
16919 # Compiler flag to prevent dynamic linking.
16920 link_static_flag=$lt_lt_prog_compiler_static
16922 # Does compiler simultaneously support -c and -o options?
16923 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16925 # Whether or not to add -lc for building shared libraries.
16926 build_libtool_need_lc=$archive_cmds_need_lc
16928 # Whether or not to disallow shared libs when runtime libs are static.
16929 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16931 # Compiler flag to allow reflexive dlopens.
16932 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16934 # Compiler flag to generate shared objects directly from archives.
16935 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16937 # Whether the compiler copes with passing no objects directly.
16938 compiler_needs_object=$lt_compiler_needs_object
16940 # Create an old-style archive from a shared archive.
16941 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16943 # Create a temporary old-style archive to link instead of a shared archive.
16944 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16946 # Commands used to build a shared archive.
16947 archive_cmds=$lt_archive_cmds
16948 archive_expsym_cmds=$lt_archive_expsym_cmds
16950 # Commands used to build a loadable module if different from building
16951 # a shared archive.
16952 module_cmds=$lt_module_cmds
16953 module_expsym_cmds=$lt_module_expsym_cmds
16955 # Whether we are building with GNU ld or not.
16956 with_gnu_ld=$lt_with_gnu_ld
16958 # Flag that allows shared libraries with undefined symbols to be built.
16959 allow_undefined_flag=$lt_allow_undefined_flag
16961 # Flag that enforces no undefined symbols.
16962 no_undefined_flag=$lt_no_undefined_flag
16964 # Flag to hardcode \$libdir into a binary during linking.
16965 # This must work even if \$libdir does not exist
16966 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16968 # If ld is used when linking, flag to hardcode \$libdir into a binary
16969 # during linking. This must work even if \$libdir does not exist.
16970 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16972 # Whether we need a single "-rpath" flag with a separated argument.
16973 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16975 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16976 # DIR into the resulting binary.
16977 hardcode_direct=$hardcode_direct
16979 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16980 # DIR into the resulting binary and the resulting library dependency is
16981 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16982 # library is relocated.
16983 hardcode_direct_absolute=$hardcode_direct_absolute
16985 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16986 # into the resulting binary.
16987 hardcode_minus_L=$hardcode_minus_L
16989 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16990 # into the resulting binary.
16991 hardcode_shlibpath_var=$hardcode_shlibpath_var
16993 # Set to "yes" if building a shared library automatically hardcodes DIR
16994 # into the library and all subsequent libraries and executables linked
16995 # against it.
16996 hardcode_automatic=$hardcode_automatic
16998 # Set to yes if linker adds runtime paths of dependent libraries
16999 # to runtime path list.
17000 inherit_rpath=$inherit_rpath
17002 # Whether libtool must link a program against all its dependency libraries.
17003 link_all_deplibs=$link_all_deplibs
17005 # Fix the shell variable \$srcfile for the compiler.
17006 fix_srcfile_path=$lt_fix_srcfile_path
17008 # Set to "yes" if exported symbols are required.
17009 always_export_symbols=$always_export_symbols
17011 # The commands to list exported symbols.
17012 export_symbols_cmds=$lt_export_symbols_cmds
17014 # Symbols that should not be listed in the preloaded symbols.
17015 exclude_expsyms=$lt_exclude_expsyms
17017 # Symbols that must always be exported.
17018 include_expsyms=$lt_include_expsyms
17020 # Commands necessary for linking programs (against libraries) with templates.
17021 prelink_cmds=$lt_prelink_cmds
17023 # Specify filename containing input files.
17024 file_list_spec=$lt_file_list_spec
17026 # How to hardcode a shared library path into an executable.
17027 hardcode_action=$hardcode_action
17029 # ### END LIBTOOL CONFIG
17031 _LT_EOF
17033 case $host_os in
17034 aix3*)
17035 cat <<\_LT_EOF >> "$cfgfile"
17036 # AIX sometimes has problems with the GCC collect2 program. For some
17037 # reason, if we set the COLLECT_NAMES environment variable, the problems
17038 # vanish in a puff of smoke.
17039 if test "X${COLLECT_NAMES+set}" != Xset; then
17040 COLLECT_NAMES=
17041 export COLLECT_NAMES
17043 _LT_EOF
17045 esac
17048 ltmain="$ac_aux_dir/ltmain.sh"
17051 # We use sed instead of cat because bash on DJGPP gets confused if
17052 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17053 # text mode, it properly converts lines to CR/LF. This bash problem
17054 # is reportedly fixed, but why not run on old versions too?
17055 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17056 || (rm -f "$cfgfile"; exit 1)
17058 case $xsi_shell in
17059 yes)
17060 cat << \_LT_EOF >> "$cfgfile"
17062 # func_dirname file append nondir_replacement
17063 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17064 # otherwise set result to NONDIR_REPLACEMENT.
17065 func_dirname ()
17067 case ${1} in
17068 */*) func_dirname_result="${1%/*}${2}" ;;
17069 * ) func_dirname_result="${3}" ;;
17070 esac
17073 # func_basename file
17074 func_basename ()
17076 func_basename_result="${1##*/}"
17079 # func_dirname_and_basename file append nondir_replacement
17080 # perform func_basename and func_dirname in a single function
17081 # call:
17082 # dirname: Compute the dirname of FILE. If nonempty,
17083 # add APPEND to the result, otherwise set result
17084 # to NONDIR_REPLACEMENT.
17085 # value returned in "$func_dirname_result"
17086 # basename: Compute filename of FILE.
17087 # value retuned in "$func_basename_result"
17088 # Implementation must be kept synchronized with func_dirname
17089 # and func_basename. For efficiency, we do not delegate to
17090 # those functions but instead duplicate the functionality here.
17091 func_dirname_and_basename ()
17093 case ${1} in
17094 */*) func_dirname_result="${1%/*}${2}" ;;
17095 * ) func_dirname_result="${3}" ;;
17096 esac
17097 func_basename_result="${1##*/}"
17100 # func_stripname prefix suffix name
17101 # strip PREFIX and SUFFIX off of NAME.
17102 # PREFIX and SUFFIX must not contain globbing or regex special
17103 # characters, hashes, percent signs, but SUFFIX may contain a leading
17104 # dot (in which case that matches only a dot).
17105 func_stripname ()
17107 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17108 # positional parameters, so assign one to ordinary parameter first.
17109 func_stripname_result=${3}
17110 func_stripname_result=${func_stripname_result#"${1}"}
17111 func_stripname_result=${func_stripname_result%"${2}"}
17114 # func_opt_split
17115 func_opt_split ()
17117 func_opt_split_opt=${1%%=*}
17118 func_opt_split_arg=${1#*=}
17121 # func_lo2o object
17122 func_lo2o ()
17124 case ${1} in
17125 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17126 *) func_lo2o_result=${1} ;;
17127 esac
17130 # func_xform libobj-or-source
17131 func_xform ()
17133 func_xform_result=${1%.*}.lo
17136 # func_arith arithmetic-term...
17137 func_arith ()
17139 func_arith_result=$(( $* ))
17142 # func_len string
17143 # STRING may not start with a hyphen.
17144 func_len ()
17146 func_len_result=${#1}
17149 _LT_EOF
17151 *) # Bourne compatible functions.
17152 cat << \_LT_EOF >> "$cfgfile"
17154 # func_dirname file append nondir_replacement
17155 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17156 # otherwise set result to NONDIR_REPLACEMENT.
17157 func_dirname ()
17159 # Extract subdirectory from the argument.
17160 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
17161 if test "X$func_dirname_result" = "X${1}"; then
17162 func_dirname_result="${3}"
17163 else
17164 func_dirname_result="$func_dirname_result${2}"
17168 # func_basename file
17169 func_basename ()
17171 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
17175 # func_stripname prefix suffix name
17176 # strip PREFIX and SUFFIX off of NAME.
17177 # PREFIX and SUFFIX must not contain globbing or regex special
17178 # characters, hashes, percent signs, but SUFFIX may contain a leading
17179 # dot (in which case that matches only a dot).
17180 # func_strip_suffix prefix name
17181 func_stripname ()
17183 case ${2} in
17184 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
17185 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
17186 esac
17189 # sed scripts:
17190 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17191 my_sed_long_arg='1s/^-[^=]*=//'
17193 # func_opt_split
17194 func_opt_split ()
17196 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
17197 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
17200 # func_lo2o object
17201 func_lo2o ()
17203 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
17206 # func_xform libobj-or-source
17207 func_xform ()
17209 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
17212 # func_arith arithmetic-term...
17213 func_arith ()
17215 func_arith_result=`expr "$@"`
17218 # func_len string
17219 # STRING may not start with a hyphen.
17220 func_len ()
17222 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17225 _LT_EOF
17226 esac
17228 case $lt_shell_append in
17229 yes)
17230 cat << \_LT_EOF >> "$cfgfile"
17232 # func_append var value
17233 # Append VALUE to the end of shell variable VAR.
17234 func_append ()
17236 eval "$1+=\$2"
17238 _LT_EOF
17241 cat << \_LT_EOF >> "$cfgfile"
17243 # func_append var value
17244 # Append VALUE to the end of shell variable VAR.
17245 func_append ()
17247 eval "$1=\$$1\$2"
17250 _LT_EOF
17252 esac
17255 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17256 || (rm -f "$cfgfile"; exit 1)
17258 mv -f "$cfgfile" "$ofile" ||
17259 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17260 chmod +x "$ofile"
17263 "default-1":C)
17264 for ac_file in $CONFIG_FILES; do
17265 # Support "outfile[:infile[:infile...]]"
17266 case "$ac_file" in
17267 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
17268 esac
17269 # PO directories have a Makefile.in generated from Makefile.in.in.
17270 case "$ac_file" in */Makefile.in)
17271 # Adjust a relative srcdir.
17272 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
17273 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
17274 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
17275 # In autoconf-2.13 it is called $ac_given_srcdir.
17276 # In autoconf-2.50 it is called $srcdir.
17277 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
17278 case "$ac_given_srcdir" in
17279 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
17280 /*) top_srcdir="$ac_given_srcdir" ;;
17281 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
17282 esac
17283 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
17284 rm -f "$ac_dir/POTFILES"
17285 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
17286 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
17287 POMAKEFILEDEPS="POTFILES.in"
17288 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
17289 # on $ac_dir but don't depend on user-specified configuration
17290 # parameters.
17291 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
17292 # The LINGUAS file contains the set of available languages.
17293 if test -n "$OBSOLETE_ALL_LINGUAS"; then
17294 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.ac is obsolete" || echo "setting ALL_LINGUAS in configure.ac is obsolete"
17296 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
17297 # Hide the ALL_LINGUAS assigment from automake.
17298 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
17299 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
17300 else
17301 # The set of available languages was given in configure.ac.
17302 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
17304 case "$ac_given_srcdir" in
17305 .) srcdirpre= ;;
17306 *) srcdirpre='$(srcdir)/' ;;
17307 esac
17308 POFILES=
17309 GMOFILES=
17310 UPDATEPOFILES=
17311 DUMMYPOFILES=
17312 for lang in $ALL_LINGUAS; do
17313 POFILES="$POFILES $srcdirpre$lang.po"
17314 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
17315 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
17316 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
17317 done
17318 # CATALOGS depends on both $ac_dir and the user's LINGUAS
17319 # environment variable.
17320 INST_LINGUAS=
17321 if test -n "$ALL_LINGUAS"; then
17322 for presentlang in $ALL_LINGUAS; do
17323 useit=no
17324 if test "%UNSET%" != "$LINGUAS"; then
17325 desiredlanguages="$LINGUAS"
17326 else
17327 desiredlanguages="$ALL_LINGUAS"
17329 for desiredlang in $desiredlanguages; do
17330 # Use the presentlang catalog if desiredlang is
17331 # a. equal to presentlang, or
17332 # b. a variant of presentlang (because in this case,
17333 # presentlang can be used as a fallback for messages
17334 # which are not translated in the desiredlang catalog).
17335 case "$desiredlang" in
17336 "$presentlang"*) useit=yes;;
17337 esac
17338 done
17339 if test $useit = yes; then
17340 INST_LINGUAS="$INST_LINGUAS $presentlang"
17342 done
17344 CATALOGS=
17345 if test -n "$INST_LINGUAS"; then
17346 for lang in $INST_LINGUAS; do
17347 CATALOGS="$CATALOGS $lang.gmo"
17348 done
17350 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
17351 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"
17352 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
17353 if test -f "$f"; then
17354 case "$f" in
17355 *.orig | *.bak | *~) ;;
17356 *) cat "$f" >> "$ac_dir/Makefile" ;;
17357 esac
17359 done
17362 esac
17363 done ;;
17365 esac
17366 done # for ac_tag
17369 as_fn_exit 0
17370 _ACEOF
17371 ac_clean_files=$ac_clean_files_save
17373 test $ac_write_fail = 0 ||
17374 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17377 # configure is writing to config.log, and then calls config.status.
17378 # config.status does its own redirection, appending to config.log.
17379 # Unfortunately, on DOS this fails, as config.log is still kept open
17380 # by configure, so config.status won't be able to write to it; its
17381 # output is simply discarded. So we exec the FD to /dev/null,
17382 # effectively closing config.log, so it can be properly (re)opened and
17383 # appended to by config.status. When coming back to configure, we
17384 # need to make the FD available again.
17385 if test "$no_create" != yes; then
17386 ac_cs_success=:
17387 ac_config_status_args=
17388 test "$silent" = yes &&
17389 ac_config_status_args="$ac_config_status_args --quiet"
17390 exec 5>/dev/null
17391 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17392 exec 5>>config.log
17393 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17394 # would make configure fail if this is the last instruction.
17395 $ac_cs_success || as_fn_exit 1
17397 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17398 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17399 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17404 touch config.status.tmp
17405 if touch --reference=config.status config.status.tmp > /dev/null 2>&1; then
17406 sed '/as_fn_exit 0/i \
17407 sed -e \"s/^\t\\\(\\\$(AM_V_CCLD)\\\)/\t+ \\\1/\" Makefile > Makefile.tmp \
17408 touch --reference=Makefile Makefile.tmp \
17409 mv Makefile.tmp Makefile \
17410 ' config.status > config.status.tmp
17411 touch --reference=config.status config.status.tmp
17412 mv config.status.tmp config.status
17413 chmod +x config.status
17414 sed -e "s/^\t\(\$(AM_V_CCLD)\)/\t+ \1/" Makefile > Makefile.tmp
17415 touch --reference=Makefile Makefile.tmp
17416 mv Makefile.tmp Makefile
17417 else
17418 rm -f config.status.tmp