RISC-V: update docs for -mpriv-spec/--with-priv-spec for 1.12
[binutils-gdb.git] / gas / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for gas 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='gas'
589 PACKAGE_TARNAME='gas'
590 PACKAGE_VERSION='2.37.50'
591 PACKAGE_STRING='gas 2.37.50'
592 PACKAGE_BUGREPORT=''
593 PACKAGE_URL=''
594
595 ac_unique_file="as.h"
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_subst_vars='am__EXEEXT_FALSE
633 am__EXEEXT_TRUE
634 LTLIBOBJS
635 LIBOBJS
636 zlibinc
637 zlibdir
638 LIBM
639 GENINSRC_NEVER_FALSE
640 GENINSRC_NEVER_TRUE
641 MAINT
642 MAINTAINER_MODE_FALSE
643 MAINTAINER_MODE_TRUE
644 MSGMERGE
645 MSGFMT
646 MKINSTALLDIRS
647 CATOBJEXT
648 GENCAT
649 INSTOBJEXT
650 DATADIRNAME
651 CATALOGS
652 POSUB
653 GMSGFMT
654 XGETTEXT
655 INCINTL
656 LIBINTL_DEP
657 LIBINTL
658 USE_NLS
659 LEXLIB
660 LEX_OUTPUT_ROOT
661 LEX
662 YFLAGS
663 YACC
664 OPCODES_LIB
665 atof
666 install_tooldir
667 te_file
668 obj_format
669 target_cpu_type
670 extra_objects
671 cgen_cpu_prefix
672 GDBINIT
673 WARN_WRITE_STRINGS
674 NO_WERROR
675 WARN_CFLAGS_FOR_BUILD
676 WARN_CFLAGS
677 do_compare
678 LARGEFILE_CPPFLAGS
679 OTOOL64
680 OTOOL
681 LIPO
682 NMEDIT
683 DSYMUTIL
684 RANLIB
685 AR
686 OBJDUMP
687 LN_S
688 NM
689 ac_ct_DUMPBIN
690 DUMPBIN
691 LD
692 FGREP
693 SED
694 LIBTOOL
695 EGREP
696 GREP
697 CPP
698 am__fastdepCC_FALSE
699 am__fastdepCC_TRUE
700 CCDEPMODE
701 am__nodep
702 AMDEPBACKSLASH
703 AMDEP_FALSE
704 AMDEP_TRUE
705 am__quote
706 am__include
707 DEPDIR
708 OBJEXT
709 EXEEXT
710 ac_ct_CC
711 CPPFLAGS
712 LDFLAGS
713 CFLAGS
714 CC
715 AM_BACKSLASH
716 AM_DEFAULT_VERBOSITY
717 AM_DEFAULT_V
718 AM_V
719 am__untar
720 am__tar
721 AMTAR
722 am__leading_dot
723 SET_MAKE
724 AWK
725 mkdir_p
726 MKDIR_P
727 INSTALL_STRIP_PROGRAM
728 STRIP
729 install_sh
730 MAKEINFO
731 AUTOHEADER
732 AUTOMAKE
733 AUTOCONF
734 ACLOCAL
735 VERSION
736 PACKAGE
737 CYGPATH_W
738 am__isrc
739 INSTALL_DATA
740 INSTALL_SCRIPT
741 INSTALL_PROGRAM
742 target_os
743 target_vendor
744 target_cpu
745 target
746 host_os
747 host_vendor
748 host_cpu
749 host
750 build_os
751 build_vendor
752 build_cpu
753 build
754 target_alias
755 host_alias
756 build_alias
757 LIBS
758 ECHO_T
759 ECHO_N
760 ECHO_C
761 DEFS
762 mandir
763 localedir
764 libdir
765 psdir
766 pdfdir
767 dvidir
768 htmldir
769 infodir
770 docdir
771 oldincludedir
772 includedir
773 localstatedir
774 sharedstatedir
775 sysconfdir
776 datadir
777 datarootdir
778 libexecdir
779 sbindir
780 bindir
781 program_transform_name
782 prefix
783 exec_prefix
784 PACKAGE_URL
785 PACKAGE_BUGREPORT
786 PACKAGE_STRING
787 PACKAGE_VERSION
788 PACKAGE_TARNAME
789 PACKAGE_NAME
790 PATH_SEPARATOR
791 SHELL'
792 ac_subst_files=''
793 ac_user_opts='
794 enable_option_checking
795 enable_silent_rules
796 enable_dependency_tracking
797 enable_shared
798 enable_static
799 with_pic
800 enable_fast_install
801 with_gnu_ld
802 enable_libtool_lock
803 enable_plugins
804 enable_largefile
805 enable_targets
806 enable_checking
807 enable_compressed_debug_sections
808 enable_x86_relax_relocations
809 enable_elf_stt_common
810 enable_generate_build_notes
811 enable_mips_fix_loongson3_llsc
812 enable_x86_used_note
813 enable_default_riscv_attribute
814 enable_werror
815 enable_build_warnings
816 with_cpu
817 enable_nls
818 enable_maintainer_mode
819 with_system_zlib
820 '
821 ac_precious_vars='build_alias
822 host_alias
823 target_alias
824 CC
825 CFLAGS
826 LDFLAGS
827 LIBS
828 CPPFLAGS
829 CPP
830 YACC
831 YFLAGS'
832
833
834 # Initialize some variables set by options.
835 ac_init_help=
836 ac_init_version=false
837 ac_unrecognized_opts=
838 ac_unrecognized_sep=
839 # The variables have the same names as the options, with
840 # dashes changed to underlines.
841 cache_file=/dev/null
842 exec_prefix=NONE
843 no_create=
844 no_recursion=
845 prefix=NONE
846 program_prefix=NONE
847 program_suffix=NONE
848 program_transform_name=s,x,x,
849 silent=
850 site=
851 srcdir=
852 verbose=
853 x_includes=NONE
854 x_libraries=NONE
855
856 # Installation directory options.
857 # These are left unexpanded so users can "make install exec_prefix=/foo"
858 # and all the variables that are supposed to be based on exec_prefix
859 # by default will actually change.
860 # Use braces instead of parens because sh, perl, etc. also accept them.
861 # (The list follows the same order as the GNU Coding Standards.)
862 bindir='${exec_prefix}/bin'
863 sbindir='${exec_prefix}/sbin'
864 libexecdir='${exec_prefix}/libexec'
865 datarootdir='${prefix}/share'
866 datadir='${datarootdir}'
867 sysconfdir='${prefix}/etc'
868 sharedstatedir='${prefix}/com'
869 localstatedir='${prefix}/var'
870 includedir='${prefix}/include'
871 oldincludedir='/usr/include'
872 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
873 infodir='${datarootdir}/info'
874 htmldir='${docdir}'
875 dvidir='${docdir}'
876 pdfdir='${docdir}'
877 psdir='${docdir}'
878 libdir='${exec_prefix}/lib'
879 localedir='${datarootdir}/locale'
880 mandir='${datarootdir}/man'
881
882 ac_prev=
883 ac_dashdash=
884 for ac_option
885 do
886 # If the previous option needs an argument, assign it.
887 if test -n "$ac_prev"; then
888 eval $ac_prev=\$ac_option
889 ac_prev=
890 continue
891 fi
892
893 case $ac_option in
894 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
895 *=) ac_optarg= ;;
896 *) ac_optarg=yes ;;
897 esac
898
899 # Accept the important Cygnus configure options, so we can diagnose typos.
900
901 case $ac_dashdash$ac_option in
902 --)
903 ac_dashdash=yes ;;
904
905 -bindir | --bindir | --bindi | --bind | --bin | --bi)
906 ac_prev=bindir ;;
907 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
908 bindir=$ac_optarg ;;
909
910 -build | --build | --buil | --bui | --bu)
911 ac_prev=build_alias ;;
912 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
913 build_alias=$ac_optarg ;;
914
915 -cache-file | --cache-file | --cache-fil | --cache-fi \
916 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
917 ac_prev=cache_file ;;
918 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
919 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
920 cache_file=$ac_optarg ;;
921
922 --config-cache | -C)
923 cache_file=config.cache ;;
924
925 -datadir | --datadir | --datadi | --datad)
926 ac_prev=datadir ;;
927 -datadir=* | --datadir=* | --datadi=* | --datad=*)
928 datadir=$ac_optarg ;;
929
930 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
931 | --dataroo | --dataro | --datar)
932 ac_prev=datarootdir ;;
933 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
934 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
935 datarootdir=$ac_optarg ;;
936
937 -disable-* | --disable-*)
938 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
939 # Reject names that are not valid shell variable names.
940 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
941 as_fn_error $? "invalid feature name: $ac_useropt"
942 ac_useropt_orig=$ac_useropt
943 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
944 case $ac_user_opts in
945 *"
946 "enable_$ac_useropt"
947 "*) ;;
948 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
949 ac_unrecognized_sep=', ';;
950 esac
951 eval enable_$ac_useropt=no ;;
952
953 -docdir | --docdir | --docdi | --doc | --do)
954 ac_prev=docdir ;;
955 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
956 docdir=$ac_optarg ;;
957
958 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
959 ac_prev=dvidir ;;
960 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
961 dvidir=$ac_optarg ;;
962
963 -enable-* | --enable-*)
964 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
965 # Reject names that are not valid shell variable names.
966 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
967 as_fn_error $? "invalid feature name: $ac_useropt"
968 ac_useropt_orig=$ac_useropt
969 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
970 case $ac_user_opts in
971 *"
972 "enable_$ac_useropt"
973 "*) ;;
974 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
975 ac_unrecognized_sep=', ';;
976 esac
977 eval enable_$ac_useropt=\$ac_optarg ;;
978
979 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
980 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
981 | --exec | --exe | --ex)
982 ac_prev=exec_prefix ;;
983 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
984 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
985 | --exec=* | --exe=* | --ex=*)
986 exec_prefix=$ac_optarg ;;
987
988 -gas | --gas | --ga | --g)
989 # Obsolete; use --with-gas.
990 with_gas=yes ;;
991
992 -help | --help | --hel | --he | -h)
993 ac_init_help=long ;;
994 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
995 ac_init_help=recursive ;;
996 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
997 ac_init_help=short ;;
998
999 -host | --host | --hos | --ho)
1000 ac_prev=host_alias ;;
1001 -host=* | --host=* | --hos=* | --ho=*)
1002 host_alias=$ac_optarg ;;
1003
1004 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1005 ac_prev=htmldir ;;
1006 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1007 | --ht=*)
1008 htmldir=$ac_optarg ;;
1009
1010 -includedir | --includedir | --includedi | --included | --include \
1011 | --includ | --inclu | --incl | --inc)
1012 ac_prev=includedir ;;
1013 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1014 | --includ=* | --inclu=* | --incl=* | --inc=*)
1015 includedir=$ac_optarg ;;
1016
1017 -infodir | --infodir | --infodi | --infod | --info | --inf)
1018 ac_prev=infodir ;;
1019 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1020 infodir=$ac_optarg ;;
1021
1022 -libdir | --libdir | --libdi | --libd)
1023 ac_prev=libdir ;;
1024 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1025 libdir=$ac_optarg ;;
1026
1027 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1028 | --libexe | --libex | --libe)
1029 ac_prev=libexecdir ;;
1030 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1031 | --libexe=* | --libex=* | --libe=*)
1032 libexecdir=$ac_optarg ;;
1033
1034 -localedir | --localedir | --localedi | --localed | --locale)
1035 ac_prev=localedir ;;
1036 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1037 localedir=$ac_optarg ;;
1038
1039 -localstatedir | --localstatedir | --localstatedi | --localstated \
1040 | --localstate | --localstat | --localsta | --localst | --locals)
1041 ac_prev=localstatedir ;;
1042 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1043 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1044 localstatedir=$ac_optarg ;;
1045
1046 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1047 ac_prev=mandir ;;
1048 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1049 mandir=$ac_optarg ;;
1050
1051 -nfp | --nfp | --nf)
1052 # Obsolete; use --without-fp.
1053 with_fp=no ;;
1054
1055 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1056 | --no-cr | --no-c | -n)
1057 no_create=yes ;;
1058
1059 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1060 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1061 no_recursion=yes ;;
1062
1063 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1064 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1065 | --oldin | --oldi | --old | --ol | --o)
1066 ac_prev=oldincludedir ;;
1067 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1068 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1069 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1070 oldincludedir=$ac_optarg ;;
1071
1072 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1073 ac_prev=prefix ;;
1074 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1075 prefix=$ac_optarg ;;
1076
1077 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1078 | --program-pre | --program-pr | --program-p)
1079 ac_prev=program_prefix ;;
1080 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1081 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1082 program_prefix=$ac_optarg ;;
1083
1084 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1085 | --program-suf | --program-su | --program-s)
1086 ac_prev=program_suffix ;;
1087 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1088 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1089 program_suffix=$ac_optarg ;;
1090
1091 -program-transform-name | --program-transform-name \
1092 | --program-transform-nam | --program-transform-na \
1093 | --program-transform-n | --program-transform- \
1094 | --program-transform | --program-transfor \
1095 | --program-transfo | --program-transf \
1096 | --program-trans | --program-tran \
1097 | --progr-tra | --program-tr | --program-t)
1098 ac_prev=program_transform_name ;;
1099 -program-transform-name=* | --program-transform-name=* \
1100 | --program-transform-nam=* | --program-transform-na=* \
1101 | --program-transform-n=* | --program-transform-=* \
1102 | --program-transform=* | --program-transfor=* \
1103 | --program-transfo=* | --program-transf=* \
1104 | --program-trans=* | --program-tran=* \
1105 | --progr-tra=* | --program-tr=* | --program-t=*)
1106 program_transform_name=$ac_optarg ;;
1107
1108 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1109 ac_prev=pdfdir ;;
1110 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1111 pdfdir=$ac_optarg ;;
1112
1113 -psdir | --psdir | --psdi | --psd | --ps)
1114 ac_prev=psdir ;;
1115 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1116 psdir=$ac_optarg ;;
1117
1118 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1119 | -silent | --silent | --silen | --sile | --sil)
1120 silent=yes ;;
1121
1122 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1123 ac_prev=sbindir ;;
1124 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1125 | --sbi=* | --sb=*)
1126 sbindir=$ac_optarg ;;
1127
1128 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1129 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1130 | --sharedst | --shareds | --shared | --share | --shar \
1131 | --sha | --sh)
1132 ac_prev=sharedstatedir ;;
1133 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1134 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1135 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1136 | --sha=* | --sh=*)
1137 sharedstatedir=$ac_optarg ;;
1138
1139 -site | --site | --sit)
1140 ac_prev=site ;;
1141 -site=* | --site=* | --sit=*)
1142 site=$ac_optarg ;;
1143
1144 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1145 ac_prev=srcdir ;;
1146 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1147 srcdir=$ac_optarg ;;
1148
1149 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1150 | --syscon | --sysco | --sysc | --sys | --sy)
1151 ac_prev=sysconfdir ;;
1152 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1153 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1154 sysconfdir=$ac_optarg ;;
1155
1156 -target | --target | --targe | --targ | --tar | --ta | --t)
1157 ac_prev=target_alias ;;
1158 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1159 target_alias=$ac_optarg ;;
1160
1161 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1162 verbose=yes ;;
1163
1164 -version | --version | --versio | --versi | --vers | -V)
1165 ac_init_version=: ;;
1166
1167 -with-* | --with-*)
1168 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1169 # Reject names that are not valid shell variable names.
1170 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1171 as_fn_error $? "invalid package name: $ac_useropt"
1172 ac_useropt_orig=$ac_useropt
1173 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1174 case $ac_user_opts in
1175 *"
1176 "with_$ac_useropt"
1177 "*) ;;
1178 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1179 ac_unrecognized_sep=', ';;
1180 esac
1181 eval with_$ac_useropt=\$ac_optarg ;;
1182
1183 -without-* | --without-*)
1184 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1185 # Reject names that are not valid shell variable names.
1186 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1187 as_fn_error $? "invalid package name: $ac_useropt"
1188 ac_useropt_orig=$ac_useropt
1189 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1190 case $ac_user_opts in
1191 *"
1192 "with_$ac_useropt"
1193 "*) ;;
1194 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1195 ac_unrecognized_sep=', ';;
1196 esac
1197 eval with_$ac_useropt=no ;;
1198
1199 --x)
1200 # Obsolete; use --with-x.
1201 with_x=yes ;;
1202
1203 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1204 | --x-incl | --x-inc | --x-in | --x-i)
1205 ac_prev=x_includes ;;
1206 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1207 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1208 x_includes=$ac_optarg ;;
1209
1210 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1211 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1212 ac_prev=x_libraries ;;
1213 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1214 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1215 x_libraries=$ac_optarg ;;
1216
1217 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1218 Try \`$0 --help' for more information"
1219 ;;
1220
1221 *=*)
1222 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1223 # Reject names that are not valid shell variable names.
1224 case $ac_envvar in #(
1225 '' | [0-9]* | *[!_$as_cr_alnum]* )
1226 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1227 esac
1228 eval $ac_envvar=\$ac_optarg
1229 export $ac_envvar ;;
1230
1231 *)
1232 # FIXME: should be removed in autoconf 3.0.
1233 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1234 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1235 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1236 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1237 ;;
1238
1239 esac
1240 done
1241
1242 if test -n "$ac_prev"; then
1243 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1244 as_fn_error $? "missing argument to $ac_option"
1245 fi
1246
1247 if test -n "$ac_unrecognized_opts"; then
1248 case $enable_option_checking in
1249 no) ;;
1250 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1251 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1252 esac
1253 fi
1254
1255 # Check all directory arguments for consistency.
1256 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1257 datadir sysconfdir sharedstatedir localstatedir includedir \
1258 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1259 libdir localedir mandir
1260 do
1261 eval ac_val=\$$ac_var
1262 # Remove trailing slashes.
1263 case $ac_val in
1264 */ )
1265 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1266 eval $ac_var=\$ac_val;;
1267 esac
1268 # Be sure to have absolute directory names.
1269 case $ac_val in
1270 [\\/$]* | ?:[\\/]* ) continue;;
1271 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1272 esac
1273 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1274 done
1275
1276 # There might be people who depend on the old broken behavior: `$host'
1277 # used to hold the argument of --host etc.
1278 # FIXME: To remove some day.
1279 build=$build_alias
1280 host=$host_alias
1281 target=$target_alias
1282
1283 # FIXME: To remove some day.
1284 if test "x$host_alias" != x; then
1285 if test "x$build_alias" = x; then
1286 cross_compiling=maybe
1287 elif test "x$build_alias" != "x$host_alias"; then
1288 cross_compiling=yes
1289 fi
1290 fi
1291
1292 ac_tool_prefix=
1293 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1294
1295 test "$silent" = yes && exec 6>/dev/null
1296
1297
1298 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1299 ac_ls_di=`ls -di .` &&
1300 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1301 as_fn_error $? "working directory cannot be determined"
1302 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1303 as_fn_error $? "pwd does not report name of working directory"
1304
1305
1306 # Find the source files, if location was not specified.
1307 if test -z "$srcdir"; then
1308 ac_srcdir_defaulted=yes
1309 # Try the directory containing this script, then the parent directory.
1310 ac_confdir=`$as_dirname -- "$as_myself" ||
1311 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1312 X"$as_myself" : 'X\(//\)[^/]' \| \
1313 X"$as_myself" : 'X\(//\)$' \| \
1314 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1315 $as_echo X"$as_myself" |
1316 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1317 s//\1/
1318 q
1319 }
1320 /^X\(\/\/\)[^/].*/{
1321 s//\1/
1322 q
1323 }
1324 /^X\(\/\/\)$/{
1325 s//\1/
1326 q
1327 }
1328 /^X\(\/\).*/{
1329 s//\1/
1330 q
1331 }
1332 s/.*/./; q'`
1333 srcdir=$ac_confdir
1334 if test ! -r "$srcdir/$ac_unique_file"; then
1335 srcdir=..
1336 fi
1337 else
1338 ac_srcdir_defaulted=no
1339 fi
1340 if test ! -r "$srcdir/$ac_unique_file"; then
1341 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1342 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1343 fi
1344 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1345 ac_abs_confdir=`(
1346 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1347 pwd)`
1348 # When building in place, set srcdir=.
1349 if test "$ac_abs_confdir" = "$ac_pwd"; then
1350 srcdir=.
1351 fi
1352 # Remove unnecessary trailing slashes from srcdir.
1353 # Double slashes in file names in object file debugging info
1354 # mess up M-x gdb in Emacs.
1355 case $srcdir in
1356 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1357 esac
1358 for ac_var in $ac_precious_vars; do
1359 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1360 eval ac_env_${ac_var}_value=\$${ac_var}
1361 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1362 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1363 done
1364
1365 #
1366 # Report the --help message.
1367 #
1368 if test "$ac_init_help" = "long"; then
1369 # Omit some internal or obsolete options to make the list less imposing.
1370 # This message is too long to be a string in the A/UX 3.1 sh.
1371 cat <<_ACEOF
1372 \`configure' configures gas 2.37.50 to adapt to many kinds of systems.
1373
1374 Usage: $0 [OPTION]... [VAR=VALUE]...
1375
1376 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1377 VAR=VALUE. See below for descriptions of some of the useful variables.
1378
1379 Defaults for the options are specified in brackets.
1380
1381 Configuration:
1382 -h, --help display this help and exit
1383 --help=short display options specific to this package
1384 --help=recursive display the short help of all the included packages
1385 -V, --version display version information and exit
1386 -q, --quiet, --silent do not print \`checking ...' messages
1387 --cache-file=FILE cache test results in FILE [disabled]
1388 -C, --config-cache alias for \`--cache-file=config.cache'
1389 -n, --no-create do not create output files
1390 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1391
1392 Installation directories:
1393 --prefix=PREFIX install architecture-independent files in PREFIX
1394 [$ac_default_prefix]
1395 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1396 [PREFIX]
1397
1398 By default, \`make install' will install all the files in
1399 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1400 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1401 for instance \`--prefix=\$HOME'.
1402
1403 For better control, use the options below.
1404
1405 Fine tuning of the installation directories:
1406 --bindir=DIR user executables [EPREFIX/bin]
1407 --sbindir=DIR system admin executables [EPREFIX/sbin]
1408 --libexecdir=DIR program executables [EPREFIX/libexec]
1409 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1410 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1411 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1412 --libdir=DIR object code libraries [EPREFIX/lib]
1413 --includedir=DIR C header files [PREFIX/include]
1414 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1415 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1416 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1417 --infodir=DIR info documentation [DATAROOTDIR/info]
1418 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1419 --mandir=DIR man documentation [DATAROOTDIR/man]
1420 --docdir=DIR documentation root [DATAROOTDIR/doc/gas]
1421 --htmldir=DIR html documentation [DOCDIR]
1422 --dvidir=DIR dvi documentation [DOCDIR]
1423 --pdfdir=DIR pdf documentation [DOCDIR]
1424 --psdir=DIR ps documentation [DOCDIR]
1425 _ACEOF
1426
1427 cat <<\_ACEOF
1428
1429 Program names:
1430 --program-prefix=PREFIX prepend PREFIX to installed program names
1431 --program-suffix=SUFFIX append SUFFIX to installed program names
1432 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1433
1434 System types:
1435 --build=BUILD configure for building on BUILD [guessed]
1436 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1437 --target=TARGET configure for building compilers for TARGET [HOST]
1438 _ACEOF
1439 fi
1440
1441 if test -n "$ac_init_help"; then
1442 case $ac_init_help in
1443 short | recursive ) echo "Configuration of gas 2.37.50:";;
1444 esac
1445 cat <<\_ACEOF
1446
1447 Optional Features:
1448 --disable-option-checking ignore unrecognized --enable/--with options
1449 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1450 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1451 --enable-silent-rules less verbose build output (undo: "make V=1")
1452 --disable-silent-rules verbose build output (undo: "make V=0")
1453 --enable-dependency-tracking
1454 do not reject slow dependency extractors
1455 --disable-dependency-tracking
1456 speeds up one-time build
1457 --enable-shared[=PKGS] build shared libraries [default=yes]
1458 --enable-static[=PKGS] build static libraries [default=yes]
1459 --enable-fast-install[=PKGS]
1460 optimize for fast installation [default=yes]
1461 --disable-libtool-lock avoid locking (might break parallel builds)
1462 --enable-plugins Enable support for plugins
1463 --disable-largefile omit support for large files
1464 --enable-targets alternative target configurations besides the primary
1465 --enable-checking enable run-time checks
1466 --enable-compressed-debug-sections={all,gas,none}
1467 compress debug sections by default
1468 --enable-x86-relax-relocations
1469 generate x86 relax relocations by default
1470 --enable-elf-stt-common generate ELF common symbols with STT_COMMON type by
1471 default
1472 --enable-generate-build-notes
1473 generate GNU Build notes if none are provided by the
1474 input
1475 --enable-mips-fix-loongson3-llsc
1476 enable MIPS fix Loongson3 LLSC errata
1477 --enable-x86-used-note generate GNU x86 used ISA and feature properties
1478 --enable-default-riscv-attribute
1479 generate RISC-V arch attribute by default
1480 --enable-werror treat compile warnings as errors
1481 --enable-build-warnings enable build-time compiler warnings
1482 --disable-nls do not use Native Language Support
1483 --enable-maintainer-mode
1484 enable make rules and dependencies not useful (and
1485 sometimes confusing) to the casual installer
1486
1487 Optional Packages:
1488 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1489 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1490 --with-pic try to use only PIC/non-PIC objects [default=use
1491 both]
1492 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1493 --with-cpu=CPU default cpu variant is CPU (currently only supported
1494 on ARC)
1495 --with-system-zlib use installed libz
1496
1497 Some influential environment variables:
1498 CC C compiler command
1499 CFLAGS C compiler flags
1500 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1501 nonstandard directory <lib dir>
1502 LIBS libraries to pass to the linker, e.g. -l<library>
1503 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1504 you have headers in a nonstandard directory <include dir>
1505 CPP C preprocessor
1506 YACC The `Yet Another Compiler Compiler' implementation to use.
1507 Defaults to the first program found out of: `bison -y', `byacc',
1508 `yacc'.
1509 YFLAGS The list of arguments that will be passed by default to $YACC.
1510 This script will default YFLAGS to the empty string to avoid a
1511 default value of `-d' given by some make applications.
1512
1513 Use these variables to override the choices made by `configure' or to help
1514 it to find libraries and programs with nonstandard names/locations.
1515
1516 Report bugs to the package provider.
1517 _ACEOF
1518 ac_status=$?
1519 fi
1520
1521 if test "$ac_init_help" = "recursive"; then
1522 # If there are subdirs, report their specific --help.
1523 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1524 test -d "$ac_dir" ||
1525 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1526 continue
1527 ac_builddir=.
1528
1529 case "$ac_dir" in
1530 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1531 *)
1532 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1533 # A ".." for each directory in $ac_dir_suffix.
1534 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1535 case $ac_top_builddir_sub in
1536 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1537 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1538 esac ;;
1539 esac
1540 ac_abs_top_builddir=$ac_pwd
1541 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1542 # for backward compatibility:
1543 ac_top_builddir=$ac_top_build_prefix
1544
1545 case $srcdir in
1546 .) # We are building in place.
1547 ac_srcdir=.
1548 ac_top_srcdir=$ac_top_builddir_sub
1549 ac_abs_top_srcdir=$ac_pwd ;;
1550 [\\/]* | ?:[\\/]* ) # Absolute name.
1551 ac_srcdir=$srcdir$ac_dir_suffix;
1552 ac_top_srcdir=$srcdir
1553 ac_abs_top_srcdir=$srcdir ;;
1554 *) # Relative name.
1555 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1556 ac_top_srcdir=$ac_top_build_prefix$srcdir
1557 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1558 esac
1559 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1560
1561 cd "$ac_dir" || { ac_status=$?; continue; }
1562 # Check for guested configure.
1563 if test -f "$ac_srcdir/configure.gnu"; then
1564 echo &&
1565 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1566 elif test -f "$ac_srcdir/configure"; then
1567 echo &&
1568 $SHELL "$ac_srcdir/configure" --help=recursive
1569 else
1570 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1571 fi || ac_status=$?
1572 cd "$ac_pwd" || { ac_status=$?; break; }
1573 done
1574 fi
1575
1576 test -n "$ac_init_help" && exit $ac_status
1577 if $ac_init_version; then
1578 cat <<\_ACEOF
1579 gas configure 2.37.50
1580 generated by GNU Autoconf 2.69
1581
1582 Copyright (C) 2012 Free Software Foundation, Inc.
1583 This configure script is free software; the Free Software Foundation
1584 gives unlimited permission to copy, distribute and modify it.
1585 _ACEOF
1586 exit
1587 fi
1588
1589 ## ------------------------ ##
1590 ## Autoconf initialization. ##
1591 ## ------------------------ ##
1592
1593 # ac_fn_c_try_compile LINENO
1594 # --------------------------
1595 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1596 ac_fn_c_try_compile ()
1597 {
1598 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1599 rm -f conftest.$ac_objext
1600 if { { ac_try="$ac_compile"
1601 case "(($ac_try" in
1602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1603 *) ac_try_echo=$ac_try;;
1604 esac
1605 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1606 $as_echo "$ac_try_echo"; } >&5
1607 (eval "$ac_compile") 2>conftest.err
1608 ac_status=$?
1609 if test -s conftest.err; then
1610 grep -v '^ *+' conftest.err >conftest.er1
1611 cat conftest.er1 >&5
1612 mv -f conftest.er1 conftest.err
1613 fi
1614 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1615 test $ac_status = 0; } && {
1616 test -z "$ac_c_werror_flag" ||
1617 test ! -s conftest.err
1618 } && test -s conftest.$ac_objext; then :
1619 ac_retval=0
1620 else
1621 $as_echo "$as_me: failed program was:" >&5
1622 sed 's/^/| /' conftest.$ac_ext >&5
1623
1624 ac_retval=1
1625 fi
1626 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1627 as_fn_set_status $ac_retval
1628
1629 } # ac_fn_c_try_compile
1630
1631 # ac_fn_c_try_cpp LINENO
1632 # ----------------------
1633 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1634 ac_fn_c_try_cpp ()
1635 {
1636 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1637 if { { ac_try="$ac_cpp conftest.$ac_ext"
1638 case "(($ac_try" in
1639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1640 *) ac_try_echo=$ac_try;;
1641 esac
1642 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1643 $as_echo "$ac_try_echo"; } >&5
1644 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1645 ac_status=$?
1646 if test -s conftest.err; then
1647 grep -v '^ *+' conftest.err >conftest.er1
1648 cat conftest.er1 >&5
1649 mv -f conftest.er1 conftest.err
1650 fi
1651 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1652 test $ac_status = 0; } > conftest.i && {
1653 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1654 test ! -s conftest.err
1655 }; then :
1656 ac_retval=0
1657 else
1658 $as_echo "$as_me: failed program was:" >&5
1659 sed 's/^/| /' conftest.$ac_ext >&5
1660
1661 ac_retval=1
1662 fi
1663 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1664 as_fn_set_status $ac_retval
1665
1666 } # ac_fn_c_try_cpp
1667
1668 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1669 # -------------------------------------------------------
1670 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1671 # the include files in INCLUDES and setting the cache variable VAR
1672 # accordingly.
1673 ac_fn_c_check_header_mongrel ()
1674 {
1675 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1676 if eval \${$3+:} false; then :
1677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1678 $as_echo_n "checking for $2... " >&6; }
1679 if eval \${$3+:} false; then :
1680 $as_echo_n "(cached) " >&6
1681 fi
1682 eval ac_res=\$$3
1683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1684 $as_echo "$ac_res" >&6; }
1685 else
1686 # Is the header compilable?
1687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1688 $as_echo_n "checking $2 usability... " >&6; }
1689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1690 /* end confdefs.h. */
1691 $4
1692 #include <$2>
1693 _ACEOF
1694 if ac_fn_c_try_compile "$LINENO"; then :
1695 ac_header_compiler=yes
1696 else
1697 ac_header_compiler=no
1698 fi
1699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1701 $as_echo "$ac_header_compiler" >&6; }
1702
1703 # Is the header present?
1704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1705 $as_echo_n "checking $2 presence... " >&6; }
1706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1707 /* end confdefs.h. */
1708 #include <$2>
1709 _ACEOF
1710 if ac_fn_c_try_cpp "$LINENO"; then :
1711 ac_header_preproc=yes
1712 else
1713 ac_header_preproc=no
1714 fi
1715 rm -f conftest.err conftest.i conftest.$ac_ext
1716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1717 $as_echo "$ac_header_preproc" >&6; }
1718
1719 # So? What about this header?
1720 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1721 yes:no: )
1722 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1723 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1724 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1725 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1726 ;;
1727 no:yes:* )
1728 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1729 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1730 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1731 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1732 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1733 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1734 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1735 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1736 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1737 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1738 ;;
1739 esac
1740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1741 $as_echo_n "checking for $2... " >&6; }
1742 if eval \${$3+:} false; then :
1743 $as_echo_n "(cached) " >&6
1744 else
1745 eval "$3=\$ac_header_compiler"
1746 fi
1747 eval ac_res=\$$3
1748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1749 $as_echo "$ac_res" >&6; }
1750 fi
1751 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1752
1753 } # ac_fn_c_check_header_mongrel
1754
1755 # ac_fn_c_try_run LINENO
1756 # ----------------------
1757 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1758 # that executables *can* be run.
1759 ac_fn_c_try_run ()
1760 {
1761 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1762 if { { ac_try="$ac_link"
1763 case "(($ac_try" in
1764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1765 *) ac_try_echo=$ac_try;;
1766 esac
1767 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1768 $as_echo "$ac_try_echo"; } >&5
1769 (eval "$ac_link") 2>&5
1770 ac_status=$?
1771 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1772 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1773 { { case "(($ac_try" in
1774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1775 *) ac_try_echo=$ac_try;;
1776 esac
1777 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1778 $as_echo "$ac_try_echo"; } >&5
1779 (eval "$ac_try") 2>&5
1780 ac_status=$?
1781 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1782 test $ac_status = 0; }; }; then :
1783 ac_retval=0
1784 else
1785 $as_echo "$as_me: program exited with status $ac_status" >&5
1786 $as_echo "$as_me: failed program was:" >&5
1787 sed 's/^/| /' conftest.$ac_ext >&5
1788
1789 ac_retval=$ac_status
1790 fi
1791 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1792 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1793 as_fn_set_status $ac_retval
1794
1795 } # ac_fn_c_try_run
1796
1797 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1798 # -------------------------------------------------------
1799 # Tests whether HEADER exists and can be compiled using the include files in
1800 # INCLUDES, setting the cache variable VAR accordingly.
1801 ac_fn_c_check_header_compile ()
1802 {
1803 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1805 $as_echo_n "checking for $2... " >&6; }
1806 if eval \${$3+:} false; then :
1807 $as_echo_n "(cached) " >&6
1808 else
1809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1810 /* end confdefs.h. */
1811 $4
1812 #include <$2>
1813 _ACEOF
1814 if ac_fn_c_try_compile "$LINENO"; then :
1815 eval "$3=yes"
1816 else
1817 eval "$3=no"
1818 fi
1819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1820 fi
1821 eval ac_res=\$$3
1822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1823 $as_echo "$ac_res" >&6; }
1824 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1825
1826 } # ac_fn_c_check_header_compile
1827
1828 # ac_fn_c_try_link LINENO
1829 # -----------------------
1830 # Try to link conftest.$ac_ext, and return whether this succeeded.
1831 ac_fn_c_try_link ()
1832 {
1833 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1834 rm -f conftest.$ac_objext conftest$ac_exeext
1835 if { { ac_try="$ac_link"
1836 case "(($ac_try" in
1837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1838 *) ac_try_echo=$ac_try;;
1839 esac
1840 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1841 $as_echo "$ac_try_echo"; } >&5
1842 (eval "$ac_link") 2>conftest.err
1843 ac_status=$?
1844 if test -s conftest.err; then
1845 grep -v '^ *+' conftest.err >conftest.er1
1846 cat conftest.er1 >&5
1847 mv -f conftest.er1 conftest.err
1848 fi
1849 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1850 test $ac_status = 0; } && {
1851 test -z "$ac_c_werror_flag" ||
1852 test ! -s conftest.err
1853 } && test -s conftest$ac_exeext && {
1854 test "$cross_compiling" = yes ||
1855 test -x conftest$ac_exeext
1856 }; then :
1857 ac_retval=0
1858 else
1859 $as_echo "$as_me: failed program was:" >&5
1860 sed 's/^/| /' conftest.$ac_ext >&5
1861
1862 ac_retval=1
1863 fi
1864 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1865 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1866 # interfere with the next link command; also delete a directory that is
1867 # left behind by Apple's compiler. We do this before executing the actions.
1868 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1869 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1870 as_fn_set_status $ac_retval
1871
1872 } # ac_fn_c_try_link
1873
1874 # ac_fn_c_check_func LINENO FUNC VAR
1875 # ----------------------------------
1876 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1877 ac_fn_c_check_func ()
1878 {
1879 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1881 $as_echo_n "checking for $2... " >&6; }
1882 if eval \${$3+:} false; then :
1883 $as_echo_n "(cached) " >&6
1884 else
1885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1886 /* end confdefs.h. */
1887 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1888 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1889 #define $2 innocuous_$2
1890
1891 /* System header to define __stub macros and hopefully few prototypes,
1892 which can conflict with char $2 (); below.
1893 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1894 <limits.h> exists even on freestanding compilers. */
1895
1896 #ifdef __STDC__
1897 # include <limits.h>
1898 #else
1899 # include <assert.h>
1900 #endif
1901
1902 #undef $2
1903
1904 /* Override any GCC internal prototype to avoid an error.
1905 Use char because int might match the return type of a GCC
1906 builtin and then its argument prototype would still apply. */
1907 #ifdef __cplusplus
1908 extern "C"
1909 #endif
1910 char $2 ();
1911 /* The GNU C library defines this for functions which it implements
1912 to always fail with ENOSYS. Some functions are actually named
1913 something starting with __ and the normal name is an alias. */
1914 #if defined __stub_$2 || defined __stub___$2
1915 choke me
1916 #endif
1917
1918 int
1919 main ()
1920 {
1921 return $2 ();
1922 ;
1923 return 0;
1924 }
1925 _ACEOF
1926 if ac_fn_c_try_link "$LINENO"; then :
1927 eval "$3=yes"
1928 else
1929 eval "$3=no"
1930 fi
1931 rm -f core conftest.err conftest.$ac_objext \
1932 conftest$ac_exeext conftest.$ac_ext
1933 fi
1934 eval ac_res=\$$3
1935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1936 $as_echo "$ac_res" >&6; }
1937 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1938
1939 } # ac_fn_c_check_func
1940
1941 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1942 # ---------------------------------------------
1943 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1944 # accordingly.
1945 ac_fn_c_check_decl ()
1946 {
1947 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1948 as_decl_name=`echo $2|sed 's/ *(.*//'`
1949 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1951 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1952 if eval \${$3+:} false; then :
1953 $as_echo_n "(cached) " >&6
1954 else
1955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1956 /* end confdefs.h. */
1957 $4
1958 int
1959 main ()
1960 {
1961 #ifndef $as_decl_name
1962 #ifdef __cplusplus
1963 (void) $as_decl_use;
1964 #else
1965 (void) $as_decl_name;
1966 #endif
1967 #endif
1968
1969 ;
1970 return 0;
1971 }
1972 _ACEOF
1973 if ac_fn_c_try_compile "$LINENO"; then :
1974 eval "$3=yes"
1975 else
1976 eval "$3=no"
1977 fi
1978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1979 fi
1980 eval ac_res=\$$3
1981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1982 $as_echo "$ac_res" >&6; }
1983 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1984
1985 } # ac_fn_c_check_decl
1986 cat >config.log <<_ACEOF
1987 This file contains any messages produced by compilers while
1988 running configure, to aid debugging if configure makes a mistake.
1989
1990 It was created by gas $as_me 2.37.50, which was
1991 generated by GNU Autoconf 2.69. Invocation command line was
1992
1993 $ $0 $@
1994
1995 _ACEOF
1996 exec 5>>config.log
1997 {
1998 cat <<_ASUNAME
1999 ## --------- ##
2000 ## Platform. ##
2001 ## --------- ##
2002
2003 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2004 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2005 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2006 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2007 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2008
2009 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2010 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2011
2012 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2013 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2014 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2015 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2016 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2017 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2018 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2019
2020 _ASUNAME
2021
2022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2023 for as_dir in $PATH
2024 do
2025 IFS=$as_save_IFS
2026 test -z "$as_dir" && as_dir=.
2027 $as_echo "PATH: $as_dir"
2028 done
2029 IFS=$as_save_IFS
2030
2031 } >&5
2032
2033 cat >&5 <<_ACEOF
2034
2035
2036 ## ----------- ##
2037 ## Core tests. ##
2038 ## ----------- ##
2039
2040 _ACEOF
2041
2042
2043 # Keep a trace of the command line.
2044 # Strip out --no-create and --no-recursion so they do not pile up.
2045 # Strip out --silent because we don't want to record it for future runs.
2046 # Also quote any args containing shell meta-characters.
2047 # Make two passes to allow for proper duplicate-argument suppression.
2048 ac_configure_args=
2049 ac_configure_args0=
2050 ac_configure_args1=
2051 ac_must_keep_next=false
2052 for ac_pass in 1 2
2053 do
2054 for ac_arg
2055 do
2056 case $ac_arg in
2057 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2058 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2059 | -silent | --silent | --silen | --sile | --sil)
2060 continue ;;
2061 *\'*)
2062 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2063 esac
2064 case $ac_pass in
2065 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2066 2)
2067 as_fn_append ac_configure_args1 " '$ac_arg'"
2068 if test $ac_must_keep_next = true; then
2069 ac_must_keep_next=false # Got value, back to normal.
2070 else
2071 case $ac_arg in
2072 *=* | --config-cache | -C | -disable-* | --disable-* \
2073 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2074 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2075 | -with-* | --with-* | -without-* | --without-* | --x)
2076 case "$ac_configure_args0 " in
2077 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2078 esac
2079 ;;
2080 -* ) ac_must_keep_next=true ;;
2081 esac
2082 fi
2083 as_fn_append ac_configure_args " '$ac_arg'"
2084 ;;
2085 esac
2086 done
2087 done
2088 { ac_configure_args0=; unset ac_configure_args0;}
2089 { ac_configure_args1=; unset ac_configure_args1;}
2090
2091 # When interrupted or exit'd, cleanup temporary files, and complete
2092 # config.log. We remove comments because anyway the quotes in there
2093 # would cause problems or look ugly.
2094 # WARNING: Use '\'' to represent an apostrophe within the trap.
2095 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2096 trap 'exit_status=$?
2097 # Save into config.log some information that might help in debugging.
2098 {
2099 echo
2100
2101 $as_echo "## ---------------- ##
2102 ## Cache variables. ##
2103 ## ---------------- ##"
2104 echo
2105 # The following way of writing the cache mishandles newlines in values,
2106 (
2107 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2108 eval ac_val=\$$ac_var
2109 case $ac_val in #(
2110 *${as_nl}*)
2111 case $ac_var in #(
2112 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2113 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2114 esac
2115 case $ac_var in #(
2116 _ | IFS | as_nl) ;; #(
2117 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2118 *) { eval $ac_var=; unset $ac_var;} ;;
2119 esac ;;
2120 esac
2121 done
2122 (set) 2>&1 |
2123 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2124 *${as_nl}ac_space=\ *)
2125 sed -n \
2126 "s/'\''/'\''\\\\'\'''\''/g;
2127 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2128 ;; #(
2129 *)
2130 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2131 ;;
2132 esac |
2133 sort
2134 )
2135 echo
2136
2137 $as_echo "## ----------------- ##
2138 ## Output variables. ##
2139 ## ----------------- ##"
2140 echo
2141 for ac_var in $ac_subst_vars
2142 do
2143 eval ac_val=\$$ac_var
2144 case $ac_val in
2145 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2146 esac
2147 $as_echo "$ac_var='\''$ac_val'\''"
2148 done | sort
2149 echo
2150
2151 if test -n "$ac_subst_files"; then
2152 $as_echo "## ------------------- ##
2153 ## File substitutions. ##
2154 ## ------------------- ##"
2155 echo
2156 for ac_var in $ac_subst_files
2157 do
2158 eval ac_val=\$$ac_var
2159 case $ac_val in
2160 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2161 esac
2162 $as_echo "$ac_var='\''$ac_val'\''"
2163 done | sort
2164 echo
2165 fi
2166
2167 if test -s confdefs.h; then
2168 $as_echo "## ----------- ##
2169 ## confdefs.h. ##
2170 ## ----------- ##"
2171 echo
2172 cat confdefs.h
2173 echo
2174 fi
2175 test "$ac_signal" != 0 &&
2176 $as_echo "$as_me: caught signal $ac_signal"
2177 $as_echo "$as_me: exit $exit_status"
2178 } >&5
2179 rm -f core *.core core.conftest.* &&
2180 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2181 exit $exit_status
2182 ' 0
2183 for ac_signal in 1 2 13 15; do
2184 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2185 done
2186 ac_signal=0
2187
2188 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2189 rm -f -r conftest* confdefs.h
2190
2191 $as_echo "/* confdefs.h */" > confdefs.h
2192
2193 # Predefined preprocessor variables.
2194
2195 cat >>confdefs.h <<_ACEOF
2196 #define PACKAGE_NAME "$PACKAGE_NAME"
2197 _ACEOF
2198
2199 cat >>confdefs.h <<_ACEOF
2200 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2201 _ACEOF
2202
2203 cat >>confdefs.h <<_ACEOF
2204 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2205 _ACEOF
2206
2207 cat >>confdefs.h <<_ACEOF
2208 #define PACKAGE_STRING "$PACKAGE_STRING"
2209 _ACEOF
2210
2211 cat >>confdefs.h <<_ACEOF
2212 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2213 _ACEOF
2214
2215 cat >>confdefs.h <<_ACEOF
2216 #define PACKAGE_URL "$PACKAGE_URL"
2217 _ACEOF
2218
2219
2220 # Let the site file select an alternate cache file if it wants to.
2221 # Prefer an explicitly selected file to automatically selected ones.
2222 ac_site_file1=NONE
2223 ac_site_file2=NONE
2224 if test -n "$CONFIG_SITE"; then
2225 # We do not want a PATH search for config.site.
2226 case $CONFIG_SITE in #((
2227 -*) ac_site_file1=./$CONFIG_SITE;;
2228 */*) ac_site_file1=$CONFIG_SITE;;
2229 *) ac_site_file1=./$CONFIG_SITE;;
2230 esac
2231 elif test "x$prefix" != xNONE; then
2232 ac_site_file1=$prefix/share/config.site
2233 ac_site_file2=$prefix/etc/config.site
2234 else
2235 ac_site_file1=$ac_default_prefix/share/config.site
2236 ac_site_file2=$ac_default_prefix/etc/config.site
2237 fi
2238 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2239 do
2240 test "x$ac_site_file" = xNONE && continue
2241 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2242 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2243 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2244 sed 's/^/| /' "$ac_site_file" >&5
2245 . "$ac_site_file" \
2246 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2247 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2248 as_fn_error $? "failed to load site script $ac_site_file
2249 See \`config.log' for more details" "$LINENO" 5; }
2250 fi
2251 done
2252
2253 if test -r "$cache_file"; then
2254 # Some versions of bash will fail to source /dev/null (special files
2255 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2256 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2257 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2258 $as_echo "$as_me: loading cache $cache_file" >&6;}
2259 case $cache_file in
2260 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2261 *) . "./$cache_file";;
2262 esac
2263 fi
2264 else
2265 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2266 $as_echo "$as_me: creating cache $cache_file" >&6;}
2267 >$cache_file
2268 fi
2269
2270 # Check that the precious variables saved in the cache have kept the same
2271 # value.
2272 ac_cache_corrupted=false
2273 for ac_var in $ac_precious_vars; do
2274 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2275 eval ac_new_set=\$ac_env_${ac_var}_set
2276 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2277 eval ac_new_val=\$ac_env_${ac_var}_value
2278 case $ac_old_set,$ac_new_set in
2279 set,)
2280 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2281 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2282 ac_cache_corrupted=: ;;
2283 ,set)
2284 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2285 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2286 ac_cache_corrupted=: ;;
2287 ,);;
2288 *)
2289 if test "x$ac_old_val" != "x$ac_new_val"; then
2290 # differences in whitespace do not lead to failure.
2291 ac_old_val_w=`echo x $ac_old_val`
2292 ac_new_val_w=`echo x $ac_new_val`
2293 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2294 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2295 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2296 ac_cache_corrupted=:
2297 else
2298 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2299 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2300 eval $ac_var=\$ac_old_val
2301 fi
2302 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2303 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2304 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2305 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2306 fi;;
2307 esac
2308 # Pass precious variables to config.status.
2309 if test "$ac_new_set" = set; then
2310 case $ac_new_val in
2311 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2312 *) ac_arg=$ac_var=$ac_new_val ;;
2313 esac
2314 case " $ac_configure_args " in
2315 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2316 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2317 esac
2318 fi
2319 done
2320 if $ac_cache_corrupted; then
2321 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2322 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2323 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2324 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2325 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2326 fi
2327 ## -------------------- ##
2328 ## Main body of script. ##
2329 ## -------------------- ##
2330
2331 ac_ext=c
2332 ac_cpp='$CPP $CPPFLAGS'
2333 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2334 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2335 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2336
2337
2338
2339
2340
2341
2342
2343 ac_aux_dir=
2344 for ac_dir in .. "$srcdir"/..; do
2345 if test -f "$ac_dir/install-sh"; then
2346 ac_aux_dir=$ac_dir
2347 ac_install_sh="$ac_aux_dir/install-sh -c"
2348 break
2349 elif test -f "$ac_dir/install.sh"; then
2350 ac_aux_dir=$ac_dir
2351 ac_install_sh="$ac_aux_dir/install.sh -c"
2352 break
2353 elif test -f "$ac_dir/shtool"; then
2354 ac_aux_dir=$ac_dir
2355 ac_install_sh="$ac_aux_dir/shtool install -c"
2356 break
2357 fi
2358 done
2359 if test -z "$ac_aux_dir"; then
2360 as_fn_error $? "cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
2361 fi
2362
2363 # These three variables are undocumented and unsupported,
2364 # and are intended to be withdrawn in a future Autoconf release.
2365 # They can cause serious problems if a builder's source tree is in a directory
2366 # whose full name contains unusual characters.
2367 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2368 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2369 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2370
2371
2372 # Make sure we can run config.sub.
2373 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2374 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2375
2376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2377 $as_echo_n "checking build system type... " >&6; }
2378 if ${ac_cv_build+:} false; then :
2379 $as_echo_n "(cached) " >&6
2380 else
2381 ac_build_alias=$build_alias
2382 test "x$ac_build_alias" = x &&
2383 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2384 test "x$ac_build_alias" = x &&
2385 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2386 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2387 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2388
2389 fi
2390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2391 $as_echo "$ac_cv_build" >&6; }
2392 case $ac_cv_build in
2393 *-*-*) ;;
2394 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2395 esac
2396 build=$ac_cv_build
2397 ac_save_IFS=$IFS; IFS='-'
2398 set x $ac_cv_build
2399 shift
2400 build_cpu=$1
2401 build_vendor=$2
2402 shift; shift
2403 # Remember, the first character of IFS is used to create $*,
2404 # except with old shells:
2405 build_os=$*
2406 IFS=$ac_save_IFS
2407 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2408
2409
2410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2411 $as_echo_n "checking host system type... " >&6; }
2412 if ${ac_cv_host+:} false; then :
2413 $as_echo_n "(cached) " >&6
2414 else
2415 if test "x$host_alias" = x; then
2416 ac_cv_host=$ac_cv_build
2417 else
2418 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2419 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2420 fi
2421
2422 fi
2423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2424 $as_echo "$ac_cv_host" >&6; }
2425 case $ac_cv_host in
2426 *-*-*) ;;
2427 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2428 esac
2429 host=$ac_cv_host
2430 ac_save_IFS=$IFS; IFS='-'
2431 set x $ac_cv_host
2432 shift
2433 host_cpu=$1
2434 host_vendor=$2
2435 shift; shift
2436 # Remember, the first character of IFS is used to create $*,
2437 # except with old shells:
2438 host_os=$*
2439 IFS=$ac_save_IFS
2440 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2441
2442
2443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2444 $as_echo_n "checking target system type... " >&6; }
2445 if ${ac_cv_target+:} false; then :
2446 $as_echo_n "(cached) " >&6
2447 else
2448 if test "x$target_alias" = x; then
2449 ac_cv_target=$ac_cv_host
2450 else
2451 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2452 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2453 fi
2454
2455 fi
2456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2457 $as_echo "$ac_cv_target" >&6; }
2458 case $ac_cv_target in
2459 *-*-*) ;;
2460 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2461 esac
2462 target=$ac_cv_target
2463 ac_save_IFS=$IFS; IFS='-'
2464 set x $ac_cv_target
2465 shift
2466 target_cpu=$1
2467 target_vendor=$2
2468 shift; shift
2469 # Remember, the first character of IFS is used to create $*,
2470 # except with old shells:
2471 target_os=$*
2472 IFS=$ac_save_IFS
2473 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2474
2475
2476 # The aliases save the names the user supplied, while $host etc.
2477 # will get canonicalized.
2478 test -n "$target_alias" &&
2479 test "$program_prefix$program_suffix$program_transform_name" = \
2480 NONENONEs,x,x, &&
2481 program_prefix=${target_alias}-
2482
2483 am__api_version='1.15'
2484
2485 # Find a good install program. We prefer a C program (faster),
2486 # so one script is as good as another. But avoid the broken or
2487 # incompatible versions:
2488 # SysV /etc/install, /usr/sbin/install
2489 # SunOS /usr/etc/install
2490 # IRIX /sbin/install
2491 # AIX /bin/install
2492 # AmigaOS /C/install, which installs bootblocks on floppy discs
2493 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2494 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2495 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2496 # OS/2's system install, which has a completely different semantic
2497 # ./install, which can be erroneously created by make from ./install.sh.
2498 # Reject install programs that cannot install multiple files.
2499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2500 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2501 if test -z "$INSTALL"; then
2502 if ${ac_cv_path_install+:} false; then :
2503 $as_echo_n "(cached) " >&6
2504 else
2505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2506 for as_dir in $PATH
2507 do
2508 IFS=$as_save_IFS
2509 test -z "$as_dir" && as_dir=.
2510 # Account for people who put trailing slashes in PATH elements.
2511 case $as_dir/ in #((
2512 ./ | .// | /[cC]/* | \
2513 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2514 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2515 /usr/ucb/* ) ;;
2516 *)
2517 # OSF1 and SCO ODT 3.0 have their own names for install.
2518 # Don't use installbsd from OSF since it installs stuff as root
2519 # by default.
2520 for ac_prog in ginstall scoinst install; do
2521 for ac_exec_ext in '' $ac_executable_extensions; do
2522 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2523 if test $ac_prog = install &&
2524 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2525 # AIX install. It has an incompatible calling convention.
2526 :
2527 elif test $ac_prog = install &&
2528 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2529 # program-specific install script used by HP pwplus--don't use.
2530 :
2531 else
2532 rm -rf conftest.one conftest.two conftest.dir
2533 echo one > conftest.one
2534 echo two > conftest.two
2535 mkdir conftest.dir
2536 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2537 test -s conftest.one && test -s conftest.two &&
2538 test -s conftest.dir/conftest.one &&
2539 test -s conftest.dir/conftest.two
2540 then
2541 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2542 break 3
2543 fi
2544 fi
2545 fi
2546 done
2547 done
2548 ;;
2549 esac
2550
2551 done
2552 IFS=$as_save_IFS
2553
2554 rm -rf conftest.one conftest.two conftest.dir
2555
2556 fi
2557 if test "${ac_cv_path_install+set}" = set; then
2558 INSTALL=$ac_cv_path_install
2559 else
2560 # As a last resort, use the slow shell script. Don't cache a
2561 # value for INSTALL within a source directory, because that will
2562 # break other packages using the cache if that directory is
2563 # removed, or if the value is a relative name.
2564 INSTALL=$ac_install_sh
2565 fi
2566 fi
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2568 $as_echo "$INSTALL" >&6; }
2569
2570 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2571 # It thinks the first close brace ends the variable substitution.
2572 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2573
2574 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2575
2576 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2577
2578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2579 $as_echo_n "checking whether build environment is sane... " >&6; }
2580 # Reject unsafe characters in $srcdir or the absolute working directory
2581 # name. Accept space and tab only in the latter.
2582 am_lf='
2583 '
2584 case `pwd` in
2585 *[\\\"\#\$\&\'\`$am_lf]*)
2586 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2587 esac
2588 case $srcdir in
2589 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2590 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2591 esac
2592
2593 # Do 'set' in a subshell so we don't clobber the current shell's
2594 # arguments. Must try -L first in case configure is actually a
2595 # symlink; some systems play weird games with the mod time of symlinks
2596 # (eg FreeBSD returns the mod time of the symlink's containing
2597 # directory).
2598 if (
2599 am_has_slept=no
2600 for am_try in 1 2; do
2601 echo "timestamp, slept: $am_has_slept" > conftest.file
2602 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2603 if test "$*" = "X"; then
2604 # -L didn't work.
2605 set X `ls -t "$srcdir/configure" conftest.file`
2606 fi
2607 if test "$*" != "X $srcdir/configure conftest.file" \
2608 && test "$*" != "X conftest.file $srcdir/configure"; then
2609
2610 # If neither matched, then we have a broken ls. This can happen
2611 # if, for instance, CONFIG_SHELL is bash and it inherits a
2612 # broken ls alias from the environment. This has actually
2613 # happened. Such a system could not be considered "sane".
2614 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2615 alias in your environment" "$LINENO" 5
2616 fi
2617 if test "$2" = conftest.file || test $am_try -eq 2; then
2618 break
2619 fi
2620 # Just in case.
2621 sleep 1
2622 am_has_slept=yes
2623 done
2624 test "$2" = conftest.file
2625 )
2626 then
2627 # Ok.
2628 :
2629 else
2630 as_fn_error $? "newly created file is older than distributed files!
2631 Check your system clock" "$LINENO" 5
2632 fi
2633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2634 $as_echo "yes" >&6; }
2635 # If we didn't sleep, we still need to ensure time stamps of config.status and
2636 # generated files are strictly newer.
2637 am_sleep_pid=
2638 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2639 ( sleep 1 ) &
2640 am_sleep_pid=$!
2641 fi
2642
2643 rm -f conftest.file
2644
2645 test "$program_prefix" != NONE &&
2646 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2647 # Use a double $ so make ignores it.
2648 test "$program_suffix" != NONE &&
2649 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2650 # Double any \ or $.
2651 # By default was `s,x,x', remove it if useless.
2652 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2653 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2654
2655 # Expand $ac_aux_dir to an absolute path.
2656 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2657
2658 if test x"${MISSING+set}" != xset; then
2659 case $am_aux_dir in
2660 *\ * | *\ *)
2661 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2662 *)
2663 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2664 esac
2665 fi
2666 # Use eval to expand $SHELL
2667 if eval "$MISSING --is-lightweight"; then
2668 am_missing_run="$MISSING "
2669 else
2670 am_missing_run=
2671 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2672 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2673 fi
2674
2675 if test x"${install_sh+set}" != xset; then
2676 case $am_aux_dir in
2677 *\ * | *\ *)
2678 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2679 *)
2680 install_sh="\${SHELL} $am_aux_dir/install-sh"
2681 esac
2682 fi
2683
2684 # Installed binaries are usually stripped using 'strip' when the user
2685 # run "make install-strip". However 'strip' might not be the right
2686 # tool to use in cross-compilation environments, therefore Automake
2687 # will honor the 'STRIP' environment variable to overrule this program.
2688 if test "$cross_compiling" != no; then
2689 if test -n "$ac_tool_prefix"; then
2690 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2691 set dummy ${ac_tool_prefix}strip; ac_word=$2
2692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2693 $as_echo_n "checking for $ac_word... " >&6; }
2694 if ${ac_cv_prog_STRIP+:} false; then :
2695 $as_echo_n "(cached) " >&6
2696 else
2697 if test -n "$STRIP"; then
2698 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2699 else
2700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2701 for as_dir in $PATH
2702 do
2703 IFS=$as_save_IFS
2704 test -z "$as_dir" && as_dir=.
2705 for ac_exec_ext in '' $ac_executable_extensions; do
2706 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2707 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2709 break 2
2710 fi
2711 done
2712 done
2713 IFS=$as_save_IFS
2714
2715 fi
2716 fi
2717 STRIP=$ac_cv_prog_STRIP
2718 if test -n "$STRIP"; then
2719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2720 $as_echo "$STRIP" >&6; }
2721 else
2722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2723 $as_echo "no" >&6; }
2724 fi
2725
2726
2727 fi
2728 if test -z "$ac_cv_prog_STRIP"; then
2729 ac_ct_STRIP=$STRIP
2730 # Extract the first word of "strip", so it can be a program name with args.
2731 set dummy strip; ac_word=$2
2732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2733 $as_echo_n "checking for $ac_word... " >&6; }
2734 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2735 $as_echo_n "(cached) " >&6
2736 else
2737 if test -n "$ac_ct_STRIP"; then
2738 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2739 else
2740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2741 for as_dir in $PATH
2742 do
2743 IFS=$as_save_IFS
2744 test -z "$as_dir" && as_dir=.
2745 for ac_exec_ext in '' $ac_executable_extensions; do
2746 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2747 ac_cv_prog_ac_ct_STRIP="strip"
2748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2749 break 2
2750 fi
2751 done
2752 done
2753 IFS=$as_save_IFS
2754
2755 fi
2756 fi
2757 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2758 if test -n "$ac_ct_STRIP"; then
2759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2760 $as_echo "$ac_ct_STRIP" >&6; }
2761 else
2762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2763 $as_echo "no" >&6; }
2764 fi
2765
2766 if test "x$ac_ct_STRIP" = x; then
2767 STRIP=":"
2768 else
2769 case $cross_compiling:$ac_tool_warned in
2770 yes:)
2771 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2772 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2773 ac_tool_warned=yes ;;
2774 esac
2775 STRIP=$ac_ct_STRIP
2776 fi
2777 else
2778 STRIP="$ac_cv_prog_STRIP"
2779 fi
2780
2781 fi
2782 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2783
2784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2785 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2786 if test -z "$MKDIR_P"; then
2787 if ${ac_cv_path_mkdir+:} false; then :
2788 $as_echo_n "(cached) " >&6
2789 else
2790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2791 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2792 do
2793 IFS=$as_save_IFS
2794 test -z "$as_dir" && as_dir=.
2795 for ac_prog in mkdir gmkdir; do
2796 for ac_exec_ext in '' $ac_executable_extensions; do
2797 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2798 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2799 'mkdir (GNU coreutils) '* | \
2800 'mkdir (coreutils) '* | \
2801 'mkdir (fileutils) '4.1*)
2802 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2803 break 3;;
2804 esac
2805 done
2806 done
2807 done
2808 IFS=$as_save_IFS
2809
2810 fi
2811
2812 test -d ./--version && rmdir ./--version
2813 if test "${ac_cv_path_mkdir+set}" = set; then
2814 MKDIR_P="$ac_cv_path_mkdir -p"
2815 else
2816 # As a last resort, use the slow shell script. Don't cache a
2817 # value for MKDIR_P within a source directory, because that will
2818 # break other packages using the cache if that directory is
2819 # removed, or if the value is a relative name.
2820 MKDIR_P="$ac_install_sh -d"
2821 fi
2822 fi
2823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2824 $as_echo "$MKDIR_P" >&6; }
2825
2826 for ac_prog in gawk mawk nawk awk
2827 do
2828 # Extract the first word of "$ac_prog", so it can be a program name with args.
2829 set dummy $ac_prog; ac_word=$2
2830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2831 $as_echo_n "checking for $ac_word... " >&6; }
2832 if ${ac_cv_prog_AWK+:} false; then :
2833 $as_echo_n "(cached) " >&6
2834 else
2835 if test -n "$AWK"; then
2836 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2837 else
2838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2839 for as_dir in $PATH
2840 do
2841 IFS=$as_save_IFS
2842 test -z "$as_dir" && as_dir=.
2843 for ac_exec_ext in '' $ac_executable_extensions; do
2844 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2845 ac_cv_prog_AWK="$ac_prog"
2846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2847 break 2
2848 fi
2849 done
2850 done
2851 IFS=$as_save_IFS
2852
2853 fi
2854 fi
2855 AWK=$ac_cv_prog_AWK
2856 if test -n "$AWK"; then
2857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2858 $as_echo "$AWK" >&6; }
2859 else
2860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2861 $as_echo "no" >&6; }
2862 fi
2863
2864
2865 test -n "$AWK" && break
2866 done
2867
2868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2869 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2870 set x ${MAKE-make}
2871 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2872 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2873 $as_echo_n "(cached) " >&6
2874 else
2875 cat >conftest.make <<\_ACEOF
2876 SHELL = /bin/sh
2877 all:
2878 @echo '@@@%%%=$(MAKE)=@@@%%%'
2879 _ACEOF
2880 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2881 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2882 *@@@%%%=?*=@@@%%%*)
2883 eval ac_cv_prog_make_${ac_make}_set=yes;;
2884 *)
2885 eval ac_cv_prog_make_${ac_make}_set=no;;
2886 esac
2887 rm -f conftest.make
2888 fi
2889 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2891 $as_echo "yes" >&6; }
2892 SET_MAKE=
2893 else
2894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2895 $as_echo "no" >&6; }
2896 SET_MAKE="MAKE=${MAKE-make}"
2897 fi
2898
2899 rm -rf .tst 2>/dev/null
2900 mkdir .tst 2>/dev/null
2901 if test -d .tst; then
2902 am__leading_dot=.
2903 else
2904 am__leading_dot=_
2905 fi
2906 rmdir .tst 2>/dev/null
2907
2908 # Check whether --enable-silent-rules was given.
2909 if test "${enable_silent_rules+set}" = set; then :
2910 enableval=$enable_silent_rules;
2911 fi
2912
2913 case $enable_silent_rules in # (((
2914 yes) AM_DEFAULT_VERBOSITY=0;;
2915 no) AM_DEFAULT_VERBOSITY=1;;
2916 *) AM_DEFAULT_VERBOSITY=1;;
2917 esac
2918 am_make=${MAKE-make}
2919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2920 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2921 if ${am_cv_make_support_nested_variables+:} false; then :
2922 $as_echo_n "(cached) " >&6
2923 else
2924 if $as_echo 'TRUE=$(BAR$(V))
2925 BAR0=false
2926 BAR1=true
2927 V=1
2928 am__doit:
2929 @$(TRUE)
2930 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2931 am_cv_make_support_nested_variables=yes
2932 else
2933 am_cv_make_support_nested_variables=no
2934 fi
2935 fi
2936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2937 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2938 if test $am_cv_make_support_nested_variables = yes; then
2939 AM_V='$(V)'
2940 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2941 else
2942 AM_V=$AM_DEFAULT_VERBOSITY
2943 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2944 fi
2945 AM_BACKSLASH='\'
2946
2947 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2948 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2949 # is not polluted with repeated "-I."
2950 am__isrc=' -I$(srcdir)'
2951 # test to see if srcdir already configured
2952 if test -f $srcdir/config.status; then
2953 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2954 fi
2955 fi
2956
2957 # test whether we have cygpath
2958 if test -z "$CYGPATH_W"; then
2959 if (cygpath --version) >/dev/null 2>/dev/null; then
2960 CYGPATH_W='cygpath -w'
2961 else
2962 CYGPATH_W=echo
2963 fi
2964 fi
2965
2966
2967 # Define the identity of the package.
2968 PACKAGE='gas'
2969 VERSION='2.37.50'
2970
2971
2972 cat >>confdefs.h <<_ACEOF
2973 #define PACKAGE "$PACKAGE"
2974 _ACEOF
2975
2976
2977 cat >>confdefs.h <<_ACEOF
2978 #define VERSION "$VERSION"
2979 _ACEOF
2980
2981 # Some tools Automake needs.
2982
2983 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2984
2985
2986 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2987
2988
2989 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2990
2991
2992 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2993
2994
2995 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2996
2997 # For better backward compatibility. To be removed once Automake 1.9.x
2998 # dies out for good. For more background, see:
2999 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3000 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3001 mkdir_p='$(MKDIR_P)'
3002
3003 # We need awk for the "check" target (and possibly the TAP driver). The
3004 # system "awk" is bad on some platforms.
3005 # Always define AMTAR for backward compatibility. Yes, it's still used
3006 # in the wild :-( We should find a proper way to deprecate it ...
3007 AMTAR='$${TAR-tar}'
3008
3009
3010 # We'll loop over all known methods to create a tar archive until one works.
3011 _am_tools='gnutar pax cpio none'
3012
3013 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3014
3015
3016
3017
3018
3019
3020 # POSIX will say in a future version that running "rm -f" with no argument
3021 # is OK; and we want to be able to make that assumption in our Makefile
3022 # recipes. So use an aggressive probe to check that the usage we want is
3023 # actually supported "in the wild" to an acceptable degree.
3024 # See automake bug#10828.
3025 # To make any issue more visible, cause the running configure to be aborted
3026 # by default if the 'rm' program in use doesn't match our expectations; the
3027 # user can still override this though.
3028 if rm -f && rm -fr && rm -rf; then : OK; else
3029 cat >&2 <<'END'
3030 Oops!
3031
3032 Your 'rm' program seems unable to run without file operands specified
3033 on the command line, even when the '-f' option is present. This is contrary
3034 to the behaviour of most rm programs out there, and not conforming with
3035 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3036
3037 Please tell bug-automake@gnu.org about your system, including the value
3038 of your $PATH and any error possibly output before this message. This
3039 can help us improve future automake versions.
3040
3041 END
3042 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3043 echo 'Configuration will proceed anyway, since you have set the' >&2
3044 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3045 echo >&2
3046 else
3047 cat >&2 <<'END'
3048 Aborting the configuration process, to ensure you take notice of the issue.
3049
3050 You can download and install GNU coreutils to get an 'rm' implementation
3051 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3052
3053 If you want to complete the configuration process using your problematic
3054 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3055 to "yes", and re-run configure.
3056
3057 END
3058 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3059 fi
3060 fi
3061
3062 # Check whether --enable-silent-rules was given.
3063 if test "${enable_silent_rules+set}" = set; then :
3064 enableval=$enable_silent_rules;
3065 fi
3066
3067 case $enable_silent_rules in # (((
3068 yes) AM_DEFAULT_VERBOSITY=0;;
3069 no) AM_DEFAULT_VERBOSITY=1;;
3070 *) AM_DEFAULT_VERBOSITY=0;;
3071 esac
3072 am_make=${MAKE-make}
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3074 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3075 if ${am_cv_make_support_nested_variables+:} false; then :
3076 $as_echo_n "(cached) " >&6
3077 else
3078 if $as_echo 'TRUE=$(BAR$(V))
3079 BAR0=false
3080 BAR1=true
3081 V=1
3082 am__doit:
3083 @$(TRUE)
3084 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3085 am_cv_make_support_nested_variables=yes
3086 else
3087 am_cv_make_support_nested_variables=no
3088 fi
3089 fi
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3091 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3092 if test $am_cv_make_support_nested_variables = yes; then
3093 AM_V='$(V)'
3094 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3095 else
3096 AM_V=$AM_DEFAULT_VERBOSITY
3097 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3098 fi
3099 AM_BACKSLASH='\'
3100
3101
3102 ac_ext=c
3103 ac_cpp='$CPP $CPPFLAGS'
3104 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3105 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3106 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3107 if test -n "$ac_tool_prefix"; then
3108 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3109 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3111 $as_echo_n "checking for $ac_word... " >&6; }
3112 if ${ac_cv_prog_CC+:} false; then :
3113 $as_echo_n "(cached) " >&6
3114 else
3115 if test -n "$CC"; then
3116 ac_cv_prog_CC="$CC" # Let the user override the test.
3117 else
3118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3119 for as_dir in $PATH
3120 do
3121 IFS=$as_save_IFS
3122 test -z "$as_dir" && as_dir=.
3123 for ac_exec_ext in '' $ac_executable_extensions; do
3124 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3125 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3126 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3127 break 2
3128 fi
3129 done
3130 done
3131 IFS=$as_save_IFS
3132
3133 fi
3134 fi
3135 CC=$ac_cv_prog_CC
3136 if test -n "$CC"; then
3137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3138 $as_echo "$CC" >&6; }
3139 else
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3141 $as_echo "no" >&6; }
3142 fi
3143
3144
3145 fi
3146 if test -z "$ac_cv_prog_CC"; then
3147 ac_ct_CC=$CC
3148 # Extract the first word of "gcc", so it can be a program name with args.
3149 set dummy gcc; ac_word=$2
3150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3151 $as_echo_n "checking for $ac_word... " >&6; }
3152 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3153 $as_echo_n "(cached) " >&6
3154 else
3155 if test -n "$ac_ct_CC"; then
3156 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3157 else
3158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3159 for as_dir in $PATH
3160 do
3161 IFS=$as_save_IFS
3162 test -z "$as_dir" && as_dir=.
3163 for ac_exec_ext in '' $ac_executable_extensions; do
3164 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3165 ac_cv_prog_ac_ct_CC="gcc"
3166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3167 break 2
3168 fi
3169 done
3170 done
3171 IFS=$as_save_IFS
3172
3173 fi
3174 fi
3175 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3176 if test -n "$ac_ct_CC"; then
3177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3178 $as_echo "$ac_ct_CC" >&6; }
3179 else
3180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3181 $as_echo "no" >&6; }
3182 fi
3183
3184 if test "x$ac_ct_CC" = x; then
3185 CC=""
3186 else
3187 case $cross_compiling:$ac_tool_warned in
3188 yes:)
3189 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3190 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3191 ac_tool_warned=yes ;;
3192 esac
3193 CC=$ac_ct_CC
3194 fi
3195 else
3196 CC="$ac_cv_prog_CC"
3197 fi
3198
3199 if test -z "$CC"; then
3200 if test -n "$ac_tool_prefix"; then
3201 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3202 set dummy ${ac_tool_prefix}cc; ac_word=$2
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3204 $as_echo_n "checking for $ac_word... " >&6; }
3205 if ${ac_cv_prog_CC+:} false; then :
3206 $as_echo_n "(cached) " >&6
3207 else
3208 if test -n "$CC"; then
3209 ac_cv_prog_CC="$CC" # Let the user override the test.
3210 else
3211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3212 for as_dir in $PATH
3213 do
3214 IFS=$as_save_IFS
3215 test -z "$as_dir" && as_dir=.
3216 for ac_exec_ext in '' $ac_executable_extensions; do
3217 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3218 ac_cv_prog_CC="${ac_tool_prefix}cc"
3219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3220 break 2
3221 fi
3222 done
3223 done
3224 IFS=$as_save_IFS
3225
3226 fi
3227 fi
3228 CC=$ac_cv_prog_CC
3229 if test -n "$CC"; then
3230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3231 $as_echo "$CC" >&6; }
3232 else
3233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3234 $as_echo "no" >&6; }
3235 fi
3236
3237
3238 fi
3239 fi
3240 if test -z "$CC"; then
3241 # Extract the first word of "cc", so it can be a program name with args.
3242 set dummy cc; ac_word=$2
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3244 $as_echo_n "checking for $ac_word... " >&6; }
3245 if ${ac_cv_prog_CC+:} false; then :
3246 $as_echo_n "(cached) " >&6
3247 else
3248 if test -n "$CC"; then
3249 ac_cv_prog_CC="$CC" # Let the user override the test.
3250 else
3251 ac_prog_rejected=no
3252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3253 for as_dir in $PATH
3254 do
3255 IFS=$as_save_IFS
3256 test -z "$as_dir" && as_dir=.
3257 for ac_exec_ext in '' $ac_executable_extensions; do
3258 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3259 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3260 ac_prog_rejected=yes
3261 continue
3262 fi
3263 ac_cv_prog_CC="cc"
3264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3265 break 2
3266 fi
3267 done
3268 done
3269 IFS=$as_save_IFS
3270
3271 if test $ac_prog_rejected = yes; then
3272 # We found a bogon in the path, so make sure we never use it.
3273 set dummy $ac_cv_prog_CC
3274 shift
3275 if test $# != 0; then
3276 # We chose a different compiler from the bogus one.
3277 # However, it has the same basename, so the bogon will be chosen
3278 # first if we set CC to just the basename; use the full file name.
3279 shift
3280 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3281 fi
3282 fi
3283 fi
3284 fi
3285 CC=$ac_cv_prog_CC
3286 if test -n "$CC"; then
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3288 $as_echo "$CC" >&6; }
3289 else
3290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3291 $as_echo "no" >&6; }
3292 fi
3293
3294
3295 fi
3296 if test -z "$CC"; then
3297 if test -n "$ac_tool_prefix"; then
3298 for ac_prog in cl.exe
3299 do
3300 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3301 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3303 $as_echo_n "checking for $ac_word... " >&6; }
3304 if ${ac_cv_prog_CC+:} false; then :
3305 $as_echo_n "(cached) " >&6
3306 else
3307 if test -n "$CC"; then
3308 ac_cv_prog_CC="$CC" # Let the user override the test.
3309 else
3310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3311 for as_dir in $PATH
3312 do
3313 IFS=$as_save_IFS
3314 test -z "$as_dir" && as_dir=.
3315 for ac_exec_ext in '' $ac_executable_extensions; do
3316 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3317 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3319 break 2
3320 fi
3321 done
3322 done
3323 IFS=$as_save_IFS
3324
3325 fi
3326 fi
3327 CC=$ac_cv_prog_CC
3328 if test -n "$CC"; then
3329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3330 $as_echo "$CC" >&6; }
3331 else
3332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3333 $as_echo "no" >&6; }
3334 fi
3335
3336
3337 test -n "$CC" && break
3338 done
3339 fi
3340 if test -z "$CC"; then
3341 ac_ct_CC=$CC
3342 for ac_prog in cl.exe
3343 do
3344 # Extract the first word of "$ac_prog", so it can be a program name with args.
3345 set dummy $ac_prog; 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_ac_ct_CC+:} false; then :
3349 $as_echo_n "(cached) " >&6
3350 else
3351 if test -n "$ac_ct_CC"; then
3352 ac_cv_prog_ac_ct_CC="$ac_ct_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_ac_ct_CC="$ac_prog"
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 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3372 if test -n "$ac_ct_CC"; then
3373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3374 $as_echo "$ac_ct_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 test -n "$ac_ct_CC" && break
3382 done
3383
3384 if test "x$ac_ct_CC" = x; then
3385 CC=""
3386 else
3387 case $cross_compiling:$ac_tool_warned in
3388 yes:)
3389 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3390 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3391 ac_tool_warned=yes ;;
3392 esac
3393 CC=$ac_ct_CC
3394 fi
3395 fi
3396
3397 fi
3398
3399
3400 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3401 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3402 as_fn_error $? "no acceptable C compiler found in \$PATH
3403 See \`config.log' for more details" "$LINENO" 5; }
3404
3405 # Provide some information about the compiler.
3406 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3407 set X $ac_compile
3408 ac_compiler=$2
3409 for ac_option in --version -v -V -qversion; do
3410 { { ac_try="$ac_compiler $ac_option >&5"
3411 case "(($ac_try" in
3412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3413 *) ac_try_echo=$ac_try;;
3414 esac
3415 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3416 $as_echo "$ac_try_echo"; } >&5
3417 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3418 ac_status=$?
3419 if test -s conftest.err; then
3420 sed '10a\
3421 ... rest of stderr output deleted ...
3422 10q' conftest.err >conftest.er1
3423 cat conftest.er1 >&5
3424 fi
3425 rm -f conftest.er1 conftest.err
3426 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3427 test $ac_status = 0; }
3428 done
3429
3430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3431 /* end confdefs.h. */
3432
3433 int
3434 main ()
3435 {
3436
3437 ;
3438 return 0;
3439 }
3440 _ACEOF
3441 ac_clean_files_save=$ac_clean_files
3442 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3443 # Try to create an executable without -o first, disregard a.out.
3444 # It will help us diagnose broken compilers, and finding out an intuition
3445 # of exeext.
3446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3447 $as_echo_n "checking whether the C compiler works... " >&6; }
3448 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3449
3450 # The possible output files:
3451 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3452
3453 ac_rmfiles=
3454 for ac_file in $ac_files
3455 do
3456 case $ac_file in
3457 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3458 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3459 esac
3460 done
3461 rm -f $ac_rmfiles
3462
3463 if { { ac_try="$ac_link_default"
3464 case "(($ac_try" in
3465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3466 *) ac_try_echo=$ac_try;;
3467 esac
3468 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3469 $as_echo "$ac_try_echo"; } >&5
3470 (eval "$ac_link_default") 2>&5
3471 ac_status=$?
3472 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3473 test $ac_status = 0; }; then :
3474 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3475 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3476 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3477 # so that the user can short-circuit this test for compilers unknown to
3478 # Autoconf.
3479 for ac_file in $ac_files ''
3480 do
3481 test -f "$ac_file" || continue
3482 case $ac_file in
3483 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3484 ;;
3485 [ab].out )
3486 # We found the default executable, but exeext='' is most
3487 # certainly right.
3488 break;;
3489 *.* )
3490 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3491 then :; else
3492 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3493 fi
3494 # We set ac_cv_exeext here because the later test for it is not
3495 # safe: cross compilers may not add the suffix if given an `-o'
3496 # argument, so we may need to know it at that point already.
3497 # Even if this section looks crufty: it has the advantage of
3498 # actually working.
3499 break;;
3500 * )
3501 break;;
3502 esac
3503 done
3504 test "$ac_cv_exeext" = no && ac_cv_exeext=
3505
3506 else
3507 ac_file=''
3508 fi
3509 if test -z "$ac_file"; then :
3510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3511 $as_echo "no" >&6; }
3512 $as_echo "$as_me: failed program was:" >&5
3513 sed 's/^/| /' conftest.$ac_ext >&5
3514
3515 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3516 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3517 as_fn_error 77 "C compiler cannot create executables
3518 See \`config.log' for more details" "$LINENO" 5; }
3519 else
3520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3521 $as_echo "yes" >&6; }
3522 fi
3523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3524 $as_echo_n "checking for C compiler default output file name... " >&6; }
3525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3526 $as_echo "$ac_file" >&6; }
3527 ac_exeext=$ac_cv_exeext
3528
3529 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3530 ac_clean_files=$ac_clean_files_save
3531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3532 $as_echo_n "checking for suffix of executables... " >&6; }
3533 if { { ac_try="$ac_link"
3534 case "(($ac_try" in
3535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3536 *) ac_try_echo=$ac_try;;
3537 esac
3538 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3539 $as_echo "$ac_try_echo"; } >&5
3540 (eval "$ac_link") 2>&5
3541 ac_status=$?
3542 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3543 test $ac_status = 0; }; then :
3544 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3545 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3546 # work properly (i.e., refer to `conftest.exe'), while it won't with
3547 # `rm'.
3548 for ac_file in conftest.exe conftest conftest.*; do
3549 test -f "$ac_file" || continue
3550 case $ac_file in
3551 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3552 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3553 break;;
3554 * ) break;;
3555 esac
3556 done
3557 else
3558 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3559 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3560 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3561 See \`config.log' for more details" "$LINENO" 5; }
3562 fi
3563 rm -f conftest conftest$ac_cv_exeext
3564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3565 $as_echo "$ac_cv_exeext" >&6; }
3566
3567 rm -f conftest.$ac_ext
3568 EXEEXT=$ac_cv_exeext
3569 ac_exeext=$EXEEXT
3570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3571 /* end confdefs.h. */
3572 #include <stdio.h>
3573 int
3574 main ()
3575 {
3576 FILE *f = fopen ("conftest.out", "w");
3577 return ferror (f) || fclose (f) != 0;
3578
3579 ;
3580 return 0;
3581 }
3582 _ACEOF
3583 ac_clean_files="$ac_clean_files conftest.out"
3584 # Check that the compiler produces executables we can run. If not, either
3585 # the compiler is broken, or we cross compile.
3586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3587 $as_echo_n "checking whether we are cross compiling... " >&6; }
3588 if test "$cross_compiling" != yes; then
3589 { { ac_try="$ac_link"
3590 case "(($ac_try" in
3591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3592 *) ac_try_echo=$ac_try;;
3593 esac
3594 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3595 $as_echo "$ac_try_echo"; } >&5
3596 (eval "$ac_link") 2>&5
3597 ac_status=$?
3598 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3599 test $ac_status = 0; }
3600 if { ac_try='./conftest$ac_cv_exeext'
3601 { { case "(($ac_try" in
3602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3603 *) ac_try_echo=$ac_try;;
3604 esac
3605 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3606 $as_echo "$ac_try_echo"; } >&5
3607 (eval "$ac_try") 2>&5
3608 ac_status=$?
3609 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3610 test $ac_status = 0; }; }; then
3611 cross_compiling=no
3612 else
3613 if test "$cross_compiling" = maybe; then
3614 cross_compiling=yes
3615 else
3616 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3617 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3618 as_fn_error $? "cannot run C compiled programs.
3619 If you meant to cross compile, use \`--host'.
3620 See \`config.log' for more details" "$LINENO" 5; }
3621 fi
3622 fi
3623 fi
3624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3625 $as_echo "$cross_compiling" >&6; }
3626
3627 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3628 ac_clean_files=$ac_clean_files_save
3629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3630 $as_echo_n "checking for suffix of object files... " >&6; }
3631 if ${ac_cv_objext+:} false; then :
3632 $as_echo_n "(cached) " >&6
3633 else
3634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3635 /* end confdefs.h. */
3636
3637 int
3638 main ()
3639 {
3640
3641 ;
3642 return 0;
3643 }
3644 _ACEOF
3645 rm -f conftest.o conftest.obj
3646 if { { ac_try="$ac_compile"
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_compile") 2>&5
3654 ac_status=$?
3655 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3656 test $ac_status = 0; }; then :
3657 for ac_file in conftest.o conftest.obj conftest.*; do
3658 test -f "$ac_file" || continue;
3659 case $ac_file in
3660 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3661 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3662 break;;
3663 esac
3664 done
3665 else
3666 $as_echo "$as_me: failed program was:" >&5
3667 sed 's/^/| /' conftest.$ac_ext >&5
3668
3669 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3670 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3671 as_fn_error $? "cannot compute suffix of object files: cannot compile
3672 See \`config.log' for more details" "$LINENO" 5; }
3673 fi
3674 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3675 fi
3676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3677 $as_echo "$ac_cv_objext" >&6; }
3678 OBJEXT=$ac_cv_objext
3679 ac_objext=$OBJEXT
3680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3681 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3682 if ${ac_cv_c_compiler_gnu+:} false; then :
3683 $as_echo_n "(cached) " >&6
3684 else
3685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3686 /* end confdefs.h. */
3687
3688 int
3689 main ()
3690 {
3691 #ifndef __GNUC__
3692 choke me
3693 #endif
3694
3695 ;
3696 return 0;
3697 }
3698 _ACEOF
3699 if ac_fn_c_try_compile "$LINENO"; then :
3700 ac_compiler_gnu=yes
3701 else
3702 ac_compiler_gnu=no
3703 fi
3704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3705 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3706
3707 fi
3708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3709 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3710 if test $ac_compiler_gnu = yes; then
3711 GCC=yes
3712 else
3713 GCC=
3714 fi
3715 ac_test_CFLAGS=${CFLAGS+set}
3716 ac_save_CFLAGS=$CFLAGS
3717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3718 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3719 if ${ac_cv_prog_cc_g+:} false; then :
3720 $as_echo_n "(cached) " >&6
3721 else
3722 ac_save_c_werror_flag=$ac_c_werror_flag
3723 ac_c_werror_flag=yes
3724 ac_cv_prog_cc_g=no
3725 CFLAGS="-g"
3726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3727 /* end confdefs.h. */
3728
3729 int
3730 main ()
3731 {
3732
3733 ;
3734 return 0;
3735 }
3736 _ACEOF
3737 if ac_fn_c_try_compile "$LINENO"; then :
3738 ac_cv_prog_cc_g=yes
3739 else
3740 CFLAGS=""
3741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3742 /* end confdefs.h. */
3743
3744 int
3745 main ()
3746 {
3747
3748 ;
3749 return 0;
3750 }
3751 _ACEOF
3752 if ac_fn_c_try_compile "$LINENO"; then :
3753
3754 else
3755 ac_c_werror_flag=$ac_save_c_werror_flag
3756 CFLAGS="-g"
3757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3758 /* end confdefs.h. */
3759
3760 int
3761 main ()
3762 {
3763
3764 ;
3765 return 0;
3766 }
3767 _ACEOF
3768 if ac_fn_c_try_compile "$LINENO"; then :
3769 ac_cv_prog_cc_g=yes
3770 fi
3771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3772 fi
3773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3774 fi
3775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3776 ac_c_werror_flag=$ac_save_c_werror_flag
3777 fi
3778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3779 $as_echo "$ac_cv_prog_cc_g" >&6; }
3780 if test "$ac_test_CFLAGS" = set; then
3781 CFLAGS=$ac_save_CFLAGS
3782 elif test $ac_cv_prog_cc_g = yes; then
3783 if test "$GCC" = yes; then
3784 CFLAGS="-g -O2"
3785 else
3786 CFLAGS="-g"
3787 fi
3788 else
3789 if test "$GCC" = yes; then
3790 CFLAGS="-O2"
3791 else
3792 CFLAGS=
3793 fi
3794 fi
3795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3796 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3797 if ${ac_cv_prog_cc_c89+:} false; then :
3798 $as_echo_n "(cached) " >&6
3799 else
3800 ac_cv_prog_cc_c89=no
3801 ac_save_CC=$CC
3802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3803 /* end confdefs.h. */
3804 #include <stdarg.h>
3805 #include <stdio.h>
3806 struct stat;
3807 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3808 struct buf { int x; };
3809 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3810 static char *e (p, i)
3811 char **p;
3812 int i;
3813 {
3814 return p[i];
3815 }
3816 static char *f (char * (*g) (char **, int), char **p, ...)
3817 {
3818 char *s;
3819 va_list v;
3820 va_start (v,p);
3821 s = g (p, va_arg (v,int));
3822 va_end (v);
3823 return s;
3824 }
3825
3826 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3827 function prototypes and stuff, but not '\xHH' hex character constants.
3828 These don't provoke an error unfortunately, instead are silently treated
3829 as 'x'. The following induces an error, until -std is added to get
3830 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3831 array size at least. It's necessary to write '\x00'==0 to get something
3832 that's true only with -std. */
3833 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3834
3835 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3836 inside strings and character constants. */
3837 #define FOO(x) 'x'
3838 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3839
3840 int test (int i, double x);
3841 struct s1 {int (*f) (int a);};
3842 struct s2 {int (*f) (double a);};
3843 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3844 int argc;
3845 char **argv;
3846 int
3847 main ()
3848 {
3849 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3850 ;
3851 return 0;
3852 }
3853 _ACEOF
3854 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3855 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3856 do
3857 CC="$ac_save_CC $ac_arg"
3858 if ac_fn_c_try_compile "$LINENO"; then :
3859 ac_cv_prog_cc_c89=$ac_arg
3860 fi
3861 rm -f core conftest.err conftest.$ac_objext
3862 test "x$ac_cv_prog_cc_c89" != "xno" && break
3863 done
3864 rm -f conftest.$ac_ext
3865 CC=$ac_save_CC
3866
3867 fi
3868 # AC_CACHE_VAL
3869 case "x$ac_cv_prog_cc_c89" in
3870 x)
3871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3872 $as_echo "none needed" >&6; } ;;
3873 xno)
3874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3875 $as_echo "unsupported" >&6; } ;;
3876 *)
3877 CC="$CC $ac_cv_prog_cc_c89"
3878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3879 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3880 esac
3881 if test "x$ac_cv_prog_cc_c89" != xno; then :
3882
3883 fi
3884
3885 ac_ext=c
3886 ac_cpp='$CPP $CPPFLAGS'
3887 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3888 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3889 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3890
3891 ac_ext=c
3892 ac_cpp='$CPP $CPPFLAGS'
3893 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3894 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3895 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3897 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3898 if ${am_cv_prog_cc_c_o+:} false; then :
3899 $as_echo_n "(cached) " >&6
3900 else
3901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3902 /* end confdefs.h. */
3903
3904 int
3905 main ()
3906 {
3907
3908 ;
3909 return 0;
3910 }
3911 _ACEOF
3912 # Make sure it works both with $CC and with simple cc.
3913 # Following AC_PROG_CC_C_O, we do the test twice because some
3914 # compilers refuse to overwrite an existing .o file with -o,
3915 # though they will create one.
3916 am_cv_prog_cc_c_o=yes
3917 for am_i in 1 2; do
3918 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3919 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3920 ac_status=$?
3921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3922 (exit $ac_status); } \
3923 && test -f conftest2.$ac_objext; then
3924 : OK
3925 else
3926 am_cv_prog_cc_c_o=no
3927 break
3928 fi
3929 done
3930 rm -f core conftest*
3931 unset am_i
3932 fi
3933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3934 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3935 if test "$am_cv_prog_cc_c_o" != yes; then
3936 # Losing compiler, so override with the script.
3937 # FIXME: It is wrong to rewrite CC.
3938 # But if we don't then we get into trouble of one sort or another.
3939 # A longer-term fix would be to have automake use am__CC in this case,
3940 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3941 CC="$am_aux_dir/compile $CC"
3942 fi
3943 ac_ext=c
3944 ac_cpp='$CPP $CPPFLAGS'
3945 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3946 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3947 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3948
3949 DEPDIR="${am__leading_dot}deps"
3950
3951 ac_config_commands="$ac_config_commands depfiles"
3952
3953
3954 am_make=${MAKE-make}
3955 cat > confinc << 'END'
3956 am__doit:
3957 @echo this is the am__doit target
3958 .PHONY: am__doit
3959 END
3960 # If we don't find an include directive, just comment out the code.
3961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3962 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3963 am__include="#"
3964 am__quote=
3965 _am_result=none
3966 # First try GNU make style include.
3967 echo "include confinc" > confmf
3968 # Ignore all kinds of additional output from 'make'.
3969 case `$am_make -s -f confmf 2> /dev/null` in #(
3970 *the\ am__doit\ target*)
3971 am__include=include
3972 am__quote=
3973 _am_result=GNU
3974 ;;
3975 esac
3976 # Now try BSD make style include.
3977 if test "$am__include" = "#"; then
3978 echo '.include "confinc"' > confmf
3979 case `$am_make -s -f confmf 2> /dev/null` in #(
3980 *the\ am__doit\ target*)
3981 am__include=.include
3982 am__quote="\""
3983 _am_result=BSD
3984 ;;
3985 esac
3986 fi
3987
3988
3989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3990 $as_echo "$_am_result" >&6; }
3991 rm -f confinc confmf
3992
3993 # Check whether --enable-dependency-tracking was given.
3994 if test "${enable_dependency_tracking+set}" = set; then :
3995 enableval=$enable_dependency_tracking;
3996 fi
3997
3998 if test "x$enable_dependency_tracking" != xno; then
3999 am_depcomp="$ac_aux_dir/depcomp"
4000 AMDEPBACKSLASH='\'
4001 am__nodep='_no'
4002 fi
4003 if test "x$enable_dependency_tracking" != xno; then
4004 AMDEP_TRUE=
4005 AMDEP_FALSE='#'
4006 else
4007 AMDEP_TRUE='#'
4008 AMDEP_FALSE=
4009 fi
4010
4011
4012
4013 depcc="$CC" am_compiler_list=
4014
4015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4016 $as_echo_n "checking dependency style of $depcc... " >&6; }
4017 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4018 $as_echo_n "(cached) " >&6
4019 else
4020 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4021 # We make a subdir and do the tests there. Otherwise we can end up
4022 # making bogus files that we don't know about and never remove. For
4023 # instance it was reported that on HP-UX the gcc test will end up
4024 # making a dummy file named 'D' -- because '-MD' means "put the output
4025 # in D".
4026 rm -rf conftest.dir
4027 mkdir conftest.dir
4028 # Copy depcomp to subdir because otherwise we won't find it if we're
4029 # using a relative directory.
4030 cp "$am_depcomp" conftest.dir
4031 cd conftest.dir
4032 # We will build objects and dependencies in a subdirectory because
4033 # it helps to detect inapplicable dependency modes. For instance
4034 # both Tru64's cc and ICC support -MD to output dependencies as a
4035 # side effect of compilation, but ICC will put the dependencies in
4036 # the current directory while Tru64 will put them in the object
4037 # directory.
4038 mkdir sub
4039
4040 am_cv_CC_dependencies_compiler_type=none
4041 if test "$am_compiler_list" = ""; then
4042 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4043 fi
4044 am__universal=false
4045 case " $depcc " in #(
4046 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4047 esac
4048
4049 for depmode in $am_compiler_list; do
4050 # Setup a source with many dependencies, because some compilers
4051 # like to wrap large dependency lists on column 80 (with \), and
4052 # we should not choose a depcomp mode which is confused by this.
4053 #
4054 # We need to recreate these files for each test, as the compiler may
4055 # overwrite some of them when testing with obscure command lines.
4056 # This happens at least with the AIX C compiler.
4057 : > sub/conftest.c
4058 for i in 1 2 3 4 5 6; do
4059 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4060 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4061 # Solaris 10 /bin/sh.
4062 echo '/* dummy */' > sub/conftst$i.h
4063 done
4064 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4065
4066 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4067 # mode. It turns out that the SunPro C++ compiler does not properly
4068 # handle '-M -o', and we need to detect this. Also, some Intel
4069 # versions had trouble with output in subdirs.
4070 am__obj=sub/conftest.${OBJEXT-o}
4071 am__minus_obj="-o $am__obj"
4072 case $depmode in
4073 gcc)
4074 # This depmode causes a compiler race in universal mode.
4075 test "$am__universal" = false || continue
4076 ;;
4077 nosideeffect)
4078 # After this tag, mechanisms are not by side-effect, so they'll
4079 # only be used when explicitly requested.
4080 if test "x$enable_dependency_tracking" = xyes; then
4081 continue
4082 else
4083 break
4084 fi
4085 ;;
4086 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4087 # This compiler won't grok '-c -o', but also, the minuso test has
4088 # not run yet. These depmodes are late enough in the game, and
4089 # so weak that their functioning should not be impacted.
4090 am__obj=conftest.${OBJEXT-o}
4091 am__minus_obj=
4092 ;;
4093 none) break ;;
4094 esac
4095 if depmode=$depmode \
4096 source=sub/conftest.c object=$am__obj \
4097 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4098 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4099 >/dev/null 2>conftest.err &&
4100 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4101 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4102 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4103 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4104 # icc doesn't choke on unknown options, it will just issue warnings
4105 # or remarks (even with -Werror). So we grep stderr for any message
4106 # that says an option was ignored or not supported.
4107 # When given -MP, icc 7.0 and 7.1 complain thusly:
4108 # icc: Command line warning: ignoring option '-M'; no argument required
4109 # The diagnosis changed in icc 8.0:
4110 # icc: Command line remark: option '-MP' not supported
4111 if (grep 'ignoring option' conftest.err ||
4112 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4113 am_cv_CC_dependencies_compiler_type=$depmode
4114 break
4115 fi
4116 fi
4117 done
4118
4119 cd ..
4120 rm -rf conftest.dir
4121 else
4122 am_cv_CC_dependencies_compiler_type=none
4123 fi
4124
4125 fi
4126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4127 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4128 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4129
4130 if
4131 test "x$enable_dependency_tracking" != xno \
4132 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4133 am__fastdepCC_TRUE=
4134 am__fastdepCC_FALSE='#'
4135 else
4136 am__fastdepCC_TRUE='#'
4137 am__fastdepCC_FALSE=
4138 fi
4139
4140
4141
4142 ac_ext=c
4143 ac_cpp='$CPP $CPPFLAGS'
4144 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4145 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4146 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4148 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4149 # On Suns, sometimes $CPP names a directory.
4150 if test -n "$CPP" && test -d "$CPP"; then
4151 CPP=
4152 fi
4153 if test -z "$CPP"; then
4154 if ${ac_cv_prog_CPP+:} false; then :
4155 $as_echo_n "(cached) " >&6
4156 else
4157 # Double quotes because CPP needs to be expanded
4158 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4159 do
4160 ac_preproc_ok=false
4161 for ac_c_preproc_warn_flag in '' yes
4162 do
4163 # Use a header file that comes with gcc, so configuring glibc
4164 # with a fresh cross-compiler works.
4165 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4166 # <limits.h> exists even on freestanding compilers.
4167 # On the NeXT, cc -E runs the code through the compiler's parser,
4168 # not just through cpp. "Syntax error" is here to catch this case.
4169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4170 /* end confdefs.h. */
4171 #ifdef __STDC__
4172 # include <limits.h>
4173 #else
4174 # include <assert.h>
4175 #endif
4176 Syntax error
4177 _ACEOF
4178 if ac_fn_c_try_cpp "$LINENO"; then :
4179
4180 else
4181 # Broken: fails on valid input.
4182 continue
4183 fi
4184 rm -f conftest.err conftest.i conftest.$ac_ext
4185
4186 # OK, works on sane cases. Now check whether nonexistent headers
4187 # can be detected and how.
4188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4189 /* end confdefs.h. */
4190 #include <ac_nonexistent.h>
4191 _ACEOF
4192 if ac_fn_c_try_cpp "$LINENO"; then :
4193 # Broken: success on invalid input.
4194 continue
4195 else
4196 # Passes both tests.
4197 ac_preproc_ok=:
4198 break
4199 fi
4200 rm -f conftest.err conftest.i conftest.$ac_ext
4201
4202 done
4203 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4204 rm -f conftest.i conftest.err conftest.$ac_ext
4205 if $ac_preproc_ok; then :
4206 break
4207 fi
4208
4209 done
4210 ac_cv_prog_CPP=$CPP
4211
4212 fi
4213 CPP=$ac_cv_prog_CPP
4214 else
4215 ac_cv_prog_CPP=$CPP
4216 fi
4217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4218 $as_echo "$CPP" >&6; }
4219 ac_preproc_ok=false
4220 for ac_c_preproc_warn_flag in '' yes
4221 do
4222 # Use a header file that comes with gcc, so configuring glibc
4223 # with a fresh cross-compiler works.
4224 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4225 # <limits.h> exists even on freestanding compilers.
4226 # On the NeXT, cc -E runs the code through the compiler's parser,
4227 # not just through cpp. "Syntax error" is here to catch this case.
4228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4229 /* end confdefs.h. */
4230 #ifdef __STDC__
4231 # include <limits.h>
4232 #else
4233 # include <assert.h>
4234 #endif
4235 Syntax error
4236 _ACEOF
4237 if ac_fn_c_try_cpp "$LINENO"; then :
4238
4239 else
4240 # Broken: fails on valid input.
4241 continue
4242 fi
4243 rm -f conftest.err conftest.i conftest.$ac_ext
4244
4245 # OK, works on sane cases. Now check whether nonexistent headers
4246 # can be detected and how.
4247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4248 /* end confdefs.h. */
4249 #include <ac_nonexistent.h>
4250 _ACEOF
4251 if ac_fn_c_try_cpp "$LINENO"; then :
4252 # Broken: success on invalid input.
4253 continue
4254 else
4255 # Passes both tests.
4256 ac_preproc_ok=:
4257 break
4258 fi
4259 rm -f conftest.err conftest.i conftest.$ac_ext
4260
4261 done
4262 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4263 rm -f conftest.i conftest.err conftest.$ac_ext
4264 if $ac_preproc_ok; then :
4265
4266 else
4267 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4268 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4269 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4270 See \`config.log' for more details" "$LINENO" 5; }
4271 fi
4272
4273 ac_ext=c
4274 ac_cpp='$CPP $CPPFLAGS'
4275 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4276 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4277 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4278
4279
4280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4281 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4282 if ${ac_cv_path_GREP+:} false; then :
4283 $as_echo_n "(cached) " >&6
4284 else
4285 if test -z "$GREP"; then
4286 ac_path_GREP_found=false
4287 # Loop through the user's path and test for each of PROGNAME-LIST
4288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4289 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4290 do
4291 IFS=$as_save_IFS
4292 test -z "$as_dir" && as_dir=.
4293 for ac_prog in grep ggrep; do
4294 for ac_exec_ext in '' $ac_executable_extensions; do
4295 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4296 as_fn_executable_p "$ac_path_GREP" || continue
4297 # Check for GNU ac_path_GREP and select it if it is found.
4298 # Check for GNU $ac_path_GREP
4299 case `"$ac_path_GREP" --version 2>&1` in
4300 *GNU*)
4301 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4302 *)
4303 ac_count=0
4304 $as_echo_n 0123456789 >"conftest.in"
4305 while :
4306 do
4307 cat "conftest.in" "conftest.in" >"conftest.tmp"
4308 mv "conftest.tmp" "conftest.in"
4309 cp "conftest.in" "conftest.nl"
4310 $as_echo 'GREP' >> "conftest.nl"
4311 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4312 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4313 as_fn_arith $ac_count + 1 && ac_count=$as_val
4314 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4315 # Best one so far, save it but keep looking for a better one
4316 ac_cv_path_GREP="$ac_path_GREP"
4317 ac_path_GREP_max=$ac_count
4318 fi
4319 # 10*(2^10) chars as input seems more than enough
4320 test $ac_count -gt 10 && break
4321 done
4322 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4323 esac
4324
4325 $ac_path_GREP_found && break 3
4326 done
4327 done
4328 done
4329 IFS=$as_save_IFS
4330 if test -z "$ac_cv_path_GREP"; then
4331 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4332 fi
4333 else
4334 ac_cv_path_GREP=$GREP
4335 fi
4336
4337 fi
4338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4339 $as_echo "$ac_cv_path_GREP" >&6; }
4340 GREP="$ac_cv_path_GREP"
4341
4342
4343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4344 $as_echo_n "checking for egrep... " >&6; }
4345 if ${ac_cv_path_EGREP+:} false; then :
4346 $as_echo_n "(cached) " >&6
4347 else
4348 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4349 then ac_cv_path_EGREP="$GREP -E"
4350 else
4351 if test -z "$EGREP"; then
4352 ac_path_EGREP_found=false
4353 # Loop through the user's path and test for each of PROGNAME-LIST
4354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4355 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4356 do
4357 IFS=$as_save_IFS
4358 test -z "$as_dir" && as_dir=.
4359 for ac_prog in egrep; do
4360 for ac_exec_ext in '' $ac_executable_extensions; do
4361 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4362 as_fn_executable_p "$ac_path_EGREP" || continue
4363 # Check for GNU ac_path_EGREP and select it if it is found.
4364 # Check for GNU $ac_path_EGREP
4365 case `"$ac_path_EGREP" --version 2>&1` in
4366 *GNU*)
4367 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4368 *)
4369 ac_count=0
4370 $as_echo_n 0123456789 >"conftest.in"
4371 while :
4372 do
4373 cat "conftest.in" "conftest.in" >"conftest.tmp"
4374 mv "conftest.tmp" "conftest.in"
4375 cp "conftest.in" "conftest.nl"
4376 $as_echo 'EGREP' >> "conftest.nl"
4377 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4378 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4379 as_fn_arith $ac_count + 1 && ac_count=$as_val
4380 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4381 # Best one so far, save it but keep looking for a better one
4382 ac_cv_path_EGREP="$ac_path_EGREP"
4383 ac_path_EGREP_max=$ac_count
4384 fi
4385 # 10*(2^10) chars as input seems more than enough
4386 test $ac_count -gt 10 && break
4387 done
4388 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4389 esac
4390
4391 $ac_path_EGREP_found && break 3
4392 done
4393 done
4394 done
4395 IFS=$as_save_IFS
4396 if test -z "$ac_cv_path_EGREP"; then
4397 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4398 fi
4399 else
4400 ac_cv_path_EGREP=$EGREP
4401 fi
4402
4403 fi
4404 fi
4405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4406 $as_echo "$ac_cv_path_EGREP" >&6; }
4407 EGREP="$ac_cv_path_EGREP"
4408
4409
4410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4411 $as_echo_n "checking for ANSI C header files... " >&6; }
4412 if ${ac_cv_header_stdc+:} false; then :
4413 $as_echo_n "(cached) " >&6
4414 else
4415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4416 /* end confdefs.h. */
4417 #include <stdlib.h>
4418 #include <stdarg.h>
4419 #include <string.h>
4420 #include <float.h>
4421
4422 int
4423 main ()
4424 {
4425
4426 ;
4427 return 0;
4428 }
4429 _ACEOF
4430 if ac_fn_c_try_compile "$LINENO"; then :
4431 ac_cv_header_stdc=yes
4432 else
4433 ac_cv_header_stdc=no
4434 fi
4435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4436
4437 if test $ac_cv_header_stdc = yes; then
4438 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4440 /* end confdefs.h. */
4441 #include <string.h>
4442
4443 _ACEOF
4444 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4445 $EGREP "memchr" >/dev/null 2>&1; then :
4446
4447 else
4448 ac_cv_header_stdc=no
4449 fi
4450 rm -f conftest*
4451
4452 fi
4453
4454 if test $ac_cv_header_stdc = yes; then
4455 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4457 /* end confdefs.h. */
4458 #include <stdlib.h>
4459
4460 _ACEOF
4461 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4462 $EGREP "free" >/dev/null 2>&1; then :
4463
4464 else
4465 ac_cv_header_stdc=no
4466 fi
4467 rm -f conftest*
4468
4469 fi
4470
4471 if test $ac_cv_header_stdc = yes; then
4472 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4473 if test "$cross_compiling" = yes; then :
4474 :
4475 else
4476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4477 /* end confdefs.h. */
4478 #include <ctype.h>
4479 #include <stdlib.h>
4480 #if ((' ' & 0x0FF) == 0x020)
4481 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4482 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4483 #else
4484 # define ISLOWER(c) \
4485 (('a' <= (c) && (c) <= 'i') \
4486 || ('j' <= (c) && (c) <= 'r') \
4487 || ('s' <= (c) && (c) <= 'z'))
4488 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4489 #endif
4490
4491 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4492 int
4493 main ()
4494 {
4495 int i;
4496 for (i = 0; i < 256; i++)
4497 if (XOR (islower (i), ISLOWER (i))
4498 || toupper (i) != TOUPPER (i))
4499 return 2;
4500 return 0;
4501 }
4502 _ACEOF
4503 if ac_fn_c_try_run "$LINENO"; then :
4504
4505 else
4506 ac_cv_header_stdc=no
4507 fi
4508 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4509 conftest.$ac_objext conftest.beam conftest.$ac_ext
4510 fi
4511
4512 fi
4513 fi
4514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4515 $as_echo "$ac_cv_header_stdc" >&6; }
4516 if test $ac_cv_header_stdc = yes; then
4517
4518 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4519
4520 fi
4521
4522 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4523 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4524 inttypes.h stdint.h unistd.h
4525 do :
4526 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4527 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4528 "
4529 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4530 cat >>confdefs.h <<_ACEOF
4531 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4532 _ACEOF
4533
4534 fi
4535
4536 done
4537
4538
4539
4540 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4541 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4542 MINIX=yes
4543 else
4544 MINIX=
4545 fi
4546
4547
4548 if test "$MINIX" = yes; then
4549
4550 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4551
4552
4553 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4554
4555
4556 $as_echo "#define _MINIX 1" >>confdefs.h
4557
4558 fi
4559
4560
4561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4562 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4563 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4564 $as_echo_n "(cached) " >&6
4565 else
4566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4567 /* end confdefs.h. */
4568
4569 # define __EXTENSIONS__ 1
4570 $ac_includes_default
4571 int
4572 main ()
4573 {
4574
4575 ;
4576 return 0;
4577 }
4578 _ACEOF
4579 if ac_fn_c_try_compile "$LINENO"; then :
4580 ac_cv_safe_to_define___extensions__=yes
4581 else
4582 ac_cv_safe_to_define___extensions__=no
4583 fi
4584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4585 fi
4586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4587 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4588 test $ac_cv_safe_to_define___extensions__ = yes &&
4589 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4590
4591 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4592
4593 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4594
4595 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4596
4597 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4598
4599
4600
4601
4602
4603 case `pwd` in
4604 *\ * | *\ *)
4605 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4606 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4607 esac
4608
4609
4610
4611 macro_version='2.2.7a'
4612 macro_revision='1.3134'
4613
4614
4615
4616
4617
4618
4619
4620
4621
4622
4623
4624
4625
4626 ltmain="$ac_aux_dir/ltmain.sh"
4627
4628 # Backslashify metacharacters that are still active within
4629 # double-quoted strings.
4630 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4631
4632 # Same as above, but do not quote variable references.
4633 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4634
4635 # Sed substitution to delay expansion of an escaped shell variable in a
4636 # double_quote_subst'ed string.
4637 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4638
4639 # Sed substitution to delay expansion of an escaped single quote.
4640 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4641
4642 # Sed substitution to avoid accidental globbing in evaled expressions
4643 no_glob_subst='s/\*/\\\*/g'
4644
4645 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4646 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4647 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4648
4649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4650 $as_echo_n "checking how to print strings... " >&6; }
4651 # Test print first, because it will be a builtin if present.
4652 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4653 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4654 ECHO='print -r --'
4655 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4656 ECHO='printf %s\n'
4657 else
4658 # Use this function as a fallback that always works.
4659 func_fallback_echo ()
4660 {
4661 eval 'cat <<_LTECHO_EOF
4662 $1
4663 _LTECHO_EOF'
4664 }
4665 ECHO='func_fallback_echo'
4666 fi
4667
4668 # func_echo_all arg...
4669 # Invoke $ECHO with all args, space-separated.
4670 func_echo_all ()
4671 {
4672 $ECHO ""
4673 }
4674
4675 case "$ECHO" in
4676 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4677 $as_echo "printf" >&6; } ;;
4678 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4679 $as_echo "print -r" >&6; } ;;
4680 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4681 $as_echo "cat" >&6; } ;;
4682 esac
4683
4684
4685
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4698 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4699 if ${ac_cv_path_SED+:} false; then :
4700 $as_echo_n "(cached) " >&6
4701 else
4702 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4703 for ac_i in 1 2 3 4 5 6 7; do
4704 ac_script="$ac_script$as_nl$ac_script"
4705 done
4706 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4707 { ac_script=; unset ac_script;}
4708 if test -z "$SED"; then
4709 ac_path_SED_found=false
4710 # Loop through the user's path and test for each of PROGNAME-LIST
4711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4712 for as_dir in $PATH
4713 do
4714 IFS=$as_save_IFS
4715 test -z "$as_dir" && as_dir=.
4716 for ac_prog in sed gsed; do
4717 for ac_exec_ext in '' $ac_executable_extensions; do
4718 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4719 as_fn_executable_p "$ac_path_SED" || continue
4720 # Check for GNU ac_path_SED and select it if it is found.
4721 # Check for GNU $ac_path_SED
4722 case `"$ac_path_SED" --version 2>&1` in
4723 *GNU*)
4724 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4725 *)
4726 ac_count=0
4727 $as_echo_n 0123456789 >"conftest.in"
4728 while :
4729 do
4730 cat "conftest.in" "conftest.in" >"conftest.tmp"
4731 mv "conftest.tmp" "conftest.in"
4732 cp "conftest.in" "conftest.nl"
4733 $as_echo '' >> "conftest.nl"
4734 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4735 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4736 as_fn_arith $ac_count + 1 && ac_count=$as_val
4737 if test $ac_count -gt ${ac_path_SED_max-0}; then
4738 # Best one so far, save it but keep looking for a better one
4739 ac_cv_path_SED="$ac_path_SED"
4740 ac_path_SED_max=$ac_count
4741 fi
4742 # 10*(2^10) chars as input seems more than enough
4743 test $ac_count -gt 10 && break
4744 done
4745 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4746 esac
4747
4748 $ac_path_SED_found && break 3
4749 done
4750 done
4751 done
4752 IFS=$as_save_IFS
4753 if test -z "$ac_cv_path_SED"; then
4754 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4755 fi
4756 else
4757 ac_cv_path_SED=$SED
4758 fi
4759
4760 fi
4761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4762 $as_echo "$ac_cv_path_SED" >&6; }
4763 SED="$ac_cv_path_SED"
4764 rm -f conftest.sed
4765
4766 test -z "$SED" && SED=sed
4767 Xsed="$SED -e 1s/^X//"
4768
4769
4770
4771
4772
4773
4774
4775
4776
4777
4778
4779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4780 $as_echo_n "checking for fgrep... " >&6; }
4781 if ${ac_cv_path_FGREP+:} false; then :
4782 $as_echo_n "(cached) " >&6
4783 else
4784 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4785 then ac_cv_path_FGREP="$GREP -F"
4786 else
4787 if test -z "$FGREP"; then
4788 ac_path_FGREP_found=false
4789 # Loop through the user's path and test for each of PROGNAME-LIST
4790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4791 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4792 do
4793 IFS=$as_save_IFS
4794 test -z "$as_dir" && as_dir=.
4795 for ac_prog in fgrep; do
4796 for ac_exec_ext in '' $ac_executable_extensions; do
4797 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4798 as_fn_executable_p "$ac_path_FGREP" || continue
4799 # Check for GNU ac_path_FGREP and select it if it is found.
4800 # Check for GNU $ac_path_FGREP
4801 case `"$ac_path_FGREP" --version 2>&1` in
4802 *GNU*)
4803 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4804 *)
4805 ac_count=0
4806 $as_echo_n 0123456789 >"conftest.in"
4807 while :
4808 do
4809 cat "conftest.in" "conftest.in" >"conftest.tmp"
4810 mv "conftest.tmp" "conftest.in"
4811 cp "conftest.in" "conftest.nl"
4812 $as_echo 'FGREP' >> "conftest.nl"
4813 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4814 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4815 as_fn_arith $ac_count + 1 && ac_count=$as_val
4816 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4817 # Best one so far, save it but keep looking for a better one
4818 ac_cv_path_FGREP="$ac_path_FGREP"
4819 ac_path_FGREP_max=$ac_count
4820 fi
4821 # 10*(2^10) chars as input seems more than enough
4822 test $ac_count -gt 10 && break
4823 done
4824 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4825 esac
4826
4827 $ac_path_FGREP_found && break 3
4828 done
4829 done
4830 done
4831 IFS=$as_save_IFS
4832 if test -z "$ac_cv_path_FGREP"; then
4833 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4834 fi
4835 else
4836 ac_cv_path_FGREP=$FGREP
4837 fi
4838
4839 fi
4840 fi
4841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4842 $as_echo "$ac_cv_path_FGREP" >&6; }
4843 FGREP="$ac_cv_path_FGREP"
4844
4845
4846 test -z "$GREP" && GREP=grep
4847
4848
4849
4850
4851
4852
4853
4854
4855
4856
4857
4858
4859
4860
4861
4862
4863
4864
4865
4866 # Check whether --with-gnu-ld was given.
4867 if test "${with_gnu_ld+set}" = set; then :
4868 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4869 else
4870 with_gnu_ld=no
4871 fi
4872
4873 ac_prog=ld
4874 if test "$GCC" = yes; then
4875 # Check if gcc -print-prog-name=ld gives a path.
4876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4877 $as_echo_n "checking for ld used by $CC... " >&6; }
4878 case $host in
4879 *-*-mingw*)
4880 # gcc leaves a trailing carriage return which upsets mingw
4881 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4882 *)
4883 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4884 esac
4885 case $ac_prog in
4886 # Accept absolute paths.
4887 [\\/]* | ?:[\\/]*)
4888 re_direlt='/[^/][^/]*/\.\./'
4889 # Canonicalize the pathname of ld
4890 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4891 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4892 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4893 done
4894 test -z "$LD" && LD="$ac_prog"
4895 ;;
4896 "")
4897 # If it fails, then pretend we aren't using GCC.
4898 ac_prog=ld
4899 ;;
4900 *)
4901 # If it is relative, then search for the first ld in PATH.
4902 with_gnu_ld=unknown
4903 ;;
4904 esac
4905 elif test "$with_gnu_ld" = yes; then
4906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4907 $as_echo_n "checking for GNU ld... " >&6; }
4908 else
4909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4910 $as_echo_n "checking for non-GNU ld... " >&6; }
4911 fi
4912 if ${lt_cv_path_LD+:} false; then :
4913 $as_echo_n "(cached) " >&6
4914 else
4915 if test -z "$LD"; then
4916 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4917 for ac_dir in $PATH; do
4918 IFS="$lt_save_ifs"
4919 test -z "$ac_dir" && ac_dir=.
4920 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4921 lt_cv_path_LD="$ac_dir/$ac_prog"
4922 # Check to see if the program is GNU ld. I'd rather use --version,
4923 # but apparently some variants of GNU ld only accept -v.
4924 # Break only if it was the GNU/non-GNU ld that we prefer.
4925 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4926 *GNU* | *'with BFD'*)
4927 test "$with_gnu_ld" != no && break
4928 ;;
4929 *)
4930 test "$with_gnu_ld" != yes && break
4931 ;;
4932 esac
4933 fi
4934 done
4935 IFS="$lt_save_ifs"
4936 else
4937 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4938 fi
4939 fi
4940
4941 LD="$lt_cv_path_LD"
4942 if test -n "$LD"; then
4943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4944 $as_echo "$LD" >&6; }
4945 else
4946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4947 $as_echo "no" >&6; }
4948 fi
4949 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4951 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4952 if ${lt_cv_prog_gnu_ld+:} false; then :
4953 $as_echo_n "(cached) " >&6
4954 else
4955 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4956 case `$LD -v 2>&1 </dev/null` in
4957 *GNU* | *'with BFD'*)
4958 lt_cv_prog_gnu_ld=yes
4959 ;;
4960 *)
4961 lt_cv_prog_gnu_ld=no
4962 ;;
4963 esac
4964 fi
4965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4966 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4967 with_gnu_ld=$lt_cv_prog_gnu_ld
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4978 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4979 if ${lt_cv_path_NM+:} false; then :
4980 $as_echo_n "(cached) " >&6
4981 else
4982 if test -n "$NM"; then
4983 # Let the user override the nm to test.
4984 lt_nm_to_check="$NM"
4985 else
4986 lt_nm_to_check="${ac_tool_prefix}nm"
4987 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4988 lt_nm_to_check="$lt_nm_to_check nm"
4989 fi
4990 fi
4991 for lt_tmp_nm in $lt_nm_to_check; do
4992 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4993 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4994 IFS="$lt_save_ifs"
4995 test -z "$ac_dir" && ac_dir=.
4996 case "$lt_tmp_nm" in
4997 */*|*\\*) tmp_nm="$lt_tmp_nm";;
4998 *) tmp_nm="$ac_dir/$lt_tmp_nm";;
4999 esac
5000 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5001 # Check to see if the nm accepts a BSD-compat flag.
5002 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5003 # nm: unknown option "B" ignored
5004 case `"$tmp_nm" -B "$tmp_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
5005 *$tmp_nm*) lt_cv_path_NM="$tmp_nm -B"
5006 break
5007 ;;
5008 *)
5009 case `"$tmp_nm" -p "$tmp_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
5010 *$tmp_nm*)
5011 lt_cv_path_NM="$tmp_nm -p"
5012 break
5013 ;;
5014 *)
5015 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5016 continue # so that we can try to find one that supports BSD flags
5017 ;;
5018 esac
5019 ;;
5020 esac
5021 fi
5022 done
5023 IFS="$lt_save_ifs"
5024 done
5025 : ${lt_cv_path_NM=no}
5026 fi
5027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5028 $as_echo "$lt_cv_path_NM" >&6; }
5029 if test "$lt_cv_path_NM" != "no"; then
5030 NM="$lt_cv_path_NM"
5031 else
5032 # Didn't find any BSD compatible name lister, look for dumpbin.
5033 if test -n "$DUMPBIN"; then :
5034 # Let the user override the test.
5035 else
5036 if test -n "$ac_tool_prefix"; then
5037 for ac_prog in dumpbin "link -dump"
5038 do
5039 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5040 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5042 $as_echo_n "checking for $ac_word... " >&6; }
5043 if ${ac_cv_prog_DUMPBIN+:} false; then :
5044 $as_echo_n "(cached) " >&6
5045 else
5046 if test -n "$DUMPBIN"; then
5047 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5048 else
5049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5050 for as_dir in $PATH
5051 do
5052 IFS=$as_save_IFS
5053 test -z "$as_dir" && as_dir=.
5054 for ac_exec_ext in '' $ac_executable_extensions; do
5055 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5056 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5058 break 2
5059 fi
5060 done
5061 done
5062 IFS=$as_save_IFS
5063
5064 fi
5065 fi
5066 DUMPBIN=$ac_cv_prog_DUMPBIN
5067 if test -n "$DUMPBIN"; then
5068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5069 $as_echo "$DUMPBIN" >&6; }
5070 else
5071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5072 $as_echo "no" >&6; }
5073 fi
5074
5075
5076 test -n "$DUMPBIN" && break
5077 done
5078 fi
5079 if test -z "$DUMPBIN"; then
5080 ac_ct_DUMPBIN=$DUMPBIN
5081 for ac_prog in dumpbin "link -dump"
5082 do
5083 # Extract the first word of "$ac_prog", so it can be a program name with args.
5084 set dummy $ac_prog; ac_word=$2
5085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5086 $as_echo_n "checking for $ac_word... " >&6; }
5087 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5088 $as_echo_n "(cached) " >&6
5089 else
5090 if test -n "$ac_ct_DUMPBIN"; then
5091 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5092 else
5093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5094 for as_dir in $PATH
5095 do
5096 IFS=$as_save_IFS
5097 test -z "$as_dir" && as_dir=.
5098 for ac_exec_ext in '' $ac_executable_extensions; do
5099 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5100 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5102 break 2
5103 fi
5104 done
5105 done
5106 IFS=$as_save_IFS
5107
5108 fi
5109 fi
5110 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5111 if test -n "$ac_ct_DUMPBIN"; then
5112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5113 $as_echo "$ac_ct_DUMPBIN" >&6; }
5114 else
5115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5116 $as_echo "no" >&6; }
5117 fi
5118
5119
5120 test -n "$ac_ct_DUMPBIN" && break
5121 done
5122
5123 if test "x$ac_ct_DUMPBIN" = x; then
5124 DUMPBIN=":"
5125 else
5126 case $cross_compiling:$ac_tool_warned in
5127 yes:)
5128 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5129 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5130 ac_tool_warned=yes ;;
5131 esac
5132 DUMPBIN=$ac_ct_DUMPBIN
5133 fi
5134 fi
5135
5136 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5137 *COFF*)
5138 DUMPBIN="$DUMPBIN -symbols"
5139 ;;
5140 *)
5141 DUMPBIN=:
5142 ;;
5143 esac
5144 fi
5145
5146 if test "$DUMPBIN" != ":"; then
5147 NM="$DUMPBIN"
5148 fi
5149 fi
5150 test -z "$NM" && NM=nm
5151
5152
5153
5154
5155
5156
5157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5158 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5159 if ${lt_cv_nm_interface+:} false; then :
5160 $as_echo_n "(cached) " >&6
5161 else
5162 lt_cv_nm_interface="BSD nm"
5163 echo "int some_variable = 0;" > conftest.$ac_ext
5164 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5165 (eval "$ac_compile" 2>conftest.err)
5166 cat conftest.err >&5
5167 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5168 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5169 cat conftest.err >&5
5170 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5171 cat conftest.out >&5
5172 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5173 lt_cv_nm_interface="MS dumpbin"
5174 fi
5175 rm -f conftest*
5176 fi
5177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5178 $as_echo "$lt_cv_nm_interface" >&6; }
5179
5180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5181 $as_echo_n "checking whether ln -s works... " >&6; }
5182 LN_S=$as_ln_s
5183 if test "$LN_S" = "ln -s"; then
5184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5185 $as_echo "yes" >&6; }
5186 else
5187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5188 $as_echo "no, using $LN_S" >&6; }
5189 fi
5190
5191 # find the maximum length of command line arguments
5192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5193 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5194 if ${lt_cv_sys_max_cmd_len+:} false; then :
5195 $as_echo_n "(cached) " >&6
5196 else
5197 i=0
5198 teststring="ABCD"
5199
5200 case $build_os in
5201 msdosdjgpp*)
5202 # On DJGPP, this test can blow up pretty badly due to problems in libc
5203 # (any single argument exceeding 2000 bytes causes a buffer overrun
5204 # during glob expansion). Even if it were fixed, the result of this
5205 # check would be larger than it should be.
5206 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5207 ;;
5208
5209 gnu*)
5210 # Under GNU Hurd, this test is not required because there is
5211 # no limit to the length of command line arguments.
5212 # Libtool will interpret -1 as no limit whatsoever
5213 lt_cv_sys_max_cmd_len=-1;
5214 ;;
5215
5216 cygwin* | mingw* | cegcc*)
5217 # On Win9x/ME, this test blows up -- it succeeds, but takes
5218 # about 5 minutes as the teststring grows exponentially.
5219 # Worse, since 9x/ME are not pre-emptively multitasking,
5220 # you end up with a "frozen" computer, even though with patience
5221 # the test eventually succeeds (with a max line length of 256k).
5222 # Instead, let's just punt: use the minimum linelength reported by
5223 # all of the supported platforms: 8192 (on NT/2K/XP).
5224 lt_cv_sys_max_cmd_len=8192;
5225 ;;
5226
5227 mint*)
5228 # On MiNT this can take a long time and run out of memory.
5229 lt_cv_sys_max_cmd_len=8192;
5230 ;;
5231
5232 amigaos*)
5233 # On AmigaOS with pdksh, this test takes hours, literally.
5234 # So we just punt and use a minimum line length of 8192.
5235 lt_cv_sys_max_cmd_len=8192;
5236 ;;
5237
5238 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5239 # This has been around since 386BSD, at least. Likely further.
5240 if test -x /sbin/sysctl; then
5241 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5242 elif test -x /usr/sbin/sysctl; then
5243 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5244 else
5245 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5246 fi
5247 # And add a safety zone
5248 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5249 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5250 ;;
5251
5252 interix*)
5253 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5254 lt_cv_sys_max_cmd_len=196608
5255 ;;
5256
5257 osf*)
5258 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5259 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5260 # nice to cause kernel panics so lets avoid the loop below.
5261 # First set a reasonable default.
5262 lt_cv_sys_max_cmd_len=16384
5263 #
5264 if test -x /sbin/sysconfig; then
5265 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5266 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5267 esac
5268 fi
5269 ;;
5270 sco3.2v5*)
5271 lt_cv_sys_max_cmd_len=102400
5272 ;;
5273 sysv5* | sco5v6* | sysv4.2uw2*)
5274 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5275 if test -n "$kargmax"; then
5276 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5277 else
5278 lt_cv_sys_max_cmd_len=32768
5279 fi
5280 ;;
5281 *)
5282 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5283 if test -n "$lt_cv_sys_max_cmd_len"; then
5284 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5285 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5286 else
5287 # Make teststring a little bigger before we do anything with it.
5288 # a 1K string should be a reasonable start.
5289 for i in 1 2 3 4 5 6 7 8 ; do
5290 teststring=$teststring$teststring
5291 done
5292 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5293 # If test is not a shell built-in, we'll probably end up computing a
5294 # maximum length that is only half of the actual maximum length, but
5295 # we can't tell.
5296 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5297 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5298 test $i != 17 # 1/2 MB should be enough
5299 do
5300 i=`expr $i + 1`
5301 teststring=$teststring$teststring
5302 done
5303 # Only check the string length outside the loop.
5304 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5305 teststring=
5306 # Add a significant safety factor because C++ compilers can tack on
5307 # massive amounts of additional arguments before passing them to the
5308 # linker. It appears as though 1/2 is a usable value.
5309 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5310 fi
5311 ;;
5312 esac
5313
5314 fi
5315
5316 if test -n $lt_cv_sys_max_cmd_len ; then
5317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5318 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5319 else
5320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5321 $as_echo "none" >&6; }
5322 fi
5323 max_cmd_len=$lt_cv_sys_max_cmd_len
5324
5325
5326
5327
5328
5329
5330 : ${CP="cp -f"}
5331 : ${MV="mv -f"}
5332 : ${RM="rm -f"}
5333
5334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5335 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5336 # Try some XSI features
5337 xsi_shell=no
5338 ( _lt_dummy="a/b/c"
5339 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5340 = c,a/b,, \
5341 && eval 'test $(( 1 + 1 )) -eq 2 \
5342 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5343 && xsi_shell=yes
5344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5345 $as_echo "$xsi_shell" >&6; }
5346
5347
5348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5349 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5350 lt_shell_append=no
5351 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5352 >/dev/null 2>&1 \
5353 && lt_shell_append=yes
5354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5355 $as_echo "$lt_shell_append" >&6; }
5356
5357
5358 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5359 lt_unset=unset
5360 else
5361 lt_unset=false
5362 fi
5363
5364
5365
5366
5367
5368 # test EBCDIC or ASCII
5369 case `echo X|tr X '\101'` in
5370 A) # ASCII based system
5371 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5372 lt_SP2NL='tr \040 \012'
5373 lt_NL2SP='tr \015\012 \040\040'
5374 ;;
5375 *) # EBCDIC based system
5376 lt_SP2NL='tr \100 \n'
5377 lt_NL2SP='tr \r\n \100\100'
5378 ;;
5379 esac
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5390 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5391 if ${lt_cv_ld_reload_flag+:} false; then :
5392 $as_echo_n "(cached) " >&6
5393 else
5394 lt_cv_ld_reload_flag='-r'
5395 fi
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5397 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5398 reload_flag=$lt_cv_ld_reload_flag
5399 case $reload_flag in
5400 "" | " "*) ;;
5401 *) reload_flag=" $reload_flag" ;;
5402 esac
5403 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5404 case $host_os in
5405 darwin*)
5406 if test "$GCC" = yes; then
5407 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5408 else
5409 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5410 fi
5411 ;;
5412 esac
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422 if test -n "$ac_tool_prefix"; then
5423 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5424 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5426 $as_echo_n "checking for $ac_word... " >&6; }
5427 if ${ac_cv_prog_OBJDUMP+:} false; then :
5428 $as_echo_n "(cached) " >&6
5429 else
5430 if test -n "$OBJDUMP"; then
5431 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5432 else
5433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5434 for as_dir in $PATH
5435 do
5436 IFS=$as_save_IFS
5437 test -z "$as_dir" && as_dir=.
5438 for ac_exec_ext in '' $ac_executable_extensions; do
5439 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5440 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5442 break 2
5443 fi
5444 done
5445 done
5446 IFS=$as_save_IFS
5447
5448 fi
5449 fi
5450 OBJDUMP=$ac_cv_prog_OBJDUMP
5451 if test -n "$OBJDUMP"; then
5452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5453 $as_echo "$OBJDUMP" >&6; }
5454 else
5455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5456 $as_echo "no" >&6; }
5457 fi
5458
5459
5460 fi
5461 if test -z "$ac_cv_prog_OBJDUMP"; then
5462 ac_ct_OBJDUMP=$OBJDUMP
5463 # Extract the first word of "objdump", so it can be a program name with args.
5464 set dummy objdump; ac_word=$2
5465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5466 $as_echo_n "checking for $ac_word... " >&6; }
5467 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5468 $as_echo_n "(cached) " >&6
5469 else
5470 if test -n "$ac_ct_OBJDUMP"; then
5471 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5472 else
5473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5474 for as_dir in $PATH
5475 do
5476 IFS=$as_save_IFS
5477 test -z "$as_dir" && as_dir=.
5478 for ac_exec_ext in '' $ac_executable_extensions; do
5479 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5480 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5482 break 2
5483 fi
5484 done
5485 done
5486 IFS=$as_save_IFS
5487
5488 fi
5489 fi
5490 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5491 if test -n "$ac_ct_OBJDUMP"; then
5492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5493 $as_echo "$ac_ct_OBJDUMP" >&6; }
5494 else
5495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5496 $as_echo "no" >&6; }
5497 fi
5498
5499 if test "x$ac_ct_OBJDUMP" = x; then
5500 OBJDUMP="false"
5501 else
5502 case $cross_compiling:$ac_tool_warned in
5503 yes:)
5504 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5505 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5506 ac_tool_warned=yes ;;
5507 esac
5508 OBJDUMP=$ac_ct_OBJDUMP
5509 fi
5510 else
5511 OBJDUMP="$ac_cv_prog_OBJDUMP"
5512 fi
5513
5514 test -z "$OBJDUMP" && OBJDUMP=objdump
5515
5516
5517
5518
5519
5520
5521
5522
5523
5524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5525 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5526 if ${lt_cv_deplibs_check_method+:} false; then :
5527 $as_echo_n "(cached) " >&6
5528 else
5529 lt_cv_file_magic_cmd='$MAGIC_CMD'
5530 lt_cv_file_magic_test_file=
5531 lt_cv_deplibs_check_method='unknown'
5532 # Need to set the preceding variable on all platforms that support
5533 # interlibrary dependencies.
5534 # 'none' -- dependencies not supported.
5535 # `unknown' -- same as none, but documents that we really don't know.
5536 # 'pass_all' -- all dependencies passed with no checks.
5537 # 'test_compile' -- check by making test program.
5538 # 'file_magic [[regex]]' -- check by looking for files in library path
5539 # which responds to the $file_magic_cmd with a given extended regex.
5540 # If you have `file' or equivalent on your system and you're not sure
5541 # whether `pass_all' will *always* work, you probably want this one.
5542
5543 case $host_os in
5544 aix[4-9]*)
5545 lt_cv_deplibs_check_method=pass_all
5546 ;;
5547
5548 beos*)
5549 lt_cv_deplibs_check_method=pass_all
5550 ;;
5551
5552 bsdi[45]*)
5553 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5554 lt_cv_file_magic_cmd='/usr/bin/file -L'
5555 lt_cv_file_magic_test_file=/shlib/libc.so
5556 ;;
5557
5558 cygwin*)
5559 # func_win32_libid is a shell function defined in ltmain.sh
5560 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5561 lt_cv_file_magic_cmd='func_win32_libid'
5562 ;;
5563
5564 mingw* | pw32*)
5565 # Base MSYS/MinGW do not provide the 'file' command needed by
5566 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5567 # unless we find 'file', for example because we are cross-compiling.
5568 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5569 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5570 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5571 lt_cv_file_magic_cmd='func_win32_libid'
5572 else
5573 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5574 lt_cv_file_magic_cmd='$OBJDUMP -f'
5575 fi
5576 ;;
5577
5578 cegcc*)
5579 # use the weaker test based on 'objdump'. See mingw*.
5580 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5581 lt_cv_file_magic_cmd='$OBJDUMP -f'
5582 ;;
5583
5584 darwin* | rhapsody*)
5585 lt_cv_deplibs_check_method=pass_all
5586 ;;
5587
5588 freebsd* | dragonfly*)
5589 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5590 case $host_cpu in
5591 i*86 )
5592 # Not sure whether the presence of OpenBSD here was a mistake.
5593 # Let's accept both of them until this is cleared up.
5594 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5595 lt_cv_file_magic_cmd=/usr/bin/file
5596 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5597 ;;
5598 esac
5599 else
5600 lt_cv_deplibs_check_method=pass_all
5601 fi
5602 ;;
5603
5604 gnu*)
5605 lt_cv_deplibs_check_method=pass_all
5606 ;;
5607
5608 haiku*)
5609 lt_cv_deplibs_check_method=pass_all
5610 ;;
5611
5612 hpux10.20* | hpux11*)
5613 lt_cv_file_magic_cmd=/usr/bin/file
5614 case $host_cpu in
5615 ia64*)
5616 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5617 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5618 ;;
5619 hppa*64*)
5620 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]'
5621 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5622 ;;
5623 *)
5624 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5625 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5626 ;;
5627 esac
5628 ;;
5629
5630 interix[3-9]*)
5631 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5632 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5633 ;;
5634
5635 irix5* | irix6* | nonstopux*)
5636 case $LD in
5637 *-32|*"-32 ") libmagic=32-bit;;
5638 *-n32|*"-n32 ") libmagic=N32;;
5639 *-64|*"-64 ") libmagic=64-bit;;
5640 *) libmagic=never-match;;
5641 esac
5642 lt_cv_deplibs_check_method=pass_all
5643 ;;
5644
5645 # This must be Linux ELF.
5646 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5647 lt_cv_deplibs_check_method=pass_all
5648 ;;
5649
5650 netbsd*)
5651 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5652 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5653 else
5654 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5655 fi
5656 ;;
5657
5658 newos6*)
5659 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5660 lt_cv_file_magic_cmd=/usr/bin/file
5661 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5662 ;;
5663
5664 *nto* | *qnx*)
5665 lt_cv_deplibs_check_method=pass_all
5666 ;;
5667
5668 openbsd*)
5669 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5670 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5671 else
5672 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5673 fi
5674 ;;
5675
5676 osf3* | osf4* | osf5*)
5677 lt_cv_deplibs_check_method=pass_all
5678 ;;
5679
5680 rdos*)
5681 lt_cv_deplibs_check_method=pass_all
5682 ;;
5683
5684 solaris*)
5685 lt_cv_deplibs_check_method=pass_all
5686 ;;
5687
5688 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5689 lt_cv_deplibs_check_method=pass_all
5690 ;;
5691
5692 sysv4 | sysv4.3*)
5693 case $host_vendor in
5694 motorola)
5695 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]'
5696 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5697 ;;
5698 ncr)
5699 lt_cv_deplibs_check_method=pass_all
5700 ;;
5701 sequent)
5702 lt_cv_file_magic_cmd='/bin/file'
5703 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5704 ;;
5705 sni)
5706 lt_cv_file_magic_cmd='/bin/file'
5707 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5708 lt_cv_file_magic_test_file=/lib/libc.so
5709 ;;
5710 siemens)
5711 lt_cv_deplibs_check_method=pass_all
5712 ;;
5713 pc)
5714 lt_cv_deplibs_check_method=pass_all
5715 ;;
5716 esac
5717 ;;
5718
5719 tpf*)
5720 lt_cv_deplibs_check_method=pass_all
5721 ;;
5722 esac
5723
5724 fi
5725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5726 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5727 file_magic_cmd=$lt_cv_file_magic_cmd
5728 deplibs_check_method=$lt_cv_deplibs_check_method
5729 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742 plugin_option=
5743 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
5744 for plugin in $plugin_names; do
5745 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
5746 if test x$plugin_so = x$plugin; then
5747 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
5748 fi
5749 if test x$plugin_so != x$plugin; then
5750 plugin_option="--plugin $plugin_so"
5751 break
5752 fi
5753 done
5754
5755 if test -n "$ac_tool_prefix"; then
5756 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5757 set dummy ${ac_tool_prefix}ar; ac_word=$2
5758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5759 $as_echo_n "checking for $ac_word... " >&6; }
5760 if ${ac_cv_prog_AR+:} false; then :
5761 $as_echo_n "(cached) " >&6
5762 else
5763 if test -n "$AR"; then
5764 ac_cv_prog_AR="$AR" # Let the user override the test.
5765 else
5766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5767 for as_dir in $PATH
5768 do
5769 IFS=$as_save_IFS
5770 test -z "$as_dir" && as_dir=.
5771 for ac_exec_ext in '' $ac_executable_extensions; do
5772 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5773 ac_cv_prog_AR="${ac_tool_prefix}ar"
5774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5775 break 2
5776 fi
5777 done
5778 done
5779 IFS=$as_save_IFS
5780
5781 fi
5782 fi
5783 AR=$ac_cv_prog_AR
5784 if test -n "$AR"; then
5785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5786 $as_echo "$AR" >&6; }
5787 else
5788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5789 $as_echo "no" >&6; }
5790 fi
5791
5792
5793 fi
5794 if test -z "$ac_cv_prog_AR"; then
5795 ac_ct_AR=$AR
5796 # Extract the first word of "ar", so it can be a program name with args.
5797 set dummy ar; ac_word=$2
5798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5799 $as_echo_n "checking for $ac_word... " >&6; }
5800 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5801 $as_echo_n "(cached) " >&6
5802 else
5803 if test -n "$ac_ct_AR"; then
5804 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5805 else
5806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5807 for as_dir in $PATH
5808 do
5809 IFS=$as_save_IFS
5810 test -z "$as_dir" && as_dir=.
5811 for ac_exec_ext in '' $ac_executable_extensions; do
5812 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5813 ac_cv_prog_ac_ct_AR="ar"
5814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5815 break 2
5816 fi
5817 done
5818 done
5819 IFS=$as_save_IFS
5820
5821 fi
5822 fi
5823 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5824 if test -n "$ac_ct_AR"; then
5825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5826 $as_echo "$ac_ct_AR" >&6; }
5827 else
5828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5829 $as_echo "no" >&6; }
5830 fi
5831
5832 if test "x$ac_ct_AR" = x; then
5833 AR="false"
5834 else
5835 case $cross_compiling:$ac_tool_warned in
5836 yes:)
5837 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5838 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5839 ac_tool_warned=yes ;;
5840 esac
5841 AR=$ac_ct_AR
5842 fi
5843 else
5844 AR="$ac_cv_prog_AR"
5845 fi
5846
5847 test -z "$AR" && AR=ar
5848 if test -n "$plugin_option"; then
5849 if $AR --help 2>&1 | grep -q "\--plugin"; then
5850 touch conftest.c
5851 $AR $plugin_option rc conftest.a conftest.c
5852 if test "$?" != 0; then
5853 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
5854 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
5855 else
5856 AR="$AR $plugin_option"
5857 fi
5858 rm -f conftest.*
5859 fi
5860 fi
5861 test -z "$AR_FLAGS" && AR_FLAGS=cru
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873 if test -n "$ac_tool_prefix"; then
5874 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5875 set dummy ${ac_tool_prefix}strip; ac_word=$2
5876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5877 $as_echo_n "checking for $ac_word... " >&6; }
5878 if ${ac_cv_prog_STRIP+:} false; then :
5879 $as_echo_n "(cached) " >&6
5880 else
5881 if test -n "$STRIP"; then
5882 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5883 else
5884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5885 for as_dir in $PATH
5886 do
5887 IFS=$as_save_IFS
5888 test -z "$as_dir" && as_dir=.
5889 for ac_exec_ext in '' $ac_executable_extensions; do
5890 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5891 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5893 break 2
5894 fi
5895 done
5896 done
5897 IFS=$as_save_IFS
5898
5899 fi
5900 fi
5901 STRIP=$ac_cv_prog_STRIP
5902 if test -n "$STRIP"; then
5903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5904 $as_echo "$STRIP" >&6; }
5905 else
5906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5907 $as_echo "no" >&6; }
5908 fi
5909
5910
5911 fi
5912 if test -z "$ac_cv_prog_STRIP"; then
5913 ac_ct_STRIP=$STRIP
5914 # Extract the first word of "strip", so it can be a program name with args.
5915 set dummy strip; ac_word=$2
5916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5917 $as_echo_n "checking for $ac_word... " >&6; }
5918 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5919 $as_echo_n "(cached) " >&6
5920 else
5921 if test -n "$ac_ct_STRIP"; then
5922 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5923 else
5924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5925 for as_dir in $PATH
5926 do
5927 IFS=$as_save_IFS
5928 test -z "$as_dir" && as_dir=.
5929 for ac_exec_ext in '' $ac_executable_extensions; do
5930 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5931 ac_cv_prog_ac_ct_STRIP="strip"
5932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5933 break 2
5934 fi
5935 done
5936 done
5937 IFS=$as_save_IFS
5938
5939 fi
5940 fi
5941 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5942 if test -n "$ac_ct_STRIP"; then
5943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5944 $as_echo "$ac_ct_STRIP" >&6; }
5945 else
5946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5947 $as_echo "no" >&6; }
5948 fi
5949
5950 if test "x$ac_ct_STRIP" = x; then
5951 STRIP=":"
5952 else
5953 case $cross_compiling:$ac_tool_warned in
5954 yes:)
5955 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5956 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5957 ac_tool_warned=yes ;;
5958 esac
5959 STRIP=$ac_ct_STRIP
5960 fi
5961 else
5962 STRIP="$ac_cv_prog_STRIP"
5963 fi
5964
5965 test -z "$STRIP" && STRIP=:
5966
5967
5968
5969
5970
5971
5972 if test -n "$ac_tool_prefix"; then
5973 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5974 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5976 $as_echo_n "checking for $ac_word... " >&6; }
5977 if ${ac_cv_prog_RANLIB+:} false; then :
5978 $as_echo_n "(cached) " >&6
5979 else
5980 if test -n "$RANLIB"; then
5981 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5982 else
5983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5984 for as_dir in $PATH
5985 do
5986 IFS=$as_save_IFS
5987 test -z "$as_dir" && as_dir=.
5988 for ac_exec_ext in '' $ac_executable_extensions; do
5989 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5990 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5992 break 2
5993 fi
5994 done
5995 done
5996 IFS=$as_save_IFS
5997
5998 fi
5999 fi
6000 RANLIB=$ac_cv_prog_RANLIB
6001 if test -n "$RANLIB"; then
6002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6003 $as_echo "$RANLIB" >&6; }
6004 else
6005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6006 $as_echo "no" >&6; }
6007 fi
6008
6009
6010 fi
6011 if test -z "$ac_cv_prog_RANLIB"; then
6012 ac_ct_RANLIB=$RANLIB
6013 # Extract the first word of "ranlib", so it can be a program name with args.
6014 set dummy ranlib; ac_word=$2
6015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6016 $as_echo_n "checking for $ac_word... " >&6; }
6017 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6018 $as_echo_n "(cached) " >&6
6019 else
6020 if test -n "$ac_ct_RANLIB"; then
6021 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6022 else
6023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6024 for as_dir in $PATH
6025 do
6026 IFS=$as_save_IFS
6027 test -z "$as_dir" && as_dir=.
6028 for ac_exec_ext in '' $ac_executable_extensions; do
6029 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6030 ac_cv_prog_ac_ct_RANLIB="ranlib"
6031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6032 break 2
6033 fi
6034 done
6035 done
6036 IFS=$as_save_IFS
6037
6038 fi
6039 fi
6040 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6041 if test -n "$ac_ct_RANLIB"; then
6042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6043 $as_echo "$ac_ct_RANLIB" >&6; }
6044 else
6045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6046 $as_echo "no" >&6; }
6047 fi
6048
6049 if test "x$ac_ct_RANLIB" = x; then
6050 RANLIB=":"
6051 else
6052 case $cross_compiling:$ac_tool_warned in
6053 yes:)
6054 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6055 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6056 ac_tool_warned=yes ;;
6057 esac
6058 RANLIB=$ac_ct_RANLIB
6059 fi
6060 else
6061 RANLIB="$ac_cv_prog_RANLIB"
6062 fi
6063
6064 test -z "$RANLIB" && RANLIB=:
6065 if test -n "$plugin_option" && test "$RANLIB" != ":"; then
6066 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
6067 RANLIB="$RANLIB $plugin_option"
6068 fi
6069 fi
6070
6071
6072
6073
6074
6075
6076 # Determine commands to create old-style static archives.
6077 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6078 old_postinstall_cmds='chmod 644 $oldlib'
6079 old_postuninstall_cmds=
6080
6081 if test -n "$RANLIB"; then
6082 case $host_os in
6083 openbsd*)
6084 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6085 ;;
6086 *)
6087 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6088 ;;
6089 esac
6090 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6091 fi
6092
6093 case $host_os in
6094 darwin*)
6095 lock_old_archive_extraction=yes ;;
6096 *)
6097 lock_old_archive_extraction=no ;;
6098 esac
6099
6100
6101
6102
6103
6104
6105
6106
6107
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117
6118
6119
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130
6131
6132
6133
6134
6135
6136
6137
6138 # If no C compiler was specified, use CC.
6139 LTCC=${LTCC-"$CC"}
6140
6141 # If no C compiler flags were specified, use CFLAGS.
6142 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6143
6144 # Allow CC to be a program name with arguments.
6145 compiler=$CC
6146
6147
6148 # Check for command to grab the raw symbol name followed by C symbol from nm.
6149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6150 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6151 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6152 $as_echo_n "(cached) " >&6
6153 else
6154
6155 # These are sane defaults that work on at least a few old systems.
6156 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6157
6158 # Character class describing NM global symbol codes.
6159 symcode='[BCDEGRST]'
6160
6161 # Regexp to match symbols that can be accessed directly from C.
6162 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6163
6164 # Define system-specific variables.
6165 case $host_os in
6166 aix*)
6167 symcode='[BCDT]'
6168 ;;
6169 cygwin* | mingw* | pw32* | cegcc*)
6170 symcode='[ABCDGISTW]'
6171 ;;
6172 hpux*)
6173 if test "$host_cpu" = ia64; then
6174 symcode='[ABCDEGRST]'
6175 fi
6176 ;;
6177 irix* | nonstopux*)
6178 symcode='[BCDEGRST]'
6179 ;;
6180 osf*)
6181 symcode='[BCDEGQRST]'
6182 ;;
6183 solaris*)
6184 symcode='[BCDRT]'
6185 ;;
6186 sco3.2v5*)
6187 symcode='[DT]'
6188 ;;
6189 sysv4.2uw2*)
6190 symcode='[DT]'
6191 ;;
6192 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6193 symcode='[ABDT]'
6194 ;;
6195 sysv4)
6196 symcode='[DFNSTU]'
6197 ;;
6198 esac
6199
6200 # If we're using GNU nm, then use its standard symbol codes.
6201 case `$NM -V 2>&1` in
6202 *GNU* | *'with BFD'*)
6203 symcode='[ABCDGIRSTW]' ;;
6204 esac
6205
6206 # Transform an extracted symbol line into a proper C declaration.
6207 # Some systems (esp. on ia64) link data and code symbols differently,
6208 # so use this general approach.
6209 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6210
6211 # Transform an extracted symbol line into symbol name and symbol address
6212 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6213 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'"
6214
6215 # Handle CRLF in mingw tool chain
6216 opt_cr=
6217 case $build_os in
6218 mingw*)
6219 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6220 ;;
6221 esac
6222
6223 # Try without a prefix underscore, then with it.
6224 for ac_symprfx in "" "_"; do
6225
6226 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6227 symxfrm="\\1 $ac_symprfx\\2 \\2"
6228
6229 # Write the raw and C identifiers.
6230 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6231 # Fake it for dumpbin and say T for any non-static function
6232 # and D for any global variable.
6233 # Also find C++ and __fastcall symbols from MSVC++,
6234 # which start with @ or ?.
6235 lt_cv_sys_global_symbol_pipe="$AWK '"\
6236 " {last_section=section; section=\$ 3};"\
6237 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6238 " \$ 0!~/External *\|/{next};"\
6239 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6240 " {if(hide[section]) next};"\
6241 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6242 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6243 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6244 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6245 " ' prfx=^$ac_symprfx"
6246 else
6247 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6248 fi
6249
6250 # Check to see that the pipe works correctly.
6251 pipe_works=no
6252
6253 rm -f conftest*
6254 cat > conftest.$ac_ext <<_LT_EOF
6255 #ifdef __cplusplus
6256 extern "C" {
6257 #endif
6258 char nm_test_var;
6259 void nm_test_func(void);
6260 void nm_test_func(void){}
6261 #ifdef __cplusplus
6262 }
6263 #endif
6264 int main(){nm_test_var='a';nm_test_func();return(0);}
6265 _LT_EOF
6266
6267 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6268 (eval $ac_compile) 2>&5
6269 ac_status=$?
6270 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6271 test $ac_status = 0; }; then
6272 # Now try to grab the symbols.
6273 nlist=conftest.nm
6274 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6275 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6276 ac_status=$?
6277 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6278 test $ac_status = 0; } && test -s "$nlist"; then
6279 # Try sorting and uniquifying the output.
6280 if sort "$nlist" | uniq > "$nlist"T; then
6281 mv -f "$nlist"T "$nlist"
6282 else
6283 rm -f "$nlist"T
6284 fi
6285
6286 # Make sure that we snagged all the symbols we need.
6287 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6288 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6289 cat <<_LT_EOF > conftest.$ac_ext
6290 #ifdef __cplusplus
6291 extern "C" {
6292 #endif
6293
6294 _LT_EOF
6295 # Now generate the symbol file.
6296 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6297
6298 cat <<_LT_EOF >> conftest.$ac_ext
6299
6300 /* The mapping between symbol names and symbols. */
6301 const struct {
6302 const char *name;
6303 void *address;
6304 }
6305 lt__PROGRAM__LTX_preloaded_symbols[] =
6306 {
6307 { "@PROGRAM@", (void *) 0 },
6308 _LT_EOF
6309 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6310 cat <<\_LT_EOF >> conftest.$ac_ext
6311 {0, (void *) 0}
6312 };
6313
6314 /* This works around a problem in FreeBSD linker */
6315 #ifdef FREEBSD_WORKAROUND
6316 static const void *lt_preloaded_setup() {
6317 return lt__PROGRAM__LTX_preloaded_symbols;
6318 }
6319 #endif
6320
6321 #ifdef __cplusplus
6322 }
6323 #endif
6324 _LT_EOF
6325 # Now try linking the two files.
6326 mv conftest.$ac_objext conftstm.$ac_objext
6327 lt_save_LIBS="$LIBS"
6328 lt_save_CFLAGS="$CFLAGS"
6329 LIBS="conftstm.$ac_objext"
6330 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6331 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6332 (eval $ac_link) 2>&5
6333 ac_status=$?
6334 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6335 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6336 pipe_works=yes
6337 fi
6338 LIBS="$lt_save_LIBS"
6339 CFLAGS="$lt_save_CFLAGS"
6340 else
6341 echo "cannot find nm_test_func in $nlist" >&5
6342 fi
6343 else
6344 echo "cannot find nm_test_var in $nlist" >&5
6345 fi
6346 else
6347 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6348 fi
6349 else
6350 echo "$progname: failed program was:" >&5
6351 cat conftest.$ac_ext >&5
6352 fi
6353 rm -rf conftest* conftst*
6354
6355 # Do not use the global_symbol_pipe unless it works.
6356 if test "$pipe_works" = yes; then
6357 break
6358 else
6359 lt_cv_sys_global_symbol_pipe=
6360 fi
6361 done
6362
6363 fi
6364
6365 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6366 lt_cv_sys_global_symbol_to_cdecl=
6367 fi
6368 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6370 $as_echo "failed" >&6; }
6371 else
6372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6373 $as_echo "ok" >&6; }
6374 fi
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397 # Check whether --enable-libtool-lock was given.
6398 if test "${enable_libtool_lock+set}" = set; then :
6399 enableval=$enable_libtool_lock;
6400 fi
6401
6402 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6403
6404 # Some flags need to be propagated to the compiler or linker for good
6405 # libtool support.
6406 case $host in
6407 ia64-*-hpux*)
6408 # Find out which ABI we are using.
6409 echo 'int i;' > conftest.$ac_ext
6410 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6411 (eval $ac_compile) 2>&5
6412 ac_status=$?
6413 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6414 test $ac_status = 0; }; then
6415 case `/usr/bin/file conftest.$ac_objext` in
6416 *ELF-32*)
6417 HPUX_IA64_MODE="32"
6418 ;;
6419 *ELF-64*)
6420 HPUX_IA64_MODE="64"
6421 ;;
6422 esac
6423 fi
6424 rm -rf conftest*
6425 ;;
6426 *-*-irix6*)
6427 # Find out which ABI we are using.
6428 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6429 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6430 (eval $ac_compile) 2>&5
6431 ac_status=$?
6432 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6433 test $ac_status = 0; }; then
6434 if test "$lt_cv_prog_gnu_ld" = yes; then
6435 case `/usr/bin/file conftest.$ac_objext` in
6436 *32-bit*)
6437 LD="${LD-ld} -melf32bsmip"
6438 ;;
6439 *N32*)
6440 LD="${LD-ld} -melf32bmipn32"
6441 ;;
6442 *64-bit*)
6443 LD="${LD-ld} -melf64bmip"
6444 ;;
6445 esac
6446 else
6447 case `/usr/bin/file conftest.$ac_objext` in
6448 *32-bit*)
6449 LD="${LD-ld} -32"
6450 ;;
6451 *N32*)
6452 LD="${LD-ld} -n32"
6453 ;;
6454 *64-bit*)
6455 LD="${LD-ld} -64"
6456 ;;
6457 esac
6458 fi
6459 fi
6460 rm -rf conftest*
6461 ;;
6462
6463 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6464 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6465 # Find out which ABI we are using.
6466 echo 'int i;' > conftest.$ac_ext
6467 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6468 (eval $ac_compile) 2>&5
6469 ac_status=$?
6470 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6471 test $ac_status = 0; }; then
6472 case `/usr/bin/file conftest.o` in
6473 *32-bit*)
6474 case $host in
6475 x86_64-*kfreebsd*-gnu)
6476 LD="${LD-ld} -m elf_i386_fbsd"
6477 ;;
6478 x86_64-*linux*)
6479 case `/usr/bin/file conftest.o` in
6480 *x86-64*)
6481 LD="${LD-ld} -m elf32_x86_64"
6482 ;;
6483 *)
6484 LD="${LD-ld} -m elf_i386"
6485 ;;
6486 esac
6487 ;;
6488 powerpc64le-*linux*)
6489 LD="${LD-ld} -m elf32lppclinux"
6490 ;;
6491 powerpc64-*linux*)
6492 LD="${LD-ld} -m elf32ppclinux"
6493 ;;
6494 s390x-*linux*)
6495 LD="${LD-ld} -m elf_s390"
6496 ;;
6497 sparc64-*linux*)
6498 LD="${LD-ld} -m elf32_sparc"
6499 ;;
6500 esac
6501 ;;
6502 *64-bit*)
6503 case $host in
6504 x86_64-*kfreebsd*-gnu)
6505 LD="${LD-ld} -m elf_x86_64_fbsd"
6506 ;;
6507 x86_64-*linux*)
6508 LD="${LD-ld} -m elf_x86_64"
6509 ;;
6510 powerpcle-*linux*)
6511 LD="${LD-ld} -m elf64lppc"
6512 ;;
6513 powerpc-*linux*)
6514 LD="${LD-ld} -m elf64ppc"
6515 ;;
6516 s390*-*linux*|s390*-*tpf*)
6517 LD="${LD-ld} -m elf64_s390"
6518 ;;
6519 sparc*-*linux*)
6520 LD="${LD-ld} -m elf64_sparc"
6521 ;;
6522 esac
6523 ;;
6524 esac
6525 fi
6526 rm -rf conftest*
6527 ;;
6528
6529 *-*-sco3.2v5*)
6530 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6531 SAVE_CFLAGS="$CFLAGS"
6532 CFLAGS="$CFLAGS -belf"
6533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6534 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6535 if ${lt_cv_cc_needs_belf+:} false; then :
6536 $as_echo_n "(cached) " >&6
6537 else
6538 ac_ext=c
6539 ac_cpp='$CPP $CPPFLAGS'
6540 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6541 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6542 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6543
6544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6545 /* end confdefs.h. */
6546
6547 int
6548 main ()
6549 {
6550
6551 ;
6552 return 0;
6553 }
6554 _ACEOF
6555 if ac_fn_c_try_link "$LINENO"; then :
6556 lt_cv_cc_needs_belf=yes
6557 else
6558 lt_cv_cc_needs_belf=no
6559 fi
6560 rm -f core conftest.err conftest.$ac_objext \
6561 conftest$ac_exeext conftest.$ac_ext
6562 ac_ext=c
6563 ac_cpp='$CPP $CPPFLAGS'
6564 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6565 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6566 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6567
6568 fi
6569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6570 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6571 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6572 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6573 CFLAGS="$SAVE_CFLAGS"
6574 fi
6575 ;;
6576 sparc*-*solaris*)
6577 # Find out which ABI we are using.
6578 echo 'int i;' > conftest.$ac_ext
6579 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6580 (eval $ac_compile) 2>&5
6581 ac_status=$?
6582 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6583 test $ac_status = 0; }; then
6584 case `/usr/bin/file conftest.o` in
6585 *64-bit*)
6586 case $lt_cv_prog_gnu_ld in
6587 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6588 *)
6589 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6590 LD="${LD-ld} -64"
6591 fi
6592 ;;
6593 esac
6594 ;;
6595 esac
6596 fi
6597 rm -rf conftest*
6598 ;;
6599 esac
6600
6601 need_locks="$enable_libtool_lock"
6602
6603
6604 case $host_os in
6605 rhapsody* | darwin*)
6606 if test -n "$ac_tool_prefix"; then
6607 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6608 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6610 $as_echo_n "checking for $ac_word... " >&6; }
6611 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6612 $as_echo_n "(cached) " >&6
6613 else
6614 if test -n "$DSYMUTIL"; then
6615 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6616 else
6617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6618 for as_dir in $PATH
6619 do
6620 IFS=$as_save_IFS
6621 test -z "$as_dir" && as_dir=.
6622 for ac_exec_ext in '' $ac_executable_extensions; do
6623 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6624 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6626 break 2
6627 fi
6628 done
6629 done
6630 IFS=$as_save_IFS
6631
6632 fi
6633 fi
6634 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6635 if test -n "$DSYMUTIL"; then
6636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6637 $as_echo "$DSYMUTIL" >&6; }
6638 else
6639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6640 $as_echo "no" >&6; }
6641 fi
6642
6643
6644 fi
6645 if test -z "$ac_cv_prog_DSYMUTIL"; then
6646 ac_ct_DSYMUTIL=$DSYMUTIL
6647 # Extract the first word of "dsymutil", so it can be a program name with args.
6648 set dummy dsymutil; ac_word=$2
6649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6650 $as_echo_n "checking for $ac_word... " >&6; }
6651 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6652 $as_echo_n "(cached) " >&6
6653 else
6654 if test -n "$ac_ct_DSYMUTIL"; then
6655 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6656 else
6657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6658 for as_dir in $PATH
6659 do
6660 IFS=$as_save_IFS
6661 test -z "$as_dir" && as_dir=.
6662 for ac_exec_ext in '' $ac_executable_extensions; do
6663 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6664 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6666 break 2
6667 fi
6668 done
6669 done
6670 IFS=$as_save_IFS
6671
6672 fi
6673 fi
6674 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6675 if test -n "$ac_ct_DSYMUTIL"; then
6676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6677 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6678 else
6679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6680 $as_echo "no" >&6; }
6681 fi
6682
6683 if test "x$ac_ct_DSYMUTIL" = x; then
6684 DSYMUTIL=":"
6685 else
6686 case $cross_compiling:$ac_tool_warned in
6687 yes:)
6688 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6689 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6690 ac_tool_warned=yes ;;
6691 esac
6692 DSYMUTIL=$ac_ct_DSYMUTIL
6693 fi
6694 else
6695 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6696 fi
6697
6698 if test -n "$ac_tool_prefix"; then
6699 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6700 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6702 $as_echo_n "checking for $ac_word... " >&6; }
6703 if ${ac_cv_prog_NMEDIT+:} false; then :
6704 $as_echo_n "(cached) " >&6
6705 else
6706 if test -n "$NMEDIT"; then
6707 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6708 else
6709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6710 for as_dir in $PATH
6711 do
6712 IFS=$as_save_IFS
6713 test -z "$as_dir" && as_dir=.
6714 for ac_exec_ext in '' $ac_executable_extensions; do
6715 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6716 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6718 break 2
6719 fi
6720 done
6721 done
6722 IFS=$as_save_IFS
6723
6724 fi
6725 fi
6726 NMEDIT=$ac_cv_prog_NMEDIT
6727 if test -n "$NMEDIT"; then
6728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6729 $as_echo "$NMEDIT" >&6; }
6730 else
6731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6732 $as_echo "no" >&6; }
6733 fi
6734
6735
6736 fi
6737 if test -z "$ac_cv_prog_NMEDIT"; then
6738 ac_ct_NMEDIT=$NMEDIT
6739 # Extract the first word of "nmedit", so it can be a program name with args.
6740 set dummy nmedit; ac_word=$2
6741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6742 $as_echo_n "checking for $ac_word... " >&6; }
6743 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6744 $as_echo_n "(cached) " >&6
6745 else
6746 if test -n "$ac_ct_NMEDIT"; then
6747 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6748 else
6749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6750 for as_dir in $PATH
6751 do
6752 IFS=$as_save_IFS
6753 test -z "$as_dir" && as_dir=.
6754 for ac_exec_ext in '' $ac_executable_extensions; do
6755 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6756 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6758 break 2
6759 fi
6760 done
6761 done
6762 IFS=$as_save_IFS
6763
6764 fi
6765 fi
6766 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6767 if test -n "$ac_ct_NMEDIT"; then
6768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6769 $as_echo "$ac_ct_NMEDIT" >&6; }
6770 else
6771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6772 $as_echo "no" >&6; }
6773 fi
6774
6775 if test "x$ac_ct_NMEDIT" = x; then
6776 NMEDIT=":"
6777 else
6778 case $cross_compiling:$ac_tool_warned in
6779 yes:)
6780 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6781 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6782 ac_tool_warned=yes ;;
6783 esac
6784 NMEDIT=$ac_ct_NMEDIT
6785 fi
6786 else
6787 NMEDIT="$ac_cv_prog_NMEDIT"
6788 fi
6789
6790 if test -n "$ac_tool_prefix"; then
6791 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6792 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6794 $as_echo_n "checking for $ac_word... " >&6; }
6795 if ${ac_cv_prog_LIPO+:} false; then :
6796 $as_echo_n "(cached) " >&6
6797 else
6798 if test -n "$LIPO"; then
6799 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6800 else
6801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6802 for as_dir in $PATH
6803 do
6804 IFS=$as_save_IFS
6805 test -z "$as_dir" && as_dir=.
6806 for ac_exec_ext in '' $ac_executable_extensions; do
6807 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6808 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6810 break 2
6811 fi
6812 done
6813 done
6814 IFS=$as_save_IFS
6815
6816 fi
6817 fi
6818 LIPO=$ac_cv_prog_LIPO
6819 if test -n "$LIPO"; then
6820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6821 $as_echo "$LIPO" >&6; }
6822 else
6823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6824 $as_echo "no" >&6; }
6825 fi
6826
6827
6828 fi
6829 if test -z "$ac_cv_prog_LIPO"; then
6830 ac_ct_LIPO=$LIPO
6831 # Extract the first word of "lipo", so it can be a program name with args.
6832 set dummy lipo; ac_word=$2
6833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6834 $as_echo_n "checking for $ac_word... " >&6; }
6835 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6836 $as_echo_n "(cached) " >&6
6837 else
6838 if test -n "$ac_ct_LIPO"; then
6839 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6840 else
6841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6842 for as_dir in $PATH
6843 do
6844 IFS=$as_save_IFS
6845 test -z "$as_dir" && as_dir=.
6846 for ac_exec_ext in '' $ac_executable_extensions; do
6847 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6848 ac_cv_prog_ac_ct_LIPO="lipo"
6849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6850 break 2
6851 fi
6852 done
6853 done
6854 IFS=$as_save_IFS
6855
6856 fi
6857 fi
6858 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6859 if test -n "$ac_ct_LIPO"; then
6860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6861 $as_echo "$ac_ct_LIPO" >&6; }
6862 else
6863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6864 $as_echo "no" >&6; }
6865 fi
6866
6867 if test "x$ac_ct_LIPO" = x; then
6868 LIPO=":"
6869 else
6870 case $cross_compiling:$ac_tool_warned in
6871 yes:)
6872 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6873 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6874 ac_tool_warned=yes ;;
6875 esac
6876 LIPO=$ac_ct_LIPO
6877 fi
6878 else
6879 LIPO="$ac_cv_prog_LIPO"
6880 fi
6881
6882 if test -n "$ac_tool_prefix"; then
6883 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6884 set dummy ${ac_tool_prefix}otool; 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_OTOOL+:} false; then :
6888 $as_echo_n "(cached) " >&6
6889 else
6890 if test -n "$OTOOL"; then
6891 ac_cv_prog_OTOOL="$OTOOL" # 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_OTOOL="${ac_tool_prefix}otool"
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 OTOOL=$ac_cv_prog_OTOOL
6911 if test -n "$OTOOL"; then
6912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6913 $as_echo "$OTOOL" >&6; }
6914 else
6915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6916 $as_echo "no" >&6; }
6917 fi
6918
6919
6920 fi
6921 if test -z "$ac_cv_prog_OTOOL"; then
6922 ac_ct_OTOOL=$OTOOL
6923 # Extract the first word of "otool", so it can be a program name with args.
6924 set dummy otool; ac_word=$2
6925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6926 $as_echo_n "checking for $ac_word... " >&6; }
6927 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6928 $as_echo_n "(cached) " >&6
6929 else
6930 if test -n "$ac_ct_OTOOL"; then
6931 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6932 else
6933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6934 for as_dir in $PATH
6935 do
6936 IFS=$as_save_IFS
6937 test -z "$as_dir" && as_dir=.
6938 for ac_exec_ext in '' $ac_executable_extensions; do
6939 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6940 ac_cv_prog_ac_ct_OTOOL="otool"
6941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6942 break 2
6943 fi
6944 done
6945 done
6946 IFS=$as_save_IFS
6947
6948 fi
6949 fi
6950 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6951 if test -n "$ac_ct_OTOOL"; then
6952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6953 $as_echo "$ac_ct_OTOOL" >&6; }
6954 else
6955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6956 $as_echo "no" >&6; }
6957 fi
6958
6959 if test "x$ac_ct_OTOOL" = x; then
6960 OTOOL=":"
6961 else
6962 case $cross_compiling:$ac_tool_warned in
6963 yes:)
6964 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6965 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6966 ac_tool_warned=yes ;;
6967 esac
6968 OTOOL=$ac_ct_OTOOL
6969 fi
6970 else
6971 OTOOL="$ac_cv_prog_OTOOL"
6972 fi
6973
6974 if test -n "$ac_tool_prefix"; then
6975 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6976 set dummy ${ac_tool_prefix}otool64; 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_OTOOL64+:} false; then :
6980 $as_echo_n "(cached) " >&6
6981 else
6982 if test -n "$OTOOL64"; then
6983 ac_cv_prog_OTOOL64="$OTOOL64" # 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_OTOOL64="${ac_tool_prefix}otool64"
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 OTOOL64=$ac_cv_prog_OTOOL64
7003 if test -n "$OTOOL64"; then
7004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7005 $as_echo "$OTOOL64" >&6; }
7006 else
7007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7008 $as_echo "no" >&6; }
7009 fi
7010
7011
7012 fi
7013 if test -z "$ac_cv_prog_OTOOL64"; then
7014 ac_ct_OTOOL64=$OTOOL64
7015 # Extract the first word of "otool64", so it can be a program name with args.
7016 set dummy otool64; ac_word=$2
7017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7018 $as_echo_n "checking for $ac_word... " >&6; }
7019 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7020 $as_echo_n "(cached) " >&6
7021 else
7022 if test -n "$ac_ct_OTOOL64"; then
7023 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7024 else
7025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7026 for as_dir in $PATH
7027 do
7028 IFS=$as_save_IFS
7029 test -z "$as_dir" && as_dir=.
7030 for ac_exec_ext in '' $ac_executable_extensions; do
7031 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7032 ac_cv_prog_ac_ct_OTOOL64="otool64"
7033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7034 break 2
7035 fi
7036 done
7037 done
7038 IFS=$as_save_IFS
7039
7040 fi
7041 fi
7042 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7043 if test -n "$ac_ct_OTOOL64"; then
7044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7045 $as_echo "$ac_ct_OTOOL64" >&6; }
7046 else
7047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7048 $as_echo "no" >&6; }
7049 fi
7050
7051 if test "x$ac_ct_OTOOL64" = x; then
7052 OTOOL64=":"
7053 else
7054 case $cross_compiling:$ac_tool_warned in
7055 yes:)
7056 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7057 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7058 ac_tool_warned=yes ;;
7059 esac
7060 OTOOL64=$ac_ct_OTOOL64
7061 fi
7062 else
7063 OTOOL64="$ac_cv_prog_OTOOL64"
7064 fi
7065
7066
7067
7068
7069
7070
7071
7072
7073
7074
7075
7076
7077
7078
7079
7080
7081
7082
7083
7084
7085
7086
7087
7088
7089
7090
7091
7092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7093 $as_echo_n "checking for -single_module linker flag... " >&6; }
7094 if ${lt_cv_apple_cc_single_mod+:} false; then :
7095 $as_echo_n "(cached) " >&6
7096 else
7097 lt_cv_apple_cc_single_mod=no
7098 if test -z "${LT_MULTI_MODULE}"; then
7099 # By default we will add the -single_module flag. You can override
7100 # by either setting the environment variable LT_MULTI_MODULE
7101 # non-empty at configure time, or by adding -multi_module to the
7102 # link flags.
7103 rm -rf libconftest.dylib*
7104 echo "int foo(void){return 1;}" > conftest.c
7105 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7106 -dynamiclib -Wl,-single_module conftest.c" >&5
7107 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7108 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7109 _lt_result=$?
7110 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7111 lt_cv_apple_cc_single_mod=yes
7112 else
7113 cat conftest.err >&5
7114 fi
7115 rm -rf libconftest.dylib*
7116 rm -f conftest.*
7117 fi
7118 fi
7119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7120 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7122 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7123 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7124 $as_echo_n "(cached) " >&6
7125 else
7126 lt_cv_ld_exported_symbols_list=no
7127 save_LDFLAGS=$LDFLAGS
7128 echo "_main" > conftest.sym
7129 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7131 /* end confdefs.h. */
7132
7133 int
7134 main ()
7135 {
7136
7137 ;
7138 return 0;
7139 }
7140 _ACEOF
7141 if ac_fn_c_try_link "$LINENO"; then :
7142 lt_cv_ld_exported_symbols_list=yes
7143 else
7144 lt_cv_ld_exported_symbols_list=no
7145 fi
7146 rm -f core conftest.err conftest.$ac_objext \
7147 conftest$ac_exeext conftest.$ac_ext
7148 LDFLAGS="$save_LDFLAGS"
7149
7150 fi
7151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7152 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7154 $as_echo_n "checking for -force_load linker flag... " >&6; }
7155 if ${lt_cv_ld_force_load+:} false; then :
7156 $as_echo_n "(cached) " >&6
7157 else
7158 lt_cv_ld_force_load=no
7159 cat > conftest.c << _LT_EOF
7160 int forced_loaded() { return 2;}
7161 _LT_EOF
7162 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7163 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7164 echo "$AR cru libconftest.a conftest.o" >&5
7165 $AR cru libconftest.a conftest.o 2>&5
7166 cat > conftest.c << _LT_EOF
7167 int main() { return 0;}
7168 _LT_EOF
7169 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7170 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7171 _lt_result=$?
7172 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7173 lt_cv_ld_force_load=yes
7174 else
7175 cat conftest.err >&5
7176 fi
7177 rm -f conftest.err libconftest.a conftest conftest.c
7178 rm -rf conftest.dSYM
7179
7180 fi
7181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7182 $as_echo "$lt_cv_ld_force_load" >&6; }
7183 case $host_os in
7184 rhapsody* | darwin1.[012])
7185 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7186 darwin1.*)
7187 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7188 darwin*) # darwin 5.x on
7189 # if running on 10.5 or later, the deployment target defaults
7190 # to the OS version, if on x86, and 10.4, the deployment
7191 # target defaults to 10.4. Don't you love it?
7192 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7193 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7194 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7195 10.[012][,.]*)
7196 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7197 10.*)
7198 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7199 esac
7200 ;;
7201 esac
7202 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7203 _lt_dar_single_mod='$single_module'
7204 fi
7205 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7206 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7207 else
7208 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7209 fi
7210 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7211 _lt_dsymutil='~$DSYMUTIL $lib || :'
7212 else
7213 _lt_dsymutil=
7214 fi
7215 ;;
7216 esac
7217
7218 for ac_header in dlfcn.h
7219 do :
7220 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7221 "
7222 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7223 cat >>confdefs.h <<_ACEOF
7224 #define HAVE_DLFCN_H 1
7225 _ACEOF
7226
7227 fi
7228
7229 done
7230
7231
7232
7233
7234
7235 # Set options
7236
7237
7238
7239 enable_dlopen=no
7240
7241
7242 enable_win32_dll=no
7243
7244
7245 # Check whether --enable-shared was given.
7246 if test "${enable_shared+set}" = set; then :
7247 enableval=$enable_shared; p=${PACKAGE-default}
7248 case $enableval in
7249 yes) enable_shared=yes ;;
7250 no) enable_shared=no ;;
7251 *)
7252 enable_shared=no
7253 # Look at the argument we got. We use all the common list separators.
7254 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7255 for pkg in $enableval; do
7256 IFS="$lt_save_ifs"
7257 if test "X$pkg" = "X$p"; then
7258 enable_shared=yes
7259 fi
7260 done
7261 IFS="$lt_save_ifs"
7262 ;;
7263 esac
7264 else
7265 enable_shared=yes
7266 fi
7267
7268
7269
7270
7271
7272
7273
7274
7275
7276 # Check whether --enable-static was given.
7277 if test "${enable_static+set}" = set; then :
7278 enableval=$enable_static; p=${PACKAGE-default}
7279 case $enableval in
7280 yes) enable_static=yes ;;
7281 no) enable_static=no ;;
7282 *)
7283 enable_static=no
7284 # Look at the argument we got. We use all the common list separators.
7285 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7286 for pkg in $enableval; do
7287 IFS="$lt_save_ifs"
7288 if test "X$pkg" = "X$p"; then
7289 enable_static=yes
7290 fi
7291 done
7292 IFS="$lt_save_ifs"
7293 ;;
7294 esac
7295 else
7296 enable_static=yes
7297 fi
7298
7299
7300
7301
7302
7303
7304
7305
7306
7307
7308 # Check whether --with-pic was given.
7309 if test "${with_pic+set}" = set; then :
7310 withval=$with_pic; pic_mode="$withval"
7311 else
7312 pic_mode=default
7313 fi
7314
7315
7316 test -z "$pic_mode" && pic_mode=default
7317
7318
7319
7320
7321
7322
7323
7324 # Check whether --enable-fast-install was given.
7325 if test "${enable_fast_install+set}" = set; then :
7326 enableval=$enable_fast_install; p=${PACKAGE-default}
7327 case $enableval in
7328 yes) enable_fast_install=yes ;;
7329 no) enable_fast_install=no ;;
7330 *)
7331 enable_fast_install=no
7332 # Look at the argument we got. We use all the common list separators.
7333 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7334 for pkg in $enableval; do
7335 IFS="$lt_save_ifs"
7336 if test "X$pkg" = "X$p"; then
7337 enable_fast_install=yes
7338 fi
7339 done
7340 IFS="$lt_save_ifs"
7341 ;;
7342 esac
7343 else
7344 enable_fast_install=yes
7345 fi
7346
7347
7348
7349
7350
7351
7352
7353
7354
7355
7356
7357 # This can be used to rebuild libtool when needed
7358 LIBTOOL_DEPS="$ltmain"
7359
7360 # Always use our own libtool.
7361 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7362
7363
7364
7365
7366
7367
7368
7369
7370
7371
7372
7373
7374
7375
7376
7377
7378
7379
7380
7381
7382
7383
7384
7385
7386
7387
7388 test -z "$LN_S" && LN_S="ln -s"
7389
7390
7391
7392
7393
7394
7395
7396
7397
7398
7399
7400
7401
7402
7403 if test -n "${ZSH_VERSION+set}" ; then
7404 setopt NO_GLOB_SUBST
7405 fi
7406
7407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7408 $as_echo_n "checking for objdir... " >&6; }
7409 if ${lt_cv_objdir+:} false; then :
7410 $as_echo_n "(cached) " >&6
7411 else
7412 rm -f .libs 2>/dev/null
7413 mkdir .libs 2>/dev/null
7414 if test -d .libs; then
7415 lt_cv_objdir=.libs
7416 else
7417 # MS-DOS does not allow filenames that begin with a dot.
7418 lt_cv_objdir=_libs
7419 fi
7420 rmdir .libs 2>/dev/null
7421 fi
7422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7423 $as_echo "$lt_cv_objdir" >&6; }
7424 objdir=$lt_cv_objdir
7425
7426
7427
7428
7429
7430 cat >>confdefs.h <<_ACEOF
7431 #define LT_OBJDIR "$lt_cv_objdir/"
7432 _ACEOF
7433
7434
7435
7436
7437 case $host_os in
7438 aix3*)
7439 # AIX sometimes has problems with the GCC collect2 program. For some
7440 # reason, if we set the COLLECT_NAMES environment variable, the problems
7441 # vanish in a puff of smoke.
7442 if test "X${COLLECT_NAMES+set}" != Xset; then
7443 COLLECT_NAMES=
7444 export COLLECT_NAMES
7445 fi
7446 ;;
7447 esac
7448
7449 # Global variables:
7450 ofile=libtool
7451 can_build_shared=yes
7452
7453 # All known linkers require a `.a' archive for static linking (except MSVC,
7454 # which needs '.lib').
7455 libext=a
7456
7457 with_gnu_ld="$lt_cv_prog_gnu_ld"
7458
7459 old_CC="$CC"
7460 old_CFLAGS="$CFLAGS"
7461
7462 # Set sane defaults for various variables
7463 test -z "$CC" && CC=cc
7464 test -z "$LTCC" && LTCC=$CC
7465 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7466 test -z "$LD" && LD=ld
7467 test -z "$ac_objext" && ac_objext=o
7468
7469 for cc_temp in $compiler""; do
7470 case $cc_temp in
7471 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7472 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7473 \-*) ;;
7474 *) break;;
7475 esac
7476 done
7477 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7478
7479
7480 # Only perform the check for file, if the check method requires it
7481 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7482 case $deplibs_check_method in
7483 file_magic*)
7484 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7486 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7487 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7488 $as_echo_n "(cached) " >&6
7489 else
7490 case $MAGIC_CMD in
7491 [\\/*] | ?:[\\/]*)
7492 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7493 ;;
7494 *)
7495 lt_save_MAGIC_CMD="$MAGIC_CMD"
7496 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7497 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7498 for ac_dir in $ac_dummy; do
7499 IFS="$lt_save_ifs"
7500 test -z "$ac_dir" && ac_dir=.
7501 if test -f $ac_dir/${ac_tool_prefix}file; then
7502 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7503 if test -n "$file_magic_test_file"; then
7504 case $deplibs_check_method in
7505 "file_magic "*)
7506 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7507 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7508 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7509 $EGREP "$file_magic_regex" > /dev/null; then
7510 :
7511 else
7512 cat <<_LT_EOF 1>&2
7513
7514 *** Warning: the command libtool uses to detect shared libraries,
7515 *** $file_magic_cmd, produces output that libtool cannot recognize.
7516 *** The result is that libtool may fail to recognize shared libraries
7517 *** as such. This will affect the creation of libtool libraries that
7518 *** depend on shared libraries, but programs linked with such libtool
7519 *** libraries will work regardless of this problem. Nevertheless, you
7520 *** may want to report the problem to your system manager and/or to
7521 *** bug-libtool@gnu.org
7522
7523 _LT_EOF
7524 fi ;;
7525 esac
7526 fi
7527 break
7528 fi
7529 done
7530 IFS="$lt_save_ifs"
7531 MAGIC_CMD="$lt_save_MAGIC_CMD"
7532 ;;
7533 esac
7534 fi
7535
7536 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7537 if test -n "$MAGIC_CMD"; then
7538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7539 $as_echo "$MAGIC_CMD" >&6; }
7540 else
7541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7542 $as_echo "no" >&6; }
7543 fi
7544
7545
7546
7547
7548
7549 if test -z "$lt_cv_path_MAGIC_CMD"; then
7550 if test -n "$ac_tool_prefix"; then
7551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7552 $as_echo_n "checking for file... " >&6; }
7553 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7554 $as_echo_n "(cached) " >&6
7555 else
7556 case $MAGIC_CMD in
7557 [\\/*] | ?:[\\/]*)
7558 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7559 ;;
7560 *)
7561 lt_save_MAGIC_CMD="$MAGIC_CMD"
7562 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7563 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7564 for ac_dir in $ac_dummy; do
7565 IFS="$lt_save_ifs"
7566 test -z "$ac_dir" && ac_dir=.
7567 if test -f $ac_dir/file; then
7568 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7569 if test -n "$file_magic_test_file"; then
7570 case $deplibs_check_method in
7571 "file_magic "*)
7572 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7573 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7574 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7575 $EGREP "$file_magic_regex" > /dev/null; then
7576 :
7577 else
7578 cat <<_LT_EOF 1>&2
7579
7580 *** Warning: the command libtool uses to detect shared libraries,
7581 *** $file_magic_cmd, produces output that libtool cannot recognize.
7582 *** The result is that libtool may fail to recognize shared libraries
7583 *** as such. This will affect the creation of libtool libraries that
7584 *** depend on shared libraries, but programs linked with such libtool
7585 *** libraries will work regardless of this problem. Nevertheless, you
7586 *** may want to report the problem to your system manager and/or to
7587 *** bug-libtool@gnu.org
7588
7589 _LT_EOF
7590 fi ;;
7591 esac
7592 fi
7593 break
7594 fi
7595 done
7596 IFS="$lt_save_ifs"
7597 MAGIC_CMD="$lt_save_MAGIC_CMD"
7598 ;;
7599 esac
7600 fi
7601
7602 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7603 if test -n "$MAGIC_CMD"; then
7604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7605 $as_echo "$MAGIC_CMD" >&6; }
7606 else
7607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7608 $as_echo "no" >&6; }
7609 fi
7610
7611
7612 else
7613 MAGIC_CMD=:
7614 fi
7615 fi
7616
7617 fi
7618 ;;
7619 esac
7620
7621 # Use C for the default configuration in the libtool script
7622
7623 lt_save_CC="$CC"
7624 ac_ext=c
7625 ac_cpp='$CPP $CPPFLAGS'
7626 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7627 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7628 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7629
7630
7631 # Source file extension for C test sources.
7632 ac_ext=c
7633
7634 # Object file extension for compiled C test sources.
7635 objext=o
7636 objext=$objext
7637
7638 # Code to be used in simple compile tests
7639 lt_simple_compile_test_code="int some_variable = 0;"
7640
7641 # Code to be used in simple link tests
7642 lt_simple_link_test_code='int main(){return(0);}'
7643
7644
7645
7646
7647
7648
7649
7650 # If no C compiler was specified, use CC.
7651 LTCC=${LTCC-"$CC"}
7652
7653 # If no C compiler flags were specified, use CFLAGS.
7654 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7655
7656 # Allow CC to be a program name with arguments.
7657 compiler=$CC
7658
7659 # Save the default compiler, since it gets overwritten when the other
7660 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7661 compiler_DEFAULT=$CC
7662
7663 # save warnings/boilerplate of simple test code
7664 ac_outfile=conftest.$ac_objext
7665 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7666 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7667 _lt_compiler_boilerplate=`cat conftest.err`
7668 $RM conftest*
7669
7670 ac_outfile=conftest.$ac_objext
7671 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7672 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7673 _lt_linker_boilerplate=`cat conftest.err`
7674 $RM -r conftest*
7675
7676
7677 ## CAVEAT EMPTOR:
7678 ## There is no encapsulation within the following macros, do not change
7679 ## the running order or otherwise move them around unless you know exactly
7680 ## what you are doing...
7681 if test -n "$compiler"; then
7682
7683 lt_prog_compiler_no_builtin_flag=
7684
7685 if test "$GCC" = yes; then
7686 case $cc_basename in
7687 nvcc*)
7688 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7689 *)
7690 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7691 esac
7692
7693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7694 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7695 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7696 $as_echo_n "(cached) " >&6
7697 else
7698 lt_cv_prog_compiler_rtti_exceptions=no
7699 ac_outfile=conftest.$ac_objext
7700 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7701 lt_compiler_flag="-fno-rtti -fno-exceptions"
7702 # Insert the option either (1) after the last *FLAGS variable, or
7703 # (2) before a word containing "conftest.", or (3) at the end.
7704 # Note that $ac_compile itself does not contain backslashes and begins
7705 # with a dollar sign (not a hyphen), so the echo should work correctly.
7706 # The option is referenced via a variable to avoid confusing sed.
7707 lt_compile=`echo "$ac_compile" | $SED \
7708 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7709 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7710 -e 's:$: $lt_compiler_flag:'`
7711 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7712 (eval "$lt_compile" 2>conftest.err)
7713 ac_status=$?
7714 cat conftest.err >&5
7715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7716 if (exit $ac_status) && test -s "$ac_outfile"; then
7717 # The compiler can only warn and ignore the option if not recognized
7718 # So say no if there are warnings other than the usual output.
7719 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7720 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7721 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7722 lt_cv_prog_compiler_rtti_exceptions=yes
7723 fi
7724 fi
7725 $RM conftest*
7726
7727 fi
7728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7729 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7730
7731 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7732 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7733 else
7734 :
7735 fi
7736
7737 fi
7738
7739
7740
7741
7742
7743
7744 lt_prog_compiler_wl=
7745 lt_prog_compiler_pic=
7746 lt_prog_compiler_static=
7747
7748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7749 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7750
7751 if test "$GCC" = yes; then
7752 lt_prog_compiler_wl='-Wl,'
7753 lt_prog_compiler_static='-static'
7754
7755 case $host_os in
7756 aix*)
7757 # All AIX code is PIC.
7758 if test "$host_cpu" = ia64; then
7759 # AIX 5 now supports IA64 processor
7760 lt_prog_compiler_static='-Bstatic'
7761 fi
7762 lt_prog_compiler_pic='-fPIC'
7763 ;;
7764
7765 amigaos*)
7766 case $host_cpu in
7767 powerpc)
7768 # see comment about AmigaOS4 .so support
7769 lt_prog_compiler_pic='-fPIC'
7770 ;;
7771 m68k)
7772 # FIXME: we need at least 68020 code to build shared libraries, but
7773 # adding the `-m68020' flag to GCC prevents building anything better,
7774 # like `-m68040'.
7775 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7776 ;;
7777 esac
7778 ;;
7779
7780 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7781 # PIC is the default for these OSes.
7782 ;;
7783
7784 mingw* | cygwin* | pw32* | os2* | cegcc*)
7785 # This hack is so that the source file can tell whether it is being
7786 # built for inclusion in a dll (and should export symbols for example).
7787 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7788 # (--disable-auto-import) libraries
7789 lt_prog_compiler_pic='-DDLL_EXPORT'
7790 ;;
7791
7792 darwin* | rhapsody*)
7793 # PIC is the default on this platform
7794 # Common symbols not allowed in MH_DYLIB files
7795 lt_prog_compiler_pic='-fno-common'
7796 ;;
7797
7798 haiku*)
7799 # PIC is the default for Haiku.
7800 # The "-static" flag exists, but is broken.
7801 lt_prog_compiler_static=
7802 ;;
7803
7804 hpux*)
7805 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7806 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7807 # sets the default TLS model and affects inlining.
7808 case $host_cpu in
7809 hppa*64*)
7810 # +Z the default
7811 ;;
7812 *)
7813 lt_prog_compiler_pic='-fPIC'
7814 ;;
7815 esac
7816 ;;
7817
7818 interix[3-9]*)
7819 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7820 # Instead, we relocate shared libraries at runtime.
7821 ;;
7822
7823 msdosdjgpp*)
7824 # Just because we use GCC doesn't mean we suddenly get shared libraries
7825 # on systems that don't support them.
7826 lt_prog_compiler_can_build_shared=no
7827 enable_shared=no
7828 ;;
7829
7830 *nto* | *qnx*)
7831 # QNX uses GNU C++, but need to define -shared option too, otherwise
7832 # it will coredump.
7833 lt_prog_compiler_pic='-fPIC -shared'
7834 ;;
7835
7836 sysv4*MP*)
7837 if test -d /usr/nec; then
7838 lt_prog_compiler_pic=-Kconform_pic
7839 fi
7840 ;;
7841
7842 *)
7843 lt_prog_compiler_pic='-fPIC'
7844 ;;
7845 esac
7846
7847 case $cc_basename in
7848 nvcc*) # Cuda Compiler Driver 2.2
7849 lt_prog_compiler_wl='-Xlinker '
7850 lt_prog_compiler_pic='-Xcompiler -fPIC'
7851 ;;
7852 esac
7853 else
7854 # PORTME Check for flag to pass linker flags through the system compiler.
7855 case $host_os in
7856 aix*)
7857 lt_prog_compiler_wl='-Wl,'
7858 if test "$host_cpu" = ia64; then
7859 # AIX 5 now supports IA64 processor
7860 lt_prog_compiler_static='-Bstatic'
7861 else
7862 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7863 fi
7864 ;;
7865
7866 mingw* | cygwin* | pw32* | os2* | cegcc*)
7867 # This hack is so that the source file can tell whether it is being
7868 # built for inclusion in a dll (and should export symbols for example).
7869 lt_prog_compiler_pic='-DDLL_EXPORT'
7870 ;;
7871
7872 hpux9* | hpux10* | hpux11*)
7873 lt_prog_compiler_wl='-Wl,'
7874 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7875 # not for PA HP-UX.
7876 case $host_cpu in
7877 hppa*64*|ia64*)
7878 # +Z the default
7879 ;;
7880 *)
7881 lt_prog_compiler_pic='+Z'
7882 ;;
7883 esac
7884 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7885 lt_prog_compiler_static='${wl}-a ${wl}archive'
7886 ;;
7887
7888 irix5* | irix6* | nonstopux*)
7889 lt_prog_compiler_wl='-Wl,'
7890 # PIC (with -KPIC) is the default.
7891 lt_prog_compiler_static='-non_shared'
7892 ;;
7893
7894 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7895 case $cc_basename in
7896 # old Intel for x86_64 which still supported -KPIC.
7897 ecc*)
7898 lt_prog_compiler_wl='-Wl,'
7899 lt_prog_compiler_pic='-KPIC'
7900 lt_prog_compiler_static='-static'
7901 ;;
7902 # icc used to be incompatible with GCC.
7903 # ICC 10 doesn't accept -KPIC any more.
7904 icc* | ifort*)
7905 lt_prog_compiler_wl='-Wl,'
7906 lt_prog_compiler_pic='-fPIC'
7907 lt_prog_compiler_static='-static'
7908 ;;
7909 # Lahey Fortran 8.1.
7910 lf95*)
7911 lt_prog_compiler_wl='-Wl,'
7912 lt_prog_compiler_pic='--shared'
7913 lt_prog_compiler_static='--static'
7914 ;;
7915 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7916 # Portland Group compilers (*not* the Pentium gcc compiler,
7917 # which looks to be a dead project)
7918 lt_prog_compiler_wl='-Wl,'
7919 lt_prog_compiler_pic='-fpic'
7920 lt_prog_compiler_static='-Bstatic'
7921 ;;
7922 ccc*)
7923 lt_prog_compiler_wl='-Wl,'
7924 # All Alpha code is PIC.
7925 lt_prog_compiler_static='-non_shared'
7926 ;;
7927 xl* | bgxl* | bgf* | mpixl*)
7928 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
7929 lt_prog_compiler_wl='-Wl,'
7930 lt_prog_compiler_pic='-qpic'
7931 lt_prog_compiler_static='-qstaticlink'
7932 ;;
7933 *)
7934 case `$CC -V 2>&1 | sed 5q` in
7935 *Sun\ F* | *Sun*Fortran*)
7936 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7937 lt_prog_compiler_pic='-KPIC'
7938 lt_prog_compiler_static='-Bstatic'
7939 lt_prog_compiler_wl=''
7940 ;;
7941 *Sun\ C*)
7942 # Sun C 5.9
7943 lt_prog_compiler_pic='-KPIC'
7944 lt_prog_compiler_static='-Bstatic'
7945 lt_prog_compiler_wl='-Wl,'
7946 ;;
7947 esac
7948 ;;
7949 esac
7950 ;;
7951
7952 newsos6)
7953 lt_prog_compiler_pic='-KPIC'
7954 lt_prog_compiler_static='-Bstatic'
7955 ;;
7956
7957 *nto* | *qnx*)
7958 # QNX uses GNU C++, but need to define -shared option too, otherwise
7959 # it will coredump.
7960 lt_prog_compiler_pic='-fPIC -shared'
7961 ;;
7962
7963 osf3* | osf4* | osf5*)
7964 lt_prog_compiler_wl='-Wl,'
7965 # All OSF/1 code is PIC.
7966 lt_prog_compiler_static='-non_shared'
7967 ;;
7968
7969 rdos*)
7970 lt_prog_compiler_static='-non_shared'
7971 ;;
7972
7973 solaris*)
7974 lt_prog_compiler_pic='-KPIC'
7975 lt_prog_compiler_static='-Bstatic'
7976 case $cc_basename in
7977 f77* | f90* | f95*)
7978 lt_prog_compiler_wl='-Qoption ld ';;
7979 *)
7980 lt_prog_compiler_wl='-Wl,';;
7981 esac
7982 ;;
7983
7984 sunos4*)
7985 lt_prog_compiler_wl='-Qoption ld '
7986 lt_prog_compiler_pic='-PIC'
7987 lt_prog_compiler_static='-Bstatic'
7988 ;;
7989
7990 sysv4 | sysv4.2uw2* | sysv4.3*)
7991 lt_prog_compiler_wl='-Wl,'
7992 lt_prog_compiler_pic='-KPIC'
7993 lt_prog_compiler_static='-Bstatic'
7994 ;;
7995
7996 sysv4*MP*)
7997 if test -d /usr/nec ;then
7998 lt_prog_compiler_pic='-Kconform_pic'
7999 lt_prog_compiler_static='-Bstatic'
8000 fi
8001 ;;
8002
8003 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8004 lt_prog_compiler_wl='-Wl,'
8005 lt_prog_compiler_pic='-KPIC'
8006 lt_prog_compiler_static='-Bstatic'
8007 ;;
8008
8009 unicos*)
8010 lt_prog_compiler_wl='-Wl,'
8011 lt_prog_compiler_can_build_shared=no
8012 ;;
8013
8014 uts4*)
8015 lt_prog_compiler_pic='-pic'
8016 lt_prog_compiler_static='-Bstatic'
8017 ;;
8018
8019 *)
8020 lt_prog_compiler_can_build_shared=no
8021 ;;
8022 esac
8023 fi
8024
8025 case $host_os in
8026 # For platforms which do not support PIC, -DPIC is meaningless:
8027 *djgpp*)
8028 lt_prog_compiler_pic=
8029 ;;
8030 *)
8031 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8032 ;;
8033 esac
8034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8035 $as_echo "$lt_prog_compiler_pic" >&6; }
8036
8037
8038
8039
8040
8041
8042 #
8043 # Check to make sure the PIC flag actually works.
8044 #
8045 if test -n "$lt_prog_compiler_pic"; then
8046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8047 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8048 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8049 $as_echo_n "(cached) " >&6
8050 else
8051 lt_cv_prog_compiler_pic_works=no
8052 ac_outfile=conftest.$ac_objext
8053 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8054 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8055 # Insert the option either (1) after the last *FLAGS variable, or
8056 # (2) before a word containing "conftest.", or (3) at the end.
8057 # Note that $ac_compile itself does not contain backslashes and begins
8058 # with a dollar sign (not a hyphen), so the echo should work correctly.
8059 # The option is referenced via a variable to avoid confusing sed.
8060 lt_compile=`echo "$ac_compile" | $SED \
8061 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8062 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8063 -e 's:$: $lt_compiler_flag:'`
8064 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8065 (eval "$lt_compile" 2>conftest.err)
8066 ac_status=$?
8067 cat conftest.err >&5
8068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8069 if (exit $ac_status) && test -s "$ac_outfile"; then
8070 # The compiler can only warn and ignore the option if not recognized
8071 # So say no if there are warnings other than the usual output.
8072 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8073 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8074 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8075 lt_cv_prog_compiler_pic_works=yes
8076 fi
8077 fi
8078 $RM conftest*
8079
8080 fi
8081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8082 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8083
8084 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8085 case $lt_prog_compiler_pic in
8086 "" | " "*) ;;
8087 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8088 esac
8089 else
8090 lt_prog_compiler_pic=
8091 lt_prog_compiler_can_build_shared=no
8092 fi
8093
8094 fi
8095
8096
8097
8098
8099
8100
8101 #
8102 # Check to make sure the static flag actually works.
8103 #
8104 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8106 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8107 if ${lt_cv_prog_compiler_static_works+:} false; then :
8108 $as_echo_n "(cached) " >&6
8109 else
8110 lt_cv_prog_compiler_static_works=no
8111 save_LDFLAGS="$LDFLAGS"
8112 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8113 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8114 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8115 # The linker can only warn and ignore the option if not recognized
8116 # So say no if there are warnings
8117 if test -s conftest.err; then
8118 # Append any errors to the config.log.
8119 cat conftest.err 1>&5
8120 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8121 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8122 if diff conftest.exp conftest.er2 >/dev/null; then
8123 lt_cv_prog_compiler_static_works=yes
8124 fi
8125 else
8126 lt_cv_prog_compiler_static_works=yes
8127 fi
8128 fi
8129 $RM -r conftest*
8130 LDFLAGS="$save_LDFLAGS"
8131
8132 fi
8133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8134 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8135
8136 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8137 :
8138 else
8139 lt_prog_compiler_static=
8140 fi
8141
8142
8143
8144
8145
8146
8147
8148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8149 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8150 if ${lt_cv_prog_compiler_c_o+:} false; then :
8151 $as_echo_n "(cached) " >&6
8152 else
8153 lt_cv_prog_compiler_c_o=no
8154 $RM -r conftest 2>/dev/null
8155 mkdir conftest
8156 cd conftest
8157 mkdir out
8158 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8159
8160 lt_compiler_flag="-o out/conftest2.$ac_objext"
8161 # Insert the option either (1) after the last *FLAGS variable, or
8162 # (2) before a word containing "conftest.", or (3) at the end.
8163 # Note that $ac_compile itself does not contain backslashes and begins
8164 # with a dollar sign (not a hyphen), so the echo should work correctly.
8165 lt_compile=`echo "$ac_compile" | $SED \
8166 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8167 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8168 -e 's:$: $lt_compiler_flag:'`
8169 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8170 (eval "$lt_compile" 2>out/conftest.err)
8171 ac_status=$?
8172 cat out/conftest.err >&5
8173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8174 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8175 then
8176 # The compiler can only warn and ignore the option if not recognized
8177 # So say no if there are warnings
8178 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8179 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8180 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8181 lt_cv_prog_compiler_c_o=yes
8182 fi
8183 fi
8184 chmod u+w . 2>&5
8185 $RM conftest*
8186 # SGI C++ compiler will create directory out/ii_files/ for
8187 # template instantiation
8188 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8189 $RM out/* && rmdir out
8190 cd ..
8191 $RM -r conftest
8192 $RM conftest*
8193
8194 fi
8195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8196 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8197
8198
8199
8200
8201
8202
8203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8204 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8205 if ${lt_cv_prog_compiler_c_o+:} false; then :
8206 $as_echo_n "(cached) " >&6
8207 else
8208 lt_cv_prog_compiler_c_o=no
8209 $RM -r conftest 2>/dev/null
8210 mkdir conftest
8211 cd conftest
8212 mkdir out
8213 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8214
8215 lt_compiler_flag="-o out/conftest2.$ac_objext"
8216 # Insert the option either (1) after the last *FLAGS variable, or
8217 # (2) before a word containing "conftest.", or (3) at the end.
8218 # Note that $ac_compile itself does not contain backslashes and begins
8219 # with a dollar sign (not a hyphen), so the echo should work correctly.
8220 lt_compile=`echo "$ac_compile" | $SED \
8221 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8222 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8223 -e 's:$: $lt_compiler_flag:'`
8224 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8225 (eval "$lt_compile" 2>out/conftest.err)
8226 ac_status=$?
8227 cat out/conftest.err >&5
8228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8229 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8230 then
8231 # The compiler can only warn and ignore the option if not recognized
8232 # So say no if there are warnings
8233 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8234 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8235 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8236 lt_cv_prog_compiler_c_o=yes
8237 fi
8238 fi
8239 chmod u+w . 2>&5
8240 $RM conftest*
8241 # SGI C++ compiler will create directory out/ii_files/ for
8242 # template instantiation
8243 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8244 $RM out/* && rmdir out
8245 cd ..
8246 $RM -r conftest
8247 $RM conftest*
8248
8249 fi
8250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8251 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8252
8253
8254
8255
8256 hard_links="nottested"
8257 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8258 # do not overwrite the value of need_locks provided by the user
8259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8260 $as_echo_n "checking if we can lock with hard links... " >&6; }
8261 hard_links=yes
8262 $RM conftest*
8263 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8264 touch conftest.a
8265 ln conftest.a conftest.b 2>&5 || hard_links=no
8266 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8268 $as_echo "$hard_links" >&6; }
8269 if test "$hard_links" = no; then
8270 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8271 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8272 need_locks=warn
8273 fi
8274 else
8275 need_locks=no
8276 fi
8277
8278
8279
8280
8281
8282
8283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8284 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8285
8286 runpath_var=
8287 allow_undefined_flag=
8288 always_export_symbols=no
8289 archive_cmds=
8290 archive_expsym_cmds=
8291 compiler_needs_object=no
8292 enable_shared_with_static_runtimes=no
8293 export_dynamic_flag_spec=
8294 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8295 hardcode_automatic=no
8296 hardcode_direct=no
8297 hardcode_direct_absolute=no
8298 hardcode_libdir_flag_spec=
8299 hardcode_libdir_flag_spec_ld=
8300 hardcode_libdir_separator=
8301 hardcode_minus_L=no
8302 hardcode_shlibpath_var=unsupported
8303 inherit_rpath=no
8304 link_all_deplibs=unknown
8305 module_cmds=
8306 module_expsym_cmds=
8307 old_archive_from_new_cmds=
8308 old_archive_from_expsyms_cmds=
8309 thread_safe_flag_spec=
8310 whole_archive_flag_spec=
8311 # include_expsyms should be a list of space-separated symbols to be *always*
8312 # included in the symbol list
8313 include_expsyms=
8314 # exclude_expsyms can be an extended regexp of symbols to exclude
8315 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8316 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8317 # as well as any symbol that contains `d'.
8318 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8319 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8320 # platforms (ab)use it in PIC code, but their linkers get confused if
8321 # the symbol is explicitly referenced. Since portable code cannot
8322 # rely on this symbol name, it's probably fine to never include it in
8323 # preloaded symbol tables.
8324 # Exclude shared library initialization/finalization symbols.
8325 extract_expsyms_cmds=
8326
8327 case $host_os in
8328 cygwin* | mingw* | pw32* | cegcc*)
8329 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8330 # When not using gcc, we currently assume that we are using
8331 # Microsoft Visual C++.
8332 if test "$GCC" != yes; then
8333 with_gnu_ld=no
8334 fi
8335 ;;
8336 interix*)
8337 # we just hope/assume this is gcc and not c89 (= MSVC++)
8338 with_gnu_ld=yes
8339 ;;
8340 openbsd*)
8341 with_gnu_ld=no
8342 ;;
8343 esac
8344
8345 ld_shlibs=yes
8346
8347 # On some targets, GNU ld is compatible enough with the native linker
8348 # that we're better off using the native interface for both.
8349 lt_use_gnu_ld_interface=no
8350 if test "$with_gnu_ld" = yes; then
8351 case $host_os in
8352 aix*)
8353 # The AIX port of GNU ld has always aspired to compatibility
8354 # with the native linker. However, as the warning in the GNU ld
8355 # block says, versions before 2.19.5* couldn't really create working
8356 # shared libraries, regardless of the interface used.
8357 case `$LD -v 2>&1` in
8358 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8359 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8360 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8361 *)
8362 lt_use_gnu_ld_interface=yes
8363 ;;
8364 esac
8365 ;;
8366 *)
8367 lt_use_gnu_ld_interface=yes
8368 ;;
8369 esac
8370 fi
8371
8372 if test "$lt_use_gnu_ld_interface" = yes; then
8373 # If archive_cmds runs LD, not CC, wlarc should be empty
8374 wlarc='${wl}'
8375
8376 # Set some defaults for GNU ld with shared library support. These
8377 # are reset later if shared libraries are not supported. Putting them
8378 # here allows them to be overridden if necessary.
8379 runpath_var=LD_RUN_PATH
8380 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8381 export_dynamic_flag_spec='${wl}--export-dynamic'
8382 # ancient GNU ld didn't support --whole-archive et. al.
8383 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8384 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8385 else
8386 whole_archive_flag_spec=
8387 fi
8388 supports_anon_versioning=no
8389 case `$LD -v 2>&1` in
8390 *GNU\ gold*) supports_anon_versioning=yes ;;
8391 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8392 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8393 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8394 *\ 2.11.*) ;; # other 2.11 versions
8395 *) supports_anon_versioning=yes ;;
8396 esac
8397
8398 # See if GNU ld supports shared libraries.
8399 case $host_os in
8400 aix[3-9]*)
8401 # On AIX/PPC, the GNU linker is very broken
8402 if test "$host_cpu" != ia64; then
8403 ld_shlibs=no
8404 cat <<_LT_EOF 1>&2
8405
8406 *** Warning: the GNU linker, at least up to release 2.19, is reported
8407 *** to be unable to reliably create shared libraries on AIX.
8408 *** Therefore, libtool is disabling shared libraries support. If you
8409 *** really care for shared libraries, you may want to install binutils
8410 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8411 *** You will then need to restart the configuration process.
8412
8413 _LT_EOF
8414 fi
8415 ;;
8416
8417 amigaos*)
8418 case $host_cpu in
8419 powerpc)
8420 # see comment about AmigaOS4 .so support
8421 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8422 archive_expsym_cmds=''
8423 ;;
8424 m68k)
8425 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)'
8426 hardcode_libdir_flag_spec='-L$libdir'
8427 hardcode_minus_L=yes
8428 ;;
8429 esac
8430 ;;
8431
8432 beos*)
8433 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8434 allow_undefined_flag=unsupported
8435 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8436 # support --undefined. This deserves some investigation. FIXME
8437 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8438 else
8439 ld_shlibs=no
8440 fi
8441 ;;
8442
8443 cygwin* | mingw* | pw32* | cegcc*)
8444 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8445 # as there is no search path for DLLs.
8446 hardcode_libdir_flag_spec='-L$libdir'
8447 export_dynamic_flag_spec='${wl}--export-all-symbols'
8448 allow_undefined_flag=unsupported
8449 always_export_symbols=no
8450 enable_shared_with_static_runtimes=yes
8451 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8452
8453 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8454 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8455 # If the export-symbols file already is a .def file (1st line
8456 # is EXPORTS), use it as is; otherwise, prepend...
8457 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8458 cp $export_symbols $output_objdir/$soname.def;
8459 else
8460 echo EXPORTS > $output_objdir/$soname.def;
8461 cat $export_symbols >> $output_objdir/$soname.def;
8462 fi~
8463 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8464 else
8465 ld_shlibs=no
8466 fi
8467 ;;
8468
8469 haiku*)
8470 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8471 link_all_deplibs=yes
8472 ;;
8473
8474 interix[3-9]*)
8475 hardcode_direct=no
8476 hardcode_shlibpath_var=no
8477 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8478 export_dynamic_flag_spec='${wl}-E'
8479 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8480 # Instead, shared libraries are loaded at an image base (0x10000000 by
8481 # default) and relocated if they conflict, which is a slow very memory
8482 # consuming and fragmenting process. To avoid this, we pick a random,
8483 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8484 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8485 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8486 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'
8487 ;;
8488
8489 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8490 tmp_diet=no
8491 if test "$host_os" = linux-dietlibc; then
8492 case $cc_basename in
8493 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8494 esac
8495 fi
8496 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8497 && test "$tmp_diet" = no
8498 then
8499 tmp_addflag=' $pic_flag'
8500 tmp_sharedflag='-shared'
8501 case $cc_basename,$host_cpu in
8502 pgcc*) # Portland Group C compiler
8503 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'
8504 tmp_addflag=' $pic_flag'
8505 ;;
8506 pgf77* | pgf90* | pgf95* | pgfortran*)
8507 # Portland Group f77 and f90 compilers
8508 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'
8509 tmp_addflag=' $pic_flag -Mnomain' ;;
8510 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8511 tmp_addflag=' -i_dynamic' ;;
8512 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8513 tmp_addflag=' -i_dynamic -nofor_main' ;;
8514 ifc* | ifort*) # Intel Fortran compiler
8515 tmp_addflag=' -nofor_main' ;;
8516 lf95*) # Lahey Fortran 8.1
8517 whole_archive_flag_spec=
8518 tmp_sharedflag='--shared' ;;
8519 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8520 tmp_sharedflag='-qmkshrobj'
8521 tmp_addflag= ;;
8522 nvcc*) # Cuda Compiler Driver 2.2
8523 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'
8524 compiler_needs_object=yes
8525 ;;
8526 esac
8527 case `$CC -V 2>&1 | sed 5q` in
8528 *Sun\ C*) # Sun C 5.9
8529 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'
8530 compiler_needs_object=yes
8531 tmp_sharedflag='-G' ;;
8532 *Sun\ F*) # Sun Fortran 8.3
8533 tmp_sharedflag='-G' ;;
8534 esac
8535 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8536
8537 if test "x$supports_anon_versioning" = xyes; then
8538 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8539 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8540 echo "local: *; };" >> $output_objdir/$libname.ver~
8541 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8542 fi
8543
8544 case $cc_basename in
8545 xlf* | bgf* | bgxlf* | mpixlf*)
8546 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8547 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8548 hardcode_libdir_flag_spec=
8549 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8550 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8551 if test "x$supports_anon_versioning" = xyes; then
8552 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8553 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8554 echo "local: *; };" >> $output_objdir/$libname.ver~
8555 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8556 fi
8557 ;;
8558 esac
8559 else
8560 ld_shlibs=no
8561 fi
8562 ;;
8563
8564 netbsd*)
8565 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8566 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8567 wlarc=
8568 else
8569 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8570 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8571 fi
8572 ;;
8573
8574 solaris*)
8575 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8576 ld_shlibs=no
8577 cat <<_LT_EOF 1>&2
8578
8579 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8580 *** create shared libraries on Solaris systems. Therefore, libtool
8581 *** is disabling shared libraries support. We urge you to upgrade GNU
8582 *** binutils to release 2.9.1 or newer. Another option is to modify
8583 *** your PATH or compiler configuration so that the native linker is
8584 *** used, and then restart.
8585
8586 _LT_EOF
8587 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8588 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8589 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8590 else
8591 ld_shlibs=no
8592 fi
8593 ;;
8594
8595 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8596 case `$LD -v 2>&1` in
8597 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8598 ld_shlibs=no
8599 cat <<_LT_EOF 1>&2
8600
8601 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8602 *** reliably create shared libraries on SCO systems. Therefore, libtool
8603 *** is disabling shared libraries support. We urge you to upgrade GNU
8604 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8605 *** your PATH or compiler configuration so that the native linker is
8606 *** used, and then restart.
8607
8608 _LT_EOF
8609 ;;
8610 *)
8611 # For security reasons, it is highly recommended that you always
8612 # use absolute paths for naming shared libraries, and exclude the
8613 # DT_RUNPATH tag from executables and libraries. But doing so
8614 # requires that you compile everything twice, which is a pain.
8615 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8616 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8617 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8618 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8619 else
8620 ld_shlibs=no
8621 fi
8622 ;;
8623 esac
8624 ;;
8625
8626 sunos4*)
8627 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8628 wlarc=
8629 hardcode_direct=yes
8630 hardcode_shlibpath_var=no
8631 ;;
8632
8633 *)
8634 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8635 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8636 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8637 else
8638 ld_shlibs=no
8639 fi
8640 ;;
8641 esac
8642
8643 if test "$ld_shlibs" = no; then
8644 runpath_var=
8645 hardcode_libdir_flag_spec=
8646 export_dynamic_flag_spec=
8647 whole_archive_flag_spec=
8648 fi
8649 else
8650 # PORTME fill in a description of your system's linker (not GNU ld)
8651 case $host_os in
8652 aix3*)
8653 allow_undefined_flag=unsupported
8654 always_export_symbols=yes
8655 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'
8656 # Note: this linker hardcodes the directories in LIBPATH if there
8657 # are no directories specified by -L.
8658 hardcode_minus_L=yes
8659 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8660 # Neither direct hardcoding nor static linking is supported with a
8661 # broken collect2.
8662 hardcode_direct=unsupported
8663 fi
8664 ;;
8665
8666 aix[4-9]*)
8667 if test "$host_cpu" = ia64; then
8668 # On IA64, the linker does run time linking by default, so we don't
8669 # have to do anything special.
8670 aix_use_runtimelinking=no
8671 exp_sym_flag='-Bexport'
8672 no_entry_flag=""
8673 else
8674 # If we're using GNU nm, then we don't want the "-C" option.
8675 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8676 # Also, AIX nm treats weak defined symbols like other global
8677 # defined symbols, whereas GNU nm marks them as "W".
8678 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8679 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'
8680 else
8681 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'
8682 fi
8683 aix_use_runtimelinking=no
8684
8685 # Test if we are trying to use run time linking or normal
8686 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8687 # need to do runtime linking.
8688 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8689 for ld_flag in $LDFLAGS; do
8690 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8691 aix_use_runtimelinking=yes
8692 break
8693 fi
8694 done
8695 ;;
8696 esac
8697
8698 exp_sym_flag='-bexport'
8699 no_entry_flag='-bnoentry'
8700 fi
8701
8702 # When large executables or shared objects are built, AIX ld can
8703 # have problems creating the table of contents. If linking a library
8704 # or program results in "error TOC overflow" add -mminimal-toc to
8705 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8706 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8707
8708 archive_cmds=''
8709 hardcode_direct=yes
8710 hardcode_direct_absolute=yes
8711 hardcode_libdir_separator=':'
8712 link_all_deplibs=yes
8713 file_list_spec='${wl}-f,'
8714
8715 if test "$GCC" = yes; then
8716 case $host_os in aix4.[012]|aix4.[012].*)
8717 # We only want to do this on AIX 4.2 and lower, the check
8718 # below for broken collect2 doesn't work under 4.3+
8719 collect2name=`${CC} -print-prog-name=collect2`
8720 if test -f "$collect2name" &&
8721 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8722 then
8723 # We have reworked collect2
8724 :
8725 else
8726 # We have old collect2
8727 hardcode_direct=unsupported
8728 # It fails to find uninstalled libraries when the uninstalled
8729 # path is not listed in the libpath. Setting hardcode_minus_L
8730 # to unsupported forces relinking
8731 hardcode_minus_L=yes
8732 hardcode_libdir_flag_spec='-L$libdir'
8733 hardcode_libdir_separator=
8734 fi
8735 ;;
8736 esac
8737 shared_flag='-shared'
8738 if test "$aix_use_runtimelinking" = yes; then
8739 shared_flag="$shared_flag "'${wl}-G'
8740 fi
8741 else
8742 # not using gcc
8743 if test "$host_cpu" = ia64; then
8744 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8745 # chokes on -Wl,-G. The following line is correct:
8746 shared_flag='-G'
8747 else
8748 if test "$aix_use_runtimelinking" = yes; then
8749 shared_flag='${wl}-G'
8750 else
8751 shared_flag='${wl}-bM:SRE'
8752 fi
8753 fi
8754 fi
8755
8756 export_dynamic_flag_spec='${wl}-bexpall'
8757 # It seems that -bexpall does not export symbols beginning with
8758 # underscore (_), so it is better to generate a list of symbols to export.
8759 always_export_symbols=yes
8760 if test "$aix_use_runtimelinking" = yes; then
8761 # Warning - without using the other runtime loading flags (-brtl),
8762 # -berok will link without error, but may produce a broken library.
8763 allow_undefined_flag='-berok'
8764 # Determine the default libpath from the value encoded in an
8765 # empty executable.
8766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8767 /* end confdefs.h. */
8768
8769 int
8770 main ()
8771 {
8772
8773 ;
8774 return 0;
8775 }
8776 _ACEOF
8777 if ac_fn_c_try_link "$LINENO"; then :
8778
8779 lt_aix_libpath_sed='
8780 /Import File Strings/,/^$/ {
8781 /^0/ {
8782 s/^0 *\(.*\)$/\1/
8783 p
8784 }
8785 }'
8786 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8787 # Check for a 64-bit object if we didn't find anything.
8788 if test -z "$aix_libpath"; then
8789 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8790 fi
8791 fi
8792 rm -f core conftest.err conftest.$ac_objext \
8793 conftest$ac_exeext conftest.$ac_ext
8794 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8795
8796 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8797 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"
8798 else
8799 if test "$host_cpu" = ia64; then
8800 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8801 allow_undefined_flag="-z nodefs"
8802 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"
8803 else
8804 # Determine the default libpath from the value encoded in an
8805 # empty executable.
8806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8807 /* end confdefs.h. */
8808
8809 int
8810 main ()
8811 {
8812
8813 ;
8814 return 0;
8815 }
8816 _ACEOF
8817 if ac_fn_c_try_link "$LINENO"; then :
8818
8819 lt_aix_libpath_sed='
8820 /Import File Strings/,/^$/ {
8821 /^0/ {
8822 s/^0 *\(.*\)$/\1/
8823 p
8824 }
8825 }'
8826 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8827 # Check for a 64-bit object if we didn't find anything.
8828 if test -z "$aix_libpath"; then
8829 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8830 fi
8831 fi
8832 rm -f core conftest.err conftest.$ac_objext \
8833 conftest$ac_exeext conftest.$ac_ext
8834 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8835
8836 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8837 # Warning - without using the other run time loading flags,
8838 # -berok will link without error, but may produce a broken library.
8839 no_undefined_flag=' ${wl}-bernotok'
8840 allow_undefined_flag=' ${wl}-berok'
8841 if test "$with_gnu_ld" = yes; then
8842 # We only use this code for GNU lds that support --whole-archive.
8843 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8844 else
8845 # Exported symbols can be pulled into shared objects from archives
8846 whole_archive_flag_spec='$convenience'
8847 fi
8848 archive_cmds_need_lc=yes
8849 # This is similar to how AIX traditionally builds its shared libraries.
8850 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'
8851 fi
8852 fi
8853 ;;
8854
8855 amigaos*)
8856 case $host_cpu in
8857 powerpc)
8858 # see comment about AmigaOS4 .so support
8859 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8860 archive_expsym_cmds=''
8861 ;;
8862 m68k)
8863 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)'
8864 hardcode_libdir_flag_spec='-L$libdir'
8865 hardcode_minus_L=yes
8866 ;;
8867 esac
8868 ;;
8869
8870 bsdi[45]*)
8871 export_dynamic_flag_spec=-rdynamic
8872 ;;
8873
8874 cygwin* | mingw* | pw32* | cegcc*)
8875 # When not using gcc, we currently assume that we are using
8876 # Microsoft Visual C++.
8877 # hardcode_libdir_flag_spec is actually meaningless, as there is
8878 # no search path for DLLs.
8879 hardcode_libdir_flag_spec=' '
8880 allow_undefined_flag=unsupported
8881 # Tell ltmain to make .lib files, not .a files.
8882 libext=lib
8883 # Tell ltmain to make .dll files, not .so files.
8884 shrext_cmds=".dll"
8885 # FIXME: Setting linknames here is a bad hack.
8886 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8887 # The linker will automatically build a .lib file if we build a DLL.
8888 old_archive_from_new_cmds='true'
8889 # FIXME: Should let the user specify the lib program.
8890 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8891 fix_srcfile_path='`cygpath -w "$srcfile"`'
8892 enable_shared_with_static_runtimes=yes
8893 ;;
8894
8895 darwin* | rhapsody*)
8896
8897
8898 archive_cmds_need_lc=no
8899 hardcode_direct=no
8900 hardcode_automatic=yes
8901 hardcode_shlibpath_var=unsupported
8902 if test "$lt_cv_ld_force_load" = "yes"; then
8903 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\"`'
8904 else
8905 whole_archive_flag_spec=''
8906 fi
8907 link_all_deplibs=yes
8908 allow_undefined_flag="$_lt_dar_allow_undefined"
8909 case $cc_basename in
8910 ifort*) _lt_dar_can_shared=yes ;;
8911 *) _lt_dar_can_shared=$GCC ;;
8912 esac
8913 if test "$_lt_dar_can_shared" = "yes"; then
8914 output_verbose_link_cmd=func_echo_all
8915 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8916 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8917 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}"
8918 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}"
8919
8920 else
8921 ld_shlibs=no
8922 fi
8923
8924 ;;
8925
8926 dgux*)
8927 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8928 hardcode_libdir_flag_spec='-L$libdir'
8929 hardcode_shlibpath_var=no
8930 ;;
8931
8932 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8933 # support. Future versions do this automatically, but an explicit c++rt0.o
8934 # does not break anything, and helps significantly (at the cost of a little
8935 # extra space).
8936 freebsd2.2*)
8937 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8938 hardcode_libdir_flag_spec='-R$libdir'
8939 hardcode_direct=yes
8940 hardcode_shlibpath_var=no
8941 ;;
8942
8943 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8944 freebsd2.*)
8945 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8946 hardcode_direct=yes
8947 hardcode_minus_L=yes
8948 hardcode_shlibpath_var=no
8949 ;;
8950
8951 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8952 freebsd* | dragonfly*)
8953 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8954 hardcode_libdir_flag_spec='-R$libdir'
8955 hardcode_direct=yes
8956 hardcode_shlibpath_var=no
8957 ;;
8958
8959 hpux9*)
8960 if test "$GCC" = yes; then
8961 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'
8962 else
8963 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'
8964 fi
8965 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8966 hardcode_libdir_separator=:
8967 hardcode_direct=yes
8968
8969 # hardcode_minus_L: Not really in the search PATH,
8970 # but as the default location of the library.
8971 hardcode_minus_L=yes
8972 export_dynamic_flag_spec='${wl}-E'
8973 ;;
8974
8975 hpux10*)
8976 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8977 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8978 else
8979 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8980 fi
8981 if test "$with_gnu_ld" = no; then
8982 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8983 hardcode_libdir_flag_spec_ld='+b $libdir'
8984 hardcode_libdir_separator=:
8985 hardcode_direct=yes
8986 hardcode_direct_absolute=yes
8987 export_dynamic_flag_spec='${wl}-E'
8988 # hardcode_minus_L: Not really in the search PATH,
8989 # but as the default location of the library.
8990 hardcode_minus_L=yes
8991 fi
8992 ;;
8993
8994 hpux11*)
8995 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8996 case $host_cpu in
8997 hppa*64*)
8998 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8999 ;;
9000 ia64*)
9001 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9002 ;;
9003 *)
9004 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9005 ;;
9006 esac
9007 else
9008 case $host_cpu in
9009 hppa*64*)
9010 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9011 ;;
9012 ia64*)
9013 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9014 ;;
9015 *)
9016
9017 # Older versions of the 11.00 compiler do not understand -b yet
9018 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9020 $as_echo_n "checking if $CC understands -b... " >&6; }
9021 if ${lt_cv_prog_compiler__b+:} false; then :
9022 $as_echo_n "(cached) " >&6
9023 else
9024 lt_cv_prog_compiler__b=no
9025 save_LDFLAGS="$LDFLAGS"
9026 LDFLAGS="$LDFLAGS -b"
9027 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9028 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9029 # The linker can only warn and ignore the option if not recognized
9030 # So say no if there are warnings
9031 if test -s conftest.err; then
9032 # Append any errors to the config.log.
9033 cat conftest.err 1>&5
9034 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9035 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9036 if diff conftest.exp conftest.er2 >/dev/null; then
9037 lt_cv_prog_compiler__b=yes
9038 fi
9039 else
9040 lt_cv_prog_compiler__b=yes
9041 fi
9042 fi
9043 $RM -r conftest*
9044 LDFLAGS="$save_LDFLAGS"
9045
9046 fi
9047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9048 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9049
9050 if test x"$lt_cv_prog_compiler__b" = xyes; then
9051 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9052 else
9053 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9054 fi
9055
9056 ;;
9057 esac
9058 fi
9059 if test "$with_gnu_ld" = no; then
9060 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9061 hardcode_libdir_separator=:
9062
9063 case $host_cpu in
9064 hppa*64*|ia64*)
9065 hardcode_direct=no
9066 hardcode_shlibpath_var=no
9067 ;;
9068 *)
9069 hardcode_direct=yes
9070 hardcode_direct_absolute=yes
9071 export_dynamic_flag_spec='${wl}-E'
9072
9073 # hardcode_minus_L: Not really in the search PATH,
9074 # but as the default location of the library.
9075 hardcode_minus_L=yes
9076 ;;
9077 esac
9078 fi
9079 ;;
9080
9081 irix5* | irix6* | nonstopux*)
9082 if test "$GCC" = yes; then
9083 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'
9084 # Try to use the -exported_symbol ld option, if it does not
9085 # work, assume that -exports_file does not work either and
9086 # implicitly export all symbols.
9087 save_LDFLAGS="$LDFLAGS"
9088 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9090 /* end confdefs.h. */
9091 int foo(void) {}
9092 _ACEOF
9093 if ac_fn_c_try_link "$LINENO"; then :
9094 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'
9095
9096 fi
9097 rm -f core conftest.err conftest.$ac_objext \
9098 conftest$ac_exeext conftest.$ac_ext
9099 LDFLAGS="$save_LDFLAGS"
9100 else
9101 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'
9102 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'
9103 fi
9104 archive_cmds_need_lc='no'
9105 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9106 hardcode_libdir_separator=:
9107 inherit_rpath=yes
9108 link_all_deplibs=yes
9109 ;;
9110
9111 netbsd*)
9112 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9113 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9114 else
9115 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9116 fi
9117 hardcode_libdir_flag_spec='-R$libdir'
9118 hardcode_direct=yes
9119 hardcode_shlibpath_var=no
9120 ;;
9121
9122 newsos6)
9123 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9124 hardcode_direct=yes
9125 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9126 hardcode_libdir_separator=:
9127 hardcode_shlibpath_var=no
9128 ;;
9129
9130 *nto* | *qnx*)
9131 ;;
9132
9133 openbsd*)
9134 if test -f /usr/libexec/ld.so; then
9135 hardcode_direct=yes
9136 hardcode_shlibpath_var=no
9137 hardcode_direct_absolute=yes
9138 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9139 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9140 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9141 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9142 export_dynamic_flag_spec='${wl}-E'
9143 else
9144 case $host_os in
9145 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9146 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9147 hardcode_libdir_flag_spec='-R$libdir'
9148 ;;
9149 *)
9150 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9151 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9152 ;;
9153 esac
9154 fi
9155 else
9156 ld_shlibs=no
9157 fi
9158 ;;
9159
9160 os2*)
9161 hardcode_libdir_flag_spec='-L$libdir'
9162 hardcode_minus_L=yes
9163 allow_undefined_flag=unsupported
9164 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'
9165 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9166 ;;
9167
9168 osf3*)
9169 if test "$GCC" = yes; then
9170 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9171 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'
9172 else
9173 allow_undefined_flag=' -expect_unresolved \*'
9174 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'
9175 fi
9176 archive_cmds_need_lc='no'
9177 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9178 hardcode_libdir_separator=:
9179 ;;
9180
9181 osf4* | osf5*) # as osf3* with the addition of -msym flag
9182 if test "$GCC" = yes; then
9183 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9184 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'
9185 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9186 else
9187 allow_undefined_flag=' -expect_unresolved \*'
9188 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'
9189 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~
9190 $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'
9191
9192 # Both c and cxx compiler support -rpath directly
9193 hardcode_libdir_flag_spec='-rpath $libdir'
9194 fi
9195 archive_cmds_need_lc='no'
9196 hardcode_libdir_separator=:
9197 ;;
9198
9199 solaris*)
9200 no_undefined_flag=' -z defs'
9201 if test "$GCC" = yes; then
9202 wlarc='${wl}'
9203 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9204 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9205 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9206 else
9207 case `$CC -V 2>&1` in
9208 *"Compilers 5.0"*)
9209 wlarc=''
9210 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9211 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9212 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9213 ;;
9214 *)
9215 wlarc='${wl}'
9216 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9217 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9218 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9219 ;;
9220 esac
9221 fi
9222 hardcode_libdir_flag_spec='-R$libdir'
9223 hardcode_shlibpath_var=no
9224 case $host_os in
9225 solaris2.[0-5] | solaris2.[0-5].*) ;;
9226 *)
9227 # The compiler driver will combine and reorder linker options,
9228 # but understands `-z linker_flag'. GCC discards it without `$wl',
9229 # but is careful enough not to reorder.
9230 # Supported since Solaris 2.6 (maybe 2.5.1?)
9231 if test "$GCC" = yes; then
9232 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9233 else
9234 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9235 fi
9236 ;;
9237 esac
9238 link_all_deplibs=yes
9239 ;;
9240
9241 sunos4*)
9242 if test "x$host_vendor" = xsequent; then
9243 # Use $CC to link under sequent, because it throws in some extra .o
9244 # files that make .init and .fini sections work.
9245 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9246 else
9247 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9248 fi
9249 hardcode_libdir_flag_spec='-L$libdir'
9250 hardcode_direct=yes
9251 hardcode_minus_L=yes
9252 hardcode_shlibpath_var=no
9253 ;;
9254
9255 sysv4)
9256 case $host_vendor in
9257 sni)
9258 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9259 hardcode_direct=yes # is this really true???
9260 ;;
9261 siemens)
9262 ## LD is ld it makes a PLAMLIB
9263 ## CC just makes a GrossModule.
9264 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9265 reload_cmds='$CC -r -o $output$reload_objs'
9266 hardcode_direct=no
9267 ;;
9268 motorola)
9269 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9270 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9271 ;;
9272 esac
9273 runpath_var='LD_RUN_PATH'
9274 hardcode_shlibpath_var=no
9275 ;;
9276
9277 sysv4.3*)
9278 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9279 hardcode_shlibpath_var=no
9280 export_dynamic_flag_spec='-Bexport'
9281 ;;
9282
9283 sysv4*MP*)
9284 if test -d /usr/nec; then
9285 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9286 hardcode_shlibpath_var=no
9287 runpath_var=LD_RUN_PATH
9288 hardcode_runpath_var=yes
9289 ld_shlibs=yes
9290 fi
9291 ;;
9292
9293 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9294 no_undefined_flag='${wl}-z,text'
9295 archive_cmds_need_lc=no
9296 hardcode_shlibpath_var=no
9297 runpath_var='LD_RUN_PATH'
9298
9299 if test "$GCC" = yes; then
9300 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9301 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9302 else
9303 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9304 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9305 fi
9306 ;;
9307
9308 sysv5* | sco3.2v5* | sco5v6*)
9309 # Note: We can NOT use -z defs as we might desire, because we do not
9310 # link with -lc, and that would cause any symbols used from libc to
9311 # always be unresolved, which means just about no library would
9312 # ever link correctly. If we're not using GNU ld we use -z text
9313 # though, which does catch some bad symbols but isn't as heavy-handed
9314 # as -z defs.
9315 no_undefined_flag='${wl}-z,text'
9316 allow_undefined_flag='${wl}-z,nodefs'
9317 archive_cmds_need_lc=no
9318 hardcode_shlibpath_var=no
9319 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9320 hardcode_libdir_separator=':'
9321 link_all_deplibs=yes
9322 export_dynamic_flag_spec='${wl}-Bexport'
9323 runpath_var='LD_RUN_PATH'
9324
9325 if test "$GCC" = yes; then
9326 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9327 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9328 else
9329 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9330 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9331 fi
9332 ;;
9333
9334 uts4*)
9335 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9336 hardcode_libdir_flag_spec='-L$libdir'
9337 hardcode_shlibpath_var=no
9338 ;;
9339
9340 *)
9341 ld_shlibs=no
9342 ;;
9343 esac
9344
9345 if test x$host_vendor = xsni; then
9346 case $host in
9347 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9348 export_dynamic_flag_spec='${wl}-Blargedynsym'
9349 ;;
9350 esac
9351 fi
9352 fi
9353
9354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9355 $as_echo "$ld_shlibs" >&6; }
9356 test "$ld_shlibs" = no && can_build_shared=no
9357
9358 with_gnu_ld=$with_gnu_ld
9359
9360
9361
9362
9363
9364
9365
9366
9367
9368
9369
9370
9371
9372
9373
9374 #
9375 # Do we need to explicitly link libc?
9376 #
9377 case "x$archive_cmds_need_lc" in
9378 x|xyes)
9379 # Assume -lc should be added
9380 archive_cmds_need_lc=yes
9381
9382 if test "$enable_shared" = yes && test "$GCC" = yes; then
9383 case $archive_cmds in
9384 *'~'*)
9385 # FIXME: we may have to deal with multi-command sequences.
9386 ;;
9387 '$CC '*)
9388 # Test whether the compiler implicitly links with -lc since on some
9389 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9390 # to ld, don't add -lc before -lgcc.
9391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9392 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9393 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9394 $as_echo_n "(cached) " >&6
9395 else
9396 $RM conftest*
9397 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9398
9399 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9400 (eval $ac_compile) 2>&5
9401 ac_status=$?
9402 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9403 test $ac_status = 0; } 2>conftest.err; then
9404 soname=conftest
9405 lib=conftest
9406 libobjs=conftest.$ac_objext
9407 deplibs=
9408 wl=$lt_prog_compiler_wl
9409 pic_flag=$lt_prog_compiler_pic
9410 compiler_flags=-v
9411 linker_flags=-v
9412 verstring=
9413 output_objdir=.
9414 libname=conftest
9415 lt_save_allow_undefined_flag=$allow_undefined_flag
9416 allow_undefined_flag=
9417 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9418 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9419 ac_status=$?
9420 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9421 test $ac_status = 0; }
9422 then
9423 lt_cv_archive_cmds_need_lc=no
9424 else
9425 lt_cv_archive_cmds_need_lc=yes
9426 fi
9427 allow_undefined_flag=$lt_save_allow_undefined_flag
9428 else
9429 cat conftest.err 1>&5
9430 fi
9431 $RM conftest*
9432
9433 fi
9434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9435 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9436 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9437 ;;
9438 esac
9439 fi
9440 ;;
9441 esac
9442
9443
9444
9445
9446
9447
9448
9449
9450
9451
9452
9453
9454
9455
9456
9457
9458
9459
9460
9461
9462
9463
9464
9465
9466
9467
9468
9469
9470
9471
9472
9473
9474
9475
9476
9477
9478
9479
9480
9481
9482
9483
9484
9485
9486
9487
9488
9489
9490
9491
9492
9493
9494
9495
9496
9497
9498
9499
9500
9501
9502
9503
9504
9505
9506
9507
9508
9509
9510
9511
9512
9513
9514
9515
9516
9517
9518
9519
9520
9521
9522
9523
9524
9525
9526
9527
9528
9529
9530
9531
9532
9533
9534
9535
9536
9537
9538
9539
9540
9541
9542
9543
9544
9545
9546
9547
9548
9549
9550
9551
9552
9553
9554
9555
9556
9557
9558
9559
9560
9561
9562
9563
9564
9565
9566
9567
9568
9569
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581
9582
9583
9584
9585
9586
9587
9588
9589
9590
9591
9592
9593
9594
9595
9596
9597
9598
9599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9600 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9601
9602 if test "$GCC" = yes; then
9603 case $host_os in
9604 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9605 *) lt_awk_arg="/^libraries:/" ;;
9606 esac
9607 case $host_os in
9608 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9609 *) lt_sed_strip_eq="s,=/,/,g" ;;
9610 esac
9611 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9612 case $lt_search_path_spec in
9613 *\;*)
9614 # if the path contains ";" then we assume it to be the separator
9615 # otherwise default to the standard path separator (i.e. ":") - it is
9616 # assumed that no part of a normal pathname contains ";" but that should
9617 # okay in the real world where ";" in dirpaths is itself problematic.
9618 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9619 ;;
9620 *)
9621 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9622 ;;
9623 esac
9624 # Ok, now we have the path, separated by spaces, we can step through it
9625 # and add multilib dir if necessary.
9626 lt_tmp_lt_search_path_spec=
9627 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9628 for lt_sys_path in $lt_search_path_spec; do
9629 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9630 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9631 else
9632 test -d "$lt_sys_path" && \
9633 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9634 fi
9635 done
9636 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9637 BEGIN {RS=" "; FS="/|\n";} {
9638 lt_foo="";
9639 lt_count=0;
9640 for (lt_i = NF; lt_i > 0; lt_i--) {
9641 if ($lt_i != "" && $lt_i != ".") {
9642 if ($lt_i == "..") {
9643 lt_count++;
9644 } else {
9645 if (lt_count == 0) {
9646 lt_foo="/" $lt_i lt_foo;
9647 } else {
9648 lt_count--;
9649 }
9650 }
9651 }
9652 }
9653 if (lt_foo != "") { lt_freq[lt_foo]++; }
9654 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9655 }'`
9656 # AWK program above erroneously prepends '/' to C:/dos/paths
9657 # for these hosts.
9658 case $host_os in
9659 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9660 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9661 esac
9662 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9663 else
9664 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9665 fi
9666 library_names_spec=
9667 libname_spec='lib$name'
9668 soname_spec=
9669 shrext_cmds=".so"
9670 postinstall_cmds=
9671 postuninstall_cmds=
9672 finish_cmds=
9673 finish_eval=
9674 shlibpath_var=
9675 shlibpath_overrides_runpath=unknown
9676 version_type=none
9677 dynamic_linker="$host_os ld.so"
9678 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9679 need_lib_prefix=unknown
9680 hardcode_into_libs=no
9681
9682 # when you set need_version to no, make sure it does not cause -set_version
9683 # flags to be left without arguments
9684 need_version=unknown
9685
9686 case $host_os in
9687 aix3*)
9688 version_type=linux
9689 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9690 shlibpath_var=LIBPATH
9691
9692 # AIX 3 has no versioning support, so we append a major version to the name.
9693 soname_spec='${libname}${release}${shared_ext}$major'
9694 ;;
9695
9696 aix[4-9]*)
9697 version_type=linux
9698 need_lib_prefix=no
9699 need_version=no
9700 hardcode_into_libs=yes
9701 if test "$host_cpu" = ia64; then
9702 # AIX 5 supports IA64
9703 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9704 shlibpath_var=LD_LIBRARY_PATH
9705 else
9706 # With GCC up to 2.95.x, collect2 would create an import file
9707 # for dependence libraries. The import file would start with
9708 # the line `#! .'. This would cause the generated library to
9709 # depend on `.', always an invalid library. This was fixed in
9710 # development snapshots of GCC prior to 3.0.
9711 case $host_os in
9712 aix4 | aix4.[01] | aix4.[01].*)
9713 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9714 echo ' yes '
9715 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9716 :
9717 else
9718 can_build_shared=no
9719 fi
9720 ;;
9721 esac
9722 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9723 # soname into executable. Probably we can add versioning support to
9724 # collect2, so additional links can be useful in future.
9725 if test "$aix_use_runtimelinking" = yes; then
9726 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9727 # instead of lib<name>.a to let people know that these are not
9728 # typical AIX shared libraries.
9729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9730 else
9731 # We preserve .a as extension for shared libraries through AIX4.2
9732 # and later when we are not doing run time linking.
9733 library_names_spec='${libname}${release}.a $libname.a'
9734 soname_spec='${libname}${release}${shared_ext}$major'
9735 fi
9736 shlibpath_var=LIBPATH
9737 fi
9738 ;;
9739
9740 amigaos*)
9741 case $host_cpu in
9742 powerpc)
9743 # Since July 2007 AmigaOS4 officially supports .so libraries.
9744 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9746 ;;
9747 m68k)
9748 library_names_spec='$libname.ixlibrary $libname.a'
9749 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9750 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'
9751 ;;
9752 esac
9753 ;;
9754
9755 beos*)
9756 library_names_spec='${libname}${shared_ext}'
9757 dynamic_linker="$host_os ld.so"
9758 shlibpath_var=LIBRARY_PATH
9759 ;;
9760
9761 bsdi[45]*)
9762 version_type=linux
9763 need_version=no
9764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9765 soname_spec='${libname}${release}${shared_ext}$major'
9766 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9767 shlibpath_var=LD_LIBRARY_PATH
9768 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9769 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9770 # the default ld.so.conf also contains /usr/contrib/lib and
9771 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9772 # libtool to hard-code these into programs
9773 ;;
9774
9775 cygwin* | mingw* | pw32* | cegcc*)
9776 version_type=windows
9777 shrext_cmds=".dll"
9778 need_version=no
9779 need_lib_prefix=no
9780
9781 case $GCC,$host_os in
9782 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9783 library_names_spec='$libname.dll.a'
9784 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9785 postinstall_cmds='base_file=`basename \${file}`~
9786 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9787 dldir=$destdir/`dirname \$dlpath`~
9788 test -d \$dldir || mkdir -p \$dldir~
9789 $install_prog $dir/$dlname \$dldir/$dlname~
9790 chmod a+x \$dldir/$dlname~
9791 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9792 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9793 fi'
9794 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9795 dlpath=$dir/\$dldll~
9796 $RM \$dlpath'
9797 shlibpath_overrides_runpath=yes
9798
9799 case $host_os in
9800 cygwin*)
9801 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9802 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9803
9804 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9805 ;;
9806 mingw* | cegcc*)
9807 # MinGW DLLs use traditional 'lib' prefix
9808 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9809 ;;
9810 pw32*)
9811 # pw32 DLLs use 'pw' prefix rather than 'lib'
9812 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9813 ;;
9814 esac
9815 ;;
9816
9817 *)
9818 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9819 ;;
9820 esac
9821 dynamic_linker='Win32 ld.exe'
9822 # FIXME: first we should search . and the directory the executable is in
9823 shlibpath_var=PATH
9824 ;;
9825
9826 darwin* | rhapsody*)
9827 dynamic_linker="$host_os dyld"
9828 version_type=darwin
9829 need_lib_prefix=no
9830 need_version=no
9831 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9832 soname_spec='${libname}${release}${major}$shared_ext'
9833 shlibpath_overrides_runpath=yes
9834 shlibpath_var=DYLD_LIBRARY_PATH
9835 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9836
9837 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9838 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9839 ;;
9840
9841 dgux*)
9842 version_type=linux
9843 need_lib_prefix=no
9844 need_version=no
9845 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9846 soname_spec='${libname}${release}${shared_ext}$major'
9847 shlibpath_var=LD_LIBRARY_PATH
9848 ;;
9849
9850 freebsd* | dragonfly*)
9851 # DragonFly does not have aout. When/if they implement a new
9852 # versioning mechanism, adjust this.
9853 if test -x /usr/bin/objformat; then
9854 objformat=`/usr/bin/objformat`
9855 else
9856 case $host_os in
9857 freebsd[23].*) objformat=aout ;;
9858 *) objformat=elf ;;
9859 esac
9860 fi
9861 version_type=freebsd-$objformat
9862 case $version_type in
9863 freebsd-elf*)
9864 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9865 need_version=no
9866 need_lib_prefix=no
9867 ;;
9868 freebsd-*)
9869 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9870 need_version=yes
9871 ;;
9872 esac
9873 shlibpath_var=LD_LIBRARY_PATH
9874 case $host_os in
9875 freebsd2.*)
9876 shlibpath_overrides_runpath=yes
9877 ;;
9878 freebsd3.[01]* | freebsdelf3.[01]*)
9879 shlibpath_overrides_runpath=yes
9880 hardcode_into_libs=yes
9881 ;;
9882 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9883 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9884 shlibpath_overrides_runpath=no
9885 hardcode_into_libs=yes
9886 ;;
9887 *) # from 4.6 on, and DragonFly
9888 shlibpath_overrides_runpath=yes
9889 hardcode_into_libs=yes
9890 ;;
9891 esac
9892 ;;
9893
9894 haiku*)
9895 version_type=linux
9896 need_lib_prefix=no
9897 need_version=no
9898 dynamic_linker="$host_os runtime_loader"
9899 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9900 soname_spec='${libname}${release}${shared_ext}$major'
9901 shlibpath_var=LIBRARY_PATH
9902 shlibpath_overrides_runpath=yes
9903 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
9904 hardcode_into_libs=yes
9905 ;;
9906
9907 hpux9* | hpux10* | hpux11*)
9908 # Give a soname corresponding to the major version so that dld.sl refuses to
9909 # link against other versions.
9910 version_type=sunos
9911 need_lib_prefix=no
9912 need_version=no
9913 case $host_cpu in
9914 ia64*)
9915 shrext_cmds='.so'
9916 hardcode_into_libs=yes
9917 dynamic_linker="$host_os dld.so"
9918 shlibpath_var=LD_LIBRARY_PATH
9919 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9921 soname_spec='${libname}${release}${shared_ext}$major'
9922 if test "X$HPUX_IA64_MODE" = X32; then
9923 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9924 else
9925 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9926 fi
9927 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9928 ;;
9929 hppa*64*)
9930 shrext_cmds='.sl'
9931 hardcode_into_libs=yes
9932 dynamic_linker="$host_os dld.sl"
9933 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9934 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9936 soname_spec='${libname}${release}${shared_ext}$major'
9937 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9938 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9939 ;;
9940 *)
9941 shrext_cmds='.sl'
9942 dynamic_linker="$host_os dld.sl"
9943 shlibpath_var=SHLIB_PATH
9944 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9946 soname_spec='${libname}${release}${shared_ext}$major'
9947 ;;
9948 esac
9949 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
9950 postinstall_cmds='chmod 555 $lib'
9951 # or fails outright, so override atomically:
9952 install_override_mode=555
9953 ;;
9954
9955 interix[3-9]*)
9956 version_type=linux
9957 need_lib_prefix=no
9958 need_version=no
9959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9960 soname_spec='${libname}${release}${shared_ext}$major'
9961 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9962 shlibpath_var=LD_LIBRARY_PATH
9963 shlibpath_overrides_runpath=no
9964 hardcode_into_libs=yes
9965 ;;
9966
9967 irix5* | irix6* | nonstopux*)
9968 case $host_os in
9969 nonstopux*) version_type=nonstopux ;;
9970 *)
9971 if test "$lt_cv_prog_gnu_ld" = yes; then
9972 version_type=linux
9973 else
9974 version_type=irix
9975 fi ;;
9976 esac
9977 need_lib_prefix=no
9978 need_version=no
9979 soname_spec='${libname}${release}${shared_ext}$major'
9980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9981 case $host_os in
9982 irix5* | nonstopux*)
9983 libsuff= shlibsuff=
9984 ;;
9985 *)
9986 case $LD in # libtool.m4 will add one of these switches to LD
9987 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9988 libsuff= shlibsuff= libmagic=32-bit;;
9989 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9990 libsuff=32 shlibsuff=N32 libmagic=N32;;
9991 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9992 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9993 *) libsuff= shlibsuff= libmagic=never-match;;
9994 esac
9995 ;;
9996 esac
9997 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9998 shlibpath_overrides_runpath=no
9999 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10000 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10001 hardcode_into_libs=yes
10002 ;;
10003
10004 # No shared lib support for Linux oldld, aout, or coff.
10005 linux*oldld* | linux*aout* | linux*coff*)
10006 dynamic_linker=no
10007 ;;
10008
10009 # This must be Linux ELF.
10010 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10011 version_type=linux
10012 need_lib_prefix=no
10013 need_version=no
10014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10015 soname_spec='${libname}${release}${shared_ext}$major'
10016 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10017 shlibpath_var=LD_LIBRARY_PATH
10018 shlibpath_overrides_runpath=no
10019
10020 # Some binutils ld are patched to set DT_RUNPATH
10021 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10022 $as_echo_n "(cached) " >&6
10023 else
10024 lt_cv_shlibpath_overrides_runpath=no
10025 save_LDFLAGS=$LDFLAGS
10026 save_libdir=$libdir
10027 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10028 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10030 /* end confdefs.h. */
10031
10032 int
10033 main ()
10034 {
10035
10036 ;
10037 return 0;
10038 }
10039 _ACEOF
10040 if ac_fn_c_try_link "$LINENO"; then :
10041 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10042 lt_cv_shlibpath_overrides_runpath=yes
10043 fi
10044 fi
10045 rm -f core conftest.err conftest.$ac_objext \
10046 conftest$ac_exeext conftest.$ac_ext
10047 LDFLAGS=$save_LDFLAGS
10048 libdir=$save_libdir
10049
10050 fi
10051
10052 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10053
10054 # This implies no fast_install, which is unacceptable.
10055 # Some rework will be needed to allow for fast_install
10056 # before this can be enabled.
10057 hardcode_into_libs=yes
10058
10059 # Append ld.so.conf contents to the search path
10060 if test -f /etc/ld.so.conf; then
10061 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' ' '`
10062 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10063 fi
10064
10065 # We used to test for /lib/ld.so.1 and disable shared libraries on
10066 # powerpc, because MkLinux only supported shared libraries with the
10067 # GNU dynamic linker. Since this was broken with cross compilers,
10068 # most powerpc-linux boxes support dynamic linking these days and
10069 # people can always --disable-shared, the test was removed, and we
10070 # assume the GNU/Linux dynamic linker is in use.
10071 dynamic_linker='GNU/Linux ld.so'
10072 ;;
10073
10074 netbsd*)
10075 version_type=sunos
10076 need_lib_prefix=no
10077 need_version=no
10078 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10080 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10081 dynamic_linker='NetBSD (a.out) ld.so'
10082 else
10083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10084 soname_spec='${libname}${release}${shared_ext}$major'
10085 dynamic_linker='NetBSD ld.elf_so'
10086 fi
10087 shlibpath_var=LD_LIBRARY_PATH
10088 shlibpath_overrides_runpath=yes
10089 hardcode_into_libs=yes
10090 ;;
10091
10092 newsos6)
10093 version_type=linux
10094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10095 shlibpath_var=LD_LIBRARY_PATH
10096 shlibpath_overrides_runpath=yes
10097 ;;
10098
10099 *nto* | *qnx*)
10100 version_type=qnx
10101 need_lib_prefix=no
10102 need_version=no
10103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10104 soname_spec='${libname}${release}${shared_ext}$major'
10105 shlibpath_var=LD_LIBRARY_PATH
10106 shlibpath_overrides_runpath=no
10107 hardcode_into_libs=yes
10108 dynamic_linker='ldqnx.so'
10109 ;;
10110
10111 openbsd*)
10112 version_type=sunos
10113 sys_lib_dlsearch_path_spec="/usr/lib"
10114 need_lib_prefix=no
10115 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10116 case $host_os in
10117 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10118 *) need_version=no ;;
10119 esac
10120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10121 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10122 shlibpath_var=LD_LIBRARY_PATH
10123 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10124 case $host_os in
10125 openbsd2.[89] | openbsd2.[89].*)
10126 shlibpath_overrides_runpath=no
10127 ;;
10128 *)
10129 shlibpath_overrides_runpath=yes
10130 ;;
10131 esac
10132 else
10133 shlibpath_overrides_runpath=yes
10134 fi
10135 ;;
10136
10137 os2*)
10138 libname_spec='$name'
10139 shrext_cmds=".dll"
10140 need_lib_prefix=no
10141 library_names_spec='$libname${shared_ext} $libname.a'
10142 dynamic_linker='OS/2 ld.exe'
10143 shlibpath_var=LIBPATH
10144 ;;
10145
10146 osf3* | osf4* | osf5*)
10147 version_type=osf
10148 need_lib_prefix=no
10149 need_version=no
10150 soname_spec='${libname}${release}${shared_ext}$major'
10151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10152 shlibpath_var=LD_LIBRARY_PATH
10153 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10154 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10155 ;;
10156
10157 rdos*)
10158 dynamic_linker=no
10159 ;;
10160
10161 solaris*)
10162 version_type=linux
10163 need_lib_prefix=no
10164 need_version=no
10165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10166 soname_spec='${libname}${release}${shared_ext}$major'
10167 shlibpath_var=LD_LIBRARY_PATH
10168 shlibpath_overrides_runpath=yes
10169 hardcode_into_libs=yes
10170 # ldd complains unless libraries are executable
10171 postinstall_cmds='chmod +x $lib'
10172 ;;
10173
10174 sunos4*)
10175 version_type=sunos
10176 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10177 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10178 shlibpath_var=LD_LIBRARY_PATH
10179 shlibpath_overrides_runpath=yes
10180 if test "$with_gnu_ld" = yes; then
10181 need_lib_prefix=no
10182 fi
10183 need_version=yes
10184 ;;
10185
10186 sysv4 | sysv4.3*)
10187 version_type=linux
10188 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10189 soname_spec='${libname}${release}${shared_ext}$major'
10190 shlibpath_var=LD_LIBRARY_PATH
10191 case $host_vendor in
10192 sni)
10193 shlibpath_overrides_runpath=no
10194 need_lib_prefix=no
10195 runpath_var=LD_RUN_PATH
10196 ;;
10197 siemens)
10198 need_lib_prefix=no
10199 ;;
10200 motorola)
10201 need_lib_prefix=no
10202 need_version=no
10203 shlibpath_overrides_runpath=no
10204 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10205 ;;
10206 esac
10207 ;;
10208
10209 sysv4*MP*)
10210 if test -d /usr/nec ;then
10211 version_type=linux
10212 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10213 soname_spec='$libname${shared_ext}.$major'
10214 shlibpath_var=LD_LIBRARY_PATH
10215 fi
10216 ;;
10217
10218 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10219 version_type=freebsd-elf
10220 need_lib_prefix=no
10221 need_version=no
10222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10223 soname_spec='${libname}${release}${shared_ext}$major'
10224 shlibpath_var=LD_LIBRARY_PATH
10225 shlibpath_overrides_runpath=yes
10226 hardcode_into_libs=yes
10227 if test "$with_gnu_ld" = yes; then
10228 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10229 else
10230 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10231 case $host_os in
10232 sco3.2v5*)
10233 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10234 ;;
10235 esac
10236 fi
10237 sys_lib_dlsearch_path_spec='/usr/lib'
10238 ;;
10239
10240 tpf*)
10241 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10242 version_type=linux
10243 need_lib_prefix=no
10244 need_version=no
10245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10246 shlibpath_var=LD_LIBRARY_PATH
10247 shlibpath_overrides_runpath=no
10248 hardcode_into_libs=yes
10249 ;;
10250
10251 uts4*)
10252 version_type=linux
10253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10254 soname_spec='${libname}${release}${shared_ext}$major'
10255 shlibpath_var=LD_LIBRARY_PATH
10256 ;;
10257
10258 *)
10259 dynamic_linker=no
10260 ;;
10261 esac
10262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10263 $as_echo "$dynamic_linker" >&6; }
10264 test "$dynamic_linker" = no && can_build_shared=no
10265
10266 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10267 if test "$GCC" = yes; then
10268 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10269 fi
10270
10271 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10272 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10273 fi
10274 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10275 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10276 fi
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10370 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10371 hardcode_action=
10372 if test -n "$hardcode_libdir_flag_spec" ||
10373 test -n "$runpath_var" ||
10374 test "X$hardcode_automatic" = "Xyes" ; then
10375
10376 # We can hardcode non-existent directories.
10377 if test "$hardcode_direct" != no &&
10378 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10379 # have to relink, otherwise we might link with an installed library
10380 # when we should be linking with a yet-to-be-installed one
10381 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10382 test "$hardcode_minus_L" != no; then
10383 # Linking always hardcodes the temporary library directory.
10384 hardcode_action=relink
10385 else
10386 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10387 hardcode_action=immediate
10388 fi
10389 else
10390 # We cannot hardcode anything, or else we can only hardcode existing
10391 # directories.
10392 hardcode_action=unsupported
10393 fi
10394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10395 $as_echo "$hardcode_action" >&6; }
10396
10397 if test "$hardcode_action" = relink ||
10398 test "$inherit_rpath" = yes; then
10399 # Fast installation is not supported
10400 enable_fast_install=no
10401 elif test "$shlibpath_overrides_runpath" = yes ||
10402 test "$enable_shared" = no; then
10403 # Fast installation is not necessary
10404 enable_fast_install=needless
10405 fi
10406
10407
10408
10409
10410
10411
10412 if test "x$enable_dlopen" != xyes; then
10413 enable_dlopen=unknown
10414 enable_dlopen_self=unknown
10415 enable_dlopen_self_static=unknown
10416 else
10417 lt_cv_dlopen=no
10418 lt_cv_dlopen_libs=
10419
10420 case $host_os in
10421 beos*)
10422 lt_cv_dlopen="load_add_on"
10423 lt_cv_dlopen_libs=
10424 lt_cv_dlopen_self=yes
10425 ;;
10426
10427 mingw* | pw32* | cegcc*)
10428 lt_cv_dlopen="LoadLibrary"
10429 lt_cv_dlopen_libs=
10430 ;;
10431
10432 cygwin*)
10433 lt_cv_dlopen="dlopen"
10434 lt_cv_dlopen_libs=
10435 ;;
10436
10437 darwin*)
10438 # if libdl is installed we need to link against it
10439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10440 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10441 if ${ac_cv_lib_dl_dlopen+:} false; then :
10442 $as_echo_n "(cached) " >&6
10443 else
10444 ac_check_lib_save_LIBS=$LIBS
10445 LIBS="-ldl $LIBS"
10446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10447 /* end confdefs.h. */
10448
10449 /* Override any GCC internal prototype to avoid an error.
10450 Use char because int might match the return type of a GCC
10451 builtin and then its argument prototype would still apply. */
10452 #ifdef __cplusplus
10453 extern "C"
10454 #endif
10455 char dlopen ();
10456 int
10457 main ()
10458 {
10459 return dlopen ();
10460 ;
10461 return 0;
10462 }
10463 _ACEOF
10464 if ac_fn_c_try_link "$LINENO"; then :
10465 ac_cv_lib_dl_dlopen=yes
10466 else
10467 ac_cv_lib_dl_dlopen=no
10468 fi
10469 rm -f core conftest.err conftest.$ac_objext \
10470 conftest$ac_exeext conftest.$ac_ext
10471 LIBS=$ac_check_lib_save_LIBS
10472 fi
10473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10474 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10475 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10476 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10477 else
10478
10479 lt_cv_dlopen="dyld"
10480 lt_cv_dlopen_libs=
10481 lt_cv_dlopen_self=yes
10482
10483 fi
10484
10485 ;;
10486
10487 *)
10488 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10489 if test "x$ac_cv_func_shl_load" = xyes; then :
10490 lt_cv_dlopen="shl_load"
10491 else
10492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10493 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10494 if ${ac_cv_lib_dld_shl_load+:} false; then :
10495 $as_echo_n "(cached) " >&6
10496 else
10497 ac_check_lib_save_LIBS=$LIBS
10498 LIBS="-ldld $LIBS"
10499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10500 /* end confdefs.h. */
10501
10502 /* Override any GCC internal prototype to avoid an error.
10503 Use char because int might match the return type of a GCC
10504 builtin and then its argument prototype would still apply. */
10505 #ifdef __cplusplus
10506 extern "C"
10507 #endif
10508 char shl_load ();
10509 int
10510 main ()
10511 {
10512 return shl_load ();
10513 ;
10514 return 0;
10515 }
10516 _ACEOF
10517 if ac_fn_c_try_link "$LINENO"; then :
10518 ac_cv_lib_dld_shl_load=yes
10519 else
10520 ac_cv_lib_dld_shl_load=no
10521 fi
10522 rm -f core conftest.err conftest.$ac_objext \
10523 conftest$ac_exeext conftest.$ac_ext
10524 LIBS=$ac_check_lib_save_LIBS
10525 fi
10526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10527 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10528 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10529 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10530 else
10531 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10532 if test "x$ac_cv_func_dlopen" = xyes; then :
10533 lt_cv_dlopen="dlopen"
10534 else
10535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10536 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10537 if ${ac_cv_lib_dl_dlopen+:} false; then :
10538 $as_echo_n "(cached) " >&6
10539 else
10540 ac_check_lib_save_LIBS=$LIBS
10541 LIBS="-ldl $LIBS"
10542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10543 /* end confdefs.h. */
10544
10545 /* Override any GCC internal prototype to avoid an error.
10546 Use char because int might match the return type of a GCC
10547 builtin and then its argument prototype would still apply. */
10548 #ifdef __cplusplus
10549 extern "C"
10550 #endif
10551 char dlopen ();
10552 int
10553 main ()
10554 {
10555 return dlopen ();
10556 ;
10557 return 0;
10558 }
10559 _ACEOF
10560 if ac_fn_c_try_link "$LINENO"; then :
10561 ac_cv_lib_dl_dlopen=yes
10562 else
10563 ac_cv_lib_dl_dlopen=no
10564 fi
10565 rm -f core conftest.err conftest.$ac_objext \
10566 conftest$ac_exeext conftest.$ac_ext
10567 LIBS=$ac_check_lib_save_LIBS
10568 fi
10569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10570 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10571 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10572 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10573 else
10574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10575 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10576 if ${ac_cv_lib_svld_dlopen+:} false; then :
10577 $as_echo_n "(cached) " >&6
10578 else
10579 ac_check_lib_save_LIBS=$LIBS
10580 LIBS="-lsvld $LIBS"
10581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10582 /* end confdefs.h. */
10583
10584 /* Override any GCC internal prototype to avoid an error.
10585 Use char because int might match the return type of a GCC
10586 builtin and then its argument prototype would still apply. */
10587 #ifdef __cplusplus
10588 extern "C"
10589 #endif
10590 char dlopen ();
10591 int
10592 main ()
10593 {
10594 return dlopen ();
10595 ;
10596 return 0;
10597 }
10598 _ACEOF
10599 if ac_fn_c_try_link "$LINENO"; then :
10600 ac_cv_lib_svld_dlopen=yes
10601 else
10602 ac_cv_lib_svld_dlopen=no
10603 fi
10604 rm -f core conftest.err conftest.$ac_objext \
10605 conftest$ac_exeext conftest.$ac_ext
10606 LIBS=$ac_check_lib_save_LIBS
10607 fi
10608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10609 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10610 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10611 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10612 else
10613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10614 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10615 if ${ac_cv_lib_dld_dld_link+:} false; then :
10616 $as_echo_n "(cached) " >&6
10617 else
10618 ac_check_lib_save_LIBS=$LIBS
10619 LIBS="-ldld $LIBS"
10620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10621 /* end confdefs.h. */
10622
10623 /* Override any GCC internal prototype to avoid an error.
10624 Use char because int might match the return type of a GCC
10625 builtin and then its argument prototype would still apply. */
10626 #ifdef __cplusplus
10627 extern "C"
10628 #endif
10629 char dld_link ();
10630 int
10631 main ()
10632 {
10633 return dld_link ();
10634 ;
10635 return 0;
10636 }
10637 _ACEOF
10638 if ac_fn_c_try_link "$LINENO"; then :
10639 ac_cv_lib_dld_dld_link=yes
10640 else
10641 ac_cv_lib_dld_dld_link=no
10642 fi
10643 rm -f core conftest.err conftest.$ac_objext \
10644 conftest$ac_exeext conftest.$ac_ext
10645 LIBS=$ac_check_lib_save_LIBS
10646 fi
10647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10648 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10649 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10650 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10651 fi
10652
10653
10654 fi
10655
10656
10657 fi
10658
10659
10660 fi
10661
10662
10663 fi
10664
10665
10666 fi
10667
10668 ;;
10669 esac
10670
10671 if test "x$lt_cv_dlopen" != xno; then
10672 enable_dlopen=yes
10673 else
10674 enable_dlopen=no
10675 fi
10676
10677 case $lt_cv_dlopen in
10678 dlopen)
10679 save_CPPFLAGS="$CPPFLAGS"
10680 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10681
10682 save_LDFLAGS="$LDFLAGS"
10683 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10684
10685 save_LIBS="$LIBS"
10686 LIBS="$lt_cv_dlopen_libs $LIBS"
10687
10688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10689 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10690 if ${lt_cv_dlopen_self+:} false; then :
10691 $as_echo_n "(cached) " >&6
10692 else
10693 if test "$cross_compiling" = yes; then :
10694 lt_cv_dlopen_self=cross
10695 else
10696 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10697 lt_status=$lt_dlunknown
10698 cat > conftest.$ac_ext <<_LT_EOF
10699 #line 10699 "configure"
10700 #include "confdefs.h"
10701
10702 #if HAVE_DLFCN_H
10703 #include <dlfcn.h>
10704 #endif
10705
10706 #include <stdio.h>
10707
10708 #ifdef RTLD_GLOBAL
10709 # define LT_DLGLOBAL RTLD_GLOBAL
10710 #else
10711 # ifdef DL_GLOBAL
10712 # define LT_DLGLOBAL DL_GLOBAL
10713 # else
10714 # define LT_DLGLOBAL 0
10715 # endif
10716 #endif
10717
10718 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10719 find out it does not work in some platform. */
10720 #ifndef LT_DLLAZY_OR_NOW
10721 # ifdef RTLD_LAZY
10722 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10723 # else
10724 # ifdef DL_LAZY
10725 # define LT_DLLAZY_OR_NOW DL_LAZY
10726 # else
10727 # ifdef RTLD_NOW
10728 # define LT_DLLAZY_OR_NOW RTLD_NOW
10729 # else
10730 # ifdef DL_NOW
10731 # define LT_DLLAZY_OR_NOW DL_NOW
10732 # else
10733 # define LT_DLLAZY_OR_NOW 0
10734 # endif
10735 # endif
10736 # endif
10737 # endif
10738 #endif
10739
10740 /* When -fvisbility=hidden is used, assume the code has been annotated
10741 correspondingly for the symbols needed. */
10742 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10743 void fnord () __attribute__((visibility("default")));
10744 #endif
10745
10746 void fnord () { int i=42; }
10747 int main ()
10748 {
10749 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10750 int status = $lt_dlunknown;
10751
10752 if (self)
10753 {
10754 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10755 else
10756 {
10757 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10758 else puts (dlerror ());
10759 }
10760 /* dlclose (self); */
10761 }
10762 else
10763 puts (dlerror ());
10764
10765 return status;
10766 }
10767 _LT_EOF
10768 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10769 (eval $ac_link) 2>&5
10770 ac_status=$?
10771 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10772 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10773 (./conftest; exit; ) >&5 2>/dev/null
10774 lt_status=$?
10775 case x$lt_status in
10776 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10777 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10778 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10779 esac
10780 else :
10781 # compilation failed
10782 lt_cv_dlopen_self=no
10783 fi
10784 fi
10785 rm -fr conftest*
10786
10787
10788 fi
10789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10790 $as_echo "$lt_cv_dlopen_self" >&6; }
10791
10792 if test "x$lt_cv_dlopen_self" = xyes; then
10793 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10795 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10796 if ${lt_cv_dlopen_self_static+:} false; then :
10797 $as_echo_n "(cached) " >&6
10798 else
10799 if test "$cross_compiling" = yes; then :
10800 lt_cv_dlopen_self_static=cross
10801 else
10802 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10803 lt_status=$lt_dlunknown
10804 cat > conftest.$ac_ext <<_LT_EOF
10805 #line 10805 "configure"
10806 #include "confdefs.h"
10807
10808 #if HAVE_DLFCN_H
10809 #include <dlfcn.h>
10810 #endif
10811
10812 #include <stdio.h>
10813
10814 #ifdef RTLD_GLOBAL
10815 # define LT_DLGLOBAL RTLD_GLOBAL
10816 #else
10817 # ifdef DL_GLOBAL
10818 # define LT_DLGLOBAL DL_GLOBAL
10819 # else
10820 # define LT_DLGLOBAL 0
10821 # endif
10822 #endif
10823
10824 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10825 find out it does not work in some platform. */
10826 #ifndef LT_DLLAZY_OR_NOW
10827 # ifdef RTLD_LAZY
10828 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10829 # else
10830 # ifdef DL_LAZY
10831 # define LT_DLLAZY_OR_NOW DL_LAZY
10832 # else
10833 # ifdef RTLD_NOW
10834 # define LT_DLLAZY_OR_NOW RTLD_NOW
10835 # else
10836 # ifdef DL_NOW
10837 # define LT_DLLAZY_OR_NOW DL_NOW
10838 # else
10839 # define LT_DLLAZY_OR_NOW 0
10840 # endif
10841 # endif
10842 # endif
10843 # endif
10844 #endif
10845
10846 /* When -fvisbility=hidden is used, assume the code has been annotated
10847 correspondingly for the symbols needed. */
10848 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10849 void fnord () __attribute__((visibility("default")));
10850 #endif
10851
10852 void fnord () { int i=42; }
10853 int main ()
10854 {
10855 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10856 int status = $lt_dlunknown;
10857
10858 if (self)
10859 {
10860 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10861 else
10862 {
10863 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10864 else puts (dlerror ());
10865 }
10866 /* dlclose (self); */
10867 }
10868 else
10869 puts (dlerror ());
10870
10871 return status;
10872 }
10873 _LT_EOF
10874 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10875 (eval $ac_link) 2>&5
10876 ac_status=$?
10877 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10878 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10879 (./conftest; exit; ) >&5 2>/dev/null
10880 lt_status=$?
10881 case x$lt_status in
10882 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10883 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10884 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10885 esac
10886 else :
10887 # compilation failed
10888 lt_cv_dlopen_self_static=no
10889 fi
10890 fi
10891 rm -fr conftest*
10892
10893
10894 fi
10895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10896 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10897 fi
10898
10899 CPPFLAGS="$save_CPPFLAGS"
10900 LDFLAGS="$save_LDFLAGS"
10901 LIBS="$save_LIBS"
10902 ;;
10903 esac
10904
10905 case $lt_cv_dlopen_self in
10906 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10907 *) enable_dlopen_self=unknown ;;
10908 esac
10909
10910 case $lt_cv_dlopen_self_static in
10911 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10912 *) enable_dlopen_self_static=unknown ;;
10913 esac
10914 fi
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932 striplib=
10933 old_striplib=
10934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10935 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
10936 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10937 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10938 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10940 $as_echo "yes" >&6; }
10941 else
10942 # FIXME - insert some real tests, host_os isn't really good enough
10943 case $host_os in
10944 darwin*)
10945 if test -n "$STRIP" ; then
10946 striplib="$STRIP -x"
10947 old_striplib="$STRIP -S"
10948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10949 $as_echo "yes" >&6; }
10950 else
10951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10952 $as_echo "no" >&6; }
10953 fi
10954 ;;
10955 *)
10956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10957 $as_echo "no" >&6; }
10958 ;;
10959 esac
10960 fi
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973 # Report which library types will actually be built
10974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10975 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10977 $as_echo "$can_build_shared" >&6; }
10978
10979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10980 $as_echo_n "checking whether to build shared libraries... " >&6; }
10981 test "$can_build_shared" = "no" && enable_shared=no
10982
10983 # On AIX, shared libraries and static libraries use the same namespace, and
10984 # are all built from PIC.
10985 case $host_os in
10986 aix3*)
10987 test "$enable_shared" = yes && enable_static=no
10988 if test -n "$RANLIB"; then
10989 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10990 postinstall_cmds='$RANLIB $lib'
10991 fi
10992 ;;
10993
10994 aix[4-9]*)
10995 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10996 test "$enable_shared" = yes && enable_static=no
10997 fi
10998 ;;
10999 esac
11000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11001 $as_echo "$enable_shared" >&6; }
11002
11003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11004 $as_echo_n "checking whether to build static libraries... " >&6; }
11005 # Make sure either enable_shared or enable_static is yes.
11006 test "$enable_shared" = yes || enable_static=yes
11007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11008 $as_echo "$enable_static" >&6; }
11009
11010
11011
11012
11013 fi
11014 ac_ext=c
11015 ac_cpp='$CPP $CPPFLAGS'
11016 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11017 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11018 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11019
11020 CC="$lt_save_CC"
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034 ac_config_commands="$ac_config_commands libtool"
11035
11036
11037
11038
11039 # Only expand once:
11040
11041
11042
11043 # The tests for host and target for $enable_largefile require
11044 # canonical names.
11045
11046
11047
11048 # As the $enable_largefile decision depends on --enable-plugins we must set it
11049 # even in directories otherwise not depending on the $plugins option.
11050
11051
11052 maybe_plugins=no
11053 for ac_header in dlfcn.h
11054 do :
11055 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
11056 "
11057 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
11058 cat >>confdefs.h <<_ACEOF
11059 #define HAVE_DLFCN_H 1
11060 _ACEOF
11061 maybe_plugins=yes
11062 fi
11063
11064 done
11065
11066 for ac_header in windows.h
11067 do :
11068 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
11069 "
11070 if test "x$ac_cv_header_windows_h" = xyes; then :
11071 cat >>confdefs.h <<_ACEOF
11072 #define HAVE_WINDOWS_H 1
11073 _ACEOF
11074 maybe_plugins=yes
11075 fi
11076
11077 done
11078
11079
11080 # Check whether --enable-plugins was given.
11081 if test "${enable_plugins+set}" = set; then :
11082 enableval=$enable_plugins; case "${enableval}" in
11083 no) plugins=no ;;
11084 *) plugins=yes
11085 if test "$maybe_plugins" != "yes" ; then
11086 as_fn_error $? "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
11087 fi ;;
11088 esac
11089 else
11090 plugins=$maybe_plugins
11091
11092 fi
11093
11094 if test "$plugins" = "yes"; then
11095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
11096 $as_echo_n "checking for library containing dlsym... " >&6; }
11097 if ${ac_cv_search_dlsym+:} false; then :
11098 $as_echo_n "(cached) " >&6
11099 else
11100 ac_func_search_save_LIBS=$LIBS
11101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11102 /* end confdefs.h. */
11103
11104 /* Override any GCC internal prototype to avoid an error.
11105 Use char because int might match the return type of a GCC
11106 builtin and then its argument prototype would still apply. */
11107 #ifdef __cplusplus
11108 extern "C"
11109 #endif
11110 char dlsym ();
11111 int
11112 main ()
11113 {
11114 return dlsym ();
11115 ;
11116 return 0;
11117 }
11118 _ACEOF
11119 for ac_lib in '' dl; do
11120 if test -z "$ac_lib"; then
11121 ac_res="none required"
11122 else
11123 ac_res=-l$ac_lib
11124 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11125 fi
11126 if ac_fn_c_try_link "$LINENO"; then :
11127 ac_cv_search_dlsym=$ac_res
11128 fi
11129 rm -f core conftest.err conftest.$ac_objext \
11130 conftest$ac_exeext
11131 if ${ac_cv_search_dlsym+:} false; then :
11132 break
11133 fi
11134 done
11135 if ${ac_cv_search_dlsym+:} false; then :
11136
11137 else
11138 ac_cv_search_dlsym=no
11139 fi
11140 rm conftest.$ac_ext
11141 LIBS=$ac_func_search_save_LIBS
11142 fi
11143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
11144 $as_echo "$ac_cv_search_dlsym" >&6; }
11145 ac_res=$ac_cv_search_dlsym
11146 if test "$ac_res" != no; then :
11147 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11148
11149 fi
11150
11151 fi
11152
11153
11154 case "${host}" in
11155 sparc-*-solaris*|i?86-*-solaris*)
11156 # On native 32-bit Solaris/SPARC and x86, large-file and procfs support
11157 # were mutually exclusive until Solaris 11.3. Without procfs support,
11158 # the bfd/ elf module cannot provide certain routines such as
11159 # elfcore_write_prpsinfo or elfcore_write_prstatus. So unless the user
11160 # explicitly requested large-file support through the
11161 # --enable-largefile switch, disable large-file support in favor of
11162 # procfs support.
11163 #
11164 # Check if <sys/procfs.h> is incompatible with large-file support.
11165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11166 /* end confdefs.h. */
11167 #define _FILE_OFFSET_BITS 64
11168 #define _STRUCTURED_PROC 1
11169 #include <sys/procfs.h>
11170 int
11171 main ()
11172 {
11173
11174 ;
11175 return 0;
11176 }
11177 _ACEOF
11178 if ac_fn_c_try_compile "$LINENO"; then :
11179 acx_cv_procfs_lfs=yes
11180 else
11181 acx_cv_procfs_lfs=no
11182 fi
11183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11184 #
11185 # Forcefully disable large-file support only if necessary, gdb is in
11186 # tree and enabled.
11187 if test "${target}" = "${host}" -a "$acx_cv_procfs_lfs" = no \
11188 -a -d $srcdir/../gdb -a "$enable_gdb" != no; then
11189 : ${enable_largefile="no"}
11190 if test "$plugins" = yes; then
11191 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
11192 plugin support disabled; require large-file support which is incompatible with GDB." >&5
11193 $as_echo "$as_me: WARNING:
11194 plugin support disabled; require large-file support which is incompatible with GDB." >&2;}
11195 plugins=no
11196 fi
11197 fi
11198 #
11199 # Explicitly undef _FILE_OFFSET_BITS if enable_largefile=no for the
11200 # benefit of g++ 9+ which predefines it on Solaris.
11201 if test "$enable_largefile" = no; then
11202 LARGEFILE_CPPFLAGS="-U_FILE_OFFSET_BITS"
11203
11204 fi
11205 ;;
11206 esac
11207
11208 # Check whether --enable-largefile was given.
11209 if test "${enable_largefile+set}" = set; then :
11210 enableval=$enable_largefile;
11211 fi
11212
11213 if test "$enable_largefile" != no; then
11214
11215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
11216 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
11217 if ${ac_cv_sys_largefile_CC+:} false; then :
11218 $as_echo_n "(cached) " >&6
11219 else
11220 ac_cv_sys_largefile_CC=no
11221 if test "$GCC" != yes; then
11222 ac_save_CC=$CC
11223 while :; do
11224 # IRIX 6.2 and later do not support large files by default,
11225 # so use the C compiler's -n32 option if that helps.
11226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11227 /* end confdefs.h. */
11228 #include <sys/types.h>
11229 /* Check that off_t can represent 2**63 - 1 correctly.
11230 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11231 since some C++ compilers masquerading as C compilers
11232 incorrectly reject 9223372036854775807. */
11233 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11234 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11235 && LARGE_OFF_T % 2147483647 == 1)
11236 ? 1 : -1];
11237 int
11238 main ()
11239 {
11240
11241 ;
11242 return 0;
11243 }
11244 _ACEOF
11245 if ac_fn_c_try_compile "$LINENO"; then :
11246 break
11247 fi
11248 rm -f core conftest.err conftest.$ac_objext
11249 CC="$CC -n32"
11250 if ac_fn_c_try_compile "$LINENO"; then :
11251 ac_cv_sys_largefile_CC=' -n32'; break
11252 fi
11253 rm -f core conftest.err conftest.$ac_objext
11254 break
11255 done
11256 CC=$ac_save_CC
11257 rm -f conftest.$ac_ext
11258 fi
11259 fi
11260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
11261 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
11262 if test "$ac_cv_sys_largefile_CC" != no; then
11263 CC=$CC$ac_cv_sys_largefile_CC
11264 fi
11265
11266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
11267 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
11268 if ${ac_cv_sys_file_offset_bits+:} false; then :
11269 $as_echo_n "(cached) " >&6
11270 else
11271 while :; do
11272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11273 /* end confdefs.h. */
11274 #include <sys/types.h>
11275 /* Check that off_t can represent 2**63 - 1 correctly.
11276 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11277 since some C++ compilers masquerading as C compilers
11278 incorrectly reject 9223372036854775807. */
11279 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11280 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11281 && LARGE_OFF_T % 2147483647 == 1)
11282 ? 1 : -1];
11283 int
11284 main ()
11285 {
11286
11287 ;
11288 return 0;
11289 }
11290 _ACEOF
11291 if ac_fn_c_try_compile "$LINENO"; then :
11292 ac_cv_sys_file_offset_bits=no; break
11293 fi
11294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11296 /* end confdefs.h. */
11297 #define _FILE_OFFSET_BITS 64
11298 #include <sys/types.h>
11299 /* Check that off_t can represent 2**63 - 1 correctly.
11300 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11301 since some C++ compilers masquerading as C compilers
11302 incorrectly reject 9223372036854775807. */
11303 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11304 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11305 && LARGE_OFF_T % 2147483647 == 1)
11306 ? 1 : -1];
11307 int
11308 main ()
11309 {
11310
11311 ;
11312 return 0;
11313 }
11314 _ACEOF
11315 if ac_fn_c_try_compile "$LINENO"; then :
11316 ac_cv_sys_file_offset_bits=64; break
11317 fi
11318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11319 ac_cv_sys_file_offset_bits=unknown
11320 break
11321 done
11322 fi
11323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
11324 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
11325 case $ac_cv_sys_file_offset_bits in #(
11326 no | unknown) ;;
11327 *)
11328 cat >>confdefs.h <<_ACEOF
11329 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
11330 _ACEOF
11331 ;;
11332 esac
11333 rm -rf conftest*
11334 if test $ac_cv_sys_file_offset_bits = unknown; then
11335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
11336 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
11337 if ${ac_cv_sys_large_files+:} false; then :
11338 $as_echo_n "(cached) " >&6
11339 else
11340 while :; do
11341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11342 /* end confdefs.h. */
11343 #include <sys/types.h>
11344 /* Check that off_t can represent 2**63 - 1 correctly.
11345 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11346 since some C++ compilers masquerading as C compilers
11347 incorrectly reject 9223372036854775807. */
11348 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11349 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11350 && LARGE_OFF_T % 2147483647 == 1)
11351 ? 1 : -1];
11352 int
11353 main ()
11354 {
11355
11356 ;
11357 return 0;
11358 }
11359 _ACEOF
11360 if ac_fn_c_try_compile "$LINENO"; then :
11361 ac_cv_sys_large_files=no; break
11362 fi
11363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11365 /* end confdefs.h. */
11366 #define _LARGE_FILES 1
11367 #include <sys/types.h>
11368 /* Check that off_t can represent 2**63 - 1 correctly.
11369 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11370 since some C++ compilers masquerading as C compilers
11371 incorrectly reject 9223372036854775807. */
11372 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11373 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11374 && LARGE_OFF_T % 2147483647 == 1)
11375 ? 1 : -1];
11376 int
11377 main ()
11378 {
11379
11380 ;
11381 return 0;
11382 }
11383 _ACEOF
11384 if ac_fn_c_try_compile "$LINENO"; then :
11385 ac_cv_sys_large_files=1; break
11386 fi
11387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11388 ac_cv_sys_large_files=unknown
11389 break
11390 done
11391 fi
11392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
11393 $as_echo "$ac_cv_sys_large_files" >&6; }
11394 case $ac_cv_sys_large_files in #(
11395 no | unknown) ;;
11396 *)
11397 cat >>confdefs.h <<_ACEOF
11398 #define _LARGE_FILES $ac_cv_sys_large_files
11399 _ACEOF
11400 ;;
11401 esac
11402 rm -rf conftest*
11403 fi
11404
11405
11406 fi
11407
11408
11409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
11410 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
11411 if ${gcc_cv_prog_cmp_skip+:} false; then :
11412 $as_echo_n "(cached) " >&6
11413 else
11414 echo abfoo >t1
11415 echo cdfoo >t2
11416 gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
11417 if cmp t1 t2 2 2 > /dev/null 2>&1; then
11418 if cmp t1 t2 1 1 > /dev/null 2>&1; then
11419 :
11420 else
11421 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
11422 fi
11423 fi
11424 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
11425 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
11426 :
11427 else
11428 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
11429 fi
11430 fi
11431 rm t1 t2
11432
11433 fi
11434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
11435 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
11436 do_compare="$gcc_cv_prog_cmp_skip"
11437
11438
11439
11440 # Check whether --enable-targets was given.
11441 if test "${enable_targets+set}" = set; then :
11442 enableval=$enable_targets; case "${enableval}" in
11443 yes | "") as_fn_error $? "enable-targets option must specify target names or 'all'" "$LINENO" 5
11444 ;;
11445 no) enable_targets= ;;
11446 *) enable_targets=$enableval ;;
11447 esac
11448 fi
11449
11450 ac_checking=
11451 . ${srcdir}/../bfd/development.sh
11452 test "$development" = true && ac_checking=yes
11453 # Check whether --enable-checking was given.
11454 if test "${enable_checking+set}" = set; then :
11455 enableval=$enable_checking; case "${enableval}" in
11456 no|none) ac_checking= ;;
11457 *) ac_checking=yes ;;
11458 esac
11459 fi
11460 if test x$ac_checking != x ; then
11461
11462 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
11463
11464 fi
11465
11466 # PR gas/19109
11467 # Decide the default method for compressing debug sections.
11468 ac_default_compressed_debug_sections=unset
11469 # Provide a configure time option to override our default.
11470 # Check whether --enable-compressed_debug_sections was given.
11471 if test "${enable_compressed_debug_sections+set}" = set; then :
11472 enableval=$enable_compressed_debug_sections; case ,"${enableval}", in
11473 ,yes, | ,all, | *,gas,*) ac_default_compressed_debug_sections=yes ;;
11474 ,no, | ,none,) ac_default_compressed_debug_sections=no ;;
11475 *) ac_default_compressed_debug_sections=unset ;;
11476 esac
11477 fi
11478
11479 # PR gas/19520
11480 # Decide if x86 assembler should generate relax relocations.
11481 ac_default_x86_relax_relocations=unset
11482 # Provide a configure time option to override our default.
11483 # Check whether --enable-x86_relax_relocations was given.
11484 if test "${enable_x86_relax_relocations+set}" = set; then :
11485 enableval=$enable_x86_relax_relocations; case "${enableval}" in
11486 no) ac_default_x86_relax_relocations=0 ;;
11487 esac
11488 fi
11489
11490 # Decide if ELF assembler should generate common symbols with the
11491 # STT_COMMON type.
11492 ac_default_elf_stt_common=unset
11493 # Provide a configure time option to override our default.
11494 # Check whether --enable-elf_stt_common was given.
11495 if test "${enable_elf_stt_common+set}" = set; then :
11496 enableval=$enable_elf_stt_common; case "${enableval}" in
11497 yes) ac_default_elf_stt_common=1 ;;
11498 esac
11499 fi
11500
11501
11502 # Decide if the ELF assembler should default to generating
11503 # GNU Build notes if none are provided by the input.
11504 ac_default_generate_build_notes=0
11505 # Provide a configuration option to override the default.
11506 # Check whether --enable-generate_build_notes was given.
11507 if test "${enable_generate_build_notes+set}" = set; then :
11508 enableval=$enable_generate_build_notes; case "${enableval}" in
11509 yes) ac_default_generate_build_notes=1 ;;
11510 no) ac_default_generate_build_notes=0 ;;
11511 esac
11512 fi
11513
11514 # Decide if the MIPS assembler should default to enable MIPS fix Loongson3
11515 # LLSC errata.
11516 ac_default_mips_fix_loongson3_llsc=unset
11517 # Provide a configuration option to override the default.
11518 # Check whether --enable-mips-fix-loongson3-llsc was given.
11519 if test "${enable_mips_fix_loongson3_llsc+set}" = set; then :
11520 enableval=$enable_mips_fix_loongson3_llsc; case "${enableval}" in
11521 yes) ac_default_mips_fix_loongson3_llsc=1 ;;
11522 no) ac_default_mips_fix_loongson3_llsc=0 ;;
11523 esac
11524 fi
11525
11526 # Decide if the x86 ELF assembler should default to generating GNU x86
11527 # used ISA and feature properties.
11528 ac_default_generate_x86_used_note=unset
11529 # Provide a configuration option to override the default.
11530 # Check whether --enable-x86-used-note was given.
11531 if test "${enable_x86_used_note+set}" = set; then :
11532 enableval=$enable_x86_used_note; case "${enableval}" in
11533 yes) ac_default_generate_x86_used_note=1 ;;
11534 no) ac_default_generate_x86_used_note=0 ;;
11535 esac
11536 fi
11537
11538 # Decide if the RISC-V ELF assembler should default to generating attribute.
11539 ac_default_generate_riscv_attr=unset
11540 # Provide a configuration option to override the default.
11541 # Check whether --enable-default-riscv-attribute was given.
11542 if test "${enable_default_riscv_attribute+set}" = set; then :
11543 enableval=$enable_default_riscv_attribute; case "${enableval}" in
11544 yes) ac_default_generate_riscv_attr=1 ;;
11545 no) ac_default_generate_riscv_attr=0 ;;
11546 esac
11547 fi
11548
11549 using_cgen=no
11550
11551
11552 # Set the 'development' global.
11553 . $srcdir/../bfd/development.sh
11554
11555 # Set acp_cpp_for_build variable
11556 ac_cpp_for_build="$CC_FOR_BUILD -E $CPPFLAGS_FOR_BUILD"
11557
11558 # Default set of GCC warnings to enable.
11559 GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
11560 GCC_WARN_CFLAGS_FOR_BUILD="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
11561
11562 # Add -Wshadow if the compiler is a sufficiently recent version of GCC.
11563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11564 /* end confdefs.h. */
11565 __GNUC__
11566 _ACEOF
11567 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11568 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
11569
11570 else
11571 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow"
11572 fi
11573 rm -f conftest*
11574
11575
11576 # Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
11577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11578 /* end confdefs.h. */
11579 __GNUC__
11580 _ACEOF
11581 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11582 $EGREP "(^[0-4]$|^__GNUC__$)" >/dev/null 2>&1; then :
11583
11584 else
11585 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wstack-usage=262144"
11586 fi
11587 rm -f conftest*
11588
11589
11590 # Set WARN_WRITE_STRINGS if the compiler supports -Wwrite-strings.
11591 WARN_WRITE_STRINGS=""
11592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11593 /* end confdefs.h. */
11594 __GNUC__
11595 _ACEOF
11596 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11597 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
11598
11599 else
11600 WARN_WRITE_STRINGS="-Wwrite-strings"
11601 fi
11602 rm -f conftest*
11603
11604
11605 # Verify CC_FOR_BUILD to be compatible with warning flags
11606
11607 # Add -Wshadow if the compiler is a sufficiently recent version of GCC.
11608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11609 /* end confdefs.h. */
11610 __GNUC__
11611 _ACEOF
11612 if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
11613 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
11614
11615 else
11616 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wshadow"
11617 fi
11618 rm -f conftest*
11619
11620
11621 # Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
11622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11623 /* end confdefs.h. */
11624 __GNUC__
11625 _ACEOF
11626 if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
11627 $EGREP "(^[0-4]$|^__GNUC__$)" >/dev/null 2>&1; then :
11628
11629 else
11630 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wstack-usage=262144"
11631 fi
11632 rm -f conftest*
11633
11634
11635 # Check whether --enable-werror was given.
11636 if test "${enable_werror+set}" = set; then :
11637 enableval=$enable_werror; case "${enableval}" in
11638 yes | y) ERROR_ON_WARNING="yes" ;;
11639 no | n) ERROR_ON_WARNING="no" ;;
11640 *) as_fn_error $? "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
11641 esac
11642 fi
11643
11644
11645 # Disable -Wformat by default when using gcc on mingw
11646 case "${host}" in
11647 *-*-mingw32*)
11648 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
11649 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
11650 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wno-format"
11651 fi
11652 ;;
11653 *) ;;
11654 esac
11655
11656 # Enable -Werror by default when using gcc. Turn it off for releases.
11657 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" -a "$development" = true ; then
11658 ERROR_ON_WARNING=yes
11659 fi
11660
11661 NO_WERROR=
11662 if test "${ERROR_ON_WARNING}" = yes ; then
11663 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
11664 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Werror"
11665 NO_WERROR="-Wno-error"
11666 fi
11667
11668 if test "${GCC}" = yes ; then
11669 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
11670 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}"
11671 fi
11672
11673 # Check whether --enable-build-warnings was given.
11674 if test "${enable_build_warnings+set}" = set; then :
11675 enableval=$enable_build_warnings; case "${enableval}" in
11676 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}"
11677 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}";;
11678 no) if test "${GCC}" = yes ; then
11679 WARN_CFLAGS="-w"
11680 WARN_CFLAGS_FOR_BUILD="-w"
11681 fi;;
11682 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
11683 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}"
11684 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD} ${t}";;
11685 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
11686 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}"
11687 WARN_CFLAGS_FOR_BUILD="${t} ${GCC_WARN_CFLAGS_FOR_BUILD}";;
11688 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`
11689 WARN_CFLAGS_FOR_BUILD=`echo "${enableval}" | sed -e "s/,/ /g"`;;
11690 esac
11691 fi
11692
11693
11694 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
11695 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
11696 fi
11697
11698
11699
11700
11701
11702
11703
11704 # Generate a header file
11705 ac_config_headers="$ac_config_headers config.h:config.in"
11706
11707
11708
11709 # Check whether --with-cpu was given.
11710 if test "${with_cpu+set}" = set; then :
11711 withval=$with_cpu;
11712 cat >>confdefs.h <<_ACEOF
11713 #define TARGET_WITH_CPU "${with_cpu}"
11714 _ACEOF
11715
11716 fi
11717
11718
11719 # PR 14072
11720
11721
11722 # If we are on a DOS filesystem, we must use gdb.ini rather than
11723 # .gdbinit.
11724 case "${host}" in
11725 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-windows*)
11726 GDBINIT="gdb.ini"
11727 ac_config_files="$ac_config_files gdb.ini:gdbinit.in"
11728
11729 ;;
11730 *)
11731 GDBINIT=".gdbinit"
11732 ac_config_files="$ac_config_files .gdbinit:gdbinit.in"
11733
11734 ;;
11735 esac
11736
11737
11738 #We need this for the host.
11739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
11740 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
11741 if ${ac_cv_c_bigendian+:} false; then :
11742 $as_echo_n "(cached) " >&6
11743 else
11744 ac_cv_c_bigendian=unknown
11745 # See if we're dealing with a universal compiler.
11746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11747 /* end confdefs.h. */
11748 #ifndef __APPLE_CC__
11749 not a universal capable compiler
11750 #endif
11751 typedef int dummy;
11752
11753 _ACEOF
11754 if ac_fn_c_try_compile "$LINENO"; then :
11755
11756 # Check for potential -arch flags. It is not universal unless
11757 # there are at least two -arch flags with different values.
11758 ac_arch=
11759 ac_prev=
11760 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
11761 if test -n "$ac_prev"; then
11762 case $ac_word in
11763 i?86 | x86_64 | ppc | ppc64)
11764 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
11765 ac_arch=$ac_word
11766 else
11767 ac_cv_c_bigendian=universal
11768 break
11769 fi
11770 ;;
11771 esac
11772 ac_prev=
11773 elif test "x$ac_word" = "x-arch"; then
11774 ac_prev=arch
11775 fi
11776 done
11777 fi
11778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11779 if test $ac_cv_c_bigendian = unknown; then
11780 # See if sys/param.h defines the BYTE_ORDER macro.
11781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11782 /* end confdefs.h. */
11783 #include <sys/types.h>
11784 #include <sys/param.h>
11785
11786 int
11787 main ()
11788 {
11789 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
11790 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
11791 && LITTLE_ENDIAN)
11792 bogus endian macros
11793 #endif
11794
11795 ;
11796 return 0;
11797 }
11798 _ACEOF
11799 if ac_fn_c_try_compile "$LINENO"; then :
11800 # It does; now see whether it defined to BIG_ENDIAN or not.
11801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11802 /* end confdefs.h. */
11803 #include <sys/types.h>
11804 #include <sys/param.h>
11805
11806 int
11807 main ()
11808 {
11809 #if BYTE_ORDER != BIG_ENDIAN
11810 not big endian
11811 #endif
11812
11813 ;
11814 return 0;
11815 }
11816 _ACEOF
11817 if ac_fn_c_try_compile "$LINENO"; then :
11818 ac_cv_c_bigendian=yes
11819 else
11820 ac_cv_c_bigendian=no
11821 fi
11822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11823 fi
11824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11825 fi
11826 if test $ac_cv_c_bigendian = unknown; then
11827 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
11828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11829 /* end confdefs.h. */
11830 #include <limits.h>
11831
11832 int
11833 main ()
11834 {
11835 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
11836 bogus endian macros
11837 #endif
11838
11839 ;
11840 return 0;
11841 }
11842 _ACEOF
11843 if ac_fn_c_try_compile "$LINENO"; then :
11844 # It does; now see whether it defined to _BIG_ENDIAN or not.
11845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11846 /* end confdefs.h. */
11847 #include <limits.h>
11848
11849 int
11850 main ()
11851 {
11852 #ifndef _BIG_ENDIAN
11853 not big endian
11854 #endif
11855
11856 ;
11857 return 0;
11858 }
11859 _ACEOF
11860 if ac_fn_c_try_compile "$LINENO"; then :
11861 ac_cv_c_bigendian=yes
11862 else
11863 ac_cv_c_bigendian=no
11864 fi
11865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11866 fi
11867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11868 fi
11869 if test $ac_cv_c_bigendian = unknown; then
11870 # Compile a test program.
11871 if test "$cross_compiling" = yes; then :
11872 # Try to guess by grepping values from an object file.
11873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11874 /* end confdefs.h. */
11875 short int ascii_mm[] =
11876 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
11877 short int ascii_ii[] =
11878 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
11879 int use_ascii (int i) {
11880 return ascii_mm[i] + ascii_ii[i];
11881 }
11882 short int ebcdic_ii[] =
11883 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
11884 short int ebcdic_mm[] =
11885 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
11886 int use_ebcdic (int i) {
11887 return ebcdic_mm[i] + ebcdic_ii[i];
11888 }
11889 extern int foo;
11890
11891 int
11892 main ()
11893 {
11894 return use_ascii (foo) == use_ebcdic (foo);
11895 ;
11896 return 0;
11897 }
11898 _ACEOF
11899 if ac_fn_c_try_compile "$LINENO"; then :
11900 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
11901 ac_cv_c_bigendian=yes
11902 fi
11903 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
11904 if test "$ac_cv_c_bigendian" = unknown; then
11905 ac_cv_c_bigendian=no
11906 else
11907 # finding both strings is unlikely to happen, but who knows?
11908 ac_cv_c_bigendian=unknown
11909 fi
11910 fi
11911 fi
11912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11913 else
11914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11915 /* end confdefs.h. */
11916 $ac_includes_default
11917 int
11918 main ()
11919 {
11920
11921 /* Are we little or big endian? From Harbison&Steele. */
11922 union
11923 {
11924 long int l;
11925 char c[sizeof (long int)];
11926 } u;
11927 u.l = 1;
11928 return u.c[sizeof (long int) - 1] == 1;
11929
11930 ;
11931 return 0;
11932 }
11933 _ACEOF
11934 if ac_fn_c_try_run "$LINENO"; then :
11935 ac_cv_c_bigendian=no
11936 else
11937 ac_cv_c_bigendian=yes
11938 fi
11939 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11940 conftest.$ac_objext conftest.beam conftest.$ac_ext
11941 fi
11942
11943 fi
11944 fi
11945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
11946 $as_echo "$ac_cv_c_bigendian" >&6; }
11947 case $ac_cv_c_bigendian in #(
11948 yes)
11949 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
11950 ;; #(
11951 no)
11952 ;; #(
11953 universal)
11954
11955 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
11956
11957 ;; #(
11958 *)
11959 as_fn_error $? "unknown endianness
11960 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
11961 esac
11962
11963
11964 te_file=generic
11965
11966 # Makefile target for installing gas in $(tooldir)/bin.
11967 install_tooldir=install-exec-tooldir
11968
11969 canon_targets=""
11970 all_targets=no
11971 if test -n "$enable_targets" ; then
11972 for t in `echo $enable_targets | sed 's/,/ /g'`; do
11973 if test $t = "all"; then
11974 all_targets=yes
11975 continue
11976 fi
11977 result=`$ac_config_sub $t 2>/dev/null`
11978 if test -n "$result" ; then
11979 canon_targets="$canon_targets $result"
11980 # else
11981 # # Permit "all", etc. We don't support it yet though.
11982 # canon_targets="$canon_targets $t"
11983 fi
11984 done
11985 _gas_uniq_list="$canon_targets"
11986 _gas_uniq_newlist=""
11987 for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
11988 case $_gas_uniq_i in
11989 _gas_uniq_dummy) ;;
11990 *) case " $_gas_uniq_newlist " in
11991 *" $_gas_uniq_i "*) ;;
11992 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
11993 esac ;;
11994 esac
11995 done
11996 canon_targets=$_gas_uniq_newlist
11997
11998 fi
11999
12000 emulations=""
12001
12002 for this_target in $target $canon_targets ; do
12003
12004 targ=${this_target}
12005 . ${srcdir}/configure.tgt
12006
12007 case ${target_cpu} in
12008 crisv32)
12009
12010 cat >>confdefs.h <<_ACEOF
12011 #define DEFAULT_CRIS_ARCH $arch
12012 _ACEOF
12013
12014 ;;
12015 esac
12016
12017 if test ${this_target} = $target ; then
12018 target_cpu_type=${cpu_type}
12019 elif test ${target_cpu_type} != ${cpu_type} ; then
12020 continue
12021 fi
12022
12023 generic_target=${cpu_type}-${target_vendor}-${target_os}
12024 case ${generic_target} in
12025 i386-*-msdosdjgpp* \
12026 | i386-*-go32* \
12027 | i386-go32-rtems*)
12028
12029 $as_echo "#define STRICTCOFF 1" >>confdefs.h
12030
12031 ;;
12032
12033 i386-*-linux-* | x86_64-*-linux-*)
12034 if test ${this_target} = $target \
12035 && test ${ac_default_generate_x86_used_note} = unset; then
12036 ac_default_generate_x86_used_note=1
12037 fi
12038 ;;
12039
12040 i386-*-solaris2 \
12041 | x86_64-*-solaris2 \
12042 | i386-*-solaris2.[0-9] \
12043 | i386-*-solaris2.1[01] \
12044 | x86_64-*-solaris2.1[01])
12045 if test ${this_target} = $target \
12046 && test ${ac_default_x86_relax_relocations} = unset; then
12047 ac_default_x86_relax_relocations=0
12048 fi
12049 ;;
12050
12051 microblaze*)
12052 ;;
12053
12054 ppc-*-aix[5-9].*)
12055
12056 $as_echo "#define AIX_WEAK_SUPPORT 1" >>confdefs.h
12057
12058 ;;
12059 ppc-*-solaris*)
12060 if test ${this_target} = $target; then
12061
12062 $as_echo "#define TARGET_SOLARIS_COMMENT 1" >>confdefs.h
12063
12064 fi
12065 if test x${endian} = xbig; then
12066 as_fn_error $? "Solaris must be configured little endian" "$LINENO" 5
12067 fi
12068 ;;
12069 esac
12070
12071 if test ${this_target} = $target ; then
12072 endian_def=
12073 if test x${endian} = xbig; then
12074 endian_def=1
12075 elif test x${endian} = xlittle; then
12076 endian_def=0
12077 fi
12078 if test x${endian_def} != x; then
12079
12080 cat >>confdefs.h <<_ACEOF
12081 #define TARGET_BYTES_BIG_ENDIAN $endian_def
12082 _ACEOF
12083
12084 fi
12085 fi
12086
12087 # Other random stuff.
12088
12089 case ${cpu_type} in
12090 mips)
12091 # Set mips_cpu to the name of the default CPU.
12092 case ${target_cpu} in
12093 mips | mipsbe | mipseb | mipsle | mipsel | mips64 | mips64el)
12094 mips_cpu=from-abi
12095 ;;
12096 mipsisa32 | mipsisa32el)
12097 mips_cpu=mips32
12098 ;;
12099 mipsisa32r2 | mipsisa32r2el)
12100 mips_cpu=mips32r2
12101 ;;
12102 mipsisa32r3 | mipsisa32r3el)
12103 mips_cpu=mips32r3
12104 ;;
12105 mipsisa32r5 | mipsisa32r5el)
12106 mips_cpu=mips32r5
12107 ;;
12108 mipsisa32r6 | mipsisa32r6el)
12109 mips_cpu=mips32r6
12110 ;;
12111 mipsisa64 | mipsisa64el)
12112 mips_cpu=mips64
12113 ;;
12114 mipsisa64r2 | mipsisa64r2el)
12115 mips_cpu=mips64r2
12116 ;;
12117 mipsisa64r3 | mipsisa64r3el)
12118 mips_cpu=mips64r3
12119 ;;
12120 mipsisa64r5 | mipsisa64r5el)
12121 mips_cpu=mips64r5
12122 ;;
12123 mipsisa64r6 | mipsisa64r6el)
12124 mips_cpu=mips64r6
12125 ;;
12126 mipstx39 | mipstx39el)
12127 mips_cpu=r3900
12128 ;;
12129 mips64vr | mips64vrel)
12130 mips_cpu=vr4100
12131 ;;
12132 mipsisa32r2* | mipsisa64r2*)
12133 mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..r2//' -e 's/el$//'`
12134 ;;
12135 mipsisa32r6* | mipsisa64r6*)
12136 mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..r6//' -e 's/el$//'`
12137 ;;
12138 mips64* | mipsisa64* | mipsisa32*)
12139 mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..//' -e 's/el$//'`
12140 ;;
12141 mips*)
12142 mips_cpu=`echo $target_cpu | sed -e 's/^mips//' -e 's/el$//'`
12143 ;;
12144 *)
12145 as_fn_error $? "$target_cpu isn't a supported MIPS CPU name" "$LINENO" 5
12146 ;;
12147 esac
12148 # See whether it's appropriate to set E_MIPS_ABI_O32 for o32
12149 # binaries. It's a GNU extension that some OSes don't understand.
12150 case ${target} in
12151 *-*-irix*)
12152 use_e_mips_abi_o32=0
12153 ;;
12154 *)
12155 use_e_mips_abi_o32=1
12156 ;;
12157 esac
12158 # Decide whether to generate 32-bit or 64-bit code by default.
12159 # Used to resolve -march=from-abi when an embedded ABI is selected.
12160 case ${target} in
12161 mips64*-*-* | mipsisa64*-*-*)
12162 mips_default_64bit=1
12163 ;;
12164 *)
12165 mips_default_64bit=0
12166 ;;
12167 esac
12168 # Decide which ABI to target by default.
12169 case ${target} in
12170 mips64*-linux* | mips-sgi-irix6* | mips64*-freebsd* \
12171 | mips64*-kfreebsd*-gnu | mips64*-ps2-elf*)
12172 mips_default_abi=N32_ABI
12173 ;;
12174 mips*-linux* | mips*-freebsd* | mips*-kfreebsd*-gnu)
12175 mips_default_abi=O32_ABI
12176 ;;
12177 mips64*-openbsd*)
12178 mips_default_abi=N64_ABI
12179 ;;
12180 *)
12181 mips_default_abi=NO_ABI
12182 ;;
12183 esac
12184
12185 cat >>confdefs.h <<_ACEOF
12186 #define MIPS_CPU_STRING_DEFAULT "$mips_cpu"
12187 _ACEOF
12188
12189
12190 cat >>confdefs.h <<_ACEOF
12191 #define USE_E_MIPS_ABI_O32 $use_e_mips_abi_o32
12192 _ACEOF
12193
12194
12195 cat >>confdefs.h <<_ACEOF
12196 #define MIPS_DEFAULT_64BIT $mips_default_64bit
12197 _ACEOF
12198
12199
12200 cat >>confdefs.h <<_ACEOF
12201 #define MIPS_DEFAULT_ABI $mips_default_abi
12202 _ACEOF
12203
12204 ;;
12205 esac
12206
12207 # Do we need the opcodes library?
12208 case ${cpu_type} in
12209 vax | tic30)
12210 ;;
12211
12212 *)
12213 need_opcodes=yes
12214
12215 case "${enable_shared}" in
12216 yes) shared_opcodes=true ;;
12217 *opcodes*) shared_opcodes=true ;;
12218 *) shared_opcodes=false ;;
12219 esac
12220 ;;
12221 esac
12222
12223 # Any other special object files needed ?
12224 case ${cpu_type} in
12225
12226 bfin)
12227 for f in config/bfin-parse.o config/bfin-lex-wrapper.o; do
12228 case " $extra_objects " in
12229 *" $f "*) ;;
12230 *) extra_objects="$extra_objects $f" ;;
12231 esac
12232 done
12233 ;;
12234
12235 bpf)
12236 if test $this_target = $target ; then
12237
12238 cat >>confdefs.h <<_ACEOF
12239 #define DEFAULT_ARCH "${arch}"
12240 _ACEOF
12241
12242 fi
12243 using_cgen=yes
12244 ;;
12245 epiphany | fr30 | ip2k | iq2000 | lm32 | m32r | or1k)
12246 using_cgen=yes
12247 ;;
12248
12249 loongarch)
12250 for f in config/loongarch-parse.o config/loongarch-lex-wrapper.o; do
12251 case " $extra_objects " in
12252 *" $f "*) ;;
12253 *) extra_objects="$extra_objects $f" ;;
12254 esac
12255 done
12256 # --target=loongarch[32|64]-*-*. */
12257 if test $this_target = $target ; then
12258
12259 cat >>confdefs.h <<_ACEOF
12260 #define DEFAULT_ARCH "${arch}"
12261 _ACEOF
12262
12263 fi
12264 ;;
12265
12266 m32c)
12267 using_cgen=yes
12268 ;;
12269 frv)
12270 using_cgen=yes
12271 ;;
12272 m68k)
12273 f=config/m68k-parse.o
12274 case " $extra_objects " in
12275 *" $f "*) ;;
12276 *) extra_objects="$extra_objects $f" ;;
12277 esac
12278 ;;
12279
12280 mep)
12281 using_cgen=yes
12282 ;;
12283
12284 mips)
12285 for f in itbl-parse.o itbl-lex-wrapper.o itbl-ops.o; do
12286 case " $extra_objects " in
12287 *" $f "*) ;;
12288 *) extra_objects="$extra_objects $f" ;;
12289 esac
12290 done
12291 ;;
12292
12293 mt)
12294 using_cgen=yes
12295 ;;
12296
12297 nds32)
12298 # setup NDS32_LINUX_TOOLCHAIN definition
12299 if test "linux" = $em; then
12300
12301 $as_echo "#define NDS32_LINUX_TOOLCHAIN 1" >>confdefs.h
12302
12303 else
12304
12305 $as_echo "#define NDS32_LINUX_TOOLCHAIN 0" >>confdefs.h
12306
12307 fi
12308
12309 # Decide BASELINE, REDUCED_REGS, FPU_DP_EXT, FPU_SP_EXT features
12310 # based on arch_name.
12311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --with-arch" >&5
12312 $as_echo_n "checking for default configuration of --with-arch... " >&6; }
12313 if test "x${with_arch}" != x; then
12314 case ${with_arch} in
12315 v2j | v2s | v2f | v2 | v3m | v3j | v3s | v3f | v3 )
12316
12317 cat >>confdefs.h <<_ACEOF
12318 #define NDS32_DEFAULT_ARCH_NAME "$with_arch"
12319 _ACEOF
12320
12321 ;;
12322 *)
12323 as_fn_error $? "This kind of arch name does *NOT* exist!" "$LINENO" 5
12324 ;;
12325 esac
12326 fi
12327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_arch" >&5
12328 $as_echo "$with_arch" >&6; }
12329
12330 # Decide features one by one.
12331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --enable-dx-regs" >&5
12332 $as_echo_n "checking for default configuration of --enable-dx-regs... " >&6; }
12333 if test "x${enable_dx_regs}" = xyes; then
12334
12335 $as_echo "#define NDS32_DEFAULT_DX_REGS 1" >>confdefs.h
12336
12337 else
12338
12339 $as_echo "#define NDS32_DEFAULT_DX_REGS 0" >>confdefs.h
12340
12341 fi
12342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_dx_regs" >&5
12343 $as_echo "$enable_dx_regs" >&6; }
12344
12345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --enable-perf-ext" >&5
12346 $as_echo_n "checking for default configuration of --enable-perf-ext... " >&6; }
12347 if test "x${enable_perf_ext}" = xno; then
12348
12349 $as_echo "#define NDS32_DEFAULT_PERF_EXT 0" >>confdefs.h
12350
12351 else
12352
12353 $as_echo "#define NDS32_DEFAULT_PERF_EXT 1" >>confdefs.h
12354
12355 fi
12356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_perf_ext" >&5
12357 $as_echo "$enable_perf_ext" >&6; }
12358
12359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --enable-perf-ext2" >&5
12360 $as_echo_n "checking for default configuration of --enable-perf-ext2... " >&6; }
12361 if test "x${enable_perf_ext2}" = xno; then
12362
12363 $as_echo "#define NDS32_DEFAULT_PERF_EXT2 0" >>confdefs.h
12364
12365 else
12366
12367 $as_echo "#define NDS32_DEFAULT_PERF_EXT2 1" >>confdefs.h
12368
12369 fi
12370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_perf_ext2" >&5
12371 $as_echo "$enable_perf_ext2" >&6; }
12372
12373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --enable-string-ext" >&5
12374 $as_echo_n "checking for default configuration of --enable-string-ext... " >&6; }
12375 if test "x${enable_string_ext}" = xno; then
12376
12377 $as_echo "#define NDS32_DEFAULT_STRING_EXT 0" >>confdefs.h
12378
12379 else
12380
12381 $as_echo "#define NDS32_DEFAULT_STRING_EXT 1" >>confdefs.h
12382
12383 fi
12384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_string_ext" >&5
12385 $as_echo "$enable_string_ext" >&6; }
12386
12387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --enable-audio-ext" >&5
12388 $as_echo_n "checking for default configuration of --enable-audio-ext... " >&6; }
12389 if test "x${enable_audio_ext}" = xno; then
12390
12391 $as_echo "#define NDS32_DEFAULT_AUDIO_EXT 0" >>confdefs.h
12392
12393 else
12394
12395 $as_echo "#define NDS32_DEFAULT_AUDIO_EXT 1" >>confdefs.h
12396
12397 fi
12398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_audio_ext" >&5
12399 $as_echo "$enable_audio_ext" >&6; }
12400
12401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --enable-dsp-ext" >&5
12402 $as_echo_n "checking for default configuration of --enable-dsp-ext... " >&6; }
12403 if test "x${enable_dsp_ext}" = xno; then
12404
12405 $as_echo "#define NDS32_DEFAULT_DSP_EXT 0" >>confdefs.h
12406
12407 else
12408
12409 $as_echo "#define NDS32_DEFAULT_DSP_EXT 1" >>confdefs.h
12410
12411 fi
12412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_dsp_ext" >&5
12413 $as_echo "$enable_dsp_ext" >&6; }
12414
12415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --enable-zol-ext" >&5
12416 $as_echo_n "checking for default configuration of --enable-zol-ext... " >&6; }
12417 if test "x${enable_zol_ext}" = xno; then
12418
12419 $as_echo "#define NDS32_DEFAULT_ZOL_EXT 0" >>confdefs.h
12420
12421 else
12422
12423 $as_echo "#define NDS32_DEFAULT_ZOL_EXT 1" >>confdefs.h
12424
12425 fi
12426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_zol_ext" >&5
12427 $as_echo "$enable_zol_ext" >&6; }
12428 ;;
12429
12430 aarch64 | i386 | s390 | sparc)
12431 if test $this_target = $target ; then
12432
12433 cat >>confdefs.h <<_ACEOF
12434 #define DEFAULT_ARCH "${arch}"
12435 _ACEOF
12436
12437 fi
12438 ;;
12439
12440 riscv)
12441 # --target=riscv[32|64]-*-*. */
12442 if test $this_target = $target ; then
12443
12444 cat >>confdefs.h <<_ACEOF
12445 #define DEFAULT_ARCH "${arch}"
12446 _ACEOF
12447
12448 fi
12449
12450 # --with-arch=<value>. The syntax of <value> is same as Gas option -march.
12451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --with-arch" >&5
12452 $as_echo_n "checking for default configuration of --with-arch... " >&6; }
12453 if test "x${with_arch}" != x; then
12454
12455 cat >>confdefs.h <<_ACEOF
12456 #define DEFAULT_RISCV_ARCH_WITH_EXT "$with_arch"
12457 _ACEOF
12458
12459 fi
12460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_arch" >&5
12461 $as_echo "$with_arch" >&6; }
12462
12463 # --with-isa-spec=[2.2|20190608|20191213].
12464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --with-isa-spec" >&5
12465 $as_echo_n "checking for default configuration of --with-isa-spec... " >&6; }
12466 if test "x${with_isa_spec}" != x; then
12467
12468 cat >>confdefs.h <<_ACEOF
12469 #define DEFAULT_RISCV_ISA_SPEC "$with_isa_spec"
12470 _ACEOF
12471
12472 fi
12473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_isa_spec" >&5
12474 $as_echo "$with_isa_spec" >&6; }
12475
12476 # --with-priv-spec=[1.9|1.9.1|1.10|1.11|1.12].
12477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --with-priv-spec" >&5
12478 $as_echo_n "checking for default configuration of --with-priv-spec... " >&6; }
12479 if test "x${with_priv_spec}" != x; then
12480
12481 cat >>confdefs.h <<_ACEOF
12482 #define DEFAULT_RISCV_PRIV_SPEC "$with_priv_spec"
12483 _ACEOF
12484
12485 fi
12486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_priv_spec" >&5
12487 $as_echo "$with_priv_spec" >&6; }
12488 ;;
12489
12490 rl78)
12491 f=config/rl78-parse.o
12492 case " $extra_objects " in
12493 *" $f "*) ;;
12494 *) extra_objects="$extra_objects $f" ;;
12495 esac
12496 ;;
12497
12498 rx)
12499 f=config/rx-parse.o
12500 case " $extra_objects " in
12501 *" $f "*) ;;
12502 *) extra_objects="$extra_objects $f" ;;
12503 esac
12504 ;;
12505
12506 xstormy16)
12507 using_cgen=yes
12508 ;;
12509
12510 xc16x)
12511 using_cgen=yes
12512 ;;
12513
12514 xtensa)
12515 f=config/xtensa-relax.o
12516 case " $extra_objects " in
12517 *" $f "*) ;;
12518 *) extra_objects="$extra_objects $f" ;;
12519 esac
12520 ;;
12521
12522 *)
12523 ;;
12524 esac
12525
12526 if test $using_cgen = yes ; then
12527 f=cgen.o
12528 case " $extra_objects " in
12529 *" $f "*) ;;
12530 *) extra_objects="$extra_objects $f" ;;
12531 esac
12532 fi
12533
12534 # See if we really can support this configuration with the emulation code.
12535
12536 if test $this_target = $target ; then
12537 obj_format=$fmt
12538 te_file=$em
12539 fi
12540
12541 case ${te_file} in
12542 vms)
12543 f=config/te-vms.o
12544 case " $extra_objects " in
12545 *" $f "*) ;;
12546 *) extra_objects="$extra_objects $f" ;;
12547 esac ;;
12548 esac
12549
12550 # From target name and format, produce a list of supported emulations.
12551
12552 case ${generic_target}-${fmt} in
12553 mips-*-*-*) case "$endian" in
12554 big) emulation="mipsbelf mipslelf mipself" ;;
12555 *) emulation="mipslelf mipsbelf mipself" ;;
12556 esac ;;
12557 # i386-pc-pe-coff != i386-pc-coff.
12558 i386-*-pe-coff) ;;
12559 # Uncommenting the next line will turn on support for i386 AOUT
12560 # for the default linux configuration
12561 # i386-*-linux*-elf) emulation="i386elf i386aout" ;;
12562 #
12563 i386-*-aout) emulation="i386aout" ;;
12564 i386-*-coff) emulation="i386coff" ;;
12565 i386-*-elf) emulation="i386elf" ;;
12566
12567 # Always all formats. The first stated emulation becomes the default.
12568 cris-*-*aout*) emulation="crisaout criself" ;;
12569 cris-*-*) emulation="criself crisaout" ;;
12570 esac
12571
12572 emulations="$emulations $emulation"
12573
12574 done
12575
12576 if test ${ac_default_x86_relax_relocations} = unset; then
12577 ac_default_x86_relax_relocations=1
12578 fi
12579
12580 cat >>confdefs.h <<_ACEOF
12581 #define DEFAULT_GENERATE_X86_RELAX_RELOCATIONS $ac_default_x86_relax_relocations
12582 _ACEOF
12583
12584
12585 if test ${ac_default_elf_stt_common} = unset; then
12586 ac_default_elf_stt_common=0
12587 fi
12588
12589 cat >>confdefs.h <<_ACEOF
12590 #define DEFAULT_GENERATE_ELF_STT_COMMON $ac_default_elf_stt_common
12591 _ACEOF
12592
12593
12594
12595 cat >>confdefs.h <<_ACEOF
12596 #define DEFAULT_GENERATE_BUILD_NOTES $ac_default_generate_build_notes
12597 _ACEOF
12598
12599
12600 if test ${ac_default_generate_x86_used_note} = unset; then
12601 ac_default_generate_x86_used_note=0
12602 fi
12603
12604 cat >>confdefs.h <<_ACEOF
12605 #define DEFAULT_X86_USED_NOTE $ac_default_generate_x86_used_note
12606 _ACEOF
12607
12608
12609 if test ${ac_default_generate_riscv_attr} = unset; then
12610 ac_default_generate_riscv_attr=1
12611 fi
12612
12613
12614 cat >>confdefs.h <<_ACEOF
12615 #define DEFAULT_RISCV_ATTR $ac_default_generate_riscv_attr
12616 _ACEOF
12617
12618
12619 if test ${ac_default_mips_fix_loongson3_llsc} = unset; then
12620 ac_default_mips_fix_loongson3_llsc=0
12621 fi
12622
12623 cat >>confdefs.h <<_ACEOF
12624 #define DEFAULT_MIPS_FIX_LOONGSON3_LLSC $ac_default_mips_fix_loongson3_llsc
12625 _ACEOF
12626
12627
12628 if test x$ac_default_compressed_debug_sections = xyes ; then
12629
12630 $as_echo "#define DEFAULT_FLAG_COMPRESS_DEBUG 1" >>confdefs.h
12631
12632 fi
12633
12634 # Turn on all targets if possible
12635 if test ${all_targets} = "yes"; then
12636 case ${target_cpu_type} in
12637 i386)
12638 case ${obj_format} in
12639 aout)
12640 emulations="$emulations i386coff i386elf"
12641 ;;
12642 coff)
12643 emulations="$emulations i386aout i386elf"
12644 ;;
12645 elf)
12646 emulations="$emulations i386aout i386coff"
12647 ;;
12648 esac
12649 ;;
12650 x86_64)
12651 case ${obj_format} in
12652 aout)
12653 emulations="$emulations i386coff i386elf"
12654 ;;
12655 coff)
12656 emulations="$emulations i386aout i386elf"
12657 ;;
12658 elf)
12659 emulations="$emulations i386aout i386coff"
12660 ;;
12661 esac
12662 ;;
12663 esac
12664 fi
12665
12666 # PE code has way too many macros tweaking behaviour
12667 case ${te_file} in
12668 pe*) emulations="" ;;
12669 esac
12670
12671 # Assign floating point type. Most processors with FP support
12672 # IEEE FP. On those that don't support FP at all, usually IEEE
12673 # is emulated.
12674 case ${target_cpu} in
12675 vax | pdp11 ) atof=vax ;;
12676 *) atof=ieee ;;
12677 esac
12678
12679 case "${obj_format}" in
12680 "") as_fn_error $? "GAS does not know what format to use for target ${target}" "$LINENO" 5 ;;
12681 esac
12682
12683 # Unfortunately the cpu in cpu-opc.h file isn't always $(TARGET_CPU).
12684 cgen_cpu_prefix=""
12685 if test $using_cgen = yes ; then
12686 case ${target_cpu} in
12687 or1knd)
12688 cgen_cpu_prefix=or1k ;;
12689 *) cgen_cpu_prefix=${target_cpu} ;;
12690 esac
12691
12692
12693 $as_echo "#define USING_CGEN 1" >>confdefs.h
12694
12695 fi
12696
12697
12698 if test ! -r ${srcdir}/config/tc-${target_cpu_type}.c; then
12699 as_fn_error $? "GAS does not support target CPU ${target_cpu_type}" "$LINENO" 5
12700 fi
12701
12702 if test ! -r ${srcdir}/config/obj-${obj_format}.c; then
12703 as_fn_error $? "GAS does not have support for object file format ${obj_format}" "$LINENO" 5
12704 fi
12705
12706 # Some COFF configurations want these random other flags set.
12707 case ${obj_format} in
12708 coff)
12709 case ${target_cpu_type} in
12710 i386)
12711 $as_echo "#define I386COFF 1" >>confdefs.h
12712 ;;
12713 x86_64)
12714 $as_echo "#define I386COFF 1" >>confdefs.h
12715 ;;
12716 esac
12717 ;;
12718 esac
12719
12720 # Getting this done right is going to be a bitch. Each configuration specified
12721 # with --enable-targets=... should be checked for environment, format, cpu
12722 # setting.
12723 #
12724 # For each configuration, the necessary object file support code must be linked
12725 # in. This might be only one, it might be up to four. The necessary emulation
12726 # code needs to be provided, too.
12727 #
12728 # And then there's "--enable-targets=all"....
12729 #
12730 # For now, just always do it for MIPS ELF configurations. Sigh.
12731
12732 formats="${obj_format}"
12733 emfiles=""
12734 EMULATIONS=""
12735 _gas_uniq_list="$emulations"
12736 _gas_uniq_newlist=""
12737 for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
12738 case $_gas_uniq_i in
12739 _gas_uniq_dummy) ;;
12740 *) case " $_gas_uniq_newlist " in
12741 *" $_gas_uniq_i "*) ;;
12742 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
12743 esac ;;
12744 esac
12745 done
12746 emulations=$_gas_uniq_newlist
12747
12748 for em in . $emulations ; do
12749 case $em in
12750 .) continue ;;
12751 mipsbelf | mipslelf | mipself)
12752 fmt=elf file=mipself ;;
12753 *coff)
12754 fmt=coff file=$em ;;
12755 *aout)
12756 fmt=aout file=$em ;;
12757 *elf)
12758 fmt=elf file=$em ;;
12759 esac
12760 formats="$formats $fmt"
12761 emfiles="$emfiles config/e-$file.o"
12762 EMULATIONS="$EMULATIONS &$em,"
12763 done
12764 _gas_uniq_list="$formats"
12765 _gas_uniq_newlist=""
12766 for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
12767 case $_gas_uniq_i in
12768 _gas_uniq_dummy) ;;
12769 *) case " $_gas_uniq_newlist " in
12770 *" $_gas_uniq_i "*) ;;
12771 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
12772 esac ;;
12773 esac
12774 done
12775 formats=$_gas_uniq_newlist
12776
12777 _gas_uniq_list="$emfiles"
12778 _gas_uniq_newlist=""
12779 for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
12780 case $_gas_uniq_i in
12781 _gas_uniq_dummy) ;;
12782 *) case " $_gas_uniq_newlist " in
12783 *" $_gas_uniq_i "*) ;;
12784 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
12785 esac ;;
12786 esac
12787 done
12788 emfiles=$_gas_uniq_newlist
12789
12790 if test `set . $formats ; shift ; echo $#` -gt 1 ; then
12791 for fmt in $formats ; do
12792 case $fmt in
12793 aout)
12794 $as_echo "#define OBJ_MAYBE_AOUT 1" >>confdefs.h
12795 ;;
12796 coff)
12797 $as_echo "#define OBJ_MAYBE_COFF 1" >>confdefs.h
12798 ;;
12799 ecoff)
12800 $as_echo "#define OBJ_MAYBE_ECOFF 1" >>confdefs.h
12801 ;;
12802 elf)
12803 $as_echo "#define OBJ_MAYBE_ELF 1" >>confdefs.h
12804 ;;
12805 generic)
12806 $as_echo "#define OBJ_MAYBE_GENERIC 1" >>confdefs.h
12807 ;;
12808 som)
12809 $as_echo "#define OBJ_MAYBE_SOM 1" >>confdefs.h
12810 ;;
12811 esac
12812 extra_objects="$extra_objects config/obj-$fmt.o"
12813 done
12814 obj_format=multi
12815 fi
12816 if test `set . $emfiles ; shift ; echo $#` -gt 0 ; then
12817 DEFAULT_EMULATION=`set . $emulations ; echo $2`
12818 # e-mipself has more than one emulation per file, e-i386* has just one at the
12819 # moment. If only one emulation is specified, then don't define
12820 # USE_EMULATIONS or include any of the e-files as they will only be bloat.
12821 case "${obj_format}${emfiles}" in
12822 multi* | *mipself*)
12823 extra_objects="$extra_objects $emfiles"
12824
12825 $as_echo "#define USE_EMULATIONS 1" >>confdefs.h
12826 ;;
12827 esac
12828 fi
12829
12830
12831 cat >>confdefs.h <<_ACEOF
12832 #define EMULATIONS $EMULATIONS
12833 _ACEOF
12834
12835
12836 cat >>confdefs.h <<_ACEOF
12837 #define DEFAULT_EMULATION "$DEFAULT_EMULATION"
12838 _ACEOF
12839
12840
12841 reject_dev_configs=yes
12842
12843 case ${reject_dev_configs}-${dev} in
12844 yes-yes) # Oops.
12845 as_fn_error $? "GAS does not support the ${generic_target} configuration." "$LINENO" 5
12846 ;;
12847 esac
12848
12849
12850
12851
12852
12853
12854
12855 # do we need the opcodes library?
12856 case "${need_opcodes}" in
12857 yes)
12858 OPCODES_LIB=../opcodes/libopcodes.la
12859 ;;
12860 esac
12861
12862
12863
12864
12865 cat >>confdefs.h <<_ACEOF
12866 #define TARGET_ALIAS "${target_alias}"
12867 _ACEOF
12868
12869
12870 cat >>confdefs.h <<_ACEOF
12871 #define TARGET_CANONICAL "${target}"
12872 _ACEOF
12873
12874
12875 cat >>confdefs.h <<_ACEOF
12876 #define TARGET_CPU "${target_cpu}"
12877 _ACEOF
12878
12879
12880 cat >>confdefs.h <<_ACEOF
12881 #define TARGET_VENDOR "${target_vendor}"
12882 _ACEOF
12883
12884
12885 cat >>confdefs.h <<_ACEOF
12886 #define TARGET_OS "${target_os}"
12887 _ACEOF
12888
12889
12890 for ac_prog in 'bison -y' byacc
12891 do
12892 # Extract the first word of "$ac_prog", so it can be a program name with args.
12893 set dummy $ac_prog; ac_word=$2
12894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12895 $as_echo_n "checking for $ac_word... " >&6; }
12896 if ${ac_cv_prog_YACC+:} false; then :
12897 $as_echo_n "(cached) " >&6
12898 else
12899 if test -n "$YACC"; then
12900 ac_cv_prog_YACC="$YACC" # Let the user override the test.
12901 else
12902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12903 for as_dir in $PATH
12904 do
12905 IFS=$as_save_IFS
12906 test -z "$as_dir" && as_dir=.
12907 for ac_exec_ext in '' $ac_executable_extensions; do
12908 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12909 ac_cv_prog_YACC="$ac_prog"
12910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12911 break 2
12912 fi
12913 done
12914 done
12915 IFS=$as_save_IFS
12916
12917 fi
12918 fi
12919 YACC=$ac_cv_prog_YACC
12920 if test -n "$YACC"; then
12921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
12922 $as_echo "$YACC" >&6; }
12923 else
12924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12925 $as_echo "no" >&6; }
12926 fi
12927
12928
12929 test -n "$YACC" && break
12930 done
12931 test -n "$YACC" || YACC="yacc"
12932
12933 for ac_prog in flex lex
12934 do
12935 # Extract the first word of "$ac_prog", so it can be a program name with args.
12936 set dummy $ac_prog; ac_word=$2
12937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12938 $as_echo_n "checking for $ac_word... " >&6; }
12939 if ${ac_cv_prog_LEX+:} false; then :
12940 $as_echo_n "(cached) " >&6
12941 else
12942 if test -n "$LEX"; then
12943 ac_cv_prog_LEX="$LEX" # Let the user override the test.
12944 else
12945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12946 for as_dir in $PATH
12947 do
12948 IFS=$as_save_IFS
12949 test -z "$as_dir" && as_dir=.
12950 for ac_exec_ext in '' $ac_executable_extensions; do
12951 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12952 ac_cv_prog_LEX="$ac_prog"
12953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12954 break 2
12955 fi
12956 done
12957 done
12958 IFS=$as_save_IFS
12959
12960 fi
12961 fi
12962 LEX=$ac_cv_prog_LEX
12963 if test -n "$LEX"; then
12964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
12965 $as_echo "$LEX" >&6; }
12966 else
12967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12968 $as_echo "no" >&6; }
12969 fi
12970
12971
12972 test -n "$LEX" && break
12973 done
12974 test -n "$LEX" || LEX=":"
12975
12976 case "$LEX" in
12977 :|*"missing "*) ;;
12978 *) cat >conftest.l <<_ACEOF
12979 %%
12980 a { ECHO; }
12981 b { REJECT; }
12982 c { yymore (); }
12983 d { yyless (1); }
12984 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
12985 yyless ((input () != 0)); }
12986 f { unput (yytext[0]); }
12987 . { BEGIN INITIAL; }
12988 %%
12989 #ifdef YYTEXT_POINTER
12990 extern char *yytext;
12991 #endif
12992 int
12993 main (void)
12994 {
12995 return ! yylex () + ! yywrap ();
12996 }
12997 _ACEOF
12998 { { ac_try="$LEX conftest.l"
12999 case "(($ac_try" in
13000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13001 *) ac_try_echo=$ac_try;;
13002 esac
13003 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13004 $as_echo "$ac_try_echo"; } >&5
13005 (eval "$LEX conftest.l") 2>&5
13006 ac_status=$?
13007 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13008 test $ac_status = 0; }
13009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
13010 $as_echo_n "checking lex output file root... " >&6; }
13011 if ${ac_cv_prog_lex_root+:} false; then :
13012 $as_echo_n "(cached) " >&6
13013 else
13014
13015 if test -f lex.yy.c; then
13016 ac_cv_prog_lex_root=lex.yy
13017 elif test -f lexyy.c; then
13018 ac_cv_prog_lex_root=lexyy
13019 else
13020 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
13021 fi
13022 fi
13023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
13024 $as_echo "$ac_cv_prog_lex_root" >&6; }
13025 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
13026
13027 if test -z "${LEXLIB+set}"; then
13028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
13029 $as_echo_n "checking lex library... " >&6; }
13030 if ${ac_cv_lib_lex+:} false; then :
13031 $as_echo_n "(cached) " >&6
13032 else
13033
13034 ac_save_LIBS=$LIBS
13035 ac_cv_lib_lex='none needed'
13036 for ac_lib in '' -lfl -ll; do
13037 LIBS="$ac_lib $ac_save_LIBS"
13038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13039 /* end confdefs.h. */
13040 `cat $LEX_OUTPUT_ROOT.c`
13041 _ACEOF
13042 if ac_fn_c_try_link "$LINENO"; then :
13043 ac_cv_lib_lex=$ac_lib
13044 fi
13045 rm -f core conftest.err conftest.$ac_objext \
13046 conftest$ac_exeext conftest.$ac_ext
13047 test "$ac_cv_lib_lex" != 'none needed' && break
13048 done
13049 LIBS=$ac_save_LIBS
13050
13051 fi
13052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
13053 $as_echo "$ac_cv_lib_lex" >&6; }
13054 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
13055 fi
13056
13057
13058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
13059 $as_echo_n "checking whether yytext is a pointer... " >&6; }
13060 if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
13061 $as_echo_n "(cached) " >&6
13062 else
13063 # POSIX says lex can declare yytext either as a pointer or an array; the
13064 # default is implementation-dependent. Figure out which it is, since
13065 # not all implementations provide the %pointer and %array declarations.
13066 ac_cv_prog_lex_yytext_pointer=no
13067 ac_save_LIBS=$LIBS
13068 LIBS="$LEXLIB $ac_save_LIBS"
13069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13070 /* end confdefs.h. */
13071
13072 #define YYTEXT_POINTER 1
13073 `cat $LEX_OUTPUT_ROOT.c`
13074 _ACEOF
13075 if ac_fn_c_try_link "$LINENO"; then :
13076 ac_cv_prog_lex_yytext_pointer=yes
13077 fi
13078 rm -f core conftest.err conftest.$ac_objext \
13079 conftest$ac_exeext conftest.$ac_ext
13080 LIBS=$ac_save_LIBS
13081
13082 fi
13083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
13084 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
13085 if test $ac_cv_prog_lex_yytext_pointer = yes; then
13086
13087 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
13088
13089 fi
13090 rm -f conftest.l $LEX_OUTPUT_ROOT.c
13091 ;;
13092 esac
13093 if test "$LEX" = :; then
13094 LEX=${am_missing_run}flex
13095 fi
13096
13097 ALL_LINGUAS="es fi fr id ja ru rw sv tr uk zh_CN"
13098 # If we haven't got the data from the intl directory,
13099 # assume NLS is disabled.
13100 USE_NLS=no
13101 LIBINTL=
13102 LIBINTL_DEP=
13103 INCINTL=
13104 XGETTEXT=
13105 GMSGFMT=
13106 POSUB=
13107
13108 if test -f ../intl/config.intl; then
13109 . ../intl/config.intl
13110 fi
13111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
13112 $as_echo_n "checking whether NLS is requested... " >&6; }
13113 if test x"$USE_NLS" != xyes; then
13114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13115 $as_echo "no" >&6; }
13116 else
13117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13118 $as_echo "yes" >&6; }
13119
13120 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
13121
13122
13123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
13124 $as_echo_n "checking for catalogs to be installed... " >&6; }
13125 # Look for .po and .gmo files in the source directory.
13126 CATALOGS=
13127 XLINGUAS=
13128 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
13129 # If there aren't any .gmo files the shell will give us the
13130 # literal string "../path/to/srcdir/po/*.gmo" which has to be
13131 # weeded out.
13132 case "$cat" in *\**)
13133 continue;;
13134 esac
13135 # The quadruple backslash is collapsed to a double backslash
13136 # by the backticks, then collapsed again by the double quotes,
13137 # leaving us with one backslash in the sed expression (right
13138 # before the dot that mustn't act as a wildcard).
13139 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
13140 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
13141 # The user is allowed to set LINGUAS to a list of languages to
13142 # install catalogs for. If it's empty that means "all of them."
13143 if test "x$LINGUAS" = x; then
13144 CATALOGS="$CATALOGS $cat"
13145 XLINGUAS="$XLINGUAS $lang"
13146 else
13147 case "$LINGUAS" in *$lang*)
13148 CATALOGS="$CATALOGS $cat"
13149 XLINGUAS="$XLINGUAS $lang"
13150 ;;
13151 esac
13152 fi
13153 done
13154 LINGUAS="$XLINGUAS"
13155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
13156 $as_echo "$LINGUAS" >&6; }
13157
13158
13159 DATADIRNAME=share
13160
13161 INSTOBJEXT=.mo
13162
13163 GENCAT=gencat
13164
13165 CATOBJEXT=.gmo
13166
13167 fi
13168
13169 MKINSTALLDIRS=
13170 if test -n "$ac_aux_dir"; then
13171 case "$ac_aux_dir" in
13172 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
13173 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
13174 esac
13175 fi
13176 if test -z "$MKINSTALLDIRS"; then
13177 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
13178 fi
13179
13180
13181
13182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
13183 $as_echo_n "checking whether NLS is requested... " >&6; }
13184 # Check whether --enable-nls was given.
13185 if test "${enable_nls+set}" = set; then :
13186 enableval=$enable_nls; USE_NLS=$enableval
13187 else
13188 USE_NLS=yes
13189 fi
13190
13191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
13192 $as_echo "$USE_NLS" >&6; }
13193
13194
13195
13196
13197
13198
13199 # Prepare PATH_SEPARATOR.
13200 # The user is always right.
13201 if test "${PATH_SEPARATOR+set}" != set; then
13202 echo "#! /bin/sh" >conf$$.sh
13203 echo "exit 0" >>conf$$.sh
13204 chmod +x conf$$.sh
13205 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13206 PATH_SEPARATOR=';'
13207 else
13208 PATH_SEPARATOR=:
13209 fi
13210 rm -f conf$$.sh
13211 fi
13212
13213 # Find out how to test for executable files. Don't use a zero-byte file,
13214 # as systems may use methods other than mode bits to determine executability.
13215 cat >conf$$.file <<_ASEOF
13216 #! /bin/sh
13217 exit 0
13218 _ASEOF
13219 chmod +x conf$$.file
13220 if test -x conf$$.file >/dev/null 2>&1; then
13221 ac_executable_p="test -x"
13222 else
13223 ac_executable_p="test -f"
13224 fi
13225 rm -f conf$$.file
13226
13227 # Extract the first word of "msgfmt", so it can be a program name with args.
13228 set dummy msgfmt; ac_word=$2
13229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13230 $as_echo_n "checking for $ac_word... " >&6; }
13231 if ${ac_cv_path_MSGFMT+:} false; then :
13232 $as_echo_n "(cached) " >&6
13233 else
13234 case "$MSGFMT" in
13235 [\\/]* | ?:[\\/]*)
13236 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
13237 ;;
13238 *)
13239 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13240 for ac_dir in $PATH; do
13241 IFS="$ac_save_IFS"
13242 test -z "$ac_dir" && ac_dir=.
13243 for ac_exec_ext in '' $ac_executable_extensions; do
13244 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13245 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
13246 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
13247 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
13248 break 2
13249 fi
13250 fi
13251 done
13252 done
13253 IFS="$ac_save_IFS"
13254 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
13255 ;;
13256 esac
13257 fi
13258 MSGFMT="$ac_cv_path_MSGFMT"
13259 if test "$MSGFMT" != ":"; then
13260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
13261 $as_echo "$MSGFMT" >&6; }
13262 else
13263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13264 $as_echo "no" >&6; }
13265 fi
13266
13267 # Extract the first word of "gmsgfmt", so it can be a program name with args.
13268 set dummy gmsgfmt; ac_word=$2
13269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13270 $as_echo_n "checking for $ac_word... " >&6; }
13271 if ${ac_cv_path_GMSGFMT+:} false; then :
13272 $as_echo_n "(cached) " >&6
13273 else
13274 case $GMSGFMT in
13275 [\\/]* | ?:[\\/]*)
13276 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
13277 ;;
13278 *)
13279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13280 for as_dir in $PATH
13281 do
13282 IFS=$as_save_IFS
13283 test -z "$as_dir" && as_dir=.
13284 for ac_exec_ext in '' $ac_executable_extensions; do
13285 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13286 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
13287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13288 break 2
13289 fi
13290 done
13291 done
13292 IFS=$as_save_IFS
13293
13294 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
13295 ;;
13296 esac
13297 fi
13298 GMSGFMT=$ac_cv_path_GMSGFMT
13299 if test -n "$GMSGFMT"; then
13300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
13301 $as_echo "$GMSGFMT" >&6; }
13302 else
13303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13304 $as_echo "no" >&6; }
13305 fi
13306
13307
13308
13309
13310 # Prepare PATH_SEPARATOR.
13311 # The user is always right.
13312 if test "${PATH_SEPARATOR+set}" != set; then
13313 echo "#! /bin/sh" >conf$$.sh
13314 echo "exit 0" >>conf$$.sh
13315 chmod +x conf$$.sh
13316 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13317 PATH_SEPARATOR=';'
13318 else
13319 PATH_SEPARATOR=:
13320 fi
13321 rm -f conf$$.sh
13322 fi
13323
13324 # Find out how to test for executable files. Don't use a zero-byte file,
13325 # as systems may use methods other than mode bits to determine executability.
13326 cat >conf$$.file <<_ASEOF
13327 #! /bin/sh
13328 exit 0
13329 _ASEOF
13330 chmod +x conf$$.file
13331 if test -x conf$$.file >/dev/null 2>&1; then
13332 ac_executable_p="test -x"
13333 else
13334 ac_executable_p="test -f"
13335 fi
13336 rm -f conf$$.file
13337
13338 # Extract the first word of "xgettext", so it can be a program name with args.
13339 set dummy xgettext; ac_word=$2
13340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13341 $as_echo_n "checking for $ac_word... " >&6; }
13342 if ${ac_cv_path_XGETTEXT+:} false; then :
13343 $as_echo_n "(cached) " >&6
13344 else
13345 case "$XGETTEXT" in
13346 [\\/]* | ?:[\\/]*)
13347 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
13348 ;;
13349 *)
13350 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13351 for ac_dir in $PATH; do
13352 IFS="$ac_save_IFS"
13353 test -z "$ac_dir" && ac_dir=.
13354 for ac_exec_ext in '' $ac_executable_extensions; do
13355 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13356 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
13357 (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
13358 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
13359 break 2
13360 fi
13361 fi
13362 done
13363 done
13364 IFS="$ac_save_IFS"
13365 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
13366 ;;
13367 esac
13368 fi
13369 XGETTEXT="$ac_cv_path_XGETTEXT"
13370 if test "$XGETTEXT" != ":"; then
13371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
13372 $as_echo "$XGETTEXT" >&6; }
13373 else
13374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13375 $as_echo "no" >&6; }
13376 fi
13377
13378 rm -f messages.po
13379
13380
13381 # Prepare PATH_SEPARATOR.
13382 # The user is always right.
13383 if test "${PATH_SEPARATOR+set}" != set; then
13384 echo "#! /bin/sh" >conf$$.sh
13385 echo "exit 0" >>conf$$.sh
13386 chmod +x conf$$.sh
13387 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13388 PATH_SEPARATOR=';'
13389 else
13390 PATH_SEPARATOR=:
13391 fi
13392 rm -f conf$$.sh
13393 fi
13394
13395 # Find out how to test for executable files. Don't use a zero-byte file,
13396 # as systems may use methods other than mode bits to determine executability.
13397 cat >conf$$.file <<_ASEOF
13398 #! /bin/sh
13399 exit 0
13400 _ASEOF
13401 chmod +x conf$$.file
13402 if test -x conf$$.file >/dev/null 2>&1; then
13403 ac_executable_p="test -x"
13404 else
13405 ac_executable_p="test -f"
13406 fi
13407 rm -f conf$$.file
13408
13409 # Extract the first word of "msgmerge", so it can be a program name with args.
13410 set dummy msgmerge; ac_word=$2
13411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13412 $as_echo_n "checking for $ac_word... " >&6; }
13413 if ${ac_cv_path_MSGMERGE+:} false; then :
13414 $as_echo_n "(cached) " >&6
13415 else
13416 case "$MSGMERGE" in
13417 [\\/]* | ?:[\\/]*)
13418 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
13419 ;;
13420 *)
13421 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13422 for ac_dir in $PATH; do
13423 IFS="$ac_save_IFS"
13424 test -z "$ac_dir" && ac_dir=.
13425 for ac_exec_ext in '' $ac_executable_extensions; do
13426 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13427 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
13428 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
13429 break 2
13430 fi
13431 fi
13432 done
13433 done
13434 IFS="$ac_save_IFS"
13435 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
13436 ;;
13437 esac
13438 fi
13439 MSGMERGE="$ac_cv_path_MSGMERGE"
13440 if test "$MSGMERGE" != ":"; then
13441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
13442 $as_echo "$MSGMERGE" >&6; }
13443 else
13444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13445 $as_echo "no" >&6; }
13446 fi
13447
13448
13449 if test "$GMSGFMT" != ":"; then
13450 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
13451 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
13452 : ;
13453 else
13454 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
13455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
13456 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
13457 GMSGFMT=":"
13458 fi
13459 fi
13460
13461 if test "$XGETTEXT" != ":"; then
13462 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
13463 (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
13464 : ;
13465 else
13466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
13467 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
13468 XGETTEXT=":"
13469 fi
13470 rm -f messages.po
13471 fi
13472
13473 ac_config_commands="$ac_config_commands default-1"
13474
13475
13476
13477
13478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
13479 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
13480 # Check whether --enable-maintainer-mode was given.
13481 if test "${enable_maintainer_mode+set}" = set; then :
13482 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
13483 else
13484 USE_MAINTAINER_MODE=no
13485 fi
13486
13487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
13488 $as_echo "$USE_MAINTAINER_MODE" >&6; }
13489 if test $USE_MAINTAINER_MODE = yes; then
13490 MAINTAINER_MODE_TRUE=
13491 MAINTAINER_MODE_FALSE='#'
13492 else
13493 MAINTAINER_MODE_TRUE='#'
13494 MAINTAINER_MODE_FALSE=
13495 fi
13496
13497 MAINT=$MAINTAINER_MODE_TRUE
13498
13499
13500 if false; then
13501 GENINSRC_NEVER_TRUE=
13502 GENINSRC_NEVER_FALSE='#'
13503 else
13504 GENINSRC_NEVER_TRUE='#'
13505 GENINSRC_NEVER_FALSE=
13506 fi
13507
13508
13509
13510 for ac_header in memory.h sys/stat.h sys/types.h unistd.h
13511 do :
13512 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13513 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13514 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13515 cat >>confdefs.h <<_ACEOF
13516 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13517 _ACEOF
13518
13519 fi
13520
13521 done
13522
13523
13524 # Put this here so that autoconf's "cross-compiling" message doesn't confuse
13525 # people who are not cross-compiling but are compiling cross-assemblers.
13526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiling a cross-assembler" >&5
13527 $as_echo_n "checking whether compiling a cross-assembler... " >&6; }
13528 if test "${host}" = "${target}"; then
13529 cross_gas=no
13530 else
13531 cross_gas=yes
13532
13533 $as_echo "#define CROSS_COMPILE 1" >>confdefs.h
13534
13535 fi
13536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_gas" >&5
13537 $as_echo "$cross_gas" >&6; }
13538
13539 for ac_func in strsignal
13540 do :
13541 ac_fn_c_check_func "$LINENO" "strsignal" "ac_cv_func_strsignal"
13542 if test "x$ac_cv_func_strsignal" = xyes; then :
13543 cat >>confdefs.h <<_ACEOF
13544 #define HAVE_STRSIGNAL 1
13545 _ACEOF
13546
13547 fi
13548 done
13549
13550
13551
13552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
13553 $as_echo_n "checking for LC_MESSAGES... " >&6; }
13554 if ${am_cv_val_LC_MESSAGES+:} false; then :
13555 $as_echo_n "(cached) " >&6
13556 else
13557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13558 /* end confdefs.h. */
13559 #include <locale.h>
13560 int
13561 main ()
13562 {
13563 return LC_MESSAGES
13564 ;
13565 return 0;
13566 }
13567 _ACEOF
13568 if ac_fn_c_try_link "$LINENO"; then :
13569 am_cv_val_LC_MESSAGES=yes
13570 else
13571 am_cv_val_LC_MESSAGES=no
13572 fi
13573 rm -f core conftest.err conftest.$ac_objext \
13574 conftest$ac_exeext conftest.$ac_ext
13575 fi
13576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
13577 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
13578 if test $am_cv_val_LC_MESSAGES = yes; then
13579
13580 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
13581
13582 fi
13583
13584
13585 # do we need the math library?
13586 case "${need_libm}" in
13587 yes)
13588 LIBM=
13589 case $host in
13590 *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
13591 # These system don't have libm, or don't need it
13592 ;;
13593 *-ncr-sysv4.3*)
13594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mwvalidcheckl in -lmw" >&5
13595 $as_echo_n "checking for _mwvalidcheckl in -lmw... " >&6; }
13596 if ${ac_cv_lib_mw__mwvalidcheckl+:} false; then :
13597 $as_echo_n "(cached) " >&6
13598 else
13599 ac_check_lib_save_LIBS=$LIBS
13600 LIBS="-lmw $LIBS"
13601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13602 /* end confdefs.h. */
13603
13604 /* Override any GCC internal prototype to avoid an error.
13605 Use char because int might match the return type of a GCC
13606 builtin and then its argument prototype would still apply. */
13607 #ifdef __cplusplus
13608 extern "C"
13609 #endif
13610 char _mwvalidcheckl ();
13611 int
13612 main ()
13613 {
13614 return _mwvalidcheckl ();
13615 ;
13616 return 0;
13617 }
13618 _ACEOF
13619 if ac_fn_c_try_link "$LINENO"; then :
13620 ac_cv_lib_mw__mwvalidcheckl=yes
13621 else
13622 ac_cv_lib_mw__mwvalidcheckl=no
13623 fi
13624 rm -f core conftest.err conftest.$ac_objext \
13625 conftest$ac_exeext conftest.$ac_ext
13626 LIBS=$ac_check_lib_save_LIBS
13627 fi
13628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
13629 $as_echo "$ac_cv_lib_mw__mwvalidcheckl" >&6; }
13630 if test "x$ac_cv_lib_mw__mwvalidcheckl" = xyes; then :
13631 LIBM="-lmw"
13632 fi
13633
13634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
13635 $as_echo_n "checking for cos in -lm... " >&6; }
13636 if ${ac_cv_lib_m_cos+:} false; then :
13637 $as_echo_n "(cached) " >&6
13638 else
13639 ac_check_lib_save_LIBS=$LIBS
13640 LIBS="-lm $LIBS"
13641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13642 /* end confdefs.h. */
13643
13644 /* Override any GCC internal prototype to avoid an error.
13645 Use char because int might match the return type of a GCC
13646 builtin and then its argument prototype would still apply. */
13647 #ifdef __cplusplus
13648 extern "C"
13649 #endif
13650 char cos ();
13651 int
13652 main ()
13653 {
13654 return cos ();
13655 ;
13656 return 0;
13657 }
13658 _ACEOF
13659 if ac_fn_c_try_link "$LINENO"; then :
13660 ac_cv_lib_m_cos=yes
13661 else
13662 ac_cv_lib_m_cos=no
13663 fi
13664 rm -f core conftest.err conftest.$ac_objext \
13665 conftest$ac_exeext conftest.$ac_ext
13666 LIBS=$ac_check_lib_save_LIBS
13667 fi
13668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
13669 $as_echo "$ac_cv_lib_m_cos" >&6; }
13670 if test "x$ac_cv_lib_m_cos" = xyes; then :
13671 LIBM="$LIBM -lm"
13672 fi
13673
13674 ;;
13675 *)
13676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
13677 $as_echo_n "checking for cos in -lm... " >&6; }
13678 if ${ac_cv_lib_m_cos+:} false; then :
13679 $as_echo_n "(cached) " >&6
13680 else
13681 ac_check_lib_save_LIBS=$LIBS
13682 LIBS="-lm $LIBS"
13683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13684 /* end confdefs.h. */
13685
13686 /* Override any GCC internal prototype to avoid an error.
13687 Use char because int might match the return type of a GCC
13688 builtin and then its argument prototype would still apply. */
13689 #ifdef __cplusplus
13690 extern "C"
13691 #endif
13692 char cos ();
13693 int
13694 main ()
13695 {
13696 return cos ();
13697 ;
13698 return 0;
13699 }
13700 _ACEOF
13701 if ac_fn_c_try_link "$LINENO"; then :
13702 ac_cv_lib_m_cos=yes
13703 else
13704 ac_cv_lib_m_cos=no
13705 fi
13706 rm -f core conftest.err conftest.$ac_objext \
13707 conftest$ac_exeext conftest.$ac_ext
13708 LIBS=$ac_check_lib_save_LIBS
13709 fi
13710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
13711 $as_echo "$ac_cv_lib_m_cos" >&6; }
13712 if test "x$ac_cv_lib_m_cos" = xyes; then :
13713 LIBM="-lm"
13714 fi
13715
13716 ;;
13717 esac
13718
13719
13720
13721 ;;
13722 esac
13723
13724 # Some non-ANSI preprocessors botch requoting inside strings. That's bad
13725 # enough, but on some of those systems, the assert macro relies on requoting
13726 # working properly!
13727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working assert macro" >&5
13728 $as_echo_n "checking for working assert macro... " >&6; }
13729 if ${gas_cv_assert_ok+:} false; then :
13730 $as_echo_n "(cached) " >&6
13731 else
13732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13733 /* end confdefs.h. */
13734 #include <assert.h>
13735 #include <stdio.h>
13736 int
13737 main ()
13738 {
13739
13740 /* check for requoting problems */
13741 static int a, b, c, d;
13742 static char *s;
13743 assert (!strcmp(s, "foo bar baz quux"));
13744 /* check for newline handling */
13745 assert (a == b
13746 || c == d);
13747
13748 ;
13749 return 0;
13750 }
13751 _ACEOF
13752 if ac_fn_c_try_link "$LINENO"; then :
13753 gas_cv_assert_ok=yes
13754 else
13755 gas_cv_assert_ok=no
13756 fi
13757 rm -f core conftest.err conftest.$ac_objext \
13758 conftest$ac_exeext conftest.$ac_ext
13759 fi
13760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_assert_ok" >&5
13761 $as_echo "$gas_cv_assert_ok" >&6; }
13762 test $gas_cv_assert_ok = yes ||
13763 $as_echo "#define BROKEN_ASSERT 1" >>confdefs.h
13764
13765
13766
13767 # On some systems, the system header files may not declare malloc, realloc,
13768 # and free. There are places where gas needs these functions to have been
13769 # declared -- such as when taking their addresses.
13770 gas_test_headers="
13771 #ifdef HAVE_MEMORY_H
13772 #include <memory.h>
13773 #endif
13774 #include <string.h>
13775 #include <stdlib.h>
13776 #ifdef HAVE_UNISTD_H
13777 #include <unistd.h>
13778 #endif
13779 "
13780
13781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a known getopt prototype in unistd.h" >&5
13782 $as_echo_n "checking for a known getopt prototype in unistd.h... " >&6; }
13783 if ${gas_cv_decl_getopt_unistd_h+:} false; then :
13784 $as_echo_n "(cached) " >&6
13785 else
13786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13787 /* end confdefs.h. */
13788 #include <unistd.h>
13789 int
13790 main ()
13791 {
13792 extern int getopt (int, char *const*, const char *);
13793 ;
13794 return 0;
13795 }
13796 _ACEOF
13797 if ac_fn_c_try_compile "$LINENO"; then :
13798 gas_cv_decl_getopt_unistd_h=yes
13799 else
13800 gas_cv_decl_getopt_unistd_h=no
13801 fi
13802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13803 fi
13804
13805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_getopt_unistd_h" >&5
13806 $as_echo "$gas_cv_decl_getopt_unistd_h" >&6; }
13807 if test $gas_cv_decl_getopt_unistd_h = yes; then
13808
13809 $as_echo "#define HAVE_DECL_GETOPT 1" >>confdefs.h
13810
13811 fi
13812
13813
13814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for environ" >&5
13815 $as_echo_n "checking whether declaration is required for environ... " >&6; }
13816 if ${gas_cv_decl_needed_environ+:} false; then :
13817 $as_echo_n "(cached) " >&6
13818 else
13819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13820 /* end confdefs.h. */
13821 $gas_test_headers
13822 int
13823 main ()
13824 {
13825
13826 typedef char **f;
13827 f x;
13828 x = (f) environ;
13829
13830 ;
13831 return 0;
13832 }
13833 _ACEOF
13834 if ac_fn_c_try_link "$LINENO"; then :
13835 gas_cv_decl_needed_environ=no
13836 else
13837 gas_cv_decl_needed_environ=yes
13838 fi
13839 rm -f core conftest.err conftest.$ac_objext \
13840 conftest$ac_exeext conftest.$ac_ext
13841 fi
13842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_environ" >&5
13843 $as_echo "$gas_cv_decl_needed_environ" >&6; }
13844 if test $gas_cv_decl_needed_environ = yes; then
13845
13846 $as_echo "#define NEED_DECLARATION_ENVIRON 1" >>confdefs.h
13847
13848 fi
13849
13850
13851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for ffs" >&5
13852 $as_echo_n "checking whether declaration is required for ffs... " >&6; }
13853 if ${gas_cv_decl_needed_ffs+:} false; then :
13854 $as_echo_n "(cached) " >&6
13855 else
13856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13857 /* end confdefs.h. */
13858 $gas_test_headers
13859 int
13860 main ()
13861 {
13862
13863 typedef int (*f)(int);
13864 f x;
13865 x = (f) ffs;
13866
13867 ;
13868 return 0;
13869 }
13870 _ACEOF
13871 if ac_fn_c_try_link "$LINENO"; then :
13872 gas_cv_decl_needed_ffs=no
13873 else
13874 gas_cv_decl_needed_ffs=yes
13875 fi
13876 rm -f core conftest.err conftest.$ac_objext \
13877 conftest$ac_exeext conftest.$ac_ext
13878 fi
13879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_ffs" >&5
13880 $as_echo "$gas_cv_decl_needed_ffs" >&6; }
13881 if test $gas_cv_decl_needed_ffs = yes; then
13882
13883 $as_echo "#define NEED_DECLARATION_FFS 1" >>confdefs.h
13884
13885 fi
13886
13887
13888 ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
13889 if test "x$ac_cv_have_decl_asprintf" = xyes; then :
13890 ac_have_decl=1
13891 else
13892 ac_have_decl=0
13893 fi
13894
13895 cat >>confdefs.h <<_ACEOF
13896 #define HAVE_DECL_ASPRINTF $ac_have_decl
13897 _ACEOF
13898 ac_fn_c_check_decl "$LINENO" "mempcpy" "ac_cv_have_decl_mempcpy" "$ac_includes_default"
13899 if test "x$ac_cv_have_decl_mempcpy" = xyes; then :
13900 ac_have_decl=1
13901 else
13902 ac_have_decl=0
13903 fi
13904
13905 cat >>confdefs.h <<_ACEOF
13906 #define HAVE_DECL_MEMPCPY $ac_have_decl
13907 _ACEOF
13908 ac_fn_c_check_decl "$LINENO" "stpcpy" "ac_cv_have_decl_stpcpy" "$ac_includes_default"
13909 if test "x$ac_cv_have_decl_stpcpy" = xyes; then :
13910 ac_have_decl=1
13911 else
13912 ac_have_decl=0
13913 fi
13914
13915 cat >>confdefs.h <<_ACEOF
13916 #define HAVE_DECL_STPCPY $ac_have_decl
13917 _ACEOF
13918
13919
13920
13921 case "${host}" in
13922 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
13923
13924 $as_echo "#define USE_BINARY_FOPEN 1" >>confdefs.h
13925 ;;
13926 esac
13927
13928 # Link in zlib if we can. This allows us to write compressed debug sections.
13929
13930 # Use the system's zlib library.
13931 zlibdir="-L\$(top_builddir)/../zlib"
13932 zlibinc="-I\$(top_srcdir)/../zlib"
13933
13934 # Check whether --with-system-zlib was given.
13935 if test "${with_system_zlib+set}" = set; then :
13936 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
13937 zlibdir=
13938 zlibinc=
13939 fi
13940
13941 fi
13942
13943
13944
13945
13946
13947 # Support for VMS timestamps via cross compile
13948
13949 if test "$ac_cv_header_time_h" = yes; then
13950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tm.tm_gmtoff in time.h" >&5
13951 $as_echo_n "checking for struct tm.tm_gmtoff in time.h... " >&6; }
13952 if ${gas_cv_have_time_type_member_tm_gmtoff+:} false; then :
13953 $as_echo_n "(cached) " >&6
13954 else
13955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13956 /* end confdefs.h. */
13957
13958 #define _BSD_SOURCE 1
13959 #include <time.h>
13960 int
13961 main ()
13962 {
13963 struct tm avar; void* aref = (void*) &avar.tm_gmtoff
13964 ;
13965 return 0;
13966 }
13967 _ACEOF
13968 if ac_fn_c_try_compile "$LINENO"; then :
13969 gas_cv_have_time_type_member_tm_gmtoff=yes
13970 else
13971 gas_cv_have_time_type_member_tm_gmtoff=no
13972
13973 fi
13974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13975 fi
13976
13977 if test $gas_cv_have_time_type_member_tm_gmtoff = yes; then
13978
13979 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
13980
13981 fi
13982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_have_time_type_member_tm_gmtoff" >&5
13983 $as_echo "$gas_cv_have_time_type_member_tm_gmtoff" >&6; }
13984
13985 fi
13986
13987 if test "$ac_cv_header_sys_stat_h" = yes; then
13988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct stat.st_mtim.tv_sec in sys/stat.h" >&5
13989 $as_echo_n "checking for struct stat.st_mtim.tv_sec in sys/stat.h... " >&6; }
13990 if ${gas_cv_have_sys_stat_type_member_st_mtim_tv_sec+:} false; then :
13991 $as_echo_n "(cached) " >&6
13992 else
13993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13994 /* end confdefs.h. */
13995
13996 #define _BSD_SOURCE 1
13997 #include <sys/stat.h>
13998 int
13999 main ()
14000 {
14001 struct stat avar; void* aref = (void*) &avar.st_mtim.tv_sec
14002 ;
14003 return 0;
14004 }
14005 _ACEOF
14006 if ac_fn_c_try_compile "$LINENO"; then :
14007 gas_cv_have_sys_stat_type_member_st_mtim_tv_sec=yes
14008 else
14009 gas_cv_have_sys_stat_type_member_st_mtim_tv_sec=no
14010
14011 fi
14012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14013 fi
14014
14015 if test $gas_cv_have_sys_stat_type_member_st_mtim_tv_sec = yes; then
14016
14017 $as_echo "#define HAVE_ST_MTIM_TV_SEC 1" >>confdefs.h
14018
14019 fi
14020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_have_sys_stat_type_member_st_mtim_tv_sec" >&5
14021 $as_echo "$gas_cv_have_sys_stat_type_member_st_mtim_tv_sec" >&6; }
14022
14023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct stat.st_mtim.tv_nsec in sys/stat.h" >&5
14024 $as_echo_n "checking for struct stat.st_mtim.tv_nsec in sys/stat.h... " >&6; }
14025 if ${gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec+:} false; then :
14026 $as_echo_n "(cached) " >&6
14027 else
14028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14029 /* end confdefs.h. */
14030
14031 #define _BSD_SOURCE 1
14032 #include <sys/stat.h>
14033 int
14034 main ()
14035 {
14036 struct stat avar; void* aref = (void*) &avar.st_mtim.tv_nsec
14037 ;
14038 return 0;
14039 }
14040 _ACEOF
14041 if ac_fn_c_try_compile "$LINENO"; then :
14042 gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec=yes
14043 else
14044 gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec=no
14045
14046 fi
14047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14048 fi
14049
14050 if test $gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec = yes; then
14051
14052 $as_echo "#define HAVE_ST_MTIM_TV_NSEC 1" >>confdefs.h
14053
14054 fi
14055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec" >&5
14056 $as_echo "$gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec" >&6; }
14057
14058 fi
14059
14060
14061
14062
14063
14064
14065
14066
14067
14068 ac_config_files="$ac_config_files Makefile po/Makefile.in:po/Make-in"
14069
14070 ac_config_commands="$ac_config_commands default"
14071
14072
14073 cat >confcache <<\_ACEOF
14074 # This file is a shell script that caches the results of configure
14075 # tests run on this system so they can be shared between configure
14076 # scripts and configure runs, see configure's option --config-cache.
14077 # It is not useful on other systems. If it contains results you don't
14078 # want to keep, you may remove or edit it.
14079 #
14080 # config.status only pays attention to the cache file if you give it
14081 # the --recheck option to rerun configure.
14082 #
14083 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14084 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14085 # following values.
14086
14087 _ACEOF
14088
14089 # The following way of writing the cache mishandles newlines in values,
14090 # but we know of no workaround that is simple, portable, and efficient.
14091 # So, we kill variables containing newlines.
14092 # Ultrix sh set writes to stderr and can't be redirected directly,
14093 # and sets the high bit in the cache file unless we assign to the vars.
14094 (
14095 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14096 eval ac_val=\$$ac_var
14097 case $ac_val in #(
14098 *${as_nl}*)
14099 case $ac_var in #(
14100 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14101 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14102 esac
14103 case $ac_var in #(
14104 _ | IFS | as_nl) ;; #(
14105 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14106 *) { eval $ac_var=; unset $ac_var;} ;;
14107 esac ;;
14108 esac
14109 done
14110
14111 (set) 2>&1 |
14112 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14113 *${as_nl}ac_space=\ *)
14114 # `set' does not quote correctly, so add quotes: double-quote
14115 # substitution turns \\\\ into \\, and sed turns \\ into \.
14116 sed -n \
14117 "s/'/'\\\\''/g;
14118 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14119 ;; #(
14120 *)
14121 # `set' quotes correctly as required by POSIX, so do not add quotes.
14122 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14123 ;;
14124 esac |
14125 sort
14126 ) |
14127 sed '
14128 /^ac_cv_env_/b end
14129 t clear
14130 :clear
14131 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14132 t end
14133 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14134 :end' >>confcache
14135 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14136 if test -w "$cache_file"; then
14137 if test "x$cache_file" != "x/dev/null"; then
14138 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14139 $as_echo "$as_me: updating cache $cache_file" >&6;}
14140 if test ! -f "$cache_file" || test -h "$cache_file"; then
14141 cat confcache >"$cache_file"
14142 else
14143 case $cache_file in #(
14144 */* | ?:*)
14145 mv -f confcache "$cache_file"$$ &&
14146 mv -f "$cache_file"$$ "$cache_file" ;; #(
14147 *)
14148 mv -f confcache "$cache_file" ;;
14149 esac
14150 fi
14151 fi
14152 else
14153 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14154 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14155 fi
14156 fi
14157 rm -f confcache
14158
14159 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14160 # Let make expand exec_prefix.
14161 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14162
14163 DEFS=-DHAVE_CONFIG_H
14164
14165 ac_libobjs=
14166 ac_ltlibobjs=
14167 U=
14168 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14169 # 1. Remove the extension, and $U if already installed.
14170 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14171 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14172 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14173 # will be set to the directory where LIBOBJS objects are built.
14174 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14175 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14176 done
14177 LIBOBJS=$ac_libobjs
14178
14179 LTLIBOBJS=$ac_ltlibobjs
14180
14181
14182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
14183 $as_echo_n "checking that generated files are newer than configure... " >&6; }
14184 if test -n "$am_sleep_pid"; then
14185 # Hide warnings about reused PIDs.
14186 wait $am_sleep_pid 2>/dev/null
14187 fi
14188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
14189 $as_echo "done" >&6; }
14190 if test -n "$EXEEXT"; then
14191 am__EXEEXT_TRUE=
14192 am__EXEEXT_FALSE='#'
14193 else
14194 am__EXEEXT_TRUE='#'
14195 am__EXEEXT_FALSE=
14196 fi
14197
14198 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14199 as_fn_error $? "conditional \"AMDEP\" was never defined.
14200 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14201 fi
14202 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14203 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14204 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14205 fi
14206
14207 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14208 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
14209 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14210 fi
14211 if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
14212 as_fn_error $? "conditional \"GENINSRC_NEVER\" was never defined.
14213 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14214 fi
14215
14216 : "${CONFIG_STATUS=./config.status}"
14217 ac_write_fail=0
14218 ac_clean_files_save=$ac_clean_files
14219 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14220 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14221 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14222 as_write_fail=0
14223 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14224 #! $SHELL
14225 # Generated by $as_me.
14226 # Run this file to recreate the current configuration.
14227 # Compiler output produced by configure, useful for debugging
14228 # configure, is in config.log if it exists.
14229
14230 debug=false
14231 ac_cs_recheck=false
14232 ac_cs_silent=false
14233
14234 SHELL=\${CONFIG_SHELL-$SHELL}
14235 export SHELL
14236 _ASEOF
14237 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14238 ## -------------------- ##
14239 ## M4sh Initialization. ##
14240 ## -------------------- ##
14241
14242 # Be more Bourne compatible
14243 DUALCASE=1; export DUALCASE # for MKS sh
14244 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14245 emulate sh
14246 NULLCMD=:
14247 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14248 # is contrary to our usage. Disable this feature.
14249 alias -g '${1+"$@"}'='"$@"'
14250 setopt NO_GLOB_SUBST
14251 else
14252 case `(set -o) 2>/dev/null` in #(
14253 *posix*) :
14254 set -o posix ;; #(
14255 *) :
14256 ;;
14257 esac
14258 fi
14259
14260
14261 as_nl='
14262 '
14263 export as_nl
14264 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14265 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14266 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14267 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14268 # Prefer a ksh shell builtin over an external printf program on Solaris,
14269 # but without wasting forks for bash or zsh.
14270 if test -z "$BASH_VERSION$ZSH_VERSION" \
14271 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14272 as_echo='print -r --'
14273 as_echo_n='print -rn --'
14274 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14275 as_echo='printf %s\n'
14276 as_echo_n='printf %s'
14277 else
14278 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14279 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14280 as_echo_n='/usr/ucb/echo -n'
14281 else
14282 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14283 as_echo_n_body='eval
14284 arg=$1;
14285 case $arg in #(
14286 *"$as_nl"*)
14287 expr "X$arg" : "X\\(.*\\)$as_nl";
14288 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14289 esac;
14290 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14291 '
14292 export as_echo_n_body
14293 as_echo_n='sh -c $as_echo_n_body as_echo'
14294 fi
14295 export as_echo_body
14296 as_echo='sh -c $as_echo_body as_echo'
14297 fi
14298
14299 # The user is always right.
14300 if test "${PATH_SEPARATOR+set}" != set; then
14301 PATH_SEPARATOR=:
14302 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14303 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14304 PATH_SEPARATOR=';'
14305 }
14306 fi
14307
14308
14309 # IFS
14310 # We need space, tab and new line, in precisely that order. Quoting is
14311 # there to prevent editors from complaining about space-tab.
14312 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14313 # splitting by setting IFS to empty value.)
14314 IFS=" "" $as_nl"
14315
14316 # Find who we are. Look in the path if we contain no directory separator.
14317 as_myself=
14318 case $0 in #((
14319 *[\\/]* ) as_myself=$0 ;;
14320 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14321 for as_dir in $PATH
14322 do
14323 IFS=$as_save_IFS
14324 test -z "$as_dir" && as_dir=.
14325 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14326 done
14327 IFS=$as_save_IFS
14328
14329 ;;
14330 esac
14331 # We did not find ourselves, most probably we were run as `sh COMMAND'
14332 # in which case we are not to be found in the path.
14333 if test "x$as_myself" = x; then
14334 as_myself=$0
14335 fi
14336 if test ! -f "$as_myself"; then
14337 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14338 exit 1
14339 fi
14340
14341 # Unset variables that we do not need and which cause bugs (e.g. in
14342 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14343 # suppresses any "Segmentation fault" message there. '((' could
14344 # trigger a bug in pdksh 5.2.14.
14345 for as_var in BASH_ENV ENV MAIL MAILPATH
14346 do eval test x\${$as_var+set} = xset \
14347 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14348 done
14349 PS1='$ '
14350 PS2='> '
14351 PS4='+ '
14352
14353 # NLS nuisances.
14354 LC_ALL=C
14355 export LC_ALL
14356 LANGUAGE=C
14357 export LANGUAGE
14358
14359 # CDPATH.
14360 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14361
14362
14363 # as_fn_error STATUS ERROR [LINENO LOG_FD]
14364 # ----------------------------------------
14365 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14366 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14367 # script with STATUS, using 1 if that was 0.
14368 as_fn_error ()
14369 {
14370 as_status=$1; test $as_status -eq 0 && as_status=1
14371 if test "$4"; then
14372 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14373 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14374 fi
14375 $as_echo "$as_me: error: $2" >&2
14376 as_fn_exit $as_status
14377 } # as_fn_error
14378
14379
14380 # as_fn_set_status STATUS
14381 # -----------------------
14382 # Set $? to STATUS, without forking.
14383 as_fn_set_status ()
14384 {
14385 return $1
14386 } # as_fn_set_status
14387
14388 # as_fn_exit STATUS
14389 # -----------------
14390 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14391 as_fn_exit ()
14392 {
14393 set +e
14394 as_fn_set_status $1
14395 exit $1
14396 } # as_fn_exit
14397
14398 # as_fn_unset VAR
14399 # ---------------
14400 # Portably unset VAR.
14401 as_fn_unset ()
14402 {
14403 { eval $1=; unset $1;}
14404 }
14405 as_unset=as_fn_unset
14406 # as_fn_append VAR VALUE
14407 # ----------------------
14408 # Append the text in VALUE to the end of the definition contained in VAR. Take
14409 # advantage of any shell optimizations that allow amortized linear growth over
14410 # repeated appends, instead of the typical quadratic growth present in naive
14411 # implementations.
14412 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14413 eval 'as_fn_append ()
14414 {
14415 eval $1+=\$2
14416 }'
14417 else
14418 as_fn_append ()
14419 {
14420 eval $1=\$$1\$2
14421 }
14422 fi # as_fn_append
14423
14424 # as_fn_arith ARG...
14425 # ------------------
14426 # Perform arithmetic evaluation on the ARGs, and store the result in the
14427 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14428 # must be portable across $(()) and expr.
14429 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14430 eval 'as_fn_arith ()
14431 {
14432 as_val=$(( $* ))
14433 }'
14434 else
14435 as_fn_arith ()
14436 {
14437 as_val=`expr "$@" || test $? -eq 1`
14438 }
14439 fi # as_fn_arith
14440
14441
14442 if expr a : '\(a\)' >/dev/null 2>&1 &&
14443 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14444 as_expr=expr
14445 else
14446 as_expr=false
14447 fi
14448
14449 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14450 as_basename=basename
14451 else
14452 as_basename=false
14453 fi
14454
14455 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14456 as_dirname=dirname
14457 else
14458 as_dirname=false
14459 fi
14460
14461 as_me=`$as_basename -- "$0" ||
14462 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14463 X"$0" : 'X\(//\)$' \| \
14464 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14465 $as_echo X/"$0" |
14466 sed '/^.*\/\([^/][^/]*\)\/*$/{
14467 s//\1/
14468 q
14469 }
14470 /^X\/\(\/\/\)$/{
14471 s//\1/
14472 q
14473 }
14474 /^X\/\(\/\).*/{
14475 s//\1/
14476 q
14477 }
14478 s/.*/./; q'`
14479
14480 # Avoid depending upon Character Ranges.
14481 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14482 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14483 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14484 as_cr_digits='0123456789'
14485 as_cr_alnum=$as_cr_Letters$as_cr_digits
14486
14487 ECHO_C= ECHO_N= ECHO_T=
14488 case `echo -n x` in #(((((
14489 -n*)
14490 case `echo 'xy\c'` in
14491 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14492 xy) ECHO_C='\c';;
14493 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14494 ECHO_T=' ';;
14495 esac;;
14496 *)
14497 ECHO_N='-n';;
14498 esac
14499
14500 rm -f conf$$ conf$$.exe conf$$.file
14501 if test -d conf$$.dir; then
14502 rm -f conf$$.dir/conf$$.file
14503 else
14504 rm -f conf$$.dir
14505 mkdir conf$$.dir 2>/dev/null
14506 fi
14507 if (echo >conf$$.file) 2>/dev/null; then
14508 if ln -s conf$$.file conf$$ 2>/dev/null; then
14509 as_ln_s='ln -s'
14510 # ... but there are two gotchas:
14511 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14512 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14513 # In both cases, we have to default to `cp -pR'.
14514 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14515 as_ln_s='cp -pR'
14516 elif ln conf$$.file conf$$ 2>/dev/null; then
14517 as_ln_s=ln
14518 else
14519 as_ln_s='cp -pR'
14520 fi
14521 else
14522 as_ln_s='cp -pR'
14523 fi
14524 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14525 rmdir conf$$.dir 2>/dev/null
14526
14527
14528 # as_fn_mkdir_p
14529 # -------------
14530 # Create "$as_dir" as a directory, including parents if necessary.
14531 as_fn_mkdir_p ()
14532 {
14533
14534 case $as_dir in #(
14535 -*) as_dir=./$as_dir;;
14536 esac
14537 test -d "$as_dir" || eval $as_mkdir_p || {
14538 as_dirs=
14539 while :; do
14540 case $as_dir in #(
14541 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14542 *) as_qdir=$as_dir;;
14543 esac
14544 as_dirs="'$as_qdir' $as_dirs"
14545 as_dir=`$as_dirname -- "$as_dir" ||
14546 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14547 X"$as_dir" : 'X\(//\)[^/]' \| \
14548 X"$as_dir" : 'X\(//\)$' \| \
14549 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14550 $as_echo X"$as_dir" |
14551 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14552 s//\1/
14553 q
14554 }
14555 /^X\(\/\/\)[^/].*/{
14556 s//\1/
14557 q
14558 }
14559 /^X\(\/\/\)$/{
14560 s//\1/
14561 q
14562 }
14563 /^X\(\/\).*/{
14564 s//\1/
14565 q
14566 }
14567 s/.*/./; q'`
14568 test -d "$as_dir" && break
14569 done
14570 test -z "$as_dirs" || eval "mkdir $as_dirs"
14571 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14572
14573
14574 } # as_fn_mkdir_p
14575 if mkdir -p . 2>/dev/null; then
14576 as_mkdir_p='mkdir -p "$as_dir"'
14577 else
14578 test -d ./-p && rmdir ./-p
14579 as_mkdir_p=false
14580 fi
14581
14582
14583 # as_fn_executable_p FILE
14584 # -----------------------
14585 # Test if FILE is an executable regular file.
14586 as_fn_executable_p ()
14587 {
14588 test -f "$1" && test -x "$1"
14589 } # as_fn_executable_p
14590 as_test_x='test -x'
14591 as_executable_p=as_fn_executable_p
14592
14593 # Sed expression to map a string onto a valid CPP name.
14594 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14595
14596 # Sed expression to map a string onto a valid variable name.
14597 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14598
14599
14600 exec 6>&1
14601 ## ----------------------------------- ##
14602 ## Main body of $CONFIG_STATUS script. ##
14603 ## ----------------------------------- ##
14604 _ASEOF
14605 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14606
14607 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14608 # Save the log message, to keep $0 and so on meaningful, and to
14609 # report actual input values of CONFIG_FILES etc. instead of their
14610 # values after options handling.
14611 ac_log="
14612 This file was extended by gas $as_me 2.37.50, which was
14613 generated by GNU Autoconf 2.69. Invocation command line was
14614
14615 CONFIG_FILES = $CONFIG_FILES
14616 CONFIG_HEADERS = $CONFIG_HEADERS
14617 CONFIG_LINKS = $CONFIG_LINKS
14618 CONFIG_COMMANDS = $CONFIG_COMMANDS
14619 $ $0 $@
14620
14621 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14622 "
14623
14624 _ACEOF
14625
14626 case $ac_config_files in *"
14627 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14628 esac
14629
14630 case $ac_config_headers in *"
14631 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14632 esac
14633
14634
14635 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14636 # Files that config.status was made for.
14637 config_files="$ac_config_files"
14638 config_headers="$ac_config_headers"
14639 config_commands="$ac_config_commands"
14640
14641 _ACEOF
14642
14643 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14644 ac_cs_usage="\
14645 \`$as_me' instantiates files and other configuration actions
14646 from templates according to the current configuration. Unless the files
14647 and actions are specified as TAGs, all are instantiated by default.
14648
14649 Usage: $0 [OPTION]... [TAG]...
14650
14651 -h, --help print this help, then exit
14652 -V, --version print version number and configuration settings, then exit
14653 --config print configuration, then exit
14654 -q, --quiet, --silent
14655 do not print progress messages
14656 -d, --debug don't remove temporary files
14657 --recheck update $as_me by reconfiguring in the same conditions
14658 --file=FILE[:TEMPLATE]
14659 instantiate the configuration file FILE
14660 --header=FILE[:TEMPLATE]
14661 instantiate the configuration header FILE
14662
14663 Configuration files:
14664 $config_files
14665
14666 Configuration headers:
14667 $config_headers
14668
14669 Configuration commands:
14670 $config_commands
14671
14672 Report bugs to the package provider."
14673
14674 _ACEOF
14675 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14676 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14677 ac_cs_version="\\
14678 gas config.status 2.37.50
14679 configured by $0, generated by GNU Autoconf 2.69,
14680 with options \\"\$ac_cs_config\\"
14681
14682 Copyright (C) 2012 Free Software Foundation, Inc.
14683 This config.status script is free software; the Free Software Foundation
14684 gives unlimited permission to copy, distribute and modify it."
14685
14686 ac_pwd='$ac_pwd'
14687 srcdir='$srcdir'
14688 INSTALL='$INSTALL'
14689 MKDIR_P='$MKDIR_P'
14690 AWK='$AWK'
14691 test -n "\$AWK" || AWK=awk
14692 _ACEOF
14693
14694 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14695 # The default lists apply if the user does not specify any file.
14696 ac_need_defaults=:
14697 while test $# != 0
14698 do
14699 case $1 in
14700 --*=?*)
14701 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14702 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14703 ac_shift=:
14704 ;;
14705 --*=)
14706 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14707 ac_optarg=
14708 ac_shift=:
14709 ;;
14710 *)
14711 ac_option=$1
14712 ac_optarg=$2
14713 ac_shift=shift
14714 ;;
14715 esac
14716
14717 case $ac_option in
14718 # Handling of the options.
14719 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14720 ac_cs_recheck=: ;;
14721 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14722 $as_echo "$ac_cs_version"; exit ;;
14723 --config | --confi | --conf | --con | --co | --c )
14724 $as_echo "$ac_cs_config"; exit ;;
14725 --debug | --debu | --deb | --de | --d | -d )
14726 debug=: ;;
14727 --file | --fil | --fi | --f )
14728 $ac_shift
14729 case $ac_optarg in
14730 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14731 '') as_fn_error $? "missing file argument" ;;
14732 esac
14733 as_fn_append CONFIG_FILES " '$ac_optarg'"
14734 ac_need_defaults=false;;
14735 --header | --heade | --head | --hea )
14736 $ac_shift
14737 case $ac_optarg in
14738 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14739 esac
14740 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14741 ac_need_defaults=false;;
14742 --he | --h)
14743 # Conflict between --help and --header
14744 as_fn_error $? "ambiguous option: \`$1'
14745 Try \`$0 --help' for more information.";;
14746 --help | --hel | -h )
14747 $as_echo "$ac_cs_usage"; exit ;;
14748 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14749 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14750 ac_cs_silent=: ;;
14751
14752 # This is an error.
14753 -*) as_fn_error $? "unrecognized option: \`$1'
14754 Try \`$0 --help' for more information." ;;
14755
14756 *) as_fn_append ac_config_targets " $1"
14757 ac_need_defaults=false ;;
14758
14759 esac
14760 shift
14761 done
14762
14763 ac_configure_extra_args=
14764
14765 if $ac_cs_silent; then
14766 exec 6>/dev/null
14767 ac_configure_extra_args="$ac_configure_extra_args --silent"
14768 fi
14769
14770 _ACEOF
14771 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14772 if \$ac_cs_recheck; then
14773 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14774 shift
14775 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14776 CONFIG_SHELL='$SHELL'
14777 export CONFIG_SHELL
14778 exec "\$@"
14779 fi
14780
14781 _ACEOF
14782 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14783 exec 5>>config.log
14784 {
14785 echo
14786 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14787 ## Running $as_me. ##
14788 _ASBOX
14789 $as_echo "$ac_log"
14790 } >&5
14791
14792 _ACEOF
14793 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14794 #
14795 # INIT-COMMANDS
14796 #
14797 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14798
14799
14800 # The HP-UX ksh and POSIX shell print the target directory to stdout
14801 # if CDPATH is set.
14802 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14803
14804 sed_quote_subst='$sed_quote_subst'
14805 double_quote_subst='$double_quote_subst'
14806 delay_variable_subst='$delay_variable_subst'
14807 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14808 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14809 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14810 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14811 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14812 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14813 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14814 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14815 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14816 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14817 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14818 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14819 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14820 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14821 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14822 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14823 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14824 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14825 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14826 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14827 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14828 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14829 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14830 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14831 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14832 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14833 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14834 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14835 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14836 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14837 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14838 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14839 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14840 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14841 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14842 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14843 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14844 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14845 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14846 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14847 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14848 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14849 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14850 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14851 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14852 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14853 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14854 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14855 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"`'
14856 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14857 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14858 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14859 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14860 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14861 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14862 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14863 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14864 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14865 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14866 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14867 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14868 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14869 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14870 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14871 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14872 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14873 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14874 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14875 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14876 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14877 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14878 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14879 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14880 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14881 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14882 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14883 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14884 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14885 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14886 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14887 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
14888 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14889 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14890 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14891 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14892 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14893 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14894 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14895 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14896 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
14897 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14898 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14899 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14900 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14901 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14902 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14903 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14904 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14905 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14906 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14907 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14908 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14909 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14910 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14911 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14912 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14913 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14914 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14915 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14916 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14917 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14918 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14919 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14920 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
14921 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14922 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14923 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14924 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14925 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14926 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14927
14928 LTCC='$LTCC'
14929 LTCFLAGS='$LTCFLAGS'
14930 compiler='$compiler_DEFAULT'
14931
14932 # A function that is used when there is no print builtin or printf.
14933 func_fallback_echo ()
14934 {
14935 eval 'cat <<_LTECHO_EOF
14936 \$1
14937 _LTECHO_EOF'
14938 }
14939
14940 # Quote evaled strings.
14941 for var in SHELL \
14942 ECHO \
14943 SED \
14944 GREP \
14945 EGREP \
14946 FGREP \
14947 LD \
14948 NM \
14949 LN_S \
14950 lt_SP2NL \
14951 lt_NL2SP \
14952 reload_flag \
14953 OBJDUMP \
14954 deplibs_check_method \
14955 file_magic_cmd \
14956 AR \
14957 AR_FLAGS \
14958 STRIP \
14959 RANLIB \
14960 CC \
14961 CFLAGS \
14962 compiler \
14963 lt_cv_sys_global_symbol_pipe \
14964 lt_cv_sys_global_symbol_to_cdecl \
14965 lt_cv_sys_global_symbol_to_c_name_address \
14966 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14967 lt_prog_compiler_no_builtin_flag \
14968 lt_prog_compiler_wl \
14969 lt_prog_compiler_pic \
14970 lt_prog_compiler_static \
14971 lt_cv_prog_compiler_c_o \
14972 need_locks \
14973 DSYMUTIL \
14974 NMEDIT \
14975 LIPO \
14976 OTOOL \
14977 OTOOL64 \
14978 shrext_cmds \
14979 export_dynamic_flag_spec \
14980 whole_archive_flag_spec \
14981 compiler_needs_object \
14982 with_gnu_ld \
14983 allow_undefined_flag \
14984 no_undefined_flag \
14985 hardcode_libdir_flag_spec \
14986 hardcode_libdir_flag_spec_ld \
14987 hardcode_libdir_separator \
14988 fix_srcfile_path \
14989 exclude_expsyms \
14990 include_expsyms \
14991 file_list_spec \
14992 variables_saved_for_relink \
14993 libname_spec \
14994 library_names_spec \
14995 soname_spec \
14996 install_override_mode \
14997 finish_eval \
14998 old_striplib \
14999 striplib; do
15000 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15001 *[\\\\\\\`\\"\\\$]*)
15002 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15003 ;;
15004 *)
15005 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15006 ;;
15007 esac
15008 done
15009
15010 # Double-quote double-evaled strings.
15011 for var in reload_cmds \
15012 old_postinstall_cmds \
15013 old_postuninstall_cmds \
15014 old_archive_cmds \
15015 extract_expsyms_cmds \
15016 old_archive_from_new_cmds \
15017 old_archive_from_expsyms_cmds \
15018 archive_cmds \
15019 archive_expsym_cmds \
15020 module_cmds \
15021 module_expsym_cmds \
15022 export_symbols_cmds \
15023 prelink_cmds \
15024 postinstall_cmds \
15025 postuninstall_cmds \
15026 finish_cmds \
15027 sys_lib_search_path_spec \
15028 sys_lib_dlsearch_path_spec; do
15029 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15030 *[\\\\\\\`\\"\\\$]*)
15031 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15032 ;;
15033 *)
15034 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15035 ;;
15036 esac
15037 done
15038
15039 ac_aux_dir='$ac_aux_dir'
15040 xsi_shell='$xsi_shell'
15041 lt_shell_append='$lt_shell_append'
15042
15043 # See if we are running on zsh, and set the options which allow our
15044 # commands through without removal of \ escapes INIT.
15045 if test -n "\${ZSH_VERSION+set}" ; then
15046 setopt NO_GLOB_SUBST
15047 fi
15048
15049
15050 PACKAGE='$PACKAGE'
15051 VERSION='$VERSION'
15052 TIMESTAMP='$TIMESTAMP'
15053 RM='$RM'
15054 ofile='$ofile'
15055
15056
15057
15058 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
15059 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
15060 # from automake.
15061 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
15062 # Capture the value of LINGUAS because we need it to compute CATALOGS.
15063 LINGUAS="${LINGUAS-%UNSET%}"
15064
15065 target_cpu_type=${target_cpu_type}
15066 cgen_cpu_prefix=${cgen_cpu_prefix}
15067 obj_format=${obj_format}
15068 te_file=${te_file}
15069
15070 _ACEOF
15071
15072 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15073
15074 # Handling of arguments.
15075 for ac_config_target in $ac_config_targets
15076 do
15077 case $ac_config_target in
15078 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15079 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15080 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
15081 "gdb.ini") CONFIG_FILES="$CONFIG_FILES gdb.ini:gdbinit.in" ;;
15082 ".gdbinit") CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
15083 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
15084 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15085 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
15086 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
15087
15088 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15089 esac
15090 done
15091
15092
15093 # If the user did not use the arguments to specify the items to instantiate,
15094 # then the envvar interface is used. Set only those that are not.
15095 # We use the long form for the default assignment because of an extremely
15096 # bizarre bug on SunOS 4.1.3.
15097 if $ac_need_defaults; then
15098 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15099 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15100 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15101 fi
15102
15103 # Have a temporary directory for convenience. Make it in the build tree
15104 # simply because there is no reason against having it here, and in addition,
15105 # creating and moving files from /tmp can sometimes cause problems.
15106 # Hook for its removal unless debugging.
15107 # Note that there is a small window in which the directory will not be cleaned:
15108 # after its creation but before its name has been assigned to `$tmp'.
15109 $debug ||
15110 {
15111 tmp= ac_tmp=
15112 trap 'exit_status=$?
15113 : "${ac_tmp:=$tmp}"
15114 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15115 ' 0
15116 trap 'as_fn_exit 1' 1 2 13 15
15117 }
15118 # Create a (secure) tmp directory for tmp files.
15119
15120 {
15121 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15122 test -d "$tmp"
15123 } ||
15124 {
15125 tmp=./conf$$-$RANDOM
15126 (umask 077 && mkdir "$tmp")
15127 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15128 ac_tmp=$tmp
15129
15130 # Set up the scripts for CONFIG_FILES section.
15131 # No need to generate them if there are no CONFIG_FILES.
15132 # This happens for instance with `./config.status config.h'.
15133 if test -n "$CONFIG_FILES"; then
15134
15135
15136 ac_cr=`echo X | tr X '\015'`
15137 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15138 # But we know of no other shell where ac_cr would be empty at this
15139 # point, so we can use a bashism as a fallback.
15140 if test "x$ac_cr" = x; then
15141 eval ac_cr=\$\'\\r\'
15142 fi
15143 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15144 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15145 ac_cs_awk_cr='\\r'
15146 else
15147 ac_cs_awk_cr=$ac_cr
15148 fi
15149
15150 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15151 _ACEOF
15152
15153
15154 {
15155 echo "cat >conf$$subs.awk <<_ACEOF" &&
15156 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15157 echo "_ACEOF"
15158 } >conf$$subs.sh ||
15159 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15160 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15161 ac_delim='%!_!# '
15162 for ac_last_try in false false false false false :; do
15163 . ./conf$$subs.sh ||
15164 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15165
15166 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15167 if test $ac_delim_n = $ac_delim_num; then
15168 break
15169 elif $ac_last_try; then
15170 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15171 else
15172 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15173 fi
15174 done
15175 rm -f conf$$subs.sh
15176
15177 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15178 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15179 _ACEOF
15180 sed -n '
15181 h
15182 s/^/S["/; s/!.*/"]=/
15183 p
15184 g
15185 s/^[^!]*!//
15186 :repl
15187 t repl
15188 s/'"$ac_delim"'$//
15189 t delim
15190 :nl
15191 h
15192 s/\(.\{148\}\)..*/\1/
15193 t more1
15194 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15195 p
15196 n
15197 b repl
15198 :more1
15199 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15200 p
15201 g
15202 s/.\{148\}//
15203 t nl
15204 :delim
15205 h
15206 s/\(.\{148\}\)..*/\1/
15207 t more2
15208 s/["\\]/\\&/g; s/^/"/; s/$/"/
15209 p
15210 b
15211 :more2
15212 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15213 p
15214 g
15215 s/.\{148\}//
15216 t delim
15217 ' <conf$$subs.awk | sed '
15218 /^[^""]/{
15219 N
15220 s/\n//
15221 }
15222 ' >>$CONFIG_STATUS || ac_write_fail=1
15223 rm -f conf$$subs.awk
15224 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15225 _ACAWK
15226 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15227 for (key in S) S_is_set[key] = 1
15228 FS = "\a"
15229
15230 }
15231 {
15232 line = $ 0
15233 nfields = split(line, field, "@")
15234 substed = 0
15235 len = length(field[1])
15236 for (i = 2; i < nfields; i++) {
15237 key = field[i]
15238 keylen = length(key)
15239 if (S_is_set[key]) {
15240 value = S[key]
15241 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15242 len += length(value) + length(field[++i])
15243 substed = 1
15244 } else
15245 len += 1 + keylen
15246 }
15247
15248 print line
15249 }
15250
15251 _ACAWK
15252 _ACEOF
15253 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15254 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15255 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15256 else
15257 cat
15258 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15259 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15260 _ACEOF
15261
15262 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15263 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15264 # trailing colons and then remove the whole line if VPATH becomes empty
15265 # (actually we leave an empty line to preserve line numbers).
15266 if test "x$srcdir" = x.; then
15267 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15268 h
15269 s///
15270 s/^/:/
15271 s/[ ]*$/:/
15272 s/:\$(srcdir):/:/g
15273 s/:\${srcdir}:/:/g
15274 s/:@srcdir@:/:/g
15275 s/^:*//
15276 s/:*$//
15277 x
15278 s/\(=[ ]*\).*/\1/
15279 G
15280 s/\n//
15281 s/^[^=]*=[ ]*$//
15282 }'
15283 fi
15284
15285 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15286 fi # test -n "$CONFIG_FILES"
15287
15288 # Set up the scripts for CONFIG_HEADERS section.
15289 # No need to generate them if there are no CONFIG_HEADERS.
15290 # This happens for instance with `./config.status Makefile'.
15291 if test -n "$CONFIG_HEADERS"; then
15292 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15293 BEGIN {
15294 _ACEOF
15295
15296 # Transform confdefs.h into an awk script `defines.awk', embedded as
15297 # here-document in config.status, that substitutes the proper values into
15298 # config.h.in to produce config.h.
15299
15300 # Create a delimiter string that does not exist in confdefs.h, to ease
15301 # handling of long lines.
15302 ac_delim='%!_!# '
15303 for ac_last_try in false false :; do
15304 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15305 if test -z "$ac_tt"; then
15306 break
15307 elif $ac_last_try; then
15308 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15309 else
15310 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15311 fi
15312 done
15313
15314 # For the awk script, D is an array of macro values keyed by name,
15315 # likewise P contains macro parameters if any. Preserve backslash
15316 # newline sequences.
15317
15318 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15319 sed -n '
15320 s/.\{148\}/&'"$ac_delim"'/g
15321 t rset
15322 :rset
15323 s/^[ ]*#[ ]*define[ ][ ]*/ /
15324 t def
15325 d
15326 :def
15327 s/\\$//
15328 t bsnl
15329 s/["\\]/\\&/g
15330 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15331 D["\1"]=" \3"/p
15332 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15333 d
15334 :bsnl
15335 s/["\\]/\\&/g
15336 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15337 D["\1"]=" \3\\\\\\n"\\/p
15338 t cont
15339 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15340 t cont
15341 d
15342 :cont
15343 n
15344 s/.\{148\}/&'"$ac_delim"'/g
15345 t clear
15346 :clear
15347 s/\\$//
15348 t bsnlc
15349 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15350 d
15351 :bsnlc
15352 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15353 b cont
15354 ' <confdefs.h | sed '
15355 s/'"$ac_delim"'/"\\\
15356 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15357
15358 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15359 for (key in D) D_is_set[key] = 1
15360 FS = "\a"
15361 }
15362 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15363 line = \$ 0
15364 split(line, arg, " ")
15365 if (arg[1] == "#") {
15366 defundef = arg[2]
15367 mac1 = arg[3]
15368 } else {
15369 defundef = substr(arg[1], 2)
15370 mac1 = arg[2]
15371 }
15372 split(mac1, mac2, "(") #)
15373 macro = mac2[1]
15374 prefix = substr(line, 1, index(line, defundef) - 1)
15375 if (D_is_set[macro]) {
15376 # Preserve the white space surrounding the "#".
15377 print prefix "define", macro P[macro] D[macro]
15378 next
15379 } else {
15380 # Replace #undef with comments. This is necessary, for example,
15381 # in the case of _POSIX_SOURCE, which is predefined and required
15382 # on some systems where configure will not decide to define it.
15383 if (defundef == "undef") {
15384 print "/*", prefix defundef, macro, "*/"
15385 next
15386 }
15387 }
15388 }
15389 { print }
15390 _ACAWK
15391 _ACEOF
15392 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15393 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15394 fi # test -n "$CONFIG_HEADERS"
15395
15396
15397 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15398 shift
15399 for ac_tag
15400 do
15401 case $ac_tag in
15402 :[FHLC]) ac_mode=$ac_tag; continue;;
15403 esac
15404 case $ac_mode$ac_tag in
15405 :[FHL]*:*);;
15406 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15407 :[FH]-) ac_tag=-:-;;
15408 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15409 esac
15410 ac_save_IFS=$IFS
15411 IFS=:
15412 set x $ac_tag
15413 IFS=$ac_save_IFS
15414 shift
15415 ac_file=$1
15416 shift
15417
15418 case $ac_mode in
15419 :L) ac_source=$1;;
15420 :[FH])
15421 ac_file_inputs=
15422 for ac_f
15423 do
15424 case $ac_f in
15425 -) ac_f="$ac_tmp/stdin";;
15426 *) # Look for the file first in the build tree, then in the source tree
15427 # (if the path is not absolute). The absolute path cannot be DOS-style,
15428 # because $ac_f cannot contain `:'.
15429 test -f "$ac_f" ||
15430 case $ac_f in
15431 [\\/$]*) false;;
15432 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15433 esac ||
15434 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15435 esac
15436 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15437 as_fn_append ac_file_inputs " '$ac_f'"
15438 done
15439
15440 # Let's still pretend it is `configure' which instantiates (i.e., don't
15441 # use $as_me), people would be surprised to read:
15442 # /* config.h. Generated by config.status. */
15443 configure_input='Generated from '`
15444 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15445 `' by configure.'
15446 if test x"$ac_file" != x-; then
15447 configure_input="$ac_file. $configure_input"
15448 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15449 $as_echo "$as_me: creating $ac_file" >&6;}
15450 fi
15451 # Neutralize special characters interpreted by sed in replacement strings.
15452 case $configure_input in #(
15453 *\&* | *\|* | *\\* )
15454 ac_sed_conf_input=`$as_echo "$configure_input" |
15455 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15456 *) ac_sed_conf_input=$configure_input;;
15457 esac
15458
15459 case $ac_tag in
15460 *:-:* | *:-) cat >"$ac_tmp/stdin" \
15461 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15462 esac
15463 ;;
15464 esac
15465
15466 ac_dir=`$as_dirname -- "$ac_file" ||
15467 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15468 X"$ac_file" : 'X\(//\)[^/]' \| \
15469 X"$ac_file" : 'X\(//\)$' \| \
15470 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15471 $as_echo X"$ac_file" |
15472 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15473 s//\1/
15474 q
15475 }
15476 /^X\(\/\/\)[^/].*/{
15477 s//\1/
15478 q
15479 }
15480 /^X\(\/\/\)$/{
15481 s//\1/
15482 q
15483 }
15484 /^X\(\/\).*/{
15485 s//\1/
15486 q
15487 }
15488 s/.*/./; q'`
15489 as_dir="$ac_dir"; as_fn_mkdir_p
15490 ac_builddir=.
15491
15492 case "$ac_dir" in
15493 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15494 *)
15495 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15496 # A ".." for each directory in $ac_dir_suffix.
15497 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15498 case $ac_top_builddir_sub in
15499 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15500 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15501 esac ;;
15502 esac
15503 ac_abs_top_builddir=$ac_pwd
15504 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15505 # for backward compatibility:
15506 ac_top_builddir=$ac_top_build_prefix
15507
15508 case $srcdir in
15509 .) # We are building in place.
15510 ac_srcdir=.
15511 ac_top_srcdir=$ac_top_builddir_sub
15512 ac_abs_top_srcdir=$ac_pwd ;;
15513 [\\/]* | ?:[\\/]* ) # Absolute name.
15514 ac_srcdir=$srcdir$ac_dir_suffix;
15515 ac_top_srcdir=$srcdir
15516 ac_abs_top_srcdir=$srcdir ;;
15517 *) # Relative name.
15518 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15519 ac_top_srcdir=$ac_top_build_prefix$srcdir
15520 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15521 esac
15522 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15523
15524
15525 case $ac_mode in
15526 :F)
15527 #
15528 # CONFIG_FILE
15529 #
15530
15531 case $INSTALL in
15532 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15533 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15534 esac
15535 ac_MKDIR_P=$MKDIR_P
15536 case $MKDIR_P in
15537 [\\/$]* | ?:[\\/]* ) ;;
15538 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15539 esac
15540 _ACEOF
15541
15542 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15543 # If the template does not know about datarootdir, expand it.
15544 # FIXME: This hack should be removed a few years after 2.60.
15545 ac_datarootdir_hack=; ac_datarootdir_seen=
15546 ac_sed_dataroot='
15547 /datarootdir/ {
15548 p
15549 q
15550 }
15551 /@datadir@/p
15552 /@docdir@/p
15553 /@infodir@/p
15554 /@localedir@/p
15555 /@mandir@/p'
15556 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15557 *datarootdir*) ac_datarootdir_seen=yes;;
15558 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15559 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15560 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15561 _ACEOF
15562 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15563 ac_datarootdir_hack='
15564 s&@datadir@&$datadir&g
15565 s&@docdir@&$docdir&g
15566 s&@infodir@&$infodir&g
15567 s&@localedir@&$localedir&g
15568 s&@mandir@&$mandir&g
15569 s&\\\${datarootdir}&$datarootdir&g' ;;
15570 esac
15571 _ACEOF
15572
15573 # Neutralize VPATH when `$srcdir' = `.'.
15574 # Shell code in configure.ac might set extrasub.
15575 # FIXME: do we really want to maintain this feature?
15576 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15577 ac_sed_extra="$ac_vpsub
15578 $extrasub
15579 _ACEOF
15580 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15581 :t
15582 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15583 s|@configure_input@|$ac_sed_conf_input|;t t
15584 s&@top_builddir@&$ac_top_builddir_sub&;t t
15585 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15586 s&@srcdir@&$ac_srcdir&;t t
15587 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15588 s&@top_srcdir@&$ac_top_srcdir&;t t
15589 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15590 s&@builddir@&$ac_builddir&;t t
15591 s&@abs_builddir@&$ac_abs_builddir&;t t
15592 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15593 s&@INSTALL@&$ac_INSTALL&;t t
15594 s&@MKDIR_P@&$ac_MKDIR_P&;t t
15595 $ac_datarootdir_hack
15596 "
15597 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15598 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15599
15600 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15601 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15602 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15603 "$ac_tmp/out"`; test -z "$ac_out"; } &&
15604 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15605 which seems to be undefined. Please make sure it is defined" >&5
15606 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15607 which seems to be undefined. Please make sure it is defined" >&2;}
15608
15609 rm -f "$ac_tmp/stdin"
15610 case $ac_file in
15611 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15612 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15613 esac \
15614 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15615 ;;
15616 :H)
15617 #
15618 # CONFIG_HEADER
15619 #
15620 if test x"$ac_file" != x-; then
15621 {
15622 $as_echo "/* $configure_input */" \
15623 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15624 } >"$ac_tmp/config.h" \
15625 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15626 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15627 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15628 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15629 else
15630 rm -f "$ac_file"
15631 mv "$ac_tmp/config.h" "$ac_file" \
15632 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15633 fi
15634 else
15635 $as_echo "/* $configure_input */" \
15636 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15637 || as_fn_error $? "could not create -" "$LINENO" 5
15638 fi
15639 # Compute "$ac_file"'s index in $config_headers.
15640 _am_arg="$ac_file"
15641 _am_stamp_count=1
15642 for _am_header in $config_headers :; do
15643 case $_am_header in
15644 $_am_arg | $_am_arg:* )
15645 break ;;
15646 * )
15647 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15648 esac
15649 done
15650 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15651 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15652 X"$_am_arg" : 'X\(//\)[^/]' \| \
15653 X"$_am_arg" : 'X\(//\)$' \| \
15654 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15655 $as_echo X"$_am_arg" |
15656 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15657 s//\1/
15658 q
15659 }
15660 /^X\(\/\/\)[^/].*/{
15661 s//\1/
15662 q
15663 }
15664 /^X\(\/\/\)$/{
15665 s//\1/
15666 q
15667 }
15668 /^X\(\/\).*/{
15669 s//\1/
15670 q
15671 }
15672 s/.*/./; q'`/stamp-h$_am_stamp_count
15673 ;;
15674
15675 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15676 $as_echo "$as_me: executing $ac_file commands" >&6;}
15677 ;;
15678 esac
15679
15680
15681 case $ac_file$ac_mode in
15682 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15683 # Older Autoconf quotes --file arguments for eval, but not when files
15684 # are listed without --file. Let's play safe and only enable the eval
15685 # if we detect the quoting.
15686 case $CONFIG_FILES in
15687 *\'*) eval set x "$CONFIG_FILES" ;;
15688 *) set x $CONFIG_FILES ;;
15689 esac
15690 shift
15691 for mf
15692 do
15693 # Strip MF so we end up with the name of the file.
15694 mf=`echo "$mf" | sed -e 's/:.*$//'`
15695 # Check whether this is an Automake generated Makefile or not.
15696 # We used to match only the files named 'Makefile.in', but
15697 # some people rename them; so instead we look at the file content.
15698 # Grep'ing the first line is not enough: some people post-process
15699 # each Makefile.in and add a new line on top of each file to say so.
15700 # Grep'ing the whole file is not good either: AIX grep has a line
15701 # limit of 2048, but all sed's we know have understand at least 4000.
15702 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
15703 dirpart=`$as_dirname -- "$mf" ||
15704 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15705 X"$mf" : 'X\(//\)[^/]' \| \
15706 X"$mf" : 'X\(//\)$' \| \
15707 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15708 $as_echo X"$mf" |
15709 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15710 s//\1/
15711 q
15712 }
15713 /^X\(\/\/\)[^/].*/{
15714 s//\1/
15715 q
15716 }
15717 /^X\(\/\/\)$/{
15718 s//\1/
15719 q
15720 }
15721 /^X\(\/\).*/{
15722 s//\1/
15723 q
15724 }
15725 s/.*/./; q'`
15726 else
15727 continue
15728 fi
15729 # Extract the definition of DEPDIR, am__include, and am__quote
15730 # from the Makefile without running 'make'.
15731 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15732 test -z "$DEPDIR" && continue
15733 am__include=`sed -n 's/^am__include = //p' < "$mf"`
15734 test -z "$am__include" && continue
15735 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15736 # Find all dependency output files, they are included files with
15737 # $(DEPDIR) in their names. We invoke sed twice because it is the
15738 # simplest approach to changing $(DEPDIR) to its actual value in the
15739 # expansion.
15740 for file in `sed -n "
15741 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15742 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
15743 # Make sure the directory exists.
15744 test -f "$dirpart/$file" && continue
15745 fdir=`$as_dirname -- "$file" ||
15746 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15747 X"$file" : 'X\(//\)[^/]' \| \
15748 X"$file" : 'X\(//\)$' \| \
15749 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15750 $as_echo X"$file" |
15751 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15752 s//\1/
15753 q
15754 }
15755 /^X\(\/\/\)[^/].*/{
15756 s//\1/
15757 q
15758 }
15759 /^X\(\/\/\)$/{
15760 s//\1/
15761 q
15762 }
15763 /^X\(\/\).*/{
15764 s//\1/
15765 q
15766 }
15767 s/.*/./; q'`
15768 as_dir=$dirpart/$fdir; as_fn_mkdir_p
15769 # echo "creating $dirpart/$file"
15770 echo '# dummy' > "$dirpart/$file"
15771 done
15772 done
15773 }
15774 ;;
15775 "libtool":C)
15776
15777 # See if we are running on zsh, and set the options which allow our
15778 # commands through without removal of \ escapes.
15779 if test -n "${ZSH_VERSION+set}" ; then
15780 setopt NO_GLOB_SUBST
15781 fi
15782
15783 cfgfile="${ofile}T"
15784 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15785 $RM "$cfgfile"
15786
15787 cat <<_LT_EOF >> "$cfgfile"
15788 #! $SHELL
15789
15790 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15791 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15792 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15793 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15794 #
15795 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15796 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
15797 # Written by Gordon Matzigkeit, 1996
15798 #
15799 # This file is part of GNU Libtool.
15800 #
15801 # GNU Libtool is free software; you can redistribute it and/or
15802 # modify it under the terms of the GNU General Public License as
15803 # published by the Free Software Foundation; either version 2 of
15804 # the License, or (at your option) any later version.
15805 #
15806 # As a special exception to the GNU General Public License,
15807 # if you distribute this file as part of a program or library that
15808 # is built using GNU Libtool, you may include this file under the
15809 # same distribution terms that you use for the rest of that program.
15810 #
15811 # GNU Libtool is distributed in the hope that it will be useful,
15812 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15813 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15814 # GNU General Public License for more details.
15815 #
15816 # You should have received a copy of the GNU General Public License
15817 # along with GNU Libtool; see the file COPYING. If not, a copy
15818 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15819 # obtained by writing to the Free Software Foundation, Inc.,
15820 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15821
15822
15823 # The names of the tagged configurations supported by this script.
15824 available_tags=""
15825
15826 # ### BEGIN LIBTOOL CONFIG
15827
15828 # Which release of libtool.m4 was used?
15829 macro_version=$macro_version
15830 macro_revision=$macro_revision
15831
15832 # Whether or not to build shared libraries.
15833 build_libtool_libs=$enable_shared
15834
15835 # Whether or not to build static libraries.
15836 build_old_libs=$enable_static
15837
15838 # What type of objects to build.
15839 pic_mode=$pic_mode
15840
15841 # Whether or not to optimize for fast installation.
15842 fast_install=$enable_fast_install
15843
15844 # Shell to use when invoking shell scripts.
15845 SHELL=$lt_SHELL
15846
15847 # An echo program that protects backslashes.
15848 ECHO=$lt_ECHO
15849
15850 # The host system.
15851 host_alias=$host_alias
15852 host=$host
15853 host_os=$host_os
15854
15855 # The build system.
15856 build_alias=$build_alias
15857 build=$build
15858 build_os=$build_os
15859
15860 # A sed program that does not truncate output.
15861 SED=$lt_SED
15862
15863 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15864 Xsed="\$SED -e 1s/^X//"
15865
15866 # A grep program that handles long lines.
15867 GREP=$lt_GREP
15868
15869 # An ERE matcher.
15870 EGREP=$lt_EGREP
15871
15872 # A literal string matcher.
15873 FGREP=$lt_FGREP
15874
15875 # A BSD- or MS-compatible name lister.
15876 NM=$lt_NM
15877
15878 # Whether we need soft or hard links.
15879 LN_S=$lt_LN_S
15880
15881 # What is the maximum length of a command?
15882 max_cmd_len=$max_cmd_len
15883
15884 # Object file suffix (normally "o").
15885 objext=$ac_objext
15886
15887 # Executable file suffix (normally "").
15888 exeext=$exeext
15889
15890 # whether the shell understands "unset".
15891 lt_unset=$lt_unset
15892
15893 # turn spaces into newlines.
15894 SP2NL=$lt_lt_SP2NL
15895
15896 # turn newlines into spaces.
15897 NL2SP=$lt_lt_NL2SP
15898
15899 # An object symbol dumper.
15900 OBJDUMP=$lt_OBJDUMP
15901
15902 # Method to check whether dependent libraries are shared objects.
15903 deplibs_check_method=$lt_deplibs_check_method
15904
15905 # Command to use when deplibs_check_method == "file_magic".
15906 file_magic_cmd=$lt_file_magic_cmd
15907
15908 # The archiver.
15909 AR=$lt_AR
15910 AR_FLAGS=$lt_AR_FLAGS
15911
15912 # A symbol stripping program.
15913 STRIP=$lt_STRIP
15914
15915 # Commands used to install an old-style archive.
15916 RANLIB=$lt_RANLIB
15917 old_postinstall_cmds=$lt_old_postinstall_cmds
15918 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15919
15920 # Whether to use a lock for old archive extraction.
15921 lock_old_archive_extraction=$lock_old_archive_extraction
15922
15923 # A C compiler.
15924 LTCC=$lt_CC
15925
15926 # LTCC compiler flags.
15927 LTCFLAGS=$lt_CFLAGS
15928
15929 # Take the output of nm and produce a listing of raw symbols and C names.
15930 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15931
15932 # Transform the output of nm in a proper C declaration.
15933 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15934
15935 # Transform the output of nm in a C name address pair.
15936 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15937
15938 # Transform the output of nm in a C name address pair when lib prefix is needed.
15939 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15940
15941 # The name of the directory that contains temporary libtool files.
15942 objdir=$objdir
15943
15944 # Used to examine libraries when file_magic_cmd begins with "file".
15945 MAGIC_CMD=$MAGIC_CMD
15946
15947 # Must we lock files when doing compilation?
15948 need_locks=$lt_need_locks
15949
15950 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15951 DSYMUTIL=$lt_DSYMUTIL
15952
15953 # Tool to change global to local symbols on Mac OS X.
15954 NMEDIT=$lt_NMEDIT
15955
15956 # Tool to manipulate fat objects and archives on Mac OS X.
15957 LIPO=$lt_LIPO
15958
15959 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15960 OTOOL=$lt_OTOOL
15961
15962 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15963 OTOOL64=$lt_OTOOL64
15964
15965 # Old archive suffix (normally "a").
15966 libext=$libext
15967
15968 # Shared library suffix (normally ".so").
15969 shrext_cmds=$lt_shrext_cmds
15970
15971 # The commands to extract the exported symbol list from a shared archive.
15972 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15973
15974 # Variables whose values should be saved in libtool wrapper scripts and
15975 # restored at link time.
15976 variables_saved_for_relink=$lt_variables_saved_for_relink
15977
15978 # Do we need the "lib" prefix for modules?
15979 need_lib_prefix=$need_lib_prefix
15980
15981 # Do we need a version for libraries?
15982 need_version=$need_version
15983
15984 # Library versioning type.
15985 version_type=$version_type
15986
15987 # Shared library runtime path variable.
15988 runpath_var=$runpath_var
15989
15990 # Shared library path variable.
15991 shlibpath_var=$shlibpath_var
15992
15993 # Is shlibpath searched before the hard-coded library search path?
15994 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15995
15996 # Format of library name prefix.
15997 libname_spec=$lt_libname_spec
15998
15999 # List of archive names. First name is the real one, the rest are links.
16000 # The last name is the one that the linker finds with -lNAME
16001 library_names_spec=$lt_library_names_spec
16002
16003 # The coded name of the library, if different from the real name.
16004 soname_spec=$lt_soname_spec
16005
16006 # Permission mode override for installation of shared libraries.
16007 install_override_mode=$lt_install_override_mode
16008
16009 # Command to use after installation of a shared archive.
16010 postinstall_cmds=$lt_postinstall_cmds
16011
16012 # Command to use after uninstallation of a shared archive.
16013 postuninstall_cmds=$lt_postuninstall_cmds
16014
16015 # Commands used to finish a libtool library installation in a directory.
16016 finish_cmds=$lt_finish_cmds
16017
16018 # As "finish_cmds", except a single script fragment to be evaled but
16019 # not shown.
16020 finish_eval=$lt_finish_eval
16021
16022 # Whether we should hardcode library paths into libraries.
16023 hardcode_into_libs=$hardcode_into_libs
16024
16025 # Compile-time system search path for libraries.
16026 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16027
16028 # Run-time system search path for libraries.
16029 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16030
16031 # Whether dlopen is supported.
16032 dlopen_support=$enable_dlopen
16033
16034 # Whether dlopen of programs is supported.
16035 dlopen_self=$enable_dlopen_self
16036
16037 # Whether dlopen of statically linked programs is supported.
16038 dlopen_self_static=$enable_dlopen_self_static
16039
16040 # Commands to strip libraries.
16041 old_striplib=$lt_old_striplib
16042 striplib=$lt_striplib
16043
16044
16045 # The linker used to build libraries.
16046 LD=$lt_LD
16047
16048 # How to create reloadable object files.
16049 reload_flag=$lt_reload_flag
16050 reload_cmds=$lt_reload_cmds
16051
16052 # Commands used to build an old-style archive.
16053 old_archive_cmds=$lt_old_archive_cmds
16054
16055 # A language specific compiler.
16056 CC=$lt_compiler
16057
16058 # Is the compiler the GNU compiler?
16059 with_gcc=$GCC
16060
16061 # Compiler flag to turn off builtin functions.
16062 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16063
16064 # How to pass a linker flag through the compiler.
16065 wl=$lt_lt_prog_compiler_wl
16066
16067 # Additional compiler flags for building library objects.
16068 pic_flag=$lt_lt_prog_compiler_pic
16069
16070 # Compiler flag to prevent dynamic linking.
16071 link_static_flag=$lt_lt_prog_compiler_static
16072
16073 # Does compiler simultaneously support -c and -o options?
16074 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16075
16076 # Whether or not to add -lc for building shared libraries.
16077 build_libtool_need_lc=$archive_cmds_need_lc
16078
16079 # Whether or not to disallow shared libs when runtime libs are static.
16080 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16081
16082 # Compiler flag to allow reflexive dlopens.
16083 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16084
16085 # Compiler flag to generate shared objects directly from archives.
16086 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16087
16088 # Whether the compiler copes with passing no objects directly.
16089 compiler_needs_object=$lt_compiler_needs_object
16090
16091 # Create an old-style archive from a shared archive.
16092 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16093
16094 # Create a temporary old-style archive to link instead of a shared archive.
16095 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16096
16097 # Commands used to build a shared archive.
16098 archive_cmds=$lt_archive_cmds
16099 archive_expsym_cmds=$lt_archive_expsym_cmds
16100
16101 # Commands used to build a loadable module if different from building
16102 # a shared archive.
16103 module_cmds=$lt_module_cmds
16104 module_expsym_cmds=$lt_module_expsym_cmds
16105
16106 # Whether we are building with GNU ld or not.
16107 with_gnu_ld=$lt_with_gnu_ld
16108
16109 # Flag that allows shared libraries with undefined symbols to be built.
16110 allow_undefined_flag=$lt_allow_undefined_flag
16111
16112 # Flag that enforces no undefined symbols.
16113 no_undefined_flag=$lt_no_undefined_flag
16114
16115 # Flag to hardcode \$libdir into a binary during linking.
16116 # This must work even if \$libdir does not exist
16117 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16118
16119 # If ld is used when linking, flag to hardcode \$libdir into a binary
16120 # during linking. This must work even if \$libdir does not exist.
16121 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16122
16123 # Whether we need a single "-rpath" flag with a separated argument.
16124 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16125
16126 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16127 # DIR into the resulting binary.
16128 hardcode_direct=$hardcode_direct
16129
16130 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16131 # DIR into the resulting binary and the resulting library dependency is
16132 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16133 # library is relocated.
16134 hardcode_direct_absolute=$hardcode_direct_absolute
16135
16136 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16137 # into the resulting binary.
16138 hardcode_minus_L=$hardcode_minus_L
16139
16140 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16141 # into the resulting binary.
16142 hardcode_shlibpath_var=$hardcode_shlibpath_var
16143
16144 # Set to "yes" if building a shared library automatically hardcodes DIR
16145 # into the library and all subsequent libraries and executables linked
16146 # against it.
16147 hardcode_automatic=$hardcode_automatic
16148
16149 # Set to yes if linker adds runtime paths of dependent libraries
16150 # to runtime path list.
16151 inherit_rpath=$inherit_rpath
16152
16153 # Whether libtool must link a program against all its dependency libraries.
16154 link_all_deplibs=$link_all_deplibs
16155
16156 # Fix the shell variable \$srcfile for the compiler.
16157 fix_srcfile_path=$lt_fix_srcfile_path
16158
16159 # Set to "yes" if exported symbols are required.
16160 always_export_symbols=$always_export_symbols
16161
16162 # The commands to list exported symbols.
16163 export_symbols_cmds=$lt_export_symbols_cmds
16164
16165 # Symbols that should not be listed in the preloaded symbols.
16166 exclude_expsyms=$lt_exclude_expsyms
16167
16168 # Symbols that must always be exported.
16169 include_expsyms=$lt_include_expsyms
16170
16171 # Commands necessary for linking programs (against libraries) with templates.
16172 prelink_cmds=$lt_prelink_cmds
16173
16174 # Specify filename containing input files.
16175 file_list_spec=$lt_file_list_spec
16176
16177 # How to hardcode a shared library path into an executable.
16178 hardcode_action=$hardcode_action
16179
16180 # ### END LIBTOOL CONFIG
16181
16182 _LT_EOF
16183
16184 case $host_os in
16185 aix3*)
16186 cat <<\_LT_EOF >> "$cfgfile"
16187 # AIX sometimes has problems with the GCC collect2 program. For some
16188 # reason, if we set the COLLECT_NAMES environment variable, the problems
16189 # vanish in a puff of smoke.
16190 if test "X${COLLECT_NAMES+set}" != Xset; then
16191 COLLECT_NAMES=
16192 export COLLECT_NAMES
16193 fi
16194 _LT_EOF
16195 ;;
16196 esac
16197
16198
16199 ltmain="$ac_aux_dir/ltmain.sh"
16200
16201
16202 # We use sed instead of cat because bash on DJGPP gets confused if
16203 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16204 # text mode, it properly converts lines to CR/LF. This bash problem
16205 # is reportedly fixed, but why not run on old versions too?
16206 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16207 || (rm -f "$cfgfile"; exit 1)
16208
16209 case $xsi_shell in
16210 yes)
16211 cat << \_LT_EOF >> "$cfgfile"
16212
16213 # func_dirname file append nondir_replacement
16214 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16215 # otherwise set result to NONDIR_REPLACEMENT.
16216 func_dirname ()
16217 {
16218 case ${1} in
16219 */*) func_dirname_result="${1%/*}${2}" ;;
16220 * ) func_dirname_result="${3}" ;;
16221 esac
16222 }
16223
16224 # func_basename file
16225 func_basename ()
16226 {
16227 func_basename_result="${1##*/}"
16228 }
16229
16230 # func_dirname_and_basename file append nondir_replacement
16231 # perform func_basename and func_dirname in a single function
16232 # call:
16233 # dirname: Compute the dirname of FILE. If nonempty,
16234 # add APPEND to the result, otherwise set result
16235 # to NONDIR_REPLACEMENT.
16236 # value returned in "$func_dirname_result"
16237 # basename: Compute filename of FILE.
16238 # value retuned in "$func_basename_result"
16239 # Implementation must be kept synchronized with func_dirname
16240 # and func_basename. For efficiency, we do not delegate to
16241 # those functions but instead duplicate the functionality here.
16242 func_dirname_and_basename ()
16243 {
16244 case ${1} in
16245 */*) func_dirname_result="${1%/*}${2}" ;;
16246 * ) func_dirname_result="${3}" ;;
16247 esac
16248 func_basename_result="${1##*/}"
16249 }
16250
16251 # func_stripname prefix suffix name
16252 # strip PREFIX and SUFFIX off of NAME.
16253 # PREFIX and SUFFIX must not contain globbing or regex special
16254 # characters, hashes, percent signs, but SUFFIX may contain a leading
16255 # dot (in which case that matches only a dot).
16256 func_stripname ()
16257 {
16258 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16259 # positional parameters, so assign one to ordinary parameter first.
16260 func_stripname_result=${3}
16261 func_stripname_result=${func_stripname_result#"${1}"}
16262 func_stripname_result=${func_stripname_result%"${2}"}
16263 }
16264
16265 # func_opt_split
16266 func_opt_split ()
16267 {
16268 func_opt_split_opt=${1%%=*}
16269 func_opt_split_arg=${1#*=}
16270 }
16271
16272 # func_lo2o object
16273 func_lo2o ()
16274 {
16275 case ${1} in
16276 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16277 *) func_lo2o_result=${1} ;;
16278 esac
16279 }
16280
16281 # func_xform libobj-or-source
16282 func_xform ()
16283 {
16284 func_xform_result=${1%.*}.lo
16285 }
16286
16287 # func_arith arithmetic-term...
16288 func_arith ()
16289 {
16290 func_arith_result=$(( $* ))
16291 }
16292
16293 # func_len string
16294 # STRING may not start with a hyphen.
16295 func_len ()
16296 {
16297 func_len_result=${#1}
16298 }
16299
16300 _LT_EOF
16301 ;;
16302 *) # Bourne compatible functions.
16303 cat << \_LT_EOF >> "$cfgfile"
16304
16305 # func_dirname file append nondir_replacement
16306 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16307 # otherwise set result to NONDIR_REPLACEMENT.
16308 func_dirname ()
16309 {
16310 # Extract subdirectory from the argument.
16311 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
16312 if test "X$func_dirname_result" = "X${1}"; then
16313 func_dirname_result="${3}"
16314 else
16315 func_dirname_result="$func_dirname_result${2}"
16316 fi
16317 }
16318
16319 # func_basename file
16320 func_basename ()
16321 {
16322 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
16323 }
16324
16325
16326 # func_stripname prefix suffix name
16327 # strip PREFIX and SUFFIX off of NAME.
16328 # PREFIX and SUFFIX must not contain globbing or regex special
16329 # characters, hashes, percent signs, but SUFFIX may contain a leading
16330 # dot (in which case that matches only a dot).
16331 # func_strip_suffix prefix name
16332 func_stripname ()
16333 {
16334 case ${2} in
16335 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
16336 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
16337 esac
16338 }
16339
16340 # sed scripts:
16341 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16342 my_sed_long_arg='1s/^-[^=]*=//'
16343
16344 # func_opt_split
16345 func_opt_split ()
16346 {
16347 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
16348 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
16349 }
16350
16351 # func_lo2o object
16352 func_lo2o ()
16353 {
16354 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
16355 }
16356
16357 # func_xform libobj-or-source
16358 func_xform ()
16359 {
16360 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
16361 }
16362
16363 # func_arith arithmetic-term...
16364 func_arith ()
16365 {
16366 func_arith_result=`expr "$@"`
16367 }
16368
16369 # func_len string
16370 # STRING may not start with a hyphen.
16371 func_len ()
16372 {
16373 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
16374 }
16375
16376 _LT_EOF
16377 esac
16378
16379 case $lt_shell_append in
16380 yes)
16381 cat << \_LT_EOF >> "$cfgfile"
16382
16383 # func_append var value
16384 # Append VALUE to the end of shell variable VAR.
16385 func_append ()
16386 {
16387 eval "$1+=\$2"
16388 }
16389 _LT_EOF
16390 ;;
16391 *)
16392 cat << \_LT_EOF >> "$cfgfile"
16393
16394 # func_append var value
16395 # Append VALUE to the end of shell variable VAR.
16396 func_append ()
16397 {
16398 eval "$1=\$$1\$2"
16399 }
16400
16401 _LT_EOF
16402 ;;
16403 esac
16404
16405
16406 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16407 || (rm -f "$cfgfile"; exit 1)
16408
16409 mv -f "$cfgfile" "$ofile" ||
16410 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16411 chmod +x "$ofile"
16412
16413 ;;
16414 "default-1":C)
16415 for ac_file in $CONFIG_FILES; do
16416 # Support "outfile[:infile[:infile...]]"
16417 case "$ac_file" in
16418 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16419 esac
16420 # PO directories have a Makefile.in generated from Makefile.in.in.
16421 case "$ac_file" in */Makefile.in)
16422 # Adjust a relative srcdir.
16423 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
16424 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
16425 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
16426 # In autoconf-2.13 it is called $ac_given_srcdir.
16427 # In autoconf-2.50 it is called $srcdir.
16428 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
16429 case "$ac_given_srcdir" in
16430 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
16431 /*) top_srcdir="$ac_given_srcdir" ;;
16432 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
16433 esac
16434 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
16435 rm -f "$ac_dir/POTFILES"
16436 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
16437 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
16438 POMAKEFILEDEPS="POTFILES.in"
16439 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
16440 # on $ac_dir but don't depend on user-specified configuration
16441 # parameters.
16442 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
16443 # The LINGUAS file contains the set of available languages.
16444 if test -n "$OBSOLETE_ALL_LINGUAS"; then
16445 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.ac is obsolete" || echo "setting ALL_LINGUAS in configure.ac is obsolete"
16446 fi
16447 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
16448 # Hide the ALL_LINGUAS assigment from automake.
16449 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
16450 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
16451 else
16452 # The set of available languages was given in configure.ac.
16453 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
16454 fi
16455 case "$ac_given_srcdir" in
16456 .) srcdirpre= ;;
16457 *) srcdirpre='$(srcdir)/' ;;
16458 esac
16459 POFILES=
16460 GMOFILES=
16461 UPDATEPOFILES=
16462 DUMMYPOFILES=
16463 for lang in $ALL_LINGUAS; do
16464 POFILES="$POFILES $srcdirpre$lang.po"
16465 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
16466 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
16467 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
16468 done
16469 # CATALOGS depends on both $ac_dir and the user's LINGUAS
16470 # environment variable.
16471 INST_LINGUAS=
16472 if test -n "$ALL_LINGUAS"; then
16473 for presentlang in $ALL_LINGUAS; do
16474 useit=no
16475 if test "%UNSET%" != "$LINGUAS"; then
16476 desiredlanguages="$LINGUAS"
16477 else
16478 desiredlanguages="$ALL_LINGUAS"
16479 fi
16480 for desiredlang in $desiredlanguages; do
16481 # Use the presentlang catalog if desiredlang is
16482 # a. equal to presentlang, or
16483 # b. a variant of presentlang (because in this case,
16484 # presentlang can be used as a fallback for messages
16485 # which are not translated in the desiredlang catalog).
16486 case "$desiredlang" in
16487 "$presentlang"*) useit=yes;;
16488 esac
16489 done
16490 if test $useit = yes; then
16491 INST_LINGUAS="$INST_LINGUAS $presentlang"
16492 fi
16493 done
16494 fi
16495 CATALOGS=
16496 if test -n "$INST_LINGUAS"; then
16497 for lang in $INST_LINGUAS; do
16498 CATALOGS="$CATALOGS $lang.gmo"
16499 done
16500 fi
16501 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
16502 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"
16503 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
16504 if test -f "$f"; then
16505 case "$f" in
16506 *.orig | *.bak | *~) ;;
16507 *) cat "$f" >> "$ac_dir/Makefile" ;;
16508 esac
16509 fi
16510 done
16511 fi
16512 ;;
16513 esac
16514 done ;;
16515 "default":C) rm -f targ-cpu.c targ-cpu.h obj-format.h obj-format.c targ-env.h atof-targ.c itbl-cpu.h
16516 echo '#include "tc-'"${target_cpu_type}"'.h"' > targ-cpu.h
16517 echo '#include "obj-'"${obj_format}"'.h"' > obj-format.h
16518 echo '#include "te-'"${te_file}"'.h"' > targ-env.h
16519 echo '#include "itbl-'"${target_cpu_type}"'.h"' > itbl-cpu.h
16520 if test "x$cgen_cpu_prefix" != x ; then
16521 echo '#include "opcodes/'"${cgen_cpu_prefix}"'-desc.h"' > cgen-desc.h
16522 fi ;;
16523
16524 esac
16525 done # for ac_tag
16526
16527
16528 as_fn_exit 0
16529 _ACEOF
16530 ac_clean_files=$ac_clean_files_save
16531
16532 test $ac_write_fail = 0 ||
16533 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16534
16535
16536 # configure is writing to config.log, and then calls config.status.
16537 # config.status does its own redirection, appending to config.log.
16538 # Unfortunately, on DOS this fails, as config.log is still kept open
16539 # by configure, so config.status won't be able to write to it; its
16540 # output is simply discarded. So we exec the FD to /dev/null,
16541 # effectively closing config.log, so it can be properly (re)opened and
16542 # appended to by config.status. When coming back to configure, we
16543 # need to make the FD available again.
16544 if test "$no_create" != yes; then
16545 ac_cs_success=:
16546 ac_config_status_args=
16547 test "$silent" = yes &&
16548 ac_config_status_args="$ac_config_status_args --quiet"
16549 exec 5>/dev/null
16550 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16551 exec 5>>config.log
16552 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16553 # would make configure fail if this is the last instruction.
16554 $ac_cs_success || as_fn_exit 1
16555 fi
16556 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16557 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16558 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16559 fi
16560
16561
16562
16563 touch config.status.tmp
16564 if touch --reference=config.status config.status.tmp > /dev/null 2>&1; then
16565 sed '/as_fn_exit 0/i \
16566 sed -e \"s/^\t\\\(\\\$(AM_V_CCLD)\\\)/\t+ \\\1/\" Makefile > Makefile.tmp \
16567 touch --reference=Makefile Makefile.tmp \
16568 mv Makefile.tmp Makefile \
16569 ' config.status > config.status.tmp
16570 touch --reference=config.status config.status.tmp
16571 mv config.status.tmp config.status
16572 chmod +x config.status
16573 sed -e "s/^\t\(\$(AM_V_CCLD)\)/\t+ \1/" Makefile > Makefile.tmp
16574 touch --reference=Makefile Makefile.tmp
16575 mv Makefile.tmp Makefile
16576 else
16577 rm -f config.status.tmp
16578 fi