strings: Replace references to -u option with references to -U.
[binutils-gdb.git] / binutils / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for binutils 2.37.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='binutils'
589 PACKAGE_TARNAME='binutils'
590 PACKAGE_VERSION='2.37.50'
591 PACKAGE_STRING='binutils 2.37.50'
592 PACKAGE_BUGREPORT=''
593 PACKAGE_URL=''
594
595 ac_unique_file="ar.c"
596 # Factoring default headers for most tests.
597 ac_includes_default="\
598 #include <stdio.h>
599 #ifdef HAVE_SYS_TYPES_H
600 # include <sys/types.h>
601 #endif
602 #ifdef HAVE_SYS_STAT_H
603 # include <sys/stat.h>
604 #endif
605 #ifdef STDC_HEADERS
606 # include <stdlib.h>
607 # include <stddef.h>
608 #else
609 # ifdef HAVE_STDLIB_H
610 # include <stdlib.h>
611 # endif
612 #endif
613 #ifdef HAVE_STRING_H
614 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
615 # include <memory.h>
616 # endif
617 # include <string.h>
618 #endif
619 #ifdef HAVE_STRINGS_H
620 # include <strings.h>
621 #endif
622 #ifdef HAVE_INTTYPES_H
623 # include <inttypes.h>
624 #endif
625 #ifdef HAVE_STDINT_H
626 # include <stdint.h>
627 #endif
628 #ifdef HAVE_UNISTD_H
629 # include <unistd.h>
630 #endif"
631
632 ac_header_list=
633 ac_subst_vars='am__EXEEXT_FALSE
634 am__EXEEXT_TRUE
635 LTLIBOBJS
636 LIBOBJS
637 EMULATION_VECTOR
638 EMULATION
639 OBJDUMP_PRIVATE_OFILES
640 OBJDUMP_DEFS
641 BUILD_INSTALL_MISC
642 BUILD_MISC
643 BUILD_DLLWRAP
644 BUILD_WINDMC
645 BUILD_WINDRES
646 DLLTOOL_DEFS
647 BUILD_DLLTOOL
648 BUILD_SRCONV
649 LTLIBICONV
650 LIBICONV
651 zlibinc
652 zlibdir
653 DEMANGLER_NAME
654 EXEEXT_FOR_BUILD
655 CC_FOR_BUILD
656 HDEFINES
657 GENINSRC_NEVER_FALSE
658 GENINSRC_NEVER_TRUE
659 MAINT
660 MAINTAINER_MODE_FALSE
661 MAINTAINER_MODE_TRUE
662 MSGMERGE
663 MSGFMT
664 MKINSTALLDIRS
665 CATOBJEXT
666 GENCAT
667 INSTOBJEXT
668 DATADIRNAME
669 CATALOGS
670 POSUB
671 GMSGFMT
672 XGETTEXT
673 INCINTL
674 LIBINTL_DEP
675 LIBINTL
676 USE_NLS
677 LEXLIB
678 LEX_OUTPUT_ROOT
679 LEX
680 YFLAGS
681 YACC
682 WARN_WRITE_STRINGS
683 NO_WERROR
684 WARN_CFLAGS_FOR_BUILD
685 WARN_CFLAGS
686 ENABLE_LIBCTF_FALSE
687 ENABLE_LIBCTF_TRUE
688 DEBUGINFOD_LIBS
689 DEBUGINFOD_CFLAGS
690 PKG_CONFIG_LIBDIR
691 PKG_CONFIG_PATH
692 PKG_CONFIG
693 LARGEFILE_CPPFLAGS
694 OTOOL64
695 OTOOL
696 LIPO
697 NMEDIT
698 DSYMUTIL
699 RANLIB
700 AR
701 OBJDUMP
702 LN_S
703 NM
704 ac_ct_DUMPBIN
705 DUMPBIN
706 LD
707 FGREP
708 SED
709 LIBTOOL
710 EGREP
711 GREP
712 CPP
713 am__fastdepCC_FALSE
714 am__fastdepCC_TRUE
715 CCDEPMODE
716 am__nodep
717 AMDEPBACKSLASH
718 AMDEP_FALSE
719 AMDEP_TRUE
720 am__quote
721 am__include
722 DEPDIR
723 OBJEXT
724 EXEEXT
725 ac_ct_CC
726 CPPFLAGS
727 LDFLAGS
728 CFLAGS
729 CC
730 AM_BACKSLASH
731 AM_DEFAULT_VERBOSITY
732 AM_DEFAULT_V
733 AM_V
734 am__untar
735 am__tar
736 AMTAR
737 am__leading_dot
738 SET_MAKE
739 AWK
740 mkdir_p
741 MKDIR_P
742 INSTALL_STRIP_PROGRAM
743 STRIP
744 install_sh
745 MAKEINFO
746 AUTOHEADER
747 AUTOMAKE
748 AUTOCONF
749 ACLOCAL
750 VERSION
751 PACKAGE
752 CYGPATH_W
753 am__isrc
754 INSTALL_DATA
755 INSTALL_SCRIPT
756 INSTALL_PROGRAM
757 target_os
758 target_vendor
759 target_cpu
760 target
761 host_os
762 host_vendor
763 host_cpu
764 host
765 build_os
766 build_vendor
767 build_cpu
768 build
769 target_alias
770 host_alias
771 build_alias
772 LIBS
773 ECHO_T
774 ECHO_N
775 ECHO_C
776 DEFS
777 mandir
778 localedir
779 libdir
780 psdir
781 pdfdir
782 dvidir
783 htmldir
784 infodir
785 docdir
786 oldincludedir
787 includedir
788 localstatedir
789 sharedstatedir
790 sysconfdir
791 datadir
792 datarootdir
793 libexecdir
794 sbindir
795 bindir
796 program_transform_name
797 prefix
798 exec_prefix
799 PACKAGE_URL
800 PACKAGE_BUGREPORT
801 PACKAGE_STRING
802 PACKAGE_VERSION
803 PACKAGE_TARNAME
804 PACKAGE_NAME
805 PATH_SEPARATOR
806 SHELL'
807 ac_subst_files=''
808 ac_user_opts='
809 enable_option_checking
810 enable_silent_rules
811 enable_dependency_tracking
812 enable_shared
813 enable_static
814 with_pic
815 enable_fast_install
816 with_gnu_ld
817 enable_libtool_lock
818 enable_plugins
819 enable_largefile
820 enable_checking
821 enable_targets
822 enable_deterministic_archives
823 enable_default_strings_all
824 enable_f_for_ifunc_symbols
825 enable_follow_debug_links
826 with_debuginfod
827 enable_libctf
828 enable_werror
829 enable_build_warnings
830 enable_nls
831 enable_maintainer_mode
832 with_system_zlib
833 enable_rpath
834 with_libiconv_prefix
835 with_libiconv_type
836 '
837 ac_precious_vars='build_alias
838 host_alias
839 target_alias
840 CC
841 CFLAGS
842 LDFLAGS
843 LIBS
844 CPPFLAGS
845 CPP
846 PKG_CONFIG
847 PKG_CONFIG_PATH
848 PKG_CONFIG_LIBDIR
849 DEBUGINFOD_CFLAGS
850 DEBUGINFOD_LIBS
851 YACC
852 YFLAGS'
853
854
855 # Initialize some variables set by options.
856 ac_init_help=
857 ac_init_version=false
858 ac_unrecognized_opts=
859 ac_unrecognized_sep=
860 # The variables have the same names as the options, with
861 # dashes changed to underlines.
862 cache_file=/dev/null
863 exec_prefix=NONE
864 no_create=
865 no_recursion=
866 prefix=NONE
867 program_prefix=NONE
868 program_suffix=NONE
869 program_transform_name=s,x,x,
870 silent=
871 site=
872 srcdir=
873 verbose=
874 x_includes=NONE
875 x_libraries=NONE
876
877 # Installation directory options.
878 # These are left unexpanded so users can "make install exec_prefix=/foo"
879 # and all the variables that are supposed to be based on exec_prefix
880 # by default will actually change.
881 # Use braces instead of parens because sh, perl, etc. also accept them.
882 # (The list follows the same order as the GNU Coding Standards.)
883 bindir='${exec_prefix}/bin'
884 sbindir='${exec_prefix}/sbin'
885 libexecdir='${exec_prefix}/libexec'
886 datarootdir='${prefix}/share'
887 datadir='${datarootdir}'
888 sysconfdir='${prefix}/etc'
889 sharedstatedir='${prefix}/com'
890 localstatedir='${prefix}/var'
891 includedir='${prefix}/include'
892 oldincludedir='/usr/include'
893 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
894 infodir='${datarootdir}/info'
895 htmldir='${docdir}'
896 dvidir='${docdir}'
897 pdfdir='${docdir}'
898 psdir='${docdir}'
899 libdir='${exec_prefix}/lib'
900 localedir='${datarootdir}/locale'
901 mandir='${datarootdir}/man'
902
903 ac_prev=
904 ac_dashdash=
905 for ac_option
906 do
907 # If the previous option needs an argument, assign it.
908 if test -n "$ac_prev"; then
909 eval $ac_prev=\$ac_option
910 ac_prev=
911 continue
912 fi
913
914 case $ac_option in
915 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
916 *=) ac_optarg= ;;
917 *) ac_optarg=yes ;;
918 esac
919
920 # Accept the important Cygnus configure options, so we can diagnose typos.
921
922 case $ac_dashdash$ac_option in
923 --)
924 ac_dashdash=yes ;;
925
926 -bindir | --bindir | --bindi | --bind | --bin | --bi)
927 ac_prev=bindir ;;
928 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
929 bindir=$ac_optarg ;;
930
931 -build | --build | --buil | --bui | --bu)
932 ac_prev=build_alias ;;
933 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
934 build_alias=$ac_optarg ;;
935
936 -cache-file | --cache-file | --cache-fil | --cache-fi \
937 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
938 ac_prev=cache_file ;;
939 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
940 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
941 cache_file=$ac_optarg ;;
942
943 --config-cache | -C)
944 cache_file=config.cache ;;
945
946 -datadir | --datadir | --datadi | --datad)
947 ac_prev=datadir ;;
948 -datadir=* | --datadir=* | --datadi=* | --datad=*)
949 datadir=$ac_optarg ;;
950
951 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
952 | --dataroo | --dataro | --datar)
953 ac_prev=datarootdir ;;
954 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
955 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
956 datarootdir=$ac_optarg ;;
957
958 -disable-* | --disable-*)
959 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
960 # Reject names that are not valid shell variable names.
961 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
962 as_fn_error $? "invalid feature name: $ac_useropt"
963 ac_useropt_orig=$ac_useropt
964 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
965 case $ac_user_opts in
966 *"
967 "enable_$ac_useropt"
968 "*) ;;
969 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
970 ac_unrecognized_sep=', ';;
971 esac
972 eval enable_$ac_useropt=no ;;
973
974 -docdir | --docdir | --docdi | --doc | --do)
975 ac_prev=docdir ;;
976 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
977 docdir=$ac_optarg ;;
978
979 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
980 ac_prev=dvidir ;;
981 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
982 dvidir=$ac_optarg ;;
983
984 -enable-* | --enable-*)
985 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
986 # Reject names that are not valid shell variable names.
987 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
988 as_fn_error $? "invalid feature name: $ac_useropt"
989 ac_useropt_orig=$ac_useropt
990 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
991 case $ac_user_opts in
992 *"
993 "enable_$ac_useropt"
994 "*) ;;
995 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
996 ac_unrecognized_sep=', ';;
997 esac
998 eval enable_$ac_useropt=\$ac_optarg ;;
999
1000 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1001 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1002 | --exec | --exe | --ex)
1003 ac_prev=exec_prefix ;;
1004 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1005 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1006 | --exec=* | --exe=* | --ex=*)
1007 exec_prefix=$ac_optarg ;;
1008
1009 -gas | --gas | --ga | --g)
1010 # Obsolete; use --with-gas.
1011 with_gas=yes ;;
1012
1013 -help | --help | --hel | --he | -h)
1014 ac_init_help=long ;;
1015 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1016 ac_init_help=recursive ;;
1017 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1018 ac_init_help=short ;;
1019
1020 -host | --host | --hos | --ho)
1021 ac_prev=host_alias ;;
1022 -host=* | --host=* | --hos=* | --ho=*)
1023 host_alias=$ac_optarg ;;
1024
1025 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1026 ac_prev=htmldir ;;
1027 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1028 | --ht=*)
1029 htmldir=$ac_optarg ;;
1030
1031 -includedir | --includedir | --includedi | --included | --include \
1032 | --includ | --inclu | --incl | --inc)
1033 ac_prev=includedir ;;
1034 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1035 | --includ=* | --inclu=* | --incl=* | --inc=*)
1036 includedir=$ac_optarg ;;
1037
1038 -infodir | --infodir | --infodi | --infod | --info | --inf)
1039 ac_prev=infodir ;;
1040 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1041 infodir=$ac_optarg ;;
1042
1043 -libdir | --libdir | --libdi | --libd)
1044 ac_prev=libdir ;;
1045 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1046 libdir=$ac_optarg ;;
1047
1048 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1049 | --libexe | --libex | --libe)
1050 ac_prev=libexecdir ;;
1051 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1052 | --libexe=* | --libex=* | --libe=*)
1053 libexecdir=$ac_optarg ;;
1054
1055 -localedir | --localedir | --localedi | --localed | --locale)
1056 ac_prev=localedir ;;
1057 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1058 localedir=$ac_optarg ;;
1059
1060 -localstatedir | --localstatedir | --localstatedi | --localstated \
1061 | --localstate | --localstat | --localsta | --localst | --locals)
1062 ac_prev=localstatedir ;;
1063 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1064 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1065 localstatedir=$ac_optarg ;;
1066
1067 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1068 ac_prev=mandir ;;
1069 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1070 mandir=$ac_optarg ;;
1071
1072 -nfp | --nfp | --nf)
1073 # Obsolete; use --without-fp.
1074 with_fp=no ;;
1075
1076 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1077 | --no-cr | --no-c | -n)
1078 no_create=yes ;;
1079
1080 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1081 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1082 no_recursion=yes ;;
1083
1084 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1085 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1086 | --oldin | --oldi | --old | --ol | --o)
1087 ac_prev=oldincludedir ;;
1088 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1089 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1090 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1091 oldincludedir=$ac_optarg ;;
1092
1093 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1094 ac_prev=prefix ;;
1095 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1096 prefix=$ac_optarg ;;
1097
1098 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1099 | --program-pre | --program-pr | --program-p)
1100 ac_prev=program_prefix ;;
1101 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1102 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1103 program_prefix=$ac_optarg ;;
1104
1105 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1106 | --program-suf | --program-su | --program-s)
1107 ac_prev=program_suffix ;;
1108 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1109 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1110 program_suffix=$ac_optarg ;;
1111
1112 -program-transform-name | --program-transform-name \
1113 | --program-transform-nam | --program-transform-na \
1114 | --program-transform-n | --program-transform- \
1115 | --program-transform | --program-transfor \
1116 | --program-transfo | --program-transf \
1117 | --program-trans | --program-tran \
1118 | --progr-tra | --program-tr | --program-t)
1119 ac_prev=program_transform_name ;;
1120 -program-transform-name=* | --program-transform-name=* \
1121 | --program-transform-nam=* | --program-transform-na=* \
1122 | --program-transform-n=* | --program-transform-=* \
1123 | --program-transform=* | --program-transfor=* \
1124 | --program-transfo=* | --program-transf=* \
1125 | --program-trans=* | --program-tran=* \
1126 | --progr-tra=* | --program-tr=* | --program-t=*)
1127 program_transform_name=$ac_optarg ;;
1128
1129 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1130 ac_prev=pdfdir ;;
1131 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1132 pdfdir=$ac_optarg ;;
1133
1134 -psdir | --psdir | --psdi | --psd | --ps)
1135 ac_prev=psdir ;;
1136 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1137 psdir=$ac_optarg ;;
1138
1139 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1140 | -silent | --silent | --silen | --sile | --sil)
1141 silent=yes ;;
1142
1143 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1144 ac_prev=sbindir ;;
1145 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1146 | --sbi=* | --sb=*)
1147 sbindir=$ac_optarg ;;
1148
1149 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1150 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1151 | --sharedst | --shareds | --shared | --share | --shar \
1152 | --sha | --sh)
1153 ac_prev=sharedstatedir ;;
1154 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1155 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1156 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1157 | --sha=* | --sh=*)
1158 sharedstatedir=$ac_optarg ;;
1159
1160 -site | --site | --sit)
1161 ac_prev=site ;;
1162 -site=* | --site=* | --sit=*)
1163 site=$ac_optarg ;;
1164
1165 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1166 ac_prev=srcdir ;;
1167 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1168 srcdir=$ac_optarg ;;
1169
1170 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1171 | --syscon | --sysco | --sysc | --sys | --sy)
1172 ac_prev=sysconfdir ;;
1173 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1174 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1175 sysconfdir=$ac_optarg ;;
1176
1177 -target | --target | --targe | --targ | --tar | --ta | --t)
1178 ac_prev=target_alias ;;
1179 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1180 target_alias=$ac_optarg ;;
1181
1182 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1183 verbose=yes ;;
1184
1185 -version | --version | --versio | --versi | --vers | -V)
1186 ac_init_version=: ;;
1187
1188 -with-* | --with-*)
1189 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1190 # Reject names that are not valid shell variable names.
1191 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1192 as_fn_error $? "invalid package name: $ac_useropt"
1193 ac_useropt_orig=$ac_useropt
1194 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1195 case $ac_user_opts in
1196 *"
1197 "with_$ac_useropt"
1198 "*) ;;
1199 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1200 ac_unrecognized_sep=', ';;
1201 esac
1202 eval with_$ac_useropt=\$ac_optarg ;;
1203
1204 -without-* | --without-*)
1205 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1206 # Reject names that are not valid shell variable names.
1207 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1208 as_fn_error $? "invalid package name: $ac_useropt"
1209 ac_useropt_orig=$ac_useropt
1210 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1211 case $ac_user_opts in
1212 *"
1213 "with_$ac_useropt"
1214 "*) ;;
1215 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1216 ac_unrecognized_sep=', ';;
1217 esac
1218 eval with_$ac_useropt=no ;;
1219
1220 --x)
1221 # Obsolete; use --with-x.
1222 with_x=yes ;;
1223
1224 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1225 | --x-incl | --x-inc | --x-in | --x-i)
1226 ac_prev=x_includes ;;
1227 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1228 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1229 x_includes=$ac_optarg ;;
1230
1231 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1232 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1233 ac_prev=x_libraries ;;
1234 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1235 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1236 x_libraries=$ac_optarg ;;
1237
1238 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1239 Try \`$0 --help' for more information"
1240 ;;
1241
1242 *=*)
1243 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1244 # Reject names that are not valid shell variable names.
1245 case $ac_envvar in #(
1246 '' | [0-9]* | *[!_$as_cr_alnum]* )
1247 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1248 esac
1249 eval $ac_envvar=\$ac_optarg
1250 export $ac_envvar ;;
1251
1252 *)
1253 # FIXME: should be removed in autoconf 3.0.
1254 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1255 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1256 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1257 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1258 ;;
1259
1260 esac
1261 done
1262
1263 if test -n "$ac_prev"; then
1264 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1265 as_fn_error $? "missing argument to $ac_option"
1266 fi
1267
1268 if test -n "$ac_unrecognized_opts"; then
1269 case $enable_option_checking in
1270 no) ;;
1271 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1272 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1273 esac
1274 fi
1275
1276 # Check all directory arguments for consistency.
1277 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1278 datadir sysconfdir sharedstatedir localstatedir includedir \
1279 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1280 libdir localedir mandir
1281 do
1282 eval ac_val=\$$ac_var
1283 # Remove trailing slashes.
1284 case $ac_val in
1285 */ )
1286 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1287 eval $ac_var=\$ac_val;;
1288 esac
1289 # Be sure to have absolute directory names.
1290 case $ac_val in
1291 [\\/$]* | ?:[\\/]* ) continue;;
1292 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1293 esac
1294 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1295 done
1296
1297 # There might be people who depend on the old broken behavior: `$host'
1298 # used to hold the argument of --host etc.
1299 # FIXME: To remove some day.
1300 build=$build_alias
1301 host=$host_alias
1302 target=$target_alias
1303
1304 # FIXME: To remove some day.
1305 if test "x$host_alias" != x; then
1306 if test "x$build_alias" = x; then
1307 cross_compiling=maybe
1308 elif test "x$build_alias" != "x$host_alias"; then
1309 cross_compiling=yes
1310 fi
1311 fi
1312
1313 ac_tool_prefix=
1314 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1315
1316 test "$silent" = yes && exec 6>/dev/null
1317
1318
1319 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1320 ac_ls_di=`ls -di .` &&
1321 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1322 as_fn_error $? "working directory cannot be determined"
1323 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1324 as_fn_error $? "pwd does not report name of working directory"
1325
1326
1327 # Find the source files, if location was not specified.
1328 if test -z "$srcdir"; then
1329 ac_srcdir_defaulted=yes
1330 # Try the directory containing this script, then the parent directory.
1331 ac_confdir=`$as_dirname -- "$as_myself" ||
1332 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1333 X"$as_myself" : 'X\(//\)[^/]' \| \
1334 X"$as_myself" : 'X\(//\)$' \| \
1335 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1336 $as_echo X"$as_myself" |
1337 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1338 s//\1/
1339 q
1340 }
1341 /^X\(\/\/\)[^/].*/{
1342 s//\1/
1343 q
1344 }
1345 /^X\(\/\/\)$/{
1346 s//\1/
1347 q
1348 }
1349 /^X\(\/\).*/{
1350 s//\1/
1351 q
1352 }
1353 s/.*/./; q'`
1354 srcdir=$ac_confdir
1355 if test ! -r "$srcdir/$ac_unique_file"; then
1356 srcdir=..
1357 fi
1358 else
1359 ac_srcdir_defaulted=no
1360 fi
1361 if test ! -r "$srcdir/$ac_unique_file"; then
1362 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1363 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1364 fi
1365 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1366 ac_abs_confdir=`(
1367 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1368 pwd)`
1369 # When building in place, set srcdir=.
1370 if test "$ac_abs_confdir" = "$ac_pwd"; then
1371 srcdir=.
1372 fi
1373 # Remove unnecessary trailing slashes from srcdir.
1374 # Double slashes in file names in object file debugging info
1375 # mess up M-x gdb in Emacs.
1376 case $srcdir in
1377 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1378 esac
1379 for ac_var in $ac_precious_vars; do
1380 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1381 eval ac_env_${ac_var}_value=\$${ac_var}
1382 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1383 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1384 done
1385
1386 #
1387 # Report the --help message.
1388 #
1389 if test "$ac_init_help" = "long"; then
1390 # Omit some internal or obsolete options to make the list less imposing.
1391 # This message is too long to be a string in the A/UX 3.1 sh.
1392 cat <<_ACEOF
1393 \`configure' configures binutils 2.37.50 to adapt to many kinds of systems.
1394
1395 Usage: $0 [OPTION]... [VAR=VALUE]...
1396
1397 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1398 VAR=VALUE. See below for descriptions of some of the useful variables.
1399
1400 Defaults for the options are specified in brackets.
1401
1402 Configuration:
1403 -h, --help display this help and exit
1404 --help=short display options specific to this package
1405 --help=recursive display the short help of all the included packages
1406 -V, --version display version information and exit
1407 -q, --quiet, --silent do not print \`checking ...' messages
1408 --cache-file=FILE cache test results in FILE [disabled]
1409 -C, --config-cache alias for \`--cache-file=config.cache'
1410 -n, --no-create do not create output files
1411 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1412
1413 Installation directories:
1414 --prefix=PREFIX install architecture-independent files in PREFIX
1415 [$ac_default_prefix]
1416 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1417 [PREFIX]
1418
1419 By default, \`make install' will install all the files in
1420 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1421 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1422 for instance \`--prefix=\$HOME'.
1423
1424 For better control, use the options below.
1425
1426 Fine tuning of the installation directories:
1427 --bindir=DIR user executables [EPREFIX/bin]
1428 --sbindir=DIR system admin executables [EPREFIX/sbin]
1429 --libexecdir=DIR program executables [EPREFIX/libexec]
1430 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1431 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1432 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1433 --libdir=DIR object code libraries [EPREFIX/lib]
1434 --includedir=DIR C header files [PREFIX/include]
1435 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1436 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1437 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1438 --infodir=DIR info documentation [DATAROOTDIR/info]
1439 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1440 --mandir=DIR man documentation [DATAROOTDIR/man]
1441 --docdir=DIR documentation root [DATAROOTDIR/doc/binutils]
1442 --htmldir=DIR html documentation [DOCDIR]
1443 --dvidir=DIR dvi documentation [DOCDIR]
1444 --pdfdir=DIR pdf documentation [DOCDIR]
1445 --psdir=DIR ps documentation [DOCDIR]
1446 _ACEOF
1447
1448 cat <<\_ACEOF
1449
1450 Program names:
1451 --program-prefix=PREFIX prepend PREFIX to installed program names
1452 --program-suffix=SUFFIX append SUFFIX to installed program names
1453 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1454
1455 System types:
1456 --build=BUILD configure for building on BUILD [guessed]
1457 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1458 --target=TARGET configure for building compilers for TARGET [HOST]
1459 _ACEOF
1460 fi
1461
1462 if test -n "$ac_init_help"; then
1463 case $ac_init_help in
1464 short | recursive ) echo "Configuration of binutils 2.37.50:";;
1465 esac
1466 cat <<\_ACEOF
1467
1468 Optional Features:
1469 --disable-option-checking ignore unrecognized --enable/--with options
1470 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1471 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1472 --enable-silent-rules less verbose build output (undo: "make V=1")
1473 --disable-silent-rules verbose build output (undo: "make V=0")
1474 --enable-dependency-tracking
1475 do not reject slow dependency extractors
1476 --disable-dependency-tracking
1477 speeds up one-time build
1478 --enable-shared[=PKGS] build shared libraries [default=yes]
1479 --enable-static[=PKGS] build static libraries [default=yes]
1480 --enable-fast-install[=PKGS]
1481 optimize for fast installation [default=yes]
1482 --disable-libtool-lock avoid locking (might break parallel builds)
1483 --enable-plugins Enable support for plugins
1484 --disable-largefile omit support for large files
1485 --enable-checking enable run-time checks
1486 --enable-targets alternative target configurations
1487 --enable-deterministic-archives
1488 ar and ranlib default to -D behavior
1489 --disable-default-strings-all
1490 strings defaults to --data behavior
1491 --enable-f-for-ifunc-symbols
1492 Have nm use F and f for global and local ifunc
1493 symbols
1494 --enable-follow-debug-links
1495 Have readelf and objdump follow debug links by
1496 default
1497 --enable-libctf Handle .ctf type-info sections [default=yes]
1498 --enable-werror treat compile warnings as errors
1499 --enable-build-warnings enable build-time compiler warnings
1500 --disable-nls do not use Native Language Support
1501 --enable-maintainer-mode
1502 enable make rules and dependencies not useful (and
1503 sometimes confusing) to the casual installer
1504 --disable-rpath do not hardcode runtime library paths
1505
1506 Optional Packages:
1507 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1508 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1509 --with-pic try to use only PIC/non-PIC objects [default=use
1510 both]
1511 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1512 --with-debuginfod Enable debuginfo lookups with debuginfod
1513 (auto/yes/no)
1514 --with-system-zlib use installed libz
1515 --with-gnu-ld assume the C compiler uses GNU ld default=no
1516 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1517 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1518 --with-libiconv-type=TYPE type of library to search for (auto/static/shared)
1519
1520 Some influential environment variables:
1521 CC C compiler command
1522 CFLAGS C compiler flags
1523 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1524 nonstandard directory <lib dir>
1525 LIBS libraries to pass to the linker, e.g. -l<library>
1526 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1527 you have headers in a nonstandard directory <include dir>
1528 CPP C preprocessor
1529 PKG_CONFIG path to pkg-config utility
1530 PKG_CONFIG_PATH
1531 directories to add to pkg-config's search path
1532 PKG_CONFIG_LIBDIR
1533 path overriding pkg-config's built-in search path
1534 DEBUGINFOD_CFLAGS
1535 C compiler flags for DEBUGINFOD, overriding pkg-config
1536 DEBUGINFOD_LIBS
1537 linker flags for DEBUGINFOD, overriding pkg-config
1538 YACC The `Yet Another Compiler Compiler' implementation to use.
1539 Defaults to the first program found out of: `bison -y', `byacc',
1540 `yacc'.
1541 YFLAGS The list of arguments that will be passed by default to $YACC.
1542 This script will default YFLAGS to the empty string to avoid a
1543 default value of `-d' given by some make applications.
1544
1545 Use these variables to override the choices made by `configure' or to help
1546 it to find libraries and programs with nonstandard names/locations.
1547
1548 Report bugs to the package provider.
1549 _ACEOF
1550 ac_status=$?
1551 fi
1552
1553 if test "$ac_init_help" = "recursive"; then
1554 # If there are subdirs, report their specific --help.
1555 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1556 test -d "$ac_dir" ||
1557 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1558 continue
1559 ac_builddir=.
1560
1561 case "$ac_dir" in
1562 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1563 *)
1564 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1565 # A ".." for each directory in $ac_dir_suffix.
1566 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1567 case $ac_top_builddir_sub in
1568 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1569 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1570 esac ;;
1571 esac
1572 ac_abs_top_builddir=$ac_pwd
1573 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1574 # for backward compatibility:
1575 ac_top_builddir=$ac_top_build_prefix
1576
1577 case $srcdir in
1578 .) # We are building in place.
1579 ac_srcdir=.
1580 ac_top_srcdir=$ac_top_builddir_sub
1581 ac_abs_top_srcdir=$ac_pwd ;;
1582 [\\/]* | ?:[\\/]* ) # Absolute name.
1583 ac_srcdir=$srcdir$ac_dir_suffix;
1584 ac_top_srcdir=$srcdir
1585 ac_abs_top_srcdir=$srcdir ;;
1586 *) # Relative name.
1587 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1588 ac_top_srcdir=$ac_top_build_prefix$srcdir
1589 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1590 esac
1591 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1592
1593 cd "$ac_dir" || { ac_status=$?; continue; }
1594 # Check for guested configure.
1595 if test -f "$ac_srcdir/configure.gnu"; then
1596 echo &&
1597 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1598 elif test -f "$ac_srcdir/configure"; then
1599 echo &&
1600 $SHELL "$ac_srcdir/configure" --help=recursive
1601 else
1602 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1603 fi || ac_status=$?
1604 cd "$ac_pwd" || { ac_status=$?; break; }
1605 done
1606 fi
1607
1608 test -n "$ac_init_help" && exit $ac_status
1609 if $ac_init_version; then
1610 cat <<\_ACEOF
1611 binutils configure 2.37.50
1612 generated by GNU Autoconf 2.69
1613
1614 Copyright (C) 2012 Free Software Foundation, Inc.
1615 This configure script is free software; the Free Software Foundation
1616 gives unlimited permission to copy, distribute and modify it.
1617 _ACEOF
1618 exit
1619 fi
1620
1621 ## ------------------------ ##
1622 ## Autoconf initialization. ##
1623 ## ------------------------ ##
1624
1625 # ac_fn_c_try_compile LINENO
1626 # --------------------------
1627 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1628 ac_fn_c_try_compile ()
1629 {
1630 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1631 rm -f conftest.$ac_objext
1632 if { { ac_try="$ac_compile"
1633 case "(($ac_try" in
1634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1635 *) ac_try_echo=$ac_try;;
1636 esac
1637 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1638 $as_echo "$ac_try_echo"; } >&5
1639 (eval "$ac_compile") 2>conftest.err
1640 ac_status=$?
1641 if test -s conftest.err; then
1642 grep -v '^ *+' conftest.err >conftest.er1
1643 cat conftest.er1 >&5
1644 mv -f conftest.er1 conftest.err
1645 fi
1646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1647 test $ac_status = 0; } && {
1648 test -z "$ac_c_werror_flag" ||
1649 test ! -s conftest.err
1650 } && test -s conftest.$ac_objext; then :
1651 ac_retval=0
1652 else
1653 $as_echo "$as_me: failed program was:" >&5
1654 sed 's/^/| /' conftest.$ac_ext >&5
1655
1656 ac_retval=1
1657 fi
1658 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1659 as_fn_set_status $ac_retval
1660
1661 } # ac_fn_c_try_compile
1662
1663 # ac_fn_c_try_cpp LINENO
1664 # ----------------------
1665 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1666 ac_fn_c_try_cpp ()
1667 {
1668 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1669 if { { ac_try="$ac_cpp conftest.$ac_ext"
1670 case "(($ac_try" in
1671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1672 *) ac_try_echo=$ac_try;;
1673 esac
1674 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1675 $as_echo "$ac_try_echo"; } >&5
1676 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1677 ac_status=$?
1678 if test -s conftest.err; then
1679 grep -v '^ *+' conftest.err >conftest.er1
1680 cat conftest.er1 >&5
1681 mv -f conftest.er1 conftest.err
1682 fi
1683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1684 test $ac_status = 0; } > conftest.i && {
1685 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1686 test ! -s conftest.err
1687 }; then :
1688 ac_retval=0
1689 else
1690 $as_echo "$as_me: failed program was:" >&5
1691 sed 's/^/| /' conftest.$ac_ext >&5
1692
1693 ac_retval=1
1694 fi
1695 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1696 as_fn_set_status $ac_retval
1697
1698 } # ac_fn_c_try_cpp
1699
1700 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1701 # -------------------------------------------------------
1702 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1703 # the include files in INCLUDES and setting the cache variable VAR
1704 # accordingly.
1705 ac_fn_c_check_header_mongrel ()
1706 {
1707 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1708 if eval \${$3+:} false; then :
1709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1710 $as_echo_n "checking for $2... " >&6; }
1711 if eval \${$3+:} false; then :
1712 $as_echo_n "(cached) " >&6
1713 fi
1714 eval ac_res=\$$3
1715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1716 $as_echo "$ac_res" >&6; }
1717 else
1718 # Is the header compilable?
1719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1720 $as_echo_n "checking $2 usability... " >&6; }
1721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1722 /* end confdefs.h. */
1723 $4
1724 #include <$2>
1725 _ACEOF
1726 if ac_fn_c_try_compile "$LINENO"; then :
1727 ac_header_compiler=yes
1728 else
1729 ac_header_compiler=no
1730 fi
1731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1733 $as_echo "$ac_header_compiler" >&6; }
1734
1735 # Is the header present?
1736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1737 $as_echo_n "checking $2 presence... " >&6; }
1738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1739 /* end confdefs.h. */
1740 #include <$2>
1741 _ACEOF
1742 if ac_fn_c_try_cpp "$LINENO"; then :
1743 ac_header_preproc=yes
1744 else
1745 ac_header_preproc=no
1746 fi
1747 rm -f conftest.err conftest.i conftest.$ac_ext
1748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1749 $as_echo "$ac_header_preproc" >&6; }
1750
1751 # So? What about this header?
1752 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1753 yes:no: )
1754 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1755 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1756 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1757 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1758 ;;
1759 no:yes:* )
1760 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1761 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1762 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1763 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1764 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1765 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1766 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1767 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1768 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1769 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1770 ;;
1771 esac
1772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1773 $as_echo_n "checking for $2... " >&6; }
1774 if eval \${$3+:} false; then :
1775 $as_echo_n "(cached) " >&6
1776 else
1777 eval "$3=\$ac_header_compiler"
1778 fi
1779 eval ac_res=\$$3
1780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1781 $as_echo "$ac_res" >&6; }
1782 fi
1783 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1784
1785 } # ac_fn_c_check_header_mongrel
1786
1787 # ac_fn_c_try_run LINENO
1788 # ----------------------
1789 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1790 # that executables *can* be run.
1791 ac_fn_c_try_run ()
1792 {
1793 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1794 if { { ac_try="$ac_link"
1795 case "(($ac_try" in
1796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1797 *) ac_try_echo=$ac_try;;
1798 esac
1799 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1800 $as_echo "$ac_try_echo"; } >&5
1801 (eval "$ac_link") 2>&5
1802 ac_status=$?
1803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1804 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1805 { { case "(($ac_try" in
1806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1807 *) ac_try_echo=$ac_try;;
1808 esac
1809 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1810 $as_echo "$ac_try_echo"; } >&5
1811 (eval "$ac_try") 2>&5
1812 ac_status=$?
1813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1814 test $ac_status = 0; }; }; then :
1815 ac_retval=0
1816 else
1817 $as_echo "$as_me: program exited with status $ac_status" >&5
1818 $as_echo "$as_me: failed program was:" >&5
1819 sed 's/^/| /' conftest.$ac_ext >&5
1820
1821 ac_retval=$ac_status
1822 fi
1823 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1824 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1825 as_fn_set_status $ac_retval
1826
1827 } # ac_fn_c_try_run
1828
1829 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1830 # -------------------------------------------------------
1831 # Tests whether HEADER exists and can be compiled using the include files in
1832 # INCLUDES, setting the cache variable VAR accordingly.
1833 ac_fn_c_check_header_compile ()
1834 {
1835 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1837 $as_echo_n "checking for $2... " >&6; }
1838 if eval \${$3+:} false; then :
1839 $as_echo_n "(cached) " >&6
1840 else
1841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1842 /* end confdefs.h. */
1843 $4
1844 #include <$2>
1845 _ACEOF
1846 if ac_fn_c_try_compile "$LINENO"; then :
1847 eval "$3=yes"
1848 else
1849 eval "$3=no"
1850 fi
1851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1852 fi
1853 eval ac_res=\$$3
1854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1855 $as_echo "$ac_res" >&6; }
1856 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1857
1858 } # ac_fn_c_check_header_compile
1859
1860 # ac_fn_c_try_link LINENO
1861 # -----------------------
1862 # Try to link conftest.$ac_ext, and return whether this succeeded.
1863 ac_fn_c_try_link ()
1864 {
1865 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1866 rm -f conftest.$ac_objext conftest$ac_exeext
1867 if { { ac_try="$ac_link"
1868 case "(($ac_try" in
1869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1870 *) ac_try_echo=$ac_try;;
1871 esac
1872 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1873 $as_echo "$ac_try_echo"; } >&5
1874 (eval "$ac_link") 2>conftest.err
1875 ac_status=$?
1876 if test -s conftest.err; then
1877 grep -v '^ *+' conftest.err >conftest.er1
1878 cat conftest.er1 >&5
1879 mv -f conftest.er1 conftest.err
1880 fi
1881 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1882 test $ac_status = 0; } && {
1883 test -z "$ac_c_werror_flag" ||
1884 test ! -s conftest.err
1885 } && test -s conftest$ac_exeext && {
1886 test "$cross_compiling" = yes ||
1887 test -x conftest$ac_exeext
1888 }; then :
1889 ac_retval=0
1890 else
1891 $as_echo "$as_me: failed program was:" >&5
1892 sed 's/^/| /' conftest.$ac_ext >&5
1893
1894 ac_retval=1
1895 fi
1896 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1897 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1898 # interfere with the next link command; also delete a directory that is
1899 # left behind by Apple's compiler. We do this before executing the actions.
1900 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1901 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1902 as_fn_set_status $ac_retval
1903
1904 } # ac_fn_c_try_link
1905
1906 # ac_fn_c_check_func LINENO FUNC VAR
1907 # ----------------------------------
1908 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1909 ac_fn_c_check_func ()
1910 {
1911 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1913 $as_echo_n "checking for $2... " >&6; }
1914 if eval \${$3+:} false; then :
1915 $as_echo_n "(cached) " >&6
1916 else
1917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1918 /* end confdefs.h. */
1919 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1920 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1921 #define $2 innocuous_$2
1922
1923 /* System header to define __stub macros and hopefully few prototypes,
1924 which can conflict with char $2 (); below.
1925 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1926 <limits.h> exists even on freestanding compilers. */
1927
1928 #ifdef __STDC__
1929 # include <limits.h>
1930 #else
1931 # include <assert.h>
1932 #endif
1933
1934 #undef $2
1935
1936 /* Override any GCC internal prototype to avoid an error.
1937 Use char because int might match the return type of a GCC
1938 builtin and then its argument prototype would still apply. */
1939 #ifdef __cplusplus
1940 extern "C"
1941 #endif
1942 char $2 ();
1943 /* The GNU C library defines this for functions which it implements
1944 to always fail with ENOSYS. Some functions are actually named
1945 something starting with __ and the normal name is an alias. */
1946 #if defined __stub_$2 || defined __stub___$2
1947 choke me
1948 #endif
1949
1950 int
1951 main ()
1952 {
1953 return $2 ();
1954 ;
1955 return 0;
1956 }
1957 _ACEOF
1958 if ac_fn_c_try_link "$LINENO"; then :
1959 eval "$3=yes"
1960 else
1961 eval "$3=no"
1962 fi
1963 rm -f core conftest.err conftest.$ac_objext \
1964 conftest$ac_exeext conftest.$ac_ext
1965 fi
1966 eval ac_res=\$$3
1967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1968 $as_echo "$ac_res" >&6; }
1969 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1970
1971 } # ac_fn_c_check_func
1972
1973 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1974 # --------------------------------------------
1975 # Tries to find the compile-time value of EXPR in a program that includes
1976 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1977 # computed
1978 ac_fn_c_compute_int ()
1979 {
1980 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1981 if test "$cross_compiling" = yes; then
1982 # Depending upon the size, compute the lo and hi bounds.
1983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1984 /* end confdefs.h. */
1985 $4
1986 int
1987 main ()
1988 {
1989 static int test_array [1 - 2 * !(($2) >= 0)];
1990 test_array [0] = 0;
1991 return test_array [0];
1992
1993 ;
1994 return 0;
1995 }
1996 _ACEOF
1997 if ac_fn_c_try_compile "$LINENO"; then :
1998 ac_lo=0 ac_mid=0
1999 while :; do
2000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2001 /* end confdefs.h. */
2002 $4
2003 int
2004 main ()
2005 {
2006 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2007 test_array [0] = 0;
2008 return test_array [0];
2009
2010 ;
2011 return 0;
2012 }
2013 _ACEOF
2014 if ac_fn_c_try_compile "$LINENO"; then :
2015 ac_hi=$ac_mid; break
2016 else
2017 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2018 if test $ac_lo -le $ac_mid; then
2019 ac_lo= ac_hi=
2020 break
2021 fi
2022 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2023 fi
2024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2025 done
2026 else
2027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2028 /* end confdefs.h. */
2029 $4
2030 int
2031 main ()
2032 {
2033 static int test_array [1 - 2 * !(($2) < 0)];
2034 test_array [0] = 0;
2035 return test_array [0];
2036
2037 ;
2038 return 0;
2039 }
2040 _ACEOF
2041 if ac_fn_c_try_compile "$LINENO"; then :
2042 ac_hi=-1 ac_mid=-1
2043 while :; do
2044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2045 /* end confdefs.h. */
2046 $4
2047 int
2048 main ()
2049 {
2050 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2051 test_array [0] = 0;
2052 return test_array [0];
2053
2054 ;
2055 return 0;
2056 }
2057 _ACEOF
2058 if ac_fn_c_try_compile "$LINENO"; then :
2059 ac_lo=$ac_mid; break
2060 else
2061 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2062 if test $ac_mid -le $ac_hi; then
2063 ac_lo= ac_hi=
2064 break
2065 fi
2066 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2067 fi
2068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2069 done
2070 else
2071 ac_lo= ac_hi=
2072 fi
2073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2074 fi
2075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2076 # Binary search between lo and hi bounds.
2077 while test "x$ac_lo" != "x$ac_hi"; do
2078 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2080 /* end confdefs.h. */
2081 $4
2082 int
2083 main ()
2084 {
2085 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2086 test_array [0] = 0;
2087 return test_array [0];
2088
2089 ;
2090 return 0;
2091 }
2092 _ACEOF
2093 if ac_fn_c_try_compile "$LINENO"; then :
2094 ac_hi=$ac_mid
2095 else
2096 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2097 fi
2098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2099 done
2100 case $ac_lo in #((
2101 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2102 '') ac_retval=1 ;;
2103 esac
2104 else
2105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2106 /* end confdefs.h. */
2107 $4
2108 static long int longval () { return $2; }
2109 static unsigned long int ulongval () { return $2; }
2110 #include <stdio.h>
2111 #include <stdlib.h>
2112 int
2113 main ()
2114 {
2115
2116 FILE *f = fopen ("conftest.val", "w");
2117 if (! f)
2118 return 1;
2119 if (($2) < 0)
2120 {
2121 long int i = longval ();
2122 if (i != ($2))
2123 return 1;
2124 fprintf (f, "%ld", i);
2125 }
2126 else
2127 {
2128 unsigned long int i = ulongval ();
2129 if (i != ($2))
2130 return 1;
2131 fprintf (f, "%lu", i);
2132 }
2133 /* Do not output a trailing newline, as this causes \r\n confusion
2134 on some platforms. */
2135 return ferror (f) || fclose (f) != 0;
2136
2137 ;
2138 return 0;
2139 }
2140 _ACEOF
2141 if ac_fn_c_try_run "$LINENO"; then :
2142 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2143 else
2144 ac_retval=1
2145 fi
2146 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2147 conftest.$ac_objext conftest.beam conftest.$ac_ext
2148 rm -f conftest.val
2149
2150 fi
2151 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2152 as_fn_set_status $ac_retval
2153
2154 } # ac_fn_c_compute_int
2155
2156 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2157 # ----------------------------------------------------
2158 # Tries to find if the field MEMBER exists in type AGGR, after including
2159 # INCLUDES, setting cache variable VAR accordingly.
2160 ac_fn_c_check_member ()
2161 {
2162 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2164 $as_echo_n "checking for $2.$3... " >&6; }
2165 if eval \${$4+:} false; then :
2166 $as_echo_n "(cached) " >&6
2167 else
2168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2169 /* end confdefs.h. */
2170 $5
2171 int
2172 main ()
2173 {
2174 static $2 ac_aggr;
2175 if (ac_aggr.$3)
2176 return 0;
2177 ;
2178 return 0;
2179 }
2180 _ACEOF
2181 if ac_fn_c_try_compile "$LINENO"; then :
2182 eval "$4=yes"
2183 else
2184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2185 /* end confdefs.h. */
2186 $5
2187 int
2188 main ()
2189 {
2190 static $2 ac_aggr;
2191 if (sizeof ac_aggr.$3)
2192 return 0;
2193 ;
2194 return 0;
2195 }
2196 _ACEOF
2197 if ac_fn_c_try_compile "$LINENO"; then :
2198 eval "$4=yes"
2199 else
2200 eval "$4=no"
2201 fi
2202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2203 fi
2204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2205 fi
2206 eval ac_res=\$$4
2207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2208 $as_echo "$ac_res" >&6; }
2209 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2210
2211 } # ac_fn_c_check_member
2212
2213 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2214 # ---------------------------------------------
2215 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2216 # accordingly.
2217 ac_fn_c_check_decl ()
2218 {
2219 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2220 as_decl_name=`echo $2|sed 's/ *(.*//'`
2221 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2223 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2224 if eval \${$3+:} false; then :
2225 $as_echo_n "(cached) " >&6
2226 else
2227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2228 /* end confdefs.h. */
2229 $4
2230 int
2231 main ()
2232 {
2233 #ifndef $as_decl_name
2234 #ifdef __cplusplus
2235 (void) $as_decl_use;
2236 #else
2237 (void) $as_decl_name;
2238 #endif
2239 #endif
2240
2241 ;
2242 return 0;
2243 }
2244 _ACEOF
2245 if ac_fn_c_try_compile "$LINENO"; then :
2246 eval "$3=yes"
2247 else
2248 eval "$3=no"
2249 fi
2250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2251 fi
2252 eval ac_res=\$$3
2253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2254 $as_echo "$ac_res" >&6; }
2255 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2256
2257 } # ac_fn_c_check_decl
2258 cat >config.log <<_ACEOF
2259 This file contains any messages produced by compilers while
2260 running configure, to aid debugging if configure makes a mistake.
2261
2262 It was created by binutils $as_me 2.37.50, which was
2263 generated by GNU Autoconf 2.69. Invocation command line was
2264
2265 $ $0 $@
2266
2267 _ACEOF
2268 exec 5>>config.log
2269 {
2270 cat <<_ASUNAME
2271 ## --------- ##
2272 ## Platform. ##
2273 ## --------- ##
2274
2275 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2276 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2277 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2278 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2279 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2280
2281 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2282 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2283
2284 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2285 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2286 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2287 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2288 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2289 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2290 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2291
2292 _ASUNAME
2293
2294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2295 for as_dir in $PATH
2296 do
2297 IFS=$as_save_IFS
2298 test -z "$as_dir" && as_dir=.
2299 $as_echo "PATH: $as_dir"
2300 done
2301 IFS=$as_save_IFS
2302
2303 } >&5
2304
2305 cat >&5 <<_ACEOF
2306
2307
2308 ## ----------- ##
2309 ## Core tests. ##
2310 ## ----------- ##
2311
2312 _ACEOF
2313
2314
2315 # Keep a trace of the command line.
2316 # Strip out --no-create and --no-recursion so they do not pile up.
2317 # Strip out --silent because we don't want to record it for future runs.
2318 # Also quote any args containing shell meta-characters.
2319 # Make two passes to allow for proper duplicate-argument suppression.
2320 ac_configure_args=
2321 ac_configure_args0=
2322 ac_configure_args1=
2323 ac_must_keep_next=false
2324 for ac_pass in 1 2
2325 do
2326 for ac_arg
2327 do
2328 case $ac_arg in
2329 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2330 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2331 | -silent | --silent | --silen | --sile | --sil)
2332 continue ;;
2333 *\'*)
2334 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2335 esac
2336 case $ac_pass in
2337 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2338 2)
2339 as_fn_append ac_configure_args1 " '$ac_arg'"
2340 if test $ac_must_keep_next = true; then
2341 ac_must_keep_next=false # Got value, back to normal.
2342 else
2343 case $ac_arg in
2344 *=* | --config-cache | -C | -disable-* | --disable-* \
2345 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2346 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2347 | -with-* | --with-* | -without-* | --without-* | --x)
2348 case "$ac_configure_args0 " in
2349 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2350 esac
2351 ;;
2352 -* ) ac_must_keep_next=true ;;
2353 esac
2354 fi
2355 as_fn_append ac_configure_args " '$ac_arg'"
2356 ;;
2357 esac
2358 done
2359 done
2360 { ac_configure_args0=; unset ac_configure_args0;}
2361 { ac_configure_args1=; unset ac_configure_args1;}
2362
2363 # When interrupted or exit'd, cleanup temporary files, and complete
2364 # config.log. We remove comments because anyway the quotes in there
2365 # would cause problems or look ugly.
2366 # WARNING: Use '\'' to represent an apostrophe within the trap.
2367 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2368 trap 'exit_status=$?
2369 # Save into config.log some information that might help in debugging.
2370 {
2371 echo
2372
2373 $as_echo "## ---------------- ##
2374 ## Cache variables. ##
2375 ## ---------------- ##"
2376 echo
2377 # The following way of writing the cache mishandles newlines in values,
2378 (
2379 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2380 eval ac_val=\$$ac_var
2381 case $ac_val in #(
2382 *${as_nl}*)
2383 case $ac_var in #(
2384 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2385 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2386 esac
2387 case $ac_var in #(
2388 _ | IFS | as_nl) ;; #(
2389 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2390 *) { eval $ac_var=; unset $ac_var;} ;;
2391 esac ;;
2392 esac
2393 done
2394 (set) 2>&1 |
2395 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2396 *${as_nl}ac_space=\ *)
2397 sed -n \
2398 "s/'\''/'\''\\\\'\'''\''/g;
2399 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2400 ;; #(
2401 *)
2402 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2403 ;;
2404 esac |
2405 sort
2406 )
2407 echo
2408
2409 $as_echo "## ----------------- ##
2410 ## Output variables. ##
2411 ## ----------------- ##"
2412 echo
2413 for ac_var in $ac_subst_vars
2414 do
2415 eval ac_val=\$$ac_var
2416 case $ac_val in
2417 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2418 esac
2419 $as_echo "$ac_var='\''$ac_val'\''"
2420 done | sort
2421 echo
2422
2423 if test -n "$ac_subst_files"; then
2424 $as_echo "## ------------------- ##
2425 ## File substitutions. ##
2426 ## ------------------- ##"
2427 echo
2428 for ac_var in $ac_subst_files
2429 do
2430 eval ac_val=\$$ac_var
2431 case $ac_val in
2432 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2433 esac
2434 $as_echo "$ac_var='\''$ac_val'\''"
2435 done | sort
2436 echo
2437 fi
2438
2439 if test -s confdefs.h; then
2440 $as_echo "## ----------- ##
2441 ## confdefs.h. ##
2442 ## ----------- ##"
2443 echo
2444 cat confdefs.h
2445 echo
2446 fi
2447 test "$ac_signal" != 0 &&
2448 $as_echo "$as_me: caught signal $ac_signal"
2449 $as_echo "$as_me: exit $exit_status"
2450 } >&5
2451 rm -f core *.core core.conftest.* &&
2452 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2453 exit $exit_status
2454 ' 0
2455 for ac_signal in 1 2 13 15; do
2456 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2457 done
2458 ac_signal=0
2459
2460 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2461 rm -f -r conftest* confdefs.h
2462
2463 $as_echo "/* confdefs.h */" > confdefs.h
2464
2465 # Predefined preprocessor variables.
2466
2467 cat >>confdefs.h <<_ACEOF
2468 #define PACKAGE_NAME "$PACKAGE_NAME"
2469 _ACEOF
2470
2471 cat >>confdefs.h <<_ACEOF
2472 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2473 _ACEOF
2474
2475 cat >>confdefs.h <<_ACEOF
2476 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2477 _ACEOF
2478
2479 cat >>confdefs.h <<_ACEOF
2480 #define PACKAGE_STRING "$PACKAGE_STRING"
2481 _ACEOF
2482
2483 cat >>confdefs.h <<_ACEOF
2484 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2485 _ACEOF
2486
2487 cat >>confdefs.h <<_ACEOF
2488 #define PACKAGE_URL "$PACKAGE_URL"
2489 _ACEOF
2490
2491
2492 # Let the site file select an alternate cache file if it wants to.
2493 # Prefer an explicitly selected file to automatically selected ones.
2494 ac_site_file1=NONE
2495 ac_site_file2=NONE
2496 if test -n "$CONFIG_SITE"; then
2497 # We do not want a PATH search for config.site.
2498 case $CONFIG_SITE in #((
2499 -*) ac_site_file1=./$CONFIG_SITE;;
2500 */*) ac_site_file1=$CONFIG_SITE;;
2501 *) ac_site_file1=./$CONFIG_SITE;;
2502 esac
2503 elif test "x$prefix" != xNONE; then
2504 ac_site_file1=$prefix/share/config.site
2505 ac_site_file2=$prefix/etc/config.site
2506 else
2507 ac_site_file1=$ac_default_prefix/share/config.site
2508 ac_site_file2=$ac_default_prefix/etc/config.site
2509 fi
2510 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2511 do
2512 test "x$ac_site_file" = xNONE && continue
2513 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2514 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2515 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2516 sed 's/^/| /' "$ac_site_file" >&5
2517 . "$ac_site_file" \
2518 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2519 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2520 as_fn_error $? "failed to load site script $ac_site_file
2521 See \`config.log' for more details" "$LINENO" 5; }
2522 fi
2523 done
2524
2525 if test -r "$cache_file"; then
2526 # Some versions of bash will fail to source /dev/null (special files
2527 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2528 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2529 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2530 $as_echo "$as_me: loading cache $cache_file" >&6;}
2531 case $cache_file in
2532 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2533 *) . "./$cache_file";;
2534 esac
2535 fi
2536 else
2537 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2538 $as_echo "$as_me: creating cache $cache_file" >&6;}
2539 >$cache_file
2540 fi
2541
2542 as_fn_append ac_header_list " stdlib.h"
2543 as_fn_append ac_header_list " unistd.h"
2544 as_fn_append ac_header_list " sys/param.h"
2545 # Check that the precious variables saved in the cache have kept the same
2546 # value.
2547 ac_cache_corrupted=false
2548 for ac_var in $ac_precious_vars; do
2549 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2550 eval ac_new_set=\$ac_env_${ac_var}_set
2551 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2552 eval ac_new_val=\$ac_env_${ac_var}_value
2553 case $ac_old_set,$ac_new_set in
2554 set,)
2555 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2556 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2557 ac_cache_corrupted=: ;;
2558 ,set)
2559 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2560 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2561 ac_cache_corrupted=: ;;
2562 ,);;
2563 *)
2564 if test "x$ac_old_val" != "x$ac_new_val"; then
2565 # differences in whitespace do not lead to failure.
2566 ac_old_val_w=`echo x $ac_old_val`
2567 ac_new_val_w=`echo x $ac_new_val`
2568 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2569 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2570 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2571 ac_cache_corrupted=:
2572 else
2573 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2574 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2575 eval $ac_var=\$ac_old_val
2576 fi
2577 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2578 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2579 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2580 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2581 fi;;
2582 esac
2583 # Pass precious variables to config.status.
2584 if test "$ac_new_set" = set; then
2585 case $ac_new_val in
2586 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2587 *) ac_arg=$ac_var=$ac_new_val ;;
2588 esac
2589 case " $ac_configure_args " in
2590 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2591 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2592 esac
2593 fi
2594 done
2595 if $ac_cache_corrupted; then
2596 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2597 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2598 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2599 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2600 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2601 fi
2602 ## -------------------- ##
2603 ## Main body of script. ##
2604 ## -------------------- ##
2605
2606 ac_ext=c
2607 ac_cpp='$CPP $CPPFLAGS'
2608 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2609 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2610 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2611
2612
2613
2614
2615
2616
2617
2618 ac_aux_dir=
2619 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2620 if test -f "$ac_dir/install-sh"; then
2621 ac_aux_dir=$ac_dir
2622 ac_install_sh="$ac_aux_dir/install-sh -c"
2623 break
2624 elif test -f "$ac_dir/install.sh"; then
2625 ac_aux_dir=$ac_dir
2626 ac_install_sh="$ac_aux_dir/install.sh -c"
2627 break
2628 elif test -f "$ac_dir/shtool"; then
2629 ac_aux_dir=$ac_dir
2630 ac_install_sh="$ac_aux_dir/shtool install -c"
2631 break
2632 fi
2633 done
2634 if test -z "$ac_aux_dir"; then
2635 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2636 fi
2637
2638 # These three variables are undocumented and unsupported,
2639 # and are intended to be withdrawn in a future Autoconf release.
2640 # They can cause serious problems if a builder's source tree is in a directory
2641 # whose full name contains unusual characters.
2642 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2643 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2644 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2645
2646
2647 # Make sure we can run config.sub.
2648 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2649 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2650
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2652 $as_echo_n "checking build system type... " >&6; }
2653 if ${ac_cv_build+:} false; then :
2654 $as_echo_n "(cached) " >&6
2655 else
2656 ac_build_alias=$build_alias
2657 test "x$ac_build_alias" = x &&
2658 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2659 test "x$ac_build_alias" = x &&
2660 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2661 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2662 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2663
2664 fi
2665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2666 $as_echo "$ac_cv_build" >&6; }
2667 case $ac_cv_build in
2668 *-*-*) ;;
2669 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2670 esac
2671 build=$ac_cv_build
2672 ac_save_IFS=$IFS; IFS='-'
2673 set x $ac_cv_build
2674 shift
2675 build_cpu=$1
2676 build_vendor=$2
2677 shift; shift
2678 # Remember, the first character of IFS is used to create $*,
2679 # except with old shells:
2680 build_os=$*
2681 IFS=$ac_save_IFS
2682 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2683
2684
2685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2686 $as_echo_n "checking host system type... " >&6; }
2687 if ${ac_cv_host+:} false; then :
2688 $as_echo_n "(cached) " >&6
2689 else
2690 if test "x$host_alias" = x; then
2691 ac_cv_host=$ac_cv_build
2692 else
2693 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2694 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2695 fi
2696
2697 fi
2698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2699 $as_echo "$ac_cv_host" >&6; }
2700 case $ac_cv_host in
2701 *-*-*) ;;
2702 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2703 esac
2704 host=$ac_cv_host
2705 ac_save_IFS=$IFS; IFS='-'
2706 set x $ac_cv_host
2707 shift
2708 host_cpu=$1
2709 host_vendor=$2
2710 shift; shift
2711 # Remember, the first character of IFS is used to create $*,
2712 # except with old shells:
2713 host_os=$*
2714 IFS=$ac_save_IFS
2715 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2716
2717
2718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2719 $as_echo_n "checking target system type... " >&6; }
2720 if ${ac_cv_target+:} false; then :
2721 $as_echo_n "(cached) " >&6
2722 else
2723 if test "x$target_alias" = x; then
2724 ac_cv_target=$ac_cv_host
2725 else
2726 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2727 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2728 fi
2729
2730 fi
2731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2732 $as_echo "$ac_cv_target" >&6; }
2733 case $ac_cv_target in
2734 *-*-*) ;;
2735 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2736 esac
2737 target=$ac_cv_target
2738 ac_save_IFS=$IFS; IFS='-'
2739 set x $ac_cv_target
2740 shift
2741 target_cpu=$1
2742 target_vendor=$2
2743 shift; shift
2744 # Remember, the first character of IFS is used to create $*,
2745 # except with old shells:
2746 target_os=$*
2747 IFS=$ac_save_IFS
2748 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2749
2750
2751 # The aliases save the names the user supplied, while $host etc.
2752 # will get canonicalized.
2753 test -n "$target_alias" &&
2754 test "$program_prefix$program_suffix$program_transform_name" = \
2755 NONENONEs,x,x, &&
2756 program_prefix=${target_alias}-
2757
2758 am__api_version='1.15'
2759
2760 # Find a good install program. We prefer a C program (faster),
2761 # so one script is as good as another. But avoid the broken or
2762 # incompatible versions:
2763 # SysV /etc/install, /usr/sbin/install
2764 # SunOS /usr/etc/install
2765 # IRIX /sbin/install
2766 # AIX /bin/install
2767 # AmigaOS /C/install, which installs bootblocks on floppy discs
2768 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2769 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2770 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2771 # OS/2's system install, which has a completely different semantic
2772 # ./install, which can be erroneously created by make from ./install.sh.
2773 # Reject install programs that cannot install multiple files.
2774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2775 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2776 if test -z "$INSTALL"; then
2777 if ${ac_cv_path_install+:} false; then :
2778 $as_echo_n "(cached) " >&6
2779 else
2780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2781 for as_dir in $PATH
2782 do
2783 IFS=$as_save_IFS
2784 test -z "$as_dir" && as_dir=.
2785 # Account for people who put trailing slashes in PATH elements.
2786 case $as_dir/ in #((
2787 ./ | .// | /[cC]/* | \
2788 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2789 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2790 /usr/ucb/* ) ;;
2791 *)
2792 # OSF1 and SCO ODT 3.0 have their own names for install.
2793 # Don't use installbsd from OSF since it installs stuff as root
2794 # by default.
2795 for ac_prog in ginstall scoinst install; do
2796 for ac_exec_ext in '' $ac_executable_extensions; do
2797 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2798 if test $ac_prog = install &&
2799 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2800 # AIX install. It has an incompatible calling convention.
2801 :
2802 elif test $ac_prog = install &&
2803 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2804 # program-specific install script used by HP pwplus--don't use.
2805 :
2806 else
2807 rm -rf conftest.one conftest.two conftest.dir
2808 echo one > conftest.one
2809 echo two > conftest.two
2810 mkdir conftest.dir
2811 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2812 test -s conftest.one && test -s conftest.two &&
2813 test -s conftest.dir/conftest.one &&
2814 test -s conftest.dir/conftest.two
2815 then
2816 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2817 break 3
2818 fi
2819 fi
2820 fi
2821 done
2822 done
2823 ;;
2824 esac
2825
2826 done
2827 IFS=$as_save_IFS
2828
2829 rm -rf conftest.one conftest.two conftest.dir
2830
2831 fi
2832 if test "${ac_cv_path_install+set}" = set; then
2833 INSTALL=$ac_cv_path_install
2834 else
2835 # As a last resort, use the slow shell script. Don't cache a
2836 # value for INSTALL within a source directory, because that will
2837 # break other packages using the cache if that directory is
2838 # removed, or if the value is a relative name.
2839 INSTALL=$ac_install_sh
2840 fi
2841 fi
2842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2843 $as_echo "$INSTALL" >&6; }
2844
2845 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2846 # It thinks the first close brace ends the variable substitution.
2847 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2848
2849 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2850
2851 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2852
2853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2854 $as_echo_n "checking whether build environment is sane... " >&6; }
2855 # Reject unsafe characters in $srcdir or the absolute working directory
2856 # name. Accept space and tab only in the latter.
2857 am_lf='
2858 '
2859 case `pwd` in
2860 *[\\\"\#\$\&\'\`$am_lf]*)
2861 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2862 esac
2863 case $srcdir in
2864 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2865 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2866 esac
2867
2868 # Do 'set' in a subshell so we don't clobber the current shell's
2869 # arguments. Must try -L first in case configure is actually a
2870 # symlink; some systems play weird games with the mod time of symlinks
2871 # (eg FreeBSD returns the mod time of the symlink's containing
2872 # directory).
2873 if (
2874 am_has_slept=no
2875 for am_try in 1 2; do
2876 echo "timestamp, slept: $am_has_slept" > conftest.file
2877 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2878 if test "$*" = "X"; then
2879 # -L didn't work.
2880 set X `ls -t "$srcdir/configure" conftest.file`
2881 fi
2882 if test "$*" != "X $srcdir/configure conftest.file" \
2883 && test "$*" != "X conftest.file $srcdir/configure"; then
2884
2885 # If neither matched, then we have a broken ls. This can happen
2886 # if, for instance, CONFIG_SHELL is bash and it inherits a
2887 # broken ls alias from the environment. This has actually
2888 # happened. Such a system could not be considered "sane".
2889 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2890 alias in your environment" "$LINENO" 5
2891 fi
2892 if test "$2" = conftest.file || test $am_try -eq 2; then
2893 break
2894 fi
2895 # Just in case.
2896 sleep 1
2897 am_has_slept=yes
2898 done
2899 test "$2" = conftest.file
2900 )
2901 then
2902 # Ok.
2903 :
2904 else
2905 as_fn_error $? "newly created file is older than distributed files!
2906 Check your system clock" "$LINENO" 5
2907 fi
2908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2909 $as_echo "yes" >&6; }
2910 # If we didn't sleep, we still need to ensure time stamps of config.status and
2911 # generated files are strictly newer.
2912 am_sleep_pid=
2913 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2914 ( sleep 1 ) &
2915 am_sleep_pid=$!
2916 fi
2917
2918 rm -f conftest.file
2919
2920 test "$program_prefix" != NONE &&
2921 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2922 # Use a double $ so make ignores it.
2923 test "$program_suffix" != NONE &&
2924 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2925 # Double any \ or $.
2926 # By default was `s,x,x', remove it if useless.
2927 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2928 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2929
2930 # Expand $ac_aux_dir to an absolute path.
2931 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2932
2933 if test x"${MISSING+set}" != xset; then
2934 case $am_aux_dir in
2935 *\ * | *\ *)
2936 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2937 *)
2938 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2939 esac
2940 fi
2941 # Use eval to expand $SHELL
2942 if eval "$MISSING --is-lightweight"; then
2943 am_missing_run="$MISSING "
2944 else
2945 am_missing_run=
2946 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2947 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2948 fi
2949
2950 if test x"${install_sh+set}" != xset; then
2951 case $am_aux_dir in
2952 *\ * | *\ *)
2953 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2954 *)
2955 install_sh="\${SHELL} $am_aux_dir/install-sh"
2956 esac
2957 fi
2958
2959 # Installed binaries are usually stripped using 'strip' when the user
2960 # run "make install-strip". However 'strip' might not be the right
2961 # tool to use in cross-compilation environments, therefore Automake
2962 # will honor the 'STRIP' environment variable to overrule this program.
2963 if test "$cross_compiling" != no; then
2964 if test -n "$ac_tool_prefix"; then
2965 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2966 set dummy ${ac_tool_prefix}strip; ac_word=$2
2967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2968 $as_echo_n "checking for $ac_word... " >&6; }
2969 if ${ac_cv_prog_STRIP+:} false; then :
2970 $as_echo_n "(cached) " >&6
2971 else
2972 if test -n "$STRIP"; then
2973 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2974 else
2975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2976 for as_dir in $PATH
2977 do
2978 IFS=$as_save_IFS
2979 test -z "$as_dir" && as_dir=.
2980 for ac_exec_ext in '' $ac_executable_extensions; do
2981 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2982 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2984 break 2
2985 fi
2986 done
2987 done
2988 IFS=$as_save_IFS
2989
2990 fi
2991 fi
2992 STRIP=$ac_cv_prog_STRIP
2993 if test -n "$STRIP"; then
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2995 $as_echo "$STRIP" >&6; }
2996 else
2997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2998 $as_echo "no" >&6; }
2999 fi
3000
3001
3002 fi
3003 if test -z "$ac_cv_prog_STRIP"; then
3004 ac_ct_STRIP=$STRIP
3005 # Extract the first word of "strip", so it can be a program name with args.
3006 set dummy strip; ac_word=$2
3007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3008 $as_echo_n "checking for $ac_word... " >&6; }
3009 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3010 $as_echo_n "(cached) " >&6
3011 else
3012 if test -n "$ac_ct_STRIP"; then
3013 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3014 else
3015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3016 for as_dir in $PATH
3017 do
3018 IFS=$as_save_IFS
3019 test -z "$as_dir" && as_dir=.
3020 for ac_exec_ext in '' $ac_executable_extensions; do
3021 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3022 ac_cv_prog_ac_ct_STRIP="strip"
3023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3024 break 2
3025 fi
3026 done
3027 done
3028 IFS=$as_save_IFS
3029
3030 fi
3031 fi
3032 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3033 if test -n "$ac_ct_STRIP"; then
3034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3035 $as_echo "$ac_ct_STRIP" >&6; }
3036 else
3037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3038 $as_echo "no" >&6; }
3039 fi
3040
3041 if test "x$ac_ct_STRIP" = x; then
3042 STRIP=":"
3043 else
3044 case $cross_compiling:$ac_tool_warned in
3045 yes:)
3046 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3047 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3048 ac_tool_warned=yes ;;
3049 esac
3050 STRIP=$ac_ct_STRIP
3051 fi
3052 else
3053 STRIP="$ac_cv_prog_STRIP"
3054 fi
3055
3056 fi
3057 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3058
3059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3060 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3061 if test -z "$MKDIR_P"; then
3062 if ${ac_cv_path_mkdir+:} false; then :
3063 $as_echo_n "(cached) " >&6
3064 else
3065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3066 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3067 do
3068 IFS=$as_save_IFS
3069 test -z "$as_dir" && as_dir=.
3070 for ac_prog in mkdir gmkdir; do
3071 for ac_exec_ext in '' $ac_executable_extensions; do
3072 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3073 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3074 'mkdir (GNU coreutils) '* | \
3075 'mkdir (coreutils) '* | \
3076 'mkdir (fileutils) '4.1*)
3077 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3078 break 3;;
3079 esac
3080 done
3081 done
3082 done
3083 IFS=$as_save_IFS
3084
3085 fi
3086
3087 test -d ./--version && rmdir ./--version
3088 if test "${ac_cv_path_mkdir+set}" = set; then
3089 MKDIR_P="$ac_cv_path_mkdir -p"
3090 else
3091 # As a last resort, use the slow shell script. Don't cache a
3092 # value for MKDIR_P within a source directory, because that will
3093 # break other packages using the cache if that directory is
3094 # removed, or if the value is a relative name.
3095 MKDIR_P="$ac_install_sh -d"
3096 fi
3097 fi
3098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3099 $as_echo "$MKDIR_P" >&6; }
3100
3101 for ac_prog in gawk mawk nawk awk
3102 do
3103 # Extract the first word of "$ac_prog", so it can be a program name with args.
3104 set dummy $ac_prog; ac_word=$2
3105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3106 $as_echo_n "checking for $ac_word... " >&6; }
3107 if ${ac_cv_prog_AWK+:} false; then :
3108 $as_echo_n "(cached) " >&6
3109 else
3110 if test -n "$AWK"; then
3111 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3112 else
3113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3114 for as_dir in $PATH
3115 do
3116 IFS=$as_save_IFS
3117 test -z "$as_dir" && as_dir=.
3118 for ac_exec_ext in '' $ac_executable_extensions; do
3119 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3120 ac_cv_prog_AWK="$ac_prog"
3121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3122 break 2
3123 fi
3124 done
3125 done
3126 IFS=$as_save_IFS
3127
3128 fi
3129 fi
3130 AWK=$ac_cv_prog_AWK
3131 if test -n "$AWK"; then
3132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3133 $as_echo "$AWK" >&6; }
3134 else
3135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3136 $as_echo "no" >&6; }
3137 fi
3138
3139
3140 test -n "$AWK" && break
3141 done
3142
3143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3144 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3145 set x ${MAKE-make}
3146 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3147 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3148 $as_echo_n "(cached) " >&6
3149 else
3150 cat >conftest.make <<\_ACEOF
3151 SHELL = /bin/sh
3152 all:
3153 @echo '@@@%%%=$(MAKE)=@@@%%%'
3154 _ACEOF
3155 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3156 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3157 *@@@%%%=?*=@@@%%%*)
3158 eval ac_cv_prog_make_${ac_make}_set=yes;;
3159 *)
3160 eval ac_cv_prog_make_${ac_make}_set=no;;
3161 esac
3162 rm -f conftest.make
3163 fi
3164 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3166 $as_echo "yes" >&6; }
3167 SET_MAKE=
3168 else
3169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3170 $as_echo "no" >&6; }
3171 SET_MAKE="MAKE=${MAKE-make}"
3172 fi
3173
3174 rm -rf .tst 2>/dev/null
3175 mkdir .tst 2>/dev/null
3176 if test -d .tst; then
3177 am__leading_dot=.
3178 else
3179 am__leading_dot=_
3180 fi
3181 rmdir .tst 2>/dev/null
3182
3183 # Check whether --enable-silent-rules was given.
3184 if test "${enable_silent_rules+set}" = set; then :
3185 enableval=$enable_silent_rules;
3186 fi
3187
3188 case $enable_silent_rules in # (((
3189 yes) AM_DEFAULT_VERBOSITY=0;;
3190 no) AM_DEFAULT_VERBOSITY=1;;
3191 *) AM_DEFAULT_VERBOSITY=1;;
3192 esac
3193 am_make=${MAKE-make}
3194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3195 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3196 if ${am_cv_make_support_nested_variables+:} false; then :
3197 $as_echo_n "(cached) " >&6
3198 else
3199 if $as_echo 'TRUE=$(BAR$(V))
3200 BAR0=false
3201 BAR1=true
3202 V=1
3203 am__doit:
3204 @$(TRUE)
3205 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3206 am_cv_make_support_nested_variables=yes
3207 else
3208 am_cv_make_support_nested_variables=no
3209 fi
3210 fi
3211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3212 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3213 if test $am_cv_make_support_nested_variables = yes; then
3214 AM_V='$(V)'
3215 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3216 else
3217 AM_V=$AM_DEFAULT_VERBOSITY
3218 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3219 fi
3220 AM_BACKSLASH='\'
3221
3222 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3223 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3224 # is not polluted with repeated "-I."
3225 am__isrc=' -I$(srcdir)'
3226 # test to see if srcdir already configured
3227 if test -f $srcdir/config.status; then
3228 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3229 fi
3230 fi
3231
3232 # test whether we have cygpath
3233 if test -z "$CYGPATH_W"; then
3234 if (cygpath --version) >/dev/null 2>/dev/null; then
3235 CYGPATH_W='cygpath -w'
3236 else
3237 CYGPATH_W=echo
3238 fi
3239 fi
3240
3241
3242 # Define the identity of the package.
3243 PACKAGE='binutils'
3244 VERSION='2.37.50'
3245
3246
3247 cat >>confdefs.h <<_ACEOF
3248 #define PACKAGE "$PACKAGE"
3249 _ACEOF
3250
3251
3252 cat >>confdefs.h <<_ACEOF
3253 #define VERSION "$VERSION"
3254 _ACEOF
3255
3256 # Some tools Automake needs.
3257
3258 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3259
3260
3261 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3262
3263
3264 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3265
3266
3267 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3268
3269
3270 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3271
3272 # For better backward compatibility. To be removed once Automake 1.9.x
3273 # dies out for good. For more background, see:
3274 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3275 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3276 mkdir_p='$(MKDIR_P)'
3277
3278 # We need awk for the "check" target (and possibly the TAP driver). The
3279 # system "awk" is bad on some platforms.
3280 # Always define AMTAR for backward compatibility. Yes, it's still used
3281 # in the wild :-( We should find a proper way to deprecate it ...
3282 AMTAR='$${TAR-tar}'
3283
3284
3285 # We'll loop over all known methods to create a tar archive until one works.
3286 _am_tools='gnutar pax cpio none'
3287
3288 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3289
3290
3291
3292
3293
3294
3295 # POSIX will say in a future version that running "rm -f" with no argument
3296 # is OK; and we want to be able to make that assumption in our Makefile
3297 # recipes. So use an aggressive probe to check that the usage we want is
3298 # actually supported "in the wild" to an acceptable degree.
3299 # See automake bug#10828.
3300 # To make any issue more visible, cause the running configure to be aborted
3301 # by default if the 'rm' program in use doesn't match our expectations; the
3302 # user can still override this though.
3303 if rm -f && rm -fr && rm -rf; then : OK; else
3304 cat >&2 <<'END'
3305 Oops!
3306
3307 Your 'rm' program seems unable to run without file operands specified
3308 on the command line, even when the '-f' option is present. This is contrary
3309 to the behaviour of most rm programs out there, and not conforming with
3310 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3311
3312 Please tell bug-automake@gnu.org about your system, including the value
3313 of your $PATH and any error possibly output before this message. This
3314 can help us improve future automake versions.
3315
3316 END
3317 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3318 echo 'Configuration will proceed anyway, since you have set the' >&2
3319 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3320 echo >&2
3321 else
3322 cat >&2 <<'END'
3323 Aborting the configuration process, to ensure you take notice of the issue.
3324
3325 You can download and install GNU coreutils to get an 'rm' implementation
3326 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3327
3328 If you want to complete the configuration process using your problematic
3329 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3330 to "yes", and re-run configure.
3331
3332 END
3333 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3334 fi
3335 fi
3336
3337
3338 ac_ext=c
3339 ac_cpp='$CPP $CPPFLAGS'
3340 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3341 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3342 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3343 if test -n "$ac_tool_prefix"; then
3344 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3345 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3347 $as_echo_n "checking for $ac_word... " >&6; }
3348 if ${ac_cv_prog_CC+:} false; then :
3349 $as_echo_n "(cached) " >&6
3350 else
3351 if test -n "$CC"; then
3352 ac_cv_prog_CC="$CC" # Let the user override the test.
3353 else
3354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3355 for as_dir in $PATH
3356 do
3357 IFS=$as_save_IFS
3358 test -z "$as_dir" && as_dir=.
3359 for ac_exec_ext in '' $ac_executable_extensions; do
3360 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3361 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3363 break 2
3364 fi
3365 done
3366 done
3367 IFS=$as_save_IFS
3368
3369 fi
3370 fi
3371 CC=$ac_cv_prog_CC
3372 if test -n "$CC"; then
3373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3374 $as_echo "$CC" >&6; }
3375 else
3376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3377 $as_echo "no" >&6; }
3378 fi
3379
3380
3381 fi
3382 if test -z "$ac_cv_prog_CC"; then
3383 ac_ct_CC=$CC
3384 # Extract the first word of "gcc", so it can be a program name with args.
3385 set dummy gcc; ac_word=$2
3386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3387 $as_echo_n "checking for $ac_word... " >&6; }
3388 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3389 $as_echo_n "(cached) " >&6
3390 else
3391 if test -n "$ac_ct_CC"; then
3392 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3393 else
3394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3395 for as_dir in $PATH
3396 do
3397 IFS=$as_save_IFS
3398 test -z "$as_dir" && as_dir=.
3399 for ac_exec_ext in '' $ac_executable_extensions; do
3400 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3401 ac_cv_prog_ac_ct_CC="gcc"
3402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3403 break 2
3404 fi
3405 done
3406 done
3407 IFS=$as_save_IFS
3408
3409 fi
3410 fi
3411 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3412 if test -n "$ac_ct_CC"; then
3413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3414 $as_echo "$ac_ct_CC" >&6; }
3415 else
3416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3417 $as_echo "no" >&6; }
3418 fi
3419
3420 if test "x$ac_ct_CC" = x; then
3421 CC=""
3422 else
3423 case $cross_compiling:$ac_tool_warned in
3424 yes:)
3425 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3426 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3427 ac_tool_warned=yes ;;
3428 esac
3429 CC=$ac_ct_CC
3430 fi
3431 else
3432 CC="$ac_cv_prog_CC"
3433 fi
3434
3435 if test -z "$CC"; then
3436 if test -n "$ac_tool_prefix"; then
3437 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3438 set dummy ${ac_tool_prefix}cc; ac_word=$2
3439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3440 $as_echo_n "checking for $ac_word... " >&6; }
3441 if ${ac_cv_prog_CC+:} false; then :
3442 $as_echo_n "(cached) " >&6
3443 else
3444 if test -n "$CC"; then
3445 ac_cv_prog_CC="$CC" # Let the user override the test.
3446 else
3447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3448 for as_dir in $PATH
3449 do
3450 IFS=$as_save_IFS
3451 test -z "$as_dir" && as_dir=.
3452 for ac_exec_ext in '' $ac_executable_extensions; do
3453 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3454 ac_cv_prog_CC="${ac_tool_prefix}cc"
3455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3456 break 2
3457 fi
3458 done
3459 done
3460 IFS=$as_save_IFS
3461
3462 fi
3463 fi
3464 CC=$ac_cv_prog_CC
3465 if test -n "$CC"; then
3466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3467 $as_echo "$CC" >&6; }
3468 else
3469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3470 $as_echo "no" >&6; }
3471 fi
3472
3473
3474 fi
3475 fi
3476 if test -z "$CC"; then
3477 # Extract the first word of "cc", so it can be a program name with args.
3478 set dummy cc; ac_word=$2
3479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3480 $as_echo_n "checking for $ac_word... " >&6; }
3481 if ${ac_cv_prog_CC+:} false; then :
3482 $as_echo_n "(cached) " >&6
3483 else
3484 if test -n "$CC"; then
3485 ac_cv_prog_CC="$CC" # Let the user override the test.
3486 else
3487 ac_prog_rejected=no
3488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3489 for as_dir in $PATH
3490 do
3491 IFS=$as_save_IFS
3492 test -z "$as_dir" && as_dir=.
3493 for ac_exec_ext in '' $ac_executable_extensions; do
3494 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3495 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3496 ac_prog_rejected=yes
3497 continue
3498 fi
3499 ac_cv_prog_CC="cc"
3500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3501 break 2
3502 fi
3503 done
3504 done
3505 IFS=$as_save_IFS
3506
3507 if test $ac_prog_rejected = yes; then
3508 # We found a bogon in the path, so make sure we never use it.
3509 set dummy $ac_cv_prog_CC
3510 shift
3511 if test $# != 0; then
3512 # We chose a different compiler from the bogus one.
3513 # However, it has the same basename, so the bogon will be chosen
3514 # first if we set CC to just the basename; use the full file name.
3515 shift
3516 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3517 fi
3518 fi
3519 fi
3520 fi
3521 CC=$ac_cv_prog_CC
3522 if test -n "$CC"; then
3523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3524 $as_echo "$CC" >&6; }
3525 else
3526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3527 $as_echo "no" >&6; }
3528 fi
3529
3530
3531 fi
3532 if test -z "$CC"; then
3533 if test -n "$ac_tool_prefix"; then
3534 for ac_prog in cl.exe
3535 do
3536 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3537 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3539 $as_echo_n "checking for $ac_word... " >&6; }
3540 if ${ac_cv_prog_CC+:} false; then :
3541 $as_echo_n "(cached) " >&6
3542 else
3543 if test -n "$CC"; then
3544 ac_cv_prog_CC="$CC" # Let the user override the test.
3545 else
3546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3547 for as_dir in $PATH
3548 do
3549 IFS=$as_save_IFS
3550 test -z "$as_dir" && as_dir=.
3551 for ac_exec_ext in '' $ac_executable_extensions; do
3552 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3553 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3555 break 2
3556 fi
3557 done
3558 done
3559 IFS=$as_save_IFS
3560
3561 fi
3562 fi
3563 CC=$ac_cv_prog_CC
3564 if test -n "$CC"; then
3565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3566 $as_echo "$CC" >&6; }
3567 else
3568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3569 $as_echo "no" >&6; }
3570 fi
3571
3572
3573 test -n "$CC" && break
3574 done
3575 fi
3576 if test -z "$CC"; then
3577 ac_ct_CC=$CC
3578 for ac_prog in cl.exe
3579 do
3580 # Extract the first word of "$ac_prog", so it can be a program name with args.
3581 set dummy $ac_prog; ac_word=$2
3582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3583 $as_echo_n "checking for $ac_word... " >&6; }
3584 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3585 $as_echo_n "(cached) " >&6
3586 else
3587 if test -n "$ac_ct_CC"; then
3588 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3589 else
3590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3591 for as_dir in $PATH
3592 do
3593 IFS=$as_save_IFS
3594 test -z "$as_dir" && as_dir=.
3595 for ac_exec_ext in '' $ac_executable_extensions; do
3596 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3597 ac_cv_prog_ac_ct_CC="$ac_prog"
3598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3599 break 2
3600 fi
3601 done
3602 done
3603 IFS=$as_save_IFS
3604
3605 fi
3606 fi
3607 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3608 if test -n "$ac_ct_CC"; then
3609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3610 $as_echo "$ac_ct_CC" >&6; }
3611 else
3612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3613 $as_echo "no" >&6; }
3614 fi
3615
3616
3617 test -n "$ac_ct_CC" && break
3618 done
3619
3620 if test "x$ac_ct_CC" = x; then
3621 CC=""
3622 else
3623 case $cross_compiling:$ac_tool_warned in
3624 yes:)
3625 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3626 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3627 ac_tool_warned=yes ;;
3628 esac
3629 CC=$ac_ct_CC
3630 fi
3631 fi
3632
3633 fi
3634
3635
3636 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3637 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3638 as_fn_error $? "no acceptable C compiler found in \$PATH
3639 See \`config.log' for more details" "$LINENO" 5; }
3640
3641 # Provide some information about the compiler.
3642 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3643 set X $ac_compile
3644 ac_compiler=$2
3645 for ac_option in --version -v -V -qversion; do
3646 { { ac_try="$ac_compiler $ac_option >&5"
3647 case "(($ac_try" in
3648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3649 *) ac_try_echo=$ac_try;;
3650 esac
3651 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3652 $as_echo "$ac_try_echo"; } >&5
3653 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3654 ac_status=$?
3655 if test -s conftest.err; then
3656 sed '10a\
3657 ... rest of stderr output deleted ...
3658 10q' conftest.err >conftest.er1
3659 cat conftest.er1 >&5
3660 fi
3661 rm -f conftest.er1 conftest.err
3662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3663 test $ac_status = 0; }
3664 done
3665
3666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3667 /* end confdefs.h. */
3668
3669 int
3670 main ()
3671 {
3672
3673 ;
3674 return 0;
3675 }
3676 _ACEOF
3677 ac_clean_files_save=$ac_clean_files
3678 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3679 # Try to create an executable without -o first, disregard a.out.
3680 # It will help us diagnose broken compilers, and finding out an intuition
3681 # of exeext.
3682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3683 $as_echo_n "checking whether the C compiler works... " >&6; }
3684 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3685
3686 # The possible output files:
3687 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3688
3689 ac_rmfiles=
3690 for ac_file in $ac_files
3691 do
3692 case $ac_file in
3693 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3694 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3695 esac
3696 done
3697 rm -f $ac_rmfiles
3698
3699 if { { ac_try="$ac_link_default"
3700 case "(($ac_try" in
3701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3702 *) ac_try_echo=$ac_try;;
3703 esac
3704 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3705 $as_echo "$ac_try_echo"; } >&5
3706 (eval "$ac_link_default") 2>&5
3707 ac_status=$?
3708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3709 test $ac_status = 0; }; then :
3710 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3711 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3712 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3713 # so that the user can short-circuit this test for compilers unknown to
3714 # Autoconf.
3715 for ac_file in $ac_files ''
3716 do
3717 test -f "$ac_file" || continue
3718 case $ac_file in
3719 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3720 ;;
3721 [ab].out )
3722 # We found the default executable, but exeext='' is most
3723 # certainly right.
3724 break;;
3725 *.* )
3726 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3727 then :; else
3728 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3729 fi
3730 # We set ac_cv_exeext here because the later test for it is not
3731 # safe: cross compilers may not add the suffix if given an `-o'
3732 # argument, so we may need to know it at that point already.
3733 # Even if this section looks crufty: it has the advantage of
3734 # actually working.
3735 break;;
3736 * )
3737 break;;
3738 esac
3739 done
3740 test "$ac_cv_exeext" = no && ac_cv_exeext=
3741
3742 else
3743 ac_file=''
3744 fi
3745 if test -z "$ac_file"; then :
3746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3747 $as_echo "no" >&6; }
3748 $as_echo "$as_me: failed program was:" >&5
3749 sed 's/^/| /' conftest.$ac_ext >&5
3750
3751 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3752 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3753 as_fn_error 77 "C compiler cannot create executables
3754 See \`config.log' for more details" "$LINENO" 5; }
3755 else
3756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3757 $as_echo "yes" >&6; }
3758 fi
3759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3760 $as_echo_n "checking for C compiler default output file name... " >&6; }
3761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3762 $as_echo "$ac_file" >&6; }
3763 ac_exeext=$ac_cv_exeext
3764
3765 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3766 ac_clean_files=$ac_clean_files_save
3767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3768 $as_echo_n "checking for suffix of executables... " >&6; }
3769 if { { ac_try="$ac_link"
3770 case "(($ac_try" in
3771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3772 *) ac_try_echo=$ac_try;;
3773 esac
3774 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3775 $as_echo "$ac_try_echo"; } >&5
3776 (eval "$ac_link") 2>&5
3777 ac_status=$?
3778 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3779 test $ac_status = 0; }; then :
3780 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3781 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3782 # work properly (i.e., refer to `conftest.exe'), while it won't with
3783 # `rm'.
3784 for ac_file in conftest.exe conftest conftest.*; do
3785 test -f "$ac_file" || continue
3786 case $ac_file in
3787 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3788 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3789 break;;
3790 * ) break;;
3791 esac
3792 done
3793 else
3794 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3795 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3796 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3797 See \`config.log' for more details" "$LINENO" 5; }
3798 fi
3799 rm -f conftest conftest$ac_cv_exeext
3800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3801 $as_echo "$ac_cv_exeext" >&6; }
3802
3803 rm -f conftest.$ac_ext
3804 EXEEXT=$ac_cv_exeext
3805 ac_exeext=$EXEEXT
3806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3807 /* end confdefs.h. */
3808 #include <stdio.h>
3809 int
3810 main ()
3811 {
3812 FILE *f = fopen ("conftest.out", "w");
3813 return ferror (f) || fclose (f) != 0;
3814
3815 ;
3816 return 0;
3817 }
3818 _ACEOF
3819 ac_clean_files="$ac_clean_files conftest.out"
3820 # Check that the compiler produces executables we can run. If not, either
3821 # the compiler is broken, or we cross compile.
3822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3823 $as_echo_n "checking whether we are cross compiling... " >&6; }
3824 if test "$cross_compiling" != yes; then
3825 { { ac_try="$ac_link"
3826 case "(($ac_try" in
3827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3828 *) ac_try_echo=$ac_try;;
3829 esac
3830 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3831 $as_echo "$ac_try_echo"; } >&5
3832 (eval "$ac_link") 2>&5
3833 ac_status=$?
3834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3835 test $ac_status = 0; }
3836 if { ac_try='./conftest$ac_cv_exeext'
3837 { { case "(($ac_try" in
3838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3839 *) ac_try_echo=$ac_try;;
3840 esac
3841 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3842 $as_echo "$ac_try_echo"; } >&5
3843 (eval "$ac_try") 2>&5
3844 ac_status=$?
3845 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3846 test $ac_status = 0; }; }; then
3847 cross_compiling=no
3848 else
3849 if test "$cross_compiling" = maybe; then
3850 cross_compiling=yes
3851 else
3852 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3853 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3854 as_fn_error $? "cannot run C compiled programs.
3855 If you meant to cross compile, use \`--host'.
3856 See \`config.log' for more details" "$LINENO" 5; }
3857 fi
3858 fi
3859 fi
3860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3861 $as_echo "$cross_compiling" >&6; }
3862
3863 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3864 ac_clean_files=$ac_clean_files_save
3865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3866 $as_echo_n "checking for suffix of object files... " >&6; }
3867 if ${ac_cv_objext+:} false; then :
3868 $as_echo_n "(cached) " >&6
3869 else
3870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3871 /* end confdefs.h. */
3872
3873 int
3874 main ()
3875 {
3876
3877 ;
3878 return 0;
3879 }
3880 _ACEOF
3881 rm -f conftest.o conftest.obj
3882 if { { ac_try="$ac_compile"
3883 case "(($ac_try" in
3884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3885 *) ac_try_echo=$ac_try;;
3886 esac
3887 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3888 $as_echo "$ac_try_echo"; } >&5
3889 (eval "$ac_compile") 2>&5
3890 ac_status=$?
3891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3892 test $ac_status = 0; }; then :
3893 for ac_file in conftest.o conftest.obj conftest.*; do
3894 test -f "$ac_file" || continue;
3895 case $ac_file in
3896 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3897 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3898 break;;
3899 esac
3900 done
3901 else
3902 $as_echo "$as_me: failed program was:" >&5
3903 sed 's/^/| /' conftest.$ac_ext >&5
3904
3905 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3906 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3907 as_fn_error $? "cannot compute suffix of object files: cannot compile
3908 See \`config.log' for more details" "$LINENO" 5; }
3909 fi
3910 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3911 fi
3912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3913 $as_echo "$ac_cv_objext" >&6; }
3914 OBJEXT=$ac_cv_objext
3915 ac_objext=$OBJEXT
3916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3917 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3918 if ${ac_cv_c_compiler_gnu+:} false; then :
3919 $as_echo_n "(cached) " >&6
3920 else
3921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3922 /* end confdefs.h. */
3923
3924 int
3925 main ()
3926 {
3927 #ifndef __GNUC__
3928 choke me
3929 #endif
3930
3931 ;
3932 return 0;
3933 }
3934 _ACEOF
3935 if ac_fn_c_try_compile "$LINENO"; then :
3936 ac_compiler_gnu=yes
3937 else
3938 ac_compiler_gnu=no
3939 fi
3940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3941 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3942
3943 fi
3944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3945 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3946 if test $ac_compiler_gnu = yes; then
3947 GCC=yes
3948 else
3949 GCC=
3950 fi
3951 ac_test_CFLAGS=${CFLAGS+set}
3952 ac_save_CFLAGS=$CFLAGS
3953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3954 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3955 if ${ac_cv_prog_cc_g+:} false; then :
3956 $as_echo_n "(cached) " >&6
3957 else
3958 ac_save_c_werror_flag=$ac_c_werror_flag
3959 ac_c_werror_flag=yes
3960 ac_cv_prog_cc_g=no
3961 CFLAGS="-g"
3962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3963 /* end confdefs.h. */
3964
3965 int
3966 main ()
3967 {
3968
3969 ;
3970 return 0;
3971 }
3972 _ACEOF
3973 if ac_fn_c_try_compile "$LINENO"; then :
3974 ac_cv_prog_cc_g=yes
3975 else
3976 CFLAGS=""
3977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3978 /* end confdefs.h. */
3979
3980 int
3981 main ()
3982 {
3983
3984 ;
3985 return 0;
3986 }
3987 _ACEOF
3988 if ac_fn_c_try_compile "$LINENO"; then :
3989
3990 else
3991 ac_c_werror_flag=$ac_save_c_werror_flag
3992 CFLAGS="-g"
3993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3994 /* end confdefs.h. */
3995
3996 int
3997 main ()
3998 {
3999
4000 ;
4001 return 0;
4002 }
4003 _ACEOF
4004 if ac_fn_c_try_compile "$LINENO"; then :
4005 ac_cv_prog_cc_g=yes
4006 fi
4007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4008 fi
4009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4010 fi
4011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4012 ac_c_werror_flag=$ac_save_c_werror_flag
4013 fi
4014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4015 $as_echo "$ac_cv_prog_cc_g" >&6; }
4016 if test "$ac_test_CFLAGS" = set; then
4017 CFLAGS=$ac_save_CFLAGS
4018 elif test $ac_cv_prog_cc_g = yes; then
4019 if test "$GCC" = yes; then
4020 CFLAGS="-g -O2"
4021 else
4022 CFLAGS="-g"
4023 fi
4024 else
4025 if test "$GCC" = yes; then
4026 CFLAGS="-O2"
4027 else
4028 CFLAGS=
4029 fi
4030 fi
4031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4032 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4033 if ${ac_cv_prog_cc_c89+:} false; then :
4034 $as_echo_n "(cached) " >&6
4035 else
4036 ac_cv_prog_cc_c89=no
4037 ac_save_CC=$CC
4038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4039 /* end confdefs.h. */
4040 #include <stdarg.h>
4041 #include <stdio.h>
4042 struct stat;
4043 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4044 struct buf { int x; };
4045 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4046 static char *e (p, i)
4047 char **p;
4048 int i;
4049 {
4050 return p[i];
4051 }
4052 static char *f (char * (*g) (char **, int), char **p, ...)
4053 {
4054 char *s;
4055 va_list v;
4056 va_start (v,p);
4057 s = g (p, va_arg (v,int));
4058 va_end (v);
4059 return s;
4060 }
4061
4062 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4063 function prototypes and stuff, but not '\xHH' hex character constants.
4064 These don't provoke an error unfortunately, instead are silently treated
4065 as 'x'. The following induces an error, until -std is added to get
4066 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4067 array size at least. It's necessary to write '\x00'==0 to get something
4068 that's true only with -std. */
4069 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4070
4071 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4072 inside strings and character constants. */
4073 #define FOO(x) 'x'
4074 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4075
4076 int test (int i, double x);
4077 struct s1 {int (*f) (int a);};
4078 struct s2 {int (*f) (double a);};
4079 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4080 int argc;
4081 char **argv;
4082 int
4083 main ()
4084 {
4085 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4086 ;
4087 return 0;
4088 }
4089 _ACEOF
4090 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4091 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4092 do
4093 CC="$ac_save_CC $ac_arg"
4094 if ac_fn_c_try_compile "$LINENO"; then :
4095 ac_cv_prog_cc_c89=$ac_arg
4096 fi
4097 rm -f core conftest.err conftest.$ac_objext
4098 test "x$ac_cv_prog_cc_c89" != "xno" && break
4099 done
4100 rm -f conftest.$ac_ext
4101 CC=$ac_save_CC
4102
4103 fi
4104 # AC_CACHE_VAL
4105 case "x$ac_cv_prog_cc_c89" in
4106 x)
4107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4108 $as_echo "none needed" >&6; } ;;
4109 xno)
4110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4111 $as_echo "unsupported" >&6; } ;;
4112 *)
4113 CC="$CC $ac_cv_prog_cc_c89"
4114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4115 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4116 esac
4117 if test "x$ac_cv_prog_cc_c89" != xno; then :
4118
4119 fi
4120
4121 ac_ext=c
4122 ac_cpp='$CPP $CPPFLAGS'
4123 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4124 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4125 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4126
4127 ac_ext=c
4128 ac_cpp='$CPP $CPPFLAGS'
4129 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4130 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4131 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4133 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4134 if ${am_cv_prog_cc_c_o+:} false; then :
4135 $as_echo_n "(cached) " >&6
4136 else
4137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4138 /* end confdefs.h. */
4139
4140 int
4141 main ()
4142 {
4143
4144 ;
4145 return 0;
4146 }
4147 _ACEOF
4148 # Make sure it works both with $CC and with simple cc.
4149 # Following AC_PROG_CC_C_O, we do the test twice because some
4150 # compilers refuse to overwrite an existing .o file with -o,
4151 # though they will create one.
4152 am_cv_prog_cc_c_o=yes
4153 for am_i in 1 2; do
4154 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4155 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4156 ac_status=$?
4157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4158 (exit $ac_status); } \
4159 && test -f conftest2.$ac_objext; then
4160 : OK
4161 else
4162 am_cv_prog_cc_c_o=no
4163 break
4164 fi
4165 done
4166 rm -f core conftest*
4167 unset am_i
4168 fi
4169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4170 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4171 if test "$am_cv_prog_cc_c_o" != yes; then
4172 # Losing compiler, so override with the script.
4173 # FIXME: It is wrong to rewrite CC.
4174 # But if we don't then we get into trouble of one sort or another.
4175 # A longer-term fix would be to have automake use am__CC in this case,
4176 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4177 CC="$am_aux_dir/compile $CC"
4178 fi
4179 ac_ext=c
4180 ac_cpp='$CPP $CPPFLAGS'
4181 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4182 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4183 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4184
4185 DEPDIR="${am__leading_dot}deps"
4186
4187 ac_config_commands="$ac_config_commands depfiles"
4188
4189
4190 am_make=${MAKE-make}
4191 cat > confinc << 'END'
4192 am__doit:
4193 @echo this is the am__doit target
4194 .PHONY: am__doit
4195 END
4196 # If we don't find an include directive, just comment out the code.
4197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4198 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4199 am__include="#"
4200 am__quote=
4201 _am_result=none
4202 # First try GNU make style include.
4203 echo "include confinc" > confmf
4204 # Ignore all kinds of additional output from 'make'.
4205 case `$am_make -s -f confmf 2> /dev/null` in #(
4206 *the\ am__doit\ target*)
4207 am__include=include
4208 am__quote=
4209 _am_result=GNU
4210 ;;
4211 esac
4212 # Now try BSD make style include.
4213 if test "$am__include" = "#"; then
4214 echo '.include "confinc"' > confmf
4215 case `$am_make -s -f confmf 2> /dev/null` in #(
4216 *the\ am__doit\ target*)
4217 am__include=.include
4218 am__quote="\""
4219 _am_result=BSD
4220 ;;
4221 esac
4222 fi
4223
4224
4225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4226 $as_echo "$_am_result" >&6; }
4227 rm -f confinc confmf
4228
4229 # Check whether --enable-dependency-tracking was given.
4230 if test "${enable_dependency_tracking+set}" = set; then :
4231 enableval=$enable_dependency_tracking;
4232 fi
4233
4234 if test "x$enable_dependency_tracking" != xno; then
4235 am_depcomp="$ac_aux_dir/depcomp"
4236 AMDEPBACKSLASH='\'
4237 am__nodep='_no'
4238 fi
4239 if test "x$enable_dependency_tracking" != xno; then
4240 AMDEP_TRUE=
4241 AMDEP_FALSE='#'
4242 else
4243 AMDEP_TRUE='#'
4244 AMDEP_FALSE=
4245 fi
4246
4247
4248
4249 depcc="$CC" am_compiler_list=
4250
4251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4252 $as_echo_n "checking dependency style of $depcc... " >&6; }
4253 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4254 $as_echo_n "(cached) " >&6
4255 else
4256 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4257 # We make a subdir and do the tests there. Otherwise we can end up
4258 # making bogus files that we don't know about and never remove. For
4259 # instance it was reported that on HP-UX the gcc test will end up
4260 # making a dummy file named 'D' -- because '-MD' means "put the output
4261 # in D".
4262 rm -rf conftest.dir
4263 mkdir conftest.dir
4264 # Copy depcomp to subdir because otherwise we won't find it if we're
4265 # using a relative directory.
4266 cp "$am_depcomp" conftest.dir
4267 cd conftest.dir
4268 # We will build objects and dependencies in a subdirectory because
4269 # it helps to detect inapplicable dependency modes. For instance
4270 # both Tru64's cc and ICC support -MD to output dependencies as a
4271 # side effect of compilation, but ICC will put the dependencies in
4272 # the current directory while Tru64 will put them in the object
4273 # directory.
4274 mkdir sub
4275
4276 am_cv_CC_dependencies_compiler_type=none
4277 if test "$am_compiler_list" = ""; then
4278 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4279 fi
4280 am__universal=false
4281 case " $depcc " in #(
4282 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4283 esac
4284
4285 for depmode in $am_compiler_list; do
4286 # Setup a source with many dependencies, because some compilers
4287 # like to wrap large dependency lists on column 80 (with \), and
4288 # we should not choose a depcomp mode which is confused by this.
4289 #
4290 # We need to recreate these files for each test, as the compiler may
4291 # overwrite some of them when testing with obscure command lines.
4292 # This happens at least with the AIX C compiler.
4293 : > sub/conftest.c
4294 for i in 1 2 3 4 5 6; do
4295 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4296 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4297 # Solaris 10 /bin/sh.
4298 echo '/* dummy */' > sub/conftst$i.h
4299 done
4300 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4301
4302 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4303 # mode. It turns out that the SunPro C++ compiler does not properly
4304 # handle '-M -o', and we need to detect this. Also, some Intel
4305 # versions had trouble with output in subdirs.
4306 am__obj=sub/conftest.${OBJEXT-o}
4307 am__minus_obj="-o $am__obj"
4308 case $depmode in
4309 gcc)
4310 # This depmode causes a compiler race in universal mode.
4311 test "$am__universal" = false || continue
4312 ;;
4313 nosideeffect)
4314 # After this tag, mechanisms are not by side-effect, so they'll
4315 # only be used when explicitly requested.
4316 if test "x$enable_dependency_tracking" = xyes; then
4317 continue
4318 else
4319 break
4320 fi
4321 ;;
4322 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4323 # This compiler won't grok '-c -o', but also, the minuso test has
4324 # not run yet. These depmodes are late enough in the game, and
4325 # so weak that their functioning should not be impacted.
4326 am__obj=conftest.${OBJEXT-o}
4327 am__minus_obj=
4328 ;;
4329 none) break ;;
4330 esac
4331 if depmode=$depmode \
4332 source=sub/conftest.c object=$am__obj \
4333 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4334 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4335 >/dev/null 2>conftest.err &&
4336 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4337 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4338 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4339 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4340 # icc doesn't choke on unknown options, it will just issue warnings
4341 # or remarks (even with -Werror). So we grep stderr for any message
4342 # that says an option was ignored or not supported.
4343 # When given -MP, icc 7.0 and 7.1 complain thusly:
4344 # icc: Command line warning: ignoring option '-M'; no argument required
4345 # The diagnosis changed in icc 8.0:
4346 # icc: Command line remark: option '-MP' not supported
4347 if (grep 'ignoring option' conftest.err ||
4348 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4349 am_cv_CC_dependencies_compiler_type=$depmode
4350 break
4351 fi
4352 fi
4353 done
4354
4355 cd ..
4356 rm -rf conftest.dir
4357 else
4358 am_cv_CC_dependencies_compiler_type=none
4359 fi
4360
4361 fi
4362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4363 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4364 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4365
4366 if
4367 test "x$enable_dependency_tracking" != xno \
4368 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4369 am__fastdepCC_TRUE=
4370 am__fastdepCC_FALSE='#'
4371 else
4372 am__fastdepCC_TRUE='#'
4373 am__fastdepCC_FALSE=
4374 fi
4375
4376
4377
4378 ac_ext=c
4379 ac_cpp='$CPP $CPPFLAGS'
4380 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4381 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4382 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4384 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4385 # On Suns, sometimes $CPP names a directory.
4386 if test -n "$CPP" && test -d "$CPP"; then
4387 CPP=
4388 fi
4389 if test -z "$CPP"; then
4390 if ${ac_cv_prog_CPP+:} false; then :
4391 $as_echo_n "(cached) " >&6
4392 else
4393 # Double quotes because CPP needs to be expanded
4394 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4395 do
4396 ac_preproc_ok=false
4397 for ac_c_preproc_warn_flag in '' yes
4398 do
4399 # Use a header file that comes with gcc, so configuring glibc
4400 # with a fresh cross-compiler works.
4401 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4402 # <limits.h> exists even on freestanding compilers.
4403 # On the NeXT, cc -E runs the code through the compiler's parser,
4404 # not just through cpp. "Syntax error" is here to catch this case.
4405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4406 /* end confdefs.h. */
4407 #ifdef __STDC__
4408 # include <limits.h>
4409 #else
4410 # include <assert.h>
4411 #endif
4412 Syntax error
4413 _ACEOF
4414 if ac_fn_c_try_cpp "$LINENO"; then :
4415
4416 else
4417 # Broken: fails on valid input.
4418 continue
4419 fi
4420 rm -f conftest.err conftest.i conftest.$ac_ext
4421
4422 # OK, works on sane cases. Now check whether nonexistent headers
4423 # can be detected and how.
4424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4425 /* end confdefs.h. */
4426 #include <ac_nonexistent.h>
4427 _ACEOF
4428 if ac_fn_c_try_cpp "$LINENO"; then :
4429 # Broken: success on invalid input.
4430 continue
4431 else
4432 # Passes both tests.
4433 ac_preproc_ok=:
4434 break
4435 fi
4436 rm -f conftest.err conftest.i conftest.$ac_ext
4437
4438 done
4439 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4440 rm -f conftest.i conftest.err conftest.$ac_ext
4441 if $ac_preproc_ok; then :
4442 break
4443 fi
4444
4445 done
4446 ac_cv_prog_CPP=$CPP
4447
4448 fi
4449 CPP=$ac_cv_prog_CPP
4450 else
4451 ac_cv_prog_CPP=$CPP
4452 fi
4453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4454 $as_echo "$CPP" >&6; }
4455 ac_preproc_ok=false
4456 for ac_c_preproc_warn_flag in '' yes
4457 do
4458 # Use a header file that comes with gcc, so configuring glibc
4459 # with a fresh cross-compiler works.
4460 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4461 # <limits.h> exists even on freestanding compilers.
4462 # On the NeXT, cc -E runs the code through the compiler's parser,
4463 # not just through cpp. "Syntax error" is here to catch this case.
4464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4465 /* end confdefs.h. */
4466 #ifdef __STDC__
4467 # include <limits.h>
4468 #else
4469 # include <assert.h>
4470 #endif
4471 Syntax error
4472 _ACEOF
4473 if ac_fn_c_try_cpp "$LINENO"; then :
4474
4475 else
4476 # Broken: fails on valid input.
4477 continue
4478 fi
4479 rm -f conftest.err conftest.i conftest.$ac_ext
4480
4481 # OK, works on sane cases. Now check whether nonexistent headers
4482 # can be detected and how.
4483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4484 /* end confdefs.h. */
4485 #include <ac_nonexistent.h>
4486 _ACEOF
4487 if ac_fn_c_try_cpp "$LINENO"; then :
4488 # Broken: success on invalid input.
4489 continue
4490 else
4491 # Passes both tests.
4492 ac_preproc_ok=:
4493 break
4494 fi
4495 rm -f conftest.err conftest.i conftest.$ac_ext
4496
4497 done
4498 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4499 rm -f conftest.i conftest.err conftest.$ac_ext
4500 if $ac_preproc_ok; then :
4501
4502 else
4503 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4504 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4505 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4506 See \`config.log' for more details" "$LINENO" 5; }
4507 fi
4508
4509 ac_ext=c
4510 ac_cpp='$CPP $CPPFLAGS'
4511 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4512 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4513 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4514
4515
4516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4517 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4518 if ${ac_cv_path_GREP+:} false; then :
4519 $as_echo_n "(cached) " >&6
4520 else
4521 if test -z "$GREP"; then
4522 ac_path_GREP_found=false
4523 # Loop through the user's path and test for each of PROGNAME-LIST
4524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4525 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4526 do
4527 IFS=$as_save_IFS
4528 test -z "$as_dir" && as_dir=.
4529 for ac_prog in grep ggrep; do
4530 for ac_exec_ext in '' $ac_executable_extensions; do
4531 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4532 as_fn_executable_p "$ac_path_GREP" || continue
4533 # Check for GNU ac_path_GREP and select it if it is found.
4534 # Check for GNU $ac_path_GREP
4535 case `"$ac_path_GREP" --version 2>&1` in
4536 *GNU*)
4537 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4538 *)
4539 ac_count=0
4540 $as_echo_n 0123456789 >"conftest.in"
4541 while :
4542 do
4543 cat "conftest.in" "conftest.in" >"conftest.tmp"
4544 mv "conftest.tmp" "conftest.in"
4545 cp "conftest.in" "conftest.nl"
4546 $as_echo 'GREP' >> "conftest.nl"
4547 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4548 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4549 as_fn_arith $ac_count + 1 && ac_count=$as_val
4550 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4551 # Best one so far, save it but keep looking for a better one
4552 ac_cv_path_GREP="$ac_path_GREP"
4553 ac_path_GREP_max=$ac_count
4554 fi
4555 # 10*(2^10) chars as input seems more than enough
4556 test $ac_count -gt 10 && break
4557 done
4558 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4559 esac
4560
4561 $ac_path_GREP_found && break 3
4562 done
4563 done
4564 done
4565 IFS=$as_save_IFS
4566 if test -z "$ac_cv_path_GREP"; then
4567 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4568 fi
4569 else
4570 ac_cv_path_GREP=$GREP
4571 fi
4572
4573 fi
4574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4575 $as_echo "$ac_cv_path_GREP" >&6; }
4576 GREP="$ac_cv_path_GREP"
4577
4578
4579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4580 $as_echo_n "checking for egrep... " >&6; }
4581 if ${ac_cv_path_EGREP+:} false; then :
4582 $as_echo_n "(cached) " >&6
4583 else
4584 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4585 then ac_cv_path_EGREP="$GREP -E"
4586 else
4587 if test -z "$EGREP"; then
4588 ac_path_EGREP_found=false
4589 # Loop through the user's path and test for each of PROGNAME-LIST
4590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4591 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4592 do
4593 IFS=$as_save_IFS
4594 test -z "$as_dir" && as_dir=.
4595 for ac_prog in egrep; do
4596 for ac_exec_ext in '' $ac_executable_extensions; do
4597 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4598 as_fn_executable_p "$ac_path_EGREP" || continue
4599 # Check for GNU ac_path_EGREP and select it if it is found.
4600 # Check for GNU $ac_path_EGREP
4601 case `"$ac_path_EGREP" --version 2>&1` in
4602 *GNU*)
4603 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4604 *)
4605 ac_count=0
4606 $as_echo_n 0123456789 >"conftest.in"
4607 while :
4608 do
4609 cat "conftest.in" "conftest.in" >"conftest.tmp"
4610 mv "conftest.tmp" "conftest.in"
4611 cp "conftest.in" "conftest.nl"
4612 $as_echo 'EGREP' >> "conftest.nl"
4613 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4614 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4615 as_fn_arith $ac_count + 1 && ac_count=$as_val
4616 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4617 # Best one so far, save it but keep looking for a better one
4618 ac_cv_path_EGREP="$ac_path_EGREP"
4619 ac_path_EGREP_max=$ac_count
4620 fi
4621 # 10*(2^10) chars as input seems more than enough
4622 test $ac_count -gt 10 && break
4623 done
4624 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4625 esac
4626
4627 $ac_path_EGREP_found && break 3
4628 done
4629 done
4630 done
4631 IFS=$as_save_IFS
4632 if test -z "$ac_cv_path_EGREP"; then
4633 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4634 fi
4635 else
4636 ac_cv_path_EGREP=$EGREP
4637 fi
4638
4639 fi
4640 fi
4641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4642 $as_echo "$ac_cv_path_EGREP" >&6; }
4643 EGREP="$ac_cv_path_EGREP"
4644
4645
4646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4647 $as_echo_n "checking for ANSI C header files... " >&6; }
4648 if ${ac_cv_header_stdc+:} false; then :
4649 $as_echo_n "(cached) " >&6
4650 else
4651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4652 /* end confdefs.h. */
4653 #include <stdlib.h>
4654 #include <stdarg.h>
4655 #include <string.h>
4656 #include <float.h>
4657
4658 int
4659 main ()
4660 {
4661
4662 ;
4663 return 0;
4664 }
4665 _ACEOF
4666 if ac_fn_c_try_compile "$LINENO"; then :
4667 ac_cv_header_stdc=yes
4668 else
4669 ac_cv_header_stdc=no
4670 fi
4671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4672
4673 if test $ac_cv_header_stdc = yes; then
4674 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4676 /* end confdefs.h. */
4677 #include <string.h>
4678
4679 _ACEOF
4680 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4681 $EGREP "memchr" >/dev/null 2>&1; then :
4682
4683 else
4684 ac_cv_header_stdc=no
4685 fi
4686 rm -f conftest*
4687
4688 fi
4689
4690 if test $ac_cv_header_stdc = yes; then
4691 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4693 /* end confdefs.h. */
4694 #include <stdlib.h>
4695
4696 _ACEOF
4697 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4698 $EGREP "free" >/dev/null 2>&1; then :
4699
4700 else
4701 ac_cv_header_stdc=no
4702 fi
4703 rm -f conftest*
4704
4705 fi
4706
4707 if test $ac_cv_header_stdc = yes; then
4708 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4709 if test "$cross_compiling" = yes; then :
4710 :
4711 else
4712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4713 /* end confdefs.h. */
4714 #include <ctype.h>
4715 #include <stdlib.h>
4716 #if ((' ' & 0x0FF) == 0x020)
4717 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4718 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4719 #else
4720 # define ISLOWER(c) \
4721 (('a' <= (c) && (c) <= 'i') \
4722 || ('j' <= (c) && (c) <= 'r') \
4723 || ('s' <= (c) && (c) <= 'z'))
4724 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4725 #endif
4726
4727 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4728 int
4729 main ()
4730 {
4731 int i;
4732 for (i = 0; i < 256; i++)
4733 if (XOR (islower (i), ISLOWER (i))
4734 || toupper (i) != TOUPPER (i))
4735 return 2;
4736 return 0;
4737 }
4738 _ACEOF
4739 if ac_fn_c_try_run "$LINENO"; then :
4740
4741 else
4742 ac_cv_header_stdc=no
4743 fi
4744 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4745 conftest.$ac_objext conftest.beam conftest.$ac_ext
4746 fi
4747
4748 fi
4749 fi
4750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4751 $as_echo "$ac_cv_header_stdc" >&6; }
4752 if test $ac_cv_header_stdc = yes; then
4753
4754 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4755
4756 fi
4757
4758 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4759 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4760 inttypes.h stdint.h unistd.h
4761 do :
4762 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4763 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4764 "
4765 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4766 cat >>confdefs.h <<_ACEOF
4767 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4768 _ACEOF
4769
4770 fi
4771
4772 done
4773
4774
4775
4776 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4777 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4778 MINIX=yes
4779 else
4780 MINIX=
4781 fi
4782
4783
4784 if test "$MINIX" = yes; then
4785
4786 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4787
4788
4789 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4790
4791
4792 $as_echo "#define _MINIX 1" >>confdefs.h
4793
4794 fi
4795
4796
4797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4798 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4799 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4800 $as_echo_n "(cached) " >&6
4801 else
4802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4803 /* end confdefs.h. */
4804
4805 # define __EXTENSIONS__ 1
4806 $ac_includes_default
4807 int
4808 main ()
4809 {
4810
4811 ;
4812 return 0;
4813 }
4814 _ACEOF
4815 if ac_fn_c_try_compile "$LINENO"; then :
4816 ac_cv_safe_to_define___extensions__=yes
4817 else
4818 ac_cv_safe_to_define___extensions__=no
4819 fi
4820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4821 fi
4822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4823 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4824 test $ac_cv_safe_to_define___extensions__ = yes &&
4825 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4826
4827 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4828
4829 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4830
4831 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4832
4833 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4834
4835
4836
4837
4838
4839 case `pwd` in
4840 *\ * | *\ *)
4841 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4842 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4843 esac
4844
4845
4846
4847 macro_version='2.2.7a'
4848 macro_revision='1.3134'
4849
4850
4851
4852
4853
4854
4855
4856
4857
4858
4859
4860
4861
4862 ltmain="$ac_aux_dir/ltmain.sh"
4863
4864 # Backslashify metacharacters that are still active within
4865 # double-quoted strings.
4866 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4867
4868 # Same as above, but do not quote variable references.
4869 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4870
4871 # Sed substitution to delay expansion of an escaped shell variable in a
4872 # double_quote_subst'ed string.
4873 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4874
4875 # Sed substitution to delay expansion of an escaped single quote.
4876 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4877
4878 # Sed substitution to avoid accidental globbing in evaled expressions
4879 no_glob_subst='s/\*/\\\*/g'
4880
4881 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4882 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4883 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4884
4885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4886 $as_echo_n "checking how to print strings... " >&6; }
4887 # Test print first, because it will be a builtin if present.
4888 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4889 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4890 ECHO='print -r --'
4891 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4892 ECHO='printf %s\n'
4893 else
4894 # Use this function as a fallback that always works.
4895 func_fallback_echo ()
4896 {
4897 eval 'cat <<_LTECHO_EOF
4898 $1
4899 _LTECHO_EOF'
4900 }
4901 ECHO='func_fallback_echo'
4902 fi
4903
4904 # func_echo_all arg...
4905 # Invoke $ECHO with all args, space-separated.
4906 func_echo_all ()
4907 {
4908 $ECHO ""
4909 }
4910
4911 case "$ECHO" in
4912 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4913 $as_echo "printf" >&6; } ;;
4914 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4915 $as_echo "print -r" >&6; } ;;
4916 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4917 $as_echo "cat" >&6; } ;;
4918 esac
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4934 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4935 if ${ac_cv_path_SED+:} false; then :
4936 $as_echo_n "(cached) " >&6
4937 else
4938 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4939 for ac_i in 1 2 3 4 5 6 7; do
4940 ac_script="$ac_script$as_nl$ac_script"
4941 done
4942 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4943 { ac_script=; unset ac_script;}
4944 if test -z "$SED"; then
4945 ac_path_SED_found=false
4946 # Loop through the user's path and test for each of PROGNAME-LIST
4947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4948 for as_dir in $PATH
4949 do
4950 IFS=$as_save_IFS
4951 test -z "$as_dir" && as_dir=.
4952 for ac_prog in sed gsed; do
4953 for ac_exec_ext in '' $ac_executable_extensions; do
4954 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4955 as_fn_executable_p "$ac_path_SED" || continue
4956 # Check for GNU ac_path_SED and select it if it is found.
4957 # Check for GNU $ac_path_SED
4958 case `"$ac_path_SED" --version 2>&1` in
4959 *GNU*)
4960 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4961 *)
4962 ac_count=0
4963 $as_echo_n 0123456789 >"conftest.in"
4964 while :
4965 do
4966 cat "conftest.in" "conftest.in" >"conftest.tmp"
4967 mv "conftest.tmp" "conftest.in"
4968 cp "conftest.in" "conftest.nl"
4969 $as_echo '' >> "conftest.nl"
4970 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4971 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4972 as_fn_arith $ac_count + 1 && ac_count=$as_val
4973 if test $ac_count -gt ${ac_path_SED_max-0}; then
4974 # Best one so far, save it but keep looking for a better one
4975 ac_cv_path_SED="$ac_path_SED"
4976 ac_path_SED_max=$ac_count
4977 fi
4978 # 10*(2^10) chars as input seems more than enough
4979 test $ac_count -gt 10 && break
4980 done
4981 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4982 esac
4983
4984 $ac_path_SED_found && break 3
4985 done
4986 done
4987 done
4988 IFS=$as_save_IFS
4989 if test -z "$ac_cv_path_SED"; then
4990 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4991 fi
4992 else
4993 ac_cv_path_SED=$SED
4994 fi
4995
4996 fi
4997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4998 $as_echo "$ac_cv_path_SED" >&6; }
4999 SED="$ac_cv_path_SED"
5000 rm -f conftest.sed
5001
5002 test -z "$SED" && SED=sed
5003 Xsed="$SED -e 1s/^X//"
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5016 $as_echo_n "checking for fgrep... " >&6; }
5017 if ${ac_cv_path_FGREP+:} false; then :
5018 $as_echo_n "(cached) " >&6
5019 else
5020 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5021 then ac_cv_path_FGREP="$GREP -F"
5022 else
5023 if test -z "$FGREP"; then
5024 ac_path_FGREP_found=false
5025 # Loop through the user's path and test for each of PROGNAME-LIST
5026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5027 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5028 do
5029 IFS=$as_save_IFS
5030 test -z "$as_dir" && as_dir=.
5031 for ac_prog in fgrep; do
5032 for ac_exec_ext in '' $ac_executable_extensions; do
5033 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5034 as_fn_executable_p "$ac_path_FGREP" || continue
5035 # Check for GNU ac_path_FGREP and select it if it is found.
5036 # Check for GNU $ac_path_FGREP
5037 case `"$ac_path_FGREP" --version 2>&1` in
5038 *GNU*)
5039 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5040 *)
5041 ac_count=0
5042 $as_echo_n 0123456789 >"conftest.in"
5043 while :
5044 do
5045 cat "conftest.in" "conftest.in" >"conftest.tmp"
5046 mv "conftest.tmp" "conftest.in"
5047 cp "conftest.in" "conftest.nl"
5048 $as_echo 'FGREP' >> "conftest.nl"
5049 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5050 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5051 as_fn_arith $ac_count + 1 && ac_count=$as_val
5052 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5053 # Best one so far, save it but keep looking for a better one
5054 ac_cv_path_FGREP="$ac_path_FGREP"
5055 ac_path_FGREP_max=$ac_count
5056 fi
5057 # 10*(2^10) chars as input seems more than enough
5058 test $ac_count -gt 10 && break
5059 done
5060 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5061 esac
5062
5063 $ac_path_FGREP_found && break 3
5064 done
5065 done
5066 done
5067 IFS=$as_save_IFS
5068 if test -z "$ac_cv_path_FGREP"; then
5069 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5070 fi
5071 else
5072 ac_cv_path_FGREP=$FGREP
5073 fi
5074
5075 fi
5076 fi
5077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5078 $as_echo "$ac_cv_path_FGREP" >&6; }
5079 FGREP="$ac_cv_path_FGREP"
5080
5081
5082 test -z "$GREP" && GREP=grep
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102 # Check whether --with-gnu-ld was given.
5103 if test "${with_gnu_ld+set}" = set; then :
5104 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5105 else
5106 with_gnu_ld=no
5107 fi
5108
5109 ac_prog=ld
5110 if test "$GCC" = yes; then
5111 # Check if gcc -print-prog-name=ld gives a path.
5112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5113 $as_echo_n "checking for ld used by $CC... " >&6; }
5114 case $host in
5115 *-*-mingw*)
5116 # gcc leaves a trailing carriage return which upsets mingw
5117 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5118 *)
5119 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5120 esac
5121 case $ac_prog in
5122 # Accept absolute paths.
5123 [\\/]* | ?:[\\/]*)
5124 re_direlt='/[^/][^/]*/\.\./'
5125 # Canonicalize the pathname of ld
5126 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5127 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5128 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5129 done
5130 test -z "$LD" && LD="$ac_prog"
5131 ;;
5132 "")
5133 # If it fails, then pretend we aren't using GCC.
5134 ac_prog=ld
5135 ;;
5136 *)
5137 # If it is relative, then search for the first ld in PATH.
5138 with_gnu_ld=unknown
5139 ;;
5140 esac
5141 elif test "$with_gnu_ld" = yes; then
5142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5143 $as_echo_n "checking for GNU ld... " >&6; }
5144 else
5145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5146 $as_echo_n "checking for non-GNU ld... " >&6; }
5147 fi
5148 if ${lt_cv_path_LD+:} false; then :
5149 $as_echo_n "(cached) " >&6
5150 else
5151 if test -z "$LD"; then
5152 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5153 for ac_dir in $PATH; do
5154 IFS="$lt_save_ifs"
5155 test -z "$ac_dir" && ac_dir=.
5156 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5157 lt_cv_path_LD="$ac_dir/$ac_prog"
5158 # Check to see if the program is GNU ld. I'd rather use --version,
5159 # but apparently some variants of GNU ld only accept -v.
5160 # Break only if it was the GNU/non-GNU ld that we prefer.
5161 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5162 *GNU* | *'with BFD'*)
5163 test "$with_gnu_ld" != no && break
5164 ;;
5165 *)
5166 test "$with_gnu_ld" != yes && break
5167 ;;
5168 esac
5169 fi
5170 done
5171 IFS="$lt_save_ifs"
5172 else
5173 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5174 fi
5175 fi
5176
5177 LD="$lt_cv_path_LD"
5178 if test -n "$LD"; then
5179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5180 $as_echo "$LD" >&6; }
5181 else
5182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5183 $as_echo "no" >&6; }
5184 fi
5185 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5187 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5188 if ${lt_cv_prog_gnu_ld+:} false; then :
5189 $as_echo_n "(cached) " >&6
5190 else
5191 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5192 case `$LD -v 2>&1 </dev/null` in
5193 *GNU* | *'with BFD'*)
5194 lt_cv_prog_gnu_ld=yes
5195 ;;
5196 *)
5197 lt_cv_prog_gnu_ld=no
5198 ;;
5199 esac
5200 fi
5201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5202 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5203 with_gnu_ld=$lt_cv_prog_gnu_ld
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5214 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5215 if ${lt_cv_path_NM+:} false; then :
5216 $as_echo_n "(cached) " >&6
5217 else
5218 if test -n "$NM"; then
5219 # Let the user override the nm to test.
5220 lt_nm_to_check="$NM"
5221 else
5222 lt_nm_to_check="${ac_tool_prefix}nm"
5223 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5224 lt_nm_to_check="$lt_nm_to_check nm"
5225 fi
5226 fi
5227 for lt_tmp_nm in $lt_nm_to_check; do
5228 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5229 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5230 IFS="$lt_save_ifs"
5231 test -z "$ac_dir" && ac_dir=.
5232 case "$lt_tmp_nm" in
5233 */*|*\\*) tmp_nm="$lt_tmp_nm";;
5234 *) tmp_nm="$ac_dir/$lt_tmp_nm";;
5235 esac
5236 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5237 # Check to see if the nm accepts a BSD-compat flag.
5238 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5239 # nm: unknown option "B" ignored
5240 case `"$tmp_nm" -B "$tmp_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
5241 *$tmp_nm*) lt_cv_path_NM="$tmp_nm -B"
5242 break
5243 ;;
5244 *)
5245 case `"$tmp_nm" -p "$tmp_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
5246 *$tmp_nm*)
5247 lt_cv_path_NM="$tmp_nm -p"
5248 break
5249 ;;
5250 *)
5251 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5252 continue # so that we can try to find one that supports BSD flags
5253 ;;
5254 esac
5255 ;;
5256 esac
5257 fi
5258 done
5259 IFS="$lt_save_ifs"
5260 done
5261 : ${lt_cv_path_NM=no}
5262 fi
5263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5264 $as_echo "$lt_cv_path_NM" >&6; }
5265 if test "$lt_cv_path_NM" != "no"; then
5266 NM="$lt_cv_path_NM"
5267 else
5268 # Didn't find any BSD compatible name lister, look for dumpbin.
5269 if test -n "$DUMPBIN"; then :
5270 # Let the user override the test.
5271 else
5272 if test -n "$ac_tool_prefix"; then
5273 for ac_prog in dumpbin "link -dump"
5274 do
5275 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5276 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5278 $as_echo_n "checking for $ac_word... " >&6; }
5279 if ${ac_cv_prog_DUMPBIN+:} false; then :
5280 $as_echo_n "(cached) " >&6
5281 else
5282 if test -n "$DUMPBIN"; then
5283 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5284 else
5285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5286 for as_dir in $PATH
5287 do
5288 IFS=$as_save_IFS
5289 test -z "$as_dir" && as_dir=.
5290 for ac_exec_ext in '' $ac_executable_extensions; do
5291 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5292 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5294 break 2
5295 fi
5296 done
5297 done
5298 IFS=$as_save_IFS
5299
5300 fi
5301 fi
5302 DUMPBIN=$ac_cv_prog_DUMPBIN
5303 if test -n "$DUMPBIN"; then
5304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5305 $as_echo "$DUMPBIN" >&6; }
5306 else
5307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5308 $as_echo "no" >&6; }
5309 fi
5310
5311
5312 test -n "$DUMPBIN" && break
5313 done
5314 fi
5315 if test -z "$DUMPBIN"; then
5316 ac_ct_DUMPBIN=$DUMPBIN
5317 for ac_prog in dumpbin "link -dump"
5318 do
5319 # Extract the first word of "$ac_prog", so it can be a program name with args.
5320 set dummy $ac_prog; ac_word=$2
5321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5322 $as_echo_n "checking for $ac_word... " >&6; }
5323 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5324 $as_echo_n "(cached) " >&6
5325 else
5326 if test -n "$ac_ct_DUMPBIN"; then
5327 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5328 else
5329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5330 for as_dir in $PATH
5331 do
5332 IFS=$as_save_IFS
5333 test -z "$as_dir" && as_dir=.
5334 for ac_exec_ext in '' $ac_executable_extensions; do
5335 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5336 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5338 break 2
5339 fi
5340 done
5341 done
5342 IFS=$as_save_IFS
5343
5344 fi
5345 fi
5346 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5347 if test -n "$ac_ct_DUMPBIN"; then
5348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5349 $as_echo "$ac_ct_DUMPBIN" >&6; }
5350 else
5351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5352 $as_echo "no" >&6; }
5353 fi
5354
5355
5356 test -n "$ac_ct_DUMPBIN" && break
5357 done
5358
5359 if test "x$ac_ct_DUMPBIN" = x; then
5360 DUMPBIN=":"
5361 else
5362 case $cross_compiling:$ac_tool_warned in
5363 yes:)
5364 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5365 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5366 ac_tool_warned=yes ;;
5367 esac
5368 DUMPBIN=$ac_ct_DUMPBIN
5369 fi
5370 fi
5371
5372 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5373 *COFF*)
5374 DUMPBIN="$DUMPBIN -symbols"
5375 ;;
5376 *)
5377 DUMPBIN=:
5378 ;;
5379 esac
5380 fi
5381
5382 if test "$DUMPBIN" != ":"; then
5383 NM="$DUMPBIN"
5384 fi
5385 fi
5386 test -z "$NM" && NM=nm
5387
5388
5389
5390
5391
5392
5393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5394 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5395 if ${lt_cv_nm_interface+:} false; then :
5396 $as_echo_n "(cached) " >&6
5397 else
5398 lt_cv_nm_interface="BSD nm"
5399 echo "int some_variable = 0;" > conftest.$ac_ext
5400 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5401 (eval "$ac_compile" 2>conftest.err)
5402 cat conftest.err >&5
5403 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5404 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5405 cat conftest.err >&5
5406 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5407 cat conftest.out >&5
5408 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5409 lt_cv_nm_interface="MS dumpbin"
5410 fi
5411 rm -f conftest*
5412 fi
5413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5414 $as_echo "$lt_cv_nm_interface" >&6; }
5415
5416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5417 $as_echo_n "checking whether ln -s works... " >&6; }
5418 LN_S=$as_ln_s
5419 if test "$LN_S" = "ln -s"; then
5420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5421 $as_echo "yes" >&6; }
5422 else
5423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5424 $as_echo "no, using $LN_S" >&6; }
5425 fi
5426
5427 # find the maximum length of command line arguments
5428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5429 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5430 if ${lt_cv_sys_max_cmd_len+:} false; then :
5431 $as_echo_n "(cached) " >&6
5432 else
5433 i=0
5434 teststring="ABCD"
5435
5436 case $build_os in
5437 msdosdjgpp*)
5438 # On DJGPP, this test can blow up pretty badly due to problems in libc
5439 # (any single argument exceeding 2000 bytes causes a buffer overrun
5440 # during glob expansion). Even if it were fixed, the result of this
5441 # check would be larger than it should be.
5442 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5443 ;;
5444
5445 gnu*)
5446 # Under GNU Hurd, this test is not required because there is
5447 # no limit to the length of command line arguments.
5448 # Libtool will interpret -1 as no limit whatsoever
5449 lt_cv_sys_max_cmd_len=-1;
5450 ;;
5451
5452 cygwin* | mingw* | cegcc*)
5453 # On Win9x/ME, this test blows up -- it succeeds, but takes
5454 # about 5 minutes as the teststring grows exponentially.
5455 # Worse, since 9x/ME are not pre-emptively multitasking,
5456 # you end up with a "frozen" computer, even though with patience
5457 # the test eventually succeeds (with a max line length of 256k).
5458 # Instead, let's just punt: use the minimum linelength reported by
5459 # all of the supported platforms: 8192 (on NT/2K/XP).
5460 lt_cv_sys_max_cmd_len=8192;
5461 ;;
5462
5463 mint*)
5464 # On MiNT this can take a long time and run out of memory.
5465 lt_cv_sys_max_cmd_len=8192;
5466 ;;
5467
5468 amigaos*)
5469 # On AmigaOS with pdksh, this test takes hours, literally.
5470 # So we just punt and use a minimum line length of 8192.
5471 lt_cv_sys_max_cmd_len=8192;
5472 ;;
5473
5474 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5475 # This has been around since 386BSD, at least. Likely further.
5476 if test -x /sbin/sysctl; then
5477 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5478 elif test -x /usr/sbin/sysctl; then
5479 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5480 else
5481 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5482 fi
5483 # And add a safety zone
5484 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5485 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5486 ;;
5487
5488 interix*)
5489 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5490 lt_cv_sys_max_cmd_len=196608
5491 ;;
5492
5493 osf*)
5494 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5495 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5496 # nice to cause kernel panics so lets avoid the loop below.
5497 # First set a reasonable default.
5498 lt_cv_sys_max_cmd_len=16384
5499 #
5500 if test -x /sbin/sysconfig; then
5501 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5502 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5503 esac
5504 fi
5505 ;;
5506 sco3.2v5*)
5507 lt_cv_sys_max_cmd_len=102400
5508 ;;
5509 sysv5* | sco5v6* | sysv4.2uw2*)
5510 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5511 if test -n "$kargmax"; then
5512 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5513 else
5514 lt_cv_sys_max_cmd_len=32768
5515 fi
5516 ;;
5517 *)
5518 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5519 if test -n "$lt_cv_sys_max_cmd_len"; then
5520 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5521 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5522 else
5523 # Make teststring a little bigger before we do anything with it.
5524 # a 1K string should be a reasonable start.
5525 for i in 1 2 3 4 5 6 7 8 ; do
5526 teststring=$teststring$teststring
5527 done
5528 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5529 # If test is not a shell built-in, we'll probably end up computing a
5530 # maximum length that is only half of the actual maximum length, but
5531 # we can't tell.
5532 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5533 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5534 test $i != 17 # 1/2 MB should be enough
5535 do
5536 i=`expr $i + 1`
5537 teststring=$teststring$teststring
5538 done
5539 # Only check the string length outside the loop.
5540 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5541 teststring=
5542 # Add a significant safety factor because C++ compilers can tack on
5543 # massive amounts of additional arguments before passing them to the
5544 # linker. It appears as though 1/2 is a usable value.
5545 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5546 fi
5547 ;;
5548 esac
5549
5550 fi
5551
5552 if test -n $lt_cv_sys_max_cmd_len ; then
5553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5554 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5555 else
5556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5557 $as_echo "none" >&6; }
5558 fi
5559 max_cmd_len=$lt_cv_sys_max_cmd_len
5560
5561
5562
5563
5564
5565
5566 : ${CP="cp -f"}
5567 : ${MV="mv -f"}
5568 : ${RM="rm -f"}
5569
5570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5571 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5572 # Try some XSI features
5573 xsi_shell=no
5574 ( _lt_dummy="a/b/c"
5575 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5576 = c,a/b,, \
5577 && eval 'test $(( 1 + 1 )) -eq 2 \
5578 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5579 && xsi_shell=yes
5580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5581 $as_echo "$xsi_shell" >&6; }
5582
5583
5584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5585 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5586 lt_shell_append=no
5587 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5588 >/dev/null 2>&1 \
5589 && lt_shell_append=yes
5590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5591 $as_echo "$lt_shell_append" >&6; }
5592
5593
5594 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5595 lt_unset=unset
5596 else
5597 lt_unset=false
5598 fi
5599
5600
5601
5602
5603
5604 # test EBCDIC or ASCII
5605 case `echo X|tr X '\101'` in
5606 A) # ASCII based system
5607 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5608 lt_SP2NL='tr \040 \012'
5609 lt_NL2SP='tr \015\012 \040\040'
5610 ;;
5611 *) # EBCDIC based system
5612 lt_SP2NL='tr \100 \n'
5613 lt_NL2SP='tr \r\n \100\100'
5614 ;;
5615 esac
5616
5617
5618
5619
5620
5621
5622
5623
5624
5625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5626 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5627 if ${lt_cv_ld_reload_flag+:} false; then :
5628 $as_echo_n "(cached) " >&6
5629 else
5630 lt_cv_ld_reload_flag='-r'
5631 fi
5632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5633 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5634 reload_flag=$lt_cv_ld_reload_flag
5635 case $reload_flag in
5636 "" | " "*) ;;
5637 *) reload_flag=" $reload_flag" ;;
5638 esac
5639 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5640 case $host_os in
5641 darwin*)
5642 if test "$GCC" = yes; then
5643 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5644 else
5645 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5646 fi
5647 ;;
5648 esac
5649
5650
5651
5652
5653
5654
5655
5656
5657
5658 if test -n "$ac_tool_prefix"; then
5659 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5660 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5662 $as_echo_n "checking for $ac_word... " >&6; }
5663 if ${ac_cv_prog_OBJDUMP+:} false; then :
5664 $as_echo_n "(cached) " >&6
5665 else
5666 if test -n "$OBJDUMP"; then
5667 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5668 else
5669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5670 for as_dir in $PATH
5671 do
5672 IFS=$as_save_IFS
5673 test -z "$as_dir" && as_dir=.
5674 for ac_exec_ext in '' $ac_executable_extensions; do
5675 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5676 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5678 break 2
5679 fi
5680 done
5681 done
5682 IFS=$as_save_IFS
5683
5684 fi
5685 fi
5686 OBJDUMP=$ac_cv_prog_OBJDUMP
5687 if test -n "$OBJDUMP"; then
5688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5689 $as_echo "$OBJDUMP" >&6; }
5690 else
5691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5692 $as_echo "no" >&6; }
5693 fi
5694
5695
5696 fi
5697 if test -z "$ac_cv_prog_OBJDUMP"; then
5698 ac_ct_OBJDUMP=$OBJDUMP
5699 # Extract the first word of "objdump", so it can be a program name with args.
5700 set dummy objdump; ac_word=$2
5701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5702 $as_echo_n "checking for $ac_word... " >&6; }
5703 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5704 $as_echo_n "(cached) " >&6
5705 else
5706 if test -n "$ac_ct_OBJDUMP"; then
5707 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5708 else
5709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5710 for as_dir in $PATH
5711 do
5712 IFS=$as_save_IFS
5713 test -z "$as_dir" && as_dir=.
5714 for ac_exec_ext in '' $ac_executable_extensions; do
5715 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5716 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5718 break 2
5719 fi
5720 done
5721 done
5722 IFS=$as_save_IFS
5723
5724 fi
5725 fi
5726 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5727 if test -n "$ac_ct_OBJDUMP"; then
5728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5729 $as_echo "$ac_ct_OBJDUMP" >&6; }
5730 else
5731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5732 $as_echo "no" >&6; }
5733 fi
5734
5735 if test "x$ac_ct_OBJDUMP" = x; then
5736 OBJDUMP="false"
5737 else
5738 case $cross_compiling:$ac_tool_warned in
5739 yes:)
5740 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5741 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5742 ac_tool_warned=yes ;;
5743 esac
5744 OBJDUMP=$ac_ct_OBJDUMP
5745 fi
5746 else
5747 OBJDUMP="$ac_cv_prog_OBJDUMP"
5748 fi
5749
5750 test -z "$OBJDUMP" && OBJDUMP=objdump
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5761 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5762 if ${lt_cv_deplibs_check_method+:} false; then :
5763 $as_echo_n "(cached) " >&6
5764 else
5765 lt_cv_file_magic_cmd='$MAGIC_CMD'
5766 lt_cv_file_magic_test_file=
5767 lt_cv_deplibs_check_method='unknown'
5768 # Need to set the preceding variable on all platforms that support
5769 # interlibrary dependencies.
5770 # 'none' -- dependencies not supported.
5771 # `unknown' -- same as none, but documents that we really don't know.
5772 # 'pass_all' -- all dependencies passed with no checks.
5773 # 'test_compile' -- check by making test program.
5774 # 'file_magic [[regex]]' -- check by looking for files in library path
5775 # which responds to the $file_magic_cmd with a given extended regex.
5776 # If you have `file' or equivalent on your system and you're not sure
5777 # whether `pass_all' will *always* work, you probably want this one.
5778
5779 case $host_os in
5780 aix[4-9]*)
5781 lt_cv_deplibs_check_method=pass_all
5782 ;;
5783
5784 beos*)
5785 lt_cv_deplibs_check_method=pass_all
5786 ;;
5787
5788 bsdi[45]*)
5789 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5790 lt_cv_file_magic_cmd='/usr/bin/file -L'
5791 lt_cv_file_magic_test_file=/shlib/libc.so
5792 ;;
5793
5794 cygwin*)
5795 # func_win32_libid is a shell function defined in ltmain.sh
5796 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5797 lt_cv_file_magic_cmd='func_win32_libid'
5798 ;;
5799
5800 mingw* | pw32*)
5801 # Base MSYS/MinGW do not provide the 'file' command needed by
5802 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5803 # unless we find 'file', for example because we are cross-compiling.
5804 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5805 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5806 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5807 lt_cv_file_magic_cmd='func_win32_libid'
5808 else
5809 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5810 lt_cv_file_magic_cmd='$OBJDUMP -f'
5811 fi
5812 ;;
5813
5814 cegcc*)
5815 # use the weaker test based on 'objdump'. See mingw*.
5816 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5817 lt_cv_file_magic_cmd='$OBJDUMP -f'
5818 ;;
5819
5820 darwin* | rhapsody*)
5821 lt_cv_deplibs_check_method=pass_all
5822 ;;
5823
5824 freebsd* | dragonfly*)
5825 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5826 case $host_cpu in
5827 i*86 )
5828 # Not sure whether the presence of OpenBSD here was a mistake.
5829 # Let's accept both of them until this is cleared up.
5830 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5831 lt_cv_file_magic_cmd=/usr/bin/file
5832 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5833 ;;
5834 esac
5835 else
5836 lt_cv_deplibs_check_method=pass_all
5837 fi
5838 ;;
5839
5840 gnu*)
5841 lt_cv_deplibs_check_method=pass_all
5842 ;;
5843
5844 haiku*)
5845 lt_cv_deplibs_check_method=pass_all
5846 ;;
5847
5848 hpux10.20* | hpux11*)
5849 lt_cv_file_magic_cmd=/usr/bin/file
5850 case $host_cpu in
5851 ia64*)
5852 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5853 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5854 ;;
5855 hppa*64*)
5856 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]'
5857 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5858 ;;
5859 *)
5860 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5861 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5862 ;;
5863 esac
5864 ;;
5865
5866 interix[3-9]*)
5867 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5868 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5869 ;;
5870
5871 irix5* | irix6* | nonstopux*)
5872 case $LD in
5873 *-32|*"-32 ") libmagic=32-bit;;
5874 *-n32|*"-n32 ") libmagic=N32;;
5875 *-64|*"-64 ") libmagic=64-bit;;
5876 *) libmagic=never-match;;
5877 esac
5878 lt_cv_deplibs_check_method=pass_all
5879 ;;
5880
5881 # This must be Linux ELF.
5882 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5883 lt_cv_deplibs_check_method=pass_all
5884 ;;
5885
5886 netbsd*)
5887 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5888 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5889 else
5890 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5891 fi
5892 ;;
5893
5894 newos6*)
5895 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5896 lt_cv_file_magic_cmd=/usr/bin/file
5897 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5898 ;;
5899
5900 *nto* | *qnx*)
5901 lt_cv_deplibs_check_method=pass_all
5902 ;;
5903
5904 openbsd*)
5905 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5906 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5907 else
5908 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5909 fi
5910 ;;
5911
5912 osf3* | osf4* | osf5*)
5913 lt_cv_deplibs_check_method=pass_all
5914 ;;
5915
5916 rdos*)
5917 lt_cv_deplibs_check_method=pass_all
5918 ;;
5919
5920 solaris*)
5921 lt_cv_deplibs_check_method=pass_all
5922 ;;
5923
5924 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5925 lt_cv_deplibs_check_method=pass_all
5926 ;;
5927
5928 sysv4 | sysv4.3*)
5929 case $host_vendor in
5930 motorola)
5931 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]'
5932 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5933 ;;
5934 ncr)
5935 lt_cv_deplibs_check_method=pass_all
5936 ;;
5937 sequent)
5938 lt_cv_file_magic_cmd='/bin/file'
5939 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5940 ;;
5941 sni)
5942 lt_cv_file_magic_cmd='/bin/file'
5943 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5944 lt_cv_file_magic_test_file=/lib/libc.so
5945 ;;
5946 siemens)
5947 lt_cv_deplibs_check_method=pass_all
5948 ;;
5949 pc)
5950 lt_cv_deplibs_check_method=pass_all
5951 ;;
5952 esac
5953 ;;
5954
5955 tpf*)
5956 lt_cv_deplibs_check_method=pass_all
5957 ;;
5958 esac
5959
5960 fi
5961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5962 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5963 file_magic_cmd=$lt_cv_file_magic_cmd
5964 deplibs_check_method=$lt_cv_deplibs_check_method
5965 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978 plugin_option=
5979 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
5980 for plugin in $plugin_names; do
5981 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
5982 if test x$plugin_so = x$plugin; then
5983 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
5984 fi
5985 if test x$plugin_so != x$plugin; then
5986 plugin_option="--plugin $plugin_so"
5987 break
5988 fi
5989 done
5990
5991 if test -n "$ac_tool_prefix"; then
5992 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5993 set dummy ${ac_tool_prefix}ar; ac_word=$2
5994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5995 $as_echo_n "checking for $ac_word... " >&6; }
5996 if ${ac_cv_prog_AR+:} false; then :
5997 $as_echo_n "(cached) " >&6
5998 else
5999 if test -n "$AR"; then
6000 ac_cv_prog_AR="$AR" # Let the user override the test.
6001 else
6002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6003 for as_dir in $PATH
6004 do
6005 IFS=$as_save_IFS
6006 test -z "$as_dir" && as_dir=.
6007 for ac_exec_ext in '' $ac_executable_extensions; do
6008 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6009 ac_cv_prog_AR="${ac_tool_prefix}ar"
6010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6011 break 2
6012 fi
6013 done
6014 done
6015 IFS=$as_save_IFS
6016
6017 fi
6018 fi
6019 AR=$ac_cv_prog_AR
6020 if test -n "$AR"; then
6021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6022 $as_echo "$AR" >&6; }
6023 else
6024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6025 $as_echo "no" >&6; }
6026 fi
6027
6028
6029 fi
6030 if test -z "$ac_cv_prog_AR"; then
6031 ac_ct_AR=$AR
6032 # Extract the first word of "ar", so it can be a program name with args.
6033 set dummy ar; ac_word=$2
6034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6035 $as_echo_n "checking for $ac_word... " >&6; }
6036 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6037 $as_echo_n "(cached) " >&6
6038 else
6039 if test -n "$ac_ct_AR"; then
6040 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6041 else
6042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6043 for as_dir in $PATH
6044 do
6045 IFS=$as_save_IFS
6046 test -z "$as_dir" && as_dir=.
6047 for ac_exec_ext in '' $ac_executable_extensions; do
6048 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6049 ac_cv_prog_ac_ct_AR="ar"
6050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6051 break 2
6052 fi
6053 done
6054 done
6055 IFS=$as_save_IFS
6056
6057 fi
6058 fi
6059 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6060 if test -n "$ac_ct_AR"; then
6061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6062 $as_echo "$ac_ct_AR" >&6; }
6063 else
6064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6065 $as_echo "no" >&6; }
6066 fi
6067
6068 if test "x$ac_ct_AR" = x; then
6069 AR="false"
6070 else
6071 case $cross_compiling:$ac_tool_warned in
6072 yes:)
6073 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6074 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6075 ac_tool_warned=yes ;;
6076 esac
6077 AR=$ac_ct_AR
6078 fi
6079 else
6080 AR="$ac_cv_prog_AR"
6081 fi
6082
6083 test -z "$AR" && AR=ar
6084 if test -n "$plugin_option"; then
6085 if $AR --help 2>&1 | grep -q "\--plugin"; then
6086 touch conftest.c
6087 $AR $plugin_option rc conftest.a conftest.c
6088 if test "$?" != 0; then
6089 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
6090 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
6091 else
6092 AR="$AR $plugin_option"
6093 fi
6094 rm -f conftest.*
6095 fi
6096 fi
6097 test -z "$AR_FLAGS" && AR_FLAGS=cru
6098
6099
6100
6101
6102
6103
6104
6105
6106
6107
6108
6109 if test -n "$ac_tool_prefix"; then
6110 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6111 set dummy ${ac_tool_prefix}strip; ac_word=$2
6112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6113 $as_echo_n "checking for $ac_word... " >&6; }
6114 if ${ac_cv_prog_STRIP+:} false; then :
6115 $as_echo_n "(cached) " >&6
6116 else
6117 if test -n "$STRIP"; then
6118 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6119 else
6120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6121 for as_dir in $PATH
6122 do
6123 IFS=$as_save_IFS
6124 test -z "$as_dir" && as_dir=.
6125 for ac_exec_ext in '' $ac_executable_extensions; do
6126 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6127 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6129 break 2
6130 fi
6131 done
6132 done
6133 IFS=$as_save_IFS
6134
6135 fi
6136 fi
6137 STRIP=$ac_cv_prog_STRIP
6138 if test -n "$STRIP"; then
6139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6140 $as_echo "$STRIP" >&6; }
6141 else
6142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6143 $as_echo "no" >&6; }
6144 fi
6145
6146
6147 fi
6148 if test -z "$ac_cv_prog_STRIP"; then
6149 ac_ct_STRIP=$STRIP
6150 # Extract the first word of "strip", so it can be a program name with args.
6151 set dummy strip; ac_word=$2
6152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6153 $as_echo_n "checking for $ac_word... " >&6; }
6154 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6155 $as_echo_n "(cached) " >&6
6156 else
6157 if test -n "$ac_ct_STRIP"; then
6158 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6159 else
6160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6161 for as_dir in $PATH
6162 do
6163 IFS=$as_save_IFS
6164 test -z "$as_dir" && as_dir=.
6165 for ac_exec_ext in '' $ac_executable_extensions; do
6166 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6167 ac_cv_prog_ac_ct_STRIP="strip"
6168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6169 break 2
6170 fi
6171 done
6172 done
6173 IFS=$as_save_IFS
6174
6175 fi
6176 fi
6177 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6178 if test -n "$ac_ct_STRIP"; then
6179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6180 $as_echo "$ac_ct_STRIP" >&6; }
6181 else
6182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6183 $as_echo "no" >&6; }
6184 fi
6185
6186 if test "x$ac_ct_STRIP" = x; then
6187 STRIP=":"
6188 else
6189 case $cross_compiling:$ac_tool_warned in
6190 yes:)
6191 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6192 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6193 ac_tool_warned=yes ;;
6194 esac
6195 STRIP=$ac_ct_STRIP
6196 fi
6197 else
6198 STRIP="$ac_cv_prog_STRIP"
6199 fi
6200
6201 test -z "$STRIP" && STRIP=:
6202
6203
6204
6205
6206
6207
6208 if test -n "$ac_tool_prefix"; then
6209 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6210 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6212 $as_echo_n "checking for $ac_word... " >&6; }
6213 if ${ac_cv_prog_RANLIB+:} false; then :
6214 $as_echo_n "(cached) " >&6
6215 else
6216 if test -n "$RANLIB"; then
6217 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6218 else
6219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6220 for as_dir in $PATH
6221 do
6222 IFS=$as_save_IFS
6223 test -z "$as_dir" && as_dir=.
6224 for ac_exec_ext in '' $ac_executable_extensions; do
6225 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6226 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6228 break 2
6229 fi
6230 done
6231 done
6232 IFS=$as_save_IFS
6233
6234 fi
6235 fi
6236 RANLIB=$ac_cv_prog_RANLIB
6237 if test -n "$RANLIB"; then
6238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6239 $as_echo "$RANLIB" >&6; }
6240 else
6241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6242 $as_echo "no" >&6; }
6243 fi
6244
6245
6246 fi
6247 if test -z "$ac_cv_prog_RANLIB"; then
6248 ac_ct_RANLIB=$RANLIB
6249 # Extract the first word of "ranlib", so it can be a program name with args.
6250 set dummy ranlib; ac_word=$2
6251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6252 $as_echo_n "checking for $ac_word... " >&6; }
6253 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6254 $as_echo_n "(cached) " >&6
6255 else
6256 if test -n "$ac_ct_RANLIB"; then
6257 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6258 else
6259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6260 for as_dir in $PATH
6261 do
6262 IFS=$as_save_IFS
6263 test -z "$as_dir" && as_dir=.
6264 for ac_exec_ext in '' $ac_executable_extensions; do
6265 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6266 ac_cv_prog_ac_ct_RANLIB="ranlib"
6267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6268 break 2
6269 fi
6270 done
6271 done
6272 IFS=$as_save_IFS
6273
6274 fi
6275 fi
6276 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6277 if test -n "$ac_ct_RANLIB"; then
6278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6279 $as_echo "$ac_ct_RANLIB" >&6; }
6280 else
6281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6282 $as_echo "no" >&6; }
6283 fi
6284
6285 if test "x$ac_ct_RANLIB" = x; then
6286 RANLIB=":"
6287 else
6288 case $cross_compiling:$ac_tool_warned in
6289 yes:)
6290 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6291 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6292 ac_tool_warned=yes ;;
6293 esac
6294 RANLIB=$ac_ct_RANLIB
6295 fi
6296 else
6297 RANLIB="$ac_cv_prog_RANLIB"
6298 fi
6299
6300 test -z "$RANLIB" && RANLIB=:
6301 if test -n "$plugin_option" && test "$RANLIB" != ":"; then
6302 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
6303 RANLIB="$RANLIB $plugin_option"
6304 fi
6305 fi
6306
6307
6308
6309
6310
6311
6312 # Determine commands to create old-style static archives.
6313 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6314 old_postinstall_cmds='chmod 644 $oldlib'
6315 old_postuninstall_cmds=
6316
6317 if test -n "$RANLIB"; then
6318 case $host_os in
6319 openbsd*)
6320 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6321 ;;
6322 *)
6323 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6324 ;;
6325 esac
6326 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6327 fi
6328
6329 case $host_os in
6330 darwin*)
6331 lock_old_archive_extraction=yes ;;
6332 *)
6333 lock_old_archive_extraction=no ;;
6334 esac
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374 # If no C compiler was specified, use CC.
6375 LTCC=${LTCC-"$CC"}
6376
6377 # If no C compiler flags were specified, use CFLAGS.
6378 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6379
6380 # Allow CC to be a program name with arguments.
6381 compiler=$CC
6382
6383
6384 # Check for command to grab the raw symbol name followed by C symbol from nm.
6385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6386 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6387 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6388 $as_echo_n "(cached) " >&6
6389 else
6390
6391 # These are sane defaults that work on at least a few old systems.
6392 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6393
6394 # Character class describing NM global symbol codes.
6395 symcode='[BCDEGRST]'
6396
6397 # Regexp to match symbols that can be accessed directly from C.
6398 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6399
6400 # Define system-specific variables.
6401 case $host_os in
6402 aix*)
6403 symcode='[BCDT]'
6404 ;;
6405 cygwin* | mingw* | pw32* | cegcc*)
6406 symcode='[ABCDGISTW]'
6407 ;;
6408 hpux*)
6409 if test "$host_cpu" = ia64; then
6410 symcode='[ABCDEGRST]'
6411 fi
6412 ;;
6413 irix* | nonstopux*)
6414 symcode='[BCDEGRST]'
6415 ;;
6416 osf*)
6417 symcode='[BCDEGQRST]'
6418 ;;
6419 solaris*)
6420 symcode='[BCDRT]'
6421 ;;
6422 sco3.2v5*)
6423 symcode='[DT]'
6424 ;;
6425 sysv4.2uw2*)
6426 symcode='[DT]'
6427 ;;
6428 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6429 symcode='[ABDT]'
6430 ;;
6431 sysv4)
6432 symcode='[DFNSTU]'
6433 ;;
6434 esac
6435
6436 # If we're using GNU nm, then use its standard symbol codes.
6437 case `$NM -V 2>&1` in
6438 *GNU* | *'with BFD'*)
6439 symcode='[ABCDGIRSTW]' ;;
6440 esac
6441
6442 # Transform an extracted symbol line into a proper C declaration.
6443 # Some systems (esp. on ia64) link data and code symbols differently,
6444 # so use this general approach.
6445 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6446
6447 # Transform an extracted symbol line into symbol name and symbol address
6448 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6449 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'"
6450
6451 # Handle CRLF in mingw tool chain
6452 opt_cr=
6453 case $build_os in
6454 mingw*)
6455 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6456 ;;
6457 esac
6458
6459 # Try without a prefix underscore, then with it.
6460 for ac_symprfx in "" "_"; do
6461
6462 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6463 symxfrm="\\1 $ac_symprfx\\2 \\2"
6464
6465 # Write the raw and C identifiers.
6466 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6467 # Fake it for dumpbin and say T for any non-static function
6468 # and D for any global variable.
6469 # Also find C++ and __fastcall symbols from MSVC++,
6470 # which start with @ or ?.
6471 lt_cv_sys_global_symbol_pipe="$AWK '"\
6472 " {last_section=section; section=\$ 3};"\
6473 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6474 " \$ 0!~/External *\|/{next};"\
6475 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6476 " {if(hide[section]) next};"\
6477 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6478 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6479 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6480 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6481 " ' prfx=^$ac_symprfx"
6482 else
6483 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6484 fi
6485
6486 # Check to see that the pipe works correctly.
6487 pipe_works=no
6488
6489 rm -f conftest*
6490 cat > conftest.$ac_ext <<_LT_EOF
6491 #ifdef __cplusplus
6492 extern "C" {
6493 #endif
6494 char nm_test_var;
6495 void nm_test_func(void);
6496 void nm_test_func(void){}
6497 #ifdef __cplusplus
6498 }
6499 #endif
6500 int main(){nm_test_var='a';nm_test_func();return(0);}
6501 _LT_EOF
6502
6503 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6504 (eval $ac_compile) 2>&5
6505 ac_status=$?
6506 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6507 test $ac_status = 0; }; then
6508 # Now try to grab the symbols.
6509 nlist=conftest.nm
6510 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6511 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6512 ac_status=$?
6513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6514 test $ac_status = 0; } && test -s "$nlist"; then
6515 # Try sorting and uniquifying the output.
6516 if sort "$nlist" | uniq > "$nlist"T; then
6517 mv -f "$nlist"T "$nlist"
6518 else
6519 rm -f "$nlist"T
6520 fi
6521
6522 # Make sure that we snagged all the symbols we need.
6523 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6524 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6525 cat <<_LT_EOF > conftest.$ac_ext
6526 #ifdef __cplusplus
6527 extern "C" {
6528 #endif
6529
6530 _LT_EOF
6531 # Now generate the symbol file.
6532 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6533
6534 cat <<_LT_EOF >> conftest.$ac_ext
6535
6536 /* The mapping between symbol names and symbols. */
6537 const struct {
6538 const char *name;
6539 void *address;
6540 }
6541 lt__PROGRAM__LTX_preloaded_symbols[] =
6542 {
6543 { "@PROGRAM@", (void *) 0 },
6544 _LT_EOF
6545 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6546 cat <<\_LT_EOF >> conftest.$ac_ext
6547 {0, (void *) 0}
6548 };
6549
6550 /* This works around a problem in FreeBSD linker */
6551 #ifdef FREEBSD_WORKAROUND
6552 static const void *lt_preloaded_setup() {
6553 return lt__PROGRAM__LTX_preloaded_symbols;
6554 }
6555 #endif
6556
6557 #ifdef __cplusplus
6558 }
6559 #endif
6560 _LT_EOF
6561 # Now try linking the two files.
6562 mv conftest.$ac_objext conftstm.$ac_objext
6563 lt_save_LIBS="$LIBS"
6564 lt_save_CFLAGS="$CFLAGS"
6565 LIBS="conftstm.$ac_objext"
6566 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6567 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6568 (eval $ac_link) 2>&5
6569 ac_status=$?
6570 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6571 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6572 pipe_works=yes
6573 fi
6574 LIBS="$lt_save_LIBS"
6575 CFLAGS="$lt_save_CFLAGS"
6576 else
6577 echo "cannot find nm_test_func in $nlist" >&5
6578 fi
6579 else
6580 echo "cannot find nm_test_var in $nlist" >&5
6581 fi
6582 else
6583 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6584 fi
6585 else
6586 echo "$progname: failed program was:" >&5
6587 cat conftest.$ac_ext >&5
6588 fi
6589 rm -rf conftest* conftst*
6590
6591 # Do not use the global_symbol_pipe unless it works.
6592 if test "$pipe_works" = yes; then
6593 break
6594 else
6595 lt_cv_sys_global_symbol_pipe=
6596 fi
6597 done
6598
6599 fi
6600
6601 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6602 lt_cv_sys_global_symbol_to_cdecl=
6603 fi
6604 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6606 $as_echo "failed" >&6; }
6607 else
6608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6609 $as_echo "ok" >&6; }
6610 fi
6611
6612
6613
6614
6615
6616
6617
6618
6619
6620
6621
6622
6623
6624
6625
6626
6627
6628
6629
6630
6631
6632
6633 # Check whether --enable-libtool-lock was given.
6634 if test "${enable_libtool_lock+set}" = set; then :
6635 enableval=$enable_libtool_lock;
6636 fi
6637
6638 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6639
6640 # Some flags need to be propagated to the compiler or linker for good
6641 # libtool support.
6642 case $host in
6643 ia64-*-hpux*)
6644 # Find out which ABI we are using.
6645 echo 'int i;' > conftest.$ac_ext
6646 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6647 (eval $ac_compile) 2>&5
6648 ac_status=$?
6649 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6650 test $ac_status = 0; }; then
6651 case `/usr/bin/file conftest.$ac_objext` in
6652 *ELF-32*)
6653 HPUX_IA64_MODE="32"
6654 ;;
6655 *ELF-64*)
6656 HPUX_IA64_MODE="64"
6657 ;;
6658 esac
6659 fi
6660 rm -rf conftest*
6661 ;;
6662 *-*-irix6*)
6663 # Find out which ABI we are using.
6664 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6665 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6666 (eval $ac_compile) 2>&5
6667 ac_status=$?
6668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6669 test $ac_status = 0; }; then
6670 if test "$lt_cv_prog_gnu_ld" = yes; then
6671 case `/usr/bin/file conftest.$ac_objext` in
6672 *32-bit*)
6673 LD="${LD-ld} -melf32bsmip"
6674 ;;
6675 *N32*)
6676 LD="${LD-ld} -melf32bmipn32"
6677 ;;
6678 *64-bit*)
6679 LD="${LD-ld} -melf64bmip"
6680 ;;
6681 esac
6682 else
6683 case `/usr/bin/file conftest.$ac_objext` in
6684 *32-bit*)
6685 LD="${LD-ld} -32"
6686 ;;
6687 *N32*)
6688 LD="${LD-ld} -n32"
6689 ;;
6690 *64-bit*)
6691 LD="${LD-ld} -64"
6692 ;;
6693 esac
6694 fi
6695 fi
6696 rm -rf conftest*
6697 ;;
6698
6699 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6700 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6701 # Find out which ABI we are using.
6702 echo 'int i;' > conftest.$ac_ext
6703 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6704 (eval $ac_compile) 2>&5
6705 ac_status=$?
6706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6707 test $ac_status = 0; }; then
6708 case `/usr/bin/file conftest.o` in
6709 *32-bit*)
6710 case $host in
6711 x86_64-*kfreebsd*-gnu)
6712 LD="${LD-ld} -m elf_i386_fbsd"
6713 ;;
6714 x86_64-*linux*)
6715 case `/usr/bin/file conftest.o` in
6716 *x86-64*)
6717 LD="${LD-ld} -m elf32_x86_64"
6718 ;;
6719 *)
6720 LD="${LD-ld} -m elf_i386"
6721 ;;
6722 esac
6723 ;;
6724 powerpc64le-*linux*)
6725 LD="${LD-ld} -m elf32lppclinux"
6726 ;;
6727 powerpc64-*linux*)
6728 LD="${LD-ld} -m elf32ppclinux"
6729 ;;
6730 s390x-*linux*)
6731 LD="${LD-ld} -m elf_s390"
6732 ;;
6733 sparc64-*linux*)
6734 LD="${LD-ld} -m elf32_sparc"
6735 ;;
6736 esac
6737 ;;
6738 *64-bit*)
6739 case $host in
6740 x86_64-*kfreebsd*-gnu)
6741 LD="${LD-ld} -m elf_x86_64_fbsd"
6742 ;;
6743 x86_64-*linux*)
6744 LD="${LD-ld} -m elf_x86_64"
6745 ;;
6746 powerpcle-*linux*)
6747 LD="${LD-ld} -m elf64lppc"
6748 ;;
6749 powerpc-*linux*)
6750 LD="${LD-ld} -m elf64ppc"
6751 ;;
6752 s390*-*linux*|s390*-*tpf*)
6753 LD="${LD-ld} -m elf64_s390"
6754 ;;
6755 sparc*-*linux*)
6756 LD="${LD-ld} -m elf64_sparc"
6757 ;;
6758 esac
6759 ;;
6760 esac
6761 fi
6762 rm -rf conftest*
6763 ;;
6764
6765 *-*-sco3.2v5*)
6766 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6767 SAVE_CFLAGS="$CFLAGS"
6768 CFLAGS="$CFLAGS -belf"
6769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6770 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6771 if ${lt_cv_cc_needs_belf+:} false; then :
6772 $as_echo_n "(cached) " >&6
6773 else
6774 ac_ext=c
6775 ac_cpp='$CPP $CPPFLAGS'
6776 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6777 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6778 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6779
6780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6781 /* end confdefs.h. */
6782
6783 int
6784 main ()
6785 {
6786
6787 ;
6788 return 0;
6789 }
6790 _ACEOF
6791 if ac_fn_c_try_link "$LINENO"; then :
6792 lt_cv_cc_needs_belf=yes
6793 else
6794 lt_cv_cc_needs_belf=no
6795 fi
6796 rm -f core conftest.err conftest.$ac_objext \
6797 conftest$ac_exeext conftest.$ac_ext
6798 ac_ext=c
6799 ac_cpp='$CPP $CPPFLAGS'
6800 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6801 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6802 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6803
6804 fi
6805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6806 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6807 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6808 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6809 CFLAGS="$SAVE_CFLAGS"
6810 fi
6811 ;;
6812 sparc*-*solaris*)
6813 # Find out which ABI we are using.
6814 echo 'int i;' > conftest.$ac_ext
6815 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6816 (eval $ac_compile) 2>&5
6817 ac_status=$?
6818 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6819 test $ac_status = 0; }; then
6820 case `/usr/bin/file conftest.o` in
6821 *64-bit*)
6822 case $lt_cv_prog_gnu_ld in
6823 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6824 *)
6825 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6826 LD="${LD-ld} -64"
6827 fi
6828 ;;
6829 esac
6830 ;;
6831 esac
6832 fi
6833 rm -rf conftest*
6834 ;;
6835 esac
6836
6837 need_locks="$enable_libtool_lock"
6838
6839
6840 case $host_os in
6841 rhapsody* | darwin*)
6842 if test -n "$ac_tool_prefix"; then
6843 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6844 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6846 $as_echo_n "checking for $ac_word... " >&6; }
6847 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6848 $as_echo_n "(cached) " >&6
6849 else
6850 if test -n "$DSYMUTIL"; then
6851 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6852 else
6853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6854 for as_dir in $PATH
6855 do
6856 IFS=$as_save_IFS
6857 test -z "$as_dir" && as_dir=.
6858 for ac_exec_ext in '' $ac_executable_extensions; do
6859 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6860 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6862 break 2
6863 fi
6864 done
6865 done
6866 IFS=$as_save_IFS
6867
6868 fi
6869 fi
6870 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6871 if test -n "$DSYMUTIL"; then
6872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6873 $as_echo "$DSYMUTIL" >&6; }
6874 else
6875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6876 $as_echo "no" >&6; }
6877 fi
6878
6879
6880 fi
6881 if test -z "$ac_cv_prog_DSYMUTIL"; then
6882 ac_ct_DSYMUTIL=$DSYMUTIL
6883 # Extract the first word of "dsymutil", so it can be a program name with args.
6884 set dummy dsymutil; ac_word=$2
6885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6886 $as_echo_n "checking for $ac_word... " >&6; }
6887 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6888 $as_echo_n "(cached) " >&6
6889 else
6890 if test -n "$ac_ct_DSYMUTIL"; then
6891 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6892 else
6893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6894 for as_dir in $PATH
6895 do
6896 IFS=$as_save_IFS
6897 test -z "$as_dir" && as_dir=.
6898 for ac_exec_ext in '' $ac_executable_extensions; do
6899 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6900 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6902 break 2
6903 fi
6904 done
6905 done
6906 IFS=$as_save_IFS
6907
6908 fi
6909 fi
6910 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6911 if test -n "$ac_ct_DSYMUTIL"; then
6912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6913 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6914 else
6915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6916 $as_echo "no" >&6; }
6917 fi
6918
6919 if test "x$ac_ct_DSYMUTIL" = x; then
6920 DSYMUTIL=":"
6921 else
6922 case $cross_compiling:$ac_tool_warned in
6923 yes:)
6924 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6925 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6926 ac_tool_warned=yes ;;
6927 esac
6928 DSYMUTIL=$ac_ct_DSYMUTIL
6929 fi
6930 else
6931 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6932 fi
6933
6934 if test -n "$ac_tool_prefix"; then
6935 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6936 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6938 $as_echo_n "checking for $ac_word... " >&6; }
6939 if ${ac_cv_prog_NMEDIT+:} false; then :
6940 $as_echo_n "(cached) " >&6
6941 else
6942 if test -n "$NMEDIT"; then
6943 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6944 else
6945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6946 for as_dir in $PATH
6947 do
6948 IFS=$as_save_IFS
6949 test -z "$as_dir" && as_dir=.
6950 for ac_exec_ext in '' $ac_executable_extensions; do
6951 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6952 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6954 break 2
6955 fi
6956 done
6957 done
6958 IFS=$as_save_IFS
6959
6960 fi
6961 fi
6962 NMEDIT=$ac_cv_prog_NMEDIT
6963 if test -n "$NMEDIT"; then
6964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6965 $as_echo "$NMEDIT" >&6; }
6966 else
6967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6968 $as_echo "no" >&6; }
6969 fi
6970
6971
6972 fi
6973 if test -z "$ac_cv_prog_NMEDIT"; then
6974 ac_ct_NMEDIT=$NMEDIT
6975 # Extract the first word of "nmedit", so it can be a program name with args.
6976 set dummy nmedit; ac_word=$2
6977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6978 $as_echo_n "checking for $ac_word... " >&6; }
6979 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6980 $as_echo_n "(cached) " >&6
6981 else
6982 if test -n "$ac_ct_NMEDIT"; then
6983 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6984 else
6985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6986 for as_dir in $PATH
6987 do
6988 IFS=$as_save_IFS
6989 test -z "$as_dir" && as_dir=.
6990 for ac_exec_ext in '' $ac_executable_extensions; do
6991 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6992 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6994 break 2
6995 fi
6996 done
6997 done
6998 IFS=$as_save_IFS
6999
7000 fi
7001 fi
7002 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7003 if test -n "$ac_ct_NMEDIT"; then
7004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7005 $as_echo "$ac_ct_NMEDIT" >&6; }
7006 else
7007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7008 $as_echo "no" >&6; }
7009 fi
7010
7011 if test "x$ac_ct_NMEDIT" = x; then
7012 NMEDIT=":"
7013 else
7014 case $cross_compiling:$ac_tool_warned in
7015 yes:)
7016 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7017 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7018 ac_tool_warned=yes ;;
7019 esac
7020 NMEDIT=$ac_ct_NMEDIT
7021 fi
7022 else
7023 NMEDIT="$ac_cv_prog_NMEDIT"
7024 fi
7025
7026 if test -n "$ac_tool_prefix"; then
7027 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7028 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7030 $as_echo_n "checking for $ac_word... " >&6; }
7031 if ${ac_cv_prog_LIPO+:} false; then :
7032 $as_echo_n "(cached) " >&6
7033 else
7034 if test -n "$LIPO"; then
7035 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7036 else
7037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7038 for as_dir in $PATH
7039 do
7040 IFS=$as_save_IFS
7041 test -z "$as_dir" && as_dir=.
7042 for ac_exec_ext in '' $ac_executable_extensions; do
7043 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7044 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7046 break 2
7047 fi
7048 done
7049 done
7050 IFS=$as_save_IFS
7051
7052 fi
7053 fi
7054 LIPO=$ac_cv_prog_LIPO
7055 if test -n "$LIPO"; then
7056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7057 $as_echo "$LIPO" >&6; }
7058 else
7059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7060 $as_echo "no" >&6; }
7061 fi
7062
7063
7064 fi
7065 if test -z "$ac_cv_prog_LIPO"; then
7066 ac_ct_LIPO=$LIPO
7067 # Extract the first word of "lipo", so it can be a program name with args.
7068 set dummy lipo; ac_word=$2
7069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7070 $as_echo_n "checking for $ac_word... " >&6; }
7071 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7072 $as_echo_n "(cached) " >&6
7073 else
7074 if test -n "$ac_ct_LIPO"; then
7075 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7076 else
7077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7078 for as_dir in $PATH
7079 do
7080 IFS=$as_save_IFS
7081 test -z "$as_dir" && as_dir=.
7082 for ac_exec_ext in '' $ac_executable_extensions; do
7083 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7084 ac_cv_prog_ac_ct_LIPO="lipo"
7085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7086 break 2
7087 fi
7088 done
7089 done
7090 IFS=$as_save_IFS
7091
7092 fi
7093 fi
7094 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7095 if test -n "$ac_ct_LIPO"; then
7096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7097 $as_echo "$ac_ct_LIPO" >&6; }
7098 else
7099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7100 $as_echo "no" >&6; }
7101 fi
7102
7103 if test "x$ac_ct_LIPO" = x; then
7104 LIPO=":"
7105 else
7106 case $cross_compiling:$ac_tool_warned in
7107 yes:)
7108 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7109 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7110 ac_tool_warned=yes ;;
7111 esac
7112 LIPO=$ac_ct_LIPO
7113 fi
7114 else
7115 LIPO="$ac_cv_prog_LIPO"
7116 fi
7117
7118 if test -n "$ac_tool_prefix"; then
7119 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7120 set dummy ${ac_tool_prefix}otool; ac_word=$2
7121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7122 $as_echo_n "checking for $ac_word... " >&6; }
7123 if ${ac_cv_prog_OTOOL+:} false; then :
7124 $as_echo_n "(cached) " >&6
7125 else
7126 if test -n "$OTOOL"; then
7127 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7128 else
7129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7130 for as_dir in $PATH
7131 do
7132 IFS=$as_save_IFS
7133 test -z "$as_dir" && as_dir=.
7134 for ac_exec_ext in '' $ac_executable_extensions; do
7135 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7136 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7138 break 2
7139 fi
7140 done
7141 done
7142 IFS=$as_save_IFS
7143
7144 fi
7145 fi
7146 OTOOL=$ac_cv_prog_OTOOL
7147 if test -n "$OTOOL"; then
7148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7149 $as_echo "$OTOOL" >&6; }
7150 else
7151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7152 $as_echo "no" >&6; }
7153 fi
7154
7155
7156 fi
7157 if test -z "$ac_cv_prog_OTOOL"; then
7158 ac_ct_OTOOL=$OTOOL
7159 # Extract the first word of "otool", so it can be a program name with args.
7160 set dummy otool; ac_word=$2
7161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7162 $as_echo_n "checking for $ac_word... " >&6; }
7163 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7164 $as_echo_n "(cached) " >&6
7165 else
7166 if test -n "$ac_ct_OTOOL"; then
7167 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7168 else
7169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7170 for as_dir in $PATH
7171 do
7172 IFS=$as_save_IFS
7173 test -z "$as_dir" && as_dir=.
7174 for ac_exec_ext in '' $ac_executable_extensions; do
7175 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7176 ac_cv_prog_ac_ct_OTOOL="otool"
7177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7178 break 2
7179 fi
7180 done
7181 done
7182 IFS=$as_save_IFS
7183
7184 fi
7185 fi
7186 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7187 if test -n "$ac_ct_OTOOL"; then
7188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7189 $as_echo "$ac_ct_OTOOL" >&6; }
7190 else
7191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7192 $as_echo "no" >&6; }
7193 fi
7194
7195 if test "x$ac_ct_OTOOL" = x; then
7196 OTOOL=":"
7197 else
7198 case $cross_compiling:$ac_tool_warned in
7199 yes:)
7200 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7201 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7202 ac_tool_warned=yes ;;
7203 esac
7204 OTOOL=$ac_ct_OTOOL
7205 fi
7206 else
7207 OTOOL="$ac_cv_prog_OTOOL"
7208 fi
7209
7210 if test -n "$ac_tool_prefix"; then
7211 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7212 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7214 $as_echo_n "checking for $ac_word... " >&6; }
7215 if ${ac_cv_prog_OTOOL64+:} false; then :
7216 $as_echo_n "(cached) " >&6
7217 else
7218 if test -n "$OTOOL64"; then
7219 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7220 else
7221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7222 for as_dir in $PATH
7223 do
7224 IFS=$as_save_IFS
7225 test -z "$as_dir" && as_dir=.
7226 for ac_exec_ext in '' $ac_executable_extensions; do
7227 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7228 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7230 break 2
7231 fi
7232 done
7233 done
7234 IFS=$as_save_IFS
7235
7236 fi
7237 fi
7238 OTOOL64=$ac_cv_prog_OTOOL64
7239 if test -n "$OTOOL64"; then
7240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7241 $as_echo "$OTOOL64" >&6; }
7242 else
7243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7244 $as_echo "no" >&6; }
7245 fi
7246
7247
7248 fi
7249 if test -z "$ac_cv_prog_OTOOL64"; then
7250 ac_ct_OTOOL64=$OTOOL64
7251 # Extract the first word of "otool64", so it can be a program name with args.
7252 set dummy otool64; ac_word=$2
7253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7254 $as_echo_n "checking for $ac_word... " >&6; }
7255 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7256 $as_echo_n "(cached) " >&6
7257 else
7258 if test -n "$ac_ct_OTOOL64"; then
7259 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7260 else
7261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7262 for as_dir in $PATH
7263 do
7264 IFS=$as_save_IFS
7265 test -z "$as_dir" && as_dir=.
7266 for ac_exec_ext in '' $ac_executable_extensions; do
7267 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7268 ac_cv_prog_ac_ct_OTOOL64="otool64"
7269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7270 break 2
7271 fi
7272 done
7273 done
7274 IFS=$as_save_IFS
7275
7276 fi
7277 fi
7278 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7279 if test -n "$ac_ct_OTOOL64"; then
7280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7281 $as_echo "$ac_ct_OTOOL64" >&6; }
7282 else
7283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7284 $as_echo "no" >&6; }
7285 fi
7286
7287 if test "x$ac_ct_OTOOL64" = x; then
7288 OTOOL64=":"
7289 else
7290 case $cross_compiling:$ac_tool_warned in
7291 yes:)
7292 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7293 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7294 ac_tool_warned=yes ;;
7295 esac
7296 OTOOL64=$ac_ct_OTOOL64
7297 fi
7298 else
7299 OTOOL64="$ac_cv_prog_OTOOL64"
7300 fi
7301
7302
7303
7304
7305
7306
7307
7308
7309
7310
7311
7312
7313
7314
7315
7316
7317
7318
7319
7320
7321
7322
7323
7324
7325
7326
7327
7328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7329 $as_echo_n "checking for -single_module linker flag... " >&6; }
7330 if ${lt_cv_apple_cc_single_mod+:} false; then :
7331 $as_echo_n "(cached) " >&6
7332 else
7333 lt_cv_apple_cc_single_mod=no
7334 if test -z "${LT_MULTI_MODULE}"; then
7335 # By default we will add the -single_module flag. You can override
7336 # by either setting the environment variable LT_MULTI_MODULE
7337 # non-empty at configure time, or by adding -multi_module to the
7338 # link flags.
7339 rm -rf libconftest.dylib*
7340 echo "int foo(void){return 1;}" > conftest.c
7341 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7342 -dynamiclib -Wl,-single_module conftest.c" >&5
7343 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7344 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7345 _lt_result=$?
7346 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7347 lt_cv_apple_cc_single_mod=yes
7348 else
7349 cat conftest.err >&5
7350 fi
7351 rm -rf libconftest.dylib*
7352 rm -f conftest.*
7353 fi
7354 fi
7355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7356 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7358 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7359 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7360 $as_echo_n "(cached) " >&6
7361 else
7362 lt_cv_ld_exported_symbols_list=no
7363 save_LDFLAGS=$LDFLAGS
7364 echo "_main" > conftest.sym
7365 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7367 /* end confdefs.h. */
7368
7369 int
7370 main ()
7371 {
7372
7373 ;
7374 return 0;
7375 }
7376 _ACEOF
7377 if ac_fn_c_try_link "$LINENO"; then :
7378 lt_cv_ld_exported_symbols_list=yes
7379 else
7380 lt_cv_ld_exported_symbols_list=no
7381 fi
7382 rm -f core conftest.err conftest.$ac_objext \
7383 conftest$ac_exeext conftest.$ac_ext
7384 LDFLAGS="$save_LDFLAGS"
7385
7386 fi
7387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7388 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7390 $as_echo_n "checking for -force_load linker flag... " >&6; }
7391 if ${lt_cv_ld_force_load+:} false; then :
7392 $as_echo_n "(cached) " >&6
7393 else
7394 lt_cv_ld_force_load=no
7395 cat > conftest.c << _LT_EOF
7396 int forced_loaded() { return 2;}
7397 _LT_EOF
7398 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7399 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7400 echo "$AR cru libconftest.a conftest.o" >&5
7401 $AR cru libconftest.a conftest.o 2>&5
7402 cat > conftest.c << _LT_EOF
7403 int main() { return 0;}
7404 _LT_EOF
7405 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7406 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7407 _lt_result=$?
7408 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7409 lt_cv_ld_force_load=yes
7410 else
7411 cat conftest.err >&5
7412 fi
7413 rm -f conftest.err libconftest.a conftest conftest.c
7414 rm -rf conftest.dSYM
7415
7416 fi
7417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7418 $as_echo "$lt_cv_ld_force_load" >&6; }
7419 case $host_os in
7420 rhapsody* | darwin1.[012])
7421 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7422 darwin1.*)
7423 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7424 darwin*) # darwin 5.x on
7425 # if running on 10.5 or later, the deployment target defaults
7426 # to the OS version, if on x86, and 10.4, the deployment
7427 # target defaults to 10.4. Don't you love it?
7428 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7429 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7430 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7431 10.[012][,.]*)
7432 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7433 10.*)
7434 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7435 esac
7436 ;;
7437 esac
7438 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7439 _lt_dar_single_mod='$single_module'
7440 fi
7441 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7442 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7443 else
7444 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7445 fi
7446 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7447 _lt_dsymutil='~$DSYMUTIL $lib || :'
7448 else
7449 _lt_dsymutil=
7450 fi
7451 ;;
7452 esac
7453
7454 for ac_header in dlfcn.h
7455 do :
7456 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7457 "
7458 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7459 cat >>confdefs.h <<_ACEOF
7460 #define HAVE_DLFCN_H 1
7461 _ACEOF
7462
7463 fi
7464
7465 done
7466
7467
7468
7469
7470
7471 # Set options
7472
7473
7474
7475 enable_dlopen=no
7476
7477
7478 enable_win32_dll=no
7479
7480
7481 # Check whether --enable-shared was given.
7482 if test "${enable_shared+set}" = set; then :
7483 enableval=$enable_shared; p=${PACKAGE-default}
7484 case $enableval in
7485 yes) enable_shared=yes ;;
7486 no) enable_shared=no ;;
7487 *)
7488 enable_shared=no
7489 # Look at the argument we got. We use all the common list separators.
7490 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7491 for pkg in $enableval; do
7492 IFS="$lt_save_ifs"
7493 if test "X$pkg" = "X$p"; then
7494 enable_shared=yes
7495 fi
7496 done
7497 IFS="$lt_save_ifs"
7498 ;;
7499 esac
7500 else
7501 enable_shared=yes
7502 fi
7503
7504
7505
7506
7507
7508
7509
7510
7511
7512 # Check whether --enable-static was given.
7513 if test "${enable_static+set}" = set; then :
7514 enableval=$enable_static; p=${PACKAGE-default}
7515 case $enableval in
7516 yes) enable_static=yes ;;
7517 no) enable_static=no ;;
7518 *)
7519 enable_static=no
7520 # Look at the argument we got. We use all the common list separators.
7521 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7522 for pkg in $enableval; do
7523 IFS="$lt_save_ifs"
7524 if test "X$pkg" = "X$p"; then
7525 enable_static=yes
7526 fi
7527 done
7528 IFS="$lt_save_ifs"
7529 ;;
7530 esac
7531 else
7532 enable_static=yes
7533 fi
7534
7535
7536
7537
7538
7539
7540
7541
7542
7543
7544 # Check whether --with-pic was given.
7545 if test "${with_pic+set}" = set; then :
7546 withval=$with_pic; pic_mode="$withval"
7547 else
7548 pic_mode=default
7549 fi
7550
7551
7552 test -z "$pic_mode" && pic_mode=default
7553
7554
7555
7556
7557
7558
7559
7560 # Check whether --enable-fast-install was given.
7561 if test "${enable_fast_install+set}" = set; then :
7562 enableval=$enable_fast_install; p=${PACKAGE-default}
7563 case $enableval in
7564 yes) enable_fast_install=yes ;;
7565 no) enable_fast_install=no ;;
7566 *)
7567 enable_fast_install=no
7568 # Look at the argument we got. We use all the common list separators.
7569 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7570 for pkg in $enableval; do
7571 IFS="$lt_save_ifs"
7572 if test "X$pkg" = "X$p"; then
7573 enable_fast_install=yes
7574 fi
7575 done
7576 IFS="$lt_save_ifs"
7577 ;;
7578 esac
7579 else
7580 enable_fast_install=yes
7581 fi
7582
7583
7584
7585
7586
7587
7588
7589
7590
7591
7592
7593 # This can be used to rebuild libtool when needed
7594 LIBTOOL_DEPS="$ltmain"
7595
7596 # Always use our own libtool.
7597 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7598
7599
7600
7601
7602
7603
7604
7605
7606
7607
7608
7609
7610
7611
7612
7613
7614
7615
7616
7617
7618
7619
7620
7621
7622
7623
7624 test -z "$LN_S" && LN_S="ln -s"
7625
7626
7627
7628
7629
7630
7631
7632
7633
7634
7635
7636
7637
7638
7639 if test -n "${ZSH_VERSION+set}" ; then
7640 setopt NO_GLOB_SUBST
7641 fi
7642
7643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7644 $as_echo_n "checking for objdir... " >&6; }
7645 if ${lt_cv_objdir+:} false; then :
7646 $as_echo_n "(cached) " >&6
7647 else
7648 rm -f .libs 2>/dev/null
7649 mkdir .libs 2>/dev/null
7650 if test -d .libs; then
7651 lt_cv_objdir=.libs
7652 else
7653 # MS-DOS does not allow filenames that begin with a dot.
7654 lt_cv_objdir=_libs
7655 fi
7656 rmdir .libs 2>/dev/null
7657 fi
7658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7659 $as_echo "$lt_cv_objdir" >&6; }
7660 objdir=$lt_cv_objdir
7661
7662
7663
7664
7665
7666 cat >>confdefs.h <<_ACEOF
7667 #define LT_OBJDIR "$lt_cv_objdir/"
7668 _ACEOF
7669
7670
7671
7672
7673 case $host_os in
7674 aix3*)
7675 # AIX sometimes has problems with the GCC collect2 program. For some
7676 # reason, if we set the COLLECT_NAMES environment variable, the problems
7677 # vanish in a puff of smoke.
7678 if test "X${COLLECT_NAMES+set}" != Xset; then
7679 COLLECT_NAMES=
7680 export COLLECT_NAMES
7681 fi
7682 ;;
7683 esac
7684
7685 # Global variables:
7686 ofile=libtool
7687 can_build_shared=yes
7688
7689 # All known linkers require a `.a' archive for static linking (except MSVC,
7690 # which needs '.lib').
7691 libext=a
7692
7693 with_gnu_ld="$lt_cv_prog_gnu_ld"
7694
7695 old_CC="$CC"
7696 old_CFLAGS="$CFLAGS"
7697
7698 # Set sane defaults for various variables
7699 test -z "$CC" && CC=cc
7700 test -z "$LTCC" && LTCC=$CC
7701 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7702 test -z "$LD" && LD=ld
7703 test -z "$ac_objext" && ac_objext=o
7704
7705 for cc_temp in $compiler""; do
7706 case $cc_temp in
7707 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7708 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7709 \-*) ;;
7710 *) break;;
7711 esac
7712 done
7713 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7714
7715
7716 # Only perform the check for file, if the check method requires it
7717 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7718 case $deplibs_check_method in
7719 file_magic*)
7720 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7722 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7723 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7724 $as_echo_n "(cached) " >&6
7725 else
7726 case $MAGIC_CMD in
7727 [\\/*] | ?:[\\/]*)
7728 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7729 ;;
7730 *)
7731 lt_save_MAGIC_CMD="$MAGIC_CMD"
7732 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7733 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7734 for ac_dir in $ac_dummy; do
7735 IFS="$lt_save_ifs"
7736 test -z "$ac_dir" && ac_dir=.
7737 if test -f $ac_dir/${ac_tool_prefix}file; then
7738 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7739 if test -n "$file_magic_test_file"; then
7740 case $deplibs_check_method in
7741 "file_magic "*)
7742 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7743 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7744 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7745 $EGREP "$file_magic_regex" > /dev/null; then
7746 :
7747 else
7748 cat <<_LT_EOF 1>&2
7749
7750 *** Warning: the command libtool uses to detect shared libraries,
7751 *** $file_magic_cmd, produces output that libtool cannot recognize.
7752 *** The result is that libtool may fail to recognize shared libraries
7753 *** as such. This will affect the creation of libtool libraries that
7754 *** depend on shared libraries, but programs linked with such libtool
7755 *** libraries will work regardless of this problem. Nevertheless, you
7756 *** may want to report the problem to your system manager and/or to
7757 *** bug-libtool@gnu.org
7758
7759 _LT_EOF
7760 fi ;;
7761 esac
7762 fi
7763 break
7764 fi
7765 done
7766 IFS="$lt_save_ifs"
7767 MAGIC_CMD="$lt_save_MAGIC_CMD"
7768 ;;
7769 esac
7770 fi
7771
7772 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7773 if test -n "$MAGIC_CMD"; then
7774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7775 $as_echo "$MAGIC_CMD" >&6; }
7776 else
7777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7778 $as_echo "no" >&6; }
7779 fi
7780
7781
7782
7783
7784
7785 if test -z "$lt_cv_path_MAGIC_CMD"; then
7786 if test -n "$ac_tool_prefix"; then
7787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7788 $as_echo_n "checking for file... " >&6; }
7789 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7790 $as_echo_n "(cached) " >&6
7791 else
7792 case $MAGIC_CMD in
7793 [\\/*] | ?:[\\/]*)
7794 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7795 ;;
7796 *)
7797 lt_save_MAGIC_CMD="$MAGIC_CMD"
7798 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7799 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7800 for ac_dir in $ac_dummy; do
7801 IFS="$lt_save_ifs"
7802 test -z "$ac_dir" && ac_dir=.
7803 if test -f $ac_dir/file; then
7804 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7805 if test -n "$file_magic_test_file"; then
7806 case $deplibs_check_method in
7807 "file_magic "*)
7808 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7809 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7810 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7811 $EGREP "$file_magic_regex" > /dev/null; then
7812 :
7813 else
7814 cat <<_LT_EOF 1>&2
7815
7816 *** Warning: the command libtool uses to detect shared libraries,
7817 *** $file_magic_cmd, produces output that libtool cannot recognize.
7818 *** The result is that libtool may fail to recognize shared libraries
7819 *** as such. This will affect the creation of libtool libraries that
7820 *** depend on shared libraries, but programs linked with such libtool
7821 *** libraries will work regardless of this problem. Nevertheless, you
7822 *** may want to report the problem to your system manager and/or to
7823 *** bug-libtool@gnu.org
7824
7825 _LT_EOF
7826 fi ;;
7827 esac
7828 fi
7829 break
7830 fi
7831 done
7832 IFS="$lt_save_ifs"
7833 MAGIC_CMD="$lt_save_MAGIC_CMD"
7834 ;;
7835 esac
7836 fi
7837
7838 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7839 if test -n "$MAGIC_CMD"; then
7840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7841 $as_echo "$MAGIC_CMD" >&6; }
7842 else
7843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7844 $as_echo "no" >&6; }
7845 fi
7846
7847
7848 else
7849 MAGIC_CMD=:
7850 fi
7851 fi
7852
7853 fi
7854 ;;
7855 esac
7856
7857 # Use C for the default configuration in the libtool script
7858
7859 lt_save_CC="$CC"
7860 ac_ext=c
7861 ac_cpp='$CPP $CPPFLAGS'
7862 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7863 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7864 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7865
7866
7867 # Source file extension for C test sources.
7868 ac_ext=c
7869
7870 # Object file extension for compiled C test sources.
7871 objext=o
7872 objext=$objext
7873
7874 # Code to be used in simple compile tests
7875 lt_simple_compile_test_code="int some_variable = 0;"
7876
7877 # Code to be used in simple link tests
7878 lt_simple_link_test_code='int main(){return(0);}'
7879
7880
7881
7882
7883
7884
7885
7886 # If no C compiler was specified, use CC.
7887 LTCC=${LTCC-"$CC"}
7888
7889 # If no C compiler flags were specified, use CFLAGS.
7890 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7891
7892 # Allow CC to be a program name with arguments.
7893 compiler=$CC
7894
7895 # Save the default compiler, since it gets overwritten when the other
7896 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7897 compiler_DEFAULT=$CC
7898
7899 # save warnings/boilerplate of simple test code
7900 ac_outfile=conftest.$ac_objext
7901 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7902 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7903 _lt_compiler_boilerplate=`cat conftest.err`
7904 $RM conftest*
7905
7906 ac_outfile=conftest.$ac_objext
7907 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7908 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7909 _lt_linker_boilerplate=`cat conftest.err`
7910 $RM -r conftest*
7911
7912
7913 ## CAVEAT EMPTOR:
7914 ## There is no encapsulation within the following macros, do not change
7915 ## the running order or otherwise move them around unless you know exactly
7916 ## what you are doing...
7917 if test -n "$compiler"; then
7918
7919 lt_prog_compiler_no_builtin_flag=
7920
7921 if test "$GCC" = yes; then
7922 case $cc_basename in
7923 nvcc*)
7924 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7925 *)
7926 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7927 esac
7928
7929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7930 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7931 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7932 $as_echo_n "(cached) " >&6
7933 else
7934 lt_cv_prog_compiler_rtti_exceptions=no
7935 ac_outfile=conftest.$ac_objext
7936 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7937 lt_compiler_flag="-fno-rtti -fno-exceptions"
7938 # Insert the option either (1) after the last *FLAGS variable, or
7939 # (2) before a word containing "conftest.", or (3) at the end.
7940 # Note that $ac_compile itself does not contain backslashes and begins
7941 # with a dollar sign (not a hyphen), so the echo should work correctly.
7942 # The option is referenced via a variable to avoid confusing sed.
7943 lt_compile=`echo "$ac_compile" | $SED \
7944 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7945 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7946 -e 's:$: $lt_compiler_flag:'`
7947 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7948 (eval "$lt_compile" 2>conftest.err)
7949 ac_status=$?
7950 cat conftest.err >&5
7951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7952 if (exit $ac_status) && test -s "$ac_outfile"; then
7953 # The compiler can only warn and ignore the option if not recognized
7954 # So say no if there are warnings other than the usual output.
7955 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7956 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7957 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7958 lt_cv_prog_compiler_rtti_exceptions=yes
7959 fi
7960 fi
7961 $RM conftest*
7962
7963 fi
7964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7965 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7966
7967 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7968 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7969 else
7970 :
7971 fi
7972
7973 fi
7974
7975
7976
7977
7978
7979
7980 lt_prog_compiler_wl=
7981 lt_prog_compiler_pic=
7982 lt_prog_compiler_static=
7983
7984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7985 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7986
7987 if test "$GCC" = yes; then
7988 lt_prog_compiler_wl='-Wl,'
7989 lt_prog_compiler_static='-static'
7990
7991 case $host_os in
7992 aix*)
7993 # All AIX code is PIC.
7994 if test "$host_cpu" = ia64; then
7995 # AIX 5 now supports IA64 processor
7996 lt_prog_compiler_static='-Bstatic'
7997 fi
7998 lt_prog_compiler_pic='-fPIC'
7999 ;;
8000
8001 amigaos*)
8002 case $host_cpu in
8003 powerpc)
8004 # see comment about AmigaOS4 .so support
8005 lt_prog_compiler_pic='-fPIC'
8006 ;;
8007 m68k)
8008 # FIXME: we need at least 68020 code to build shared libraries, but
8009 # adding the `-m68020' flag to GCC prevents building anything better,
8010 # like `-m68040'.
8011 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8012 ;;
8013 esac
8014 ;;
8015
8016 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8017 # PIC is the default for these OSes.
8018 ;;
8019
8020 mingw* | cygwin* | pw32* | os2* | cegcc*)
8021 # This hack is so that the source file can tell whether it is being
8022 # built for inclusion in a dll (and should export symbols for example).
8023 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8024 # (--disable-auto-import) libraries
8025 lt_prog_compiler_pic='-DDLL_EXPORT'
8026 ;;
8027
8028 darwin* | rhapsody*)
8029 # PIC is the default on this platform
8030 # Common symbols not allowed in MH_DYLIB files
8031 lt_prog_compiler_pic='-fno-common'
8032 ;;
8033
8034 haiku*)
8035 # PIC is the default for Haiku.
8036 # The "-static" flag exists, but is broken.
8037 lt_prog_compiler_static=
8038 ;;
8039
8040 hpux*)
8041 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8042 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8043 # sets the default TLS model and affects inlining.
8044 case $host_cpu in
8045 hppa*64*)
8046 # +Z the default
8047 ;;
8048 *)
8049 lt_prog_compiler_pic='-fPIC'
8050 ;;
8051 esac
8052 ;;
8053
8054 interix[3-9]*)
8055 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8056 # Instead, we relocate shared libraries at runtime.
8057 ;;
8058
8059 msdosdjgpp*)
8060 # Just because we use GCC doesn't mean we suddenly get shared libraries
8061 # on systems that don't support them.
8062 lt_prog_compiler_can_build_shared=no
8063 enable_shared=no
8064 ;;
8065
8066 *nto* | *qnx*)
8067 # QNX uses GNU C++, but need to define -shared option too, otherwise
8068 # it will coredump.
8069 lt_prog_compiler_pic='-fPIC -shared'
8070 ;;
8071
8072 sysv4*MP*)
8073 if test -d /usr/nec; then
8074 lt_prog_compiler_pic=-Kconform_pic
8075 fi
8076 ;;
8077
8078 *)
8079 lt_prog_compiler_pic='-fPIC'
8080 ;;
8081 esac
8082
8083 case $cc_basename in
8084 nvcc*) # Cuda Compiler Driver 2.2
8085 lt_prog_compiler_wl='-Xlinker '
8086 lt_prog_compiler_pic='-Xcompiler -fPIC'
8087 ;;
8088 esac
8089 else
8090 # PORTME Check for flag to pass linker flags through the system compiler.
8091 case $host_os in
8092 aix*)
8093 lt_prog_compiler_wl='-Wl,'
8094 if test "$host_cpu" = ia64; then
8095 # AIX 5 now supports IA64 processor
8096 lt_prog_compiler_static='-Bstatic'
8097 else
8098 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8099 fi
8100 ;;
8101
8102 mingw* | cygwin* | pw32* | os2* | cegcc*)
8103 # This hack is so that the source file can tell whether it is being
8104 # built for inclusion in a dll (and should export symbols for example).
8105 lt_prog_compiler_pic='-DDLL_EXPORT'
8106 ;;
8107
8108 hpux9* | hpux10* | hpux11*)
8109 lt_prog_compiler_wl='-Wl,'
8110 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8111 # not for PA HP-UX.
8112 case $host_cpu in
8113 hppa*64*|ia64*)
8114 # +Z the default
8115 ;;
8116 *)
8117 lt_prog_compiler_pic='+Z'
8118 ;;
8119 esac
8120 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8121 lt_prog_compiler_static='${wl}-a ${wl}archive'
8122 ;;
8123
8124 irix5* | irix6* | nonstopux*)
8125 lt_prog_compiler_wl='-Wl,'
8126 # PIC (with -KPIC) is the default.
8127 lt_prog_compiler_static='-non_shared'
8128 ;;
8129
8130 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8131 case $cc_basename in
8132 # old Intel for x86_64 which still supported -KPIC.
8133 ecc*)
8134 lt_prog_compiler_wl='-Wl,'
8135 lt_prog_compiler_pic='-KPIC'
8136 lt_prog_compiler_static='-static'
8137 ;;
8138 # icc used to be incompatible with GCC.
8139 # ICC 10 doesn't accept -KPIC any more.
8140 icc* | ifort*)
8141 lt_prog_compiler_wl='-Wl,'
8142 lt_prog_compiler_pic='-fPIC'
8143 lt_prog_compiler_static='-static'
8144 ;;
8145 # Lahey Fortran 8.1.
8146 lf95*)
8147 lt_prog_compiler_wl='-Wl,'
8148 lt_prog_compiler_pic='--shared'
8149 lt_prog_compiler_static='--static'
8150 ;;
8151 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8152 # Portland Group compilers (*not* the Pentium gcc compiler,
8153 # which looks to be a dead project)
8154 lt_prog_compiler_wl='-Wl,'
8155 lt_prog_compiler_pic='-fpic'
8156 lt_prog_compiler_static='-Bstatic'
8157 ;;
8158 ccc*)
8159 lt_prog_compiler_wl='-Wl,'
8160 # All Alpha code is PIC.
8161 lt_prog_compiler_static='-non_shared'
8162 ;;
8163 xl* | bgxl* | bgf* | mpixl*)
8164 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8165 lt_prog_compiler_wl='-Wl,'
8166 lt_prog_compiler_pic='-qpic'
8167 lt_prog_compiler_static='-qstaticlink'
8168 ;;
8169 *)
8170 case `$CC -V 2>&1 | sed 5q` in
8171 *Sun\ F* | *Sun*Fortran*)
8172 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8173 lt_prog_compiler_pic='-KPIC'
8174 lt_prog_compiler_static='-Bstatic'
8175 lt_prog_compiler_wl=''
8176 ;;
8177 *Sun\ C*)
8178 # Sun C 5.9
8179 lt_prog_compiler_pic='-KPIC'
8180 lt_prog_compiler_static='-Bstatic'
8181 lt_prog_compiler_wl='-Wl,'
8182 ;;
8183 esac
8184 ;;
8185 esac
8186 ;;
8187
8188 newsos6)
8189 lt_prog_compiler_pic='-KPIC'
8190 lt_prog_compiler_static='-Bstatic'
8191 ;;
8192
8193 *nto* | *qnx*)
8194 # QNX uses GNU C++, but need to define -shared option too, otherwise
8195 # it will coredump.
8196 lt_prog_compiler_pic='-fPIC -shared'
8197 ;;
8198
8199 osf3* | osf4* | osf5*)
8200 lt_prog_compiler_wl='-Wl,'
8201 # All OSF/1 code is PIC.
8202 lt_prog_compiler_static='-non_shared'
8203 ;;
8204
8205 rdos*)
8206 lt_prog_compiler_static='-non_shared'
8207 ;;
8208
8209 solaris*)
8210 lt_prog_compiler_pic='-KPIC'
8211 lt_prog_compiler_static='-Bstatic'
8212 case $cc_basename in
8213 f77* | f90* | f95*)
8214 lt_prog_compiler_wl='-Qoption ld ';;
8215 *)
8216 lt_prog_compiler_wl='-Wl,';;
8217 esac
8218 ;;
8219
8220 sunos4*)
8221 lt_prog_compiler_wl='-Qoption ld '
8222 lt_prog_compiler_pic='-PIC'
8223 lt_prog_compiler_static='-Bstatic'
8224 ;;
8225
8226 sysv4 | sysv4.2uw2* | sysv4.3*)
8227 lt_prog_compiler_wl='-Wl,'
8228 lt_prog_compiler_pic='-KPIC'
8229 lt_prog_compiler_static='-Bstatic'
8230 ;;
8231
8232 sysv4*MP*)
8233 if test -d /usr/nec ;then
8234 lt_prog_compiler_pic='-Kconform_pic'
8235 lt_prog_compiler_static='-Bstatic'
8236 fi
8237 ;;
8238
8239 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8240 lt_prog_compiler_wl='-Wl,'
8241 lt_prog_compiler_pic='-KPIC'
8242 lt_prog_compiler_static='-Bstatic'
8243 ;;
8244
8245 unicos*)
8246 lt_prog_compiler_wl='-Wl,'
8247 lt_prog_compiler_can_build_shared=no
8248 ;;
8249
8250 uts4*)
8251 lt_prog_compiler_pic='-pic'
8252 lt_prog_compiler_static='-Bstatic'
8253 ;;
8254
8255 *)
8256 lt_prog_compiler_can_build_shared=no
8257 ;;
8258 esac
8259 fi
8260
8261 case $host_os in
8262 # For platforms which do not support PIC, -DPIC is meaningless:
8263 *djgpp*)
8264 lt_prog_compiler_pic=
8265 ;;
8266 *)
8267 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8268 ;;
8269 esac
8270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8271 $as_echo "$lt_prog_compiler_pic" >&6; }
8272
8273
8274
8275
8276
8277
8278 #
8279 # Check to make sure the PIC flag actually works.
8280 #
8281 if test -n "$lt_prog_compiler_pic"; then
8282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8283 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8284 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8285 $as_echo_n "(cached) " >&6
8286 else
8287 lt_cv_prog_compiler_pic_works=no
8288 ac_outfile=conftest.$ac_objext
8289 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8290 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8291 # Insert the option either (1) after the last *FLAGS variable, or
8292 # (2) before a word containing "conftest.", or (3) at the end.
8293 # Note that $ac_compile itself does not contain backslashes and begins
8294 # with a dollar sign (not a hyphen), so the echo should work correctly.
8295 # The option is referenced via a variable to avoid confusing sed.
8296 lt_compile=`echo "$ac_compile" | $SED \
8297 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8298 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8299 -e 's:$: $lt_compiler_flag:'`
8300 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8301 (eval "$lt_compile" 2>conftest.err)
8302 ac_status=$?
8303 cat conftest.err >&5
8304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8305 if (exit $ac_status) && test -s "$ac_outfile"; then
8306 # The compiler can only warn and ignore the option if not recognized
8307 # So say no if there are warnings other than the usual output.
8308 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8309 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8310 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8311 lt_cv_prog_compiler_pic_works=yes
8312 fi
8313 fi
8314 $RM conftest*
8315
8316 fi
8317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8318 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8319
8320 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8321 case $lt_prog_compiler_pic in
8322 "" | " "*) ;;
8323 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8324 esac
8325 else
8326 lt_prog_compiler_pic=
8327 lt_prog_compiler_can_build_shared=no
8328 fi
8329
8330 fi
8331
8332
8333
8334
8335
8336
8337 #
8338 # Check to make sure the static flag actually works.
8339 #
8340 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8342 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8343 if ${lt_cv_prog_compiler_static_works+:} false; then :
8344 $as_echo_n "(cached) " >&6
8345 else
8346 lt_cv_prog_compiler_static_works=no
8347 save_LDFLAGS="$LDFLAGS"
8348 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8349 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8350 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8351 # The linker can only warn and ignore the option if not recognized
8352 # So say no if there are warnings
8353 if test -s conftest.err; then
8354 # Append any errors to the config.log.
8355 cat conftest.err 1>&5
8356 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8357 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8358 if diff conftest.exp conftest.er2 >/dev/null; then
8359 lt_cv_prog_compiler_static_works=yes
8360 fi
8361 else
8362 lt_cv_prog_compiler_static_works=yes
8363 fi
8364 fi
8365 $RM -r conftest*
8366 LDFLAGS="$save_LDFLAGS"
8367
8368 fi
8369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8370 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8371
8372 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8373 :
8374 else
8375 lt_prog_compiler_static=
8376 fi
8377
8378
8379
8380
8381
8382
8383
8384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8385 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8386 if ${lt_cv_prog_compiler_c_o+:} false; then :
8387 $as_echo_n "(cached) " >&6
8388 else
8389 lt_cv_prog_compiler_c_o=no
8390 $RM -r conftest 2>/dev/null
8391 mkdir conftest
8392 cd conftest
8393 mkdir out
8394 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8395
8396 lt_compiler_flag="-o out/conftest2.$ac_objext"
8397 # Insert the option either (1) after the last *FLAGS variable, or
8398 # (2) before a word containing "conftest.", or (3) at the end.
8399 # Note that $ac_compile itself does not contain backslashes and begins
8400 # with a dollar sign (not a hyphen), so the echo should work correctly.
8401 lt_compile=`echo "$ac_compile" | $SED \
8402 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8403 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8404 -e 's:$: $lt_compiler_flag:'`
8405 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8406 (eval "$lt_compile" 2>out/conftest.err)
8407 ac_status=$?
8408 cat out/conftest.err >&5
8409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8410 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8411 then
8412 # The compiler can only warn and ignore the option if not recognized
8413 # So say no if there are warnings
8414 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8415 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8416 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8417 lt_cv_prog_compiler_c_o=yes
8418 fi
8419 fi
8420 chmod u+w . 2>&5
8421 $RM conftest*
8422 # SGI C++ compiler will create directory out/ii_files/ for
8423 # template instantiation
8424 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8425 $RM out/* && rmdir out
8426 cd ..
8427 $RM -r conftest
8428 $RM conftest*
8429
8430 fi
8431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8432 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8433
8434
8435
8436
8437
8438
8439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8440 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8441 if ${lt_cv_prog_compiler_c_o+:} false; then :
8442 $as_echo_n "(cached) " >&6
8443 else
8444 lt_cv_prog_compiler_c_o=no
8445 $RM -r conftest 2>/dev/null
8446 mkdir conftest
8447 cd conftest
8448 mkdir out
8449 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8450
8451 lt_compiler_flag="-o out/conftest2.$ac_objext"
8452 # Insert the option either (1) after the last *FLAGS variable, or
8453 # (2) before a word containing "conftest.", or (3) at the end.
8454 # Note that $ac_compile itself does not contain backslashes and begins
8455 # with a dollar sign (not a hyphen), so the echo should work correctly.
8456 lt_compile=`echo "$ac_compile" | $SED \
8457 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8458 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8459 -e 's:$: $lt_compiler_flag:'`
8460 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8461 (eval "$lt_compile" 2>out/conftest.err)
8462 ac_status=$?
8463 cat out/conftest.err >&5
8464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8465 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8466 then
8467 # The compiler can only warn and ignore the option if not recognized
8468 # So say no if there are warnings
8469 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8470 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8471 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8472 lt_cv_prog_compiler_c_o=yes
8473 fi
8474 fi
8475 chmod u+w . 2>&5
8476 $RM conftest*
8477 # SGI C++ compiler will create directory out/ii_files/ for
8478 # template instantiation
8479 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8480 $RM out/* && rmdir out
8481 cd ..
8482 $RM -r conftest
8483 $RM conftest*
8484
8485 fi
8486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8487 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8488
8489
8490
8491
8492 hard_links="nottested"
8493 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8494 # do not overwrite the value of need_locks provided by the user
8495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8496 $as_echo_n "checking if we can lock with hard links... " >&6; }
8497 hard_links=yes
8498 $RM conftest*
8499 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8500 touch conftest.a
8501 ln conftest.a conftest.b 2>&5 || hard_links=no
8502 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8504 $as_echo "$hard_links" >&6; }
8505 if test "$hard_links" = no; then
8506 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8507 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8508 need_locks=warn
8509 fi
8510 else
8511 need_locks=no
8512 fi
8513
8514
8515
8516
8517
8518
8519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8520 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8521
8522 runpath_var=
8523 allow_undefined_flag=
8524 always_export_symbols=no
8525 archive_cmds=
8526 archive_expsym_cmds=
8527 compiler_needs_object=no
8528 enable_shared_with_static_runtimes=no
8529 export_dynamic_flag_spec=
8530 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8531 hardcode_automatic=no
8532 hardcode_direct=no
8533 hardcode_direct_absolute=no
8534 hardcode_libdir_flag_spec=
8535 hardcode_libdir_flag_spec_ld=
8536 hardcode_libdir_separator=
8537 hardcode_minus_L=no
8538 hardcode_shlibpath_var=unsupported
8539 inherit_rpath=no
8540 link_all_deplibs=unknown
8541 module_cmds=
8542 module_expsym_cmds=
8543 old_archive_from_new_cmds=
8544 old_archive_from_expsyms_cmds=
8545 thread_safe_flag_spec=
8546 whole_archive_flag_spec=
8547 # include_expsyms should be a list of space-separated symbols to be *always*
8548 # included in the symbol list
8549 include_expsyms=
8550 # exclude_expsyms can be an extended regexp of symbols to exclude
8551 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8552 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8553 # as well as any symbol that contains `d'.
8554 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8555 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8556 # platforms (ab)use it in PIC code, but their linkers get confused if
8557 # the symbol is explicitly referenced. Since portable code cannot
8558 # rely on this symbol name, it's probably fine to never include it in
8559 # preloaded symbol tables.
8560 # Exclude shared library initialization/finalization symbols.
8561 extract_expsyms_cmds=
8562
8563 case $host_os in
8564 cygwin* | mingw* | pw32* | cegcc*)
8565 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8566 # When not using gcc, we currently assume that we are using
8567 # Microsoft Visual C++.
8568 if test "$GCC" != yes; then
8569 with_gnu_ld=no
8570 fi
8571 ;;
8572 interix*)
8573 # we just hope/assume this is gcc and not c89 (= MSVC++)
8574 with_gnu_ld=yes
8575 ;;
8576 openbsd*)
8577 with_gnu_ld=no
8578 ;;
8579 esac
8580
8581 ld_shlibs=yes
8582
8583 # On some targets, GNU ld is compatible enough with the native linker
8584 # that we're better off using the native interface for both.
8585 lt_use_gnu_ld_interface=no
8586 if test "$with_gnu_ld" = yes; then
8587 case $host_os in
8588 aix*)
8589 # The AIX port of GNU ld has always aspired to compatibility
8590 # with the native linker. However, as the warning in the GNU ld
8591 # block says, versions before 2.19.5* couldn't really create working
8592 # shared libraries, regardless of the interface used.
8593 case `$LD -v 2>&1` in
8594 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8595 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8596 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8597 *)
8598 lt_use_gnu_ld_interface=yes
8599 ;;
8600 esac
8601 ;;
8602 *)
8603 lt_use_gnu_ld_interface=yes
8604 ;;
8605 esac
8606 fi
8607
8608 if test "$lt_use_gnu_ld_interface" = yes; then
8609 # If archive_cmds runs LD, not CC, wlarc should be empty
8610 wlarc='${wl}'
8611
8612 # Set some defaults for GNU ld with shared library support. These
8613 # are reset later if shared libraries are not supported. Putting them
8614 # here allows them to be overridden if necessary.
8615 runpath_var=LD_RUN_PATH
8616 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8617 export_dynamic_flag_spec='${wl}--export-dynamic'
8618 # ancient GNU ld didn't support --whole-archive et. al.
8619 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8620 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8621 else
8622 whole_archive_flag_spec=
8623 fi
8624 supports_anon_versioning=no
8625 case `$LD -v 2>&1` in
8626 *GNU\ gold*) supports_anon_versioning=yes ;;
8627 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8628 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8629 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8630 *\ 2.11.*) ;; # other 2.11 versions
8631 *) supports_anon_versioning=yes ;;
8632 esac
8633
8634 # See if GNU ld supports shared libraries.
8635 case $host_os in
8636 aix[3-9]*)
8637 # On AIX/PPC, the GNU linker is very broken
8638 if test "$host_cpu" != ia64; then
8639 ld_shlibs=no
8640 cat <<_LT_EOF 1>&2
8641
8642 *** Warning: the GNU linker, at least up to release 2.19, is reported
8643 *** to be unable to reliably create shared libraries on AIX.
8644 *** Therefore, libtool is disabling shared libraries support. If you
8645 *** really care for shared libraries, you may want to install binutils
8646 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8647 *** You will then need to restart the configuration process.
8648
8649 _LT_EOF
8650 fi
8651 ;;
8652
8653 amigaos*)
8654 case $host_cpu in
8655 powerpc)
8656 # see comment about AmigaOS4 .so support
8657 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8658 archive_expsym_cmds=''
8659 ;;
8660 m68k)
8661 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)'
8662 hardcode_libdir_flag_spec='-L$libdir'
8663 hardcode_minus_L=yes
8664 ;;
8665 esac
8666 ;;
8667
8668 beos*)
8669 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8670 allow_undefined_flag=unsupported
8671 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8672 # support --undefined. This deserves some investigation. FIXME
8673 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8674 else
8675 ld_shlibs=no
8676 fi
8677 ;;
8678
8679 cygwin* | mingw* | pw32* | cegcc*)
8680 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8681 # as there is no search path for DLLs.
8682 hardcode_libdir_flag_spec='-L$libdir'
8683 export_dynamic_flag_spec='${wl}--export-all-symbols'
8684 allow_undefined_flag=unsupported
8685 always_export_symbols=no
8686 enable_shared_with_static_runtimes=yes
8687 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8688
8689 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8690 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8691 # If the export-symbols file already is a .def file (1st line
8692 # is EXPORTS), use it as is; otherwise, prepend...
8693 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8694 cp $export_symbols $output_objdir/$soname.def;
8695 else
8696 echo EXPORTS > $output_objdir/$soname.def;
8697 cat $export_symbols >> $output_objdir/$soname.def;
8698 fi~
8699 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8700 else
8701 ld_shlibs=no
8702 fi
8703 ;;
8704
8705 haiku*)
8706 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8707 link_all_deplibs=yes
8708 ;;
8709
8710 interix[3-9]*)
8711 hardcode_direct=no
8712 hardcode_shlibpath_var=no
8713 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8714 export_dynamic_flag_spec='${wl}-E'
8715 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8716 # Instead, shared libraries are loaded at an image base (0x10000000 by
8717 # default) and relocated if they conflict, which is a slow very memory
8718 # consuming and fragmenting process. To avoid this, we pick a random,
8719 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8720 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8721 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8722 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'
8723 ;;
8724
8725 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8726 tmp_diet=no
8727 if test "$host_os" = linux-dietlibc; then
8728 case $cc_basename in
8729 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8730 esac
8731 fi
8732 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8733 && test "$tmp_diet" = no
8734 then
8735 tmp_addflag=' $pic_flag'
8736 tmp_sharedflag='-shared'
8737 case $cc_basename,$host_cpu in
8738 pgcc*) # Portland Group C compiler
8739 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'
8740 tmp_addflag=' $pic_flag'
8741 ;;
8742 pgf77* | pgf90* | pgf95* | pgfortran*)
8743 # Portland Group f77 and f90 compilers
8744 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'
8745 tmp_addflag=' $pic_flag -Mnomain' ;;
8746 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8747 tmp_addflag=' -i_dynamic' ;;
8748 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8749 tmp_addflag=' -i_dynamic -nofor_main' ;;
8750 ifc* | ifort*) # Intel Fortran compiler
8751 tmp_addflag=' -nofor_main' ;;
8752 lf95*) # Lahey Fortran 8.1
8753 whole_archive_flag_spec=
8754 tmp_sharedflag='--shared' ;;
8755 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8756 tmp_sharedflag='-qmkshrobj'
8757 tmp_addflag= ;;
8758 nvcc*) # Cuda Compiler Driver 2.2
8759 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'
8760 compiler_needs_object=yes
8761 ;;
8762 esac
8763 case `$CC -V 2>&1 | sed 5q` in
8764 *Sun\ C*) # Sun C 5.9
8765 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'
8766 compiler_needs_object=yes
8767 tmp_sharedflag='-G' ;;
8768 *Sun\ F*) # Sun Fortran 8.3
8769 tmp_sharedflag='-G' ;;
8770 esac
8771 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8772
8773 if test "x$supports_anon_versioning" = xyes; then
8774 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8775 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8776 echo "local: *; };" >> $output_objdir/$libname.ver~
8777 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8778 fi
8779
8780 case $cc_basename in
8781 xlf* | bgf* | bgxlf* | mpixlf*)
8782 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8783 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8784 hardcode_libdir_flag_spec=
8785 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8786 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8787 if test "x$supports_anon_versioning" = xyes; then
8788 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8789 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8790 echo "local: *; };" >> $output_objdir/$libname.ver~
8791 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8792 fi
8793 ;;
8794 esac
8795 else
8796 ld_shlibs=no
8797 fi
8798 ;;
8799
8800 netbsd*)
8801 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8802 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8803 wlarc=
8804 else
8805 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8806 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8807 fi
8808 ;;
8809
8810 solaris*)
8811 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8812 ld_shlibs=no
8813 cat <<_LT_EOF 1>&2
8814
8815 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8816 *** create shared libraries on Solaris systems. Therefore, libtool
8817 *** is disabling shared libraries support. We urge you to upgrade GNU
8818 *** binutils to release 2.9.1 or newer. Another option is to modify
8819 *** your PATH or compiler configuration so that the native linker is
8820 *** used, and then restart.
8821
8822 _LT_EOF
8823 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8824 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8825 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8826 else
8827 ld_shlibs=no
8828 fi
8829 ;;
8830
8831 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8832 case `$LD -v 2>&1` in
8833 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8834 ld_shlibs=no
8835 cat <<_LT_EOF 1>&2
8836
8837 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8838 *** reliably create shared libraries on SCO systems. Therefore, libtool
8839 *** is disabling shared libraries support. We urge you to upgrade GNU
8840 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8841 *** your PATH or compiler configuration so that the native linker is
8842 *** used, and then restart.
8843
8844 _LT_EOF
8845 ;;
8846 *)
8847 # For security reasons, it is highly recommended that you always
8848 # use absolute paths for naming shared libraries, and exclude the
8849 # DT_RUNPATH tag from executables and libraries. But doing so
8850 # requires that you compile everything twice, which is a pain.
8851 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8852 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8853 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8854 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8855 else
8856 ld_shlibs=no
8857 fi
8858 ;;
8859 esac
8860 ;;
8861
8862 sunos4*)
8863 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8864 wlarc=
8865 hardcode_direct=yes
8866 hardcode_shlibpath_var=no
8867 ;;
8868
8869 *)
8870 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8871 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8872 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8873 else
8874 ld_shlibs=no
8875 fi
8876 ;;
8877 esac
8878
8879 if test "$ld_shlibs" = no; then
8880 runpath_var=
8881 hardcode_libdir_flag_spec=
8882 export_dynamic_flag_spec=
8883 whole_archive_flag_spec=
8884 fi
8885 else
8886 # PORTME fill in a description of your system's linker (not GNU ld)
8887 case $host_os in
8888 aix3*)
8889 allow_undefined_flag=unsupported
8890 always_export_symbols=yes
8891 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'
8892 # Note: this linker hardcodes the directories in LIBPATH if there
8893 # are no directories specified by -L.
8894 hardcode_minus_L=yes
8895 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8896 # Neither direct hardcoding nor static linking is supported with a
8897 # broken collect2.
8898 hardcode_direct=unsupported
8899 fi
8900 ;;
8901
8902 aix[4-9]*)
8903 if test "$host_cpu" = ia64; then
8904 # On IA64, the linker does run time linking by default, so we don't
8905 # have to do anything special.
8906 aix_use_runtimelinking=no
8907 exp_sym_flag='-Bexport'
8908 no_entry_flag=""
8909 else
8910 # If we're using GNU nm, then we don't want the "-C" option.
8911 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8912 # Also, AIX nm treats weak defined symbols like other global
8913 # defined symbols, whereas GNU nm marks them as "W".
8914 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8915 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'
8916 else
8917 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'
8918 fi
8919 aix_use_runtimelinking=no
8920
8921 # Test if we are trying to use run time linking or normal
8922 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8923 # need to do runtime linking.
8924 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8925 for ld_flag in $LDFLAGS; do
8926 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8927 aix_use_runtimelinking=yes
8928 break
8929 fi
8930 done
8931 ;;
8932 esac
8933
8934 exp_sym_flag='-bexport'
8935 no_entry_flag='-bnoentry'
8936 fi
8937
8938 # When large executables or shared objects are built, AIX ld can
8939 # have problems creating the table of contents. If linking a library
8940 # or program results in "error TOC overflow" add -mminimal-toc to
8941 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8942 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8943
8944 archive_cmds=''
8945 hardcode_direct=yes
8946 hardcode_direct_absolute=yes
8947 hardcode_libdir_separator=':'
8948 link_all_deplibs=yes
8949 file_list_spec='${wl}-f,'
8950
8951 if test "$GCC" = yes; then
8952 case $host_os in aix4.[012]|aix4.[012].*)
8953 # We only want to do this on AIX 4.2 and lower, the check
8954 # below for broken collect2 doesn't work under 4.3+
8955 collect2name=`${CC} -print-prog-name=collect2`
8956 if test -f "$collect2name" &&
8957 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8958 then
8959 # We have reworked collect2
8960 :
8961 else
8962 # We have old collect2
8963 hardcode_direct=unsupported
8964 # It fails to find uninstalled libraries when the uninstalled
8965 # path is not listed in the libpath. Setting hardcode_minus_L
8966 # to unsupported forces relinking
8967 hardcode_minus_L=yes
8968 hardcode_libdir_flag_spec='-L$libdir'
8969 hardcode_libdir_separator=
8970 fi
8971 ;;
8972 esac
8973 shared_flag='-shared'
8974 if test "$aix_use_runtimelinking" = yes; then
8975 shared_flag="$shared_flag "'${wl}-G'
8976 fi
8977 else
8978 # not using gcc
8979 if test "$host_cpu" = ia64; then
8980 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8981 # chokes on -Wl,-G. The following line is correct:
8982 shared_flag='-G'
8983 else
8984 if test "$aix_use_runtimelinking" = yes; then
8985 shared_flag='${wl}-G'
8986 else
8987 shared_flag='${wl}-bM:SRE'
8988 fi
8989 fi
8990 fi
8991
8992 export_dynamic_flag_spec='${wl}-bexpall'
8993 # It seems that -bexpall does not export symbols beginning with
8994 # underscore (_), so it is better to generate a list of symbols to export.
8995 always_export_symbols=yes
8996 if test "$aix_use_runtimelinking" = yes; then
8997 # Warning - without using the other runtime loading flags (-brtl),
8998 # -berok will link without error, but may produce a broken library.
8999 allow_undefined_flag='-berok'
9000 # Determine the default libpath from the value encoded in an
9001 # empty executable.
9002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9003 /* end confdefs.h. */
9004
9005 int
9006 main ()
9007 {
9008
9009 ;
9010 return 0;
9011 }
9012 _ACEOF
9013 if ac_fn_c_try_link "$LINENO"; then :
9014
9015 lt_aix_libpath_sed='
9016 /Import File Strings/,/^$/ {
9017 /^0/ {
9018 s/^0 *\(.*\)$/\1/
9019 p
9020 }
9021 }'
9022 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9023 # Check for a 64-bit object if we didn't find anything.
9024 if test -z "$aix_libpath"; then
9025 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9026 fi
9027 fi
9028 rm -f core conftest.err conftest.$ac_objext \
9029 conftest$ac_exeext conftest.$ac_ext
9030 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9031
9032 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9033 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"
9034 else
9035 if test "$host_cpu" = ia64; then
9036 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9037 allow_undefined_flag="-z nodefs"
9038 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"
9039 else
9040 # Determine the default libpath from the value encoded in an
9041 # empty executable.
9042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9043 /* end confdefs.h. */
9044
9045 int
9046 main ()
9047 {
9048
9049 ;
9050 return 0;
9051 }
9052 _ACEOF
9053 if ac_fn_c_try_link "$LINENO"; then :
9054
9055 lt_aix_libpath_sed='
9056 /Import File Strings/,/^$/ {
9057 /^0/ {
9058 s/^0 *\(.*\)$/\1/
9059 p
9060 }
9061 }'
9062 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9063 # Check for a 64-bit object if we didn't find anything.
9064 if test -z "$aix_libpath"; then
9065 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9066 fi
9067 fi
9068 rm -f core conftest.err conftest.$ac_objext \
9069 conftest$ac_exeext conftest.$ac_ext
9070 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9071
9072 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9073 # Warning - without using the other run time loading flags,
9074 # -berok will link without error, but may produce a broken library.
9075 no_undefined_flag=' ${wl}-bernotok'
9076 allow_undefined_flag=' ${wl}-berok'
9077 if test "$with_gnu_ld" = yes; then
9078 # We only use this code for GNU lds that support --whole-archive.
9079 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9080 else
9081 # Exported symbols can be pulled into shared objects from archives
9082 whole_archive_flag_spec='$convenience'
9083 fi
9084 archive_cmds_need_lc=yes
9085 # This is similar to how AIX traditionally builds its shared libraries.
9086 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'
9087 fi
9088 fi
9089 ;;
9090
9091 amigaos*)
9092 case $host_cpu in
9093 powerpc)
9094 # see comment about AmigaOS4 .so support
9095 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9096 archive_expsym_cmds=''
9097 ;;
9098 m68k)
9099 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)'
9100 hardcode_libdir_flag_spec='-L$libdir'
9101 hardcode_minus_L=yes
9102 ;;
9103 esac
9104 ;;
9105
9106 bsdi[45]*)
9107 export_dynamic_flag_spec=-rdynamic
9108 ;;
9109
9110 cygwin* | mingw* | pw32* | cegcc*)
9111 # When not using gcc, we currently assume that we are using
9112 # Microsoft Visual C++.
9113 # hardcode_libdir_flag_spec is actually meaningless, as there is
9114 # no search path for DLLs.
9115 hardcode_libdir_flag_spec=' '
9116 allow_undefined_flag=unsupported
9117 # Tell ltmain to make .lib files, not .a files.
9118 libext=lib
9119 # Tell ltmain to make .dll files, not .so files.
9120 shrext_cmds=".dll"
9121 # FIXME: Setting linknames here is a bad hack.
9122 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9123 # The linker will automatically build a .lib file if we build a DLL.
9124 old_archive_from_new_cmds='true'
9125 # FIXME: Should let the user specify the lib program.
9126 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9127 fix_srcfile_path='`cygpath -w "$srcfile"`'
9128 enable_shared_with_static_runtimes=yes
9129 ;;
9130
9131 darwin* | rhapsody*)
9132
9133
9134 archive_cmds_need_lc=no
9135 hardcode_direct=no
9136 hardcode_automatic=yes
9137 hardcode_shlibpath_var=unsupported
9138 if test "$lt_cv_ld_force_load" = "yes"; then
9139 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\"`'
9140 else
9141 whole_archive_flag_spec=''
9142 fi
9143 link_all_deplibs=yes
9144 allow_undefined_flag="$_lt_dar_allow_undefined"
9145 case $cc_basename in
9146 ifort*) _lt_dar_can_shared=yes ;;
9147 *) _lt_dar_can_shared=$GCC ;;
9148 esac
9149 if test "$_lt_dar_can_shared" = "yes"; then
9150 output_verbose_link_cmd=func_echo_all
9151 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9152 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9153 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}"
9154 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}"
9155
9156 else
9157 ld_shlibs=no
9158 fi
9159
9160 ;;
9161
9162 dgux*)
9163 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9164 hardcode_libdir_flag_spec='-L$libdir'
9165 hardcode_shlibpath_var=no
9166 ;;
9167
9168 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9169 # support. Future versions do this automatically, but an explicit c++rt0.o
9170 # does not break anything, and helps significantly (at the cost of a little
9171 # extra space).
9172 freebsd2.2*)
9173 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9174 hardcode_libdir_flag_spec='-R$libdir'
9175 hardcode_direct=yes
9176 hardcode_shlibpath_var=no
9177 ;;
9178
9179 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9180 freebsd2.*)
9181 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9182 hardcode_direct=yes
9183 hardcode_minus_L=yes
9184 hardcode_shlibpath_var=no
9185 ;;
9186
9187 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9188 freebsd* | dragonfly*)
9189 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9190 hardcode_libdir_flag_spec='-R$libdir'
9191 hardcode_direct=yes
9192 hardcode_shlibpath_var=no
9193 ;;
9194
9195 hpux9*)
9196 if test "$GCC" = yes; then
9197 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'
9198 else
9199 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'
9200 fi
9201 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9202 hardcode_libdir_separator=:
9203 hardcode_direct=yes
9204
9205 # hardcode_minus_L: Not really in the search PATH,
9206 # but as the default location of the library.
9207 hardcode_minus_L=yes
9208 export_dynamic_flag_spec='${wl}-E'
9209 ;;
9210
9211 hpux10*)
9212 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9213 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9214 else
9215 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9216 fi
9217 if test "$with_gnu_ld" = no; then
9218 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9219 hardcode_libdir_flag_spec_ld='+b $libdir'
9220 hardcode_libdir_separator=:
9221 hardcode_direct=yes
9222 hardcode_direct_absolute=yes
9223 export_dynamic_flag_spec='${wl}-E'
9224 # hardcode_minus_L: Not really in the search PATH,
9225 # but as the default location of the library.
9226 hardcode_minus_L=yes
9227 fi
9228 ;;
9229
9230 hpux11*)
9231 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9232 case $host_cpu in
9233 hppa*64*)
9234 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9235 ;;
9236 ia64*)
9237 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9238 ;;
9239 *)
9240 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9241 ;;
9242 esac
9243 else
9244 case $host_cpu in
9245 hppa*64*)
9246 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9247 ;;
9248 ia64*)
9249 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9250 ;;
9251 *)
9252
9253 # Older versions of the 11.00 compiler do not understand -b yet
9254 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9256 $as_echo_n "checking if $CC understands -b... " >&6; }
9257 if ${lt_cv_prog_compiler__b+:} false; then :
9258 $as_echo_n "(cached) " >&6
9259 else
9260 lt_cv_prog_compiler__b=no
9261 save_LDFLAGS="$LDFLAGS"
9262 LDFLAGS="$LDFLAGS -b"
9263 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9264 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9265 # The linker can only warn and ignore the option if not recognized
9266 # So say no if there are warnings
9267 if test -s conftest.err; then
9268 # Append any errors to the config.log.
9269 cat conftest.err 1>&5
9270 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9271 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9272 if diff conftest.exp conftest.er2 >/dev/null; then
9273 lt_cv_prog_compiler__b=yes
9274 fi
9275 else
9276 lt_cv_prog_compiler__b=yes
9277 fi
9278 fi
9279 $RM -r conftest*
9280 LDFLAGS="$save_LDFLAGS"
9281
9282 fi
9283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9284 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9285
9286 if test x"$lt_cv_prog_compiler__b" = xyes; then
9287 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9288 else
9289 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9290 fi
9291
9292 ;;
9293 esac
9294 fi
9295 if test "$with_gnu_ld" = no; then
9296 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9297 hardcode_libdir_separator=:
9298
9299 case $host_cpu in
9300 hppa*64*|ia64*)
9301 hardcode_direct=no
9302 hardcode_shlibpath_var=no
9303 ;;
9304 *)
9305 hardcode_direct=yes
9306 hardcode_direct_absolute=yes
9307 export_dynamic_flag_spec='${wl}-E'
9308
9309 # hardcode_minus_L: Not really in the search PATH,
9310 # but as the default location of the library.
9311 hardcode_minus_L=yes
9312 ;;
9313 esac
9314 fi
9315 ;;
9316
9317 irix5* | irix6* | nonstopux*)
9318 if test "$GCC" = yes; then
9319 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'
9320 # Try to use the -exported_symbol ld option, if it does not
9321 # work, assume that -exports_file does not work either and
9322 # implicitly export all symbols.
9323 save_LDFLAGS="$LDFLAGS"
9324 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9326 /* end confdefs.h. */
9327 int foo(void) {}
9328 _ACEOF
9329 if ac_fn_c_try_link "$LINENO"; then :
9330 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'
9331
9332 fi
9333 rm -f core conftest.err conftest.$ac_objext \
9334 conftest$ac_exeext conftest.$ac_ext
9335 LDFLAGS="$save_LDFLAGS"
9336 else
9337 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'
9338 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'
9339 fi
9340 archive_cmds_need_lc='no'
9341 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9342 hardcode_libdir_separator=:
9343 inherit_rpath=yes
9344 link_all_deplibs=yes
9345 ;;
9346
9347 netbsd*)
9348 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9349 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9350 else
9351 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9352 fi
9353 hardcode_libdir_flag_spec='-R$libdir'
9354 hardcode_direct=yes
9355 hardcode_shlibpath_var=no
9356 ;;
9357
9358 newsos6)
9359 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9360 hardcode_direct=yes
9361 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9362 hardcode_libdir_separator=:
9363 hardcode_shlibpath_var=no
9364 ;;
9365
9366 *nto* | *qnx*)
9367 ;;
9368
9369 openbsd*)
9370 if test -f /usr/libexec/ld.so; then
9371 hardcode_direct=yes
9372 hardcode_shlibpath_var=no
9373 hardcode_direct_absolute=yes
9374 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9375 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9376 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9377 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9378 export_dynamic_flag_spec='${wl}-E'
9379 else
9380 case $host_os in
9381 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9382 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9383 hardcode_libdir_flag_spec='-R$libdir'
9384 ;;
9385 *)
9386 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9387 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9388 ;;
9389 esac
9390 fi
9391 else
9392 ld_shlibs=no
9393 fi
9394 ;;
9395
9396 os2*)
9397 hardcode_libdir_flag_spec='-L$libdir'
9398 hardcode_minus_L=yes
9399 allow_undefined_flag=unsupported
9400 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'
9401 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9402 ;;
9403
9404 osf3*)
9405 if test "$GCC" = yes; then
9406 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9407 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'
9408 else
9409 allow_undefined_flag=' -expect_unresolved \*'
9410 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'
9411 fi
9412 archive_cmds_need_lc='no'
9413 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9414 hardcode_libdir_separator=:
9415 ;;
9416
9417 osf4* | osf5*) # as osf3* with the addition of -msym flag
9418 if test "$GCC" = yes; then
9419 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9420 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'
9421 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9422 else
9423 allow_undefined_flag=' -expect_unresolved \*'
9424 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'
9425 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~
9426 $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'
9427
9428 # Both c and cxx compiler support -rpath directly
9429 hardcode_libdir_flag_spec='-rpath $libdir'
9430 fi
9431 archive_cmds_need_lc='no'
9432 hardcode_libdir_separator=:
9433 ;;
9434
9435 solaris*)
9436 no_undefined_flag=' -z defs'
9437 if test "$GCC" = yes; then
9438 wlarc='${wl}'
9439 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9440 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9441 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9442 else
9443 case `$CC -V 2>&1` in
9444 *"Compilers 5.0"*)
9445 wlarc=''
9446 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9447 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9448 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9449 ;;
9450 *)
9451 wlarc='${wl}'
9452 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9453 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9454 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9455 ;;
9456 esac
9457 fi
9458 hardcode_libdir_flag_spec='-R$libdir'
9459 hardcode_shlibpath_var=no
9460 case $host_os in
9461 solaris2.[0-5] | solaris2.[0-5].*) ;;
9462 *)
9463 # The compiler driver will combine and reorder linker options,
9464 # but understands `-z linker_flag'. GCC discards it without `$wl',
9465 # but is careful enough not to reorder.
9466 # Supported since Solaris 2.6 (maybe 2.5.1?)
9467 if test "$GCC" = yes; then
9468 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9469 else
9470 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9471 fi
9472 ;;
9473 esac
9474 link_all_deplibs=yes
9475 ;;
9476
9477 sunos4*)
9478 if test "x$host_vendor" = xsequent; then
9479 # Use $CC to link under sequent, because it throws in some extra .o
9480 # files that make .init and .fini sections work.
9481 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9482 else
9483 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9484 fi
9485 hardcode_libdir_flag_spec='-L$libdir'
9486 hardcode_direct=yes
9487 hardcode_minus_L=yes
9488 hardcode_shlibpath_var=no
9489 ;;
9490
9491 sysv4)
9492 case $host_vendor in
9493 sni)
9494 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9495 hardcode_direct=yes # is this really true???
9496 ;;
9497 siemens)
9498 ## LD is ld it makes a PLAMLIB
9499 ## CC just makes a GrossModule.
9500 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9501 reload_cmds='$CC -r -o $output$reload_objs'
9502 hardcode_direct=no
9503 ;;
9504 motorola)
9505 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9506 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9507 ;;
9508 esac
9509 runpath_var='LD_RUN_PATH'
9510 hardcode_shlibpath_var=no
9511 ;;
9512
9513 sysv4.3*)
9514 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9515 hardcode_shlibpath_var=no
9516 export_dynamic_flag_spec='-Bexport'
9517 ;;
9518
9519 sysv4*MP*)
9520 if test -d /usr/nec; then
9521 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9522 hardcode_shlibpath_var=no
9523 runpath_var=LD_RUN_PATH
9524 hardcode_runpath_var=yes
9525 ld_shlibs=yes
9526 fi
9527 ;;
9528
9529 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9530 no_undefined_flag='${wl}-z,text'
9531 archive_cmds_need_lc=no
9532 hardcode_shlibpath_var=no
9533 runpath_var='LD_RUN_PATH'
9534
9535 if test "$GCC" = yes; then
9536 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9537 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9538 else
9539 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9540 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9541 fi
9542 ;;
9543
9544 sysv5* | sco3.2v5* | sco5v6*)
9545 # Note: We can NOT use -z defs as we might desire, because we do not
9546 # link with -lc, and that would cause any symbols used from libc to
9547 # always be unresolved, which means just about no library would
9548 # ever link correctly. If we're not using GNU ld we use -z text
9549 # though, which does catch some bad symbols but isn't as heavy-handed
9550 # as -z defs.
9551 no_undefined_flag='${wl}-z,text'
9552 allow_undefined_flag='${wl}-z,nodefs'
9553 archive_cmds_need_lc=no
9554 hardcode_shlibpath_var=no
9555 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9556 hardcode_libdir_separator=':'
9557 link_all_deplibs=yes
9558 export_dynamic_flag_spec='${wl}-Bexport'
9559 runpath_var='LD_RUN_PATH'
9560
9561 if test "$GCC" = yes; then
9562 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9563 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9564 else
9565 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9566 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9567 fi
9568 ;;
9569
9570 uts4*)
9571 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9572 hardcode_libdir_flag_spec='-L$libdir'
9573 hardcode_shlibpath_var=no
9574 ;;
9575
9576 *)
9577 ld_shlibs=no
9578 ;;
9579 esac
9580
9581 if test x$host_vendor = xsni; then
9582 case $host in
9583 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9584 export_dynamic_flag_spec='${wl}-Blargedynsym'
9585 ;;
9586 esac
9587 fi
9588 fi
9589
9590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9591 $as_echo "$ld_shlibs" >&6; }
9592 test "$ld_shlibs" = no && can_build_shared=no
9593
9594 with_gnu_ld=$with_gnu_ld
9595
9596
9597
9598
9599
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610 #
9611 # Do we need to explicitly link libc?
9612 #
9613 case "x$archive_cmds_need_lc" in
9614 x|xyes)
9615 # Assume -lc should be added
9616 archive_cmds_need_lc=yes
9617
9618 if test "$enable_shared" = yes && test "$GCC" = yes; then
9619 case $archive_cmds in
9620 *'~'*)
9621 # FIXME: we may have to deal with multi-command sequences.
9622 ;;
9623 '$CC '*)
9624 # Test whether the compiler implicitly links with -lc since on some
9625 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9626 # to ld, don't add -lc before -lgcc.
9627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9628 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9629 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9630 $as_echo_n "(cached) " >&6
9631 else
9632 $RM conftest*
9633 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9634
9635 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9636 (eval $ac_compile) 2>&5
9637 ac_status=$?
9638 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9639 test $ac_status = 0; } 2>conftest.err; then
9640 soname=conftest
9641 lib=conftest
9642 libobjs=conftest.$ac_objext
9643 deplibs=
9644 wl=$lt_prog_compiler_wl
9645 pic_flag=$lt_prog_compiler_pic
9646 compiler_flags=-v
9647 linker_flags=-v
9648 verstring=
9649 output_objdir=.
9650 libname=conftest
9651 lt_save_allow_undefined_flag=$allow_undefined_flag
9652 allow_undefined_flag=
9653 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9654 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9655 ac_status=$?
9656 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9657 test $ac_status = 0; }
9658 then
9659 lt_cv_archive_cmds_need_lc=no
9660 else
9661 lt_cv_archive_cmds_need_lc=yes
9662 fi
9663 allow_undefined_flag=$lt_save_allow_undefined_flag
9664 else
9665 cat conftest.err 1>&5
9666 fi
9667 $RM conftest*
9668
9669 fi
9670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9671 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9672 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9673 ;;
9674 esac
9675 fi
9676 ;;
9677 esac
9678
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785
9786
9787
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9836 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9837
9838 if test "$GCC" = yes; then
9839 case $host_os in
9840 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9841 *) lt_awk_arg="/^libraries:/" ;;
9842 esac
9843 case $host_os in
9844 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9845 *) lt_sed_strip_eq="s,=/,/,g" ;;
9846 esac
9847 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9848 case $lt_search_path_spec in
9849 *\;*)
9850 # if the path contains ";" then we assume it to be the separator
9851 # otherwise default to the standard path separator (i.e. ":") - it is
9852 # assumed that no part of a normal pathname contains ";" but that should
9853 # okay in the real world where ";" in dirpaths is itself problematic.
9854 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9855 ;;
9856 *)
9857 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9858 ;;
9859 esac
9860 # Ok, now we have the path, separated by spaces, we can step through it
9861 # and add multilib dir if necessary.
9862 lt_tmp_lt_search_path_spec=
9863 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9864 for lt_sys_path in $lt_search_path_spec; do
9865 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9866 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9867 else
9868 test -d "$lt_sys_path" && \
9869 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9870 fi
9871 done
9872 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9873 BEGIN {RS=" "; FS="/|\n";} {
9874 lt_foo="";
9875 lt_count=0;
9876 for (lt_i = NF; lt_i > 0; lt_i--) {
9877 if ($lt_i != "" && $lt_i != ".") {
9878 if ($lt_i == "..") {
9879 lt_count++;
9880 } else {
9881 if (lt_count == 0) {
9882 lt_foo="/" $lt_i lt_foo;
9883 } else {
9884 lt_count--;
9885 }
9886 }
9887 }
9888 }
9889 if (lt_foo != "") { lt_freq[lt_foo]++; }
9890 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9891 }'`
9892 # AWK program above erroneously prepends '/' to C:/dos/paths
9893 # for these hosts.
9894 case $host_os in
9895 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9896 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9897 esac
9898 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9899 else
9900 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9901 fi
9902 library_names_spec=
9903 libname_spec='lib$name'
9904 soname_spec=
9905 shrext_cmds=".so"
9906 postinstall_cmds=
9907 postuninstall_cmds=
9908 finish_cmds=
9909 finish_eval=
9910 shlibpath_var=
9911 shlibpath_overrides_runpath=unknown
9912 version_type=none
9913 dynamic_linker="$host_os ld.so"
9914 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9915 need_lib_prefix=unknown
9916 hardcode_into_libs=no
9917
9918 # when you set need_version to no, make sure it does not cause -set_version
9919 # flags to be left without arguments
9920 need_version=unknown
9921
9922 case $host_os in
9923 aix3*)
9924 version_type=linux
9925 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9926 shlibpath_var=LIBPATH
9927
9928 # AIX 3 has no versioning support, so we append a major version to the name.
9929 soname_spec='${libname}${release}${shared_ext}$major'
9930 ;;
9931
9932 aix[4-9]*)
9933 version_type=linux
9934 need_lib_prefix=no
9935 need_version=no
9936 hardcode_into_libs=yes
9937 if test "$host_cpu" = ia64; then
9938 # AIX 5 supports IA64
9939 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9940 shlibpath_var=LD_LIBRARY_PATH
9941 else
9942 # With GCC up to 2.95.x, collect2 would create an import file
9943 # for dependence libraries. The import file would start with
9944 # the line `#! .'. This would cause the generated library to
9945 # depend on `.', always an invalid library. This was fixed in
9946 # development snapshots of GCC prior to 3.0.
9947 case $host_os in
9948 aix4 | aix4.[01] | aix4.[01].*)
9949 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9950 echo ' yes '
9951 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9952 :
9953 else
9954 can_build_shared=no
9955 fi
9956 ;;
9957 esac
9958 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9959 # soname into executable. Probably we can add versioning support to
9960 # collect2, so additional links can be useful in future.
9961 if test "$aix_use_runtimelinking" = yes; then
9962 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9963 # instead of lib<name>.a to let people know that these are not
9964 # typical AIX shared libraries.
9965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9966 else
9967 # We preserve .a as extension for shared libraries through AIX4.2
9968 # and later when we are not doing run time linking.
9969 library_names_spec='${libname}${release}.a $libname.a'
9970 soname_spec='${libname}${release}${shared_ext}$major'
9971 fi
9972 shlibpath_var=LIBPATH
9973 fi
9974 ;;
9975
9976 amigaos*)
9977 case $host_cpu in
9978 powerpc)
9979 # Since July 2007 AmigaOS4 officially supports .so libraries.
9980 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9982 ;;
9983 m68k)
9984 library_names_spec='$libname.ixlibrary $libname.a'
9985 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9986 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'
9987 ;;
9988 esac
9989 ;;
9990
9991 beos*)
9992 library_names_spec='${libname}${shared_ext}'
9993 dynamic_linker="$host_os ld.so"
9994 shlibpath_var=LIBRARY_PATH
9995 ;;
9996
9997 bsdi[45]*)
9998 version_type=linux
9999 need_version=no
10000 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10001 soname_spec='${libname}${release}${shared_ext}$major'
10002 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10003 shlibpath_var=LD_LIBRARY_PATH
10004 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10005 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10006 # the default ld.so.conf also contains /usr/contrib/lib and
10007 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10008 # libtool to hard-code these into programs
10009 ;;
10010
10011 cygwin* | mingw* | pw32* | cegcc*)
10012 version_type=windows
10013 shrext_cmds=".dll"
10014 need_version=no
10015 need_lib_prefix=no
10016
10017 case $GCC,$host_os in
10018 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10019 library_names_spec='$libname.dll.a'
10020 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10021 postinstall_cmds='base_file=`basename \${file}`~
10022 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10023 dldir=$destdir/`dirname \$dlpath`~
10024 test -d \$dldir || mkdir -p \$dldir~
10025 $install_prog $dir/$dlname \$dldir/$dlname~
10026 chmod a+x \$dldir/$dlname~
10027 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10028 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10029 fi'
10030 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10031 dlpath=$dir/\$dldll~
10032 $RM \$dlpath'
10033 shlibpath_overrides_runpath=yes
10034
10035 case $host_os in
10036 cygwin*)
10037 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10038 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10039
10040 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10041 ;;
10042 mingw* | cegcc*)
10043 # MinGW DLLs use traditional 'lib' prefix
10044 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10045 ;;
10046 pw32*)
10047 # pw32 DLLs use 'pw' prefix rather than 'lib'
10048 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10049 ;;
10050 esac
10051 ;;
10052
10053 *)
10054 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10055 ;;
10056 esac
10057 dynamic_linker='Win32 ld.exe'
10058 # FIXME: first we should search . and the directory the executable is in
10059 shlibpath_var=PATH
10060 ;;
10061
10062 darwin* | rhapsody*)
10063 dynamic_linker="$host_os dyld"
10064 version_type=darwin
10065 need_lib_prefix=no
10066 need_version=no
10067 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10068 soname_spec='${libname}${release}${major}$shared_ext'
10069 shlibpath_overrides_runpath=yes
10070 shlibpath_var=DYLD_LIBRARY_PATH
10071 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10072
10073 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10074 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10075 ;;
10076
10077 dgux*)
10078 version_type=linux
10079 need_lib_prefix=no
10080 need_version=no
10081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10082 soname_spec='${libname}${release}${shared_ext}$major'
10083 shlibpath_var=LD_LIBRARY_PATH
10084 ;;
10085
10086 freebsd* | dragonfly*)
10087 # DragonFly does not have aout. When/if they implement a new
10088 # versioning mechanism, adjust this.
10089 if test -x /usr/bin/objformat; then
10090 objformat=`/usr/bin/objformat`
10091 else
10092 case $host_os in
10093 freebsd[23].*) objformat=aout ;;
10094 *) objformat=elf ;;
10095 esac
10096 fi
10097 version_type=freebsd-$objformat
10098 case $version_type in
10099 freebsd-elf*)
10100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10101 need_version=no
10102 need_lib_prefix=no
10103 ;;
10104 freebsd-*)
10105 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10106 need_version=yes
10107 ;;
10108 esac
10109 shlibpath_var=LD_LIBRARY_PATH
10110 case $host_os in
10111 freebsd2.*)
10112 shlibpath_overrides_runpath=yes
10113 ;;
10114 freebsd3.[01]* | freebsdelf3.[01]*)
10115 shlibpath_overrides_runpath=yes
10116 hardcode_into_libs=yes
10117 ;;
10118 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10119 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10120 shlibpath_overrides_runpath=no
10121 hardcode_into_libs=yes
10122 ;;
10123 *) # from 4.6 on, and DragonFly
10124 shlibpath_overrides_runpath=yes
10125 hardcode_into_libs=yes
10126 ;;
10127 esac
10128 ;;
10129
10130 haiku*)
10131 version_type=linux
10132 need_lib_prefix=no
10133 need_version=no
10134 dynamic_linker="$host_os runtime_loader"
10135 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10136 soname_spec='${libname}${release}${shared_ext}$major'
10137 shlibpath_var=LIBRARY_PATH
10138 shlibpath_overrides_runpath=yes
10139 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10140 hardcode_into_libs=yes
10141 ;;
10142
10143 hpux9* | hpux10* | hpux11*)
10144 # Give a soname corresponding to the major version so that dld.sl refuses to
10145 # link against other versions.
10146 version_type=sunos
10147 need_lib_prefix=no
10148 need_version=no
10149 case $host_cpu in
10150 ia64*)
10151 shrext_cmds='.so'
10152 hardcode_into_libs=yes
10153 dynamic_linker="$host_os dld.so"
10154 shlibpath_var=LD_LIBRARY_PATH
10155 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10157 soname_spec='${libname}${release}${shared_ext}$major'
10158 if test "X$HPUX_IA64_MODE" = X32; then
10159 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10160 else
10161 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10162 fi
10163 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10164 ;;
10165 hppa*64*)
10166 shrext_cmds='.sl'
10167 hardcode_into_libs=yes
10168 dynamic_linker="$host_os dld.sl"
10169 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10170 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10172 soname_spec='${libname}${release}${shared_ext}$major'
10173 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10174 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10175 ;;
10176 *)
10177 shrext_cmds='.sl'
10178 dynamic_linker="$host_os dld.sl"
10179 shlibpath_var=SHLIB_PATH
10180 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10182 soname_spec='${libname}${release}${shared_ext}$major'
10183 ;;
10184 esac
10185 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10186 postinstall_cmds='chmod 555 $lib'
10187 # or fails outright, so override atomically:
10188 install_override_mode=555
10189 ;;
10190
10191 interix[3-9]*)
10192 version_type=linux
10193 need_lib_prefix=no
10194 need_version=no
10195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10196 soname_spec='${libname}${release}${shared_ext}$major'
10197 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10198 shlibpath_var=LD_LIBRARY_PATH
10199 shlibpath_overrides_runpath=no
10200 hardcode_into_libs=yes
10201 ;;
10202
10203 irix5* | irix6* | nonstopux*)
10204 case $host_os in
10205 nonstopux*) version_type=nonstopux ;;
10206 *)
10207 if test "$lt_cv_prog_gnu_ld" = yes; then
10208 version_type=linux
10209 else
10210 version_type=irix
10211 fi ;;
10212 esac
10213 need_lib_prefix=no
10214 need_version=no
10215 soname_spec='${libname}${release}${shared_ext}$major'
10216 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10217 case $host_os in
10218 irix5* | nonstopux*)
10219 libsuff= shlibsuff=
10220 ;;
10221 *)
10222 case $LD in # libtool.m4 will add one of these switches to LD
10223 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10224 libsuff= shlibsuff= libmagic=32-bit;;
10225 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10226 libsuff=32 shlibsuff=N32 libmagic=N32;;
10227 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10228 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10229 *) libsuff= shlibsuff= libmagic=never-match;;
10230 esac
10231 ;;
10232 esac
10233 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10234 shlibpath_overrides_runpath=no
10235 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10236 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10237 hardcode_into_libs=yes
10238 ;;
10239
10240 # No shared lib support for Linux oldld, aout, or coff.
10241 linux*oldld* | linux*aout* | linux*coff*)
10242 dynamic_linker=no
10243 ;;
10244
10245 # This must be Linux ELF.
10246 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10247 version_type=linux
10248 need_lib_prefix=no
10249 need_version=no
10250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10251 soname_spec='${libname}${release}${shared_ext}$major'
10252 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10253 shlibpath_var=LD_LIBRARY_PATH
10254 shlibpath_overrides_runpath=no
10255
10256 # Some binutils ld are patched to set DT_RUNPATH
10257 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10258 $as_echo_n "(cached) " >&6
10259 else
10260 lt_cv_shlibpath_overrides_runpath=no
10261 save_LDFLAGS=$LDFLAGS
10262 save_libdir=$libdir
10263 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10264 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10266 /* end confdefs.h. */
10267
10268 int
10269 main ()
10270 {
10271
10272 ;
10273 return 0;
10274 }
10275 _ACEOF
10276 if ac_fn_c_try_link "$LINENO"; then :
10277 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10278 lt_cv_shlibpath_overrides_runpath=yes
10279 fi
10280 fi
10281 rm -f core conftest.err conftest.$ac_objext \
10282 conftest$ac_exeext conftest.$ac_ext
10283 LDFLAGS=$save_LDFLAGS
10284 libdir=$save_libdir
10285
10286 fi
10287
10288 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10289
10290 # This implies no fast_install, which is unacceptable.
10291 # Some rework will be needed to allow for fast_install
10292 # before this can be enabled.
10293 hardcode_into_libs=yes
10294
10295 # Append ld.so.conf contents to the search path
10296 if test -f /etc/ld.so.conf; then
10297 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' ' '`
10298 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10299 fi
10300
10301 # We used to test for /lib/ld.so.1 and disable shared libraries on
10302 # powerpc, because MkLinux only supported shared libraries with the
10303 # GNU dynamic linker. Since this was broken with cross compilers,
10304 # most powerpc-linux boxes support dynamic linking these days and
10305 # people can always --disable-shared, the test was removed, and we
10306 # assume the GNU/Linux dynamic linker is in use.
10307 dynamic_linker='GNU/Linux ld.so'
10308 ;;
10309
10310 netbsd*)
10311 version_type=sunos
10312 need_lib_prefix=no
10313 need_version=no
10314 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10316 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10317 dynamic_linker='NetBSD (a.out) ld.so'
10318 else
10319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10320 soname_spec='${libname}${release}${shared_ext}$major'
10321 dynamic_linker='NetBSD ld.elf_so'
10322 fi
10323 shlibpath_var=LD_LIBRARY_PATH
10324 shlibpath_overrides_runpath=yes
10325 hardcode_into_libs=yes
10326 ;;
10327
10328 newsos6)
10329 version_type=linux
10330 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10331 shlibpath_var=LD_LIBRARY_PATH
10332 shlibpath_overrides_runpath=yes
10333 ;;
10334
10335 *nto* | *qnx*)
10336 version_type=qnx
10337 need_lib_prefix=no
10338 need_version=no
10339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10340 soname_spec='${libname}${release}${shared_ext}$major'
10341 shlibpath_var=LD_LIBRARY_PATH
10342 shlibpath_overrides_runpath=no
10343 hardcode_into_libs=yes
10344 dynamic_linker='ldqnx.so'
10345 ;;
10346
10347 openbsd*)
10348 version_type=sunos
10349 sys_lib_dlsearch_path_spec="/usr/lib"
10350 need_lib_prefix=no
10351 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10352 case $host_os in
10353 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10354 *) need_version=no ;;
10355 esac
10356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10357 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10358 shlibpath_var=LD_LIBRARY_PATH
10359 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10360 case $host_os in
10361 openbsd2.[89] | openbsd2.[89].*)
10362 shlibpath_overrides_runpath=no
10363 ;;
10364 *)
10365 shlibpath_overrides_runpath=yes
10366 ;;
10367 esac
10368 else
10369 shlibpath_overrides_runpath=yes
10370 fi
10371 ;;
10372
10373 os2*)
10374 libname_spec='$name'
10375 shrext_cmds=".dll"
10376 need_lib_prefix=no
10377 library_names_spec='$libname${shared_ext} $libname.a'
10378 dynamic_linker='OS/2 ld.exe'
10379 shlibpath_var=LIBPATH
10380 ;;
10381
10382 osf3* | osf4* | osf5*)
10383 version_type=osf
10384 need_lib_prefix=no
10385 need_version=no
10386 soname_spec='${libname}${release}${shared_ext}$major'
10387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10388 shlibpath_var=LD_LIBRARY_PATH
10389 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10390 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10391 ;;
10392
10393 rdos*)
10394 dynamic_linker=no
10395 ;;
10396
10397 solaris*)
10398 version_type=linux
10399 need_lib_prefix=no
10400 need_version=no
10401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10402 soname_spec='${libname}${release}${shared_ext}$major'
10403 shlibpath_var=LD_LIBRARY_PATH
10404 shlibpath_overrides_runpath=yes
10405 hardcode_into_libs=yes
10406 # ldd complains unless libraries are executable
10407 postinstall_cmds='chmod +x $lib'
10408 ;;
10409
10410 sunos4*)
10411 version_type=sunos
10412 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10413 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10414 shlibpath_var=LD_LIBRARY_PATH
10415 shlibpath_overrides_runpath=yes
10416 if test "$with_gnu_ld" = yes; then
10417 need_lib_prefix=no
10418 fi
10419 need_version=yes
10420 ;;
10421
10422 sysv4 | sysv4.3*)
10423 version_type=linux
10424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10425 soname_spec='${libname}${release}${shared_ext}$major'
10426 shlibpath_var=LD_LIBRARY_PATH
10427 case $host_vendor in
10428 sni)
10429 shlibpath_overrides_runpath=no
10430 need_lib_prefix=no
10431 runpath_var=LD_RUN_PATH
10432 ;;
10433 siemens)
10434 need_lib_prefix=no
10435 ;;
10436 motorola)
10437 need_lib_prefix=no
10438 need_version=no
10439 shlibpath_overrides_runpath=no
10440 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10441 ;;
10442 esac
10443 ;;
10444
10445 sysv4*MP*)
10446 if test -d /usr/nec ;then
10447 version_type=linux
10448 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10449 soname_spec='$libname${shared_ext}.$major'
10450 shlibpath_var=LD_LIBRARY_PATH
10451 fi
10452 ;;
10453
10454 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10455 version_type=freebsd-elf
10456 need_lib_prefix=no
10457 need_version=no
10458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10459 soname_spec='${libname}${release}${shared_ext}$major'
10460 shlibpath_var=LD_LIBRARY_PATH
10461 shlibpath_overrides_runpath=yes
10462 hardcode_into_libs=yes
10463 if test "$with_gnu_ld" = yes; then
10464 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10465 else
10466 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10467 case $host_os in
10468 sco3.2v5*)
10469 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10470 ;;
10471 esac
10472 fi
10473 sys_lib_dlsearch_path_spec='/usr/lib'
10474 ;;
10475
10476 tpf*)
10477 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10478 version_type=linux
10479 need_lib_prefix=no
10480 need_version=no
10481 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10482 shlibpath_var=LD_LIBRARY_PATH
10483 shlibpath_overrides_runpath=no
10484 hardcode_into_libs=yes
10485 ;;
10486
10487 uts4*)
10488 version_type=linux
10489 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10490 soname_spec='${libname}${release}${shared_ext}$major'
10491 shlibpath_var=LD_LIBRARY_PATH
10492 ;;
10493
10494 *)
10495 dynamic_linker=no
10496 ;;
10497 esac
10498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10499 $as_echo "$dynamic_linker" >&6; }
10500 test "$dynamic_linker" = no && can_build_shared=no
10501
10502 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10503 if test "$GCC" = yes; then
10504 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10505 fi
10506
10507 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10508 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10509 fi
10510 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10511 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10512 fi
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10606 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10607 hardcode_action=
10608 if test -n "$hardcode_libdir_flag_spec" ||
10609 test -n "$runpath_var" ||
10610 test "X$hardcode_automatic" = "Xyes" ; then
10611
10612 # We can hardcode non-existent directories.
10613 if test "$hardcode_direct" != no &&
10614 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10615 # have to relink, otherwise we might link with an installed library
10616 # when we should be linking with a yet-to-be-installed one
10617 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10618 test "$hardcode_minus_L" != no; then
10619 # Linking always hardcodes the temporary library directory.
10620 hardcode_action=relink
10621 else
10622 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10623 hardcode_action=immediate
10624 fi
10625 else
10626 # We cannot hardcode anything, or else we can only hardcode existing
10627 # directories.
10628 hardcode_action=unsupported
10629 fi
10630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10631 $as_echo "$hardcode_action" >&6; }
10632
10633 if test "$hardcode_action" = relink ||
10634 test "$inherit_rpath" = yes; then
10635 # Fast installation is not supported
10636 enable_fast_install=no
10637 elif test "$shlibpath_overrides_runpath" = yes ||
10638 test "$enable_shared" = no; then
10639 # Fast installation is not necessary
10640 enable_fast_install=needless
10641 fi
10642
10643
10644
10645
10646
10647
10648 if test "x$enable_dlopen" != xyes; then
10649 enable_dlopen=unknown
10650 enable_dlopen_self=unknown
10651 enable_dlopen_self_static=unknown
10652 else
10653 lt_cv_dlopen=no
10654 lt_cv_dlopen_libs=
10655
10656 case $host_os in
10657 beos*)
10658 lt_cv_dlopen="load_add_on"
10659 lt_cv_dlopen_libs=
10660 lt_cv_dlopen_self=yes
10661 ;;
10662
10663 mingw* | pw32* | cegcc*)
10664 lt_cv_dlopen="LoadLibrary"
10665 lt_cv_dlopen_libs=
10666 ;;
10667
10668 cygwin*)
10669 lt_cv_dlopen="dlopen"
10670 lt_cv_dlopen_libs=
10671 ;;
10672
10673 darwin*)
10674 # if libdl is installed we need to link against it
10675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10676 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10677 if ${ac_cv_lib_dl_dlopen+:} false; then :
10678 $as_echo_n "(cached) " >&6
10679 else
10680 ac_check_lib_save_LIBS=$LIBS
10681 LIBS="-ldl $LIBS"
10682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10683 /* end confdefs.h. */
10684
10685 /* Override any GCC internal prototype to avoid an error.
10686 Use char because int might match the return type of a GCC
10687 builtin and then its argument prototype would still apply. */
10688 #ifdef __cplusplus
10689 extern "C"
10690 #endif
10691 char dlopen ();
10692 int
10693 main ()
10694 {
10695 return dlopen ();
10696 ;
10697 return 0;
10698 }
10699 _ACEOF
10700 if ac_fn_c_try_link "$LINENO"; then :
10701 ac_cv_lib_dl_dlopen=yes
10702 else
10703 ac_cv_lib_dl_dlopen=no
10704 fi
10705 rm -f core conftest.err conftest.$ac_objext \
10706 conftest$ac_exeext conftest.$ac_ext
10707 LIBS=$ac_check_lib_save_LIBS
10708 fi
10709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10710 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10711 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10712 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10713 else
10714
10715 lt_cv_dlopen="dyld"
10716 lt_cv_dlopen_libs=
10717 lt_cv_dlopen_self=yes
10718
10719 fi
10720
10721 ;;
10722
10723 *)
10724 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10725 if test "x$ac_cv_func_shl_load" = xyes; then :
10726 lt_cv_dlopen="shl_load"
10727 else
10728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10729 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10730 if ${ac_cv_lib_dld_shl_load+:} false; then :
10731 $as_echo_n "(cached) " >&6
10732 else
10733 ac_check_lib_save_LIBS=$LIBS
10734 LIBS="-ldld $LIBS"
10735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10736 /* end confdefs.h. */
10737
10738 /* Override any GCC internal prototype to avoid an error.
10739 Use char because int might match the return type of a GCC
10740 builtin and then its argument prototype would still apply. */
10741 #ifdef __cplusplus
10742 extern "C"
10743 #endif
10744 char shl_load ();
10745 int
10746 main ()
10747 {
10748 return shl_load ();
10749 ;
10750 return 0;
10751 }
10752 _ACEOF
10753 if ac_fn_c_try_link "$LINENO"; then :
10754 ac_cv_lib_dld_shl_load=yes
10755 else
10756 ac_cv_lib_dld_shl_load=no
10757 fi
10758 rm -f core conftest.err conftest.$ac_objext \
10759 conftest$ac_exeext conftest.$ac_ext
10760 LIBS=$ac_check_lib_save_LIBS
10761 fi
10762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10763 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10764 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10765 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10766 else
10767 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10768 if test "x$ac_cv_func_dlopen" = xyes; then :
10769 lt_cv_dlopen="dlopen"
10770 else
10771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10772 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10773 if ${ac_cv_lib_dl_dlopen+:} false; then :
10774 $as_echo_n "(cached) " >&6
10775 else
10776 ac_check_lib_save_LIBS=$LIBS
10777 LIBS="-ldl $LIBS"
10778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10779 /* end confdefs.h. */
10780
10781 /* Override any GCC internal prototype to avoid an error.
10782 Use char because int might match the return type of a GCC
10783 builtin and then its argument prototype would still apply. */
10784 #ifdef __cplusplus
10785 extern "C"
10786 #endif
10787 char dlopen ();
10788 int
10789 main ()
10790 {
10791 return dlopen ();
10792 ;
10793 return 0;
10794 }
10795 _ACEOF
10796 if ac_fn_c_try_link "$LINENO"; then :
10797 ac_cv_lib_dl_dlopen=yes
10798 else
10799 ac_cv_lib_dl_dlopen=no
10800 fi
10801 rm -f core conftest.err conftest.$ac_objext \
10802 conftest$ac_exeext conftest.$ac_ext
10803 LIBS=$ac_check_lib_save_LIBS
10804 fi
10805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10806 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10807 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10808 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10809 else
10810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10811 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10812 if ${ac_cv_lib_svld_dlopen+:} false; then :
10813 $as_echo_n "(cached) " >&6
10814 else
10815 ac_check_lib_save_LIBS=$LIBS
10816 LIBS="-lsvld $LIBS"
10817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10818 /* end confdefs.h. */
10819
10820 /* Override any GCC internal prototype to avoid an error.
10821 Use char because int might match the return type of a GCC
10822 builtin and then its argument prototype would still apply. */
10823 #ifdef __cplusplus
10824 extern "C"
10825 #endif
10826 char dlopen ();
10827 int
10828 main ()
10829 {
10830 return dlopen ();
10831 ;
10832 return 0;
10833 }
10834 _ACEOF
10835 if ac_fn_c_try_link "$LINENO"; then :
10836 ac_cv_lib_svld_dlopen=yes
10837 else
10838 ac_cv_lib_svld_dlopen=no
10839 fi
10840 rm -f core conftest.err conftest.$ac_objext \
10841 conftest$ac_exeext conftest.$ac_ext
10842 LIBS=$ac_check_lib_save_LIBS
10843 fi
10844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10845 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10846 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10847 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10848 else
10849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10850 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10851 if ${ac_cv_lib_dld_dld_link+:} false; then :
10852 $as_echo_n "(cached) " >&6
10853 else
10854 ac_check_lib_save_LIBS=$LIBS
10855 LIBS="-ldld $LIBS"
10856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10857 /* end confdefs.h. */
10858
10859 /* Override any GCC internal prototype to avoid an error.
10860 Use char because int might match the return type of a GCC
10861 builtin and then its argument prototype would still apply. */
10862 #ifdef __cplusplus
10863 extern "C"
10864 #endif
10865 char dld_link ();
10866 int
10867 main ()
10868 {
10869 return dld_link ();
10870 ;
10871 return 0;
10872 }
10873 _ACEOF
10874 if ac_fn_c_try_link "$LINENO"; then :
10875 ac_cv_lib_dld_dld_link=yes
10876 else
10877 ac_cv_lib_dld_dld_link=no
10878 fi
10879 rm -f core conftest.err conftest.$ac_objext \
10880 conftest$ac_exeext conftest.$ac_ext
10881 LIBS=$ac_check_lib_save_LIBS
10882 fi
10883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10884 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10885 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10886 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10887 fi
10888
10889
10890 fi
10891
10892
10893 fi
10894
10895
10896 fi
10897
10898
10899 fi
10900
10901
10902 fi
10903
10904 ;;
10905 esac
10906
10907 if test "x$lt_cv_dlopen" != xno; then
10908 enable_dlopen=yes
10909 else
10910 enable_dlopen=no
10911 fi
10912
10913 case $lt_cv_dlopen in
10914 dlopen)
10915 save_CPPFLAGS="$CPPFLAGS"
10916 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10917
10918 save_LDFLAGS="$LDFLAGS"
10919 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10920
10921 save_LIBS="$LIBS"
10922 LIBS="$lt_cv_dlopen_libs $LIBS"
10923
10924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10925 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10926 if ${lt_cv_dlopen_self+:} false; then :
10927 $as_echo_n "(cached) " >&6
10928 else
10929 if test "$cross_compiling" = yes; then :
10930 lt_cv_dlopen_self=cross
10931 else
10932 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10933 lt_status=$lt_dlunknown
10934 cat > conftest.$ac_ext <<_LT_EOF
10935 #line 10935 "configure"
10936 #include "confdefs.h"
10937
10938 #if HAVE_DLFCN_H
10939 #include <dlfcn.h>
10940 #endif
10941
10942 #include <stdio.h>
10943
10944 #ifdef RTLD_GLOBAL
10945 # define LT_DLGLOBAL RTLD_GLOBAL
10946 #else
10947 # ifdef DL_GLOBAL
10948 # define LT_DLGLOBAL DL_GLOBAL
10949 # else
10950 # define LT_DLGLOBAL 0
10951 # endif
10952 #endif
10953
10954 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10955 find out it does not work in some platform. */
10956 #ifndef LT_DLLAZY_OR_NOW
10957 # ifdef RTLD_LAZY
10958 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10959 # else
10960 # ifdef DL_LAZY
10961 # define LT_DLLAZY_OR_NOW DL_LAZY
10962 # else
10963 # ifdef RTLD_NOW
10964 # define LT_DLLAZY_OR_NOW RTLD_NOW
10965 # else
10966 # ifdef DL_NOW
10967 # define LT_DLLAZY_OR_NOW DL_NOW
10968 # else
10969 # define LT_DLLAZY_OR_NOW 0
10970 # endif
10971 # endif
10972 # endif
10973 # endif
10974 #endif
10975
10976 /* When -fvisbility=hidden is used, assume the code has been annotated
10977 correspondingly for the symbols needed. */
10978 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10979 void fnord () __attribute__((visibility("default")));
10980 #endif
10981
10982 void fnord () { int i=42; }
10983 int main ()
10984 {
10985 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10986 int status = $lt_dlunknown;
10987
10988 if (self)
10989 {
10990 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10991 else
10992 {
10993 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10994 else puts (dlerror ());
10995 }
10996 /* dlclose (self); */
10997 }
10998 else
10999 puts (dlerror ());
11000
11001 return status;
11002 }
11003 _LT_EOF
11004 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11005 (eval $ac_link) 2>&5
11006 ac_status=$?
11007 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11008 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11009 (./conftest; exit; ) >&5 2>/dev/null
11010 lt_status=$?
11011 case x$lt_status in
11012 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11013 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11014 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11015 esac
11016 else :
11017 # compilation failed
11018 lt_cv_dlopen_self=no
11019 fi
11020 fi
11021 rm -fr conftest*
11022
11023
11024 fi
11025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11026 $as_echo "$lt_cv_dlopen_self" >&6; }
11027
11028 if test "x$lt_cv_dlopen_self" = xyes; then
11029 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11031 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11032 if ${lt_cv_dlopen_self_static+:} false; then :
11033 $as_echo_n "(cached) " >&6
11034 else
11035 if test "$cross_compiling" = yes; then :
11036 lt_cv_dlopen_self_static=cross
11037 else
11038 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11039 lt_status=$lt_dlunknown
11040 cat > conftest.$ac_ext <<_LT_EOF
11041 #line 11041 "configure"
11042 #include "confdefs.h"
11043
11044 #if HAVE_DLFCN_H
11045 #include <dlfcn.h>
11046 #endif
11047
11048 #include <stdio.h>
11049
11050 #ifdef RTLD_GLOBAL
11051 # define LT_DLGLOBAL RTLD_GLOBAL
11052 #else
11053 # ifdef DL_GLOBAL
11054 # define LT_DLGLOBAL DL_GLOBAL
11055 # else
11056 # define LT_DLGLOBAL 0
11057 # endif
11058 #endif
11059
11060 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11061 find out it does not work in some platform. */
11062 #ifndef LT_DLLAZY_OR_NOW
11063 # ifdef RTLD_LAZY
11064 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11065 # else
11066 # ifdef DL_LAZY
11067 # define LT_DLLAZY_OR_NOW DL_LAZY
11068 # else
11069 # ifdef RTLD_NOW
11070 # define LT_DLLAZY_OR_NOW RTLD_NOW
11071 # else
11072 # ifdef DL_NOW
11073 # define LT_DLLAZY_OR_NOW DL_NOW
11074 # else
11075 # define LT_DLLAZY_OR_NOW 0
11076 # endif
11077 # endif
11078 # endif
11079 # endif
11080 #endif
11081
11082 /* When -fvisbility=hidden is used, assume the code has been annotated
11083 correspondingly for the symbols needed. */
11084 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11085 void fnord () __attribute__((visibility("default")));
11086 #endif
11087
11088 void fnord () { int i=42; }
11089 int main ()
11090 {
11091 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11092 int status = $lt_dlunknown;
11093
11094 if (self)
11095 {
11096 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11097 else
11098 {
11099 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11100 else puts (dlerror ());
11101 }
11102 /* dlclose (self); */
11103 }
11104 else
11105 puts (dlerror ());
11106
11107 return status;
11108 }
11109 _LT_EOF
11110 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11111 (eval $ac_link) 2>&5
11112 ac_status=$?
11113 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11114 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11115 (./conftest; exit; ) >&5 2>/dev/null
11116 lt_status=$?
11117 case x$lt_status in
11118 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11119 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11120 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11121 esac
11122 else :
11123 # compilation failed
11124 lt_cv_dlopen_self_static=no
11125 fi
11126 fi
11127 rm -fr conftest*
11128
11129
11130 fi
11131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11132 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11133 fi
11134
11135 CPPFLAGS="$save_CPPFLAGS"
11136 LDFLAGS="$save_LDFLAGS"
11137 LIBS="$save_LIBS"
11138 ;;
11139 esac
11140
11141 case $lt_cv_dlopen_self in
11142 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11143 *) enable_dlopen_self=unknown ;;
11144 esac
11145
11146 case $lt_cv_dlopen_self_static in
11147 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11148 *) enable_dlopen_self_static=unknown ;;
11149 esac
11150 fi
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168 striplib=
11169 old_striplib=
11170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11171 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11172 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11173 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11174 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11176 $as_echo "yes" >&6; }
11177 else
11178 # FIXME - insert some real tests, host_os isn't really good enough
11179 case $host_os in
11180 darwin*)
11181 if test -n "$STRIP" ; then
11182 striplib="$STRIP -x"
11183 old_striplib="$STRIP -S"
11184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11185 $as_echo "yes" >&6; }
11186 else
11187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11188 $as_echo "no" >&6; }
11189 fi
11190 ;;
11191 *)
11192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11193 $as_echo "no" >&6; }
11194 ;;
11195 esac
11196 fi
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209 # Report which library types will actually be built
11210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11211 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11213 $as_echo "$can_build_shared" >&6; }
11214
11215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11216 $as_echo_n "checking whether to build shared libraries... " >&6; }
11217 test "$can_build_shared" = "no" && enable_shared=no
11218
11219 # On AIX, shared libraries and static libraries use the same namespace, and
11220 # are all built from PIC.
11221 case $host_os in
11222 aix3*)
11223 test "$enable_shared" = yes && enable_static=no
11224 if test -n "$RANLIB"; then
11225 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11226 postinstall_cmds='$RANLIB $lib'
11227 fi
11228 ;;
11229
11230 aix[4-9]*)
11231 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11232 test "$enable_shared" = yes && enable_static=no
11233 fi
11234 ;;
11235 esac
11236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11237 $as_echo "$enable_shared" >&6; }
11238
11239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11240 $as_echo_n "checking whether to build static libraries... " >&6; }
11241 # Make sure either enable_shared or enable_static is yes.
11242 test "$enable_shared" = yes || enable_static=yes
11243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11244 $as_echo "$enable_static" >&6; }
11245
11246
11247
11248
11249 fi
11250 ac_ext=c
11251 ac_cpp='$CPP $CPPFLAGS'
11252 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11253 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11254 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11255
11256 CC="$lt_save_CC"
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270 ac_config_commands="$ac_config_commands libtool"
11271
11272
11273
11274
11275 # Only expand once:
11276
11277
11278
11279 # The tests for host and target for $enable_largefile require
11280 # canonical names.
11281
11282
11283
11284 # As the $enable_largefile decision depends on --enable-plugins we must set it
11285 # even in directories otherwise not depending on the $plugins option.
11286
11287
11288 maybe_plugins=no
11289 for ac_header in dlfcn.h
11290 do :
11291 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
11292 "
11293 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
11294 cat >>confdefs.h <<_ACEOF
11295 #define HAVE_DLFCN_H 1
11296 _ACEOF
11297 maybe_plugins=yes
11298 fi
11299
11300 done
11301
11302 for ac_header in windows.h
11303 do :
11304 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
11305 "
11306 if test "x$ac_cv_header_windows_h" = xyes; then :
11307 cat >>confdefs.h <<_ACEOF
11308 #define HAVE_WINDOWS_H 1
11309 _ACEOF
11310 maybe_plugins=yes
11311 fi
11312
11313 done
11314
11315
11316 # Check whether --enable-plugins was given.
11317 if test "${enable_plugins+set}" = set; then :
11318 enableval=$enable_plugins; case "${enableval}" in
11319 no) plugins=no ;;
11320 *) plugins=yes
11321 if test "$maybe_plugins" != "yes" ; then
11322 as_fn_error $? "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
11323 fi ;;
11324 esac
11325 else
11326 plugins=$maybe_plugins
11327
11328 fi
11329
11330 if test "$plugins" = "yes"; then
11331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
11332 $as_echo_n "checking for library containing dlsym... " >&6; }
11333 if ${ac_cv_search_dlsym+:} false; then :
11334 $as_echo_n "(cached) " >&6
11335 else
11336 ac_func_search_save_LIBS=$LIBS
11337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11338 /* end confdefs.h. */
11339
11340 /* Override any GCC internal prototype to avoid an error.
11341 Use char because int might match the return type of a GCC
11342 builtin and then its argument prototype would still apply. */
11343 #ifdef __cplusplus
11344 extern "C"
11345 #endif
11346 char dlsym ();
11347 int
11348 main ()
11349 {
11350 return dlsym ();
11351 ;
11352 return 0;
11353 }
11354 _ACEOF
11355 for ac_lib in '' dl; do
11356 if test -z "$ac_lib"; then
11357 ac_res="none required"
11358 else
11359 ac_res=-l$ac_lib
11360 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11361 fi
11362 if ac_fn_c_try_link "$LINENO"; then :
11363 ac_cv_search_dlsym=$ac_res
11364 fi
11365 rm -f core conftest.err conftest.$ac_objext \
11366 conftest$ac_exeext
11367 if ${ac_cv_search_dlsym+:} false; then :
11368 break
11369 fi
11370 done
11371 if ${ac_cv_search_dlsym+:} false; then :
11372
11373 else
11374 ac_cv_search_dlsym=no
11375 fi
11376 rm conftest.$ac_ext
11377 LIBS=$ac_func_search_save_LIBS
11378 fi
11379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
11380 $as_echo "$ac_cv_search_dlsym" >&6; }
11381 ac_res=$ac_cv_search_dlsym
11382 if test "$ac_res" != no; then :
11383 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11384
11385 fi
11386
11387 fi
11388
11389
11390 case "${host}" in
11391 sparc-*-solaris*|i?86-*-solaris*)
11392 # On native 32-bit Solaris/SPARC and x86, large-file and procfs support
11393 # were mutually exclusive until Solaris 11.3. Without procfs support,
11394 # the bfd/ elf module cannot provide certain routines such as
11395 # elfcore_write_prpsinfo or elfcore_write_prstatus. So unless the user
11396 # explicitly requested large-file support through the
11397 # --enable-largefile switch, disable large-file support in favor of
11398 # procfs support.
11399 #
11400 # Check if <sys/procfs.h> is incompatible with large-file support.
11401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11402 /* end confdefs.h. */
11403 #define _FILE_OFFSET_BITS 64
11404 #define _STRUCTURED_PROC 1
11405 #include <sys/procfs.h>
11406 int
11407 main ()
11408 {
11409
11410 ;
11411 return 0;
11412 }
11413 _ACEOF
11414 if ac_fn_c_try_compile "$LINENO"; then :
11415 acx_cv_procfs_lfs=yes
11416 else
11417 acx_cv_procfs_lfs=no
11418 fi
11419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11420 #
11421 # Forcefully disable large-file support only if necessary, gdb is in
11422 # tree and enabled.
11423 if test "${target}" = "${host}" -a "$acx_cv_procfs_lfs" = no \
11424 -a -d $srcdir/../gdb -a "$enable_gdb" != no; then
11425 : ${enable_largefile="no"}
11426 if test "$plugins" = yes; then
11427 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
11428 plugin support disabled; require large-file support which is incompatible with GDB." >&5
11429 $as_echo "$as_me: WARNING:
11430 plugin support disabled; require large-file support which is incompatible with GDB." >&2;}
11431 plugins=no
11432 fi
11433 fi
11434 #
11435 # Explicitly undef _FILE_OFFSET_BITS if enable_largefile=no for the
11436 # benefit of g++ 9+ which predefines it on Solaris.
11437 if test "$enable_largefile" = no; then
11438 LARGEFILE_CPPFLAGS="-U_FILE_OFFSET_BITS"
11439
11440 fi
11441 ;;
11442 esac
11443
11444 # Check whether --enable-largefile was given.
11445 if test "${enable_largefile+set}" = set; then :
11446 enableval=$enable_largefile;
11447 fi
11448
11449 if test "$enable_largefile" != no; then
11450
11451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
11452 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
11453 if ${ac_cv_sys_largefile_CC+:} false; then :
11454 $as_echo_n "(cached) " >&6
11455 else
11456 ac_cv_sys_largefile_CC=no
11457 if test "$GCC" != yes; then
11458 ac_save_CC=$CC
11459 while :; do
11460 # IRIX 6.2 and later do not support large files by default,
11461 # so use the C compiler's -n32 option if that helps.
11462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11463 /* end confdefs.h. */
11464 #include <sys/types.h>
11465 /* Check that off_t can represent 2**63 - 1 correctly.
11466 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11467 since some C++ compilers masquerading as C compilers
11468 incorrectly reject 9223372036854775807. */
11469 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11470 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11471 && LARGE_OFF_T % 2147483647 == 1)
11472 ? 1 : -1];
11473 int
11474 main ()
11475 {
11476
11477 ;
11478 return 0;
11479 }
11480 _ACEOF
11481 if ac_fn_c_try_compile "$LINENO"; then :
11482 break
11483 fi
11484 rm -f core conftest.err conftest.$ac_objext
11485 CC="$CC -n32"
11486 if ac_fn_c_try_compile "$LINENO"; then :
11487 ac_cv_sys_largefile_CC=' -n32'; break
11488 fi
11489 rm -f core conftest.err conftest.$ac_objext
11490 break
11491 done
11492 CC=$ac_save_CC
11493 rm -f conftest.$ac_ext
11494 fi
11495 fi
11496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
11497 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
11498 if test "$ac_cv_sys_largefile_CC" != no; then
11499 CC=$CC$ac_cv_sys_largefile_CC
11500 fi
11501
11502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
11503 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
11504 if ${ac_cv_sys_file_offset_bits+:} false; then :
11505 $as_echo_n "(cached) " >&6
11506 else
11507 while :; do
11508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11509 /* end confdefs.h. */
11510 #include <sys/types.h>
11511 /* Check that off_t can represent 2**63 - 1 correctly.
11512 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11513 since some C++ compilers masquerading as C compilers
11514 incorrectly reject 9223372036854775807. */
11515 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11516 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11517 && LARGE_OFF_T % 2147483647 == 1)
11518 ? 1 : -1];
11519 int
11520 main ()
11521 {
11522
11523 ;
11524 return 0;
11525 }
11526 _ACEOF
11527 if ac_fn_c_try_compile "$LINENO"; then :
11528 ac_cv_sys_file_offset_bits=no; break
11529 fi
11530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11532 /* end confdefs.h. */
11533 #define _FILE_OFFSET_BITS 64
11534 #include <sys/types.h>
11535 /* Check that off_t can represent 2**63 - 1 correctly.
11536 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11537 since some C++ compilers masquerading as C compilers
11538 incorrectly reject 9223372036854775807. */
11539 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11540 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11541 && LARGE_OFF_T % 2147483647 == 1)
11542 ? 1 : -1];
11543 int
11544 main ()
11545 {
11546
11547 ;
11548 return 0;
11549 }
11550 _ACEOF
11551 if ac_fn_c_try_compile "$LINENO"; then :
11552 ac_cv_sys_file_offset_bits=64; break
11553 fi
11554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11555 ac_cv_sys_file_offset_bits=unknown
11556 break
11557 done
11558 fi
11559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
11560 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
11561 case $ac_cv_sys_file_offset_bits in #(
11562 no | unknown) ;;
11563 *)
11564 cat >>confdefs.h <<_ACEOF
11565 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
11566 _ACEOF
11567 ;;
11568 esac
11569 rm -rf conftest*
11570 if test $ac_cv_sys_file_offset_bits = unknown; then
11571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
11572 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
11573 if ${ac_cv_sys_large_files+:} false; then :
11574 $as_echo_n "(cached) " >&6
11575 else
11576 while :; do
11577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11578 /* end confdefs.h. */
11579 #include <sys/types.h>
11580 /* Check that off_t can represent 2**63 - 1 correctly.
11581 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11582 since some C++ compilers masquerading as C compilers
11583 incorrectly reject 9223372036854775807. */
11584 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11585 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11586 && LARGE_OFF_T % 2147483647 == 1)
11587 ? 1 : -1];
11588 int
11589 main ()
11590 {
11591
11592 ;
11593 return 0;
11594 }
11595 _ACEOF
11596 if ac_fn_c_try_compile "$LINENO"; then :
11597 ac_cv_sys_large_files=no; break
11598 fi
11599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11601 /* end confdefs.h. */
11602 #define _LARGE_FILES 1
11603 #include <sys/types.h>
11604 /* Check that off_t can represent 2**63 - 1 correctly.
11605 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11606 since some C++ compilers masquerading as C compilers
11607 incorrectly reject 9223372036854775807. */
11608 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11609 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11610 && LARGE_OFF_T % 2147483647 == 1)
11611 ? 1 : -1];
11612 int
11613 main ()
11614 {
11615
11616 ;
11617 return 0;
11618 }
11619 _ACEOF
11620 if ac_fn_c_try_compile "$LINENO"; then :
11621 ac_cv_sys_large_files=1; break
11622 fi
11623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11624 ac_cv_sys_large_files=unknown
11625 break
11626 done
11627 fi
11628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
11629 $as_echo "$ac_cv_sys_large_files" >&6; }
11630 case $ac_cv_sys_large_files in #(
11631 no | unknown) ;;
11632 *)
11633 cat >>confdefs.h <<_ACEOF
11634 #define _LARGE_FILES $ac_cv_sys_large_files
11635 _ACEOF
11636 ;;
11637 esac
11638 rm -rf conftest*
11639 fi
11640
11641
11642 fi
11643
11644
11645
11646 ac_checking=
11647 . ${srcdir}/../bfd/development.sh
11648 test "$development" = true && ac_checking=yes
11649 # Check whether --enable-checking was given.
11650 if test "${enable_checking+set}" = set; then :
11651 enableval=$enable_checking; case "${enableval}" in
11652 no|none) ac_checking= ;;
11653 *) ac_checking=yes ;;
11654 esac
11655 fi
11656 if test x$ac_checking != x ; then
11657
11658 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
11659
11660 fi
11661
11662 # Check whether --enable-targets was given.
11663 if test "${enable_targets+set}" = set; then :
11664 enableval=$enable_targets; case "${enableval}" in
11665 yes | "") as_fn_error $? "enable-targets option must specify target names or 'all'" "$LINENO" 5
11666 ;;
11667 no) enable_targets= ;;
11668 *) enable_targets=$enableval ;;
11669 esac
11670 fi
11671
11672
11673 # Check whether --enable-deterministic-archives was given.
11674 if test "${enable_deterministic_archives+set}" = set; then :
11675 enableval=$enable_deterministic_archives;
11676 if test "${enableval}" = no; then
11677 default_ar_deterministic=0
11678 else
11679 default_ar_deterministic=1
11680 fi
11681 else
11682 default_ar_deterministic=0
11683 fi
11684
11685
11686
11687 cat >>confdefs.h <<_ACEOF
11688 #define DEFAULT_AR_DETERMINISTIC $default_ar_deterministic
11689 _ACEOF
11690
11691
11692
11693 # Check whether --enable-default-strings-all was given.
11694 if test "${enable_default_strings_all+set}" = set; then :
11695 enableval=$enable_default_strings_all;
11696 if test "${enableval}" = no; then
11697 default_strings_all=0
11698 else
11699 default_strings_all=1
11700 fi
11701 else
11702 default_strings_all=1
11703 fi
11704
11705
11706
11707 cat >>confdefs.h <<_ACEOF
11708 #define DEFAULT_STRINGS_ALL $default_strings_all
11709 _ACEOF
11710
11711
11712
11713 # Check whether --enable-f-for-ifunc-symbols was given.
11714 if test "${enable_f_for_ifunc_symbols+set}" = set; then :
11715 enableval=$enable_f_for_ifunc_symbols;
11716 if test "${enableval}" = no; then
11717 default_f_for_ifunc=0
11718 else
11719 default_f_for_ifunc=1
11720 fi
11721 else
11722 default_f_for_ifunc=0
11723 fi
11724
11725
11726
11727 cat >>confdefs.h <<_ACEOF
11728 #define DEFAULT_F_FOR_IFUNC_SYMBOLS $default_f_for_ifunc
11729 _ACEOF
11730
11731
11732
11733 # Check whether --enable-follow-debug-links was given.
11734 if test "${enable_follow_debug_links+set}" = set; then :
11735 enableval=$enable_follow_debug_links;
11736 if test "${enableval}" = no; then
11737 default_for_follow_links=0
11738 else
11739 default_for_follow_links=1
11740 fi
11741 else
11742 default_for_follow_links=1
11743 fi
11744
11745
11746
11747 cat >>confdefs.h <<_ACEOF
11748 #define DEFAULT_FOR_FOLLOW_LINKS $default_for_follow_links
11749 _ACEOF
11750
11751
11752
11753
11754
11755
11756
11757
11758
11759
11760 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11761 if test -n "$ac_tool_prefix"; then
11762 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11763 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11765 $as_echo_n "checking for $ac_word... " >&6; }
11766 if ${ac_cv_path_PKG_CONFIG+:} false; then :
11767 $as_echo_n "(cached) " >&6
11768 else
11769 case $PKG_CONFIG in
11770 [\\/]* | ?:[\\/]*)
11771 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11772 ;;
11773 *)
11774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11775 for as_dir in $PATH
11776 do
11777 IFS=$as_save_IFS
11778 test -z "$as_dir" && as_dir=.
11779 for ac_exec_ext in '' $ac_executable_extensions; do
11780 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11781 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11783 break 2
11784 fi
11785 done
11786 done
11787 IFS=$as_save_IFS
11788
11789 ;;
11790 esac
11791 fi
11792 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11793 if test -n "$PKG_CONFIG"; then
11794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11795 $as_echo "$PKG_CONFIG" >&6; }
11796 else
11797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11798 $as_echo "no" >&6; }
11799 fi
11800
11801
11802 fi
11803 if test -z "$ac_cv_path_PKG_CONFIG"; then
11804 ac_pt_PKG_CONFIG=$PKG_CONFIG
11805 # Extract the first word of "pkg-config", so it can be a program name with args.
11806 set dummy pkg-config; ac_word=$2
11807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11808 $as_echo_n "checking for $ac_word... " >&6; }
11809 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
11810 $as_echo_n "(cached) " >&6
11811 else
11812 case $ac_pt_PKG_CONFIG in
11813 [\\/]* | ?:[\\/]*)
11814 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
11815 ;;
11816 *)
11817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11818 for as_dir in $PATH
11819 do
11820 IFS=$as_save_IFS
11821 test -z "$as_dir" && as_dir=.
11822 for ac_exec_ext in '' $ac_executable_extensions; do
11823 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11824 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11826 break 2
11827 fi
11828 done
11829 done
11830 IFS=$as_save_IFS
11831
11832 ;;
11833 esac
11834 fi
11835 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
11836 if test -n "$ac_pt_PKG_CONFIG"; then
11837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
11838 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
11839 else
11840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11841 $as_echo "no" >&6; }
11842 fi
11843
11844 if test "x$ac_pt_PKG_CONFIG" = x; then
11845 PKG_CONFIG=""
11846 else
11847 case $cross_compiling:$ac_tool_warned in
11848 yes:)
11849 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11850 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11851 ac_tool_warned=yes ;;
11852 esac
11853 PKG_CONFIG=$ac_pt_PKG_CONFIG
11854 fi
11855 else
11856 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11857 fi
11858
11859 fi
11860 if test -n "$PKG_CONFIG"; then
11861 _pkg_min_version=0.9.0
11862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
11863 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
11864 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
11865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11866 $as_echo "yes" >&6; }
11867 else
11868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11869 $as_echo "no" >&6; }
11870 PKG_CONFIG=""
11871 fi
11872 fi
11873
11874 # Handle optional debuginfod support
11875
11876 # Check whether --with-debuginfod was given.
11877 if test "${with_debuginfod+set}" = set; then :
11878 withval=$with_debuginfod;
11879 else
11880 with_debuginfod=auto
11881 fi
11882
11883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use debuginfod" >&5
11884 $as_echo_n "checking whether to use debuginfod... " >&6; }
11885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_debuginfod" >&5
11886 $as_echo "$with_debuginfod" >&6; }
11887
11888 if test "x$with_debuginfod" != xno; then
11889
11890 pkg_failed=no
11891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libdebuginfod >= 0.179" >&5
11892 $as_echo_n "checking for libdebuginfod >= 0.179... " >&6; }
11893
11894 if test -n "$DEBUGINFOD_CFLAGS"; then
11895 pkg_cv_DEBUGINFOD_CFLAGS="$DEBUGINFOD_CFLAGS"
11896 elif test -n "$PKG_CONFIG"; then
11897 if test -n "$PKG_CONFIG" && \
11898 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdebuginfod >= 0.179\""; } >&5
11899 ($PKG_CONFIG --exists --print-errors "libdebuginfod >= 0.179") 2>&5
11900 ac_status=$?
11901 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11902 test $ac_status = 0; }; then
11903 pkg_cv_DEBUGINFOD_CFLAGS=`$PKG_CONFIG --cflags "libdebuginfod >= 0.179" 2>/dev/null`
11904 test "x$?" != "x0" && pkg_failed=yes
11905 else
11906 pkg_failed=yes
11907 fi
11908 else
11909 pkg_failed=untried
11910 fi
11911 if test -n "$DEBUGINFOD_LIBS"; then
11912 pkg_cv_DEBUGINFOD_LIBS="$DEBUGINFOD_LIBS"
11913 elif test -n "$PKG_CONFIG"; then
11914 if test -n "$PKG_CONFIG" && \
11915 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdebuginfod >= 0.179\""; } >&5
11916 ($PKG_CONFIG --exists --print-errors "libdebuginfod >= 0.179") 2>&5
11917 ac_status=$?
11918 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11919 test $ac_status = 0; }; then
11920 pkg_cv_DEBUGINFOD_LIBS=`$PKG_CONFIG --libs "libdebuginfod >= 0.179" 2>/dev/null`
11921 test "x$?" != "x0" && pkg_failed=yes
11922 else
11923 pkg_failed=yes
11924 fi
11925 else
11926 pkg_failed=untried
11927 fi
11928
11929 if test $pkg_failed = no; then
11930 pkg_save_LDFLAGS="$LDFLAGS"
11931 LDFLAGS="$LDFLAGS $pkg_cv_DEBUGINFOD_LIBS"
11932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11933 /* end confdefs.h. */
11934
11935 int
11936 main ()
11937 {
11938
11939 ;
11940 return 0;
11941 }
11942 _ACEOF
11943 if ac_fn_c_try_link "$LINENO"; then :
11944
11945 else
11946 pkg_failed=yes
11947 fi
11948 rm -f core conftest.err conftest.$ac_objext \
11949 conftest$ac_exeext conftest.$ac_ext
11950 LDFLAGS=$pkg_save_LDFLAGS
11951 fi
11952
11953
11954
11955 if test $pkg_failed = yes; then
11956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11957 $as_echo "no" >&6; }
11958
11959 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11960 _pkg_short_errors_supported=yes
11961 else
11962 _pkg_short_errors_supported=no
11963 fi
11964 if test $_pkg_short_errors_supported = yes; then
11965 DEBUGINFOD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdebuginfod >= 0.179" 2>&1`
11966 else
11967 DEBUGINFOD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdebuginfod >= 0.179" 2>&1`
11968 fi
11969 # Put the nasty error message in config.log where it belongs
11970 echo "$DEBUGINFOD_PKG_ERRORS" >&5
11971
11972 if test "x$with_debuginfod" = xyes; then
11973 as_fn_error $? "\"--with-debuginfod was given, but libdebuginfod is missing or unusable.\"" "$LINENO" 5
11974 else
11975 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libdebuginfod is missing or unusable; some features may be unavailable." >&5
11976 $as_echo "$as_me: WARNING: libdebuginfod is missing or unusable; some features may be unavailable." >&2;}
11977 fi
11978 elif test $pkg_failed = untried; then
11979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11980 $as_echo "no" >&6; }
11981 if test "x$with_debuginfod" = xyes; then
11982 as_fn_error $? "\"--with-debuginfod was given, but libdebuginfod is missing or unusable.\"" "$LINENO" 5
11983 else
11984 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libdebuginfod is missing or unusable; some features may be unavailable." >&5
11985 $as_echo "$as_me: WARNING: libdebuginfod is missing or unusable; some features may be unavailable." >&2;}
11986 fi
11987 else
11988 DEBUGINFOD_CFLAGS=$pkg_cv_DEBUGINFOD_CFLAGS
11989 DEBUGINFOD_LIBS=$pkg_cv_DEBUGINFOD_LIBS
11990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11991 $as_echo "yes" >&6; }
11992
11993 $as_echo "#define HAVE_LIBDEBUGINFOD 1" >>confdefs.h
11994
11995 fi
11996 else
11997 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: debuginfod support disabled; some features may be unavailable." >&5
11998 $as_echo "$as_me: WARNING: debuginfod support disabled; some features may be unavailable." >&2;}
11999 fi
12000
12001
12002 # Check whether --enable-libctf was given.
12003 if test "${enable_libctf+set}" = set; then :
12004 enableval=$enable_libctf;
12005 case "$enableval" in
12006 yes|no) ;;
12007 *) as_fn_error $? "Argument to enable/disable libctf must be yes or no" "$LINENO" 5 ;;
12008 esac
12009
12010 else
12011 enable_libctf=yes
12012 fi
12013
12014
12015 if test "${enable_libctf}" = yes; then
12016
12017 $as_echo "#define ENABLE_LIBCTF 1" >>confdefs.h
12018
12019 fi
12020 if test "${enable_libctf}" = yes; then
12021 ENABLE_LIBCTF_TRUE=
12022 ENABLE_LIBCTF_FALSE='#'
12023 else
12024 ENABLE_LIBCTF_TRUE='#'
12025 ENABLE_LIBCTF_FALSE=
12026 fi
12027
12028
12029
12030 # Set the 'development' global.
12031 . $srcdir/../bfd/development.sh
12032
12033 # Set acp_cpp_for_build variable
12034 ac_cpp_for_build="$CC_FOR_BUILD -E $CPPFLAGS_FOR_BUILD"
12035
12036 # Default set of GCC warnings to enable.
12037 GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
12038 GCC_WARN_CFLAGS_FOR_BUILD="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
12039
12040 # Add -Wshadow if the compiler is a sufficiently recent version of GCC.
12041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12042 /* end confdefs.h. */
12043 __GNUC__
12044 _ACEOF
12045 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12046 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
12047
12048 else
12049 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow"
12050 fi
12051 rm -f conftest*
12052
12053
12054 # Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
12055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12056 /* end confdefs.h. */
12057 __GNUC__
12058 _ACEOF
12059 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12060 $EGREP "(^[0-4]$|^__GNUC__$)" >/dev/null 2>&1; then :
12061
12062 else
12063 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wstack-usage=262144"
12064 fi
12065 rm -f conftest*
12066
12067
12068 # Set WARN_WRITE_STRINGS if the compiler supports -Wwrite-strings.
12069 WARN_WRITE_STRINGS=""
12070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12071 /* end confdefs.h. */
12072 __GNUC__
12073 _ACEOF
12074 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12075 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
12076
12077 else
12078 WARN_WRITE_STRINGS="-Wwrite-strings"
12079 fi
12080 rm -f conftest*
12081
12082
12083 # Verify CC_FOR_BUILD to be compatible with warning flags
12084
12085 # Add -Wshadow if the compiler is a sufficiently recent version of GCC.
12086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12087 /* end confdefs.h. */
12088 __GNUC__
12089 _ACEOF
12090 if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
12091 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
12092
12093 else
12094 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wshadow"
12095 fi
12096 rm -f conftest*
12097
12098
12099 # Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
12100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12101 /* end confdefs.h. */
12102 __GNUC__
12103 _ACEOF
12104 if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
12105 $EGREP "(^[0-4]$|^__GNUC__$)" >/dev/null 2>&1; then :
12106
12107 else
12108 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wstack-usage=262144"
12109 fi
12110 rm -f conftest*
12111
12112
12113 # Check whether --enable-werror was given.
12114 if test "${enable_werror+set}" = set; then :
12115 enableval=$enable_werror; case "${enableval}" in
12116 yes | y) ERROR_ON_WARNING="yes" ;;
12117 no | n) ERROR_ON_WARNING="no" ;;
12118 *) as_fn_error $? "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
12119 esac
12120 fi
12121
12122
12123 # Disable -Wformat by default when using gcc on mingw
12124 case "${host}" in
12125 *-*-mingw32*)
12126 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
12127 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
12128 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wno-format"
12129 fi
12130 ;;
12131 *) ;;
12132 esac
12133
12134 # Enable -Werror by default when using gcc. Turn it off for releases.
12135 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" -a "$development" = true ; then
12136 ERROR_ON_WARNING=yes
12137 fi
12138
12139 NO_WERROR=
12140 if test "${ERROR_ON_WARNING}" = yes ; then
12141 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
12142 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Werror"
12143 NO_WERROR="-Wno-error"
12144 fi
12145
12146 if test "${GCC}" = yes ; then
12147 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
12148 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}"
12149 fi
12150
12151 # Check whether --enable-build-warnings was given.
12152 if test "${enable_build_warnings+set}" = set; then :
12153 enableval=$enable_build_warnings; case "${enableval}" in
12154 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}"
12155 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}";;
12156 no) if test "${GCC}" = yes ; then
12157 WARN_CFLAGS="-w"
12158 WARN_CFLAGS_FOR_BUILD="-w"
12159 fi;;
12160 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
12161 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}"
12162 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD} ${t}";;
12163 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
12164 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}"
12165 WARN_CFLAGS_FOR_BUILD="${t} ${GCC_WARN_CFLAGS_FOR_BUILD}";;
12166 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`
12167 WARN_CFLAGS_FOR_BUILD=`echo "${enableval}" | sed -e "s/,/ /g"`;;
12168 esac
12169 fi
12170
12171
12172 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
12173 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
12174 fi
12175
12176
12177
12178
12179
12180
12181
12182 ac_config_headers="$ac_config_headers config.h:config.in"
12183
12184
12185
12186
12187 if test -z "$target" ; then
12188 as_fn_error $? "Unrecognized target system type; please check config.sub." "$LINENO" 5
12189 fi
12190 if test -z "$host" ; then
12191 as_fn_error $? "Unrecognized host system type; please check config.sub." "$LINENO" 5
12192 fi
12193
12194 for ac_prog in 'bison -y' byacc
12195 do
12196 # Extract the first word of "$ac_prog", so it can be a program name with args.
12197 set dummy $ac_prog; ac_word=$2
12198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12199 $as_echo_n "checking for $ac_word... " >&6; }
12200 if ${ac_cv_prog_YACC+:} false; then :
12201 $as_echo_n "(cached) " >&6
12202 else
12203 if test -n "$YACC"; then
12204 ac_cv_prog_YACC="$YACC" # Let the user override the test.
12205 else
12206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12207 for as_dir in $PATH
12208 do
12209 IFS=$as_save_IFS
12210 test -z "$as_dir" && as_dir=.
12211 for ac_exec_ext in '' $ac_executable_extensions; do
12212 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12213 ac_cv_prog_YACC="$ac_prog"
12214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12215 break 2
12216 fi
12217 done
12218 done
12219 IFS=$as_save_IFS
12220
12221 fi
12222 fi
12223 YACC=$ac_cv_prog_YACC
12224 if test -n "$YACC"; then
12225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
12226 $as_echo "$YACC" >&6; }
12227 else
12228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12229 $as_echo "no" >&6; }
12230 fi
12231
12232
12233 test -n "$YACC" && break
12234 done
12235 test -n "$YACC" || YACC="yacc"
12236
12237 for ac_prog in flex lex
12238 do
12239 # Extract the first word of "$ac_prog", so it can be a program name with args.
12240 set dummy $ac_prog; ac_word=$2
12241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12242 $as_echo_n "checking for $ac_word... " >&6; }
12243 if ${ac_cv_prog_LEX+:} false; then :
12244 $as_echo_n "(cached) " >&6
12245 else
12246 if test -n "$LEX"; then
12247 ac_cv_prog_LEX="$LEX" # Let the user override the test.
12248 else
12249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12250 for as_dir in $PATH
12251 do
12252 IFS=$as_save_IFS
12253 test -z "$as_dir" && as_dir=.
12254 for ac_exec_ext in '' $ac_executable_extensions; do
12255 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12256 ac_cv_prog_LEX="$ac_prog"
12257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12258 break 2
12259 fi
12260 done
12261 done
12262 IFS=$as_save_IFS
12263
12264 fi
12265 fi
12266 LEX=$ac_cv_prog_LEX
12267 if test -n "$LEX"; then
12268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
12269 $as_echo "$LEX" >&6; }
12270 else
12271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12272 $as_echo "no" >&6; }
12273 fi
12274
12275
12276 test -n "$LEX" && break
12277 done
12278 test -n "$LEX" || LEX=":"
12279
12280 case "$LEX" in
12281 :|*"missing "*) ;;
12282 *) cat >conftest.l <<_ACEOF
12283 %%
12284 a { ECHO; }
12285 b { REJECT; }
12286 c { yymore (); }
12287 d { yyless (1); }
12288 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
12289 yyless ((input () != 0)); }
12290 f { unput (yytext[0]); }
12291 . { BEGIN INITIAL; }
12292 %%
12293 #ifdef YYTEXT_POINTER
12294 extern char *yytext;
12295 #endif
12296 int
12297 main (void)
12298 {
12299 return ! yylex () + ! yywrap ();
12300 }
12301 _ACEOF
12302 { { ac_try="$LEX conftest.l"
12303 case "(($ac_try" in
12304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12305 *) ac_try_echo=$ac_try;;
12306 esac
12307 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12308 $as_echo "$ac_try_echo"; } >&5
12309 (eval "$LEX conftest.l") 2>&5
12310 ac_status=$?
12311 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12312 test $ac_status = 0; }
12313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
12314 $as_echo_n "checking lex output file root... " >&6; }
12315 if ${ac_cv_prog_lex_root+:} false; then :
12316 $as_echo_n "(cached) " >&6
12317 else
12318
12319 if test -f lex.yy.c; then
12320 ac_cv_prog_lex_root=lex.yy
12321 elif test -f lexyy.c; then
12322 ac_cv_prog_lex_root=lexyy
12323 else
12324 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
12325 fi
12326 fi
12327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
12328 $as_echo "$ac_cv_prog_lex_root" >&6; }
12329 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
12330
12331 if test -z "${LEXLIB+set}"; then
12332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
12333 $as_echo_n "checking lex library... " >&6; }
12334 if ${ac_cv_lib_lex+:} false; then :
12335 $as_echo_n "(cached) " >&6
12336 else
12337
12338 ac_save_LIBS=$LIBS
12339 ac_cv_lib_lex='none needed'
12340 for ac_lib in '' -lfl -ll; do
12341 LIBS="$ac_lib $ac_save_LIBS"
12342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12343 /* end confdefs.h. */
12344 `cat $LEX_OUTPUT_ROOT.c`
12345 _ACEOF
12346 if ac_fn_c_try_link "$LINENO"; then :
12347 ac_cv_lib_lex=$ac_lib
12348 fi
12349 rm -f core conftest.err conftest.$ac_objext \
12350 conftest$ac_exeext conftest.$ac_ext
12351 test "$ac_cv_lib_lex" != 'none needed' && break
12352 done
12353 LIBS=$ac_save_LIBS
12354
12355 fi
12356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
12357 $as_echo "$ac_cv_lib_lex" >&6; }
12358 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
12359 fi
12360
12361
12362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
12363 $as_echo_n "checking whether yytext is a pointer... " >&6; }
12364 if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
12365 $as_echo_n "(cached) " >&6
12366 else
12367 # POSIX says lex can declare yytext either as a pointer or an array; the
12368 # default is implementation-dependent. Figure out which it is, since
12369 # not all implementations provide the %pointer and %array declarations.
12370 ac_cv_prog_lex_yytext_pointer=no
12371 ac_save_LIBS=$LIBS
12372 LIBS="$LEXLIB $ac_save_LIBS"
12373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12374 /* end confdefs.h. */
12375
12376 #define YYTEXT_POINTER 1
12377 `cat $LEX_OUTPUT_ROOT.c`
12378 _ACEOF
12379 if ac_fn_c_try_link "$LINENO"; then :
12380 ac_cv_prog_lex_yytext_pointer=yes
12381 fi
12382 rm -f core conftest.err conftest.$ac_objext \
12383 conftest$ac_exeext conftest.$ac_ext
12384 LIBS=$ac_save_LIBS
12385
12386 fi
12387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
12388 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
12389 if test $ac_cv_prog_lex_yytext_pointer = yes; then
12390
12391 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
12392
12393 fi
12394 rm -f conftest.l $LEX_OUTPUT_ROOT.c
12395 ;;
12396 esac
12397 if test "$LEX" = :; then
12398 LEX=${am_missing_run}flex
12399 fi
12400
12401 ALL_LINGUAS="bg ca da es fi fr hr id it ja pt ro ru rw sk sr sv tr uk vi zh_CN zh_TW"
12402 # If we haven't got the data from the intl directory,
12403 # assume NLS is disabled.
12404 USE_NLS=no
12405 LIBINTL=
12406 LIBINTL_DEP=
12407 INCINTL=
12408 XGETTEXT=
12409 GMSGFMT=
12410 POSUB=
12411
12412 if test -f ../intl/config.intl; then
12413 . ../intl/config.intl
12414 fi
12415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
12416 $as_echo_n "checking whether NLS is requested... " >&6; }
12417 if test x"$USE_NLS" != xyes; then
12418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12419 $as_echo "no" >&6; }
12420 else
12421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12422 $as_echo "yes" >&6; }
12423
12424 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
12425
12426
12427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
12428 $as_echo_n "checking for catalogs to be installed... " >&6; }
12429 # Look for .po and .gmo files in the source directory.
12430 CATALOGS=
12431 XLINGUAS=
12432 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
12433 # If there aren't any .gmo files the shell will give us the
12434 # literal string "../path/to/srcdir/po/*.gmo" which has to be
12435 # weeded out.
12436 case "$cat" in *\**)
12437 continue;;
12438 esac
12439 # The quadruple backslash is collapsed to a double backslash
12440 # by the backticks, then collapsed again by the double quotes,
12441 # leaving us with one backslash in the sed expression (right
12442 # before the dot that mustn't act as a wildcard).
12443 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
12444 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
12445 # The user is allowed to set LINGUAS to a list of languages to
12446 # install catalogs for. If it's empty that means "all of them."
12447 if test "x$LINGUAS" = x; then
12448 CATALOGS="$CATALOGS $cat"
12449 XLINGUAS="$XLINGUAS $lang"
12450 else
12451 case "$LINGUAS" in *$lang*)
12452 CATALOGS="$CATALOGS $cat"
12453 XLINGUAS="$XLINGUAS $lang"
12454 ;;
12455 esac
12456 fi
12457 done
12458 LINGUAS="$XLINGUAS"
12459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
12460 $as_echo "$LINGUAS" >&6; }
12461
12462
12463 DATADIRNAME=share
12464
12465 INSTOBJEXT=.mo
12466
12467 GENCAT=gencat
12468
12469 CATOBJEXT=.gmo
12470
12471 fi
12472
12473 MKINSTALLDIRS=
12474 if test -n "$ac_aux_dir"; then
12475 case "$ac_aux_dir" in
12476 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
12477 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
12478 esac
12479 fi
12480 if test -z "$MKINSTALLDIRS"; then
12481 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
12482 fi
12483
12484
12485
12486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
12487 $as_echo_n "checking whether NLS is requested... " >&6; }
12488 # Check whether --enable-nls was given.
12489 if test "${enable_nls+set}" = set; then :
12490 enableval=$enable_nls; USE_NLS=$enableval
12491 else
12492 USE_NLS=yes
12493 fi
12494
12495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
12496 $as_echo "$USE_NLS" >&6; }
12497
12498
12499
12500
12501
12502
12503 # Prepare PATH_SEPARATOR.
12504 # The user is always right.
12505 if test "${PATH_SEPARATOR+set}" != set; then
12506 echo "#! /bin/sh" >conf$$.sh
12507 echo "exit 0" >>conf$$.sh
12508 chmod +x conf$$.sh
12509 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12510 PATH_SEPARATOR=';'
12511 else
12512 PATH_SEPARATOR=:
12513 fi
12514 rm -f conf$$.sh
12515 fi
12516
12517 # Find out how to test for executable files. Don't use a zero-byte file,
12518 # as systems may use methods other than mode bits to determine executability.
12519 cat >conf$$.file <<_ASEOF
12520 #! /bin/sh
12521 exit 0
12522 _ASEOF
12523 chmod +x conf$$.file
12524 if test -x conf$$.file >/dev/null 2>&1; then
12525 ac_executable_p="test -x"
12526 else
12527 ac_executable_p="test -f"
12528 fi
12529 rm -f conf$$.file
12530
12531 # Extract the first word of "msgfmt", so it can be a program name with args.
12532 set dummy msgfmt; ac_word=$2
12533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12534 $as_echo_n "checking for $ac_word... " >&6; }
12535 if ${ac_cv_path_MSGFMT+:} false; then :
12536 $as_echo_n "(cached) " >&6
12537 else
12538 case "$MSGFMT" in
12539 [\\/]* | ?:[\\/]*)
12540 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
12541 ;;
12542 *)
12543 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12544 for ac_dir in $PATH; do
12545 IFS="$ac_save_IFS"
12546 test -z "$ac_dir" && ac_dir=.
12547 for ac_exec_ext in '' $ac_executable_extensions; do
12548 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12549 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
12550 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12551 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
12552 break 2
12553 fi
12554 fi
12555 done
12556 done
12557 IFS="$ac_save_IFS"
12558 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
12559 ;;
12560 esac
12561 fi
12562 MSGFMT="$ac_cv_path_MSGFMT"
12563 if test "$MSGFMT" != ":"; then
12564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
12565 $as_echo "$MSGFMT" >&6; }
12566 else
12567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12568 $as_echo "no" >&6; }
12569 fi
12570
12571 # Extract the first word of "gmsgfmt", so it can be a program name with args.
12572 set dummy gmsgfmt; ac_word=$2
12573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12574 $as_echo_n "checking for $ac_word... " >&6; }
12575 if ${ac_cv_path_GMSGFMT+:} false; then :
12576 $as_echo_n "(cached) " >&6
12577 else
12578 case $GMSGFMT in
12579 [\\/]* | ?:[\\/]*)
12580 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
12581 ;;
12582 *)
12583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12584 for as_dir in $PATH
12585 do
12586 IFS=$as_save_IFS
12587 test -z "$as_dir" && as_dir=.
12588 for ac_exec_ext in '' $ac_executable_extensions; do
12589 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12590 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
12591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12592 break 2
12593 fi
12594 done
12595 done
12596 IFS=$as_save_IFS
12597
12598 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
12599 ;;
12600 esac
12601 fi
12602 GMSGFMT=$ac_cv_path_GMSGFMT
12603 if test -n "$GMSGFMT"; then
12604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
12605 $as_echo "$GMSGFMT" >&6; }
12606 else
12607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12608 $as_echo "no" >&6; }
12609 fi
12610
12611
12612
12613
12614 # Prepare PATH_SEPARATOR.
12615 # The user is always right.
12616 if test "${PATH_SEPARATOR+set}" != set; then
12617 echo "#! /bin/sh" >conf$$.sh
12618 echo "exit 0" >>conf$$.sh
12619 chmod +x conf$$.sh
12620 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12621 PATH_SEPARATOR=';'
12622 else
12623 PATH_SEPARATOR=:
12624 fi
12625 rm -f conf$$.sh
12626 fi
12627
12628 # Find out how to test for executable files. Don't use a zero-byte file,
12629 # as systems may use methods other than mode bits to determine executability.
12630 cat >conf$$.file <<_ASEOF
12631 #! /bin/sh
12632 exit 0
12633 _ASEOF
12634 chmod +x conf$$.file
12635 if test -x conf$$.file >/dev/null 2>&1; then
12636 ac_executable_p="test -x"
12637 else
12638 ac_executable_p="test -f"
12639 fi
12640 rm -f conf$$.file
12641
12642 # Extract the first word of "xgettext", so it can be a program name with args.
12643 set dummy xgettext; ac_word=$2
12644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12645 $as_echo_n "checking for $ac_word... " >&6; }
12646 if ${ac_cv_path_XGETTEXT+:} false; then :
12647 $as_echo_n "(cached) " >&6
12648 else
12649 case "$XGETTEXT" in
12650 [\\/]* | ?:[\\/]*)
12651 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
12652 ;;
12653 *)
12654 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12655 for ac_dir in $PATH; do
12656 IFS="$ac_save_IFS"
12657 test -z "$ac_dir" && ac_dir=.
12658 for ac_exec_ext in '' $ac_executable_extensions; do
12659 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12660 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
12661 (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
12662 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
12663 break 2
12664 fi
12665 fi
12666 done
12667 done
12668 IFS="$ac_save_IFS"
12669 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
12670 ;;
12671 esac
12672 fi
12673 XGETTEXT="$ac_cv_path_XGETTEXT"
12674 if test "$XGETTEXT" != ":"; then
12675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
12676 $as_echo "$XGETTEXT" >&6; }
12677 else
12678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12679 $as_echo "no" >&6; }
12680 fi
12681
12682 rm -f messages.po
12683
12684
12685 # Prepare PATH_SEPARATOR.
12686 # The user is always right.
12687 if test "${PATH_SEPARATOR+set}" != set; then
12688 echo "#! /bin/sh" >conf$$.sh
12689 echo "exit 0" >>conf$$.sh
12690 chmod +x conf$$.sh
12691 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12692 PATH_SEPARATOR=';'
12693 else
12694 PATH_SEPARATOR=:
12695 fi
12696 rm -f conf$$.sh
12697 fi
12698
12699 # Find out how to test for executable files. Don't use a zero-byte file,
12700 # as systems may use methods other than mode bits to determine executability.
12701 cat >conf$$.file <<_ASEOF
12702 #! /bin/sh
12703 exit 0
12704 _ASEOF
12705 chmod +x conf$$.file
12706 if test -x conf$$.file >/dev/null 2>&1; then
12707 ac_executable_p="test -x"
12708 else
12709 ac_executable_p="test -f"
12710 fi
12711 rm -f conf$$.file
12712
12713 # Extract the first word of "msgmerge", so it can be a program name with args.
12714 set dummy msgmerge; ac_word=$2
12715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12716 $as_echo_n "checking for $ac_word... " >&6; }
12717 if ${ac_cv_path_MSGMERGE+:} false; then :
12718 $as_echo_n "(cached) " >&6
12719 else
12720 case "$MSGMERGE" in
12721 [\\/]* | ?:[\\/]*)
12722 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
12723 ;;
12724 *)
12725 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12726 for ac_dir in $PATH; do
12727 IFS="$ac_save_IFS"
12728 test -z "$ac_dir" && ac_dir=.
12729 for ac_exec_ext in '' $ac_executable_extensions; do
12730 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12731 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
12732 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
12733 break 2
12734 fi
12735 fi
12736 done
12737 done
12738 IFS="$ac_save_IFS"
12739 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
12740 ;;
12741 esac
12742 fi
12743 MSGMERGE="$ac_cv_path_MSGMERGE"
12744 if test "$MSGMERGE" != ":"; then
12745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
12746 $as_echo "$MSGMERGE" >&6; }
12747 else
12748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12749 $as_echo "no" >&6; }
12750 fi
12751
12752
12753 if test "$GMSGFMT" != ":"; then
12754 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
12755 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12756 : ;
12757 else
12758 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
12759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
12760 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
12761 GMSGFMT=":"
12762 fi
12763 fi
12764
12765 if test "$XGETTEXT" != ":"; then
12766 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
12767 (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
12768 : ;
12769 else
12770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
12771 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
12772 XGETTEXT=":"
12773 fi
12774 rm -f messages.po
12775 fi
12776
12777 ac_config_commands="$ac_config_commands default-1"
12778
12779
12780
12781
12782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
12783 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
12784 # Check whether --enable-maintainer-mode was given.
12785 if test "${enable_maintainer_mode+set}" = set; then :
12786 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
12787 else
12788 USE_MAINTAINER_MODE=no
12789 fi
12790
12791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
12792 $as_echo "$USE_MAINTAINER_MODE" >&6; }
12793 if test $USE_MAINTAINER_MODE = yes; then
12794 MAINTAINER_MODE_TRUE=
12795 MAINTAINER_MODE_FALSE='#'
12796 else
12797 MAINTAINER_MODE_TRUE='#'
12798 MAINTAINER_MODE_FALSE=
12799 fi
12800
12801 MAINT=$MAINTAINER_MODE_TRUE
12802
12803
12804 if false; then
12805 GENINSRC_NEVER_TRUE=
12806 GENINSRC_NEVER_FALSE='#'
12807 else
12808 GENINSRC_NEVER_TRUE='#'
12809 GENINSRC_NEVER_FALSE=
12810 fi
12811
12812
12813 if test -n "$EXEEXT"; then
12814
12815 $as_echo "#define HAVE_EXECUTABLE_SUFFIX 1" >>confdefs.h
12816
12817 fi
12818
12819 cat >>confdefs.h <<_ACEOF
12820 #define EXECUTABLE_SUFFIX "${EXEEXT}"
12821 _ACEOF
12822
12823
12824 # host-specific stuff:
12825
12826 HDEFINES=
12827
12828 . ${srcdir}/../bfd/configure.host
12829
12830
12831 AR=${AR-ar}
12832
12833 if test -n "$ac_tool_prefix"; then
12834 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12835 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12837 $as_echo_n "checking for $ac_word... " >&6; }
12838 if ${ac_cv_prog_RANLIB+:} false; then :
12839 $as_echo_n "(cached) " >&6
12840 else
12841 if test -n "$RANLIB"; then
12842 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12843 else
12844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12845 for as_dir in $PATH
12846 do
12847 IFS=$as_save_IFS
12848 test -z "$as_dir" && as_dir=.
12849 for ac_exec_ext in '' $ac_executable_extensions; do
12850 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12851 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12853 break 2
12854 fi
12855 done
12856 done
12857 IFS=$as_save_IFS
12858
12859 fi
12860 fi
12861 RANLIB=$ac_cv_prog_RANLIB
12862 if test -n "$RANLIB"; then
12863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12864 $as_echo "$RANLIB" >&6; }
12865 else
12866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12867 $as_echo "no" >&6; }
12868 fi
12869
12870
12871 fi
12872 if test -z "$ac_cv_prog_RANLIB"; then
12873 ac_ct_RANLIB=$RANLIB
12874 # Extract the first word of "ranlib", so it can be a program name with args.
12875 set dummy ranlib; ac_word=$2
12876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12877 $as_echo_n "checking for $ac_word... " >&6; }
12878 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
12879 $as_echo_n "(cached) " >&6
12880 else
12881 if test -n "$ac_ct_RANLIB"; then
12882 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12883 else
12884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12885 for as_dir in $PATH
12886 do
12887 IFS=$as_save_IFS
12888 test -z "$as_dir" && as_dir=.
12889 for ac_exec_ext in '' $ac_executable_extensions; do
12890 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12891 ac_cv_prog_ac_ct_RANLIB="ranlib"
12892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12893 break 2
12894 fi
12895 done
12896 done
12897 IFS=$as_save_IFS
12898
12899 fi
12900 fi
12901 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12902 if test -n "$ac_ct_RANLIB"; then
12903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12904 $as_echo "$ac_ct_RANLIB" >&6; }
12905 else
12906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12907 $as_echo "no" >&6; }
12908 fi
12909
12910 if test "x$ac_ct_RANLIB" = x; then
12911 RANLIB=":"
12912 else
12913 case $cross_compiling:$ac_tool_warned in
12914 yes:)
12915 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12916 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12917 ac_tool_warned=yes ;;
12918 esac
12919 RANLIB=$ac_ct_RANLIB
12920 fi
12921 else
12922 RANLIB="$ac_cv_prog_RANLIB"
12923 fi
12924
12925
12926
12927 # Put a plausible default for CC_FOR_BUILD in Makefile.
12928 if test -z "$CC_FOR_BUILD"; then
12929 if test "x$cross_compiling" = "xno"; then
12930 CC_FOR_BUILD='$(CC)'
12931 else
12932 CC_FOR_BUILD=gcc
12933 fi
12934 fi
12935
12936 # Also set EXEEXT_FOR_BUILD.
12937 if test "x$cross_compiling" = "xno"; then
12938 EXEEXT_FOR_BUILD='$(EXEEXT)'
12939 else
12940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build system executable suffix" >&5
12941 $as_echo_n "checking for build system executable suffix... " >&6; }
12942 if ${bfd_cv_build_exeext+:} false; then :
12943 $as_echo_n "(cached) " >&6
12944 else
12945 rm -f conftest*
12946 echo 'int main () { return 0; }' > conftest.c
12947 bfd_cv_build_exeext=
12948 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
12949 for file in conftest.*; do
12950 case $file in
12951 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
12952 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
12953 esac
12954 done
12955 rm -f conftest*
12956 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
12957 fi
12958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_build_exeext" >&5
12959 $as_echo "$bfd_cv_build_exeext" >&6; }
12960 EXEEXT_FOR_BUILD=""
12961 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
12962 fi
12963
12964
12965 DEMANGLER_NAME=c++filt
12966 case "${host}" in
12967 *-*-go32* | *-*-msdos*)
12968 DEMANGLER_NAME=cxxfilt
12969 esac
12970
12971
12972 # The cast to long int works around a bug in the HP C Compiler
12973 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12974 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12975 # This bug is HP SR number 8606223364.
12976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
12977 $as_echo_n "checking size of long... " >&6; }
12978 if ${ac_cv_sizeof_long+:} false; then :
12979 $as_echo_n "(cached) " >&6
12980 else
12981 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
12982
12983 else
12984 if test "$ac_cv_type_long" = yes; then
12985 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12986 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12987 as_fn_error 77 "cannot compute sizeof (long)
12988 See \`config.log' for more details" "$LINENO" 5; }
12989 else
12990 ac_cv_sizeof_long=0
12991 fi
12992 fi
12993
12994 fi
12995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
12996 $as_echo "$ac_cv_sizeof_long" >&6; }
12997
12998
12999
13000 cat >>confdefs.h <<_ACEOF
13001 #define SIZEOF_LONG $ac_cv_sizeof_long
13002 _ACEOF
13003
13004
13005 # The cast to long int works around a bug in the HP C Compiler
13006 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13007 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13008 # This bug is HP SR number 8606223364.
13009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
13010 $as_echo_n "checking size of long long... " >&6; }
13011 if ${ac_cv_sizeof_long_long+:} false; then :
13012 $as_echo_n "(cached) " >&6
13013 else
13014 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
13015
13016 else
13017 if test "$ac_cv_type_long_long" = yes; then
13018 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13019 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13020 as_fn_error 77 "cannot compute sizeof (long long)
13021 See \`config.log' for more details" "$LINENO" 5; }
13022 else
13023 ac_cv_sizeof_long_long=0
13024 fi
13025 fi
13026
13027 fi
13028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
13029 $as_echo "$ac_cv_sizeof_long_long" >&6; }
13030
13031
13032
13033 cat >>confdefs.h <<_ACEOF
13034 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
13035 _ACEOF
13036
13037
13038
13039 # We use headers from include/ that check various HAVE_*_H macros, thus
13040 # should ensure they are set by configure. This is true even when C99
13041 # guarantees they are available.
13042 # plugin-api.h tests HAVE_STDINT_H and HAVE_INTTYPES_H
13043 # Besides those, we need to check anything used in binutils/ not in C99.
13044 for ac_header in fcntl.h inttypes.h stdint.h sys/file.h \
13045 sys/stat.h sys/time.h sys/types.h unistd.h
13046 do :
13047 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13048 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13049 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13050 cat >>confdefs.h <<_ACEOF
13051 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13052 _ACEOF
13053
13054 fi
13055
13056 done
13057
13058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
13059 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
13060 if ${ac_cv_header_sys_wait_h+:} false; then :
13061 $as_echo_n "(cached) " >&6
13062 else
13063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13064 /* end confdefs.h. */
13065 #include <sys/types.h>
13066 #include <sys/wait.h>
13067 #ifndef WEXITSTATUS
13068 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
13069 #endif
13070 #ifndef WIFEXITED
13071 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
13072 #endif
13073
13074 int
13075 main ()
13076 {
13077 int s;
13078 wait (&s);
13079 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
13080 ;
13081 return 0;
13082 }
13083 _ACEOF
13084 if ac_fn_c_try_compile "$LINENO"; then :
13085 ac_cv_header_sys_wait_h=yes
13086 else
13087 ac_cv_header_sys_wait_h=no
13088 fi
13089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13090 fi
13091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
13092 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
13093 if test $ac_cv_header_sys_wait_h = yes; then
13094
13095 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
13096
13097 fi
13098
13099
13100
13101
13102 for ac_header in $ac_header_list
13103 do :
13104 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13105 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
13106 "
13107 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13108 cat >>confdefs.h <<_ACEOF
13109 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13110 _ACEOF
13111
13112 fi
13113
13114 done
13115
13116
13117
13118
13119
13120
13121
13122
13123 for ac_func in getpagesize
13124 do :
13125 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
13126 if test "x$ac_cv_func_getpagesize" = xyes; then :
13127 cat >>confdefs.h <<_ACEOF
13128 #define HAVE_GETPAGESIZE 1
13129 _ACEOF
13130
13131 fi
13132 done
13133
13134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
13135 $as_echo_n "checking for working mmap... " >&6; }
13136 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
13137 $as_echo_n "(cached) " >&6
13138 else
13139 if test "$cross_compiling" = yes; then :
13140 ac_cv_func_mmap_fixed_mapped=no
13141 else
13142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13143 /* end confdefs.h. */
13144 $ac_includes_default
13145 /* malloc might have been renamed as rpl_malloc. */
13146 #undef malloc
13147
13148 /* Thanks to Mike Haertel and Jim Avera for this test.
13149 Here is a matrix of mmap possibilities:
13150 mmap private not fixed
13151 mmap private fixed at somewhere currently unmapped
13152 mmap private fixed at somewhere already mapped
13153 mmap shared not fixed
13154 mmap shared fixed at somewhere currently unmapped
13155 mmap shared fixed at somewhere already mapped
13156 For private mappings, we should verify that changes cannot be read()
13157 back from the file, nor mmap's back from the file at a different
13158 address. (There have been systems where private was not correctly
13159 implemented like the infamous i386 svr4.0, and systems where the
13160 VM page cache was not coherent with the file system buffer cache
13161 like early versions of FreeBSD and possibly contemporary NetBSD.)
13162 For shared mappings, we should conversely verify that changes get
13163 propagated back to all the places they're supposed to be.
13164
13165 Grep wants private fixed already mapped.
13166 The main things grep needs to know about mmap are:
13167 * does it exist and is it safe to write into the mmap'd area
13168 * how to use it (BSD variants) */
13169
13170 #include <fcntl.h>
13171 #include <sys/mman.h>
13172
13173 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
13174 char *malloc ();
13175 #endif
13176
13177 /* This mess was copied from the GNU getpagesize.h. */
13178 #ifndef HAVE_GETPAGESIZE
13179 # ifdef _SC_PAGESIZE
13180 # define getpagesize() sysconf(_SC_PAGESIZE)
13181 # else /* no _SC_PAGESIZE */
13182 # ifdef HAVE_SYS_PARAM_H
13183 # include <sys/param.h>
13184 # ifdef EXEC_PAGESIZE
13185 # define getpagesize() EXEC_PAGESIZE
13186 # else /* no EXEC_PAGESIZE */
13187 # ifdef NBPG
13188 # define getpagesize() NBPG * CLSIZE
13189 # ifndef CLSIZE
13190 # define CLSIZE 1
13191 # endif /* no CLSIZE */
13192 # else /* no NBPG */
13193 # ifdef NBPC
13194 # define getpagesize() NBPC
13195 # else /* no NBPC */
13196 # ifdef PAGESIZE
13197 # define getpagesize() PAGESIZE
13198 # endif /* PAGESIZE */
13199 # endif /* no NBPC */
13200 # endif /* no NBPG */
13201 # endif /* no EXEC_PAGESIZE */
13202 # else /* no HAVE_SYS_PARAM_H */
13203 # define getpagesize() 8192 /* punt totally */
13204 # endif /* no HAVE_SYS_PARAM_H */
13205 # endif /* no _SC_PAGESIZE */
13206
13207 #endif /* no HAVE_GETPAGESIZE */
13208
13209 int
13210 main ()
13211 {
13212 char *data, *data2, *data3;
13213 const char *cdata2;
13214 int i, pagesize;
13215 int fd, fd2;
13216
13217 pagesize = getpagesize ();
13218
13219 /* First, make a file with some known garbage in it. */
13220 data = (char *) malloc (pagesize);
13221 if (!data)
13222 return 1;
13223 for (i = 0; i < pagesize; ++i)
13224 *(data + i) = rand ();
13225 umask (0);
13226 fd = creat ("conftest.mmap", 0600);
13227 if (fd < 0)
13228 return 2;
13229 if (write (fd, data, pagesize) != pagesize)
13230 return 3;
13231 close (fd);
13232
13233 /* Next, check that the tail of a page is zero-filled. File must have
13234 non-zero length, otherwise we risk SIGBUS for entire page. */
13235 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
13236 if (fd2 < 0)
13237 return 4;
13238 cdata2 = "";
13239 if (write (fd2, cdata2, 1) != 1)
13240 return 5;
13241 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
13242 if (data2 == MAP_FAILED)
13243 return 6;
13244 for (i = 0; i < pagesize; ++i)
13245 if (*(data2 + i))
13246 return 7;
13247 close (fd2);
13248 if (munmap (data2, pagesize))
13249 return 8;
13250
13251 /* Next, try to mmap the file at a fixed address which already has
13252 something else allocated at it. If we can, also make sure that
13253 we see the same garbage. */
13254 fd = open ("conftest.mmap", O_RDWR);
13255 if (fd < 0)
13256 return 9;
13257 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
13258 MAP_PRIVATE | MAP_FIXED, fd, 0L))
13259 return 10;
13260 for (i = 0; i < pagesize; ++i)
13261 if (*(data + i) != *(data2 + i))
13262 return 11;
13263
13264 /* Finally, make sure that changes to the mapped area do not
13265 percolate back to the file as seen by read(). (This is a bug on
13266 some variants of i386 svr4.0.) */
13267 for (i = 0; i < pagesize; ++i)
13268 *(data2 + i) = *(data2 + i) + 1;
13269 data3 = (char *) malloc (pagesize);
13270 if (!data3)
13271 return 12;
13272 if (read (fd, data3, pagesize) != pagesize)
13273 return 13;
13274 for (i = 0; i < pagesize; ++i)
13275 if (*(data + i) != *(data3 + i))
13276 return 14;
13277 close (fd);
13278 return 0;
13279 }
13280 _ACEOF
13281 if ac_fn_c_try_run "$LINENO"; then :
13282 ac_cv_func_mmap_fixed_mapped=yes
13283 else
13284 ac_cv_func_mmap_fixed_mapped=no
13285 fi
13286 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13287 conftest.$ac_objext conftest.beam conftest.$ac_ext
13288 fi
13289
13290 fi
13291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
13292 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
13293 if test $ac_cv_func_mmap_fixed_mapped = yes; then
13294
13295 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
13296
13297 fi
13298 rm -f conftest.mmap conftest.txt
13299
13300 for ac_func in getc_unlocked mkdtemp mkstemp sbrk utimensat utimes
13301 do :
13302 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13303 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13304 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13305 cat >>confdefs.h <<_ACEOF
13306 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13307 _ACEOF
13308
13309 fi
13310 done
13311
13312
13313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
13314 $as_echo_n "checking for mbstate_t... " >&6; }
13315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13316 /* end confdefs.h. */
13317 #include <wchar.h>
13318 int
13319 main ()
13320 {
13321 mbstate_t teststate;
13322 ;
13323 return 0;
13324 }
13325 _ACEOF
13326 if ac_fn_c_try_compile "$LINENO"; then :
13327 have_mbstate_t=yes
13328 else
13329 have_mbstate_t=no
13330 fi
13331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mbstate_t" >&5
13333 $as_echo "$have_mbstate_t" >&6; }
13334 if test x"$have_mbstate_t" = xyes; then
13335
13336 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
13337
13338 fi
13339
13340 # Copied from gnulib stat-time.m4.
13341 # We should just switch over to using gnulib.
13342 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim.tv_nsec" "ac_cv_member_struct_stat_st_atim_tv_nsec" "#include <sys/types.h>
13343 #include <sys/stat.h>
13344 "
13345 if test "x$ac_cv_member_struct_stat_st_atim_tv_nsec" = xyes; then :
13346
13347 cat >>confdefs.h <<_ACEOF
13348 #define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1
13349 _ACEOF
13350
13351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat.st_atim is of type struct timespec" >&5
13352 $as_echo_n "checking whether struct stat.st_atim is of type struct timespec... " >&6; }
13353 if ${ac_cv_typeof_struct_stat_st_atim_is_struct_timespec+:} false; then :
13354 $as_echo_n "(cached) " >&6
13355 else
13356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13357 /* end confdefs.h. */
13358
13359 #include <sys/types.h>
13360 #include <sys/stat.h>
13361 #if HAVE_SYS_TIME_H
13362 # include <sys/time.h>
13363 #endif
13364 #include <time.h>
13365 struct timespec ts;
13366 struct stat st;
13367
13368 int
13369 main ()
13370 {
13371
13372 st.st_atim = ts;
13373
13374 ;
13375 return 0;
13376 }
13377 _ACEOF
13378 if ac_fn_c_try_compile "$LINENO"; then :
13379 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=yes
13380 else
13381 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=no
13382 fi
13383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13384 fi
13385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&5
13386 $as_echo "$ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&6; }
13387 if test $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec = yes; then
13388
13389 $as_echo "#define TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC 1" >>confdefs.h
13390
13391 fi
13392 else
13393 ac_fn_c_check_member "$LINENO" "struct stat" "st_atimespec.tv_nsec" "ac_cv_member_struct_stat_st_atimespec_tv_nsec" "#include <sys/types.h>
13394 #include <sys/stat.h>
13395 "
13396 if test "x$ac_cv_member_struct_stat_st_atimespec_tv_nsec" = xyes; then :
13397
13398 cat >>confdefs.h <<_ACEOF
13399 #define HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC 1
13400 _ACEOF
13401
13402
13403 else
13404 ac_fn_c_check_member "$LINENO" "struct stat" "st_atimensec" "ac_cv_member_struct_stat_st_atimensec" "#include <sys/types.h>
13405 #include <sys/stat.h>
13406 "
13407 if test "x$ac_cv_member_struct_stat_st_atimensec" = xyes; then :
13408
13409 cat >>confdefs.h <<_ACEOF
13410 #define HAVE_STRUCT_STAT_ST_ATIMENSEC 1
13411 _ACEOF
13412
13413
13414 else
13415 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim.st__tim.tv_nsec" "ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" "#include <sys/types.h>
13416 #include <sys/stat.h>
13417 "
13418 if test "x$ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" = xyes; then :
13419
13420 cat >>confdefs.h <<_ACEOF
13421 #define HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC 1
13422 _ACEOF
13423
13424
13425 fi
13426
13427 fi
13428
13429 fi
13430
13431 fi
13432
13433
13434 # Some systems have frexp only in -lm, not in -lc.
13435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing frexp" >&5
13436 $as_echo_n "checking for library containing frexp... " >&6; }
13437 if ${ac_cv_search_frexp+:} false; then :
13438 $as_echo_n "(cached) " >&6
13439 else
13440 ac_func_search_save_LIBS=$LIBS
13441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13442 /* end confdefs.h. */
13443
13444 /* Override any GCC internal prototype to avoid an error.
13445 Use char because int might match the return type of a GCC
13446 builtin and then its argument prototype would still apply. */
13447 #ifdef __cplusplus
13448 extern "C"
13449 #endif
13450 char frexp ();
13451 int
13452 main ()
13453 {
13454 return frexp ();
13455 ;
13456 return 0;
13457 }
13458 _ACEOF
13459 for ac_lib in '' m; do
13460 if test -z "$ac_lib"; then
13461 ac_res="none required"
13462 else
13463 ac_res=-l$ac_lib
13464 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13465 fi
13466 if ac_fn_c_try_link "$LINENO"; then :
13467 ac_cv_search_frexp=$ac_res
13468 fi
13469 rm -f core conftest.err conftest.$ac_objext \
13470 conftest$ac_exeext
13471 if ${ac_cv_search_frexp+:} false; then :
13472 break
13473 fi
13474 done
13475 if ${ac_cv_search_frexp+:} false; then :
13476
13477 else
13478 ac_cv_search_frexp=no
13479 fi
13480 rm conftest.$ac_ext
13481 LIBS=$ac_func_search_save_LIBS
13482 fi
13483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_frexp" >&5
13484 $as_echo "$ac_cv_search_frexp" >&6; }
13485 ac_res=$ac_cv_search_frexp
13486 if test "$ac_res" != no; then :
13487 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13488
13489 fi
13490
13491
13492
13493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
13494 $as_echo_n "checking for LC_MESSAGES... " >&6; }
13495 if ${am_cv_val_LC_MESSAGES+:} false; then :
13496 $as_echo_n "(cached) " >&6
13497 else
13498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13499 /* end confdefs.h. */
13500 #include <locale.h>
13501 int
13502 main ()
13503 {
13504 return LC_MESSAGES
13505 ;
13506 return 0;
13507 }
13508 _ACEOF
13509 if ac_fn_c_try_link "$LINENO"; then :
13510 am_cv_val_LC_MESSAGES=yes
13511 else
13512 am_cv_val_LC_MESSAGES=no
13513 fi
13514 rm -f core conftest.err conftest.$ac_objext \
13515 conftest$ac_exeext conftest.$ac_ext
13516 fi
13517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
13518 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
13519 if test $am_cv_val_LC_MESSAGES = yes; then
13520
13521 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
13522
13523 fi
13524
13525
13526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a known getopt prototype in unistd.h" >&5
13527 $as_echo_n "checking for a known getopt prototype in unistd.h... " >&6; }
13528 if ${bu_cv_decl_getopt_unistd_h+:} false; then :
13529 $as_echo_n "(cached) " >&6
13530 else
13531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13532 /* end confdefs.h. */
13533 #include <unistd.h>
13534 int
13535 main ()
13536 {
13537 extern int getopt (int, char *const*, const char *);
13538 ;
13539 return 0;
13540 }
13541 _ACEOF
13542 if ac_fn_c_try_compile "$LINENO"; then :
13543 bu_cv_decl_getopt_unistd_h=yes
13544 else
13545 bu_cv_decl_getopt_unistd_h=no
13546 fi
13547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13548 fi
13549
13550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bu_cv_decl_getopt_unistd_h" >&5
13551 $as_echo "$bu_cv_decl_getopt_unistd_h" >&6; }
13552 if test $bu_cv_decl_getopt_unistd_h = yes; then
13553
13554 $as_echo "#define HAVE_DECL_GETOPT 1" >>confdefs.h
13555
13556 fi
13557
13558 # Under Next 3.2 <utime.h> apparently does not define struct utimbuf
13559 # by default.
13560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utime.h" >&5
13561 $as_echo_n "checking for utime.h... " >&6; }
13562 if ${bu_cv_header_utime_h+:} false; then :
13563 $as_echo_n "(cached) " >&6
13564 else
13565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13566 /* end confdefs.h. */
13567 #include <sys/types.h>
13568 #ifdef HAVE_TIME_H
13569 #include <time.h>
13570 #endif
13571 #include <utime.h>
13572 int
13573 main ()
13574 {
13575 struct utimbuf s;
13576 ;
13577 return 0;
13578 }
13579 _ACEOF
13580 if ac_fn_c_try_compile "$LINENO"; then :
13581 bu_cv_header_utime_h=yes
13582 else
13583 bu_cv_header_utime_h=no
13584 fi
13585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13586 fi
13587
13588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bu_cv_header_utime_h" >&5
13589 $as_echo "$bu_cv_header_utime_h" >&6; }
13590 if test $bu_cv_header_utime_h = yes; then
13591
13592 $as_echo "#define HAVE_GOOD_UTIME_H 1" >>confdefs.h
13593
13594 fi
13595
13596 ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
13597 if test "x$ac_cv_have_decl_asprintf" = xyes; then :
13598 ac_have_decl=1
13599 else
13600 ac_have_decl=0
13601 fi
13602
13603 cat >>confdefs.h <<_ACEOF
13604 #define HAVE_DECL_ASPRINTF $ac_have_decl
13605 _ACEOF
13606 ac_fn_c_check_decl "$LINENO" "environ" "ac_cv_have_decl_environ" "$ac_includes_default"
13607 if test "x$ac_cv_have_decl_environ" = xyes; then :
13608 ac_have_decl=1
13609 else
13610 ac_have_decl=0
13611 fi
13612
13613 cat >>confdefs.h <<_ACEOF
13614 #define HAVE_DECL_ENVIRON $ac_have_decl
13615 _ACEOF
13616 ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
13617 if test "x$ac_cv_have_decl_getc_unlocked" = xyes; then :
13618 ac_have_decl=1
13619 else
13620 ac_have_decl=0
13621 fi
13622
13623 cat >>confdefs.h <<_ACEOF
13624 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
13625 _ACEOF
13626 ac_fn_c_check_decl "$LINENO" "sbrk" "ac_cv_have_decl_sbrk" "$ac_includes_default"
13627 if test "x$ac_cv_have_decl_sbrk" = xyes; then :
13628 ac_have_decl=1
13629 else
13630 ac_have_decl=0
13631 fi
13632
13633 cat >>confdefs.h <<_ACEOF
13634 #define HAVE_DECL_SBRK $ac_have_decl
13635 _ACEOF
13636 ac_fn_c_check_decl "$LINENO" "stpcpy" "ac_cv_have_decl_stpcpy" "$ac_includes_default"
13637 if test "x$ac_cv_have_decl_stpcpy" = xyes; then :
13638 ac_have_decl=1
13639 else
13640 ac_have_decl=0
13641 fi
13642
13643 cat >>confdefs.h <<_ACEOF
13644 #define HAVE_DECL_STPCPY $ac_have_decl
13645 _ACEOF
13646 ac_fn_c_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default"
13647 if test "x$ac_cv_have_decl_strnlen" = xyes; then :
13648 ac_have_decl=1
13649 else
13650 ac_have_decl=0
13651 fi
13652
13653 cat >>confdefs.h <<_ACEOF
13654 #define HAVE_DECL_STRNLEN $ac_have_decl
13655 _ACEOF
13656
13657
13658 # Link in zlib if we can. This allows us to read compressed debug
13659 # sections. This is used only by readelf.c (objdump uses bfd for
13660 # reading compressed sections).
13661
13662 # Use the system's zlib library.
13663 zlibdir="-L\$(top_builddir)/../zlib"
13664 zlibinc="-I\$(top_srcdir)/../zlib"
13665
13666 # Check whether --with-system-zlib was given.
13667 if test "${with_system_zlib+set}" = set; then :
13668 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
13669 zlibdir=
13670 zlibinc=
13671 fi
13672
13673 fi
13674
13675
13676
13677
13678
13679
13680 case "${host}" in
13681 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
13682
13683 $as_echo "#define USE_BINARY_FOPEN 1" >>confdefs.h
13684 ;;
13685 esac
13686
13687 # target-specific stuff:
13688
13689 # Canonicalize the secondary target names.
13690 if test -n "$enable_targets"; then
13691 for targ in `echo $enable_targets | sed 's/,/ /g'`
13692 do
13693 result=`$ac_config_sub $targ 2>/dev/null`
13694 if test -n "$result"; then
13695 canon_targets="$canon_targets $result"
13696 else
13697 # Allow targets that config.sub doesn't recognize, like "all".
13698 canon_targets="$canon_targets $targ"
13699 fi
13700 done
13701 fi
13702
13703 ac_fn_c_check_header_mongrel "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default"
13704 if test "x$ac_cv_header_iconv_h" = xyes; then :
13705
13706 fi
13707
13708
13709
13710 if test "X$prefix" = "XNONE"; then
13711 acl_final_prefix="$ac_default_prefix"
13712 else
13713 acl_final_prefix="$prefix"
13714 fi
13715 if test "X$exec_prefix" = "XNONE"; then
13716 acl_final_exec_prefix='${prefix}'
13717 else
13718 acl_final_exec_prefix="$exec_prefix"
13719 fi
13720 acl_save_prefix="$prefix"
13721 prefix="$acl_final_prefix"
13722 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
13723 prefix="$acl_save_prefix"
13724
13725
13726 # Check whether --with-gnu-ld was given.
13727 if test "${with_gnu_ld+set}" = set; then :
13728 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13729 else
13730 with_gnu_ld=no
13731 fi
13732
13733 # Prepare PATH_SEPARATOR.
13734 # The user is always right.
13735 if test "${PATH_SEPARATOR+set}" != set; then
13736 echo "#! /bin/sh" >conf$$.sh
13737 echo "exit 0" >>conf$$.sh
13738 chmod +x conf$$.sh
13739 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13740 PATH_SEPARATOR=';'
13741 else
13742 PATH_SEPARATOR=:
13743 fi
13744 rm -f conf$$.sh
13745 fi
13746 ac_prog=ld
13747 if test "$GCC" = yes; then
13748 # Check if gcc -print-prog-name=ld gives a path.
13749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
13750 $as_echo_n "checking for ld used by GCC... " >&6; }
13751 case $host in
13752 *-*-mingw*)
13753 # gcc leaves a trailing carriage return which upsets mingw
13754 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13755 *)
13756 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13757 esac
13758 case $ac_prog in
13759 # Accept absolute paths.
13760 [\\/]* | [A-Za-z]:[\\/]*)
13761 re_direlt='/[^/][^/]*/\.\./'
13762 # Canonicalize the path of ld
13763 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
13764 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
13765 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
13766 done
13767 test -z "$LD" && LD="$ac_prog"
13768 ;;
13769 "")
13770 # If it fails, then pretend we aren't using GCC.
13771 ac_prog=ld
13772 ;;
13773 *)
13774 # If it is relative, then search for the first ld in PATH.
13775 with_gnu_ld=unknown
13776 ;;
13777 esac
13778 elif test "$with_gnu_ld" = yes; then
13779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13780 $as_echo_n "checking for GNU ld... " >&6; }
13781 else
13782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13783 $as_echo_n "checking for non-GNU ld... " >&6; }
13784 fi
13785 if ${acl_cv_path_LD+:} false; then :
13786 $as_echo_n "(cached) " >&6
13787 else
13788 if test -z "$LD"; then
13789 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
13790 for ac_dir in $PATH; do
13791 test -z "$ac_dir" && ac_dir=.
13792 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13793 acl_cv_path_LD="$ac_dir/$ac_prog"
13794 # Check to see if the program is GNU ld. I'd rather use --version,
13795 # but apparently some GNU ld's only accept -v.
13796 # Break only if it was the GNU/non-GNU ld that we prefer.
13797 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
13798 test "$with_gnu_ld" != no && break
13799 else
13800 test "$with_gnu_ld" != yes && break
13801 fi
13802 fi
13803 done
13804 IFS="$ac_save_ifs"
13805 else
13806 acl_cv_path_LD="$LD" # Let the user override the test with a path.
13807 fi
13808 fi
13809
13810 LD="$acl_cv_path_LD"
13811 if test -n "$LD"; then
13812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13813 $as_echo "$LD" >&6; }
13814 else
13815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13816 $as_echo "no" >&6; }
13817 fi
13818 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13820 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13821 if ${acl_cv_prog_gnu_ld+:} false; then :
13822 $as_echo_n "(cached) " >&6
13823 else
13824 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
13825 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
13826 acl_cv_prog_gnu_ld=yes
13827 else
13828 acl_cv_prog_gnu_ld=no
13829 fi
13830 fi
13831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
13832 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
13833 with_gnu_ld=$acl_cv_prog_gnu_ld
13834
13835
13836
13837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
13838 $as_echo_n "checking for shared library run path origin... " >&6; }
13839 if ${acl_cv_rpath+:} false; then :
13840 $as_echo_n "(cached) " >&6
13841 else
13842
13843 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
13844 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
13845 . ./conftest.sh
13846 rm -f ./conftest.sh
13847 acl_cv_rpath=done
13848
13849 fi
13850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
13851 $as_echo "$acl_cv_rpath" >&6; }
13852 wl="$acl_cv_wl"
13853 libext="$acl_cv_libext"
13854 shlibext="$acl_cv_shlibext"
13855 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
13856 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
13857 hardcode_direct="$acl_cv_hardcode_direct"
13858 hardcode_minus_L="$acl_cv_hardcode_minus_L"
13859 # Check whether --enable-rpath was given.
13860 if test "${enable_rpath+set}" = set; then :
13861 enableval=$enable_rpath; :
13862 else
13863 enable_rpath=yes
13864 fi
13865
13866
13867
13868
13869
13870
13871
13872
13873 use_additional=yes
13874
13875 acl_save_prefix="$prefix"
13876 prefix="$acl_final_prefix"
13877 acl_save_exec_prefix="$exec_prefix"
13878 exec_prefix="$acl_final_exec_prefix"
13879
13880 eval additional_includedir=\"$includedir\"
13881 eval additional_libdir=\"$libdir\"
13882
13883 exec_prefix="$acl_save_exec_prefix"
13884 prefix="$acl_save_prefix"
13885
13886
13887 # Check whether --with-libiconv-prefix was given.
13888 if test "${with_libiconv_prefix+set}" = set; then :
13889 withval=$with_libiconv_prefix;
13890 if test "X$withval" = "Xno"; then
13891 use_additional=no
13892 else
13893 if test "X$withval" = "X"; then
13894
13895 acl_save_prefix="$prefix"
13896 prefix="$acl_final_prefix"
13897 acl_save_exec_prefix="$exec_prefix"
13898 exec_prefix="$acl_final_exec_prefix"
13899
13900 eval additional_includedir=\"$includedir\"
13901 eval additional_libdir=\"$libdir\"
13902
13903 exec_prefix="$acl_save_exec_prefix"
13904 prefix="$acl_save_prefix"
13905
13906 else
13907 additional_includedir="$withval/include"
13908 additional_libdir="$withval/lib"
13909 fi
13910 fi
13911
13912 fi
13913
13914
13915 # Check whether --with-libiconv-type was given.
13916 if test "${with_libiconv_type+set}" = set; then :
13917 withval=$with_libiconv_type; with_libiconv_type=$withval
13918 else
13919 with_libiconv_type=auto
13920 fi
13921
13922 lib_type=`eval echo \$with_libiconv_type`
13923
13924 LIBICONV=
13925 LTLIBICONV=
13926 INCICONV=
13927 rpathdirs=
13928 ltrpathdirs=
13929 names_already_handled=
13930 names_next_round='iconv '
13931 while test -n "$names_next_round"; do
13932 names_this_round="$names_next_round"
13933 names_next_round=
13934 for name in $names_this_round; do
13935 already_handled=
13936 for n in $names_already_handled; do
13937 if test "$n" = "$name"; then
13938 already_handled=yes
13939 break
13940 fi
13941 done
13942 if test -z "$already_handled"; then
13943 names_already_handled="$names_already_handled $name"
13944 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
13945 eval value=\"\$HAVE_LIB$uppername\"
13946 if test -n "$value"; then
13947 if test "$value" = yes; then
13948 eval value=\"\$LIB$uppername\"
13949 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
13950 eval value=\"\$LTLIB$uppername\"
13951 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
13952 else
13953 :
13954 fi
13955 else
13956 found_dir=
13957 found_la=
13958 found_so=
13959 found_a=
13960 if test $use_additional = yes; then
13961 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
13962 found_dir="$additional_libdir"
13963 found_so="$additional_libdir/lib$name.$shlibext"
13964 if test -f "$additional_libdir/lib$name.la"; then
13965 found_la="$additional_libdir/lib$name.la"
13966 fi
13967 elif test x$lib_type != xshared; then
13968 if test -f "$additional_libdir/lib$name.$libext"; then
13969 found_dir="$additional_libdir"
13970 found_a="$additional_libdir/lib$name.$libext"
13971 if test -f "$additional_libdir/lib$name.la"; then
13972 found_la="$additional_libdir/lib$name.la"
13973 fi
13974 fi
13975 fi
13976 fi
13977 if test "X$found_dir" = "X"; then
13978 for x in $LDFLAGS $LTLIBICONV; do
13979
13980 acl_save_prefix="$prefix"
13981 prefix="$acl_final_prefix"
13982 acl_save_exec_prefix="$exec_prefix"
13983 exec_prefix="$acl_final_exec_prefix"
13984 eval x=\"$x\"
13985 exec_prefix="$acl_save_exec_prefix"
13986 prefix="$acl_save_prefix"
13987
13988 case "$x" in
13989 -L*)
13990 dir=`echo "X$x" | sed -e 's/^X-L//'`
13991 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
13992 found_dir="$dir"
13993 found_so="$dir/lib$name.$shlibext"
13994 if test -f "$dir/lib$name.la"; then
13995 found_la="$dir/lib$name.la"
13996 fi
13997 elif test x$lib_type != xshared; then
13998 if test -f "$dir/lib$name.$libext"; then
13999 found_dir="$dir"
14000 found_a="$dir/lib$name.$libext"
14001 if test -f "$dir/lib$name.la"; then
14002 found_la="$dir/lib$name.la"
14003 fi
14004 fi
14005 fi
14006 ;;
14007 esac
14008 if test "X$found_dir" != "X"; then
14009 break
14010 fi
14011 done
14012 fi
14013 if test "X$found_dir" != "X"; then
14014 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
14015 if test "X$found_so" != "X"; then
14016 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
14017 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14018 else
14019 haveit=
14020 for x in $ltrpathdirs; do
14021 if test "X$x" = "X$found_dir"; then
14022 haveit=yes
14023 break
14024 fi
14025 done
14026 if test -z "$haveit"; then
14027 ltrpathdirs="$ltrpathdirs $found_dir"
14028 fi
14029 if test "$hardcode_direct" = yes; then
14030 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14031 else
14032 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
14033 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14034 haveit=
14035 for x in $rpathdirs; do
14036 if test "X$x" = "X$found_dir"; then
14037 haveit=yes
14038 break
14039 fi
14040 done
14041 if test -z "$haveit"; then
14042 rpathdirs="$rpathdirs $found_dir"
14043 fi
14044 else
14045 haveit=
14046 for x in $LDFLAGS $LIBICONV; do
14047
14048 acl_save_prefix="$prefix"
14049 prefix="$acl_final_prefix"
14050 acl_save_exec_prefix="$exec_prefix"
14051 exec_prefix="$acl_final_exec_prefix"
14052 eval x=\"$x\"
14053 exec_prefix="$acl_save_exec_prefix"
14054 prefix="$acl_save_prefix"
14055
14056 if test "X$x" = "X-L$found_dir"; then
14057 haveit=yes
14058 break
14059 fi
14060 done
14061 if test -z "$haveit"; then
14062 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
14063 fi
14064 if test "$hardcode_minus_L" != no; then
14065 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14066 else
14067 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
14068 fi
14069 fi
14070 fi
14071 fi
14072 else
14073 if test "X$found_a" != "X"; then
14074 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
14075 else
14076 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
14077 fi
14078 fi
14079 additional_includedir=
14080 case "$found_dir" in
14081 */lib | */lib/)
14082 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
14083 additional_includedir="$basedir/include"
14084 ;;
14085 esac
14086 if test "X$additional_includedir" != "X"; then
14087 if test "X$additional_includedir" != "X/usr/include"; then
14088 haveit=
14089 if test "X$additional_includedir" = "X/usr/local/include"; then
14090 if test -n "$GCC"; then
14091 case $host_os in
14092 linux*) haveit=yes;;
14093 esac
14094 fi
14095 fi
14096 if test -z "$haveit"; then
14097 for x in $CPPFLAGS $INCICONV; do
14098
14099 acl_save_prefix="$prefix"
14100 prefix="$acl_final_prefix"
14101 acl_save_exec_prefix="$exec_prefix"
14102 exec_prefix="$acl_final_exec_prefix"
14103 eval x=\"$x\"
14104 exec_prefix="$acl_save_exec_prefix"
14105 prefix="$acl_save_prefix"
14106
14107 if test "X$x" = "X-I$additional_includedir"; then
14108 haveit=yes
14109 break
14110 fi
14111 done
14112 if test -z "$haveit"; then
14113 if test -d "$additional_includedir"; then
14114 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
14115 fi
14116 fi
14117 fi
14118 fi
14119 fi
14120 if test -n "$found_la"; then
14121 save_libdir="$libdir"
14122 case "$found_la" in
14123 */* | *\\*) . "$found_la" ;;
14124 *) . "./$found_la" ;;
14125 esac
14126 libdir="$save_libdir"
14127 for dep in $dependency_libs; do
14128 case "$dep" in
14129 -L*)
14130 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
14131 if test "X$additional_libdir" != "X/usr/lib"; then
14132 haveit=
14133 if test "X$additional_libdir" = "X/usr/local/lib"; then
14134 if test -n "$GCC"; then
14135 case $host_os in
14136 linux*) haveit=yes;;
14137 esac
14138 fi
14139 fi
14140 if test -z "$haveit"; then
14141 haveit=
14142 for x in $LDFLAGS $LIBICONV; do
14143
14144 acl_save_prefix="$prefix"
14145 prefix="$acl_final_prefix"
14146 acl_save_exec_prefix="$exec_prefix"
14147 exec_prefix="$acl_final_exec_prefix"
14148 eval x=\"$x\"
14149 exec_prefix="$acl_save_exec_prefix"
14150 prefix="$acl_save_prefix"
14151
14152 if test "X$x" = "X-L$additional_libdir"; then
14153 haveit=yes
14154 break
14155 fi
14156 done
14157 if test -z "$haveit"; then
14158 if test -d "$additional_libdir"; then
14159 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
14160 fi
14161 fi
14162 haveit=
14163 for x in $LDFLAGS $LTLIBICONV; do
14164
14165 acl_save_prefix="$prefix"
14166 prefix="$acl_final_prefix"
14167 acl_save_exec_prefix="$exec_prefix"
14168 exec_prefix="$acl_final_exec_prefix"
14169 eval x=\"$x\"
14170 exec_prefix="$acl_save_exec_prefix"
14171 prefix="$acl_save_prefix"
14172
14173 if test "X$x" = "X-L$additional_libdir"; then
14174 haveit=yes
14175 break
14176 fi
14177 done
14178 if test -z "$haveit"; then
14179 if test -d "$additional_libdir"; then
14180 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
14181 fi
14182 fi
14183 fi
14184 fi
14185 ;;
14186 -R*)
14187 dir=`echo "X$dep" | sed -e 's/^X-R//'`
14188 if test "$enable_rpath" != no; then
14189 haveit=
14190 for x in $rpathdirs; do
14191 if test "X$x" = "X$dir"; then
14192 haveit=yes
14193 break
14194 fi
14195 done
14196 if test -z "$haveit"; then
14197 rpathdirs="$rpathdirs $dir"
14198 fi
14199 haveit=
14200 for x in $ltrpathdirs; do
14201 if test "X$x" = "X$dir"; then
14202 haveit=yes
14203 break
14204 fi
14205 done
14206 if test -z "$haveit"; then
14207 ltrpathdirs="$ltrpathdirs $dir"
14208 fi
14209 fi
14210 ;;
14211 -l*)
14212 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14213 ;;
14214 *.la)
14215 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14216 ;;
14217 *)
14218 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
14219 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
14220 ;;
14221 esac
14222 done
14223 fi
14224 else
14225 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
14226 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
14227 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
14228 else
14229 LIBICONV="${LIBICONV}${LIBICONV:+ }-l:lib$name.$libext"
14230 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l:lib$name.$libext"
14231 fi
14232 fi
14233 fi
14234 fi
14235 done
14236 done
14237 if test "X$rpathdirs" != "X"; then
14238 if test -n "$hardcode_libdir_separator"; then
14239 alldirs=
14240 for found_dir in $rpathdirs; do
14241 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
14242 done
14243 acl_save_libdir="$libdir"
14244 libdir="$alldirs"
14245 eval flag=\"$hardcode_libdir_flag_spec\"
14246 libdir="$acl_save_libdir"
14247 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
14248 else
14249 for found_dir in $rpathdirs; do
14250 acl_save_libdir="$libdir"
14251 libdir="$found_dir"
14252 eval flag=\"$hardcode_libdir_flag_spec\"
14253 libdir="$acl_save_libdir"
14254 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
14255 done
14256 fi
14257 fi
14258 if test "X$ltrpathdirs" != "X"; then
14259 for found_dir in $ltrpathdirs; do
14260 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
14261 done
14262 fi
14263
14264
14265
14266
14267
14268
14269
14270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
14271 $as_echo_n "checking for iconv... " >&6; }
14272 if ${am_cv_func_iconv+:} false; then :
14273 $as_echo_n "(cached) " >&6
14274 else
14275
14276 am_cv_func_iconv="no, consider installing GNU libiconv"
14277 am_cv_lib_iconv=no
14278 am_save_CPPFLAGS="$CPPFLAGS"
14279 CPPFLAGS="$CPPFLAGS $INCICONV"
14280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14281 /* end confdefs.h. */
14282 #include <stdlib.h>
14283 #include <iconv.h>
14284 int
14285 main ()
14286 {
14287 iconv_t cd = iconv_open("","");
14288 iconv(cd,NULL,NULL,NULL,NULL);
14289 iconv_close(cd);
14290 ;
14291 return 0;
14292 }
14293 _ACEOF
14294 if ac_fn_c_try_link "$LINENO"; then :
14295 am_cv_func_iconv=yes
14296 fi
14297 rm -f core conftest.err conftest.$ac_objext \
14298 conftest$ac_exeext conftest.$ac_ext
14299 CPPFLAGS="$am_save_CPPFLAGS"
14300
14301 if test "$am_cv_func_iconv" != yes && test -d ../libiconv; then
14302 for _libs in .libs _libs; do
14303 am_save_CPPFLAGS="$CPPFLAGS"
14304 am_save_LIBS="$LIBS"
14305 CPPFLAGS="$CPPFLAGS -I../libiconv/include"
14306 LIBS="$LIBS ../libiconv/lib/$_libs/libiconv.a"
14307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14308 /* end confdefs.h. */
14309 #include <stdlib.h>
14310 #include <iconv.h>
14311 int
14312 main ()
14313 {
14314 iconv_t cd = iconv_open("","");
14315 iconv(cd,NULL,NULL,NULL,NULL);
14316 iconv_close(cd);
14317 ;
14318 return 0;
14319 }
14320 _ACEOF
14321 if ac_fn_c_try_link "$LINENO"; then :
14322 INCICONV="-I../libiconv/include"
14323 LIBICONV='${top_builddir}'/../libiconv/lib/$_libs/libiconv.a
14324 LTLIBICONV='${top_builddir}'/../libiconv/lib/libiconv.la
14325 am_cv_lib_iconv=yes
14326 am_cv_func_iconv=yes
14327 fi
14328 rm -f core conftest.err conftest.$ac_objext \
14329 conftest$ac_exeext conftest.$ac_ext
14330 CPPFLAGS="$am_save_CPPFLAGS"
14331 LIBS="$am_save_LIBS"
14332 if test "$am_cv_func_iconv" = "yes"; then
14333 break
14334 fi
14335 done
14336 fi
14337
14338 if test "$am_cv_func_iconv" != yes; then
14339 am_save_CPPFLAGS="$CPPFLAGS"
14340 am_save_LIBS="$LIBS"
14341 CPPFLAGS="$CPPFLAGS $INCICONV"
14342 LIBS="$LIBS $LIBICONV"
14343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14344 /* end confdefs.h. */
14345 #include <stdlib.h>
14346 #include <iconv.h>
14347 int
14348 main ()
14349 {
14350 iconv_t cd = iconv_open("","");
14351 iconv(cd,NULL,NULL,NULL,NULL);
14352 iconv_close(cd);
14353 ;
14354 return 0;
14355 }
14356 _ACEOF
14357 if ac_fn_c_try_link "$LINENO"; then :
14358 am_cv_lib_iconv=yes
14359 am_cv_func_iconv=yes
14360 fi
14361 rm -f core conftest.err conftest.$ac_objext \
14362 conftest$ac_exeext conftest.$ac_ext
14363 CPPFLAGS="$am_save_CPPFLAGS"
14364 LIBS="$am_save_LIBS"
14365 fi
14366
14367 fi
14368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
14369 $as_echo "$am_cv_func_iconv" >&6; }
14370 if test "$am_cv_func_iconv" = yes; then
14371
14372 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
14373
14374 fi
14375 if test "$am_cv_lib_iconv" = yes; then
14376
14377 for element in $INCICONV; do
14378 haveit=
14379 for x in $CPPFLAGS; do
14380
14381 acl_save_prefix="$prefix"
14382 prefix="$acl_final_prefix"
14383 acl_save_exec_prefix="$exec_prefix"
14384 exec_prefix="$acl_final_exec_prefix"
14385 eval x=\"$x\"
14386 exec_prefix="$acl_save_exec_prefix"
14387 prefix="$acl_save_prefix"
14388
14389 if test "X$x" = "X$element"; then
14390 haveit=yes
14391 break
14392 fi
14393 done
14394 if test -z "$haveit"; then
14395 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
14396 fi
14397 done
14398
14399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
14400 $as_echo_n "checking how to link with libiconv... " >&6; }
14401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
14402 $as_echo "$LIBICONV" >&6; }
14403 else
14404 LIBICONV=
14405 LTLIBICONV=
14406 fi
14407
14408
14409
14410 if test "$am_cv_func_iconv" = yes; then
14411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
14412 $as_echo_n "checking for iconv declaration... " >&6; }
14413 if ${am_cv_proto_iconv+:} false; then :
14414 $as_echo_n "(cached) " >&6
14415 else
14416
14417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14418 /* end confdefs.h. */
14419
14420 #include <stdlib.h>
14421 #include <iconv.h>
14422 extern
14423 #ifdef __cplusplus
14424 "C"
14425 #endif
14426 #if defined(__STDC__) || defined(__cplusplus)
14427 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
14428 #else
14429 size_t iconv();
14430 #endif
14431
14432 int
14433 main ()
14434 {
14435
14436 ;
14437 return 0;
14438 }
14439 _ACEOF
14440 if ac_fn_c_try_compile "$LINENO"; then :
14441 am_cv_proto_iconv_arg1=""
14442 else
14443 am_cv_proto_iconv_arg1="const"
14444 fi
14445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14446 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
14447 fi
14448
14449 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
14450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
14451 }$am_cv_proto_iconv" >&5
14452 $as_echo "${ac_t:-
14453 }$am_cv_proto_iconv" >&6; }
14454
14455 cat >>confdefs.h <<_ACEOF
14456 #define ICONV_CONST $am_cv_proto_iconv_arg1
14457 _ACEOF
14458
14459 fi
14460
14461
14462 all_targets=false
14463 BUILD_SRCONV=
14464 BUILD_DLLTOOL=
14465 DLLTOOL_DEFS=
14466 DLLTOOL_DEFAULT=
14467 BUILD_WINDRES=
14468 BUILD_WINDMC=
14469 BUILD_DLLWRAP=
14470 BUILD_MISC=
14471 BUILD_INSTALL_MISC=
14472 OBJDUMP_DEFS=
14473 OBJDUMP_PRIVATE_VECTORS=
14474 OBJDUMP_PRIVATE_OFILES=
14475 od_vectors=
14476
14477 for targ in $target $canon_targets
14478 do
14479 if test "x$targ" = "xall"; then
14480 all_targets=true
14481 BUILD_SRCONV='$(SRCONV_PROG)'
14482 BUILD_MISC="${BUILD_MISC} "'bin2c$(EXEEXT_FOR_BUILD)'
14483 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
14484 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
14485 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
14486 if test -z "$DLLTOOL_DEFAULT"; then
14487 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386"
14488 fi
14489 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
14490 BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
14491 od_vectors="$od_vectors objdump_private_desc_xcoff"
14492 else
14493 case $targ in
14494 *-*-hms*) BUILD_SRCONV='$(SRCONV_PROG)' ;;
14495 esac
14496
14497 case $targ in
14498 arm-wince-pe* | arm-*-wince | arm*-*-cegcc* | arm*-*-mingw32ce*)
14499 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
14500 if test -z "$DLLTOOL_DEFAULT"; then
14501 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM_WINCE"
14502 fi
14503 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM_WINCE -DDLLTOOL_ARM"
14504 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
14505 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
14506 ;;
14507 arm-*-pe*)
14508 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
14509 if test -z "$DLLTOOL_DEFAULT"; then
14510 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM"
14511 fi
14512 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM"
14513 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
14514 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
14515 ;;
14516 x86_64-*-mingw* | x86_64-*-cygwin*)
14517 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
14518 if test -z "$DLLTOOL_DEFAULT"; then
14519 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MX86_64"
14520 fi
14521 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MX86_64"
14522 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
14523 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
14524 BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
14525 ;;
14526 i[3-7]86-*-pe* | i[3-7]86-*-cygwin* | i[3-7]86-*-mingw32**)
14527 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
14528 if test -z "$DLLTOOL_DEFAULT"; then
14529 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386"
14530 fi
14531 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
14532 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
14533 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
14534 BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
14535 ;;
14536 i[3-7]86-*-interix)
14537 BUILD_DLLTOOL='$(DLLTOOL_PROG)'
14538 if test -z "$DLLTOOL_DEFAULT"; then
14539 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386"
14540 fi
14541 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
14542 ;;
14543 powerpc*-aix5.[01])
14544 ;;
14545 powerpc*-aix[5-9].*)
14546 OBJDUMP_DEFS="-DAIX_WEAK_SUPPORT"
14547 ;;
14548 powerpc*-*-linux* | powerpc*-*-elf* | powerpc*-*-eabi*)
14549 case "$BUILD_INSTALL_MISC" in
14550 *embedspu*) ;;
14551 *) BUILD_INSTALL_MISC="${BUILD_INSTALL_MISC} embedspu"
14552 esac
14553 ;;
14554 sh*-*-pe)
14555 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
14556 if test -z "$DLLTOOL_DEFAULT"; then
14557 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_SH"
14558 fi
14559 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_SH"
14560 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
14561 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
14562 ;;
14563 spu-*-*)
14564 BUILD_MISC="${BUILD_MISC} "'bin2c$(EXEEXT_FOR_BUILD)'
14565 ;;
14566 mips*-*-pe)
14567 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
14568 if test -z "$DLLTOOL_DEFAULT"; then
14569 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MIPS"
14570 fi
14571 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MIPS"
14572 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
14573 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
14574 ;;
14575 mcore-*-pe)
14576 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
14577 if test -z "$DLLTOOL_DEFAULT"; then
14578 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MCORE"
14579 fi
14580 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MCORE"
14581 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
14582 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
14583 ;;
14584 mcore-*-elf)
14585 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
14586 if test -z "$DLLTOOL_DEFAULT"; then
14587 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MCORE_ELF"
14588 fi
14589 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MCORE_ELF"
14590 ;;
14591 mep-*)
14592 OBJDUMP_DEFS="-DSKIP_ZEROES=256 -DSKIP_ZEROES_AT_END=0"
14593 ;;
14594 esac
14595
14596 # Add objdump private vectors.
14597 case $targ in
14598 avr-*-*)
14599 od_vectors="$od_vectors objdump_private_desc_elf32_avr"
14600 ;;
14601 powerpc*-*-aix* | rs6000-*-aix*)
14602 od_vectors="$od_vectors objdump_private_desc_xcoff"
14603 ;;
14604 *-*-darwin*)
14605 od_vectors="$od_vectors objdump_private_desc_mach_o"
14606 ;;
14607 esac
14608 fi
14609 done
14610
14611 # Uniq objdump private vector, build objdump target ofiles.
14612 od_files=
14613 f=""
14614 for i in $od_vectors ; do
14615 case " $f " in
14616 *" $i "*) ;;
14617 *)
14618 f="$f $i"
14619 OBJDUMP_PRIVATE_VECTORS="$OBJDUMP_PRIVATE_VECTORS &$i,"
14620 case $i in
14621 objdump_private_desc_elf32_avr)
14622 od_files="$od_files od-elf32_avr" ;;
14623 objdump_private_desc_xcoff)
14624 od_files="$od_files od-xcoff" ;;
14625 objdump_private_desc_mach_o)
14626 od_files="$od_files od-macho" ;;
14627 *) as_fn_error $? "*** unknown private vector $i" "$LINENO" 5 ;;
14628 esac
14629 ;;
14630 esac
14631 done
14632
14633 # Uniq objdump target ofiles
14634 f=""
14635 for i in $od_files ; do
14636 case " $f " in
14637 *" $i "*) ;;
14638 *)
14639 f="$f $i"
14640 OBJDUMP_PRIVATE_OFILES="$OBJDUMP_PRIVATE_OFILES $i.$objext"
14641 ;;
14642 esac
14643 done
14644
14645 DLLTOOL_DEFS="$DLLTOOL_DEFS $DLLTOOL_DEFAULT"
14646
14647 if test "${with_windres+set}" = set; then
14648 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
14649 fi
14650
14651 if test "${with_windmc+set}" = set; then
14652 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
14653 fi
14654
14655 OBJDUMP_DEFS="${OBJDUMP_DEFS} -DOBJDUMP_PRIVATE_VECTORS=\"${OBJDUMP_PRIVATE_VECTORS}\""
14656
14657
14658
14659
14660
14661
14662
14663
14664
14665
14666
14667
14668
14669 cat >>confdefs.h <<_ACEOF
14670 #define TARGET "${target}"
14671 _ACEOF
14672
14673
14674 targ=$target
14675 . $srcdir/../bfd/config.bfd
14676 if test "x$targ_underscore" = "xyes"; then
14677 UNDERSCORE=1
14678 else
14679 UNDERSCORE=0
14680 fi
14681
14682 cat >>confdefs.h <<_ACEOF
14683 #define TARGET_PREPENDS_UNDERSCORE $UNDERSCORE
14684 _ACEOF
14685
14686
14687 # Emulation
14688 targ=$target
14689 . ${srcdir}/configure.tgt
14690 EMULATION=$targ_emul
14691 EMULATION_VECTOR=$targ_emul_vector
14692
14693
14694
14695
14696 # Required for html and install-html
14697
14698
14699
14700
14701
14702 ac_config_files="$ac_config_files Makefile doc/Makefile po/Makefile.in:po/Make-in"
14703
14704 cat >confcache <<\_ACEOF
14705 # This file is a shell script that caches the results of configure
14706 # tests run on this system so they can be shared between configure
14707 # scripts and configure runs, see configure's option --config-cache.
14708 # It is not useful on other systems. If it contains results you don't
14709 # want to keep, you may remove or edit it.
14710 #
14711 # config.status only pays attention to the cache file if you give it
14712 # the --recheck option to rerun configure.
14713 #
14714 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14715 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14716 # following values.
14717
14718 _ACEOF
14719
14720 # The following way of writing the cache mishandles newlines in values,
14721 # but we know of no workaround that is simple, portable, and efficient.
14722 # So, we kill variables containing newlines.
14723 # Ultrix sh set writes to stderr and can't be redirected directly,
14724 # and sets the high bit in the cache file unless we assign to the vars.
14725 (
14726 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14727 eval ac_val=\$$ac_var
14728 case $ac_val in #(
14729 *${as_nl}*)
14730 case $ac_var in #(
14731 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14732 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14733 esac
14734 case $ac_var in #(
14735 _ | IFS | as_nl) ;; #(
14736 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14737 *) { eval $ac_var=; unset $ac_var;} ;;
14738 esac ;;
14739 esac
14740 done
14741
14742 (set) 2>&1 |
14743 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14744 *${as_nl}ac_space=\ *)
14745 # `set' does not quote correctly, so add quotes: double-quote
14746 # substitution turns \\\\ into \\, and sed turns \\ into \.
14747 sed -n \
14748 "s/'/'\\\\''/g;
14749 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14750 ;; #(
14751 *)
14752 # `set' quotes correctly as required by POSIX, so do not add quotes.
14753 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14754 ;;
14755 esac |
14756 sort
14757 ) |
14758 sed '
14759 /^ac_cv_env_/b end
14760 t clear
14761 :clear
14762 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14763 t end
14764 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14765 :end' >>confcache
14766 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14767 if test -w "$cache_file"; then
14768 if test "x$cache_file" != "x/dev/null"; then
14769 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14770 $as_echo "$as_me: updating cache $cache_file" >&6;}
14771 if test ! -f "$cache_file" || test -h "$cache_file"; then
14772 cat confcache >"$cache_file"
14773 else
14774 case $cache_file in #(
14775 */* | ?:*)
14776 mv -f confcache "$cache_file"$$ &&
14777 mv -f "$cache_file"$$ "$cache_file" ;; #(
14778 *)
14779 mv -f confcache "$cache_file" ;;
14780 esac
14781 fi
14782 fi
14783 else
14784 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14785 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14786 fi
14787 fi
14788 rm -f confcache
14789
14790 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14791 # Let make expand exec_prefix.
14792 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14793
14794 DEFS=-DHAVE_CONFIG_H
14795
14796 ac_libobjs=
14797 ac_ltlibobjs=
14798 U=
14799 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14800 # 1. Remove the extension, and $U if already installed.
14801 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14802 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14803 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14804 # will be set to the directory where LIBOBJS objects are built.
14805 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14806 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14807 done
14808 LIBOBJS=$ac_libobjs
14809
14810 LTLIBOBJS=$ac_ltlibobjs
14811
14812
14813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
14814 $as_echo_n "checking that generated files are newer than configure... " >&6; }
14815 if test -n "$am_sleep_pid"; then
14816 # Hide warnings about reused PIDs.
14817 wait $am_sleep_pid 2>/dev/null
14818 fi
14819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
14820 $as_echo "done" >&6; }
14821 if test -n "$EXEEXT"; then
14822 am__EXEEXT_TRUE=
14823 am__EXEEXT_FALSE='#'
14824 else
14825 am__EXEEXT_TRUE='#'
14826 am__EXEEXT_FALSE=
14827 fi
14828
14829 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14830 as_fn_error $? "conditional \"AMDEP\" was never defined.
14831 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14832 fi
14833 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14834 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14835 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14836 fi
14837 if test -z "${ENABLE_LIBCTF_TRUE}" && test -z "${ENABLE_LIBCTF_FALSE}"; then
14838 as_fn_error $? "conditional \"ENABLE_LIBCTF\" was never defined.
14839 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14840 fi
14841 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14842 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
14843 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14844 fi
14845 if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
14846 as_fn_error $? "conditional \"GENINSRC_NEVER\" was never defined.
14847 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14848 fi
14849
14850 : "${CONFIG_STATUS=./config.status}"
14851 ac_write_fail=0
14852 ac_clean_files_save=$ac_clean_files
14853 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14854 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14855 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14856 as_write_fail=0
14857 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14858 #! $SHELL
14859 # Generated by $as_me.
14860 # Run this file to recreate the current configuration.
14861 # Compiler output produced by configure, useful for debugging
14862 # configure, is in config.log if it exists.
14863
14864 debug=false
14865 ac_cs_recheck=false
14866 ac_cs_silent=false
14867
14868 SHELL=\${CONFIG_SHELL-$SHELL}
14869 export SHELL
14870 _ASEOF
14871 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14872 ## -------------------- ##
14873 ## M4sh Initialization. ##
14874 ## -------------------- ##
14875
14876 # Be more Bourne compatible
14877 DUALCASE=1; export DUALCASE # for MKS sh
14878 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14879 emulate sh
14880 NULLCMD=:
14881 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14882 # is contrary to our usage. Disable this feature.
14883 alias -g '${1+"$@"}'='"$@"'
14884 setopt NO_GLOB_SUBST
14885 else
14886 case `(set -o) 2>/dev/null` in #(
14887 *posix*) :
14888 set -o posix ;; #(
14889 *) :
14890 ;;
14891 esac
14892 fi
14893
14894
14895 as_nl='
14896 '
14897 export as_nl
14898 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14899 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14900 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14901 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14902 # Prefer a ksh shell builtin over an external printf program on Solaris,
14903 # but without wasting forks for bash or zsh.
14904 if test -z "$BASH_VERSION$ZSH_VERSION" \
14905 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14906 as_echo='print -r --'
14907 as_echo_n='print -rn --'
14908 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14909 as_echo='printf %s\n'
14910 as_echo_n='printf %s'
14911 else
14912 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14913 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14914 as_echo_n='/usr/ucb/echo -n'
14915 else
14916 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14917 as_echo_n_body='eval
14918 arg=$1;
14919 case $arg in #(
14920 *"$as_nl"*)
14921 expr "X$arg" : "X\\(.*\\)$as_nl";
14922 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14923 esac;
14924 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14925 '
14926 export as_echo_n_body
14927 as_echo_n='sh -c $as_echo_n_body as_echo'
14928 fi
14929 export as_echo_body
14930 as_echo='sh -c $as_echo_body as_echo'
14931 fi
14932
14933 # The user is always right.
14934 if test "${PATH_SEPARATOR+set}" != set; then
14935 PATH_SEPARATOR=:
14936 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14937 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14938 PATH_SEPARATOR=';'
14939 }
14940 fi
14941
14942
14943 # IFS
14944 # We need space, tab and new line, in precisely that order. Quoting is
14945 # there to prevent editors from complaining about space-tab.
14946 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14947 # splitting by setting IFS to empty value.)
14948 IFS=" "" $as_nl"
14949
14950 # Find who we are. Look in the path if we contain no directory separator.
14951 as_myself=
14952 case $0 in #((
14953 *[\\/]* ) as_myself=$0 ;;
14954 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14955 for as_dir in $PATH
14956 do
14957 IFS=$as_save_IFS
14958 test -z "$as_dir" && as_dir=.
14959 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14960 done
14961 IFS=$as_save_IFS
14962
14963 ;;
14964 esac
14965 # We did not find ourselves, most probably we were run as `sh COMMAND'
14966 # in which case we are not to be found in the path.
14967 if test "x$as_myself" = x; then
14968 as_myself=$0
14969 fi
14970 if test ! -f "$as_myself"; then
14971 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14972 exit 1
14973 fi
14974
14975 # Unset variables that we do not need and which cause bugs (e.g. in
14976 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14977 # suppresses any "Segmentation fault" message there. '((' could
14978 # trigger a bug in pdksh 5.2.14.
14979 for as_var in BASH_ENV ENV MAIL MAILPATH
14980 do eval test x\${$as_var+set} = xset \
14981 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14982 done
14983 PS1='$ '
14984 PS2='> '
14985 PS4='+ '
14986
14987 # NLS nuisances.
14988 LC_ALL=C
14989 export LC_ALL
14990 LANGUAGE=C
14991 export LANGUAGE
14992
14993 # CDPATH.
14994 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14995
14996
14997 # as_fn_error STATUS ERROR [LINENO LOG_FD]
14998 # ----------------------------------------
14999 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15000 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15001 # script with STATUS, using 1 if that was 0.
15002 as_fn_error ()
15003 {
15004 as_status=$1; test $as_status -eq 0 && as_status=1
15005 if test "$4"; then
15006 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15007 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15008 fi
15009 $as_echo "$as_me: error: $2" >&2
15010 as_fn_exit $as_status
15011 } # as_fn_error
15012
15013
15014 # as_fn_set_status STATUS
15015 # -----------------------
15016 # Set $? to STATUS, without forking.
15017 as_fn_set_status ()
15018 {
15019 return $1
15020 } # as_fn_set_status
15021
15022 # as_fn_exit STATUS
15023 # -----------------
15024 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15025 as_fn_exit ()
15026 {
15027 set +e
15028 as_fn_set_status $1
15029 exit $1
15030 } # as_fn_exit
15031
15032 # as_fn_unset VAR
15033 # ---------------
15034 # Portably unset VAR.
15035 as_fn_unset ()
15036 {
15037 { eval $1=; unset $1;}
15038 }
15039 as_unset=as_fn_unset
15040 # as_fn_append VAR VALUE
15041 # ----------------------
15042 # Append the text in VALUE to the end of the definition contained in VAR. Take
15043 # advantage of any shell optimizations that allow amortized linear growth over
15044 # repeated appends, instead of the typical quadratic growth present in naive
15045 # implementations.
15046 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15047 eval 'as_fn_append ()
15048 {
15049 eval $1+=\$2
15050 }'
15051 else
15052 as_fn_append ()
15053 {
15054 eval $1=\$$1\$2
15055 }
15056 fi # as_fn_append
15057
15058 # as_fn_arith ARG...
15059 # ------------------
15060 # Perform arithmetic evaluation on the ARGs, and store the result in the
15061 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15062 # must be portable across $(()) and expr.
15063 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15064 eval 'as_fn_arith ()
15065 {
15066 as_val=$(( $* ))
15067 }'
15068 else
15069 as_fn_arith ()
15070 {
15071 as_val=`expr "$@" || test $? -eq 1`
15072 }
15073 fi # as_fn_arith
15074
15075
15076 if expr a : '\(a\)' >/dev/null 2>&1 &&
15077 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15078 as_expr=expr
15079 else
15080 as_expr=false
15081 fi
15082
15083 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15084 as_basename=basename
15085 else
15086 as_basename=false
15087 fi
15088
15089 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15090 as_dirname=dirname
15091 else
15092 as_dirname=false
15093 fi
15094
15095 as_me=`$as_basename -- "$0" ||
15096 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15097 X"$0" : 'X\(//\)$' \| \
15098 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15099 $as_echo X/"$0" |
15100 sed '/^.*\/\([^/][^/]*\)\/*$/{
15101 s//\1/
15102 q
15103 }
15104 /^X\/\(\/\/\)$/{
15105 s//\1/
15106 q
15107 }
15108 /^X\/\(\/\).*/{
15109 s//\1/
15110 q
15111 }
15112 s/.*/./; q'`
15113
15114 # Avoid depending upon Character Ranges.
15115 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15116 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15117 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15118 as_cr_digits='0123456789'
15119 as_cr_alnum=$as_cr_Letters$as_cr_digits
15120
15121 ECHO_C= ECHO_N= ECHO_T=
15122 case `echo -n x` in #(((((
15123 -n*)
15124 case `echo 'xy\c'` in
15125 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15126 xy) ECHO_C='\c';;
15127 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15128 ECHO_T=' ';;
15129 esac;;
15130 *)
15131 ECHO_N='-n';;
15132 esac
15133
15134 rm -f conf$$ conf$$.exe conf$$.file
15135 if test -d conf$$.dir; then
15136 rm -f conf$$.dir/conf$$.file
15137 else
15138 rm -f conf$$.dir
15139 mkdir conf$$.dir 2>/dev/null
15140 fi
15141 if (echo >conf$$.file) 2>/dev/null; then
15142 if ln -s conf$$.file conf$$ 2>/dev/null; then
15143 as_ln_s='ln -s'
15144 # ... but there are two gotchas:
15145 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15146 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15147 # In both cases, we have to default to `cp -pR'.
15148 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15149 as_ln_s='cp -pR'
15150 elif ln conf$$.file conf$$ 2>/dev/null; then
15151 as_ln_s=ln
15152 else
15153 as_ln_s='cp -pR'
15154 fi
15155 else
15156 as_ln_s='cp -pR'
15157 fi
15158 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15159 rmdir conf$$.dir 2>/dev/null
15160
15161
15162 # as_fn_mkdir_p
15163 # -------------
15164 # Create "$as_dir" as a directory, including parents if necessary.
15165 as_fn_mkdir_p ()
15166 {
15167
15168 case $as_dir in #(
15169 -*) as_dir=./$as_dir;;
15170 esac
15171 test -d "$as_dir" || eval $as_mkdir_p || {
15172 as_dirs=
15173 while :; do
15174 case $as_dir in #(
15175 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15176 *) as_qdir=$as_dir;;
15177 esac
15178 as_dirs="'$as_qdir' $as_dirs"
15179 as_dir=`$as_dirname -- "$as_dir" ||
15180 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15181 X"$as_dir" : 'X\(//\)[^/]' \| \
15182 X"$as_dir" : 'X\(//\)$' \| \
15183 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15184 $as_echo X"$as_dir" |
15185 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15186 s//\1/
15187 q
15188 }
15189 /^X\(\/\/\)[^/].*/{
15190 s//\1/
15191 q
15192 }
15193 /^X\(\/\/\)$/{
15194 s//\1/
15195 q
15196 }
15197 /^X\(\/\).*/{
15198 s//\1/
15199 q
15200 }
15201 s/.*/./; q'`
15202 test -d "$as_dir" && break
15203 done
15204 test -z "$as_dirs" || eval "mkdir $as_dirs"
15205 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15206
15207
15208 } # as_fn_mkdir_p
15209 if mkdir -p . 2>/dev/null; then
15210 as_mkdir_p='mkdir -p "$as_dir"'
15211 else
15212 test -d ./-p && rmdir ./-p
15213 as_mkdir_p=false
15214 fi
15215
15216
15217 # as_fn_executable_p FILE
15218 # -----------------------
15219 # Test if FILE is an executable regular file.
15220 as_fn_executable_p ()
15221 {
15222 test -f "$1" && test -x "$1"
15223 } # as_fn_executable_p
15224 as_test_x='test -x'
15225 as_executable_p=as_fn_executable_p
15226
15227 # Sed expression to map a string onto a valid CPP name.
15228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15229
15230 # Sed expression to map a string onto a valid variable name.
15231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15232
15233
15234 exec 6>&1
15235 ## ----------------------------------- ##
15236 ## Main body of $CONFIG_STATUS script. ##
15237 ## ----------------------------------- ##
15238 _ASEOF
15239 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15240
15241 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15242 # Save the log message, to keep $0 and so on meaningful, and to
15243 # report actual input values of CONFIG_FILES etc. instead of their
15244 # values after options handling.
15245 ac_log="
15246 This file was extended by binutils $as_me 2.37.50, which was
15247 generated by GNU Autoconf 2.69. Invocation command line was
15248
15249 CONFIG_FILES = $CONFIG_FILES
15250 CONFIG_HEADERS = $CONFIG_HEADERS
15251 CONFIG_LINKS = $CONFIG_LINKS
15252 CONFIG_COMMANDS = $CONFIG_COMMANDS
15253 $ $0 $@
15254
15255 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15256 "
15257
15258 _ACEOF
15259
15260 case $ac_config_files in *"
15261 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15262 esac
15263
15264 case $ac_config_headers in *"
15265 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15266 esac
15267
15268
15269 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15270 # Files that config.status was made for.
15271 config_files="$ac_config_files"
15272 config_headers="$ac_config_headers"
15273 config_commands="$ac_config_commands"
15274
15275 _ACEOF
15276
15277 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15278 ac_cs_usage="\
15279 \`$as_me' instantiates files and other configuration actions
15280 from templates according to the current configuration. Unless the files
15281 and actions are specified as TAGs, all are instantiated by default.
15282
15283 Usage: $0 [OPTION]... [TAG]...
15284
15285 -h, --help print this help, then exit
15286 -V, --version print version number and configuration settings, then exit
15287 --config print configuration, then exit
15288 -q, --quiet, --silent
15289 do not print progress messages
15290 -d, --debug don't remove temporary files
15291 --recheck update $as_me by reconfiguring in the same conditions
15292 --file=FILE[:TEMPLATE]
15293 instantiate the configuration file FILE
15294 --header=FILE[:TEMPLATE]
15295 instantiate the configuration header FILE
15296
15297 Configuration files:
15298 $config_files
15299
15300 Configuration headers:
15301 $config_headers
15302
15303 Configuration commands:
15304 $config_commands
15305
15306 Report bugs to the package provider."
15307
15308 _ACEOF
15309 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15310 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15311 ac_cs_version="\\
15312 binutils config.status 2.37.50
15313 configured by $0, generated by GNU Autoconf 2.69,
15314 with options \\"\$ac_cs_config\\"
15315
15316 Copyright (C) 2012 Free Software Foundation, Inc.
15317 This config.status script is free software; the Free Software Foundation
15318 gives unlimited permission to copy, distribute and modify it."
15319
15320 ac_pwd='$ac_pwd'
15321 srcdir='$srcdir'
15322 INSTALL='$INSTALL'
15323 MKDIR_P='$MKDIR_P'
15324 AWK='$AWK'
15325 test -n "\$AWK" || AWK=awk
15326 _ACEOF
15327
15328 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15329 # The default lists apply if the user does not specify any file.
15330 ac_need_defaults=:
15331 while test $# != 0
15332 do
15333 case $1 in
15334 --*=?*)
15335 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15336 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15337 ac_shift=:
15338 ;;
15339 --*=)
15340 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15341 ac_optarg=
15342 ac_shift=:
15343 ;;
15344 *)
15345 ac_option=$1
15346 ac_optarg=$2
15347 ac_shift=shift
15348 ;;
15349 esac
15350
15351 case $ac_option in
15352 # Handling of the options.
15353 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15354 ac_cs_recheck=: ;;
15355 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15356 $as_echo "$ac_cs_version"; exit ;;
15357 --config | --confi | --conf | --con | --co | --c )
15358 $as_echo "$ac_cs_config"; exit ;;
15359 --debug | --debu | --deb | --de | --d | -d )
15360 debug=: ;;
15361 --file | --fil | --fi | --f )
15362 $ac_shift
15363 case $ac_optarg in
15364 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15365 '') as_fn_error $? "missing file argument" ;;
15366 esac
15367 as_fn_append CONFIG_FILES " '$ac_optarg'"
15368 ac_need_defaults=false;;
15369 --header | --heade | --head | --hea )
15370 $ac_shift
15371 case $ac_optarg in
15372 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15373 esac
15374 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15375 ac_need_defaults=false;;
15376 --he | --h)
15377 # Conflict between --help and --header
15378 as_fn_error $? "ambiguous option: \`$1'
15379 Try \`$0 --help' for more information.";;
15380 --help | --hel | -h )
15381 $as_echo "$ac_cs_usage"; exit ;;
15382 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15383 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15384 ac_cs_silent=: ;;
15385
15386 # This is an error.
15387 -*) as_fn_error $? "unrecognized option: \`$1'
15388 Try \`$0 --help' for more information." ;;
15389
15390 *) as_fn_append ac_config_targets " $1"
15391 ac_need_defaults=false ;;
15392
15393 esac
15394 shift
15395 done
15396
15397 ac_configure_extra_args=
15398
15399 if $ac_cs_silent; then
15400 exec 6>/dev/null
15401 ac_configure_extra_args="$ac_configure_extra_args --silent"
15402 fi
15403
15404 _ACEOF
15405 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15406 if \$ac_cs_recheck; then
15407 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15408 shift
15409 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15410 CONFIG_SHELL='$SHELL'
15411 export CONFIG_SHELL
15412 exec "\$@"
15413 fi
15414
15415 _ACEOF
15416 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15417 exec 5>>config.log
15418 {
15419 echo
15420 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15421 ## Running $as_me. ##
15422 _ASBOX
15423 $as_echo "$ac_log"
15424 } >&5
15425
15426 _ACEOF
15427 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15428 #
15429 # INIT-COMMANDS
15430 #
15431 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15432
15433
15434 # The HP-UX ksh and POSIX shell print the target directory to stdout
15435 # if CDPATH is set.
15436 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15437
15438 sed_quote_subst='$sed_quote_subst'
15439 double_quote_subst='$double_quote_subst'
15440 delay_variable_subst='$delay_variable_subst'
15441 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15442 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15443 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15444 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15445 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15446 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15447 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15448 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15449 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15450 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15451 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15452 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15453 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15454 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15455 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15456 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15457 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15458 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15459 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15460 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15461 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15462 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15463 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15464 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15465 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15466 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15467 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15468 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15469 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15470 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15471 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15472 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15473 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15474 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15475 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15476 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15477 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15478 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15479 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15480 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15481 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15482 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15483 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15484 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15485 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15486 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15487 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15488 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15489 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"`'
15490 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15491 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15492 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15493 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15494 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15495 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15496 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15497 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15498 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15499 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15500 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15501 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15502 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15503 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15504 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15505 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15506 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15507 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15508 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15509 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15510 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15511 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15512 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15513 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15514 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15515 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15516 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15517 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15518 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15519 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15520 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15521 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
15522 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15523 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15524 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15525 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15526 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15527 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15528 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15529 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15530 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
15531 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15532 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15533 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15534 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15535 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15536 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15537 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15538 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15539 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15540 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15541 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15542 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15543 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15544 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15545 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15546 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15547 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15548 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15549 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15550 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15551 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15552 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15553 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15554 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15555 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15556 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15557 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15558 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15559 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15560 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15561
15562 LTCC='$LTCC'
15563 LTCFLAGS='$LTCFLAGS'
15564 compiler='$compiler_DEFAULT'
15565
15566 # A function that is used when there is no print builtin or printf.
15567 func_fallback_echo ()
15568 {
15569 eval 'cat <<_LTECHO_EOF
15570 \$1
15571 _LTECHO_EOF'
15572 }
15573
15574 # Quote evaled strings.
15575 for var in SHELL \
15576 ECHO \
15577 SED \
15578 GREP \
15579 EGREP \
15580 FGREP \
15581 LD \
15582 NM \
15583 LN_S \
15584 lt_SP2NL \
15585 lt_NL2SP \
15586 reload_flag \
15587 OBJDUMP \
15588 deplibs_check_method \
15589 file_magic_cmd \
15590 AR \
15591 AR_FLAGS \
15592 STRIP \
15593 RANLIB \
15594 CC \
15595 CFLAGS \
15596 compiler \
15597 lt_cv_sys_global_symbol_pipe \
15598 lt_cv_sys_global_symbol_to_cdecl \
15599 lt_cv_sys_global_symbol_to_c_name_address \
15600 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15601 lt_prog_compiler_no_builtin_flag \
15602 lt_prog_compiler_wl \
15603 lt_prog_compiler_pic \
15604 lt_prog_compiler_static \
15605 lt_cv_prog_compiler_c_o \
15606 need_locks \
15607 DSYMUTIL \
15608 NMEDIT \
15609 LIPO \
15610 OTOOL \
15611 OTOOL64 \
15612 shrext_cmds \
15613 export_dynamic_flag_spec \
15614 whole_archive_flag_spec \
15615 compiler_needs_object \
15616 with_gnu_ld \
15617 allow_undefined_flag \
15618 no_undefined_flag \
15619 hardcode_libdir_flag_spec \
15620 hardcode_libdir_flag_spec_ld \
15621 hardcode_libdir_separator \
15622 fix_srcfile_path \
15623 exclude_expsyms \
15624 include_expsyms \
15625 file_list_spec \
15626 variables_saved_for_relink \
15627 libname_spec \
15628 library_names_spec \
15629 soname_spec \
15630 install_override_mode \
15631 finish_eval \
15632 old_striplib \
15633 striplib; do
15634 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15635 *[\\\\\\\`\\"\\\$]*)
15636 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15637 ;;
15638 *)
15639 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15640 ;;
15641 esac
15642 done
15643
15644 # Double-quote double-evaled strings.
15645 for var in reload_cmds \
15646 old_postinstall_cmds \
15647 old_postuninstall_cmds \
15648 old_archive_cmds \
15649 extract_expsyms_cmds \
15650 old_archive_from_new_cmds \
15651 old_archive_from_expsyms_cmds \
15652 archive_cmds \
15653 archive_expsym_cmds \
15654 module_cmds \
15655 module_expsym_cmds \
15656 export_symbols_cmds \
15657 prelink_cmds \
15658 postinstall_cmds \
15659 postuninstall_cmds \
15660 finish_cmds \
15661 sys_lib_search_path_spec \
15662 sys_lib_dlsearch_path_spec; do
15663 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15664 *[\\\\\\\`\\"\\\$]*)
15665 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15666 ;;
15667 *)
15668 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15669 ;;
15670 esac
15671 done
15672
15673 ac_aux_dir='$ac_aux_dir'
15674 xsi_shell='$xsi_shell'
15675 lt_shell_append='$lt_shell_append'
15676
15677 # See if we are running on zsh, and set the options which allow our
15678 # commands through without removal of \ escapes INIT.
15679 if test -n "\${ZSH_VERSION+set}" ; then
15680 setopt NO_GLOB_SUBST
15681 fi
15682
15683
15684 PACKAGE='$PACKAGE'
15685 VERSION='$VERSION'
15686 TIMESTAMP='$TIMESTAMP'
15687 RM='$RM'
15688 ofile='$ofile'
15689
15690
15691
15692 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
15693 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
15694 # from automake.
15695 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
15696 # Capture the value of LINGUAS because we need it to compute CATALOGS.
15697 LINGUAS="${LINGUAS-%UNSET%}"
15698
15699
15700 _ACEOF
15701
15702 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15703
15704 # Handling of arguments.
15705 for ac_config_target in $ac_config_targets
15706 do
15707 case $ac_config_target in
15708 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15709 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15710 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
15711 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
15712 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15713 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
15714 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
15715
15716 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15717 esac
15718 done
15719
15720
15721 # If the user did not use the arguments to specify the items to instantiate,
15722 # then the envvar interface is used. Set only those that are not.
15723 # We use the long form for the default assignment because of an extremely
15724 # bizarre bug on SunOS 4.1.3.
15725 if $ac_need_defaults; then
15726 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15727 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15728 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15729 fi
15730
15731 # Have a temporary directory for convenience. Make it in the build tree
15732 # simply because there is no reason against having it here, and in addition,
15733 # creating and moving files from /tmp can sometimes cause problems.
15734 # Hook for its removal unless debugging.
15735 # Note that there is a small window in which the directory will not be cleaned:
15736 # after its creation but before its name has been assigned to `$tmp'.
15737 $debug ||
15738 {
15739 tmp= ac_tmp=
15740 trap 'exit_status=$?
15741 : "${ac_tmp:=$tmp}"
15742 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15743 ' 0
15744 trap 'as_fn_exit 1' 1 2 13 15
15745 }
15746 # Create a (secure) tmp directory for tmp files.
15747
15748 {
15749 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15750 test -d "$tmp"
15751 } ||
15752 {
15753 tmp=./conf$$-$RANDOM
15754 (umask 077 && mkdir "$tmp")
15755 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15756 ac_tmp=$tmp
15757
15758 # Set up the scripts for CONFIG_FILES section.
15759 # No need to generate them if there are no CONFIG_FILES.
15760 # This happens for instance with `./config.status config.h'.
15761 if test -n "$CONFIG_FILES"; then
15762
15763
15764 ac_cr=`echo X | tr X '\015'`
15765 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15766 # But we know of no other shell where ac_cr would be empty at this
15767 # point, so we can use a bashism as a fallback.
15768 if test "x$ac_cr" = x; then
15769 eval ac_cr=\$\'\\r\'
15770 fi
15771 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15772 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15773 ac_cs_awk_cr='\\r'
15774 else
15775 ac_cs_awk_cr=$ac_cr
15776 fi
15777
15778 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15779 _ACEOF
15780
15781
15782 {
15783 echo "cat >conf$$subs.awk <<_ACEOF" &&
15784 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15785 echo "_ACEOF"
15786 } >conf$$subs.sh ||
15787 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15788 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15789 ac_delim='%!_!# '
15790 for ac_last_try in false false false false false :; do
15791 . ./conf$$subs.sh ||
15792 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15793
15794 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15795 if test $ac_delim_n = $ac_delim_num; then
15796 break
15797 elif $ac_last_try; then
15798 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15799 else
15800 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15801 fi
15802 done
15803 rm -f conf$$subs.sh
15804
15805 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15806 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15807 _ACEOF
15808 sed -n '
15809 h
15810 s/^/S["/; s/!.*/"]=/
15811 p
15812 g
15813 s/^[^!]*!//
15814 :repl
15815 t repl
15816 s/'"$ac_delim"'$//
15817 t delim
15818 :nl
15819 h
15820 s/\(.\{148\}\)..*/\1/
15821 t more1
15822 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15823 p
15824 n
15825 b repl
15826 :more1
15827 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15828 p
15829 g
15830 s/.\{148\}//
15831 t nl
15832 :delim
15833 h
15834 s/\(.\{148\}\)..*/\1/
15835 t more2
15836 s/["\\]/\\&/g; s/^/"/; s/$/"/
15837 p
15838 b
15839 :more2
15840 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15841 p
15842 g
15843 s/.\{148\}//
15844 t delim
15845 ' <conf$$subs.awk | sed '
15846 /^[^""]/{
15847 N
15848 s/\n//
15849 }
15850 ' >>$CONFIG_STATUS || ac_write_fail=1
15851 rm -f conf$$subs.awk
15852 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15853 _ACAWK
15854 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15855 for (key in S) S_is_set[key] = 1
15856 FS = "\a"
15857
15858 }
15859 {
15860 line = $ 0
15861 nfields = split(line, field, "@")
15862 substed = 0
15863 len = length(field[1])
15864 for (i = 2; i < nfields; i++) {
15865 key = field[i]
15866 keylen = length(key)
15867 if (S_is_set[key]) {
15868 value = S[key]
15869 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15870 len += length(value) + length(field[++i])
15871 substed = 1
15872 } else
15873 len += 1 + keylen
15874 }
15875
15876 print line
15877 }
15878
15879 _ACAWK
15880 _ACEOF
15881 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15882 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15883 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15884 else
15885 cat
15886 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15887 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15888 _ACEOF
15889
15890 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15891 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15892 # trailing colons and then remove the whole line if VPATH becomes empty
15893 # (actually we leave an empty line to preserve line numbers).
15894 if test "x$srcdir" = x.; then
15895 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15896 h
15897 s///
15898 s/^/:/
15899 s/[ ]*$/:/
15900 s/:\$(srcdir):/:/g
15901 s/:\${srcdir}:/:/g
15902 s/:@srcdir@:/:/g
15903 s/^:*//
15904 s/:*$//
15905 x
15906 s/\(=[ ]*\).*/\1/
15907 G
15908 s/\n//
15909 s/^[^=]*=[ ]*$//
15910 }'
15911 fi
15912
15913 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15914 fi # test -n "$CONFIG_FILES"
15915
15916 # Set up the scripts for CONFIG_HEADERS section.
15917 # No need to generate them if there are no CONFIG_HEADERS.
15918 # This happens for instance with `./config.status Makefile'.
15919 if test -n "$CONFIG_HEADERS"; then
15920 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15921 BEGIN {
15922 _ACEOF
15923
15924 # Transform confdefs.h into an awk script `defines.awk', embedded as
15925 # here-document in config.status, that substitutes the proper values into
15926 # config.h.in to produce config.h.
15927
15928 # Create a delimiter string that does not exist in confdefs.h, to ease
15929 # handling of long lines.
15930 ac_delim='%!_!# '
15931 for ac_last_try in false false :; do
15932 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15933 if test -z "$ac_tt"; then
15934 break
15935 elif $ac_last_try; then
15936 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15937 else
15938 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15939 fi
15940 done
15941
15942 # For the awk script, D is an array of macro values keyed by name,
15943 # likewise P contains macro parameters if any. Preserve backslash
15944 # newline sequences.
15945
15946 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15947 sed -n '
15948 s/.\{148\}/&'"$ac_delim"'/g
15949 t rset
15950 :rset
15951 s/^[ ]*#[ ]*define[ ][ ]*/ /
15952 t def
15953 d
15954 :def
15955 s/\\$//
15956 t bsnl
15957 s/["\\]/\\&/g
15958 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15959 D["\1"]=" \3"/p
15960 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15961 d
15962 :bsnl
15963 s/["\\]/\\&/g
15964 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15965 D["\1"]=" \3\\\\\\n"\\/p
15966 t cont
15967 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15968 t cont
15969 d
15970 :cont
15971 n
15972 s/.\{148\}/&'"$ac_delim"'/g
15973 t clear
15974 :clear
15975 s/\\$//
15976 t bsnlc
15977 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15978 d
15979 :bsnlc
15980 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15981 b cont
15982 ' <confdefs.h | sed '
15983 s/'"$ac_delim"'/"\\\
15984 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15985
15986 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15987 for (key in D) D_is_set[key] = 1
15988 FS = "\a"
15989 }
15990 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15991 line = \$ 0
15992 split(line, arg, " ")
15993 if (arg[1] == "#") {
15994 defundef = arg[2]
15995 mac1 = arg[3]
15996 } else {
15997 defundef = substr(arg[1], 2)
15998 mac1 = arg[2]
15999 }
16000 split(mac1, mac2, "(") #)
16001 macro = mac2[1]
16002 prefix = substr(line, 1, index(line, defundef) - 1)
16003 if (D_is_set[macro]) {
16004 # Preserve the white space surrounding the "#".
16005 print prefix "define", macro P[macro] D[macro]
16006 next
16007 } else {
16008 # Replace #undef with comments. This is necessary, for example,
16009 # in the case of _POSIX_SOURCE, which is predefined and required
16010 # on some systems where configure will not decide to define it.
16011 if (defundef == "undef") {
16012 print "/*", prefix defundef, macro, "*/"
16013 next
16014 }
16015 }
16016 }
16017 { print }
16018 _ACAWK
16019 _ACEOF
16020 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16021 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16022 fi # test -n "$CONFIG_HEADERS"
16023
16024
16025 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16026 shift
16027 for ac_tag
16028 do
16029 case $ac_tag in
16030 :[FHLC]) ac_mode=$ac_tag; continue;;
16031 esac
16032 case $ac_mode$ac_tag in
16033 :[FHL]*:*);;
16034 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16035 :[FH]-) ac_tag=-:-;;
16036 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16037 esac
16038 ac_save_IFS=$IFS
16039 IFS=:
16040 set x $ac_tag
16041 IFS=$ac_save_IFS
16042 shift
16043 ac_file=$1
16044 shift
16045
16046 case $ac_mode in
16047 :L) ac_source=$1;;
16048 :[FH])
16049 ac_file_inputs=
16050 for ac_f
16051 do
16052 case $ac_f in
16053 -) ac_f="$ac_tmp/stdin";;
16054 *) # Look for the file first in the build tree, then in the source tree
16055 # (if the path is not absolute). The absolute path cannot be DOS-style,
16056 # because $ac_f cannot contain `:'.
16057 test -f "$ac_f" ||
16058 case $ac_f in
16059 [\\/$]*) false;;
16060 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16061 esac ||
16062 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16063 esac
16064 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16065 as_fn_append ac_file_inputs " '$ac_f'"
16066 done
16067
16068 # Let's still pretend it is `configure' which instantiates (i.e., don't
16069 # use $as_me), people would be surprised to read:
16070 # /* config.h. Generated by config.status. */
16071 configure_input='Generated from '`
16072 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16073 `' by configure.'
16074 if test x"$ac_file" != x-; then
16075 configure_input="$ac_file. $configure_input"
16076 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16077 $as_echo "$as_me: creating $ac_file" >&6;}
16078 fi
16079 # Neutralize special characters interpreted by sed in replacement strings.
16080 case $configure_input in #(
16081 *\&* | *\|* | *\\* )
16082 ac_sed_conf_input=`$as_echo "$configure_input" |
16083 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16084 *) ac_sed_conf_input=$configure_input;;
16085 esac
16086
16087 case $ac_tag in
16088 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16089 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16090 esac
16091 ;;
16092 esac
16093
16094 ac_dir=`$as_dirname -- "$ac_file" ||
16095 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16096 X"$ac_file" : 'X\(//\)[^/]' \| \
16097 X"$ac_file" : 'X\(//\)$' \| \
16098 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16099 $as_echo X"$ac_file" |
16100 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16101 s//\1/
16102 q
16103 }
16104 /^X\(\/\/\)[^/].*/{
16105 s//\1/
16106 q
16107 }
16108 /^X\(\/\/\)$/{
16109 s//\1/
16110 q
16111 }
16112 /^X\(\/\).*/{
16113 s//\1/
16114 q
16115 }
16116 s/.*/./; q'`
16117 as_dir="$ac_dir"; as_fn_mkdir_p
16118 ac_builddir=.
16119
16120 case "$ac_dir" in
16121 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16122 *)
16123 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16124 # A ".." for each directory in $ac_dir_suffix.
16125 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16126 case $ac_top_builddir_sub in
16127 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16128 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16129 esac ;;
16130 esac
16131 ac_abs_top_builddir=$ac_pwd
16132 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16133 # for backward compatibility:
16134 ac_top_builddir=$ac_top_build_prefix
16135
16136 case $srcdir in
16137 .) # We are building in place.
16138 ac_srcdir=.
16139 ac_top_srcdir=$ac_top_builddir_sub
16140 ac_abs_top_srcdir=$ac_pwd ;;
16141 [\\/]* | ?:[\\/]* ) # Absolute name.
16142 ac_srcdir=$srcdir$ac_dir_suffix;
16143 ac_top_srcdir=$srcdir
16144 ac_abs_top_srcdir=$srcdir ;;
16145 *) # Relative name.
16146 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16147 ac_top_srcdir=$ac_top_build_prefix$srcdir
16148 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16149 esac
16150 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16151
16152
16153 case $ac_mode in
16154 :F)
16155 #
16156 # CONFIG_FILE
16157 #
16158
16159 case $INSTALL in
16160 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16161 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16162 esac
16163 ac_MKDIR_P=$MKDIR_P
16164 case $MKDIR_P in
16165 [\\/$]* | ?:[\\/]* ) ;;
16166 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16167 esac
16168 _ACEOF
16169
16170 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16171 # If the template does not know about datarootdir, expand it.
16172 # FIXME: This hack should be removed a few years after 2.60.
16173 ac_datarootdir_hack=; ac_datarootdir_seen=
16174 ac_sed_dataroot='
16175 /datarootdir/ {
16176 p
16177 q
16178 }
16179 /@datadir@/p
16180 /@docdir@/p
16181 /@infodir@/p
16182 /@localedir@/p
16183 /@mandir@/p'
16184 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16185 *datarootdir*) ac_datarootdir_seen=yes;;
16186 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16187 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16188 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16189 _ACEOF
16190 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16191 ac_datarootdir_hack='
16192 s&@datadir@&$datadir&g
16193 s&@docdir@&$docdir&g
16194 s&@infodir@&$infodir&g
16195 s&@localedir@&$localedir&g
16196 s&@mandir@&$mandir&g
16197 s&\\\${datarootdir}&$datarootdir&g' ;;
16198 esac
16199 _ACEOF
16200
16201 # Neutralize VPATH when `$srcdir' = `.'.
16202 # Shell code in configure.ac might set extrasub.
16203 # FIXME: do we really want to maintain this feature?
16204 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16205 ac_sed_extra="$ac_vpsub
16206 $extrasub
16207 _ACEOF
16208 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16209 :t
16210 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16211 s|@configure_input@|$ac_sed_conf_input|;t t
16212 s&@top_builddir@&$ac_top_builddir_sub&;t t
16213 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16214 s&@srcdir@&$ac_srcdir&;t t
16215 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16216 s&@top_srcdir@&$ac_top_srcdir&;t t
16217 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16218 s&@builddir@&$ac_builddir&;t t
16219 s&@abs_builddir@&$ac_abs_builddir&;t t
16220 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16221 s&@INSTALL@&$ac_INSTALL&;t t
16222 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16223 $ac_datarootdir_hack
16224 "
16225 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16226 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16227
16228 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16229 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16230 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16231 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16232 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16233 which seems to be undefined. Please make sure it is defined" >&5
16234 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16235 which seems to be undefined. Please make sure it is defined" >&2;}
16236
16237 rm -f "$ac_tmp/stdin"
16238 case $ac_file in
16239 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16240 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16241 esac \
16242 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16243 ;;
16244 :H)
16245 #
16246 # CONFIG_HEADER
16247 #
16248 if test x"$ac_file" != x-; then
16249 {
16250 $as_echo "/* $configure_input */" \
16251 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16252 } >"$ac_tmp/config.h" \
16253 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16254 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16255 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16256 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16257 else
16258 rm -f "$ac_file"
16259 mv "$ac_tmp/config.h" "$ac_file" \
16260 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16261 fi
16262 else
16263 $as_echo "/* $configure_input */" \
16264 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16265 || as_fn_error $? "could not create -" "$LINENO" 5
16266 fi
16267 # Compute "$ac_file"'s index in $config_headers.
16268 _am_arg="$ac_file"
16269 _am_stamp_count=1
16270 for _am_header in $config_headers :; do
16271 case $_am_header in
16272 $_am_arg | $_am_arg:* )
16273 break ;;
16274 * )
16275 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16276 esac
16277 done
16278 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16279 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16280 X"$_am_arg" : 'X\(//\)[^/]' \| \
16281 X"$_am_arg" : 'X\(//\)$' \| \
16282 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16283 $as_echo X"$_am_arg" |
16284 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16285 s//\1/
16286 q
16287 }
16288 /^X\(\/\/\)[^/].*/{
16289 s//\1/
16290 q
16291 }
16292 /^X\(\/\/\)$/{
16293 s//\1/
16294 q
16295 }
16296 /^X\(\/\).*/{
16297 s//\1/
16298 q
16299 }
16300 s/.*/./; q'`/stamp-h$_am_stamp_count
16301 ;;
16302
16303 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16304 $as_echo "$as_me: executing $ac_file commands" >&6;}
16305 ;;
16306 esac
16307
16308
16309 case $ac_file$ac_mode in
16310 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16311 # Older Autoconf quotes --file arguments for eval, but not when files
16312 # are listed without --file. Let's play safe and only enable the eval
16313 # if we detect the quoting.
16314 case $CONFIG_FILES in
16315 *\'*) eval set x "$CONFIG_FILES" ;;
16316 *) set x $CONFIG_FILES ;;
16317 esac
16318 shift
16319 for mf
16320 do
16321 # Strip MF so we end up with the name of the file.
16322 mf=`echo "$mf" | sed -e 's/:.*$//'`
16323 # Check whether this is an Automake generated Makefile or not.
16324 # We used to match only the files named 'Makefile.in', but
16325 # some people rename them; so instead we look at the file content.
16326 # Grep'ing the first line is not enough: some people post-process
16327 # each Makefile.in and add a new line on top of each file to say so.
16328 # Grep'ing the whole file is not good either: AIX grep has a line
16329 # limit of 2048, but all sed's we know have understand at least 4000.
16330 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16331 dirpart=`$as_dirname -- "$mf" ||
16332 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16333 X"$mf" : 'X\(//\)[^/]' \| \
16334 X"$mf" : 'X\(//\)$' \| \
16335 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16336 $as_echo X"$mf" |
16337 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16338 s//\1/
16339 q
16340 }
16341 /^X\(\/\/\)[^/].*/{
16342 s//\1/
16343 q
16344 }
16345 /^X\(\/\/\)$/{
16346 s//\1/
16347 q
16348 }
16349 /^X\(\/\).*/{
16350 s//\1/
16351 q
16352 }
16353 s/.*/./; q'`
16354 else
16355 continue
16356 fi
16357 # Extract the definition of DEPDIR, am__include, and am__quote
16358 # from the Makefile without running 'make'.
16359 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16360 test -z "$DEPDIR" && continue
16361 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16362 test -z "$am__include" && continue
16363 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16364 # Find all dependency output files, they are included files with
16365 # $(DEPDIR) in their names. We invoke sed twice because it is the
16366 # simplest approach to changing $(DEPDIR) to its actual value in the
16367 # expansion.
16368 for file in `sed -n "
16369 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16370 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
16371 # Make sure the directory exists.
16372 test -f "$dirpart/$file" && continue
16373 fdir=`$as_dirname -- "$file" ||
16374 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16375 X"$file" : 'X\(//\)[^/]' \| \
16376 X"$file" : 'X\(//\)$' \| \
16377 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16378 $as_echo X"$file" |
16379 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16380 s//\1/
16381 q
16382 }
16383 /^X\(\/\/\)[^/].*/{
16384 s//\1/
16385 q
16386 }
16387 /^X\(\/\/\)$/{
16388 s//\1/
16389 q
16390 }
16391 /^X\(\/\).*/{
16392 s//\1/
16393 q
16394 }
16395 s/.*/./; q'`
16396 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16397 # echo "creating $dirpart/$file"
16398 echo '# dummy' > "$dirpart/$file"
16399 done
16400 done
16401 }
16402 ;;
16403 "libtool":C)
16404
16405 # See if we are running on zsh, and set the options which allow our
16406 # commands through without removal of \ escapes.
16407 if test -n "${ZSH_VERSION+set}" ; then
16408 setopt NO_GLOB_SUBST
16409 fi
16410
16411 cfgfile="${ofile}T"
16412 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16413 $RM "$cfgfile"
16414
16415 cat <<_LT_EOF >> "$cfgfile"
16416 #! $SHELL
16417
16418 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16419 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16420 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16421 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16422 #
16423 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16424 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
16425 # Written by Gordon Matzigkeit, 1996
16426 #
16427 # This file is part of GNU Libtool.
16428 #
16429 # GNU Libtool is free software; you can redistribute it and/or
16430 # modify it under the terms of the GNU General Public License as
16431 # published by the Free Software Foundation; either version 2 of
16432 # the License, or (at your option) any later version.
16433 #
16434 # As a special exception to the GNU General Public License,
16435 # if you distribute this file as part of a program or library that
16436 # is built using GNU Libtool, you may include this file under the
16437 # same distribution terms that you use for the rest of that program.
16438 #
16439 # GNU Libtool is distributed in the hope that it will be useful,
16440 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16441 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16442 # GNU General Public License for more details.
16443 #
16444 # You should have received a copy of the GNU General Public License
16445 # along with GNU Libtool; see the file COPYING. If not, a copy
16446 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16447 # obtained by writing to the Free Software Foundation, Inc.,
16448 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16449
16450
16451 # The names of the tagged configurations supported by this script.
16452 available_tags=""
16453
16454 # ### BEGIN LIBTOOL CONFIG
16455
16456 # Which release of libtool.m4 was used?
16457 macro_version=$macro_version
16458 macro_revision=$macro_revision
16459
16460 # Whether or not to build shared libraries.
16461 build_libtool_libs=$enable_shared
16462
16463 # Whether or not to build static libraries.
16464 build_old_libs=$enable_static
16465
16466 # What type of objects to build.
16467 pic_mode=$pic_mode
16468
16469 # Whether or not to optimize for fast installation.
16470 fast_install=$enable_fast_install
16471
16472 # Shell to use when invoking shell scripts.
16473 SHELL=$lt_SHELL
16474
16475 # An echo program that protects backslashes.
16476 ECHO=$lt_ECHO
16477
16478 # The host system.
16479 host_alias=$host_alias
16480 host=$host
16481 host_os=$host_os
16482
16483 # The build system.
16484 build_alias=$build_alias
16485 build=$build
16486 build_os=$build_os
16487
16488 # A sed program that does not truncate output.
16489 SED=$lt_SED
16490
16491 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16492 Xsed="\$SED -e 1s/^X//"
16493
16494 # A grep program that handles long lines.
16495 GREP=$lt_GREP
16496
16497 # An ERE matcher.
16498 EGREP=$lt_EGREP
16499
16500 # A literal string matcher.
16501 FGREP=$lt_FGREP
16502
16503 # A BSD- or MS-compatible name lister.
16504 NM=$lt_NM
16505
16506 # Whether we need soft or hard links.
16507 LN_S=$lt_LN_S
16508
16509 # What is the maximum length of a command?
16510 max_cmd_len=$max_cmd_len
16511
16512 # Object file suffix (normally "o").
16513 objext=$ac_objext
16514
16515 # Executable file suffix (normally "").
16516 exeext=$exeext
16517
16518 # whether the shell understands "unset".
16519 lt_unset=$lt_unset
16520
16521 # turn spaces into newlines.
16522 SP2NL=$lt_lt_SP2NL
16523
16524 # turn newlines into spaces.
16525 NL2SP=$lt_lt_NL2SP
16526
16527 # An object symbol dumper.
16528 OBJDUMP=$lt_OBJDUMP
16529
16530 # Method to check whether dependent libraries are shared objects.
16531 deplibs_check_method=$lt_deplibs_check_method
16532
16533 # Command to use when deplibs_check_method == "file_magic".
16534 file_magic_cmd=$lt_file_magic_cmd
16535
16536 # The archiver.
16537 AR=$lt_AR
16538 AR_FLAGS=$lt_AR_FLAGS
16539
16540 # A symbol stripping program.
16541 STRIP=$lt_STRIP
16542
16543 # Commands used to install an old-style archive.
16544 RANLIB=$lt_RANLIB
16545 old_postinstall_cmds=$lt_old_postinstall_cmds
16546 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16547
16548 # Whether to use a lock for old archive extraction.
16549 lock_old_archive_extraction=$lock_old_archive_extraction
16550
16551 # A C compiler.
16552 LTCC=$lt_CC
16553
16554 # LTCC compiler flags.
16555 LTCFLAGS=$lt_CFLAGS
16556
16557 # Take the output of nm and produce a listing of raw symbols and C names.
16558 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16559
16560 # Transform the output of nm in a proper C declaration.
16561 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16562
16563 # Transform the output of nm in a C name address pair.
16564 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16565
16566 # Transform the output of nm in a C name address pair when lib prefix is needed.
16567 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16568
16569 # The name of the directory that contains temporary libtool files.
16570 objdir=$objdir
16571
16572 # Used to examine libraries when file_magic_cmd begins with "file".
16573 MAGIC_CMD=$MAGIC_CMD
16574
16575 # Must we lock files when doing compilation?
16576 need_locks=$lt_need_locks
16577
16578 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16579 DSYMUTIL=$lt_DSYMUTIL
16580
16581 # Tool to change global to local symbols on Mac OS X.
16582 NMEDIT=$lt_NMEDIT
16583
16584 # Tool to manipulate fat objects and archives on Mac OS X.
16585 LIPO=$lt_LIPO
16586
16587 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16588 OTOOL=$lt_OTOOL
16589
16590 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16591 OTOOL64=$lt_OTOOL64
16592
16593 # Old archive suffix (normally "a").
16594 libext=$libext
16595
16596 # Shared library suffix (normally ".so").
16597 shrext_cmds=$lt_shrext_cmds
16598
16599 # The commands to extract the exported symbol list from a shared archive.
16600 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16601
16602 # Variables whose values should be saved in libtool wrapper scripts and
16603 # restored at link time.
16604 variables_saved_for_relink=$lt_variables_saved_for_relink
16605
16606 # Do we need the "lib" prefix for modules?
16607 need_lib_prefix=$need_lib_prefix
16608
16609 # Do we need a version for libraries?
16610 need_version=$need_version
16611
16612 # Library versioning type.
16613 version_type=$version_type
16614
16615 # Shared library runtime path variable.
16616 runpath_var=$runpath_var
16617
16618 # Shared library path variable.
16619 shlibpath_var=$shlibpath_var
16620
16621 # Is shlibpath searched before the hard-coded library search path?
16622 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16623
16624 # Format of library name prefix.
16625 libname_spec=$lt_libname_spec
16626
16627 # List of archive names. First name is the real one, the rest are links.
16628 # The last name is the one that the linker finds with -lNAME
16629 library_names_spec=$lt_library_names_spec
16630
16631 # The coded name of the library, if different from the real name.
16632 soname_spec=$lt_soname_spec
16633
16634 # Permission mode override for installation of shared libraries.
16635 install_override_mode=$lt_install_override_mode
16636
16637 # Command to use after installation of a shared archive.
16638 postinstall_cmds=$lt_postinstall_cmds
16639
16640 # Command to use after uninstallation of a shared archive.
16641 postuninstall_cmds=$lt_postuninstall_cmds
16642
16643 # Commands used to finish a libtool library installation in a directory.
16644 finish_cmds=$lt_finish_cmds
16645
16646 # As "finish_cmds", except a single script fragment to be evaled but
16647 # not shown.
16648 finish_eval=$lt_finish_eval
16649
16650 # Whether we should hardcode library paths into libraries.
16651 hardcode_into_libs=$hardcode_into_libs
16652
16653 # Compile-time system search path for libraries.
16654 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16655
16656 # Run-time system search path for libraries.
16657 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16658
16659 # Whether dlopen is supported.
16660 dlopen_support=$enable_dlopen
16661
16662 # Whether dlopen of programs is supported.
16663 dlopen_self=$enable_dlopen_self
16664
16665 # Whether dlopen of statically linked programs is supported.
16666 dlopen_self_static=$enable_dlopen_self_static
16667
16668 # Commands to strip libraries.
16669 old_striplib=$lt_old_striplib
16670 striplib=$lt_striplib
16671
16672
16673 # The linker used to build libraries.
16674 LD=$lt_LD
16675
16676 # How to create reloadable object files.
16677 reload_flag=$lt_reload_flag
16678 reload_cmds=$lt_reload_cmds
16679
16680 # Commands used to build an old-style archive.
16681 old_archive_cmds=$lt_old_archive_cmds
16682
16683 # A language specific compiler.
16684 CC=$lt_compiler
16685
16686 # Is the compiler the GNU compiler?
16687 with_gcc=$GCC
16688
16689 # Compiler flag to turn off builtin functions.
16690 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16691
16692 # How to pass a linker flag through the compiler.
16693 wl=$lt_lt_prog_compiler_wl
16694
16695 # Additional compiler flags for building library objects.
16696 pic_flag=$lt_lt_prog_compiler_pic
16697
16698 # Compiler flag to prevent dynamic linking.
16699 link_static_flag=$lt_lt_prog_compiler_static
16700
16701 # Does compiler simultaneously support -c and -o options?
16702 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16703
16704 # Whether or not to add -lc for building shared libraries.
16705 build_libtool_need_lc=$archive_cmds_need_lc
16706
16707 # Whether or not to disallow shared libs when runtime libs are static.
16708 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16709
16710 # Compiler flag to allow reflexive dlopens.
16711 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16712
16713 # Compiler flag to generate shared objects directly from archives.
16714 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16715
16716 # Whether the compiler copes with passing no objects directly.
16717 compiler_needs_object=$lt_compiler_needs_object
16718
16719 # Create an old-style archive from a shared archive.
16720 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16721
16722 # Create a temporary old-style archive to link instead of a shared archive.
16723 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16724
16725 # Commands used to build a shared archive.
16726 archive_cmds=$lt_archive_cmds
16727 archive_expsym_cmds=$lt_archive_expsym_cmds
16728
16729 # Commands used to build a loadable module if different from building
16730 # a shared archive.
16731 module_cmds=$lt_module_cmds
16732 module_expsym_cmds=$lt_module_expsym_cmds
16733
16734 # Whether we are building with GNU ld or not.
16735 with_gnu_ld=$lt_with_gnu_ld
16736
16737 # Flag that allows shared libraries with undefined symbols to be built.
16738 allow_undefined_flag=$lt_allow_undefined_flag
16739
16740 # Flag that enforces no undefined symbols.
16741 no_undefined_flag=$lt_no_undefined_flag
16742
16743 # Flag to hardcode \$libdir into a binary during linking.
16744 # This must work even if \$libdir does not exist
16745 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16746
16747 # If ld is used when linking, flag to hardcode \$libdir into a binary
16748 # during linking. This must work even if \$libdir does not exist.
16749 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16750
16751 # Whether we need a single "-rpath" flag with a separated argument.
16752 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16753
16754 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16755 # DIR into the resulting binary.
16756 hardcode_direct=$hardcode_direct
16757
16758 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16759 # DIR into the resulting binary and the resulting library dependency is
16760 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16761 # library is relocated.
16762 hardcode_direct_absolute=$hardcode_direct_absolute
16763
16764 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16765 # into the resulting binary.
16766 hardcode_minus_L=$hardcode_minus_L
16767
16768 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16769 # into the resulting binary.
16770 hardcode_shlibpath_var=$hardcode_shlibpath_var
16771
16772 # Set to "yes" if building a shared library automatically hardcodes DIR
16773 # into the library and all subsequent libraries and executables linked
16774 # against it.
16775 hardcode_automatic=$hardcode_automatic
16776
16777 # Set to yes if linker adds runtime paths of dependent libraries
16778 # to runtime path list.
16779 inherit_rpath=$inherit_rpath
16780
16781 # Whether libtool must link a program against all its dependency libraries.
16782 link_all_deplibs=$link_all_deplibs
16783
16784 # Fix the shell variable \$srcfile for the compiler.
16785 fix_srcfile_path=$lt_fix_srcfile_path
16786
16787 # Set to "yes" if exported symbols are required.
16788 always_export_symbols=$always_export_symbols
16789
16790 # The commands to list exported symbols.
16791 export_symbols_cmds=$lt_export_symbols_cmds
16792
16793 # Symbols that should not be listed in the preloaded symbols.
16794 exclude_expsyms=$lt_exclude_expsyms
16795
16796 # Symbols that must always be exported.
16797 include_expsyms=$lt_include_expsyms
16798
16799 # Commands necessary for linking programs (against libraries) with templates.
16800 prelink_cmds=$lt_prelink_cmds
16801
16802 # Specify filename containing input files.
16803 file_list_spec=$lt_file_list_spec
16804
16805 # How to hardcode a shared library path into an executable.
16806 hardcode_action=$hardcode_action
16807
16808 # ### END LIBTOOL CONFIG
16809
16810 _LT_EOF
16811
16812 case $host_os in
16813 aix3*)
16814 cat <<\_LT_EOF >> "$cfgfile"
16815 # AIX sometimes has problems with the GCC collect2 program. For some
16816 # reason, if we set the COLLECT_NAMES environment variable, the problems
16817 # vanish in a puff of smoke.
16818 if test "X${COLLECT_NAMES+set}" != Xset; then
16819 COLLECT_NAMES=
16820 export COLLECT_NAMES
16821 fi
16822 _LT_EOF
16823 ;;
16824 esac
16825
16826
16827 ltmain="$ac_aux_dir/ltmain.sh"
16828
16829
16830 # We use sed instead of cat because bash on DJGPP gets confused if
16831 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16832 # text mode, it properly converts lines to CR/LF. This bash problem
16833 # is reportedly fixed, but why not run on old versions too?
16834 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16835 || (rm -f "$cfgfile"; exit 1)
16836
16837 case $xsi_shell in
16838 yes)
16839 cat << \_LT_EOF >> "$cfgfile"
16840
16841 # func_dirname file append nondir_replacement
16842 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16843 # otherwise set result to NONDIR_REPLACEMENT.
16844 func_dirname ()
16845 {
16846 case ${1} in
16847 */*) func_dirname_result="${1%/*}${2}" ;;
16848 * ) func_dirname_result="${3}" ;;
16849 esac
16850 }
16851
16852 # func_basename file
16853 func_basename ()
16854 {
16855 func_basename_result="${1##*/}"
16856 }
16857
16858 # func_dirname_and_basename file append nondir_replacement
16859 # perform func_basename and func_dirname in a single function
16860 # call:
16861 # dirname: Compute the dirname of FILE. If nonempty,
16862 # add APPEND to the result, otherwise set result
16863 # to NONDIR_REPLACEMENT.
16864 # value returned in "$func_dirname_result"
16865 # basename: Compute filename of FILE.
16866 # value retuned in "$func_basename_result"
16867 # Implementation must be kept synchronized with func_dirname
16868 # and func_basename. For efficiency, we do not delegate to
16869 # those functions but instead duplicate the functionality here.
16870 func_dirname_and_basename ()
16871 {
16872 case ${1} in
16873 */*) func_dirname_result="${1%/*}${2}" ;;
16874 * ) func_dirname_result="${3}" ;;
16875 esac
16876 func_basename_result="${1##*/}"
16877 }
16878
16879 # func_stripname prefix suffix name
16880 # strip PREFIX and SUFFIX off of NAME.
16881 # PREFIX and SUFFIX must not contain globbing or regex special
16882 # characters, hashes, percent signs, but SUFFIX may contain a leading
16883 # dot (in which case that matches only a dot).
16884 func_stripname ()
16885 {
16886 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16887 # positional parameters, so assign one to ordinary parameter first.
16888 func_stripname_result=${3}
16889 func_stripname_result=${func_stripname_result#"${1}"}
16890 func_stripname_result=${func_stripname_result%"${2}"}
16891 }
16892
16893 # func_opt_split
16894 func_opt_split ()
16895 {
16896 func_opt_split_opt=${1%%=*}
16897 func_opt_split_arg=${1#*=}
16898 }
16899
16900 # func_lo2o object
16901 func_lo2o ()
16902 {
16903 case ${1} in
16904 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16905 *) func_lo2o_result=${1} ;;
16906 esac
16907 }
16908
16909 # func_xform libobj-or-source
16910 func_xform ()
16911 {
16912 func_xform_result=${1%.*}.lo
16913 }
16914
16915 # func_arith arithmetic-term...
16916 func_arith ()
16917 {
16918 func_arith_result=$(( $* ))
16919 }
16920
16921 # func_len string
16922 # STRING may not start with a hyphen.
16923 func_len ()
16924 {
16925 func_len_result=${#1}
16926 }
16927
16928 _LT_EOF
16929 ;;
16930 *) # Bourne compatible functions.
16931 cat << \_LT_EOF >> "$cfgfile"
16932
16933 # func_dirname file append nondir_replacement
16934 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16935 # otherwise set result to NONDIR_REPLACEMENT.
16936 func_dirname ()
16937 {
16938 # Extract subdirectory from the argument.
16939 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
16940 if test "X$func_dirname_result" = "X${1}"; then
16941 func_dirname_result="${3}"
16942 else
16943 func_dirname_result="$func_dirname_result${2}"
16944 fi
16945 }
16946
16947 # func_basename file
16948 func_basename ()
16949 {
16950 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
16951 }
16952
16953
16954 # func_stripname prefix suffix name
16955 # strip PREFIX and SUFFIX off of NAME.
16956 # PREFIX and SUFFIX must not contain globbing or regex special
16957 # characters, hashes, percent signs, but SUFFIX may contain a leading
16958 # dot (in which case that matches only a dot).
16959 # func_strip_suffix prefix name
16960 func_stripname ()
16961 {
16962 case ${2} in
16963 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
16964 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
16965 esac
16966 }
16967
16968 # sed scripts:
16969 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16970 my_sed_long_arg='1s/^-[^=]*=//'
16971
16972 # func_opt_split
16973 func_opt_split ()
16974 {
16975 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
16976 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
16977 }
16978
16979 # func_lo2o object
16980 func_lo2o ()
16981 {
16982 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
16983 }
16984
16985 # func_xform libobj-or-source
16986 func_xform ()
16987 {
16988 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
16989 }
16990
16991 # func_arith arithmetic-term...
16992 func_arith ()
16993 {
16994 func_arith_result=`expr "$@"`
16995 }
16996
16997 # func_len string
16998 # STRING may not start with a hyphen.
16999 func_len ()
17000 {
17001 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17002 }
17003
17004 _LT_EOF
17005 esac
17006
17007 case $lt_shell_append in
17008 yes)
17009 cat << \_LT_EOF >> "$cfgfile"
17010
17011 # func_append var value
17012 # Append VALUE to the end of shell variable VAR.
17013 func_append ()
17014 {
17015 eval "$1+=\$2"
17016 }
17017 _LT_EOF
17018 ;;
17019 *)
17020 cat << \_LT_EOF >> "$cfgfile"
17021
17022 # func_append var value
17023 # Append VALUE to the end of shell variable VAR.
17024 func_append ()
17025 {
17026 eval "$1=\$$1\$2"
17027 }
17028
17029 _LT_EOF
17030 ;;
17031 esac
17032
17033
17034 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17035 || (rm -f "$cfgfile"; exit 1)
17036
17037 mv -f "$cfgfile" "$ofile" ||
17038 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17039 chmod +x "$ofile"
17040
17041 ;;
17042 "default-1":C)
17043 for ac_file in $CONFIG_FILES; do
17044 # Support "outfile[:infile[:infile...]]"
17045 case "$ac_file" in
17046 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
17047 esac
17048 # PO directories have a Makefile.in generated from Makefile.in.in.
17049 case "$ac_file" in */Makefile.in)
17050 # Adjust a relative srcdir.
17051 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
17052 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
17053 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
17054 # In autoconf-2.13 it is called $ac_given_srcdir.
17055 # In autoconf-2.50 it is called $srcdir.
17056 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
17057 case "$ac_given_srcdir" in
17058 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
17059 /*) top_srcdir="$ac_given_srcdir" ;;
17060 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
17061 esac
17062 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
17063 rm -f "$ac_dir/POTFILES"
17064 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
17065 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
17066 POMAKEFILEDEPS="POTFILES.in"
17067 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
17068 # on $ac_dir but don't depend on user-specified configuration
17069 # parameters.
17070 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
17071 # The LINGUAS file contains the set of available languages.
17072 if test -n "$OBSOLETE_ALL_LINGUAS"; then
17073 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.ac is obsolete" || echo "setting ALL_LINGUAS in configure.ac is obsolete"
17074 fi
17075 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
17076 # Hide the ALL_LINGUAS assigment from automake.
17077 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
17078 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
17079 else
17080 # The set of available languages was given in configure.ac.
17081 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
17082 fi
17083 case "$ac_given_srcdir" in
17084 .) srcdirpre= ;;
17085 *) srcdirpre='$(srcdir)/' ;;
17086 esac
17087 POFILES=
17088 GMOFILES=
17089 UPDATEPOFILES=
17090 DUMMYPOFILES=
17091 for lang in $ALL_LINGUAS; do
17092 POFILES="$POFILES $srcdirpre$lang.po"
17093 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
17094 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
17095 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
17096 done
17097 # CATALOGS depends on both $ac_dir and the user's LINGUAS
17098 # environment variable.
17099 INST_LINGUAS=
17100 if test -n "$ALL_LINGUAS"; then
17101 for presentlang in $ALL_LINGUAS; do
17102 useit=no
17103 if test "%UNSET%" != "$LINGUAS"; then
17104 desiredlanguages="$LINGUAS"
17105 else
17106 desiredlanguages="$ALL_LINGUAS"
17107 fi
17108 for desiredlang in $desiredlanguages; do
17109 # Use the presentlang catalog if desiredlang is
17110 # a. equal to presentlang, or
17111 # b. a variant of presentlang (because in this case,
17112 # presentlang can be used as a fallback for messages
17113 # which are not translated in the desiredlang catalog).
17114 case "$desiredlang" in
17115 "$presentlang"*) useit=yes;;
17116 esac
17117 done
17118 if test $useit = yes; then
17119 INST_LINGUAS="$INST_LINGUAS $presentlang"
17120 fi
17121 done
17122 fi
17123 CATALOGS=
17124 if test -n "$INST_LINGUAS"; then
17125 for lang in $INST_LINGUAS; do
17126 CATALOGS="$CATALOGS $lang.gmo"
17127 done
17128 fi
17129 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
17130 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"
17131 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
17132 if test -f "$f"; then
17133 case "$f" in
17134 *.orig | *.bak | *~) ;;
17135 *) cat "$f" >> "$ac_dir/Makefile" ;;
17136 esac
17137 fi
17138 done
17139 fi
17140 ;;
17141 esac
17142 done ;;
17143
17144 esac
17145 done # for ac_tag
17146
17147
17148 as_fn_exit 0
17149 _ACEOF
17150 ac_clean_files=$ac_clean_files_save
17151
17152 test $ac_write_fail = 0 ||
17153 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17154
17155
17156 # configure is writing to config.log, and then calls config.status.
17157 # config.status does its own redirection, appending to config.log.
17158 # Unfortunately, on DOS this fails, as config.log is still kept open
17159 # by configure, so config.status won't be able to write to it; its
17160 # output is simply discarded. So we exec the FD to /dev/null,
17161 # effectively closing config.log, so it can be properly (re)opened and
17162 # appended to by config.status. When coming back to configure, we
17163 # need to make the FD available again.
17164 if test "$no_create" != yes; then
17165 ac_cs_success=:
17166 ac_config_status_args=
17167 test "$silent" = yes &&
17168 ac_config_status_args="$ac_config_status_args --quiet"
17169 exec 5>/dev/null
17170 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17171 exec 5>>config.log
17172 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17173 # would make configure fail if this is the last instruction.
17174 $ac_cs_success || as_fn_exit 1
17175 fi
17176 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17177 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17178 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17179 fi
17180
17181
17182
17183 touch config.status.tmp
17184 if touch --reference=config.status config.status.tmp > /dev/null 2>&1; then
17185 sed '/as_fn_exit 0/i \
17186 sed -e \"s/^\t\\\(\\\$(AM_V_CCLD)\\\)/\t+ \\\1/\" Makefile > Makefile.tmp \
17187 touch --reference=Makefile Makefile.tmp \
17188 mv Makefile.tmp Makefile \
17189 ' config.status > config.status.tmp
17190 touch --reference=config.status config.status.tmp
17191 mv config.status.tmp config.status
17192 chmod +x config.status
17193 sed -e "s/^\t\(\$(AM_V_CCLD)\)/\t+ \1/" Makefile > Makefile.tmp
17194 touch --reference=Makefile Makefile.tmp
17195 mv Makefile.tmp Makefile
17196 else
17197 rm -f config.status.tmp
17198 fi