Fix RELOC_FOR_GLOBAL_SYMBOLS macro so that it can cope with user defined symbols...
[binutils-gdb.git] / ld / configure
blobba0024699d4e2f12f42774e4805d8f70210ff45c
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for ld 2.42.50.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
30 esac
34 as_nl='
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
174 esac
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
190 else
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1
201 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 PATH=/empty FPATH=/empty; export PATH FPATH
206 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
207 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
208 if (eval "$as_required") 2>/dev/null; then :
209 as_have_required=yes
210 else
211 as_have_required=no
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
215 else
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217 as_found=false
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
222 as_found=:
223 case $as_dir in #(
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 break 2
235 done;;
236 esac
237 as_found=false
238 done
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
242 fi; }
243 IFS=$as_save_IFS
246 if test "x$CONFIG_SHELL" != x; then :
247 export CONFIG_SHELL
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
252 BASH_ENV=/dev/null
253 ENV=/dev/null
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255 case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260 esac
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265 exit 255
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274 else
275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
280 exit 1
284 SHELL=${CONFIG_SHELL-/bin/sh}
285 export SHELL
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
293 # as_fn_unset VAR
294 # ---------------
295 # Portably unset VAR.
296 as_fn_unset ()
298 { eval $1=; unset $1;}
300 as_unset=as_fn_unset
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
305 as_fn_set_status ()
307 return $1
308 } # as_fn_set_status
310 # as_fn_exit STATUS
311 # -----------------
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313 as_fn_exit ()
315 set +e
316 as_fn_set_status $1
317 exit $1
318 } # as_fn_exit
320 # as_fn_mkdir_p
321 # -------------
322 # Create "$as_dir" as a directory, including parents if necessary.
323 as_fn_mkdir_p ()
326 case $as_dir in #(
327 -*) as_dir=./$as_dir;;
328 esac
329 test -d "$as_dir" || eval $as_mkdir_p || {
330 as_dirs=
331 while :; do
332 case $as_dir in #(
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334 *) as_qdir=$as_dir;;
335 esac
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344 s//\1/
347 /^X\(\/\/\)[^/].*/{
348 s//\1/
351 /^X\(\/\/\)$/{
352 s//\1/
355 /^X\(\/\).*/{
356 s//\1/
359 s/.*/./; q'`
360 test -d "$as_dir" && break
361 done
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
366 } # as_fn_mkdir_p
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
380 # implementations.
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
384 eval $1+=\$2
386 else
387 as_fn_append ()
389 eval $1=\$$1\$2
391 fi # as_fn_append
393 # as_fn_arith ARG...
394 # ------------------
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399 eval 'as_fn_arith ()
401 as_val=$(( $* ))
403 else
404 as_fn_arith ()
406 as_val=`expr "$@" || test $? -eq 1`
408 fi # as_fn_arith
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
416 as_fn_error ()
418 as_status=$1; test $as_status -eq 0 && as_status=1
419 if test "$4"; then
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit $as_status
425 } # as_fn_error
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 as_expr=expr
430 else
431 as_expr=false
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 as_basename=basename
436 else
437 as_basename=false
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_dirname=dirname
442 else
443 as_dirname=false
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450 $as_echo X/"$0" |
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
452 s//\1/
455 /^X\/\(\/\/\)$/{
456 s//\1/
459 /^X\/\(\/\).*/{
460 s//\1/
463 s/.*/./; q'`
465 # Avoid depending upon Character Ranges.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_cr_alnum=$as_cr_Letters$as_cr_digits
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
478 sed -n '
480 /[$]LINENO/=
481 ' <$as_myself |
482 sed '
483 s/[$]LINENO.*/&-/
484 t lineno
486 :lineno
488 :loop
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490 t loop
491 s/-\n.*//
492 ' >$as_me.lineno &&
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
503 . "./$as_me.lineno"
504 # Exit status is that of the last command.
505 exit
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
510 -n*)
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
513 xy) ECHO_C='\c';;
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
515 ECHO_T=' ';;
516 esac;;
518 ECHO_N='-n';;
519 esac
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
524 else
525 rm -f conf$$.dir
526 mkdir conf$$.dir 2>/dev/null
528 if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s='ln -s'
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536 as_ln_s='cp -pR'
537 elif ln conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s=ln
539 else
540 as_ln_s='cp -pR'
542 else
543 as_ln_s='cp -pR'
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
548 if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
550 else
551 test -d ./-p && rmdir ./-p
552 as_mkdir_p=false
555 as_test_x='test -x'
556 as_executable_p=as_fn_executable_p
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
564 SHELL=${CONFIG_SHELL-/bin/sh}
567 test -n "$DJDIR" || exec 7<&0 </dev/null
568 exec 6>&1
570 # Name of the host.
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
576 # Initializations.
578 ac_default_prefix=/usr/local
579 ac_clean_files=
580 ac_config_libobj_dir=.
581 LIBOBJS=
582 cross_compiling=no
583 subdirs=
584 MFLAGS=
585 MAKEFLAGS=
587 # Identity of this package.
588 PACKAGE_NAME='ld'
589 PACKAGE_TARNAME='ld'
590 PACKAGE_VERSION='2.42.50'
591 PACKAGE_STRING='ld 2.42.50'
592 PACKAGE_BUGREPORT=''
593 PACKAGE_URL=''
595 ac_unique_file="ldmain.c"
596 # Factoring default headers for most tests.
597 ac_includes_default="\
598 #include <stdio.h>
599 #ifdef HAVE_SYS_TYPES_H
600 # include <sys/types.h>
601 #endif
602 #ifdef HAVE_SYS_STAT_H
603 # include <sys/stat.h>
604 #endif
605 #ifdef STDC_HEADERS
606 # include <stdlib.h>
607 # include <stddef.h>
608 #else
609 # ifdef HAVE_STDLIB_H
610 # include <stdlib.h>
611 # endif
612 #endif
613 #ifdef HAVE_STRING_H
614 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
615 # include <memory.h>
616 # endif
617 # include <string.h>
618 #endif
619 #ifdef HAVE_STRINGS_H
620 # include <strings.h>
621 #endif
622 #ifdef HAVE_INTTYPES_H
623 # include <inttypes.h>
624 #endif
625 #ifdef HAVE_STDINT_H
626 # include <stdint.h>
627 #endif
628 #ifdef HAVE_UNISTD_H
629 # include <unistd.h>
630 #endif"
632 gt_needs=
633 ac_header_list=
634 ac_subst_vars='am__EXEEXT_FALSE
635 am__EXEEXT_TRUE
636 LTLIBOBJS
637 LIBOBJS
638 TESTSFRAMELIB
639 TESTCTFLIB
640 TESTBFDLIB
641 EMULATION_LIBPATH
642 LIB_PATH
643 EMUL_EXTRA_OFILES
644 EMULATION_OFILES
645 TDIRS
646 EMUL
647 elf_plt_unwind_list_options
648 elf_shlib_list_options
649 elf_list_options
650 ZSTD_LIBS
651 ZSTD_CFLAGS
652 zlibinc
653 zlibdir
654 NATIVE_LIB_DIRS
655 HDEFINES
656 do_compare
657 GENINSRC_NEVER_FALSE
658 GENINSRC_NEVER_TRUE
659 LEXLIB
660 LEX_OUTPUT_ROOT
662 YFLAGS
663 YACC
664 CATOBJEXT
665 GENCAT
666 INSTOBJEXT
667 DATADIRNAME
668 CATALOGS
669 INCINTL
670 LIBINTL_DEP
671 POSUB
672 LTLIBINTL
673 LIBINTL
674 INTLLIBS
675 LTLIBICONV
676 LIBICONV
677 INTL_MACOSX_LIBS
678 MSGMERGE
679 XGETTEXT
680 GMSGFMT
681 MSGFMT
682 USE_NLS
683 MKINSTALLDIRS
684 WARN_WRITE_STRINGS
685 NO_WERROR
686 WARN_CFLAGS_FOR_BUILD
687 WARN_CFLAGS
688 JANSSON_LIBS
689 JANSSON_CFLAGS
690 enable_libctf
691 ENABLE_LIBCTF_FALSE
692 ENABLE_LIBCTF_TRUE
693 enable_initfini_array
694 installed_linker
695 install_as_default
696 TARGET_SYSTEM_ROOT_DEFINE
697 TARGET_SYSTEM_ROOT
698 use_sysroot
699 ENABLE_BFD_64_BIT_FALSE
700 ENABLE_BFD_64_BIT_TRUE
701 LARGEFILE_CPPFLAGS
702 CXXCPP
703 OTOOL64
704 OTOOL
705 LIPO
706 NMEDIT
707 DSYMUTIL
708 RANLIB
710 OBJDUMP
711 LN_S
713 ac_ct_DUMPBIN
714 DUMPBIN
716 FGREP
718 LIBTOOL
719 PKG_CONFIG_LIBDIR
720 PKG_CONFIG_PATH
721 PKG_CONFIG
722 EGREP
724 GREP
725 am__fastdepCXX_FALSE
726 am__fastdepCXX_TRUE
727 CXXDEPMODE
728 ac_ct_CXX
729 CXXFLAGS
731 am__fastdepCC_FALSE
732 am__fastdepCC_TRUE
733 CCDEPMODE
734 am__nodep
735 AMDEPBACKSLASH
736 AMDEP_FALSE
737 AMDEP_TRUE
738 am__quote
739 am__include
740 DEPDIR
741 OBJEXT
742 EXEEXT
743 ac_ct_CC
744 CPPFLAGS
745 LDFLAGS
746 CFLAGS
748 MAINT
749 MAINTAINER_MODE_FALSE
750 MAINTAINER_MODE_TRUE
751 AM_BACKSLASH
752 AM_DEFAULT_VERBOSITY
753 AM_DEFAULT_V
754 AM_V
755 am__untar
756 am__tar
757 AMTAR
758 am__leading_dot
759 SET_MAKE
761 mkdir_p
762 MKDIR_P
763 INSTALL_STRIP_PROGRAM
764 STRIP
765 install_sh
766 MAKEINFO
767 AUTOHEADER
768 AUTOMAKE
769 AUTOCONF
770 ACLOCAL
771 VERSION
772 PACKAGE
773 CYGPATH_W
774 am__isrc
775 INSTALL_DATA
776 INSTALL_SCRIPT
777 INSTALL_PROGRAM
778 target_os
779 target_vendor
780 target_cpu
781 target
782 host_os
783 host_vendor
784 host_cpu
785 host
786 build_os
787 build_vendor
788 build_cpu
789 build
790 target_alias
791 host_alias
792 build_alias
793 LIBS
794 ECHO_T
795 ECHO_N
796 ECHO_C
797 DEFS
798 mandir
799 localedir
800 libdir
801 psdir
802 pdfdir
803 dvidir
804 htmldir
805 infodir
806 docdir
807 oldincludedir
808 includedir
809 localstatedir
810 sharedstatedir
811 sysconfdir
812 datadir
813 datarootdir
814 libexecdir
815 sbindir
816 bindir
817 program_transform_name
818 prefix
819 exec_prefix
820 PACKAGE_URL
821 PACKAGE_BUGREPORT
822 PACKAGE_STRING
823 PACKAGE_VERSION
824 PACKAGE_TARNAME
825 PACKAGE_NAME
826 PATH_SEPARATOR
827 SHELL'
828 ac_subst_files=''
829 ac_user_opts='
830 enable_option_checking
831 enable_silent_rules
832 enable_maintainer_mode
833 enable_dependency_tracking
834 enable_shared
835 enable_static
836 with_pic
837 enable_fast_install
838 with_gnu_ld
839 enable_libtool_lock
840 enable_plugins
841 enable_largefile
842 enable_checking
843 with_lib_path
844 enable_targets
845 enable_64_bit_bfd
846 with_sysroot
847 enable_gold
848 enable_got
849 enable_compressed_debug_sections
850 enable_default_compressed_debug_sections_algorithm
851 enable_new_dtags
852 enable_relro
853 enable_textrel_check
854 enable_separate_code
855 enable_mark_plt
856 enable_warn_execstack
857 enable_error_execstack
858 enable_warn_rwx_segments
859 enable_error_rwx_segments
860 enable_default_execstack
861 enable_error_handling_script
862 enable_default_hash_style
863 enable_initfini_array
864 enable_libctf
865 enable_jansson
866 enable_werror
867 enable_build_warnings
868 enable_nls
869 enable_rpath
870 with_libiconv_prefix
871 with_libiconv_type
872 with_libintl_prefix
873 with_libintl_type
874 with_system_zlib
875 with_zstd
877 ac_precious_vars='build_alias
878 host_alias
879 target_alias
881 CFLAGS
882 LDFLAGS
883 LIBS
884 CPPFLAGS
886 CXXFLAGS
889 PKG_CONFIG
890 PKG_CONFIG_PATH
891 PKG_CONFIG_LIBDIR
892 CXXCPP
893 JANSSON_CFLAGS
894 JANSSON_LIBS
895 YACC
896 YFLAGS
897 ZSTD_CFLAGS
898 ZSTD_LIBS'
901 # Initialize some variables set by options.
902 ac_init_help=
903 ac_init_version=false
904 ac_unrecognized_opts=
905 ac_unrecognized_sep=
906 # The variables have the same names as the options, with
907 # dashes changed to underlines.
908 cache_file=/dev/null
909 exec_prefix=NONE
910 no_create=
911 no_recursion=
912 prefix=NONE
913 program_prefix=NONE
914 program_suffix=NONE
915 program_transform_name=s,x,x,
916 silent=
917 site=
918 srcdir=
919 verbose=
920 x_includes=NONE
921 x_libraries=NONE
923 # Installation directory options.
924 # These are left unexpanded so users can "make install exec_prefix=/foo"
925 # and all the variables that are supposed to be based on exec_prefix
926 # by default will actually change.
927 # Use braces instead of parens because sh, perl, etc. also accept them.
928 # (The list follows the same order as the GNU Coding Standards.)
929 bindir='${exec_prefix}/bin'
930 sbindir='${exec_prefix}/sbin'
931 libexecdir='${exec_prefix}/libexec'
932 datarootdir='${prefix}/share'
933 datadir='${datarootdir}'
934 sysconfdir='${prefix}/etc'
935 sharedstatedir='${prefix}/com'
936 localstatedir='${prefix}/var'
937 includedir='${prefix}/include'
938 oldincludedir='/usr/include'
939 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
940 infodir='${datarootdir}/info'
941 htmldir='${docdir}'
942 dvidir='${docdir}'
943 pdfdir='${docdir}'
944 psdir='${docdir}'
945 libdir='${exec_prefix}/lib'
946 localedir='${datarootdir}/locale'
947 mandir='${datarootdir}/man'
949 ac_prev=
950 ac_dashdash=
951 for ac_option
953 # If the previous option needs an argument, assign it.
954 if test -n "$ac_prev"; then
955 eval $ac_prev=\$ac_option
956 ac_prev=
957 continue
960 case $ac_option in
961 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
962 *=) ac_optarg= ;;
963 *) ac_optarg=yes ;;
964 esac
966 # Accept the important Cygnus configure options, so we can diagnose typos.
968 case $ac_dashdash$ac_option in
970 ac_dashdash=yes ;;
972 -bindir | --bindir | --bindi | --bind | --bin | --bi)
973 ac_prev=bindir ;;
974 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
975 bindir=$ac_optarg ;;
977 -build | --build | --buil | --bui | --bu)
978 ac_prev=build_alias ;;
979 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
980 build_alias=$ac_optarg ;;
982 -cache-file | --cache-file | --cache-fil | --cache-fi \
983 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
984 ac_prev=cache_file ;;
985 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
986 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
987 cache_file=$ac_optarg ;;
989 --config-cache | -C)
990 cache_file=config.cache ;;
992 -datadir | --datadir | --datadi | --datad)
993 ac_prev=datadir ;;
994 -datadir=* | --datadir=* | --datadi=* | --datad=*)
995 datadir=$ac_optarg ;;
997 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
998 | --dataroo | --dataro | --datar)
999 ac_prev=datarootdir ;;
1000 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1001 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1002 datarootdir=$ac_optarg ;;
1004 -disable-* | --disable-*)
1005 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1006 # Reject names that are not valid shell variable names.
1007 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1008 as_fn_error $? "invalid feature name: $ac_useropt"
1009 ac_useropt_orig=$ac_useropt
1010 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1011 case $ac_user_opts in
1013 "enable_$ac_useropt"
1014 "*) ;;
1015 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1016 ac_unrecognized_sep=', ';;
1017 esac
1018 eval enable_$ac_useropt=no ;;
1020 -docdir | --docdir | --docdi | --doc | --do)
1021 ac_prev=docdir ;;
1022 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1023 docdir=$ac_optarg ;;
1025 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1026 ac_prev=dvidir ;;
1027 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1028 dvidir=$ac_optarg ;;
1030 -enable-* | --enable-*)
1031 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1032 # Reject names that are not valid shell variable names.
1033 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1034 as_fn_error $? "invalid feature name: $ac_useropt"
1035 ac_useropt_orig=$ac_useropt
1036 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1037 case $ac_user_opts in
1039 "enable_$ac_useropt"
1040 "*) ;;
1041 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1042 ac_unrecognized_sep=', ';;
1043 esac
1044 eval enable_$ac_useropt=\$ac_optarg ;;
1046 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1047 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1048 | --exec | --exe | --ex)
1049 ac_prev=exec_prefix ;;
1050 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1051 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1052 | --exec=* | --exe=* | --ex=*)
1053 exec_prefix=$ac_optarg ;;
1055 -gas | --gas | --ga | --g)
1056 # Obsolete; use --with-gas.
1057 with_gas=yes ;;
1059 -help | --help | --hel | --he | -h)
1060 ac_init_help=long ;;
1061 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1062 ac_init_help=recursive ;;
1063 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1064 ac_init_help=short ;;
1066 -host | --host | --hos | --ho)
1067 ac_prev=host_alias ;;
1068 -host=* | --host=* | --hos=* | --ho=*)
1069 host_alias=$ac_optarg ;;
1071 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1072 ac_prev=htmldir ;;
1073 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1074 | --ht=*)
1075 htmldir=$ac_optarg ;;
1077 -includedir | --includedir | --includedi | --included | --include \
1078 | --includ | --inclu | --incl | --inc)
1079 ac_prev=includedir ;;
1080 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1081 | --includ=* | --inclu=* | --incl=* | --inc=*)
1082 includedir=$ac_optarg ;;
1084 -infodir | --infodir | --infodi | --infod | --info | --inf)
1085 ac_prev=infodir ;;
1086 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1087 infodir=$ac_optarg ;;
1089 -libdir | --libdir | --libdi | --libd)
1090 ac_prev=libdir ;;
1091 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1092 libdir=$ac_optarg ;;
1094 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1095 | --libexe | --libex | --libe)
1096 ac_prev=libexecdir ;;
1097 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1098 | --libexe=* | --libex=* | --libe=*)
1099 libexecdir=$ac_optarg ;;
1101 -localedir | --localedir | --localedi | --localed | --locale)
1102 ac_prev=localedir ;;
1103 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1104 localedir=$ac_optarg ;;
1106 -localstatedir | --localstatedir | --localstatedi | --localstated \
1107 | --localstate | --localstat | --localsta | --localst | --locals)
1108 ac_prev=localstatedir ;;
1109 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1110 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1111 localstatedir=$ac_optarg ;;
1113 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1114 ac_prev=mandir ;;
1115 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1116 mandir=$ac_optarg ;;
1118 -nfp | --nfp | --nf)
1119 # Obsolete; use --without-fp.
1120 with_fp=no ;;
1122 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1123 | --no-cr | --no-c | -n)
1124 no_create=yes ;;
1126 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1127 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1128 no_recursion=yes ;;
1130 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1131 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1132 | --oldin | --oldi | --old | --ol | --o)
1133 ac_prev=oldincludedir ;;
1134 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1135 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1136 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1137 oldincludedir=$ac_optarg ;;
1139 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1140 ac_prev=prefix ;;
1141 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1142 prefix=$ac_optarg ;;
1144 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1145 | --program-pre | --program-pr | --program-p)
1146 ac_prev=program_prefix ;;
1147 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1148 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1149 program_prefix=$ac_optarg ;;
1151 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1152 | --program-suf | --program-su | --program-s)
1153 ac_prev=program_suffix ;;
1154 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1155 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1156 program_suffix=$ac_optarg ;;
1158 -program-transform-name | --program-transform-name \
1159 | --program-transform-nam | --program-transform-na \
1160 | --program-transform-n | --program-transform- \
1161 | --program-transform | --program-transfor \
1162 | --program-transfo | --program-transf \
1163 | --program-trans | --program-tran \
1164 | --progr-tra | --program-tr | --program-t)
1165 ac_prev=program_transform_name ;;
1166 -program-transform-name=* | --program-transform-name=* \
1167 | --program-transform-nam=* | --program-transform-na=* \
1168 | --program-transform-n=* | --program-transform-=* \
1169 | --program-transform=* | --program-transfor=* \
1170 | --program-transfo=* | --program-transf=* \
1171 | --program-trans=* | --program-tran=* \
1172 | --progr-tra=* | --program-tr=* | --program-t=*)
1173 program_transform_name=$ac_optarg ;;
1175 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1176 ac_prev=pdfdir ;;
1177 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1178 pdfdir=$ac_optarg ;;
1180 -psdir | --psdir | --psdi | --psd | --ps)
1181 ac_prev=psdir ;;
1182 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1183 psdir=$ac_optarg ;;
1185 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1186 | -silent | --silent | --silen | --sile | --sil)
1187 silent=yes ;;
1189 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1190 ac_prev=sbindir ;;
1191 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1192 | --sbi=* | --sb=*)
1193 sbindir=$ac_optarg ;;
1195 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1196 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1197 | --sharedst | --shareds | --shared | --share | --shar \
1198 | --sha | --sh)
1199 ac_prev=sharedstatedir ;;
1200 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1201 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1202 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1203 | --sha=* | --sh=*)
1204 sharedstatedir=$ac_optarg ;;
1206 -site | --site | --sit)
1207 ac_prev=site ;;
1208 -site=* | --site=* | --sit=*)
1209 site=$ac_optarg ;;
1211 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1212 ac_prev=srcdir ;;
1213 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1214 srcdir=$ac_optarg ;;
1216 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1217 | --syscon | --sysco | --sysc | --sys | --sy)
1218 ac_prev=sysconfdir ;;
1219 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1220 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1221 sysconfdir=$ac_optarg ;;
1223 -target | --target | --targe | --targ | --tar | --ta | --t)
1224 ac_prev=target_alias ;;
1225 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1226 target_alias=$ac_optarg ;;
1228 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1229 verbose=yes ;;
1231 -version | --version | --versio | --versi | --vers | -V)
1232 ac_init_version=: ;;
1234 -with-* | --with-*)
1235 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1236 # Reject names that are not valid shell variable names.
1237 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1238 as_fn_error $? "invalid package name: $ac_useropt"
1239 ac_useropt_orig=$ac_useropt
1240 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1241 case $ac_user_opts in
1243 "with_$ac_useropt"
1244 "*) ;;
1245 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1246 ac_unrecognized_sep=', ';;
1247 esac
1248 eval with_$ac_useropt=\$ac_optarg ;;
1250 -without-* | --without-*)
1251 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1252 # Reject names that are not valid shell variable names.
1253 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1254 as_fn_error $? "invalid package name: $ac_useropt"
1255 ac_useropt_orig=$ac_useropt
1256 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1257 case $ac_user_opts in
1259 "with_$ac_useropt"
1260 "*) ;;
1261 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1262 ac_unrecognized_sep=', ';;
1263 esac
1264 eval with_$ac_useropt=no ;;
1266 --x)
1267 # Obsolete; use --with-x.
1268 with_x=yes ;;
1270 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1271 | --x-incl | --x-inc | --x-in | --x-i)
1272 ac_prev=x_includes ;;
1273 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1274 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1275 x_includes=$ac_optarg ;;
1277 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1278 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1279 ac_prev=x_libraries ;;
1280 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1281 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1282 x_libraries=$ac_optarg ;;
1284 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1285 Try \`$0 --help' for more information"
1288 *=*)
1289 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1290 # Reject names that are not valid shell variable names.
1291 case $ac_envvar in #(
1292 '' | [0-9]* | *[!_$as_cr_alnum]* )
1293 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1294 esac
1295 eval $ac_envvar=\$ac_optarg
1296 export $ac_envvar ;;
1299 # FIXME: should be removed in autoconf 3.0.
1300 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1301 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1302 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1303 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1306 esac
1307 done
1309 if test -n "$ac_prev"; then
1310 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1311 as_fn_error $? "missing argument to $ac_option"
1314 if test -n "$ac_unrecognized_opts"; then
1315 case $enable_option_checking in
1316 no) ;;
1317 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1318 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1319 esac
1322 # Check all directory arguments for consistency.
1323 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1324 datadir sysconfdir sharedstatedir localstatedir includedir \
1325 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1326 libdir localedir mandir
1328 eval ac_val=\$$ac_var
1329 # Remove trailing slashes.
1330 case $ac_val in
1331 */ )
1332 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1333 eval $ac_var=\$ac_val;;
1334 esac
1335 # Be sure to have absolute directory names.
1336 case $ac_val in
1337 [\\/$]* | ?:[\\/]* ) continue;;
1338 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1339 esac
1340 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1341 done
1343 # There might be people who depend on the old broken behavior: `$host'
1344 # used to hold the argument of --host etc.
1345 # FIXME: To remove some day.
1346 build=$build_alias
1347 host=$host_alias
1348 target=$target_alias
1350 # FIXME: To remove some day.
1351 if test "x$host_alias" != x; then
1352 if test "x$build_alias" = x; then
1353 cross_compiling=maybe
1354 elif test "x$build_alias" != "x$host_alias"; then
1355 cross_compiling=yes
1359 ac_tool_prefix=
1360 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1362 test "$silent" = yes && exec 6>/dev/null
1365 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1366 ac_ls_di=`ls -di .` &&
1367 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1368 as_fn_error $? "working directory cannot be determined"
1369 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1370 as_fn_error $? "pwd does not report name of working directory"
1373 # Find the source files, if location was not specified.
1374 if test -z "$srcdir"; then
1375 ac_srcdir_defaulted=yes
1376 # Try the directory containing this script, then the parent directory.
1377 ac_confdir=`$as_dirname -- "$as_myself" ||
1378 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1379 X"$as_myself" : 'X\(//\)[^/]' \| \
1380 X"$as_myself" : 'X\(//\)$' \| \
1381 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1382 $as_echo X"$as_myself" |
1383 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1384 s//\1/
1387 /^X\(\/\/\)[^/].*/{
1388 s//\1/
1391 /^X\(\/\/\)$/{
1392 s//\1/
1395 /^X\(\/\).*/{
1396 s//\1/
1399 s/.*/./; q'`
1400 srcdir=$ac_confdir
1401 if test ! -r "$srcdir/$ac_unique_file"; then
1402 srcdir=..
1404 else
1405 ac_srcdir_defaulted=no
1407 if test ! -r "$srcdir/$ac_unique_file"; then
1408 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1409 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1411 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1412 ac_abs_confdir=`(
1413 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1414 pwd)`
1415 # When building in place, set srcdir=.
1416 if test "$ac_abs_confdir" = "$ac_pwd"; then
1417 srcdir=.
1419 # Remove unnecessary trailing slashes from srcdir.
1420 # Double slashes in file names in object file debugging info
1421 # mess up M-x gdb in Emacs.
1422 case $srcdir in
1423 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1424 esac
1425 for ac_var in $ac_precious_vars; do
1426 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1427 eval ac_env_${ac_var}_value=\$${ac_var}
1428 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1429 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1430 done
1433 # Report the --help message.
1435 if test "$ac_init_help" = "long"; then
1436 # Omit some internal or obsolete options to make the list less imposing.
1437 # This message is too long to be a string in the A/UX 3.1 sh.
1438 cat <<_ACEOF
1439 \`configure' configures ld 2.42.50 to adapt to many kinds of systems.
1441 Usage: $0 [OPTION]... [VAR=VALUE]...
1443 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1444 VAR=VALUE. See below for descriptions of some of the useful variables.
1446 Defaults for the options are specified in brackets.
1448 Configuration:
1449 -h, --help display this help and exit
1450 --help=short display options specific to this package
1451 --help=recursive display the short help of all the included packages
1452 -V, --version display version information and exit
1453 -q, --quiet, --silent do not print \`checking ...' messages
1454 --cache-file=FILE cache test results in FILE [disabled]
1455 -C, --config-cache alias for \`--cache-file=config.cache'
1456 -n, --no-create do not create output files
1457 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1459 Installation directories:
1460 --prefix=PREFIX install architecture-independent files in PREFIX
1461 [$ac_default_prefix]
1462 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1463 [PREFIX]
1465 By default, \`make install' will install all the files in
1466 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1467 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1468 for instance \`--prefix=\$HOME'.
1470 For better control, use the options below.
1472 Fine tuning of the installation directories:
1473 --bindir=DIR user executables [EPREFIX/bin]
1474 --sbindir=DIR system admin executables [EPREFIX/sbin]
1475 --libexecdir=DIR program executables [EPREFIX/libexec]
1476 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1477 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1478 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1479 --libdir=DIR object code libraries [EPREFIX/lib]
1480 --includedir=DIR C header files [PREFIX/include]
1481 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1482 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1483 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1484 --infodir=DIR info documentation [DATAROOTDIR/info]
1485 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1486 --mandir=DIR man documentation [DATAROOTDIR/man]
1487 --docdir=DIR documentation root [DATAROOTDIR/doc/ld]
1488 --htmldir=DIR html documentation [DOCDIR]
1489 --dvidir=DIR dvi documentation [DOCDIR]
1490 --pdfdir=DIR pdf documentation [DOCDIR]
1491 --psdir=DIR ps documentation [DOCDIR]
1492 _ACEOF
1494 cat <<\_ACEOF
1496 Program names:
1497 --program-prefix=PREFIX prepend PREFIX to installed program names
1498 --program-suffix=SUFFIX append SUFFIX to installed program names
1499 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1501 System types:
1502 --build=BUILD configure for building on BUILD [guessed]
1503 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1504 --target=TARGET configure for building compilers for TARGET [HOST]
1505 _ACEOF
1508 if test -n "$ac_init_help"; then
1509 case $ac_init_help in
1510 short | recursive ) echo "Configuration of ld 2.42.50:";;
1511 esac
1512 cat <<\_ACEOF
1514 Optional Features:
1515 --disable-option-checking ignore unrecognized --enable/--with options
1516 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1517 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1518 --enable-silent-rules less verbose build output (undo: "make V=1")
1519 --disable-silent-rules verbose build output (undo: "make V=0")
1520 --enable-maintainer-mode
1521 enable make rules and dependencies not useful (and
1522 sometimes confusing) to the casual installer
1523 --enable-dependency-tracking
1524 do not reject slow dependency extractors
1525 --disable-dependency-tracking
1526 speeds up one-time build
1527 --enable-shared[=PKGS] build shared libraries [default=yes]
1528 --enable-static[=PKGS] build static libraries [default=yes]
1529 --enable-fast-install[=PKGS]
1530 optimize for fast installation [default=yes]
1531 --disable-libtool-lock avoid locking (might break parallel builds)
1532 --enable-plugins Enable support for plugins
1533 --disable-largefile omit support for large files
1534 --enable-checking enable run-time checks
1535 --enable-targets alternative target configurations
1536 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
1537 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1538 --enable-got=<type> GOT handling scheme (target, single, negative,
1539 multigot)
1540 --enable-compressed-debug-sections={all,ld,none}
1541 compress debug sections by default]
1542 --enable-default-compressed-debug-sections-algorithm={zlib,zstd}
1543 Default compression algorithm for
1544 --enable-compressed-debug-sections.
1545 --enable-new-dtags set DT_RUNPATH instead of DT_RPATH by default]
1546 --enable-relro enable -z relro in ELF linker by default
1547 --enable-textrel-check=[yes|no|warning|error]
1548 enable DT_TEXTREL check in ELF linker
1549 --enable-separate-code enable -z separate-code in ELF linker by default
1550 --enable-mark-plt enable -z mark-plt in ELF x86-64 linker by default
1551 --enable-warn-execstack enable warnings when creating an executable stack
1552 --enable-error-execstack
1553 turn executable stack warnings into errors
1554 --enable-warn-rwx-segments
1555 enable warnings when creating segments with RWX
1556 permissions
1557 --enable-error-rwx-segments
1558 turn executable segment warnings into errors
1559 --enable-default-execstack
1560 create an executable stack if an input file is
1561 missing a .note.GNU-stack section
1562 --enable-error-handling-script
1563 enable/disable support for the
1564 --error-handling-script option
1565 --enable-default-hash-style={sysv,gnu,both}
1566 use this default hash style
1567 --disable-initfini-array do not use .init_array/.fini_array sections
1568 --enable-libctf Handle .ctf type-info sections [default=yes]
1569 --enable-jansson enable jansson [default=no]
1570 --enable-werror treat compile warnings as errors
1571 --enable-build-warnings enable build-time compiler warnings
1572 --disable-nls do not use Native Language Support
1573 --disable-rpath do not hardcode runtime library paths
1575 Optional Packages:
1576 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1577 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1578 --with-pic try to use only PIC/non-PIC objects [default=use
1579 both]
1580 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1581 --with-lib-path=dir1:dir2... set default LIB_PATH
1582 --with-sysroot=DIR Search for usr/lib et al within DIR.
1583 --with-gnu-ld assume the C compiler uses GNU ld default=no
1584 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1585 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1586 --with-libiconv-type=TYPE type of library to search for (auto/static/shared)
1587 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1588 --without-libintl-prefix don't search for libintl in includedir and libdir
1589 --with-libintl-type=TYPE type of library to search for (auto/static/shared)
1590 --with-system-zlib use installed libz
1591 --with-zstd support zstd compressed debug sections
1592 (default=auto)
1594 Some influential environment variables:
1595 CC C compiler command
1596 CFLAGS C compiler flags
1597 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1598 nonstandard directory <lib dir>
1599 LIBS libraries to pass to the linker, e.g. -l<library>
1600 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1601 you have headers in a nonstandard directory <include dir>
1602 CXX C++ compiler command
1603 CXXFLAGS C++ compiler flags
1604 CPP C preprocessor
1605 PKG_CONFIG path to pkg-config utility
1606 PKG_CONFIG_PATH
1607 directories to add to pkg-config's search path
1608 PKG_CONFIG_LIBDIR
1609 path overriding pkg-config's built-in search path
1610 CXXCPP C++ preprocessor
1611 JANSSON_CFLAGS
1612 C compiler flags for JANSSON, overriding pkg-config
1613 JANSSON_LIBS
1614 linker flags for JANSSON, overriding pkg-config
1615 YACC The `Yet Another Compiler Compiler' implementation to use.
1616 Defaults to the first program found out of: `bison -y', `byacc',
1617 `yacc'.
1618 YFLAGS The list of arguments that will be passed by default to $YACC.
1619 This script will default YFLAGS to the empty string to avoid a
1620 default value of `-d' given by some make applications.
1621 ZSTD_CFLAGS C compiler flags for ZSTD, overriding pkg-config
1622 ZSTD_LIBS linker flags for ZSTD, overriding pkg-config
1624 Use these variables to override the choices made by `configure' or to help
1625 it to find libraries and programs with nonstandard names/locations.
1627 Report bugs to the package provider.
1628 _ACEOF
1629 ac_status=$?
1632 if test "$ac_init_help" = "recursive"; then
1633 # If there are subdirs, report their specific --help.
1634 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1635 test -d "$ac_dir" ||
1636 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1637 continue
1638 ac_builddir=.
1640 case "$ac_dir" in
1641 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1643 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1644 # A ".." for each directory in $ac_dir_suffix.
1645 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1646 case $ac_top_builddir_sub in
1647 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1648 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1649 esac ;;
1650 esac
1651 ac_abs_top_builddir=$ac_pwd
1652 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1653 # for backward compatibility:
1654 ac_top_builddir=$ac_top_build_prefix
1656 case $srcdir in
1657 .) # We are building in place.
1658 ac_srcdir=.
1659 ac_top_srcdir=$ac_top_builddir_sub
1660 ac_abs_top_srcdir=$ac_pwd ;;
1661 [\\/]* | ?:[\\/]* ) # Absolute name.
1662 ac_srcdir=$srcdir$ac_dir_suffix;
1663 ac_top_srcdir=$srcdir
1664 ac_abs_top_srcdir=$srcdir ;;
1665 *) # Relative name.
1666 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1667 ac_top_srcdir=$ac_top_build_prefix$srcdir
1668 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1669 esac
1670 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1672 cd "$ac_dir" || { ac_status=$?; continue; }
1673 # Check for guested configure.
1674 if test -f "$ac_srcdir/configure.gnu"; then
1675 echo &&
1676 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1677 elif test -f "$ac_srcdir/configure"; then
1678 echo &&
1679 $SHELL "$ac_srcdir/configure" --help=recursive
1680 else
1681 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1682 fi || ac_status=$?
1683 cd "$ac_pwd" || { ac_status=$?; break; }
1684 done
1687 test -n "$ac_init_help" && exit $ac_status
1688 if $ac_init_version; then
1689 cat <<\_ACEOF
1690 ld configure 2.42.50
1691 generated by GNU Autoconf 2.69
1693 Copyright (C) 2012 Free Software Foundation, Inc.
1694 This configure script is free software; the Free Software Foundation
1695 gives unlimited permission to copy, distribute and modify it.
1696 _ACEOF
1697 exit
1700 ## ------------------------ ##
1701 ## Autoconf initialization. ##
1702 ## ------------------------ ##
1704 # ac_fn_c_try_compile LINENO
1705 # --------------------------
1706 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1707 ac_fn_c_try_compile ()
1709 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1710 rm -f conftest.$ac_objext
1711 if { { ac_try="$ac_compile"
1712 case "(($ac_try" in
1713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1714 *) ac_try_echo=$ac_try;;
1715 esac
1716 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1717 $as_echo "$ac_try_echo"; } >&5
1718 (eval "$ac_compile") 2>conftest.err
1719 ac_status=$?
1720 if test -s conftest.err; then
1721 grep -v '^ *+' conftest.err >conftest.er1
1722 cat conftest.er1 >&5
1723 mv -f conftest.er1 conftest.err
1725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1726 test $ac_status = 0; } && {
1727 test -z "$ac_c_werror_flag" ||
1728 test ! -s conftest.err
1729 } && test -s conftest.$ac_objext; then :
1730 ac_retval=0
1731 else
1732 $as_echo "$as_me: failed program was:" >&5
1733 sed 's/^/| /' conftest.$ac_ext >&5
1735 ac_retval=1
1737 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1738 as_fn_set_status $ac_retval
1740 } # ac_fn_c_try_compile
1742 # ac_fn_cxx_try_compile LINENO
1743 # ----------------------------
1744 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1745 ac_fn_cxx_try_compile ()
1747 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1748 rm -f conftest.$ac_objext
1749 if { { ac_try="$ac_compile"
1750 case "(($ac_try" in
1751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1752 *) ac_try_echo=$ac_try;;
1753 esac
1754 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1755 $as_echo "$ac_try_echo"; } >&5
1756 (eval "$ac_compile") 2>conftest.err
1757 ac_status=$?
1758 if test -s conftest.err; then
1759 grep -v '^ *+' conftest.err >conftest.er1
1760 cat conftest.er1 >&5
1761 mv -f conftest.er1 conftest.err
1763 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1764 test $ac_status = 0; } && {
1765 test -z "$ac_cxx_werror_flag" ||
1766 test ! -s conftest.err
1767 } && test -s conftest.$ac_objext; then :
1768 ac_retval=0
1769 else
1770 $as_echo "$as_me: failed program was:" >&5
1771 sed 's/^/| /' conftest.$ac_ext >&5
1773 ac_retval=1
1775 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1776 as_fn_set_status $ac_retval
1778 } # ac_fn_cxx_try_compile
1780 # ac_fn_c_try_cpp LINENO
1781 # ----------------------
1782 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1783 ac_fn_c_try_cpp ()
1785 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1786 if { { ac_try="$ac_cpp conftest.$ac_ext"
1787 case "(($ac_try" in
1788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1789 *) ac_try_echo=$ac_try;;
1790 esac
1791 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1792 $as_echo "$ac_try_echo"; } >&5
1793 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1794 ac_status=$?
1795 if test -s conftest.err; then
1796 grep -v '^ *+' conftest.err >conftest.er1
1797 cat conftest.er1 >&5
1798 mv -f conftest.er1 conftest.err
1800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1801 test $ac_status = 0; } > conftest.i && {
1802 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1803 test ! -s conftest.err
1804 }; then :
1805 ac_retval=0
1806 else
1807 $as_echo "$as_me: failed program was:" >&5
1808 sed 's/^/| /' conftest.$ac_ext >&5
1810 ac_retval=1
1812 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1813 as_fn_set_status $ac_retval
1815 } # ac_fn_c_try_cpp
1817 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1818 # -------------------------------------------------------
1819 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1820 # the include files in INCLUDES and setting the cache variable VAR
1821 # accordingly.
1822 ac_fn_c_check_header_mongrel ()
1824 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1825 if eval \${$3+:} false; then :
1826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1827 $as_echo_n "checking for $2... " >&6; }
1828 if eval \${$3+:} false; then :
1829 $as_echo_n "(cached) " >&6
1831 eval ac_res=\$$3
1832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1833 $as_echo "$ac_res" >&6; }
1834 else
1835 # Is the header compilable?
1836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1837 $as_echo_n "checking $2 usability... " >&6; }
1838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1839 /* end confdefs.h. */
1841 #include <$2>
1842 _ACEOF
1843 if ac_fn_c_try_compile "$LINENO"; then :
1844 ac_header_compiler=yes
1845 else
1846 ac_header_compiler=no
1848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1850 $as_echo "$ac_header_compiler" >&6; }
1852 # Is the header present?
1853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1854 $as_echo_n "checking $2 presence... " >&6; }
1855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1856 /* end confdefs.h. */
1857 #include <$2>
1858 _ACEOF
1859 if ac_fn_c_try_cpp "$LINENO"; then :
1860 ac_header_preproc=yes
1861 else
1862 ac_header_preproc=no
1864 rm -f conftest.err conftest.i conftest.$ac_ext
1865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1866 $as_echo "$ac_header_preproc" >&6; }
1868 # So? What about this header?
1869 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1870 yes:no: )
1871 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1872 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1873 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1874 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1876 no:yes:* )
1877 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1878 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1879 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1880 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1881 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1882 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1883 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1884 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1885 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1886 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1888 esac
1889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1890 $as_echo_n "checking for $2... " >&6; }
1891 if eval \${$3+:} false; then :
1892 $as_echo_n "(cached) " >&6
1893 else
1894 eval "$3=\$ac_header_compiler"
1896 eval ac_res=\$$3
1897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1898 $as_echo "$ac_res" >&6; }
1900 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1902 } # ac_fn_c_check_header_mongrel
1904 # ac_fn_c_try_run LINENO
1905 # ----------------------
1906 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1907 # that executables *can* be run.
1908 ac_fn_c_try_run ()
1910 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1911 if { { ac_try="$ac_link"
1912 case "(($ac_try" in
1913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1914 *) ac_try_echo=$ac_try;;
1915 esac
1916 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1917 $as_echo "$ac_try_echo"; } >&5
1918 (eval "$ac_link") 2>&5
1919 ac_status=$?
1920 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1921 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1922 { { case "(($ac_try" in
1923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1924 *) ac_try_echo=$ac_try;;
1925 esac
1926 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1927 $as_echo "$ac_try_echo"; } >&5
1928 (eval "$ac_try") 2>&5
1929 ac_status=$?
1930 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1931 test $ac_status = 0; }; }; then :
1932 ac_retval=0
1933 else
1934 $as_echo "$as_me: program exited with status $ac_status" >&5
1935 $as_echo "$as_me: failed program was:" >&5
1936 sed 's/^/| /' conftest.$ac_ext >&5
1938 ac_retval=$ac_status
1940 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1941 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1942 as_fn_set_status $ac_retval
1944 } # ac_fn_c_try_run
1946 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1947 # -------------------------------------------------------
1948 # Tests whether HEADER exists and can be compiled using the include files in
1949 # INCLUDES, setting the cache variable VAR accordingly.
1950 ac_fn_c_check_header_compile ()
1952 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1954 $as_echo_n "checking for $2... " >&6; }
1955 if eval \${$3+:} false; then :
1956 $as_echo_n "(cached) " >&6
1957 else
1958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1959 /* end confdefs.h. */
1961 #include <$2>
1962 _ACEOF
1963 if ac_fn_c_try_compile "$LINENO"; then :
1964 eval "$3=yes"
1965 else
1966 eval "$3=no"
1968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1970 eval ac_res=\$$3
1971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1972 $as_echo "$ac_res" >&6; }
1973 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1975 } # ac_fn_c_check_header_compile
1977 # ac_fn_c_try_link LINENO
1978 # -----------------------
1979 # Try to link conftest.$ac_ext, and return whether this succeeded.
1980 ac_fn_c_try_link ()
1982 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1983 rm -f conftest.$ac_objext conftest$ac_exeext
1984 if { { ac_try="$ac_link"
1985 case "(($ac_try" in
1986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1987 *) ac_try_echo=$ac_try;;
1988 esac
1989 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1990 $as_echo "$ac_try_echo"; } >&5
1991 (eval "$ac_link") 2>conftest.err
1992 ac_status=$?
1993 if test -s conftest.err; then
1994 grep -v '^ *+' conftest.err >conftest.er1
1995 cat conftest.er1 >&5
1996 mv -f conftest.er1 conftest.err
1998 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1999 test $ac_status = 0; } && {
2000 test -z "$ac_c_werror_flag" ||
2001 test ! -s conftest.err
2002 } && test -s conftest$ac_exeext && {
2003 test "$cross_compiling" = yes ||
2004 test -x conftest$ac_exeext
2005 }; then :
2006 ac_retval=0
2007 else
2008 $as_echo "$as_me: failed program was:" >&5
2009 sed 's/^/| /' conftest.$ac_ext >&5
2011 ac_retval=1
2013 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2014 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2015 # interfere with the next link command; also delete a directory that is
2016 # left behind by Apple's compiler. We do this before executing the actions.
2017 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2018 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2019 as_fn_set_status $ac_retval
2021 } # ac_fn_c_try_link
2023 # ac_fn_c_check_func LINENO FUNC VAR
2024 # ----------------------------------
2025 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2026 ac_fn_c_check_func ()
2028 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2030 $as_echo_n "checking for $2... " >&6; }
2031 if eval \${$3+:} false; then :
2032 $as_echo_n "(cached) " >&6
2033 else
2034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2035 /* end confdefs.h. */
2036 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2037 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2038 #define $2 innocuous_$2
2040 /* System header to define __stub macros and hopefully few prototypes,
2041 which can conflict with char $2 (); below.
2042 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2043 <limits.h> exists even on freestanding compilers. */
2045 #ifdef __STDC__
2046 # include <limits.h>
2047 #else
2048 # include <assert.h>
2049 #endif
2051 #undef $2
2053 /* Override any GCC internal prototype to avoid an error.
2054 Use char because int might match the return type of a GCC
2055 builtin and then its argument prototype would still apply. */
2056 #ifdef __cplusplus
2057 extern "C"
2058 #endif
2059 char $2 ();
2060 /* The GNU C library defines this for functions which it implements
2061 to always fail with ENOSYS. Some functions are actually named
2062 something starting with __ and the normal name is an alias. */
2063 #if defined __stub_$2 || defined __stub___$2
2064 choke me
2065 #endif
2068 main ()
2070 return $2 ();
2072 return 0;
2074 _ACEOF
2075 if ac_fn_c_try_link "$LINENO"; then :
2076 eval "$3=yes"
2077 else
2078 eval "$3=no"
2080 rm -f core conftest.err conftest.$ac_objext \
2081 conftest$ac_exeext conftest.$ac_ext
2083 eval ac_res=\$$3
2084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2085 $as_echo "$ac_res" >&6; }
2086 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2088 } # ac_fn_c_check_func
2090 # ac_fn_cxx_try_cpp LINENO
2091 # ------------------------
2092 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2093 ac_fn_cxx_try_cpp ()
2095 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2096 if { { ac_try="$ac_cpp conftest.$ac_ext"
2097 case "(($ac_try" in
2098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2099 *) ac_try_echo=$ac_try;;
2100 esac
2101 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2102 $as_echo "$ac_try_echo"; } >&5
2103 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2104 ac_status=$?
2105 if test -s conftest.err; then
2106 grep -v '^ *+' conftest.err >conftest.er1
2107 cat conftest.er1 >&5
2108 mv -f conftest.er1 conftest.err
2110 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2111 test $ac_status = 0; } > conftest.i && {
2112 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2113 test ! -s conftest.err
2114 }; then :
2115 ac_retval=0
2116 else
2117 $as_echo "$as_me: failed program was:" >&5
2118 sed 's/^/| /' conftest.$ac_ext >&5
2120 ac_retval=1
2122 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2123 as_fn_set_status $ac_retval
2125 } # ac_fn_cxx_try_cpp
2127 # ac_fn_cxx_try_link LINENO
2128 # -------------------------
2129 # Try to link conftest.$ac_ext, and return whether this succeeded.
2130 ac_fn_cxx_try_link ()
2132 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2133 rm -f conftest.$ac_objext conftest$ac_exeext
2134 if { { ac_try="$ac_link"
2135 case "(($ac_try" in
2136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2137 *) ac_try_echo=$ac_try;;
2138 esac
2139 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2140 $as_echo "$ac_try_echo"; } >&5
2141 (eval "$ac_link") 2>conftest.err
2142 ac_status=$?
2143 if test -s conftest.err; then
2144 grep -v '^ *+' conftest.err >conftest.er1
2145 cat conftest.er1 >&5
2146 mv -f conftest.er1 conftest.err
2148 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2149 test $ac_status = 0; } && {
2150 test -z "$ac_cxx_werror_flag" ||
2151 test ! -s conftest.err
2152 } && test -s conftest$ac_exeext && {
2153 test "$cross_compiling" = yes ||
2154 test -x conftest$ac_exeext
2155 }; then :
2156 ac_retval=0
2157 else
2158 $as_echo "$as_me: failed program was:" >&5
2159 sed 's/^/| /' conftest.$ac_ext >&5
2161 ac_retval=1
2163 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2164 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2165 # interfere with the next link command; also delete a directory that is
2166 # left behind by Apple's compiler. We do this before executing the actions.
2167 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2168 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2169 as_fn_set_status $ac_retval
2171 } # ac_fn_cxx_try_link
2173 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2174 # --------------------------------------------
2175 # Tries to find the compile-time value of EXPR in a program that includes
2176 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2177 # computed
2178 ac_fn_c_compute_int ()
2180 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2181 if test "$cross_compiling" = yes; then
2182 # Depending upon the size, compute the lo and hi bounds.
2183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2184 /* end confdefs.h. */
2187 main ()
2189 static int test_array [1 - 2 * !(($2) >= 0)];
2190 test_array [0] = 0;
2191 return test_array [0];
2194 return 0;
2196 _ACEOF
2197 if ac_fn_c_try_compile "$LINENO"; then :
2198 ac_lo=0 ac_mid=0
2199 while :; do
2200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2201 /* end confdefs.h. */
2204 main ()
2206 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2207 test_array [0] = 0;
2208 return test_array [0];
2211 return 0;
2213 _ACEOF
2214 if ac_fn_c_try_compile "$LINENO"; then :
2215 ac_hi=$ac_mid; break
2216 else
2217 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2218 if test $ac_lo -le $ac_mid; then
2219 ac_lo= ac_hi=
2220 break
2222 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2225 done
2226 else
2227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2228 /* end confdefs.h. */
2231 main ()
2233 static int test_array [1 - 2 * !(($2) < 0)];
2234 test_array [0] = 0;
2235 return test_array [0];
2238 return 0;
2240 _ACEOF
2241 if ac_fn_c_try_compile "$LINENO"; then :
2242 ac_hi=-1 ac_mid=-1
2243 while :; do
2244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2245 /* end confdefs.h. */
2248 main ()
2250 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2251 test_array [0] = 0;
2252 return test_array [0];
2255 return 0;
2257 _ACEOF
2258 if ac_fn_c_try_compile "$LINENO"; then :
2259 ac_lo=$ac_mid; break
2260 else
2261 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2262 if test $ac_mid -le $ac_hi; then
2263 ac_lo= ac_hi=
2264 break
2266 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2269 done
2270 else
2271 ac_lo= ac_hi=
2273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2276 # Binary search between lo and hi bounds.
2277 while test "x$ac_lo" != "x$ac_hi"; do
2278 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2280 /* end confdefs.h. */
2283 main ()
2285 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2286 test_array [0] = 0;
2287 return test_array [0];
2290 return 0;
2292 _ACEOF
2293 if ac_fn_c_try_compile "$LINENO"; then :
2294 ac_hi=$ac_mid
2295 else
2296 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2299 done
2300 case $ac_lo in #((
2301 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2302 '') ac_retval=1 ;;
2303 esac
2304 else
2305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2306 /* end confdefs.h. */
2308 static long int longval () { return $2; }
2309 static unsigned long int ulongval () { return $2; }
2310 #include <stdio.h>
2311 #include <stdlib.h>
2313 main ()
2316 FILE *f = fopen ("conftest.val", "w");
2317 if (! f)
2318 return 1;
2319 if (($2) < 0)
2321 long int i = longval ();
2322 if (i != ($2))
2323 return 1;
2324 fprintf (f, "%ld", i);
2326 else
2328 unsigned long int i = ulongval ();
2329 if (i != ($2))
2330 return 1;
2331 fprintf (f, "%lu", i);
2333 /* Do not output a trailing newline, as this causes \r\n confusion
2334 on some platforms. */
2335 return ferror (f) || fclose (f) != 0;
2338 return 0;
2340 _ACEOF
2341 if ac_fn_c_try_run "$LINENO"; then :
2342 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2343 else
2344 ac_retval=1
2346 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2347 conftest.$ac_objext conftest.beam conftest.$ac_ext
2348 rm -f conftest.val
2351 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2352 as_fn_set_status $ac_retval
2354 } # ac_fn_c_compute_int
2356 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2357 # ---------------------------------------------
2358 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2359 # accordingly.
2360 ac_fn_c_check_decl ()
2362 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2363 as_decl_name=`echo $2|sed 's/ *(.*//'`
2364 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2366 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2367 if eval \${$3+:} false; then :
2368 $as_echo_n "(cached) " >&6
2369 else
2370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2371 /* end confdefs.h. */
2374 main ()
2376 #ifndef $as_decl_name
2377 #ifdef __cplusplus
2378 (void) $as_decl_use;
2379 #else
2380 (void) $as_decl_name;
2381 #endif
2382 #endif
2385 return 0;
2387 _ACEOF
2388 if ac_fn_c_try_compile "$LINENO"; then :
2389 eval "$3=yes"
2390 else
2391 eval "$3=no"
2393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2395 eval ac_res=\$$3
2396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2397 $as_echo "$ac_res" >&6; }
2398 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2400 } # ac_fn_c_check_decl
2401 cat >config.log <<_ACEOF
2402 This file contains any messages produced by compilers while
2403 running configure, to aid debugging if configure makes a mistake.
2405 It was created by ld $as_me 2.42.50, which was
2406 generated by GNU Autoconf 2.69. Invocation command line was
2408 $ $0 $@
2410 _ACEOF
2411 exec 5>>config.log
2413 cat <<_ASUNAME
2414 ## --------- ##
2415 ## Platform. ##
2416 ## --------- ##
2418 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2419 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2420 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2421 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2422 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2424 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2425 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2427 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2428 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2429 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2430 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2431 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2432 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2433 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2435 _ASUNAME
2437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2438 for as_dir in $PATH
2440 IFS=$as_save_IFS
2441 test -z "$as_dir" && as_dir=.
2442 $as_echo "PATH: $as_dir"
2443 done
2444 IFS=$as_save_IFS
2446 } >&5
2448 cat >&5 <<_ACEOF
2451 ## ----------- ##
2452 ## Core tests. ##
2453 ## ----------- ##
2455 _ACEOF
2458 # Keep a trace of the command line.
2459 # Strip out --no-create and --no-recursion so they do not pile up.
2460 # Strip out --silent because we don't want to record it for future runs.
2461 # Also quote any args containing shell meta-characters.
2462 # Make two passes to allow for proper duplicate-argument suppression.
2463 ac_configure_args=
2464 ac_configure_args0=
2465 ac_configure_args1=
2466 ac_must_keep_next=false
2467 for ac_pass in 1 2
2469 for ac_arg
2471 case $ac_arg in
2472 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2473 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2474 | -silent | --silent | --silen | --sile | --sil)
2475 continue ;;
2476 *\'*)
2477 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2478 esac
2479 case $ac_pass in
2480 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2482 as_fn_append ac_configure_args1 " '$ac_arg'"
2483 if test $ac_must_keep_next = true; then
2484 ac_must_keep_next=false # Got value, back to normal.
2485 else
2486 case $ac_arg in
2487 *=* | --config-cache | -C | -disable-* | --disable-* \
2488 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2489 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2490 | -with-* | --with-* | -without-* | --without-* | --x)
2491 case "$ac_configure_args0 " in
2492 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2493 esac
2495 -* ) ac_must_keep_next=true ;;
2496 esac
2498 as_fn_append ac_configure_args " '$ac_arg'"
2500 esac
2501 done
2502 done
2503 { ac_configure_args0=; unset ac_configure_args0;}
2504 { ac_configure_args1=; unset ac_configure_args1;}
2506 # When interrupted or exit'd, cleanup temporary files, and complete
2507 # config.log. We remove comments because anyway the quotes in there
2508 # would cause problems or look ugly.
2509 # WARNING: Use '\'' to represent an apostrophe within the trap.
2510 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2511 trap 'exit_status=$?
2512 # Save into config.log some information that might help in debugging.
2514 echo
2516 $as_echo "## ---------------- ##
2517 ## Cache variables. ##
2518 ## ---------------- ##"
2519 echo
2520 # The following way of writing the cache mishandles newlines in values,
2522 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2523 eval ac_val=\$$ac_var
2524 case $ac_val in #(
2525 *${as_nl}*)
2526 case $ac_var in #(
2527 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2528 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2529 esac
2530 case $ac_var in #(
2531 _ | IFS | as_nl) ;; #(
2532 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2533 *) { eval $ac_var=; unset $ac_var;} ;;
2534 esac ;;
2535 esac
2536 done
2537 (set) 2>&1 |
2538 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2539 *${as_nl}ac_space=\ *)
2540 sed -n \
2541 "s/'\''/'\''\\\\'\'''\''/g;
2542 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2543 ;; #(
2545 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2547 esac |
2548 sort
2550 echo
2552 $as_echo "## ----------------- ##
2553 ## Output variables. ##
2554 ## ----------------- ##"
2555 echo
2556 for ac_var in $ac_subst_vars
2558 eval ac_val=\$$ac_var
2559 case $ac_val in
2560 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2561 esac
2562 $as_echo "$ac_var='\''$ac_val'\''"
2563 done | sort
2564 echo
2566 if test -n "$ac_subst_files"; then
2567 $as_echo "## ------------------- ##
2568 ## File substitutions. ##
2569 ## ------------------- ##"
2570 echo
2571 for ac_var in $ac_subst_files
2573 eval ac_val=\$$ac_var
2574 case $ac_val in
2575 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2576 esac
2577 $as_echo "$ac_var='\''$ac_val'\''"
2578 done | sort
2579 echo
2582 if test -s confdefs.h; then
2583 $as_echo "## ----------- ##
2584 ## confdefs.h. ##
2585 ## ----------- ##"
2586 echo
2587 cat confdefs.h
2588 echo
2590 test "$ac_signal" != 0 &&
2591 $as_echo "$as_me: caught signal $ac_signal"
2592 $as_echo "$as_me: exit $exit_status"
2593 } >&5
2594 rm -f core *.core core.conftest.* &&
2595 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2596 exit $exit_status
2598 for ac_signal in 1 2 13 15; do
2599 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2600 done
2601 ac_signal=0
2603 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2604 rm -f -r conftest* confdefs.h
2606 $as_echo "/* confdefs.h */" > confdefs.h
2608 # Predefined preprocessor variables.
2610 cat >>confdefs.h <<_ACEOF
2611 #define PACKAGE_NAME "$PACKAGE_NAME"
2612 _ACEOF
2614 cat >>confdefs.h <<_ACEOF
2615 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2616 _ACEOF
2618 cat >>confdefs.h <<_ACEOF
2619 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2620 _ACEOF
2622 cat >>confdefs.h <<_ACEOF
2623 #define PACKAGE_STRING "$PACKAGE_STRING"
2624 _ACEOF
2626 cat >>confdefs.h <<_ACEOF
2627 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2628 _ACEOF
2630 cat >>confdefs.h <<_ACEOF
2631 #define PACKAGE_URL "$PACKAGE_URL"
2632 _ACEOF
2635 # Let the site file select an alternate cache file if it wants to.
2636 # Prefer an explicitly selected file to automatically selected ones.
2637 ac_site_file1=NONE
2638 ac_site_file2=NONE
2639 if test -n "$CONFIG_SITE"; then
2640 # We do not want a PATH search for config.site.
2641 case $CONFIG_SITE in #((
2642 -*) ac_site_file1=./$CONFIG_SITE;;
2643 */*) ac_site_file1=$CONFIG_SITE;;
2644 *) ac_site_file1=./$CONFIG_SITE;;
2645 esac
2646 elif test "x$prefix" != xNONE; then
2647 ac_site_file1=$prefix/share/config.site
2648 ac_site_file2=$prefix/etc/config.site
2649 else
2650 ac_site_file1=$ac_default_prefix/share/config.site
2651 ac_site_file2=$ac_default_prefix/etc/config.site
2653 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2655 test "x$ac_site_file" = xNONE && continue
2656 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2657 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2658 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2659 sed 's/^/| /' "$ac_site_file" >&5
2660 . "$ac_site_file" \
2661 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2662 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2663 as_fn_error $? "failed to load site script $ac_site_file
2664 See \`config.log' for more details" "$LINENO" 5; }
2666 done
2668 if test -r "$cache_file"; then
2669 # Some versions of bash will fail to source /dev/null (special files
2670 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2671 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2672 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2673 $as_echo "$as_me: loading cache $cache_file" >&6;}
2674 case $cache_file in
2675 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2676 *) . "./$cache_file";;
2677 esac
2679 else
2680 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2681 $as_echo "$as_me: creating cache $cache_file" >&6;}
2682 >$cache_file
2685 gt_needs="$gt_needs "
2686 as_fn_append ac_header_list " stdlib.h"
2687 as_fn_append ac_header_list " unistd.h"
2688 as_fn_append ac_header_list " sys/param.h"
2689 # Check that the precious variables saved in the cache have kept the same
2690 # value.
2691 ac_cache_corrupted=false
2692 for ac_var in $ac_precious_vars; do
2693 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2694 eval ac_new_set=\$ac_env_${ac_var}_set
2695 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2696 eval ac_new_val=\$ac_env_${ac_var}_value
2697 case $ac_old_set,$ac_new_set in
2698 set,)
2699 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2700 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2701 ac_cache_corrupted=: ;;
2702 ,set)
2703 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2704 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2705 ac_cache_corrupted=: ;;
2706 ,);;
2708 if test "x$ac_old_val" != "x$ac_new_val"; then
2709 # differences in whitespace do not lead to failure.
2710 ac_old_val_w=`echo x $ac_old_val`
2711 ac_new_val_w=`echo x $ac_new_val`
2712 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2713 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2714 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2715 ac_cache_corrupted=:
2716 else
2717 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2718 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2719 eval $ac_var=\$ac_old_val
2721 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2722 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2723 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2724 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2725 fi;;
2726 esac
2727 # Pass precious variables to config.status.
2728 if test "$ac_new_set" = set; then
2729 case $ac_new_val in
2730 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2731 *) ac_arg=$ac_var=$ac_new_val ;;
2732 esac
2733 case " $ac_configure_args " in
2734 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2735 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2736 esac
2738 done
2739 if $ac_cache_corrupted; then
2740 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2741 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2742 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2743 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2744 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2746 ## -------------------- ##
2747 ## Main body of script. ##
2748 ## -------------------- ##
2750 ac_ext=c
2751 ac_cpp='$CPP $CPPFLAGS'
2752 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2753 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2754 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2762 ac_aux_dir=
2763 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2764 if test -f "$ac_dir/install-sh"; then
2765 ac_aux_dir=$ac_dir
2766 ac_install_sh="$ac_aux_dir/install-sh -c"
2767 break
2768 elif test -f "$ac_dir/install.sh"; then
2769 ac_aux_dir=$ac_dir
2770 ac_install_sh="$ac_aux_dir/install.sh -c"
2771 break
2772 elif test -f "$ac_dir/shtool"; then
2773 ac_aux_dir=$ac_dir
2774 ac_install_sh="$ac_aux_dir/shtool install -c"
2775 break
2777 done
2778 if test -z "$ac_aux_dir"; then
2779 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2782 # These three variables are undocumented and unsupported,
2783 # and are intended to be withdrawn in a future Autoconf release.
2784 # They can cause serious problems if a builder's source tree is in a directory
2785 # whose full name contains unusual characters.
2786 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2787 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2788 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2791 # Make sure we can run config.sub.
2792 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2793 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2796 $as_echo_n "checking build system type... " >&6; }
2797 if ${ac_cv_build+:} false; then :
2798 $as_echo_n "(cached) " >&6
2799 else
2800 ac_build_alias=$build_alias
2801 test "x$ac_build_alias" = x &&
2802 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2803 test "x$ac_build_alias" = x &&
2804 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2805 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2806 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2810 $as_echo "$ac_cv_build" >&6; }
2811 case $ac_cv_build in
2812 *-*-*) ;;
2813 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2814 esac
2815 build=$ac_cv_build
2816 ac_save_IFS=$IFS; IFS='-'
2817 set x $ac_cv_build
2818 shift
2819 build_cpu=$1
2820 build_vendor=$2
2821 shift; shift
2822 # Remember, the first character of IFS is used to create $*,
2823 # except with old shells:
2824 build_os=$*
2825 IFS=$ac_save_IFS
2826 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2830 $as_echo_n "checking host system type... " >&6; }
2831 if ${ac_cv_host+:} false; then :
2832 $as_echo_n "(cached) " >&6
2833 else
2834 if test "x$host_alias" = x; then
2835 ac_cv_host=$ac_cv_build
2836 else
2837 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2838 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2843 $as_echo "$ac_cv_host" >&6; }
2844 case $ac_cv_host in
2845 *-*-*) ;;
2846 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2847 esac
2848 host=$ac_cv_host
2849 ac_save_IFS=$IFS; IFS='-'
2850 set x $ac_cv_host
2851 shift
2852 host_cpu=$1
2853 host_vendor=$2
2854 shift; shift
2855 # Remember, the first character of IFS is used to create $*,
2856 # except with old shells:
2857 host_os=$*
2858 IFS=$ac_save_IFS
2859 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2863 $as_echo_n "checking target system type... " >&6; }
2864 if ${ac_cv_target+:} false; then :
2865 $as_echo_n "(cached) " >&6
2866 else
2867 if test "x$target_alias" = x; then
2868 ac_cv_target=$ac_cv_host
2869 else
2870 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2871 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2876 $as_echo "$ac_cv_target" >&6; }
2877 case $ac_cv_target in
2878 *-*-*) ;;
2879 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2880 esac
2881 target=$ac_cv_target
2882 ac_save_IFS=$IFS; IFS='-'
2883 set x $ac_cv_target
2884 shift
2885 target_cpu=$1
2886 target_vendor=$2
2887 shift; shift
2888 # Remember, the first character of IFS is used to create $*,
2889 # except with old shells:
2890 target_os=$*
2891 IFS=$ac_save_IFS
2892 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2895 # The aliases save the names the user supplied, while $host etc.
2896 # will get canonicalized.
2897 test -n "$target_alias" &&
2898 test "$program_prefix$program_suffix$program_transform_name" = \
2899 NONENONEs,x,x, &&
2900 program_prefix=${target_alias}-
2903 am__api_version='1.15'
2905 # Find a good install program. We prefer a C program (faster),
2906 # so one script is as good as another. But avoid the broken or
2907 # incompatible versions:
2908 # SysV /etc/install, /usr/sbin/install
2909 # SunOS /usr/etc/install
2910 # IRIX /sbin/install
2911 # AIX /bin/install
2912 # AmigaOS /C/install, which installs bootblocks on floppy discs
2913 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2914 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2915 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2916 # OS/2's system install, which has a completely different semantic
2917 # ./install, which can be erroneously created by make from ./install.sh.
2918 # Reject install programs that cannot install multiple files.
2919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2920 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2921 if test -z "$INSTALL"; then
2922 if ${ac_cv_path_install+:} false; then :
2923 $as_echo_n "(cached) " >&6
2924 else
2925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2926 for as_dir in $PATH
2928 IFS=$as_save_IFS
2929 test -z "$as_dir" && as_dir=.
2930 # Account for people who put trailing slashes in PATH elements.
2931 case $as_dir/ in #((
2932 ./ | .// | /[cC]/* | \
2933 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2934 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2935 /usr/ucb/* ) ;;
2937 # OSF1 and SCO ODT 3.0 have their own names for install.
2938 # Don't use installbsd from OSF since it installs stuff as root
2939 # by default.
2940 for ac_prog in ginstall scoinst install; do
2941 for ac_exec_ext in '' $ac_executable_extensions; do
2942 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2943 if test $ac_prog = install &&
2944 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2945 # AIX install. It has an incompatible calling convention.
2947 elif test $ac_prog = install &&
2948 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2949 # program-specific install script used by HP pwplus--don't use.
2951 else
2952 rm -rf conftest.one conftest.two conftest.dir
2953 echo one > conftest.one
2954 echo two > conftest.two
2955 mkdir conftest.dir
2956 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2957 test -s conftest.one && test -s conftest.two &&
2958 test -s conftest.dir/conftest.one &&
2959 test -s conftest.dir/conftest.two
2960 then
2961 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2962 break 3
2966 done
2967 done
2969 esac
2971 done
2972 IFS=$as_save_IFS
2974 rm -rf conftest.one conftest.two conftest.dir
2977 if test "${ac_cv_path_install+set}" = set; then
2978 INSTALL=$ac_cv_path_install
2979 else
2980 # As a last resort, use the slow shell script. Don't cache a
2981 # value for INSTALL within a source directory, because that will
2982 # break other packages using the cache if that directory is
2983 # removed, or if the value is a relative name.
2984 INSTALL=$ac_install_sh
2987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2988 $as_echo "$INSTALL" >&6; }
2990 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2991 # It thinks the first close brace ends the variable substitution.
2992 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2994 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2996 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2999 $as_echo_n "checking whether build environment is sane... " >&6; }
3000 # Reject unsafe characters in $srcdir or the absolute working directory
3001 # name. Accept space and tab only in the latter.
3002 am_lf='
3004 case `pwd` in
3005 *[\\\"\#\$\&\'\`$am_lf]*)
3006 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3007 esac
3008 case $srcdir in
3009 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3010 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3011 esac
3013 # Do 'set' in a subshell so we don't clobber the current shell's
3014 # arguments. Must try -L first in case configure is actually a
3015 # symlink; some systems play weird games with the mod time of symlinks
3016 # (eg FreeBSD returns the mod time of the symlink's containing
3017 # directory).
3018 if (
3019 am_has_slept=no
3020 for am_try in 1 2; do
3021 echo "timestamp, slept: $am_has_slept" > conftest.file
3022 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3023 if test "$*" = "X"; then
3024 # -L didn't work.
3025 set X `ls -t "$srcdir/configure" conftest.file`
3027 if test "$*" != "X $srcdir/configure conftest.file" \
3028 && test "$*" != "X conftest.file $srcdir/configure"; then
3030 # If neither matched, then we have a broken ls. This can happen
3031 # if, for instance, CONFIG_SHELL is bash and it inherits a
3032 # broken ls alias from the environment. This has actually
3033 # happened. Such a system could not be considered "sane".
3034 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3035 alias in your environment" "$LINENO" 5
3037 if test "$2" = conftest.file || test $am_try -eq 2; then
3038 break
3040 # Just in case.
3041 sleep 1
3042 am_has_slept=yes
3043 done
3044 test "$2" = conftest.file
3046 then
3047 # Ok.
3049 else
3050 as_fn_error $? "newly created file is older than distributed files!
3051 Check your system clock" "$LINENO" 5
3053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3054 $as_echo "yes" >&6; }
3055 # If we didn't sleep, we still need to ensure time stamps of config.status and
3056 # generated files are strictly newer.
3057 am_sleep_pid=
3058 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3059 ( sleep 1 ) &
3060 am_sleep_pid=$!
3063 rm -f conftest.file
3065 test "$program_prefix" != NONE &&
3066 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3067 # Use a double $ so make ignores it.
3068 test "$program_suffix" != NONE &&
3069 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3070 # Double any \ or $.
3071 # By default was `s,x,x', remove it if useless.
3072 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3073 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3075 # Expand $ac_aux_dir to an absolute path.
3076 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3078 if test x"${MISSING+set}" != xset; then
3079 case $am_aux_dir in
3080 *\ * | *\ *)
3081 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3083 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3084 esac
3086 # Use eval to expand $SHELL
3087 if eval "$MISSING --is-lightweight"; then
3088 am_missing_run="$MISSING "
3089 else
3090 am_missing_run=
3091 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3092 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3095 if test x"${install_sh+set}" != xset; then
3096 case $am_aux_dir in
3097 *\ * | *\ *)
3098 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3100 install_sh="\${SHELL} $am_aux_dir/install-sh"
3101 esac
3104 # Installed binaries are usually stripped using 'strip' when the user
3105 # run "make install-strip". However 'strip' might not be the right
3106 # tool to use in cross-compilation environments, therefore Automake
3107 # will honor the 'STRIP' environment variable to overrule this program.
3108 if test "$cross_compiling" != no; then
3109 if test -n "$ac_tool_prefix"; then
3110 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3111 set dummy ${ac_tool_prefix}strip; ac_word=$2
3112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3113 $as_echo_n "checking for $ac_word... " >&6; }
3114 if ${ac_cv_prog_STRIP+:} false; then :
3115 $as_echo_n "(cached) " >&6
3116 else
3117 if test -n "$STRIP"; then
3118 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3119 else
3120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3121 for as_dir in $PATH
3123 IFS=$as_save_IFS
3124 test -z "$as_dir" && as_dir=.
3125 for ac_exec_ext in '' $ac_executable_extensions; do
3126 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3127 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3129 break 2
3131 done
3132 done
3133 IFS=$as_save_IFS
3137 STRIP=$ac_cv_prog_STRIP
3138 if test -n "$STRIP"; then
3139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3140 $as_echo "$STRIP" >&6; }
3141 else
3142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3143 $as_echo "no" >&6; }
3148 if test -z "$ac_cv_prog_STRIP"; then
3149 ac_ct_STRIP=$STRIP
3150 # Extract the first word of "strip", so it can be a program name with args.
3151 set dummy strip; ac_word=$2
3152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3153 $as_echo_n "checking for $ac_word... " >&6; }
3154 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3155 $as_echo_n "(cached) " >&6
3156 else
3157 if test -n "$ac_ct_STRIP"; then
3158 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3159 else
3160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3161 for as_dir in $PATH
3163 IFS=$as_save_IFS
3164 test -z "$as_dir" && as_dir=.
3165 for ac_exec_ext in '' $ac_executable_extensions; do
3166 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3167 ac_cv_prog_ac_ct_STRIP="strip"
3168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3169 break 2
3171 done
3172 done
3173 IFS=$as_save_IFS
3177 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3178 if test -n "$ac_ct_STRIP"; then
3179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3180 $as_echo "$ac_ct_STRIP" >&6; }
3181 else
3182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3183 $as_echo "no" >&6; }
3186 if test "x$ac_ct_STRIP" = x; then
3187 STRIP=":"
3188 else
3189 case $cross_compiling:$ac_tool_warned in
3190 yes:)
3191 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3192 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3193 ac_tool_warned=yes ;;
3194 esac
3195 STRIP=$ac_ct_STRIP
3197 else
3198 STRIP="$ac_cv_prog_STRIP"
3202 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3205 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3206 if test -z "$MKDIR_P"; then
3207 if ${ac_cv_path_mkdir+:} false; then :
3208 $as_echo_n "(cached) " >&6
3209 else
3210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3211 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3213 IFS=$as_save_IFS
3214 test -z "$as_dir" && as_dir=.
3215 for ac_prog in mkdir gmkdir; do
3216 for ac_exec_ext in '' $ac_executable_extensions; do
3217 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3218 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3219 'mkdir (GNU coreutils) '* | \
3220 'mkdir (coreutils) '* | \
3221 'mkdir (fileutils) '4.1*)
3222 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3223 break 3;;
3224 esac
3225 done
3226 done
3227 done
3228 IFS=$as_save_IFS
3232 test -d ./--version && rmdir ./--version
3233 if test "${ac_cv_path_mkdir+set}" = set; then
3234 MKDIR_P="$ac_cv_path_mkdir -p"
3235 else
3236 # As a last resort, use the slow shell script. Don't cache a
3237 # value for MKDIR_P within a source directory, because that will
3238 # break other packages using the cache if that directory is
3239 # removed, or if the value is a relative name.
3240 MKDIR_P="$ac_install_sh -d"
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3244 $as_echo "$MKDIR_P" >&6; }
3246 for ac_prog in gawk mawk nawk awk
3248 # Extract the first word of "$ac_prog", so it can be a program name with args.
3249 set dummy $ac_prog; ac_word=$2
3250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3251 $as_echo_n "checking for $ac_word... " >&6; }
3252 if ${ac_cv_prog_AWK+:} false; then :
3253 $as_echo_n "(cached) " >&6
3254 else
3255 if test -n "$AWK"; then
3256 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3257 else
3258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3259 for as_dir in $PATH
3261 IFS=$as_save_IFS
3262 test -z "$as_dir" && as_dir=.
3263 for ac_exec_ext in '' $ac_executable_extensions; do
3264 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3265 ac_cv_prog_AWK="$ac_prog"
3266 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3267 break 2
3269 done
3270 done
3271 IFS=$as_save_IFS
3275 AWK=$ac_cv_prog_AWK
3276 if test -n "$AWK"; then
3277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3278 $as_echo "$AWK" >&6; }
3279 else
3280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3281 $as_echo "no" >&6; }
3285 test -n "$AWK" && break
3286 done
3288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3289 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3290 set x ${MAKE-make}
3291 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3292 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3293 $as_echo_n "(cached) " >&6
3294 else
3295 cat >conftest.make <<\_ACEOF
3296 SHELL = /bin/sh
3297 all:
3298 @echo '@@@%%%=$(MAKE)=@@@%%%'
3299 _ACEOF
3300 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3301 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3302 *@@@%%%=?*=@@@%%%*)
3303 eval ac_cv_prog_make_${ac_make}_set=yes;;
3305 eval ac_cv_prog_make_${ac_make}_set=no;;
3306 esac
3307 rm -f conftest.make
3309 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3311 $as_echo "yes" >&6; }
3312 SET_MAKE=
3313 else
3314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3315 $as_echo "no" >&6; }
3316 SET_MAKE="MAKE=${MAKE-make}"
3319 rm -rf .tst 2>/dev/null
3320 mkdir .tst 2>/dev/null
3321 if test -d .tst; then
3322 am__leading_dot=.
3323 else
3324 am__leading_dot=_
3326 rmdir .tst 2>/dev/null
3328 # Check whether --enable-silent-rules was given.
3329 if test "${enable_silent_rules+set}" = set; then :
3330 enableval=$enable_silent_rules;
3333 case $enable_silent_rules in # (((
3334 yes) AM_DEFAULT_VERBOSITY=0;;
3335 no) AM_DEFAULT_VERBOSITY=1;;
3336 *) AM_DEFAULT_VERBOSITY=1;;
3337 esac
3338 am_make=${MAKE-make}
3339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3340 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3341 if ${am_cv_make_support_nested_variables+:} false; then :
3342 $as_echo_n "(cached) " >&6
3343 else
3344 if $as_echo 'TRUE=$(BAR$(V))
3345 BAR0=false
3346 BAR1=true
3348 am__doit:
3349 @$(TRUE)
3350 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3351 am_cv_make_support_nested_variables=yes
3352 else
3353 am_cv_make_support_nested_variables=no
3356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3357 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3358 if test $am_cv_make_support_nested_variables = yes; then
3359 AM_V='$(V)'
3360 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3361 else
3362 AM_V=$AM_DEFAULT_VERBOSITY
3363 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3365 AM_BACKSLASH='\'
3367 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3368 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3369 # is not polluted with repeated "-I."
3370 am__isrc=' -I$(srcdir)'
3371 # test to see if srcdir already configured
3372 if test -f $srcdir/config.status; then
3373 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3377 # test whether we have cygpath
3378 if test -z "$CYGPATH_W"; then
3379 if (cygpath --version) >/dev/null 2>/dev/null; then
3380 CYGPATH_W='cygpath -w'
3381 else
3382 CYGPATH_W=echo
3387 # Define the identity of the package.
3388 PACKAGE='ld'
3389 VERSION='2.42.50'
3392 cat >>confdefs.h <<_ACEOF
3393 #define PACKAGE "$PACKAGE"
3394 _ACEOF
3397 cat >>confdefs.h <<_ACEOF
3398 #define VERSION "$VERSION"
3399 _ACEOF
3401 # Some tools Automake needs.
3403 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3406 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3409 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3412 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3415 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3417 # For better backward compatibility. To be removed once Automake 1.9.x
3418 # dies out for good. For more background, see:
3419 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3420 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3421 mkdir_p='$(MKDIR_P)'
3423 # We need awk for the "check" target (and possibly the TAP driver). The
3424 # system "awk" is bad on some platforms.
3425 # Always define AMTAR for backward compatibility. Yes, it's still used
3426 # in the wild :-( We should find a proper way to deprecate it ...
3427 AMTAR='$${TAR-tar}'
3430 # We'll loop over all known methods to create a tar archive until one works.
3431 _am_tools='gnutar pax cpio none'
3433 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3440 # POSIX will say in a future version that running "rm -f" with no argument
3441 # is OK; and we want to be able to make that assumption in our Makefile
3442 # recipes. So use an aggressive probe to check that the usage we want is
3443 # actually supported "in the wild" to an acceptable degree.
3444 # See automake bug#10828.
3445 # To make any issue more visible, cause the running configure to be aborted
3446 # by default if the 'rm' program in use doesn't match our expectations; the
3447 # user can still override this though.
3448 if rm -f && rm -fr && rm -rf; then : OK; else
3449 cat >&2 <<'END'
3450 Oops!
3452 Your 'rm' program seems unable to run without file operands specified
3453 on the command line, even when the '-f' option is present. This is contrary
3454 to the behaviour of most rm programs out there, and not conforming with
3455 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3457 Please tell bug-automake@gnu.org about your system, including the value
3458 of your $PATH and any error possibly output before this message. This
3459 can help us improve future automake versions.
3462 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3463 echo 'Configuration will proceed anyway, since you have set the' >&2
3464 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3465 echo >&2
3466 else
3467 cat >&2 <<'END'
3468 Aborting the configuration process, to ensure you take notice of the issue.
3470 You can download and install GNU coreutils to get an 'rm' implementation
3471 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3473 If you want to complete the configuration process using your problematic
3474 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3475 to "yes", and re-run configure.
3478 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3482 # Check whether --enable-silent-rules was given.
3483 if test "${enable_silent_rules+set}" = set; then :
3484 enableval=$enable_silent_rules;
3487 case $enable_silent_rules in # (((
3488 yes) AM_DEFAULT_VERBOSITY=0;;
3489 no) AM_DEFAULT_VERBOSITY=1;;
3490 *) AM_DEFAULT_VERBOSITY=0;;
3491 esac
3492 am_make=${MAKE-make}
3493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3494 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3495 if ${am_cv_make_support_nested_variables+:} false; then :
3496 $as_echo_n "(cached) " >&6
3497 else
3498 if $as_echo 'TRUE=$(BAR$(V))
3499 BAR0=false
3500 BAR1=true
3502 am__doit:
3503 @$(TRUE)
3504 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3505 am_cv_make_support_nested_variables=yes
3506 else
3507 am_cv_make_support_nested_variables=no
3510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3511 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3512 if test $am_cv_make_support_nested_variables = yes; then
3513 AM_V='$(V)'
3514 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3515 else
3516 AM_V=$AM_DEFAULT_VERBOSITY
3517 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3519 AM_BACKSLASH='\'
3522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3523 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3524 # Check whether --enable-maintainer-mode was given.
3525 if test "${enable_maintainer_mode+set}" = set; then :
3526 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3527 else
3528 USE_MAINTAINER_MODE=no
3531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3532 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3533 if test $USE_MAINTAINER_MODE = yes; then
3534 MAINTAINER_MODE_TRUE=
3535 MAINTAINER_MODE_FALSE='#'
3536 else
3537 MAINTAINER_MODE_TRUE='#'
3538 MAINTAINER_MODE_FALSE=
3541 MAINT=$MAINTAINER_MODE_TRUE
3545 ac_ext=c
3546 ac_cpp='$CPP $CPPFLAGS'
3547 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3548 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3549 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3550 if test -n "$ac_tool_prefix"; then
3551 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3552 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3554 $as_echo_n "checking for $ac_word... " >&6; }
3555 if ${ac_cv_prog_CC+:} false; then :
3556 $as_echo_n "(cached) " >&6
3557 else
3558 if test -n "$CC"; then
3559 ac_cv_prog_CC="$CC" # Let the user override the test.
3560 else
3561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3562 for as_dir in $PATH
3564 IFS=$as_save_IFS
3565 test -z "$as_dir" && as_dir=.
3566 for ac_exec_ext in '' $ac_executable_extensions; do
3567 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3568 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3570 break 2
3572 done
3573 done
3574 IFS=$as_save_IFS
3578 CC=$ac_cv_prog_CC
3579 if test -n "$CC"; then
3580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3581 $as_echo "$CC" >&6; }
3582 else
3583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3584 $as_echo "no" >&6; }
3589 if test -z "$ac_cv_prog_CC"; then
3590 ac_ct_CC=$CC
3591 # Extract the first word of "gcc", so it can be a program name with args.
3592 set dummy gcc; ac_word=$2
3593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3594 $as_echo_n "checking for $ac_word... " >&6; }
3595 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3596 $as_echo_n "(cached) " >&6
3597 else
3598 if test -n "$ac_ct_CC"; then
3599 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3600 else
3601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3602 for as_dir in $PATH
3604 IFS=$as_save_IFS
3605 test -z "$as_dir" && as_dir=.
3606 for ac_exec_ext in '' $ac_executable_extensions; do
3607 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3608 ac_cv_prog_ac_ct_CC="gcc"
3609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3610 break 2
3612 done
3613 done
3614 IFS=$as_save_IFS
3618 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3619 if test -n "$ac_ct_CC"; then
3620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3621 $as_echo "$ac_ct_CC" >&6; }
3622 else
3623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3624 $as_echo "no" >&6; }
3627 if test "x$ac_ct_CC" = x; then
3628 CC=""
3629 else
3630 case $cross_compiling:$ac_tool_warned in
3631 yes:)
3632 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3633 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3634 ac_tool_warned=yes ;;
3635 esac
3636 CC=$ac_ct_CC
3638 else
3639 CC="$ac_cv_prog_CC"
3642 if test -z "$CC"; then
3643 if test -n "$ac_tool_prefix"; then
3644 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3645 set dummy ${ac_tool_prefix}cc; ac_word=$2
3646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3647 $as_echo_n "checking for $ac_word... " >&6; }
3648 if ${ac_cv_prog_CC+:} false; then :
3649 $as_echo_n "(cached) " >&6
3650 else
3651 if test -n "$CC"; then
3652 ac_cv_prog_CC="$CC" # Let the user override the test.
3653 else
3654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3655 for as_dir in $PATH
3657 IFS=$as_save_IFS
3658 test -z "$as_dir" && as_dir=.
3659 for ac_exec_ext in '' $ac_executable_extensions; do
3660 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3661 ac_cv_prog_CC="${ac_tool_prefix}cc"
3662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3663 break 2
3665 done
3666 done
3667 IFS=$as_save_IFS
3671 CC=$ac_cv_prog_CC
3672 if test -n "$CC"; then
3673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3674 $as_echo "$CC" >&6; }
3675 else
3676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3677 $as_echo "no" >&6; }
3683 if test -z "$CC"; then
3684 # Extract the first word of "cc", so it can be a program name with args.
3685 set dummy cc; ac_word=$2
3686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3687 $as_echo_n "checking for $ac_word... " >&6; }
3688 if ${ac_cv_prog_CC+:} false; then :
3689 $as_echo_n "(cached) " >&6
3690 else
3691 if test -n "$CC"; then
3692 ac_cv_prog_CC="$CC" # Let the user override the test.
3693 else
3694 ac_prog_rejected=no
3695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3696 for as_dir in $PATH
3698 IFS=$as_save_IFS
3699 test -z "$as_dir" && as_dir=.
3700 for ac_exec_ext in '' $ac_executable_extensions; do
3701 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3702 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3703 ac_prog_rejected=yes
3704 continue
3706 ac_cv_prog_CC="cc"
3707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3708 break 2
3710 done
3711 done
3712 IFS=$as_save_IFS
3714 if test $ac_prog_rejected = yes; then
3715 # We found a bogon in the path, so make sure we never use it.
3716 set dummy $ac_cv_prog_CC
3717 shift
3718 if test $# != 0; then
3719 # We chose a different compiler from the bogus one.
3720 # However, it has the same basename, so the bogon will be chosen
3721 # first if we set CC to just the basename; use the full file name.
3722 shift
3723 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3728 CC=$ac_cv_prog_CC
3729 if test -n "$CC"; then
3730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3731 $as_echo "$CC" >&6; }
3732 else
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3734 $as_echo "no" >&6; }
3739 if test -z "$CC"; then
3740 if test -n "$ac_tool_prefix"; then
3741 for ac_prog in cl.exe
3743 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3744 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3746 $as_echo_n "checking for $ac_word... " >&6; }
3747 if ${ac_cv_prog_CC+:} false; then :
3748 $as_echo_n "(cached) " >&6
3749 else
3750 if test -n "$CC"; then
3751 ac_cv_prog_CC="$CC" # Let the user override the test.
3752 else
3753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3754 for as_dir in $PATH
3756 IFS=$as_save_IFS
3757 test -z "$as_dir" && as_dir=.
3758 for ac_exec_ext in '' $ac_executable_extensions; do
3759 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3760 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3762 break 2
3764 done
3765 done
3766 IFS=$as_save_IFS
3770 CC=$ac_cv_prog_CC
3771 if test -n "$CC"; then
3772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3773 $as_echo "$CC" >&6; }
3774 else
3775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3776 $as_echo "no" >&6; }
3780 test -n "$CC" && break
3781 done
3783 if test -z "$CC"; then
3784 ac_ct_CC=$CC
3785 for ac_prog in cl.exe
3787 # Extract the first word of "$ac_prog", so it can be a program name with args.
3788 set dummy $ac_prog; ac_word=$2
3789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3790 $as_echo_n "checking for $ac_word... " >&6; }
3791 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3792 $as_echo_n "(cached) " >&6
3793 else
3794 if test -n "$ac_ct_CC"; then
3795 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3796 else
3797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3798 for as_dir in $PATH
3800 IFS=$as_save_IFS
3801 test -z "$as_dir" && as_dir=.
3802 for ac_exec_ext in '' $ac_executable_extensions; do
3803 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3804 ac_cv_prog_ac_ct_CC="$ac_prog"
3805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3806 break 2
3808 done
3809 done
3810 IFS=$as_save_IFS
3814 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3815 if test -n "$ac_ct_CC"; then
3816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3817 $as_echo "$ac_ct_CC" >&6; }
3818 else
3819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3820 $as_echo "no" >&6; }
3824 test -n "$ac_ct_CC" && break
3825 done
3827 if test "x$ac_ct_CC" = x; then
3828 CC=""
3829 else
3830 case $cross_compiling:$ac_tool_warned in
3831 yes:)
3832 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3833 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3834 ac_tool_warned=yes ;;
3835 esac
3836 CC=$ac_ct_CC
3843 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3844 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3845 as_fn_error $? "no acceptable C compiler found in \$PATH
3846 See \`config.log' for more details" "$LINENO" 5; }
3848 # Provide some information about the compiler.
3849 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3850 set X $ac_compile
3851 ac_compiler=$2
3852 for ac_option in --version -v -V -qversion; do
3853 { { ac_try="$ac_compiler $ac_option >&5"
3854 case "(($ac_try" in
3855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3856 *) ac_try_echo=$ac_try;;
3857 esac
3858 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3859 $as_echo "$ac_try_echo"; } >&5
3860 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3861 ac_status=$?
3862 if test -s conftest.err; then
3863 sed '10a\
3864 ... rest of stderr output deleted ...
3865 10q' conftest.err >conftest.er1
3866 cat conftest.er1 >&5
3868 rm -f conftest.er1 conftest.err
3869 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3870 test $ac_status = 0; }
3871 done
3873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3874 /* end confdefs.h. */
3877 main ()
3881 return 0;
3883 _ACEOF
3884 ac_clean_files_save=$ac_clean_files
3885 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3886 # Try to create an executable without -o first, disregard a.out.
3887 # It will help us diagnose broken compilers, and finding out an intuition
3888 # of exeext.
3889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3890 $as_echo_n "checking whether the C compiler works... " >&6; }
3891 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3893 # The possible output files:
3894 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3896 ac_rmfiles=
3897 for ac_file in $ac_files
3899 case $ac_file in
3900 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3901 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3902 esac
3903 done
3904 rm -f $ac_rmfiles
3906 if { { ac_try="$ac_link_default"
3907 case "(($ac_try" in
3908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3909 *) ac_try_echo=$ac_try;;
3910 esac
3911 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3912 $as_echo "$ac_try_echo"; } >&5
3913 (eval "$ac_link_default") 2>&5
3914 ac_status=$?
3915 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3916 test $ac_status = 0; }; then :
3917 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3918 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3919 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3920 # so that the user can short-circuit this test for compilers unknown to
3921 # Autoconf.
3922 for ac_file in $ac_files ''
3924 test -f "$ac_file" || continue
3925 case $ac_file in
3926 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3928 [ab].out )
3929 # We found the default executable, but exeext='' is most
3930 # certainly right.
3931 break;;
3932 *.* )
3933 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3934 then :; else
3935 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3937 # We set ac_cv_exeext here because the later test for it is not
3938 # safe: cross compilers may not add the suffix if given an `-o'
3939 # argument, so we may need to know it at that point already.
3940 # Even if this section looks crufty: it has the advantage of
3941 # actually working.
3942 break;;
3944 break;;
3945 esac
3946 done
3947 test "$ac_cv_exeext" = no && ac_cv_exeext=
3949 else
3950 ac_file=''
3952 if test -z "$ac_file"; then :
3953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3954 $as_echo "no" >&6; }
3955 $as_echo "$as_me: failed program was:" >&5
3956 sed 's/^/| /' conftest.$ac_ext >&5
3958 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3959 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3960 as_fn_error 77 "C compiler cannot create executables
3961 See \`config.log' for more details" "$LINENO" 5; }
3962 else
3963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3964 $as_echo "yes" >&6; }
3966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3967 $as_echo_n "checking for C compiler default output file name... " >&6; }
3968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3969 $as_echo "$ac_file" >&6; }
3970 ac_exeext=$ac_cv_exeext
3972 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3973 ac_clean_files=$ac_clean_files_save
3974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3975 $as_echo_n "checking for suffix of executables... " >&6; }
3976 if { { ac_try="$ac_link"
3977 case "(($ac_try" in
3978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3979 *) ac_try_echo=$ac_try;;
3980 esac
3981 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3982 $as_echo "$ac_try_echo"; } >&5
3983 (eval "$ac_link") 2>&5
3984 ac_status=$?
3985 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3986 test $ac_status = 0; }; then :
3987 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3988 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3989 # work properly (i.e., refer to `conftest.exe'), while it won't with
3990 # `rm'.
3991 for ac_file in conftest.exe conftest conftest.*; do
3992 test -f "$ac_file" || continue
3993 case $ac_file in
3994 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3995 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3996 break;;
3997 * ) break;;
3998 esac
3999 done
4000 else
4001 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4002 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4003 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4004 See \`config.log' for more details" "$LINENO" 5; }
4006 rm -f conftest conftest$ac_cv_exeext
4007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4008 $as_echo "$ac_cv_exeext" >&6; }
4010 rm -f conftest.$ac_ext
4011 EXEEXT=$ac_cv_exeext
4012 ac_exeext=$EXEEXT
4013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4014 /* end confdefs.h. */
4015 #include <stdio.h>
4017 main ()
4019 FILE *f = fopen ("conftest.out", "w");
4020 return ferror (f) || fclose (f) != 0;
4023 return 0;
4025 _ACEOF
4026 ac_clean_files="$ac_clean_files conftest.out"
4027 # Check that the compiler produces executables we can run. If not, either
4028 # the compiler is broken, or we cross compile.
4029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4030 $as_echo_n "checking whether we are cross compiling... " >&6; }
4031 if test "$cross_compiling" != yes; then
4032 { { ac_try="$ac_link"
4033 case "(($ac_try" in
4034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4035 *) ac_try_echo=$ac_try;;
4036 esac
4037 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4038 $as_echo "$ac_try_echo"; } >&5
4039 (eval "$ac_link") 2>&5
4040 ac_status=$?
4041 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4042 test $ac_status = 0; }
4043 if { ac_try='./conftest$ac_cv_exeext'
4044 { { case "(($ac_try" in
4045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4046 *) ac_try_echo=$ac_try;;
4047 esac
4048 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4049 $as_echo "$ac_try_echo"; } >&5
4050 (eval "$ac_try") 2>&5
4051 ac_status=$?
4052 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4053 test $ac_status = 0; }; }; then
4054 cross_compiling=no
4055 else
4056 if test "$cross_compiling" = maybe; then
4057 cross_compiling=yes
4058 else
4059 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4060 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4061 as_fn_error $? "cannot run C compiled programs.
4062 If you meant to cross compile, use \`--host'.
4063 See \`config.log' for more details" "$LINENO" 5; }
4067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4068 $as_echo "$cross_compiling" >&6; }
4070 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4071 ac_clean_files=$ac_clean_files_save
4072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4073 $as_echo_n "checking for suffix of object files... " >&6; }
4074 if ${ac_cv_objext+:} false; then :
4075 $as_echo_n "(cached) " >&6
4076 else
4077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4078 /* end confdefs.h. */
4081 main ()
4085 return 0;
4087 _ACEOF
4088 rm -f conftest.o conftest.obj
4089 if { { ac_try="$ac_compile"
4090 case "(($ac_try" in
4091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4092 *) ac_try_echo=$ac_try;;
4093 esac
4094 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4095 $as_echo "$ac_try_echo"; } >&5
4096 (eval "$ac_compile") 2>&5
4097 ac_status=$?
4098 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4099 test $ac_status = 0; }; then :
4100 for ac_file in conftest.o conftest.obj conftest.*; do
4101 test -f "$ac_file" || continue;
4102 case $ac_file in
4103 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4104 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4105 break;;
4106 esac
4107 done
4108 else
4109 $as_echo "$as_me: failed program was:" >&5
4110 sed 's/^/| /' conftest.$ac_ext >&5
4112 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4113 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4114 as_fn_error $? "cannot compute suffix of object files: cannot compile
4115 See \`config.log' for more details" "$LINENO" 5; }
4117 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4120 $as_echo "$ac_cv_objext" >&6; }
4121 OBJEXT=$ac_cv_objext
4122 ac_objext=$OBJEXT
4123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4124 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4125 if ${ac_cv_c_compiler_gnu+:} false; then :
4126 $as_echo_n "(cached) " >&6
4127 else
4128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4129 /* end confdefs.h. */
4132 main ()
4134 #ifndef __GNUC__
4135 choke me
4136 #endif
4139 return 0;
4141 _ACEOF
4142 if ac_fn_c_try_compile "$LINENO"; then :
4143 ac_compiler_gnu=yes
4144 else
4145 ac_compiler_gnu=no
4147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4148 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4152 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4153 if test $ac_compiler_gnu = yes; then
4154 GCC=yes
4155 else
4156 GCC=
4158 ac_test_CFLAGS=${CFLAGS+set}
4159 ac_save_CFLAGS=$CFLAGS
4160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4161 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4162 if ${ac_cv_prog_cc_g+:} false; then :
4163 $as_echo_n "(cached) " >&6
4164 else
4165 ac_save_c_werror_flag=$ac_c_werror_flag
4166 ac_c_werror_flag=yes
4167 ac_cv_prog_cc_g=no
4168 CFLAGS="-g"
4169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4170 /* end confdefs.h. */
4173 main ()
4177 return 0;
4179 _ACEOF
4180 if ac_fn_c_try_compile "$LINENO"; then :
4181 ac_cv_prog_cc_g=yes
4182 else
4183 CFLAGS=""
4184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4185 /* end confdefs.h. */
4188 main ()
4192 return 0;
4194 _ACEOF
4195 if ac_fn_c_try_compile "$LINENO"; then :
4197 else
4198 ac_c_werror_flag=$ac_save_c_werror_flag
4199 CFLAGS="-g"
4200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4201 /* end confdefs.h. */
4204 main ()
4208 return 0;
4210 _ACEOF
4211 if ac_fn_c_try_compile "$LINENO"; then :
4212 ac_cv_prog_cc_g=yes
4214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4219 ac_c_werror_flag=$ac_save_c_werror_flag
4221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4222 $as_echo "$ac_cv_prog_cc_g" >&6; }
4223 if test "$ac_test_CFLAGS" = set; then
4224 CFLAGS=$ac_save_CFLAGS
4225 elif test $ac_cv_prog_cc_g = yes; then
4226 if test "$GCC" = yes; then
4227 CFLAGS="-g -O2"
4228 else
4229 CFLAGS="-g"
4231 else
4232 if test "$GCC" = yes; then
4233 CFLAGS="-O2"
4234 else
4235 CFLAGS=
4238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4239 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4240 if ${ac_cv_prog_cc_c89+:} false; then :
4241 $as_echo_n "(cached) " >&6
4242 else
4243 ac_cv_prog_cc_c89=no
4244 ac_save_CC=$CC
4245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4246 /* end confdefs.h. */
4247 #include <stdarg.h>
4248 #include <stdio.h>
4249 struct stat;
4250 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4251 struct buf { int x; };
4252 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4253 static char *e (p, i)
4254 char **p;
4255 int i;
4257 return p[i];
4259 static char *f (char * (*g) (char **, int), char **p, ...)
4261 char *s;
4262 va_list v;
4263 va_start (v,p);
4264 s = g (p, va_arg (v,int));
4265 va_end (v);
4266 return s;
4269 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4270 function prototypes and stuff, but not '\xHH' hex character constants.
4271 These don't provoke an error unfortunately, instead are silently treated
4272 as 'x'. The following induces an error, until -std is added to get
4273 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4274 array size at least. It's necessary to write '\x00'==0 to get something
4275 that's true only with -std. */
4276 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4278 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4279 inside strings and character constants. */
4280 #define FOO(x) 'x'
4281 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4283 int test (int i, double x);
4284 struct s1 {int (*f) (int a);};
4285 struct s2 {int (*f) (double a);};
4286 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4287 int argc;
4288 char **argv;
4290 main ()
4292 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4294 return 0;
4296 _ACEOF
4297 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4298 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4300 CC="$ac_save_CC $ac_arg"
4301 if ac_fn_c_try_compile "$LINENO"; then :
4302 ac_cv_prog_cc_c89=$ac_arg
4304 rm -f core conftest.err conftest.$ac_objext
4305 test "x$ac_cv_prog_cc_c89" != "xno" && break
4306 done
4307 rm -f conftest.$ac_ext
4308 CC=$ac_save_CC
4311 # AC_CACHE_VAL
4312 case "x$ac_cv_prog_cc_c89" in
4314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4315 $as_echo "none needed" >&6; } ;;
4316 xno)
4317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4318 $as_echo "unsupported" >&6; } ;;
4320 CC="$CC $ac_cv_prog_cc_c89"
4321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4322 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4323 esac
4324 if test "x$ac_cv_prog_cc_c89" != xno; then :
4328 ac_ext=c
4329 ac_cpp='$CPP $CPPFLAGS'
4330 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4331 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4332 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4334 ac_ext=c
4335 ac_cpp='$CPP $CPPFLAGS'
4336 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4337 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4338 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4340 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4341 if ${am_cv_prog_cc_c_o+:} false; then :
4342 $as_echo_n "(cached) " >&6
4343 else
4344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4345 /* end confdefs.h. */
4348 main ()
4352 return 0;
4354 _ACEOF
4355 # Make sure it works both with $CC and with simple cc.
4356 # Following AC_PROG_CC_C_O, we do the test twice because some
4357 # compilers refuse to overwrite an existing .o file with -o,
4358 # though they will create one.
4359 am_cv_prog_cc_c_o=yes
4360 for am_i in 1 2; do
4361 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4362 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4363 ac_status=$?
4364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4365 (exit $ac_status); } \
4366 && test -f conftest2.$ac_objext; then
4367 : OK
4368 else
4369 am_cv_prog_cc_c_o=no
4370 break
4372 done
4373 rm -f core conftest*
4374 unset am_i
4376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4377 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4378 if test "$am_cv_prog_cc_c_o" != yes; then
4379 # Losing compiler, so override with the script.
4380 # FIXME: It is wrong to rewrite CC.
4381 # But if we don't then we get into trouble of one sort or another.
4382 # A longer-term fix would be to have automake use am__CC in this case,
4383 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4384 CC="$am_aux_dir/compile $CC"
4386 ac_ext=c
4387 ac_cpp='$CPP $CPPFLAGS'
4388 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4389 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4390 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4392 DEPDIR="${am__leading_dot}deps"
4394 ac_config_commands="$ac_config_commands depfiles"
4397 am_make=${MAKE-make}
4398 cat > confinc << 'END'
4399 am__doit:
4400 @echo this is the am__doit target
4401 .PHONY: am__doit
4403 # If we don't find an include directive, just comment out the code.
4404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4405 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4406 am__include="#"
4407 am__quote=
4408 _am_result=none
4409 # First try GNU make style include.
4410 echo "include confinc" > confmf
4411 # Ignore all kinds of additional output from 'make'.
4412 case `$am_make -s -f confmf 2> /dev/null` in #(
4413 *the\ am__doit\ target*)
4414 am__include=include
4415 am__quote=
4416 _am_result=GNU
4418 esac
4419 # Now try BSD make style include.
4420 if test "$am__include" = "#"; then
4421 echo '.include "confinc"' > confmf
4422 case `$am_make -s -f confmf 2> /dev/null` in #(
4423 *the\ am__doit\ target*)
4424 am__include=.include
4425 am__quote="\""
4426 _am_result=BSD
4428 esac
4432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4433 $as_echo "$_am_result" >&6; }
4434 rm -f confinc confmf
4436 # Check whether --enable-dependency-tracking was given.
4437 if test "${enable_dependency_tracking+set}" = set; then :
4438 enableval=$enable_dependency_tracking;
4441 if test "x$enable_dependency_tracking" != xno; then
4442 am_depcomp="$ac_aux_dir/depcomp"
4443 AMDEPBACKSLASH='\'
4444 am__nodep='_no'
4446 if test "x$enable_dependency_tracking" != xno; then
4447 AMDEP_TRUE=
4448 AMDEP_FALSE='#'
4449 else
4450 AMDEP_TRUE='#'
4451 AMDEP_FALSE=
4456 depcc="$CC" am_compiler_list=
4458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4459 $as_echo_n "checking dependency style of $depcc... " >&6; }
4460 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4461 $as_echo_n "(cached) " >&6
4462 else
4463 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4464 # We make a subdir and do the tests there. Otherwise we can end up
4465 # making bogus files that we don't know about and never remove. For
4466 # instance it was reported that on HP-UX the gcc test will end up
4467 # making a dummy file named 'D' -- because '-MD' means "put the output
4468 # in D".
4469 rm -rf conftest.dir
4470 mkdir conftest.dir
4471 # Copy depcomp to subdir because otherwise we won't find it if we're
4472 # using a relative directory.
4473 cp "$am_depcomp" conftest.dir
4474 cd conftest.dir
4475 # We will build objects and dependencies in a subdirectory because
4476 # it helps to detect inapplicable dependency modes. For instance
4477 # both Tru64's cc and ICC support -MD to output dependencies as a
4478 # side effect of compilation, but ICC will put the dependencies in
4479 # the current directory while Tru64 will put them in the object
4480 # directory.
4481 mkdir sub
4483 am_cv_CC_dependencies_compiler_type=none
4484 if test "$am_compiler_list" = ""; then
4485 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4487 am__universal=false
4488 case " $depcc " in #(
4489 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4490 esac
4492 for depmode in $am_compiler_list; do
4493 # Setup a source with many dependencies, because some compilers
4494 # like to wrap large dependency lists on column 80 (with \), and
4495 # we should not choose a depcomp mode which is confused by this.
4497 # We need to recreate these files for each test, as the compiler may
4498 # overwrite some of them when testing with obscure command lines.
4499 # This happens at least with the AIX C compiler.
4500 : > sub/conftest.c
4501 for i in 1 2 3 4 5 6; do
4502 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4503 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4504 # Solaris 10 /bin/sh.
4505 echo '/* dummy */' > sub/conftst$i.h
4506 done
4507 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4509 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4510 # mode. It turns out that the SunPro C++ compiler does not properly
4511 # handle '-M -o', and we need to detect this. Also, some Intel
4512 # versions had trouble with output in subdirs.
4513 am__obj=sub/conftest.${OBJEXT-o}
4514 am__minus_obj="-o $am__obj"
4515 case $depmode in
4516 gcc)
4517 # This depmode causes a compiler race in universal mode.
4518 test "$am__universal" = false || continue
4520 nosideeffect)
4521 # After this tag, mechanisms are not by side-effect, so they'll
4522 # only be used when explicitly requested.
4523 if test "x$enable_dependency_tracking" = xyes; then
4524 continue
4525 else
4526 break
4529 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4530 # This compiler won't grok '-c -o', but also, the minuso test has
4531 # not run yet. These depmodes are late enough in the game, and
4532 # so weak that their functioning should not be impacted.
4533 am__obj=conftest.${OBJEXT-o}
4534 am__minus_obj=
4536 none) break ;;
4537 esac
4538 if depmode=$depmode \
4539 source=sub/conftest.c object=$am__obj \
4540 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4541 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4542 >/dev/null 2>conftest.err &&
4543 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4544 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4545 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4546 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4547 # icc doesn't choke on unknown options, it will just issue warnings
4548 # or remarks (even with -Werror). So we grep stderr for any message
4549 # that says an option was ignored or not supported.
4550 # When given -MP, icc 7.0 and 7.1 complain thusly:
4551 # icc: Command line warning: ignoring option '-M'; no argument required
4552 # The diagnosis changed in icc 8.0:
4553 # icc: Command line remark: option '-MP' not supported
4554 if (grep 'ignoring option' conftest.err ||
4555 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4556 am_cv_CC_dependencies_compiler_type=$depmode
4557 break
4560 done
4562 cd ..
4563 rm -rf conftest.dir
4564 else
4565 am_cv_CC_dependencies_compiler_type=none
4569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4570 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4571 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4574 test "x$enable_dependency_tracking" != xno \
4575 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4576 am__fastdepCC_TRUE=
4577 am__fastdepCC_FALSE='#'
4578 else
4579 am__fastdepCC_TRUE='#'
4580 am__fastdepCC_FALSE=
4584 ac_ext=cpp
4585 ac_cpp='$CXXCPP $CPPFLAGS'
4586 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4587 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4588 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4589 if test -z "$CXX"; then
4590 if test -n "$CCC"; then
4591 CXX=$CCC
4592 else
4593 if test -n "$ac_tool_prefix"; then
4594 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4596 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4597 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4599 $as_echo_n "checking for $ac_word... " >&6; }
4600 if ${ac_cv_prog_CXX+:} false; then :
4601 $as_echo_n "(cached) " >&6
4602 else
4603 if test -n "$CXX"; then
4604 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4605 else
4606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4607 for as_dir in $PATH
4609 IFS=$as_save_IFS
4610 test -z "$as_dir" && as_dir=.
4611 for ac_exec_ext in '' $ac_executable_extensions; do
4612 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4613 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4615 break 2
4617 done
4618 done
4619 IFS=$as_save_IFS
4623 CXX=$ac_cv_prog_CXX
4624 if test -n "$CXX"; then
4625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4626 $as_echo "$CXX" >&6; }
4627 else
4628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4629 $as_echo "no" >&6; }
4633 test -n "$CXX" && break
4634 done
4636 if test -z "$CXX"; then
4637 ac_ct_CXX=$CXX
4638 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4640 # Extract the first word of "$ac_prog", so it can be a program name with args.
4641 set dummy $ac_prog; ac_word=$2
4642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4643 $as_echo_n "checking for $ac_word... " >&6; }
4644 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4645 $as_echo_n "(cached) " >&6
4646 else
4647 if test -n "$ac_ct_CXX"; then
4648 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4649 else
4650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4651 for as_dir in $PATH
4653 IFS=$as_save_IFS
4654 test -z "$as_dir" && as_dir=.
4655 for ac_exec_ext in '' $ac_executable_extensions; do
4656 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4657 ac_cv_prog_ac_ct_CXX="$ac_prog"
4658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4659 break 2
4661 done
4662 done
4663 IFS=$as_save_IFS
4667 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4668 if test -n "$ac_ct_CXX"; then
4669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4670 $as_echo "$ac_ct_CXX" >&6; }
4671 else
4672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4673 $as_echo "no" >&6; }
4677 test -n "$ac_ct_CXX" && break
4678 done
4680 if test "x$ac_ct_CXX" = x; then
4681 CXX="g++"
4682 else
4683 case $cross_compiling:$ac_tool_warned in
4684 yes:)
4685 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4686 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4687 ac_tool_warned=yes ;;
4688 esac
4689 CXX=$ac_ct_CXX
4695 # Provide some information about the compiler.
4696 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4697 set X $ac_compile
4698 ac_compiler=$2
4699 for ac_option in --version -v -V -qversion; do
4700 { { ac_try="$ac_compiler $ac_option >&5"
4701 case "(($ac_try" in
4702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4703 *) ac_try_echo=$ac_try;;
4704 esac
4705 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4706 $as_echo "$ac_try_echo"; } >&5
4707 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4708 ac_status=$?
4709 if test -s conftest.err; then
4710 sed '10a\
4711 ... rest of stderr output deleted ...
4712 10q' conftest.err >conftest.er1
4713 cat conftest.er1 >&5
4715 rm -f conftest.er1 conftest.err
4716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4717 test $ac_status = 0; }
4718 done
4720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4721 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4722 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4723 $as_echo_n "(cached) " >&6
4724 else
4725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4726 /* end confdefs.h. */
4729 main ()
4731 #ifndef __GNUC__
4732 choke me
4733 #endif
4736 return 0;
4738 _ACEOF
4739 if ac_fn_cxx_try_compile "$LINENO"; then :
4740 ac_compiler_gnu=yes
4741 else
4742 ac_compiler_gnu=no
4744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4745 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4749 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4750 if test $ac_compiler_gnu = yes; then
4751 GXX=yes
4752 else
4753 GXX=
4755 ac_test_CXXFLAGS=${CXXFLAGS+set}
4756 ac_save_CXXFLAGS=$CXXFLAGS
4757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4758 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4759 if ${ac_cv_prog_cxx_g+:} false; then :
4760 $as_echo_n "(cached) " >&6
4761 else
4762 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4763 ac_cxx_werror_flag=yes
4764 ac_cv_prog_cxx_g=no
4765 CXXFLAGS="-g"
4766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4767 /* end confdefs.h. */
4770 main ()
4774 return 0;
4776 _ACEOF
4777 if ac_fn_cxx_try_compile "$LINENO"; then :
4778 ac_cv_prog_cxx_g=yes
4779 else
4780 CXXFLAGS=""
4781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4782 /* end confdefs.h. */
4785 main ()
4789 return 0;
4791 _ACEOF
4792 if ac_fn_cxx_try_compile "$LINENO"; then :
4794 else
4795 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4796 CXXFLAGS="-g"
4797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4798 /* end confdefs.h. */
4801 main ()
4805 return 0;
4807 _ACEOF
4808 if ac_fn_cxx_try_compile "$LINENO"; then :
4809 ac_cv_prog_cxx_g=yes
4811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4816 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4819 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4820 if test "$ac_test_CXXFLAGS" = set; then
4821 CXXFLAGS=$ac_save_CXXFLAGS
4822 elif test $ac_cv_prog_cxx_g = yes; then
4823 if test "$GXX" = yes; then
4824 CXXFLAGS="-g -O2"
4825 else
4826 CXXFLAGS="-g"
4828 else
4829 if test "$GXX" = yes; then
4830 CXXFLAGS="-O2"
4831 else
4832 CXXFLAGS=
4835 ac_ext=c
4836 ac_cpp='$CPP $CPPFLAGS'
4837 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4838 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4839 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4841 depcc="$CXX" am_compiler_list=
4843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4844 $as_echo_n "checking dependency style of $depcc... " >&6; }
4845 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4846 $as_echo_n "(cached) " >&6
4847 else
4848 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4849 # We make a subdir and do the tests there. Otherwise we can end up
4850 # making bogus files that we don't know about and never remove. For
4851 # instance it was reported that on HP-UX the gcc test will end up
4852 # making a dummy file named 'D' -- because '-MD' means "put the output
4853 # in D".
4854 rm -rf conftest.dir
4855 mkdir conftest.dir
4856 # Copy depcomp to subdir because otherwise we won't find it if we're
4857 # using a relative directory.
4858 cp "$am_depcomp" conftest.dir
4859 cd conftest.dir
4860 # We will build objects and dependencies in a subdirectory because
4861 # it helps to detect inapplicable dependency modes. For instance
4862 # both Tru64's cc and ICC support -MD to output dependencies as a
4863 # side effect of compilation, but ICC will put the dependencies in
4864 # the current directory while Tru64 will put them in the object
4865 # directory.
4866 mkdir sub
4868 am_cv_CXX_dependencies_compiler_type=none
4869 if test "$am_compiler_list" = ""; then
4870 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4872 am__universal=false
4873 case " $depcc " in #(
4874 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4875 esac
4877 for depmode in $am_compiler_list; do
4878 # Setup a source with many dependencies, because some compilers
4879 # like to wrap large dependency lists on column 80 (with \), and
4880 # we should not choose a depcomp mode which is confused by this.
4882 # We need to recreate these files for each test, as the compiler may
4883 # overwrite some of them when testing with obscure command lines.
4884 # This happens at least with the AIX C compiler.
4885 : > sub/conftest.c
4886 for i in 1 2 3 4 5 6; do
4887 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4888 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4889 # Solaris 10 /bin/sh.
4890 echo '/* dummy */' > sub/conftst$i.h
4891 done
4892 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4894 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4895 # mode. It turns out that the SunPro C++ compiler does not properly
4896 # handle '-M -o', and we need to detect this. Also, some Intel
4897 # versions had trouble with output in subdirs.
4898 am__obj=sub/conftest.${OBJEXT-o}
4899 am__minus_obj="-o $am__obj"
4900 case $depmode in
4901 gcc)
4902 # This depmode causes a compiler race in universal mode.
4903 test "$am__universal" = false || continue
4905 nosideeffect)
4906 # After this tag, mechanisms are not by side-effect, so they'll
4907 # only be used when explicitly requested.
4908 if test "x$enable_dependency_tracking" = xyes; then
4909 continue
4910 else
4911 break
4914 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4915 # This compiler won't grok '-c -o', but also, the minuso test has
4916 # not run yet. These depmodes are late enough in the game, and
4917 # so weak that their functioning should not be impacted.
4918 am__obj=conftest.${OBJEXT-o}
4919 am__minus_obj=
4921 none) break ;;
4922 esac
4923 if depmode=$depmode \
4924 source=sub/conftest.c object=$am__obj \
4925 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4926 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4927 >/dev/null 2>conftest.err &&
4928 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4929 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4930 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4931 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4932 # icc doesn't choke on unknown options, it will just issue warnings
4933 # or remarks (even with -Werror). So we grep stderr for any message
4934 # that says an option was ignored or not supported.
4935 # When given -MP, icc 7.0 and 7.1 complain thusly:
4936 # icc: Command line warning: ignoring option '-M'; no argument required
4937 # The diagnosis changed in icc 8.0:
4938 # icc: Command line remark: option '-MP' not supported
4939 if (grep 'ignoring option' conftest.err ||
4940 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4941 am_cv_CXX_dependencies_compiler_type=$depmode
4942 break
4945 done
4947 cd ..
4948 rm -rf conftest.dir
4949 else
4950 am_cv_CXX_dependencies_compiler_type=none
4954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4955 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4956 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4959 test "x$enable_dependency_tracking" != xno \
4960 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4961 am__fastdepCXX_TRUE=
4962 am__fastdepCXX_FALSE='#'
4963 else
4964 am__fastdepCXX_TRUE='#'
4965 am__fastdepCXX_FALSE=
4969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4970 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4971 if ${ac_cv_path_GREP+:} false; then :
4972 $as_echo_n "(cached) " >&6
4973 else
4974 if test -z "$GREP"; then
4975 ac_path_GREP_found=false
4976 # Loop through the user's path and test for each of PROGNAME-LIST
4977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4978 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4980 IFS=$as_save_IFS
4981 test -z "$as_dir" && as_dir=.
4982 for ac_prog in grep ggrep; do
4983 for ac_exec_ext in '' $ac_executable_extensions; do
4984 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4985 as_fn_executable_p "$ac_path_GREP" || continue
4986 # Check for GNU ac_path_GREP and select it if it is found.
4987 # Check for GNU $ac_path_GREP
4988 case `"$ac_path_GREP" --version 2>&1` in
4989 *GNU*)
4990 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4992 ac_count=0
4993 $as_echo_n 0123456789 >"conftest.in"
4994 while :
4996 cat "conftest.in" "conftest.in" >"conftest.tmp"
4997 mv "conftest.tmp" "conftest.in"
4998 cp "conftest.in" "conftest.nl"
4999 $as_echo 'GREP' >> "conftest.nl"
5000 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5001 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5002 as_fn_arith $ac_count + 1 && ac_count=$as_val
5003 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5004 # Best one so far, save it but keep looking for a better one
5005 ac_cv_path_GREP="$ac_path_GREP"
5006 ac_path_GREP_max=$ac_count
5008 # 10*(2^10) chars as input seems more than enough
5009 test $ac_count -gt 10 && break
5010 done
5011 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5012 esac
5014 $ac_path_GREP_found && break 3
5015 done
5016 done
5017 done
5018 IFS=$as_save_IFS
5019 if test -z "$ac_cv_path_GREP"; then
5020 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5022 else
5023 ac_cv_path_GREP=$GREP
5027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5028 $as_echo "$ac_cv_path_GREP" >&6; }
5029 GREP="$ac_cv_path_GREP"
5033 ac_ext=c
5034 ac_cpp='$CPP $CPPFLAGS'
5035 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5036 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5037 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5039 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5040 # On Suns, sometimes $CPP names a directory.
5041 if test -n "$CPP" && test -d "$CPP"; then
5042 CPP=
5044 if test -z "$CPP"; then
5045 if ${ac_cv_prog_CPP+:} false; then :
5046 $as_echo_n "(cached) " >&6
5047 else
5048 # Double quotes because CPP needs to be expanded
5049 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5051 ac_preproc_ok=false
5052 for ac_c_preproc_warn_flag in '' yes
5054 # Use a header file that comes with gcc, so configuring glibc
5055 # with a fresh cross-compiler works.
5056 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5057 # <limits.h> exists even on freestanding compilers.
5058 # On the NeXT, cc -E runs the code through the compiler's parser,
5059 # not just through cpp. "Syntax error" is here to catch this case.
5060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5061 /* end confdefs.h. */
5062 #ifdef __STDC__
5063 # include <limits.h>
5064 #else
5065 # include <assert.h>
5066 #endif
5067 Syntax error
5068 _ACEOF
5069 if ac_fn_c_try_cpp "$LINENO"; then :
5071 else
5072 # Broken: fails on valid input.
5073 continue
5075 rm -f conftest.err conftest.i conftest.$ac_ext
5077 # OK, works on sane cases. Now check whether nonexistent headers
5078 # can be detected and how.
5079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5080 /* end confdefs.h. */
5081 #include <ac_nonexistent.h>
5082 _ACEOF
5083 if ac_fn_c_try_cpp "$LINENO"; then :
5084 # Broken: success on invalid input.
5085 continue
5086 else
5087 # Passes both tests.
5088 ac_preproc_ok=:
5089 break
5091 rm -f conftest.err conftest.i conftest.$ac_ext
5093 done
5094 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5095 rm -f conftest.i conftest.err conftest.$ac_ext
5096 if $ac_preproc_ok; then :
5097 break
5100 done
5101 ac_cv_prog_CPP=$CPP
5104 CPP=$ac_cv_prog_CPP
5105 else
5106 ac_cv_prog_CPP=$CPP
5108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5109 $as_echo "$CPP" >&6; }
5110 ac_preproc_ok=false
5111 for ac_c_preproc_warn_flag in '' yes
5113 # Use a header file that comes with gcc, so configuring glibc
5114 # with a fresh cross-compiler works.
5115 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5116 # <limits.h> exists even on freestanding compilers.
5117 # On the NeXT, cc -E runs the code through the compiler's parser,
5118 # not just through cpp. "Syntax error" is here to catch this case.
5119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5120 /* end confdefs.h. */
5121 #ifdef __STDC__
5122 # include <limits.h>
5123 #else
5124 # include <assert.h>
5125 #endif
5126 Syntax error
5127 _ACEOF
5128 if ac_fn_c_try_cpp "$LINENO"; then :
5130 else
5131 # Broken: fails on valid input.
5132 continue
5134 rm -f conftest.err conftest.i conftest.$ac_ext
5136 # OK, works on sane cases. Now check whether nonexistent headers
5137 # can be detected and how.
5138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5139 /* end confdefs.h. */
5140 #include <ac_nonexistent.h>
5141 _ACEOF
5142 if ac_fn_c_try_cpp "$LINENO"; then :
5143 # Broken: success on invalid input.
5144 continue
5145 else
5146 # Passes both tests.
5147 ac_preproc_ok=:
5148 break
5150 rm -f conftest.err conftest.i conftest.$ac_ext
5152 done
5153 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5154 rm -f conftest.i conftest.err conftest.$ac_ext
5155 if $ac_preproc_ok; then :
5157 else
5158 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5159 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5160 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5161 See \`config.log' for more details" "$LINENO" 5; }
5164 ac_ext=c
5165 ac_cpp='$CPP $CPPFLAGS'
5166 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5167 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5168 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5172 $as_echo_n "checking for egrep... " >&6; }
5173 if ${ac_cv_path_EGREP+:} false; then :
5174 $as_echo_n "(cached) " >&6
5175 else
5176 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5177 then ac_cv_path_EGREP="$GREP -E"
5178 else
5179 if test -z "$EGREP"; then
5180 ac_path_EGREP_found=false
5181 # Loop through the user's path and test for each of PROGNAME-LIST
5182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5183 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5185 IFS=$as_save_IFS
5186 test -z "$as_dir" && as_dir=.
5187 for ac_prog in egrep; do
5188 for ac_exec_ext in '' $ac_executable_extensions; do
5189 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5190 as_fn_executable_p "$ac_path_EGREP" || continue
5191 # Check for GNU ac_path_EGREP and select it if it is found.
5192 # Check for GNU $ac_path_EGREP
5193 case `"$ac_path_EGREP" --version 2>&1` in
5194 *GNU*)
5195 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5197 ac_count=0
5198 $as_echo_n 0123456789 >"conftest.in"
5199 while :
5201 cat "conftest.in" "conftest.in" >"conftest.tmp"
5202 mv "conftest.tmp" "conftest.in"
5203 cp "conftest.in" "conftest.nl"
5204 $as_echo 'EGREP' >> "conftest.nl"
5205 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5206 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5207 as_fn_arith $ac_count + 1 && ac_count=$as_val
5208 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5209 # Best one so far, save it but keep looking for a better one
5210 ac_cv_path_EGREP="$ac_path_EGREP"
5211 ac_path_EGREP_max=$ac_count
5213 # 10*(2^10) chars as input seems more than enough
5214 test $ac_count -gt 10 && break
5215 done
5216 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5217 esac
5219 $ac_path_EGREP_found && break 3
5220 done
5221 done
5222 done
5223 IFS=$as_save_IFS
5224 if test -z "$ac_cv_path_EGREP"; then
5225 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5227 else
5228 ac_cv_path_EGREP=$EGREP
5233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5234 $as_echo "$ac_cv_path_EGREP" >&6; }
5235 EGREP="$ac_cv_path_EGREP"
5238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5239 $as_echo_n "checking for ANSI C header files... " >&6; }
5240 if ${ac_cv_header_stdc+:} false; then :
5241 $as_echo_n "(cached) " >&6
5242 else
5243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5244 /* end confdefs.h. */
5245 #include <stdlib.h>
5246 #include <stdarg.h>
5247 #include <string.h>
5248 #include <float.h>
5251 main ()
5255 return 0;
5257 _ACEOF
5258 if ac_fn_c_try_compile "$LINENO"; then :
5259 ac_cv_header_stdc=yes
5260 else
5261 ac_cv_header_stdc=no
5263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5265 if test $ac_cv_header_stdc = yes; then
5266 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5268 /* end confdefs.h. */
5269 #include <string.h>
5271 _ACEOF
5272 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5273 $EGREP "memchr" >/dev/null 2>&1; then :
5275 else
5276 ac_cv_header_stdc=no
5278 rm -f conftest*
5282 if test $ac_cv_header_stdc = yes; then
5283 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5285 /* end confdefs.h. */
5286 #include <stdlib.h>
5288 _ACEOF
5289 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5290 $EGREP "free" >/dev/null 2>&1; then :
5292 else
5293 ac_cv_header_stdc=no
5295 rm -f conftest*
5299 if test $ac_cv_header_stdc = yes; then
5300 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5301 if test "$cross_compiling" = yes; then :
5303 else
5304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5305 /* end confdefs.h. */
5306 #include <ctype.h>
5307 #include <stdlib.h>
5308 #if ((' ' & 0x0FF) == 0x020)
5309 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5310 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5311 #else
5312 # define ISLOWER(c) \
5313 (('a' <= (c) && (c) <= 'i') \
5314 || ('j' <= (c) && (c) <= 'r') \
5315 || ('s' <= (c) && (c) <= 'z'))
5316 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5317 #endif
5319 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5321 main ()
5323 int i;
5324 for (i = 0; i < 256; i++)
5325 if (XOR (islower (i), ISLOWER (i))
5326 || toupper (i) != TOUPPER (i))
5327 return 2;
5328 return 0;
5330 _ACEOF
5331 if ac_fn_c_try_run "$LINENO"; then :
5333 else
5334 ac_cv_header_stdc=no
5336 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5337 conftest.$ac_objext conftest.beam conftest.$ac_ext
5342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5343 $as_echo "$ac_cv_header_stdc" >&6; }
5344 if test $ac_cv_header_stdc = yes; then
5346 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5350 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5351 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5352 inttypes.h stdint.h unistd.h
5353 do :
5354 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5355 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5357 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5358 cat >>confdefs.h <<_ACEOF
5359 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5360 _ACEOF
5364 done
5368 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5369 if test "x$ac_cv_header_minix_config_h" = xyes; then :
5370 MINIX=yes
5371 else
5372 MINIX=
5376 if test "$MINIX" = yes; then
5378 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5381 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5384 $as_echo "#define _MINIX 1" >>confdefs.h
5389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5390 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5391 if ${ac_cv_safe_to_define___extensions__+:} false; then :
5392 $as_echo_n "(cached) " >&6
5393 else
5394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5395 /* end confdefs.h. */
5397 # define __EXTENSIONS__ 1
5398 $ac_includes_default
5400 main ()
5404 return 0;
5406 _ACEOF
5407 if ac_fn_c_try_compile "$LINENO"; then :
5408 ac_cv_safe_to_define___extensions__=yes
5409 else
5410 ac_cv_safe_to_define___extensions__=no
5412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5415 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5416 test $ac_cv_safe_to_define___extensions__ = yes &&
5417 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5419 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5421 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5423 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5425 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5438 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5439 if test -n "$ac_tool_prefix"; then
5440 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5441 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5443 $as_echo_n "checking for $ac_word... " >&6; }
5444 if ${ac_cv_path_PKG_CONFIG+:} false; then :
5445 $as_echo_n "(cached) " >&6
5446 else
5447 case $PKG_CONFIG in
5448 [\\/]* | ?:[\\/]*)
5449 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5453 for as_dir in $PATH
5455 IFS=$as_save_IFS
5456 test -z "$as_dir" && as_dir=.
5457 for ac_exec_ext in '' $ac_executable_extensions; do
5458 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5459 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5461 break 2
5463 done
5464 done
5465 IFS=$as_save_IFS
5468 esac
5470 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5471 if test -n "$PKG_CONFIG"; then
5472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5473 $as_echo "$PKG_CONFIG" >&6; }
5474 else
5475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5476 $as_echo "no" >&6; }
5481 if test -z "$ac_cv_path_PKG_CONFIG"; then
5482 ac_pt_PKG_CONFIG=$PKG_CONFIG
5483 # Extract the first word of "pkg-config", so it can be a program name with args.
5484 set dummy pkg-config; ac_word=$2
5485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5486 $as_echo_n "checking for $ac_word... " >&6; }
5487 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5488 $as_echo_n "(cached) " >&6
5489 else
5490 case $ac_pt_PKG_CONFIG in
5491 [\\/]* | ?:[\\/]*)
5492 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5496 for as_dir in $PATH
5498 IFS=$as_save_IFS
5499 test -z "$as_dir" && as_dir=.
5500 for ac_exec_ext in '' $ac_executable_extensions; do
5501 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5502 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5504 break 2
5506 done
5507 done
5508 IFS=$as_save_IFS
5511 esac
5513 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5514 if test -n "$ac_pt_PKG_CONFIG"; then
5515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5516 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5517 else
5518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5519 $as_echo "no" >&6; }
5522 if test "x$ac_pt_PKG_CONFIG" = x; then
5523 PKG_CONFIG=""
5524 else
5525 case $cross_compiling:$ac_tool_warned in
5526 yes:)
5527 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5528 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5529 ac_tool_warned=yes ;;
5530 esac
5531 PKG_CONFIG=$ac_pt_PKG_CONFIG
5533 else
5534 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5538 if test -n "$PKG_CONFIG"; then
5539 _pkg_min_version=0.9.0
5540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5541 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5542 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5544 $as_echo "yes" >&6; }
5545 else
5546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5547 $as_echo "no" >&6; }
5548 PKG_CONFIG=""
5552 case `pwd` in
5553 *\ * | *\ *)
5554 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5555 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5556 esac
5560 macro_version='2.2.7a'
5561 macro_revision='1.3134'
5575 ltmain="$ac_aux_dir/ltmain.sh"
5577 # Backslashify metacharacters that are still active within
5578 # double-quoted strings.
5579 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5581 # Same as above, but do not quote variable references.
5582 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5584 # Sed substitution to delay expansion of an escaped shell variable in a
5585 # double_quote_subst'ed string.
5586 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5588 # Sed substitution to delay expansion of an escaped single quote.
5589 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5591 # Sed substitution to avoid accidental globbing in evaled expressions
5592 no_glob_subst='s/\*/\\\*/g'
5594 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5595 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5596 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5599 $as_echo_n "checking how to print strings... " >&6; }
5600 # Test print first, because it will be a builtin if present.
5601 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5602 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5603 ECHO='print -r --'
5604 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5605 ECHO='printf %s\n'
5606 else
5607 # Use this function as a fallback that always works.
5608 func_fallback_echo ()
5610 eval 'cat <<_LTECHO_EOF
5612 _LTECHO_EOF'
5614 ECHO='func_fallback_echo'
5617 # func_echo_all arg...
5618 # Invoke $ECHO with all args, space-separated.
5619 func_echo_all ()
5621 $ECHO ""
5624 case "$ECHO" in
5625 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5626 $as_echo "printf" >&6; } ;;
5627 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5628 $as_echo "print -r" >&6; } ;;
5629 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5630 $as_echo "cat" >&6; } ;;
5631 esac
5646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5647 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5648 if ${ac_cv_path_SED+:} false; then :
5649 $as_echo_n "(cached) " >&6
5650 else
5651 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5652 for ac_i in 1 2 3 4 5 6 7; do
5653 ac_script="$ac_script$as_nl$ac_script"
5654 done
5655 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5656 { ac_script=; unset ac_script;}
5657 if test -z "$SED"; then
5658 ac_path_SED_found=false
5659 # Loop through the user's path and test for each of PROGNAME-LIST
5660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5661 for as_dir in $PATH
5663 IFS=$as_save_IFS
5664 test -z "$as_dir" && as_dir=.
5665 for ac_prog in sed gsed; do
5666 for ac_exec_ext in '' $ac_executable_extensions; do
5667 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5668 as_fn_executable_p "$ac_path_SED" || continue
5669 # Check for GNU ac_path_SED and select it if it is found.
5670 # Check for GNU $ac_path_SED
5671 case `"$ac_path_SED" --version 2>&1` in
5672 *GNU*)
5673 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5675 ac_count=0
5676 $as_echo_n 0123456789 >"conftest.in"
5677 while :
5679 cat "conftest.in" "conftest.in" >"conftest.tmp"
5680 mv "conftest.tmp" "conftest.in"
5681 cp "conftest.in" "conftest.nl"
5682 $as_echo '' >> "conftest.nl"
5683 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5684 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5685 as_fn_arith $ac_count + 1 && ac_count=$as_val
5686 if test $ac_count -gt ${ac_path_SED_max-0}; then
5687 # Best one so far, save it but keep looking for a better one
5688 ac_cv_path_SED="$ac_path_SED"
5689 ac_path_SED_max=$ac_count
5691 # 10*(2^10) chars as input seems more than enough
5692 test $ac_count -gt 10 && break
5693 done
5694 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5695 esac
5697 $ac_path_SED_found && break 3
5698 done
5699 done
5700 done
5701 IFS=$as_save_IFS
5702 if test -z "$ac_cv_path_SED"; then
5703 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5705 else
5706 ac_cv_path_SED=$SED
5710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5711 $as_echo "$ac_cv_path_SED" >&6; }
5712 SED="$ac_cv_path_SED"
5713 rm -f conftest.sed
5715 test -z "$SED" && SED=sed
5716 Xsed="$SED -e 1s/^X//"
5728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5729 $as_echo_n "checking for fgrep... " >&6; }
5730 if ${ac_cv_path_FGREP+:} false; then :
5731 $as_echo_n "(cached) " >&6
5732 else
5733 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5734 then ac_cv_path_FGREP="$GREP -F"
5735 else
5736 if test -z "$FGREP"; then
5737 ac_path_FGREP_found=false
5738 # Loop through the user's path and test for each of PROGNAME-LIST
5739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5740 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5742 IFS=$as_save_IFS
5743 test -z "$as_dir" && as_dir=.
5744 for ac_prog in fgrep; do
5745 for ac_exec_ext in '' $ac_executable_extensions; do
5746 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5747 as_fn_executable_p "$ac_path_FGREP" || continue
5748 # Check for GNU ac_path_FGREP and select it if it is found.
5749 # Check for GNU $ac_path_FGREP
5750 case `"$ac_path_FGREP" --version 2>&1` in
5751 *GNU*)
5752 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5754 ac_count=0
5755 $as_echo_n 0123456789 >"conftest.in"
5756 while :
5758 cat "conftest.in" "conftest.in" >"conftest.tmp"
5759 mv "conftest.tmp" "conftest.in"
5760 cp "conftest.in" "conftest.nl"
5761 $as_echo 'FGREP' >> "conftest.nl"
5762 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5763 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5764 as_fn_arith $ac_count + 1 && ac_count=$as_val
5765 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5766 # Best one so far, save it but keep looking for a better one
5767 ac_cv_path_FGREP="$ac_path_FGREP"
5768 ac_path_FGREP_max=$ac_count
5770 # 10*(2^10) chars as input seems more than enough
5771 test $ac_count -gt 10 && break
5772 done
5773 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5774 esac
5776 $ac_path_FGREP_found && break 3
5777 done
5778 done
5779 done
5780 IFS=$as_save_IFS
5781 if test -z "$ac_cv_path_FGREP"; then
5782 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5784 else
5785 ac_cv_path_FGREP=$FGREP
5790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5791 $as_echo "$ac_cv_path_FGREP" >&6; }
5792 FGREP="$ac_cv_path_FGREP"
5795 test -z "$GREP" && GREP=grep
5815 # Check whether --with-gnu-ld was given.
5816 if test "${with_gnu_ld+set}" = set; then :
5817 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5818 else
5819 with_gnu_ld=no
5822 ac_prog=ld
5823 if test "$GCC" = yes; then
5824 # Check if gcc -print-prog-name=ld gives a path.
5825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5826 $as_echo_n "checking for ld used by $CC... " >&6; }
5827 case $host in
5828 *-*-mingw*)
5829 # gcc leaves a trailing carriage return which upsets mingw
5830 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5832 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5833 esac
5834 case $ac_prog in
5835 # Accept absolute paths.
5836 [\\/]* | ?:[\\/]*)
5837 re_direlt='/[^/][^/]*/\.\./'
5838 # Canonicalize the pathname of ld
5839 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5840 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5841 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5842 done
5843 test -z "$LD" && LD="$ac_prog"
5846 # If it fails, then pretend we aren't using GCC.
5847 ac_prog=ld
5850 # If it is relative, then search for the first ld in PATH.
5851 with_gnu_ld=unknown
5853 esac
5854 elif test "$with_gnu_ld" = yes; then
5855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5856 $as_echo_n "checking for GNU ld... " >&6; }
5857 else
5858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5859 $as_echo_n "checking for non-GNU ld... " >&6; }
5861 if ${lt_cv_path_LD+:} false; then :
5862 $as_echo_n "(cached) " >&6
5863 else
5864 if test -z "$LD"; then
5865 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5866 for ac_dir in $PATH; do
5867 IFS="$lt_save_ifs"
5868 test -z "$ac_dir" && ac_dir=.
5869 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5870 lt_cv_path_LD="$ac_dir/$ac_prog"
5871 # Check to see if the program is GNU ld. I'd rather use --version,
5872 # but apparently some variants of GNU ld only accept -v.
5873 # Break only if it was the GNU/non-GNU ld that we prefer.
5874 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5875 *GNU* | *'with BFD'*)
5876 test "$with_gnu_ld" != no && break
5879 test "$with_gnu_ld" != yes && break
5881 esac
5883 done
5884 IFS="$lt_save_ifs"
5885 else
5886 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5890 LD="$lt_cv_path_LD"
5891 if test -n "$LD"; then
5892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5893 $as_echo "$LD" >&6; }
5894 else
5895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5896 $as_echo "no" >&6; }
5898 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5900 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5901 if ${lt_cv_prog_gnu_ld+:} false; then :
5902 $as_echo_n "(cached) " >&6
5903 else
5904 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5905 case `$LD -v 2>&1 </dev/null` in
5906 *GNU* | *'with BFD'*)
5907 lt_cv_prog_gnu_ld=yes
5910 lt_cv_prog_gnu_ld=no
5912 esac
5914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5915 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5916 with_gnu_ld=$lt_cv_prog_gnu_ld
5926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5927 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5928 if ${lt_cv_path_NM+:} false; then :
5929 $as_echo_n "(cached) " >&6
5930 else
5931 if test -n "$NM"; then
5932 # Let the user override the nm to test.
5933 lt_nm_to_check="$NM"
5934 else
5935 lt_nm_to_check="${ac_tool_prefix}nm"
5936 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5937 lt_nm_to_check="$lt_nm_to_check nm"
5940 for lt_tmp_nm in "$lt_nm_to_check"; do
5941 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5942 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5943 IFS="$lt_save_ifs"
5944 test -z "$ac_dir" && ac_dir=.
5945 # Strip out any user-provided options from the nm to test twice,
5946 # the first time to test to see if nm (rather than its options) has
5947 # an explicit path, the second time to yield a file which can be
5948 # nm'ed itself.
5949 tmp_nm_path="`$ECHO "$lt_tmp_nm" | sed 's, -.*$,,'`"
5950 case "$tmp_nm_path" in
5951 */*|*\\*) tmp_nm="$lt_tmp_nm";;
5952 *) tmp_nm="$ac_dir/$lt_tmp_nm";;
5953 esac
5954 tmp_nm_to_nm="`$ECHO "$tmp_nm" | sed 's, -.*$,,'`"
5955 if test -f "$tmp_nm_to_nm" || test -f "$tmp_nm_to_nm$ac_exeext" ; then
5956 # Check to see if the nm accepts a BSD-compat flag.
5957 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5958 # nm: unknown option "B" ignored
5959 case `"$tmp_nm" -B "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
5960 *$tmp_nm*) lt_cv_path_NM="$tmp_nm -B"
5961 break
5964 case `"$tmp_nm" -p "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
5965 *$tmp_nm*)
5966 lt_cv_path_NM="$tmp_nm -p"
5967 break
5970 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5971 continue # so that we can try to find one that supports BSD flags
5973 esac
5975 esac
5977 done
5978 IFS="$lt_save_ifs"
5979 done
5980 : ${lt_cv_path_NM=no}
5982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5983 $as_echo "$lt_cv_path_NM" >&6; }
5984 if test "$lt_cv_path_NM" != "no"; then
5985 NM="$lt_cv_path_NM"
5986 else
5987 # Didn't find any BSD compatible name lister, look for dumpbin.
5988 if test -n "$DUMPBIN"; then :
5989 # Let the user override the test.
5990 else
5991 if test -n "$ac_tool_prefix"; then
5992 for ac_prog in dumpbin "link -dump"
5994 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5995 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5997 $as_echo_n "checking for $ac_word... " >&6; }
5998 if ${ac_cv_prog_DUMPBIN+:} false; then :
5999 $as_echo_n "(cached) " >&6
6000 else
6001 if test -n "$DUMPBIN"; then
6002 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6003 else
6004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6005 for as_dir in $PATH
6007 IFS=$as_save_IFS
6008 test -z "$as_dir" && as_dir=.
6009 for ac_exec_ext in '' $ac_executable_extensions; do
6010 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6011 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6013 break 2
6015 done
6016 done
6017 IFS=$as_save_IFS
6021 DUMPBIN=$ac_cv_prog_DUMPBIN
6022 if test -n "$DUMPBIN"; then
6023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6024 $as_echo "$DUMPBIN" >&6; }
6025 else
6026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6027 $as_echo "no" >&6; }
6031 test -n "$DUMPBIN" && break
6032 done
6034 if test -z "$DUMPBIN"; then
6035 ac_ct_DUMPBIN=$DUMPBIN
6036 for ac_prog in dumpbin "link -dump"
6038 # Extract the first word of "$ac_prog", so it can be a program name with args.
6039 set dummy $ac_prog; ac_word=$2
6040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6041 $as_echo_n "checking for $ac_word... " >&6; }
6042 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6043 $as_echo_n "(cached) " >&6
6044 else
6045 if test -n "$ac_ct_DUMPBIN"; then
6046 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6047 else
6048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6049 for as_dir in $PATH
6051 IFS=$as_save_IFS
6052 test -z "$as_dir" && as_dir=.
6053 for ac_exec_ext in '' $ac_executable_extensions; do
6054 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6055 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6057 break 2
6059 done
6060 done
6061 IFS=$as_save_IFS
6065 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6066 if test -n "$ac_ct_DUMPBIN"; then
6067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6068 $as_echo "$ac_ct_DUMPBIN" >&6; }
6069 else
6070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6071 $as_echo "no" >&6; }
6075 test -n "$ac_ct_DUMPBIN" && break
6076 done
6078 if test "x$ac_ct_DUMPBIN" = x; then
6079 DUMPBIN=":"
6080 else
6081 case $cross_compiling:$ac_tool_warned in
6082 yes:)
6083 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6084 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6085 ac_tool_warned=yes ;;
6086 esac
6087 DUMPBIN=$ac_ct_DUMPBIN
6091 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6092 *COFF*)
6093 DUMPBIN="$DUMPBIN -symbols"
6096 DUMPBIN=:
6098 esac
6101 if test "$DUMPBIN" != ":"; then
6102 NM="$DUMPBIN"
6105 test -z "$NM" && NM=nm
6112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6113 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6114 if ${lt_cv_nm_interface+:} false; then :
6115 $as_echo_n "(cached) " >&6
6116 else
6117 lt_cv_nm_interface="BSD nm"
6118 echo "int some_variable = 0;" > conftest.$ac_ext
6119 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6120 (eval "$ac_compile" 2>conftest.err)
6121 cat conftest.err >&5
6122 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6123 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6124 cat conftest.err >&5
6125 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6126 cat conftest.out >&5
6127 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6128 lt_cv_nm_interface="MS dumpbin"
6130 rm -f conftest*
6132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6133 $as_echo "$lt_cv_nm_interface" >&6; }
6135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6136 $as_echo_n "checking whether ln -s works... " >&6; }
6137 LN_S=$as_ln_s
6138 if test "$LN_S" = "ln -s"; then
6139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6140 $as_echo "yes" >&6; }
6141 else
6142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6143 $as_echo "no, using $LN_S" >&6; }
6146 # find the maximum length of command line arguments
6147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6148 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6149 if ${lt_cv_sys_max_cmd_len+:} false; then :
6150 $as_echo_n "(cached) " >&6
6151 else
6153 teststring="ABCD"
6155 case $build_os in
6156 msdosdjgpp*)
6157 # On DJGPP, this test can blow up pretty badly due to problems in libc
6158 # (any single argument exceeding 2000 bytes causes a buffer overrun
6159 # during glob expansion). Even if it were fixed, the result of this
6160 # check would be larger than it should be.
6161 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6164 gnu*)
6165 # Under GNU Hurd, this test is not required because there is
6166 # no limit to the length of command line arguments.
6167 # Libtool will interpret -1 as no limit whatsoever
6168 lt_cv_sys_max_cmd_len=-1;
6171 cygwin* | mingw* | cegcc*)
6172 # On Win9x/ME, this test blows up -- it succeeds, but takes
6173 # about 5 minutes as the teststring grows exponentially.
6174 # Worse, since 9x/ME are not pre-emptively multitasking,
6175 # you end up with a "frozen" computer, even though with patience
6176 # the test eventually succeeds (with a max line length of 256k).
6177 # Instead, let's just punt: use the minimum linelength reported by
6178 # all of the supported platforms: 8192 (on NT/2K/XP).
6179 lt_cv_sys_max_cmd_len=8192;
6182 mint*)
6183 # On MiNT this can take a long time and run out of memory.
6184 lt_cv_sys_max_cmd_len=8192;
6187 amigaos*)
6188 # On AmigaOS with pdksh, this test takes hours, literally.
6189 # So we just punt and use a minimum line length of 8192.
6190 lt_cv_sys_max_cmd_len=8192;
6193 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6194 # This has been around since 386BSD, at least. Likely further.
6195 if test -x /sbin/sysctl; then
6196 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6197 elif test -x /usr/sbin/sysctl; then
6198 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6199 else
6200 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6202 # And add a safety zone
6203 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6204 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6207 interix*)
6208 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6209 lt_cv_sys_max_cmd_len=196608
6212 osf*)
6213 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6214 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6215 # nice to cause kernel panics so lets avoid the loop below.
6216 # First set a reasonable default.
6217 lt_cv_sys_max_cmd_len=16384
6219 if test -x /sbin/sysconfig; then
6220 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6221 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6222 esac
6225 sco3.2v5*)
6226 lt_cv_sys_max_cmd_len=102400
6228 sysv5* | sco5v6* | sysv4.2uw2*)
6229 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6230 if test -n "$kargmax"; then
6231 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6232 else
6233 lt_cv_sys_max_cmd_len=32768
6237 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6238 if test -n "$lt_cv_sys_max_cmd_len"; then
6239 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6240 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6241 else
6242 # Make teststring a little bigger before we do anything with it.
6243 # a 1K string should be a reasonable start.
6244 for i in 1 2 3 4 5 6 7 8 ; do
6245 teststring=$teststring$teststring
6246 done
6247 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6248 # If test is not a shell built-in, we'll probably end up computing a
6249 # maximum length that is only half of the actual maximum length, but
6250 # we can't tell.
6251 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6252 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6253 test $i != 17 # 1/2 MB should be enough
6255 i=`expr $i + 1`
6256 teststring=$teststring$teststring
6257 done
6258 # Only check the string length outside the loop.
6259 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6260 teststring=
6261 # Add a significant safety factor because C++ compilers can tack on
6262 # massive amounts of additional arguments before passing them to the
6263 # linker. It appears as though 1/2 is a usable value.
6264 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6267 esac
6271 if test -n $lt_cv_sys_max_cmd_len ; then
6272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6273 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6274 else
6275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6276 $as_echo "none" >&6; }
6278 max_cmd_len=$lt_cv_sys_max_cmd_len
6285 : ${CP="cp -f"}
6286 : ${MV="mv -f"}
6287 : ${RM="rm -f"}
6289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6290 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6291 # Try some XSI features
6292 xsi_shell=no
6293 ( _lt_dummy="a/b/c"
6294 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6295 = c,a/b,, \
6296 && eval 'test $(( 1 + 1 )) -eq 2 \
6297 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6298 && xsi_shell=yes
6299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6300 $as_echo "$xsi_shell" >&6; }
6303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6304 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6305 lt_shell_append=no
6306 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6307 >/dev/null 2>&1 \
6308 && lt_shell_append=yes
6309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6310 $as_echo "$lt_shell_append" >&6; }
6313 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6314 lt_unset=unset
6315 else
6316 lt_unset=false
6323 # test EBCDIC or ASCII
6324 case `echo X|tr X '\101'` in
6325 A) # ASCII based system
6326 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6327 lt_SP2NL='tr \040 \012'
6328 lt_NL2SP='tr \015\012 \040\040'
6330 *) # EBCDIC based system
6331 lt_SP2NL='tr \100 \n'
6332 lt_NL2SP='tr \r\n \100\100'
6334 esac
6344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6345 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6346 if ${lt_cv_ld_reload_flag+:} false; then :
6347 $as_echo_n "(cached) " >&6
6348 else
6349 lt_cv_ld_reload_flag='-r'
6351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6352 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6353 reload_flag=$lt_cv_ld_reload_flag
6354 case $reload_flag in
6355 "" | " "*) ;;
6356 *) reload_flag=" $reload_flag" ;;
6357 esac
6358 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6359 case $host_os in
6360 darwin*)
6361 if test "$GCC" = yes; then
6362 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6363 else
6364 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6367 esac
6377 if test -n "$ac_tool_prefix"; then
6378 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6379 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6381 $as_echo_n "checking for $ac_word... " >&6; }
6382 if ${ac_cv_prog_OBJDUMP+:} false; then :
6383 $as_echo_n "(cached) " >&6
6384 else
6385 if test -n "$OBJDUMP"; then
6386 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6387 else
6388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6389 for as_dir in $PATH
6391 IFS=$as_save_IFS
6392 test -z "$as_dir" && as_dir=.
6393 for ac_exec_ext in '' $ac_executable_extensions; do
6394 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6395 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6397 break 2
6399 done
6400 done
6401 IFS=$as_save_IFS
6405 OBJDUMP=$ac_cv_prog_OBJDUMP
6406 if test -n "$OBJDUMP"; then
6407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6408 $as_echo "$OBJDUMP" >&6; }
6409 else
6410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6411 $as_echo "no" >&6; }
6416 if test -z "$ac_cv_prog_OBJDUMP"; then
6417 ac_ct_OBJDUMP=$OBJDUMP
6418 # Extract the first word of "objdump", so it can be a program name with args.
6419 set dummy objdump; ac_word=$2
6420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6421 $as_echo_n "checking for $ac_word... " >&6; }
6422 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6423 $as_echo_n "(cached) " >&6
6424 else
6425 if test -n "$ac_ct_OBJDUMP"; then
6426 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6427 else
6428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6429 for as_dir in $PATH
6431 IFS=$as_save_IFS
6432 test -z "$as_dir" && as_dir=.
6433 for ac_exec_ext in '' $ac_executable_extensions; do
6434 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6435 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6436 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6437 break 2
6439 done
6440 done
6441 IFS=$as_save_IFS
6445 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6446 if test -n "$ac_ct_OBJDUMP"; then
6447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6448 $as_echo "$ac_ct_OBJDUMP" >&6; }
6449 else
6450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6451 $as_echo "no" >&6; }
6454 if test "x$ac_ct_OBJDUMP" = x; then
6455 OBJDUMP="false"
6456 else
6457 case $cross_compiling:$ac_tool_warned in
6458 yes:)
6459 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6460 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6461 ac_tool_warned=yes ;;
6462 esac
6463 OBJDUMP=$ac_ct_OBJDUMP
6465 else
6466 OBJDUMP="$ac_cv_prog_OBJDUMP"
6469 test -z "$OBJDUMP" && OBJDUMP=objdump
6479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6480 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6481 if ${lt_cv_deplibs_check_method+:} false; then :
6482 $as_echo_n "(cached) " >&6
6483 else
6484 lt_cv_file_magic_cmd='$MAGIC_CMD'
6485 lt_cv_file_magic_test_file=
6486 lt_cv_deplibs_check_method='unknown'
6487 # Need to set the preceding variable on all platforms that support
6488 # interlibrary dependencies.
6489 # 'none' -- dependencies not supported.
6490 # `unknown' -- same as none, but documents that we really don't know.
6491 # 'pass_all' -- all dependencies passed with no checks.
6492 # 'test_compile' -- check by making test program.
6493 # 'file_magic [[regex]]' -- check by looking for files in library path
6494 # which responds to the $file_magic_cmd with a given extended regex.
6495 # If you have `file' or equivalent on your system and you're not sure
6496 # whether `pass_all' will *always* work, you probably want this one.
6498 case $host_os in
6499 aix[4-9]*)
6500 lt_cv_deplibs_check_method=pass_all
6503 beos*)
6504 lt_cv_deplibs_check_method=pass_all
6507 bsdi[45]*)
6508 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6509 lt_cv_file_magic_cmd='/usr/bin/file -L'
6510 lt_cv_file_magic_test_file=/shlib/libc.so
6513 cygwin*)
6514 # func_win32_libid is a shell function defined in ltmain.sh
6515 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6516 lt_cv_file_magic_cmd='func_win32_libid'
6519 mingw* | pw32*)
6520 # Base MSYS/MinGW do not provide the 'file' command needed by
6521 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6522 # unless we find 'file', for example because we are cross-compiling.
6523 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6524 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6525 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6526 lt_cv_file_magic_cmd='func_win32_libid'
6527 else
6528 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6529 lt_cv_file_magic_cmd='$OBJDUMP -f'
6533 cegcc*)
6534 # use the weaker test based on 'objdump'. See mingw*.
6535 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6536 lt_cv_file_magic_cmd='$OBJDUMP -f'
6539 darwin* | rhapsody*)
6540 lt_cv_deplibs_check_method=pass_all
6543 freebsd* | dragonfly*)
6544 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6545 case $host_cpu in
6546 i*86 )
6547 # Not sure whether the presence of OpenBSD here was a mistake.
6548 # Let's accept both of them until this is cleared up.
6549 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6550 lt_cv_file_magic_cmd=/usr/bin/file
6551 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6553 esac
6554 else
6555 lt_cv_deplibs_check_method=pass_all
6559 gnu*)
6560 lt_cv_deplibs_check_method=pass_all
6563 haiku*)
6564 lt_cv_deplibs_check_method=pass_all
6567 hpux10.20* | hpux11*)
6568 lt_cv_file_magic_cmd=/usr/bin/file
6569 case $host_cpu in
6570 ia64*)
6571 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6572 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6574 hppa*64*)
6575 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]'
6576 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6579 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6580 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6582 esac
6585 interix[3-9]*)
6586 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6587 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6590 irix5* | irix6* | nonstopux*)
6591 case $LD in
6592 *-32|*"-32 ") libmagic=32-bit;;
6593 *-n32|*"-n32 ") libmagic=N32;;
6594 *-64|*"-64 ") libmagic=64-bit;;
6595 *) libmagic=never-match;;
6596 esac
6597 lt_cv_deplibs_check_method=pass_all
6600 # This must be Linux ELF.
6601 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
6602 lt_cv_deplibs_check_method=pass_all
6605 netbsd*)
6606 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6607 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6608 else
6609 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6613 newos6*)
6614 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6615 lt_cv_file_magic_cmd=/usr/bin/file
6616 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6619 *nto* | *qnx*)
6620 lt_cv_deplibs_check_method=pass_all
6623 openbsd*)
6624 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6625 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6626 else
6627 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6631 osf3* | osf4* | osf5*)
6632 lt_cv_deplibs_check_method=pass_all
6635 rdos*)
6636 lt_cv_deplibs_check_method=pass_all
6639 solaris*)
6640 lt_cv_deplibs_check_method=pass_all
6643 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6644 lt_cv_deplibs_check_method=pass_all
6647 sysv4 | sysv4.3*)
6648 case $host_vendor in
6649 motorola)
6650 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]'
6651 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6653 ncr)
6654 lt_cv_deplibs_check_method=pass_all
6656 sequent)
6657 lt_cv_file_magic_cmd='/bin/file'
6658 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6660 sni)
6661 lt_cv_file_magic_cmd='/bin/file'
6662 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6663 lt_cv_file_magic_test_file=/lib/libc.so
6665 siemens)
6666 lt_cv_deplibs_check_method=pass_all
6669 lt_cv_deplibs_check_method=pass_all
6671 esac
6674 tpf*)
6675 lt_cv_deplibs_check_method=pass_all
6677 vxworks*)
6678 # Assume VxWorks cross toolchains are built on Linux, possibly
6679 # as canadian for Windows hosts.
6680 lt_cv_deplibs_check_method=pass_all
6682 esac
6685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6686 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6687 file_magic_cmd=$lt_cv_file_magic_cmd
6688 deplibs_check_method=$lt_cv_deplibs_check_method
6689 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6702 plugin_option=
6703 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
6704 for plugin in $plugin_names; do
6705 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
6706 if test x$plugin_so = x$plugin; then
6707 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
6709 if test x$plugin_so != x$plugin; then
6710 plugin_option="--plugin $plugin_so"
6711 break
6713 done
6715 if test -n "$ac_tool_prefix"; then
6716 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6717 set dummy ${ac_tool_prefix}ar; ac_word=$2
6718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6719 $as_echo_n "checking for $ac_word... " >&6; }
6720 if ${ac_cv_prog_AR+:} false; then :
6721 $as_echo_n "(cached) " >&6
6722 else
6723 if test -n "$AR"; then
6724 ac_cv_prog_AR="$AR" # Let the user override the test.
6725 else
6726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6727 for as_dir in $PATH
6729 IFS=$as_save_IFS
6730 test -z "$as_dir" && as_dir=.
6731 for ac_exec_ext in '' $ac_executable_extensions; do
6732 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6733 ac_cv_prog_AR="${ac_tool_prefix}ar"
6734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6735 break 2
6737 done
6738 done
6739 IFS=$as_save_IFS
6743 AR=$ac_cv_prog_AR
6744 if test -n "$AR"; then
6745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6746 $as_echo "$AR" >&6; }
6747 else
6748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6749 $as_echo "no" >&6; }
6754 if test -z "$ac_cv_prog_AR"; then
6755 ac_ct_AR=$AR
6756 # Extract the first word of "ar", so it can be a program name with args.
6757 set dummy ar; ac_word=$2
6758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6759 $as_echo_n "checking for $ac_word... " >&6; }
6760 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6761 $as_echo_n "(cached) " >&6
6762 else
6763 if test -n "$ac_ct_AR"; then
6764 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6765 else
6766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6767 for as_dir in $PATH
6769 IFS=$as_save_IFS
6770 test -z "$as_dir" && as_dir=.
6771 for ac_exec_ext in '' $ac_executable_extensions; do
6772 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6773 ac_cv_prog_ac_ct_AR="ar"
6774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6775 break 2
6777 done
6778 done
6779 IFS=$as_save_IFS
6783 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6784 if test -n "$ac_ct_AR"; then
6785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6786 $as_echo "$ac_ct_AR" >&6; }
6787 else
6788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6789 $as_echo "no" >&6; }
6792 if test "x$ac_ct_AR" = x; then
6793 AR="false"
6794 else
6795 case $cross_compiling:$ac_tool_warned in
6796 yes:)
6797 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6798 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6799 ac_tool_warned=yes ;;
6800 esac
6801 AR=$ac_ct_AR
6803 else
6804 AR="$ac_cv_prog_AR"
6807 test -z "$AR" && AR=ar
6808 if test -n "$plugin_option"; then
6809 if $AR --help 2>&1 | grep -q "\--plugin"; then
6810 touch conftest.c
6811 $AR $plugin_option rc conftest.a conftest.c
6812 if test "$?" != 0; then
6813 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
6814 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
6815 else
6816 AR="$AR $plugin_option"
6818 rm -f conftest.*
6821 test -z "$AR_FLAGS" && AR_FLAGS=cru
6833 if test -n "$ac_tool_prefix"; then
6834 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6835 set dummy ${ac_tool_prefix}strip; ac_word=$2
6836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6837 $as_echo_n "checking for $ac_word... " >&6; }
6838 if ${ac_cv_prog_STRIP+:} false; then :
6839 $as_echo_n "(cached) " >&6
6840 else
6841 if test -n "$STRIP"; then
6842 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6843 else
6844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6845 for as_dir in $PATH
6847 IFS=$as_save_IFS
6848 test -z "$as_dir" && as_dir=.
6849 for ac_exec_ext in '' $ac_executable_extensions; do
6850 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6851 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6853 break 2
6855 done
6856 done
6857 IFS=$as_save_IFS
6861 STRIP=$ac_cv_prog_STRIP
6862 if test -n "$STRIP"; then
6863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6864 $as_echo "$STRIP" >&6; }
6865 else
6866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6867 $as_echo "no" >&6; }
6872 if test -z "$ac_cv_prog_STRIP"; then
6873 ac_ct_STRIP=$STRIP
6874 # Extract the first word of "strip", so it can be a program name with args.
6875 set dummy strip; ac_word=$2
6876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6877 $as_echo_n "checking for $ac_word... " >&6; }
6878 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6879 $as_echo_n "(cached) " >&6
6880 else
6881 if test -n "$ac_ct_STRIP"; then
6882 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6883 else
6884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6885 for as_dir in $PATH
6887 IFS=$as_save_IFS
6888 test -z "$as_dir" && as_dir=.
6889 for ac_exec_ext in '' $ac_executable_extensions; do
6890 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6891 ac_cv_prog_ac_ct_STRIP="strip"
6892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6893 break 2
6895 done
6896 done
6897 IFS=$as_save_IFS
6901 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6902 if test -n "$ac_ct_STRIP"; then
6903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6904 $as_echo "$ac_ct_STRIP" >&6; }
6905 else
6906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6907 $as_echo "no" >&6; }
6910 if test "x$ac_ct_STRIP" = x; then
6911 STRIP=":"
6912 else
6913 case $cross_compiling:$ac_tool_warned in
6914 yes:)
6915 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6916 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6917 ac_tool_warned=yes ;;
6918 esac
6919 STRIP=$ac_ct_STRIP
6921 else
6922 STRIP="$ac_cv_prog_STRIP"
6925 test -z "$STRIP" && STRIP=:
6932 if test -n "$ac_tool_prefix"; then
6933 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6934 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6936 $as_echo_n "checking for $ac_word... " >&6; }
6937 if ${ac_cv_prog_RANLIB+:} false; then :
6938 $as_echo_n "(cached) " >&6
6939 else
6940 if test -n "$RANLIB"; then
6941 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6942 else
6943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6944 for as_dir in $PATH
6946 IFS=$as_save_IFS
6947 test -z "$as_dir" && as_dir=.
6948 for ac_exec_ext in '' $ac_executable_extensions; do
6949 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6950 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6952 break 2
6954 done
6955 done
6956 IFS=$as_save_IFS
6960 RANLIB=$ac_cv_prog_RANLIB
6961 if test -n "$RANLIB"; then
6962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6963 $as_echo "$RANLIB" >&6; }
6964 else
6965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6966 $as_echo "no" >&6; }
6971 if test -z "$ac_cv_prog_RANLIB"; then
6972 ac_ct_RANLIB=$RANLIB
6973 # Extract the first word of "ranlib", so it can be a program name with args.
6974 set dummy ranlib; ac_word=$2
6975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6976 $as_echo_n "checking for $ac_word... " >&6; }
6977 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6978 $as_echo_n "(cached) " >&6
6979 else
6980 if test -n "$ac_ct_RANLIB"; then
6981 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6982 else
6983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6984 for as_dir in $PATH
6986 IFS=$as_save_IFS
6987 test -z "$as_dir" && as_dir=.
6988 for ac_exec_ext in '' $ac_executable_extensions; do
6989 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6990 ac_cv_prog_ac_ct_RANLIB="ranlib"
6991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6992 break 2
6994 done
6995 done
6996 IFS=$as_save_IFS
7000 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7001 if test -n "$ac_ct_RANLIB"; then
7002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7003 $as_echo "$ac_ct_RANLIB" >&6; }
7004 else
7005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7006 $as_echo "no" >&6; }
7009 if test "x$ac_ct_RANLIB" = x; then
7010 RANLIB=":"
7011 else
7012 case $cross_compiling:$ac_tool_warned in
7013 yes:)
7014 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7015 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7016 ac_tool_warned=yes ;;
7017 esac
7018 RANLIB=$ac_ct_RANLIB
7020 else
7021 RANLIB="$ac_cv_prog_RANLIB"
7024 test -z "$RANLIB" && RANLIB=:
7025 if test -n "$plugin_option" && test "$RANLIB" != ":"; then
7026 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
7027 RANLIB="$RANLIB $plugin_option"
7036 # Determine commands to create old-style static archives.
7037 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7038 old_postinstall_cmds='chmod 644 $oldlib'
7039 old_postuninstall_cmds=
7041 if test -n "$RANLIB"; then
7042 case $host_os in
7043 openbsd*)
7044 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7047 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7049 esac
7050 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7053 case $host_os in
7054 darwin*)
7055 lock_old_archive_extraction=yes ;;
7057 lock_old_archive_extraction=no ;;
7058 esac
7098 # If no C compiler was specified, use CC.
7099 LTCC=${LTCC-"$CC"}
7101 # If no C compiler flags were specified, use CFLAGS.
7102 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7104 # Allow CC to be a program name with arguments.
7105 compiler=$CC
7108 # Check for command to grab the raw symbol name followed by C symbol from nm.
7109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7110 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7111 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7112 $as_echo_n "(cached) " >&6
7113 else
7115 # These are sane defaults that work on at least a few old systems.
7116 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7118 # Character class describing NM global symbol codes.
7119 symcode='[BCDEGRST]'
7121 # Regexp to match symbols that can be accessed directly from C.
7122 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7124 # Define system-specific variables.
7125 case $host_os in
7126 aix*)
7127 symcode='[BCDT]'
7129 cygwin* | mingw* | pw32* | cegcc*)
7130 symcode='[ABCDGISTW]'
7132 hpux*)
7133 if test "$host_cpu" = ia64; then
7134 symcode='[ABCDEGRST]'
7137 irix* | nonstopux*)
7138 symcode='[BCDEGRST]'
7140 osf*)
7141 symcode='[BCDEGQRST]'
7143 solaris*)
7144 symcode='[BCDRT]'
7146 sco3.2v5*)
7147 symcode='[DT]'
7149 sysv4.2uw2*)
7150 symcode='[DT]'
7152 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7153 symcode='[ABDT]'
7155 sysv4)
7156 symcode='[DFNSTU]'
7158 esac
7160 # If we're using GNU nm, then use its standard symbol codes.
7161 case `$NM -V 2>&1` in
7162 *GNU* | *'with BFD'*)
7163 symcode='[ABCDGIRSTW]' ;;
7164 esac
7166 # Transform an extracted symbol line into a proper C declaration.
7167 # Some systems (esp. on ia64) link data and code symbols differently,
7168 # so use this general approach.
7169 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7171 # Transform an extracted symbol line into symbol name and symbol address
7172 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7173 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'"
7175 # Handle CRLF in mingw tool chain
7176 opt_cr=
7177 case $build_os in
7178 mingw*)
7179 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7181 esac
7183 # Try without a prefix underscore, then with it.
7184 for ac_symprfx in "" "_"; do
7186 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7187 symxfrm="\\1 $ac_symprfx\\2 \\2"
7189 # Write the raw and C identifiers.
7190 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7191 # Fake it for dumpbin and say T for any non-static function
7192 # and D for any global variable.
7193 # Also find C++ and __fastcall symbols from MSVC++,
7194 # which start with @ or ?.
7195 lt_cv_sys_global_symbol_pipe="$AWK '"\
7196 " {last_section=section; section=\$ 3};"\
7197 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7198 " \$ 0!~/External *\|/{next};"\
7199 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7200 " {if(hide[section]) next};"\
7201 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7202 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7203 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7204 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7205 " ' prfx=^$ac_symprfx"
7206 else
7207 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7210 # Check to see that the pipe works correctly.
7211 pipe_works=no
7213 rm -f conftest*
7214 cat > conftest.$ac_ext <<_LT_EOF
7215 #ifdef __cplusplus
7216 extern "C" {
7217 #endif
7218 char nm_test_var;
7219 void nm_test_func(void);
7220 void nm_test_func(void){}
7221 #ifdef __cplusplus
7223 #endif
7224 int main(){nm_test_var='a';nm_test_func();return(0);}
7225 _LT_EOF
7227 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7228 (eval $ac_compile) 2>&5
7229 ac_status=$?
7230 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7231 test $ac_status = 0; }; then
7232 # Now try to grab the symbols.
7233 nlist=conftest.nm
7234 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7235 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7236 ac_status=$?
7237 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7238 test $ac_status = 0; } && test -s "$nlist"; then
7239 # Try sorting and uniquifying the output.
7240 if sort "$nlist" | uniq > "$nlist"T; then
7241 mv -f "$nlist"T "$nlist"
7242 else
7243 rm -f "$nlist"T
7246 # Make sure that we snagged all the symbols we need.
7247 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7248 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7249 cat <<_LT_EOF > conftest.$ac_ext
7250 #ifdef __cplusplus
7251 extern "C" {
7252 #endif
7254 _LT_EOF
7255 # Now generate the symbol file.
7256 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7258 cat <<_LT_EOF >> conftest.$ac_ext
7260 /* The mapping between symbol names and symbols. */
7261 const struct {
7262 const char *name;
7263 void *address;
7265 lt__PROGRAM__LTX_preloaded_symbols[] =
7267 { "@PROGRAM@", (void *) 0 },
7268 _LT_EOF
7269 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7270 cat <<\_LT_EOF >> conftest.$ac_ext
7271 {0, (void *) 0}
7274 /* This works around a problem in FreeBSD linker */
7275 #ifdef FREEBSD_WORKAROUND
7276 static const void *lt_preloaded_setup() {
7277 return lt__PROGRAM__LTX_preloaded_symbols;
7279 #endif
7281 #ifdef __cplusplus
7283 #endif
7284 _LT_EOF
7285 # Now try linking the two files.
7286 mv conftest.$ac_objext conftstm.$ac_objext
7287 lt_save_LIBS="$LIBS"
7288 lt_save_CFLAGS="$CFLAGS"
7289 LIBS="conftstm.$ac_objext"
7290 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7291 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7292 (eval $ac_link) 2>&5
7293 ac_status=$?
7294 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7295 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7296 pipe_works=yes
7298 LIBS="$lt_save_LIBS"
7299 CFLAGS="$lt_save_CFLAGS"
7300 else
7301 echo "cannot find nm_test_func in $nlist" >&5
7303 else
7304 echo "cannot find nm_test_var in $nlist" >&5
7306 else
7307 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7309 else
7310 echo "$progname: failed program was:" >&5
7311 cat conftest.$ac_ext >&5
7313 rm -rf conftest* conftst*
7315 # Do not use the global_symbol_pipe unless it works.
7316 if test "$pipe_works" = yes; then
7317 break
7318 else
7319 lt_cv_sys_global_symbol_pipe=
7321 done
7325 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7326 lt_cv_sys_global_symbol_to_cdecl=
7328 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7330 $as_echo "failed" >&6; }
7331 else
7332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7333 $as_echo "ok" >&6; }
7357 # Check whether --enable-libtool-lock was given.
7358 if test "${enable_libtool_lock+set}" = set; then :
7359 enableval=$enable_libtool_lock;
7362 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7364 # Some flags need to be propagated to the compiler or linker for good
7365 # libtool support.
7366 case $host in
7367 ia64-*-hpux*)
7368 # Find out which ABI we are using.
7369 echo 'int i;' > conftest.$ac_ext
7370 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7371 (eval $ac_compile) 2>&5
7372 ac_status=$?
7373 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7374 test $ac_status = 0; }; then
7375 case `/usr/bin/file conftest.$ac_objext` in
7376 *ELF-32*)
7377 HPUX_IA64_MODE="32"
7379 *ELF-64*)
7380 HPUX_IA64_MODE="64"
7382 esac
7384 rm -rf conftest*
7386 *-*-irix6*)
7387 # Find out which ABI we are using.
7388 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7389 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7390 (eval $ac_compile) 2>&5
7391 ac_status=$?
7392 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7393 test $ac_status = 0; }; then
7394 if test "$lt_cv_prog_gnu_ld" = yes; then
7395 case `/usr/bin/file conftest.$ac_objext` in
7396 *32-bit*)
7397 LD="${LD-ld} -melf32bsmip"
7399 *N32*)
7400 LD="${LD-ld} -melf32bmipn32"
7402 *64-bit*)
7403 LD="${LD-ld} -melf64bmip"
7405 esac
7406 else
7407 case `/usr/bin/file conftest.$ac_objext` in
7408 *32-bit*)
7409 LD="${LD-ld} -32"
7411 *N32*)
7412 LD="${LD-ld} -n32"
7414 *64-bit*)
7415 LD="${LD-ld} -64"
7417 esac
7420 rm -rf conftest*
7423 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7424 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7425 # Find out which ABI we are using.
7426 echo 'int i;' > conftest.$ac_ext
7427 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7428 (eval $ac_compile) 2>&5
7429 ac_status=$?
7430 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7431 test $ac_status = 0; }; then
7432 case `/usr/bin/file conftest.o` in
7433 *32-bit*)
7434 case $host in
7435 x86_64-*kfreebsd*-gnu)
7436 LD="${LD-ld} -m elf_i386_fbsd"
7438 x86_64-*linux*)
7439 case `/usr/bin/file conftest.o` in
7440 *x86-64*)
7441 LD="${LD-ld} -m elf32_x86_64"
7444 LD="${LD-ld} -m elf_i386"
7446 esac
7448 powerpc64le-*linux*)
7449 LD="${LD-ld} -m elf32lppclinux"
7451 powerpc64-*linux*)
7452 LD="${LD-ld} -m elf32ppclinux"
7454 s390x-*linux*)
7455 LD="${LD-ld} -m elf_s390"
7457 sparc64-*linux*)
7458 LD="${LD-ld} -m elf32_sparc"
7460 esac
7462 *64-bit*)
7463 case $host in
7464 x86_64-*kfreebsd*-gnu)
7465 LD="${LD-ld} -m elf_x86_64_fbsd"
7467 x86_64-*linux*)
7468 LD="${LD-ld} -m elf_x86_64"
7470 powerpcle-*linux*)
7471 LD="${LD-ld} -m elf64lppc"
7473 powerpc-*linux*)
7474 LD="${LD-ld} -m elf64ppc"
7476 s390*-*linux*|s390*-*tpf*)
7477 LD="${LD-ld} -m elf64_s390"
7479 sparc*-*linux*)
7480 LD="${LD-ld} -m elf64_sparc"
7482 esac
7484 esac
7486 rm -rf conftest*
7489 *-*-sco3.2v5*)
7490 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7491 SAVE_CFLAGS="$CFLAGS"
7492 CFLAGS="$CFLAGS -belf"
7493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7494 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7495 if ${lt_cv_cc_needs_belf+:} false; then :
7496 $as_echo_n "(cached) " >&6
7497 else
7498 ac_ext=c
7499 ac_cpp='$CPP $CPPFLAGS'
7500 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7501 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7502 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7505 /* end confdefs.h. */
7508 main ()
7512 return 0;
7514 _ACEOF
7515 if ac_fn_c_try_link "$LINENO"; then :
7516 lt_cv_cc_needs_belf=yes
7517 else
7518 lt_cv_cc_needs_belf=no
7520 rm -f core conftest.err conftest.$ac_objext \
7521 conftest$ac_exeext conftest.$ac_ext
7522 ac_ext=c
7523 ac_cpp='$CPP $CPPFLAGS'
7524 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7525 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7526 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7530 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7531 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7532 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7533 CFLAGS="$SAVE_CFLAGS"
7536 sparc*-*solaris*)
7537 # Find out which ABI we are using.
7538 echo 'int i;' > conftest.$ac_ext
7539 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7540 (eval $ac_compile) 2>&5
7541 ac_status=$?
7542 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7543 test $ac_status = 0; }; then
7544 case `/usr/bin/file conftest.o` in
7545 *64-bit*)
7546 case $lt_cv_prog_gnu_ld in
7547 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7549 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7550 LD="${LD-ld} -64"
7553 esac
7555 esac
7557 rm -rf conftest*
7559 esac
7561 need_locks="$enable_libtool_lock"
7564 case $host_os in
7565 rhapsody* | darwin*)
7566 if test -n "$ac_tool_prefix"; then
7567 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7568 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7570 $as_echo_n "checking for $ac_word... " >&6; }
7571 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7572 $as_echo_n "(cached) " >&6
7573 else
7574 if test -n "$DSYMUTIL"; then
7575 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7576 else
7577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7578 for as_dir in $PATH
7580 IFS=$as_save_IFS
7581 test -z "$as_dir" && as_dir=.
7582 for ac_exec_ext in '' $ac_executable_extensions; do
7583 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7584 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7586 break 2
7588 done
7589 done
7590 IFS=$as_save_IFS
7594 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7595 if test -n "$DSYMUTIL"; then
7596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7597 $as_echo "$DSYMUTIL" >&6; }
7598 else
7599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7600 $as_echo "no" >&6; }
7605 if test -z "$ac_cv_prog_DSYMUTIL"; then
7606 ac_ct_DSYMUTIL=$DSYMUTIL
7607 # Extract the first word of "dsymutil", so it can be a program name with args.
7608 set dummy dsymutil; ac_word=$2
7609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7610 $as_echo_n "checking for $ac_word... " >&6; }
7611 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7612 $as_echo_n "(cached) " >&6
7613 else
7614 if test -n "$ac_ct_DSYMUTIL"; then
7615 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7616 else
7617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7618 for as_dir in $PATH
7620 IFS=$as_save_IFS
7621 test -z "$as_dir" && as_dir=.
7622 for ac_exec_ext in '' $ac_executable_extensions; do
7623 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7624 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7626 break 2
7628 done
7629 done
7630 IFS=$as_save_IFS
7634 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7635 if test -n "$ac_ct_DSYMUTIL"; then
7636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7637 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7638 else
7639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7640 $as_echo "no" >&6; }
7643 if test "x$ac_ct_DSYMUTIL" = x; then
7644 DSYMUTIL=":"
7645 else
7646 case $cross_compiling:$ac_tool_warned in
7647 yes:)
7648 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7649 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7650 ac_tool_warned=yes ;;
7651 esac
7652 DSYMUTIL=$ac_ct_DSYMUTIL
7654 else
7655 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7658 if test -n "$ac_tool_prefix"; then
7659 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7660 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7662 $as_echo_n "checking for $ac_word... " >&6; }
7663 if ${ac_cv_prog_NMEDIT+:} false; then :
7664 $as_echo_n "(cached) " >&6
7665 else
7666 if test -n "$NMEDIT"; then
7667 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7668 else
7669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7670 for as_dir in $PATH
7672 IFS=$as_save_IFS
7673 test -z "$as_dir" && as_dir=.
7674 for ac_exec_ext in '' $ac_executable_extensions; do
7675 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7676 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7678 break 2
7680 done
7681 done
7682 IFS=$as_save_IFS
7686 NMEDIT=$ac_cv_prog_NMEDIT
7687 if test -n "$NMEDIT"; then
7688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7689 $as_echo "$NMEDIT" >&6; }
7690 else
7691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7692 $as_echo "no" >&6; }
7697 if test -z "$ac_cv_prog_NMEDIT"; then
7698 ac_ct_NMEDIT=$NMEDIT
7699 # Extract the first word of "nmedit", so it can be a program name with args.
7700 set dummy nmedit; ac_word=$2
7701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7702 $as_echo_n "checking for $ac_word... " >&6; }
7703 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7704 $as_echo_n "(cached) " >&6
7705 else
7706 if test -n "$ac_ct_NMEDIT"; then
7707 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7708 else
7709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7710 for as_dir in $PATH
7712 IFS=$as_save_IFS
7713 test -z "$as_dir" && as_dir=.
7714 for ac_exec_ext in '' $ac_executable_extensions; do
7715 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7716 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7718 break 2
7720 done
7721 done
7722 IFS=$as_save_IFS
7726 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7727 if test -n "$ac_ct_NMEDIT"; then
7728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7729 $as_echo "$ac_ct_NMEDIT" >&6; }
7730 else
7731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7732 $as_echo "no" >&6; }
7735 if test "x$ac_ct_NMEDIT" = x; then
7736 NMEDIT=":"
7737 else
7738 case $cross_compiling:$ac_tool_warned in
7739 yes:)
7740 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7741 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7742 ac_tool_warned=yes ;;
7743 esac
7744 NMEDIT=$ac_ct_NMEDIT
7746 else
7747 NMEDIT="$ac_cv_prog_NMEDIT"
7750 if test -n "$ac_tool_prefix"; then
7751 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7752 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7754 $as_echo_n "checking for $ac_word... " >&6; }
7755 if ${ac_cv_prog_LIPO+:} false; then :
7756 $as_echo_n "(cached) " >&6
7757 else
7758 if test -n "$LIPO"; then
7759 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7760 else
7761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7762 for as_dir in $PATH
7764 IFS=$as_save_IFS
7765 test -z "$as_dir" && as_dir=.
7766 for ac_exec_ext in '' $ac_executable_extensions; do
7767 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7768 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7770 break 2
7772 done
7773 done
7774 IFS=$as_save_IFS
7778 LIPO=$ac_cv_prog_LIPO
7779 if test -n "$LIPO"; then
7780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7781 $as_echo "$LIPO" >&6; }
7782 else
7783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7784 $as_echo "no" >&6; }
7789 if test -z "$ac_cv_prog_LIPO"; then
7790 ac_ct_LIPO=$LIPO
7791 # Extract the first word of "lipo", so it can be a program name with args.
7792 set dummy lipo; ac_word=$2
7793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7794 $as_echo_n "checking for $ac_word... " >&6; }
7795 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7796 $as_echo_n "(cached) " >&6
7797 else
7798 if test -n "$ac_ct_LIPO"; then
7799 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7800 else
7801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7802 for as_dir in $PATH
7804 IFS=$as_save_IFS
7805 test -z "$as_dir" && as_dir=.
7806 for ac_exec_ext in '' $ac_executable_extensions; do
7807 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7808 ac_cv_prog_ac_ct_LIPO="lipo"
7809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7810 break 2
7812 done
7813 done
7814 IFS=$as_save_IFS
7818 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7819 if test -n "$ac_ct_LIPO"; then
7820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7821 $as_echo "$ac_ct_LIPO" >&6; }
7822 else
7823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7824 $as_echo "no" >&6; }
7827 if test "x$ac_ct_LIPO" = x; then
7828 LIPO=":"
7829 else
7830 case $cross_compiling:$ac_tool_warned in
7831 yes:)
7832 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7833 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7834 ac_tool_warned=yes ;;
7835 esac
7836 LIPO=$ac_ct_LIPO
7838 else
7839 LIPO="$ac_cv_prog_LIPO"
7842 if test -n "$ac_tool_prefix"; then
7843 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7844 set dummy ${ac_tool_prefix}otool; ac_word=$2
7845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7846 $as_echo_n "checking for $ac_word... " >&6; }
7847 if ${ac_cv_prog_OTOOL+:} false; then :
7848 $as_echo_n "(cached) " >&6
7849 else
7850 if test -n "$OTOOL"; then
7851 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7852 else
7853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7854 for as_dir in $PATH
7856 IFS=$as_save_IFS
7857 test -z "$as_dir" && as_dir=.
7858 for ac_exec_ext in '' $ac_executable_extensions; do
7859 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7860 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7862 break 2
7864 done
7865 done
7866 IFS=$as_save_IFS
7870 OTOOL=$ac_cv_prog_OTOOL
7871 if test -n "$OTOOL"; then
7872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7873 $as_echo "$OTOOL" >&6; }
7874 else
7875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7876 $as_echo "no" >&6; }
7881 if test -z "$ac_cv_prog_OTOOL"; then
7882 ac_ct_OTOOL=$OTOOL
7883 # Extract the first word of "otool", so it can be a program name with args.
7884 set dummy otool; ac_word=$2
7885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7886 $as_echo_n "checking for $ac_word... " >&6; }
7887 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7888 $as_echo_n "(cached) " >&6
7889 else
7890 if test -n "$ac_ct_OTOOL"; then
7891 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7892 else
7893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7894 for as_dir in $PATH
7896 IFS=$as_save_IFS
7897 test -z "$as_dir" && as_dir=.
7898 for ac_exec_ext in '' $ac_executable_extensions; do
7899 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7900 ac_cv_prog_ac_ct_OTOOL="otool"
7901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7902 break 2
7904 done
7905 done
7906 IFS=$as_save_IFS
7910 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7911 if test -n "$ac_ct_OTOOL"; then
7912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7913 $as_echo "$ac_ct_OTOOL" >&6; }
7914 else
7915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7916 $as_echo "no" >&6; }
7919 if test "x$ac_ct_OTOOL" = x; then
7920 OTOOL=":"
7921 else
7922 case $cross_compiling:$ac_tool_warned in
7923 yes:)
7924 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7925 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7926 ac_tool_warned=yes ;;
7927 esac
7928 OTOOL=$ac_ct_OTOOL
7930 else
7931 OTOOL="$ac_cv_prog_OTOOL"
7934 if test -n "$ac_tool_prefix"; then
7935 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7936 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7938 $as_echo_n "checking for $ac_word... " >&6; }
7939 if ${ac_cv_prog_OTOOL64+:} false; then :
7940 $as_echo_n "(cached) " >&6
7941 else
7942 if test -n "$OTOOL64"; then
7943 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7944 else
7945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7946 for as_dir in $PATH
7948 IFS=$as_save_IFS
7949 test -z "$as_dir" && as_dir=.
7950 for ac_exec_ext in '' $ac_executable_extensions; do
7951 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7952 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7954 break 2
7956 done
7957 done
7958 IFS=$as_save_IFS
7962 OTOOL64=$ac_cv_prog_OTOOL64
7963 if test -n "$OTOOL64"; then
7964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7965 $as_echo "$OTOOL64" >&6; }
7966 else
7967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7968 $as_echo "no" >&6; }
7973 if test -z "$ac_cv_prog_OTOOL64"; then
7974 ac_ct_OTOOL64=$OTOOL64
7975 # Extract the first word of "otool64", so it can be a program name with args.
7976 set dummy otool64; ac_word=$2
7977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7978 $as_echo_n "checking for $ac_word... " >&6; }
7979 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7980 $as_echo_n "(cached) " >&6
7981 else
7982 if test -n "$ac_ct_OTOOL64"; then
7983 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7984 else
7985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7986 for as_dir in $PATH
7988 IFS=$as_save_IFS
7989 test -z "$as_dir" && as_dir=.
7990 for ac_exec_ext in '' $ac_executable_extensions; do
7991 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7992 ac_cv_prog_ac_ct_OTOOL64="otool64"
7993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7994 break 2
7996 done
7997 done
7998 IFS=$as_save_IFS
8002 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8003 if test -n "$ac_ct_OTOOL64"; then
8004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8005 $as_echo "$ac_ct_OTOOL64" >&6; }
8006 else
8007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8008 $as_echo "no" >&6; }
8011 if test "x$ac_ct_OTOOL64" = x; then
8012 OTOOL64=":"
8013 else
8014 case $cross_compiling:$ac_tool_warned in
8015 yes:)
8016 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8017 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8018 ac_tool_warned=yes ;;
8019 esac
8020 OTOOL64=$ac_ct_OTOOL64
8022 else
8023 OTOOL64="$ac_cv_prog_OTOOL64"
8052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8053 $as_echo_n "checking for -single_module linker flag... " >&6; }
8054 if ${lt_cv_apple_cc_single_mod+:} false; then :
8055 $as_echo_n "(cached) " >&6
8056 else
8057 lt_cv_apple_cc_single_mod=no
8058 if test -z "${LT_MULTI_MODULE}"; then
8059 # By default we will add the -single_module flag. You can override
8060 # by either setting the environment variable LT_MULTI_MODULE
8061 # non-empty at configure time, or by adding -multi_module to the
8062 # link flags.
8063 rm -rf libconftest.dylib*
8064 echo "int foo(void){return 1;}" > conftest.c
8065 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8066 -dynamiclib -Wl,-single_module conftest.c" >&5
8067 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8068 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8069 _lt_result=$?
8070 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8071 lt_cv_apple_cc_single_mod=yes
8072 else
8073 cat conftest.err >&5
8075 rm -rf libconftest.dylib*
8076 rm -f conftest.*
8079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8080 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8082 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8083 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8084 $as_echo_n "(cached) " >&6
8085 else
8086 lt_cv_ld_exported_symbols_list=no
8087 save_LDFLAGS=$LDFLAGS
8088 echo "_main" > conftest.sym
8089 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8091 /* end confdefs.h. */
8094 main ()
8098 return 0;
8100 _ACEOF
8101 if ac_fn_c_try_link "$LINENO"; then :
8102 lt_cv_ld_exported_symbols_list=yes
8103 else
8104 lt_cv_ld_exported_symbols_list=no
8106 rm -f core conftest.err conftest.$ac_objext \
8107 conftest$ac_exeext conftest.$ac_ext
8108 LDFLAGS="$save_LDFLAGS"
8111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8112 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8114 $as_echo_n "checking for -force_load linker flag... " >&6; }
8115 if ${lt_cv_ld_force_load+:} false; then :
8116 $as_echo_n "(cached) " >&6
8117 else
8118 lt_cv_ld_force_load=no
8119 cat > conftest.c << _LT_EOF
8120 int forced_loaded() { return 2;}
8121 _LT_EOF
8122 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8123 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8124 echo "$AR cru libconftest.a conftest.o" >&5
8125 $AR cru libconftest.a conftest.o 2>&5
8126 cat > conftest.c << _LT_EOF
8127 int main() { return 0;}
8128 _LT_EOF
8129 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8130 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8131 _lt_result=$?
8132 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8133 lt_cv_ld_force_load=yes
8134 else
8135 cat conftest.err >&5
8137 rm -f conftest.err libconftest.a conftest conftest.c
8138 rm -rf conftest.dSYM
8141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8142 $as_echo "$lt_cv_ld_force_load" >&6; }
8143 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
8144 # build without first building modern cctools / linker.
8145 case $host_cpu-$host_os in
8146 *-rhapsody* | *-darwin1.[012])
8147 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8148 *-darwin1.*)
8149 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8150 *-darwin*)
8151 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
8152 # deployment target is forced to an earlier version.
8153 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
8154 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*)
8156 10.[012][,.]*)
8157 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8161 esac
8163 esac
8164 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8165 _lt_dar_single_mod='$single_module'
8167 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8168 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8169 else
8170 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8172 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8173 _lt_dsymutil='~$DSYMUTIL $lib || :'
8174 else
8175 _lt_dsymutil=
8178 esac
8180 for ac_header in dlfcn.h
8181 do :
8182 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8184 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8185 cat >>confdefs.h <<_ACEOF
8186 #define HAVE_DLFCN_H 1
8187 _ACEOF
8191 done
8198 # Set options
8202 enable_dlopen=no
8205 enable_win32_dll=no
8208 # Check whether --enable-shared was given.
8209 if test "${enable_shared+set}" = set; then :
8210 enableval=$enable_shared; p=${PACKAGE-default}
8211 case $enableval in
8212 yes) enable_shared=yes ;;
8213 no) enable_shared=no ;;
8215 enable_shared=no
8216 # Look at the argument we got. We use all the common list separators.
8217 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8218 for pkg in $enableval; do
8219 IFS="$lt_save_ifs"
8220 if test "X$pkg" = "X$p"; then
8221 enable_shared=yes
8223 done
8224 IFS="$lt_save_ifs"
8226 esac
8227 else
8228 enable_shared=yes
8239 # Check whether --enable-static was given.
8240 if test "${enable_static+set}" = set; then :
8241 enableval=$enable_static; p=${PACKAGE-default}
8242 case $enableval in
8243 yes) enable_static=yes ;;
8244 no) enable_static=no ;;
8246 enable_static=no
8247 # Look at the argument we got. We use all the common list separators.
8248 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8249 for pkg in $enableval; do
8250 IFS="$lt_save_ifs"
8251 if test "X$pkg" = "X$p"; then
8252 enable_static=yes
8254 done
8255 IFS="$lt_save_ifs"
8257 esac
8258 else
8259 enable_static=yes
8271 # Check whether --with-pic was given.
8272 if test "${with_pic+set}" = set; then :
8273 withval=$with_pic; pic_mode="$withval"
8274 else
8275 pic_mode=default
8279 test -z "$pic_mode" && pic_mode=default
8287 # Check whether --enable-fast-install was given.
8288 if test "${enable_fast_install+set}" = set; then :
8289 enableval=$enable_fast_install; p=${PACKAGE-default}
8290 case $enableval in
8291 yes) enable_fast_install=yes ;;
8292 no) enable_fast_install=no ;;
8294 enable_fast_install=no
8295 # Look at the argument we got. We use all the common list separators.
8296 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8297 for pkg in $enableval; do
8298 IFS="$lt_save_ifs"
8299 if test "X$pkg" = "X$p"; then
8300 enable_fast_install=yes
8302 done
8303 IFS="$lt_save_ifs"
8305 esac
8306 else
8307 enable_fast_install=yes
8320 # This can be used to rebuild libtool when needed
8321 LIBTOOL_DEPS="$ltmain"
8323 # Always use our own libtool.
8324 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8351 test -z "$LN_S" && LN_S="ln -s"
8366 if test -n "${ZSH_VERSION+set}" ; then
8367 setopt NO_GLOB_SUBST
8370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8371 $as_echo_n "checking for objdir... " >&6; }
8372 if ${lt_cv_objdir+:} false; then :
8373 $as_echo_n "(cached) " >&6
8374 else
8375 rm -f .libs 2>/dev/null
8376 mkdir .libs 2>/dev/null
8377 if test -d .libs; then
8378 lt_cv_objdir=.libs
8379 else
8380 # MS-DOS does not allow filenames that begin with a dot.
8381 lt_cv_objdir=_libs
8383 rmdir .libs 2>/dev/null
8385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8386 $as_echo "$lt_cv_objdir" >&6; }
8387 objdir=$lt_cv_objdir
8393 cat >>confdefs.h <<_ACEOF
8394 #define LT_OBJDIR "$lt_cv_objdir/"
8395 _ACEOF
8400 case $host_os in
8401 aix3*)
8402 # AIX sometimes has problems with the GCC collect2 program. For some
8403 # reason, if we set the COLLECT_NAMES environment variable, the problems
8404 # vanish in a puff of smoke.
8405 if test "X${COLLECT_NAMES+set}" != Xset; then
8406 COLLECT_NAMES=
8407 export COLLECT_NAMES
8410 esac
8412 # Global variables:
8413 ofile=libtool
8414 can_build_shared=yes
8416 # All known linkers require a `.a' archive for static linking (except MSVC,
8417 # which needs '.lib').
8418 libext=a
8420 with_gnu_ld="$lt_cv_prog_gnu_ld"
8422 old_CC="$CC"
8423 old_CFLAGS="$CFLAGS"
8425 # Set sane defaults for various variables
8426 test -z "$CC" && CC=cc
8427 test -z "$LTCC" && LTCC=$CC
8428 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8429 test -z "$LD" && LD=ld
8430 test -z "$ac_objext" && ac_objext=o
8432 for cc_temp in $compiler""; do
8433 case $cc_temp in
8434 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8435 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8436 \-*) ;;
8437 *) break;;
8438 esac
8439 done
8440 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8443 # Only perform the check for file, if the check method requires it
8444 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8445 case $deplibs_check_method in
8446 file_magic*)
8447 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8449 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8450 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8451 $as_echo_n "(cached) " >&6
8452 else
8453 case $MAGIC_CMD in
8454 [\\/*] | ?:[\\/]*)
8455 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8458 lt_save_MAGIC_CMD="$MAGIC_CMD"
8459 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8460 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8461 for ac_dir in $ac_dummy; do
8462 IFS="$lt_save_ifs"
8463 test -z "$ac_dir" && ac_dir=.
8464 if test -f $ac_dir/${ac_tool_prefix}file; then
8465 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8466 if test -n "$file_magic_test_file"; then
8467 case $deplibs_check_method in
8468 "file_magic "*)
8469 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8470 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8471 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8472 $EGREP "$file_magic_regex" > /dev/null; then
8474 else
8475 cat <<_LT_EOF 1>&2
8477 *** Warning: the command libtool uses to detect shared libraries,
8478 *** $file_magic_cmd, produces output that libtool cannot recognize.
8479 *** The result is that libtool may fail to recognize shared libraries
8480 *** as such. This will affect the creation of libtool libraries that
8481 *** depend on shared libraries, but programs linked with such libtool
8482 *** libraries will work regardless of this problem. Nevertheless, you
8483 *** may want to report the problem to your system manager and/or to
8484 *** bug-libtool@gnu.org
8486 _LT_EOF
8487 fi ;;
8488 esac
8490 break
8492 done
8493 IFS="$lt_save_ifs"
8494 MAGIC_CMD="$lt_save_MAGIC_CMD"
8496 esac
8499 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8500 if test -n "$MAGIC_CMD"; then
8501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8502 $as_echo "$MAGIC_CMD" >&6; }
8503 else
8504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8505 $as_echo "no" >&6; }
8512 if test -z "$lt_cv_path_MAGIC_CMD"; then
8513 if test -n "$ac_tool_prefix"; then
8514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8515 $as_echo_n "checking for file... " >&6; }
8516 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8517 $as_echo_n "(cached) " >&6
8518 else
8519 case $MAGIC_CMD in
8520 [\\/*] | ?:[\\/]*)
8521 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8524 lt_save_MAGIC_CMD="$MAGIC_CMD"
8525 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8526 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8527 for ac_dir in $ac_dummy; do
8528 IFS="$lt_save_ifs"
8529 test -z "$ac_dir" && ac_dir=.
8530 if test -f $ac_dir/file; then
8531 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8532 if test -n "$file_magic_test_file"; then
8533 case $deplibs_check_method in
8534 "file_magic "*)
8535 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8536 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8537 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8538 $EGREP "$file_magic_regex" > /dev/null; then
8540 else
8541 cat <<_LT_EOF 1>&2
8543 *** Warning: the command libtool uses to detect shared libraries,
8544 *** $file_magic_cmd, produces output that libtool cannot recognize.
8545 *** The result is that libtool may fail to recognize shared libraries
8546 *** as such. This will affect the creation of libtool libraries that
8547 *** depend on shared libraries, but programs linked with such libtool
8548 *** libraries will work regardless of this problem. Nevertheless, you
8549 *** may want to report the problem to your system manager and/or to
8550 *** bug-libtool@gnu.org
8552 _LT_EOF
8553 fi ;;
8554 esac
8556 break
8558 done
8559 IFS="$lt_save_ifs"
8560 MAGIC_CMD="$lt_save_MAGIC_CMD"
8562 esac
8565 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8566 if test -n "$MAGIC_CMD"; then
8567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8568 $as_echo "$MAGIC_CMD" >&6; }
8569 else
8570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8571 $as_echo "no" >&6; }
8575 else
8576 MAGIC_CMD=:
8582 esac
8584 # Use C for the default configuration in the libtool script
8586 lt_save_CC="$CC"
8587 ac_ext=c
8588 ac_cpp='$CPP $CPPFLAGS'
8589 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8590 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8591 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8594 # Source file extension for C test sources.
8595 ac_ext=c
8597 # Object file extension for compiled C test sources.
8598 objext=o
8599 objext=$objext
8601 # Code to be used in simple compile tests
8602 lt_simple_compile_test_code="int some_variable = 0;"
8604 # Code to be used in simple link tests
8605 lt_simple_link_test_code='int main(){return(0);}'
8613 # If no C compiler was specified, use CC.
8614 LTCC=${LTCC-"$CC"}
8616 # If no C compiler flags were specified, use CFLAGS.
8617 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8619 # Allow CC to be a program name with arguments.
8620 compiler=$CC
8622 # Save the default compiler, since it gets overwritten when the other
8623 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8624 compiler_DEFAULT=$CC
8626 # save warnings/boilerplate of simple test code
8627 ac_outfile=conftest.$ac_objext
8628 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8629 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8630 _lt_compiler_boilerplate=`cat conftest.err`
8631 $RM conftest*
8633 ac_outfile=conftest.$ac_objext
8634 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8635 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8636 _lt_linker_boilerplate=`cat conftest.err`
8637 $RM -r conftest*
8640 ## CAVEAT EMPTOR:
8641 ## There is no encapsulation within the following macros, do not change
8642 ## the running order or otherwise move them around unless you know exactly
8643 ## what you are doing...
8644 if test -n "$compiler"; then
8646 lt_prog_compiler_no_builtin_flag=
8648 if test "$GCC" = yes; then
8649 case $cc_basename in
8650 nvcc*)
8651 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8653 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8654 esac
8656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8657 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8658 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8659 $as_echo_n "(cached) " >&6
8660 else
8661 lt_cv_prog_compiler_rtti_exceptions=no
8662 ac_outfile=conftest.$ac_objext
8663 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8664 lt_compiler_flag="-fno-rtti -fno-exceptions"
8665 # Insert the option either (1) after the last *FLAGS variable, or
8666 # (2) before a word containing "conftest.", or (3) at the end.
8667 # Note that $ac_compile itself does not contain backslashes and begins
8668 # with a dollar sign (not a hyphen), so the echo should work correctly.
8669 # The option is referenced via a variable to avoid confusing sed.
8670 lt_compile=`echo "$ac_compile" | $SED \
8671 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8672 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8673 -e 's:$: $lt_compiler_flag:'`
8674 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8675 (eval "$lt_compile" 2>conftest.err)
8676 ac_status=$?
8677 cat conftest.err >&5
8678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8679 if (exit $ac_status) && test -s "$ac_outfile"; then
8680 # The compiler can only warn and ignore the option if not recognized
8681 # So say no if there are warnings other than the usual output.
8682 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8683 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8684 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8685 lt_cv_prog_compiler_rtti_exceptions=yes
8688 $RM conftest*
8691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8692 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8694 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8695 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8696 else
8707 lt_prog_compiler_wl=
8708 lt_prog_compiler_pic=
8709 lt_prog_compiler_static=
8711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8712 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8714 if test "$GCC" = yes; then
8715 lt_prog_compiler_wl='-Wl,'
8716 lt_prog_compiler_static='-static'
8718 case $host_os in
8719 aix*)
8720 # All AIX code is PIC.
8721 if test "$host_cpu" = ia64; then
8722 # AIX 5 now supports IA64 processor
8723 lt_prog_compiler_static='-Bstatic'
8725 lt_prog_compiler_pic='-fPIC'
8728 amigaos*)
8729 case $host_cpu in
8730 powerpc)
8731 # see comment about AmigaOS4 .so support
8732 lt_prog_compiler_pic='-fPIC'
8734 m68k)
8735 # FIXME: we need at least 68020 code to build shared libraries, but
8736 # adding the `-m68020' flag to GCC prevents building anything better,
8737 # like `-m68040'.
8738 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8740 esac
8743 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8744 # PIC is the default for these OSes.
8747 mingw* | cygwin* | pw32* | os2* | cegcc*)
8748 # This hack is so that the source file can tell whether it is being
8749 # built for inclusion in a dll (and should export symbols for example).
8750 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8751 # (--disable-auto-import) libraries
8752 lt_prog_compiler_pic='-DDLL_EXPORT'
8755 darwin* | rhapsody*)
8756 # PIC is the default on this platform
8757 # Common symbols not allowed in MH_DYLIB files
8758 lt_prog_compiler_pic='-fno-common'
8761 haiku*)
8762 # PIC is the default for Haiku.
8763 # The "-static" flag exists, but is broken.
8764 lt_prog_compiler_static=
8767 hpux*)
8768 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8769 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8770 # sets the default TLS model and affects inlining.
8771 case $host_cpu in
8772 hppa*64*)
8773 # +Z the default
8776 lt_prog_compiler_pic='-fPIC'
8778 esac
8781 interix[3-9]*)
8782 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8783 # Instead, we relocate shared libraries at runtime.
8786 msdosdjgpp*)
8787 # Just because we use GCC doesn't mean we suddenly get shared libraries
8788 # on systems that don't support them.
8789 lt_prog_compiler_can_build_shared=no
8790 enable_shared=no
8793 *nto* | *qnx*)
8794 # QNX uses GNU C++, but need to define -shared option too, otherwise
8795 # it will coredump.
8796 lt_prog_compiler_pic='-fPIC -shared'
8799 sysv4*MP*)
8800 if test -d /usr/nec; then
8801 lt_prog_compiler_pic=-Kconform_pic
8806 lt_prog_compiler_pic='-fPIC'
8808 esac
8810 case $cc_basename in
8811 nvcc*) # Cuda Compiler Driver 2.2
8812 lt_prog_compiler_wl='-Xlinker '
8813 lt_prog_compiler_pic='-Xcompiler -fPIC'
8815 esac
8816 else
8817 # PORTME Check for flag to pass linker flags through the system compiler.
8818 case $host_os in
8819 aix*)
8820 lt_prog_compiler_wl='-Wl,'
8821 if test "$host_cpu" = ia64; then
8822 # AIX 5 now supports IA64 processor
8823 lt_prog_compiler_static='-Bstatic'
8824 else
8825 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8829 mingw* | cygwin* | pw32* | os2* | cegcc*)
8830 # This hack is so that the source file can tell whether it is being
8831 # built for inclusion in a dll (and should export symbols for example).
8832 lt_prog_compiler_pic='-DDLL_EXPORT'
8835 hpux9* | hpux10* | hpux11*)
8836 lt_prog_compiler_wl='-Wl,'
8837 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8838 # not for PA HP-UX.
8839 case $host_cpu in
8840 hppa*64*|ia64*)
8841 # +Z the default
8844 lt_prog_compiler_pic='+Z'
8846 esac
8847 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8848 lt_prog_compiler_static='${wl}-a ${wl}archive'
8851 irix5* | irix6* | nonstopux*)
8852 lt_prog_compiler_wl='-Wl,'
8853 # PIC (with -KPIC) is the default.
8854 lt_prog_compiler_static='-non_shared'
8857 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8858 case $cc_basename in
8859 # old Intel for x86_64 which still supported -KPIC.
8860 ecc*)
8861 lt_prog_compiler_wl='-Wl,'
8862 lt_prog_compiler_pic='-KPIC'
8863 lt_prog_compiler_static='-static'
8865 # icc used to be incompatible with GCC.
8866 # ICC 10 doesn't accept -KPIC any more.
8867 icc* | ifort*)
8868 lt_prog_compiler_wl='-Wl,'
8869 lt_prog_compiler_pic='-fPIC'
8870 lt_prog_compiler_static='-static'
8872 # Lahey Fortran 8.1.
8873 lf95*)
8874 lt_prog_compiler_wl='-Wl,'
8875 lt_prog_compiler_pic='--shared'
8876 lt_prog_compiler_static='--static'
8878 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8879 # Portland Group compilers (*not* the Pentium gcc compiler,
8880 # which looks to be a dead project)
8881 lt_prog_compiler_wl='-Wl,'
8882 lt_prog_compiler_pic='-fpic'
8883 lt_prog_compiler_static='-Bstatic'
8885 ccc*)
8886 lt_prog_compiler_wl='-Wl,'
8887 # All Alpha code is PIC.
8888 lt_prog_compiler_static='-non_shared'
8890 xl* | bgxl* | bgf* | mpixl*)
8891 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8892 lt_prog_compiler_wl='-Wl,'
8893 lt_prog_compiler_pic='-qpic'
8894 lt_prog_compiler_static='-qstaticlink'
8897 case `$CC -V 2>&1 | sed 5q` in
8898 *Sun\ F* | *Sun*Fortran*)
8899 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8900 lt_prog_compiler_pic='-KPIC'
8901 lt_prog_compiler_static='-Bstatic'
8902 lt_prog_compiler_wl=''
8904 *Sun\ C*)
8905 # Sun C 5.9
8906 lt_prog_compiler_pic='-KPIC'
8907 lt_prog_compiler_static='-Bstatic'
8908 lt_prog_compiler_wl='-Wl,'
8910 esac
8912 esac
8915 newsos6)
8916 lt_prog_compiler_pic='-KPIC'
8917 lt_prog_compiler_static='-Bstatic'
8920 *nto* | *qnx*)
8921 # QNX uses GNU C++, but need to define -shared option too, otherwise
8922 # it will coredump.
8923 lt_prog_compiler_pic='-fPIC -shared'
8926 osf3* | osf4* | osf5*)
8927 lt_prog_compiler_wl='-Wl,'
8928 # All OSF/1 code is PIC.
8929 lt_prog_compiler_static='-non_shared'
8932 rdos*)
8933 lt_prog_compiler_static='-non_shared'
8936 solaris*)
8937 lt_prog_compiler_pic='-KPIC'
8938 lt_prog_compiler_static='-Bstatic'
8939 case $cc_basename in
8940 f77* | f90* | f95*)
8941 lt_prog_compiler_wl='-Qoption ld ';;
8943 lt_prog_compiler_wl='-Wl,';;
8944 esac
8947 sunos4*)
8948 lt_prog_compiler_wl='-Qoption ld '
8949 lt_prog_compiler_pic='-PIC'
8950 lt_prog_compiler_static='-Bstatic'
8953 sysv4 | sysv4.2uw2* | sysv4.3*)
8954 lt_prog_compiler_wl='-Wl,'
8955 lt_prog_compiler_pic='-KPIC'
8956 lt_prog_compiler_static='-Bstatic'
8959 sysv4*MP*)
8960 if test -d /usr/nec ;then
8961 lt_prog_compiler_pic='-Kconform_pic'
8962 lt_prog_compiler_static='-Bstatic'
8966 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8967 lt_prog_compiler_wl='-Wl,'
8968 lt_prog_compiler_pic='-KPIC'
8969 lt_prog_compiler_static='-Bstatic'
8972 unicos*)
8973 lt_prog_compiler_wl='-Wl,'
8974 lt_prog_compiler_can_build_shared=no
8977 uts4*)
8978 lt_prog_compiler_pic='-pic'
8979 lt_prog_compiler_static='-Bstatic'
8983 lt_prog_compiler_can_build_shared=no
8985 esac
8988 case $host_os in
8989 # For platforms which do not support PIC, -DPIC is meaningless:
8990 *djgpp*)
8991 lt_prog_compiler_pic=
8994 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8996 esac
8997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8998 $as_echo "$lt_prog_compiler_pic" >&6; }
9006 # Check to make sure the PIC flag actually works.
9008 if test -n "$lt_prog_compiler_pic"; then
9009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9010 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9011 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9012 $as_echo_n "(cached) " >&6
9013 else
9014 lt_cv_prog_compiler_pic_works=no
9015 ac_outfile=conftest.$ac_objext
9016 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9017 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9018 # Insert the option either (1) after the last *FLAGS variable, or
9019 # (2) before a word containing "conftest.", or (3) at the end.
9020 # Note that $ac_compile itself does not contain backslashes and begins
9021 # with a dollar sign (not a hyphen), so the echo should work correctly.
9022 # The option is referenced via a variable to avoid confusing sed.
9023 lt_compile=`echo "$ac_compile" | $SED \
9024 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9025 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9026 -e 's:$: $lt_compiler_flag:'`
9027 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9028 (eval "$lt_compile" 2>conftest.err)
9029 ac_status=$?
9030 cat conftest.err >&5
9031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9032 if (exit $ac_status) && test -s "$ac_outfile"; then
9033 # The compiler can only warn and ignore the option if not recognized
9034 # So say no if there are warnings other than the usual output.
9035 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9036 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9037 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9038 lt_cv_prog_compiler_pic_works=yes
9041 $RM conftest*
9044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9045 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9047 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9048 case $lt_prog_compiler_pic in
9049 "" | " "*) ;;
9050 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9051 esac
9052 else
9053 lt_prog_compiler_pic=
9054 lt_prog_compiler_can_build_shared=no
9065 # Check to make sure the static flag actually works.
9067 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9069 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9070 if ${lt_cv_prog_compiler_static_works+:} false; then :
9071 $as_echo_n "(cached) " >&6
9072 else
9073 lt_cv_prog_compiler_static_works=no
9074 save_LDFLAGS="$LDFLAGS"
9075 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9076 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9077 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9078 # The linker can only warn and ignore the option if not recognized
9079 # So say no if there are warnings
9080 if test -s conftest.err; then
9081 # Append any errors to the config.log.
9082 cat conftest.err 1>&5
9083 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9084 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9085 if diff conftest.exp conftest.er2 >/dev/null; then
9086 lt_cv_prog_compiler_static_works=yes
9088 else
9089 lt_cv_prog_compiler_static_works=yes
9092 $RM -r conftest*
9093 LDFLAGS="$save_LDFLAGS"
9096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9097 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9099 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9101 else
9102 lt_prog_compiler_static=
9111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9112 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9113 if ${lt_cv_prog_compiler_c_o+:} false; then :
9114 $as_echo_n "(cached) " >&6
9115 else
9116 lt_cv_prog_compiler_c_o=no
9117 $RM -r conftest 2>/dev/null
9118 mkdir conftest
9119 cd conftest
9120 mkdir out
9121 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9123 lt_compiler_flag="-o out/conftest2.$ac_objext"
9124 # Insert the option either (1) after the last *FLAGS variable, or
9125 # (2) before a word containing "conftest.", or (3) at the end.
9126 # Note that $ac_compile itself does not contain backslashes and begins
9127 # with a dollar sign (not a hyphen), so the echo should work correctly.
9128 lt_compile=`echo "$ac_compile" | $SED \
9129 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9130 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9131 -e 's:$: $lt_compiler_flag:'`
9132 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9133 (eval "$lt_compile" 2>out/conftest.err)
9134 ac_status=$?
9135 cat out/conftest.err >&5
9136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9137 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9138 then
9139 # The compiler can only warn and ignore the option if not recognized
9140 # So say no if there are warnings
9141 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9142 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9143 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9144 lt_cv_prog_compiler_c_o=yes
9147 chmod u+w . 2>&5
9148 $RM conftest*
9149 # SGI C++ compiler will create directory out/ii_files/ for
9150 # template instantiation
9151 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9152 $RM out/* && rmdir out
9153 cd ..
9154 $RM -r conftest
9155 $RM conftest*
9158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9159 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9167 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9168 if ${lt_cv_prog_compiler_c_o+:} false; then :
9169 $as_echo_n "(cached) " >&6
9170 else
9171 lt_cv_prog_compiler_c_o=no
9172 $RM -r conftest 2>/dev/null
9173 mkdir conftest
9174 cd conftest
9175 mkdir out
9176 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9178 lt_compiler_flag="-o out/conftest2.$ac_objext"
9179 # Insert the option either (1) after the last *FLAGS variable, or
9180 # (2) before a word containing "conftest.", or (3) at the end.
9181 # Note that $ac_compile itself does not contain backslashes and begins
9182 # with a dollar sign (not a hyphen), so the echo should work correctly.
9183 lt_compile=`echo "$ac_compile" | $SED \
9184 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9185 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9186 -e 's:$: $lt_compiler_flag:'`
9187 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9188 (eval "$lt_compile" 2>out/conftest.err)
9189 ac_status=$?
9190 cat out/conftest.err >&5
9191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9192 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9193 then
9194 # The compiler can only warn and ignore the option if not recognized
9195 # So say no if there are warnings
9196 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9197 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9198 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9199 lt_cv_prog_compiler_c_o=yes
9202 chmod u+w . 2>&5
9203 $RM conftest*
9204 # SGI C++ compiler will create directory out/ii_files/ for
9205 # template instantiation
9206 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9207 $RM out/* && rmdir out
9208 cd ..
9209 $RM -r conftest
9210 $RM conftest*
9213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9214 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9219 hard_links="nottested"
9220 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9221 # do not overwrite the value of need_locks provided by the user
9222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9223 $as_echo_n "checking if we can lock with hard links... " >&6; }
9224 hard_links=yes
9225 $RM conftest*
9226 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9227 touch conftest.a
9228 ln conftest.a conftest.b 2>&5 || hard_links=no
9229 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9231 $as_echo "$hard_links" >&6; }
9232 if test "$hard_links" = no; then
9233 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9234 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9235 need_locks=warn
9237 else
9238 need_locks=no
9246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9247 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9249 runpath_var=
9250 allow_undefined_flag=
9251 always_export_symbols=no
9252 archive_cmds=
9253 archive_expsym_cmds=
9254 compiler_needs_object=no
9255 enable_shared_with_static_runtimes=no
9256 export_dynamic_flag_spec=
9257 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9258 hardcode_automatic=no
9259 hardcode_direct=no
9260 hardcode_direct_absolute=no
9261 hardcode_libdir_flag_spec=
9262 hardcode_libdir_flag_spec_ld=
9263 hardcode_libdir_separator=
9264 hardcode_minus_L=no
9265 hardcode_shlibpath_var=unsupported
9266 inherit_rpath=no
9267 link_all_deplibs=unknown
9268 module_cmds=
9269 module_expsym_cmds=
9270 old_archive_from_new_cmds=
9271 old_archive_from_expsyms_cmds=
9272 thread_safe_flag_spec=
9273 whole_archive_flag_spec=
9274 # include_expsyms should be a list of space-separated symbols to be *always*
9275 # included in the symbol list
9276 include_expsyms=
9277 # exclude_expsyms can be an extended regexp of symbols to exclude
9278 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9279 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9280 # as well as any symbol that contains `d'.
9281 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9282 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9283 # platforms (ab)use it in PIC code, but their linkers get confused if
9284 # the symbol is explicitly referenced. Since portable code cannot
9285 # rely on this symbol name, it's probably fine to never include it in
9286 # preloaded symbol tables.
9287 # Exclude shared library initialization/finalization symbols.
9288 extract_expsyms_cmds=
9290 case $host_os in
9291 cygwin* | mingw* | pw32* | cegcc*)
9292 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9293 # When not using gcc, we currently assume that we are using
9294 # Microsoft Visual C++.
9295 if test "$GCC" != yes; then
9296 with_gnu_ld=no
9299 interix*)
9300 # we just hope/assume this is gcc and not c89 (= MSVC++)
9301 with_gnu_ld=yes
9303 openbsd*)
9304 with_gnu_ld=no
9306 esac
9308 ld_shlibs=yes
9310 # On some targets, GNU ld is compatible enough with the native linker
9311 # that we're better off using the native interface for both.
9312 lt_use_gnu_ld_interface=no
9313 if test "$with_gnu_ld" = yes; then
9314 case $host_os in
9315 aix*)
9316 # The AIX port of GNU ld has always aspired to compatibility
9317 # with the native linker. However, as the warning in the GNU ld
9318 # block says, versions before 2.19.5* couldn't really create working
9319 # shared libraries, regardless of the interface used.
9320 case `$LD -v 2>&1` in
9321 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9322 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9323 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9325 lt_use_gnu_ld_interface=yes
9327 esac
9330 lt_use_gnu_ld_interface=yes
9332 esac
9335 if test "$lt_use_gnu_ld_interface" = yes; then
9336 # If archive_cmds runs LD, not CC, wlarc should be empty
9337 wlarc='${wl}'
9339 # Set some defaults for GNU ld with shared library support. These
9340 # are reset later if shared libraries are not supported. Putting them
9341 # here allows them to be overridden if necessary.
9342 runpath_var=LD_RUN_PATH
9343 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9344 export_dynamic_flag_spec='${wl}--export-dynamic'
9345 # ancient GNU ld didn't support --whole-archive et. al.
9346 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9347 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9348 else
9349 whole_archive_flag_spec=
9351 supports_anon_versioning=no
9352 case `$LD -v 2>&1` in
9353 *GNU\ gold*) supports_anon_versioning=yes ;;
9354 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9355 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9356 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9357 *\ 2.11.*) ;; # other 2.11 versions
9358 *) supports_anon_versioning=yes ;;
9359 esac
9361 # See if GNU ld supports shared libraries.
9362 case $host_os in
9363 aix[3-9]*)
9364 # On AIX/PPC, the GNU linker is very broken
9365 if test "$host_cpu" != ia64; then
9366 ld_shlibs=no
9367 cat <<_LT_EOF 1>&2
9369 *** Warning: the GNU linker, at least up to release 2.19, is reported
9370 *** to be unable to reliably create shared libraries on AIX.
9371 *** Therefore, libtool is disabling shared libraries support. If you
9372 *** really care for shared libraries, you may want to install binutils
9373 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9374 *** You will then need to restart the configuration process.
9376 _LT_EOF
9380 amigaos*)
9381 case $host_cpu in
9382 powerpc)
9383 # see comment about AmigaOS4 .so support
9384 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9385 archive_expsym_cmds=''
9387 m68k)
9388 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)'
9389 hardcode_libdir_flag_spec='-L$libdir'
9390 hardcode_minus_L=yes
9392 esac
9395 beos*)
9396 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9397 allow_undefined_flag=unsupported
9398 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9399 # support --undefined. This deserves some investigation. FIXME
9400 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9401 else
9402 ld_shlibs=no
9406 cygwin* | mingw* | pw32* | cegcc*)
9407 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9408 # as there is no search path for DLLs.
9409 hardcode_libdir_flag_spec='-L$libdir'
9410 export_dynamic_flag_spec='${wl}--export-all-symbols'
9411 allow_undefined_flag=unsupported
9412 always_export_symbols=no
9413 enable_shared_with_static_runtimes=yes
9414 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9416 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9417 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9418 # If the export-symbols file already is a .def file (1st line
9419 # is EXPORTS), use it as is; otherwise, prepend...
9420 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9421 cp $export_symbols $output_objdir/$soname.def;
9422 else
9423 echo EXPORTS > $output_objdir/$soname.def;
9424 cat $export_symbols >> $output_objdir/$soname.def;
9426 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9427 else
9428 ld_shlibs=no
9432 haiku*)
9433 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9434 link_all_deplibs=yes
9437 interix[3-9]*)
9438 hardcode_direct=no
9439 hardcode_shlibpath_var=no
9440 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9441 export_dynamic_flag_spec='${wl}-E'
9442 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9443 # Instead, shared libraries are loaded at an image base (0x10000000 by
9444 # default) and relocated if they conflict, which is a slow very memory
9445 # consuming and fragmenting process. To avoid this, we pick a random,
9446 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9447 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9448 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9449 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'
9452 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
9453 tmp_diet=no
9454 if test "$host_os" = linux-dietlibc; then
9455 case $cc_basename in
9456 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9457 esac
9459 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9460 && test "$tmp_diet" = no
9461 then
9462 tmp_addflag=' $pic_flag'
9463 tmp_sharedflag='-shared'
9464 case $cc_basename,$host_cpu in
9465 pgcc*) # Portland Group C compiler
9466 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'
9467 tmp_addflag=' $pic_flag'
9469 pgf77* | pgf90* | pgf95* | pgfortran*)
9470 # Portland Group f77 and f90 compilers
9471 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'
9472 tmp_addflag=' $pic_flag -Mnomain' ;;
9473 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9474 tmp_addflag=' -i_dynamic' ;;
9475 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9476 tmp_addflag=' -i_dynamic -nofor_main' ;;
9477 ifc* | ifort*) # Intel Fortran compiler
9478 tmp_addflag=' -nofor_main' ;;
9479 lf95*) # Lahey Fortran 8.1
9480 whole_archive_flag_spec=
9481 tmp_sharedflag='--shared' ;;
9482 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9483 tmp_sharedflag='-qmkshrobj'
9484 tmp_addflag= ;;
9485 nvcc*) # Cuda Compiler Driver 2.2
9486 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'
9487 compiler_needs_object=yes
9489 esac
9490 case `$CC -V 2>&1 | sed 5q` in
9491 *Sun\ C*) # Sun C 5.9
9492 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'
9493 compiler_needs_object=yes
9494 tmp_sharedflag='-G' ;;
9495 *Sun\ F*) # Sun Fortran 8.3
9496 tmp_sharedflag='-G' ;;
9497 esac
9498 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9500 if test "x$supports_anon_versioning" = xyes; then
9501 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9502 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9503 echo "local: *; };" >> $output_objdir/$libname.ver~
9504 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9507 case $cc_basename in
9508 xlf* | bgf* | bgxlf* | mpixlf*)
9509 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9510 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9511 hardcode_libdir_flag_spec=
9512 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9513 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9514 if test "x$supports_anon_versioning" = xyes; then
9515 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9516 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9517 echo "local: *; };" >> $output_objdir/$libname.ver~
9518 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9521 esac
9522 else
9523 ld_shlibs=no
9527 netbsd*)
9528 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9529 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9530 wlarc=
9531 else
9532 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9533 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9537 solaris*)
9538 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9539 ld_shlibs=no
9540 cat <<_LT_EOF 1>&2
9542 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9543 *** create shared libraries on Solaris systems. Therefore, libtool
9544 *** is disabling shared libraries support. We urge you to upgrade GNU
9545 *** binutils to release 2.9.1 or newer. Another option is to modify
9546 *** your PATH or compiler configuration so that the native linker is
9547 *** used, and then restart.
9549 _LT_EOF
9550 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9551 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9552 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9553 else
9554 ld_shlibs=no
9558 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9559 case `$LD -v 2>&1` in
9560 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9561 ld_shlibs=no
9562 cat <<_LT_EOF 1>&2
9564 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9565 *** reliably create shared libraries on SCO systems. Therefore, libtool
9566 *** is disabling shared libraries support. We urge you to upgrade GNU
9567 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9568 *** your PATH or compiler configuration so that the native linker is
9569 *** used, and then restart.
9571 _LT_EOF
9574 # For security reasons, it is highly recommended that you always
9575 # use absolute paths for naming shared libraries, and exclude the
9576 # DT_RUNPATH tag from executables and libraries. But doing so
9577 # requires that you compile everything twice, which is a pain.
9578 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9579 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9580 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9581 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9582 else
9583 ld_shlibs=no
9586 esac
9589 sunos4*)
9590 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9591 wlarc=
9592 hardcode_direct=yes
9593 hardcode_shlibpath_var=no
9597 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9598 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9599 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9600 else
9601 ld_shlibs=no
9604 esac
9606 if test "$ld_shlibs" = no; then
9607 runpath_var=
9608 hardcode_libdir_flag_spec=
9609 export_dynamic_flag_spec=
9610 whole_archive_flag_spec=
9612 else
9613 # PORTME fill in a description of your system's linker (not GNU ld)
9614 case $host_os in
9615 aix3*)
9616 allow_undefined_flag=unsupported
9617 always_export_symbols=yes
9618 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'
9619 # Note: this linker hardcodes the directories in LIBPATH if there
9620 # are no directories specified by -L.
9621 hardcode_minus_L=yes
9622 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9623 # Neither direct hardcoding nor static linking is supported with a
9624 # broken collect2.
9625 hardcode_direct=unsupported
9629 aix[4-9]*)
9630 if test "$host_cpu" = ia64; then
9631 # On IA64, the linker does run time linking by default, so we don't
9632 # have to do anything special.
9633 aix_use_runtimelinking=no
9634 exp_sym_flag='-Bexport'
9635 no_entry_flag=""
9636 else
9637 # If we're using GNU nm, then we don't want the "-C" option.
9638 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9639 # Also, AIX nm treats weak defined symbols like other global
9640 # defined symbols, whereas GNU nm marks them as "W".
9641 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9642 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'
9643 else
9644 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'
9646 aix_use_runtimelinking=no
9648 # Test if we are trying to use run time linking or normal
9649 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9650 # need to do runtime linking.
9651 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9652 for ld_flag in $LDFLAGS; do
9653 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9654 aix_use_runtimelinking=yes
9655 break
9657 done
9659 esac
9661 exp_sym_flag='-bexport'
9662 no_entry_flag='-bnoentry'
9665 # When large executables or shared objects are built, AIX ld can
9666 # have problems creating the table of contents. If linking a library
9667 # or program results in "error TOC overflow" add -mminimal-toc to
9668 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9669 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9671 archive_cmds=''
9672 hardcode_direct=yes
9673 hardcode_direct_absolute=yes
9674 hardcode_libdir_separator=':'
9675 link_all_deplibs=yes
9676 file_list_spec='${wl}-f,'
9678 if test "$GCC" = yes; then
9679 case $host_os in aix4.[012]|aix4.[012].*)
9680 # We only want to do this on AIX 4.2 and lower, the check
9681 # below for broken collect2 doesn't work under 4.3+
9682 collect2name=`${CC} -print-prog-name=collect2`
9683 if test -f "$collect2name" &&
9684 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9685 then
9686 # We have reworked collect2
9688 else
9689 # We have old collect2
9690 hardcode_direct=unsupported
9691 # It fails to find uninstalled libraries when the uninstalled
9692 # path is not listed in the libpath. Setting hardcode_minus_L
9693 # to unsupported forces relinking
9694 hardcode_minus_L=yes
9695 hardcode_libdir_flag_spec='-L$libdir'
9696 hardcode_libdir_separator=
9699 esac
9700 shared_flag='-shared'
9701 if test "$aix_use_runtimelinking" = yes; then
9702 shared_flag="$shared_flag "'${wl}-G'
9704 else
9705 # not using gcc
9706 if test "$host_cpu" = ia64; then
9707 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9708 # chokes on -Wl,-G. The following line is correct:
9709 shared_flag='-G'
9710 else
9711 if test "$aix_use_runtimelinking" = yes; then
9712 shared_flag='${wl}-G'
9713 else
9714 shared_flag='${wl}-bM:SRE'
9719 export_dynamic_flag_spec='${wl}-bexpall'
9720 # It seems that -bexpall does not export symbols beginning with
9721 # underscore (_), so it is better to generate a list of symbols to export.
9722 always_export_symbols=yes
9723 if test "$aix_use_runtimelinking" = yes; then
9724 # Warning - without using the other runtime loading flags (-brtl),
9725 # -berok will link without error, but may produce a broken library.
9726 allow_undefined_flag='-berok'
9727 # Determine the default libpath from the value encoded in an
9728 # empty executable.
9729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9730 /* end confdefs.h. */
9733 main ()
9737 return 0;
9739 _ACEOF
9740 if ac_fn_c_try_link "$LINENO"; then :
9742 lt_aix_libpath_sed='
9743 /Import File Strings/,/^$/ {
9744 /^0/ {
9745 s/^0 *\(.*\)$/\1/
9749 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9750 # Check for a 64-bit object if we didn't find anything.
9751 if test -z "$aix_libpath"; then
9752 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9755 rm -f core conftest.err conftest.$ac_objext \
9756 conftest$ac_exeext conftest.$ac_ext
9757 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9759 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9760 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"
9761 else
9762 if test "$host_cpu" = ia64; then
9763 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9764 allow_undefined_flag="-z nodefs"
9765 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"
9766 else
9767 # Determine the default libpath from the value encoded in an
9768 # empty executable.
9769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9770 /* end confdefs.h. */
9773 main ()
9777 return 0;
9779 _ACEOF
9780 if ac_fn_c_try_link "$LINENO"; then :
9782 lt_aix_libpath_sed='
9783 /Import File Strings/,/^$/ {
9784 /^0/ {
9785 s/^0 *\(.*\)$/\1/
9789 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9790 # Check for a 64-bit object if we didn't find anything.
9791 if test -z "$aix_libpath"; then
9792 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9795 rm -f core conftest.err conftest.$ac_objext \
9796 conftest$ac_exeext conftest.$ac_ext
9797 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9799 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9800 # Warning - without using the other run time loading flags,
9801 # -berok will link without error, but may produce a broken library.
9802 no_undefined_flag=' ${wl}-bernotok'
9803 allow_undefined_flag=' ${wl}-berok'
9804 if test "$with_gnu_ld" = yes; then
9805 # We only use this code for GNU lds that support --whole-archive.
9806 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9807 else
9808 # Exported symbols can be pulled into shared objects from archives
9809 whole_archive_flag_spec='$convenience'
9811 archive_cmds_need_lc=yes
9812 # This is similar to how AIX traditionally builds its shared libraries.
9813 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'
9818 amigaos*)
9819 case $host_cpu in
9820 powerpc)
9821 # see comment about AmigaOS4 .so support
9822 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9823 archive_expsym_cmds=''
9825 m68k)
9826 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)'
9827 hardcode_libdir_flag_spec='-L$libdir'
9828 hardcode_minus_L=yes
9830 esac
9833 bsdi[45]*)
9834 export_dynamic_flag_spec=-rdynamic
9837 cygwin* | mingw* | pw32* | cegcc*)
9838 # When not using gcc, we currently assume that we are using
9839 # Microsoft Visual C++.
9840 # hardcode_libdir_flag_spec is actually meaningless, as there is
9841 # no search path for DLLs.
9842 hardcode_libdir_flag_spec=' '
9843 allow_undefined_flag=unsupported
9844 # Tell ltmain to make .lib files, not .a files.
9845 libext=lib
9846 # Tell ltmain to make .dll files, not .so files.
9847 shrext_cmds=".dll"
9848 # FIXME: Setting linknames here is a bad hack.
9849 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9850 # The linker will automatically build a .lib file if we build a DLL.
9851 old_archive_from_new_cmds='true'
9852 # FIXME: Should let the user specify the lib program.
9853 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9854 fix_srcfile_path='`cygpath -w "$srcfile"`'
9855 enable_shared_with_static_runtimes=yes
9858 darwin* | rhapsody*)
9861 archive_cmds_need_lc=no
9862 hardcode_direct=no
9863 hardcode_automatic=yes
9864 hardcode_shlibpath_var=unsupported
9865 if test "$lt_cv_ld_force_load" = "yes"; then
9866 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\"`'
9867 else
9868 whole_archive_flag_spec=''
9870 link_all_deplibs=yes
9871 allow_undefined_flag="$_lt_dar_allow_undefined"
9872 case $cc_basename in
9873 ifort*) _lt_dar_can_shared=yes ;;
9874 *) _lt_dar_can_shared=$GCC ;;
9875 esac
9876 if test "$_lt_dar_can_shared" = "yes"; then
9877 output_verbose_link_cmd=func_echo_all
9878 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9879 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9880 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}"
9881 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}"
9883 else
9884 ld_shlibs=no
9889 dgux*)
9890 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9891 hardcode_libdir_flag_spec='-L$libdir'
9892 hardcode_shlibpath_var=no
9895 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9896 # support. Future versions do this automatically, but an explicit c++rt0.o
9897 # does not break anything, and helps significantly (at the cost of a little
9898 # extra space).
9899 freebsd2.2*)
9900 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9901 hardcode_libdir_flag_spec='-R$libdir'
9902 hardcode_direct=yes
9903 hardcode_shlibpath_var=no
9906 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9907 freebsd2.*)
9908 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9909 hardcode_direct=yes
9910 hardcode_minus_L=yes
9911 hardcode_shlibpath_var=no
9914 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9915 freebsd* | dragonfly*)
9916 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9917 hardcode_libdir_flag_spec='-R$libdir'
9918 hardcode_direct=yes
9919 hardcode_shlibpath_var=no
9922 hpux9*)
9923 if test "$GCC" = yes; then
9924 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'
9925 else
9926 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'
9928 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9929 hardcode_libdir_separator=:
9930 hardcode_direct=yes
9932 # hardcode_minus_L: Not really in the search PATH,
9933 # but as the default location of the library.
9934 hardcode_minus_L=yes
9935 export_dynamic_flag_spec='${wl}-E'
9938 hpux10*)
9939 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9940 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9941 else
9942 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9944 if test "$with_gnu_ld" = no; then
9945 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9946 hardcode_libdir_flag_spec_ld='+b $libdir'
9947 hardcode_libdir_separator=:
9948 hardcode_direct=yes
9949 hardcode_direct_absolute=yes
9950 export_dynamic_flag_spec='${wl}-E'
9951 # hardcode_minus_L: Not really in the search PATH,
9952 # but as the default location of the library.
9953 hardcode_minus_L=yes
9957 hpux11*)
9958 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9959 case $host_cpu in
9960 hppa*64*)
9961 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9963 ia64*)
9964 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9967 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9969 esac
9970 else
9971 case $host_cpu in
9972 hppa*64*)
9973 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9975 ia64*)
9976 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9980 # Older versions of the 11.00 compiler do not understand -b yet
9981 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9983 $as_echo_n "checking if $CC understands -b... " >&6; }
9984 if ${lt_cv_prog_compiler__b+:} false; then :
9985 $as_echo_n "(cached) " >&6
9986 else
9987 lt_cv_prog_compiler__b=no
9988 save_LDFLAGS="$LDFLAGS"
9989 LDFLAGS="$LDFLAGS -b"
9990 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9991 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9992 # The linker can only warn and ignore the option if not recognized
9993 # So say no if there are warnings
9994 if test -s conftest.err; then
9995 # Append any errors to the config.log.
9996 cat conftest.err 1>&5
9997 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9998 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9999 if diff conftest.exp conftest.er2 >/dev/null; then
10000 lt_cv_prog_compiler__b=yes
10002 else
10003 lt_cv_prog_compiler__b=yes
10006 $RM -r conftest*
10007 LDFLAGS="$save_LDFLAGS"
10010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10011 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10013 if test x"$lt_cv_prog_compiler__b" = xyes; then
10014 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10015 else
10016 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10020 esac
10022 if test "$with_gnu_ld" = no; then
10023 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10024 hardcode_libdir_separator=:
10026 case $host_cpu in
10027 hppa*64*|ia64*)
10028 hardcode_direct=no
10029 hardcode_shlibpath_var=no
10032 hardcode_direct=yes
10033 hardcode_direct_absolute=yes
10034 export_dynamic_flag_spec='${wl}-E'
10036 # hardcode_minus_L: Not really in the search PATH,
10037 # but as the default location of the library.
10038 hardcode_minus_L=yes
10040 esac
10044 irix5* | irix6* | nonstopux*)
10045 if test "$GCC" = yes; then
10046 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'
10047 # Try to use the -exported_symbol ld option, if it does not
10048 # work, assume that -exports_file does not work either and
10049 # implicitly export all symbols.
10050 save_LDFLAGS="$LDFLAGS"
10051 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10053 /* end confdefs.h. */
10054 int foo(void) {}
10055 _ACEOF
10056 if ac_fn_c_try_link "$LINENO"; then :
10057 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'
10060 rm -f core conftest.err conftest.$ac_objext \
10061 conftest$ac_exeext conftest.$ac_ext
10062 LDFLAGS="$save_LDFLAGS"
10063 else
10064 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'
10065 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'
10067 archive_cmds_need_lc='no'
10068 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10069 hardcode_libdir_separator=:
10070 inherit_rpath=yes
10071 link_all_deplibs=yes
10074 netbsd*)
10075 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10076 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10077 else
10078 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10080 hardcode_libdir_flag_spec='-R$libdir'
10081 hardcode_direct=yes
10082 hardcode_shlibpath_var=no
10085 newsos6)
10086 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10087 hardcode_direct=yes
10088 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10089 hardcode_libdir_separator=:
10090 hardcode_shlibpath_var=no
10093 *nto* | *qnx*)
10096 openbsd*)
10097 if test -f /usr/libexec/ld.so; then
10098 hardcode_direct=yes
10099 hardcode_shlibpath_var=no
10100 hardcode_direct_absolute=yes
10101 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10102 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10103 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10104 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10105 export_dynamic_flag_spec='${wl}-E'
10106 else
10107 case $host_os in
10108 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10109 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10110 hardcode_libdir_flag_spec='-R$libdir'
10113 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10114 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10116 esac
10118 else
10119 ld_shlibs=no
10123 os2*)
10124 hardcode_libdir_flag_spec='-L$libdir'
10125 hardcode_minus_L=yes
10126 allow_undefined_flag=unsupported
10127 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'
10128 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10131 osf3*)
10132 if test "$GCC" = yes; then
10133 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10134 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'
10135 else
10136 allow_undefined_flag=' -expect_unresolved \*'
10137 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'
10139 archive_cmds_need_lc='no'
10140 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10141 hardcode_libdir_separator=:
10144 osf4* | osf5*) # as osf3* with the addition of -msym flag
10145 if test "$GCC" = yes; then
10146 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10147 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'
10148 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10149 else
10150 allow_undefined_flag=' -expect_unresolved \*'
10151 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'
10152 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~
10153 $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'
10155 # Both c and cxx compiler support -rpath directly
10156 hardcode_libdir_flag_spec='-rpath $libdir'
10158 archive_cmds_need_lc='no'
10159 hardcode_libdir_separator=:
10162 solaris*)
10163 no_undefined_flag=' -z defs'
10164 if test "$GCC" = yes; then
10165 wlarc='${wl}'
10166 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10167 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10168 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10169 else
10170 case `$CC -V 2>&1` in
10171 *"Compilers 5.0"*)
10172 wlarc=''
10173 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10174 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10175 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10178 wlarc='${wl}'
10179 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10180 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10181 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10183 esac
10185 hardcode_libdir_flag_spec='-R$libdir'
10186 hardcode_shlibpath_var=no
10187 case $host_os in
10188 solaris2.[0-5] | solaris2.[0-5].*) ;;
10190 # The compiler driver will combine and reorder linker options,
10191 # but understands `-z linker_flag'. GCC discards it without `$wl',
10192 # but is careful enough not to reorder.
10193 # Supported since Solaris 2.6 (maybe 2.5.1?)
10194 if test "$GCC" = yes; then
10195 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10196 else
10197 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10200 esac
10201 link_all_deplibs=yes
10204 sunos4*)
10205 if test "x$host_vendor" = xsequent; then
10206 # Use $CC to link under sequent, because it throws in some extra .o
10207 # files that make .init and .fini sections work.
10208 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10209 else
10210 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10212 hardcode_libdir_flag_spec='-L$libdir'
10213 hardcode_direct=yes
10214 hardcode_minus_L=yes
10215 hardcode_shlibpath_var=no
10218 sysv4)
10219 case $host_vendor in
10220 sni)
10221 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10222 hardcode_direct=yes # is this really true???
10224 siemens)
10225 ## LD is ld it makes a PLAMLIB
10226 ## CC just makes a GrossModule.
10227 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10228 reload_cmds='$CC -r -o $output$reload_objs'
10229 hardcode_direct=no
10231 motorola)
10232 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10233 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10235 esac
10236 runpath_var='LD_RUN_PATH'
10237 hardcode_shlibpath_var=no
10240 sysv4.3*)
10241 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10242 hardcode_shlibpath_var=no
10243 export_dynamic_flag_spec='-Bexport'
10246 sysv4*MP*)
10247 if test -d /usr/nec; then
10248 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10249 hardcode_shlibpath_var=no
10250 runpath_var=LD_RUN_PATH
10251 hardcode_runpath_var=yes
10252 ld_shlibs=yes
10256 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10257 no_undefined_flag='${wl}-z,text'
10258 archive_cmds_need_lc=no
10259 hardcode_shlibpath_var=no
10260 runpath_var='LD_RUN_PATH'
10262 if test "$GCC" = yes; then
10263 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10264 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10265 else
10266 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10267 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10271 sysv5* | sco3.2v5* | sco5v6*)
10272 # Note: We can NOT use -z defs as we might desire, because we do not
10273 # link with -lc, and that would cause any symbols used from libc to
10274 # always be unresolved, which means just about no library would
10275 # ever link correctly. If we're not using GNU ld we use -z text
10276 # though, which does catch some bad symbols but isn't as heavy-handed
10277 # as -z defs.
10278 no_undefined_flag='${wl}-z,text'
10279 allow_undefined_flag='${wl}-z,nodefs'
10280 archive_cmds_need_lc=no
10281 hardcode_shlibpath_var=no
10282 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10283 hardcode_libdir_separator=':'
10284 link_all_deplibs=yes
10285 export_dynamic_flag_spec='${wl}-Bexport'
10286 runpath_var='LD_RUN_PATH'
10288 if test "$GCC" = yes; then
10289 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10290 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10291 else
10292 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10293 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10297 uts4*)
10298 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10299 hardcode_libdir_flag_spec='-L$libdir'
10300 hardcode_shlibpath_var=no
10304 ld_shlibs=no
10306 esac
10308 if test x$host_vendor = xsni; then
10309 case $host in
10310 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10311 export_dynamic_flag_spec='${wl}-Blargedynsym'
10313 esac
10317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10318 $as_echo "$ld_shlibs" >&6; }
10319 test "$ld_shlibs" = no && can_build_shared=no
10321 with_gnu_ld=$with_gnu_ld
10338 # Do we need to explicitly link libc?
10340 case "x$archive_cmds_need_lc" in
10341 x|xyes)
10342 # Assume -lc should be added
10343 archive_cmds_need_lc=yes
10345 if test "$enable_shared" = yes && test "$GCC" = yes; then
10346 case $archive_cmds in
10347 *'~'*)
10348 # FIXME: we may have to deal with multi-command sequences.
10350 '$CC '*)
10351 # Test whether the compiler implicitly links with -lc since on some
10352 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10353 # to ld, don't add -lc before -lgcc.
10354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10355 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10356 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10357 $as_echo_n "(cached) " >&6
10358 else
10359 $RM conftest*
10360 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10362 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10363 (eval $ac_compile) 2>&5
10364 ac_status=$?
10365 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10366 test $ac_status = 0; } 2>conftest.err; then
10367 soname=conftest
10368 lib=conftest
10369 libobjs=conftest.$ac_objext
10370 deplibs=
10371 wl=$lt_prog_compiler_wl
10372 pic_flag=$lt_prog_compiler_pic
10373 compiler_flags=-v
10374 linker_flags=-v
10375 verstring=
10376 output_objdir=.
10377 libname=conftest
10378 lt_save_allow_undefined_flag=$allow_undefined_flag
10379 allow_undefined_flag=
10380 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10381 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10382 ac_status=$?
10383 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10384 test $ac_status = 0; }
10385 then
10386 lt_cv_archive_cmds_need_lc=no
10387 else
10388 lt_cv_archive_cmds_need_lc=yes
10390 allow_undefined_flag=$lt_save_allow_undefined_flag
10391 else
10392 cat conftest.err 1>&5
10394 $RM conftest*
10397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10398 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10399 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10401 esac
10404 esac
10562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10563 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10565 if test "$GCC" = yes; then
10566 case $host_os in
10567 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10568 *) lt_awk_arg="/^libraries:/" ;;
10569 esac
10570 case $host_os in
10571 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10572 *) lt_sed_strip_eq="s,=/,/,g" ;;
10573 esac
10574 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10575 case $lt_search_path_spec in
10576 *\;*)
10577 # if the path contains ";" then we assume it to be the separator
10578 # otherwise default to the standard path separator (i.e. ":") - it is
10579 # assumed that no part of a normal pathname contains ";" but that should
10580 # okay in the real world where ";" in dirpaths is itself problematic.
10581 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10584 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10586 esac
10587 # Ok, now we have the path, separated by spaces, we can step through it
10588 # and add multilib dir if necessary.
10589 lt_tmp_lt_search_path_spec=
10590 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10591 for lt_sys_path in $lt_search_path_spec; do
10592 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10593 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10594 else
10595 test -d "$lt_sys_path" && \
10596 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10598 done
10599 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10600 BEGIN {RS=" "; FS="/|\n";} {
10601 lt_foo="";
10602 lt_count=0;
10603 for (lt_i = NF; lt_i > 0; lt_i--) {
10604 if ($lt_i != "" && $lt_i != ".") {
10605 if ($lt_i == "..") {
10606 lt_count++;
10607 } else {
10608 if (lt_count == 0) {
10609 lt_foo="/" $lt_i lt_foo;
10610 } else {
10611 lt_count--;
10616 if (lt_foo != "") { lt_freq[lt_foo]++; }
10617 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10619 # AWK program above erroneously prepends '/' to C:/dos/paths
10620 # for these hosts.
10621 case $host_os in
10622 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10623 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10624 esac
10625 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10626 else
10627 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10629 library_names_spec=
10630 libname_spec='lib$name'
10631 soname_spec=
10632 shrext_cmds=".so"
10633 postinstall_cmds=
10634 postuninstall_cmds=
10635 finish_cmds=
10636 finish_eval=
10637 shlibpath_var=
10638 shlibpath_overrides_runpath=unknown
10639 version_type=none
10640 dynamic_linker="$host_os ld.so"
10641 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10642 need_lib_prefix=unknown
10643 hardcode_into_libs=no
10645 # when you set need_version to no, make sure it does not cause -set_version
10646 # flags to be left without arguments
10647 need_version=unknown
10649 case $host_os in
10650 aix3*)
10651 version_type=linux
10652 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10653 shlibpath_var=LIBPATH
10655 # AIX 3 has no versioning support, so we append a major version to the name.
10656 soname_spec='${libname}${release}${shared_ext}$major'
10659 aix[4-9]*)
10660 version_type=linux
10661 need_lib_prefix=no
10662 need_version=no
10663 hardcode_into_libs=yes
10664 if test "$host_cpu" = ia64; then
10665 # AIX 5 supports IA64
10666 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10667 shlibpath_var=LD_LIBRARY_PATH
10668 else
10669 # With GCC up to 2.95.x, collect2 would create an import file
10670 # for dependence libraries. The import file would start with
10671 # the line `#! .'. This would cause the generated library to
10672 # depend on `.', always an invalid library. This was fixed in
10673 # development snapshots of GCC prior to 3.0.
10674 case $host_os in
10675 aix4 | aix4.[01] | aix4.[01].*)
10676 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10677 echo ' yes '
10678 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10680 else
10681 can_build_shared=no
10684 esac
10685 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10686 # soname into executable. Probably we can add versioning support to
10687 # collect2, so additional links can be useful in future.
10688 if test "$aix_use_runtimelinking" = yes; then
10689 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10690 # instead of lib<name>.a to let people know that these are not
10691 # typical AIX shared libraries.
10692 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10693 else
10694 # We preserve .a as extension for shared libraries through AIX4.2
10695 # and later when we are not doing run time linking.
10696 library_names_spec='${libname}${release}.a $libname.a'
10697 soname_spec='${libname}${release}${shared_ext}$major'
10699 shlibpath_var=LIBPATH
10703 amigaos*)
10704 case $host_cpu in
10705 powerpc)
10706 # Since July 2007 AmigaOS4 officially supports .so libraries.
10707 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10708 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10710 m68k)
10711 library_names_spec='$libname.ixlibrary $libname.a'
10712 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10713 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'
10715 esac
10718 beos*)
10719 library_names_spec='${libname}${shared_ext}'
10720 dynamic_linker="$host_os ld.so"
10721 shlibpath_var=LIBRARY_PATH
10724 bsdi[45]*)
10725 version_type=linux
10726 need_version=no
10727 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10728 soname_spec='${libname}${release}${shared_ext}$major'
10729 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10730 shlibpath_var=LD_LIBRARY_PATH
10731 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10732 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10733 # the default ld.so.conf also contains /usr/contrib/lib and
10734 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10735 # libtool to hard-code these into programs
10738 cygwin* | mingw* | pw32* | cegcc*)
10739 version_type=windows
10740 shrext_cmds=".dll"
10741 need_version=no
10742 need_lib_prefix=no
10744 case $GCC,$host_os in
10745 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10746 library_names_spec='$libname.dll.a'
10747 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10748 postinstall_cmds='base_file=`basename \${file}`~
10749 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10750 dldir=$destdir/`dirname \$dlpath`~
10751 test -d \$dldir || mkdir -p \$dldir~
10752 $install_prog $dir/$dlname \$dldir/$dlname~
10753 chmod a+x \$dldir/$dlname~
10754 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10755 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10757 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10758 dlpath=$dir/\$dldll~
10759 $RM \$dlpath'
10760 shlibpath_overrides_runpath=yes
10762 case $host_os in
10763 cygwin*)
10764 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10765 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10767 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10769 mingw* | cegcc*)
10770 # MinGW DLLs use traditional 'lib' prefix
10771 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10773 pw32*)
10774 # pw32 DLLs use 'pw' prefix rather than 'lib'
10775 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10777 esac
10781 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10783 esac
10784 dynamic_linker='Win32 ld.exe'
10785 # FIXME: first we should search . and the directory the executable is in
10786 shlibpath_var=PATH
10789 darwin* | rhapsody*)
10790 dynamic_linker="$host_os dyld"
10791 version_type=darwin
10792 need_lib_prefix=no
10793 need_version=no
10794 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10795 soname_spec='${libname}${release}${major}$shared_ext'
10796 shlibpath_overrides_runpath=yes
10797 shlibpath_var=DYLD_LIBRARY_PATH
10798 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10800 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10801 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10804 dgux*)
10805 version_type=linux
10806 need_lib_prefix=no
10807 need_version=no
10808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10809 soname_spec='${libname}${release}${shared_ext}$major'
10810 shlibpath_var=LD_LIBRARY_PATH
10813 freebsd* | dragonfly*)
10814 # DragonFly does not have aout. When/if they implement a new
10815 # versioning mechanism, adjust this.
10816 if test -x /usr/bin/objformat; then
10817 objformat=`/usr/bin/objformat`
10818 else
10819 case $host_os in
10820 freebsd[23].*) objformat=aout ;;
10821 *) objformat=elf ;;
10822 esac
10824 version_type=freebsd-$objformat
10825 case $version_type in
10826 freebsd-elf*)
10827 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10828 need_version=no
10829 need_lib_prefix=no
10831 freebsd-*)
10832 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10833 need_version=yes
10835 esac
10836 shlibpath_var=LD_LIBRARY_PATH
10837 case $host_os in
10838 freebsd2.*)
10839 shlibpath_overrides_runpath=yes
10841 freebsd3.[01]* | freebsdelf3.[01]*)
10842 shlibpath_overrides_runpath=yes
10843 hardcode_into_libs=yes
10845 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10846 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10847 shlibpath_overrides_runpath=no
10848 hardcode_into_libs=yes
10850 *) # from 4.6 on, and DragonFly
10851 shlibpath_overrides_runpath=yes
10852 hardcode_into_libs=yes
10854 esac
10857 haiku*)
10858 version_type=linux
10859 need_lib_prefix=no
10860 need_version=no
10861 dynamic_linker="$host_os runtime_loader"
10862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10863 soname_spec='${libname}${release}${shared_ext}$major'
10864 shlibpath_var=LIBRARY_PATH
10865 shlibpath_overrides_runpath=yes
10866 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10867 hardcode_into_libs=yes
10870 hpux9* | hpux10* | hpux11*)
10871 # Give a soname corresponding to the major version so that dld.sl refuses to
10872 # link against other versions.
10873 version_type=sunos
10874 need_lib_prefix=no
10875 need_version=no
10876 case $host_cpu in
10877 ia64*)
10878 shrext_cmds='.so'
10879 hardcode_into_libs=yes
10880 dynamic_linker="$host_os dld.so"
10881 shlibpath_var=LD_LIBRARY_PATH
10882 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10884 soname_spec='${libname}${release}${shared_ext}$major'
10885 if test "X$HPUX_IA64_MODE" = X32; then
10886 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10887 else
10888 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10890 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10892 hppa*64*)
10893 shrext_cmds='.sl'
10894 hardcode_into_libs=yes
10895 dynamic_linker="$host_os dld.sl"
10896 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10897 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10898 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10899 soname_spec='${libname}${release}${shared_ext}$major'
10900 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10901 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10904 shrext_cmds='.sl'
10905 dynamic_linker="$host_os dld.sl"
10906 shlibpath_var=SHLIB_PATH
10907 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10909 soname_spec='${libname}${release}${shared_ext}$major'
10911 esac
10912 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10913 postinstall_cmds='chmod 555 $lib'
10914 # or fails outright, so override atomically:
10915 install_override_mode=555
10918 interix[3-9]*)
10919 version_type=linux
10920 need_lib_prefix=no
10921 need_version=no
10922 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10923 soname_spec='${libname}${release}${shared_ext}$major'
10924 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10925 shlibpath_var=LD_LIBRARY_PATH
10926 shlibpath_overrides_runpath=no
10927 hardcode_into_libs=yes
10930 irix5* | irix6* | nonstopux*)
10931 case $host_os in
10932 nonstopux*) version_type=nonstopux ;;
10934 if test "$lt_cv_prog_gnu_ld" = yes; then
10935 version_type=linux
10936 else
10937 version_type=irix
10938 fi ;;
10939 esac
10940 need_lib_prefix=no
10941 need_version=no
10942 soname_spec='${libname}${release}${shared_ext}$major'
10943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10944 case $host_os in
10945 irix5* | nonstopux*)
10946 libsuff= shlibsuff=
10949 case $LD in # libtool.m4 will add one of these switches to LD
10950 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10951 libsuff= shlibsuff= libmagic=32-bit;;
10952 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10953 libsuff=32 shlibsuff=N32 libmagic=N32;;
10954 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10955 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10956 *) libsuff= shlibsuff= libmagic=never-match;;
10957 esac
10959 esac
10960 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10961 shlibpath_overrides_runpath=no
10962 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10963 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10964 hardcode_into_libs=yes
10967 # No shared lib support for Linux oldld, aout, or coff.
10968 linux*oldld* | linux*aout* | linux*coff*)
10969 dynamic_linker=no
10972 # This must be Linux ELF.
10974 # uclinux* changes (here and below) have been submitted to the libtool
10975 # project, but have not yet been accepted: they are GCC-local changes
10976 # for the time being. (See
10977 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
10978 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
10979 version_type=linux
10980 need_lib_prefix=no
10981 need_version=no
10982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10983 soname_spec='${libname}${release}${shared_ext}$major'
10984 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10985 shlibpath_var=LD_LIBRARY_PATH
10986 shlibpath_overrides_runpath=no
10988 # Some binutils ld are patched to set DT_RUNPATH
10989 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10990 $as_echo_n "(cached) " >&6
10991 else
10992 lt_cv_shlibpath_overrides_runpath=no
10993 save_LDFLAGS=$LDFLAGS
10994 save_libdir=$libdir
10995 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10996 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10998 /* end confdefs.h. */
11001 main ()
11005 return 0;
11007 _ACEOF
11008 if ac_fn_c_try_link "$LINENO"; then :
11009 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11010 lt_cv_shlibpath_overrides_runpath=yes
11013 rm -f core conftest.err conftest.$ac_objext \
11014 conftest$ac_exeext conftest.$ac_ext
11015 LDFLAGS=$save_LDFLAGS
11016 libdir=$save_libdir
11020 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11022 # This implies no fast_install, which is unacceptable.
11023 # Some rework will be needed to allow for fast_install
11024 # before this can be enabled.
11025 hardcode_into_libs=yes
11027 # Append ld.so.conf contents to the search path
11028 if test -f /etc/ld.so.conf; then
11029 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' ' '`
11030 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11033 # We used to test for /lib/ld.so.1 and disable shared libraries on
11034 # powerpc, because MkLinux only supported shared libraries with the
11035 # GNU dynamic linker. Since this was broken with cross compilers,
11036 # most powerpc-linux boxes support dynamic linking these days and
11037 # people can always --disable-shared, the test was removed, and we
11038 # assume the GNU/Linux dynamic linker is in use.
11039 dynamic_linker='GNU/Linux ld.so'
11042 netbsd*)
11043 version_type=sunos
11044 need_lib_prefix=no
11045 need_version=no
11046 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11048 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11049 dynamic_linker='NetBSD (a.out) ld.so'
11050 else
11051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11052 soname_spec='${libname}${release}${shared_ext}$major'
11053 dynamic_linker='NetBSD ld.elf_so'
11055 shlibpath_var=LD_LIBRARY_PATH
11056 shlibpath_overrides_runpath=yes
11057 hardcode_into_libs=yes
11060 newsos6)
11061 version_type=linux
11062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11063 shlibpath_var=LD_LIBRARY_PATH
11064 shlibpath_overrides_runpath=yes
11067 *nto* | *qnx*)
11068 version_type=qnx
11069 need_lib_prefix=no
11070 need_version=no
11071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11072 soname_spec='${libname}${release}${shared_ext}$major'
11073 shlibpath_var=LD_LIBRARY_PATH
11074 shlibpath_overrides_runpath=no
11075 hardcode_into_libs=yes
11076 dynamic_linker='ldqnx.so'
11079 openbsd*)
11080 version_type=sunos
11081 sys_lib_dlsearch_path_spec="/usr/lib"
11082 need_lib_prefix=no
11083 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11084 case $host_os in
11085 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11086 *) need_version=no ;;
11087 esac
11088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11089 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11090 shlibpath_var=LD_LIBRARY_PATH
11091 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11092 case $host_os in
11093 openbsd2.[89] | openbsd2.[89].*)
11094 shlibpath_overrides_runpath=no
11097 shlibpath_overrides_runpath=yes
11099 esac
11100 else
11101 shlibpath_overrides_runpath=yes
11105 os2*)
11106 libname_spec='$name'
11107 shrext_cmds=".dll"
11108 need_lib_prefix=no
11109 library_names_spec='$libname${shared_ext} $libname.a'
11110 dynamic_linker='OS/2 ld.exe'
11111 shlibpath_var=LIBPATH
11114 osf3* | osf4* | osf5*)
11115 version_type=osf
11116 need_lib_prefix=no
11117 need_version=no
11118 soname_spec='${libname}${release}${shared_ext}$major'
11119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11120 shlibpath_var=LD_LIBRARY_PATH
11121 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11122 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11125 rdos*)
11126 dynamic_linker=no
11129 solaris*)
11130 version_type=linux
11131 need_lib_prefix=no
11132 need_version=no
11133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11134 soname_spec='${libname}${release}${shared_ext}$major'
11135 shlibpath_var=LD_LIBRARY_PATH
11136 shlibpath_overrides_runpath=yes
11137 hardcode_into_libs=yes
11138 # ldd complains unless libraries are executable
11139 postinstall_cmds='chmod +x $lib'
11142 sunos4*)
11143 version_type=sunos
11144 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11145 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11146 shlibpath_var=LD_LIBRARY_PATH
11147 shlibpath_overrides_runpath=yes
11148 if test "$with_gnu_ld" = yes; then
11149 need_lib_prefix=no
11151 need_version=yes
11154 sysv4 | sysv4.3*)
11155 version_type=linux
11156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11157 soname_spec='${libname}${release}${shared_ext}$major'
11158 shlibpath_var=LD_LIBRARY_PATH
11159 case $host_vendor in
11160 sni)
11161 shlibpath_overrides_runpath=no
11162 need_lib_prefix=no
11163 runpath_var=LD_RUN_PATH
11165 siemens)
11166 need_lib_prefix=no
11168 motorola)
11169 need_lib_prefix=no
11170 need_version=no
11171 shlibpath_overrides_runpath=no
11172 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11174 esac
11177 sysv4*MP*)
11178 if test -d /usr/nec ;then
11179 version_type=linux
11180 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11181 soname_spec='$libname${shared_ext}.$major'
11182 shlibpath_var=LD_LIBRARY_PATH
11186 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11187 version_type=freebsd-elf
11188 need_lib_prefix=no
11189 need_version=no
11190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11191 soname_spec='${libname}${release}${shared_ext}$major'
11192 shlibpath_var=LD_LIBRARY_PATH
11193 shlibpath_overrides_runpath=yes
11194 hardcode_into_libs=yes
11195 if test "$with_gnu_ld" = yes; then
11196 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11197 else
11198 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11199 case $host_os in
11200 sco3.2v5*)
11201 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11203 esac
11205 sys_lib_dlsearch_path_spec='/usr/lib'
11208 tpf*)
11209 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11210 version_type=linux
11211 need_lib_prefix=no
11212 need_version=no
11213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11214 shlibpath_var=LD_LIBRARY_PATH
11215 shlibpath_overrides_runpath=no
11216 hardcode_into_libs=yes
11219 uts4*)
11220 version_type=linux
11221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11222 soname_spec='${libname}${release}${shared_ext}$major'
11223 shlibpath_var=LD_LIBRARY_PATH
11226 # Shared libraries for VwWorks, >= 7 only at this stage
11227 # and (fpic) still incompatible with "large" code models
11228 # in a few configurations. Only for RTP mode in any case,
11229 # and upon explicit request at configure time.
11230 vxworks7*)
11231 dynamic_linker=no
11232 case ${with_multisubdir}-${enable_shared} in
11233 *large*)
11235 *mrtp*-yes)
11236 version_type=linux
11237 need_lib_prefix=no
11238 need_version=no
11239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11240 soname_spec='${libname}${release}${shared_ext}$major'
11241 dynamic_linker="$host_os module_loader"
11243 esac
11246 dynamic_linker=no
11248 esac
11249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11250 $as_echo "$dynamic_linker" >&6; }
11251 test "$dynamic_linker" = no && can_build_shared=no
11253 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11254 if test "$GCC" = yes; then
11255 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11258 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11259 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11261 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11262 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11357 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11358 hardcode_action=
11359 if test -n "$hardcode_libdir_flag_spec" ||
11360 test -n "$runpath_var" ||
11361 test "X$hardcode_automatic" = "Xyes" ; then
11363 # We can hardcode non-existent directories.
11364 if test "$hardcode_direct" != no &&
11365 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11366 # have to relink, otherwise we might link with an installed library
11367 # when we should be linking with a yet-to-be-installed one
11368 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11369 test "$hardcode_minus_L" != no; then
11370 # Linking always hardcodes the temporary library directory.
11371 hardcode_action=relink
11372 else
11373 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11374 hardcode_action=immediate
11376 else
11377 # We cannot hardcode anything, or else we can only hardcode existing
11378 # directories.
11379 hardcode_action=unsupported
11381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11382 $as_echo "$hardcode_action" >&6; }
11384 if test "$hardcode_action" = relink ||
11385 test "$inherit_rpath" = yes; then
11386 # Fast installation is not supported
11387 enable_fast_install=no
11388 elif test "$shlibpath_overrides_runpath" = yes ||
11389 test "$enable_shared" = no; then
11390 # Fast installation is not necessary
11391 enable_fast_install=needless
11399 if test "x$enable_dlopen" != xyes; then
11400 enable_dlopen=unknown
11401 enable_dlopen_self=unknown
11402 enable_dlopen_self_static=unknown
11403 else
11404 lt_cv_dlopen=no
11405 lt_cv_dlopen_libs=
11407 case $host_os in
11408 beos*)
11409 lt_cv_dlopen="load_add_on"
11410 lt_cv_dlopen_libs=
11411 lt_cv_dlopen_self=yes
11414 mingw* | pw32* | cegcc*)
11415 lt_cv_dlopen="LoadLibrary"
11416 lt_cv_dlopen_libs=
11419 cygwin*)
11420 lt_cv_dlopen="dlopen"
11421 lt_cv_dlopen_libs=
11424 darwin*)
11425 # if libdl is installed we need to link against it
11426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11427 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11428 if ${ac_cv_lib_dl_dlopen+:} false; then :
11429 $as_echo_n "(cached) " >&6
11430 else
11431 ac_check_lib_save_LIBS=$LIBS
11432 LIBS="-ldl $LIBS"
11433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11434 /* end confdefs.h. */
11436 /* Override any GCC internal prototype to avoid an error.
11437 Use char because int might match the return type of a GCC
11438 builtin and then its argument prototype would still apply. */
11439 #ifdef __cplusplus
11440 extern "C"
11441 #endif
11442 char dlopen ();
11444 main ()
11446 return dlopen ();
11448 return 0;
11450 _ACEOF
11451 if ac_fn_c_try_link "$LINENO"; then :
11452 ac_cv_lib_dl_dlopen=yes
11453 else
11454 ac_cv_lib_dl_dlopen=no
11456 rm -f core conftest.err conftest.$ac_objext \
11457 conftest$ac_exeext conftest.$ac_ext
11458 LIBS=$ac_check_lib_save_LIBS
11460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11461 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11462 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11463 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11464 else
11466 lt_cv_dlopen="dyld"
11467 lt_cv_dlopen_libs=
11468 lt_cv_dlopen_self=yes
11475 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11476 if test "x$ac_cv_func_shl_load" = xyes; then :
11477 lt_cv_dlopen="shl_load"
11478 else
11479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11480 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11481 if ${ac_cv_lib_dld_shl_load+:} false; then :
11482 $as_echo_n "(cached) " >&6
11483 else
11484 ac_check_lib_save_LIBS=$LIBS
11485 LIBS="-ldld $LIBS"
11486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11487 /* end confdefs.h. */
11489 /* Override any GCC internal prototype to avoid an error.
11490 Use char because int might match the return type of a GCC
11491 builtin and then its argument prototype would still apply. */
11492 #ifdef __cplusplus
11493 extern "C"
11494 #endif
11495 char shl_load ();
11497 main ()
11499 return shl_load ();
11501 return 0;
11503 _ACEOF
11504 if ac_fn_c_try_link "$LINENO"; then :
11505 ac_cv_lib_dld_shl_load=yes
11506 else
11507 ac_cv_lib_dld_shl_load=no
11509 rm -f core conftest.err conftest.$ac_objext \
11510 conftest$ac_exeext conftest.$ac_ext
11511 LIBS=$ac_check_lib_save_LIBS
11513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11514 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11515 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11516 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11517 else
11518 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11519 if test "x$ac_cv_func_dlopen" = xyes; then :
11520 lt_cv_dlopen="dlopen"
11521 else
11522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11523 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11524 if ${ac_cv_lib_dl_dlopen+:} false; then :
11525 $as_echo_n "(cached) " >&6
11526 else
11527 ac_check_lib_save_LIBS=$LIBS
11528 LIBS="-ldl $LIBS"
11529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11530 /* end confdefs.h. */
11532 /* Override any GCC internal prototype to avoid an error.
11533 Use char because int might match the return type of a GCC
11534 builtin and then its argument prototype would still apply. */
11535 #ifdef __cplusplus
11536 extern "C"
11537 #endif
11538 char dlopen ();
11540 main ()
11542 return dlopen ();
11544 return 0;
11546 _ACEOF
11547 if ac_fn_c_try_link "$LINENO"; then :
11548 ac_cv_lib_dl_dlopen=yes
11549 else
11550 ac_cv_lib_dl_dlopen=no
11552 rm -f core conftest.err conftest.$ac_objext \
11553 conftest$ac_exeext conftest.$ac_ext
11554 LIBS=$ac_check_lib_save_LIBS
11556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11557 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11558 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11559 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11560 else
11561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11562 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11563 if ${ac_cv_lib_svld_dlopen+:} false; then :
11564 $as_echo_n "(cached) " >&6
11565 else
11566 ac_check_lib_save_LIBS=$LIBS
11567 LIBS="-lsvld $LIBS"
11568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11569 /* end confdefs.h. */
11571 /* Override any GCC internal prototype to avoid an error.
11572 Use char because int might match the return type of a GCC
11573 builtin and then its argument prototype would still apply. */
11574 #ifdef __cplusplus
11575 extern "C"
11576 #endif
11577 char dlopen ();
11579 main ()
11581 return dlopen ();
11583 return 0;
11585 _ACEOF
11586 if ac_fn_c_try_link "$LINENO"; then :
11587 ac_cv_lib_svld_dlopen=yes
11588 else
11589 ac_cv_lib_svld_dlopen=no
11591 rm -f core conftest.err conftest.$ac_objext \
11592 conftest$ac_exeext conftest.$ac_ext
11593 LIBS=$ac_check_lib_save_LIBS
11595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11596 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11597 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11598 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11599 else
11600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11601 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11602 if ${ac_cv_lib_dld_dld_link+:} false; then :
11603 $as_echo_n "(cached) " >&6
11604 else
11605 ac_check_lib_save_LIBS=$LIBS
11606 LIBS="-ldld $LIBS"
11607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11608 /* end confdefs.h. */
11610 /* Override any GCC internal prototype to avoid an error.
11611 Use char because int might match the return type of a GCC
11612 builtin and then its argument prototype would still apply. */
11613 #ifdef __cplusplus
11614 extern "C"
11615 #endif
11616 char dld_link ();
11618 main ()
11620 return dld_link ();
11622 return 0;
11624 _ACEOF
11625 if ac_fn_c_try_link "$LINENO"; then :
11626 ac_cv_lib_dld_dld_link=yes
11627 else
11628 ac_cv_lib_dld_dld_link=no
11630 rm -f core conftest.err conftest.$ac_objext \
11631 conftest$ac_exeext conftest.$ac_ext
11632 LIBS=$ac_check_lib_save_LIBS
11634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11635 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11636 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11637 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11656 esac
11658 if test "x$lt_cv_dlopen" != xno; then
11659 enable_dlopen=yes
11660 else
11661 enable_dlopen=no
11664 case $lt_cv_dlopen in
11665 dlopen)
11666 save_CPPFLAGS="$CPPFLAGS"
11667 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11669 save_LDFLAGS="$LDFLAGS"
11670 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11672 save_LIBS="$LIBS"
11673 LIBS="$lt_cv_dlopen_libs $LIBS"
11675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11676 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11677 if ${lt_cv_dlopen_self+:} false; then :
11678 $as_echo_n "(cached) " >&6
11679 else
11680 if test "$cross_compiling" = yes; then :
11681 lt_cv_dlopen_self=cross
11682 else
11683 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11684 lt_status=$lt_dlunknown
11685 cat > conftest.$ac_ext <<_LT_EOF
11686 #line 11686 "configure"
11687 #include "confdefs.h"
11689 #if HAVE_DLFCN_H
11690 #include <dlfcn.h>
11691 #endif
11693 #include <stdio.h>
11695 #ifdef RTLD_GLOBAL
11696 # define LT_DLGLOBAL RTLD_GLOBAL
11697 #else
11698 # ifdef DL_GLOBAL
11699 # define LT_DLGLOBAL DL_GLOBAL
11700 # else
11701 # define LT_DLGLOBAL 0
11702 # endif
11703 #endif
11705 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11706 find out it does not work in some platform. */
11707 #ifndef LT_DLLAZY_OR_NOW
11708 # ifdef RTLD_LAZY
11709 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11710 # else
11711 # ifdef DL_LAZY
11712 # define LT_DLLAZY_OR_NOW DL_LAZY
11713 # else
11714 # ifdef RTLD_NOW
11715 # define LT_DLLAZY_OR_NOW RTLD_NOW
11716 # else
11717 # ifdef DL_NOW
11718 # define LT_DLLAZY_OR_NOW DL_NOW
11719 # else
11720 # define LT_DLLAZY_OR_NOW 0
11721 # endif
11722 # endif
11723 # endif
11724 # endif
11725 #endif
11727 /* When -fvisbility=hidden is used, assume the code has been annotated
11728 correspondingly for the symbols needed. */
11729 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11730 void fnord () __attribute__((visibility("default")));
11731 #endif
11733 void fnord () { int i=42; }
11734 int main ()
11736 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11737 int status = $lt_dlunknown;
11739 if (self)
11741 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11742 else
11744 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11745 else puts (dlerror ());
11747 /* dlclose (self); */
11749 else
11750 puts (dlerror ());
11752 return status;
11754 _LT_EOF
11755 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11756 (eval $ac_link) 2>&5
11757 ac_status=$?
11758 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11759 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11760 (./conftest; exit; ) >&5 2>/dev/null
11761 lt_status=$?
11762 case x$lt_status in
11763 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11764 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11765 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11766 esac
11767 else :
11768 # compilation failed
11769 lt_cv_dlopen_self=no
11772 rm -fr conftest*
11776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11777 $as_echo "$lt_cv_dlopen_self" >&6; }
11779 if test "x$lt_cv_dlopen_self" = xyes; then
11780 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11782 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11783 if ${lt_cv_dlopen_self_static+:} false; then :
11784 $as_echo_n "(cached) " >&6
11785 else
11786 if test "$cross_compiling" = yes; then :
11787 lt_cv_dlopen_self_static=cross
11788 else
11789 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11790 lt_status=$lt_dlunknown
11791 cat > conftest.$ac_ext <<_LT_EOF
11792 #line 11792 "configure"
11793 #include "confdefs.h"
11795 #if HAVE_DLFCN_H
11796 #include <dlfcn.h>
11797 #endif
11799 #include <stdio.h>
11801 #ifdef RTLD_GLOBAL
11802 # define LT_DLGLOBAL RTLD_GLOBAL
11803 #else
11804 # ifdef DL_GLOBAL
11805 # define LT_DLGLOBAL DL_GLOBAL
11806 # else
11807 # define LT_DLGLOBAL 0
11808 # endif
11809 #endif
11811 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11812 find out it does not work in some platform. */
11813 #ifndef LT_DLLAZY_OR_NOW
11814 # ifdef RTLD_LAZY
11815 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11816 # else
11817 # ifdef DL_LAZY
11818 # define LT_DLLAZY_OR_NOW DL_LAZY
11819 # else
11820 # ifdef RTLD_NOW
11821 # define LT_DLLAZY_OR_NOW RTLD_NOW
11822 # else
11823 # ifdef DL_NOW
11824 # define LT_DLLAZY_OR_NOW DL_NOW
11825 # else
11826 # define LT_DLLAZY_OR_NOW 0
11827 # endif
11828 # endif
11829 # endif
11830 # endif
11831 #endif
11833 /* When -fvisbility=hidden is used, assume the code has been annotated
11834 correspondingly for the symbols needed. */
11835 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11836 void fnord () __attribute__((visibility("default")));
11837 #endif
11839 void fnord () { int i=42; }
11840 int main ()
11842 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11843 int status = $lt_dlunknown;
11845 if (self)
11847 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11848 else
11850 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11851 else puts (dlerror ());
11853 /* dlclose (self); */
11855 else
11856 puts (dlerror ());
11858 return status;
11860 _LT_EOF
11861 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11862 (eval $ac_link) 2>&5
11863 ac_status=$?
11864 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11865 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11866 (./conftest; exit; ) >&5 2>/dev/null
11867 lt_status=$?
11868 case x$lt_status in
11869 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11870 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11871 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11872 esac
11873 else :
11874 # compilation failed
11875 lt_cv_dlopen_self_static=no
11878 rm -fr conftest*
11882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11883 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11886 CPPFLAGS="$save_CPPFLAGS"
11887 LDFLAGS="$save_LDFLAGS"
11888 LIBS="$save_LIBS"
11890 esac
11892 case $lt_cv_dlopen_self in
11893 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11894 *) enable_dlopen_self=unknown ;;
11895 esac
11897 case $lt_cv_dlopen_self_static in
11898 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11899 *) enable_dlopen_self_static=unknown ;;
11900 esac
11919 striplib=
11920 old_striplib=
11921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11922 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11923 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11924 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11925 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11927 $as_echo "yes" >&6; }
11928 else
11929 # FIXME - insert some real tests, host_os isn't really good enough
11930 case $host_os in
11931 darwin*)
11932 if test -n "$STRIP" ; then
11933 striplib="$STRIP -x"
11934 old_striplib="$STRIP -S"
11935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11936 $as_echo "yes" >&6; }
11937 else
11938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11939 $as_echo "no" >&6; }
11943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11944 $as_echo "no" >&6; }
11946 esac
11960 # Report which library types will actually be built
11961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11962 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11964 $as_echo "$can_build_shared" >&6; }
11966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11967 $as_echo_n "checking whether to build shared libraries... " >&6; }
11968 test "$can_build_shared" = "no" && enable_shared=no
11970 # On AIX, shared libraries and static libraries use the same namespace, and
11971 # are all built from PIC.
11972 case $host_os in
11973 aix3*)
11974 test "$enable_shared" = yes && enable_static=no
11975 if test -n "$RANLIB"; then
11976 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11977 postinstall_cmds='$RANLIB $lib'
11981 aix[4-9]*)
11982 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11983 test "$enable_shared" = yes && enable_static=no
11986 esac
11987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11988 $as_echo "$enable_shared" >&6; }
11990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11991 $as_echo_n "checking whether to build static libraries... " >&6; }
11992 # Make sure either enable_shared or enable_static is yes.
11993 test "$enable_shared" = yes || enable_static=yes
11994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11995 $as_echo "$enable_static" >&6; }
12001 ac_ext=c
12002 ac_cpp='$CPP $CPPFLAGS'
12003 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12004 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12005 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12007 CC="$lt_save_CC"
12009 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12010 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12011 (test "X$CXX" != "Xg++"))) ; then
12012 ac_ext=cpp
12013 ac_cpp='$CXXCPP $CPPFLAGS'
12014 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12015 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12016 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12018 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12019 if test -z "$CXXCPP"; then
12020 if ${ac_cv_prog_CXXCPP+:} false; then :
12021 $as_echo_n "(cached) " >&6
12022 else
12023 # Double quotes because CXXCPP needs to be expanded
12024 for CXXCPP in "$CXX -E" "/lib/cpp"
12026 ac_preproc_ok=false
12027 for ac_cxx_preproc_warn_flag in '' yes
12029 # Use a header file that comes with gcc, so configuring glibc
12030 # with a fresh cross-compiler works.
12031 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12032 # <limits.h> exists even on freestanding compilers.
12033 # On the NeXT, cc -E runs the code through the compiler's parser,
12034 # not just through cpp. "Syntax error" is here to catch this case.
12035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12036 /* end confdefs.h. */
12037 #ifdef __STDC__
12038 # include <limits.h>
12039 #else
12040 # include <assert.h>
12041 #endif
12042 Syntax error
12043 _ACEOF
12044 if ac_fn_cxx_try_cpp "$LINENO"; then :
12046 else
12047 # Broken: fails on valid input.
12048 continue
12050 rm -f conftest.err conftest.i conftest.$ac_ext
12052 # OK, works on sane cases. Now check whether nonexistent headers
12053 # can be detected and how.
12054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12055 /* end confdefs.h. */
12056 #include <ac_nonexistent.h>
12057 _ACEOF
12058 if ac_fn_cxx_try_cpp "$LINENO"; then :
12059 # Broken: success on invalid input.
12060 continue
12061 else
12062 # Passes both tests.
12063 ac_preproc_ok=:
12064 break
12066 rm -f conftest.err conftest.i conftest.$ac_ext
12068 done
12069 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12070 rm -f conftest.i conftest.err conftest.$ac_ext
12071 if $ac_preproc_ok; then :
12072 break
12075 done
12076 ac_cv_prog_CXXCPP=$CXXCPP
12079 CXXCPP=$ac_cv_prog_CXXCPP
12080 else
12081 ac_cv_prog_CXXCPP=$CXXCPP
12083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12084 $as_echo "$CXXCPP" >&6; }
12085 ac_preproc_ok=false
12086 for ac_cxx_preproc_warn_flag in '' yes
12088 # Use a header file that comes with gcc, so configuring glibc
12089 # with a fresh cross-compiler works.
12090 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12091 # <limits.h> exists even on freestanding compilers.
12092 # On the NeXT, cc -E runs the code through the compiler's parser,
12093 # not just through cpp. "Syntax error" is here to catch this case.
12094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12095 /* end confdefs.h. */
12096 #ifdef __STDC__
12097 # include <limits.h>
12098 #else
12099 # include <assert.h>
12100 #endif
12101 Syntax error
12102 _ACEOF
12103 if ac_fn_cxx_try_cpp "$LINENO"; then :
12105 else
12106 # Broken: fails on valid input.
12107 continue
12109 rm -f conftest.err conftest.i conftest.$ac_ext
12111 # OK, works on sane cases. Now check whether nonexistent headers
12112 # can be detected and how.
12113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12114 /* end confdefs.h. */
12115 #include <ac_nonexistent.h>
12116 _ACEOF
12117 if ac_fn_cxx_try_cpp "$LINENO"; then :
12118 # Broken: success on invalid input.
12119 continue
12120 else
12121 # Passes both tests.
12122 ac_preproc_ok=:
12123 break
12125 rm -f conftest.err conftest.i conftest.$ac_ext
12127 done
12128 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12129 rm -f conftest.i conftest.err conftest.$ac_ext
12130 if $ac_preproc_ok; then :
12132 else
12133 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12134 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12135 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12136 See \`config.log' for more details" "$LINENO" 5; }
12139 ac_ext=c
12140 ac_cpp='$CPP $CPPFLAGS'
12141 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12142 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12143 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12145 else
12146 _lt_caught_CXX_error=yes
12149 ac_ext=cpp
12150 ac_cpp='$CXXCPP $CPPFLAGS'
12151 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12152 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12153 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12155 archive_cmds_need_lc_CXX=no
12156 allow_undefined_flag_CXX=
12157 always_export_symbols_CXX=no
12158 archive_expsym_cmds_CXX=
12159 compiler_needs_object_CXX=no
12160 export_dynamic_flag_spec_CXX=
12161 hardcode_direct_CXX=no
12162 hardcode_direct_absolute_CXX=no
12163 hardcode_libdir_flag_spec_CXX=
12164 hardcode_libdir_flag_spec_ld_CXX=
12165 hardcode_libdir_separator_CXX=
12166 hardcode_minus_L_CXX=no
12167 hardcode_shlibpath_var_CXX=unsupported
12168 hardcode_automatic_CXX=no
12169 inherit_rpath_CXX=no
12170 module_cmds_CXX=
12171 module_expsym_cmds_CXX=
12172 link_all_deplibs_CXX=unknown
12173 old_archive_cmds_CXX=$old_archive_cmds
12174 reload_flag_CXX=$reload_flag
12175 reload_cmds_CXX=$reload_cmds
12176 no_undefined_flag_CXX=
12177 whole_archive_flag_spec_CXX=
12178 enable_shared_with_static_runtimes_CXX=no
12180 # Source file extension for C++ test sources.
12181 ac_ext=cpp
12183 # Object file extension for compiled C++ test sources.
12184 objext=o
12185 objext_CXX=$objext
12187 # No sense in running all these tests if we already determined that
12188 # the CXX compiler isn't working. Some variables (like enable_shared)
12189 # are currently assumed to apply to all compilers on this platform,
12190 # and will be corrupted by setting them based on a non-working compiler.
12191 if test "$_lt_caught_CXX_error" != yes; then
12192 # Code to be used in simple compile tests
12193 lt_simple_compile_test_code="int some_variable = 0;"
12195 # Code to be used in simple link tests
12196 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12198 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12205 # If no C compiler was specified, use CC.
12206 LTCC=${LTCC-"$CC"}
12208 # If no C compiler flags were specified, use CFLAGS.
12209 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12211 # Allow CC to be a program name with arguments.
12212 compiler=$CC
12215 # save warnings/boilerplate of simple test code
12216 ac_outfile=conftest.$ac_objext
12217 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12218 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12219 _lt_compiler_boilerplate=`cat conftest.err`
12220 $RM conftest*
12222 ac_outfile=conftest.$ac_objext
12223 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12224 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12225 _lt_linker_boilerplate=`cat conftest.err`
12226 $RM -r conftest*
12229 # Allow CC to be a program name with arguments.
12230 lt_save_CC=$CC
12231 lt_save_LD=$LD
12232 lt_save_GCC=$GCC
12233 GCC=$GXX
12234 lt_save_with_gnu_ld=$with_gnu_ld
12235 lt_save_path_LD=$lt_cv_path_LD
12236 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12237 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12238 else
12239 $as_unset lt_cv_prog_gnu_ld
12241 if test -n "${lt_cv_path_LDCXX+set}"; then
12242 lt_cv_path_LD=$lt_cv_path_LDCXX
12243 else
12244 $as_unset lt_cv_path_LD
12246 test -z "${LDCXX+set}" || LD=$LDCXX
12247 CC=${CXX-"c++"}
12248 compiler=$CC
12249 compiler_CXX=$CC
12250 for cc_temp in $compiler""; do
12251 case $cc_temp in
12252 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12253 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12254 \-*) ;;
12255 *) break;;
12256 esac
12257 done
12258 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12261 if test -n "$compiler"; then
12262 # We don't want -fno-exception when compiling C++ code, so set the
12263 # no_builtin_flag separately
12264 if test "$GXX" = yes; then
12265 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12266 else
12267 lt_prog_compiler_no_builtin_flag_CXX=
12270 if test "$GXX" = yes; then
12271 # Set up default GNU C++ configuration
12275 # Check whether --with-gnu-ld was given.
12276 if test "${with_gnu_ld+set}" = set; then :
12277 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12278 else
12279 with_gnu_ld=no
12282 ac_prog=ld
12283 if test "$GCC" = yes; then
12284 # Check if gcc -print-prog-name=ld gives a path.
12285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12286 $as_echo_n "checking for ld used by $CC... " >&6; }
12287 case $host in
12288 *-*-mingw*)
12289 # gcc leaves a trailing carriage return which upsets mingw
12290 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12292 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12293 esac
12294 case $ac_prog in
12295 # Accept absolute paths.
12296 [\\/]* | ?:[\\/]*)
12297 re_direlt='/[^/][^/]*/\.\./'
12298 # Canonicalize the pathname of ld
12299 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12300 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12301 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12302 done
12303 test -z "$LD" && LD="$ac_prog"
12306 # If it fails, then pretend we aren't using GCC.
12307 ac_prog=ld
12310 # If it is relative, then search for the first ld in PATH.
12311 with_gnu_ld=unknown
12313 esac
12314 elif test "$with_gnu_ld" = yes; then
12315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12316 $as_echo_n "checking for GNU ld... " >&6; }
12317 else
12318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12319 $as_echo_n "checking for non-GNU ld... " >&6; }
12321 if ${lt_cv_path_LD+:} false; then :
12322 $as_echo_n "(cached) " >&6
12323 else
12324 if test -z "$LD"; then
12325 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12326 for ac_dir in $PATH; do
12327 IFS="$lt_save_ifs"
12328 test -z "$ac_dir" && ac_dir=.
12329 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12330 lt_cv_path_LD="$ac_dir/$ac_prog"
12331 # Check to see if the program is GNU ld. I'd rather use --version,
12332 # but apparently some variants of GNU ld only accept -v.
12333 # Break only if it was the GNU/non-GNU ld that we prefer.
12334 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12335 *GNU* | *'with BFD'*)
12336 test "$with_gnu_ld" != no && break
12339 test "$with_gnu_ld" != yes && break
12341 esac
12343 done
12344 IFS="$lt_save_ifs"
12345 else
12346 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12350 LD="$lt_cv_path_LD"
12351 if test -n "$LD"; then
12352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12353 $as_echo "$LD" >&6; }
12354 else
12355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12356 $as_echo "no" >&6; }
12358 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12360 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12361 if ${lt_cv_prog_gnu_ld+:} false; then :
12362 $as_echo_n "(cached) " >&6
12363 else
12364 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12365 case `$LD -v 2>&1 </dev/null` in
12366 *GNU* | *'with BFD'*)
12367 lt_cv_prog_gnu_ld=yes
12370 lt_cv_prog_gnu_ld=no
12372 esac
12374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12375 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12376 with_gnu_ld=$lt_cv_prog_gnu_ld
12384 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12385 # archiving commands below assume that GNU ld is being used.
12386 if test "$with_gnu_ld" = yes; then
12387 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12388 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12390 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12391 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12393 # If archive_cmds runs LD, not CC, wlarc should be empty
12394 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12395 # investigate it a little bit more. (MM)
12396 wlarc='${wl}'
12398 # ancient GNU ld didn't support --whole-archive et. al.
12399 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12400 $GREP 'no-whole-archive' > /dev/null; then
12401 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12402 else
12403 whole_archive_flag_spec_CXX=
12405 else
12406 with_gnu_ld=no
12407 wlarc=
12409 # A generic and very simple default shared library creation
12410 # command for GNU C++ for the case where it uses the native
12411 # linker, instead of GNU ld. If possible, this setting should
12412 # overridden to take advantage of the native linker features on
12413 # the platform it is being used on.
12414 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12417 # Commands to make compiler produce verbose output that lists
12418 # what "hidden" libraries, object files and flags are used when
12419 # linking a shared library.
12420 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12422 else
12423 GXX=no
12424 with_gnu_ld=no
12425 wlarc=
12428 # PORTME: fill in a description of your system's C++ link characteristics
12429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12430 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12431 ld_shlibs_CXX=yes
12432 case $host_os in
12433 aix3*)
12434 # FIXME: insert proper C++ library support
12435 ld_shlibs_CXX=no
12437 aix[4-9]*)
12438 if test "$host_cpu" = ia64; then
12439 # On IA64, the linker does run time linking by default, so we don't
12440 # have to do anything special.
12441 aix_use_runtimelinking=no
12442 exp_sym_flag='-Bexport'
12443 no_entry_flag=""
12444 else
12445 aix_use_runtimelinking=no
12447 # Test if we are trying to use run time linking or normal
12448 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12449 # need to do runtime linking.
12450 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12451 for ld_flag in $LDFLAGS; do
12452 case $ld_flag in
12453 *-brtl*)
12454 aix_use_runtimelinking=yes
12455 break
12457 esac
12458 done
12460 esac
12462 exp_sym_flag='-bexport'
12463 no_entry_flag='-bnoentry'
12466 # When large executables or shared objects are built, AIX ld can
12467 # have problems creating the table of contents. If linking a library
12468 # or program results in "error TOC overflow" add -mminimal-toc to
12469 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12470 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12472 archive_cmds_CXX=''
12473 hardcode_direct_CXX=yes
12474 hardcode_direct_absolute_CXX=yes
12475 hardcode_libdir_separator_CXX=':'
12476 link_all_deplibs_CXX=yes
12477 file_list_spec_CXX='${wl}-f,'
12479 if test "$GXX" = yes; then
12480 case $host_os in aix4.[012]|aix4.[012].*)
12481 # We only want to do this on AIX 4.2 and lower, the check
12482 # below for broken collect2 doesn't work under 4.3+
12483 collect2name=`${CC} -print-prog-name=collect2`
12484 if test -f "$collect2name" &&
12485 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12486 then
12487 # We have reworked collect2
12489 else
12490 # We have old collect2
12491 hardcode_direct_CXX=unsupported
12492 # It fails to find uninstalled libraries when the uninstalled
12493 # path is not listed in the libpath. Setting hardcode_minus_L
12494 # to unsupported forces relinking
12495 hardcode_minus_L_CXX=yes
12496 hardcode_libdir_flag_spec_CXX='-L$libdir'
12497 hardcode_libdir_separator_CXX=
12499 esac
12500 shared_flag='-shared'
12501 if test "$aix_use_runtimelinking" = yes; then
12502 shared_flag="$shared_flag "'${wl}-G'
12504 else
12505 # not using gcc
12506 if test "$host_cpu" = ia64; then
12507 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12508 # chokes on -Wl,-G. The following line is correct:
12509 shared_flag='-G'
12510 else
12511 if test "$aix_use_runtimelinking" = yes; then
12512 shared_flag='${wl}-G'
12513 else
12514 shared_flag='${wl}-bM:SRE'
12519 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12520 # It seems that -bexpall does not export symbols beginning with
12521 # underscore (_), so it is better to generate a list of symbols to
12522 # export.
12523 always_export_symbols_CXX=yes
12524 if test "$aix_use_runtimelinking" = yes; then
12525 # Warning - without using the other runtime loading flags (-brtl),
12526 # -berok will link without error, but may produce a broken library.
12527 allow_undefined_flag_CXX='-berok'
12528 # Determine the default libpath from the value encoded in an empty
12529 # executable.
12530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12531 /* end confdefs.h. */
12534 main ()
12538 return 0;
12540 _ACEOF
12541 if ac_fn_cxx_try_link "$LINENO"; then :
12543 lt_aix_libpath_sed='
12544 /Import File Strings/,/^$/ {
12545 /^0/ {
12546 s/^0 *\(.*\)$/\1/
12550 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12551 # Check for a 64-bit object if we didn't find anything.
12552 if test -z "$aix_libpath"; then
12553 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12556 rm -f core conftest.err conftest.$ac_objext \
12557 conftest$ac_exeext conftest.$ac_ext
12558 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12560 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12562 archive_expsym_cmds_CXX='$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"
12563 else
12564 if test "$host_cpu" = ia64; then
12565 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12566 allow_undefined_flag_CXX="-z nodefs"
12567 archive_expsym_cmds_CXX="\$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"
12568 else
12569 # Determine the default libpath from the value encoded in an
12570 # empty executable.
12571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12572 /* end confdefs.h. */
12575 main ()
12579 return 0;
12581 _ACEOF
12582 if ac_fn_cxx_try_link "$LINENO"; then :
12584 lt_aix_libpath_sed='
12585 /Import File Strings/,/^$/ {
12586 /^0/ {
12587 s/^0 *\(.*\)$/\1/
12591 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12592 # Check for a 64-bit object if we didn't find anything.
12593 if test -z "$aix_libpath"; then
12594 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12597 rm -f core conftest.err conftest.$ac_objext \
12598 conftest$ac_exeext conftest.$ac_ext
12599 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12601 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12602 # Warning - without using the other run time loading flags,
12603 # -berok will link without error, but may produce a broken library.
12604 no_undefined_flag_CXX=' ${wl}-bernotok'
12605 allow_undefined_flag_CXX=' ${wl}-berok'
12606 if test "$with_gnu_ld" = yes; then
12607 # We only use this code for GNU lds that support --whole-archive.
12608 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12609 else
12610 # Exported symbols can be pulled into shared objects from archives
12611 whole_archive_flag_spec_CXX='$convenience'
12613 archive_cmds_need_lc_CXX=yes
12614 # This is similar to how AIX traditionally builds its shared
12615 # libraries.
12616 archive_expsym_cmds_CXX="\$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'
12621 beos*)
12622 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12623 allow_undefined_flag_CXX=unsupported
12624 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12625 # support --undefined. This deserves some investigation. FIXME
12626 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12627 else
12628 ld_shlibs_CXX=no
12632 chorus*)
12633 case $cc_basename in
12635 # FIXME: insert proper C++ library support
12636 ld_shlibs_CXX=no
12638 esac
12641 cygwin* | mingw* | pw32* | cegcc*)
12642 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12643 # as there is no search path for DLLs.
12644 hardcode_libdir_flag_spec_CXX='-L$libdir'
12645 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12646 allow_undefined_flag_CXX=unsupported
12647 always_export_symbols_CXX=no
12648 enable_shared_with_static_runtimes_CXX=yes
12650 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12651 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12652 # If the export-symbols file already is a .def file (1st line
12653 # is EXPORTS), use it as is; otherwise, prepend...
12654 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12655 cp $export_symbols $output_objdir/$soname.def;
12656 else
12657 echo EXPORTS > $output_objdir/$soname.def;
12658 cat $export_symbols >> $output_objdir/$soname.def;
12660 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12661 else
12662 ld_shlibs_CXX=no
12665 darwin* | rhapsody*)
12668 archive_cmds_need_lc_CXX=no
12669 hardcode_direct_CXX=no
12670 hardcode_automatic_CXX=yes
12671 hardcode_shlibpath_var_CXX=unsupported
12672 if test "$lt_cv_ld_force_load" = "yes"; then
12673 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
12674 else
12675 whole_archive_flag_spec_CXX=''
12677 link_all_deplibs_CXX=yes
12678 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12679 case $cc_basename in
12680 ifort*) _lt_dar_can_shared=yes ;;
12681 *) _lt_dar_can_shared=$GCC ;;
12682 esac
12683 if test "$_lt_dar_can_shared" = "yes"; then
12684 output_verbose_link_cmd=func_echo_all
12685 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
12686 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12687 archive_expsym_cmds_CXX="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}"
12688 module_expsym_cmds_CXX="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}"
12689 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12690 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
12691 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
12694 else
12695 ld_shlibs_CXX=no
12700 dgux*)
12701 case $cc_basename in
12702 ec++*)
12703 # FIXME: insert proper C++ library support
12704 ld_shlibs_CXX=no
12706 ghcx*)
12707 # Green Hills C++ Compiler
12708 # FIXME: insert proper C++ library support
12709 ld_shlibs_CXX=no
12712 # FIXME: insert proper C++ library support
12713 ld_shlibs_CXX=no
12715 esac
12718 freebsd2.*)
12719 # C++ shared libraries reported to be fairly broken before
12720 # switch to ELF
12721 ld_shlibs_CXX=no
12724 freebsd-elf*)
12725 archive_cmds_need_lc_CXX=no
12728 freebsd* | dragonfly*)
12729 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12730 # conventions
12731 ld_shlibs_CXX=yes
12734 gnu*)
12737 haiku*)
12738 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12739 link_all_deplibs_CXX=yes
12742 hpux9*)
12743 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12744 hardcode_libdir_separator_CXX=:
12745 export_dynamic_flag_spec_CXX='${wl}-E'
12746 hardcode_direct_CXX=yes
12747 hardcode_minus_L_CXX=yes # Not in the search PATH,
12748 # but as the default
12749 # location of the library.
12751 case $cc_basename in
12752 CC*)
12753 # FIXME: insert proper C++ library support
12754 ld_shlibs_CXX=no
12756 aCC*)
12757 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12758 # Commands to make compiler produce verbose output that lists
12759 # what "hidden" libraries, object files and flags are used when
12760 # linking a shared library.
12762 # There doesn't appear to be a way to prevent this compiler from
12763 # explicitly linking system object files so we need to strip them
12764 # from the output so that they don't get included in the library
12765 # dependencies.
12766 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
12769 if test "$GXX" = yes; then
12770 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12771 else
12772 # FIXME: insert proper C++ library support
12773 ld_shlibs_CXX=no
12776 esac
12779 hpux10*|hpux11*)
12780 if test $with_gnu_ld = no; then
12781 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12782 hardcode_libdir_separator_CXX=:
12784 case $host_cpu in
12785 hppa*64*|ia64*)
12788 export_dynamic_flag_spec_CXX='${wl}-E'
12790 esac
12792 case $host_cpu in
12793 hppa*64*|ia64*)
12794 hardcode_direct_CXX=no
12795 hardcode_shlibpath_var_CXX=no
12798 hardcode_direct_CXX=yes
12799 hardcode_direct_absolute_CXX=yes
12800 hardcode_minus_L_CXX=yes # Not in the search PATH,
12801 # but as the default
12802 # location of the library.
12804 esac
12806 case $cc_basename in
12807 CC*)
12808 # FIXME: insert proper C++ library support
12809 ld_shlibs_CXX=no
12811 aCC*)
12812 case $host_cpu in
12813 hppa*64*)
12814 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12816 ia64*)
12817 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12820 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12822 esac
12823 # Commands to make compiler produce verbose output that lists
12824 # what "hidden" libraries, object files and flags are used when
12825 # linking a shared library.
12827 # There doesn't appear to be a way to prevent this compiler from
12828 # explicitly linking system object files so we need to strip them
12829 # from the output so that they don't get included in the library
12830 # dependencies.
12831 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
12834 if test "$GXX" = yes; then
12835 if test $with_gnu_ld = no; then
12836 case $host_cpu in
12837 hppa*64*)
12838 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12840 ia64*)
12841 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12844 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12846 esac
12848 else
12849 # FIXME: insert proper C++ library support
12850 ld_shlibs_CXX=no
12853 esac
12856 interix[3-9]*)
12857 hardcode_direct_CXX=no
12858 hardcode_shlibpath_var_CXX=no
12859 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12860 export_dynamic_flag_spec_CXX='${wl}-E'
12861 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12862 # Instead, shared libraries are loaded at an image base (0x10000000 by
12863 # default) and relocated if they conflict, which is a slow very memory
12864 # consuming and fragmenting process. To avoid this, we pick a random,
12865 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12866 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12867 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12868 archive_expsym_cmds_CXX='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'
12870 irix5* | irix6*)
12871 case $cc_basename in
12872 CC*)
12873 # SGI C++
12874 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
12876 # Archives containing C++ object files must be created using
12877 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12878 # necessary to make sure instantiated templates are included
12879 # in the archive.
12880 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12883 if test "$GXX" = yes; then
12884 if test "$with_gnu_ld" = no; then
12885 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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'
12886 else
12887 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
12890 link_all_deplibs_CXX=yes
12892 esac
12893 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12894 hardcode_libdir_separator_CXX=:
12895 inherit_rpath_CXX=yes
12898 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12899 case $cc_basename in
12900 KCC*)
12901 # Kuck and Associates, Inc. (KAI) C++ Compiler
12903 # KCC will only create a shared library if the output file
12904 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12905 # to its proper name (with version) after linking.
12906 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12907 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
12908 # Commands to make compiler produce verbose output that lists
12909 # what "hidden" libraries, object files and flags are used when
12910 # linking a shared library.
12912 # There doesn't appear to be a way to prevent this compiler from
12913 # explicitly linking system object files so we need to strip them
12914 # from the output so that they don't get included in the library
12915 # dependencies.
12916 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
12918 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12919 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12921 # Archives containing C++ object files must be created using
12922 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12923 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12925 icpc* | ecpc* )
12926 # Intel C++
12927 with_gnu_ld=yes
12928 # version 8.0 and above of icpc choke on multiply defined symbols
12929 # if we add $predep_objects and $postdep_objects, however 7.1 and
12930 # earlier do not add the objects themselves.
12931 case `$CC -V 2>&1` in
12932 *"Version 7."*)
12933 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12934 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12936 *) # Version 8.0 or newer
12937 tmp_idyn=
12938 case $host_cpu in
12939 ia64*) tmp_idyn=' -i_dynamic';;
12940 esac
12941 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12942 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12944 esac
12945 archive_cmds_need_lc_CXX=no
12946 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12947 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12948 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12950 pgCC* | pgcpp*)
12951 # Portland Group C++ compiler
12952 case `$CC -V` in
12953 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
12954 prelink_cmds_CXX='tpldir=Template.dir~
12955 rm -rf $tpldir~
12956 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12957 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
12958 old_archive_cmds_CXX='tpldir=Template.dir~
12959 rm -rf $tpldir~
12960 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12961 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
12962 $RANLIB $oldlib'
12963 archive_cmds_CXX='tpldir=Template.dir~
12964 rm -rf $tpldir~
12965 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12966 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12967 archive_expsym_cmds_CXX='tpldir=Template.dir~
12968 rm -rf $tpldir~
12969 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12970 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
12972 *) # Version 6 and above use weak symbols
12973 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12974 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
12976 esac
12978 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12979 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12980 whole_archive_flag_spec_CXX='${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'
12982 cxx*)
12983 # Compaq C++
12984 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12985 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
12987 runpath_var=LD_RUN_PATH
12988 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12989 hardcode_libdir_separator_CXX=:
12991 # Commands to make compiler produce verbose output that lists
12992 # what "hidden" libraries, object files and flags are used when
12993 # linking a shared library.
12995 # There doesn't appear to be a way to prevent this compiler from
12996 # explicitly linking system object files so we need to strip them
12997 # from the output so that they don't get included in the library
12998 # dependencies.
12999 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
13001 xl* | mpixl* | bgxl*)
13002 # IBM XL 8.0 on PPC, with GNU ld
13003 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13004 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13005 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13006 if test "x$supports_anon_versioning" = xyes; then
13007 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13008 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13009 echo "local: *; };" >> $output_objdir/$libname.ver~
13010 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13014 case `$CC -V 2>&1 | sed 5q` in
13015 *Sun\ C*)
13016 # Sun C++ 5.9
13017 no_undefined_flag_CXX=' -zdefs'
13018 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13019 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
13020 hardcode_libdir_flag_spec_CXX='-R$libdir'
13021 whole_archive_flag_spec_CXX='${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'
13022 compiler_needs_object_CXX=yes
13024 # Not sure whether something based on
13025 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13026 # would be better.
13027 output_verbose_link_cmd='func_echo_all'
13029 # Archives containing C++ object files must be created using
13030 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13031 # necessary to make sure instantiated templates are included
13032 # in the archive.
13033 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13035 esac
13037 esac
13040 lynxos*)
13041 # FIXME: insert proper C++ library support
13042 ld_shlibs_CXX=no
13045 m88k*)
13046 # FIXME: insert proper C++ library support
13047 ld_shlibs_CXX=no
13050 mvs*)
13051 case $cc_basename in
13052 cxx*)
13053 # FIXME: insert proper C++ library support
13054 ld_shlibs_CXX=no
13057 # FIXME: insert proper C++ library support
13058 ld_shlibs_CXX=no
13060 esac
13063 netbsd*)
13064 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13065 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13066 wlarc=
13067 hardcode_libdir_flag_spec_CXX='-R$libdir'
13068 hardcode_direct_CXX=yes
13069 hardcode_shlibpath_var_CXX=no
13071 # Workaround some broken pre-1.5 toolchains
13072 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13075 *nto* | *qnx*)
13076 ld_shlibs_CXX=yes
13079 openbsd2*)
13080 # C++ shared libraries are fairly broken
13081 ld_shlibs_CXX=no
13084 openbsd*)
13085 if test -f /usr/libexec/ld.so; then
13086 hardcode_direct_CXX=yes
13087 hardcode_shlibpath_var_CXX=no
13088 hardcode_direct_absolute_CXX=yes
13089 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13090 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13091 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13092 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13093 export_dynamic_flag_spec_CXX='${wl}-E'
13094 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13096 output_verbose_link_cmd=func_echo_all
13097 else
13098 ld_shlibs_CXX=no
13102 osf3* | osf4* | osf5*)
13103 case $cc_basename in
13104 KCC*)
13105 # Kuck and Associates, Inc. (KAI) C++ Compiler
13107 # KCC will only create a shared library if the output file
13108 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13109 # to its proper name (with version) after linking.
13110 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
13112 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13113 hardcode_libdir_separator_CXX=:
13115 # Archives containing C++ object files must be created using
13116 # the KAI C++ compiler.
13117 case $host in
13118 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13119 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13120 esac
13122 RCC*)
13123 # Rational C++ 2.4.1
13124 # FIXME: insert proper C++ library support
13125 ld_shlibs_CXX=no
13127 cxx*)
13128 case $host in
13129 osf3*)
13130 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13131 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13132 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13135 allow_undefined_flag_CXX=' -expect_unresolved \*'
13136 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13137 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13138 echo "-hidden">> $lib.exp~
13139 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
13140 $RM $lib.exp'
13141 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13143 esac
13145 hardcode_libdir_separator_CXX=:
13147 # Commands to make compiler produce verbose output that lists
13148 # what "hidden" libraries, object files and flags are used when
13149 # linking a shared library.
13151 # There doesn't appear to be a way to prevent this compiler from
13152 # explicitly linking system object files so we need to strip them
13153 # from the output so that they don't get included in the library
13154 # dependencies.
13155 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13158 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13159 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13160 case $host in
13161 osf3*)
13162 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
13165 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
13167 esac
13169 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13170 hardcode_libdir_separator_CXX=:
13172 # Commands to make compiler produce verbose output that lists
13173 # what "hidden" libraries, object files and flags are used when
13174 # linking a shared library.
13175 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13177 else
13178 # FIXME: insert proper C++ library support
13179 ld_shlibs_CXX=no
13182 esac
13185 psos*)
13186 # FIXME: insert proper C++ library support
13187 ld_shlibs_CXX=no
13190 sunos4*)
13191 case $cc_basename in
13192 CC*)
13193 # Sun C++ 4.x
13194 # FIXME: insert proper C++ library support
13195 ld_shlibs_CXX=no
13197 lcc*)
13198 # Lucid
13199 # FIXME: insert proper C++ library support
13200 ld_shlibs_CXX=no
13203 # FIXME: insert proper C++ library support
13204 ld_shlibs_CXX=no
13206 esac
13209 solaris*)
13210 case $cc_basename in
13211 CC*)
13212 # Sun C++ 4.2, 5.x and Centerline C++
13213 archive_cmds_need_lc_CXX=yes
13214 no_undefined_flag_CXX=' -zdefs'
13215 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13216 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13217 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13219 hardcode_libdir_flag_spec_CXX='-R$libdir'
13220 hardcode_shlibpath_var_CXX=no
13221 case $host_os in
13222 solaris2.[0-5] | solaris2.[0-5].*) ;;
13224 # The compiler driver will combine and reorder linker options,
13225 # but understands `-z linker_flag'.
13226 # Supported since Solaris 2.6 (maybe 2.5.1?)
13227 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13229 esac
13230 link_all_deplibs_CXX=yes
13232 output_verbose_link_cmd='func_echo_all'
13234 # Archives containing C++ object files must be created using
13235 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13236 # necessary to make sure instantiated templates are included
13237 # in the archive.
13238 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13240 gcx*)
13241 # Green Hills C++ Compiler
13242 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13244 # The C++ compiler must be used to create the archive.
13245 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13248 # GNU C++ compiler with Solaris linker
13249 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13250 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13251 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13252 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13253 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13254 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13256 # Commands to make compiler produce verbose output that lists
13257 # what "hidden" libraries, object files and flags are used when
13258 # linking a shared library.
13259 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13260 else
13261 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13262 # platform.
13263 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13264 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13265 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13267 # Commands to make compiler produce verbose output that lists
13268 # what "hidden" libraries, object files and flags are used when
13269 # linking a shared library.
13270 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13273 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13274 case $host_os in
13275 solaris2.[0-5] | solaris2.[0-5].*) ;;
13277 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13279 esac
13282 esac
13285 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13286 no_undefined_flag_CXX='${wl}-z,text'
13287 archive_cmds_need_lc_CXX=no
13288 hardcode_shlibpath_var_CXX=no
13289 runpath_var='LD_RUN_PATH'
13291 case $cc_basename in
13292 CC*)
13293 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13294 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13297 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13298 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13300 esac
13303 sysv5* | sco3.2v5* | sco5v6*)
13304 # Note: We can NOT use -z defs as we might desire, because we do not
13305 # link with -lc, and that would cause any symbols used from libc to
13306 # always be unresolved, which means just about no library would
13307 # ever link correctly. If we're not using GNU ld we use -z text
13308 # though, which does catch some bad symbols but isn't as heavy-handed
13309 # as -z defs.
13310 no_undefined_flag_CXX='${wl}-z,text'
13311 allow_undefined_flag_CXX='${wl}-z,nodefs'
13312 archive_cmds_need_lc_CXX=no
13313 hardcode_shlibpath_var_CXX=no
13314 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13315 hardcode_libdir_separator_CXX=':'
13316 link_all_deplibs_CXX=yes
13317 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13318 runpath_var='LD_RUN_PATH'
13320 case $cc_basename in
13321 CC*)
13322 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13323 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13324 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13325 '"$old_archive_cmds_CXX"
13326 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13327 '"$reload_cmds_CXX"
13330 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13331 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13333 esac
13336 tandem*)
13337 case $cc_basename in
13338 NCC*)
13339 # NonStop-UX NCC 3.20
13340 # FIXME: insert proper C++ library support
13341 ld_shlibs_CXX=no
13344 # FIXME: insert proper C++ library support
13345 ld_shlibs_CXX=no
13347 esac
13350 vxworks*)
13351 # For VxWorks ports, we assume the use of a GNU linker with
13352 # standard elf conventions.
13353 ld_shlibs_CXX=yes
13357 # FIXME: insert proper C++ library support
13358 ld_shlibs_CXX=no
13360 esac
13362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13363 $as_echo "$ld_shlibs_CXX" >&6; }
13364 test "$ld_shlibs_CXX" = no && can_build_shared=no
13366 GCC_CXX="$GXX"
13367 LD_CXX="$LD"
13369 ## CAVEAT EMPTOR:
13370 ## There is no encapsulation within the following macros, do not change
13371 ## the running order or otherwise move them around unless you know exactly
13372 ## what you are doing...
13373 # Dependencies to place before and after the object being linked:
13374 predep_objects_CXX=
13375 postdep_objects_CXX=
13376 predeps_CXX=
13377 postdeps_CXX=
13378 compiler_lib_search_path_CXX=
13380 cat > conftest.$ac_ext <<_LT_EOF
13381 class Foo
13383 public:
13384 Foo (void) { a = 0; }
13385 private:
13386 int a;
13388 _LT_EOF
13390 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13391 (eval $ac_compile) 2>&5
13392 ac_status=$?
13393 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13394 test $ac_status = 0; }; then
13395 # Parse the compiler output and extract the necessary
13396 # objects, libraries and library flags.
13398 # Sentinel used to keep track of whether or not we are before
13399 # the conftest object file.
13400 pre_test_object_deps_done=no
13402 for p in `eval "$output_verbose_link_cmd"`; do
13403 case $p in
13405 -L* | -R* | -l*)
13406 # Some compilers place space between "-{L,R}" and the path.
13407 # Remove the space.
13408 if test $p = "-L" ||
13409 test $p = "-R"; then
13410 prev=$p
13411 continue
13412 else
13413 prev=
13416 if test "$pre_test_object_deps_done" = no; then
13417 case $p in
13418 -L* | -R*)
13419 # Internal compiler library paths should come after those
13420 # provided the user. The postdeps already come after the
13421 # user supplied libs so there is no need to process them.
13422 if test -z "$compiler_lib_search_path_CXX"; then
13423 compiler_lib_search_path_CXX="${prev}${p}"
13424 else
13425 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13428 # The "-l" case would never come before the object being
13429 # linked, so don't bother handling this case.
13430 esac
13431 else
13432 if test -z "$postdeps_CXX"; then
13433 postdeps_CXX="${prev}${p}"
13434 else
13435 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13440 *.$objext)
13441 # This assumes that the test object file only shows up
13442 # once in the compiler output.
13443 if test "$p" = "conftest.$objext"; then
13444 pre_test_object_deps_done=yes
13445 continue
13448 if test "$pre_test_object_deps_done" = no; then
13449 if test -z "$predep_objects_CXX"; then
13450 predep_objects_CXX="$p"
13451 else
13452 predep_objects_CXX="$predep_objects_CXX $p"
13454 else
13455 if test -z "$postdep_objects_CXX"; then
13456 postdep_objects_CXX="$p"
13457 else
13458 postdep_objects_CXX="$postdep_objects_CXX $p"
13463 *) ;; # Ignore the rest.
13465 esac
13466 done
13468 # Clean up.
13469 rm -f a.out a.exe
13470 else
13471 echo "libtool.m4: error: problem compiling CXX test program"
13474 $RM -f confest.$objext
13476 # PORTME: override above test on systems where it is broken
13477 case $host_os in
13478 interix[3-9]*)
13479 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13480 # hack all around it, let's just trust "g++" to DTRT.
13481 predep_objects_CXX=
13482 postdep_objects_CXX=
13483 postdeps_CXX=
13486 linux*)
13487 case `$CC -V 2>&1 | sed 5q` in
13488 *Sun\ C*)
13489 # Sun C++ 5.9
13491 # The more standards-conforming stlport4 library is
13492 # incompatible with the Cstd library. Avoid specifying
13493 # it if it's in CXXFLAGS. Ignore libCrun as
13494 # -library=stlport4 depends on it.
13495 case " $CXX $CXXFLAGS " in
13496 *" -library=stlport4 "*)
13497 solaris_use_stlport4=yes
13499 esac
13501 if test "$solaris_use_stlport4" != yes; then
13502 postdeps_CXX='-library=Cstd -library=Crun'
13505 esac
13508 solaris*)
13509 case $cc_basename in
13510 CC*)
13511 # The more standards-conforming stlport4 library is
13512 # incompatible with the Cstd library. Avoid specifying
13513 # it if it's in CXXFLAGS. Ignore libCrun as
13514 # -library=stlport4 depends on it.
13515 case " $CXX $CXXFLAGS " in
13516 *" -library=stlport4 "*)
13517 solaris_use_stlport4=yes
13519 esac
13521 # Adding this requires a known-good setup of shared libraries for
13522 # Sun compiler versions before 5.6, else PIC objects from an old
13523 # archive will be linked into the output, leading to subtle bugs.
13524 if test "$solaris_use_stlport4" != yes; then
13525 postdeps_CXX='-library=Cstd -library=Crun'
13528 esac
13530 esac
13533 case " $postdeps_CXX " in
13534 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13535 esac
13536 compiler_lib_search_dirs_CXX=
13537 if test -n "${compiler_lib_search_path_CXX}"; then
13538 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13571 lt_prog_compiler_wl_CXX=
13572 lt_prog_compiler_pic_CXX=
13573 lt_prog_compiler_static_CXX=
13575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13576 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13578 # C++ specific cases for pic, static, wl, etc.
13579 if test "$GXX" = yes; then
13580 lt_prog_compiler_wl_CXX='-Wl,'
13581 lt_prog_compiler_static_CXX='-static'
13583 case $host_os in
13584 aix*)
13585 # All AIX code is PIC.
13586 if test "$host_cpu" = ia64; then
13587 # AIX 5 now supports IA64 processor
13588 lt_prog_compiler_static_CXX='-Bstatic'
13590 lt_prog_compiler_pic_CXX='-fPIC'
13593 amigaos*)
13594 case $host_cpu in
13595 powerpc)
13596 # see comment about AmigaOS4 .so support
13597 lt_prog_compiler_pic_CXX='-fPIC'
13599 m68k)
13600 # FIXME: we need at least 68020 code to build shared libraries, but
13601 # adding the `-m68020' flag to GCC prevents building anything better,
13602 # like `-m68040'.
13603 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13605 esac
13608 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13609 # PIC is the default for these OSes.
13611 mingw* | cygwin* | os2* | pw32* | cegcc*)
13612 # This hack is so that the source file can tell whether it is being
13613 # built for inclusion in a dll (and should export symbols for example).
13614 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13615 # (--disable-auto-import) libraries
13616 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13618 darwin* | rhapsody*)
13619 # PIC is the default on this platform
13620 # Common symbols not allowed in MH_DYLIB files
13621 lt_prog_compiler_pic_CXX='-fno-common'
13623 *djgpp*)
13624 # DJGPP does not support shared libraries at all
13625 lt_prog_compiler_pic_CXX=
13627 haiku*)
13628 # PIC is the default for Haiku.
13629 # The "-static" flag exists, but is broken.
13630 lt_prog_compiler_static_CXX=
13632 interix[3-9]*)
13633 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13634 # Instead, we relocate shared libraries at runtime.
13636 sysv4*MP*)
13637 if test -d /usr/nec; then
13638 lt_prog_compiler_pic_CXX=-Kconform_pic
13641 hpux*)
13642 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13643 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13644 # sets the default TLS model and affects inlining.
13645 case $host_cpu in
13646 hppa*64*)
13649 lt_prog_compiler_pic_CXX='-fPIC'
13651 esac
13653 *qnx* | *nto*)
13654 # QNX uses GNU C++, but need to define -shared option too, otherwise
13655 # it will coredump.
13656 lt_prog_compiler_pic_CXX='-fPIC -shared'
13659 lt_prog_compiler_pic_CXX='-fPIC'
13661 esac
13662 else
13663 case $host_os in
13664 aix[4-9]*)
13665 # All AIX code is PIC.
13666 if test "$host_cpu" = ia64; then
13667 # AIX 5 now supports IA64 processor
13668 lt_prog_compiler_static_CXX='-Bstatic'
13669 else
13670 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13673 chorus*)
13674 case $cc_basename in
13675 cxch68*)
13676 # Green Hills C++ Compiler
13677 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
13679 esac
13681 dgux*)
13682 case $cc_basename in
13683 ec++*)
13684 lt_prog_compiler_pic_CXX='-KPIC'
13686 ghcx*)
13687 # Green Hills C++ Compiler
13688 lt_prog_compiler_pic_CXX='-pic'
13692 esac
13694 freebsd* | dragonfly*)
13695 # FreeBSD uses GNU C++
13697 hpux9* | hpux10* | hpux11*)
13698 case $cc_basename in
13699 CC*)
13700 lt_prog_compiler_wl_CXX='-Wl,'
13701 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13702 if test "$host_cpu" != ia64; then
13703 lt_prog_compiler_pic_CXX='+Z'
13706 aCC*)
13707 lt_prog_compiler_wl_CXX='-Wl,'
13708 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13709 case $host_cpu in
13710 hppa*64*|ia64*)
13711 # +Z the default
13714 lt_prog_compiler_pic_CXX='+Z'
13716 esac
13720 esac
13722 interix*)
13723 # This is c89, which is MS Visual C++ (no shared libs)
13724 # Anyone wants to do a port?
13726 irix5* | irix6* | nonstopux*)
13727 case $cc_basename in
13728 CC*)
13729 lt_prog_compiler_wl_CXX='-Wl,'
13730 lt_prog_compiler_static_CXX='-non_shared'
13731 # CC pic flag -KPIC is the default.
13735 esac
13737 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13738 case $cc_basename in
13739 KCC*)
13740 # KAI C++ Compiler
13741 lt_prog_compiler_wl_CXX='--backend -Wl,'
13742 lt_prog_compiler_pic_CXX='-fPIC'
13744 ecpc* )
13745 # old Intel C++ for x86_64 which still supported -KPIC.
13746 lt_prog_compiler_wl_CXX='-Wl,'
13747 lt_prog_compiler_pic_CXX='-KPIC'
13748 lt_prog_compiler_static_CXX='-static'
13750 icpc* )
13751 # Intel C++, used to be incompatible with GCC.
13752 # ICC 10 doesn't accept -KPIC any more.
13753 lt_prog_compiler_wl_CXX='-Wl,'
13754 lt_prog_compiler_pic_CXX='-fPIC'
13755 lt_prog_compiler_static_CXX='-static'
13757 pgCC* | pgcpp*)
13758 # Portland Group C++ compiler
13759 lt_prog_compiler_wl_CXX='-Wl,'
13760 lt_prog_compiler_pic_CXX='-fpic'
13761 lt_prog_compiler_static_CXX='-Bstatic'
13763 cxx*)
13764 # Compaq C++
13765 # Make sure the PIC flag is empty. It appears that all Alpha
13766 # Linux and Compaq Tru64 Unix objects are PIC.
13767 lt_prog_compiler_pic_CXX=
13768 lt_prog_compiler_static_CXX='-non_shared'
13770 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13771 # IBM XL 8.0, 9.0 on PPC and BlueGene
13772 lt_prog_compiler_wl_CXX='-Wl,'
13773 lt_prog_compiler_pic_CXX='-qpic'
13774 lt_prog_compiler_static_CXX='-qstaticlink'
13777 case `$CC -V 2>&1 | sed 5q` in
13778 *Sun\ C*)
13779 # Sun C++ 5.9
13780 lt_prog_compiler_pic_CXX='-KPIC'
13781 lt_prog_compiler_static_CXX='-Bstatic'
13782 lt_prog_compiler_wl_CXX='-Qoption ld '
13784 esac
13786 esac
13788 lynxos*)
13790 m88k*)
13792 mvs*)
13793 case $cc_basename in
13794 cxx*)
13795 lt_prog_compiler_pic_CXX='-W c,exportall'
13799 esac
13801 netbsd*)
13803 *qnx* | *nto*)
13804 # QNX uses GNU C++, but need to define -shared option too, otherwise
13805 # it will coredump.
13806 lt_prog_compiler_pic_CXX='-fPIC -shared'
13808 osf3* | osf4* | osf5*)
13809 case $cc_basename in
13810 KCC*)
13811 lt_prog_compiler_wl_CXX='--backend -Wl,'
13813 RCC*)
13814 # Rational C++ 2.4.1
13815 lt_prog_compiler_pic_CXX='-pic'
13817 cxx*)
13818 # Digital/Compaq C++
13819 lt_prog_compiler_wl_CXX='-Wl,'
13820 # Make sure the PIC flag is empty. It appears that all Alpha
13821 # Linux and Compaq Tru64 Unix objects are PIC.
13822 lt_prog_compiler_pic_CXX=
13823 lt_prog_compiler_static_CXX='-non_shared'
13827 esac
13829 psos*)
13831 solaris*)
13832 case $cc_basename in
13833 CC*)
13834 # Sun C++ 4.2, 5.x and Centerline C++
13835 lt_prog_compiler_pic_CXX='-KPIC'
13836 lt_prog_compiler_static_CXX='-Bstatic'
13837 lt_prog_compiler_wl_CXX='-Qoption ld '
13839 gcx*)
13840 # Green Hills C++ Compiler
13841 lt_prog_compiler_pic_CXX='-PIC'
13845 esac
13847 sunos4*)
13848 case $cc_basename in
13849 CC*)
13850 # Sun C++ 4.x
13851 lt_prog_compiler_pic_CXX='-pic'
13852 lt_prog_compiler_static_CXX='-Bstatic'
13854 lcc*)
13855 # Lucid
13856 lt_prog_compiler_pic_CXX='-pic'
13860 esac
13862 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13863 case $cc_basename in
13864 CC*)
13865 lt_prog_compiler_wl_CXX='-Wl,'
13866 lt_prog_compiler_pic_CXX='-KPIC'
13867 lt_prog_compiler_static_CXX='-Bstatic'
13869 esac
13871 tandem*)
13872 case $cc_basename in
13873 NCC*)
13874 # NonStop-UX NCC 3.20
13875 lt_prog_compiler_pic_CXX='-KPIC'
13879 esac
13881 vxworks*)
13884 lt_prog_compiler_can_build_shared_CXX=no
13886 esac
13889 case $host_os in
13890 # For platforms which do not support PIC, -DPIC is meaningless:
13891 *djgpp*)
13892 lt_prog_compiler_pic_CXX=
13895 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13897 esac
13898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13899 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13904 # Check to make sure the PIC flag actually works.
13906 if test -n "$lt_prog_compiler_pic_CXX"; then
13907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13908 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13909 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
13910 $as_echo_n "(cached) " >&6
13911 else
13912 lt_cv_prog_compiler_pic_works_CXX=no
13913 ac_outfile=conftest.$ac_objext
13914 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13915 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13916 # Insert the option either (1) after the last *FLAGS variable, or
13917 # (2) before a word containing "conftest.", or (3) at the end.
13918 # Note that $ac_compile itself does not contain backslashes and begins
13919 # with a dollar sign (not a hyphen), so the echo should work correctly.
13920 # The option is referenced via a variable to avoid confusing sed.
13921 lt_compile=`echo "$ac_compile" | $SED \
13922 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13923 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13924 -e 's:$: $lt_compiler_flag:'`
13925 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13926 (eval "$lt_compile" 2>conftest.err)
13927 ac_status=$?
13928 cat conftest.err >&5
13929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13930 if (exit $ac_status) && test -s "$ac_outfile"; then
13931 # The compiler can only warn and ignore the option if not recognized
13932 # So say no if there are warnings other than the usual output.
13933 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13934 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13935 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13936 lt_cv_prog_compiler_pic_works_CXX=yes
13939 $RM conftest*
13942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13943 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13945 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13946 case $lt_prog_compiler_pic_CXX in
13947 "" | " "*) ;;
13948 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13949 esac
13950 else
13951 lt_prog_compiler_pic_CXX=
13952 lt_prog_compiler_can_build_shared_CXX=no
13960 # Check to make sure the static flag actually works.
13962 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13964 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13965 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
13966 $as_echo_n "(cached) " >&6
13967 else
13968 lt_cv_prog_compiler_static_works_CXX=no
13969 save_LDFLAGS="$LDFLAGS"
13970 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13971 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13972 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13973 # The linker can only warn and ignore the option if not recognized
13974 # So say no if there are warnings
13975 if test -s conftest.err; then
13976 # Append any errors to the config.log.
13977 cat conftest.err 1>&5
13978 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13979 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13980 if diff conftest.exp conftest.er2 >/dev/null; then
13981 lt_cv_prog_compiler_static_works_CXX=yes
13983 else
13984 lt_cv_prog_compiler_static_works_CXX=yes
13987 $RM -r conftest*
13988 LDFLAGS="$save_LDFLAGS"
13991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13992 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13994 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13996 else
13997 lt_prog_compiler_static_CXX=
14003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14004 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14005 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14006 $as_echo_n "(cached) " >&6
14007 else
14008 lt_cv_prog_compiler_c_o_CXX=no
14009 $RM -r conftest 2>/dev/null
14010 mkdir conftest
14011 cd conftest
14012 mkdir out
14013 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14015 lt_compiler_flag="-o out/conftest2.$ac_objext"
14016 # Insert the option either (1) after the last *FLAGS variable, or
14017 # (2) before a word containing "conftest.", or (3) at the end.
14018 # Note that $ac_compile itself does not contain backslashes and begins
14019 # with a dollar sign (not a hyphen), so the echo should work correctly.
14020 lt_compile=`echo "$ac_compile" | $SED \
14021 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14022 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14023 -e 's:$: $lt_compiler_flag:'`
14024 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14025 (eval "$lt_compile" 2>out/conftest.err)
14026 ac_status=$?
14027 cat out/conftest.err >&5
14028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14029 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14030 then
14031 # The compiler can only warn and ignore the option if not recognized
14032 # So say no if there are warnings
14033 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14034 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14035 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14036 lt_cv_prog_compiler_c_o_CXX=yes
14039 chmod u+w . 2>&5
14040 $RM conftest*
14041 # SGI C++ compiler will create directory out/ii_files/ for
14042 # template instantiation
14043 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14044 $RM out/* && rmdir out
14045 cd ..
14046 $RM -r conftest
14047 $RM conftest*
14050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14051 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14056 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14057 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14058 $as_echo_n "(cached) " >&6
14059 else
14060 lt_cv_prog_compiler_c_o_CXX=no
14061 $RM -r conftest 2>/dev/null
14062 mkdir conftest
14063 cd conftest
14064 mkdir out
14065 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14067 lt_compiler_flag="-o out/conftest2.$ac_objext"
14068 # Insert the option either (1) after the last *FLAGS variable, or
14069 # (2) before a word containing "conftest.", or (3) at the end.
14070 # Note that $ac_compile itself does not contain backslashes and begins
14071 # with a dollar sign (not a hyphen), so the echo should work correctly.
14072 lt_compile=`echo "$ac_compile" | $SED \
14073 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14074 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14075 -e 's:$: $lt_compiler_flag:'`
14076 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14077 (eval "$lt_compile" 2>out/conftest.err)
14078 ac_status=$?
14079 cat out/conftest.err >&5
14080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14081 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14082 then
14083 # The compiler can only warn and ignore the option if not recognized
14084 # So say no if there are warnings
14085 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14086 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14087 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14088 lt_cv_prog_compiler_c_o_CXX=yes
14091 chmod u+w . 2>&5
14092 $RM conftest*
14093 # SGI C++ compiler will create directory out/ii_files/ for
14094 # template instantiation
14095 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14096 $RM out/* && rmdir out
14097 cd ..
14098 $RM -r conftest
14099 $RM conftest*
14102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14103 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14108 hard_links="nottested"
14109 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14110 # do not overwrite the value of need_locks provided by the user
14111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14112 $as_echo_n "checking if we can lock with hard links... " >&6; }
14113 hard_links=yes
14114 $RM conftest*
14115 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14116 touch conftest.a
14117 ln conftest.a conftest.b 2>&5 || hard_links=no
14118 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14120 $as_echo "$hard_links" >&6; }
14121 if test "$hard_links" = no; then
14122 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14123 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14124 need_locks=warn
14126 else
14127 need_locks=no
14132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14133 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14135 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14136 case $host_os in
14137 aix[4-9]*)
14138 # If we're using GNU nm, then we don't want the "-C" option.
14139 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14140 # Also, AIX nm treats weak defined symbols like other global defined
14141 # symbols, whereas GNU nm marks them as "W".
14142 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14143 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14144 else
14145 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14148 pw32*)
14149 export_symbols_cmds_CXX="$ltdll_cmds"
14151 cygwin* | mingw* | cegcc*)
14152 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
14155 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14157 esac
14158 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14161 $as_echo "$ld_shlibs_CXX" >&6; }
14162 test "$ld_shlibs_CXX" = no && can_build_shared=no
14164 with_gnu_ld_CXX=$with_gnu_ld
14172 # Do we need to explicitly link libc?
14174 case "x$archive_cmds_need_lc_CXX" in
14175 x|xyes)
14176 # Assume -lc should be added
14177 archive_cmds_need_lc_CXX=yes
14179 if test "$enable_shared" = yes && test "$GCC" = yes; then
14180 case $archive_cmds_CXX in
14181 *'~'*)
14182 # FIXME: we may have to deal with multi-command sequences.
14184 '$CC '*)
14185 # Test whether the compiler implicitly links with -lc since on some
14186 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14187 # to ld, don't add -lc before -lgcc.
14188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14189 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14190 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14191 $as_echo_n "(cached) " >&6
14192 else
14193 $RM conftest*
14194 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14196 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14197 (eval $ac_compile) 2>&5
14198 ac_status=$?
14199 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14200 test $ac_status = 0; } 2>conftest.err; then
14201 soname=conftest
14202 lib=conftest
14203 libobjs=conftest.$ac_objext
14204 deplibs=
14205 wl=$lt_prog_compiler_wl_CXX
14206 pic_flag=$lt_prog_compiler_pic_CXX
14207 compiler_flags=-v
14208 linker_flags=-v
14209 verstring=
14210 output_objdir=.
14211 libname=conftest
14212 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14213 allow_undefined_flag_CXX=
14214 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14215 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14216 ac_status=$?
14217 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14218 test $ac_status = 0; }
14219 then
14220 lt_cv_archive_cmds_need_lc_CXX=no
14221 else
14222 lt_cv_archive_cmds_need_lc_CXX=yes
14224 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14225 else
14226 cat conftest.err 1>&5
14228 $RM conftest*
14231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14232 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14233 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14235 esac
14238 esac
14303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14304 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14306 library_names_spec=
14307 libname_spec='lib$name'
14308 soname_spec=
14309 shrext_cmds=".so"
14310 postinstall_cmds=
14311 postuninstall_cmds=
14312 finish_cmds=
14313 finish_eval=
14314 shlibpath_var=
14315 shlibpath_overrides_runpath=unknown
14316 version_type=none
14317 dynamic_linker="$host_os ld.so"
14318 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14319 need_lib_prefix=unknown
14320 hardcode_into_libs=no
14322 # when you set need_version to no, make sure it does not cause -set_version
14323 # flags to be left without arguments
14324 need_version=unknown
14326 case $host_os in
14327 aix3*)
14328 version_type=linux
14329 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14330 shlibpath_var=LIBPATH
14332 # AIX 3 has no versioning support, so we append a major version to the name.
14333 soname_spec='${libname}${release}${shared_ext}$major'
14336 aix[4-9]*)
14337 version_type=linux
14338 need_lib_prefix=no
14339 need_version=no
14340 hardcode_into_libs=yes
14341 if test "$host_cpu" = ia64; then
14342 # AIX 5 supports IA64
14343 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14344 shlibpath_var=LD_LIBRARY_PATH
14345 else
14346 # With GCC up to 2.95.x, collect2 would create an import file
14347 # for dependence libraries. The import file would start with
14348 # the line `#! .'. This would cause the generated library to
14349 # depend on `.', always an invalid library. This was fixed in
14350 # development snapshots of GCC prior to 3.0.
14351 case $host_os in
14352 aix4 | aix4.[01] | aix4.[01].*)
14353 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14354 echo ' yes '
14355 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14357 else
14358 can_build_shared=no
14361 esac
14362 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14363 # soname into executable. Probably we can add versioning support to
14364 # collect2, so additional links can be useful in future.
14365 if test "$aix_use_runtimelinking" = yes; then
14366 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14367 # instead of lib<name>.a to let people know that these are not
14368 # typical AIX shared libraries.
14369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14370 else
14371 # We preserve .a as extension for shared libraries through AIX4.2
14372 # and later when we are not doing run time linking.
14373 library_names_spec='${libname}${release}.a $libname.a'
14374 soname_spec='${libname}${release}${shared_ext}$major'
14376 shlibpath_var=LIBPATH
14380 amigaos*)
14381 case $host_cpu in
14382 powerpc)
14383 # Since July 2007 AmigaOS4 officially supports .so libraries.
14384 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14387 m68k)
14388 library_names_spec='$libname.ixlibrary $libname.a'
14389 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14390 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'
14392 esac
14395 beos*)
14396 library_names_spec='${libname}${shared_ext}'
14397 dynamic_linker="$host_os ld.so"
14398 shlibpath_var=LIBRARY_PATH
14401 bsdi[45]*)
14402 version_type=linux
14403 need_version=no
14404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14405 soname_spec='${libname}${release}${shared_ext}$major'
14406 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14407 shlibpath_var=LD_LIBRARY_PATH
14408 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14409 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14410 # the default ld.so.conf also contains /usr/contrib/lib and
14411 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14412 # libtool to hard-code these into programs
14415 cygwin* | mingw* | pw32* | cegcc*)
14416 version_type=windows
14417 shrext_cmds=".dll"
14418 need_version=no
14419 need_lib_prefix=no
14421 case $GCC,$host_os in
14422 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14423 library_names_spec='$libname.dll.a'
14424 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14425 postinstall_cmds='base_file=`basename \${file}`~
14426 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14427 dldir=$destdir/`dirname \$dlpath`~
14428 test -d \$dldir || mkdir -p \$dldir~
14429 $install_prog $dir/$dlname \$dldir/$dlname~
14430 chmod a+x \$dldir/$dlname~
14431 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14432 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14434 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14435 dlpath=$dir/\$dldll~
14436 $RM \$dlpath'
14437 shlibpath_overrides_runpath=yes
14439 case $host_os in
14440 cygwin*)
14441 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14442 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14445 mingw* | cegcc*)
14446 # MinGW DLLs use traditional 'lib' prefix
14447 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14449 pw32*)
14450 # pw32 DLLs use 'pw' prefix rather than 'lib'
14451 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14453 esac
14457 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14459 esac
14460 dynamic_linker='Win32 ld.exe'
14461 # FIXME: first we should search . and the directory the executable is in
14462 shlibpath_var=PATH
14465 darwin* | rhapsody*)
14466 dynamic_linker="$host_os dyld"
14467 version_type=darwin
14468 need_lib_prefix=no
14469 need_version=no
14470 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14471 soname_spec='${libname}${release}${major}$shared_ext'
14472 shlibpath_overrides_runpath=yes
14473 shlibpath_var=DYLD_LIBRARY_PATH
14474 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14476 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14479 dgux*)
14480 version_type=linux
14481 need_lib_prefix=no
14482 need_version=no
14483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14484 soname_spec='${libname}${release}${shared_ext}$major'
14485 shlibpath_var=LD_LIBRARY_PATH
14488 freebsd* | dragonfly*)
14489 # DragonFly does not have aout. When/if they implement a new
14490 # versioning mechanism, adjust this.
14491 if test -x /usr/bin/objformat; then
14492 objformat=`/usr/bin/objformat`
14493 else
14494 case $host_os in
14495 freebsd[23].*) objformat=aout ;;
14496 *) objformat=elf ;;
14497 esac
14499 version_type=freebsd-$objformat
14500 case $version_type in
14501 freebsd-elf*)
14502 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14503 need_version=no
14504 need_lib_prefix=no
14506 freebsd-*)
14507 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14508 need_version=yes
14510 esac
14511 shlibpath_var=LD_LIBRARY_PATH
14512 case $host_os in
14513 freebsd2.*)
14514 shlibpath_overrides_runpath=yes
14516 freebsd3.[01]* | freebsdelf3.[01]*)
14517 shlibpath_overrides_runpath=yes
14518 hardcode_into_libs=yes
14520 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14521 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14522 shlibpath_overrides_runpath=no
14523 hardcode_into_libs=yes
14525 *) # from 4.6 on, and DragonFly
14526 shlibpath_overrides_runpath=yes
14527 hardcode_into_libs=yes
14529 esac
14532 haiku*)
14533 version_type=linux
14534 need_lib_prefix=no
14535 need_version=no
14536 dynamic_linker="$host_os runtime_loader"
14537 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14538 soname_spec='${libname}${release}${shared_ext}$major'
14539 shlibpath_var=LIBRARY_PATH
14540 shlibpath_overrides_runpath=yes
14541 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14542 hardcode_into_libs=yes
14545 hpux9* | hpux10* | hpux11*)
14546 # Give a soname corresponding to the major version so that dld.sl refuses to
14547 # link against other versions.
14548 version_type=sunos
14549 need_lib_prefix=no
14550 need_version=no
14551 case $host_cpu in
14552 ia64*)
14553 shrext_cmds='.so'
14554 hardcode_into_libs=yes
14555 dynamic_linker="$host_os dld.so"
14556 shlibpath_var=LD_LIBRARY_PATH
14557 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14558 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14559 soname_spec='${libname}${release}${shared_ext}$major'
14560 if test "X$HPUX_IA64_MODE" = X32; then
14561 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14562 else
14563 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14565 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14567 hppa*64*)
14568 shrext_cmds='.sl'
14569 hardcode_into_libs=yes
14570 dynamic_linker="$host_os dld.sl"
14571 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14572 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14573 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14574 soname_spec='${libname}${release}${shared_ext}$major'
14575 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14576 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14579 shrext_cmds='.sl'
14580 dynamic_linker="$host_os dld.sl"
14581 shlibpath_var=SHLIB_PATH
14582 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14583 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14584 soname_spec='${libname}${release}${shared_ext}$major'
14586 esac
14587 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14588 postinstall_cmds='chmod 555 $lib'
14589 # or fails outright, so override atomically:
14590 install_override_mode=555
14593 interix[3-9]*)
14594 version_type=linux
14595 need_lib_prefix=no
14596 need_version=no
14597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14598 soname_spec='${libname}${release}${shared_ext}$major'
14599 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14600 shlibpath_var=LD_LIBRARY_PATH
14601 shlibpath_overrides_runpath=no
14602 hardcode_into_libs=yes
14605 irix5* | irix6* | nonstopux*)
14606 case $host_os in
14607 nonstopux*) version_type=nonstopux ;;
14609 if test "$lt_cv_prog_gnu_ld" = yes; then
14610 version_type=linux
14611 else
14612 version_type=irix
14613 fi ;;
14614 esac
14615 need_lib_prefix=no
14616 need_version=no
14617 soname_spec='${libname}${release}${shared_ext}$major'
14618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14619 case $host_os in
14620 irix5* | nonstopux*)
14621 libsuff= shlibsuff=
14624 case $LD in # libtool.m4 will add one of these switches to LD
14625 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14626 libsuff= shlibsuff= libmagic=32-bit;;
14627 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14628 libsuff=32 shlibsuff=N32 libmagic=N32;;
14629 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14630 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14631 *) libsuff= shlibsuff= libmagic=never-match;;
14632 esac
14634 esac
14635 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14636 shlibpath_overrides_runpath=no
14637 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14638 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14639 hardcode_into_libs=yes
14642 # No shared lib support for Linux oldld, aout, or coff.
14643 linux*oldld* | linux*aout* | linux*coff*)
14644 dynamic_linker=no
14647 # This must be Linux ELF.
14649 # uclinux* changes (here and below) have been submitted to the libtool
14650 # project, but have not yet been accepted: they are GCC-local changes
14651 # for the time being. (See
14652 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
14653 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
14654 version_type=linux
14655 need_lib_prefix=no
14656 need_version=no
14657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14658 soname_spec='${libname}${release}${shared_ext}$major'
14659 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14660 shlibpath_var=LD_LIBRARY_PATH
14661 shlibpath_overrides_runpath=no
14663 # Some binutils ld are patched to set DT_RUNPATH
14664 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14665 $as_echo_n "(cached) " >&6
14666 else
14667 lt_cv_shlibpath_overrides_runpath=no
14668 save_LDFLAGS=$LDFLAGS
14669 save_libdir=$libdir
14670 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14671 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14673 /* end confdefs.h. */
14676 main ()
14680 return 0;
14682 _ACEOF
14683 if ac_fn_cxx_try_link "$LINENO"; then :
14684 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14685 lt_cv_shlibpath_overrides_runpath=yes
14688 rm -f core conftest.err conftest.$ac_objext \
14689 conftest$ac_exeext conftest.$ac_ext
14690 LDFLAGS=$save_LDFLAGS
14691 libdir=$save_libdir
14695 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14697 # This implies no fast_install, which is unacceptable.
14698 # Some rework will be needed to allow for fast_install
14699 # before this can be enabled.
14700 hardcode_into_libs=yes
14702 # Append ld.so.conf contents to the search path
14703 if test -f /etc/ld.so.conf; then
14704 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' ' '`
14705 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14708 # We used to test for /lib/ld.so.1 and disable shared libraries on
14709 # powerpc, because MkLinux only supported shared libraries with the
14710 # GNU dynamic linker. Since this was broken with cross compilers,
14711 # most powerpc-linux boxes support dynamic linking these days and
14712 # people can always --disable-shared, the test was removed, and we
14713 # assume the GNU/Linux dynamic linker is in use.
14714 dynamic_linker='GNU/Linux ld.so'
14717 netbsd*)
14718 version_type=sunos
14719 need_lib_prefix=no
14720 need_version=no
14721 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14722 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14723 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14724 dynamic_linker='NetBSD (a.out) ld.so'
14725 else
14726 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14727 soname_spec='${libname}${release}${shared_ext}$major'
14728 dynamic_linker='NetBSD ld.elf_so'
14730 shlibpath_var=LD_LIBRARY_PATH
14731 shlibpath_overrides_runpath=yes
14732 hardcode_into_libs=yes
14735 newsos6)
14736 version_type=linux
14737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14738 shlibpath_var=LD_LIBRARY_PATH
14739 shlibpath_overrides_runpath=yes
14742 *nto* | *qnx*)
14743 version_type=qnx
14744 need_lib_prefix=no
14745 need_version=no
14746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14747 soname_spec='${libname}${release}${shared_ext}$major'
14748 shlibpath_var=LD_LIBRARY_PATH
14749 shlibpath_overrides_runpath=no
14750 hardcode_into_libs=yes
14751 dynamic_linker='ldqnx.so'
14754 openbsd*)
14755 version_type=sunos
14756 sys_lib_dlsearch_path_spec="/usr/lib"
14757 need_lib_prefix=no
14758 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14759 case $host_os in
14760 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14761 *) need_version=no ;;
14762 esac
14763 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14764 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14765 shlibpath_var=LD_LIBRARY_PATH
14766 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14767 case $host_os in
14768 openbsd2.[89] | openbsd2.[89].*)
14769 shlibpath_overrides_runpath=no
14772 shlibpath_overrides_runpath=yes
14774 esac
14775 else
14776 shlibpath_overrides_runpath=yes
14780 os2*)
14781 libname_spec='$name'
14782 shrext_cmds=".dll"
14783 need_lib_prefix=no
14784 library_names_spec='$libname${shared_ext} $libname.a'
14785 dynamic_linker='OS/2 ld.exe'
14786 shlibpath_var=LIBPATH
14789 osf3* | osf4* | osf5*)
14790 version_type=osf
14791 need_lib_prefix=no
14792 need_version=no
14793 soname_spec='${libname}${release}${shared_ext}$major'
14794 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14795 shlibpath_var=LD_LIBRARY_PATH
14796 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14797 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14800 rdos*)
14801 dynamic_linker=no
14804 solaris*)
14805 version_type=linux
14806 need_lib_prefix=no
14807 need_version=no
14808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14809 soname_spec='${libname}${release}${shared_ext}$major'
14810 shlibpath_var=LD_LIBRARY_PATH
14811 shlibpath_overrides_runpath=yes
14812 hardcode_into_libs=yes
14813 # ldd complains unless libraries are executable
14814 postinstall_cmds='chmod +x $lib'
14817 sunos4*)
14818 version_type=sunos
14819 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14820 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14821 shlibpath_var=LD_LIBRARY_PATH
14822 shlibpath_overrides_runpath=yes
14823 if test "$with_gnu_ld" = yes; then
14824 need_lib_prefix=no
14826 need_version=yes
14829 sysv4 | sysv4.3*)
14830 version_type=linux
14831 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14832 soname_spec='${libname}${release}${shared_ext}$major'
14833 shlibpath_var=LD_LIBRARY_PATH
14834 case $host_vendor in
14835 sni)
14836 shlibpath_overrides_runpath=no
14837 need_lib_prefix=no
14838 runpath_var=LD_RUN_PATH
14840 siemens)
14841 need_lib_prefix=no
14843 motorola)
14844 need_lib_prefix=no
14845 need_version=no
14846 shlibpath_overrides_runpath=no
14847 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14849 esac
14852 sysv4*MP*)
14853 if test -d /usr/nec ;then
14854 version_type=linux
14855 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14856 soname_spec='$libname${shared_ext}.$major'
14857 shlibpath_var=LD_LIBRARY_PATH
14861 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14862 version_type=freebsd-elf
14863 need_lib_prefix=no
14864 need_version=no
14865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14866 soname_spec='${libname}${release}${shared_ext}$major'
14867 shlibpath_var=LD_LIBRARY_PATH
14868 shlibpath_overrides_runpath=yes
14869 hardcode_into_libs=yes
14870 if test "$with_gnu_ld" = yes; then
14871 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14872 else
14873 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14874 case $host_os in
14875 sco3.2v5*)
14876 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14878 esac
14880 sys_lib_dlsearch_path_spec='/usr/lib'
14883 tpf*)
14884 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14885 version_type=linux
14886 need_lib_prefix=no
14887 need_version=no
14888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14889 shlibpath_var=LD_LIBRARY_PATH
14890 shlibpath_overrides_runpath=no
14891 hardcode_into_libs=yes
14894 uts4*)
14895 version_type=linux
14896 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14897 soname_spec='${libname}${release}${shared_ext}$major'
14898 shlibpath_var=LD_LIBRARY_PATH
14901 # Shared libraries for VwWorks, >= 7 only at this stage
14902 # and (fpic) still incompatible with "large" code models
14903 # in a few configurations. Only for RTP mode in any case,
14904 # and upon explicit request at configure time.
14905 vxworks7*)
14906 dynamic_linker=no
14907 case ${with_multisubdir}-${enable_shared} in
14908 *large*)
14910 *mrtp*-yes)
14911 version_type=linux
14912 need_lib_prefix=no
14913 need_version=no
14914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14915 soname_spec='${libname}${release}${shared_ext}$major'
14916 dynamic_linker="$host_os module_loader"
14918 esac
14921 dynamic_linker=no
14923 esac
14924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14925 $as_echo "$dynamic_linker" >&6; }
14926 test "$dynamic_linker" = no && can_build_shared=no
14928 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14929 if test "$GCC" = yes; then
14930 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14933 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14934 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14936 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14937 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14978 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14979 hardcode_action_CXX=
14980 if test -n "$hardcode_libdir_flag_spec_CXX" ||
14981 test -n "$runpath_var_CXX" ||
14982 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14984 # We can hardcode non-existent directories.
14985 if test "$hardcode_direct_CXX" != no &&
14986 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14987 # have to relink, otherwise we might link with an installed library
14988 # when we should be linking with a yet-to-be-installed one
14989 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14990 test "$hardcode_minus_L_CXX" != no; then
14991 # Linking always hardcodes the temporary library directory.
14992 hardcode_action_CXX=relink
14993 else
14994 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14995 hardcode_action_CXX=immediate
14997 else
14998 # We cannot hardcode anything, or else we can only hardcode existing
14999 # directories.
15000 hardcode_action_CXX=unsupported
15002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15003 $as_echo "$hardcode_action_CXX" >&6; }
15005 if test "$hardcode_action_CXX" = relink ||
15006 test "$inherit_rpath_CXX" = yes; then
15007 # Fast installation is not supported
15008 enable_fast_install=no
15009 elif test "$shlibpath_overrides_runpath" = yes ||
15010 test "$enable_shared" = no; then
15011 # Fast installation is not necessary
15012 enable_fast_install=needless
15021 fi # test -n "$compiler"
15023 CC=$lt_save_CC
15024 LDCXX=$LD
15025 LD=$lt_save_LD
15026 GCC=$lt_save_GCC
15027 with_gnu_ld=$lt_save_with_gnu_ld
15028 lt_cv_path_LDCXX=$lt_cv_path_LD
15029 lt_cv_path_LD=$lt_save_path_LD
15030 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15031 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15032 fi # test "$_lt_caught_CXX_error" != yes
15034 ac_ext=c
15035 ac_cpp='$CPP $CPPFLAGS'
15036 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15037 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15038 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15052 ac_config_commands="$ac_config_commands libtool"
15057 # Only expand once:
15061 # The tests for host and target for $enable_largefile require
15062 # canonical names.
15066 # As the $enable_largefile decision depends on --enable-plugins we must set it
15067 # even in directories otherwise not depending on the $plugins option.
15070 maybe_plugins=no
15071 for ac_header in dlfcn.h
15072 do :
15073 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
15075 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
15076 cat >>confdefs.h <<_ACEOF
15077 #define HAVE_DLFCN_H 1
15078 _ACEOF
15079 maybe_plugins=yes
15082 done
15084 for ac_header in windows.h
15085 do :
15086 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
15088 if test "x$ac_cv_header_windows_h" = xyes; then :
15089 cat >>confdefs.h <<_ACEOF
15090 #define HAVE_WINDOWS_H 1
15091 _ACEOF
15092 maybe_plugins=yes
15095 done
15098 # Check whether --enable-plugins was given.
15099 if test "${enable_plugins+set}" = set; then :
15100 enableval=$enable_plugins; case "${enableval}" in
15101 no) plugins=no ;;
15102 *) plugins=yes
15103 if test "$maybe_plugins" != "yes" ; then
15104 as_fn_error $? "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
15105 fi ;;
15106 esac
15107 else
15108 plugins=$maybe_plugins
15112 if test "$plugins" = "yes"; then
15113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
15114 $as_echo_n "checking for library containing dlsym... " >&6; }
15115 if ${ac_cv_search_dlsym+:} false; then :
15116 $as_echo_n "(cached) " >&6
15117 else
15118 ac_func_search_save_LIBS=$LIBS
15119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15120 /* end confdefs.h. */
15122 /* Override any GCC internal prototype to avoid an error.
15123 Use char because int might match the return type of a GCC
15124 builtin and then its argument prototype would still apply. */
15125 #ifdef __cplusplus
15126 extern "C"
15127 #endif
15128 char dlsym ();
15130 main ()
15132 return dlsym ();
15134 return 0;
15136 _ACEOF
15137 for ac_lib in '' dl; do
15138 if test -z "$ac_lib"; then
15139 ac_res="none required"
15140 else
15141 ac_res=-l$ac_lib
15142 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15144 if ac_fn_c_try_link "$LINENO"; then :
15145 ac_cv_search_dlsym=$ac_res
15147 rm -f core conftest.err conftest.$ac_objext \
15148 conftest$ac_exeext
15149 if ${ac_cv_search_dlsym+:} false; then :
15150 break
15152 done
15153 if ${ac_cv_search_dlsym+:} false; then :
15155 else
15156 ac_cv_search_dlsym=no
15158 rm conftest.$ac_ext
15159 LIBS=$ac_func_search_save_LIBS
15161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
15162 $as_echo "$ac_cv_search_dlsym" >&6; }
15163 ac_res=$ac_cv_search_dlsym
15164 if test "$ac_res" != no; then :
15165 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15172 case "${host}" in
15173 sparc-*-solaris*|i?86-*-solaris*)
15174 # On native 32-bit Solaris/SPARC and x86, large-file and procfs support
15175 # were mutually exclusive until Solaris 11.3. Without procfs support,
15176 # the bfd/ elf module cannot provide certain routines such as
15177 # elfcore_write_prpsinfo or elfcore_write_prstatus. So unless the user
15178 # explicitly requested large-file support through the
15179 # --enable-largefile switch, disable large-file support in favor of
15180 # procfs support.
15182 # Check if <sys/procfs.h> is incompatible with large-file support.
15183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15184 /* end confdefs.h. */
15185 #define _FILE_OFFSET_BITS 64
15186 #define _STRUCTURED_PROC 1
15187 #include <sys/procfs.h>
15189 main ()
15193 return 0;
15195 _ACEOF
15196 if ac_fn_c_try_compile "$LINENO"; then :
15197 acx_cv_procfs_lfs=yes
15198 else
15199 acx_cv_procfs_lfs=no
15201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15203 # Forcefully disable large-file support only if necessary, gdb is in
15204 # tree and enabled.
15205 if test "${target}" = "${host}" -a "$acx_cv_procfs_lfs" = no \
15206 -a -d $srcdir/../gdb -a "$enable_gdb" != no; then
15207 : ${enable_largefile="no"}
15208 if test "$plugins" = yes; then
15209 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
15210 plugin support disabled; require large-file support which is incompatible with GDB." >&5
15211 $as_echo "$as_me: WARNING:
15212 plugin support disabled; require large-file support which is incompatible with GDB." >&2;}
15213 plugins=no
15217 # Explicitly undef _FILE_OFFSET_BITS if enable_largefile=no for the
15218 # benefit of g++ 9+ which predefines it on Solaris.
15219 if test "$enable_largefile" = no; then
15220 LARGEFILE_CPPFLAGS="-U_FILE_OFFSET_BITS"
15224 esac
15226 # Check whether --enable-largefile was given.
15227 if test "${enable_largefile+set}" = set; then :
15228 enableval=$enable_largefile;
15231 if test "$enable_largefile" != no; then
15233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
15234 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
15235 if ${ac_cv_sys_largefile_CC+:} false; then :
15236 $as_echo_n "(cached) " >&6
15237 else
15238 ac_cv_sys_largefile_CC=no
15239 if test "$GCC" != yes; then
15240 ac_save_CC=$CC
15241 while :; do
15242 # IRIX 6.2 and later do not support large files by default,
15243 # so use the C compiler's -n32 option if that helps.
15244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15245 /* end confdefs.h. */
15246 #include <sys/types.h>
15247 /* Check that off_t can represent 2**63 - 1 correctly.
15248 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15249 since some C++ compilers masquerading as C compilers
15250 incorrectly reject 9223372036854775807. */
15251 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15252 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15253 && LARGE_OFF_T % 2147483647 == 1)
15254 ? 1 : -1];
15256 main ()
15260 return 0;
15262 _ACEOF
15263 if ac_fn_c_try_compile "$LINENO"; then :
15264 break
15266 rm -f core conftest.err conftest.$ac_objext
15267 CC="$CC -n32"
15268 if ac_fn_c_try_compile "$LINENO"; then :
15269 ac_cv_sys_largefile_CC=' -n32'; break
15271 rm -f core conftest.err conftest.$ac_objext
15272 break
15273 done
15274 CC=$ac_save_CC
15275 rm -f conftest.$ac_ext
15278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
15279 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
15280 if test "$ac_cv_sys_largefile_CC" != no; then
15281 CC=$CC$ac_cv_sys_largefile_CC
15284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
15285 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
15286 if ${ac_cv_sys_file_offset_bits+:} false; then :
15287 $as_echo_n "(cached) " >&6
15288 else
15289 while :; do
15290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15291 /* end confdefs.h. */
15292 #include <sys/types.h>
15293 /* Check that off_t can represent 2**63 - 1 correctly.
15294 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15295 since some C++ compilers masquerading as C compilers
15296 incorrectly reject 9223372036854775807. */
15297 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15298 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15299 && LARGE_OFF_T % 2147483647 == 1)
15300 ? 1 : -1];
15302 main ()
15306 return 0;
15308 _ACEOF
15309 if ac_fn_c_try_compile "$LINENO"; then :
15310 ac_cv_sys_file_offset_bits=no; break
15312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15314 /* end confdefs.h. */
15315 #define _FILE_OFFSET_BITS 64
15316 #include <sys/types.h>
15317 /* Check that off_t can represent 2**63 - 1 correctly.
15318 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15319 since some C++ compilers masquerading as C compilers
15320 incorrectly reject 9223372036854775807. */
15321 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15322 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15323 && LARGE_OFF_T % 2147483647 == 1)
15324 ? 1 : -1];
15326 main ()
15330 return 0;
15332 _ACEOF
15333 if ac_fn_c_try_compile "$LINENO"; then :
15334 ac_cv_sys_file_offset_bits=64; break
15336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15337 ac_cv_sys_file_offset_bits=unknown
15338 break
15339 done
15341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
15342 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
15343 case $ac_cv_sys_file_offset_bits in #(
15344 no | unknown) ;;
15346 cat >>confdefs.h <<_ACEOF
15347 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
15348 _ACEOF
15350 esac
15351 rm -rf conftest*
15352 if test $ac_cv_sys_file_offset_bits = unknown; then
15353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
15354 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
15355 if ${ac_cv_sys_large_files+:} false; then :
15356 $as_echo_n "(cached) " >&6
15357 else
15358 while :; do
15359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15360 /* end confdefs.h. */
15361 #include <sys/types.h>
15362 /* Check that off_t can represent 2**63 - 1 correctly.
15363 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15364 since some C++ compilers masquerading as C compilers
15365 incorrectly reject 9223372036854775807. */
15366 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15367 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15368 && LARGE_OFF_T % 2147483647 == 1)
15369 ? 1 : -1];
15371 main ()
15375 return 0;
15377 _ACEOF
15378 if ac_fn_c_try_compile "$LINENO"; then :
15379 ac_cv_sys_large_files=no; break
15381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15383 /* end confdefs.h. */
15384 #define _LARGE_FILES 1
15385 #include <sys/types.h>
15386 /* Check that off_t can represent 2**63 - 1 correctly.
15387 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15388 since some C++ compilers masquerading as C compilers
15389 incorrectly reject 9223372036854775807. */
15390 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15391 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15392 && LARGE_OFF_T % 2147483647 == 1)
15393 ? 1 : -1];
15395 main ()
15399 return 0;
15401 _ACEOF
15402 if ac_fn_c_try_compile "$LINENO"; then :
15403 ac_cv_sys_large_files=1; break
15405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15406 ac_cv_sys_large_files=unknown
15407 break
15408 done
15410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
15411 $as_echo "$ac_cv_sys_large_files" >&6; }
15412 case $ac_cv_sys_large_files in #(
15413 no | unknown) ;;
15415 cat >>confdefs.h <<_ACEOF
15416 #define _LARGE_FILES $ac_cv_sys_large_files
15417 _ACEOF
15419 esac
15420 rm -rf conftest*
15428 ac_checking=
15429 . ${srcdir}/../bfd/development.sh
15430 test "$development" = true && ac_checking=yes
15431 # Check whether --enable-checking was given.
15432 if test "${enable_checking+set}" = set; then :
15433 enableval=$enable_checking; case "${enableval}" in
15434 no|none) ac_checking= ;;
15435 *) ac_checking=yes ;;
15436 esac
15438 if test x$ac_checking != x ; then
15440 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
15445 # Check whether --with-lib-path was given.
15446 if test "${with_lib_path+set}" = set; then :
15447 withval=$with_lib_path; LIB_PATH=$withval
15450 # Check whether --enable-targets was given.
15451 if test "${enable_targets+set}" = set; then :
15452 enableval=$enable_targets; case "${enableval}" in
15453 yes | "") as_fn_error $? "enable-targets option must specify target names or 'all'" "$LINENO" 5
15455 no) enable_targets= ;;
15456 *) enable_targets=$enableval ;;
15457 esac
15460 # Check whether --enable-64-bit-bfd was given.
15461 if test "${enable_64_bit_bfd+set}" = set; then :
15462 enableval=$enable_64_bit_bfd; case $enableval in #(
15463 yes|no) :
15464 ;; #(
15465 *) :
15466 as_fn_error $? "bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;; #(
15467 *) :
15469 esac
15470 else
15471 enable_64_bit_bfd=no
15475 if test "x$enable_64_bit_bfd" = "xno"; then :
15476 # The cast to long int works around a bug in the HP C Compiler
15477 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15478 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15479 # This bug is HP SR number 8606223364.
15480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
15481 $as_echo_n "checking size of void *... " >&6; }
15482 if ${ac_cv_sizeof_void_p+:} false; then :
15483 $as_echo_n "(cached) " >&6
15484 else
15485 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
15487 else
15488 if test "$ac_cv_type_void_p" = yes; then
15489 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15490 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15491 as_fn_error 77 "cannot compute sizeof (void *)
15492 See \`config.log' for more details" "$LINENO" 5; }
15493 else
15494 ac_cv_sizeof_void_p=0
15499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
15500 $as_echo "$ac_cv_sizeof_void_p" >&6; }
15504 cat >>confdefs.h <<_ACEOF
15505 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15506 _ACEOF
15509 if test "x$ac_cv_sizeof_void_p" = "x8"; then :
15510 enable_64_bit_bfd=yes
15515 if test "x$enable_64_bit_bfd" = "xyes"; then
15516 ENABLE_BFD_64_BIT_TRUE=
15517 ENABLE_BFD_64_BIT_FALSE='#'
15518 else
15519 ENABLE_BFD_64_BIT_TRUE='#'
15520 ENABLE_BFD_64_BIT_FALSE=
15526 # Check whether --with-sysroot was given.
15527 if test "${with_sysroot+set}" = set; then :
15528 withval=$with_sysroot;
15529 case ${with_sysroot} in
15530 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
15531 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
15532 esac
15534 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
15535 use_sysroot=yes
15537 if test "x$prefix" = xNONE; then
15538 test_prefix=/usr/local
15539 else
15540 test_prefix=$prefix
15542 if test "x$exec_prefix" = xNONE; then
15543 test_exec_prefix=$test_prefix
15544 else
15545 test_exec_prefix=$exec_prefix
15547 case ${TARGET_SYSTEM_ROOT} in
15548 "${test_prefix}"|"${test_prefix}/"*|\
15549 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
15550 '${prefix}'|'${prefix}/'*|\
15551 '${exec_prefix}'|'${exec_prefix}/'*)
15552 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
15553 TARGET_SYSTEM_ROOT_DEFINE="$t"
15555 esac
15557 else
15559 use_sysroot=no
15560 TARGET_SYSTEM_ROOT=
15561 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
15569 # Check whether --enable-gold was given.
15570 if test "${enable_gold+set}" = set; then :
15571 enableval=$enable_gold; case "${enableval}" in
15572 default)
15573 install_as_default=no
15574 installed_linker=ld.bfd
15576 yes|no)
15577 install_as_default=yes
15578 installed_linker=ld.bfd
15581 as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5
15583 esac
15584 else
15585 install_as_default=yes
15586 installed_linker=ld.bfd
15592 # Check whether --enable-got was given.
15593 if test "${enable_got+set}" = set; then :
15594 enableval=$enable_got; case "${enableval}" in
15595 target | single | negative | multigot) got_handling=$enableval ;;
15596 *) as_fn_error $? "bad value ${enableval} for --enable-got option" "$LINENO" 5 ;;
15597 esac
15598 else
15599 got_handling=target
15603 case "${got_handling}" in
15604 target)
15606 $as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_TARGET_DEFAULT" >>confdefs.h
15608 single)
15610 $as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_SINGLE" >>confdefs.h
15612 negative)
15614 $as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_NEGATIVE" >>confdefs.h
15616 multigot)
15618 $as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_MULTIGOT" >>confdefs.h
15620 *) as_fn_error $? "bad value ${got_handling} for --enable-got option" "$LINENO" 5 ;;
15621 esac
15623 # PR gas/19109
15624 # Decide the default method for compressing debug sections.
15625 ac_default_compressed_debug_sections=unset
15626 # Provide a configure time option to override our default.
15627 # Check whether --enable-compressed_debug_sections was given.
15628 if test "${enable_compressed_debug_sections+set}" = set; then :
15629 enableval=$enable_compressed_debug_sections; case ,"${enableval}", in
15630 ,yes, | ,all, | *,ld,*) ac_default_compressed_debug_sections=yes ;;
15631 ,no, | ,none,) ac_default_compressed_debug_sections=no ;;
15632 esac
15635 # Select default compression algorithm.
15636 ac_default_compressed_debug_sections_algorithm=COMPRESS_DEBUG_GABI_ZLIB
15637 # Check whether --enable-default_compressed_debug_sections_algorithm was given.
15638 if test "${enable_default_compressed_debug_sections_algorithm+set}" = set; then :
15639 enableval=$enable_default_compressed_debug_sections_algorithm; case "${enableval}" in
15640 zstd) ac_default_compressed_debug_sections_algorithm=COMPRESS_DEBUG_ZSTD ;;
15641 esac
15644 # Decide setting DT_RUNPATH instead of DT_RPATH by default
15645 ac_default_new_dtags=unset
15646 # Provide a configure time option to override our default.
15647 # Check whether --enable-new_dtags was given.
15648 if test "${enable_new_dtags+set}" = set; then :
15649 enableval=$enable_new_dtags; case "${enableval}" in
15650 yes) ac_default_new_dtags=1 ;;
15651 no) ac_default_new_dtags=0 ;;
15652 esac
15655 # Decide if -z relro should be enabled in ELF linker by default.
15656 ac_default_ld_z_relro=unset
15657 # Provide a configure time option to override our default.
15658 # Check whether --enable-relro was given.
15659 if test "${enable_relro+set}" = set; then :
15660 enableval=$enable_relro; case "${enableval}" in
15661 yes) ac_default_ld_z_relro=1 ;;
15662 no) ac_default_ld_z_relro=0 ;;
15663 esac
15666 # Decide if DT_TEXTREL check should be enabled in ELF linker.
15667 ac_default_ld_textrel_check=unset
15668 # Check whether --enable-textrel-check was given.
15669 if test "${enable_textrel_check+set}" = set; then :
15670 enableval=$enable_textrel_check; case "${enableval}" in
15671 yes|no|warning|error) ac_default_ld_textrel_check=${enableval} ;;
15672 esac
15676 # Decide if -z separate-code should be enabled in ELF linker by default.
15677 ac_default_ld_z_separate_code=unset
15678 # Check whether --enable-separate-code was given.
15679 if test "${enable_separate_code+set}" = set; then :
15680 enableval=$enable_separate_code; case "${enableval}" in
15681 yes) ac_default_ld_z_separate_code=1 ;;
15682 no) ac_default_ld_z_separate_code=0 ;;
15683 esac
15687 # Decide if -z mark-plt should be enabled in ELF x86-64 linker by default.
15688 ac_default_ld_z_mark_plt=unset
15689 # Check whether --enable-mark-plt was given.
15690 if test "${enable_mark_plt+set}" = set; then :
15691 enableval=$enable_mark_plt; case "${enableval}" in
15692 yes) ac_default_ld_z_mark_plt=1 ;;
15693 no) ac_default_ld_z_mark_plt=0 ;;
15694 esac
15699 # By default warn when an executable stack is created due to object files
15700 # requesting such, not when the user specifies -z execstack.
15701 ac_default_ld_warn_execstack=2
15702 # Check whether --enable-warn-execstack was given.
15703 if test "${enable_warn_execstack+set}" = set; then :
15704 enableval=$enable_warn_execstack; case "${enableval}" in
15705 yes) ac_default_ld_warn_execstack=1 ;;
15706 no) ac_default_ld_warn_execstack=0 ;;
15707 esac
15711 ac_default_ld_error_execstack=0
15712 # Check whether --enable-error-execstack was given.
15713 if test "${enable_error_execstack+set}" = set; then :
15714 enableval=$enable_error_execstack; case "${enableval}" in
15715 yes) ac_default_ld_error_execstack=1 ;;
15716 no) ac_default_ld_error_execstack=0 ;;
15717 esac
15721 ac_default_ld_warn_rwx_segments=unset
15722 # Check whether --enable-warn-rwx-segments was given.
15723 if test "${enable_warn_rwx_segments+set}" = set; then :
15724 enableval=$enable_warn_rwx_segments; case "${enableval}" in
15725 yes) ac_default_ld_warn_rwx_segments=1 ;;
15726 no) ac_default_ld_warn_rwx_segments=0 ;;
15727 esac
15731 ac_default_ld_error_rwx_segments=0
15732 # Check whether --enable-error-rwx-segments was given.
15733 if test "${enable_error_rwx_segments+set}" = set; then :
15734 enableval=$enable_error_rwx_segments; case "${enableval}" in
15735 yes) ac_default_ld_error_rwx_segments=1 ;;
15736 no) ac_default_ld_error_rwx_segments=0 ;;
15737 esac
15741 ac_default_ld_default_execstack=unset
15742 # Check whether --enable-default-execstack was given.
15743 if test "${enable_default_execstack+set}" = set; then :
15744 enableval=$enable_default_execstack; case "${enableval}" in
15745 yes) ac_default_ld_default_execstack=1 ;;
15746 no) ac_default_ld_default_execstack=0 ;;
15747 esac
15752 # Decide if --error-handling-script should be supported.
15753 ac_support_error_handling_script=unset
15754 # Check whether --enable-error-handling-script was given.
15755 if test "${enable_error_handling_script+set}" = set; then :
15756 enableval=$enable_error_handling_script; case "${enableval}" in
15757 yes) ac_support_error_handling_script=1 ;;
15758 no) ac_support_error_handling_script=0 ;;
15759 esac
15763 # Decide which "--hash-style" to use by default
15764 # Provide a configure time option to override our default.
15765 # Check whether --enable-default-hash-style was given.
15766 if test "${enable_default_hash_style+set}" = set; then :
15767 enableval=$enable_default_hash_style; case "${enable_default_hash_style}" in
15768 sysv | gnu | both) ;;
15769 *) as_fn_error $? "bad value ${enable_default_hash_style} for enable-default-hash-style option" "$LINENO" 5 ;;
15770 esac
15771 else
15772 case "${target}" in
15773 # Enable gnu hash only on GNU targets, but not mips
15774 mips*-*-*) enable_default_hash_style=sysv ;;
15775 *-*-gnu* | *-*-linux* | *-*-nacl*) enable_default_hash_style=both ;;
15776 *) enable_default_hash_style=sysv ;;
15777 esac
15781 case "${enable_default_hash_style}" in
15782 sysv | both) ac_default_emit_sysv_hash=1 ;;
15783 *) ac_default_emit_sysv_hash=0 ;;
15784 esac
15786 case "${enable_default_hash_style}" in
15787 gnu | both) ac_default_emit_gnu_hash=1 ;;
15788 *) ac_default_emit_gnu_hash=0 ;;
15789 esac
15791 # Check whether --enable-initfini-array was given.
15792 if test "${enable_initfini_array+set}" = set; then :
15793 enableval=$enable_initfini_array; case "${enableval}" in
15794 yes|no) ;;
15795 *) as_fn_error $? "invalid --enable-initfini-array argument" "$LINENO" 5 ;;
15796 esac
15797 else
15798 enable_initfini_array=yes
15802 if test $enable_initfini_array = yes; then
15804 $as_echo "#define HAVE_INITFINI_ARRAY 1" >>confdefs.h
15808 # Check whether --enable-libctf was given.
15809 if test "${enable_libctf+set}" = set; then :
15810 enableval=$enable_libctf;
15811 case "$enableval" in
15812 yes|no) ;;
15813 *) as_fn_error $? "Argument to enable/disable libctf must be yes or no" "$LINENO" 5 ;;
15814 esac
15816 else
15817 enable_libctf=yes
15821 if test "${enable_libctf}" = yes; then
15823 $as_echo "#define ENABLE_LIBCTF 1" >>confdefs.h
15826 if test "${enable_libctf}" = yes; then
15827 ENABLE_LIBCTF_TRUE=
15828 ENABLE_LIBCTF_FALSE='#'
15829 else
15830 ENABLE_LIBCTF_TRUE='#'
15831 ENABLE_LIBCTF_FALSE=
15836 # Used to validate --package-metadata= input. Disabled by default.
15837 # Check whether --enable-jansson was given.
15838 if test "${enable_jansson+set}" = set; then :
15839 enableval=$enable_jansson; enable_jansson=$enableval
15840 else
15841 enable_jansson="no"
15845 if test "x$enable_jansson" != "xno"; then :
15847 pkg_failed=no
15848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jansson" >&5
15849 $as_echo_n "checking for jansson... " >&6; }
15851 if test -n "$JANSSON_CFLAGS"; then
15852 pkg_cv_JANSSON_CFLAGS="$JANSSON_CFLAGS"
15853 elif test -n "$PKG_CONFIG"; then
15854 if test -n "$PKG_CONFIG" && \
15855 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jansson\""; } >&5
15856 ($PKG_CONFIG --exists --print-errors "jansson") 2>&5
15857 ac_status=$?
15858 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15859 test $ac_status = 0; }; then
15860 pkg_cv_JANSSON_CFLAGS=`$PKG_CONFIG --cflags "jansson" 2>/dev/null`
15861 test "x$?" != "x0" && pkg_failed=yes
15862 else
15863 pkg_failed=yes
15865 else
15866 pkg_failed=untried
15868 if test -n "$JANSSON_LIBS"; then
15869 pkg_cv_JANSSON_LIBS="$JANSSON_LIBS"
15870 elif test -n "$PKG_CONFIG"; then
15871 if test -n "$PKG_CONFIG" && \
15872 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jansson\""; } >&5
15873 ($PKG_CONFIG --exists --print-errors "jansson") 2>&5
15874 ac_status=$?
15875 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15876 test $ac_status = 0; }; then
15877 pkg_cv_JANSSON_LIBS=`$PKG_CONFIG --libs "jansson" 2>/dev/null`
15878 test "x$?" != "x0" && pkg_failed=yes
15879 else
15880 pkg_failed=yes
15882 else
15883 pkg_failed=untried
15886 if test $pkg_failed = no; then
15887 pkg_save_LDFLAGS="$LDFLAGS"
15888 LDFLAGS="$LDFLAGS $pkg_cv_JANSSON_LIBS"
15889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15890 /* end confdefs.h. */
15893 main ()
15897 return 0;
15899 _ACEOF
15900 if ac_fn_c_try_link "$LINENO"; then :
15902 else
15903 pkg_failed=yes
15905 rm -f core conftest.err conftest.$ac_objext \
15906 conftest$ac_exeext conftest.$ac_ext
15907 LDFLAGS=$pkg_save_LDFLAGS
15912 if test $pkg_failed = yes; then
15913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15914 $as_echo "no" >&6; }
15916 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15917 _pkg_short_errors_supported=yes
15918 else
15919 _pkg_short_errors_supported=no
15921 if test $_pkg_short_errors_supported = yes; then
15922 JANSSON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "jansson" 2>&1`
15923 else
15924 JANSSON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "jansson" 2>&1`
15926 # Put the nasty error message in config.log where it belongs
15927 echo "$JANSSON_PKG_ERRORS" >&5
15929 as_fn_error $? "Cannot find jansson library" "$LINENO" 5
15930 elif test $pkg_failed = untried; then
15931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15932 $as_echo "no" >&6; }
15933 as_fn_error $? "Cannot find jansson library" "$LINENO" 5
15934 else
15935 JANSSON_CFLAGS=$pkg_cv_JANSSON_CFLAGS
15936 JANSSON_LIBS=$pkg_cv_JANSSON_LIBS
15937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15938 $as_echo "yes" >&6; }
15941 $as_echo "#define HAVE_JANSSON 1" >>confdefs.h
15951 # Set the 'development' global.
15952 . $srcdir/../bfd/development.sh
15954 # Set acp_cpp_for_build variable
15955 ac_cpp_for_build="$CC_FOR_BUILD -E $CPPFLAGS_FOR_BUILD"
15957 # Default set of GCC warnings to enable.
15958 GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
15959 GCC_WARN_CFLAGS_FOR_BUILD="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
15961 # Add -Wshadow if the compiler is a sufficiently recent version of GCC.
15962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15963 /* end confdefs.h. */
15964 __GNUC__
15965 _ACEOF
15966 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15967 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
15969 else
15970 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow"
15972 rm -f conftest*
15975 # Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
15976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15977 /* end confdefs.h. */
15978 __GNUC__
15979 _ACEOF
15980 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15981 $EGREP "(^[0-4]$|^__GNUC__$)" >/dev/null 2>&1; then :
15983 else
15984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15985 /* end confdefs.h. */
15986 __clang__
15987 _ACEOF
15988 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15989 $EGREP "^__clang__$" >/dev/null 2>&1; then :
15990 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wstack-usage=262144"
15992 rm -f conftest*
15995 rm -f conftest*
15998 # Set WARN_WRITE_STRINGS if the compiler supports -Wwrite-strings.
15999 WARN_WRITE_STRINGS=""
16000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16001 /* end confdefs.h. */
16002 __GNUC__
16003 _ACEOF
16004 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16005 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
16007 else
16008 WARN_WRITE_STRINGS="-Wwrite-strings"
16010 rm -f conftest*
16013 # Verify CC_FOR_BUILD to be compatible with warning flags
16015 # Add -Wshadow if the compiler is a sufficiently recent version of GCC.
16016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16017 /* end confdefs.h. */
16018 __GNUC__
16019 _ACEOF
16020 if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
16021 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
16023 else
16024 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wshadow"
16026 rm -f conftest*
16029 # Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
16030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16031 /* end confdefs.h. */
16032 __GNUC__
16033 _ACEOF
16034 if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
16035 $EGREP "(^[0-4]$|^__GNUC__$)" >/dev/null 2>&1; then :
16037 else
16038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16039 /* end confdefs.h. */
16040 __clang__
16041 _ACEOF
16042 if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
16043 $EGREP "^__clang__$" >/dev/null 2>&1; then :
16044 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wstack-usage=262144"
16046 rm -f conftest*
16049 rm -f conftest*
16052 # Check whether --enable-werror was given.
16053 if test "${enable_werror+set}" = set; then :
16054 enableval=$enable_werror; case "${enableval}" in
16055 yes | y) ERROR_ON_WARNING="yes" ;;
16056 no | n) ERROR_ON_WARNING="no" ;;
16057 *) as_fn_error $? "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
16058 esac
16062 # Disable -Wformat by default when using gcc on mingw
16063 case "${host}" in
16064 *-*-mingw32*)
16065 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
16066 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
16067 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wno-format"
16070 *) ;;
16071 esac
16073 # Enable -Werror by default when using gcc. Turn it off for releases.
16074 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" -a "$development" = true ; then
16075 ERROR_ON_WARNING=yes
16078 NO_WERROR=
16079 if test "${ERROR_ON_WARNING}" = yes ; then
16080 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
16081 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Werror"
16082 NO_WERROR="-Wno-error"
16085 if test "${GCC}" = yes ; then
16086 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
16087 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}"
16090 # Check whether --enable-build-warnings was given.
16091 if test "${enable_build_warnings+set}" = set; then :
16092 enableval=$enable_build_warnings; case "${enableval}" in
16093 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}"
16094 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}";;
16095 no) if test "${GCC}" = yes ; then
16096 WARN_CFLAGS="-w"
16097 WARN_CFLAGS_FOR_BUILD="-w"
16098 fi;;
16099 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
16100 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}"
16101 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD} ${t}";;
16102 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
16103 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}"
16104 WARN_CFLAGS_FOR_BUILD="${t} ${GCC_WARN_CFLAGS_FOR_BUILD}";;
16105 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`
16106 WARN_CFLAGS_FOR_BUILD=`echo "${enableval}" | sed -e "s/,/ /g"`;;
16107 esac
16111 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
16112 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
16122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
16123 $as_echo_n "checking for LC_MESSAGES... " >&6; }
16124 if ${am_cv_val_LC_MESSAGES+:} false; then :
16125 $as_echo_n "(cached) " >&6
16126 else
16127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16128 /* end confdefs.h. */
16129 #include <locale.h>
16131 main ()
16133 return LC_MESSAGES
16135 return 0;
16137 _ACEOF
16138 if ac_fn_c_try_link "$LINENO"; then :
16139 am_cv_val_LC_MESSAGES=yes
16140 else
16141 am_cv_val_LC_MESSAGES=no
16143 rm -f core conftest.err conftest.$ac_objext \
16144 conftest$ac_exeext conftest.$ac_ext
16146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
16147 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
16148 if test $am_cv_val_LC_MESSAGES = yes; then
16150 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
16155 ac_config_headers="$ac_config_headers config.h:config.in"
16158 # PR 14072
16161 if test -z "$target" ; then
16162 as_fn_error $? "Unrecognized target system type; please check config.sub." "$LINENO" 5
16164 if test -z "$host" ; then
16165 as_fn_error $? "Unrecognized host system type; please check config.sub." "$LINENO" 5
16168 # host-specific stuff:
16170 ALL_LINGUAS="bg da de es fi fr ga id it ja pt_BR ru sr sv tr uk vi zh_CN zh_TW"
16172 MKINSTALLDIRS=
16173 if test -n "$ac_aux_dir"; then
16174 case "$ac_aux_dir" in
16175 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
16176 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
16177 esac
16179 if test -z "$MKINSTALLDIRS"; then
16180 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
16185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
16186 $as_echo_n "checking whether NLS is requested... " >&6; }
16187 # Check whether --enable-nls was given.
16188 if test "${enable_nls+set}" = set; then :
16189 enableval=$enable_nls; USE_NLS=$enableval
16190 else
16191 USE_NLS=yes
16194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
16195 $as_echo "$USE_NLS" >&6; }
16202 # Prepare PATH_SEPARATOR.
16203 # The user is always right.
16204 if test "${PATH_SEPARATOR+set}" != set; then
16205 echo "#! /bin/sh" >conf$$.sh
16206 echo "exit 0" >>conf$$.sh
16207 chmod +x conf$$.sh
16208 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16209 PATH_SEPARATOR=';'
16210 else
16211 PATH_SEPARATOR=:
16213 rm -f conf$$.sh
16216 # Find out how to test for executable files. Don't use a zero-byte file,
16217 # as systems may use methods other than mode bits to determine executability.
16218 cat >conf$$.file <<_ASEOF
16219 #! /bin/sh
16220 exit 0
16221 _ASEOF
16222 chmod +x conf$$.file
16223 if test -x conf$$.file >/dev/null 2>&1; then
16224 ac_executable_p="test -x"
16225 else
16226 ac_executable_p="test -f"
16228 rm -f conf$$.file
16230 # Extract the first word of "msgfmt", so it can be a program name with args.
16231 set dummy msgfmt; ac_word=$2
16232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16233 $as_echo_n "checking for $ac_word... " >&6; }
16234 if ${ac_cv_path_MSGFMT+:} false; then :
16235 $as_echo_n "(cached) " >&6
16236 else
16237 case "$MSGFMT" in
16238 [\\/]* | ?:[\\/]*)
16239 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
16242 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16243 for ac_dir in $PATH; do
16244 IFS="$ac_save_IFS"
16245 test -z "$ac_dir" && ac_dir=.
16246 for ac_exec_ext in '' $ac_executable_extensions; do
16247 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16248 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
16249 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16250 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
16251 break 2
16254 done
16255 done
16256 IFS="$ac_save_IFS"
16257 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
16259 esac
16261 MSGFMT="$ac_cv_path_MSGFMT"
16262 if test "$MSGFMT" != ":"; then
16263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
16264 $as_echo "$MSGFMT" >&6; }
16265 else
16266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16267 $as_echo "no" >&6; }
16270 # Extract the first word of "gmsgfmt", so it can be a program name with args.
16271 set dummy gmsgfmt; ac_word=$2
16272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16273 $as_echo_n "checking for $ac_word... " >&6; }
16274 if ${ac_cv_path_GMSGFMT+:} false; then :
16275 $as_echo_n "(cached) " >&6
16276 else
16277 case $GMSGFMT in
16278 [\\/]* | ?:[\\/]*)
16279 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
16282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16283 for as_dir in $PATH
16285 IFS=$as_save_IFS
16286 test -z "$as_dir" && as_dir=.
16287 for ac_exec_ext in '' $ac_executable_extensions; do
16288 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16289 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
16290 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16291 break 2
16293 done
16294 done
16295 IFS=$as_save_IFS
16297 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
16299 esac
16301 GMSGFMT=$ac_cv_path_GMSGFMT
16302 if test -n "$GMSGFMT"; then
16303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
16304 $as_echo "$GMSGFMT" >&6; }
16305 else
16306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16307 $as_echo "no" >&6; }
16313 # Prepare PATH_SEPARATOR.
16314 # The user is always right.
16315 if test "${PATH_SEPARATOR+set}" != set; then
16316 echo "#! /bin/sh" >conf$$.sh
16317 echo "exit 0" >>conf$$.sh
16318 chmod +x conf$$.sh
16319 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16320 PATH_SEPARATOR=';'
16321 else
16322 PATH_SEPARATOR=:
16324 rm -f conf$$.sh
16327 # Find out how to test for executable files. Don't use a zero-byte file,
16328 # as systems may use methods other than mode bits to determine executability.
16329 cat >conf$$.file <<_ASEOF
16330 #! /bin/sh
16331 exit 0
16332 _ASEOF
16333 chmod +x conf$$.file
16334 if test -x conf$$.file >/dev/null 2>&1; then
16335 ac_executable_p="test -x"
16336 else
16337 ac_executable_p="test -f"
16339 rm -f conf$$.file
16341 # Extract the first word of "xgettext", so it can be a program name with args.
16342 set dummy xgettext; ac_word=$2
16343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16344 $as_echo_n "checking for $ac_word... " >&6; }
16345 if ${ac_cv_path_XGETTEXT+:} false; then :
16346 $as_echo_n "(cached) " >&6
16347 else
16348 case "$XGETTEXT" in
16349 [\\/]* | ?:[\\/]*)
16350 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
16353 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16354 for ac_dir in $PATH; do
16355 IFS="$ac_save_IFS"
16356 test -z "$ac_dir" && ac_dir=.
16357 for ac_exec_ext in '' $ac_executable_extensions; do
16358 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16359 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
16360 (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
16361 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
16362 break 2
16365 done
16366 done
16367 IFS="$ac_save_IFS"
16368 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
16370 esac
16372 XGETTEXT="$ac_cv_path_XGETTEXT"
16373 if test "$XGETTEXT" != ":"; then
16374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
16375 $as_echo "$XGETTEXT" >&6; }
16376 else
16377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16378 $as_echo "no" >&6; }
16381 rm -f messages.po
16384 # Prepare PATH_SEPARATOR.
16385 # The user is always right.
16386 if test "${PATH_SEPARATOR+set}" != set; then
16387 echo "#! /bin/sh" >conf$$.sh
16388 echo "exit 0" >>conf$$.sh
16389 chmod +x conf$$.sh
16390 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16391 PATH_SEPARATOR=';'
16392 else
16393 PATH_SEPARATOR=:
16395 rm -f conf$$.sh
16398 # Find out how to test for executable files. Don't use a zero-byte file,
16399 # as systems may use methods other than mode bits to determine executability.
16400 cat >conf$$.file <<_ASEOF
16401 #! /bin/sh
16402 exit 0
16403 _ASEOF
16404 chmod +x conf$$.file
16405 if test -x conf$$.file >/dev/null 2>&1; then
16406 ac_executable_p="test -x"
16407 else
16408 ac_executable_p="test -f"
16410 rm -f conf$$.file
16412 # Extract the first word of "msgmerge", so it can be a program name with args.
16413 set dummy msgmerge; ac_word=$2
16414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16415 $as_echo_n "checking for $ac_word... " >&6; }
16416 if ${ac_cv_path_MSGMERGE+:} false; then :
16417 $as_echo_n "(cached) " >&6
16418 else
16419 case "$MSGMERGE" in
16420 [\\/]* | ?:[\\/]*)
16421 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
16424 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16425 for ac_dir in $PATH; do
16426 IFS="$ac_save_IFS"
16427 test -z "$ac_dir" && ac_dir=.
16428 for ac_exec_ext in '' $ac_executable_extensions; do
16429 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16430 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
16431 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
16432 break 2
16435 done
16436 done
16437 IFS="$ac_save_IFS"
16438 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
16440 esac
16442 MSGMERGE="$ac_cv_path_MSGMERGE"
16443 if test "$MSGMERGE" != ":"; then
16444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
16445 $as_echo "$MSGMERGE" >&6; }
16446 else
16447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16448 $as_echo "no" >&6; }
16452 if test "$GMSGFMT" != ":"; then
16453 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
16454 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16456 else
16457 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
16458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
16459 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
16460 GMSGFMT=":"
16464 if test "$XGETTEXT" != ":"; then
16465 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
16466 (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
16468 else
16469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
16470 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
16471 XGETTEXT=":"
16473 rm -f messages.po
16476 ac_config_commands="$ac_config_commands default-1"
16480 if test "X$prefix" = "XNONE"; then
16481 acl_final_prefix="$ac_default_prefix"
16482 else
16483 acl_final_prefix="$prefix"
16485 if test "X$exec_prefix" = "XNONE"; then
16486 acl_final_exec_prefix='${prefix}'
16487 else
16488 acl_final_exec_prefix="$exec_prefix"
16490 acl_save_prefix="$prefix"
16491 prefix="$acl_final_prefix"
16492 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
16493 prefix="$acl_save_prefix"
16496 # Check whether --with-gnu-ld was given.
16497 if test "${with_gnu_ld+set}" = set; then :
16498 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16499 else
16500 with_gnu_ld=no
16503 # Prepare PATH_SEPARATOR.
16504 # The user is always right.
16505 if test "${PATH_SEPARATOR+set}" != set; then
16506 echo "#! /bin/sh" >conf$$.sh
16507 echo "exit 0" >>conf$$.sh
16508 chmod +x conf$$.sh
16509 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16510 PATH_SEPARATOR=';'
16511 else
16512 PATH_SEPARATOR=:
16514 rm -f conf$$.sh
16516 ac_prog=ld
16517 if test "$GCC" = yes; then
16518 # Check if gcc -print-prog-name=ld gives a path.
16519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
16520 $as_echo_n "checking for ld used by GCC... " >&6; }
16521 case $host in
16522 *-*-mingw*)
16523 # gcc leaves a trailing carriage return which upsets mingw
16524 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16526 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16527 esac
16528 case $ac_prog in
16529 # Accept absolute paths.
16530 [\\/]* | [A-Za-z]:[\\/]*)
16531 re_direlt='/[^/][^/]*/\.\./'
16532 # Canonicalize the path of ld
16533 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
16534 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
16535 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
16536 done
16537 test -z "$LD" && LD="$ac_prog"
16540 # If it fails, then pretend we aren't using GCC.
16541 ac_prog=ld
16544 # If it is relative, then search for the first ld in PATH.
16545 with_gnu_ld=unknown
16547 esac
16548 elif test "$with_gnu_ld" = yes; then
16549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16550 $as_echo_n "checking for GNU ld... " >&6; }
16551 else
16552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16553 $as_echo_n "checking for non-GNU ld... " >&6; }
16555 if ${acl_cv_path_LD+:} false; then :
16556 $as_echo_n "(cached) " >&6
16557 else
16558 if test -z "$LD"; then
16559 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
16560 for ac_dir in $PATH; do
16561 test -z "$ac_dir" && ac_dir=.
16562 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16563 acl_cv_path_LD="$ac_dir/$ac_prog"
16564 # Check to see if the program is GNU ld. I'd rather use --version,
16565 # but apparently some GNU ld's only accept -v.
16566 # Break only if it was the GNU/non-GNU ld that we prefer.
16567 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | $EGREP '(GNU|with BFD)' > /dev/null; then
16568 test "$with_gnu_ld" != no && break
16569 else
16570 test "$with_gnu_ld" != yes && break
16573 done
16574 IFS="$ac_save_ifs"
16575 else
16576 acl_cv_path_LD="$LD" # Let the user override the test with a path.
16580 LD="$acl_cv_path_LD"
16581 if test -n "$LD"; then
16582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16583 $as_echo "$LD" >&6; }
16584 else
16585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16586 $as_echo "no" >&6; }
16588 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
16589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16590 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
16591 if ${acl_cv_prog_gnu_ld+:} false; then :
16592 $as_echo_n "(cached) " >&6
16593 else
16594 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
16595 if $LD -v 2>&1 </dev/null | $EGREP '(GNU|with BFD)' 1>&5; then
16596 acl_cv_prog_gnu_ld=yes
16597 else
16598 acl_cv_prog_gnu_ld=no
16601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
16602 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
16603 with_gnu_ld=$acl_cv_prog_gnu_ld
16607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
16608 $as_echo_n "checking for shared library run path origin... " >&6; }
16609 if ${acl_cv_rpath+:} false; then :
16610 $as_echo_n "(cached) " >&6
16611 else
16613 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
16614 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
16615 . ./conftest.sh
16616 rm -f ./conftest.sh
16617 acl_cv_rpath=done
16620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
16621 $as_echo "$acl_cv_rpath" >&6; }
16622 wl="$acl_cv_wl"
16623 libext="$acl_cv_libext"
16624 shlibext="$acl_cv_shlibext"
16625 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
16626 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
16627 hardcode_direct="$acl_cv_hardcode_direct"
16628 hardcode_minus_L="$acl_cv_hardcode_minus_L"
16629 # Check whether --enable-rpath was given.
16630 if test "${enable_rpath+set}" = set; then :
16631 enableval=$enable_rpath; :
16632 else
16633 enable_rpath=yes
16643 use_additional=yes
16645 acl_save_prefix="$prefix"
16646 prefix="$acl_final_prefix"
16647 acl_save_exec_prefix="$exec_prefix"
16648 exec_prefix="$acl_final_exec_prefix"
16650 eval additional_includedir=\"$includedir\"
16651 eval additional_libdir=\"$libdir\"
16653 exec_prefix="$acl_save_exec_prefix"
16654 prefix="$acl_save_prefix"
16657 # Check whether --with-libiconv-prefix was given.
16658 if test "${with_libiconv_prefix+set}" = set; then :
16659 withval=$with_libiconv_prefix;
16660 if test "X$withval" = "Xno"; then
16661 use_additional=no
16662 else
16663 if test "X$withval" = "X"; then
16665 acl_save_prefix="$prefix"
16666 prefix="$acl_final_prefix"
16667 acl_save_exec_prefix="$exec_prefix"
16668 exec_prefix="$acl_final_exec_prefix"
16670 eval additional_includedir=\"$includedir\"
16671 eval additional_libdir=\"$libdir\"
16673 exec_prefix="$acl_save_exec_prefix"
16674 prefix="$acl_save_prefix"
16676 else
16677 additional_includedir="$withval/include"
16678 additional_libdir="$withval/lib"
16685 # Check whether --with-libiconv-type was given.
16686 if test "${with_libiconv_type+set}" = set; then :
16687 withval=$with_libiconv_type; with_libiconv_type=$withval
16688 else
16689 with_libiconv_type=auto
16692 lib_type=`eval echo \$with_libiconv_type`
16694 LIBICONV=
16695 LTLIBICONV=
16696 INCICONV=
16697 rpathdirs=
16698 ltrpathdirs=
16699 names_already_handled=
16700 names_next_round='iconv '
16701 while test -n "$names_next_round"; do
16702 names_this_round="$names_next_round"
16703 names_next_round=
16704 for name in $names_this_round; do
16705 already_handled=
16706 for n in $names_already_handled; do
16707 if test "$n" = "$name"; then
16708 already_handled=yes
16709 break
16711 done
16712 if test -z "$already_handled"; then
16713 names_already_handled="$names_already_handled $name"
16714 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
16715 eval value=\"\$HAVE_LIB$uppername\"
16716 if test -n "$value"; then
16717 if test "$value" = yes; then
16718 eval value=\"\$LIB$uppername\"
16719 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
16720 eval value=\"\$LTLIB$uppername\"
16721 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
16722 else
16725 else
16726 found_dir=
16727 found_la=
16728 found_so=
16729 found_a=
16730 if test $use_additional = yes; then
16731 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
16732 found_dir="$additional_libdir"
16733 found_so="$additional_libdir/lib$name.$shlibext"
16734 if test -f "$additional_libdir/lib$name.la"; then
16735 found_la="$additional_libdir/lib$name.la"
16737 elif test x$lib_type != xshared; then
16738 if test -f "$additional_libdir/lib$name.$libext"; then
16739 found_dir="$additional_libdir"
16740 found_a="$additional_libdir/lib$name.$libext"
16741 if test -f "$additional_libdir/lib$name.la"; then
16742 found_la="$additional_libdir/lib$name.la"
16747 if test "X$found_dir" = "X"; then
16748 for x in $LDFLAGS $LTLIBICONV; do
16750 acl_save_prefix="$prefix"
16751 prefix="$acl_final_prefix"
16752 acl_save_exec_prefix="$exec_prefix"
16753 exec_prefix="$acl_final_exec_prefix"
16754 eval x=\"$x\"
16755 exec_prefix="$acl_save_exec_prefix"
16756 prefix="$acl_save_prefix"
16758 case "$x" in
16759 -L*)
16760 dir=`echo "X$x" | sed -e 's/^X-L//'`
16761 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
16762 found_dir="$dir"
16763 found_so="$dir/lib$name.$shlibext"
16764 if test -f "$dir/lib$name.la"; then
16765 found_la="$dir/lib$name.la"
16767 elif test x$lib_type != xshared; then
16768 if test -f "$dir/lib$name.$libext"; then
16769 found_dir="$dir"
16770 found_a="$dir/lib$name.$libext"
16771 if test -f "$dir/lib$name.la"; then
16772 found_la="$dir/lib$name.la"
16777 esac
16778 if test "X$found_dir" != "X"; then
16779 break
16781 done
16783 if test "X$found_dir" != "X"; then
16784 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
16785 if test "X$found_so" != "X"; then
16786 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
16787 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16788 else
16789 haveit=
16790 for x in $ltrpathdirs; do
16791 if test "X$x" = "X$found_dir"; then
16792 haveit=yes
16793 break
16795 done
16796 if test -z "$haveit"; then
16797 ltrpathdirs="$ltrpathdirs $found_dir"
16799 if test "$hardcode_direct" = yes; then
16800 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16801 else
16802 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
16803 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16804 haveit=
16805 for x in $rpathdirs; do
16806 if test "X$x" = "X$found_dir"; then
16807 haveit=yes
16808 break
16810 done
16811 if test -z "$haveit"; then
16812 rpathdirs="$rpathdirs $found_dir"
16814 else
16815 haveit=
16816 for x in $LDFLAGS $LIBICONV; do
16818 acl_save_prefix="$prefix"
16819 prefix="$acl_final_prefix"
16820 acl_save_exec_prefix="$exec_prefix"
16821 exec_prefix="$acl_final_exec_prefix"
16822 eval x=\"$x\"
16823 exec_prefix="$acl_save_exec_prefix"
16824 prefix="$acl_save_prefix"
16826 if test "X$x" = "X-L$found_dir"; then
16827 haveit=yes
16828 break
16830 done
16831 if test -z "$haveit"; then
16832 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
16834 if test "$hardcode_minus_L" != no; then
16835 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16836 else
16837 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
16842 else
16843 if test "X$found_a" != "X"; then
16844 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
16845 else
16846 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
16849 additional_includedir=
16850 case "$found_dir" in
16851 */lib | */lib/)
16852 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
16853 additional_includedir="$basedir/include"
16855 esac
16856 if test "X$additional_includedir" != "X"; then
16857 if test "X$additional_includedir" != "X/usr/include"; then
16858 haveit=
16859 if test "X$additional_includedir" = "X/usr/local/include"; then
16860 if test -n "$GCC"; then
16861 case $host_os in
16862 linux*) haveit=yes;;
16863 esac
16866 if test -z "$haveit"; then
16867 for x in $CPPFLAGS $INCICONV; do
16869 acl_save_prefix="$prefix"
16870 prefix="$acl_final_prefix"
16871 acl_save_exec_prefix="$exec_prefix"
16872 exec_prefix="$acl_final_exec_prefix"
16873 eval x=\"$x\"
16874 exec_prefix="$acl_save_exec_prefix"
16875 prefix="$acl_save_prefix"
16877 if test "X$x" = "X-I$additional_includedir"; then
16878 haveit=yes
16879 break
16881 done
16882 if test -z "$haveit"; then
16883 if test -d "$additional_includedir"; then
16884 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
16890 if test -n "$found_la"; then
16891 save_libdir="$libdir"
16892 case "$found_la" in
16893 */* | *\\*) . "$found_la" ;;
16894 *) . "./$found_la" ;;
16895 esac
16896 libdir="$save_libdir"
16897 for dep in $dependency_libs; do
16898 case "$dep" in
16899 -L*)
16900 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
16901 if test "X$additional_libdir" != "X/usr/lib"; then
16902 haveit=
16903 if test "X$additional_libdir" = "X/usr/local/lib"; then
16904 if test -n "$GCC"; then
16905 case $host_os in
16906 linux*) haveit=yes;;
16907 esac
16910 if test -z "$haveit"; then
16911 haveit=
16912 for x in $LDFLAGS $LIBICONV; do
16914 acl_save_prefix="$prefix"
16915 prefix="$acl_final_prefix"
16916 acl_save_exec_prefix="$exec_prefix"
16917 exec_prefix="$acl_final_exec_prefix"
16918 eval x=\"$x\"
16919 exec_prefix="$acl_save_exec_prefix"
16920 prefix="$acl_save_prefix"
16922 if test "X$x" = "X-L$additional_libdir"; then
16923 haveit=yes
16924 break
16926 done
16927 if test -z "$haveit"; then
16928 if test -d "$additional_libdir"; then
16929 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
16932 haveit=
16933 for x in $LDFLAGS $LTLIBICONV; do
16935 acl_save_prefix="$prefix"
16936 prefix="$acl_final_prefix"
16937 acl_save_exec_prefix="$exec_prefix"
16938 exec_prefix="$acl_final_exec_prefix"
16939 eval x=\"$x\"
16940 exec_prefix="$acl_save_exec_prefix"
16941 prefix="$acl_save_prefix"
16943 if test "X$x" = "X-L$additional_libdir"; then
16944 haveit=yes
16945 break
16947 done
16948 if test -z "$haveit"; then
16949 if test -d "$additional_libdir"; then
16950 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
16956 -R*)
16957 dir=`echo "X$dep" | sed -e 's/^X-R//'`
16958 if test "$enable_rpath" != no; then
16959 haveit=
16960 for x in $rpathdirs; do
16961 if test "X$x" = "X$dir"; then
16962 haveit=yes
16963 break
16965 done
16966 if test -z "$haveit"; then
16967 rpathdirs="$rpathdirs $dir"
16969 haveit=
16970 for x in $ltrpathdirs; do
16971 if test "X$x" = "X$dir"; then
16972 haveit=yes
16973 break
16975 done
16976 if test -z "$haveit"; then
16977 ltrpathdirs="$ltrpathdirs $dir"
16981 -l*)
16982 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
16984 *.la)
16985 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
16988 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
16989 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
16991 esac
16992 done
16994 else
16995 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
16996 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
16997 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
16998 else
16999 LIBICONV="${LIBICONV}${LIBICONV:+ }-l:lib$name.$libext"
17000 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l:lib$name.$libext"
17005 done
17006 done
17007 if test "X$rpathdirs" != "X"; then
17008 if test -n "$hardcode_libdir_separator"; then
17009 alldirs=
17010 for found_dir in $rpathdirs; do
17011 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17012 done
17013 acl_save_libdir="$libdir"
17014 libdir="$alldirs"
17015 eval flag=\"$hardcode_libdir_flag_spec\"
17016 libdir="$acl_save_libdir"
17017 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17018 else
17019 for found_dir in $rpathdirs; do
17020 acl_save_libdir="$libdir"
17021 libdir="$found_dir"
17022 eval flag=\"$hardcode_libdir_flag_spec\"
17023 libdir="$acl_save_libdir"
17024 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17025 done
17028 if test "X$ltrpathdirs" != "X"; then
17029 for found_dir in $ltrpathdirs; do
17030 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
17031 done
17038 if test -f ../gettext/uninstalled-config.sh; then
17039 relative_builddir='$(top_builddir)/../gettext'
17040 . ../gettext/uninstalled-config.sh
17041 else
17042 # The sister gettext directory doesn't exist and won't collect information on
17043 # using gettext for us. Call a bundled AM_GNU_GETTEXT.
17067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
17068 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
17069 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
17070 $as_echo_n "(cached) " >&6
17071 else
17072 gt_save_LIBS="$LIBS"
17073 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
17074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17075 /* end confdefs.h. */
17076 #include <CoreFoundation/CFPreferences.h>
17078 main ()
17080 CFPreferencesCopyAppValue(NULL, NULL)
17082 return 0;
17084 _ACEOF
17085 if ac_fn_c_try_link "$LINENO"; then :
17086 gt_cv_func_CFPreferencesCopyAppValue=yes
17087 else
17088 gt_cv_func_CFPreferencesCopyAppValue=no
17090 rm -f core conftest.err conftest.$ac_objext \
17091 conftest$ac_exeext conftest.$ac_ext
17092 LIBS="$gt_save_LIBS"
17094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
17095 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
17096 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
17098 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
17101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyPreferredLanguages" >&5
17102 $as_echo_n "checking for CFLocaleCopyPreferredLanguages... " >&6; }
17103 if ${gt_cv_func_CFLocaleCopyPreferredLanguages+:} false; then :
17104 $as_echo_n "(cached) " >&6
17105 else
17106 gt_save_LIBS="$LIBS"
17107 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
17108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17109 /* end confdefs.h. */
17110 #include <CoreFoundation/CFLocale.h>
17112 main ()
17114 CFLocaleCopyPreferredLanguages();
17116 return 0;
17118 _ACEOF
17119 if ac_fn_c_try_link "$LINENO"; then :
17120 gt_cv_func_CFLocaleCopyPreferredLanguages=yes
17121 else
17122 gt_cv_func_CFLocaleCopyPreferredLanguages=no
17124 rm -f core conftest.err conftest.$ac_objext \
17125 conftest$ac_exeext conftest.$ac_ext
17126 LIBS="$gt_save_LIBS"
17128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyPreferredLanguages" >&5
17129 $as_echo "$gt_cv_func_CFLocaleCopyPreferredLanguages" >&6; }
17130 if test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
17132 $as_echo "#define HAVE_CFLOCALECOPYPREFERREDLANGUAGES 1" >>confdefs.h
17135 INTL_MACOSX_LIBS=
17136 if test $gt_cv_func_CFPreferencesCopyAppValue = yes \
17137 || test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
17138 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation -Wl,-framework -Wl,CoreServices"
17146 LIBINTL=
17147 LTLIBINTL=
17148 POSUB=
17150 case " $gt_needs " in
17151 *" need-formatstring-macros "*) gt_api_version=3 ;;
17152 *" need-ngettext "*) gt_api_version=2 ;;
17153 *) gt_api_version=1 ;;
17154 esac
17155 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
17156 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
17158 if test "$USE_NLS" = "yes"; then
17159 gt_use_preinstalled_gnugettext=no
17162 if test $gt_api_version -ge 3; then
17163 gt_revision_test_code='
17164 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
17165 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
17166 #endif
17167 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
17169 else
17170 gt_revision_test_code=
17172 if test $gt_api_version -ge 2; then
17173 gt_expression_test_code=' + * ngettext ("", "", 0)'
17174 else
17175 gt_expression_test_code=
17178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
17179 $as_echo_n "checking for GNU gettext in libc... " >&6; }
17180 if eval \${$gt_func_gnugettext_libc+:} false; then :
17181 $as_echo_n "(cached) " >&6
17182 else
17183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17184 /* end confdefs.h. */
17186 #include <libintl.h>
17187 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
17188 extern int _nl_msg_cat_cntr;
17189 extern int *_nl_domain_bindings;
17190 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_domain_bindings)
17191 #else
17192 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
17193 #endif
17194 $gt_revision_test_code
17197 main ()
17200 bindtextdomain ("", "");
17201 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
17204 return 0;
17206 _ACEOF
17207 if ac_fn_c_try_link "$LINENO"; then :
17208 eval "$gt_func_gnugettext_libc=yes"
17209 else
17210 eval "$gt_func_gnugettext_libc=no"
17212 rm -f core conftest.err conftest.$ac_objext \
17213 conftest$ac_exeext conftest.$ac_ext
17215 eval ac_res=\$$gt_func_gnugettext_libc
17216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17217 $as_echo "$ac_res" >&6; }
17219 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
17225 am_save_CPPFLAGS="$CPPFLAGS"
17227 for element in $INCICONV; do
17228 haveit=
17229 for x in $CPPFLAGS; do
17231 acl_save_prefix="$prefix"
17232 prefix="$acl_final_prefix"
17233 acl_save_exec_prefix="$exec_prefix"
17234 exec_prefix="$acl_final_exec_prefix"
17235 eval x=\"$x\"
17236 exec_prefix="$acl_save_exec_prefix"
17237 prefix="$acl_save_prefix"
17239 if test "X$x" = "X$element"; then
17240 haveit=yes
17241 break
17243 done
17244 if test -z "$haveit"; then
17245 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17247 done
17250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
17251 $as_echo_n "checking for iconv... " >&6; }
17252 if ${am_cv_func_iconv+:} false; then :
17253 $as_echo_n "(cached) " >&6
17254 else
17256 am_cv_func_iconv="no, consider installing GNU libiconv"
17257 am_cv_lib_iconv=no
17258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17259 /* end confdefs.h. */
17261 #include <stdlib.h>
17262 #include <iconv.h>
17265 main ()
17267 iconv_t cd = iconv_open("","");
17268 iconv(cd,NULL,NULL,NULL,NULL);
17269 iconv_close(cd);
17271 return 0;
17273 _ACEOF
17274 if ac_fn_c_try_link "$LINENO"; then :
17275 am_cv_func_iconv=yes
17277 rm -f core conftest.err conftest.$ac_objext \
17278 conftest$ac_exeext conftest.$ac_ext
17279 if test "$am_cv_func_iconv" != yes; then
17280 am_save_LIBS="$LIBS"
17281 LIBS="$LIBS $LIBICONV"
17282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17283 /* end confdefs.h. */
17285 #include <stdlib.h>
17286 #include <iconv.h>
17289 main ()
17291 iconv_t cd = iconv_open("","");
17292 iconv(cd,NULL,NULL,NULL,NULL);
17293 iconv_close(cd);
17295 return 0;
17297 _ACEOF
17298 if ac_fn_c_try_link "$LINENO"; then :
17299 am_cv_lib_iconv=yes
17300 am_cv_func_iconv=yes
17302 rm -f core conftest.err conftest.$ac_objext \
17303 conftest$ac_exeext conftest.$ac_ext
17304 LIBS="$am_save_LIBS"
17308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
17309 $as_echo "$am_cv_func_iconv" >&6; }
17310 if test "$am_cv_func_iconv" = yes; then
17311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
17312 $as_echo_n "checking for working iconv... " >&6; }
17313 if ${am_cv_func_iconv_works+:} false; then :
17314 $as_echo_n "(cached) " >&6
17315 else
17317 am_save_LIBS="$LIBS"
17318 if test $am_cv_lib_iconv = yes; then
17319 LIBS="$LIBS $LIBICONV"
17321 am_cv_func_iconv_works=no
17322 for ac_iconv_const in '' 'const'; do
17323 if test "$cross_compiling" = yes; then :
17324 case "$host_os" in
17325 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
17326 *) am_cv_func_iconv_works="guessing yes" ;;
17327 esac
17328 else
17329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17330 /* end confdefs.h. */
17332 #include <iconv.h>
17333 #include <string.h>
17335 #ifndef ICONV_CONST
17336 # define ICONV_CONST $ac_iconv_const
17337 #endif
17340 main ()
17342 int result = 0;
17343 /* Test against AIX 5.1...7.2 bug: Failures are not distinguishable from
17344 successful returns. This is even documented in
17345 <https://www.ibm.com/support/knowledgecenter/ssw_aix_72/i_bostechref/iconv.html> */
17347 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
17348 if (cd_utf8_to_88591 != (iconv_t)(-1))
17350 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
17351 char buf[10];
17352 ICONV_CONST char *inptr = input;
17353 size_t inbytesleft = strlen (input);
17354 char *outptr = buf;
17355 size_t outbytesleft = sizeof (buf);
17356 size_t res = iconv (cd_utf8_to_88591,
17357 &inptr, &inbytesleft,
17358 &outptr, &outbytesleft);
17359 if (res == 0)
17360 result |= 1;
17361 iconv_close (cd_utf8_to_88591);
17364 /* Test against Solaris 10 bug: Failures are not distinguishable from
17365 successful returns. */
17367 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
17368 if (cd_ascii_to_88591 != (iconv_t)(-1))
17370 static ICONV_CONST char input[] = "\263";
17371 char buf[10];
17372 ICONV_CONST char *inptr = input;
17373 size_t inbytesleft = strlen (input);
17374 char *outptr = buf;
17375 size_t outbytesleft = sizeof (buf);
17376 size_t res = iconv (cd_ascii_to_88591,
17377 &inptr, &inbytesleft,
17378 &outptr, &outbytesleft);
17379 if (res == 0)
17380 result |= 2;
17381 iconv_close (cd_ascii_to_88591);
17384 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
17386 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
17387 if (cd_88591_to_utf8 != (iconv_t)(-1))
17389 static ICONV_CONST char input[] = "\304";
17390 static char buf[2] = { (char)0xDE, (char)0xAD };
17391 ICONV_CONST char *inptr = input;
17392 size_t inbytesleft = 1;
17393 char *outptr = buf;
17394 size_t outbytesleft = 1;
17395 size_t res = iconv (cd_88591_to_utf8,
17396 &inptr, &inbytesleft,
17397 &outptr, &outbytesleft);
17398 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
17399 result |= 4;
17400 iconv_close (cd_88591_to_utf8);
17403 #if 0 /* This bug could be worked around by the caller. */
17404 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
17406 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
17407 if (cd_88591_to_utf8 != (iconv_t)(-1))
17409 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
17410 char buf[50];
17411 ICONV_CONST char *inptr = input;
17412 size_t inbytesleft = strlen (input);
17413 char *outptr = buf;
17414 size_t outbytesleft = sizeof (buf);
17415 size_t res = iconv (cd_88591_to_utf8,
17416 &inptr, &inbytesleft,
17417 &outptr, &outbytesleft);
17418 if ((int)res > 0)
17419 result |= 8;
17420 iconv_close (cd_88591_to_utf8);
17423 #endif
17424 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
17425 provided. */
17427 /* Try standardized names. */
17428 iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP");
17429 /* Try IRIX, OSF/1 names. */
17430 iconv_t cd2 = iconv_open ("UTF-8", "eucJP");
17431 /* Try AIX names. */
17432 iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP");
17433 /* Try HP-UX names. */
17434 iconv_t cd4 = iconv_open ("utf8", "eucJP");
17435 if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1)
17436 && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1))
17437 result |= 16;
17438 if (cd1 != (iconv_t)(-1))
17439 iconv_close (cd1);
17440 if (cd2 != (iconv_t)(-1))
17441 iconv_close (cd2);
17442 if (cd3 != (iconv_t)(-1))
17443 iconv_close (cd3);
17444 if (cd4 != (iconv_t)(-1))
17445 iconv_close (cd4);
17447 return result;
17450 return 0;
17452 _ACEOF
17453 if ac_fn_c_try_run "$LINENO"; then :
17454 am_cv_func_iconv_works=yes
17456 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17457 conftest.$ac_objext conftest.beam conftest.$ac_ext
17460 test "$am_cv_func_iconv_works" = no || break
17461 done
17462 LIBS="$am_save_LIBS"
17465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
17466 $as_echo "$am_cv_func_iconv_works" >&6; }
17467 case "$am_cv_func_iconv_works" in
17468 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
17469 *) am_func_iconv=yes ;;
17470 esac
17471 else
17472 am_func_iconv=no am_cv_lib_iconv=no
17474 if test "$am_func_iconv" = yes; then
17476 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
17479 if test "$am_cv_lib_iconv" = yes; then
17480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
17481 $as_echo_n "checking how to link with libiconv... " >&6; }
17482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
17483 $as_echo "$LIBICONV" >&6; }
17484 else
17485 CPPFLAGS="$am_save_CPPFLAGS"
17486 LIBICONV=
17487 LTLIBICONV=
17495 use_additional=yes
17497 acl_save_prefix="$prefix"
17498 prefix="$acl_final_prefix"
17499 acl_save_exec_prefix="$exec_prefix"
17500 exec_prefix="$acl_final_exec_prefix"
17502 eval additional_includedir=\"$includedir\"
17503 eval additional_libdir=\"$libdir\"
17505 exec_prefix="$acl_save_exec_prefix"
17506 prefix="$acl_save_prefix"
17509 # Check whether --with-libintl-prefix was given.
17510 if test "${with_libintl_prefix+set}" = set; then :
17511 withval=$with_libintl_prefix;
17512 if test "X$withval" = "Xno"; then
17513 use_additional=no
17514 else
17515 if test "X$withval" = "X"; then
17517 acl_save_prefix="$prefix"
17518 prefix="$acl_final_prefix"
17519 acl_save_exec_prefix="$exec_prefix"
17520 exec_prefix="$acl_final_exec_prefix"
17522 eval additional_includedir=\"$includedir\"
17523 eval additional_libdir=\"$libdir\"
17525 exec_prefix="$acl_save_exec_prefix"
17526 prefix="$acl_save_prefix"
17528 else
17529 additional_includedir="$withval/include"
17530 additional_libdir="$withval/lib"
17537 # Check whether --with-libintl-type was given.
17538 if test "${with_libintl_type+set}" = set; then :
17539 withval=$with_libintl_type; with_libintl_type=$withval
17540 else
17541 with_libintl_type=auto
17544 lib_type=`eval echo \$with_libintl_type`
17546 LIBINTL=
17547 LTLIBINTL=
17548 INCINTL=
17549 rpathdirs=
17550 ltrpathdirs=
17551 names_already_handled=
17552 names_next_round='intl '
17553 while test -n "$names_next_round"; do
17554 names_this_round="$names_next_round"
17555 names_next_round=
17556 for name in $names_this_round; do
17557 already_handled=
17558 for n in $names_already_handled; do
17559 if test "$n" = "$name"; then
17560 already_handled=yes
17561 break
17563 done
17564 if test -z "$already_handled"; then
17565 names_already_handled="$names_already_handled $name"
17566 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17567 eval value=\"\$HAVE_LIB$uppername\"
17568 if test -n "$value"; then
17569 if test "$value" = yes; then
17570 eval value=\"\$LIB$uppername\"
17571 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
17572 eval value=\"\$LTLIB$uppername\"
17573 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
17574 else
17577 else
17578 found_dir=
17579 found_la=
17580 found_so=
17581 found_a=
17582 if test $use_additional = yes; then
17583 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
17584 found_dir="$additional_libdir"
17585 found_so="$additional_libdir/lib$name.$shlibext"
17586 if test -f "$additional_libdir/lib$name.la"; then
17587 found_la="$additional_libdir/lib$name.la"
17589 elif test x$lib_type != xshared; then
17590 if test -f "$additional_libdir/lib$name.$libext"; then
17591 found_dir="$additional_libdir"
17592 found_a="$additional_libdir/lib$name.$libext"
17593 if test -f "$additional_libdir/lib$name.la"; then
17594 found_la="$additional_libdir/lib$name.la"
17599 if test "X$found_dir" = "X"; then
17600 for x in $LDFLAGS $LTLIBINTL; do
17602 acl_save_prefix="$prefix"
17603 prefix="$acl_final_prefix"
17604 acl_save_exec_prefix="$exec_prefix"
17605 exec_prefix="$acl_final_exec_prefix"
17606 eval x=\"$x\"
17607 exec_prefix="$acl_save_exec_prefix"
17608 prefix="$acl_save_prefix"
17610 case "$x" in
17611 -L*)
17612 dir=`echo "X$x" | sed -e 's/^X-L//'`
17613 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
17614 found_dir="$dir"
17615 found_so="$dir/lib$name.$shlibext"
17616 if test -f "$dir/lib$name.la"; then
17617 found_la="$dir/lib$name.la"
17619 elif test x$lib_type != xshared; then
17620 if test -f "$dir/lib$name.$libext"; then
17621 found_dir="$dir"
17622 found_a="$dir/lib$name.$libext"
17623 if test -f "$dir/lib$name.la"; then
17624 found_la="$dir/lib$name.la"
17629 esac
17630 if test "X$found_dir" != "X"; then
17631 break
17633 done
17635 if test "X$found_dir" != "X"; then
17636 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
17637 if test "X$found_so" != "X"; then
17638 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17639 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17640 else
17641 haveit=
17642 for x in $ltrpathdirs; do
17643 if test "X$x" = "X$found_dir"; then
17644 haveit=yes
17645 break
17647 done
17648 if test -z "$haveit"; then
17649 ltrpathdirs="$ltrpathdirs $found_dir"
17651 if test "$hardcode_direct" = yes; then
17652 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17653 else
17654 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17655 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17656 haveit=
17657 for x in $rpathdirs; do
17658 if test "X$x" = "X$found_dir"; then
17659 haveit=yes
17660 break
17662 done
17663 if test -z "$haveit"; then
17664 rpathdirs="$rpathdirs $found_dir"
17666 else
17667 haveit=
17668 for x in $LDFLAGS $LIBINTL; do
17670 acl_save_prefix="$prefix"
17671 prefix="$acl_final_prefix"
17672 acl_save_exec_prefix="$exec_prefix"
17673 exec_prefix="$acl_final_exec_prefix"
17674 eval x=\"$x\"
17675 exec_prefix="$acl_save_exec_prefix"
17676 prefix="$acl_save_prefix"
17678 if test "X$x" = "X-L$found_dir"; then
17679 haveit=yes
17680 break
17682 done
17683 if test -z "$haveit"; then
17684 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
17686 if test "$hardcode_minus_L" != no; then
17687 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17688 else
17689 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17694 else
17695 if test "X$found_a" != "X"; then
17696 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
17697 else
17698 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
17701 additional_includedir=
17702 case "$found_dir" in
17703 */lib | */lib/)
17704 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17705 additional_includedir="$basedir/include"
17707 esac
17708 if test "X$additional_includedir" != "X"; then
17709 if test "X$additional_includedir" != "X/usr/include"; then
17710 haveit=
17711 if test "X$additional_includedir" = "X/usr/local/include"; then
17712 if test -n "$GCC"; then
17713 case $host_os in
17714 linux*) haveit=yes;;
17715 esac
17718 if test -z "$haveit"; then
17719 for x in $CPPFLAGS $INCINTL; do
17721 acl_save_prefix="$prefix"
17722 prefix="$acl_final_prefix"
17723 acl_save_exec_prefix="$exec_prefix"
17724 exec_prefix="$acl_final_exec_prefix"
17725 eval x=\"$x\"
17726 exec_prefix="$acl_save_exec_prefix"
17727 prefix="$acl_save_prefix"
17729 if test "X$x" = "X-I$additional_includedir"; then
17730 haveit=yes
17731 break
17733 done
17734 if test -z "$haveit"; then
17735 if test -d "$additional_includedir"; then
17736 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
17742 if test -n "$found_la"; then
17743 save_libdir="$libdir"
17744 case "$found_la" in
17745 */* | *\\*) . "$found_la" ;;
17746 *) . "./$found_la" ;;
17747 esac
17748 libdir="$save_libdir"
17749 for dep in $dependency_libs; do
17750 case "$dep" in
17751 -L*)
17752 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17753 if test "X$additional_libdir" != "X/usr/lib"; then
17754 haveit=
17755 if test "X$additional_libdir" = "X/usr/local/lib"; then
17756 if test -n "$GCC"; then
17757 case $host_os in
17758 linux*) haveit=yes;;
17759 esac
17762 if test -z "$haveit"; then
17763 haveit=
17764 for x in $LDFLAGS $LIBINTL; do
17766 acl_save_prefix="$prefix"
17767 prefix="$acl_final_prefix"
17768 acl_save_exec_prefix="$exec_prefix"
17769 exec_prefix="$acl_final_exec_prefix"
17770 eval x=\"$x\"
17771 exec_prefix="$acl_save_exec_prefix"
17772 prefix="$acl_save_prefix"
17774 if test "X$x" = "X-L$additional_libdir"; then
17775 haveit=yes
17776 break
17778 done
17779 if test -z "$haveit"; then
17780 if test -d "$additional_libdir"; then
17781 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
17784 haveit=
17785 for x in $LDFLAGS $LTLIBINTL; do
17787 acl_save_prefix="$prefix"
17788 prefix="$acl_final_prefix"
17789 acl_save_exec_prefix="$exec_prefix"
17790 exec_prefix="$acl_final_exec_prefix"
17791 eval x=\"$x\"
17792 exec_prefix="$acl_save_exec_prefix"
17793 prefix="$acl_save_prefix"
17795 if test "X$x" = "X-L$additional_libdir"; then
17796 haveit=yes
17797 break
17799 done
17800 if test -z "$haveit"; then
17801 if test -d "$additional_libdir"; then
17802 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
17808 -R*)
17809 dir=`echo "X$dep" | sed -e 's/^X-R//'`
17810 if test "$enable_rpath" != no; then
17811 haveit=
17812 for x in $rpathdirs; do
17813 if test "X$x" = "X$dir"; then
17814 haveit=yes
17815 break
17817 done
17818 if test -z "$haveit"; then
17819 rpathdirs="$rpathdirs $dir"
17821 haveit=
17822 for x in $ltrpathdirs; do
17823 if test "X$x" = "X$dir"; then
17824 haveit=yes
17825 break
17827 done
17828 if test -z "$haveit"; then
17829 ltrpathdirs="$ltrpathdirs $dir"
17833 -l*)
17834 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17836 *.la)
17837 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17840 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
17841 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
17843 esac
17844 done
17846 else
17847 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
17848 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17849 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
17850 else
17851 LIBINTL="${LIBINTL}${LIBINTL:+ }-l:lib$name.$libext"
17852 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l:lib$name.$libext"
17857 done
17858 done
17859 if test "X$rpathdirs" != "X"; then
17860 if test -n "$hardcode_libdir_separator"; then
17861 alldirs=
17862 for found_dir in $rpathdirs; do
17863 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17864 done
17865 acl_save_libdir="$libdir"
17866 libdir="$alldirs"
17867 eval flag=\"$hardcode_libdir_flag_spec\"
17868 libdir="$acl_save_libdir"
17869 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
17870 else
17871 for found_dir in $rpathdirs; do
17872 acl_save_libdir="$libdir"
17873 libdir="$found_dir"
17874 eval flag=\"$hardcode_libdir_flag_spec\"
17875 libdir="$acl_save_libdir"
17876 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
17877 done
17880 if test "X$ltrpathdirs" != "X"; then
17881 for found_dir in $ltrpathdirs; do
17882 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
17883 done
17886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
17887 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
17888 if eval \${$gt_func_gnugettext_libintl+:} false; then :
17889 $as_echo_n "(cached) " >&6
17890 else
17891 gt_save_CPPFLAGS="$CPPFLAGS"
17892 CPPFLAGS="$CPPFLAGS $INCINTL"
17893 gt_save_LIBS="$LIBS"
17894 LIBS="$LIBS $LIBINTL"
17895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17896 /* end confdefs.h. */
17898 #include <libintl.h>
17899 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
17900 extern int _nl_msg_cat_cntr;
17901 extern
17902 #ifdef __cplusplus
17904 #endif
17905 const char *_nl_expand_alias (const char *);
17906 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
17907 #else
17908 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
17909 #endif
17910 $gt_revision_test_code
17913 main ()
17916 bindtextdomain ("", "");
17917 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
17920 return 0;
17922 _ACEOF
17923 if ac_fn_c_try_link "$LINENO"; then :
17924 eval "$gt_func_gnugettext_libintl=yes"
17925 else
17926 eval "$gt_func_gnugettext_libintl=no"
17928 rm -f core conftest.err conftest.$ac_objext \
17929 conftest$ac_exeext conftest.$ac_ext
17930 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
17931 LIBS="$LIBS $LIBICONV"
17932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17933 /* end confdefs.h. */
17935 #include <libintl.h>
17936 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
17937 extern int _nl_msg_cat_cntr;
17938 extern
17939 #ifdef __cplusplus
17941 #endif
17942 const char *_nl_expand_alias (const char *);
17943 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
17944 #else
17945 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
17946 #endif
17947 $gt_revision_test_code
17950 main ()
17953 bindtextdomain ("", "");
17954 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
17957 return 0;
17959 _ACEOF
17960 if ac_fn_c_try_link "$LINENO"; then :
17961 LIBINTL="$LIBINTL $LIBICONV"
17962 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
17963 eval "$gt_func_gnugettext_libintl=yes"
17966 rm -f core conftest.err conftest.$ac_objext \
17967 conftest$ac_exeext conftest.$ac_ext
17969 CPPFLAGS="$gt_save_CPPFLAGS"
17970 LIBS="$gt_save_LIBS"
17972 eval ac_res=\$$gt_func_gnugettext_libintl
17973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17974 $as_echo "$ac_res" >&6; }
17977 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
17978 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
17979 && test "$PACKAGE" != gettext-runtime \
17980 && test "$PACKAGE" != gettext-tools; }; then
17981 gt_use_preinstalled_gnugettext=yes
17982 else
17983 LIBINTL=
17984 LTLIBINTL=
17985 INCINTL=
17990 if test -n "$INTL_MACOSX_LIBS"; then
17991 if test "$gt_use_preinstalled_gnugettext" = "yes" \
17992 || test "$nls_cv_use_gnu_gettext" = "yes"; then
17993 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
17994 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
17998 if test "$gt_use_preinstalled_gnugettext" = "yes" \
17999 || test "$nls_cv_use_gnu_gettext" = "yes"; then
18001 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
18003 else
18004 USE_NLS=no
18008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
18009 $as_echo_n "checking whether to use NLS... " >&6; }
18010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
18011 $as_echo "$USE_NLS" >&6; }
18012 if test "$USE_NLS" = "yes"; then
18013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
18014 $as_echo_n "checking where the gettext function comes from... " >&6; }
18015 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18016 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
18017 gt_source="external libintl"
18018 else
18019 gt_source="libc"
18021 else
18022 gt_source="included intl directory"
18024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
18025 $as_echo "$gt_source" >&6; }
18028 if test "$USE_NLS" = "yes"; then
18030 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18031 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
18032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
18033 $as_echo_n "checking how to link with libintl... " >&6; }
18034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
18035 $as_echo "$LIBINTL" >&6; }
18037 for element in $INCINTL; do
18038 haveit=
18039 for x in $CPPFLAGS; do
18041 acl_save_prefix="$prefix"
18042 prefix="$acl_final_prefix"
18043 acl_save_exec_prefix="$exec_prefix"
18044 exec_prefix="$acl_final_exec_prefix"
18045 eval x=\"$x\"
18046 exec_prefix="$acl_save_exec_prefix"
18047 prefix="$acl_save_prefix"
18049 if test "X$x" = "X$element"; then
18050 haveit=yes
18051 break
18053 done
18054 if test -z "$haveit"; then
18055 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18057 done
18062 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
18065 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
18069 POSUB=po
18074 INTLLIBS="$LIBINTL"
18093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
18094 $as_echo_n "checking whether NLS is requested... " >&6; }
18095 if test x"$USE_NLS" != xyes; then
18096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18097 $as_echo "no" >&6; }
18098 else
18099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18100 $as_echo "yes" >&6; }
18102 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
18105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
18106 $as_echo_n "checking for catalogs to be installed... " >&6; }
18107 # Look for .po and .gmo files in the source directory.
18108 CATALOGS=
18109 XLINGUAS=
18110 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
18111 # If there aren't any .gmo files the shell will give us the
18112 # literal string "../path/to/srcdir/po/*.gmo" which has to be
18113 # weeded out.
18114 case "$cat" in *\**)
18115 continue;;
18116 esac
18117 # The quadruple backslash is collapsed to a double backslash
18118 # by the backticks, then collapsed again by the double quotes,
18119 # leaving us with one backslash in the sed expression (right
18120 # before the dot that mustn't act as a wildcard).
18121 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
18122 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
18123 # The user is allowed to set LINGUAS to a list of languages to
18124 # install catalogs for. If it's empty that means "all of them."
18125 if test "x$LINGUAS" = x; then
18126 CATALOGS="$CATALOGS $cat"
18127 XLINGUAS="$XLINGUAS $lang"
18128 else
18129 case "$LINGUAS" in *$lang*)
18130 CATALOGS="$CATALOGS $cat"
18131 XLINGUAS="$XLINGUAS $lang"
18133 esac
18135 done
18136 LINGUAS="$XLINGUAS"
18137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
18138 $as_echo "$LINGUAS" >&6; }
18141 DATADIRNAME=share
18143 INSTOBJEXT=.mo
18145 GENCAT=gencat
18147 CATOBJEXT=.gmo
18154 # Prepare PATH_SEPARATOR.
18155 # The user is always right.
18156 if test "${PATH_SEPARATOR+set}" != set; then
18157 echo "#! /bin/sh" >conf$$.sh
18158 echo "exit 0" >>conf$$.sh
18159 chmod +x conf$$.sh
18160 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
18161 PATH_SEPARATOR=';'
18162 else
18163 PATH_SEPARATOR=:
18165 rm -f conf$$.sh
18168 # Find out how to test for executable files. Don't use a zero-byte file,
18169 # as systems may use methods other than mode bits to determine executability.
18170 cat >conf$$.file <<_ASEOF
18171 #! /bin/sh
18172 exit 0
18173 _ASEOF
18174 chmod +x conf$$.file
18175 if test -x conf$$.file >/dev/null 2>&1; then
18176 ac_executable_p="test -x"
18177 else
18178 ac_executable_p="test -f"
18180 rm -f conf$$.file
18182 # Extract the first word of "msgfmt", so it can be a program name with args.
18183 set dummy msgfmt; ac_word=$2
18184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18185 $as_echo_n "checking for $ac_word... " >&6; }
18186 if ${ac_cv_path_MSGFMT+:} false; then :
18187 $as_echo_n "(cached) " >&6
18188 else
18189 case "$MSGFMT" in
18190 [\\/]* | ?:[\\/]*)
18191 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
18194 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
18195 for ac_dir in $PATH; do
18196 IFS="$ac_save_IFS"
18197 test -z "$ac_dir" && ac_dir=.
18198 for ac_exec_ext in '' $ac_executable_extensions; do
18199 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
18200 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
18201 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
18202 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
18203 break 2
18206 done
18207 done
18208 IFS="$ac_save_IFS"
18209 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
18211 esac
18213 MSGFMT="$ac_cv_path_MSGFMT"
18214 if test "$MSGFMT" != ":"; then
18215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
18216 $as_echo "$MSGFMT" >&6; }
18217 else
18218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18219 $as_echo "no" >&6; }
18222 # Extract the first word of "gmsgfmt", so it can be a program name with args.
18223 set dummy gmsgfmt; ac_word=$2
18224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18225 $as_echo_n "checking for $ac_word... " >&6; }
18226 if ${ac_cv_path_GMSGFMT+:} false; then :
18227 $as_echo_n "(cached) " >&6
18228 else
18229 case $GMSGFMT in
18230 [\\/]* | ?:[\\/]*)
18231 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
18234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18235 for as_dir in $PATH
18237 IFS=$as_save_IFS
18238 test -z "$as_dir" && as_dir=.
18239 for ac_exec_ext in '' $ac_executable_extensions; do
18240 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18241 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
18242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18243 break 2
18245 done
18246 done
18247 IFS=$as_save_IFS
18249 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
18251 esac
18253 GMSGFMT=$ac_cv_path_GMSGFMT
18254 if test -n "$GMSGFMT"; then
18255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
18256 $as_echo "$GMSGFMT" >&6; }
18257 else
18258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18259 $as_echo "no" >&6; }
18265 # Prepare PATH_SEPARATOR.
18266 # The user is always right.
18267 if test "${PATH_SEPARATOR+set}" != set; then
18268 echo "#! /bin/sh" >conf$$.sh
18269 echo "exit 0" >>conf$$.sh
18270 chmod +x conf$$.sh
18271 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
18272 PATH_SEPARATOR=';'
18273 else
18274 PATH_SEPARATOR=:
18276 rm -f conf$$.sh
18279 # Find out how to test for executable files. Don't use a zero-byte file,
18280 # as systems may use methods other than mode bits to determine executability.
18281 cat >conf$$.file <<_ASEOF
18282 #! /bin/sh
18283 exit 0
18284 _ASEOF
18285 chmod +x conf$$.file
18286 if test -x conf$$.file >/dev/null 2>&1; then
18287 ac_executable_p="test -x"
18288 else
18289 ac_executable_p="test -f"
18291 rm -f conf$$.file
18293 # Extract the first word of "xgettext", so it can be a program name with args.
18294 set dummy xgettext; ac_word=$2
18295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18296 $as_echo_n "checking for $ac_word... " >&6; }
18297 if ${ac_cv_path_XGETTEXT+:} false; then :
18298 $as_echo_n "(cached) " >&6
18299 else
18300 case "$XGETTEXT" in
18301 [\\/]* | ?:[\\/]*)
18302 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
18305 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
18306 for ac_dir in $PATH; do
18307 IFS="$ac_save_IFS"
18308 test -z "$ac_dir" && ac_dir=.
18309 for ac_exec_ext in '' $ac_executable_extensions; do
18310 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
18311 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
18312 (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
18313 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
18314 break 2
18317 done
18318 done
18319 IFS="$ac_save_IFS"
18320 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
18322 esac
18324 XGETTEXT="$ac_cv_path_XGETTEXT"
18325 if test "$XGETTEXT" != ":"; then
18326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
18327 $as_echo "$XGETTEXT" >&6; }
18328 else
18329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18330 $as_echo "no" >&6; }
18333 rm -f messages.po
18336 # Prepare PATH_SEPARATOR.
18337 # The user is always right.
18338 if test "${PATH_SEPARATOR+set}" != set; then
18339 echo "#! /bin/sh" >conf$$.sh
18340 echo "exit 0" >>conf$$.sh
18341 chmod +x conf$$.sh
18342 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
18343 PATH_SEPARATOR=';'
18344 else
18345 PATH_SEPARATOR=:
18347 rm -f conf$$.sh
18350 # Find out how to test for executable files. Don't use a zero-byte file,
18351 # as systems may use methods other than mode bits to determine executability.
18352 cat >conf$$.file <<_ASEOF
18353 #! /bin/sh
18354 exit 0
18355 _ASEOF
18356 chmod +x conf$$.file
18357 if test -x conf$$.file >/dev/null 2>&1; then
18358 ac_executable_p="test -x"
18359 else
18360 ac_executable_p="test -f"
18362 rm -f conf$$.file
18364 # Extract the first word of "msgmerge", so it can be a program name with args.
18365 set dummy msgmerge; ac_word=$2
18366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18367 $as_echo_n "checking for $ac_word... " >&6; }
18368 if ${ac_cv_path_MSGMERGE+:} false; then :
18369 $as_echo_n "(cached) " >&6
18370 else
18371 case "$MSGMERGE" in
18372 [\\/]* | ?:[\\/]*)
18373 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
18376 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
18377 for ac_dir in $PATH; do
18378 IFS="$ac_save_IFS"
18379 test -z "$ac_dir" && ac_dir=.
18380 for ac_exec_ext in '' $ac_executable_extensions; do
18381 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
18382 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
18383 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
18384 break 2
18387 done
18388 done
18389 IFS="$ac_save_IFS"
18390 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
18392 esac
18394 MSGMERGE="$ac_cv_path_MSGMERGE"
18395 if test "$MSGMERGE" != ":"; then
18396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
18397 $as_echo "$MSGMERGE" >&6; }
18398 else
18399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18400 $as_echo "no" >&6; }
18404 if test "$GMSGFMT" != ":"; then
18405 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
18406 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
18408 else
18409 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
18410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
18411 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
18412 GMSGFMT=":"
18416 if test "$XGETTEXT" != ":"; then
18417 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
18418 (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
18420 else
18421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
18422 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
18423 XGETTEXT=":"
18425 rm -f messages.po
18428 ac_config_commands="$ac_config_commands default-2"
18434 for ac_prog in 'bison -y' byacc
18436 # Extract the first word of "$ac_prog", so it can be a program name with args.
18437 set dummy $ac_prog; ac_word=$2
18438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18439 $as_echo_n "checking for $ac_word... " >&6; }
18440 if ${ac_cv_prog_YACC+:} false; then :
18441 $as_echo_n "(cached) " >&6
18442 else
18443 if test -n "$YACC"; then
18444 ac_cv_prog_YACC="$YACC" # Let the user override the test.
18445 else
18446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18447 for as_dir in $PATH
18449 IFS=$as_save_IFS
18450 test -z "$as_dir" && as_dir=.
18451 for ac_exec_ext in '' $ac_executable_extensions; do
18452 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18453 ac_cv_prog_YACC="$ac_prog"
18454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18455 break 2
18457 done
18458 done
18459 IFS=$as_save_IFS
18463 YACC=$ac_cv_prog_YACC
18464 if test -n "$YACC"; then
18465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
18466 $as_echo "$YACC" >&6; }
18467 else
18468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18469 $as_echo "no" >&6; }
18473 test -n "$YACC" && break
18474 done
18475 test -n "$YACC" || YACC="yacc"
18477 for ac_prog in flex lex
18479 # Extract the first word of "$ac_prog", so it can be a program name with args.
18480 set dummy $ac_prog; ac_word=$2
18481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18482 $as_echo_n "checking for $ac_word... " >&6; }
18483 if ${ac_cv_prog_LEX+:} false; then :
18484 $as_echo_n "(cached) " >&6
18485 else
18486 if test -n "$LEX"; then
18487 ac_cv_prog_LEX="$LEX" # Let the user override the test.
18488 else
18489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18490 for as_dir in $PATH
18492 IFS=$as_save_IFS
18493 test -z "$as_dir" && as_dir=.
18494 for ac_exec_ext in '' $ac_executable_extensions; do
18495 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18496 ac_cv_prog_LEX="$ac_prog"
18497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18498 break 2
18500 done
18501 done
18502 IFS=$as_save_IFS
18506 LEX=$ac_cv_prog_LEX
18507 if test -n "$LEX"; then
18508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
18509 $as_echo "$LEX" >&6; }
18510 else
18511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18512 $as_echo "no" >&6; }
18516 test -n "$LEX" && break
18517 done
18518 test -n "$LEX" || LEX=":"
18520 case "$LEX" in
18521 :|*"missing "*) ;;
18522 *) cat >conftest.l <<_ACEOF
18524 a { ECHO; }
18525 b { REJECT; }
18526 c { yymore (); }
18527 d { yyless (1); }
18528 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
18529 yyless ((input () != 0)); }
18530 f { unput (yytext[0]); }
18531 . { BEGIN INITIAL; }
18533 #ifdef YYTEXT_POINTER
18534 extern char *yytext;
18535 #endif
18537 main (void)
18539 return ! yylex () + ! yywrap ();
18541 _ACEOF
18542 { { ac_try="$LEX conftest.l"
18543 case "(($ac_try" in
18544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18545 *) ac_try_echo=$ac_try;;
18546 esac
18547 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
18548 $as_echo "$ac_try_echo"; } >&5
18549 (eval "$LEX conftest.l") 2>&5
18550 ac_status=$?
18551 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18552 test $ac_status = 0; }
18553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
18554 $as_echo_n "checking lex output file root... " >&6; }
18555 if ${ac_cv_prog_lex_root+:} false; then :
18556 $as_echo_n "(cached) " >&6
18557 else
18559 if test -f lex.yy.c; then
18560 ac_cv_prog_lex_root=lex.yy
18561 elif test -f lexyy.c; then
18562 ac_cv_prog_lex_root=lexyy
18563 else
18564 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
18567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
18568 $as_echo "$ac_cv_prog_lex_root" >&6; }
18569 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
18571 if test -z "${LEXLIB+set}"; then
18572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
18573 $as_echo_n "checking lex library... " >&6; }
18574 if ${ac_cv_lib_lex+:} false; then :
18575 $as_echo_n "(cached) " >&6
18576 else
18578 ac_save_LIBS=$LIBS
18579 ac_cv_lib_lex='none needed'
18580 for ac_lib in '' -lfl -ll; do
18581 LIBS="$ac_lib $ac_save_LIBS"
18582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18583 /* end confdefs.h. */
18584 `cat $LEX_OUTPUT_ROOT.c`
18585 _ACEOF
18586 if ac_fn_c_try_link "$LINENO"; then :
18587 ac_cv_lib_lex=$ac_lib
18589 rm -f core conftest.err conftest.$ac_objext \
18590 conftest$ac_exeext conftest.$ac_ext
18591 test "$ac_cv_lib_lex" != 'none needed' && break
18592 done
18593 LIBS=$ac_save_LIBS
18596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
18597 $as_echo "$ac_cv_lib_lex" >&6; }
18598 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
18602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
18603 $as_echo_n "checking whether yytext is a pointer... " >&6; }
18604 if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
18605 $as_echo_n "(cached) " >&6
18606 else
18607 # POSIX says lex can declare yytext either as a pointer or an array; the
18608 # default is implementation-dependent. Figure out which it is, since
18609 # not all implementations provide the %pointer and %array declarations.
18610 ac_cv_prog_lex_yytext_pointer=no
18611 ac_save_LIBS=$LIBS
18612 LIBS="$LEXLIB $ac_save_LIBS"
18613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18614 /* end confdefs.h. */
18616 #define YYTEXT_POINTER 1
18617 `cat $LEX_OUTPUT_ROOT.c`
18618 _ACEOF
18619 if ac_fn_c_try_link "$LINENO"; then :
18620 ac_cv_prog_lex_yytext_pointer=yes
18622 rm -f core conftest.err conftest.$ac_objext \
18623 conftest$ac_exeext conftest.$ac_ext
18624 LIBS=$ac_save_LIBS
18627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
18628 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
18629 if test $ac_cv_prog_lex_yytext_pointer = yes; then
18631 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
18634 rm -f conftest.l $LEX_OUTPUT_ROOT.c
18636 esac
18637 if test "$LEX" = :; then
18638 LEX=${am_missing_run}flex
18642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
18643 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
18644 # Check whether --enable-maintainer-mode was given.
18645 if test "${enable_maintainer_mode+set}" = set; then :
18646 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
18647 else
18648 USE_MAINTAINER_MODE=no
18651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
18652 $as_echo "$USE_MAINTAINER_MODE" >&6; }
18653 if test $USE_MAINTAINER_MODE = yes; then
18654 MAINTAINER_MODE_TRUE=
18655 MAINTAINER_MODE_FALSE='#'
18656 else
18657 MAINTAINER_MODE_TRUE='#'
18658 MAINTAINER_MODE_FALSE=
18661 MAINT=$MAINTAINER_MODE_TRUE
18664 if false; then
18665 GENINSRC_NEVER_TRUE=
18666 GENINSRC_NEVER_FALSE='#'
18667 else
18668 GENINSRC_NEVER_TRUE='#'
18669 GENINSRC_NEVER_FALSE=
18672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
18673 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
18674 if ${gcc_cv_prog_cmp_skip+:} false; then :
18675 $as_echo_n "(cached) " >&6
18676 else
18677 echo abfoo >t1
18678 echo cdfoo >t2
18679 gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
18680 if cmp t1 t2 2 2 > /dev/null 2>&1; then
18681 if cmp t1 t2 1 1 > /dev/null 2>&1; then
18683 else
18684 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
18687 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
18688 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
18690 else
18691 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
18694 rm t1 t2
18697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
18698 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
18699 do_compare="$gcc_cv_prog_cmp_skip"
18703 . ${srcdir}/configure.host
18708 # We use headers from include/ that check various HAVE_*_H macros, thus
18709 # should ensure they are set by configure. This is true even when C99
18710 # guarantees they are available.
18711 # sha1.h and md4.h test HAVE_LIMITS_H, HAVE_SYS_TYPES_H and HAVE_STDINT_H
18712 # plugin-api.h tests HAVE_STDINT_H and HAVE_INTTYPES_H
18713 # Besides those, we need to check anything used in ld/ not in C99.
18714 for ac_header in fcntl.h elf-hints.h limits.h inttypes.h stdint.h \
18715 sys/file.h sys/mman.h sys/param.h sys/stat.h sys/time.h \
18716 sys/types.h unistd.h
18717 do :
18718 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18719 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18720 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18721 cat >>confdefs.h <<_ACEOF
18722 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18723 _ACEOF
18727 done
18729 for ac_func in close glob lseek mkstemp open realpath waitpid
18730 do :
18731 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18732 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18733 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18734 cat >>confdefs.h <<_ACEOF
18735 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18736 _ACEOF
18739 done
18743 case "${host}" in
18744 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
18746 $as_echo "#define USE_BINARY_FOPEN 1" >>confdefs.h
18748 esac
18750 ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
18751 if test "x$ac_cv_have_decl_asprintf" = xyes; then :
18752 ac_have_decl=1
18753 else
18754 ac_have_decl=0
18757 cat >>confdefs.h <<_ACEOF
18758 #define HAVE_DECL_ASPRINTF $ac_have_decl
18759 _ACEOF
18760 ac_fn_c_check_decl "$LINENO" "environ" "ac_cv_have_decl_environ" "$ac_includes_default"
18761 if test "x$ac_cv_have_decl_environ" = xyes; then :
18762 ac_have_decl=1
18763 else
18764 ac_have_decl=0
18767 cat >>confdefs.h <<_ACEOF
18768 #define HAVE_DECL_ENVIRON $ac_have_decl
18769 _ACEOF
18770 ac_fn_c_check_decl "$LINENO" "stpcpy" "ac_cv_have_decl_stpcpy" "$ac_includes_default"
18771 if test "x$ac_cv_have_decl_stpcpy" = xyes; then :
18772 ac_have_decl=1
18773 else
18774 ac_have_decl=0
18777 cat >>confdefs.h <<_ACEOF
18778 #define HAVE_DECL_STPCPY $ac_have_decl
18779 _ACEOF
18785 for ac_header in $ac_header_list
18786 do :
18787 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18788 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
18790 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18791 cat >>confdefs.h <<_ACEOF
18792 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18793 _ACEOF
18797 done
18805 save_ASAN_OPTIONS="$ASAN_OPTIONS"
18806 ASAN_OPTIONS=detect_leaks=0
18807 export ASAN_OPTIONS
18809 for ac_func in getpagesize
18810 do :
18811 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
18812 if test "x$ac_cv_func_getpagesize" = xyes; then :
18813 cat >>confdefs.h <<_ACEOF
18814 #define HAVE_GETPAGESIZE 1
18815 _ACEOF
18818 done
18820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
18821 $as_echo_n "checking for working mmap... " >&6; }
18822 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
18823 $as_echo_n "(cached) " >&6
18824 else
18825 if test "$cross_compiling" = yes; then :
18826 ac_cv_func_mmap_fixed_mapped=no
18827 else
18828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18829 /* end confdefs.h. */
18830 $ac_includes_default
18831 /* malloc might have been renamed as rpl_malloc. */
18832 #undef malloc
18834 /* Thanks to Mike Haertel and Jim Avera for this test.
18835 Here is a matrix of mmap possibilities:
18836 mmap private not fixed
18837 mmap private fixed at somewhere currently unmapped
18838 mmap private fixed at somewhere already mapped
18839 mmap shared not fixed
18840 mmap shared fixed at somewhere currently unmapped
18841 mmap shared fixed at somewhere already mapped
18842 For private mappings, we should verify that changes cannot be read()
18843 back from the file, nor mmap's back from the file at a different
18844 address. (There have been systems where private was not correctly
18845 implemented like the infamous i386 svr4.0, and systems where the
18846 VM page cache was not coherent with the file system buffer cache
18847 like early versions of FreeBSD and possibly contemporary NetBSD.)
18848 For shared mappings, we should conversely verify that changes get
18849 propagated back to all the places they're supposed to be.
18851 Grep wants private fixed already mapped.
18852 The main things grep needs to know about mmap are:
18853 * does it exist and is it safe to write into the mmap'd area
18854 * how to use it (BSD variants) */
18856 #include <fcntl.h>
18857 #include <sys/mman.h>
18859 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
18860 char *malloc ();
18861 #endif
18863 /* This mess was copied from the GNU getpagesize.h. */
18864 #ifndef HAVE_GETPAGESIZE
18865 # ifdef _SC_PAGESIZE
18866 # define getpagesize() sysconf(_SC_PAGESIZE)
18867 # else /* no _SC_PAGESIZE */
18868 # ifdef HAVE_SYS_PARAM_H
18869 # include <sys/param.h>
18870 # ifdef EXEC_PAGESIZE
18871 # define getpagesize() EXEC_PAGESIZE
18872 # else /* no EXEC_PAGESIZE */
18873 # ifdef NBPG
18874 # define getpagesize() NBPG * CLSIZE
18875 # ifndef CLSIZE
18876 # define CLSIZE 1
18877 # endif /* no CLSIZE */
18878 # else /* no NBPG */
18879 # ifdef NBPC
18880 # define getpagesize() NBPC
18881 # else /* no NBPC */
18882 # ifdef PAGESIZE
18883 # define getpagesize() PAGESIZE
18884 # endif /* PAGESIZE */
18885 # endif /* no NBPC */
18886 # endif /* no NBPG */
18887 # endif /* no EXEC_PAGESIZE */
18888 # else /* no HAVE_SYS_PARAM_H */
18889 # define getpagesize() 8192 /* punt totally */
18890 # endif /* no HAVE_SYS_PARAM_H */
18891 # endif /* no _SC_PAGESIZE */
18893 #endif /* no HAVE_GETPAGESIZE */
18896 main ()
18898 char *data, *data2, *data3;
18899 const char *cdata2;
18900 int i, pagesize;
18901 int fd, fd2;
18903 pagesize = getpagesize ();
18905 /* First, make a file with some known garbage in it. */
18906 data = (char *) malloc (pagesize);
18907 if (!data)
18908 return 1;
18909 for (i = 0; i < pagesize; ++i)
18910 *(data + i) = rand ();
18911 umask (0);
18912 fd = creat ("conftest.mmap", 0600);
18913 if (fd < 0)
18914 return 2;
18915 if (write (fd, data, pagesize) != pagesize)
18916 return 3;
18917 close (fd);
18919 /* Next, check that the tail of a page is zero-filled. File must have
18920 non-zero length, otherwise we risk SIGBUS for entire page. */
18921 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
18922 if (fd2 < 0)
18923 return 4;
18924 cdata2 = "";
18925 if (write (fd2, cdata2, 1) != 1)
18926 return 5;
18927 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
18928 if (data2 == MAP_FAILED)
18929 return 6;
18930 for (i = 0; i < pagesize; ++i)
18931 if (*(data2 + i))
18932 return 7;
18933 close (fd2);
18934 if (munmap (data2, pagesize))
18935 return 8;
18937 /* Next, try to mmap the file at a fixed address which already has
18938 something else allocated at it. If we can, also make sure that
18939 we see the same garbage. */
18940 fd = open ("conftest.mmap", O_RDWR);
18941 if (fd < 0)
18942 return 9;
18943 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
18944 MAP_PRIVATE | MAP_FIXED, fd, 0L))
18945 return 10;
18946 for (i = 0; i < pagesize; ++i)
18947 if (*(data + i) != *(data2 + i))
18948 return 11;
18950 /* Finally, make sure that changes to the mapped area do not
18951 percolate back to the file as seen by read(). (This is a bug on
18952 some variants of i386 svr4.0.) */
18953 for (i = 0; i < pagesize; ++i)
18954 *(data2 + i) = *(data2 + i) + 1;
18955 data3 = (char *) malloc (pagesize);
18956 if (!data3)
18957 return 12;
18958 if (read (fd, data3, pagesize) != pagesize)
18959 return 13;
18960 for (i = 0; i < pagesize; ++i)
18961 if (*(data + i) != *(data3 + i))
18962 return 14;
18963 close (fd);
18964 return 0;
18966 _ACEOF
18967 if ac_fn_c_try_run "$LINENO"; then :
18968 ac_cv_func_mmap_fixed_mapped=yes
18969 else
18970 ac_cv_func_mmap_fixed_mapped=no
18972 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18973 conftest.$ac_objext conftest.beam conftest.$ac_ext
18977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
18978 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
18979 if test $ac_cv_func_mmap_fixed_mapped = yes; then
18981 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
18984 rm -f conftest.mmap conftest.txt
18986 ASAN_OPTIONS="$save_ASAN_OPTIONS"
18989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
18990 $as_echo_n "checking for library containing dlopen... " >&6; }
18991 if ${ac_cv_search_dlopen+:} false; then :
18992 $as_echo_n "(cached) " >&6
18993 else
18994 ac_func_search_save_LIBS=$LIBS
18995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18996 /* end confdefs.h. */
18998 /* Override any GCC internal prototype to avoid an error.
18999 Use char because int might match the return type of a GCC
19000 builtin and then its argument prototype would still apply. */
19001 #ifdef __cplusplus
19002 extern "C"
19003 #endif
19004 char dlopen ();
19006 main ()
19008 return dlopen ();
19010 return 0;
19012 _ACEOF
19013 for ac_lib in '' dl; do
19014 if test -z "$ac_lib"; then
19015 ac_res="none required"
19016 else
19017 ac_res=-l$ac_lib
19018 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19020 if ac_fn_c_try_link "$LINENO"; then :
19021 ac_cv_search_dlopen=$ac_res
19023 rm -f core conftest.err conftest.$ac_objext \
19024 conftest$ac_exeext
19025 if ${ac_cv_search_dlopen+:} false; then :
19026 break
19028 done
19029 if ${ac_cv_search_dlopen+:} false; then :
19031 else
19032 ac_cv_search_dlopen=no
19034 rm conftest.$ac_ext
19035 LIBS=$ac_func_search_save_LIBS
19037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
19038 $as_echo "$ac_cv_search_dlopen" >&6; }
19039 ac_res=$ac_cv_search_dlopen
19040 if test "$ac_res" != no; then :
19041 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a known getopt prototype in unistd.h" >&5
19047 $as_echo_n "checking for a known getopt prototype in unistd.h... " >&6; }
19048 if ${ld_cv_decl_getopt_unistd_h+:} false; then :
19049 $as_echo_n "(cached) " >&6
19050 else
19051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19052 /* end confdefs.h. */
19053 #include <unistd.h>
19055 main ()
19057 extern int getopt (int, char *const*, const char *);
19059 return 0;
19061 _ACEOF
19062 if ac_fn_c_try_compile "$LINENO"; then :
19063 ld_cv_decl_getopt_unistd_h=yes
19064 else
19065 ld_cv_decl_getopt_unistd_h=no
19067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_cv_decl_getopt_unistd_h" >&5
19071 $as_echo "$ld_cv_decl_getopt_unistd_h" >&6; }
19072 if test $ld_cv_decl_getopt_unistd_h = yes; then
19074 $as_echo "#define HAVE_DECL_GETOPT 1" >>confdefs.h
19078 # Link in zlib/zstd if we can. This allows us to read and write
19079 # compressed debug sections.
19081 # Use the system's zlib library.
19082 zlibdir="-L\$(top_builddir)/../zlib"
19083 zlibinc="-I\$(top_srcdir)/../zlib"
19085 # Check whether --with-system-zlib was given.
19086 if test "${with_system_zlib+set}" = set; then :
19087 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
19088 zlibdir=
19089 zlibinc=
19099 # Check whether --with-zstd was given.
19100 if test "${with_zstd+set}" = set; then :
19101 withval=$with_zstd;
19102 else
19103 with_zstd=auto
19107 if test "$with_zstd" != no; then :
19109 pkg_failed=no
19110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libzstd >= 1.4.0" >&5
19111 $as_echo_n "checking for libzstd >= 1.4.0... " >&6; }
19113 if test -n "$ZSTD_CFLAGS"; then
19114 pkg_cv_ZSTD_CFLAGS="$ZSTD_CFLAGS"
19115 elif test -n "$PKG_CONFIG"; then
19116 if test -n "$PKG_CONFIG" && \
19117 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libzstd >= 1.4.0\""; } >&5
19118 ($PKG_CONFIG --exists --print-errors "libzstd >= 1.4.0") 2>&5
19119 ac_status=$?
19120 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19121 test $ac_status = 0; }; then
19122 pkg_cv_ZSTD_CFLAGS=`$PKG_CONFIG --cflags "libzstd >= 1.4.0" 2>/dev/null`
19123 test "x$?" != "x0" && pkg_failed=yes
19124 else
19125 pkg_failed=yes
19127 else
19128 pkg_failed=untried
19130 if test -n "$ZSTD_LIBS"; then
19131 pkg_cv_ZSTD_LIBS="$ZSTD_LIBS"
19132 elif test -n "$PKG_CONFIG"; then
19133 if test -n "$PKG_CONFIG" && \
19134 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libzstd >= 1.4.0\""; } >&5
19135 ($PKG_CONFIG --exists --print-errors "libzstd >= 1.4.0") 2>&5
19136 ac_status=$?
19137 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19138 test $ac_status = 0; }; then
19139 pkg_cv_ZSTD_LIBS=`$PKG_CONFIG --libs "libzstd >= 1.4.0" 2>/dev/null`
19140 test "x$?" != "x0" && pkg_failed=yes
19141 else
19142 pkg_failed=yes
19144 else
19145 pkg_failed=untried
19148 if test $pkg_failed = no; then
19149 pkg_save_LDFLAGS="$LDFLAGS"
19150 LDFLAGS="$LDFLAGS $pkg_cv_ZSTD_LIBS"
19151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19152 /* end confdefs.h. */
19155 main ()
19159 return 0;
19161 _ACEOF
19162 if ac_fn_c_try_link "$LINENO"; then :
19164 else
19165 pkg_failed=yes
19167 rm -f core conftest.err conftest.$ac_objext \
19168 conftest$ac_exeext conftest.$ac_ext
19169 LDFLAGS=$pkg_save_LDFLAGS
19174 if test $pkg_failed = yes; then
19175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19176 $as_echo "no" >&6; }
19178 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19179 _pkg_short_errors_supported=yes
19180 else
19181 _pkg_short_errors_supported=no
19183 if test $_pkg_short_errors_supported = yes; then
19184 ZSTD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libzstd >= 1.4.0" 2>&1`
19185 else
19186 ZSTD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libzstd >= 1.4.0" 2>&1`
19188 # Put the nasty error message in config.log where it belongs
19189 echo "$ZSTD_PKG_ERRORS" >&5
19192 if test "$with_zstd" = yes; then
19193 as_fn_error $? "--with-zstd was given, but pkgconfig/libzstd.pc is not found" "$LINENO" 5
19196 elif test $pkg_failed = untried; then
19197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19198 $as_echo "no" >&6; }
19200 if test "$with_zstd" = yes; then
19201 as_fn_error $? "--with-zstd was given, but pkgconfig/libzstd.pc is not found" "$LINENO" 5
19204 else
19205 ZSTD_CFLAGS=$pkg_cv_ZSTD_CFLAGS
19206 ZSTD_LIBS=$pkg_cv_ZSTD_LIBS
19207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19208 $as_echo "yes" >&6; }
19211 $as_echo "#define HAVE_ZSTD 1" >>confdefs.h
19219 # target-specific stuff:
19221 all_targets=
19222 EMUL=
19223 all_emuls=
19224 all_emul_extras=
19225 all_libpath=
19226 TDIRS=
19228 elf_list_options=false
19229 elf_shlib_list_options=false
19230 elf_plt_unwind_list_options=false
19231 for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
19233 if test "$targ_alias" = "all"; then
19234 all_targets=true
19235 elf_list_options=true
19236 elf_shlib_list_options=true
19237 elf_plt_unwind_list_options=true
19238 else
19239 # Canonicalize the secondary target names.
19240 result=`$ac_config_sub $targ_alias 2>/dev/null`
19241 if test -n "$result"; then
19242 targ=$result
19243 else
19244 targ=$targ_alias
19247 . ${srcdir}/configure.tgt
19249 if test "$targ" = "$target"; then
19250 EMUL=$targ_emul
19253 if test x${enable_64_bit_bfd} = xno; then
19254 . ${srcdir}/../bfd/config.bfd
19257 if test x${enable_64_bit_bfd} = xyes; then
19258 targ_extra_emuls="$targ_extra_emuls $targ64_extra_emuls"
19259 targ_extra_libpath="$targ_extra_libpath $targ64_extra_libpath"
19262 for i in $targ_emul $targ_extra_emuls $targ_extra_libpath; do
19263 case " $all_emuls " in
19264 *" e${i}.o "*) ;;
19266 all_emuls="$all_emuls e${i}.o"
19267 eval result=\$tdir_$i
19268 test -z "$result" && result=$targ_alias
19269 TDIRS="$TDIRS
19270 tdir_$i=$result"
19271 case "${i}" in
19272 *elf*)
19273 elf_list_options=true
19276 if $GREP "TEMPLATE_NAME=elf" ${srcdir}/emulparams/${i}.sh >/dev/null 2>/dev/null; then
19277 elf_list_options=true
19280 esac
19281 if test "$elf_list_options" = "true"; then
19282 source_sh()
19284 . $1
19286 source_sh ${srcdir}/emulparams/${i}.sh
19287 if test x${GENERATE_SHLIB_SCRIPT} = xyes; then
19288 elf_shlib_list_options=true
19290 if test x${PLT_UNWIND} = xyes; then
19291 elf_plt_unwind_list_options=true
19295 esac
19296 done
19298 for i in $targ_emul $targ_extra_libpath; do
19299 case " $all_libpath " in
19300 *" ${i} "*) ;;
19302 if test -z "$all_libpath"; then
19303 all_libpath=${i}
19304 else
19305 all_libpath="$all_libpath ${i}"
19308 esac
19309 done
19311 for i in $targ_extra_ofiles; do
19312 case " $all_emul_extras " in
19313 *" ${i} "*) ;;
19315 all_emul_extras="$all_emul_extras ${i}"
19317 esac
19318 done
19321 done
19323 if test x$ac_default_compressed_debug_sections = xyes ; then
19325 $as_echo "#define DEFAULT_FLAG_COMPRESS_DEBUG 1" >>confdefs.h
19330 cat >>confdefs.h <<_ACEOF
19331 #define DEFAULT_COMPRESSED_DEBUG_ALGORITHM $ac_default_compressed_debug_sections_algorithm
19332 _ACEOF
19335 if test "${ac_default_new_dtags}" = unset; then
19336 ac_default_new_dtags=0
19339 cat >>confdefs.h <<_ACEOF
19340 #define DEFAULT_NEW_DTAGS $ac_default_new_dtags
19341 _ACEOF
19344 if test "${ac_default_ld_z_relro}" = unset; then
19345 ac_default_ld_z_relro=0
19348 cat >>confdefs.h <<_ACEOF
19349 #define DEFAULT_LD_Z_RELRO $ac_default_ld_z_relro
19350 _ACEOF
19353 ac_default_ld_textrel_check_warning=0
19354 case "${ac_default_ld_textrel_check}" in
19355 unset|no)
19356 ac_default_ld_textrel_check=textrel_check_none
19358 yes|warning)
19359 ac_default_ld_textrel_check=textrel_check_warning
19360 ac_default_ld_textrel_check_warning=1
19362 error)
19363 ac_default_ld_textrel_check=textrel_check_error
19365 esac
19367 cat >>confdefs.h <<_ACEOF
19368 #define DEFAULT_LD_TEXTREL_CHECK $ac_default_ld_textrel_check
19369 _ACEOF
19372 cat >>confdefs.h <<_ACEOF
19373 #define DEFAULT_LD_TEXTREL_CHECK_WARNING $ac_default_ld_textrel_check_warning
19374 _ACEOF
19377 if test "${ac_default_ld_z_separate_code}" = unset; then
19378 ac_default_ld_z_separate_code=0
19381 cat >>confdefs.h <<_ACEOF
19382 #define DEFAULT_LD_Z_SEPARATE_CODE $ac_default_ld_z_separate_code
19383 _ACEOF
19386 if test "${ac_default_ld_z_mark_plt}" = unset; then
19387 ac_default_ld_z_mark_plt=0
19390 cat >>confdefs.h <<_ACEOF
19391 #define DEFAULT_LD_Z_MARK_PLT $ac_default_ld_z_mark_plt
19392 _ACEOF
19397 cat >>confdefs.h <<_ACEOF
19398 #define DEFAULT_LD_WARN_EXECSTACK $ac_default_ld_warn_execstack
19399 _ACEOF
19403 cat >>confdefs.h <<_ACEOF
19404 #define DEFAULT_LD_ERROR_EXECSTACK $ac_default_ld_error_execstack
19405 _ACEOF
19408 if test "${ac_default_ld_warn_rwx_segments}" = unset; then
19409 ac_default_ld_warn_rwx_segments=1
19412 cat >>confdefs.h <<_ACEOF
19413 #define DEFAULT_LD_WARN_RWX_SEGMENTS $ac_default_ld_warn_rwx_segments
19414 _ACEOF
19418 cat >>confdefs.h <<_ACEOF
19419 #define DEFAULT_LD_ERROR_RWX_SEGMENTS $ac_default_ld_error_rwx_segments
19420 _ACEOF
19423 if test "${ac_default_ld_default_execstack}" = unset; then
19424 ac_default_ld_default_execstack=1
19427 cat >>confdefs.h <<_ACEOF
19428 #define DEFAULT_LD_EXECSTACK $ac_default_ld_default_execstack
19429 _ACEOF
19433 if test "${ac_support_error_handling_script}" = unset; then
19434 ac_support_error_handling_script=1
19437 cat >>confdefs.h <<_ACEOF
19438 #define SUPPORT_ERROR_HANDLING_SCRIPT $ac_support_error_handling_script
19439 _ACEOF
19443 cat >>confdefs.h <<_ACEOF
19444 #define DEFAULT_EMIT_SYSV_HASH $ac_default_emit_sysv_hash
19445 _ACEOF
19449 cat >>confdefs.h <<_ACEOF
19450 #define DEFAULT_EMIT_GNU_HASH $ac_default_emit_gnu_hash
19451 _ACEOF
19462 if test x${all_targets} = xtrue; then
19463 if test x${enable_64_bit_bfd} = xyes; then
19464 EMULATION_OFILES='$(ALL_EMULATIONS) $(ALL_64_EMULATIONS)'
19465 EMUL_EXTRA_OFILES='$(ALL_EMUL_EXTRA_OFILES) $(ALL_64_EMUL_EXTRA_OFILES)'
19466 else
19467 EMULATION_OFILES='$(ALL_EMULATIONS)'
19468 EMUL_EXTRA_OFILES='$(ALL_EMUL_EXTRA_OFILES)'
19470 else
19471 EMULATION_OFILES=$all_emuls
19472 EMUL_EXTRA_OFILES=$all_emul_extras
19478 EMULATION_LIBPATH=$all_libpath
19481 if test x${enable_static} = xno; then
19482 TESTBFDLIB="-Wl,--rpath,../bfd/.libs ../bfd/.libs/libbfd.so"
19483 TESTCTFLIB="-Wl,--rpath,../libctf/.libs ../libctf/.libs/libctf.so"
19484 TESTSFRAMELIB="-Wl,--rpath,../libsframe/.libs ../libsframe/.libs/libsframe.so"
19485 else
19486 TESTBFDLIB="../bfd/.libs/libbfd.a"
19487 TESTCTFLIB="../libctf/.libs/libctf.a"
19488 TESTSFRAMELIB="../libsframe/.libs/libsframe.a"
19490 if test "${enable_libctf}" = no; then
19491 TESTCTFLIB=
19497 target_vendor=${target_vendor=$host_vendor}
19498 case "$target_vendor" in
19499 hp) EXTRA_SHLIB_EXTENSION=".sl" ;;
19500 *) EXTRA_SHLIB_EXTENSION= ;;
19501 esac
19503 case "$target_os" in
19504 lynxos) EXTRA_SHLIB_EXTENSION=".a" ;;
19505 esac
19507 if test x${EXTRA_SHLIB_EXTENSION} != x ; then
19509 cat >>confdefs.h <<_ACEOF
19510 #define EXTRA_SHLIB_EXTENSION "$EXTRA_SHLIB_EXTENSION"
19511 _ACEOF
19515 ac_config_commands="$ac_config_commands default"
19523 ac_config_files="$ac_config_files Makefile po/Makefile.in:po/Make-in"
19525 cat >confcache <<\_ACEOF
19526 # This file is a shell script that caches the results of configure
19527 # tests run on this system so they can be shared between configure
19528 # scripts and configure runs, see configure's option --config-cache.
19529 # It is not useful on other systems. If it contains results you don't
19530 # want to keep, you may remove or edit it.
19532 # config.status only pays attention to the cache file if you give it
19533 # the --recheck option to rerun configure.
19535 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19536 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19537 # following values.
19539 _ACEOF
19541 # The following way of writing the cache mishandles newlines in values,
19542 # but we know of no workaround that is simple, portable, and efficient.
19543 # So, we kill variables containing newlines.
19544 # Ultrix sh set writes to stderr and can't be redirected directly,
19545 # and sets the high bit in the cache file unless we assign to the vars.
19547 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19548 eval ac_val=\$$ac_var
19549 case $ac_val in #(
19550 *${as_nl}*)
19551 case $ac_var in #(
19552 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19553 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19554 esac
19555 case $ac_var in #(
19556 _ | IFS | as_nl) ;; #(
19557 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19558 *) { eval $ac_var=; unset $ac_var;} ;;
19559 esac ;;
19560 esac
19561 done
19563 (set) 2>&1 |
19564 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19565 *${as_nl}ac_space=\ *)
19566 # `set' does not quote correctly, so add quotes: double-quote
19567 # substitution turns \\\\ into \\, and sed turns \\ into \.
19568 sed -n \
19569 "s/'/'\\\\''/g;
19570 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19571 ;; #(
19573 # `set' quotes correctly as required by POSIX, so do not add quotes.
19574 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19576 esac |
19577 sort
19579 sed '
19580 /^ac_cv_env_/b end
19581 t clear
19582 :clear
19583 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19584 t end
19585 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19586 :end' >>confcache
19587 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19588 if test -w "$cache_file"; then
19589 if test "x$cache_file" != "x/dev/null"; then
19590 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19591 $as_echo "$as_me: updating cache $cache_file" >&6;}
19592 if test ! -f "$cache_file" || test -h "$cache_file"; then
19593 cat confcache >"$cache_file"
19594 else
19595 case $cache_file in #(
19596 */* | ?:*)
19597 mv -f confcache "$cache_file"$$ &&
19598 mv -f "$cache_file"$$ "$cache_file" ;; #(
19600 mv -f confcache "$cache_file" ;;
19601 esac
19604 else
19605 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19606 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19609 rm -f confcache
19611 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19612 # Let make expand exec_prefix.
19613 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19615 DEFS=-DHAVE_CONFIG_H
19617 ac_libobjs=
19618 ac_ltlibobjs=
19620 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19621 # 1. Remove the extension, and $U if already installed.
19622 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19623 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19624 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19625 # will be set to the directory where LIBOBJS objects are built.
19626 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19627 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19628 done
19629 LIBOBJS=$ac_libobjs
19631 LTLIBOBJS=$ac_ltlibobjs
19634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
19635 $as_echo_n "checking that generated files are newer than configure... " >&6; }
19636 if test -n "$am_sleep_pid"; then
19637 # Hide warnings about reused PIDs.
19638 wait $am_sleep_pid 2>/dev/null
19640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
19641 $as_echo "done" >&6; }
19642 if test -n "$EXEEXT"; then
19643 am__EXEEXT_TRUE=
19644 am__EXEEXT_FALSE='#'
19645 else
19646 am__EXEEXT_TRUE='#'
19647 am__EXEEXT_FALSE=
19650 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
19651 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
19652 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19654 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19655 as_fn_error $? "conditional \"AMDEP\" was never defined.
19656 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19658 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19659 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19660 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19662 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19663 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
19664 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19666 if test -z "${ENABLE_BFD_64_BIT_TRUE}" && test -z "${ENABLE_BFD_64_BIT_FALSE}"; then
19667 as_fn_error $? "conditional \"ENABLE_BFD_64_BIT\" was never defined.
19668 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19670 if test -z "${ENABLE_LIBCTF_TRUE}" && test -z "${ENABLE_LIBCTF_FALSE}"; then
19671 as_fn_error $? "conditional \"ENABLE_LIBCTF\" was never defined.
19672 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19674 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
19675 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
19676 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19678 if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
19679 as_fn_error $? "conditional \"GENINSRC_NEVER\" was never defined.
19680 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19683 : "${CONFIG_STATUS=./config.status}"
19684 ac_write_fail=0
19685 ac_clean_files_save=$ac_clean_files
19686 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19687 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19688 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19689 as_write_fail=0
19690 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19691 #! $SHELL
19692 # Generated by $as_me.
19693 # Run this file to recreate the current configuration.
19694 # Compiler output produced by configure, useful for debugging
19695 # configure, is in config.log if it exists.
19697 debug=false
19698 ac_cs_recheck=false
19699 ac_cs_silent=false
19701 SHELL=\${CONFIG_SHELL-$SHELL}
19702 export SHELL
19703 _ASEOF
19704 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19705 ## -------------------- ##
19706 ## M4sh Initialization. ##
19707 ## -------------------- ##
19709 # Be more Bourne compatible
19710 DUALCASE=1; export DUALCASE # for MKS sh
19711 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19712 emulate sh
19713 NULLCMD=:
19714 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19715 # is contrary to our usage. Disable this feature.
19716 alias -g '${1+"$@"}'='"$@"'
19717 setopt NO_GLOB_SUBST
19718 else
19719 case `(set -o) 2>/dev/null` in #(
19720 *posix*) :
19721 set -o posix ;; #(
19722 *) :
19724 esac
19728 as_nl='
19730 export as_nl
19731 # Printing a long string crashes Solaris 7 /usr/bin/printf.
19732 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19733 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19734 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19735 # Prefer a ksh shell builtin over an external printf program on Solaris,
19736 # but without wasting forks for bash or zsh.
19737 if test -z "$BASH_VERSION$ZSH_VERSION" \
19738 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19739 as_echo='print -r --'
19740 as_echo_n='print -rn --'
19741 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19742 as_echo='printf %s\n'
19743 as_echo_n='printf %s'
19744 else
19745 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19746 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19747 as_echo_n='/usr/ucb/echo -n'
19748 else
19749 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19750 as_echo_n_body='eval
19751 arg=$1;
19752 case $arg in #(
19753 *"$as_nl"*)
19754 expr "X$arg" : "X\\(.*\\)$as_nl";
19755 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19756 esac;
19757 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19759 export as_echo_n_body
19760 as_echo_n='sh -c $as_echo_n_body as_echo'
19762 export as_echo_body
19763 as_echo='sh -c $as_echo_body as_echo'
19766 # The user is always right.
19767 if test "${PATH_SEPARATOR+set}" != set; then
19768 PATH_SEPARATOR=:
19769 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19770 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19771 PATH_SEPARATOR=';'
19776 # IFS
19777 # We need space, tab and new line, in precisely that order. Quoting is
19778 # there to prevent editors from complaining about space-tab.
19779 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19780 # splitting by setting IFS to empty value.)
19781 IFS=" "" $as_nl"
19783 # Find who we are. Look in the path if we contain no directory separator.
19784 as_myself=
19785 case $0 in #((
19786 *[\\/]* ) as_myself=$0 ;;
19787 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19788 for as_dir in $PATH
19790 IFS=$as_save_IFS
19791 test -z "$as_dir" && as_dir=.
19792 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19793 done
19794 IFS=$as_save_IFS
19797 esac
19798 # We did not find ourselves, most probably we were run as `sh COMMAND'
19799 # in which case we are not to be found in the path.
19800 if test "x$as_myself" = x; then
19801 as_myself=$0
19803 if test ! -f "$as_myself"; then
19804 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19805 exit 1
19808 # Unset variables that we do not need and which cause bugs (e.g. in
19809 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
19810 # suppresses any "Segmentation fault" message there. '((' could
19811 # trigger a bug in pdksh 5.2.14.
19812 for as_var in BASH_ENV ENV MAIL MAILPATH
19813 do eval test x\${$as_var+set} = xset \
19814 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19815 done
19816 PS1='$ '
19817 PS2='> '
19818 PS4='+ '
19820 # NLS nuisances.
19821 LC_ALL=C
19822 export LC_ALL
19823 LANGUAGE=C
19824 export LANGUAGE
19826 # CDPATH.
19827 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19830 # as_fn_error STATUS ERROR [LINENO LOG_FD]
19831 # ----------------------------------------
19832 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19833 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19834 # script with STATUS, using 1 if that was 0.
19835 as_fn_error ()
19837 as_status=$1; test $as_status -eq 0 && as_status=1
19838 if test "$4"; then
19839 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19840 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19842 $as_echo "$as_me: error: $2" >&2
19843 as_fn_exit $as_status
19844 } # as_fn_error
19847 # as_fn_set_status STATUS
19848 # -----------------------
19849 # Set $? to STATUS, without forking.
19850 as_fn_set_status ()
19852 return $1
19853 } # as_fn_set_status
19855 # as_fn_exit STATUS
19856 # -----------------
19857 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19858 as_fn_exit ()
19860 set +e
19861 as_fn_set_status $1
19862 exit $1
19863 } # as_fn_exit
19865 # as_fn_unset VAR
19866 # ---------------
19867 # Portably unset VAR.
19868 as_fn_unset ()
19870 { eval $1=; unset $1;}
19872 as_unset=as_fn_unset
19873 # as_fn_append VAR VALUE
19874 # ----------------------
19875 # Append the text in VALUE to the end of the definition contained in VAR. Take
19876 # advantage of any shell optimizations that allow amortized linear growth over
19877 # repeated appends, instead of the typical quadratic growth present in naive
19878 # implementations.
19879 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19880 eval 'as_fn_append ()
19882 eval $1+=\$2
19884 else
19885 as_fn_append ()
19887 eval $1=\$$1\$2
19889 fi # as_fn_append
19891 # as_fn_arith ARG...
19892 # ------------------
19893 # Perform arithmetic evaluation on the ARGs, and store the result in the
19894 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19895 # must be portable across $(()) and expr.
19896 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19897 eval 'as_fn_arith ()
19899 as_val=$(( $* ))
19901 else
19902 as_fn_arith ()
19904 as_val=`expr "$@" || test $? -eq 1`
19906 fi # as_fn_arith
19909 if expr a : '\(a\)' >/dev/null 2>&1 &&
19910 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19911 as_expr=expr
19912 else
19913 as_expr=false
19916 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19917 as_basename=basename
19918 else
19919 as_basename=false
19922 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19923 as_dirname=dirname
19924 else
19925 as_dirname=false
19928 as_me=`$as_basename -- "$0" ||
19929 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19930 X"$0" : 'X\(//\)$' \| \
19931 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19932 $as_echo X/"$0" |
19933 sed '/^.*\/\([^/][^/]*\)\/*$/{
19934 s//\1/
19937 /^X\/\(\/\/\)$/{
19938 s//\1/
19941 /^X\/\(\/\).*/{
19942 s//\1/
19945 s/.*/./; q'`
19947 # Avoid depending upon Character Ranges.
19948 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19949 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19950 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19951 as_cr_digits='0123456789'
19952 as_cr_alnum=$as_cr_Letters$as_cr_digits
19954 ECHO_C= ECHO_N= ECHO_T=
19955 case `echo -n x` in #(((((
19956 -n*)
19957 case `echo 'xy\c'` in
19958 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19959 xy) ECHO_C='\c';;
19960 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
19961 ECHO_T=' ';;
19962 esac;;
19964 ECHO_N='-n';;
19965 esac
19967 rm -f conf$$ conf$$.exe conf$$.file
19968 if test -d conf$$.dir; then
19969 rm -f conf$$.dir/conf$$.file
19970 else
19971 rm -f conf$$.dir
19972 mkdir conf$$.dir 2>/dev/null
19974 if (echo >conf$$.file) 2>/dev/null; then
19975 if ln -s conf$$.file conf$$ 2>/dev/null; then
19976 as_ln_s='ln -s'
19977 # ... but there are two gotchas:
19978 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19979 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19980 # In both cases, we have to default to `cp -pR'.
19981 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19982 as_ln_s='cp -pR'
19983 elif ln conf$$.file conf$$ 2>/dev/null; then
19984 as_ln_s=ln
19985 else
19986 as_ln_s='cp -pR'
19988 else
19989 as_ln_s='cp -pR'
19991 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19992 rmdir conf$$.dir 2>/dev/null
19995 # as_fn_mkdir_p
19996 # -------------
19997 # Create "$as_dir" as a directory, including parents if necessary.
19998 as_fn_mkdir_p ()
20001 case $as_dir in #(
20002 -*) as_dir=./$as_dir;;
20003 esac
20004 test -d "$as_dir" || eval $as_mkdir_p || {
20005 as_dirs=
20006 while :; do
20007 case $as_dir in #(
20008 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20009 *) as_qdir=$as_dir;;
20010 esac
20011 as_dirs="'$as_qdir' $as_dirs"
20012 as_dir=`$as_dirname -- "$as_dir" ||
20013 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20014 X"$as_dir" : 'X\(//\)[^/]' \| \
20015 X"$as_dir" : 'X\(//\)$' \| \
20016 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20017 $as_echo X"$as_dir" |
20018 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20019 s//\1/
20022 /^X\(\/\/\)[^/].*/{
20023 s//\1/
20026 /^X\(\/\/\)$/{
20027 s//\1/
20030 /^X\(\/\).*/{
20031 s//\1/
20034 s/.*/./; q'`
20035 test -d "$as_dir" && break
20036 done
20037 test -z "$as_dirs" || eval "mkdir $as_dirs"
20038 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20041 } # as_fn_mkdir_p
20042 if mkdir -p . 2>/dev/null; then
20043 as_mkdir_p='mkdir -p "$as_dir"'
20044 else
20045 test -d ./-p && rmdir ./-p
20046 as_mkdir_p=false
20050 # as_fn_executable_p FILE
20051 # -----------------------
20052 # Test if FILE is an executable regular file.
20053 as_fn_executable_p ()
20055 test -f "$1" && test -x "$1"
20056 } # as_fn_executable_p
20057 as_test_x='test -x'
20058 as_executable_p=as_fn_executable_p
20060 # Sed expression to map a string onto a valid CPP name.
20061 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20063 # Sed expression to map a string onto a valid variable name.
20064 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20067 exec 6>&1
20068 ## ----------------------------------- ##
20069 ## Main body of $CONFIG_STATUS script. ##
20070 ## ----------------------------------- ##
20071 _ASEOF
20072 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20074 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20075 # Save the log message, to keep $0 and so on meaningful, and to
20076 # report actual input values of CONFIG_FILES etc. instead of their
20077 # values after options handling.
20078 ac_log="
20079 This file was extended by ld $as_me 2.42.50, which was
20080 generated by GNU Autoconf 2.69. Invocation command line was
20082 CONFIG_FILES = $CONFIG_FILES
20083 CONFIG_HEADERS = $CONFIG_HEADERS
20084 CONFIG_LINKS = $CONFIG_LINKS
20085 CONFIG_COMMANDS = $CONFIG_COMMANDS
20086 $ $0 $@
20088 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20091 _ACEOF
20093 case $ac_config_files in *"
20094 "*) set x $ac_config_files; shift; ac_config_files=$*;;
20095 esac
20097 case $ac_config_headers in *"
20098 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20099 esac
20102 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20103 # Files that config.status was made for.
20104 config_files="$ac_config_files"
20105 config_headers="$ac_config_headers"
20106 config_commands="$ac_config_commands"
20108 _ACEOF
20110 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20111 ac_cs_usage="\
20112 \`$as_me' instantiates files and other configuration actions
20113 from templates according to the current configuration. Unless the files
20114 and actions are specified as TAGs, all are instantiated by default.
20116 Usage: $0 [OPTION]... [TAG]...
20118 -h, --help print this help, then exit
20119 -V, --version print version number and configuration settings, then exit
20120 --config print configuration, then exit
20121 -q, --quiet, --silent
20122 do not print progress messages
20123 -d, --debug don't remove temporary files
20124 --recheck update $as_me by reconfiguring in the same conditions
20125 --file=FILE[:TEMPLATE]
20126 instantiate the configuration file FILE
20127 --header=FILE[:TEMPLATE]
20128 instantiate the configuration header FILE
20130 Configuration files:
20131 $config_files
20133 Configuration headers:
20134 $config_headers
20136 Configuration commands:
20137 $config_commands
20139 Report bugs to the package provider."
20141 _ACEOF
20142 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20143 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
20144 ac_cs_version="\\
20145 ld config.status 2.42.50
20146 configured by $0, generated by GNU Autoconf 2.69,
20147 with options \\"\$ac_cs_config\\"
20149 Copyright (C) 2012 Free Software Foundation, Inc.
20150 This config.status script is free software; the Free Software Foundation
20151 gives unlimited permission to copy, distribute and modify it."
20153 ac_pwd='$ac_pwd'
20154 srcdir='$srcdir'
20155 INSTALL='$INSTALL'
20156 MKDIR_P='$MKDIR_P'
20157 AWK='$AWK'
20158 test -n "\$AWK" || AWK=awk
20159 _ACEOF
20161 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20162 # The default lists apply if the user does not specify any file.
20163 ac_need_defaults=:
20164 while test $# != 0
20166 case $1 in
20167 --*=?*)
20168 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20169 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20170 ac_shift=:
20172 --*=)
20173 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20174 ac_optarg=
20175 ac_shift=:
20178 ac_option=$1
20179 ac_optarg=$2
20180 ac_shift=shift
20182 esac
20184 case $ac_option in
20185 # Handling of the options.
20186 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20187 ac_cs_recheck=: ;;
20188 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20189 $as_echo "$ac_cs_version"; exit ;;
20190 --config | --confi | --conf | --con | --co | --c )
20191 $as_echo "$ac_cs_config"; exit ;;
20192 --debug | --debu | --deb | --de | --d | -d )
20193 debug=: ;;
20194 --file | --fil | --fi | --f )
20195 $ac_shift
20196 case $ac_optarg in
20197 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20198 '') as_fn_error $? "missing file argument" ;;
20199 esac
20200 as_fn_append CONFIG_FILES " '$ac_optarg'"
20201 ac_need_defaults=false;;
20202 --header | --heade | --head | --hea )
20203 $ac_shift
20204 case $ac_optarg in
20205 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20206 esac
20207 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20208 ac_need_defaults=false;;
20209 --he | --h)
20210 # Conflict between --help and --header
20211 as_fn_error $? "ambiguous option: \`$1'
20212 Try \`$0 --help' for more information.";;
20213 --help | --hel | -h )
20214 $as_echo "$ac_cs_usage"; exit ;;
20215 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20216 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20217 ac_cs_silent=: ;;
20219 # This is an error.
20220 -*) as_fn_error $? "unrecognized option: \`$1'
20221 Try \`$0 --help' for more information." ;;
20223 *) as_fn_append ac_config_targets " $1"
20224 ac_need_defaults=false ;;
20226 esac
20227 shift
20228 done
20230 ac_configure_extra_args=
20232 if $ac_cs_silent; then
20233 exec 6>/dev/null
20234 ac_configure_extra_args="$ac_configure_extra_args --silent"
20237 _ACEOF
20238 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20239 if \$ac_cs_recheck; then
20240 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20241 shift
20242 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20243 CONFIG_SHELL='$SHELL'
20244 export CONFIG_SHELL
20245 exec "\$@"
20248 _ACEOF
20249 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20250 exec 5>>config.log
20252 echo
20253 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20254 ## Running $as_me. ##
20255 _ASBOX
20256 $as_echo "$ac_log"
20257 } >&5
20259 _ACEOF
20260 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20262 # INIT-COMMANDS
20264 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20267 # The HP-UX ksh and POSIX shell print the target directory to stdout
20268 # if CDPATH is set.
20269 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20271 sed_quote_subst='$sed_quote_subst'
20272 double_quote_subst='$double_quote_subst'
20273 delay_variable_subst='$delay_variable_subst'
20274 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20275 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20276 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20277 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20278 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20279 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20280 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20281 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20282 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20283 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20284 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20285 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20286 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20287 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20288 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20289 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20290 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20291 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20292 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20293 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20294 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20295 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20296 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20297 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20298 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20299 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20300 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20301 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20302 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20303 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20304 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20305 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20306 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20307 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20308 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20309 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20310 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20311 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20312 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20313 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20314 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20315 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20316 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20317 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20318 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20319 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20320 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20321 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20322 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"`'
20323 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20324 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20325 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20326 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20327 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20328 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20329 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20330 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20331 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20332 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20333 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20334 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20335 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20336 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20337 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20338 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20339 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20340 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20341 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20342 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20343 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20344 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20345 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20346 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20347 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20348 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20349 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20350 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20351 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20352 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20353 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20354 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
20355 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20356 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20357 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20358 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20359 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20360 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20361 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20362 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20363 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
20364 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20365 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20366 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20367 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20368 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20369 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20370 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20371 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
20372 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
20373 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
20374 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
20375 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
20376 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
20377 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
20378 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20379 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20380 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20381 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20382 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20383 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20384 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20385 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20386 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
20387 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
20388 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20389 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20390 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20391 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20392 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20393 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
20394 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
20395 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
20396 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
20397 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
20398 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
20399 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
20400 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
20401 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
20402 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20403 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20404 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
20405 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
20406 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
20407 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
20408 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
20409 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
20410 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
20411 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
20412 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
20413 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20414 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20415 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
20416 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20417 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20418 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20419 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20420 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20421 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20422 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
20423 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
20424 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
20425 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20426 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
20427 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
20428 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
20429 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
20430 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
20431 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
20432 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
20433 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
20434 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
20435 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
20436 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
20437 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20438 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
20439 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
20440 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20441 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
20442 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
20443 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
20444 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
20445 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
20446 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
20447 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
20448 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
20450 LTCC='$LTCC'
20451 LTCFLAGS='$LTCFLAGS'
20452 compiler='$compiler_DEFAULT'
20454 # A function that is used when there is no print builtin or printf.
20455 func_fallback_echo ()
20457 eval 'cat <<_LTECHO_EOF
20459 _LTECHO_EOF'
20462 # Quote evaled strings.
20463 for var in SHELL \
20464 ECHO \
20465 SED \
20466 GREP \
20467 EGREP \
20468 FGREP \
20469 LD \
20470 NM \
20471 LN_S \
20472 lt_SP2NL \
20473 lt_NL2SP \
20474 reload_flag \
20475 OBJDUMP \
20476 deplibs_check_method \
20477 file_magic_cmd \
20478 AR \
20479 AR_FLAGS \
20480 STRIP \
20481 RANLIB \
20482 CC \
20483 CFLAGS \
20484 compiler \
20485 lt_cv_sys_global_symbol_pipe \
20486 lt_cv_sys_global_symbol_to_cdecl \
20487 lt_cv_sys_global_symbol_to_c_name_address \
20488 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20489 lt_prog_compiler_no_builtin_flag \
20490 lt_prog_compiler_wl \
20491 lt_prog_compiler_pic \
20492 lt_prog_compiler_static \
20493 lt_cv_prog_compiler_c_o \
20494 need_locks \
20495 DSYMUTIL \
20496 NMEDIT \
20497 LIPO \
20498 OTOOL \
20499 OTOOL64 \
20500 shrext_cmds \
20501 export_dynamic_flag_spec \
20502 whole_archive_flag_spec \
20503 compiler_needs_object \
20504 with_gnu_ld \
20505 allow_undefined_flag \
20506 no_undefined_flag \
20507 hardcode_libdir_flag_spec \
20508 hardcode_libdir_flag_spec_ld \
20509 hardcode_libdir_separator \
20510 fix_srcfile_path \
20511 exclude_expsyms \
20512 include_expsyms \
20513 file_list_spec \
20514 variables_saved_for_relink \
20515 libname_spec \
20516 library_names_spec \
20517 soname_spec \
20518 install_override_mode \
20519 finish_eval \
20520 old_striplib \
20521 striplib \
20522 compiler_lib_search_dirs \
20523 predep_objects \
20524 postdep_objects \
20525 predeps \
20526 postdeps \
20527 compiler_lib_search_path \
20528 LD_CXX \
20529 reload_flag_CXX \
20530 compiler_CXX \
20531 lt_prog_compiler_no_builtin_flag_CXX \
20532 lt_prog_compiler_wl_CXX \
20533 lt_prog_compiler_pic_CXX \
20534 lt_prog_compiler_static_CXX \
20535 lt_cv_prog_compiler_c_o_CXX \
20536 export_dynamic_flag_spec_CXX \
20537 whole_archive_flag_spec_CXX \
20538 compiler_needs_object_CXX \
20539 with_gnu_ld_CXX \
20540 allow_undefined_flag_CXX \
20541 no_undefined_flag_CXX \
20542 hardcode_libdir_flag_spec_CXX \
20543 hardcode_libdir_flag_spec_ld_CXX \
20544 hardcode_libdir_separator_CXX \
20545 fix_srcfile_path_CXX \
20546 exclude_expsyms_CXX \
20547 include_expsyms_CXX \
20548 file_list_spec_CXX \
20549 compiler_lib_search_dirs_CXX \
20550 predep_objects_CXX \
20551 postdep_objects_CXX \
20552 predeps_CXX \
20553 postdeps_CXX \
20554 compiler_lib_search_path_CXX; do
20555 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20556 *[\\\\\\\`\\"\\\$]*)
20557 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
20560 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20562 esac
20563 done
20565 # Double-quote double-evaled strings.
20566 for var in reload_cmds \
20567 old_postinstall_cmds \
20568 old_postuninstall_cmds \
20569 old_archive_cmds \
20570 extract_expsyms_cmds \
20571 old_archive_from_new_cmds \
20572 old_archive_from_expsyms_cmds \
20573 archive_cmds \
20574 archive_expsym_cmds \
20575 module_cmds \
20576 module_expsym_cmds \
20577 export_symbols_cmds \
20578 prelink_cmds \
20579 postinstall_cmds \
20580 postuninstall_cmds \
20581 finish_cmds \
20582 sys_lib_search_path_spec \
20583 sys_lib_dlsearch_path_spec \
20584 reload_cmds_CXX \
20585 old_archive_cmds_CXX \
20586 old_archive_from_new_cmds_CXX \
20587 old_archive_from_expsyms_cmds_CXX \
20588 archive_cmds_CXX \
20589 archive_expsym_cmds_CXX \
20590 module_cmds_CXX \
20591 module_expsym_cmds_CXX \
20592 export_symbols_cmds_CXX \
20593 prelink_cmds_CXX; do
20594 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20595 *[\\\\\\\`\\"\\\$]*)
20596 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
20599 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20601 esac
20602 done
20604 ac_aux_dir='$ac_aux_dir'
20605 xsi_shell='$xsi_shell'
20606 lt_shell_append='$lt_shell_append'
20608 # See if we are running on zsh, and set the options which allow our
20609 # commands through without removal of \ escapes INIT.
20610 if test -n "\${ZSH_VERSION+set}" ; then
20611 setopt NO_GLOB_SUBST
20615 PACKAGE='$PACKAGE'
20616 VERSION='$VERSION'
20617 TIMESTAMP='$TIMESTAMP'
20618 RM='$RM'
20619 ofile='$ofile'
20625 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
20626 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
20627 # from automake.
20628 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
20629 # Capture the value of LINGUAS because we need it to compute CATALOGS.
20630 LINGUAS="${LINGUAS-%UNSET%}"
20632 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
20633 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
20634 # from automake.
20635 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
20636 # Capture the value of LINGUAS because we need it to compute CATALOGS.
20637 LINGUAS="${LINGUAS-%UNSET%}"
20641 _ACEOF
20643 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20645 # Handling of arguments.
20646 for ac_config_target in $ac_config_targets
20648 case $ac_config_target in
20649 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20650 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20651 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
20652 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
20653 "default-2") CONFIG_COMMANDS="$CONFIG_COMMANDS default-2" ;;
20654 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
20655 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20656 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
20658 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20659 esac
20660 done
20663 # If the user did not use the arguments to specify the items to instantiate,
20664 # then the envvar interface is used. Set only those that are not.
20665 # We use the long form for the default assignment because of an extremely
20666 # bizarre bug on SunOS 4.1.3.
20667 if $ac_need_defaults; then
20668 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20669 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20670 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20673 # Have a temporary directory for convenience. Make it in the build tree
20674 # simply because there is no reason against having it here, and in addition,
20675 # creating and moving files from /tmp can sometimes cause problems.
20676 # Hook for its removal unless debugging.
20677 # Note that there is a small window in which the directory will not be cleaned:
20678 # after its creation but before its name has been assigned to `$tmp'.
20679 $debug ||
20681 tmp= ac_tmp=
20682 trap 'exit_status=$?
20683 : "${ac_tmp:=$tmp}"
20684 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20686 trap 'as_fn_exit 1' 1 2 13 15
20688 # Create a (secure) tmp directory for tmp files.
20691 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20692 test -d "$tmp"
20693 } ||
20695 tmp=./conf$$-$RANDOM
20696 (umask 077 && mkdir "$tmp")
20697 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20698 ac_tmp=$tmp
20700 # Set up the scripts for CONFIG_FILES section.
20701 # No need to generate them if there are no CONFIG_FILES.
20702 # This happens for instance with `./config.status config.h'.
20703 if test -n "$CONFIG_FILES"; then
20706 ac_cr=`echo X | tr X '\015'`
20707 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20708 # But we know of no other shell where ac_cr would be empty at this
20709 # point, so we can use a bashism as a fallback.
20710 if test "x$ac_cr" = x; then
20711 eval ac_cr=\$\'\\r\'
20713 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20714 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20715 ac_cs_awk_cr='\\r'
20716 else
20717 ac_cs_awk_cr=$ac_cr
20720 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20721 _ACEOF
20725 echo "cat >conf$$subs.awk <<_ACEOF" &&
20726 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20727 echo "_ACEOF"
20728 } >conf$$subs.sh ||
20729 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20730 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20731 ac_delim='%!_!# '
20732 for ac_last_try in false false false false false :; do
20733 . ./conf$$subs.sh ||
20734 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20736 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20737 if test $ac_delim_n = $ac_delim_num; then
20738 break
20739 elif $ac_last_try; then
20740 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20741 else
20742 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20744 done
20745 rm -f conf$$subs.sh
20747 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20748 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20749 _ACEOF
20750 sed -n '
20752 s/^/S["/; s/!.*/"]=/
20755 s/^[^!]*!//
20756 :repl
20757 t repl
20758 s/'"$ac_delim"'$//
20759 t delim
20762 s/\(.\{148\}\)..*/\1/
20763 t more1
20764 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20767 b repl
20768 :more1
20769 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20772 s/.\{148\}//
20773 t nl
20774 :delim
20776 s/\(.\{148\}\)..*/\1/
20777 t more2
20778 s/["\\]/\\&/g; s/^/"/; s/$/"/
20781 :more2
20782 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20785 s/.\{148\}//
20786 t delim
20787 ' <conf$$subs.awk | sed '
20788 /^[^""]/{
20790 s/\n//
20792 ' >>$CONFIG_STATUS || ac_write_fail=1
20793 rm -f conf$$subs.awk
20794 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20795 _ACAWK
20796 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20797 for (key in S) S_is_set[key] = 1
20798 FS = "\a"
20802 line = $ 0
20803 nfields = split(line, field, "@")
20804 substed = 0
20805 len = length(field[1])
20806 for (i = 2; i < nfields; i++) {
20807 key = field[i]
20808 keylen = length(key)
20809 if (S_is_set[key]) {
20810 value = S[key]
20811 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20812 len += length(value) + length(field[++i])
20813 substed = 1
20814 } else
20815 len += 1 + keylen
20818 print line
20821 _ACAWK
20822 _ACEOF
20823 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20824 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20825 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20826 else
20828 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20829 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20830 _ACEOF
20832 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20833 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20834 # trailing colons and then remove the whole line if VPATH becomes empty
20835 # (actually we leave an empty line to preserve line numbers).
20836 if test "x$srcdir" = x.; then
20837 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
20839 s///
20840 s/^/:/
20841 s/[ ]*$/:/
20842 s/:\$(srcdir):/:/g
20843 s/:\${srcdir}:/:/g
20844 s/:@srcdir@:/:/g
20845 s/^:*//
20846 s/:*$//
20848 s/\(=[ ]*\).*/\1/
20850 s/\n//
20851 s/^[^=]*=[ ]*$//
20855 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20856 fi # test -n "$CONFIG_FILES"
20858 # Set up the scripts for CONFIG_HEADERS section.
20859 # No need to generate them if there are no CONFIG_HEADERS.
20860 # This happens for instance with `./config.status Makefile'.
20861 if test -n "$CONFIG_HEADERS"; then
20862 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20863 BEGIN {
20864 _ACEOF
20866 # Transform confdefs.h into an awk script `defines.awk', embedded as
20867 # here-document in config.status, that substitutes the proper values into
20868 # config.h.in to produce config.h.
20870 # Create a delimiter string that does not exist in confdefs.h, to ease
20871 # handling of long lines.
20872 ac_delim='%!_!# '
20873 for ac_last_try in false false :; do
20874 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20875 if test -z "$ac_tt"; then
20876 break
20877 elif $ac_last_try; then
20878 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20879 else
20880 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20882 done
20884 # For the awk script, D is an array of macro values keyed by name,
20885 # likewise P contains macro parameters if any. Preserve backslash
20886 # newline sequences.
20888 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20889 sed -n '
20890 s/.\{148\}/&'"$ac_delim"'/g
20891 t rset
20892 :rset
20893 s/^[ ]*#[ ]*define[ ][ ]*/ /
20894 t def
20896 :def
20897 s/\\$//
20898 t bsnl
20899 s/["\\]/\\&/g
20900 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20901 D["\1"]=" \3"/p
20902 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
20904 :bsnl
20905 s/["\\]/\\&/g
20906 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20907 D["\1"]=" \3\\\\\\n"\\/p
20908 t cont
20909 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20910 t cont
20912 :cont
20914 s/.\{148\}/&'"$ac_delim"'/g
20915 t clear
20916 :clear
20917 s/\\$//
20918 t bsnlc
20919 s/["\\]/\\&/g; s/^/"/; s/$/"/p
20921 :bsnlc
20922 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20923 b cont
20924 ' <confdefs.h | sed '
20925 s/'"$ac_delim"'/"\\\
20926 "/g' >>$CONFIG_STATUS || ac_write_fail=1
20928 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20929 for (key in D) D_is_set[key] = 1
20930 FS = "\a"
20932 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20933 line = \$ 0
20934 split(line, arg, " ")
20935 if (arg[1] == "#") {
20936 defundef = arg[2]
20937 mac1 = arg[3]
20938 } else {
20939 defundef = substr(arg[1], 2)
20940 mac1 = arg[2]
20942 split(mac1, mac2, "(") #)
20943 macro = mac2[1]
20944 prefix = substr(line, 1, index(line, defundef) - 1)
20945 if (D_is_set[macro]) {
20946 # Preserve the white space surrounding the "#".
20947 print prefix "define", macro P[macro] D[macro]
20948 next
20949 } else {
20950 # Replace #undef with comments. This is necessary, for example,
20951 # in the case of _POSIX_SOURCE, which is predefined and required
20952 # on some systems where configure will not decide to define it.
20953 if (defundef == "undef") {
20954 print "/*", prefix defundef, macro, "*/"
20955 next
20959 { print }
20960 _ACAWK
20961 _ACEOF
20962 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20963 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20964 fi # test -n "$CONFIG_HEADERS"
20967 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
20968 shift
20969 for ac_tag
20971 case $ac_tag in
20972 :[FHLC]) ac_mode=$ac_tag; continue;;
20973 esac
20974 case $ac_mode$ac_tag in
20975 :[FHL]*:*);;
20976 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20977 :[FH]-) ac_tag=-:-;;
20978 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20979 esac
20980 ac_save_IFS=$IFS
20981 IFS=:
20982 set x $ac_tag
20983 IFS=$ac_save_IFS
20984 shift
20985 ac_file=$1
20986 shift
20988 case $ac_mode in
20989 :L) ac_source=$1;;
20990 :[FH])
20991 ac_file_inputs=
20992 for ac_f
20994 case $ac_f in
20995 -) ac_f="$ac_tmp/stdin";;
20996 *) # Look for the file first in the build tree, then in the source tree
20997 # (if the path is not absolute). The absolute path cannot be DOS-style,
20998 # because $ac_f cannot contain `:'.
20999 test -f "$ac_f" ||
21000 case $ac_f in
21001 [\\/$]*) false;;
21002 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21003 esac ||
21004 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
21005 esac
21006 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21007 as_fn_append ac_file_inputs " '$ac_f'"
21008 done
21010 # Let's still pretend it is `configure' which instantiates (i.e., don't
21011 # use $as_me), people would be surprised to read:
21012 # /* config.h. Generated by config.status. */
21013 configure_input='Generated from '`
21014 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21015 `' by configure.'
21016 if test x"$ac_file" != x-; then
21017 configure_input="$ac_file. $configure_input"
21018 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21019 $as_echo "$as_me: creating $ac_file" >&6;}
21021 # Neutralize special characters interpreted by sed in replacement strings.
21022 case $configure_input in #(
21023 *\&* | *\|* | *\\* )
21024 ac_sed_conf_input=`$as_echo "$configure_input" |
21025 sed 's/[\\\\&|]/\\\\&/g'`;; #(
21026 *) ac_sed_conf_input=$configure_input;;
21027 esac
21029 case $ac_tag in
21030 *:-:* | *:-) cat >"$ac_tmp/stdin" \
21031 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
21032 esac
21034 esac
21036 ac_dir=`$as_dirname -- "$ac_file" ||
21037 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21038 X"$ac_file" : 'X\(//\)[^/]' \| \
21039 X"$ac_file" : 'X\(//\)$' \| \
21040 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21041 $as_echo X"$ac_file" |
21042 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21043 s//\1/
21046 /^X\(\/\/\)[^/].*/{
21047 s//\1/
21050 /^X\(\/\/\)$/{
21051 s//\1/
21054 /^X\(\/\).*/{
21055 s//\1/
21058 s/.*/./; q'`
21059 as_dir="$ac_dir"; as_fn_mkdir_p
21060 ac_builddir=.
21062 case "$ac_dir" in
21063 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21065 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21066 # A ".." for each directory in $ac_dir_suffix.
21067 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21068 case $ac_top_builddir_sub in
21069 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21070 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21071 esac ;;
21072 esac
21073 ac_abs_top_builddir=$ac_pwd
21074 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21075 # for backward compatibility:
21076 ac_top_builddir=$ac_top_build_prefix
21078 case $srcdir in
21079 .) # We are building in place.
21080 ac_srcdir=.
21081 ac_top_srcdir=$ac_top_builddir_sub
21082 ac_abs_top_srcdir=$ac_pwd ;;
21083 [\\/]* | ?:[\\/]* ) # Absolute name.
21084 ac_srcdir=$srcdir$ac_dir_suffix;
21085 ac_top_srcdir=$srcdir
21086 ac_abs_top_srcdir=$srcdir ;;
21087 *) # Relative name.
21088 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21089 ac_top_srcdir=$ac_top_build_prefix$srcdir
21090 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21091 esac
21092 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21095 case $ac_mode in
21098 # CONFIG_FILE
21101 case $INSTALL in
21102 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21103 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21104 esac
21105 ac_MKDIR_P=$MKDIR_P
21106 case $MKDIR_P in
21107 [\\/$]* | ?:[\\/]* ) ;;
21108 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21109 esac
21110 _ACEOF
21112 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21113 # If the template does not know about datarootdir, expand it.
21114 # FIXME: This hack should be removed a few years after 2.60.
21115 ac_datarootdir_hack=; ac_datarootdir_seen=
21116 ac_sed_dataroot='
21117 /datarootdir/ {
21121 /@datadir@/p
21122 /@docdir@/p
21123 /@infodir@/p
21124 /@localedir@/p
21125 /@mandir@/p'
21126 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21127 *datarootdir*) ac_datarootdir_seen=yes;;
21128 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21129 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21130 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21131 _ACEOF
21132 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21133 ac_datarootdir_hack='
21134 s&@datadir@&$datadir&g
21135 s&@docdir@&$docdir&g
21136 s&@infodir@&$infodir&g
21137 s&@localedir@&$localedir&g
21138 s&@mandir@&$mandir&g
21139 s&\\\${datarootdir}&$datarootdir&g' ;;
21140 esac
21141 _ACEOF
21143 # Neutralize VPATH when `$srcdir' = `.'.
21144 # Shell code in configure.ac might set extrasub.
21145 # FIXME: do we really want to maintain this feature?
21146 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21147 ac_sed_extra="$ac_vpsub
21148 $extrasub
21149 _ACEOF
21150 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21152 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21153 s|@configure_input@|$ac_sed_conf_input|;t t
21154 s&@top_builddir@&$ac_top_builddir_sub&;t t
21155 s&@top_build_prefix@&$ac_top_build_prefix&;t t
21156 s&@srcdir@&$ac_srcdir&;t t
21157 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21158 s&@top_srcdir@&$ac_top_srcdir&;t t
21159 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21160 s&@builddir@&$ac_builddir&;t t
21161 s&@abs_builddir@&$ac_abs_builddir&;t t
21162 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21163 s&@INSTALL@&$ac_INSTALL&;t t
21164 s&@MKDIR_P@&$ac_MKDIR_P&;t t
21165 $ac_datarootdir_hack
21167 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21168 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21170 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21171 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21172 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
21173 "$ac_tmp/out"`; test -z "$ac_out"; } &&
21174 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21175 which seems to be undefined. Please make sure it is defined" >&5
21176 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21177 which seems to be undefined. Please make sure it is defined" >&2;}
21179 rm -f "$ac_tmp/stdin"
21180 case $ac_file in
21181 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21182 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21183 esac \
21184 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21188 # CONFIG_HEADER
21190 if test x"$ac_file" != x-; then
21192 $as_echo "/* $configure_input */" \
21193 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21194 } >"$ac_tmp/config.h" \
21195 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21196 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
21197 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21198 $as_echo "$as_me: $ac_file is unchanged" >&6;}
21199 else
21200 rm -f "$ac_file"
21201 mv "$ac_tmp/config.h" "$ac_file" \
21202 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21204 else
21205 $as_echo "/* $configure_input */" \
21206 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21207 || as_fn_error $? "could not create -" "$LINENO" 5
21209 # Compute "$ac_file"'s index in $config_headers.
21210 _am_arg="$ac_file"
21211 _am_stamp_count=1
21212 for _am_header in $config_headers :; do
21213 case $_am_header in
21214 $_am_arg | $_am_arg:* )
21215 break ;;
21217 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21218 esac
21219 done
21220 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21221 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21222 X"$_am_arg" : 'X\(//\)[^/]' \| \
21223 X"$_am_arg" : 'X\(//\)$' \| \
21224 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21225 $as_echo X"$_am_arg" |
21226 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21227 s//\1/
21230 /^X\(\/\/\)[^/].*/{
21231 s//\1/
21234 /^X\(\/\/\)$/{
21235 s//\1/
21238 /^X\(\/\).*/{
21239 s//\1/
21242 s/.*/./; q'`/stamp-h$_am_stamp_count
21245 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21246 $as_echo "$as_me: executing $ac_file commands" >&6;}
21248 esac
21251 case $ac_file$ac_mode in
21252 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21253 # Older Autoconf quotes --file arguments for eval, but not when files
21254 # are listed without --file. Let's play safe and only enable the eval
21255 # if we detect the quoting.
21256 case $CONFIG_FILES in
21257 *\'*) eval set x "$CONFIG_FILES" ;;
21258 *) set x $CONFIG_FILES ;;
21259 esac
21260 shift
21261 for mf
21263 # Strip MF so we end up with the name of the file.
21264 mf=`echo "$mf" | sed -e 's/:.*$//'`
21265 # Check whether this is an Automake generated Makefile or not.
21266 # We used to match only the files named 'Makefile.in', but
21267 # some people rename them; so instead we look at the file content.
21268 # Grep'ing the first line is not enough: some people post-process
21269 # each Makefile.in and add a new line on top of each file to say so.
21270 # Grep'ing the whole file is not good either: AIX grep has a line
21271 # limit of 2048, but all sed's we know have understand at least 4000.
21272 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
21273 dirpart=`$as_dirname -- "$mf" ||
21274 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21275 X"$mf" : 'X\(//\)[^/]' \| \
21276 X"$mf" : 'X\(//\)$' \| \
21277 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21278 $as_echo X"$mf" |
21279 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21280 s//\1/
21283 /^X\(\/\/\)[^/].*/{
21284 s//\1/
21287 /^X\(\/\/\)$/{
21288 s//\1/
21291 /^X\(\/\).*/{
21292 s//\1/
21295 s/.*/./; q'`
21296 else
21297 continue
21299 # Extract the definition of DEPDIR, am__include, and am__quote
21300 # from the Makefile without running 'make'.
21301 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21302 test -z "$DEPDIR" && continue
21303 am__include=`sed -n 's/^am__include = //p' < "$mf"`
21304 test -z "$am__include" && continue
21305 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21306 # Find all dependency output files, they are included files with
21307 # $(DEPDIR) in their names. We invoke sed twice because it is the
21308 # simplest approach to changing $(DEPDIR) to its actual value in the
21309 # expansion.
21310 for file in `sed -n "
21311 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21312 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
21313 # Make sure the directory exists.
21314 test -f "$dirpart/$file" && continue
21315 fdir=`$as_dirname -- "$file" ||
21316 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21317 X"$file" : 'X\(//\)[^/]' \| \
21318 X"$file" : 'X\(//\)$' \| \
21319 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21320 $as_echo X"$file" |
21321 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21322 s//\1/
21325 /^X\(\/\/\)[^/].*/{
21326 s//\1/
21329 /^X\(\/\/\)$/{
21330 s//\1/
21333 /^X\(\/\).*/{
21334 s//\1/
21337 s/.*/./; q'`
21338 as_dir=$dirpart/$fdir; as_fn_mkdir_p
21339 # echo "creating $dirpart/$file"
21340 echo '# dummy' > "$dirpart/$file"
21341 done
21342 done
21345 "libtool":C)
21347 # See if we are running on zsh, and set the options which allow our
21348 # commands through without removal of \ escapes.
21349 if test -n "${ZSH_VERSION+set}" ; then
21350 setopt NO_GLOB_SUBST
21353 cfgfile="${ofile}T"
21354 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21355 $RM "$cfgfile"
21357 cat <<_LT_EOF >> "$cfgfile"
21358 #! $SHELL
21360 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
21361 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
21362 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21363 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
21365 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
21366 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
21367 # Written by Gordon Matzigkeit, 1996
21369 # This file is part of GNU Libtool.
21371 # GNU Libtool is free software; you can redistribute it and/or
21372 # modify it under the terms of the GNU General Public License as
21373 # published by the Free Software Foundation; either version 2 of
21374 # the License, or (at your option) any later version.
21376 # As a special exception to the GNU General Public License,
21377 # if you distribute this file as part of a program or library that
21378 # is built using GNU Libtool, you may include this file under the
21379 # same distribution terms that you use for the rest of that program.
21381 # GNU Libtool is distributed in the hope that it will be useful,
21382 # but WITHOUT ANY WARRANTY; without even the implied warranty of
21383 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21384 # GNU General Public License for more details.
21386 # You should have received a copy of the GNU General Public License
21387 # along with GNU Libtool; see the file COPYING. If not, a copy
21388 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
21389 # obtained by writing to the Free Software Foundation, Inc.,
21390 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21393 # The names of the tagged configurations supported by this script.
21394 available_tags="CXX "
21396 # ### BEGIN LIBTOOL CONFIG
21398 # Which release of libtool.m4 was used?
21399 macro_version=$macro_version
21400 macro_revision=$macro_revision
21402 # Whether or not to build shared libraries.
21403 build_libtool_libs=$enable_shared
21405 # Whether or not to build static libraries.
21406 build_old_libs=$enable_static
21408 # What type of objects to build.
21409 pic_mode=$pic_mode
21411 # Whether or not to optimize for fast installation.
21412 fast_install=$enable_fast_install
21414 # Shell to use when invoking shell scripts.
21415 SHELL=$lt_SHELL
21417 # An echo program that protects backslashes.
21418 ECHO=$lt_ECHO
21420 # The host system.
21421 host_alias=$host_alias
21422 host=$host
21423 host_os=$host_os
21425 # The build system.
21426 build_alias=$build_alias
21427 build=$build
21428 build_os=$build_os
21430 # A sed program that does not truncate output.
21431 SED=$lt_SED
21433 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
21434 Xsed="\$SED -e 1s/^X//"
21436 # A grep program that handles long lines.
21437 GREP=$lt_GREP
21439 # An ERE matcher.
21440 EGREP=$lt_EGREP
21442 # A literal string matcher.
21443 FGREP=$lt_FGREP
21445 # A BSD- or MS-compatible name lister.
21446 NM=$lt_NM
21448 # Whether we need soft or hard links.
21449 LN_S=$lt_LN_S
21451 # What is the maximum length of a command?
21452 max_cmd_len=$max_cmd_len
21454 # Object file suffix (normally "o").
21455 objext=$ac_objext
21457 # Executable file suffix (normally "").
21458 exeext=$exeext
21460 # whether the shell understands "unset".
21461 lt_unset=$lt_unset
21463 # turn spaces into newlines.
21464 SP2NL=$lt_lt_SP2NL
21466 # turn newlines into spaces.
21467 NL2SP=$lt_lt_NL2SP
21469 # An object symbol dumper.
21470 OBJDUMP=$lt_OBJDUMP
21472 # Method to check whether dependent libraries are shared objects.
21473 deplibs_check_method=$lt_deplibs_check_method
21475 # Command to use when deplibs_check_method == "file_magic".
21476 file_magic_cmd=$lt_file_magic_cmd
21478 # The archiver.
21479 AR=$lt_AR
21480 AR_FLAGS=$lt_AR_FLAGS
21482 # A symbol stripping program.
21483 STRIP=$lt_STRIP
21485 # Commands used to install an old-style archive.
21486 RANLIB=$lt_RANLIB
21487 old_postinstall_cmds=$lt_old_postinstall_cmds
21488 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21490 # Whether to use a lock for old archive extraction.
21491 lock_old_archive_extraction=$lock_old_archive_extraction
21493 # A C compiler.
21494 LTCC=$lt_CC
21496 # LTCC compiler flags.
21497 LTCFLAGS=$lt_CFLAGS
21499 # Take the output of nm and produce a listing of raw symbols and C names.
21500 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21502 # Transform the output of nm in a proper C declaration.
21503 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21505 # Transform the output of nm in a C name address pair.
21506 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21508 # Transform the output of nm in a C name address pair when lib prefix is needed.
21509 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21511 # The name of the directory that contains temporary libtool files.
21512 objdir=$objdir
21514 # Used to examine libraries when file_magic_cmd begins with "file".
21515 MAGIC_CMD=$MAGIC_CMD
21517 # Must we lock files when doing compilation?
21518 need_locks=$lt_need_locks
21520 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21521 DSYMUTIL=$lt_DSYMUTIL
21523 # Tool to change global to local symbols on Mac OS X.
21524 NMEDIT=$lt_NMEDIT
21526 # Tool to manipulate fat objects and archives on Mac OS X.
21527 LIPO=$lt_LIPO
21529 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
21530 OTOOL=$lt_OTOOL
21532 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21533 OTOOL64=$lt_OTOOL64
21535 # Old archive suffix (normally "a").
21536 libext=$libext
21538 # Shared library suffix (normally ".so").
21539 shrext_cmds=$lt_shrext_cmds
21541 # The commands to extract the exported symbol list from a shared archive.
21542 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21544 # Variables whose values should be saved in libtool wrapper scripts and
21545 # restored at link time.
21546 variables_saved_for_relink=$lt_variables_saved_for_relink
21548 # Do we need the "lib" prefix for modules?
21549 need_lib_prefix=$need_lib_prefix
21551 # Do we need a version for libraries?
21552 need_version=$need_version
21554 # Library versioning type.
21555 version_type=$version_type
21557 # Shared library runtime path variable.
21558 runpath_var=$runpath_var
21560 # Shared library path variable.
21561 shlibpath_var=$shlibpath_var
21563 # Is shlibpath searched before the hard-coded library search path?
21564 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21566 # Format of library name prefix.
21567 libname_spec=$lt_libname_spec
21569 # List of archive names. First name is the real one, the rest are links.
21570 # The last name is the one that the linker finds with -lNAME
21571 library_names_spec=$lt_library_names_spec
21573 # The coded name of the library, if different from the real name.
21574 soname_spec=$lt_soname_spec
21576 # Permission mode override for installation of shared libraries.
21577 install_override_mode=$lt_install_override_mode
21579 # Command to use after installation of a shared archive.
21580 postinstall_cmds=$lt_postinstall_cmds
21582 # Command to use after uninstallation of a shared archive.
21583 postuninstall_cmds=$lt_postuninstall_cmds
21585 # Commands used to finish a libtool library installation in a directory.
21586 finish_cmds=$lt_finish_cmds
21588 # As "finish_cmds", except a single script fragment to be evaled but
21589 # not shown.
21590 finish_eval=$lt_finish_eval
21592 # Whether we should hardcode library paths into libraries.
21593 hardcode_into_libs=$hardcode_into_libs
21595 # Compile-time system search path for libraries.
21596 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21598 # Run-time system search path for libraries.
21599 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21601 # Whether dlopen is supported.
21602 dlopen_support=$enable_dlopen
21604 # Whether dlopen of programs is supported.
21605 dlopen_self=$enable_dlopen_self
21607 # Whether dlopen of statically linked programs is supported.
21608 dlopen_self_static=$enable_dlopen_self_static
21610 # Commands to strip libraries.
21611 old_striplib=$lt_old_striplib
21612 striplib=$lt_striplib
21615 # The linker used to build libraries.
21616 LD=$lt_LD
21618 # How to create reloadable object files.
21619 reload_flag=$lt_reload_flag
21620 reload_cmds=$lt_reload_cmds
21622 # Commands used to build an old-style archive.
21623 old_archive_cmds=$lt_old_archive_cmds
21625 # A language specific compiler.
21626 CC=$lt_compiler
21628 # Is the compiler the GNU compiler?
21629 with_gcc=$GCC
21631 # Compiler flag to turn off builtin functions.
21632 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21634 # How to pass a linker flag through the compiler.
21635 wl=$lt_lt_prog_compiler_wl
21637 # Additional compiler flags for building library objects.
21638 pic_flag=$lt_lt_prog_compiler_pic
21640 # Compiler flag to prevent dynamic linking.
21641 link_static_flag=$lt_lt_prog_compiler_static
21643 # Does compiler simultaneously support -c and -o options?
21644 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21646 # Whether or not to add -lc for building shared libraries.
21647 build_libtool_need_lc=$archive_cmds_need_lc
21649 # Whether or not to disallow shared libs when runtime libs are static.
21650 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21652 # Compiler flag to allow reflexive dlopens.
21653 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21655 # Compiler flag to generate shared objects directly from archives.
21656 whole_archive_flag_spec=$lt_whole_archive_flag_spec
21658 # Whether the compiler copes with passing no objects directly.
21659 compiler_needs_object=$lt_compiler_needs_object
21661 # Create an old-style archive from a shared archive.
21662 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21664 # Create a temporary old-style archive to link instead of a shared archive.
21665 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21667 # Commands used to build a shared archive.
21668 archive_cmds=$lt_archive_cmds
21669 archive_expsym_cmds=$lt_archive_expsym_cmds
21671 # Commands used to build a loadable module if different from building
21672 # a shared archive.
21673 module_cmds=$lt_module_cmds
21674 module_expsym_cmds=$lt_module_expsym_cmds
21676 # Whether we are building with GNU ld or not.
21677 with_gnu_ld=$lt_with_gnu_ld
21679 # Flag that allows shared libraries with undefined symbols to be built.
21680 allow_undefined_flag=$lt_allow_undefined_flag
21682 # Flag that enforces no undefined symbols.
21683 no_undefined_flag=$lt_no_undefined_flag
21685 # Flag to hardcode \$libdir into a binary during linking.
21686 # This must work even if \$libdir does not exist
21687 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21689 # If ld is used when linking, flag to hardcode \$libdir into a binary
21690 # during linking. This must work even if \$libdir does not exist.
21691 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
21693 # Whether we need a single "-rpath" flag with a separated argument.
21694 hardcode_libdir_separator=$lt_hardcode_libdir_separator
21696 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21697 # DIR into the resulting binary.
21698 hardcode_direct=$hardcode_direct
21700 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21701 # DIR into the resulting binary and the resulting library dependency is
21702 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
21703 # library is relocated.
21704 hardcode_direct_absolute=$hardcode_direct_absolute
21706 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21707 # into the resulting binary.
21708 hardcode_minus_L=$hardcode_minus_L
21710 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21711 # into the resulting binary.
21712 hardcode_shlibpath_var=$hardcode_shlibpath_var
21714 # Set to "yes" if building a shared library automatically hardcodes DIR
21715 # into the library and all subsequent libraries and executables linked
21716 # against it.
21717 hardcode_automatic=$hardcode_automatic
21719 # Set to yes if linker adds runtime paths of dependent libraries
21720 # to runtime path list.
21721 inherit_rpath=$inherit_rpath
21723 # Whether libtool must link a program against all its dependency libraries.
21724 link_all_deplibs=$link_all_deplibs
21726 # Fix the shell variable \$srcfile for the compiler.
21727 fix_srcfile_path=$lt_fix_srcfile_path
21729 # Set to "yes" if exported symbols are required.
21730 always_export_symbols=$always_export_symbols
21732 # The commands to list exported symbols.
21733 export_symbols_cmds=$lt_export_symbols_cmds
21735 # Symbols that should not be listed in the preloaded symbols.
21736 exclude_expsyms=$lt_exclude_expsyms
21738 # Symbols that must always be exported.
21739 include_expsyms=$lt_include_expsyms
21741 # Commands necessary for linking programs (against libraries) with templates.
21742 prelink_cmds=$lt_prelink_cmds
21744 # Specify filename containing input files.
21745 file_list_spec=$lt_file_list_spec
21747 # How to hardcode a shared library path into an executable.
21748 hardcode_action=$hardcode_action
21750 # The directories searched by this compiler when creating a shared library.
21751 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
21753 # Dependencies to place before and after the objects being linked to
21754 # create a shared library.
21755 predep_objects=$lt_predep_objects
21756 postdep_objects=$lt_postdep_objects
21757 predeps=$lt_predeps
21758 postdeps=$lt_postdeps
21760 # The library search path used internally by the compiler when linking
21761 # a shared library.
21762 compiler_lib_search_path=$lt_compiler_lib_search_path
21764 # ### END LIBTOOL CONFIG
21766 _LT_EOF
21768 case $host_os in
21769 aix3*)
21770 cat <<\_LT_EOF >> "$cfgfile"
21771 # AIX sometimes has problems with the GCC collect2 program. For some
21772 # reason, if we set the COLLECT_NAMES environment variable, the problems
21773 # vanish in a puff of smoke.
21774 if test "X${COLLECT_NAMES+set}" != Xset; then
21775 COLLECT_NAMES=
21776 export COLLECT_NAMES
21778 _LT_EOF
21780 esac
21783 ltmain="$ac_aux_dir/ltmain.sh"
21786 # We use sed instead of cat because bash on DJGPP gets confused if
21787 # if finds mixed CR/LF and LF-only lines. Since sed operates in
21788 # text mode, it properly converts lines to CR/LF. This bash problem
21789 # is reportedly fixed, but why not run on old versions too?
21790 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
21791 || (rm -f "$cfgfile"; exit 1)
21793 case $xsi_shell in
21794 yes)
21795 cat << \_LT_EOF >> "$cfgfile"
21797 # func_dirname file append nondir_replacement
21798 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
21799 # otherwise set result to NONDIR_REPLACEMENT.
21800 func_dirname ()
21802 case ${1} in
21803 */*) func_dirname_result="${1%/*}${2}" ;;
21804 * ) func_dirname_result="${3}" ;;
21805 esac
21808 # func_basename file
21809 func_basename ()
21811 func_basename_result="${1##*/}"
21814 # func_dirname_and_basename file append nondir_replacement
21815 # perform func_basename and func_dirname in a single function
21816 # call:
21817 # dirname: Compute the dirname of FILE. If nonempty,
21818 # add APPEND to the result, otherwise set result
21819 # to NONDIR_REPLACEMENT.
21820 # value returned in "$func_dirname_result"
21821 # basename: Compute filename of FILE.
21822 # value retuned in "$func_basename_result"
21823 # Implementation must be kept synchronized with func_dirname
21824 # and func_basename. For efficiency, we do not delegate to
21825 # those functions but instead duplicate the functionality here.
21826 func_dirname_and_basename ()
21828 case ${1} in
21829 */*) func_dirname_result="${1%/*}${2}" ;;
21830 * ) func_dirname_result="${3}" ;;
21831 esac
21832 func_basename_result="${1##*/}"
21835 # func_stripname prefix suffix name
21836 # strip PREFIX and SUFFIX off of NAME.
21837 # PREFIX and SUFFIX must not contain globbing or regex special
21838 # characters, hashes, percent signs, but SUFFIX may contain a leading
21839 # dot (in which case that matches only a dot).
21840 func_stripname ()
21842 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
21843 # positional parameters, so assign one to ordinary parameter first.
21844 func_stripname_result=${3}
21845 func_stripname_result=${func_stripname_result#"${1}"}
21846 func_stripname_result=${func_stripname_result%"${2}"}
21849 # func_opt_split
21850 func_opt_split ()
21852 func_opt_split_opt=${1%%=*}
21853 func_opt_split_arg=${1#*=}
21856 # func_lo2o object
21857 func_lo2o ()
21859 case ${1} in
21860 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
21861 *) func_lo2o_result=${1} ;;
21862 esac
21865 # func_xform libobj-or-source
21866 func_xform ()
21868 func_xform_result=${1%.*}.lo
21871 # func_arith arithmetic-term...
21872 func_arith ()
21874 func_arith_result=$(( $* ))
21877 # func_len string
21878 # STRING may not start with a hyphen.
21879 func_len ()
21881 func_len_result=${#1}
21884 _LT_EOF
21886 *) # Bourne compatible functions.
21887 cat << \_LT_EOF >> "$cfgfile"
21889 # func_dirname file append nondir_replacement
21890 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
21891 # otherwise set result to NONDIR_REPLACEMENT.
21892 func_dirname ()
21894 # Extract subdirectory from the argument.
21895 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
21896 if test "X$func_dirname_result" = "X${1}"; then
21897 func_dirname_result="${3}"
21898 else
21899 func_dirname_result="$func_dirname_result${2}"
21903 # func_basename file
21904 func_basename ()
21906 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
21910 # func_stripname prefix suffix name
21911 # strip PREFIX and SUFFIX off of NAME.
21912 # PREFIX and SUFFIX must not contain globbing or regex special
21913 # characters, hashes, percent signs, but SUFFIX may contain a leading
21914 # dot (in which case that matches only a dot).
21915 # func_strip_suffix prefix name
21916 func_stripname ()
21918 case ${2} in
21919 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
21920 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
21921 esac
21924 # sed scripts:
21925 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
21926 my_sed_long_arg='1s/^-[^=]*=//'
21928 # func_opt_split
21929 func_opt_split ()
21931 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
21932 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
21935 # func_lo2o object
21936 func_lo2o ()
21938 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
21941 # func_xform libobj-or-source
21942 func_xform ()
21944 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
21947 # func_arith arithmetic-term...
21948 func_arith ()
21950 func_arith_result=`expr "$@"`
21953 # func_len string
21954 # STRING may not start with a hyphen.
21955 func_len ()
21957 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
21960 _LT_EOF
21961 esac
21963 case $lt_shell_append in
21964 yes)
21965 cat << \_LT_EOF >> "$cfgfile"
21967 # func_append var value
21968 # Append VALUE to the end of shell variable VAR.
21969 func_append ()
21971 eval "$1+=\$2"
21973 _LT_EOF
21976 cat << \_LT_EOF >> "$cfgfile"
21978 # func_append var value
21979 # Append VALUE to the end of shell variable VAR.
21980 func_append ()
21982 eval "$1=\$$1\$2"
21985 _LT_EOF
21987 esac
21990 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
21991 || (rm -f "$cfgfile"; exit 1)
21993 mv -f "$cfgfile" "$ofile" ||
21994 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21995 chmod +x "$ofile"
21998 cat <<_LT_EOF >> "$ofile"
22000 # ### BEGIN LIBTOOL TAG CONFIG: CXX
22002 # The linker used to build libraries.
22003 LD=$lt_LD_CXX
22005 # How to create reloadable object files.
22006 reload_flag=$lt_reload_flag_CXX
22007 reload_cmds=$lt_reload_cmds_CXX
22009 # Commands used to build an old-style archive.
22010 old_archive_cmds=$lt_old_archive_cmds_CXX
22012 # A language specific compiler.
22013 CC=$lt_compiler_CXX
22015 # Is the compiler the GNU compiler?
22016 with_gcc=$GCC_CXX
22018 # Compiler flag to turn off builtin functions.
22019 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
22021 # How to pass a linker flag through the compiler.
22022 wl=$lt_lt_prog_compiler_wl_CXX
22024 # Additional compiler flags for building library objects.
22025 pic_flag=$lt_lt_prog_compiler_pic_CXX
22027 # Compiler flag to prevent dynamic linking.
22028 link_static_flag=$lt_lt_prog_compiler_static_CXX
22030 # Does compiler simultaneously support -c and -o options?
22031 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
22033 # Whether or not to add -lc for building shared libraries.
22034 build_libtool_need_lc=$archive_cmds_need_lc_CXX
22036 # Whether or not to disallow shared libs when runtime libs are static.
22037 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
22039 # Compiler flag to allow reflexive dlopens.
22040 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
22042 # Compiler flag to generate shared objects directly from archives.
22043 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
22045 # Whether the compiler copes with passing no objects directly.
22046 compiler_needs_object=$lt_compiler_needs_object_CXX
22048 # Create an old-style archive from a shared archive.
22049 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
22051 # Create a temporary old-style archive to link instead of a shared archive.
22052 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
22054 # Commands used to build a shared archive.
22055 archive_cmds=$lt_archive_cmds_CXX
22056 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
22058 # Commands used to build a loadable module if different from building
22059 # a shared archive.
22060 module_cmds=$lt_module_cmds_CXX
22061 module_expsym_cmds=$lt_module_expsym_cmds_CXX
22063 # Whether we are building with GNU ld or not.
22064 with_gnu_ld=$lt_with_gnu_ld_CXX
22066 # Flag that allows shared libraries with undefined symbols to be built.
22067 allow_undefined_flag=$lt_allow_undefined_flag_CXX
22069 # Flag that enforces no undefined symbols.
22070 no_undefined_flag=$lt_no_undefined_flag_CXX
22072 # Flag to hardcode \$libdir into a binary during linking.
22073 # This must work even if \$libdir does not exist
22074 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
22076 # If ld is used when linking, flag to hardcode \$libdir into a binary
22077 # during linking. This must work even if \$libdir does not exist.
22078 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
22080 # Whether we need a single "-rpath" flag with a separated argument.
22081 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
22083 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22084 # DIR into the resulting binary.
22085 hardcode_direct=$hardcode_direct_CXX
22087 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22088 # DIR into the resulting binary and the resulting library dependency is
22089 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
22090 # library is relocated.
22091 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
22093 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22094 # into the resulting binary.
22095 hardcode_minus_L=$hardcode_minus_L_CXX
22097 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22098 # into the resulting binary.
22099 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
22101 # Set to "yes" if building a shared library automatically hardcodes DIR
22102 # into the library and all subsequent libraries and executables linked
22103 # against it.
22104 hardcode_automatic=$hardcode_automatic_CXX
22106 # Set to yes if linker adds runtime paths of dependent libraries
22107 # to runtime path list.
22108 inherit_rpath=$inherit_rpath_CXX
22110 # Whether libtool must link a program against all its dependency libraries.
22111 link_all_deplibs=$link_all_deplibs_CXX
22113 # Fix the shell variable \$srcfile for the compiler.
22114 fix_srcfile_path=$lt_fix_srcfile_path_CXX
22116 # Set to "yes" if exported symbols are required.
22117 always_export_symbols=$always_export_symbols_CXX
22119 # The commands to list exported symbols.
22120 export_symbols_cmds=$lt_export_symbols_cmds_CXX
22122 # Symbols that should not be listed in the preloaded symbols.
22123 exclude_expsyms=$lt_exclude_expsyms_CXX
22125 # Symbols that must always be exported.
22126 include_expsyms=$lt_include_expsyms_CXX
22128 # Commands necessary for linking programs (against libraries) with templates.
22129 prelink_cmds=$lt_prelink_cmds_CXX
22131 # Specify filename containing input files.
22132 file_list_spec=$lt_file_list_spec_CXX
22134 # How to hardcode a shared library path into an executable.
22135 hardcode_action=$hardcode_action_CXX
22137 # The directories searched by this compiler when creating a shared library.
22138 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
22140 # Dependencies to place before and after the objects being linked to
22141 # create a shared library.
22142 predep_objects=$lt_predep_objects_CXX
22143 postdep_objects=$lt_postdep_objects_CXX
22144 predeps=$lt_predeps_CXX
22145 postdeps=$lt_postdeps_CXX
22147 # The library search path used internally by the compiler when linking
22148 # a shared library.
22149 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
22151 # ### END LIBTOOL TAG CONFIG: CXX
22152 _LT_EOF
22155 "default-1":C)
22156 for ac_file in $CONFIG_FILES; do
22157 # Support "outfile[:infile[:infile...]]"
22158 case "$ac_file" in
22159 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
22160 esac
22161 # PO directories have a Makefile.in generated from Makefile.in.in.
22162 case "$ac_file" in */Makefile.in)
22163 # Adjust a relative srcdir.
22164 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
22165 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
22166 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
22167 # In autoconf-2.13 it is called $ac_given_srcdir.
22168 # In autoconf-2.50 it is called $srcdir.
22169 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
22170 case "$ac_given_srcdir" in
22171 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
22172 /*) top_srcdir="$ac_given_srcdir" ;;
22173 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
22174 esac
22175 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
22176 rm -f "$ac_dir/POTFILES"
22177 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
22178 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
22179 POMAKEFILEDEPS="POTFILES.in"
22180 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
22181 # on $ac_dir but don't depend on user-specified configuration
22182 # parameters.
22183 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
22184 # The LINGUAS file contains the set of available languages.
22185 if test -n "$OBSOLETE_ALL_LINGUAS"; then
22186 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.ac is obsolete" || echo "setting ALL_LINGUAS in configure.ac is obsolete"
22188 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
22189 # Hide the ALL_LINGUAS assigment from automake.
22190 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
22191 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
22192 else
22193 # The set of available languages was given in configure.ac.
22194 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
22196 case "$ac_given_srcdir" in
22197 .) srcdirpre= ;;
22198 *) srcdirpre='$(srcdir)/' ;;
22199 esac
22200 POFILES=
22201 GMOFILES=
22202 UPDATEPOFILES=
22203 DUMMYPOFILES=
22204 for lang in $ALL_LINGUAS; do
22205 POFILES="$POFILES $srcdirpre$lang.po"
22206 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
22207 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
22208 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
22209 done
22210 # CATALOGS depends on both $ac_dir and the user's LINGUAS
22211 # environment variable.
22212 INST_LINGUAS=
22213 if test -n "$ALL_LINGUAS"; then
22214 for presentlang in $ALL_LINGUAS; do
22215 useit=no
22216 if test "%UNSET%" != "$LINGUAS"; then
22217 desiredlanguages="$LINGUAS"
22218 else
22219 desiredlanguages="$ALL_LINGUAS"
22221 for desiredlang in $desiredlanguages; do
22222 # Use the presentlang catalog if desiredlang is
22223 # a. equal to presentlang, or
22224 # b. a variant of presentlang (because in this case,
22225 # presentlang can be used as a fallback for messages
22226 # which are not translated in the desiredlang catalog).
22227 case "$desiredlang" in
22228 "$presentlang"*) useit=yes;;
22229 esac
22230 done
22231 if test $useit = yes; then
22232 INST_LINGUAS="$INST_LINGUAS $presentlang"
22234 done
22236 CATALOGS=
22237 if test -n "$INST_LINGUAS"; then
22238 for lang in $INST_LINGUAS; do
22239 CATALOGS="$CATALOGS $lang.gmo"
22240 done
22242 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
22243 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"
22244 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
22245 if test -f "$f"; then
22246 case "$f" in
22247 *.orig | *.bak | *~) ;;
22248 *) cat "$f" >> "$ac_dir/Makefile" ;;
22249 esac
22251 done
22254 esac
22255 done ;;
22256 "default-2":C)
22257 for ac_file in $CONFIG_FILES; do
22258 # Support "outfile[:infile[:infile...]]"
22259 case "$ac_file" in
22260 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
22261 esac
22262 # PO directories have a Makefile.in generated from Makefile.in.in.
22263 case "$ac_file" in */Makefile.in)
22264 # Adjust a relative srcdir.
22265 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
22266 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
22267 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
22268 # In autoconf-2.13 it is called $ac_given_srcdir.
22269 # In autoconf-2.50 it is called $srcdir.
22270 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
22271 case "$ac_given_srcdir" in
22272 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
22273 /*) top_srcdir="$ac_given_srcdir" ;;
22274 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
22275 esac
22276 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
22277 rm -f "$ac_dir/POTFILES"
22278 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
22279 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
22280 POMAKEFILEDEPS="POTFILES.in"
22281 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
22282 # on $ac_dir but don't depend on user-specified configuration
22283 # parameters.
22284 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
22285 # The LINGUAS file contains the set of available languages.
22286 if test -n "$OBSOLETE_ALL_LINGUAS"; then
22287 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.ac is obsolete" || echo "setting ALL_LINGUAS in configure.ac is obsolete"
22289 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
22290 # Hide the ALL_LINGUAS assigment from automake.
22291 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
22292 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
22293 else
22294 # The set of available languages was given in configure.ac.
22295 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
22297 case "$ac_given_srcdir" in
22298 .) srcdirpre= ;;
22299 *) srcdirpre='$(srcdir)/' ;;
22300 esac
22301 POFILES=
22302 GMOFILES=
22303 UPDATEPOFILES=
22304 DUMMYPOFILES=
22305 for lang in $ALL_LINGUAS; do
22306 POFILES="$POFILES $srcdirpre$lang.po"
22307 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
22308 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
22309 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
22310 done
22311 # CATALOGS depends on both $ac_dir and the user's LINGUAS
22312 # environment variable.
22313 INST_LINGUAS=
22314 if test -n "$ALL_LINGUAS"; then
22315 for presentlang in $ALL_LINGUAS; do
22316 useit=no
22317 if test "%UNSET%" != "$LINGUAS"; then
22318 desiredlanguages="$LINGUAS"
22319 else
22320 desiredlanguages="$ALL_LINGUAS"
22322 for desiredlang in $desiredlanguages; do
22323 # Use the presentlang catalog if desiredlang is
22324 # a. equal to presentlang, or
22325 # b. a variant of presentlang (because in this case,
22326 # presentlang can be used as a fallback for messages
22327 # which are not translated in the desiredlang catalog).
22328 case "$desiredlang" in
22329 "$presentlang"*) useit=yes;;
22330 esac
22331 done
22332 if test $useit = yes; then
22333 INST_LINGUAS="$INST_LINGUAS $presentlang"
22335 done
22337 CATALOGS=
22338 if test -n "$INST_LINGUAS"; then
22339 for lang in $INST_LINGUAS; do
22340 CATALOGS="$CATALOGS $lang.gmo"
22341 done
22343 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
22344 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"
22345 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
22346 if test -f "$f"; then
22347 case "$f" in
22348 *.orig | *.bak | *~) ;;
22349 *) cat "$f" >> "$ac_dir/Makefile" ;;
22350 esac
22352 done
22355 esac
22356 done ;;
22357 "default":C)
22358 case "$srcdir" in
22359 .) srcdirpre= ;;
22360 *) srcdirpre='$(srcdir)/' ;;
22361 esac
22362 POFILES=
22363 GMOFILES=
22364 for lang in dummy $OBSOLETE_ALL_LINGUAS; do
22365 if test $lang != dummy; then
22366 POFILES="$POFILES $srcdirpre$lang.po"
22367 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
22369 done
22370 sed -e '/^SRC-POTFILES =/r po/SRC-POTFILES' \
22371 -e '/^BLD-POTFILES =/r po/BLD-POTFILES' \
22372 -e "s,@POFILES@,$POFILES," \
22373 -e "s,@GMOFILES@,$GMOFILES," \
22374 po/Makefile.in > po/Makefile ;;
22376 esac
22377 done # for ac_tag
22380 as_fn_exit 0
22381 _ACEOF
22382 ac_clean_files=$ac_clean_files_save
22384 test $ac_write_fail = 0 ||
22385 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
22388 # configure is writing to config.log, and then calls config.status.
22389 # config.status does its own redirection, appending to config.log.
22390 # Unfortunately, on DOS this fails, as config.log is still kept open
22391 # by configure, so config.status won't be able to write to it; its
22392 # output is simply discarded. So we exec the FD to /dev/null,
22393 # effectively closing config.log, so it can be properly (re)opened and
22394 # appended to by config.status. When coming back to configure, we
22395 # need to make the FD available again.
22396 if test "$no_create" != yes; then
22397 ac_cs_success=:
22398 ac_config_status_args=
22399 test "$silent" = yes &&
22400 ac_config_status_args="$ac_config_status_args --quiet"
22401 exec 5>/dev/null
22402 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22403 exec 5>>config.log
22404 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22405 # would make configure fail if this is the last instruction.
22406 $ac_cs_success || as_fn_exit 1
22408 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22409 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22410 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22415 touch config.status.tmp
22416 if touch --reference=config.status config.status.tmp > /dev/null 2>&1; then
22417 sed '/as_fn_exit 0/i \
22418 sed -e \"s/^\t\\\(\\\$(AM_V_CCLD)\\\)/\t+ \\\1/\" Makefile > Makefile.tmp \
22419 touch --reference=Makefile Makefile.tmp \
22420 mv Makefile.tmp Makefile \
22421 ' config.status > config.status.tmp
22422 touch --reference=config.status config.status.tmp
22423 mv config.status.tmp config.status
22424 chmod +x config.status
22425 sed -e "s/^\t\(\$(AM_V_CCLD)\)/\t+ \1/" Makefile > Makefile.tmp
22426 touch --reference=Makefile Makefile.tmp
22427 mv Makefile.tmp Makefile
22428 else
22429 rm -f config.status.tmp