This is the 2.43.1 release
[binutils-gdb.git] / gas / configure
blob8f5450c09479fdf3ccd38ddbe1e9a33ac068284f
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for gas 2.43.1.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
30 esac
34 as_nl='
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
174 esac
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
190 else
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1
201 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 PATH=/empty FPATH=/empty; export PATH FPATH
206 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
207 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
208 if (eval "$as_required") 2>/dev/null; then :
209 as_have_required=yes
210 else
211 as_have_required=no
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
215 else
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217 as_found=false
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
222 as_found=:
223 case $as_dir in #(
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 break 2
235 done;;
236 esac
237 as_found=false
238 done
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
242 fi; }
243 IFS=$as_save_IFS
246 if test "x$CONFIG_SHELL" != x; then :
247 export CONFIG_SHELL
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
252 BASH_ENV=/dev/null
253 ENV=/dev/null
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255 case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260 esac
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265 exit 255
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274 else
275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
280 exit 1
284 SHELL=${CONFIG_SHELL-/bin/sh}
285 export SHELL
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
293 # as_fn_unset VAR
294 # ---------------
295 # Portably unset VAR.
296 as_fn_unset ()
298 { eval $1=; unset $1;}
300 as_unset=as_fn_unset
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
305 as_fn_set_status ()
307 return $1
308 } # as_fn_set_status
310 # as_fn_exit STATUS
311 # -----------------
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313 as_fn_exit ()
315 set +e
316 as_fn_set_status $1
317 exit $1
318 } # as_fn_exit
320 # as_fn_mkdir_p
321 # -------------
322 # Create "$as_dir" as a directory, including parents if necessary.
323 as_fn_mkdir_p ()
326 case $as_dir in #(
327 -*) as_dir=./$as_dir;;
328 esac
329 test -d "$as_dir" || eval $as_mkdir_p || {
330 as_dirs=
331 while :; do
332 case $as_dir in #(
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334 *) as_qdir=$as_dir;;
335 esac
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344 s//\1/
347 /^X\(\/\/\)[^/].*/{
348 s//\1/
351 /^X\(\/\/\)$/{
352 s//\1/
355 /^X\(\/\).*/{
356 s//\1/
359 s/.*/./; q'`
360 test -d "$as_dir" && break
361 done
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
366 } # as_fn_mkdir_p
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
380 # implementations.
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
384 eval $1+=\$2
386 else
387 as_fn_append ()
389 eval $1=\$$1\$2
391 fi # as_fn_append
393 # as_fn_arith ARG...
394 # ------------------
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399 eval 'as_fn_arith ()
401 as_val=$(( $* ))
403 else
404 as_fn_arith ()
406 as_val=`expr "$@" || test $? -eq 1`
408 fi # as_fn_arith
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
416 as_fn_error ()
418 as_status=$1; test $as_status -eq 0 && as_status=1
419 if test "$4"; then
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit $as_status
425 } # as_fn_error
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 as_expr=expr
430 else
431 as_expr=false
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 as_basename=basename
436 else
437 as_basename=false
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_dirname=dirname
442 else
443 as_dirname=false
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450 $as_echo X/"$0" |
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
452 s//\1/
455 /^X\/\(\/\/\)$/{
456 s//\1/
459 /^X\/\(\/\).*/{
460 s//\1/
463 s/.*/./; q'`
465 # Avoid depending upon Character Ranges.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_cr_alnum=$as_cr_Letters$as_cr_digits
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
478 sed -n '
480 /[$]LINENO/=
481 ' <$as_myself |
482 sed '
483 s/[$]LINENO.*/&-/
484 t lineno
486 :lineno
488 :loop
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490 t loop
491 s/-\n.*//
492 ' >$as_me.lineno &&
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
503 . "./$as_me.lineno"
504 # Exit status is that of the last command.
505 exit
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
510 -n*)
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
513 xy) ECHO_C='\c';;
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
515 ECHO_T=' ';;
516 esac;;
518 ECHO_N='-n';;
519 esac
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
524 else
525 rm -f conf$$.dir
526 mkdir conf$$.dir 2>/dev/null
528 if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s='ln -s'
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536 as_ln_s='cp -pR'
537 elif ln conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s=ln
539 else
540 as_ln_s='cp -pR'
542 else
543 as_ln_s='cp -pR'
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
548 if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
550 else
551 test -d ./-p && rmdir ./-p
552 as_mkdir_p=false
555 as_test_x='test -x'
556 as_executable_p=as_fn_executable_p
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
564 SHELL=${CONFIG_SHELL-/bin/sh}
567 test -n "$DJDIR" || exec 7<&0 </dev/null
568 exec 6>&1
570 # Name of the host.
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
576 # Initializations.
578 ac_default_prefix=/usr/local
579 ac_clean_files=
580 ac_config_libobj_dir=.
581 LIBOBJS=
582 cross_compiling=no
583 subdirs=
584 MFLAGS=
585 MAKEFLAGS=
587 # Identity of this package.
588 PACKAGE_NAME='gas'
589 PACKAGE_TARNAME='gas'
590 PACKAGE_VERSION='2.43.1'
591 PACKAGE_STRING='gas 2.43.1'
592 PACKAGE_BUGREPORT=''
593 PACKAGE_URL=''
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"
632 gt_needs=
633 ac_subst_vars='am__EXEEXT_FALSE
634 am__EXEEXT_TRUE
635 LTLIBOBJS
636 LIBOBJS
637 ZSTD_LIBS
638 ZSTD_CFLAGS
639 PKG_CONFIG_LIBDIR
640 PKG_CONFIG_PATH
641 PKG_CONFIG
642 zlibinc
643 zlibdir
644 LIBM
645 GENINSRC_NEVER_FALSE
646 GENINSRC_NEVER_TRUE
647 MAINT
648 MAINTAINER_MODE_FALSE
649 MAINTAINER_MODE_TRUE
650 CATOBJEXT
651 GENCAT
652 INSTOBJEXT
653 DATADIRNAME
654 CATALOGS
655 INCINTL
656 LIBINTL_DEP
657 POSUB
658 LTLIBINTL
659 LIBINTL
660 INTLLIBS
661 LTLIBICONV
662 LIBICONV
663 INTL_MACOSX_LIBS
664 MSGMERGE
665 XGETTEXT
666 GMSGFMT
667 MSGFMT
668 USE_NLS
669 MKINSTALLDIRS
670 LEXLIB
671 LEX_OUTPUT_ROOT
673 YFLAGS
674 YACC
675 OPCODES_LIB
676 atof
677 install_tooldir
678 te_file
679 obj_format
680 target_cpu_type
681 extra_objects
682 cgen_cpu_prefix
683 GDBINIT
684 WARN_WRITE_STRINGS
685 NO_WERROR
686 WARN_CFLAGS_FOR_BUILD
687 WARN_CFLAGS
688 do_compare
689 LARGEFILE_CPPFLAGS
690 OTOOL64
691 OTOOL
692 LIPO
693 NMEDIT
694 DSYMUTIL
695 RANLIB
697 OBJDUMP
698 LN_S
700 ac_ct_DUMPBIN
701 DUMPBIN
703 FGREP
705 LIBTOOL
706 EGREP
707 GREP
709 am__fastdepCC_FALSE
710 am__fastdepCC_TRUE
711 CCDEPMODE
712 am__nodep
713 AMDEPBACKSLASH
714 AMDEP_FALSE
715 AMDEP_TRUE
716 am__quote
717 am__include
718 DEPDIR
719 OBJEXT
720 EXEEXT
721 ac_ct_CC
722 CPPFLAGS
723 LDFLAGS
724 CFLAGS
726 AM_BACKSLASH
727 AM_DEFAULT_VERBOSITY
728 AM_DEFAULT_V
729 AM_V
730 am__untar
731 am__tar
732 AMTAR
733 am__leading_dot
734 SET_MAKE
736 mkdir_p
737 MKDIR_P
738 INSTALL_STRIP_PROGRAM
739 STRIP
740 install_sh
741 MAKEINFO
742 AUTOHEADER
743 AUTOMAKE
744 AUTOCONF
745 ACLOCAL
746 VERSION
747 PACKAGE
748 CYGPATH_W
749 am__isrc
750 INSTALL_DATA
751 INSTALL_SCRIPT
752 INSTALL_PROGRAM
753 target_os
754 target_vendor
755 target_cpu
756 target
757 host_os
758 host_vendor
759 host_cpu
760 host
761 build_os
762 build_vendor
763 build_cpu
764 build
765 target_alias
766 host_alias
767 build_alias
768 LIBS
769 ECHO_T
770 ECHO_N
771 ECHO_C
772 DEFS
773 mandir
774 localedir
775 libdir
776 psdir
777 pdfdir
778 dvidir
779 htmldir
780 infodir
781 docdir
782 oldincludedir
783 includedir
784 localstatedir
785 sharedstatedir
786 sysconfdir
787 datadir
788 datarootdir
789 libexecdir
790 sbindir
791 bindir
792 program_transform_name
793 prefix
794 exec_prefix
795 PACKAGE_URL
796 PACKAGE_BUGREPORT
797 PACKAGE_STRING
798 PACKAGE_VERSION
799 PACKAGE_TARNAME
800 PACKAGE_NAME
801 PATH_SEPARATOR
802 SHELL'
803 ac_subst_files=''
804 ac_user_opts='
805 enable_option_checking
806 enable_silent_rules
807 enable_dependency_tracking
808 enable_shared
809 enable_static
810 with_pic
811 enable_fast_install
812 with_gnu_ld
813 enable_libtool_lock
814 enable_plugins
815 enable_largefile
816 enable_targets
817 enable_checking
818 enable_compressed_debug_sections
819 enable_default_compressed_debug_sections_algorithm
820 enable_x86_relax_relocations
821 enable_elf_stt_common
822 enable_generate_build_notes
823 enable_mips_fix_loongson3_llsc
824 enable_x86_used_note
825 enable_default_riscv_attribute
826 enable_werror
827 enable_build_warnings
828 with_cpu
829 enable_nls
830 enable_rpath
831 with_libiconv_prefix
832 with_libiconv_type
833 with_libintl_prefix
834 with_libintl_type
835 enable_maintainer_mode
836 with_system_zlib
837 with_zstd
839 ac_precious_vars='build_alias
840 host_alias
841 target_alias
843 CFLAGS
844 LDFLAGS
845 LIBS
846 CPPFLAGS
848 YACC
849 YFLAGS
850 PKG_CONFIG
851 PKG_CONFIG_PATH
852 PKG_CONFIG_LIBDIR
853 ZSTD_CFLAGS
854 ZSTD_LIBS'
857 # Initialize some variables set by options.
858 ac_init_help=
859 ac_init_version=false
860 ac_unrecognized_opts=
861 ac_unrecognized_sep=
862 # The variables have the same names as the options, with
863 # dashes changed to underlines.
864 cache_file=/dev/null
865 exec_prefix=NONE
866 no_create=
867 no_recursion=
868 prefix=NONE
869 program_prefix=NONE
870 program_suffix=NONE
871 program_transform_name=s,x,x,
872 silent=
873 site=
874 srcdir=
875 verbose=
876 x_includes=NONE
877 x_libraries=NONE
879 # Installation directory options.
880 # These are left unexpanded so users can "make install exec_prefix=/foo"
881 # and all the variables that are supposed to be based on exec_prefix
882 # by default will actually change.
883 # Use braces instead of parens because sh, perl, etc. also accept them.
884 # (The list follows the same order as the GNU Coding Standards.)
885 bindir='${exec_prefix}/bin'
886 sbindir='${exec_prefix}/sbin'
887 libexecdir='${exec_prefix}/libexec'
888 datarootdir='${prefix}/share'
889 datadir='${datarootdir}'
890 sysconfdir='${prefix}/etc'
891 sharedstatedir='${prefix}/com'
892 localstatedir='${prefix}/var'
893 includedir='${prefix}/include'
894 oldincludedir='/usr/include'
895 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
896 infodir='${datarootdir}/info'
897 htmldir='${docdir}'
898 dvidir='${docdir}'
899 pdfdir='${docdir}'
900 psdir='${docdir}'
901 libdir='${exec_prefix}/lib'
902 localedir='${datarootdir}/locale'
903 mandir='${datarootdir}/man'
905 ac_prev=
906 ac_dashdash=
907 for ac_option
909 # If the previous option needs an argument, assign it.
910 if test -n "$ac_prev"; then
911 eval $ac_prev=\$ac_option
912 ac_prev=
913 continue
916 case $ac_option in
917 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
918 *=) ac_optarg= ;;
919 *) ac_optarg=yes ;;
920 esac
922 # Accept the important Cygnus configure options, so we can diagnose typos.
924 case $ac_dashdash$ac_option in
926 ac_dashdash=yes ;;
928 -bindir | --bindir | --bindi | --bind | --bin | --bi)
929 ac_prev=bindir ;;
930 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
931 bindir=$ac_optarg ;;
933 -build | --build | --buil | --bui | --bu)
934 ac_prev=build_alias ;;
935 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
936 build_alias=$ac_optarg ;;
938 -cache-file | --cache-file | --cache-fil | --cache-fi \
939 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
940 ac_prev=cache_file ;;
941 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
942 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
943 cache_file=$ac_optarg ;;
945 --config-cache | -C)
946 cache_file=config.cache ;;
948 -datadir | --datadir | --datadi | --datad)
949 ac_prev=datadir ;;
950 -datadir=* | --datadir=* | --datadi=* | --datad=*)
951 datadir=$ac_optarg ;;
953 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
954 | --dataroo | --dataro | --datar)
955 ac_prev=datarootdir ;;
956 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
957 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
958 datarootdir=$ac_optarg ;;
960 -disable-* | --disable-*)
961 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
962 # Reject names that are not valid shell variable names.
963 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
964 as_fn_error $? "invalid feature name: $ac_useropt"
965 ac_useropt_orig=$ac_useropt
966 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
967 case $ac_user_opts in
969 "enable_$ac_useropt"
970 "*) ;;
971 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
972 ac_unrecognized_sep=', ';;
973 esac
974 eval enable_$ac_useropt=no ;;
976 -docdir | --docdir | --docdi | --doc | --do)
977 ac_prev=docdir ;;
978 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
979 docdir=$ac_optarg ;;
981 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
982 ac_prev=dvidir ;;
983 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
984 dvidir=$ac_optarg ;;
986 -enable-* | --enable-*)
987 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
988 # Reject names that are not valid shell variable names.
989 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
990 as_fn_error $? "invalid feature name: $ac_useropt"
991 ac_useropt_orig=$ac_useropt
992 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
993 case $ac_user_opts in
995 "enable_$ac_useropt"
996 "*) ;;
997 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
998 ac_unrecognized_sep=', ';;
999 esac
1000 eval enable_$ac_useropt=\$ac_optarg ;;
1002 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1003 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1004 | --exec | --exe | --ex)
1005 ac_prev=exec_prefix ;;
1006 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1007 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1008 | --exec=* | --exe=* | --ex=*)
1009 exec_prefix=$ac_optarg ;;
1011 -gas | --gas | --ga | --g)
1012 # Obsolete; use --with-gas.
1013 with_gas=yes ;;
1015 -help | --help | --hel | --he | -h)
1016 ac_init_help=long ;;
1017 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1018 ac_init_help=recursive ;;
1019 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1020 ac_init_help=short ;;
1022 -host | --host | --hos | --ho)
1023 ac_prev=host_alias ;;
1024 -host=* | --host=* | --hos=* | --ho=*)
1025 host_alias=$ac_optarg ;;
1027 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1028 ac_prev=htmldir ;;
1029 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1030 | --ht=*)
1031 htmldir=$ac_optarg ;;
1033 -includedir | --includedir | --includedi | --included | --include \
1034 | --includ | --inclu | --incl | --inc)
1035 ac_prev=includedir ;;
1036 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1037 | --includ=* | --inclu=* | --incl=* | --inc=*)
1038 includedir=$ac_optarg ;;
1040 -infodir | --infodir | --infodi | --infod | --info | --inf)
1041 ac_prev=infodir ;;
1042 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1043 infodir=$ac_optarg ;;
1045 -libdir | --libdir | --libdi | --libd)
1046 ac_prev=libdir ;;
1047 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1048 libdir=$ac_optarg ;;
1050 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1051 | --libexe | --libex | --libe)
1052 ac_prev=libexecdir ;;
1053 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1054 | --libexe=* | --libex=* | --libe=*)
1055 libexecdir=$ac_optarg ;;
1057 -localedir | --localedir | --localedi | --localed | --locale)
1058 ac_prev=localedir ;;
1059 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1060 localedir=$ac_optarg ;;
1062 -localstatedir | --localstatedir | --localstatedi | --localstated \
1063 | --localstate | --localstat | --localsta | --localst | --locals)
1064 ac_prev=localstatedir ;;
1065 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1066 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1067 localstatedir=$ac_optarg ;;
1069 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1070 ac_prev=mandir ;;
1071 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1072 mandir=$ac_optarg ;;
1074 -nfp | --nfp | --nf)
1075 # Obsolete; use --without-fp.
1076 with_fp=no ;;
1078 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1079 | --no-cr | --no-c | -n)
1080 no_create=yes ;;
1082 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1083 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1084 no_recursion=yes ;;
1086 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1087 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1088 | --oldin | --oldi | --old | --ol | --o)
1089 ac_prev=oldincludedir ;;
1090 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1091 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1092 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1093 oldincludedir=$ac_optarg ;;
1095 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1096 ac_prev=prefix ;;
1097 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1098 prefix=$ac_optarg ;;
1100 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1101 | --program-pre | --program-pr | --program-p)
1102 ac_prev=program_prefix ;;
1103 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1104 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1105 program_prefix=$ac_optarg ;;
1107 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1108 | --program-suf | --program-su | --program-s)
1109 ac_prev=program_suffix ;;
1110 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1111 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1112 program_suffix=$ac_optarg ;;
1114 -program-transform-name | --program-transform-name \
1115 | --program-transform-nam | --program-transform-na \
1116 | --program-transform-n | --program-transform- \
1117 | --program-transform | --program-transfor \
1118 | --program-transfo | --program-transf \
1119 | --program-trans | --program-tran \
1120 | --progr-tra | --program-tr | --program-t)
1121 ac_prev=program_transform_name ;;
1122 -program-transform-name=* | --program-transform-name=* \
1123 | --program-transform-nam=* | --program-transform-na=* \
1124 | --program-transform-n=* | --program-transform-=* \
1125 | --program-transform=* | --program-transfor=* \
1126 | --program-transfo=* | --program-transf=* \
1127 | --program-trans=* | --program-tran=* \
1128 | --progr-tra=* | --program-tr=* | --program-t=*)
1129 program_transform_name=$ac_optarg ;;
1131 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1132 ac_prev=pdfdir ;;
1133 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1134 pdfdir=$ac_optarg ;;
1136 -psdir | --psdir | --psdi | --psd | --ps)
1137 ac_prev=psdir ;;
1138 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1139 psdir=$ac_optarg ;;
1141 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1142 | -silent | --silent | --silen | --sile | --sil)
1143 silent=yes ;;
1145 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1146 ac_prev=sbindir ;;
1147 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1148 | --sbi=* | --sb=*)
1149 sbindir=$ac_optarg ;;
1151 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1152 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1153 | --sharedst | --shareds | --shared | --share | --shar \
1154 | --sha | --sh)
1155 ac_prev=sharedstatedir ;;
1156 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1157 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1158 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1159 | --sha=* | --sh=*)
1160 sharedstatedir=$ac_optarg ;;
1162 -site | --site | --sit)
1163 ac_prev=site ;;
1164 -site=* | --site=* | --sit=*)
1165 site=$ac_optarg ;;
1167 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1168 ac_prev=srcdir ;;
1169 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1170 srcdir=$ac_optarg ;;
1172 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1173 | --syscon | --sysco | --sysc | --sys | --sy)
1174 ac_prev=sysconfdir ;;
1175 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1176 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1177 sysconfdir=$ac_optarg ;;
1179 -target | --target | --targe | --targ | --tar | --ta | --t)
1180 ac_prev=target_alias ;;
1181 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1182 target_alias=$ac_optarg ;;
1184 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1185 verbose=yes ;;
1187 -version | --version | --versio | --versi | --vers | -V)
1188 ac_init_version=: ;;
1190 -with-* | --with-*)
1191 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1192 # Reject names that are not valid shell variable names.
1193 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1194 as_fn_error $? "invalid package name: $ac_useropt"
1195 ac_useropt_orig=$ac_useropt
1196 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1197 case $ac_user_opts in
1199 "with_$ac_useropt"
1200 "*) ;;
1201 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1202 ac_unrecognized_sep=', ';;
1203 esac
1204 eval with_$ac_useropt=\$ac_optarg ;;
1206 -without-* | --without-*)
1207 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1208 # Reject names that are not valid shell variable names.
1209 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1210 as_fn_error $? "invalid package name: $ac_useropt"
1211 ac_useropt_orig=$ac_useropt
1212 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1213 case $ac_user_opts in
1215 "with_$ac_useropt"
1216 "*) ;;
1217 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1218 ac_unrecognized_sep=', ';;
1219 esac
1220 eval with_$ac_useropt=no ;;
1222 --x)
1223 # Obsolete; use --with-x.
1224 with_x=yes ;;
1226 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1227 | --x-incl | --x-inc | --x-in | --x-i)
1228 ac_prev=x_includes ;;
1229 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1230 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1231 x_includes=$ac_optarg ;;
1233 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1234 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1235 ac_prev=x_libraries ;;
1236 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1237 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1238 x_libraries=$ac_optarg ;;
1240 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1241 Try \`$0 --help' for more information"
1244 *=*)
1245 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1246 # Reject names that are not valid shell variable names.
1247 case $ac_envvar in #(
1248 '' | [0-9]* | *[!_$as_cr_alnum]* )
1249 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1250 esac
1251 eval $ac_envvar=\$ac_optarg
1252 export $ac_envvar ;;
1255 # FIXME: should be removed in autoconf 3.0.
1256 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1257 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1258 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1259 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1262 esac
1263 done
1265 if test -n "$ac_prev"; then
1266 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1267 as_fn_error $? "missing argument to $ac_option"
1270 if test -n "$ac_unrecognized_opts"; then
1271 case $enable_option_checking in
1272 no) ;;
1273 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1274 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1275 esac
1278 # Check all directory arguments for consistency.
1279 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1280 datadir sysconfdir sharedstatedir localstatedir includedir \
1281 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1282 libdir localedir mandir
1284 eval ac_val=\$$ac_var
1285 # Remove trailing slashes.
1286 case $ac_val in
1287 */ )
1288 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1289 eval $ac_var=\$ac_val;;
1290 esac
1291 # Be sure to have absolute directory names.
1292 case $ac_val in
1293 [\\/$]* | ?:[\\/]* ) continue;;
1294 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1295 esac
1296 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1297 done
1299 # There might be people who depend on the old broken behavior: `$host'
1300 # used to hold the argument of --host etc.
1301 # FIXME: To remove some day.
1302 build=$build_alias
1303 host=$host_alias
1304 target=$target_alias
1306 # FIXME: To remove some day.
1307 if test "x$host_alias" != x; then
1308 if test "x$build_alias" = x; then
1309 cross_compiling=maybe
1310 elif test "x$build_alias" != "x$host_alias"; then
1311 cross_compiling=yes
1315 ac_tool_prefix=
1316 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1318 test "$silent" = yes && exec 6>/dev/null
1321 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1322 ac_ls_di=`ls -di .` &&
1323 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1324 as_fn_error $? "working directory cannot be determined"
1325 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1326 as_fn_error $? "pwd does not report name of working directory"
1329 # Find the source files, if location was not specified.
1330 if test -z "$srcdir"; then
1331 ac_srcdir_defaulted=yes
1332 # Try the directory containing this script, then the parent directory.
1333 ac_confdir=`$as_dirname -- "$as_myself" ||
1334 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1335 X"$as_myself" : 'X\(//\)[^/]' \| \
1336 X"$as_myself" : 'X\(//\)$' \| \
1337 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1338 $as_echo X"$as_myself" |
1339 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1340 s//\1/
1343 /^X\(\/\/\)[^/].*/{
1344 s//\1/
1347 /^X\(\/\/\)$/{
1348 s//\1/
1351 /^X\(\/\).*/{
1352 s//\1/
1355 s/.*/./; q'`
1356 srcdir=$ac_confdir
1357 if test ! -r "$srcdir/$ac_unique_file"; then
1358 srcdir=..
1360 else
1361 ac_srcdir_defaulted=no
1363 if test ! -r "$srcdir/$ac_unique_file"; then
1364 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1365 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1367 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1368 ac_abs_confdir=`(
1369 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1370 pwd)`
1371 # When building in place, set srcdir=.
1372 if test "$ac_abs_confdir" = "$ac_pwd"; then
1373 srcdir=.
1375 # Remove unnecessary trailing slashes from srcdir.
1376 # Double slashes in file names in object file debugging info
1377 # mess up M-x gdb in Emacs.
1378 case $srcdir in
1379 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1380 esac
1381 for ac_var in $ac_precious_vars; do
1382 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1383 eval ac_env_${ac_var}_value=\$${ac_var}
1384 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1385 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1386 done
1389 # Report the --help message.
1391 if test "$ac_init_help" = "long"; then
1392 # Omit some internal or obsolete options to make the list less imposing.
1393 # This message is too long to be a string in the A/UX 3.1 sh.
1394 cat <<_ACEOF
1395 \`configure' configures gas 2.43.1 to adapt to many kinds of systems.
1397 Usage: $0 [OPTION]... [VAR=VALUE]...
1399 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1400 VAR=VALUE. See below for descriptions of some of the useful variables.
1402 Defaults for the options are specified in brackets.
1404 Configuration:
1405 -h, --help display this help and exit
1406 --help=short display options specific to this package
1407 --help=recursive display the short help of all the included packages
1408 -V, --version display version information and exit
1409 -q, --quiet, --silent do not print \`checking ...' messages
1410 --cache-file=FILE cache test results in FILE [disabled]
1411 -C, --config-cache alias for \`--cache-file=config.cache'
1412 -n, --no-create do not create output files
1413 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1415 Installation directories:
1416 --prefix=PREFIX install architecture-independent files in PREFIX
1417 [$ac_default_prefix]
1418 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1419 [PREFIX]
1421 By default, \`make install' will install all the files in
1422 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1423 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1424 for instance \`--prefix=\$HOME'.
1426 For better control, use the options below.
1428 Fine tuning of the installation directories:
1429 --bindir=DIR user executables [EPREFIX/bin]
1430 --sbindir=DIR system admin executables [EPREFIX/sbin]
1431 --libexecdir=DIR program executables [EPREFIX/libexec]
1432 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1433 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1434 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1435 --libdir=DIR object code libraries [EPREFIX/lib]
1436 --includedir=DIR C header files [PREFIX/include]
1437 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1438 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1439 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1440 --infodir=DIR info documentation [DATAROOTDIR/info]
1441 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1442 --mandir=DIR man documentation [DATAROOTDIR/man]
1443 --docdir=DIR documentation root [DATAROOTDIR/doc/gas]
1444 --htmldir=DIR html documentation [DOCDIR]
1445 --dvidir=DIR dvi documentation [DOCDIR]
1446 --pdfdir=DIR pdf documentation [DOCDIR]
1447 --psdir=DIR ps documentation [DOCDIR]
1448 _ACEOF
1450 cat <<\_ACEOF
1452 Program names:
1453 --program-prefix=PREFIX prepend PREFIX to installed program names
1454 --program-suffix=SUFFIX append SUFFIX to installed program names
1455 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1457 System types:
1458 --build=BUILD configure for building on BUILD [guessed]
1459 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1460 --target=TARGET configure for building compilers for TARGET [HOST]
1461 _ACEOF
1464 if test -n "$ac_init_help"; then
1465 case $ac_init_help in
1466 short | recursive ) echo "Configuration of gas 2.43.1:";;
1467 esac
1468 cat <<\_ACEOF
1470 Optional Features:
1471 --disable-option-checking ignore unrecognized --enable/--with options
1472 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1473 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1474 --enable-silent-rules less verbose build output (undo: "make V=1")
1475 --disable-silent-rules verbose build output (undo: "make V=0")
1476 --enable-dependency-tracking
1477 do not reject slow dependency extractors
1478 --disable-dependency-tracking
1479 speeds up one-time build
1480 --enable-shared[=PKGS] build shared libraries [default=yes]
1481 --enable-static[=PKGS] build static libraries [default=yes]
1482 --enable-fast-install[=PKGS]
1483 optimize for fast installation [default=yes]
1484 --disable-libtool-lock avoid locking (might break parallel builds)
1485 --enable-plugins Enable support for plugins
1486 --disable-largefile omit support for large files
1487 --enable-targets alternative target configurations besides the primary
1488 --enable-checking enable run-time checks
1489 --enable-compressed-debug-sections={all,gas,none}
1490 compress debug sections by default
1491 --enable-default-compressed-debug-sections-algorithm={zlib,zstd}
1492 Default compression algorithm for
1493 --enable-compressed-debug-sections.
1494 --enable-x86-relax-relocations
1495 generate x86 relax relocations by default
1496 --enable-elf-stt-common generate ELF common symbols with STT_COMMON type by
1497 default
1498 --enable-generate-build-notes
1499 generate GNU Build notes if none are provided by the
1500 input
1501 --enable-mips-fix-loongson3-llsc
1502 enable MIPS fix Loongson3 LLSC errata
1503 --enable-x86-used-note generate GNU x86 used ISA and feature properties
1504 --enable-default-riscv-attribute
1505 generate RISC-V arch attribute by default
1506 --enable-werror treat compile warnings as errors
1507 --enable-build-warnings enable build-time compiler warnings
1508 --disable-nls do not use Native Language Support
1509 --disable-rpath do not hardcode runtime library paths
1510 --enable-maintainer-mode
1511 enable make rules and dependencies not useful (and
1512 sometimes confusing) to the casual installer
1514 Optional Packages:
1515 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1516 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1517 --with-pic try to use only PIC/non-PIC objects [default=use
1518 both]
1519 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1520 --with-cpu=CPU default cpu variant is CPU (currently only supported
1521 on ARC)
1522 --with-gnu-ld assume the C compiler uses GNU ld default=no
1523 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1524 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1525 --with-libiconv-type=TYPE type of library to search for (auto/static/shared)
1526 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1527 --without-libintl-prefix don't search for libintl in includedir and libdir
1528 --with-libintl-type=TYPE type of library to search for (auto/static/shared)
1529 --with-system-zlib use installed libz
1530 --with-zstd support zstd compressed debug sections
1531 (default=auto)
1533 Some influential environment variables:
1534 CC C compiler command
1535 CFLAGS C compiler flags
1536 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1537 nonstandard directory <lib dir>
1538 LIBS libraries to pass to the linker, e.g. -l<library>
1539 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1540 you have headers in a nonstandard directory <include dir>
1541 CPP C preprocessor
1542 YACC The `Yet Another Compiler Compiler' implementation to use.
1543 Defaults to the first program found out of: `bison -y', `byacc',
1544 `yacc'.
1545 YFLAGS The list of arguments that will be passed by default to $YACC.
1546 This script will default YFLAGS to the empty string to avoid a
1547 default value of `-d' given by some make applications.
1548 PKG_CONFIG path to pkg-config utility
1549 PKG_CONFIG_PATH
1550 directories to add to pkg-config's search path
1551 PKG_CONFIG_LIBDIR
1552 path overriding pkg-config's built-in search path
1553 ZSTD_CFLAGS C compiler flags for ZSTD, overriding pkg-config
1554 ZSTD_LIBS linker flags for ZSTD, overriding pkg-config
1556 Use these variables to override the choices made by `configure' or to help
1557 it to find libraries and programs with nonstandard names/locations.
1559 Report bugs to the package provider.
1560 _ACEOF
1561 ac_status=$?
1564 if test "$ac_init_help" = "recursive"; then
1565 # If there are subdirs, report their specific --help.
1566 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1567 test -d "$ac_dir" ||
1568 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1569 continue
1570 ac_builddir=.
1572 case "$ac_dir" in
1573 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1575 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1576 # A ".." for each directory in $ac_dir_suffix.
1577 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1578 case $ac_top_builddir_sub in
1579 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1580 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1581 esac ;;
1582 esac
1583 ac_abs_top_builddir=$ac_pwd
1584 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1585 # for backward compatibility:
1586 ac_top_builddir=$ac_top_build_prefix
1588 case $srcdir in
1589 .) # We are building in place.
1590 ac_srcdir=.
1591 ac_top_srcdir=$ac_top_builddir_sub
1592 ac_abs_top_srcdir=$ac_pwd ;;
1593 [\\/]* | ?:[\\/]* ) # Absolute name.
1594 ac_srcdir=$srcdir$ac_dir_suffix;
1595 ac_top_srcdir=$srcdir
1596 ac_abs_top_srcdir=$srcdir ;;
1597 *) # Relative name.
1598 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1599 ac_top_srcdir=$ac_top_build_prefix$srcdir
1600 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1601 esac
1602 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1604 cd "$ac_dir" || { ac_status=$?; continue; }
1605 # Check for guested configure.
1606 if test -f "$ac_srcdir/configure.gnu"; then
1607 echo &&
1608 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1609 elif test -f "$ac_srcdir/configure"; then
1610 echo &&
1611 $SHELL "$ac_srcdir/configure" --help=recursive
1612 else
1613 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1614 fi || ac_status=$?
1615 cd "$ac_pwd" || { ac_status=$?; break; }
1616 done
1619 test -n "$ac_init_help" && exit $ac_status
1620 if $ac_init_version; then
1621 cat <<\_ACEOF
1622 gas configure 2.43.1
1623 generated by GNU Autoconf 2.69
1625 Copyright (C) 2012 Free Software Foundation, Inc.
1626 This configure script is free software; the Free Software Foundation
1627 gives unlimited permission to copy, distribute and modify it.
1628 _ACEOF
1629 exit
1632 ## ------------------------ ##
1633 ## Autoconf initialization. ##
1634 ## ------------------------ ##
1636 # ac_fn_c_try_compile LINENO
1637 # --------------------------
1638 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1639 ac_fn_c_try_compile ()
1641 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1642 rm -f conftest.$ac_objext
1643 if { { ac_try="$ac_compile"
1644 case "(($ac_try" in
1645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1646 *) ac_try_echo=$ac_try;;
1647 esac
1648 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1649 $as_echo "$ac_try_echo"; } >&5
1650 (eval "$ac_compile") 2>conftest.err
1651 ac_status=$?
1652 if test -s conftest.err; then
1653 grep -v '^ *+' conftest.err >conftest.er1
1654 cat conftest.er1 >&5
1655 mv -f conftest.er1 conftest.err
1657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1658 test $ac_status = 0; } && {
1659 test -z "$ac_c_werror_flag" ||
1660 test ! -s conftest.err
1661 } && test -s conftest.$ac_objext; then :
1662 ac_retval=0
1663 else
1664 $as_echo "$as_me: failed program was:" >&5
1665 sed 's/^/| /' conftest.$ac_ext >&5
1667 ac_retval=1
1669 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1670 as_fn_set_status $ac_retval
1672 } # ac_fn_c_try_compile
1674 # ac_fn_c_try_cpp LINENO
1675 # ----------------------
1676 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1677 ac_fn_c_try_cpp ()
1679 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1680 if { { ac_try="$ac_cpp conftest.$ac_ext"
1681 case "(($ac_try" in
1682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1683 *) ac_try_echo=$ac_try;;
1684 esac
1685 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1686 $as_echo "$ac_try_echo"; } >&5
1687 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1688 ac_status=$?
1689 if test -s conftest.err; then
1690 grep -v '^ *+' conftest.err >conftest.er1
1691 cat conftest.er1 >&5
1692 mv -f conftest.er1 conftest.err
1694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1695 test $ac_status = 0; } > conftest.i && {
1696 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1697 test ! -s conftest.err
1698 }; then :
1699 ac_retval=0
1700 else
1701 $as_echo "$as_me: failed program was:" >&5
1702 sed 's/^/| /' conftest.$ac_ext >&5
1704 ac_retval=1
1706 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1707 as_fn_set_status $ac_retval
1709 } # ac_fn_c_try_cpp
1711 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1712 # -------------------------------------------------------
1713 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1714 # the include files in INCLUDES and setting the cache variable VAR
1715 # accordingly.
1716 ac_fn_c_check_header_mongrel ()
1718 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1719 if eval \${$3+:} false; then :
1720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1721 $as_echo_n "checking for $2... " >&6; }
1722 if eval \${$3+:} false; then :
1723 $as_echo_n "(cached) " >&6
1725 eval ac_res=\$$3
1726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1727 $as_echo "$ac_res" >&6; }
1728 else
1729 # Is the header compilable?
1730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1731 $as_echo_n "checking $2 usability... " >&6; }
1732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1733 /* end confdefs.h. */
1735 #include <$2>
1736 _ACEOF
1737 if ac_fn_c_try_compile "$LINENO"; then :
1738 ac_header_compiler=yes
1739 else
1740 ac_header_compiler=no
1742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1744 $as_echo "$ac_header_compiler" >&6; }
1746 # Is the header present?
1747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1748 $as_echo_n "checking $2 presence... " >&6; }
1749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1750 /* end confdefs.h. */
1751 #include <$2>
1752 _ACEOF
1753 if ac_fn_c_try_cpp "$LINENO"; then :
1754 ac_header_preproc=yes
1755 else
1756 ac_header_preproc=no
1758 rm -f conftest.err conftest.i conftest.$ac_ext
1759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1760 $as_echo "$ac_header_preproc" >&6; }
1762 # So? What about this header?
1763 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1764 yes:no: )
1765 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1766 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1767 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1768 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1770 no:yes:* )
1771 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1772 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1773 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1774 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1775 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1776 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1777 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1778 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1779 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1780 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1782 esac
1783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1784 $as_echo_n "checking for $2... " >&6; }
1785 if eval \${$3+:} false; then :
1786 $as_echo_n "(cached) " >&6
1787 else
1788 eval "$3=\$ac_header_compiler"
1790 eval ac_res=\$$3
1791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1792 $as_echo "$ac_res" >&6; }
1794 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1796 } # ac_fn_c_check_header_mongrel
1798 # ac_fn_c_try_run LINENO
1799 # ----------------------
1800 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1801 # that executables *can* be run.
1802 ac_fn_c_try_run ()
1804 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1805 if { { ac_try="$ac_link"
1806 case "(($ac_try" in
1807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1808 *) ac_try_echo=$ac_try;;
1809 esac
1810 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1811 $as_echo "$ac_try_echo"; } >&5
1812 (eval "$ac_link") 2>&5
1813 ac_status=$?
1814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1815 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1816 { { case "(($ac_try" in
1817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1818 *) ac_try_echo=$ac_try;;
1819 esac
1820 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1821 $as_echo "$ac_try_echo"; } >&5
1822 (eval "$ac_try") 2>&5
1823 ac_status=$?
1824 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1825 test $ac_status = 0; }; }; then :
1826 ac_retval=0
1827 else
1828 $as_echo "$as_me: program exited with status $ac_status" >&5
1829 $as_echo "$as_me: failed program was:" >&5
1830 sed 's/^/| /' conftest.$ac_ext >&5
1832 ac_retval=$ac_status
1834 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1835 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1836 as_fn_set_status $ac_retval
1838 } # ac_fn_c_try_run
1840 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1841 # -------------------------------------------------------
1842 # Tests whether HEADER exists and can be compiled using the include files in
1843 # INCLUDES, setting the cache variable VAR accordingly.
1844 ac_fn_c_check_header_compile ()
1846 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1848 $as_echo_n "checking for $2... " >&6; }
1849 if eval \${$3+:} false; then :
1850 $as_echo_n "(cached) " >&6
1851 else
1852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1853 /* end confdefs.h. */
1855 #include <$2>
1856 _ACEOF
1857 if ac_fn_c_try_compile "$LINENO"; then :
1858 eval "$3=yes"
1859 else
1860 eval "$3=no"
1862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1864 eval ac_res=\$$3
1865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1866 $as_echo "$ac_res" >&6; }
1867 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1869 } # ac_fn_c_check_header_compile
1871 # ac_fn_c_try_link LINENO
1872 # -----------------------
1873 # Try to link conftest.$ac_ext, and return whether this succeeded.
1874 ac_fn_c_try_link ()
1876 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1877 rm -f conftest.$ac_objext conftest$ac_exeext
1878 if { { ac_try="$ac_link"
1879 case "(($ac_try" in
1880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1881 *) ac_try_echo=$ac_try;;
1882 esac
1883 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1884 $as_echo "$ac_try_echo"; } >&5
1885 (eval "$ac_link") 2>conftest.err
1886 ac_status=$?
1887 if test -s conftest.err; then
1888 grep -v '^ *+' conftest.err >conftest.er1
1889 cat conftest.er1 >&5
1890 mv -f conftest.er1 conftest.err
1892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1893 test $ac_status = 0; } && {
1894 test -z "$ac_c_werror_flag" ||
1895 test ! -s conftest.err
1896 } && test -s conftest$ac_exeext && {
1897 test "$cross_compiling" = yes ||
1898 test -x conftest$ac_exeext
1899 }; then :
1900 ac_retval=0
1901 else
1902 $as_echo "$as_me: failed program was:" >&5
1903 sed 's/^/| /' conftest.$ac_ext >&5
1905 ac_retval=1
1907 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1908 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1909 # interfere with the next link command; also delete a directory that is
1910 # left behind by Apple's compiler. We do this before executing the actions.
1911 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1912 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1913 as_fn_set_status $ac_retval
1915 } # ac_fn_c_try_link
1917 # ac_fn_c_check_func LINENO FUNC VAR
1918 # ----------------------------------
1919 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1920 ac_fn_c_check_func ()
1922 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1924 $as_echo_n "checking for $2... " >&6; }
1925 if eval \${$3+:} false; then :
1926 $as_echo_n "(cached) " >&6
1927 else
1928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1929 /* end confdefs.h. */
1930 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1931 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1932 #define $2 innocuous_$2
1934 /* System header to define __stub macros and hopefully few prototypes,
1935 which can conflict with char $2 (); below.
1936 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1937 <limits.h> exists even on freestanding compilers. */
1939 #ifdef __STDC__
1940 # include <limits.h>
1941 #else
1942 # include <assert.h>
1943 #endif
1945 #undef $2
1947 /* Override any GCC internal prototype to avoid an error.
1948 Use char because int might match the return type of a GCC
1949 builtin and then its argument prototype would still apply. */
1950 #ifdef __cplusplus
1951 extern "C"
1952 #endif
1953 char $2 ();
1954 /* The GNU C library defines this for functions which it implements
1955 to always fail with ENOSYS. Some functions are actually named
1956 something starting with __ and the normal name is an alias. */
1957 #if defined __stub_$2 || defined __stub___$2
1958 choke me
1959 #endif
1962 main ()
1964 return $2 ();
1966 return 0;
1968 _ACEOF
1969 if ac_fn_c_try_link "$LINENO"; then :
1970 eval "$3=yes"
1971 else
1972 eval "$3=no"
1974 rm -f core conftest.err conftest.$ac_objext \
1975 conftest$ac_exeext conftest.$ac_ext
1977 eval ac_res=\$$3
1978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1979 $as_echo "$ac_res" >&6; }
1980 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1982 } # ac_fn_c_check_func
1984 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1985 # ---------------------------------------------
1986 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1987 # accordingly.
1988 ac_fn_c_check_decl ()
1990 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1991 as_decl_name=`echo $2|sed 's/ *(.*//'`
1992 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1994 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1995 if eval \${$3+:} false; then :
1996 $as_echo_n "(cached) " >&6
1997 else
1998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1999 /* end confdefs.h. */
2002 main ()
2004 #ifndef $as_decl_name
2005 #ifdef __cplusplus
2006 (void) $as_decl_use;
2007 #else
2008 (void) $as_decl_name;
2009 #endif
2010 #endif
2013 return 0;
2015 _ACEOF
2016 if ac_fn_c_try_compile "$LINENO"; then :
2017 eval "$3=yes"
2018 else
2019 eval "$3=no"
2021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2023 eval ac_res=\$$3
2024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2025 $as_echo "$ac_res" >&6; }
2026 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2028 } # ac_fn_c_check_decl
2029 cat >config.log <<_ACEOF
2030 This file contains any messages produced by compilers while
2031 running configure, to aid debugging if configure makes a mistake.
2033 It was created by gas $as_me 2.43.1, which was
2034 generated by GNU Autoconf 2.69. Invocation command line was
2036 $ $0 $@
2038 _ACEOF
2039 exec 5>>config.log
2041 cat <<_ASUNAME
2042 ## --------- ##
2043 ## Platform. ##
2044 ## --------- ##
2046 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2047 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2048 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2049 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2050 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2052 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2053 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2055 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2056 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2057 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2058 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2059 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2060 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2061 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2063 _ASUNAME
2065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2066 for as_dir in $PATH
2068 IFS=$as_save_IFS
2069 test -z "$as_dir" && as_dir=.
2070 $as_echo "PATH: $as_dir"
2071 done
2072 IFS=$as_save_IFS
2074 } >&5
2076 cat >&5 <<_ACEOF
2079 ## ----------- ##
2080 ## Core tests. ##
2081 ## ----------- ##
2083 _ACEOF
2086 # Keep a trace of the command line.
2087 # Strip out --no-create and --no-recursion so they do not pile up.
2088 # Strip out --silent because we don't want to record it for future runs.
2089 # Also quote any args containing shell meta-characters.
2090 # Make two passes to allow for proper duplicate-argument suppression.
2091 ac_configure_args=
2092 ac_configure_args0=
2093 ac_configure_args1=
2094 ac_must_keep_next=false
2095 for ac_pass in 1 2
2097 for ac_arg
2099 case $ac_arg in
2100 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2101 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2102 | -silent | --silent | --silen | --sile | --sil)
2103 continue ;;
2104 *\'*)
2105 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2106 esac
2107 case $ac_pass in
2108 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2110 as_fn_append ac_configure_args1 " '$ac_arg'"
2111 if test $ac_must_keep_next = true; then
2112 ac_must_keep_next=false # Got value, back to normal.
2113 else
2114 case $ac_arg in
2115 *=* | --config-cache | -C | -disable-* | --disable-* \
2116 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2117 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2118 | -with-* | --with-* | -without-* | --without-* | --x)
2119 case "$ac_configure_args0 " in
2120 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2121 esac
2123 -* ) ac_must_keep_next=true ;;
2124 esac
2126 as_fn_append ac_configure_args " '$ac_arg'"
2128 esac
2129 done
2130 done
2131 { ac_configure_args0=; unset ac_configure_args0;}
2132 { ac_configure_args1=; unset ac_configure_args1;}
2134 # When interrupted or exit'd, cleanup temporary files, and complete
2135 # config.log. We remove comments because anyway the quotes in there
2136 # would cause problems or look ugly.
2137 # WARNING: Use '\'' to represent an apostrophe within the trap.
2138 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2139 trap 'exit_status=$?
2140 # Save into config.log some information that might help in debugging.
2142 echo
2144 $as_echo "## ---------------- ##
2145 ## Cache variables. ##
2146 ## ---------------- ##"
2147 echo
2148 # The following way of writing the cache mishandles newlines in values,
2150 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2151 eval ac_val=\$$ac_var
2152 case $ac_val in #(
2153 *${as_nl}*)
2154 case $ac_var in #(
2155 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2156 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2157 esac
2158 case $ac_var in #(
2159 _ | IFS | as_nl) ;; #(
2160 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2161 *) { eval $ac_var=; unset $ac_var;} ;;
2162 esac ;;
2163 esac
2164 done
2165 (set) 2>&1 |
2166 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2167 *${as_nl}ac_space=\ *)
2168 sed -n \
2169 "s/'\''/'\''\\\\'\'''\''/g;
2170 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2171 ;; #(
2173 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2175 esac |
2176 sort
2178 echo
2180 $as_echo "## ----------------- ##
2181 ## Output variables. ##
2182 ## ----------------- ##"
2183 echo
2184 for ac_var in $ac_subst_vars
2186 eval ac_val=\$$ac_var
2187 case $ac_val in
2188 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2189 esac
2190 $as_echo "$ac_var='\''$ac_val'\''"
2191 done | sort
2192 echo
2194 if test -n "$ac_subst_files"; then
2195 $as_echo "## ------------------- ##
2196 ## File substitutions. ##
2197 ## ------------------- ##"
2198 echo
2199 for ac_var in $ac_subst_files
2201 eval ac_val=\$$ac_var
2202 case $ac_val in
2203 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2204 esac
2205 $as_echo "$ac_var='\''$ac_val'\''"
2206 done | sort
2207 echo
2210 if test -s confdefs.h; then
2211 $as_echo "## ----------- ##
2212 ## confdefs.h. ##
2213 ## ----------- ##"
2214 echo
2215 cat confdefs.h
2216 echo
2218 test "$ac_signal" != 0 &&
2219 $as_echo "$as_me: caught signal $ac_signal"
2220 $as_echo "$as_me: exit $exit_status"
2221 } >&5
2222 rm -f core *.core core.conftest.* &&
2223 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2224 exit $exit_status
2226 for ac_signal in 1 2 13 15; do
2227 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2228 done
2229 ac_signal=0
2231 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2232 rm -f -r conftest* confdefs.h
2234 $as_echo "/* confdefs.h */" > confdefs.h
2236 # Predefined preprocessor variables.
2238 cat >>confdefs.h <<_ACEOF
2239 #define PACKAGE_NAME "$PACKAGE_NAME"
2240 _ACEOF
2242 cat >>confdefs.h <<_ACEOF
2243 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2244 _ACEOF
2246 cat >>confdefs.h <<_ACEOF
2247 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2248 _ACEOF
2250 cat >>confdefs.h <<_ACEOF
2251 #define PACKAGE_STRING "$PACKAGE_STRING"
2252 _ACEOF
2254 cat >>confdefs.h <<_ACEOF
2255 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2256 _ACEOF
2258 cat >>confdefs.h <<_ACEOF
2259 #define PACKAGE_URL "$PACKAGE_URL"
2260 _ACEOF
2263 # Let the site file select an alternate cache file if it wants to.
2264 # Prefer an explicitly selected file to automatically selected ones.
2265 ac_site_file1=NONE
2266 ac_site_file2=NONE
2267 if test -n "$CONFIG_SITE"; then
2268 # We do not want a PATH search for config.site.
2269 case $CONFIG_SITE in #((
2270 -*) ac_site_file1=./$CONFIG_SITE;;
2271 */*) ac_site_file1=$CONFIG_SITE;;
2272 *) ac_site_file1=./$CONFIG_SITE;;
2273 esac
2274 elif test "x$prefix" != xNONE; then
2275 ac_site_file1=$prefix/share/config.site
2276 ac_site_file2=$prefix/etc/config.site
2277 else
2278 ac_site_file1=$ac_default_prefix/share/config.site
2279 ac_site_file2=$ac_default_prefix/etc/config.site
2281 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2283 test "x$ac_site_file" = xNONE && continue
2284 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2285 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2286 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2287 sed 's/^/| /' "$ac_site_file" >&5
2288 . "$ac_site_file" \
2289 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2290 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2291 as_fn_error $? "failed to load site script $ac_site_file
2292 See \`config.log' for more details" "$LINENO" 5; }
2294 done
2296 if test -r "$cache_file"; then
2297 # Some versions of bash will fail to source /dev/null (special files
2298 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2299 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2300 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2301 $as_echo "$as_me: loading cache $cache_file" >&6;}
2302 case $cache_file in
2303 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2304 *) . "./$cache_file";;
2305 esac
2307 else
2308 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2309 $as_echo "$as_me: creating cache $cache_file" >&6;}
2310 >$cache_file
2313 gt_needs="$gt_needs "
2314 # Check that the precious variables saved in the cache have kept the same
2315 # value.
2316 ac_cache_corrupted=false
2317 for ac_var in $ac_precious_vars; do
2318 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2319 eval ac_new_set=\$ac_env_${ac_var}_set
2320 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2321 eval ac_new_val=\$ac_env_${ac_var}_value
2322 case $ac_old_set,$ac_new_set in
2323 set,)
2324 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2325 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2326 ac_cache_corrupted=: ;;
2327 ,set)
2328 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2329 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2330 ac_cache_corrupted=: ;;
2331 ,);;
2333 if test "x$ac_old_val" != "x$ac_new_val"; then
2334 # differences in whitespace do not lead to failure.
2335 ac_old_val_w=`echo x $ac_old_val`
2336 ac_new_val_w=`echo x $ac_new_val`
2337 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2338 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2339 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2340 ac_cache_corrupted=:
2341 else
2342 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2343 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2344 eval $ac_var=\$ac_old_val
2346 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2347 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2348 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2349 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2350 fi;;
2351 esac
2352 # Pass precious variables to config.status.
2353 if test "$ac_new_set" = set; then
2354 case $ac_new_val in
2355 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2356 *) ac_arg=$ac_var=$ac_new_val ;;
2357 esac
2358 case " $ac_configure_args " in
2359 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2360 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2361 esac
2363 done
2364 if $ac_cache_corrupted; then
2365 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2366 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2367 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2368 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2369 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2371 ## -------------------- ##
2372 ## Main body of script. ##
2373 ## -------------------- ##
2375 ac_ext=c
2376 ac_cpp='$CPP $CPPFLAGS'
2377 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2378 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2379 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2387 ac_aux_dir=
2388 for ac_dir in .. "$srcdir"/..; do
2389 if test -f "$ac_dir/install-sh"; then
2390 ac_aux_dir=$ac_dir
2391 ac_install_sh="$ac_aux_dir/install-sh -c"
2392 break
2393 elif test -f "$ac_dir/install.sh"; then
2394 ac_aux_dir=$ac_dir
2395 ac_install_sh="$ac_aux_dir/install.sh -c"
2396 break
2397 elif test -f "$ac_dir/shtool"; then
2398 ac_aux_dir=$ac_dir
2399 ac_install_sh="$ac_aux_dir/shtool install -c"
2400 break
2402 done
2403 if test -z "$ac_aux_dir"; then
2404 as_fn_error $? "cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
2407 # These three variables are undocumented and unsupported,
2408 # and are intended to be withdrawn in a future Autoconf release.
2409 # They can cause serious problems if a builder's source tree is in a directory
2410 # whose full name contains unusual characters.
2411 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2412 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2413 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2416 # Make sure we can run config.sub.
2417 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2418 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2421 $as_echo_n "checking build system type... " >&6; }
2422 if ${ac_cv_build+:} false; then :
2423 $as_echo_n "(cached) " >&6
2424 else
2425 ac_build_alias=$build_alias
2426 test "x$ac_build_alias" = x &&
2427 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2428 test "x$ac_build_alias" = x &&
2429 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2430 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2431 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2435 $as_echo "$ac_cv_build" >&6; }
2436 case $ac_cv_build in
2437 *-*-*) ;;
2438 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2439 esac
2440 build=$ac_cv_build
2441 ac_save_IFS=$IFS; IFS='-'
2442 set x $ac_cv_build
2443 shift
2444 build_cpu=$1
2445 build_vendor=$2
2446 shift; shift
2447 # Remember, the first character of IFS is used to create $*,
2448 # except with old shells:
2449 build_os=$*
2450 IFS=$ac_save_IFS
2451 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2455 $as_echo_n "checking host system type... " >&6; }
2456 if ${ac_cv_host+:} false; then :
2457 $as_echo_n "(cached) " >&6
2458 else
2459 if test "x$host_alias" = x; then
2460 ac_cv_host=$ac_cv_build
2461 else
2462 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2463 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2468 $as_echo "$ac_cv_host" >&6; }
2469 case $ac_cv_host in
2470 *-*-*) ;;
2471 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2472 esac
2473 host=$ac_cv_host
2474 ac_save_IFS=$IFS; IFS='-'
2475 set x $ac_cv_host
2476 shift
2477 host_cpu=$1
2478 host_vendor=$2
2479 shift; shift
2480 # Remember, the first character of IFS is used to create $*,
2481 # except with old shells:
2482 host_os=$*
2483 IFS=$ac_save_IFS
2484 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2488 $as_echo_n "checking target system type... " >&6; }
2489 if ${ac_cv_target+:} false; then :
2490 $as_echo_n "(cached) " >&6
2491 else
2492 if test "x$target_alias" = x; then
2493 ac_cv_target=$ac_cv_host
2494 else
2495 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2496 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2501 $as_echo "$ac_cv_target" >&6; }
2502 case $ac_cv_target in
2503 *-*-*) ;;
2504 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2505 esac
2506 target=$ac_cv_target
2507 ac_save_IFS=$IFS; IFS='-'
2508 set x $ac_cv_target
2509 shift
2510 target_cpu=$1
2511 target_vendor=$2
2512 shift; shift
2513 # Remember, the first character of IFS is used to create $*,
2514 # except with old shells:
2515 target_os=$*
2516 IFS=$ac_save_IFS
2517 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2520 # The aliases save the names the user supplied, while $host etc.
2521 # will get canonicalized.
2522 test -n "$target_alias" &&
2523 test "$program_prefix$program_suffix$program_transform_name" = \
2524 NONENONEs,x,x, &&
2525 program_prefix=${target_alias}-
2527 am__api_version='1.15'
2529 # Find a good install program. We prefer a C program (faster),
2530 # so one script is as good as another. But avoid the broken or
2531 # incompatible versions:
2532 # SysV /etc/install, /usr/sbin/install
2533 # SunOS /usr/etc/install
2534 # IRIX /sbin/install
2535 # AIX /bin/install
2536 # AmigaOS /C/install, which installs bootblocks on floppy discs
2537 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2538 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2539 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2540 # OS/2's system install, which has a completely different semantic
2541 # ./install, which can be erroneously created by make from ./install.sh.
2542 # Reject install programs that cannot install multiple files.
2543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2544 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2545 if test -z "$INSTALL"; then
2546 if ${ac_cv_path_install+:} false; then :
2547 $as_echo_n "(cached) " >&6
2548 else
2549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2550 for as_dir in $PATH
2552 IFS=$as_save_IFS
2553 test -z "$as_dir" && as_dir=.
2554 # Account for people who put trailing slashes in PATH elements.
2555 case $as_dir/ in #((
2556 ./ | .// | /[cC]/* | \
2557 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2558 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2559 /usr/ucb/* ) ;;
2561 # OSF1 and SCO ODT 3.0 have their own names for install.
2562 # Don't use installbsd from OSF since it installs stuff as root
2563 # by default.
2564 for ac_prog in ginstall scoinst install; do
2565 for ac_exec_ext in '' $ac_executable_extensions; do
2566 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2567 if test $ac_prog = install &&
2568 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2569 # AIX install. It has an incompatible calling convention.
2571 elif test $ac_prog = install &&
2572 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2573 # program-specific install script used by HP pwplus--don't use.
2575 else
2576 rm -rf conftest.one conftest.two conftest.dir
2577 echo one > conftest.one
2578 echo two > conftest.two
2579 mkdir conftest.dir
2580 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2581 test -s conftest.one && test -s conftest.two &&
2582 test -s conftest.dir/conftest.one &&
2583 test -s conftest.dir/conftest.two
2584 then
2585 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2586 break 3
2590 done
2591 done
2593 esac
2595 done
2596 IFS=$as_save_IFS
2598 rm -rf conftest.one conftest.two conftest.dir
2601 if test "${ac_cv_path_install+set}" = set; then
2602 INSTALL=$ac_cv_path_install
2603 else
2604 # As a last resort, use the slow shell script. Don't cache a
2605 # value for INSTALL within a source directory, because that will
2606 # break other packages using the cache if that directory is
2607 # removed, or if the value is a relative name.
2608 INSTALL=$ac_install_sh
2611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2612 $as_echo "$INSTALL" >&6; }
2614 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2615 # It thinks the first close brace ends the variable substitution.
2616 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2618 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2620 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2623 $as_echo_n "checking whether build environment is sane... " >&6; }
2624 # Reject unsafe characters in $srcdir or the absolute working directory
2625 # name. Accept space and tab only in the latter.
2626 am_lf='
2628 case `pwd` in
2629 *[\\\"\#\$\&\'\`$am_lf]*)
2630 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2631 esac
2632 case $srcdir in
2633 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2634 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2635 esac
2637 # Do 'set' in a subshell so we don't clobber the current shell's
2638 # arguments. Must try -L first in case configure is actually a
2639 # symlink; some systems play weird games with the mod time of symlinks
2640 # (eg FreeBSD returns the mod time of the symlink's containing
2641 # directory).
2642 if (
2643 am_has_slept=no
2644 for am_try in 1 2; do
2645 echo "timestamp, slept: $am_has_slept" > conftest.file
2646 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2647 if test "$*" = "X"; then
2648 # -L didn't work.
2649 set X `ls -t "$srcdir/configure" conftest.file`
2651 if test "$*" != "X $srcdir/configure conftest.file" \
2652 && test "$*" != "X conftest.file $srcdir/configure"; then
2654 # If neither matched, then we have a broken ls. This can happen
2655 # if, for instance, CONFIG_SHELL is bash and it inherits a
2656 # broken ls alias from the environment. This has actually
2657 # happened. Such a system could not be considered "sane".
2658 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2659 alias in your environment" "$LINENO" 5
2661 if test "$2" = conftest.file || test $am_try -eq 2; then
2662 break
2664 # Just in case.
2665 sleep 1
2666 am_has_slept=yes
2667 done
2668 test "$2" = conftest.file
2670 then
2671 # Ok.
2673 else
2674 as_fn_error $? "newly created file is older than distributed files!
2675 Check your system clock" "$LINENO" 5
2677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2678 $as_echo "yes" >&6; }
2679 # If we didn't sleep, we still need to ensure time stamps of config.status and
2680 # generated files are strictly newer.
2681 am_sleep_pid=
2682 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2683 ( sleep 1 ) &
2684 am_sleep_pid=$!
2687 rm -f conftest.file
2689 test "$program_prefix" != NONE &&
2690 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2691 # Use a double $ so make ignores it.
2692 test "$program_suffix" != NONE &&
2693 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2694 # Double any \ or $.
2695 # By default was `s,x,x', remove it if useless.
2696 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2697 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2699 # Expand $ac_aux_dir to an absolute path.
2700 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2702 if test x"${MISSING+set}" != xset; then
2703 case $am_aux_dir in
2704 *\ * | *\ *)
2705 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2707 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2708 esac
2710 # Use eval to expand $SHELL
2711 if eval "$MISSING --is-lightweight"; then
2712 am_missing_run="$MISSING "
2713 else
2714 am_missing_run=
2715 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2716 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2719 if test x"${install_sh+set}" != xset; then
2720 case $am_aux_dir in
2721 *\ * | *\ *)
2722 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2724 install_sh="\${SHELL} $am_aux_dir/install-sh"
2725 esac
2728 # Installed binaries are usually stripped using 'strip' when the user
2729 # run "make install-strip". However 'strip' might not be the right
2730 # tool to use in cross-compilation environments, therefore Automake
2731 # will honor the 'STRIP' environment variable to overrule this program.
2732 if test "$cross_compiling" != no; then
2733 if test -n "$ac_tool_prefix"; then
2734 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2735 set dummy ${ac_tool_prefix}strip; ac_word=$2
2736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2737 $as_echo_n "checking for $ac_word... " >&6; }
2738 if ${ac_cv_prog_STRIP+:} false; then :
2739 $as_echo_n "(cached) " >&6
2740 else
2741 if test -n "$STRIP"; then
2742 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2743 else
2744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2745 for as_dir in $PATH
2747 IFS=$as_save_IFS
2748 test -z "$as_dir" && as_dir=.
2749 for ac_exec_ext in '' $ac_executable_extensions; do
2750 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2751 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2753 break 2
2755 done
2756 done
2757 IFS=$as_save_IFS
2761 STRIP=$ac_cv_prog_STRIP
2762 if test -n "$STRIP"; then
2763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2764 $as_echo "$STRIP" >&6; }
2765 else
2766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2767 $as_echo "no" >&6; }
2772 if test -z "$ac_cv_prog_STRIP"; then
2773 ac_ct_STRIP=$STRIP
2774 # Extract the first word of "strip", so it can be a program name with args.
2775 set dummy strip; ac_word=$2
2776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2777 $as_echo_n "checking for $ac_word... " >&6; }
2778 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2779 $as_echo_n "(cached) " >&6
2780 else
2781 if test -n "$ac_ct_STRIP"; then
2782 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2783 else
2784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2785 for as_dir in $PATH
2787 IFS=$as_save_IFS
2788 test -z "$as_dir" && as_dir=.
2789 for ac_exec_ext in '' $ac_executable_extensions; do
2790 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2791 ac_cv_prog_ac_ct_STRIP="strip"
2792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2793 break 2
2795 done
2796 done
2797 IFS=$as_save_IFS
2801 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2802 if test -n "$ac_ct_STRIP"; then
2803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2804 $as_echo "$ac_ct_STRIP" >&6; }
2805 else
2806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2807 $as_echo "no" >&6; }
2810 if test "x$ac_ct_STRIP" = x; then
2811 STRIP=":"
2812 else
2813 case $cross_compiling:$ac_tool_warned in
2814 yes:)
2815 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2816 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2817 ac_tool_warned=yes ;;
2818 esac
2819 STRIP=$ac_ct_STRIP
2821 else
2822 STRIP="$ac_cv_prog_STRIP"
2826 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2829 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2830 if test -z "$MKDIR_P"; then
2831 if ${ac_cv_path_mkdir+:} false; then :
2832 $as_echo_n "(cached) " >&6
2833 else
2834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2835 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2837 IFS=$as_save_IFS
2838 test -z "$as_dir" && as_dir=.
2839 for ac_prog in mkdir gmkdir; do
2840 for ac_exec_ext in '' $ac_executable_extensions; do
2841 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2842 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2843 'mkdir (GNU coreutils) '* | \
2844 'mkdir (coreutils) '* | \
2845 'mkdir (fileutils) '4.1*)
2846 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2847 break 3;;
2848 esac
2849 done
2850 done
2851 done
2852 IFS=$as_save_IFS
2856 test -d ./--version && rmdir ./--version
2857 if test "${ac_cv_path_mkdir+set}" = set; then
2858 MKDIR_P="$ac_cv_path_mkdir -p"
2859 else
2860 # As a last resort, use the slow shell script. Don't cache a
2861 # value for MKDIR_P within a source directory, because that will
2862 # break other packages using the cache if that directory is
2863 # removed, or if the value is a relative name.
2864 MKDIR_P="$ac_install_sh -d"
2867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2868 $as_echo "$MKDIR_P" >&6; }
2870 for ac_prog in gawk mawk nawk awk
2872 # Extract the first word of "$ac_prog", so it can be a program name with args.
2873 set dummy $ac_prog; ac_word=$2
2874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2875 $as_echo_n "checking for $ac_word... " >&6; }
2876 if ${ac_cv_prog_AWK+:} false; then :
2877 $as_echo_n "(cached) " >&6
2878 else
2879 if test -n "$AWK"; then
2880 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2881 else
2882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2883 for as_dir in $PATH
2885 IFS=$as_save_IFS
2886 test -z "$as_dir" && as_dir=.
2887 for ac_exec_ext in '' $ac_executable_extensions; do
2888 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2889 ac_cv_prog_AWK="$ac_prog"
2890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2891 break 2
2893 done
2894 done
2895 IFS=$as_save_IFS
2899 AWK=$ac_cv_prog_AWK
2900 if test -n "$AWK"; then
2901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2902 $as_echo "$AWK" >&6; }
2903 else
2904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2905 $as_echo "no" >&6; }
2909 test -n "$AWK" && break
2910 done
2912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2913 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2914 set x ${MAKE-make}
2915 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2916 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2917 $as_echo_n "(cached) " >&6
2918 else
2919 cat >conftest.make <<\_ACEOF
2920 SHELL = /bin/sh
2921 all:
2922 @echo '@@@%%%=$(MAKE)=@@@%%%'
2923 _ACEOF
2924 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2925 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2926 *@@@%%%=?*=@@@%%%*)
2927 eval ac_cv_prog_make_${ac_make}_set=yes;;
2929 eval ac_cv_prog_make_${ac_make}_set=no;;
2930 esac
2931 rm -f conftest.make
2933 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2935 $as_echo "yes" >&6; }
2936 SET_MAKE=
2937 else
2938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2939 $as_echo "no" >&6; }
2940 SET_MAKE="MAKE=${MAKE-make}"
2943 rm -rf .tst 2>/dev/null
2944 mkdir .tst 2>/dev/null
2945 if test -d .tst; then
2946 am__leading_dot=.
2947 else
2948 am__leading_dot=_
2950 rmdir .tst 2>/dev/null
2952 # Check whether --enable-silent-rules was given.
2953 if test "${enable_silent_rules+set}" = set; then :
2954 enableval=$enable_silent_rules;
2957 case $enable_silent_rules in # (((
2958 yes) AM_DEFAULT_VERBOSITY=0;;
2959 no) AM_DEFAULT_VERBOSITY=1;;
2960 *) AM_DEFAULT_VERBOSITY=1;;
2961 esac
2962 am_make=${MAKE-make}
2963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2964 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2965 if ${am_cv_make_support_nested_variables+:} false; then :
2966 $as_echo_n "(cached) " >&6
2967 else
2968 if $as_echo 'TRUE=$(BAR$(V))
2969 BAR0=false
2970 BAR1=true
2972 am__doit:
2973 @$(TRUE)
2974 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2975 am_cv_make_support_nested_variables=yes
2976 else
2977 am_cv_make_support_nested_variables=no
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2981 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2982 if test $am_cv_make_support_nested_variables = yes; then
2983 AM_V='$(V)'
2984 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2985 else
2986 AM_V=$AM_DEFAULT_VERBOSITY
2987 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2989 AM_BACKSLASH='\'
2991 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2992 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2993 # is not polluted with repeated "-I."
2994 am__isrc=' -I$(srcdir)'
2995 # test to see if srcdir already configured
2996 if test -f $srcdir/config.status; then
2997 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3001 # test whether we have cygpath
3002 if test -z "$CYGPATH_W"; then
3003 if (cygpath --version) >/dev/null 2>/dev/null; then
3004 CYGPATH_W='cygpath -w'
3005 else
3006 CYGPATH_W=echo
3011 # Define the identity of the package.
3012 PACKAGE='gas'
3013 VERSION='2.43.1'
3016 cat >>confdefs.h <<_ACEOF
3017 #define PACKAGE "$PACKAGE"
3018 _ACEOF
3021 cat >>confdefs.h <<_ACEOF
3022 #define VERSION "$VERSION"
3023 _ACEOF
3025 # Some tools Automake needs.
3027 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3030 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3033 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3036 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3039 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3041 # For better backward compatibility. To be removed once Automake 1.9.x
3042 # dies out for good. For more background, see:
3043 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3044 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3045 mkdir_p='$(MKDIR_P)'
3047 # We need awk for the "check" target (and possibly the TAP driver). The
3048 # system "awk" is bad on some platforms.
3049 # Always define AMTAR for backward compatibility. Yes, it's still used
3050 # in the wild :-( We should find a proper way to deprecate it ...
3051 AMTAR='$${TAR-tar}'
3054 # We'll loop over all known methods to create a tar archive until one works.
3055 _am_tools='gnutar pax cpio none'
3057 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3064 # POSIX will say in a future version that running "rm -f" with no argument
3065 # is OK; and we want to be able to make that assumption in our Makefile
3066 # recipes. So use an aggressive probe to check that the usage we want is
3067 # actually supported "in the wild" to an acceptable degree.
3068 # See automake bug#10828.
3069 # To make any issue more visible, cause the running configure to be aborted
3070 # by default if the 'rm' program in use doesn't match our expectations; the
3071 # user can still override this though.
3072 if rm -f && rm -fr && rm -rf; then : OK; else
3073 cat >&2 <<'END'
3074 Oops!
3076 Your 'rm' program seems unable to run without file operands specified
3077 on the command line, even when the '-f' option is present. This is contrary
3078 to the behaviour of most rm programs out there, and not conforming with
3079 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3081 Please tell bug-automake@gnu.org about your system, including the value
3082 of your $PATH and any error possibly output before this message. This
3083 can help us improve future automake versions.
3086 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3087 echo 'Configuration will proceed anyway, since you have set the' >&2
3088 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3089 echo >&2
3090 else
3091 cat >&2 <<'END'
3092 Aborting the configuration process, to ensure you take notice of the issue.
3094 You can download and install GNU coreutils to get an 'rm' implementation
3095 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3097 If you want to complete the configuration process using your problematic
3098 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3099 to "yes", and re-run configure.
3102 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3106 # Check whether --enable-silent-rules was given.
3107 if test "${enable_silent_rules+set}" = set; then :
3108 enableval=$enable_silent_rules;
3111 case $enable_silent_rules in # (((
3112 yes) AM_DEFAULT_VERBOSITY=0;;
3113 no) AM_DEFAULT_VERBOSITY=1;;
3114 *) AM_DEFAULT_VERBOSITY=0;;
3115 esac
3116 am_make=${MAKE-make}
3117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3118 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3119 if ${am_cv_make_support_nested_variables+:} false; then :
3120 $as_echo_n "(cached) " >&6
3121 else
3122 if $as_echo 'TRUE=$(BAR$(V))
3123 BAR0=false
3124 BAR1=true
3126 am__doit:
3127 @$(TRUE)
3128 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3129 am_cv_make_support_nested_variables=yes
3130 else
3131 am_cv_make_support_nested_variables=no
3134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3135 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3136 if test $am_cv_make_support_nested_variables = yes; then
3137 AM_V='$(V)'
3138 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3139 else
3140 AM_V=$AM_DEFAULT_VERBOSITY
3141 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3143 AM_BACKSLASH='\'
3146 ac_ext=c
3147 ac_cpp='$CPP $CPPFLAGS'
3148 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3149 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3150 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3151 if test -n "$ac_tool_prefix"; then
3152 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3153 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3155 $as_echo_n "checking for $ac_word... " >&6; }
3156 if ${ac_cv_prog_CC+:} false; then :
3157 $as_echo_n "(cached) " >&6
3158 else
3159 if test -n "$CC"; then
3160 ac_cv_prog_CC="$CC" # Let the user override the test.
3161 else
3162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3163 for as_dir in $PATH
3165 IFS=$as_save_IFS
3166 test -z "$as_dir" && as_dir=.
3167 for ac_exec_ext in '' $ac_executable_extensions; do
3168 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3169 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3171 break 2
3173 done
3174 done
3175 IFS=$as_save_IFS
3179 CC=$ac_cv_prog_CC
3180 if test -n "$CC"; then
3181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3182 $as_echo "$CC" >&6; }
3183 else
3184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3185 $as_echo "no" >&6; }
3190 if test -z "$ac_cv_prog_CC"; then
3191 ac_ct_CC=$CC
3192 # Extract the first word of "gcc", so it can be a program name with args.
3193 set dummy gcc; ac_word=$2
3194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3195 $as_echo_n "checking for $ac_word... " >&6; }
3196 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3197 $as_echo_n "(cached) " >&6
3198 else
3199 if test -n "$ac_ct_CC"; then
3200 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3201 else
3202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3203 for as_dir in $PATH
3205 IFS=$as_save_IFS
3206 test -z "$as_dir" && as_dir=.
3207 for ac_exec_ext in '' $ac_executable_extensions; do
3208 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3209 ac_cv_prog_ac_ct_CC="gcc"
3210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3211 break 2
3213 done
3214 done
3215 IFS=$as_save_IFS
3219 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3220 if test -n "$ac_ct_CC"; then
3221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3222 $as_echo "$ac_ct_CC" >&6; }
3223 else
3224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3225 $as_echo "no" >&6; }
3228 if test "x$ac_ct_CC" = x; then
3229 CC=""
3230 else
3231 case $cross_compiling:$ac_tool_warned in
3232 yes:)
3233 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3234 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3235 ac_tool_warned=yes ;;
3236 esac
3237 CC=$ac_ct_CC
3239 else
3240 CC="$ac_cv_prog_CC"
3243 if test -z "$CC"; then
3244 if test -n "$ac_tool_prefix"; then
3245 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3246 set dummy ${ac_tool_prefix}cc; ac_word=$2
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3248 $as_echo_n "checking for $ac_word... " >&6; }
3249 if ${ac_cv_prog_CC+:} false; then :
3250 $as_echo_n "(cached) " >&6
3251 else
3252 if test -n "$CC"; then
3253 ac_cv_prog_CC="$CC" # Let the user override the test.
3254 else
3255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3256 for as_dir in $PATH
3258 IFS=$as_save_IFS
3259 test -z "$as_dir" && as_dir=.
3260 for ac_exec_ext in '' $ac_executable_extensions; do
3261 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3262 ac_cv_prog_CC="${ac_tool_prefix}cc"
3263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3264 break 2
3266 done
3267 done
3268 IFS=$as_save_IFS
3272 CC=$ac_cv_prog_CC
3273 if test -n "$CC"; then
3274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3275 $as_echo "$CC" >&6; }
3276 else
3277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3278 $as_echo "no" >&6; }
3284 if test -z "$CC"; then
3285 # Extract the first word of "cc", so it can be a program name with args.
3286 set dummy cc; ac_word=$2
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3288 $as_echo_n "checking for $ac_word... " >&6; }
3289 if ${ac_cv_prog_CC+:} false; then :
3290 $as_echo_n "(cached) " >&6
3291 else
3292 if test -n "$CC"; then
3293 ac_cv_prog_CC="$CC" # Let the user override the test.
3294 else
3295 ac_prog_rejected=no
3296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3297 for as_dir in $PATH
3299 IFS=$as_save_IFS
3300 test -z "$as_dir" && as_dir=.
3301 for ac_exec_ext in '' $ac_executable_extensions; do
3302 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3303 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3304 ac_prog_rejected=yes
3305 continue
3307 ac_cv_prog_CC="cc"
3308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3309 break 2
3311 done
3312 done
3313 IFS=$as_save_IFS
3315 if test $ac_prog_rejected = yes; then
3316 # We found a bogon in the path, so make sure we never use it.
3317 set dummy $ac_cv_prog_CC
3318 shift
3319 if test $# != 0; then
3320 # We chose a different compiler from the bogus one.
3321 # However, it has the same basename, so the bogon will be chosen
3322 # first if we set CC to just the basename; use the full file name.
3323 shift
3324 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3329 CC=$ac_cv_prog_CC
3330 if test -n "$CC"; then
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3332 $as_echo "$CC" >&6; }
3333 else
3334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3335 $as_echo "no" >&6; }
3340 if test -z "$CC"; then
3341 if test -n "$ac_tool_prefix"; then
3342 for ac_prog in cl.exe
3344 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3345 set dummy $ac_tool_prefix$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_CC+:} false; then :
3349 $as_echo_n "(cached) " >&6
3350 else
3351 if test -n "$CC"; then
3352 ac_cv_prog_CC="$CC" # Let the user override the test.
3353 else
3354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3355 for as_dir in $PATH
3357 IFS=$as_save_IFS
3358 test -z "$as_dir" && as_dir=.
3359 for ac_exec_ext in '' $ac_executable_extensions; do
3360 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3361 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3363 break 2
3365 done
3366 done
3367 IFS=$as_save_IFS
3371 CC=$ac_cv_prog_CC
3372 if test -n "$CC"; then
3373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3374 $as_echo "$CC" >&6; }
3375 else
3376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3377 $as_echo "no" >&6; }
3381 test -n "$CC" && break
3382 done
3384 if test -z "$CC"; then
3385 ac_ct_CC=$CC
3386 for ac_prog in cl.exe
3388 # Extract the first word of "$ac_prog", so it can be a program name with args.
3389 set dummy $ac_prog; ac_word=$2
3390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3391 $as_echo_n "checking for $ac_word... " >&6; }
3392 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3393 $as_echo_n "(cached) " >&6
3394 else
3395 if test -n "$ac_ct_CC"; then
3396 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3397 else
3398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3399 for as_dir in $PATH
3401 IFS=$as_save_IFS
3402 test -z "$as_dir" && as_dir=.
3403 for ac_exec_ext in '' $ac_executable_extensions; do
3404 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3405 ac_cv_prog_ac_ct_CC="$ac_prog"
3406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3407 break 2
3409 done
3410 done
3411 IFS=$as_save_IFS
3415 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3416 if test -n "$ac_ct_CC"; then
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3418 $as_echo "$ac_ct_CC" >&6; }
3419 else
3420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3421 $as_echo "no" >&6; }
3425 test -n "$ac_ct_CC" && break
3426 done
3428 if test "x$ac_ct_CC" = x; then
3429 CC=""
3430 else
3431 case $cross_compiling:$ac_tool_warned in
3432 yes:)
3433 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3434 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3435 ac_tool_warned=yes ;;
3436 esac
3437 CC=$ac_ct_CC
3444 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3445 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3446 as_fn_error $? "no acceptable C compiler found in \$PATH
3447 See \`config.log' for more details" "$LINENO" 5; }
3449 # Provide some information about the compiler.
3450 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3451 set X $ac_compile
3452 ac_compiler=$2
3453 for ac_option in --version -v -V -qversion; do
3454 { { ac_try="$ac_compiler $ac_option >&5"
3455 case "(($ac_try" in
3456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3457 *) ac_try_echo=$ac_try;;
3458 esac
3459 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3460 $as_echo "$ac_try_echo"; } >&5
3461 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3462 ac_status=$?
3463 if test -s conftest.err; then
3464 sed '10a\
3465 ... rest of stderr output deleted ...
3466 10q' conftest.err >conftest.er1
3467 cat conftest.er1 >&5
3469 rm -f conftest.er1 conftest.err
3470 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3471 test $ac_status = 0; }
3472 done
3474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3475 /* end confdefs.h. */
3478 main ()
3482 return 0;
3484 _ACEOF
3485 ac_clean_files_save=$ac_clean_files
3486 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3487 # Try to create an executable without -o first, disregard a.out.
3488 # It will help us diagnose broken compilers, and finding out an intuition
3489 # of exeext.
3490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3491 $as_echo_n "checking whether the C compiler works... " >&6; }
3492 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3494 # The possible output files:
3495 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3497 ac_rmfiles=
3498 for ac_file in $ac_files
3500 case $ac_file in
3501 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3502 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3503 esac
3504 done
3505 rm -f $ac_rmfiles
3507 if { { ac_try="$ac_link_default"
3508 case "(($ac_try" in
3509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3510 *) ac_try_echo=$ac_try;;
3511 esac
3512 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3513 $as_echo "$ac_try_echo"; } >&5
3514 (eval "$ac_link_default") 2>&5
3515 ac_status=$?
3516 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3517 test $ac_status = 0; }; then :
3518 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3519 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3520 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3521 # so that the user can short-circuit this test for compilers unknown to
3522 # Autoconf.
3523 for ac_file in $ac_files ''
3525 test -f "$ac_file" || continue
3526 case $ac_file in
3527 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3529 [ab].out )
3530 # We found the default executable, but exeext='' is most
3531 # certainly right.
3532 break;;
3533 *.* )
3534 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3535 then :; else
3536 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3538 # We set ac_cv_exeext here because the later test for it is not
3539 # safe: cross compilers may not add the suffix if given an `-o'
3540 # argument, so we may need to know it at that point already.
3541 # Even if this section looks crufty: it has the advantage of
3542 # actually working.
3543 break;;
3545 break;;
3546 esac
3547 done
3548 test "$ac_cv_exeext" = no && ac_cv_exeext=
3550 else
3551 ac_file=''
3553 if test -z "$ac_file"; then :
3554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3555 $as_echo "no" >&6; }
3556 $as_echo "$as_me: failed program was:" >&5
3557 sed 's/^/| /' conftest.$ac_ext >&5
3559 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3560 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3561 as_fn_error 77 "C compiler cannot create executables
3562 See \`config.log' for more details" "$LINENO" 5; }
3563 else
3564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3565 $as_echo "yes" >&6; }
3567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3568 $as_echo_n "checking for C compiler default output file name... " >&6; }
3569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3570 $as_echo "$ac_file" >&6; }
3571 ac_exeext=$ac_cv_exeext
3573 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3574 ac_clean_files=$ac_clean_files_save
3575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3576 $as_echo_n "checking for suffix of executables... " >&6; }
3577 if { { ac_try="$ac_link"
3578 case "(($ac_try" in
3579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3580 *) ac_try_echo=$ac_try;;
3581 esac
3582 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3583 $as_echo "$ac_try_echo"; } >&5
3584 (eval "$ac_link") 2>&5
3585 ac_status=$?
3586 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3587 test $ac_status = 0; }; then :
3588 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3589 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3590 # work properly (i.e., refer to `conftest.exe'), while it won't with
3591 # `rm'.
3592 for ac_file in conftest.exe conftest conftest.*; do
3593 test -f "$ac_file" || continue
3594 case $ac_file in
3595 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3596 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3597 break;;
3598 * ) break;;
3599 esac
3600 done
3601 else
3602 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3603 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3604 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3605 See \`config.log' for more details" "$LINENO" 5; }
3607 rm -f conftest conftest$ac_cv_exeext
3608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3609 $as_echo "$ac_cv_exeext" >&6; }
3611 rm -f conftest.$ac_ext
3612 EXEEXT=$ac_cv_exeext
3613 ac_exeext=$EXEEXT
3614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3615 /* end confdefs.h. */
3616 #include <stdio.h>
3618 main ()
3620 FILE *f = fopen ("conftest.out", "w");
3621 return ferror (f) || fclose (f) != 0;
3624 return 0;
3626 _ACEOF
3627 ac_clean_files="$ac_clean_files conftest.out"
3628 # Check that the compiler produces executables we can run. If not, either
3629 # the compiler is broken, or we cross compile.
3630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3631 $as_echo_n "checking whether we are cross compiling... " >&6; }
3632 if test "$cross_compiling" != yes; then
3633 { { ac_try="$ac_link"
3634 case "(($ac_try" in
3635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3636 *) ac_try_echo=$ac_try;;
3637 esac
3638 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3639 $as_echo "$ac_try_echo"; } >&5
3640 (eval "$ac_link") 2>&5
3641 ac_status=$?
3642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3643 test $ac_status = 0; }
3644 if { ac_try='./conftest$ac_cv_exeext'
3645 { { case "(($ac_try" in
3646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3647 *) ac_try_echo=$ac_try;;
3648 esac
3649 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3650 $as_echo "$ac_try_echo"; } >&5
3651 (eval "$ac_try") 2>&5
3652 ac_status=$?
3653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3654 test $ac_status = 0; }; }; then
3655 cross_compiling=no
3656 else
3657 if test "$cross_compiling" = maybe; then
3658 cross_compiling=yes
3659 else
3660 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3661 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3662 as_fn_error $? "cannot run C compiled programs.
3663 If you meant to cross compile, use \`--host'.
3664 See \`config.log' for more details" "$LINENO" 5; }
3668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3669 $as_echo "$cross_compiling" >&6; }
3671 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3672 ac_clean_files=$ac_clean_files_save
3673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3674 $as_echo_n "checking for suffix of object files... " >&6; }
3675 if ${ac_cv_objext+:} false; then :
3676 $as_echo_n "(cached) " >&6
3677 else
3678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3679 /* end confdefs.h. */
3682 main ()
3686 return 0;
3688 _ACEOF
3689 rm -f conftest.o conftest.obj
3690 if { { ac_try="$ac_compile"
3691 case "(($ac_try" in
3692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3693 *) ac_try_echo=$ac_try;;
3694 esac
3695 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3696 $as_echo "$ac_try_echo"; } >&5
3697 (eval "$ac_compile") 2>&5
3698 ac_status=$?
3699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3700 test $ac_status = 0; }; then :
3701 for ac_file in conftest.o conftest.obj conftest.*; do
3702 test -f "$ac_file" || continue;
3703 case $ac_file in
3704 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3705 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3706 break;;
3707 esac
3708 done
3709 else
3710 $as_echo "$as_me: failed program was:" >&5
3711 sed 's/^/| /' conftest.$ac_ext >&5
3713 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3714 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3715 as_fn_error $? "cannot compute suffix of object files: cannot compile
3716 See \`config.log' for more details" "$LINENO" 5; }
3718 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3721 $as_echo "$ac_cv_objext" >&6; }
3722 OBJEXT=$ac_cv_objext
3723 ac_objext=$OBJEXT
3724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3725 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3726 if ${ac_cv_c_compiler_gnu+:} false; then :
3727 $as_echo_n "(cached) " >&6
3728 else
3729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3730 /* end confdefs.h. */
3733 main ()
3735 #ifndef __GNUC__
3736 choke me
3737 #endif
3740 return 0;
3742 _ACEOF
3743 if ac_fn_c_try_compile "$LINENO"; then :
3744 ac_compiler_gnu=yes
3745 else
3746 ac_compiler_gnu=no
3748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3749 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3753 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3754 if test $ac_compiler_gnu = yes; then
3755 GCC=yes
3756 else
3757 GCC=
3759 ac_test_CFLAGS=${CFLAGS+set}
3760 ac_save_CFLAGS=$CFLAGS
3761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3762 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3763 if ${ac_cv_prog_cc_g+:} false; then :
3764 $as_echo_n "(cached) " >&6
3765 else
3766 ac_save_c_werror_flag=$ac_c_werror_flag
3767 ac_c_werror_flag=yes
3768 ac_cv_prog_cc_g=no
3769 CFLAGS="-g"
3770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3771 /* end confdefs.h. */
3774 main ()
3778 return 0;
3780 _ACEOF
3781 if ac_fn_c_try_compile "$LINENO"; then :
3782 ac_cv_prog_cc_g=yes
3783 else
3784 CFLAGS=""
3785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3786 /* end confdefs.h. */
3789 main ()
3793 return 0;
3795 _ACEOF
3796 if ac_fn_c_try_compile "$LINENO"; then :
3798 else
3799 ac_c_werror_flag=$ac_save_c_werror_flag
3800 CFLAGS="-g"
3801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3802 /* end confdefs.h. */
3805 main ()
3809 return 0;
3811 _ACEOF
3812 if ac_fn_c_try_compile "$LINENO"; then :
3813 ac_cv_prog_cc_g=yes
3815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3820 ac_c_werror_flag=$ac_save_c_werror_flag
3822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3823 $as_echo "$ac_cv_prog_cc_g" >&6; }
3824 if test "$ac_test_CFLAGS" = set; then
3825 CFLAGS=$ac_save_CFLAGS
3826 elif test $ac_cv_prog_cc_g = yes; then
3827 if test "$GCC" = yes; then
3828 CFLAGS="-g -O2"
3829 else
3830 CFLAGS="-g"
3832 else
3833 if test "$GCC" = yes; then
3834 CFLAGS="-O2"
3835 else
3836 CFLAGS=
3839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3840 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3841 if ${ac_cv_prog_cc_c89+:} false; then :
3842 $as_echo_n "(cached) " >&6
3843 else
3844 ac_cv_prog_cc_c89=no
3845 ac_save_CC=$CC
3846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3847 /* end confdefs.h. */
3848 #include <stdarg.h>
3849 #include <stdio.h>
3850 struct stat;
3851 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3852 struct buf { int x; };
3853 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3854 static char *e (p, i)
3855 char **p;
3856 int i;
3858 return p[i];
3860 static char *f (char * (*g) (char **, int), char **p, ...)
3862 char *s;
3863 va_list v;
3864 va_start (v,p);
3865 s = g (p, va_arg (v,int));
3866 va_end (v);
3867 return s;
3870 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3871 function prototypes and stuff, but not '\xHH' hex character constants.
3872 These don't provoke an error unfortunately, instead are silently treated
3873 as 'x'. The following induces an error, until -std is added to get
3874 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3875 array size at least. It's necessary to write '\x00'==0 to get something
3876 that's true only with -std. */
3877 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3879 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3880 inside strings and character constants. */
3881 #define FOO(x) 'x'
3882 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3884 int test (int i, double x);
3885 struct s1 {int (*f) (int a);};
3886 struct s2 {int (*f) (double a);};
3887 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3888 int argc;
3889 char **argv;
3891 main ()
3893 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3895 return 0;
3897 _ACEOF
3898 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3899 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3901 CC="$ac_save_CC $ac_arg"
3902 if ac_fn_c_try_compile "$LINENO"; then :
3903 ac_cv_prog_cc_c89=$ac_arg
3905 rm -f core conftest.err conftest.$ac_objext
3906 test "x$ac_cv_prog_cc_c89" != "xno" && break
3907 done
3908 rm -f conftest.$ac_ext
3909 CC=$ac_save_CC
3912 # AC_CACHE_VAL
3913 case "x$ac_cv_prog_cc_c89" in
3915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3916 $as_echo "none needed" >&6; } ;;
3917 xno)
3918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3919 $as_echo "unsupported" >&6; } ;;
3921 CC="$CC $ac_cv_prog_cc_c89"
3922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3923 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3924 esac
3925 if test "x$ac_cv_prog_cc_c89" != xno; then :
3929 ac_ext=c
3930 ac_cpp='$CPP $CPPFLAGS'
3931 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3932 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3933 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3935 ac_ext=c
3936 ac_cpp='$CPP $CPPFLAGS'
3937 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3938 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3939 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3941 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3942 if ${am_cv_prog_cc_c_o+:} false; then :
3943 $as_echo_n "(cached) " >&6
3944 else
3945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3946 /* end confdefs.h. */
3949 main ()
3953 return 0;
3955 _ACEOF
3956 # Make sure it works both with $CC and with simple cc.
3957 # Following AC_PROG_CC_C_O, we do the test twice because some
3958 # compilers refuse to overwrite an existing .o file with -o,
3959 # though they will create one.
3960 am_cv_prog_cc_c_o=yes
3961 for am_i in 1 2; do
3962 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3963 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3964 ac_status=$?
3965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3966 (exit $ac_status); } \
3967 && test -f conftest2.$ac_objext; then
3968 : OK
3969 else
3970 am_cv_prog_cc_c_o=no
3971 break
3973 done
3974 rm -f core conftest*
3975 unset am_i
3977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3978 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3979 if test "$am_cv_prog_cc_c_o" != yes; then
3980 # Losing compiler, so override with the script.
3981 # FIXME: It is wrong to rewrite CC.
3982 # But if we don't then we get into trouble of one sort or another.
3983 # A longer-term fix would be to have automake use am__CC in this case,
3984 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3985 CC="$am_aux_dir/compile $CC"
3987 ac_ext=c
3988 ac_cpp='$CPP $CPPFLAGS'
3989 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3990 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3991 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3993 DEPDIR="${am__leading_dot}deps"
3995 ac_config_commands="$ac_config_commands depfiles"
3998 am_make=${MAKE-make}
3999 cat > confinc << 'END'
4000 am__doit:
4001 @echo this is the am__doit target
4002 .PHONY: am__doit
4004 # If we don't find an include directive, just comment out the code.
4005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4006 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4007 am__include="#"
4008 am__quote=
4009 _am_result=none
4010 # First try GNU make style include.
4011 echo "include confinc" > confmf
4012 # Ignore all kinds of additional output from 'make'.
4013 case `$am_make -s -f confmf 2> /dev/null` in #(
4014 *the\ am__doit\ target*)
4015 am__include=include
4016 am__quote=
4017 _am_result=GNU
4019 esac
4020 # Now try BSD make style include.
4021 if test "$am__include" = "#"; then
4022 echo '.include "confinc"' > confmf
4023 case `$am_make -s -f confmf 2> /dev/null` in #(
4024 *the\ am__doit\ target*)
4025 am__include=.include
4026 am__quote="\""
4027 _am_result=BSD
4029 esac
4033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4034 $as_echo "$_am_result" >&6; }
4035 rm -f confinc confmf
4037 # Check whether --enable-dependency-tracking was given.
4038 if test "${enable_dependency_tracking+set}" = set; then :
4039 enableval=$enable_dependency_tracking;
4042 if test "x$enable_dependency_tracking" != xno; then
4043 am_depcomp="$ac_aux_dir/depcomp"
4044 AMDEPBACKSLASH='\'
4045 am__nodep='_no'
4047 if test "x$enable_dependency_tracking" != xno; then
4048 AMDEP_TRUE=
4049 AMDEP_FALSE='#'
4050 else
4051 AMDEP_TRUE='#'
4052 AMDEP_FALSE=
4057 depcc="$CC" am_compiler_list=
4059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4060 $as_echo_n "checking dependency style of $depcc... " >&6; }
4061 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4062 $as_echo_n "(cached) " >&6
4063 else
4064 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4065 # We make a subdir and do the tests there. Otherwise we can end up
4066 # making bogus files that we don't know about and never remove. For
4067 # instance it was reported that on HP-UX the gcc test will end up
4068 # making a dummy file named 'D' -- because '-MD' means "put the output
4069 # in D".
4070 rm -rf conftest.dir
4071 mkdir conftest.dir
4072 # Copy depcomp to subdir because otherwise we won't find it if we're
4073 # using a relative directory.
4074 cp "$am_depcomp" conftest.dir
4075 cd conftest.dir
4076 # We will build objects and dependencies in a subdirectory because
4077 # it helps to detect inapplicable dependency modes. For instance
4078 # both Tru64's cc and ICC support -MD to output dependencies as a
4079 # side effect of compilation, but ICC will put the dependencies in
4080 # the current directory while Tru64 will put them in the object
4081 # directory.
4082 mkdir sub
4084 am_cv_CC_dependencies_compiler_type=none
4085 if test "$am_compiler_list" = ""; then
4086 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4088 am__universal=false
4089 case " $depcc " in #(
4090 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4091 esac
4093 for depmode in $am_compiler_list; do
4094 # Setup a source with many dependencies, because some compilers
4095 # like to wrap large dependency lists on column 80 (with \), and
4096 # we should not choose a depcomp mode which is confused by this.
4098 # We need to recreate these files for each test, as the compiler may
4099 # overwrite some of them when testing with obscure command lines.
4100 # This happens at least with the AIX C compiler.
4101 : > sub/conftest.c
4102 for i in 1 2 3 4 5 6; do
4103 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4104 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4105 # Solaris 10 /bin/sh.
4106 echo '/* dummy */' > sub/conftst$i.h
4107 done
4108 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4110 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4111 # mode. It turns out that the SunPro C++ compiler does not properly
4112 # handle '-M -o', and we need to detect this. Also, some Intel
4113 # versions had trouble with output in subdirs.
4114 am__obj=sub/conftest.${OBJEXT-o}
4115 am__minus_obj="-o $am__obj"
4116 case $depmode in
4117 gcc)
4118 # This depmode causes a compiler race in universal mode.
4119 test "$am__universal" = false || continue
4121 nosideeffect)
4122 # After this tag, mechanisms are not by side-effect, so they'll
4123 # only be used when explicitly requested.
4124 if test "x$enable_dependency_tracking" = xyes; then
4125 continue
4126 else
4127 break
4130 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4131 # This compiler won't grok '-c -o', but also, the minuso test has
4132 # not run yet. These depmodes are late enough in the game, and
4133 # so weak that their functioning should not be impacted.
4134 am__obj=conftest.${OBJEXT-o}
4135 am__minus_obj=
4137 none) break ;;
4138 esac
4139 if depmode=$depmode \
4140 source=sub/conftest.c object=$am__obj \
4141 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4142 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4143 >/dev/null 2>conftest.err &&
4144 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4145 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4146 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4147 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4148 # icc doesn't choke on unknown options, it will just issue warnings
4149 # or remarks (even with -Werror). So we grep stderr for any message
4150 # that says an option was ignored or not supported.
4151 # When given -MP, icc 7.0 and 7.1 complain thusly:
4152 # icc: Command line warning: ignoring option '-M'; no argument required
4153 # The diagnosis changed in icc 8.0:
4154 # icc: Command line remark: option '-MP' not supported
4155 if (grep 'ignoring option' conftest.err ||
4156 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4157 am_cv_CC_dependencies_compiler_type=$depmode
4158 break
4161 done
4163 cd ..
4164 rm -rf conftest.dir
4165 else
4166 am_cv_CC_dependencies_compiler_type=none
4170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4171 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4172 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4175 test "x$enable_dependency_tracking" != xno \
4176 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4177 am__fastdepCC_TRUE=
4178 am__fastdepCC_FALSE='#'
4179 else
4180 am__fastdepCC_TRUE='#'
4181 am__fastdepCC_FALSE=
4186 ac_ext=c
4187 ac_cpp='$CPP $CPPFLAGS'
4188 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4189 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4190 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4192 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4193 # On Suns, sometimes $CPP names a directory.
4194 if test -n "$CPP" && test -d "$CPP"; then
4195 CPP=
4197 if test -z "$CPP"; then
4198 if ${ac_cv_prog_CPP+:} false; then :
4199 $as_echo_n "(cached) " >&6
4200 else
4201 # Double quotes because CPP needs to be expanded
4202 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4204 ac_preproc_ok=false
4205 for ac_c_preproc_warn_flag in '' yes
4207 # Use a header file that comes with gcc, so configuring glibc
4208 # with a fresh cross-compiler works.
4209 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4210 # <limits.h> exists even on freestanding compilers.
4211 # On the NeXT, cc -E runs the code through the compiler's parser,
4212 # not just through cpp. "Syntax error" is here to catch this case.
4213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4214 /* end confdefs.h. */
4215 #ifdef __STDC__
4216 # include <limits.h>
4217 #else
4218 # include <assert.h>
4219 #endif
4220 Syntax error
4221 _ACEOF
4222 if ac_fn_c_try_cpp "$LINENO"; then :
4224 else
4225 # Broken: fails on valid input.
4226 continue
4228 rm -f conftest.err conftest.i conftest.$ac_ext
4230 # OK, works on sane cases. Now check whether nonexistent headers
4231 # can be detected and how.
4232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4233 /* end confdefs.h. */
4234 #include <ac_nonexistent.h>
4235 _ACEOF
4236 if ac_fn_c_try_cpp "$LINENO"; then :
4237 # Broken: success on invalid input.
4238 continue
4239 else
4240 # Passes both tests.
4241 ac_preproc_ok=:
4242 break
4244 rm -f conftest.err conftest.i conftest.$ac_ext
4246 done
4247 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4248 rm -f conftest.i conftest.err conftest.$ac_ext
4249 if $ac_preproc_ok; then :
4250 break
4253 done
4254 ac_cv_prog_CPP=$CPP
4257 CPP=$ac_cv_prog_CPP
4258 else
4259 ac_cv_prog_CPP=$CPP
4261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4262 $as_echo "$CPP" >&6; }
4263 ac_preproc_ok=false
4264 for ac_c_preproc_warn_flag in '' yes
4266 # Use a header file that comes with gcc, so configuring glibc
4267 # with a fresh cross-compiler works.
4268 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4269 # <limits.h> exists even on freestanding compilers.
4270 # On the NeXT, cc -E runs the code through the compiler's parser,
4271 # not just through cpp. "Syntax error" is here to catch this case.
4272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4273 /* end confdefs.h. */
4274 #ifdef __STDC__
4275 # include <limits.h>
4276 #else
4277 # include <assert.h>
4278 #endif
4279 Syntax error
4280 _ACEOF
4281 if ac_fn_c_try_cpp "$LINENO"; then :
4283 else
4284 # Broken: fails on valid input.
4285 continue
4287 rm -f conftest.err conftest.i conftest.$ac_ext
4289 # OK, works on sane cases. Now check whether nonexistent headers
4290 # can be detected and how.
4291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4292 /* end confdefs.h. */
4293 #include <ac_nonexistent.h>
4294 _ACEOF
4295 if ac_fn_c_try_cpp "$LINENO"; then :
4296 # Broken: success on invalid input.
4297 continue
4298 else
4299 # Passes both tests.
4300 ac_preproc_ok=:
4301 break
4303 rm -f conftest.err conftest.i conftest.$ac_ext
4305 done
4306 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4307 rm -f conftest.i conftest.err conftest.$ac_ext
4308 if $ac_preproc_ok; then :
4310 else
4311 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4312 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4313 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4314 See \`config.log' for more details" "$LINENO" 5; }
4317 ac_ext=c
4318 ac_cpp='$CPP $CPPFLAGS'
4319 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4320 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4321 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4325 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4326 if ${ac_cv_path_GREP+:} false; then :
4327 $as_echo_n "(cached) " >&6
4328 else
4329 if test -z "$GREP"; then
4330 ac_path_GREP_found=false
4331 # Loop through the user's path and test for each of PROGNAME-LIST
4332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4333 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4335 IFS=$as_save_IFS
4336 test -z "$as_dir" && as_dir=.
4337 for ac_prog in grep ggrep; do
4338 for ac_exec_ext in '' $ac_executable_extensions; do
4339 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4340 as_fn_executable_p "$ac_path_GREP" || continue
4341 # Check for GNU ac_path_GREP and select it if it is found.
4342 # Check for GNU $ac_path_GREP
4343 case `"$ac_path_GREP" --version 2>&1` in
4344 *GNU*)
4345 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4347 ac_count=0
4348 $as_echo_n 0123456789 >"conftest.in"
4349 while :
4351 cat "conftest.in" "conftest.in" >"conftest.tmp"
4352 mv "conftest.tmp" "conftest.in"
4353 cp "conftest.in" "conftest.nl"
4354 $as_echo 'GREP' >> "conftest.nl"
4355 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4356 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4357 as_fn_arith $ac_count + 1 && ac_count=$as_val
4358 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4359 # Best one so far, save it but keep looking for a better one
4360 ac_cv_path_GREP="$ac_path_GREP"
4361 ac_path_GREP_max=$ac_count
4363 # 10*(2^10) chars as input seems more than enough
4364 test $ac_count -gt 10 && break
4365 done
4366 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4367 esac
4369 $ac_path_GREP_found && break 3
4370 done
4371 done
4372 done
4373 IFS=$as_save_IFS
4374 if test -z "$ac_cv_path_GREP"; then
4375 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4377 else
4378 ac_cv_path_GREP=$GREP
4382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4383 $as_echo "$ac_cv_path_GREP" >&6; }
4384 GREP="$ac_cv_path_GREP"
4387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4388 $as_echo_n "checking for egrep... " >&6; }
4389 if ${ac_cv_path_EGREP+:} false; then :
4390 $as_echo_n "(cached) " >&6
4391 else
4392 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4393 then ac_cv_path_EGREP="$GREP -E"
4394 else
4395 if test -z "$EGREP"; then
4396 ac_path_EGREP_found=false
4397 # Loop through the user's path and test for each of PROGNAME-LIST
4398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4399 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4401 IFS=$as_save_IFS
4402 test -z "$as_dir" && as_dir=.
4403 for ac_prog in egrep; do
4404 for ac_exec_ext in '' $ac_executable_extensions; do
4405 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4406 as_fn_executable_p "$ac_path_EGREP" || continue
4407 # Check for GNU ac_path_EGREP and select it if it is found.
4408 # Check for GNU $ac_path_EGREP
4409 case `"$ac_path_EGREP" --version 2>&1` in
4410 *GNU*)
4411 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4413 ac_count=0
4414 $as_echo_n 0123456789 >"conftest.in"
4415 while :
4417 cat "conftest.in" "conftest.in" >"conftest.tmp"
4418 mv "conftest.tmp" "conftest.in"
4419 cp "conftest.in" "conftest.nl"
4420 $as_echo 'EGREP' >> "conftest.nl"
4421 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4422 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4423 as_fn_arith $ac_count + 1 && ac_count=$as_val
4424 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4425 # Best one so far, save it but keep looking for a better one
4426 ac_cv_path_EGREP="$ac_path_EGREP"
4427 ac_path_EGREP_max=$ac_count
4429 # 10*(2^10) chars as input seems more than enough
4430 test $ac_count -gt 10 && break
4431 done
4432 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4433 esac
4435 $ac_path_EGREP_found && break 3
4436 done
4437 done
4438 done
4439 IFS=$as_save_IFS
4440 if test -z "$ac_cv_path_EGREP"; then
4441 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4443 else
4444 ac_cv_path_EGREP=$EGREP
4449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4450 $as_echo "$ac_cv_path_EGREP" >&6; }
4451 EGREP="$ac_cv_path_EGREP"
4454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4455 $as_echo_n "checking for ANSI C header files... " >&6; }
4456 if ${ac_cv_header_stdc+:} false; then :
4457 $as_echo_n "(cached) " >&6
4458 else
4459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4460 /* end confdefs.h. */
4461 #include <stdlib.h>
4462 #include <stdarg.h>
4463 #include <string.h>
4464 #include <float.h>
4467 main ()
4471 return 0;
4473 _ACEOF
4474 if ac_fn_c_try_compile "$LINENO"; then :
4475 ac_cv_header_stdc=yes
4476 else
4477 ac_cv_header_stdc=no
4479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4481 if test $ac_cv_header_stdc = yes; then
4482 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4484 /* end confdefs.h. */
4485 #include <string.h>
4487 _ACEOF
4488 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4489 $EGREP "memchr" >/dev/null 2>&1; then :
4491 else
4492 ac_cv_header_stdc=no
4494 rm -f conftest*
4498 if test $ac_cv_header_stdc = yes; then
4499 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4501 /* end confdefs.h. */
4502 #include <stdlib.h>
4504 _ACEOF
4505 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4506 $EGREP "free" >/dev/null 2>&1; then :
4508 else
4509 ac_cv_header_stdc=no
4511 rm -f conftest*
4515 if test $ac_cv_header_stdc = yes; then
4516 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4517 if test "$cross_compiling" = yes; then :
4519 else
4520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4521 /* end confdefs.h. */
4522 #include <ctype.h>
4523 #include <stdlib.h>
4524 #if ((' ' & 0x0FF) == 0x020)
4525 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4526 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4527 #else
4528 # define ISLOWER(c) \
4529 (('a' <= (c) && (c) <= 'i') \
4530 || ('j' <= (c) && (c) <= 'r') \
4531 || ('s' <= (c) && (c) <= 'z'))
4532 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4533 #endif
4535 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4537 main ()
4539 int i;
4540 for (i = 0; i < 256; i++)
4541 if (XOR (islower (i), ISLOWER (i))
4542 || toupper (i) != TOUPPER (i))
4543 return 2;
4544 return 0;
4546 _ACEOF
4547 if ac_fn_c_try_run "$LINENO"; then :
4549 else
4550 ac_cv_header_stdc=no
4552 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4553 conftest.$ac_objext conftest.beam conftest.$ac_ext
4558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4559 $as_echo "$ac_cv_header_stdc" >&6; }
4560 if test $ac_cv_header_stdc = yes; then
4562 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4566 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4567 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4568 inttypes.h stdint.h unistd.h
4569 do :
4570 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4571 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4573 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4574 cat >>confdefs.h <<_ACEOF
4575 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4576 _ACEOF
4580 done
4584 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4585 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4586 MINIX=yes
4587 else
4588 MINIX=
4592 if test "$MINIX" = yes; then
4594 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4597 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4600 $as_echo "#define _MINIX 1" >>confdefs.h
4605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4606 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4607 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4608 $as_echo_n "(cached) " >&6
4609 else
4610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4611 /* end confdefs.h. */
4613 # define __EXTENSIONS__ 1
4614 $ac_includes_default
4616 main ()
4620 return 0;
4622 _ACEOF
4623 if ac_fn_c_try_compile "$LINENO"; then :
4624 ac_cv_safe_to_define___extensions__=yes
4625 else
4626 ac_cv_safe_to_define___extensions__=no
4628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4631 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4632 test $ac_cv_safe_to_define___extensions__ = yes &&
4633 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4635 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4637 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4639 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4641 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4645 case `pwd` in
4646 *\ * | *\ *)
4647 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4648 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4649 esac
4653 macro_version='2.2.7a'
4654 macro_revision='1.3134'
4668 ltmain="$ac_aux_dir/ltmain.sh"
4670 # Backslashify metacharacters that are still active within
4671 # double-quoted strings.
4672 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4674 # Same as above, but do not quote variable references.
4675 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4677 # Sed substitution to delay expansion of an escaped shell variable in a
4678 # double_quote_subst'ed string.
4679 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4681 # Sed substitution to delay expansion of an escaped single quote.
4682 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4684 # Sed substitution to avoid accidental globbing in evaled expressions
4685 no_glob_subst='s/\*/\\\*/g'
4687 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4688 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4689 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4692 $as_echo_n "checking how to print strings... " >&6; }
4693 # Test print first, because it will be a builtin if present.
4694 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4695 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4696 ECHO='print -r --'
4697 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4698 ECHO='printf %s\n'
4699 else
4700 # Use this function as a fallback that always works.
4701 func_fallback_echo ()
4703 eval 'cat <<_LTECHO_EOF
4705 _LTECHO_EOF'
4707 ECHO='func_fallback_echo'
4710 # func_echo_all arg...
4711 # Invoke $ECHO with all args, space-separated.
4712 func_echo_all ()
4714 $ECHO ""
4717 case "$ECHO" in
4718 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4719 $as_echo "printf" >&6; } ;;
4720 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4721 $as_echo "print -r" >&6; } ;;
4722 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4723 $as_echo "cat" >&6; } ;;
4724 esac
4739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4740 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4741 if ${ac_cv_path_SED+:} false; then :
4742 $as_echo_n "(cached) " >&6
4743 else
4744 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4745 for ac_i in 1 2 3 4 5 6 7; do
4746 ac_script="$ac_script$as_nl$ac_script"
4747 done
4748 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4749 { ac_script=; unset ac_script;}
4750 if test -z "$SED"; then
4751 ac_path_SED_found=false
4752 # Loop through the user's path and test for each of PROGNAME-LIST
4753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4754 for as_dir in $PATH
4756 IFS=$as_save_IFS
4757 test -z "$as_dir" && as_dir=.
4758 for ac_prog in sed gsed; do
4759 for ac_exec_ext in '' $ac_executable_extensions; do
4760 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4761 as_fn_executable_p "$ac_path_SED" || continue
4762 # Check for GNU ac_path_SED and select it if it is found.
4763 # Check for GNU $ac_path_SED
4764 case `"$ac_path_SED" --version 2>&1` in
4765 *GNU*)
4766 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4768 ac_count=0
4769 $as_echo_n 0123456789 >"conftest.in"
4770 while :
4772 cat "conftest.in" "conftest.in" >"conftest.tmp"
4773 mv "conftest.tmp" "conftest.in"
4774 cp "conftest.in" "conftest.nl"
4775 $as_echo '' >> "conftest.nl"
4776 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4777 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4778 as_fn_arith $ac_count + 1 && ac_count=$as_val
4779 if test $ac_count -gt ${ac_path_SED_max-0}; then
4780 # Best one so far, save it but keep looking for a better one
4781 ac_cv_path_SED="$ac_path_SED"
4782 ac_path_SED_max=$ac_count
4784 # 10*(2^10) chars as input seems more than enough
4785 test $ac_count -gt 10 && break
4786 done
4787 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4788 esac
4790 $ac_path_SED_found && break 3
4791 done
4792 done
4793 done
4794 IFS=$as_save_IFS
4795 if test -z "$ac_cv_path_SED"; then
4796 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4798 else
4799 ac_cv_path_SED=$SED
4803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4804 $as_echo "$ac_cv_path_SED" >&6; }
4805 SED="$ac_cv_path_SED"
4806 rm -f conftest.sed
4808 test -z "$SED" && SED=sed
4809 Xsed="$SED -e 1s/^X//"
4821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4822 $as_echo_n "checking for fgrep... " >&6; }
4823 if ${ac_cv_path_FGREP+:} false; then :
4824 $as_echo_n "(cached) " >&6
4825 else
4826 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4827 then ac_cv_path_FGREP="$GREP -F"
4828 else
4829 if test -z "$FGREP"; then
4830 ac_path_FGREP_found=false
4831 # Loop through the user's path and test for each of PROGNAME-LIST
4832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4833 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4835 IFS=$as_save_IFS
4836 test -z "$as_dir" && as_dir=.
4837 for ac_prog in fgrep; do
4838 for ac_exec_ext in '' $ac_executable_extensions; do
4839 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4840 as_fn_executable_p "$ac_path_FGREP" || continue
4841 # Check for GNU ac_path_FGREP and select it if it is found.
4842 # Check for GNU $ac_path_FGREP
4843 case `"$ac_path_FGREP" --version 2>&1` in
4844 *GNU*)
4845 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4847 ac_count=0
4848 $as_echo_n 0123456789 >"conftest.in"
4849 while :
4851 cat "conftest.in" "conftest.in" >"conftest.tmp"
4852 mv "conftest.tmp" "conftest.in"
4853 cp "conftest.in" "conftest.nl"
4854 $as_echo 'FGREP' >> "conftest.nl"
4855 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4856 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4857 as_fn_arith $ac_count + 1 && ac_count=$as_val
4858 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4859 # Best one so far, save it but keep looking for a better one
4860 ac_cv_path_FGREP="$ac_path_FGREP"
4861 ac_path_FGREP_max=$ac_count
4863 # 10*(2^10) chars as input seems more than enough
4864 test $ac_count -gt 10 && break
4865 done
4866 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4867 esac
4869 $ac_path_FGREP_found && break 3
4870 done
4871 done
4872 done
4873 IFS=$as_save_IFS
4874 if test -z "$ac_cv_path_FGREP"; then
4875 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4877 else
4878 ac_cv_path_FGREP=$FGREP
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4884 $as_echo "$ac_cv_path_FGREP" >&6; }
4885 FGREP="$ac_cv_path_FGREP"
4888 test -z "$GREP" && GREP=grep
4908 # Check whether --with-gnu-ld was given.
4909 if test "${with_gnu_ld+set}" = set; then :
4910 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4911 else
4912 with_gnu_ld=no
4915 ac_prog=ld
4916 if test "$GCC" = yes; then
4917 # Check if gcc -print-prog-name=ld gives a path.
4918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4919 $as_echo_n "checking for ld used by $CC... " >&6; }
4920 case $host in
4921 *-*-mingw*)
4922 # gcc leaves a trailing carriage return which upsets mingw
4923 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4925 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4926 esac
4927 case $ac_prog in
4928 # Accept absolute paths.
4929 [\\/]* | ?:[\\/]*)
4930 re_direlt='/[^/][^/]*/\.\./'
4931 # Canonicalize the pathname of ld
4932 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4933 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4934 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4935 done
4936 test -z "$LD" && LD="$ac_prog"
4939 # If it fails, then pretend we aren't using GCC.
4940 ac_prog=ld
4943 # If it is relative, then search for the first ld in PATH.
4944 with_gnu_ld=unknown
4946 esac
4947 elif test "$with_gnu_ld" = yes; then
4948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4949 $as_echo_n "checking for GNU ld... " >&6; }
4950 else
4951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4952 $as_echo_n "checking for non-GNU ld... " >&6; }
4954 if ${lt_cv_path_LD+:} false; then :
4955 $as_echo_n "(cached) " >&6
4956 else
4957 if test -z "$LD"; then
4958 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4959 for ac_dir in $PATH; do
4960 IFS="$lt_save_ifs"
4961 test -z "$ac_dir" && ac_dir=.
4962 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4963 lt_cv_path_LD="$ac_dir/$ac_prog"
4964 # Check to see if the program is GNU ld. I'd rather use --version,
4965 # but apparently some variants of GNU ld only accept -v.
4966 # Break only if it was the GNU/non-GNU ld that we prefer.
4967 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4968 *GNU* | *'with BFD'*)
4969 test "$with_gnu_ld" != no && break
4972 test "$with_gnu_ld" != yes && break
4974 esac
4976 done
4977 IFS="$lt_save_ifs"
4978 else
4979 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4983 LD="$lt_cv_path_LD"
4984 if test -n "$LD"; then
4985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4986 $as_echo "$LD" >&6; }
4987 else
4988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4989 $as_echo "no" >&6; }
4991 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4993 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4994 if ${lt_cv_prog_gnu_ld+:} false; then :
4995 $as_echo_n "(cached) " >&6
4996 else
4997 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4998 case `$LD -v 2>&1 </dev/null` in
4999 *GNU* | *'with BFD'*)
5000 lt_cv_prog_gnu_ld=yes
5003 lt_cv_prog_gnu_ld=no
5005 esac
5007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5008 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5009 with_gnu_ld=$lt_cv_prog_gnu_ld
5019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5020 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5021 if ${lt_cv_path_NM+:} false; then :
5022 $as_echo_n "(cached) " >&6
5023 else
5024 if test -n "$NM"; then
5025 # Let the user override the nm to test.
5026 lt_nm_to_check="$NM"
5027 else
5028 lt_nm_to_check="${ac_tool_prefix}nm"
5029 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5030 lt_nm_to_check="$lt_nm_to_check nm"
5033 for lt_tmp_nm in "$lt_nm_to_check"; do
5034 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5035 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5036 IFS="$lt_save_ifs"
5037 test -z "$ac_dir" && ac_dir=.
5038 # Strip out any user-provided options from the nm to test twice,
5039 # the first time to test to see if nm (rather than its options) has
5040 # an explicit path, the second time to yield a file which can be
5041 # nm'ed itself.
5042 tmp_nm_path="`$ECHO "$lt_tmp_nm" | sed 's, -.*$,,'`"
5043 case "$tmp_nm_path" in
5044 */*|*\\*) tmp_nm="$lt_tmp_nm";;
5045 *) tmp_nm="$ac_dir/$lt_tmp_nm";;
5046 esac
5047 tmp_nm_to_nm="`$ECHO "$tmp_nm" | sed 's, -.*$,,'`"
5048 if test -f "$tmp_nm_to_nm" || test -f "$tmp_nm_to_nm$ac_exeext" ; then
5049 # Check to see if the nm accepts a BSD-compat flag.
5050 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5051 # nm: unknown option "B" ignored
5052 case `"$tmp_nm" -B "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
5053 *$tmp_nm*) lt_cv_path_NM="$tmp_nm -B"
5054 break
5057 case `"$tmp_nm" -p "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
5058 *$tmp_nm*)
5059 lt_cv_path_NM="$tmp_nm -p"
5060 break
5063 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5064 continue # so that we can try to find one that supports BSD flags
5066 esac
5068 esac
5070 done
5071 IFS="$lt_save_ifs"
5072 done
5073 : ${lt_cv_path_NM=no}
5075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5076 $as_echo "$lt_cv_path_NM" >&6; }
5077 if test "$lt_cv_path_NM" != "no"; then
5078 NM="$lt_cv_path_NM"
5079 else
5080 # Didn't find any BSD compatible name lister, look for dumpbin.
5081 if test -n "$DUMPBIN"; then :
5082 # Let the user override the test.
5083 else
5084 if test -n "$ac_tool_prefix"; then
5085 for ac_prog in dumpbin "link -dump"
5087 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5088 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5090 $as_echo_n "checking for $ac_word... " >&6; }
5091 if ${ac_cv_prog_DUMPBIN+:} false; then :
5092 $as_echo_n "(cached) " >&6
5093 else
5094 if test -n "$DUMPBIN"; then
5095 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5096 else
5097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5098 for as_dir in $PATH
5100 IFS=$as_save_IFS
5101 test -z "$as_dir" && as_dir=.
5102 for ac_exec_ext in '' $ac_executable_extensions; do
5103 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5104 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5106 break 2
5108 done
5109 done
5110 IFS=$as_save_IFS
5114 DUMPBIN=$ac_cv_prog_DUMPBIN
5115 if test -n "$DUMPBIN"; then
5116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5117 $as_echo "$DUMPBIN" >&6; }
5118 else
5119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5120 $as_echo "no" >&6; }
5124 test -n "$DUMPBIN" && break
5125 done
5127 if test -z "$DUMPBIN"; then
5128 ac_ct_DUMPBIN=$DUMPBIN
5129 for ac_prog in dumpbin "link -dump"
5131 # Extract the first word of "$ac_prog", so it can be a program name with args.
5132 set dummy $ac_prog; ac_word=$2
5133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5134 $as_echo_n "checking for $ac_word... " >&6; }
5135 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5136 $as_echo_n "(cached) " >&6
5137 else
5138 if test -n "$ac_ct_DUMPBIN"; then
5139 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5140 else
5141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5142 for as_dir in $PATH
5144 IFS=$as_save_IFS
5145 test -z "$as_dir" && as_dir=.
5146 for ac_exec_ext in '' $ac_executable_extensions; do
5147 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5148 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5150 break 2
5152 done
5153 done
5154 IFS=$as_save_IFS
5158 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5159 if test -n "$ac_ct_DUMPBIN"; then
5160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5161 $as_echo "$ac_ct_DUMPBIN" >&6; }
5162 else
5163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5164 $as_echo "no" >&6; }
5168 test -n "$ac_ct_DUMPBIN" && break
5169 done
5171 if test "x$ac_ct_DUMPBIN" = x; then
5172 DUMPBIN=":"
5173 else
5174 case $cross_compiling:$ac_tool_warned in
5175 yes:)
5176 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5177 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5178 ac_tool_warned=yes ;;
5179 esac
5180 DUMPBIN=$ac_ct_DUMPBIN
5184 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5185 *COFF*)
5186 DUMPBIN="$DUMPBIN -symbols"
5189 DUMPBIN=:
5191 esac
5194 if test "$DUMPBIN" != ":"; then
5195 NM="$DUMPBIN"
5198 test -z "$NM" && NM=nm
5205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5206 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5207 if ${lt_cv_nm_interface+:} false; then :
5208 $as_echo_n "(cached) " >&6
5209 else
5210 lt_cv_nm_interface="BSD nm"
5211 echo "int some_variable = 0;" > conftest.$ac_ext
5212 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5213 (eval "$ac_compile" 2>conftest.err)
5214 cat conftest.err >&5
5215 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5216 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5217 cat conftest.err >&5
5218 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5219 cat conftest.out >&5
5220 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5221 lt_cv_nm_interface="MS dumpbin"
5223 rm -f conftest*
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5226 $as_echo "$lt_cv_nm_interface" >&6; }
5228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5229 $as_echo_n "checking whether ln -s works... " >&6; }
5230 LN_S=$as_ln_s
5231 if test "$LN_S" = "ln -s"; then
5232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5233 $as_echo "yes" >&6; }
5234 else
5235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5236 $as_echo "no, using $LN_S" >&6; }
5239 # find the maximum length of command line arguments
5240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5241 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5242 if ${lt_cv_sys_max_cmd_len+:} false; then :
5243 $as_echo_n "(cached) " >&6
5244 else
5246 teststring="ABCD"
5248 case $build_os in
5249 msdosdjgpp*)
5250 # On DJGPP, this test can blow up pretty badly due to problems in libc
5251 # (any single argument exceeding 2000 bytes causes a buffer overrun
5252 # during glob expansion). Even if it were fixed, the result of this
5253 # check would be larger than it should be.
5254 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5257 gnu*)
5258 # Under GNU Hurd, this test is not required because there is
5259 # no limit to the length of command line arguments.
5260 # Libtool will interpret -1 as no limit whatsoever
5261 lt_cv_sys_max_cmd_len=-1;
5264 cygwin* | mingw* | cegcc*)
5265 # On Win9x/ME, this test blows up -- it succeeds, but takes
5266 # about 5 minutes as the teststring grows exponentially.
5267 # Worse, since 9x/ME are not pre-emptively multitasking,
5268 # you end up with a "frozen" computer, even though with patience
5269 # the test eventually succeeds (with a max line length of 256k).
5270 # Instead, let's just punt: use the minimum linelength reported by
5271 # all of the supported platforms: 8192 (on NT/2K/XP).
5272 lt_cv_sys_max_cmd_len=8192;
5275 mint*)
5276 # On MiNT this can take a long time and run out of memory.
5277 lt_cv_sys_max_cmd_len=8192;
5280 amigaos*)
5281 # On AmigaOS with pdksh, this test takes hours, literally.
5282 # So we just punt and use a minimum line length of 8192.
5283 lt_cv_sys_max_cmd_len=8192;
5286 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5287 # This has been around since 386BSD, at least. Likely further.
5288 if test -x /sbin/sysctl; then
5289 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5290 elif test -x /usr/sbin/sysctl; then
5291 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5292 else
5293 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5295 # And add a safety zone
5296 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5297 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5300 interix*)
5301 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5302 lt_cv_sys_max_cmd_len=196608
5305 osf*)
5306 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5307 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5308 # nice to cause kernel panics so lets avoid the loop below.
5309 # First set a reasonable default.
5310 lt_cv_sys_max_cmd_len=16384
5312 if test -x /sbin/sysconfig; then
5313 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5314 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5315 esac
5318 sco3.2v5*)
5319 lt_cv_sys_max_cmd_len=102400
5321 sysv5* | sco5v6* | sysv4.2uw2*)
5322 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5323 if test -n "$kargmax"; then
5324 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5325 else
5326 lt_cv_sys_max_cmd_len=32768
5330 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5331 if test -n "$lt_cv_sys_max_cmd_len"; then
5332 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5333 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5334 else
5335 # Make teststring a little bigger before we do anything with it.
5336 # a 1K string should be a reasonable start.
5337 for i in 1 2 3 4 5 6 7 8 ; do
5338 teststring=$teststring$teststring
5339 done
5340 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5341 # If test is not a shell built-in, we'll probably end up computing a
5342 # maximum length that is only half of the actual maximum length, but
5343 # we can't tell.
5344 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5345 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5346 test $i != 17 # 1/2 MB should be enough
5348 i=`expr $i + 1`
5349 teststring=$teststring$teststring
5350 done
5351 # Only check the string length outside the loop.
5352 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5353 teststring=
5354 # Add a significant safety factor because C++ compilers can tack on
5355 # massive amounts of additional arguments before passing them to the
5356 # linker. It appears as though 1/2 is a usable value.
5357 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5360 esac
5364 if test -n $lt_cv_sys_max_cmd_len ; then
5365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5366 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5367 else
5368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5369 $as_echo "none" >&6; }
5371 max_cmd_len=$lt_cv_sys_max_cmd_len
5378 : ${CP="cp -f"}
5379 : ${MV="mv -f"}
5380 : ${RM="rm -f"}
5382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5383 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5384 # Try some XSI features
5385 xsi_shell=no
5386 ( _lt_dummy="a/b/c"
5387 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5388 = c,a/b,, \
5389 && eval 'test $(( 1 + 1 )) -eq 2 \
5390 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5391 && xsi_shell=yes
5392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5393 $as_echo "$xsi_shell" >&6; }
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5397 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5398 lt_shell_append=no
5399 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5400 >/dev/null 2>&1 \
5401 && lt_shell_append=yes
5402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5403 $as_echo "$lt_shell_append" >&6; }
5406 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5407 lt_unset=unset
5408 else
5409 lt_unset=false
5416 # test EBCDIC or ASCII
5417 case `echo X|tr X '\101'` in
5418 A) # ASCII based system
5419 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5420 lt_SP2NL='tr \040 \012'
5421 lt_NL2SP='tr \015\012 \040\040'
5423 *) # EBCDIC based system
5424 lt_SP2NL='tr \100 \n'
5425 lt_NL2SP='tr \r\n \100\100'
5427 esac
5437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5438 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5439 if ${lt_cv_ld_reload_flag+:} false; then :
5440 $as_echo_n "(cached) " >&6
5441 else
5442 lt_cv_ld_reload_flag='-r'
5444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5445 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5446 reload_flag=$lt_cv_ld_reload_flag
5447 case $reload_flag in
5448 "" | " "*) ;;
5449 *) reload_flag=" $reload_flag" ;;
5450 esac
5451 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5452 case $host_os in
5453 darwin*)
5454 if test "$GCC" = yes; then
5455 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5456 else
5457 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5460 esac
5470 if test -n "$ac_tool_prefix"; then
5471 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5472 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5474 $as_echo_n "checking for $ac_word... " >&6; }
5475 if ${ac_cv_prog_OBJDUMP+:} false; then :
5476 $as_echo_n "(cached) " >&6
5477 else
5478 if test -n "$OBJDUMP"; then
5479 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5480 else
5481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5482 for as_dir in $PATH
5484 IFS=$as_save_IFS
5485 test -z "$as_dir" && as_dir=.
5486 for ac_exec_ext in '' $ac_executable_extensions; do
5487 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5488 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5490 break 2
5492 done
5493 done
5494 IFS=$as_save_IFS
5498 OBJDUMP=$ac_cv_prog_OBJDUMP
5499 if test -n "$OBJDUMP"; then
5500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5501 $as_echo "$OBJDUMP" >&6; }
5502 else
5503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5504 $as_echo "no" >&6; }
5509 if test -z "$ac_cv_prog_OBJDUMP"; then
5510 ac_ct_OBJDUMP=$OBJDUMP
5511 # Extract the first word of "objdump", so it can be a program name with args.
5512 set dummy objdump; ac_word=$2
5513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5514 $as_echo_n "checking for $ac_word... " >&6; }
5515 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5516 $as_echo_n "(cached) " >&6
5517 else
5518 if test -n "$ac_ct_OBJDUMP"; then
5519 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5520 else
5521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5522 for as_dir in $PATH
5524 IFS=$as_save_IFS
5525 test -z "$as_dir" && as_dir=.
5526 for ac_exec_ext in '' $ac_executable_extensions; do
5527 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5528 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5530 break 2
5532 done
5533 done
5534 IFS=$as_save_IFS
5538 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5539 if test -n "$ac_ct_OBJDUMP"; then
5540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5541 $as_echo "$ac_ct_OBJDUMP" >&6; }
5542 else
5543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5544 $as_echo "no" >&6; }
5547 if test "x$ac_ct_OBJDUMP" = x; then
5548 OBJDUMP="false"
5549 else
5550 case $cross_compiling:$ac_tool_warned in
5551 yes:)
5552 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5553 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5554 ac_tool_warned=yes ;;
5555 esac
5556 OBJDUMP=$ac_ct_OBJDUMP
5558 else
5559 OBJDUMP="$ac_cv_prog_OBJDUMP"
5562 test -z "$OBJDUMP" && OBJDUMP=objdump
5572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5573 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5574 if ${lt_cv_deplibs_check_method+:} false; then :
5575 $as_echo_n "(cached) " >&6
5576 else
5577 lt_cv_file_magic_cmd='$MAGIC_CMD'
5578 lt_cv_file_magic_test_file=
5579 lt_cv_deplibs_check_method='unknown'
5580 # Need to set the preceding variable on all platforms that support
5581 # interlibrary dependencies.
5582 # 'none' -- dependencies not supported.
5583 # `unknown' -- same as none, but documents that we really don't know.
5584 # 'pass_all' -- all dependencies passed with no checks.
5585 # 'test_compile' -- check by making test program.
5586 # 'file_magic [[regex]]' -- check by looking for files in library path
5587 # which responds to the $file_magic_cmd with a given extended regex.
5588 # If you have `file' or equivalent on your system and you're not sure
5589 # whether `pass_all' will *always* work, you probably want this one.
5591 case $host_os in
5592 aix[4-9]*)
5593 lt_cv_deplibs_check_method=pass_all
5596 beos*)
5597 lt_cv_deplibs_check_method=pass_all
5600 bsdi[45]*)
5601 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5602 lt_cv_file_magic_cmd='/usr/bin/file -L'
5603 lt_cv_file_magic_test_file=/shlib/libc.so
5606 cygwin*)
5607 # func_win32_libid is a shell function defined in ltmain.sh
5608 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5609 lt_cv_file_magic_cmd='func_win32_libid'
5612 mingw* | pw32*)
5613 # Base MSYS/MinGW do not provide the 'file' command needed by
5614 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5615 # unless we find 'file', for example because we are cross-compiling.
5616 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5617 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5618 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5619 lt_cv_file_magic_cmd='func_win32_libid'
5620 else
5621 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5622 lt_cv_file_magic_cmd='$OBJDUMP -f'
5626 cegcc*)
5627 # use the weaker test based on 'objdump'. See mingw*.
5628 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5629 lt_cv_file_magic_cmd='$OBJDUMP -f'
5632 darwin* | rhapsody*)
5633 lt_cv_deplibs_check_method=pass_all
5636 freebsd* | dragonfly*)
5637 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5638 case $host_cpu in
5639 i*86 )
5640 # Not sure whether the presence of OpenBSD here was a mistake.
5641 # Let's accept both of them until this is cleared up.
5642 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5643 lt_cv_file_magic_cmd=/usr/bin/file
5644 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5646 esac
5647 else
5648 lt_cv_deplibs_check_method=pass_all
5652 gnu*)
5653 lt_cv_deplibs_check_method=pass_all
5656 haiku*)
5657 lt_cv_deplibs_check_method=pass_all
5660 hpux10.20* | hpux11*)
5661 lt_cv_file_magic_cmd=/usr/bin/file
5662 case $host_cpu in
5663 ia64*)
5664 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5665 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5667 hppa*64*)
5668 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]'
5669 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5672 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5673 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5675 esac
5678 interix[3-9]*)
5679 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5680 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5683 irix5* | irix6* | nonstopux*)
5684 case $LD in
5685 *-32|*"-32 ") libmagic=32-bit;;
5686 *-n32|*"-n32 ") libmagic=N32;;
5687 *-64|*"-64 ") libmagic=64-bit;;
5688 *) libmagic=never-match;;
5689 esac
5690 lt_cv_deplibs_check_method=pass_all
5693 # This must be Linux ELF.
5694 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
5695 lt_cv_deplibs_check_method=pass_all
5698 netbsd*)
5699 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5700 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5701 else
5702 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5706 newos6*)
5707 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5708 lt_cv_file_magic_cmd=/usr/bin/file
5709 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5712 *nto* | *qnx*)
5713 lt_cv_deplibs_check_method=pass_all
5716 openbsd*)
5717 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5718 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5719 else
5720 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5724 osf3* | osf4* | osf5*)
5725 lt_cv_deplibs_check_method=pass_all
5728 rdos*)
5729 lt_cv_deplibs_check_method=pass_all
5732 solaris*)
5733 lt_cv_deplibs_check_method=pass_all
5736 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5737 lt_cv_deplibs_check_method=pass_all
5740 sysv4 | sysv4.3*)
5741 case $host_vendor in
5742 motorola)
5743 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]'
5744 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5746 ncr)
5747 lt_cv_deplibs_check_method=pass_all
5749 sequent)
5750 lt_cv_file_magic_cmd='/bin/file'
5751 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5753 sni)
5754 lt_cv_file_magic_cmd='/bin/file'
5755 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5756 lt_cv_file_magic_test_file=/lib/libc.so
5758 siemens)
5759 lt_cv_deplibs_check_method=pass_all
5762 lt_cv_deplibs_check_method=pass_all
5764 esac
5767 tpf*)
5768 lt_cv_deplibs_check_method=pass_all
5770 vxworks*)
5771 # Assume VxWorks cross toolchains are built on Linux, possibly
5772 # as canadian for Windows hosts.
5773 lt_cv_deplibs_check_method=pass_all
5775 esac
5778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5779 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5780 file_magic_cmd=$lt_cv_file_magic_cmd
5781 deplibs_check_method=$lt_cv_deplibs_check_method
5782 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5795 plugin_option=
5796 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
5797 for plugin in $plugin_names; do
5798 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
5799 if test x$plugin_so = x$plugin; then
5800 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
5802 if test x$plugin_so != x$plugin; then
5803 plugin_option="--plugin $plugin_so"
5804 break
5806 done
5808 if test -n "$ac_tool_prefix"; then
5809 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5810 set dummy ${ac_tool_prefix}ar; ac_word=$2
5811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5812 $as_echo_n "checking for $ac_word... " >&6; }
5813 if ${ac_cv_prog_AR+:} false; then :
5814 $as_echo_n "(cached) " >&6
5815 else
5816 if test -n "$AR"; then
5817 ac_cv_prog_AR="$AR" # Let the user override the test.
5818 else
5819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5820 for as_dir in $PATH
5822 IFS=$as_save_IFS
5823 test -z "$as_dir" && as_dir=.
5824 for ac_exec_ext in '' $ac_executable_extensions; do
5825 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5826 ac_cv_prog_AR="${ac_tool_prefix}ar"
5827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5828 break 2
5830 done
5831 done
5832 IFS=$as_save_IFS
5836 AR=$ac_cv_prog_AR
5837 if test -n "$AR"; then
5838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5839 $as_echo "$AR" >&6; }
5840 else
5841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5842 $as_echo "no" >&6; }
5847 if test -z "$ac_cv_prog_AR"; then
5848 ac_ct_AR=$AR
5849 # Extract the first word of "ar", so it can be a program name with args.
5850 set dummy ar; ac_word=$2
5851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5852 $as_echo_n "checking for $ac_word... " >&6; }
5853 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5854 $as_echo_n "(cached) " >&6
5855 else
5856 if test -n "$ac_ct_AR"; then
5857 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5858 else
5859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5860 for as_dir in $PATH
5862 IFS=$as_save_IFS
5863 test -z "$as_dir" && as_dir=.
5864 for ac_exec_ext in '' $ac_executable_extensions; do
5865 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5866 ac_cv_prog_ac_ct_AR="ar"
5867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5868 break 2
5870 done
5871 done
5872 IFS=$as_save_IFS
5876 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5877 if test -n "$ac_ct_AR"; then
5878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5879 $as_echo "$ac_ct_AR" >&6; }
5880 else
5881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5882 $as_echo "no" >&6; }
5885 if test "x$ac_ct_AR" = x; then
5886 AR="false"
5887 else
5888 case $cross_compiling:$ac_tool_warned in
5889 yes:)
5890 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5891 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5892 ac_tool_warned=yes ;;
5893 esac
5894 AR=$ac_ct_AR
5896 else
5897 AR="$ac_cv_prog_AR"
5900 test -z "$AR" && AR=ar
5901 if test -n "$plugin_option"; then
5902 if $AR --help 2>&1 | grep -q "\--plugin"; then
5903 touch conftest.c
5904 $AR $plugin_option rc conftest.a conftest.c
5905 if test "$?" != 0; then
5906 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
5907 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
5908 else
5909 AR="$AR $plugin_option"
5911 rm -f conftest.*
5914 test -z "$AR_FLAGS" && AR_FLAGS=cru
5926 if test -n "$ac_tool_prefix"; then
5927 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5928 set dummy ${ac_tool_prefix}strip; ac_word=$2
5929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5930 $as_echo_n "checking for $ac_word... " >&6; }
5931 if ${ac_cv_prog_STRIP+:} false; then :
5932 $as_echo_n "(cached) " >&6
5933 else
5934 if test -n "$STRIP"; then
5935 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5936 else
5937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5938 for as_dir in $PATH
5940 IFS=$as_save_IFS
5941 test -z "$as_dir" && as_dir=.
5942 for ac_exec_ext in '' $ac_executable_extensions; do
5943 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5944 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5946 break 2
5948 done
5949 done
5950 IFS=$as_save_IFS
5954 STRIP=$ac_cv_prog_STRIP
5955 if test -n "$STRIP"; then
5956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5957 $as_echo "$STRIP" >&6; }
5958 else
5959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5960 $as_echo "no" >&6; }
5965 if test -z "$ac_cv_prog_STRIP"; then
5966 ac_ct_STRIP=$STRIP
5967 # Extract the first word of "strip", so it can be a program name with args.
5968 set dummy strip; ac_word=$2
5969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5970 $as_echo_n "checking for $ac_word... " >&6; }
5971 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5972 $as_echo_n "(cached) " >&6
5973 else
5974 if test -n "$ac_ct_STRIP"; then
5975 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5976 else
5977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5978 for as_dir in $PATH
5980 IFS=$as_save_IFS
5981 test -z "$as_dir" && as_dir=.
5982 for ac_exec_ext in '' $ac_executable_extensions; do
5983 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5984 ac_cv_prog_ac_ct_STRIP="strip"
5985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5986 break 2
5988 done
5989 done
5990 IFS=$as_save_IFS
5994 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5995 if test -n "$ac_ct_STRIP"; then
5996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5997 $as_echo "$ac_ct_STRIP" >&6; }
5998 else
5999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6000 $as_echo "no" >&6; }
6003 if test "x$ac_ct_STRIP" = x; then
6004 STRIP=":"
6005 else
6006 case $cross_compiling:$ac_tool_warned in
6007 yes:)
6008 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6009 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6010 ac_tool_warned=yes ;;
6011 esac
6012 STRIP=$ac_ct_STRIP
6014 else
6015 STRIP="$ac_cv_prog_STRIP"
6018 test -z "$STRIP" && STRIP=:
6025 if test -n "$ac_tool_prefix"; then
6026 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6027 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6029 $as_echo_n "checking for $ac_word... " >&6; }
6030 if ${ac_cv_prog_RANLIB+:} false; then :
6031 $as_echo_n "(cached) " >&6
6032 else
6033 if test -n "$RANLIB"; then
6034 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6035 else
6036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6037 for as_dir in $PATH
6039 IFS=$as_save_IFS
6040 test -z "$as_dir" && as_dir=.
6041 for ac_exec_ext in '' $ac_executable_extensions; do
6042 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6043 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6045 break 2
6047 done
6048 done
6049 IFS=$as_save_IFS
6053 RANLIB=$ac_cv_prog_RANLIB
6054 if test -n "$RANLIB"; then
6055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6056 $as_echo "$RANLIB" >&6; }
6057 else
6058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6059 $as_echo "no" >&6; }
6064 if test -z "$ac_cv_prog_RANLIB"; then
6065 ac_ct_RANLIB=$RANLIB
6066 # Extract the first word of "ranlib", so it can be a program name with args.
6067 set dummy ranlib; ac_word=$2
6068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6069 $as_echo_n "checking for $ac_word... " >&6; }
6070 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6071 $as_echo_n "(cached) " >&6
6072 else
6073 if test -n "$ac_ct_RANLIB"; then
6074 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6075 else
6076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6077 for as_dir in $PATH
6079 IFS=$as_save_IFS
6080 test -z "$as_dir" && as_dir=.
6081 for ac_exec_ext in '' $ac_executable_extensions; do
6082 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6083 ac_cv_prog_ac_ct_RANLIB="ranlib"
6084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6085 break 2
6087 done
6088 done
6089 IFS=$as_save_IFS
6093 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6094 if test -n "$ac_ct_RANLIB"; then
6095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6096 $as_echo "$ac_ct_RANLIB" >&6; }
6097 else
6098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6099 $as_echo "no" >&6; }
6102 if test "x$ac_ct_RANLIB" = x; then
6103 RANLIB=":"
6104 else
6105 case $cross_compiling:$ac_tool_warned in
6106 yes:)
6107 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6108 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6109 ac_tool_warned=yes ;;
6110 esac
6111 RANLIB=$ac_ct_RANLIB
6113 else
6114 RANLIB="$ac_cv_prog_RANLIB"
6117 test -z "$RANLIB" && RANLIB=:
6118 if test -n "$plugin_option" && test "$RANLIB" != ":"; then
6119 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
6120 RANLIB="$RANLIB $plugin_option"
6129 # Determine commands to create old-style static archives.
6130 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6131 old_postinstall_cmds='chmod 644 $oldlib'
6132 old_postuninstall_cmds=
6134 if test -n "$RANLIB"; then
6135 case $host_os in
6136 openbsd*)
6137 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6140 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6142 esac
6143 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6146 case $host_os in
6147 darwin*)
6148 lock_old_archive_extraction=yes ;;
6150 lock_old_archive_extraction=no ;;
6151 esac
6191 # If no C compiler was specified, use CC.
6192 LTCC=${LTCC-"$CC"}
6194 # If no C compiler flags were specified, use CFLAGS.
6195 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6197 # Allow CC to be a program name with arguments.
6198 compiler=$CC
6201 # Check for command to grab the raw symbol name followed by C symbol from nm.
6202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6203 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6204 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6205 $as_echo_n "(cached) " >&6
6206 else
6208 # These are sane defaults that work on at least a few old systems.
6209 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6211 # Character class describing NM global symbol codes.
6212 symcode='[BCDEGRST]'
6214 # Regexp to match symbols that can be accessed directly from C.
6215 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6217 # Define system-specific variables.
6218 case $host_os in
6219 aix*)
6220 symcode='[BCDT]'
6222 cygwin* | mingw* | pw32* | cegcc*)
6223 symcode='[ABCDGISTW]'
6225 hpux*)
6226 if test "$host_cpu" = ia64; then
6227 symcode='[ABCDEGRST]'
6230 irix* | nonstopux*)
6231 symcode='[BCDEGRST]'
6233 osf*)
6234 symcode='[BCDEGQRST]'
6236 solaris*)
6237 symcode='[BCDRT]'
6239 sco3.2v5*)
6240 symcode='[DT]'
6242 sysv4.2uw2*)
6243 symcode='[DT]'
6245 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6246 symcode='[ABDT]'
6248 sysv4)
6249 symcode='[DFNSTU]'
6251 esac
6253 # If we're using GNU nm, then use its standard symbol codes.
6254 case `$NM -V 2>&1` in
6255 *GNU* | *'with BFD'*)
6256 symcode='[ABCDGIRSTW]' ;;
6257 esac
6259 # Transform an extracted symbol line into a proper C declaration.
6260 # Some systems (esp. on ia64) link data and code symbols differently,
6261 # so use this general approach.
6262 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6264 # Transform an extracted symbol line into symbol name and symbol address
6265 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6266 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'"
6268 # Handle CRLF in mingw tool chain
6269 opt_cr=
6270 case $build_os in
6271 mingw*)
6272 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6274 esac
6276 # Try without a prefix underscore, then with it.
6277 for ac_symprfx in "" "_"; do
6279 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6280 symxfrm="\\1 $ac_symprfx\\2 \\2"
6282 # Write the raw and C identifiers.
6283 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6284 # Fake it for dumpbin and say T for any non-static function
6285 # and D for any global variable.
6286 # Also find C++ and __fastcall symbols from MSVC++,
6287 # which start with @ or ?.
6288 lt_cv_sys_global_symbol_pipe="$AWK '"\
6289 " {last_section=section; section=\$ 3};"\
6290 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6291 " \$ 0!~/External *\|/{next};"\
6292 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6293 " {if(hide[section]) next};"\
6294 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6295 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6296 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6297 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6298 " ' prfx=^$ac_symprfx"
6299 else
6300 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6303 # Check to see that the pipe works correctly.
6304 pipe_works=no
6306 rm -f conftest*
6307 cat > conftest.$ac_ext <<_LT_EOF
6308 #ifdef __cplusplus
6309 extern "C" {
6310 #endif
6311 char nm_test_var;
6312 void nm_test_func(void);
6313 void nm_test_func(void){}
6314 #ifdef __cplusplus
6316 #endif
6317 int main(){nm_test_var='a';nm_test_func();return(0);}
6318 _LT_EOF
6320 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6321 (eval $ac_compile) 2>&5
6322 ac_status=$?
6323 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6324 test $ac_status = 0; }; then
6325 # Now try to grab the symbols.
6326 nlist=conftest.nm
6327 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6328 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6329 ac_status=$?
6330 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6331 test $ac_status = 0; } && test -s "$nlist"; then
6332 # Try sorting and uniquifying the output.
6333 if sort "$nlist" | uniq > "$nlist"T; then
6334 mv -f "$nlist"T "$nlist"
6335 else
6336 rm -f "$nlist"T
6339 # Make sure that we snagged all the symbols we need.
6340 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6341 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6342 cat <<_LT_EOF > conftest.$ac_ext
6343 #ifdef __cplusplus
6344 extern "C" {
6345 #endif
6347 _LT_EOF
6348 # Now generate the symbol file.
6349 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6351 cat <<_LT_EOF >> conftest.$ac_ext
6353 /* The mapping between symbol names and symbols. */
6354 const struct {
6355 const char *name;
6356 void *address;
6358 lt__PROGRAM__LTX_preloaded_symbols[] =
6360 { "@PROGRAM@", (void *) 0 },
6361 _LT_EOF
6362 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6363 cat <<\_LT_EOF >> conftest.$ac_ext
6364 {0, (void *) 0}
6367 /* This works around a problem in FreeBSD linker */
6368 #ifdef FREEBSD_WORKAROUND
6369 static const void *lt_preloaded_setup() {
6370 return lt__PROGRAM__LTX_preloaded_symbols;
6372 #endif
6374 #ifdef __cplusplus
6376 #endif
6377 _LT_EOF
6378 # Now try linking the two files.
6379 mv conftest.$ac_objext conftstm.$ac_objext
6380 lt_save_LIBS="$LIBS"
6381 lt_save_CFLAGS="$CFLAGS"
6382 LIBS="conftstm.$ac_objext"
6383 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6384 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6385 (eval $ac_link) 2>&5
6386 ac_status=$?
6387 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6388 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6389 pipe_works=yes
6391 LIBS="$lt_save_LIBS"
6392 CFLAGS="$lt_save_CFLAGS"
6393 else
6394 echo "cannot find nm_test_func in $nlist" >&5
6396 else
6397 echo "cannot find nm_test_var in $nlist" >&5
6399 else
6400 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6402 else
6403 echo "$progname: failed program was:" >&5
6404 cat conftest.$ac_ext >&5
6406 rm -rf conftest* conftst*
6408 # Do not use the global_symbol_pipe unless it works.
6409 if test "$pipe_works" = yes; then
6410 break
6411 else
6412 lt_cv_sys_global_symbol_pipe=
6414 done
6418 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6419 lt_cv_sys_global_symbol_to_cdecl=
6421 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6423 $as_echo "failed" >&6; }
6424 else
6425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6426 $as_echo "ok" >&6; }
6450 # Check whether --enable-libtool-lock was given.
6451 if test "${enable_libtool_lock+set}" = set; then :
6452 enableval=$enable_libtool_lock;
6455 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6457 # Some flags need to be propagated to the compiler or linker for good
6458 # libtool support.
6459 case $host in
6460 ia64-*-hpux*)
6461 # Find out which ABI we are using.
6462 echo 'int i;' > conftest.$ac_ext
6463 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6464 (eval $ac_compile) 2>&5
6465 ac_status=$?
6466 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6467 test $ac_status = 0; }; then
6468 case `/usr/bin/file conftest.$ac_objext` in
6469 *ELF-32*)
6470 HPUX_IA64_MODE="32"
6472 *ELF-64*)
6473 HPUX_IA64_MODE="64"
6475 esac
6477 rm -rf conftest*
6479 *-*-irix6*)
6480 # Find out which ABI we are using.
6481 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6482 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6483 (eval $ac_compile) 2>&5
6484 ac_status=$?
6485 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6486 test $ac_status = 0; }; then
6487 if test "$lt_cv_prog_gnu_ld" = yes; then
6488 case `/usr/bin/file conftest.$ac_objext` in
6489 *32-bit*)
6490 LD="${LD-ld} -melf32bsmip"
6492 *N32*)
6493 LD="${LD-ld} -melf32bmipn32"
6495 *64-bit*)
6496 LD="${LD-ld} -melf64bmip"
6498 esac
6499 else
6500 case `/usr/bin/file conftest.$ac_objext` in
6501 *32-bit*)
6502 LD="${LD-ld} -32"
6504 *N32*)
6505 LD="${LD-ld} -n32"
6507 *64-bit*)
6508 LD="${LD-ld} -64"
6510 esac
6513 rm -rf conftest*
6516 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6517 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6518 # Find out which ABI we are using.
6519 echo 'int i;' > conftest.$ac_ext
6520 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6521 (eval $ac_compile) 2>&5
6522 ac_status=$?
6523 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6524 test $ac_status = 0; }; then
6525 case `/usr/bin/file conftest.o` in
6526 *32-bit*)
6527 case $host in
6528 x86_64-*kfreebsd*-gnu)
6529 LD="${LD-ld} -m elf_i386_fbsd"
6531 x86_64-*linux*)
6532 case `/usr/bin/file conftest.o` in
6533 *x86-64*)
6534 LD="${LD-ld} -m elf32_x86_64"
6537 LD="${LD-ld} -m elf_i386"
6539 esac
6541 powerpc64le-*linux*)
6542 LD="${LD-ld} -m elf32lppclinux"
6544 powerpc64-*linux*)
6545 LD="${LD-ld} -m elf32ppclinux"
6547 s390x-*linux*)
6548 LD="${LD-ld} -m elf_s390"
6550 sparc64-*linux*)
6551 LD="${LD-ld} -m elf32_sparc"
6553 esac
6555 *64-bit*)
6556 case $host in
6557 x86_64-*kfreebsd*-gnu)
6558 LD="${LD-ld} -m elf_x86_64_fbsd"
6560 x86_64-*linux*)
6561 LD="${LD-ld} -m elf_x86_64"
6563 powerpcle-*linux*)
6564 LD="${LD-ld} -m elf64lppc"
6566 powerpc-*linux*)
6567 LD="${LD-ld} -m elf64ppc"
6569 s390*-*linux*|s390*-*tpf*)
6570 LD="${LD-ld} -m elf64_s390"
6572 sparc*-*linux*)
6573 LD="${LD-ld} -m elf64_sparc"
6575 esac
6577 esac
6579 rm -rf conftest*
6582 *-*-sco3.2v5*)
6583 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6584 SAVE_CFLAGS="$CFLAGS"
6585 CFLAGS="$CFLAGS -belf"
6586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6587 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6588 if ${lt_cv_cc_needs_belf+:} false; then :
6589 $as_echo_n "(cached) " >&6
6590 else
6591 ac_ext=c
6592 ac_cpp='$CPP $CPPFLAGS'
6593 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6594 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6595 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6598 /* end confdefs.h. */
6601 main ()
6605 return 0;
6607 _ACEOF
6608 if ac_fn_c_try_link "$LINENO"; then :
6609 lt_cv_cc_needs_belf=yes
6610 else
6611 lt_cv_cc_needs_belf=no
6613 rm -f core conftest.err conftest.$ac_objext \
6614 conftest$ac_exeext conftest.$ac_ext
6615 ac_ext=c
6616 ac_cpp='$CPP $CPPFLAGS'
6617 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6618 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6619 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6623 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6624 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6625 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6626 CFLAGS="$SAVE_CFLAGS"
6629 sparc*-*solaris*)
6630 # Find out which ABI we are using.
6631 echo 'int i;' > conftest.$ac_ext
6632 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6633 (eval $ac_compile) 2>&5
6634 ac_status=$?
6635 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6636 test $ac_status = 0; }; then
6637 case `/usr/bin/file conftest.o` in
6638 *64-bit*)
6639 case $lt_cv_prog_gnu_ld in
6640 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6642 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6643 LD="${LD-ld} -64"
6646 esac
6648 esac
6650 rm -rf conftest*
6652 esac
6654 need_locks="$enable_libtool_lock"
6657 case $host_os in
6658 rhapsody* | darwin*)
6659 if test -n "$ac_tool_prefix"; then
6660 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6661 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6663 $as_echo_n "checking for $ac_word... " >&6; }
6664 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6665 $as_echo_n "(cached) " >&6
6666 else
6667 if test -n "$DSYMUTIL"; then
6668 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6669 else
6670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6671 for as_dir in $PATH
6673 IFS=$as_save_IFS
6674 test -z "$as_dir" && as_dir=.
6675 for ac_exec_ext in '' $ac_executable_extensions; do
6676 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6677 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6679 break 2
6681 done
6682 done
6683 IFS=$as_save_IFS
6687 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6688 if test -n "$DSYMUTIL"; then
6689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6690 $as_echo "$DSYMUTIL" >&6; }
6691 else
6692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6693 $as_echo "no" >&6; }
6698 if test -z "$ac_cv_prog_DSYMUTIL"; then
6699 ac_ct_DSYMUTIL=$DSYMUTIL
6700 # Extract the first word of "dsymutil", so it can be a program name with args.
6701 set dummy dsymutil; ac_word=$2
6702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6703 $as_echo_n "checking for $ac_word... " >&6; }
6704 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6705 $as_echo_n "(cached) " >&6
6706 else
6707 if test -n "$ac_ct_DSYMUTIL"; then
6708 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6709 else
6710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6711 for as_dir in $PATH
6713 IFS=$as_save_IFS
6714 test -z "$as_dir" && as_dir=.
6715 for ac_exec_ext in '' $ac_executable_extensions; do
6716 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6717 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6719 break 2
6721 done
6722 done
6723 IFS=$as_save_IFS
6727 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6728 if test -n "$ac_ct_DSYMUTIL"; then
6729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6730 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6731 else
6732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6733 $as_echo "no" >&6; }
6736 if test "x$ac_ct_DSYMUTIL" = x; then
6737 DSYMUTIL=":"
6738 else
6739 case $cross_compiling:$ac_tool_warned in
6740 yes:)
6741 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6742 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6743 ac_tool_warned=yes ;;
6744 esac
6745 DSYMUTIL=$ac_ct_DSYMUTIL
6747 else
6748 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6751 if test -n "$ac_tool_prefix"; then
6752 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6753 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6755 $as_echo_n "checking for $ac_word... " >&6; }
6756 if ${ac_cv_prog_NMEDIT+:} false; then :
6757 $as_echo_n "(cached) " >&6
6758 else
6759 if test -n "$NMEDIT"; then
6760 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6761 else
6762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6763 for as_dir in $PATH
6765 IFS=$as_save_IFS
6766 test -z "$as_dir" && as_dir=.
6767 for ac_exec_ext in '' $ac_executable_extensions; do
6768 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6769 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6771 break 2
6773 done
6774 done
6775 IFS=$as_save_IFS
6779 NMEDIT=$ac_cv_prog_NMEDIT
6780 if test -n "$NMEDIT"; then
6781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6782 $as_echo "$NMEDIT" >&6; }
6783 else
6784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6785 $as_echo "no" >&6; }
6790 if test -z "$ac_cv_prog_NMEDIT"; then
6791 ac_ct_NMEDIT=$NMEDIT
6792 # Extract the first word of "nmedit", so it can be a program name with args.
6793 set dummy nmedit; ac_word=$2
6794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6795 $as_echo_n "checking for $ac_word... " >&6; }
6796 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6797 $as_echo_n "(cached) " >&6
6798 else
6799 if test -n "$ac_ct_NMEDIT"; then
6800 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6801 else
6802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6803 for as_dir in $PATH
6805 IFS=$as_save_IFS
6806 test -z "$as_dir" && as_dir=.
6807 for ac_exec_ext in '' $ac_executable_extensions; do
6808 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6809 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6811 break 2
6813 done
6814 done
6815 IFS=$as_save_IFS
6819 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6820 if test -n "$ac_ct_NMEDIT"; then
6821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6822 $as_echo "$ac_ct_NMEDIT" >&6; }
6823 else
6824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6825 $as_echo "no" >&6; }
6828 if test "x$ac_ct_NMEDIT" = x; then
6829 NMEDIT=":"
6830 else
6831 case $cross_compiling:$ac_tool_warned in
6832 yes:)
6833 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6834 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6835 ac_tool_warned=yes ;;
6836 esac
6837 NMEDIT=$ac_ct_NMEDIT
6839 else
6840 NMEDIT="$ac_cv_prog_NMEDIT"
6843 if test -n "$ac_tool_prefix"; then
6844 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6845 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6847 $as_echo_n "checking for $ac_word... " >&6; }
6848 if ${ac_cv_prog_LIPO+:} false; then :
6849 $as_echo_n "(cached) " >&6
6850 else
6851 if test -n "$LIPO"; then
6852 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6853 else
6854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6855 for as_dir in $PATH
6857 IFS=$as_save_IFS
6858 test -z "$as_dir" && as_dir=.
6859 for ac_exec_ext in '' $ac_executable_extensions; do
6860 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6861 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6863 break 2
6865 done
6866 done
6867 IFS=$as_save_IFS
6871 LIPO=$ac_cv_prog_LIPO
6872 if test -n "$LIPO"; then
6873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6874 $as_echo "$LIPO" >&6; }
6875 else
6876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6877 $as_echo "no" >&6; }
6882 if test -z "$ac_cv_prog_LIPO"; then
6883 ac_ct_LIPO=$LIPO
6884 # Extract the first word of "lipo", so it can be a program name with args.
6885 set dummy lipo; ac_word=$2
6886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6887 $as_echo_n "checking for $ac_word... " >&6; }
6888 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6889 $as_echo_n "(cached) " >&6
6890 else
6891 if test -n "$ac_ct_LIPO"; then
6892 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6893 else
6894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6895 for as_dir in $PATH
6897 IFS=$as_save_IFS
6898 test -z "$as_dir" && as_dir=.
6899 for ac_exec_ext in '' $ac_executable_extensions; do
6900 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6901 ac_cv_prog_ac_ct_LIPO="lipo"
6902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6903 break 2
6905 done
6906 done
6907 IFS=$as_save_IFS
6911 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6912 if test -n "$ac_ct_LIPO"; then
6913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6914 $as_echo "$ac_ct_LIPO" >&6; }
6915 else
6916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6917 $as_echo "no" >&6; }
6920 if test "x$ac_ct_LIPO" = x; then
6921 LIPO=":"
6922 else
6923 case $cross_compiling:$ac_tool_warned in
6924 yes:)
6925 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6926 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6927 ac_tool_warned=yes ;;
6928 esac
6929 LIPO=$ac_ct_LIPO
6931 else
6932 LIPO="$ac_cv_prog_LIPO"
6935 if test -n "$ac_tool_prefix"; then
6936 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6937 set dummy ${ac_tool_prefix}otool; ac_word=$2
6938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6939 $as_echo_n "checking for $ac_word... " >&6; }
6940 if ${ac_cv_prog_OTOOL+:} false; then :
6941 $as_echo_n "(cached) " >&6
6942 else
6943 if test -n "$OTOOL"; then
6944 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6945 else
6946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6947 for as_dir in $PATH
6949 IFS=$as_save_IFS
6950 test -z "$as_dir" && as_dir=.
6951 for ac_exec_ext in '' $ac_executable_extensions; do
6952 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6953 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6955 break 2
6957 done
6958 done
6959 IFS=$as_save_IFS
6963 OTOOL=$ac_cv_prog_OTOOL
6964 if test -n "$OTOOL"; then
6965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6966 $as_echo "$OTOOL" >&6; }
6967 else
6968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6969 $as_echo "no" >&6; }
6974 if test -z "$ac_cv_prog_OTOOL"; then
6975 ac_ct_OTOOL=$OTOOL
6976 # Extract the first word of "otool", so it can be a program name with args.
6977 set dummy otool; ac_word=$2
6978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6979 $as_echo_n "checking for $ac_word... " >&6; }
6980 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6981 $as_echo_n "(cached) " >&6
6982 else
6983 if test -n "$ac_ct_OTOOL"; then
6984 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6985 else
6986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6987 for as_dir in $PATH
6989 IFS=$as_save_IFS
6990 test -z "$as_dir" && as_dir=.
6991 for ac_exec_ext in '' $ac_executable_extensions; do
6992 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6993 ac_cv_prog_ac_ct_OTOOL="otool"
6994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6995 break 2
6997 done
6998 done
6999 IFS=$as_save_IFS
7003 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7004 if test -n "$ac_ct_OTOOL"; then
7005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7006 $as_echo "$ac_ct_OTOOL" >&6; }
7007 else
7008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7009 $as_echo "no" >&6; }
7012 if test "x$ac_ct_OTOOL" = x; then
7013 OTOOL=":"
7014 else
7015 case $cross_compiling:$ac_tool_warned in
7016 yes:)
7017 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7018 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7019 ac_tool_warned=yes ;;
7020 esac
7021 OTOOL=$ac_ct_OTOOL
7023 else
7024 OTOOL="$ac_cv_prog_OTOOL"
7027 if test -n "$ac_tool_prefix"; then
7028 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7029 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7031 $as_echo_n "checking for $ac_word... " >&6; }
7032 if ${ac_cv_prog_OTOOL64+:} false; then :
7033 $as_echo_n "(cached) " >&6
7034 else
7035 if test -n "$OTOOL64"; then
7036 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7037 else
7038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7039 for as_dir in $PATH
7041 IFS=$as_save_IFS
7042 test -z "$as_dir" && as_dir=.
7043 for ac_exec_ext in '' $ac_executable_extensions; do
7044 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7045 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7047 break 2
7049 done
7050 done
7051 IFS=$as_save_IFS
7055 OTOOL64=$ac_cv_prog_OTOOL64
7056 if test -n "$OTOOL64"; then
7057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7058 $as_echo "$OTOOL64" >&6; }
7059 else
7060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7061 $as_echo "no" >&6; }
7066 if test -z "$ac_cv_prog_OTOOL64"; then
7067 ac_ct_OTOOL64=$OTOOL64
7068 # Extract the first word of "otool64", so it can be a program name with args.
7069 set dummy otool64; ac_word=$2
7070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7071 $as_echo_n "checking for $ac_word... " >&6; }
7072 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7073 $as_echo_n "(cached) " >&6
7074 else
7075 if test -n "$ac_ct_OTOOL64"; then
7076 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7077 else
7078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7079 for as_dir in $PATH
7081 IFS=$as_save_IFS
7082 test -z "$as_dir" && as_dir=.
7083 for ac_exec_ext in '' $ac_executable_extensions; do
7084 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7085 ac_cv_prog_ac_ct_OTOOL64="otool64"
7086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7087 break 2
7089 done
7090 done
7091 IFS=$as_save_IFS
7095 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7096 if test -n "$ac_ct_OTOOL64"; then
7097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7098 $as_echo "$ac_ct_OTOOL64" >&6; }
7099 else
7100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7101 $as_echo "no" >&6; }
7104 if test "x$ac_ct_OTOOL64" = x; then
7105 OTOOL64=":"
7106 else
7107 case $cross_compiling:$ac_tool_warned in
7108 yes:)
7109 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7110 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7111 ac_tool_warned=yes ;;
7112 esac
7113 OTOOL64=$ac_ct_OTOOL64
7115 else
7116 OTOOL64="$ac_cv_prog_OTOOL64"
7145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7146 $as_echo_n "checking for -single_module linker flag... " >&6; }
7147 if ${lt_cv_apple_cc_single_mod+:} false; then :
7148 $as_echo_n "(cached) " >&6
7149 else
7150 lt_cv_apple_cc_single_mod=no
7151 if test -z "${LT_MULTI_MODULE}"; then
7152 # By default we will add the -single_module flag. You can override
7153 # by either setting the environment variable LT_MULTI_MODULE
7154 # non-empty at configure time, or by adding -multi_module to the
7155 # link flags.
7156 rm -rf libconftest.dylib*
7157 echo "int foo(void){return 1;}" > conftest.c
7158 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7159 -dynamiclib -Wl,-single_module conftest.c" >&5
7160 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7161 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7162 _lt_result=$?
7163 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7164 lt_cv_apple_cc_single_mod=yes
7165 else
7166 cat conftest.err >&5
7168 rm -rf libconftest.dylib*
7169 rm -f conftest.*
7172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7173 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7175 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7176 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7177 $as_echo_n "(cached) " >&6
7178 else
7179 lt_cv_ld_exported_symbols_list=no
7180 save_LDFLAGS=$LDFLAGS
7181 echo "_main" > conftest.sym
7182 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7184 /* end confdefs.h. */
7187 main ()
7191 return 0;
7193 _ACEOF
7194 if ac_fn_c_try_link "$LINENO"; then :
7195 lt_cv_ld_exported_symbols_list=yes
7196 else
7197 lt_cv_ld_exported_symbols_list=no
7199 rm -f core conftest.err conftest.$ac_objext \
7200 conftest$ac_exeext conftest.$ac_ext
7201 LDFLAGS="$save_LDFLAGS"
7204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7205 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7207 $as_echo_n "checking for -force_load linker flag... " >&6; }
7208 if ${lt_cv_ld_force_load+:} false; then :
7209 $as_echo_n "(cached) " >&6
7210 else
7211 lt_cv_ld_force_load=no
7212 cat > conftest.c << _LT_EOF
7213 int forced_loaded() { return 2;}
7214 _LT_EOF
7215 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7216 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7217 echo "$AR cru libconftest.a conftest.o" >&5
7218 $AR cru libconftest.a conftest.o 2>&5
7219 cat > conftest.c << _LT_EOF
7220 int main() { return 0;}
7221 _LT_EOF
7222 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7223 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7224 _lt_result=$?
7225 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7226 lt_cv_ld_force_load=yes
7227 else
7228 cat conftest.err >&5
7230 rm -f conftest.err libconftest.a conftest conftest.c
7231 rm -rf conftest.dSYM
7234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7235 $as_echo "$lt_cv_ld_force_load" >&6; }
7236 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
7237 # build without first building modern cctools / linker.
7238 case $host_cpu-$host_os in
7239 *-rhapsody* | *-darwin1.[012])
7240 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7241 *-darwin1.*)
7242 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7243 *-darwin*)
7244 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
7245 # deployment target is forced to an earlier version.
7246 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
7247 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*)
7249 10.[012][,.]*)
7250 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7254 esac
7256 esac
7257 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7258 _lt_dar_single_mod='$single_module'
7260 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7261 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7262 else
7263 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7265 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7266 _lt_dsymutil='~$DSYMUTIL $lib || :'
7267 else
7268 _lt_dsymutil=
7271 esac
7273 for ac_header in dlfcn.h
7274 do :
7275 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7277 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7278 cat >>confdefs.h <<_ACEOF
7279 #define HAVE_DLFCN_H 1
7280 _ACEOF
7284 done
7290 # Set options
7294 enable_dlopen=no
7297 enable_win32_dll=no
7300 # Check whether --enable-shared was given.
7301 if test "${enable_shared+set}" = set; then :
7302 enableval=$enable_shared; p=${PACKAGE-default}
7303 case $enableval in
7304 yes) enable_shared=yes ;;
7305 no) enable_shared=no ;;
7307 enable_shared=no
7308 # Look at the argument we got. We use all the common list separators.
7309 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7310 for pkg in $enableval; do
7311 IFS="$lt_save_ifs"
7312 if test "X$pkg" = "X$p"; then
7313 enable_shared=yes
7315 done
7316 IFS="$lt_save_ifs"
7318 esac
7319 else
7320 enable_shared=yes
7331 # Check whether --enable-static was given.
7332 if test "${enable_static+set}" = set; then :
7333 enableval=$enable_static; p=${PACKAGE-default}
7334 case $enableval in
7335 yes) enable_static=yes ;;
7336 no) enable_static=no ;;
7338 enable_static=no
7339 # Look at the argument we got. We use all the common list separators.
7340 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7341 for pkg in $enableval; do
7342 IFS="$lt_save_ifs"
7343 if test "X$pkg" = "X$p"; then
7344 enable_static=yes
7346 done
7347 IFS="$lt_save_ifs"
7349 esac
7350 else
7351 enable_static=yes
7363 # Check whether --with-pic was given.
7364 if test "${with_pic+set}" = set; then :
7365 withval=$with_pic; pic_mode="$withval"
7366 else
7367 pic_mode=default
7371 test -z "$pic_mode" && pic_mode=default
7379 # Check whether --enable-fast-install was given.
7380 if test "${enable_fast_install+set}" = set; then :
7381 enableval=$enable_fast_install; p=${PACKAGE-default}
7382 case $enableval in
7383 yes) enable_fast_install=yes ;;
7384 no) enable_fast_install=no ;;
7386 enable_fast_install=no
7387 # Look at the argument we got. We use all the common list separators.
7388 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7389 for pkg in $enableval; do
7390 IFS="$lt_save_ifs"
7391 if test "X$pkg" = "X$p"; then
7392 enable_fast_install=yes
7394 done
7395 IFS="$lt_save_ifs"
7397 esac
7398 else
7399 enable_fast_install=yes
7412 # This can be used to rebuild libtool when needed
7413 LIBTOOL_DEPS="$ltmain"
7415 # Always use our own libtool.
7416 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7443 test -z "$LN_S" && LN_S="ln -s"
7458 if test -n "${ZSH_VERSION+set}" ; then
7459 setopt NO_GLOB_SUBST
7462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7463 $as_echo_n "checking for objdir... " >&6; }
7464 if ${lt_cv_objdir+:} false; then :
7465 $as_echo_n "(cached) " >&6
7466 else
7467 rm -f .libs 2>/dev/null
7468 mkdir .libs 2>/dev/null
7469 if test -d .libs; then
7470 lt_cv_objdir=.libs
7471 else
7472 # MS-DOS does not allow filenames that begin with a dot.
7473 lt_cv_objdir=_libs
7475 rmdir .libs 2>/dev/null
7477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7478 $as_echo "$lt_cv_objdir" >&6; }
7479 objdir=$lt_cv_objdir
7485 cat >>confdefs.h <<_ACEOF
7486 #define LT_OBJDIR "$lt_cv_objdir/"
7487 _ACEOF
7492 case $host_os in
7493 aix3*)
7494 # AIX sometimes has problems with the GCC collect2 program. For some
7495 # reason, if we set the COLLECT_NAMES environment variable, the problems
7496 # vanish in a puff of smoke.
7497 if test "X${COLLECT_NAMES+set}" != Xset; then
7498 COLLECT_NAMES=
7499 export COLLECT_NAMES
7502 esac
7504 # Global variables:
7505 ofile=libtool
7506 can_build_shared=yes
7508 # All known linkers require a `.a' archive for static linking (except MSVC,
7509 # which needs '.lib').
7510 libext=a
7512 with_gnu_ld="$lt_cv_prog_gnu_ld"
7514 old_CC="$CC"
7515 old_CFLAGS="$CFLAGS"
7517 # Set sane defaults for various variables
7518 test -z "$CC" && CC=cc
7519 test -z "$LTCC" && LTCC=$CC
7520 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7521 test -z "$LD" && LD=ld
7522 test -z "$ac_objext" && ac_objext=o
7524 for cc_temp in $compiler""; do
7525 case $cc_temp in
7526 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7527 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7528 \-*) ;;
7529 *) break;;
7530 esac
7531 done
7532 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7535 # Only perform the check for file, if the check method requires it
7536 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7537 case $deplibs_check_method in
7538 file_magic*)
7539 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7541 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7542 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7543 $as_echo_n "(cached) " >&6
7544 else
7545 case $MAGIC_CMD in
7546 [\\/*] | ?:[\\/]*)
7547 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7550 lt_save_MAGIC_CMD="$MAGIC_CMD"
7551 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7552 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7553 for ac_dir in $ac_dummy; do
7554 IFS="$lt_save_ifs"
7555 test -z "$ac_dir" && ac_dir=.
7556 if test -f $ac_dir/${ac_tool_prefix}file; then
7557 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7558 if test -n "$file_magic_test_file"; then
7559 case $deplibs_check_method in
7560 "file_magic "*)
7561 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7562 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7563 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7564 $EGREP "$file_magic_regex" > /dev/null; then
7566 else
7567 cat <<_LT_EOF 1>&2
7569 *** Warning: the command libtool uses to detect shared libraries,
7570 *** $file_magic_cmd, produces output that libtool cannot recognize.
7571 *** The result is that libtool may fail to recognize shared libraries
7572 *** as such. This will affect the creation of libtool libraries that
7573 *** depend on shared libraries, but programs linked with such libtool
7574 *** libraries will work regardless of this problem. Nevertheless, you
7575 *** may want to report the problem to your system manager and/or to
7576 *** bug-libtool@gnu.org
7578 _LT_EOF
7579 fi ;;
7580 esac
7582 break
7584 done
7585 IFS="$lt_save_ifs"
7586 MAGIC_CMD="$lt_save_MAGIC_CMD"
7588 esac
7591 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7592 if test -n "$MAGIC_CMD"; then
7593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7594 $as_echo "$MAGIC_CMD" >&6; }
7595 else
7596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7597 $as_echo "no" >&6; }
7604 if test -z "$lt_cv_path_MAGIC_CMD"; then
7605 if test -n "$ac_tool_prefix"; then
7606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7607 $as_echo_n "checking for file... " >&6; }
7608 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7609 $as_echo_n "(cached) " >&6
7610 else
7611 case $MAGIC_CMD in
7612 [\\/*] | ?:[\\/]*)
7613 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7616 lt_save_MAGIC_CMD="$MAGIC_CMD"
7617 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7618 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7619 for ac_dir in $ac_dummy; do
7620 IFS="$lt_save_ifs"
7621 test -z "$ac_dir" && ac_dir=.
7622 if test -f $ac_dir/file; then
7623 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7624 if test -n "$file_magic_test_file"; then
7625 case $deplibs_check_method in
7626 "file_magic "*)
7627 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7628 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7629 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7630 $EGREP "$file_magic_regex" > /dev/null; then
7632 else
7633 cat <<_LT_EOF 1>&2
7635 *** Warning: the command libtool uses to detect shared libraries,
7636 *** $file_magic_cmd, produces output that libtool cannot recognize.
7637 *** The result is that libtool may fail to recognize shared libraries
7638 *** as such. This will affect the creation of libtool libraries that
7639 *** depend on shared libraries, but programs linked with such libtool
7640 *** libraries will work regardless of this problem. Nevertheless, you
7641 *** may want to report the problem to your system manager and/or to
7642 *** bug-libtool@gnu.org
7644 _LT_EOF
7645 fi ;;
7646 esac
7648 break
7650 done
7651 IFS="$lt_save_ifs"
7652 MAGIC_CMD="$lt_save_MAGIC_CMD"
7654 esac
7657 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7658 if test -n "$MAGIC_CMD"; then
7659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7660 $as_echo "$MAGIC_CMD" >&6; }
7661 else
7662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7663 $as_echo "no" >&6; }
7667 else
7668 MAGIC_CMD=:
7674 esac
7676 # Use C for the default configuration in the libtool script
7678 lt_save_CC="$CC"
7679 ac_ext=c
7680 ac_cpp='$CPP $CPPFLAGS'
7681 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7682 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7683 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7686 # Source file extension for C test sources.
7687 ac_ext=c
7689 # Object file extension for compiled C test sources.
7690 objext=o
7691 objext=$objext
7693 # Code to be used in simple compile tests
7694 lt_simple_compile_test_code="int some_variable = 0;"
7696 # Code to be used in simple link tests
7697 lt_simple_link_test_code='int main(){return(0);}'
7705 # If no C compiler was specified, use CC.
7706 LTCC=${LTCC-"$CC"}
7708 # If no C compiler flags were specified, use CFLAGS.
7709 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7711 # Allow CC to be a program name with arguments.
7712 compiler=$CC
7714 # Save the default compiler, since it gets overwritten when the other
7715 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7716 compiler_DEFAULT=$CC
7718 # save warnings/boilerplate of simple test code
7719 ac_outfile=conftest.$ac_objext
7720 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7721 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7722 _lt_compiler_boilerplate=`cat conftest.err`
7723 $RM conftest*
7725 ac_outfile=conftest.$ac_objext
7726 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7727 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7728 _lt_linker_boilerplate=`cat conftest.err`
7729 $RM -r conftest*
7732 ## CAVEAT EMPTOR:
7733 ## There is no encapsulation within the following macros, do not change
7734 ## the running order or otherwise move them around unless you know exactly
7735 ## what you are doing...
7736 if test -n "$compiler"; then
7738 lt_prog_compiler_no_builtin_flag=
7740 if test "$GCC" = yes; then
7741 case $cc_basename in
7742 nvcc*)
7743 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7745 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7746 esac
7748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7749 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7750 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7751 $as_echo_n "(cached) " >&6
7752 else
7753 lt_cv_prog_compiler_rtti_exceptions=no
7754 ac_outfile=conftest.$ac_objext
7755 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7756 lt_compiler_flag="-fno-rtti -fno-exceptions"
7757 # Insert the option either (1) after the last *FLAGS variable, or
7758 # (2) before a word containing "conftest.", or (3) at the end.
7759 # Note that $ac_compile itself does not contain backslashes and begins
7760 # with a dollar sign (not a hyphen), so the echo should work correctly.
7761 # The option is referenced via a variable to avoid confusing sed.
7762 lt_compile=`echo "$ac_compile" | $SED \
7763 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7764 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7765 -e 's:$: $lt_compiler_flag:'`
7766 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7767 (eval "$lt_compile" 2>conftest.err)
7768 ac_status=$?
7769 cat conftest.err >&5
7770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7771 if (exit $ac_status) && test -s "$ac_outfile"; then
7772 # The compiler can only warn and ignore the option if not recognized
7773 # So say no if there are warnings other than the usual output.
7774 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7775 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7776 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7777 lt_cv_prog_compiler_rtti_exceptions=yes
7780 $RM conftest*
7783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7784 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7786 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7787 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7788 else
7799 lt_prog_compiler_wl=
7800 lt_prog_compiler_pic=
7801 lt_prog_compiler_static=
7803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7804 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7806 if test "$GCC" = yes; then
7807 lt_prog_compiler_wl='-Wl,'
7808 lt_prog_compiler_static='-static'
7810 case $host_os in
7811 aix*)
7812 # All AIX code is PIC.
7813 if test "$host_cpu" = ia64; then
7814 # AIX 5 now supports IA64 processor
7815 lt_prog_compiler_static='-Bstatic'
7817 lt_prog_compiler_pic='-fPIC'
7820 amigaos*)
7821 case $host_cpu in
7822 powerpc)
7823 # see comment about AmigaOS4 .so support
7824 lt_prog_compiler_pic='-fPIC'
7826 m68k)
7827 # FIXME: we need at least 68020 code to build shared libraries, but
7828 # adding the `-m68020' flag to GCC prevents building anything better,
7829 # like `-m68040'.
7830 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7832 esac
7835 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7836 # PIC is the default for these OSes.
7839 mingw* | cygwin* | pw32* | os2* | cegcc*)
7840 # This hack is so that the source file can tell whether it is being
7841 # built for inclusion in a dll (and should export symbols for example).
7842 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7843 # (--disable-auto-import) libraries
7844 lt_prog_compiler_pic='-DDLL_EXPORT'
7847 darwin* | rhapsody*)
7848 # PIC is the default on this platform
7849 # Common symbols not allowed in MH_DYLIB files
7850 lt_prog_compiler_pic='-fno-common'
7853 haiku*)
7854 # PIC is the default for Haiku.
7855 # The "-static" flag exists, but is broken.
7856 lt_prog_compiler_static=
7859 hpux*)
7860 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7861 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7862 # sets the default TLS model and affects inlining.
7863 case $host_cpu in
7864 hppa*64*)
7865 # +Z the default
7868 lt_prog_compiler_pic='-fPIC'
7870 esac
7873 interix[3-9]*)
7874 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7875 # Instead, we relocate shared libraries at runtime.
7878 msdosdjgpp*)
7879 # Just because we use GCC doesn't mean we suddenly get shared libraries
7880 # on systems that don't support them.
7881 lt_prog_compiler_can_build_shared=no
7882 enable_shared=no
7885 *nto* | *qnx*)
7886 # QNX uses GNU C++, but need to define -shared option too, otherwise
7887 # it will coredump.
7888 lt_prog_compiler_pic='-fPIC -shared'
7891 sysv4*MP*)
7892 if test -d /usr/nec; then
7893 lt_prog_compiler_pic=-Kconform_pic
7898 lt_prog_compiler_pic='-fPIC'
7900 esac
7902 case $cc_basename in
7903 nvcc*) # Cuda Compiler Driver 2.2
7904 lt_prog_compiler_wl='-Xlinker '
7905 lt_prog_compiler_pic='-Xcompiler -fPIC'
7907 esac
7908 else
7909 # PORTME Check for flag to pass linker flags through the system compiler.
7910 case $host_os in
7911 aix*)
7912 lt_prog_compiler_wl='-Wl,'
7913 if test "$host_cpu" = ia64; then
7914 # AIX 5 now supports IA64 processor
7915 lt_prog_compiler_static='-Bstatic'
7916 else
7917 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7921 mingw* | cygwin* | pw32* | os2* | cegcc*)
7922 # This hack is so that the source file can tell whether it is being
7923 # built for inclusion in a dll (and should export symbols for example).
7924 lt_prog_compiler_pic='-DDLL_EXPORT'
7927 hpux9* | hpux10* | hpux11*)
7928 lt_prog_compiler_wl='-Wl,'
7929 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7930 # not for PA HP-UX.
7931 case $host_cpu in
7932 hppa*64*|ia64*)
7933 # +Z the default
7936 lt_prog_compiler_pic='+Z'
7938 esac
7939 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7940 lt_prog_compiler_static='${wl}-a ${wl}archive'
7943 irix5* | irix6* | nonstopux*)
7944 lt_prog_compiler_wl='-Wl,'
7945 # PIC (with -KPIC) is the default.
7946 lt_prog_compiler_static='-non_shared'
7949 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7950 case $cc_basename in
7951 # old Intel for x86_64 which still supported -KPIC.
7952 ecc*)
7953 lt_prog_compiler_wl='-Wl,'
7954 lt_prog_compiler_pic='-KPIC'
7955 lt_prog_compiler_static='-static'
7957 # icc used to be incompatible with GCC.
7958 # ICC 10 doesn't accept -KPIC any more.
7959 icc* | ifort*)
7960 lt_prog_compiler_wl='-Wl,'
7961 lt_prog_compiler_pic='-fPIC'
7962 lt_prog_compiler_static='-static'
7964 # Lahey Fortran 8.1.
7965 lf95*)
7966 lt_prog_compiler_wl='-Wl,'
7967 lt_prog_compiler_pic='--shared'
7968 lt_prog_compiler_static='--static'
7970 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7971 # Portland Group compilers (*not* the Pentium gcc compiler,
7972 # which looks to be a dead project)
7973 lt_prog_compiler_wl='-Wl,'
7974 lt_prog_compiler_pic='-fpic'
7975 lt_prog_compiler_static='-Bstatic'
7977 ccc*)
7978 lt_prog_compiler_wl='-Wl,'
7979 # All Alpha code is PIC.
7980 lt_prog_compiler_static='-non_shared'
7982 xl* | bgxl* | bgf* | mpixl*)
7983 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
7984 lt_prog_compiler_wl='-Wl,'
7985 lt_prog_compiler_pic='-qpic'
7986 lt_prog_compiler_static='-qstaticlink'
7989 case `$CC -V 2>&1 | sed 5q` in
7990 *Sun\ F* | *Sun*Fortran*)
7991 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7992 lt_prog_compiler_pic='-KPIC'
7993 lt_prog_compiler_static='-Bstatic'
7994 lt_prog_compiler_wl=''
7996 *Sun\ C*)
7997 # Sun C 5.9
7998 lt_prog_compiler_pic='-KPIC'
7999 lt_prog_compiler_static='-Bstatic'
8000 lt_prog_compiler_wl='-Wl,'
8002 esac
8004 esac
8007 newsos6)
8008 lt_prog_compiler_pic='-KPIC'
8009 lt_prog_compiler_static='-Bstatic'
8012 *nto* | *qnx*)
8013 # QNX uses GNU C++, but need to define -shared option too, otherwise
8014 # it will coredump.
8015 lt_prog_compiler_pic='-fPIC -shared'
8018 osf3* | osf4* | osf5*)
8019 lt_prog_compiler_wl='-Wl,'
8020 # All OSF/1 code is PIC.
8021 lt_prog_compiler_static='-non_shared'
8024 rdos*)
8025 lt_prog_compiler_static='-non_shared'
8028 solaris*)
8029 lt_prog_compiler_pic='-KPIC'
8030 lt_prog_compiler_static='-Bstatic'
8031 case $cc_basename in
8032 f77* | f90* | f95*)
8033 lt_prog_compiler_wl='-Qoption ld ';;
8035 lt_prog_compiler_wl='-Wl,';;
8036 esac
8039 sunos4*)
8040 lt_prog_compiler_wl='-Qoption ld '
8041 lt_prog_compiler_pic='-PIC'
8042 lt_prog_compiler_static='-Bstatic'
8045 sysv4 | sysv4.2uw2* | sysv4.3*)
8046 lt_prog_compiler_wl='-Wl,'
8047 lt_prog_compiler_pic='-KPIC'
8048 lt_prog_compiler_static='-Bstatic'
8051 sysv4*MP*)
8052 if test -d /usr/nec ;then
8053 lt_prog_compiler_pic='-Kconform_pic'
8054 lt_prog_compiler_static='-Bstatic'
8058 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8059 lt_prog_compiler_wl='-Wl,'
8060 lt_prog_compiler_pic='-KPIC'
8061 lt_prog_compiler_static='-Bstatic'
8064 unicos*)
8065 lt_prog_compiler_wl='-Wl,'
8066 lt_prog_compiler_can_build_shared=no
8069 uts4*)
8070 lt_prog_compiler_pic='-pic'
8071 lt_prog_compiler_static='-Bstatic'
8075 lt_prog_compiler_can_build_shared=no
8077 esac
8080 case $host_os in
8081 # For platforms which do not support PIC, -DPIC is meaningless:
8082 *djgpp*)
8083 lt_prog_compiler_pic=
8086 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8088 esac
8089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8090 $as_echo "$lt_prog_compiler_pic" >&6; }
8098 # Check to make sure the PIC flag actually works.
8100 if test -n "$lt_prog_compiler_pic"; then
8101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8102 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8103 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8104 $as_echo_n "(cached) " >&6
8105 else
8106 lt_cv_prog_compiler_pic_works=no
8107 ac_outfile=conftest.$ac_objext
8108 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8109 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8110 # Insert the option either (1) after the last *FLAGS variable, or
8111 # (2) before a word containing "conftest.", or (3) at the end.
8112 # Note that $ac_compile itself does not contain backslashes and begins
8113 # with a dollar sign (not a hyphen), so the echo should work correctly.
8114 # The option is referenced via a variable to avoid confusing sed.
8115 lt_compile=`echo "$ac_compile" | $SED \
8116 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8117 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8118 -e 's:$: $lt_compiler_flag:'`
8119 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8120 (eval "$lt_compile" 2>conftest.err)
8121 ac_status=$?
8122 cat conftest.err >&5
8123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8124 if (exit $ac_status) && test -s "$ac_outfile"; then
8125 # The compiler can only warn and ignore the option if not recognized
8126 # So say no if there are warnings other than the usual output.
8127 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8128 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8129 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8130 lt_cv_prog_compiler_pic_works=yes
8133 $RM conftest*
8136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8137 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8139 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8140 case $lt_prog_compiler_pic in
8141 "" | " "*) ;;
8142 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8143 esac
8144 else
8145 lt_prog_compiler_pic=
8146 lt_prog_compiler_can_build_shared=no
8157 # Check to make sure the static flag actually works.
8159 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8161 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8162 if ${lt_cv_prog_compiler_static_works+:} false; then :
8163 $as_echo_n "(cached) " >&6
8164 else
8165 lt_cv_prog_compiler_static_works=no
8166 save_LDFLAGS="$LDFLAGS"
8167 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8168 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8169 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8170 # The linker can only warn and ignore the option if not recognized
8171 # So say no if there are warnings
8172 if test -s conftest.err; then
8173 # Append any errors to the config.log.
8174 cat conftest.err 1>&5
8175 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8176 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8177 if diff conftest.exp conftest.er2 >/dev/null; then
8178 lt_cv_prog_compiler_static_works=yes
8180 else
8181 lt_cv_prog_compiler_static_works=yes
8184 $RM -r conftest*
8185 LDFLAGS="$save_LDFLAGS"
8188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8189 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8191 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8193 else
8194 lt_prog_compiler_static=
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
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
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*
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; }
8258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8259 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8260 if ${lt_cv_prog_compiler_c_o+:} false; then :
8261 $as_echo_n "(cached) " >&6
8262 else
8263 lt_cv_prog_compiler_c_o=no
8264 $RM -r conftest 2>/dev/null
8265 mkdir conftest
8266 cd conftest
8267 mkdir out
8268 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8270 lt_compiler_flag="-o out/conftest2.$ac_objext"
8271 # Insert the option either (1) after the last *FLAGS variable, or
8272 # (2) before a word containing "conftest.", or (3) at the end.
8273 # Note that $ac_compile itself does not contain backslashes and begins
8274 # with a dollar sign (not a hyphen), so the echo should work correctly.
8275 lt_compile=`echo "$ac_compile" | $SED \
8276 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8277 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8278 -e 's:$: $lt_compiler_flag:'`
8279 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8280 (eval "$lt_compile" 2>out/conftest.err)
8281 ac_status=$?
8282 cat out/conftest.err >&5
8283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8284 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8285 then
8286 # The compiler can only warn and ignore the option if not recognized
8287 # So say no if there are warnings
8288 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8289 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8290 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8291 lt_cv_prog_compiler_c_o=yes
8294 chmod u+w . 2>&5
8295 $RM conftest*
8296 # SGI C++ compiler will create directory out/ii_files/ for
8297 # template instantiation
8298 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8299 $RM out/* && rmdir out
8300 cd ..
8301 $RM -r conftest
8302 $RM conftest*
8305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8306 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8311 hard_links="nottested"
8312 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8313 # do not overwrite the value of need_locks provided by the user
8314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8315 $as_echo_n "checking if we can lock with hard links... " >&6; }
8316 hard_links=yes
8317 $RM conftest*
8318 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8319 touch conftest.a
8320 ln conftest.a conftest.b 2>&5 || hard_links=no
8321 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8323 $as_echo "$hard_links" >&6; }
8324 if test "$hard_links" = no; then
8325 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8326 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8327 need_locks=warn
8329 else
8330 need_locks=no
8338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8339 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8341 runpath_var=
8342 allow_undefined_flag=
8343 always_export_symbols=no
8344 archive_cmds=
8345 archive_expsym_cmds=
8346 compiler_needs_object=no
8347 enable_shared_with_static_runtimes=no
8348 export_dynamic_flag_spec=
8349 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8350 hardcode_automatic=no
8351 hardcode_direct=no
8352 hardcode_direct_absolute=no
8353 hardcode_libdir_flag_spec=
8354 hardcode_libdir_flag_spec_ld=
8355 hardcode_libdir_separator=
8356 hardcode_minus_L=no
8357 hardcode_shlibpath_var=unsupported
8358 inherit_rpath=no
8359 link_all_deplibs=unknown
8360 module_cmds=
8361 module_expsym_cmds=
8362 old_archive_from_new_cmds=
8363 old_archive_from_expsyms_cmds=
8364 thread_safe_flag_spec=
8365 whole_archive_flag_spec=
8366 # include_expsyms should be a list of space-separated symbols to be *always*
8367 # included in the symbol list
8368 include_expsyms=
8369 # exclude_expsyms can be an extended regexp of symbols to exclude
8370 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8371 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8372 # as well as any symbol that contains `d'.
8373 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8374 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8375 # platforms (ab)use it in PIC code, but their linkers get confused if
8376 # the symbol is explicitly referenced. Since portable code cannot
8377 # rely on this symbol name, it's probably fine to never include it in
8378 # preloaded symbol tables.
8379 # Exclude shared library initialization/finalization symbols.
8380 extract_expsyms_cmds=
8382 case $host_os in
8383 cygwin* | mingw* | pw32* | cegcc*)
8384 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8385 # When not using gcc, we currently assume that we are using
8386 # Microsoft Visual C++.
8387 if test "$GCC" != yes; then
8388 with_gnu_ld=no
8391 interix*)
8392 # we just hope/assume this is gcc and not c89 (= MSVC++)
8393 with_gnu_ld=yes
8395 openbsd*)
8396 with_gnu_ld=no
8398 esac
8400 ld_shlibs=yes
8402 # On some targets, GNU ld is compatible enough with the native linker
8403 # that we're better off using the native interface for both.
8404 lt_use_gnu_ld_interface=no
8405 if test "$with_gnu_ld" = yes; then
8406 case $host_os in
8407 aix*)
8408 # The AIX port of GNU ld has always aspired to compatibility
8409 # with the native linker. However, as the warning in the GNU ld
8410 # block says, versions before 2.19.5* couldn't really create working
8411 # shared libraries, regardless of the interface used.
8412 case `$LD -v 2>&1` in
8413 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8414 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8415 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8417 lt_use_gnu_ld_interface=yes
8419 esac
8422 lt_use_gnu_ld_interface=yes
8424 esac
8427 if test "$lt_use_gnu_ld_interface" = yes; then
8428 # If archive_cmds runs LD, not CC, wlarc should be empty
8429 wlarc='${wl}'
8431 # Set some defaults for GNU ld with shared library support. These
8432 # are reset later if shared libraries are not supported. Putting them
8433 # here allows them to be overridden if necessary.
8434 runpath_var=LD_RUN_PATH
8435 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8436 export_dynamic_flag_spec='${wl}--export-dynamic'
8437 # ancient GNU ld didn't support --whole-archive et. al.
8438 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8439 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8440 else
8441 whole_archive_flag_spec=
8443 supports_anon_versioning=no
8444 case `$LD -v 2>&1` in
8445 *GNU\ gold*) supports_anon_versioning=yes ;;
8446 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8447 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8448 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8449 *\ 2.11.*) ;; # other 2.11 versions
8450 *) supports_anon_versioning=yes ;;
8451 esac
8453 # See if GNU ld supports shared libraries.
8454 case $host_os in
8455 aix[3-9]*)
8456 # On AIX/PPC, the GNU linker is very broken
8457 if test "$host_cpu" != ia64; then
8458 ld_shlibs=no
8459 cat <<_LT_EOF 1>&2
8461 *** Warning: the GNU linker, at least up to release 2.19, is reported
8462 *** to be unable to reliably create shared libraries on AIX.
8463 *** Therefore, libtool is disabling shared libraries support. If you
8464 *** really care for shared libraries, you may want to install binutils
8465 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8466 *** You will then need to restart the configuration process.
8468 _LT_EOF
8472 amigaos*)
8473 case $host_cpu in
8474 powerpc)
8475 # see comment about AmigaOS4 .so support
8476 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8477 archive_expsym_cmds=''
8479 m68k)
8480 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)'
8481 hardcode_libdir_flag_spec='-L$libdir'
8482 hardcode_minus_L=yes
8484 esac
8487 beos*)
8488 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8489 allow_undefined_flag=unsupported
8490 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8491 # support --undefined. This deserves some investigation. FIXME
8492 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8493 else
8494 ld_shlibs=no
8498 cygwin* | mingw* | pw32* | cegcc*)
8499 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8500 # as there is no search path for DLLs.
8501 hardcode_libdir_flag_spec='-L$libdir'
8502 export_dynamic_flag_spec='${wl}--export-all-symbols'
8503 allow_undefined_flag=unsupported
8504 always_export_symbols=no
8505 enable_shared_with_static_runtimes=yes
8506 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8508 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8509 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8510 # If the export-symbols file already is a .def file (1st line
8511 # is EXPORTS), use it as is; otherwise, prepend...
8512 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8513 cp $export_symbols $output_objdir/$soname.def;
8514 else
8515 echo EXPORTS > $output_objdir/$soname.def;
8516 cat $export_symbols >> $output_objdir/$soname.def;
8518 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8519 else
8520 ld_shlibs=no
8524 haiku*)
8525 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8526 link_all_deplibs=yes
8529 interix[3-9]*)
8530 hardcode_direct=no
8531 hardcode_shlibpath_var=no
8532 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8533 export_dynamic_flag_spec='${wl}-E'
8534 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8535 # Instead, shared libraries are loaded at an image base (0x10000000 by
8536 # default) and relocated if they conflict, which is a slow very memory
8537 # consuming and fragmenting process. To avoid this, we pick a random,
8538 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8539 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8540 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8541 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'
8544 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
8545 tmp_diet=no
8546 if test "$host_os" = linux-dietlibc; then
8547 case $cc_basename in
8548 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8549 esac
8551 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8552 && test "$tmp_diet" = no
8553 then
8554 tmp_addflag=' $pic_flag'
8555 tmp_sharedflag='-shared'
8556 case $cc_basename,$host_cpu in
8557 pgcc*) # Portland Group C compiler
8558 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'
8559 tmp_addflag=' $pic_flag'
8561 pgf77* | pgf90* | pgf95* | pgfortran*)
8562 # Portland Group f77 and f90 compilers
8563 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'
8564 tmp_addflag=' $pic_flag -Mnomain' ;;
8565 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8566 tmp_addflag=' -i_dynamic' ;;
8567 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8568 tmp_addflag=' -i_dynamic -nofor_main' ;;
8569 ifc* | ifort*) # Intel Fortran compiler
8570 tmp_addflag=' -nofor_main' ;;
8571 lf95*) # Lahey Fortran 8.1
8572 whole_archive_flag_spec=
8573 tmp_sharedflag='--shared' ;;
8574 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8575 tmp_sharedflag='-qmkshrobj'
8576 tmp_addflag= ;;
8577 nvcc*) # Cuda Compiler Driver 2.2
8578 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'
8579 compiler_needs_object=yes
8581 esac
8582 case `$CC -V 2>&1 | sed 5q` in
8583 *Sun\ C*) # Sun C 5.9
8584 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'
8585 compiler_needs_object=yes
8586 tmp_sharedflag='-G' ;;
8587 *Sun\ F*) # Sun Fortran 8.3
8588 tmp_sharedflag='-G' ;;
8589 esac
8590 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8592 if test "x$supports_anon_versioning" = xyes; then
8593 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8594 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8595 echo "local: *; };" >> $output_objdir/$libname.ver~
8596 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8599 case $cc_basename in
8600 xlf* | bgf* | bgxlf* | mpixlf*)
8601 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8602 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8603 hardcode_libdir_flag_spec=
8604 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8605 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8606 if test "x$supports_anon_versioning" = xyes; then
8607 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8608 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8609 echo "local: *; };" >> $output_objdir/$libname.ver~
8610 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8613 esac
8614 else
8615 ld_shlibs=no
8619 netbsd*)
8620 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8621 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8622 wlarc=
8623 else
8624 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8625 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8629 solaris*)
8630 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8631 ld_shlibs=no
8632 cat <<_LT_EOF 1>&2
8634 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8635 *** create shared libraries on Solaris systems. Therefore, libtool
8636 *** is disabling shared libraries support. We urge you to upgrade GNU
8637 *** binutils to release 2.9.1 or newer. Another option is to modify
8638 *** your PATH or compiler configuration so that the native linker is
8639 *** used, and then restart.
8641 _LT_EOF
8642 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8643 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8644 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8645 else
8646 ld_shlibs=no
8650 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8651 case `$LD -v 2>&1` in
8652 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8653 ld_shlibs=no
8654 cat <<_LT_EOF 1>&2
8656 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8657 *** reliably create shared libraries on SCO systems. Therefore, libtool
8658 *** is disabling shared libraries support. We urge you to upgrade GNU
8659 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8660 *** your PATH or compiler configuration so that the native linker is
8661 *** used, and then restart.
8663 _LT_EOF
8666 # For security reasons, it is highly recommended that you always
8667 # use absolute paths for naming shared libraries, and exclude the
8668 # DT_RUNPATH tag from executables and libraries. But doing so
8669 # requires that you compile everything twice, which is a pain.
8670 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8671 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8672 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8673 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8674 else
8675 ld_shlibs=no
8678 esac
8681 sunos4*)
8682 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8683 wlarc=
8684 hardcode_direct=yes
8685 hardcode_shlibpath_var=no
8689 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8690 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8691 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8692 else
8693 ld_shlibs=no
8696 esac
8698 if test "$ld_shlibs" = no; then
8699 runpath_var=
8700 hardcode_libdir_flag_spec=
8701 export_dynamic_flag_spec=
8702 whole_archive_flag_spec=
8704 else
8705 # PORTME fill in a description of your system's linker (not GNU ld)
8706 case $host_os in
8707 aix3*)
8708 allow_undefined_flag=unsupported
8709 always_export_symbols=yes
8710 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'
8711 # Note: this linker hardcodes the directories in LIBPATH if there
8712 # are no directories specified by -L.
8713 hardcode_minus_L=yes
8714 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8715 # Neither direct hardcoding nor static linking is supported with a
8716 # broken collect2.
8717 hardcode_direct=unsupported
8721 aix[4-9]*)
8722 if test "$host_cpu" = ia64; then
8723 # On IA64, the linker does run time linking by default, so we don't
8724 # have to do anything special.
8725 aix_use_runtimelinking=no
8726 exp_sym_flag='-Bexport'
8727 no_entry_flag=""
8728 else
8729 # If we're using GNU nm, then we don't want the "-C" option.
8730 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8731 # Also, AIX nm treats weak defined symbols like other global
8732 # defined symbols, whereas GNU nm marks them as "W".
8733 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8734 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'
8735 else
8736 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'
8738 aix_use_runtimelinking=no
8740 # Test if we are trying to use run time linking or normal
8741 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8742 # need to do runtime linking.
8743 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8744 for ld_flag in $LDFLAGS; do
8745 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8746 aix_use_runtimelinking=yes
8747 break
8749 done
8751 esac
8753 exp_sym_flag='-bexport'
8754 no_entry_flag='-bnoentry'
8757 # When large executables or shared objects are built, AIX ld can
8758 # have problems creating the table of contents. If linking a library
8759 # or program results in "error TOC overflow" add -mminimal-toc to
8760 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8761 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8763 archive_cmds=''
8764 hardcode_direct=yes
8765 hardcode_direct_absolute=yes
8766 hardcode_libdir_separator=':'
8767 link_all_deplibs=yes
8768 file_list_spec='${wl}-f,'
8770 if test "$GCC" = yes; then
8771 case $host_os in aix4.[012]|aix4.[012].*)
8772 # We only want to do this on AIX 4.2 and lower, the check
8773 # below for broken collect2 doesn't work under 4.3+
8774 collect2name=`${CC} -print-prog-name=collect2`
8775 if test -f "$collect2name" &&
8776 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8777 then
8778 # We have reworked collect2
8780 else
8781 # We have old collect2
8782 hardcode_direct=unsupported
8783 # It fails to find uninstalled libraries when the uninstalled
8784 # path is not listed in the libpath. Setting hardcode_minus_L
8785 # to unsupported forces relinking
8786 hardcode_minus_L=yes
8787 hardcode_libdir_flag_spec='-L$libdir'
8788 hardcode_libdir_separator=
8791 esac
8792 shared_flag='-shared'
8793 if test "$aix_use_runtimelinking" = yes; then
8794 shared_flag="$shared_flag "'${wl}-G'
8796 else
8797 # not using gcc
8798 if test "$host_cpu" = ia64; then
8799 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8800 # chokes on -Wl,-G. The following line is correct:
8801 shared_flag='-G'
8802 else
8803 if test "$aix_use_runtimelinking" = yes; then
8804 shared_flag='${wl}-G'
8805 else
8806 shared_flag='${wl}-bM:SRE'
8811 export_dynamic_flag_spec='${wl}-bexpall'
8812 # It seems that -bexpall does not export symbols beginning with
8813 # underscore (_), so it is better to generate a list of symbols to export.
8814 always_export_symbols=yes
8815 if test "$aix_use_runtimelinking" = yes; then
8816 # Warning - without using the other runtime loading flags (-brtl),
8817 # -berok will link without error, but may produce a broken library.
8818 allow_undefined_flag='-berok'
8819 # Determine the default libpath from the value encoded in an
8820 # empty executable.
8821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8822 /* end confdefs.h. */
8825 main ()
8829 return 0;
8831 _ACEOF
8832 if ac_fn_c_try_link "$LINENO"; then :
8834 lt_aix_libpath_sed='
8835 /Import File Strings/,/^$/ {
8836 /^0/ {
8837 s/^0 *\(.*\)$/\1/
8841 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8842 # Check for a 64-bit object if we didn't find anything.
8843 if test -z "$aix_libpath"; then
8844 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8847 rm -f core conftest.err conftest.$ac_objext \
8848 conftest$ac_exeext conftest.$ac_ext
8849 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8851 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8852 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"
8853 else
8854 if test "$host_cpu" = ia64; then
8855 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8856 allow_undefined_flag="-z nodefs"
8857 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"
8858 else
8859 # Determine the default libpath from the value encoded in an
8860 # empty executable.
8861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8862 /* end confdefs.h. */
8865 main ()
8869 return 0;
8871 _ACEOF
8872 if ac_fn_c_try_link "$LINENO"; then :
8874 lt_aix_libpath_sed='
8875 /Import File Strings/,/^$/ {
8876 /^0/ {
8877 s/^0 *\(.*\)$/\1/
8881 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8882 # Check for a 64-bit object if we didn't find anything.
8883 if test -z "$aix_libpath"; then
8884 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8887 rm -f core conftest.err conftest.$ac_objext \
8888 conftest$ac_exeext conftest.$ac_ext
8889 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8891 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8892 # Warning - without using the other run time loading flags,
8893 # -berok will link without error, but may produce a broken library.
8894 no_undefined_flag=' ${wl}-bernotok'
8895 allow_undefined_flag=' ${wl}-berok'
8896 if test "$with_gnu_ld" = yes; then
8897 # We only use this code for GNU lds that support --whole-archive.
8898 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8899 else
8900 # Exported symbols can be pulled into shared objects from archives
8901 whole_archive_flag_spec='$convenience'
8903 archive_cmds_need_lc=yes
8904 # This is similar to how AIX traditionally builds its shared libraries.
8905 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'
8910 amigaos*)
8911 case $host_cpu in
8912 powerpc)
8913 # see comment about AmigaOS4 .so support
8914 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8915 archive_expsym_cmds=''
8917 m68k)
8918 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)'
8919 hardcode_libdir_flag_spec='-L$libdir'
8920 hardcode_minus_L=yes
8922 esac
8925 bsdi[45]*)
8926 export_dynamic_flag_spec=-rdynamic
8929 cygwin* | mingw* | pw32* | cegcc*)
8930 # When not using gcc, we currently assume that we are using
8931 # Microsoft Visual C++.
8932 # hardcode_libdir_flag_spec is actually meaningless, as there is
8933 # no search path for DLLs.
8934 hardcode_libdir_flag_spec=' '
8935 allow_undefined_flag=unsupported
8936 # Tell ltmain to make .lib files, not .a files.
8937 libext=lib
8938 # Tell ltmain to make .dll files, not .so files.
8939 shrext_cmds=".dll"
8940 # FIXME: Setting linknames here is a bad hack.
8941 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8942 # The linker will automatically build a .lib file if we build a DLL.
8943 old_archive_from_new_cmds='true'
8944 # FIXME: Should let the user specify the lib program.
8945 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8946 fix_srcfile_path='`cygpath -w "$srcfile"`'
8947 enable_shared_with_static_runtimes=yes
8950 darwin* | rhapsody*)
8953 archive_cmds_need_lc=no
8954 hardcode_direct=no
8955 hardcode_automatic=yes
8956 hardcode_shlibpath_var=unsupported
8957 if test "$lt_cv_ld_force_load" = "yes"; then
8958 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\"`'
8959 else
8960 whole_archive_flag_spec=''
8962 link_all_deplibs=yes
8963 allow_undefined_flag="$_lt_dar_allow_undefined"
8964 case $cc_basename in
8965 ifort*) _lt_dar_can_shared=yes ;;
8966 *) _lt_dar_can_shared=$GCC ;;
8967 esac
8968 if test "$_lt_dar_can_shared" = "yes"; then
8969 output_verbose_link_cmd=func_echo_all
8970 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8971 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8972 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}"
8973 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}"
8975 else
8976 ld_shlibs=no
8981 dgux*)
8982 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8983 hardcode_libdir_flag_spec='-L$libdir'
8984 hardcode_shlibpath_var=no
8987 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8988 # support. Future versions do this automatically, but an explicit c++rt0.o
8989 # does not break anything, and helps significantly (at the cost of a little
8990 # extra space).
8991 freebsd2.2*)
8992 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8993 hardcode_libdir_flag_spec='-R$libdir'
8994 hardcode_direct=yes
8995 hardcode_shlibpath_var=no
8998 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8999 freebsd2.*)
9000 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9001 hardcode_direct=yes
9002 hardcode_minus_L=yes
9003 hardcode_shlibpath_var=no
9006 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9007 freebsd* | dragonfly*)
9008 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9009 hardcode_libdir_flag_spec='-R$libdir'
9010 hardcode_direct=yes
9011 hardcode_shlibpath_var=no
9014 hpux9*)
9015 if test "$GCC" = yes; then
9016 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'
9017 else
9018 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'
9020 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9021 hardcode_libdir_separator=:
9022 hardcode_direct=yes
9024 # hardcode_minus_L: Not really in the search PATH,
9025 # but as the default location of the library.
9026 hardcode_minus_L=yes
9027 export_dynamic_flag_spec='${wl}-E'
9030 hpux10*)
9031 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9032 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9033 else
9034 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9036 if test "$with_gnu_ld" = no; then
9037 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9038 hardcode_libdir_flag_spec_ld='+b $libdir'
9039 hardcode_libdir_separator=:
9040 hardcode_direct=yes
9041 hardcode_direct_absolute=yes
9042 export_dynamic_flag_spec='${wl}-E'
9043 # hardcode_minus_L: Not really in the search PATH,
9044 # but as the default location of the library.
9045 hardcode_minus_L=yes
9049 hpux11*)
9050 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9051 case $host_cpu in
9052 hppa*64*)
9053 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9055 ia64*)
9056 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9059 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9061 esac
9062 else
9063 case $host_cpu in
9064 hppa*64*)
9065 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9067 ia64*)
9068 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9072 # Older versions of the 11.00 compiler do not understand -b yet
9073 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9075 $as_echo_n "checking if $CC understands -b... " >&6; }
9076 if ${lt_cv_prog_compiler__b+:} false; then :
9077 $as_echo_n "(cached) " >&6
9078 else
9079 lt_cv_prog_compiler__b=no
9080 save_LDFLAGS="$LDFLAGS"
9081 LDFLAGS="$LDFLAGS -b"
9082 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9083 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9084 # The linker can only warn and ignore the option if not recognized
9085 # So say no if there are warnings
9086 if test -s conftest.err; then
9087 # Append any errors to the config.log.
9088 cat conftest.err 1>&5
9089 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9090 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9091 if diff conftest.exp conftest.er2 >/dev/null; then
9092 lt_cv_prog_compiler__b=yes
9094 else
9095 lt_cv_prog_compiler__b=yes
9098 $RM -r conftest*
9099 LDFLAGS="$save_LDFLAGS"
9102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9103 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9105 if test x"$lt_cv_prog_compiler__b" = xyes; then
9106 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9107 else
9108 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9112 esac
9114 if test "$with_gnu_ld" = no; then
9115 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9116 hardcode_libdir_separator=:
9118 case $host_cpu in
9119 hppa*64*|ia64*)
9120 hardcode_direct=no
9121 hardcode_shlibpath_var=no
9124 hardcode_direct=yes
9125 hardcode_direct_absolute=yes
9126 export_dynamic_flag_spec='${wl}-E'
9128 # hardcode_minus_L: Not really in the search PATH,
9129 # but as the default location of the library.
9130 hardcode_minus_L=yes
9132 esac
9136 irix5* | irix6* | nonstopux*)
9137 if test "$GCC" = yes; then
9138 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'
9139 # Try to use the -exported_symbol ld option, if it does not
9140 # work, assume that -exports_file does not work either and
9141 # implicitly export all symbols.
9142 save_LDFLAGS="$LDFLAGS"
9143 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9145 /* end confdefs.h. */
9146 int foo(void) {}
9147 _ACEOF
9148 if ac_fn_c_try_link "$LINENO"; then :
9149 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'
9152 rm -f core conftest.err conftest.$ac_objext \
9153 conftest$ac_exeext conftest.$ac_ext
9154 LDFLAGS="$save_LDFLAGS"
9155 else
9156 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'
9157 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'
9159 archive_cmds_need_lc='no'
9160 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9161 hardcode_libdir_separator=:
9162 inherit_rpath=yes
9163 link_all_deplibs=yes
9166 netbsd*)
9167 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9168 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9169 else
9170 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9172 hardcode_libdir_flag_spec='-R$libdir'
9173 hardcode_direct=yes
9174 hardcode_shlibpath_var=no
9177 newsos6)
9178 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9179 hardcode_direct=yes
9180 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9181 hardcode_libdir_separator=:
9182 hardcode_shlibpath_var=no
9185 *nto* | *qnx*)
9188 openbsd*)
9189 if test -f /usr/libexec/ld.so; then
9190 hardcode_direct=yes
9191 hardcode_shlibpath_var=no
9192 hardcode_direct_absolute=yes
9193 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9194 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9195 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9196 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9197 export_dynamic_flag_spec='${wl}-E'
9198 else
9199 case $host_os in
9200 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9201 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9202 hardcode_libdir_flag_spec='-R$libdir'
9205 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9206 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9208 esac
9210 else
9211 ld_shlibs=no
9215 os2*)
9216 hardcode_libdir_flag_spec='-L$libdir'
9217 hardcode_minus_L=yes
9218 allow_undefined_flag=unsupported
9219 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'
9220 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9223 osf3*)
9224 if test "$GCC" = yes; then
9225 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9226 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'
9227 else
9228 allow_undefined_flag=' -expect_unresolved \*'
9229 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'
9231 archive_cmds_need_lc='no'
9232 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9233 hardcode_libdir_separator=:
9236 osf4* | osf5*) # as osf3* with the addition of -msym flag
9237 if test "$GCC" = yes; then
9238 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9239 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'
9240 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9241 else
9242 allow_undefined_flag=' -expect_unresolved \*'
9243 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'
9244 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~
9245 $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'
9247 # Both c and cxx compiler support -rpath directly
9248 hardcode_libdir_flag_spec='-rpath $libdir'
9250 archive_cmds_need_lc='no'
9251 hardcode_libdir_separator=:
9254 solaris*)
9255 no_undefined_flag=' -z defs'
9256 if test "$GCC" = yes; then
9257 wlarc='${wl}'
9258 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9259 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9260 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9261 else
9262 case `$CC -V 2>&1` in
9263 *"Compilers 5.0"*)
9264 wlarc=''
9265 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9266 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9267 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9270 wlarc='${wl}'
9271 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9272 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9273 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9275 esac
9277 hardcode_libdir_flag_spec='-R$libdir'
9278 hardcode_shlibpath_var=no
9279 case $host_os in
9280 solaris2.[0-5] | solaris2.[0-5].*) ;;
9282 # The compiler driver will combine and reorder linker options,
9283 # but understands `-z linker_flag'. GCC discards it without `$wl',
9284 # but is careful enough not to reorder.
9285 # Supported since Solaris 2.6 (maybe 2.5.1?)
9286 if test "$GCC" = yes; then
9287 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9288 else
9289 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9292 esac
9293 link_all_deplibs=yes
9296 sunos4*)
9297 if test "x$host_vendor" = xsequent; then
9298 # Use $CC to link under sequent, because it throws in some extra .o
9299 # files that make .init and .fini sections work.
9300 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9301 else
9302 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9304 hardcode_libdir_flag_spec='-L$libdir'
9305 hardcode_direct=yes
9306 hardcode_minus_L=yes
9307 hardcode_shlibpath_var=no
9310 sysv4)
9311 case $host_vendor in
9312 sni)
9313 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9314 hardcode_direct=yes # is this really true???
9316 siemens)
9317 ## LD is ld it makes a PLAMLIB
9318 ## CC just makes a GrossModule.
9319 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9320 reload_cmds='$CC -r -o $output$reload_objs'
9321 hardcode_direct=no
9323 motorola)
9324 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9325 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9327 esac
9328 runpath_var='LD_RUN_PATH'
9329 hardcode_shlibpath_var=no
9332 sysv4.3*)
9333 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9334 hardcode_shlibpath_var=no
9335 export_dynamic_flag_spec='-Bexport'
9338 sysv4*MP*)
9339 if test -d /usr/nec; then
9340 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9341 hardcode_shlibpath_var=no
9342 runpath_var=LD_RUN_PATH
9343 hardcode_runpath_var=yes
9344 ld_shlibs=yes
9348 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9349 no_undefined_flag='${wl}-z,text'
9350 archive_cmds_need_lc=no
9351 hardcode_shlibpath_var=no
9352 runpath_var='LD_RUN_PATH'
9354 if test "$GCC" = yes; then
9355 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9356 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9357 else
9358 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9359 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9363 sysv5* | sco3.2v5* | sco5v6*)
9364 # Note: We can NOT use -z defs as we might desire, because we do not
9365 # link with -lc, and that would cause any symbols used from libc to
9366 # always be unresolved, which means just about no library would
9367 # ever link correctly. If we're not using GNU ld we use -z text
9368 # though, which does catch some bad symbols but isn't as heavy-handed
9369 # as -z defs.
9370 no_undefined_flag='${wl}-z,text'
9371 allow_undefined_flag='${wl}-z,nodefs'
9372 archive_cmds_need_lc=no
9373 hardcode_shlibpath_var=no
9374 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9375 hardcode_libdir_separator=':'
9376 link_all_deplibs=yes
9377 export_dynamic_flag_spec='${wl}-Bexport'
9378 runpath_var='LD_RUN_PATH'
9380 if test "$GCC" = yes; then
9381 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9382 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9383 else
9384 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9385 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9389 uts4*)
9390 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9391 hardcode_libdir_flag_spec='-L$libdir'
9392 hardcode_shlibpath_var=no
9396 ld_shlibs=no
9398 esac
9400 if test x$host_vendor = xsni; then
9401 case $host in
9402 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9403 export_dynamic_flag_spec='${wl}-Blargedynsym'
9405 esac
9409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9410 $as_echo "$ld_shlibs" >&6; }
9411 test "$ld_shlibs" = no && can_build_shared=no
9413 with_gnu_ld=$with_gnu_ld
9430 # Do we need to explicitly link libc?
9432 case "x$archive_cmds_need_lc" in
9433 x|xyes)
9434 # Assume -lc should be added
9435 archive_cmds_need_lc=yes
9437 if test "$enable_shared" = yes && test "$GCC" = yes; then
9438 case $archive_cmds in
9439 *'~'*)
9440 # FIXME: we may have to deal with multi-command sequences.
9442 '$CC '*)
9443 # Test whether the compiler implicitly links with -lc since on some
9444 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9445 # to ld, don't add -lc before -lgcc.
9446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9447 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9448 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9449 $as_echo_n "(cached) " >&6
9450 else
9451 $RM conftest*
9452 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9454 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9455 (eval $ac_compile) 2>&5
9456 ac_status=$?
9457 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9458 test $ac_status = 0; } 2>conftest.err; then
9459 soname=conftest
9460 lib=conftest
9461 libobjs=conftest.$ac_objext
9462 deplibs=
9463 wl=$lt_prog_compiler_wl
9464 pic_flag=$lt_prog_compiler_pic
9465 compiler_flags=-v
9466 linker_flags=-v
9467 verstring=
9468 output_objdir=.
9469 libname=conftest
9470 lt_save_allow_undefined_flag=$allow_undefined_flag
9471 allow_undefined_flag=
9472 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9473 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9474 ac_status=$?
9475 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9476 test $ac_status = 0; }
9477 then
9478 lt_cv_archive_cmds_need_lc=no
9479 else
9480 lt_cv_archive_cmds_need_lc=yes
9482 allow_undefined_flag=$lt_save_allow_undefined_flag
9483 else
9484 cat conftest.err 1>&5
9486 $RM conftest*
9489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9490 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9491 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9493 esac
9496 esac
9654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9655 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9657 if test "$GCC" = yes; then
9658 case $host_os in
9659 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9660 *) lt_awk_arg="/^libraries:/" ;;
9661 esac
9662 case $host_os in
9663 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9664 *) lt_sed_strip_eq="s,=/,/,g" ;;
9665 esac
9666 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9667 case $lt_search_path_spec in
9668 *\;*)
9669 # if the path contains ";" then we assume it to be the separator
9670 # otherwise default to the standard path separator (i.e. ":") - it is
9671 # assumed that no part of a normal pathname contains ";" but that should
9672 # okay in the real world where ";" in dirpaths is itself problematic.
9673 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9676 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9678 esac
9679 # Ok, now we have the path, separated by spaces, we can step through it
9680 # and add multilib dir if necessary.
9681 lt_tmp_lt_search_path_spec=
9682 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9683 for lt_sys_path in $lt_search_path_spec; do
9684 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9685 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9686 else
9687 test -d "$lt_sys_path" && \
9688 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9690 done
9691 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9692 BEGIN {RS=" "; FS="/|\n";} {
9693 lt_foo="";
9694 lt_count=0;
9695 for (lt_i = NF; lt_i > 0; lt_i--) {
9696 if ($lt_i != "" && $lt_i != ".") {
9697 if ($lt_i == "..") {
9698 lt_count++;
9699 } else {
9700 if (lt_count == 0) {
9701 lt_foo="/" $lt_i lt_foo;
9702 } else {
9703 lt_count--;
9708 if (lt_foo != "") { lt_freq[lt_foo]++; }
9709 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9711 # AWK program above erroneously prepends '/' to C:/dos/paths
9712 # for these hosts.
9713 case $host_os in
9714 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9715 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9716 esac
9717 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9718 else
9719 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9721 library_names_spec=
9722 libname_spec='lib$name'
9723 soname_spec=
9724 shrext_cmds=".so"
9725 postinstall_cmds=
9726 postuninstall_cmds=
9727 finish_cmds=
9728 finish_eval=
9729 shlibpath_var=
9730 shlibpath_overrides_runpath=unknown
9731 version_type=none
9732 dynamic_linker="$host_os ld.so"
9733 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9734 need_lib_prefix=unknown
9735 hardcode_into_libs=no
9737 # when you set need_version to no, make sure it does not cause -set_version
9738 # flags to be left without arguments
9739 need_version=unknown
9741 case $host_os in
9742 aix3*)
9743 version_type=linux
9744 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9745 shlibpath_var=LIBPATH
9747 # AIX 3 has no versioning support, so we append a major version to the name.
9748 soname_spec='${libname}${release}${shared_ext}$major'
9751 aix[4-9]*)
9752 version_type=linux
9753 need_lib_prefix=no
9754 need_version=no
9755 hardcode_into_libs=yes
9756 if test "$host_cpu" = ia64; then
9757 # AIX 5 supports IA64
9758 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9759 shlibpath_var=LD_LIBRARY_PATH
9760 else
9761 # With GCC up to 2.95.x, collect2 would create an import file
9762 # for dependence libraries. The import file would start with
9763 # the line `#! .'. This would cause the generated library to
9764 # depend on `.', always an invalid library. This was fixed in
9765 # development snapshots of GCC prior to 3.0.
9766 case $host_os in
9767 aix4 | aix4.[01] | aix4.[01].*)
9768 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9769 echo ' yes '
9770 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9772 else
9773 can_build_shared=no
9776 esac
9777 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9778 # soname into executable. Probably we can add versioning support to
9779 # collect2, so additional links can be useful in future.
9780 if test "$aix_use_runtimelinking" = yes; then
9781 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9782 # instead of lib<name>.a to let people know that these are not
9783 # typical AIX shared libraries.
9784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9785 else
9786 # We preserve .a as extension for shared libraries through AIX4.2
9787 # and later when we are not doing run time linking.
9788 library_names_spec='${libname}${release}.a $libname.a'
9789 soname_spec='${libname}${release}${shared_ext}$major'
9791 shlibpath_var=LIBPATH
9795 amigaos*)
9796 case $host_cpu in
9797 powerpc)
9798 # Since July 2007 AmigaOS4 officially supports .so libraries.
9799 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9802 m68k)
9803 library_names_spec='$libname.ixlibrary $libname.a'
9804 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9805 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'
9807 esac
9810 beos*)
9811 library_names_spec='${libname}${shared_ext}'
9812 dynamic_linker="$host_os ld.so"
9813 shlibpath_var=LIBRARY_PATH
9816 bsdi[45]*)
9817 version_type=linux
9818 need_version=no
9819 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9820 soname_spec='${libname}${release}${shared_ext}$major'
9821 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9822 shlibpath_var=LD_LIBRARY_PATH
9823 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9824 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9825 # the default ld.so.conf also contains /usr/contrib/lib and
9826 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9827 # libtool to hard-code these into programs
9830 cygwin* | mingw* | pw32* | cegcc*)
9831 version_type=windows
9832 shrext_cmds=".dll"
9833 need_version=no
9834 need_lib_prefix=no
9836 case $GCC,$host_os in
9837 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9838 library_names_spec='$libname.dll.a'
9839 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9840 postinstall_cmds='base_file=`basename \${file}`~
9841 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9842 dldir=$destdir/`dirname \$dlpath`~
9843 test -d \$dldir || mkdir -p \$dldir~
9844 $install_prog $dir/$dlname \$dldir/$dlname~
9845 chmod a+x \$dldir/$dlname~
9846 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9847 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9849 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9850 dlpath=$dir/\$dldll~
9851 $RM \$dlpath'
9852 shlibpath_overrides_runpath=yes
9854 case $host_os in
9855 cygwin*)
9856 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9857 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9859 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9861 mingw* | cegcc*)
9862 # MinGW DLLs use traditional 'lib' prefix
9863 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9865 pw32*)
9866 # pw32 DLLs use 'pw' prefix rather than 'lib'
9867 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9869 esac
9873 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9875 esac
9876 dynamic_linker='Win32 ld.exe'
9877 # FIXME: first we should search . and the directory the executable is in
9878 shlibpath_var=PATH
9881 darwin* | rhapsody*)
9882 dynamic_linker="$host_os dyld"
9883 version_type=darwin
9884 need_lib_prefix=no
9885 need_version=no
9886 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9887 soname_spec='${libname}${release}${major}$shared_ext'
9888 shlibpath_overrides_runpath=yes
9889 shlibpath_var=DYLD_LIBRARY_PATH
9890 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9892 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9893 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9896 dgux*)
9897 version_type=linux
9898 need_lib_prefix=no
9899 need_version=no
9900 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9901 soname_spec='${libname}${release}${shared_ext}$major'
9902 shlibpath_var=LD_LIBRARY_PATH
9905 freebsd* | dragonfly*)
9906 # DragonFly does not have aout. When/if they implement a new
9907 # versioning mechanism, adjust this.
9908 if test -x /usr/bin/objformat; then
9909 objformat=`/usr/bin/objformat`
9910 else
9911 case $host_os in
9912 freebsd[23].*) objformat=aout ;;
9913 *) objformat=elf ;;
9914 esac
9916 version_type=freebsd-$objformat
9917 case $version_type in
9918 freebsd-elf*)
9919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9920 need_version=no
9921 need_lib_prefix=no
9923 freebsd-*)
9924 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9925 need_version=yes
9927 esac
9928 shlibpath_var=LD_LIBRARY_PATH
9929 case $host_os in
9930 freebsd2.*)
9931 shlibpath_overrides_runpath=yes
9933 freebsd3.[01]* | freebsdelf3.[01]*)
9934 shlibpath_overrides_runpath=yes
9935 hardcode_into_libs=yes
9937 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9938 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9939 shlibpath_overrides_runpath=no
9940 hardcode_into_libs=yes
9942 *) # from 4.6 on, and DragonFly
9943 shlibpath_overrides_runpath=yes
9944 hardcode_into_libs=yes
9946 esac
9949 haiku*)
9950 version_type=linux
9951 need_lib_prefix=no
9952 need_version=no
9953 dynamic_linker="$host_os runtime_loader"
9954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9955 soname_spec='${libname}${release}${shared_ext}$major'
9956 shlibpath_var=LIBRARY_PATH
9957 shlibpath_overrides_runpath=yes
9958 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
9959 hardcode_into_libs=yes
9962 hpux9* | hpux10* | hpux11*)
9963 # Give a soname corresponding to the major version so that dld.sl refuses to
9964 # link against other versions.
9965 version_type=sunos
9966 need_lib_prefix=no
9967 need_version=no
9968 case $host_cpu in
9969 ia64*)
9970 shrext_cmds='.so'
9971 hardcode_into_libs=yes
9972 dynamic_linker="$host_os dld.so"
9973 shlibpath_var=LD_LIBRARY_PATH
9974 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9975 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9976 soname_spec='${libname}${release}${shared_ext}$major'
9977 if test "X$HPUX_IA64_MODE" = X32; then
9978 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9979 else
9980 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9982 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9984 hppa*64*)
9985 shrext_cmds='.sl'
9986 hardcode_into_libs=yes
9987 dynamic_linker="$host_os dld.sl"
9988 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9989 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9991 soname_spec='${libname}${release}${shared_ext}$major'
9992 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9993 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9996 shrext_cmds='.sl'
9997 dynamic_linker="$host_os dld.sl"
9998 shlibpath_var=SHLIB_PATH
9999 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10000 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10001 soname_spec='${libname}${release}${shared_ext}$major'
10003 esac
10004 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10005 postinstall_cmds='chmod 555 $lib'
10006 # or fails outright, so override atomically:
10007 install_override_mode=555
10010 interix[3-9]*)
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 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10017 shlibpath_var=LD_LIBRARY_PATH
10018 shlibpath_overrides_runpath=no
10019 hardcode_into_libs=yes
10022 irix5* | irix6* | nonstopux*)
10023 case $host_os in
10024 nonstopux*) version_type=nonstopux ;;
10026 if test "$lt_cv_prog_gnu_ld" = yes; then
10027 version_type=linux
10028 else
10029 version_type=irix
10030 fi ;;
10031 esac
10032 need_lib_prefix=no
10033 need_version=no
10034 soname_spec='${libname}${release}${shared_ext}$major'
10035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10036 case $host_os in
10037 irix5* | nonstopux*)
10038 libsuff= shlibsuff=
10041 case $LD in # libtool.m4 will add one of these switches to LD
10042 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10043 libsuff= shlibsuff= libmagic=32-bit;;
10044 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10045 libsuff=32 shlibsuff=N32 libmagic=N32;;
10046 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10047 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10048 *) libsuff= shlibsuff= libmagic=never-match;;
10049 esac
10051 esac
10052 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10053 shlibpath_overrides_runpath=no
10054 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10055 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10056 hardcode_into_libs=yes
10059 # No shared lib support for Linux oldld, aout, or coff.
10060 linux*oldld* | linux*aout* | linux*coff*)
10061 dynamic_linker=no
10064 # This must be Linux ELF.
10066 # uclinux* changes (here and below) have been submitted to the libtool
10067 # project, but have not yet been accepted: they are GCC-local changes
10068 # for the time being. (See
10069 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
10070 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
10071 version_type=linux
10072 need_lib_prefix=no
10073 need_version=no
10074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10075 soname_spec='${libname}${release}${shared_ext}$major'
10076 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10077 shlibpath_var=LD_LIBRARY_PATH
10078 shlibpath_overrides_runpath=no
10080 # Some binutils ld are patched to set DT_RUNPATH
10081 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10082 $as_echo_n "(cached) " >&6
10083 else
10084 lt_cv_shlibpath_overrides_runpath=no
10085 save_LDFLAGS=$LDFLAGS
10086 save_libdir=$libdir
10087 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10088 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10090 /* end confdefs.h. */
10093 main ()
10097 return 0;
10099 _ACEOF
10100 if ac_fn_c_try_link "$LINENO"; then :
10101 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10102 lt_cv_shlibpath_overrides_runpath=yes
10105 rm -f core conftest.err conftest.$ac_objext \
10106 conftest$ac_exeext conftest.$ac_ext
10107 LDFLAGS=$save_LDFLAGS
10108 libdir=$save_libdir
10112 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10114 # This implies no fast_install, which is unacceptable.
10115 # Some rework will be needed to allow for fast_install
10116 # before this can be enabled.
10117 hardcode_into_libs=yes
10119 # Append ld.so.conf contents to the search path
10120 if test -f /etc/ld.so.conf; then
10121 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' ' '`
10122 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10125 # We used to test for /lib/ld.so.1 and disable shared libraries on
10126 # powerpc, because MkLinux only supported shared libraries with the
10127 # GNU dynamic linker. Since this was broken with cross compilers,
10128 # most powerpc-linux boxes support dynamic linking these days and
10129 # people can always --disable-shared, the test was removed, and we
10130 # assume the GNU/Linux dynamic linker is in use.
10131 dynamic_linker='GNU/Linux ld.so'
10134 netbsd*)
10135 version_type=sunos
10136 need_lib_prefix=no
10137 need_version=no
10138 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10140 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10141 dynamic_linker='NetBSD (a.out) ld.so'
10142 else
10143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10144 soname_spec='${libname}${release}${shared_ext}$major'
10145 dynamic_linker='NetBSD ld.elf_so'
10147 shlibpath_var=LD_LIBRARY_PATH
10148 shlibpath_overrides_runpath=yes
10149 hardcode_into_libs=yes
10152 newsos6)
10153 version_type=linux
10154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10155 shlibpath_var=LD_LIBRARY_PATH
10156 shlibpath_overrides_runpath=yes
10159 *nto* | *qnx*)
10160 version_type=qnx
10161 need_lib_prefix=no
10162 need_version=no
10163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10164 soname_spec='${libname}${release}${shared_ext}$major'
10165 shlibpath_var=LD_LIBRARY_PATH
10166 shlibpath_overrides_runpath=no
10167 hardcode_into_libs=yes
10168 dynamic_linker='ldqnx.so'
10171 openbsd*)
10172 version_type=sunos
10173 sys_lib_dlsearch_path_spec="/usr/lib"
10174 need_lib_prefix=no
10175 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10176 case $host_os in
10177 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10178 *) need_version=no ;;
10179 esac
10180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10181 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10182 shlibpath_var=LD_LIBRARY_PATH
10183 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10184 case $host_os in
10185 openbsd2.[89] | openbsd2.[89].*)
10186 shlibpath_overrides_runpath=no
10189 shlibpath_overrides_runpath=yes
10191 esac
10192 else
10193 shlibpath_overrides_runpath=yes
10197 os2*)
10198 libname_spec='$name'
10199 shrext_cmds=".dll"
10200 need_lib_prefix=no
10201 library_names_spec='$libname${shared_ext} $libname.a'
10202 dynamic_linker='OS/2 ld.exe'
10203 shlibpath_var=LIBPATH
10206 osf3* | osf4* | osf5*)
10207 version_type=osf
10208 need_lib_prefix=no
10209 need_version=no
10210 soname_spec='${libname}${release}${shared_ext}$major'
10211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10212 shlibpath_var=LD_LIBRARY_PATH
10213 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10214 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10217 rdos*)
10218 dynamic_linker=no
10221 solaris*)
10222 version_type=linux
10223 need_lib_prefix=no
10224 need_version=no
10225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10226 soname_spec='${libname}${release}${shared_ext}$major'
10227 shlibpath_var=LD_LIBRARY_PATH
10228 shlibpath_overrides_runpath=yes
10229 hardcode_into_libs=yes
10230 # ldd complains unless libraries are executable
10231 postinstall_cmds='chmod +x $lib'
10234 sunos4*)
10235 version_type=sunos
10236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10237 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10238 shlibpath_var=LD_LIBRARY_PATH
10239 shlibpath_overrides_runpath=yes
10240 if test "$with_gnu_ld" = yes; then
10241 need_lib_prefix=no
10243 need_version=yes
10246 sysv4 | sysv4.3*)
10247 version_type=linux
10248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10249 soname_spec='${libname}${release}${shared_ext}$major'
10250 shlibpath_var=LD_LIBRARY_PATH
10251 case $host_vendor in
10252 sni)
10253 shlibpath_overrides_runpath=no
10254 need_lib_prefix=no
10255 runpath_var=LD_RUN_PATH
10257 siemens)
10258 need_lib_prefix=no
10260 motorola)
10261 need_lib_prefix=no
10262 need_version=no
10263 shlibpath_overrides_runpath=no
10264 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10266 esac
10269 sysv4*MP*)
10270 if test -d /usr/nec ;then
10271 version_type=linux
10272 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10273 soname_spec='$libname${shared_ext}.$major'
10274 shlibpath_var=LD_LIBRARY_PATH
10278 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10279 version_type=freebsd-elf
10280 need_lib_prefix=no
10281 need_version=no
10282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10283 soname_spec='${libname}${release}${shared_ext}$major'
10284 shlibpath_var=LD_LIBRARY_PATH
10285 shlibpath_overrides_runpath=yes
10286 hardcode_into_libs=yes
10287 if test "$with_gnu_ld" = yes; then
10288 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10289 else
10290 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10291 case $host_os in
10292 sco3.2v5*)
10293 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10295 esac
10297 sys_lib_dlsearch_path_spec='/usr/lib'
10300 tpf*)
10301 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10302 version_type=linux
10303 need_lib_prefix=no
10304 need_version=no
10305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10306 shlibpath_var=LD_LIBRARY_PATH
10307 shlibpath_overrides_runpath=no
10308 hardcode_into_libs=yes
10311 uts4*)
10312 version_type=linux
10313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10314 soname_spec='${libname}${release}${shared_ext}$major'
10315 shlibpath_var=LD_LIBRARY_PATH
10318 # Shared libraries for VwWorks, >= 7 only at this stage
10319 # and (fpic) still incompatible with "large" code models
10320 # in a few configurations. Only for RTP mode in any case,
10321 # and upon explicit request at configure time.
10322 vxworks7*)
10323 dynamic_linker=no
10324 case ${with_multisubdir}-${enable_shared} in
10325 *large*)
10327 *mrtp*-yes)
10328 version_type=linux
10329 need_lib_prefix=no
10330 need_version=no
10331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10332 soname_spec='${libname}${release}${shared_ext}$major'
10333 dynamic_linker="$host_os module_loader"
10335 esac
10338 dynamic_linker=no
10340 esac
10341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10342 $as_echo "$dynamic_linker" >&6; }
10343 test "$dynamic_linker" = no && can_build_shared=no
10345 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10346 if test "$GCC" = yes; then
10347 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10350 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10351 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10353 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10354 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10449 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10450 hardcode_action=
10451 if test -n "$hardcode_libdir_flag_spec" ||
10452 test -n "$runpath_var" ||
10453 test "X$hardcode_automatic" = "Xyes" ; then
10455 # We can hardcode non-existent directories.
10456 if test "$hardcode_direct" != no &&
10457 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10458 # have to relink, otherwise we might link with an installed library
10459 # when we should be linking with a yet-to-be-installed one
10460 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10461 test "$hardcode_minus_L" != no; then
10462 # Linking always hardcodes the temporary library directory.
10463 hardcode_action=relink
10464 else
10465 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10466 hardcode_action=immediate
10468 else
10469 # We cannot hardcode anything, or else we can only hardcode existing
10470 # directories.
10471 hardcode_action=unsupported
10473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10474 $as_echo "$hardcode_action" >&6; }
10476 if test "$hardcode_action" = relink ||
10477 test "$inherit_rpath" = yes; then
10478 # Fast installation is not supported
10479 enable_fast_install=no
10480 elif test "$shlibpath_overrides_runpath" = yes ||
10481 test "$enable_shared" = no; then
10482 # Fast installation is not necessary
10483 enable_fast_install=needless
10491 if test "x$enable_dlopen" != xyes; then
10492 enable_dlopen=unknown
10493 enable_dlopen_self=unknown
10494 enable_dlopen_self_static=unknown
10495 else
10496 lt_cv_dlopen=no
10497 lt_cv_dlopen_libs=
10499 case $host_os in
10500 beos*)
10501 lt_cv_dlopen="load_add_on"
10502 lt_cv_dlopen_libs=
10503 lt_cv_dlopen_self=yes
10506 mingw* | pw32* | cegcc*)
10507 lt_cv_dlopen="LoadLibrary"
10508 lt_cv_dlopen_libs=
10511 cygwin*)
10512 lt_cv_dlopen="dlopen"
10513 lt_cv_dlopen_libs=
10516 darwin*)
10517 # if libdl is installed we need to link against it
10518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10519 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10520 if ${ac_cv_lib_dl_dlopen+:} false; then :
10521 $as_echo_n "(cached) " >&6
10522 else
10523 ac_check_lib_save_LIBS=$LIBS
10524 LIBS="-ldl $LIBS"
10525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10526 /* end confdefs.h. */
10528 /* Override any GCC internal prototype to avoid an error.
10529 Use char because int might match the return type of a GCC
10530 builtin and then its argument prototype would still apply. */
10531 #ifdef __cplusplus
10532 extern "C"
10533 #endif
10534 char dlopen ();
10536 main ()
10538 return dlopen ();
10540 return 0;
10542 _ACEOF
10543 if ac_fn_c_try_link "$LINENO"; then :
10544 ac_cv_lib_dl_dlopen=yes
10545 else
10546 ac_cv_lib_dl_dlopen=no
10548 rm -f core conftest.err conftest.$ac_objext \
10549 conftest$ac_exeext conftest.$ac_ext
10550 LIBS=$ac_check_lib_save_LIBS
10552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10553 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10554 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10555 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10556 else
10558 lt_cv_dlopen="dyld"
10559 lt_cv_dlopen_libs=
10560 lt_cv_dlopen_self=yes
10567 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10568 if test "x$ac_cv_func_shl_load" = xyes; then :
10569 lt_cv_dlopen="shl_load"
10570 else
10571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10572 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10573 if ${ac_cv_lib_dld_shl_load+:} false; then :
10574 $as_echo_n "(cached) " >&6
10575 else
10576 ac_check_lib_save_LIBS=$LIBS
10577 LIBS="-ldld $LIBS"
10578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10579 /* end confdefs.h. */
10581 /* Override any GCC internal prototype to avoid an error.
10582 Use char because int might match the return type of a GCC
10583 builtin and then its argument prototype would still apply. */
10584 #ifdef __cplusplus
10585 extern "C"
10586 #endif
10587 char shl_load ();
10589 main ()
10591 return shl_load ();
10593 return 0;
10595 _ACEOF
10596 if ac_fn_c_try_link "$LINENO"; then :
10597 ac_cv_lib_dld_shl_load=yes
10598 else
10599 ac_cv_lib_dld_shl_load=no
10601 rm -f core conftest.err conftest.$ac_objext \
10602 conftest$ac_exeext conftest.$ac_ext
10603 LIBS=$ac_check_lib_save_LIBS
10605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10606 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10607 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10608 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10609 else
10610 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10611 if test "x$ac_cv_func_dlopen" = xyes; then :
10612 lt_cv_dlopen="dlopen"
10613 else
10614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10615 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10616 if ${ac_cv_lib_dl_dlopen+:} false; then :
10617 $as_echo_n "(cached) " >&6
10618 else
10619 ac_check_lib_save_LIBS=$LIBS
10620 LIBS="-ldl $LIBS"
10621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10622 /* end confdefs.h. */
10624 /* Override any GCC internal prototype to avoid an error.
10625 Use char because int might match the return type of a GCC
10626 builtin and then its argument prototype would still apply. */
10627 #ifdef __cplusplus
10628 extern "C"
10629 #endif
10630 char dlopen ();
10632 main ()
10634 return dlopen ();
10636 return 0;
10638 _ACEOF
10639 if ac_fn_c_try_link "$LINENO"; then :
10640 ac_cv_lib_dl_dlopen=yes
10641 else
10642 ac_cv_lib_dl_dlopen=no
10644 rm -f core conftest.err conftest.$ac_objext \
10645 conftest$ac_exeext conftest.$ac_ext
10646 LIBS=$ac_check_lib_save_LIBS
10648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10649 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10650 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10651 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10652 else
10653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10654 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10655 if ${ac_cv_lib_svld_dlopen+:} false; then :
10656 $as_echo_n "(cached) " >&6
10657 else
10658 ac_check_lib_save_LIBS=$LIBS
10659 LIBS="-lsvld $LIBS"
10660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10661 /* end confdefs.h. */
10663 /* Override any GCC internal prototype to avoid an error.
10664 Use char because int might match the return type of a GCC
10665 builtin and then its argument prototype would still apply. */
10666 #ifdef __cplusplus
10667 extern "C"
10668 #endif
10669 char dlopen ();
10671 main ()
10673 return dlopen ();
10675 return 0;
10677 _ACEOF
10678 if ac_fn_c_try_link "$LINENO"; then :
10679 ac_cv_lib_svld_dlopen=yes
10680 else
10681 ac_cv_lib_svld_dlopen=no
10683 rm -f core conftest.err conftest.$ac_objext \
10684 conftest$ac_exeext conftest.$ac_ext
10685 LIBS=$ac_check_lib_save_LIBS
10687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10688 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10689 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10690 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10691 else
10692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10693 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10694 if ${ac_cv_lib_dld_dld_link+:} false; then :
10695 $as_echo_n "(cached) " >&6
10696 else
10697 ac_check_lib_save_LIBS=$LIBS
10698 LIBS="-ldld $LIBS"
10699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10700 /* end confdefs.h. */
10702 /* Override any GCC internal prototype to avoid an error.
10703 Use char because int might match the return type of a GCC
10704 builtin and then its argument prototype would still apply. */
10705 #ifdef __cplusplus
10706 extern "C"
10707 #endif
10708 char dld_link ();
10710 main ()
10712 return dld_link ();
10714 return 0;
10716 _ACEOF
10717 if ac_fn_c_try_link "$LINENO"; then :
10718 ac_cv_lib_dld_dld_link=yes
10719 else
10720 ac_cv_lib_dld_dld_link=no
10722 rm -f core conftest.err conftest.$ac_objext \
10723 conftest$ac_exeext conftest.$ac_ext
10724 LIBS=$ac_check_lib_save_LIBS
10726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10727 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10728 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10729 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10748 esac
10750 if test "x$lt_cv_dlopen" != xno; then
10751 enable_dlopen=yes
10752 else
10753 enable_dlopen=no
10756 case $lt_cv_dlopen in
10757 dlopen)
10758 save_CPPFLAGS="$CPPFLAGS"
10759 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10761 save_LDFLAGS="$LDFLAGS"
10762 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10764 save_LIBS="$LIBS"
10765 LIBS="$lt_cv_dlopen_libs $LIBS"
10767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10768 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10769 if ${lt_cv_dlopen_self+:} false; then :
10770 $as_echo_n "(cached) " >&6
10771 else
10772 if test "$cross_compiling" = yes; then :
10773 lt_cv_dlopen_self=cross
10774 else
10775 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10776 lt_status=$lt_dlunknown
10777 cat > conftest.$ac_ext <<_LT_EOF
10778 #line 10778 "configure"
10779 #include "confdefs.h"
10781 #if HAVE_DLFCN_H
10782 #include <dlfcn.h>
10783 #endif
10785 #include <stdio.h>
10787 #ifdef RTLD_GLOBAL
10788 # define LT_DLGLOBAL RTLD_GLOBAL
10789 #else
10790 # ifdef DL_GLOBAL
10791 # define LT_DLGLOBAL DL_GLOBAL
10792 # else
10793 # define LT_DLGLOBAL 0
10794 # endif
10795 #endif
10797 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10798 find out it does not work in some platform. */
10799 #ifndef LT_DLLAZY_OR_NOW
10800 # ifdef RTLD_LAZY
10801 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10802 # else
10803 # ifdef DL_LAZY
10804 # define LT_DLLAZY_OR_NOW DL_LAZY
10805 # else
10806 # ifdef RTLD_NOW
10807 # define LT_DLLAZY_OR_NOW RTLD_NOW
10808 # else
10809 # ifdef DL_NOW
10810 # define LT_DLLAZY_OR_NOW DL_NOW
10811 # else
10812 # define LT_DLLAZY_OR_NOW 0
10813 # endif
10814 # endif
10815 # endif
10816 # endif
10817 #endif
10819 /* When -fvisbility=hidden is used, assume the code has been annotated
10820 correspondingly for the symbols needed. */
10821 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10822 void fnord () __attribute__((visibility("default")));
10823 #endif
10825 void fnord () { int i=42; }
10826 int main ()
10828 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10829 int status = $lt_dlunknown;
10831 if (self)
10833 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10834 else
10836 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10837 else puts (dlerror ());
10839 /* dlclose (self); */
10841 else
10842 puts (dlerror ());
10844 return status;
10846 _LT_EOF
10847 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10848 (eval $ac_link) 2>&5
10849 ac_status=$?
10850 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10851 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10852 (./conftest; exit; ) >&5 2>/dev/null
10853 lt_status=$?
10854 case x$lt_status in
10855 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10856 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10857 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10858 esac
10859 else :
10860 # compilation failed
10861 lt_cv_dlopen_self=no
10864 rm -fr conftest*
10868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10869 $as_echo "$lt_cv_dlopen_self" >&6; }
10871 if test "x$lt_cv_dlopen_self" = xyes; then
10872 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10874 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10875 if ${lt_cv_dlopen_self_static+:} false; then :
10876 $as_echo_n "(cached) " >&6
10877 else
10878 if test "$cross_compiling" = yes; then :
10879 lt_cv_dlopen_self_static=cross
10880 else
10881 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10882 lt_status=$lt_dlunknown
10883 cat > conftest.$ac_ext <<_LT_EOF
10884 #line 10884 "configure"
10885 #include "confdefs.h"
10887 #if HAVE_DLFCN_H
10888 #include <dlfcn.h>
10889 #endif
10891 #include <stdio.h>
10893 #ifdef RTLD_GLOBAL
10894 # define LT_DLGLOBAL RTLD_GLOBAL
10895 #else
10896 # ifdef DL_GLOBAL
10897 # define LT_DLGLOBAL DL_GLOBAL
10898 # else
10899 # define LT_DLGLOBAL 0
10900 # endif
10901 #endif
10903 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10904 find out it does not work in some platform. */
10905 #ifndef LT_DLLAZY_OR_NOW
10906 # ifdef RTLD_LAZY
10907 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10908 # else
10909 # ifdef DL_LAZY
10910 # define LT_DLLAZY_OR_NOW DL_LAZY
10911 # else
10912 # ifdef RTLD_NOW
10913 # define LT_DLLAZY_OR_NOW RTLD_NOW
10914 # else
10915 # ifdef DL_NOW
10916 # define LT_DLLAZY_OR_NOW DL_NOW
10917 # else
10918 # define LT_DLLAZY_OR_NOW 0
10919 # endif
10920 # endif
10921 # endif
10922 # endif
10923 #endif
10925 /* When -fvisbility=hidden is used, assume the code has been annotated
10926 correspondingly for the symbols needed. */
10927 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10928 void fnord () __attribute__((visibility("default")));
10929 #endif
10931 void fnord () { int i=42; }
10932 int main ()
10934 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10935 int status = $lt_dlunknown;
10937 if (self)
10939 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10940 else
10942 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10943 else puts (dlerror ());
10945 /* dlclose (self); */
10947 else
10948 puts (dlerror ());
10950 return status;
10952 _LT_EOF
10953 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10954 (eval $ac_link) 2>&5
10955 ac_status=$?
10956 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10957 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10958 (./conftest; exit; ) >&5 2>/dev/null
10959 lt_status=$?
10960 case x$lt_status in
10961 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10962 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10963 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10964 esac
10965 else :
10966 # compilation failed
10967 lt_cv_dlopen_self_static=no
10970 rm -fr conftest*
10974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10975 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10978 CPPFLAGS="$save_CPPFLAGS"
10979 LDFLAGS="$save_LDFLAGS"
10980 LIBS="$save_LIBS"
10982 esac
10984 case $lt_cv_dlopen_self in
10985 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10986 *) enable_dlopen_self=unknown ;;
10987 esac
10989 case $lt_cv_dlopen_self_static in
10990 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10991 *) enable_dlopen_self_static=unknown ;;
10992 esac
11011 striplib=
11012 old_striplib=
11013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11014 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11015 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11016 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11017 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11019 $as_echo "yes" >&6; }
11020 else
11021 # FIXME - insert some real tests, host_os isn't really good enough
11022 case $host_os in
11023 darwin*)
11024 if test -n "$STRIP" ; then
11025 striplib="$STRIP -x"
11026 old_striplib="$STRIP -S"
11027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11028 $as_echo "yes" >&6; }
11029 else
11030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11031 $as_echo "no" >&6; }
11035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11036 $as_echo "no" >&6; }
11038 esac
11052 # Report which library types will actually be built
11053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11054 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11056 $as_echo "$can_build_shared" >&6; }
11058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11059 $as_echo_n "checking whether to build shared libraries... " >&6; }
11060 test "$can_build_shared" = "no" && enable_shared=no
11062 # On AIX, shared libraries and static libraries use the same namespace, and
11063 # are all built from PIC.
11064 case $host_os in
11065 aix3*)
11066 test "$enable_shared" = yes && enable_static=no
11067 if test -n "$RANLIB"; then
11068 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11069 postinstall_cmds='$RANLIB $lib'
11073 aix[4-9]*)
11074 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11075 test "$enable_shared" = yes && enable_static=no
11078 esac
11079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11080 $as_echo "$enable_shared" >&6; }
11082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11083 $as_echo_n "checking whether to build static libraries... " >&6; }
11084 # Make sure either enable_shared or enable_static is yes.
11085 test "$enable_shared" = yes || enable_static=yes
11086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11087 $as_echo "$enable_static" >&6; }
11093 ac_ext=c
11094 ac_cpp='$CPP $CPPFLAGS'
11095 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11096 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11097 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11099 CC="$lt_save_CC"
11113 ac_config_commands="$ac_config_commands libtool"
11118 # Only expand once:
11122 # The tests for host and target for $enable_largefile require
11123 # canonical names.
11127 # As the $enable_largefile decision depends on --enable-plugins we must set it
11128 # even in directories otherwise not depending on the $plugins option.
11131 maybe_plugins=no
11132 for ac_header in dlfcn.h
11133 do :
11134 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
11136 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
11137 cat >>confdefs.h <<_ACEOF
11138 #define HAVE_DLFCN_H 1
11139 _ACEOF
11140 maybe_plugins=yes
11143 done
11145 for ac_header in windows.h
11146 do :
11147 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
11149 if test "x$ac_cv_header_windows_h" = xyes; then :
11150 cat >>confdefs.h <<_ACEOF
11151 #define HAVE_WINDOWS_H 1
11152 _ACEOF
11153 maybe_plugins=yes
11156 done
11159 # Check whether --enable-plugins was given.
11160 if test "${enable_plugins+set}" = set; then :
11161 enableval=$enable_plugins; case "${enableval}" in
11162 no) plugins=no ;;
11163 *) plugins=yes
11164 if test "$maybe_plugins" != "yes" ; then
11165 as_fn_error $? "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
11166 fi ;;
11167 esac
11168 else
11169 plugins=$maybe_plugins
11173 if test "$plugins" = "yes"; then
11174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
11175 $as_echo_n "checking for library containing dlsym... " >&6; }
11176 if ${ac_cv_search_dlsym+:} false; then :
11177 $as_echo_n "(cached) " >&6
11178 else
11179 ac_func_search_save_LIBS=$LIBS
11180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11181 /* end confdefs.h. */
11183 /* Override any GCC internal prototype to avoid an error.
11184 Use char because int might match the return type of a GCC
11185 builtin and then its argument prototype would still apply. */
11186 #ifdef __cplusplus
11187 extern "C"
11188 #endif
11189 char dlsym ();
11191 main ()
11193 return dlsym ();
11195 return 0;
11197 _ACEOF
11198 for ac_lib in '' dl; do
11199 if test -z "$ac_lib"; then
11200 ac_res="none required"
11201 else
11202 ac_res=-l$ac_lib
11203 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11205 if ac_fn_c_try_link "$LINENO"; then :
11206 ac_cv_search_dlsym=$ac_res
11208 rm -f core conftest.err conftest.$ac_objext \
11209 conftest$ac_exeext
11210 if ${ac_cv_search_dlsym+:} false; then :
11211 break
11213 done
11214 if ${ac_cv_search_dlsym+:} false; then :
11216 else
11217 ac_cv_search_dlsym=no
11219 rm conftest.$ac_ext
11220 LIBS=$ac_func_search_save_LIBS
11222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
11223 $as_echo "$ac_cv_search_dlsym" >&6; }
11224 ac_res=$ac_cv_search_dlsym
11225 if test "$ac_res" != no; then :
11226 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11233 case "${host}" in
11234 sparc-*-solaris*|i?86-*-solaris*)
11235 # On native 32-bit Solaris/SPARC and x86, large-file and procfs support
11236 # were mutually exclusive until Solaris 11.3. Without procfs support,
11237 # the bfd/ elf module cannot provide certain routines such as
11238 # elfcore_write_prpsinfo or elfcore_write_prstatus. So unless the user
11239 # explicitly requested large-file support through the
11240 # --enable-largefile switch, disable large-file support in favor of
11241 # procfs support.
11243 # Check if <sys/procfs.h> is incompatible with large-file support.
11244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11245 /* end confdefs.h. */
11246 #define _FILE_OFFSET_BITS 64
11247 #define _STRUCTURED_PROC 1
11248 #include <sys/procfs.h>
11250 main ()
11254 return 0;
11256 _ACEOF
11257 if ac_fn_c_try_compile "$LINENO"; then :
11258 acx_cv_procfs_lfs=yes
11259 else
11260 acx_cv_procfs_lfs=no
11262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11264 # Forcefully disable large-file support only if necessary, gdb is in
11265 # tree and enabled.
11266 if test "${target}" = "${host}" -a "$acx_cv_procfs_lfs" = no \
11267 -a -d $srcdir/../gdb -a "$enable_gdb" != no; then
11268 : ${enable_largefile="no"}
11269 if test "$plugins" = yes; then
11270 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
11271 plugin support disabled; require large-file support which is incompatible with GDB." >&5
11272 $as_echo "$as_me: WARNING:
11273 plugin support disabled; require large-file support which is incompatible with GDB." >&2;}
11274 plugins=no
11278 # Explicitly undef _FILE_OFFSET_BITS if enable_largefile=no for the
11279 # benefit of g++ 9+ which predefines it on Solaris.
11280 if test "$enable_largefile" = no; then
11281 LARGEFILE_CPPFLAGS="-U_FILE_OFFSET_BITS"
11285 esac
11287 # Check whether --enable-largefile was given.
11288 if test "${enable_largefile+set}" = set; then :
11289 enableval=$enable_largefile;
11292 if test "$enable_largefile" != no; then
11294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
11295 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
11296 if ${ac_cv_sys_largefile_CC+:} false; then :
11297 $as_echo_n "(cached) " >&6
11298 else
11299 ac_cv_sys_largefile_CC=no
11300 if test "$GCC" != yes; then
11301 ac_save_CC=$CC
11302 while :; do
11303 # IRIX 6.2 and later do not support large files by default,
11304 # so use the C compiler's -n32 option if that helps.
11305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11306 /* end confdefs.h. */
11307 #include <sys/types.h>
11308 /* Check that off_t can represent 2**63 - 1 correctly.
11309 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11310 since some C++ compilers masquerading as C compilers
11311 incorrectly reject 9223372036854775807. */
11312 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11313 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11314 && LARGE_OFF_T % 2147483647 == 1)
11315 ? 1 : -1];
11317 main ()
11321 return 0;
11323 _ACEOF
11324 if ac_fn_c_try_compile "$LINENO"; then :
11325 break
11327 rm -f core conftest.err conftest.$ac_objext
11328 CC="$CC -n32"
11329 if ac_fn_c_try_compile "$LINENO"; then :
11330 ac_cv_sys_largefile_CC=' -n32'; break
11332 rm -f core conftest.err conftest.$ac_objext
11333 break
11334 done
11335 CC=$ac_save_CC
11336 rm -f conftest.$ac_ext
11339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
11340 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
11341 if test "$ac_cv_sys_largefile_CC" != no; then
11342 CC=$CC$ac_cv_sys_largefile_CC
11345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
11346 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
11347 if ${ac_cv_sys_file_offset_bits+:} false; then :
11348 $as_echo_n "(cached) " >&6
11349 else
11350 while :; do
11351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11352 /* end confdefs.h. */
11353 #include <sys/types.h>
11354 /* Check that off_t can represent 2**63 - 1 correctly.
11355 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11356 since some C++ compilers masquerading as C compilers
11357 incorrectly reject 9223372036854775807. */
11358 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11359 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11360 && LARGE_OFF_T % 2147483647 == 1)
11361 ? 1 : -1];
11363 main ()
11367 return 0;
11369 _ACEOF
11370 if ac_fn_c_try_compile "$LINENO"; then :
11371 ac_cv_sys_file_offset_bits=no; break
11373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11375 /* end confdefs.h. */
11376 #define _FILE_OFFSET_BITS 64
11377 #include <sys/types.h>
11378 /* Check that off_t can represent 2**63 - 1 correctly.
11379 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11380 since some C++ compilers masquerading as C compilers
11381 incorrectly reject 9223372036854775807. */
11382 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11383 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11384 && LARGE_OFF_T % 2147483647 == 1)
11385 ? 1 : -1];
11387 main ()
11391 return 0;
11393 _ACEOF
11394 if ac_fn_c_try_compile "$LINENO"; then :
11395 ac_cv_sys_file_offset_bits=64; break
11397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11398 ac_cv_sys_file_offset_bits=unknown
11399 break
11400 done
11402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
11403 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
11404 case $ac_cv_sys_file_offset_bits in #(
11405 no | unknown) ;;
11407 cat >>confdefs.h <<_ACEOF
11408 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
11409 _ACEOF
11411 esac
11412 rm -rf conftest*
11413 if test $ac_cv_sys_file_offset_bits = unknown; then
11414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
11415 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
11416 if ${ac_cv_sys_large_files+:} false; then :
11417 $as_echo_n "(cached) " >&6
11418 else
11419 while :; do
11420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11421 /* end confdefs.h. */
11422 #include <sys/types.h>
11423 /* Check that off_t can represent 2**63 - 1 correctly.
11424 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11425 since some C++ compilers masquerading as C compilers
11426 incorrectly reject 9223372036854775807. */
11427 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11428 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11429 && LARGE_OFF_T % 2147483647 == 1)
11430 ? 1 : -1];
11432 main ()
11436 return 0;
11438 _ACEOF
11439 if ac_fn_c_try_compile "$LINENO"; then :
11440 ac_cv_sys_large_files=no; break
11442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11444 /* end confdefs.h. */
11445 #define _LARGE_FILES 1
11446 #include <sys/types.h>
11447 /* Check that off_t can represent 2**63 - 1 correctly.
11448 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11449 since some C++ compilers masquerading as C compilers
11450 incorrectly reject 9223372036854775807. */
11451 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11452 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11453 && LARGE_OFF_T % 2147483647 == 1)
11454 ? 1 : -1];
11456 main ()
11460 return 0;
11462 _ACEOF
11463 if ac_fn_c_try_compile "$LINENO"; then :
11464 ac_cv_sys_large_files=1; break
11466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11467 ac_cv_sys_large_files=unknown
11468 break
11469 done
11471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
11472 $as_echo "$ac_cv_sys_large_files" >&6; }
11473 case $ac_cv_sys_large_files in #(
11474 no | unknown) ;;
11476 cat >>confdefs.h <<_ACEOF
11477 #define _LARGE_FILES $ac_cv_sys_large_files
11478 _ACEOF
11480 esac
11481 rm -rf conftest*
11488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
11489 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
11490 if ${gcc_cv_prog_cmp_skip+:} false; then :
11491 $as_echo_n "(cached) " >&6
11492 else
11493 echo abfoo >t1
11494 echo cdfoo >t2
11495 gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
11496 if cmp t1 t2 2 2 > /dev/null 2>&1; then
11497 if cmp t1 t2 1 1 > /dev/null 2>&1; then
11499 else
11500 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
11503 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
11504 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
11506 else
11507 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
11510 rm t1 t2
11513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
11514 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
11515 do_compare="$gcc_cv_prog_cmp_skip"
11519 # Check whether --enable-targets was given.
11520 if test "${enable_targets+set}" = set; then :
11521 enableval=$enable_targets; case "${enableval}" in
11522 yes | "") as_fn_error $? "enable-targets option must specify target names or 'all'" "$LINENO" 5
11524 no) enable_targets= ;;
11525 *) enable_targets=$enableval ;;
11526 esac
11529 ac_checking=
11530 . ${srcdir}/../bfd/development.sh
11531 test "$development" = true && ac_checking=yes
11532 # Check whether --enable-checking was given.
11533 if test "${enable_checking+set}" = set; then :
11534 enableval=$enable_checking; case "${enableval}" in
11535 no|none) ac_checking= ;;
11536 *) ac_checking=yes ;;
11537 esac
11539 if test x$ac_checking != x ; then
11541 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
11545 # PR gas/19109
11546 # Decide the default method for compressing debug sections.
11547 ac_default_compressed_debug_sections=unset
11548 # Provide a configure time option to override our default.
11549 # Check whether --enable-compressed_debug_sections was given.
11550 if test "${enable_compressed_debug_sections+set}" = set; then :
11551 enableval=$enable_compressed_debug_sections; case ,"${enableval}", in
11552 ,yes, | ,all, | *,gas,*) ac_default_compressed_debug_sections=yes ;;
11553 ,no, | ,none,) ac_default_compressed_debug_sections=no ;;
11554 *) ac_default_compressed_debug_sections=unset ;;
11555 esac
11558 # Select default compression algorithm.
11559 ac_default_compressed_debug_sections_algorithm=COMPRESS_DEBUG_GABI_ZLIB
11560 # Check whether --enable-default_compressed_debug_sections_algorithm was given.
11561 if test "${enable_default_compressed_debug_sections_algorithm+set}" = set; then :
11562 enableval=$enable_default_compressed_debug_sections_algorithm; case "${enableval}" in
11563 zstd) ac_default_compressed_debug_sections_algorithm=COMPRESS_DEBUG_ZSTD ;;
11564 esac
11567 # PR gas/19520
11568 # Decide if x86 assembler should generate relax relocations.
11569 ac_default_x86_relax_relocations=unset
11570 # Provide a configure time option to override our default.
11571 # Check whether --enable-x86_relax_relocations was given.
11572 if test "${enable_x86_relax_relocations+set}" = set; then :
11573 enableval=$enable_x86_relax_relocations; case "${enableval}" in
11574 no) ac_default_x86_relax_relocations=0 ;;
11575 esac
11578 # Decide if ELF assembler should generate common symbols with the
11579 # STT_COMMON type.
11580 ac_default_elf_stt_common=unset
11581 # Provide a configure time option to override our default.
11582 # Check whether --enable-elf_stt_common was given.
11583 if test "${enable_elf_stt_common+set}" = set; then :
11584 enableval=$enable_elf_stt_common; case "${enableval}" in
11585 yes) ac_default_elf_stt_common=1 ;;
11586 esac
11590 # Decide if the ELF assembler should default to generating
11591 # GNU Build notes if none are provided by the input.
11592 ac_default_generate_build_notes=0
11593 # Provide a configuration option to override the default.
11594 # Check whether --enable-generate_build_notes was given.
11595 if test "${enable_generate_build_notes+set}" = set; then :
11596 enableval=$enable_generate_build_notes; case "${enableval}" in
11597 yes) ac_default_generate_build_notes=1 ;;
11598 no) ac_default_generate_build_notes=0 ;;
11599 esac
11602 # Decide if the MIPS assembler should default to enable MIPS fix Loongson3
11603 # LLSC errata.
11604 ac_default_mips_fix_loongson3_llsc=unset
11605 # Provide a configuration option to override the default.
11606 # Check whether --enable-mips-fix-loongson3-llsc was given.
11607 if test "${enable_mips_fix_loongson3_llsc+set}" = set; then :
11608 enableval=$enable_mips_fix_loongson3_llsc; case "${enableval}" in
11609 yes) ac_default_mips_fix_loongson3_llsc=1 ;;
11610 no) ac_default_mips_fix_loongson3_llsc=0 ;;
11611 esac
11614 # Decide if the x86 ELF assembler should default to generating GNU x86
11615 # used ISA and feature properties.
11616 ac_default_generate_x86_used_note=unset
11617 # Provide a configuration option to override the default.
11618 # Check whether --enable-x86-used-note was given.
11619 if test "${enable_x86_used_note+set}" = set; then :
11620 enableval=$enable_x86_used_note; case "${enableval}" in
11621 yes) ac_default_generate_x86_used_note=1 ;;
11622 no) ac_default_generate_x86_used_note=0 ;;
11623 esac
11626 # Decide if the RISC-V ELF assembler should default to generating attribute.
11627 ac_default_generate_riscv_attr=unset
11628 # Provide a configuration option to override the default.
11629 # Check whether --enable-default-riscv-attribute was given.
11630 if test "${enable_default_riscv_attribute+set}" = set; then :
11631 enableval=$enable_default_riscv_attribute; case "${enableval}" in
11632 yes) ac_default_generate_riscv_attr=1 ;;
11633 no) ac_default_generate_riscv_attr=0 ;;
11634 esac
11637 using_cgen=no
11640 # Set the 'development' global.
11641 . $srcdir/../bfd/development.sh
11643 # Set acp_cpp_for_build variable
11644 ac_cpp_for_build="$CC_FOR_BUILD -E $CPPFLAGS_FOR_BUILD"
11646 # Default set of GCC warnings to enable.
11647 GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
11648 GCC_WARN_CFLAGS_FOR_BUILD="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
11650 # Add -Wshadow if the compiler is a sufficiently recent version of GCC.
11651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11652 /* end confdefs.h. */
11653 __GNUC__
11654 _ACEOF
11655 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11656 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
11658 else
11659 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow"
11661 rm -f conftest*
11664 # Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
11665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11666 /* end confdefs.h. */
11667 __GNUC__
11668 _ACEOF
11669 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11670 $EGREP "(^[0-4]$|^__GNUC__$)" >/dev/null 2>&1; then :
11672 else
11673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11674 /* end confdefs.h. */
11675 __clang__
11676 _ACEOF
11677 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11678 $EGREP "^__clang__$" >/dev/null 2>&1; then :
11679 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wstack-usage=262144"
11681 rm -f conftest*
11684 rm -f conftest*
11687 # Set WARN_WRITE_STRINGS if the compiler supports -Wwrite-strings.
11688 WARN_WRITE_STRINGS=""
11689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11690 /* end confdefs.h. */
11691 __GNUC__
11692 _ACEOF
11693 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11694 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
11696 else
11697 WARN_WRITE_STRINGS="-Wwrite-strings"
11699 rm -f conftest*
11702 # Verify CC_FOR_BUILD to be compatible with warning flags
11704 # Add -Wshadow if the compiler is a sufficiently recent version of GCC.
11705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11706 /* end confdefs.h. */
11707 __GNUC__
11708 _ACEOF
11709 if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
11710 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
11712 else
11713 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wshadow"
11715 rm -f conftest*
11718 # Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
11719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11720 /* end confdefs.h. */
11721 __GNUC__
11722 _ACEOF
11723 if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
11724 $EGREP "(^[0-4]$|^__GNUC__$)" >/dev/null 2>&1; then :
11726 else
11727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11728 /* end confdefs.h. */
11729 __clang__
11730 _ACEOF
11731 if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
11732 $EGREP "^__clang__$" >/dev/null 2>&1; then :
11733 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wstack-usage=262144"
11735 rm -f conftest*
11738 rm -f conftest*
11741 # Check whether --enable-werror was given.
11742 if test "${enable_werror+set}" = set; then :
11743 enableval=$enable_werror; case "${enableval}" in
11744 yes | y) ERROR_ON_WARNING="yes" ;;
11745 no | n) ERROR_ON_WARNING="no" ;;
11746 *) as_fn_error $? "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
11747 esac
11751 # Disable -Wformat by default when using gcc on mingw
11752 case "${host}" in
11753 *-*-mingw32*)
11754 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
11755 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
11756 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wno-format"
11759 *) ;;
11760 esac
11762 # Enable -Werror by default when using gcc. Turn it off for releases.
11763 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" -a "$development" = true ; then
11764 ERROR_ON_WARNING=yes
11767 NO_WERROR=
11768 if test "${ERROR_ON_WARNING}" = yes ; then
11769 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
11770 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Werror"
11771 NO_WERROR="-Wno-error"
11774 if test "${GCC}" = yes ; then
11775 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
11776 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}"
11779 # Check whether --enable-build-warnings was given.
11780 if test "${enable_build_warnings+set}" = set; then :
11781 enableval=$enable_build_warnings; case "${enableval}" in
11782 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}"
11783 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}";;
11784 no) if test "${GCC}" = yes ; then
11785 WARN_CFLAGS="-w"
11786 WARN_CFLAGS_FOR_BUILD="-w"
11787 fi;;
11788 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
11789 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}"
11790 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD} ${t}";;
11791 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
11792 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}"
11793 WARN_CFLAGS_FOR_BUILD="${t} ${GCC_WARN_CFLAGS_FOR_BUILD}";;
11794 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`
11795 WARN_CFLAGS_FOR_BUILD=`echo "${enableval}" | sed -e "s/,/ /g"`;;
11796 esac
11800 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
11801 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
11810 # Generate a header file
11811 ac_config_headers="$ac_config_headers config.h:config.in"
11815 # Check whether --with-cpu was given.
11816 if test "${with_cpu+set}" = set; then :
11817 withval=$with_cpu;
11818 cat >>confdefs.h <<_ACEOF
11819 #define TARGET_WITH_CPU "${with_cpu}"
11820 _ACEOF
11825 # PR 14072
11828 # If we are on a DOS filesystem, we must use gdb.ini rather than
11829 # .gdbinit.
11830 case "${host}" in
11831 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-windows*)
11832 GDBINIT="gdb.ini"
11833 ac_config_files="$ac_config_files gdb.ini:gdbinit.in"
11837 GDBINIT=".gdbinit"
11838 ac_config_files="$ac_config_files .gdbinit:gdbinit.in"
11841 esac
11844 #We need this for the host.
11845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
11846 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
11847 if ${ac_cv_c_bigendian+:} false; then :
11848 $as_echo_n "(cached) " >&6
11849 else
11850 ac_cv_c_bigendian=unknown
11851 # See if we're dealing with a universal compiler.
11852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11853 /* end confdefs.h. */
11854 #ifndef __APPLE_CC__
11855 not a universal capable compiler
11856 #endif
11857 typedef int dummy;
11859 _ACEOF
11860 if ac_fn_c_try_compile "$LINENO"; then :
11862 # Check for potential -arch flags. It is not universal unless
11863 # there are at least two -arch flags with different values.
11864 ac_arch=
11865 ac_prev=
11866 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
11867 if test -n "$ac_prev"; then
11868 case $ac_word in
11869 i?86 | x86_64 | ppc | ppc64)
11870 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
11871 ac_arch=$ac_word
11872 else
11873 ac_cv_c_bigendian=universal
11874 break
11877 esac
11878 ac_prev=
11879 elif test "x$ac_word" = "x-arch"; then
11880 ac_prev=arch
11882 done
11884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11885 if test $ac_cv_c_bigendian = unknown; then
11886 # See if sys/param.h defines the BYTE_ORDER macro.
11887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11888 /* end confdefs.h. */
11889 #include <sys/types.h>
11890 #include <sys/param.h>
11893 main ()
11895 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
11896 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
11897 && LITTLE_ENDIAN)
11898 bogus endian macros
11899 #endif
11902 return 0;
11904 _ACEOF
11905 if ac_fn_c_try_compile "$LINENO"; then :
11906 # It does; now see whether it defined to BIG_ENDIAN or not.
11907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11908 /* end confdefs.h. */
11909 #include <sys/types.h>
11910 #include <sys/param.h>
11913 main ()
11915 #if BYTE_ORDER != BIG_ENDIAN
11916 not big endian
11917 #endif
11920 return 0;
11922 _ACEOF
11923 if ac_fn_c_try_compile "$LINENO"; then :
11924 ac_cv_c_bigendian=yes
11925 else
11926 ac_cv_c_bigendian=no
11928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11932 if test $ac_cv_c_bigendian = unknown; then
11933 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
11934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11935 /* end confdefs.h. */
11936 #include <limits.h>
11939 main ()
11941 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
11942 bogus endian macros
11943 #endif
11946 return 0;
11948 _ACEOF
11949 if ac_fn_c_try_compile "$LINENO"; then :
11950 # It does; now see whether it defined to _BIG_ENDIAN or not.
11951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11952 /* end confdefs.h. */
11953 #include <limits.h>
11956 main ()
11958 #ifndef _BIG_ENDIAN
11959 not big endian
11960 #endif
11963 return 0;
11965 _ACEOF
11966 if ac_fn_c_try_compile "$LINENO"; then :
11967 ac_cv_c_bigendian=yes
11968 else
11969 ac_cv_c_bigendian=no
11971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11975 if test $ac_cv_c_bigendian = unknown; then
11976 # Compile a test program.
11977 if test "$cross_compiling" = yes; then :
11978 # Try to guess by grepping values from an object file.
11979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11980 /* end confdefs.h. */
11981 short int ascii_mm[] =
11982 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
11983 short int ascii_ii[] =
11984 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
11985 int use_ascii (int i) {
11986 return ascii_mm[i] + ascii_ii[i];
11988 short int ebcdic_ii[] =
11989 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
11990 short int ebcdic_mm[] =
11991 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
11992 int use_ebcdic (int i) {
11993 return ebcdic_mm[i] + ebcdic_ii[i];
11995 extern int foo;
11998 main ()
12000 return use_ascii (foo) == use_ebcdic (foo);
12002 return 0;
12004 _ACEOF
12005 if ac_fn_c_try_compile "$LINENO"; then :
12006 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
12007 ac_cv_c_bigendian=yes
12009 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12010 if test "$ac_cv_c_bigendian" = unknown; then
12011 ac_cv_c_bigendian=no
12012 else
12013 # finding both strings is unlikely to happen, but who knows?
12014 ac_cv_c_bigendian=unknown
12018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12019 else
12020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12021 /* end confdefs.h. */
12022 $ac_includes_default
12024 main ()
12027 /* Are we little or big endian? From Harbison&Steele. */
12028 union
12030 long int l;
12031 char c[sizeof (long int)];
12032 } u;
12033 u.l = 1;
12034 return u.c[sizeof (long int) - 1] == 1;
12037 return 0;
12039 _ACEOF
12040 if ac_fn_c_try_run "$LINENO"; then :
12041 ac_cv_c_bigendian=no
12042 else
12043 ac_cv_c_bigendian=yes
12045 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12046 conftest.$ac_objext conftest.beam conftest.$ac_ext
12051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12052 $as_echo "$ac_cv_c_bigendian" >&6; }
12053 case $ac_cv_c_bigendian in #(
12054 yes)
12055 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
12056 ;; #(
12058 ;; #(
12059 universal)
12061 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12063 ;; #(
12065 as_fn_error $? "unknown endianness
12066 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12067 esac
12070 te_file=generic
12072 # Makefile target for installing gas in $(tooldir)/bin.
12073 install_tooldir=install-exec-tooldir
12075 canon_targets=""
12076 all_targets=no
12077 if test -n "$enable_targets" ; then
12078 for t in `echo $enable_targets | sed 's/,/ /g'`; do
12079 if test $t = "all"; then
12080 all_targets=yes
12081 continue
12083 result=`$ac_config_sub $t 2>/dev/null`
12084 if test -n "$result" ; then
12085 canon_targets="$canon_targets $result"
12086 # else
12087 # # Permit "all", etc. We don't support it yet though.
12088 # canon_targets="$canon_targets $t"
12090 done
12091 _gas_uniq_list="$canon_targets"
12092 _gas_uniq_newlist=""
12093 for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
12094 case $_gas_uniq_i in
12095 _gas_uniq_dummy) ;;
12096 *) case " $_gas_uniq_newlist " in
12097 *" $_gas_uniq_i "*) ;;
12098 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
12099 esac ;;
12100 esac
12101 done
12102 canon_targets=$_gas_uniq_newlist
12106 emulations=""
12108 for this_target in $target $canon_targets ; do
12110 targ=${this_target}
12111 . ${srcdir}/configure.tgt
12113 case ${target_cpu} in
12114 crisv32)
12116 cat >>confdefs.h <<_ACEOF
12117 #define DEFAULT_CRIS_ARCH $arch
12118 _ACEOF
12121 esac
12123 if test ${this_target} = $target ; then
12124 target_cpu_type=${cpu_type}
12125 elif test ${target_cpu_type} != ${cpu_type} ; then
12126 continue
12129 generic_target=${cpu_type}-${target_vendor}-${target_os}
12130 case ${generic_target} in
12131 i386-*-msdosdjgpp* \
12132 | i386-*-go32*)
12134 $as_echo "#define STRICTCOFF 1" >>confdefs.h
12138 i386-*-linux-* | x86_64-*-linux-*)
12139 if test ${this_target} = $target \
12140 && test ${ac_default_generate_x86_used_note} = unset; then
12141 ac_default_generate_x86_used_note=1
12145 i386-*-solaris2 \
12146 | x86_64-*-solaris2 \
12147 | i386-*-solaris2.[0-9] \
12148 | i386-*-solaris2.1[01] \
12149 | x86_64-*-solaris2.1[01])
12150 if test ${this_target} = $target \
12151 && test ${ac_default_x86_relax_relocations} = unset; then
12152 ac_default_x86_relax_relocations=0
12156 microblaze*)
12159 ppc-*-aix5.[01]*)
12161 ppc-*-aix[5-9].*)
12163 $as_echo "#define AIX_WEAK_SUPPORT 1" >>confdefs.h
12166 ppc-*-solaris*)
12167 if test ${this_target} = $target; then
12169 $as_echo "#define TARGET_SOLARIS_COMMENT 1" >>confdefs.h
12172 if test x${endian} = xbig; then
12173 as_fn_error $? "Solaris must be configured little endian" "$LINENO" 5
12176 esac
12178 if test ${this_target} = $target ; then
12179 endian_def=
12180 if test x${endian} = xbig; then
12181 endian_def=1
12182 elif test x${endian} = xlittle; then
12183 endian_def=0
12185 if test x${endian_def} != x; then
12187 cat >>confdefs.h <<_ACEOF
12188 #define TARGET_BYTES_BIG_ENDIAN $endian_def
12189 _ACEOF
12194 # Other random stuff.
12196 case ${cpu_type} in
12197 mips)
12198 # Set mips_cpu to the name of the default CPU.
12199 case ${target_cpu} in
12200 mips | mipsbe | mipseb | mipsle | mipsel | mips64 | mips64el)
12201 mips_cpu=from-abi
12203 mipsisa32 | mipsisa32el)
12204 mips_cpu=mips32
12206 mipsisa32r2 | mipsisa32r2el)
12207 mips_cpu=mips32r2
12209 mipsisa32r3 | mipsisa32r3el)
12210 mips_cpu=mips32r3
12212 mipsisa32r5 | mipsisa32r5el)
12213 mips_cpu=mips32r5
12215 mipsisa32r6 | mipsisa32r6el)
12216 mips_cpu=mips32r6
12218 mipsisa64 | mipsisa64el)
12219 mips_cpu=mips64
12221 mipsisa64r2 | mipsisa64r2el)
12222 mips_cpu=mips64r2
12224 mipsisa64r3 | mipsisa64r3el)
12225 mips_cpu=mips64r3
12227 mipsisa64r5 | mipsisa64r5el)
12228 mips_cpu=mips64r5
12230 mipsisa64r6 | mipsisa64r6el)
12231 mips_cpu=mips64r6
12233 mipstx39 | mipstx39el)
12234 mips_cpu=r3900
12236 mips64vr | mips64vrel)
12237 mips_cpu=vr4100
12239 mipsisa32r2* | mipsisa64r2*)
12240 mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..r2//' -e 's/el$//'`
12242 mipsisa32r6* | mipsisa64r6*)
12243 mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..r6//' -e 's/el$//'`
12245 mips64* | mipsisa64* | mipsisa32*)
12246 mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..//' -e 's/el$//'`
12248 mips*)
12249 mips_cpu=`echo $target_cpu | sed -e 's/^mips//' -e 's/el$//'`
12252 as_fn_error $? "$target_cpu isn't a supported MIPS CPU name" "$LINENO" 5
12254 esac
12255 # See whether it's appropriate to set EF_MIPS_ABI_O32 for o32
12256 # binaries. It's a GNU extension that some OSes don't understand.
12257 case ${target} in
12258 *-*-irix*)
12259 use_ef_mips_abi_o32=0
12262 use_ef_mips_abi_o32=1
12264 esac
12265 # If Vendor is IMG, then MIPSr6 is used
12266 case ${target} in
12267 mips*-img-*)
12268 mips_cpu=mips32r6
12270 esac
12271 # Decide whether to generate 32-bit or 64-bit code by default.
12272 # Used to resolve -march=from-abi when an embedded ABI is selected.
12273 case ${target} in
12274 mips64*-*-* | mipsisa64*-*-*)
12275 mips_default_64bit=1
12278 mips_default_64bit=0
12280 esac
12281 # Decide which ABI to target by default.
12282 case ${target} in
12283 mips64*-openbsd* | mips64*-linux-gnuabi64)
12284 mips_default_abi=N64_ABI
12286 mips64*-linux* | mips-sgi-irix6* | mips64*-freebsd* \
12287 | mips64*-kfreebsd*-gnu | mips64*-ps2-elf*)
12288 mips_default_abi=N32_ABI
12290 mips*-linux* | mips*-freebsd* | mips*-kfreebsd*-gnu)
12291 mips_default_abi=O32_ABI
12294 mips_default_abi=NO_ABI
12296 esac
12298 cat >>confdefs.h <<_ACEOF
12299 #define MIPS_CPU_STRING_DEFAULT "$mips_cpu"
12300 _ACEOF
12303 cat >>confdefs.h <<_ACEOF
12304 #define USE_EF_MIPS_ABI_O32 $use_ef_mips_abi_o32
12305 _ACEOF
12308 cat >>confdefs.h <<_ACEOF
12309 #define MIPS_DEFAULT_64BIT $mips_default_64bit
12310 _ACEOF
12313 cat >>confdefs.h <<_ACEOF
12314 #define MIPS_DEFAULT_ABI $mips_default_abi
12315 _ACEOF
12318 esac
12320 # Do we need the opcodes library?
12321 case ${cpu_type} in
12322 vax | tic30 | i386 | arm)
12326 need_opcodes=yes
12328 case "${enable_shared}" in
12329 yes) shared_opcodes=true ;;
12330 *opcodes*) shared_opcodes=true ;;
12331 *) shared_opcodes=false ;;
12332 esac
12334 esac
12336 # Any other special object files needed ?
12337 case ${cpu_type} in
12339 bfin)
12340 for f in config/bfin-parse.o config/bfin-lex-wrapper.o; do
12341 case " $extra_objects " in
12342 *" $f "*) ;;
12343 *) extra_objects="$extra_objects $f" ;;
12344 esac
12345 done
12348 bpf)
12349 if test $this_target = $target ; then
12351 cat >>confdefs.h <<_ACEOF
12352 #define DEFAULT_ARCH "${arch}"
12353 _ACEOF
12357 epiphany | fr30 | ip2k | iq2000 | lm32 | m32r | or1k)
12358 using_cgen=yes
12361 loongarch)
12362 for f in config/loongarch-parse.o config/loongarch-lex-wrapper.o; do
12363 case " $extra_objects " in
12364 *" $f "*) ;;
12365 *) extra_objects="$extra_objects $f" ;;
12366 esac
12367 done
12368 # --target=loongarch[32|64]-*-*. */
12369 if test $this_target = $target ; then
12371 cat >>confdefs.h <<_ACEOF
12372 #define DEFAULT_ARCH "${arch}"
12373 _ACEOF
12378 m32c)
12379 using_cgen=yes
12381 frv)
12382 using_cgen=yes
12384 kvx)
12385 for f in config/kvx-parse.o; do
12386 case " $extra_objects " in
12387 *" $f "*) ;;
12388 *) extra_objects="$extra_objects $f" ;;
12389 esac
12390 done
12392 m68k)
12393 f=config/m68k-parse.o
12394 case " $extra_objects " in
12395 *" $f "*) ;;
12396 *) extra_objects="$extra_objects $f" ;;
12397 esac
12400 mep)
12401 using_cgen=yes
12404 mips)
12405 for f in itbl-parse.o itbl-lex-wrapper.o itbl-ops.o; do
12406 case " $extra_objects " in
12407 *" $f "*) ;;
12408 *) extra_objects="$extra_objects $f" ;;
12409 esac
12410 done
12414 using_cgen=yes
12417 nds32)
12418 # setup NDS32_LINUX_TOOLCHAIN definition
12419 if test "linux" = $em; then
12421 $as_echo "#define NDS32_LINUX_TOOLCHAIN 1" >>confdefs.h
12423 else
12425 $as_echo "#define NDS32_LINUX_TOOLCHAIN 0" >>confdefs.h
12429 # Decide BASELINE, REDUCED_REGS, FPU_DP_EXT, FPU_SP_EXT features
12430 # based on arch_name.
12431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --with-arch" >&5
12432 $as_echo_n "checking for default configuration of --with-arch... " >&6; }
12433 if test "x${with_arch}" != x; then
12434 case ${with_arch} in
12435 v2j | v2s | v2f | v2 | v3m | v3j | v3s | v3f | v3 )
12437 cat >>confdefs.h <<_ACEOF
12438 #define NDS32_DEFAULT_ARCH_NAME "$with_arch"
12439 _ACEOF
12443 as_fn_error $? "This kind of arch name does *NOT* exist!" "$LINENO" 5
12445 esac
12447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_arch" >&5
12448 $as_echo "$with_arch" >&6; }
12450 # Decide features one by one.
12451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --enable-dx-regs" >&5
12452 $as_echo_n "checking for default configuration of --enable-dx-regs... " >&6; }
12453 if test "x${enable_dx_regs}" = xyes; then
12455 $as_echo "#define NDS32_DEFAULT_DX_REGS 1" >>confdefs.h
12457 else
12459 $as_echo "#define NDS32_DEFAULT_DX_REGS 0" >>confdefs.h
12462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_dx_regs" >&5
12463 $as_echo "$enable_dx_regs" >&6; }
12465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --enable-perf-ext" >&5
12466 $as_echo_n "checking for default configuration of --enable-perf-ext... " >&6; }
12467 if test "x${enable_perf_ext}" = xno; then
12469 $as_echo "#define NDS32_DEFAULT_PERF_EXT 0" >>confdefs.h
12471 else
12473 $as_echo "#define NDS32_DEFAULT_PERF_EXT 1" >>confdefs.h
12476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_perf_ext" >&5
12477 $as_echo "$enable_perf_ext" >&6; }
12479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --enable-perf-ext2" >&5
12480 $as_echo_n "checking for default configuration of --enable-perf-ext2... " >&6; }
12481 if test "x${enable_perf_ext2}" = xno; then
12483 $as_echo "#define NDS32_DEFAULT_PERF_EXT2 0" >>confdefs.h
12485 else
12487 $as_echo "#define NDS32_DEFAULT_PERF_EXT2 1" >>confdefs.h
12490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_perf_ext2" >&5
12491 $as_echo "$enable_perf_ext2" >&6; }
12493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --enable-string-ext" >&5
12494 $as_echo_n "checking for default configuration of --enable-string-ext... " >&6; }
12495 if test "x${enable_string_ext}" = xno; then
12497 $as_echo "#define NDS32_DEFAULT_STRING_EXT 0" >>confdefs.h
12499 else
12501 $as_echo "#define NDS32_DEFAULT_STRING_EXT 1" >>confdefs.h
12504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_string_ext" >&5
12505 $as_echo "$enable_string_ext" >&6; }
12507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --enable-audio-ext" >&5
12508 $as_echo_n "checking for default configuration of --enable-audio-ext... " >&6; }
12509 if test "x${enable_audio_ext}" = xno; then
12511 $as_echo "#define NDS32_DEFAULT_AUDIO_EXT 0" >>confdefs.h
12513 else
12515 $as_echo "#define NDS32_DEFAULT_AUDIO_EXT 1" >>confdefs.h
12518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_audio_ext" >&5
12519 $as_echo "$enable_audio_ext" >&6; }
12521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --enable-dsp-ext" >&5
12522 $as_echo_n "checking for default configuration of --enable-dsp-ext... " >&6; }
12523 if test "x${enable_dsp_ext}" = xno; then
12525 $as_echo "#define NDS32_DEFAULT_DSP_EXT 0" >>confdefs.h
12527 else
12529 $as_echo "#define NDS32_DEFAULT_DSP_EXT 1" >>confdefs.h
12532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_dsp_ext" >&5
12533 $as_echo "$enable_dsp_ext" >&6; }
12535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --enable-zol-ext" >&5
12536 $as_echo_n "checking for default configuration of --enable-zol-ext... " >&6; }
12537 if test "x${enable_zol_ext}" = xno; then
12539 $as_echo "#define NDS32_DEFAULT_ZOL_EXT 0" >>confdefs.h
12541 else
12543 $as_echo "#define NDS32_DEFAULT_ZOL_EXT 1" >>confdefs.h
12546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_zol_ext" >&5
12547 $as_echo "$enable_zol_ext" >&6; }
12550 aarch64 | i386 | s390 | sparc)
12551 if test $this_target = $target ; then
12553 cat >>confdefs.h <<_ACEOF
12554 #define DEFAULT_ARCH "${arch}"
12555 _ACEOF
12560 riscv)
12561 # --target=riscv[32|64]-*-*. */
12562 if test $this_target = $target ; then
12564 cat >>confdefs.h <<_ACEOF
12565 #define DEFAULT_ARCH "${arch}"
12566 _ACEOF
12570 # --with-arch=<value>. The syntax of <value> is same as Gas option -march.
12571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --with-arch" >&5
12572 $as_echo_n "checking for default configuration of --with-arch... " >&6; }
12573 if test "x${with_arch}" != x; then
12575 cat >>confdefs.h <<_ACEOF
12576 #define DEFAULT_RISCV_ARCH_WITH_EXT "$with_arch"
12577 _ACEOF
12580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_arch" >&5
12581 $as_echo "$with_arch" >&6; }
12583 # --with-isa-spec=[2.2|20190608|20191213].
12584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --with-isa-spec" >&5
12585 $as_echo_n "checking for default configuration of --with-isa-spec... " >&6; }
12586 if test "x${with_isa_spec}" != x; then
12588 cat >>confdefs.h <<_ACEOF
12589 #define DEFAULT_RISCV_ISA_SPEC "$with_isa_spec"
12590 _ACEOF
12593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_isa_spec" >&5
12594 $as_echo "$with_isa_spec" >&6; }
12596 # --with-priv-spec=[1.9.1|1.10|1.11|1.12].
12597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --with-priv-spec" >&5
12598 $as_echo_n "checking for default configuration of --with-priv-spec... " >&6; }
12599 if test "x${with_priv_spec}" != x; then
12601 cat >>confdefs.h <<_ACEOF
12602 #define DEFAULT_RISCV_PRIV_SPEC "$with_priv_spec"
12603 _ACEOF
12606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_priv_spec" >&5
12607 $as_echo "$with_priv_spec" >&6; }
12610 rl78)
12611 f=config/rl78-parse.o
12612 case " $extra_objects " in
12613 *" $f "*) ;;
12614 *) extra_objects="$extra_objects $f" ;;
12615 esac
12619 f=config/rx-parse.o
12620 case " $extra_objects " in
12621 *" $f "*) ;;
12622 *) extra_objects="$extra_objects $f" ;;
12623 esac
12626 xstormy16)
12627 using_cgen=yes
12630 xtensa)
12631 f=config/xtensa-relax.o
12632 case " $extra_objects " in
12633 *" $f "*) ;;
12634 *) extra_objects="$extra_objects $f" ;;
12635 esac
12640 esac
12642 if test $using_cgen = yes ; then
12643 f=cgen.o
12644 case " $extra_objects " in
12645 *" $f "*) ;;
12646 *) extra_objects="$extra_objects $f" ;;
12647 esac
12650 # See if we really can support this configuration with the emulation code.
12652 if test $this_target = $target ; then
12653 obj_format=$fmt
12654 te_file=$em
12657 case ${te_file} in
12658 vms)
12659 f=config/te-vms.o
12660 case " $extra_objects " in
12661 *" $f "*) ;;
12662 *) extra_objects="$extra_objects $f" ;;
12663 esac ;;
12664 esac
12666 # From target name and format, produce a list of supported emulations.
12668 case ${generic_target}-${fmt} in
12669 mips-*-*-*) case "$endian" in
12670 big) emulation="mipsbelf mipslelf mipself" ;;
12671 *) emulation="mipslelf mipsbelf mipself" ;;
12672 esac ;;
12673 # i386-pc-pe-coff != i386-pc-coff.
12674 i386-*-pe-coff) ;;
12675 # Uncommenting the next line will turn on support for i386 AOUT
12676 # for the default linux configuration
12677 # i386-*-linux*-elf) emulation="i386elf i386aout" ;;
12679 i386-*-aout) emulation="i386aout" ;;
12680 i386-*-coff) emulation="i386coff" ;;
12681 i386-*-elf) emulation="i386elf" ;;
12683 # Always all formats. The first stated emulation becomes the default.
12684 cris-*-*aout*) emulation="crisaout criself" ;;
12685 cris-*-*) emulation="criself crisaout" ;;
12686 esac
12688 emulations="$emulations $emulation"
12690 done
12692 if test ${ac_default_x86_relax_relocations} = unset; then
12693 ac_default_x86_relax_relocations=1
12696 cat >>confdefs.h <<_ACEOF
12697 #define DEFAULT_GENERATE_X86_RELAX_RELOCATIONS $ac_default_x86_relax_relocations
12698 _ACEOF
12701 if test ${ac_default_elf_stt_common} = unset; then
12702 ac_default_elf_stt_common=0
12705 cat >>confdefs.h <<_ACEOF
12706 #define DEFAULT_GENERATE_ELF_STT_COMMON $ac_default_elf_stt_common
12707 _ACEOF
12711 cat >>confdefs.h <<_ACEOF
12712 #define DEFAULT_GENERATE_BUILD_NOTES $ac_default_generate_build_notes
12713 _ACEOF
12716 if test ${ac_default_generate_x86_used_note} = unset; then
12717 ac_default_generate_x86_used_note=0
12720 cat >>confdefs.h <<_ACEOF
12721 #define DEFAULT_X86_USED_NOTE $ac_default_generate_x86_used_note
12722 _ACEOF
12725 if test ${ac_default_generate_riscv_attr} = unset; then
12726 ac_default_generate_riscv_attr=1
12730 cat >>confdefs.h <<_ACEOF
12731 #define DEFAULT_RISCV_ATTR $ac_default_generate_riscv_attr
12732 _ACEOF
12735 if test ${ac_default_mips_fix_loongson3_llsc} = unset; then
12736 ac_default_mips_fix_loongson3_llsc=0
12739 cat >>confdefs.h <<_ACEOF
12740 #define DEFAULT_MIPS_FIX_LOONGSON3_LLSC $ac_default_mips_fix_loongson3_llsc
12741 _ACEOF
12744 if test x$ac_default_compressed_debug_sections = xyes ; then
12746 $as_echo "#define DEFAULT_FLAG_COMPRESS_DEBUG 1" >>confdefs.h
12751 cat >>confdefs.h <<_ACEOF
12752 #define DEFAULT_COMPRESSED_DEBUG_ALGORITHM $ac_default_compressed_debug_sections_algorithm
12753 _ACEOF
12756 # Turn on all targets if possible
12757 if test ${all_targets} = "yes"; then
12758 case ${target_cpu_type} in
12759 i386)
12760 case ${obj_format} in
12761 aout)
12762 emulations="$emulations i386coff i386elf"
12764 coff)
12765 emulations="$emulations i386aout i386elf"
12767 elf)
12768 emulations="$emulations i386aout i386coff"
12770 esac
12772 x86_64)
12773 case ${obj_format} in
12774 aout)
12775 emulations="$emulations i386coff i386elf"
12777 coff)
12778 emulations="$emulations i386aout i386elf"
12780 elf)
12781 emulations="$emulations i386aout i386coff"
12783 esac
12785 esac
12788 # PE code has way too many macros tweaking behaviour
12789 case ${te_file} in
12790 pe*) emulations="" ;;
12791 esac
12793 # Assign floating point type. Most processors with FP support
12794 # IEEE FP. On those that don't support FP at all, usually IEEE
12795 # is emulated.
12796 case ${target_cpu} in
12797 vax | pdp11 ) atof=vax ;;
12798 *) atof=ieee ;;
12799 esac
12801 case "${obj_format}" in
12802 "") as_fn_error $? "GAS does not know what format to use for target ${target}" "$LINENO" 5 ;;
12803 esac
12805 # Unfortunately the cpu in cpu-opc.h file isn't always $(TARGET_CPU).
12806 cgen_cpu_prefix=""
12807 if test $using_cgen = yes ; then
12808 case ${target_cpu} in
12809 or1knd)
12810 cgen_cpu_prefix=or1k ;;
12811 *) cgen_cpu_prefix=${target_cpu} ;;
12812 esac
12815 $as_echo "#define USING_CGEN 1" >>confdefs.h
12820 if test ! -r ${srcdir}/config/tc-${target_cpu_type}.c; then
12821 as_fn_error $? "GAS does not support target CPU ${target_cpu_type}" "$LINENO" 5
12824 if test ! -r ${srcdir}/config/obj-${obj_format}.c; then
12825 as_fn_error $? "GAS does not have support for object file format ${obj_format}" "$LINENO" 5
12828 # Some COFF configurations want these random other flags set.
12829 case ${obj_format} in
12830 coff)
12831 case ${target_cpu_type} in
12832 i386)
12833 $as_echo "#define I386COFF 1" >>confdefs.h
12835 x86_64)
12836 $as_echo "#define I386COFF 1" >>confdefs.h
12838 esac
12840 esac
12842 # Getting this done right is going to be a bitch. Each configuration specified
12843 # with --enable-targets=... should be checked for environment, format, cpu
12844 # setting.
12846 # For each configuration, the necessary object file support code must be linked
12847 # in. This might be only one, it might be up to four. The necessary emulation
12848 # code needs to be provided, too.
12850 # And then there's "--enable-targets=all"....
12852 # For now, just always do it for MIPS ELF configurations. Sigh.
12854 formats="${obj_format}"
12855 emfiles=""
12856 EMULATIONS=""
12857 _gas_uniq_list="$emulations"
12858 _gas_uniq_newlist=""
12859 for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
12860 case $_gas_uniq_i in
12861 _gas_uniq_dummy) ;;
12862 *) case " $_gas_uniq_newlist " in
12863 *" $_gas_uniq_i "*) ;;
12864 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
12865 esac ;;
12866 esac
12867 done
12868 emulations=$_gas_uniq_newlist
12870 for em in . $emulations ; do
12871 case $em in
12872 .) continue ;;
12873 mipsbelf | mipslelf | mipself)
12874 fmt=elf file=mipself ;;
12875 *coff)
12876 fmt=coff file=$em ;;
12877 *aout)
12878 fmt=aout file=$em ;;
12879 *elf)
12880 fmt=elf file=$em ;;
12881 esac
12882 formats="$formats $fmt"
12883 emfiles="$emfiles config/e-$file.o"
12884 EMULATIONS="$EMULATIONS &$em,"
12885 done
12886 _gas_uniq_list="$formats"
12887 _gas_uniq_newlist=""
12888 for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
12889 case $_gas_uniq_i in
12890 _gas_uniq_dummy) ;;
12891 *) case " $_gas_uniq_newlist " in
12892 *" $_gas_uniq_i "*) ;;
12893 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
12894 esac ;;
12895 esac
12896 done
12897 formats=$_gas_uniq_newlist
12899 _gas_uniq_list="$emfiles"
12900 _gas_uniq_newlist=""
12901 for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
12902 case $_gas_uniq_i in
12903 _gas_uniq_dummy) ;;
12904 *) case " $_gas_uniq_newlist " in
12905 *" $_gas_uniq_i "*) ;;
12906 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
12907 esac ;;
12908 esac
12909 done
12910 emfiles=$_gas_uniq_newlist
12912 if test `set . $formats ; shift ; echo $#` -gt 1 ; then
12913 for fmt in $formats ; do
12914 case $fmt in
12915 aout)
12916 $as_echo "#define OBJ_MAYBE_AOUT 1" >>confdefs.h
12918 coff)
12919 $as_echo "#define OBJ_MAYBE_COFF 1" >>confdefs.h
12921 ecoff)
12922 $as_echo "#define OBJ_MAYBE_ECOFF 1" >>confdefs.h
12924 elf)
12925 $as_echo "#define OBJ_MAYBE_ELF 1" >>confdefs.h
12927 generic)
12928 $as_echo "#define OBJ_MAYBE_GENERIC 1" >>confdefs.h
12930 som)
12931 $as_echo "#define OBJ_MAYBE_SOM 1" >>confdefs.h
12933 esac
12934 extra_objects="$extra_objects config/obj-$fmt.o"
12935 done
12936 obj_format=multi
12938 if test `set . $emfiles ; shift ; echo $#` -gt 0 ; then
12939 DEFAULT_EMULATION=`set . $emulations ; echo $2`
12940 # e-mipself has more than one emulation per file, e-i386* has just one at the
12941 # moment. If only one emulation is specified, then don't define
12942 # USE_EMULATIONS or include any of the e-files as they will only be bloat.
12943 case "${obj_format}${emfiles}" in
12944 multi* | *mipself*)
12945 extra_objects="$extra_objects $emfiles"
12947 $as_echo "#define USE_EMULATIONS 1" >>confdefs.h
12949 esac
12953 cat >>confdefs.h <<_ACEOF
12954 #define EMULATIONS $EMULATIONS
12955 _ACEOF
12958 cat >>confdefs.h <<_ACEOF
12959 #define DEFAULT_EMULATION "$DEFAULT_EMULATION"
12960 _ACEOF
12963 reject_dev_configs=yes
12965 case ${reject_dev_configs}-${dev} in
12966 yes-yes) # Oops.
12967 as_fn_error $? "GAS does not support the ${generic_target} configuration." "$LINENO" 5
12969 esac
12977 # do we need the opcodes library?
12978 case "${need_opcodes}" in
12979 yes)
12980 OPCODES_LIB=../opcodes/libopcodes.la
12982 esac
12987 cat >>confdefs.h <<_ACEOF
12988 #define TARGET_ALIAS "${target_alias}"
12989 _ACEOF
12992 cat >>confdefs.h <<_ACEOF
12993 #define TARGET_CANONICAL "${target}"
12994 _ACEOF
12997 cat >>confdefs.h <<_ACEOF
12998 #define TARGET_CPU "${target_cpu}"
12999 _ACEOF
13002 cat >>confdefs.h <<_ACEOF
13003 #define TARGET_VENDOR "${target_vendor}"
13004 _ACEOF
13007 cat >>confdefs.h <<_ACEOF
13008 #define TARGET_OS "${target_os}"
13009 _ACEOF
13012 for ac_prog in 'bison -y' byacc
13014 # Extract the first word of "$ac_prog", so it can be a program name with args.
13015 set dummy $ac_prog; ac_word=$2
13016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13017 $as_echo_n "checking for $ac_word... " >&6; }
13018 if ${ac_cv_prog_YACC+:} false; then :
13019 $as_echo_n "(cached) " >&6
13020 else
13021 if test -n "$YACC"; then
13022 ac_cv_prog_YACC="$YACC" # Let the user override the test.
13023 else
13024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13025 for as_dir in $PATH
13027 IFS=$as_save_IFS
13028 test -z "$as_dir" && as_dir=.
13029 for ac_exec_ext in '' $ac_executable_extensions; do
13030 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13031 ac_cv_prog_YACC="$ac_prog"
13032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13033 break 2
13035 done
13036 done
13037 IFS=$as_save_IFS
13041 YACC=$ac_cv_prog_YACC
13042 if test -n "$YACC"; then
13043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
13044 $as_echo "$YACC" >&6; }
13045 else
13046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13047 $as_echo "no" >&6; }
13051 test -n "$YACC" && break
13052 done
13053 test -n "$YACC" || YACC="yacc"
13055 for ac_prog in flex lex
13057 # Extract the first word of "$ac_prog", so it can be a program name with args.
13058 set dummy $ac_prog; ac_word=$2
13059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13060 $as_echo_n "checking for $ac_word... " >&6; }
13061 if ${ac_cv_prog_LEX+:} false; then :
13062 $as_echo_n "(cached) " >&6
13063 else
13064 if test -n "$LEX"; then
13065 ac_cv_prog_LEX="$LEX" # Let the user override the test.
13066 else
13067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13068 for as_dir in $PATH
13070 IFS=$as_save_IFS
13071 test -z "$as_dir" && as_dir=.
13072 for ac_exec_ext in '' $ac_executable_extensions; do
13073 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13074 ac_cv_prog_LEX="$ac_prog"
13075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13076 break 2
13078 done
13079 done
13080 IFS=$as_save_IFS
13084 LEX=$ac_cv_prog_LEX
13085 if test -n "$LEX"; then
13086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
13087 $as_echo "$LEX" >&6; }
13088 else
13089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13090 $as_echo "no" >&6; }
13094 test -n "$LEX" && break
13095 done
13096 test -n "$LEX" || LEX=":"
13098 case "$LEX" in
13099 :|*"missing "*) ;;
13100 *) cat >conftest.l <<_ACEOF
13102 a { ECHO; }
13103 b { REJECT; }
13104 c { yymore (); }
13105 d { yyless (1); }
13106 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
13107 yyless ((input () != 0)); }
13108 f { unput (yytext[0]); }
13109 . { BEGIN INITIAL; }
13111 #ifdef YYTEXT_POINTER
13112 extern char *yytext;
13113 #endif
13115 main (void)
13117 return ! yylex () + ! yywrap ();
13119 _ACEOF
13120 { { ac_try="$LEX conftest.l"
13121 case "(($ac_try" in
13122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13123 *) ac_try_echo=$ac_try;;
13124 esac
13125 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13126 $as_echo "$ac_try_echo"; } >&5
13127 (eval "$LEX conftest.l") 2>&5
13128 ac_status=$?
13129 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13130 test $ac_status = 0; }
13131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
13132 $as_echo_n "checking lex output file root... " >&6; }
13133 if ${ac_cv_prog_lex_root+:} false; then :
13134 $as_echo_n "(cached) " >&6
13135 else
13137 if test -f lex.yy.c; then
13138 ac_cv_prog_lex_root=lex.yy
13139 elif test -f lexyy.c; then
13140 ac_cv_prog_lex_root=lexyy
13141 else
13142 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
13145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
13146 $as_echo "$ac_cv_prog_lex_root" >&6; }
13147 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
13149 if test -z "${LEXLIB+set}"; then
13150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
13151 $as_echo_n "checking lex library... " >&6; }
13152 if ${ac_cv_lib_lex+:} false; then :
13153 $as_echo_n "(cached) " >&6
13154 else
13156 ac_save_LIBS=$LIBS
13157 ac_cv_lib_lex='none needed'
13158 for ac_lib in '' -lfl -ll; do
13159 LIBS="$ac_lib $ac_save_LIBS"
13160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13161 /* end confdefs.h. */
13162 `cat $LEX_OUTPUT_ROOT.c`
13163 _ACEOF
13164 if ac_fn_c_try_link "$LINENO"; then :
13165 ac_cv_lib_lex=$ac_lib
13167 rm -f core conftest.err conftest.$ac_objext \
13168 conftest$ac_exeext conftest.$ac_ext
13169 test "$ac_cv_lib_lex" != 'none needed' && break
13170 done
13171 LIBS=$ac_save_LIBS
13174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
13175 $as_echo "$ac_cv_lib_lex" >&6; }
13176 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
13180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
13181 $as_echo_n "checking whether yytext is a pointer... " >&6; }
13182 if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
13183 $as_echo_n "(cached) " >&6
13184 else
13185 # POSIX says lex can declare yytext either as a pointer or an array; the
13186 # default is implementation-dependent. Figure out which it is, since
13187 # not all implementations provide the %pointer and %array declarations.
13188 ac_cv_prog_lex_yytext_pointer=no
13189 ac_save_LIBS=$LIBS
13190 LIBS="$LEXLIB $ac_save_LIBS"
13191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13192 /* end confdefs.h. */
13194 #define YYTEXT_POINTER 1
13195 `cat $LEX_OUTPUT_ROOT.c`
13196 _ACEOF
13197 if ac_fn_c_try_link "$LINENO"; then :
13198 ac_cv_prog_lex_yytext_pointer=yes
13200 rm -f core conftest.err conftest.$ac_objext \
13201 conftest$ac_exeext conftest.$ac_ext
13202 LIBS=$ac_save_LIBS
13205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
13206 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
13207 if test $ac_cv_prog_lex_yytext_pointer = yes; then
13209 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
13212 rm -f conftest.l $LEX_OUTPUT_ROOT.c
13214 esac
13215 if test "$LEX" = :; then
13216 LEX=${am_missing_run}flex
13219 ALL_LINGUAS="es fi fr id ja ru rw sv tr uk zh_CN"
13221 MKINSTALLDIRS=
13222 if test -n "$ac_aux_dir"; then
13223 case "$ac_aux_dir" in
13224 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
13225 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
13226 esac
13228 if test -z "$MKINSTALLDIRS"; then
13229 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
13234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
13235 $as_echo_n "checking whether NLS is requested... " >&6; }
13236 # Check whether --enable-nls was given.
13237 if test "${enable_nls+set}" = set; then :
13238 enableval=$enable_nls; USE_NLS=$enableval
13239 else
13240 USE_NLS=yes
13243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
13244 $as_echo "$USE_NLS" >&6; }
13251 # Prepare PATH_SEPARATOR.
13252 # The user is always right.
13253 if test "${PATH_SEPARATOR+set}" != set; then
13254 echo "#! /bin/sh" >conf$$.sh
13255 echo "exit 0" >>conf$$.sh
13256 chmod +x conf$$.sh
13257 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13258 PATH_SEPARATOR=';'
13259 else
13260 PATH_SEPARATOR=:
13262 rm -f conf$$.sh
13265 # Find out how to test for executable files. Don't use a zero-byte file,
13266 # as systems may use methods other than mode bits to determine executability.
13267 cat >conf$$.file <<_ASEOF
13268 #! /bin/sh
13269 exit 0
13270 _ASEOF
13271 chmod +x conf$$.file
13272 if test -x conf$$.file >/dev/null 2>&1; then
13273 ac_executable_p="test -x"
13274 else
13275 ac_executable_p="test -f"
13277 rm -f conf$$.file
13279 # Extract the first word of "msgfmt", so it can be a program name with args.
13280 set dummy msgfmt; ac_word=$2
13281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13282 $as_echo_n "checking for $ac_word... " >&6; }
13283 if ${ac_cv_path_MSGFMT+:} false; then :
13284 $as_echo_n "(cached) " >&6
13285 else
13286 case "$MSGFMT" in
13287 [\\/]* | ?:[\\/]*)
13288 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
13291 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13292 for ac_dir in $PATH; do
13293 IFS="$ac_save_IFS"
13294 test -z "$ac_dir" && ac_dir=.
13295 for ac_exec_ext in '' $ac_executable_extensions; do
13296 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13297 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
13298 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
13299 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
13300 break 2
13303 done
13304 done
13305 IFS="$ac_save_IFS"
13306 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
13308 esac
13310 MSGFMT="$ac_cv_path_MSGFMT"
13311 if test "$MSGFMT" != ":"; then
13312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
13313 $as_echo "$MSGFMT" >&6; }
13314 else
13315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13316 $as_echo "no" >&6; }
13319 # Extract the first word of "gmsgfmt", so it can be a program name with args.
13320 set dummy gmsgfmt; ac_word=$2
13321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13322 $as_echo_n "checking for $ac_word... " >&6; }
13323 if ${ac_cv_path_GMSGFMT+:} false; then :
13324 $as_echo_n "(cached) " >&6
13325 else
13326 case $GMSGFMT in
13327 [\\/]* | ?:[\\/]*)
13328 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
13331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13332 for as_dir in $PATH
13334 IFS=$as_save_IFS
13335 test -z "$as_dir" && as_dir=.
13336 for ac_exec_ext in '' $ac_executable_extensions; do
13337 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13338 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
13339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13340 break 2
13342 done
13343 done
13344 IFS=$as_save_IFS
13346 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
13348 esac
13350 GMSGFMT=$ac_cv_path_GMSGFMT
13351 if test -n "$GMSGFMT"; then
13352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
13353 $as_echo "$GMSGFMT" >&6; }
13354 else
13355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13356 $as_echo "no" >&6; }
13362 # Prepare PATH_SEPARATOR.
13363 # The user is always right.
13364 if test "${PATH_SEPARATOR+set}" != set; then
13365 echo "#! /bin/sh" >conf$$.sh
13366 echo "exit 0" >>conf$$.sh
13367 chmod +x conf$$.sh
13368 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13369 PATH_SEPARATOR=';'
13370 else
13371 PATH_SEPARATOR=:
13373 rm -f conf$$.sh
13376 # Find out how to test for executable files. Don't use a zero-byte file,
13377 # as systems may use methods other than mode bits to determine executability.
13378 cat >conf$$.file <<_ASEOF
13379 #! /bin/sh
13380 exit 0
13381 _ASEOF
13382 chmod +x conf$$.file
13383 if test -x conf$$.file >/dev/null 2>&1; then
13384 ac_executable_p="test -x"
13385 else
13386 ac_executable_p="test -f"
13388 rm -f conf$$.file
13390 # Extract the first word of "xgettext", so it can be a program name with args.
13391 set dummy xgettext; ac_word=$2
13392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13393 $as_echo_n "checking for $ac_word... " >&6; }
13394 if ${ac_cv_path_XGETTEXT+:} false; then :
13395 $as_echo_n "(cached) " >&6
13396 else
13397 case "$XGETTEXT" in
13398 [\\/]* | ?:[\\/]*)
13399 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
13402 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13403 for ac_dir in $PATH; do
13404 IFS="$ac_save_IFS"
13405 test -z "$ac_dir" && ac_dir=.
13406 for ac_exec_ext in '' $ac_executable_extensions; do
13407 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13408 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
13409 (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
13410 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
13411 break 2
13414 done
13415 done
13416 IFS="$ac_save_IFS"
13417 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
13419 esac
13421 XGETTEXT="$ac_cv_path_XGETTEXT"
13422 if test "$XGETTEXT" != ":"; then
13423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
13424 $as_echo "$XGETTEXT" >&6; }
13425 else
13426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13427 $as_echo "no" >&6; }
13430 rm -f messages.po
13433 # Prepare PATH_SEPARATOR.
13434 # The user is always right.
13435 if test "${PATH_SEPARATOR+set}" != set; then
13436 echo "#! /bin/sh" >conf$$.sh
13437 echo "exit 0" >>conf$$.sh
13438 chmod +x conf$$.sh
13439 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13440 PATH_SEPARATOR=';'
13441 else
13442 PATH_SEPARATOR=:
13444 rm -f conf$$.sh
13447 # Find out how to test for executable files. Don't use a zero-byte file,
13448 # as systems may use methods other than mode bits to determine executability.
13449 cat >conf$$.file <<_ASEOF
13450 #! /bin/sh
13451 exit 0
13452 _ASEOF
13453 chmod +x conf$$.file
13454 if test -x conf$$.file >/dev/null 2>&1; then
13455 ac_executable_p="test -x"
13456 else
13457 ac_executable_p="test -f"
13459 rm -f conf$$.file
13461 # Extract the first word of "msgmerge", so it can be a program name with args.
13462 set dummy msgmerge; ac_word=$2
13463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13464 $as_echo_n "checking for $ac_word... " >&6; }
13465 if ${ac_cv_path_MSGMERGE+:} false; then :
13466 $as_echo_n "(cached) " >&6
13467 else
13468 case "$MSGMERGE" in
13469 [\\/]* | ?:[\\/]*)
13470 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
13473 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13474 for ac_dir in $PATH; do
13475 IFS="$ac_save_IFS"
13476 test -z "$ac_dir" && ac_dir=.
13477 for ac_exec_ext in '' $ac_executable_extensions; do
13478 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13479 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
13480 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
13481 break 2
13484 done
13485 done
13486 IFS="$ac_save_IFS"
13487 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
13489 esac
13491 MSGMERGE="$ac_cv_path_MSGMERGE"
13492 if test "$MSGMERGE" != ":"; then
13493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
13494 $as_echo "$MSGMERGE" >&6; }
13495 else
13496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13497 $as_echo "no" >&6; }
13501 if test "$GMSGFMT" != ":"; then
13502 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
13503 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
13505 else
13506 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
13507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
13508 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
13509 GMSGFMT=":"
13513 if test "$XGETTEXT" != ":"; then
13514 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
13515 (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
13517 else
13518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
13519 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
13520 XGETTEXT=":"
13522 rm -f messages.po
13525 ac_config_commands="$ac_config_commands default-1"
13529 if test "X$prefix" = "XNONE"; then
13530 acl_final_prefix="$ac_default_prefix"
13531 else
13532 acl_final_prefix="$prefix"
13534 if test "X$exec_prefix" = "XNONE"; then
13535 acl_final_exec_prefix='${prefix}'
13536 else
13537 acl_final_exec_prefix="$exec_prefix"
13539 acl_save_prefix="$prefix"
13540 prefix="$acl_final_prefix"
13541 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
13542 prefix="$acl_save_prefix"
13545 # Check whether --with-gnu-ld was given.
13546 if test "${with_gnu_ld+set}" = set; then :
13547 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13548 else
13549 with_gnu_ld=no
13552 # Prepare PATH_SEPARATOR.
13553 # The user is always right.
13554 if test "${PATH_SEPARATOR+set}" != set; then
13555 echo "#! /bin/sh" >conf$$.sh
13556 echo "exit 0" >>conf$$.sh
13557 chmod +x conf$$.sh
13558 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13559 PATH_SEPARATOR=';'
13560 else
13561 PATH_SEPARATOR=:
13563 rm -f conf$$.sh
13565 ac_prog=ld
13566 if test "$GCC" = yes; then
13567 # Check if gcc -print-prog-name=ld gives a path.
13568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
13569 $as_echo_n "checking for ld used by GCC... " >&6; }
13570 case $host in
13571 *-*-mingw*)
13572 # gcc leaves a trailing carriage return which upsets mingw
13573 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13575 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13576 esac
13577 case $ac_prog in
13578 # Accept absolute paths.
13579 [\\/]* | [A-Za-z]:[\\/]*)
13580 re_direlt='/[^/][^/]*/\.\./'
13581 # Canonicalize the path of ld
13582 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
13583 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
13584 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
13585 done
13586 test -z "$LD" && LD="$ac_prog"
13589 # If it fails, then pretend we aren't using GCC.
13590 ac_prog=ld
13593 # If it is relative, then search for the first ld in PATH.
13594 with_gnu_ld=unknown
13596 esac
13597 elif test "$with_gnu_ld" = yes; then
13598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13599 $as_echo_n "checking for GNU ld... " >&6; }
13600 else
13601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13602 $as_echo_n "checking for non-GNU ld... " >&6; }
13604 if ${acl_cv_path_LD+:} false; then :
13605 $as_echo_n "(cached) " >&6
13606 else
13607 if test -z "$LD"; then
13608 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
13609 for ac_dir in $PATH; do
13610 test -z "$ac_dir" && ac_dir=.
13611 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13612 acl_cv_path_LD="$ac_dir/$ac_prog"
13613 # Check to see if the program is GNU ld. I'd rather use --version,
13614 # but apparently some GNU ld's only accept -v.
13615 # Break only if it was the GNU/non-GNU ld that we prefer.
13616 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | $EGREP '(GNU|with BFD)' > /dev/null; then
13617 test "$with_gnu_ld" != no && break
13618 else
13619 test "$with_gnu_ld" != yes && break
13622 done
13623 IFS="$ac_save_ifs"
13624 else
13625 acl_cv_path_LD="$LD" # Let the user override the test with a path.
13629 LD="$acl_cv_path_LD"
13630 if test -n "$LD"; then
13631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13632 $as_echo "$LD" >&6; }
13633 else
13634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13635 $as_echo "no" >&6; }
13637 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13639 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13640 if ${acl_cv_prog_gnu_ld+:} false; then :
13641 $as_echo_n "(cached) " >&6
13642 else
13643 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
13644 if $LD -v 2>&1 </dev/null | $EGREP '(GNU|with BFD)' 1>&5; then
13645 acl_cv_prog_gnu_ld=yes
13646 else
13647 acl_cv_prog_gnu_ld=no
13650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
13651 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
13652 with_gnu_ld=$acl_cv_prog_gnu_ld
13656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
13657 $as_echo_n "checking for shared library run path origin... " >&6; }
13658 if ${acl_cv_rpath+:} false; then :
13659 $as_echo_n "(cached) " >&6
13660 else
13662 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
13663 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
13664 . ./conftest.sh
13665 rm -f ./conftest.sh
13666 acl_cv_rpath=done
13669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
13670 $as_echo "$acl_cv_rpath" >&6; }
13671 wl="$acl_cv_wl"
13672 libext="$acl_cv_libext"
13673 shlibext="$acl_cv_shlibext"
13674 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
13675 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
13676 hardcode_direct="$acl_cv_hardcode_direct"
13677 hardcode_minus_L="$acl_cv_hardcode_minus_L"
13678 # Check whether --enable-rpath was given.
13679 if test "${enable_rpath+set}" = set; then :
13680 enableval=$enable_rpath; :
13681 else
13682 enable_rpath=yes
13692 use_additional=yes
13694 acl_save_prefix="$prefix"
13695 prefix="$acl_final_prefix"
13696 acl_save_exec_prefix="$exec_prefix"
13697 exec_prefix="$acl_final_exec_prefix"
13699 eval additional_includedir=\"$includedir\"
13700 eval additional_libdir=\"$libdir\"
13702 exec_prefix="$acl_save_exec_prefix"
13703 prefix="$acl_save_prefix"
13706 # Check whether --with-libiconv-prefix was given.
13707 if test "${with_libiconv_prefix+set}" = set; then :
13708 withval=$with_libiconv_prefix;
13709 if test "X$withval" = "Xno"; then
13710 use_additional=no
13711 else
13712 if test "X$withval" = "X"; then
13714 acl_save_prefix="$prefix"
13715 prefix="$acl_final_prefix"
13716 acl_save_exec_prefix="$exec_prefix"
13717 exec_prefix="$acl_final_exec_prefix"
13719 eval additional_includedir=\"$includedir\"
13720 eval additional_libdir=\"$libdir\"
13722 exec_prefix="$acl_save_exec_prefix"
13723 prefix="$acl_save_prefix"
13725 else
13726 additional_includedir="$withval/include"
13727 additional_libdir="$withval/lib"
13734 # Check whether --with-libiconv-type was given.
13735 if test "${with_libiconv_type+set}" = set; then :
13736 withval=$with_libiconv_type; with_libiconv_type=$withval
13737 else
13738 with_libiconv_type=auto
13741 lib_type=`eval echo \$with_libiconv_type`
13743 LIBICONV=
13744 LTLIBICONV=
13745 INCICONV=
13746 rpathdirs=
13747 ltrpathdirs=
13748 names_already_handled=
13749 names_next_round='iconv '
13750 while test -n "$names_next_round"; do
13751 names_this_round="$names_next_round"
13752 names_next_round=
13753 for name in $names_this_round; do
13754 already_handled=
13755 for n in $names_already_handled; do
13756 if test "$n" = "$name"; then
13757 already_handled=yes
13758 break
13760 done
13761 if test -z "$already_handled"; then
13762 names_already_handled="$names_already_handled $name"
13763 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
13764 eval value=\"\$HAVE_LIB$uppername\"
13765 if test -n "$value"; then
13766 if test "$value" = yes; then
13767 eval value=\"\$LIB$uppername\"
13768 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
13769 eval value=\"\$LTLIB$uppername\"
13770 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
13771 else
13774 else
13775 found_dir=
13776 found_la=
13777 found_so=
13778 found_a=
13779 if test $use_additional = yes; then
13780 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
13781 found_dir="$additional_libdir"
13782 found_so="$additional_libdir/lib$name.$shlibext"
13783 if test -f "$additional_libdir/lib$name.la"; then
13784 found_la="$additional_libdir/lib$name.la"
13786 elif test x$lib_type != xshared; then
13787 if test -f "$additional_libdir/lib$name.$libext"; then
13788 found_dir="$additional_libdir"
13789 found_a="$additional_libdir/lib$name.$libext"
13790 if test -f "$additional_libdir/lib$name.la"; then
13791 found_la="$additional_libdir/lib$name.la"
13796 if test "X$found_dir" = "X"; then
13797 for x in $LDFLAGS $LTLIBICONV; do
13799 acl_save_prefix="$prefix"
13800 prefix="$acl_final_prefix"
13801 acl_save_exec_prefix="$exec_prefix"
13802 exec_prefix="$acl_final_exec_prefix"
13803 eval x=\"$x\"
13804 exec_prefix="$acl_save_exec_prefix"
13805 prefix="$acl_save_prefix"
13807 case "$x" in
13808 -L*)
13809 dir=`echo "X$x" | sed -e 's/^X-L//'`
13810 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
13811 found_dir="$dir"
13812 found_so="$dir/lib$name.$shlibext"
13813 if test -f "$dir/lib$name.la"; then
13814 found_la="$dir/lib$name.la"
13816 elif test x$lib_type != xshared; then
13817 if test -f "$dir/lib$name.$libext"; then
13818 found_dir="$dir"
13819 found_a="$dir/lib$name.$libext"
13820 if test -f "$dir/lib$name.la"; then
13821 found_la="$dir/lib$name.la"
13826 esac
13827 if test "X$found_dir" != "X"; then
13828 break
13830 done
13832 if test "X$found_dir" != "X"; then
13833 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
13834 if test "X$found_so" != "X"; then
13835 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
13836 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13837 else
13838 haveit=
13839 for x in $ltrpathdirs; do
13840 if test "X$x" = "X$found_dir"; then
13841 haveit=yes
13842 break
13844 done
13845 if test -z "$haveit"; then
13846 ltrpathdirs="$ltrpathdirs $found_dir"
13848 if test "$hardcode_direct" = yes; then
13849 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13850 else
13851 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
13852 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13853 haveit=
13854 for x in $rpathdirs; do
13855 if test "X$x" = "X$found_dir"; then
13856 haveit=yes
13857 break
13859 done
13860 if test -z "$haveit"; then
13861 rpathdirs="$rpathdirs $found_dir"
13863 else
13864 haveit=
13865 for x in $LDFLAGS $LIBICONV; do
13867 acl_save_prefix="$prefix"
13868 prefix="$acl_final_prefix"
13869 acl_save_exec_prefix="$exec_prefix"
13870 exec_prefix="$acl_final_exec_prefix"
13871 eval x=\"$x\"
13872 exec_prefix="$acl_save_exec_prefix"
13873 prefix="$acl_save_prefix"
13875 if test "X$x" = "X-L$found_dir"; then
13876 haveit=yes
13877 break
13879 done
13880 if test -z "$haveit"; then
13881 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
13883 if test "$hardcode_minus_L" != no; then
13884 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13885 else
13886 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
13891 else
13892 if test "X$found_a" != "X"; then
13893 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
13894 else
13895 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
13898 additional_includedir=
13899 case "$found_dir" in
13900 */lib | */lib/)
13901 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
13902 additional_includedir="$basedir/include"
13904 esac
13905 if test "X$additional_includedir" != "X"; then
13906 if test "X$additional_includedir" != "X/usr/include"; then
13907 haveit=
13908 if test "X$additional_includedir" = "X/usr/local/include"; then
13909 if test -n "$GCC"; then
13910 case $host_os in
13911 linux*) haveit=yes;;
13912 esac
13915 if test -z "$haveit"; then
13916 for x in $CPPFLAGS $INCICONV; do
13918 acl_save_prefix="$prefix"
13919 prefix="$acl_final_prefix"
13920 acl_save_exec_prefix="$exec_prefix"
13921 exec_prefix="$acl_final_exec_prefix"
13922 eval x=\"$x\"
13923 exec_prefix="$acl_save_exec_prefix"
13924 prefix="$acl_save_prefix"
13926 if test "X$x" = "X-I$additional_includedir"; then
13927 haveit=yes
13928 break
13930 done
13931 if test -z "$haveit"; then
13932 if test -d "$additional_includedir"; then
13933 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
13939 if test -n "$found_la"; then
13940 save_libdir="$libdir"
13941 case "$found_la" in
13942 */* | *\\*) . "$found_la" ;;
13943 *) . "./$found_la" ;;
13944 esac
13945 libdir="$save_libdir"
13946 for dep in $dependency_libs; do
13947 case "$dep" in
13948 -L*)
13949 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
13950 if test "X$additional_libdir" != "X/usr/lib"; then
13951 haveit=
13952 if test "X$additional_libdir" = "X/usr/local/lib"; then
13953 if test -n "$GCC"; then
13954 case $host_os in
13955 linux*) haveit=yes;;
13956 esac
13959 if test -z "$haveit"; then
13960 haveit=
13961 for x in $LDFLAGS $LIBICONV; do
13963 acl_save_prefix="$prefix"
13964 prefix="$acl_final_prefix"
13965 acl_save_exec_prefix="$exec_prefix"
13966 exec_prefix="$acl_final_exec_prefix"
13967 eval x=\"$x\"
13968 exec_prefix="$acl_save_exec_prefix"
13969 prefix="$acl_save_prefix"
13971 if test "X$x" = "X-L$additional_libdir"; then
13972 haveit=yes
13973 break
13975 done
13976 if test -z "$haveit"; then
13977 if test -d "$additional_libdir"; then
13978 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
13981 haveit=
13982 for x in $LDFLAGS $LTLIBICONV; do
13984 acl_save_prefix="$prefix"
13985 prefix="$acl_final_prefix"
13986 acl_save_exec_prefix="$exec_prefix"
13987 exec_prefix="$acl_final_exec_prefix"
13988 eval x=\"$x\"
13989 exec_prefix="$acl_save_exec_prefix"
13990 prefix="$acl_save_prefix"
13992 if test "X$x" = "X-L$additional_libdir"; then
13993 haveit=yes
13994 break
13996 done
13997 if test -z "$haveit"; then
13998 if test -d "$additional_libdir"; then
13999 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
14005 -R*)
14006 dir=`echo "X$dep" | sed -e 's/^X-R//'`
14007 if test "$enable_rpath" != no; then
14008 haveit=
14009 for x in $rpathdirs; do
14010 if test "X$x" = "X$dir"; then
14011 haveit=yes
14012 break
14014 done
14015 if test -z "$haveit"; then
14016 rpathdirs="$rpathdirs $dir"
14018 haveit=
14019 for x in $ltrpathdirs; do
14020 if test "X$x" = "X$dir"; then
14021 haveit=yes
14022 break
14024 done
14025 if test -z "$haveit"; then
14026 ltrpathdirs="$ltrpathdirs $dir"
14030 -l*)
14031 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14033 *.la)
14034 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14037 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
14038 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
14040 esac
14041 done
14043 else
14044 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
14045 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
14046 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
14047 else
14048 LIBICONV="${LIBICONV}${LIBICONV:+ }-l:lib$name.$libext"
14049 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l:lib$name.$libext"
14054 done
14055 done
14056 if test "X$rpathdirs" != "X"; then
14057 if test -n "$hardcode_libdir_separator"; then
14058 alldirs=
14059 for found_dir in $rpathdirs; do
14060 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
14061 done
14062 acl_save_libdir="$libdir"
14063 libdir="$alldirs"
14064 eval flag=\"$hardcode_libdir_flag_spec\"
14065 libdir="$acl_save_libdir"
14066 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
14067 else
14068 for found_dir in $rpathdirs; do
14069 acl_save_libdir="$libdir"
14070 libdir="$found_dir"
14071 eval flag=\"$hardcode_libdir_flag_spec\"
14072 libdir="$acl_save_libdir"
14073 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
14074 done
14077 if test "X$ltrpathdirs" != "X"; then
14078 for found_dir in $ltrpathdirs; do
14079 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
14080 done
14087 if test -f ../gettext/uninstalled-config.sh; then
14088 relative_builddir='$(top_builddir)/../gettext'
14089 . ../gettext/uninstalled-config.sh
14090 else
14091 # The sister gettext directory doesn't exist and won't collect information on
14092 # using gettext for us. Call a bundled AM_GNU_GETTEXT.
14116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
14117 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
14118 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
14119 $as_echo_n "(cached) " >&6
14120 else
14121 gt_save_LIBS="$LIBS"
14122 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
14123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14124 /* end confdefs.h. */
14125 #include <CoreFoundation/CFPreferences.h>
14127 main ()
14129 CFPreferencesCopyAppValue(NULL, NULL)
14131 return 0;
14133 _ACEOF
14134 if ac_fn_c_try_link "$LINENO"; then :
14135 gt_cv_func_CFPreferencesCopyAppValue=yes
14136 else
14137 gt_cv_func_CFPreferencesCopyAppValue=no
14139 rm -f core conftest.err conftest.$ac_objext \
14140 conftest$ac_exeext conftest.$ac_ext
14141 LIBS="$gt_save_LIBS"
14143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
14144 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
14145 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
14147 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
14150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyPreferredLanguages" >&5
14151 $as_echo_n "checking for CFLocaleCopyPreferredLanguages... " >&6; }
14152 if ${gt_cv_func_CFLocaleCopyPreferredLanguages+:} false; then :
14153 $as_echo_n "(cached) " >&6
14154 else
14155 gt_save_LIBS="$LIBS"
14156 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
14157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14158 /* end confdefs.h. */
14159 #include <CoreFoundation/CFLocale.h>
14161 main ()
14163 CFLocaleCopyPreferredLanguages();
14165 return 0;
14167 _ACEOF
14168 if ac_fn_c_try_link "$LINENO"; then :
14169 gt_cv_func_CFLocaleCopyPreferredLanguages=yes
14170 else
14171 gt_cv_func_CFLocaleCopyPreferredLanguages=no
14173 rm -f core conftest.err conftest.$ac_objext \
14174 conftest$ac_exeext conftest.$ac_ext
14175 LIBS="$gt_save_LIBS"
14177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyPreferredLanguages" >&5
14178 $as_echo "$gt_cv_func_CFLocaleCopyPreferredLanguages" >&6; }
14179 if test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
14181 $as_echo "#define HAVE_CFLOCALECOPYPREFERREDLANGUAGES 1" >>confdefs.h
14184 INTL_MACOSX_LIBS=
14185 if test $gt_cv_func_CFPreferencesCopyAppValue = yes \
14186 || test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
14187 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation -Wl,-framework -Wl,CoreServices"
14195 LIBINTL=
14196 LTLIBINTL=
14197 POSUB=
14199 case " $gt_needs " in
14200 *" need-formatstring-macros "*) gt_api_version=3 ;;
14201 *" need-ngettext "*) gt_api_version=2 ;;
14202 *) gt_api_version=1 ;;
14203 esac
14204 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
14205 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
14207 if test "$USE_NLS" = "yes"; then
14208 gt_use_preinstalled_gnugettext=no
14211 if test $gt_api_version -ge 3; then
14212 gt_revision_test_code='
14213 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
14214 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
14215 #endif
14216 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
14218 else
14219 gt_revision_test_code=
14221 if test $gt_api_version -ge 2; then
14222 gt_expression_test_code=' + * ngettext ("", "", 0)'
14223 else
14224 gt_expression_test_code=
14227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
14228 $as_echo_n "checking for GNU gettext in libc... " >&6; }
14229 if eval \${$gt_func_gnugettext_libc+:} false; then :
14230 $as_echo_n "(cached) " >&6
14231 else
14232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14233 /* end confdefs.h. */
14235 #include <libintl.h>
14236 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
14237 extern int _nl_msg_cat_cntr;
14238 extern int *_nl_domain_bindings;
14239 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_domain_bindings)
14240 #else
14241 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
14242 #endif
14243 $gt_revision_test_code
14246 main ()
14249 bindtextdomain ("", "");
14250 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
14253 return 0;
14255 _ACEOF
14256 if ac_fn_c_try_link "$LINENO"; then :
14257 eval "$gt_func_gnugettext_libc=yes"
14258 else
14259 eval "$gt_func_gnugettext_libc=no"
14261 rm -f core conftest.err conftest.$ac_objext \
14262 conftest$ac_exeext conftest.$ac_ext
14264 eval ac_res=\$$gt_func_gnugettext_libc
14265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14266 $as_echo "$ac_res" >&6; }
14268 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
14274 am_save_CPPFLAGS="$CPPFLAGS"
14276 for element in $INCICONV; do
14277 haveit=
14278 for x in $CPPFLAGS; do
14280 acl_save_prefix="$prefix"
14281 prefix="$acl_final_prefix"
14282 acl_save_exec_prefix="$exec_prefix"
14283 exec_prefix="$acl_final_exec_prefix"
14284 eval x=\"$x\"
14285 exec_prefix="$acl_save_exec_prefix"
14286 prefix="$acl_save_prefix"
14288 if test "X$x" = "X$element"; then
14289 haveit=yes
14290 break
14292 done
14293 if test -z "$haveit"; then
14294 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
14296 done
14299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
14300 $as_echo_n "checking for iconv... " >&6; }
14301 if ${am_cv_func_iconv+:} false; then :
14302 $as_echo_n "(cached) " >&6
14303 else
14305 am_cv_func_iconv="no, consider installing GNU libiconv"
14306 am_cv_lib_iconv=no
14307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14308 /* end confdefs.h. */
14310 #include <stdlib.h>
14311 #include <iconv.h>
14314 main ()
14316 iconv_t cd = iconv_open("","");
14317 iconv(cd,NULL,NULL,NULL,NULL);
14318 iconv_close(cd);
14320 return 0;
14322 _ACEOF
14323 if ac_fn_c_try_link "$LINENO"; then :
14324 am_cv_func_iconv=yes
14326 rm -f core conftest.err conftest.$ac_objext \
14327 conftest$ac_exeext conftest.$ac_ext
14328 if test "$am_cv_func_iconv" != yes; then
14329 am_save_LIBS="$LIBS"
14330 LIBS="$LIBS $LIBICONV"
14331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14332 /* end confdefs.h. */
14334 #include <stdlib.h>
14335 #include <iconv.h>
14338 main ()
14340 iconv_t cd = iconv_open("","");
14341 iconv(cd,NULL,NULL,NULL,NULL);
14342 iconv_close(cd);
14344 return 0;
14346 _ACEOF
14347 if ac_fn_c_try_link "$LINENO"; then :
14348 am_cv_lib_iconv=yes
14349 am_cv_func_iconv=yes
14351 rm -f core conftest.err conftest.$ac_objext \
14352 conftest$ac_exeext conftest.$ac_ext
14353 LIBS="$am_save_LIBS"
14357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
14358 $as_echo "$am_cv_func_iconv" >&6; }
14359 if test "$am_cv_func_iconv" = yes; then
14360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
14361 $as_echo_n "checking for working iconv... " >&6; }
14362 if ${am_cv_func_iconv_works+:} false; then :
14363 $as_echo_n "(cached) " >&6
14364 else
14366 am_save_LIBS="$LIBS"
14367 if test $am_cv_lib_iconv = yes; then
14368 LIBS="$LIBS $LIBICONV"
14370 am_cv_func_iconv_works=no
14371 for ac_iconv_const in '' 'const'; do
14372 if test "$cross_compiling" = yes; then :
14373 case "$host_os" in
14374 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
14375 *) am_cv_func_iconv_works="guessing yes" ;;
14376 esac
14377 else
14378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14379 /* end confdefs.h. */
14381 #include <iconv.h>
14382 #include <string.h>
14384 #ifndef ICONV_CONST
14385 # define ICONV_CONST $ac_iconv_const
14386 #endif
14389 main ()
14391 int result = 0;
14392 /* Test against AIX 5.1...7.2 bug: Failures are not distinguishable from
14393 successful returns. This is even documented in
14394 <https://www.ibm.com/support/knowledgecenter/ssw_aix_72/i_bostechref/iconv.html> */
14396 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
14397 if (cd_utf8_to_88591 != (iconv_t)(-1))
14399 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
14400 char buf[10];
14401 ICONV_CONST char *inptr = input;
14402 size_t inbytesleft = strlen (input);
14403 char *outptr = buf;
14404 size_t outbytesleft = sizeof (buf);
14405 size_t res = iconv (cd_utf8_to_88591,
14406 &inptr, &inbytesleft,
14407 &outptr, &outbytesleft);
14408 if (res == 0)
14409 result |= 1;
14410 iconv_close (cd_utf8_to_88591);
14413 /* Test against Solaris 10 bug: Failures are not distinguishable from
14414 successful returns. */
14416 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
14417 if (cd_ascii_to_88591 != (iconv_t)(-1))
14419 static ICONV_CONST char input[] = "\263";
14420 char buf[10];
14421 ICONV_CONST char *inptr = input;
14422 size_t inbytesleft = strlen (input);
14423 char *outptr = buf;
14424 size_t outbytesleft = sizeof (buf);
14425 size_t res = iconv (cd_ascii_to_88591,
14426 &inptr, &inbytesleft,
14427 &outptr, &outbytesleft);
14428 if (res == 0)
14429 result |= 2;
14430 iconv_close (cd_ascii_to_88591);
14433 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
14435 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
14436 if (cd_88591_to_utf8 != (iconv_t)(-1))
14438 static ICONV_CONST char input[] = "\304";
14439 static char buf[2] = { (char)0xDE, (char)0xAD };
14440 ICONV_CONST char *inptr = input;
14441 size_t inbytesleft = 1;
14442 char *outptr = buf;
14443 size_t outbytesleft = 1;
14444 size_t res = iconv (cd_88591_to_utf8,
14445 &inptr, &inbytesleft,
14446 &outptr, &outbytesleft);
14447 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
14448 result |= 4;
14449 iconv_close (cd_88591_to_utf8);
14452 #if 0 /* This bug could be worked around by the caller. */
14453 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
14455 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
14456 if (cd_88591_to_utf8 != (iconv_t)(-1))
14458 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
14459 char buf[50];
14460 ICONV_CONST char *inptr = input;
14461 size_t inbytesleft = strlen (input);
14462 char *outptr = buf;
14463 size_t outbytesleft = sizeof (buf);
14464 size_t res = iconv (cd_88591_to_utf8,
14465 &inptr, &inbytesleft,
14466 &outptr, &outbytesleft);
14467 if ((int)res > 0)
14468 result |= 8;
14469 iconv_close (cd_88591_to_utf8);
14472 #endif
14473 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
14474 provided. */
14476 /* Try standardized names. */
14477 iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP");
14478 /* Try IRIX, OSF/1 names. */
14479 iconv_t cd2 = iconv_open ("UTF-8", "eucJP");
14480 /* Try AIX names. */
14481 iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP");
14482 /* Try HP-UX names. */
14483 iconv_t cd4 = iconv_open ("utf8", "eucJP");
14484 if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1)
14485 && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1))
14486 result |= 16;
14487 if (cd1 != (iconv_t)(-1))
14488 iconv_close (cd1);
14489 if (cd2 != (iconv_t)(-1))
14490 iconv_close (cd2);
14491 if (cd3 != (iconv_t)(-1))
14492 iconv_close (cd3);
14493 if (cd4 != (iconv_t)(-1))
14494 iconv_close (cd4);
14496 return result;
14499 return 0;
14501 _ACEOF
14502 if ac_fn_c_try_run "$LINENO"; then :
14503 am_cv_func_iconv_works=yes
14505 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14506 conftest.$ac_objext conftest.beam conftest.$ac_ext
14509 test "$am_cv_func_iconv_works" = no || break
14510 done
14511 LIBS="$am_save_LIBS"
14514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
14515 $as_echo "$am_cv_func_iconv_works" >&6; }
14516 case "$am_cv_func_iconv_works" in
14517 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
14518 *) am_func_iconv=yes ;;
14519 esac
14520 else
14521 am_func_iconv=no am_cv_lib_iconv=no
14523 if test "$am_func_iconv" = yes; then
14525 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
14528 if test "$am_cv_lib_iconv" = yes; then
14529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
14530 $as_echo_n "checking how to link with libiconv... " >&6; }
14531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
14532 $as_echo "$LIBICONV" >&6; }
14533 else
14534 CPPFLAGS="$am_save_CPPFLAGS"
14535 LIBICONV=
14536 LTLIBICONV=
14544 use_additional=yes
14546 acl_save_prefix="$prefix"
14547 prefix="$acl_final_prefix"
14548 acl_save_exec_prefix="$exec_prefix"
14549 exec_prefix="$acl_final_exec_prefix"
14551 eval additional_includedir=\"$includedir\"
14552 eval additional_libdir=\"$libdir\"
14554 exec_prefix="$acl_save_exec_prefix"
14555 prefix="$acl_save_prefix"
14558 # Check whether --with-libintl-prefix was given.
14559 if test "${with_libintl_prefix+set}" = set; then :
14560 withval=$with_libintl_prefix;
14561 if test "X$withval" = "Xno"; then
14562 use_additional=no
14563 else
14564 if test "X$withval" = "X"; then
14566 acl_save_prefix="$prefix"
14567 prefix="$acl_final_prefix"
14568 acl_save_exec_prefix="$exec_prefix"
14569 exec_prefix="$acl_final_exec_prefix"
14571 eval additional_includedir=\"$includedir\"
14572 eval additional_libdir=\"$libdir\"
14574 exec_prefix="$acl_save_exec_prefix"
14575 prefix="$acl_save_prefix"
14577 else
14578 additional_includedir="$withval/include"
14579 additional_libdir="$withval/lib"
14586 # Check whether --with-libintl-type was given.
14587 if test "${with_libintl_type+set}" = set; then :
14588 withval=$with_libintl_type; with_libintl_type=$withval
14589 else
14590 with_libintl_type=auto
14593 lib_type=`eval echo \$with_libintl_type`
14595 LIBINTL=
14596 LTLIBINTL=
14597 INCINTL=
14598 rpathdirs=
14599 ltrpathdirs=
14600 names_already_handled=
14601 names_next_round='intl '
14602 while test -n "$names_next_round"; do
14603 names_this_round="$names_next_round"
14604 names_next_round=
14605 for name in $names_this_round; do
14606 already_handled=
14607 for n in $names_already_handled; do
14608 if test "$n" = "$name"; then
14609 already_handled=yes
14610 break
14612 done
14613 if test -z "$already_handled"; then
14614 names_already_handled="$names_already_handled $name"
14615 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
14616 eval value=\"\$HAVE_LIB$uppername\"
14617 if test -n "$value"; then
14618 if test "$value" = yes; then
14619 eval value=\"\$LIB$uppername\"
14620 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
14621 eval value=\"\$LTLIB$uppername\"
14622 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
14623 else
14626 else
14627 found_dir=
14628 found_la=
14629 found_so=
14630 found_a=
14631 if test $use_additional = yes; then
14632 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
14633 found_dir="$additional_libdir"
14634 found_so="$additional_libdir/lib$name.$shlibext"
14635 if test -f "$additional_libdir/lib$name.la"; then
14636 found_la="$additional_libdir/lib$name.la"
14638 elif test x$lib_type != xshared; then
14639 if test -f "$additional_libdir/lib$name.$libext"; then
14640 found_dir="$additional_libdir"
14641 found_a="$additional_libdir/lib$name.$libext"
14642 if test -f "$additional_libdir/lib$name.la"; then
14643 found_la="$additional_libdir/lib$name.la"
14648 if test "X$found_dir" = "X"; then
14649 for x in $LDFLAGS $LTLIBINTL; do
14651 acl_save_prefix="$prefix"
14652 prefix="$acl_final_prefix"
14653 acl_save_exec_prefix="$exec_prefix"
14654 exec_prefix="$acl_final_exec_prefix"
14655 eval x=\"$x\"
14656 exec_prefix="$acl_save_exec_prefix"
14657 prefix="$acl_save_prefix"
14659 case "$x" in
14660 -L*)
14661 dir=`echo "X$x" | sed -e 's/^X-L//'`
14662 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
14663 found_dir="$dir"
14664 found_so="$dir/lib$name.$shlibext"
14665 if test -f "$dir/lib$name.la"; then
14666 found_la="$dir/lib$name.la"
14668 elif test x$lib_type != xshared; then
14669 if test -f "$dir/lib$name.$libext"; then
14670 found_dir="$dir"
14671 found_a="$dir/lib$name.$libext"
14672 if test -f "$dir/lib$name.la"; then
14673 found_la="$dir/lib$name.la"
14678 esac
14679 if test "X$found_dir" != "X"; then
14680 break
14682 done
14684 if test "X$found_dir" != "X"; then
14685 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
14686 if test "X$found_so" != "X"; then
14687 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
14688 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14689 else
14690 haveit=
14691 for x in $ltrpathdirs; do
14692 if test "X$x" = "X$found_dir"; then
14693 haveit=yes
14694 break
14696 done
14697 if test -z "$haveit"; then
14698 ltrpathdirs="$ltrpathdirs $found_dir"
14700 if test "$hardcode_direct" = yes; then
14701 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14702 else
14703 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
14704 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14705 haveit=
14706 for x in $rpathdirs; do
14707 if test "X$x" = "X$found_dir"; then
14708 haveit=yes
14709 break
14711 done
14712 if test -z "$haveit"; then
14713 rpathdirs="$rpathdirs $found_dir"
14715 else
14716 haveit=
14717 for x in $LDFLAGS $LIBINTL; do
14719 acl_save_prefix="$prefix"
14720 prefix="$acl_final_prefix"
14721 acl_save_exec_prefix="$exec_prefix"
14722 exec_prefix="$acl_final_exec_prefix"
14723 eval x=\"$x\"
14724 exec_prefix="$acl_save_exec_prefix"
14725 prefix="$acl_save_prefix"
14727 if test "X$x" = "X-L$found_dir"; then
14728 haveit=yes
14729 break
14731 done
14732 if test -z "$haveit"; then
14733 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
14735 if test "$hardcode_minus_L" != no; then
14736 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14737 else
14738 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
14743 else
14744 if test "X$found_a" != "X"; then
14745 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
14746 else
14747 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
14750 additional_includedir=
14751 case "$found_dir" in
14752 */lib | */lib/)
14753 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
14754 additional_includedir="$basedir/include"
14756 esac
14757 if test "X$additional_includedir" != "X"; then
14758 if test "X$additional_includedir" != "X/usr/include"; then
14759 haveit=
14760 if test "X$additional_includedir" = "X/usr/local/include"; then
14761 if test -n "$GCC"; then
14762 case $host_os in
14763 linux*) haveit=yes;;
14764 esac
14767 if test -z "$haveit"; then
14768 for x in $CPPFLAGS $INCINTL; do
14770 acl_save_prefix="$prefix"
14771 prefix="$acl_final_prefix"
14772 acl_save_exec_prefix="$exec_prefix"
14773 exec_prefix="$acl_final_exec_prefix"
14774 eval x=\"$x\"
14775 exec_prefix="$acl_save_exec_prefix"
14776 prefix="$acl_save_prefix"
14778 if test "X$x" = "X-I$additional_includedir"; then
14779 haveit=yes
14780 break
14782 done
14783 if test -z "$haveit"; then
14784 if test -d "$additional_includedir"; then
14785 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
14791 if test -n "$found_la"; then
14792 save_libdir="$libdir"
14793 case "$found_la" in
14794 */* | *\\*) . "$found_la" ;;
14795 *) . "./$found_la" ;;
14796 esac
14797 libdir="$save_libdir"
14798 for dep in $dependency_libs; do
14799 case "$dep" in
14800 -L*)
14801 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
14802 if test "X$additional_libdir" != "X/usr/lib"; then
14803 haveit=
14804 if test "X$additional_libdir" = "X/usr/local/lib"; then
14805 if test -n "$GCC"; then
14806 case $host_os in
14807 linux*) haveit=yes;;
14808 esac
14811 if test -z "$haveit"; then
14812 haveit=
14813 for x in $LDFLAGS $LIBINTL; do
14815 acl_save_prefix="$prefix"
14816 prefix="$acl_final_prefix"
14817 acl_save_exec_prefix="$exec_prefix"
14818 exec_prefix="$acl_final_exec_prefix"
14819 eval x=\"$x\"
14820 exec_prefix="$acl_save_exec_prefix"
14821 prefix="$acl_save_prefix"
14823 if test "X$x" = "X-L$additional_libdir"; then
14824 haveit=yes
14825 break
14827 done
14828 if test -z "$haveit"; then
14829 if test -d "$additional_libdir"; then
14830 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
14833 haveit=
14834 for x in $LDFLAGS $LTLIBINTL; do
14836 acl_save_prefix="$prefix"
14837 prefix="$acl_final_prefix"
14838 acl_save_exec_prefix="$exec_prefix"
14839 exec_prefix="$acl_final_exec_prefix"
14840 eval x=\"$x\"
14841 exec_prefix="$acl_save_exec_prefix"
14842 prefix="$acl_save_prefix"
14844 if test "X$x" = "X-L$additional_libdir"; then
14845 haveit=yes
14846 break
14848 done
14849 if test -z "$haveit"; then
14850 if test -d "$additional_libdir"; then
14851 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
14857 -R*)
14858 dir=`echo "X$dep" | sed -e 's/^X-R//'`
14859 if test "$enable_rpath" != no; then
14860 haveit=
14861 for x in $rpathdirs; do
14862 if test "X$x" = "X$dir"; then
14863 haveit=yes
14864 break
14866 done
14867 if test -z "$haveit"; then
14868 rpathdirs="$rpathdirs $dir"
14870 haveit=
14871 for x in $ltrpathdirs; do
14872 if test "X$x" = "X$dir"; then
14873 haveit=yes
14874 break
14876 done
14877 if test -z "$haveit"; then
14878 ltrpathdirs="$ltrpathdirs $dir"
14882 -l*)
14883 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14885 *.la)
14886 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14889 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
14890 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
14892 esac
14893 done
14895 else
14896 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
14897 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
14898 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
14899 else
14900 LIBINTL="${LIBINTL}${LIBINTL:+ }-l:lib$name.$libext"
14901 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l:lib$name.$libext"
14906 done
14907 done
14908 if test "X$rpathdirs" != "X"; then
14909 if test -n "$hardcode_libdir_separator"; then
14910 alldirs=
14911 for found_dir in $rpathdirs; do
14912 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
14913 done
14914 acl_save_libdir="$libdir"
14915 libdir="$alldirs"
14916 eval flag=\"$hardcode_libdir_flag_spec\"
14917 libdir="$acl_save_libdir"
14918 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
14919 else
14920 for found_dir in $rpathdirs; do
14921 acl_save_libdir="$libdir"
14922 libdir="$found_dir"
14923 eval flag=\"$hardcode_libdir_flag_spec\"
14924 libdir="$acl_save_libdir"
14925 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
14926 done
14929 if test "X$ltrpathdirs" != "X"; then
14930 for found_dir in $ltrpathdirs; do
14931 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
14932 done
14935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
14936 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
14937 if eval \${$gt_func_gnugettext_libintl+:} false; then :
14938 $as_echo_n "(cached) " >&6
14939 else
14940 gt_save_CPPFLAGS="$CPPFLAGS"
14941 CPPFLAGS="$CPPFLAGS $INCINTL"
14942 gt_save_LIBS="$LIBS"
14943 LIBS="$LIBS $LIBINTL"
14944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14945 /* end confdefs.h. */
14947 #include <libintl.h>
14948 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
14949 extern int _nl_msg_cat_cntr;
14950 extern
14951 #ifdef __cplusplus
14953 #endif
14954 const char *_nl_expand_alias (const char *);
14955 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
14956 #else
14957 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
14958 #endif
14959 $gt_revision_test_code
14962 main ()
14965 bindtextdomain ("", "");
14966 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
14969 return 0;
14971 _ACEOF
14972 if ac_fn_c_try_link "$LINENO"; then :
14973 eval "$gt_func_gnugettext_libintl=yes"
14974 else
14975 eval "$gt_func_gnugettext_libintl=no"
14977 rm -f core conftest.err conftest.$ac_objext \
14978 conftest$ac_exeext conftest.$ac_ext
14979 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
14980 LIBS="$LIBS $LIBICONV"
14981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14982 /* end confdefs.h. */
14984 #include <libintl.h>
14985 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
14986 extern int _nl_msg_cat_cntr;
14987 extern
14988 #ifdef __cplusplus
14990 #endif
14991 const char *_nl_expand_alias (const char *);
14992 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
14993 #else
14994 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
14995 #endif
14996 $gt_revision_test_code
14999 main ()
15002 bindtextdomain ("", "");
15003 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
15006 return 0;
15008 _ACEOF
15009 if ac_fn_c_try_link "$LINENO"; then :
15010 LIBINTL="$LIBINTL $LIBICONV"
15011 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
15012 eval "$gt_func_gnugettext_libintl=yes"
15015 rm -f core conftest.err conftest.$ac_objext \
15016 conftest$ac_exeext conftest.$ac_ext
15018 CPPFLAGS="$gt_save_CPPFLAGS"
15019 LIBS="$gt_save_LIBS"
15021 eval ac_res=\$$gt_func_gnugettext_libintl
15022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15023 $as_echo "$ac_res" >&6; }
15026 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
15027 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
15028 && test "$PACKAGE" != gettext-runtime \
15029 && test "$PACKAGE" != gettext-tools; }; then
15030 gt_use_preinstalled_gnugettext=yes
15031 else
15032 LIBINTL=
15033 LTLIBINTL=
15034 INCINTL=
15039 if test -n "$INTL_MACOSX_LIBS"; then
15040 if test "$gt_use_preinstalled_gnugettext" = "yes" \
15041 || test "$nls_cv_use_gnu_gettext" = "yes"; then
15042 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
15043 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
15047 if test "$gt_use_preinstalled_gnugettext" = "yes" \
15048 || test "$nls_cv_use_gnu_gettext" = "yes"; then
15050 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
15052 else
15053 USE_NLS=no
15057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
15058 $as_echo_n "checking whether to use NLS... " >&6; }
15059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
15060 $as_echo "$USE_NLS" >&6; }
15061 if test "$USE_NLS" = "yes"; then
15062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
15063 $as_echo_n "checking where the gettext function comes from... " >&6; }
15064 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
15065 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
15066 gt_source="external libintl"
15067 else
15068 gt_source="libc"
15070 else
15071 gt_source="included intl directory"
15073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
15074 $as_echo "$gt_source" >&6; }
15077 if test "$USE_NLS" = "yes"; then
15079 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
15080 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
15081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
15082 $as_echo_n "checking how to link with libintl... " >&6; }
15083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
15084 $as_echo "$LIBINTL" >&6; }
15086 for element in $INCINTL; do
15087 haveit=
15088 for x in $CPPFLAGS; do
15090 acl_save_prefix="$prefix"
15091 prefix="$acl_final_prefix"
15092 acl_save_exec_prefix="$exec_prefix"
15093 exec_prefix="$acl_final_exec_prefix"
15094 eval x=\"$x\"
15095 exec_prefix="$acl_save_exec_prefix"
15096 prefix="$acl_save_prefix"
15098 if test "X$x" = "X$element"; then
15099 haveit=yes
15100 break
15102 done
15103 if test -z "$haveit"; then
15104 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
15106 done
15111 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
15114 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
15118 POSUB=po
15123 INTLLIBS="$LIBINTL"
15142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
15143 $as_echo_n "checking whether NLS is requested... " >&6; }
15144 if test x"$USE_NLS" != xyes; then
15145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15146 $as_echo "no" >&6; }
15147 else
15148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15149 $as_echo "yes" >&6; }
15151 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
15154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
15155 $as_echo_n "checking for catalogs to be installed... " >&6; }
15156 # Look for .po and .gmo files in the source directory.
15157 CATALOGS=
15158 XLINGUAS=
15159 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
15160 # If there aren't any .gmo files the shell will give us the
15161 # literal string "../path/to/srcdir/po/*.gmo" which has to be
15162 # weeded out.
15163 case "$cat" in *\**)
15164 continue;;
15165 esac
15166 # The quadruple backslash is collapsed to a double backslash
15167 # by the backticks, then collapsed again by the double quotes,
15168 # leaving us with one backslash in the sed expression (right
15169 # before the dot that mustn't act as a wildcard).
15170 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
15171 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
15172 # The user is allowed to set LINGUAS to a list of languages to
15173 # install catalogs for. If it's empty that means "all of them."
15174 if test "x$LINGUAS" = x; then
15175 CATALOGS="$CATALOGS $cat"
15176 XLINGUAS="$XLINGUAS $lang"
15177 else
15178 case "$LINGUAS" in *$lang*)
15179 CATALOGS="$CATALOGS $cat"
15180 XLINGUAS="$XLINGUAS $lang"
15182 esac
15184 done
15185 LINGUAS="$XLINGUAS"
15186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
15187 $as_echo "$LINGUAS" >&6; }
15190 DATADIRNAME=share
15192 INSTOBJEXT=.mo
15194 GENCAT=gencat
15196 CATOBJEXT=.gmo
15203 # Prepare PATH_SEPARATOR.
15204 # The user is always right.
15205 if test "${PATH_SEPARATOR+set}" != set; then
15206 echo "#! /bin/sh" >conf$$.sh
15207 echo "exit 0" >>conf$$.sh
15208 chmod +x conf$$.sh
15209 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15210 PATH_SEPARATOR=';'
15211 else
15212 PATH_SEPARATOR=:
15214 rm -f conf$$.sh
15217 # Find out how to test for executable files. Don't use a zero-byte file,
15218 # as systems may use methods other than mode bits to determine executability.
15219 cat >conf$$.file <<_ASEOF
15220 #! /bin/sh
15221 exit 0
15222 _ASEOF
15223 chmod +x conf$$.file
15224 if test -x conf$$.file >/dev/null 2>&1; then
15225 ac_executable_p="test -x"
15226 else
15227 ac_executable_p="test -f"
15229 rm -f conf$$.file
15231 # Extract the first word of "msgfmt", so it can be a program name with args.
15232 set dummy msgfmt; ac_word=$2
15233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15234 $as_echo_n "checking for $ac_word... " >&6; }
15235 if ${ac_cv_path_MSGFMT+:} false; then :
15236 $as_echo_n "(cached) " >&6
15237 else
15238 case "$MSGFMT" in
15239 [\\/]* | ?:[\\/]*)
15240 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
15243 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
15244 for ac_dir in $PATH; do
15245 IFS="$ac_save_IFS"
15246 test -z "$ac_dir" && ac_dir=.
15247 for ac_exec_ext in '' $ac_executable_extensions; do
15248 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
15249 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
15250 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
15251 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
15252 break 2
15255 done
15256 done
15257 IFS="$ac_save_IFS"
15258 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
15260 esac
15262 MSGFMT="$ac_cv_path_MSGFMT"
15263 if test "$MSGFMT" != ":"; then
15264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
15265 $as_echo "$MSGFMT" >&6; }
15266 else
15267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15268 $as_echo "no" >&6; }
15271 # Extract the first word of "gmsgfmt", so it can be a program name with args.
15272 set dummy gmsgfmt; ac_word=$2
15273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15274 $as_echo_n "checking for $ac_word... " >&6; }
15275 if ${ac_cv_path_GMSGFMT+:} false; then :
15276 $as_echo_n "(cached) " >&6
15277 else
15278 case $GMSGFMT in
15279 [\\/]* | ?:[\\/]*)
15280 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
15283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15284 for as_dir in $PATH
15286 IFS=$as_save_IFS
15287 test -z "$as_dir" && as_dir=.
15288 for ac_exec_ext in '' $ac_executable_extensions; do
15289 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15290 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
15291 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15292 break 2
15294 done
15295 done
15296 IFS=$as_save_IFS
15298 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
15300 esac
15302 GMSGFMT=$ac_cv_path_GMSGFMT
15303 if test -n "$GMSGFMT"; then
15304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
15305 $as_echo "$GMSGFMT" >&6; }
15306 else
15307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15308 $as_echo "no" >&6; }
15314 # Prepare PATH_SEPARATOR.
15315 # The user is always right.
15316 if test "${PATH_SEPARATOR+set}" != set; then
15317 echo "#! /bin/sh" >conf$$.sh
15318 echo "exit 0" >>conf$$.sh
15319 chmod +x conf$$.sh
15320 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15321 PATH_SEPARATOR=';'
15322 else
15323 PATH_SEPARATOR=:
15325 rm -f conf$$.sh
15328 # Find out how to test for executable files. Don't use a zero-byte file,
15329 # as systems may use methods other than mode bits to determine executability.
15330 cat >conf$$.file <<_ASEOF
15331 #! /bin/sh
15332 exit 0
15333 _ASEOF
15334 chmod +x conf$$.file
15335 if test -x conf$$.file >/dev/null 2>&1; then
15336 ac_executable_p="test -x"
15337 else
15338 ac_executable_p="test -f"
15340 rm -f conf$$.file
15342 # Extract the first word of "xgettext", so it can be a program name with args.
15343 set dummy xgettext; ac_word=$2
15344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15345 $as_echo_n "checking for $ac_word... " >&6; }
15346 if ${ac_cv_path_XGETTEXT+:} false; then :
15347 $as_echo_n "(cached) " >&6
15348 else
15349 case "$XGETTEXT" in
15350 [\\/]* | ?:[\\/]*)
15351 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
15354 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
15355 for ac_dir in $PATH; do
15356 IFS="$ac_save_IFS"
15357 test -z "$ac_dir" && ac_dir=.
15358 for ac_exec_ext in '' $ac_executable_extensions; do
15359 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
15360 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
15361 (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
15362 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
15363 break 2
15366 done
15367 done
15368 IFS="$ac_save_IFS"
15369 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
15371 esac
15373 XGETTEXT="$ac_cv_path_XGETTEXT"
15374 if test "$XGETTEXT" != ":"; then
15375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
15376 $as_echo "$XGETTEXT" >&6; }
15377 else
15378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15379 $as_echo "no" >&6; }
15382 rm -f messages.po
15385 # Prepare PATH_SEPARATOR.
15386 # The user is always right.
15387 if test "${PATH_SEPARATOR+set}" != set; then
15388 echo "#! /bin/sh" >conf$$.sh
15389 echo "exit 0" >>conf$$.sh
15390 chmod +x conf$$.sh
15391 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15392 PATH_SEPARATOR=';'
15393 else
15394 PATH_SEPARATOR=:
15396 rm -f conf$$.sh
15399 # Find out how to test for executable files. Don't use a zero-byte file,
15400 # as systems may use methods other than mode bits to determine executability.
15401 cat >conf$$.file <<_ASEOF
15402 #! /bin/sh
15403 exit 0
15404 _ASEOF
15405 chmod +x conf$$.file
15406 if test -x conf$$.file >/dev/null 2>&1; then
15407 ac_executable_p="test -x"
15408 else
15409 ac_executable_p="test -f"
15411 rm -f conf$$.file
15413 # Extract the first word of "msgmerge", so it can be a program name with args.
15414 set dummy msgmerge; ac_word=$2
15415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15416 $as_echo_n "checking for $ac_word... " >&6; }
15417 if ${ac_cv_path_MSGMERGE+:} false; then :
15418 $as_echo_n "(cached) " >&6
15419 else
15420 case "$MSGMERGE" in
15421 [\\/]* | ?:[\\/]*)
15422 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
15425 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
15426 for ac_dir in $PATH; do
15427 IFS="$ac_save_IFS"
15428 test -z "$ac_dir" && ac_dir=.
15429 for ac_exec_ext in '' $ac_executable_extensions; do
15430 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
15431 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
15432 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
15433 break 2
15436 done
15437 done
15438 IFS="$ac_save_IFS"
15439 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
15441 esac
15443 MSGMERGE="$ac_cv_path_MSGMERGE"
15444 if test "$MSGMERGE" != ":"; then
15445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
15446 $as_echo "$MSGMERGE" >&6; }
15447 else
15448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15449 $as_echo "no" >&6; }
15453 if test "$GMSGFMT" != ":"; then
15454 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
15455 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
15457 else
15458 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
15459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
15460 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
15461 GMSGFMT=":"
15465 if test "$XGETTEXT" != ":"; then
15466 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
15467 (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
15469 else
15470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
15471 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
15472 XGETTEXT=":"
15474 rm -f messages.po
15477 ac_config_commands="$ac_config_commands default-2"
15482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
15483 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
15484 # Check whether --enable-maintainer-mode was given.
15485 if test "${enable_maintainer_mode+set}" = set; then :
15486 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
15487 else
15488 USE_MAINTAINER_MODE=no
15491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
15492 $as_echo "$USE_MAINTAINER_MODE" >&6; }
15493 if test $USE_MAINTAINER_MODE = yes; then
15494 MAINTAINER_MODE_TRUE=
15495 MAINTAINER_MODE_FALSE='#'
15496 else
15497 MAINTAINER_MODE_TRUE='#'
15498 MAINTAINER_MODE_FALSE=
15501 MAINT=$MAINTAINER_MODE_TRUE
15504 if false; then
15505 GENINSRC_NEVER_TRUE=
15506 GENINSRC_NEVER_FALSE='#'
15507 else
15508 GENINSRC_NEVER_TRUE='#'
15509 GENINSRC_NEVER_FALSE=
15514 for ac_header in memory.h sys/stat.h sys/types.h unistd.h
15515 do :
15516 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15517 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15518 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15519 cat >>confdefs.h <<_ACEOF
15520 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15521 _ACEOF
15525 done
15528 # Put this here so that autoconf's "cross-compiling" message doesn't confuse
15529 # people who are not cross-compiling but are compiling cross-assemblers.
15530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiling a cross-assembler" >&5
15531 $as_echo_n "checking whether compiling a cross-assembler... " >&6; }
15532 if test "${host}" = "${target}"; then
15533 cross_gas=no
15534 else
15535 cross_gas=yes
15537 $as_echo "#define CROSS_COMPILE 1" >>confdefs.h
15540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_gas" >&5
15541 $as_echo "$cross_gas" >&6; }
15543 for ac_func in strsignal
15544 do :
15545 ac_fn_c_check_func "$LINENO" "strsignal" "ac_cv_func_strsignal"
15546 if test "x$ac_cv_func_strsignal" = xyes; then :
15547 cat >>confdefs.h <<_ACEOF
15548 #define HAVE_STRSIGNAL 1
15549 _ACEOF
15552 done
15556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
15557 $as_echo_n "checking for LC_MESSAGES... " >&6; }
15558 if ${am_cv_val_LC_MESSAGES+:} false; then :
15559 $as_echo_n "(cached) " >&6
15560 else
15561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15562 /* end confdefs.h. */
15563 #include <locale.h>
15565 main ()
15567 return LC_MESSAGES
15569 return 0;
15571 _ACEOF
15572 if ac_fn_c_try_link "$LINENO"; then :
15573 am_cv_val_LC_MESSAGES=yes
15574 else
15575 am_cv_val_LC_MESSAGES=no
15577 rm -f core conftest.err conftest.$ac_objext \
15578 conftest$ac_exeext conftest.$ac_ext
15580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
15581 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
15582 if test $am_cv_val_LC_MESSAGES = yes; then
15584 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
15589 # do we need the math library?
15590 case "${need_libm}" in
15591 yes)
15592 LIBM=
15593 case $host in
15594 *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
15595 # These system don't have libm, or don't need it
15597 *-ncr-sysv4.3*)
15598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mwvalidcheckl in -lmw" >&5
15599 $as_echo_n "checking for _mwvalidcheckl in -lmw... " >&6; }
15600 if ${ac_cv_lib_mw__mwvalidcheckl+:} false; then :
15601 $as_echo_n "(cached) " >&6
15602 else
15603 ac_check_lib_save_LIBS=$LIBS
15604 LIBS="-lmw $LIBS"
15605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15606 /* end confdefs.h. */
15608 /* Override any GCC internal prototype to avoid an error.
15609 Use char because int might match the return type of a GCC
15610 builtin and then its argument prototype would still apply. */
15611 #ifdef __cplusplus
15612 extern "C"
15613 #endif
15614 char _mwvalidcheckl ();
15616 main ()
15618 return _mwvalidcheckl ();
15620 return 0;
15622 _ACEOF
15623 if ac_fn_c_try_link "$LINENO"; then :
15624 ac_cv_lib_mw__mwvalidcheckl=yes
15625 else
15626 ac_cv_lib_mw__mwvalidcheckl=no
15628 rm -f core conftest.err conftest.$ac_objext \
15629 conftest$ac_exeext conftest.$ac_ext
15630 LIBS=$ac_check_lib_save_LIBS
15632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
15633 $as_echo "$ac_cv_lib_mw__mwvalidcheckl" >&6; }
15634 if test "x$ac_cv_lib_mw__mwvalidcheckl" = xyes; then :
15635 LIBM="-lmw"
15638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
15639 $as_echo_n "checking for cos in -lm... " >&6; }
15640 if ${ac_cv_lib_m_cos+:} false; then :
15641 $as_echo_n "(cached) " >&6
15642 else
15643 ac_check_lib_save_LIBS=$LIBS
15644 LIBS="-lm $LIBS"
15645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15646 /* end confdefs.h. */
15648 /* Override any GCC internal prototype to avoid an error.
15649 Use char because int might match the return type of a GCC
15650 builtin and then its argument prototype would still apply. */
15651 #ifdef __cplusplus
15652 extern "C"
15653 #endif
15654 char cos ();
15656 main ()
15658 return cos ();
15660 return 0;
15662 _ACEOF
15663 if ac_fn_c_try_link "$LINENO"; then :
15664 ac_cv_lib_m_cos=yes
15665 else
15666 ac_cv_lib_m_cos=no
15668 rm -f core conftest.err conftest.$ac_objext \
15669 conftest$ac_exeext conftest.$ac_ext
15670 LIBS=$ac_check_lib_save_LIBS
15672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
15673 $as_echo "$ac_cv_lib_m_cos" >&6; }
15674 if test "x$ac_cv_lib_m_cos" = xyes; then :
15675 LIBM="$LIBM -lm"
15680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
15681 $as_echo_n "checking for cos in -lm... " >&6; }
15682 if ${ac_cv_lib_m_cos+:} false; then :
15683 $as_echo_n "(cached) " >&6
15684 else
15685 ac_check_lib_save_LIBS=$LIBS
15686 LIBS="-lm $LIBS"
15687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15688 /* end confdefs.h. */
15690 /* Override any GCC internal prototype to avoid an error.
15691 Use char because int might match the return type of a GCC
15692 builtin and then its argument prototype would still apply. */
15693 #ifdef __cplusplus
15694 extern "C"
15695 #endif
15696 char cos ();
15698 main ()
15700 return cos ();
15702 return 0;
15704 _ACEOF
15705 if ac_fn_c_try_link "$LINENO"; then :
15706 ac_cv_lib_m_cos=yes
15707 else
15708 ac_cv_lib_m_cos=no
15710 rm -f core conftest.err conftest.$ac_objext \
15711 conftest$ac_exeext conftest.$ac_ext
15712 LIBS=$ac_check_lib_save_LIBS
15714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
15715 $as_echo "$ac_cv_lib_m_cos" >&6; }
15716 if test "x$ac_cv_lib_m_cos" = xyes; then :
15717 LIBM="-lm"
15721 esac
15726 esac
15728 # Some non-ANSI preprocessors botch requoting inside strings. That's bad
15729 # enough, but on some of those systems, the assert macro relies on requoting
15730 # working properly!
15731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working assert macro" >&5
15732 $as_echo_n "checking for working assert macro... " >&6; }
15733 if ${gas_cv_assert_ok+:} false; then :
15734 $as_echo_n "(cached) " >&6
15735 else
15736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15737 /* end confdefs.h. */
15738 #include <assert.h>
15739 #include <string.h>
15740 #include <stdio.h>
15742 main ()
15745 /* check for requoting problems */
15746 static int a, b, c, d;
15747 static char *s;
15748 assert (!strcmp(s, "foo bar baz quux"));
15749 /* check for newline handling */
15750 assert (a == b
15751 || c == d);
15754 return 0;
15756 _ACEOF
15757 if ac_fn_c_try_link "$LINENO"; then :
15758 gas_cv_assert_ok=yes
15759 else
15760 gas_cv_assert_ok=no
15762 rm -f core conftest.err conftest.$ac_objext \
15763 conftest$ac_exeext conftest.$ac_ext
15765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_assert_ok" >&5
15766 $as_echo "$gas_cv_assert_ok" >&6; }
15767 test $gas_cv_assert_ok = yes ||
15768 $as_echo "#define BROKEN_ASSERT 1" >>confdefs.h
15772 # On some systems, the system header files may not declare malloc, realloc,
15773 # and free. There are places where gas needs these functions to have been
15774 # declared -- such as when taking their addresses.
15775 gas_test_headers="
15776 #ifdef HAVE_MEMORY_H
15777 #include <memory.h>
15778 #endif
15779 #include <string.h>
15780 #include <stdlib.h>
15781 #ifdef HAVE_UNISTD_H
15782 #include <unistd.h>
15783 #endif
15786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a known getopt prototype in unistd.h" >&5
15787 $as_echo_n "checking for a known getopt prototype in unistd.h... " >&6; }
15788 if ${gas_cv_decl_getopt_unistd_h+:} false; then :
15789 $as_echo_n "(cached) " >&6
15790 else
15791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15792 /* end confdefs.h. */
15793 #include <unistd.h>
15795 main ()
15797 extern int getopt (int, char *const*, const char *);
15799 return 0;
15801 _ACEOF
15802 if ac_fn_c_try_compile "$LINENO"; then :
15803 gas_cv_decl_getopt_unistd_h=yes
15804 else
15805 gas_cv_decl_getopt_unistd_h=no
15807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_getopt_unistd_h" >&5
15811 $as_echo "$gas_cv_decl_getopt_unistd_h" >&6; }
15812 if test $gas_cv_decl_getopt_unistd_h = yes; then
15814 $as_echo "#define HAVE_DECL_GETOPT 1" >>confdefs.h
15819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for environ" >&5
15820 $as_echo_n "checking whether declaration is required for environ... " >&6; }
15821 if ${gas_cv_decl_needed_environ+:} false; then :
15822 $as_echo_n "(cached) " >&6
15823 else
15824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15825 /* end confdefs.h. */
15826 $gas_test_headers
15828 main ()
15831 typedef char **f;
15832 f x;
15833 x = (f) environ;
15836 return 0;
15838 _ACEOF
15839 if ac_fn_c_try_link "$LINENO"; then :
15840 gas_cv_decl_needed_environ=no
15841 else
15842 gas_cv_decl_needed_environ=yes
15844 rm -f core conftest.err conftest.$ac_objext \
15845 conftest$ac_exeext conftest.$ac_ext
15847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_environ" >&5
15848 $as_echo "$gas_cv_decl_needed_environ" >&6; }
15849 if test $gas_cv_decl_needed_environ = yes; then
15851 $as_echo "#define NEED_DECLARATION_ENVIRON 1" >>confdefs.h
15856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for ffs" >&5
15857 $as_echo_n "checking whether declaration is required for ffs... " >&6; }
15858 if ${gas_cv_decl_needed_ffs+:} false; then :
15859 $as_echo_n "(cached) " >&6
15860 else
15861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15862 /* end confdefs.h. */
15863 $gas_test_headers
15865 main ()
15868 typedef int (*f)(int);
15869 f x;
15870 x = (f) ffs;
15873 return 0;
15875 _ACEOF
15876 if ac_fn_c_try_link "$LINENO"; then :
15877 gas_cv_decl_needed_ffs=no
15878 else
15879 gas_cv_decl_needed_ffs=yes
15881 rm -f core conftest.err conftest.$ac_objext \
15882 conftest$ac_exeext conftest.$ac_ext
15884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_ffs" >&5
15885 $as_echo "$gas_cv_decl_needed_ffs" >&6; }
15886 if test $gas_cv_decl_needed_ffs = yes; then
15888 $as_echo "#define NEED_DECLARATION_FFS 1" >>confdefs.h
15893 ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
15894 if test "x$ac_cv_have_decl_asprintf" = xyes; then :
15895 ac_have_decl=1
15896 else
15897 ac_have_decl=0
15900 cat >>confdefs.h <<_ACEOF
15901 #define HAVE_DECL_ASPRINTF $ac_have_decl
15902 _ACEOF
15903 ac_fn_c_check_decl "$LINENO" "mempcpy" "ac_cv_have_decl_mempcpy" "$ac_includes_default"
15904 if test "x$ac_cv_have_decl_mempcpy" = xyes; then :
15905 ac_have_decl=1
15906 else
15907 ac_have_decl=0
15910 cat >>confdefs.h <<_ACEOF
15911 #define HAVE_DECL_MEMPCPY $ac_have_decl
15912 _ACEOF
15913 ac_fn_c_check_decl "$LINENO" "stpcpy" "ac_cv_have_decl_stpcpy" "$ac_includes_default"
15914 if test "x$ac_cv_have_decl_stpcpy" = xyes; then :
15915 ac_have_decl=1
15916 else
15917 ac_have_decl=0
15920 cat >>confdefs.h <<_ACEOF
15921 #define HAVE_DECL_STPCPY $ac_have_decl
15922 _ACEOF
15926 case "${host}" in
15927 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
15929 $as_echo "#define USE_BINARY_FOPEN 1" >>confdefs.h
15931 esac
15933 # Link in zlib/zstd if we can. This allows us to write compressed debug sections.
15935 # Use the system's zlib library.
15936 zlibdir="-L\$(top_builddir)/../zlib"
15937 zlibinc="-I\$(top_srcdir)/../zlib"
15939 # Check whether --with-system-zlib was given.
15940 if test "${with_system_zlib+set}" = set; then :
15941 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
15942 zlibdir=
15943 zlibinc=
15958 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
15959 if test -n "$ac_tool_prefix"; then
15960 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
15961 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
15962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15963 $as_echo_n "checking for $ac_word... " >&6; }
15964 if ${ac_cv_path_PKG_CONFIG+:} false; then :
15965 $as_echo_n "(cached) " >&6
15966 else
15967 case $PKG_CONFIG in
15968 [\\/]* | ?:[\\/]*)
15969 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
15972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15973 for as_dir in $PATH
15975 IFS=$as_save_IFS
15976 test -z "$as_dir" && as_dir=.
15977 for ac_exec_ext in '' $ac_executable_extensions; do
15978 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15979 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15981 break 2
15983 done
15984 done
15985 IFS=$as_save_IFS
15988 esac
15990 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
15991 if test -n "$PKG_CONFIG"; then
15992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
15993 $as_echo "$PKG_CONFIG" >&6; }
15994 else
15995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15996 $as_echo "no" >&6; }
16001 if test -z "$ac_cv_path_PKG_CONFIG"; then
16002 ac_pt_PKG_CONFIG=$PKG_CONFIG
16003 # Extract the first word of "pkg-config", so it can be a program name with args.
16004 set dummy pkg-config; ac_word=$2
16005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16006 $as_echo_n "checking for $ac_word... " >&6; }
16007 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
16008 $as_echo_n "(cached) " >&6
16009 else
16010 case $ac_pt_PKG_CONFIG in
16011 [\\/]* | ?:[\\/]*)
16012 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
16015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16016 for as_dir in $PATH
16018 IFS=$as_save_IFS
16019 test -z "$as_dir" && as_dir=.
16020 for ac_exec_ext in '' $ac_executable_extensions; do
16021 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16022 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16024 break 2
16026 done
16027 done
16028 IFS=$as_save_IFS
16031 esac
16033 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
16034 if test -n "$ac_pt_PKG_CONFIG"; then
16035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
16036 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
16037 else
16038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16039 $as_echo "no" >&6; }
16042 if test "x$ac_pt_PKG_CONFIG" = x; then
16043 PKG_CONFIG=""
16044 else
16045 case $cross_compiling:$ac_tool_warned in
16046 yes:)
16047 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16048 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16049 ac_tool_warned=yes ;;
16050 esac
16051 PKG_CONFIG=$ac_pt_PKG_CONFIG
16053 else
16054 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
16058 if test -n "$PKG_CONFIG"; then
16059 _pkg_min_version=0.9.0
16060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
16061 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
16062 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
16063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16064 $as_echo "yes" >&6; }
16065 else
16066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16067 $as_echo "no" >&6; }
16068 PKG_CONFIG=""
16073 # Check whether --with-zstd was given.
16074 if test "${with_zstd+set}" = set; then :
16075 withval=$with_zstd;
16076 else
16077 with_zstd=auto
16081 if test "$with_zstd" != no; then :
16083 pkg_failed=no
16084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libzstd >= 1.4.0" >&5
16085 $as_echo_n "checking for libzstd >= 1.4.0... " >&6; }
16087 if test -n "$ZSTD_CFLAGS"; then
16088 pkg_cv_ZSTD_CFLAGS="$ZSTD_CFLAGS"
16089 elif test -n "$PKG_CONFIG"; then
16090 if test -n "$PKG_CONFIG" && \
16091 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libzstd >= 1.4.0\""; } >&5
16092 ($PKG_CONFIG --exists --print-errors "libzstd >= 1.4.0") 2>&5
16093 ac_status=$?
16094 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16095 test $ac_status = 0; }; then
16096 pkg_cv_ZSTD_CFLAGS=`$PKG_CONFIG --cflags "libzstd >= 1.4.0" 2>/dev/null`
16097 test "x$?" != "x0" && pkg_failed=yes
16098 else
16099 pkg_failed=yes
16101 else
16102 pkg_failed=untried
16104 if test -n "$ZSTD_LIBS"; then
16105 pkg_cv_ZSTD_LIBS="$ZSTD_LIBS"
16106 elif test -n "$PKG_CONFIG"; then
16107 if test -n "$PKG_CONFIG" && \
16108 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libzstd >= 1.4.0\""; } >&5
16109 ($PKG_CONFIG --exists --print-errors "libzstd >= 1.4.0") 2>&5
16110 ac_status=$?
16111 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16112 test $ac_status = 0; }; then
16113 pkg_cv_ZSTD_LIBS=`$PKG_CONFIG --libs "libzstd >= 1.4.0" 2>/dev/null`
16114 test "x$?" != "x0" && pkg_failed=yes
16115 else
16116 pkg_failed=yes
16118 else
16119 pkg_failed=untried
16122 if test $pkg_failed = no; then
16123 pkg_save_LDFLAGS="$LDFLAGS"
16124 LDFLAGS="$LDFLAGS $pkg_cv_ZSTD_LIBS"
16125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16126 /* end confdefs.h. */
16129 main ()
16133 return 0;
16135 _ACEOF
16136 if ac_fn_c_try_link "$LINENO"; then :
16138 else
16139 pkg_failed=yes
16141 rm -f core conftest.err conftest.$ac_objext \
16142 conftest$ac_exeext conftest.$ac_ext
16143 LDFLAGS=$pkg_save_LDFLAGS
16148 if test $pkg_failed = yes; then
16149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16150 $as_echo "no" >&6; }
16152 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16153 _pkg_short_errors_supported=yes
16154 else
16155 _pkg_short_errors_supported=no
16157 if test $_pkg_short_errors_supported = yes; then
16158 ZSTD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libzstd >= 1.4.0" 2>&1`
16159 else
16160 ZSTD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libzstd >= 1.4.0" 2>&1`
16162 # Put the nasty error message in config.log where it belongs
16163 echo "$ZSTD_PKG_ERRORS" >&5
16166 if test "$with_zstd" = yes; then
16167 as_fn_error $? "--with-zstd was given, but pkgconfig/libzstd.pc is not found" "$LINENO" 5
16170 elif test $pkg_failed = untried; then
16171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16172 $as_echo "no" >&6; }
16174 if test "$with_zstd" = yes; then
16175 as_fn_error $? "--with-zstd was given, but pkgconfig/libzstd.pc is not found" "$LINENO" 5
16178 else
16179 ZSTD_CFLAGS=$pkg_cv_ZSTD_CFLAGS
16180 ZSTD_LIBS=$pkg_cv_ZSTD_LIBS
16181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16182 $as_echo "yes" >&6; }
16185 $as_echo "#define HAVE_ZSTD 1" >>confdefs.h
16193 # Support for VMS timestamps via cross compile
16195 if test "$ac_cv_header_time_h" = yes; then
16196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tm.tm_gmtoff in time.h" >&5
16197 $as_echo_n "checking for struct tm.tm_gmtoff in time.h... " >&6; }
16198 if ${gas_cv_have_time_type_member_tm_gmtoff+:} false; then :
16199 $as_echo_n "(cached) " >&6
16200 else
16201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16202 /* end confdefs.h. */
16204 #define _BSD_SOURCE 1
16205 #include <time.h>
16207 main ()
16209 struct tm avar; void* aref = (void*) &avar.tm_gmtoff
16211 return 0;
16213 _ACEOF
16214 if ac_fn_c_try_compile "$LINENO"; then :
16215 gas_cv_have_time_type_member_tm_gmtoff=yes
16216 else
16217 gas_cv_have_time_type_member_tm_gmtoff=no
16220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16223 if test $gas_cv_have_time_type_member_tm_gmtoff = yes; then
16225 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
16228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_have_time_type_member_tm_gmtoff" >&5
16229 $as_echo "$gas_cv_have_time_type_member_tm_gmtoff" >&6; }
16233 if test "$ac_cv_header_sys_stat_h" = yes; then
16234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct stat.st_mtim.tv_sec in sys/stat.h" >&5
16235 $as_echo_n "checking for struct stat.st_mtim.tv_sec in sys/stat.h... " >&6; }
16236 if ${gas_cv_have_sys_stat_type_member_st_mtim_tv_sec+:} false; then :
16237 $as_echo_n "(cached) " >&6
16238 else
16239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16240 /* end confdefs.h. */
16242 #define _BSD_SOURCE 1
16243 #include <sys/stat.h>
16245 main ()
16247 struct stat avar; void* aref = (void*) &avar.st_mtim.tv_sec
16249 return 0;
16251 _ACEOF
16252 if ac_fn_c_try_compile "$LINENO"; then :
16253 gas_cv_have_sys_stat_type_member_st_mtim_tv_sec=yes
16254 else
16255 gas_cv_have_sys_stat_type_member_st_mtim_tv_sec=no
16258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16261 if test $gas_cv_have_sys_stat_type_member_st_mtim_tv_sec = yes; then
16263 $as_echo "#define HAVE_ST_MTIM_TV_SEC 1" >>confdefs.h
16266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_have_sys_stat_type_member_st_mtim_tv_sec" >&5
16267 $as_echo "$gas_cv_have_sys_stat_type_member_st_mtim_tv_sec" >&6; }
16269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct stat.st_mtim.tv_nsec in sys/stat.h" >&5
16270 $as_echo_n "checking for struct stat.st_mtim.tv_nsec in sys/stat.h... " >&6; }
16271 if ${gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec+:} false; then :
16272 $as_echo_n "(cached) " >&6
16273 else
16274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16275 /* end confdefs.h. */
16277 #define _BSD_SOURCE 1
16278 #include <sys/stat.h>
16280 main ()
16282 struct stat avar; void* aref = (void*) &avar.st_mtim.tv_nsec
16284 return 0;
16286 _ACEOF
16287 if ac_fn_c_try_compile "$LINENO"; then :
16288 gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec=yes
16289 else
16290 gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec=no
16293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16296 if test $gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec = yes; then
16298 $as_echo "#define HAVE_ST_MTIM_TV_NSEC 1" >>confdefs.h
16301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec" >&5
16302 $as_echo "$gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec" >&6; }
16314 ac_config_files="$ac_config_files Makefile po/Makefile.in:po/Make-in"
16316 ac_config_commands="$ac_config_commands default"
16319 cat >confcache <<\_ACEOF
16320 # This file is a shell script that caches the results of configure
16321 # tests run on this system so they can be shared between configure
16322 # scripts and configure runs, see configure's option --config-cache.
16323 # It is not useful on other systems. If it contains results you don't
16324 # want to keep, you may remove or edit it.
16326 # config.status only pays attention to the cache file if you give it
16327 # the --recheck option to rerun configure.
16329 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16330 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16331 # following values.
16333 _ACEOF
16335 # The following way of writing the cache mishandles newlines in values,
16336 # but we know of no workaround that is simple, portable, and efficient.
16337 # So, we kill variables containing newlines.
16338 # Ultrix sh set writes to stderr and can't be redirected directly,
16339 # and sets the high bit in the cache file unless we assign to the vars.
16341 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16342 eval ac_val=\$$ac_var
16343 case $ac_val in #(
16344 *${as_nl}*)
16345 case $ac_var in #(
16346 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16347 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16348 esac
16349 case $ac_var in #(
16350 _ | IFS | as_nl) ;; #(
16351 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16352 *) { eval $ac_var=; unset $ac_var;} ;;
16353 esac ;;
16354 esac
16355 done
16357 (set) 2>&1 |
16358 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16359 *${as_nl}ac_space=\ *)
16360 # `set' does not quote correctly, so add quotes: double-quote
16361 # substitution turns \\\\ into \\, and sed turns \\ into \.
16362 sed -n \
16363 "s/'/'\\\\''/g;
16364 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16365 ;; #(
16367 # `set' quotes correctly as required by POSIX, so do not add quotes.
16368 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16370 esac |
16371 sort
16373 sed '
16374 /^ac_cv_env_/b end
16375 t clear
16376 :clear
16377 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16378 t end
16379 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16380 :end' >>confcache
16381 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16382 if test -w "$cache_file"; then
16383 if test "x$cache_file" != "x/dev/null"; then
16384 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16385 $as_echo "$as_me: updating cache $cache_file" >&6;}
16386 if test ! -f "$cache_file" || test -h "$cache_file"; then
16387 cat confcache >"$cache_file"
16388 else
16389 case $cache_file in #(
16390 */* | ?:*)
16391 mv -f confcache "$cache_file"$$ &&
16392 mv -f "$cache_file"$$ "$cache_file" ;; #(
16394 mv -f confcache "$cache_file" ;;
16395 esac
16398 else
16399 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16400 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16403 rm -f confcache
16405 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16406 # Let make expand exec_prefix.
16407 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16409 DEFS=-DHAVE_CONFIG_H
16411 ac_libobjs=
16412 ac_ltlibobjs=
16414 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16415 # 1. Remove the extension, and $U if already installed.
16416 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16417 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16418 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16419 # will be set to the directory where LIBOBJS objects are built.
16420 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16421 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16422 done
16423 LIBOBJS=$ac_libobjs
16425 LTLIBOBJS=$ac_ltlibobjs
16428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
16429 $as_echo_n "checking that generated files are newer than configure... " >&6; }
16430 if test -n "$am_sleep_pid"; then
16431 # Hide warnings about reused PIDs.
16432 wait $am_sleep_pid 2>/dev/null
16434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16435 $as_echo "done" >&6; }
16436 if test -n "$EXEEXT"; then
16437 am__EXEEXT_TRUE=
16438 am__EXEEXT_FALSE='#'
16439 else
16440 am__EXEEXT_TRUE='#'
16441 am__EXEEXT_FALSE=
16444 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16445 as_fn_error $? "conditional \"AMDEP\" was never defined.
16446 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16448 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16449 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16450 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16453 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16454 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
16455 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16457 if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
16458 as_fn_error $? "conditional \"GENINSRC_NEVER\" was never defined.
16459 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16462 : "${CONFIG_STATUS=./config.status}"
16463 ac_write_fail=0
16464 ac_clean_files_save=$ac_clean_files
16465 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16466 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16467 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16468 as_write_fail=0
16469 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16470 #! $SHELL
16471 # Generated by $as_me.
16472 # Run this file to recreate the current configuration.
16473 # Compiler output produced by configure, useful for debugging
16474 # configure, is in config.log if it exists.
16476 debug=false
16477 ac_cs_recheck=false
16478 ac_cs_silent=false
16480 SHELL=\${CONFIG_SHELL-$SHELL}
16481 export SHELL
16482 _ASEOF
16483 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16484 ## -------------------- ##
16485 ## M4sh Initialization. ##
16486 ## -------------------- ##
16488 # Be more Bourne compatible
16489 DUALCASE=1; export DUALCASE # for MKS sh
16490 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16491 emulate sh
16492 NULLCMD=:
16493 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16494 # is contrary to our usage. Disable this feature.
16495 alias -g '${1+"$@"}'='"$@"'
16496 setopt NO_GLOB_SUBST
16497 else
16498 case `(set -o) 2>/dev/null` in #(
16499 *posix*) :
16500 set -o posix ;; #(
16501 *) :
16503 esac
16507 as_nl='
16509 export as_nl
16510 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16511 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16512 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16513 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16514 # Prefer a ksh shell builtin over an external printf program on Solaris,
16515 # but without wasting forks for bash or zsh.
16516 if test -z "$BASH_VERSION$ZSH_VERSION" \
16517 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16518 as_echo='print -r --'
16519 as_echo_n='print -rn --'
16520 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16521 as_echo='printf %s\n'
16522 as_echo_n='printf %s'
16523 else
16524 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16525 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16526 as_echo_n='/usr/ucb/echo -n'
16527 else
16528 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16529 as_echo_n_body='eval
16530 arg=$1;
16531 case $arg in #(
16532 *"$as_nl"*)
16533 expr "X$arg" : "X\\(.*\\)$as_nl";
16534 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16535 esac;
16536 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16538 export as_echo_n_body
16539 as_echo_n='sh -c $as_echo_n_body as_echo'
16541 export as_echo_body
16542 as_echo='sh -c $as_echo_body as_echo'
16545 # The user is always right.
16546 if test "${PATH_SEPARATOR+set}" != set; then
16547 PATH_SEPARATOR=:
16548 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16549 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16550 PATH_SEPARATOR=';'
16555 # IFS
16556 # We need space, tab and new line, in precisely that order. Quoting is
16557 # there to prevent editors from complaining about space-tab.
16558 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16559 # splitting by setting IFS to empty value.)
16560 IFS=" "" $as_nl"
16562 # Find who we are. Look in the path if we contain no directory separator.
16563 as_myself=
16564 case $0 in #((
16565 *[\\/]* ) as_myself=$0 ;;
16566 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16567 for as_dir in $PATH
16569 IFS=$as_save_IFS
16570 test -z "$as_dir" && as_dir=.
16571 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16572 done
16573 IFS=$as_save_IFS
16576 esac
16577 # We did not find ourselves, most probably we were run as `sh COMMAND'
16578 # in which case we are not to be found in the path.
16579 if test "x$as_myself" = x; then
16580 as_myself=$0
16582 if test ! -f "$as_myself"; then
16583 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16584 exit 1
16587 # Unset variables that we do not need and which cause bugs (e.g. in
16588 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16589 # suppresses any "Segmentation fault" message there. '((' could
16590 # trigger a bug in pdksh 5.2.14.
16591 for as_var in BASH_ENV ENV MAIL MAILPATH
16592 do eval test x\${$as_var+set} = xset \
16593 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16594 done
16595 PS1='$ '
16596 PS2='> '
16597 PS4='+ '
16599 # NLS nuisances.
16600 LC_ALL=C
16601 export LC_ALL
16602 LANGUAGE=C
16603 export LANGUAGE
16605 # CDPATH.
16606 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16609 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16610 # ----------------------------------------
16611 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16612 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16613 # script with STATUS, using 1 if that was 0.
16614 as_fn_error ()
16616 as_status=$1; test $as_status -eq 0 && as_status=1
16617 if test "$4"; then
16618 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16619 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16621 $as_echo "$as_me: error: $2" >&2
16622 as_fn_exit $as_status
16623 } # as_fn_error
16626 # as_fn_set_status STATUS
16627 # -----------------------
16628 # Set $? to STATUS, without forking.
16629 as_fn_set_status ()
16631 return $1
16632 } # as_fn_set_status
16634 # as_fn_exit STATUS
16635 # -----------------
16636 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16637 as_fn_exit ()
16639 set +e
16640 as_fn_set_status $1
16641 exit $1
16642 } # as_fn_exit
16644 # as_fn_unset VAR
16645 # ---------------
16646 # Portably unset VAR.
16647 as_fn_unset ()
16649 { eval $1=; unset $1;}
16651 as_unset=as_fn_unset
16652 # as_fn_append VAR VALUE
16653 # ----------------------
16654 # Append the text in VALUE to the end of the definition contained in VAR. Take
16655 # advantage of any shell optimizations that allow amortized linear growth over
16656 # repeated appends, instead of the typical quadratic growth present in naive
16657 # implementations.
16658 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16659 eval 'as_fn_append ()
16661 eval $1+=\$2
16663 else
16664 as_fn_append ()
16666 eval $1=\$$1\$2
16668 fi # as_fn_append
16670 # as_fn_arith ARG...
16671 # ------------------
16672 # Perform arithmetic evaluation on the ARGs, and store the result in the
16673 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16674 # must be portable across $(()) and expr.
16675 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16676 eval 'as_fn_arith ()
16678 as_val=$(( $* ))
16680 else
16681 as_fn_arith ()
16683 as_val=`expr "$@" || test $? -eq 1`
16685 fi # as_fn_arith
16688 if expr a : '\(a\)' >/dev/null 2>&1 &&
16689 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16690 as_expr=expr
16691 else
16692 as_expr=false
16695 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16696 as_basename=basename
16697 else
16698 as_basename=false
16701 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16702 as_dirname=dirname
16703 else
16704 as_dirname=false
16707 as_me=`$as_basename -- "$0" ||
16708 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16709 X"$0" : 'X\(//\)$' \| \
16710 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16711 $as_echo X/"$0" |
16712 sed '/^.*\/\([^/][^/]*\)\/*$/{
16713 s//\1/
16716 /^X\/\(\/\/\)$/{
16717 s//\1/
16720 /^X\/\(\/\).*/{
16721 s//\1/
16724 s/.*/./; q'`
16726 # Avoid depending upon Character Ranges.
16727 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16728 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16729 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16730 as_cr_digits='0123456789'
16731 as_cr_alnum=$as_cr_Letters$as_cr_digits
16733 ECHO_C= ECHO_N= ECHO_T=
16734 case `echo -n x` in #(((((
16735 -n*)
16736 case `echo 'xy\c'` in
16737 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16738 xy) ECHO_C='\c';;
16739 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16740 ECHO_T=' ';;
16741 esac;;
16743 ECHO_N='-n';;
16744 esac
16746 rm -f conf$$ conf$$.exe conf$$.file
16747 if test -d conf$$.dir; then
16748 rm -f conf$$.dir/conf$$.file
16749 else
16750 rm -f conf$$.dir
16751 mkdir conf$$.dir 2>/dev/null
16753 if (echo >conf$$.file) 2>/dev/null; then
16754 if ln -s conf$$.file conf$$ 2>/dev/null; then
16755 as_ln_s='ln -s'
16756 # ... but there are two gotchas:
16757 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16758 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16759 # In both cases, we have to default to `cp -pR'.
16760 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16761 as_ln_s='cp -pR'
16762 elif ln conf$$.file conf$$ 2>/dev/null; then
16763 as_ln_s=ln
16764 else
16765 as_ln_s='cp -pR'
16767 else
16768 as_ln_s='cp -pR'
16770 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16771 rmdir conf$$.dir 2>/dev/null
16774 # as_fn_mkdir_p
16775 # -------------
16776 # Create "$as_dir" as a directory, including parents if necessary.
16777 as_fn_mkdir_p ()
16780 case $as_dir in #(
16781 -*) as_dir=./$as_dir;;
16782 esac
16783 test -d "$as_dir" || eval $as_mkdir_p || {
16784 as_dirs=
16785 while :; do
16786 case $as_dir in #(
16787 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16788 *) as_qdir=$as_dir;;
16789 esac
16790 as_dirs="'$as_qdir' $as_dirs"
16791 as_dir=`$as_dirname -- "$as_dir" ||
16792 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16793 X"$as_dir" : 'X\(//\)[^/]' \| \
16794 X"$as_dir" : 'X\(//\)$' \| \
16795 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16796 $as_echo X"$as_dir" |
16797 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16798 s//\1/
16801 /^X\(\/\/\)[^/].*/{
16802 s//\1/
16805 /^X\(\/\/\)$/{
16806 s//\1/
16809 /^X\(\/\).*/{
16810 s//\1/
16813 s/.*/./; q'`
16814 test -d "$as_dir" && break
16815 done
16816 test -z "$as_dirs" || eval "mkdir $as_dirs"
16817 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16820 } # as_fn_mkdir_p
16821 if mkdir -p . 2>/dev/null; then
16822 as_mkdir_p='mkdir -p "$as_dir"'
16823 else
16824 test -d ./-p && rmdir ./-p
16825 as_mkdir_p=false
16829 # as_fn_executable_p FILE
16830 # -----------------------
16831 # Test if FILE is an executable regular file.
16832 as_fn_executable_p ()
16834 test -f "$1" && test -x "$1"
16835 } # as_fn_executable_p
16836 as_test_x='test -x'
16837 as_executable_p=as_fn_executable_p
16839 # Sed expression to map a string onto a valid CPP name.
16840 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16842 # Sed expression to map a string onto a valid variable name.
16843 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16846 exec 6>&1
16847 ## ----------------------------------- ##
16848 ## Main body of $CONFIG_STATUS script. ##
16849 ## ----------------------------------- ##
16850 _ASEOF
16851 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16853 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16854 # Save the log message, to keep $0 and so on meaningful, and to
16855 # report actual input values of CONFIG_FILES etc. instead of their
16856 # values after options handling.
16857 ac_log="
16858 This file was extended by gas $as_me 2.43.1, which was
16859 generated by GNU Autoconf 2.69. Invocation command line was
16861 CONFIG_FILES = $CONFIG_FILES
16862 CONFIG_HEADERS = $CONFIG_HEADERS
16863 CONFIG_LINKS = $CONFIG_LINKS
16864 CONFIG_COMMANDS = $CONFIG_COMMANDS
16865 $ $0 $@
16867 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16870 _ACEOF
16872 case $ac_config_files in *"
16873 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16874 esac
16876 case $ac_config_headers in *"
16877 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16878 esac
16881 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16882 # Files that config.status was made for.
16883 config_files="$ac_config_files"
16884 config_headers="$ac_config_headers"
16885 config_commands="$ac_config_commands"
16887 _ACEOF
16889 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16890 ac_cs_usage="\
16891 \`$as_me' instantiates files and other configuration actions
16892 from templates according to the current configuration. Unless the files
16893 and actions are specified as TAGs, all are instantiated by default.
16895 Usage: $0 [OPTION]... [TAG]...
16897 -h, --help print this help, then exit
16898 -V, --version print version number and configuration settings, then exit
16899 --config print configuration, then exit
16900 -q, --quiet, --silent
16901 do not print progress messages
16902 -d, --debug don't remove temporary files
16903 --recheck update $as_me by reconfiguring in the same conditions
16904 --file=FILE[:TEMPLATE]
16905 instantiate the configuration file FILE
16906 --header=FILE[:TEMPLATE]
16907 instantiate the configuration header FILE
16909 Configuration files:
16910 $config_files
16912 Configuration headers:
16913 $config_headers
16915 Configuration commands:
16916 $config_commands
16918 Report bugs to the package provider."
16920 _ACEOF
16921 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16922 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16923 ac_cs_version="\\
16924 gas config.status 2.43.1
16925 configured by $0, generated by GNU Autoconf 2.69,
16926 with options \\"\$ac_cs_config\\"
16928 Copyright (C) 2012 Free Software Foundation, Inc.
16929 This config.status script is free software; the Free Software Foundation
16930 gives unlimited permission to copy, distribute and modify it."
16932 ac_pwd='$ac_pwd'
16933 srcdir='$srcdir'
16934 INSTALL='$INSTALL'
16935 MKDIR_P='$MKDIR_P'
16936 AWK='$AWK'
16937 test -n "\$AWK" || AWK=awk
16938 _ACEOF
16940 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16941 # The default lists apply if the user does not specify any file.
16942 ac_need_defaults=:
16943 while test $# != 0
16945 case $1 in
16946 --*=?*)
16947 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16948 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16949 ac_shift=:
16951 --*=)
16952 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16953 ac_optarg=
16954 ac_shift=:
16957 ac_option=$1
16958 ac_optarg=$2
16959 ac_shift=shift
16961 esac
16963 case $ac_option in
16964 # Handling of the options.
16965 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16966 ac_cs_recheck=: ;;
16967 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16968 $as_echo "$ac_cs_version"; exit ;;
16969 --config | --confi | --conf | --con | --co | --c )
16970 $as_echo "$ac_cs_config"; exit ;;
16971 --debug | --debu | --deb | --de | --d | -d )
16972 debug=: ;;
16973 --file | --fil | --fi | --f )
16974 $ac_shift
16975 case $ac_optarg in
16976 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16977 '') as_fn_error $? "missing file argument" ;;
16978 esac
16979 as_fn_append CONFIG_FILES " '$ac_optarg'"
16980 ac_need_defaults=false;;
16981 --header | --heade | --head | --hea )
16982 $ac_shift
16983 case $ac_optarg in
16984 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16985 esac
16986 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16987 ac_need_defaults=false;;
16988 --he | --h)
16989 # Conflict between --help and --header
16990 as_fn_error $? "ambiguous option: \`$1'
16991 Try \`$0 --help' for more information.";;
16992 --help | --hel | -h )
16993 $as_echo "$ac_cs_usage"; exit ;;
16994 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16995 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16996 ac_cs_silent=: ;;
16998 # This is an error.
16999 -*) as_fn_error $? "unrecognized option: \`$1'
17000 Try \`$0 --help' for more information." ;;
17002 *) as_fn_append ac_config_targets " $1"
17003 ac_need_defaults=false ;;
17005 esac
17006 shift
17007 done
17009 ac_configure_extra_args=
17011 if $ac_cs_silent; then
17012 exec 6>/dev/null
17013 ac_configure_extra_args="$ac_configure_extra_args --silent"
17016 _ACEOF
17017 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17018 if \$ac_cs_recheck; then
17019 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17020 shift
17021 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17022 CONFIG_SHELL='$SHELL'
17023 export CONFIG_SHELL
17024 exec "\$@"
17027 _ACEOF
17028 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17029 exec 5>>config.log
17031 echo
17032 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17033 ## Running $as_me. ##
17034 _ASBOX
17035 $as_echo "$ac_log"
17036 } >&5
17038 _ACEOF
17039 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17041 # INIT-COMMANDS
17043 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17046 # The HP-UX ksh and POSIX shell print the target directory to stdout
17047 # if CDPATH is set.
17048 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17050 sed_quote_subst='$sed_quote_subst'
17051 double_quote_subst='$double_quote_subst'
17052 delay_variable_subst='$delay_variable_subst'
17053 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17054 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17055 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17056 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17057 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17058 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17059 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17060 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17061 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17062 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17063 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17064 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17065 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17066 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17067 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17068 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17069 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17070 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17071 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17072 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17073 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17074 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17075 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17076 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17077 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17078 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17079 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17080 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17081 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17082 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17083 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17084 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17085 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17086 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17087 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17088 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17089 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17090 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17091 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17092 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17093 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17094 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17095 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17096 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17097 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17098 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17099 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17100 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17101 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"`'
17102 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17103 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17104 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17105 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17106 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17107 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17108 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17109 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17110 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17111 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17112 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17113 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17114 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17115 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17116 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17117 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17118 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17119 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17120 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17121 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17122 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17123 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17124 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17125 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17126 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17127 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17128 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17129 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17130 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17131 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17132 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17133 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
17134 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17135 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17136 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17137 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17138 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17139 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17140 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17141 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17142 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
17143 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17144 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17145 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17146 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17147 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17148 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17149 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17150 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17151 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17152 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17153 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17154 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17155 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17156 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17157 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17158 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17159 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17160 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17161 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17162 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17163 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17164 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17165 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17166 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17167 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17168 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17169 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17170 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17171 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17172 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17174 LTCC='$LTCC'
17175 LTCFLAGS='$LTCFLAGS'
17176 compiler='$compiler_DEFAULT'
17178 # A function that is used when there is no print builtin or printf.
17179 func_fallback_echo ()
17181 eval 'cat <<_LTECHO_EOF
17183 _LTECHO_EOF'
17186 # Quote evaled strings.
17187 for var in SHELL \
17188 ECHO \
17189 SED \
17190 GREP \
17191 EGREP \
17192 FGREP \
17193 LD \
17194 NM \
17195 LN_S \
17196 lt_SP2NL \
17197 lt_NL2SP \
17198 reload_flag \
17199 OBJDUMP \
17200 deplibs_check_method \
17201 file_magic_cmd \
17202 AR \
17203 AR_FLAGS \
17204 STRIP \
17205 RANLIB \
17206 CC \
17207 CFLAGS \
17208 compiler \
17209 lt_cv_sys_global_symbol_pipe \
17210 lt_cv_sys_global_symbol_to_cdecl \
17211 lt_cv_sys_global_symbol_to_c_name_address \
17212 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17213 lt_prog_compiler_no_builtin_flag \
17214 lt_prog_compiler_wl \
17215 lt_prog_compiler_pic \
17216 lt_prog_compiler_static \
17217 lt_cv_prog_compiler_c_o \
17218 need_locks \
17219 DSYMUTIL \
17220 NMEDIT \
17221 LIPO \
17222 OTOOL \
17223 OTOOL64 \
17224 shrext_cmds \
17225 export_dynamic_flag_spec \
17226 whole_archive_flag_spec \
17227 compiler_needs_object \
17228 with_gnu_ld \
17229 allow_undefined_flag \
17230 no_undefined_flag \
17231 hardcode_libdir_flag_spec \
17232 hardcode_libdir_flag_spec_ld \
17233 hardcode_libdir_separator \
17234 fix_srcfile_path \
17235 exclude_expsyms \
17236 include_expsyms \
17237 file_list_spec \
17238 variables_saved_for_relink \
17239 libname_spec \
17240 library_names_spec \
17241 soname_spec \
17242 install_override_mode \
17243 finish_eval \
17244 old_striplib \
17245 striplib; do
17246 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17247 *[\\\\\\\`\\"\\\$]*)
17248 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17251 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17253 esac
17254 done
17256 # Double-quote double-evaled strings.
17257 for var in reload_cmds \
17258 old_postinstall_cmds \
17259 old_postuninstall_cmds \
17260 old_archive_cmds \
17261 extract_expsyms_cmds \
17262 old_archive_from_new_cmds \
17263 old_archive_from_expsyms_cmds \
17264 archive_cmds \
17265 archive_expsym_cmds \
17266 module_cmds \
17267 module_expsym_cmds \
17268 export_symbols_cmds \
17269 prelink_cmds \
17270 postinstall_cmds \
17271 postuninstall_cmds \
17272 finish_cmds \
17273 sys_lib_search_path_spec \
17274 sys_lib_dlsearch_path_spec; do
17275 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17276 *[\\\\\\\`\\"\\\$]*)
17277 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17280 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17282 esac
17283 done
17285 ac_aux_dir='$ac_aux_dir'
17286 xsi_shell='$xsi_shell'
17287 lt_shell_append='$lt_shell_append'
17289 # See if we are running on zsh, and set the options which allow our
17290 # commands through without removal of \ escapes INIT.
17291 if test -n "\${ZSH_VERSION+set}" ; then
17292 setopt NO_GLOB_SUBST
17296 PACKAGE='$PACKAGE'
17297 VERSION='$VERSION'
17298 TIMESTAMP='$TIMESTAMP'
17299 RM='$RM'
17300 ofile='$ofile'
17304 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
17305 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
17306 # from automake.
17307 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
17308 # Capture the value of LINGUAS because we need it to compute CATALOGS.
17309 LINGUAS="${LINGUAS-%UNSET%}"
17311 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
17312 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
17313 # from automake.
17314 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
17315 # Capture the value of LINGUAS because we need it to compute CATALOGS.
17316 LINGUAS="${LINGUAS-%UNSET%}"
17318 target_cpu_type=${target_cpu_type}
17319 cgen_cpu_prefix=${cgen_cpu_prefix}
17320 obj_format=${obj_format}
17321 te_file=${te_file}
17323 _ACEOF
17325 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17327 # Handling of arguments.
17328 for ac_config_target in $ac_config_targets
17330 case $ac_config_target in
17331 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17332 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17333 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
17334 "gdb.ini") CONFIG_FILES="$CONFIG_FILES gdb.ini:gdbinit.in" ;;
17335 ".gdbinit") CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
17336 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
17337 "default-2") CONFIG_COMMANDS="$CONFIG_COMMANDS default-2" ;;
17338 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17339 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
17340 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
17342 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17343 esac
17344 done
17347 # If the user did not use the arguments to specify the items to instantiate,
17348 # then the envvar interface is used. Set only those that are not.
17349 # We use the long form for the default assignment because of an extremely
17350 # bizarre bug on SunOS 4.1.3.
17351 if $ac_need_defaults; then
17352 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17353 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17354 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17357 # Have a temporary directory for convenience. Make it in the build tree
17358 # simply because there is no reason against having it here, and in addition,
17359 # creating and moving files from /tmp can sometimes cause problems.
17360 # Hook for its removal unless debugging.
17361 # Note that there is a small window in which the directory will not be cleaned:
17362 # after its creation but before its name has been assigned to `$tmp'.
17363 $debug ||
17365 tmp= ac_tmp=
17366 trap 'exit_status=$?
17367 : "${ac_tmp:=$tmp}"
17368 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17370 trap 'as_fn_exit 1' 1 2 13 15
17372 # Create a (secure) tmp directory for tmp files.
17375 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17376 test -d "$tmp"
17377 } ||
17379 tmp=./conf$$-$RANDOM
17380 (umask 077 && mkdir "$tmp")
17381 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17382 ac_tmp=$tmp
17384 # Set up the scripts for CONFIG_FILES section.
17385 # No need to generate them if there are no CONFIG_FILES.
17386 # This happens for instance with `./config.status config.h'.
17387 if test -n "$CONFIG_FILES"; then
17390 ac_cr=`echo X | tr X '\015'`
17391 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17392 # But we know of no other shell where ac_cr would be empty at this
17393 # point, so we can use a bashism as a fallback.
17394 if test "x$ac_cr" = x; then
17395 eval ac_cr=\$\'\\r\'
17397 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17398 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17399 ac_cs_awk_cr='\\r'
17400 else
17401 ac_cs_awk_cr=$ac_cr
17404 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17405 _ACEOF
17409 echo "cat >conf$$subs.awk <<_ACEOF" &&
17410 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17411 echo "_ACEOF"
17412 } >conf$$subs.sh ||
17413 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17414 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17415 ac_delim='%!_!# '
17416 for ac_last_try in false false false false false :; do
17417 . ./conf$$subs.sh ||
17418 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17420 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17421 if test $ac_delim_n = $ac_delim_num; then
17422 break
17423 elif $ac_last_try; then
17424 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17425 else
17426 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17428 done
17429 rm -f conf$$subs.sh
17431 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17432 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17433 _ACEOF
17434 sed -n '
17436 s/^/S["/; s/!.*/"]=/
17439 s/^[^!]*!//
17440 :repl
17441 t repl
17442 s/'"$ac_delim"'$//
17443 t delim
17446 s/\(.\{148\}\)..*/\1/
17447 t more1
17448 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17451 b repl
17452 :more1
17453 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17456 s/.\{148\}//
17457 t nl
17458 :delim
17460 s/\(.\{148\}\)..*/\1/
17461 t more2
17462 s/["\\]/\\&/g; s/^/"/; s/$/"/
17465 :more2
17466 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17469 s/.\{148\}//
17470 t delim
17471 ' <conf$$subs.awk | sed '
17472 /^[^""]/{
17474 s/\n//
17476 ' >>$CONFIG_STATUS || ac_write_fail=1
17477 rm -f conf$$subs.awk
17478 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17479 _ACAWK
17480 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17481 for (key in S) S_is_set[key] = 1
17482 FS = "\a"
17486 line = $ 0
17487 nfields = split(line, field, "@")
17488 substed = 0
17489 len = length(field[1])
17490 for (i = 2; i < nfields; i++) {
17491 key = field[i]
17492 keylen = length(key)
17493 if (S_is_set[key]) {
17494 value = S[key]
17495 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17496 len += length(value) + length(field[++i])
17497 substed = 1
17498 } else
17499 len += 1 + keylen
17502 print line
17505 _ACAWK
17506 _ACEOF
17507 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17508 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17509 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17510 else
17512 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17513 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17514 _ACEOF
17516 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17517 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17518 # trailing colons and then remove the whole line if VPATH becomes empty
17519 # (actually we leave an empty line to preserve line numbers).
17520 if test "x$srcdir" = x.; then
17521 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17523 s///
17524 s/^/:/
17525 s/[ ]*$/:/
17526 s/:\$(srcdir):/:/g
17527 s/:\${srcdir}:/:/g
17528 s/:@srcdir@:/:/g
17529 s/^:*//
17530 s/:*$//
17532 s/\(=[ ]*\).*/\1/
17534 s/\n//
17535 s/^[^=]*=[ ]*$//
17539 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17540 fi # test -n "$CONFIG_FILES"
17542 # Set up the scripts for CONFIG_HEADERS section.
17543 # No need to generate them if there are no CONFIG_HEADERS.
17544 # This happens for instance with `./config.status Makefile'.
17545 if test -n "$CONFIG_HEADERS"; then
17546 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17547 BEGIN {
17548 _ACEOF
17550 # Transform confdefs.h into an awk script `defines.awk', embedded as
17551 # here-document in config.status, that substitutes the proper values into
17552 # config.h.in to produce config.h.
17554 # Create a delimiter string that does not exist in confdefs.h, to ease
17555 # handling of long lines.
17556 ac_delim='%!_!# '
17557 for ac_last_try in false false :; do
17558 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17559 if test -z "$ac_tt"; then
17560 break
17561 elif $ac_last_try; then
17562 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17563 else
17564 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17566 done
17568 # For the awk script, D is an array of macro values keyed by name,
17569 # likewise P contains macro parameters if any. Preserve backslash
17570 # newline sequences.
17572 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17573 sed -n '
17574 s/.\{148\}/&'"$ac_delim"'/g
17575 t rset
17576 :rset
17577 s/^[ ]*#[ ]*define[ ][ ]*/ /
17578 t def
17580 :def
17581 s/\\$//
17582 t bsnl
17583 s/["\\]/\\&/g
17584 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17585 D["\1"]=" \3"/p
17586 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17588 :bsnl
17589 s/["\\]/\\&/g
17590 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17591 D["\1"]=" \3\\\\\\n"\\/p
17592 t cont
17593 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17594 t cont
17596 :cont
17598 s/.\{148\}/&'"$ac_delim"'/g
17599 t clear
17600 :clear
17601 s/\\$//
17602 t bsnlc
17603 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17605 :bsnlc
17606 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17607 b cont
17608 ' <confdefs.h | sed '
17609 s/'"$ac_delim"'/"\\\
17610 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17612 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17613 for (key in D) D_is_set[key] = 1
17614 FS = "\a"
17616 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17617 line = \$ 0
17618 split(line, arg, " ")
17619 if (arg[1] == "#") {
17620 defundef = arg[2]
17621 mac1 = arg[3]
17622 } else {
17623 defundef = substr(arg[1], 2)
17624 mac1 = arg[2]
17626 split(mac1, mac2, "(") #)
17627 macro = mac2[1]
17628 prefix = substr(line, 1, index(line, defundef) - 1)
17629 if (D_is_set[macro]) {
17630 # Preserve the white space surrounding the "#".
17631 print prefix "define", macro P[macro] D[macro]
17632 next
17633 } else {
17634 # Replace #undef with comments. This is necessary, for example,
17635 # in the case of _POSIX_SOURCE, which is predefined and required
17636 # on some systems where configure will not decide to define it.
17637 if (defundef == "undef") {
17638 print "/*", prefix defundef, macro, "*/"
17639 next
17643 { print }
17644 _ACAWK
17645 _ACEOF
17646 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17647 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17648 fi # test -n "$CONFIG_HEADERS"
17651 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17652 shift
17653 for ac_tag
17655 case $ac_tag in
17656 :[FHLC]) ac_mode=$ac_tag; continue;;
17657 esac
17658 case $ac_mode$ac_tag in
17659 :[FHL]*:*);;
17660 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17661 :[FH]-) ac_tag=-:-;;
17662 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17663 esac
17664 ac_save_IFS=$IFS
17665 IFS=:
17666 set x $ac_tag
17667 IFS=$ac_save_IFS
17668 shift
17669 ac_file=$1
17670 shift
17672 case $ac_mode in
17673 :L) ac_source=$1;;
17674 :[FH])
17675 ac_file_inputs=
17676 for ac_f
17678 case $ac_f in
17679 -) ac_f="$ac_tmp/stdin";;
17680 *) # Look for the file first in the build tree, then in the source tree
17681 # (if the path is not absolute). The absolute path cannot be DOS-style,
17682 # because $ac_f cannot contain `:'.
17683 test -f "$ac_f" ||
17684 case $ac_f in
17685 [\\/$]*) false;;
17686 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17687 esac ||
17688 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17689 esac
17690 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17691 as_fn_append ac_file_inputs " '$ac_f'"
17692 done
17694 # Let's still pretend it is `configure' which instantiates (i.e., don't
17695 # use $as_me), people would be surprised to read:
17696 # /* config.h. Generated by config.status. */
17697 configure_input='Generated from '`
17698 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17699 `' by configure.'
17700 if test x"$ac_file" != x-; then
17701 configure_input="$ac_file. $configure_input"
17702 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17703 $as_echo "$as_me: creating $ac_file" >&6;}
17705 # Neutralize special characters interpreted by sed in replacement strings.
17706 case $configure_input in #(
17707 *\&* | *\|* | *\\* )
17708 ac_sed_conf_input=`$as_echo "$configure_input" |
17709 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17710 *) ac_sed_conf_input=$configure_input;;
17711 esac
17713 case $ac_tag in
17714 *:-:* | *:-) cat >"$ac_tmp/stdin" \
17715 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17716 esac
17718 esac
17720 ac_dir=`$as_dirname -- "$ac_file" ||
17721 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17722 X"$ac_file" : 'X\(//\)[^/]' \| \
17723 X"$ac_file" : 'X\(//\)$' \| \
17724 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17725 $as_echo X"$ac_file" |
17726 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17727 s//\1/
17730 /^X\(\/\/\)[^/].*/{
17731 s//\1/
17734 /^X\(\/\/\)$/{
17735 s//\1/
17738 /^X\(\/\).*/{
17739 s//\1/
17742 s/.*/./; q'`
17743 as_dir="$ac_dir"; as_fn_mkdir_p
17744 ac_builddir=.
17746 case "$ac_dir" in
17747 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17749 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17750 # A ".." for each directory in $ac_dir_suffix.
17751 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17752 case $ac_top_builddir_sub in
17753 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17754 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17755 esac ;;
17756 esac
17757 ac_abs_top_builddir=$ac_pwd
17758 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17759 # for backward compatibility:
17760 ac_top_builddir=$ac_top_build_prefix
17762 case $srcdir in
17763 .) # We are building in place.
17764 ac_srcdir=.
17765 ac_top_srcdir=$ac_top_builddir_sub
17766 ac_abs_top_srcdir=$ac_pwd ;;
17767 [\\/]* | ?:[\\/]* ) # Absolute name.
17768 ac_srcdir=$srcdir$ac_dir_suffix;
17769 ac_top_srcdir=$srcdir
17770 ac_abs_top_srcdir=$srcdir ;;
17771 *) # Relative name.
17772 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17773 ac_top_srcdir=$ac_top_build_prefix$srcdir
17774 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17775 esac
17776 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17779 case $ac_mode in
17782 # CONFIG_FILE
17785 case $INSTALL in
17786 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17787 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17788 esac
17789 ac_MKDIR_P=$MKDIR_P
17790 case $MKDIR_P in
17791 [\\/$]* | ?:[\\/]* ) ;;
17792 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17793 esac
17794 _ACEOF
17796 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17797 # If the template does not know about datarootdir, expand it.
17798 # FIXME: This hack should be removed a few years after 2.60.
17799 ac_datarootdir_hack=; ac_datarootdir_seen=
17800 ac_sed_dataroot='
17801 /datarootdir/ {
17805 /@datadir@/p
17806 /@docdir@/p
17807 /@infodir@/p
17808 /@localedir@/p
17809 /@mandir@/p'
17810 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17811 *datarootdir*) ac_datarootdir_seen=yes;;
17812 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17813 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17814 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17815 _ACEOF
17816 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17817 ac_datarootdir_hack='
17818 s&@datadir@&$datadir&g
17819 s&@docdir@&$docdir&g
17820 s&@infodir@&$infodir&g
17821 s&@localedir@&$localedir&g
17822 s&@mandir@&$mandir&g
17823 s&\\\${datarootdir}&$datarootdir&g' ;;
17824 esac
17825 _ACEOF
17827 # Neutralize VPATH when `$srcdir' = `.'.
17828 # Shell code in configure.ac might set extrasub.
17829 # FIXME: do we really want to maintain this feature?
17830 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17831 ac_sed_extra="$ac_vpsub
17832 $extrasub
17833 _ACEOF
17834 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17836 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17837 s|@configure_input@|$ac_sed_conf_input|;t t
17838 s&@top_builddir@&$ac_top_builddir_sub&;t t
17839 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17840 s&@srcdir@&$ac_srcdir&;t t
17841 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17842 s&@top_srcdir@&$ac_top_srcdir&;t t
17843 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17844 s&@builddir@&$ac_builddir&;t t
17845 s&@abs_builddir@&$ac_abs_builddir&;t t
17846 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17847 s&@INSTALL@&$ac_INSTALL&;t t
17848 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17849 $ac_datarootdir_hack
17851 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17852 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17854 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17855 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17856 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17857 "$ac_tmp/out"`; test -z "$ac_out"; } &&
17858 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17859 which seems to be undefined. Please make sure it is defined" >&5
17860 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17861 which seems to be undefined. Please make sure it is defined" >&2;}
17863 rm -f "$ac_tmp/stdin"
17864 case $ac_file in
17865 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17866 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17867 esac \
17868 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17872 # CONFIG_HEADER
17874 if test x"$ac_file" != x-; then
17876 $as_echo "/* $configure_input */" \
17877 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17878 } >"$ac_tmp/config.h" \
17879 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17880 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17881 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17882 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17883 else
17884 rm -f "$ac_file"
17885 mv "$ac_tmp/config.h" "$ac_file" \
17886 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17888 else
17889 $as_echo "/* $configure_input */" \
17890 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17891 || as_fn_error $? "could not create -" "$LINENO" 5
17893 # Compute "$ac_file"'s index in $config_headers.
17894 _am_arg="$ac_file"
17895 _am_stamp_count=1
17896 for _am_header in $config_headers :; do
17897 case $_am_header in
17898 $_am_arg | $_am_arg:* )
17899 break ;;
17901 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17902 esac
17903 done
17904 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17905 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17906 X"$_am_arg" : 'X\(//\)[^/]' \| \
17907 X"$_am_arg" : 'X\(//\)$' \| \
17908 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17909 $as_echo X"$_am_arg" |
17910 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17911 s//\1/
17914 /^X\(\/\/\)[^/].*/{
17915 s//\1/
17918 /^X\(\/\/\)$/{
17919 s//\1/
17922 /^X\(\/\).*/{
17923 s//\1/
17926 s/.*/./; q'`/stamp-h$_am_stamp_count
17929 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17930 $as_echo "$as_me: executing $ac_file commands" >&6;}
17932 esac
17935 case $ac_file$ac_mode in
17936 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17937 # Older Autoconf quotes --file arguments for eval, but not when files
17938 # are listed without --file. Let's play safe and only enable the eval
17939 # if we detect the quoting.
17940 case $CONFIG_FILES in
17941 *\'*) eval set x "$CONFIG_FILES" ;;
17942 *) set x $CONFIG_FILES ;;
17943 esac
17944 shift
17945 for mf
17947 # Strip MF so we end up with the name of the file.
17948 mf=`echo "$mf" | sed -e 's/:.*$//'`
17949 # Check whether this is an Automake generated Makefile or not.
17950 # We used to match only the files named 'Makefile.in', but
17951 # some people rename them; so instead we look at the file content.
17952 # Grep'ing the first line is not enough: some people post-process
17953 # each Makefile.in and add a new line on top of each file to say so.
17954 # Grep'ing the whole file is not good either: AIX grep has a line
17955 # limit of 2048, but all sed's we know have understand at least 4000.
17956 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17957 dirpart=`$as_dirname -- "$mf" ||
17958 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17959 X"$mf" : 'X\(//\)[^/]' \| \
17960 X"$mf" : 'X\(//\)$' \| \
17961 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17962 $as_echo X"$mf" |
17963 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17964 s//\1/
17967 /^X\(\/\/\)[^/].*/{
17968 s//\1/
17971 /^X\(\/\/\)$/{
17972 s//\1/
17975 /^X\(\/\).*/{
17976 s//\1/
17979 s/.*/./; q'`
17980 else
17981 continue
17983 # Extract the definition of DEPDIR, am__include, and am__quote
17984 # from the Makefile without running 'make'.
17985 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17986 test -z "$DEPDIR" && continue
17987 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17988 test -z "$am__include" && continue
17989 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17990 # Find all dependency output files, they are included files with
17991 # $(DEPDIR) in their names. We invoke sed twice because it is the
17992 # simplest approach to changing $(DEPDIR) to its actual value in the
17993 # expansion.
17994 for file in `sed -n "
17995 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17996 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
17997 # Make sure the directory exists.
17998 test -f "$dirpart/$file" && continue
17999 fdir=`$as_dirname -- "$file" ||
18000 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18001 X"$file" : 'X\(//\)[^/]' \| \
18002 X"$file" : 'X\(//\)$' \| \
18003 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18004 $as_echo X"$file" |
18005 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18006 s//\1/
18009 /^X\(\/\/\)[^/].*/{
18010 s//\1/
18013 /^X\(\/\/\)$/{
18014 s//\1/
18017 /^X\(\/\).*/{
18018 s//\1/
18021 s/.*/./; q'`
18022 as_dir=$dirpart/$fdir; as_fn_mkdir_p
18023 # echo "creating $dirpart/$file"
18024 echo '# dummy' > "$dirpart/$file"
18025 done
18026 done
18029 "libtool":C)
18031 # See if we are running on zsh, and set the options which allow our
18032 # commands through without removal of \ escapes.
18033 if test -n "${ZSH_VERSION+set}" ; then
18034 setopt NO_GLOB_SUBST
18037 cfgfile="${ofile}T"
18038 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18039 $RM "$cfgfile"
18041 cat <<_LT_EOF >> "$cfgfile"
18042 #! $SHELL
18044 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18045 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18046 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18047 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18049 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18050 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
18051 # Written by Gordon Matzigkeit, 1996
18053 # This file is part of GNU Libtool.
18055 # GNU Libtool is free software; you can redistribute it and/or
18056 # modify it under the terms of the GNU General Public License as
18057 # published by the Free Software Foundation; either version 2 of
18058 # the License, or (at your option) any later version.
18060 # As a special exception to the GNU General Public License,
18061 # if you distribute this file as part of a program or library that
18062 # is built using GNU Libtool, you may include this file under the
18063 # same distribution terms that you use for the rest of that program.
18065 # GNU Libtool is distributed in the hope that it will be useful,
18066 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18067 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18068 # GNU General Public License for more details.
18070 # You should have received a copy of the GNU General Public License
18071 # along with GNU Libtool; see the file COPYING. If not, a copy
18072 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18073 # obtained by writing to the Free Software Foundation, Inc.,
18074 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18077 # The names of the tagged configurations supported by this script.
18078 available_tags=""
18080 # ### BEGIN LIBTOOL CONFIG
18082 # Which release of libtool.m4 was used?
18083 macro_version=$macro_version
18084 macro_revision=$macro_revision
18086 # Whether or not to build shared libraries.
18087 build_libtool_libs=$enable_shared
18089 # Whether or not to build static libraries.
18090 build_old_libs=$enable_static
18092 # What type of objects to build.
18093 pic_mode=$pic_mode
18095 # Whether or not to optimize for fast installation.
18096 fast_install=$enable_fast_install
18098 # Shell to use when invoking shell scripts.
18099 SHELL=$lt_SHELL
18101 # An echo program that protects backslashes.
18102 ECHO=$lt_ECHO
18104 # The host system.
18105 host_alias=$host_alias
18106 host=$host
18107 host_os=$host_os
18109 # The build system.
18110 build_alias=$build_alias
18111 build=$build
18112 build_os=$build_os
18114 # A sed program that does not truncate output.
18115 SED=$lt_SED
18117 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18118 Xsed="\$SED -e 1s/^X//"
18120 # A grep program that handles long lines.
18121 GREP=$lt_GREP
18123 # An ERE matcher.
18124 EGREP=$lt_EGREP
18126 # A literal string matcher.
18127 FGREP=$lt_FGREP
18129 # A BSD- or MS-compatible name lister.
18130 NM=$lt_NM
18132 # Whether we need soft or hard links.
18133 LN_S=$lt_LN_S
18135 # What is the maximum length of a command?
18136 max_cmd_len=$max_cmd_len
18138 # Object file suffix (normally "o").
18139 objext=$ac_objext
18141 # Executable file suffix (normally "").
18142 exeext=$exeext
18144 # whether the shell understands "unset".
18145 lt_unset=$lt_unset
18147 # turn spaces into newlines.
18148 SP2NL=$lt_lt_SP2NL
18150 # turn newlines into spaces.
18151 NL2SP=$lt_lt_NL2SP
18153 # An object symbol dumper.
18154 OBJDUMP=$lt_OBJDUMP
18156 # Method to check whether dependent libraries are shared objects.
18157 deplibs_check_method=$lt_deplibs_check_method
18159 # Command to use when deplibs_check_method == "file_magic".
18160 file_magic_cmd=$lt_file_magic_cmd
18162 # The archiver.
18163 AR=$lt_AR
18164 AR_FLAGS=$lt_AR_FLAGS
18166 # A symbol stripping program.
18167 STRIP=$lt_STRIP
18169 # Commands used to install an old-style archive.
18170 RANLIB=$lt_RANLIB
18171 old_postinstall_cmds=$lt_old_postinstall_cmds
18172 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18174 # Whether to use a lock for old archive extraction.
18175 lock_old_archive_extraction=$lock_old_archive_extraction
18177 # A C compiler.
18178 LTCC=$lt_CC
18180 # LTCC compiler flags.
18181 LTCFLAGS=$lt_CFLAGS
18183 # Take the output of nm and produce a listing of raw symbols and C names.
18184 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18186 # Transform the output of nm in a proper C declaration.
18187 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18189 # Transform the output of nm in a C name address pair.
18190 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18192 # Transform the output of nm in a C name address pair when lib prefix is needed.
18193 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18195 # The name of the directory that contains temporary libtool files.
18196 objdir=$objdir
18198 # Used to examine libraries when file_magic_cmd begins with "file".
18199 MAGIC_CMD=$MAGIC_CMD
18201 # Must we lock files when doing compilation?
18202 need_locks=$lt_need_locks
18204 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18205 DSYMUTIL=$lt_DSYMUTIL
18207 # Tool to change global to local symbols on Mac OS X.
18208 NMEDIT=$lt_NMEDIT
18210 # Tool to manipulate fat objects and archives on Mac OS X.
18211 LIPO=$lt_LIPO
18213 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18214 OTOOL=$lt_OTOOL
18216 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18217 OTOOL64=$lt_OTOOL64
18219 # Old archive suffix (normally "a").
18220 libext=$libext
18222 # Shared library suffix (normally ".so").
18223 shrext_cmds=$lt_shrext_cmds
18225 # The commands to extract the exported symbol list from a shared archive.
18226 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18228 # Variables whose values should be saved in libtool wrapper scripts and
18229 # restored at link time.
18230 variables_saved_for_relink=$lt_variables_saved_for_relink
18232 # Do we need the "lib" prefix for modules?
18233 need_lib_prefix=$need_lib_prefix
18235 # Do we need a version for libraries?
18236 need_version=$need_version
18238 # Library versioning type.
18239 version_type=$version_type
18241 # Shared library runtime path variable.
18242 runpath_var=$runpath_var
18244 # Shared library path variable.
18245 shlibpath_var=$shlibpath_var
18247 # Is shlibpath searched before the hard-coded library search path?
18248 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18250 # Format of library name prefix.
18251 libname_spec=$lt_libname_spec
18253 # List of archive names. First name is the real one, the rest are links.
18254 # The last name is the one that the linker finds with -lNAME
18255 library_names_spec=$lt_library_names_spec
18257 # The coded name of the library, if different from the real name.
18258 soname_spec=$lt_soname_spec
18260 # Permission mode override for installation of shared libraries.
18261 install_override_mode=$lt_install_override_mode
18263 # Command to use after installation of a shared archive.
18264 postinstall_cmds=$lt_postinstall_cmds
18266 # Command to use after uninstallation of a shared archive.
18267 postuninstall_cmds=$lt_postuninstall_cmds
18269 # Commands used to finish a libtool library installation in a directory.
18270 finish_cmds=$lt_finish_cmds
18272 # As "finish_cmds", except a single script fragment to be evaled but
18273 # not shown.
18274 finish_eval=$lt_finish_eval
18276 # Whether we should hardcode library paths into libraries.
18277 hardcode_into_libs=$hardcode_into_libs
18279 # Compile-time system search path for libraries.
18280 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18282 # Run-time system search path for libraries.
18283 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18285 # Whether dlopen is supported.
18286 dlopen_support=$enable_dlopen
18288 # Whether dlopen of programs is supported.
18289 dlopen_self=$enable_dlopen_self
18291 # Whether dlopen of statically linked programs is supported.
18292 dlopen_self_static=$enable_dlopen_self_static
18294 # Commands to strip libraries.
18295 old_striplib=$lt_old_striplib
18296 striplib=$lt_striplib
18299 # The linker used to build libraries.
18300 LD=$lt_LD
18302 # How to create reloadable object files.
18303 reload_flag=$lt_reload_flag
18304 reload_cmds=$lt_reload_cmds
18306 # Commands used to build an old-style archive.
18307 old_archive_cmds=$lt_old_archive_cmds
18309 # A language specific compiler.
18310 CC=$lt_compiler
18312 # Is the compiler the GNU compiler?
18313 with_gcc=$GCC
18315 # Compiler flag to turn off builtin functions.
18316 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18318 # How to pass a linker flag through the compiler.
18319 wl=$lt_lt_prog_compiler_wl
18321 # Additional compiler flags for building library objects.
18322 pic_flag=$lt_lt_prog_compiler_pic
18324 # Compiler flag to prevent dynamic linking.
18325 link_static_flag=$lt_lt_prog_compiler_static
18327 # Does compiler simultaneously support -c and -o options?
18328 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18330 # Whether or not to add -lc for building shared libraries.
18331 build_libtool_need_lc=$archive_cmds_need_lc
18333 # Whether or not to disallow shared libs when runtime libs are static.
18334 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18336 # Compiler flag to allow reflexive dlopens.
18337 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18339 # Compiler flag to generate shared objects directly from archives.
18340 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18342 # Whether the compiler copes with passing no objects directly.
18343 compiler_needs_object=$lt_compiler_needs_object
18345 # Create an old-style archive from a shared archive.
18346 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18348 # Create a temporary old-style archive to link instead of a shared archive.
18349 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18351 # Commands used to build a shared archive.
18352 archive_cmds=$lt_archive_cmds
18353 archive_expsym_cmds=$lt_archive_expsym_cmds
18355 # Commands used to build a loadable module if different from building
18356 # a shared archive.
18357 module_cmds=$lt_module_cmds
18358 module_expsym_cmds=$lt_module_expsym_cmds
18360 # Whether we are building with GNU ld or not.
18361 with_gnu_ld=$lt_with_gnu_ld
18363 # Flag that allows shared libraries with undefined symbols to be built.
18364 allow_undefined_flag=$lt_allow_undefined_flag
18366 # Flag that enforces no undefined symbols.
18367 no_undefined_flag=$lt_no_undefined_flag
18369 # Flag to hardcode \$libdir into a binary during linking.
18370 # This must work even if \$libdir does not exist
18371 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18373 # If ld is used when linking, flag to hardcode \$libdir into a binary
18374 # during linking. This must work even if \$libdir does not exist.
18375 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18377 # Whether we need a single "-rpath" flag with a separated argument.
18378 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18380 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18381 # DIR into the resulting binary.
18382 hardcode_direct=$hardcode_direct
18384 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18385 # DIR into the resulting binary and the resulting library dependency is
18386 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18387 # library is relocated.
18388 hardcode_direct_absolute=$hardcode_direct_absolute
18390 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18391 # into the resulting binary.
18392 hardcode_minus_L=$hardcode_minus_L
18394 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18395 # into the resulting binary.
18396 hardcode_shlibpath_var=$hardcode_shlibpath_var
18398 # Set to "yes" if building a shared library automatically hardcodes DIR
18399 # into the library and all subsequent libraries and executables linked
18400 # against it.
18401 hardcode_automatic=$hardcode_automatic
18403 # Set to yes if linker adds runtime paths of dependent libraries
18404 # to runtime path list.
18405 inherit_rpath=$inherit_rpath
18407 # Whether libtool must link a program against all its dependency libraries.
18408 link_all_deplibs=$link_all_deplibs
18410 # Fix the shell variable \$srcfile for the compiler.
18411 fix_srcfile_path=$lt_fix_srcfile_path
18413 # Set to "yes" if exported symbols are required.
18414 always_export_symbols=$always_export_symbols
18416 # The commands to list exported symbols.
18417 export_symbols_cmds=$lt_export_symbols_cmds
18419 # Symbols that should not be listed in the preloaded symbols.
18420 exclude_expsyms=$lt_exclude_expsyms
18422 # Symbols that must always be exported.
18423 include_expsyms=$lt_include_expsyms
18425 # Commands necessary for linking programs (against libraries) with templates.
18426 prelink_cmds=$lt_prelink_cmds
18428 # Specify filename containing input files.
18429 file_list_spec=$lt_file_list_spec
18431 # How to hardcode a shared library path into an executable.
18432 hardcode_action=$hardcode_action
18434 # ### END LIBTOOL CONFIG
18436 _LT_EOF
18438 case $host_os in
18439 aix3*)
18440 cat <<\_LT_EOF >> "$cfgfile"
18441 # AIX sometimes has problems with the GCC collect2 program. For some
18442 # reason, if we set the COLLECT_NAMES environment variable, the problems
18443 # vanish in a puff of smoke.
18444 if test "X${COLLECT_NAMES+set}" != Xset; then
18445 COLLECT_NAMES=
18446 export COLLECT_NAMES
18448 _LT_EOF
18450 esac
18453 ltmain="$ac_aux_dir/ltmain.sh"
18456 # We use sed instead of cat because bash on DJGPP gets confused if
18457 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18458 # text mode, it properly converts lines to CR/LF. This bash problem
18459 # is reportedly fixed, but why not run on old versions too?
18460 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
18461 || (rm -f "$cfgfile"; exit 1)
18463 case $xsi_shell in
18464 yes)
18465 cat << \_LT_EOF >> "$cfgfile"
18467 # func_dirname file append nondir_replacement
18468 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
18469 # otherwise set result to NONDIR_REPLACEMENT.
18470 func_dirname ()
18472 case ${1} in
18473 */*) func_dirname_result="${1%/*}${2}" ;;
18474 * ) func_dirname_result="${3}" ;;
18475 esac
18478 # func_basename file
18479 func_basename ()
18481 func_basename_result="${1##*/}"
18484 # func_dirname_and_basename file append nondir_replacement
18485 # perform func_basename and func_dirname in a single function
18486 # call:
18487 # dirname: Compute the dirname of FILE. If nonempty,
18488 # add APPEND to the result, otherwise set result
18489 # to NONDIR_REPLACEMENT.
18490 # value returned in "$func_dirname_result"
18491 # basename: Compute filename of FILE.
18492 # value retuned in "$func_basename_result"
18493 # Implementation must be kept synchronized with func_dirname
18494 # and func_basename. For efficiency, we do not delegate to
18495 # those functions but instead duplicate the functionality here.
18496 func_dirname_and_basename ()
18498 case ${1} in
18499 */*) func_dirname_result="${1%/*}${2}" ;;
18500 * ) func_dirname_result="${3}" ;;
18501 esac
18502 func_basename_result="${1##*/}"
18505 # func_stripname prefix suffix name
18506 # strip PREFIX and SUFFIX off of NAME.
18507 # PREFIX and SUFFIX must not contain globbing or regex special
18508 # characters, hashes, percent signs, but SUFFIX may contain a leading
18509 # dot (in which case that matches only a dot).
18510 func_stripname ()
18512 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
18513 # positional parameters, so assign one to ordinary parameter first.
18514 func_stripname_result=${3}
18515 func_stripname_result=${func_stripname_result#"${1}"}
18516 func_stripname_result=${func_stripname_result%"${2}"}
18519 # func_opt_split
18520 func_opt_split ()
18522 func_opt_split_opt=${1%%=*}
18523 func_opt_split_arg=${1#*=}
18526 # func_lo2o object
18527 func_lo2o ()
18529 case ${1} in
18530 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
18531 *) func_lo2o_result=${1} ;;
18532 esac
18535 # func_xform libobj-or-source
18536 func_xform ()
18538 func_xform_result=${1%.*}.lo
18541 # func_arith arithmetic-term...
18542 func_arith ()
18544 func_arith_result=$(( $* ))
18547 # func_len string
18548 # STRING may not start with a hyphen.
18549 func_len ()
18551 func_len_result=${#1}
18554 _LT_EOF
18556 *) # Bourne compatible functions.
18557 cat << \_LT_EOF >> "$cfgfile"
18559 # func_dirname file append nondir_replacement
18560 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
18561 # otherwise set result to NONDIR_REPLACEMENT.
18562 func_dirname ()
18564 # Extract subdirectory from the argument.
18565 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
18566 if test "X$func_dirname_result" = "X${1}"; then
18567 func_dirname_result="${3}"
18568 else
18569 func_dirname_result="$func_dirname_result${2}"
18573 # func_basename file
18574 func_basename ()
18576 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
18580 # func_stripname prefix suffix name
18581 # strip PREFIX and SUFFIX off of NAME.
18582 # PREFIX and SUFFIX must not contain globbing or regex special
18583 # characters, hashes, percent signs, but SUFFIX may contain a leading
18584 # dot (in which case that matches only a dot).
18585 # func_strip_suffix prefix name
18586 func_stripname ()
18588 case ${2} in
18589 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
18590 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
18591 esac
18594 # sed scripts:
18595 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
18596 my_sed_long_arg='1s/^-[^=]*=//'
18598 # func_opt_split
18599 func_opt_split ()
18601 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
18602 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
18605 # func_lo2o object
18606 func_lo2o ()
18608 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
18611 # func_xform libobj-or-source
18612 func_xform ()
18614 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
18617 # func_arith arithmetic-term...
18618 func_arith ()
18620 func_arith_result=`expr "$@"`
18623 # func_len string
18624 # STRING may not start with a hyphen.
18625 func_len ()
18627 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
18630 _LT_EOF
18631 esac
18633 case $lt_shell_append in
18634 yes)
18635 cat << \_LT_EOF >> "$cfgfile"
18637 # func_append var value
18638 # Append VALUE to the end of shell variable VAR.
18639 func_append ()
18641 eval "$1+=\$2"
18643 _LT_EOF
18646 cat << \_LT_EOF >> "$cfgfile"
18648 # func_append var value
18649 # Append VALUE to the end of shell variable VAR.
18650 func_append ()
18652 eval "$1=\$$1\$2"
18655 _LT_EOF
18657 esac
18660 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
18661 || (rm -f "$cfgfile"; exit 1)
18663 mv -f "$cfgfile" "$ofile" ||
18664 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18665 chmod +x "$ofile"
18668 "default-1":C)
18669 for ac_file in $CONFIG_FILES; do
18670 # Support "outfile[:infile[:infile...]]"
18671 case "$ac_file" in
18672 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
18673 esac
18674 # PO directories have a Makefile.in generated from Makefile.in.in.
18675 case "$ac_file" in */Makefile.in)
18676 # Adjust a relative srcdir.
18677 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
18678 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
18679 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
18680 # In autoconf-2.13 it is called $ac_given_srcdir.
18681 # In autoconf-2.50 it is called $srcdir.
18682 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
18683 case "$ac_given_srcdir" in
18684 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
18685 /*) top_srcdir="$ac_given_srcdir" ;;
18686 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
18687 esac
18688 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
18689 rm -f "$ac_dir/POTFILES"
18690 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
18691 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
18692 POMAKEFILEDEPS="POTFILES.in"
18693 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
18694 # on $ac_dir but don't depend on user-specified configuration
18695 # parameters.
18696 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
18697 # The LINGUAS file contains the set of available languages.
18698 if test -n "$OBSOLETE_ALL_LINGUAS"; then
18699 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.ac is obsolete" || echo "setting ALL_LINGUAS in configure.ac is obsolete"
18701 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
18702 # Hide the ALL_LINGUAS assigment from automake.
18703 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
18704 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
18705 else
18706 # The set of available languages was given in configure.ac.
18707 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
18709 case "$ac_given_srcdir" in
18710 .) srcdirpre= ;;
18711 *) srcdirpre='$(srcdir)/' ;;
18712 esac
18713 POFILES=
18714 GMOFILES=
18715 UPDATEPOFILES=
18716 DUMMYPOFILES=
18717 for lang in $ALL_LINGUAS; do
18718 POFILES="$POFILES $srcdirpre$lang.po"
18719 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
18720 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
18721 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
18722 done
18723 # CATALOGS depends on both $ac_dir and the user's LINGUAS
18724 # environment variable.
18725 INST_LINGUAS=
18726 if test -n "$ALL_LINGUAS"; then
18727 for presentlang in $ALL_LINGUAS; do
18728 useit=no
18729 if test "%UNSET%" != "$LINGUAS"; then
18730 desiredlanguages="$LINGUAS"
18731 else
18732 desiredlanguages="$ALL_LINGUAS"
18734 for desiredlang in $desiredlanguages; do
18735 # Use the presentlang catalog if desiredlang is
18736 # a. equal to presentlang, or
18737 # b. a variant of presentlang (because in this case,
18738 # presentlang can be used as a fallback for messages
18739 # which are not translated in the desiredlang catalog).
18740 case "$desiredlang" in
18741 "$presentlang"*) useit=yes;;
18742 esac
18743 done
18744 if test $useit = yes; then
18745 INST_LINGUAS="$INST_LINGUAS $presentlang"
18747 done
18749 CATALOGS=
18750 if test -n "$INST_LINGUAS"; then
18751 for lang in $INST_LINGUAS; do
18752 CATALOGS="$CATALOGS $lang.gmo"
18753 done
18755 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
18756 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"
18757 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
18758 if test -f "$f"; then
18759 case "$f" in
18760 *.orig | *.bak | *~) ;;
18761 *) cat "$f" >> "$ac_dir/Makefile" ;;
18762 esac
18764 done
18767 esac
18768 done ;;
18769 "default-2":C)
18770 for ac_file in $CONFIG_FILES; do
18771 # Support "outfile[:infile[:infile...]]"
18772 case "$ac_file" in
18773 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
18774 esac
18775 # PO directories have a Makefile.in generated from Makefile.in.in.
18776 case "$ac_file" in */Makefile.in)
18777 # Adjust a relative srcdir.
18778 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
18779 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
18780 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
18781 # In autoconf-2.13 it is called $ac_given_srcdir.
18782 # In autoconf-2.50 it is called $srcdir.
18783 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
18784 case "$ac_given_srcdir" in
18785 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
18786 /*) top_srcdir="$ac_given_srcdir" ;;
18787 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
18788 esac
18789 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
18790 rm -f "$ac_dir/POTFILES"
18791 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
18792 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
18793 POMAKEFILEDEPS="POTFILES.in"
18794 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
18795 # on $ac_dir but don't depend on user-specified configuration
18796 # parameters.
18797 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
18798 # The LINGUAS file contains the set of available languages.
18799 if test -n "$OBSOLETE_ALL_LINGUAS"; then
18800 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.ac is obsolete" || echo "setting ALL_LINGUAS in configure.ac is obsolete"
18802 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
18803 # Hide the ALL_LINGUAS assigment from automake.
18804 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
18805 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
18806 else
18807 # The set of available languages was given in configure.ac.
18808 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
18810 case "$ac_given_srcdir" in
18811 .) srcdirpre= ;;
18812 *) srcdirpre='$(srcdir)/' ;;
18813 esac
18814 POFILES=
18815 GMOFILES=
18816 UPDATEPOFILES=
18817 DUMMYPOFILES=
18818 for lang in $ALL_LINGUAS; do
18819 POFILES="$POFILES $srcdirpre$lang.po"
18820 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
18821 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
18822 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
18823 done
18824 # CATALOGS depends on both $ac_dir and the user's LINGUAS
18825 # environment variable.
18826 INST_LINGUAS=
18827 if test -n "$ALL_LINGUAS"; then
18828 for presentlang in $ALL_LINGUAS; do
18829 useit=no
18830 if test "%UNSET%" != "$LINGUAS"; then
18831 desiredlanguages="$LINGUAS"
18832 else
18833 desiredlanguages="$ALL_LINGUAS"
18835 for desiredlang in $desiredlanguages; do
18836 # Use the presentlang catalog if desiredlang is
18837 # a. equal to presentlang, or
18838 # b. a variant of presentlang (because in this case,
18839 # presentlang can be used as a fallback for messages
18840 # which are not translated in the desiredlang catalog).
18841 case "$desiredlang" in
18842 "$presentlang"*) useit=yes;;
18843 esac
18844 done
18845 if test $useit = yes; then
18846 INST_LINGUAS="$INST_LINGUAS $presentlang"
18848 done
18850 CATALOGS=
18851 if test -n "$INST_LINGUAS"; then
18852 for lang in $INST_LINGUAS; do
18853 CATALOGS="$CATALOGS $lang.gmo"
18854 done
18856 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
18857 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"
18858 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
18859 if test -f "$f"; then
18860 case "$f" in
18861 *.orig | *.bak | *~) ;;
18862 *) cat "$f" >> "$ac_dir/Makefile" ;;
18863 esac
18865 done
18868 esac
18869 done ;;
18870 "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
18871 echo '#include "tc-'"${target_cpu_type}"'.h"' > targ-cpu.h
18872 echo '#include "obj-'"${obj_format}"'.h"' > obj-format.h
18873 echo '#include "te-'"${te_file}"'.h"' > targ-env.h
18874 echo '#include "itbl-'"${target_cpu_type}"'.h"' > itbl-cpu.h
18875 if test "x$cgen_cpu_prefix" != x ; then
18876 echo '#include "opcodes/'"${cgen_cpu_prefix}"'-desc.h"' > cgen-desc.h
18877 fi ;;
18879 esac
18880 done # for ac_tag
18883 as_fn_exit 0
18884 _ACEOF
18885 ac_clean_files=$ac_clean_files_save
18887 test $ac_write_fail = 0 ||
18888 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18891 # configure is writing to config.log, and then calls config.status.
18892 # config.status does its own redirection, appending to config.log.
18893 # Unfortunately, on DOS this fails, as config.log is still kept open
18894 # by configure, so config.status won't be able to write to it; its
18895 # output is simply discarded. So we exec the FD to /dev/null,
18896 # effectively closing config.log, so it can be properly (re)opened and
18897 # appended to by config.status. When coming back to configure, we
18898 # need to make the FD available again.
18899 if test "$no_create" != yes; then
18900 ac_cs_success=:
18901 ac_config_status_args=
18902 test "$silent" = yes &&
18903 ac_config_status_args="$ac_config_status_args --quiet"
18904 exec 5>/dev/null
18905 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18906 exec 5>>config.log
18907 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18908 # would make configure fail if this is the last instruction.
18909 $ac_cs_success || as_fn_exit 1
18911 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18912 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18913 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18918 touch config.status.tmp
18919 if touch --reference=config.status config.status.tmp > /dev/null 2>&1; then
18920 sed '/as_fn_exit 0/i \
18921 sed -e \"s/^\t\\\(\\\$(AM_V_CCLD)\\\)/\t+ \\\1/\" Makefile > Makefile.tmp \
18922 touch --reference=Makefile Makefile.tmp \
18923 mv Makefile.tmp Makefile \
18924 ' config.status > config.status.tmp
18925 touch --reference=config.status config.status.tmp
18926 mv config.status.tmp config.status
18927 chmod +x config.status
18928 sed -e "s/^\t\(\$(AM_V_CCLD)\)/\t+ \1/" Makefile > Makefile.tmp
18929 touch --reference=Makefile Makefile.tmp
18930 mv Makefile.tmp Makefile
18931 else
18932 rm -f config.status.tmp