Fix a potential illegal memory access when displaying corrupt DWARF information.
[binutils-gdb.git] / ld / configure
blob03b9e46f56d1f5143814ce195eb7d3677d71b24e
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for ld 2.40.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.40.50'
591 PACKAGE_STRING='ld 2.40.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 ac_header_list=
633 ac_subst_vars='am__EXEEXT_FALSE
634 am__EXEEXT_TRUE
635 LTLIBOBJS
636 LIBOBJS
637 TESTSFRAMELIB
638 TESTCTFLIB
639 TESTBFDLIB
640 EMULATION_LIBPATH
641 LIB_PATH
642 EMUL_EXTRA_OFILES
643 EMULATION_OFILES
644 TDIRS
645 EMUL
646 elf_plt_unwind_list_options
647 elf_shlib_list_options
648 elf_list_options
649 STRINGIFY
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 MSGMERGE
665 MSGFMT
666 MKINSTALLDIRS
667 CATOBJEXT
668 GENCAT
669 INSTOBJEXT
670 DATADIRNAME
671 CATALOGS
672 POSUB
673 GMSGFMT
674 XGETTEXT
675 INCINTL
676 LIBINTL_DEP
677 LIBINTL
678 USE_NLS
679 WARN_WRITE_STRINGS
680 NO_WERROR
681 WARN_CFLAGS_FOR_BUILD
682 WARN_CFLAGS
683 JANSSON_LIBS
684 JANSSON_CFLAGS
685 enable_libctf
686 ENABLE_LIBCTF_FALSE
687 ENABLE_LIBCTF_TRUE
688 enable_initfini_array
689 installed_linker
690 install_as_default
691 TARGET_SYSTEM_ROOT_DEFINE
692 TARGET_SYSTEM_ROOT
693 use_sysroot
694 ENABLE_BFD_64_BIT_FALSE
695 ENABLE_BFD_64_BIT_TRUE
696 LARGEFILE_CPPFLAGS
697 CXXCPP
698 OTOOL64
699 OTOOL
700 LIPO
701 NMEDIT
702 DSYMUTIL
703 RANLIB
705 OBJDUMP
706 LN_S
708 ac_ct_DUMPBIN
709 DUMPBIN
711 FGREP
713 LIBTOOL
714 PKG_CONFIG_LIBDIR
715 PKG_CONFIG_PATH
716 PKG_CONFIG
717 EGREP
719 GREP
720 am__fastdepCXX_FALSE
721 am__fastdepCXX_TRUE
722 CXXDEPMODE
723 ac_ct_CXX
724 CXXFLAGS
726 am__fastdepCC_FALSE
727 am__fastdepCC_TRUE
728 CCDEPMODE
729 am__nodep
730 AMDEPBACKSLASH
731 AMDEP_FALSE
732 AMDEP_TRUE
733 am__quote
734 am__include
735 DEPDIR
736 OBJEXT
737 EXEEXT
738 ac_ct_CC
739 CPPFLAGS
740 LDFLAGS
741 CFLAGS
743 MAINT
744 MAINTAINER_MODE_FALSE
745 MAINTAINER_MODE_TRUE
746 AM_BACKSLASH
747 AM_DEFAULT_VERBOSITY
748 AM_DEFAULT_V
749 AM_V
750 am__untar
751 am__tar
752 AMTAR
753 am__leading_dot
754 SET_MAKE
756 mkdir_p
757 MKDIR_P
758 INSTALL_STRIP_PROGRAM
759 STRIP
760 install_sh
761 MAKEINFO
762 AUTOHEADER
763 AUTOMAKE
764 AUTOCONF
765 ACLOCAL
766 VERSION
767 PACKAGE
768 CYGPATH_W
769 am__isrc
770 INSTALL_DATA
771 INSTALL_SCRIPT
772 INSTALL_PROGRAM
773 target_os
774 target_vendor
775 target_cpu
776 target
777 host_os
778 host_vendor
779 host_cpu
780 host
781 build_os
782 build_vendor
783 build_cpu
784 build
785 target_alias
786 host_alias
787 build_alias
788 LIBS
789 ECHO_T
790 ECHO_N
791 ECHO_C
792 DEFS
793 mandir
794 localedir
795 libdir
796 psdir
797 pdfdir
798 dvidir
799 htmldir
800 infodir
801 docdir
802 oldincludedir
803 includedir
804 localstatedir
805 sharedstatedir
806 sysconfdir
807 datadir
808 datarootdir
809 libexecdir
810 sbindir
811 bindir
812 program_transform_name
813 prefix
814 exec_prefix
815 PACKAGE_URL
816 PACKAGE_BUGREPORT
817 PACKAGE_STRING
818 PACKAGE_VERSION
819 PACKAGE_TARNAME
820 PACKAGE_NAME
821 PATH_SEPARATOR
822 SHELL'
823 ac_subst_files=''
824 ac_user_opts='
825 enable_option_checking
826 enable_silent_rules
827 enable_maintainer_mode
828 enable_dependency_tracking
829 enable_shared
830 enable_static
831 with_pic
832 enable_fast_install
833 with_gnu_ld
834 enable_libtool_lock
835 enable_plugins
836 enable_largefile
837 enable_checking
838 with_lib_path
839 enable_targets
840 enable_64_bit_bfd
841 with_sysroot
842 enable_gold
843 enable_got
844 enable_compressed_debug_sections
845 enable_default_compressed_debug_sections_algorithm
846 enable_new_dtags
847 enable_relro
848 enable_textrel_check
849 enable_separate_code
850 enable_warn_execstack
851 enable_warn_rwx_segments
852 enable_default_execstack
853 enable_error_handling_script
854 enable_default_hash_style
855 enable_initfini_array
856 enable_libctf
857 enable_jansson
858 enable_werror
859 enable_build_warnings
860 enable_nls
861 with_system_zlib
862 with_zstd
864 ac_precious_vars='build_alias
865 host_alias
866 target_alias
868 CFLAGS
869 LDFLAGS
870 LIBS
871 CPPFLAGS
873 CXXFLAGS
876 PKG_CONFIG
877 PKG_CONFIG_PATH
878 PKG_CONFIG_LIBDIR
879 CXXCPP
880 JANSSON_CFLAGS
881 JANSSON_LIBS
882 YACC
883 YFLAGS
884 ZSTD_CFLAGS
885 ZSTD_LIBS'
888 # Initialize some variables set by options.
889 ac_init_help=
890 ac_init_version=false
891 ac_unrecognized_opts=
892 ac_unrecognized_sep=
893 # The variables have the same names as the options, with
894 # dashes changed to underlines.
895 cache_file=/dev/null
896 exec_prefix=NONE
897 no_create=
898 no_recursion=
899 prefix=NONE
900 program_prefix=NONE
901 program_suffix=NONE
902 program_transform_name=s,x,x,
903 silent=
904 site=
905 srcdir=
906 verbose=
907 x_includes=NONE
908 x_libraries=NONE
910 # Installation directory options.
911 # These are left unexpanded so users can "make install exec_prefix=/foo"
912 # and all the variables that are supposed to be based on exec_prefix
913 # by default will actually change.
914 # Use braces instead of parens because sh, perl, etc. also accept them.
915 # (The list follows the same order as the GNU Coding Standards.)
916 bindir='${exec_prefix}/bin'
917 sbindir='${exec_prefix}/sbin'
918 libexecdir='${exec_prefix}/libexec'
919 datarootdir='${prefix}/share'
920 datadir='${datarootdir}'
921 sysconfdir='${prefix}/etc'
922 sharedstatedir='${prefix}/com'
923 localstatedir='${prefix}/var'
924 includedir='${prefix}/include'
925 oldincludedir='/usr/include'
926 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
927 infodir='${datarootdir}/info'
928 htmldir='${docdir}'
929 dvidir='${docdir}'
930 pdfdir='${docdir}'
931 psdir='${docdir}'
932 libdir='${exec_prefix}/lib'
933 localedir='${datarootdir}/locale'
934 mandir='${datarootdir}/man'
936 ac_prev=
937 ac_dashdash=
938 for ac_option
940 # If the previous option needs an argument, assign it.
941 if test -n "$ac_prev"; then
942 eval $ac_prev=\$ac_option
943 ac_prev=
944 continue
947 case $ac_option in
948 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
949 *=) ac_optarg= ;;
950 *) ac_optarg=yes ;;
951 esac
953 # Accept the important Cygnus configure options, so we can diagnose typos.
955 case $ac_dashdash$ac_option in
957 ac_dashdash=yes ;;
959 -bindir | --bindir | --bindi | --bind | --bin | --bi)
960 ac_prev=bindir ;;
961 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
962 bindir=$ac_optarg ;;
964 -build | --build | --buil | --bui | --bu)
965 ac_prev=build_alias ;;
966 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
967 build_alias=$ac_optarg ;;
969 -cache-file | --cache-file | --cache-fil | --cache-fi \
970 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
971 ac_prev=cache_file ;;
972 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
973 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
974 cache_file=$ac_optarg ;;
976 --config-cache | -C)
977 cache_file=config.cache ;;
979 -datadir | --datadir | --datadi | --datad)
980 ac_prev=datadir ;;
981 -datadir=* | --datadir=* | --datadi=* | --datad=*)
982 datadir=$ac_optarg ;;
984 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
985 | --dataroo | --dataro | --datar)
986 ac_prev=datarootdir ;;
987 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
988 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
989 datarootdir=$ac_optarg ;;
991 -disable-* | --disable-*)
992 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
993 # Reject names that are not valid shell variable names.
994 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
995 as_fn_error $? "invalid feature name: $ac_useropt"
996 ac_useropt_orig=$ac_useropt
997 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
998 case $ac_user_opts in
1000 "enable_$ac_useropt"
1001 "*) ;;
1002 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1003 ac_unrecognized_sep=', ';;
1004 esac
1005 eval enable_$ac_useropt=no ;;
1007 -docdir | --docdir | --docdi | --doc | --do)
1008 ac_prev=docdir ;;
1009 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1010 docdir=$ac_optarg ;;
1012 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1013 ac_prev=dvidir ;;
1014 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1015 dvidir=$ac_optarg ;;
1017 -enable-* | --enable-*)
1018 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1019 # Reject names that are not valid shell variable names.
1020 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1021 as_fn_error $? "invalid feature name: $ac_useropt"
1022 ac_useropt_orig=$ac_useropt
1023 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1024 case $ac_user_opts in
1026 "enable_$ac_useropt"
1027 "*) ;;
1028 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1029 ac_unrecognized_sep=', ';;
1030 esac
1031 eval enable_$ac_useropt=\$ac_optarg ;;
1033 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1034 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1035 | --exec | --exe | --ex)
1036 ac_prev=exec_prefix ;;
1037 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1038 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1039 | --exec=* | --exe=* | --ex=*)
1040 exec_prefix=$ac_optarg ;;
1042 -gas | --gas | --ga | --g)
1043 # Obsolete; use --with-gas.
1044 with_gas=yes ;;
1046 -help | --help | --hel | --he | -h)
1047 ac_init_help=long ;;
1048 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1049 ac_init_help=recursive ;;
1050 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1051 ac_init_help=short ;;
1053 -host | --host | --hos | --ho)
1054 ac_prev=host_alias ;;
1055 -host=* | --host=* | --hos=* | --ho=*)
1056 host_alias=$ac_optarg ;;
1058 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1059 ac_prev=htmldir ;;
1060 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1061 | --ht=*)
1062 htmldir=$ac_optarg ;;
1064 -includedir | --includedir | --includedi | --included | --include \
1065 | --includ | --inclu | --incl | --inc)
1066 ac_prev=includedir ;;
1067 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1068 | --includ=* | --inclu=* | --incl=* | --inc=*)
1069 includedir=$ac_optarg ;;
1071 -infodir | --infodir | --infodi | --infod | --info | --inf)
1072 ac_prev=infodir ;;
1073 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1074 infodir=$ac_optarg ;;
1076 -libdir | --libdir | --libdi | --libd)
1077 ac_prev=libdir ;;
1078 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1079 libdir=$ac_optarg ;;
1081 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1082 | --libexe | --libex | --libe)
1083 ac_prev=libexecdir ;;
1084 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1085 | --libexe=* | --libex=* | --libe=*)
1086 libexecdir=$ac_optarg ;;
1088 -localedir | --localedir | --localedi | --localed | --locale)
1089 ac_prev=localedir ;;
1090 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1091 localedir=$ac_optarg ;;
1093 -localstatedir | --localstatedir | --localstatedi | --localstated \
1094 | --localstate | --localstat | --localsta | --localst | --locals)
1095 ac_prev=localstatedir ;;
1096 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1097 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1098 localstatedir=$ac_optarg ;;
1100 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1101 ac_prev=mandir ;;
1102 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1103 mandir=$ac_optarg ;;
1105 -nfp | --nfp | --nf)
1106 # Obsolete; use --without-fp.
1107 with_fp=no ;;
1109 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1110 | --no-cr | --no-c | -n)
1111 no_create=yes ;;
1113 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1114 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1115 no_recursion=yes ;;
1117 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1118 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1119 | --oldin | --oldi | --old | --ol | --o)
1120 ac_prev=oldincludedir ;;
1121 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1122 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1123 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1124 oldincludedir=$ac_optarg ;;
1126 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1127 ac_prev=prefix ;;
1128 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1129 prefix=$ac_optarg ;;
1131 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1132 | --program-pre | --program-pr | --program-p)
1133 ac_prev=program_prefix ;;
1134 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1135 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1136 program_prefix=$ac_optarg ;;
1138 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1139 | --program-suf | --program-su | --program-s)
1140 ac_prev=program_suffix ;;
1141 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1142 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1143 program_suffix=$ac_optarg ;;
1145 -program-transform-name | --program-transform-name \
1146 | --program-transform-nam | --program-transform-na \
1147 | --program-transform-n | --program-transform- \
1148 | --program-transform | --program-transfor \
1149 | --program-transfo | --program-transf \
1150 | --program-trans | --program-tran \
1151 | --progr-tra | --program-tr | --program-t)
1152 ac_prev=program_transform_name ;;
1153 -program-transform-name=* | --program-transform-name=* \
1154 | --program-transform-nam=* | --program-transform-na=* \
1155 | --program-transform-n=* | --program-transform-=* \
1156 | --program-transform=* | --program-transfor=* \
1157 | --program-transfo=* | --program-transf=* \
1158 | --program-trans=* | --program-tran=* \
1159 | --progr-tra=* | --program-tr=* | --program-t=*)
1160 program_transform_name=$ac_optarg ;;
1162 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1163 ac_prev=pdfdir ;;
1164 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1165 pdfdir=$ac_optarg ;;
1167 -psdir | --psdir | --psdi | --psd | --ps)
1168 ac_prev=psdir ;;
1169 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1170 psdir=$ac_optarg ;;
1172 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1173 | -silent | --silent | --silen | --sile | --sil)
1174 silent=yes ;;
1176 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1177 ac_prev=sbindir ;;
1178 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1179 | --sbi=* | --sb=*)
1180 sbindir=$ac_optarg ;;
1182 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1183 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1184 | --sharedst | --shareds | --shared | --share | --shar \
1185 | --sha | --sh)
1186 ac_prev=sharedstatedir ;;
1187 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1188 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1189 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1190 | --sha=* | --sh=*)
1191 sharedstatedir=$ac_optarg ;;
1193 -site | --site | --sit)
1194 ac_prev=site ;;
1195 -site=* | --site=* | --sit=*)
1196 site=$ac_optarg ;;
1198 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1199 ac_prev=srcdir ;;
1200 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1201 srcdir=$ac_optarg ;;
1203 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1204 | --syscon | --sysco | --sysc | --sys | --sy)
1205 ac_prev=sysconfdir ;;
1206 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1207 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1208 sysconfdir=$ac_optarg ;;
1210 -target | --target | --targe | --targ | --tar | --ta | --t)
1211 ac_prev=target_alias ;;
1212 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1213 target_alias=$ac_optarg ;;
1215 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1216 verbose=yes ;;
1218 -version | --version | --versio | --versi | --vers | -V)
1219 ac_init_version=: ;;
1221 -with-* | --with-*)
1222 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1223 # Reject names that are not valid shell variable names.
1224 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1225 as_fn_error $? "invalid package name: $ac_useropt"
1226 ac_useropt_orig=$ac_useropt
1227 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1228 case $ac_user_opts in
1230 "with_$ac_useropt"
1231 "*) ;;
1232 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1233 ac_unrecognized_sep=', ';;
1234 esac
1235 eval with_$ac_useropt=\$ac_optarg ;;
1237 -without-* | --without-*)
1238 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1239 # Reject names that are not valid shell variable names.
1240 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1241 as_fn_error $? "invalid package name: $ac_useropt"
1242 ac_useropt_orig=$ac_useropt
1243 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1244 case $ac_user_opts in
1246 "with_$ac_useropt"
1247 "*) ;;
1248 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1249 ac_unrecognized_sep=', ';;
1250 esac
1251 eval with_$ac_useropt=no ;;
1253 --x)
1254 # Obsolete; use --with-x.
1255 with_x=yes ;;
1257 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1258 | --x-incl | --x-inc | --x-in | --x-i)
1259 ac_prev=x_includes ;;
1260 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1261 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1262 x_includes=$ac_optarg ;;
1264 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1265 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1266 ac_prev=x_libraries ;;
1267 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1268 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1269 x_libraries=$ac_optarg ;;
1271 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1272 Try \`$0 --help' for more information"
1275 *=*)
1276 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1277 # Reject names that are not valid shell variable names.
1278 case $ac_envvar in #(
1279 '' | [0-9]* | *[!_$as_cr_alnum]* )
1280 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1281 esac
1282 eval $ac_envvar=\$ac_optarg
1283 export $ac_envvar ;;
1286 # FIXME: should be removed in autoconf 3.0.
1287 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1288 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1289 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1290 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1293 esac
1294 done
1296 if test -n "$ac_prev"; then
1297 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1298 as_fn_error $? "missing argument to $ac_option"
1301 if test -n "$ac_unrecognized_opts"; then
1302 case $enable_option_checking in
1303 no) ;;
1304 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1305 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1306 esac
1309 # Check all directory arguments for consistency.
1310 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1311 datadir sysconfdir sharedstatedir localstatedir includedir \
1312 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1313 libdir localedir mandir
1315 eval ac_val=\$$ac_var
1316 # Remove trailing slashes.
1317 case $ac_val in
1318 */ )
1319 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1320 eval $ac_var=\$ac_val;;
1321 esac
1322 # Be sure to have absolute directory names.
1323 case $ac_val in
1324 [\\/$]* | ?:[\\/]* ) continue;;
1325 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1326 esac
1327 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1328 done
1330 # There might be people who depend on the old broken behavior: `$host'
1331 # used to hold the argument of --host etc.
1332 # FIXME: To remove some day.
1333 build=$build_alias
1334 host=$host_alias
1335 target=$target_alias
1337 # FIXME: To remove some day.
1338 if test "x$host_alias" != x; then
1339 if test "x$build_alias" = x; then
1340 cross_compiling=maybe
1341 elif test "x$build_alias" != "x$host_alias"; then
1342 cross_compiling=yes
1346 ac_tool_prefix=
1347 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1349 test "$silent" = yes && exec 6>/dev/null
1352 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1353 ac_ls_di=`ls -di .` &&
1354 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1355 as_fn_error $? "working directory cannot be determined"
1356 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1357 as_fn_error $? "pwd does not report name of working directory"
1360 # Find the source files, if location was not specified.
1361 if test -z "$srcdir"; then
1362 ac_srcdir_defaulted=yes
1363 # Try the directory containing this script, then the parent directory.
1364 ac_confdir=`$as_dirname -- "$as_myself" ||
1365 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1366 X"$as_myself" : 'X\(//\)[^/]' \| \
1367 X"$as_myself" : 'X\(//\)$' \| \
1368 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1369 $as_echo X"$as_myself" |
1370 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1371 s//\1/
1374 /^X\(\/\/\)[^/].*/{
1375 s//\1/
1378 /^X\(\/\/\)$/{
1379 s//\1/
1382 /^X\(\/\).*/{
1383 s//\1/
1386 s/.*/./; q'`
1387 srcdir=$ac_confdir
1388 if test ! -r "$srcdir/$ac_unique_file"; then
1389 srcdir=..
1391 else
1392 ac_srcdir_defaulted=no
1394 if test ! -r "$srcdir/$ac_unique_file"; then
1395 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1396 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1398 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1399 ac_abs_confdir=`(
1400 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1401 pwd)`
1402 # When building in place, set srcdir=.
1403 if test "$ac_abs_confdir" = "$ac_pwd"; then
1404 srcdir=.
1406 # Remove unnecessary trailing slashes from srcdir.
1407 # Double slashes in file names in object file debugging info
1408 # mess up M-x gdb in Emacs.
1409 case $srcdir in
1410 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1411 esac
1412 for ac_var in $ac_precious_vars; do
1413 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1414 eval ac_env_${ac_var}_value=\$${ac_var}
1415 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1416 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1417 done
1420 # Report the --help message.
1422 if test "$ac_init_help" = "long"; then
1423 # Omit some internal or obsolete options to make the list less imposing.
1424 # This message is too long to be a string in the A/UX 3.1 sh.
1425 cat <<_ACEOF
1426 \`configure' configures ld 2.40.50 to adapt to many kinds of systems.
1428 Usage: $0 [OPTION]... [VAR=VALUE]...
1430 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1431 VAR=VALUE. See below for descriptions of some of the useful variables.
1433 Defaults for the options are specified in brackets.
1435 Configuration:
1436 -h, --help display this help and exit
1437 --help=short display options specific to this package
1438 --help=recursive display the short help of all the included packages
1439 -V, --version display version information and exit
1440 -q, --quiet, --silent do not print \`checking ...' messages
1441 --cache-file=FILE cache test results in FILE [disabled]
1442 -C, --config-cache alias for \`--cache-file=config.cache'
1443 -n, --no-create do not create output files
1444 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1446 Installation directories:
1447 --prefix=PREFIX install architecture-independent files in PREFIX
1448 [$ac_default_prefix]
1449 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1450 [PREFIX]
1452 By default, \`make install' will install all the files in
1453 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1454 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1455 for instance \`--prefix=\$HOME'.
1457 For better control, use the options below.
1459 Fine tuning of the installation directories:
1460 --bindir=DIR user executables [EPREFIX/bin]
1461 --sbindir=DIR system admin executables [EPREFIX/sbin]
1462 --libexecdir=DIR program executables [EPREFIX/libexec]
1463 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1464 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1465 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1466 --libdir=DIR object code libraries [EPREFIX/lib]
1467 --includedir=DIR C header files [PREFIX/include]
1468 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1469 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1470 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1471 --infodir=DIR info documentation [DATAROOTDIR/info]
1472 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1473 --mandir=DIR man documentation [DATAROOTDIR/man]
1474 --docdir=DIR documentation root [DATAROOTDIR/doc/ld]
1475 --htmldir=DIR html documentation [DOCDIR]
1476 --dvidir=DIR dvi documentation [DOCDIR]
1477 --pdfdir=DIR pdf documentation [DOCDIR]
1478 --psdir=DIR ps documentation [DOCDIR]
1479 _ACEOF
1481 cat <<\_ACEOF
1483 Program names:
1484 --program-prefix=PREFIX prepend PREFIX to installed program names
1485 --program-suffix=SUFFIX append SUFFIX to installed program names
1486 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1488 System types:
1489 --build=BUILD configure for building on BUILD [guessed]
1490 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1491 --target=TARGET configure for building compilers for TARGET [HOST]
1492 _ACEOF
1495 if test -n "$ac_init_help"; then
1496 case $ac_init_help in
1497 short | recursive ) echo "Configuration of ld 2.40.50:";;
1498 esac
1499 cat <<\_ACEOF
1501 Optional Features:
1502 --disable-option-checking ignore unrecognized --enable/--with options
1503 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1504 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1505 --enable-silent-rules less verbose build output (undo: "make V=1")
1506 --disable-silent-rules verbose build output (undo: "make V=0")
1507 --enable-maintainer-mode
1508 enable make rules and dependencies not useful (and
1509 sometimes confusing) to the casual installer
1510 --enable-dependency-tracking
1511 do not reject slow dependency extractors
1512 --disable-dependency-tracking
1513 speeds up one-time build
1514 --enable-shared[=PKGS] build shared libraries [default=yes]
1515 --enable-static[=PKGS] build static libraries [default=yes]
1516 --enable-fast-install[=PKGS]
1517 optimize for fast installation [default=yes]
1518 --disable-libtool-lock avoid locking (might break parallel builds)
1519 --enable-plugins Enable support for plugins
1520 --disable-largefile omit support for large files
1521 --enable-checking enable run-time checks
1522 --enable-targets alternative target configurations
1523 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
1524 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1525 --enable-got=<type> GOT handling scheme (target, single, negative,
1526 multigot)
1527 --enable-compressed-debug-sections={all,ld,none}
1528 compress debug sections by default]
1529 --enable-default-compressed-debug-sections-algorithm={zlib,zstd}
1530 Default compression algorithm for
1531 --enable-compressed-debug-sections.
1532 --enable-new-dtags set DT_RUNPATH instead of DT_RPATH by default]
1533 --enable-relro enable -z relro in ELF linker by default
1534 --enable-textrel-check=[yes|no|warning|error]
1535 enable DT_TEXTREL check in ELF linker
1536 --enable-separate-code enable -z separate-code in ELF linker by default
1537 --enable-warn-execstack enable warnings when creating an executable stack
1538 --enable-warn-rwx-segments
1539 enable warnings when creating segements with RWX
1540 permissions
1541 --enable-default-execstack
1542 create an executable stack if an input file is
1543 missing a .note.GNU-stack section
1544 --enable-error-handling-script
1545 enable/disable support for the
1546 --error-handling-script option
1547 --enable-default-hash-style={sysv,gnu,both}
1548 use this default hash style
1549 --disable-initfini-array do not use .init_array/.fini_array sections
1550 --enable-libctf Handle .ctf type-info sections [default=yes]
1551 --enable-jansson enable jansson [default=no]
1552 --enable-werror treat compile warnings as errors
1553 --enable-build-warnings enable build-time compiler warnings
1554 --disable-nls do not use Native Language Support
1556 Optional Packages:
1557 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1558 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1559 --with-pic try to use only PIC/non-PIC objects [default=use
1560 both]
1561 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1562 --with-lib-path=dir1:dir2... set default LIB_PATH
1563 --with-sysroot=DIR Search for usr/lib et al within DIR.
1564 --with-system-zlib use installed libz
1565 --with-zstd support zstd compressed debug sections
1566 (default=auto)
1568 Some influential environment variables:
1569 CC C compiler command
1570 CFLAGS C compiler flags
1571 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1572 nonstandard directory <lib dir>
1573 LIBS libraries to pass to the linker, e.g. -l<library>
1574 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1575 you have headers in a nonstandard directory <include dir>
1576 CXX C++ compiler command
1577 CXXFLAGS C++ compiler flags
1578 CPP C preprocessor
1579 PKG_CONFIG path to pkg-config utility
1580 PKG_CONFIG_PATH
1581 directories to add to pkg-config's search path
1582 PKG_CONFIG_LIBDIR
1583 path overriding pkg-config's built-in search path
1584 CXXCPP C++ preprocessor
1585 JANSSON_CFLAGS
1586 C compiler flags for JANSSON, overriding pkg-config
1587 JANSSON_LIBS
1588 linker flags for JANSSON, overriding pkg-config
1589 YACC The `Yet Another Compiler Compiler' implementation to use.
1590 Defaults to the first program found out of: `bison -y', `byacc',
1591 `yacc'.
1592 YFLAGS The list of arguments that will be passed by default to $YACC.
1593 This script will default YFLAGS to the empty string to avoid a
1594 default value of `-d' given by some make applications.
1595 ZSTD_CFLAGS C compiler flags for ZSTD, overriding pkg-config
1596 ZSTD_LIBS linker flags for ZSTD, overriding pkg-config
1598 Use these variables to override the choices made by `configure' or to help
1599 it to find libraries and programs with nonstandard names/locations.
1601 Report bugs to the package provider.
1602 _ACEOF
1603 ac_status=$?
1606 if test "$ac_init_help" = "recursive"; then
1607 # If there are subdirs, report their specific --help.
1608 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1609 test -d "$ac_dir" ||
1610 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1611 continue
1612 ac_builddir=.
1614 case "$ac_dir" in
1615 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1617 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1618 # A ".." for each directory in $ac_dir_suffix.
1619 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1620 case $ac_top_builddir_sub in
1621 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1622 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1623 esac ;;
1624 esac
1625 ac_abs_top_builddir=$ac_pwd
1626 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1627 # for backward compatibility:
1628 ac_top_builddir=$ac_top_build_prefix
1630 case $srcdir in
1631 .) # We are building in place.
1632 ac_srcdir=.
1633 ac_top_srcdir=$ac_top_builddir_sub
1634 ac_abs_top_srcdir=$ac_pwd ;;
1635 [\\/]* | ?:[\\/]* ) # Absolute name.
1636 ac_srcdir=$srcdir$ac_dir_suffix;
1637 ac_top_srcdir=$srcdir
1638 ac_abs_top_srcdir=$srcdir ;;
1639 *) # Relative name.
1640 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1641 ac_top_srcdir=$ac_top_build_prefix$srcdir
1642 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1643 esac
1644 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1646 cd "$ac_dir" || { ac_status=$?; continue; }
1647 # Check for guested configure.
1648 if test -f "$ac_srcdir/configure.gnu"; then
1649 echo &&
1650 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1651 elif test -f "$ac_srcdir/configure"; then
1652 echo &&
1653 $SHELL "$ac_srcdir/configure" --help=recursive
1654 else
1655 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1656 fi || ac_status=$?
1657 cd "$ac_pwd" || { ac_status=$?; break; }
1658 done
1661 test -n "$ac_init_help" && exit $ac_status
1662 if $ac_init_version; then
1663 cat <<\_ACEOF
1664 ld configure 2.40.50
1665 generated by GNU Autoconf 2.69
1667 Copyright (C) 2012 Free Software Foundation, Inc.
1668 This configure script is free software; the Free Software Foundation
1669 gives unlimited permission to copy, distribute and modify it.
1670 _ACEOF
1671 exit
1674 ## ------------------------ ##
1675 ## Autoconf initialization. ##
1676 ## ------------------------ ##
1678 # ac_fn_c_try_compile LINENO
1679 # --------------------------
1680 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1681 ac_fn_c_try_compile ()
1683 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1684 rm -f conftest.$ac_objext
1685 if { { ac_try="$ac_compile"
1686 case "(($ac_try" in
1687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1688 *) ac_try_echo=$ac_try;;
1689 esac
1690 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1691 $as_echo "$ac_try_echo"; } >&5
1692 (eval "$ac_compile") 2>conftest.err
1693 ac_status=$?
1694 if test -s conftest.err; then
1695 grep -v '^ *+' conftest.err >conftest.er1
1696 cat conftest.er1 >&5
1697 mv -f conftest.er1 conftest.err
1699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1700 test $ac_status = 0; } && {
1701 test -z "$ac_c_werror_flag" ||
1702 test ! -s conftest.err
1703 } && test -s conftest.$ac_objext; then :
1704 ac_retval=0
1705 else
1706 $as_echo "$as_me: failed program was:" >&5
1707 sed 's/^/| /' conftest.$ac_ext >&5
1709 ac_retval=1
1711 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1712 as_fn_set_status $ac_retval
1714 } # ac_fn_c_try_compile
1716 # ac_fn_cxx_try_compile LINENO
1717 # ----------------------------
1718 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1719 ac_fn_cxx_try_compile ()
1721 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1722 rm -f conftest.$ac_objext
1723 if { { ac_try="$ac_compile"
1724 case "(($ac_try" in
1725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1726 *) ac_try_echo=$ac_try;;
1727 esac
1728 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1729 $as_echo "$ac_try_echo"; } >&5
1730 (eval "$ac_compile") 2>conftest.err
1731 ac_status=$?
1732 if test -s conftest.err; then
1733 grep -v '^ *+' conftest.err >conftest.er1
1734 cat conftest.er1 >&5
1735 mv -f conftest.er1 conftest.err
1737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1738 test $ac_status = 0; } && {
1739 test -z "$ac_cxx_werror_flag" ||
1740 test ! -s conftest.err
1741 } && test -s conftest.$ac_objext; then :
1742 ac_retval=0
1743 else
1744 $as_echo "$as_me: failed program was:" >&5
1745 sed 's/^/| /' conftest.$ac_ext >&5
1747 ac_retval=1
1749 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1750 as_fn_set_status $ac_retval
1752 } # ac_fn_cxx_try_compile
1754 # ac_fn_c_try_cpp LINENO
1755 # ----------------------
1756 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1757 ac_fn_c_try_cpp ()
1759 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1760 if { { ac_try="$ac_cpp conftest.$ac_ext"
1761 case "(($ac_try" in
1762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1763 *) ac_try_echo=$ac_try;;
1764 esac
1765 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1766 $as_echo "$ac_try_echo"; } >&5
1767 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1768 ac_status=$?
1769 if test -s conftest.err; then
1770 grep -v '^ *+' conftest.err >conftest.er1
1771 cat conftest.er1 >&5
1772 mv -f conftest.er1 conftest.err
1774 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1775 test $ac_status = 0; } > conftest.i && {
1776 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1777 test ! -s conftest.err
1778 }; then :
1779 ac_retval=0
1780 else
1781 $as_echo "$as_me: failed program was:" >&5
1782 sed 's/^/| /' conftest.$ac_ext >&5
1784 ac_retval=1
1786 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1787 as_fn_set_status $ac_retval
1789 } # ac_fn_c_try_cpp
1791 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1792 # -------------------------------------------------------
1793 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1794 # the include files in INCLUDES and setting the cache variable VAR
1795 # accordingly.
1796 ac_fn_c_check_header_mongrel ()
1798 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1799 if eval \${$3+:} false; then :
1800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1801 $as_echo_n "checking for $2... " >&6; }
1802 if eval \${$3+:} false; then :
1803 $as_echo_n "(cached) " >&6
1805 eval ac_res=\$$3
1806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1807 $as_echo "$ac_res" >&6; }
1808 else
1809 # Is the header compilable?
1810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1811 $as_echo_n "checking $2 usability... " >&6; }
1812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1813 /* end confdefs.h. */
1815 #include <$2>
1816 _ACEOF
1817 if ac_fn_c_try_compile "$LINENO"; then :
1818 ac_header_compiler=yes
1819 else
1820 ac_header_compiler=no
1822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1824 $as_echo "$ac_header_compiler" >&6; }
1826 # Is the header present?
1827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1828 $as_echo_n "checking $2 presence... " >&6; }
1829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1830 /* end confdefs.h. */
1831 #include <$2>
1832 _ACEOF
1833 if ac_fn_c_try_cpp "$LINENO"; then :
1834 ac_header_preproc=yes
1835 else
1836 ac_header_preproc=no
1838 rm -f conftest.err conftest.i conftest.$ac_ext
1839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1840 $as_echo "$ac_header_preproc" >&6; }
1842 # So? What about this header?
1843 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1844 yes:no: )
1845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1846 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1847 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1848 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1850 no:yes:* )
1851 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1852 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1853 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1854 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1856 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1857 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1858 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1859 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1860 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1862 esac
1863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1864 $as_echo_n "checking for $2... " >&6; }
1865 if eval \${$3+:} false; then :
1866 $as_echo_n "(cached) " >&6
1867 else
1868 eval "$3=\$ac_header_compiler"
1870 eval ac_res=\$$3
1871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1872 $as_echo "$ac_res" >&6; }
1874 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1876 } # ac_fn_c_check_header_mongrel
1878 # ac_fn_c_try_run LINENO
1879 # ----------------------
1880 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1881 # that executables *can* be run.
1882 ac_fn_c_try_run ()
1884 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1885 if { { ac_try="$ac_link"
1886 case "(($ac_try" in
1887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1888 *) ac_try_echo=$ac_try;;
1889 esac
1890 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1891 $as_echo "$ac_try_echo"; } >&5
1892 (eval "$ac_link") 2>&5
1893 ac_status=$?
1894 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1895 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1896 { { case "(($ac_try" in
1897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1898 *) ac_try_echo=$ac_try;;
1899 esac
1900 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1901 $as_echo "$ac_try_echo"; } >&5
1902 (eval "$ac_try") 2>&5
1903 ac_status=$?
1904 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1905 test $ac_status = 0; }; }; then :
1906 ac_retval=0
1907 else
1908 $as_echo "$as_me: program exited with status $ac_status" >&5
1909 $as_echo "$as_me: failed program was:" >&5
1910 sed 's/^/| /' conftest.$ac_ext >&5
1912 ac_retval=$ac_status
1914 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1915 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1916 as_fn_set_status $ac_retval
1918 } # ac_fn_c_try_run
1920 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1921 # -------------------------------------------------------
1922 # Tests whether HEADER exists and can be compiled using the include files in
1923 # INCLUDES, setting the cache variable VAR accordingly.
1924 ac_fn_c_check_header_compile ()
1926 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1928 $as_echo_n "checking for $2... " >&6; }
1929 if eval \${$3+:} false; then :
1930 $as_echo_n "(cached) " >&6
1931 else
1932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1933 /* end confdefs.h. */
1935 #include <$2>
1936 _ACEOF
1937 if ac_fn_c_try_compile "$LINENO"; then :
1938 eval "$3=yes"
1939 else
1940 eval "$3=no"
1942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1944 eval ac_res=\$$3
1945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1946 $as_echo "$ac_res" >&6; }
1947 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1949 } # ac_fn_c_check_header_compile
1951 # ac_fn_c_try_link LINENO
1952 # -----------------------
1953 # Try to link conftest.$ac_ext, and return whether this succeeded.
1954 ac_fn_c_try_link ()
1956 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1957 rm -f conftest.$ac_objext conftest$ac_exeext
1958 if { { ac_try="$ac_link"
1959 case "(($ac_try" in
1960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1961 *) ac_try_echo=$ac_try;;
1962 esac
1963 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1964 $as_echo "$ac_try_echo"; } >&5
1965 (eval "$ac_link") 2>conftest.err
1966 ac_status=$?
1967 if test -s conftest.err; then
1968 grep -v '^ *+' conftest.err >conftest.er1
1969 cat conftest.er1 >&5
1970 mv -f conftest.er1 conftest.err
1972 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1973 test $ac_status = 0; } && {
1974 test -z "$ac_c_werror_flag" ||
1975 test ! -s conftest.err
1976 } && test -s conftest$ac_exeext && {
1977 test "$cross_compiling" = yes ||
1978 test -x conftest$ac_exeext
1979 }; then :
1980 ac_retval=0
1981 else
1982 $as_echo "$as_me: failed program was:" >&5
1983 sed 's/^/| /' conftest.$ac_ext >&5
1985 ac_retval=1
1987 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1988 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1989 # interfere with the next link command; also delete a directory that is
1990 # left behind by Apple's compiler. We do this before executing the actions.
1991 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1992 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1993 as_fn_set_status $ac_retval
1995 } # ac_fn_c_try_link
1997 # ac_fn_c_check_func LINENO FUNC VAR
1998 # ----------------------------------
1999 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2000 ac_fn_c_check_func ()
2002 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2004 $as_echo_n "checking for $2... " >&6; }
2005 if eval \${$3+:} false; then :
2006 $as_echo_n "(cached) " >&6
2007 else
2008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2009 /* end confdefs.h. */
2010 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2011 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2012 #define $2 innocuous_$2
2014 /* System header to define __stub macros and hopefully few prototypes,
2015 which can conflict with char $2 (); below.
2016 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2017 <limits.h> exists even on freestanding compilers. */
2019 #ifdef __STDC__
2020 # include <limits.h>
2021 #else
2022 # include <assert.h>
2023 #endif
2025 #undef $2
2027 /* Override any GCC internal prototype to avoid an error.
2028 Use char because int might match the return type of a GCC
2029 builtin and then its argument prototype would still apply. */
2030 #ifdef __cplusplus
2031 extern "C"
2032 #endif
2033 char $2 ();
2034 /* The GNU C library defines this for functions which it implements
2035 to always fail with ENOSYS. Some functions are actually named
2036 something starting with __ and the normal name is an alias. */
2037 #if defined __stub_$2 || defined __stub___$2
2038 choke me
2039 #endif
2042 main ()
2044 return $2 ();
2046 return 0;
2048 _ACEOF
2049 if ac_fn_c_try_link "$LINENO"; then :
2050 eval "$3=yes"
2051 else
2052 eval "$3=no"
2054 rm -f core conftest.err conftest.$ac_objext \
2055 conftest$ac_exeext conftest.$ac_ext
2057 eval ac_res=\$$3
2058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2059 $as_echo "$ac_res" >&6; }
2060 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2062 } # ac_fn_c_check_func
2064 # ac_fn_cxx_try_cpp LINENO
2065 # ------------------------
2066 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2067 ac_fn_cxx_try_cpp ()
2069 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2070 if { { ac_try="$ac_cpp conftest.$ac_ext"
2071 case "(($ac_try" in
2072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2073 *) ac_try_echo=$ac_try;;
2074 esac
2075 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2076 $as_echo "$ac_try_echo"; } >&5
2077 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2078 ac_status=$?
2079 if test -s conftest.err; then
2080 grep -v '^ *+' conftest.err >conftest.er1
2081 cat conftest.er1 >&5
2082 mv -f conftest.er1 conftest.err
2084 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2085 test $ac_status = 0; } > conftest.i && {
2086 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2087 test ! -s conftest.err
2088 }; then :
2089 ac_retval=0
2090 else
2091 $as_echo "$as_me: failed program was:" >&5
2092 sed 's/^/| /' conftest.$ac_ext >&5
2094 ac_retval=1
2096 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2097 as_fn_set_status $ac_retval
2099 } # ac_fn_cxx_try_cpp
2101 # ac_fn_cxx_try_link LINENO
2102 # -------------------------
2103 # Try to link conftest.$ac_ext, and return whether this succeeded.
2104 ac_fn_cxx_try_link ()
2106 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2107 rm -f conftest.$ac_objext conftest$ac_exeext
2108 if { { ac_try="$ac_link"
2109 case "(($ac_try" in
2110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2111 *) ac_try_echo=$ac_try;;
2112 esac
2113 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2114 $as_echo "$ac_try_echo"; } >&5
2115 (eval "$ac_link") 2>conftest.err
2116 ac_status=$?
2117 if test -s conftest.err; then
2118 grep -v '^ *+' conftest.err >conftest.er1
2119 cat conftest.er1 >&5
2120 mv -f conftest.er1 conftest.err
2122 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2123 test $ac_status = 0; } && {
2124 test -z "$ac_cxx_werror_flag" ||
2125 test ! -s conftest.err
2126 } && test -s conftest$ac_exeext && {
2127 test "$cross_compiling" = yes ||
2128 test -x conftest$ac_exeext
2129 }; then :
2130 ac_retval=0
2131 else
2132 $as_echo "$as_me: failed program was:" >&5
2133 sed 's/^/| /' conftest.$ac_ext >&5
2135 ac_retval=1
2137 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2138 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2139 # interfere with the next link command; also delete a directory that is
2140 # left behind by Apple's compiler. We do this before executing the actions.
2141 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2142 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2143 as_fn_set_status $ac_retval
2145 } # ac_fn_cxx_try_link
2147 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2148 # --------------------------------------------
2149 # Tries to find the compile-time value of EXPR in a program that includes
2150 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2151 # computed
2152 ac_fn_c_compute_int ()
2154 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2155 if test "$cross_compiling" = yes; then
2156 # Depending upon the size, compute the lo and hi bounds.
2157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2158 /* end confdefs.h. */
2161 main ()
2163 static int test_array [1 - 2 * !(($2) >= 0)];
2164 test_array [0] = 0;
2165 return test_array [0];
2168 return 0;
2170 _ACEOF
2171 if ac_fn_c_try_compile "$LINENO"; then :
2172 ac_lo=0 ac_mid=0
2173 while :; do
2174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2175 /* end confdefs.h. */
2178 main ()
2180 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2181 test_array [0] = 0;
2182 return test_array [0];
2185 return 0;
2187 _ACEOF
2188 if ac_fn_c_try_compile "$LINENO"; then :
2189 ac_hi=$ac_mid; break
2190 else
2191 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2192 if test $ac_lo -le $ac_mid; then
2193 ac_lo= ac_hi=
2194 break
2196 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2199 done
2200 else
2201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2202 /* end confdefs.h. */
2205 main ()
2207 static int test_array [1 - 2 * !(($2) < 0)];
2208 test_array [0] = 0;
2209 return test_array [0];
2212 return 0;
2214 _ACEOF
2215 if ac_fn_c_try_compile "$LINENO"; then :
2216 ac_hi=-1 ac_mid=-1
2217 while :; do
2218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2219 /* end confdefs.h. */
2222 main ()
2224 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2225 test_array [0] = 0;
2226 return test_array [0];
2229 return 0;
2231 _ACEOF
2232 if ac_fn_c_try_compile "$LINENO"; then :
2233 ac_lo=$ac_mid; break
2234 else
2235 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2236 if test $ac_mid -le $ac_hi; then
2237 ac_lo= ac_hi=
2238 break
2240 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2243 done
2244 else
2245 ac_lo= ac_hi=
2247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2250 # Binary search between lo and hi bounds.
2251 while test "x$ac_lo" != "x$ac_hi"; do
2252 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2254 /* end confdefs.h. */
2257 main ()
2259 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2260 test_array [0] = 0;
2261 return test_array [0];
2264 return 0;
2266 _ACEOF
2267 if ac_fn_c_try_compile "$LINENO"; then :
2268 ac_hi=$ac_mid
2269 else
2270 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2273 done
2274 case $ac_lo in #((
2275 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2276 '') ac_retval=1 ;;
2277 esac
2278 else
2279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2280 /* end confdefs.h. */
2282 static long int longval () { return $2; }
2283 static unsigned long int ulongval () { return $2; }
2284 #include <stdio.h>
2285 #include <stdlib.h>
2287 main ()
2290 FILE *f = fopen ("conftest.val", "w");
2291 if (! f)
2292 return 1;
2293 if (($2) < 0)
2295 long int i = longval ();
2296 if (i != ($2))
2297 return 1;
2298 fprintf (f, "%ld", i);
2300 else
2302 unsigned long int i = ulongval ();
2303 if (i != ($2))
2304 return 1;
2305 fprintf (f, "%lu", i);
2307 /* Do not output a trailing newline, as this causes \r\n confusion
2308 on some platforms. */
2309 return ferror (f) || fclose (f) != 0;
2312 return 0;
2314 _ACEOF
2315 if ac_fn_c_try_run "$LINENO"; then :
2316 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2317 else
2318 ac_retval=1
2320 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2321 conftest.$ac_objext conftest.beam conftest.$ac_ext
2322 rm -f conftest.val
2325 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2326 as_fn_set_status $ac_retval
2328 } # ac_fn_c_compute_int
2330 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2331 # ---------------------------------------------
2332 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2333 # accordingly.
2334 ac_fn_c_check_decl ()
2336 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2337 as_decl_name=`echo $2|sed 's/ *(.*//'`
2338 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2340 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2341 if eval \${$3+:} false; then :
2342 $as_echo_n "(cached) " >&6
2343 else
2344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2345 /* end confdefs.h. */
2348 main ()
2350 #ifndef $as_decl_name
2351 #ifdef __cplusplus
2352 (void) $as_decl_use;
2353 #else
2354 (void) $as_decl_name;
2355 #endif
2356 #endif
2359 return 0;
2361 _ACEOF
2362 if ac_fn_c_try_compile "$LINENO"; then :
2363 eval "$3=yes"
2364 else
2365 eval "$3=no"
2367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2369 eval ac_res=\$$3
2370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2371 $as_echo "$ac_res" >&6; }
2372 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2374 } # ac_fn_c_check_decl
2375 cat >config.log <<_ACEOF
2376 This file contains any messages produced by compilers while
2377 running configure, to aid debugging if configure makes a mistake.
2379 It was created by ld $as_me 2.40.50, which was
2380 generated by GNU Autoconf 2.69. Invocation command line was
2382 $ $0 $@
2384 _ACEOF
2385 exec 5>>config.log
2387 cat <<_ASUNAME
2388 ## --------- ##
2389 ## Platform. ##
2390 ## --------- ##
2392 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2393 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2394 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2395 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2396 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2398 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2399 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2401 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2402 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2403 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2404 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2405 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2406 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2407 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2409 _ASUNAME
2411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2412 for as_dir in $PATH
2414 IFS=$as_save_IFS
2415 test -z "$as_dir" && as_dir=.
2416 $as_echo "PATH: $as_dir"
2417 done
2418 IFS=$as_save_IFS
2420 } >&5
2422 cat >&5 <<_ACEOF
2425 ## ----------- ##
2426 ## Core tests. ##
2427 ## ----------- ##
2429 _ACEOF
2432 # Keep a trace of the command line.
2433 # Strip out --no-create and --no-recursion so they do not pile up.
2434 # Strip out --silent because we don't want to record it for future runs.
2435 # Also quote any args containing shell meta-characters.
2436 # Make two passes to allow for proper duplicate-argument suppression.
2437 ac_configure_args=
2438 ac_configure_args0=
2439 ac_configure_args1=
2440 ac_must_keep_next=false
2441 for ac_pass in 1 2
2443 for ac_arg
2445 case $ac_arg in
2446 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2447 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2448 | -silent | --silent | --silen | --sile | --sil)
2449 continue ;;
2450 *\'*)
2451 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2452 esac
2453 case $ac_pass in
2454 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2456 as_fn_append ac_configure_args1 " '$ac_arg'"
2457 if test $ac_must_keep_next = true; then
2458 ac_must_keep_next=false # Got value, back to normal.
2459 else
2460 case $ac_arg in
2461 *=* | --config-cache | -C | -disable-* | --disable-* \
2462 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2463 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2464 | -with-* | --with-* | -without-* | --without-* | --x)
2465 case "$ac_configure_args0 " in
2466 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2467 esac
2469 -* ) ac_must_keep_next=true ;;
2470 esac
2472 as_fn_append ac_configure_args " '$ac_arg'"
2474 esac
2475 done
2476 done
2477 { ac_configure_args0=; unset ac_configure_args0;}
2478 { ac_configure_args1=; unset ac_configure_args1;}
2480 # When interrupted or exit'd, cleanup temporary files, and complete
2481 # config.log. We remove comments because anyway the quotes in there
2482 # would cause problems or look ugly.
2483 # WARNING: Use '\'' to represent an apostrophe within the trap.
2484 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2485 trap 'exit_status=$?
2486 # Save into config.log some information that might help in debugging.
2488 echo
2490 $as_echo "## ---------------- ##
2491 ## Cache variables. ##
2492 ## ---------------- ##"
2493 echo
2494 # The following way of writing the cache mishandles newlines in values,
2496 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2497 eval ac_val=\$$ac_var
2498 case $ac_val in #(
2499 *${as_nl}*)
2500 case $ac_var in #(
2501 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2502 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2503 esac
2504 case $ac_var in #(
2505 _ | IFS | as_nl) ;; #(
2506 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2507 *) { eval $ac_var=; unset $ac_var;} ;;
2508 esac ;;
2509 esac
2510 done
2511 (set) 2>&1 |
2512 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2513 *${as_nl}ac_space=\ *)
2514 sed -n \
2515 "s/'\''/'\''\\\\'\'''\''/g;
2516 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2517 ;; #(
2519 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2521 esac |
2522 sort
2524 echo
2526 $as_echo "## ----------------- ##
2527 ## Output variables. ##
2528 ## ----------------- ##"
2529 echo
2530 for ac_var in $ac_subst_vars
2532 eval ac_val=\$$ac_var
2533 case $ac_val in
2534 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2535 esac
2536 $as_echo "$ac_var='\''$ac_val'\''"
2537 done | sort
2538 echo
2540 if test -n "$ac_subst_files"; then
2541 $as_echo "## ------------------- ##
2542 ## File substitutions. ##
2543 ## ------------------- ##"
2544 echo
2545 for ac_var in $ac_subst_files
2547 eval ac_val=\$$ac_var
2548 case $ac_val in
2549 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2550 esac
2551 $as_echo "$ac_var='\''$ac_val'\''"
2552 done | sort
2553 echo
2556 if test -s confdefs.h; then
2557 $as_echo "## ----------- ##
2558 ## confdefs.h. ##
2559 ## ----------- ##"
2560 echo
2561 cat confdefs.h
2562 echo
2564 test "$ac_signal" != 0 &&
2565 $as_echo "$as_me: caught signal $ac_signal"
2566 $as_echo "$as_me: exit $exit_status"
2567 } >&5
2568 rm -f core *.core core.conftest.* &&
2569 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2570 exit $exit_status
2572 for ac_signal in 1 2 13 15; do
2573 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2574 done
2575 ac_signal=0
2577 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2578 rm -f -r conftest* confdefs.h
2580 $as_echo "/* confdefs.h */" > confdefs.h
2582 # Predefined preprocessor variables.
2584 cat >>confdefs.h <<_ACEOF
2585 #define PACKAGE_NAME "$PACKAGE_NAME"
2586 _ACEOF
2588 cat >>confdefs.h <<_ACEOF
2589 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2590 _ACEOF
2592 cat >>confdefs.h <<_ACEOF
2593 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2594 _ACEOF
2596 cat >>confdefs.h <<_ACEOF
2597 #define PACKAGE_STRING "$PACKAGE_STRING"
2598 _ACEOF
2600 cat >>confdefs.h <<_ACEOF
2601 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2602 _ACEOF
2604 cat >>confdefs.h <<_ACEOF
2605 #define PACKAGE_URL "$PACKAGE_URL"
2606 _ACEOF
2609 # Let the site file select an alternate cache file if it wants to.
2610 # Prefer an explicitly selected file to automatically selected ones.
2611 ac_site_file1=NONE
2612 ac_site_file2=NONE
2613 if test -n "$CONFIG_SITE"; then
2614 # We do not want a PATH search for config.site.
2615 case $CONFIG_SITE in #((
2616 -*) ac_site_file1=./$CONFIG_SITE;;
2617 */*) ac_site_file1=$CONFIG_SITE;;
2618 *) ac_site_file1=./$CONFIG_SITE;;
2619 esac
2620 elif test "x$prefix" != xNONE; then
2621 ac_site_file1=$prefix/share/config.site
2622 ac_site_file2=$prefix/etc/config.site
2623 else
2624 ac_site_file1=$ac_default_prefix/share/config.site
2625 ac_site_file2=$ac_default_prefix/etc/config.site
2627 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2629 test "x$ac_site_file" = xNONE && continue
2630 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2631 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2632 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2633 sed 's/^/| /' "$ac_site_file" >&5
2634 . "$ac_site_file" \
2635 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2636 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2637 as_fn_error $? "failed to load site script $ac_site_file
2638 See \`config.log' for more details" "$LINENO" 5; }
2640 done
2642 if test -r "$cache_file"; then
2643 # Some versions of bash will fail to source /dev/null (special files
2644 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2645 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2647 $as_echo "$as_me: loading cache $cache_file" >&6;}
2648 case $cache_file in
2649 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2650 *) . "./$cache_file";;
2651 esac
2653 else
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2655 $as_echo "$as_me: creating cache $cache_file" >&6;}
2656 >$cache_file
2659 as_fn_append ac_header_list " stdlib.h"
2660 as_fn_append ac_header_list " unistd.h"
2661 as_fn_append ac_header_list " sys/param.h"
2662 # Check that the precious variables saved in the cache have kept the same
2663 # value.
2664 ac_cache_corrupted=false
2665 for ac_var in $ac_precious_vars; do
2666 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2667 eval ac_new_set=\$ac_env_${ac_var}_set
2668 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2669 eval ac_new_val=\$ac_env_${ac_var}_value
2670 case $ac_old_set,$ac_new_set in
2671 set,)
2672 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2673 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2674 ac_cache_corrupted=: ;;
2675 ,set)
2676 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2677 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2678 ac_cache_corrupted=: ;;
2679 ,);;
2681 if test "x$ac_old_val" != "x$ac_new_val"; then
2682 # differences in whitespace do not lead to failure.
2683 ac_old_val_w=`echo x $ac_old_val`
2684 ac_new_val_w=`echo x $ac_new_val`
2685 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2686 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2687 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2688 ac_cache_corrupted=:
2689 else
2690 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2691 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2692 eval $ac_var=\$ac_old_val
2694 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2695 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2696 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2697 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2698 fi;;
2699 esac
2700 # Pass precious variables to config.status.
2701 if test "$ac_new_set" = set; then
2702 case $ac_new_val in
2703 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2704 *) ac_arg=$ac_var=$ac_new_val ;;
2705 esac
2706 case " $ac_configure_args " in
2707 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2708 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2709 esac
2711 done
2712 if $ac_cache_corrupted; then
2713 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2714 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2715 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2716 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2717 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2719 ## -------------------- ##
2720 ## Main body of script. ##
2721 ## -------------------- ##
2723 ac_ext=c
2724 ac_cpp='$CPP $CPPFLAGS'
2725 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2726 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2727 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2735 ac_aux_dir=
2736 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2737 if test -f "$ac_dir/install-sh"; then
2738 ac_aux_dir=$ac_dir
2739 ac_install_sh="$ac_aux_dir/install-sh -c"
2740 break
2741 elif test -f "$ac_dir/install.sh"; then
2742 ac_aux_dir=$ac_dir
2743 ac_install_sh="$ac_aux_dir/install.sh -c"
2744 break
2745 elif test -f "$ac_dir/shtool"; then
2746 ac_aux_dir=$ac_dir
2747 ac_install_sh="$ac_aux_dir/shtool install -c"
2748 break
2750 done
2751 if test -z "$ac_aux_dir"; then
2752 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2755 # These three variables are undocumented and unsupported,
2756 # and are intended to be withdrawn in a future Autoconf release.
2757 # They can cause serious problems if a builder's source tree is in a directory
2758 # whose full name contains unusual characters.
2759 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2760 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2761 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2764 # Make sure we can run config.sub.
2765 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2766 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2769 $as_echo_n "checking build system type... " >&6; }
2770 if ${ac_cv_build+:} false; then :
2771 $as_echo_n "(cached) " >&6
2772 else
2773 ac_build_alias=$build_alias
2774 test "x$ac_build_alias" = x &&
2775 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2776 test "x$ac_build_alias" = x &&
2777 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2778 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2779 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2783 $as_echo "$ac_cv_build" >&6; }
2784 case $ac_cv_build in
2785 *-*-*) ;;
2786 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2787 esac
2788 build=$ac_cv_build
2789 ac_save_IFS=$IFS; IFS='-'
2790 set x $ac_cv_build
2791 shift
2792 build_cpu=$1
2793 build_vendor=$2
2794 shift; shift
2795 # Remember, the first character of IFS is used to create $*,
2796 # except with old shells:
2797 build_os=$*
2798 IFS=$ac_save_IFS
2799 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2803 $as_echo_n "checking host system type... " >&6; }
2804 if ${ac_cv_host+:} false; then :
2805 $as_echo_n "(cached) " >&6
2806 else
2807 if test "x$host_alias" = x; then
2808 ac_cv_host=$ac_cv_build
2809 else
2810 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2811 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2816 $as_echo "$ac_cv_host" >&6; }
2817 case $ac_cv_host in
2818 *-*-*) ;;
2819 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2820 esac
2821 host=$ac_cv_host
2822 ac_save_IFS=$IFS; IFS='-'
2823 set x $ac_cv_host
2824 shift
2825 host_cpu=$1
2826 host_vendor=$2
2827 shift; shift
2828 # Remember, the first character of IFS is used to create $*,
2829 # except with old shells:
2830 host_os=$*
2831 IFS=$ac_save_IFS
2832 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2836 $as_echo_n "checking target system type... " >&6; }
2837 if ${ac_cv_target+:} false; then :
2838 $as_echo_n "(cached) " >&6
2839 else
2840 if test "x$target_alias" = x; then
2841 ac_cv_target=$ac_cv_host
2842 else
2843 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2844 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2849 $as_echo "$ac_cv_target" >&6; }
2850 case $ac_cv_target in
2851 *-*-*) ;;
2852 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2853 esac
2854 target=$ac_cv_target
2855 ac_save_IFS=$IFS; IFS='-'
2856 set x $ac_cv_target
2857 shift
2858 target_cpu=$1
2859 target_vendor=$2
2860 shift; shift
2861 # Remember, the first character of IFS is used to create $*,
2862 # except with old shells:
2863 target_os=$*
2864 IFS=$ac_save_IFS
2865 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2868 # The aliases save the names the user supplied, while $host etc.
2869 # will get canonicalized.
2870 test -n "$target_alias" &&
2871 test "$program_prefix$program_suffix$program_transform_name" = \
2872 NONENONEs,x,x, &&
2873 program_prefix=${target_alias}-
2876 am__api_version='1.15'
2878 # Find a good install program. We prefer a C program (faster),
2879 # so one script is as good as another. But avoid the broken or
2880 # incompatible versions:
2881 # SysV /etc/install, /usr/sbin/install
2882 # SunOS /usr/etc/install
2883 # IRIX /sbin/install
2884 # AIX /bin/install
2885 # AmigaOS /C/install, which installs bootblocks on floppy discs
2886 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2887 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2888 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2889 # OS/2's system install, which has a completely different semantic
2890 # ./install, which can be erroneously created by make from ./install.sh.
2891 # Reject install programs that cannot install multiple files.
2892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2893 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2894 if test -z "$INSTALL"; then
2895 if ${ac_cv_path_install+:} false; then :
2896 $as_echo_n "(cached) " >&6
2897 else
2898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2899 for as_dir in $PATH
2901 IFS=$as_save_IFS
2902 test -z "$as_dir" && as_dir=.
2903 # Account for people who put trailing slashes in PATH elements.
2904 case $as_dir/ in #((
2905 ./ | .// | /[cC]/* | \
2906 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2907 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2908 /usr/ucb/* ) ;;
2910 # OSF1 and SCO ODT 3.0 have their own names for install.
2911 # Don't use installbsd from OSF since it installs stuff as root
2912 # by default.
2913 for ac_prog in ginstall scoinst install; do
2914 for ac_exec_ext in '' $ac_executable_extensions; do
2915 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2916 if test $ac_prog = install &&
2917 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2918 # AIX install. It has an incompatible calling convention.
2920 elif test $ac_prog = install &&
2921 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2922 # program-specific install script used by HP pwplus--don't use.
2924 else
2925 rm -rf conftest.one conftest.two conftest.dir
2926 echo one > conftest.one
2927 echo two > conftest.two
2928 mkdir conftest.dir
2929 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2930 test -s conftest.one && test -s conftest.two &&
2931 test -s conftest.dir/conftest.one &&
2932 test -s conftest.dir/conftest.two
2933 then
2934 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2935 break 3
2939 done
2940 done
2942 esac
2944 done
2945 IFS=$as_save_IFS
2947 rm -rf conftest.one conftest.two conftest.dir
2950 if test "${ac_cv_path_install+set}" = set; then
2951 INSTALL=$ac_cv_path_install
2952 else
2953 # As a last resort, use the slow shell script. Don't cache a
2954 # value for INSTALL within a source directory, because that will
2955 # break other packages using the cache if that directory is
2956 # removed, or if the value is a relative name.
2957 INSTALL=$ac_install_sh
2960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2961 $as_echo "$INSTALL" >&6; }
2963 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2964 # It thinks the first close brace ends the variable substitution.
2965 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2967 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2969 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2972 $as_echo_n "checking whether build environment is sane... " >&6; }
2973 # Reject unsafe characters in $srcdir or the absolute working directory
2974 # name. Accept space and tab only in the latter.
2975 am_lf='
2977 case `pwd` in
2978 *[\\\"\#\$\&\'\`$am_lf]*)
2979 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2980 esac
2981 case $srcdir in
2982 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2983 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2984 esac
2986 # Do 'set' in a subshell so we don't clobber the current shell's
2987 # arguments. Must try -L first in case configure is actually a
2988 # symlink; some systems play weird games with the mod time of symlinks
2989 # (eg FreeBSD returns the mod time of the symlink's containing
2990 # directory).
2991 if (
2992 am_has_slept=no
2993 for am_try in 1 2; do
2994 echo "timestamp, slept: $am_has_slept" > conftest.file
2995 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2996 if test "$*" = "X"; then
2997 # -L didn't work.
2998 set X `ls -t "$srcdir/configure" conftest.file`
3000 if test "$*" != "X $srcdir/configure conftest.file" \
3001 && test "$*" != "X conftest.file $srcdir/configure"; then
3003 # If neither matched, then we have a broken ls. This can happen
3004 # if, for instance, CONFIG_SHELL is bash and it inherits a
3005 # broken ls alias from the environment. This has actually
3006 # happened. Such a system could not be considered "sane".
3007 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3008 alias in your environment" "$LINENO" 5
3010 if test "$2" = conftest.file || test $am_try -eq 2; then
3011 break
3013 # Just in case.
3014 sleep 1
3015 am_has_slept=yes
3016 done
3017 test "$2" = conftest.file
3019 then
3020 # Ok.
3022 else
3023 as_fn_error $? "newly created file is older than distributed files!
3024 Check your system clock" "$LINENO" 5
3026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3027 $as_echo "yes" >&6; }
3028 # If we didn't sleep, we still need to ensure time stamps of config.status and
3029 # generated files are strictly newer.
3030 am_sleep_pid=
3031 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3032 ( sleep 1 ) &
3033 am_sleep_pid=$!
3036 rm -f conftest.file
3038 test "$program_prefix" != NONE &&
3039 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3040 # Use a double $ so make ignores it.
3041 test "$program_suffix" != NONE &&
3042 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3043 # Double any \ or $.
3044 # By default was `s,x,x', remove it if useless.
3045 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3046 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3048 # Expand $ac_aux_dir to an absolute path.
3049 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3051 if test x"${MISSING+set}" != xset; then
3052 case $am_aux_dir in
3053 *\ * | *\ *)
3054 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3056 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3057 esac
3059 # Use eval to expand $SHELL
3060 if eval "$MISSING --is-lightweight"; then
3061 am_missing_run="$MISSING "
3062 else
3063 am_missing_run=
3064 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3065 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3068 if test x"${install_sh+set}" != xset; then
3069 case $am_aux_dir in
3070 *\ * | *\ *)
3071 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3073 install_sh="\${SHELL} $am_aux_dir/install-sh"
3074 esac
3077 # Installed binaries are usually stripped using 'strip' when the user
3078 # run "make install-strip". However 'strip' might not be the right
3079 # tool to use in cross-compilation environments, therefore Automake
3080 # will honor the 'STRIP' environment variable to overrule this program.
3081 if test "$cross_compiling" != no; then
3082 if test -n "$ac_tool_prefix"; then
3083 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3084 set dummy ${ac_tool_prefix}strip; ac_word=$2
3085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3086 $as_echo_n "checking for $ac_word... " >&6; }
3087 if ${ac_cv_prog_STRIP+:} false; then :
3088 $as_echo_n "(cached) " >&6
3089 else
3090 if test -n "$STRIP"; then
3091 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3092 else
3093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3094 for as_dir in $PATH
3096 IFS=$as_save_IFS
3097 test -z "$as_dir" && as_dir=.
3098 for ac_exec_ext in '' $ac_executable_extensions; do
3099 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3100 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3102 break 2
3104 done
3105 done
3106 IFS=$as_save_IFS
3110 STRIP=$ac_cv_prog_STRIP
3111 if test -n "$STRIP"; then
3112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3113 $as_echo "$STRIP" >&6; }
3114 else
3115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3116 $as_echo "no" >&6; }
3121 if test -z "$ac_cv_prog_STRIP"; then
3122 ac_ct_STRIP=$STRIP
3123 # Extract the first word of "strip", so it can be a program name with args.
3124 set dummy strip; ac_word=$2
3125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3126 $as_echo_n "checking for $ac_word... " >&6; }
3127 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3128 $as_echo_n "(cached) " >&6
3129 else
3130 if test -n "$ac_ct_STRIP"; then
3131 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3132 else
3133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3134 for as_dir in $PATH
3136 IFS=$as_save_IFS
3137 test -z "$as_dir" && as_dir=.
3138 for ac_exec_ext in '' $ac_executable_extensions; do
3139 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3140 ac_cv_prog_ac_ct_STRIP="strip"
3141 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3142 break 2
3144 done
3145 done
3146 IFS=$as_save_IFS
3150 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3151 if test -n "$ac_ct_STRIP"; then
3152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3153 $as_echo "$ac_ct_STRIP" >&6; }
3154 else
3155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3156 $as_echo "no" >&6; }
3159 if test "x$ac_ct_STRIP" = x; then
3160 STRIP=":"
3161 else
3162 case $cross_compiling:$ac_tool_warned in
3163 yes:)
3164 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3165 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3166 ac_tool_warned=yes ;;
3167 esac
3168 STRIP=$ac_ct_STRIP
3170 else
3171 STRIP="$ac_cv_prog_STRIP"
3175 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3178 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3179 if test -z "$MKDIR_P"; then
3180 if ${ac_cv_path_mkdir+:} false; then :
3181 $as_echo_n "(cached) " >&6
3182 else
3183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3184 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3186 IFS=$as_save_IFS
3187 test -z "$as_dir" && as_dir=.
3188 for ac_prog in mkdir gmkdir; do
3189 for ac_exec_ext in '' $ac_executable_extensions; do
3190 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3191 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3192 'mkdir (GNU coreutils) '* | \
3193 'mkdir (coreutils) '* | \
3194 'mkdir (fileutils) '4.1*)
3195 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3196 break 3;;
3197 esac
3198 done
3199 done
3200 done
3201 IFS=$as_save_IFS
3205 test -d ./--version && rmdir ./--version
3206 if test "${ac_cv_path_mkdir+set}" = set; then
3207 MKDIR_P="$ac_cv_path_mkdir -p"
3208 else
3209 # As a last resort, use the slow shell script. Don't cache a
3210 # value for MKDIR_P within a source directory, because that will
3211 # break other packages using the cache if that directory is
3212 # removed, or if the value is a relative name.
3213 MKDIR_P="$ac_install_sh -d"
3216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3217 $as_echo "$MKDIR_P" >&6; }
3219 for ac_prog in gawk mawk nawk awk
3221 # Extract the first word of "$ac_prog", so it can be a program name with args.
3222 set dummy $ac_prog; ac_word=$2
3223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3224 $as_echo_n "checking for $ac_word... " >&6; }
3225 if ${ac_cv_prog_AWK+:} false; then :
3226 $as_echo_n "(cached) " >&6
3227 else
3228 if test -n "$AWK"; then
3229 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3230 else
3231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3232 for as_dir in $PATH
3234 IFS=$as_save_IFS
3235 test -z "$as_dir" && as_dir=.
3236 for ac_exec_ext in '' $ac_executable_extensions; do
3237 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3238 ac_cv_prog_AWK="$ac_prog"
3239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3240 break 2
3242 done
3243 done
3244 IFS=$as_save_IFS
3248 AWK=$ac_cv_prog_AWK
3249 if test -n "$AWK"; then
3250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3251 $as_echo "$AWK" >&6; }
3252 else
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3254 $as_echo "no" >&6; }
3258 test -n "$AWK" && break
3259 done
3261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3262 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3263 set x ${MAKE-make}
3264 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3265 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3266 $as_echo_n "(cached) " >&6
3267 else
3268 cat >conftest.make <<\_ACEOF
3269 SHELL = /bin/sh
3270 all:
3271 @echo '@@@%%%=$(MAKE)=@@@%%%'
3272 _ACEOF
3273 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3274 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3275 *@@@%%%=?*=@@@%%%*)
3276 eval ac_cv_prog_make_${ac_make}_set=yes;;
3278 eval ac_cv_prog_make_${ac_make}_set=no;;
3279 esac
3280 rm -f conftest.make
3282 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3284 $as_echo "yes" >&6; }
3285 SET_MAKE=
3286 else
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3288 $as_echo "no" >&6; }
3289 SET_MAKE="MAKE=${MAKE-make}"
3292 rm -rf .tst 2>/dev/null
3293 mkdir .tst 2>/dev/null
3294 if test -d .tst; then
3295 am__leading_dot=.
3296 else
3297 am__leading_dot=_
3299 rmdir .tst 2>/dev/null
3301 # Check whether --enable-silent-rules was given.
3302 if test "${enable_silent_rules+set}" = set; then :
3303 enableval=$enable_silent_rules;
3306 case $enable_silent_rules in # (((
3307 yes) AM_DEFAULT_VERBOSITY=0;;
3308 no) AM_DEFAULT_VERBOSITY=1;;
3309 *) AM_DEFAULT_VERBOSITY=1;;
3310 esac
3311 am_make=${MAKE-make}
3312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3313 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3314 if ${am_cv_make_support_nested_variables+:} false; then :
3315 $as_echo_n "(cached) " >&6
3316 else
3317 if $as_echo 'TRUE=$(BAR$(V))
3318 BAR0=false
3319 BAR1=true
3321 am__doit:
3322 @$(TRUE)
3323 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3324 am_cv_make_support_nested_variables=yes
3325 else
3326 am_cv_make_support_nested_variables=no
3329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3330 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3331 if test $am_cv_make_support_nested_variables = yes; then
3332 AM_V='$(V)'
3333 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3334 else
3335 AM_V=$AM_DEFAULT_VERBOSITY
3336 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3338 AM_BACKSLASH='\'
3340 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3341 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3342 # is not polluted with repeated "-I."
3343 am__isrc=' -I$(srcdir)'
3344 # test to see if srcdir already configured
3345 if test -f $srcdir/config.status; then
3346 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3350 # test whether we have cygpath
3351 if test -z "$CYGPATH_W"; then
3352 if (cygpath --version) >/dev/null 2>/dev/null; then
3353 CYGPATH_W='cygpath -w'
3354 else
3355 CYGPATH_W=echo
3360 # Define the identity of the package.
3361 PACKAGE='ld'
3362 VERSION='2.40.50'
3365 cat >>confdefs.h <<_ACEOF
3366 #define PACKAGE "$PACKAGE"
3367 _ACEOF
3370 cat >>confdefs.h <<_ACEOF
3371 #define VERSION "$VERSION"
3372 _ACEOF
3374 # Some tools Automake needs.
3376 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3379 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3382 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3385 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3388 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3390 # For better backward compatibility. To be removed once Automake 1.9.x
3391 # dies out for good. For more background, see:
3392 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3393 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3394 mkdir_p='$(MKDIR_P)'
3396 # We need awk for the "check" target (and possibly the TAP driver). The
3397 # system "awk" is bad on some platforms.
3398 # Always define AMTAR for backward compatibility. Yes, it's still used
3399 # in the wild :-( We should find a proper way to deprecate it ...
3400 AMTAR='$${TAR-tar}'
3403 # We'll loop over all known methods to create a tar archive until one works.
3404 _am_tools='gnutar pax cpio none'
3406 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3413 # POSIX will say in a future version that running "rm -f" with no argument
3414 # is OK; and we want to be able to make that assumption in our Makefile
3415 # recipes. So use an aggressive probe to check that the usage we want is
3416 # actually supported "in the wild" to an acceptable degree.
3417 # See automake bug#10828.
3418 # To make any issue more visible, cause the running configure to be aborted
3419 # by default if the 'rm' program in use doesn't match our expectations; the
3420 # user can still override this though.
3421 if rm -f && rm -fr && rm -rf; then : OK; else
3422 cat >&2 <<'END'
3423 Oops!
3425 Your 'rm' program seems unable to run without file operands specified
3426 on the command line, even when the '-f' option is present. This is contrary
3427 to the behaviour of most rm programs out there, and not conforming with
3428 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3430 Please tell bug-automake@gnu.org about your system, including the value
3431 of your $PATH and any error possibly output before this message. This
3432 can help us improve future automake versions.
3435 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3436 echo 'Configuration will proceed anyway, since you have set the' >&2
3437 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3438 echo >&2
3439 else
3440 cat >&2 <<'END'
3441 Aborting the configuration process, to ensure you take notice of the issue.
3443 You can download and install GNU coreutils to get an 'rm' implementation
3444 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3446 If you want to complete the configuration process using your problematic
3447 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3448 to "yes", and re-run configure.
3451 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3455 # Check whether --enable-silent-rules was given.
3456 if test "${enable_silent_rules+set}" = set; then :
3457 enableval=$enable_silent_rules;
3460 case $enable_silent_rules in # (((
3461 yes) AM_DEFAULT_VERBOSITY=0;;
3462 no) AM_DEFAULT_VERBOSITY=1;;
3463 *) AM_DEFAULT_VERBOSITY=0;;
3464 esac
3465 am_make=${MAKE-make}
3466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3467 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3468 if ${am_cv_make_support_nested_variables+:} false; then :
3469 $as_echo_n "(cached) " >&6
3470 else
3471 if $as_echo 'TRUE=$(BAR$(V))
3472 BAR0=false
3473 BAR1=true
3475 am__doit:
3476 @$(TRUE)
3477 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3478 am_cv_make_support_nested_variables=yes
3479 else
3480 am_cv_make_support_nested_variables=no
3483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3484 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3485 if test $am_cv_make_support_nested_variables = yes; then
3486 AM_V='$(V)'
3487 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3488 else
3489 AM_V=$AM_DEFAULT_VERBOSITY
3490 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3492 AM_BACKSLASH='\'
3495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3496 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3497 # Check whether --enable-maintainer-mode was given.
3498 if test "${enable_maintainer_mode+set}" = set; then :
3499 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3500 else
3501 USE_MAINTAINER_MODE=no
3504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3505 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3506 if test $USE_MAINTAINER_MODE = yes; then
3507 MAINTAINER_MODE_TRUE=
3508 MAINTAINER_MODE_FALSE='#'
3509 else
3510 MAINTAINER_MODE_TRUE='#'
3511 MAINTAINER_MODE_FALSE=
3514 MAINT=$MAINTAINER_MODE_TRUE
3518 ac_ext=c
3519 ac_cpp='$CPP $CPPFLAGS'
3520 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3521 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3522 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3523 if test -n "$ac_tool_prefix"; then
3524 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3525 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3527 $as_echo_n "checking for $ac_word... " >&6; }
3528 if ${ac_cv_prog_CC+:} false; then :
3529 $as_echo_n "(cached) " >&6
3530 else
3531 if test -n "$CC"; then
3532 ac_cv_prog_CC="$CC" # Let the user override the test.
3533 else
3534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3535 for as_dir in $PATH
3537 IFS=$as_save_IFS
3538 test -z "$as_dir" && as_dir=.
3539 for ac_exec_ext in '' $ac_executable_extensions; do
3540 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3541 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3542 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3543 break 2
3545 done
3546 done
3547 IFS=$as_save_IFS
3551 CC=$ac_cv_prog_CC
3552 if test -n "$CC"; then
3553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3554 $as_echo "$CC" >&6; }
3555 else
3556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3557 $as_echo "no" >&6; }
3562 if test -z "$ac_cv_prog_CC"; then
3563 ac_ct_CC=$CC
3564 # Extract the first word of "gcc", so it can be a program name with args.
3565 set dummy gcc; ac_word=$2
3566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3567 $as_echo_n "checking for $ac_word... " >&6; }
3568 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3569 $as_echo_n "(cached) " >&6
3570 else
3571 if test -n "$ac_ct_CC"; then
3572 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3573 else
3574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3575 for as_dir in $PATH
3577 IFS=$as_save_IFS
3578 test -z "$as_dir" && as_dir=.
3579 for ac_exec_ext in '' $ac_executable_extensions; do
3580 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3581 ac_cv_prog_ac_ct_CC="gcc"
3582 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3583 break 2
3585 done
3586 done
3587 IFS=$as_save_IFS
3591 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3592 if test -n "$ac_ct_CC"; then
3593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3594 $as_echo "$ac_ct_CC" >&6; }
3595 else
3596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3597 $as_echo "no" >&6; }
3600 if test "x$ac_ct_CC" = x; then
3601 CC=""
3602 else
3603 case $cross_compiling:$ac_tool_warned in
3604 yes:)
3605 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3606 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3607 ac_tool_warned=yes ;;
3608 esac
3609 CC=$ac_ct_CC
3611 else
3612 CC="$ac_cv_prog_CC"
3615 if test -z "$CC"; then
3616 if test -n "$ac_tool_prefix"; then
3617 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3618 set dummy ${ac_tool_prefix}cc; ac_word=$2
3619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3620 $as_echo_n "checking for $ac_word... " >&6; }
3621 if ${ac_cv_prog_CC+:} false; then :
3622 $as_echo_n "(cached) " >&6
3623 else
3624 if test -n "$CC"; then
3625 ac_cv_prog_CC="$CC" # Let the user override the test.
3626 else
3627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3628 for as_dir in $PATH
3630 IFS=$as_save_IFS
3631 test -z "$as_dir" && as_dir=.
3632 for ac_exec_ext in '' $ac_executable_extensions; do
3633 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3634 ac_cv_prog_CC="${ac_tool_prefix}cc"
3635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3636 break 2
3638 done
3639 done
3640 IFS=$as_save_IFS
3644 CC=$ac_cv_prog_CC
3645 if test -n "$CC"; then
3646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3647 $as_echo "$CC" >&6; }
3648 else
3649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3650 $as_echo "no" >&6; }
3656 if test -z "$CC"; then
3657 # Extract the first word of "cc", so it can be a program name with args.
3658 set dummy cc; ac_word=$2
3659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3660 $as_echo_n "checking for $ac_word... " >&6; }
3661 if ${ac_cv_prog_CC+:} false; then :
3662 $as_echo_n "(cached) " >&6
3663 else
3664 if test -n "$CC"; then
3665 ac_cv_prog_CC="$CC" # Let the user override the test.
3666 else
3667 ac_prog_rejected=no
3668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3669 for as_dir in $PATH
3671 IFS=$as_save_IFS
3672 test -z "$as_dir" && as_dir=.
3673 for ac_exec_ext in '' $ac_executable_extensions; do
3674 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3675 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3676 ac_prog_rejected=yes
3677 continue
3679 ac_cv_prog_CC="cc"
3680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3681 break 2
3683 done
3684 done
3685 IFS=$as_save_IFS
3687 if test $ac_prog_rejected = yes; then
3688 # We found a bogon in the path, so make sure we never use it.
3689 set dummy $ac_cv_prog_CC
3690 shift
3691 if test $# != 0; then
3692 # We chose a different compiler from the bogus one.
3693 # However, it has the same basename, so the bogon will be chosen
3694 # first if we set CC to just the basename; use the full file name.
3695 shift
3696 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3701 CC=$ac_cv_prog_CC
3702 if test -n "$CC"; then
3703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3704 $as_echo "$CC" >&6; }
3705 else
3706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3707 $as_echo "no" >&6; }
3712 if test -z "$CC"; then
3713 if test -n "$ac_tool_prefix"; then
3714 for ac_prog in cl.exe
3716 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3717 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3719 $as_echo_n "checking for $ac_word... " >&6; }
3720 if ${ac_cv_prog_CC+:} false; then :
3721 $as_echo_n "(cached) " >&6
3722 else
3723 if test -n "$CC"; then
3724 ac_cv_prog_CC="$CC" # Let the user override the test.
3725 else
3726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3727 for as_dir in $PATH
3729 IFS=$as_save_IFS
3730 test -z "$as_dir" && as_dir=.
3731 for ac_exec_ext in '' $ac_executable_extensions; do
3732 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3733 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3735 break 2
3737 done
3738 done
3739 IFS=$as_save_IFS
3743 CC=$ac_cv_prog_CC
3744 if test -n "$CC"; then
3745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3746 $as_echo "$CC" >&6; }
3747 else
3748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3749 $as_echo "no" >&6; }
3753 test -n "$CC" && break
3754 done
3756 if test -z "$CC"; then
3757 ac_ct_CC=$CC
3758 for ac_prog in cl.exe
3760 # Extract the first word of "$ac_prog", so it can be a program name with args.
3761 set dummy $ac_prog; ac_word=$2
3762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3763 $as_echo_n "checking for $ac_word... " >&6; }
3764 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3765 $as_echo_n "(cached) " >&6
3766 else
3767 if test -n "$ac_ct_CC"; then
3768 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3769 else
3770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3771 for as_dir in $PATH
3773 IFS=$as_save_IFS
3774 test -z "$as_dir" && as_dir=.
3775 for ac_exec_ext in '' $ac_executable_extensions; do
3776 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3777 ac_cv_prog_ac_ct_CC="$ac_prog"
3778 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3779 break 2
3781 done
3782 done
3783 IFS=$as_save_IFS
3787 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3788 if test -n "$ac_ct_CC"; then
3789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3790 $as_echo "$ac_ct_CC" >&6; }
3791 else
3792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3793 $as_echo "no" >&6; }
3797 test -n "$ac_ct_CC" && break
3798 done
3800 if test "x$ac_ct_CC" = x; then
3801 CC=""
3802 else
3803 case $cross_compiling:$ac_tool_warned in
3804 yes:)
3805 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3806 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3807 ac_tool_warned=yes ;;
3808 esac
3809 CC=$ac_ct_CC
3816 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3817 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3818 as_fn_error $? "no acceptable C compiler found in \$PATH
3819 See \`config.log' for more details" "$LINENO" 5; }
3821 # Provide some information about the compiler.
3822 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3823 set X $ac_compile
3824 ac_compiler=$2
3825 for ac_option in --version -v -V -qversion; do
3826 { { ac_try="$ac_compiler $ac_option >&5"
3827 case "(($ac_try" in
3828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3829 *) ac_try_echo=$ac_try;;
3830 esac
3831 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3832 $as_echo "$ac_try_echo"; } >&5
3833 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3834 ac_status=$?
3835 if test -s conftest.err; then
3836 sed '10a\
3837 ... rest of stderr output deleted ...
3838 10q' conftest.err >conftest.er1
3839 cat conftest.er1 >&5
3841 rm -f conftest.er1 conftest.err
3842 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3843 test $ac_status = 0; }
3844 done
3846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3847 /* end confdefs.h. */
3850 main ()
3854 return 0;
3856 _ACEOF
3857 ac_clean_files_save=$ac_clean_files
3858 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3859 # Try to create an executable without -o first, disregard a.out.
3860 # It will help us diagnose broken compilers, and finding out an intuition
3861 # of exeext.
3862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3863 $as_echo_n "checking whether the C compiler works... " >&6; }
3864 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3866 # The possible output files:
3867 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3869 ac_rmfiles=
3870 for ac_file in $ac_files
3872 case $ac_file in
3873 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3874 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3875 esac
3876 done
3877 rm -f $ac_rmfiles
3879 if { { ac_try="$ac_link_default"
3880 case "(($ac_try" in
3881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3882 *) ac_try_echo=$ac_try;;
3883 esac
3884 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3885 $as_echo "$ac_try_echo"; } >&5
3886 (eval "$ac_link_default") 2>&5
3887 ac_status=$?
3888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3889 test $ac_status = 0; }; then :
3890 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3891 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3892 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3893 # so that the user can short-circuit this test for compilers unknown to
3894 # Autoconf.
3895 for ac_file in $ac_files ''
3897 test -f "$ac_file" || continue
3898 case $ac_file in
3899 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3901 [ab].out )
3902 # We found the default executable, but exeext='' is most
3903 # certainly right.
3904 break;;
3905 *.* )
3906 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3907 then :; else
3908 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3910 # We set ac_cv_exeext here because the later test for it is not
3911 # safe: cross compilers may not add the suffix if given an `-o'
3912 # argument, so we may need to know it at that point already.
3913 # Even if this section looks crufty: it has the advantage of
3914 # actually working.
3915 break;;
3917 break;;
3918 esac
3919 done
3920 test "$ac_cv_exeext" = no && ac_cv_exeext=
3922 else
3923 ac_file=''
3925 if test -z "$ac_file"; then :
3926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3927 $as_echo "no" >&6; }
3928 $as_echo "$as_me: failed program was:" >&5
3929 sed 's/^/| /' conftest.$ac_ext >&5
3931 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3932 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3933 as_fn_error 77 "C compiler cannot create executables
3934 See \`config.log' for more details" "$LINENO" 5; }
3935 else
3936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3937 $as_echo "yes" >&6; }
3939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3940 $as_echo_n "checking for C compiler default output file name... " >&6; }
3941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3942 $as_echo "$ac_file" >&6; }
3943 ac_exeext=$ac_cv_exeext
3945 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3946 ac_clean_files=$ac_clean_files_save
3947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3948 $as_echo_n "checking for suffix of executables... " >&6; }
3949 if { { ac_try="$ac_link"
3950 case "(($ac_try" in
3951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3952 *) ac_try_echo=$ac_try;;
3953 esac
3954 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3955 $as_echo "$ac_try_echo"; } >&5
3956 (eval "$ac_link") 2>&5
3957 ac_status=$?
3958 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3959 test $ac_status = 0; }; then :
3960 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3961 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3962 # work properly (i.e., refer to `conftest.exe'), while it won't with
3963 # `rm'.
3964 for ac_file in conftest.exe conftest conftest.*; do
3965 test -f "$ac_file" || continue
3966 case $ac_file in
3967 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3968 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3969 break;;
3970 * ) break;;
3971 esac
3972 done
3973 else
3974 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3975 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3976 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3977 See \`config.log' for more details" "$LINENO" 5; }
3979 rm -f conftest conftest$ac_cv_exeext
3980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3981 $as_echo "$ac_cv_exeext" >&6; }
3983 rm -f conftest.$ac_ext
3984 EXEEXT=$ac_cv_exeext
3985 ac_exeext=$EXEEXT
3986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3987 /* end confdefs.h. */
3988 #include <stdio.h>
3990 main ()
3992 FILE *f = fopen ("conftest.out", "w");
3993 return ferror (f) || fclose (f) != 0;
3996 return 0;
3998 _ACEOF
3999 ac_clean_files="$ac_clean_files conftest.out"
4000 # Check that the compiler produces executables we can run. If not, either
4001 # the compiler is broken, or we cross compile.
4002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4003 $as_echo_n "checking whether we are cross compiling... " >&6; }
4004 if test "$cross_compiling" != yes; then
4005 { { ac_try="$ac_link"
4006 case "(($ac_try" in
4007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4008 *) ac_try_echo=$ac_try;;
4009 esac
4010 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4011 $as_echo "$ac_try_echo"; } >&5
4012 (eval "$ac_link") 2>&5
4013 ac_status=$?
4014 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4015 test $ac_status = 0; }
4016 if { ac_try='./conftest$ac_cv_exeext'
4017 { { case "(($ac_try" in
4018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4019 *) ac_try_echo=$ac_try;;
4020 esac
4021 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4022 $as_echo "$ac_try_echo"; } >&5
4023 (eval "$ac_try") 2>&5
4024 ac_status=$?
4025 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4026 test $ac_status = 0; }; }; then
4027 cross_compiling=no
4028 else
4029 if test "$cross_compiling" = maybe; then
4030 cross_compiling=yes
4031 else
4032 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4033 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4034 as_fn_error $? "cannot run C compiled programs.
4035 If you meant to cross compile, use \`--host'.
4036 See \`config.log' for more details" "$LINENO" 5; }
4040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4041 $as_echo "$cross_compiling" >&6; }
4043 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4044 ac_clean_files=$ac_clean_files_save
4045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4046 $as_echo_n "checking for suffix of object files... " >&6; }
4047 if ${ac_cv_objext+:} false; then :
4048 $as_echo_n "(cached) " >&6
4049 else
4050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4051 /* end confdefs.h. */
4054 main ()
4058 return 0;
4060 _ACEOF
4061 rm -f conftest.o conftest.obj
4062 if { { ac_try="$ac_compile"
4063 case "(($ac_try" in
4064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4065 *) ac_try_echo=$ac_try;;
4066 esac
4067 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4068 $as_echo "$ac_try_echo"; } >&5
4069 (eval "$ac_compile") 2>&5
4070 ac_status=$?
4071 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4072 test $ac_status = 0; }; then :
4073 for ac_file in conftest.o conftest.obj conftest.*; do
4074 test -f "$ac_file" || continue;
4075 case $ac_file in
4076 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4077 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4078 break;;
4079 esac
4080 done
4081 else
4082 $as_echo "$as_me: failed program was:" >&5
4083 sed 's/^/| /' conftest.$ac_ext >&5
4085 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4086 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4087 as_fn_error $? "cannot compute suffix of object files: cannot compile
4088 See \`config.log' for more details" "$LINENO" 5; }
4090 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4093 $as_echo "$ac_cv_objext" >&6; }
4094 OBJEXT=$ac_cv_objext
4095 ac_objext=$OBJEXT
4096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4097 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4098 if ${ac_cv_c_compiler_gnu+:} false; then :
4099 $as_echo_n "(cached) " >&6
4100 else
4101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4102 /* end confdefs.h. */
4105 main ()
4107 #ifndef __GNUC__
4108 choke me
4109 #endif
4112 return 0;
4114 _ACEOF
4115 if ac_fn_c_try_compile "$LINENO"; then :
4116 ac_compiler_gnu=yes
4117 else
4118 ac_compiler_gnu=no
4120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4121 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4125 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4126 if test $ac_compiler_gnu = yes; then
4127 GCC=yes
4128 else
4129 GCC=
4131 ac_test_CFLAGS=${CFLAGS+set}
4132 ac_save_CFLAGS=$CFLAGS
4133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4134 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4135 if ${ac_cv_prog_cc_g+:} false; then :
4136 $as_echo_n "(cached) " >&6
4137 else
4138 ac_save_c_werror_flag=$ac_c_werror_flag
4139 ac_c_werror_flag=yes
4140 ac_cv_prog_cc_g=no
4141 CFLAGS="-g"
4142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4143 /* end confdefs.h. */
4146 main ()
4150 return 0;
4152 _ACEOF
4153 if ac_fn_c_try_compile "$LINENO"; then :
4154 ac_cv_prog_cc_g=yes
4155 else
4156 CFLAGS=""
4157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4158 /* end confdefs.h. */
4161 main ()
4165 return 0;
4167 _ACEOF
4168 if ac_fn_c_try_compile "$LINENO"; then :
4170 else
4171 ac_c_werror_flag=$ac_save_c_werror_flag
4172 CFLAGS="-g"
4173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4174 /* end confdefs.h. */
4177 main ()
4181 return 0;
4183 _ACEOF
4184 if ac_fn_c_try_compile "$LINENO"; then :
4185 ac_cv_prog_cc_g=yes
4187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4192 ac_c_werror_flag=$ac_save_c_werror_flag
4194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4195 $as_echo "$ac_cv_prog_cc_g" >&6; }
4196 if test "$ac_test_CFLAGS" = set; then
4197 CFLAGS=$ac_save_CFLAGS
4198 elif test $ac_cv_prog_cc_g = yes; then
4199 if test "$GCC" = yes; then
4200 CFLAGS="-g -O2"
4201 else
4202 CFLAGS="-g"
4204 else
4205 if test "$GCC" = yes; then
4206 CFLAGS="-O2"
4207 else
4208 CFLAGS=
4211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4212 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4213 if ${ac_cv_prog_cc_c89+:} false; then :
4214 $as_echo_n "(cached) " >&6
4215 else
4216 ac_cv_prog_cc_c89=no
4217 ac_save_CC=$CC
4218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4219 /* end confdefs.h. */
4220 #include <stdarg.h>
4221 #include <stdio.h>
4222 struct stat;
4223 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4224 struct buf { int x; };
4225 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4226 static char *e (p, i)
4227 char **p;
4228 int i;
4230 return p[i];
4232 static char *f (char * (*g) (char **, int), char **p, ...)
4234 char *s;
4235 va_list v;
4236 va_start (v,p);
4237 s = g (p, va_arg (v,int));
4238 va_end (v);
4239 return s;
4242 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4243 function prototypes and stuff, but not '\xHH' hex character constants.
4244 These don't provoke an error unfortunately, instead are silently treated
4245 as 'x'. The following induces an error, until -std is added to get
4246 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4247 array size at least. It's necessary to write '\x00'==0 to get something
4248 that's true only with -std. */
4249 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4251 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4252 inside strings and character constants. */
4253 #define FOO(x) 'x'
4254 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4256 int test (int i, double x);
4257 struct s1 {int (*f) (int a);};
4258 struct s2 {int (*f) (double a);};
4259 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4260 int argc;
4261 char **argv;
4263 main ()
4265 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4267 return 0;
4269 _ACEOF
4270 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4271 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4273 CC="$ac_save_CC $ac_arg"
4274 if ac_fn_c_try_compile "$LINENO"; then :
4275 ac_cv_prog_cc_c89=$ac_arg
4277 rm -f core conftest.err conftest.$ac_objext
4278 test "x$ac_cv_prog_cc_c89" != "xno" && break
4279 done
4280 rm -f conftest.$ac_ext
4281 CC=$ac_save_CC
4284 # AC_CACHE_VAL
4285 case "x$ac_cv_prog_cc_c89" in
4287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4288 $as_echo "none needed" >&6; } ;;
4289 xno)
4290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4291 $as_echo "unsupported" >&6; } ;;
4293 CC="$CC $ac_cv_prog_cc_c89"
4294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4295 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4296 esac
4297 if test "x$ac_cv_prog_cc_c89" != xno; then :
4301 ac_ext=c
4302 ac_cpp='$CPP $CPPFLAGS'
4303 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4304 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4305 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4307 ac_ext=c
4308 ac_cpp='$CPP $CPPFLAGS'
4309 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4310 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4311 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4313 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4314 if ${am_cv_prog_cc_c_o+:} false; then :
4315 $as_echo_n "(cached) " >&6
4316 else
4317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4318 /* end confdefs.h. */
4321 main ()
4325 return 0;
4327 _ACEOF
4328 # Make sure it works both with $CC and with simple cc.
4329 # Following AC_PROG_CC_C_O, we do the test twice because some
4330 # compilers refuse to overwrite an existing .o file with -o,
4331 # though they will create one.
4332 am_cv_prog_cc_c_o=yes
4333 for am_i in 1 2; do
4334 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4335 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4336 ac_status=$?
4337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4338 (exit $ac_status); } \
4339 && test -f conftest2.$ac_objext; then
4340 : OK
4341 else
4342 am_cv_prog_cc_c_o=no
4343 break
4345 done
4346 rm -f core conftest*
4347 unset am_i
4349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4350 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4351 if test "$am_cv_prog_cc_c_o" != yes; then
4352 # Losing compiler, so override with the script.
4353 # FIXME: It is wrong to rewrite CC.
4354 # But if we don't then we get into trouble of one sort or another.
4355 # A longer-term fix would be to have automake use am__CC in this case,
4356 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4357 CC="$am_aux_dir/compile $CC"
4359 ac_ext=c
4360 ac_cpp='$CPP $CPPFLAGS'
4361 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4362 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4363 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4365 DEPDIR="${am__leading_dot}deps"
4367 ac_config_commands="$ac_config_commands depfiles"
4370 am_make=${MAKE-make}
4371 cat > confinc << 'END'
4372 am__doit:
4373 @echo this is the am__doit target
4374 .PHONY: am__doit
4376 # If we don't find an include directive, just comment out the code.
4377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4378 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4379 am__include="#"
4380 am__quote=
4381 _am_result=none
4382 # First try GNU make style include.
4383 echo "include confinc" > confmf
4384 # Ignore all kinds of additional output from 'make'.
4385 case `$am_make -s -f confmf 2> /dev/null` in #(
4386 *the\ am__doit\ target*)
4387 am__include=include
4388 am__quote=
4389 _am_result=GNU
4391 esac
4392 # Now try BSD make style include.
4393 if test "$am__include" = "#"; then
4394 echo '.include "confinc"' > confmf
4395 case `$am_make -s -f confmf 2> /dev/null` in #(
4396 *the\ am__doit\ target*)
4397 am__include=.include
4398 am__quote="\""
4399 _am_result=BSD
4401 esac
4405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4406 $as_echo "$_am_result" >&6; }
4407 rm -f confinc confmf
4409 # Check whether --enable-dependency-tracking was given.
4410 if test "${enable_dependency_tracking+set}" = set; then :
4411 enableval=$enable_dependency_tracking;
4414 if test "x$enable_dependency_tracking" != xno; then
4415 am_depcomp="$ac_aux_dir/depcomp"
4416 AMDEPBACKSLASH='\'
4417 am__nodep='_no'
4419 if test "x$enable_dependency_tracking" != xno; then
4420 AMDEP_TRUE=
4421 AMDEP_FALSE='#'
4422 else
4423 AMDEP_TRUE='#'
4424 AMDEP_FALSE=
4429 depcc="$CC" am_compiler_list=
4431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4432 $as_echo_n "checking dependency style of $depcc... " >&6; }
4433 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4434 $as_echo_n "(cached) " >&6
4435 else
4436 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4437 # We make a subdir and do the tests there. Otherwise we can end up
4438 # making bogus files that we don't know about and never remove. For
4439 # instance it was reported that on HP-UX the gcc test will end up
4440 # making a dummy file named 'D' -- because '-MD' means "put the output
4441 # in D".
4442 rm -rf conftest.dir
4443 mkdir conftest.dir
4444 # Copy depcomp to subdir because otherwise we won't find it if we're
4445 # using a relative directory.
4446 cp "$am_depcomp" conftest.dir
4447 cd conftest.dir
4448 # We will build objects and dependencies in a subdirectory because
4449 # it helps to detect inapplicable dependency modes. For instance
4450 # both Tru64's cc and ICC support -MD to output dependencies as a
4451 # side effect of compilation, but ICC will put the dependencies in
4452 # the current directory while Tru64 will put them in the object
4453 # directory.
4454 mkdir sub
4456 am_cv_CC_dependencies_compiler_type=none
4457 if test "$am_compiler_list" = ""; then
4458 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4460 am__universal=false
4461 case " $depcc " in #(
4462 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4463 esac
4465 for depmode in $am_compiler_list; do
4466 # Setup a source with many dependencies, because some compilers
4467 # like to wrap large dependency lists on column 80 (with \), and
4468 # we should not choose a depcomp mode which is confused by this.
4470 # We need to recreate these files for each test, as the compiler may
4471 # overwrite some of them when testing with obscure command lines.
4472 # This happens at least with the AIX C compiler.
4473 : > sub/conftest.c
4474 for i in 1 2 3 4 5 6; do
4475 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4476 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4477 # Solaris 10 /bin/sh.
4478 echo '/* dummy */' > sub/conftst$i.h
4479 done
4480 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4482 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4483 # mode. It turns out that the SunPro C++ compiler does not properly
4484 # handle '-M -o', and we need to detect this. Also, some Intel
4485 # versions had trouble with output in subdirs.
4486 am__obj=sub/conftest.${OBJEXT-o}
4487 am__minus_obj="-o $am__obj"
4488 case $depmode in
4489 gcc)
4490 # This depmode causes a compiler race in universal mode.
4491 test "$am__universal" = false || continue
4493 nosideeffect)
4494 # After this tag, mechanisms are not by side-effect, so they'll
4495 # only be used when explicitly requested.
4496 if test "x$enable_dependency_tracking" = xyes; then
4497 continue
4498 else
4499 break
4502 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4503 # This compiler won't grok '-c -o', but also, the minuso test has
4504 # not run yet. These depmodes are late enough in the game, and
4505 # so weak that their functioning should not be impacted.
4506 am__obj=conftest.${OBJEXT-o}
4507 am__minus_obj=
4509 none) break ;;
4510 esac
4511 if depmode=$depmode \
4512 source=sub/conftest.c object=$am__obj \
4513 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4514 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4515 >/dev/null 2>conftest.err &&
4516 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4517 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4518 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4519 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4520 # icc doesn't choke on unknown options, it will just issue warnings
4521 # or remarks (even with -Werror). So we grep stderr for any message
4522 # that says an option was ignored or not supported.
4523 # When given -MP, icc 7.0 and 7.1 complain thusly:
4524 # icc: Command line warning: ignoring option '-M'; no argument required
4525 # The diagnosis changed in icc 8.0:
4526 # icc: Command line remark: option '-MP' not supported
4527 if (grep 'ignoring option' conftest.err ||
4528 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4529 am_cv_CC_dependencies_compiler_type=$depmode
4530 break
4533 done
4535 cd ..
4536 rm -rf conftest.dir
4537 else
4538 am_cv_CC_dependencies_compiler_type=none
4542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4543 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4544 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4547 test "x$enable_dependency_tracking" != xno \
4548 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4549 am__fastdepCC_TRUE=
4550 am__fastdepCC_FALSE='#'
4551 else
4552 am__fastdepCC_TRUE='#'
4553 am__fastdepCC_FALSE=
4557 ac_ext=cpp
4558 ac_cpp='$CXXCPP $CPPFLAGS'
4559 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4560 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4561 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4562 if test -z "$CXX"; then
4563 if test -n "$CCC"; then
4564 CXX=$CCC
4565 else
4566 if test -n "$ac_tool_prefix"; then
4567 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4569 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4570 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4572 $as_echo_n "checking for $ac_word... " >&6; }
4573 if ${ac_cv_prog_CXX+:} false; then :
4574 $as_echo_n "(cached) " >&6
4575 else
4576 if test -n "$CXX"; then
4577 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4578 else
4579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4580 for as_dir in $PATH
4582 IFS=$as_save_IFS
4583 test -z "$as_dir" && as_dir=.
4584 for ac_exec_ext in '' $ac_executable_extensions; do
4585 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4586 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4588 break 2
4590 done
4591 done
4592 IFS=$as_save_IFS
4596 CXX=$ac_cv_prog_CXX
4597 if test -n "$CXX"; then
4598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4599 $as_echo "$CXX" >&6; }
4600 else
4601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4602 $as_echo "no" >&6; }
4606 test -n "$CXX" && break
4607 done
4609 if test -z "$CXX"; then
4610 ac_ct_CXX=$CXX
4611 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4613 # Extract the first word of "$ac_prog", so it can be a program name with args.
4614 set dummy $ac_prog; ac_word=$2
4615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4616 $as_echo_n "checking for $ac_word... " >&6; }
4617 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4618 $as_echo_n "(cached) " >&6
4619 else
4620 if test -n "$ac_ct_CXX"; then
4621 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4622 else
4623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4624 for as_dir in $PATH
4626 IFS=$as_save_IFS
4627 test -z "$as_dir" && as_dir=.
4628 for ac_exec_ext in '' $ac_executable_extensions; do
4629 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4630 ac_cv_prog_ac_ct_CXX="$ac_prog"
4631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4632 break 2
4634 done
4635 done
4636 IFS=$as_save_IFS
4640 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4641 if test -n "$ac_ct_CXX"; then
4642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4643 $as_echo "$ac_ct_CXX" >&6; }
4644 else
4645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4646 $as_echo "no" >&6; }
4650 test -n "$ac_ct_CXX" && break
4651 done
4653 if test "x$ac_ct_CXX" = x; then
4654 CXX="g++"
4655 else
4656 case $cross_compiling:$ac_tool_warned in
4657 yes:)
4658 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4659 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4660 ac_tool_warned=yes ;;
4661 esac
4662 CXX=$ac_ct_CXX
4668 # Provide some information about the compiler.
4669 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4670 set X $ac_compile
4671 ac_compiler=$2
4672 for ac_option in --version -v -V -qversion; do
4673 { { ac_try="$ac_compiler $ac_option >&5"
4674 case "(($ac_try" in
4675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4676 *) ac_try_echo=$ac_try;;
4677 esac
4678 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4679 $as_echo "$ac_try_echo"; } >&5
4680 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4681 ac_status=$?
4682 if test -s conftest.err; then
4683 sed '10a\
4684 ... rest of stderr output deleted ...
4685 10q' conftest.err >conftest.er1
4686 cat conftest.er1 >&5
4688 rm -f conftest.er1 conftest.err
4689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4690 test $ac_status = 0; }
4691 done
4693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4694 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4695 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4696 $as_echo_n "(cached) " >&6
4697 else
4698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4699 /* end confdefs.h. */
4702 main ()
4704 #ifndef __GNUC__
4705 choke me
4706 #endif
4709 return 0;
4711 _ACEOF
4712 if ac_fn_cxx_try_compile "$LINENO"; then :
4713 ac_compiler_gnu=yes
4714 else
4715 ac_compiler_gnu=no
4717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4718 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4722 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4723 if test $ac_compiler_gnu = yes; then
4724 GXX=yes
4725 else
4726 GXX=
4728 ac_test_CXXFLAGS=${CXXFLAGS+set}
4729 ac_save_CXXFLAGS=$CXXFLAGS
4730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4731 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4732 if ${ac_cv_prog_cxx_g+:} false; then :
4733 $as_echo_n "(cached) " >&6
4734 else
4735 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4736 ac_cxx_werror_flag=yes
4737 ac_cv_prog_cxx_g=no
4738 CXXFLAGS="-g"
4739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4740 /* end confdefs.h. */
4743 main ()
4747 return 0;
4749 _ACEOF
4750 if ac_fn_cxx_try_compile "$LINENO"; then :
4751 ac_cv_prog_cxx_g=yes
4752 else
4753 CXXFLAGS=""
4754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4755 /* end confdefs.h. */
4758 main ()
4762 return 0;
4764 _ACEOF
4765 if ac_fn_cxx_try_compile "$LINENO"; then :
4767 else
4768 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4769 CXXFLAGS="-g"
4770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4771 /* end confdefs.h. */
4774 main ()
4778 return 0;
4780 _ACEOF
4781 if ac_fn_cxx_try_compile "$LINENO"; then :
4782 ac_cv_prog_cxx_g=yes
4784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4789 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4792 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4793 if test "$ac_test_CXXFLAGS" = set; then
4794 CXXFLAGS=$ac_save_CXXFLAGS
4795 elif test $ac_cv_prog_cxx_g = yes; then
4796 if test "$GXX" = yes; then
4797 CXXFLAGS="-g -O2"
4798 else
4799 CXXFLAGS="-g"
4801 else
4802 if test "$GXX" = yes; then
4803 CXXFLAGS="-O2"
4804 else
4805 CXXFLAGS=
4808 ac_ext=c
4809 ac_cpp='$CPP $CPPFLAGS'
4810 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4811 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4812 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4814 depcc="$CXX" am_compiler_list=
4816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4817 $as_echo_n "checking dependency style of $depcc... " >&6; }
4818 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4819 $as_echo_n "(cached) " >&6
4820 else
4821 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4822 # We make a subdir and do the tests there. Otherwise we can end up
4823 # making bogus files that we don't know about and never remove. For
4824 # instance it was reported that on HP-UX the gcc test will end up
4825 # making a dummy file named 'D' -- because '-MD' means "put the output
4826 # in D".
4827 rm -rf conftest.dir
4828 mkdir conftest.dir
4829 # Copy depcomp to subdir because otherwise we won't find it if we're
4830 # using a relative directory.
4831 cp "$am_depcomp" conftest.dir
4832 cd conftest.dir
4833 # We will build objects and dependencies in a subdirectory because
4834 # it helps to detect inapplicable dependency modes. For instance
4835 # both Tru64's cc and ICC support -MD to output dependencies as a
4836 # side effect of compilation, but ICC will put the dependencies in
4837 # the current directory while Tru64 will put them in the object
4838 # directory.
4839 mkdir sub
4841 am_cv_CXX_dependencies_compiler_type=none
4842 if test "$am_compiler_list" = ""; then
4843 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4845 am__universal=false
4846 case " $depcc " in #(
4847 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4848 esac
4850 for depmode in $am_compiler_list; do
4851 # Setup a source with many dependencies, because some compilers
4852 # like to wrap large dependency lists on column 80 (with \), and
4853 # we should not choose a depcomp mode which is confused by this.
4855 # We need to recreate these files for each test, as the compiler may
4856 # overwrite some of them when testing with obscure command lines.
4857 # This happens at least with the AIX C compiler.
4858 : > sub/conftest.c
4859 for i in 1 2 3 4 5 6; do
4860 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4861 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4862 # Solaris 10 /bin/sh.
4863 echo '/* dummy */' > sub/conftst$i.h
4864 done
4865 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4867 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4868 # mode. It turns out that the SunPro C++ compiler does not properly
4869 # handle '-M -o', and we need to detect this. Also, some Intel
4870 # versions had trouble with output in subdirs.
4871 am__obj=sub/conftest.${OBJEXT-o}
4872 am__minus_obj="-o $am__obj"
4873 case $depmode in
4874 gcc)
4875 # This depmode causes a compiler race in universal mode.
4876 test "$am__universal" = false || continue
4878 nosideeffect)
4879 # After this tag, mechanisms are not by side-effect, so they'll
4880 # only be used when explicitly requested.
4881 if test "x$enable_dependency_tracking" = xyes; then
4882 continue
4883 else
4884 break
4887 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4888 # This compiler won't grok '-c -o', but also, the minuso test has
4889 # not run yet. These depmodes are late enough in the game, and
4890 # so weak that their functioning should not be impacted.
4891 am__obj=conftest.${OBJEXT-o}
4892 am__minus_obj=
4894 none) break ;;
4895 esac
4896 if depmode=$depmode \
4897 source=sub/conftest.c object=$am__obj \
4898 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4899 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4900 >/dev/null 2>conftest.err &&
4901 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4902 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4903 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4904 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4905 # icc doesn't choke on unknown options, it will just issue warnings
4906 # or remarks (even with -Werror). So we grep stderr for any message
4907 # that says an option was ignored or not supported.
4908 # When given -MP, icc 7.0 and 7.1 complain thusly:
4909 # icc: Command line warning: ignoring option '-M'; no argument required
4910 # The diagnosis changed in icc 8.0:
4911 # icc: Command line remark: option '-MP' not supported
4912 if (grep 'ignoring option' conftest.err ||
4913 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4914 am_cv_CXX_dependencies_compiler_type=$depmode
4915 break
4918 done
4920 cd ..
4921 rm -rf conftest.dir
4922 else
4923 am_cv_CXX_dependencies_compiler_type=none
4927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4928 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4929 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4932 test "x$enable_dependency_tracking" != xno \
4933 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4934 am__fastdepCXX_TRUE=
4935 am__fastdepCXX_FALSE='#'
4936 else
4937 am__fastdepCXX_TRUE='#'
4938 am__fastdepCXX_FALSE=
4942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4943 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4944 if ${ac_cv_path_GREP+:} false; then :
4945 $as_echo_n "(cached) " >&6
4946 else
4947 if test -z "$GREP"; then
4948 ac_path_GREP_found=false
4949 # Loop through the user's path and test for each of PROGNAME-LIST
4950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4951 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4953 IFS=$as_save_IFS
4954 test -z "$as_dir" && as_dir=.
4955 for ac_prog in grep ggrep; do
4956 for ac_exec_ext in '' $ac_executable_extensions; do
4957 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4958 as_fn_executable_p "$ac_path_GREP" || continue
4959 # Check for GNU ac_path_GREP and select it if it is found.
4960 # Check for GNU $ac_path_GREP
4961 case `"$ac_path_GREP" --version 2>&1` in
4962 *GNU*)
4963 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4965 ac_count=0
4966 $as_echo_n 0123456789 >"conftest.in"
4967 while :
4969 cat "conftest.in" "conftest.in" >"conftest.tmp"
4970 mv "conftest.tmp" "conftest.in"
4971 cp "conftest.in" "conftest.nl"
4972 $as_echo 'GREP' >> "conftest.nl"
4973 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4974 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4975 as_fn_arith $ac_count + 1 && ac_count=$as_val
4976 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4977 # Best one so far, save it but keep looking for a better one
4978 ac_cv_path_GREP="$ac_path_GREP"
4979 ac_path_GREP_max=$ac_count
4981 # 10*(2^10) chars as input seems more than enough
4982 test $ac_count -gt 10 && break
4983 done
4984 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4985 esac
4987 $ac_path_GREP_found && break 3
4988 done
4989 done
4990 done
4991 IFS=$as_save_IFS
4992 if test -z "$ac_cv_path_GREP"; then
4993 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4995 else
4996 ac_cv_path_GREP=$GREP
5000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5001 $as_echo "$ac_cv_path_GREP" >&6; }
5002 GREP="$ac_cv_path_GREP"
5006 ac_ext=c
5007 ac_cpp='$CPP $CPPFLAGS'
5008 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5009 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5010 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5012 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5013 # On Suns, sometimes $CPP names a directory.
5014 if test -n "$CPP" && test -d "$CPP"; then
5015 CPP=
5017 if test -z "$CPP"; then
5018 if ${ac_cv_prog_CPP+:} false; then :
5019 $as_echo_n "(cached) " >&6
5020 else
5021 # Double quotes because CPP needs to be expanded
5022 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5024 ac_preproc_ok=false
5025 for ac_c_preproc_warn_flag in '' yes
5027 # Use a header file that comes with gcc, so configuring glibc
5028 # with a fresh cross-compiler works.
5029 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5030 # <limits.h> exists even on freestanding compilers.
5031 # On the NeXT, cc -E runs the code through the compiler's parser,
5032 # not just through cpp. "Syntax error" is here to catch this case.
5033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5034 /* end confdefs.h. */
5035 #ifdef __STDC__
5036 # include <limits.h>
5037 #else
5038 # include <assert.h>
5039 #endif
5040 Syntax error
5041 _ACEOF
5042 if ac_fn_c_try_cpp "$LINENO"; then :
5044 else
5045 # Broken: fails on valid input.
5046 continue
5048 rm -f conftest.err conftest.i conftest.$ac_ext
5050 # OK, works on sane cases. Now check whether nonexistent headers
5051 # can be detected and how.
5052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5053 /* end confdefs.h. */
5054 #include <ac_nonexistent.h>
5055 _ACEOF
5056 if ac_fn_c_try_cpp "$LINENO"; then :
5057 # Broken: success on invalid input.
5058 continue
5059 else
5060 # Passes both tests.
5061 ac_preproc_ok=:
5062 break
5064 rm -f conftest.err conftest.i conftest.$ac_ext
5066 done
5067 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5068 rm -f conftest.i conftest.err conftest.$ac_ext
5069 if $ac_preproc_ok; then :
5070 break
5073 done
5074 ac_cv_prog_CPP=$CPP
5077 CPP=$ac_cv_prog_CPP
5078 else
5079 ac_cv_prog_CPP=$CPP
5081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5082 $as_echo "$CPP" >&6; }
5083 ac_preproc_ok=false
5084 for ac_c_preproc_warn_flag in '' yes
5086 # Use a header file that comes with gcc, so configuring glibc
5087 # with a fresh cross-compiler works.
5088 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5089 # <limits.h> exists even on freestanding compilers.
5090 # On the NeXT, cc -E runs the code through the compiler's parser,
5091 # not just through cpp. "Syntax error" is here to catch this case.
5092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5093 /* end confdefs.h. */
5094 #ifdef __STDC__
5095 # include <limits.h>
5096 #else
5097 # include <assert.h>
5098 #endif
5099 Syntax error
5100 _ACEOF
5101 if ac_fn_c_try_cpp "$LINENO"; then :
5103 else
5104 # Broken: fails on valid input.
5105 continue
5107 rm -f conftest.err conftest.i conftest.$ac_ext
5109 # OK, works on sane cases. Now check whether nonexistent headers
5110 # can be detected and how.
5111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5112 /* end confdefs.h. */
5113 #include <ac_nonexistent.h>
5114 _ACEOF
5115 if ac_fn_c_try_cpp "$LINENO"; then :
5116 # Broken: success on invalid input.
5117 continue
5118 else
5119 # Passes both tests.
5120 ac_preproc_ok=:
5121 break
5123 rm -f conftest.err conftest.i conftest.$ac_ext
5125 done
5126 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5127 rm -f conftest.i conftest.err conftest.$ac_ext
5128 if $ac_preproc_ok; then :
5130 else
5131 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5132 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5133 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5134 See \`config.log' for more details" "$LINENO" 5; }
5137 ac_ext=c
5138 ac_cpp='$CPP $CPPFLAGS'
5139 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5140 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5141 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5145 $as_echo_n "checking for egrep... " >&6; }
5146 if ${ac_cv_path_EGREP+:} false; then :
5147 $as_echo_n "(cached) " >&6
5148 else
5149 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5150 then ac_cv_path_EGREP="$GREP -E"
5151 else
5152 if test -z "$EGREP"; then
5153 ac_path_EGREP_found=false
5154 # Loop through the user's path and test for each of PROGNAME-LIST
5155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5156 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5158 IFS=$as_save_IFS
5159 test -z "$as_dir" && as_dir=.
5160 for ac_prog in egrep; do
5161 for ac_exec_ext in '' $ac_executable_extensions; do
5162 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5163 as_fn_executable_p "$ac_path_EGREP" || continue
5164 # Check for GNU ac_path_EGREP and select it if it is found.
5165 # Check for GNU $ac_path_EGREP
5166 case `"$ac_path_EGREP" --version 2>&1` in
5167 *GNU*)
5168 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5170 ac_count=0
5171 $as_echo_n 0123456789 >"conftest.in"
5172 while :
5174 cat "conftest.in" "conftest.in" >"conftest.tmp"
5175 mv "conftest.tmp" "conftest.in"
5176 cp "conftest.in" "conftest.nl"
5177 $as_echo 'EGREP' >> "conftest.nl"
5178 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5179 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5180 as_fn_arith $ac_count + 1 && ac_count=$as_val
5181 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5182 # Best one so far, save it but keep looking for a better one
5183 ac_cv_path_EGREP="$ac_path_EGREP"
5184 ac_path_EGREP_max=$ac_count
5186 # 10*(2^10) chars as input seems more than enough
5187 test $ac_count -gt 10 && break
5188 done
5189 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5190 esac
5192 $ac_path_EGREP_found && break 3
5193 done
5194 done
5195 done
5196 IFS=$as_save_IFS
5197 if test -z "$ac_cv_path_EGREP"; then
5198 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5200 else
5201 ac_cv_path_EGREP=$EGREP
5206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5207 $as_echo "$ac_cv_path_EGREP" >&6; }
5208 EGREP="$ac_cv_path_EGREP"
5211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5212 $as_echo_n "checking for ANSI C header files... " >&6; }
5213 if ${ac_cv_header_stdc+:} false; then :
5214 $as_echo_n "(cached) " >&6
5215 else
5216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5217 /* end confdefs.h. */
5218 #include <stdlib.h>
5219 #include <stdarg.h>
5220 #include <string.h>
5221 #include <float.h>
5224 main ()
5228 return 0;
5230 _ACEOF
5231 if ac_fn_c_try_compile "$LINENO"; then :
5232 ac_cv_header_stdc=yes
5233 else
5234 ac_cv_header_stdc=no
5236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5238 if test $ac_cv_header_stdc = yes; then
5239 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5241 /* end confdefs.h. */
5242 #include <string.h>
5244 _ACEOF
5245 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5246 $EGREP "memchr" >/dev/null 2>&1; then :
5248 else
5249 ac_cv_header_stdc=no
5251 rm -f conftest*
5255 if test $ac_cv_header_stdc = yes; then
5256 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5258 /* end confdefs.h. */
5259 #include <stdlib.h>
5261 _ACEOF
5262 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5263 $EGREP "free" >/dev/null 2>&1; then :
5265 else
5266 ac_cv_header_stdc=no
5268 rm -f conftest*
5272 if test $ac_cv_header_stdc = yes; then
5273 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5274 if test "$cross_compiling" = yes; then :
5276 else
5277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5278 /* end confdefs.h. */
5279 #include <ctype.h>
5280 #include <stdlib.h>
5281 #if ((' ' & 0x0FF) == 0x020)
5282 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5283 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5284 #else
5285 # define ISLOWER(c) \
5286 (('a' <= (c) && (c) <= 'i') \
5287 || ('j' <= (c) && (c) <= 'r') \
5288 || ('s' <= (c) && (c) <= 'z'))
5289 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5290 #endif
5292 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5294 main ()
5296 int i;
5297 for (i = 0; i < 256; i++)
5298 if (XOR (islower (i), ISLOWER (i))
5299 || toupper (i) != TOUPPER (i))
5300 return 2;
5301 return 0;
5303 _ACEOF
5304 if ac_fn_c_try_run "$LINENO"; then :
5306 else
5307 ac_cv_header_stdc=no
5309 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5310 conftest.$ac_objext conftest.beam conftest.$ac_ext
5315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5316 $as_echo "$ac_cv_header_stdc" >&6; }
5317 if test $ac_cv_header_stdc = yes; then
5319 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5323 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5324 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5325 inttypes.h stdint.h unistd.h
5326 do :
5327 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5328 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5330 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5331 cat >>confdefs.h <<_ACEOF
5332 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5333 _ACEOF
5337 done
5341 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5342 if test "x$ac_cv_header_minix_config_h" = xyes; then :
5343 MINIX=yes
5344 else
5345 MINIX=
5349 if test "$MINIX" = yes; then
5351 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5354 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5357 $as_echo "#define _MINIX 1" >>confdefs.h
5362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5363 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5364 if ${ac_cv_safe_to_define___extensions__+:} false; then :
5365 $as_echo_n "(cached) " >&6
5366 else
5367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5368 /* end confdefs.h. */
5370 # define __EXTENSIONS__ 1
5371 $ac_includes_default
5373 main ()
5377 return 0;
5379 _ACEOF
5380 if ac_fn_c_try_compile "$LINENO"; then :
5381 ac_cv_safe_to_define___extensions__=yes
5382 else
5383 ac_cv_safe_to_define___extensions__=no
5385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5388 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5389 test $ac_cv_safe_to_define___extensions__ = yes &&
5390 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5392 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5394 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5396 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5398 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5411 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5412 if test -n "$ac_tool_prefix"; then
5413 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5414 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5416 $as_echo_n "checking for $ac_word... " >&6; }
5417 if ${ac_cv_path_PKG_CONFIG+:} false; then :
5418 $as_echo_n "(cached) " >&6
5419 else
5420 case $PKG_CONFIG in
5421 [\\/]* | ?:[\\/]*)
5422 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5426 for as_dir in $PATH
5428 IFS=$as_save_IFS
5429 test -z "$as_dir" && as_dir=.
5430 for ac_exec_ext in '' $ac_executable_extensions; do
5431 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5432 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5434 break 2
5436 done
5437 done
5438 IFS=$as_save_IFS
5441 esac
5443 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5444 if test -n "$PKG_CONFIG"; then
5445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5446 $as_echo "$PKG_CONFIG" >&6; }
5447 else
5448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5449 $as_echo "no" >&6; }
5454 if test -z "$ac_cv_path_PKG_CONFIG"; then
5455 ac_pt_PKG_CONFIG=$PKG_CONFIG
5456 # Extract the first word of "pkg-config", so it can be a program name with args.
5457 set dummy pkg-config; ac_word=$2
5458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5459 $as_echo_n "checking for $ac_word... " >&6; }
5460 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5461 $as_echo_n "(cached) " >&6
5462 else
5463 case $ac_pt_PKG_CONFIG in
5464 [\\/]* | ?:[\\/]*)
5465 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5469 for as_dir in $PATH
5471 IFS=$as_save_IFS
5472 test -z "$as_dir" && as_dir=.
5473 for ac_exec_ext in '' $ac_executable_extensions; do
5474 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5475 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5477 break 2
5479 done
5480 done
5481 IFS=$as_save_IFS
5484 esac
5486 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5487 if test -n "$ac_pt_PKG_CONFIG"; then
5488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5489 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5490 else
5491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5492 $as_echo "no" >&6; }
5495 if test "x$ac_pt_PKG_CONFIG" = x; then
5496 PKG_CONFIG=""
5497 else
5498 case $cross_compiling:$ac_tool_warned in
5499 yes:)
5500 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5501 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5502 ac_tool_warned=yes ;;
5503 esac
5504 PKG_CONFIG=$ac_pt_PKG_CONFIG
5506 else
5507 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5511 if test -n "$PKG_CONFIG"; then
5512 _pkg_min_version=0.9.0
5513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5514 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5515 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5517 $as_echo "yes" >&6; }
5518 else
5519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5520 $as_echo "no" >&6; }
5521 PKG_CONFIG=""
5525 case `pwd` in
5526 *\ * | *\ *)
5527 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5528 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5529 esac
5533 macro_version='2.2.7a'
5534 macro_revision='1.3134'
5548 ltmain="$ac_aux_dir/ltmain.sh"
5550 # Backslashify metacharacters that are still active within
5551 # double-quoted strings.
5552 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5554 # Same as above, but do not quote variable references.
5555 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5557 # Sed substitution to delay expansion of an escaped shell variable in a
5558 # double_quote_subst'ed string.
5559 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5561 # Sed substitution to delay expansion of an escaped single quote.
5562 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5564 # Sed substitution to avoid accidental globbing in evaled expressions
5565 no_glob_subst='s/\*/\\\*/g'
5567 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5568 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5569 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5572 $as_echo_n "checking how to print strings... " >&6; }
5573 # Test print first, because it will be a builtin if present.
5574 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5575 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5576 ECHO='print -r --'
5577 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5578 ECHO='printf %s\n'
5579 else
5580 # Use this function as a fallback that always works.
5581 func_fallback_echo ()
5583 eval 'cat <<_LTECHO_EOF
5585 _LTECHO_EOF'
5587 ECHO='func_fallback_echo'
5590 # func_echo_all arg...
5591 # Invoke $ECHO with all args, space-separated.
5592 func_echo_all ()
5594 $ECHO ""
5597 case "$ECHO" in
5598 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5599 $as_echo "printf" >&6; } ;;
5600 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5601 $as_echo "print -r" >&6; } ;;
5602 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5603 $as_echo "cat" >&6; } ;;
5604 esac
5619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5620 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5621 if ${ac_cv_path_SED+:} false; then :
5622 $as_echo_n "(cached) " >&6
5623 else
5624 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5625 for ac_i in 1 2 3 4 5 6 7; do
5626 ac_script="$ac_script$as_nl$ac_script"
5627 done
5628 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5629 { ac_script=; unset ac_script;}
5630 if test -z "$SED"; then
5631 ac_path_SED_found=false
5632 # Loop through the user's path and test for each of PROGNAME-LIST
5633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5634 for as_dir in $PATH
5636 IFS=$as_save_IFS
5637 test -z "$as_dir" && as_dir=.
5638 for ac_prog in sed gsed; do
5639 for ac_exec_ext in '' $ac_executable_extensions; do
5640 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5641 as_fn_executable_p "$ac_path_SED" || continue
5642 # Check for GNU ac_path_SED and select it if it is found.
5643 # Check for GNU $ac_path_SED
5644 case `"$ac_path_SED" --version 2>&1` in
5645 *GNU*)
5646 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5648 ac_count=0
5649 $as_echo_n 0123456789 >"conftest.in"
5650 while :
5652 cat "conftest.in" "conftest.in" >"conftest.tmp"
5653 mv "conftest.tmp" "conftest.in"
5654 cp "conftest.in" "conftest.nl"
5655 $as_echo '' >> "conftest.nl"
5656 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5657 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5658 as_fn_arith $ac_count + 1 && ac_count=$as_val
5659 if test $ac_count -gt ${ac_path_SED_max-0}; then
5660 # Best one so far, save it but keep looking for a better one
5661 ac_cv_path_SED="$ac_path_SED"
5662 ac_path_SED_max=$ac_count
5664 # 10*(2^10) chars as input seems more than enough
5665 test $ac_count -gt 10 && break
5666 done
5667 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5668 esac
5670 $ac_path_SED_found && break 3
5671 done
5672 done
5673 done
5674 IFS=$as_save_IFS
5675 if test -z "$ac_cv_path_SED"; then
5676 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5678 else
5679 ac_cv_path_SED=$SED
5683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5684 $as_echo "$ac_cv_path_SED" >&6; }
5685 SED="$ac_cv_path_SED"
5686 rm -f conftest.sed
5688 test -z "$SED" && SED=sed
5689 Xsed="$SED -e 1s/^X//"
5701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5702 $as_echo_n "checking for fgrep... " >&6; }
5703 if ${ac_cv_path_FGREP+:} false; then :
5704 $as_echo_n "(cached) " >&6
5705 else
5706 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5707 then ac_cv_path_FGREP="$GREP -F"
5708 else
5709 if test -z "$FGREP"; then
5710 ac_path_FGREP_found=false
5711 # Loop through the user's path and test for each of PROGNAME-LIST
5712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5713 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5715 IFS=$as_save_IFS
5716 test -z "$as_dir" && as_dir=.
5717 for ac_prog in fgrep; do
5718 for ac_exec_ext in '' $ac_executable_extensions; do
5719 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5720 as_fn_executable_p "$ac_path_FGREP" || continue
5721 # Check for GNU ac_path_FGREP and select it if it is found.
5722 # Check for GNU $ac_path_FGREP
5723 case `"$ac_path_FGREP" --version 2>&1` in
5724 *GNU*)
5725 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5727 ac_count=0
5728 $as_echo_n 0123456789 >"conftest.in"
5729 while :
5731 cat "conftest.in" "conftest.in" >"conftest.tmp"
5732 mv "conftest.tmp" "conftest.in"
5733 cp "conftest.in" "conftest.nl"
5734 $as_echo 'FGREP' >> "conftest.nl"
5735 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5736 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5737 as_fn_arith $ac_count + 1 && ac_count=$as_val
5738 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5739 # Best one so far, save it but keep looking for a better one
5740 ac_cv_path_FGREP="$ac_path_FGREP"
5741 ac_path_FGREP_max=$ac_count
5743 # 10*(2^10) chars as input seems more than enough
5744 test $ac_count -gt 10 && break
5745 done
5746 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5747 esac
5749 $ac_path_FGREP_found && break 3
5750 done
5751 done
5752 done
5753 IFS=$as_save_IFS
5754 if test -z "$ac_cv_path_FGREP"; then
5755 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5757 else
5758 ac_cv_path_FGREP=$FGREP
5763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5764 $as_echo "$ac_cv_path_FGREP" >&6; }
5765 FGREP="$ac_cv_path_FGREP"
5768 test -z "$GREP" && GREP=grep
5788 # Check whether --with-gnu-ld was given.
5789 if test "${with_gnu_ld+set}" = set; then :
5790 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5791 else
5792 with_gnu_ld=no
5795 ac_prog=ld
5796 if test "$GCC" = yes; then
5797 # Check if gcc -print-prog-name=ld gives a path.
5798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5799 $as_echo_n "checking for ld used by $CC... " >&6; }
5800 case $host in
5801 *-*-mingw*)
5802 # gcc leaves a trailing carriage return which upsets mingw
5803 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5805 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5806 esac
5807 case $ac_prog in
5808 # Accept absolute paths.
5809 [\\/]* | ?:[\\/]*)
5810 re_direlt='/[^/][^/]*/\.\./'
5811 # Canonicalize the pathname of ld
5812 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5813 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5814 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5815 done
5816 test -z "$LD" && LD="$ac_prog"
5819 # If it fails, then pretend we aren't using GCC.
5820 ac_prog=ld
5823 # If it is relative, then search for the first ld in PATH.
5824 with_gnu_ld=unknown
5826 esac
5827 elif test "$with_gnu_ld" = yes; then
5828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5829 $as_echo_n "checking for GNU ld... " >&6; }
5830 else
5831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5832 $as_echo_n "checking for non-GNU ld... " >&6; }
5834 if ${lt_cv_path_LD+:} false; then :
5835 $as_echo_n "(cached) " >&6
5836 else
5837 if test -z "$LD"; then
5838 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5839 for ac_dir in $PATH; do
5840 IFS="$lt_save_ifs"
5841 test -z "$ac_dir" && ac_dir=.
5842 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5843 lt_cv_path_LD="$ac_dir/$ac_prog"
5844 # Check to see if the program is GNU ld. I'd rather use --version,
5845 # but apparently some variants of GNU ld only accept -v.
5846 # Break only if it was the GNU/non-GNU ld that we prefer.
5847 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5848 *GNU* | *'with BFD'*)
5849 test "$with_gnu_ld" != no && break
5852 test "$with_gnu_ld" != yes && break
5854 esac
5856 done
5857 IFS="$lt_save_ifs"
5858 else
5859 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5863 LD="$lt_cv_path_LD"
5864 if test -n "$LD"; then
5865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5866 $as_echo "$LD" >&6; }
5867 else
5868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5869 $as_echo "no" >&6; }
5871 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5873 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5874 if ${lt_cv_prog_gnu_ld+:} false; then :
5875 $as_echo_n "(cached) " >&6
5876 else
5877 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5878 case `$LD -v 2>&1 </dev/null` in
5879 *GNU* | *'with BFD'*)
5880 lt_cv_prog_gnu_ld=yes
5883 lt_cv_prog_gnu_ld=no
5885 esac
5887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5888 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5889 with_gnu_ld=$lt_cv_prog_gnu_ld
5899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5900 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5901 if ${lt_cv_path_NM+:} false; then :
5902 $as_echo_n "(cached) " >&6
5903 else
5904 if test -n "$NM"; then
5905 # Let the user override the nm to test.
5906 lt_nm_to_check="$NM"
5907 else
5908 lt_nm_to_check="${ac_tool_prefix}nm"
5909 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5910 lt_nm_to_check="$lt_nm_to_check nm"
5913 for lt_tmp_nm in "$lt_nm_to_check"; do
5914 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5915 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5916 IFS="$lt_save_ifs"
5917 test -z "$ac_dir" && ac_dir=.
5918 # Strip out any user-provided options from the nm to test twice,
5919 # the first time to test to see if nm (rather than its options) has
5920 # an explicit path, the second time to yield a file which can be
5921 # nm'ed itself.
5922 tmp_nm_path="`$ECHO "$lt_tmp_nm" | sed 's, -.*$,,'`"
5923 case "$tmp_nm_path" in
5924 */*|*\\*) tmp_nm="$lt_tmp_nm";;
5925 *) tmp_nm="$ac_dir/$lt_tmp_nm";;
5926 esac
5927 tmp_nm_to_nm="`$ECHO "$tmp_nm" | sed 's, -.*$,,'`"
5928 if test -f "$tmp_nm_to_nm" || test -f "$tmp_nm_to_nm$ac_exeext" ; then
5929 # Check to see if the nm accepts a BSD-compat flag.
5930 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5931 # nm: unknown option "B" ignored
5932 case `"$tmp_nm" -B "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
5933 *$tmp_nm*) lt_cv_path_NM="$tmp_nm -B"
5934 break
5937 case `"$tmp_nm" -p "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
5938 *$tmp_nm*)
5939 lt_cv_path_NM="$tmp_nm -p"
5940 break
5943 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5944 continue # so that we can try to find one that supports BSD flags
5946 esac
5948 esac
5950 done
5951 IFS="$lt_save_ifs"
5952 done
5953 : ${lt_cv_path_NM=no}
5955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5956 $as_echo "$lt_cv_path_NM" >&6; }
5957 if test "$lt_cv_path_NM" != "no"; then
5958 NM="$lt_cv_path_NM"
5959 else
5960 # Didn't find any BSD compatible name lister, look for dumpbin.
5961 if test -n "$DUMPBIN"; then :
5962 # Let the user override the test.
5963 else
5964 if test -n "$ac_tool_prefix"; then
5965 for ac_prog in dumpbin "link -dump"
5967 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5968 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5970 $as_echo_n "checking for $ac_word... " >&6; }
5971 if ${ac_cv_prog_DUMPBIN+:} false; then :
5972 $as_echo_n "(cached) " >&6
5973 else
5974 if test -n "$DUMPBIN"; then
5975 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5976 else
5977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5978 for as_dir in $PATH
5980 IFS=$as_save_IFS
5981 test -z "$as_dir" && as_dir=.
5982 for ac_exec_ext in '' $ac_executable_extensions; do
5983 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5984 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5986 break 2
5988 done
5989 done
5990 IFS=$as_save_IFS
5994 DUMPBIN=$ac_cv_prog_DUMPBIN
5995 if test -n "$DUMPBIN"; then
5996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5997 $as_echo "$DUMPBIN" >&6; }
5998 else
5999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6000 $as_echo "no" >&6; }
6004 test -n "$DUMPBIN" && break
6005 done
6007 if test -z "$DUMPBIN"; then
6008 ac_ct_DUMPBIN=$DUMPBIN
6009 for ac_prog in dumpbin "link -dump"
6011 # Extract the first word of "$ac_prog", so it can be a program name with args.
6012 set dummy $ac_prog; ac_word=$2
6013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6014 $as_echo_n "checking for $ac_word... " >&6; }
6015 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6016 $as_echo_n "(cached) " >&6
6017 else
6018 if test -n "$ac_ct_DUMPBIN"; then
6019 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6020 else
6021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6022 for as_dir in $PATH
6024 IFS=$as_save_IFS
6025 test -z "$as_dir" && as_dir=.
6026 for ac_exec_ext in '' $ac_executable_extensions; do
6027 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6028 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6030 break 2
6032 done
6033 done
6034 IFS=$as_save_IFS
6038 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6039 if test -n "$ac_ct_DUMPBIN"; then
6040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6041 $as_echo "$ac_ct_DUMPBIN" >&6; }
6042 else
6043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6044 $as_echo "no" >&6; }
6048 test -n "$ac_ct_DUMPBIN" && break
6049 done
6051 if test "x$ac_ct_DUMPBIN" = x; then
6052 DUMPBIN=":"
6053 else
6054 case $cross_compiling:$ac_tool_warned in
6055 yes:)
6056 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6057 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6058 ac_tool_warned=yes ;;
6059 esac
6060 DUMPBIN=$ac_ct_DUMPBIN
6064 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6065 *COFF*)
6066 DUMPBIN="$DUMPBIN -symbols"
6069 DUMPBIN=:
6071 esac
6074 if test "$DUMPBIN" != ":"; then
6075 NM="$DUMPBIN"
6078 test -z "$NM" && NM=nm
6085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6086 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6087 if ${lt_cv_nm_interface+:} false; then :
6088 $as_echo_n "(cached) " >&6
6089 else
6090 lt_cv_nm_interface="BSD nm"
6091 echo "int some_variable = 0;" > conftest.$ac_ext
6092 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6093 (eval "$ac_compile" 2>conftest.err)
6094 cat conftest.err >&5
6095 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6096 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6097 cat conftest.err >&5
6098 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6099 cat conftest.out >&5
6100 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6101 lt_cv_nm_interface="MS dumpbin"
6103 rm -f conftest*
6105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6106 $as_echo "$lt_cv_nm_interface" >&6; }
6108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6109 $as_echo_n "checking whether ln -s works... " >&6; }
6110 LN_S=$as_ln_s
6111 if test "$LN_S" = "ln -s"; then
6112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6113 $as_echo "yes" >&6; }
6114 else
6115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6116 $as_echo "no, using $LN_S" >&6; }
6119 # find the maximum length of command line arguments
6120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6121 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6122 if ${lt_cv_sys_max_cmd_len+:} false; then :
6123 $as_echo_n "(cached) " >&6
6124 else
6126 teststring="ABCD"
6128 case $build_os in
6129 msdosdjgpp*)
6130 # On DJGPP, this test can blow up pretty badly due to problems in libc
6131 # (any single argument exceeding 2000 bytes causes a buffer overrun
6132 # during glob expansion). Even if it were fixed, the result of this
6133 # check would be larger than it should be.
6134 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6137 gnu*)
6138 # Under GNU Hurd, this test is not required because there is
6139 # no limit to the length of command line arguments.
6140 # Libtool will interpret -1 as no limit whatsoever
6141 lt_cv_sys_max_cmd_len=-1;
6144 cygwin* | mingw* | cegcc*)
6145 # On Win9x/ME, this test blows up -- it succeeds, but takes
6146 # about 5 minutes as the teststring grows exponentially.
6147 # Worse, since 9x/ME are not pre-emptively multitasking,
6148 # you end up with a "frozen" computer, even though with patience
6149 # the test eventually succeeds (with a max line length of 256k).
6150 # Instead, let's just punt: use the minimum linelength reported by
6151 # all of the supported platforms: 8192 (on NT/2K/XP).
6152 lt_cv_sys_max_cmd_len=8192;
6155 mint*)
6156 # On MiNT this can take a long time and run out of memory.
6157 lt_cv_sys_max_cmd_len=8192;
6160 amigaos*)
6161 # On AmigaOS with pdksh, this test takes hours, literally.
6162 # So we just punt and use a minimum line length of 8192.
6163 lt_cv_sys_max_cmd_len=8192;
6166 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6167 # This has been around since 386BSD, at least. Likely further.
6168 if test -x /sbin/sysctl; then
6169 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6170 elif test -x /usr/sbin/sysctl; then
6171 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6172 else
6173 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6175 # And add a safety zone
6176 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6177 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6180 interix*)
6181 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6182 lt_cv_sys_max_cmd_len=196608
6185 osf*)
6186 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6187 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6188 # nice to cause kernel panics so lets avoid the loop below.
6189 # First set a reasonable default.
6190 lt_cv_sys_max_cmd_len=16384
6192 if test -x /sbin/sysconfig; then
6193 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6194 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6195 esac
6198 sco3.2v5*)
6199 lt_cv_sys_max_cmd_len=102400
6201 sysv5* | sco5v6* | sysv4.2uw2*)
6202 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6203 if test -n "$kargmax"; then
6204 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6205 else
6206 lt_cv_sys_max_cmd_len=32768
6210 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6211 if test -n "$lt_cv_sys_max_cmd_len"; then
6212 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6213 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6214 else
6215 # Make teststring a little bigger before we do anything with it.
6216 # a 1K string should be a reasonable start.
6217 for i in 1 2 3 4 5 6 7 8 ; do
6218 teststring=$teststring$teststring
6219 done
6220 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6221 # If test is not a shell built-in, we'll probably end up computing a
6222 # maximum length that is only half of the actual maximum length, but
6223 # we can't tell.
6224 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6225 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6226 test $i != 17 # 1/2 MB should be enough
6228 i=`expr $i + 1`
6229 teststring=$teststring$teststring
6230 done
6231 # Only check the string length outside the loop.
6232 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6233 teststring=
6234 # Add a significant safety factor because C++ compilers can tack on
6235 # massive amounts of additional arguments before passing them to the
6236 # linker. It appears as though 1/2 is a usable value.
6237 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6240 esac
6244 if test -n $lt_cv_sys_max_cmd_len ; then
6245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6246 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6247 else
6248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6249 $as_echo "none" >&6; }
6251 max_cmd_len=$lt_cv_sys_max_cmd_len
6258 : ${CP="cp -f"}
6259 : ${MV="mv -f"}
6260 : ${RM="rm -f"}
6262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6263 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6264 # Try some XSI features
6265 xsi_shell=no
6266 ( _lt_dummy="a/b/c"
6267 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6268 = c,a/b,, \
6269 && eval 'test $(( 1 + 1 )) -eq 2 \
6270 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6271 && xsi_shell=yes
6272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6273 $as_echo "$xsi_shell" >&6; }
6276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6277 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6278 lt_shell_append=no
6279 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6280 >/dev/null 2>&1 \
6281 && lt_shell_append=yes
6282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6283 $as_echo "$lt_shell_append" >&6; }
6286 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6287 lt_unset=unset
6288 else
6289 lt_unset=false
6296 # test EBCDIC or ASCII
6297 case `echo X|tr X '\101'` in
6298 A) # ASCII based system
6299 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6300 lt_SP2NL='tr \040 \012'
6301 lt_NL2SP='tr \015\012 \040\040'
6303 *) # EBCDIC based system
6304 lt_SP2NL='tr \100 \n'
6305 lt_NL2SP='tr \r\n \100\100'
6307 esac
6317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6318 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6319 if ${lt_cv_ld_reload_flag+:} false; then :
6320 $as_echo_n "(cached) " >&6
6321 else
6322 lt_cv_ld_reload_flag='-r'
6324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6325 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6326 reload_flag=$lt_cv_ld_reload_flag
6327 case $reload_flag in
6328 "" | " "*) ;;
6329 *) reload_flag=" $reload_flag" ;;
6330 esac
6331 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6332 case $host_os in
6333 darwin*)
6334 if test "$GCC" = yes; then
6335 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6336 else
6337 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6340 esac
6350 if test -n "$ac_tool_prefix"; then
6351 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6352 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6354 $as_echo_n "checking for $ac_word... " >&6; }
6355 if ${ac_cv_prog_OBJDUMP+:} false; then :
6356 $as_echo_n "(cached) " >&6
6357 else
6358 if test -n "$OBJDUMP"; then
6359 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6360 else
6361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6362 for as_dir in $PATH
6364 IFS=$as_save_IFS
6365 test -z "$as_dir" && as_dir=.
6366 for ac_exec_ext in '' $ac_executable_extensions; do
6367 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6368 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6370 break 2
6372 done
6373 done
6374 IFS=$as_save_IFS
6378 OBJDUMP=$ac_cv_prog_OBJDUMP
6379 if test -n "$OBJDUMP"; then
6380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6381 $as_echo "$OBJDUMP" >&6; }
6382 else
6383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6384 $as_echo "no" >&6; }
6389 if test -z "$ac_cv_prog_OBJDUMP"; then
6390 ac_ct_OBJDUMP=$OBJDUMP
6391 # Extract the first word of "objdump", so it can be a program name with args.
6392 set dummy objdump; ac_word=$2
6393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6394 $as_echo_n "checking for $ac_word... " >&6; }
6395 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6396 $as_echo_n "(cached) " >&6
6397 else
6398 if test -n "$ac_ct_OBJDUMP"; then
6399 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6400 else
6401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6402 for as_dir in $PATH
6404 IFS=$as_save_IFS
6405 test -z "$as_dir" && as_dir=.
6406 for ac_exec_ext in '' $ac_executable_extensions; do
6407 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6408 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6410 break 2
6412 done
6413 done
6414 IFS=$as_save_IFS
6418 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6419 if test -n "$ac_ct_OBJDUMP"; then
6420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6421 $as_echo "$ac_ct_OBJDUMP" >&6; }
6422 else
6423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6424 $as_echo "no" >&6; }
6427 if test "x$ac_ct_OBJDUMP" = x; then
6428 OBJDUMP="false"
6429 else
6430 case $cross_compiling:$ac_tool_warned in
6431 yes:)
6432 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6433 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6434 ac_tool_warned=yes ;;
6435 esac
6436 OBJDUMP=$ac_ct_OBJDUMP
6438 else
6439 OBJDUMP="$ac_cv_prog_OBJDUMP"
6442 test -z "$OBJDUMP" && OBJDUMP=objdump
6452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6453 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6454 if ${lt_cv_deplibs_check_method+:} false; then :
6455 $as_echo_n "(cached) " >&6
6456 else
6457 lt_cv_file_magic_cmd='$MAGIC_CMD'
6458 lt_cv_file_magic_test_file=
6459 lt_cv_deplibs_check_method='unknown'
6460 # Need to set the preceding variable on all platforms that support
6461 # interlibrary dependencies.
6462 # 'none' -- dependencies not supported.
6463 # `unknown' -- same as none, but documents that we really don't know.
6464 # 'pass_all' -- all dependencies passed with no checks.
6465 # 'test_compile' -- check by making test program.
6466 # 'file_magic [[regex]]' -- check by looking for files in library path
6467 # which responds to the $file_magic_cmd with a given extended regex.
6468 # If you have `file' or equivalent on your system and you're not sure
6469 # whether `pass_all' will *always* work, you probably want this one.
6471 case $host_os in
6472 aix[4-9]*)
6473 lt_cv_deplibs_check_method=pass_all
6476 beos*)
6477 lt_cv_deplibs_check_method=pass_all
6480 bsdi[45]*)
6481 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6482 lt_cv_file_magic_cmd='/usr/bin/file -L'
6483 lt_cv_file_magic_test_file=/shlib/libc.so
6486 cygwin*)
6487 # func_win32_libid is a shell function defined in ltmain.sh
6488 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6489 lt_cv_file_magic_cmd='func_win32_libid'
6492 mingw* | pw32*)
6493 # Base MSYS/MinGW do not provide the 'file' command needed by
6494 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6495 # unless we find 'file', for example because we are cross-compiling.
6496 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6497 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6498 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6499 lt_cv_file_magic_cmd='func_win32_libid'
6500 else
6501 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6502 lt_cv_file_magic_cmd='$OBJDUMP -f'
6506 cegcc*)
6507 # use the weaker test based on 'objdump'. See mingw*.
6508 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6509 lt_cv_file_magic_cmd='$OBJDUMP -f'
6512 darwin* | rhapsody*)
6513 lt_cv_deplibs_check_method=pass_all
6516 freebsd* | dragonfly*)
6517 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6518 case $host_cpu in
6519 i*86 )
6520 # Not sure whether the presence of OpenBSD here was a mistake.
6521 # Let's accept both of them until this is cleared up.
6522 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6523 lt_cv_file_magic_cmd=/usr/bin/file
6524 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6526 esac
6527 else
6528 lt_cv_deplibs_check_method=pass_all
6532 gnu*)
6533 lt_cv_deplibs_check_method=pass_all
6536 haiku*)
6537 lt_cv_deplibs_check_method=pass_all
6540 hpux10.20* | hpux11*)
6541 lt_cv_file_magic_cmd=/usr/bin/file
6542 case $host_cpu in
6543 ia64*)
6544 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6545 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6547 hppa*64*)
6548 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]'
6549 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6552 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6553 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6555 esac
6558 interix[3-9]*)
6559 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6560 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6563 irix5* | irix6* | nonstopux*)
6564 case $LD in
6565 *-32|*"-32 ") libmagic=32-bit;;
6566 *-n32|*"-n32 ") libmagic=N32;;
6567 *-64|*"-64 ") libmagic=64-bit;;
6568 *) libmagic=never-match;;
6569 esac
6570 lt_cv_deplibs_check_method=pass_all
6573 # This must be Linux ELF.
6574 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6575 lt_cv_deplibs_check_method=pass_all
6578 netbsd*)
6579 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6580 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6581 else
6582 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6586 newos6*)
6587 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6588 lt_cv_file_magic_cmd=/usr/bin/file
6589 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6592 *nto* | *qnx*)
6593 lt_cv_deplibs_check_method=pass_all
6596 openbsd*)
6597 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6598 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6599 else
6600 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6604 osf3* | osf4* | osf5*)
6605 lt_cv_deplibs_check_method=pass_all
6608 rdos*)
6609 lt_cv_deplibs_check_method=pass_all
6612 solaris*)
6613 lt_cv_deplibs_check_method=pass_all
6616 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6617 lt_cv_deplibs_check_method=pass_all
6620 sysv4 | sysv4.3*)
6621 case $host_vendor in
6622 motorola)
6623 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]'
6624 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6626 ncr)
6627 lt_cv_deplibs_check_method=pass_all
6629 sequent)
6630 lt_cv_file_magic_cmd='/bin/file'
6631 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6633 sni)
6634 lt_cv_file_magic_cmd='/bin/file'
6635 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6636 lt_cv_file_magic_test_file=/lib/libc.so
6638 siemens)
6639 lt_cv_deplibs_check_method=pass_all
6642 lt_cv_deplibs_check_method=pass_all
6644 esac
6647 tpf*)
6648 lt_cv_deplibs_check_method=pass_all
6650 esac
6653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6654 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6655 file_magic_cmd=$lt_cv_file_magic_cmd
6656 deplibs_check_method=$lt_cv_deplibs_check_method
6657 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6670 plugin_option=
6671 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
6672 for plugin in $plugin_names; do
6673 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
6674 if test x$plugin_so = x$plugin; then
6675 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
6677 if test x$plugin_so != x$plugin; then
6678 plugin_option="--plugin $plugin_so"
6679 break
6681 done
6683 if test -n "$ac_tool_prefix"; then
6684 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6685 set dummy ${ac_tool_prefix}ar; ac_word=$2
6686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6687 $as_echo_n "checking for $ac_word... " >&6; }
6688 if ${ac_cv_prog_AR+:} false; then :
6689 $as_echo_n "(cached) " >&6
6690 else
6691 if test -n "$AR"; then
6692 ac_cv_prog_AR="$AR" # Let the user override the test.
6693 else
6694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6695 for as_dir in $PATH
6697 IFS=$as_save_IFS
6698 test -z "$as_dir" && as_dir=.
6699 for ac_exec_ext in '' $ac_executable_extensions; do
6700 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6701 ac_cv_prog_AR="${ac_tool_prefix}ar"
6702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6703 break 2
6705 done
6706 done
6707 IFS=$as_save_IFS
6711 AR=$ac_cv_prog_AR
6712 if test -n "$AR"; then
6713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6714 $as_echo "$AR" >&6; }
6715 else
6716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6717 $as_echo "no" >&6; }
6722 if test -z "$ac_cv_prog_AR"; then
6723 ac_ct_AR=$AR
6724 # Extract the first word of "ar", so it can be a program name with args.
6725 set dummy ar; ac_word=$2
6726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6727 $as_echo_n "checking for $ac_word... " >&6; }
6728 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6729 $as_echo_n "(cached) " >&6
6730 else
6731 if test -n "$ac_ct_AR"; then
6732 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6733 else
6734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6735 for as_dir in $PATH
6737 IFS=$as_save_IFS
6738 test -z "$as_dir" && as_dir=.
6739 for ac_exec_ext in '' $ac_executable_extensions; do
6740 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6741 ac_cv_prog_ac_ct_AR="ar"
6742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6743 break 2
6745 done
6746 done
6747 IFS=$as_save_IFS
6751 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6752 if test -n "$ac_ct_AR"; then
6753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6754 $as_echo "$ac_ct_AR" >&6; }
6755 else
6756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6757 $as_echo "no" >&6; }
6760 if test "x$ac_ct_AR" = x; then
6761 AR="false"
6762 else
6763 case $cross_compiling:$ac_tool_warned in
6764 yes:)
6765 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6766 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6767 ac_tool_warned=yes ;;
6768 esac
6769 AR=$ac_ct_AR
6771 else
6772 AR="$ac_cv_prog_AR"
6775 test -z "$AR" && AR=ar
6776 if test -n "$plugin_option"; then
6777 if $AR --help 2>&1 | grep -q "\--plugin"; then
6778 touch conftest.c
6779 $AR $plugin_option rc conftest.a conftest.c
6780 if test "$?" != 0; then
6781 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
6782 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
6783 else
6784 AR="$AR $plugin_option"
6786 rm -f conftest.*
6789 test -z "$AR_FLAGS" && AR_FLAGS=cru
6801 if test -n "$ac_tool_prefix"; then
6802 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6803 set dummy ${ac_tool_prefix}strip; ac_word=$2
6804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6805 $as_echo_n "checking for $ac_word... " >&6; }
6806 if ${ac_cv_prog_STRIP+:} false; then :
6807 $as_echo_n "(cached) " >&6
6808 else
6809 if test -n "$STRIP"; then
6810 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6811 else
6812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6813 for as_dir in $PATH
6815 IFS=$as_save_IFS
6816 test -z "$as_dir" && as_dir=.
6817 for ac_exec_ext in '' $ac_executable_extensions; do
6818 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6819 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6821 break 2
6823 done
6824 done
6825 IFS=$as_save_IFS
6829 STRIP=$ac_cv_prog_STRIP
6830 if test -n "$STRIP"; then
6831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6832 $as_echo "$STRIP" >&6; }
6833 else
6834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6835 $as_echo "no" >&6; }
6840 if test -z "$ac_cv_prog_STRIP"; then
6841 ac_ct_STRIP=$STRIP
6842 # Extract the first word of "strip", so it can be a program name with args.
6843 set dummy strip; ac_word=$2
6844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6845 $as_echo_n "checking for $ac_word... " >&6; }
6846 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6847 $as_echo_n "(cached) " >&6
6848 else
6849 if test -n "$ac_ct_STRIP"; then
6850 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6851 else
6852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6853 for as_dir in $PATH
6855 IFS=$as_save_IFS
6856 test -z "$as_dir" && as_dir=.
6857 for ac_exec_ext in '' $ac_executable_extensions; do
6858 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6859 ac_cv_prog_ac_ct_STRIP="strip"
6860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6861 break 2
6863 done
6864 done
6865 IFS=$as_save_IFS
6869 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6870 if test -n "$ac_ct_STRIP"; then
6871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6872 $as_echo "$ac_ct_STRIP" >&6; }
6873 else
6874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6875 $as_echo "no" >&6; }
6878 if test "x$ac_ct_STRIP" = x; then
6879 STRIP=":"
6880 else
6881 case $cross_compiling:$ac_tool_warned in
6882 yes:)
6883 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6884 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6885 ac_tool_warned=yes ;;
6886 esac
6887 STRIP=$ac_ct_STRIP
6889 else
6890 STRIP="$ac_cv_prog_STRIP"
6893 test -z "$STRIP" && STRIP=:
6900 if test -n "$ac_tool_prefix"; then
6901 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6902 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6904 $as_echo_n "checking for $ac_word... " >&6; }
6905 if ${ac_cv_prog_RANLIB+:} false; then :
6906 $as_echo_n "(cached) " >&6
6907 else
6908 if test -n "$RANLIB"; then
6909 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6910 else
6911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6912 for as_dir in $PATH
6914 IFS=$as_save_IFS
6915 test -z "$as_dir" && as_dir=.
6916 for ac_exec_ext in '' $ac_executable_extensions; do
6917 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6918 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6920 break 2
6922 done
6923 done
6924 IFS=$as_save_IFS
6928 RANLIB=$ac_cv_prog_RANLIB
6929 if test -n "$RANLIB"; then
6930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6931 $as_echo "$RANLIB" >&6; }
6932 else
6933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6934 $as_echo "no" >&6; }
6939 if test -z "$ac_cv_prog_RANLIB"; then
6940 ac_ct_RANLIB=$RANLIB
6941 # Extract the first word of "ranlib", so it can be a program name with args.
6942 set dummy ranlib; ac_word=$2
6943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6944 $as_echo_n "checking for $ac_word... " >&6; }
6945 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6946 $as_echo_n "(cached) " >&6
6947 else
6948 if test -n "$ac_ct_RANLIB"; then
6949 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6950 else
6951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6952 for as_dir in $PATH
6954 IFS=$as_save_IFS
6955 test -z "$as_dir" && as_dir=.
6956 for ac_exec_ext in '' $ac_executable_extensions; do
6957 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6958 ac_cv_prog_ac_ct_RANLIB="ranlib"
6959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6960 break 2
6962 done
6963 done
6964 IFS=$as_save_IFS
6968 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6969 if test -n "$ac_ct_RANLIB"; then
6970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6971 $as_echo "$ac_ct_RANLIB" >&6; }
6972 else
6973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6974 $as_echo "no" >&6; }
6977 if test "x$ac_ct_RANLIB" = x; then
6978 RANLIB=":"
6979 else
6980 case $cross_compiling:$ac_tool_warned in
6981 yes:)
6982 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6983 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6984 ac_tool_warned=yes ;;
6985 esac
6986 RANLIB=$ac_ct_RANLIB
6988 else
6989 RANLIB="$ac_cv_prog_RANLIB"
6992 test -z "$RANLIB" && RANLIB=:
6993 if test -n "$plugin_option" && test "$RANLIB" != ":"; then
6994 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
6995 RANLIB="$RANLIB $plugin_option"
7004 # Determine commands to create old-style static archives.
7005 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7006 old_postinstall_cmds='chmod 644 $oldlib'
7007 old_postuninstall_cmds=
7009 if test -n "$RANLIB"; then
7010 case $host_os in
7011 openbsd*)
7012 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7015 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7017 esac
7018 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7021 case $host_os in
7022 darwin*)
7023 lock_old_archive_extraction=yes ;;
7025 lock_old_archive_extraction=no ;;
7026 esac
7066 # If no C compiler was specified, use CC.
7067 LTCC=${LTCC-"$CC"}
7069 # If no C compiler flags were specified, use CFLAGS.
7070 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7072 # Allow CC to be a program name with arguments.
7073 compiler=$CC
7076 # Check for command to grab the raw symbol name followed by C symbol from nm.
7077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7078 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7079 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7080 $as_echo_n "(cached) " >&6
7081 else
7083 # These are sane defaults that work on at least a few old systems.
7084 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7086 # Character class describing NM global symbol codes.
7087 symcode='[BCDEGRST]'
7089 # Regexp to match symbols that can be accessed directly from C.
7090 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7092 # Define system-specific variables.
7093 case $host_os in
7094 aix*)
7095 symcode='[BCDT]'
7097 cygwin* | mingw* | pw32* | cegcc*)
7098 symcode='[ABCDGISTW]'
7100 hpux*)
7101 if test "$host_cpu" = ia64; then
7102 symcode='[ABCDEGRST]'
7105 irix* | nonstopux*)
7106 symcode='[BCDEGRST]'
7108 osf*)
7109 symcode='[BCDEGQRST]'
7111 solaris*)
7112 symcode='[BCDRT]'
7114 sco3.2v5*)
7115 symcode='[DT]'
7117 sysv4.2uw2*)
7118 symcode='[DT]'
7120 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7121 symcode='[ABDT]'
7123 sysv4)
7124 symcode='[DFNSTU]'
7126 esac
7128 # If we're using GNU nm, then use its standard symbol codes.
7129 case `$NM -V 2>&1` in
7130 *GNU* | *'with BFD'*)
7131 symcode='[ABCDGIRSTW]' ;;
7132 esac
7134 # Transform an extracted symbol line into a proper C declaration.
7135 # Some systems (esp. on ia64) link data and code symbols differently,
7136 # so use this general approach.
7137 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7139 # Transform an extracted symbol line into symbol name and symbol address
7140 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7141 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'"
7143 # Handle CRLF in mingw tool chain
7144 opt_cr=
7145 case $build_os in
7146 mingw*)
7147 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7149 esac
7151 # Try without a prefix underscore, then with it.
7152 for ac_symprfx in "" "_"; do
7154 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7155 symxfrm="\\1 $ac_symprfx\\2 \\2"
7157 # Write the raw and C identifiers.
7158 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7159 # Fake it for dumpbin and say T for any non-static function
7160 # and D for any global variable.
7161 # Also find C++ and __fastcall symbols from MSVC++,
7162 # which start with @ or ?.
7163 lt_cv_sys_global_symbol_pipe="$AWK '"\
7164 " {last_section=section; section=\$ 3};"\
7165 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7166 " \$ 0!~/External *\|/{next};"\
7167 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7168 " {if(hide[section]) next};"\
7169 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7170 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7171 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7172 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7173 " ' prfx=^$ac_symprfx"
7174 else
7175 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7178 # Check to see that the pipe works correctly.
7179 pipe_works=no
7181 rm -f conftest*
7182 cat > conftest.$ac_ext <<_LT_EOF
7183 #ifdef __cplusplus
7184 extern "C" {
7185 #endif
7186 char nm_test_var;
7187 void nm_test_func(void);
7188 void nm_test_func(void){}
7189 #ifdef __cplusplus
7191 #endif
7192 int main(){nm_test_var='a';nm_test_func();return(0);}
7193 _LT_EOF
7195 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7196 (eval $ac_compile) 2>&5
7197 ac_status=$?
7198 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7199 test $ac_status = 0; }; then
7200 # Now try to grab the symbols.
7201 nlist=conftest.nm
7202 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7203 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7204 ac_status=$?
7205 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7206 test $ac_status = 0; } && test -s "$nlist"; then
7207 # Try sorting and uniquifying the output.
7208 if sort "$nlist" | uniq > "$nlist"T; then
7209 mv -f "$nlist"T "$nlist"
7210 else
7211 rm -f "$nlist"T
7214 # Make sure that we snagged all the symbols we need.
7215 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7216 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7217 cat <<_LT_EOF > conftest.$ac_ext
7218 #ifdef __cplusplus
7219 extern "C" {
7220 #endif
7222 _LT_EOF
7223 # Now generate the symbol file.
7224 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7226 cat <<_LT_EOF >> conftest.$ac_ext
7228 /* The mapping between symbol names and symbols. */
7229 const struct {
7230 const char *name;
7231 void *address;
7233 lt__PROGRAM__LTX_preloaded_symbols[] =
7235 { "@PROGRAM@", (void *) 0 },
7236 _LT_EOF
7237 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7238 cat <<\_LT_EOF >> conftest.$ac_ext
7239 {0, (void *) 0}
7242 /* This works around a problem in FreeBSD linker */
7243 #ifdef FREEBSD_WORKAROUND
7244 static const void *lt_preloaded_setup() {
7245 return lt__PROGRAM__LTX_preloaded_symbols;
7247 #endif
7249 #ifdef __cplusplus
7251 #endif
7252 _LT_EOF
7253 # Now try linking the two files.
7254 mv conftest.$ac_objext conftstm.$ac_objext
7255 lt_save_LIBS="$LIBS"
7256 lt_save_CFLAGS="$CFLAGS"
7257 LIBS="conftstm.$ac_objext"
7258 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7259 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7260 (eval $ac_link) 2>&5
7261 ac_status=$?
7262 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7263 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7264 pipe_works=yes
7266 LIBS="$lt_save_LIBS"
7267 CFLAGS="$lt_save_CFLAGS"
7268 else
7269 echo "cannot find nm_test_func in $nlist" >&5
7271 else
7272 echo "cannot find nm_test_var in $nlist" >&5
7274 else
7275 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7277 else
7278 echo "$progname: failed program was:" >&5
7279 cat conftest.$ac_ext >&5
7281 rm -rf conftest* conftst*
7283 # Do not use the global_symbol_pipe unless it works.
7284 if test "$pipe_works" = yes; then
7285 break
7286 else
7287 lt_cv_sys_global_symbol_pipe=
7289 done
7293 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7294 lt_cv_sys_global_symbol_to_cdecl=
7296 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7298 $as_echo "failed" >&6; }
7299 else
7300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7301 $as_echo "ok" >&6; }
7325 # Check whether --enable-libtool-lock was given.
7326 if test "${enable_libtool_lock+set}" = set; then :
7327 enableval=$enable_libtool_lock;
7330 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7332 # Some flags need to be propagated to the compiler or linker for good
7333 # libtool support.
7334 case $host in
7335 ia64-*-hpux*)
7336 # Find out which ABI we are using.
7337 echo 'int i;' > conftest.$ac_ext
7338 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7339 (eval $ac_compile) 2>&5
7340 ac_status=$?
7341 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7342 test $ac_status = 0; }; then
7343 case `/usr/bin/file conftest.$ac_objext` in
7344 *ELF-32*)
7345 HPUX_IA64_MODE="32"
7347 *ELF-64*)
7348 HPUX_IA64_MODE="64"
7350 esac
7352 rm -rf conftest*
7354 *-*-irix6*)
7355 # Find out which ABI we are using.
7356 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7357 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7358 (eval $ac_compile) 2>&5
7359 ac_status=$?
7360 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7361 test $ac_status = 0; }; then
7362 if test "$lt_cv_prog_gnu_ld" = yes; then
7363 case `/usr/bin/file conftest.$ac_objext` in
7364 *32-bit*)
7365 LD="${LD-ld} -melf32bsmip"
7367 *N32*)
7368 LD="${LD-ld} -melf32bmipn32"
7370 *64-bit*)
7371 LD="${LD-ld} -melf64bmip"
7373 esac
7374 else
7375 case `/usr/bin/file conftest.$ac_objext` in
7376 *32-bit*)
7377 LD="${LD-ld} -32"
7379 *N32*)
7380 LD="${LD-ld} -n32"
7382 *64-bit*)
7383 LD="${LD-ld} -64"
7385 esac
7388 rm -rf conftest*
7391 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7392 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7393 # Find out which ABI we are using.
7394 echo 'int i;' > conftest.$ac_ext
7395 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7396 (eval $ac_compile) 2>&5
7397 ac_status=$?
7398 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7399 test $ac_status = 0; }; then
7400 case `/usr/bin/file conftest.o` in
7401 *32-bit*)
7402 case $host in
7403 x86_64-*kfreebsd*-gnu)
7404 LD="${LD-ld} -m elf_i386_fbsd"
7406 x86_64-*linux*)
7407 case `/usr/bin/file conftest.o` in
7408 *x86-64*)
7409 LD="${LD-ld} -m elf32_x86_64"
7412 LD="${LD-ld} -m elf_i386"
7414 esac
7416 powerpc64le-*linux*)
7417 LD="${LD-ld} -m elf32lppclinux"
7419 powerpc64-*linux*)
7420 LD="${LD-ld} -m elf32ppclinux"
7422 s390x-*linux*)
7423 LD="${LD-ld} -m elf_s390"
7425 sparc64-*linux*)
7426 LD="${LD-ld} -m elf32_sparc"
7428 esac
7430 *64-bit*)
7431 case $host in
7432 x86_64-*kfreebsd*-gnu)
7433 LD="${LD-ld} -m elf_x86_64_fbsd"
7435 x86_64-*linux*)
7436 LD="${LD-ld} -m elf_x86_64"
7438 powerpcle-*linux*)
7439 LD="${LD-ld} -m elf64lppc"
7441 powerpc-*linux*)
7442 LD="${LD-ld} -m elf64ppc"
7444 s390*-*linux*|s390*-*tpf*)
7445 LD="${LD-ld} -m elf64_s390"
7447 sparc*-*linux*)
7448 LD="${LD-ld} -m elf64_sparc"
7450 esac
7452 esac
7454 rm -rf conftest*
7457 *-*-sco3.2v5*)
7458 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7459 SAVE_CFLAGS="$CFLAGS"
7460 CFLAGS="$CFLAGS -belf"
7461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7462 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7463 if ${lt_cv_cc_needs_belf+:} false; then :
7464 $as_echo_n "(cached) " >&6
7465 else
7466 ac_ext=c
7467 ac_cpp='$CPP $CPPFLAGS'
7468 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7469 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7470 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7473 /* end confdefs.h. */
7476 main ()
7480 return 0;
7482 _ACEOF
7483 if ac_fn_c_try_link "$LINENO"; then :
7484 lt_cv_cc_needs_belf=yes
7485 else
7486 lt_cv_cc_needs_belf=no
7488 rm -f core conftest.err conftest.$ac_objext \
7489 conftest$ac_exeext conftest.$ac_ext
7490 ac_ext=c
7491 ac_cpp='$CPP $CPPFLAGS'
7492 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7493 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7494 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7498 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7499 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7500 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7501 CFLAGS="$SAVE_CFLAGS"
7504 sparc*-*solaris*)
7505 # Find out which ABI we are using.
7506 echo 'int i;' > conftest.$ac_ext
7507 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7508 (eval $ac_compile) 2>&5
7509 ac_status=$?
7510 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7511 test $ac_status = 0; }; then
7512 case `/usr/bin/file conftest.o` in
7513 *64-bit*)
7514 case $lt_cv_prog_gnu_ld in
7515 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7517 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7518 LD="${LD-ld} -64"
7521 esac
7523 esac
7525 rm -rf conftest*
7527 esac
7529 need_locks="$enable_libtool_lock"
7532 case $host_os in
7533 rhapsody* | darwin*)
7534 if test -n "$ac_tool_prefix"; then
7535 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7536 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7538 $as_echo_n "checking for $ac_word... " >&6; }
7539 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7540 $as_echo_n "(cached) " >&6
7541 else
7542 if test -n "$DSYMUTIL"; then
7543 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7544 else
7545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7546 for as_dir in $PATH
7548 IFS=$as_save_IFS
7549 test -z "$as_dir" && as_dir=.
7550 for ac_exec_ext in '' $ac_executable_extensions; do
7551 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7552 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7554 break 2
7556 done
7557 done
7558 IFS=$as_save_IFS
7562 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7563 if test -n "$DSYMUTIL"; then
7564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7565 $as_echo "$DSYMUTIL" >&6; }
7566 else
7567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7568 $as_echo "no" >&6; }
7573 if test -z "$ac_cv_prog_DSYMUTIL"; then
7574 ac_ct_DSYMUTIL=$DSYMUTIL
7575 # Extract the first word of "dsymutil", so it can be a program name with args.
7576 set dummy dsymutil; ac_word=$2
7577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7578 $as_echo_n "checking for $ac_word... " >&6; }
7579 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7580 $as_echo_n "(cached) " >&6
7581 else
7582 if test -n "$ac_ct_DSYMUTIL"; then
7583 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7584 else
7585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7586 for as_dir in $PATH
7588 IFS=$as_save_IFS
7589 test -z "$as_dir" && as_dir=.
7590 for ac_exec_ext in '' $ac_executable_extensions; do
7591 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7592 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7594 break 2
7596 done
7597 done
7598 IFS=$as_save_IFS
7602 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7603 if test -n "$ac_ct_DSYMUTIL"; then
7604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7605 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7606 else
7607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7608 $as_echo "no" >&6; }
7611 if test "x$ac_ct_DSYMUTIL" = x; then
7612 DSYMUTIL=":"
7613 else
7614 case $cross_compiling:$ac_tool_warned in
7615 yes:)
7616 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7617 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7618 ac_tool_warned=yes ;;
7619 esac
7620 DSYMUTIL=$ac_ct_DSYMUTIL
7622 else
7623 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7626 if test -n "$ac_tool_prefix"; then
7627 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7628 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7630 $as_echo_n "checking for $ac_word... " >&6; }
7631 if ${ac_cv_prog_NMEDIT+:} false; then :
7632 $as_echo_n "(cached) " >&6
7633 else
7634 if test -n "$NMEDIT"; then
7635 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7636 else
7637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7638 for as_dir in $PATH
7640 IFS=$as_save_IFS
7641 test -z "$as_dir" && as_dir=.
7642 for ac_exec_ext in '' $ac_executable_extensions; do
7643 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7644 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7646 break 2
7648 done
7649 done
7650 IFS=$as_save_IFS
7654 NMEDIT=$ac_cv_prog_NMEDIT
7655 if test -n "$NMEDIT"; then
7656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7657 $as_echo "$NMEDIT" >&6; }
7658 else
7659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7660 $as_echo "no" >&6; }
7665 if test -z "$ac_cv_prog_NMEDIT"; then
7666 ac_ct_NMEDIT=$NMEDIT
7667 # Extract the first word of "nmedit", so it can be a program name with args.
7668 set dummy nmedit; ac_word=$2
7669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7670 $as_echo_n "checking for $ac_word... " >&6; }
7671 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7672 $as_echo_n "(cached) " >&6
7673 else
7674 if test -n "$ac_ct_NMEDIT"; then
7675 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7676 else
7677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7678 for as_dir in $PATH
7680 IFS=$as_save_IFS
7681 test -z "$as_dir" && as_dir=.
7682 for ac_exec_ext in '' $ac_executable_extensions; do
7683 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7684 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7686 break 2
7688 done
7689 done
7690 IFS=$as_save_IFS
7694 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7695 if test -n "$ac_ct_NMEDIT"; then
7696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7697 $as_echo "$ac_ct_NMEDIT" >&6; }
7698 else
7699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7700 $as_echo "no" >&6; }
7703 if test "x$ac_ct_NMEDIT" = x; then
7704 NMEDIT=":"
7705 else
7706 case $cross_compiling:$ac_tool_warned in
7707 yes:)
7708 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7709 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7710 ac_tool_warned=yes ;;
7711 esac
7712 NMEDIT=$ac_ct_NMEDIT
7714 else
7715 NMEDIT="$ac_cv_prog_NMEDIT"
7718 if test -n "$ac_tool_prefix"; then
7719 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7720 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7722 $as_echo_n "checking for $ac_word... " >&6; }
7723 if ${ac_cv_prog_LIPO+:} false; then :
7724 $as_echo_n "(cached) " >&6
7725 else
7726 if test -n "$LIPO"; then
7727 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7728 else
7729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7730 for as_dir in $PATH
7732 IFS=$as_save_IFS
7733 test -z "$as_dir" && as_dir=.
7734 for ac_exec_ext in '' $ac_executable_extensions; do
7735 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7736 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7738 break 2
7740 done
7741 done
7742 IFS=$as_save_IFS
7746 LIPO=$ac_cv_prog_LIPO
7747 if test -n "$LIPO"; then
7748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7749 $as_echo "$LIPO" >&6; }
7750 else
7751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7752 $as_echo "no" >&6; }
7757 if test -z "$ac_cv_prog_LIPO"; then
7758 ac_ct_LIPO=$LIPO
7759 # Extract the first word of "lipo", so it can be a program name with args.
7760 set dummy lipo; ac_word=$2
7761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7762 $as_echo_n "checking for $ac_word... " >&6; }
7763 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7764 $as_echo_n "(cached) " >&6
7765 else
7766 if test -n "$ac_ct_LIPO"; then
7767 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7768 else
7769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7770 for as_dir in $PATH
7772 IFS=$as_save_IFS
7773 test -z "$as_dir" && as_dir=.
7774 for ac_exec_ext in '' $ac_executable_extensions; do
7775 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7776 ac_cv_prog_ac_ct_LIPO="lipo"
7777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7778 break 2
7780 done
7781 done
7782 IFS=$as_save_IFS
7786 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7787 if test -n "$ac_ct_LIPO"; then
7788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7789 $as_echo "$ac_ct_LIPO" >&6; }
7790 else
7791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7792 $as_echo "no" >&6; }
7795 if test "x$ac_ct_LIPO" = x; then
7796 LIPO=":"
7797 else
7798 case $cross_compiling:$ac_tool_warned in
7799 yes:)
7800 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7801 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7802 ac_tool_warned=yes ;;
7803 esac
7804 LIPO=$ac_ct_LIPO
7806 else
7807 LIPO="$ac_cv_prog_LIPO"
7810 if test -n "$ac_tool_prefix"; then
7811 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7812 set dummy ${ac_tool_prefix}otool; ac_word=$2
7813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7814 $as_echo_n "checking for $ac_word... " >&6; }
7815 if ${ac_cv_prog_OTOOL+:} false; then :
7816 $as_echo_n "(cached) " >&6
7817 else
7818 if test -n "$OTOOL"; then
7819 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7820 else
7821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7822 for as_dir in $PATH
7824 IFS=$as_save_IFS
7825 test -z "$as_dir" && as_dir=.
7826 for ac_exec_ext in '' $ac_executable_extensions; do
7827 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7828 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7830 break 2
7832 done
7833 done
7834 IFS=$as_save_IFS
7838 OTOOL=$ac_cv_prog_OTOOL
7839 if test -n "$OTOOL"; then
7840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7841 $as_echo "$OTOOL" >&6; }
7842 else
7843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7844 $as_echo "no" >&6; }
7849 if test -z "$ac_cv_prog_OTOOL"; then
7850 ac_ct_OTOOL=$OTOOL
7851 # Extract the first word of "otool", so it can be a program name with args.
7852 set dummy otool; ac_word=$2
7853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7854 $as_echo_n "checking for $ac_word... " >&6; }
7855 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7856 $as_echo_n "(cached) " >&6
7857 else
7858 if test -n "$ac_ct_OTOOL"; then
7859 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7860 else
7861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7862 for as_dir in $PATH
7864 IFS=$as_save_IFS
7865 test -z "$as_dir" && as_dir=.
7866 for ac_exec_ext in '' $ac_executable_extensions; do
7867 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7868 ac_cv_prog_ac_ct_OTOOL="otool"
7869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7870 break 2
7872 done
7873 done
7874 IFS=$as_save_IFS
7878 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7879 if test -n "$ac_ct_OTOOL"; then
7880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7881 $as_echo "$ac_ct_OTOOL" >&6; }
7882 else
7883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7884 $as_echo "no" >&6; }
7887 if test "x$ac_ct_OTOOL" = x; then
7888 OTOOL=":"
7889 else
7890 case $cross_compiling:$ac_tool_warned in
7891 yes:)
7892 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7893 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7894 ac_tool_warned=yes ;;
7895 esac
7896 OTOOL=$ac_ct_OTOOL
7898 else
7899 OTOOL="$ac_cv_prog_OTOOL"
7902 if test -n "$ac_tool_prefix"; then
7903 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7904 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7906 $as_echo_n "checking for $ac_word... " >&6; }
7907 if ${ac_cv_prog_OTOOL64+:} false; then :
7908 $as_echo_n "(cached) " >&6
7909 else
7910 if test -n "$OTOOL64"; then
7911 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7912 else
7913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7914 for as_dir in $PATH
7916 IFS=$as_save_IFS
7917 test -z "$as_dir" && as_dir=.
7918 for ac_exec_ext in '' $ac_executable_extensions; do
7919 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7920 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7922 break 2
7924 done
7925 done
7926 IFS=$as_save_IFS
7930 OTOOL64=$ac_cv_prog_OTOOL64
7931 if test -n "$OTOOL64"; then
7932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7933 $as_echo "$OTOOL64" >&6; }
7934 else
7935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7936 $as_echo "no" >&6; }
7941 if test -z "$ac_cv_prog_OTOOL64"; then
7942 ac_ct_OTOOL64=$OTOOL64
7943 # Extract the first word of "otool64", so it can be a program name with args.
7944 set dummy otool64; ac_word=$2
7945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7946 $as_echo_n "checking for $ac_word... " >&6; }
7947 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7948 $as_echo_n "(cached) " >&6
7949 else
7950 if test -n "$ac_ct_OTOOL64"; then
7951 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7952 else
7953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7954 for as_dir in $PATH
7956 IFS=$as_save_IFS
7957 test -z "$as_dir" && as_dir=.
7958 for ac_exec_ext in '' $ac_executable_extensions; do
7959 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7960 ac_cv_prog_ac_ct_OTOOL64="otool64"
7961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7962 break 2
7964 done
7965 done
7966 IFS=$as_save_IFS
7970 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7971 if test -n "$ac_ct_OTOOL64"; then
7972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7973 $as_echo "$ac_ct_OTOOL64" >&6; }
7974 else
7975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7976 $as_echo "no" >&6; }
7979 if test "x$ac_ct_OTOOL64" = x; then
7980 OTOOL64=":"
7981 else
7982 case $cross_compiling:$ac_tool_warned in
7983 yes:)
7984 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7985 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7986 ac_tool_warned=yes ;;
7987 esac
7988 OTOOL64=$ac_ct_OTOOL64
7990 else
7991 OTOOL64="$ac_cv_prog_OTOOL64"
8020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8021 $as_echo_n "checking for -single_module linker flag... " >&6; }
8022 if ${lt_cv_apple_cc_single_mod+:} false; then :
8023 $as_echo_n "(cached) " >&6
8024 else
8025 lt_cv_apple_cc_single_mod=no
8026 if test -z "${LT_MULTI_MODULE}"; then
8027 # By default we will add the -single_module flag. You can override
8028 # by either setting the environment variable LT_MULTI_MODULE
8029 # non-empty at configure time, or by adding -multi_module to the
8030 # link flags.
8031 rm -rf libconftest.dylib*
8032 echo "int foo(void){return 1;}" > conftest.c
8033 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8034 -dynamiclib -Wl,-single_module conftest.c" >&5
8035 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8036 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8037 _lt_result=$?
8038 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8039 lt_cv_apple_cc_single_mod=yes
8040 else
8041 cat conftest.err >&5
8043 rm -rf libconftest.dylib*
8044 rm -f conftest.*
8047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8048 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8050 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8051 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8052 $as_echo_n "(cached) " >&6
8053 else
8054 lt_cv_ld_exported_symbols_list=no
8055 save_LDFLAGS=$LDFLAGS
8056 echo "_main" > conftest.sym
8057 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8059 /* end confdefs.h. */
8062 main ()
8066 return 0;
8068 _ACEOF
8069 if ac_fn_c_try_link "$LINENO"; then :
8070 lt_cv_ld_exported_symbols_list=yes
8071 else
8072 lt_cv_ld_exported_symbols_list=no
8074 rm -f core conftest.err conftest.$ac_objext \
8075 conftest$ac_exeext conftest.$ac_ext
8076 LDFLAGS="$save_LDFLAGS"
8079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8080 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8082 $as_echo_n "checking for -force_load linker flag... " >&6; }
8083 if ${lt_cv_ld_force_load+:} false; then :
8084 $as_echo_n "(cached) " >&6
8085 else
8086 lt_cv_ld_force_load=no
8087 cat > conftest.c << _LT_EOF
8088 int forced_loaded() { return 2;}
8089 _LT_EOF
8090 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8091 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8092 echo "$AR cru libconftest.a conftest.o" >&5
8093 $AR cru libconftest.a conftest.o 2>&5
8094 cat > conftest.c << _LT_EOF
8095 int main() { return 0;}
8096 _LT_EOF
8097 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8098 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8099 _lt_result=$?
8100 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8101 lt_cv_ld_force_load=yes
8102 else
8103 cat conftest.err >&5
8105 rm -f conftest.err libconftest.a conftest conftest.c
8106 rm -rf conftest.dSYM
8109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8110 $as_echo "$lt_cv_ld_force_load" >&6; }
8111 case $host_os in
8112 rhapsody* | darwin1.[012])
8113 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8114 darwin1.*)
8115 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8116 darwin*) # darwin 5.x on
8117 # if running on 10.5 or later, the deployment target defaults
8118 # to the OS version, if on x86, and 10.4, the deployment
8119 # target defaults to 10.4. Don't you love it?
8120 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8121 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8122 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8123 10.[012][,.]*)
8124 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8125 10.*)
8126 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8127 esac
8129 esac
8130 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8131 _lt_dar_single_mod='$single_module'
8133 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8134 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8135 else
8136 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8138 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8139 _lt_dsymutil='~$DSYMUTIL $lib || :'
8140 else
8141 _lt_dsymutil=
8144 esac
8146 for ac_header in dlfcn.h
8147 do :
8148 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8150 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8151 cat >>confdefs.h <<_ACEOF
8152 #define HAVE_DLFCN_H 1
8153 _ACEOF
8157 done
8164 # Set options
8168 enable_dlopen=no
8171 enable_win32_dll=no
8174 # Check whether --enable-shared was given.
8175 if test "${enable_shared+set}" = set; then :
8176 enableval=$enable_shared; p=${PACKAGE-default}
8177 case $enableval in
8178 yes) enable_shared=yes ;;
8179 no) enable_shared=no ;;
8181 enable_shared=no
8182 # Look at the argument we got. We use all the common list separators.
8183 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8184 for pkg in $enableval; do
8185 IFS="$lt_save_ifs"
8186 if test "X$pkg" = "X$p"; then
8187 enable_shared=yes
8189 done
8190 IFS="$lt_save_ifs"
8192 esac
8193 else
8194 enable_shared=yes
8205 # Check whether --enable-static was given.
8206 if test "${enable_static+set}" = set; then :
8207 enableval=$enable_static; p=${PACKAGE-default}
8208 case $enableval in
8209 yes) enable_static=yes ;;
8210 no) enable_static=no ;;
8212 enable_static=no
8213 # Look at the argument we got. We use all the common list separators.
8214 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8215 for pkg in $enableval; do
8216 IFS="$lt_save_ifs"
8217 if test "X$pkg" = "X$p"; then
8218 enable_static=yes
8220 done
8221 IFS="$lt_save_ifs"
8223 esac
8224 else
8225 enable_static=yes
8237 # Check whether --with-pic was given.
8238 if test "${with_pic+set}" = set; then :
8239 withval=$with_pic; pic_mode="$withval"
8240 else
8241 pic_mode=default
8245 test -z "$pic_mode" && pic_mode=default
8253 # Check whether --enable-fast-install was given.
8254 if test "${enable_fast_install+set}" = set; then :
8255 enableval=$enable_fast_install; p=${PACKAGE-default}
8256 case $enableval in
8257 yes) enable_fast_install=yes ;;
8258 no) enable_fast_install=no ;;
8260 enable_fast_install=no
8261 # Look at the argument we got. We use all the common list separators.
8262 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8263 for pkg in $enableval; do
8264 IFS="$lt_save_ifs"
8265 if test "X$pkg" = "X$p"; then
8266 enable_fast_install=yes
8268 done
8269 IFS="$lt_save_ifs"
8271 esac
8272 else
8273 enable_fast_install=yes
8286 # This can be used to rebuild libtool when needed
8287 LIBTOOL_DEPS="$ltmain"
8289 # Always use our own libtool.
8290 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8317 test -z "$LN_S" && LN_S="ln -s"
8332 if test -n "${ZSH_VERSION+set}" ; then
8333 setopt NO_GLOB_SUBST
8336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8337 $as_echo_n "checking for objdir... " >&6; }
8338 if ${lt_cv_objdir+:} false; then :
8339 $as_echo_n "(cached) " >&6
8340 else
8341 rm -f .libs 2>/dev/null
8342 mkdir .libs 2>/dev/null
8343 if test -d .libs; then
8344 lt_cv_objdir=.libs
8345 else
8346 # MS-DOS does not allow filenames that begin with a dot.
8347 lt_cv_objdir=_libs
8349 rmdir .libs 2>/dev/null
8351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8352 $as_echo "$lt_cv_objdir" >&6; }
8353 objdir=$lt_cv_objdir
8359 cat >>confdefs.h <<_ACEOF
8360 #define LT_OBJDIR "$lt_cv_objdir/"
8361 _ACEOF
8366 case $host_os in
8367 aix3*)
8368 # AIX sometimes has problems with the GCC collect2 program. For some
8369 # reason, if we set the COLLECT_NAMES environment variable, the problems
8370 # vanish in a puff of smoke.
8371 if test "X${COLLECT_NAMES+set}" != Xset; then
8372 COLLECT_NAMES=
8373 export COLLECT_NAMES
8376 esac
8378 # Global variables:
8379 ofile=libtool
8380 can_build_shared=yes
8382 # All known linkers require a `.a' archive for static linking (except MSVC,
8383 # which needs '.lib').
8384 libext=a
8386 with_gnu_ld="$lt_cv_prog_gnu_ld"
8388 old_CC="$CC"
8389 old_CFLAGS="$CFLAGS"
8391 # Set sane defaults for various variables
8392 test -z "$CC" && CC=cc
8393 test -z "$LTCC" && LTCC=$CC
8394 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8395 test -z "$LD" && LD=ld
8396 test -z "$ac_objext" && ac_objext=o
8398 for cc_temp in $compiler""; do
8399 case $cc_temp in
8400 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8401 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8402 \-*) ;;
8403 *) break;;
8404 esac
8405 done
8406 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8409 # Only perform the check for file, if the check method requires it
8410 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8411 case $deplibs_check_method in
8412 file_magic*)
8413 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8415 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8416 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8417 $as_echo_n "(cached) " >&6
8418 else
8419 case $MAGIC_CMD in
8420 [\\/*] | ?:[\\/]*)
8421 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8424 lt_save_MAGIC_CMD="$MAGIC_CMD"
8425 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8426 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8427 for ac_dir in $ac_dummy; do
8428 IFS="$lt_save_ifs"
8429 test -z "$ac_dir" && ac_dir=.
8430 if test -f $ac_dir/${ac_tool_prefix}file; then
8431 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8432 if test -n "$file_magic_test_file"; then
8433 case $deplibs_check_method in
8434 "file_magic "*)
8435 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8436 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8437 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8438 $EGREP "$file_magic_regex" > /dev/null; then
8440 else
8441 cat <<_LT_EOF 1>&2
8443 *** Warning: the command libtool uses to detect shared libraries,
8444 *** $file_magic_cmd, produces output that libtool cannot recognize.
8445 *** The result is that libtool may fail to recognize shared libraries
8446 *** as such. This will affect the creation of libtool libraries that
8447 *** depend on shared libraries, but programs linked with such libtool
8448 *** libraries will work regardless of this problem. Nevertheless, you
8449 *** may want to report the problem to your system manager and/or to
8450 *** bug-libtool@gnu.org
8452 _LT_EOF
8453 fi ;;
8454 esac
8456 break
8458 done
8459 IFS="$lt_save_ifs"
8460 MAGIC_CMD="$lt_save_MAGIC_CMD"
8462 esac
8465 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8466 if test -n "$MAGIC_CMD"; then
8467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8468 $as_echo "$MAGIC_CMD" >&6; }
8469 else
8470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8471 $as_echo "no" >&6; }
8478 if test -z "$lt_cv_path_MAGIC_CMD"; then
8479 if test -n "$ac_tool_prefix"; then
8480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8481 $as_echo_n "checking for file... " >&6; }
8482 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8483 $as_echo_n "(cached) " >&6
8484 else
8485 case $MAGIC_CMD in
8486 [\\/*] | ?:[\\/]*)
8487 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8490 lt_save_MAGIC_CMD="$MAGIC_CMD"
8491 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8492 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8493 for ac_dir in $ac_dummy; do
8494 IFS="$lt_save_ifs"
8495 test -z "$ac_dir" && ac_dir=.
8496 if test -f $ac_dir/file; then
8497 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8498 if test -n "$file_magic_test_file"; then
8499 case $deplibs_check_method in
8500 "file_magic "*)
8501 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8502 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8503 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8504 $EGREP "$file_magic_regex" > /dev/null; then
8506 else
8507 cat <<_LT_EOF 1>&2
8509 *** Warning: the command libtool uses to detect shared libraries,
8510 *** $file_magic_cmd, produces output that libtool cannot recognize.
8511 *** The result is that libtool may fail to recognize shared libraries
8512 *** as such. This will affect the creation of libtool libraries that
8513 *** depend on shared libraries, but programs linked with such libtool
8514 *** libraries will work regardless of this problem. Nevertheless, you
8515 *** may want to report the problem to your system manager and/or to
8516 *** bug-libtool@gnu.org
8518 _LT_EOF
8519 fi ;;
8520 esac
8522 break
8524 done
8525 IFS="$lt_save_ifs"
8526 MAGIC_CMD="$lt_save_MAGIC_CMD"
8528 esac
8531 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8532 if test -n "$MAGIC_CMD"; then
8533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8534 $as_echo "$MAGIC_CMD" >&6; }
8535 else
8536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8537 $as_echo "no" >&6; }
8541 else
8542 MAGIC_CMD=:
8548 esac
8550 # Use C for the default configuration in the libtool script
8552 lt_save_CC="$CC"
8553 ac_ext=c
8554 ac_cpp='$CPP $CPPFLAGS'
8555 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8556 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8557 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8560 # Source file extension for C test sources.
8561 ac_ext=c
8563 # Object file extension for compiled C test sources.
8564 objext=o
8565 objext=$objext
8567 # Code to be used in simple compile tests
8568 lt_simple_compile_test_code="int some_variable = 0;"
8570 # Code to be used in simple link tests
8571 lt_simple_link_test_code='int main(){return(0);}'
8579 # If no C compiler was specified, use CC.
8580 LTCC=${LTCC-"$CC"}
8582 # If no C compiler flags were specified, use CFLAGS.
8583 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8585 # Allow CC to be a program name with arguments.
8586 compiler=$CC
8588 # Save the default compiler, since it gets overwritten when the other
8589 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8590 compiler_DEFAULT=$CC
8592 # save warnings/boilerplate of simple test code
8593 ac_outfile=conftest.$ac_objext
8594 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8595 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8596 _lt_compiler_boilerplate=`cat conftest.err`
8597 $RM conftest*
8599 ac_outfile=conftest.$ac_objext
8600 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8601 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8602 _lt_linker_boilerplate=`cat conftest.err`
8603 $RM -r conftest*
8606 ## CAVEAT EMPTOR:
8607 ## There is no encapsulation within the following macros, do not change
8608 ## the running order or otherwise move them around unless you know exactly
8609 ## what you are doing...
8610 if test -n "$compiler"; then
8612 lt_prog_compiler_no_builtin_flag=
8614 if test "$GCC" = yes; then
8615 case $cc_basename in
8616 nvcc*)
8617 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8619 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8620 esac
8622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8623 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8624 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8625 $as_echo_n "(cached) " >&6
8626 else
8627 lt_cv_prog_compiler_rtti_exceptions=no
8628 ac_outfile=conftest.$ac_objext
8629 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8630 lt_compiler_flag="-fno-rtti -fno-exceptions"
8631 # Insert the option either (1) after the last *FLAGS variable, or
8632 # (2) before a word containing "conftest.", or (3) at the end.
8633 # Note that $ac_compile itself does not contain backslashes and begins
8634 # with a dollar sign (not a hyphen), so the echo should work correctly.
8635 # The option is referenced via a variable to avoid confusing sed.
8636 lt_compile=`echo "$ac_compile" | $SED \
8637 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8638 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8639 -e 's:$: $lt_compiler_flag:'`
8640 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8641 (eval "$lt_compile" 2>conftest.err)
8642 ac_status=$?
8643 cat conftest.err >&5
8644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8645 if (exit $ac_status) && test -s "$ac_outfile"; then
8646 # The compiler can only warn and ignore the option if not recognized
8647 # So say no if there are warnings other than the usual output.
8648 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8649 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8650 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8651 lt_cv_prog_compiler_rtti_exceptions=yes
8654 $RM conftest*
8657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8658 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8660 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8661 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8662 else
8673 lt_prog_compiler_wl=
8674 lt_prog_compiler_pic=
8675 lt_prog_compiler_static=
8677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8678 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8680 if test "$GCC" = yes; then
8681 lt_prog_compiler_wl='-Wl,'
8682 lt_prog_compiler_static='-static'
8684 case $host_os in
8685 aix*)
8686 # All AIX code is PIC.
8687 if test "$host_cpu" = ia64; then
8688 # AIX 5 now supports IA64 processor
8689 lt_prog_compiler_static='-Bstatic'
8691 lt_prog_compiler_pic='-fPIC'
8694 amigaos*)
8695 case $host_cpu in
8696 powerpc)
8697 # see comment about AmigaOS4 .so support
8698 lt_prog_compiler_pic='-fPIC'
8700 m68k)
8701 # FIXME: we need at least 68020 code to build shared libraries, but
8702 # adding the `-m68020' flag to GCC prevents building anything better,
8703 # like `-m68040'.
8704 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8706 esac
8709 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8710 # PIC is the default for these OSes.
8713 mingw* | cygwin* | pw32* | os2* | cegcc*)
8714 # This hack is so that the source file can tell whether it is being
8715 # built for inclusion in a dll (and should export symbols for example).
8716 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8717 # (--disable-auto-import) libraries
8718 lt_prog_compiler_pic='-DDLL_EXPORT'
8721 darwin* | rhapsody*)
8722 # PIC is the default on this platform
8723 # Common symbols not allowed in MH_DYLIB files
8724 lt_prog_compiler_pic='-fno-common'
8727 haiku*)
8728 # PIC is the default for Haiku.
8729 # The "-static" flag exists, but is broken.
8730 lt_prog_compiler_static=
8733 hpux*)
8734 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8735 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8736 # sets the default TLS model and affects inlining.
8737 case $host_cpu in
8738 hppa*64*)
8739 # +Z the default
8742 lt_prog_compiler_pic='-fPIC'
8744 esac
8747 interix[3-9]*)
8748 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8749 # Instead, we relocate shared libraries at runtime.
8752 msdosdjgpp*)
8753 # Just because we use GCC doesn't mean we suddenly get shared libraries
8754 # on systems that don't support them.
8755 lt_prog_compiler_can_build_shared=no
8756 enable_shared=no
8759 *nto* | *qnx*)
8760 # QNX uses GNU C++, but need to define -shared option too, otherwise
8761 # it will coredump.
8762 lt_prog_compiler_pic='-fPIC -shared'
8765 sysv4*MP*)
8766 if test -d /usr/nec; then
8767 lt_prog_compiler_pic=-Kconform_pic
8772 lt_prog_compiler_pic='-fPIC'
8774 esac
8776 case $cc_basename in
8777 nvcc*) # Cuda Compiler Driver 2.2
8778 lt_prog_compiler_wl='-Xlinker '
8779 lt_prog_compiler_pic='-Xcompiler -fPIC'
8781 esac
8782 else
8783 # PORTME Check for flag to pass linker flags through the system compiler.
8784 case $host_os in
8785 aix*)
8786 lt_prog_compiler_wl='-Wl,'
8787 if test "$host_cpu" = ia64; then
8788 # AIX 5 now supports IA64 processor
8789 lt_prog_compiler_static='-Bstatic'
8790 else
8791 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8795 mingw* | cygwin* | pw32* | os2* | cegcc*)
8796 # This hack is so that the source file can tell whether it is being
8797 # built for inclusion in a dll (and should export symbols for example).
8798 lt_prog_compiler_pic='-DDLL_EXPORT'
8801 hpux9* | hpux10* | hpux11*)
8802 lt_prog_compiler_wl='-Wl,'
8803 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8804 # not for PA HP-UX.
8805 case $host_cpu in
8806 hppa*64*|ia64*)
8807 # +Z the default
8810 lt_prog_compiler_pic='+Z'
8812 esac
8813 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8814 lt_prog_compiler_static='${wl}-a ${wl}archive'
8817 irix5* | irix6* | nonstopux*)
8818 lt_prog_compiler_wl='-Wl,'
8819 # PIC (with -KPIC) is the default.
8820 lt_prog_compiler_static='-non_shared'
8823 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8824 case $cc_basename in
8825 # old Intel for x86_64 which still supported -KPIC.
8826 ecc*)
8827 lt_prog_compiler_wl='-Wl,'
8828 lt_prog_compiler_pic='-KPIC'
8829 lt_prog_compiler_static='-static'
8831 # icc used to be incompatible with GCC.
8832 # ICC 10 doesn't accept -KPIC any more.
8833 icc* | ifort*)
8834 lt_prog_compiler_wl='-Wl,'
8835 lt_prog_compiler_pic='-fPIC'
8836 lt_prog_compiler_static='-static'
8838 # Lahey Fortran 8.1.
8839 lf95*)
8840 lt_prog_compiler_wl='-Wl,'
8841 lt_prog_compiler_pic='--shared'
8842 lt_prog_compiler_static='--static'
8844 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8845 # Portland Group compilers (*not* the Pentium gcc compiler,
8846 # which looks to be a dead project)
8847 lt_prog_compiler_wl='-Wl,'
8848 lt_prog_compiler_pic='-fpic'
8849 lt_prog_compiler_static='-Bstatic'
8851 ccc*)
8852 lt_prog_compiler_wl='-Wl,'
8853 # All Alpha code is PIC.
8854 lt_prog_compiler_static='-non_shared'
8856 xl* | bgxl* | bgf* | mpixl*)
8857 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8858 lt_prog_compiler_wl='-Wl,'
8859 lt_prog_compiler_pic='-qpic'
8860 lt_prog_compiler_static='-qstaticlink'
8863 case `$CC -V 2>&1 | sed 5q` in
8864 *Sun\ F* | *Sun*Fortran*)
8865 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8866 lt_prog_compiler_pic='-KPIC'
8867 lt_prog_compiler_static='-Bstatic'
8868 lt_prog_compiler_wl=''
8870 *Sun\ C*)
8871 # Sun C 5.9
8872 lt_prog_compiler_pic='-KPIC'
8873 lt_prog_compiler_static='-Bstatic'
8874 lt_prog_compiler_wl='-Wl,'
8876 esac
8878 esac
8881 newsos6)
8882 lt_prog_compiler_pic='-KPIC'
8883 lt_prog_compiler_static='-Bstatic'
8886 *nto* | *qnx*)
8887 # QNX uses GNU C++, but need to define -shared option too, otherwise
8888 # it will coredump.
8889 lt_prog_compiler_pic='-fPIC -shared'
8892 osf3* | osf4* | osf5*)
8893 lt_prog_compiler_wl='-Wl,'
8894 # All OSF/1 code is PIC.
8895 lt_prog_compiler_static='-non_shared'
8898 rdos*)
8899 lt_prog_compiler_static='-non_shared'
8902 solaris*)
8903 lt_prog_compiler_pic='-KPIC'
8904 lt_prog_compiler_static='-Bstatic'
8905 case $cc_basename in
8906 f77* | f90* | f95*)
8907 lt_prog_compiler_wl='-Qoption ld ';;
8909 lt_prog_compiler_wl='-Wl,';;
8910 esac
8913 sunos4*)
8914 lt_prog_compiler_wl='-Qoption ld '
8915 lt_prog_compiler_pic='-PIC'
8916 lt_prog_compiler_static='-Bstatic'
8919 sysv4 | sysv4.2uw2* | sysv4.3*)
8920 lt_prog_compiler_wl='-Wl,'
8921 lt_prog_compiler_pic='-KPIC'
8922 lt_prog_compiler_static='-Bstatic'
8925 sysv4*MP*)
8926 if test -d /usr/nec ;then
8927 lt_prog_compiler_pic='-Kconform_pic'
8928 lt_prog_compiler_static='-Bstatic'
8932 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8933 lt_prog_compiler_wl='-Wl,'
8934 lt_prog_compiler_pic='-KPIC'
8935 lt_prog_compiler_static='-Bstatic'
8938 unicos*)
8939 lt_prog_compiler_wl='-Wl,'
8940 lt_prog_compiler_can_build_shared=no
8943 uts4*)
8944 lt_prog_compiler_pic='-pic'
8945 lt_prog_compiler_static='-Bstatic'
8949 lt_prog_compiler_can_build_shared=no
8951 esac
8954 case $host_os in
8955 # For platforms which do not support PIC, -DPIC is meaningless:
8956 *djgpp*)
8957 lt_prog_compiler_pic=
8960 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8962 esac
8963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8964 $as_echo "$lt_prog_compiler_pic" >&6; }
8972 # Check to make sure the PIC flag actually works.
8974 if test -n "$lt_prog_compiler_pic"; then
8975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8976 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8977 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8978 $as_echo_n "(cached) " >&6
8979 else
8980 lt_cv_prog_compiler_pic_works=no
8981 ac_outfile=conftest.$ac_objext
8982 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8983 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8984 # Insert the option either (1) after the last *FLAGS variable, or
8985 # (2) before a word containing "conftest.", or (3) at the end.
8986 # Note that $ac_compile itself does not contain backslashes and begins
8987 # with a dollar sign (not a hyphen), so the echo should work correctly.
8988 # The option is referenced via a variable to avoid confusing sed.
8989 lt_compile=`echo "$ac_compile" | $SED \
8990 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8991 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8992 -e 's:$: $lt_compiler_flag:'`
8993 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8994 (eval "$lt_compile" 2>conftest.err)
8995 ac_status=$?
8996 cat conftest.err >&5
8997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8998 if (exit $ac_status) && test -s "$ac_outfile"; then
8999 # The compiler can only warn and ignore the option if not recognized
9000 # So say no if there are warnings other than the usual output.
9001 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9002 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9003 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9004 lt_cv_prog_compiler_pic_works=yes
9007 $RM conftest*
9010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9011 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9013 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9014 case $lt_prog_compiler_pic in
9015 "" | " "*) ;;
9016 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9017 esac
9018 else
9019 lt_prog_compiler_pic=
9020 lt_prog_compiler_can_build_shared=no
9031 # Check to make sure the static flag actually works.
9033 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9035 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9036 if ${lt_cv_prog_compiler_static_works+:} false; then :
9037 $as_echo_n "(cached) " >&6
9038 else
9039 lt_cv_prog_compiler_static_works=no
9040 save_LDFLAGS="$LDFLAGS"
9041 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9042 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9043 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9044 # The linker can only warn and ignore the option if not recognized
9045 # So say no if there are warnings
9046 if test -s conftest.err; then
9047 # Append any errors to the config.log.
9048 cat conftest.err 1>&5
9049 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9050 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9051 if diff conftest.exp conftest.er2 >/dev/null; then
9052 lt_cv_prog_compiler_static_works=yes
9054 else
9055 lt_cv_prog_compiler_static_works=yes
9058 $RM -r conftest*
9059 LDFLAGS="$save_LDFLAGS"
9062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9063 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9065 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9067 else
9068 lt_prog_compiler_static=
9077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9078 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9079 if ${lt_cv_prog_compiler_c_o+:} false; then :
9080 $as_echo_n "(cached) " >&6
9081 else
9082 lt_cv_prog_compiler_c_o=no
9083 $RM -r conftest 2>/dev/null
9084 mkdir conftest
9085 cd conftest
9086 mkdir out
9087 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9089 lt_compiler_flag="-o out/conftest2.$ac_objext"
9090 # Insert the option either (1) after the last *FLAGS variable, or
9091 # (2) before a word containing "conftest.", or (3) at the end.
9092 # Note that $ac_compile itself does not contain backslashes and begins
9093 # with a dollar sign (not a hyphen), so the echo should work correctly.
9094 lt_compile=`echo "$ac_compile" | $SED \
9095 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9096 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9097 -e 's:$: $lt_compiler_flag:'`
9098 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9099 (eval "$lt_compile" 2>out/conftest.err)
9100 ac_status=$?
9101 cat out/conftest.err >&5
9102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9103 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9104 then
9105 # The compiler can only warn and ignore the option if not recognized
9106 # So say no if there are warnings
9107 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9108 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9109 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9110 lt_cv_prog_compiler_c_o=yes
9113 chmod u+w . 2>&5
9114 $RM conftest*
9115 # SGI C++ compiler will create directory out/ii_files/ for
9116 # template instantiation
9117 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9118 $RM out/* && rmdir out
9119 cd ..
9120 $RM -r conftest
9121 $RM conftest*
9124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9125 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9133 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9134 if ${lt_cv_prog_compiler_c_o+:} false; then :
9135 $as_echo_n "(cached) " >&6
9136 else
9137 lt_cv_prog_compiler_c_o=no
9138 $RM -r conftest 2>/dev/null
9139 mkdir conftest
9140 cd conftest
9141 mkdir out
9142 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9144 lt_compiler_flag="-o out/conftest2.$ac_objext"
9145 # Insert the option either (1) after the last *FLAGS variable, or
9146 # (2) before a word containing "conftest.", or (3) at the end.
9147 # Note that $ac_compile itself does not contain backslashes and begins
9148 # with a dollar sign (not a hyphen), so the echo should work correctly.
9149 lt_compile=`echo "$ac_compile" | $SED \
9150 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9151 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9152 -e 's:$: $lt_compiler_flag:'`
9153 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9154 (eval "$lt_compile" 2>out/conftest.err)
9155 ac_status=$?
9156 cat out/conftest.err >&5
9157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9158 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9159 then
9160 # The compiler can only warn and ignore the option if not recognized
9161 # So say no if there are warnings
9162 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9163 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9164 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9165 lt_cv_prog_compiler_c_o=yes
9168 chmod u+w . 2>&5
9169 $RM conftest*
9170 # SGI C++ compiler will create directory out/ii_files/ for
9171 # template instantiation
9172 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9173 $RM out/* && rmdir out
9174 cd ..
9175 $RM -r conftest
9176 $RM conftest*
9179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9180 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9185 hard_links="nottested"
9186 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9187 # do not overwrite the value of need_locks provided by the user
9188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9189 $as_echo_n "checking if we can lock with hard links... " >&6; }
9190 hard_links=yes
9191 $RM conftest*
9192 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9193 touch conftest.a
9194 ln conftest.a conftest.b 2>&5 || hard_links=no
9195 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9197 $as_echo "$hard_links" >&6; }
9198 if test "$hard_links" = no; then
9199 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9200 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9201 need_locks=warn
9203 else
9204 need_locks=no
9212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9213 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9215 runpath_var=
9216 allow_undefined_flag=
9217 always_export_symbols=no
9218 archive_cmds=
9219 archive_expsym_cmds=
9220 compiler_needs_object=no
9221 enable_shared_with_static_runtimes=no
9222 export_dynamic_flag_spec=
9223 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9224 hardcode_automatic=no
9225 hardcode_direct=no
9226 hardcode_direct_absolute=no
9227 hardcode_libdir_flag_spec=
9228 hardcode_libdir_flag_spec_ld=
9229 hardcode_libdir_separator=
9230 hardcode_minus_L=no
9231 hardcode_shlibpath_var=unsupported
9232 inherit_rpath=no
9233 link_all_deplibs=unknown
9234 module_cmds=
9235 module_expsym_cmds=
9236 old_archive_from_new_cmds=
9237 old_archive_from_expsyms_cmds=
9238 thread_safe_flag_spec=
9239 whole_archive_flag_spec=
9240 # include_expsyms should be a list of space-separated symbols to be *always*
9241 # included in the symbol list
9242 include_expsyms=
9243 # exclude_expsyms can be an extended regexp of symbols to exclude
9244 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9245 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9246 # as well as any symbol that contains `d'.
9247 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9248 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9249 # platforms (ab)use it in PIC code, but their linkers get confused if
9250 # the symbol is explicitly referenced. Since portable code cannot
9251 # rely on this symbol name, it's probably fine to never include it in
9252 # preloaded symbol tables.
9253 # Exclude shared library initialization/finalization symbols.
9254 extract_expsyms_cmds=
9256 case $host_os in
9257 cygwin* | mingw* | pw32* | cegcc*)
9258 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9259 # When not using gcc, we currently assume that we are using
9260 # Microsoft Visual C++.
9261 if test "$GCC" != yes; then
9262 with_gnu_ld=no
9265 interix*)
9266 # we just hope/assume this is gcc and not c89 (= MSVC++)
9267 with_gnu_ld=yes
9269 openbsd*)
9270 with_gnu_ld=no
9272 esac
9274 ld_shlibs=yes
9276 # On some targets, GNU ld is compatible enough with the native linker
9277 # that we're better off using the native interface for both.
9278 lt_use_gnu_ld_interface=no
9279 if test "$with_gnu_ld" = yes; then
9280 case $host_os in
9281 aix*)
9282 # The AIX port of GNU ld has always aspired to compatibility
9283 # with the native linker. However, as the warning in the GNU ld
9284 # block says, versions before 2.19.5* couldn't really create working
9285 # shared libraries, regardless of the interface used.
9286 case `$LD -v 2>&1` in
9287 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9288 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9289 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9291 lt_use_gnu_ld_interface=yes
9293 esac
9296 lt_use_gnu_ld_interface=yes
9298 esac
9301 if test "$lt_use_gnu_ld_interface" = yes; then
9302 # If archive_cmds runs LD, not CC, wlarc should be empty
9303 wlarc='${wl}'
9305 # Set some defaults for GNU ld with shared library support. These
9306 # are reset later if shared libraries are not supported. Putting them
9307 # here allows them to be overridden if necessary.
9308 runpath_var=LD_RUN_PATH
9309 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9310 export_dynamic_flag_spec='${wl}--export-dynamic'
9311 # ancient GNU ld didn't support --whole-archive et. al.
9312 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9313 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9314 else
9315 whole_archive_flag_spec=
9317 supports_anon_versioning=no
9318 case `$LD -v 2>&1` in
9319 *GNU\ gold*) supports_anon_versioning=yes ;;
9320 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9321 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9322 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9323 *\ 2.11.*) ;; # other 2.11 versions
9324 *) supports_anon_versioning=yes ;;
9325 esac
9327 # See if GNU ld supports shared libraries.
9328 case $host_os in
9329 aix[3-9]*)
9330 # On AIX/PPC, the GNU linker is very broken
9331 if test "$host_cpu" != ia64; then
9332 ld_shlibs=no
9333 cat <<_LT_EOF 1>&2
9335 *** Warning: the GNU linker, at least up to release 2.19, is reported
9336 *** to be unable to reliably create shared libraries on AIX.
9337 *** Therefore, libtool is disabling shared libraries support. If you
9338 *** really care for shared libraries, you may want to install binutils
9339 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9340 *** You will then need to restart the configuration process.
9342 _LT_EOF
9346 amigaos*)
9347 case $host_cpu in
9348 powerpc)
9349 # see comment about AmigaOS4 .so support
9350 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9351 archive_expsym_cmds=''
9353 m68k)
9354 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)'
9355 hardcode_libdir_flag_spec='-L$libdir'
9356 hardcode_minus_L=yes
9358 esac
9361 beos*)
9362 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9363 allow_undefined_flag=unsupported
9364 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9365 # support --undefined. This deserves some investigation. FIXME
9366 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9367 else
9368 ld_shlibs=no
9372 cygwin* | mingw* | pw32* | cegcc*)
9373 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9374 # as there is no search path for DLLs.
9375 hardcode_libdir_flag_spec='-L$libdir'
9376 export_dynamic_flag_spec='${wl}--export-all-symbols'
9377 allow_undefined_flag=unsupported
9378 always_export_symbols=no
9379 enable_shared_with_static_runtimes=yes
9380 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9382 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9383 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9384 # If the export-symbols file already is a .def file (1st line
9385 # is EXPORTS), use it as is; otherwise, prepend...
9386 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9387 cp $export_symbols $output_objdir/$soname.def;
9388 else
9389 echo EXPORTS > $output_objdir/$soname.def;
9390 cat $export_symbols >> $output_objdir/$soname.def;
9392 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9393 else
9394 ld_shlibs=no
9398 haiku*)
9399 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9400 link_all_deplibs=yes
9403 interix[3-9]*)
9404 hardcode_direct=no
9405 hardcode_shlibpath_var=no
9406 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9407 export_dynamic_flag_spec='${wl}-E'
9408 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9409 # Instead, shared libraries are loaded at an image base (0x10000000 by
9410 # default) and relocated if they conflict, which is a slow very memory
9411 # consuming and fragmenting process. To avoid this, we pick a random,
9412 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9413 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9414 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9415 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'
9418 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9419 tmp_diet=no
9420 if test "$host_os" = linux-dietlibc; then
9421 case $cc_basename in
9422 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9423 esac
9425 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9426 && test "$tmp_diet" = no
9427 then
9428 tmp_addflag=' $pic_flag'
9429 tmp_sharedflag='-shared'
9430 case $cc_basename,$host_cpu in
9431 pgcc*) # Portland Group C compiler
9432 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'
9433 tmp_addflag=' $pic_flag'
9435 pgf77* | pgf90* | pgf95* | pgfortran*)
9436 # Portland Group f77 and f90 compilers
9437 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'
9438 tmp_addflag=' $pic_flag -Mnomain' ;;
9439 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9440 tmp_addflag=' -i_dynamic' ;;
9441 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9442 tmp_addflag=' -i_dynamic -nofor_main' ;;
9443 ifc* | ifort*) # Intel Fortran compiler
9444 tmp_addflag=' -nofor_main' ;;
9445 lf95*) # Lahey Fortran 8.1
9446 whole_archive_flag_spec=
9447 tmp_sharedflag='--shared' ;;
9448 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9449 tmp_sharedflag='-qmkshrobj'
9450 tmp_addflag= ;;
9451 nvcc*) # Cuda Compiler Driver 2.2
9452 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'
9453 compiler_needs_object=yes
9455 esac
9456 case `$CC -V 2>&1 | sed 5q` in
9457 *Sun\ C*) # Sun C 5.9
9458 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'
9459 compiler_needs_object=yes
9460 tmp_sharedflag='-G' ;;
9461 *Sun\ F*) # Sun Fortran 8.3
9462 tmp_sharedflag='-G' ;;
9463 esac
9464 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9466 if test "x$supports_anon_versioning" = xyes; then
9467 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9468 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9469 echo "local: *; };" >> $output_objdir/$libname.ver~
9470 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9473 case $cc_basename in
9474 xlf* | bgf* | bgxlf* | mpixlf*)
9475 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9476 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9477 hardcode_libdir_flag_spec=
9478 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9479 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9480 if test "x$supports_anon_versioning" = xyes; then
9481 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9482 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9483 echo "local: *; };" >> $output_objdir/$libname.ver~
9484 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9487 esac
9488 else
9489 ld_shlibs=no
9493 netbsd*)
9494 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9495 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9496 wlarc=
9497 else
9498 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9499 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9503 solaris*)
9504 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9505 ld_shlibs=no
9506 cat <<_LT_EOF 1>&2
9508 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9509 *** create shared libraries on Solaris systems. Therefore, libtool
9510 *** is disabling shared libraries support. We urge you to upgrade GNU
9511 *** binutils to release 2.9.1 or newer. Another option is to modify
9512 *** your PATH or compiler configuration so that the native linker is
9513 *** used, and then restart.
9515 _LT_EOF
9516 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9517 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9518 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9519 else
9520 ld_shlibs=no
9524 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9525 case `$LD -v 2>&1` in
9526 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9527 ld_shlibs=no
9528 cat <<_LT_EOF 1>&2
9530 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9531 *** reliably create shared libraries on SCO systems. Therefore, libtool
9532 *** is disabling shared libraries support. We urge you to upgrade GNU
9533 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9534 *** your PATH or compiler configuration so that the native linker is
9535 *** used, and then restart.
9537 _LT_EOF
9540 # For security reasons, it is highly recommended that you always
9541 # use absolute paths for naming shared libraries, and exclude the
9542 # DT_RUNPATH tag from executables and libraries. But doing so
9543 # requires that you compile everything twice, which is a pain.
9544 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9545 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9546 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9547 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9548 else
9549 ld_shlibs=no
9552 esac
9555 sunos4*)
9556 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9557 wlarc=
9558 hardcode_direct=yes
9559 hardcode_shlibpath_var=no
9563 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9564 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9565 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9566 else
9567 ld_shlibs=no
9570 esac
9572 if test "$ld_shlibs" = no; then
9573 runpath_var=
9574 hardcode_libdir_flag_spec=
9575 export_dynamic_flag_spec=
9576 whole_archive_flag_spec=
9578 else
9579 # PORTME fill in a description of your system's linker (not GNU ld)
9580 case $host_os in
9581 aix3*)
9582 allow_undefined_flag=unsupported
9583 always_export_symbols=yes
9584 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'
9585 # Note: this linker hardcodes the directories in LIBPATH if there
9586 # are no directories specified by -L.
9587 hardcode_minus_L=yes
9588 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9589 # Neither direct hardcoding nor static linking is supported with a
9590 # broken collect2.
9591 hardcode_direct=unsupported
9595 aix[4-9]*)
9596 if test "$host_cpu" = ia64; then
9597 # On IA64, the linker does run time linking by default, so we don't
9598 # have to do anything special.
9599 aix_use_runtimelinking=no
9600 exp_sym_flag='-Bexport'
9601 no_entry_flag=""
9602 else
9603 # If we're using GNU nm, then we don't want the "-C" option.
9604 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9605 # Also, AIX nm treats weak defined symbols like other global
9606 # defined symbols, whereas GNU nm marks them as "W".
9607 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9608 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'
9609 else
9610 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'
9612 aix_use_runtimelinking=no
9614 # Test if we are trying to use run time linking or normal
9615 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9616 # need to do runtime linking.
9617 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9618 for ld_flag in $LDFLAGS; do
9619 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9620 aix_use_runtimelinking=yes
9621 break
9623 done
9625 esac
9627 exp_sym_flag='-bexport'
9628 no_entry_flag='-bnoentry'
9631 # When large executables or shared objects are built, AIX ld can
9632 # have problems creating the table of contents. If linking a library
9633 # or program results in "error TOC overflow" add -mminimal-toc to
9634 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9635 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9637 archive_cmds=''
9638 hardcode_direct=yes
9639 hardcode_direct_absolute=yes
9640 hardcode_libdir_separator=':'
9641 link_all_deplibs=yes
9642 file_list_spec='${wl}-f,'
9644 if test "$GCC" = yes; then
9645 case $host_os in aix4.[012]|aix4.[012].*)
9646 # We only want to do this on AIX 4.2 and lower, the check
9647 # below for broken collect2 doesn't work under 4.3+
9648 collect2name=`${CC} -print-prog-name=collect2`
9649 if test -f "$collect2name" &&
9650 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9651 then
9652 # We have reworked collect2
9654 else
9655 # We have old collect2
9656 hardcode_direct=unsupported
9657 # It fails to find uninstalled libraries when the uninstalled
9658 # path is not listed in the libpath. Setting hardcode_minus_L
9659 # to unsupported forces relinking
9660 hardcode_minus_L=yes
9661 hardcode_libdir_flag_spec='-L$libdir'
9662 hardcode_libdir_separator=
9665 esac
9666 shared_flag='-shared'
9667 if test "$aix_use_runtimelinking" = yes; then
9668 shared_flag="$shared_flag "'${wl}-G'
9670 else
9671 # not using gcc
9672 if test "$host_cpu" = ia64; then
9673 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9674 # chokes on -Wl,-G. The following line is correct:
9675 shared_flag='-G'
9676 else
9677 if test "$aix_use_runtimelinking" = yes; then
9678 shared_flag='${wl}-G'
9679 else
9680 shared_flag='${wl}-bM:SRE'
9685 export_dynamic_flag_spec='${wl}-bexpall'
9686 # It seems that -bexpall does not export symbols beginning with
9687 # underscore (_), so it is better to generate a list of symbols to export.
9688 always_export_symbols=yes
9689 if test "$aix_use_runtimelinking" = yes; then
9690 # Warning - without using the other runtime loading flags (-brtl),
9691 # -berok will link without error, but may produce a broken library.
9692 allow_undefined_flag='-berok'
9693 # Determine the default libpath from the value encoded in an
9694 # empty executable.
9695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9696 /* end confdefs.h. */
9699 main ()
9703 return 0;
9705 _ACEOF
9706 if ac_fn_c_try_link "$LINENO"; then :
9708 lt_aix_libpath_sed='
9709 /Import File Strings/,/^$/ {
9710 /^0/ {
9711 s/^0 *\(.*\)$/\1/
9715 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9716 # Check for a 64-bit object if we didn't find anything.
9717 if test -z "$aix_libpath"; then
9718 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9721 rm -f core conftest.err conftest.$ac_objext \
9722 conftest$ac_exeext conftest.$ac_ext
9723 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9725 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9726 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"
9727 else
9728 if test "$host_cpu" = ia64; then
9729 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9730 allow_undefined_flag="-z nodefs"
9731 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"
9732 else
9733 # Determine the default libpath from the value encoded in an
9734 # empty executable.
9735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9736 /* end confdefs.h. */
9739 main ()
9743 return 0;
9745 _ACEOF
9746 if ac_fn_c_try_link "$LINENO"; then :
9748 lt_aix_libpath_sed='
9749 /Import File Strings/,/^$/ {
9750 /^0/ {
9751 s/^0 *\(.*\)$/\1/
9755 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9756 # Check for a 64-bit object if we didn't find anything.
9757 if test -z "$aix_libpath"; then
9758 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9761 rm -f core conftest.err conftest.$ac_objext \
9762 conftest$ac_exeext conftest.$ac_ext
9763 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9765 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9766 # Warning - without using the other run time loading flags,
9767 # -berok will link without error, but may produce a broken library.
9768 no_undefined_flag=' ${wl}-bernotok'
9769 allow_undefined_flag=' ${wl}-berok'
9770 if test "$with_gnu_ld" = yes; then
9771 # We only use this code for GNU lds that support --whole-archive.
9772 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9773 else
9774 # Exported symbols can be pulled into shared objects from archives
9775 whole_archive_flag_spec='$convenience'
9777 archive_cmds_need_lc=yes
9778 # This is similar to how AIX traditionally builds its shared libraries.
9779 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'
9784 amigaos*)
9785 case $host_cpu in
9786 powerpc)
9787 # see comment about AmigaOS4 .so support
9788 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9789 archive_expsym_cmds=''
9791 m68k)
9792 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)'
9793 hardcode_libdir_flag_spec='-L$libdir'
9794 hardcode_minus_L=yes
9796 esac
9799 bsdi[45]*)
9800 export_dynamic_flag_spec=-rdynamic
9803 cygwin* | mingw* | pw32* | cegcc*)
9804 # When not using gcc, we currently assume that we are using
9805 # Microsoft Visual C++.
9806 # hardcode_libdir_flag_spec is actually meaningless, as there is
9807 # no search path for DLLs.
9808 hardcode_libdir_flag_spec=' '
9809 allow_undefined_flag=unsupported
9810 # Tell ltmain to make .lib files, not .a files.
9811 libext=lib
9812 # Tell ltmain to make .dll files, not .so files.
9813 shrext_cmds=".dll"
9814 # FIXME: Setting linknames here is a bad hack.
9815 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9816 # The linker will automatically build a .lib file if we build a DLL.
9817 old_archive_from_new_cmds='true'
9818 # FIXME: Should let the user specify the lib program.
9819 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9820 fix_srcfile_path='`cygpath -w "$srcfile"`'
9821 enable_shared_with_static_runtimes=yes
9824 darwin* | rhapsody*)
9827 archive_cmds_need_lc=no
9828 hardcode_direct=no
9829 hardcode_automatic=yes
9830 hardcode_shlibpath_var=unsupported
9831 if test "$lt_cv_ld_force_load" = "yes"; then
9832 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\"`'
9833 else
9834 whole_archive_flag_spec=''
9836 link_all_deplibs=yes
9837 allow_undefined_flag="$_lt_dar_allow_undefined"
9838 case $cc_basename in
9839 ifort*) _lt_dar_can_shared=yes ;;
9840 *) _lt_dar_can_shared=$GCC ;;
9841 esac
9842 if test "$_lt_dar_can_shared" = "yes"; then
9843 output_verbose_link_cmd=func_echo_all
9844 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9845 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9846 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}"
9847 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}"
9849 else
9850 ld_shlibs=no
9855 dgux*)
9856 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9857 hardcode_libdir_flag_spec='-L$libdir'
9858 hardcode_shlibpath_var=no
9861 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9862 # support. Future versions do this automatically, but an explicit c++rt0.o
9863 # does not break anything, and helps significantly (at the cost of a little
9864 # extra space).
9865 freebsd2.2*)
9866 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9867 hardcode_libdir_flag_spec='-R$libdir'
9868 hardcode_direct=yes
9869 hardcode_shlibpath_var=no
9872 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9873 freebsd2.*)
9874 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9875 hardcode_direct=yes
9876 hardcode_minus_L=yes
9877 hardcode_shlibpath_var=no
9880 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9881 freebsd* | dragonfly*)
9882 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9883 hardcode_libdir_flag_spec='-R$libdir'
9884 hardcode_direct=yes
9885 hardcode_shlibpath_var=no
9888 hpux9*)
9889 if test "$GCC" = yes; then
9890 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'
9891 else
9892 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'
9894 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9895 hardcode_libdir_separator=:
9896 hardcode_direct=yes
9898 # hardcode_minus_L: Not really in the search PATH,
9899 # but as the default location of the library.
9900 hardcode_minus_L=yes
9901 export_dynamic_flag_spec='${wl}-E'
9904 hpux10*)
9905 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9906 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9907 else
9908 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9910 if test "$with_gnu_ld" = no; then
9911 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9912 hardcode_libdir_flag_spec_ld='+b $libdir'
9913 hardcode_libdir_separator=:
9914 hardcode_direct=yes
9915 hardcode_direct_absolute=yes
9916 export_dynamic_flag_spec='${wl}-E'
9917 # hardcode_minus_L: Not really in the search PATH,
9918 # but as the default location of the library.
9919 hardcode_minus_L=yes
9923 hpux11*)
9924 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9925 case $host_cpu in
9926 hppa*64*)
9927 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9929 ia64*)
9930 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9933 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9935 esac
9936 else
9937 case $host_cpu in
9938 hppa*64*)
9939 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9941 ia64*)
9942 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9946 # Older versions of the 11.00 compiler do not understand -b yet
9947 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9949 $as_echo_n "checking if $CC understands -b... " >&6; }
9950 if ${lt_cv_prog_compiler__b+:} false; then :
9951 $as_echo_n "(cached) " >&6
9952 else
9953 lt_cv_prog_compiler__b=no
9954 save_LDFLAGS="$LDFLAGS"
9955 LDFLAGS="$LDFLAGS -b"
9956 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9957 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9958 # The linker can only warn and ignore the option if not recognized
9959 # So say no if there are warnings
9960 if test -s conftest.err; then
9961 # Append any errors to the config.log.
9962 cat conftest.err 1>&5
9963 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9964 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9965 if diff conftest.exp conftest.er2 >/dev/null; then
9966 lt_cv_prog_compiler__b=yes
9968 else
9969 lt_cv_prog_compiler__b=yes
9972 $RM -r conftest*
9973 LDFLAGS="$save_LDFLAGS"
9976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9977 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9979 if test x"$lt_cv_prog_compiler__b" = xyes; then
9980 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9981 else
9982 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9986 esac
9988 if test "$with_gnu_ld" = no; then
9989 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9990 hardcode_libdir_separator=:
9992 case $host_cpu in
9993 hppa*64*|ia64*)
9994 hardcode_direct=no
9995 hardcode_shlibpath_var=no
9998 hardcode_direct=yes
9999 hardcode_direct_absolute=yes
10000 export_dynamic_flag_spec='${wl}-E'
10002 # hardcode_minus_L: Not really in the search PATH,
10003 # but as the default location of the library.
10004 hardcode_minus_L=yes
10006 esac
10010 irix5* | irix6* | nonstopux*)
10011 if test "$GCC" = yes; then
10012 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'
10013 # Try to use the -exported_symbol ld option, if it does not
10014 # work, assume that -exports_file does not work either and
10015 # implicitly export all symbols.
10016 save_LDFLAGS="$LDFLAGS"
10017 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10019 /* end confdefs.h. */
10020 int foo(void) {}
10021 _ACEOF
10022 if ac_fn_c_try_link "$LINENO"; then :
10023 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'
10026 rm -f core conftest.err conftest.$ac_objext \
10027 conftest$ac_exeext conftest.$ac_ext
10028 LDFLAGS="$save_LDFLAGS"
10029 else
10030 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'
10031 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'
10033 archive_cmds_need_lc='no'
10034 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10035 hardcode_libdir_separator=:
10036 inherit_rpath=yes
10037 link_all_deplibs=yes
10040 netbsd*)
10041 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10042 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10043 else
10044 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10046 hardcode_libdir_flag_spec='-R$libdir'
10047 hardcode_direct=yes
10048 hardcode_shlibpath_var=no
10051 newsos6)
10052 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10053 hardcode_direct=yes
10054 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10055 hardcode_libdir_separator=:
10056 hardcode_shlibpath_var=no
10059 *nto* | *qnx*)
10062 openbsd*)
10063 if test -f /usr/libexec/ld.so; then
10064 hardcode_direct=yes
10065 hardcode_shlibpath_var=no
10066 hardcode_direct_absolute=yes
10067 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10068 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10069 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10070 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10071 export_dynamic_flag_spec='${wl}-E'
10072 else
10073 case $host_os in
10074 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10075 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10076 hardcode_libdir_flag_spec='-R$libdir'
10079 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10080 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10082 esac
10084 else
10085 ld_shlibs=no
10089 os2*)
10090 hardcode_libdir_flag_spec='-L$libdir'
10091 hardcode_minus_L=yes
10092 allow_undefined_flag=unsupported
10093 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'
10094 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10097 osf3*)
10098 if test "$GCC" = yes; then
10099 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10100 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'
10101 else
10102 allow_undefined_flag=' -expect_unresolved \*'
10103 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'
10105 archive_cmds_need_lc='no'
10106 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10107 hardcode_libdir_separator=:
10110 osf4* | osf5*) # as osf3* with the addition of -msym flag
10111 if test "$GCC" = yes; then
10112 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10113 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'
10114 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10115 else
10116 allow_undefined_flag=' -expect_unresolved \*'
10117 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'
10118 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~
10119 $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'
10121 # Both c and cxx compiler support -rpath directly
10122 hardcode_libdir_flag_spec='-rpath $libdir'
10124 archive_cmds_need_lc='no'
10125 hardcode_libdir_separator=:
10128 solaris*)
10129 no_undefined_flag=' -z defs'
10130 if test "$GCC" = yes; then
10131 wlarc='${wl}'
10132 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10133 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10134 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10135 else
10136 case `$CC -V 2>&1` in
10137 *"Compilers 5.0"*)
10138 wlarc=''
10139 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10140 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10141 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10144 wlarc='${wl}'
10145 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10146 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10147 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10149 esac
10151 hardcode_libdir_flag_spec='-R$libdir'
10152 hardcode_shlibpath_var=no
10153 case $host_os in
10154 solaris2.[0-5] | solaris2.[0-5].*) ;;
10156 # The compiler driver will combine and reorder linker options,
10157 # but understands `-z linker_flag'. GCC discards it without `$wl',
10158 # but is careful enough not to reorder.
10159 # Supported since Solaris 2.6 (maybe 2.5.1?)
10160 if test "$GCC" = yes; then
10161 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10162 else
10163 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10166 esac
10167 link_all_deplibs=yes
10170 sunos4*)
10171 if test "x$host_vendor" = xsequent; then
10172 # Use $CC to link under sequent, because it throws in some extra .o
10173 # files that make .init and .fini sections work.
10174 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10175 else
10176 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10178 hardcode_libdir_flag_spec='-L$libdir'
10179 hardcode_direct=yes
10180 hardcode_minus_L=yes
10181 hardcode_shlibpath_var=no
10184 sysv4)
10185 case $host_vendor in
10186 sni)
10187 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10188 hardcode_direct=yes # is this really true???
10190 siemens)
10191 ## LD is ld it makes a PLAMLIB
10192 ## CC just makes a GrossModule.
10193 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10194 reload_cmds='$CC -r -o $output$reload_objs'
10195 hardcode_direct=no
10197 motorola)
10198 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10199 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10201 esac
10202 runpath_var='LD_RUN_PATH'
10203 hardcode_shlibpath_var=no
10206 sysv4.3*)
10207 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10208 hardcode_shlibpath_var=no
10209 export_dynamic_flag_spec='-Bexport'
10212 sysv4*MP*)
10213 if test -d /usr/nec; then
10214 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10215 hardcode_shlibpath_var=no
10216 runpath_var=LD_RUN_PATH
10217 hardcode_runpath_var=yes
10218 ld_shlibs=yes
10222 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10223 no_undefined_flag='${wl}-z,text'
10224 archive_cmds_need_lc=no
10225 hardcode_shlibpath_var=no
10226 runpath_var='LD_RUN_PATH'
10228 if test "$GCC" = yes; then
10229 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10230 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10231 else
10232 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10233 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10237 sysv5* | sco3.2v5* | sco5v6*)
10238 # Note: We can NOT use -z defs as we might desire, because we do not
10239 # link with -lc, and that would cause any symbols used from libc to
10240 # always be unresolved, which means just about no library would
10241 # ever link correctly. If we're not using GNU ld we use -z text
10242 # though, which does catch some bad symbols but isn't as heavy-handed
10243 # as -z defs.
10244 no_undefined_flag='${wl}-z,text'
10245 allow_undefined_flag='${wl}-z,nodefs'
10246 archive_cmds_need_lc=no
10247 hardcode_shlibpath_var=no
10248 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10249 hardcode_libdir_separator=':'
10250 link_all_deplibs=yes
10251 export_dynamic_flag_spec='${wl}-Bexport'
10252 runpath_var='LD_RUN_PATH'
10254 if test "$GCC" = yes; then
10255 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10256 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10257 else
10258 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10259 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10263 uts4*)
10264 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10265 hardcode_libdir_flag_spec='-L$libdir'
10266 hardcode_shlibpath_var=no
10270 ld_shlibs=no
10272 esac
10274 if test x$host_vendor = xsni; then
10275 case $host in
10276 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10277 export_dynamic_flag_spec='${wl}-Blargedynsym'
10279 esac
10283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10284 $as_echo "$ld_shlibs" >&6; }
10285 test "$ld_shlibs" = no && can_build_shared=no
10287 with_gnu_ld=$with_gnu_ld
10304 # Do we need to explicitly link libc?
10306 case "x$archive_cmds_need_lc" in
10307 x|xyes)
10308 # Assume -lc should be added
10309 archive_cmds_need_lc=yes
10311 if test "$enable_shared" = yes && test "$GCC" = yes; then
10312 case $archive_cmds in
10313 *'~'*)
10314 # FIXME: we may have to deal with multi-command sequences.
10316 '$CC '*)
10317 # Test whether the compiler implicitly links with -lc since on some
10318 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10319 # to ld, don't add -lc before -lgcc.
10320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10321 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10322 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10323 $as_echo_n "(cached) " >&6
10324 else
10325 $RM conftest*
10326 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10328 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10329 (eval $ac_compile) 2>&5
10330 ac_status=$?
10331 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10332 test $ac_status = 0; } 2>conftest.err; then
10333 soname=conftest
10334 lib=conftest
10335 libobjs=conftest.$ac_objext
10336 deplibs=
10337 wl=$lt_prog_compiler_wl
10338 pic_flag=$lt_prog_compiler_pic
10339 compiler_flags=-v
10340 linker_flags=-v
10341 verstring=
10342 output_objdir=.
10343 libname=conftest
10344 lt_save_allow_undefined_flag=$allow_undefined_flag
10345 allow_undefined_flag=
10346 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10347 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10348 ac_status=$?
10349 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10350 test $ac_status = 0; }
10351 then
10352 lt_cv_archive_cmds_need_lc=no
10353 else
10354 lt_cv_archive_cmds_need_lc=yes
10356 allow_undefined_flag=$lt_save_allow_undefined_flag
10357 else
10358 cat conftest.err 1>&5
10360 $RM conftest*
10363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10364 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10365 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10367 esac
10370 esac
10528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10529 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10531 if test "$GCC" = yes; then
10532 case $host_os in
10533 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10534 *) lt_awk_arg="/^libraries:/" ;;
10535 esac
10536 case $host_os in
10537 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10538 *) lt_sed_strip_eq="s,=/,/,g" ;;
10539 esac
10540 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10541 case $lt_search_path_spec in
10542 *\;*)
10543 # if the path contains ";" then we assume it to be the separator
10544 # otherwise default to the standard path separator (i.e. ":") - it is
10545 # assumed that no part of a normal pathname contains ";" but that should
10546 # okay in the real world where ";" in dirpaths is itself problematic.
10547 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10550 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10552 esac
10553 # Ok, now we have the path, separated by spaces, we can step through it
10554 # and add multilib dir if necessary.
10555 lt_tmp_lt_search_path_spec=
10556 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10557 for lt_sys_path in $lt_search_path_spec; do
10558 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10559 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10560 else
10561 test -d "$lt_sys_path" && \
10562 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10564 done
10565 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10566 BEGIN {RS=" "; FS="/|\n";} {
10567 lt_foo="";
10568 lt_count=0;
10569 for (lt_i = NF; lt_i > 0; lt_i--) {
10570 if ($lt_i != "" && $lt_i != ".") {
10571 if ($lt_i == "..") {
10572 lt_count++;
10573 } else {
10574 if (lt_count == 0) {
10575 lt_foo="/" $lt_i lt_foo;
10576 } else {
10577 lt_count--;
10582 if (lt_foo != "") { lt_freq[lt_foo]++; }
10583 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10585 # AWK program above erroneously prepends '/' to C:/dos/paths
10586 # for these hosts.
10587 case $host_os in
10588 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10589 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10590 esac
10591 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10592 else
10593 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10595 library_names_spec=
10596 libname_spec='lib$name'
10597 soname_spec=
10598 shrext_cmds=".so"
10599 postinstall_cmds=
10600 postuninstall_cmds=
10601 finish_cmds=
10602 finish_eval=
10603 shlibpath_var=
10604 shlibpath_overrides_runpath=unknown
10605 version_type=none
10606 dynamic_linker="$host_os ld.so"
10607 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10608 need_lib_prefix=unknown
10609 hardcode_into_libs=no
10611 # when you set need_version to no, make sure it does not cause -set_version
10612 # flags to be left without arguments
10613 need_version=unknown
10615 case $host_os in
10616 aix3*)
10617 version_type=linux
10618 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10619 shlibpath_var=LIBPATH
10621 # AIX 3 has no versioning support, so we append a major version to the name.
10622 soname_spec='${libname}${release}${shared_ext}$major'
10625 aix[4-9]*)
10626 version_type=linux
10627 need_lib_prefix=no
10628 need_version=no
10629 hardcode_into_libs=yes
10630 if test "$host_cpu" = ia64; then
10631 # AIX 5 supports IA64
10632 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10633 shlibpath_var=LD_LIBRARY_PATH
10634 else
10635 # With GCC up to 2.95.x, collect2 would create an import file
10636 # for dependence libraries. The import file would start with
10637 # the line `#! .'. This would cause the generated library to
10638 # depend on `.', always an invalid library. This was fixed in
10639 # development snapshots of GCC prior to 3.0.
10640 case $host_os in
10641 aix4 | aix4.[01] | aix4.[01].*)
10642 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10643 echo ' yes '
10644 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10646 else
10647 can_build_shared=no
10650 esac
10651 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10652 # soname into executable. Probably we can add versioning support to
10653 # collect2, so additional links can be useful in future.
10654 if test "$aix_use_runtimelinking" = yes; then
10655 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10656 # instead of lib<name>.a to let people know that these are not
10657 # typical AIX shared libraries.
10658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10659 else
10660 # We preserve .a as extension for shared libraries through AIX4.2
10661 # and later when we are not doing run time linking.
10662 library_names_spec='${libname}${release}.a $libname.a'
10663 soname_spec='${libname}${release}${shared_ext}$major'
10665 shlibpath_var=LIBPATH
10669 amigaos*)
10670 case $host_cpu in
10671 powerpc)
10672 # Since July 2007 AmigaOS4 officially supports .so libraries.
10673 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10674 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10676 m68k)
10677 library_names_spec='$libname.ixlibrary $libname.a'
10678 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10679 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'
10681 esac
10684 beos*)
10685 library_names_spec='${libname}${shared_ext}'
10686 dynamic_linker="$host_os ld.so"
10687 shlibpath_var=LIBRARY_PATH
10690 bsdi[45]*)
10691 version_type=linux
10692 need_version=no
10693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10694 soname_spec='${libname}${release}${shared_ext}$major'
10695 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10696 shlibpath_var=LD_LIBRARY_PATH
10697 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10698 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10699 # the default ld.so.conf also contains /usr/contrib/lib and
10700 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10701 # libtool to hard-code these into programs
10704 cygwin* | mingw* | pw32* | cegcc*)
10705 version_type=windows
10706 shrext_cmds=".dll"
10707 need_version=no
10708 need_lib_prefix=no
10710 case $GCC,$host_os in
10711 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10712 library_names_spec='$libname.dll.a'
10713 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10714 postinstall_cmds='base_file=`basename \${file}`~
10715 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10716 dldir=$destdir/`dirname \$dlpath`~
10717 test -d \$dldir || mkdir -p \$dldir~
10718 $install_prog $dir/$dlname \$dldir/$dlname~
10719 chmod a+x \$dldir/$dlname~
10720 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10721 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10723 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10724 dlpath=$dir/\$dldll~
10725 $RM \$dlpath'
10726 shlibpath_overrides_runpath=yes
10728 case $host_os in
10729 cygwin*)
10730 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10731 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10733 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10735 mingw* | cegcc*)
10736 # MinGW DLLs use traditional 'lib' prefix
10737 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10739 pw32*)
10740 # pw32 DLLs use 'pw' prefix rather than 'lib'
10741 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10743 esac
10747 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10749 esac
10750 dynamic_linker='Win32 ld.exe'
10751 # FIXME: first we should search . and the directory the executable is in
10752 shlibpath_var=PATH
10755 darwin* | rhapsody*)
10756 dynamic_linker="$host_os dyld"
10757 version_type=darwin
10758 need_lib_prefix=no
10759 need_version=no
10760 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10761 soname_spec='${libname}${release}${major}$shared_ext'
10762 shlibpath_overrides_runpath=yes
10763 shlibpath_var=DYLD_LIBRARY_PATH
10764 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10766 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10767 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10770 dgux*)
10771 version_type=linux
10772 need_lib_prefix=no
10773 need_version=no
10774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10775 soname_spec='${libname}${release}${shared_ext}$major'
10776 shlibpath_var=LD_LIBRARY_PATH
10779 freebsd* | dragonfly*)
10780 # DragonFly does not have aout. When/if they implement a new
10781 # versioning mechanism, adjust this.
10782 if test -x /usr/bin/objformat; then
10783 objformat=`/usr/bin/objformat`
10784 else
10785 case $host_os in
10786 freebsd[23].*) objformat=aout ;;
10787 *) objformat=elf ;;
10788 esac
10790 version_type=freebsd-$objformat
10791 case $version_type in
10792 freebsd-elf*)
10793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10794 need_version=no
10795 need_lib_prefix=no
10797 freebsd-*)
10798 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10799 need_version=yes
10801 esac
10802 shlibpath_var=LD_LIBRARY_PATH
10803 case $host_os in
10804 freebsd2.*)
10805 shlibpath_overrides_runpath=yes
10807 freebsd3.[01]* | freebsdelf3.[01]*)
10808 shlibpath_overrides_runpath=yes
10809 hardcode_into_libs=yes
10811 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10812 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10813 shlibpath_overrides_runpath=no
10814 hardcode_into_libs=yes
10816 *) # from 4.6 on, and DragonFly
10817 shlibpath_overrides_runpath=yes
10818 hardcode_into_libs=yes
10820 esac
10823 haiku*)
10824 version_type=linux
10825 need_lib_prefix=no
10826 need_version=no
10827 dynamic_linker="$host_os runtime_loader"
10828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10829 soname_spec='${libname}${release}${shared_ext}$major'
10830 shlibpath_var=LIBRARY_PATH
10831 shlibpath_overrides_runpath=yes
10832 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10833 hardcode_into_libs=yes
10836 hpux9* | hpux10* | hpux11*)
10837 # Give a soname corresponding to the major version so that dld.sl refuses to
10838 # link against other versions.
10839 version_type=sunos
10840 need_lib_prefix=no
10841 need_version=no
10842 case $host_cpu in
10843 ia64*)
10844 shrext_cmds='.so'
10845 hardcode_into_libs=yes
10846 dynamic_linker="$host_os dld.so"
10847 shlibpath_var=LD_LIBRARY_PATH
10848 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10849 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10850 soname_spec='${libname}${release}${shared_ext}$major'
10851 if test "X$HPUX_IA64_MODE" = X32; then
10852 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10853 else
10854 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10856 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10858 hppa*64*)
10859 shrext_cmds='.sl'
10860 hardcode_into_libs=yes
10861 dynamic_linker="$host_os dld.sl"
10862 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10863 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10864 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10865 soname_spec='${libname}${release}${shared_ext}$major'
10866 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10867 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10870 shrext_cmds='.sl'
10871 dynamic_linker="$host_os dld.sl"
10872 shlibpath_var=SHLIB_PATH
10873 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10875 soname_spec='${libname}${release}${shared_ext}$major'
10877 esac
10878 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10879 postinstall_cmds='chmod 555 $lib'
10880 # or fails outright, so override atomically:
10881 install_override_mode=555
10884 interix[3-9]*)
10885 version_type=linux
10886 need_lib_prefix=no
10887 need_version=no
10888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10889 soname_spec='${libname}${release}${shared_ext}$major'
10890 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10891 shlibpath_var=LD_LIBRARY_PATH
10892 shlibpath_overrides_runpath=no
10893 hardcode_into_libs=yes
10896 irix5* | irix6* | nonstopux*)
10897 case $host_os in
10898 nonstopux*) version_type=nonstopux ;;
10900 if test "$lt_cv_prog_gnu_ld" = yes; then
10901 version_type=linux
10902 else
10903 version_type=irix
10904 fi ;;
10905 esac
10906 need_lib_prefix=no
10907 need_version=no
10908 soname_spec='${libname}${release}${shared_ext}$major'
10909 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10910 case $host_os in
10911 irix5* | nonstopux*)
10912 libsuff= shlibsuff=
10915 case $LD in # libtool.m4 will add one of these switches to LD
10916 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10917 libsuff= shlibsuff= libmagic=32-bit;;
10918 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10919 libsuff=32 shlibsuff=N32 libmagic=N32;;
10920 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10921 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10922 *) libsuff= shlibsuff= libmagic=never-match;;
10923 esac
10925 esac
10926 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10927 shlibpath_overrides_runpath=no
10928 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10929 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10930 hardcode_into_libs=yes
10933 # No shared lib support for Linux oldld, aout, or coff.
10934 linux*oldld* | linux*aout* | linux*coff*)
10935 dynamic_linker=no
10938 # This must be Linux ELF.
10939 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10940 version_type=linux
10941 need_lib_prefix=no
10942 need_version=no
10943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10944 soname_spec='${libname}${release}${shared_ext}$major'
10945 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10946 shlibpath_var=LD_LIBRARY_PATH
10947 shlibpath_overrides_runpath=no
10949 # Some binutils ld are patched to set DT_RUNPATH
10950 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10951 $as_echo_n "(cached) " >&6
10952 else
10953 lt_cv_shlibpath_overrides_runpath=no
10954 save_LDFLAGS=$LDFLAGS
10955 save_libdir=$libdir
10956 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10957 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10959 /* end confdefs.h. */
10962 main ()
10966 return 0;
10968 _ACEOF
10969 if ac_fn_c_try_link "$LINENO"; then :
10970 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10971 lt_cv_shlibpath_overrides_runpath=yes
10974 rm -f core conftest.err conftest.$ac_objext \
10975 conftest$ac_exeext conftest.$ac_ext
10976 LDFLAGS=$save_LDFLAGS
10977 libdir=$save_libdir
10981 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10983 # This implies no fast_install, which is unacceptable.
10984 # Some rework will be needed to allow for fast_install
10985 # before this can be enabled.
10986 hardcode_into_libs=yes
10988 # Append ld.so.conf contents to the search path
10989 if test -f /etc/ld.so.conf; then
10990 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' ' '`
10991 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10994 # We used to test for /lib/ld.so.1 and disable shared libraries on
10995 # powerpc, because MkLinux only supported shared libraries with the
10996 # GNU dynamic linker. Since this was broken with cross compilers,
10997 # most powerpc-linux boxes support dynamic linking these days and
10998 # people can always --disable-shared, the test was removed, and we
10999 # assume the GNU/Linux dynamic linker is in use.
11000 dynamic_linker='GNU/Linux ld.so'
11003 netbsd*)
11004 version_type=sunos
11005 need_lib_prefix=no
11006 need_version=no
11007 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11009 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11010 dynamic_linker='NetBSD (a.out) ld.so'
11011 else
11012 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11013 soname_spec='${libname}${release}${shared_ext}$major'
11014 dynamic_linker='NetBSD ld.elf_so'
11016 shlibpath_var=LD_LIBRARY_PATH
11017 shlibpath_overrides_runpath=yes
11018 hardcode_into_libs=yes
11021 newsos6)
11022 version_type=linux
11023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11024 shlibpath_var=LD_LIBRARY_PATH
11025 shlibpath_overrides_runpath=yes
11028 *nto* | *qnx*)
11029 version_type=qnx
11030 need_lib_prefix=no
11031 need_version=no
11032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11033 soname_spec='${libname}${release}${shared_ext}$major'
11034 shlibpath_var=LD_LIBRARY_PATH
11035 shlibpath_overrides_runpath=no
11036 hardcode_into_libs=yes
11037 dynamic_linker='ldqnx.so'
11040 openbsd*)
11041 version_type=sunos
11042 sys_lib_dlsearch_path_spec="/usr/lib"
11043 need_lib_prefix=no
11044 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11045 case $host_os in
11046 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11047 *) need_version=no ;;
11048 esac
11049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11050 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11051 shlibpath_var=LD_LIBRARY_PATH
11052 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11053 case $host_os in
11054 openbsd2.[89] | openbsd2.[89].*)
11055 shlibpath_overrides_runpath=no
11058 shlibpath_overrides_runpath=yes
11060 esac
11061 else
11062 shlibpath_overrides_runpath=yes
11066 os2*)
11067 libname_spec='$name'
11068 shrext_cmds=".dll"
11069 need_lib_prefix=no
11070 library_names_spec='$libname${shared_ext} $libname.a'
11071 dynamic_linker='OS/2 ld.exe'
11072 shlibpath_var=LIBPATH
11075 osf3* | osf4* | osf5*)
11076 version_type=osf
11077 need_lib_prefix=no
11078 need_version=no
11079 soname_spec='${libname}${release}${shared_ext}$major'
11080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11081 shlibpath_var=LD_LIBRARY_PATH
11082 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11083 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11086 rdos*)
11087 dynamic_linker=no
11090 solaris*)
11091 version_type=linux
11092 need_lib_prefix=no
11093 need_version=no
11094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11095 soname_spec='${libname}${release}${shared_ext}$major'
11096 shlibpath_var=LD_LIBRARY_PATH
11097 shlibpath_overrides_runpath=yes
11098 hardcode_into_libs=yes
11099 # ldd complains unless libraries are executable
11100 postinstall_cmds='chmod +x $lib'
11103 sunos4*)
11104 version_type=sunos
11105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11106 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11107 shlibpath_var=LD_LIBRARY_PATH
11108 shlibpath_overrides_runpath=yes
11109 if test "$with_gnu_ld" = yes; then
11110 need_lib_prefix=no
11112 need_version=yes
11115 sysv4 | sysv4.3*)
11116 version_type=linux
11117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11118 soname_spec='${libname}${release}${shared_ext}$major'
11119 shlibpath_var=LD_LIBRARY_PATH
11120 case $host_vendor in
11121 sni)
11122 shlibpath_overrides_runpath=no
11123 need_lib_prefix=no
11124 runpath_var=LD_RUN_PATH
11126 siemens)
11127 need_lib_prefix=no
11129 motorola)
11130 need_lib_prefix=no
11131 need_version=no
11132 shlibpath_overrides_runpath=no
11133 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11135 esac
11138 sysv4*MP*)
11139 if test -d /usr/nec ;then
11140 version_type=linux
11141 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11142 soname_spec='$libname${shared_ext}.$major'
11143 shlibpath_var=LD_LIBRARY_PATH
11147 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11148 version_type=freebsd-elf
11149 need_lib_prefix=no
11150 need_version=no
11151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11152 soname_spec='${libname}${release}${shared_ext}$major'
11153 shlibpath_var=LD_LIBRARY_PATH
11154 shlibpath_overrides_runpath=yes
11155 hardcode_into_libs=yes
11156 if test "$with_gnu_ld" = yes; then
11157 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11158 else
11159 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11160 case $host_os in
11161 sco3.2v5*)
11162 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11164 esac
11166 sys_lib_dlsearch_path_spec='/usr/lib'
11169 tpf*)
11170 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11171 version_type=linux
11172 need_lib_prefix=no
11173 need_version=no
11174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11175 shlibpath_var=LD_LIBRARY_PATH
11176 shlibpath_overrides_runpath=no
11177 hardcode_into_libs=yes
11180 uts4*)
11181 version_type=linux
11182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11183 soname_spec='${libname}${release}${shared_ext}$major'
11184 shlibpath_var=LD_LIBRARY_PATH
11188 dynamic_linker=no
11190 esac
11191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11192 $as_echo "$dynamic_linker" >&6; }
11193 test "$dynamic_linker" = no && can_build_shared=no
11195 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11196 if test "$GCC" = yes; then
11197 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11200 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11201 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11203 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11204 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11299 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11300 hardcode_action=
11301 if test -n "$hardcode_libdir_flag_spec" ||
11302 test -n "$runpath_var" ||
11303 test "X$hardcode_automatic" = "Xyes" ; then
11305 # We can hardcode non-existent directories.
11306 if test "$hardcode_direct" != no &&
11307 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11308 # have to relink, otherwise we might link with an installed library
11309 # when we should be linking with a yet-to-be-installed one
11310 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11311 test "$hardcode_minus_L" != no; then
11312 # Linking always hardcodes the temporary library directory.
11313 hardcode_action=relink
11314 else
11315 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11316 hardcode_action=immediate
11318 else
11319 # We cannot hardcode anything, or else we can only hardcode existing
11320 # directories.
11321 hardcode_action=unsupported
11323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11324 $as_echo "$hardcode_action" >&6; }
11326 if test "$hardcode_action" = relink ||
11327 test "$inherit_rpath" = yes; then
11328 # Fast installation is not supported
11329 enable_fast_install=no
11330 elif test "$shlibpath_overrides_runpath" = yes ||
11331 test "$enable_shared" = no; then
11332 # Fast installation is not necessary
11333 enable_fast_install=needless
11341 if test "x$enable_dlopen" != xyes; then
11342 enable_dlopen=unknown
11343 enable_dlopen_self=unknown
11344 enable_dlopen_self_static=unknown
11345 else
11346 lt_cv_dlopen=no
11347 lt_cv_dlopen_libs=
11349 case $host_os in
11350 beos*)
11351 lt_cv_dlopen="load_add_on"
11352 lt_cv_dlopen_libs=
11353 lt_cv_dlopen_self=yes
11356 mingw* | pw32* | cegcc*)
11357 lt_cv_dlopen="LoadLibrary"
11358 lt_cv_dlopen_libs=
11361 cygwin*)
11362 lt_cv_dlopen="dlopen"
11363 lt_cv_dlopen_libs=
11366 darwin*)
11367 # if libdl is installed we need to link against it
11368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11369 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11370 if ${ac_cv_lib_dl_dlopen+:} false; then :
11371 $as_echo_n "(cached) " >&6
11372 else
11373 ac_check_lib_save_LIBS=$LIBS
11374 LIBS="-ldl $LIBS"
11375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11376 /* end confdefs.h. */
11378 /* Override any GCC internal prototype to avoid an error.
11379 Use char because int might match the return type of a GCC
11380 builtin and then its argument prototype would still apply. */
11381 #ifdef __cplusplus
11382 extern "C"
11383 #endif
11384 char dlopen ();
11386 main ()
11388 return dlopen ();
11390 return 0;
11392 _ACEOF
11393 if ac_fn_c_try_link "$LINENO"; then :
11394 ac_cv_lib_dl_dlopen=yes
11395 else
11396 ac_cv_lib_dl_dlopen=no
11398 rm -f core conftest.err conftest.$ac_objext \
11399 conftest$ac_exeext conftest.$ac_ext
11400 LIBS=$ac_check_lib_save_LIBS
11402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11403 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11404 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11405 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11406 else
11408 lt_cv_dlopen="dyld"
11409 lt_cv_dlopen_libs=
11410 lt_cv_dlopen_self=yes
11417 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11418 if test "x$ac_cv_func_shl_load" = xyes; then :
11419 lt_cv_dlopen="shl_load"
11420 else
11421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11422 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11423 if ${ac_cv_lib_dld_shl_load+:} false; then :
11424 $as_echo_n "(cached) " >&6
11425 else
11426 ac_check_lib_save_LIBS=$LIBS
11427 LIBS="-ldld $LIBS"
11428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11429 /* end confdefs.h. */
11431 /* Override any GCC internal prototype to avoid an error.
11432 Use char because int might match the return type of a GCC
11433 builtin and then its argument prototype would still apply. */
11434 #ifdef __cplusplus
11435 extern "C"
11436 #endif
11437 char shl_load ();
11439 main ()
11441 return shl_load ();
11443 return 0;
11445 _ACEOF
11446 if ac_fn_c_try_link "$LINENO"; then :
11447 ac_cv_lib_dld_shl_load=yes
11448 else
11449 ac_cv_lib_dld_shl_load=no
11451 rm -f core conftest.err conftest.$ac_objext \
11452 conftest$ac_exeext conftest.$ac_ext
11453 LIBS=$ac_check_lib_save_LIBS
11455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11456 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11457 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11458 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11459 else
11460 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11461 if test "x$ac_cv_func_dlopen" = xyes; then :
11462 lt_cv_dlopen="dlopen"
11463 else
11464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11465 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11466 if ${ac_cv_lib_dl_dlopen+:} false; then :
11467 $as_echo_n "(cached) " >&6
11468 else
11469 ac_check_lib_save_LIBS=$LIBS
11470 LIBS="-ldl $LIBS"
11471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11472 /* end confdefs.h. */
11474 /* Override any GCC internal prototype to avoid an error.
11475 Use char because int might match the return type of a GCC
11476 builtin and then its argument prototype would still apply. */
11477 #ifdef __cplusplus
11478 extern "C"
11479 #endif
11480 char dlopen ();
11482 main ()
11484 return dlopen ();
11486 return 0;
11488 _ACEOF
11489 if ac_fn_c_try_link "$LINENO"; then :
11490 ac_cv_lib_dl_dlopen=yes
11491 else
11492 ac_cv_lib_dl_dlopen=no
11494 rm -f core conftest.err conftest.$ac_objext \
11495 conftest$ac_exeext conftest.$ac_ext
11496 LIBS=$ac_check_lib_save_LIBS
11498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11499 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11500 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11501 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11502 else
11503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11504 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11505 if ${ac_cv_lib_svld_dlopen+:} false; then :
11506 $as_echo_n "(cached) " >&6
11507 else
11508 ac_check_lib_save_LIBS=$LIBS
11509 LIBS="-lsvld $LIBS"
11510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11511 /* end confdefs.h. */
11513 /* Override any GCC internal prototype to avoid an error.
11514 Use char because int might match the return type of a GCC
11515 builtin and then its argument prototype would still apply. */
11516 #ifdef __cplusplus
11517 extern "C"
11518 #endif
11519 char dlopen ();
11521 main ()
11523 return dlopen ();
11525 return 0;
11527 _ACEOF
11528 if ac_fn_c_try_link "$LINENO"; then :
11529 ac_cv_lib_svld_dlopen=yes
11530 else
11531 ac_cv_lib_svld_dlopen=no
11533 rm -f core conftest.err conftest.$ac_objext \
11534 conftest$ac_exeext conftest.$ac_ext
11535 LIBS=$ac_check_lib_save_LIBS
11537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11538 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11539 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11540 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11541 else
11542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11543 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11544 if ${ac_cv_lib_dld_dld_link+:} false; then :
11545 $as_echo_n "(cached) " >&6
11546 else
11547 ac_check_lib_save_LIBS=$LIBS
11548 LIBS="-ldld $LIBS"
11549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11550 /* end confdefs.h. */
11552 /* Override any GCC internal prototype to avoid an error.
11553 Use char because int might match the return type of a GCC
11554 builtin and then its argument prototype would still apply. */
11555 #ifdef __cplusplus
11556 extern "C"
11557 #endif
11558 char dld_link ();
11560 main ()
11562 return dld_link ();
11564 return 0;
11566 _ACEOF
11567 if ac_fn_c_try_link "$LINENO"; then :
11568 ac_cv_lib_dld_dld_link=yes
11569 else
11570 ac_cv_lib_dld_dld_link=no
11572 rm -f core conftest.err conftest.$ac_objext \
11573 conftest$ac_exeext conftest.$ac_ext
11574 LIBS=$ac_check_lib_save_LIBS
11576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11577 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11578 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11579 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11598 esac
11600 if test "x$lt_cv_dlopen" != xno; then
11601 enable_dlopen=yes
11602 else
11603 enable_dlopen=no
11606 case $lt_cv_dlopen in
11607 dlopen)
11608 save_CPPFLAGS="$CPPFLAGS"
11609 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11611 save_LDFLAGS="$LDFLAGS"
11612 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11614 save_LIBS="$LIBS"
11615 LIBS="$lt_cv_dlopen_libs $LIBS"
11617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11618 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11619 if ${lt_cv_dlopen_self+:} false; then :
11620 $as_echo_n "(cached) " >&6
11621 else
11622 if test "$cross_compiling" = yes; then :
11623 lt_cv_dlopen_self=cross
11624 else
11625 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11626 lt_status=$lt_dlunknown
11627 cat > conftest.$ac_ext <<_LT_EOF
11628 #line 11628 "configure"
11629 #include "confdefs.h"
11631 #if HAVE_DLFCN_H
11632 #include <dlfcn.h>
11633 #endif
11635 #include <stdio.h>
11637 #ifdef RTLD_GLOBAL
11638 # define LT_DLGLOBAL RTLD_GLOBAL
11639 #else
11640 # ifdef DL_GLOBAL
11641 # define LT_DLGLOBAL DL_GLOBAL
11642 # else
11643 # define LT_DLGLOBAL 0
11644 # endif
11645 #endif
11647 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11648 find out it does not work in some platform. */
11649 #ifndef LT_DLLAZY_OR_NOW
11650 # ifdef RTLD_LAZY
11651 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11652 # else
11653 # ifdef DL_LAZY
11654 # define LT_DLLAZY_OR_NOW DL_LAZY
11655 # else
11656 # ifdef RTLD_NOW
11657 # define LT_DLLAZY_OR_NOW RTLD_NOW
11658 # else
11659 # ifdef DL_NOW
11660 # define LT_DLLAZY_OR_NOW DL_NOW
11661 # else
11662 # define LT_DLLAZY_OR_NOW 0
11663 # endif
11664 # endif
11665 # endif
11666 # endif
11667 #endif
11669 /* When -fvisbility=hidden is used, assume the code has been annotated
11670 correspondingly for the symbols needed. */
11671 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11672 void fnord () __attribute__((visibility("default")));
11673 #endif
11675 void fnord () { int i=42; }
11676 int main ()
11678 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11679 int status = $lt_dlunknown;
11681 if (self)
11683 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11684 else
11686 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11687 else puts (dlerror ());
11689 /* dlclose (self); */
11691 else
11692 puts (dlerror ());
11694 return status;
11696 _LT_EOF
11697 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11698 (eval $ac_link) 2>&5
11699 ac_status=$?
11700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11701 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11702 (./conftest; exit; ) >&5 2>/dev/null
11703 lt_status=$?
11704 case x$lt_status in
11705 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11706 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11707 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11708 esac
11709 else :
11710 # compilation failed
11711 lt_cv_dlopen_self=no
11714 rm -fr conftest*
11718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11719 $as_echo "$lt_cv_dlopen_self" >&6; }
11721 if test "x$lt_cv_dlopen_self" = xyes; then
11722 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11724 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11725 if ${lt_cv_dlopen_self_static+:} false; then :
11726 $as_echo_n "(cached) " >&6
11727 else
11728 if test "$cross_compiling" = yes; then :
11729 lt_cv_dlopen_self_static=cross
11730 else
11731 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11732 lt_status=$lt_dlunknown
11733 cat > conftest.$ac_ext <<_LT_EOF
11734 #line 11734 "configure"
11735 #include "confdefs.h"
11737 #if HAVE_DLFCN_H
11738 #include <dlfcn.h>
11739 #endif
11741 #include <stdio.h>
11743 #ifdef RTLD_GLOBAL
11744 # define LT_DLGLOBAL RTLD_GLOBAL
11745 #else
11746 # ifdef DL_GLOBAL
11747 # define LT_DLGLOBAL DL_GLOBAL
11748 # else
11749 # define LT_DLGLOBAL 0
11750 # endif
11751 #endif
11753 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11754 find out it does not work in some platform. */
11755 #ifndef LT_DLLAZY_OR_NOW
11756 # ifdef RTLD_LAZY
11757 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11758 # else
11759 # ifdef DL_LAZY
11760 # define LT_DLLAZY_OR_NOW DL_LAZY
11761 # else
11762 # ifdef RTLD_NOW
11763 # define LT_DLLAZY_OR_NOW RTLD_NOW
11764 # else
11765 # ifdef DL_NOW
11766 # define LT_DLLAZY_OR_NOW DL_NOW
11767 # else
11768 # define LT_DLLAZY_OR_NOW 0
11769 # endif
11770 # endif
11771 # endif
11772 # endif
11773 #endif
11775 /* When -fvisbility=hidden is used, assume the code has been annotated
11776 correspondingly for the symbols needed. */
11777 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11778 void fnord () __attribute__((visibility("default")));
11779 #endif
11781 void fnord () { int i=42; }
11782 int main ()
11784 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11785 int status = $lt_dlunknown;
11787 if (self)
11789 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11790 else
11792 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11793 else puts (dlerror ());
11795 /* dlclose (self); */
11797 else
11798 puts (dlerror ());
11800 return status;
11802 _LT_EOF
11803 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11804 (eval $ac_link) 2>&5
11805 ac_status=$?
11806 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11807 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11808 (./conftest; exit; ) >&5 2>/dev/null
11809 lt_status=$?
11810 case x$lt_status in
11811 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11812 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11813 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11814 esac
11815 else :
11816 # compilation failed
11817 lt_cv_dlopen_self_static=no
11820 rm -fr conftest*
11824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11825 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11828 CPPFLAGS="$save_CPPFLAGS"
11829 LDFLAGS="$save_LDFLAGS"
11830 LIBS="$save_LIBS"
11832 esac
11834 case $lt_cv_dlopen_self in
11835 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11836 *) enable_dlopen_self=unknown ;;
11837 esac
11839 case $lt_cv_dlopen_self_static in
11840 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11841 *) enable_dlopen_self_static=unknown ;;
11842 esac
11861 striplib=
11862 old_striplib=
11863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11864 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11865 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11866 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11867 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11869 $as_echo "yes" >&6; }
11870 else
11871 # FIXME - insert some real tests, host_os isn't really good enough
11872 case $host_os in
11873 darwin*)
11874 if test -n "$STRIP" ; then
11875 striplib="$STRIP -x"
11876 old_striplib="$STRIP -S"
11877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11878 $as_echo "yes" >&6; }
11879 else
11880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11881 $as_echo "no" >&6; }
11885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11886 $as_echo "no" >&6; }
11888 esac
11902 # Report which library types will actually be built
11903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11904 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11906 $as_echo "$can_build_shared" >&6; }
11908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11909 $as_echo_n "checking whether to build shared libraries... " >&6; }
11910 test "$can_build_shared" = "no" && enable_shared=no
11912 # On AIX, shared libraries and static libraries use the same namespace, and
11913 # are all built from PIC.
11914 case $host_os in
11915 aix3*)
11916 test "$enable_shared" = yes && enable_static=no
11917 if test -n "$RANLIB"; then
11918 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11919 postinstall_cmds='$RANLIB $lib'
11923 aix[4-9]*)
11924 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11925 test "$enable_shared" = yes && enable_static=no
11928 esac
11929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11930 $as_echo "$enable_shared" >&6; }
11932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11933 $as_echo_n "checking whether to build static libraries... " >&6; }
11934 # Make sure either enable_shared or enable_static is yes.
11935 test "$enable_shared" = yes || enable_static=yes
11936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11937 $as_echo "$enable_static" >&6; }
11943 ac_ext=c
11944 ac_cpp='$CPP $CPPFLAGS'
11945 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11946 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11947 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11949 CC="$lt_save_CC"
11951 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11952 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11953 (test "X$CXX" != "Xg++"))) ; then
11954 ac_ext=cpp
11955 ac_cpp='$CXXCPP $CPPFLAGS'
11956 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11957 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11958 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
11960 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
11961 if test -z "$CXXCPP"; then
11962 if ${ac_cv_prog_CXXCPP+:} false; then :
11963 $as_echo_n "(cached) " >&6
11964 else
11965 # Double quotes because CXXCPP needs to be expanded
11966 for CXXCPP in "$CXX -E" "/lib/cpp"
11968 ac_preproc_ok=false
11969 for ac_cxx_preproc_warn_flag in '' yes
11971 # Use a header file that comes with gcc, so configuring glibc
11972 # with a fresh cross-compiler works.
11973 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11974 # <limits.h> exists even on freestanding compilers.
11975 # On the NeXT, cc -E runs the code through the compiler's parser,
11976 # not just through cpp. "Syntax error" is here to catch this case.
11977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11978 /* end confdefs.h. */
11979 #ifdef __STDC__
11980 # include <limits.h>
11981 #else
11982 # include <assert.h>
11983 #endif
11984 Syntax error
11985 _ACEOF
11986 if ac_fn_cxx_try_cpp "$LINENO"; then :
11988 else
11989 # Broken: fails on valid input.
11990 continue
11992 rm -f conftest.err conftest.i conftest.$ac_ext
11994 # OK, works on sane cases. Now check whether nonexistent headers
11995 # can be detected and how.
11996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11997 /* end confdefs.h. */
11998 #include <ac_nonexistent.h>
11999 _ACEOF
12000 if ac_fn_cxx_try_cpp "$LINENO"; then :
12001 # Broken: success on invalid input.
12002 continue
12003 else
12004 # Passes both tests.
12005 ac_preproc_ok=:
12006 break
12008 rm -f conftest.err conftest.i conftest.$ac_ext
12010 done
12011 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12012 rm -f conftest.i conftest.err conftest.$ac_ext
12013 if $ac_preproc_ok; then :
12014 break
12017 done
12018 ac_cv_prog_CXXCPP=$CXXCPP
12021 CXXCPP=$ac_cv_prog_CXXCPP
12022 else
12023 ac_cv_prog_CXXCPP=$CXXCPP
12025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12026 $as_echo "$CXXCPP" >&6; }
12027 ac_preproc_ok=false
12028 for ac_cxx_preproc_warn_flag in '' yes
12030 # Use a header file that comes with gcc, so configuring glibc
12031 # with a fresh cross-compiler works.
12032 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12033 # <limits.h> exists even on freestanding compilers.
12034 # On the NeXT, cc -E runs the code through the compiler's parser,
12035 # not just through cpp. "Syntax error" is here to catch this case.
12036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12037 /* end confdefs.h. */
12038 #ifdef __STDC__
12039 # include <limits.h>
12040 #else
12041 # include <assert.h>
12042 #endif
12043 Syntax error
12044 _ACEOF
12045 if ac_fn_cxx_try_cpp "$LINENO"; then :
12047 else
12048 # Broken: fails on valid input.
12049 continue
12051 rm -f conftest.err conftest.i conftest.$ac_ext
12053 # OK, works on sane cases. Now check whether nonexistent headers
12054 # can be detected and how.
12055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12056 /* end confdefs.h. */
12057 #include <ac_nonexistent.h>
12058 _ACEOF
12059 if ac_fn_cxx_try_cpp "$LINENO"; then :
12060 # Broken: success on invalid input.
12061 continue
12062 else
12063 # Passes both tests.
12064 ac_preproc_ok=:
12065 break
12067 rm -f conftest.err conftest.i conftest.$ac_ext
12069 done
12070 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12071 rm -f conftest.i conftest.err conftest.$ac_ext
12072 if $ac_preproc_ok; then :
12074 else
12075 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12076 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12077 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12078 See \`config.log' for more details" "$LINENO" 5; }
12081 ac_ext=c
12082 ac_cpp='$CPP $CPPFLAGS'
12083 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12084 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12085 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12087 else
12088 _lt_caught_CXX_error=yes
12091 ac_ext=cpp
12092 ac_cpp='$CXXCPP $CPPFLAGS'
12093 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12094 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12095 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12097 archive_cmds_need_lc_CXX=no
12098 allow_undefined_flag_CXX=
12099 always_export_symbols_CXX=no
12100 archive_expsym_cmds_CXX=
12101 compiler_needs_object_CXX=no
12102 export_dynamic_flag_spec_CXX=
12103 hardcode_direct_CXX=no
12104 hardcode_direct_absolute_CXX=no
12105 hardcode_libdir_flag_spec_CXX=
12106 hardcode_libdir_flag_spec_ld_CXX=
12107 hardcode_libdir_separator_CXX=
12108 hardcode_minus_L_CXX=no
12109 hardcode_shlibpath_var_CXX=unsupported
12110 hardcode_automatic_CXX=no
12111 inherit_rpath_CXX=no
12112 module_cmds_CXX=
12113 module_expsym_cmds_CXX=
12114 link_all_deplibs_CXX=unknown
12115 old_archive_cmds_CXX=$old_archive_cmds
12116 reload_flag_CXX=$reload_flag
12117 reload_cmds_CXX=$reload_cmds
12118 no_undefined_flag_CXX=
12119 whole_archive_flag_spec_CXX=
12120 enable_shared_with_static_runtimes_CXX=no
12122 # Source file extension for C++ test sources.
12123 ac_ext=cpp
12125 # Object file extension for compiled C++ test sources.
12126 objext=o
12127 objext_CXX=$objext
12129 # No sense in running all these tests if we already determined that
12130 # the CXX compiler isn't working. Some variables (like enable_shared)
12131 # are currently assumed to apply to all compilers on this platform,
12132 # and will be corrupted by setting them based on a non-working compiler.
12133 if test "$_lt_caught_CXX_error" != yes; then
12134 # Code to be used in simple compile tests
12135 lt_simple_compile_test_code="int some_variable = 0;"
12137 # Code to be used in simple link tests
12138 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12140 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12147 # If no C compiler was specified, use CC.
12148 LTCC=${LTCC-"$CC"}
12150 # If no C compiler flags were specified, use CFLAGS.
12151 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12153 # Allow CC to be a program name with arguments.
12154 compiler=$CC
12157 # save warnings/boilerplate of simple test code
12158 ac_outfile=conftest.$ac_objext
12159 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12160 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12161 _lt_compiler_boilerplate=`cat conftest.err`
12162 $RM conftest*
12164 ac_outfile=conftest.$ac_objext
12165 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12166 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12167 _lt_linker_boilerplate=`cat conftest.err`
12168 $RM -r conftest*
12171 # Allow CC to be a program name with arguments.
12172 lt_save_CC=$CC
12173 lt_save_LD=$LD
12174 lt_save_GCC=$GCC
12175 GCC=$GXX
12176 lt_save_with_gnu_ld=$with_gnu_ld
12177 lt_save_path_LD=$lt_cv_path_LD
12178 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12179 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12180 else
12181 $as_unset lt_cv_prog_gnu_ld
12183 if test -n "${lt_cv_path_LDCXX+set}"; then
12184 lt_cv_path_LD=$lt_cv_path_LDCXX
12185 else
12186 $as_unset lt_cv_path_LD
12188 test -z "${LDCXX+set}" || LD=$LDCXX
12189 CC=${CXX-"c++"}
12190 compiler=$CC
12191 compiler_CXX=$CC
12192 for cc_temp in $compiler""; do
12193 case $cc_temp in
12194 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12195 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12196 \-*) ;;
12197 *) break;;
12198 esac
12199 done
12200 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12203 if test -n "$compiler"; then
12204 # We don't want -fno-exception when compiling C++ code, so set the
12205 # no_builtin_flag separately
12206 if test "$GXX" = yes; then
12207 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12208 else
12209 lt_prog_compiler_no_builtin_flag_CXX=
12212 if test "$GXX" = yes; then
12213 # Set up default GNU C++ configuration
12217 # Check whether --with-gnu-ld was given.
12218 if test "${with_gnu_ld+set}" = set; then :
12219 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12220 else
12221 with_gnu_ld=no
12224 ac_prog=ld
12225 if test "$GCC" = yes; then
12226 # Check if gcc -print-prog-name=ld gives a path.
12227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12228 $as_echo_n "checking for ld used by $CC... " >&6; }
12229 case $host in
12230 *-*-mingw*)
12231 # gcc leaves a trailing carriage return which upsets mingw
12232 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12234 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12235 esac
12236 case $ac_prog in
12237 # Accept absolute paths.
12238 [\\/]* | ?:[\\/]*)
12239 re_direlt='/[^/][^/]*/\.\./'
12240 # Canonicalize the pathname of ld
12241 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12242 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12243 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12244 done
12245 test -z "$LD" && LD="$ac_prog"
12248 # If it fails, then pretend we aren't using GCC.
12249 ac_prog=ld
12252 # If it is relative, then search for the first ld in PATH.
12253 with_gnu_ld=unknown
12255 esac
12256 elif test "$with_gnu_ld" = yes; then
12257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12258 $as_echo_n "checking for GNU ld... " >&6; }
12259 else
12260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12261 $as_echo_n "checking for non-GNU ld... " >&6; }
12263 if ${lt_cv_path_LD+:} false; then :
12264 $as_echo_n "(cached) " >&6
12265 else
12266 if test -z "$LD"; then
12267 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12268 for ac_dir in $PATH; do
12269 IFS="$lt_save_ifs"
12270 test -z "$ac_dir" && ac_dir=.
12271 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12272 lt_cv_path_LD="$ac_dir/$ac_prog"
12273 # Check to see if the program is GNU ld. I'd rather use --version,
12274 # but apparently some variants of GNU ld only accept -v.
12275 # Break only if it was the GNU/non-GNU ld that we prefer.
12276 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12277 *GNU* | *'with BFD'*)
12278 test "$with_gnu_ld" != no && break
12281 test "$with_gnu_ld" != yes && break
12283 esac
12285 done
12286 IFS="$lt_save_ifs"
12287 else
12288 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12292 LD="$lt_cv_path_LD"
12293 if test -n "$LD"; then
12294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12295 $as_echo "$LD" >&6; }
12296 else
12297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12298 $as_echo "no" >&6; }
12300 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12302 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12303 if ${lt_cv_prog_gnu_ld+:} false; then :
12304 $as_echo_n "(cached) " >&6
12305 else
12306 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12307 case `$LD -v 2>&1 </dev/null` in
12308 *GNU* | *'with BFD'*)
12309 lt_cv_prog_gnu_ld=yes
12312 lt_cv_prog_gnu_ld=no
12314 esac
12316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12317 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12318 with_gnu_ld=$lt_cv_prog_gnu_ld
12326 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12327 # archiving commands below assume that GNU ld is being used.
12328 if test "$with_gnu_ld" = yes; then
12329 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12330 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'
12332 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12333 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12335 # If archive_cmds runs LD, not CC, wlarc should be empty
12336 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12337 # investigate it a little bit more. (MM)
12338 wlarc='${wl}'
12340 # ancient GNU ld didn't support --whole-archive et. al.
12341 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12342 $GREP 'no-whole-archive' > /dev/null; then
12343 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12344 else
12345 whole_archive_flag_spec_CXX=
12347 else
12348 with_gnu_ld=no
12349 wlarc=
12351 # A generic and very simple default shared library creation
12352 # command for GNU C++ for the case where it uses the native
12353 # linker, instead of GNU ld. If possible, this setting should
12354 # overridden to take advantage of the native linker features on
12355 # the platform it is being used on.
12356 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12359 # Commands to make compiler produce verbose output that lists
12360 # what "hidden" libraries, object files and flags are used when
12361 # linking a shared library.
12362 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12364 else
12365 GXX=no
12366 with_gnu_ld=no
12367 wlarc=
12370 # PORTME: fill in a description of your system's C++ link characteristics
12371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12372 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12373 ld_shlibs_CXX=yes
12374 case $host_os in
12375 aix3*)
12376 # FIXME: insert proper C++ library support
12377 ld_shlibs_CXX=no
12379 aix[4-9]*)
12380 if test "$host_cpu" = ia64; then
12381 # On IA64, the linker does run time linking by default, so we don't
12382 # have to do anything special.
12383 aix_use_runtimelinking=no
12384 exp_sym_flag='-Bexport'
12385 no_entry_flag=""
12386 else
12387 aix_use_runtimelinking=no
12389 # Test if we are trying to use run time linking or normal
12390 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12391 # need to do runtime linking.
12392 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12393 for ld_flag in $LDFLAGS; do
12394 case $ld_flag in
12395 *-brtl*)
12396 aix_use_runtimelinking=yes
12397 break
12399 esac
12400 done
12402 esac
12404 exp_sym_flag='-bexport'
12405 no_entry_flag='-bnoentry'
12408 # When large executables or shared objects are built, AIX ld can
12409 # have problems creating the table of contents. If linking a library
12410 # or program results in "error TOC overflow" add -mminimal-toc to
12411 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12412 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12414 archive_cmds_CXX=''
12415 hardcode_direct_CXX=yes
12416 hardcode_direct_absolute_CXX=yes
12417 hardcode_libdir_separator_CXX=':'
12418 link_all_deplibs_CXX=yes
12419 file_list_spec_CXX='${wl}-f,'
12421 if test "$GXX" = yes; then
12422 case $host_os in aix4.[012]|aix4.[012].*)
12423 # We only want to do this on AIX 4.2 and lower, the check
12424 # below for broken collect2 doesn't work under 4.3+
12425 collect2name=`${CC} -print-prog-name=collect2`
12426 if test -f "$collect2name" &&
12427 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12428 then
12429 # We have reworked collect2
12431 else
12432 # We have old collect2
12433 hardcode_direct_CXX=unsupported
12434 # It fails to find uninstalled libraries when the uninstalled
12435 # path is not listed in the libpath. Setting hardcode_minus_L
12436 # to unsupported forces relinking
12437 hardcode_minus_L_CXX=yes
12438 hardcode_libdir_flag_spec_CXX='-L$libdir'
12439 hardcode_libdir_separator_CXX=
12441 esac
12442 shared_flag='-shared'
12443 if test "$aix_use_runtimelinking" = yes; then
12444 shared_flag="$shared_flag "'${wl}-G'
12446 else
12447 # not using gcc
12448 if test "$host_cpu" = ia64; then
12449 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12450 # chokes on -Wl,-G. The following line is correct:
12451 shared_flag='-G'
12452 else
12453 if test "$aix_use_runtimelinking" = yes; then
12454 shared_flag='${wl}-G'
12455 else
12456 shared_flag='${wl}-bM:SRE'
12461 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12462 # It seems that -bexpall does not export symbols beginning with
12463 # underscore (_), so it is better to generate a list of symbols to
12464 # export.
12465 always_export_symbols_CXX=yes
12466 if test "$aix_use_runtimelinking" = yes; then
12467 # Warning - without using the other runtime loading flags (-brtl),
12468 # -berok will link without error, but may produce a broken library.
12469 allow_undefined_flag_CXX='-berok'
12470 # Determine the default libpath from the value encoded in an empty
12471 # executable.
12472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12473 /* end confdefs.h. */
12476 main ()
12480 return 0;
12482 _ACEOF
12483 if ac_fn_cxx_try_link "$LINENO"; then :
12485 lt_aix_libpath_sed='
12486 /Import File Strings/,/^$/ {
12487 /^0/ {
12488 s/^0 *\(.*\)$/\1/
12492 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12493 # Check for a 64-bit object if we didn't find anything.
12494 if test -z "$aix_libpath"; then
12495 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12498 rm -f core conftest.err conftest.$ac_objext \
12499 conftest$ac_exeext conftest.$ac_ext
12500 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12502 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12504 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"
12505 else
12506 if test "$host_cpu" = ia64; then
12507 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12508 allow_undefined_flag_CXX="-z nodefs"
12509 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"
12510 else
12511 # Determine the default libpath from the value encoded in an
12512 # empty executable.
12513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12514 /* end confdefs.h. */
12517 main ()
12521 return 0;
12523 _ACEOF
12524 if ac_fn_cxx_try_link "$LINENO"; then :
12526 lt_aix_libpath_sed='
12527 /Import File Strings/,/^$/ {
12528 /^0/ {
12529 s/^0 *\(.*\)$/\1/
12533 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12534 # Check for a 64-bit object if we didn't find anything.
12535 if test -z "$aix_libpath"; then
12536 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12539 rm -f core conftest.err conftest.$ac_objext \
12540 conftest$ac_exeext conftest.$ac_ext
12541 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12543 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12544 # Warning - without using the other run time loading flags,
12545 # -berok will link without error, but may produce a broken library.
12546 no_undefined_flag_CXX=' ${wl}-bernotok'
12547 allow_undefined_flag_CXX=' ${wl}-berok'
12548 if test "$with_gnu_ld" = yes; then
12549 # We only use this code for GNU lds that support --whole-archive.
12550 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12551 else
12552 # Exported symbols can be pulled into shared objects from archives
12553 whole_archive_flag_spec_CXX='$convenience'
12555 archive_cmds_need_lc_CXX=yes
12556 # This is similar to how AIX traditionally builds its shared
12557 # libraries.
12558 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'
12563 beos*)
12564 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12565 allow_undefined_flag_CXX=unsupported
12566 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12567 # support --undefined. This deserves some investigation. FIXME
12568 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12569 else
12570 ld_shlibs_CXX=no
12574 chorus*)
12575 case $cc_basename in
12577 # FIXME: insert proper C++ library support
12578 ld_shlibs_CXX=no
12580 esac
12583 cygwin* | mingw* | pw32* | cegcc*)
12584 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12585 # as there is no search path for DLLs.
12586 hardcode_libdir_flag_spec_CXX='-L$libdir'
12587 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12588 allow_undefined_flag_CXX=unsupported
12589 always_export_symbols_CXX=no
12590 enable_shared_with_static_runtimes_CXX=yes
12592 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12593 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'
12594 # If the export-symbols file already is a .def file (1st line
12595 # is EXPORTS), use it as is; otherwise, prepend...
12596 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12597 cp $export_symbols $output_objdir/$soname.def;
12598 else
12599 echo EXPORTS > $output_objdir/$soname.def;
12600 cat $export_symbols >> $output_objdir/$soname.def;
12602 $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'
12603 else
12604 ld_shlibs_CXX=no
12607 darwin* | rhapsody*)
12610 archive_cmds_need_lc_CXX=no
12611 hardcode_direct_CXX=no
12612 hardcode_automatic_CXX=yes
12613 hardcode_shlibpath_var_CXX=unsupported
12614 if test "$lt_cv_ld_force_load" = "yes"; then
12615 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\"`'
12616 else
12617 whole_archive_flag_spec_CXX=''
12619 link_all_deplibs_CXX=yes
12620 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12621 case $cc_basename in
12622 ifort*) _lt_dar_can_shared=yes ;;
12623 *) _lt_dar_can_shared=$GCC ;;
12624 esac
12625 if test "$_lt_dar_can_shared" = "yes"; then
12626 output_verbose_link_cmd=func_echo_all
12627 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}"
12628 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12629 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}"
12630 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}"
12631 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12632 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}"
12633 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}"
12636 else
12637 ld_shlibs_CXX=no
12642 dgux*)
12643 case $cc_basename in
12644 ec++*)
12645 # FIXME: insert proper C++ library support
12646 ld_shlibs_CXX=no
12648 ghcx*)
12649 # Green Hills C++ Compiler
12650 # FIXME: insert proper C++ library support
12651 ld_shlibs_CXX=no
12654 # FIXME: insert proper C++ library support
12655 ld_shlibs_CXX=no
12657 esac
12660 freebsd2.*)
12661 # C++ shared libraries reported to be fairly broken before
12662 # switch to ELF
12663 ld_shlibs_CXX=no
12666 freebsd-elf*)
12667 archive_cmds_need_lc_CXX=no
12670 freebsd* | dragonfly*)
12671 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12672 # conventions
12673 ld_shlibs_CXX=yes
12676 gnu*)
12679 haiku*)
12680 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12681 link_all_deplibs_CXX=yes
12684 hpux9*)
12685 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12686 hardcode_libdir_separator_CXX=:
12687 export_dynamic_flag_spec_CXX='${wl}-E'
12688 hardcode_direct_CXX=yes
12689 hardcode_minus_L_CXX=yes # Not in the search PATH,
12690 # but as the default
12691 # location of the library.
12693 case $cc_basename in
12694 CC*)
12695 # FIXME: insert proper C++ library support
12696 ld_shlibs_CXX=no
12698 aCC*)
12699 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'
12700 # Commands to make compiler produce verbose output that lists
12701 # what "hidden" libraries, object files and flags are used when
12702 # linking a shared library.
12704 # There doesn't appear to be a way to prevent this compiler from
12705 # explicitly linking system object files so we need to strip them
12706 # from the output so that they don't get included in the library
12707 # dependencies.
12708 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"'
12711 if test "$GXX" = yes; then
12712 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'
12713 else
12714 # FIXME: insert proper C++ library support
12715 ld_shlibs_CXX=no
12718 esac
12721 hpux10*|hpux11*)
12722 if test $with_gnu_ld = no; then
12723 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12724 hardcode_libdir_separator_CXX=:
12726 case $host_cpu in
12727 hppa*64*|ia64*)
12730 export_dynamic_flag_spec_CXX='${wl}-E'
12732 esac
12734 case $host_cpu in
12735 hppa*64*|ia64*)
12736 hardcode_direct_CXX=no
12737 hardcode_shlibpath_var_CXX=no
12740 hardcode_direct_CXX=yes
12741 hardcode_direct_absolute_CXX=yes
12742 hardcode_minus_L_CXX=yes # Not in the search PATH,
12743 # but as the default
12744 # location of the library.
12746 esac
12748 case $cc_basename in
12749 CC*)
12750 # FIXME: insert proper C++ library support
12751 ld_shlibs_CXX=no
12753 aCC*)
12754 case $host_cpu in
12755 hppa*64*)
12756 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12758 ia64*)
12759 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12762 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12764 esac
12765 # Commands to make compiler produce verbose output that lists
12766 # what "hidden" libraries, object files and flags are used when
12767 # linking a shared library.
12769 # There doesn't appear to be a way to prevent this compiler from
12770 # explicitly linking system object files so we need to strip them
12771 # from the output so that they don't get included in the library
12772 # dependencies.
12773 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"'
12776 if test "$GXX" = yes; then
12777 if test $with_gnu_ld = no; then
12778 case $host_cpu in
12779 hppa*64*)
12780 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12782 ia64*)
12783 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12786 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'
12788 esac
12790 else
12791 # FIXME: insert proper C++ library support
12792 ld_shlibs_CXX=no
12795 esac
12798 interix[3-9]*)
12799 hardcode_direct_CXX=no
12800 hardcode_shlibpath_var_CXX=no
12801 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12802 export_dynamic_flag_spec_CXX='${wl}-E'
12803 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12804 # Instead, shared libraries are loaded at an image base (0x10000000 by
12805 # default) and relocated if they conflict, which is a slow very memory
12806 # consuming and fragmenting process. To avoid this, we pick a random,
12807 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12808 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12809 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'
12810 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'
12812 irix5* | irix6*)
12813 case $cc_basename in
12814 CC*)
12815 # SGI C++
12816 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'
12818 # Archives containing C++ object files must be created using
12819 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12820 # necessary to make sure instantiated templates are included
12821 # in the archive.
12822 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12825 if test "$GXX" = yes; then
12826 if test "$with_gnu_ld" = no; then
12827 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'
12828 else
12829 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'
12832 link_all_deplibs_CXX=yes
12834 esac
12835 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12836 hardcode_libdir_separator_CXX=:
12837 inherit_rpath_CXX=yes
12840 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12841 case $cc_basename in
12842 KCC*)
12843 # Kuck and Associates, Inc. (KAI) C++ Compiler
12845 # KCC will only create a shared library if the output file
12846 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12847 # to its proper name (with version) after linking.
12848 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'
12849 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'
12850 # Commands to make compiler produce verbose output that lists
12851 # what "hidden" libraries, object files and flags are used when
12852 # linking a shared library.
12854 # There doesn't appear to be a way to prevent this compiler from
12855 # explicitly linking system object files so we need to strip them
12856 # from the output so that they don't get included in the library
12857 # dependencies.
12858 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"'
12860 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12861 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12863 # Archives containing C++ object files must be created using
12864 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12865 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12867 icpc* | ecpc* )
12868 # Intel C++
12869 with_gnu_ld=yes
12870 # version 8.0 and above of icpc choke on multiply defined symbols
12871 # if we add $predep_objects and $postdep_objects, however 7.1 and
12872 # earlier do not add the objects themselves.
12873 case `$CC -V 2>&1` in
12874 *"Version 7."*)
12875 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12876 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'
12878 *) # Version 8.0 or newer
12879 tmp_idyn=
12880 case $host_cpu in
12881 ia64*) tmp_idyn=' -i_dynamic';;
12882 esac
12883 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12884 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'
12886 esac
12887 archive_cmds_need_lc_CXX=no
12888 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12889 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12890 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12892 pgCC* | pgcpp*)
12893 # Portland Group C++ compiler
12894 case `$CC -V` in
12895 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
12896 prelink_cmds_CXX='tpldir=Template.dir~
12897 rm -rf $tpldir~
12898 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12899 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
12900 old_archive_cmds_CXX='tpldir=Template.dir~
12901 rm -rf $tpldir~
12902 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12903 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
12904 $RANLIB $oldlib'
12905 archive_cmds_CXX='tpldir=Template.dir~
12906 rm -rf $tpldir~
12907 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12908 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12909 archive_expsym_cmds_CXX='tpldir=Template.dir~
12910 rm -rf $tpldir~
12911 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12912 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
12914 *) # Version 6 and above use weak symbols
12915 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12916 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'
12918 esac
12920 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12921 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12922 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'
12924 cxx*)
12925 # Compaq C++
12926 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12927 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'
12929 runpath_var=LD_RUN_PATH
12930 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12931 hardcode_libdir_separator_CXX=:
12933 # Commands to make compiler produce verbose output that lists
12934 # what "hidden" libraries, object files and flags are used when
12935 # linking a shared library.
12937 # There doesn't appear to be a way to prevent this compiler from
12938 # explicitly linking system object files so we need to strip them
12939 # from the output so that they don't get included in the library
12940 # dependencies.
12941 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'
12943 xl* | mpixl* | bgxl*)
12944 # IBM XL 8.0 on PPC, with GNU ld
12945 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12946 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12947 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12948 if test "x$supports_anon_versioning" = xyes; then
12949 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12950 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12951 echo "local: *; };" >> $output_objdir/$libname.ver~
12952 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12956 case `$CC -V 2>&1 | sed 5q` in
12957 *Sun\ C*)
12958 # Sun C++ 5.9
12959 no_undefined_flag_CXX=' -zdefs'
12960 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12961 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'
12962 hardcode_libdir_flag_spec_CXX='-R$libdir'
12963 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'
12964 compiler_needs_object_CXX=yes
12966 # Not sure whether something based on
12967 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12968 # would be better.
12969 output_verbose_link_cmd='func_echo_all'
12971 # Archives containing C++ object files must be created using
12972 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12973 # necessary to make sure instantiated templates are included
12974 # in the archive.
12975 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12977 esac
12979 esac
12982 lynxos*)
12983 # FIXME: insert proper C++ library support
12984 ld_shlibs_CXX=no
12987 m88k*)
12988 # FIXME: insert proper C++ library support
12989 ld_shlibs_CXX=no
12992 mvs*)
12993 case $cc_basename in
12994 cxx*)
12995 # FIXME: insert proper C++ library support
12996 ld_shlibs_CXX=no
12999 # FIXME: insert proper C++ library support
13000 ld_shlibs_CXX=no
13002 esac
13005 netbsd*)
13006 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13007 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13008 wlarc=
13009 hardcode_libdir_flag_spec_CXX='-R$libdir'
13010 hardcode_direct_CXX=yes
13011 hardcode_shlibpath_var_CXX=no
13013 # Workaround some broken pre-1.5 toolchains
13014 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13017 *nto* | *qnx*)
13018 ld_shlibs_CXX=yes
13021 openbsd2*)
13022 # C++ shared libraries are fairly broken
13023 ld_shlibs_CXX=no
13026 openbsd*)
13027 if test -f /usr/libexec/ld.so; then
13028 hardcode_direct_CXX=yes
13029 hardcode_shlibpath_var_CXX=no
13030 hardcode_direct_absolute_CXX=yes
13031 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13032 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13033 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13034 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13035 export_dynamic_flag_spec_CXX='${wl}-E'
13036 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13038 output_verbose_link_cmd=func_echo_all
13039 else
13040 ld_shlibs_CXX=no
13044 osf3* | osf4* | osf5*)
13045 case $cc_basename in
13046 KCC*)
13047 # Kuck and Associates, Inc. (KAI) C++ Compiler
13049 # KCC will only create a shared library if the output file
13050 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13051 # to its proper name (with version) after linking.
13052 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'
13054 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13055 hardcode_libdir_separator_CXX=:
13057 # Archives containing C++ object files must be created using
13058 # the KAI C++ compiler.
13059 case $host in
13060 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13061 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13062 esac
13064 RCC*)
13065 # Rational C++ 2.4.1
13066 # FIXME: insert proper C++ library support
13067 ld_shlibs_CXX=no
13069 cxx*)
13070 case $host in
13071 osf3*)
13072 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13073 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'
13074 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13077 allow_undefined_flag_CXX=' -expect_unresolved \*'
13078 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'
13079 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13080 echo "-hidden">> $lib.exp~
13081 $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~
13082 $RM $lib.exp'
13083 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13085 esac
13087 hardcode_libdir_separator_CXX=:
13089 # Commands to make compiler produce verbose output that lists
13090 # what "hidden" libraries, object files and flags are used when
13091 # linking a shared library.
13093 # There doesn't appear to be a way to prevent this compiler from
13094 # explicitly linking system object files so we need to strip them
13095 # from the output so that they don't get included in the library
13096 # dependencies.
13097 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"'
13100 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13101 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13102 case $host in
13103 osf3*)
13104 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'
13107 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'
13109 esac
13111 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13112 hardcode_libdir_separator_CXX=:
13114 # Commands to make compiler produce verbose output that lists
13115 # what "hidden" libraries, object files and flags are used when
13116 # linking a shared library.
13117 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13119 else
13120 # FIXME: insert proper C++ library support
13121 ld_shlibs_CXX=no
13124 esac
13127 psos*)
13128 # FIXME: insert proper C++ library support
13129 ld_shlibs_CXX=no
13132 sunos4*)
13133 case $cc_basename in
13134 CC*)
13135 # Sun C++ 4.x
13136 # FIXME: insert proper C++ library support
13137 ld_shlibs_CXX=no
13139 lcc*)
13140 # Lucid
13141 # FIXME: insert proper C++ library support
13142 ld_shlibs_CXX=no
13145 # FIXME: insert proper C++ library support
13146 ld_shlibs_CXX=no
13148 esac
13151 solaris*)
13152 case $cc_basename in
13153 CC*)
13154 # Sun C++ 4.2, 5.x and Centerline C++
13155 archive_cmds_need_lc_CXX=yes
13156 no_undefined_flag_CXX=' -zdefs'
13157 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13158 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13159 $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'
13161 hardcode_libdir_flag_spec_CXX='-R$libdir'
13162 hardcode_shlibpath_var_CXX=no
13163 case $host_os in
13164 solaris2.[0-5] | solaris2.[0-5].*) ;;
13166 # The compiler driver will combine and reorder linker options,
13167 # but understands `-z linker_flag'.
13168 # Supported since Solaris 2.6 (maybe 2.5.1?)
13169 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13171 esac
13172 link_all_deplibs_CXX=yes
13174 output_verbose_link_cmd='func_echo_all'
13176 # Archives containing C++ object files must be created using
13177 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13178 # necessary to make sure instantiated templates are included
13179 # in the archive.
13180 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13182 gcx*)
13183 # Green Hills C++ Compiler
13184 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13186 # The C++ compiler must be used to create the archive.
13187 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13190 # GNU C++ compiler with Solaris linker
13191 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13192 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13193 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13194 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13195 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13196 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13198 # Commands to make compiler produce verbose output that lists
13199 # what "hidden" libraries, object files and flags are used when
13200 # linking a shared library.
13201 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13202 else
13203 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13204 # platform.
13205 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13206 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13207 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13209 # Commands to make compiler produce verbose output that lists
13210 # what "hidden" libraries, object files and flags are used when
13211 # linking a shared library.
13212 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13215 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13216 case $host_os in
13217 solaris2.[0-5] | solaris2.[0-5].*) ;;
13219 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13221 esac
13224 esac
13227 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13228 no_undefined_flag_CXX='${wl}-z,text'
13229 archive_cmds_need_lc_CXX=no
13230 hardcode_shlibpath_var_CXX=no
13231 runpath_var='LD_RUN_PATH'
13233 case $cc_basename in
13234 CC*)
13235 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13236 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13239 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13240 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13242 esac
13245 sysv5* | sco3.2v5* | sco5v6*)
13246 # Note: We can NOT use -z defs as we might desire, because we do not
13247 # link with -lc, and that would cause any symbols used from libc to
13248 # always be unresolved, which means just about no library would
13249 # ever link correctly. If we're not using GNU ld we use -z text
13250 # though, which does catch some bad symbols but isn't as heavy-handed
13251 # as -z defs.
13252 no_undefined_flag_CXX='${wl}-z,text'
13253 allow_undefined_flag_CXX='${wl}-z,nodefs'
13254 archive_cmds_need_lc_CXX=no
13255 hardcode_shlibpath_var_CXX=no
13256 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13257 hardcode_libdir_separator_CXX=':'
13258 link_all_deplibs_CXX=yes
13259 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13260 runpath_var='LD_RUN_PATH'
13262 case $cc_basename in
13263 CC*)
13264 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13265 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13266 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13267 '"$old_archive_cmds_CXX"
13268 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13269 '"$reload_cmds_CXX"
13272 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13273 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13275 esac
13278 tandem*)
13279 case $cc_basename in
13280 NCC*)
13281 # NonStop-UX NCC 3.20
13282 # FIXME: insert proper C++ library support
13283 ld_shlibs_CXX=no
13286 # FIXME: insert proper C++ library support
13287 ld_shlibs_CXX=no
13289 esac
13292 vxworks*)
13293 # FIXME: insert proper C++ library support
13294 ld_shlibs_CXX=no
13298 # FIXME: insert proper C++ library support
13299 ld_shlibs_CXX=no
13301 esac
13303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13304 $as_echo "$ld_shlibs_CXX" >&6; }
13305 test "$ld_shlibs_CXX" = no && can_build_shared=no
13307 GCC_CXX="$GXX"
13308 LD_CXX="$LD"
13310 ## CAVEAT EMPTOR:
13311 ## There is no encapsulation within the following macros, do not change
13312 ## the running order or otherwise move them around unless you know exactly
13313 ## what you are doing...
13314 # Dependencies to place before and after the object being linked:
13315 predep_objects_CXX=
13316 postdep_objects_CXX=
13317 predeps_CXX=
13318 postdeps_CXX=
13319 compiler_lib_search_path_CXX=
13321 cat > conftest.$ac_ext <<_LT_EOF
13322 class Foo
13324 public:
13325 Foo (void) { a = 0; }
13326 private:
13327 int a;
13329 _LT_EOF
13331 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13332 (eval $ac_compile) 2>&5
13333 ac_status=$?
13334 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13335 test $ac_status = 0; }; then
13336 # Parse the compiler output and extract the necessary
13337 # objects, libraries and library flags.
13339 # Sentinel used to keep track of whether or not we are before
13340 # the conftest object file.
13341 pre_test_object_deps_done=no
13343 for p in `eval "$output_verbose_link_cmd"`; do
13344 case $p in
13346 -L* | -R* | -l*)
13347 # Some compilers place space between "-{L,R}" and the path.
13348 # Remove the space.
13349 if test $p = "-L" ||
13350 test $p = "-R"; then
13351 prev=$p
13352 continue
13353 else
13354 prev=
13357 if test "$pre_test_object_deps_done" = no; then
13358 case $p in
13359 -L* | -R*)
13360 # Internal compiler library paths should come after those
13361 # provided the user. The postdeps already come after the
13362 # user supplied libs so there is no need to process them.
13363 if test -z "$compiler_lib_search_path_CXX"; then
13364 compiler_lib_search_path_CXX="${prev}${p}"
13365 else
13366 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13369 # The "-l" case would never come before the object being
13370 # linked, so don't bother handling this case.
13371 esac
13372 else
13373 if test -z "$postdeps_CXX"; then
13374 postdeps_CXX="${prev}${p}"
13375 else
13376 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13381 *.$objext)
13382 # This assumes that the test object file only shows up
13383 # once in the compiler output.
13384 if test "$p" = "conftest.$objext"; then
13385 pre_test_object_deps_done=yes
13386 continue
13389 if test "$pre_test_object_deps_done" = no; then
13390 if test -z "$predep_objects_CXX"; then
13391 predep_objects_CXX="$p"
13392 else
13393 predep_objects_CXX="$predep_objects_CXX $p"
13395 else
13396 if test -z "$postdep_objects_CXX"; then
13397 postdep_objects_CXX="$p"
13398 else
13399 postdep_objects_CXX="$postdep_objects_CXX $p"
13404 *) ;; # Ignore the rest.
13406 esac
13407 done
13409 # Clean up.
13410 rm -f a.out a.exe
13411 else
13412 echo "libtool.m4: error: problem compiling CXX test program"
13415 $RM -f confest.$objext
13417 # PORTME: override above test on systems where it is broken
13418 case $host_os in
13419 interix[3-9]*)
13420 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13421 # hack all around it, let's just trust "g++" to DTRT.
13422 predep_objects_CXX=
13423 postdep_objects_CXX=
13424 postdeps_CXX=
13427 linux*)
13428 case `$CC -V 2>&1 | sed 5q` in
13429 *Sun\ C*)
13430 # Sun C++ 5.9
13432 # The more standards-conforming stlport4 library is
13433 # incompatible with the Cstd library. Avoid specifying
13434 # it if it's in CXXFLAGS. Ignore libCrun as
13435 # -library=stlport4 depends on it.
13436 case " $CXX $CXXFLAGS " in
13437 *" -library=stlport4 "*)
13438 solaris_use_stlport4=yes
13440 esac
13442 if test "$solaris_use_stlport4" != yes; then
13443 postdeps_CXX='-library=Cstd -library=Crun'
13446 esac
13449 solaris*)
13450 case $cc_basename in
13451 CC*)
13452 # The more standards-conforming stlport4 library is
13453 # incompatible with the Cstd library. Avoid specifying
13454 # it if it's in CXXFLAGS. Ignore libCrun as
13455 # -library=stlport4 depends on it.
13456 case " $CXX $CXXFLAGS " in
13457 *" -library=stlport4 "*)
13458 solaris_use_stlport4=yes
13460 esac
13462 # Adding this requires a known-good setup of shared libraries for
13463 # Sun compiler versions before 5.6, else PIC objects from an old
13464 # archive will be linked into the output, leading to subtle bugs.
13465 if test "$solaris_use_stlport4" != yes; then
13466 postdeps_CXX='-library=Cstd -library=Crun'
13469 esac
13471 esac
13474 case " $postdeps_CXX " in
13475 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13476 esac
13477 compiler_lib_search_dirs_CXX=
13478 if test -n "${compiler_lib_search_path_CXX}"; then
13479 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13512 lt_prog_compiler_wl_CXX=
13513 lt_prog_compiler_pic_CXX=
13514 lt_prog_compiler_static_CXX=
13516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13517 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13519 # C++ specific cases for pic, static, wl, etc.
13520 if test "$GXX" = yes; then
13521 lt_prog_compiler_wl_CXX='-Wl,'
13522 lt_prog_compiler_static_CXX='-static'
13524 case $host_os in
13525 aix*)
13526 # All AIX code is PIC.
13527 if test "$host_cpu" = ia64; then
13528 # AIX 5 now supports IA64 processor
13529 lt_prog_compiler_static_CXX='-Bstatic'
13531 lt_prog_compiler_pic_CXX='-fPIC'
13534 amigaos*)
13535 case $host_cpu in
13536 powerpc)
13537 # see comment about AmigaOS4 .so support
13538 lt_prog_compiler_pic_CXX='-fPIC'
13540 m68k)
13541 # FIXME: we need at least 68020 code to build shared libraries, but
13542 # adding the `-m68020' flag to GCC prevents building anything better,
13543 # like `-m68040'.
13544 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13546 esac
13549 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13550 # PIC is the default for these OSes.
13552 mingw* | cygwin* | os2* | pw32* | cegcc*)
13553 # This hack is so that the source file can tell whether it is being
13554 # built for inclusion in a dll (and should export symbols for example).
13555 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13556 # (--disable-auto-import) libraries
13557 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13559 darwin* | rhapsody*)
13560 # PIC is the default on this platform
13561 # Common symbols not allowed in MH_DYLIB files
13562 lt_prog_compiler_pic_CXX='-fno-common'
13564 *djgpp*)
13565 # DJGPP does not support shared libraries at all
13566 lt_prog_compiler_pic_CXX=
13568 haiku*)
13569 # PIC is the default for Haiku.
13570 # The "-static" flag exists, but is broken.
13571 lt_prog_compiler_static_CXX=
13573 interix[3-9]*)
13574 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13575 # Instead, we relocate shared libraries at runtime.
13577 sysv4*MP*)
13578 if test -d /usr/nec; then
13579 lt_prog_compiler_pic_CXX=-Kconform_pic
13582 hpux*)
13583 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13584 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13585 # sets the default TLS model and affects inlining.
13586 case $host_cpu in
13587 hppa*64*)
13590 lt_prog_compiler_pic_CXX='-fPIC'
13592 esac
13594 *qnx* | *nto*)
13595 # QNX uses GNU C++, but need to define -shared option too, otherwise
13596 # it will coredump.
13597 lt_prog_compiler_pic_CXX='-fPIC -shared'
13600 lt_prog_compiler_pic_CXX='-fPIC'
13602 esac
13603 else
13604 case $host_os in
13605 aix[4-9]*)
13606 # All AIX code is PIC.
13607 if test "$host_cpu" = ia64; then
13608 # AIX 5 now supports IA64 processor
13609 lt_prog_compiler_static_CXX='-Bstatic'
13610 else
13611 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13614 chorus*)
13615 case $cc_basename in
13616 cxch68*)
13617 # Green Hills C++ Compiler
13618 # _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"
13620 esac
13622 dgux*)
13623 case $cc_basename in
13624 ec++*)
13625 lt_prog_compiler_pic_CXX='-KPIC'
13627 ghcx*)
13628 # Green Hills C++ Compiler
13629 lt_prog_compiler_pic_CXX='-pic'
13633 esac
13635 freebsd* | dragonfly*)
13636 # FreeBSD uses GNU C++
13638 hpux9* | hpux10* | hpux11*)
13639 case $cc_basename in
13640 CC*)
13641 lt_prog_compiler_wl_CXX='-Wl,'
13642 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13643 if test "$host_cpu" != ia64; then
13644 lt_prog_compiler_pic_CXX='+Z'
13647 aCC*)
13648 lt_prog_compiler_wl_CXX='-Wl,'
13649 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13650 case $host_cpu in
13651 hppa*64*|ia64*)
13652 # +Z the default
13655 lt_prog_compiler_pic_CXX='+Z'
13657 esac
13661 esac
13663 interix*)
13664 # This is c89, which is MS Visual C++ (no shared libs)
13665 # Anyone wants to do a port?
13667 irix5* | irix6* | nonstopux*)
13668 case $cc_basename in
13669 CC*)
13670 lt_prog_compiler_wl_CXX='-Wl,'
13671 lt_prog_compiler_static_CXX='-non_shared'
13672 # CC pic flag -KPIC is the default.
13676 esac
13678 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13679 case $cc_basename in
13680 KCC*)
13681 # KAI C++ Compiler
13682 lt_prog_compiler_wl_CXX='--backend -Wl,'
13683 lt_prog_compiler_pic_CXX='-fPIC'
13685 ecpc* )
13686 # old Intel C++ for x86_64 which still supported -KPIC.
13687 lt_prog_compiler_wl_CXX='-Wl,'
13688 lt_prog_compiler_pic_CXX='-KPIC'
13689 lt_prog_compiler_static_CXX='-static'
13691 icpc* )
13692 # Intel C++, used to be incompatible with GCC.
13693 # ICC 10 doesn't accept -KPIC any more.
13694 lt_prog_compiler_wl_CXX='-Wl,'
13695 lt_prog_compiler_pic_CXX='-fPIC'
13696 lt_prog_compiler_static_CXX='-static'
13698 pgCC* | pgcpp*)
13699 # Portland Group C++ compiler
13700 lt_prog_compiler_wl_CXX='-Wl,'
13701 lt_prog_compiler_pic_CXX='-fpic'
13702 lt_prog_compiler_static_CXX='-Bstatic'
13704 cxx*)
13705 # Compaq C++
13706 # Make sure the PIC flag is empty. It appears that all Alpha
13707 # Linux and Compaq Tru64 Unix objects are PIC.
13708 lt_prog_compiler_pic_CXX=
13709 lt_prog_compiler_static_CXX='-non_shared'
13711 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13712 # IBM XL 8.0, 9.0 on PPC and BlueGene
13713 lt_prog_compiler_wl_CXX='-Wl,'
13714 lt_prog_compiler_pic_CXX='-qpic'
13715 lt_prog_compiler_static_CXX='-qstaticlink'
13718 case `$CC -V 2>&1 | sed 5q` in
13719 *Sun\ C*)
13720 # Sun C++ 5.9
13721 lt_prog_compiler_pic_CXX='-KPIC'
13722 lt_prog_compiler_static_CXX='-Bstatic'
13723 lt_prog_compiler_wl_CXX='-Qoption ld '
13725 esac
13727 esac
13729 lynxos*)
13731 m88k*)
13733 mvs*)
13734 case $cc_basename in
13735 cxx*)
13736 lt_prog_compiler_pic_CXX='-W c,exportall'
13740 esac
13742 netbsd*)
13744 *qnx* | *nto*)
13745 # QNX uses GNU C++, but need to define -shared option too, otherwise
13746 # it will coredump.
13747 lt_prog_compiler_pic_CXX='-fPIC -shared'
13749 osf3* | osf4* | osf5*)
13750 case $cc_basename in
13751 KCC*)
13752 lt_prog_compiler_wl_CXX='--backend -Wl,'
13754 RCC*)
13755 # Rational C++ 2.4.1
13756 lt_prog_compiler_pic_CXX='-pic'
13758 cxx*)
13759 # Digital/Compaq C++
13760 lt_prog_compiler_wl_CXX='-Wl,'
13761 # Make sure the PIC flag is empty. It appears that all Alpha
13762 # Linux and Compaq Tru64 Unix objects are PIC.
13763 lt_prog_compiler_pic_CXX=
13764 lt_prog_compiler_static_CXX='-non_shared'
13768 esac
13770 psos*)
13772 solaris*)
13773 case $cc_basename in
13774 CC*)
13775 # Sun C++ 4.2, 5.x and Centerline C++
13776 lt_prog_compiler_pic_CXX='-KPIC'
13777 lt_prog_compiler_static_CXX='-Bstatic'
13778 lt_prog_compiler_wl_CXX='-Qoption ld '
13780 gcx*)
13781 # Green Hills C++ Compiler
13782 lt_prog_compiler_pic_CXX='-PIC'
13786 esac
13788 sunos4*)
13789 case $cc_basename in
13790 CC*)
13791 # Sun C++ 4.x
13792 lt_prog_compiler_pic_CXX='-pic'
13793 lt_prog_compiler_static_CXX='-Bstatic'
13795 lcc*)
13796 # Lucid
13797 lt_prog_compiler_pic_CXX='-pic'
13801 esac
13803 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13804 case $cc_basename in
13805 CC*)
13806 lt_prog_compiler_wl_CXX='-Wl,'
13807 lt_prog_compiler_pic_CXX='-KPIC'
13808 lt_prog_compiler_static_CXX='-Bstatic'
13810 esac
13812 tandem*)
13813 case $cc_basename in
13814 NCC*)
13815 # NonStop-UX NCC 3.20
13816 lt_prog_compiler_pic_CXX='-KPIC'
13820 esac
13822 vxworks*)
13825 lt_prog_compiler_can_build_shared_CXX=no
13827 esac
13830 case $host_os in
13831 # For platforms which do not support PIC, -DPIC is meaningless:
13832 *djgpp*)
13833 lt_prog_compiler_pic_CXX=
13836 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13838 esac
13839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13840 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13845 # Check to make sure the PIC flag actually works.
13847 if test -n "$lt_prog_compiler_pic_CXX"; then
13848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13849 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13850 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
13851 $as_echo_n "(cached) " >&6
13852 else
13853 lt_cv_prog_compiler_pic_works_CXX=no
13854 ac_outfile=conftest.$ac_objext
13855 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13856 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13857 # Insert the option either (1) after the last *FLAGS variable, or
13858 # (2) before a word containing "conftest.", or (3) at the end.
13859 # Note that $ac_compile itself does not contain backslashes and begins
13860 # with a dollar sign (not a hyphen), so the echo should work correctly.
13861 # The option is referenced via a variable to avoid confusing sed.
13862 lt_compile=`echo "$ac_compile" | $SED \
13863 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13864 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13865 -e 's:$: $lt_compiler_flag:'`
13866 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13867 (eval "$lt_compile" 2>conftest.err)
13868 ac_status=$?
13869 cat conftest.err >&5
13870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13871 if (exit $ac_status) && test -s "$ac_outfile"; then
13872 # The compiler can only warn and ignore the option if not recognized
13873 # So say no if there are warnings other than the usual output.
13874 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13875 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13876 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13877 lt_cv_prog_compiler_pic_works_CXX=yes
13880 $RM conftest*
13883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13884 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13886 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13887 case $lt_prog_compiler_pic_CXX in
13888 "" | " "*) ;;
13889 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13890 esac
13891 else
13892 lt_prog_compiler_pic_CXX=
13893 lt_prog_compiler_can_build_shared_CXX=no
13901 # Check to make sure the static flag actually works.
13903 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13905 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13906 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
13907 $as_echo_n "(cached) " >&6
13908 else
13909 lt_cv_prog_compiler_static_works_CXX=no
13910 save_LDFLAGS="$LDFLAGS"
13911 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13912 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13913 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13914 # The linker can only warn and ignore the option if not recognized
13915 # So say no if there are warnings
13916 if test -s conftest.err; then
13917 # Append any errors to the config.log.
13918 cat conftest.err 1>&5
13919 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13920 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13921 if diff conftest.exp conftest.er2 >/dev/null; then
13922 lt_cv_prog_compiler_static_works_CXX=yes
13924 else
13925 lt_cv_prog_compiler_static_works_CXX=yes
13928 $RM -r conftest*
13929 LDFLAGS="$save_LDFLAGS"
13932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13933 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13935 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13937 else
13938 lt_prog_compiler_static_CXX=
13944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13945 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13946 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
13947 $as_echo_n "(cached) " >&6
13948 else
13949 lt_cv_prog_compiler_c_o_CXX=no
13950 $RM -r conftest 2>/dev/null
13951 mkdir conftest
13952 cd conftest
13953 mkdir out
13954 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13956 lt_compiler_flag="-o out/conftest2.$ac_objext"
13957 # Insert the option either (1) after the last *FLAGS variable, or
13958 # (2) before a word containing "conftest.", or (3) at the end.
13959 # Note that $ac_compile itself does not contain backslashes and begins
13960 # with a dollar sign (not a hyphen), so the echo should work correctly.
13961 lt_compile=`echo "$ac_compile" | $SED \
13962 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13963 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13964 -e 's:$: $lt_compiler_flag:'`
13965 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13966 (eval "$lt_compile" 2>out/conftest.err)
13967 ac_status=$?
13968 cat out/conftest.err >&5
13969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13970 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13971 then
13972 # The compiler can only warn and ignore the option if not recognized
13973 # So say no if there are warnings
13974 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13975 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13976 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13977 lt_cv_prog_compiler_c_o_CXX=yes
13980 chmod u+w . 2>&5
13981 $RM conftest*
13982 # SGI C++ compiler will create directory out/ii_files/ for
13983 # template instantiation
13984 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13985 $RM out/* && rmdir out
13986 cd ..
13987 $RM -r conftest
13988 $RM conftest*
13991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13992 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13997 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13998 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
13999 $as_echo_n "(cached) " >&6
14000 else
14001 lt_cv_prog_compiler_c_o_CXX=no
14002 $RM -r conftest 2>/dev/null
14003 mkdir conftest
14004 cd conftest
14005 mkdir out
14006 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14008 lt_compiler_flag="-o out/conftest2.$ac_objext"
14009 # Insert the option either (1) after the last *FLAGS variable, or
14010 # (2) before a word containing "conftest.", or (3) at the end.
14011 # Note that $ac_compile itself does not contain backslashes and begins
14012 # with a dollar sign (not a hyphen), so the echo should work correctly.
14013 lt_compile=`echo "$ac_compile" | $SED \
14014 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14015 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14016 -e 's:$: $lt_compiler_flag:'`
14017 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14018 (eval "$lt_compile" 2>out/conftest.err)
14019 ac_status=$?
14020 cat out/conftest.err >&5
14021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14022 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14023 then
14024 # The compiler can only warn and ignore the option if not recognized
14025 # So say no if there are warnings
14026 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14027 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14028 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14029 lt_cv_prog_compiler_c_o_CXX=yes
14032 chmod u+w . 2>&5
14033 $RM conftest*
14034 # SGI C++ compiler will create directory out/ii_files/ for
14035 # template instantiation
14036 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14037 $RM out/* && rmdir out
14038 cd ..
14039 $RM -r conftest
14040 $RM conftest*
14043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14044 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14049 hard_links="nottested"
14050 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14051 # do not overwrite the value of need_locks provided by the user
14052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14053 $as_echo_n "checking if we can lock with hard links... " >&6; }
14054 hard_links=yes
14055 $RM conftest*
14056 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14057 touch conftest.a
14058 ln conftest.a conftest.b 2>&5 || hard_links=no
14059 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14061 $as_echo "$hard_links" >&6; }
14062 if test "$hard_links" = no; then
14063 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14064 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14065 need_locks=warn
14067 else
14068 need_locks=no
14073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14074 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14076 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14077 case $host_os in
14078 aix[4-9]*)
14079 # If we're using GNU nm, then we don't want the "-C" option.
14080 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14081 # Also, AIX nm treats weak defined symbols like other global defined
14082 # symbols, whereas GNU nm marks them as "W".
14083 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14084 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'
14085 else
14086 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'
14089 pw32*)
14090 export_symbols_cmds_CXX="$ltdll_cmds"
14092 cygwin* | mingw* | cegcc*)
14093 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'
14096 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14098 esac
14099 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14102 $as_echo "$ld_shlibs_CXX" >&6; }
14103 test "$ld_shlibs_CXX" = no && can_build_shared=no
14105 with_gnu_ld_CXX=$with_gnu_ld
14113 # Do we need to explicitly link libc?
14115 case "x$archive_cmds_need_lc_CXX" in
14116 x|xyes)
14117 # Assume -lc should be added
14118 archive_cmds_need_lc_CXX=yes
14120 if test "$enable_shared" = yes && test "$GCC" = yes; then
14121 case $archive_cmds_CXX in
14122 *'~'*)
14123 # FIXME: we may have to deal with multi-command sequences.
14125 '$CC '*)
14126 # Test whether the compiler implicitly links with -lc since on some
14127 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14128 # to ld, don't add -lc before -lgcc.
14129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14130 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14131 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14132 $as_echo_n "(cached) " >&6
14133 else
14134 $RM conftest*
14135 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14137 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14138 (eval $ac_compile) 2>&5
14139 ac_status=$?
14140 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14141 test $ac_status = 0; } 2>conftest.err; then
14142 soname=conftest
14143 lib=conftest
14144 libobjs=conftest.$ac_objext
14145 deplibs=
14146 wl=$lt_prog_compiler_wl_CXX
14147 pic_flag=$lt_prog_compiler_pic_CXX
14148 compiler_flags=-v
14149 linker_flags=-v
14150 verstring=
14151 output_objdir=.
14152 libname=conftest
14153 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14154 allow_undefined_flag_CXX=
14155 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14156 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14157 ac_status=$?
14158 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14159 test $ac_status = 0; }
14160 then
14161 lt_cv_archive_cmds_need_lc_CXX=no
14162 else
14163 lt_cv_archive_cmds_need_lc_CXX=yes
14165 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14166 else
14167 cat conftest.err 1>&5
14169 $RM conftest*
14172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14173 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14174 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14176 esac
14179 esac
14244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14245 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14247 library_names_spec=
14248 libname_spec='lib$name'
14249 soname_spec=
14250 shrext_cmds=".so"
14251 postinstall_cmds=
14252 postuninstall_cmds=
14253 finish_cmds=
14254 finish_eval=
14255 shlibpath_var=
14256 shlibpath_overrides_runpath=unknown
14257 version_type=none
14258 dynamic_linker="$host_os ld.so"
14259 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14260 need_lib_prefix=unknown
14261 hardcode_into_libs=no
14263 # when you set need_version to no, make sure it does not cause -set_version
14264 # flags to be left without arguments
14265 need_version=unknown
14267 case $host_os in
14268 aix3*)
14269 version_type=linux
14270 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14271 shlibpath_var=LIBPATH
14273 # AIX 3 has no versioning support, so we append a major version to the name.
14274 soname_spec='${libname}${release}${shared_ext}$major'
14277 aix[4-9]*)
14278 version_type=linux
14279 need_lib_prefix=no
14280 need_version=no
14281 hardcode_into_libs=yes
14282 if test "$host_cpu" = ia64; then
14283 # AIX 5 supports IA64
14284 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14285 shlibpath_var=LD_LIBRARY_PATH
14286 else
14287 # With GCC up to 2.95.x, collect2 would create an import file
14288 # for dependence libraries. The import file would start with
14289 # the line `#! .'. This would cause the generated library to
14290 # depend on `.', always an invalid library. This was fixed in
14291 # development snapshots of GCC prior to 3.0.
14292 case $host_os in
14293 aix4 | aix4.[01] | aix4.[01].*)
14294 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14295 echo ' yes '
14296 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14298 else
14299 can_build_shared=no
14302 esac
14303 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14304 # soname into executable. Probably we can add versioning support to
14305 # collect2, so additional links can be useful in future.
14306 if test "$aix_use_runtimelinking" = yes; then
14307 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14308 # instead of lib<name>.a to let people know that these are not
14309 # typical AIX shared libraries.
14310 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14311 else
14312 # We preserve .a as extension for shared libraries through AIX4.2
14313 # and later when we are not doing run time linking.
14314 library_names_spec='${libname}${release}.a $libname.a'
14315 soname_spec='${libname}${release}${shared_ext}$major'
14317 shlibpath_var=LIBPATH
14321 amigaos*)
14322 case $host_cpu in
14323 powerpc)
14324 # Since July 2007 AmigaOS4 officially supports .so libraries.
14325 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14326 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14328 m68k)
14329 library_names_spec='$libname.ixlibrary $libname.a'
14330 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14331 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'
14333 esac
14336 beos*)
14337 library_names_spec='${libname}${shared_ext}'
14338 dynamic_linker="$host_os ld.so"
14339 shlibpath_var=LIBRARY_PATH
14342 bsdi[45]*)
14343 version_type=linux
14344 need_version=no
14345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14346 soname_spec='${libname}${release}${shared_ext}$major'
14347 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14348 shlibpath_var=LD_LIBRARY_PATH
14349 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14350 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14351 # the default ld.so.conf also contains /usr/contrib/lib and
14352 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14353 # libtool to hard-code these into programs
14356 cygwin* | mingw* | pw32* | cegcc*)
14357 version_type=windows
14358 shrext_cmds=".dll"
14359 need_version=no
14360 need_lib_prefix=no
14362 case $GCC,$host_os in
14363 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14364 library_names_spec='$libname.dll.a'
14365 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14366 postinstall_cmds='base_file=`basename \${file}`~
14367 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14368 dldir=$destdir/`dirname \$dlpath`~
14369 test -d \$dldir || mkdir -p \$dldir~
14370 $install_prog $dir/$dlname \$dldir/$dlname~
14371 chmod a+x \$dldir/$dlname~
14372 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14373 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14375 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14376 dlpath=$dir/\$dldll~
14377 $RM \$dlpath'
14378 shlibpath_overrides_runpath=yes
14380 case $host_os in
14381 cygwin*)
14382 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14383 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14386 mingw* | cegcc*)
14387 # MinGW DLLs use traditional 'lib' prefix
14388 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14390 pw32*)
14391 # pw32 DLLs use 'pw' prefix rather than 'lib'
14392 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14394 esac
14398 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14400 esac
14401 dynamic_linker='Win32 ld.exe'
14402 # FIXME: first we should search . and the directory the executable is in
14403 shlibpath_var=PATH
14406 darwin* | rhapsody*)
14407 dynamic_linker="$host_os dyld"
14408 version_type=darwin
14409 need_lib_prefix=no
14410 need_version=no
14411 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14412 soname_spec='${libname}${release}${major}$shared_ext'
14413 shlibpath_overrides_runpath=yes
14414 shlibpath_var=DYLD_LIBRARY_PATH
14415 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14417 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14420 dgux*)
14421 version_type=linux
14422 need_lib_prefix=no
14423 need_version=no
14424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14425 soname_spec='${libname}${release}${shared_ext}$major'
14426 shlibpath_var=LD_LIBRARY_PATH
14429 freebsd* | dragonfly*)
14430 # DragonFly does not have aout. When/if they implement a new
14431 # versioning mechanism, adjust this.
14432 if test -x /usr/bin/objformat; then
14433 objformat=`/usr/bin/objformat`
14434 else
14435 case $host_os in
14436 freebsd[23].*) objformat=aout ;;
14437 *) objformat=elf ;;
14438 esac
14440 version_type=freebsd-$objformat
14441 case $version_type in
14442 freebsd-elf*)
14443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14444 need_version=no
14445 need_lib_prefix=no
14447 freebsd-*)
14448 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14449 need_version=yes
14451 esac
14452 shlibpath_var=LD_LIBRARY_PATH
14453 case $host_os in
14454 freebsd2.*)
14455 shlibpath_overrides_runpath=yes
14457 freebsd3.[01]* | freebsdelf3.[01]*)
14458 shlibpath_overrides_runpath=yes
14459 hardcode_into_libs=yes
14461 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14462 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14463 shlibpath_overrides_runpath=no
14464 hardcode_into_libs=yes
14466 *) # from 4.6 on, and DragonFly
14467 shlibpath_overrides_runpath=yes
14468 hardcode_into_libs=yes
14470 esac
14473 haiku*)
14474 version_type=linux
14475 need_lib_prefix=no
14476 need_version=no
14477 dynamic_linker="$host_os runtime_loader"
14478 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14479 soname_spec='${libname}${release}${shared_ext}$major'
14480 shlibpath_var=LIBRARY_PATH
14481 shlibpath_overrides_runpath=yes
14482 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14483 hardcode_into_libs=yes
14486 hpux9* | hpux10* | hpux11*)
14487 # Give a soname corresponding to the major version so that dld.sl refuses to
14488 # link against other versions.
14489 version_type=sunos
14490 need_lib_prefix=no
14491 need_version=no
14492 case $host_cpu in
14493 ia64*)
14494 shrext_cmds='.so'
14495 hardcode_into_libs=yes
14496 dynamic_linker="$host_os dld.so"
14497 shlibpath_var=LD_LIBRARY_PATH
14498 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14500 soname_spec='${libname}${release}${shared_ext}$major'
14501 if test "X$HPUX_IA64_MODE" = X32; then
14502 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14503 else
14504 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14506 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14508 hppa*64*)
14509 shrext_cmds='.sl'
14510 hardcode_into_libs=yes
14511 dynamic_linker="$host_os dld.sl"
14512 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14513 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14515 soname_spec='${libname}${release}${shared_ext}$major'
14516 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14517 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14520 shrext_cmds='.sl'
14521 dynamic_linker="$host_os dld.sl"
14522 shlibpath_var=SHLIB_PATH
14523 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14525 soname_spec='${libname}${release}${shared_ext}$major'
14527 esac
14528 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14529 postinstall_cmds='chmod 555 $lib'
14530 # or fails outright, so override atomically:
14531 install_override_mode=555
14534 interix[3-9]*)
14535 version_type=linux
14536 need_lib_prefix=no
14537 need_version=no
14538 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14539 soname_spec='${libname}${release}${shared_ext}$major'
14540 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14541 shlibpath_var=LD_LIBRARY_PATH
14542 shlibpath_overrides_runpath=no
14543 hardcode_into_libs=yes
14546 irix5* | irix6* | nonstopux*)
14547 case $host_os in
14548 nonstopux*) version_type=nonstopux ;;
14550 if test "$lt_cv_prog_gnu_ld" = yes; then
14551 version_type=linux
14552 else
14553 version_type=irix
14554 fi ;;
14555 esac
14556 need_lib_prefix=no
14557 need_version=no
14558 soname_spec='${libname}${release}${shared_ext}$major'
14559 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14560 case $host_os in
14561 irix5* | nonstopux*)
14562 libsuff= shlibsuff=
14565 case $LD in # libtool.m4 will add one of these switches to LD
14566 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14567 libsuff= shlibsuff= libmagic=32-bit;;
14568 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14569 libsuff=32 shlibsuff=N32 libmagic=N32;;
14570 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14571 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14572 *) libsuff= shlibsuff= libmagic=never-match;;
14573 esac
14575 esac
14576 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14577 shlibpath_overrides_runpath=no
14578 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14579 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14580 hardcode_into_libs=yes
14583 # No shared lib support for Linux oldld, aout, or coff.
14584 linux*oldld* | linux*aout* | linux*coff*)
14585 dynamic_linker=no
14588 # This must be Linux ELF.
14589 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14590 version_type=linux
14591 need_lib_prefix=no
14592 need_version=no
14593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14594 soname_spec='${libname}${release}${shared_ext}$major'
14595 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14596 shlibpath_var=LD_LIBRARY_PATH
14597 shlibpath_overrides_runpath=no
14599 # Some binutils ld are patched to set DT_RUNPATH
14600 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14601 $as_echo_n "(cached) " >&6
14602 else
14603 lt_cv_shlibpath_overrides_runpath=no
14604 save_LDFLAGS=$LDFLAGS
14605 save_libdir=$libdir
14606 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14607 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14609 /* end confdefs.h. */
14612 main ()
14616 return 0;
14618 _ACEOF
14619 if ac_fn_cxx_try_link "$LINENO"; then :
14620 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14621 lt_cv_shlibpath_overrides_runpath=yes
14624 rm -f core conftest.err conftest.$ac_objext \
14625 conftest$ac_exeext conftest.$ac_ext
14626 LDFLAGS=$save_LDFLAGS
14627 libdir=$save_libdir
14631 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14633 # This implies no fast_install, which is unacceptable.
14634 # Some rework will be needed to allow for fast_install
14635 # before this can be enabled.
14636 hardcode_into_libs=yes
14638 # Append ld.so.conf contents to the search path
14639 if test -f /etc/ld.so.conf; then
14640 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' ' '`
14641 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14644 # We used to test for /lib/ld.so.1 and disable shared libraries on
14645 # powerpc, because MkLinux only supported shared libraries with the
14646 # GNU dynamic linker. Since this was broken with cross compilers,
14647 # most powerpc-linux boxes support dynamic linking these days and
14648 # people can always --disable-shared, the test was removed, and we
14649 # assume the GNU/Linux dynamic linker is in use.
14650 dynamic_linker='GNU/Linux ld.so'
14653 netbsd*)
14654 version_type=sunos
14655 need_lib_prefix=no
14656 need_version=no
14657 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14659 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14660 dynamic_linker='NetBSD (a.out) ld.so'
14661 else
14662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14663 soname_spec='${libname}${release}${shared_ext}$major'
14664 dynamic_linker='NetBSD ld.elf_so'
14666 shlibpath_var=LD_LIBRARY_PATH
14667 shlibpath_overrides_runpath=yes
14668 hardcode_into_libs=yes
14671 newsos6)
14672 version_type=linux
14673 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14674 shlibpath_var=LD_LIBRARY_PATH
14675 shlibpath_overrides_runpath=yes
14678 *nto* | *qnx*)
14679 version_type=qnx
14680 need_lib_prefix=no
14681 need_version=no
14682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14683 soname_spec='${libname}${release}${shared_ext}$major'
14684 shlibpath_var=LD_LIBRARY_PATH
14685 shlibpath_overrides_runpath=no
14686 hardcode_into_libs=yes
14687 dynamic_linker='ldqnx.so'
14690 openbsd*)
14691 version_type=sunos
14692 sys_lib_dlsearch_path_spec="/usr/lib"
14693 need_lib_prefix=no
14694 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14695 case $host_os in
14696 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14697 *) need_version=no ;;
14698 esac
14699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14700 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14701 shlibpath_var=LD_LIBRARY_PATH
14702 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14703 case $host_os in
14704 openbsd2.[89] | openbsd2.[89].*)
14705 shlibpath_overrides_runpath=no
14708 shlibpath_overrides_runpath=yes
14710 esac
14711 else
14712 shlibpath_overrides_runpath=yes
14716 os2*)
14717 libname_spec='$name'
14718 shrext_cmds=".dll"
14719 need_lib_prefix=no
14720 library_names_spec='$libname${shared_ext} $libname.a'
14721 dynamic_linker='OS/2 ld.exe'
14722 shlibpath_var=LIBPATH
14725 osf3* | osf4* | osf5*)
14726 version_type=osf
14727 need_lib_prefix=no
14728 need_version=no
14729 soname_spec='${libname}${release}${shared_ext}$major'
14730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14731 shlibpath_var=LD_LIBRARY_PATH
14732 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14733 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14736 rdos*)
14737 dynamic_linker=no
14740 solaris*)
14741 version_type=linux
14742 need_lib_prefix=no
14743 need_version=no
14744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14745 soname_spec='${libname}${release}${shared_ext}$major'
14746 shlibpath_var=LD_LIBRARY_PATH
14747 shlibpath_overrides_runpath=yes
14748 hardcode_into_libs=yes
14749 # ldd complains unless libraries are executable
14750 postinstall_cmds='chmod +x $lib'
14753 sunos4*)
14754 version_type=sunos
14755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14756 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14757 shlibpath_var=LD_LIBRARY_PATH
14758 shlibpath_overrides_runpath=yes
14759 if test "$with_gnu_ld" = yes; then
14760 need_lib_prefix=no
14762 need_version=yes
14765 sysv4 | sysv4.3*)
14766 version_type=linux
14767 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14768 soname_spec='${libname}${release}${shared_ext}$major'
14769 shlibpath_var=LD_LIBRARY_PATH
14770 case $host_vendor in
14771 sni)
14772 shlibpath_overrides_runpath=no
14773 need_lib_prefix=no
14774 runpath_var=LD_RUN_PATH
14776 siemens)
14777 need_lib_prefix=no
14779 motorola)
14780 need_lib_prefix=no
14781 need_version=no
14782 shlibpath_overrides_runpath=no
14783 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14785 esac
14788 sysv4*MP*)
14789 if test -d /usr/nec ;then
14790 version_type=linux
14791 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14792 soname_spec='$libname${shared_ext}.$major'
14793 shlibpath_var=LD_LIBRARY_PATH
14797 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14798 version_type=freebsd-elf
14799 need_lib_prefix=no
14800 need_version=no
14801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14802 soname_spec='${libname}${release}${shared_ext}$major'
14803 shlibpath_var=LD_LIBRARY_PATH
14804 shlibpath_overrides_runpath=yes
14805 hardcode_into_libs=yes
14806 if test "$with_gnu_ld" = yes; then
14807 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14808 else
14809 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14810 case $host_os in
14811 sco3.2v5*)
14812 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14814 esac
14816 sys_lib_dlsearch_path_spec='/usr/lib'
14819 tpf*)
14820 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14821 version_type=linux
14822 need_lib_prefix=no
14823 need_version=no
14824 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14825 shlibpath_var=LD_LIBRARY_PATH
14826 shlibpath_overrides_runpath=no
14827 hardcode_into_libs=yes
14830 uts4*)
14831 version_type=linux
14832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14833 soname_spec='${libname}${release}${shared_ext}$major'
14834 shlibpath_var=LD_LIBRARY_PATH
14838 dynamic_linker=no
14840 esac
14841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14842 $as_echo "$dynamic_linker" >&6; }
14843 test "$dynamic_linker" = no && can_build_shared=no
14845 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14846 if test "$GCC" = yes; then
14847 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14850 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14851 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14853 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14854 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14895 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14896 hardcode_action_CXX=
14897 if test -n "$hardcode_libdir_flag_spec_CXX" ||
14898 test -n "$runpath_var_CXX" ||
14899 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14901 # We can hardcode non-existent directories.
14902 if test "$hardcode_direct_CXX" != no &&
14903 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14904 # have to relink, otherwise we might link with an installed library
14905 # when we should be linking with a yet-to-be-installed one
14906 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14907 test "$hardcode_minus_L_CXX" != no; then
14908 # Linking always hardcodes the temporary library directory.
14909 hardcode_action_CXX=relink
14910 else
14911 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14912 hardcode_action_CXX=immediate
14914 else
14915 # We cannot hardcode anything, or else we can only hardcode existing
14916 # directories.
14917 hardcode_action_CXX=unsupported
14919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14920 $as_echo "$hardcode_action_CXX" >&6; }
14922 if test "$hardcode_action_CXX" = relink ||
14923 test "$inherit_rpath_CXX" = yes; then
14924 # Fast installation is not supported
14925 enable_fast_install=no
14926 elif test "$shlibpath_overrides_runpath" = yes ||
14927 test "$enable_shared" = no; then
14928 # Fast installation is not necessary
14929 enable_fast_install=needless
14938 fi # test -n "$compiler"
14940 CC=$lt_save_CC
14941 LDCXX=$LD
14942 LD=$lt_save_LD
14943 GCC=$lt_save_GCC
14944 with_gnu_ld=$lt_save_with_gnu_ld
14945 lt_cv_path_LDCXX=$lt_cv_path_LD
14946 lt_cv_path_LD=$lt_save_path_LD
14947 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14948 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14949 fi # test "$_lt_caught_CXX_error" != yes
14951 ac_ext=c
14952 ac_cpp='$CPP $CPPFLAGS'
14953 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14954 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14955 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14969 ac_config_commands="$ac_config_commands libtool"
14974 # Only expand once:
14978 # The tests for host and target for $enable_largefile require
14979 # canonical names.
14983 # As the $enable_largefile decision depends on --enable-plugins we must set it
14984 # even in directories otherwise not depending on the $plugins option.
14987 maybe_plugins=no
14988 for ac_header in dlfcn.h
14989 do :
14990 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
14992 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
14993 cat >>confdefs.h <<_ACEOF
14994 #define HAVE_DLFCN_H 1
14995 _ACEOF
14996 maybe_plugins=yes
14999 done
15001 for ac_header in windows.h
15002 do :
15003 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
15005 if test "x$ac_cv_header_windows_h" = xyes; then :
15006 cat >>confdefs.h <<_ACEOF
15007 #define HAVE_WINDOWS_H 1
15008 _ACEOF
15009 maybe_plugins=yes
15012 done
15015 # Check whether --enable-plugins was given.
15016 if test "${enable_plugins+set}" = set; then :
15017 enableval=$enable_plugins; case "${enableval}" in
15018 no) plugins=no ;;
15019 *) plugins=yes
15020 if test "$maybe_plugins" != "yes" ; then
15021 as_fn_error $? "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
15022 fi ;;
15023 esac
15024 else
15025 plugins=$maybe_plugins
15029 if test "$plugins" = "yes"; then
15030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
15031 $as_echo_n "checking for library containing dlsym... " >&6; }
15032 if ${ac_cv_search_dlsym+:} false; then :
15033 $as_echo_n "(cached) " >&6
15034 else
15035 ac_func_search_save_LIBS=$LIBS
15036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15037 /* end confdefs.h. */
15039 /* Override any GCC internal prototype to avoid an error.
15040 Use char because int might match the return type of a GCC
15041 builtin and then its argument prototype would still apply. */
15042 #ifdef __cplusplus
15043 extern "C"
15044 #endif
15045 char dlsym ();
15047 main ()
15049 return dlsym ();
15051 return 0;
15053 _ACEOF
15054 for ac_lib in '' dl; do
15055 if test -z "$ac_lib"; then
15056 ac_res="none required"
15057 else
15058 ac_res=-l$ac_lib
15059 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15061 if ac_fn_c_try_link "$LINENO"; then :
15062 ac_cv_search_dlsym=$ac_res
15064 rm -f core conftest.err conftest.$ac_objext \
15065 conftest$ac_exeext
15066 if ${ac_cv_search_dlsym+:} false; then :
15067 break
15069 done
15070 if ${ac_cv_search_dlsym+:} false; then :
15072 else
15073 ac_cv_search_dlsym=no
15075 rm conftest.$ac_ext
15076 LIBS=$ac_func_search_save_LIBS
15078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
15079 $as_echo "$ac_cv_search_dlsym" >&6; }
15080 ac_res=$ac_cv_search_dlsym
15081 if test "$ac_res" != no; then :
15082 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15089 case "${host}" in
15090 sparc-*-solaris*|i?86-*-solaris*)
15091 # On native 32-bit Solaris/SPARC and x86, large-file and procfs support
15092 # were mutually exclusive until Solaris 11.3. Without procfs support,
15093 # the bfd/ elf module cannot provide certain routines such as
15094 # elfcore_write_prpsinfo or elfcore_write_prstatus. So unless the user
15095 # explicitly requested large-file support through the
15096 # --enable-largefile switch, disable large-file support in favor of
15097 # procfs support.
15099 # Check if <sys/procfs.h> is incompatible with large-file support.
15100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15101 /* end confdefs.h. */
15102 #define _FILE_OFFSET_BITS 64
15103 #define _STRUCTURED_PROC 1
15104 #include <sys/procfs.h>
15106 main ()
15110 return 0;
15112 _ACEOF
15113 if ac_fn_c_try_compile "$LINENO"; then :
15114 acx_cv_procfs_lfs=yes
15115 else
15116 acx_cv_procfs_lfs=no
15118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15120 # Forcefully disable large-file support only if necessary, gdb is in
15121 # tree and enabled.
15122 if test "${target}" = "${host}" -a "$acx_cv_procfs_lfs" = no \
15123 -a -d $srcdir/../gdb -a "$enable_gdb" != no; then
15124 : ${enable_largefile="no"}
15125 if test "$plugins" = yes; then
15126 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
15127 plugin support disabled; require large-file support which is incompatible with GDB." >&5
15128 $as_echo "$as_me: WARNING:
15129 plugin support disabled; require large-file support which is incompatible with GDB." >&2;}
15130 plugins=no
15134 # Explicitly undef _FILE_OFFSET_BITS if enable_largefile=no for the
15135 # benefit of g++ 9+ which predefines it on Solaris.
15136 if test "$enable_largefile" = no; then
15137 LARGEFILE_CPPFLAGS="-U_FILE_OFFSET_BITS"
15141 esac
15143 # Check whether --enable-largefile was given.
15144 if test "${enable_largefile+set}" = set; then :
15145 enableval=$enable_largefile;
15148 if test "$enable_largefile" != no; then
15150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
15151 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
15152 if ${ac_cv_sys_largefile_CC+:} false; then :
15153 $as_echo_n "(cached) " >&6
15154 else
15155 ac_cv_sys_largefile_CC=no
15156 if test "$GCC" != yes; then
15157 ac_save_CC=$CC
15158 while :; do
15159 # IRIX 6.2 and later do not support large files by default,
15160 # so use the C compiler's -n32 option if that helps.
15161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15162 /* end confdefs.h. */
15163 #include <sys/types.h>
15164 /* Check that off_t can represent 2**63 - 1 correctly.
15165 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15166 since some C++ compilers masquerading as C compilers
15167 incorrectly reject 9223372036854775807. */
15168 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15169 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15170 && LARGE_OFF_T % 2147483647 == 1)
15171 ? 1 : -1];
15173 main ()
15177 return 0;
15179 _ACEOF
15180 if ac_fn_c_try_compile "$LINENO"; then :
15181 break
15183 rm -f core conftest.err conftest.$ac_objext
15184 CC="$CC -n32"
15185 if ac_fn_c_try_compile "$LINENO"; then :
15186 ac_cv_sys_largefile_CC=' -n32'; break
15188 rm -f core conftest.err conftest.$ac_objext
15189 break
15190 done
15191 CC=$ac_save_CC
15192 rm -f conftest.$ac_ext
15195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
15196 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
15197 if test "$ac_cv_sys_largefile_CC" != no; then
15198 CC=$CC$ac_cv_sys_largefile_CC
15201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
15202 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
15203 if ${ac_cv_sys_file_offset_bits+:} false; then :
15204 $as_echo_n "(cached) " >&6
15205 else
15206 while :; do
15207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15208 /* end confdefs.h. */
15209 #include <sys/types.h>
15210 /* Check that off_t can represent 2**63 - 1 correctly.
15211 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15212 since some C++ compilers masquerading as C compilers
15213 incorrectly reject 9223372036854775807. */
15214 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15215 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15216 && LARGE_OFF_T % 2147483647 == 1)
15217 ? 1 : -1];
15219 main ()
15223 return 0;
15225 _ACEOF
15226 if ac_fn_c_try_compile "$LINENO"; then :
15227 ac_cv_sys_file_offset_bits=no; break
15229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15231 /* end confdefs.h. */
15232 #define _FILE_OFFSET_BITS 64
15233 #include <sys/types.h>
15234 /* Check that off_t can represent 2**63 - 1 correctly.
15235 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15236 since some C++ compilers masquerading as C compilers
15237 incorrectly reject 9223372036854775807. */
15238 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15239 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15240 && LARGE_OFF_T % 2147483647 == 1)
15241 ? 1 : -1];
15243 main ()
15247 return 0;
15249 _ACEOF
15250 if ac_fn_c_try_compile "$LINENO"; then :
15251 ac_cv_sys_file_offset_bits=64; break
15253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15254 ac_cv_sys_file_offset_bits=unknown
15255 break
15256 done
15258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
15259 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
15260 case $ac_cv_sys_file_offset_bits in #(
15261 no | unknown) ;;
15263 cat >>confdefs.h <<_ACEOF
15264 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
15265 _ACEOF
15267 esac
15268 rm -rf conftest*
15269 if test $ac_cv_sys_file_offset_bits = unknown; then
15270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
15271 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
15272 if ${ac_cv_sys_large_files+:} false; then :
15273 $as_echo_n "(cached) " >&6
15274 else
15275 while :; do
15276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15277 /* end confdefs.h. */
15278 #include <sys/types.h>
15279 /* Check that off_t can represent 2**63 - 1 correctly.
15280 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15281 since some C++ compilers masquerading as C compilers
15282 incorrectly reject 9223372036854775807. */
15283 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15284 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15285 && LARGE_OFF_T % 2147483647 == 1)
15286 ? 1 : -1];
15288 main ()
15292 return 0;
15294 _ACEOF
15295 if ac_fn_c_try_compile "$LINENO"; then :
15296 ac_cv_sys_large_files=no; break
15298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15300 /* end confdefs.h. */
15301 #define _LARGE_FILES 1
15302 #include <sys/types.h>
15303 /* Check that off_t can represent 2**63 - 1 correctly.
15304 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15305 since some C++ compilers masquerading as C compilers
15306 incorrectly reject 9223372036854775807. */
15307 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15308 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15309 && LARGE_OFF_T % 2147483647 == 1)
15310 ? 1 : -1];
15312 main ()
15316 return 0;
15318 _ACEOF
15319 if ac_fn_c_try_compile "$LINENO"; then :
15320 ac_cv_sys_large_files=1; break
15322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15323 ac_cv_sys_large_files=unknown
15324 break
15325 done
15327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
15328 $as_echo "$ac_cv_sys_large_files" >&6; }
15329 case $ac_cv_sys_large_files in #(
15330 no | unknown) ;;
15332 cat >>confdefs.h <<_ACEOF
15333 #define _LARGE_FILES $ac_cv_sys_large_files
15334 _ACEOF
15336 esac
15337 rm -rf conftest*
15345 ac_checking=
15346 . ${srcdir}/../bfd/development.sh
15347 test "$development" = true && ac_checking=yes
15348 # Check whether --enable-checking was given.
15349 if test "${enable_checking+set}" = set; then :
15350 enableval=$enable_checking; case "${enableval}" in
15351 no|none) ac_checking= ;;
15352 *) ac_checking=yes ;;
15353 esac
15355 if test x$ac_checking != x ; then
15357 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
15362 # Check whether --with-lib-path was given.
15363 if test "${with_lib_path+set}" = set; then :
15364 withval=$with_lib_path; LIB_PATH=$withval
15367 # Check whether --enable-targets was given.
15368 if test "${enable_targets+set}" = set; then :
15369 enableval=$enable_targets; case "${enableval}" in
15370 yes | "") as_fn_error $? "enable-targets option must specify target names or 'all'" "$LINENO" 5
15372 no) enable_targets= ;;
15373 *) enable_targets=$enableval ;;
15374 esac
15377 # Check whether --enable-64-bit-bfd was given.
15378 if test "${enable_64_bit_bfd+set}" = set; then :
15379 enableval=$enable_64_bit_bfd; case $enableval in #(
15380 yes|no) :
15381 ;; #(
15382 *) :
15383 as_fn_error $? "bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;; #(
15384 *) :
15386 esac
15387 else
15388 enable_64_bit_bfd=no
15392 if test "x$enable_64_bit_bfd" = "xno"; then :
15393 # The cast to long int works around a bug in the HP C Compiler
15394 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15395 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15396 # This bug is HP SR number 8606223364.
15397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
15398 $as_echo_n "checking size of void *... " >&6; }
15399 if ${ac_cv_sizeof_void_p+:} false; then :
15400 $as_echo_n "(cached) " >&6
15401 else
15402 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
15404 else
15405 if test "$ac_cv_type_void_p" = yes; then
15406 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15407 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15408 as_fn_error 77 "cannot compute sizeof (void *)
15409 See \`config.log' for more details" "$LINENO" 5; }
15410 else
15411 ac_cv_sizeof_void_p=0
15416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
15417 $as_echo "$ac_cv_sizeof_void_p" >&6; }
15421 cat >>confdefs.h <<_ACEOF
15422 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15423 _ACEOF
15426 if test "x$ac_cv_sizeof_void_p" = "x8"; then :
15427 enable_64_bit_bfd=yes
15432 if test "x$enable_64_bit_bfd" = "xyes"; then
15433 ENABLE_BFD_64_BIT_TRUE=
15434 ENABLE_BFD_64_BIT_FALSE='#'
15435 else
15436 ENABLE_BFD_64_BIT_TRUE='#'
15437 ENABLE_BFD_64_BIT_FALSE=
15443 # Check whether --with-sysroot was given.
15444 if test "${with_sysroot+set}" = set; then :
15445 withval=$with_sysroot;
15446 case ${with_sysroot} in
15447 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
15448 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
15449 esac
15451 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
15452 use_sysroot=yes
15454 if test "x$prefix" = xNONE; then
15455 test_prefix=/usr/local
15456 else
15457 test_prefix=$prefix
15459 if test "x$exec_prefix" = xNONE; then
15460 test_exec_prefix=$test_prefix
15461 else
15462 test_exec_prefix=$exec_prefix
15464 case ${TARGET_SYSTEM_ROOT} in
15465 "${test_prefix}"|"${test_prefix}/"*|\
15466 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
15467 '${prefix}'|'${prefix}/'*|\
15468 '${exec_prefix}'|'${exec_prefix}/'*)
15469 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
15470 TARGET_SYSTEM_ROOT_DEFINE="$t"
15472 esac
15474 else
15476 use_sysroot=no
15477 TARGET_SYSTEM_ROOT=
15478 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
15486 # Check whether --enable-gold was given.
15487 if test "${enable_gold+set}" = set; then :
15488 enableval=$enable_gold; case "${enableval}" in
15489 default)
15490 install_as_default=no
15491 installed_linker=ld.bfd
15493 yes|no)
15494 install_as_default=yes
15495 installed_linker=ld.bfd
15498 as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5
15500 esac
15501 else
15502 install_as_default=yes
15503 installed_linker=ld.bfd
15509 # Check whether --enable-got was given.
15510 if test "${enable_got+set}" = set; then :
15511 enableval=$enable_got; case "${enableval}" in
15512 target | single | negative | multigot) got_handling=$enableval ;;
15513 *) as_fn_error $? "bad value ${enableval} for --enable-got option" "$LINENO" 5 ;;
15514 esac
15515 else
15516 got_handling=target
15520 case "${got_handling}" in
15521 target)
15523 $as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_TARGET_DEFAULT" >>confdefs.h
15525 single)
15527 $as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_SINGLE" >>confdefs.h
15529 negative)
15531 $as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_NEGATIVE" >>confdefs.h
15533 multigot)
15535 $as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_MULTIGOT" >>confdefs.h
15537 *) as_fn_error $? "bad value ${got_handling} for --enable-got option" "$LINENO" 5 ;;
15538 esac
15540 # PR gas/19109
15541 # Decide the default method for compressing debug sections.
15542 ac_default_compressed_debug_sections=unset
15543 # Provide a configure time option to override our default.
15544 # Check whether --enable-compressed_debug_sections was given.
15545 if test "${enable_compressed_debug_sections+set}" = set; then :
15546 enableval=$enable_compressed_debug_sections; case ,"${enableval}", in
15547 ,yes, | ,all, | *,ld,*) ac_default_compressed_debug_sections=yes ;;
15548 ,no, | ,none,) ac_default_compressed_debug_sections=no ;;
15549 esac
15552 # Select default compression algorithm.
15553 ac_default_compressed_debug_sections_algorithm=COMPRESS_DEBUG_GABI_ZLIB
15554 # Check whether --enable-default_compressed_debug_sections_algorithm was given.
15555 if test "${enable_default_compressed_debug_sections_algorithm+set}" = set; then :
15556 enableval=$enable_default_compressed_debug_sections_algorithm; case "${enableval}" in
15557 zstd) ac_default_compressed_debug_sections_algorithm=COMPRESS_DEBUG_ZSTD ;;
15558 esac
15561 # Decide setting DT_RUNPATH instead of DT_RPATH by default
15562 ac_default_new_dtags=unset
15563 # Provide a configure time option to override our default.
15564 # Check whether --enable-new_dtags was given.
15565 if test "${enable_new_dtags+set}" = set; then :
15566 enableval=$enable_new_dtags; case "${enableval}" in
15567 yes) ac_default_new_dtags=1 ;;
15568 no) ac_default_new_dtags=0 ;;
15569 esac
15572 # Decide if -z relro should be enabled in ELF linker by default.
15573 ac_default_ld_z_relro=unset
15574 # Provide a configure time option to override our default.
15575 # Check whether --enable-relro was given.
15576 if test "${enable_relro+set}" = set; then :
15577 enableval=$enable_relro; case "${enableval}" in
15578 yes) ac_default_ld_z_relro=1 ;;
15579 no) ac_default_ld_z_relro=0 ;;
15580 esac
15583 # Decide if DT_TEXTREL check should be enabled in ELF linker.
15584 ac_default_ld_textrel_check=unset
15585 # Check whether --enable-textrel-check was given.
15586 if test "${enable_textrel_check+set}" = set; then :
15587 enableval=$enable_textrel_check; case "${enableval}" in
15588 yes|no|warning|error) ac_default_ld_textrel_check=${enableval} ;;
15589 esac
15593 # Decide if -z separate-code should be enabled in ELF linker by default.
15594 ac_default_ld_z_separate_code=unset
15595 # Check whether --enable-separate-code was given.
15596 if test "${enable_separate_code+set}" = set; then :
15597 enableval=$enable_separate_code; case "${enableval}" in
15598 yes) ac_default_ld_z_separate_code=1 ;;
15599 no) ac_default_ld_z_separate_code=0 ;;
15600 esac
15605 # By default warn when an executable stack is created due to object files
15606 # requesting such, not when the user specifies -z execstack.
15607 ac_default_ld_warn_execstack=2
15608 # Check whether --enable-warn-execstack was given.
15609 if test "${enable_warn_execstack+set}" = set; then :
15610 enableval=$enable_warn_execstack; case "${enableval}" in
15611 yes) ac_default_ld_warn_execstack=1 ;;
15612 no) ac_default_ld_warn_execstack=0 ;;
15613 esac
15617 ac_default_ld_warn_rwx_segments=unset
15618 # Check whether --enable-warn-rwx-segments was given.
15619 if test "${enable_warn_rwx_segments+set}" = set; then :
15620 enableval=$enable_warn_rwx_segments; case "${enableval}" in
15621 yes) ac_default_ld_warn_rwx_segments=1 ;;
15622 no) ac_default_ld_warn_rwx_segments=0 ;;
15623 esac
15627 ac_default_ld_default_execstack=unset
15628 # Check whether --enable-default-execstack was given.
15629 if test "${enable_default_execstack+set}" = set; then :
15630 enableval=$enable_default_execstack; case "${enableval}" in
15631 yes) ac_default_ld_default_execstack=1 ;;
15632 no) ac_default_ld_default_execstack=0 ;;
15633 esac
15638 # Decide if --error-handling-script should be supported.
15639 ac_support_error_handling_script=unset
15640 # Check whether --enable-error-handling-script was given.
15641 if test "${enable_error_handling_script+set}" = set; then :
15642 enableval=$enable_error_handling_script; case "${enableval}" in
15643 yes) ac_support_error_handling_script=1 ;;
15644 no) ac_support_error_handling_script=0 ;;
15645 esac
15649 # Decide which "--hash-style" to use by default
15650 # Provide a configure time option to override our default.
15651 # Check whether --enable-default-hash-style was given.
15652 if test "${enable_default_hash_style+set}" = set; then :
15653 enableval=$enable_default_hash_style; case "${enable_default_hash_style}" in
15654 sysv | gnu | both) ;;
15655 *) as_fn_error $? "bad value ${enable_default_hash_style} for enable-default-hash-style option" "$LINENO" 5 ;;
15656 esac
15657 else
15658 case "${target}" in
15659 # Enable gnu hash only on GNU targets, but not mips
15660 mips*-*-*) enable_default_hash_style=sysv ;;
15661 *-*-gnu* | *-*-linux* | *-*-nacl*) enable_default_hash_style=both ;;
15662 *) enable_default_hash_style=sysv ;;
15663 esac
15667 case "${enable_default_hash_style}" in
15668 sysv | both) ac_default_emit_sysv_hash=1 ;;
15669 *) ac_default_emit_sysv_hash=0 ;;
15670 esac
15672 case "${enable_default_hash_style}" in
15673 gnu | both) ac_default_emit_gnu_hash=1 ;;
15674 *) ac_default_emit_gnu_hash=0 ;;
15675 esac
15677 # Check whether --enable-initfini-array was given.
15678 if test "${enable_initfini_array+set}" = set; then :
15679 enableval=$enable_initfini_array; case "${enableval}" in
15680 yes|no) ;;
15681 *) as_fn_error $? "invalid --enable-initfini-array argument" "$LINENO" 5 ;;
15682 esac
15683 else
15684 enable_initfini_array=yes
15688 if test $enable_initfini_array = yes; then
15690 $as_echo "#define HAVE_INITFINI_ARRAY 1" >>confdefs.h
15694 # Check whether --enable-libctf was given.
15695 if test "${enable_libctf+set}" = set; then :
15696 enableval=$enable_libctf;
15697 case "$enableval" in
15698 yes|no) ;;
15699 *) as_fn_error $? "Argument to enable/disable libctf must be yes or no" "$LINENO" 5 ;;
15700 esac
15702 else
15703 enable_libctf=yes
15707 if test "${enable_libctf}" = yes; then
15709 $as_echo "#define ENABLE_LIBCTF 1" >>confdefs.h
15712 if test "${enable_libctf}" = yes; then
15713 ENABLE_LIBCTF_TRUE=
15714 ENABLE_LIBCTF_FALSE='#'
15715 else
15716 ENABLE_LIBCTF_TRUE='#'
15717 ENABLE_LIBCTF_FALSE=
15722 # Used to validate --package-metadata= input. Disabled by default.
15723 # Check whether --enable-jansson was given.
15724 if test "${enable_jansson+set}" = set; then :
15725 enableval=$enable_jansson; enable_jansson=$enableval
15726 else
15727 enable_jansson="no"
15731 if test "x$enable_jansson" != "xno"; then :
15733 pkg_failed=no
15734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jansson" >&5
15735 $as_echo_n "checking for jansson... " >&6; }
15737 if test -n "$JANSSON_CFLAGS"; then
15738 pkg_cv_JANSSON_CFLAGS="$JANSSON_CFLAGS"
15739 elif test -n "$PKG_CONFIG"; then
15740 if test -n "$PKG_CONFIG" && \
15741 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jansson\""; } >&5
15742 ($PKG_CONFIG --exists --print-errors "jansson") 2>&5
15743 ac_status=$?
15744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15745 test $ac_status = 0; }; then
15746 pkg_cv_JANSSON_CFLAGS=`$PKG_CONFIG --cflags "jansson" 2>/dev/null`
15747 test "x$?" != "x0" && pkg_failed=yes
15748 else
15749 pkg_failed=yes
15751 else
15752 pkg_failed=untried
15754 if test -n "$JANSSON_LIBS"; then
15755 pkg_cv_JANSSON_LIBS="$JANSSON_LIBS"
15756 elif test -n "$PKG_CONFIG"; then
15757 if test -n "$PKG_CONFIG" && \
15758 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jansson\""; } >&5
15759 ($PKG_CONFIG --exists --print-errors "jansson") 2>&5
15760 ac_status=$?
15761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15762 test $ac_status = 0; }; then
15763 pkg_cv_JANSSON_LIBS=`$PKG_CONFIG --libs "jansson" 2>/dev/null`
15764 test "x$?" != "x0" && pkg_failed=yes
15765 else
15766 pkg_failed=yes
15768 else
15769 pkg_failed=untried
15772 if test $pkg_failed = no; then
15773 pkg_save_LDFLAGS="$LDFLAGS"
15774 LDFLAGS="$LDFLAGS $pkg_cv_JANSSON_LIBS"
15775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15776 /* end confdefs.h. */
15779 main ()
15783 return 0;
15785 _ACEOF
15786 if ac_fn_c_try_link "$LINENO"; then :
15788 else
15789 pkg_failed=yes
15791 rm -f core conftest.err conftest.$ac_objext \
15792 conftest$ac_exeext conftest.$ac_ext
15793 LDFLAGS=$pkg_save_LDFLAGS
15798 if test $pkg_failed = yes; then
15799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15800 $as_echo "no" >&6; }
15802 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15803 _pkg_short_errors_supported=yes
15804 else
15805 _pkg_short_errors_supported=no
15807 if test $_pkg_short_errors_supported = yes; then
15808 JANSSON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "jansson" 2>&1`
15809 else
15810 JANSSON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "jansson" 2>&1`
15812 # Put the nasty error message in config.log where it belongs
15813 echo "$JANSSON_PKG_ERRORS" >&5
15815 as_fn_error $? "Cannot find jansson library" "$LINENO" 5
15816 elif test $pkg_failed = untried; then
15817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15818 $as_echo "no" >&6; }
15819 as_fn_error $? "Cannot find jansson library" "$LINENO" 5
15820 else
15821 JANSSON_CFLAGS=$pkg_cv_JANSSON_CFLAGS
15822 JANSSON_LIBS=$pkg_cv_JANSSON_LIBS
15823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15824 $as_echo "yes" >&6; }
15827 $as_echo "#define HAVE_JANSSON 1" >>confdefs.h
15837 # Set the 'development' global.
15838 . $srcdir/../bfd/development.sh
15840 # Set acp_cpp_for_build variable
15841 ac_cpp_for_build="$CC_FOR_BUILD -E $CPPFLAGS_FOR_BUILD"
15843 # Default set of GCC warnings to enable.
15844 GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
15845 GCC_WARN_CFLAGS_FOR_BUILD="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
15847 # Add -Wshadow if the compiler is a sufficiently recent version of GCC.
15848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15849 /* end confdefs.h. */
15850 __GNUC__
15851 _ACEOF
15852 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15853 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
15855 else
15856 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow"
15858 rm -f conftest*
15861 # Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
15862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15863 /* end confdefs.h. */
15864 __GNUC__
15865 _ACEOF
15866 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15867 $EGREP "(^[0-4]$|^__GNUC__$)" >/dev/null 2>&1; then :
15869 else
15870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15871 /* end confdefs.h. */
15872 __clang__
15873 _ACEOF
15874 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15875 $EGREP "^__clang__$" >/dev/null 2>&1; then :
15876 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wstack-usage=262144"
15878 rm -f conftest*
15881 rm -f conftest*
15884 # Set WARN_WRITE_STRINGS if the compiler supports -Wwrite-strings.
15885 WARN_WRITE_STRINGS=""
15886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15887 /* end confdefs.h. */
15888 __GNUC__
15889 _ACEOF
15890 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15891 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
15893 else
15894 WARN_WRITE_STRINGS="-Wwrite-strings"
15896 rm -f conftest*
15899 # Verify CC_FOR_BUILD to be compatible with warning flags
15901 # Add -Wshadow if the compiler is a sufficiently recent version of GCC.
15902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15903 /* end confdefs.h. */
15904 __GNUC__
15905 _ACEOF
15906 if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
15907 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
15909 else
15910 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wshadow"
15912 rm -f conftest*
15915 # Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
15916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15917 /* end confdefs.h. */
15918 __GNUC__
15919 _ACEOF
15920 if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
15921 $EGREP "(^[0-4]$|^__GNUC__$)" >/dev/null 2>&1; then :
15923 else
15924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15925 /* end confdefs.h. */
15926 __clang__
15927 _ACEOF
15928 if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
15929 $EGREP "^__clang__$" >/dev/null 2>&1; then :
15930 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wstack-usage=262144"
15932 rm -f conftest*
15935 rm -f conftest*
15938 # Check whether --enable-werror was given.
15939 if test "${enable_werror+set}" = set; then :
15940 enableval=$enable_werror; case "${enableval}" in
15941 yes | y) ERROR_ON_WARNING="yes" ;;
15942 no | n) ERROR_ON_WARNING="no" ;;
15943 *) as_fn_error $? "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
15944 esac
15948 # Disable -Wformat by default when using gcc on mingw
15949 case "${host}" in
15950 *-*-mingw32*)
15951 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
15952 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
15953 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wno-format"
15956 *) ;;
15957 esac
15959 # Enable -Werror by default when using gcc. Turn it off for releases.
15960 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" -a "$development" = true ; then
15961 ERROR_ON_WARNING=yes
15964 NO_WERROR=
15965 if test "${ERROR_ON_WARNING}" = yes ; then
15966 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
15967 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Werror"
15968 NO_WERROR="-Wno-error"
15971 if test "${GCC}" = yes ; then
15972 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
15973 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}"
15976 # Check whether --enable-build-warnings was given.
15977 if test "${enable_build_warnings+set}" = set; then :
15978 enableval=$enable_build_warnings; case "${enableval}" in
15979 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}"
15980 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}";;
15981 no) if test "${GCC}" = yes ; then
15982 WARN_CFLAGS="-w"
15983 WARN_CFLAGS_FOR_BUILD="-w"
15984 fi;;
15985 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
15986 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}"
15987 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD} ${t}";;
15988 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
15989 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}"
15990 WARN_CFLAGS_FOR_BUILD="${t} ${GCC_WARN_CFLAGS_FOR_BUILD}";;
15991 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`
15992 WARN_CFLAGS_FOR_BUILD=`echo "${enableval}" | sed -e "s/,/ /g"`;;
15993 esac
15997 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
15998 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
16008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
16009 $as_echo_n "checking for LC_MESSAGES... " >&6; }
16010 if ${am_cv_val_LC_MESSAGES+:} false; then :
16011 $as_echo_n "(cached) " >&6
16012 else
16013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16014 /* end confdefs.h. */
16015 #include <locale.h>
16017 main ()
16019 return LC_MESSAGES
16021 return 0;
16023 _ACEOF
16024 if ac_fn_c_try_link "$LINENO"; then :
16025 am_cv_val_LC_MESSAGES=yes
16026 else
16027 am_cv_val_LC_MESSAGES=no
16029 rm -f core conftest.err conftest.$ac_objext \
16030 conftest$ac_exeext conftest.$ac_ext
16032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
16033 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
16034 if test $am_cv_val_LC_MESSAGES = yes; then
16036 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
16041 ac_config_headers="$ac_config_headers config.h:config.in"
16044 # PR 14072
16047 if test -z "$target" ; then
16048 as_fn_error $? "Unrecognized target system type; please check config.sub." "$LINENO" 5
16050 if test -z "$host" ; then
16051 as_fn_error $? "Unrecognized host system type; please check config.sub." "$LINENO" 5
16054 # host-specific stuff:
16056 ALL_LINGUAS="bg da de es fi fr ga id it ja pt_BR ru sr sv tr uk vi zh_CN zh_TW"
16057 # If we haven't got the data from the intl directory,
16058 # assume NLS is disabled.
16059 USE_NLS=no
16060 LIBINTL=
16061 LIBINTL_DEP=
16062 INCINTL=
16063 XGETTEXT=
16064 GMSGFMT=
16065 POSUB=
16067 if test -f ../intl/config.intl; then
16068 . ../intl/config.intl
16070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
16071 $as_echo_n "checking whether NLS is requested... " >&6; }
16072 if test x"$USE_NLS" != xyes; then
16073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16074 $as_echo "no" >&6; }
16075 else
16076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16077 $as_echo "yes" >&6; }
16079 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
16082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
16083 $as_echo_n "checking for catalogs to be installed... " >&6; }
16084 # Look for .po and .gmo files in the source directory.
16085 CATALOGS=
16086 XLINGUAS=
16087 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
16088 # If there aren't any .gmo files the shell will give us the
16089 # literal string "../path/to/srcdir/po/*.gmo" which has to be
16090 # weeded out.
16091 case "$cat" in *\**)
16092 continue;;
16093 esac
16094 # The quadruple backslash is collapsed to a double backslash
16095 # by the backticks, then collapsed again by the double quotes,
16096 # leaving us with one backslash in the sed expression (right
16097 # before the dot that mustn't act as a wildcard).
16098 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
16099 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
16100 # The user is allowed to set LINGUAS to a list of languages to
16101 # install catalogs for. If it's empty that means "all of them."
16102 if test "x$LINGUAS" = x; then
16103 CATALOGS="$CATALOGS $cat"
16104 XLINGUAS="$XLINGUAS $lang"
16105 else
16106 case "$LINGUAS" in *$lang*)
16107 CATALOGS="$CATALOGS $cat"
16108 XLINGUAS="$XLINGUAS $lang"
16110 esac
16112 done
16113 LINGUAS="$XLINGUAS"
16114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
16115 $as_echo "$LINGUAS" >&6; }
16118 DATADIRNAME=share
16120 INSTOBJEXT=.mo
16122 GENCAT=gencat
16124 CATOBJEXT=.gmo
16128 MKINSTALLDIRS=
16129 if test -n "$ac_aux_dir"; then
16130 case "$ac_aux_dir" in
16131 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
16132 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
16133 esac
16135 if test -z "$MKINSTALLDIRS"; then
16136 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
16141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
16142 $as_echo_n "checking whether NLS is requested... " >&6; }
16143 # Check whether --enable-nls was given.
16144 if test "${enable_nls+set}" = set; then :
16145 enableval=$enable_nls; USE_NLS=$enableval
16146 else
16147 USE_NLS=yes
16150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
16151 $as_echo "$USE_NLS" >&6; }
16158 # Prepare PATH_SEPARATOR.
16159 # The user is always right.
16160 if test "${PATH_SEPARATOR+set}" != set; then
16161 echo "#! /bin/sh" >conf$$.sh
16162 echo "exit 0" >>conf$$.sh
16163 chmod +x conf$$.sh
16164 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16165 PATH_SEPARATOR=';'
16166 else
16167 PATH_SEPARATOR=:
16169 rm -f conf$$.sh
16172 # Find out how to test for executable files. Don't use a zero-byte file,
16173 # as systems may use methods other than mode bits to determine executability.
16174 cat >conf$$.file <<_ASEOF
16175 #! /bin/sh
16176 exit 0
16177 _ASEOF
16178 chmod +x conf$$.file
16179 if test -x conf$$.file >/dev/null 2>&1; then
16180 ac_executable_p="test -x"
16181 else
16182 ac_executable_p="test -f"
16184 rm -f conf$$.file
16186 # Extract the first word of "msgfmt", so it can be a program name with args.
16187 set dummy msgfmt; ac_word=$2
16188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16189 $as_echo_n "checking for $ac_word... " >&6; }
16190 if ${ac_cv_path_MSGFMT+:} false; then :
16191 $as_echo_n "(cached) " >&6
16192 else
16193 case "$MSGFMT" in
16194 [\\/]* | ?:[\\/]*)
16195 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
16198 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16199 for ac_dir in $PATH; do
16200 IFS="$ac_save_IFS"
16201 test -z "$ac_dir" && ac_dir=.
16202 for ac_exec_ext in '' $ac_executable_extensions; do
16203 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16204 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
16205 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16206 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
16207 break 2
16210 done
16211 done
16212 IFS="$ac_save_IFS"
16213 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
16215 esac
16217 MSGFMT="$ac_cv_path_MSGFMT"
16218 if test "$MSGFMT" != ":"; then
16219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
16220 $as_echo "$MSGFMT" >&6; }
16221 else
16222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16223 $as_echo "no" >&6; }
16226 # Extract the first word of "gmsgfmt", so it can be a program name with args.
16227 set dummy gmsgfmt; ac_word=$2
16228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16229 $as_echo_n "checking for $ac_word... " >&6; }
16230 if ${ac_cv_path_GMSGFMT+:} false; then :
16231 $as_echo_n "(cached) " >&6
16232 else
16233 case $GMSGFMT in
16234 [\\/]* | ?:[\\/]*)
16235 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
16238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16239 for as_dir in $PATH
16241 IFS=$as_save_IFS
16242 test -z "$as_dir" && as_dir=.
16243 for ac_exec_ext in '' $ac_executable_extensions; do
16244 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16245 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
16246 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16247 break 2
16249 done
16250 done
16251 IFS=$as_save_IFS
16253 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
16255 esac
16257 GMSGFMT=$ac_cv_path_GMSGFMT
16258 if test -n "$GMSGFMT"; then
16259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
16260 $as_echo "$GMSGFMT" >&6; }
16261 else
16262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16263 $as_echo "no" >&6; }
16269 # Prepare PATH_SEPARATOR.
16270 # The user is always right.
16271 if test "${PATH_SEPARATOR+set}" != set; then
16272 echo "#! /bin/sh" >conf$$.sh
16273 echo "exit 0" >>conf$$.sh
16274 chmod +x conf$$.sh
16275 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16276 PATH_SEPARATOR=';'
16277 else
16278 PATH_SEPARATOR=:
16280 rm -f conf$$.sh
16283 # Find out how to test for executable files. Don't use a zero-byte file,
16284 # as systems may use methods other than mode bits to determine executability.
16285 cat >conf$$.file <<_ASEOF
16286 #! /bin/sh
16287 exit 0
16288 _ASEOF
16289 chmod +x conf$$.file
16290 if test -x conf$$.file >/dev/null 2>&1; then
16291 ac_executable_p="test -x"
16292 else
16293 ac_executable_p="test -f"
16295 rm -f conf$$.file
16297 # Extract the first word of "xgettext", so it can be a program name with args.
16298 set dummy xgettext; ac_word=$2
16299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16300 $as_echo_n "checking for $ac_word... " >&6; }
16301 if ${ac_cv_path_XGETTEXT+:} false; then :
16302 $as_echo_n "(cached) " >&6
16303 else
16304 case "$XGETTEXT" in
16305 [\\/]* | ?:[\\/]*)
16306 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
16309 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16310 for ac_dir in $PATH; do
16311 IFS="$ac_save_IFS"
16312 test -z "$ac_dir" && ac_dir=.
16313 for ac_exec_ext in '' $ac_executable_extensions; do
16314 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16315 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
16316 (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
16317 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
16318 break 2
16321 done
16322 done
16323 IFS="$ac_save_IFS"
16324 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
16326 esac
16328 XGETTEXT="$ac_cv_path_XGETTEXT"
16329 if test "$XGETTEXT" != ":"; then
16330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
16331 $as_echo "$XGETTEXT" >&6; }
16332 else
16333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16334 $as_echo "no" >&6; }
16337 rm -f messages.po
16340 # Prepare PATH_SEPARATOR.
16341 # The user is always right.
16342 if test "${PATH_SEPARATOR+set}" != set; then
16343 echo "#! /bin/sh" >conf$$.sh
16344 echo "exit 0" >>conf$$.sh
16345 chmod +x conf$$.sh
16346 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16347 PATH_SEPARATOR=';'
16348 else
16349 PATH_SEPARATOR=:
16351 rm -f conf$$.sh
16354 # Find out how to test for executable files. Don't use a zero-byte file,
16355 # as systems may use methods other than mode bits to determine executability.
16356 cat >conf$$.file <<_ASEOF
16357 #! /bin/sh
16358 exit 0
16359 _ASEOF
16360 chmod +x conf$$.file
16361 if test -x conf$$.file >/dev/null 2>&1; then
16362 ac_executable_p="test -x"
16363 else
16364 ac_executable_p="test -f"
16366 rm -f conf$$.file
16368 # Extract the first word of "msgmerge", so it can be a program name with args.
16369 set dummy msgmerge; ac_word=$2
16370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16371 $as_echo_n "checking for $ac_word... " >&6; }
16372 if ${ac_cv_path_MSGMERGE+:} false; then :
16373 $as_echo_n "(cached) " >&6
16374 else
16375 case "$MSGMERGE" in
16376 [\\/]* | ?:[\\/]*)
16377 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
16380 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16381 for ac_dir in $PATH; do
16382 IFS="$ac_save_IFS"
16383 test -z "$ac_dir" && ac_dir=.
16384 for ac_exec_ext in '' $ac_executable_extensions; do
16385 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16386 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
16387 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
16388 break 2
16391 done
16392 done
16393 IFS="$ac_save_IFS"
16394 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
16396 esac
16398 MSGMERGE="$ac_cv_path_MSGMERGE"
16399 if test "$MSGMERGE" != ":"; then
16400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
16401 $as_echo "$MSGMERGE" >&6; }
16402 else
16403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16404 $as_echo "no" >&6; }
16408 if test "$GMSGFMT" != ":"; then
16409 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
16410 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16412 else
16413 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
16414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
16415 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
16416 GMSGFMT=":"
16420 if test "$XGETTEXT" != ":"; then
16421 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
16422 (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
16424 else
16425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
16426 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
16427 XGETTEXT=":"
16429 rm -f messages.po
16432 ac_config_commands="$ac_config_commands default-1"
16438 for ac_prog in 'bison -y' byacc
16440 # Extract the first word of "$ac_prog", so it can be a program name with args.
16441 set dummy $ac_prog; ac_word=$2
16442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16443 $as_echo_n "checking for $ac_word... " >&6; }
16444 if ${ac_cv_prog_YACC+:} false; then :
16445 $as_echo_n "(cached) " >&6
16446 else
16447 if test -n "$YACC"; then
16448 ac_cv_prog_YACC="$YACC" # Let the user override the test.
16449 else
16450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16451 for as_dir in $PATH
16453 IFS=$as_save_IFS
16454 test -z "$as_dir" && as_dir=.
16455 for ac_exec_ext in '' $ac_executable_extensions; do
16456 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16457 ac_cv_prog_YACC="$ac_prog"
16458 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16459 break 2
16461 done
16462 done
16463 IFS=$as_save_IFS
16467 YACC=$ac_cv_prog_YACC
16468 if test -n "$YACC"; then
16469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
16470 $as_echo "$YACC" >&6; }
16471 else
16472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16473 $as_echo "no" >&6; }
16477 test -n "$YACC" && break
16478 done
16479 test -n "$YACC" || YACC="yacc"
16481 for ac_prog in flex lex
16483 # Extract the first word of "$ac_prog", so it can be a program name with args.
16484 set dummy $ac_prog; ac_word=$2
16485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16486 $as_echo_n "checking for $ac_word... " >&6; }
16487 if ${ac_cv_prog_LEX+:} false; then :
16488 $as_echo_n "(cached) " >&6
16489 else
16490 if test -n "$LEX"; then
16491 ac_cv_prog_LEX="$LEX" # Let the user override the test.
16492 else
16493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16494 for as_dir in $PATH
16496 IFS=$as_save_IFS
16497 test -z "$as_dir" && as_dir=.
16498 for ac_exec_ext in '' $ac_executable_extensions; do
16499 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16500 ac_cv_prog_LEX="$ac_prog"
16501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16502 break 2
16504 done
16505 done
16506 IFS=$as_save_IFS
16510 LEX=$ac_cv_prog_LEX
16511 if test -n "$LEX"; then
16512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
16513 $as_echo "$LEX" >&6; }
16514 else
16515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16516 $as_echo "no" >&6; }
16520 test -n "$LEX" && break
16521 done
16522 test -n "$LEX" || LEX=":"
16524 case "$LEX" in
16525 :|*"missing "*) ;;
16526 *) cat >conftest.l <<_ACEOF
16528 a { ECHO; }
16529 b { REJECT; }
16530 c { yymore (); }
16531 d { yyless (1); }
16532 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
16533 yyless ((input () != 0)); }
16534 f { unput (yytext[0]); }
16535 . { BEGIN INITIAL; }
16537 #ifdef YYTEXT_POINTER
16538 extern char *yytext;
16539 #endif
16541 main (void)
16543 return ! yylex () + ! yywrap ();
16545 _ACEOF
16546 { { ac_try="$LEX conftest.l"
16547 case "(($ac_try" in
16548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16549 *) ac_try_echo=$ac_try;;
16550 esac
16551 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
16552 $as_echo "$ac_try_echo"; } >&5
16553 (eval "$LEX conftest.l") 2>&5
16554 ac_status=$?
16555 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16556 test $ac_status = 0; }
16557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
16558 $as_echo_n "checking lex output file root... " >&6; }
16559 if ${ac_cv_prog_lex_root+:} false; then :
16560 $as_echo_n "(cached) " >&6
16561 else
16563 if test -f lex.yy.c; then
16564 ac_cv_prog_lex_root=lex.yy
16565 elif test -f lexyy.c; then
16566 ac_cv_prog_lex_root=lexyy
16567 else
16568 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
16571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
16572 $as_echo "$ac_cv_prog_lex_root" >&6; }
16573 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
16575 if test -z "${LEXLIB+set}"; then
16576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
16577 $as_echo_n "checking lex library... " >&6; }
16578 if ${ac_cv_lib_lex+:} false; then :
16579 $as_echo_n "(cached) " >&6
16580 else
16582 ac_save_LIBS=$LIBS
16583 ac_cv_lib_lex='none needed'
16584 for ac_lib in '' -lfl -ll; do
16585 LIBS="$ac_lib $ac_save_LIBS"
16586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16587 /* end confdefs.h. */
16588 `cat $LEX_OUTPUT_ROOT.c`
16589 _ACEOF
16590 if ac_fn_c_try_link "$LINENO"; then :
16591 ac_cv_lib_lex=$ac_lib
16593 rm -f core conftest.err conftest.$ac_objext \
16594 conftest$ac_exeext conftest.$ac_ext
16595 test "$ac_cv_lib_lex" != 'none needed' && break
16596 done
16597 LIBS=$ac_save_LIBS
16600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
16601 $as_echo "$ac_cv_lib_lex" >&6; }
16602 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
16606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
16607 $as_echo_n "checking whether yytext is a pointer... " >&6; }
16608 if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
16609 $as_echo_n "(cached) " >&6
16610 else
16611 # POSIX says lex can declare yytext either as a pointer or an array; the
16612 # default is implementation-dependent. Figure out which it is, since
16613 # not all implementations provide the %pointer and %array declarations.
16614 ac_cv_prog_lex_yytext_pointer=no
16615 ac_save_LIBS=$LIBS
16616 LIBS="$LEXLIB $ac_save_LIBS"
16617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16618 /* end confdefs.h. */
16620 #define YYTEXT_POINTER 1
16621 `cat $LEX_OUTPUT_ROOT.c`
16622 _ACEOF
16623 if ac_fn_c_try_link "$LINENO"; then :
16624 ac_cv_prog_lex_yytext_pointer=yes
16626 rm -f core conftest.err conftest.$ac_objext \
16627 conftest$ac_exeext conftest.$ac_ext
16628 LIBS=$ac_save_LIBS
16631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
16632 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
16633 if test $ac_cv_prog_lex_yytext_pointer = yes; then
16635 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
16638 rm -f conftest.l $LEX_OUTPUT_ROOT.c
16640 esac
16641 if test "$LEX" = :; then
16642 LEX=${am_missing_run}flex
16646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
16647 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
16648 # Check whether --enable-maintainer-mode was given.
16649 if test "${enable_maintainer_mode+set}" = set; then :
16650 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
16651 else
16652 USE_MAINTAINER_MODE=no
16655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
16656 $as_echo "$USE_MAINTAINER_MODE" >&6; }
16657 if test $USE_MAINTAINER_MODE = yes; then
16658 MAINTAINER_MODE_TRUE=
16659 MAINTAINER_MODE_FALSE='#'
16660 else
16661 MAINTAINER_MODE_TRUE='#'
16662 MAINTAINER_MODE_FALSE=
16665 MAINT=$MAINTAINER_MODE_TRUE
16668 if false; then
16669 GENINSRC_NEVER_TRUE=
16670 GENINSRC_NEVER_FALSE='#'
16671 else
16672 GENINSRC_NEVER_TRUE='#'
16673 GENINSRC_NEVER_FALSE=
16676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
16677 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
16678 if ${gcc_cv_prog_cmp_skip+:} false; then :
16679 $as_echo_n "(cached) " >&6
16680 else
16681 echo abfoo >t1
16682 echo cdfoo >t2
16683 gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
16684 if cmp t1 t2 2 2 > /dev/null 2>&1; then
16685 if cmp t1 t2 1 1 > /dev/null 2>&1; then
16687 else
16688 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
16691 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
16692 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
16694 else
16695 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
16698 rm t1 t2
16701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
16702 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
16703 do_compare="$gcc_cv_prog_cmp_skip"
16707 . ${srcdir}/configure.host
16712 # We use headers from include/ that check various HAVE_*_H macros, thus
16713 # should ensure they are set by configure. This is true even when C99
16714 # guarantees they are available.
16715 # sha1.h and md4.h test HAVE_LIMITS_H, HAVE_SYS_TYPES_H and HAVE_STDINT_H
16716 # plugin-api.h tests HAVE_STDINT_H and HAVE_INTTYPES_H
16717 # Besides those, we need to check anything used in ld/ not in C99.
16718 for ac_header in fcntl.h elf-hints.h limits.h inttypes.h stdint.h \
16719 sys/file.h sys/mman.h sys/param.h sys/stat.h sys/time.h \
16720 sys/types.h unistd.h
16721 do :
16722 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16723 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16724 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16725 cat >>confdefs.h <<_ACEOF
16726 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16727 _ACEOF
16731 done
16733 for ac_func in close glob lseek mkstemp open realpath waitpid
16734 do :
16735 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16736 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16737 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16738 cat >>confdefs.h <<_ACEOF
16739 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16740 _ACEOF
16743 done
16747 case "${host}" in
16748 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
16750 $as_echo "#define USE_BINARY_FOPEN 1" >>confdefs.h
16752 esac
16754 ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
16755 if test "x$ac_cv_have_decl_asprintf" = xyes; then :
16756 ac_have_decl=1
16757 else
16758 ac_have_decl=0
16761 cat >>confdefs.h <<_ACEOF
16762 #define HAVE_DECL_ASPRINTF $ac_have_decl
16763 _ACEOF
16764 ac_fn_c_check_decl "$LINENO" "environ" "ac_cv_have_decl_environ" "$ac_includes_default"
16765 if test "x$ac_cv_have_decl_environ" = xyes; then :
16766 ac_have_decl=1
16767 else
16768 ac_have_decl=0
16771 cat >>confdefs.h <<_ACEOF
16772 #define HAVE_DECL_ENVIRON $ac_have_decl
16773 _ACEOF
16779 for ac_header in $ac_header_list
16780 do :
16781 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16782 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
16784 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16785 cat >>confdefs.h <<_ACEOF
16786 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16787 _ACEOF
16791 done
16800 for ac_func in getpagesize
16801 do :
16802 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
16803 if test "x$ac_cv_func_getpagesize" = xyes; then :
16804 cat >>confdefs.h <<_ACEOF
16805 #define HAVE_GETPAGESIZE 1
16806 _ACEOF
16809 done
16811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
16812 $as_echo_n "checking for working mmap... " >&6; }
16813 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
16814 $as_echo_n "(cached) " >&6
16815 else
16816 if test "$cross_compiling" = yes; then :
16817 ac_cv_func_mmap_fixed_mapped=no
16818 else
16819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16820 /* end confdefs.h. */
16821 $ac_includes_default
16822 /* malloc might have been renamed as rpl_malloc. */
16823 #undef malloc
16825 /* Thanks to Mike Haertel and Jim Avera for this test.
16826 Here is a matrix of mmap possibilities:
16827 mmap private not fixed
16828 mmap private fixed at somewhere currently unmapped
16829 mmap private fixed at somewhere already mapped
16830 mmap shared not fixed
16831 mmap shared fixed at somewhere currently unmapped
16832 mmap shared fixed at somewhere already mapped
16833 For private mappings, we should verify that changes cannot be read()
16834 back from the file, nor mmap's back from the file at a different
16835 address. (There have been systems where private was not correctly
16836 implemented like the infamous i386 svr4.0, and systems where the
16837 VM page cache was not coherent with the file system buffer cache
16838 like early versions of FreeBSD and possibly contemporary NetBSD.)
16839 For shared mappings, we should conversely verify that changes get
16840 propagated back to all the places they're supposed to be.
16842 Grep wants private fixed already mapped.
16843 The main things grep needs to know about mmap are:
16844 * does it exist and is it safe to write into the mmap'd area
16845 * how to use it (BSD variants) */
16847 #include <fcntl.h>
16848 #include <sys/mman.h>
16850 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
16851 char *malloc ();
16852 #endif
16854 /* This mess was copied from the GNU getpagesize.h. */
16855 #ifndef HAVE_GETPAGESIZE
16856 # ifdef _SC_PAGESIZE
16857 # define getpagesize() sysconf(_SC_PAGESIZE)
16858 # else /* no _SC_PAGESIZE */
16859 # ifdef HAVE_SYS_PARAM_H
16860 # include <sys/param.h>
16861 # ifdef EXEC_PAGESIZE
16862 # define getpagesize() EXEC_PAGESIZE
16863 # else /* no EXEC_PAGESIZE */
16864 # ifdef NBPG
16865 # define getpagesize() NBPG * CLSIZE
16866 # ifndef CLSIZE
16867 # define CLSIZE 1
16868 # endif /* no CLSIZE */
16869 # else /* no NBPG */
16870 # ifdef NBPC
16871 # define getpagesize() NBPC
16872 # else /* no NBPC */
16873 # ifdef PAGESIZE
16874 # define getpagesize() PAGESIZE
16875 # endif /* PAGESIZE */
16876 # endif /* no NBPC */
16877 # endif /* no NBPG */
16878 # endif /* no EXEC_PAGESIZE */
16879 # else /* no HAVE_SYS_PARAM_H */
16880 # define getpagesize() 8192 /* punt totally */
16881 # endif /* no HAVE_SYS_PARAM_H */
16882 # endif /* no _SC_PAGESIZE */
16884 #endif /* no HAVE_GETPAGESIZE */
16887 main ()
16889 char *data, *data2, *data3;
16890 const char *cdata2;
16891 int i, pagesize;
16892 int fd, fd2;
16894 pagesize = getpagesize ();
16896 /* First, make a file with some known garbage in it. */
16897 data = (char *) malloc (pagesize);
16898 if (!data)
16899 return 1;
16900 for (i = 0; i < pagesize; ++i)
16901 *(data + i) = rand ();
16902 umask (0);
16903 fd = creat ("conftest.mmap", 0600);
16904 if (fd < 0)
16905 return 2;
16906 if (write (fd, data, pagesize) != pagesize)
16907 return 3;
16908 close (fd);
16910 /* Next, check that the tail of a page is zero-filled. File must have
16911 non-zero length, otherwise we risk SIGBUS for entire page. */
16912 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
16913 if (fd2 < 0)
16914 return 4;
16915 cdata2 = "";
16916 if (write (fd2, cdata2, 1) != 1)
16917 return 5;
16918 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
16919 if (data2 == MAP_FAILED)
16920 return 6;
16921 for (i = 0; i < pagesize; ++i)
16922 if (*(data2 + i))
16923 return 7;
16924 close (fd2);
16925 if (munmap (data2, pagesize))
16926 return 8;
16928 /* Next, try to mmap the file at a fixed address which already has
16929 something else allocated at it. If we can, also make sure that
16930 we see the same garbage. */
16931 fd = open ("conftest.mmap", O_RDWR);
16932 if (fd < 0)
16933 return 9;
16934 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
16935 MAP_PRIVATE | MAP_FIXED, fd, 0L))
16936 return 10;
16937 for (i = 0; i < pagesize; ++i)
16938 if (*(data + i) != *(data2 + i))
16939 return 11;
16941 /* Finally, make sure that changes to the mapped area do not
16942 percolate back to the file as seen by read(). (This is a bug on
16943 some variants of i386 svr4.0.) */
16944 for (i = 0; i < pagesize; ++i)
16945 *(data2 + i) = *(data2 + i) + 1;
16946 data3 = (char *) malloc (pagesize);
16947 if (!data3)
16948 return 12;
16949 if (read (fd, data3, pagesize) != pagesize)
16950 return 13;
16951 for (i = 0; i < pagesize; ++i)
16952 if (*(data + i) != *(data3 + i))
16953 return 14;
16954 close (fd);
16955 return 0;
16957 _ACEOF
16958 if ac_fn_c_try_run "$LINENO"; then :
16959 ac_cv_func_mmap_fixed_mapped=yes
16960 else
16961 ac_cv_func_mmap_fixed_mapped=no
16963 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16964 conftest.$ac_objext conftest.beam conftest.$ac_ext
16968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
16969 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
16970 if test $ac_cv_func_mmap_fixed_mapped = yes; then
16972 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
16975 rm -f conftest.mmap conftest.txt
16978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
16979 $as_echo_n "checking for library containing dlopen... " >&6; }
16980 if ${ac_cv_search_dlopen+:} false; then :
16981 $as_echo_n "(cached) " >&6
16982 else
16983 ac_func_search_save_LIBS=$LIBS
16984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16985 /* end confdefs.h. */
16987 /* Override any GCC internal prototype to avoid an error.
16988 Use char because int might match the return type of a GCC
16989 builtin and then its argument prototype would still apply. */
16990 #ifdef __cplusplus
16991 extern "C"
16992 #endif
16993 char dlopen ();
16995 main ()
16997 return dlopen ();
16999 return 0;
17001 _ACEOF
17002 for ac_lib in '' dl; do
17003 if test -z "$ac_lib"; then
17004 ac_res="none required"
17005 else
17006 ac_res=-l$ac_lib
17007 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17009 if ac_fn_c_try_link "$LINENO"; then :
17010 ac_cv_search_dlopen=$ac_res
17012 rm -f core conftest.err conftest.$ac_objext \
17013 conftest$ac_exeext
17014 if ${ac_cv_search_dlopen+:} false; then :
17015 break
17017 done
17018 if ${ac_cv_search_dlopen+:} false; then :
17020 else
17021 ac_cv_search_dlopen=no
17023 rm conftest.$ac_ext
17024 LIBS=$ac_func_search_save_LIBS
17026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
17027 $as_echo "$ac_cv_search_dlopen" >&6; }
17028 ac_res=$ac_cv_search_dlopen
17029 if test "$ac_res" != no; then :
17030 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a known getopt prototype in unistd.h" >&5
17036 $as_echo_n "checking for a known getopt prototype in unistd.h... " >&6; }
17037 if ${ld_cv_decl_getopt_unistd_h+:} false; then :
17038 $as_echo_n "(cached) " >&6
17039 else
17040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17041 /* end confdefs.h. */
17042 #include <unistd.h>
17044 main ()
17046 extern int getopt (int, char *const*, const char *);
17048 return 0;
17050 _ACEOF
17051 if ac_fn_c_try_compile "$LINENO"; then :
17052 ld_cv_decl_getopt_unistd_h=yes
17053 else
17054 ld_cv_decl_getopt_unistd_h=no
17056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_cv_decl_getopt_unistd_h" >&5
17060 $as_echo "$ld_cv_decl_getopt_unistd_h" >&6; }
17061 if test $ld_cv_decl_getopt_unistd_h = yes; then
17063 $as_echo "#define HAVE_DECL_GETOPT 1" >>confdefs.h
17067 # Link in zlib/zstd if we can. This allows us to read and write
17068 # compressed debug sections.
17070 # Use the system's zlib library.
17071 zlibdir="-L\$(top_builddir)/../zlib"
17072 zlibinc="-I\$(top_srcdir)/../zlib"
17074 # Check whether --with-system-zlib was given.
17075 if test "${with_system_zlib+set}" = set; then :
17076 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
17077 zlibdir=
17078 zlibinc=
17088 # Check whether --with-zstd was given.
17089 if test "${with_zstd+set}" = set; then :
17090 withval=$with_zstd;
17091 else
17092 with_zstd=auto
17096 if test "$with_zstd" != no; then :
17098 pkg_failed=no
17099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libzstd >= 1.4.0" >&5
17100 $as_echo_n "checking for libzstd >= 1.4.0... " >&6; }
17102 if test -n "$ZSTD_CFLAGS"; then
17103 pkg_cv_ZSTD_CFLAGS="$ZSTD_CFLAGS"
17104 elif test -n "$PKG_CONFIG"; then
17105 if test -n "$PKG_CONFIG" && \
17106 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libzstd >= 1.4.0\""; } >&5
17107 ($PKG_CONFIG --exists --print-errors "libzstd >= 1.4.0") 2>&5
17108 ac_status=$?
17109 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17110 test $ac_status = 0; }; then
17111 pkg_cv_ZSTD_CFLAGS=`$PKG_CONFIG --cflags "libzstd >= 1.4.0" 2>/dev/null`
17112 test "x$?" != "x0" && pkg_failed=yes
17113 else
17114 pkg_failed=yes
17116 else
17117 pkg_failed=untried
17119 if test -n "$ZSTD_LIBS"; then
17120 pkg_cv_ZSTD_LIBS="$ZSTD_LIBS"
17121 elif test -n "$PKG_CONFIG"; then
17122 if test -n "$PKG_CONFIG" && \
17123 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libzstd >= 1.4.0\""; } >&5
17124 ($PKG_CONFIG --exists --print-errors "libzstd >= 1.4.0") 2>&5
17125 ac_status=$?
17126 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17127 test $ac_status = 0; }; then
17128 pkg_cv_ZSTD_LIBS=`$PKG_CONFIG --libs "libzstd >= 1.4.0" 2>/dev/null`
17129 test "x$?" != "x0" && pkg_failed=yes
17130 else
17131 pkg_failed=yes
17133 else
17134 pkg_failed=untried
17137 if test $pkg_failed = no; then
17138 pkg_save_LDFLAGS="$LDFLAGS"
17139 LDFLAGS="$LDFLAGS $pkg_cv_ZSTD_LIBS"
17140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17141 /* end confdefs.h. */
17144 main ()
17148 return 0;
17150 _ACEOF
17151 if ac_fn_c_try_link "$LINENO"; then :
17153 else
17154 pkg_failed=yes
17156 rm -f core conftest.err conftest.$ac_objext \
17157 conftest$ac_exeext conftest.$ac_ext
17158 LDFLAGS=$pkg_save_LDFLAGS
17163 if test $pkg_failed = yes; then
17164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17165 $as_echo "no" >&6; }
17167 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17168 _pkg_short_errors_supported=yes
17169 else
17170 _pkg_short_errors_supported=no
17172 if test $_pkg_short_errors_supported = yes; then
17173 ZSTD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libzstd >= 1.4.0" 2>&1`
17174 else
17175 ZSTD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libzstd >= 1.4.0" 2>&1`
17177 # Put the nasty error message in config.log where it belongs
17178 echo "$ZSTD_PKG_ERRORS" >&5
17181 if test "$with_zstd" = yes; then
17182 as_fn_error $? "--with-zstd was given, but pkgconfig/libzstd.pc is not found" "$LINENO" 5
17185 elif test $pkg_failed = untried; then
17186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17187 $as_echo "no" >&6; }
17189 if test "$with_zstd" = yes; then
17190 as_fn_error $? "--with-zstd was given, but pkgconfig/libzstd.pc is not found" "$LINENO" 5
17193 else
17194 ZSTD_CFLAGS=$pkg_cv_ZSTD_CFLAGS
17195 ZSTD_LIBS=$pkg_cv_ZSTD_LIBS
17196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17197 $as_echo "yes" >&6; }
17200 $as_echo "#define HAVE_ZSTD 1" >>confdefs.h
17208 # When converting linker scripts into strings for use in emulation
17209 # files, use astring.sed if the compiler supports ANSI string
17210 # concatenation, or ostring.sed otherwise. This is to support the
17211 # broken Microsoft MSVC compiler, which limits the length of string
17212 # constants, while still supporting pre-ANSI compilers which do not
17213 # support string concatenation.
17214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ANSI C string concatenation works" >&5
17215 $as_echo_n "checking whether ANSI C string concatenation works... " >&6; }
17216 if ${ld_cv_string_concatenation+:} false; then :
17217 $as_echo_n "(cached) " >&6
17218 else
17219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17220 /* end confdefs.h. */
17223 main ()
17225 char *a = "a" "a";
17227 return 0;
17229 _ACEOF
17230 if ac_fn_c_try_compile "$LINENO"; then :
17231 ld_cv_string_concatenation=yes
17232 else
17233 ld_cv_string_concatenation=no
17235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_cv_string_concatenation" >&5
17239 $as_echo "$ld_cv_string_concatenation" >&6; }
17240 if test "$ld_cv_string_concatenation" = "yes"; then
17241 STRINGIFY=astring.sed
17242 else
17243 STRINGIFY=ostring.sed
17247 # target-specific stuff:
17249 all_targets=
17250 EMUL=
17251 all_emuls=
17252 all_emul_extras=
17253 all_libpath=
17254 TDIRS=
17256 elf_list_options=false
17257 elf_shlib_list_options=false
17258 elf_plt_unwind_list_options=false
17259 for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
17261 if test "$targ_alias" = "all"; then
17262 all_targets=true
17263 elf_list_options=true
17264 elf_shlib_list_options=true
17265 elf_plt_unwind_list_options=true
17266 else
17267 # Canonicalize the secondary target names.
17268 result=`$ac_config_sub $targ_alias 2>/dev/null`
17269 if test -n "$result"; then
17270 targ=$result
17271 else
17272 targ=$targ_alias
17275 . ${srcdir}/configure.tgt
17277 if test "$targ" = "$target"; then
17278 EMUL=$targ_emul
17281 if test x${enable_64_bit_bfd} = xno; then
17282 . ${srcdir}/../bfd/config.bfd
17285 if test x${enable_64_bit_bfd} = xyes; then
17286 targ_extra_emuls="$targ_extra_emuls $targ64_extra_emuls"
17287 targ_extra_libpath="$targ_extra_libpath $targ64_extra_libpath"
17290 for i in $targ_emul $targ_extra_emuls $targ_extra_libpath; do
17291 case " $all_emuls " in
17292 *" e${i}.o "*) ;;
17294 all_emuls="$all_emuls e${i}.o"
17295 eval result=\$tdir_$i
17296 test -z "$result" && result=$targ_alias
17297 TDIRS="$TDIRS
17298 tdir_$i=$result"
17299 case "${i}" in
17300 *elf*)
17301 elf_list_options=true
17304 if $GREP "TEMPLATE_NAME=elf" ${srcdir}/emulparams/${i}.sh >/dev/null 2>/dev/null; then
17305 elf_list_options=true
17308 esac
17309 if test "$elf_list_options" = "true"; then
17310 source_sh()
17312 . $1
17314 source_sh ${srcdir}/emulparams/${i}.sh
17315 if test x${GENERATE_SHLIB_SCRIPT} = xyes; then
17316 elf_shlib_list_options=true
17318 if test x${PLT_UNWIND} = xyes; then
17319 elf_plt_unwind_list_options=true
17323 esac
17324 done
17326 for i in $targ_emul $targ_extra_libpath; do
17327 case " $all_libpath " in
17328 *" ${i} "*) ;;
17330 if test -z "$all_libpath"; then
17331 all_libpath=${i}
17332 else
17333 all_libpath="$all_libpath ${i}"
17336 esac
17337 done
17339 for i in $targ_extra_ofiles; do
17340 case " $all_emul_extras " in
17341 *" ${i} "*) ;;
17343 all_emul_extras="$all_emul_extras ${i}"
17345 esac
17346 done
17349 done
17351 if test x$ac_default_compressed_debug_sections = xyes ; then
17353 $as_echo "#define DEFAULT_FLAG_COMPRESS_DEBUG 1" >>confdefs.h
17358 cat >>confdefs.h <<_ACEOF
17359 #define DEFAULT_COMPRESSED_DEBUG_ALGORITHM $ac_default_compressed_debug_sections_algorithm
17360 _ACEOF
17363 if test "${ac_default_new_dtags}" = unset; then
17364 ac_default_new_dtags=0
17367 cat >>confdefs.h <<_ACEOF
17368 #define DEFAULT_NEW_DTAGS $ac_default_new_dtags
17369 _ACEOF
17372 if test "${ac_default_ld_z_relro}" = unset; then
17373 ac_default_ld_z_relro=0
17376 cat >>confdefs.h <<_ACEOF
17377 #define DEFAULT_LD_Z_RELRO $ac_default_ld_z_relro
17378 _ACEOF
17381 ac_default_ld_textrel_check_warning=0
17382 case "${ac_default_ld_textrel_check}" in
17383 unset|no)
17384 ac_default_ld_textrel_check=textrel_check_none
17386 yes|warning)
17387 ac_default_ld_textrel_check=textrel_check_warning
17388 ac_default_ld_textrel_check_warning=1
17390 error)
17391 ac_default_ld_textrel_check=textrel_check_error
17393 esac
17395 cat >>confdefs.h <<_ACEOF
17396 #define DEFAULT_LD_TEXTREL_CHECK $ac_default_ld_textrel_check
17397 _ACEOF
17400 cat >>confdefs.h <<_ACEOF
17401 #define DEFAULT_LD_TEXTREL_CHECK_WARNING $ac_default_ld_textrel_check_warning
17402 _ACEOF
17405 if test "${ac_default_ld_z_separate_code}" = unset; then
17406 ac_default_ld_z_separate_code=0
17409 cat >>confdefs.h <<_ACEOF
17410 #define DEFAULT_LD_Z_SEPARATE_CODE $ac_default_ld_z_separate_code
17411 _ACEOF
17416 cat >>confdefs.h <<_ACEOF
17417 #define DEFAULT_LD_WARN_EXECSTACK $ac_default_ld_warn_execstack
17418 _ACEOF
17421 if test "${ac_default_ld_warn_rwx_segments}" = unset; then
17422 ac_default_ld_warn_rwx_segments=1
17425 cat >>confdefs.h <<_ACEOF
17426 #define DEFAULT_LD_WARN_RWX_SEGMENTS $ac_default_ld_warn_rwx_segments
17427 _ACEOF
17430 if test "${ac_default_ld_default_execstack}" = unset; then
17431 ac_default_ld_default_execstack=1
17434 cat >>confdefs.h <<_ACEOF
17435 #define DEFAULT_LD_EXECSTACK $ac_default_ld_default_execstack
17436 _ACEOF
17440 if test "${ac_support_error_handling_script}" = unset; then
17441 ac_support_error_handling_script=1
17444 cat >>confdefs.h <<_ACEOF
17445 #define SUPPORT_ERROR_HANDLING_SCRIPT $ac_support_error_handling_script
17446 _ACEOF
17450 cat >>confdefs.h <<_ACEOF
17451 #define DEFAULT_EMIT_SYSV_HASH $ac_default_emit_sysv_hash
17452 _ACEOF
17456 cat >>confdefs.h <<_ACEOF
17457 #define DEFAULT_EMIT_GNU_HASH $ac_default_emit_gnu_hash
17458 _ACEOF
17469 if test x${all_targets} = xtrue; then
17470 if test x${enable_64_bit_bfd} = xyes; then
17471 EMULATION_OFILES='$(ALL_EMULATIONS) $(ALL_64_EMULATIONS)'
17472 EMUL_EXTRA_OFILES='$(ALL_EMUL_EXTRA_OFILES) $(ALL_64_EMUL_EXTRA_OFILES)'
17473 else
17474 EMULATION_OFILES='$(ALL_EMULATIONS)'
17475 EMUL_EXTRA_OFILES='$(ALL_EMUL_EXTRA_OFILES)'
17477 else
17478 EMULATION_OFILES=$all_emuls
17479 EMUL_EXTRA_OFILES=$all_emul_extras
17485 EMULATION_LIBPATH=$all_libpath
17488 if test x${enable_static} = xno; then
17489 TESTBFDLIB="-Wl,--rpath,../bfd/.libs ../bfd/.libs/libbfd.so"
17490 TESTCTFLIB="-Wl,--rpath,../libctf/.libs ../libctf/.libs/libctf.so"
17491 TESTSFRAMELIB="-Wl,--rpath,../libsframe/.libs ../libsframe/.libs/libsframe.so"
17492 else
17493 TESTBFDLIB="../bfd/.libs/libbfd.a"
17494 TESTCTFLIB="../libctf/.libs/libctf.a"
17495 TESTSFRAMELIB="../libsframe/.libs/libsframe.a"
17497 if test "${enable_libctf}" = no; then
17498 TESTCTFLIB=
17504 target_vendor=${target_vendor=$host_vendor}
17505 case "$target_vendor" in
17506 hp) EXTRA_SHLIB_EXTENSION=".sl" ;;
17507 *) EXTRA_SHLIB_EXTENSION= ;;
17508 esac
17510 case "$target_os" in
17511 lynxos) EXTRA_SHLIB_EXTENSION=".a" ;;
17512 esac
17514 if test x${EXTRA_SHLIB_EXTENSION} != x ; then
17516 cat >>confdefs.h <<_ACEOF
17517 #define EXTRA_SHLIB_EXTENSION "$EXTRA_SHLIB_EXTENSION"
17518 _ACEOF
17522 ac_config_commands="$ac_config_commands default"
17530 ac_config_files="$ac_config_files Makefile po/Makefile.in:po/Make-in"
17532 cat >confcache <<\_ACEOF
17533 # This file is a shell script that caches the results of configure
17534 # tests run on this system so they can be shared between configure
17535 # scripts and configure runs, see configure's option --config-cache.
17536 # It is not useful on other systems. If it contains results you don't
17537 # want to keep, you may remove or edit it.
17539 # config.status only pays attention to the cache file if you give it
17540 # the --recheck option to rerun configure.
17542 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17543 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17544 # following values.
17546 _ACEOF
17548 # The following way of writing the cache mishandles newlines in values,
17549 # but we know of no workaround that is simple, portable, and efficient.
17550 # So, we kill variables containing newlines.
17551 # Ultrix sh set writes to stderr and can't be redirected directly,
17552 # and sets the high bit in the cache file unless we assign to the vars.
17554 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17555 eval ac_val=\$$ac_var
17556 case $ac_val in #(
17557 *${as_nl}*)
17558 case $ac_var in #(
17559 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17560 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17561 esac
17562 case $ac_var in #(
17563 _ | IFS | as_nl) ;; #(
17564 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17565 *) { eval $ac_var=; unset $ac_var;} ;;
17566 esac ;;
17567 esac
17568 done
17570 (set) 2>&1 |
17571 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17572 *${as_nl}ac_space=\ *)
17573 # `set' does not quote correctly, so add quotes: double-quote
17574 # substitution turns \\\\ into \\, and sed turns \\ into \.
17575 sed -n \
17576 "s/'/'\\\\''/g;
17577 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17578 ;; #(
17580 # `set' quotes correctly as required by POSIX, so do not add quotes.
17581 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17583 esac |
17584 sort
17586 sed '
17587 /^ac_cv_env_/b end
17588 t clear
17589 :clear
17590 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17591 t end
17592 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17593 :end' >>confcache
17594 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17595 if test -w "$cache_file"; then
17596 if test "x$cache_file" != "x/dev/null"; then
17597 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17598 $as_echo "$as_me: updating cache $cache_file" >&6;}
17599 if test ! -f "$cache_file" || test -h "$cache_file"; then
17600 cat confcache >"$cache_file"
17601 else
17602 case $cache_file in #(
17603 */* | ?:*)
17604 mv -f confcache "$cache_file"$$ &&
17605 mv -f "$cache_file"$$ "$cache_file" ;; #(
17607 mv -f confcache "$cache_file" ;;
17608 esac
17611 else
17612 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17613 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17616 rm -f confcache
17618 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17619 # Let make expand exec_prefix.
17620 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17622 DEFS=-DHAVE_CONFIG_H
17624 ac_libobjs=
17625 ac_ltlibobjs=
17627 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17628 # 1. Remove the extension, and $U if already installed.
17629 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17630 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17631 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17632 # will be set to the directory where LIBOBJS objects are built.
17633 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17634 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17635 done
17636 LIBOBJS=$ac_libobjs
17638 LTLIBOBJS=$ac_ltlibobjs
17641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
17642 $as_echo_n "checking that generated files are newer than configure... " >&6; }
17643 if test -n "$am_sleep_pid"; then
17644 # Hide warnings about reused PIDs.
17645 wait $am_sleep_pid 2>/dev/null
17647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
17648 $as_echo "done" >&6; }
17649 if test -n "$EXEEXT"; then
17650 am__EXEEXT_TRUE=
17651 am__EXEEXT_FALSE='#'
17652 else
17653 am__EXEEXT_TRUE='#'
17654 am__EXEEXT_FALSE=
17657 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17658 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
17659 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17661 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17662 as_fn_error $? "conditional \"AMDEP\" was never defined.
17663 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17665 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17666 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17667 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17669 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
17670 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
17671 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17673 if test -z "${ENABLE_BFD_64_BIT_TRUE}" && test -z "${ENABLE_BFD_64_BIT_FALSE}"; then
17674 as_fn_error $? "conditional \"ENABLE_BFD_64_BIT\" was never defined.
17675 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17677 if test -z "${ENABLE_LIBCTF_TRUE}" && test -z "${ENABLE_LIBCTF_FALSE}"; then
17678 as_fn_error $? "conditional \"ENABLE_LIBCTF\" was never defined.
17679 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17681 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17682 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
17683 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17685 if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
17686 as_fn_error $? "conditional \"GENINSRC_NEVER\" was never defined.
17687 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17690 : "${CONFIG_STATUS=./config.status}"
17691 ac_write_fail=0
17692 ac_clean_files_save=$ac_clean_files
17693 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17694 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17695 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17696 as_write_fail=0
17697 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17698 #! $SHELL
17699 # Generated by $as_me.
17700 # Run this file to recreate the current configuration.
17701 # Compiler output produced by configure, useful for debugging
17702 # configure, is in config.log if it exists.
17704 debug=false
17705 ac_cs_recheck=false
17706 ac_cs_silent=false
17708 SHELL=\${CONFIG_SHELL-$SHELL}
17709 export SHELL
17710 _ASEOF
17711 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17712 ## -------------------- ##
17713 ## M4sh Initialization. ##
17714 ## -------------------- ##
17716 # Be more Bourne compatible
17717 DUALCASE=1; export DUALCASE # for MKS sh
17718 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17719 emulate sh
17720 NULLCMD=:
17721 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17722 # is contrary to our usage. Disable this feature.
17723 alias -g '${1+"$@"}'='"$@"'
17724 setopt NO_GLOB_SUBST
17725 else
17726 case `(set -o) 2>/dev/null` in #(
17727 *posix*) :
17728 set -o posix ;; #(
17729 *) :
17731 esac
17735 as_nl='
17737 export as_nl
17738 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17739 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17740 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17741 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17742 # Prefer a ksh shell builtin over an external printf program on Solaris,
17743 # but without wasting forks for bash or zsh.
17744 if test -z "$BASH_VERSION$ZSH_VERSION" \
17745 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17746 as_echo='print -r --'
17747 as_echo_n='print -rn --'
17748 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17749 as_echo='printf %s\n'
17750 as_echo_n='printf %s'
17751 else
17752 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17753 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17754 as_echo_n='/usr/ucb/echo -n'
17755 else
17756 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17757 as_echo_n_body='eval
17758 arg=$1;
17759 case $arg in #(
17760 *"$as_nl"*)
17761 expr "X$arg" : "X\\(.*\\)$as_nl";
17762 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17763 esac;
17764 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17766 export as_echo_n_body
17767 as_echo_n='sh -c $as_echo_n_body as_echo'
17769 export as_echo_body
17770 as_echo='sh -c $as_echo_body as_echo'
17773 # The user is always right.
17774 if test "${PATH_SEPARATOR+set}" != set; then
17775 PATH_SEPARATOR=:
17776 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17777 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17778 PATH_SEPARATOR=';'
17783 # IFS
17784 # We need space, tab and new line, in precisely that order. Quoting is
17785 # there to prevent editors from complaining about space-tab.
17786 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17787 # splitting by setting IFS to empty value.)
17788 IFS=" "" $as_nl"
17790 # Find who we are. Look in the path if we contain no directory separator.
17791 as_myself=
17792 case $0 in #((
17793 *[\\/]* ) as_myself=$0 ;;
17794 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17795 for as_dir in $PATH
17797 IFS=$as_save_IFS
17798 test -z "$as_dir" && as_dir=.
17799 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17800 done
17801 IFS=$as_save_IFS
17804 esac
17805 # We did not find ourselves, most probably we were run as `sh COMMAND'
17806 # in which case we are not to be found in the path.
17807 if test "x$as_myself" = x; then
17808 as_myself=$0
17810 if test ! -f "$as_myself"; then
17811 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17812 exit 1
17815 # Unset variables that we do not need and which cause bugs (e.g. in
17816 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17817 # suppresses any "Segmentation fault" message there. '((' could
17818 # trigger a bug in pdksh 5.2.14.
17819 for as_var in BASH_ENV ENV MAIL MAILPATH
17820 do eval test x\${$as_var+set} = xset \
17821 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17822 done
17823 PS1='$ '
17824 PS2='> '
17825 PS4='+ '
17827 # NLS nuisances.
17828 LC_ALL=C
17829 export LC_ALL
17830 LANGUAGE=C
17831 export LANGUAGE
17833 # CDPATH.
17834 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17837 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17838 # ----------------------------------------
17839 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17840 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17841 # script with STATUS, using 1 if that was 0.
17842 as_fn_error ()
17844 as_status=$1; test $as_status -eq 0 && as_status=1
17845 if test "$4"; then
17846 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17847 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17849 $as_echo "$as_me: error: $2" >&2
17850 as_fn_exit $as_status
17851 } # as_fn_error
17854 # as_fn_set_status STATUS
17855 # -----------------------
17856 # Set $? to STATUS, without forking.
17857 as_fn_set_status ()
17859 return $1
17860 } # as_fn_set_status
17862 # as_fn_exit STATUS
17863 # -----------------
17864 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17865 as_fn_exit ()
17867 set +e
17868 as_fn_set_status $1
17869 exit $1
17870 } # as_fn_exit
17872 # as_fn_unset VAR
17873 # ---------------
17874 # Portably unset VAR.
17875 as_fn_unset ()
17877 { eval $1=; unset $1;}
17879 as_unset=as_fn_unset
17880 # as_fn_append VAR VALUE
17881 # ----------------------
17882 # Append the text in VALUE to the end of the definition contained in VAR. Take
17883 # advantage of any shell optimizations that allow amortized linear growth over
17884 # repeated appends, instead of the typical quadratic growth present in naive
17885 # implementations.
17886 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17887 eval 'as_fn_append ()
17889 eval $1+=\$2
17891 else
17892 as_fn_append ()
17894 eval $1=\$$1\$2
17896 fi # as_fn_append
17898 # as_fn_arith ARG...
17899 # ------------------
17900 # Perform arithmetic evaluation on the ARGs, and store the result in the
17901 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17902 # must be portable across $(()) and expr.
17903 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17904 eval 'as_fn_arith ()
17906 as_val=$(( $* ))
17908 else
17909 as_fn_arith ()
17911 as_val=`expr "$@" || test $? -eq 1`
17913 fi # as_fn_arith
17916 if expr a : '\(a\)' >/dev/null 2>&1 &&
17917 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17918 as_expr=expr
17919 else
17920 as_expr=false
17923 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17924 as_basename=basename
17925 else
17926 as_basename=false
17929 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17930 as_dirname=dirname
17931 else
17932 as_dirname=false
17935 as_me=`$as_basename -- "$0" ||
17936 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17937 X"$0" : 'X\(//\)$' \| \
17938 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17939 $as_echo X/"$0" |
17940 sed '/^.*\/\([^/][^/]*\)\/*$/{
17941 s//\1/
17944 /^X\/\(\/\/\)$/{
17945 s//\1/
17948 /^X\/\(\/\).*/{
17949 s//\1/
17952 s/.*/./; q'`
17954 # Avoid depending upon Character Ranges.
17955 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17956 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17957 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17958 as_cr_digits='0123456789'
17959 as_cr_alnum=$as_cr_Letters$as_cr_digits
17961 ECHO_C= ECHO_N= ECHO_T=
17962 case `echo -n x` in #(((((
17963 -n*)
17964 case `echo 'xy\c'` in
17965 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17966 xy) ECHO_C='\c';;
17967 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17968 ECHO_T=' ';;
17969 esac;;
17971 ECHO_N='-n';;
17972 esac
17974 rm -f conf$$ conf$$.exe conf$$.file
17975 if test -d conf$$.dir; then
17976 rm -f conf$$.dir/conf$$.file
17977 else
17978 rm -f conf$$.dir
17979 mkdir conf$$.dir 2>/dev/null
17981 if (echo >conf$$.file) 2>/dev/null; then
17982 if ln -s conf$$.file conf$$ 2>/dev/null; then
17983 as_ln_s='ln -s'
17984 # ... but there are two gotchas:
17985 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17986 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17987 # In both cases, we have to default to `cp -pR'.
17988 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17989 as_ln_s='cp -pR'
17990 elif ln conf$$.file conf$$ 2>/dev/null; then
17991 as_ln_s=ln
17992 else
17993 as_ln_s='cp -pR'
17995 else
17996 as_ln_s='cp -pR'
17998 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17999 rmdir conf$$.dir 2>/dev/null
18002 # as_fn_mkdir_p
18003 # -------------
18004 # Create "$as_dir" as a directory, including parents if necessary.
18005 as_fn_mkdir_p ()
18008 case $as_dir in #(
18009 -*) as_dir=./$as_dir;;
18010 esac
18011 test -d "$as_dir" || eval $as_mkdir_p || {
18012 as_dirs=
18013 while :; do
18014 case $as_dir in #(
18015 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18016 *) as_qdir=$as_dir;;
18017 esac
18018 as_dirs="'$as_qdir' $as_dirs"
18019 as_dir=`$as_dirname -- "$as_dir" ||
18020 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18021 X"$as_dir" : 'X\(//\)[^/]' \| \
18022 X"$as_dir" : 'X\(//\)$' \| \
18023 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18024 $as_echo X"$as_dir" |
18025 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18026 s//\1/
18029 /^X\(\/\/\)[^/].*/{
18030 s//\1/
18033 /^X\(\/\/\)$/{
18034 s//\1/
18037 /^X\(\/\).*/{
18038 s//\1/
18041 s/.*/./; q'`
18042 test -d "$as_dir" && break
18043 done
18044 test -z "$as_dirs" || eval "mkdir $as_dirs"
18045 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18048 } # as_fn_mkdir_p
18049 if mkdir -p . 2>/dev/null; then
18050 as_mkdir_p='mkdir -p "$as_dir"'
18051 else
18052 test -d ./-p && rmdir ./-p
18053 as_mkdir_p=false
18057 # as_fn_executable_p FILE
18058 # -----------------------
18059 # Test if FILE is an executable regular file.
18060 as_fn_executable_p ()
18062 test -f "$1" && test -x "$1"
18063 } # as_fn_executable_p
18064 as_test_x='test -x'
18065 as_executable_p=as_fn_executable_p
18067 # Sed expression to map a string onto a valid CPP name.
18068 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18070 # Sed expression to map a string onto a valid variable name.
18071 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18074 exec 6>&1
18075 ## ----------------------------------- ##
18076 ## Main body of $CONFIG_STATUS script. ##
18077 ## ----------------------------------- ##
18078 _ASEOF
18079 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18081 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18082 # Save the log message, to keep $0 and so on meaningful, and to
18083 # report actual input values of CONFIG_FILES etc. instead of their
18084 # values after options handling.
18085 ac_log="
18086 This file was extended by ld $as_me 2.40.50, which was
18087 generated by GNU Autoconf 2.69. Invocation command line was
18089 CONFIG_FILES = $CONFIG_FILES
18090 CONFIG_HEADERS = $CONFIG_HEADERS
18091 CONFIG_LINKS = $CONFIG_LINKS
18092 CONFIG_COMMANDS = $CONFIG_COMMANDS
18093 $ $0 $@
18095 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18098 _ACEOF
18100 case $ac_config_files in *"
18101 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18102 esac
18104 case $ac_config_headers in *"
18105 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18106 esac
18109 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18110 # Files that config.status was made for.
18111 config_files="$ac_config_files"
18112 config_headers="$ac_config_headers"
18113 config_commands="$ac_config_commands"
18115 _ACEOF
18117 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18118 ac_cs_usage="\
18119 \`$as_me' instantiates files and other configuration actions
18120 from templates according to the current configuration. Unless the files
18121 and actions are specified as TAGs, all are instantiated by default.
18123 Usage: $0 [OPTION]... [TAG]...
18125 -h, --help print this help, then exit
18126 -V, --version print version number and configuration settings, then exit
18127 --config print configuration, then exit
18128 -q, --quiet, --silent
18129 do not print progress messages
18130 -d, --debug don't remove temporary files
18131 --recheck update $as_me by reconfiguring in the same conditions
18132 --file=FILE[:TEMPLATE]
18133 instantiate the configuration file FILE
18134 --header=FILE[:TEMPLATE]
18135 instantiate the configuration header FILE
18137 Configuration files:
18138 $config_files
18140 Configuration headers:
18141 $config_headers
18143 Configuration commands:
18144 $config_commands
18146 Report bugs to the package provider."
18148 _ACEOF
18149 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18150 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18151 ac_cs_version="\\
18152 ld config.status 2.40.50
18153 configured by $0, generated by GNU Autoconf 2.69,
18154 with options \\"\$ac_cs_config\\"
18156 Copyright (C) 2012 Free Software Foundation, Inc.
18157 This config.status script is free software; the Free Software Foundation
18158 gives unlimited permission to copy, distribute and modify it."
18160 ac_pwd='$ac_pwd'
18161 srcdir='$srcdir'
18162 INSTALL='$INSTALL'
18163 MKDIR_P='$MKDIR_P'
18164 AWK='$AWK'
18165 test -n "\$AWK" || AWK=awk
18166 _ACEOF
18168 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18169 # The default lists apply if the user does not specify any file.
18170 ac_need_defaults=:
18171 while test $# != 0
18173 case $1 in
18174 --*=?*)
18175 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18176 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18177 ac_shift=:
18179 --*=)
18180 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18181 ac_optarg=
18182 ac_shift=:
18185 ac_option=$1
18186 ac_optarg=$2
18187 ac_shift=shift
18189 esac
18191 case $ac_option in
18192 # Handling of the options.
18193 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18194 ac_cs_recheck=: ;;
18195 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18196 $as_echo "$ac_cs_version"; exit ;;
18197 --config | --confi | --conf | --con | --co | --c )
18198 $as_echo "$ac_cs_config"; exit ;;
18199 --debug | --debu | --deb | --de | --d | -d )
18200 debug=: ;;
18201 --file | --fil | --fi | --f )
18202 $ac_shift
18203 case $ac_optarg in
18204 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18205 '') as_fn_error $? "missing file argument" ;;
18206 esac
18207 as_fn_append CONFIG_FILES " '$ac_optarg'"
18208 ac_need_defaults=false;;
18209 --header | --heade | --head | --hea )
18210 $ac_shift
18211 case $ac_optarg in
18212 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18213 esac
18214 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18215 ac_need_defaults=false;;
18216 --he | --h)
18217 # Conflict between --help and --header
18218 as_fn_error $? "ambiguous option: \`$1'
18219 Try \`$0 --help' for more information.";;
18220 --help | --hel | -h )
18221 $as_echo "$ac_cs_usage"; exit ;;
18222 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18223 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18224 ac_cs_silent=: ;;
18226 # This is an error.
18227 -*) as_fn_error $? "unrecognized option: \`$1'
18228 Try \`$0 --help' for more information." ;;
18230 *) as_fn_append ac_config_targets " $1"
18231 ac_need_defaults=false ;;
18233 esac
18234 shift
18235 done
18237 ac_configure_extra_args=
18239 if $ac_cs_silent; then
18240 exec 6>/dev/null
18241 ac_configure_extra_args="$ac_configure_extra_args --silent"
18244 _ACEOF
18245 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18246 if \$ac_cs_recheck; then
18247 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18248 shift
18249 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18250 CONFIG_SHELL='$SHELL'
18251 export CONFIG_SHELL
18252 exec "\$@"
18255 _ACEOF
18256 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18257 exec 5>>config.log
18259 echo
18260 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18261 ## Running $as_me. ##
18262 _ASBOX
18263 $as_echo "$ac_log"
18264 } >&5
18266 _ACEOF
18267 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18269 # INIT-COMMANDS
18271 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18274 # The HP-UX ksh and POSIX shell print the target directory to stdout
18275 # if CDPATH is set.
18276 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18278 sed_quote_subst='$sed_quote_subst'
18279 double_quote_subst='$double_quote_subst'
18280 delay_variable_subst='$delay_variable_subst'
18281 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18282 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18283 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18284 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18285 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18286 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18287 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18288 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18289 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18290 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18291 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18292 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18293 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18294 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18295 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18296 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18297 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18298 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18299 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18300 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18301 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18302 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18303 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18304 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18305 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18306 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18307 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18308 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18309 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18310 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18311 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18312 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18313 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18314 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18315 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18316 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18317 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18318 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18319 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18320 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18321 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18322 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18323 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18324 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18325 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18326 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18327 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18328 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18329 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"`'
18330 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18331 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18332 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18333 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18334 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18335 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18336 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18337 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18338 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18339 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18340 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18341 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18342 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18343 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18344 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18345 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18346 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18347 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18348 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18349 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18350 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18351 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18352 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18353 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18354 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18355 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18356 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18357 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18358 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18359 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18360 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18361 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
18362 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18363 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18364 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18365 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18366 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18367 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18368 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18369 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18370 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
18371 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18372 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18373 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18374 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18375 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18376 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18377 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18378 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18379 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18380 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18381 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18382 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18383 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18384 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18385 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18386 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18387 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18388 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18389 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18390 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18391 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18392 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18393 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18394 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
18395 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18396 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18397 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18398 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18399 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18400 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18401 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
18402 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
18403 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
18404 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
18405 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
18406 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
18407 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
18408 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
18409 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18410 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18411 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
18412 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
18413 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
18414 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
18415 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
18416 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
18417 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
18418 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
18419 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
18420 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18421 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18422 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
18423 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18424 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18425 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18426 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18427 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18428 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18429 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
18430 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18431 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18432 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18433 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
18434 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
18435 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
18436 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
18437 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
18438 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
18439 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
18440 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
18441 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
18442 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
18443 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
18444 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18445 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18446 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18447 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18448 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
18449 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
18450 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
18451 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18452 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18453 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
18454 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
18455 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
18457 LTCC='$LTCC'
18458 LTCFLAGS='$LTCFLAGS'
18459 compiler='$compiler_DEFAULT'
18461 # A function that is used when there is no print builtin or printf.
18462 func_fallback_echo ()
18464 eval 'cat <<_LTECHO_EOF
18466 _LTECHO_EOF'
18469 # Quote evaled strings.
18470 for var in SHELL \
18471 ECHO \
18472 SED \
18473 GREP \
18474 EGREP \
18475 FGREP \
18476 LD \
18477 NM \
18478 LN_S \
18479 lt_SP2NL \
18480 lt_NL2SP \
18481 reload_flag \
18482 OBJDUMP \
18483 deplibs_check_method \
18484 file_magic_cmd \
18485 AR \
18486 AR_FLAGS \
18487 STRIP \
18488 RANLIB \
18489 CC \
18490 CFLAGS \
18491 compiler \
18492 lt_cv_sys_global_symbol_pipe \
18493 lt_cv_sys_global_symbol_to_cdecl \
18494 lt_cv_sys_global_symbol_to_c_name_address \
18495 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18496 lt_prog_compiler_no_builtin_flag \
18497 lt_prog_compiler_wl \
18498 lt_prog_compiler_pic \
18499 lt_prog_compiler_static \
18500 lt_cv_prog_compiler_c_o \
18501 need_locks \
18502 DSYMUTIL \
18503 NMEDIT \
18504 LIPO \
18505 OTOOL \
18506 OTOOL64 \
18507 shrext_cmds \
18508 export_dynamic_flag_spec \
18509 whole_archive_flag_spec \
18510 compiler_needs_object \
18511 with_gnu_ld \
18512 allow_undefined_flag \
18513 no_undefined_flag \
18514 hardcode_libdir_flag_spec \
18515 hardcode_libdir_flag_spec_ld \
18516 hardcode_libdir_separator \
18517 fix_srcfile_path \
18518 exclude_expsyms \
18519 include_expsyms \
18520 file_list_spec \
18521 variables_saved_for_relink \
18522 libname_spec \
18523 library_names_spec \
18524 soname_spec \
18525 install_override_mode \
18526 finish_eval \
18527 old_striplib \
18528 striplib \
18529 compiler_lib_search_dirs \
18530 predep_objects \
18531 postdep_objects \
18532 predeps \
18533 postdeps \
18534 compiler_lib_search_path \
18535 LD_CXX \
18536 reload_flag_CXX \
18537 compiler_CXX \
18538 lt_prog_compiler_no_builtin_flag_CXX \
18539 lt_prog_compiler_wl_CXX \
18540 lt_prog_compiler_pic_CXX \
18541 lt_prog_compiler_static_CXX \
18542 lt_cv_prog_compiler_c_o_CXX \
18543 export_dynamic_flag_spec_CXX \
18544 whole_archive_flag_spec_CXX \
18545 compiler_needs_object_CXX \
18546 with_gnu_ld_CXX \
18547 allow_undefined_flag_CXX \
18548 no_undefined_flag_CXX \
18549 hardcode_libdir_flag_spec_CXX \
18550 hardcode_libdir_flag_spec_ld_CXX \
18551 hardcode_libdir_separator_CXX \
18552 fix_srcfile_path_CXX \
18553 exclude_expsyms_CXX \
18554 include_expsyms_CXX \
18555 file_list_spec_CXX \
18556 compiler_lib_search_dirs_CXX \
18557 predep_objects_CXX \
18558 postdep_objects_CXX \
18559 predeps_CXX \
18560 postdeps_CXX \
18561 compiler_lib_search_path_CXX; do
18562 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18563 *[\\\\\\\`\\"\\\$]*)
18564 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18567 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18569 esac
18570 done
18572 # Double-quote double-evaled strings.
18573 for var in reload_cmds \
18574 old_postinstall_cmds \
18575 old_postuninstall_cmds \
18576 old_archive_cmds \
18577 extract_expsyms_cmds \
18578 old_archive_from_new_cmds \
18579 old_archive_from_expsyms_cmds \
18580 archive_cmds \
18581 archive_expsym_cmds \
18582 module_cmds \
18583 module_expsym_cmds \
18584 export_symbols_cmds \
18585 prelink_cmds \
18586 postinstall_cmds \
18587 postuninstall_cmds \
18588 finish_cmds \
18589 sys_lib_search_path_spec \
18590 sys_lib_dlsearch_path_spec \
18591 reload_cmds_CXX \
18592 old_archive_cmds_CXX \
18593 old_archive_from_new_cmds_CXX \
18594 old_archive_from_expsyms_cmds_CXX \
18595 archive_cmds_CXX \
18596 archive_expsym_cmds_CXX \
18597 module_cmds_CXX \
18598 module_expsym_cmds_CXX \
18599 export_symbols_cmds_CXX \
18600 prelink_cmds_CXX; do
18601 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18602 *[\\\\\\\`\\"\\\$]*)
18603 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18606 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18608 esac
18609 done
18611 ac_aux_dir='$ac_aux_dir'
18612 xsi_shell='$xsi_shell'
18613 lt_shell_append='$lt_shell_append'
18615 # See if we are running on zsh, and set the options which allow our
18616 # commands through without removal of \ escapes INIT.
18617 if test -n "\${ZSH_VERSION+set}" ; then
18618 setopt NO_GLOB_SUBST
18622 PACKAGE='$PACKAGE'
18623 VERSION='$VERSION'
18624 TIMESTAMP='$TIMESTAMP'
18625 RM='$RM'
18626 ofile='$ofile'
18632 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
18633 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
18634 # from automake.
18635 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
18636 # Capture the value of LINGUAS because we need it to compute CATALOGS.
18637 LINGUAS="${LINGUAS-%UNSET%}"
18641 _ACEOF
18643 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18645 # Handling of arguments.
18646 for ac_config_target in $ac_config_targets
18648 case $ac_config_target in
18649 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18650 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18651 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
18652 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
18653 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
18654 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18655 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
18657 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18658 esac
18659 done
18662 # If the user did not use the arguments to specify the items to instantiate,
18663 # then the envvar interface is used. Set only those that are not.
18664 # We use the long form for the default assignment because of an extremely
18665 # bizarre bug on SunOS 4.1.3.
18666 if $ac_need_defaults; then
18667 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18668 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18669 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18672 # Have a temporary directory for convenience. Make it in the build tree
18673 # simply because there is no reason against having it here, and in addition,
18674 # creating and moving files from /tmp can sometimes cause problems.
18675 # Hook for its removal unless debugging.
18676 # Note that there is a small window in which the directory will not be cleaned:
18677 # after its creation but before its name has been assigned to `$tmp'.
18678 $debug ||
18680 tmp= ac_tmp=
18681 trap 'exit_status=$?
18682 : "${ac_tmp:=$tmp}"
18683 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18685 trap 'as_fn_exit 1' 1 2 13 15
18687 # Create a (secure) tmp directory for tmp files.
18690 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18691 test -d "$tmp"
18692 } ||
18694 tmp=./conf$$-$RANDOM
18695 (umask 077 && mkdir "$tmp")
18696 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18697 ac_tmp=$tmp
18699 # Set up the scripts for CONFIG_FILES section.
18700 # No need to generate them if there are no CONFIG_FILES.
18701 # This happens for instance with `./config.status config.h'.
18702 if test -n "$CONFIG_FILES"; then
18705 ac_cr=`echo X | tr X '\015'`
18706 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18707 # But we know of no other shell where ac_cr would be empty at this
18708 # point, so we can use a bashism as a fallback.
18709 if test "x$ac_cr" = x; then
18710 eval ac_cr=\$\'\\r\'
18712 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18713 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18714 ac_cs_awk_cr='\\r'
18715 else
18716 ac_cs_awk_cr=$ac_cr
18719 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18720 _ACEOF
18724 echo "cat >conf$$subs.awk <<_ACEOF" &&
18725 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18726 echo "_ACEOF"
18727 } >conf$$subs.sh ||
18728 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18729 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18730 ac_delim='%!_!# '
18731 for ac_last_try in false false false false false :; do
18732 . ./conf$$subs.sh ||
18733 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18735 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18736 if test $ac_delim_n = $ac_delim_num; then
18737 break
18738 elif $ac_last_try; then
18739 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18740 else
18741 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18743 done
18744 rm -f conf$$subs.sh
18746 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18747 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18748 _ACEOF
18749 sed -n '
18751 s/^/S["/; s/!.*/"]=/
18754 s/^[^!]*!//
18755 :repl
18756 t repl
18757 s/'"$ac_delim"'$//
18758 t delim
18761 s/\(.\{148\}\)..*/\1/
18762 t more1
18763 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18766 b repl
18767 :more1
18768 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18771 s/.\{148\}//
18772 t nl
18773 :delim
18775 s/\(.\{148\}\)..*/\1/
18776 t more2
18777 s/["\\]/\\&/g; s/^/"/; s/$/"/
18780 :more2
18781 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18784 s/.\{148\}//
18785 t delim
18786 ' <conf$$subs.awk | sed '
18787 /^[^""]/{
18789 s/\n//
18791 ' >>$CONFIG_STATUS || ac_write_fail=1
18792 rm -f conf$$subs.awk
18793 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18794 _ACAWK
18795 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18796 for (key in S) S_is_set[key] = 1
18797 FS = "\a"
18801 line = $ 0
18802 nfields = split(line, field, "@")
18803 substed = 0
18804 len = length(field[1])
18805 for (i = 2; i < nfields; i++) {
18806 key = field[i]
18807 keylen = length(key)
18808 if (S_is_set[key]) {
18809 value = S[key]
18810 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18811 len += length(value) + length(field[++i])
18812 substed = 1
18813 } else
18814 len += 1 + keylen
18817 print line
18820 _ACAWK
18821 _ACEOF
18822 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18823 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18824 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18825 else
18827 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18828 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18829 _ACEOF
18831 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18832 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18833 # trailing colons and then remove the whole line if VPATH becomes empty
18834 # (actually we leave an empty line to preserve line numbers).
18835 if test "x$srcdir" = x.; then
18836 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18838 s///
18839 s/^/:/
18840 s/[ ]*$/:/
18841 s/:\$(srcdir):/:/g
18842 s/:\${srcdir}:/:/g
18843 s/:@srcdir@:/:/g
18844 s/^:*//
18845 s/:*$//
18847 s/\(=[ ]*\).*/\1/
18849 s/\n//
18850 s/^[^=]*=[ ]*$//
18854 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18855 fi # test -n "$CONFIG_FILES"
18857 # Set up the scripts for CONFIG_HEADERS section.
18858 # No need to generate them if there are no CONFIG_HEADERS.
18859 # This happens for instance with `./config.status Makefile'.
18860 if test -n "$CONFIG_HEADERS"; then
18861 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18862 BEGIN {
18863 _ACEOF
18865 # Transform confdefs.h into an awk script `defines.awk', embedded as
18866 # here-document in config.status, that substitutes the proper values into
18867 # config.h.in to produce config.h.
18869 # Create a delimiter string that does not exist in confdefs.h, to ease
18870 # handling of long lines.
18871 ac_delim='%!_!# '
18872 for ac_last_try in false false :; do
18873 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18874 if test -z "$ac_tt"; then
18875 break
18876 elif $ac_last_try; then
18877 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18878 else
18879 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18881 done
18883 # For the awk script, D is an array of macro values keyed by name,
18884 # likewise P contains macro parameters if any. Preserve backslash
18885 # newline sequences.
18887 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18888 sed -n '
18889 s/.\{148\}/&'"$ac_delim"'/g
18890 t rset
18891 :rset
18892 s/^[ ]*#[ ]*define[ ][ ]*/ /
18893 t def
18895 :def
18896 s/\\$//
18897 t bsnl
18898 s/["\\]/\\&/g
18899 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18900 D["\1"]=" \3"/p
18901 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18903 :bsnl
18904 s/["\\]/\\&/g
18905 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18906 D["\1"]=" \3\\\\\\n"\\/p
18907 t cont
18908 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18909 t cont
18911 :cont
18913 s/.\{148\}/&'"$ac_delim"'/g
18914 t clear
18915 :clear
18916 s/\\$//
18917 t bsnlc
18918 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18920 :bsnlc
18921 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18922 b cont
18923 ' <confdefs.h | sed '
18924 s/'"$ac_delim"'/"\\\
18925 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18927 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18928 for (key in D) D_is_set[key] = 1
18929 FS = "\a"
18931 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18932 line = \$ 0
18933 split(line, arg, " ")
18934 if (arg[1] == "#") {
18935 defundef = arg[2]
18936 mac1 = arg[3]
18937 } else {
18938 defundef = substr(arg[1], 2)
18939 mac1 = arg[2]
18941 split(mac1, mac2, "(") #)
18942 macro = mac2[1]
18943 prefix = substr(line, 1, index(line, defundef) - 1)
18944 if (D_is_set[macro]) {
18945 # Preserve the white space surrounding the "#".
18946 print prefix "define", macro P[macro] D[macro]
18947 next
18948 } else {
18949 # Replace #undef with comments. This is necessary, for example,
18950 # in the case of _POSIX_SOURCE, which is predefined and required
18951 # on some systems where configure will not decide to define it.
18952 if (defundef == "undef") {
18953 print "/*", prefix defundef, macro, "*/"
18954 next
18958 { print }
18959 _ACAWK
18960 _ACEOF
18961 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18962 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18963 fi # test -n "$CONFIG_HEADERS"
18966 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18967 shift
18968 for ac_tag
18970 case $ac_tag in
18971 :[FHLC]) ac_mode=$ac_tag; continue;;
18972 esac
18973 case $ac_mode$ac_tag in
18974 :[FHL]*:*);;
18975 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18976 :[FH]-) ac_tag=-:-;;
18977 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18978 esac
18979 ac_save_IFS=$IFS
18980 IFS=:
18981 set x $ac_tag
18982 IFS=$ac_save_IFS
18983 shift
18984 ac_file=$1
18985 shift
18987 case $ac_mode in
18988 :L) ac_source=$1;;
18989 :[FH])
18990 ac_file_inputs=
18991 for ac_f
18993 case $ac_f in
18994 -) ac_f="$ac_tmp/stdin";;
18995 *) # Look for the file first in the build tree, then in the source tree
18996 # (if the path is not absolute). The absolute path cannot be DOS-style,
18997 # because $ac_f cannot contain `:'.
18998 test -f "$ac_f" ||
18999 case $ac_f in
19000 [\\/$]*) false;;
19001 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19002 esac ||
19003 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19004 esac
19005 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19006 as_fn_append ac_file_inputs " '$ac_f'"
19007 done
19009 # Let's still pretend it is `configure' which instantiates (i.e., don't
19010 # use $as_me), people would be surprised to read:
19011 # /* config.h. Generated by config.status. */
19012 configure_input='Generated from '`
19013 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19014 `' by configure.'
19015 if test x"$ac_file" != x-; then
19016 configure_input="$ac_file. $configure_input"
19017 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19018 $as_echo "$as_me: creating $ac_file" >&6;}
19020 # Neutralize special characters interpreted by sed in replacement strings.
19021 case $configure_input in #(
19022 *\&* | *\|* | *\\* )
19023 ac_sed_conf_input=`$as_echo "$configure_input" |
19024 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19025 *) ac_sed_conf_input=$configure_input;;
19026 esac
19028 case $ac_tag in
19029 *:-:* | *:-) cat >"$ac_tmp/stdin" \
19030 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19031 esac
19033 esac
19035 ac_dir=`$as_dirname -- "$ac_file" ||
19036 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19037 X"$ac_file" : 'X\(//\)[^/]' \| \
19038 X"$ac_file" : 'X\(//\)$' \| \
19039 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19040 $as_echo X"$ac_file" |
19041 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19042 s//\1/
19045 /^X\(\/\/\)[^/].*/{
19046 s//\1/
19049 /^X\(\/\/\)$/{
19050 s//\1/
19053 /^X\(\/\).*/{
19054 s//\1/
19057 s/.*/./; q'`
19058 as_dir="$ac_dir"; as_fn_mkdir_p
19059 ac_builddir=.
19061 case "$ac_dir" in
19062 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19064 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19065 # A ".." for each directory in $ac_dir_suffix.
19066 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19067 case $ac_top_builddir_sub in
19068 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19069 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19070 esac ;;
19071 esac
19072 ac_abs_top_builddir=$ac_pwd
19073 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19074 # for backward compatibility:
19075 ac_top_builddir=$ac_top_build_prefix
19077 case $srcdir in
19078 .) # We are building in place.
19079 ac_srcdir=.
19080 ac_top_srcdir=$ac_top_builddir_sub
19081 ac_abs_top_srcdir=$ac_pwd ;;
19082 [\\/]* | ?:[\\/]* ) # Absolute name.
19083 ac_srcdir=$srcdir$ac_dir_suffix;
19084 ac_top_srcdir=$srcdir
19085 ac_abs_top_srcdir=$srcdir ;;
19086 *) # Relative name.
19087 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19088 ac_top_srcdir=$ac_top_build_prefix$srcdir
19089 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19090 esac
19091 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19094 case $ac_mode in
19097 # CONFIG_FILE
19100 case $INSTALL in
19101 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19102 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19103 esac
19104 ac_MKDIR_P=$MKDIR_P
19105 case $MKDIR_P in
19106 [\\/$]* | ?:[\\/]* ) ;;
19107 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19108 esac
19109 _ACEOF
19111 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19112 # If the template does not know about datarootdir, expand it.
19113 # FIXME: This hack should be removed a few years after 2.60.
19114 ac_datarootdir_hack=; ac_datarootdir_seen=
19115 ac_sed_dataroot='
19116 /datarootdir/ {
19120 /@datadir@/p
19121 /@docdir@/p
19122 /@infodir@/p
19123 /@localedir@/p
19124 /@mandir@/p'
19125 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19126 *datarootdir*) ac_datarootdir_seen=yes;;
19127 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19128 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19129 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19130 _ACEOF
19131 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19132 ac_datarootdir_hack='
19133 s&@datadir@&$datadir&g
19134 s&@docdir@&$docdir&g
19135 s&@infodir@&$infodir&g
19136 s&@localedir@&$localedir&g
19137 s&@mandir@&$mandir&g
19138 s&\\\${datarootdir}&$datarootdir&g' ;;
19139 esac
19140 _ACEOF
19142 # Neutralize VPATH when `$srcdir' = `.'.
19143 # Shell code in configure.ac might set extrasub.
19144 # FIXME: do we really want to maintain this feature?
19145 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19146 ac_sed_extra="$ac_vpsub
19147 $extrasub
19148 _ACEOF
19149 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19151 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19152 s|@configure_input@|$ac_sed_conf_input|;t t
19153 s&@top_builddir@&$ac_top_builddir_sub&;t t
19154 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19155 s&@srcdir@&$ac_srcdir&;t t
19156 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19157 s&@top_srcdir@&$ac_top_srcdir&;t t
19158 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19159 s&@builddir@&$ac_builddir&;t t
19160 s&@abs_builddir@&$ac_abs_builddir&;t t
19161 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19162 s&@INSTALL@&$ac_INSTALL&;t t
19163 s&@MKDIR_P@&$ac_MKDIR_P&;t t
19164 $ac_datarootdir_hack
19166 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
19167 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19169 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19170 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19171 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19172 "$ac_tmp/out"`; test -z "$ac_out"; } &&
19173 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19174 which seems to be undefined. Please make sure it is defined" >&5
19175 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19176 which seems to be undefined. Please make sure it is defined" >&2;}
19178 rm -f "$ac_tmp/stdin"
19179 case $ac_file in
19180 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19181 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19182 esac \
19183 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19187 # CONFIG_HEADER
19189 if test x"$ac_file" != x-; then
19191 $as_echo "/* $configure_input */" \
19192 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19193 } >"$ac_tmp/config.h" \
19194 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19195 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19196 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19197 $as_echo "$as_me: $ac_file is unchanged" >&6;}
19198 else
19199 rm -f "$ac_file"
19200 mv "$ac_tmp/config.h" "$ac_file" \
19201 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19203 else
19204 $as_echo "/* $configure_input */" \
19205 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19206 || as_fn_error $? "could not create -" "$LINENO" 5
19208 # Compute "$ac_file"'s index in $config_headers.
19209 _am_arg="$ac_file"
19210 _am_stamp_count=1
19211 for _am_header in $config_headers :; do
19212 case $_am_header in
19213 $_am_arg | $_am_arg:* )
19214 break ;;
19216 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19217 esac
19218 done
19219 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19220 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19221 X"$_am_arg" : 'X\(//\)[^/]' \| \
19222 X"$_am_arg" : 'X\(//\)$' \| \
19223 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19224 $as_echo X"$_am_arg" |
19225 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19226 s//\1/
19229 /^X\(\/\/\)[^/].*/{
19230 s//\1/
19233 /^X\(\/\/\)$/{
19234 s//\1/
19237 /^X\(\/\).*/{
19238 s//\1/
19241 s/.*/./; q'`/stamp-h$_am_stamp_count
19244 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19245 $as_echo "$as_me: executing $ac_file commands" >&6;}
19247 esac
19250 case $ac_file$ac_mode in
19251 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19252 # Older Autoconf quotes --file arguments for eval, but not when files
19253 # are listed without --file. Let's play safe and only enable the eval
19254 # if we detect the quoting.
19255 case $CONFIG_FILES in
19256 *\'*) eval set x "$CONFIG_FILES" ;;
19257 *) set x $CONFIG_FILES ;;
19258 esac
19259 shift
19260 for mf
19262 # Strip MF so we end up with the name of the file.
19263 mf=`echo "$mf" | sed -e 's/:.*$//'`
19264 # Check whether this is an Automake generated Makefile or not.
19265 # We used to match only the files named 'Makefile.in', but
19266 # some people rename them; so instead we look at the file content.
19267 # Grep'ing the first line is not enough: some people post-process
19268 # each Makefile.in and add a new line on top of each file to say so.
19269 # Grep'ing the whole file is not good either: AIX grep has a line
19270 # limit of 2048, but all sed's we know have understand at least 4000.
19271 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19272 dirpart=`$as_dirname -- "$mf" ||
19273 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19274 X"$mf" : 'X\(//\)[^/]' \| \
19275 X"$mf" : 'X\(//\)$' \| \
19276 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19277 $as_echo X"$mf" |
19278 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19279 s//\1/
19282 /^X\(\/\/\)[^/].*/{
19283 s//\1/
19286 /^X\(\/\/\)$/{
19287 s//\1/
19290 /^X\(\/\).*/{
19291 s//\1/
19294 s/.*/./; q'`
19295 else
19296 continue
19298 # Extract the definition of DEPDIR, am__include, and am__quote
19299 # from the Makefile without running 'make'.
19300 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19301 test -z "$DEPDIR" && continue
19302 am__include=`sed -n 's/^am__include = //p' < "$mf"`
19303 test -z "$am__include" && continue
19304 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19305 # Find all dependency output files, they are included files with
19306 # $(DEPDIR) in their names. We invoke sed twice because it is the
19307 # simplest approach to changing $(DEPDIR) to its actual value in the
19308 # expansion.
19309 for file in `sed -n "
19310 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19311 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
19312 # Make sure the directory exists.
19313 test -f "$dirpart/$file" && continue
19314 fdir=`$as_dirname -- "$file" ||
19315 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19316 X"$file" : 'X\(//\)[^/]' \| \
19317 X"$file" : 'X\(//\)$' \| \
19318 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19319 $as_echo X"$file" |
19320 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19321 s//\1/
19324 /^X\(\/\/\)[^/].*/{
19325 s//\1/
19328 /^X\(\/\/\)$/{
19329 s//\1/
19332 /^X\(\/\).*/{
19333 s//\1/
19336 s/.*/./; q'`
19337 as_dir=$dirpart/$fdir; as_fn_mkdir_p
19338 # echo "creating $dirpart/$file"
19339 echo '# dummy' > "$dirpart/$file"
19340 done
19341 done
19344 "libtool":C)
19346 # See if we are running on zsh, and set the options which allow our
19347 # commands through without removal of \ escapes.
19348 if test -n "${ZSH_VERSION+set}" ; then
19349 setopt NO_GLOB_SUBST
19352 cfgfile="${ofile}T"
19353 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19354 $RM "$cfgfile"
19356 cat <<_LT_EOF >> "$cfgfile"
19357 #! $SHELL
19359 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19360 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19361 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19362 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19364 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19365 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
19366 # Written by Gordon Matzigkeit, 1996
19368 # This file is part of GNU Libtool.
19370 # GNU Libtool is free software; you can redistribute it and/or
19371 # modify it under the terms of the GNU General Public License as
19372 # published by the Free Software Foundation; either version 2 of
19373 # the License, or (at your option) any later version.
19375 # As a special exception to the GNU General Public License,
19376 # if you distribute this file as part of a program or library that
19377 # is built using GNU Libtool, you may include this file under the
19378 # same distribution terms that you use for the rest of that program.
19380 # GNU Libtool is distributed in the hope that it will be useful,
19381 # but WITHOUT ANY WARRANTY; without even the implied warranty of
19382 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19383 # GNU General Public License for more details.
19385 # You should have received a copy of the GNU General Public License
19386 # along with GNU Libtool; see the file COPYING. If not, a copy
19387 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19388 # obtained by writing to the Free Software Foundation, Inc.,
19389 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19392 # The names of the tagged configurations supported by this script.
19393 available_tags="CXX "
19395 # ### BEGIN LIBTOOL CONFIG
19397 # Which release of libtool.m4 was used?
19398 macro_version=$macro_version
19399 macro_revision=$macro_revision
19401 # Whether or not to build shared libraries.
19402 build_libtool_libs=$enable_shared
19404 # Whether or not to build static libraries.
19405 build_old_libs=$enable_static
19407 # What type of objects to build.
19408 pic_mode=$pic_mode
19410 # Whether or not to optimize for fast installation.
19411 fast_install=$enable_fast_install
19413 # Shell to use when invoking shell scripts.
19414 SHELL=$lt_SHELL
19416 # An echo program that protects backslashes.
19417 ECHO=$lt_ECHO
19419 # The host system.
19420 host_alias=$host_alias
19421 host=$host
19422 host_os=$host_os
19424 # The build system.
19425 build_alias=$build_alias
19426 build=$build
19427 build_os=$build_os
19429 # A sed program that does not truncate output.
19430 SED=$lt_SED
19432 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19433 Xsed="\$SED -e 1s/^X//"
19435 # A grep program that handles long lines.
19436 GREP=$lt_GREP
19438 # An ERE matcher.
19439 EGREP=$lt_EGREP
19441 # A literal string matcher.
19442 FGREP=$lt_FGREP
19444 # A BSD- or MS-compatible name lister.
19445 NM=$lt_NM
19447 # Whether we need soft or hard links.
19448 LN_S=$lt_LN_S
19450 # What is the maximum length of a command?
19451 max_cmd_len=$max_cmd_len
19453 # Object file suffix (normally "o").
19454 objext=$ac_objext
19456 # Executable file suffix (normally "").
19457 exeext=$exeext
19459 # whether the shell understands "unset".
19460 lt_unset=$lt_unset
19462 # turn spaces into newlines.
19463 SP2NL=$lt_lt_SP2NL
19465 # turn newlines into spaces.
19466 NL2SP=$lt_lt_NL2SP
19468 # An object symbol dumper.
19469 OBJDUMP=$lt_OBJDUMP
19471 # Method to check whether dependent libraries are shared objects.
19472 deplibs_check_method=$lt_deplibs_check_method
19474 # Command to use when deplibs_check_method == "file_magic".
19475 file_magic_cmd=$lt_file_magic_cmd
19477 # The archiver.
19478 AR=$lt_AR
19479 AR_FLAGS=$lt_AR_FLAGS
19481 # A symbol stripping program.
19482 STRIP=$lt_STRIP
19484 # Commands used to install an old-style archive.
19485 RANLIB=$lt_RANLIB
19486 old_postinstall_cmds=$lt_old_postinstall_cmds
19487 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19489 # Whether to use a lock for old archive extraction.
19490 lock_old_archive_extraction=$lock_old_archive_extraction
19492 # A C compiler.
19493 LTCC=$lt_CC
19495 # LTCC compiler flags.
19496 LTCFLAGS=$lt_CFLAGS
19498 # Take the output of nm and produce a listing of raw symbols and C names.
19499 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19501 # Transform the output of nm in a proper C declaration.
19502 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19504 # Transform the output of nm in a C name address pair.
19505 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19507 # Transform the output of nm in a C name address pair when lib prefix is needed.
19508 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19510 # The name of the directory that contains temporary libtool files.
19511 objdir=$objdir
19513 # Used to examine libraries when file_magic_cmd begins with "file".
19514 MAGIC_CMD=$MAGIC_CMD
19516 # Must we lock files when doing compilation?
19517 need_locks=$lt_need_locks
19519 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19520 DSYMUTIL=$lt_DSYMUTIL
19522 # Tool to change global to local symbols on Mac OS X.
19523 NMEDIT=$lt_NMEDIT
19525 # Tool to manipulate fat objects and archives on Mac OS X.
19526 LIPO=$lt_LIPO
19528 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19529 OTOOL=$lt_OTOOL
19531 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19532 OTOOL64=$lt_OTOOL64
19534 # Old archive suffix (normally "a").
19535 libext=$libext
19537 # Shared library suffix (normally ".so").
19538 shrext_cmds=$lt_shrext_cmds
19540 # The commands to extract the exported symbol list from a shared archive.
19541 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19543 # Variables whose values should be saved in libtool wrapper scripts and
19544 # restored at link time.
19545 variables_saved_for_relink=$lt_variables_saved_for_relink
19547 # Do we need the "lib" prefix for modules?
19548 need_lib_prefix=$need_lib_prefix
19550 # Do we need a version for libraries?
19551 need_version=$need_version
19553 # Library versioning type.
19554 version_type=$version_type
19556 # Shared library runtime path variable.
19557 runpath_var=$runpath_var
19559 # Shared library path variable.
19560 shlibpath_var=$shlibpath_var
19562 # Is shlibpath searched before the hard-coded library search path?
19563 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19565 # Format of library name prefix.
19566 libname_spec=$lt_libname_spec
19568 # List of archive names. First name is the real one, the rest are links.
19569 # The last name is the one that the linker finds with -lNAME
19570 library_names_spec=$lt_library_names_spec
19572 # The coded name of the library, if different from the real name.
19573 soname_spec=$lt_soname_spec
19575 # Permission mode override for installation of shared libraries.
19576 install_override_mode=$lt_install_override_mode
19578 # Command to use after installation of a shared archive.
19579 postinstall_cmds=$lt_postinstall_cmds
19581 # Command to use after uninstallation of a shared archive.
19582 postuninstall_cmds=$lt_postuninstall_cmds
19584 # Commands used to finish a libtool library installation in a directory.
19585 finish_cmds=$lt_finish_cmds
19587 # As "finish_cmds", except a single script fragment to be evaled but
19588 # not shown.
19589 finish_eval=$lt_finish_eval
19591 # Whether we should hardcode library paths into libraries.
19592 hardcode_into_libs=$hardcode_into_libs
19594 # Compile-time system search path for libraries.
19595 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19597 # Run-time system search path for libraries.
19598 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19600 # Whether dlopen is supported.
19601 dlopen_support=$enable_dlopen
19603 # Whether dlopen of programs is supported.
19604 dlopen_self=$enable_dlopen_self
19606 # Whether dlopen of statically linked programs is supported.
19607 dlopen_self_static=$enable_dlopen_self_static
19609 # Commands to strip libraries.
19610 old_striplib=$lt_old_striplib
19611 striplib=$lt_striplib
19614 # The linker used to build libraries.
19615 LD=$lt_LD
19617 # How to create reloadable object files.
19618 reload_flag=$lt_reload_flag
19619 reload_cmds=$lt_reload_cmds
19621 # Commands used to build an old-style archive.
19622 old_archive_cmds=$lt_old_archive_cmds
19624 # A language specific compiler.
19625 CC=$lt_compiler
19627 # Is the compiler the GNU compiler?
19628 with_gcc=$GCC
19630 # Compiler flag to turn off builtin functions.
19631 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19633 # How to pass a linker flag through the compiler.
19634 wl=$lt_lt_prog_compiler_wl
19636 # Additional compiler flags for building library objects.
19637 pic_flag=$lt_lt_prog_compiler_pic
19639 # Compiler flag to prevent dynamic linking.
19640 link_static_flag=$lt_lt_prog_compiler_static
19642 # Does compiler simultaneously support -c and -o options?
19643 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19645 # Whether or not to add -lc for building shared libraries.
19646 build_libtool_need_lc=$archive_cmds_need_lc
19648 # Whether or not to disallow shared libs when runtime libs are static.
19649 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19651 # Compiler flag to allow reflexive dlopens.
19652 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19654 # Compiler flag to generate shared objects directly from archives.
19655 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19657 # Whether the compiler copes with passing no objects directly.
19658 compiler_needs_object=$lt_compiler_needs_object
19660 # Create an old-style archive from a shared archive.
19661 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19663 # Create a temporary old-style archive to link instead of a shared archive.
19664 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19666 # Commands used to build a shared archive.
19667 archive_cmds=$lt_archive_cmds
19668 archive_expsym_cmds=$lt_archive_expsym_cmds
19670 # Commands used to build a loadable module if different from building
19671 # a shared archive.
19672 module_cmds=$lt_module_cmds
19673 module_expsym_cmds=$lt_module_expsym_cmds
19675 # Whether we are building with GNU ld or not.
19676 with_gnu_ld=$lt_with_gnu_ld
19678 # Flag that allows shared libraries with undefined symbols to be built.
19679 allow_undefined_flag=$lt_allow_undefined_flag
19681 # Flag that enforces no undefined symbols.
19682 no_undefined_flag=$lt_no_undefined_flag
19684 # Flag to hardcode \$libdir into a binary during linking.
19685 # This must work even if \$libdir does not exist
19686 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19688 # If ld is used when linking, flag to hardcode \$libdir into a binary
19689 # during linking. This must work even if \$libdir does not exist.
19690 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
19692 # Whether we need a single "-rpath" flag with a separated argument.
19693 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19695 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19696 # DIR into the resulting binary.
19697 hardcode_direct=$hardcode_direct
19699 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19700 # DIR into the resulting binary and the resulting library dependency is
19701 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19702 # library is relocated.
19703 hardcode_direct_absolute=$hardcode_direct_absolute
19705 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19706 # into the resulting binary.
19707 hardcode_minus_L=$hardcode_minus_L
19709 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19710 # into the resulting binary.
19711 hardcode_shlibpath_var=$hardcode_shlibpath_var
19713 # Set to "yes" if building a shared library automatically hardcodes DIR
19714 # into the library and all subsequent libraries and executables linked
19715 # against it.
19716 hardcode_automatic=$hardcode_automatic
19718 # Set to yes if linker adds runtime paths of dependent libraries
19719 # to runtime path list.
19720 inherit_rpath=$inherit_rpath
19722 # Whether libtool must link a program against all its dependency libraries.
19723 link_all_deplibs=$link_all_deplibs
19725 # Fix the shell variable \$srcfile for the compiler.
19726 fix_srcfile_path=$lt_fix_srcfile_path
19728 # Set to "yes" if exported symbols are required.
19729 always_export_symbols=$always_export_symbols
19731 # The commands to list exported symbols.
19732 export_symbols_cmds=$lt_export_symbols_cmds
19734 # Symbols that should not be listed in the preloaded symbols.
19735 exclude_expsyms=$lt_exclude_expsyms
19737 # Symbols that must always be exported.
19738 include_expsyms=$lt_include_expsyms
19740 # Commands necessary for linking programs (against libraries) with templates.
19741 prelink_cmds=$lt_prelink_cmds
19743 # Specify filename containing input files.
19744 file_list_spec=$lt_file_list_spec
19746 # How to hardcode a shared library path into an executable.
19747 hardcode_action=$hardcode_action
19749 # The directories searched by this compiler when creating a shared library.
19750 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19752 # Dependencies to place before and after the objects being linked to
19753 # create a shared library.
19754 predep_objects=$lt_predep_objects
19755 postdep_objects=$lt_postdep_objects
19756 predeps=$lt_predeps
19757 postdeps=$lt_postdeps
19759 # The library search path used internally by the compiler when linking
19760 # a shared library.
19761 compiler_lib_search_path=$lt_compiler_lib_search_path
19763 # ### END LIBTOOL CONFIG
19765 _LT_EOF
19767 case $host_os in
19768 aix3*)
19769 cat <<\_LT_EOF >> "$cfgfile"
19770 # AIX sometimes has problems with the GCC collect2 program. For some
19771 # reason, if we set the COLLECT_NAMES environment variable, the problems
19772 # vanish in a puff of smoke.
19773 if test "X${COLLECT_NAMES+set}" != Xset; then
19774 COLLECT_NAMES=
19775 export COLLECT_NAMES
19777 _LT_EOF
19779 esac
19782 ltmain="$ac_aux_dir/ltmain.sh"
19785 # We use sed instead of cat because bash on DJGPP gets confused if
19786 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19787 # text mode, it properly converts lines to CR/LF. This bash problem
19788 # is reportedly fixed, but why not run on old versions too?
19789 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
19790 || (rm -f "$cfgfile"; exit 1)
19792 case $xsi_shell in
19793 yes)
19794 cat << \_LT_EOF >> "$cfgfile"
19796 # func_dirname file append nondir_replacement
19797 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19798 # otherwise set result to NONDIR_REPLACEMENT.
19799 func_dirname ()
19801 case ${1} in
19802 */*) func_dirname_result="${1%/*}${2}" ;;
19803 * ) func_dirname_result="${3}" ;;
19804 esac
19807 # func_basename file
19808 func_basename ()
19810 func_basename_result="${1##*/}"
19813 # func_dirname_and_basename file append nondir_replacement
19814 # perform func_basename and func_dirname in a single function
19815 # call:
19816 # dirname: Compute the dirname of FILE. If nonempty,
19817 # add APPEND to the result, otherwise set result
19818 # to NONDIR_REPLACEMENT.
19819 # value returned in "$func_dirname_result"
19820 # basename: Compute filename of FILE.
19821 # value retuned in "$func_basename_result"
19822 # Implementation must be kept synchronized with func_dirname
19823 # and func_basename. For efficiency, we do not delegate to
19824 # those functions but instead duplicate the functionality here.
19825 func_dirname_and_basename ()
19827 case ${1} in
19828 */*) func_dirname_result="${1%/*}${2}" ;;
19829 * ) func_dirname_result="${3}" ;;
19830 esac
19831 func_basename_result="${1##*/}"
19834 # func_stripname prefix suffix name
19835 # strip PREFIX and SUFFIX off of NAME.
19836 # PREFIX and SUFFIX must not contain globbing or regex special
19837 # characters, hashes, percent signs, but SUFFIX may contain a leading
19838 # dot (in which case that matches only a dot).
19839 func_stripname ()
19841 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
19842 # positional parameters, so assign one to ordinary parameter first.
19843 func_stripname_result=${3}
19844 func_stripname_result=${func_stripname_result#"${1}"}
19845 func_stripname_result=${func_stripname_result%"${2}"}
19848 # func_opt_split
19849 func_opt_split ()
19851 func_opt_split_opt=${1%%=*}
19852 func_opt_split_arg=${1#*=}
19855 # func_lo2o object
19856 func_lo2o ()
19858 case ${1} in
19859 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
19860 *) func_lo2o_result=${1} ;;
19861 esac
19864 # func_xform libobj-or-source
19865 func_xform ()
19867 func_xform_result=${1%.*}.lo
19870 # func_arith arithmetic-term...
19871 func_arith ()
19873 func_arith_result=$(( $* ))
19876 # func_len string
19877 # STRING may not start with a hyphen.
19878 func_len ()
19880 func_len_result=${#1}
19883 _LT_EOF
19885 *) # Bourne compatible functions.
19886 cat << \_LT_EOF >> "$cfgfile"
19888 # func_dirname file append nondir_replacement
19889 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19890 # otherwise set result to NONDIR_REPLACEMENT.
19891 func_dirname ()
19893 # Extract subdirectory from the argument.
19894 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
19895 if test "X$func_dirname_result" = "X${1}"; then
19896 func_dirname_result="${3}"
19897 else
19898 func_dirname_result="$func_dirname_result${2}"
19902 # func_basename file
19903 func_basename ()
19905 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
19909 # func_stripname prefix suffix name
19910 # strip PREFIX and SUFFIX off of NAME.
19911 # PREFIX and SUFFIX must not contain globbing or regex special
19912 # characters, hashes, percent signs, but SUFFIX may contain a leading
19913 # dot (in which case that matches only a dot).
19914 # func_strip_suffix prefix name
19915 func_stripname ()
19917 case ${2} in
19918 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
19919 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
19920 esac
19923 # sed scripts:
19924 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
19925 my_sed_long_arg='1s/^-[^=]*=//'
19927 # func_opt_split
19928 func_opt_split ()
19930 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
19931 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
19934 # func_lo2o object
19935 func_lo2o ()
19937 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
19940 # func_xform libobj-or-source
19941 func_xform ()
19943 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
19946 # func_arith arithmetic-term...
19947 func_arith ()
19949 func_arith_result=`expr "$@"`
19952 # func_len string
19953 # STRING may not start with a hyphen.
19954 func_len ()
19956 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
19959 _LT_EOF
19960 esac
19962 case $lt_shell_append in
19963 yes)
19964 cat << \_LT_EOF >> "$cfgfile"
19966 # func_append var value
19967 # Append VALUE to the end of shell variable VAR.
19968 func_append ()
19970 eval "$1+=\$2"
19972 _LT_EOF
19975 cat << \_LT_EOF >> "$cfgfile"
19977 # func_append var value
19978 # Append VALUE to the end of shell variable VAR.
19979 func_append ()
19981 eval "$1=\$$1\$2"
19984 _LT_EOF
19986 esac
19989 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
19990 || (rm -f "$cfgfile"; exit 1)
19992 mv -f "$cfgfile" "$ofile" ||
19993 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19994 chmod +x "$ofile"
19997 cat <<_LT_EOF >> "$ofile"
19999 # ### BEGIN LIBTOOL TAG CONFIG: CXX
20001 # The linker used to build libraries.
20002 LD=$lt_LD_CXX
20004 # How to create reloadable object files.
20005 reload_flag=$lt_reload_flag_CXX
20006 reload_cmds=$lt_reload_cmds_CXX
20008 # Commands used to build an old-style archive.
20009 old_archive_cmds=$lt_old_archive_cmds_CXX
20011 # A language specific compiler.
20012 CC=$lt_compiler_CXX
20014 # Is the compiler the GNU compiler?
20015 with_gcc=$GCC_CXX
20017 # Compiler flag to turn off builtin functions.
20018 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20020 # How to pass a linker flag through the compiler.
20021 wl=$lt_lt_prog_compiler_wl_CXX
20023 # Additional compiler flags for building library objects.
20024 pic_flag=$lt_lt_prog_compiler_pic_CXX
20026 # Compiler flag to prevent dynamic linking.
20027 link_static_flag=$lt_lt_prog_compiler_static_CXX
20029 # Does compiler simultaneously support -c and -o options?
20030 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20032 # Whether or not to add -lc for building shared libraries.
20033 build_libtool_need_lc=$archive_cmds_need_lc_CXX
20035 # Whether or not to disallow shared libs when runtime libs are static.
20036 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20038 # Compiler flag to allow reflexive dlopens.
20039 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20041 # Compiler flag to generate shared objects directly from archives.
20042 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20044 # Whether the compiler copes with passing no objects directly.
20045 compiler_needs_object=$lt_compiler_needs_object_CXX
20047 # Create an old-style archive from a shared archive.
20048 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20050 # Create a temporary old-style archive to link instead of a shared archive.
20051 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20053 # Commands used to build a shared archive.
20054 archive_cmds=$lt_archive_cmds_CXX
20055 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20057 # Commands used to build a loadable module if different from building
20058 # a shared archive.
20059 module_cmds=$lt_module_cmds_CXX
20060 module_expsym_cmds=$lt_module_expsym_cmds_CXX
20062 # Whether we are building with GNU ld or not.
20063 with_gnu_ld=$lt_with_gnu_ld_CXX
20065 # Flag that allows shared libraries with undefined symbols to be built.
20066 allow_undefined_flag=$lt_allow_undefined_flag_CXX
20068 # Flag that enforces no undefined symbols.
20069 no_undefined_flag=$lt_no_undefined_flag_CXX
20071 # Flag to hardcode \$libdir into a binary during linking.
20072 # This must work even if \$libdir does not exist
20073 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20075 # If ld is used when linking, flag to hardcode \$libdir into a binary
20076 # during linking. This must work even if \$libdir does not exist.
20077 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
20079 # Whether we need a single "-rpath" flag with a separated argument.
20080 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20082 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20083 # DIR into the resulting binary.
20084 hardcode_direct=$hardcode_direct_CXX
20086 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20087 # DIR into the resulting binary and the resulting library dependency is
20088 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20089 # library is relocated.
20090 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
20092 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20093 # into the resulting binary.
20094 hardcode_minus_L=$hardcode_minus_L_CXX
20096 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20097 # into the resulting binary.
20098 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20100 # Set to "yes" if building a shared library automatically hardcodes DIR
20101 # into the library and all subsequent libraries and executables linked
20102 # against it.
20103 hardcode_automatic=$hardcode_automatic_CXX
20105 # Set to yes if linker adds runtime paths of dependent libraries
20106 # to runtime path list.
20107 inherit_rpath=$inherit_rpath_CXX
20109 # Whether libtool must link a program against all its dependency libraries.
20110 link_all_deplibs=$link_all_deplibs_CXX
20112 # Fix the shell variable \$srcfile for the compiler.
20113 fix_srcfile_path=$lt_fix_srcfile_path_CXX
20115 # Set to "yes" if exported symbols are required.
20116 always_export_symbols=$always_export_symbols_CXX
20118 # The commands to list exported symbols.
20119 export_symbols_cmds=$lt_export_symbols_cmds_CXX
20121 # Symbols that should not be listed in the preloaded symbols.
20122 exclude_expsyms=$lt_exclude_expsyms_CXX
20124 # Symbols that must always be exported.
20125 include_expsyms=$lt_include_expsyms_CXX
20127 # Commands necessary for linking programs (against libraries) with templates.
20128 prelink_cmds=$lt_prelink_cmds_CXX
20130 # Specify filename containing input files.
20131 file_list_spec=$lt_file_list_spec_CXX
20133 # How to hardcode a shared library path into an executable.
20134 hardcode_action=$hardcode_action_CXX
20136 # The directories searched by this compiler when creating a shared library.
20137 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
20139 # Dependencies to place before and after the objects being linked to
20140 # create a shared library.
20141 predep_objects=$lt_predep_objects_CXX
20142 postdep_objects=$lt_postdep_objects_CXX
20143 predeps=$lt_predeps_CXX
20144 postdeps=$lt_postdeps_CXX
20146 # The library search path used internally by the compiler when linking
20147 # a shared library.
20148 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20150 # ### END LIBTOOL TAG CONFIG: CXX
20151 _LT_EOF
20154 "default-1":C)
20155 for ac_file in $CONFIG_FILES; do
20156 # Support "outfile[:infile[:infile...]]"
20157 case "$ac_file" in
20158 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
20159 esac
20160 # PO directories have a Makefile.in generated from Makefile.in.in.
20161 case "$ac_file" in */Makefile.in)
20162 # Adjust a relative srcdir.
20163 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
20164 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
20165 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
20166 # In autoconf-2.13 it is called $ac_given_srcdir.
20167 # In autoconf-2.50 it is called $srcdir.
20168 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
20169 case "$ac_given_srcdir" in
20170 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
20171 /*) top_srcdir="$ac_given_srcdir" ;;
20172 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
20173 esac
20174 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
20175 rm -f "$ac_dir/POTFILES"
20176 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
20177 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
20178 POMAKEFILEDEPS="POTFILES.in"
20179 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
20180 # on $ac_dir but don't depend on user-specified configuration
20181 # parameters.
20182 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
20183 # The LINGUAS file contains the set of available languages.
20184 if test -n "$OBSOLETE_ALL_LINGUAS"; then
20185 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.ac is obsolete" || echo "setting ALL_LINGUAS in configure.ac is obsolete"
20187 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
20188 # Hide the ALL_LINGUAS assigment from automake.
20189 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
20190 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
20191 else
20192 # The set of available languages was given in configure.ac.
20193 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
20195 case "$ac_given_srcdir" in
20196 .) srcdirpre= ;;
20197 *) srcdirpre='$(srcdir)/' ;;
20198 esac
20199 POFILES=
20200 GMOFILES=
20201 UPDATEPOFILES=
20202 DUMMYPOFILES=
20203 for lang in $ALL_LINGUAS; do
20204 POFILES="$POFILES $srcdirpre$lang.po"
20205 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
20206 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
20207 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
20208 done
20209 # CATALOGS depends on both $ac_dir and the user's LINGUAS
20210 # environment variable.
20211 INST_LINGUAS=
20212 if test -n "$ALL_LINGUAS"; then
20213 for presentlang in $ALL_LINGUAS; do
20214 useit=no
20215 if test "%UNSET%" != "$LINGUAS"; then
20216 desiredlanguages="$LINGUAS"
20217 else
20218 desiredlanguages="$ALL_LINGUAS"
20220 for desiredlang in $desiredlanguages; do
20221 # Use the presentlang catalog if desiredlang is
20222 # a. equal to presentlang, or
20223 # b. a variant of presentlang (because in this case,
20224 # presentlang can be used as a fallback for messages
20225 # which are not translated in the desiredlang catalog).
20226 case "$desiredlang" in
20227 "$presentlang"*) useit=yes;;
20228 esac
20229 done
20230 if test $useit = yes; then
20231 INST_LINGUAS="$INST_LINGUAS $presentlang"
20233 done
20235 CATALOGS=
20236 if test -n "$INST_LINGUAS"; then
20237 for lang in $INST_LINGUAS; do
20238 CATALOGS="$CATALOGS $lang.gmo"
20239 done
20241 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
20242 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"
20243 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
20244 if test -f "$f"; then
20245 case "$f" in
20246 *.orig | *.bak | *~) ;;
20247 *) cat "$f" >> "$ac_dir/Makefile" ;;
20248 esac
20250 done
20253 esac
20254 done ;;
20255 "default":C)
20256 case "$srcdir" in
20257 .) srcdirpre= ;;
20258 *) srcdirpre='$(srcdir)/' ;;
20259 esac
20260 POFILES=
20261 GMOFILES=
20262 for lang in dummy $OBSOLETE_ALL_LINGUAS; do
20263 if test $lang != dummy; then
20264 POFILES="$POFILES $srcdirpre$lang.po"
20265 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
20267 done
20268 sed -e '/^SRC-POTFILES =/r po/SRC-POTFILES' \
20269 -e '/^BLD-POTFILES =/r po/BLD-POTFILES' \
20270 -e "s,@POFILES@,$POFILES," \
20271 -e "s,@GMOFILES@,$GMOFILES," \
20272 po/Makefile.in > po/Makefile ;;
20274 esac
20275 done # for ac_tag
20278 as_fn_exit 0
20279 _ACEOF
20280 ac_clean_files=$ac_clean_files_save
20282 test $ac_write_fail = 0 ||
20283 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20286 # configure is writing to config.log, and then calls config.status.
20287 # config.status does its own redirection, appending to config.log.
20288 # Unfortunately, on DOS this fails, as config.log is still kept open
20289 # by configure, so config.status won't be able to write to it; its
20290 # output is simply discarded. So we exec the FD to /dev/null,
20291 # effectively closing config.log, so it can be properly (re)opened and
20292 # appended to by config.status. When coming back to configure, we
20293 # need to make the FD available again.
20294 if test "$no_create" != yes; then
20295 ac_cs_success=:
20296 ac_config_status_args=
20297 test "$silent" = yes &&
20298 ac_config_status_args="$ac_config_status_args --quiet"
20299 exec 5>/dev/null
20300 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20301 exec 5>>config.log
20302 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20303 # would make configure fail if this is the last instruction.
20304 $ac_cs_success || as_fn_exit 1
20306 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20307 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20308 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20313 touch config.status.tmp
20314 if touch --reference=config.status config.status.tmp > /dev/null 2>&1; then
20315 sed '/as_fn_exit 0/i \
20316 sed -e \"s/^\t\\\(\\\$(AM_V_CCLD)\\\)/\t+ \\\1/\" Makefile > Makefile.tmp \
20317 touch --reference=Makefile Makefile.tmp \
20318 mv Makefile.tmp Makefile \
20319 ' config.status > config.status.tmp
20320 touch --reference=config.status config.status.tmp
20321 mv config.status.tmp config.status
20322 chmod +x config.status
20323 sed -e "s/^\t\(\$(AM_V_CCLD)\)/\t+ \1/" Makefile > Makefile.tmp
20324 touch --reference=Makefile Makefile.tmp
20325 mv Makefile.tmp Makefile
20326 else
20327 rm -f config.status.tmp