]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - bfd/configure
bfd: use https for bugzilla
[thirdparty/binutils-gdb.git] / bfd / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for bfd 2.36.50.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
88
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
101
102 ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112 fi
113
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174 esac
175 fi
176 "
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
182
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190 else
191 exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1
200
201 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 PATH=/empty FPATH=/empty; export PATH FPATH
206 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
207 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
208 if (eval "$as_required") 2>/dev/null; then :
209 as_have_required=yes
210 else
211 as_have_required=no
212 fi
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215 else
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217 as_found=false
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219 do
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
222 as_found=:
223 case $as_dir in #(
224 /*)
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 break 2
233 fi
234 fi
235 done;;
236 esac
237 as_found=false
238 done
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
242 fi; }
243 IFS=$as_save_IFS
244
245
246 if test "x$CONFIG_SHELL" != x; then :
247 export CONFIG_SHELL
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
252 BASH_ENV=/dev/null
253 ENV=/dev/null
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255 case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260 esac
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265 exit 255
266 fi
267
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274 else
275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
279 fi
280 exit 1
281 fi
282 fi
283 fi
284 SHELL=${CONFIG_SHELL-/bin/sh}
285 export SHELL
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
289
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
293 # as_fn_unset VAR
294 # ---------------
295 # Portably unset VAR.
296 as_fn_unset ()
297 {
298 { eval $1=; unset $1;}
299 }
300 as_unset=as_fn_unset
301
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
305 as_fn_set_status ()
306 {
307 return $1
308 } # as_fn_set_status
309
310 # as_fn_exit STATUS
311 # -----------------
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313 as_fn_exit ()
314 {
315 set +e
316 as_fn_set_status $1
317 exit $1
318 } # as_fn_exit
319
320 # as_fn_mkdir_p
321 # -------------
322 # Create "$as_dir" as a directory, including parents if necessary.
323 as_fn_mkdir_p ()
324 {
325
326 case $as_dir in #(
327 -*) as_dir=./$as_dir;;
328 esac
329 test -d "$as_dir" || eval $as_mkdir_p || {
330 as_dirs=
331 while :; do
332 case $as_dir in #(
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334 *) as_qdir=$as_dir;;
335 esac
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\/\)[^/].*/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)$/{
352 s//\1/
353 q
354 }
355 /^X\(\/\).*/{
356 s//\1/
357 q
358 }
359 s/.*/./; q'`
360 test -d "$as_dir" && break
361 done
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364
365
366 } # as_fn_mkdir_p
367
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
372 {
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
380 # implementations.
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
383 {
384 eval $1+=\$2
385 }'
386 else
387 as_fn_append ()
388 {
389 eval $1=\$$1\$2
390 }
391 fi # as_fn_append
392
393 # as_fn_arith ARG...
394 # ------------------
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399 eval 'as_fn_arith ()
400 {
401 as_val=$(( $* ))
402 }'
403 else
404 as_fn_arith ()
405 {
406 as_val=`expr "$@" || test $? -eq 1`
407 }
408 fi # as_fn_arith
409
410
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
416 as_fn_error ()
417 {
418 as_status=$1; test $as_status -eq 0 && as_status=1
419 if test "$4"; then
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
422 fi
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit $as_status
425 } # as_fn_error
426
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 as_expr=expr
430 else
431 as_expr=false
432 fi
433
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 as_basename=basename
436 else
437 as_basename=false
438 fi
439
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_dirname=dirname
442 else
443 as_dirname=false
444 fi
445
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450 $as_echo X/"$0" |
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
452 s//\1/
453 q
454 }
455 /^X\/\(\/\/\)$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\).*/{
460 s//\1/
461 q
462 }
463 s/.*/./; q'`
464
465 # Avoid depending upon Character Ranges.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_cr_alnum=$as_cr_Letters$as_cr_digits
471
472
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
478 sed -n '
479 p
480 /[$]LINENO/=
481 ' <$as_myself |
482 sed '
483 s/[$]LINENO.*/&-/
484 t lineno
485 b
486 :lineno
487 N
488 :loop
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490 t loop
491 s/-\n.*//
492 ' >$as_me.lineno &&
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
495
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
503 . "./$as_me.lineno"
504 # Exit status is that of the last command.
505 exit
506 }
507
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
510 -n*)
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
513 xy) ECHO_C='\c';;
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
515 ECHO_T=' ';;
516 esac;;
517 *)
518 ECHO_N='-n';;
519 esac
520
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
524 else
525 rm -f conf$$.dir
526 mkdir conf$$.dir 2>/dev/null
527 fi
528 if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s='ln -s'
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536 as_ln_s='cp -pR'
537 elif ln conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s=ln
539 else
540 as_ln_s='cp -pR'
541 fi
542 else
543 as_ln_s='cp -pR'
544 fi
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
547
548 if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
550 else
551 test -d ./-p && rmdir ./-p
552 as_mkdir_p=false
553 fi
554
555 as_test_x='test -x'
556 as_executable_p=as_fn_executable_p
557
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
564 SHELL=${CONFIG_SHELL-/bin/sh}
565
566
567 test -n "$DJDIR" || exec 7<&0 </dev/null
568 exec 6>&1
569
570 # Name of the host.
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575 #
576 # Initializations.
577 #
578 ac_default_prefix=/usr/local
579 ac_clean_files=
580 ac_config_libobj_dir=.
581 LIBOBJS=
582 cross_compiling=no
583 subdirs=
584 MFLAGS=
585 MAKEFLAGS=
586
587 # Identity of this package.
588 PACKAGE_NAME='bfd'
589 PACKAGE_TARNAME='bfd'
590 PACKAGE_VERSION='2.36.50'
591 PACKAGE_STRING='bfd 2.36.50'
592 PACKAGE_BUGREPORT=''
593 PACKAGE_URL=''
594
595 ac_unique_file="libbfd.c"
596 # Factoring default headers for most tests.
597 ac_includes_default="\
598 #include <stdio.h>
599 #ifdef HAVE_SYS_TYPES_H
600 # include <sys/types.h>
601 #endif
602 #ifdef HAVE_SYS_STAT_H
603 # include <sys/stat.h>
604 #endif
605 #ifdef STDC_HEADERS
606 # include <stdlib.h>
607 # include <stddef.h>
608 #else
609 # ifdef HAVE_STDLIB_H
610 # include <stdlib.h>
611 # endif
612 #endif
613 #ifdef HAVE_STRING_H
614 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
615 # include <memory.h>
616 # endif
617 # include <string.h>
618 #endif
619 #ifdef HAVE_STRINGS_H
620 # include <strings.h>
621 #endif
622 #ifdef HAVE_INTTYPES_H
623 # include <inttypes.h>
624 #endif
625 #ifdef HAVE_STDINT_H
626 # include <stdint.h>
627 #endif
628 #ifdef HAVE_UNISTD_H
629 # include <unistd.h>
630 #endif"
631
632 ac_header_list=
633 ac_subst_vars='am__EXEEXT_FALSE
634 am__EXEEXT_TRUE
635 LTLIBOBJS
636 LIBOBJS
637 bfd_ufile_ptr
638 bfd_file_ptr
639 lt_cv_dlopen_libs
640 supports_plugins
641 COREFLAG
642 COREFILE
643 havevecs
644 tdefaults
645 bfd_default_target_size
646 bfd_machines
647 bfd_backends
648 all_backends
649 bfd64_libs
650 wordsize
651 TDEFINES
652 SHARED_LIBADD
653 SHARED_LDFLAGS
654 LIBM
655 zlibinc
656 zlibdir
657 EXEEXT_FOR_BUILD
658 CC_FOR_BUILD
659 BFD_HOSTPTR_T
660 BFD_HOST_U_64_BIT
661 BFD_HOST_64_BIT
662 BFD_HOST_64_BIT_DEFINED
663 BFD_HOST_64BIT_LONG_LONG
664 BFD_HOST_64BIT_LONG
665 HDEFINES
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 bfdincludedir
682 bfdlibdir
683 target_noncanonical
684 host_noncanonical
685 INSTALL_LIBBFD_FALSE
686 INSTALL_LIBBFD_TRUE
687 GENINSRC_NEVER_FALSE
688 GENINSRC_NEVER_TRUE
689 MAINT
690 MAINTAINER_MODE_FALSE
691 MAINTAINER_MODE_TRUE
692 WARN_WRITE_STRINGS
693 NO_WERROR
694 WARN_CFLAGS_FOR_BUILD
695 WARN_CFLAGS
696 REPORT_BUGS_TEXI
697 REPORT_BUGS_TO
698 PKGVERSION
699 DEBUGDIR
700 PLUGINS_FALSE
701 PLUGINS_TRUE
702 LARGEFILE_CPPFLAGS
703 OTOOL64
704 OTOOL
705 LIPO
706 NMEDIT
707 DSYMUTIL
708 OBJDUMP
709 LN_S
710 NM
711 ac_ct_DUMPBIN
712 DUMPBIN
713 LD
714 FGREP
715 SED
716 LIBTOOL
717 EGREP
718 GREP
719 CPP
720 am__fastdepCC_FALSE
721 am__fastdepCC_TRUE
722 CCDEPMODE
723 am__nodep
724 AMDEPBACKSLASH
725 AMDEP_FALSE
726 AMDEP_TRUE
727 am__quote
728 am__include
729 DEPDIR
730 OBJEXT
731 EXEEXT
732 ac_ct_CC
733 CPPFLAGS
734 LDFLAGS
735 CFLAGS
736 CC
737 RANLIB
738 AR
739 AM_BACKSLASH
740 AM_DEFAULT_VERBOSITY
741 AM_DEFAULT_V
742 AM_V
743 am__untar
744 am__tar
745 AMTAR
746 am__leading_dot
747 SET_MAKE
748 AWK
749 mkdir_p
750 MKDIR_P
751 INSTALL_STRIP_PROGRAM
752 STRIP
753 install_sh
754 MAKEINFO
755 AUTOHEADER
756 AUTOMAKE
757 AUTOCONF
758 ACLOCAL
759 VERSION
760 PACKAGE
761 CYGPATH_W
762 am__isrc
763 INSTALL_DATA
764 INSTALL_SCRIPT
765 INSTALL_PROGRAM
766 target_os
767 target_vendor
768 target_cpu
769 target
770 host_os
771 host_vendor
772 host_cpu
773 host
774 build_os
775 build_vendor
776 build_cpu
777 build
778 target_alias
779 host_alias
780 build_alias
781 LIBS
782 ECHO_T
783 ECHO_N
784 ECHO_C
785 DEFS
786 mandir
787 localedir
788 libdir
789 psdir
790 pdfdir
791 dvidir
792 htmldir
793 infodir
794 docdir
795 oldincludedir
796 includedir
797 localstatedir
798 sharedstatedir
799 sysconfdir
800 datadir
801 datarootdir
802 libexecdir
803 sbindir
804 bindir
805 program_transform_name
806 prefix
807 exec_prefix
808 PACKAGE_URL
809 PACKAGE_BUGREPORT
810 PACKAGE_STRING
811 PACKAGE_VERSION
812 PACKAGE_TARNAME
813 PACKAGE_NAME
814 PATH_SEPARATOR
815 SHELL'
816 ac_subst_files=''
817 ac_user_opts='
818 enable_option_checking
819 enable_silent_rules
820 enable_shared
821 enable_dependency_tracking
822 enable_static
823 with_pic
824 enable_fast_install
825 with_gnu_ld
826 enable_libtool_lock
827 enable_plugins
828 enable_largefile
829 enable_64_bit_bfd
830 enable_targets
831 enable_64_bit_archive
832 with_mmap
833 enable_secureplt
834 enable_separate_code
835 enable_leading_mingw64_underscores
836 with_separate_debug_dir
837 with_pkgversion
838 with_bugurl
839 enable_werror
840 enable_build_warnings
841 enable_maintainer_mode
842 enable_install_libbfd
843 enable_nls
844 with_system_zlib
845 '
846 ac_precious_vars='build_alias
847 host_alias
848 target_alias
849 CC
850 CFLAGS
851 LDFLAGS
852 LIBS
853 CPPFLAGS
854 CPP'
855
856
857 # Initialize some variables set by options.
858 ac_init_help=
859 ac_init_version=false
860 ac_unrecognized_opts=
861 ac_unrecognized_sep=
862 # The variables have the same names as the options, with
863 # dashes changed to underlines.
864 cache_file=/dev/null
865 exec_prefix=NONE
866 no_create=
867 no_recursion=
868 prefix=NONE
869 program_prefix=NONE
870 program_suffix=NONE
871 program_transform_name=s,x,x,
872 silent=
873 site=
874 srcdir=
875 verbose=
876 x_includes=NONE
877 x_libraries=NONE
878
879 # Installation directory options.
880 # These are left unexpanded so users can "make install exec_prefix=/foo"
881 # and all the variables that are supposed to be based on exec_prefix
882 # by default will actually change.
883 # Use braces instead of parens because sh, perl, etc. also accept them.
884 # (The list follows the same order as the GNU Coding Standards.)
885 bindir='${exec_prefix}/bin'
886 sbindir='${exec_prefix}/sbin'
887 libexecdir='${exec_prefix}/libexec'
888 datarootdir='${prefix}/share'
889 datadir='${datarootdir}'
890 sysconfdir='${prefix}/etc'
891 sharedstatedir='${prefix}/com'
892 localstatedir='${prefix}/var'
893 includedir='${prefix}/include'
894 oldincludedir='/usr/include'
895 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
896 infodir='${datarootdir}/info'
897 htmldir='${docdir}'
898 dvidir='${docdir}'
899 pdfdir='${docdir}'
900 psdir='${docdir}'
901 libdir='${exec_prefix}/lib'
902 localedir='${datarootdir}/locale'
903 mandir='${datarootdir}/man'
904
905 ac_prev=
906 ac_dashdash=
907 for ac_option
908 do
909 # If the previous option needs an argument, assign it.
910 if test -n "$ac_prev"; then
911 eval $ac_prev=\$ac_option
912 ac_prev=
913 continue
914 fi
915
916 case $ac_option in
917 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
918 *=) ac_optarg= ;;
919 *) ac_optarg=yes ;;
920 esac
921
922 # Accept the important Cygnus configure options, so we can diagnose typos.
923
924 case $ac_dashdash$ac_option in
925 --)
926 ac_dashdash=yes ;;
927
928 -bindir | --bindir | --bindi | --bind | --bin | --bi)
929 ac_prev=bindir ;;
930 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
931 bindir=$ac_optarg ;;
932
933 -build | --build | --buil | --bui | --bu)
934 ac_prev=build_alias ;;
935 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
936 build_alias=$ac_optarg ;;
937
938 -cache-file | --cache-file | --cache-fil | --cache-fi \
939 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
940 ac_prev=cache_file ;;
941 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
942 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
943 cache_file=$ac_optarg ;;
944
945 --config-cache | -C)
946 cache_file=config.cache ;;
947
948 -datadir | --datadir | --datadi | --datad)
949 ac_prev=datadir ;;
950 -datadir=* | --datadir=* | --datadi=* | --datad=*)
951 datadir=$ac_optarg ;;
952
953 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
954 | --dataroo | --dataro | --datar)
955 ac_prev=datarootdir ;;
956 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
957 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
958 datarootdir=$ac_optarg ;;
959
960 -disable-* | --disable-*)
961 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
962 # Reject names that are not valid shell variable names.
963 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
964 as_fn_error $? "invalid feature name: $ac_useropt"
965 ac_useropt_orig=$ac_useropt
966 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
967 case $ac_user_opts in
968 *"
969 "enable_$ac_useropt"
970 "*) ;;
971 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
972 ac_unrecognized_sep=', ';;
973 esac
974 eval enable_$ac_useropt=no ;;
975
976 -docdir | --docdir | --docdi | --doc | --do)
977 ac_prev=docdir ;;
978 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
979 docdir=$ac_optarg ;;
980
981 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
982 ac_prev=dvidir ;;
983 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
984 dvidir=$ac_optarg ;;
985
986 -enable-* | --enable-*)
987 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
988 # Reject names that are not valid shell variable names.
989 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
990 as_fn_error $? "invalid feature name: $ac_useropt"
991 ac_useropt_orig=$ac_useropt
992 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
993 case $ac_user_opts in
994 *"
995 "enable_$ac_useropt"
996 "*) ;;
997 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
998 ac_unrecognized_sep=', ';;
999 esac
1000 eval enable_$ac_useropt=\$ac_optarg ;;
1001
1002 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1003 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1004 | --exec | --exe | --ex)
1005 ac_prev=exec_prefix ;;
1006 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1007 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1008 | --exec=* | --exe=* | --ex=*)
1009 exec_prefix=$ac_optarg ;;
1010
1011 -gas | --gas | --ga | --g)
1012 # Obsolete; use --with-gas.
1013 with_gas=yes ;;
1014
1015 -help | --help | --hel | --he | -h)
1016 ac_init_help=long ;;
1017 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1018 ac_init_help=recursive ;;
1019 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1020 ac_init_help=short ;;
1021
1022 -host | --host | --hos | --ho)
1023 ac_prev=host_alias ;;
1024 -host=* | --host=* | --hos=* | --ho=*)
1025 host_alias=$ac_optarg ;;
1026
1027 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1028 ac_prev=htmldir ;;
1029 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1030 | --ht=*)
1031 htmldir=$ac_optarg ;;
1032
1033 -includedir | --includedir | --includedi | --included | --include \
1034 | --includ | --inclu | --incl | --inc)
1035 ac_prev=includedir ;;
1036 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1037 | --includ=* | --inclu=* | --incl=* | --inc=*)
1038 includedir=$ac_optarg ;;
1039
1040 -infodir | --infodir | --infodi | --infod | --info | --inf)
1041 ac_prev=infodir ;;
1042 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1043 infodir=$ac_optarg ;;
1044
1045 -libdir | --libdir | --libdi | --libd)
1046 ac_prev=libdir ;;
1047 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1048 libdir=$ac_optarg ;;
1049
1050 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1051 | --libexe | --libex | --libe)
1052 ac_prev=libexecdir ;;
1053 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1054 | --libexe=* | --libex=* | --libe=*)
1055 libexecdir=$ac_optarg ;;
1056
1057 -localedir | --localedir | --localedi | --localed | --locale)
1058 ac_prev=localedir ;;
1059 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1060 localedir=$ac_optarg ;;
1061
1062 -localstatedir | --localstatedir | --localstatedi | --localstated \
1063 | --localstate | --localstat | --localsta | --localst | --locals)
1064 ac_prev=localstatedir ;;
1065 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1066 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1067 localstatedir=$ac_optarg ;;
1068
1069 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1070 ac_prev=mandir ;;
1071 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1072 mandir=$ac_optarg ;;
1073
1074 -nfp | --nfp | --nf)
1075 # Obsolete; use --without-fp.
1076 with_fp=no ;;
1077
1078 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1079 | --no-cr | --no-c | -n)
1080 no_create=yes ;;
1081
1082 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1083 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1084 no_recursion=yes ;;
1085
1086 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1087 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1088 | --oldin | --oldi | --old | --ol | --o)
1089 ac_prev=oldincludedir ;;
1090 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1091 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1092 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1093 oldincludedir=$ac_optarg ;;
1094
1095 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1096 ac_prev=prefix ;;
1097 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1098 prefix=$ac_optarg ;;
1099
1100 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1101 | --program-pre | --program-pr | --program-p)
1102 ac_prev=program_prefix ;;
1103 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1104 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1105 program_prefix=$ac_optarg ;;
1106
1107 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1108 | --program-suf | --program-su | --program-s)
1109 ac_prev=program_suffix ;;
1110 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1111 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1112 program_suffix=$ac_optarg ;;
1113
1114 -program-transform-name | --program-transform-name \
1115 | --program-transform-nam | --program-transform-na \
1116 | --program-transform-n | --program-transform- \
1117 | --program-transform | --program-transfor \
1118 | --program-transfo | --program-transf \
1119 | --program-trans | --program-tran \
1120 | --progr-tra | --program-tr | --program-t)
1121 ac_prev=program_transform_name ;;
1122 -program-transform-name=* | --program-transform-name=* \
1123 | --program-transform-nam=* | --program-transform-na=* \
1124 | --program-transform-n=* | --program-transform-=* \
1125 | --program-transform=* | --program-transfor=* \
1126 | --program-transfo=* | --program-transf=* \
1127 | --program-trans=* | --program-tran=* \
1128 | --progr-tra=* | --program-tr=* | --program-t=*)
1129 program_transform_name=$ac_optarg ;;
1130
1131 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1132 ac_prev=pdfdir ;;
1133 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1134 pdfdir=$ac_optarg ;;
1135
1136 -psdir | --psdir | --psdi | --psd | --ps)
1137 ac_prev=psdir ;;
1138 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1139 psdir=$ac_optarg ;;
1140
1141 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1142 | -silent | --silent | --silen | --sile | --sil)
1143 silent=yes ;;
1144
1145 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1146 ac_prev=sbindir ;;
1147 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1148 | --sbi=* | --sb=*)
1149 sbindir=$ac_optarg ;;
1150
1151 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1152 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1153 | --sharedst | --shareds | --shared | --share | --shar \
1154 | --sha | --sh)
1155 ac_prev=sharedstatedir ;;
1156 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1157 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1158 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1159 | --sha=* | --sh=*)
1160 sharedstatedir=$ac_optarg ;;
1161
1162 -site | --site | --sit)
1163 ac_prev=site ;;
1164 -site=* | --site=* | --sit=*)
1165 site=$ac_optarg ;;
1166
1167 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1168 ac_prev=srcdir ;;
1169 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1170 srcdir=$ac_optarg ;;
1171
1172 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1173 | --syscon | --sysco | --sysc | --sys | --sy)
1174 ac_prev=sysconfdir ;;
1175 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1176 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1177 sysconfdir=$ac_optarg ;;
1178
1179 -target | --target | --targe | --targ | --tar | --ta | --t)
1180 ac_prev=target_alias ;;
1181 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1182 target_alias=$ac_optarg ;;
1183
1184 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1185 verbose=yes ;;
1186
1187 -version | --version | --versio | --versi | --vers | -V)
1188 ac_init_version=: ;;
1189
1190 -with-* | --with-*)
1191 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1192 # Reject names that are not valid shell variable names.
1193 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1194 as_fn_error $? "invalid package name: $ac_useropt"
1195 ac_useropt_orig=$ac_useropt
1196 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1197 case $ac_user_opts in
1198 *"
1199 "with_$ac_useropt"
1200 "*) ;;
1201 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1202 ac_unrecognized_sep=', ';;
1203 esac
1204 eval with_$ac_useropt=\$ac_optarg ;;
1205
1206 -without-* | --without-*)
1207 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1208 # Reject names that are not valid shell variable names.
1209 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1210 as_fn_error $? "invalid package name: $ac_useropt"
1211 ac_useropt_orig=$ac_useropt
1212 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1213 case $ac_user_opts in
1214 *"
1215 "with_$ac_useropt"
1216 "*) ;;
1217 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1218 ac_unrecognized_sep=', ';;
1219 esac
1220 eval with_$ac_useropt=no ;;
1221
1222 --x)
1223 # Obsolete; use --with-x.
1224 with_x=yes ;;
1225
1226 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1227 | --x-incl | --x-inc | --x-in | --x-i)
1228 ac_prev=x_includes ;;
1229 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1230 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1231 x_includes=$ac_optarg ;;
1232
1233 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1234 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1235 ac_prev=x_libraries ;;
1236 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1237 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1238 x_libraries=$ac_optarg ;;
1239
1240 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1241 Try \`$0 --help' for more information"
1242 ;;
1243
1244 *=*)
1245 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1246 # Reject names that are not valid shell variable names.
1247 case $ac_envvar in #(
1248 '' | [0-9]* | *[!_$as_cr_alnum]* )
1249 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1250 esac
1251 eval $ac_envvar=\$ac_optarg
1252 export $ac_envvar ;;
1253
1254 *)
1255 # FIXME: should be removed in autoconf 3.0.
1256 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1257 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1258 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1259 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1260 ;;
1261
1262 esac
1263 done
1264
1265 if test -n "$ac_prev"; then
1266 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1267 as_fn_error $? "missing argument to $ac_option"
1268 fi
1269
1270 if test -n "$ac_unrecognized_opts"; then
1271 case $enable_option_checking in
1272 no) ;;
1273 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1274 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1275 esac
1276 fi
1277
1278 # Check all directory arguments for consistency.
1279 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1280 datadir sysconfdir sharedstatedir localstatedir includedir \
1281 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1282 libdir localedir mandir
1283 do
1284 eval ac_val=\$$ac_var
1285 # Remove trailing slashes.
1286 case $ac_val in
1287 */ )
1288 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1289 eval $ac_var=\$ac_val;;
1290 esac
1291 # Be sure to have absolute directory names.
1292 case $ac_val in
1293 [\\/$]* | ?:[\\/]* ) continue;;
1294 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1295 esac
1296 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1297 done
1298
1299 # There might be people who depend on the old broken behavior: `$host'
1300 # used to hold the argument of --host etc.
1301 # FIXME: To remove some day.
1302 build=$build_alias
1303 host=$host_alias
1304 target=$target_alias
1305
1306 # FIXME: To remove some day.
1307 if test "x$host_alias" != x; then
1308 if test "x$build_alias" = x; then
1309 cross_compiling=maybe
1310 elif test "x$build_alias" != "x$host_alias"; then
1311 cross_compiling=yes
1312 fi
1313 fi
1314
1315 ac_tool_prefix=
1316 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1317
1318 test "$silent" = yes && exec 6>/dev/null
1319
1320
1321 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1322 ac_ls_di=`ls -di .` &&
1323 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1324 as_fn_error $? "working directory cannot be determined"
1325 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1326 as_fn_error $? "pwd does not report name of working directory"
1327
1328
1329 # Find the source files, if location was not specified.
1330 if test -z "$srcdir"; then
1331 ac_srcdir_defaulted=yes
1332 # Try the directory containing this script, then the parent directory.
1333 ac_confdir=`$as_dirname -- "$as_myself" ||
1334 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1335 X"$as_myself" : 'X\(//\)[^/]' \| \
1336 X"$as_myself" : 'X\(//\)$' \| \
1337 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1338 $as_echo X"$as_myself" |
1339 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1340 s//\1/
1341 q
1342 }
1343 /^X\(\/\/\)[^/].*/{
1344 s//\1/
1345 q
1346 }
1347 /^X\(\/\/\)$/{
1348 s//\1/
1349 q
1350 }
1351 /^X\(\/\).*/{
1352 s//\1/
1353 q
1354 }
1355 s/.*/./; q'`
1356 srcdir=$ac_confdir
1357 if test ! -r "$srcdir/$ac_unique_file"; then
1358 srcdir=..
1359 fi
1360 else
1361 ac_srcdir_defaulted=no
1362 fi
1363 if test ! -r "$srcdir/$ac_unique_file"; then
1364 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1365 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1366 fi
1367 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1368 ac_abs_confdir=`(
1369 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1370 pwd)`
1371 # When building in place, set srcdir=.
1372 if test "$ac_abs_confdir" = "$ac_pwd"; then
1373 srcdir=.
1374 fi
1375 # Remove unnecessary trailing slashes from srcdir.
1376 # Double slashes in file names in object file debugging info
1377 # mess up M-x gdb in Emacs.
1378 case $srcdir in
1379 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1380 esac
1381 for ac_var in $ac_precious_vars; do
1382 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1383 eval ac_env_${ac_var}_value=\$${ac_var}
1384 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1385 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1386 done
1387
1388 #
1389 # Report the --help message.
1390 #
1391 if test "$ac_init_help" = "long"; then
1392 # Omit some internal or obsolete options to make the list less imposing.
1393 # This message is too long to be a string in the A/UX 3.1 sh.
1394 cat <<_ACEOF
1395 \`configure' configures bfd 2.36.50 to adapt to many kinds of systems.
1396
1397 Usage: $0 [OPTION]... [VAR=VALUE]...
1398
1399 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1400 VAR=VALUE. See below for descriptions of some of the useful variables.
1401
1402 Defaults for the options are specified in brackets.
1403
1404 Configuration:
1405 -h, --help display this help and exit
1406 --help=short display options specific to this package
1407 --help=recursive display the short help of all the included packages
1408 -V, --version display version information and exit
1409 -q, --quiet, --silent do not print \`checking ...' messages
1410 --cache-file=FILE cache test results in FILE [disabled]
1411 -C, --config-cache alias for \`--cache-file=config.cache'
1412 -n, --no-create do not create output files
1413 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1414
1415 Installation directories:
1416 --prefix=PREFIX install architecture-independent files in PREFIX
1417 [$ac_default_prefix]
1418 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1419 [PREFIX]
1420
1421 By default, \`make install' will install all the files in
1422 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1423 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1424 for instance \`--prefix=\$HOME'.
1425
1426 For better control, use the options below.
1427
1428 Fine tuning of the installation directories:
1429 --bindir=DIR user executables [EPREFIX/bin]
1430 --sbindir=DIR system admin executables [EPREFIX/sbin]
1431 --libexecdir=DIR program executables [EPREFIX/libexec]
1432 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1433 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1434 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1435 --libdir=DIR object code libraries [EPREFIX/lib]
1436 --includedir=DIR C header files [PREFIX/include]
1437 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1438 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1439 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1440 --infodir=DIR info documentation [DATAROOTDIR/info]
1441 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1442 --mandir=DIR man documentation [DATAROOTDIR/man]
1443 --docdir=DIR documentation root [DATAROOTDIR/doc/bfd]
1444 --htmldir=DIR html documentation [DOCDIR]
1445 --dvidir=DIR dvi documentation [DOCDIR]
1446 --pdfdir=DIR pdf documentation [DOCDIR]
1447 --psdir=DIR ps documentation [DOCDIR]
1448 _ACEOF
1449
1450 cat <<\_ACEOF
1451
1452 Program names:
1453 --program-prefix=PREFIX prepend PREFIX to installed program names
1454 --program-suffix=SUFFIX append SUFFIX to installed program names
1455 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1456
1457 System types:
1458 --build=BUILD configure for building on BUILD [guessed]
1459 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1460 --target=TARGET configure for building compilers for TARGET [HOST]
1461 _ACEOF
1462 fi
1463
1464 if test -n "$ac_init_help"; then
1465 case $ac_init_help in
1466 short | recursive ) echo "Configuration of bfd 2.36.50:";;
1467 esac
1468 cat <<\_ACEOF
1469
1470 Optional Features:
1471 --disable-option-checking ignore unrecognized --enable/--with options
1472 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1473 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1474 --enable-silent-rules less verbose build output (undo: "make V=1")
1475 --disable-silent-rules verbose build output (undo: "make V=0")
1476 --enable-shared[=PKGS] build shared libraries [default=no]
1477 --enable-dependency-tracking
1478 do not reject slow dependency extractors
1479 --disable-dependency-tracking
1480 speeds up one-time build
1481 --enable-static[=PKGS] build static libraries [default=yes]
1482 --enable-fast-install[=PKGS]
1483 optimize for fast installation [default=yes]
1484 --disable-libtool-lock avoid locking (might break parallel builds)
1485 --enable-plugins Enable support for plugins
1486 --disable-largefile omit support for large files
1487 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
1488 --enable-targets alternative target configurations
1489 --enable-64-bit-archive force 64-bit archives
1490 --enable-secureplt Default to creating read-only plt entries
1491 --enable-separate-code enable -z separate-code in ELF linker by default
1492 --enable-leading-mingw64-underscores
1493 Enable leading underscores on 64 bit mingw targets
1494 --enable-werror treat compile warnings as errors
1495 --enable-build-warnings enable build-time compiler warnings
1496 --enable-maintainer-mode
1497 enable make rules and dependencies not useful (and
1498 sometimes confusing) to the casual installer
1499 --enable-install-libbfd controls installation of libbfd and related headers
1500 --disable-nls do not use Native Language Support
1501
1502 Optional Packages:
1503 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1504 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1505 --with-pic try to use only PIC/non-PIC objects [default=use
1506 both]
1507 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1508 --with-mmap try using mmap for BFD input files if available
1509 --with-separate-debug-dir=DIR
1510 Look for global separate debug info in DIR
1511 [[default=LIBDIR/debug]]
1512 --with-pkgversion=PKG Use PKG in the version string in place of "GNU
1513 Binutils"
1514 --with-bugurl=URL Direct users to URL to report a bug
1515 --with-system-zlib use installed libz
1516
1517 Some influential environment variables:
1518 CC C compiler command
1519 CFLAGS C compiler flags
1520 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1521 nonstandard directory <lib dir>
1522 LIBS libraries to pass to the linker, e.g. -l<library>
1523 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1524 you have headers in a nonstandard directory <include dir>
1525 CPP C preprocessor
1526
1527 Use these variables to override the choices made by `configure' or to help
1528 it to find libraries and programs with nonstandard names/locations.
1529
1530 Report bugs to the package provider.
1531 _ACEOF
1532 ac_status=$?
1533 fi
1534
1535 if test "$ac_init_help" = "recursive"; then
1536 # If there are subdirs, report their specific --help.
1537 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1538 test -d "$ac_dir" ||
1539 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1540 continue
1541 ac_builddir=.
1542
1543 case "$ac_dir" in
1544 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1545 *)
1546 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1547 # A ".." for each directory in $ac_dir_suffix.
1548 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1549 case $ac_top_builddir_sub in
1550 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1551 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1552 esac ;;
1553 esac
1554 ac_abs_top_builddir=$ac_pwd
1555 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1556 # for backward compatibility:
1557 ac_top_builddir=$ac_top_build_prefix
1558
1559 case $srcdir in
1560 .) # We are building in place.
1561 ac_srcdir=.
1562 ac_top_srcdir=$ac_top_builddir_sub
1563 ac_abs_top_srcdir=$ac_pwd ;;
1564 [\\/]* | ?:[\\/]* ) # Absolute name.
1565 ac_srcdir=$srcdir$ac_dir_suffix;
1566 ac_top_srcdir=$srcdir
1567 ac_abs_top_srcdir=$srcdir ;;
1568 *) # Relative name.
1569 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1570 ac_top_srcdir=$ac_top_build_prefix$srcdir
1571 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1572 esac
1573 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1574
1575 cd "$ac_dir" || { ac_status=$?; continue; }
1576 # Check for guested configure.
1577 if test -f "$ac_srcdir/configure.gnu"; then
1578 echo &&
1579 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1580 elif test -f "$ac_srcdir/configure"; then
1581 echo &&
1582 $SHELL "$ac_srcdir/configure" --help=recursive
1583 else
1584 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1585 fi || ac_status=$?
1586 cd "$ac_pwd" || { ac_status=$?; break; }
1587 done
1588 fi
1589
1590 test -n "$ac_init_help" && exit $ac_status
1591 if $ac_init_version; then
1592 cat <<\_ACEOF
1593 bfd configure 2.36.50
1594 generated by GNU Autoconf 2.69
1595
1596 Copyright (C) 2012 Free Software Foundation, Inc.
1597 This configure script is free software; the Free Software Foundation
1598 gives unlimited permission to copy, distribute and modify it.
1599 _ACEOF
1600 exit
1601 fi
1602
1603 ## ------------------------ ##
1604 ## Autoconf initialization. ##
1605 ## ------------------------ ##
1606
1607 # ac_fn_c_try_compile LINENO
1608 # --------------------------
1609 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1610 ac_fn_c_try_compile ()
1611 {
1612 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1613 rm -f conftest.$ac_objext
1614 if { { ac_try="$ac_compile"
1615 case "(($ac_try" in
1616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1617 *) ac_try_echo=$ac_try;;
1618 esac
1619 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1620 $as_echo "$ac_try_echo"; } >&5
1621 (eval "$ac_compile") 2>conftest.err
1622 ac_status=$?
1623 if test -s conftest.err; then
1624 grep -v '^ *+' conftest.err >conftest.er1
1625 cat conftest.er1 >&5
1626 mv -f conftest.er1 conftest.err
1627 fi
1628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1629 test $ac_status = 0; } && {
1630 test -z "$ac_c_werror_flag" ||
1631 test ! -s conftest.err
1632 } && test -s conftest.$ac_objext; then :
1633 ac_retval=0
1634 else
1635 $as_echo "$as_me: failed program was:" >&5
1636 sed 's/^/| /' conftest.$ac_ext >&5
1637
1638 ac_retval=1
1639 fi
1640 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1641 as_fn_set_status $ac_retval
1642
1643 } # ac_fn_c_try_compile
1644
1645 # ac_fn_c_try_cpp LINENO
1646 # ----------------------
1647 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1648 ac_fn_c_try_cpp ()
1649 {
1650 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1651 if { { ac_try="$ac_cpp conftest.$ac_ext"
1652 case "(($ac_try" in
1653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1654 *) ac_try_echo=$ac_try;;
1655 esac
1656 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1657 $as_echo "$ac_try_echo"; } >&5
1658 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1659 ac_status=$?
1660 if test -s conftest.err; then
1661 grep -v '^ *+' conftest.err >conftest.er1
1662 cat conftest.er1 >&5
1663 mv -f conftest.er1 conftest.err
1664 fi
1665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1666 test $ac_status = 0; } > conftest.i && {
1667 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1668 test ! -s conftest.err
1669 }; then :
1670 ac_retval=0
1671 else
1672 $as_echo "$as_me: failed program was:" >&5
1673 sed 's/^/| /' conftest.$ac_ext >&5
1674
1675 ac_retval=1
1676 fi
1677 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1678 as_fn_set_status $ac_retval
1679
1680 } # ac_fn_c_try_cpp
1681
1682 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1683 # -------------------------------------------------------
1684 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1685 # the include files in INCLUDES and setting the cache variable VAR
1686 # accordingly.
1687 ac_fn_c_check_header_mongrel ()
1688 {
1689 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1690 if eval \${$3+:} false; then :
1691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1692 $as_echo_n "checking for $2... " >&6; }
1693 if eval \${$3+:} false; then :
1694 $as_echo_n "(cached) " >&6
1695 fi
1696 eval ac_res=\$$3
1697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1698 $as_echo "$ac_res" >&6; }
1699 else
1700 # Is the header compilable?
1701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1702 $as_echo_n "checking $2 usability... " >&6; }
1703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1704 /* end confdefs.h. */
1705 $4
1706 #include <$2>
1707 _ACEOF
1708 if ac_fn_c_try_compile "$LINENO"; then :
1709 ac_header_compiler=yes
1710 else
1711 ac_header_compiler=no
1712 fi
1713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1715 $as_echo "$ac_header_compiler" >&6; }
1716
1717 # Is the header present?
1718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1719 $as_echo_n "checking $2 presence... " >&6; }
1720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1721 /* end confdefs.h. */
1722 #include <$2>
1723 _ACEOF
1724 if ac_fn_c_try_cpp "$LINENO"; then :
1725 ac_header_preproc=yes
1726 else
1727 ac_header_preproc=no
1728 fi
1729 rm -f conftest.err conftest.i conftest.$ac_ext
1730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1731 $as_echo "$ac_header_preproc" >&6; }
1732
1733 # So? What about this header?
1734 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1735 yes:no: )
1736 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1737 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1738 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1739 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1740 ;;
1741 no:yes:* )
1742 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1743 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1744 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1745 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1746 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1747 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1748 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1749 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1750 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1751 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1752 ;;
1753 esac
1754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1755 $as_echo_n "checking for $2... " >&6; }
1756 if eval \${$3+:} false; then :
1757 $as_echo_n "(cached) " >&6
1758 else
1759 eval "$3=\$ac_header_compiler"
1760 fi
1761 eval ac_res=\$$3
1762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1763 $as_echo "$ac_res" >&6; }
1764 fi
1765 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1766
1767 } # ac_fn_c_check_header_mongrel
1768
1769 # ac_fn_c_try_run LINENO
1770 # ----------------------
1771 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1772 # that executables *can* be run.
1773 ac_fn_c_try_run ()
1774 {
1775 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1776 if { { ac_try="$ac_link"
1777 case "(($ac_try" in
1778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1779 *) ac_try_echo=$ac_try;;
1780 esac
1781 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1782 $as_echo "$ac_try_echo"; } >&5
1783 (eval "$ac_link") 2>&5
1784 ac_status=$?
1785 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1786 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1787 { { case "(($ac_try" in
1788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1789 *) ac_try_echo=$ac_try;;
1790 esac
1791 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1792 $as_echo "$ac_try_echo"; } >&5
1793 (eval "$ac_try") 2>&5
1794 ac_status=$?
1795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1796 test $ac_status = 0; }; }; then :
1797 ac_retval=0
1798 else
1799 $as_echo "$as_me: program exited with status $ac_status" >&5
1800 $as_echo "$as_me: failed program was:" >&5
1801 sed 's/^/| /' conftest.$ac_ext >&5
1802
1803 ac_retval=$ac_status
1804 fi
1805 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1806 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1807 as_fn_set_status $ac_retval
1808
1809 } # ac_fn_c_try_run
1810
1811 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1812 # -------------------------------------------------------
1813 # Tests whether HEADER exists and can be compiled using the include files in
1814 # INCLUDES, setting the cache variable VAR accordingly.
1815 ac_fn_c_check_header_compile ()
1816 {
1817 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1819 $as_echo_n "checking for $2... " >&6; }
1820 if eval \${$3+:} false; then :
1821 $as_echo_n "(cached) " >&6
1822 else
1823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1824 /* end confdefs.h. */
1825 $4
1826 #include <$2>
1827 _ACEOF
1828 if ac_fn_c_try_compile "$LINENO"; then :
1829 eval "$3=yes"
1830 else
1831 eval "$3=no"
1832 fi
1833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1834 fi
1835 eval ac_res=\$$3
1836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1837 $as_echo "$ac_res" >&6; }
1838 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1839
1840 } # ac_fn_c_check_header_compile
1841
1842 # ac_fn_c_try_link LINENO
1843 # -----------------------
1844 # Try to link conftest.$ac_ext, and return whether this succeeded.
1845 ac_fn_c_try_link ()
1846 {
1847 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1848 rm -f conftest.$ac_objext conftest$ac_exeext
1849 if { { ac_try="$ac_link"
1850 case "(($ac_try" in
1851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1852 *) ac_try_echo=$ac_try;;
1853 esac
1854 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1855 $as_echo "$ac_try_echo"; } >&5
1856 (eval "$ac_link") 2>conftest.err
1857 ac_status=$?
1858 if test -s conftest.err; then
1859 grep -v '^ *+' conftest.err >conftest.er1
1860 cat conftest.er1 >&5
1861 mv -f conftest.er1 conftest.err
1862 fi
1863 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1864 test $ac_status = 0; } && {
1865 test -z "$ac_c_werror_flag" ||
1866 test ! -s conftest.err
1867 } && test -s conftest$ac_exeext && {
1868 test "$cross_compiling" = yes ||
1869 test -x conftest$ac_exeext
1870 }; then :
1871 ac_retval=0
1872 else
1873 $as_echo "$as_me: failed program was:" >&5
1874 sed 's/^/| /' conftest.$ac_ext >&5
1875
1876 ac_retval=1
1877 fi
1878 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1879 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1880 # interfere with the next link command; also delete a directory that is
1881 # left behind by Apple's compiler. We do this before executing the actions.
1882 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1883 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1884 as_fn_set_status $ac_retval
1885
1886 } # ac_fn_c_try_link
1887
1888 # ac_fn_c_check_func LINENO FUNC VAR
1889 # ----------------------------------
1890 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1891 ac_fn_c_check_func ()
1892 {
1893 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1895 $as_echo_n "checking for $2... " >&6; }
1896 if eval \${$3+:} false; then :
1897 $as_echo_n "(cached) " >&6
1898 else
1899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1900 /* end confdefs.h. */
1901 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1902 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1903 #define $2 innocuous_$2
1904
1905 /* System header to define __stub macros and hopefully few prototypes,
1906 which can conflict with char $2 (); below.
1907 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1908 <limits.h> exists even on freestanding compilers. */
1909
1910 #ifdef __STDC__
1911 # include <limits.h>
1912 #else
1913 # include <assert.h>
1914 #endif
1915
1916 #undef $2
1917
1918 /* Override any GCC internal prototype to avoid an error.
1919 Use char because int might match the return type of a GCC
1920 builtin and then its argument prototype would still apply. */
1921 #ifdef __cplusplus
1922 extern "C"
1923 #endif
1924 char $2 ();
1925 /* The GNU C library defines this for functions which it implements
1926 to always fail with ENOSYS. Some functions are actually named
1927 something starting with __ and the normal name is an alias. */
1928 #if defined __stub_$2 || defined __stub___$2
1929 choke me
1930 #endif
1931
1932 int
1933 main ()
1934 {
1935 return $2 ();
1936 ;
1937 return 0;
1938 }
1939 _ACEOF
1940 if ac_fn_c_try_link "$LINENO"; then :
1941 eval "$3=yes"
1942 else
1943 eval "$3=no"
1944 fi
1945 rm -f core conftest.err conftest.$ac_objext \
1946 conftest$ac_exeext conftest.$ac_ext
1947 fi
1948 eval ac_res=\$$3
1949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1950 $as_echo "$ac_res" >&6; }
1951 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1952
1953 } # ac_fn_c_check_func
1954
1955 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1956 # --------------------------------------------
1957 # Tries to find the compile-time value of EXPR in a program that includes
1958 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1959 # computed
1960 ac_fn_c_compute_int ()
1961 {
1962 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1963 if test "$cross_compiling" = yes; then
1964 # Depending upon the size, compute the lo and hi bounds.
1965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1966 /* end confdefs.h. */
1967 $4
1968 int
1969 main ()
1970 {
1971 static int test_array [1 - 2 * !(($2) >= 0)];
1972 test_array [0] = 0;
1973 return test_array [0];
1974
1975 ;
1976 return 0;
1977 }
1978 _ACEOF
1979 if ac_fn_c_try_compile "$LINENO"; then :
1980 ac_lo=0 ac_mid=0
1981 while :; do
1982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1983 /* end confdefs.h. */
1984 $4
1985 int
1986 main ()
1987 {
1988 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1989 test_array [0] = 0;
1990 return test_array [0];
1991
1992 ;
1993 return 0;
1994 }
1995 _ACEOF
1996 if ac_fn_c_try_compile "$LINENO"; then :
1997 ac_hi=$ac_mid; break
1998 else
1999 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2000 if test $ac_lo -le $ac_mid; then
2001 ac_lo= ac_hi=
2002 break
2003 fi
2004 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2005 fi
2006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2007 done
2008 else
2009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2010 /* end confdefs.h. */
2011 $4
2012 int
2013 main ()
2014 {
2015 static int test_array [1 - 2 * !(($2) < 0)];
2016 test_array [0] = 0;
2017 return test_array [0];
2018
2019 ;
2020 return 0;
2021 }
2022 _ACEOF
2023 if ac_fn_c_try_compile "$LINENO"; then :
2024 ac_hi=-1 ac_mid=-1
2025 while :; do
2026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2027 /* end confdefs.h. */
2028 $4
2029 int
2030 main ()
2031 {
2032 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2033 test_array [0] = 0;
2034 return test_array [0];
2035
2036 ;
2037 return 0;
2038 }
2039 _ACEOF
2040 if ac_fn_c_try_compile "$LINENO"; then :
2041 ac_lo=$ac_mid; break
2042 else
2043 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2044 if test $ac_mid -le $ac_hi; then
2045 ac_lo= ac_hi=
2046 break
2047 fi
2048 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2049 fi
2050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2051 done
2052 else
2053 ac_lo= ac_hi=
2054 fi
2055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2056 fi
2057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2058 # Binary search between lo and hi bounds.
2059 while test "x$ac_lo" != "x$ac_hi"; do
2060 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2062 /* end confdefs.h. */
2063 $4
2064 int
2065 main ()
2066 {
2067 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2068 test_array [0] = 0;
2069 return test_array [0];
2070
2071 ;
2072 return 0;
2073 }
2074 _ACEOF
2075 if ac_fn_c_try_compile "$LINENO"; then :
2076 ac_hi=$ac_mid
2077 else
2078 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2079 fi
2080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2081 done
2082 case $ac_lo in #((
2083 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2084 '') ac_retval=1 ;;
2085 esac
2086 else
2087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2088 /* end confdefs.h. */
2089 $4
2090 static long int longval () { return $2; }
2091 static unsigned long int ulongval () { return $2; }
2092 #include <stdio.h>
2093 #include <stdlib.h>
2094 int
2095 main ()
2096 {
2097
2098 FILE *f = fopen ("conftest.val", "w");
2099 if (! f)
2100 return 1;
2101 if (($2) < 0)
2102 {
2103 long int i = longval ();
2104 if (i != ($2))
2105 return 1;
2106 fprintf (f, "%ld", i);
2107 }
2108 else
2109 {
2110 unsigned long int i = ulongval ();
2111 if (i != ($2))
2112 return 1;
2113 fprintf (f, "%lu", i);
2114 }
2115 /* Do not output a trailing newline, as this causes \r\n confusion
2116 on some platforms. */
2117 return ferror (f) || fclose (f) != 0;
2118
2119 ;
2120 return 0;
2121 }
2122 _ACEOF
2123 if ac_fn_c_try_run "$LINENO"; then :
2124 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2125 else
2126 ac_retval=1
2127 fi
2128 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2129 conftest.$ac_objext conftest.beam conftest.$ac_ext
2130 rm -f conftest.val
2131
2132 fi
2133 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2134 as_fn_set_status $ac_retval
2135
2136 } # ac_fn_c_compute_int
2137
2138 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2139 # ---------------------------------------------
2140 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2141 # accordingly.
2142 ac_fn_c_check_decl ()
2143 {
2144 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2145 as_decl_name=`echo $2|sed 's/ *(.*//'`
2146 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2148 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2149 if eval \${$3+:} false; then :
2150 $as_echo_n "(cached) " >&6
2151 else
2152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2153 /* end confdefs.h. */
2154 $4
2155 int
2156 main ()
2157 {
2158 #ifndef $as_decl_name
2159 #ifdef __cplusplus
2160 (void) $as_decl_use;
2161 #else
2162 (void) $as_decl_name;
2163 #endif
2164 #endif
2165
2166 ;
2167 return 0;
2168 }
2169 _ACEOF
2170 if ac_fn_c_try_compile "$LINENO"; then :
2171 eval "$3=yes"
2172 else
2173 eval "$3=no"
2174 fi
2175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2176 fi
2177 eval ac_res=\$$3
2178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2179 $as_echo "$ac_res" >&6; }
2180 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2181
2182 } # ac_fn_c_check_decl
2183 cat >config.log <<_ACEOF
2184 This file contains any messages produced by compilers while
2185 running configure, to aid debugging if configure makes a mistake.
2186
2187 It was created by bfd $as_me 2.36.50, which was
2188 generated by GNU Autoconf 2.69. Invocation command line was
2189
2190 $ $0 $@
2191
2192 _ACEOF
2193 exec 5>>config.log
2194 {
2195 cat <<_ASUNAME
2196 ## --------- ##
2197 ## Platform. ##
2198 ## --------- ##
2199
2200 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2201 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2202 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2203 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2204 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2205
2206 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2207 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2208
2209 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2210 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2211 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2212 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2213 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2214 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2215 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2216
2217 _ASUNAME
2218
2219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2220 for as_dir in $PATH
2221 do
2222 IFS=$as_save_IFS
2223 test -z "$as_dir" && as_dir=.
2224 $as_echo "PATH: $as_dir"
2225 done
2226 IFS=$as_save_IFS
2227
2228 } >&5
2229
2230 cat >&5 <<_ACEOF
2231
2232
2233 ## ----------- ##
2234 ## Core tests. ##
2235 ## ----------- ##
2236
2237 _ACEOF
2238
2239
2240 # Keep a trace of the command line.
2241 # Strip out --no-create and --no-recursion so they do not pile up.
2242 # Strip out --silent because we don't want to record it for future runs.
2243 # Also quote any args containing shell meta-characters.
2244 # Make two passes to allow for proper duplicate-argument suppression.
2245 ac_configure_args=
2246 ac_configure_args0=
2247 ac_configure_args1=
2248 ac_must_keep_next=false
2249 for ac_pass in 1 2
2250 do
2251 for ac_arg
2252 do
2253 case $ac_arg in
2254 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2255 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2256 | -silent | --silent | --silen | --sile | --sil)
2257 continue ;;
2258 *\'*)
2259 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2260 esac
2261 case $ac_pass in
2262 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2263 2)
2264 as_fn_append ac_configure_args1 " '$ac_arg'"
2265 if test $ac_must_keep_next = true; then
2266 ac_must_keep_next=false # Got value, back to normal.
2267 else
2268 case $ac_arg in
2269 *=* | --config-cache | -C | -disable-* | --disable-* \
2270 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2271 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2272 | -with-* | --with-* | -without-* | --without-* | --x)
2273 case "$ac_configure_args0 " in
2274 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2275 esac
2276 ;;
2277 -* ) ac_must_keep_next=true ;;
2278 esac
2279 fi
2280 as_fn_append ac_configure_args " '$ac_arg'"
2281 ;;
2282 esac
2283 done
2284 done
2285 { ac_configure_args0=; unset ac_configure_args0;}
2286 { ac_configure_args1=; unset ac_configure_args1;}
2287
2288 # When interrupted or exit'd, cleanup temporary files, and complete
2289 # config.log. We remove comments because anyway the quotes in there
2290 # would cause problems or look ugly.
2291 # WARNING: Use '\'' to represent an apostrophe within the trap.
2292 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2293 trap 'exit_status=$?
2294 # Save into config.log some information that might help in debugging.
2295 {
2296 echo
2297
2298 $as_echo "## ---------------- ##
2299 ## Cache variables. ##
2300 ## ---------------- ##"
2301 echo
2302 # The following way of writing the cache mishandles newlines in values,
2303 (
2304 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2305 eval ac_val=\$$ac_var
2306 case $ac_val in #(
2307 *${as_nl}*)
2308 case $ac_var in #(
2309 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2310 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2311 esac
2312 case $ac_var in #(
2313 _ | IFS | as_nl) ;; #(
2314 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2315 *) { eval $ac_var=; unset $ac_var;} ;;
2316 esac ;;
2317 esac
2318 done
2319 (set) 2>&1 |
2320 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2321 *${as_nl}ac_space=\ *)
2322 sed -n \
2323 "s/'\''/'\''\\\\'\'''\''/g;
2324 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2325 ;; #(
2326 *)
2327 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2328 ;;
2329 esac |
2330 sort
2331 )
2332 echo
2333
2334 $as_echo "## ----------------- ##
2335 ## Output variables. ##
2336 ## ----------------- ##"
2337 echo
2338 for ac_var in $ac_subst_vars
2339 do
2340 eval ac_val=\$$ac_var
2341 case $ac_val in
2342 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2343 esac
2344 $as_echo "$ac_var='\''$ac_val'\''"
2345 done | sort
2346 echo
2347
2348 if test -n "$ac_subst_files"; then
2349 $as_echo "## ------------------- ##
2350 ## File substitutions. ##
2351 ## ------------------- ##"
2352 echo
2353 for ac_var in $ac_subst_files
2354 do
2355 eval ac_val=\$$ac_var
2356 case $ac_val in
2357 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2358 esac
2359 $as_echo "$ac_var='\''$ac_val'\''"
2360 done | sort
2361 echo
2362 fi
2363
2364 if test -s confdefs.h; then
2365 $as_echo "## ----------- ##
2366 ## confdefs.h. ##
2367 ## ----------- ##"
2368 echo
2369 cat confdefs.h
2370 echo
2371 fi
2372 test "$ac_signal" != 0 &&
2373 $as_echo "$as_me: caught signal $ac_signal"
2374 $as_echo "$as_me: exit $exit_status"
2375 } >&5
2376 rm -f core *.core core.conftest.* &&
2377 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2378 exit $exit_status
2379 ' 0
2380 for ac_signal in 1 2 13 15; do
2381 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2382 done
2383 ac_signal=0
2384
2385 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2386 rm -f -r conftest* confdefs.h
2387
2388 $as_echo "/* confdefs.h */" > confdefs.h
2389
2390 # Predefined preprocessor variables.
2391
2392 cat >>confdefs.h <<_ACEOF
2393 #define PACKAGE_NAME "$PACKAGE_NAME"
2394 _ACEOF
2395
2396 cat >>confdefs.h <<_ACEOF
2397 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2398 _ACEOF
2399
2400 cat >>confdefs.h <<_ACEOF
2401 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2402 _ACEOF
2403
2404 cat >>confdefs.h <<_ACEOF
2405 #define PACKAGE_STRING "$PACKAGE_STRING"
2406 _ACEOF
2407
2408 cat >>confdefs.h <<_ACEOF
2409 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2410 _ACEOF
2411
2412 cat >>confdefs.h <<_ACEOF
2413 #define PACKAGE_URL "$PACKAGE_URL"
2414 _ACEOF
2415
2416
2417 # Let the site file select an alternate cache file if it wants to.
2418 # Prefer an explicitly selected file to automatically selected ones.
2419 ac_site_file1=NONE
2420 ac_site_file2=NONE
2421 if test -n "$CONFIG_SITE"; then
2422 # We do not want a PATH search for config.site.
2423 case $CONFIG_SITE in #((
2424 -*) ac_site_file1=./$CONFIG_SITE;;
2425 */*) ac_site_file1=$CONFIG_SITE;;
2426 *) ac_site_file1=./$CONFIG_SITE;;
2427 esac
2428 elif test "x$prefix" != xNONE; then
2429 ac_site_file1=$prefix/share/config.site
2430 ac_site_file2=$prefix/etc/config.site
2431 else
2432 ac_site_file1=$ac_default_prefix/share/config.site
2433 ac_site_file2=$ac_default_prefix/etc/config.site
2434 fi
2435 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2436 do
2437 test "x$ac_site_file" = xNONE && continue
2438 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2439 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2440 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2441 sed 's/^/| /' "$ac_site_file" >&5
2442 . "$ac_site_file" \
2443 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2444 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2445 as_fn_error $? "failed to load site script $ac_site_file
2446 See \`config.log' for more details" "$LINENO" 5; }
2447 fi
2448 done
2449
2450 if test -r "$cache_file"; then
2451 # Some versions of bash will fail to source /dev/null (special files
2452 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2453 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2454 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2455 $as_echo "$as_me: loading cache $cache_file" >&6;}
2456 case $cache_file in
2457 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2458 *) . "./$cache_file";;
2459 esac
2460 fi
2461 else
2462 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2463 $as_echo "$as_me: creating cache $cache_file" >&6;}
2464 >$cache_file
2465 fi
2466
2467 as_fn_append ac_header_list " stdlib.h"
2468 as_fn_append ac_header_list " unistd.h"
2469 as_fn_append ac_header_list " sys/param.h"
2470 # Check that the precious variables saved in the cache have kept the same
2471 # value.
2472 ac_cache_corrupted=false
2473 for ac_var in $ac_precious_vars; do
2474 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2475 eval ac_new_set=\$ac_env_${ac_var}_set
2476 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2477 eval ac_new_val=\$ac_env_${ac_var}_value
2478 case $ac_old_set,$ac_new_set in
2479 set,)
2480 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2481 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2482 ac_cache_corrupted=: ;;
2483 ,set)
2484 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2485 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2486 ac_cache_corrupted=: ;;
2487 ,);;
2488 *)
2489 if test "x$ac_old_val" != "x$ac_new_val"; then
2490 # differences in whitespace do not lead to failure.
2491 ac_old_val_w=`echo x $ac_old_val`
2492 ac_new_val_w=`echo x $ac_new_val`
2493 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2494 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2495 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2496 ac_cache_corrupted=:
2497 else
2498 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2499 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2500 eval $ac_var=\$ac_old_val
2501 fi
2502 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2503 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2504 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2505 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2506 fi;;
2507 esac
2508 # Pass precious variables to config.status.
2509 if test "$ac_new_set" = set; then
2510 case $ac_new_val in
2511 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2512 *) ac_arg=$ac_var=$ac_new_val ;;
2513 esac
2514 case " $ac_configure_args " in
2515 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2516 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2517 esac
2518 fi
2519 done
2520 if $ac_cache_corrupted; then
2521 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2522 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2523 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2524 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2525 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2526 fi
2527 ## -------------------- ##
2528 ## Main body of script. ##
2529 ## -------------------- ##
2530
2531 ac_ext=c
2532 ac_cpp='$CPP $CPPFLAGS'
2533 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2534 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2535 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2536
2537
2538
2539
2540
2541
2542
2543 ac_aux_dir=
2544 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2545 if test -f "$ac_dir/install-sh"; then
2546 ac_aux_dir=$ac_dir
2547 ac_install_sh="$ac_aux_dir/install-sh -c"
2548 break
2549 elif test -f "$ac_dir/install.sh"; then
2550 ac_aux_dir=$ac_dir
2551 ac_install_sh="$ac_aux_dir/install.sh -c"
2552 break
2553 elif test -f "$ac_dir/shtool"; then
2554 ac_aux_dir=$ac_dir
2555 ac_install_sh="$ac_aux_dir/shtool install -c"
2556 break
2557 fi
2558 done
2559 if test -z "$ac_aux_dir"; then
2560 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2561 fi
2562
2563 # These three variables are undocumented and unsupported,
2564 # and are intended to be withdrawn in a future Autoconf release.
2565 # They can cause serious problems if a builder's source tree is in a directory
2566 # whose full name contains unusual characters.
2567 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2568 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2569 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2570
2571
2572 # Make sure we can run config.sub.
2573 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2574 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2575
2576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2577 $as_echo_n "checking build system type... " >&6; }
2578 if ${ac_cv_build+:} false; then :
2579 $as_echo_n "(cached) " >&6
2580 else
2581 ac_build_alias=$build_alias
2582 test "x$ac_build_alias" = x &&
2583 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2584 test "x$ac_build_alias" = x &&
2585 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2586 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2587 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2588
2589 fi
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2591 $as_echo "$ac_cv_build" >&6; }
2592 case $ac_cv_build in
2593 *-*-*) ;;
2594 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2595 esac
2596 build=$ac_cv_build
2597 ac_save_IFS=$IFS; IFS='-'
2598 set x $ac_cv_build
2599 shift
2600 build_cpu=$1
2601 build_vendor=$2
2602 shift; shift
2603 # Remember, the first character of IFS is used to create $*,
2604 # except with old shells:
2605 build_os=$*
2606 IFS=$ac_save_IFS
2607 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2608
2609
2610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2611 $as_echo_n "checking host system type... " >&6; }
2612 if ${ac_cv_host+:} false; then :
2613 $as_echo_n "(cached) " >&6
2614 else
2615 if test "x$host_alias" = x; then
2616 ac_cv_host=$ac_cv_build
2617 else
2618 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2619 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2620 fi
2621
2622 fi
2623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2624 $as_echo "$ac_cv_host" >&6; }
2625 case $ac_cv_host in
2626 *-*-*) ;;
2627 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2628 esac
2629 host=$ac_cv_host
2630 ac_save_IFS=$IFS; IFS='-'
2631 set x $ac_cv_host
2632 shift
2633 host_cpu=$1
2634 host_vendor=$2
2635 shift; shift
2636 # Remember, the first character of IFS is used to create $*,
2637 # except with old shells:
2638 host_os=$*
2639 IFS=$ac_save_IFS
2640 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2641
2642
2643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2644 $as_echo_n "checking target system type... " >&6; }
2645 if ${ac_cv_target+:} false; then :
2646 $as_echo_n "(cached) " >&6
2647 else
2648 if test "x$target_alias" = x; then
2649 ac_cv_target=$ac_cv_host
2650 else
2651 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2652 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2653 fi
2654
2655 fi
2656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2657 $as_echo "$ac_cv_target" >&6; }
2658 case $ac_cv_target in
2659 *-*-*) ;;
2660 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2661 esac
2662 target=$ac_cv_target
2663 ac_save_IFS=$IFS; IFS='-'
2664 set x $ac_cv_target
2665 shift
2666 target_cpu=$1
2667 target_vendor=$2
2668 shift; shift
2669 # Remember, the first character of IFS is used to create $*,
2670 # except with old shells:
2671 target_os=$*
2672 IFS=$ac_save_IFS
2673 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2674
2675
2676 # The aliases save the names the user supplied, while $host etc.
2677 # will get canonicalized.
2678 test -n "$target_alias" &&
2679 test "$program_prefix$program_suffix$program_transform_name" = \
2680 NONENONEs,x,x, &&
2681 program_prefix=${target_alias}-
2682
2683 am__api_version='1.15'
2684
2685 # Find a good install program. We prefer a C program (faster),
2686 # so one script is as good as another. But avoid the broken or
2687 # incompatible versions:
2688 # SysV /etc/install, /usr/sbin/install
2689 # SunOS /usr/etc/install
2690 # IRIX /sbin/install
2691 # AIX /bin/install
2692 # AmigaOS /C/install, which installs bootblocks on floppy discs
2693 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2694 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2695 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2696 # OS/2's system install, which has a completely different semantic
2697 # ./install, which can be erroneously created by make from ./install.sh.
2698 # Reject install programs that cannot install multiple files.
2699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2700 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2701 if test -z "$INSTALL"; then
2702 if ${ac_cv_path_install+:} false; then :
2703 $as_echo_n "(cached) " >&6
2704 else
2705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2706 for as_dir in $PATH
2707 do
2708 IFS=$as_save_IFS
2709 test -z "$as_dir" && as_dir=.
2710 # Account for people who put trailing slashes in PATH elements.
2711 case $as_dir/ in #((
2712 ./ | .// | /[cC]/* | \
2713 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2714 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2715 /usr/ucb/* ) ;;
2716 *)
2717 # OSF1 and SCO ODT 3.0 have their own names for install.
2718 # Don't use installbsd from OSF since it installs stuff as root
2719 # by default.
2720 for ac_prog in ginstall scoinst install; do
2721 for ac_exec_ext in '' $ac_executable_extensions; do
2722 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2723 if test $ac_prog = install &&
2724 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2725 # AIX install. It has an incompatible calling convention.
2726 :
2727 elif test $ac_prog = install &&
2728 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2729 # program-specific install script used by HP pwplus--don't use.
2730 :
2731 else
2732 rm -rf conftest.one conftest.two conftest.dir
2733 echo one > conftest.one
2734 echo two > conftest.two
2735 mkdir conftest.dir
2736 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2737 test -s conftest.one && test -s conftest.two &&
2738 test -s conftest.dir/conftest.one &&
2739 test -s conftest.dir/conftest.two
2740 then
2741 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2742 break 3
2743 fi
2744 fi
2745 fi
2746 done
2747 done
2748 ;;
2749 esac
2750
2751 done
2752 IFS=$as_save_IFS
2753
2754 rm -rf conftest.one conftest.two conftest.dir
2755
2756 fi
2757 if test "${ac_cv_path_install+set}" = set; then
2758 INSTALL=$ac_cv_path_install
2759 else
2760 # As a last resort, use the slow shell script. Don't cache a
2761 # value for INSTALL within a source directory, because that will
2762 # break other packages using the cache if that directory is
2763 # removed, or if the value is a relative name.
2764 INSTALL=$ac_install_sh
2765 fi
2766 fi
2767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2768 $as_echo "$INSTALL" >&6; }
2769
2770 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2771 # It thinks the first close brace ends the variable substitution.
2772 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2773
2774 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2775
2776 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2777
2778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2779 $as_echo_n "checking whether build environment is sane... " >&6; }
2780 # Reject unsafe characters in $srcdir or the absolute working directory
2781 # name. Accept space and tab only in the latter.
2782 am_lf='
2783 '
2784 case `pwd` in
2785 *[\\\"\#\$\&\'\`$am_lf]*)
2786 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2787 esac
2788 case $srcdir in
2789 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2790 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2791 esac
2792
2793 # Do 'set' in a subshell so we don't clobber the current shell's
2794 # arguments. Must try -L first in case configure is actually a
2795 # symlink; some systems play weird games with the mod time of symlinks
2796 # (eg FreeBSD returns the mod time of the symlink's containing
2797 # directory).
2798 if (
2799 am_has_slept=no
2800 for am_try in 1 2; do
2801 echo "timestamp, slept: $am_has_slept" > conftest.file
2802 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2803 if test "$*" = "X"; then
2804 # -L didn't work.
2805 set X `ls -t "$srcdir/configure" conftest.file`
2806 fi
2807 if test "$*" != "X $srcdir/configure conftest.file" \
2808 && test "$*" != "X conftest.file $srcdir/configure"; then
2809
2810 # If neither matched, then we have a broken ls. This can happen
2811 # if, for instance, CONFIG_SHELL is bash and it inherits a
2812 # broken ls alias from the environment. This has actually
2813 # happened. Such a system could not be considered "sane".
2814 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2815 alias in your environment" "$LINENO" 5
2816 fi
2817 if test "$2" = conftest.file || test $am_try -eq 2; then
2818 break
2819 fi
2820 # Just in case.
2821 sleep 1
2822 am_has_slept=yes
2823 done
2824 test "$2" = conftest.file
2825 )
2826 then
2827 # Ok.
2828 :
2829 else
2830 as_fn_error $? "newly created file is older than distributed files!
2831 Check your system clock" "$LINENO" 5
2832 fi
2833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2834 $as_echo "yes" >&6; }
2835 # If we didn't sleep, we still need to ensure time stamps of config.status and
2836 # generated files are strictly newer.
2837 am_sleep_pid=
2838 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2839 ( sleep 1 ) &
2840 am_sleep_pid=$!
2841 fi
2842
2843 rm -f conftest.file
2844
2845 test "$program_prefix" != NONE &&
2846 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2847 # Use a double $ so make ignores it.
2848 test "$program_suffix" != NONE &&
2849 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2850 # Double any \ or $.
2851 # By default was `s,x,x', remove it if useless.
2852 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2853 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2854
2855 # Expand $ac_aux_dir to an absolute path.
2856 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2857
2858 if test x"${MISSING+set}" != xset; then
2859 case $am_aux_dir in
2860 *\ * | *\ *)
2861 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2862 *)
2863 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2864 esac
2865 fi
2866 # Use eval to expand $SHELL
2867 if eval "$MISSING --is-lightweight"; then
2868 am_missing_run="$MISSING "
2869 else
2870 am_missing_run=
2871 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2872 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2873 fi
2874
2875 if test x"${install_sh+set}" != xset; then
2876 case $am_aux_dir in
2877 *\ * | *\ *)
2878 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2879 *)
2880 install_sh="\${SHELL} $am_aux_dir/install-sh"
2881 esac
2882 fi
2883
2884 # Installed binaries are usually stripped using 'strip' when the user
2885 # run "make install-strip". However 'strip' might not be the right
2886 # tool to use in cross-compilation environments, therefore Automake
2887 # will honor the 'STRIP' environment variable to overrule this program.
2888 if test "$cross_compiling" != no; then
2889 if test -n "$ac_tool_prefix"; then
2890 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2891 set dummy ${ac_tool_prefix}strip; ac_word=$2
2892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2893 $as_echo_n "checking for $ac_word... " >&6; }
2894 if ${ac_cv_prog_STRIP+:} false; then :
2895 $as_echo_n "(cached) " >&6
2896 else
2897 if test -n "$STRIP"; then
2898 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2899 else
2900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2901 for as_dir in $PATH
2902 do
2903 IFS=$as_save_IFS
2904 test -z "$as_dir" && as_dir=.
2905 for ac_exec_ext in '' $ac_executable_extensions; do
2906 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2907 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2909 break 2
2910 fi
2911 done
2912 done
2913 IFS=$as_save_IFS
2914
2915 fi
2916 fi
2917 STRIP=$ac_cv_prog_STRIP
2918 if test -n "$STRIP"; then
2919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2920 $as_echo "$STRIP" >&6; }
2921 else
2922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2923 $as_echo "no" >&6; }
2924 fi
2925
2926
2927 fi
2928 if test -z "$ac_cv_prog_STRIP"; then
2929 ac_ct_STRIP=$STRIP
2930 # Extract the first word of "strip", so it can be a program name with args.
2931 set dummy strip; ac_word=$2
2932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2933 $as_echo_n "checking for $ac_word... " >&6; }
2934 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2935 $as_echo_n "(cached) " >&6
2936 else
2937 if test -n "$ac_ct_STRIP"; then
2938 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2939 else
2940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2941 for as_dir in $PATH
2942 do
2943 IFS=$as_save_IFS
2944 test -z "$as_dir" && as_dir=.
2945 for ac_exec_ext in '' $ac_executable_extensions; do
2946 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2947 ac_cv_prog_ac_ct_STRIP="strip"
2948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2949 break 2
2950 fi
2951 done
2952 done
2953 IFS=$as_save_IFS
2954
2955 fi
2956 fi
2957 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2958 if test -n "$ac_ct_STRIP"; then
2959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2960 $as_echo "$ac_ct_STRIP" >&6; }
2961 else
2962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2963 $as_echo "no" >&6; }
2964 fi
2965
2966 if test "x$ac_ct_STRIP" = x; then
2967 STRIP=":"
2968 else
2969 case $cross_compiling:$ac_tool_warned in
2970 yes:)
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2972 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2973 ac_tool_warned=yes ;;
2974 esac
2975 STRIP=$ac_ct_STRIP
2976 fi
2977 else
2978 STRIP="$ac_cv_prog_STRIP"
2979 fi
2980
2981 fi
2982 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2983
2984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2985 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2986 if test -z "$MKDIR_P"; then
2987 if ${ac_cv_path_mkdir+:} false; then :
2988 $as_echo_n "(cached) " >&6
2989 else
2990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2991 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2992 do
2993 IFS=$as_save_IFS
2994 test -z "$as_dir" && as_dir=.
2995 for ac_prog in mkdir gmkdir; do
2996 for ac_exec_ext in '' $ac_executable_extensions; do
2997 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2998 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2999 'mkdir (GNU coreutils) '* | \
3000 'mkdir (coreutils) '* | \
3001 'mkdir (fileutils) '4.1*)
3002 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3003 break 3;;
3004 esac
3005 done
3006 done
3007 done
3008 IFS=$as_save_IFS
3009
3010 fi
3011
3012 test -d ./--version && rmdir ./--version
3013 if test "${ac_cv_path_mkdir+set}" = set; then
3014 MKDIR_P="$ac_cv_path_mkdir -p"
3015 else
3016 # As a last resort, use the slow shell script. Don't cache a
3017 # value for MKDIR_P within a source directory, because that will
3018 # break other packages using the cache if that directory is
3019 # removed, or if the value is a relative name.
3020 MKDIR_P="$ac_install_sh -d"
3021 fi
3022 fi
3023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3024 $as_echo "$MKDIR_P" >&6; }
3025
3026 for ac_prog in gawk mawk nawk awk
3027 do
3028 # Extract the first word of "$ac_prog", so it can be a program name with args.
3029 set dummy $ac_prog; ac_word=$2
3030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3031 $as_echo_n "checking for $ac_word... " >&6; }
3032 if ${ac_cv_prog_AWK+:} false; then :
3033 $as_echo_n "(cached) " >&6
3034 else
3035 if test -n "$AWK"; then
3036 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3037 else
3038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3039 for as_dir in $PATH
3040 do
3041 IFS=$as_save_IFS
3042 test -z "$as_dir" && as_dir=.
3043 for ac_exec_ext in '' $ac_executable_extensions; do
3044 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3045 ac_cv_prog_AWK="$ac_prog"
3046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3047 break 2
3048 fi
3049 done
3050 done
3051 IFS=$as_save_IFS
3052
3053 fi
3054 fi
3055 AWK=$ac_cv_prog_AWK
3056 if test -n "$AWK"; then
3057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3058 $as_echo "$AWK" >&6; }
3059 else
3060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3061 $as_echo "no" >&6; }
3062 fi
3063
3064
3065 test -n "$AWK" && break
3066 done
3067
3068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3069 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3070 set x ${MAKE-make}
3071 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3072 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3073 $as_echo_n "(cached) " >&6
3074 else
3075 cat >conftest.make <<\_ACEOF
3076 SHELL = /bin/sh
3077 all:
3078 @echo '@@@%%%=$(MAKE)=@@@%%%'
3079 _ACEOF
3080 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3081 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3082 *@@@%%%=?*=@@@%%%*)
3083 eval ac_cv_prog_make_${ac_make}_set=yes;;
3084 *)
3085 eval ac_cv_prog_make_${ac_make}_set=no;;
3086 esac
3087 rm -f conftest.make
3088 fi
3089 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3091 $as_echo "yes" >&6; }
3092 SET_MAKE=
3093 else
3094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3095 $as_echo "no" >&6; }
3096 SET_MAKE="MAKE=${MAKE-make}"
3097 fi
3098
3099 rm -rf .tst 2>/dev/null
3100 mkdir .tst 2>/dev/null
3101 if test -d .tst; then
3102 am__leading_dot=.
3103 else
3104 am__leading_dot=_
3105 fi
3106 rmdir .tst 2>/dev/null
3107
3108 # Check whether --enable-silent-rules was given.
3109 if test "${enable_silent_rules+set}" = set; then :
3110 enableval=$enable_silent_rules;
3111 fi
3112
3113 case $enable_silent_rules in # (((
3114 yes) AM_DEFAULT_VERBOSITY=0;;
3115 no) AM_DEFAULT_VERBOSITY=1;;
3116 *) AM_DEFAULT_VERBOSITY=1;;
3117 esac
3118 am_make=${MAKE-make}
3119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3120 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3121 if ${am_cv_make_support_nested_variables+:} false; then :
3122 $as_echo_n "(cached) " >&6
3123 else
3124 if $as_echo 'TRUE=$(BAR$(V))
3125 BAR0=false
3126 BAR1=true
3127 V=1
3128 am__doit:
3129 @$(TRUE)
3130 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3131 am_cv_make_support_nested_variables=yes
3132 else
3133 am_cv_make_support_nested_variables=no
3134 fi
3135 fi
3136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3137 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3138 if test $am_cv_make_support_nested_variables = yes; then
3139 AM_V='$(V)'
3140 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3141 else
3142 AM_V=$AM_DEFAULT_VERBOSITY
3143 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3144 fi
3145 AM_BACKSLASH='\'
3146
3147 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3148 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3149 # is not polluted with repeated "-I."
3150 am__isrc=' -I$(srcdir)'
3151 # test to see if srcdir already configured
3152 if test -f $srcdir/config.status; then
3153 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3154 fi
3155 fi
3156
3157 # test whether we have cygpath
3158 if test -z "$CYGPATH_W"; then
3159 if (cygpath --version) >/dev/null 2>/dev/null; then
3160 CYGPATH_W='cygpath -w'
3161 else
3162 CYGPATH_W=echo
3163 fi
3164 fi
3165
3166
3167 # Define the identity of the package.
3168 PACKAGE='bfd'
3169 VERSION='2.36.50'
3170
3171
3172 cat >>confdefs.h <<_ACEOF
3173 #define PACKAGE "$PACKAGE"
3174 _ACEOF
3175
3176
3177 cat >>confdefs.h <<_ACEOF
3178 #define VERSION "$VERSION"
3179 _ACEOF
3180
3181 # Some tools Automake needs.
3182
3183 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3184
3185
3186 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3187
3188
3189 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3190
3191
3192 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3193
3194
3195 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3196
3197 # For better backward compatibility. To be removed once Automake 1.9.x
3198 # dies out for good. For more background, see:
3199 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3200 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3201 mkdir_p='$(MKDIR_P)'
3202
3203 # We need awk for the "check" target (and possibly the TAP driver). The
3204 # system "awk" is bad on some platforms.
3205 # Always define AMTAR for backward compatibility. Yes, it's still used
3206 # in the wild :-( We should find a proper way to deprecate it ...
3207 AMTAR='$${TAR-tar}'
3208
3209
3210 # We'll loop over all known methods to create a tar archive until one works.
3211 _am_tools='gnutar pax cpio none'
3212
3213 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3214
3215
3216
3217
3218
3219
3220 # POSIX will say in a future version that running "rm -f" with no argument
3221 # is OK; and we want to be able to make that assumption in our Makefile
3222 # recipes. So use an aggressive probe to check that the usage we want is
3223 # actually supported "in the wild" to an acceptable degree.
3224 # See automake bug#10828.
3225 # To make any issue more visible, cause the running configure to be aborted
3226 # by default if the 'rm' program in use doesn't match our expectations; the
3227 # user can still override this though.
3228 if rm -f && rm -fr && rm -rf; then : OK; else
3229 cat >&2 <<'END'
3230 Oops!
3231
3232 Your 'rm' program seems unable to run without file operands specified
3233 on the command line, even when the '-f' option is present. This is contrary
3234 to the behaviour of most rm programs out there, and not conforming with
3235 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3236
3237 Please tell bug-automake@gnu.org about your system, including the value
3238 of your $PATH and any error possibly output before this message. This
3239 can help us improve future automake versions.
3240
3241 END
3242 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3243 echo 'Configuration will proceed anyway, since you have set the' >&2
3244 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3245 echo >&2
3246 else
3247 cat >&2 <<'END'
3248 Aborting the configuration process, to ensure you take notice of the issue.
3249
3250 You can download and install GNU coreutils to get an 'rm' implementation
3251 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3252
3253 If you want to complete the configuration process using your problematic
3254 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3255 to "yes", and re-run configure.
3256
3257 END
3258 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3259 fi
3260 fi
3261
3262
3263 if test -n "$ac_tool_prefix"; then
3264 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3265 set dummy ${ac_tool_prefix}ar; ac_word=$2
3266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3267 $as_echo_n "checking for $ac_word... " >&6; }
3268 if ${ac_cv_prog_AR+:} false; then :
3269 $as_echo_n "(cached) " >&6
3270 else
3271 if test -n "$AR"; then
3272 ac_cv_prog_AR="$AR" # Let the user override the test.
3273 else
3274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3275 for as_dir in $PATH
3276 do
3277 IFS=$as_save_IFS
3278 test -z "$as_dir" && as_dir=.
3279 for ac_exec_ext in '' $ac_executable_extensions; do
3280 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3281 ac_cv_prog_AR="${ac_tool_prefix}ar"
3282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3283 break 2
3284 fi
3285 done
3286 done
3287 IFS=$as_save_IFS
3288
3289 fi
3290 fi
3291 AR=$ac_cv_prog_AR
3292 if test -n "$AR"; then
3293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3294 $as_echo "$AR" >&6; }
3295 else
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3297 $as_echo "no" >&6; }
3298 fi
3299
3300
3301 fi
3302 if test -z "$ac_cv_prog_AR"; then
3303 ac_ct_AR=$AR
3304 # Extract the first word of "ar", so it can be a program name with args.
3305 set dummy ar; ac_word=$2
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3307 $as_echo_n "checking for $ac_word... " >&6; }
3308 if ${ac_cv_prog_ac_ct_AR+:} false; then :
3309 $as_echo_n "(cached) " >&6
3310 else
3311 if test -n "$ac_ct_AR"; then
3312 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3313 else
3314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3315 for as_dir in $PATH
3316 do
3317 IFS=$as_save_IFS
3318 test -z "$as_dir" && as_dir=.
3319 for ac_exec_ext in '' $ac_executable_extensions; do
3320 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3321 ac_cv_prog_ac_ct_AR="ar"
3322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3323 break 2
3324 fi
3325 done
3326 done
3327 IFS=$as_save_IFS
3328
3329 fi
3330 fi
3331 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3332 if test -n "$ac_ct_AR"; then
3333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
3334 $as_echo "$ac_ct_AR" >&6; }
3335 else
3336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3337 $as_echo "no" >&6; }
3338 fi
3339
3340 if test "x$ac_ct_AR" = x; then
3341 AR=""
3342 else
3343 case $cross_compiling:$ac_tool_warned in
3344 yes:)
3345 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3346 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3347 ac_tool_warned=yes ;;
3348 esac
3349 AR=$ac_ct_AR
3350 fi
3351 else
3352 AR="$ac_cv_prog_AR"
3353 fi
3354
3355 if test -n "$ac_tool_prefix"; then
3356 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3357 set dummy ${ac_tool_prefix}ranlib; 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_RANLIB+:} false; then :
3361 $as_echo_n "(cached) " >&6
3362 else
3363 if test -n "$RANLIB"; then
3364 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3365 else
3366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3367 for as_dir in $PATH
3368 do
3369 IFS=$as_save_IFS
3370 test -z "$as_dir" && as_dir=.
3371 for ac_exec_ext in '' $ac_executable_extensions; do
3372 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3373 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3375 break 2
3376 fi
3377 done
3378 done
3379 IFS=$as_save_IFS
3380
3381 fi
3382 fi
3383 RANLIB=$ac_cv_prog_RANLIB
3384 if test -n "$RANLIB"; then
3385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3386 $as_echo "$RANLIB" >&6; }
3387 else
3388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3389 $as_echo "no" >&6; }
3390 fi
3391
3392
3393 fi
3394 if test -z "$ac_cv_prog_RANLIB"; then
3395 ac_ct_RANLIB=$RANLIB
3396 # Extract the first word of "ranlib", so it can be a program name with args.
3397 set dummy ranlib; ac_word=$2
3398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3399 $as_echo_n "checking for $ac_word... " >&6; }
3400 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
3401 $as_echo_n "(cached) " >&6
3402 else
3403 if test -n "$ac_ct_RANLIB"; then
3404 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3405 else
3406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3407 for as_dir in $PATH
3408 do
3409 IFS=$as_save_IFS
3410 test -z "$as_dir" && as_dir=.
3411 for ac_exec_ext in '' $ac_executable_extensions; do
3412 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3413 ac_cv_prog_ac_ct_RANLIB="ranlib"
3414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3415 break 2
3416 fi
3417 done
3418 done
3419 IFS=$as_save_IFS
3420
3421 fi
3422 fi
3423 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3424 if test -n "$ac_ct_RANLIB"; then
3425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3426 $as_echo "$ac_ct_RANLIB" >&6; }
3427 else
3428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3429 $as_echo "no" >&6; }
3430 fi
3431
3432 if test "x$ac_ct_RANLIB" = x; then
3433 RANLIB=":"
3434 else
3435 case $cross_compiling:$ac_tool_warned in
3436 yes:)
3437 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3438 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3439 ac_tool_warned=yes ;;
3440 esac
3441 RANLIB=$ac_ct_RANLIB
3442 fi
3443 else
3444 RANLIB="$ac_cv_prog_RANLIB"
3445 fi
3446
3447
3448 # Check whether --enable-shared was given.
3449 if test "${enable_shared+set}" = set; then :
3450 enableval=$enable_shared; p=${PACKAGE-default}
3451 case $enableval in
3452 yes) enable_shared=yes ;;
3453 no) enable_shared=no ;;
3454 *)
3455 enable_shared=no
3456 # Look at the argument we got. We use all the common list separators.
3457 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3458 for pkg in $enableval; do
3459 IFS="$lt_save_ifs"
3460 if test "X$pkg" = "X$p"; then
3461 enable_shared=yes
3462 fi
3463 done
3464 IFS="$lt_save_ifs"
3465 ;;
3466 esac
3467 else
3468 enable_shared=no
3469 fi
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480 ac_ext=c
3481 ac_cpp='$CPP $CPPFLAGS'
3482 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3483 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3484 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3485 if test -n "$ac_tool_prefix"; then
3486 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3487 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3489 $as_echo_n "checking for $ac_word... " >&6; }
3490 if ${ac_cv_prog_CC+:} false; then :
3491 $as_echo_n "(cached) " >&6
3492 else
3493 if test -n "$CC"; then
3494 ac_cv_prog_CC="$CC" # Let the user override the test.
3495 else
3496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3497 for as_dir in $PATH
3498 do
3499 IFS=$as_save_IFS
3500 test -z "$as_dir" && as_dir=.
3501 for ac_exec_ext in '' $ac_executable_extensions; do
3502 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3503 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3505 break 2
3506 fi
3507 done
3508 done
3509 IFS=$as_save_IFS
3510
3511 fi
3512 fi
3513 CC=$ac_cv_prog_CC
3514 if test -n "$CC"; then
3515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3516 $as_echo "$CC" >&6; }
3517 else
3518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3519 $as_echo "no" >&6; }
3520 fi
3521
3522
3523 fi
3524 if test -z "$ac_cv_prog_CC"; then
3525 ac_ct_CC=$CC
3526 # Extract the first word of "gcc", so it can be a program name with args.
3527 set dummy gcc; ac_word=$2
3528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3529 $as_echo_n "checking for $ac_word... " >&6; }
3530 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3531 $as_echo_n "(cached) " >&6
3532 else
3533 if test -n "$ac_ct_CC"; then
3534 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3535 else
3536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3537 for as_dir in $PATH
3538 do
3539 IFS=$as_save_IFS
3540 test -z "$as_dir" && as_dir=.
3541 for ac_exec_ext in '' $ac_executable_extensions; do
3542 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3543 ac_cv_prog_ac_ct_CC="gcc"
3544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3545 break 2
3546 fi
3547 done
3548 done
3549 IFS=$as_save_IFS
3550
3551 fi
3552 fi
3553 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3554 if test -n "$ac_ct_CC"; then
3555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3556 $as_echo "$ac_ct_CC" >&6; }
3557 else
3558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3559 $as_echo "no" >&6; }
3560 fi
3561
3562 if test "x$ac_ct_CC" = x; then
3563 CC=""
3564 else
3565 case $cross_compiling:$ac_tool_warned in
3566 yes:)
3567 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3568 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3569 ac_tool_warned=yes ;;
3570 esac
3571 CC=$ac_ct_CC
3572 fi
3573 else
3574 CC="$ac_cv_prog_CC"
3575 fi
3576
3577 if test -z "$CC"; then
3578 if test -n "$ac_tool_prefix"; then
3579 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3580 set dummy ${ac_tool_prefix}cc; ac_word=$2
3581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3582 $as_echo_n "checking for $ac_word... " >&6; }
3583 if ${ac_cv_prog_CC+:} false; then :
3584 $as_echo_n "(cached) " >&6
3585 else
3586 if test -n "$CC"; then
3587 ac_cv_prog_CC="$CC" # Let the user override the test.
3588 else
3589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3590 for as_dir in $PATH
3591 do
3592 IFS=$as_save_IFS
3593 test -z "$as_dir" && as_dir=.
3594 for ac_exec_ext in '' $ac_executable_extensions; do
3595 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3596 ac_cv_prog_CC="${ac_tool_prefix}cc"
3597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3598 break 2
3599 fi
3600 done
3601 done
3602 IFS=$as_save_IFS
3603
3604 fi
3605 fi
3606 CC=$ac_cv_prog_CC
3607 if test -n "$CC"; then
3608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3609 $as_echo "$CC" >&6; }
3610 else
3611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3612 $as_echo "no" >&6; }
3613 fi
3614
3615
3616 fi
3617 fi
3618 if test -z "$CC"; then
3619 # Extract the first word of "cc", so it can be a program name with args.
3620 set dummy cc; ac_word=$2
3621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3622 $as_echo_n "checking for $ac_word... " >&6; }
3623 if ${ac_cv_prog_CC+:} false; then :
3624 $as_echo_n "(cached) " >&6
3625 else
3626 if test -n "$CC"; then
3627 ac_cv_prog_CC="$CC" # Let the user override the test.
3628 else
3629 ac_prog_rejected=no
3630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3631 for as_dir in $PATH
3632 do
3633 IFS=$as_save_IFS
3634 test -z "$as_dir" && as_dir=.
3635 for ac_exec_ext in '' $ac_executable_extensions; do
3636 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3637 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3638 ac_prog_rejected=yes
3639 continue
3640 fi
3641 ac_cv_prog_CC="cc"
3642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3643 break 2
3644 fi
3645 done
3646 done
3647 IFS=$as_save_IFS
3648
3649 if test $ac_prog_rejected = yes; then
3650 # We found a bogon in the path, so make sure we never use it.
3651 set dummy $ac_cv_prog_CC
3652 shift
3653 if test $# != 0; then
3654 # We chose a different compiler from the bogus one.
3655 # However, it has the same basename, so the bogon will be chosen
3656 # first if we set CC to just the basename; use the full file name.
3657 shift
3658 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3659 fi
3660 fi
3661 fi
3662 fi
3663 CC=$ac_cv_prog_CC
3664 if test -n "$CC"; then
3665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3666 $as_echo "$CC" >&6; }
3667 else
3668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3669 $as_echo "no" >&6; }
3670 fi
3671
3672
3673 fi
3674 if test -z "$CC"; then
3675 if test -n "$ac_tool_prefix"; then
3676 for ac_prog in cl.exe
3677 do
3678 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3679 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3681 $as_echo_n "checking for $ac_word... " >&6; }
3682 if ${ac_cv_prog_CC+:} false; then :
3683 $as_echo_n "(cached) " >&6
3684 else
3685 if test -n "$CC"; then
3686 ac_cv_prog_CC="$CC" # Let the user override the test.
3687 else
3688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3689 for as_dir in $PATH
3690 do
3691 IFS=$as_save_IFS
3692 test -z "$as_dir" && as_dir=.
3693 for ac_exec_ext in '' $ac_executable_extensions; do
3694 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3695 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3697 break 2
3698 fi
3699 done
3700 done
3701 IFS=$as_save_IFS
3702
3703 fi
3704 fi
3705 CC=$ac_cv_prog_CC
3706 if test -n "$CC"; then
3707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3708 $as_echo "$CC" >&6; }
3709 else
3710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3711 $as_echo "no" >&6; }
3712 fi
3713
3714
3715 test -n "$CC" && break
3716 done
3717 fi
3718 if test -z "$CC"; then
3719 ac_ct_CC=$CC
3720 for ac_prog in cl.exe
3721 do
3722 # Extract the first word of "$ac_prog", so it can be a program name with args.
3723 set dummy $ac_prog; ac_word=$2
3724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3725 $as_echo_n "checking for $ac_word... " >&6; }
3726 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3727 $as_echo_n "(cached) " >&6
3728 else
3729 if test -n "$ac_ct_CC"; then
3730 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3731 else
3732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3733 for as_dir in $PATH
3734 do
3735 IFS=$as_save_IFS
3736 test -z "$as_dir" && as_dir=.
3737 for ac_exec_ext in '' $ac_executable_extensions; do
3738 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3739 ac_cv_prog_ac_ct_CC="$ac_prog"
3740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3741 break 2
3742 fi
3743 done
3744 done
3745 IFS=$as_save_IFS
3746
3747 fi
3748 fi
3749 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3750 if test -n "$ac_ct_CC"; then
3751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3752 $as_echo "$ac_ct_CC" >&6; }
3753 else
3754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3755 $as_echo "no" >&6; }
3756 fi
3757
3758
3759 test -n "$ac_ct_CC" && break
3760 done
3761
3762 if test "x$ac_ct_CC" = x; then
3763 CC=""
3764 else
3765 case $cross_compiling:$ac_tool_warned in
3766 yes:)
3767 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3768 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3769 ac_tool_warned=yes ;;
3770 esac
3771 CC=$ac_ct_CC
3772 fi
3773 fi
3774
3775 fi
3776
3777
3778 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3779 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3780 as_fn_error $? "no acceptable C compiler found in \$PATH
3781 See \`config.log' for more details" "$LINENO" 5; }
3782
3783 # Provide some information about the compiler.
3784 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3785 set X $ac_compile
3786 ac_compiler=$2
3787 for ac_option in --version -v -V -qversion; do
3788 { { ac_try="$ac_compiler $ac_option >&5"
3789 case "(($ac_try" in
3790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3791 *) ac_try_echo=$ac_try;;
3792 esac
3793 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3794 $as_echo "$ac_try_echo"; } >&5
3795 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3796 ac_status=$?
3797 if test -s conftest.err; then
3798 sed '10a\
3799 ... rest of stderr output deleted ...
3800 10q' conftest.err >conftest.er1
3801 cat conftest.er1 >&5
3802 fi
3803 rm -f conftest.er1 conftest.err
3804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3805 test $ac_status = 0; }
3806 done
3807
3808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3809 /* end confdefs.h. */
3810
3811 int
3812 main ()
3813 {
3814
3815 ;
3816 return 0;
3817 }
3818 _ACEOF
3819 ac_clean_files_save=$ac_clean_files
3820 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3821 # Try to create an executable without -o first, disregard a.out.
3822 # It will help us diagnose broken compilers, and finding out an intuition
3823 # of exeext.
3824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3825 $as_echo_n "checking whether the C compiler works... " >&6; }
3826 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3827
3828 # The possible output files:
3829 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3830
3831 ac_rmfiles=
3832 for ac_file in $ac_files
3833 do
3834 case $ac_file in
3835 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3836 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3837 esac
3838 done
3839 rm -f $ac_rmfiles
3840
3841 if { { ac_try="$ac_link_default"
3842 case "(($ac_try" in
3843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3844 *) ac_try_echo=$ac_try;;
3845 esac
3846 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3847 $as_echo "$ac_try_echo"; } >&5
3848 (eval "$ac_link_default") 2>&5
3849 ac_status=$?
3850 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3851 test $ac_status = 0; }; then :
3852 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3853 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3854 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3855 # so that the user can short-circuit this test for compilers unknown to
3856 # Autoconf.
3857 for ac_file in $ac_files ''
3858 do
3859 test -f "$ac_file" || continue
3860 case $ac_file in
3861 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3862 ;;
3863 [ab].out )
3864 # We found the default executable, but exeext='' is most
3865 # certainly right.
3866 break;;
3867 *.* )
3868 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3869 then :; else
3870 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3871 fi
3872 # We set ac_cv_exeext here because the later test for it is not
3873 # safe: cross compilers may not add the suffix if given an `-o'
3874 # argument, so we may need to know it at that point already.
3875 # Even if this section looks crufty: it has the advantage of
3876 # actually working.
3877 break;;
3878 * )
3879 break;;
3880 esac
3881 done
3882 test "$ac_cv_exeext" = no && ac_cv_exeext=
3883
3884 else
3885 ac_file=''
3886 fi
3887 if test -z "$ac_file"; then :
3888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3889 $as_echo "no" >&6; }
3890 $as_echo "$as_me: failed program was:" >&5
3891 sed 's/^/| /' conftest.$ac_ext >&5
3892
3893 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3894 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3895 as_fn_error 77 "C compiler cannot create executables
3896 See \`config.log' for more details" "$LINENO" 5; }
3897 else
3898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3899 $as_echo "yes" >&6; }
3900 fi
3901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3902 $as_echo_n "checking for C compiler default output file name... " >&6; }
3903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3904 $as_echo "$ac_file" >&6; }
3905 ac_exeext=$ac_cv_exeext
3906
3907 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3908 ac_clean_files=$ac_clean_files_save
3909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3910 $as_echo_n "checking for suffix of executables... " >&6; }
3911 if { { ac_try="$ac_link"
3912 case "(($ac_try" in
3913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3914 *) ac_try_echo=$ac_try;;
3915 esac
3916 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3917 $as_echo "$ac_try_echo"; } >&5
3918 (eval "$ac_link") 2>&5
3919 ac_status=$?
3920 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3921 test $ac_status = 0; }; then :
3922 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3923 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3924 # work properly (i.e., refer to `conftest.exe'), while it won't with
3925 # `rm'.
3926 for ac_file in conftest.exe conftest conftest.*; do
3927 test -f "$ac_file" || continue
3928 case $ac_file in
3929 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3930 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3931 break;;
3932 * ) break;;
3933 esac
3934 done
3935 else
3936 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3937 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3938 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3939 See \`config.log' for more details" "$LINENO" 5; }
3940 fi
3941 rm -f conftest conftest$ac_cv_exeext
3942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3943 $as_echo "$ac_cv_exeext" >&6; }
3944
3945 rm -f conftest.$ac_ext
3946 EXEEXT=$ac_cv_exeext
3947 ac_exeext=$EXEEXT
3948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3949 /* end confdefs.h. */
3950 #include <stdio.h>
3951 int
3952 main ()
3953 {
3954 FILE *f = fopen ("conftest.out", "w");
3955 return ferror (f) || fclose (f) != 0;
3956
3957 ;
3958 return 0;
3959 }
3960 _ACEOF
3961 ac_clean_files="$ac_clean_files conftest.out"
3962 # Check that the compiler produces executables we can run. If not, either
3963 # the compiler is broken, or we cross compile.
3964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3965 $as_echo_n "checking whether we are cross compiling... " >&6; }
3966 if test "$cross_compiling" != yes; then
3967 { { ac_try="$ac_link"
3968 case "(($ac_try" in
3969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3970 *) ac_try_echo=$ac_try;;
3971 esac
3972 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3973 $as_echo "$ac_try_echo"; } >&5
3974 (eval "$ac_link") 2>&5
3975 ac_status=$?
3976 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3977 test $ac_status = 0; }
3978 if { ac_try='./conftest$ac_cv_exeext'
3979 { { case "(($ac_try" in
3980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3981 *) ac_try_echo=$ac_try;;
3982 esac
3983 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3984 $as_echo "$ac_try_echo"; } >&5
3985 (eval "$ac_try") 2>&5
3986 ac_status=$?
3987 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3988 test $ac_status = 0; }; }; then
3989 cross_compiling=no
3990 else
3991 if test "$cross_compiling" = maybe; then
3992 cross_compiling=yes
3993 else
3994 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3995 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3996 as_fn_error $? "cannot run C compiled programs.
3997 If you meant to cross compile, use \`--host'.
3998 See \`config.log' for more details" "$LINENO" 5; }
3999 fi
4000 fi
4001 fi
4002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4003 $as_echo "$cross_compiling" >&6; }
4004
4005 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4006 ac_clean_files=$ac_clean_files_save
4007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4008 $as_echo_n "checking for suffix of object files... " >&6; }
4009 if ${ac_cv_objext+:} false; then :
4010 $as_echo_n "(cached) " >&6
4011 else
4012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4013 /* end confdefs.h. */
4014
4015 int
4016 main ()
4017 {
4018
4019 ;
4020 return 0;
4021 }
4022 _ACEOF
4023 rm -f conftest.o conftest.obj
4024 if { { ac_try="$ac_compile"
4025 case "(($ac_try" in
4026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4027 *) ac_try_echo=$ac_try;;
4028 esac
4029 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4030 $as_echo "$ac_try_echo"; } >&5
4031 (eval "$ac_compile") 2>&5
4032 ac_status=$?
4033 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4034 test $ac_status = 0; }; then :
4035 for ac_file in conftest.o conftest.obj conftest.*; do
4036 test -f "$ac_file" || continue;
4037 case $ac_file in
4038 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4039 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4040 break;;
4041 esac
4042 done
4043 else
4044 $as_echo "$as_me: failed program was:" >&5
4045 sed 's/^/| /' conftest.$ac_ext >&5
4046
4047 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4048 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4049 as_fn_error $? "cannot compute suffix of object files: cannot compile
4050 See \`config.log' for more details" "$LINENO" 5; }
4051 fi
4052 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4053 fi
4054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4055 $as_echo "$ac_cv_objext" >&6; }
4056 OBJEXT=$ac_cv_objext
4057 ac_objext=$OBJEXT
4058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4059 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4060 if ${ac_cv_c_compiler_gnu+:} false; then :
4061 $as_echo_n "(cached) " >&6
4062 else
4063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4064 /* end confdefs.h. */
4065
4066 int
4067 main ()
4068 {
4069 #ifndef __GNUC__
4070 choke me
4071 #endif
4072
4073 ;
4074 return 0;
4075 }
4076 _ACEOF
4077 if ac_fn_c_try_compile "$LINENO"; then :
4078 ac_compiler_gnu=yes
4079 else
4080 ac_compiler_gnu=no
4081 fi
4082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4083 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4084
4085 fi
4086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4087 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4088 if test $ac_compiler_gnu = yes; then
4089 GCC=yes
4090 else
4091 GCC=
4092 fi
4093 ac_test_CFLAGS=${CFLAGS+set}
4094 ac_save_CFLAGS=$CFLAGS
4095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4096 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4097 if ${ac_cv_prog_cc_g+:} false; then :
4098 $as_echo_n "(cached) " >&6
4099 else
4100 ac_save_c_werror_flag=$ac_c_werror_flag
4101 ac_c_werror_flag=yes
4102 ac_cv_prog_cc_g=no
4103 CFLAGS="-g"
4104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4105 /* end confdefs.h. */
4106
4107 int
4108 main ()
4109 {
4110
4111 ;
4112 return 0;
4113 }
4114 _ACEOF
4115 if ac_fn_c_try_compile "$LINENO"; then :
4116 ac_cv_prog_cc_g=yes
4117 else
4118 CFLAGS=""
4119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4120 /* end confdefs.h. */
4121
4122 int
4123 main ()
4124 {
4125
4126 ;
4127 return 0;
4128 }
4129 _ACEOF
4130 if ac_fn_c_try_compile "$LINENO"; then :
4131
4132 else
4133 ac_c_werror_flag=$ac_save_c_werror_flag
4134 CFLAGS="-g"
4135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4136 /* end confdefs.h. */
4137
4138 int
4139 main ()
4140 {
4141
4142 ;
4143 return 0;
4144 }
4145 _ACEOF
4146 if ac_fn_c_try_compile "$LINENO"; then :
4147 ac_cv_prog_cc_g=yes
4148 fi
4149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4150 fi
4151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4152 fi
4153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4154 ac_c_werror_flag=$ac_save_c_werror_flag
4155 fi
4156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4157 $as_echo "$ac_cv_prog_cc_g" >&6; }
4158 if test "$ac_test_CFLAGS" = set; then
4159 CFLAGS=$ac_save_CFLAGS
4160 elif test $ac_cv_prog_cc_g = yes; then
4161 if test "$GCC" = yes; then
4162 CFLAGS="-g -O2"
4163 else
4164 CFLAGS="-g"
4165 fi
4166 else
4167 if test "$GCC" = yes; then
4168 CFLAGS="-O2"
4169 else
4170 CFLAGS=
4171 fi
4172 fi
4173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4174 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4175 if ${ac_cv_prog_cc_c89+:} false; then :
4176 $as_echo_n "(cached) " >&6
4177 else
4178 ac_cv_prog_cc_c89=no
4179 ac_save_CC=$CC
4180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4181 /* end confdefs.h. */
4182 #include <stdarg.h>
4183 #include <stdio.h>
4184 struct stat;
4185 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4186 struct buf { int x; };
4187 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4188 static char *e (p, i)
4189 char **p;
4190 int i;
4191 {
4192 return p[i];
4193 }
4194 static char *f (char * (*g) (char **, int), char **p, ...)
4195 {
4196 char *s;
4197 va_list v;
4198 va_start (v,p);
4199 s = g (p, va_arg (v,int));
4200 va_end (v);
4201 return s;
4202 }
4203
4204 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4205 function prototypes and stuff, but not '\xHH' hex character constants.
4206 These don't provoke an error unfortunately, instead are silently treated
4207 as 'x'. The following induces an error, until -std is added to get
4208 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4209 array size at least. It's necessary to write '\x00'==0 to get something
4210 that's true only with -std. */
4211 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4212
4213 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4214 inside strings and character constants. */
4215 #define FOO(x) 'x'
4216 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4217
4218 int test (int i, double x);
4219 struct s1 {int (*f) (int a);};
4220 struct s2 {int (*f) (double a);};
4221 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4222 int argc;
4223 char **argv;
4224 int
4225 main ()
4226 {
4227 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4228 ;
4229 return 0;
4230 }
4231 _ACEOF
4232 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4233 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4234 do
4235 CC="$ac_save_CC $ac_arg"
4236 if ac_fn_c_try_compile "$LINENO"; then :
4237 ac_cv_prog_cc_c89=$ac_arg
4238 fi
4239 rm -f core conftest.err conftest.$ac_objext
4240 test "x$ac_cv_prog_cc_c89" != "xno" && break
4241 done
4242 rm -f conftest.$ac_ext
4243 CC=$ac_save_CC
4244
4245 fi
4246 # AC_CACHE_VAL
4247 case "x$ac_cv_prog_cc_c89" in
4248 x)
4249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4250 $as_echo "none needed" >&6; } ;;
4251 xno)
4252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4253 $as_echo "unsupported" >&6; } ;;
4254 *)
4255 CC="$CC $ac_cv_prog_cc_c89"
4256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4257 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4258 esac
4259 if test "x$ac_cv_prog_cc_c89" != xno; then :
4260
4261 fi
4262
4263 ac_ext=c
4264 ac_cpp='$CPP $CPPFLAGS'
4265 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4266 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4267 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4268
4269 ac_ext=c
4270 ac_cpp='$CPP $CPPFLAGS'
4271 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4272 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4273 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4275 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4276 if ${am_cv_prog_cc_c_o+:} false; then :
4277 $as_echo_n "(cached) " >&6
4278 else
4279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4280 /* end confdefs.h. */
4281
4282 int
4283 main ()
4284 {
4285
4286 ;
4287 return 0;
4288 }
4289 _ACEOF
4290 # Make sure it works both with $CC and with simple cc.
4291 # Following AC_PROG_CC_C_O, we do the test twice because some
4292 # compilers refuse to overwrite an existing .o file with -o,
4293 # though they will create one.
4294 am_cv_prog_cc_c_o=yes
4295 for am_i in 1 2; do
4296 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4297 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4298 ac_status=$?
4299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4300 (exit $ac_status); } \
4301 && test -f conftest2.$ac_objext; then
4302 : OK
4303 else
4304 am_cv_prog_cc_c_o=no
4305 break
4306 fi
4307 done
4308 rm -f core conftest*
4309 unset am_i
4310 fi
4311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4312 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4313 if test "$am_cv_prog_cc_c_o" != yes; then
4314 # Losing compiler, so override with the script.
4315 # FIXME: It is wrong to rewrite CC.
4316 # But if we don't then we get into trouble of one sort or another.
4317 # A longer-term fix would be to have automake use am__CC in this case,
4318 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4319 CC="$am_aux_dir/compile $CC"
4320 fi
4321 ac_ext=c
4322 ac_cpp='$CPP $CPPFLAGS'
4323 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4324 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4325 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4326
4327 DEPDIR="${am__leading_dot}deps"
4328
4329 ac_config_commands="$ac_config_commands depfiles"
4330
4331
4332 am_make=${MAKE-make}
4333 cat > confinc << 'END'
4334 am__doit:
4335 @echo this is the am__doit target
4336 .PHONY: am__doit
4337 END
4338 # If we don't find an include directive, just comment out the code.
4339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4340 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4341 am__include="#"
4342 am__quote=
4343 _am_result=none
4344 # First try GNU make style include.
4345 echo "include confinc" > confmf
4346 # Ignore all kinds of additional output from 'make'.
4347 case `$am_make -s -f confmf 2> /dev/null` in #(
4348 *the\ am__doit\ target*)
4349 am__include=include
4350 am__quote=
4351 _am_result=GNU
4352 ;;
4353 esac
4354 # Now try BSD make style include.
4355 if test "$am__include" = "#"; then
4356 echo '.include "confinc"' > confmf
4357 case `$am_make -s -f confmf 2> /dev/null` in #(
4358 *the\ am__doit\ target*)
4359 am__include=.include
4360 am__quote="\""
4361 _am_result=BSD
4362 ;;
4363 esac
4364 fi
4365
4366
4367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4368 $as_echo "$_am_result" >&6; }
4369 rm -f confinc confmf
4370
4371 # Check whether --enable-dependency-tracking was given.
4372 if test "${enable_dependency_tracking+set}" = set; then :
4373 enableval=$enable_dependency_tracking;
4374 fi
4375
4376 if test "x$enable_dependency_tracking" != xno; then
4377 am_depcomp="$ac_aux_dir/depcomp"
4378 AMDEPBACKSLASH='\'
4379 am__nodep='_no'
4380 fi
4381 if test "x$enable_dependency_tracking" != xno; then
4382 AMDEP_TRUE=
4383 AMDEP_FALSE='#'
4384 else
4385 AMDEP_TRUE='#'
4386 AMDEP_FALSE=
4387 fi
4388
4389
4390
4391 depcc="$CC" am_compiler_list=
4392
4393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4394 $as_echo_n "checking dependency style of $depcc... " >&6; }
4395 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4396 $as_echo_n "(cached) " >&6
4397 else
4398 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4399 # We make a subdir and do the tests there. Otherwise we can end up
4400 # making bogus files that we don't know about and never remove. For
4401 # instance it was reported that on HP-UX the gcc test will end up
4402 # making a dummy file named 'D' -- because '-MD' means "put the output
4403 # in D".
4404 rm -rf conftest.dir
4405 mkdir conftest.dir
4406 # Copy depcomp to subdir because otherwise we won't find it if we're
4407 # using a relative directory.
4408 cp "$am_depcomp" conftest.dir
4409 cd conftest.dir
4410 # We will build objects and dependencies in a subdirectory because
4411 # it helps to detect inapplicable dependency modes. For instance
4412 # both Tru64's cc and ICC support -MD to output dependencies as a
4413 # side effect of compilation, but ICC will put the dependencies in
4414 # the current directory while Tru64 will put them in the object
4415 # directory.
4416 mkdir sub
4417
4418 am_cv_CC_dependencies_compiler_type=none
4419 if test "$am_compiler_list" = ""; then
4420 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4421 fi
4422 am__universal=false
4423 case " $depcc " in #(
4424 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4425 esac
4426
4427 for depmode in $am_compiler_list; do
4428 # Setup a source with many dependencies, because some compilers
4429 # like to wrap large dependency lists on column 80 (with \), and
4430 # we should not choose a depcomp mode which is confused by this.
4431 #
4432 # We need to recreate these files for each test, as the compiler may
4433 # overwrite some of them when testing with obscure command lines.
4434 # This happens at least with the AIX C compiler.
4435 : > sub/conftest.c
4436 for i in 1 2 3 4 5 6; do
4437 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4438 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4439 # Solaris 10 /bin/sh.
4440 echo '/* dummy */' > sub/conftst$i.h
4441 done
4442 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4443
4444 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4445 # mode. It turns out that the SunPro C++ compiler does not properly
4446 # handle '-M -o', and we need to detect this. Also, some Intel
4447 # versions had trouble with output in subdirs.
4448 am__obj=sub/conftest.${OBJEXT-o}
4449 am__minus_obj="-o $am__obj"
4450 case $depmode in
4451 gcc)
4452 # This depmode causes a compiler race in universal mode.
4453 test "$am__universal" = false || continue
4454 ;;
4455 nosideeffect)
4456 # After this tag, mechanisms are not by side-effect, so they'll
4457 # only be used when explicitly requested.
4458 if test "x$enable_dependency_tracking" = xyes; then
4459 continue
4460 else
4461 break
4462 fi
4463 ;;
4464 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4465 # This compiler won't grok '-c -o', but also, the minuso test has
4466 # not run yet. These depmodes are late enough in the game, and
4467 # so weak that their functioning should not be impacted.
4468 am__obj=conftest.${OBJEXT-o}
4469 am__minus_obj=
4470 ;;
4471 none) break ;;
4472 esac
4473 if depmode=$depmode \
4474 source=sub/conftest.c object=$am__obj \
4475 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4476 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4477 >/dev/null 2>conftest.err &&
4478 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4479 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4480 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4481 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4482 # icc doesn't choke on unknown options, it will just issue warnings
4483 # or remarks (even with -Werror). So we grep stderr for any message
4484 # that says an option was ignored or not supported.
4485 # When given -MP, icc 7.0 and 7.1 complain thusly:
4486 # icc: Command line warning: ignoring option '-M'; no argument required
4487 # The diagnosis changed in icc 8.0:
4488 # icc: Command line remark: option '-MP' not supported
4489 if (grep 'ignoring option' conftest.err ||
4490 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4491 am_cv_CC_dependencies_compiler_type=$depmode
4492 break
4493 fi
4494 fi
4495 done
4496
4497 cd ..
4498 rm -rf conftest.dir
4499 else
4500 am_cv_CC_dependencies_compiler_type=none
4501 fi
4502
4503 fi
4504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4505 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4506 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4507
4508 if
4509 test "x$enable_dependency_tracking" != xno \
4510 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4511 am__fastdepCC_TRUE=
4512 am__fastdepCC_FALSE='#'
4513 else
4514 am__fastdepCC_TRUE='#'
4515 am__fastdepCC_FALSE=
4516 fi
4517
4518
4519
4520 ac_ext=c
4521 ac_cpp='$CPP $CPPFLAGS'
4522 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4523 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4524 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4526 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4527 # On Suns, sometimes $CPP names a directory.
4528 if test -n "$CPP" && test -d "$CPP"; then
4529 CPP=
4530 fi
4531 if test -z "$CPP"; then
4532 if ${ac_cv_prog_CPP+:} false; then :
4533 $as_echo_n "(cached) " >&6
4534 else
4535 # Double quotes because CPP needs to be expanded
4536 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4537 do
4538 ac_preproc_ok=false
4539 for ac_c_preproc_warn_flag in '' yes
4540 do
4541 # Use a header file that comes with gcc, so configuring glibc
4542 # with a fresh cross-compiler works.
4543 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4544 # <limits.h> exists even on freestanding compilers.
4545 # On the NeXT, cc -E runs the code through the compiler's parser,
4546 # not just through cpp. "Syntax error" is here to catch this case.
4547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4548 /* end confdefs.h. */
4549 #ifdef __STDC__
4550 # include <limits.h>
4551 #else
4552 # include <assert.h>
4553 #endif
4554 Syntax error
4555 _ACEOF
4556 if ac_fn_c_try_cpp "$LINENO"; then :
4557
4558 else
4559 # Broken: fails on valid input.
4560 continue
4561 fi
4562 rm -f conftest.err conftest.i conftest.$ac_ext
4563
4564 # OK, works on sane cases. Now check whether nonexistent headers
4565 # can be detected and how.
4566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4567 /* end confdefs.h. */
4568 #include <ac_nonexistent.h>
4569 _ACEOF
4570 if ac_fn_c_try_cpp "$LINENO"; then :
4571 # Broken: success on invalid input.
4572 continue
4573 else
4574 # Passes both tests.
4575 ac_preproc_ok=:
4576 break
4577 fi
4578 rm -f conftest.err conftest.i conftest.$ac_ext
4579
4580 done
4581 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4582 rm -f conftest.i conftest.err conftest.$ac_ext
4583 if $ac_preproc_ok; then :
4584 break
4585 fi
4586
4587 done
4588 ac_cv_prog_CPP=$CPP
4589
4590 fi
4591 CPP=$ac_cv_prog_CPP
4592 else
4593 ac_cv_prog_CPP=$CPP
4594 fi
4595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4596 $as_echo "$CPP" >&6; }
4597 ac_preproc_ok=false
4598 for ac_c_preproc_warn_flag in '' yes
4599 do
4600 # Use a header file that comes with gcc, so configuring glibc
4601 # with a fresh cross-compiler works.
4602 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4603 # <limits.h> exists even on freestanding compilers.
4604 # On the NeXT, cc -E runs the code through the compiler's parser,
4605 # not just through cpp. "Syntax error" is here to catch this case.
4606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4607 /* end confdefs.h. */
4608 #ifdef __STDC__
4609 # include <limits.h>
4610 #else
4611 # include <assert.h>
4612 #endif
4613 Syntax error
4614 _ACEOF
4615 if ac_fn_c_try_cpp "$LINENO"; then :
4616
4617 else
4618 # Broken: fails on valid input.
4619 continue
4620 fi
4621 rm -f conftest.err conftest.i conftest.$ac_ext
4622
4623 # OK, works on sane cases. Now check whether nonexistent headers
4624 # can be detected and how.
4625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4626 /* end confdefs.h. */
4627 #include <ac_nonexistent.h>
4628 _ACEOF
4629 if ac_fn_c_try_cpp "$LINENO"; then :
4630 # Broken: success on invalid input.
4631 continue
4632 else
4633 # Passes both tests.
4634 ac_preproc_ok=:
4635 break
4636 fi
4637 rm -f conftest.err conftest.i conftest.$ac_ext
4638
4639 done
4640 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4641 rm -f conftest.i conftest.err conftest.$ac_ext
4642 if $ac_preproc_ok; then :
4643
4644 else
4645 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4646 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4647 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4648 See \`config.log' for more details" "$LINENO" 5; }
4649 fi
4650
4651 ac_ext=c
4652 ac_cpp='$CPP $CPPFLAGS'
4653 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4654 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4655 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4656
4657
4658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4659 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4660 if ${ac_cv_path_GREP+:} false; then :
4661 $as_echo_n "(cached) " >&6
4662 else
4663 if test -z "$GREP"; then
4664 ac_path_GREP_found=false
4665 # Loop through the user's path and test for each of PROGNAME-LIST
4666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4667 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4668 do
4669 IFS=$as_save_IFS
4670 test -z "$as_dir" && as_dir=.
4671 for ac_prog in grep ggrep; do
4672 for ac_exec_ext in '' $ac_executable_extensions; do
4673 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4674 as_fn_executable_p "$ac_path_GREP" || continue
4675 # Check for GNU ac_path_GREP and select it if it is found.
4676 # Check for GNU $ac_path_GREP
4677 case `"$ac_path_GREP" --version 2>&1` in
4678 *GNU*)
4679 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4680 *)
4681 ac_count=0
4682 $as_echo_n 0123456789 >"conftest.in"
4683 while :
4684 do
4685 cat "conftest.in" "conftest.in" >"conftest.tmp"
4686 mv "conftest.tmp" "conftest.in"
4687 cp "conftest.in" "conftest.nl"
4688 $as_echo 'GREP' >> "conftest.nl"
4689 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4690 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4691 as_fn_arith $ac_count + 1 && ac_count=$as_val
4692 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4693 # Best one so far, save it but keep looking for a better one
4694 ac_cv_path_GREP="$ac_path_GREP"
4695 ac_path_GREP_max=$ac_count
4696 fi
4697 # 10*(2^10) chars as input seems more than enough
4698 test $ac_count -gt 10 && break
4699 done
4700 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4701 esac
4702
4703 $ac_path_GREP_found && break 3
4704 done
4705 done
4706 done
4707 IFS=$as_save_IFS
4708 if test -z "$ac_cv_path_GREP"; then
4709 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4710 fi
4711 else
4712 ac_cv_path_GREP=$GREP
4713 fi
4714
4715 fi
4716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4717 $as_echo "$ac_cv_path_GREP" >&6; }
4718 GREP="$ac_cv_path_GREP"
4719
4720
4721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4722 $as_echo_n "checking for egrep... " >&6; }
4723 if ${ac_cv_path_EGREP+:} false; then :
4724 $as_echo_n "(cached) " >&6
4725 else
4726 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4727 then ac_cv_path_EGREP="$GREP -E"
4728 else
4729 if test -z "$EGREP"; then
4730 ac_path_EGREP_found=false
4731 # Loop through the user's path and test for each of PROGNAME-LIST
4732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4733 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4734 do
4735 IFS=$as_save_IFS
4736 test -z "$as_dir" && as_dir=.
4737 for ac_prog in egrep; do
4738 for ac_exec_ext in '' $ac_executable_extensions; do
4739 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4740 as_fn_executable_p "$ac_path_EGREP" || continue
4741 # Check for GNU ac_path_EGREP and select it if it is found.
4742 # Check for GNU $ac_path_EGREP
4743 case `"$ac_path_EGREP" --version 2>&1` in
4744 *GNU*)
4745 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4746 *)
4747 ac_count=0
4748 $as_echo_n 0123456789 >"conftest.in"
4749 while :
4750 do
4751 cat "conftest.in" "conftest.in" >"conftest.tmp"
4752 mv "conftest.tmp" "conftest.in"
4753 cp "conftest.in" "conftest.nl"
4754 $as_echo 'EGREP' >> "conftest.nl"
4755 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4756 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4757 as_fn_arith $ac_count + 1 && ac_count=$as_val
4758 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4759 # Best one so far, save it but keep looking for a better one
4760 ac_cv_path_EGREP="$ac_path_EGREP"
4761 ac_path_EGREP_max=$ac_count
4762 fi
4763 # 10*(2^10) chars as input seems more than enough
4764 test $ac_count -gt 10 && break
4765 done
4766 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4767 esac
4768
4769 $ac_path_EGREP_found && break 3
4770 done
4771 done
4772 done
4773 IFS=$as_save_IFS
4774 if test -z "$ac_cv_path_EGREP"; then
4775 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4776 fi
4777 else
4778 ac_cv_path_EGREP=$EGREP
4779 fi
4780
4781 fi
4782 fi
4783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4784 $as_echo "$ac_cv_path_EGREP" >&6; }
4785 EGREP="$ac_cv_path_EGREP"
4786
4787
4788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4789 $as_echo_n "checking for ANSI C header files... " >&6; }
4790 if ${ac_cv_header_stdc+:} false; then :
4791 $as_echo_n "(cached) " >&6
4792 else
4793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4794 /* end confdefs.h. */
4795 #include <stdlib.h>
4796 #include <stdarg.h>
4797 #include <string.h>
4798 #include <float.h>
4799
4800 int
4801 main ()
4802 {
4803
4804 ;
4805 return 0;
4806 }
4807 _ACEOF
4808 if ac_fn_c_try_compile "$LINENO"; then :
4809 ac_cv_header_stdc=yes
4810 else
4811 ac_cv_header_stdc=no
4812 fi
4813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4814
4815 if test $ac_cv_header_stdc = yes; then
4816 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4818 /* end confdefs.h. */
4819 #include <string.h>
4820
4821 _ACEOF
4822 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4823 $EGREP "memchr" >/dev/null 2>&1; then :
4824
4825 else
4826 ac_cv_header_stdc=no
4827 fi
4828 rm -f conftest*
4829
4830 fi
4831
4832 if test $ac_cv_header_stdc = yes; then
4833 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4835 /* end confdefs.h. */
4836 #include <stdlib.h>
4837
4838 _ACEOF
4839 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4840 $EGREP "free" >/dev/null 2>&1; then :
4841
4842 else
4843 ac_cv_header_stdc=no
4844 fi
4845 rm -f conftest*
4846
4847 fi
4848
4849 if test $ac_cv_header_stdc = yes; then
4850 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4851 if test "$cross_compiling" = yes; then :
4852 :
4853 else
4854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4855 /* end confdefs.h. */
4856 #include <ctype.h>
4857 #include <stdlib.h>
4858 #if ((' ' & 0x0FF) == 0x020)
4859 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4860 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4861 #else
4862 # define ISLOWER(c) \
4863 (('a' <= (c) && (c) <= 'i') \
4864 || ('j' <= (c) && (c) <= 'r') \
4865 || ('s' <= (c) && (c) <= 'z'))
4866 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4867 #endif
4868
4869 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4870 int
4871 main ()
4872 {
4873 int i;
4874 for (i = 0; i < 256; i++)
4875 if (XOR (islower (i), ISLOWER (i))
4876 || toupper (i) != TOUPPER (i))
4877 return 2;
4878 return 0;
4879 }
4880 _ACEOF
4881 if ac_fn_c_try_run "$LINENO"; then :
4882
4883 else
4884 ac_cv_header_stdc=no
4885 fi
4886 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4887 conftest.$ac_objext conftest.beam conftest.$ac_ext
4888 fi
4889
4890 fi
4891 fi
4892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4893 $as_echo "$ac_cv_header_stdc" >&6; }
4894 if test $ac_cv_header_stdc = yes; then
4895
4896 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4897
4898 fi
4899
4900 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4901 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4902 inttypes.h stdint.h unistd.h
4903 do :
4904 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4905 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4906 "
4907 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4908 cat >>confdefs.h <<_ACEOF
4909 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4910 _ACEOF
4911
4912 fi
4913
4914 done
4915
4916
4917
4918 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4919 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4920 MINIX=yes
4921 else
4922 MINIX=
4923 fi
4924
4925
4926 if test "$MINIX" = yes; then
4927
4928 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4929
4930
4931 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4932
4933
4934 $as_echo "#define _MINIX 1" >>confdefs.h
4935
4936 fi
4937
4938
4939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4940 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4941 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4942 $as_echo_n "(cached) " >&6
4943 else
4944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4945 /* end confdefs.h. */
4946
4947 # define __EXTENSIONS__ 1
4948 $ac_includes_default
4949 int
4950 main ()
4951 {
4952
4953 ;
4954 return 0;
4955 }
4956 _ACEOF
4957 if ac_fn_c_try_compile "$LINENO"; then :
4958 ac_cv_safe_to_define___extensions__=yes
4959 else
4960 ac_cv_safe_to_define___extensions__=no
4961 fi
4962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4963 fi
4964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4965 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4966 test $ac_cv_safe_to_define___extensions__ = yes &&
4967 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4968
4969 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4970
4971 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4972
4973 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4974
4975 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4976
4977
4978
4979
4980
4981 case `pwd` in
4982 *\ * | *\ *)
4983 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4984 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4985 esac
4986
4987
4988
4989 macro_version='2.2.7a'
4990 macro_revision='1.3134'
4991
4992
4993
4994
4995
4996
4997
4998
4999
5000
5001
5002
5003
5004 ltmain="$ac_aux_dir/ltmain.sh"
5005
5006 # Backslashify metacharacters that are still active within
5007 # double-quoted strings.
5008 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5009
5010 # Same as above, but do not quote variable references.
5011 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5012
5013 # Sed substitution to delay expansion of an escaped shell variable in a
5014 # double_quote_subst'ed string.
5015 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5016
5017 # Sed substitution to delay expansion of an escaped single quote.
5018 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5019
5020 # Sed substitution to avoid accidental globbing in evaled expressions
5021 no_glob_subst='s/\*/\\\*/g'
5022
5023 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5024 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5025 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5026
5027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5028 $as_echo_n "checking how to print strings... " >&6; }
5029 # Test print first, because it will be a builtin if present.
5030 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5031 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5032 ECHO='print -r --'
5033 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5034 ECHO='printf %s\n'
5035 else
5036 # Use this function as a fallback that always works.
5037 func_fallback_echo ()
5038 {
5039 eval 'cat <<_LTECHO_EOF
5040 $1
5041 _LTECHO_EOF'
5042 }
5043 ECHO='func_fallback_echo'
5044 fi
5045
5046 # func_echo_all arg...
5047 # Invoke $ECHO with all args, space-separated.
5048 func_echo_all ()
5049 {
5050 $ECHO ""
5051 }
5052
5053 case "$ECHO" in
5054 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5055 $as_echo "printf" >&6; } ;;
5056 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5057 $as_echo "print -r" >&6; } ;;
5058 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5059 $as_echo "cat" >&6; } ;;
5060 esac
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5076 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5077 if ${ac_cv_path_SED+:} false; then :
5078 $as_echo_n "(cached) " >&6
5079 else
5080 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5081 for ac_i in 1 2 3 4 5 6 7; do
5082 ac_script="$ac_script$as_nl$ac_script"
5083 done
5084 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5085 { ac_script=; unset ac_script;}
5086 if test -z "$SED"; then
5087 ac_path_SED_found=false
5088 # Loop through the user's path and test for each of PROGNAME-LIST
5089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5090 for as_dir in $PATH
5091 do
5092 IFS=$as_save_IFS
5093 test -z "$as_dir" && as_dir=.
5094 for ac_prog in sed gsed; do
5095 for ac_exec_ext in '' $ac_executable_extensions; do
5096 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5097 as_fn_executable_p "$ac_path_SED" || continue
5098 # Check for GNU ac_path_SED and select it if it is found.
5099 # Check for GNU $ac_path_SED
5100 case `"$ac_path_SED" --version 2>&1` in
5101 *GNU*)
5102 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5103 *)
5104 ac_count=0
5105 $as_echo_n 0123456789 >"conftest.in"
5106 while :
5107 do
5108 cat "conftest.in" "conftest.in" >"conftest.tmp"
5109 mv "conftest.tmp" "conftest.in"
5110 cp "conftest.in" "conftest.nl"
5111 $as_echo '' >> "conftest.nl"
5112 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5113 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5114 as_fn_arith $ac_count + 1 && ac_count=$as_val
5115 if test $ac_count -gt ${ac_path_SED_max-0}; then
5116 # Best one so far, save it but keep looking for a better one
5117 ac_cv_path_SED="$ac_path_SED"
5118 ac_path_SED_max=$ac_count
5119 fi
5120 # 10*(2^10) chars as input seems more than enough
5121 test $ac_count -gt 10 && break
5122 done
5123 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5124 esac
5125
5126 $ac_path_SED_found && break 3
5127 done
5128 done
5129 done
5130 IFS=$as_save_IFS
5131 if test -z "$ac_cv_path_SED"; then
5132 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5133 fi
5134 else
5135 ac_cv_path_SED=$SED
5136 fi
5137
5138 fi
5139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5140 $as_echo "$ac_cv_path_SED" >&6; }
5141 SED="$ac_cv_path_SED"
5142 rm -f conftest.sed
5143
5144 test -z "$SED" && SED=sed
5145 Xsed="$SED -e 1s/^X//"
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5158 $as_echo_n "checking for fgrep... " >&6; }
5159 if ${ac_cv_path_FGREP+:} false; then :
5160 $as_echo_n "(cached) " >&6
5161 else
5162 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5163 then ac_cv_path_FGREP="$GREP -F"
5164 else
5165 if test -z "$FGREP"; then
5166 ac_path_FGREP_found=false
5167 # Loop through the user's path and test for each of PROGNAME-LIST
5168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5169 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5170 do
5171 IFS=$as_save_IFS
5172 test -z "$as_dir" && as_dir=.
5173 for ac_prog in fgrep; do
5174 for ac_exec_ext in '' $ac_executable_extensions; do
5175 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5176 as_fn_executable_p "$ac_path_FGREP" || continue
5177 # Check for GNU ac_path_FGREP and select it if it is found.
5178 # Check for GNU $ac_path_FGREP
5179 case `"$ac_path_FGREP" --version 2>&1` in
5180 *GNU*)
5181 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5182 *)
5183 ac_count=0
5184 $as_echo_n 0123456789 >"conftest.in"
5185 while :
5186 do
5187 cat "conftest.in" "conftest.in" >"conftest.tmp"
5188 mv "conftest.tmp" "conftest.in"
5189 cp "conftest.in" "conftest.nl"
5190 $as_echo 'FGREP' >> "conftest.nl"
5191 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5192 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5193 as_fn_arith $ac_count + 1 && ac_count=$as_val
5194 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5195 # Best one so far, save it but keep looking for a better one
5196 ac_cv_path_FGREP="$ac_path_FGREP"
5197 ac_path_FGREP_max=$ac_count
5198 fi
5199 # 10*(2^10) chars as input seems more than enough
5200 test $ac_count -gt 10 && break
5201 done
5202 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5203 esac
5204
5205 $ac_path_FGREP_found && break 3
5206 done
5207 done
5208 done
5209 IFS=$as_save_IFS
5210 if test -z "$ac_cv_path_FGREP"; then
5211 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5212 fi
5213 else
5214 ac_cv_path_FGREP=$FGREP
5215 fi
5216
5217 fi
5218 fi
5219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5220 $as_echo "$ac_cv_path_FGREP" >&6; }
5221 FGREP="$ac_cv_path_FGREP"
5222
5223
5224 test -z "$GREP" && GREP=grep
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244 # Check whether --with-gnu-ld was given.
5245 if test "${with_gnu_ld+set}" = set; then :
5246 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5247 else
5248 with_gnu_ld=no
5249 fi
5250
5251 ac_prog=ld
5252 if test "$GCC" = yes; then
5253 # Check if gcc -print-prog-name=ld gives a path.
5254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5255 $as_echo_n "checking for ld used by $CC... " >&6; }
5256 case $host in
5257 *-*-mingw*)
5258 # gcc leaves a trailing carriage return which upsets mingw
5259 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5260 *)
5261 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5262 esac
5263 case $ac_prog in
5264 # Accept absolute paths.
5265 [\\/]* | ?:[\\/]*)
5266 re_direlt='/[^/][^/]*/\.\./'
5267 # Canonicalize the pathname of ld
5268 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5269 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5270 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5271 done
5272 test -z "$LD" && LD="$ac_prog"
5273 ;;
5274 "")
5275 # If it fails, then pretend we aren't using GCC.
5276 ac_prog=ld
5277 ;;
5278 *)
5279 # If it is relative, then search for the first ld in PATH.
5280 with_gnu_ld=unknown
5281 ;;
5282 esac
5283 elif test "$with_gnu_ld" = yes; then
5284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5285 $as_echo_n "checking for GNU ld... " >&6; }
5286 else
5287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5288 $as_echo_n "checking for non-GNU ld... " >&6; }
5289 fi
5290 if ${lt_cv_path_LD+:} false; then :
5291 $as_echo_n "(cached) " >&6
5292 else
5293 if test -z "$LD"; then
5294 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5295 for ac_dir in $PATH; do
5296 IFS="$lt_save_ifs"
5297 test -z "$ac_dir" && ac_dir=.
5298 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5299 lt_cv_path_LD="$ac_dir/$ac_prog"
5300 # Check to see if the program is GNU ld. I'd rather use --version,
5301 # but apparently some variants of GNU ld only accept -v.
5302 # Break only if it was the GNU/non-GNU ld that we prefer.
5303 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5304 *GNU* | *'with BFD'*)
5305 test "$with_gnu_ld" != no && break
5306 ;;
5307 *)
5308 test "$with_gnu_ld" != yes && break
5309 ;;
5310 esac
5311 fi
5312 done
5313 IFS="$lt_save_ifs"
5314 else
5315 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5316 fi
5317 fi
5318
5319 LD="$lt_cv_path_LD"
5320 if test -n "$LD"; then
5321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5322 $as_echo "$LD" >&6; }
5323 else
5324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5325 $as_echo "no" >&6; }
5326 fi
5327 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5329 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5330 if ${lt_cv_prog_gnu_ld+:} false; then :
5331 $as_echo_n "(cached) " >&6
5332 else
5333 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5334 case `$LD -v 2>&1 </dev/null` in
5335 *GNU* | *'with BFD'*)
5336 lt_cv_prog_gnu_ld=yes
5337 ;;
5338 *)
5339 lt_cv_prog_gnu_ld=no
5340 ;;
5341 esac
5342 fi
5343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5344 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5345 with_gnu_ld=$lt_cv_prog_gnu_ld
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5356 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5357 if ${lt_cv_path_NM+:} false; then :
5358 $as_echo_n "(cached) " >&6
5359 else
5360 if test -n "$NM"; then
5361 # Let the user override the test.
5362 lt_cv_path_NM="$NM"
5363 else
5364 lt_nm_to_check="${ac_tool_prefix}nm"
5365 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5366 lt_nm_to_check="$lt_nm_to_check nm"
5367 fi
5368 for lt_tmp_nm in $lt_nm_to_check; do
5369 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5370 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5371 IFS="$lt_save_ifs"
5372 test -z "$ac_dir" && ac_dir=.
5373 tmp_nm="$ac_dir/$lt_tmp_nm"
5374 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5375 # Check to see if the nm accepts a BSD-compat flag.
5376 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5377 # nm: unknown option "B" ignored
5378 # Tru64's nm complains that /dev/null is an invalid object file
5379 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5380 */dev/null* | *'Invalid file or object type'*)
5381 lt_cv_path_NM="$tmp_nm -B"
5382 break
5383 ;;
5384 *)
5385 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5386 */dev/null*)
5387 lt_cv_path_NM="$tmp_nm -p"
5388 break
5389 ;;
5390 *)
5391 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5392 continue # so that we can try to find one that supports BSD flags
5393 ;;
5394 esac
5395 ;;
5396 esac
5397 fi
5398 done
5399 IFS="$lt_save_ifs"
5400 done
5401 : ${lt_cv_path_NM=no}
5402 fi
5403 fi
5404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5405 $as_echo "$lt_cv_path_NM" >&6; }
5406 if test "$lt_cv_path_NM" != "no"; then
5407 NM="$lt_cv_path_NM"
5408 else
5409 # Didn't find any BSD compatible name lister, look for dumpbin.
5410 if test -n "$DUMPBIN"; then :
5411 # Let the user override the test.
5412 else
5413 if test -n "$ac_tool_prefix"; then
5414 for ac_prog in dumpbin "link -dump"
5415 do
5416 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5417 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5419 $as_echo_n "checking for $ac_word... " >&6; }
5420 if ${ac_cv_prog_DUMPBIN+:} false; then :
5421 $as_echo_n "(cached) " >&6
5422 else
5423 if test -n "$DUMPBIN"; then
5424 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5425 else
5426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5427 for as_dir in $PATH
5428 do
5429 IFS=$as_save_IFS
5430 test -z "$as_dir" && as_dir=.
5431 for ac_exec_ext in '' $ac_executable_extensions; do
5432 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5433 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5435 break 2
5436 fi
5437 done
5438 done
5439 IFS=$as_save_IFS
5440
5441 fi
5442 fi
5443 DUMPBIN=$ac_cv_prog_DUMPBIN
5444 if test -n "$DUMPBIN"; then
5445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5446 $as_echo "$DUMPBIN" >&6; }
5447 else
5448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5449 $as_echo "no" >&6; }
5450 fi
5451
5452
5453 test -n "$DUMPBIN" && break
5454 done
5455 fi
5456 if test -z "$DUMPBIN"; then
5457 ac_ct_DUMPBIN=$DUMPBIN
5458 for ac_prog in dumpbin "link -dump"
5459 do
5460 # Extract the first word of "$ac_prog", so it can be a program name with args.
5461 set dummy $ac_prog; ac_word=$2
5462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5463 $as_echo_n "checking for $ac_word... " >&6; }
5464 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5465 $as_echo_n "(cached) " >&6
5466 else
5467 if test -n "$ac_ct_DUMPBIN"; then
5468 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5469 else
5470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5471 for as_dir in $PATH
5472 do
5473 IFS=$as_save_IFS
5474 test -z "$as_dir" && as_dir=.
5475 for ac_exec_ext in '' $ac_executable_extensions; do
5476 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5477 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5479 break 2
5480 fi
5481 done
5482 done
5483 IFS=$as_save_IFS
5484
5485 fi
5486 fi
5487 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5488 if test -n "$ac_ct_DUMPBIN"; then
5489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5490 $as_echo "$ac_ct_DUMPBIN" >&6; }
5491 else
5492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5493 $as_echo "no" >&6; }
5494 fi
5495
5496
5497 test -n "$ac_ct_DUMPBIN" && break
5498 done
5499
5500 if test "x$ac_ct_DUMPBIN" = x; then
5501 DUMPBIN=":"
5502 else
5503 case $cross_compiling:$ac_tool_warned in
5504 yes:)
5505 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5506 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5507 ac_tool_warned=yes ;;
5508 esac
5509 DUMPBIN=$ac_ct_DUMPBIN
5510 fi
5511 fi
5512
5513 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5514 *COFF*)
5515 DUMPBIN="$DUMPBIN -symbols"
5516 ;;
5517 *)
5518 DUMPBIN=:
5519 ;;
5520 esac
5521 fi
5522
5523 if test "$DUMPBIN" != ":"; then
5524 NM="$DUMPBIN"
5525 fi
5526 fi
5527 test -z "$NM" && NM=nm
5528
5529
5530
5531
5532
5533
5534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5535 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5536 if ${lt_cv_nm_interface+:} false; then :
5537 $as_echo_n "(cached) " >&6
5538 else
5539 lt_cv_nm_interface="BSD nm"
5540 echo "int some_variable = 0;" > conftest.$ac_ext
5541 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5542 (eval "$ac_compile" 2>conftest.err)
5543 cat conftest.err >&5
5544 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5545 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5546 cat conftest.err >&5
5547 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5548 cat conftest.out >&5
5549 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5550 lt_cv_nm_interface="MS dumpbin"
5551 fi
5552 rm -f conftest*
5553 fi
5554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5555 $as_echo "$lt_cv_nm_interface" >&6; }
5556
5557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5558 $as_echo_n "checking whether ln -s works... " >&6; }
5559 LN_S=$as_ln_s
5560 if test "$LN_S" = "ln -s"; then
5561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5562 $as_echo "yes" >&6; }
5563 else
5564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5565 $as_echo "no, using $LN_S" >&6; }
5566 fi
5567
5568 # find the maximum length of command line arguments
5569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5570 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5571 if ${lt_cv_sys_max_cmd_len+:} false; then :
5572 $as_echo_n "(cached) " >&6
5573 else
5574 i=0
5575 teststring="ABCD"
5576
5577 case $build_os in
5578 msdosdjgpp*)
5579 # On DJGPP, this test can blow up pretty badly due to problems in libc
5580 # (any single argument exceeding 2000 bytes causes a buffer overrun
5581 # during glob expansion). Even if it were fixed, the result of this
5582 # check would be larger than it should be.
5583 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5584 ;;
5585
5586 gnu*)
5587 # Under GNU Hurd, this test is not required because there is
5588 # no limit to the length of command line arguments.
5589 # Libtool will interpret -1 as no limit whatsoever
5590 lt_cv_sys_max_cmd_len=-1;
5591 ;;
5592
5593 cygwin* | mingw* | cegcc*)
5594 # On Win9x/ME, this test blows up -- it succeeds, but takes
5595 # about 5 minutes as the teststring grows exponentially.
5596 # Worse, since 9x/ME are not pre-emptively multitasking,
5597 # you end up with a "frozen" computer, even though with patience
5598 # the test eventually succeeds (with a max line length of 256k).
5599 # Instead, let's just punt: use the minimum linelength reported by
5600 # all of the supported platforms: 8192 (on NT/2K/XP).
5601 lt_cv_sys_max_cmd_len=8192;
5602 ;;
5603
5604 mint*)
5605 # On MiNT this can take a long time and run out of memory.
5606 lt_cv_sys_max_cmd_len=8192;
5607 ;;
5608
5609 amigaos*)
5610 # On AmigaOS with pdksh, this test takes hours, literally.
5611 # So we just punt and use a minimum line length of 8192.
5612 lt_cv_sys_max_cmd_len=8192;
5613 ;;
5614
5615 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5616 # This has been around since 386BSD, at least. Likely further.
5617 if test -x /sbin/sysctl; then
5618 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5619 elif test -x /usr/sbin/sysctl; then
5620 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5621 else
5622 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5623 fi
5624 # And add a safety zone
5625 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5626 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5627 ;;
5628
5629 interix*)
5630 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5631 lt_cv_sys_max_cmd_len=196608
5632 ;;
5633
5634 osf*)
5635 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5636 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5637 # nice to cause kernel panics so lets avoid the loop below.
5638 # First set a reasonable default.
5639 lt_cv_sys_max_cmd_len=16384
5640 #
5641 if test -x /sbin/sysconfig; then
5642 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5643 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5644 esac
5645 fi
5646 ;;
5647 sco3.2v5*)
5648 lt_cv_sys_max_cmd_len=102400
5649 ;;
5650 sysv5* | sco5v6* | sysv4.2uw2*)
5651 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5652 if test -n "$kargmax"; then
5653 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5654 else
5655 lt_cv_sys_max_cmd_len=32768
5656 fi
5657 ;;
5658 *)
5659 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5660 if test -n "$lt_cv_sys_max_cmd_len"; then
5661 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5662 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5663 else
5664 # Make teststring a little bigger before we do anything with it.
5665 # a 1K string should be a reasonable start.
5666 for i in 1 2 3 4 5 6 7 8 ; do
5667 teststring=$teststring$teststring
5668 done
5669 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5670 # If test is not a shell built-in, we'll probably end up computing a
5671 # maximum length that is only half of the actual maximum length, but
5672 # we can't tell.
5673 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5674 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5675 test $i != 17 # 1/2 MB should be enough
5676 do
5677 i=`expr $i + 1`
5678 teststring=$teststring$teststring
5679 done
5680 # Only check the string length outside the loop.
5681 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5682 teststring=
5683 # Add a significant safety factor because C++ compilers can tack on
5684 # massive amounts of additional arguments before passing them to the
5685 # linker. It appears as though 1/2 is a usable value.
5686 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5687 fi
5688 ;;
5689 esac
5690
5691 fi
5692
5693 if test -n $lt_cv_sys_max_cmd_len ; then
5694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5695 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5696 else
5697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5698 $as_echo "none" >&6; }
5699 fi
5700 max_cmd_len=$lt_cv_sys_max_cmd_len
5701
5702
5703
5704
5705
5706
5707 : ${CP="cp -f"}
5708 : ${MV="mv -f"}
5709 : ${RM="rm -f"}
5710
5711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5712 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5713 # Try some XSI features
5714 xsi_shell=no
5715 ( _lt_dummy="a/b/c"
5716 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5717 = c,a/b,, \
5718 && eval 'test $(( 1 + 1 )) -eq 2 \
5719 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5720 && xsi_shell=yes
5721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5722 $as_echo "$xsi_shell" >&6; }
5723
5724
5725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5726 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5727 lt_shell_append=no
5728 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5729 >/dev/null 2>&1 \
5730 && lt_shell_append=yes
5731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5732 $as_echo "$lt_shell_append" >&6; }
5733
5734
5735 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5736 lt_unset=unset
5737 else
5738 lt_unset=false
5739 fi
5740
5741
5742
5743
5744
5745 # test EBCDIC or ASCII
5746 case `echo X|tr X '\101'` in
5747 A) # ASCII based system
5748 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5749 lt_SP2NL='tr \040 \012'
5750 lt_NL2SP='tr \015\012 \040\040'
5751 ;;
5752 *) # EBCDIC based system
5753 lt_SP2NL='tr \100 \n'
5754 lt_NL2SP='tr \r\n \100\100'
5755 ;;
5756 esac
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5767 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5768 if ${lt_cv_ld_reload_flag+:} false; then :
5769 $as_echo_n "(cached) " >&6
5770 else
5771 lt_cv_ld_reload_flag='-r'
5772 fi
5773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5774 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5775 reload_flag=$lt_cv_ld_reload_flag
5776 case $reload_flag in
5777 "" | " "*) ;;
5778 *) reload_flag=" $reload_flag" ;;
5779 esac
5780 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5781 case $host_os in
5782 darwin*)
5783 if test "$GCC" = yes; then
5784 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5785 else
5786 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5787 fi
5788 ;;
5789 esac
5790
5791
5792
5793
5794
5795
5796
5797
5798
5799 if test -n "$ac_tool_prefix"; then
5800 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5801 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5803 $as_echo_n "checking for $ac_word... " >&6; }
5804 if ${ac_cv_prog_OBJDUMP+:} false; then :
5805 $as_echo_n "(cached) " >&6
5806 else
5807 if test -n "$OBJDUMP"; then
5808 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5809 else
5810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5811 for as_dir in $PATH
5812 do
5813 IFS=$as_save_IFS
5814 test -z "$as_dir" && as_dir=.
5815 for ac_exec_ext in '' $ac_executable_extensions; do
5816 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5817 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5819 break 2
5820 fi
5821 done
5822 done
5823 IFS=$as_save_IFS
5824
5825 fi
5826 fi
5827 OBJDUMP=$ac_cv_prog_OBJDUMP
5828 if test -n "$OBJDUMP"; then
5829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5830 $as_echo "$OBJDUMP" >&6; }
5831 else
5832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5833 $as_echo "no" >&6; }
5834 fi
5835
5836
5837 fi
5838 if test -z "$ac_cv_prog_OBJDUMP"; then
5839 ac_ct_OBJDUMP=$OBJDUMP
5840 # Extract the first word of "objdump", so it can be a program name with args.
5841 set dummy objdump; ac_word=$2
5842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5843 $as_echo_n "checking for $ac_word... " >&6; }
5844 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5845 $as_echo_n "(cached) " >&6
5846 else
5847 if test -n "$ac_ct_OBJDUMP"; then
5848 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5849 else
5850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5851 for as_dir in $PATH
5852 do
5853 IFS=$as_save_IFS
5854 test -z "$as_dir" && as_dir=.
5855 for ac_exec_ext in '' $ac_executable_extensions; do
5856 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5857 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5859 break 2
5860 fi
5861 done
5862 done
5863 IFS=$as_save_IFS
5864
5865 fi
5866 fi
5867 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5868 if test -n "$ac_ct_OBJDUMP"; then
5869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5870 $as_echo "$ac_ct_OBJDUMP" >&6; }
5871 else
5872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5873 $as_echo "no" >&6; }
5874 fi
5875
5876 if test "x$ac_ct_OBJDUMP" = x; then
5877 OBJDUMP="false"
5878 else
5879 case $cross_compiling:$ac_tool_warned in
5880 yes:)
5881 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5882 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5883 ac_tool_warned=yes ;;
5884 esac
5885 OBJDUMP=$ac_ct_OBJDUMP
5886 fi
5887 else
5888 OBJDUMP="$ac_cv_prog_OBJDUMP"
5889 fi
5890
5891 test -z "$OBJDUMP" && OBJDUMP=objdump
5892
5893
5894
5895
5896
5897
5898
5899
5900
5901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5902 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5903 if ${lt_cv_deplibs_check_method+:} false; then :
5904 $as_echo_n "(cached) " >&6
5905 else
5906 lt_cv_file_magic_cmd='$MAGIC_CMD'
5907 lt_cv_file_magic_test_file=
5908 lt_cv_deplibs_check_method='unknown'
5909 # Need to set the preceding variable on all platforms that support
5910 # interlibrary dependencies.
5911 # 'none' -- dependencies not supported.
5912 # `unknown' -- same as none, but documents that we really don't know.
5913 # 'pass_all' -- all dependencies passed with no checks.
5914 # 'test_compile' -- check by making test program.
5915 # 'file_magic [[regex]]' -- check by looking for files in library path
5916 # which responds to the $file_magic_cmd with a given extended regex.
5917 # If you have `file' or equivalent on your system and you're not sure
5918 # whether `pass_all' will *always* work, you probably want this one.
5919
5920 case $host_os in
5921 aix[4-9]*)
5922 lt_cv_deplibs_check_method=pass_all
5923 ;;
5924
5925 beos*)
5926 lt_cv_deplibs_check_method=pass_all
5927 ;;
5928
5929 bsdi[45]*)
5930 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5931 lt_cv_file_magic_cmd='/usr/bin/file -L'
5932 lt_cv_file_magic_test_file=/shlib/libc.so
5933 ;;
5934
5935 cygwin*)
5936 # func_win32_libid is a shell function defined in ltmain.sh
5937 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5938 lt_cv_file_magic_cmd='func_win32_libid'
5939 ;;
5940
5941 mingw* | pw32*)
5942 # Base MSYS/MinGW do not provide the 'file' command needed by
5943 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5944 # unless we find 'file', for example because we are cross-compiling.
5945 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5946 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5947 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5948 lt_cv_file_magic_cmd='func_win32_libid'
5949 else
5950 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5951 lt_cv_file_magic_cmd='$OBJDUMP -f'
5952 fi
5953 ;;
5954
5955 cegcc*)
5956 # use the weaker test based on 'objdump'. See mingw*.
5957 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5958 lt_cv_file_magic_cmd='$OBJDUMP -f'
5959 ;;
5960
5961 darwin* | rhapsody*)
5962 lt_cv_deplibs_check_method=pass_all
5963 ;;
5964
5965 freebsd* | dragonfly*)
5966 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5967 case $host_cpu in
5968 i*86 )
5969 # Not sure whether the presence of OpenBSD here was a mistake.
5970 # Let's accept both of them until this is cleared up.
5971 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5972 lt_cv_file_magic_cmd=/usr/bin/file
5973 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5974 ;;
5975 esac
5976 else
5977 lt_cv_deplibs_check_method=pass_all
5978 fi
5979 ;;
5980
5981 gnu*)
5982 lt_cv_deplibs_check_method=pass_all
5983 ;;
5984
5985 haiku*)
5986 lt_cv_deplibs_check_method=pass_all
5987 ;;
5988
5989 hpux10.20* | hpux11*)
5990 lt_cv_file_magic_cmd=/usr/bin/file
5991 case $host_cpu in
5992 ia64*)
5993 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5994 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5995 ;;
5996 hppa*64*)
5997 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]'
5998 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5999 ;;
6000 *)
6001 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6002 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6003 ;;
6004 esac
6005 ;;
6006
6007 interix[3-9]*)
6008 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6009 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6010 ;;
6011
6012 irix5* | irix6* | nonstopux*)
6013 case $LD in
6014 *-32|*"-32 ") libmagic=32-bit;;
6015 *-n32|*"-n32 ") libmagic=N32;;
6016 *-64|*"-64 ") libmagic=64-bit;;
6017 *) libmagic=never-match;;
6018 esac
6019 lt_cv_deplibs_check_method=pass_all
6020 ;;
6021
6022 # This must be Linux ELF.
6023 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6024 lt_cv_deplibs_check_method=pass_all
6025 ;;
6026
6027 netbsd*)
6028 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6029 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6030 else
6031 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6032 fi
6033 ;;
6034
6035 newos6*)
6036 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6037 lt_cv_file_magic_cmd=/usr/bin/file
6038 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6039 ;;
6040
6041 *nto* | *qnx*)
6042 lt_cv_deplibs_check_method=pass_all
6043 ;;
6044
6045 openbsd*)
6046 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6047 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6048 else
6049 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6050 fi
6051 ;;
6052
6053 osf3* | osf4* | osf5*)
6054 lt_cv_deplibs_check_method=pass_all
6055 ;;
6056
6057 rdos*)
6058 lt_cv_deplibs_check_method=pass_all
6059 ;;
6060
6061 solaris*)
6062 lt_cv_deplibs_check_method=pass_all
6063 ;;
6064
6065 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6066 lt_cv_deplibs_check_method=pass_all
6067 ;;
6068
6069 sysv4 | sysv4.3*)
6070 case $host_vendor in
6071 motorola)
6072 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]'
6073 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6074 ;;
6075 ncr)
6076 lt_cv_deplibs_check_method=pass_all
6077 ;;
6078 sequent)
6079 lt_cv_file_magic_cmd='/bin/file'
6080 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6081 ;;
6082 sni)
6083 lt_cv_file_magic_cmd='/bin/file'
6084 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6085 lt_cv_file_magic_test_file=/lib/libc.so
6086 ;;
6087 siemens)
6088 lt_cv_deplibs_check_method=pass_all
6089 ;;
6090 pc)
6091 lt_cv_deplibs_check_method=pass_all
6092 ;;
6093 esac
6094 ;;
6095
6096 tpf*)
6097 lt_cv_deplibs_check_method=pass_all
6098 ;;
6099 esac
6100
6101 fi
6102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6103 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6104 file_magic_cmd=$lt_cv_file_magic_cmd
6105 deplibs_check_method=$lt_cv_deplibs_check_method
6106 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6107
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117
6118
6119 plugin_option=
6120 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
6121 for plugin in $plugin_names; do
6122 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
6123 if test x$plugin_so = x$plugin; then
6124 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
6125 fi
6126 if test x$plugin_so != x$plugin; then
6127 plugin_option="--plugin $plugin_so"
6128 break
6129 fi
6130 done
6131
6132 if test -n "$ac_tool_prefix"; then
6133 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6134 set dummy ${ac_tool_prefix}ar; ac_word=$2
6135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6136 $as_echo_n "checking for $ac_word... " >&6; }
6137 if ${ac_cv_prog_AR+:} false; then :
6138 $as_echo_n "(cached) " >&6
6139 else
6140 if test -n "$AR"; then
6141 ac_cv_prog_AR="$AR" # Let the user override the test.
6142 else
6143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6144 for as_dir in $PATH
6145 do
6146 IFS=$as_save_IFS
6147 test -z "$as_dir" && as_dir=.
6148 for ac_exec_ext in '' $ac_executable_extensions; do
6149 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6150 ac_cv_prog_AR="${ac_tool_prefix}ar"
6151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6152 break 2
6153 fi
6154 done
6155 done
6156 IFS=$as_save_IFS
6157
6158 fi
6159 fi
6160 AR=$ac_cv_prog_AR
6161 if test -n "$AR"; then
6162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6163 $as_echo "$AR" >&6; }
6164 else
6165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6166 $as_echo "no" >&6; }
6167 fi
6168
6169
6170 fi
6171 if test -z "$ac_cv_prog_AR"; then
6172 ac_ct_AR=$AR
6173 # Extract the first word of "ar", so it can be a program name with args.
6174 set dummy ar; ac_word=$2
6175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6176 $as_echo_n "checking for $ac_word... " >&6; }
6177 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6178 $as_echo_n "(cached) " >&6
6179 else
6180 if test -n "$ac_ct_AR"; then
6181 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6182 else
6183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6184 for as_dir in $PATH
6185 do
6186 IFS=$as_save_IFS
6187 test -z "$as_dir" && as_dir=.
6188 for ac_exec_ext in '' $ac_executable_extensions; do
6189 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6190 ac_cv_prog_ac_ct_AR="ar"
6191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6192 break 2
6193 fi
6194 done
6195 done
6196 IFS=$as_save_IFS
6197
6198 fi
6199 fi
6200 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6201 if test -n "$ac_ct_AR"; then
6202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6203 $as_echo "$ac_ct_AR" >&6; }
6204 else
6205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6206 $as_echo "no" >&6; }
6207 fi
6208
6209 if test "x$ac_ct_AR" = x; then
6210 AR="false"
6211 else
6212 case $cross_compiling:$ac_tool_warned in
6213 yes:)
6214 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6215 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6216 ac_tool_warned=yes ;;
6217 esac
6218 AR=$ac_ct_AR
6219 fi
6220 else
6221 AR="$ac_cv_prog_AR"
6222 fi
6223
6224 test -z "$AR" && AR=ar
6225 if test -n "$plugin_option"; then
6226 if $AR --help 2>&1 | grep -q "\--plugin"; then
6227 touch conftest.c
6228 $AR $plugin_option rc conftest.a conftest.c
6229 if test "$?" != 0; then
6230 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
6231 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
6232 else
6233 AR="$AR $plugin_option"
6234 fi
6235 rm -f conftest.*
6236 fi
6237 fi
6238 test -z "$AR_FLAGS" && AR_FLAGS=cru
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250 if test -n "$ac_tool_prefix"; then
6251 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6252 set dummy ${ac_tool_prefix}strip; ac_word=$2
6253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6254 $as_echo_n "checking for $ac_word... " >&6; }
6255 if ${ac_cv_prog_STRIP+:} false; then :
6256 $as_echo_n "(cached) " >&6
6257 else
6258 if test -n "$STRIP"; then
6259 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6260 else
6261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6262 for as_dir in $PATH
6263 do
6264 IFS=$as_save_IFS
6265 test -z "$as_dir" && as_dir=.
6266 for ac_exec_ext in '' $ac_executable_extensions; do
6267 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6268 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6270 break 2
6271 fi
6272 done
6273 done
6274 IFS=$as_save_IFS
6275
6276 fi
6277 fi
6278 STRIP=$ac_cv_prog_STRIP
6279 if test -n "$STRIP"; then
6280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6281 $as_echo "$STRIP" >&6; }
6282 else
6283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6284 $as_echo "no" >&6; }
6285 fi
6286
6287
6288 fi
6289 if test -z "$ac_cv_prog_STRIP"; then
6290 ac_ct_STRIP=$STRIP
6291 # Extract the first word of "strip", so it can be a program name with args.
6292 set dummy strip; ac_word=$2
6293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6294 $as_echo_n "checking for $ac_word... " >&6; }
6295 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6296 $as_echo_n "(cached) " >&6
6297 else
6298 if test -n "$ac_ct_STRIP"; then
6299 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6300 else
6301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6302 for as_dir in $PATH
6303 do
6304 IFS=$as_save_IFS
6305 test -z "$as_dir" && as_dir=.
6306 for ac_exec_ext in '' $ac_executable_extensions; do
6307 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6308 ac_cv_prog_ac_ct_STRIP="strip"
6309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6310 break 2
6311 fi
6312 done
6313 done
6314 IFS=$as_save_IFS
6315
6316 fi
6317 fi
6318 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6319 if test -n "$ac_ct_STRIP"; then
6320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6321 $as_echo "$ac_ct_STRIP" >&6; }
6322 else
6323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6324 $as_echo "no" >&6; }
6325 fi
6326
6327 if test "x$ac_ct_STRIP" = x; then
6328 STRIP=":"
6329 else
6330 case $cross_compiling:$ac_tool_warned in
6331 yes:)
6332 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6333 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6334 ac_tool_warned=yes ;;
6335 esac
6336 STRIP=$ac_ct_STRIP
6337 fi
6338 else
6339 STRIP="$ac_cv_prog_STRIP"
6340 fi
6341
6342 test -z "$STRIP" && STRIP=:
6343
6344
6345
6346
6347
6348
6349 if test -n "$ac_tool_prefix"; then
6350 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6351 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6353 $as_echo_n "checking for $ac_word... " >&6; }
6354 if ${ac_cv_prog_RANLIB+:} false; then :
6355 $as_echo_n "(cached) " >&6
6356 else
6357 if test -n "$RANLIB"; then
6358 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6359 else
6360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6361 for as_dir in $PATH
6362 do
6363 IFS=$as_save_IFS
6364 test -z "$as_dir" && as_dir=.
6365 for ac_exec_ext in '' $ac_executable_extensions; do
6366 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6367 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6369 break 2
6370 fi
6371 done
6372 done
6373 IFS=$as_save_IFS
6374
6375 fi
6376 fi
6377 RANLIB=$ac_cv_prog_RANLIB
6378 if test -n "$RANLIB"; then
6379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6380 $as_echo "$RANLIB" >&6; }
6381 else
6382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6383 $as_echo "no" >&6; }
6384 fi
6385
6386
6387 fi
6388 if test -z "$ac_cv_prog_RANLIB"; then
6389 ac_ct_RANLIB=$RANLIB
6390 # Extract the first word of "ranlib", so it can be a program name with args.
6391 set dummy ranlib; ac_word=$2
6392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6393 $as_echo_n "checking for $ac_word... " >&6; }
6394 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6395 $as_echo_n "(cached) " >&6
6396 else
6397 if test -n "$ac_ct_RANLIB"; then
6398 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6399 else
6400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6401 for as_dir in $PATH
6402 do
6403 IFS=$as_save_IFS
6404 test -z "$as_dir" && as_dir=.
6405 for ac_exec_ext in '' $ac_executable_extensions; do
6406 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6407 ac_cv_prog_ac_ct_RANLIB="ranlib"
6408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6409 break 2
6410 fi
6411 done
6412 done
6413 IFS=$as_save_IFS
6414
6415 fi
6416 fi
6417 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6418 if test -n "$ac_ct_RANLIB"; then
6419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6420 $as_echo "$ac_ct_RANLIB" >&6; }
6421 else
6422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6423 $as_echo "no" >&6; }
6424 fi
6425
6426 if test "x$ac_ct_RANLIB" = x; then
6427 RANLIB=":"
6428 else
6429 case $cross_compiling:$ac_tool_warned in
6430 yes:)
6431 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6432 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6433 ac_tool_warned=yes ;;
6434 esac
6435 RANLIB=$ac_ct_RANLIB
6436 fi
6437 else
6438 RANLIB="$ac_cv_prog_RANLIB"
6439 fi
6440
6441 test -z "$RANLIB" && RANLIB=:
6442 if test -n "$plugin_option" && test "$RANLIB" != ":"; then
6443 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
6444 RANLIB="$RANLIB $plugin_option"
6445 fi
6446 fi
6447
6448
6449
6450
6451
6452
6453 # Determine commands to create old-style static archives.
6454 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6455 old_postinstall_cmds='chmod 644 $oldlib'
6456 old_postuninstall_cmds=
6457
6458 if test -n "$RANLIB"; then
6459 case $host_os in
6460 openbsd*)
6461 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6462 ;;
6463 *)
6464 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6465 ;;
6466 esac
6467 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6468 fi
6469
6470 case $host_os in
6471 darwin*)
6472 lock_old_archive_extraction=yes ;;
6473 *)
6474 lock_old_archive_extraction=no ;;
6475 esac
6476
6477
6478
6479
6480
6481
6482
6483
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494
6495
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508
6509
6510
6511
6512
6513
6514
6515 # If no C compiler was specified, use CC.
6516 LTCC=${LTCC-"$CC"}
6517
6518 # If no C compiler flags were specified, use CFLAGS.
6519 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6520
6521 # Allow CC to be a program name with arguments.
6522 compiler=$CC
6523
6524
6525 # Check for command to grab the raw symbol name followed by C symbol from nm.
6526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6527 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6528 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6529 $as_echo_n "(cached) " >&6
6530 else
6531
6532 # These are sane defaults that work on at least a few old systems.
6533 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6534
6535 # Character class describing NM global symbol codes.
6536 symcode='[BCDEGRST]'
6537
6538 # Regexp to match symbols that can be accessed directly from C.
6539 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6540
6541 # Define system-specific variables.
6542 case $host_os in
6543 aix*)
6544 symcode='[BCDT]'
6545 ;;
6546 cygwin* | mingw* | pw32* | cegcc*)
6547 symcode='[ABCDGISTW]'
6548 ;;
6549 hpux*)
6550 if test "$host_cpu" = ia64; then
6551 symcode='[ABCDEGRST]'
6552 fi
6553 ;;
6554 irix* | nonstopux*)
6555 symcode='[BCDEGRST]'
6556 ;;
6557 osf*)
6558 symcode='[BCDEGQRST]'
6559 ;;
6560 solaris*)
6561 symcode='[BDRT]'
6562 ;;
6563 sco3.2v5*)
6564 symcode='[DT]'
6565 ;;
6566 sysv4.2uw2*)
6567 symcode='[DT]'
6568 ;;
6569 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6570 symcode='[ABDT]'
6571 ;;
6572 sysv4)
6573 symcode='[DFNSTU]'
6574 ;;
6575 esac
6576
6577 # If we're using GNU nm, then use its standard symbol codes.
6578 case `$NM -V 2>&1` in
6579 *GNU* | *'with BFD'*)
6580 symcode='[ABCDGIRSTW]' ;;
6581 esac
6582
6583 # Transform an extracted symbol line into a proper C declaration.
6584 # Some systems (esp. on ia64) link data and code symbols differently,
6585 # so use this general approach.
6586 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6587
6588 # Transform an extracted symbol line into symbol name and symbol address
6589 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6590 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'"
6591
6592 # Handle CRLF in mingw tool chain
6593 opt_cr=
6594 case $build_os in
6595 mingw*)
6596 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6597 ;;
6598 esac
6599
6600 # Try without a prefix underscore, then with it.
6601 for ac_symprfx in "" "_"; do
6602
6603 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6604 symxfrm="\\1 $ac_symprfx\\2 \\2"
6605
6606 # Write the raw and C identifiers.
6607 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6608 # Fake it for dumpbin and say T for any non-static function
6609 # and D for any global variable.
6610 # Also find C++ and __fastcall symbols from MSVC++,
6611 # which start with @ or ?.
6612 lt_cv_sys_global_symbol_pipe="$AWK '"\
6613 " {last_section=section; section=\$ 3};"\
6614 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6615 " \$ 0!~/External *\|/{next};"\
6616 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6617 " {if(hide[section]) next};"\
6618 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6619 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6620 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6621 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6622 " ' prfx=^$ac_symprfx"
6623 else
6624 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6625 fi
6626
6627 # Check to see that the pipe works correctly.
6628 pipe_works=no
6629
6630 rm -f conftest*
6631 cat > conftest.$ac_ext <<_LT_EOF
6632 #ifdef __cplusplus
6633 extern "C" {
6634 #endif
6635 char nm_test_var;
6636 void nm_test_func(void);
6637 void nm_test_func(void){}
6638 #ifdef __cplusplus
6639 }
6640 #endif
6641 int main(){nm_test_var='a';nm_test_func();return(0);}
6642 _LT_EOF
6643
6644 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6645 (eval $ac_compile) 2>&5
6646 ac_status=$?
6647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6648 test $ac_status = 0; }; then
6649 # Now try to grab the symbols.
6650 nlist=conftest.nm
6651 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6652 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6653 ac_status=$?
6654 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6655 test $ac_status = 0; } && test -s "$nlist"; then
6656 # Try sorting and uniquifying the output.
6657 if sort "$nlist" | uniq > "$nlist"T; then
6658 mv -f "$nlist"T "$nlist"
6659 else
6660 rm -f "$nlist"T
6661 fi
6662
6663 # Make sure that we snagged all the symbols we need.
6664 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6665 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6666 cat <<_LT_EOF > conftest.$ac_ext
6667 #ifdef __cplusplus
6668 extern "C" {
6669 #endif
6670
6671 _LT_EOF
6672 # Now generate the symbol file.
6673 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6674
6675 cat <<_LT_EOF >> conftest.$ac_ext
6676
6677 /* The mapping between symbol names and symbols. */
6678 const struct {
6679 const char *name;
6680 void *address;
6681 }
6682 lt__PROGRAM__LTX_preloaded_symbols[] =
6683 {
6684 { "@PROGRAM@", (void *) 0 },
6685 _LT_EOF
6686 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6687 cat <<\_LT_EOF >> conftest.$ac_ext
6688 {0, (void *) 0}
6689 };
6690
6691 /* This works around a problem in FreeBSD linker */
6692 #ifdef FREEBSD_WORKAROUND
6693 static const void *lt_preloaded_setup() {
6694 return lt__PROGRAM__LTX_preloaded_symbols;
6695 }
6696 #endif
6697
6698 #ifdef __cplusplus
6699 }
6700 #endif
6701 _LT_EOF
6702 # Now try linking the two files.
6703 mv conftest.$ac_objext conftstm.$ac_objext
6704 lt_save_LIBS="$LIBS"
6705 lt_save_CFLAGS="$CFLAGS"
6706 LIBS="conftstm.$ac_objext"
6707 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6708 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6709 (eval $ac_link) 2>&5
6710 ac_status=$?
6711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6712 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6713 pipe_works=yes
6714 fi
6715 LIBS="$lt_save_LIBS"
6716 CFLAGS="$lt_save_CFLAGS"
6717 else
6718 echo "cannot find nm_test_func in $nlist" >&5
6719 fi
6720 else
6721 echo "cannot find nm_test_var in $nlist" >&5
6722 fi
6723 else
6724 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6725 fi
6726 else
6727 echo "$progname: failed program was:" >&5
6728 cat conftest.$ac_ext >&5
6729 fi
6730 rm -rf conftest* conftst*
6731
6732 # Do not use the global_symbol_pipe unless it works.
6733 if test "$pipe_works" = yes; then
6734 break
6735 else
6736 lt_cv_sys_global_symbol_pipe=
6737 fi
6738 done
6739
6740 fi
6741
6742 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6743 lt_cv_sys_global_symbol_to_cdecl=
6744 fi
6745 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6747 $as_echo "failed" >&6; }
6748 else
6749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6750 $as_echo "ok" >&6; }
6751 fi
6752
6753
6754
6755
6756
6757
6758
6759
6760
6761
6762
6763
6764
6765
6766
6767
6768
6769
6770
6771
6772
6773
6774 # Check whether --enable-libtool-lock was given.
6775 if test "${enable_libtool_lock+set}" = set; then :
6776 enableval=$enable_libtool_lock;
6777 fi
6778
6779 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6780
6781 # Some flags need to be propagated to the compiler or linker for good
6782 # libtool support.
6783 case $host in
6784 ia64-*-hpux*)
6785 # Find out which ABI we are using.
6786 echo 'int i;' > conftest.$ac_ext
6787 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6788 (eval $ac_compile) 2>&5
6789 ac_status=$?
6790 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6791 test $ac_status = 0; }; then
6792 case `/usr/bin/file conftest.$ac_objext` in
6793 *ELF-32*)
6794 HPUX_IA64_MODE="32"
6795 ;;
6796 *ELF-64*)
6797 HPUX_IA64_MODE="64"
6798 ;;
6799 esac
6800 fi
6801 rm -rf conftest*
6802 ;;
6803 *-*-irix6*)
6804 # Find out which ABI we are using.
6805 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6806 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6807 (eval $ac_compile) 2>&5
6808 ac_status=$?
6809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6810 test $ac_status = 0; }; then
6811 if test "$lt_cv_prog_gnu_ld" = yes; then
6812 case `/usr/bin/file conftest.$ac_objext` in
6813 *32-bit*)
6814 LD="${LD-ld} -melf32bsmip"
6815 ;;
6816 *N32*)
6817 LD="${LD-ld} -melf32bmipn32"
6818 ;;
6819 *64-bit*)
6820 LD="${LD-ld} -melf64bmip"
6821 ;;
6822 esac
6823 else
6824 case `/usr/bin/file conftest.$ac_objext` in
6825 *32-bit*)
6826 LD="${LD-ld} -32"
6827 ;;
6828 *N32*)
6829 LD="${LD-ld} -n32"
6830 ;;
6831 *64-bit*)
6832 LD="${LD-ld} -64"
6833 ;;
6834 esac
6835 fi
6836 fi
6837 rm -rf conftest*
6838 ;;
6839
6840 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6841 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6842 # Find out which ABI we are using.
6843 echo 'int i;' > conftest.$ac_ext
6844 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6845 (eval $ac_compile) 2>&5
6846 ac_status=$?
6847 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6848 test $ac_status = 0; }; then
6849 case `/usr/bin/file conftest.o` in
6850 *32-bit*)
6851 case $host in
6852 x86_64-*kfreebsd*-gnu)
6853 LD="${LD-ld} -m elf_i386_fbsd"
6854 ;;
6855 x86_64-*linux*)
6856 case `/usr/bin/file conftest.o` in
6857 *x86-64*)
6858 LD="${LD-ld} -m elf32_x86_64"
6859 ;;
6860 *)
6861 LD="${LD-ld} -m elf_i386"
6862 ;;
6863 esac
6864 ;;
6865 powerpc64le-*linux*)
6866 LD="${LD-ld} -m elf32lppclinux"
6867 ;;
6868 powerpc64-*linux*)
6869 LD="${LD-ld} -m elf32ppclinux"
6870 ;;
6871 s390x-*linux*)
6872 LD="${LD-ld} -m elf_s390"
6873 ;;
6874 sparc64-*linux*)
6875 LD="${LD-ld} -m elf32_sparc"
6876 ;;
6877 esac
6878 ;;
6879 *64-bit*)
6880 case $host in
6881 x86_64-*kfreebsd*-gnu)
6882 LD="${LD-ld} -m elf_x86_64_fbsd"
6883 ;;
6884 x86_64-*linux*)
6885 LD="${LD-ld} -m elf_x86_64"
6886 ;;
6887 powerpcle-*linux*)
6888 LD="${LD-ld} -m elf64lppc"
6889 ;;
6890 powerpc-*linux*)
6891 LD="${LD-ld} -m elf64ppc"
6892 ;;
6893 s390*-*linux*|s390*-*tpf*)
6894 LD="${LD-ld} -m elf64_s390"
6895 ;;
6896 sparc*-*linux*)
6897 LD="${LD-ld} -m elf64_sparc"
6898 ;;
6899 esac
6900 ;;
6901 esac
6902 fi
6903 rm -rf conftest*
6904 ;;
6905
6906 *-*-sco3.2v5*)
6907 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6908 SAVE_CFLAGS="$CFLAGS"
6909 CFLAGS="$CFLAGS -belf"
6910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6911 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6912 if ${lt_cv_cc_needs_belf+:} false; then :
6913 $as_echo_n "(cached) " >&6
6914 else
6915 ac_ext=c
6916 ac_cpp='$CPP $CPPFLAGS'
6917 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6918 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6919 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6920
6921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6922 /* end confdefs.h. */
6923
6924 int
6925 main ()
6926 {
6927
6928 ;
6929 return 0;
6930 }
6931 _ACEOF
6932 if ac_fn_c_try_link "$LINENO"; then :
6933 lt_cv_cc_needs_belf=yes
6934 else
6935 lt_cv_cc_needs_belf=no
6936 fi
6937 rm -f core conftest.err conftest.$ac_objext \
6938 conftest$ac_exeext conftest.$ac_ext
6939 ac_ext=c
6940 ac_cpp='$CPP $CPPFLAGS'
6941 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6942 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6943 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6944
6945 fi
6946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6947 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6948 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6949 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6950 CFLAGS="$SAVE_CFLAGS"
6951 fi
6952 ;;
6953 sparc*-*solaris*)
6954 # Find out which ABI we are using.
6955 echo 'int i;' > conftest.$ac_ext
6956 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6957 (eval $ac_compile) 2>&5
6958 ac_status=$?
6959 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6960 test $ac_status = 0; }; then
6961 case `/usr/bin/file conftest.o` in
6962 *64-bit*)
6963 case $lt_cv_prog_gnu_ld in
6964 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6965 *)
6966 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6967 LD="${LD-ld} -64"
6968 fi
6969 ;;
6970 esac
6971 ;;
6972 esac
6973 fi
6974 rm -rf conftest*
6975 ;;
6976 esac
6977
6978 need_locks="$enable_libtool_lock"
6979
6980
6981 case $host_os in
6982 rhapsody* | darwin*)
6983 if test -n "$ac_tool_prefix"; then
6984 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6985 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6987 $as_echo_n "checking for $ac_word... " >&6; }
6988 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6989 $as_echo_n "(cached) " >&6
6990 else
6991 if test -n "$DSYMUTIL"; then
6992 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6993 else
6994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6995 for as_dir in $PATH
6996 do
6997 IFS=$as_save_IFS
6998 test -z "$as_dir" && as_dir=.
6999 for ac_exec_ext in '' $ac_executable_extensions; do
7000 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7001 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7003 break 2
7004 fi
7005 done
7006 done
7007 IFS=$as_save_IFS
7008
7009 fi
7010 fi
7011 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7012 if test -n "$DSYMUTIL"; then
7013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7014 $as_echo "$DSYMUTIL" >&6; }
7015 else
7016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7017 $as_echo "no" >&6; }
7018 fi
7019
7020
7021 fi
7022 if test -z "$ac_cv_prog_DSYMUTIL"; then
7023 ac_ct_DSYMUTIL=$DSYMUTIL
7024 # Extract the first word of "dsymutil", so it can be a program name with args.
7025 set dummy dsymutil; ac_word=$2
7026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7027 $as_echo_n "checking for $ac_word... " >&6; }
7028 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7029 $as_echo_n "(cached) " >&6
7030 else
7031 if test -n "$ac_ct_DSYMUTIL"; then
7032 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7033 else
7034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7035 for as_dir in $PATH
7036 do
7037 IFS=$as_save_IFS
7038 test -z "$as_dir" && as_dir=.
7039 for ac_exec_ext in '' $ac_executable_extensions; do
7040 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7041 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7043 break 2
7044 fi
7045 done
7046 done
7047 IFS=$as_save_IFS
7048
7049 fi
7050 fi
7051 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7052 if test -n "$ac_ct_DSYMUTIL"; then
7053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7054 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7055 else
7056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7057 $as_echo "no" >&6; }
7058 fi
7059
7060 if test "x$ac_ct_DSYMUTIL" = x; then
7061 DSYMUTIL=":"
7062 else
7063 case $cross_compiling:$ac_tool_warned in
7064 yes:)
7065 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7066 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7067 ac_tool_warned=yes ;;
7068 esac
7069 DSYMUTIL=$ac_ct_DSYMUTIL
7070 fi
7071 else
7072 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7073 fi
7074
7075 if test -n "$ac_tool_prefix"; then
7076 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7077 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7079 $as_echo_n "checking for $ac_word... " >&6; }
7080 if ${ac_cv_prog_NMEDIT+:} false; then :
7081 $as_echo_n "(cached) " >&6
7082 else
7083 if test -n "$NMEDIT"; then
7084 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7085 else
7086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7087 for as_dir in $PATH
7088 do
7089 IFS=$as_save_IFS
7090 test -z "$as_dir" && as_dir=.
7091 for ac_exec_ext in '' $ac_executable_extensions; do
7092 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7093 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7095 break 2
7096 fi
7097 done
7098 done
7099 IFS=$as_save_IFS
7100
7101 fi
7102 fi
7103 NMEDIT=$ac_cv_prog_NMEDIT
7104 if test -n "$NMEDIT"; then
7105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7106 $as_echo "$NMEDIT" >&6; }
7107 else
7108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7109 $as_echo "no" >&6; }
7110 fi
7111
7112
7113 fi
7114 if test -z "$ac_cv_prog_NMEDIT"; then
7115 ac_ct_NMEDIT=$NMEDIT
7116 # Extract the first word of "nmedit", so it can be a program name with args.
7117 set dummy nmedit; ac_word=$2
7118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7119 $as_echo_n "checking for $ac_word... " >&6; }
7120 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7121 $as_echo_n "(cached) " >&6
7122 else
7123 if test -n "$ac_ct_NMEDIT"; then
7124 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7125 else
7126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7127 for as_dir in $PATH
7128 do
7129 IFS=$as_save_IFS
7130 test -z "$as_dir" && as_dir=.
7131 for ac_exec_ext in '' $ac_executable_extensions; do
7132 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7133 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7135 break 2
7136 fi
7137 done
7138 done
7139 IFS=$as_save_IFS
7140
7141 fi
7142 fi
7143 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7144 if test -n "$ac_ct_NMEDIT"; then
7145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7146 $as_echo "$ac_ct_NMEDIT" >&6; }
7147 else
7148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7149 $as_echo "no" >&6; }
7150 fi
7151
7152 if test "x$ac_ct_NMEDIT" = x; then
7153 NMEDIT=":"
7154 else
7155 case $cross_compiling:$ac_tool_warned in
7156 yes:)
7157 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7158 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7159 ac_tool_warned=yes ;;
7160 esac
7161 NMEDIT=$ac_ct_NMEDIT
7162 fi
7163 else
7164 NMEDIT="$ac_cv_prog_NMEDIT"
7165 fi
7166
7167 if test -n "$ac_tool_prefix"; then
7168 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7169 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7171 $as_echo_n "checking for $ac_word... " >&6; }
7172 if ${ac_cv_prog_LIPO+:} false; then :
7173 $as_echo_n "(cached) " >&6
7174 else
7175 if test -n "$LIPO"; then
7176 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7177 else
7178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7179 for as_dir in $PATH
7180 do
7181 IFS=$as_save_IFS
7182 test -z "$as_dir" && as_dir=.
7183 for ac_exec_ext in '' $ac_executable_extensions; do
7184 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7185 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7187 break 2
7188 fi
7189 done
7190 done
7191 IFS=$as_save_IFS
7192
7193 fi
7194 fi
7195 LIPO=$ac_cv_prog_LIPO
7196 if test -n "$LIPO"; then
7197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7198 $as_echo "$LIPO" >&6; }
7199 else
7200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7201 $as_echo "no" >&6; }
7202 fi
7203
7204
7205 fi
7206 if test -z "$ac_cv_prog_LIPO"; then
7207 ac_ct_LIPO=$LIPO
7208 # Extract the first word of "lipo", so it can be a program name with args.
7209 set dummy lipo; ac_word=$2
7210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7211 $as_echo_n "checking for $ac_word... " >&6; }
7212 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7213 $as_echo_n "(cached) " >&6
7214 else
7215 if test -n "$ac_ct_LIPO"; then
7216 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7217 else
7218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7219 for as_dir in $PATH
7220 do
7221 IFS=$as_save_IFS
7222 test -z "$as_dir" && as_dir=.
7223 for ac_exec_ext in '' $ac_executable_extensions; do
7224 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7225 ac_cv_prog_ac_ct_LIPO="lipo"
7226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7227 break 2
7228 fi
7229 done
7230 done
7231 IFS=$as_save_IFS
7232
7233 fi
7234 fi
7235 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7236 if test -n "$ac_ct_LIPO"; then
7237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7238 $as_echo "$ac_ct_LIPO" >&6; }
7239 else
7240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7241 $as_echo "no" >&6; }
7242 fi
7243
7244 if test "x$ac_ct_LIPO" = x; then
7245 LIPO=":"
7246 else
7247 case $cross_compiling:$ac_tool_warned in
7248 yes:)
7249 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7250 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7251 ac_tool_warned=yes ;;
7252 esac
7253 LIPO=$ac_ct_LIPO
7254 fi
7255 else
7256 LIPO="$ac_cv_prog_LIPO"
7257 fi
7258
7259 if test -n "$ac_tool_prefix"; then
7260 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7261 set dummy ${ac_tool_prefix}otool; ac_word=$2
7262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7263 $as_echo_n "checking for $ac_word... " >&6; }
7264 if ${ac_cv_prog_OTOOL+:} false; then :
7265 $as_echo_n "(cached) " >&6
7266 else
7267 if test -n "$OTOOL"; then
7268 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7269 else
7270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7271 for as_dir in $PATH
7272 do
7273 IFS=$as_save_IFS
7274 test -z "$as_dir" && as_dir=.
7275 for ac_exec_ext in '' $ac_executable_extensions; do
7276 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7277 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7279 break 2
7280 fi
7281 done
7282 done
7283 IFS=$as_save_IFS
7284
7285 fi
7286 fi
7287 OTOOL=$ac_cv_prog_OTOOL
7288 if test -n "$OTOOL"; then
7289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7290 $as_echo "$OTOOL" >&6; }
7291 else
7292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7293 $as_echo "no" >&6; }
7294 fi
7295
7296
7297 fi
7298 if test -z "$ac_cv_prog_OTOOL"; then
7299 ac_ct_OTOOL=$OTOOL
7300 # Extract the first word of "otool", so it can be a program name with args.
7301 set dummy otool; ac_word=$2
7302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7303 $as_echo_n "checking for $ac_word... " >&6; }
7304 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7305 $as_echo_n "(cached) " >&6
7306 else
7307 if test -n "$ac_ct_OTOOL"; then
7308 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7309 else
7310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7311 for as_dir in $PATH
7312 do
7313 IFS=$as_save_IFS
7314 test -z "$as_dir" && as_dir=.
7315 for ac_exec_ext in '' $ac_executable_extensions; do
7316 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7317 ac_cv_prog_ac_ct_OTOOL="otool"
7318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7319 break 2
7320 fi
7321 done
7322 done
7323 IFS=$as_save_IFS
7324
7325 fi
7326 fi
7327 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7328 if test -n "$ac_ct_OTOOL"; then
7329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7330 $as_echo "$ac_ct_OTOOL" >&6; }
7331 else
7332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7333 $as_echo "no" >&6; }
7334 fi
7335
7336 if test "x$ac_ct_OTOOL" = x; then
7337 OTOOL=":"
7338 else
7339 case $cross_compiling:$ac_tool_warned in
7340 yes:)
7341 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7342 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7343 ac_tool_warned=yes ;;
7344 esac
7345 OTOOL=$ac_ct_OTOOL
7346 fi
7347 else
7348 OTOOL="$ac_cv_prog_OTOOL"
7349 fi
7350
7351 if test -n "$ac_tool_prefix"; then
7352 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7353 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7355 $as_echo_n "checking for $ac_word... " >&6; }
7356 if ${ac_cv_prog_OTOOL64+:} false; then :
7357 $as_echo_n "(cached) " >&6
7358 else
7359 if test -n "$OTOOL64"; then
7360 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7361 else
7362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7363 for as_dir in $PATH
7364 do
7365 IFS=$as_save_IFS
7366 test -z "$as_dir" && as_dir=.
7367 for ac_exec_ext in '' $ac_executable_extensions; do
7368 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7369 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7371 break 2
7372 fi
7373 done
7374 done
7375 IFS=$as_save_IFS
7376
7377 fi
7378 fi
7379 OTOOL64=$ac_cv_prog_OTOOL64
7380 if test -n "$OTOOL64"; then
7381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7382 $as_echo "$OTOOL64" >&6; }
7383 else
7384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7385 $as_echo "no" >&6; }
7386 fi
7387
7388
7389 fi
7390 if test -z "$ac_cv_prog_OTOOL64"; then
7391 ac_ct_OTOOL64=$OTOOL64
7392 # Extract the first word of "otool64", so it can be a program name with args.
7393 set dummy otool64; ac_word=$2
7394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7395 $as_echo_n "checking for $ac_word... " >&6; }
7396 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7397 $as_echo_n "(cached) " >&6
7398 else
7399 if test -n "$ac_ct_OTOOL64"; then
7400 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7401 else
7402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7403 for as_dir in $PATH
7404 do
7405 IFS=$as_save_IFS
7406 test -z "$as_dir" && as_dir=.
7407 for ac_exec_ext in '' $ac_executable_extensions; do
7408 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7409 ac_cv_prog_ac_ct_OTOOL64="otool64"
7410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7411 break 2
7412 fi
7413 done
7414 done
7415 IFS=$as_save_IFS
7416
7417 fi
7418 fi
7419 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7420 if test -n "$ac_ct_OTOOL64"; then
7421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7422 $as_echo "$ac_ct_OTOOL64" >&6; }
7423 else
7424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7425 $as_echo "no" >&6; }
7426 fi
7427
7428 if test "x$ac_ct_OTOOL64" = x; then
7429 OTOOL64=":"
7430 else
7431 case $cross_compiling:$ac_tool_warned in
7432 yes:)
7433 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7434 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7435 ac_tool_warned=yes ;;
7436 esac
7437 OTOOL64=$ac_ct_OTOOL64
7438 fi
7439 else
7440 OTOOL64="$ac_cv_prog_OTOOL64"
7441 fi
7442
7443
7444
7445
7446
7447
7448
7449
7450
7451
7452
7453
7454
7455
7456
7457
7458
7459
7460
7461
7462
7463
7464
7465
7466
7467
7468
7469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7470 $as_echo_n "checking for -single_module linker flag... " >&6; }
7471 if ${lt_cv_apple_cc_single_mod+:} false; then :
7472 $as_echo_n "(cached) " >&6
7473 else
7474 lt_cv_apple_cc_single_mod=no
7475 if test -z "${LT_MULTI_MODULE}"; then
7476 # By default we will add the -single_module flag. You can override
7477 # by either setting the environment variable LT_MULTI_MODULE
7478 # non-empty at configure time, or by adding -multi_module to the
7479 # link flags.
7480 rm -rf libconftest.dylib*
7481 echo "int foo(void){return 1;}" > conftest.c
7482 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7483 -dynamiclib -Wl,-single_module conftest.c" >&5
7484 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7485 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7486 _lt_result=$?
7487 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7488 lt_cv_apple_cc_single_mod=yes
7489 else
7490 cat conftest.err >&5
7491 fi
7492 rm -rf libconftest.dylib*
7493 rm -f conftest.*
7494 fi
7495 fi
7496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7497 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7499 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7500 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7501 $as_echo_n "(cached) " >&6
7502 else
7503 lt_cv_ld_exported_symbols_list=no
7504 save_LDFLAGS=$LDFLAGS
7505 echo "_main" > conftest.sym
7506 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7508 /* end confdefs.h. */
7509
7510 int
7511 main ()
7512 {
7513
7514 ;
7515 return 0;
7516 }
7517 _ACEOF
7518 if ac_fn_c_try_link "$LINENO"; then :
7519 lt_cv_ld_exported_symbols_list=yes
7520 else
7521 lt_cv_ld_exported_symbols_list=no
7522 fi
7523 rm -f core conftest.err conftest.$ac_objext \
7524 conftest$ac_exeext conftest.$ac_ext
7525 LDFLAGS="$save_LDFLAGS"
7526
7527 fi
7528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7529 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7531 $as_echo_n "checking for -force_load linker flag... " >&6; }
7532 if ${lt_cv_ld_force_load+:} false; then :
7533 $as_echo_n "(cached) " >&6
7534 else
7535 lt_cv_ld_force_load=no
7536 cat > conftest.c << _LT_EOF
7537 int forced_loaded() { return 2;}
7538 _LT_EOF
7539 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7540 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7541 echo "$AR cru libconftest.a conftest.o" >&5
7542 $AR cru libconftest.a conftest.o 2>&5
7543 cat > conftest.c << _LT_EOF
7544 int main() { return 0;}
7545 _LT_EOF
7546 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7547 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7548 _lt_result=$?
7549 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7550 lt_cv_ld_force_load=yes
7551 else
7552 cat conftest.err >&5
7553 fi
7554 rm -f conftest.err libconftest.a conftest conftest.c
7555 rm -rf conftest.dSYM
7556
7557 fi
7558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7559 $as_echo "$lt_cv_ld_force_load" >&6; }
7560 case $host_os in
7561 rhapsody* | darwin1.[012])
7562 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7563 darwin1.*)
7564 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7565 darwin*) # darwin 5.x on
7566 # if running on 10.5 or later, the deployment target defaults
7567 # to the OS version, if on x86, and 10.4, the deployment
7568 # target defaults to 10.4. Don't you love it?
7569 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7570 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7571 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7572 10.[012][,.]*)
7573 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7574 10.*)
7575 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7576 esac
7577 ;;
7578 esac
7579 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7580 _lt_dar_single_mod='$single_module'
7581 fi
7582 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7583 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7584 else
7585 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7586 fi
7587 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7588 _lt_dsymutil='~$DSYMUTIL $lib || :'
7589 else
7590 _lt_dsymutil=
7591 fi
7592 ;;
7593 esac
7594
7595 for ac_header in dlfcn.h
7596 do :
7597 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7598 "
7599 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7600 cat >>confdefs.h <<_ACEOF
7601 #define HAVE_DLFCN_H 1
7602 _ACEOF
7603
7604 fi
7605
7606 done
7607
7608
7609
7610
7611
7612 # Set options
7613 enable_dlopen=yes
7614
7615
7616
7617
7618 enable_win32_dll=no
7619
7620
7621
7622 # Check whether --enable-static was given.
7623 if test "${enable_static+set}" = set; then :
7624 enableval=$enable_static; p=${PACKAGE-default}
7625 case $enableval in
7626 yes) enable_static=yes ;;
7627 no) enable_static=no ;;
7628 *)
7629 enable_static=no
7630 # Look at the argument we got. We use all the common list separators.
7631 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7632 for pkg in $enableval; do
7633 IFS="$lt_save_ifs"
7634 if test "X$pkg" = "X$p"; then
7635 enable_static=yes
7636 fi
7637 done
7638 IFS="$lt_save_ifs"
7639 ;;
7640 esac
7641 else
7642 enable_static=yes
7643 fi
7644
7645
7646
7647
7648
7649
7650
7651
7652
7653
7654 # Check whether --with-pic was given.
7655 if test "${with_pic+set}" = set; then :
7656 withval=$with_pic; pic_mode="$withval"
7657 else
7658 pic_mode=default
7659 fi
7660
7661
7662 test -z "$pic_mode" && pic_mode=default
7663
7664
7665
7666
7667
7668
7669
7670 # Check whether --enable-fast-install was given.
7671 if test "${enable_fast_install+set}" = set; then :
7672 enableval=$enable_fast_install; p=${PACKAGE-default}
7673 case $enableval in
7674 yes) enable_fast_install=yes ;;
7675 no) enable_fast_install=no ;;
7676 *)
7677 enable_fast_install=no
7678 # Look at the argument we got. We use all the common list separators.
7679 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7680 for pkg in $enableval; do
7681 IFS="$lt_save_ifs"
7682 if test "X$pkg" = "X$p"; then
7683 enable_fast_install=yes
7684 fi
7685 done
7686 IFS="$lt_save_ifs"
7687 ;;
7688 esac
7689 else
7690 enable_fast_install=yes
7691 fi
7692
7693
7694
7695
7696
7697
7698
7699
7700
7701
7702
7703 # This can be used to rebuild libtool when needed
7704 LIBTOOL_DEPS="$ltmain"
7705
7706 # Always use our own libtool.
7707 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7708
7709
7710
7711
7712
7713
7714
7715
7716
7717
7718
7719
7720
7721
7722
7723
7724
7725
7726
7727
7728
7729
7730
7731
7732
7733
7734 test -z "$LN_S" && LN_S="ln -s"
7735
7736
7737
7738
7739
7740
7741
7742
7743
7744
7745
7746
7747
7748
7749 if test -n "${ZSH_VERSION+set}" ; then
7750 setopt NO_GLOB_SUBST
7751 fi
7752
7753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7754 $as_echo_n "checking for objdir... " >&6; }
7755 if ${lt_cv_objdir+:} false; then :
7756 $as_echo_n "(cached) " >&6
7757 else
7758 rm -f .libs 2>/dev/null
7759 mkdir .libs 2>/dev/null
7760 if test -d .libs; then
7761 lt_cv_objdir=.libs
7762 else
7763 # MS-DOS does not allow filenames that begin with a dot.
7764 lt_cv_objdir=_libs
7765 fi
7766 rmdir .libs 2>/dev/null
7767 fi
7768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7769 $as_echo "$lt_cv_objdir" >&6; }
7770 objdir=$lt_cv_objdir
7771
7772
7773
7774
7775
7776 cat >>confdefs.h <<_ACEOF
7777 #define LT_OBJDIR "$lt_cv_objdir/"
7778 _ACEOF
7779
7780
7781
7782
7783 case $host_os in
7784 aix3*)
7785 # AIX sometimes has problems with the GCC collect2 program. For some
7786 # reason, if we set the COLLECT_NAMES environment variable, the problems
7787 # vanish in a puff of smoke.
7788 if test "X${COLLECT_NAMES+set}" != Xset; then
7789 COLLECT_NAMES=
7790 export COLLECT_NAMES
7791 fi
7792 ;;
7793 esac
7794
7795 # Global variables:
7796 ofile=libtool
7797 can_build_shared=yes
7798
7799 # All known linkers require a `.a' archive for static linking (except MSVC,
7800 # which needs '.lib').
7801 libext=a
7802
7803 with_gnu_ld="$lt_cv_prog_gnu_ld"
7804
7805 old_CC="$CC"
7806 old_CFLAGS="$CFLAGS"
7807
7808 # Set sane defaults for various variables
7809 test -z "$CC" && CC=cc
7810 test -z "$LTCC" && LTCC=$CC
7811 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7812 test -z "$LD" && LD=ld
7813 test -z "$ac_objext" && ac_objext=o
7814
7815 for cc_temp in $compiler""; do
7816 case $cc_temp in
7817 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7818 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7819 \-*) ;;
7820 *) break;;
7821 esac
7822 done
7823 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7824
7825
7826 # Only perform the check for file, if the check method requires it
7827 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7828 case $deplibs_check_method in
7829 file_magic*)
7830 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7832 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7833 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7834 $as_echo_n "(cached) " >&6
7835 else
7836 case $MAGIC_CMD in
7837 [\\/*] | ?:[\\/]*)
7838 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7839 ;;
7840 *)
7841 lt_save_MAGIC_CMD="$MAGIC_CMD"
7842 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7843 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7844 for ac_dir in $ac_dummy; do
7845 IFS="$lt_save_ifs"
7846 test -z "$ac_dir" && ac_dir=.
7847 if test -f $ac_dir/${ac_tool_prefix}file; then
7848 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7849 if test -n "$file_magic_test_file"; then
7850 case $deplibs_check_method in
7851 "file_magic "*)
7852 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7853 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7854 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7855 $EGREP "$file_magic_regex" > /dev/null; then
7856 :
7857 else
7858 cat <<_LT_EOF 1>&2
7859
7860 *** Warning: the command libtool uses to detect shared libraries,
7861 *** $file_magic_cmd, produces output that libtool cannot recognize.
7862 *** The result is that libtool may fail to recognize shared libraries
7863 *** as such. This will affect the creation of libtool libraries that
7864 *** depend on shared libraries, but programs linked with such libtool
7865 *** libraries will work regardless of this problem. Nevertheless, you
7866 *** may want to report the problem to your system manager and/or to
7867 *** bug-libtool@gnu.org
7868
7869 _LT_EOF
7870 fi ;;
7871 esac
7872 fi
7873 break
7874 fi
7875 done
7876 IFS="$lt_save_ifs"
7877 MAGIC_CMD="$lt_save_MAGIC_CMD"
7878 ;;
7879 esac
7880 fi
7881
7882 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7883 if test -n "$MAGIC_CMD"; then
7884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7885 $as_echo "$MAGIC_CMD" >&6; }
7886 else
7887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7888 $as_echo "no" >&6; }
7889 fi
7890
7891
7892
7893
7894
7895 if test -z "$lt_cv_path_MAGIC_CMD"; then
7896 if test -n "$ac_tool_prefix"; then
7897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7898 $as_echo_n "checking for file... " >&6; }
7899 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7900 $as_echo_n "(cached) " >&6
7901 else
7902 case $MAGIC_CMD in
7903 [\\/*] | ?:[\\/]*)
7904 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7905 ;;
7906 *)
7907 lt_save_MAGIC_CMD="$MAGIC_CMD"
7908 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7909 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7910 for ac_dir in $ac_dummy; do
7911 IFS="$lt_save_ifs"
7912 test -z "$ac_dir" && ac_dir=.
7913 if test -f $ac_dir/file; then
7914 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7915 if test -n "$file_magic_test_file"; then
7916 case $deplibs_check_method in
7917 "file_magic "*)
7918 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7919 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7920 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7921 $EGREP "$file_magic_regex" > /dev/null; then
7922 :
7923 else
7924 cat <<_LT_EOF 1>&2
7925
7926 *** Warning: the command libtool uses to detect shared libraries,
7927 *** $file_magic_cmd, produces output that libtool cannot recognize.
7928 *** The result is that libtool may fail to recognize shared libraries
7929 *** as such. This will affect the creation of libtool libraries that
7930 *** depend on shared libraries, but programs linked with such libtool
7931 *** libraries will work regardless of this problem. Nevertheless, you
7932 *** may want to report the problem to your system manager and/or to
7933 *** bug-libtool@gnu.org
7934
7935 _LT_EOF
7936 fi ;;
7937 esac
7938 fi
7939 break
7940 fi
7941 done
7942 IFS="$lt_save_ifs"
7943 MAGIC_CMD="$lt_save_MAGIC_CMD"
7944 ;;
7945 esac
7946 fi
7947
7948 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7949 if test -n "$MAGIC_CMD"; then
7950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7951 $as_echo "$MAGIC_CMD" >&6; }
7952 else
7953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7954 $as_echo "no" >&6; }
7955 fi
7956
7957
7958 else
7959 MAGIC_CMD=:
7960 fi
7961 fi
7962
7963 fi
7964 ;;
7965 esac
7966
7967 # Use C for the default configuration in the libtool script
7968
7969 lt_save_CC="$CC"
7970 ac_ext=c
7971 ac_cpp='$CPP $CPPFLAGS'
7972 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7973 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7974 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7975
7976
7977 # Source file extension for C test sources.
7978 ac_ext=c
7979
7980 # Object file extension for compiled C test sources.
7981 objext=o
7982 objext=$objext
7983
7984 # Code to be used in simple compile tests
7985 lt_simple_compile_test_code="int some_variable = 0;"
7986
7987 # Code to be used in simple link tests
7988 lt_simple_link_test_code='int main(){return(0);}'
7989
7990
7991
7992
7993
7994
7995
7996 # If no C compiler was specified, use CC.
7997 LTCC=${LTCC-"$CC"}
7998
7999 # If no C compiler flags were specified, use CFLAGS.
8000 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8001
8002 # Allow CC to be a program name with arguments.
8003 compiler=$CC
8004
8005 # Save the default compiler, since it gets overwritten when the other
8006 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8007 compiler_DEFAULT=$CC
8008
8009 # save warnings/boilerplate of simple test code
8010 ac_outfile=conftest.$ac_objext
8011 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8012 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8013 _lt_compiler_boilerplate=`cat conftest.err`
8014 $RM conftest*
8015
8016 ac_outfile=conftest.$ac_objext
8017 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8018 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8019 _lt_linker_boilerplate=`cat conftest.err`
8020 $RM -r conftest*
8021
8022
8023 ## CAVEAT EMPTOR:
8024 ## There is no encapsulation within the following macros, do not change
8025 ## the running order or otherwise move them around unless you know exactly
8026 ## what you are doing...
8027 if test -n "$compiler"; then
8028
8029 lt_prog_compiler_no_builtin_flag=
8030
8031 if test "$GCC" = yes; then
8032 case $cc_basename in
8033 nvcc*)
8034 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8035 *)
8036 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8037 esac
8038
8039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8040 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8041 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8042 $as_echo_n "(cached) " >&6
8043 else
8044 lt_cv_prog_compiler_rtti_exceptions=no
8045 ac_outfile=conftest.$ac_objext
8046 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8047 lt_compiler_flag="-fno-rtti -fno-exceptions"
8048 # Insert the option either (1) after the last *FLAGS variable, or
8049 # (2) before a word containing "conftest.", or (3) at the end.
8050 # Note that $ac_compile itself does not contain backslashes and begins
8051 # with a dollar sign (not a hyphen), so the echo should work correctly.
8052 # The option is referenced via a variable to avoid confusing sed.
8053 lt_compile=`echo "$ac_compile" | $SED \
8054 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8055 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8056 -e 's:$: $lt_compiler_flag:'`
8057 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8058 (eval "$lt_compile" 2>conftest.err)
8059 ac_status=$?
8060 cat conftest.err >&5
8061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8062 if (exit $ac_status) && test -s "$ac_outfile"; then
8063 # The compiler can only warn and ignore the option if not recognized
8064 # So say no if there are warnings other than the usual output.
8065 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8066 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8067 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8068 lt_cv_prog_compiler_rtti_exceptions=yes
8069 fi
8070 fi
8071 $RM conftest*
8072
8073 fi
8074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8075 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8076
8077 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8078 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8079 else
8080 :
8081 fi
8082
8083 fi
8084
8085
8086
8087
8088
8089
8090 lt_prog_compiler_wl=
8091 lt_prog_compiler_pic=
8092 lt_prog_compiler_static=
8093
8094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8095 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8096
8097 if test "$GCC" = yes; then
8098 lt_prog_compiler_wl='-Wl,'
8099 lt_prog_compiler_static='-static'
8100
8101 case $host_os in
8102 aix*)
8103 # All AIX code is PIC.
8104 if test "$host_cpu" = ia64; then
8105 # AIX 5 now supports IA64 processor
8106 lt_prog_compiler_static='-Bstatic'
8107 fi
8108 lt_prog_compiler_pic='-fPIC'
8109 ;;
8110
8111 amigaos*)
8112 case $host_cpu in
8113 powerpc)
8114 # see comment about AmigaOS4 .so support
8115 lt_prog_compiler_pic='-fPIC'
8116 ;;
8117 m68k)
8118 # FIXME: we need at least 68020 code to build shared libraries, but
8119 # adding the `-m68020' flag to GCC prevents building anything better,
8120 # like `-m68040'.
8121 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8122 ;;
8123 esac
8124 ;;
8125
8126 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8127 # PIC is the default for these OSes.
8128 ;;
8129
8130 mingw* | cygwin* | pw32* | os2* | cegcc*)
8131 # This hack is so that the source file can tell whether it is being
8132 # built for inclusion in a dll (and should export symbols for example).
8133 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8134 # (--disable-auto-import) libraries
8135 lt_prog_compiler_pic='-DDLL_EXPORT'
8136 ;;
8137
8138 darwin* | rhapsody*)
8139 # PIC is the default on this platform
8140 # Common symbols not allowed in MH_DYLIB files
8141 lt_prog_compiler_pic='-fno-common'
8142 ;;
8143
8144 haiku*)
8145 # PIC is the default for Haiku.
8146 # The "-static" flag exists, but is broken.
8147 lt_prog_compiler_static=
8148 ;;
8149
8150 hpux*)
8151 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8152 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8153 # sets the default TLS model and affects inlining.
8154 case $host_cpu in
8155 hppa*64*)
8156 # +Z the default
8157 ;;
8158 *)
8159 lt_prog_compiler_pic='-fPIC'
8160 ;;
8161 esac
8162 ;;
8163
8164 interix[3-9]*)
8165 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8166 # Instead, we relocate shared libraries at runtime.
8167 ;;
8168
8169 msdosdjgpp*)
8170 # Just because we use GCC doesn't mean we suddenly get shared libraries
8171 # on systems that don't support them.
8172 lt_prog_compiler_can_build_shared=no
8173 enable_shared=no
8174 ;;
8175
8176 *nto* | *qnx*)
8177 # QNX uses GNU C++, but need to define -shared option too, otherwise
8178 # it will coredump.
8179 lt_prog_compiler_pic='-fPIC -shared'
8180 ;;
8181
8182 sysv4*MP*)
8183 if test -d /usr/nec; then
8184 lt_prog_compiler_pic=-Kconform_pic
8185 fi
8186 ;;
8187
8188 *)
8189 lt_prog_compiler_pic='-fPIC'
8190 ;;
8191 esac
8192
8193 case $cc_basename in
8194 nvcc*) # Cuda Compiler Driver 2.2
8195 lt_prog_compiler_wl='-Xlinker '
8196 lt_prog_compiler_pic='-Xcompiler -fPIC'
8197 ;;
8198 esac
8199 else
8200 # PORTME Check for flag to pass linker flags through the system compiler.
8201 case $host_os in
8202 aix*)
8203 lt_prog_compiler_wl='-Wl,'
8204 if test "$host_cpu" = ia64; then
8205 # AIX 5 now supports IA64 processor
8206 lt_prog_compiler_static='-Bstatic'
8207 else
8208 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8209 fi
8210 ;;
8211
8212 mingw* | cygwin* | pw32* | os2* | cegcc*)
8213 # This hack is so that the source file can tell whether it is being
8214 # built for inclusion in a dll (and should export symbols for example).
8215 lt_prog_compiler_pic='-DDLL_EXPORT'
8216 ;;
8217
8218 hpux9* | hpux10* | hpux11*)
8219 lt_prog_compiler_wl='-Wl,'
8220 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8221 # not for PA HP-UX.
8222 case $host_cpu in
8223 hppa*64*|ia64*)
8224 # +Z the default
8225 ;;
8226 *)
8227 lt_prog_compiler_pic='+Z'
8228 ;;
8229 esac
8230 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8231 lt_prog_compiler_static='${wl}-a ${wl}archive'
8232 ;;
8233
8234 irix5* | irix6* | nonstopux*)
8235 lt_prog_compiler_wl='-Wl,'
8236 # PIC (with -KPIC) is the default.
8237 lt_prog_compiler_static='-non_shared'
8238 ;;
8239
8240 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8241 case $cc_basename in
8242 # old Intel for x86_64 which still supported -KPIC.
8243 ecc*)
8244 lt_prog_compiler_wl='-Wl,'
8245 lt_prog_compiler_pic='-KPIC'
8246 lt_prog_compiler_static='-static'
8247 ;;
8248 # icc used to be incompatible with GCC.
8249 # ICC 10 doesn't accept -KPIC any more.
8250 icc* | ifort*)
8251 lt_prog_compiler_wl='-Wl,'
8252 lt_prog_compiler_pic='-fPIC'
8253 lt_prog_compiler_static='-static'
8254 ;;
8255 # Lahey Fortran 8.1.
8256 lf95*)
8257 lt_prog_compiler_wl='-Wl,'
8258 lt_prog_compiler_pic='--shared'
8259 lt_prog_compiler_static='--static'
8260 ;;
8261 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8262 # Portland Group compilers (*not* the Pentium gcc compiler,
8263 # which looks to be a dead project)
8264 lt_prog_compiler_wl='-Wl,'
8265 lt_prog_compiler_pic='-fpic'
8266 lt_prog_compiler_static='-Bstatic'
8267 ;;
8268 ccc*)
8269 lt_prog_compiler_wl='-Wl,'
8270 # All Alpha code is PIC.
8271 lt_prog_compiler_static='-non_shared'
8272 ;;
8273 xl* | bgxl* | bgf* | mpixl*)
8274 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8275 lt_prog_compiler_wl='-Wl,'
8276 lt_prog_compiler_pic='-qpic'
8277 lt_prog_compiler_static='-qstaticlink'
8278 ;;
8279 *)
8280 case `$CC -V 2>&1 | sed 5q` in
8281 *Sun\ F* | *Sun*Fortran*)
8282 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8283 lt_prog_compiler_pic='-KPIC'
8284 lt_prog_compiler_static='-Bstatic'
8285 lt_prog_compiler_wl=''
8286 ;;
8287 *Sun\ C*)
8288 # Sun C 5.9
8289 lt_prog_compiler_pic='-KPIC'
8290 lt_prog_compiler_static='-Bstatic'
8291 lt_prog_compiler_wl='-Wl,'
8292 ;;
8293 esac
8294 ;;
8295 esac
8296 ;;
8297
8298 newsos6)
8299 lt_prog_compiler_pic='-KPIC'
8300 lt_prog_compiler_static='-Bstatic'
8301 ;;
8302
8303 *nto* | *qnx*)
8304 # QNX uses GNU C++, but need to define -shared option too, otherwise
8305 # it will coredump.
8306 lt_prog_compiler_pic='-fPIC -shared'
8307 ;;
8308
8309 osf3* | osf4* | osf5*)
8310 lt_prog_compiler_wl='-Wl,'
8311 # All OSF/1 code is PIC.
8312 lt_prog_compiler_static='-non_shared'
8313 ;;
8314
8315 rdos*)
8316 lt_prog_compiler_static='-non_shared'
8317 ;;
8318
8319 solaris*)
8320 lt_prog_compiler_pic='-KPIC'
8321 lt_prog_compiler_static='-Bstatic'
8322 case $cc_basename in
8323 f77* | f90* | f95*)
8324 lt_prog_compiler_wl='-Qoption ld ';;
8325 *)
8326 lt_prog_compiler_wl='-Wl,';;
8327 esac
8328 ;;
8329
8330 sunos4*)
8331 lt_prog_compiler_wl='-Qoption ld '
8332 lt_prog_compiler_pic='-PIC'
8333 lt_prog_compiler_static='-Bstatic'
8334 ;;
8335
8336 sysv4 | sysv4.2uw2* | sysv4.3*)
8337 lt_prog_compiler_wl='-Wl,'
8338 lt_prog_compiler_pic='-KPIC'
8339 lt_prog_compiler_static='-Bstatic'
8340 ;;
8341
8342 sysv4*MP*)
8343 if test -d /usr/nec ;then
8344 lt_prog_compiler_pic='-Kconform_pic'
8345 lt_prog_compiler_static='-Bstatic'
8346 fi
8347 ;;
8348
8349 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8350 lt_prog_compiler_wl='-Wl,'
8351 lt_prog_compiler_pic='-KPIC'
8352 lt_prog_compiler_static='-Bstatic'
8353 ;;
8354
8355 unicos*)
8356 lt_prog_compiler_wl='-Wl,'
8357 lt_prog_compiler_can_build_shared=no
8358 ;;
8359
8360 uts4*)
8361 lt_prog_compiler_pic='-pic'
8362 lt_prog_compiler_static='-Bstatic'
8363 ;;
8364
8365 *)
8366 lt_prog_compiler_can_build_shared=no
8367 ;;
8368 esac
8369 fi
8370
8371 case $host_os in
8372 # For platforms which do not support PIC, -DPIC is meaningless:
8373 *djgpp*)
8374 lt_prog_compiler_pic=
8375 ;;
8376 *)
8377 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8378 ;;
8379 esac
8380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8381 $as_echo "$lt_prog_compiler_pic" >&6; }
8382
8383
8384
8385
8386
8387
8388 #
8389 # Check to make sure the PIC flag actually works.
8390 #
8391 if test -n "$lt_prog_compiler_pic"; then
8392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8393 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8394 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8395 $as_echo_n "(cached) " >&6
8396 else
8397 lt_cv_prog_compiler_pic_works=no
8398 ac_outfile=conftest.$ac_objext
8399 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8400 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8401 # Insert the option either (1) after the last *FLAGS variable, or
8402 # (2) before a word containing "conftest.", or (3) at the end.
8403 # Note that $ac_compile itself does not contain backslashes and begins
8404 # with a dollar sign (not a hyphen), so the echo should work correctly.
8405 # The option is referenced via a variable to avoid confusing sed.
8406 lt_compile=`echo "$ac_compile" | $SED \
8407 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8408 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8409 -e 's:$: $lt_compiler_flag:'`
8410 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8411 (eval "$lt_compile" 2>conftest.err)
8412 ac_status=$?
8413 cat conftest.err >&5
8414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8415 if (exit $ac_status) && test -s "$ac_outfile"; then
8416 # The compiler can only warn and ignore the option if not recognized
8417 # So say no if there are warnings other than the usual output.
8418 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8419 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8420 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8421 lt_cv_prog_compiler_pic_works=yes
8422 fi
8423 fi
8424 $RM conftest*
8425
8426 fi
8427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8428 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8429
8430 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8431 case $lt_prog_compiler_pic in
8432 "" | " "*) ;;
8433 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8434 esac
8435 else
8436 lt_prog_compiler_pic=
8437 lt_prog_compiler_can_build_shared=no
8438 fi
8439
8440 fi
8441
8442
8443
8444
8445
8446
8447 #
8448 # Check to make sure the static flag actually works.
8449 #
8450 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8452 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8453 if ${lt_cv_prog_compiler_static_works+:} false; then :
8454 $as_echo_n "(cached) " >&6
8455 else
8456 lt_cv_prog_compiler_static_works=no
8457 save_LDFLAGS="$LDFLAGS"
8458 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8459 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8460 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8461 # The linker can only warn and ignore the option if not recognized
8462 # So say no if there are warnings
8463 if test -s conftest.err; then
8464 # Append any errors to the config.log.
8465 cat conftest.err 1>&5
8466 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8467 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8468 if diff conftest.exp conftest.er2 >/dev/null; then
8469 lt_cv_prog_compiler_static_works=yes
8470 fi
8471 else
8472 lt_cv_prog_compiler_static_works=yes
8473 fi
8474 fi
8475 $RM -r conftest*
8476 LDFLAGS="$save_LDFLAGS"
8477
8478 fi
8479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8480 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8481
8482 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8483 :
8484 else
8485 lt_prog_compiler_static=
8486 fi
8487
8488
8489
8490
8491
8492
8493
8494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8495 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8496 if ${lt_cv_prog_compiler_c_o+:} false; then :
8497 $as_echo_n "(cached) " >&6
8498 else
8499 lt_cv_prog_compiler_c_o=no
8500 $RM -r conftest 2>/dev/null
8501 mkdir conftest
8502 cd conftest
8503 mkdir out
8504 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8505
8506 lt_compiler_flag="-o out/conftest2.$ac_objext"
8507 # Insert the option either (1) after the last *FLAGS variable, or
8508 # (2) before a word containing "conftest.", or (3) at the end.
8509 # Note that $ac_compile itself does not contain backslashes and begins
8510 # with a dollar sign (not a hyphen), so the echo should work correctly.
8511 lt_compile=`echo "$ac_compile" | $SED \
8512 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8513 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8514 -e 's:$: $lt_compiler_flag:'`
8515 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8516 (eval "$lt_compile" 2>out/conftest.err)
8517 ac_status=$?
8518 cat out/conftest.err >&5
8519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8520 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8521 then
8522 # The compiler can only warn and ignore the option if not recognized
8523 # So say no if there are warnings
8524 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8525 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8526 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8527 lt_cv_prog_compiler_c_o=yes
8528 fi
8529 fi
8530 chmod u+w . 2>&5
8531 $RM conftest*
8532 # SGI C++ compiler will create directory out/ii_files/ for
8533 # template instantiation
8534 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8535 $RM out/* && rmdir out
8536 cd ..
8537 $RM -r conftest
8538 $RM conftest*
8539
8540 fi
8541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8542 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8543
8544
8545
8546
8547
8548
8549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8550 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8551 if ${lt_cv_prog_compiler_c_o+:} false; then :
8552 $as_echo_n "(cached) " >&6
8553 else
8554 lt_cv_prog_compiler_c_o=no
8555 $RM -r conftest 2>/dev/null
8556 mkdir conftest
8557 cd conftest
8558 mkdir out
8559 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8560
8561 lt_compiler_flag="-o out/conftest2.$ac_objext"
8562 # Insert the option either (1) after the last *FLAGS variable, or
8563 # (2) before a word containing "conftest.", or (3) at the end.
8564 # Note that $ac_compile itself does not contain backslashes and begins
8565 # with a dollar sign (not a hyphen), so the echo should work correctly.
8566 lt_compile=`echo "$ac_compile" | $SED \
8567 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8568 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8569 -e 's:$: $lt_compiler_flag:'`
8570 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8571 (eval "$lt_compile" 2>out/conftest.err)
8572 ac_status=$?
8573 cat out/conftest.err >&5
8574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8575 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8576 then
8577 # The compiler can only warn and ignore the option if not recognized
8578 # So say no if there are warnings
8579 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8580 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8581 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8582 lt_cv_prog_compiler_c_o=yes
8583 fi
8584 fi
8585 chmod u+w . 2>&5
8586 $RM conftest*
8587 # SGI C++ compiler will create directory out/ii_files/ for
8588 # template instantiation
8589 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8590 $RM out/* && rmdir out
8591 cd ..
8592 $RM -r conftest
8593 $RM conftest*
8594
8595 fi
8596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8597 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8598
8599
8600
8601
8602 hard_links="nottested"
8603 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8604 # do not overwrite the value of need_locks provided by the user
8605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8606 $as_echo_n "checking if we can lock with hard links... " >&6; }
8607 hard_links=yes
8608 $RM conftest*
8609 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8610 touch conftest.a
8611 ln conftest.a conftest.b 2>&5 || hard_links=no
8612 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8614 $as_echo "$hard_links" >&6; }
8615 if test "$hard_links" = no; then
8616 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8617 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8618 need_locks=warn
8619 fi
8620 else
8621 need_locks=no
8622 fi
8623
8624
8625
8626
8627
8628
8629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8630 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8631
8632 runpath_var=
8633 allow_undefined_flag=
8634 always_export_symbols=no
8635 archive_cmds=
8636 archive_expsym_cmds=
8637 compiler_needs_object=no
8638 enable_shared_with_static_runtimes=no
8639 export_dynamic_flag_spec=
8640 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8641 hardcode_automatic=no
8642 hardcode_direct=no
8643 hardcode_direct_absolute=no
8644 hardcode_libdir_flag_spec=
8645 hardcode_libdir_flag_spec_ld=
8646 hardcode_libdir_separator=
8647 hardcode_minus_L=no
8648 hardcode_shlibpath_var=unsupported
8649 inherit_rpath=no
8650 link_all_deplibs=unknown
8651 module_cmds=
8652 module_expsym_cmds=
8653 old_archive_from_new_cmds=
8654 old_archive_from_expsyms_cmds=
8655 thread_safe_flag_spec=
8656 whole_archive_flag_spec=
8657 # include_expsyms should be a list of space-separated symbols to be *always*
8658 # included in the symbol list
8659 include_expsyms=
8660 # exclude_expsyms can be an extended regexp of symbols to exclude
8661 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8662 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8663 # as well as any symbol that contains `d'.
8664 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8665 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8666 # platforms (ab)use it in PIC code, but their linkers get confused if
8667 # the symbol is explicitly referenced. Since portable code cannot
8668 # rely on this symbol name, it's probably fine to never include it in
8669 # preloaded symbol tables.
8670 # Exclude shared library initialization/finalization symbols.
8671 extract_expsyms_cmds=
8672
8673 case $host_os in
8674 cygwin* | mingw* | pw32* | cegcc*)
8675 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8676 # When not using gcc, we currently assume that we are using
8677 # Microsoft Visual C++.
8678 if test "$GCC" != yes; then
8679 with_gnu_ld=no
8680 fi
8681 ;;
8682 interix*)
8683 # we just hope/assume this is gcc and not c89 (= MSVC++)
8684 with_gnu_ld=yes
8685 ;;
8686 openbsd*)
8687 with_gnu_ld=no
8688 ;;
8689 esac
8690
8691 ld_shlibs=yes
8692
8693 # On some targets, GNU ld is compatible enough with the native linker
8694 # that we're better off using the native interface for both.
8695 lt_use_gnu_ld_interface=no
8696 if test "$with_gnu_ld" = yes; then
8697 case $host_os in
8698 aix*)
8699 # The AIX port of GNU ld has always aspired to compatibility
8700 # with the native linker. However, as the warning in the GNU ld
8701 # block says, versions before 2.19.5* couldn't really create working
8702 # shared libraries, regardless of the interface used.
8703 case `$LD -v 2>&1` in
8704 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8705 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8706 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8707 *)
8708 lt_use_gnu_ld_interface=yes
8709 ;;
8710 esac
8711 ;;
8712 *)
8713 lt_use_gnu_ld_interface=yes
8714 ;;
8715 esac
8716 fi
8717
8718 if test "$lt_use_gnu_ld_interface" = yes; then
8719 # If archive_cmds runs LD, not CC, wlarc should be empty
8720 wlarc='${wl}'
8721
8722 # Set some defaults for GNU ld with shared library support. These
8723 # are reset later if shared libraries are not supported. Putting them
8724 # here allows them to be overridden if necessary.
8725 runpath_var=LD_RUN_PATH
8726 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8727 export_dynamic_flag_spec='${wl}--export-dynamic'
8728 # ancient GNU ld didn't support --whole-archive et. al.
8729 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8730 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8731 else
8732 whole_archive_flag_spec=
8733 fi
8734 supports_anon_versioning=no
8735 case `$LD -v 2>&1` in
8736 *GNU\ gold*) supports_anon_versioning=yes ;;
8737 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8738 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8739 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8740 *\ 2.11.*) ;; # other 2.11 versions
8741 *) supports_anon_versioning=yes ;;
8742 esac
8743
8744 # See if GNU ld supports shared libraries.
8745 case $host_os in
8746 aix[3-9]*)
8747 # On AIX/PPC, the GNU linker is very broken
8748 if test "$host_cpu" != ia64; then
8749 ld_shlibs=no
8750 cat <<_LT_EOF 1>&2
8751
8752 *** Warning: the GNU linker, at least up to release 2.19, is reported
8753 *** to be unable to reliably create shared libraries on AIX.
8754 *** Therefore, libtool is disabling shared libraries support. If you
8755 *** really care for shared libraries, you may want to install binutils
8756 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8757 *** You will then need to restart the configuration process.
8758
8759 _LT_EOF
8760 fi
8761 ;;
8762
8763 amigaos*)
8764 case $host_cpu in
8765 powerpc)
8766 # see comment about AmigaOS4 .so support
8767 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8768 archive_expsym_cmds=''
8769 ;;
8770 m68k)
8771 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)'
8772 hardcode_libdir_flag_spec='-L$libdir'
8773 hardcode_minus_L=yes
8774 ;;
8775 esac
8776 ;;
8777
8778 beos*)
8779 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8780 allow_undefined_flag=unsupported
8781 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8782 # support --undefined. This deserves some investigation. FIXME
8783 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8784 else
8785 ld_shlibs=no
8786 fi
8787 ;;
8788
8789 cygwin* | mingw* | pw32* | cegcc*)
8790 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8791 # as there is no search path for DLLs.
8792 hardcode_libdir_flag_spec='-L$libdir'
8793 export_dynamic_flag_spec='${wl}--export-all-symbols'
8794 allow_undefined_flag=unsupported
8795 always_export_symbols=no
8796 enable_shared_with_static_runtimes=yes
8797 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8798
8799 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8800 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8801 # If the export-symbols file already is a .def file (1st line
8802 # is EXPORTS), use it as is; otherwise, prepend...
8803 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8804 cp $export_symbols $output_objdir/$soname.def;
8805 else
8806 echo EXPORTS > $output_objdir/$soname.def;
8807 cat $export_symbols >> $output_objdir/$soname.def;
8808 fi~
8809 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8810 else
8811 ld_shlibs=no
8812 fi
8813 ;;
8814
8815 haiku*)
8816 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8817 link_all_deplibs=yes
8818 ;;
8819
8820 interix[3-9]*)
8821 hardcode_direct=no
8822 hardcode_shlibpath_var=no
8823 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8824 export_dynamic_flag_spec='${wl}-E'
8825 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8826 # Instead, shared libraries are loaded at an image base (0x10000000 by
8827 # default) and relocated if they conflict, which is a slow very memory
8828 # consuming and fragmenting process. To avoid this, we pick a random,
8829 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8830 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8831 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8832 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'
8833 ;;
8834
8835 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8836 tmp_diet=no
8837 if test "$host_os" = linux-dietlibc; then
8838 case $cc_basename in
8839 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8840 esac
8841 fi
8842 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8843 && test "$tmp_diet" = no
8844 then
8845 tmp_addflag=' $pic_flag'
8846 tmp_sharedflag='-shared'
8847 case $cc_basename,$host_cpu in
8848 pgcc*) # Portland Group C compiler
8849 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'
8850 tmp_addflag=' $pic_flag'
8851 ;;
8852 pgf77* | pgf90* | pgf95* | pgfortran*)
8853 # Portland Group f77 and f90 compilers
8854 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'
8855 tmp_addflag=' $pic_flag -Mnomain' ;;
8856 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8857 tmp_addflag=' -i_dynamic' ;;
8858 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8859 tmp_addflag=' -i_dynamic -nofor_main' ;;
8860 ifc* | ifort*) # Intel Fortran compiler
8861 tmp_addflag=' -nofor_main' ;;
8862 lf95*) # Lahey Fortran 8.1
8863 whole_archive_flag_spec=
8864 tmp_sharedflag='--shared' ;;
8865 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8866 tmp_sharedflag='-qmkshrobj'
8867 tmp_addflag= ;;
8868 nvcc*) # Cuda Compiler Driver 2.2
8869 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'
8870 compiler_needs_object=yes
8871 ;;
8872 esac
8873 case `$CC -V 2>&1 | sed 5q` in
8874 *Sun\ C*) # Sun C 5.9
8875 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'
8876 compiler_needs_object=yes
8877 tmp_sharedflag='-G' ;;
8878 *Sun\ F*) # Sun Fortran 8.3
8879 tmp_sharedflag='-G' ;;
8880 esac
8881 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8882
8883 if test "x$supports_anon_versioning" = xyes; then
8884 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8885 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8886 echo "local: *; };" >> $output_objdir/$libname.ver~
8887 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8888 fi
8889
8890 case $cc_basename in
8891 xlf* | bgf* | bgxlf* | mpixlf*)
8892 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8893 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8894 hardcode_libdir_flag_spec=
8895 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8896 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8897 if test "x$supports_anon_versioning" = xyes; then
8898 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8899 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8900 echo "local: *; };" >> $output_objdir/$libname.ver~
8901 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8902 fi
8903 ;;
8904 esac
8905 else
8906 ld_shlibs=no
8907 fi
8908 ;;
8909
8910 netbsd*)
8911 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8912 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8913 wlarc=
8914 else
8915 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8916 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8917 fi
8918 ;;
8919
8920 solaris*)
8921 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8922 ld_shlibs=no
8923 cat <<_LT_EOF 1>&2
8924
8925 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8926 *** create shared libraries on Solaris systems. Therefore, libtool
8927 *** is disabling shared libraries support. We urge you to upgrade GNU
8928 *** binutils to release 2.9.1 or newer. Another option is to modify
8929 *** your PATH or compiler configuration so that the native linker is
8930 *** used, and then restart.
8931
8932 _LT_EOF
8933 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8934 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8935 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8936 else
8937 ld_shlibs=no
8938 fi
8939 ;;
8940
8941 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8942 case `$LD -v 2>&1` in
8943 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8944 ld_shlibs=no
8945 cat <<_LT_EOF 1>&2
8946
8947 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8948 *** reliably create shared libraries on SCO systems. Therefore, libtool
8949 *** is disabling shared libraries support. We urge you to upgrade GNU
8950 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8951 *** your PATH or compiler configuration so that the native linker is
8952 *** used, and then restart.
8953
8954 _LT_EOF
8955 ;;
8956 *)
8957 # For security reasons, it is highly recommended that you always
8958 # use absolute paths for naming shared libraries, and exclude the
8959 # DT_RUNPATH tag from executables and libraries. But doing so
8960 # requires that you compile everything twice, which is a pain.
8961 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8962 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8963 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8964 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8965 else
8966 ld_shlibs=no
8967 fi
8968 ;;
8969 esac
8970 ;;
8971
8972 sunos4*)
8973 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8974 wlarc=
8975 hardcode_direct=yes
8976 hardcode_shlibpath_var=no
8977 ;;
8978
8979 *)
8980 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8981 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8982 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8983 else
8984 ld_shlibs=no
8985 fi
8986 ;;
8987 esac
8988
8989 if test "$ld_shlibs" = no; then
8990 runpath_var=
8991 hardcode_libdir_flag_spec=
8992 export_dynamic_flag_spec=
8993 whole_archive_flag_spec=
8994 fi
8995 else
8996 # PORTME fill in a description of your system's linker (not GNU ld)
8997 case $host_os in
8998 aix3*)
8999 allow_undefined_flag=unsupported
9000 always_export_symbols=yes
9001 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'
9002 # Note: this linker hardcodes the directories in LIBPATH if there
9003 # are no directories specified by -L.
9004 hardcode_minus_L=yes
9005 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9006 # Neither direct hardcoding nor static linking is supported with a
9007 # broken collect2.
9008 hardcode_direct=unsupported
9009 fi
9010 ;;
9011
9012 aix[4-9]*)
9013 if test "$host_cpu" = ia64; then
9014 # On IA64, the linker does run time linking by default, so we don't
9015 # have to do anything special.
9016 aix_use_runtimelinking=no
9017 exp_sym_flag='-Bexport'
9018 no_entry_flag=""
9019 else
9020 # If we're using GNU nm, then we don't want the "-C" option.
9021 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9022 # Also, AIX nm treats weak defined symbols like other global
9023 # defined symbols, whereas GNU nm marks them as "W".
9024 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9025 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'
9026 else
9027 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'
9028 fi
9029 aix_use_runtimelinking=no
9030
9031 # Test if we are trying to use run time linking or normal
9032 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9033 # need to do runtime linking.
9034 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9035 for ld_flag in $LDFLAGS; do
9036 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9037 aix_use_runtimelinking=yes
9038 break
9039 fi
9040 done
9041 ;;
9042 esac
9043
9044 exp_sym_flag='-bexport'
9045 no_entry_flag='-bnoentry'
9046 fi
9047
9048 # When large executables or shared objects are built, AIX ld can
9049 # have problems creating the table of contents. If linking a library
9050 # or program results in "error TOC overflow" add -mminimal-toc to
9051 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9052 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9053
9054 archive_cmds=''
9055 hardcode_direct=yes
9056 hardcode_direct_absolute=yes
9057 hardcode_libdir_separator=':'
9058 link_all_deplibs=yes
9059 file_list_spec='${wl}-f,'
9060
9061 if test "$GCC" = yes; then
9062 case $host_os in aix4.[012]|aix4.[012].*)
9063 # We only want to do this on AIX 4.2 and lower, the check
9064 # below for broken collect2 doesn't work under 4.3+
9065 collect2name=`${CC} -print-prog-name=collect2`
9066 if test -f "$collect2name" &&
9067 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9068 then
9069 # We have reworked collect2
9070 :
9071 else
9072 # We have old collect2
9073 hardcode_direct=unsupported
9074 # It fails to find uninstalled libraries when the uninstalled
9075 # path is not listed in the libpath. Setting hardcode_minus_L
9076 # to unsupported forces relinking
9077 hardcode_minus_L=yes
9078 hardcode_libdir_flag_spec='-L$libdir'
9079 hardcode_libdir_separator=
9080 fi
9081 ;;
9082 esac
9083 shared_flag='-shared'
9084 if test "$aix_use_runtimelinking" = yes; then
9085 shared_flag="$shared_flag "'${wl}-G'
9086 fi
9087 else
9088 # not using gcc
9089 if test "$host_cpu" = ia64; then
9090 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9091 # chokes on -Wl,-G. The following line is correct:
9092 shared_flag='-G'
9093 else
9094 if test "$aix_use_runtimelinking" = yes; then
9095 shared_flag='${wl}-G'
9096 else
9097 shared_flag='${wl}-bM:SRE'
9098 fi
9099 fi
9100 fi
9101
9102 export_dynamic_flag_spec='${wl}-bexpall'
9103 # It seems that -bexpall does not export symbols beginning with
9104 # underscore (_), so it is better to generate a list of symbols to export.
9105 always_export_symbols=yes
9106 if test "$aix_use_runtimelinking" = yes; then
9107 # Warning - without using the other runtime loading flags (-brtl),
9108 # -berok will link without error, but may produce a broken library.
9109 allow_undefined_flag='-berok'
9110 # Determine the default libpath from the value encoded in an
9111 # empty executable.
9112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9113 /* end confdefs.h. */
9114
9115 int
9116 main ()
9117 {
9118
9119 ;
9120 return 0;
9121 }
9122 _ACEOF
9123 if ac_fn_c_try_link "$LINENO"; then :
9124
9125 lt_aix_libpath_sed='
9126 /Import File Strings/,/^$/ {
9127 /^0/ {
9128 s/^0 *\(.*\)$/\1/
9129 p
9130 }
9131 }'
9132 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9133 # Check for a 64-bit object if we didn't find anything.
9134 if test -z "$aix_libpath"; then
9135 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9136 fi
9137 fi
9138 rm -f core conftest.err conftest.$ac_objext \
9139 conftest$ac_exeext conftest.$ac_ext
9140 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9141
9142 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9143 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"
9144 else
9145 if test "$host_cpu" = ia64; then
9146 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9147 allow_undefined_flag="-z nodefs"
9148 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"
9149 else
9150 # Determine the default libpath from the value encoded in an
9151 # empty executable.
9152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9153 /* end confdefs.h. */
9154
9155 int
9156 main ()
9157 {
9158
9159 ;
9160 return 0;
9161 }
9162 _ACEOF
9163 if ac_fn_c_try_link "$LINENO"; then :
9164
9165 lt_aix_libpath_sed='
9166 /Import File Strings/,/^$/ {
9167 /^0/ {
9168 s/^0 *\(.*\)$/\1/
9169 p
9170 }
9171 }'
9172 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9173 # Check for a 64-bit object if we didn't find anything.
9174 if test -z "$aix_libpath"; then
9175 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9176 fi
9177 fi
9178 rm -f core conftest.err conftest.$ac_objext \
9179 conftest$ac_exeext conftest.$ac_ext
9180 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9181
9182 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9183 # Warning - without using the other run time loading flags,
9184 # -berok will link without error, but may produce a broken library.
9185 no_undefined_flag=' ${wl}-bernotok'
9186 allow_undefined_flag=' ${wl}-berok'
9187 if test "$with_gnu_ld" = yes; then
9188 # We only use this code for GNU lds that support --whole-archive.
9189 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9190 else
9191 # Exported symbols can be pulled into shared objects from archives
9192 whole_archive_flag_spec='$convenience'
9193 fi
9194 archive_cmds_need_lc=yes
9195 # This is similar to how AIX traditionally builds its shared libraries.
9196 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'
9197 fi
9198 fi
9199 ;;
9200
9201 amigaos*)
9202 case $host_cpu in
9203 powerpc)
9204 # see comment about AmigaOS4 .so support
9205 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9206 archive_expsym_cmds=''
9207 ;;
9208 m68k)
9209 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)'
9210 hardcode_libdir_flag_spec='-L$libdir'
9211 hardcode_minus_L=yes
9212 ;;
9213 esac
9214 ;;
9215
9216 bsdi[45]*)
9217 export_dynamic_flag_spec=-rdynamic
9218 ;;
9219
9220 cygwin* | mingw* | pw32* | cegcc*)
9221 # When not using gcc, we currently assume that we are using
9222 # Microsoft Visual C++.
9223 # hardcode_libdir_flag_spec is actually meaningless, as there is
9224 # no search path for DLLs.
9225 hardcode_libdir_flag_spec=' '
9226 allow_undefined_flag=unsupported
9227 # Tell ltmain to make .lib files, not .a files.
9228 libext=lib
9229 # Tell ltmain to make .dll files, not .so files.
9230 shrext_cmds=".dll"
9231 # FIXME: Setting linknames here is a bad hack.
9232 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9233 # The linker will automatically build a .lib file if we build a DLL.
9234 old_archive_from_new_cmds='true'
9235 # FIXME: Should let the user specify the lib program.
9236 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9237 fix_srcfile_path='`cygpath -w "$srcfile"`'
9238 enable_shared_with_static_runtimes=yes
9239 ;;
9240
9241 darwin* | rhapsody*)
9242
9243
9244 archive_cmds_need_lc=no
9245 hardcode_direct=no
9246 hardcode_automatic=yes
9247 hardcode_shlibpath_var=unsupported
9248 if test "$lt_cv_ld_force_load" = "yes"; then
9249 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\"`'
9250 else
9251 whole_archive_flag_spec=''
9252 fi
9253 link_all_deplibs=yes
9254 allow_undefined_flag="$_lt_dar_allow_undefined"
9255 case $cc_basename in
9256 ifort*) _lt_dar_can_shared=yes ;;
9257 *) _lt_dar_can_shared=$GCC ;;
9258 esac
9259 if test "$_lt_dar_can_shared" = "yes"; then
9260 output_verbose_link_cmd=func_echo_all
9261 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9262 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9263 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}"
9264 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}"
9265
9266 else
9267 ld_shlibs=no
9268 fi
9269
9270 ;;
9271
9272 dgux*)
9273 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9274 hardcode_libdir_flag_spec='-L$libdir'
9275 hardcode_shlibpath_var=no
9276 ;;
9277
9278 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9279 # support. Future versions do this automatically, but an explicit c++rt0.o
9280 # does not break anything, and helps significantly (at the cost of a little
9281 # extra space).
9282 freebsd2.2*)
9283 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9284 hardcode_libdir_flag_spec='-R$libdir'
9285 hardcode_direct=yes
9286 hardcode_shlibpath_var=no
9287 ;;
9288
9289 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9290 freebsd2.*)
9291 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9292 hardcode_direct=yes
9293 hardcode_minus_L=yes
9294 hardcode_shlibpath_var=no
9295 ;;
9296
9297 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9298 freebsd* | dragonfly*)
9299 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9300 hardcode_libdir_flag_spec='-R$libdir'
9301 hardcode_direct=yes
9302 hardcode_shlibpath_var=no
9303 ;;
9304
9305 hpux9*)
9306 if test "$GCC" = yes; then
9307 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'
9308 else
9309 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'
9310 fi
9311 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9312 hardcode_libdir_separator=:
9313 hardcode_direct=yes
9314
9315 # hardcode_minus_L: Not really in the search PATH,
9316 # but as the default location of the library.
9317 hardcode_minus_L=yes
9318 export_dynamic_flag_spec='${wl}-E'
9319 ;;
9320
9321 hpux10*)
9322 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9323 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9324 else
9325 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9326 fi
9327 if test "$with_gnu_ld" = no; then
9328 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9329 hardcode_libdir_flag_spec_ld='+b $libdir'
9330 hardcode_libdir_separator=:
9331 hardcode_direct=yes
9332 hardcode_direct_absolute=yes
9333 export_dynamic_flag_spec='${wl}-E'
9334 # hardcode_minus_L: Not really in the search PATH,
9335 # but as the default location of the library.
9336 hardcode_minus_L=yes
9337 fi
9338 ;;
9339
9340 hpux11*)
9341 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9342 case $host_cpu in
9343 hppa*64*)
9344 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9345 ;;
9346 ia64*)
9347 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9348 ;;
9349 *)
9350 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9351 ;;
9352 esac
9353 else
9354 case $host_cpu in
9355 hppa*64*)
9356 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9357 ;;
9358 ia64*)
9359 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9360 ;;
9361 *)
9362
9363 # Older versions of the 11.00 compiler do not understand -b yet
9364 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9366 $as_echo_n "checking if $CC understands -b... " >&6; }
9367 if ${lt_cv_prog_compiler__b+:} false; then :
9368 $as_echo_n "(cached) " >&6
9369 else
9370 lt_cv_prog_compiler__b=no
9371 save_LDFLAGS="$LDFLAGS"
9372 LDFLAGS="$LDFLAGS -b"
9373 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9374 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9375 # The linker can only warn and ignore the option if not recognized
9376 # So say no if there are warnings
9377 if test -s conftest.err; then
9378 # Append any errors to the config.log.
9379 cat conftest.err 1>&5
9380 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9381 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9382 if diff conftest.exp conftest.er2 >/dev/null; then
9383 lt_cv_prog_compiler__b=yes
9384 fi
9385 else
9386 lt_cv_prog_compiler__b=yes
9387 fi
9388 fi
9389 $RM -r conftest*
9390 LDFLAGS="$save_LDFLAGS"
9391
9392 fi
9393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9394 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9395
9396 if test x"$lt_cv_prog_compiler__b" = xyes; then
9397 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9398 else
9399 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9400 fi
9401
9402 ;;
9403 esac
9404 fi
9405 if test "$with_gnu_ld" = no; then
9406 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9407 hardcode_libdir_separator=:
9408
9409 case $host_cpu in
9410 hppa*64*|ia64*)
9411 hardcode_direct=no
9412 hardcode_shlibpath_var=no
9413 ;;
9414 *)
9415 hardcode_direct=yes
9416 hardcode_direct_absolute=yes
9417 export_dynamic_flag_spec='${wl}-E'
9418
9419 # hardcode_minus_L: Not really in the search PATH,
9420 # but as the default location of the library.
9421 hardcode_minus_L=yes
9422 ;;
9423 esac
9424 fi
9425 ;;
9426
9427 irix5* | irix6* | nonstopux*)
9428 if test "$GCC" = yes; then
9429 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'
9430 # Try to use the -exported_symbol ld option, if it does not
9431 # work, assume that -exports_file does not work either and
9432 # implicitly export all symbols.
9433 save_LDFLAGS="$LDFLAGS"
9434 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9436 /* end confdefs.h. */
9437 int foo(void) {}
9438 _ACEOF
9439 if ac_fn_c_try_link "$LINENO"; then :
9440 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'
9441
9442 fi
9443 rm -f core conftest.err conftest.$ac_objext \
9444 conftest$ac_exeext conftest.$ac_ext
9445 LDFLAGS="$save_LDFLAGS"
9446 else
9447 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'
9448 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'
9449 fi
9450 archive_cmds_need_lc='no'
9451 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9452 hardcode_libdir_separator=:
9453 inherit_rpath=yes
9454 link_all_deplibs=yes
9455 ;;
9456
9457 netbsd*)
9458 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9459 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9460 else
9461 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9462 fi
9463 hardcode_libdir_flag_spec='-R$libdir'
9464 hardcode_direct=yes
9465 hardcode_shlibpath_var=no
9466 ;;
9467
9468 newsos6)
9469 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9470 hardcode_direct=yes
9471 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9472 hardcode_libdir_separator=:
9473 hardcode_shlibpath_var=no
9474 ;;
9475
9476 *nto* | *qnx*)
9477 ;;
9478
9479 openbsd*)
9480 if test -f /usr/libexec/ld.so; then
9481 hardcode_direct=yes
9482 hardcode_shlibpath_var=no
9483 hardcode_direct_absolute=yes
9484 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9485 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9486 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9487 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9488 export_dynamic_flag_spec='${wl}-E'
9489 else
9490 case $host_os in
9491 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9492 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9493 hardcode_libdir_flag_spec='-R$libdir'
9494 ;;
9495 *)
9496 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9497 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9498 ;;
9499 esac
9500 fi
9501 else
9502 ld_shlibs=no
9503 fi
9504 ;;
9505
9506 os2*)
9507 hardcode_libdir_flag_spec='-L$libdir'
9508 hardcode_minus_L=yes
9509 allow_undefined_flag=unsupported
9510 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'
9511 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9512 ;;
9513
9514 osf3*)
9515 if test "$GCC" = yes; then
9516 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9517 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'
9518 else
9519 allow_undefined_flag=' -expect_unresolved \*'
9520 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'
9521 fi
9522 archive_cmds_need_lc='no'
9523 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9524 hardcode_libdir_separator=:
9525 ;;
9526
9527 osf4* | osf5*) # as osf3* with the addition of -msym flag
9528 if test "$GCC" = yes; then
9529 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9530 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'
9531 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9532 else
9533 allow_undefined_flag=' -expect_unresolved \*'
9534 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'
9535 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~
9536 $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'
9537
9538 # Both c and cxx compiler support -rpath directly
9539 hardcode_libdir_flag_spec='-rpath $libdir'
9540 fi
9541 archive_cmds_need_lc='no'
9542 hardcode_libdir_separator=:
9543 ;;
9544
9545 solaris*)
9546 no_undefined_flag=' -z defs'
9547 if test "$GCC" = yes; then
9548 wlarc='${wl}'
9549 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9550 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9551 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9552 else
9553 case `$CC -V 2>&1` in
9554 *"Compilers 5.0"*)
9555 wlarc=''
9556 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9557 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9558 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9559 ;;
9560 *)
9561 wlarc='${wl}'
9562 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9563 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9564 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9565 ;;
9566 esac
9567 fi
9568 hardcode_libdir_flag_spec='-R$libdir'
9569 hardcode_shlibpath_var=no
9570 case $host_os in
9571 solaris2.[0-5] | solaris2.[0-5].*) ;;
9572 *)
9573 # The compiler driver will combine and reorder linker options,
9574 # but understands `-z linker_flag'. GCC discards it without `$wl',
9575 # but is careful enough not to reorder.
9576 # Supported since Solaris 2.6 (maybe 2.5.1?)
9577 if test "$GCC" = yes; then
9578 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9579 else
9580 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9581 fi
9582 ;;
9583 esac
9584 link_all_deplibs=yes
9585 ;;
9586
9587 sunos4*)
9588 if test "x$host_vendor" = xsequent; then
9589 # Use $CC to link under sequent, because it throws in some extra .o
9590 # files that make .init and .fini sections work.
9591 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9592 else
9593 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9594 fi
9595 hardcode_libdir_flag_spec='-L$libdir'
9596 hardcode_direct=yes
9597 hardcode_minus_L=yes
9598 hardcode_shlibpath_var=no
9599 ;;
9600
9601 sysv4)
9602 case $host_vendor in
9603 sni)
9604 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9605 hardcode_direct=yes # is this really true???
9606 ;;
9607 siemens)
9608 ## LD is ld it makes a PLAMLIB
9609 ## CC just makes a GrossModule.
9610 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9611 reload_cmds='$CC -r -o $output$reload_objs'
9612 hardcode_direct=no
9613 ;;
9614 motorola)
9615 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9616 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9617 ;;
9618 esac
9619 runpath_var='LD_RUN_PATH'
9620 hardcode_shlibpath_var=no
9621 ;;
9622
9623 sysv4.3*)
9624 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9625 hardcode_shlibpath_var=no
9626 export_dynamic_flag_spec='-Bexport'
9627 ;;
9628
9629 sysv4*MP*)
9630 if test -d /usr/nec; then
9631 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9632 hardcode_shlibpath_var=no
9633 runpath_var=LD_RUN_PATH
9634 hardcode_runpath_var=yes
9635 ld_shlibs=yes
9636 fi
9637 ;;
9638
9639 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9640 no_undefined_flag='${wl}-z,text'
9641 archive_cmds_need_lc=no
9642 hardcode_shlibpath_var=no
9643 runpath_var='LD_RUN_PATH'
9644
9645 if test "$GCC" = yes; then
9646 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9647 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9648 else
9649 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9650 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9651 fi
9652 ;;
9653
9654 sysv5* | sco3.2v5* | sco5v6*)
9655 # Note: We can NOT use -z defs as we might desire, because we do not
9656 # link with -lc, and that would cause any symbols used from libc to
9657 # always be unresolved, which means just about no library would
9658 # ever link correctly. If we're not using GNU ld we use -z text
9659 # though, which does catch some bad symbols but isn't as heavy-handed
9660 # as -z defs.
9661 no_undefined_flag='${wl}-z,text'
9662 allow_undefined_flag='${wl}-z,nodefs'
9663 archive_cmds_need_lc=no
9664 hardcode_shlibpath_var=no
9665 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9666 hardcode_libdir_separator=':'
9667 link_all_deplibs=yes
9668 export_dynamic_flag_spec='${wl}-Bexport'
9669 runpath_var='LD_RUN_PATH'
9670
9671 if test "$GCC" = yes; then
9672 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9673 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9674 else
9675 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9676 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9677 fi
9678 ;;
9679
9680 uts4*)
9681 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9682 hardcode_libdir_flag_spec='-L$libdir'
9683 hardcode_shlibpath_var=no
9684 ;;
9685
9686 *)
9687 ld_shlibs=no
9688 ;;
9689 esac
9690
9691 if test x$host_vendor = xsni; then
9692 case $host in
9693 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9694 export_dynamic_flag_spec='${wl}-Blargedynsym'
9695 ;;
9696 esac
9697 fi
9698 fi
9699
9700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9701 $as_echo "$ld_shlibs" >&6; }
9702 test "$ld_shlibs" = no && can_build_shared=no
9703
9704 with_gnu_ld=$with_gnu_ld
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720 #
9721 # Do we need to explicitly link libc?
9722 #
9723 case "x$archive_cmds_need_lc" in
9724 x|xyes)
9725 # Assume -lc should be added
9726 archive_cmds_need_lc=yes
9727
9728 if test "$enable_shared" = yes && test "$GCC" = yes; then
9729 case $archive_cmds in
9730 *'~'*)
9731 # FIXME: we may have to deal with multi-command sequences.
9732 ;;
9733 '$CC '*)
9734 # Test whether the compiler implicitly links with -lc since on some
9735 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9736 # to ld, don't add -lc before -lgcc.
9737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9738 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9739 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9740 $as_echo_n "(cached) " >&6
9741 else
9742 $RM conftest*
9743 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9744
9745 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9746 (eval $ac_compile) 2>&5
9747 ac_status=$?
9748 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9749 test $ac_status = 0; } 2>conftest.err; then
9750 soname=conftest
9751 lib=conftest
9752 libobjs=conftest.$ac_objext
9753 deplibs=
9754 wl=$lt_prog_compiler_wl
9755 pic_flag=$lt_prog_compiler_pic
9756 compiler_flags=-v
9757 linker_flags=-v
9758 verstring=
9759 output_objdir=.
9760 libname=conftest
9761 lt_save_allow_undefined_flag=$allow_undefined_flag
9762 allow_undefined_flag=
9763 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9764 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9765 ac_status=$?
9766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9767 test $ac_status = 0; }
9768 then
9769 lt_cv_archive_cmds_need_lc=no
9770 else
9771 lt_cv_archive_cmds_need_lc=yes
9772 fi
9773 allow_undefined_flag=$lt_save_allow_undefined_flag
9774 else
9775 cat conftest.err 1>&5
9776 fi
9777 $RM conftest*
9778
9779 fi
9780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9781 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9782 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9783 ;;
9784 esac
9785 fi
9786 ;;
9787 esac
9788
9789
9790
9791
9792
9793
9794
9795
9796
9797
9798
9799
9800
9801
9802
9803
9804
9805
9806
9807
9808
9809
9810
9811
9812
9813
9814
9815
9816
9817
9818
9819
9820
9821
9822
9823
9824
9825
9826
9827
9828
9829
9830
9831
9832
9833
9834
9835
9836
9837
9838
9839
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9946 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9947
9948 if test "$GCC" = yes; then
9949 case $host_os in
9950 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9951 *) lt_awk_arg="/^libraries:/" ;;
9952 esac
9953 case $host_os in
9954 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9955 *) lt_sed_strip_eq="s,=/,/,g" ;;
9956 esac
9957 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9958 case $lt_search_path_spec in
9959 *\;*)
9960 # if the path contains ";" then we assume it to be the separator
9961 # otherwise default to the standard path separator (i.e. ":") - it is
9962 # assumed that no part of a normal pathname contains ";" but that should
9963 # okay in the real world where ";" in dirpaths is itself problematic.
9964 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9965 ;;
9966 *)
9967 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9968 ;;
9969 esac
9970 # Ok, now we have the path, separated by spaces, we can step through it
9971 # and add multilib dir if necessary.
9972 lt_tmp_lt_search_path_spec=
9973 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9974 for lt_sys_path in $lt_search_path_spec; do
9975 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9976 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9977 else
9978 test -d "$lt_sys_path" && \
9979 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9980 fi
9981 done
9982 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9983 BEGIN {RS=" "; FS="/|\n";} {
9984 lt_foo="";
9985 lt_count=0;
9986 for (lt_i = NF; lt_i > 0; lt_i--) {
9987 if ($lt_i != "" && $lt_i != ".") {
9988 if ($lt_i == "..") {
9989 lt_count++;
9990 } else {
9991 if (lt_count == 0) {
9992 lt_foo="/" $lt_i lt_foo;
9993 } else {
9994 lt_count--;
9995 }
9996 }
9997 }
9998 }
9999 if (lt_foo != "") { lt_freq[lt_foo]++; }
10000 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10001 }'`
10002 # AWK program above erroneously prepends '/' to C:/dos/paths
10003 # for these hosts.
10004 case $host_os in
10005 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10006 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10007 esac
10008 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10009 else
10010 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10011 fi
10012 library_names_spec=
10013 libname_spec='lib$name'
10014 soname_spec=
10015 shrext_cmds=".so"
10016 postinstall_cmds=
10017 postuninstall_cmds=
10018 finish_cmds=
10019 finish_eval=
10020 shlibpath_var=
10021 shlibpath_overrides_runpath=unknown
10022 version_type=none
10023 dynamic_linker="$host_os ld.so"
10024 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10025 need_lib_prefix=unknown
10026 hardcode_into_libs=no
10027
10028 # when you set need_version to no, make sure it does not cause -set_version
10029 # flags to be left without arguments
10030 need_version=unknown
10031
10032 case $host_os in
10033 aix3*)
10034 version_type=linux
10035 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10036 shlibpath_var=LIBPATH
10037
10038 # AIX 3 has no versioning support, so we append a major version to the name.
10039 soname_spec='${libname}${release}${shared_ext}$major'
10040 ;;
10041
10042 aix[4-9]*)
10043 version_type=linux
10044 need_lib_prefix=no
10045 need_version=no
10046 hardcode_into_libs=yes
10047 if test "$host_cpu" = ia64; then
10048 # AIX 5 supports IA64
10049 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10050 shlibpath_var=LD_LIBRARY_PATH
10051 else
10052 # With GCC up to 2.95.x, collect2 would create an import file
10053 # for dependence libraries. The import file would start with
10054 # the line `#! .'. This would cause the generated library to
10055 # depend on `.', always an invalid library. This was fixed in
10056 # development snapshots of GCC prior to 3.0.
10057 case $host_os in
10058 aix4 | aix4.[01] | aix4.[01].*)
10059 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10060 echo ' yes '
10061 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10062 :
10063 else
10064 can_build_shared=no
10065 fi
10066 ;;
10067 esac
10068 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10069 # soname into executable. Probably we can add versioning support to
10070 # collect2, so additional links can be useful in future.
10071 if test "$aix_use_runtimelinking" = yes; then
10072 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10073 # instead of lib<name>.a to let people know that these are not
10074 # typical AIX shared libraries.
10075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10076 else
10077 # We preserve .a as extension for shared libraries through AIX4.2
10078 # and later when we are not doing run time linking.
10079 library_names_spec='${libname}${release}.a $libname.a'
10080 soname_spec='${libname}${release}${shared_ext}$major'
10081 fi
10082 shlibpath_var=LIBPATH
10083 fi
10084 ;;
10085
10086 amigaos*)
10087 case $host_cpu in
10088 powerpc)
10089 # Since July 2007 AmigaOS4 officially supports .so libraries.
10090 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10092 ;;
10093 m68k)
10094 library_names_spec='$libname.ixlibrary $libname.a'
10095 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10096 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'
10097 ;;
10098 esac
10099 ;;
10100
10101 beos*)
10102 library_names_spec='${libname}${shared_ext}'
10103 dynamic_linker="$host_os ld.so"
10104 shlibpath_var=LIBRARY_PATH
10105 ;;
10106
10107 bsdi[45]*)
10108 version_type=linux
10109 need_version=no
10110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10111 soname_spec='${libname}${release}${shared_ext}$major'
10112 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10113 shlibpath_var=LD_LIBRARY_PATH
10114 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10115 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10116 # the default ld.so.conf also contains /usr/contrib/lib and
10117 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10118 # libtool to hard-code these into programs
10119 ;;
10120
10121 cygwin* | mingw* | pw32* | cegcc*)
10122 version_type=windows
10123 shrext_cmds=".dll"
10124 need_version=no
10125 need_lib_prefix=no
10126
10127 case $GCC,$host_os in
10128 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10129 library_names_spec='$libname.dll.a'
10130 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10131 postinstall_cmds='base_file=`basename \${file}`~
10132 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10133 dldir=$destdir/`dirname \$dlpath`~
10134 test -d \$dldir || mkdir -p \$dldir~
10135 $install_prog $dir/$dlname \$dldir/$dlname~
10136 chmod a+x \$dldir/$dlname~
10137 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10138 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10139 fi'
10140 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10141 dlpath=$dir/\$dldll~
10142 $RM \$dlpath'
10143 shlibpath_overrides_runpath=yes
10144
10145 case $host_os in
10146 cygwin*)
10147 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10148 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10149
10150 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10151 ;;
10152 mingw* | cegcc*)
10153 # MinGW DLLs use traditional 'lib' prefix
10154 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10155 ;;
10156 pw32*)
10157 # pw32 DLLs use 'pw' prefix rather than 'lib'
10158 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10159 ;;
10160 esac
10161 ;;
10162
10163 *)
10164 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10165 ;;
10166 esac
10167 dynamic_linker='Win32 ld.exe'
10168 # FIXME: first we should search . and the directory the executable is in
10169 shlibpath_var=PATH
10170 ;;
10171
10172 darwin* | rhapsody*)
10173 dynamic_linker="$host_os dyld"
10174 version_type=darwin
10175 need_lib_prefix=no
10176 need_version=no
10177 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10178 soname_spec='${libname}${release}${major}$shared_ext'
10179 shlibpath_overrides_runpath=yes
10180 shlibpath_var=DYLD_LIBRARY_PATH
10181 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10182
10183 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10184 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10185 ;;
10186
10187 dgux*)
10188 version_type=linux
10189 need_lib_prefix=no
10190 need_version=no
10191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10192 soname_spec='${libname}${release}${shared_ext}$major'
10193 shlibpath_var=LD_LIBRARY_PATH
10194 ;;
10195
10196 freebsd* | dragonfly*)
10197 # DragonFly does not have aout. When/if they implement a new
10198 # versioning mechanism, adjust this.
10199 if test -x /usr/bin/objformat; then
10200 objformat=`/usr/bin/objformat`
10201 else
10202 case $host_os in
10203 freebsd[23].*) objformat=aout ;;
10204 *) objformat=elf ;;
10205 esac
10206 fi
10207 version_type=freebsd-$objformat
10208 case $version_type in
10209 freebsd-elf*)
10210 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10211 need_version=no
10212 need_lib_prefix=no
10213 ;;
10214 freebsd-*)
10215 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10216 need_version=yes
10217 ;;
10218 esac
10219 shlibpath_var=LD_LIBRARY_PATH
10220 case $host_os in
10221 freebsd2.*)
10222 shlibpath_overrides_runpath=yes
10223 ;;
10224 freebsd3.[01]* | freebsdelf3.[01]*)
10225 shlibpath_overrides_runpath=yes
10226 hardcode_into_libs=yes
10227 ;;
10228 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10229 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10230 shlibpath_overrides_runpath=no
10231 hardcode_into_libs=yes
10232 ;;
10233 *) # from 4.6 on, and DragonFly
10234 shlibpath_overrides_runpath=yes
10235 hardcode_into_libs=yes
10236 ;;
10237 esac
10238 ;;
10239
10240 haiku*)
10241 version_type=linux
10242 need_lib_prefix=no
10243 need_version=no
10244 dynamic_linker="$host_os runtime_loader"
10245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10246 soname_spec='${libname}${release}${shared_ext}$major'
10247 shlibpath_var=LIBRARY_PATH
10248 shlibpath_overrides_runpath=yes
10249 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10250 hardcode_into_libs=yes
10251 ;;
10252
10253 hpux9* | hpux10* | hpux11*)
10254 # Give a soname corresponding to the major version so that dld.sl refuses to
10255 # link against other versions.
10256 version_type=sunos
10257 need_lib_prefix=no
10258 need_version=no
10259 case $host_cpu in
10260 ia64*)
10261 shrext_cmds='.so'
10262 hardcode_into_libs=yes
10263 dynamic_linker="$host_os dld.so"
10264 shlibpath_var=LD_LIBRARY_PATH
10265 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10267 soname_spec='${libname}${release}${shared_ext}$major'
10268 if test "X$HPUX_IA64_MODE" = X32; then
10269 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10270 else
10271 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10272 fi
10273 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10274 ;;
10275 hppa*64*)
10276 shrext_cmds='.sl'
10277 hardcode_into_libs=yes
10278 dynamic_linker="$host_os dld.sl"
10279 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10280 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10282 soname_spec='${libname}${release}${shared_ext}$major'
10283 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10284 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10285 ;;
10286 *)
10287 shrext_cmds='.sl'
10288 dynamic_linker="$host_os dld.sl"
10289 shlibpath_var=SHLIB_PATH
10290 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10292 soname_spec='${libname}${release}${shared_ext}$major'
10293 ;;
10294 esac
10295 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10296 postinstall_cmds='chmod 555 $lib'
10297 # or fails outright, so override atomically:
10298 install_override_mode=555
10299 ;;
10300
10301 interix[3-9]*)
10302 version_type=linux
10303 need_lib_prefix=no
10304 need_version=no
10305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10306 soname_spec='${libname}${release}${shared_ext}$major'
10307 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10308 shlibpath_var=LD_LIBRARY_PATH
10309 shlibpath_overrides_runpath=no
10310 hardcode_into_libs=yes
10311 ;;
10312
10313 irix5* | irix6* | nonstopux*)
10314 case $host_os in
10315 nonstopux*) version_type=nonstopux ;;
10316 *)
10317 if test "$lt_cv_prog_gnu_ld" = yes; then
10318 version_type=linux
10319 else
10320 version_type=irix
10321 fi ;;
10322 esac
10323 need_lib_prefix=no
10324 need_version=no
10325 soname_spec='${libname}${release}${shared_ext}$major'
10326 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10327 case $host_os in
10328 irix5* | nonstopux*)
10329 libsuff= shlibsuff=
10330 ;;
10331 *)
10332 case $LD in # libtool.m4 will add one of these switches to LD
10333 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10334 libsuff= shlibsuff= libmagic=32-bit;;
10335 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10336 libsuff=32 shlibsuff=N32 libmagic=N32;;
10337 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10338 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10339 *) libsuff= shlibsuff= libmagic=never-match;;
10340 esac
10341 ;;
10342 esac
10343 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10344 shlibpath_overrides_runpath=no
10345 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10346 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10347 hardcode_into_libs=yes
10348 ;;
10349
10350 # No shared lib support for Linux oldld, aout, or coff.
10351 linux*oldld* | linux*aout* | linux*coff*)
10352 dynamic_linker=no
10353 ;;
10354
10355 # This must be Linux ELF.
10356 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10357 version_type=linux
10358 need_lib_prefix=no
10359 need_version=no
10360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10361 soname_spec='${libname}${release}${shared_ext}$major'
10362 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10363 shlibpath_var=LD_LIBRARY_PATH
10364 shlibpath_overrides_runpath=no
10365
10366 # Some binutils ld are patched to set DT_RUNPATH
10367 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10368 $as_echo_n "(cached) " >&6
10369 else
10370 lt_cv_shlibpath_overrides_runpath=no
10371 save_LDFLAGS=$LDFLAGS
10372 save_libdir=$libdir
10373 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10374 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10376 /* end confdefs.h. */
10377
10378 int
10379 main ()
10380 {
10381
10382 ;
10383 return 0;
10384 }
10385 _ACEOF
10386 if ac_fn_c_try_link "$LINENO"; then :
10387 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10388 lt_cv_shlibpath_overrides_runpath=yes
10389 fi
10390 fi
10391 rm -f core conftest.err conftest.$ac_objext \
10392 conftest$ac_exeext conftest.$ac_ext
10393 LDFLAGS=$save_LDFLAGS
10394 libdir=$save_libdir
10395
10396 fi
10397
10398 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10399
10400 # This implies no fast_install, which is unacceptable.
10401 # Some rework will be needed to allow for fast_install
10402 # before this can be enabled.
10403 hardcode_into_libs=yes
10404
10405 # Append ld.so.conf contents to the search path
10406 if test -f /etc/ld.so.conf; then
10407 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' ' '`
10408 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10409 fi
10410
10411 # We used to test for /lib/ld.so.1 and disable shared libraries on
10412 # powerpc, because MkLinux only supported shared libraries with the
10413 # GNU dynamic linker. Since this was broken with cross compilers,
10414 # most powerpc-linux boxes support dynamic linking these days and
10415 # people can always --disable-shared, the test was removed, and we
10416 # assume the GNU/Linux dynamic linker is in use.
10417 dynamic_linker='GNU/Linux ld.so'
10418 ;;
10419
10420 netbsd*)
10421 version_type=sunos
10422 need_lib_prefix=no
10423 need_version=no
10424 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10425 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10426 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10427 dynamic_linker='NetBSD (a.out) ld.so'
10428 else
10429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10430 soname_spec='${libname}${release}${shared_ext}$major'
10431 dynamic_linker='NetBSD ld.elf_so'
10432 fi
10433 shlibpath_var=LD_LIBRARY_PATH
10434 shlibpath_overrides_runpath=yes
10435 hardcode_into_libs=yes
10436 ;;
10437
10438 newsos6)
10439 version_type=linux
10440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10441 shlibpath_var=LD_LIBRARY_PATH
10442 shlibpath_overrides_runpath=yes
10443 ;;
10444
10445 *nto* | *qnx*)
10446 version_type=qnx
10447 need_lib_prefix=no
10448 need_version=no
10449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10450 soname_spec='${libname}${release}${shared_ext}$major'
10451 shlibpath_var=LD_LIBRARY_PATH
10452 shlibpath_overrides_runpath=no
10453 hardcode_into_libs=yes
10454 dynamic_linker='ldqnx.so'
10455 ;;
10456
10457 openbsd*)
10458 version_type=sunos
10459 sys_lib_dlsearch_path_spec="/usr/lib"
10460 need_lib_prefix=no
10461 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10462 case $host_os in
10463 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10464 *) need_version=no ;;
10465 esac
10466 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10467 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10468 shlibpath_var=LD_LIBRARY_PATH
10469 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10470 case $host_os in
10471 openbsd2.[89] | openbsd2.[89].*)
10472 shlibpath_overrides_runpath=no
10473 ;;
10474 *)
10475 shlibpath_overrides_runpath=yes
10476 ;;
10477 esac
10478 else
10479 shlibpath_overrides_runpath=yes
10480 fi
10481 ;;
10482
10483 os2*)
10484 libname_spec='$name'
10485 shrext_cmds=".dll"
10486 need_lib_prefix=no
10487 library_names_spec='$libname${shared_ext} $libname.a'
10488 dynamic_linker='OS/2 ld.exe'
10489 shlibpath_var=LIBPATH
10490 ;;
10491
10492 osf3* | osf4* | osf5*)
10493 version_type=osf
10494 need_lib_prefix=no
10495 need_version=no
10496 soname_spec='${libname}${release}${shared_ext}$major'
10497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10498 shlibpath_var=LD_LIBRARY_PATH
10499 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10500 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10501 ;;
10502
10503 rdos*)
10504 dynamic_linker=no
10505 ;;
10506
10507 solaris*)
10508 version_type=linux
10509 need_lib_prefix=no
10510 need_version=no
10511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10512 soname_spec='${libname}${release}${shared_ext}$major'
10513 shlibpath_var=LD_LIBRARY_PATH
10514 shlibpath_overrides_runpath=yes
10515 hardcode_into_libs=yes
10516 # ldd complains unless libraries are executable
10517 postinstall_cmds='chmod +x $lib'
10518 ;;
10519
10520 sunos4*)
10521 version_type=sunos
10522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10523 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10524 shlibpath_var=LD_LIBRARY_PATH
10525 shlibpath_overrides_runpath=yes
10526 if test "$with_gnu_ld" = yes; then
10527 need_lib_prefix=no
10528 fi
10529 need_version=yes
10530 ;;
10531
10532 sysv4 | sysv4.3*)
10533 version_type=linux
10534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10535 soname_spec='${libname}${release}${shared_ext}$major'
10536 shlibpath_var=LD_LIBRARY_PATH
10537 case $host_vendor in
10538 sni)
10539 shlibpath_overrides_runpath=no
10540 need_lib_prefix=no
10541 runpath_var=LD_RUN_PATH
10542 ;;
10543 siemens)
10544 need_lib_prefix=no
10545 ;;
10546 motorola)
10547 need_lib_prefix=no
10548 need_version=no
10549 shlibpath_overrides_runpath=no
10550 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10551 ;;
10552 esac
10553 ;;
10554
10555 sysv4*MP*)
10556 if test -d /usr/nec ;then
10557 version_type=linux
10558 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10559 soname_spec='$libname${shared_ext}.$major'
10560 shlibpath_var=LD_LIBRARY_PATH
10561 fi
10562 ;;
10563
10564 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10565 version_type=freebsd-elf
10566 need_lib_prefix=no
10567 need_version=no
10568 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10569 soname_spec='${libname}${release}${shared_ext}$major'
10570 shlibpath_var=LD_LIBRARY_PATH
10571 shlibpath_overrides_runpath=yes
10572 hardcode_into_libs=yes
10573 if test "$with_gnu_ld" = yes; then
10574 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10575 else
10576 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10577 case $host_os in
10578 sco3.2v5*)
10579 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10580 ;;
10581 esac
10582 fi
10583 sys_lib_dlsearch_path_spec='/usr/lib'
10584 ;;
10585
10586 tpf*)
10587 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10588 version_type=linux
10589 need_lib_prefix=no
10590 need_version=no
10591 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10592 shlibpath_var=LD_LIBRARY_PATH
10593 shlibpath_overrides_runpath=no
10594 hardcode_into_libs=yes
10595 ;;
10596
10597 uts4*)
10598 version_type=linux
10599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10600 soname_spec='${libname}${release}${shared_ext}$major'
10601 shlibpath_var=LD_LIBRARY_PATH
10602 ;;
10603
10604 *)
10605 dynamic_linker=no
10606 ;;
10607 esac
10608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10609 $as_echo "$dynamic_linker" >&6; }
10610 test "$dynamic_linker" = no && can_build_shared=no
10611
10612 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10613 if test "$GCC" = yes; then
10614 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10615 fi
10616
10617 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10618 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10619 fi
10620 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10621 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10622 fi
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10716 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10717 hardcode_action=
10718 if test -n "$hardcode_libdir_flag_spec" ||
10719 test -n "$runpath_var" ||
10720 test "X$hardcode_automatic" = "Xyes" ; then
10721
10722 # We can hardcode non-existent directories.
10723 if test "$hardcode_direct" != no &&
10724 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10725 # have to relink, otherwise we might link with an installed library
10726 # when we should be linking with a yet-to-be-installed one
10727 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10728 test "$hardcode_minus_L" != no; then
10729 # Linking always hardcodes the temporary library directory.
10730 hardcode_action=relink
10731 else
10732 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10733 hardcode_action=immediate
10734 fi
10735 else
10736 # We cannot hardcode anything, or else we can only hardcode existing
10737 # directories.
10738 hardcode_action=unsupported
10739 fi
10740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10741 $as_echo "$hardcode_action" >&6; }
10742
10743 if test "$hardcode_action" = relink ||
10744 test "$inherit_rpath" = yes; then
10745 # Fast installation is not supported
10746 enable_fast_install=no
10747 elif test "$shlibpath_overrides_runpath" = yes ||
10748 test "$enable_shared" = no; then
10749 # Fast installation is not necessary
10750 enable_fast_install=needless
10751 fi
10752
10753
10754
10755
10756
10757
10758 if test "x$enable_dlopen" != xyes; then
10759 enable_dlopen=unknown
10760 enable_dlopen_self=unknown
10761 enable_dlopen_self_static=unknown
10762 else
10763 lt_cv_dlopen=no
10764 lt_cv_dlopen_libs=
10765
10766 case $host_os in
10767 beos*)
10768 lt_cv_dlopen="load_add_on"
10769 lt_cv_dlopen_libs=
10770 lt_cv_dlopen_self=yes
10771 ;;
10772
10773 mingw* | pw32* | cegcc*)
10774 lt_cv_dlopen="LoadLibrary"
10775 lt_cv_dlopen_libs=
10776 ;;
10777
10778 cygwin*)
10779 lt_cv_dlopen="dlopen"
10780 lt_cv_dlopen_libs=
10781 ;;
10782
10783 darwin*)
10784 # if libdl is installed we need to link against it
10785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10786 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10787 if ${ac_cv_lib_dl_dlopen+:} false; then :
10788 $as_echo_n "(cached) " >&6
10789 else
10790 ac_check_lib_save_LIBS=$LIBS
10791 LIBS="-ldl $LIBS"
10792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10793 /* end confdefs.h. */
10794
10795 /* Override any GCC internal prototype to avoid an error.
10796 Use char because int might match the return type of a GCC
10797 builtin and then its argument prototype would still apply. */
10798 #ifdef __cplusplus
10799 extern "C"
10800 #endif
10801 char dlopen ();
10802 int
10803 main ()
10804 {
10805 return dlopen ();
10806 ;
10807 return 0;
10808 }
10809 _ACEOF
10810 if ac_fn_c_try_link "$LINENO"; then :
10811 ac_cv_lib_dl_dlopen=yes
10812 else
10813 ac_cv_lib_dl_dlopen=no
10814 fi
10815 rm -f core conftest.err conftest.$ac_objext \
10816 conftest$ac_exeext conftest.$ac_ext
10817 LIBS=$ac_check_lib_save_LIBS
10818 fi
10819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10820 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10821 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10822 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10823 else
10824
10825 lt_cv_dlopen="dyld"
10826 lt_cv_dlopen_libs=
10827 lt_cv_dlopen_self=yes
10828
10829 fi
10830
10831 ;;
10832
10833 *)
10834 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10835 if test "x$ac_cv_func_shl_load" = xyes; then :
10836 lt_cv_dlopen="shl_load"
10837 else
10838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10839 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10840 if ${ac_cv_lib_dld_shl_load+:} false; then :
10841 $as_echo_n "(cached) " >&6
10842 else
10843 ac_check_lib_save_LIBS=$LIBS
10844 LIBS="-ldld $LIBS"
10845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10846 /* end confdefs.h. */
10847
10848 /* Override any GCC internal prototype to avoid an error.
10849 Use char because int might match the return type of a GCC
10850 builtin and then its argument prototype would still apply. */
10851 #ifdef __cplusplus
10852 extern "C"
10853 #endif
10854 char shl_load ();
10855 int
10856 main ()
10857 {
10858 return shl_load ();
10859 ;
10860 return 0;
10861 }
10862 _ACEOF
10863 if ac_fn_c_try_link "$LINENO"; then :
10864 ac_cv_lib_dld_shl_load=yes
10865 else
10866 ac_cv_lib_dld_shl_load=no
10867 fi
10868 rm -f core conftest.err conftest.$ac_objext \
10869 conftest$ac_exeext conftest.$ac_ext
10870 LIBS=$ac_check_lib_save_LIBS
10871 fi
10872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10873 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10874 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10875 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10876 else
10877 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10878 if test "x$ac_cv_func_dlopen" = xyes; then :
10879 lt_cv_dlopen="dlopen"
10880 else
10881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10882 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10883 if ${ac_cv_lib_dl_dlopen+:} false; then :
10884 $as_echo_n "(cached) " >&6
10885 else
10886 ac_check_lib_save_LIBS=$LIBS
10887 LIBS="-ldl $LIBS"
10888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10889 /* end confdefs.h. */
10890
10891 /* Override any GCC internal prototype to avoid an error.
10892 Use char because int might match the return type of a GCC
10893 builtin and then its argument prototype would still apply. */
10894 #ifdef __cplusplus
10895 extern "C"
10896 #endif
10897 char dlopen ();
10898 int
10899 main ()
10900 {
10901 return dlopen ();
10902 ;
10903 return 0;
10904 }
10905 _ACEOF
10906 if ac_fn_c_try_link "$LINENO"; then :
10907 ac_cv_lib_dl_dlopen=yes
10908 else
10909 ac_cv_lib_dl_dlopen=no
10910 fi
10911 rm -f core conftest.err conftest.$ac_objext \
10912 conftest$ac_exeext conftest.$ac_ext
10913 LIBS=$ac_check_lib_save_LIBS
10914 fi
10915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10916 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10917 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10918 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10919 else
10920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10921 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10922 if ${ac_cv_lib_svld_dlopen+:} false; then :
10923 $as_echo_n "(cached) " >&6
10924 else
10925 ac_check_lib_save_LIBS=$LIBS
10926 LIBS="-lsvld $LIBS"
10927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10928 /* end confdefs.h. */
10929
10930 /* Override any GCC internal prototype to avoid an error.
10931 Use char because int might match the return type of a GCC
10932 builtin and then its argument prototype would still apply. */
10933 #ifdef __cplusplus
10934 extern "C"
10935 #endif
10936 char dlopen ();
10937 int
10938 main ()
10939 {
10940 return dlopen ();
10941 ;
10942 return 0;
10943 }
10944 _ACEOF
10945 if ac_fn_c_try_link "$LINENO"; then :
10946 ac_cv_lib_svld_dlopen=yes
10947 else
10948 ac_cv_lib_svld_dlopen=no
10949 fi
10950 rm -f core conftest.err conftest.$ac_objext \
10951 conftest$ac_exeext conftest.$ac_ext
10952 LIBS=$ac_check_lib_save_LIBS
10953 fi
10954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10955 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10956 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10957 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10958 else
10959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10960 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10961 if ${ac_cv_lib_dld_dld_link+:} false; then :
10962 $as_echo_n "(cached) " >&6
10963 else
10964 ac_check_lib_save_LIBS=$LIBS
10965 LIBS="-ldld $LIBS"
10966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10967 /* end confdefs.h. */
10968
10969 /* Override any GCC internal prototype to avoid an error.
10970 Use char because int might match the return type of a GCC
10971 builtin and then its argument prototype would still apply. */
10972 #ifdef __cplusplus
10973 extern "C"
10974 #endif
10975 char dld_link ();
10976 int
10977 main ()
10978 {
10979 return dld_link ();
10980 ;
10981 return 0;
10982 }
10983 _ACEOF
10984 if ac_fn_c_try_link "$LINENO"; then :
10985 ac_cv_lib_dld_dld_link=yes
10986 else
10987 ac_cv_lib_dld_dld_link=no
10988 fi
10989 rm -f core conftest.err conftest.$ac_objext \
10990 conftest$ac_exeext conftest.$ac_ext
10991 LIBS=$ac_check_lib_save_LIBS
10992 fi
10993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10994 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10995 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10996 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10997 fi
10998
10999
11000 fi
11001
11002
11003 fi
11004
11005
11006 fi
11007
11008
11009 fi
11010
11011
11012 fi
11013
11014 ;;
11015 esac
11016
11017 if test "x$lt_cv_dlopen" != xno; then
11018 enable_dlopen=yes
11019 else
11020 enable_dlopen=no
11021 fi
11022
11023 case $lt_cv_dlopen in
11024 dlopen)
11025 save_CPPFLAGS="$CPPFLAGS"
11026 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11027
11028 save_LDFLAGS="$LDFLAGS"
11029 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11030
11031 save_LIBS="$LIBS"
11032 LIBS="$lt_cv_dlopen_libs $LIBS"
11033
11034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11035 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11036 if ${lt_cv_dlopen_self+:} false; then :
11037 $as_echo_n "(cached) " >&6
11038 else
11039 if test "$cross_compiling" = yes; then :
11040 lt_cv_dlopen_self=cross
11041 else
11042 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11043 lt_status=$lt_dlunknown
11044 cat > conftest.$ac_ext <<_LT_EOF
11045 #line 11045 "configure"
11046 #include "confdefs.h"
11047
11048 #if HAVE_DLFCN_H
11049 #include <dlfcn.h>
11050 #endif
11051
11052 #include <stdio.h>
11053
11054 #ifdef RTLD_GLOBAL
11055 # define LT_DLGLOBAL RTLD_GLOBAL
11056 #else
11057 # ifdef DL_GLOBAL
11058 # define LT_DLGLOBAL DL_GLOBAL
11059 # else
11060 # define LT_DLGLOBAL 0
11061 # endif
11062 #endif
11063
11064 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11065 find out it does not work in some platform. */
11066 #ifndef LT_DLLAZY_OR_NOW
11067 # ifdef RTLD_LAZY
11068 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11069 # else
11070 # ifdef DL_LAZY
11071 # define LT_DLLAZY_OR_NOW DL_LAZY
11072 # else
11073 # ifdef RTLD_NOW
11074 # define LT_DLLAZY_OR_NOW RTLD_NOW
11075 # else
11076 # ifdef DL_NOW
11077 # define LT_DLLAZY_OR_NOW DL_NOW
11078 # else
11079 # define LT_DLLAZY_OR_NOW 0
11080 # endif
11081 # endif
11082 # endif
11083 # endif
11084 #endif
11085
11086 /* When -fvisbility=hidden is used, assume the code has been annotated
11087 correspondingly for the symbols needed. */
11088 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11089 void fnord () __attribute__((visibility("default")));
11090 #endif
11091
11092 void fnord () { int i=42; }
11093 int main ()
11094 {
11095 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11096 int status = $lt_dlunknown;
11097
11098 if (self)
11099 {
11100 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11101 else
11102 {
11103 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11104 else puts (dlerror ());
11105 }
11106 /* dlclose (self); */
11107 }
11108 else
11109 puts (dlerror ());
11110
11111 return status;
11112 }
11113 _LT_EOF
11114 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11115 (eval $ac_link) 2>&5
11116 ac_status=$?
11117 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11118 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11119 (./conftest; exit; ) >&5 2>/dev/null
11120 lt_status=$?
11121 case x$lt_status in
11122 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11123 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11124 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11125 esac
11126 else :
11127 # compilation failed
11128 lt_cv_dlopen_self=no
11129 fi
11130 fi
11131 rm -fr conftest*
11132
11133
11134 fi
11135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11136 $as_echo "$lt_cv_dlopen_self" >&6; }
11137
11138 if test "x$lt_cv_dlopen_self" = xyes; then
11139 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11141 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11142 if ${lt_cv_dlopen_self_static+:} false; then :
11143 $as_echo_n "(cached) " >&6
11144 else
11145 if test "$cross_compiling" = yes; then :
11146 lt_cv_dlopen_self_static=cross
11147 else
11148 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11149 lt_status=$lt_dlunknown
11150 cat > conftest.$ac_ext <<_LT_EOF
11151 #line 11151 "configure"
11152 #include "confdefs.h"
11153
11154 #if HAVE_DLFCN_H
11155 #include <dlfcn.h>
11156 #endif
11157
11158 #include <stdio.h>
11159
11160 #ifdef RTLD_GLOBAL
11161 # define LT_DLGLOBAL RTLD_GLOBAL
11162 #else
11163 # ifdef DL_GLOBAL
11164 # define LT_DLGLOBAL DL_GLOBAL
11165 # else
11166 # define LT_DLGLOBAL 0
11167 # endif
11168 #endif
11169
11170 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11171 find out it does not work in some platform. */
11172 #ifndef LT_DLLAZY_OR_NOW
11173 # ifdef RTLD_LAZY
11174 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11175 # else
11176 # ifdef DL_LAZY
11177 # define LT_DLLAZY_OR_NOW DL_LAZY
11178 # else
11179 # ifdef RTLD_NOW
11180 # define LT_DLLAZY_OR_NOW RTLD_NOW
11181 # else
11182 # ifdef DL_NOW
11183 # define LT_DLLAZY_OR_NOW DL_NOW
11184 # else
11185 # define LT_DLLAZY_OR_NOW 0
11186 # endif
11187 # endif
11188 # endif
11189 # endif
11190 #endif
11191
11192 /* When -fvisbility=hidden is used, assume the code has been annotated
11193 correspondingly for the symbols needed. */
11194 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11195 void fnord () __attribute__((visibility("default")));
11196 #endif
11197
11198 void fnord () { int i=42; }
11199 int main ()
11200 {
11201 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11202 int status = $lt_dlunknown;
11203
11204 if (self)
11205 {
11206 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11207 else
11208 {
11209 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11210 else puts (dlerror ());
11211 }
11212 /* dlclose (self); */
11213 }
11214 else
11215 puts (dlerror ());
11216
11217 return status;
11218 }
11219 _LT_EOF
11220 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11221 (eval $ac_link) 2>&5
11222 ac_status=$?
11223 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11224 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11225 (./conftest; exit; ) >&5 2>/dev/null
11226 lt_status=$?
11227 case x$lt_status in
11228 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11229 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11230 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11231 esac
11232 else :
11233 # compilation failed
11234 lt_cv_dlopen_self_static=no
11235 fi
11236 fi
11237 rm -fr conftest*
11238
11239
11240 fi
11241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11242 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11243 fi
11244
11245 CPPFLAGS="$save_CPPFLAGS"
11246 LDFLAGS="$save_LDFLAGS"
11247 LIBS="$save_LIBS"
11248 ;;
11249 esac
11250
11251 case $lt_cv_dlopen_self in
11252 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11253 *) enable_dlopen_self=unknown ;;
11254 esac
11255
11256 case $lt_cv_dlopen_self_static in
11257 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11258 *) enable_dlopen_self_static=unknown ;;
11259 esac
11260 fi
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278 striplib=
11279 old_striplib=
11280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11281 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11282 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11283 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11284 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11286 $as_echo "yes" >&6; }
11287 else
11288 # FIXME - insert some real tests, host_os isn't really good enough
11289 case $host_os in
11290 darwin*)
11291 if test -n "$STRIP" ; then
11292 striplib="$STRIP -x"
11293 old_striplib="$STRIP -S"
11294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11295 $as_echo "yes" >&6; }
11296 else
11297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11298 $as_echo "no" >&6; }
11299 fi
11300 ;;
11301 *)
11302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11303 $as_echo "no" >&6; }
11304 ;;
11305 esac
11306 fi
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319 # Report which library types will actually be built
11320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11321 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11323 $as_echo "$can_build_shared" >&6; }
11324
11325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11326 $as_echo_n "checking whether to build shared libraries... " >&6; }
11327 test "$can_build_shared" = "no" && enable_shared=no
11328
11329 # On AIX, shared libraries and static libraries use the same namespace, and
11330 # are all built from PIC.
11331 case $host_os in
11332 aix3*)
11333 test "$enable_shared" = yes && enable_static=no
11334 if test -n "$RANLIB"; then
11335 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11336 postinstall_cmds='$RANLIB $lib'
11337 fi
11338 ;;
11339
11340 aix[4-9]*)
11341 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11342 test "$enable_shared" = yes && enable_static=no
11343 fi
11344 ;;
11345 esac
11346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11347 $as_echo "$enable_shared" >&6; }
11348
11349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11350 $as_echo_n "checking whether to build static libraries... " >&6; }
11351 # Make sure either enable_shared or enable_static is yes.
11352 test "$enable_shared" = yes || enable_static=yes
11353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11354 $as_echo "$enable_static" >&6; }
11355
11356
11357
11358
11359 fi
11360 ac_ext=c
11361 ac_cpp='$CPP $CPPFLAGS'
11362 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11363 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11364 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11365
11366 CC="$lt_save_CC"
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380 ac_config_commands="$ac_config_commands libtool"
11381
11382
11383
11384
11385 # Only expand once:
11386
11387
11388
11389 # AC_PLUGINS setting $plugins is called by ACX_LARGEFILE.
11390
11391 # The tests for host and target for $enable_largefile require
11392 # canonical names.
11393
11394
11395
11396 # As the $enable_largefile decision depends on --enable-plugins we must set it
11397 # even in directories otherwise not depending on the $plugins option.
11398
11399
11400 maybe_plugins=no
11401 for ac_header in dlfcn.h
11402 do :
11403 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
11404 "
11405 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
11406 cat >>confdefs.h <<_ACEOF
11407 #define HAVE_DLFCN_H 1
11408 _ACEOF
11409 maybe_plugins=yes
11410 fi
11411
11412 done
11413
11414 for ac_header in windows.h
11415 do :
11416 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
11417 "
11418 if test "x$ac_cv_header_windows_h" = xyes; then :
11419 cat >>confdefs.h <<_ACEOF
11420 #define HAVE_WINDOWS_H 1
11421 _ACEOF
11422 maybe_plugins=yes
11423 fi
11424
11425 done
11426
11427
11428 # Check whether --enable-plugins was given.
11429 if test "${enable_plugins+set}" = set; then :
11430 enableval=$enable_plugins; case "${enableval}" in
11431 no) plugins=no ;;
11432 *) plugins=yes
11433 if test "$maybe_plugins" != "yes" ; then
11434 as_fn_error $? "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
11435 fi ;;
11436 esac
11437 else
11438 plugins=$maybe_plugins
11439
11440 fi
11441
11442 if test "$plugins" = "yes"; then
11443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
11444 $as_echo_n "checking for library containing dlsym... " >&6; }
11445 if ${ac_cv_search_dlsym+:} false; then :
11446 $as_echo_n "(cached) " >&6
11447 else
11448 ac_func_search_save_LIBS=$LIBS
11449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11450 /* end confdefs.h. */
11451
11452 /* Override any GCC internal prototype to avoid an error.
11453 Use char because int might match the return type of a GCC
11454 builtin and then its argument prototype would still apply. */
11455 #ifdef __cplusplus
11456 extern "C"
11457 #endif
11458 char dlsym ();
11459 int
11460 main ()
11461 {
11462 return dlsym ();
11463 ;
11464 return 0;
11465 }
11466 _ACEOF
11467 for ac_lib in '' dl; do
11468 if test -z "$ac_lib"; then
11469 ac_res="none required"
11470 else
11471 ac_res=-l$ac_lib
11472 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11473 fi
11474 if ac_fn_c_try_link "$LINENO"; then :
11475 ac_cv_search_dlsym=$ac_res
11476 fi
11477 rm -f core conftest.err conftest.$ac_objext \
11478 conftest$ac_exeext
11479 if ${ac_cv_search_dlsym+:} false; then :
11480 break
11481 fi
11482 done
11483 if ${ac_cv_search_dlsym+:} false; then :
11484
11485 else
11486 ac_cv_search_dlsym=no
11487 fi
11488 rm conftest.$ac_ext
11489 LIBS=$ac_func_search_save_LIBS
11490 fi
11491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
11492 $as_echo "$ac_cv_search_dlsym" >&6; }
11493 ac_res=$ac_cv_search_dlsym
11494 if test "$ac_res" != no; then :
11495 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11496
11497 fi
11498
11499 fi
11500
11501
11502 case "${host}" in
11503 sparc-*-solaris*|i?86-*-solaris*)
11504 # On native 32-bit Solaris/SPARC and x86, large-file and procfs support
11505 # were mutually exclusive until Solaris 11.3. Without procfs support,
11506 # the bfd/ elf module cannot provide certain routines such as
11507 # elfcore_write_prpsinfo or elfcore_write_prstatus. So unless the user
11508 # explicitly requested large-file support through the
11509 # --enable-largefile switch, disable large-file support in favor of
11510 # procfs support.
11511 #
11512 # Check if <sys/procfs.h> is incompatible with large-file support.
11513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11514 /* end confdefs.h. */
11515 #define _FILE_OFFSET_BITS 64
11516 #define _STRUCTURED_PROC 1
11517 #include <sys/procfs.h>
11518 int
11519 main ()
11520 {
11521
11522 ;
11523 return 0;
11524 }
11525 _ACEOF
11526 if ac_fn_c_try_compile "$LINENO"; then :
11527 acx_cv_procfs_lfs=yes
11528 else
11529 acx_cv_procfs_lfs=no
11530 fi
11531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11532 #
11533 # Forcefully disable large-file support only if necessary, gdb is in
11534 # tree and enabled.
11535 if test "${target}" = "${host}" -a "$acx_cv_procfs_lfs" = no \
11536 -a -d $srcdir/../gdb -a "$enable_gdb" != no; then
11537 : ${enable_largefile="no"}
11538 if test "$plugins" = yes; then
11539 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
11540 plugin support disabled; require large-file support which is incompatible with GDB." >&5
11541 $as_echo "$as_me: WARNING:
11542 plugin support disabled; require large-file support which is incompatible with GDB." >&2;}
11543 plugins=no
11544 fi
11545 fi
11546 #
11547 # Explicitly undef _FILE_OFFSET_BITS if enable_largefile=no for the
11548 # benefit of g++ 9+ which predefines it on Solaris.
11549 if test "$enable_largefile" = no; then
11550 LARGEFILE_CPPFLAGS="-U_FILE_OFFSET_BITS"
11551
11552 fi
11553 ;;
11554 esac
11555
11556 # Check whether --enable-largefile was given.
11557 if test "${enable_largefile+set}" = set; then :
11558 enableval=$enable_largefile;
11559 fi
11560
11561 if test "$enable_largefile" != no; then
11562
11563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
11564 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
11565 if ${ac_cv_sys_largefile_CC+:} false; then :
11566 $as_echo_n "(cached) " >&6
11567 else
11568 ac_cv_sys_largefile_CC=no
11569 if test "$GCC" != yes; then
11570 ac_save_CC=$CC
11571 while :; do
11572 # IRIX 6.2 and later do not support large files by default,
11573 # so use the C compiler's -n32 option if that helps.
11574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11575 /* end confdefs.h. */
11576 #include <sys/types.h>
11577 /* Check that off_t can represent 2**63 - 1 correctly.
11578 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11579 since some C++ compilers masquerading as C compilers
11580 incorrectly reject 9223372036854775807. */
11581 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11582 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11583 && LARGE_OFF_T % 2147483647 == 1)
11584 ? 1 : -1];
11585 int
11586 main ()
11587 {
11588
11589 ;
11590 return 0;
11591 }
11592 _ACEOF
11593 if ac_fn_c_try_compile "$LINENO"; then :
11594 break
11595 fi
11596 rm -f core conftest.err conftest.$ac_objext
11597 CC="$CC -n32"
11598 if ac_fn_c_try_compile "$LINENO"; then :
11599 ac_cv_sys_largefile_CC=' -n32'; break
11600 fi
11601 rm -f core conftest.err conftest.$ac_objext
11602 break
11603 done
11604 CC=$ac_save_CC
11605 rm -f conftest.$ac_ext
11606 fi
11607 fi
11608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
11609 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
11610 if test "$ac_cv_sys_largefile_CC" != no; then
11611 CC=$CC$ac_cv_sys_largefile_CC
11612 fi
11613
11614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
11615 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
11616 if ${ac_cv_sys_file_offset_bits+:} false; then :
11617 $as_echo_n "(cached) " >&6
11618 else
11619 while :; do
11620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11621 /* end confdefs.h. */
11622 #include <sys/types.h>
11623 /* Check that off_t can represent 2**63 - 1 correctly.
11624 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11625 since some C++ compilers masquerading as C compilers
11626 incorrectly reject 9223372036854775807. */
11627 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11628 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11629 && LARGE_OFF_T % 2147483647 == 1)
11630 ? 1 : -1];
11631 int
11632 main ()
11633 {
11634
11635 ;
11636 return 0;
11637 }
11638 _ACEOF
11639 if ac_fn_c_try_compile "$LINENO"; then :
11640 ac_cv_sys_file_offset_bits=no; break
11641 fi
11642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11644 /* end confdefs.h. */
11645 #define _FILE_OFFSET_BITS 64
11646 #include <sys/types.h>
11647 /* Check that off_t can represent 2**63 - 1 correctly.
11648 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11649 since some C++ compilers masquerading as C compilers
11650 incorrectly reject 9223372036854775807. */
11651 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11652 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11653 && LARGE_OFF_T % 2147483647 == 1)
11654 ? 1 : -1];
11655 int
11656 main ()
11657 {
11658
11659 ;
11660 return 0;
11661 }
11662 _ACEOF
11663 if ac_fn_c_try_compile "$LINENO"; then :
11664 ac_cv_sys_file_offset_bits=64; break
11665 fi
11666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11667 ac_cv_sys_file_offset_bits=unknown
11668 break
11669 done
11670 fi
11671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
11672 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
11673 case $ac_cv_sys_file_offset_bits in #(
11674 no | unknown) ;;
11675 *)
11676 cat >>confdefs.h <<_ACEOF
11677 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
11678 _ACEOF
11679 ;;
11680 esac
11681 rm -rf conftest*
11682 if test $ac_cv_sys_file_offset_bits = unknown; then
11683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
11684 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
11685 if ${ac_cv_sys_large_files+:} false; then :
11686 $as_echo_n "(cached) " >&6
11687 else
11688 while :; do
11689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11690 /* end confdefs.h. */
11691 #include <sys/types.h>
11692 /* Check that off_t can represent 2**63 - 1 correctly.
11693 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11694 since some C++ compilers masquerading as C compilers
11695 incorrectly reject 9223372036854775807. */
11696 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11697 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11698 && LARGE_OFF_T % 2147483647 == 1)
11699 ? 1 : -1];
11700 int
11701 main ()
11702 {
11703
11704 ;
11705 return 0;
11706 }
11707 _ACEOF
11708 if ac_fn_c_try_compile "$LINENO"; then :
11709 ac_cv_sys_large_files=no; break
11710 fi
11711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11713 /* end confdefs.h. */
11714 #define _LARGE_FILES 1
11715 #include <sys/types.h>
11716 /* Check that off_t can represent 2**63 - 1 correctly.
11717 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11718 since some C++ compilers masquerading as C compilers
11719 incorrectly reject 9223372036854775807. */
11720 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11721 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11722 && LARGE_OFF_T % 2147483647 == 1)
11723 ? 1 : -1];
11724 int
11725 main ()
11726 {
11727
11728 ;
11729 return 0;
11730 }
11731 _ACEOF
11732 if ac_fn_c_try_compile "$LINENO"; then :
11733 ac_cv_sys_large_files=1; break
11734 fi
11735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11736 ac_cv_sys_large_files=unknown
11737 break
11738 done
11739 fi
11740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
11741 $as_echo "$ac_cv_sys_large_files" >&6; }
11742 case $ac_cv_sys_large_files in #(
11743 no | unknown) ;;
11744 *)
11745 cat >>confdefs.h <<_ACEOF
11746 #define _LARGE_FILES $ac_cv_sys_large_files
11747 _ACEOF
11748 ;;
11749 esac
11750 rm -rf conftest*
11751 fi
11752
11753
11754 fi
11755
11756
11757
11758 case "${target}" in
11759 hppa*64*-*-* | vax-*-netbsdelf*) ;;
11760 *-*-*aout* | i[3-7]86-*-bsd* | i[3-7]86-*-msdos* | ns32k-*-* | \
11761 pdp11-*-* | vax-*-*bsd*)
11762 if test "$plugins" = "yes"; then
11763 if test "${enable_plugins+set}" = set; then
11764 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Enabling plugins for AOUT is experimental" >&5
11765 $as_echo "$as_me: WARNING: Enabling plugins for AOUT is experimental" >&2;}
11766 else
11767 plugins=no
11768 fi
11769 fi ;;
11770 hppa*-*-hpux* | *-*-*vms* | \
11771 powerpc*-*-aix* | powerpc-*-beos* | powerpc-*-macos* | rs6000-*-*)
11772 if test "$plugins" = "yes"; then
11773 if test "${enable_plugins+set}" = set; then
11774 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Enabling plugins may result in ar creating non-standard archives for ${target}" >&5
11775 $as_echo "$as_me: WARNING: Enabling plugins may result in ar creating non-standard archives for ${target}" >&2;}
11776 else
11777 plugins=no
11778 fi
11779 fi ;;
11780 esac
11781
11782 if test "$plugins" = "yes"; then
11783 PLUGINS_TRUE=
11784 PLUGINS_FALSE='#'
11785 else
11786 PLUGINS_TRUE='#'
11787 PLUGINS_FALSE=
11788 fi
11789
11790
11791 # Check whether --enable-64-bit-bfd was given.
11792 if test "${enable_64_bit_bfd+set}" = set; then :
11793 enableval=$enable_64_bit_bfd; case "${enableval}" in
11794 yes) want64=true ;;
11795 no) want64=false ;;
11796 *) as_fn_error $? "bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;;
11797 esac
11798 else
11799 want64=false
11800 fi
11801
11802 # Check whether --enable-targets was given.
11803 if test "${enable_targets+set}" = set; then :
11804 enableval=$enable_targets; case "${enableval}" in
11805 yes | "") as_fn_error $? "enable-targets option must specify target names or 'all'" "$LINENO" 5
11806 ;;
11807 no) enable_targets= ;;
11808 *) enable_targets=$enableval ;;
11809 esac
11810 fi
11811
11812 # Check whether --enable-64_bit_archive was given.
11813 if test "${enable_64_bit_archive+set}" = set; then :
11814 enableval=$enable_64_bit_archive; case "${enableval}" in
11815 yes) want_64_bit_archive=true ;;
11816 no) want_64_bit_archive=false ;;
11817 *) as_fn_error $? "bad value ${enableval} for 64-bit-archive option" "$LINENO" 5 ;;
11818 esac
11819 else
11820 want_64_bit_archive=unset
11821 fi
11822
11823
11824 # Check whether --with-mmap was given.
11825 if test "${with_mmap+set}" = set; then :
11826 withval=$with_mmap; case "${withval}" in
11827 yes) want_mmap=true ;;
11828 no) want_mmap=false ;;
11829 *) as_fn_error $? "bad value ${withval} for BFD with-mmap option" "$LINENO" 5 ;;
11830 esac
11831 else
11832 want_mmap=false
11833 fi
11834
11835 # Check whether --enable-secureplt was given.
11836 if test "${enable_secureplt+set}" = set; then :
11837 enableval=$enable_secureplt; case "${enableval}" in
11838 yes) use_secureplt=true ;;
11839 no) use_secureplt=false ;;
11840 *) as_fn_error $? "bad value ${enableval} for secureplt option" "$LINENO" 5 ;;
11841 esac
11842 else
11843 use_secureplt=true
11844 fi
11845 if test $use_secureplt = true; then
11846
11847 $as_echo "#define USE_SECUREPLT 1" >>confdefs.h
11848
11849 fi
11850
11851 # Decide if -z separate-code should be enabled in ELF linker by default.
11852 ac_default_ld_z_separate_code=unset
11853 # Check whether --enable-separate-code was given.
11854 if test "${enable_separate_code+set}" = set; then :
11855 enableval=$enable_separate_code; case "${enableval}" in
11856 yes) ac_default_ld_z_separate_code=1 ;;
11857 no) ac_default_ld_z_separate_code=0 ;;
11858 esac
11859 fi
11860
11861 # Enable -z separate-code by default for Linux/x86.
11862 case "${target}" in
11863 i[3-7]86-*-linux-* | x86_64-*-linux-*)
11864 if test ${ac_default_ld_z_separate_code} = unset; then
11865 ac_default_ld_z_separate_code=1
11866 fi
11867 ;;
11868 esac
11869 if test "${ac_default_ld_z_separate_code}" = unset; then
11870 ac_default_ld_z_separate_code=0
11871 fi
11872
11873 cat >>confdefs.h <<_ACEOF
11874 #define DEFAULT_LD_Z_SEPARATE_CODE $ac_default_ld_z_separate_code
11875 _ACEOF
11876
11877
11878 # Check whether --enable-leading-mingw64-underscores was given.
11879 if test "${enable_leading_mingw64_underscores+set}" = set; then :
11880 enableval=$enable_leading_mingw64_underscores;
11881 fi
11882
11883 if test x"$enable_leading_mingw64_underscores" = xyes ; then :
11884
11885 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
11886
11887 fi
11888
11889 DEBUGDIR=${libdir}/debug
11890
11891 # Check whether --with-separate-debug-dir was given.
11892 if test "${with_separate_debug_dir+set}" = set; then :
11893 withval=$with_separate_debug_dir; DEBUGDIR="${withval}"
11894 fi
11895
11896
11897
11898
11899
11900 # Check whether --with-pkgversion was given.
11901 if test "${with_pkgversion+set}" = set; then :
11902 withval=$with_pkgversion; case "$withval" in
11903 yes) as_fn_error $? "package version not specified" "$LINENO" 5 ;;
11904 no) PKGVERSION= ;;
11905 *) PKGVERSION="($withval) " ;;
11906 esac
11907 else
11908 PKGVERSION="(GNU Binutils) "
11909
11910 fi
11911
11912
11913
11914
11915
11916 # Check whether --with-bugurl was given.
11917 if test "${with_bugurl+set}" = set; then :
11918 withval=$with_bugurl; case "$withval" in
11919 yes) as_fn_error $? "bug URL not specified" "$LINENO" 5 ;;
11920 no) BUGURL=
11921 ;;
11922 *) BUGURL="$withval"
11923 ;;
11924 esac
11925 else
11926 BUGURL="https://www.sourceware.org/bugzilla/"
11927
11928 fi
11929
11930 case ${BUGURL} in
11931 "")
11932 REPORT_BUGS_TO=
11933 REPORT_BUGS_TEXI=
11934 ;;
11935 *)
11936 REPORT_BUGS_TO="<$BUGURL>"
11937 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
11938 ;;
11939 esac;
11940
11941
11942
11943
11944
11945 # Set the 'development' global.
11946 . $srcdir/../bfd/development.sh
11947
11948 # Set acp_cpp_for_build variable
11949 ac_cpp_for_build="$CC_FOR_BUILD -E $CPPFLAGS_FOR_BUILD"
11950
11951 # Default set of GCC warnings to enable.
11952 GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
11953 GCC_WARN_CFLAGS_FOR_BUILD="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
11954
11955 # Add -Wshadow if the compiler is a sufficiently recent version of GCC.
11956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11957 /* end confdefs.h. */
11958 __GNUC__
11959 _ACEOF
11960 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11961 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
11962
11963 else
11964 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow"
11965 fi
11966 rm -f conftest*
11967
11968
11969 # Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
11970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11971 /* end confdefs.h. */
11972 __GNUC__
11973 _ACEOF
11974 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11975 $EGREP "(^[0-4]$|^__GNUC__$)" >/dev/null 2>&1; then :
11976
11977 else
11978 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wstack-usage=262144"
11979 fi
11980 rm -f conftest*
11981
11982
11983 # Set WARN_WRITE_STRINGS if the compiler supports -Wwrite-strings.
11984 WARN_WRITE_STRINGS=""
11985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11986 /* end confdefs.h. */
11987 __GNUC__
11988 _ACEOF
11989 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11990 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
11991
11992 else
11993 WARN_WRITE_STRINGS="-Wwrite-strings"
11994 fi
11995 rm -f conftest*
11996
11997
11998 # Verify CC_FOR_BUILD to be compatible with warning flags
11999
12000 # Add -Wshadow if the compiler is a sufficiently recent version of GCC.
12001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12002 /* end confdefs.h. */
12003 __GNUC__
12004 _ACEOF
12005 if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
12006 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
12007
12008 else
12009 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wshadow"
12010 fi
12011 rm -f conftest*
12012
12013
12014 # Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
12015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12016 /* end confdefs.h. */
12017 __GNUC__
12018 _ACEOF
12019 if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
12020 $EGREP "(^[0-4]$|^__GNUC__$)" >/dev/null 2>&1; then :
12021
12022 else
12023 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wstack-usage=262144"
12024 fi
12025 rm -f conftest*
12026
12027
12028 # Check whether --enable-werror was given.
12029 if test "${enable_werror+set}" = set; then :
12030 enableval=$enable_werror; case "${enableval}" in
12031 yes | y) ERROR_ON_WARNING="yes" ;;
12032 no | n) ERROR_ON_WARNING="no" ;;
12033 *) as_fn_error $? "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
12034 esac
12035 fi
12036
12037
12038 # Disable -Wformat by default when using gcc on mingw
12039 case "${host}" in
12040 *-*-mingw32*)
12041 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
12042 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
12043 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wno-format"
12044 fi
12045 ;;
12046 *) ;;
12047 esac
12048
12049 # Enable -Werror by default when using gcc. Turn it off for releases.
12050 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" -a "$development" = true ; then
12051 ERROR_ON_WARNING=yes
12052 fi
12053
12054 NO_WERROR=
12055 if test "${ERROR_ON_WARNING}" = yes ; then
12056 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
12057 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Werror"
12058 NO_WERROR="-Wno-error"
12059 fi
12060
12061 if test "${GCC}" = yes ; then
12062 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
12063 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}"
12064 fi
12065
12066 # Check whether --enable-build-warnings was given.
12067 if test "${enable_build_warnings+set}" = set; then :
12068 enableval=$enable_build_warnings; case "${enableval}" in
12069 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}"
12070 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}";;
12071 no) if test "${GCC}" = yes ; then
12072 WARN_CFLAGS="-w"
12073 WARN_CFLAGS_FOR_BUILD="-w"
12074 fi;;
12075 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
12076 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}"
12077 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD} ${t}";;
12078 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
12079 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}"
12080 WARN_CFLAGS_FOR_BUILD="${t} ${GCC_WARN_CFLAGS_FOR_BUILD}";;
12081 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`
12082 WARN_CFLAGS_FOR_BUILD=`echo "${enableval}" | sed -e "s/,/ /g"`;;
12083 esac
12084 fi
12085
12086
12087 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
12088 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
12089 fi
12090
12091
12092
12093
12094
12095
12096
12097 ac_config_headers="$ac_config_headers config.h:config.in"
12098
12099
12100 # PR 14072
12101
12102
12103 if test -z "$target" ; then
12104 as_fn_error $? "Unrecognized target system type; please check config.sub." "$LINENO" 5
12105 fi
12106
12107
12108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
12109 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
12110 # Check whether --enable-maintainer-mode was given.
12111 if test "${enable_maintainer_mode+set}" = set; then :
12112 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
12113 else
12114 USE_MAINTAINER_MODE=no
12115 fi
12116
12117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
12118 $as_echo "$USE_MAINTAINER_MODE" >&6; }
12119 if test $USE_MAINTAINER_MODE = yes; then
12120 MAINTAINER_MODE_TRUE=
12121 MAINTAINER_MODE_FALSE='#'
12122 else
12123 MAINTAINER_MODE_TRUE='#'
12124 MAINTAINER_MODE_FALSE=
12125 fi
12126
12127 MAINT=$MAINTAINER_MODE_TRUE
12128
12129
12130 if false; then
12131 GENINSRC_NEVER_TRUE=
12132 GENINSRC_NEVER_FALSE='#'
12133 else
12134 GENINSRC_NEVER_TRUE='#'
12135 GENINSRC_NEVER_FALSE=
12136 fi
12137
12138 case ${build_alias} in
12139 "") build_noncanonical=${build} ;;
12140 *) build_noncanonical=${build_alias} ;;
12141 esac
12142
12143 case ${host_alias} in
12144 "") host_noncanonical=${build_noncanonical} ;;
12145 *) host_noncanonical=${host_alias} ;;
12146 esac
12147
12148 case ${target_alias} in
12149 "") target_noncanonical=${host_noncanonical} ;;
12150 *) target_noncanonical=${target_alias} ;;
12151 esac
12152
12153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install libbfd" >&5
12154 $as_echo_n "checking whether to install libbfd... " >&6; }
12155 # Check whether --enable-install-libbfd was given.
12156 if test "${enable_install_libbfd+set}" = set; then :
12157 enableval=$enable_install_libbfd; install_libbfd_p=$enableval
12158 else
12159 if test "${host}" = "${target}" || test "$enable_shared" = "yes"; then
12160 install_libbfd_p=yes
12161 else
12162 install_libbfd_p=no
12163 fi
12164 fi
12165
12166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $install_libbfd_p" >&5
12167 $as_echo "$install_libbfd_p" >&6; }
12168 if test $install_libbfd_p = yes; then
12169 INSTALL_LIBBFD_TRUE=
12170 INSTALL_LIBBFD_FALSE='#'
12171 else
12172 INSTALL_LIBBFD_TRUE='#'
12173 INSTALL_LIBBFD_FALSE=
12174 fi
12175
12176 # Need _noncanonical variables for this.
12177
12178
12179
12180
12181 # libbfd.a is a host library containing target dependent code
12182 bfdlibdir='$(libdir)'
12183 bfdincludedir='$(includedir)'
12184 if test "${host}" != "${target}"; then
12185 bfdlibdir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/lib'
12186 bfdincludedir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/include'
12187 fi
12188
12189
12190
12191
12192
12193
12194
12195
12196 host64=false
12197 target64=false
12198 bfd_default_target_size=32
12199
12200 # host stuff:
12201
12202 ALL_LINGUAS="da es fi fr hr id ja ro ru rw sr sv tr uk vi zh_CN pt"
12203 # If we haven't got the data from the intl directory,
12204 # assume NLS is disabled.
12205 USE_NLS=no
12206 LIBINTL=
12207 LIBINTL_DEP=
12208 INCINTL=
12209 XGETTEXT=
12210 GMSGFMT=
12211 POSUB=
12212
12213 if test -f ../intl/config.intl; then
12214 . ../intl/config.intl
12215 fi
12216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
12217 $as_echo_n "checking whether NLS is requested... " >&6; }
12218 if test x"$USE_NLS" != xyes; then
12219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12220 $as_echo "no" >&6; }
12221 else
12222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12223 $as_echo "yes" >&6; }
12224
12225 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
12226
12227
12228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
12229 $as_echo_n "checking for catalogs to be installed... " >&6; }
12230 # Look for .po and .gmo files in the source directory.
12231 CATALOGS=
12232 XLINGUAS=
12233 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
12234 # If there aren't any .gmo files the shell will give us the
12235 # literal string "../path/to/srcdir/po/*.gmo" which has to be
12236 # weeded out.
12237 case "$cat" in *\**)
12238 continue;;
12239 esac
12240 # The quadruple backslash is collapsed to a double backslash
12241 # by the backticks, then collapsed again by the double quotes,
12242 # leaving us with one backslash in the sed expression (right
12243 # before the dot that mustn't act as a wildcard).
12244 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
12245 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
12246 # The user is allowed to set LINGUAS to a list of languages to
12247 # install catalogs for. If it's empty that means "all of them."
12248 if test "x$LINGUAS" = x; then
12249 CATALOGS="$CATALOGS $cat"
12250 XLINGUAS="$XLINGUAS $lang"
12251 else
12252 case "$LINGUAS" in *$lang*)
12253 CATALOGS="$CATALOGS $cat"
12254 XLINGUAS="$XLINGUAS $lang"
12255 ;;
12256 esac
12257 fi
12258 done
12259 LINGUAS="$XLINGUAS"
12260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
12261 $as_echo "$LINGUAS" >&6; }
12262
12263
12264 DATADIRNAME=share
12265
12266 INSTOBJEXT=.mo
12267
12268 GENCAT=gencat
12269
12270 CATOBJEXT=.gmo
12271
12272 fi
12273
12274 MKINSTALLDIRS=
12275 if test -n "$ac_aux_dir"; then
12276 case "$ac_aux_dir" in
12277 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
12278 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
12279 esac
12280 fi
12281 if test -z "$MKINSTALLDIRS"; then
12282 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
12283 fi
12284
12285
12286
12287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
12288 $as_echo_n "checking whether NLS is requested... " >&6; }
12289 # Check whether --enable-nls was given.
12290 if test "${enable_nls+set}" = set; then :
12291 enableval=$enable_nls; USE_NLS=$enableval
12292 else
12293 USE_NLS=yes
12294 fi
12295
12296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
12297 $as_echo "$USE_NLS" >&6; }
12298
12299
12300
12301
12302
12303
12304 # Prepare PATH_SEPARATOR.
12305 # The user is always right.
12306 if test "${PATH_SEPARATOR+set}" != set; then
12307 echo "#! /bin/sh" >conf$$.sh
12308 echo "exit 0" >>conf$$.sh
12309 chmod +x conf$$.sh
12310 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12311 PATH_SEPARATOR=';'
12312 else
12313 PATH_SEPARATOR=:
12314 fi
12315 rm -f conf$$.sh
12316 fi
12317
12318 # Find out how to test for executable files. Don't use a zero-byte file,
12319 # as systems may use methods other than mode bits to determine executability.
12320 cat >conf$$.file <<_ASEOF
12321 #! /bin/sh
12322 exit 0
12323 _ASEOF
12324 chmod +x conf$$.file
12325 if test -x conf$$.file >/dev/null 2>&1; then
12326 ac_executable_p="test -x"
12327 else
12328 ac_executable_p="test -f"
12329 fi
12330 rm -f conf$$.file
12331
12332 # Extract the first word of "msgfmt", so it can be a program name with args.
12333 set dummy msgfmt; ac_word=$2
12334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12335 $as_echo_n "checking for $ac_word... " >&6; }
12336 if ${ac_cv_path_MSGFMT+:} false; then :
12337 $as_echo_n "(cached) " >&6
12338 else
12339 case "$MSGFMT" in
12340 [\\/]* | ?:[\\/]*)
12341 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
12342 ;;
12343 *)
12344 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12345 for ac_dir in $PATH; do
12346 IFS="$ac_save_IFS"
12347 test -z "$ac_dir" && ac_dir=.
12348 for ac_exec_ext in '' $ac_executable_extensions; do
12349 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12350 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
12351 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12352 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
12353 break 2
12354 fi
12355 fi
12356 done
12357 done
12358 IFS="$ac_save_IFS"
12359 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
12360 ;;
12361 esac
12362 fi
12363 MSGFMT="$ac_cv_path_MSGFMT"
12364 if test "$MSGFMT" != ":"; then
12365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
12366 $as_echo "$MSGFMT" >&6; }
12367 else
12368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12369 $as_echo "no" >&6; }
12370 fi
12371
12372 # Extract the first word of "gmsgfmt", so it can be a program name with args.
12373 set dummy gmsgfmt; ac_word=$2
12374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12375 $as_echo_n "checking for $ac_word... " >&6; }
12376 if ${ac_cv_path_GMSGFMT+:} false; then :
12377 $as_echo_n "(cached) " >&6
12378 else
12379 case $GMSGFMT in
12380 [\\/]* | ?:[\\/]*)
12381 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
12382 ;;
12383 *)
12384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12385 for as_dir in $PATH
12386 do
12387 IFS=$as_save_IFS
12388 test -z "$as_dir" && as_dir=.
12389 for ac_exec_ext in '' $ac_executable_extensions; do
12390 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12391 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
12392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12393 break 2
12394 fi
12395 done
12396 done
12397 IFS=$as_save_IFS
12398
12399 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
12400 ;;
12401 esac
12402 fi
12403 GMSGFMT=$ac_cv_path_GMSGFMT
12404 if test -n "$GMSGFMT"; then
12405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
12406 $as_echo "$GMSGFMT" >&6; }
12407 else
12408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12409 $as_echo "no" >&6; }
12410 fi
12411
12412
12413
12414
12415 # Prepare PATH_SEPARATOR.
12416 # The user is always right.
12417 if test "${PATH_SEPARATOR+set}" != set; then
12418 echo "#! /bin/sh" >conf$$.sh
12419 echo "exit 0" >>conf$$.sh
12420 chmod +x conf$$.sh
12421 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12422 PATH_SEPARATOR=';'
12423 else
12424 PATH_SEPARATOR=:
12425 fi
12426 rm -f conf$$.sh
12427 fi
12428
12429 # Find out how to test for executable files. Don't use a zero-byte file,
12430 # as systems may use methods other than mode bits to determine executability.
12431 cat >conf$$.file <<_ASEOF
12432 #! /bin/sh
12433 exit 0
12434 _ASEOF
12435 chmod +x conf$$.file
12436 if test -x conf$$.file >/dev/null 2>&1; then
12437 ac_executable_p="test -x"
12438 else
12439 ac_executable_p="test -f"
12440 fi
12441 rm -f conf$$.file
12442
12443 # Extract the first word of "xgettext", so it can be a program name with args.
12444 set dummy xgettext; ac_word=$2
12445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12446 $as_echo_n "checking for $ac_word... " >&6; }
12447 if ${ac_cv_path_XGETTEXT+:} false; then :
12448 $as_echo_n "(cached) " >&6
12449 else
12450 case "$XGETTEXT" in
12451 [\\/]* | ?:[\\/]*)
12452 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
12453 ;;
12454 *)
12455 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12456 for ac_dir in $PATH; do
12457 IFS="$ac_save_IFS"
12458 test -z "$ac_dir" && ac_dir=.
12459 for ac_exec_ext in '' $ac_executable_extensions; do
12460 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12461 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
12462 (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
12463 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
12464 break 2
12465 fi
12466 fi
12467 done
12468 done
12469 IFS="$ac_save_IFS"
12470 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
12471 ;;
12472 esac
12473 fi
12474 XGETTEXT="$ac_cv_path_XGETTEXT"
12475 if test "$XGETTEXT" != ":"; then
12476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
12477 $as_echo "$XGETTEXT" >&6; }
12478 else
12479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12480 $as_echo "no" >&6; }
12481 fi
12482
12483 rm -f messages.po
12484
12485
12486 # Prepare PATH_SEPARATOR.
12487 # The user is always right.
12488 if test "${PATH_SEPARATOR+set}" != set; then
12489 echo "#! /bin/sh" >conf$$.sh
12490 echo "exit 0" >>conf$$.sh
12491 chmod +x conf$$.sh
12492 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12493 PATH_SEPARATOR=';'
12494 else
12495 PATH_SEPARATOR=:
12496 fi
12497 rm -f conf$$.sh
12498 fi
12499
12500 # Find out how to test for executable files. Don't use a zero-byte file,
12501 # as systems may use methods other than mode bits to determine executability.
12502 cat >conf$$.file <<_ASEOF
12503 #! /bin/sh
12504 exit 0
12505 _ASEOF
12506 chmod +x conf$$.file
12507 if test -x conf$$.file >/dev/null 2>&1; then
12508 ac_executable_p="test -x"
12509 else
12510 ac_executable_p="test -f"
12511 fi
12512 rm -f conf$$.file
12513
12514 # Extract the first word of "msgmerge", so it can be a program name with args.
12515 set dummy msgmerge; ac_word=$2
12516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12517 $as_echo_n "checking for $ac_word... " >&6; }
12518 if ${ac_cv_path_MSGMERGE+:} false; then :
12519 $as_echo_n "(cached) " >&6
12520 else
12521 case "$MSGMERGE" in
12522 [\\/]* | ?:[\\/]*)
12523 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
12524 ;;
12525 *)
12526 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12527 for ac_dir in $PATH; do
12528 IFS="$ac_save_IFS"
12529 test -z "$ac_dir" && ac_dir=.
12530 for ac_exec_ext in '' $ac_executable_extensions; do
12531 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12532 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
12533 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
12534 break 2
12535 fi
12536 fi
12537 done
12538 done
12539 IFS="$ac_save_IFS"
12540 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
12541 ;;
12542 esac
12543 fi
12544 MSGMERGE="$ac_cv_path_MSGMERGE"
12545 if test "$MSGMERGE" != ":"; then
12546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
12547 $as_echo "$MSGMERGE" >&6; }
12548 else
12549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12550 $as_echo "no" >&6; }
12551 fi
12552
12553
12554 if test "$GMSGFMT" != ":"; then
12555 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
12556 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12557 : ;
12558 else
12559 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
12560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
12561 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
12562 GMSGFMT=":"
12563 fi
12564 fi
12565
12566 if test "$XGETTEXT" != ":"; then
12567 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
12568 (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
12569 : ;
12570 else
12571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
12572 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
12573 XGETTEXT=":"
12574 fi
12575 rm -f messages.po
12576 fi
12577
12578 ac_config_commands="$ac_config_commands default-1"
12579
12580
12581
12582 # Permit host specific settings.
12583 . ${srcdir}/configure.host
12584
12585
12586
12587
12588 BFD_HOST_64BIT_LONG=0
12589 BFD_HOST_64BIT_LONG_LONG=0
12590 BFD_HOST_64_BIT_DEFINED=0
12591 BFD_HOST_64_BIT=
12592 BFD_HOST_U_64_BIT=
12593 BFD_HOSTPTR_T="unsigned long"
12594
12595 # The cast to long int works around a bug in the HP C Compiler
12596 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12597 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12598 # This bug is HP SR number 8606223364.
12599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
12600 $as_echo_n "checking size of long long... " >&6; }
12601 if ${ac_cv_sizeof_long_long+:} false; then :
12602 $as_echo_n "(cached) " >&6
12603 else
12604 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
12605
12606 else
12607 if test "$ac_cv_type_long_long" = yes; then
12608 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12609 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12610 as_fn_error 77 "cannot compute sizeof (long long)
12611 See \`config.log' for more details" "$LINENO" 5; }
12612 else
12613 ac_cv_sizeof_long_long=0
12614 fi
12615 fi
12616
12617 fi
12618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
12619 $as_echo "$ac_cv_sizeof_long_long" >&6; }
12620
12621
12622
12623 cat >>confdefs.h <<_ACEOF
12624 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
12625 _ACEOF
12626
12627
12628 # The cast to long int works around a bug in the HP C Compiler
12629 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12630 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12631 # This bug is HP SR number 8606223364.
12632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
12633 $as_echo_n "checking size of void *... " >&6; }
12634 if ${ac_cv_sizeof_void_p+:} false; then :
12635 $as_echo_n "(cached) " >&6
12636 else
12637 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
12638
12639 else
12640 if test "$ac_cv_type_void_p" = yes; then
12641 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12642 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12643 as_fn_error 77 "cannot compute sizeof (void *)
12644 See \`config.log' for more details" "$LINENO" 5; }
12645 else
12646 ac_cv_sizeof_void_p=0
12647 fi
12648 fi
12649
12650 fi
12651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
12652 $as_echo "$ac_cv_sizeof_void_p" >&6; }
12653
12654
12655
12656 cat >>confdefs.h <<_ACEOF
12657 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
12658 _ACEOF
12659
12660
12661 # The cast to long int works around a bug in the HP C Compiler
12662 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12663 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12664 # This bug is HP SR number 8606223364.
12665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
12666 $as_echo_n "checking size of long... " >&6; }
12667 if ${ac_cv_sizeof_long+:} false; then :
12668 $as_echo_n "(cached) " >&6
12669 else
12670 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
12671
12672 else
12673 if test "$ac_cv_type_long" = yes; then
12674 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12675 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12676 as_fn_error 77 "cannot compute sizeof (long)
12677 See \`config.log' for more details" "$LINENO" 5; }
12678 else
12679 ac_cv_sizeof_long=0
12680 fi
12681 fi
12682
12683 fi
12684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
12685 $as_echo "$ac_cv_sizeof_long" >&6; }
12686
12687
12688
12689 cat >>confdefs.h <<_ACEOF
12690 #define SIZEOF_LONG $ac_cv_sizeof_long
12691 _ACEOF
12692
12693
12694 # The cast to long int works around a bug in the HP C Compiler
12695 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12696 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12697 # This bug is HP SR number 8606223364.
12698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
12699 $as_echo_n "checking size of int... " >&6; }
12700 if ${ac_cv_sizeof_int+:} false; then :
12701 $as_echo_n "(cached) " >&6
12702 else
12703 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
12704
12705 else
12706 if test "$ac_cv_type_int" = yes; then
12707 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12708 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12709 as_fn_error 77 "cannot compute sizeof (int)
12710 See \`config.log' for more details" "$LINENO" 5; }
12711 else
12712 ac_cv_sizeof_int=0
12713 fi
12714 fi
12715
12716 fi
12717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
12718 $as_echo "$ac_cv_sizeof_int" >&6; }
12719
12720
12721
12722 cat >>confdefs.h <<_ACEOF
12723 #define SIZEOF_INT $ac_cv_sizeof_int
12724 _ACEOF
12725
12726
12727
12728 if test "x${ac_cv_sizeof_void_p}" = "x8"; then
12729 host64=true
12730 fi
12731
12732 if test "x${ac_cv_sizeof_long}" = "x8"; then
12733 BFD_HOST_64BIT_LONG=1
12734 test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long"
12735 test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long"
12736 elif test "x${ac_cv_sizeof_long_long}" = "x8"; then
12737 BFD_HOST_64BIT_LONG_LONG=1
12738 test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long long"
12739 test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long long"
12740 if test "x${ac_cv_sizeof_void_p}" = "x8"; then
12741 BFD_HOSTPTR_T="unsigned long long"
12742 fi
12743 fi
12744
12745 if test -n "${HOST_64BIT_TYPE}" -a -n "${HOST_U_64BIT_TYPE}"; then
12746 BFD_HOST_64_BIT_DEFINED=1
12747 BFD_HOST_64_BIT="${HOST_64BIT_TYPE}"
12748 BFD_HOST_U_64_BIT="${HOST_U_64BIT_TYPE}"
12749 fi
12750
12751
12752
12753
12754
12755
12756
12757
12758 # Put a plausible default for CC_FOR_BUILD in Makefile.
12759 if test -z "$CC_FOR_BUILD"; then
12760 if test "x$cross_compiling" = "xno"; then
12761 CC_FOR_BUILD='$(CC)'
12762 else
12763 CC_FOR_BUILD=gcc
12764 fi
12765 fi
12766
12767 # Also set EXEEXT_FOR_BUILD.
12768 if test "x$cross_compiling" = "xno"; then
12769 EXEEXT_FOR_BUILD='$(EXEEXT)'
12770 else
12771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build system executable suffix" >&5
12772 $as_echo_n "checking for build system executable suffix... " >&6; }
12773 if ${bfd_cv_build_exeext+:} false; then :
12774 $as_echo_n "(cached) " >&6
12775 else
12776 rm -f conftest*
12777 echo 'int main () { return 0; }' > conftest.c
12778 bfd_cv_build_exeext=
12779 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
12780 for file in conftest.*; do
12781 case $file in
12782 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
12783 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
12784 esac
12785 done
12786 rm -f conftest*
12787 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
12788 fi
12789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_build_exeext" >&5
12790 $as_echo "$bfd_cv_build_exeext" >&6; }
12791 EXEEXT_FOR_BUILD=""
12792 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
12793 fi
12794
12795
12796 for ac_header in fcntl.h sys/file.h sys/resource.h sys/stat.h sys/types.h \
12797 unistd.h
12798 do :
12799 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12800 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12801 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12802 cat >>confdefs.h <<_ACEOF
12803 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12804 _ACEOF
12805
12806 fi
12807
12808 done
12809
12810
12811 for ac_func in fcntl fdopen fileno fls getgid getpagesize getrlimit getuid \
12812 sysconf
12813 do :
12814 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12815 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12816 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12817 cat >>confdefs.h <<_ACEOF
12818 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12819 _ACEOF
12820
12821 fi
12822 done
12823
12824
12825 ac_fn_c_check_decl "$LINENO" "basename" "ac_cv_have_decl_basename" "$ac_includes_default"
12826 if test "x$ac_cv_have_decl_basename" = xyes; then :
12827 ac_have_decl=1
12828 else
12829 ac_have_decl=0
12830 fi
12831
12832 cat >>confdefs.h <<_ACEOF
12833 #define HAVE_DECL_BASENAME $ac_have_decl
12834 _ACEOF
12835 ac_fn_c_check_decl "$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default"
12836 if test "x$ac_cv_have_decl_ffs" = xyes; then :
12837 ac_have_decl=1
12838 else
12839 ac_have_decl=0
12840 fi
12841
12842 cat >>confdefs.h <<_ACEOF
12843 #define HAVE_DECL_FFS $ac_have_decl
12844 _ACEOF
12845 ac_fn_c_check_decl "$LINENO" "stpcpy" "ac_cv_have_decl_stpcpy" "$ac_includes_default"
12846 if test "x$ac_cv_have_decl_stpcpy" = xyes; then :
12847 ac_have_decl=1
12848 else
12849 ac_have_decl=0
12850 fi
12851
12852 cat >>confdefs.h <<_ACEOF
12853 #define HAVE_DECL_STPCPY $ac_have_decl
12854 _ACEOF
12855 ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
12856 if test "x$ac_cv_have_decl_asprintf" = xyes; then :
12857 ac_have_decl=1
12858 else
12859 ac_have_decl=0
12860 fi
12861
12862 cat >>confdefs.h <<_ACEOF
12863 #define HAVE_DECL_ASPRINTF $ac_have_decl
12864 _ACEOF
12865 ac_fn_c_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
12866 if test "x$ac_cv_have_decl_vasprintf" = xyes; then :
12867 ac_have_decl=1
12868 else
12869 ac_have_decl=0
12870 fi
12871
12872 cat >>confdefs.h <<_ACEOF
12873 #define HAVE_DECL_VASPRINTF $ac_have_decl
12874 _ACEOF
12875
12876
12877
12878 case "${host}" in
12879 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
12880
12881 $as_echo "#define USE_BINARY_FOPEN 1" >>confdefs.h
12882 ;;
12883 esac
12884
12885 # Link in zlib if we can. This allows us to read compressed debug sections.
12886 # This is used only by compress.c.
12887
12888 # Use the system's zlib library.
12889 zlibdir="-L\$(top_builddir)/../zlib"
12890 zlibinc="-I\$(top_srcdir)/../zlib"
12891
12892 # Check whether --with-system-zlib was given.
12893 if test "${with_system_zlib+set}" = set; then :
12894 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
12895 zlibdir=
12896 zlibinc=
12897 fi
12898
12899 fi
12900
12901
12902
12903
12904
12905 save_CFLAGS="$CFLAGS"
12906 CFLAGS="$CFLAGS -Werror"
12907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler support for hidden visibility" >&5
12908 $as_echo_n "checking compiler support for hidden visibility... " >&6; }
12909 if ${bfd_cv_hidden+:} false; then :
12910 $as_echo_n "(cached) " >&6
12911 else
12912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12913 /* end confdefs.h. */
12914
12915 const char hw[] __attribute__ ((__visibility__ ("hidden"))) = "Hello, World\n";
12916 extern void print (const char *) __attribute__ ((__visibility__ ("hidden")));
12917 int
12918 main ()
12919 {
12920 print (hw);
12921 ;
12922 return 0;
12923 }
12924 _ACEOF
12925 if ac_fn_c_try_compile "$LINENO"; then :
12926 bfd_cv_hidden=yes
12927 else
12928 bfd_cv_hidden=no
12929 fi
12930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12931 fi
12932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_hidden" >&5
12933 $as_echo "$bfd_cv_hidden" >&6; }
12934 CFLAGS="$save_CFLAGS"
12935 if test $bfd_cv_hidden = yes; then
12936
12937 $as_echo "#define HAVE_HIDDEN 1" >>confdefs.h
12938
12939 fi
12940
12941 # Check if linker supports --as-needed and --no-as-needed options
12942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
12943 $as_echo_n "checking linker --as-needed support... " >&6; }
12944 if ${bfd_cv_ld_as_needed+:} false; then :
12945 $as_echo_n "(cached) " >&6
12946 else
12947 bfd_cv_ld_as_needed=no
12948 if $LD --help 2>/dev/null | grep as-needed > /dev/null; then
12949 bfd_cv_ld_as_needed=yes
12950 fi
12951
12952 fi
12953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_ld_as_needed" >&5
12954 $as_echo "$bfd_cv_ld_as_needed" >&6; }
12955
12956 LIBM=
12957 case $host in
12958 *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
12959 # These system don't have libm, or don't need it
12960 ;;
12961 *-ncr-sysv4.3*)
12962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mwvalidcheckl in -lmw" >&5
12963 $as_echo_n "checking for _mwvalidcheckl in -lmw... " >&6; }
12964 if ${ac_cv_lib_mw__mwvalidcheckl+:} false; then :
12965 $as_echo_n "(cached) " >&6
12966 else
12967 ac_check_lib_save_LIBS=$LIBS
12968 LIBS="-lmw $LIBS"
12969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12970 /* end confdefs.h. */
12971
12972 /* Override any GCC internal prototype to avoid an error.
12973 Use char because int might match the return type of a GCC
12974 builtin and then its argument prototype would still apply. */
12975 #ifdef __cplusplus
12976 extern "C"
12977 #endif
12978 char _mwvalidcheckl ();
12979 int
12980 main ()
12981 {
12982 return _mwvalidcheckl ();
12983 ;
12984 return 0;
12985 }
12986 _ACEOF
12987 if ac_fn_c_try_link "$LINENO"; then :
12988 ac_cv_lib_mw__mwvalidcheckl=yes
12989 else
12990 ac_cv_lib_mw__mwvalidcheckl=no
12991 fi
12992 rm -f core conftest.err conftest.$ac_objext \
12993 conftest$ac_exeext conftest.$ac_ext
12994 LIBS=$ac_check_lib_save_LIBS
12995 fi
12996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
12997 $as_echo "$ac_cv_lib_mw__mwvalidcheckl" >&6; }
12998 if test "x$ac_cv_lib_mw__mwvalidcheckl" = xyes; then :
12999 LIBM="-lmw"
13000 fi
13001
13002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
13003 $as_echo_n "checking for cos in -lm... " >&6; }
13004 if ${ac_cv_lib_m_cos+:} false; then :
13005 $as_echo_n "(cached) " >&6
13006 else
13007 ac_check_lib_save_LIBS=$LIBS
13008 LIBS="-lm $LIBS"
13009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13010 /* end confdefs.h. */
13011
13012 /* Override any GCC internal prototype to avoid an error.
13013 Use char because int might match the return type of a GCC
13014 builtin and then its argument prototype would still apply. */
13015 #ifdef __cplusplus
13016 extern "C"
13017 #endif
13018 char cos ();
13019 int
13020 main ()
13021 {
13022 return cos ();
13023 ;
13024 return 0;
13025 }
13026 _ACEOF
13027 if ac_fn_c_try_link "$LINENO"; then :
13028 ac_cv_lib_m_cos=yes
13029 else
13030 ac_cv_lib_m_cos=no
13031 fi
13032 rm -f core conftest.err conftest.$ac_objext \
13033 conftest$ac_exeext conftest.$ac_ext
13034 LIBS=$ac_check_lib_save_LIBS
13035 fi
13036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
13037 $as_echo "$ac_cv_lib_m_cos" >&6; }
13038 if test "x$ac_cv_lib_m_cos" = xyes; then :
13039 LIBM="$LIBM -lm"
13040 fi
13041
13042 ;;
13043 *)
13044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
13045 $as_echo_n "checking for cos in -lm... " >&6; }
13046 if ${ac_cv_lib_m_cos+:} false; then :
13047 $as_echo_n "(cached) " >&6
13048 else
13049 ac_check_lib_save_LIBS=$LIBS
13050 LIBS="-lm $LIBS"
13051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13052 /* end confdefs.h. */
13053
13054 /* Override any GCC internal prototype to avoid an error.
13055 Use char because int might match the return type of a GCC
13056 builtin and then its argument prototype would still apply. */
13057 #ifdef __cplusplus
13058 extern "C"
13059 #endif
13060 char cos ();
13061 int
13062 main ()
13063 {
13064 return cos ();
13065 ;
13066 return 0;
13067 }
13068 _ACEOF
13069 if ac_fn_c_try_link "$LINENO"; then :
13070 ac_cv_lib_m_cos=yes
13071 else
13072 ac_cv_lib_m_cos=no
13073 fi
13074 rm -f core conftest.err conftest.$ac_objext \
13075 conftest$ac_exeext conftest.$ac_ext
13076 LIBS=$ac_check_lib_save_LIBS
13077 fi
13078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
13079 $as_echo "$ac_cv_lib_m_cos" >&6; }
13080 if test "x$ac_cv_lib_m_cos" = xyes; then :
13081 LIBM="-lm"
13082 fi
13083
13084 ;;
13085 esac
13086
13087
13088
13089 # When building a shared libbfd, link against the pic version of libiberty
13090 # so that apps that use libbfd won't need libiberty just to satisfy any
13091 # libbfd references.
13092 # We can't do that if a pic libiberty is unavailable since including non-pic
13093 # code would insert text relocations into libbfd.
13094 SHARED_LIBADD=
13095 SHARED_LDFLAGS=
13096 if test "$enable_shared" = "yes"; then
13097 x=`sed -n -e 's/^[ ]*PICFLAG[ ]*=[ ]*//p' < ../libiberty/Makefile | sed -n '$p'`
13098 if test -n "$x"; then
13099 SHARED_LIBADD="-L`pwd`/../libiberty/pic -liberty"
13100 fi
13101 fi
13102
13103 SHARED_LIBADD="$SHARED_LIBADD $LIBINTL"
13104
13105 if test "$enable_shared" = "yes"; then
13106 case "${host}" in
13107 # More hacks to build DLLs on Windows.
13108 *-*-cygwin*)
13109 SHARED_LDFLAGS="-no-undefined"
13110 SHARED_LIBADD="-L`pwd`/../libiberty -liberty $SHARED_LIBADD -lcygwin -lkernel32"
13111 ;;
13112 esac
13113
13114 if test -n "$SHARED_LIBADD"; then
13115 if test -n "$LIBM"; then
13116 if test x"$bfd_cv_ld_as_needed" = xyes; then
13117 # Link against libm only when needed. Put -lc, -lm inside -Wl
13118 # to stop libtool reordering these options.
13119 SHARED_LIBADD="$SHARED_LIBADD -Wl,-lc,--as-needed,`echo $LIBM | sed 's/ /,/g'`,--no-as-needed"
13120 else
13121 SHARED_LIBADD="$SHARED_LIBADD $LIBM"
13122 fi
13123 fi
13124 fi
13125 fi
13126
13127
13128
13129 # target stuff:
13130
13131 # Canonicalize the secondary target names.
13132 if test -n "$enable_targets" ; then
13133 for targ in `echo $enable_targets | sed 's/,/ /g'`
13134 do
13135 result=`$ac_config_sub $targ 2>/dev/null`
13136 if test -n "$result" ; then
13137 canon_targets="$canon_targets $result"
13138 else
13139 # Allow targets that config.sub doesn't recognize, like "all".
13140 canon_targets="$canon_targets $targ"
13141 fi
13142 done
13143 fi
13144
13145 all_targets=false
13146 defvec=
13147 selvecs=
13148 assocvecs=
13149 selarchs=
13150 TDEFINES=
13151 for targ in $target $canon_targets
13152 do
13153 if test $targ = all; then
13154 all_targets=true
13155 assocvecs="$assocvecs $targ_defvec $targ_selvecs"
13156 elif test $targ != plugin; then
13157 . $srcdir/config.bfd
13158 if test $targ = $target; then
13159 defvec=$targ_defvec
13160 fi
13161 selvecs="$selvecs $targ_defvec $targ_selvecs"
13162 selarchs="$selarchs $targ_archs"
13163 TDEFINES="$TDEFINES $targ_cflags"
13164 fi
13165 done
13166
13167
13168 # This processing still needs to be done if we're to decide properly whether
13169 # 64-bit support needs to be compiled in. Currently, it will be included if
13170 # the default or any other explicitly requested target requires it; it
13171 # will not be included on a 32-bit host if no 64-bit target is requested, and
13172 # no "--with-64-bit-bfd" option is given, even if "--enable-targets=all" is
13173 # used.
13174
13175 # uniq the default and selected vectors in all the configured targets.
13176 f=""
13177 for i in $selvecs ; do
13178 case " $f " in
13179 *" $i "*) ;;
13180 *) f="$f $i" ;;
13181 esac
13182 done
13183 selvecs="$f"
13184
13185
13186 # uniq the associated vectors in all the configured targets.
13187 f=""
13188 for i in $assocvecs ; do
13189 case " $f " in
13190 *" $i "*) ;;
13191 *) f="$f $i" ;;
13192 esac
13193 done
13194 assocvecs="$f"
13195
13196
13197 # uniq the architectures in all the configured targets.
13198 f=""
13199 for i in $selarchs ; do
13200 case " $f " in
13201 *" $i "*) ;;
13202 *) f="$f $i" ;;
13203 esac
13204 done
13205 selarchs="$f"
13206
13207 # Target backend .o files.
13208 tb=
13209
13210 elf="elf.lo elflink.lo elf-attrs.lo elf-strtab.lo elf-eh-frame.lo
13211 dwarf1.lo dwarf2.lo"
13212 coffgen="coffgen.lo dwarf2.lo"
13213 coff="cofflink.lo $coffgen"
13214 ecoff="ecofflink.lo $coffgen"
13215 xcoff="xcofflink.lo $coffgen"
13216
13217 elfxx_x86="elfxx-x86.lo elf-ifunc.lo elf-vxworks.lo"
13218 for vec in $selvecs
13219 do
13220 target_size=32
13221 case "$vec" in
13222 # This list is alphabetized to make it easy to compare
13223 # with the two vector lists in targets.c. For the same reason,
13224 # use one entry per line, even though this leads to long lines.
13225 aarch64_elf32_be_vec) tb="$tb elf32-aarch64.lo elfxx-aarch64.lo elf-ifunc.lo elf32.lo $elf"; target_size=64 ;;
13226 aarch64_elf32_le_vec) tb="$tb elf32-aarch64.lo elfxx-aarch64.lo elf-ifunc.lo elf32.lo $elf"; target_size=64 ;;
13227 aarch64_elf64_be_vec) tb="$tb elf64-aarch64.lo elfxx-aarch64.lo elf-ifunc.lo elf64.lo $elf"; target_size=64 ;;
13228 aarch64_elf64_be_cloudabi_vec) tb="$tb elf64-aarch64.lo elfxx-aarch64.lo elf-ifunc.lo elf64.lo $elf"; target_size=64 ;;
13229 aarch64_elf64_le_vec) tb="$tb elf64-aarch64.lo elfxx-aarch64.lo elf-ifunc.lo elf64.lo $elf"; target_size=64 ;;
13230 aarch64_elf64_le_cloudabi_vec) tb="$tb elf64-aarch64.lo elfxx-aarch64.lo elf-ifunc.lo elf64.lo $elf"; target_size=64 ;;
13231 aarch64_mach_o_vec) tb="$tb mach-o-aarch64.lo"; target_size=64 ;;
13232 alpha_ecoff_le_vec) tb="$tb coff-alpha.lo ecoff.lo $ecoff"; target_size=64 ;;
13233 alpha_elf64_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
13234 alpha_elf64_fbsd_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
13235 alpha_vms_vec) tb="$tb vms-alpha.lo vms-misc.lo vms-lib.lo"; target_size=64 ;;
13236 alpha_vms_lib_txt_vec) tb="$tb vms-lib.lo vms-misc.lo" ;;
13237 am33_elf32_linux_vec) tb="$tb elf32-am33lin.lo elf32.lo $elf" ;;
13238 aout0_be_vec) tb="$tb aout0.lo aout32.lo" ;;
13239 aout64_vec) tb="$tb demo64.lo aout64.lo"; target_size=64 ;;
13240 aout_vec) tb="$tb host-aout.lo aout32.lo" ;;
13241 arc_elf32_be_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
13242 arc_elf32_le_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
13243 arm_elf32_be_vec) tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;;
13244 arm_elf32_le_vec) tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;;
13245 arm_elf32_fdpic_be_vec) tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;;
13246 arm_elf32_fdpic_le_vec) tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;;
13247 arm_elf32_nacl_be_vec) tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;;
13248 arm_elf32_nacl_le_vec) tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;;
13249 arm_elf32_vxworks_be_vec) tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;;
13250 arm_elf32_vxworks_le_vec) tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;;
13251 arm_pe_be_vec) tb="$tb pe-arm.lo peigen.lo $coff" ;;
13252 arm_pe_le_vec) tb="$tb pe-arm.lo peigen.lo $coff" ;;
13253 arm_pe_wince_be_vec) tb="$tb pe-arm-wince.lo pe-arm.lo peigen.lo $coff" ;;
13254 arm_pe_wince_le_vec) tb="$tb pe-arm-wince.lo pe-arm.lo peigen.lo $coff" ;;
13255 arm_pei_be_vec) tb="$tb pei-arm.lo peigen.lo $coff" ;;
13256 arm_pei_le_vec) tb="$tb pei-arm.lo peigen.lo $coff" ;;
13257 arm_pei_wince_be_vec) tb="$tb pei-arm-wince.lo pei-arm.lo peigen.lo $coff" ;;
13258 arm_pei_wince_le_vec) tb="$tb pei-arm-wince.lo pei-arm.lo peigen.lo $coff" ;;
13259 arm_mach_o_vec) tb="$tb mach-o-arm.lo" ;;
13260 avr_elf32_vec) tb="$tb elf32-avr.lo elf32.lo $elf" ;;
13261 bfin_elf32_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
13262 bfin_elf32_fdpic_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
13263 cr16_elf32_vec) tb="$tb elf32-cr16.lo elf32.lo $elf" ;;
13264 cris_aout_vec) tb="$tb aout-cris.lo" ;;
13265 cris_elf32_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
13266 cris_elf32_us_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
13267 crx_elf32_vec) tb="$tb elf32-crx.lo elf32.lo $elf" ;;
13268 csky_elf32_be_vec) tb="$tb elf32-csky.lo elf32.lo $elf" ;;
13269 csky_elf32_le_vec) tb="$tb elf32-csky.lo elf32.lo $elf" ;;
13270 d10v_elf32_vec) tb="$tb elf32-d10v.lo elf32.lo $elf" ;;
13271 d30v_elf32_vec) tb="$tb elf32-d30v.lo elf32.lo $elf" ;;
13272 dlx_elf32_be_vec) tb="$tb elf32-dlx.lo elf32.lo $elf" ;;
13273 elf32_be_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
13274 elf32_le_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
13275 elf64_be_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
13276 elf64_le_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
13277 bpf_elf64_le_vec) tb="$tb elf64-bpf.lo elf64.lo $elf"; target_size=64;;
13278 bpf_elf64_be_vec) tb="$tb elf64-bpf.lo elf64.lo $elf"; target_size=64 ;;
13279 epiphany_elf32_vec) tb="$tb elf32-epiphany.lo elf32.lo $elf" ;;
13280 fr30_elf32_vec) tb="$tb elf32-fr30.lo elf32.lo $elf" ;;
13281 frv_elf32_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
13282 frv_elf32_fdpic_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
13283 h8300_elf32_vec) tb="$tb elf32-h8300.lo elf32.lo $elf" ;;
13284 h8300_elf32_linux_vec) tb="$tb elf32-h8300.lo elf32.lo $elf" ;;
13285 hppa_elf32_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
13286 hppa_elf32_linux_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
13287 hppa_elf32_nbsd_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
13288 hppa_elf64_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
13289 hppa_elf64_linux_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
13290 hppa_som_vec) tb="$tb som.lo" ;;
13291 i386_aout_vec) tb="$tb i386aout.lo aout32.lo" ;;
13292 i386_aout_bsd_vec) tb="$tb i386bsd.lo aout32.lo" ;;
13293 i386_aout_lynx_vec) tb="$tb i386lynx.lo lynx-core.lo aout32.lo" ;;
13294 i386_coff_vec) tb="$tb coff-i386.lo $coff" ;;
13295 i386_coff_go32_vec) tb="$tb coff-go32.lo $coff" ;;
13296 i386_coff_go32stubbed_vec) tb="$tb coff-stgo32.lo $coff" ;;
13297 i386_coff_lynx_vec) tb="$tb cf-i386lynx.lo lynx-core.lo $coff" ;;
13298 i386_elf32_vec) tb="$tb elf32-i386.lo $elfxx_x86 elf32.lo $elf" ;;
13299 i386_elf32_fbsd_vec) tb="$tb elf32-i386.lo $elfxx_x86 elf32.lo $elf" ;;
13300 i386_elf32_sol2_vec) tb="$tb elf32-i386.lo $elfxx_x86 elf32.lo $elf" ;;
13301 i386_elf32_vxworks_vec) tb="$tb elf32-i386.lo $elfxx_x86 elf32.lo $elf" ;;
13302 i386_mach_o_vec) tb="$tb mach-o-i386.lo" ;;
13303 i386_msdos_vec) tb="$tb i386msdos.lo" ;;
13304 i386_pe_vec) tb="$tb pe-i386.lo peigen.lo $coff" ;;
13305 i386_pe_big_vec) tb="$tb pe-i386.lo peigen.lo $coff" ;;
13306 i386_pei_vec) tb="$tb pei-i386.lo peigen.lo $coff" ;;
13307 iamcu_elf32_vec) tb="$tb elf32-i386.lo $elfxx_x86 elf32.lo $elf" ;;
13308 ia64_elf32_be_vec) tb="$tb elf32-ia64.lo elfxx-ia64.lo elf32.lo $elf" ;;
13309 ia64_elf32_hpux_be_vec) tb="$tb elf32-ia64.lo elfxx-ia64.lo elf32.lo $elf" ;;
13310 ia64_elf64_be_vec) tb="$tb elf64-ia64.lo elfxx-ia64.lo elf64.lo $elf"; target_size=64 ;;
13311 ia64_elf64_le_vec) tb="$tb elf64-ia64.lo elfxx-ia64.lo elf64.lo $elf"; target_size=64 ;;
13312 ia64_elf64_hpux_be_vec) tb="$tb elf64-ia64.lo elfxx-ia64.lo elf64.lo $elf"; target_size=64 ;;
13313 ia64_elf64_vms_vec) tb="$tb elf64-ia64-vms.lo elf64-ia64.lo elfxx-ia64.lo elf64.lo vms-lib.lo vms-misc.lo $elf"; target_size=64 ;;
13314 ia64_pei_vec) tb="$tb pei-ia64.lo pepigen.lo $coff"; target_size=64 ;;
13315 ip2k_elf32_vec) tb="$tb elf32-ip2k.lo elf32.lo $elf" ;;
13316 iq2000_elf32_vec) tb="$tb elf32-iq2000.lo elf32.lo $elf" ;;
13317 k1om_elf64_vec) tb="$tb elf64-x86-64.lo elfxx-x86.lo elf-ifunc.lo elf64.lo $elf"; target_size=64 ;;
13318 k1om_elf64_fbsd_vec) tb="$tb elf64-x86-64.lo elfxx-x86.lo elf-ifunc.lo elf64.lo $elf"; target_size=64 ;;
13319 l1om_elf64_vec) tb="$tb elf64-x86-64.lo elfxx-x86.lo elf-ifunc.lo elf64.lo $elf"; target_size=64 ;;
13320 l1om_elf64_fbsd_vec) tb="$tb elf64-x86-64.lo elfxx-x86.lo elf-ifunc.lo elf64.lo $elf"; target_size=64 ;;
13321 lm32_elf32_vec) tb="$tb elf32-lm32.lo elf32.lo $elf" ;;
13322 lm32_elf32_fdpic_vec) tb="$tb elf32-lm32.lo elf32.lo $elf" ;;
13323 m32c_elf32_vec) tb="$tb elf32-m32c.lo elf32.lo $elf" ;;
13324 m32r_elf32_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
13325 m32r_elf32_le_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
13326 m32r_elf32_linux_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
13327 m32r_elf32_linux_le_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
13328 m68hc11_elf32_vec) tb="$tb elf32-m68hc11.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
13329 m68hc12_elf32_vec) tb="$tb elf32-m68hc12.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
13330 m68k_elf32_vec) tb="$tb elf32-m68k.lo elf32.lo $elf" ;;
13331 s12z_elf32_vec) tb="$tb elf32-s12z.lo elf32.lo $elf" ;;
13332 mach_o_be_vec) tb="$tb mach-o.lo dwarf2.lo" ;;
13333 mach_o_le_vec) tb="$tb mach-o.lo dwarf2.lo" ;;
13334 mach_o_fat_vec) tb="$tb mach-o.lo dwarf2.lo" ;;
13335 mcore_elf32_be_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
13336 mcore_elf32_le_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
13337 mcore_pe_be_vec) tb="$tb pe-mcore.lo peigen.lo $coff" ;;
13338 mcore_pe_le_vec) tb="$tb pe-mcore.lo peigen.lo $coff" ;;
13339 mcore_pei_be_vec) tb="$tb pei-mcore.lo peigen.lo $coff" ;;
13340 mcore_pei_le_vec) tb="$tb pei-mcore.lo peigen.lo $coff" ;;
13341 mep_elf32_vec) tb="$tb elf32-mep.lo elf32.lo $elf" ;;
13342 mep_elf32_le_vec) tb="$tb elf32-mep.lo elf32.lo $elf" ;;
13343 metag_elf32_vec) tb="$tb elf32-metag.lo elf32.lo $elf" ;;
13344 microblaze_elf32_vec) tb="$tb elf32-microblaze.lo elf32.lo $elf" ;;
13345 microblaze_elf32_le_vec) tb="$tb elf32-microblaze.lo elf32.lo $elf" ;;
13346 mips_ecoff_be_vec) tb="$tb coff-mips.lo ecoff.lo $ecoff" ;;
13347 mips_ecoff_le_vec) tb="$tb coff-mips.lo ecoff.lo $ecoff" ;;
13348 mips_ecoff_bele_vec) tb="$tb coff-mips.lo ecoff.lo $ecoff" ;;
13349 mips_elf32_be_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;;
13350 mips_elf32_le_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;;
13351 mips_elf32_n_be_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
13352 mips_elf32_n_le_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
13353 mips_elf32_ntrad_be_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
13354 mips_elf32_ntrad_le_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
13355 mips_elf32_ntradfbsd_be_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
13356 mips_elf32_ntradfbsd_le_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
13357 mips_elf32_trad_be_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;;
13358 mips_elf32_trad_le_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;;
13359 mips_elf32_tradfbsd_be_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;;
13360 mips_elf32_tradfbsd_le_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;;
13361 mips_elf32_vxworks_be_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;;
13362 mips_elf32_vxworks_le_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;;
13363 mips_elf64_be_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
13364 mips_elf64_le_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
13365 mips_elf64_trad_be_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
13366 mips_elf64_trad_le_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
13367 mips_elf64_tradfbsd_be_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
13368 mips_elf64_tradfbsd_le_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
13369 mmix_elf64_vec) tb="$tb elf64-mmix.lo elf64.lo $elf" target_size=64 ;;
13370 mmix_mmo_vec) tb="$tb mmo.lo" target_size=64 ;;
13371 mn10200_elf32_vec) tb="$tb elf-m10200.lo elf32.lo $elf" ;;
13372 mn10300_elf32_vec) tb="$tb elf-m10300.lo elf32.lo $elf" ;;
13373 moxie_elf32_be_vec) tb="$tb elf32-moxie.lo elf32.lo $elf" ;;
13374 moxie_elf32_le_vec) tb="$tb elf32-moxie.lo elf32.lo $elf" ;;
13375 msp430_elf32_vec) tb="$tb elf32-msp430.lo elf32.lo $elf" ;;
13376 msp430_elf32_ti_vec) tb="$tb elf32-msp430.lo elf32.lo $elf" ;;
13377 mt_elf32_vec) tb="$tb elf32-mt.lo elf32.lo $elf" ;;
13378 nds32_elf32_be_vec) tb="$tb elf32-nds32.lo elf32.lo $elf" ;;
13379 nds32_elf32_le_vec) tb="$tb elf32-nds32.lo elf32.lo $elf" ;;
13380 nds32_elf32_linux_be_vec) tb="$tb elf32-nds32.lo elf32.lo $elf" ;;
13381 nds32_elf32_linux_le_vec) tb="$tb elf32-nds32.lo elf32.lo $elf" ;;
13382 nfp_elf64_vec) tb="$tb elf64-nfp.lo elf64.lo $elf" ;;
13383 nios2_elf32_be_vec) tb="$tb elf32-nios2.lo elf32.lo $elf" ;;
13384 nios2_elf32_le_vec) tb="$tb elf32-nios2.lo elf32.lo $elf" ;;
13385 ns32k_aout_pc532mach_vec) tb="$tb pc532-mach.lo aout-ns32k.lo" ;;
13386 ns32k_aout_pc532nbsd_vec) tb="$tb ns32knetbsd.lo aout-ns32k.lo" ;;
13387 or1k_elf32_vec) tb="$tb elf32-or1k.lo elf32.lo $elf" ;;
13388 pdp11_aout_vec) tb="$tb pdp11.lo" ;;
13389 pef_vec) tb="$tb pef.lo" ;;
13390 pef_xlib_vec) tb="$tb pef.lo" ;;
13391 pj_elf32_vec) tb="$tb elf32-pj.lo elf32.lo $elf" ;;
13392 pj_elf32_le_vec) tb="$tb elf32-pj.lo elf32.lo $elf" ;;
13393 powerpc_boot_vec) tb="$tb ppcboot.lo" ;;
13394 powerpc_elf32_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
13395 powerpc_elf32_le_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
13396 powerpc_elf32_fbsd_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
13397 powerpc_elf32_vxworks_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
13398 powerpc_elf64_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
13399 powerpc_elf64_le_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size=64 ;;
13400 powerpc_elf64_fbsd_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size=64 ;;
13401 powerpc_elf64_fbsd_le_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size=64 ;;
13402 powerpc_xcoff_vec) tb="$tb coff-rs6000.lo $xcoff" ;;
13403 pru_elf32_vec) tb="$tb elf32-pru.lo elf32.lo $elf" ;;
13404 riscv_elf32_vec) tb="$tb elf32-riscv.lo elfxx-riscv.lo elf-ifunc.lo elf32.lo $elf" ;;
13405 riscv_elf64_vec) tb="$tb elf64-riscv.lo elf64.lo elfxx-riscv.lo elf-ifunc.lo elf32.lo $elf"; target_size=64 ;;
13406 riscv_elf32_be_vec) tb="$tb elf32-riscv.lo elfxx-riscv.lo elf-ifunc.lo elf32.lo $elf" ;;
13407 riscv_elf64_be_vec) tb="$tb elf64-riscv.lo elf64.lo elfxx-riscv.lo elf-ifunc.lo elf32.lo $elf"; target_size=64 ;;
13408 rl78_elf32_vec) tb="$tb elf32-rl78.lo elf32.lo $elf" ;;
13409 rs6000_xcoff64_vec) tb="$tb coff64-rs6000.lo aix5ppc-core.lo $xcoff"; target_size=64 ;;
13410 rs6000_xcoff64_aix_vec) tb="$tb coff64-rs6000.lo aix5ppc-core.lo $xcoff"; target_size=64 ;;
13411 rs6000_xcoff_vec) tb="$tb coff-rs6000.lo $xcoff" ;;
13412 rx_elf32_be_vec) tb="$tb elf32-rx.lo elf32.lo $elf" ;;
13413 rx_elf32_be_ns_vec) tb="$tb elf32-rx.lo elf32.lo $elf" ;;
13414 rx_elf32_le_vec) tb="$tb elf32-rx.lo elf32.lo $elf" ;;
13415 rx_elf32_linux_le_vec) tb="$tb elf32-rx.lo elf32.lo $elf" ;;
13416 s390_elf32_vec) tb="$tb elf32-s390.lo elf32.lo $elf" ;;
13417 s390_elf64_vec) tb="$tb elf64-s390.lo elf64.lo $elf"; target_size=64 ;;
13418 score_elf32_be_vec) tb="$tb elf32-score.lo elf32-score7.lo elf32.lo elf64.lo $elf"; want64=true; target_size=64 ;;
13419 score_elf32_le_vec) tb="$tb elf32-score.lo elf32-score7.lo elf32.lo elf64.lo $elf"; want64=true; target_size=64 ;;
13420 sh_coff_vec) tb="$tb coff-sh.lo $coff" ;;
13421 sh_coff_le_vec) tb="$tb coff-sh.lo $coff" ;;
13422 sh_coff_small_vec) tb="$tb coff-sh.lo $coff" ;;
13423 sh_coff_small_le_vec) tb="$tb coff-sh.lo $coff" ;;
13424 sh_elf32_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
13425 sh_elf32_le_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
13426 sh_elf32_fdpic_be_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
13427 sh_elf32_fdpic_le_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
13428 sh_elf32_linux_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
13429 sh_elf32_linux_be_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
13430 sh_elf32_nbsd_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
13431 sh_elf32_nbsd_le_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
13432 sh_elf32_vxworks_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
13433 sh_elf32_vxworks_le_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
13434 sh_pe_le_vec) tb="$tb pe-sh.lo coff-sh.lo peigen.lo $coff" ;;
13435 sh_pei_le_vec) tb="$tb pei-sh.lo coff-sh.lo peigen.lo $coff" ;;
13436 sparc_elf32_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
13437 sparc_elf32_sol2_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
13438 sparc_elf32_vxworks_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
13439 sparc_elf64_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
13440 sparc_elf64_fbsd_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
13441 sparc_elf64_sol2_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
13442 spu_elf32_vec) tb="$tb elf32-spu.lo elf32.lo $elf" ;;
13443 sym_vec) tb="$tb xsym.lo" ;;
13444 tic30_coff_vec) tb="$tb coff-tic30.lo $coffgen" ;;
13445 tic4x_coff0_vec) tb="$tb coff-tic4x.lo $coffgen" ;;
13446 tic4x_coff0_beh_vec) tb="$tb coff-tic4x.lo $coffgen" ;;
13447 tic4x_coff1_vec) tb="$tb coff-tic4x.lo $coffgen" ;;
13448 tic4x_coff1_beh_vec) tb="$tb coff-tic4x.lo $coffgen" ;;
13449 tic4x_coff2_vec) tb="$tb coff-tic4x.lo $coffgen" ;;
13450 tic4x_coff2_beh_vec) tb="$tb coff-tic4x.lo $coffgen" ;;
13451 tic54x_coff0_vec) tb="$tb coff-tic54x.lo $coffgen" ;;
13452 tic54x_coff0_beh_vec) tb="$tb coff-tic54x.lo $coffgen" ;;
13453 tic54x_coff1_vec) tb="$tb coff-tic54x.lo $coffgen" ;;
13454 tic54x_coff1_beh_vec) tb="$tb coff-tic54x.lo $coffgen" ;;
13455 tic54x_coff2_vec) tb="$tb coff-tic54x.lo $coffgen" ;;
13456 tic54x_coff2_beh_vec) tb="$tb coff-tic54x.lo $coffgen" ;;
13457 tic6x_elf32_be_vec) tb="$tb elf32-tic6x.lo elf32.lo $elf" ;;
13458 tic6x_elf32_le_vec) tb="$tb elf32-tic6x.lo elf32.lo $elf" ;;
13459 tic6x_elf32_c6000_be_vec) tb="$tb elf32-tic6x.lo elf32.lo $elf" ;;
13460 tic6x_elf32_c6000_le_vec) tb="$tb elf32-tic6x.lo elf32.lo $elf" ;;
13461 tic6x_elf32_linux_be_vec) tb="$tb elf32-tic6x.lo elf32.lo $elf" ;;
13462 tic6x_elf32_linux_le_vec) tb="$tb elf32-tic6x.lo elf32.lo $elf" ;;
13463 tilegx_elf32_be_vec) tb="$tb elf32-tilegx.lo elfxx-tilegx.lo elf32.lo $elf" ; target_size=32 ;;
13464 tilegx_elf32_le_vec) tb="$tb elf32-tilegx.lo elfxx-tilegx.lo elf32.lo $elf" ; target_size=32 ;;
13465 tilegx_elf64_be_vec) tb="$tb elf64-tilegx.lo elfxx-tilegx.lo elf64.lo $elf" ; target_size=64 ;;
13466 tilegx_elf64_le_vec) tb="$tb elf64-tilegx.lo elfxx-tilegx.lo elf64.lo $elf" ; target_size=64 ;;
13467 tilepro_elf32_vec) tb="$tb elf32-tilepro.lo elf32.lo $elf" ;;
13468 v800_elf32_vec) tb="$tb elf32-v850.lo elf32.lo $elf" ;;
13469 v850_elf32_vec) tb="$tb elf32-v850.lo elf32.lo $elf" ;;
13470 vax_aout_1knbsd_vec) tb="$tb vax1knetbsd.lo aout32.lo" ;;
13471 vax_aout_nbsd_vec) tb="$tb vaxnetbsd.lo aout32.lo" ;;
13472 vax_elf32_vec) tb="$tb elf32-vax.lo elf32.lo $elf" ;;
13473 ft32_elf32_vec) tb="$tb elf32-ft32.lo elf32.lo $elf" ;;
13474 visium_elf32_vec) tb="$tb elf32-visium.lo elf32.lo $elf" ;;
13475 wasm_vec) tb="$tb wasm-module.lo" ;;
13476 wasm32_elf32_vec) tb="$tb elf32-wasm32.lo elf32.lo $elf" ;;
13477 x86_64_coff_vec) tb="$tb coff-x86_64.lo $coff"; target_size=64 ;;
13478 x86_64_elf32_vec) tb="$tb elf64-x86-64.lo $elfxx_x86 elf64.lo elf32.lo $elf"; target_size=64 ;;
13479 x86_64_elf64_vec) tb="$tb elf64-x86-64.lo $elfxx_x86 elf64.lo $elf"; target_size=64 ;;
13480 x86_64_elf64_cloudabi_vec) tb="$tb elf64-x86-64.lo $elfxx_x86 elf64.lo $elf"; target_size=64 ;;
13481 x86_64_elf64_fbsd_vec) tb="$tb elf64-x86-64.lo $elfxx_x86 elf64.lo $elf"; target_size=64 ;;
13482 x86_64_elf64_sol2_vec) tb="$tb elf64-x86-64.lo $elfxx_x86 elf64.lo $elf"; target_size=64 ;;
13483 x86_64_mach_o_vec) tb="$tb mach-o-x86-64.lo" ;;
13484 x86_64_pe_vec) tb="$tb pe-x86_64.lo pex64igen.lo $coff"; target_size=64 ;;
13485 x86_64_pe_big_vec) tb="$tb pe-x86_64.lo pex64igen.lo $coff"; target_size=64 ;;
13486 x86_64_pei_vec) tb="$tb pei-x86_64.lo pex64igen.lo $coff"; target_size=64 ;;
13487 xc16x_elf32_vec) tb="$tb elf32-xc16x.lo elf32.lo $elf" ;;
13488 xgate_elf32_vec) tb="$tb elf32-xgate.lo elf32.lo $elf" ;;
13489 xstormy16_elf32_vec) tb="$tb elf32-xstormy16.lo elf32.lo $elf" ;;
13490 xtensa_elf32_be_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
13491 xtensa_elf32_le_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
13492 z80_coff_vec) tb="$tb coff-z80.lo reloc16.lo $coffgen" ;;
13493 z80_elf32_vec) tb="$tb elf32-z80.lo elf32.lo $elf" ;;
13494 z8k_coff_vec) tb="$tb coff-z8k.lo reloc16.lo $coff" ;;
13495
13496 # These appear out of order in targets.c
13497 srec_vec) tb="$tb srec.lo" ;;
13498 symbolsrec_vec) tb="$tb srec.lo" ;;
13499 tekhex_vec) tb="$tb tekhex.lo" ;;
13500 core_cisco_be_vec) tb="$tb cisco-core.lo" ;;
13501 core_cisco_le_vec) tb="$tb cisco-core.lo" ;;
13502
13503 "") ;;
13504 *) as_fn_error $? "*** unknown target vector $vec" "$LINENO" 5 ;;
13505 esac
13506
13507 if test ${target_size} = 64; then
13508 target64=true
13509 fi
13510 if test x"${vec}" = x"${defvec}"; then
13511 bfd_default_target_size=${target_size}
13512 fi
13513 done
13514
13515 if test "$plugins" = "yes"; then
13516 tb="$tb plugin.lo"
13517 fi
13518
13519 # Target architecture .o files.
13520 # A couple of CPUs use shorter file names to avoid problems on DOS
13521 # filesystems.
13522 ta=`echo $selarchs | sed -e s/bfd_/cpu-/g -e s/_arch/.lo/g -e s/mn10200/m10200/ -e s/mn10300/m10300/`
13523
13524 # Weed out duplicate .o files.
13525 f=""
13526 for i in $tb ; do
13527 case " $f " in
13528 *" $i "*) ;;
13529 *) f="$f $i" ;;
13530 esac
13531 done
13532 tb="$f"
13533
13534 f=""
13535 for i in $ta ; do
13536 case " $f " in
13537 *" $i "*) ;;
13538 *) f="$f $i" ;;
13539 esac
13540 done
13541 ta="$f"
13542
13543 bfd_backends="$tb"
13544 bfd_machines="$ta"
13545
13546 if test x${all_targets} = xtrue ; then
13547 bfd_backends="${bfd_backends}"' $(ALL_BACKENDS)'
13548 bfd_machines="${bfd_machines}"' $(ALL_MACHINES)'
13549 selvecs=
13550 havevecs=-DHAVE_all_vecs
13551 selarchs=
13552 test -n "$assocvecs" &&
13553 assocvecs=`echo $assocvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
13554 else # all_targets is true
13555 # Only set these if they will be nonempty, for the clever echo.
13556 havevecs=
13557 assocvecs=
13558 test -n "$selvecs" &&
13559 havevecs=`echo $selvecs | sed -e 's/^/-DHAVE_/' -e 's/ \(.\)/ -DHAVE_\1/g'`
13560 test -n "$selvecs" &&
13561 selvecs=`echo $selvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
13562 test -n "$selarchs" &&
13563 selarchs=`echo $selarchs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
13564 fi # all_targets is true
13565
13566 # 64-bit archives need a 64-bit bfd_vma.
13567 if test "x$want_64_bit_archive" = xtrue; then
13568 want64=true
13569
13570 $as_echo "#define USE_64_BIT_ARCHIVE 1" >>confdefs.h
13571
13572 fi
13573
13574 case ${host64}-${target64}-${want64} in
13575 *true*)
13576 wordsize=64
13577 bfd64_libs='$(BFD64_LIBS)'
13578 all_backends='$(BFD64_BACKENDS) $(BFD32_BACKENDS)'
13579 if test $BFD_HOST_64_BIT_DEFINED = 0; then
13580 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You have requested a 64 bit BFD configuration, but" >&5
13581 $as_echo "$as_me: WARNING: You have requested a 64 bit BFD configuration, but" >&2;}
13582 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: your compiler may not have a 64 bit integral type" >&5
13583 $as_echo "$as_me: WARNING: your compiler may not have a 64 bit integral type" >&2;}
13584 fi
13585 if test -n "$GCC" ; then
13586 bad_64bit_gcc=no;
13587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc version with buggy 64-bit support" >&5
13588 $as_echo_n "checking for gcc version with buggy 64-bit support... " >&6; }
13589 # Add more tests for gcc versions with non-working 64-bit support here.
13590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13591 /* end confdefs.h. */
13592 :__GNUC__:__GNUC_MINOR__:__i386__:
13593 _ACEOF
13594 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13595 $EGREP ": 2 : 91 : 1 :" >/dev/null 2>&1; then :
13596 bad_64bit_gcc=yes;
13597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes: egcs-1.1.2 on ix86 spotted" >&5
13598 $as_echo "yes: egcs-1.1.2 on ix86 spotted" >&6; }
13599 else
13600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13601 $as_echo "no" >&6; }
13602 fi
13603 rm -f conftest*
13604
13605 if test $bad_64bit_gcc = yes ; then
13606 as_fn_error $? "A newer version of gcc is needed for the requested 64-bit BFD configuration" "$LINENO" 5
13607 fi
13608 fi
13609 ;;
13610 false-false-false)
13611 wordsize=32
13612 all_backends='$(BFD32_BACKENDS)'
13613 ;;
13614 esac
13615
13616 tdefaults=""
13617 test -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}"
13618 test -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'"
13619 test -n "${assocvecs}" && tdefaults="${tdefaults} -DASSOCIATED_VECS='${assocvecs}'"
13620 test -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'"
13621
13622
13623
13624
13625
13626
13627
13628
13629
13630
13631 # If we are configured native, pick a core file support file.
13632 COREFILE=
13633 COREFLAG=
13634 CORE_HEADER=
13635 TRAD_HEADER=
13636 if test "${target}" = "${host}"; then
13637 case "${host}" in
13638 alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu | alpha*-*-*vms*)
13639 COREFILE=''
13640 ;;
13641 alpha*-*-linux-*)
13642 COREFILE=trad-core.lo
13643 TRAD_HEADER='"hosts/alphalinux.h"'
13644 ;;
13645 alpha*-*-netbsd* | alpha*-*-openbsd*)
13646 COREFILE=netbsd-core.lo
13647 ;;
13648 alpha*-*-*)
13649 COREFILE=osf-core.lo
13650 ;;
13651 arm-*-freebsd* | arm-*-kfreebsd*-gnu)
13652 COREFILE='' ;;
13653 arm*-*-netbsd* | arm-*-openbsd*)
13654 COREFILE=netbsd-core.lo
13655 ;;
13656 arm-*-riscix) COREFILE=trad-core.lo ;;
13657 hppa*-*-hpux*) COREFILE=hpux-core.lo ;;
13658 hppa*-*-hiux*) COREFILE=hpux-core.lo ;;
13659 hppa*-*-mpeix*) COREFILE=hpux-core.lo ;;
13660 hppa*-*-bsd*) COREFILE="hpux-core.lo hppabsd-core.lo"
13661 COREFLAG="-DHPUX_CORE -DHPPABSD_CORE" ;;
13662 hppa*-*-netbsd* | hppa*-*-openbsd*)
13663 COREFILE=netbsd-core.lo
13664 ;;
13665
13666 i[3-7]86-sequent-bsd*)
13667 COREFILE=trad-core.lo
13668 TRAD_HEADER='"hosts/symmetry.h"'
13669 ;;
13670 i[3-7]86-sequent-sysv4*) ;;
13671 i[3-7]86-sequent-sysv*)
13672 COREFILE=trad-core.lo
13673 TRAD_HEADER='"hosts/symmetry.h"'
13674 ;;
13675 i[3-7]86-*-bsdi)
13676 COREFILE=
13677 ;;
13678 i[3-7]86-*-bsd* | i[3-7]86-*-freebsd[123] | i[3-7]86-*-freebsd[123]\.* | i[3-7]86-*-freebsd4\.[01234] | i[3-7]86-*-freebsd4\.[01234]\.* | i[3-7]86-*-freebsd*aout*)
13679 COREFILE=trad-core.lo
13680 TRAD_HEADER='"hosts/i386bsd.h"'
13681 ;;
13682 i[3-7]86-*-freebsd* | i[3-7]86-*-kfreebsd*-gnu | i[3-7]86-*-dragonfly*)
13683 COREFILE=''
13684 TRAD_HEADER='"hosts/i386bsd.h"'
13685 ;;
13686 i[3-7]86-*-netbsd* | i[3-7]86-*-knetbsd*-gnu | i[3-7]86-*-openbsd*)
13687 COREFILE=netbsd-core.lo
13688 ;;
13689 i[3-7]86-esix-sysv3*)
13690 COREFILE=trad-core.lo
13691 TRAD_HEADER='"hosts/esix.h"'
13692 ;;
13693 i[3-7]86-*-sco3.2v5*)
13694 COREFILE=sco5-core.lo
13695 ;;
13696 i[3-7]86-*-sco* | i[3-7]86-*-isc*)
13697 COREFILE=trad-core.lo
13698 TRAD_HEADER='"hosts/i386sco.h"'
13699 ;;
13700 i[3-7]86-*-mach3*)
13701 COREFILE=trad-core.lo
13702 TRAD_HEADER='"hosts/i386mach3.h"'
13703 ;;
13704 i[3-7]86-*-linux-*)
13705 COREFILE=trad-core.lo
13706 TRAD_HEADER='"hosts/i386linux.h"'
13707 case "$enable_targets"-"$want64" in
13708 *x86_64-*linux*|*-true)
13709 CORE_HEADER='"hosts/x86-64linux.h"'
13710 esac
13711 ;;
13712 i[3-7]86-*-isc*) COREFILE=trad-core.lo ;;
13713 i[3-7]86-*-aix*) COREFILE=aix386-core.lo ;;
13714 mips*-*-netbsd* | mips*-*-openbsd*)
13715 COREFILE=netbsd-core.lo
13716 ;;
13717 mips-sgi-irix4*) COREFILE=irix-core.lo ;;
13718 mips-sgi-irix5*) COREFILE=irix-core.lo ;;
13719 mips-sgi-irix6*) COREFILE=irix-core.lo ;;
13720 m68*-*-linux-*)
13721 COREFILE=trad-core.lo
13722 TRAD_HEADER='"hosts/m68klinux.h"'
13723 ;;
13724 m68*-*-netbsd*)
13725 COREFILE=netbsd-core.lo
13726 ;;
13727 ns32k-pc532-mach)
13728 COREFILE=trad-core.lo
13729 TRAD_HEADER='"hosts/pc532mach.h"'
13730 ;;
13731 ns32k-*-netbsd* | ns32k-*-openbsd*)
13732 COREFILE=netbsd-core.lo
13733 ;;
13734 rs6000-*-lynx*)
13735 COREFILE=lynx-core.lo
13736 ;;
13737 rs6000-*-aix[5-9].* | powerpc-*-aix[5-9].* | powerpc64-*-aix[5-9].*)
13738 COREFILE=rs6000-core.lo
13739 COREFLAG="$COREFLAG -DAIX_5_CORE -DAIX_CORE_DUMPX_CORE"
13740 ;;
13741 rs6000-*-aix4.[3-9]* | powerpc-*-aix4.[3-9]*)
13742 COREFILE=rs6000-core.lo
13743 COREFLAG="$COREFLAG -DAIX_CORE_DUMPX_CORE"
13744 # Not all versions of AIX with -DAIX_CORE_DUMPX_CORE
13745 # have c_impl as a member of struct core_dumpx
13746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c_impl in struct core_dumpx" >&5
13747 $as_echo_n "checking for c_impl in struct core_dumpx... " >&6; }
13748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13749 /* end confdefs.h. */
13750 #include <core.h>
13751 int
13752 main ()
13753 {
13754 struct core_dumpx c; c.c_impl = 0;
13755 ;
13756 return 0;
13757 }
13758 _ACEOF
13759 if ac_fn_c_try_compile "$LINENO"; then :
13760
13761 $as_echo "#define HAVE_ST_C_IMPL 1" >>confdefs.h
13762
13763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13764 $as_echo "yes" >&6; }
13765 else
13766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13767 $as_echo "no" >&6; }
13768 fi
13769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13770 ;;
13771 rs6000-*-aix4*) COREFILE=rs6000-core.lo ;;
13772 rs6000-*-*) COREFILE=rs6000-core.lo ;;
13773 powerpc64-*-aix*) COREFILE=rs6000-core.lo ;;
13774 powerpc-*-aix4*) COREFILE=rs6000-core.lo ;;
13775 powerpc-*-aix*) COREFILE=rs6000-core.lo ;;
13776 powerpc-*-beos*) ;;
13777 powerpc-*-freebsd* | powerpc-*-kfreebsd*-gnu)
13778 COREFILE='' ;;
13779 powerpc-*-netbsd*) COREFILE=netbsd-core.lo ;;
13780 powerpc-*-*bsd*) COREFILE=netbsd-core.lo ;;
13781 s390*-*-*) COREFILE=trad-core.lo ;;
13782 sh*-*-netbsd* | sh*-*-openbsd*)
13783 COREFILE=netbsd-core.lo
13784 ;;
13785 sparc-*-netbsd* | sparc*-*-openbsd*)
13786 COREFILE=netbsd-core.lo
13787 ;;
13788 vax-*-netbsd* | vax-*-openbsd*)
13789 COREFILE=netbsd-core.lo
13790 ;;
13791 vax-*-ultrix2*)
13792 COREFILE=trad-core.lo
13793 TRAD_HEADER='"hosts/vaxult2.h"'
13794 ;;
13795 vax-*-ultrix*)
13796 COREFILE=trad-core.lo
13797 TRAD_HEADER='"hosts/vaxult2.h"'
13798 ;;
13799 vax-*-linux-*)
13800 COREFILE=trad-core.lo
13801 TRAD_HEADER='"hosts/vaxlinux.h"'
13802 ;;
13803 vax-*-*)
13804 COREFILE=trad-core.lo
13805 TRAD_HEADER='"hosts/vaxbsd.h"'
13806 ;;
13807 x86_64-*-linux*)
13808 CORE_HEADER='"hosts/x86-64linux.h"'
13809 ;;
13810 x86_64-*-netbsd* | x86_64-*-openbsd*)
13811 COREFILE=netbsd-core.lo
13812 ;;
13813 esac
13814
13815 case "$COREFILE" in
13816 aix386-core.lo) COREFLAG=-DAIX386_CORE ;;
13817 hppabsd-core.lo) COREFLAG=-DHPPABSD_CORE ;;
13818 hpux-core.lo) COREFLAG=-DHPUX_CORE ;;
13819 irix-core.lo) COREFLAG=-DIRIX_CORE ;;
13820 lynx-core.lo) COREFLAG=-DLYNX_CORE ;;
13821 netbsd-core.lo) COREFLAG=-DNETBSD_CORE ;;
13822 osf-core.lo) COREFLAG=-DOSF_CORE ;;
13823 ptrace-core.lo) COREFLAG=-DPTRACE_CORE ;;
13824 rs6000-core.lo) COREFLAG="$COREFLAG -DAIX_CORE" ;;
13825 sco5-core.lo) COREFLAG="$COREFLAG -DSCO5_CORE" ;;
13826 trad-core.lo) COREFLAG="$COREFLAG -DTRAD_CORE" ;;
13827 esac
13828
13829 # ELF corefile support has several flavors, but all of
13830 # them use something called <sys/procfs.h>
13831
13832 $as_echo "#define _STRUCTURED_PROC 1" >>confdefs.h
13833
13834 for ac_header in sys/procfs.h
13835 do :
13836 ac_fn_c_check_header_mongrel "$LINENO" "sys/procfs.h" "ac_cv_header_sys_procfs_h" "$ac_includes_default"
13837 if test "x$ac_cv_header_sys_procfs_h" = xyes; then :
13838 cat >>confdefs.h <<_ACEOF
13839 #define HAVE_SYS_PROCFS_H 1
13840 _ACEOF
13841
13842 fi
13843
13844 done
13845
13846 if test "$ac_cv_header_sys_procfs_h" = yes; then
13847
13848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prstatus_t in sys/procfs.h" >&5
13849 $as_echo_n "checking for prstatus_t in sys/procfs.h... " >&6; }
13850 if ${bfd_cv_have_sys_procfs_type_prstatus_t+:} false; then :
13851 $as_echo_n "(cached) " >&6
13852 else
13853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13854 /* end confdefs.h. */
13855
13856 #define _SYSCALL32
13857 #include <sys/procfs.h>
13858 int
13859 main ()
13860 {
13861 prstatus_t avar
13862 ;
13863 return 0;
13864 }
13865 _ACEOF
13866 if ac_fn_c_try_compile "$LINENO"; then :
13867 bfd_cv_have_sys_procfs_type_prstatus_t=yes
13868 else
13869 bfd_cv_have_sys_procfs_type_prstatus_t=no
13870
13871 fi
13872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13873 fi
13874
13875 if test $bfd_cv_have_sys_procfs_type_prstatus_t = yes; then
13876
13877 $as_echo "#define HAVE_PRSTATUS_T 1" >>confdefs.h
13878
13879 fi
13880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prstatus_t" >&5
13881 $as_echo "$bfd_cv_have_sys_procfs_type_prstatus_t" >&6; }
13882
13883
13884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prstatus32_t in sys/procfs.h" >&5
13885 $as_echo_n "checking for prstatus32_t in sys/procfs.h... " >&6; }
13886 if ${bfd_cv_have_sys_procfs_type_prstatus32_t+:} false; then :
13887 $as_echo_n "(cached) " >&6
13888 else
13889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13890 /* end confdefs.h. */
13891
13892 #define _SYSCALL32
13893 #include <sys/procfs.h>
13894 int
13895 main ()
13896 {
13897 prstatus32_t avar
13898 ;
13899 return 0;
13900 }
13901 _ACEOF
13902 if ac_fn_c_try_compile "$LINENO"; then :
13903 bfd_cv_have_sys_procfs_type_prstatus32_t=yes
13904 else
13905 bfd_cv_have_sys_procfs_type_prstatus32_t=no
13906
13907 fi
13908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13909 fi
13910
13911 if test $bfd_cv_have_sys_procfs_type_prstatus32_t = yes; then
13912
13913 $as_echo "#define HAVE_PRSTATUS32_T 1" >>confdefs.h
13914
13915 fi
13916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prstatus32_t" >&5
13917 $as_echo "$bfd_cv_have_sys_procfs_type_prstatus32_t" >&6; }
13918
13919
13920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prstatus_t.pr_who in sys/procfs.h" >&5
13921 $as_echo_n "checking for prstatus_t.pr_who in sys/procfs.h... " >&6; }
13922 if ${bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who+:} false; then :
13923 $as_echo_n "(cached) " >&6
13924 else
13925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13926 /* end confdefs.h. */
13927
13928 #define _SYSCALL32
13929 #include <sys/procfs.h>
13930 int
13931 main ()
13932 {
13933 prstatus_t avar; void* aref = (void*) &avar.pr_who
13934 ;
13935 return 0;
13936 }
13937 _ACEOF
13938 if ac_fn_c_try_compile "$LINENO"; then :
13939 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=yes
13940 else
13941 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=no
13942
13943 fi
13944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13945 fi
13946
13947 if test $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who = yes; then
13948
13949 $as_echo "#define HAVE_PRSTATUS_T_PR_WHO 1" >>confdefs.h
13950
13951 fi
13952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&5
13953 $as_echo "$bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&6; }
13954
13955
13956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prstatus32_t.pr_who in sys/procfs.h" >&5
13957 $as_echo_n "checking for prstatus32_t.pr_who in sys/procfs.h... " >&6; }
13958 if ${bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who+:} false; then :
13959 $as_echo_n "(cached) " >&6
13960 else
13961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13962 /* end confdefs.h. */
13963
13964 #define _SYSCALL32
13965 #include <sys/procfs.h>
13966 int
13967 main ()
13968 {
13969 prstatus32_t avar; void* aref = (void*) &avar.pr_who
13970 ;
13971 return 0;
13972 }
13973 _ACEOF
13974 if ac_fn_c_try_compile "$LINENO"; then :
13975 bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=yes
13976 else
13977 bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=no
13978
13979 fi
13980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13981 fi
13982
13983 if test $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who = yes; then
13984
13985 $as_echo "#define HAVE_PRSTATUS32_T_PR_WHO 1" >>confdefs.h
13986
13987 fi
13988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&5
13989 $as_echo "$bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&6; }
13990
13991
13992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pstatus_t in sys/procfs.h" >&5
13993 $as_echo_n "checking for pstatus_t in sys/procfs.h... " >&6; }
13994 if ${bfd_cv_have_sys_procfs_type_pstatus_t+:} false; then :
13995 $as_echo_n "(cached) " >&6
13996 else
13997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13998 /* end confdefs.h. */
13999
14000 #define _SYSCALL32
14001 #include <sys/procfs.h>
14002 int
14003 main ()
14004 {
14005 pstatus_t avar
14006 ;
14007 return 0;
14008 }
14009 _ACEOF
14010 if ac_fn_c_try_compile "$LINENO"; then :
14011 bfd_cv_have_sys_procfs_type_pstatus_t=yes
14012 else
14013 bfd_cv_have_sys_procfs_type_pstatus_t=no
14014
14015 fi
14016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14017 fi
14018
14019 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
14020
14021 $as_echo "#define HAVE_PSTATUS_T 1" >>confdefs.h
14022
14023 fi
14024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
14025 $as_echo "$bfd_cv_have_sys_procfs_type_pstatus_t" >&6; }
14026
14027
14028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pxstatus_t in sys/procfs.h" >&5
14029 $as_echo_n "checking for pxstatus_t in sys/procfs.h... " >&6; }
14030 if ${bfd_cv_have_sys_procfs_type_pxstatus_t+:} false; then :
14031 $as_echo_n "(cached) " >&6
14032 else
14033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14034 /* end confdefs.h. */
14035
14036 #define _SYSCALL32
14037 #include <sys/procfs.h>
14038 int
14039 main ()
14040 {
14041 pxstatus_t avar
14042 ;
14043 return 0;
14044 }
14045 _ACEOF
14046 if ac_fn_c_try_compile "$LINENO"; then :
14047 bfd_cv_have_sys_procfs_type_pxstatus_t=yes
14048 else
14049 bfd_cv_have_sys_procfs_type_pxstatus_t=no
14050
14051 fi
14052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14053 fi
14054
14055 if test $bfd_cv_have_sys_procfs_type_pxstatus_t = yes; then
14056
14057 $as_echo "#define HAVE_PXSTATUS_T 1" >>confdefs.h
14058
14059 fi
14060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pxstatus_t" >&5
14061 $as_echo "$bfd_cv_have_sys_procfs_type_pxstatus_t" >&6; }
14062
14063
14064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pstatus32_t in sys/procfs.h" >&5
14065 $as_echo_n "checking for pstatus32_t in sys/procfs.h... " >&6; }
14066 if ${bfd_cv_have_sys_procfs_type_pstatus32_t+:} false; then :
14067 $as_echo_n "(cached) " >&6
14068 else
14069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14070 /* end confdefs.h. */
14071
14072 #define _SYSCALL32
14073 #include <sys/procfs.h>
14074 int
14075 main ()
14076 {
14077 pstatus32_t avar
14078 ;
14079 return 0;
14080 }
14081 _ACEOF
14082 if ac_fn_c_try_compile "$LINENO"; then :
14083 bfd_cv_have_sys_procfs_type_pstatus32_t=yes
14084 else
14085 bfd_cv_have_sys_procfs_type_pstatus32_t=no
14086
14087 fi
14088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14089 fi
14090
14091 if test $bfd_cv_have_sys_procfs_type_pstatus32_t = yes; then
14092
14093 $as_echo "#define HAVE_PSTATUS32_T 1" >>confdefs.h
14094
14095 fi
14096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pstatus32_t" >&5
14097 $as_echo "$bfd_cv_have_sys_procfs_type_pstatus32_t" >&6; }
14098
14099
14100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prpsinfo_t in sys/procfs.h" >&5
14101 $as_echo_n "checking for prpsinfo_t in sys/procfs.h... " >&6; }
14102 if ${bfd_cv_have_sys_procfs_type_prpsinfo_t+:} false; then :
14103 $as_echo_n "(cached) " >&6
14104 else
14105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14106 /* end confdefs.h. */
14107
14108 #define _SYSCALL32
14109 #include <sys/procfs.h>
14110 int
14111 main ()
14112 {
14113 prpsinfo_t avar
14114 ;
14115 return 0;
14116 }
14117 _ACEOF
14118 if ac_fn_c_try_compile "$LINENO"; then :
14119 bfd_cv_have_sys_procfs_type_prpsinfo_t=yes
14120 else
14121 bfd_cv_have_sys_procfs_type_prpsinfo_t=no
14122
14123 fi
14124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14125 fi
14126
14127 if test $bfd_cv_have_sys_procfs_type_prpsinfo_t = yes; then
14128
14129 $as_echo "#define HAVE_PRPSINFO_T 1" >>confdefs.h
14130
14131 fi
14132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prpsinfo_t" >&5
14133 $as_echo "$bfd_cv_have_sys_procfs_type_prpsinfo_t" >&6; }
14134
14135
14136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prpsinfo_t.pr_pid in sys/procfs.h" >&5
14137 $as_echo_n "checking for prpsinfo_t.pr_pid in sys/procfs.h... " >&6; }
14138 if ${bfd_cv_have_sys_procfs_type_member_prpsinfo_t_pr_pid+:} false; then :
14139 $as_echo_n "(cached) " >&6
14140 else
14141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14142 /* end confdefs.h. */
14143
14144 #define _SYSCALL32
14145 #include <sys/procfs.h>
14146 int
14147 main ()
14148 {
14149 prpsinfo_t avar; void* aref = (void*) &avar.pr_pid
14150 ;
14151 return 0;
14152 }
14153 _ACEOF
14154 if ac_fn_c_try_compile "$LINENO"; then :
14155 bfd_cv_have_sys_procfs_type_member_prpsinfo_t_pr_pid=yes
14156 else
14157 bfd_cv_have_sys_procfs_type_member_prpsinfo_t_pr_pid=no
14158
14159 fi
14160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14161 fi
14162
14163 if test $bfd_cv_have_sys_procfs_type_member_prpsinfo_t_pr_pid = yes; then
14164
14165 $as_echo "#define HAVE_PRPSINFO_T_PR_PID 1" >>confdefs.h
14166
14167 fi
14168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_prpsinfo_t_pr_pid" >&5
14169 $as_echo "$bfd_cv_have_sys_procfs_type_member_prpsinfo_t_pr_pid" >&6; }
14170
14171
14172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prpsinfo32_t in sys/procfs.h" >&5
14173 $as_echo_n "checking for prpsinfo32_t in sys/procfs.h... " >&6; }
14174 if ${bfd_cv_have_sys_procfs_type_prpsinfo32_t+:} false; then :
14175 $as_echo_n "(cached) " >&6
14176 else
14177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14178 /* end confdefs.h. */
14179
14180 #define _SYSCALL32
14181 #include <sys/procfs.h>
14182 int
14183 main ()
14184 {
14185 prpsinfo32_t avar
14186 ;
14187 return 0;
14188 }
14189 _ACEOF
14190 if ac_fn_c_try_compile "$LINENO"; then :
14191 bfd_cv_have_sys_procfs_type_prpsinfo32_t=yes
14192 else
14193 bfd_cv_have_sys_procfs_type_prpsinfo32_t=no
14194
14195 fi
14196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14197 fi
14198
14199 if test $bfd_cv_have_sys_procfs_type_prpsinfo32_t = yes; then
14200
14201 $as_echo "#define HAVE_PRPSINFO32_T 1" >>confdefs.h
14202
14203 fi
14204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&5
14205 $as_echo "$bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&6; }
14206
14207
14208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prpsinfo32_t.pr_pid in sys/procfs.h" >&5
14209 $as_echo_n "checking for prpsinfo32_t.pr_pid in sys/procfs.h... " >&6; }
14210 if ${bfd_cv_have_sys_procfs_type_member_prpsinfo32_t_pr_pid+:} false; then :
14211 $as_echo_n "(cached) " >&6
14212 else
14213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14214 /* end confdefs.h. */
14215
14216 #define _SYSCALL32
14217 #include <sys/procfs.h>
14218 int
14219 main ()
14220 {
14221 prpsinfo32_t avar; void* aref = (void*) &avar.pr_pid
14222 ;
14223 return 0;
14224 }
14225 _ACEOF
14226 if ac_fn_c_try_compile "$LINENO"; then :
14227 bfd_cv_have_sys_procfs_type_member_prpsinfo32_t_pr_pid=yes
14228 else
14229 bfd_cv_have_sys_procfs_type_member_prpsinfo32_t_pr_pid=no
14230
14231 fi
14232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14233 fi
14234
14235 if test $bfd_cv_have_sys_procfs_type_member_prpsinfo32_t_pr_pid = yes; then
14236
14237 $as_echo "#define HAVE_PRPSINFO32_T_PR_PID 1" >>confdefs.h
14238
14239 fi
14240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_prpsinfo32_t_pr_pid" >&5
14241 $as_echo "$bfd_cv_have_sys_procfs_type_member_prpsinfo32_t_pr_pid" >&6; }
14242
14243
14244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psinfo_t in sys/procfs.h" >&5
14245 $as_echo_n "checking for psinfo_t in sys/procfs.h... " >&6; }
14246 if ${bfd_cv_have_sys_procfs_type_psinfo_t+:} false; then :
14247 $as_echo_n "(cached) " >&6
14248 else
14249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14250 /* end confdefs.h. */
14251
14252 #define _SYSCALL32
14253 #include <sys/procfs.h>
14254 int
14255 main ()
14256 {
14257 psinfo_t avar
14258 ;
14259 return 0;
14260 }
14261 _ACEOF
14262 if ac_fn_c_try_compile "$LINENO"; then :
14263 bfd_cv_have_sys_procfs_type_psinfo_t=yes
14264 else
14265 bfd_cv_have_sys_procfs_type_psinfo_t=no
14266
14267 fi
14268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14269 fi
14270
14271 if test $bfd_cv_have_sys_procfs_type_psinfo_t = yes; then
14272
14273 $as_echo "#define HAVE_PSINFO_T 1" >>confdefs.h
14274
14275 fi
14276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psinfo_t" >&5
14277 $as_echo "$bfd_cv_have_sys_procfs_type_psinfo_t" >&6; }
14278
14279
14280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psinfo_t.pr_pid in sys/procfs.h" >&5
14281 $as_echo_n "checking for psinfo_t.pr_pid in sys/procfs.h... " >&6; }
14282 if ${bfd_cv_have_sys_procfs_type_member_psinfo_t_pr_pid+:} false; then :
14283 $as_echo_n "(cached) " >&6
14284 else
14285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14286 /* end confdefs.h. */
14287
14288 #define _SYSCALL32
14289 #include <sys/procfs.h>
14290 int
14291 main ()
14292 {
14293 psinfo_t avar; void* aref = (void*) &avar.pr_pid
14294 ;
14295 return 0;
14296 }
14297 _ACEOF
14298 if ac_fn_c_try_compile "$LINENO"; then :
14299 bfd_cv_have_sys_procfs_type_member_psinfo_t_pr_pid=yes
14300 else
14301 bfd_cv_have_sys_procfs_type_member_psinfo_t_pr_pid=no
14302
14303 fi
14304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14305 fi
14306
14307 if test $bfd_cv_have_sys_procfs_type_member_psinfo_t_pr_pid = yes; then
14308
14309 $as_echo "#define HAVE_PSINFO_T_PR_PID 1" >>confdefs.h
14310
14311 fi
14312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_psinfo_t_pr_pid" >&5
14313 $as_echo "$bfd_cv_have_sys_procfs_type_member_psinfo_t_pr_pid" >&6; }
14314
14315
14316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psinfo32_t in sys/procfs.h" >&5
14317 $as_echo_n "checking for psinfo32_t in sys/procfs.h... " >&6; }
14318 if ${bfd_cv_have_sys_procfs_type_psinfo32_t+:} false; then :
14319 $as_echo_n "(cached) " >&6
14320 else
14321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14322 /* end confdefs.h. */
14323
14324 #define _SYSCALL32
14325 #include <sys/procfs.h>
14326 int
14327 main ()
14328 {
14329 psinfo32_t avar
14330 ;
14331 return 0;
14332 }
14333 _ACEOF
14334 if ac_fn_c_try_compile "$LINENO"; then :
14335 bfd_cv_have_sys_procfs_type_psinfo32_t=yes
14336 else
14337 bfd_cv_have_sys_procfs_type_psinfo32_t=no
14338
14339 fi
14340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14341 fi
14342
14343 if test $bfd_cv_have_sys_procfs_type_psinfo32_t = yes; then
14344
14345 $as_echo "#define HAVE_PSINFO32_T 1" >>confdefs.h
14346
14347 fi
14348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psinfo32_t" >&5
14349 $as_echo "$bfd_cv_have_sys_procfs_type_psinfo32_t" >&6; }
14350
14351
14352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psinfo32_t.pr_pid in sys/procfs.h" >&5
14353 $as_echo_n "checking for psinfo32_t.pr_pid in sys/procfs.h... " >&6; }
14354 if ${bfd_cv_have_sys_procfs_type_member_psinfo32_t_pr_pid+:} false; then :
14355 $as_echo_n "(cached) " >&6
14356 else
14357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14358 /* end confdefs.h. */
14359
14360 #define _SYSCALL32
14361 #include <sys/procfs.h>
14362 int
14363 main ()
14364 {
14365 psinfo32_t avar; void* aref = (void*) &avar.pr_pid
14366 ;
14367 return 0;
14368 }
14369 _ACEOF
14370 if ac_fn_c_try_compile "$LINENO"; then :
14371 bfd_cv_have_sys_procfs_type_member_psinfo32_t_pr_pid=yes
14372 else
14373 bfd_cv_have_sys_procfs_type_member_psinfo32_t_pr_pid=no
14374
14375 fi
14376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14377 fi
14378
14379 if test $bfd_cv_have_sys_procfs_type_member_psinfo32_t_pr_pid = yes; then
14380
14381 $as_echo "#define HAVE_PSINFO32_T_PR_PID 1" >>confdefs.h
14382
14383 fi
14384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_psinfo32_t_pr_pid" >&5
14385 $as_echo "$bfd_cv_have_sys_procfs_type_member_psinfo32_t_pr_pid" >&6; }
14386
14387
14388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpstatus_t in sys/procfs.h" >&5
14389 $as_echo_n "checking for lwpstatus_t in sys/procfs.h... " >&6; }
14390 if ${bfd_cv_have_sys_procfs_type_lwpstatus_t+:} false; then :
14391 $as_echo_n "(cached) " >&6
14392 else
14393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14394 /* end confdefs.h. */
14395
14396 #define _SYSCALL32
14397 #include <sys/procfs.h>
14398 int
14399 main ()
14400 {
14401 lwpstatus_t avar
14402 ;
14403 return 0;
14404 }
14405 _ACEOF
14406 if ac_fn_c_try_compile "$LINENO"; then :
14407 bfd_cv_have_sys_procfs_type_lwpstatus_t=yes
14408 else
14409 bfd_cv_have_sys_procfs_type_lwpstatus_t=no
14410
14411 fi
14412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14413 fi
14414
14415 if test $bfd_cv_have_sys_procfs_type_lwpstatus_t = yes; then
14416
14417 $as_echo "#define HAVE_LWPSTATUS_T 1" >>confdefs.h
14418
14419 fi
14420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpstatus_t" >&5
14421 $as_echo "$bfd_cv_have_sys_procfs_type_lwpstatus_t" >&6; }
14422
14423
14424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpxstatus_t in sys/procfs.h" >&5
14425 $as_echo_n "checking for lwpxstatus_t in sys/procfs.h... " >&6; }
14426 if ${bfd_cv_have_sys_procfs_type_lwpxstatus_t+:} false; then :
14427 $as_echo_n "(cached) " >&6
14428 else
14429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14430 /* end confdefs.h. */
14431
14432 #define _SYSCALL32
14433 #include <sys/procfs.h>
14434 int
14435 main ()
14436 {
14437 lwpxstatus_t avar
14438 ;
14439 return 0;
14440 }
14441 _ACEOF
14442 if ac_fn_c_try_compile "$LINENO"; then :
14443 bfd_cv_have_sys_procfs_type_lwpxstatus_t=yes
14444 else
14445 bfd_cv_have_sys_procfs_type_lwpxstatus_t=no
14446
14447 fi
14448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14449 fi
14450
14451 if test $bfd_cv_have_sys_procfs_type_lwpxstatus_t = yes; then
14452
14453 $as_echo "#define HAVE_LWPXSTATUS_T 1" >>confdefs.h
14454
14455 fi
14456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&5
14457 $as_echo "$bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&6; }
14458
14459
14460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpstatus_t.pr_context in sys/procfs.h" >&5
14461 $as_echo_n "checking for lwpstatus_t.pr_context in sys/procfs.h... " >&6; }
14462 if ${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context+:} false; then :
14463 $as_echo_n "(cached) " >&6
14464 else
14465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14466 /* end confdefs.h. */
14467
14468 #define _SYSCALL32
14469 #include <sys/procfs.h>
14470 int
14471 main ()
14472 {
14473 lwpstatus_t avar; void* aref = (void*) &avar.pr_context
14474 ;
14475 return 0;
14476 }
14477 _ACEOF
14478 if ac_fn_c_try_compile "$LINENO"; then :
14479 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=yes
14480 else
14481 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=no
14482
14483 fi
14484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14485 fi
14486
14487 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context = yes; then
14488
14489 $as_echo "#define HAVE_LWPSTATUS_T_PR_CONTEXT 1" >>confdefs.h
14490
14491 fi
14492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&5
14493 $as_echo "$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&6; }
14494
14495
14496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpstatus_t.pr_reg in sys/procfs.h" >&5
14497 $as_echo_n "checking for lwpstatus_t.pr_reg in sys/procfs.h... " >&6; }
14498 if ${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg+:} false; then :
14499 $as_echo_n "(cached) " >&6
14500 else
14501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14502 /* end confdefs.h. */
14503
14504 #define _SYSCALL32
14505 #include <sys/procfs.h>
14506 int
14507 main ()
14508 {
14509 lwpstatus_t avar; void* aref = (void*) &avar.pr_reg
14510 ;
14511 return 0;
14512 }
14513 _ACEOF
14514 if ac_fn_c_try_compile "$LINENO"; then :
14515 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=yes
14516 else
14517 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=no
14518
14519 fi
14520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14521 fi
14522
14523 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg = yes; then
14524
14525 $as_echo "#define HAVE_LWPSTATUS_T_PR_REG 1" >>confdefs.h
14526
14527 fi
14528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&5
14529 $as_echo "$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&6; }
14530
14531
14532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpstatus_t.pr_fpreg in sys/procfs.h" >&5
14533 $as_echo_n "checking for lwpstatus_t.pr_fpreg in sys/procfs.h... " >&6; }
14534 if ${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_fpreg+:} false; then :
14535 $as_echo_n "(cached) " >&6
14536 else
14537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14538 /* end confdefs.h. */
14539
14540 #define _SYSCALL32
14541 #include <sys/procfs.h>
14542 int
14543 main ()
14544 {
14545 lwpstatus_t avar; void* aref = (void*) &avar.pr_fpreg
14546 ;
14547 return 0;
14548 }
14549 _ACEOF
14550 if ac_fn_c_try_compile "$LINENO"; then :
14551 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_fpreg=yes
14552 else
14553 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_fpreg=no
14554
14555 fi
14556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14557 fi
14558
14559 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_fpreg = yes; then
14560
14561 $as_echo "#define HAVE_LWPSTATUS_T_PR_FPREG 1" >>confdefs.h
14562
14563 fi
14564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_fpreg" >&5
14565 $as_echo "$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_fpreg" >&6; }
14566
14567
14568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for win32_pstatus_t in sys/procfs.h" >&5
14569 $as_echo_n "checking for win32_pstatus_t in sys/procfs.h... " >&6; }
14570 if ${bfd_cv_have_sys_procfs_type_win32_pstatus_t+:} false; then :
14571 $as_echo_n "(cached) " >&6
14572 else
14573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14574 /* end confdefs.h. */
14575
14576 #define _SYSCALL32
14577 #include <sys/procfs.h>
14578 int
14579 main ()
14580 {
14581 win32_pstatus_t avar
14582 ;
14583 return 0;
14584 }
14585 _ACEOF
14586 if ac_fn_c_try_compile "$LINENO"; then :
14587 bfd_cv_have_sys_procfs_type_win32_pstatus_t=yes
14588 else
14589 bfd_cv_have_sys_procfs_type_win32_pstatus_t=no
14590
14591 fi
14592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14593 fi
14594
14595 if test $bfd_cv_have_sys_procfs_type_win32_pstatus_t = yes; then
14596
14597 $as_echo "#define HAVE_WIN32_PSTATUS_T 1" >>confdefs.h
14598
14599 fi
14600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&5
14601 $as_echo "$bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&6; }
14602
14603 fi
14604 fi
14605
14606
14607 if test -n "$CORE_HEADER"; then
14608
14609 cat >>confdefs.h <<_ACEOF
14610 #define CORE_HEADER $CORE_HEADER
14611 _ACEOF
14612
14613 fi
14614 if test -n "$TRAD_HEADER"; then
14615
14616 cat >>confdefs.h <<_ACEOF
14617 #define TRAD_HEADER $TRAD_HEADER
14618 _ACEOF
14619
14620 fi
14621
14622 if test "$plugins" = "yes"; then
14623 supports_plugins=1
14624 else
14625 supports_plugins=0
14626 fi
14627
14628
14629
14630 # Determine the host dependent file_ptr a.k.a. off_t type. In order
14631 # prefer: off64_t - if ftello64 and fseeko64, off_t - if ftello and
14632 # fseeko, long. This assumes that sizeof off_t is .ge. sizeof long.
14633 # Hopefully a reasonable assumption since fseeko et.al. should be
14634 # upward compatible.
14635 for ac_func in ftello ftello64 fseeko fseeko64 fopen64
14636 do :
14637 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14638 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14639 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14640 cat >>confdefs.h <<_ACEOF
14641 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14642 _ACEOF
14643
14644 fi
14645 done
14646
14647 ac_fn_c_check_decl "$LINENO" "ftello" "ac_cv_have_decl_ftello" "$ac_includes_default"
14648 if test "x$ac_cv_have_decl_ftello" = xyes; then :
14649 ac_have_decl=1
14650 else
14651 ac_have_decl=0
14652 fi
14653
14654 cat >>confdefs.h <<_ACEOF
14655 #define HAVE_DECL_FTELLO $ac_have_decl
14656 _ACEOF
14657 ac_fn_c_check_decl "$LINENO" "ftello64" "ac_cv_have_decl_ftello64" "$ac_includes_default"
14658 if test "x$ac_cv_have_decl_ftello64" = xyes; then :
14659 ac_have_decl=1
14660 else
14661 ac_have_decl=0
14662 fi
14663
14664 cat >>confdefs.h <<_ACEOF
14665 #define HAVE_DECL_FTELLO64 $ac_have_decl
14666 _ACEOF
14667 ac_fn_c_check_decl "$LINENO" "fseeko" "ac_cv_have_decl_fseeko" "$ac_includes_default"
14668 if test "x$ac_cv_have_decl_fseeko" = xyes; then :
14669 ac_have_decl=1
14670 else
14671 ac_have_decl=0
14672 fi
14673
14674 cat >>confdefs.h <<_ACEOF
14675 #define HAVE_DECL_FSEEKO $ac_have_decl
14676 _ACEOF
14677 ac_fn_c_check_decl "$LINENO" "fseeko64" "ac_cv_have_decl_fseeko64" "$ac_includes_default"
14678 if test "x$ac_cv_have_decl_fseeko64" = xyes; then :
14679 ac_have_decl=1
14680 else
14681 ac_have_decl=0
14682 fi
14683
14684 cat >>confdefs.h <<_ACEOF
14685 #define HAVE_DECL_FSEEKO64 $ac_have_decl
14686 _ACEOF
14687 ac_fn_c_check_decl "$LINENO" "fopen64" "ac_cv_have_decl_fopen64" "$ac_includes_default"
14688 if test "x$ac_cv_have_decl_fopen64" = xyes; then :
14689 ac_have_decl=1
14690 else
14691 ac_have_decl=0
14692 fi
14693
14694 cat >>confdefs.h <<_ACEOF
14695 #define HAVE_DECL_FOPEN64 $ac_have_decl
14696 _ACEOF
14697
14698 if test x"$ac_cv_func_ftello" = xyes -a x"$ac_cv_func_fseeko" = xyes; then
14699 # The cast to long int works around a bug in the HP C Compiler
14700 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14701 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14702 # This bug is HP SR number 8606223364.
14703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
14704 $as_echo_n "checking size of off_t... " >&6; }
14705 if ${ac_cv_sizeof_off_t+:} false; then :
14706 $as_echo_n "(cached) " >&6
14707 else
14708 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
14709
14710 else
14711 if test "$ac_cv_type_off_t" = yes; then
14712 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14713 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14714 as_fn_error 77 "cannot compute sizeof (off_t)
14715 See \`config.log' for more details" "$LINENO" 5; }
14716 else
14717 ac_cv_sizeof_off_t=0
14718 fi
14719 fi
14720
14721 fi
14722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
14723 $as_echo "$ac_cv_sizeof_off_t" >&6; }
14724
14725
14726
14727 cat >>confdefs.h <<_ACEOF
14728 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
14729 _ACEOF
14730
14731
14732 fi
14733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking file_ptr type" >&5
14734 $as_echo_n "checking file_ptr type... " >&6; }
14735 bfd_file_ptr="long"
14736 bfd_ufile_ptr="unsigned long"
14737 if test x"$ac_cv_func_ftello64" = xyes -a x"$ac_cv_func_fseeko64" = xyes \
14738 -o x"${ac_cv_sizeof_off_t}" = x8; then
14739 bfd_file_ptr=BFD_HOST_64_BIT
14740 bfd_ufile_ptr=BFD_HOST_U_64_BIT
14741 fi
14742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_file_ptr" >&5
14743 $as_echo "$bfd_file_ptr" >&6; }
14744
14745
14746
14747
14748
14749
14750 for ac_header in $ac_header_list
14751 do :
14752 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14753 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
14754 "
14755 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14756 cat >>confdefs.h <<_ACEOF
14757 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14758 _ACEOF
14759
14760 fi
14761
14762 done
14763
14764
14765
14766
14767
14768
14769
14770
14771 for ac_func in getpagesize
14772 do :
14773 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
14774 if test "x$ac_cv_func_getpagesize" = xyes; then :
14775 cat >>confdefs.h <<_ACEOF
14776 #define HAVE_GETPAGESIZE 1
14777 _ACEOF
14778
14779 fi
14780 done
14781
14782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
14783 $as_echo_n "checking for working mmap... " >&6; }
14784 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
14785 $as_echo_n "(cached) " >&6
14786 else
14787 if test "$cross_compiling" = yes; then :
14788 ac_cv_func_mmap_fixed_mapped=no
14789 else
14790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14791 /* end confdefs.h. */
14792 $ac_includes_default
14793 /* malloc might have been renamed as rpl_malloc. */
14794 #undef malloc
14795
14796 /* Thanks to Mike Haertel and Jim Avera for this test.
14797 Here is a matrix of mmap possibilities:
14798 mmap private not fixed
14799 mmap private fixed at somewhere currently unmapped
14800 mmap private fixed at somewhere already mapped
14801 mmap shared not fixed
14802 mmap shared fixed at somewhere currently unmapped
14803 mmap shared fixed at somewhere already mapped
14804 For private mappings, we should verify that changes cannot be read()
14805 back from the file, nor mmap's back from the file at a different
14806 address. (There have been systems where private was not correctly
14807 implemented like the infamous i386 svr4.0, and systems where the
14808 VM page cache was not coherent with the file system buffer cache
14809 like early versions of FreeBSD and possibly contemporary NetBSD.)
14810 For shared mappings, we should conversely verify that changes get
14811 propagated back to all the places they're supposed to be.
14812
14813 Grep wants private fixed already mapped.
14814 The main things grep needs to know about mmap are:
14815 * does it exist and is it safe to write into the mmap'd area
14816 * how to use it (BSD variants) */
14817
14818 #include <fcntl.h>
14819 #include <sys/mman.h>
14820
14821 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
14822 char *malloc ();
14823 #endif
14824
14825 /* This mess was copied from the GNU getpagesize.h. */
14826 #ifndef HAVE_GETPAGESIZE
14827 # ifdef _SC_PAGESIZE
14828 # define getpagesize() sysconf(_SC_PAGESIZE)
14829 # else /* no _SC_PAGESIZE */
14830 # ifdef HAVE_SYS_PARAM_H
14831 # include <sys/param.h>
14832 # ifdef EXEC_PAGESIZE
14833 # define getpagesize() EXEC_PAGESIZE
14834 # else /* no EXEC_PAGESIZE */
14835 # ifdef NBPG
14836 # define getpagesize() NBPG * CLSIZE
14837 # ifndef CLSIZE
14838 # define CLSIZE 1
14839 # endif /* no CLSIZE */
14840 # else /* no NBPG */
14841 # ifdef NBPC
14842 # define getpagesize() NBPC
14843 # else /* no NBPC */
14844 # ifdef PAGESIZE
14845 # define getpagesize() PAGESIZE
14846 # endif /* PAGESIZE */
14847 # endif /* no NBPC */
14848 # endif /* no NBPG */
14849 # endif /* no EXEC_PAGESIZE */
14850 # else /* no HAVE_SYS_PARAM_H */
14851 # define getpagesize() 8192 /* punt totally */
14852 # endif /* no HAVE_SYS_PARAM_H */
14853 # endif /* no _SC_PAGESIZE */
14854
14855 #endif /* no HAVE_GETPAGESIZE */
14856
14857 int
14858 main ()
14859 {
14860 char *data, *data2, *data3;
14861 const char *cdata2;
14862 int i, pagesize;
14863 int fd, fd2;
14864
14865 pagesize = getpagesize ();
14866
14867 /* First, make a file with some known garbage in it. */
14868 data = (char *) malloc (pagesize);
14869 if (!data)
14870 return 1;
14871 for (i = 0; i < pagesize; ++i)
14872 *(data + i) = rand ();
14873 umask (0);
14874 fd = creat ("conftest.mmap", 0600);
14875 if (fd < 0)
14876 return 2;
14877 if (write (fd, data, pagesize) != pagesize)
14878 return 3;
14879 close (fd);
14880
14881 /* Next, check that the tail of a page is zero-filled. File must have
14882 non-zero length, otherwise we risk SIGBUS for entire page. */
14883 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
14884 if (fd2 < 0)
14885 return 4;
14886 cdata2 = "";
14887 if (write (fd2, cdata2, 1) != 1)
14888 return 5;
14889 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
14890 if (data2 == MAP_FAILED)
14891 return 6;
14892 for (i = 0; i < pagesize; ++i)
14893 if (*(data2 + i))
14894 return 7;
14895 close (fd2);
14896 if (munmap (data2, pagesize))
14897 return 8;
14898
14899 /* Next, try to mmap the file at a fixed address which already has
14900 something else allocated at it. If we can, also make sure that
14901 we see the same garbage. */
14902 fd = open ("conftest.mmap", O_RDWR);
14903 if (fd < 0)
14904 return 9;
14905 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
14906 MAP_PRIVATE | MAP_FIXED, fd, 0L))
14907 return 10;
14908 for (i = 0; i < pagesize; ++i)
14909 if (*(data + i) != *(data2 + i))
14910 return 11;
14911
14912 /* Finally, make sure that changes to the mapped area do not
14913 percolate back to the file as seen by read(). (This is a bug on
14914 some variants of i386 svr4.0.) */
14915 for (i = 0; i < pagesize; ++i)
14916 *(data2 + i) = *(data2 + i) + 1;
14917 data3 = (char *) malloc (pagesize);
14918 if (!data3)
14919 return 12;
14920 if (read (fd, data3, pagesize) != pagesize)
14921 return 13;
14922 for (i = 0; i < pagesize; ++i)
14923 if (*(data + i) != *(data3 + i))
14924 return 14;
14925 close (fd);
14926 return 0;
14927 }
14928 _ACEOF
14929 if ac_fn_c_try_run "$LINENO"; then :
14930 ac_cv_func_mmap_fixed_mapped=yes
14931 else
14932 ac_cv_func_mmap_fixed_mapped=no
14933 fi
14934 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14935 conftest.$ac_objext conftest.beam conftest.$ac_ext
14936 fi
14937
14938 fi
14939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
14940 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
14941 if test $ac_cv_func_mmap_fixed_mapped = yes; then
14942
14943 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
14944
14945 fi
14946 rm -f conftest.mmap conftest.txt
14947
14948 for ac_func in madvise mprotect
14949 do :
14950 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14951 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14952 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14953 cat >>confdefs.h <<_ACEOF
14954 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14955 _ACEOF
14956
14957 fi
14958 done
14959
14960 case ${want_mmap}+${ac_cv_func_mmap_fixed_mapped} in
14961 true+yes )
14962 $as_echo "#define USE_MMAP 1" >>confdefs.h
14963 ;;
14964 esac
14965
14966 rm -f doc/config.status
14967 ac_config_files="$ac_config_files Makefile doc/Makefile bfd-in3.h:bfd-in2.h po/Makefile.in:po/Make-in"
14968
14969
14970 ac_config_commands="$ac_config_commands default"
14971
14972
14973
14974
14975
14976
14977
14978 cat >confcache <<\_ACEOF
14979 # This file is a shell script that caches the results of configure
14980 # tests run on this system so they can be shared between configure
14981 # scripts and configure runs, see configure's option --config-cache.
14982 # It is not useful on other systems. If it contains results you don't
14983 # want to keep, you may remove or edit it.
14984 #
14985 # config.status only pays attention to the cache file if you give it
14986 # the --recheck option to rerun configure.
14987 #
14988 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14989 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14990 # following values.
14991
14992 _ACEOF
14993
14994 # The following way of writing the cache mishandles newlines in values,
14995 # but we know of no workaround that is simple, portable, and efficient.
14996 # So, we kill variables containing newlines.
14997 # Ultrix sh set writes to stderr and can't be redirected directly,
14998 # and sets the high bit in the cache file unless we assign to the vars.
14999 (
15000 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15001 eval ac_val=\$$ac_var
15002 case $ac_val in #(
15003 *${as_nl}*)
15004 case $ac_var in #(
15005 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15006 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15007 esac
15008 case $ac_var in #(
15009 _ | IFS | as_nl) ;; #(
15010 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15011 *) { eval $ac_var=; unset $ac_var;} ;;
15012 esac ;;
15013 esac
15014 done
15015
15016 (set) 2>&1 |
15017 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15018 *${as_nl}ac_space=\ *)
15019 # `set' does not quote correctly, so add quotes: double-quote
15020 # substitution turns \\\\ into \\, and sed turns \\ into \.
15021 sed -n \
15022 "s/'/'\\\\''/g;
15023 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15024 ;; #(
15025 *)
15026 # `set' quotes correctly as required by POSIX, so do not add quotes.
15027 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15028 ;;
15029 esac |
15030 sort
15031 ) |
15032 sed '
15033 /^ac_cv_env_/b end
15034 t clear
15035 :clear
15036 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15037 t end
15038 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15039 :end' >>confcache
15040 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15041 if test -w "$cache_file"; then
15042 if test "x$cache_file" != "x/dev/null"; then
15043 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15044 $as_echo "$as_me: updating cache $cache_file" >&6;}
15045 if test ! -f "$cache_file" || test -h "$cache_file"; then
15046 cat confcache >"$cache_file"
15047 else
15048 case $cache_file in #(
15049 */* | ?:*)
15050 mv -f confcache "$cache_file"$$ &&
15051 mv -f "$cache_file"$$ "$cache_file" ;; #(
15052 *)
15053 mv -f confcache "$cache_file" ;;
15054 esac
15055 fi
15056 fi
15057 else
15058 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15059 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15060 fi
15061 fi
15062 rm -f confcache
15063
15064 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15065 # Let make expand exec_prefix.
15066 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15067
15068 DEFS=-DHAVE_CONFIG_H
15069
15070 ac_libobjs=
15071 ac_ltlibobjs=
15072 U=
15073 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15074 # 1. Remove the extension, and $U if already installed.
15075 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15076 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15077 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15078 # will be set to the directory where LIBOBJS objects are built.
15079 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15080 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15081 done
15082 LIBOBJS=$ac_libobjs
15083
15084 LTLIBOBJS=$ac_ltlibobjs
15085
15086
15087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15088 $as_echo_n "checking that generated files are newer than configure... " >&6; }
15089 if test -n "$am_sleep_pid"; then
15090 # Hide warnings about reused PIDs.
15091 wait $am_sleep_pid 2>/dev/null
15092 fi
15093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15094 $as_echo "done" >&6; }
15095 if test -n "$EXEEXT"; then
15096 am__EXEEXT_TRUE=
15097 am__EXEEXT_FALSE='#'
15098 else
15099 am__EXEEXT_TRUE='#'
15100 am__EXEEXT_FALSE=
15101 fi
15102
15103 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15104 as_fn_error $? "conditional \"AMDEP\" was never defined.
15105 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15106 fi
15107 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15108 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15109 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15110 fi
15111 if test -z "${PLUGINS_TRUE}" && test -z "${PLUGINS_FALSE}"; then
15112 as_fn_error $? "conditional \"PLUGINS\" was never defined.
15113 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15114 fi
15115 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15116 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
15117 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15118 fi
15119 if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
15120 as_fn_error $? "conditional \"GENINSRC_NEVER\" was never defined.
15121 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15122 fi
15123 if test -z "${INSTALL_LIBBFD_TRUE}" && test -z "${INSTALL_LIBBFD_FALSE}"; then
15124 as_fn_error $? "conditional \"INSTALL_LIBBFD\" was never defined.
15125 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15126 fi
15127
15128 : "${CONFIG_STATUS=./config.status}"
15129 ac_write_fail=0
15130 ac_clean_files_save=$ac_clean_files
15131 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15132 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15133 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15134 as_write_fail=0
15135 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15136 #! $SHELL
15137 # Generated by $as_me.
15138 # Run this file to recreate the current configuration.
15139 # Compiler output produced by configure, useful for debugging
15140 # configure, is in config.log if it exists.
15141
15142 debug=false
15143 ac_cs_recheck=false
15144 ac_cs_silent=false
15145
15146 SHELL=\${CONFIG_SHELL-$SHELL}
15147 export SHELL
15148 _ASEOF
15149 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15150 ## -------------------- ##
15151 ## M4sh Initialization. ##
15152 ## -------------------- ##
15153
15154 # Be more Bourne compatible
15155 DUALCASE=1; export DUALCASE # for MKS sh
15156 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15157 emulate sh
15158 NULLCMD=:
15159 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15160 # is contrary to our usage. Disable this feature.
15161 alias -g '${1+"$@"}'='"$@"'
15162 setopt NO_GLOB_SUBST
15163 else
15164 case `(set -o) 2>/dev/null` in #(
15165 *posix*) :
15166 set -o posix ;; #(
15167 *) :
15168 ;;
15169 esac
15170 fi
15171
15172
15173 as_nl='
15174 '
15175 export as_nl
15176 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15177 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15178 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15179 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15180 # Prefer a ksh shell builtin over an external printf program on Solaris,
15181 # but without wasting forks for bash or zsh.
15182 if test -z "$BASH_VERSION$ZSH_VERSION" \
15183 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15184 as_echo='print -r --'
15185 as_echo_n='print -rn --'
15186 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15187 as_echo='printf %s\n'
15188 as_echo_n='printf %s'
15189 else
15190 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15191 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15192 as_echo_n='/usr/ucb/echo -n'
15193 else
15194 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15195 as_echo_n_body='eval
15196 arg=$1;
15197 case $arg in #(
15198 *"$as_nl"*)
15199 expr "X$arg" : "X\\(.*\\)$as_nl";
15200 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15201 esac;
15202 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15203 '
15204 export as_echo_n_body
15205 as_echo_n='sh -c $as_echo_n_body as_echo'
15206 fi
15207 export as_echo_body
15208 as_echo='sh -c $as_echo_body as_echo'
15209 fi
15210
15211 # The user is always right.
15212 if test "${PATH_SEPARATOR+set}" != set; then
15213 PATH_SEPARATOR=:
15214 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15215 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15216 PATH_SEPARATOR=';'
15217 }
15218 fi
15219
15220
15221 # IFS
15222 # We need space, tab and new line, in precisely that order. Quoting is
15223 # there to prevent editors from complaining about space-tab.
15224 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15225 # splitting by setting IFS to empty value.)
15226 IFS=" "" $as_nl"
15227
15228 # Find who we are. Look in the path if we contain no directory separator.
15229 as_myself=
15230 case $0 in #((
15231 *[\\/]* ) as_myself=$0 ;;
15232 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15233 for as_dir in $PATH
15234 do
15235 IFS=$as_save_IFS
15236 test -z "$as_dir" && as_dir=.
15237 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15238 done
15239 IFS=$as_save_IFS
15240
15241 ;;
15242 esac
15243 # We did not find ourselves, most probably we were run as `sh COMMAND'
15244 # in which case we are not to be found in the path.
15245 if test "x$as_myself" = x; then
15246 as_myself=$0
15247 fi
15248 if test ! -f "$as_myself"; then
15249 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15250 exit 1
15251 fi
15252
15253 # Unset variables that we do not need and which cause bugs (e.g. in
15254 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15255 # suppresses any "Segmentation fault" message there. '((' could
15256 # trigger a bug in pdksh 5.2.14.
15257 for as_var in BASH_ENV ENV MAIL MAILPATH
15258 do eval test x\${$as_var+set} = xset \
15259 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15260 done
15261 PS1='$ '
15262 PS2='> '
15263 PS4='+ '
15264
15265 # NLS nuisances.
15266 LC_ALL=C
15267 export LC_ALL
15268 LANGUAGE=C
15269 export LANGUAGE
15270
15271 # CDPATH.
15272 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15273
15274
15275 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15276 # ----------------------------------------
15277 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15278 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15279 # script with STATUS, using 1 if that was 0.
15280 as_fn_error ()
15281 {
15282 as_status=$1; test $as_status -eq 0 && as_status=1
15283 if test "$4"; then
15284 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15285 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15286 fi
15287 $as_echo "$as_me: error: $2" >&2
15288 as_fn_exit $as_status
15289 } # as_fn_error
15290
15291
15292 # as_fn_set_status STATUS
15293 # -----------------------
15294 # Set $? to STATUS, without forking.
15295 as_fn_set_status ()
15296 {
15297 return $1
15298 } # as_fn_set_status
15299
15300 # as_fn_exit STATUS
15301 # -----------------
15302 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15303 as_fn_exit ()
15304 {
15305 set +e
15306 as_fn_set_status $1
15307 exit $1
15308 } # as_fn_exit
15309
15310 # as_fn_unset VAR
15311 # ---------------
15312 # Portably unset VAR.
15313 as_fn_unset ()
15314 {
15315 { eval $1=; unset $1;}
15316 }
15317 as_unset=as_fn_unset
15318 # as_fn_append VAR VALUE
15319 # ----------------------
15320 # Append the text in VALUE to the end of the definition contained in VAR. Take
15321 # advantage of any shell optimizations that allow amortized linear growth over
15322 # repeated appends, instead of the typical quadratic growth present in naive
15323 # implementations.
15324 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15325 eval 'as_fn_append ()
15326 {
15327 eval $1+=\$2
15328 }'
15329 else
15330 as_fn_append ()
15331 {
15332 eval $1=\$$1\$2
15333 }
15334 fi # as_fn_append
15335
15336 # as_fn_arith ARG...
15337 # ------------------
15338 # Perform arithmetic evaluation on the ARGs, and store the result in the
15339 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15340 # must be portable across $(()) and expr.
15341 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15342 eval 'as_fn_arith ()
15343 {
15344 as_val=$(( $* ))
15345 }'
15346 else
15347 as_fn_arith ()
15348 {
15349 as_val=`expr "$@" || test $? -eq 1`
15350 }
15351 fi # as_fn_arith
15352
15353
15354 if expr a : '\(a\)' >/dev/null 2>&1 &&
15355 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15356 as_expr=expr
15357 else
15358 as_expr=false
15359 fi
15360
15361 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15362 as_basename=basename
15363 else
15364 as_basename=false
15365 fi
15366
15367 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15368 as_dirname=dirname
15369 else
15370 as_dirname=false
15371 fi
15372
15373 as_me=`$as_basename -- "$0" ||
15374 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15375 X"$0" : 'X\(//\)$' \| \
15376 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15377 $as_echo X/"$0" |
15378 sed '/^.*\/\([^/][^/]*\)\/*$/{
15379 s//\1/
15380 q
15381 }
15382 /^X\/\(\/\/\)$/{
15383 s//\1/
15384 q
15385 }
15386 /^X\/\(\/\).*/{
15387 s//\1/
15388 q
15389 }
15390 s/.*/./; q'`
15391
15392 # Avoid depending upon Character Ranges.
15393 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15394 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15395 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15396 as_cr_digits='0123456789'
15397 as_cr_alnum=$as_cr_Letters$as_cr_digits
15398
15399 ECHO_C= ECHO_N= ECHO_T=
15400 case `echo -n x` in #(((((
15401 -n*)
15402 case `echo 'xy\c'` in
15403 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15404 xy) ECHO_C='\c';;
15405 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15406 ECHO_T=' ';;
15407 esac;;
15408 *)
15409 ECHO_N='-n';;
15410 esac
15411
15412 rm -f conf$$ conf$$.exe conf$$.file
15413 if test -d conf$$.dir; then
15414 rm -f conf$$.dir/conf$$.file
15415 else
15416 rm -f conf$$.dir
15417 mkdir conf$$.dir 2>/dev/null
15418 fi
15419 if (echo >conf$$.file) 2>/dev/null; then
15420 if ln -s conf$$.file conf$$ 2>/dev/null; then
15421 as_ln_s='ln -s'
15422 # ... but there are two gotchas:
15423 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15424 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15425 # In both cases, we have to default to `cp -pR'.
15426 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15427 as_ln_s='cp -pR'
15428 elif ln conf$$.file conf$$ 2>/dev/null; then
15429 as_ln_s=ln
15430 else
15431 as_ln_s='cp -pR'
15432 fi
15433 else
15434 as_ln_s='cp -pR'
15435 fi
15436 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15437 rmdir conf$$.dir 2>/dev/null
15438
15439
15440 # as_fn_mkdir_p
15441 # -------------
15442 # Create "$as_dir" as a directory, including parents if necessary.
15443 as_fn_mkdir_p ()
15444 {
15445
15446 case $as_dir in #(
15447 -*) as_dir=./$as_dir;;
15448 esac
15449 test -d "$as_dir" || eval $as_mkdir_p || {
15450 as_dirs=
15451 while :; do
15452 case $as_dir in #(
15453 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15454 *) as_qdir=$as_dir;;
15455 esac
15456 as_dirs="'$as_qdir' $as_dirs"
15457 as_dir=`$as_dirname -- "$as_dir" ||
15458 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15459 X"$as_dir" : 'X\(//\)[^/]' \| \
15460 X"$as_dir" : 'X\(//\)$' \| \
15461 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15462 $as_echo X"$as_dir" |
15463 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15464 s//\1/
15465 q
15466 }
15467 /^X\(\/\/\)[^/].*/{
15468 s//\1/
15469 q
15470 }
15471 /^X\(\/\/\)$/{
15472 s//\1/
15473 q
15474 }
15475 /^X\(\/\).*/{
15476 s//\1/
15477 q
15478 }
15479 s/.*/./; q'`
15480 test -d "$as_dir" && break
15481 done
15482 test -z "$as_dirs" || eval "mkdir $as_dirs"
15483 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15484
15485
15486 } # as_fn_mkdir_p
15487 if mkdir -p . 2>/dev/null; then
15488 as_mkdir_p='mkdir -p "$as_dir"'
15489 else
15490 test -d ./-p && rmdir ./-p
15491 as_mkdir_p=false
15492 fi
15493
15494
15495 # as_fn_executable_p FILE
15496 # -----------------------
15497 # Test if FILE is an executable regular file.
15498 as_fn_executable_p ()
15499 {
15500 test -f "$1" && test -x "$1"
15501 } # as_fn_executable_p
15502 as_test_x='test -x'
15503 as_executable_p=as_fn_executable_p
15504
15505 # Sed expression to map a string onto a valid CPP name.
15506 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15507
15508 # Sed expression to map a string onto a valid variable name.
15509 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15510
15511
15512 exec 6>&1
15513 ## ----------------------------------- ##
15514 ## Main body of $CONFIG_STATUS script. ##
15515 ## ----------------------------------- ##
15516 _ASEOF
15517 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15518
15519 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15520 # Save the log message, to keep $0 and so on meaningful, and to
15521 # report actual input values of CONFIG_FILES etc. instead of their
15522 # values after options handling.
15523 ac_log="
15524 This file was extended by bfd $as_me 2.36.50, which was
15525 generated by GNU Autoconf 2.69. Invocation command line was
15526
15527 CONFIG_FILES = $CONFIG_FILES
15528 CONFIG_HEADERS = $CONFIG_HEADERS
15529 CONFIG_LINKS = $CONFIG_LINKS
15530 CONFIG_COMMANDS = $CONFIG_COMMANDS
15531 $ $0 $@
15532
15533 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15534 "
15535
15536 _ACEOF
15537
15538 case $ac_config_files in *"
15539 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15540 esac
15541
15542 case $ac_config_headers in *"
15543 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15544 esac
15545
15546
15547 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15548 # Files that config.status was made for.
15549 config_files="$ac_config_files"
15550 config_headers="$ac_config_headers"
15551 config_commands="$ac_config_commands"
15552
15553 _ACEOF
15554
15555 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15556 ac_cs_usage="\
15557 \`$as_me' instantiates files and other configuration actions
15558 from templates according to the current configuration. Unless the files
15559 and actions are specified as TAGs, all are instantiated by default.
15560
15561 Usage: $0 [OPTION]... [TAG]...
15562
15563 -h, --help print this help, then exit
15564 -V, --version print version number and configuration settings, then exit
15565 --config print configuration, then exit
15566 -q, --quiet, --silent
15567 do not print progress messages
15568 -d, --debug don't remove temporary files
15569 --recheck update $as_me by reconfiguring in the same conditions
15570 --file=FILE[:TEMPLATE]
15571 instantiate the configuration file FILE
15572 --header=FILE[:TEMPLATE]
15573 instantiate the configuration header FILE
15574
15575 Configuration files:
15576 $config_files
15577
15578 Configuration headers:
15579 $config_headers
15580
15581 Configuration commands:
15582 $config_commands
15583
15584 Report bugs to the package provider."
15585
15586 _ACEOF
15587 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15588 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15589 ac_cs_version="\\
15590 bfd config.status 2.36.50
15591 configured by $0, generated by GNU Autoconf 2.69,
15592 with options \\"\$ac_cs_config\\"
15593
15594 Copyright (C) 2012 Free Software Foundation, Inc.
15595 This config.status script is free software; the Free Software Foundation
15596 gives unlimited permission to copy, distribute and modify it."
15597
15598 ac_pwd='$ac_pwd'
15599 srcdir='$srcdir'
15600 INSTALL='$INSTALL'
15601 MKDIR_P='$MKDIR_P'
15602 AWK='$AWK'
15603 test -n "\$AWK" || AWK=awk
15604 _ACEOF
15605
15606 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15607 # The default lists apply if the user does not specify any file.
15608 ac_need_defaults=:
15609 while test $# != 0
15610 do
15611 case $1 in
15612 --*=?*)
15613 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15614 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15615 ac_shift=:
15616 ;;
15617 --*=)
15618 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15619 ac_optarg=
15620 ac_shift=:
15621 ;;
15622 *)
15623 ac_option=$1
15624 ac_optarg=$2
15625 ac_shift=shift
15626 ;;
15627 esac
15628
15629 case $ac_option in
15630 # Handling of the options.
15631 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15632 ac_cs_recheck=: ;;
15633 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15634 $as_echo "$ac_cs_version"; exit ;;
15635 --config | --confi | --conf | --con | --co | --c )
15636 $as_echo "$ac_cs_config"; exit ;;
15637 --debug | --debu | --deb | --de | --d | -d )
15638 debug=: ;;
15639 --file | --fil | --fi | --f )
15640 $ac_shift
15641 case $ac_optarg in
15642 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15643 '') as_fn_error $? "missing file argument" ;;
15644 esac
15645 as_fn_append CONFIG_FILES " '$ac_optarg'"
15646 ac_need_defaults=false;;
15647 --header | --heade | --head | --hea )
15648 $ac_shift
15649 case $ac_optarg in
15650 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15651 esac
15652 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15653 ac_need_defaults=false;;
15654 --he | --h)
15655 # Conflict between --help and --header
15656 as_fn_error $? "ambiguous option: \`$1'
15657 Try \`$0 --help' for more information.";;
15658 --help | --hel | -h )
15659 $as_echo "$ac_cs_usage"; exit ;;
15660 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15661 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15662 ac_cs_silent=: ;;
15663
15664 # This is an error.
15665 -*) as_fn_error $? "unrecognized option: \`$1'
15666 Try \`$0 --help' for more information." ;;
15667
15668 *) as_fn_append ac_config_targets " $1"
15669 ac_need_defaults=false ;;
15670
15671 esac
15672 shift
15673 done
15674
15675 ac_configure_extra_args=
15676
15677 if $ac_cs_silent; then
15678 exec 6>/dev/null
15679 ac_configure_extra_args="$ac_configure_extra_args --silent"
15680 fi
15681
15682 _ACEOF
15683 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15684 if \$ac_cs_recheck; then
15685 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15686 shift
15687 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15688 CONFIG_SHELL='$SHELL'
15689 export CONFIG_SHELL
15690 exec "\$@"
15691 fi
15692
15693 _ACEOF
15694 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15695 exec 5>>config.log
15696 {
15697 echo
15698 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15699 ## Running $as_me. ##
15700 _ASBOX
15701 $as_echo "$ac_log"
15702 } >&5
15703
15704 _ACEOF
15705 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15706 #
15707 # INIT-COMMANDS
15708 #
15709 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15710
15711
15712 # The HP-UX ksh and POSIX shell print the target directory to stdout
15713 # if CDPATH is set.
15714 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15715
15716 sed_quote_subst='$sed_quote_subst'
15717 double_quote_subst='$double_quote_subst'
15718 delay_variable_subst='$delay_variable_subst'
15719 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15720 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15721 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15722 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15723 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15724 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15725 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15726 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15727 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15728 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15729 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15730 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15731 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15732 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15733 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15734 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15735 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15736 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15737 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15738 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15739 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15740 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15741 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15742 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15743 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15744 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15745 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15746 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15747 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15748 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15749 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15750 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15751 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15752 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15753 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15754 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15755 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15756 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15757 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15758 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15759 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15760 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15761 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15762 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15763 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15764 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15765 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15766 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15767 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"`'
15768 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15769 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15770 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15771 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15772 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15773 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15774 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15775 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15776 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15777 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15778 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15779 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15780 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15781 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15782 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15783 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15784 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15785 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15786 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15787 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15788 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15789 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15790 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15791 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15792 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15793 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15794 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15795 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15796 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15797 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15798 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15799 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
15800 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15801 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15802 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15803 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15804 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15805 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15806 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15807 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15808 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
15809 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15810 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15811 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15812 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15813 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15814 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15815 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15816 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15817 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15818 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15819 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15820 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15821 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15822 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15823 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15824 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15825 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15826 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15827 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15828 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15829 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15830 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15831 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15832 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15833 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15834 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15835 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15836 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15837 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15838 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15839
15840 LTCC='$LTCC'
15841 LTCFLAGS='$LTCFLAGS'
15842 compiler='$compiler_DEFAULT'
15843
15844 # A function that is used when there is no print builtin or printf.
15845 func_fallback_echo ()
15846 {
15847 eval 'cat <<_LTECHO_EOF
15848 \$1
15849 _LTECHO_EOF'
15850 }
15851
15852 # Quote evaled strings.
15853 for var in SHELL \
15854 ECHO \
15855 SED \
15856 GREP \
15857 EGREP \
15858 FGREP \
15859 LD \
15860 NM \
15861 LN_S \
15862 lt_SP2NL \
15863 lt_NL2SP \
15864 reload_flag \
15865 OBJDUMP \
15866 deplibs_check_method \
15867 file_magic_cmd \
15868 AR \
15869 AR_FLAGS \
15870 STRIP \
15871 RANLIB \
15872 CC \
15873 CFLAGS \
15874 compiler \
15875 lt_cv_sys_global_symbol_pipe \
15876 lt_cv_sys_global_symbol_to_cdecl \
15877 lt_cv_sys_global_symbol_to_c_name_address \
15878 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15879 lt_prog_compiler_no_builtin_flag \
15880 lt_prog_compiler_wl \
15881 lt_prog_compiler_pic \
15882 lt_prog_compiler_static \
15883 lt_cv_prog_compiler_c_o \
15884 need_locks \
15885 DSYMUTIL \
15886 NMEDIT \
15887 LIPO \
15888 OTOOL \
15889 OTOOL64 \
15890 shrext_cmds \
15891 export_dynamic_flag_spec \
15892 whole_archive_flag_spec \
15893 compiler_needs_object \
15894 with_gnu_ld \
15895 allow_undefined_flag \
15896 no_undefined_flag \
15897 hardcode_libdir_flag_spec \
15898 hardcode_libdir_flag_spec_ld \
15899 hardcode_libdir_separator \
15900 fix_srcfile_path \
15901 exclude_expsyms \
15902 include_expsyms \
15903 file_list_spec \
15904 variables_saved_for_relink \
15905 libname_spec \
15906 library_names_spec \
15907 soname_spec \
15908 install_override_mode \
15909 finish_eval \
15910 old_striplib \
15911 striplib; do
15912 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15913 *[\\\\\\\`\\"\\\$]*)
15914 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15915 ;;
15916 *)
15917 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15918 ;;
15919 esac
15920 done
15921
15922 # Double-quote double-evaled strings.
15923 for var in reload_cmds \
15924 old_postinstall_cmds \
15925 old_postuninstall_cmds \
15926 old_archive_cmds \
15927 extract_expsyms_cmds \
15928 old_archive_from_new_cmds \
15929 old_archive_from_expsyms_cmds \
15930 archive_cmds \
15931 archive_expsym_cmds \
15932 module_cmds \
15933 module_expsym_cmds \
15934 export_symbols_cmds \
15935 prelink_cmds \
15936 postinstall_cmds \
15937 postuninstall_cmds \
15938 finish_cmds \
15939 sys_lib_search_path_spec \
15940 sys_lib_dlsearch_path_spec; do
15941 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15942 *[\\\\\\\`\\"\\\$]*)
15943 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15944 ;;
15945 *)
15946 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15947 ;;
15948 esac
15949 done
15950
15951 ac_aux_dir='$ac_aux_dir'
15952 xsi_shell='$xsi_shell'
15953 lt_shell_append='$lt_shell_append'
15954
15955 # See if we are running on zsh, and set the options which allow our
15956 # commands through without removal of \ escapes INIT.
15957 if test -n "\${ZSH_VERSION+set}" ; then
15958 setopt NO_GLOB_SUBST
15959 fi
15960
15961
15962 PACKAGE='$PACKAGE'
15963 VERSION='$VERSION'
15964 TIMESTAMP='$TIMESTAMP'
15965 RM='$RM'
15966 ofile='$ofile'
15967
15968
15969
15970 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
15971 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
15972 # from automake.
15973 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
15974 # Capture the value of LINGUAS because we need it to compute CATALOGS.
15975 LINGUAS="${LINGUAS-%UNSET%}"
15976
15977
15978
15979 _ACEOF
15980
15981 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15982
15983 # Handling of arguments.
15984 for ac_config_target in $ac_config_targets
15985 do
15986 case $ac_config_target in
15987 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15988 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15989 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
15990 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
15991 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15992 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
15993 "bfd-in3.h") CONFIG_FILES="$CONFIG_FILES bfd-in3.h:bfd-in2.h" ;;
15994 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
15995 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
15996
15997 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15998 esac
15999 done
16000
16001
16002 # If the user did not use the arguments to specify the items to instantiate,
16003 # then the envvar interface is used. Set only those that are not.
16004 # We use the long form for the default assignment because of an extremely
16005 # bizarre bug on SunOS 4.1.3.
16006 if $ac_need_defaults; then
16007 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16008 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16009 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16010 fi
16011
16012 # Have a temporary directory for convenience. Make it in the build tree
16013 # simply because there is no reason against having it here, and in addition,
16014 # creating and moving files from /tmp can sometimes cause problems.
16015 # Hook for its removal unless debugging.
16016 # Note that there is a small window in which the directory will not be cleaned:
16017 # after its creation but before its name has been assigned to `$tmp'.
16018 $debug ||
16019 {
16020 tmp= ac_tmp=
16021 trap 'exit_status=$?
16022 : "${ac_tmp:=$tmp}"
16023 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16024 ' 0
16025 trap 'as_fn_exit 1' 1 2 13 15
16026 }
16027 # Create a (secure) tmp directory for tmp files.
16028
16029 {
16030 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16031 test -d "$tmp"
16032 } ||
16033 {
16034 tmp=./conf$$-$RANDOM
16035 (umask 077 && mkdir "$tmp")
16036 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16037 ac_tmp=$tmp
16038
16039 # Set up the scripts for CONFIG_FILES section.
16040 # No need to generate them if there are no CONFIG_FILES.
16041 # This happens for instance with `./config.status config.h'.
16042 if test -n "$CONFIG_FILES"; then
16043
16044
16045 ac_cr=`echo X | tr X '\015'`
16046 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16047 # But we know of no other shell where ac_cr would be empty at this
16048 # point, so we can use a bashism as a fallback.
16049 if test "x$ac_cr" = x; then
16050 eval ac_cr=\$\'\\r\'
16051 fi
16052 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16053 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16054 ac_cs_awk_cr='\\r'
16055 else
16056 ac_cs_awk_cr=$ac_cr
16057 fi
16058
16059 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16060 _ACEOF
16061
16062
16063 {
16064 echo "cat >conf$$subs.awk <<_ACEOF" &&
16065 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16066 echo "_ACEOF"
16067 } >conf$$subs.sh ||
16068 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16069 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16070 ac_delim='%!_!# '
16071 for ac_last_try in false false false false false :; do
16072 . ./conf$$subs.sh ||
16073 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16074
16075 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16076 if test $ac_delim_n = $ac_delim_num; then
16077 break
16078 elif $ac_last_try; then
16079 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16080 else
16081 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16082 fi
16083 done
16084 rm -f conf$$subs.sh
16085
16086 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16087 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16088 _ACEOF
16089 sed -n '
16090 h
16091 s/^/S["/; s/!.*/"]=/
16092 p
16093 g
16094 s/^[^!]*!//
16095 :repl
16096 t repl
16097 s/'"$ac_delim"'$//
16098 t delim
16099 :nl
16100 h
16101 s/\(.\{148\}\)..*/\1/
16102 t more1
16103 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16104 p
16105 n
16106 b repl
16107 :more1
16108 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16109 p
16110 g
16111 s/.\{148\}//
16112 t nl
16113 :delim
16114 h
16115 s/\(.\{148\}\)..*/\1/
16116 t more2
16117 s/["\\]/\\&/g; s/^/"/; s/$/"/
16118 p
16119 b
16120 :more2
16121 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16122 p
16123 g
16124 s/.\{148\}//
16125 t delim
16126 ' <conf$$subs.awk | sed '
16127 /^[^""]/{
16128 N
16129 s/\n//
16130 }
16131 ' >>$CONFIG_STATUS || ac_write_fail=1
16132 rm -f conf$$subs.awk
16133 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16134 _ACAWK
16135 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16136 for (key in S) S_is_set[key] = 1
16137 FS = "\a"
16138
16139 }
16140 {
16141 line = $ 0
16142 nfields = split(line, field, "@")
16143 substed = 0
16144 len = length(field[1])
16145 for (i = 2; i < nfields; i++) {
16146 key = field[i]
16147 keylen = length(key)
16148 if (S_is_set[key]) {
16149 value = S[key]
16150 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16151 len += length(value) + length(field[++i])
16152 substed = 1
16153 } else
16154 len += 1 + keylen
16155 }
16156
16157 print line
16158 }
16159
16160 _ACAWK
16161 _ACEOF
16162 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16163 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16164 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16165 else
16166 cat
16167 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16168 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16169 _ACEOF
16170
16171 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16172 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16173 # trailing colons and then remove the whole line if VPATH becomes empty
16174 # (actually we leave an empty line to preserve line numbers).
16175 if test "x$srcdir" = x.; then
16176 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16177 h
16178 s///
16179 s/^/:/
16180 s/[ ]*$/:/
16181 s/:\$(srcdir):/:/g
16182 s/:\${srcdir}:/:/g
16183 s/:@srcdir@:/:/g
16184 s/^:*//
16185 s/:*$//
16186 x
16187 s/\(=[ ]*\).*/\1/
16188 G
16189 s/\n//
16190 s/^[^=]*=[ ]*$//
16191 }'
16192 fi
16193
16194 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16195 fi # test -n "$CONFIG_FILES"
16196
16197 # Set up the scripts for CONFIG_HEADERS section.
16198 # No need to generate them if there are no CONFIG_HEADERS.
16199 # This happens for instance with `./config.status Makefile'.
16200 if test -n "$CONFIG_HEADERS"; then
16201 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16202 BEGIN {
16203 _ACEOF
16204
16205 # Transform confdefs.h into an awk script `defines.awk', embedded as
16206 # here-document in config.status, that substitutes the proper values into
16207 # config.h.in to produce config.h.
16208
16209 # Create a delimiter string that does not exist in confdefs.h, to ease
16210 # handling of long lines.
16211 ac_delim='%!_!# '
16212 for ac_last_try in false false :; do
16213 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16214 if test -z "$ac_tt"; then
16215 break
16216 elif $ac_last_try; then
16217 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16218 else
16219 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16220 fi
16221 done
16222
16223 # For the awk script, D is an array of macro values keyed by name,
16224 # likewise P contains macro parameters if any. Preserve backslash
16225 # newline sequences.
16226
16227 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16228 sed -n '
16229 s/.\{148\}/&'"$ac_delim"'/g
16230 t rset
16231 :rset
16232 s/^[ ]*#[ ]*define[ ][ ]*/ /
16233 t def
16234 d
16235 :def
16236 s/\\$//
16237 t bsnl
16238 s/["\\]/\\&/g
16239 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16240 D["\1"]=" \3"/p
16241 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16242 d
16243 :bsnl
16244 s/["\\]/\\&/g
16245 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16246 D["\1"]=" \3\\\\\\n"\\/p
16247 t cont
16248 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16249 t cont
16250 d
16251 :cont
16252 n
16253 s/.\{148\}/&'"$ac_delim"'/g
16254 t clear
16255 :clear
16256 s/\\$//
16257 t bsnlc
16258 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16259 d
16260 :bsnlc
16261 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16262 b cont
16263 ' <confdefs.h | sed '
16264 s/'"$ac_delim"'/"\\\
16265 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16266
16267 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16268 for (key in D) D_is_set[key] = 1
16269 FS = "\a"
16270 }
16271 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16272 line = \$ 0
16273 split(line, arg, " ")
16274 if (arg[1] == "#") {
16275 defundef = arg[2]
16276 mac1 = arg[3]
16277 } else {
16278 defundef = substr(arg[1], 2)
16279 mac1 = arg[2]
16280 }
16281 split(mac1, mac2, "(") #)
16282 macro = mac2[1]
16283 prefix = substr(line, 1, index(line, defundef) - 1)
16284 if (D_is_set[macro]) {
16285 # Preserve the white space surrounding the "#".
16286 print prefix "define", macro P[macro] D[macro]
16287 next
16288 } else {
16289 # Replace #undef with comments. This is necessary, for example,
16290 # in the case of _POSIX_SOURCE, which is predefined and required
16291 # on some systems where configure will not decide to define it.
16292 if (defundef == "undef") {
16293 print "/*", prefix defundef, macro, "*/"
16294 next
16295 }
16296 }
16297 }
16298 { print }
16299 _ACAWK
16300 _ACEOF
16301 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16302 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16303 fi # test -n "$CONFIG_HEADERS"
16304
16305
16306 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16307 shift
16308 for ac_tag
16309 do
16310 case $ac_tag in
16311 :[FHLC]) ac_mode=$ac_tag; continue;;
16312 esac
16313 case $ac_mode$ac_tag in
16314 :[FHL]*:*);;
16315 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16316 :[FH]-) ac_tag=-:-;;
16317 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16318 esac
16319 ac_save_IFS=$IFS
16320 IFS=:
16321 set x $ac_tag
16322 IFS=$ac_save_IFS
16323 shift
16324 ac_file=$1
16325 shift
16326
16327 case $ac_mode in
16328 :L) ac_source=$1;;
16329 :[FH])
16330 ac_file_inputs=
16331 for ac_f
16332 do
16333 case $ac_f in
16334 -) ac_f="$ac_tmp/stdin";;
16335 *) # Look for the file first in the build tree, then in the source tree
16336 # (if the path is not absolute). The absolute path cannot be DOS-style,
16337 # because $ac_f cannot contain `:'.
16338 test -f "$ac_f" ||
16339 case $ac_f in
16340 [\\/$]*) false;;
16341 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16342 esac ||
16343 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16344 esac
16345 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16346 as_fn_append ac_file_inputs " '$ac_f'"
16347 done
16348
16349 # Let's still pretend it is `configure' which instantiates (i.e., don't
16350 # use $as_me), people would be surprised to read:
16351 # /* config.h. Generated by config.status. */
16352 configure_input='Generated from '`
16353 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16354 `' by configure.'
16355 if test x"$ac_file" != x-; then
16356 configure_input="$ac_file. $configure_input"
16357 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16358 $as_echo "$as_me: creating $ac_file" >&6;}
16359 fi
16360 # Neutralize special characters interpreted by sed in replacement strings.
16361 case $configure_input in #(
16362 *\&* | *\|* | *\\* )
16363 ac_sed_conf_input=`$as_echo "$configure_input" |
16364 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16365 *) ac_sed_conf_input=$configure_input;;
16366 esac
16367
16368 case $ac_tag in
16369 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16370 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16371 esac
16372 ;;
16373 esac
16374
16375 ac_dir=`$as_dirname -- "$ac_file" ||
16376 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16377 X"$ac_file" : 'X\(//\)[^/]' \| \
16378 X"$ac_file" : 'X\(//\)$' \| \
16379 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16380 $as_echo X"$ac_file" |
16381 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16382 s//\1/
16383 q
16384 }
16385 /^X\(\/\/\)[^/].*/{
16386 s//\1/
16387 q
16388 }
16389 /^X\(\/\/\)$/{
16390 s//\1/
16391 q
16392 }
16393 /^X\(\/\).*/{
16394 s//\1/
16395 q
16396 }
16397 s/.*/./; q'`
16398 as_dir="$ac_dir"; as_fn_mkdir_p
16399 ac_builddir=.
16400
16401 case "$ac_dir" in
16402 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16403 *)
16404 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16405 # A ".." for each directory in $ac_dir_suffix.
16406 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16407 case $ac_top_builddir_sub in
16408 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16409 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16410 esac ;;
16411 esac
16412 ac_abs_top_builddir=$ac_pwd
16413 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16414 # for backward compatibility:
16415 ac_top_builddir=$ac_top_build_prefix
16416
16417 case $srcdir in
16418 .) # We are building in place.
16419 ac_srcdir=.
16420 ac_top_srcdir=$ac_top_builddir_sub
16421 ac_abs_top_srcdir=$ac_pwd ;;
16422 [\\/]* | ?:[\\/]* ) # Absolute name.
16423 ac_srcdir=$srcdir$ac_dir_suffix;
16424 ac_top_srcdir=$srcdir
16425 ac_abs_top_srcdir=$srcdir ;;
16426 *) # Relative name.
16427 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16428 ac_top_srcdir=$ac_top_build_prefix$srcdir
16429 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16430 esac
16431 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16432
16433
16434 case $ac_mode in
16435 :F)
16436 #
16437 # CONFIG_FILE
16438 #
16439
16440 case $INSTALL in
16441 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16442 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16443 esac
16444 ac_MKDIR_P=$MKDIR_P
16445 case $MKDIR_P in
16446 [\\/$]* | ?:[\\/]* ) ;;
16447 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16448 esac
16449 _ACEOF
16450
16451 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16452 # If the template does not know about datarootdir, expand it.
16453 # FIXME: This hack should be removed a few years after 2.60.
16454 ac_datarootdir_hack=; ac_datarootdir_seen=
16455 ac_sed_dataroot='
16456 /datarootdir/ {
16457 p
16458 q
16459 }
16460 /@datadir@/p
16461 /@docdir@/p
16462 /@infodir@/p
16463 /@localedir@/p
16464 /@mandir@/p'
16465 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16466 *datarootdir*) ac_datarootdir_seen=yes;;
16467 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16468 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16469 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16470 _ACEOF
16471 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16472 ac_datarootdir_hack='
16473 s&@datadir@&$datadir&g
16474 s&@docdir@&$docdir&g
16475 s&@infodir@&$infodir&g
16476 s&@localedir@&$localedir&g
16477 s&@mandir@&$mandir&g
16478 s&\\\${datarootdir}&$datarootdir&g' ;;
16479 esac
16480 _ACEOF
16481
16482 # Neutralize VPATH when `$srcdir' = `.'.
16483 # Shell code in configure.ac might set extrasub.
16484 # FIXME: do we really want to maintain this feature?
16485 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16486 ac_sed_extra="$ac_vpsub
16487 $extrasub
16488 _ACEOF
16489 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16490 :t
16491 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16492 s|@configure_input@|$ac_sed_conf_input|;t t
16493 s&@top_builddir@&$ac_top_builddir_sub&;t t
16494 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16495 s&@srcdir@&$ac_srcdir&;t t
16496 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16497 s&@top_srcdir@&$ac_top_srcdir&;t t
16498 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16499 s&@builddir@&$ac_builddir&;t t
16500 s&@abs_builddir@&$ac_abs_builddir&;t t
16501 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16502 s&@INSTALL@&$ac_INSTALL&;t t
16503 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16504 $ac_datarootdir_hack
16505 "
16506 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16507 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16508
16509 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16510 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16511 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16512 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16513 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16514 which seems to be undefined. Please make sure it is defined" >&5
16515 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16516 which seems to be undefined. Please make sure it is defined" >&2;}
16517
16518 rm -f "$ac_tmp/stdin"
16519 case $ac_file in
16520 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16521 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16522 esac \
16523 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16524 ;;
16525 :H)
16526 #
16527 # CONFIG_HEADER
16528 #
16529 if test x"$ac_file" != x-; then
16530 {
16531 $as_echo "/* $configure_input */" \
16532 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16533 } >"$ac_tmp/config.h" \
16534 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16535 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16536 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16537 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16538 else
16539 rm -f "$ac_file"
16540 mv "$ac_tmp/config.h" "$ac_file" \
16541 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16542 fi
16543 else
16544 $as_echo "/* $configure_input */" \
16545 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16546 || as_fn_error $? "could not create -" "$LINENO" 5
16547 fi
16548 # Compute "$ac_file"'s index in $config_headers.
16549 _am_arg="$ac_file"
16550 _am_stamp_count=1
16551 for _am_header in $config_headers :; do
16552 case $_am_header in
16553 $_am_arg | $_am_arg:* )
16554 break ;;
16555 * )
16556 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16557 esac
16558 done
16559 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16560 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16561 X"$_am_arg" : 'X\(//\)[^/]' \| \
16562 X"$_am_arg" : 'X\(//\)$' \| \
16563 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16564 $as_echo X"$_am_arg" |
16565 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16566 s//\1/
16567 q
16568 }
16569 /^X\(\/\/\)[^/].*/{
16570 s//\1/
16571 q
16572 }
16573 /^X\(\/\/\)$/{
16574 s//\1/
16575 q
16576 }
16577 /^X\(\/\).*/{
16578 s//\1/
16579 q
16580 }
16581 s/.*/./; q'`/stamp-h$_am_stamp_count
16582 ;;
16583
16584 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16585 $as_echo "$as_me: executing $ac_file commands" >&6;}
16586 ;;
16587 esac
16588
16589
16590 case $ac_file$ac_mode in
16591 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16592 # Older Autoconf quotes --file arguments for eval, but not when files
16593 # are listed without --file. Let's play safe and only enable the eval
16594 # if we detect the quoting.
16595 case $CONFIG_FILES in
16596 *\'*) eval set x "$CONFIG_FILES" ;;
16597 *) set x $CONFIG_FILES ;;
16598 esac
16599 shift
16600 for mf
16601 do
16602 # Strip MF so we end up with the name of the file.
16603 mf=`echo "$mf" | sed -e 's/:.*$//'`
16604 # Check whether this is an Automake generated Makefile or not.
16605 # We used to match only the files named 'Makefile.in', but
16606 # some people rename them; so instead we look at the file content.
16607 # Grep'ing the first line is not enough: some people post-process
16608 # each Makefile.in and add a new line on top of each file to say so.
16609 # Grep'ing the whole file is not good either: AIX grep has a line
16610 # limit of 2048, but all sed's we know have understand at least 4000.
16611 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16612 dirpart=`$as_dirname -- "$mf" ||
16613 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16614 X"$mf" : 'X\(//\)[^/]' \| \
16615 X"$mf" : 'X\(//\)$' \| \
16616 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16617 $as_echo X"$mf" |
16618 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16619 s//\1/
16620 q
16621 }
16622 /^X\(\/\/\)[^/].*/{
16623 s//\1/
16624 q
16625 }
16626 /^X\(\/\/\)$/{
16627 s//\1/
16628 q
16629 }
16630 /^X\(\/\).*/{
16631 s//\1/
16632 q
16633 }
16634 s/.*/./; q'`
16635 else
16636 continue
16637 fi
16638 # Extract the definition of DEPDIR, am__include, and am__quote
16639 # from the Makefile without running 'make'.
16640 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16641 test -z "$DEPDIR" && continue
16642 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16643 test -z "$am__include" && continue
16644 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16645 # Find all dependency output files, they are included files with
16646 # $(DEPDIR) in their names. We invoke sed twice because it is the
16647 # simplest approach to changing $(DEPDIR) to its actual value in the
16648 # expansion.
16649 for file in `sed -n "
16650 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16651 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
16652 # Make sure the directory exists.
16653 test -f "$dirpart/$file" && continue
16654 fdir=`$as_dirname -- "$file" ||
16655 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16656 X"$file" : 'X\(//\)[^/]' \| \
16657 X"$file" : 'X\(//\)$' \| \
16658 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16659 $as_echo X"$file" |
16660 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16661 s//\1/
16662 q
16663 }
16664 /^X\(\/\/\)[^/].*/{
16665 s//\1/
16666 q
16667 }
16668 /^X\(\/\/\)$/{
16669 s//\1/
16670 q
16671 }
16672 /^X\(\/\).*/{
16673 s//\1/
16674 q
16675 }
16676 s/.*/./; q'`
16677 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16678 # echo "creating $dirpart/$file"
16679 echo '# dummy' > "$dirpart/$file"
16680 done
16681 done
16682 }
16683 ;;
16684 "libtool":C)
16685
16686 # See if we are running on zsh, and set the options which allow our
16687 # commands through without removal of \ escapes.
16688 if test -n "${ZSH_VERSION+set}" ; then
16689 setopt NO_GLOB_SUBST
16690 fi
16691
16692 cfgfile="${ofile}T"
16693 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16694 $RM "$cfgfile"
16695
16696 cat <<_LT_EOF >> "$cfgfile"
16697 #! $SHELL
16698
16699 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16700 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16701 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16702 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16703 #
16704 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16705 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
16706 # Written by Gordon Matzigkeit, 1996
16707 #
16708 # This file is part of GNU Libtool.
16709 #
16710 # GNU Libtool is free software; you can redistribute it and/or
16711 # modify it under the terms of the GNU General Public License as
16712 # published by the Free Software Foundation; either version 2 of
16713 # the License, or (at your option) any later version.
16714 #
16715 # As a special exception to the GNU General Public License,
16716 # if you distribute this file as part of a program or library that
16717 # is built using GNU Libtool, you may include this file under the
16718 # same distribution terms that you use for the rest of that program.
16719 #
16720 # GNU Libtool is distributed in the hope that it will be useful,
16721 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16722 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16723 # GNU General Public License for more details.
16724 #
16725 # You should have received a copy of the GNU General Public License
16726 # along with GNU Libtool; see the file COPYING. If not, a copy
16727 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16728 # obtained by writing to the Free Software Foundation, Inc.,
16729 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16730
16731
16732 # The names of the tagged configurations supported by this script.
16733 available_tags=""
16734
16735 # ### BEGIN LIBTOOL CONFIG
16736
16737 # Whether or not to build shared libraries.
16738 build_libtool_libs=$enable_shared
16739
16740 # Which release of libtool.m4 was used?
16741 macro_version=$macro_version
16742 macro_revision=$macro_revision
16743
16744 # Whether or not to build static libraries.
16745 build_old_libs=$enable_static
16746
16747 # What type of objects to build.
16748 pic_mode=$pic_mode
16749
16750 # Whether or not to optimize for fast installation.
16751 fast_install=$enable_fast_install
16752
16753 # Shell to use when invoking shell scripts.
16754 SHELL=$lt_SHELL
16755
16756 # An echo program that protects backslashes.
16757 ECHO=$lt_ECHO
16758
16759 # The host system.
16760 host_alias=$host_alias
16761 host=$host
16762 host_os=$host_os
16763
16764 # The build system.
16765 build_alias=$build_alias
16766 build=$build
16767 build_os=$build_os
16768
16769 # A sed program that does not truncate output.
16770 SED=$lt_SED
16771
16772 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16773 Xsed="\$SED -e 1s/^X//"
16774
16775 # A grep program that handles long lines.
16776 GREP=$lt_GREP
16777
16778 # An ERE matcher.
16779 EGREP=$lt_EGREP
16780
16781 # A literal string matcher.
16782 FGREP=$lt_FGREP
16783
16784 # A BSD- or MS-compatible name lister.
16785 NM=$lt_NM
16786
16787 # Whether we need soft or hard links.
16788 LN_S=$lt_LN_S
16789
16790 # What is the maximum length of a command?
16791 max_cmd_len=$max_cmd_len
16792
16793 # Object file suffix (normally "o").
16794 objext=$ac_objext
16795
16796 # Executable file suffix (normally "").
16797 exeext=$exeext
16798
16799 # whether the shell understands "unset".
16800 lt_unset=$lt_unset
16801
16802 # turn spaces into newlines.
16803 SP2NL=$lt_lt_SP2NL
16804
16805 # turn newlines into spaces.
16806 NL2SP=$lt_lt_NL2SP
16807
16808 # An object symbol dumper.
16809 OBJDUMP=$lt_OBJDUMP
16810
16811 # Method to check whether dependent libraries are shared objects.
16812 deplibs_check_method=$lt_deplibs_check_method
16813
16814 # Command to use when deplibs_check_method == "file_magic".
16815 file_magic_cmd=$lt_file_magic_cmd
16816
16817 # The archiver.
16818 AR=$lt_AR
16819 AR_FLAGS=$lt_AR_FLAGS
16820
16821 # A symbol stripping program.
16822 STRIP=$lt_STRIP
16823
16824 # Commands used to install an old-style archive.
16825 RANLIB=$lt_RANLIB
16826 old_postinstall_cmds=$lt_old_postinstall_cmds
16827 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16828
16829 # Whether to use a lock for old archive extraction.
16830 lock_old_archive_extraction=$lock_old_archive_extraction
16831
16832 # A C compiler.
16833 LTCC=$lt_CC
16834
16835 # LTCC compiler flags.
16836 LTCFLAGS=$lt_CFLAGS
16837
16838 # Take the output of nm and produce a listing of raw symbols and C names.
16839 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16840
16841 # Transform the output of nm in a proper C declaration.
16842 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16843
16844 # Transform the output of nm in a C name address pair.
16845 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16846
16847 # Transform the output of nm in a C name address pair when lib prefix is needed.
16848 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16849
16850 # The name of the directory that contains temporary libtool files.
16851 objdir=$objdir
16852
16853 # Used to examine libraries when file_magic_cmd begins with "file".
16854 MAGIC_CMD=$MAGIC_CMD
16855
16856 # Must we lock files when doing compilation?
16857 need_locks=$lt_need_locks
16858
16859 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16860 DSYMUTIL=$lt_DSYMUTIL
16861
16862 # Tool to change global to local symbols on Mac OS X.
16863 NMEDIT=$lt_NMEDIT
16864
16865 # Tool to manipulate fat objects and archives on Mac OS X.
16866 LIPO=$lt_LIPO
16867
16868 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16869 OTOOL=$lt_OTOOL
16870
16871 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16872 OTOOL64=$lt_OTOOL64
16873
16874 # Old archive suffix (normally "a").
16875 libext=$libext
16876
16877 # Shared library suffix (normally ".so").
16878 shrext_cmds=$lt_shrext_cmds
16879
16880 # The commands to extract the exported symbol list from a shared archive.
16881 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16882
16883 # Variables whose values should be saved in libtool wrapper scripts and
16884 # restored at link time.
16885 variables_saved_for_relink=$lt_variables_saved_for_relink
16886
16887 # Do we need the "lib" prefix for modules?
16888 need_lib_prefix=$need_lib_prefix
16889
16890 # Do we need a version for libraries?
16891 need_version=$need_version
16892
16893 # Library versioning type.
16894 version_type=$version_type
16895
16896 # Shared library runtime path variable.
16897 runpath_var=$runpath_var
16898
16899 # Shared library path variable.
16900 shlibpath_var=$shlibpath_var
16901
16902 # Is shlibpath searched before the hard-coded library search path?
16903 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16904
16905 # Format of library name prefix.
16906 libname_spec=$lt_libname_spec
16907
16908 # List of archive names. First name is the real one, the rest are links.
16909 # The last name is the one that the linker finds with -lNAME
16910 library_names_spec=$lt_library_names_spec
16911
16912 # The coded name of the library, if different from the real name.
16913 soname_spec=$lt_soname_spec
16914
16915 # Permission mode override for installation of shared libraries.
16916 install_override_mode=$lt_install_override_mode
16917
16918 # Command to use after installation of a shared archive.
16919 postinstall_cmds=$lt_postinstall_cmds
16920
16921 # Command to use after uninstallation of a shared archive.
16922 postuninstall_cmds=$lt_postuninstall_cmds
16923
16924 # Commands used to finish a libtool library installation in a directory.
16925 finish_cmds=$lt_finish_cmds
16926
16927 # As "finish_cmds", except a single script fragment to be evaled but
16928 # not shown.
16929 finish_eval=$lt_finish_eval
16930
16931 # Whether we should hardcode library paths into libraries.
16932 hardcode_into_libs=$hardcode_into_libs
16933
16934 # Compile-time system search path for libraries.
16935 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16936
16937 # Run-time system search path for libraries.
16938 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16939
16940 # Whether dlopen is supported.
16941 dlopen_support=$enable_dlopen
16942
16943 # Whether dlopen of programs is supported.
16944 dlopen_self=$enable_dlopen_self
16945
16946 # Whether dlopen of statically linked programs is supported.
16947 dlopen_self_static=$enable_dlopen_self_static
16948
16949 # Commands to strip libraries.
16950 old_striplib=$lt_old_striplib
16951 striplib=$lt_striplib
16952
16953
16954 # The linker used to build libraries.
16955 LD=$lt_LD
16956
16957 # How to create reloadable object files.
16958 reload_flag=$lt_reload_flag
16959 reload_cmds=$lt_reload_cmds
16960
16961 # Commands used to build an old-style archive.
16962 old_archive_cmds=$lt_old_archive_cmds
16963
16964 # A language specific compiler.
16965 CC=$lt_compiler
16966
16967 # Is the compiler the GNU compiler?
16968 with_gcc=$GCC
16969
16970 # Compiler flag to turn off builtin functions.
16971 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16972
16973 # How to pass a linker flag through the compiler.
16974 wl=$lt_lt_prog_compiler_wl
16975
16976 # Additional compiler flags for building library objects.
16977 pic_flag=$lt_lt_prog_compiler_pic
16978
16979 # Compiler flag to prevent dynamic linking.
16980 link_static_flag=$lt_lt_prog_compiler_static
16981
16982 # Does compiler simultaneously support -c and -o options?
16983 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16984
16985 # Whether or not to add -lc for building shared libraries.
16986 build_libtool_need_lc=$archive_cmds_need_lc
16987
16988 # Whether or not to disallow shared libs when runtime libs are static.
16989 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16990
16991 # Compiler flag to allow reflexive dlopens.
16992 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16993
16994 # Compiler flag to generate shared objects directly from archives.
16995 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16996
16997 # Whether the compiler copes with passing no objects directly.
16998 compiler_needs_object=$lt_compiler_needs_object
16999
17000 # Create an old-style archive from a shared archive.
17001 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17002
17003 # Create a temporary old-style archive to link instead of a shared archive.
17004 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17005
17006 # Commands used to build a shared archive.
17007 archive_cmds=$lt_archive_cmds
17008 archive_expsym_cmds=$lt_archive_expsym_cmds
17009
17010 # Commands used to build a loadable module if different from building
17011 # a shared archive.
17012 module_cmds=$lt_module_cmds
17013 module_expsym_cmds=$lt_module_expsym_cmds
17014
17015 # Whether we are building with GNU ld or not.
17016 with_gnu_ld=$lt_with_gnu_ld
17017
17018 # Flag that allows shared libraries with undefined symbols to be built.
17019 allow_undefined_flag=$lt_allow_undefined_flag
17020
17021 # Flag that enforces no undefined symbols.
17022 no_undefined_flag=$lt_no_undefined_flag
17023
17024 # Flag to hardcode \$libdir into a binary during linking.
17025 # This must work even if \$libdir does not exist
17026 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17027
17028 # If ld is used when linking, flag to hardcode \$libdir into a binary
17029 # during linking. This must work even if \$libdir does not exist.
17030 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17031
17032 # Whether we need a single "-rpath" flag with a separated argument.
17033 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17034
17035 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17036 # DIR into the resulting binary.
17037 hardcode_direct=$hardcode_direct
17038
17039 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17040 # DIR into the resulting binary and the resulting library dependency is
17041 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17042 # library is relocated.
17043 hardcode_direct_absolute=$hardcode_direct_absolute
17044
17045 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17046 # into the resulting binary.
17047 hardcode_minus_L=$hardcode_minus_L
17048
17049 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17050 # into the resulting binary.
17051 hardcode_shlibpath_var=$hardcode_shlibpath_var
17052
17053 # Set to "yes" if building a shared library automatically hardcodes DIR
17054 # into the library and all subsequent libraries and executables linked
17055 # against it.
17056 hardcode_automatic=$hardcode_automatic
17057
17058 # Set to yes if linker adds runtime paths of dependent libraries
17059 # to runtime path list.
17060 inherit_rpath=$inherit_rpath
17061
17062 # Whether libtool must link a program against all its dependency libraries.
17063 link_all_deplibs=$link_all_deplibs
17064
17065 # Fix the shell variable \$srcfile for the compiler.
17066 fix_srcfile_path=$lt_fix_srcfile_path
17067
17068 # Set to "yes" if exported symbols are required.
17069 always_export_symbols=$always_export_symbols
17070
17071 # The commands to list exported symbols.
17072 export_symbols_cmds=$lt_export_symbols_cmds
17073
17074 # Symbols that should not be listed in the preloaded symbols.
17075 exclude_expsyms=$lt_exclude_expsyms
17076
17077 # Symbols that must always be exported.
17078 include_expsyms=$lt_include_expsyms
17079
17080 # Commands necessary for linking programs (against libraries) with templates.
17081 prelink_cmds=$lt_prelink_cmds
17082
17083 # Specify filename containing input files.
17084 file_list_spec=$lt_file_list_spec
17085
17086 # How to hardcode a shared library path into an executable.
17087 hardcode_action=$hardcode_action
17088
17089 # ### END LIBTOOL CONFIG
17090
17091 _LT_EOF
17092
17093 case $host_os in
17094 aix3*)
17095 cat <<\_LT_EOF >> "$cfgfile"
17096 # AIX sometimes has problems with the GCC collect2 program. For some
17097 # reason, if we set the COLLECT_NAMES environment variable, the problems
17098 # vanish in a puff of smoke.
17099 if test "X${COLLECT_NAMES+set}" != Xset; then
17100 COLLECT_NAMES=
17101 export COLLECT_NAMES
17102 fi
17103 _LT_EOF
17104 ;;
17105 esac
17106
17107
17108 ltmain="$ac_aux_dir/ltmain.sh"
17109
17110
17111 # We use sed instead of cat because bash on DJGPP gets confused if
17112 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17113 # text mode, it properly converts lines to CR/LF. This bash problem
17114 # is reportedly fixed, but why not run on old versions too?
17115 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17116 || (rm -f "$cfgfile"; exit 1)
17117
17118 case $xsi_shell in
17119 yes)
17120 cat << \_LT_EOF >> "$cfgfile"
17121
17122 # func_dirname file append nondir_replacement
17123 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17124 # otherwise set result to NONDIR_REPLACEMENT.
17125 func_dirname ()
17126 {
17127 case ${1} in
17128 */*) func_dirname_result="${1%/*}${2}" ;;
17129 * ) func_dirname_result="${3}" ;;
17130 esac
17131 }
17132
17133 # func_basename file
17134 func_basename ()
17135 {
17136 func_basename_result="${1##*/}"
17137 }
17138
17139 # func_dirname_and_basename file append nondir_replacement
17140 # perform func_basename and func_dirname in a single function
17141 # call:
17142 # dirname: Compute the dirname of FILE. If nonempty,
17143 # add APPEND to the result, otherwise set result
17144 # to NONDIR_REPLACEMENT.
17145 # value returned in "$func_dirname_result"
17146 # basename: Compute filename of FILE.
17147 # value retuned in "$func_basename_result"
17148 # Implementation must be kept synchronized with func_dirname
17149 # and func_basename. For efficiency, we do not delegate to
17150 # those functions but instead duplicate the functionality here.
17151 func_dirname_and_basename ()
17152 {
17153 case ${1} in
17154 */*) func_dirname_result="${1%/*}${2}" ;;
17155 * ) func_dirname_result="${3}" ;;
17156 esac
17157 func_basename_result="${1##*/}"
17158 }
17159
17160 # func_stripname prefix suffix name
17161 # strip PREFIX and SUFFIX off of NAME.
17162 # PREFIX and SUFFIX must not contain globbing or regex special
17163 # characters, hashes, percent signs, but SUFFIX may contain a leading
17164 # dot (in which case that matches only a dot).
17165 func_stripname ()
17166 {
17167 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17168 # positional parameters, so assign one to ordinary parameter first.
17169 func_stripname_result=${3}
17170 func_stripname_result=${func_stripname_result#"${1}"}
17171 func_stripname_result=${func_stripname_result%"${2}"}
17172 }
17173
17174 # func_opt_split
17175 func_opt_split ()
17176 {
17177 func_opt_split_opt=${1%%=*}
17178 func_opt_split_arg=${1#*=}
17179 }
17180
17181 # func_lo2o object
17182 func_lo2o ()
17183 {
17184 case ${1} in
17185 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17186 *) func_lo2o_result=${1} ;;
17187 esac
17188 }
17189
17190 # func_xform libobj-or-source
17191 func_xform ()
17192 {
17193 func_xform_result=${1%.*}.lo
17194 }
17195
17196 # func_arith arithmetic-term...
17197 func_arith ()
17198 {
17199 func_arith_result=$(( $* ))
17200 }
17201
17202 # func_len string
17203 # STRING may not start with a hyphen.
17204 func_len ()
17205 {
17206 func_len_result=${#1}
17207 }
17208
17209 _LT_EOF
17210 ;;
17211 *) # Bourne compatible functions.
17212 cat << \_LT_EOF >> "$cfgfile"
17213
17214 # func_dirname file append nondir_replacement
17215 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17216 # otherwise set result to NONDIR_REPLACEMENT.
17217 func_dirname ()
17218 {
17219 # Extract subdirectory from the argument.
17220 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
17221 if test "X$func_dirname_result" = "X${1}"; then
17222 func_dirname_result="${3}"
17223 else
17224 func_dirname_result="$func_dirname_result${2}"
17225 fi
17226 }
17227
17228 # func_basename file
17229 func_basename ()
17230 {
17231 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
17232 }
17233
17234
17235 # func_stripname prefix suffix name
17236 # strip PREFIX and SUFFIX off of NAME.
17237 # PREFIX and SUFFIX must not contain globbing or regex special
17238 # characters, hashes, percent signs, but SUFFIX may contain a leading
17239 # dot (in which case that matches only a dot).
17240 # func_strip_suffix prefix name
17241 func_stripname ()
17242 {
17243 case ${2} in
17244 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
17245 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
17246 esac
17247 }
17248
17249 # sed scripts:
17250 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17251 my_sed_long_arg='1s/^-[^=]*=//'
17252
17253 # func_opt_split
17254 func_opt_split ()
17255 {
17256 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
17257 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
17258 }
17259
17260 # func_lo2o object
17261 func_lo2o ()
17262 {
17263 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
17264 }
17265
17266 # func_xform libobj-or-source
17267 func_xform ()
17268 {
17269 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
17270 }
17271
17272 # func_arith arithmetic-term...
17273 func_arith ()
17274 {
17275 func_arith_result=`expr "$@"`
17276 }
17277
17278 # func_len string
17279 # STRING may not start with a hyphen.
17280 func_len ()
17281 {
17282 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17283 }
17284
17285 _LT_EOF
17286 esac
17287
17288 case $lt_shell_append in
17289 yes)
17290 cat << \_LT_EOF >> "$cfgfile"
17291
17292 # func_append var value
17293 # Append VALUE to the end of shell variable VAR.
17294 func_append ()
17295 {
17296 eval "$1+=\$2"
17297 }
17298 _LT_EOF
17299 ;;
17300 *)
17301 cat << \_LT_EOF >> "$cfgfile"
17302
17303 # func_append var value
17304 # Append VALUE to the end of shell variable VAR.
17305 func_append ()
17306 {
17307 eval "$1=\$$1\$2"
17308 }
17309
17310 _LT_EOF
17311 ;;
17312 esac
17313
17314
17315 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17316 || (rm -f "$cfgfile"; exit 1)
17317
17318 mv -f "$cfgfile" "$ofile" ||
17319 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17320 chmod +x "$ofile"
17321
17322 ;;
17323 "default-1":C)
17324 for ac_file in $CONFIG_FILES; do
17325 # Support "outfile[:infile[:infile...]]"
17326 case "$ac_file" in
17327 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
17328 esac
17329 # PO directories have a Makefile.in generated from Makefile.in.in.
17330 case "$ac_file" in */Makefile.in)
17331 # Adjust a relative srcdir.
17332 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
17333 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
17334 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
17335 # In autoconf-2.13 it is called $ac_given_srcdir.
17336 # In autoconf-2.50 it is called $srcdir.
17337 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
17338 case "$ac_given_srcdir" in
17339 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
17340 /*) top_srcdir="$ac_given_srcdir" ;;
17341 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
17342 esac
17343 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
17344 rm -f "$ac_dir/POTFILES"
17345 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
17346 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
17347 POMAKEFILEDEPS="POTFILES.in"
17348 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
17349 # on $ac_dir but don't depend on user-specified configuration
17350 # parameters.
17351 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
17352 # The LINGUAS file contains the set of available languages.
17353 if test -n "$OBSOLETE_ALL_LINGUAS"; then
17354 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.ac is obsolete" || echo "setting ALL_LINGUAS in configure.ac is obsolete"
17355 fi
17356 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
17357 # Hide the ALL_LINGUAS assigment from automake.
17358 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
17359 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
17360 else
17361 # The set of available languages was given in configure.ac.
17362 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
17363 fi
17364 case "$ac_given_srcdir" in
17365 .) srcdirpre= ;;
17366 *) srcdirpre='$(srcdir)/' ;;
17367 esac
17368 POFILES=
17369 GMOFILES=
17370 UPDATEPOFILES=
17371 DUMMYPOFILES=
17372 for lang in $ALL_LINGUAS; do
17373 POFILES="$POFILES $srcdirpre$lang.po"
17374 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
17375 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
17376 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
17377 done
17378 # CATALOGS depends on both $ac_dir and the user's LINGUAS
17379 # environment variable.
17380 INST_LINGUAS=
17381 if test -n "$ALL_LINGUAS"; then
17382 for presentlang in $ALL_LINGUAS; do
17383 useit=no
17384 if test "%UNSET%" != "$LINGUAS"; then
17385 desiredlanguages="$LINGUAS"
17386 else
17387 desiredlanguages="$ALL_LINGUAS"
17388 fi
17389 for desiredlang in $desiredlanguages; do
17390 # Use the presentlang catalog if desiredlang is
17391 # a. equal to presentlang, or
17392 # b. a variant of presentlang (because in this case,
17393 # presentlang can be used as a fallback for messages
17394 # which are not translated in the desiredlang catalog).
17395 case "$desiredlang" in
17396 "$presentlang"*) useit=yes;;
17397 esac
17398 done
17399 if test $useit = yes; then
17400 INST_LINGUAS="$INST_LINGUAS $presentlang"
17401 fi
17402 done
17403 fi
17404 CATALOGS=
17405 if test -n "$INST_LINGUAS"; then
17406 for lang in $INST_LINGUAS; do
17407 CATALOGS="$CATALOGS $lang.gmo"
17408 done
17409 fi
17410 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
17411 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"
17412 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
17413 if test -f "$f"; then
17414 case "$f" in
17415 *.orig | *.bak | *~) ;;
17416 *) cat "$f" >> "$ac_dir/Makefile" ;;
17417 esac
17418 fi
17419 done
17420 fi
17421 ;;
17422 esac
17423 done ;;
17424 "default":C)
17425 case "$srcdir" in
17426 .) srcdirpre= ;;
17427 *) srcdirpre='$(srcdir)/' ;;
17428 esac
17429 POFILES=
17430 GMOFILES=
17431 for lang in dummy $OBSOLETE_ALL_LINGUAS; do
17432 if test $lang != dummy; then
17433 POFILES="$POFILES $srcdirpre$lang.po"
17434 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
17435 fi
17436 done
17437 sed -e '/SRC-POTFILES =/r po/SRC-POTFILES' \
17438 -e '/BLD-POTFILES =/r po/BLD-POTFILES' \
17439 -e "s,@POFILES@,$POFILES," \
17440 -e "s,@GMOFILES@,$GMOFILES," \
17441 po/Makefile.in > po/Makefile ;;
17442
17443 esac
17444 done # for ac_tag
17445
17446
17447 as_fn_exit 0
17448 _ACEOF
17449 ac_clean_files=$ac_clean_files_save
17450
17451 test $ac_write_fail = 0 ||
17452 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17453
17454
17455 # configure is writing to config.log, and then calls config.status.
17456 # config.status does its own redirection, appending to config.log.
17457 # Unfortunately, on DOS this fails, as config.log is still kept open
17458 # by configure, so config.status won't be able to write to it; its
17459 # output is simply discarded. So we exec the FD to /dev/null,
17460 # effectively closing config.log, so it can be properly (re)opened and
17461 # appended to by config.status. When coming back to configure, we
17462 # need to make the FD available again.
17463 if test "$no_create" != yes; then
17464 ac_cs_success=:
17465 ac_config_status_args=
17466 test "$silent" = yes &&
17467 ac_config_status_args="$ac_config_status_args --quiet"
17468 exec 5>/dev/null
17469 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17470 exec 5>>config.log
17471 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17472 # would make configure fail if this is the last instruction.
17473 $ac_cs_success || as_fn_exit 1
17474 fi
17475 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17476 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17477 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17478 fi
17479
17480
17481
17482 touch config.status.tmp
17483 if touch --reference=config.status config.status.tmp > /dev/null 2>&1; then
17484 sed '/as_fn_exit 0/i \
17485 sed -e \"s/^\t\\\(\\\$(AM_V_CCLD)\\\)/\t+ \\\1/\" Makefile > Makefile.tmp \
17486 touch --reference=Makefile Makefile.tmp \
17487 mv Makefile.tmp Makefile \
17488 ' config.status > config.status.tmp
17489 touch --reference=config.status config.status.tmp
17490 mv config.status.tmp config.status
17491 chmod +x config.status
17492 sed -e "s/^\t\(\$(AM_V_CCLD)\)/\t+ \1/" Makefile > Makefile.tmp
17493 touch --reference=Makefile Makefile.tmp
17494 mv Makefile.tmp Makefile
17495 else
17496 rm -f config.status.tmp
17497 fi