Fix xfail for 32-bit hppa*-*-* in gcc.dg/pr84877.c
[official-gcc.git] / libitm / configure
blob9ba7fb03a578cd2c6cd99a1330ae79176c192be8
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for GNU TM Runtime Library 1.0.
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
200 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
201 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
202 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 PATH=/empty FPATH=/empty; export PATH FPATH
205 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
206 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
207 test \$(( 1 + 1 )) = 2 || 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='GNU TM Runtime Library'
589 PACKAGE_TARNAME='libitm'
590 PACKAGE_VERSION='1.0'
591 PACKAGE_STRING='GNU TM Runtime Library 1.0'
592 PACKAGE_BUGREPORT=''
593 PACKAGE_URL='http://www.gnu.org/software/libitm/'
595 # Factoring default headers for most tests.
596 ac_includes_default="\
597 #include <stdio.h>
598 #ifdef HAVE_SYS_TYPES_H
599 # include <sys/types.h>
600 #endif
601 #ifdef HAVE_SYS_STAT_H
602 # include <sys/stat.h>
603 #endif
604 #ifdef STDC_HEADERS
605 # include <stdlib.h>
606 # include <stddef.h>
607 #else
608 # ifdef HAVE_STDLIB_H
609 # include <stdlib.h>
610 # endif
611 #endif
612 #ifdef HAVE_STRING_H
613 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
614 # include <memory.h>
615 # endif
616 # include <string.h>
617 #endif
618 #ifdef HAVE_STRINGS_H
619 # include <strings.h>
620 #endif
621 #ifdef HAVE_INTTYPES_H
622 # include <inttypes.h>
623 #endif
624 #ifdef HAVE_STDINT_H
625 # include <stdint.h>
626 #endif
627 #ifdef HAVE_UNISTD_H
628 # include <unistd.h>
629 #endif"
631 ac_subst_vars='am__EXEEXT_FALSE
632 am__EXEEXT_TRUE
633 LTLIBOBJS
634 LIBOBJS
635 get_gcc_base_ver
636 ARCH_FUTEX_FALSE
637 ARCH_FUTEX_TRUE
638 ARCH_X86_AVX_FALSE
639 ARCH_X86_AVX_TRUE
640 ARCH_X86_FALSE
641 ARCH_X86_TRUE
642 ARCH_ARM_FALSE
643 ARCH_ARM_TRUE
644 link_itm
645 XLDFLAGS
646 XCFLAGS
647 config_path
648 LIBITM_BUILD_VERSIONED_SHLIB_SUN_FALSE
649 LIBITM_BUILD_VERSIONED_SHLIB_SUN_TRUE
650 LIBITM_BUILD_VERSIONED_SHLIB_GNU_FALSE
651 LIBITM_BUILD_VERSIONED_SHLIB_GNU_TRUE
652 LIBITM_BUILD_VERSIONED_SHLIB_FALSE
653 LIBITM_BUILD_VERSIONED_SHLIB_TRUE
654 OPT_LDFLAGS
655 SECTION_LDFLAGS
656 HAVE_HWCAP_FALSE
657 HAVE_HWCAP_TRUE
658 HWCAP_LDFLAGS
659 libtool_VERSION
660 MAINT
661 MAINTAINER_MODE_FALSE
662 MAINTAINER_MODE_TRUE
663 ENABLE_DARWIN_AT_RPATH_FALSE
664 ENABLE_DARWIN_AT_RPATH_TRUE
665 enable_static
666 enable_shared
667 CXXCPP
669 OTOOL64
670 OTOOL
671 LIPO
672 NMEDIT
673 DSYMUTIL
674 OBJDUMP
675 LN_S
676 ac_ct_DUMPBIN
677 DUMPBIN
679 FGREP
680 EGREP
681 GREP
683 LIBTOOL
684 BUILD_INFO_FALSE
685 BUILD_INFO_TRUE
686 RANLIB
689 am__fastdepCCAS_FALSE
690 am__fastdepCCAS_TRUE
691 CCASDEPMODE
692 CCASFLAGS
693 CCAS
694 am__fastdepCXX_FALSE
695 am__fastdepCXX_TRUE
696 CXXDEPMODE
697 ac_ct_CXX
698 CXXFLAGS
700 am__fastdepCC_FALSE
701 am__fastdepCC_TRUE
702 CCDEPMODE
703 am__nodep
704 AMDEPBACKSLASH
705 AMDEP_FALSE
706 AMDEP_TRUE
707 am__quote
708 am__include
709 DEPDIR
710 OBJEXT
711 EXEEXT
712 ac_ct_CC
713 CPPFLAGS
714 LDFLAGS
715 CFLAGS
717 toolexeclibdir
718 toolexecdir
719 multi_basedir
720 AM_BACKSLASH
721 AM_DEFAULT_VERBOSITY
722 AM_DEFAULT_V
723 AM_V
724 am__untar
725 am__tar
726 AMTAR
727 am__leading_dot
728 SET_MAKE
730 mkdir_p
731 MKDIR_P
732 INSTALL_STRIP_PROGRAM
733 STRIP
734 install_sh
735 MAKEINFO
736 AUTOHEADER
737 AUTOMAKE
738 AUTOCONF
739 ACLOCAL
740 VERSION
741 PACKAGE
742 CYGPATH_W
743 am__isrc
744 INSTALL_DATA
745 INSTALL_SCRIPT
746 INSTALL_PROGRAM
747 target_os
748 target_vendor
749 target_cpu
750 target
751 host_os
752 host_vendor
753 host_cpu
754 host
755 build_os
756 build_vendor
757 build_cpu
758 build
759 GENINSRC_FALSE
760 GENINSRC_TRUE
761 target_alias
762 host_alias
763 build_alias
764 LIBS
765 ECHO_T
766 ECHO_N
767 ECHO_C
768 DEFS
769 mandir
770 localedir
771 libdir
772 psdir
773 pdfdir
774 dvidir
775 htmldir
776 infodir
777 docdir
778 oldincludedir
779 includedir
780 localstatedir
781 sharedstatedir
782 sysconfdir
783 datadir
784 datarootdir
785 libexecdir
786 sbindir
787 bindir
788 program_transform_name
789 prefix
790 exec_prefix
791 PACKAGE_URL
792 PACKAGE_BUGREPORT
793 PACKAGE_STRING
794 PACKAGE_VERSION
795 PACKAGE_TARNAME
796 PACKAGE_NAME
797 PATH_SEPARATOR
798 SHELL'
799 ac_subst_files=''
800 ac_user_opts='
801 enable_option_checking
802 enable_version_specific_runtime_libs
803 enable_generated_files_in_srcdir
804 enable_silent_rules
805 enable_multilib
806 with_toolexeclibdir
807 enable_dependency_tracking
808 enable_shared
809 enable_static
810 with_pic
811 enable_fast_install
812 with_gnu_ld
813 enable_libtool_lock
814 enable_darwin_at_rpath
815 enable_maintainer_mode
816 enable_linux_futex
817 enable_tls
818 enable_symvers
819 enable_werror
820 enable_cet
821 with_gcc_major_version_only
823 ac_precious_vars='build_alias
824 host_alias
825 target_alias
827 CPPFLAGS
828 CXXCPP'
831 # Initialize some variables set by options.
832 ac_init_help=
833 ac_init_version=false
834 ac_unrecognized_opts=
835 ac_unrecognized_sep=
836 # The variables have the same names as the options, with
837 # dashes changed to underlines.
838 cache_file=/dev/null
839 exec_prefix=NONE
840 no_create=
841 no_recursion=
842 prefix=NONE
843 program_prefix=NONE
844 program_suffix=NONE
845 program_transform_name=s,x,x,
846 silent=
847 site=
848 srcdir=
849 verbose=
850 x_includes=NONE
851 x_libraries=NONE
853 # Installation directory options.
854 # These are left unexpanded so users can "make install exec_prefix=/foo"
855 # and all the variables that are supposed to be based on exec_prefix
856 # by default will actually change.
857 # Use braces instead of parens because sh, perl, etc. also accept them.
858 # (The list follows the same order as the GNU Coding Standards.)
859 bindir='${exec_prefix}/bin'
860 sbindir='${exec_prefix}/sbin'
861 libexecdir='${exec_prefix}/libexec'
862 datarootdir='${prefix}/share'
863 datadir='${datarootdir}'
864 sysconfdir='${prefix}/etc'
865 sharedstatedir='${prefix}/com'
866 localstatedir='${prefix}/var'
867 includedir='${prefix}/include'
868 oldincludedir='/usr/include'
869 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
870 infodir='${datarootdir}/info'
871 htmldir='${docdir}'
872 dvidir='${docdir}'
873 pdfdir='${docdir}'
874 psdir='${docdir}'
875 libdir='${exec_prefix}/lib'
876 localedir='${datarootdir}/locale'
877 mandir='${datarootdir}/man'
879 ac_prev=
880 ac_dashdash=
881 for ac_option
883 # If the previous option needs an argument, assign it.
884 if test -n "$ac_prev"; then
885 eval $ac_prev=\$ac_option
886 ac_prev=
887 continue
890 case $ac_option in
891 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
892 *=) ac_optarg= ;;
893 *) ac_optarg=yes ;;
894 esac
896 # Accept the important Cygnus configure options, so we can diagnose typos.
898 case $ac_dashdash$ac_option in
900 ac_dashdash=yes ;;
902 -bindir | --bindir | --bindi | --bind | --bin | --bi)
903 ac_prev=bindir ;;
904 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
905 bindir=$ac_optarg ;;
907 -build | --build | --buil | --bui | --bu)
908 ac_prev=build_alias ;;
909 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
910 build_alias=$ac_optarg ;;
912 -cache-file | --cache-file | --cache-fil | --cache-fi \
913 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
914 ac_prev=cache_file ;;
915 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
916 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
917 cache_file=$ac_optarg ;;
919 --config-cache | -C)
920 cache_file=config.cache ;;
922 -datadir | --datadir | --datadi | --datad)
923 ac_prev=datadir ;;
924 -datadir=* | --datadir=* | --datadi=* | --datad=*)
925 datadir=$ac_optarg ;;
927 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
928 | --dataroo | --dataro | --datar)
929 ac_prev=datarootdir ;;
930 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
931 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
932 datarootdir=$ac_optarg ;;
934 -disable-* | --disable-*)
935 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
936 # Reject names that are not valid shell variable names.
937 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
938 as_fn_error $? "invalid feature name: $ac_useropt"
939 ac_useropt_orig=$ac_useropt
940 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
941 case $ac_user_opts in
943 "enable_$ac_useropt"
944 "*) ;;
945 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
946 ac_unrecognized_sep=', ';;
947 esac
948 eval enable_$ac_useropt=no ;;
950 -docdir | --docdir | --docdi | --doc | --do)
951 ac_prev=docdir ;;
952 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
953 docdir=$ac_optarg ;;
955 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
956 ac_prev=dvidir ;;
957 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
958 dvidir=$ac_optarg ;;
960 -enable-* | --enable-*)
961 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
962 # Reject names that are not valid shell variable names.
963 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
964 as_fn_error $? "invalid feature name: $ac_useropt"
965 ac_useropt_orig=$ac_useropt
966 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
967 case $ac_user_opts in
969 "enable_$ac_useropt"
970 "*) ;;
971 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
972 ac_unrecognized_sep=', ';;
973 esac
974 eval enable_$ac_useropt=\$ac_optarg ;;
976 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
977 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
978 | --exec | --exe | --ex)
979 ac_prev=exec_prefix ;;
980 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
981 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
982 | --exec=* | --exe=* | --ex=*)
983 exec_prefix=$ac_optarg ;;
985 -gas | --gas | --ga | --g)
986 # Obsolete; use --with-gas.
987 with_gas=yes ;;
989 -help | --help | --hel | --he | -h)
990 ac_init_help=long ;;
991 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
992 ac_init_help=recursive ;;
993 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
994 ac_init_help=short ;;
996 -host | --host | --hos | --ho)
997 ac_prev=host_alias ;;
998 -host=* | --host=* | --hos=* | --ho=*)
999 host_alias=$ac_optarg ;;
1001 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1002 ac_prev=htmldir ;;
1003 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1004 | --ht=*)
1005 htmldir=$ac_optarg ;;
1007 -includedir | --includedir | --includedi | --included | --include \
1008 | --includ | --inclu | --incl | --inc)
1009 ac_prev=includedir ;;
1010 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1011 | --includ=* | --inclu=* | --incl=* | --inc=*)
1012 includedir=$ac_optarg ;;
1014 -infodir | --infodir | --infodi | --infod | --info | --inf)
1015 ac_prev=infodir ;;
1016 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1017 infodir=$ac_optarg ;;
1019 -libdir | --libdir | --libdi | --libd)
1020 ac_prev=libdir ;;
1021 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1022 libdir=$ac_optarg ;;
1024 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1025 | --libexe | --libex | --libe)
1026 ac_prev=libexecdir ;;
1027 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1028 | --libexe=* | --libex=* | --libe=*)
1029 libexecdir=$ac_optarg ;;
1031 -localedir | --localedir | --localedi | --localed | --locale)
1032 ac_prev=localedir ;;
1033 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1034 localedir=$ac_optarg ;;
1036 -localstatedir | --localstatedir | --localstatedi | --localstated \
1037 | --localstate | --localstat | --localsta | --localst | --locals)
1038 ac_prev=localstatedir ;;
1039 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1040 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1041 localstatedir=$ac_optarg ;;
1043 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1044 ac_prev=mandir ;;
1045 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1046 mandir=$ac_optarg ;;
1048 -nfp | --nfp | --nf)
1049 # Obsolete; use --without-fp.
1050 with_fp=no ;;
1052 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1053 | --no-cr | --no-c | -n)
1054 no_create=yes ;;
1056 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1057 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1058 no_recursion=yes ;;
1060 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1061 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1062 | --oldin | --oldi | --old | --ol | --o)
1063 ac_prev=oldincludedir ;;
1064 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1065 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1066 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1067 oldincludedir=$ac_optarg ;;
1069 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1070 ac_prev=prefix ;;
1071 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1072 prefix=$ac_optarg ;;
1074 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1075 | --program-pre | --program-pr | --program-p)
1076 ac_prev=program_prefix ;;
1077 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1078 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1079 program_prefix=$ac_optarg ;;
1081 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1082 | --program-suf | --program-su | --program-s)
1083 ac_prev=program_suffix ;;
1084 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1085 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1086 program_suffix=$ac_optarg ;;
1088 -program-transform-name | --program-transform-name \
1089 | --program-transform-nam | --program-transform-na \
1090 | --program-transform-n | --program-transform- \
1091 | --program-transform | --program-transfor \
1092 | --program-transfo | --program-transf \
1093 | --program-trans | --program-tran \
1094 | --progr-tra | --program-tr | --program-t)
1095 ac_prev=program_transform_name ;;
1096 -program-transform-name=* | --program-transform-name=* \
1097 | --program-transform-nam=* | --program-transform-na=* \
1098 | --program-transform-n=* | --program-transform-=* \
1099 | --program-transform=* | --program-transfor=* \
1100 | --program-transfo=* | --program-transf=* \
1101 | --program-trans=* | --program-tran=* \
1102 | --progr-tra=* | --program-tr=* | --program-t=*)
1103 program_transform_name=$ac_optarg ;;
1105 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1106 ac_prev=pdfdir ;;
1107 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1108 pdfdir=$ac_optarg ;;
1110 -psdir | --psdir | --psdi | --psd | --ps)
1111 ac_prev=psdir ;;
1112 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1113 psdir=$ac_optarg ;;
1115 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1116 | -silent | --silent | --silen | --sile | --sil)
1117 silent=yes ;;
1119 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1120 ac_prev=sbindir ;;
1121 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1122 | --sbi=* | --sb=*)
1123 sbindir=$ac_optarg ;;
1125 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1126 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1127 | --sharedst | --shareds | --shared | --share | --shar \
1128 | --sha | --sh)
1129 ac_prev=sharedstatedir ;;
1130 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1131 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1132 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1133 | --sha=* | --sh=*)
1134 sharedstatedir=$ac_optarg ;;
1136 -site | --site | --sit)
1137 ac_prev=site ;;
1138 -site=* | --site=* | --sit=*)
1139 site=$ac_optarg ;;
1141 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1142 ac_prev=srcdir ;;
1143 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1144 srcdir=$ac_optarg ;;
1146 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1147 | --syscon | --sysco | --sysc | --sys | --sy)
1148 ac_prev=sysconfdir ;;
1149 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1150 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1151 sysconfdir=$ac_optarg ;;
1153 -target | --target | --targe | --targ | --tar | --ta | --t)
1154 ac_prev=target_alias ;;
1155 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1156 target_alias=$ac_optarg ;;
1158 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1159 verbose=yes ;;
1161 -version | --version | --versio | --versi | --vers | -V)
1162 ac_init_version=: ;;
1164 -with-* | --with-*)
1165 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1166 # Reject names that are not valid shell variable names.
1167 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1168 as_fn_error $? "invalid package name: $ac_useropt"
1169 ac_useropt_orig=$ac_useropt
1170 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1171 case $ac_user_opts in
1173 "with_$ac_useropt"
1174 "*) ;;
1175 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1176 ac_unrecognized_sep=', ';;
1177 esac
1178 eval with_$ac_useropt=\$ac_optarg ;;
1180 -without-* | --without-*)
1181 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1182 # Reject names that are not valid shell variable names.
1183 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1184 as_fn_error $? "invalid package name: $ac_useropt"
1185 ac_useropt_orig=$ac_useropt
1186 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1187 case $ac_user_opts in
1189 "with_$ac_useropt"
1190 "*) ;;
1191 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1192 ac_unrecognized_sep=', ';;
1193 esac
1194 eval with_$ac_useropt=no ;;
1196 --x)
1197 # Obsolete; use --with-x.
1198 with_x=yes ;;
1200 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1201 | --x-incl | --x-inc | --x-in | --x-i)
1202 ac_prev=x_includes ;;
1203 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1204 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1205 x_includes=$ac_optarg ;;
1207 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1208 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1209 ac_prev=x_libraries ;;
1210 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1211 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1212 x_libraries=$ac_optarg ;;
1214 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1215 Try \`$0 --help' for more information"
1218 *=*)
1219 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1220 # Reject names that are not valid shell variable names.
1221 case $ac_envvar in #(
1222 '' | [0-9]* | *[!_$as_cr_alnum]* )
1223 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1224 esac
1225 eval $ac_envvar=\$ac_optarg
1226 export $ac_envvar ;;
1229 # FIXME: should be removed in autoconf 3.0.
1230 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1231 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1232 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1233 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1236 esac
1237 done
1239 if test -n "$ac_prev"; then
1240 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1241 as_fn_error $? "missing argument to $ac_option"
1244 if test -n "$ac_unrecognized_opts"; then
1245 case $enable_option_checking in
1246 no) ;;
1247 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1248 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1249 esac
1252 # Check all directory arguments for consistency.
1253 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1254 datadir sysconfdir sharedstatedir localstatedir includedir \
1255 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1256 libdir localedir mandir
1258 eval ac_val=\$$ac_var
1259 # Remove trailing slashes.
1260 case $ac_val in
1261 */ )
1262 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1263 eval $ac_var=\$ac_val;;
1264 esac
1265 # Be sure to have absolute directory names.
1266 case $ac_val in
1267 [\\/$]* | ?:[\\/]* ) continue;;
1268 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1269 esac
1270 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1271 done
1273 # There might be people who depend on the old broken behavior: `$host'
1274 # used to hold the argument of --host etc.
1275 # FIXME: To remove some day.
1276 build=$build_alias
1277 host=$host_alias
1278 target=$target_alias
1280 # FIXME: To remove some day.
1281 if test "x$host_alias" != x; then
1282 if test "x$build_alias" = x; then
1283 cross_compiling=maybe
1284 elif test "x$build_alias" != "x$host_alias"; then
1285 cross_compiling=yes
1289 ac_tool_prefix=
1290 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1292 test "$silent" = yes && exec 6>/dev/null
1295 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1296 ac_ls_di=`ls -di .` &&
1297 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1298 as_fn_error $? "working directory cannot be determined"
1299 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1300 as_fn_error $? "pwd does not report name of working directory"
1303 # Find the source files, if location was not specified.
1304 if test -z "$srcdir"; then
1305 ac_srcdir_defaulted=yes
1306 # Try the directory containing this script, then the parent directory.
1307 ac_confdir=`$as_dirname -- "$as_myself" ||
1308 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1309 X"$as_myself" : 'X\(//\)[^/]' \| \
1310 X"$as_myself" : 'X\(//\)$' \| \
1311 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1312 $as_echo X"$as_myself" |
1313 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1314 s//\1/
1317 /^X\(\/\/\)[^/].*/{
1318 s//\1/
1321 /^X\(\/\/\)$/{
1322 s//\1/
1325 /^X\(\/\).*/{
1326 s//\1/
1329 s/.*/./; q'`
1330 srcdir=$ac_confdir
1331 if test ! -r "$srcdir/$ac_unique_file"; then
1332 srcdir=..
1334 else
1335 ac_srcdir_defaulted=no
1337 if test ! -r "$srcdir/$ac_unique_file"; then
1338 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1339 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1341 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1342 ac_abs_confdir=`(
1343 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1344 pwd)`
1345 # When building in place, set srcdir=.
1346 if test "$ac_abs_confdir" = "$ac_pwd"; then
1347 srcdir=.
1349 # Remove unnecessary trailing slashes from srcdir.
1350 # Double slashes in file names in object file debugging info
1351 # mess up M-x gdb in Emacs.
1352 case $srcdir in
1353 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1354 esac
1355 for ac_var in $ac_precious_vars; do
1356 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1357 eval ac_env_${ac_var}_value=\$${ac_var}
1358 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1359 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1360 done
1363 # Report the --help message.
1365 if test "$ac_init_help" = "long"; then
1366 # Omit some internal or obsolete options to make the list less imposing.
1367 # This message is too long to be a string in the A/UX 3.1 sh.
1368 cat <<_ACEOF
1369 \`configure' configures GNU TM Runtime Library 1.0 to adapt to many kinds of systems.
1371 Usage: $0 [OPTION]... [VAR=VALUE]...
1373 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1374 VAR=VALUE. See below for descriptions of some of the useful variables.
1376 Defaults for the options are specified in brackets.
1378 Configuration:
1379 -h, --help display this help and exit
1380 --help=short display options specific to this package
1381 --help=recursive display the short help of all the included packages
1382 -V, --version display version information and exit
1383 -q, --quiet, --silent do not print \`checking ...' messages
1384 --cache-file=FILE cache test results in FILE [disabled]
1385 -C, --config-cache alias for \`--cache-file=config.cache'
1386 -n, --no-create do not create output files
1387 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1389 Installation directories:
1390 --prefix=PREFIX install architecture-independent files in PREFIX
1391 [$ac_default_prefix]
1392 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1393 [PREFIX]
1395 By default, \`make install' will install all the files in
1396 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1397 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1398 for instance \`--prefix=\$HOME'.
1400 For better control, use the options below.
1402 Fine tuning of the installation directories:
1403 --bindir=DIR user executables [EPREFIX/bin]
1404 --sbindir=DIR system admin executables [EPREFIX/sbin]
1405 --libexecdir=DIR program executables [EPREFIX/libexec]
1406 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1407 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1408 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1409 --libdir=DIR object code libraries [EPREFIX/lib]
1410 --includedir=DIR C header files [PREFIX/include]
1411 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1412 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1413 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1414 --infodir=DIR info documentation [DATAROOTDIR/info]
1415 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1416 --mandir=DIR man documentation [DATAROOTDIR/man]
1417 --docdir=DIR documentation root [DATAROOTDIR/doc/libitm]
1418 --htmldir=DIR html documentation [DOCDIR]
1419 --dvidir=DIR dvi documentation [DOCDIR]
1420 --pdfdir=DIR pdf documentation [DOCDIR]
1421 --psdir=DIR ps documentation [DOCDIR]
1422 _ACEOF
1424 cat <<\_ACEOF
1426 Program names:
1427 --program-prefix=PREFIX prepend PREFIX to installed program names
1428 --program-suffix=SUFFIX append SUFFIX to installed program names
1429 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1431 System types:
1432 --build=BUILD configure for building on BUILD [guessed]
1433 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1434 --target=TARGET configure for building compilers for TARGET [HOST]
1435 _ACEOF
1438 if test -n "$ac_init_help"; then
1439 case $ac_init_help in
1440 short | recursive ) echo "Configuration of GNU TM Runtime Library 1.0:";;
1441 esac
1442 cat <<\_ACEOF
1444 Optional Features:
1445 --disable-option-checking ignore unrecognized --enable/--with options
1446 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1447 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1448 --enable-version-specific-runtime-libs
1449 Specify that runtime libraries should be installed
1450 in a compiler-specific directory [default=no]
1451 --enable-generated-files-in-srcdir
1452 put copies of generated files in source dir intended
1453 for creating source tarballs for users without
1454 texinfo bison or flex. [default=no]
1455 --enable-silent-rules less verbose build output (undo: "make V=1")
1456 --disable-silent-rules verbose build output (undo: "make V=0")
1457 --enable-multilib build many library versions (default)
1458 --enable-dependency-tracking
1459 do not reject slow dependency extractors
1460 --disable-dependency-tracking
1461 speeds up one-time build
1462 --enable-shared[=PKGS] build shared libraries [default=yes]
1463 --enable-static[=PKGS] build static libraries [default=yes]
1464 --enable-fast-install[=PKGS]
1465 optimize for fast installation [default=yes]
1466 --disable-libtool-lock avoid locking (might break parallel builds)
1467 --enable-darwin-at-rpath
1468 install libraries with @rpath/library-name, requires
1469 rpaths to be added to executables
1470 --enable-maintainer-mode
1471 enable make rules and dependencies not useful (and
1472 sometimes confusing) to the casual installer
1473 --enable-linux-futex use the Linux futex system call [default=default]
1474 --enable-tls Use thread-local storage [default=yes]
1475 --enable-symvers=STYLE enables symbol versioning of the shared library
1476 [default=yes]
1477 --disable-werror disable building with -Werror
1478 --enable-cet enable Intel CET in target libraries [default=auto]
1480 Optional Packages:
1481 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1482 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1483 --with-toolexeclibdir=DIR
1484 install libraries built with a cross compiler within
1486 --with-pic try to use only PIC/non-PIC objects [default=use
1487 both]
1488 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1489 --with-gcc-major-version-only
1490 use only GCC major number in filesystem paths
1492 Some influential environment variables:
1493 CC C compiler command
1494 CFLAGS C compiler flags
1495 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1496 nonstandard directory <lib dir>
1497 LIBS libraries to pass to the linker, e.g. -l<library>
1498 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1499 you have headers in a nonstandard directory <include dir>
1500 CXX C++ compiler command
1501 CXXFLAGS C++ compiler flags
1502 CCAS assembler compiler command (defaults to CC)
1503 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1504 CPP C preprocessor
1505 CXXCPP C++ preprocessor
1507 Use these variables to override the choices made by `configure' or to help
1508 it to find libraries and programs with nonstandard names/locations.
1510 Report bugs to the package provider.
1511 GNU TM Runtime Library home page: <http://www.gnu.org/software/libitm/>.
1512 General help using GNU software: <http://www.gnu.org/gethelp/>.
1513 _ACEOF
1514 ac_status=$?
1517 if test "$ac_init_help" = "recursive"; then
1518 # If there are subdirs, report their specific --help.
1519 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1520 test -d "$ac_dir" ||
1521 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1522 continue
1523 ac_builddir=.
1525 case "$ac_dir" in
1526 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1528 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1529 # A ".." for each directory in $ac_dir_suffix.
1530 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1531 case $ac_top_builddir_sub in
1532 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1533 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1534 esac ;;
1535 esac
1536 ac_abs_top_builddir=$ac_pwd
1537 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1538 # for backward compatibility:
1539 ac_top_builddir=$ac_top_build_prefix
1541 case $srcdir in
1542 .) # We are building in place.
1543 ac_srcdir=.
1544 ac_top_srcdir=$ac_top_builddir_sub
1545 ac_abs_top_srcdir=$ac_pwd ;;
1546 [\\/]* | ?:[\\/]* ) # Absolute name.
1547 ac_srcdir=$srcdir$ac_dir_suffix;
1548 ac_top_srcdir=$srcdir
1549 ac_abs_top_srcdir=$srcdir ;;
1550 *) # Relative name.
1551 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1552 ac_top_srcdir=$ac_top_build_prefix$srcdir
1553 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1554 esac
1555 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1557 cd "$ac_dir" || { ac_status=$?; continue; }
1558 # Check for guested configure.
1559 if test -f "$ac_srcdir/configure.gnu"; then
1560 echo &&
1561 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1562 elif test -f "$ac_srcdir/configure"; then
1563 echo &&
1564 $SHELL "$ac_srcdir/configure" --help=recursive
1565 else
1566 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1567 fi || ac_status=$?
1568 cd "$ac_pwd" || { ac_status=$?; break; }
1569 done
1572 test -n "$ac_init_help" && exit $ac_status
1573 if $ac_init_version; then
1574 cat <<\_ACEOF
1575 GNU TM Runtime Library configure 1.0
1576 generated by GNU Autoconf 2.69
1578 Copyright (C) 2012 Free Software Foundation, Inc.
1579 This configure script is free software; the Free Software Foundation
1580 gives unlimited permission to copy, distribute and modify it.
1581 _ACEOF
1582 exit
1585 ## ------------------------ ##
1586 ## Autoconf initialization. ##
1587 ## ------------------------ ##
1589 # ac_fn_c_try_compile LINENO
1590 # --------------------------
1591 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1592 ac_fn_c_try_compile ()
1594 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1595 rm -f conftest.$ac_objext
1596 if { { ac_try="$ac_compile"
1597 case "(($ac_try" in
1598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1599 *) ac_try_echo=$ac_try;;
1600 esac
1601 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1602 $as_echo "$ac_try_echo"; } >&5
1603 (eval "$ac_compile") 2>conftest.err
1604 ac_status=$?
1605 if test -s conftest.err; then
1606 grep -v '^ *+' conftest.err >conftest.er1
1607 cat conftest.er1 >&5
1608 mv -f conftest.er1 conftest.err
1610 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1611 test $ac_status = 0; } && {
1612 test -z "$ac_c_werror_flag" ||
1613 test ! -s conftest.err
1614 } && test -s conftest.$ac_objext; then :
1615 ac_retval=0
1616 else
1617 $as_echo "$as_me: failed program was:" >&5
1618 sed 's/^/| /' conftest.$ac_ext >&5
1620 ac_retval=1
1622 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1623 as_fn_set_status $ac_retval
1625 } # ac_fn_c_try_compile
1627 # ac_fn_cxx_try_compile LINENO
1628 # ----------------------------
1629 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1630 ac_fn_cxx_try_compile ()
1632 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1633 rm -f conftest.$ac_objext
1634 if { { ac_try="$ac_compile"
1635 case "(($ac_try" in
1636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1637 *) ac_try_echo=$ac_try;;
1638 esac
1639 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1640 $as_echo "$ac_try_echo"; } >&5
1641 (eval "$ac_compile") 2>conftest.err
1642 ac_status=$?
1643 if test -s conftest.err; then
1644 grep -v '^ *+' conftest.err >conftest.er1
1645 cat conftest.er1 >&5
1646 mv -f conftest.er1 conftest.err
1648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1649 test $ac_status = 0; } && {
1650 test -z "$ac_cxx_werror_flag" ||
1651 test ! -s conftest.err
1652 } && test -s conftest.$ac_objext; then :
1653 ac_retval=0
1654 else
1655 $as_echo "$as_me: failed program was:" >&5
1656 sed 's/^/| /' conftest.$ac_ext >&5
1658 ac_retval=1
1660 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1661 as_fn_set_status $ac_retval
1663 } # ac_fn_cxx_try_compile
1665 # ac_fn_c_try_link LINENO
1666 # -----------------------
1667 # Try to link conftest.$ac_ext, and return whether this succeeded.
1668 ac_fn_c_try_link ()
1670 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1671 rm -f conftest.$ac_objext conftest$ac_exeext
1672 if { { ac_try="$ac_link"
1673 case "(($ac_try" in
1674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1675 *) ac_try_echo=$ac_try;;
1676 esac
1677 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1678 $as_echo "$ac_try_echo"; } >&5
1679 (eval "$ac_link") 2>conftest.err
1680 ac_status=$?
1681 if test -s conftest.err; then
1682 grep -v '^ *+' conftest.err >conftest.er1
1683 cat conftest.er1 >&5
1684 mv -f conftest.er1 conftest.err
1686 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1687 test $ac_status = 0; } && {
1688 test -z "$ac_c_werror_flag" ||
1689 test ! -s conftest.err
1690 } && test -s conftest$ac_exeext && {
1691 test "$cross_compiling" = yes ||
1692 test -x conftest$ac_exeext
1693 }; then :
1694 ac_retval=0
1695 else
1696 $as_echo "$as_me: failed program was:" >&5
1697 sed 's/^/| /' conftest.$ac_ext >&5
1699 ac_retval=1
1701 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1702 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1703 # interfere with the next link command; also delete a directory that is
1704 # left behind by Apple's compiler. We do this before executing the actions.
1705 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1706 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1707 as_fn_set_status $ac_retval
1709 } # ac_fn_c_try_link
1711 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1712 # -------------------------------------------------------
1713 # Tests whether HEADER exists and can be compiled using the include files in
1714 # INCLUDES, setting the cache variable VAR accordingly.
1715 ac_fn_c_check_header_compile ()
1717 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1719 $as_echo_n "checking for $2... " >&6; }
1720 if eval \${$3+:} false; then :
1721 $as_echo_n "(cached) " >&6
1722 else
1723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1724 /* end confdefs.h. */
1726 #include <$2>
1727 _ACEOF
1728 if ac_fn_c_try_compile "$LINENO"; then :
1729 eval "$3=yes"
1730 else
1731 eval "$3=no"
1733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1735 eval ac_res=\$$3
1736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1737 $as_echo "$ac_res" >&6; }
1738 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1740 } # ac_fn_c_check_header_compile
1742 # ac_fn_c_try_cpp LINENO
1743 # ----------------------
1744 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1745 ac_fn_c_try_cpp ()
1747 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1748 if { { ac_try="$ac_cpp conftest.$ac_ext"
1749 case "(($ac_try" in
1750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1751 *) ac_try_echo=$ac_try;;
1752 esac
1753 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1754 $as_echo "$ac_try_echo"; } >&5
1755 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1756 ac_status=$?
1757 if test -s conftest.err; then
1758 grep -v '^ *+' conftest.err >conftest.er1
1759 cat conftest.er1 >&5
1760 mv -f conftest.er1 conftest.err
1762 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1763 test $ac_status = 0; } > conftest.i && {
1764 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1765 test ! -s conftest.err
1766 }; then :
1767 ac_retval=0
1768 else
1769 $as_echo "$as_me: failed program was:" >&5
1770 sed 's/^/| /' conftest.$ac_ext >&5
1772 ac_retval=1
1774 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1775 as_fn_set_status $ac_retval
1777 } # ac_fn_c_try_cpp
1779 # ac_fn_c_try_run LINENO
1780 # ----------------------
1781 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1782 # that executables *can* be run.
1783 ac_fn_c_try_run ()
1785 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1786 if { { ac_try="$ac_link"
1787 case "(($ac_try" in
1788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1789 *) ac_try_echo=$ac_try;;
1790 esac
1791 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1792 $as_echo "$ac_try_echo"; } >&5
1793 (eval "$ac_link") 2>&5
1794 ac_status=$?
1795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1796 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1797 { { case "(($ac_try" in
1798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1799 *) ac_try_echo=$ac_try;;
1800 esac
1801 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1802 $as_echo "$ac_try_echo"; } >&5
1803 (eval "$ac_try") 2>&5
1804 ac_status=$?
1805 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1806 test $ac_status = 0; }; }; then :
1807 ac_retval=0
1808 else
1809 $as_echo "$as_me: program exited with status $ac_status" >&5
1810 $as_echo "$as_me: failed program was:" >&5
1811 sed 's/^/| /' conftest.$ac_ext >&5
1813 ac_retval=$ac_status
1815 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1816 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1817 as_fn_set_status $ac_retval
1819 } # ac_fn_c_try_run
1821 # ac_fn_c_check_func LINENO FUNC VAR
1822 # ----------------------------------
1823 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1824 ac_fn_c_check_func ()
1826 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1828 $as_echo_n "checking for $2... " >&6; }
1829 if eval \${$3+:} false; then :
1830 $as_echo_n "(cached) " >&6
1831 else
1832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1833 /* end confdefs.h. */
1834 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1835 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1836 #define $2 innocuous_$2
1838 /* System header to define __stub macros and hopefully few prototypes,
1839 which can conflict with char $2 (); below.
1840 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1841 <limits.h> exists even on freestanding compilers. */
1843 #ifdef __STDC__
1844 # include <limits.h>
1845 #else
1846 # include <assert.h>
1847 #endif
1849 #undef $2
1851 /* Override any GCC internal prototype to avoid an error.
1852 Use char because int might match the return type of a GCC
1853 builtin and then its argument prototype would still apply. */
1854 #ifdef __cplusplus
1855 extern "C"
1856 #endif
1857 char $2 ();
1858 /* The GNU C library defines this for functions which it implements
1859 to always fail with ENOSYS. Some functions are actually named
1860 something starting with __ and the normal name is an alias. */
1861 #if defined __stub_$2 || defined __stub___$2
1862 choke me
1863 #endif
1866 main ()
1868 return $2 ();
1870 return 0;
1872 _ACEOF
1873 if ac_fn_c_try_link "$LINENO"; then :
1874 eval "$3=yes"
1875 else
1876 eval "$3=no"
1878 rm -f core conftest.err conftest.$ac_objext \
1879 conftest$ac_exeext conftest.$ac_ext
1881 eval ac_res=\$$3
1882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1883 $as_echo "$ac_res" >&6; }
1884 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1886 } # ac_fn_c_check_func
1888 # ac_fn_cxx_try_cpp LINENO
1889 # ------------------------
1890 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1891 ac_fn_cxx_try_cpp ()
1893 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1894 if { { ac_try="$ac_cpp conftest.$ac_ext"
1895 case "(($ac_try" in
1896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1897 *) ac_try_echo=$ac_try;;
1898 esac
1899 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1900 $as_echo "$ac_try_echo"; } >&5
1901 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1902 ac_status=$?
1903 if test -s conftest.err; then
1904 grep -v '^ *+' conftest.err >conftest.er1
1905 cat conftest.er1 >&5
1906 mv -f conftest.er1 conftest.err
1908 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1909 test $ac_status = 0; } > conftest.i && {
1910 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1911 test ! -s conftest.err
1912 }; then :
1913 ac_retval=0
1914 else
1915 $as_echo "$as_me: failed program was:" >&5
1916 sed 's/^/| /' conftest.$ac_ext >&5
1918 ac_retval=1
1920 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1921 as_fn_set_status $ac_retval
1923 } # ac_fn_cxx_try_cpp
1925 # ac_fn_cxx_try_link LINENO
1926 # -------------------------
1927 # Try to link conftest.$ac_ext, and return whether this succeeded.
1928 ac_fn_cxx_try_link ()
1930 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1931 rm -f conftest.$ac_objext conftest$ac_exeext
1932 if { { ac_try="$ac_link"
1933 case "(($ac_try" in
1934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1935 *) ac_try_echo=$ac_try;;
1936 esac
1937 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1938 $as_echo "$ac_try_echo"; } >&5
1939 (eval "$ac_link") 2>conftest.err
1940 ac_status=$?
1941 if test -s conftest.err; then
1942 grep -v '^ *+' conftest.err >conftest.er1
1943 cat conftest.er1 >&5
1944 mv -f conftest.er1 conftest.err
1946 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1947 test $ac_status = 0; } && {
1948 test -z "$ac_cxx_werror_flag" ||
1949 test ! -s conftest.err
1950 } && test -s conftest$ac_exeext && {
1951 test "$cross_compiling" = yes ||
1952 test -x conftest$ac_exeext
1953 }; then :
1954 ac_retval=0
1955 else
1956 $as_echo "$as_me: failed program was:" >&5
1957 sed 's/^/| /' conftest.$ac_ext >&5
1959 ac_retval=1
1961 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1962 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1963 # interfere with the next link command; also delete a directory that is
1964 # left behind by Apple's compiler. We do this before executing the actions.
1965 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1966 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1967 as_fn_set_status $ac_retval
1969 } # ac_fn_cxx_try_link
1971 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1972 # -------------------------------------------------------
1973 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1974 # the include files in INCLUDES and setting the cache variable VAR
1975 # accordingly.
1976 ac_fn_c_check_header_mongrel ()
1978 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1979 if eval \${$3+:} false; then :
1980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1981 $as_echo_n "checking for $2... " >&6; }
1982 if eval \${$3+:} false; then :
1983 $as_echo_n "(cached) " >&6
1985 eval ac_res=\$$3
1986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1987 $as_echo "$ac_res" >&6; }
1988 else
1989 # Is the header compilable?
1990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1991 $as_echo_n "checking $2 usability... " >&6; }
1992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1993 /* end confdefs.h. */
1995 #include <$2>
1996 _ACEOF
1997 if ac_fn_c_try_compile "$LINENO"; then :
1998 ac_header_compiler=yes
1999 else
2000 ac_header_compiler=no
2002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2004 $as_echo "$ac_header_compiler" >&6; }
2006 # Is the header present?
2007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2008 $as_echo_n "checking $2 presence... " >&6; }
2009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2010 /* end confdefs.h. */
2011 #include <$2>
2012 _ACEOF
2013 if ac_fn_c_try_cpp "$LINENO"; then :
2014 ac_header_preproc=yes
2015 else
2016 ac_header_preproc=no
2018 rm -f conftest.err conftest.i conftest.$ac_ext
2019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2020 $as_echo "$ac_header_preproc" >&6; }
2022 # So? What about this header?
2023 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2024 yes:no: )
2025 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2026 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2027 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2028 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2030 no:yes:* )
2031 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2032 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2033 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2034 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2035 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2036 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2037 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2038 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2039 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2040 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2042 esac
2043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2044 $as_echo_n "checking for $2... " >&6; }
2045 if eval \${$3+:} false; then :
2046 $as_echo_n "(cached) " >&6
2047 else
2048 eval "$3=\$ac_header_compiler"
2050 eval ac_res=\$$3
2051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2052 $as_echo "$ac_res" >&6; }
2054 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2056 } # ac_fn_c_check_header_mongrel
2058 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2059 # -------------------------------------------
2060 # Tests whether TYPE exists after having included INCLUDES, setting cache
2061 # variable VAR accordingly.
2062 ac_fn_c_check_type ()
2064 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2066 $as_echo_n "checking for $2... " >&6; }
2067 if eval \${$3+:} false; then :
2068 $as_echo_n "(cached) " >&6
2069 else
2070 eval "$3=no"
2071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2072 /* end confdefs.h. */
2075 main ()
2077 if (sizeof ($2))
2078 return 0;
2080 return 0;
2082 _ACEOF
2083 if ac_fn_c_try_compile "$LINENO"; then :
2084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2085 /* end confdefs.h. */
2088 main ()
2090 if (sizeof (($2)))
2091 return 0;
2093 return 0;
2095 _ACEOF
2096 if ac_fn_c_try_compile "$LINENO"; then :
2098 else
2099 eval "$3=yes"
2101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2105 eval ac_res=\$$3
2106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2107 $as_echo "$ac_res" >&6; }
2108 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2110 } # ac_fn_c_check_type
2112 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2113 # --------------------------------------------
2114 # Tries to find the compile-time value of EXPR in a program that includes
2115 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2116 # computed
2117 ac_fn_c_compute_int ()
2119 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2120 if test "$cross_compiling" = yes; then
2121 # Depending upon the size, compute the lo and hi bounds.
2122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2123 /* end confdefs.h. */
2126 main ()
2128 static int test_array [1 - 2 * !(($2) >= 0)];
2129 test_array [0] = 0;
2130 return test_array [0];
2133 return 0;
2135 _ACEOF
2136 if ac_fn_c_try_compile "$LINENO"; then :
2137 ac_lo=0 ac_mid=0
2138 while :; do
2139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2140 /* end confdefs.h. */
2143 main ()
2145 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2146 test_array [0] = 0;
2147 return test_array [0];
2150 return 0;
2152 _ACEOF
2153 if ac_fn_c_try_compile "$LINENO"; then :
2154 ac_hi=$ac_mid; break
2155 else
2156 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2157 if test $ac_lo -le $ac_mid; then
2158 ac_lo= ac_hi=
2159 break
2161 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2164 done
2165 else
2166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2167 /* end confdefs.h. */
2170 main ()
2172 static int test_array [1 - 2 * !(($2) < 0)];
2173 test_array [0] = 0;
2174 return test_array [0];
2177 return 0;
2179 _ACEOF
2180 if ac_fn_c_try_compile "$LINENO"; then :
2181 ac_hi=-1 ac_mid=-1
2182 while :; do
2183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2184 /* end confdefs.h. */
2187 main ()
2189 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2190 test_array [0] = 0;
2191 return test_array [0];
2194 return 0;
2196 _ACEOF
2197 if ac_fn_c_try_compile "$LINENO"; then :
2198 ac_lo=$ac_mid; break
2199 else
2200 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2201 if test $ac_mid -le $ac_hi; then
2202 ac_lo= ac_hi=
2203 break
2205 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2208 done
2209 else
2210 ac_lo= ac_hi=
2212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2215 # Binary search between lo and hi bounds.
2216 while test "x$ac_lo" != "x$ac_hi"; do
2217 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
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_hi=$ac_mid
2234 else
2235 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2238 done
2239 case $ac_lo in #((
2240 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2241 '') ac_retval=1 ;;
2242 esac
2243 else
2244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2245 /* end confdefs.h. */
2247 static long int longval () { return $2; }
2248 static unsigned long int ulongval () { return $2; }
2249 #include <stdio.h>
2250 #include <stdlib.h>
2252 main ()
2255 FILE *f = fopen ("conftest.val", "w");
2256 if (! f)
2257 return 1;
2258 if (($2) < 0)
2260 long int i = longval ();
2261 if (i != ($2))
2262 return 1;
2263 fprintf (f, "%ld", i);
2265 else
2267 unsigned long int i = ulongval ();
2268 if (i != ($2))
2269 return 1;
2270 fprintf (f, "%lu", i);
2272 /* Do not output a trailing newline, as this causes \r\n confusion
2273 on some platforms. */
2274 return ferror (f) || fclose (f) != 0;
2277 return 0;
2279 _ACEOF
2280 if ac_fn_c_try_run "$LINENO"; then :
2281 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2282 else
2283 ac_retval=1
2285 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2286 conftest.$ac_objext conftest.beam conftest.$ac_ext
2287 rm -f conftest.val
2290 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2291 as_fn_set_status $ac_retval
2293 } # ac_fn_c_compute_int
2295 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2296 # ---------------------------------------------
2297 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2298 # accordingly.
2299 ac_fn_c_check_decl ()
2301 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2302 as_decl_name=`echo $2|sed 's/ *(.*//'`
2303 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2305 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2306 if eval \${$3+:} false; then :
2307 $as_echo_n "(cached) " >&6
2308 else
2309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2310 /* end confdefs.h. */
2313 main ()
2315 #ifndef $as_decl_name
2316 #ifdef __cplusplus
2317 (void) $as_decl_use;
2318 #else
2319 (void) $as_decl_name;
2320 #endif
2321 #endif
2324 return 0;
2326 _ACEOF
2327 if ac_fn_c_try_compile "$LINENO"; then :
2328 eval "$3=yes"
2329 else
2330 eval "$3=no"
2332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2334 eval ac_res=\$$3
2335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2336 $as_echo "$ac_res" >&6; }
2337 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2339 } # ac_fn_c_check_decl
2340 cat >config.log <<_ACEOF
2341 This file contains any messages produced by compilers while
2342 running configure, to aid debugging if configure makes a mistake.
2344 It was created by GNU TM Runtime Library $as_me 1.0, which was
2345 generated by GNU Autoconf 2.69. Invocation command line was
2347 $ $0 $@
2349 _ACEOF
2350 exec 5>>config.log
2352 cat <<_ASUNAME
2353 ## --------- ##
2354 ## Platform. ##
2355 ## --------- ##
2357 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2358 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2359 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2360 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2361 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2363 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2364 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2366 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2367 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2368 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2369 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2370 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2371 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2372 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2374 _ASUNAME
2376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2377 for as_dir in $PATH
2379 IFS=$as_save_IFS
2380 test -z "$as_dir" && as_dir=.
2381 $as_echo "PATH: $as_dir"
2382 done
2383 IFS=$as_save_IFS
2385 } >&5
2387 cat >&5 <<_ACEOF
2390 ## ----------- ##
2391 ## Core tests. ##
2392 ## ----------- ##
2394 _ACEOF
2397 # Keep a trace of the command line.
2398 # Strip out --no-create and --no-recursion so they do not pile up.
2399 # Strip out --silent because we don't want to record it for future runs.
2400 # Also quote any args containing shell meta-characters.
2401 # Make two passes to allow for proper duplicate-argument suppression.
2402 ac_configure_args=
2403 ac_configure_args0=
2404 ac_configure_args1=
2405 ac_must_keep_next=false
2406 for ac_pass in 1 2
2408 for ac_arg
2410 case $ac_arg in
2411 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2412 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2413 | -silent | --silent | --silen | --sile | --sil)
2414 continue ;;
2415 *\'*)
2416 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2417 esac
2418 case $ac_pass in
2419 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2421 as_fn_append ac_configure_args1 " '$ac_arg'"
2422 if test $ac_must_keep_next = true; then
2423 ac_must_keep_next=false # Got value, back to normal.
2424 else
2425 case $ac_arg in
2426 *=* | --config-cache | -C | -disable-* | --disable-* \
2427 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2428 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2429 | -with-* | --with-* | -without-* | --without-* | --x)
2430 case "$ac_configure_args0 " in
2431 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2432 esac
2434 -* ) ac_must_keep_next=true ;;
2435 esac
2437 as_fn_append ac_configure_args " '$ac_arg'"
2439 esac
2440 done
2441 done
2442 { ac_configure_args0=; unset ac_configure_args0;}
2443 { ac_configure_args1=; unset ac_configure_args1;}
2445 # When interrupted or exit'd, cleanup temporary files, and complete
2446 # config.log. We remove comments because anyway the quotes in there
2447 # would cause problems or look ugly.
2448 # WARNING: Use '\'' to represent an apostrophe within the trap.
2449 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2450 trap 'exit_status=$?
2451 # Save into config.log some information that might help in debugging.
2453 echo
2455 $as_echo "## ---------------- ##
2456 ## Cache variables. ##
2457 ## ---------------- ##"
2458 echo
2459 # The following way of writing the cache mishandles newlines in values,
2461 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2462 eval ac_val=\$$ac_var
2463 case $ac_val in #(
2464 *${as_nl}*)
2465 case $ac_var in #(
2466 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2467 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2468 esac
2469 case $ac_var in #(
2470 _ | IFS | as_nl) ;; #(
2471 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2472 *) { eval $ac_var=; unset $ac_var;} ;;
2473 esac ;;
2474 esac
2475 done
2476 (set) 2>&1 |
2477 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2478 *${as_nl}ac_space=\ *)
2479 sed -n \
2480 "s/'\''/'\''\\\\'\'''\''/g;
2481 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2482 ;; #(
2484 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2486 esac |
2487 sort
2489 echo
2491 $as_echo "## ----------------- ##
2492 ## Output variables. ##
2493 ## ----------------- ##"
2494 echo
2495 for ac_var in $ac_subst_vars
2497 eval ac_val=\$$ac_var
2498 case $ac_val in
2499 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2500 esac
2501 $as_echo "$ac_var='\''$ac_val'\''"
2502 done | sort
2503 echo
2505 if test -n "$ac_subst_files"; then
2506 $as_echo "## ------------------- ##
2507 ## File substitutions. ##
2508 ## ------------------- ##"
2509 echo
2510 for ac_var in $ac_subst_files
2512 eval ac_val=\$$ac_var
2513 case $ac_val in
2514 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2515 esac
2516 $as_echo "$ac_var='\''$ac_val'\''"
2517 done | sort
2518 echo
2521 if test -s confdefs.h; then
2522 $as_echo "## ----------- ##
2523 ## confdefs.h. ##
2524 ## ----------- ##"
2525 echo
2526 cat confdefs.h
2527 echo
2529 test "$ac_signal" != 0 &&
2530 $as_echo "$as_me: caught signal $ac_signal"
2531 $as_echo "$as_me: exit $exit_status"
2532 } >&5
2533 rm -f core *.core core.conftest.* &&
2534 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2535 exit $exit_status
2537 for ac_signal in 1 2 13 15; do
2538 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2539 done
2540 ac_signal=0
2542 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2543 rm -f -r conftest* confdefs.h
2545 $as_echo "/* confdefs.h */" > confdefs.h
2547 # Predefined preprocessor variables.
2549 cat >>confdefs.h <<_ACEOF
2550 #define PACKAGE_NAME "$PACKAGE_NAME"
2551 _ACEOF
2553 cat >>confdefs.h <<_ACEOF
2554 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2555 _ACEOF
2557 cat >>confdefs.h <<_ACEOF
2558 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2559 _ACEOF
2561 cat >>confdefs.h <<_ACEOF
2562 #define PACKAGE_STRING "$PACKAGE_STRING"
2563 _ACEOF
2565 cat >>confdefs.h <<_ACEOF
2566 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2567 _ACEOF
2569 cat >>confdefs.h <<_ACEOF
2570 #define PACKAGE_URL "$PACKAGE_URL"
2571 _ACEOF
2574 # Let the site file select an alternate cache file if it wants to.
2575 # Prefer an explicitly selected file to automatically selected ones.
2576 ac_site_file1=NONE
2577 ac_site_file2=NONE
2578 if test -n "$CONFIG_SITE"; then
2579 # We do not want a PATH search for config.site.
2580 case $CONFIG_SITE in #((
2581 -*) ac_site_file1=./$CONFIG_SITE;;
2582 */*) ac_site_file1=$CONFIG_SITE;;
2583 *) ac_site_file1=./$CONFIG_SITE;;
2584 esac
2585 elif test "x$prefix" != xNONE; then
2586 ac_site_file1=$prefix/share/config.site
2587 ac_site_file2=$prefix/etc/config.site
2588 else
2589 ac_site_file1=$ac_default_prefix/share/config.site
2590 ac_site_file2=$ac_default_prefix/etc/config.site
2592 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2594 test "x$ac_site_file" = xNONE && continue
2595 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2596 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2597 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2598 sed 's/^/| /' "$ac_site_file" >&5
2599 . "$ac_site_file" \
2600 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2601 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2602 as_fn_error $? "failed to load site script $ac_site_file
2603 See \`config.log' for more details" "$LINENO" 5; }
2605 done
2607 if test -r "$cache_file"; then
2608 # Some versions of bash will fail to source /dev/null (special files
2609 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2610 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2611 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2612 $as_echo "$as_me: loading cache $cache_file" >&6;}
2613 case $cache_file in
2614 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2615 *) . "./$cache_file";;
2616 esac
2618 else
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2620 $as_echo "$as_me: creating cache $cache_file" >&6;}
2621 >$cache_file
2624 # Check that the precious variables saved in the cache have kept the same
2625 # value.
2626 ac_cache_corrupted=false
2627 for ac_var in $ac_precious_vars; do
2628 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2629 eval ac_new_set=\$ac_env_${ac_var}_set
2630 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2631 eval ac_new_val=\$ac_env_${ac_var}_value
2632 case $ac_old_set,$ac_new_set in
2633 set,)
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2635 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2636 ac_cache_corrupted=: ;;
2637 ,set)
2638 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2639 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2640 ac_cache_corrupted=: ;;
2641 ,);;
2643 if test "x$ac_old_val" != "x$ac_new_val"; then
2644 # differences in whitespace do not lead to failure.
2645 ac_old_val_w=`echo x $ac_old_val`
2646 ac_new_val_w=`echo x $ac_new_val`
2647 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2648 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2649 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2650 ac_cache_corrupted=:
2651 else
2652 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2653 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2654 eval $ac_var=\$ac_old_val
2656 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2657 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2658 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2659 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2660 fi;;
2661 esac
2662 # Pass precious variables to config.status.
2663 if test "$ac_new_set" = set; then
2664 case $ac_new_val in
2665 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2666 *) ac_arg=$ac_var=$ac_new_val ;;
2667 esac
2668 case " $ac_configure_args " in
2669 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2670 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2671 esac
2673 done
2674 if $ac_cache_corrupted; then
2675 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2676 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2677 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2678 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2679 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2681 ## -------------------- ##
2682 ## Main body of script. ##
2683 ## -------------------- ##
2685 ac_ext=c
2686 ac_cpp='$CPP $CPPFLAGS'
2687 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2688 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2689 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2695 ac_config_headers="$ac_config_headers config.h"
2698 # -------
2699 # Options
2700 # -------
2702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2703 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2704 # Check whether --enable-version-specific-runtime-libs was given.
2705 if test "${enable_version_specific_runtime_libs+set}" = set; then :
2706 enableval=$enable_version_specific_runtime_libs;
2707 case "$enableval" in
2708 yes|no) ;;
2709 *) as_fn_error $? "Unknown argument to enable/disable version-specific-runtime-libs" "$LINENO" 5 ;;
2710 esac
2712 else
2713 enable_version_specific_runtime_libs=no
2717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_version_specific_runtime_libs" >&5
2718 $as_echo "$enable_version_specific_runtime_libs" >&6; }
2720 # We would like our source tree to be readonly. However when releases or
2721 # pre-releases are generated, the flex/bison generated files as well as the
2722 # various formats of manuals need to be included along with the rest of the
2723 # sources. Therefore we have --enable-generated-files-in-srcdir to do
2724 # just that.
2725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-generated-files-in-srcdir" >&5
2726 $as_echo_n "checking for --enable-generated-files-in-srcdir... " >&6; }
2727 # Check whether --enable-generated-files-in-srcdir was given.
2728 if test "${enable_generated_files_in_srcdir+set}" = set; then :
2729 enableval=$enable_generated_files_in_srcdir;
2730 case "$enableval" in
2731 yes|no) ;;
2732 *) as_fn_error $? "Unknown argument to enable/disable generated-files-in-srcdir" "$LINENO" 5 ;;
2733 esac
2735 else
2736 enable_generated_files_in_srcdir=no
2740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_generated_files_in_srcdir" >&5
2741 $as_echo "$enable_generated_files_in_srcdir" >&6; }
2742 if test "$enable_generated_files_in_srcdir" = yes; then
2743 GENINSRC_TRUE=
2744 GENINSRC_FALSE='#'
2745 else
2746 GENINSRC_TRUE='#'
2747 GENINSRC_FALSE=
2752 # -------
2753 # -------
2755 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
2757 # You will slowly go insane if you do not grok the following fact: when
2758 # building this library, the top-level /target/ becomes the library's /host/.
2760 # configure then causes --target to default to --host, exactly like any
2761 # other package using autoconf. Therefore, 'target' and 'host' will
2762 # always be the same. This makes sense both for native and cross compilers
2763 # just think about it for a little while. :-)
2765 # Also, if this library is being configured as part of a cross compiler, the
2766 # top-level configure script will pass the "real" host as $with_cross_host.
2768 # Do not delete or change the following two lines. For why, see
2769 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
2770 ac_aux_dir=
2771 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2772 if test -f "$ac_dir/install-sh"; then
2773 ac_aux_dir=$ac_dir
2774 ac_install_sh="$ac_aux_dir/install-sh -c"
2775 break
2776 elif test -f "$ac_dir/install.sh"; then
2777 ac_aux_dir=$ac_dir
2778 ac_install_sh="$ac_aux_dir/install.sh -c"
2779 break
2780 elif test -f "$ac_dir/shtool"; then
2781 ac_aux_dir=$ac_dir
2782 ac_install_sh="$ac_aux_dir/shtool install -c"
2783 break
2785 done
2786 if test -z "$ac_aux_dir"; then
2787 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2790 # These three variables are undocumented and unsupported,
2791 # and are intended to be withdrawn in a future Autoconf release.
2792 # They can cause serious problems if a builder's source tree is in a directory
2793 # whose full name contains unusual characters.
2794 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2795 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2796 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2799 # Make sure we can run config.sub.
2800 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2801 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2804 $as_echo_n "checking build system type... " >&6; }
2805 if ${ac_cv_build+:} false; then :
2806 $as_echo_n "(cached) " >&6
2807 else
2808 ac_build_alias=$build_alias
2809 test "x$ac_build_alias" = x &&
2810 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2811 test "x$ac_build_alias" = x &&
2812 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2813 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2814 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2818 $as_echo "$ac_cv_build" >&6; }
2819 case $ac_cv_build in
2820 *-*-*) ;;
2821 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2822 esac
2823 build=$ac_cv_build
2824 ac_save_IFS=$IFS; IFS='-'
2825 set x $ac_cv_build
2826 shift
2827 build_cpu=$1
2828 build_vendor=$2
2829 shift; shift
2830 # Remember, the first character of IFS is used to create $*,
2831 # except with old shells:
2832 build_os=$*
2833 IFS=$ac_save_IFS
2834 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2838 $as_echo_n "checking host system type... " >&6; }
2839 if ${ac_cv_host+:} false; then :
2840 $as_echo_n "(cached) " >&6
2841 else
2842 if test "x$host_alias" = x; then
2843 ac_cv_host=$ac_cv_build
2844 else
2845 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2846 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2851 $as_echo "$ac_cv_host" >&6; }
2852 case $ac_cv_host in
2853 *-*-*) ;;
2854 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2855 esac
2856 host=$ac_cv_host
2857 ac_save_IFS=$IFS; IFS='-'
2858 set x $ac_cv_host
2859 shift
2860 host_cpu=$1
2861 host_vendor=$2
2862 shift; shift
2863 # Remember, the first character of IFS is used to create $*,
2864 # except with old shells:
2865 host_os=$*
2866 IFS=$ac_save_IFS
2867 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2871 $as_echo_n "checking target system type... " >&6; }
2872 if ${ac_cv_target+:} false; then :
2873 $as_echo_n "(cached) " >&6
2874 else
2875 if test "x$target_alias" = x; then
2876 ac_cv_target=$ac_cv_host
2877 else
2878 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2879 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2884 $as_echo "$ac_cv_target" >&6; }
2885 case $ac_cv_target in
2886 *-*-*) ;;
2887 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2888 esac
2889 target=$ac_cv_target
2890 ac_save_IFS=$IFS; IFS='-'
2891 set x $ac_cv_target
2892 shift
2893 target_cpu=$1
2894 target_vendor=$2
2895 shift; shift
2896 # Remember, the first character of IFS is used to create $*,
2897 # except with old shells:
2898 target_os=$*
2899 IFS=$ac_save_IFS
2900 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2903 # The aliases save the names the user supplied, while $host etc.
2904 # will get canonicalized.
2905 test -n "$target_alias" &&
2906 test "$program_prefix$program_suffix$program_transform_name" = \
2907 NONENONEs,x,x, &&
2908 program_prefix=${target_alias}-
2910 target_alias=${target_alias-$host_alias}
2912 # Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
2913 # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
2914 # 1.9.0: minimum required version
2915 # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
2916 # of other PACKAGE_* variables will, however, and there's nothing
2917 # we can do about that; they come from AC_INIT).
2918 # no-dist: we don't want 'dist' and related rules.
2919 # foreign: we don't follow the normal rules for GNU packages (no COPYING
2920 # file in the top srcdir, etc, etc), so stop complaining.
2921 # -Wall: turns on all automake warnings...
2922 # -Wno-portability: ...except this one, since GNU make is required.
2923 # -Wno-override: ... and this one, since we do want this in testsuite.
2924 am__api_version='1.15'
2926 # Find a good install program. We prefer a C program (faster),
2927 # so one script is as good as another. But avoid the broken or
2928 # incompatible versions:
2929 # SysV /etc/install, /usr/sbin/install
2930 # SunOS /usr/etc/install
2931 # IRIX /sbin/install
2932 # AIX /bin/install
2933 # AmigaOS /C/install, which installs bootblocks on floppy discs
2934 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2935 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2936 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2937 # OS/2's system install, which has a completely different semantic
2938 # ./install, which can be erroneously created by make from ./install.sh.
2939 # Reject install programs that cannot install multiple files.
2940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2941 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2942 if test -z "$INSTALL"; then
2943 if ${ac_cv_path_install+:} false; then :
2944 $as_echo_n "(cached) " >&6
2945 else
2946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2947 for as_dir in $PATH
2949 IFS=$as_save_IFS
2950 test -z "$as_dir" && as_dir=.
2951 # Account for people who put trailing slashes in PATH elements.
2952 case $as_dir/ in #((
2953 ./ | .// | /[cC]/* | \
2954 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2955 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2956 /usr/ucb/* ) ;;
2958 # OSF1 and SCO ODT 3.0 have their own names for install.
2959 # Don't use installbsd from OSF since it installs stuff as root
2960 # by default.
2961 for ac_prog in ginstall scoinst install; do
2962 for ac_exec_ext in '' $ac_executable_extensions; do
2963 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2964 if test $ac_prog = install &&
2965 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2966 # AIX install. It has an incompatible calling convention.
2968 elif test $ac_prog = install &&
2969 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2970 # program-specific install script used by HP pwplus--don't use.
2972 else
2973 rm -rf conftest.one conftest.two conftest.dir
2974 echo one > conftest.one
2975 echo two > conftest.two
2976 mkdir conftest.dir
2977 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2978 test -s conftest.one && test -s conftest.two &&
2979 test -s conftest.dir/conftest.one &&
2980 test -s conftest.dir/conftest.two
2981 then
2982 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2983 break 3
2987 done
2988 done
2990 esac
2992 done
2993 IFS=$as_save_IFS
2995 rm -rf conftest.one conftest.two conftest.dir
2998 if test "${ac_cv_path_install+set}" = set; then
2999 INSTALL=$ac_cv_path_install
3000 else
3001 # As a last resort, use the slow shell script. Don't cache a
3002 # value for INSTALL within a source directory, because that will
3003 # break other packages using the cache if that directory is
3004 # removed, or if the value is a relative name.
3005 INSTALL=$ac_install_sh
3008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3009 $as_echo "$INSTALL" >&6; }
3011 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3012 # It thinks the first close brace ends the variable substitution.
3013 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3015 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3017 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3020 $as_echo_n "checking whether build environment is sane... " >&6; }
3021 # Reject unsafe characters in $srcdir or the absolute working directory
3022 # name. Accept space and tab only in the latter.
3023 am_lf='
3025 case `pwd` in
3026 *[\\\"\#\$\&\'\`$am_lf]*)
3027 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3028 esac
3029 case $srcdir in
3030 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3031 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3032 esac
3034 # Do 'set' in a subshell so we don't clobber the current shell's
3035 # arguments. Must try -L first in case configure is actually a
3036 # symlink; some systems play weird games with the mod time of symlinks
3037 # (eg FreeBSD returns the mod time of the symlink's containing
3038 # directory).
3039 if (
3040 am_has_slept=no
3041 for am_try in 1 2; do
3042 echo "timestamp, slept: $am_has_slept" > conftest.file
3043 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3044 if test "$*" = "X"; then
3045 # -L didn't work.
3046 set X `ls -t "$srcdir/configure" conftest.file`
3048 if test "$*" != "X $srcdir/configure conftest.file" \
3049 && test "$*" != "X conftest.file $srcdir/configure"; then
3051 # If neither matched, then we have a broken ls. This can happen
3052 # if, for instance, CONFIG_SHELL is bash and it inherits a
3053 # broken ls alias from the environment. This has actually
3054 # happened. Such a system could not be considered "sane".
3055 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3056 alias in your environment" "$LINENO" 5
3058 if test "$2" = conftest.file || test $am_try -eq 2; then
3059 break
3061 # Just in case.
3062 sleep 1
3063 am_has_slept=yes
3064 done
3065 test "$2" = conftest.file
3067 then
3068 # Ok.
3070 else
3071 as_fn_error $? "newly created file is older than distributed files!
3072 Check your system clock" "$LINENO" 5
3074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3075 $as_echo "yes" >&6; }
3076 # If we didn't sleep, we still need to ensure time stamps of config.status and
3077 # generated files are strictly newer.
3078 am_sleep_pid=
3079 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3080 ( sleep 1 ) &
3081 am_sleep_pid=$!
3084 rm -f conftest.file
3086 test "$program_prefix" != NONE &&
3087 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3088 # Use a double $ so make ignores it.
3089 test "$program_suffix" != NONE &&
3090 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3091 # Double any \ or $.
3092 # By default was `s,x,x', remove it if useless.
3093 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3094 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3096 # Expand $ac_aux_dir to an absolute path.
3097 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3099 if test x"${MISSING+set}" != xset; then
3100 case $am_aux_dir in
3101 *\ * | *\ *)
3102 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3104 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3105 esac
3107 # Use eval to expand $SHELL
3108 if eval "$MISSING --is-lightweight"; then
3109 am_missing_run="$MISSING "
3110 else
3111 am_missing_run=
3112 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3113 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3116 if test x"${install_sh+set}" != xset; then
3117 case $am_aux_dir in
3118 *\ * | *\ *)
3119 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3121 install_sh="\${SHELL} $am_aux_dir/install-sh"
3122 esac
3125 # Installed binaries are usually stripped using 'strip' when the user
3126 # run "make install-strip". However 'strip' might not be the right
3127 # tool to use in cross-compilation environments, therefore Automake
3128 # will honor the 'STRIP' environment variable to overrule this program.
3129 if test "$cross_compiling" != no; then
3130 if test -n "$ac_tool_prefix"; then
3131 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3132 set dummy ${ac_tool_prefix}strip; ac_word=$2
3133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3134 $as_echo_n "checking for $ac_word... " >&6; }
3135 if ${ac_cv_prog_STRIP+:} false; then :
3136 $as_echo_n "(cached) " >&6
3137 else
3138 if test -n "$STRIP"; then
3139 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3140 else
3141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3142 for as_dir in $PATH
3144 IFS=$as_save_IFS
3145 test -z "$as_dir" && as_dir=.
3146 for ac_exec_ext in '' $ac_executable_extensions; do
3147 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3148 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3150 break 2
3152 done
3153 done
3154 IFS=$as_save_IFS
3158 STRIP=$ac_cv_prog_STRIP
3159 if test -n "$STRIP"; then
3160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3161 $as_echo "$STRIP" >&6; }
3162 else
3163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3164 $as_echo "no" >&6; }
3169 if test -z "$ac_cv_prog_STRIP"; then
3170 ac_ct_STRIP=$STRIP
3171 # Extract the first word of "strip", so it can be a program name with args.
3172 set dummy strip; ac_word=$2
3173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3174 $as_echo_n "checking for $ac_word... " >&6; }
3175 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3176 $as_echo_n "(cached) " >&6
3177 else
3178 if test -n "$ac_ct_STRIP"; then
3179 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3180 else
3181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3182 for as_dir in $PATH
3184 IFS=$as_save_IFS
3185 test -z "$as_dir" && as_dir=.
3186 for ac_exec_ext in '' $ac_executable_extensions; do
3187 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3188 ac_cv_prog_ac_ct_STRIP="strip"
3189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3190 break 2
3192 done
3193 done
3194 IFS=$as_save_IFS
3198 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3199 if test -n "$ac_ct_STRIP"; then
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3201 $as_echo "$ac_ct_STRIP" >&6; }
3202 else
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3204 $as_echo "no" >&6; }
3207 if test "x$ac_ct_STRIP" = x; then
3208 STRIP=":"
3209 else
3210 case $cross_compiling:$ac_tool_warned in
3211 yes:)
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3213 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3214 ac_tool_warned=yes ;;
3215 esac
3216 STRIP=$ac_ct_STRIP
3218 else
3219 STRIP="$ac_cv_prog_STRIP"
3223 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3226 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3227 if test -z "$MKDIR_P"; then
3228 if ${ac_cv_path_mkdir+:} false; then :
3229 $as_echo_n "(cached) " >&6
3230 else
3231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3232 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3234 IFS=$as_save_IFS
3235 test -z "$as_dir" && as_dir=.
3236 for ac_prog in mkdir gmkdir; do
3237 for ac_exec_ext in '' $ac_executable_extensions; do
3238 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3239 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3240 'mkdir (GNU coreutils) '* | \
3241 'mkdir (coreutils) '* | \
3242 'mkdir (fileutils) '4.1*)
3243 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3244 break 3;;
3245 esac
3246 done
3247 done
3248 done
3249 IFS=$as_save_IFS
3253 test -d ./--version && rmdir ./--version
3254 if test "${ac_cv_path_mkdir+set}" = set; then
3255 MKDIR_P="$ac_cv_path_mkdir -p"
3256 else
3257 # As a last resort, use the slow shell script. Don't cache a
3258 # value for MKDIR_P within a source directory, because that will
3259 # break other packages using the cache if that directory is
3260 # removed, or if the value is a relative name.
3261 MKDIR_P="$ac_install_sh -d"
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3265 $as_echo "$MKDIR_P" >&6; }
3267 for ac_prog in gawk mawk nawk awk
3269 # Extract the first word of "$ac_prog", so it can be a program name with args.
3270 set dummy $ac_prog; ac_word=$2
3271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3272 $as_echo_n "checking for $ac_word... " >&6; }
3273 if ${ac_cv_prog_AWK+:} false; then :
3274 $as_echo_n "(cached) " >&6
3275 else
3276 if test -n "$AWK"; then
3277 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3278 else
3279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3280 for as_dir in $PATH
3282 IFS=$as_save_IFS
3283 test -z "$as_dir" && as_dir=.
3284 for ac_exec_ext in '' $ac_executable_extensions; do
3285 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3286 ac_cv_prog_AWK="$ac_prog"
3287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3288 break 2
3290 done
3291 done
3292 IFS=$as_save_IFS
3296 AWK=$ac_cv_prog_AWK
3297 if test -n "$AWK"; then
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3299 $as_echo "$AWK" >&6; }
3300 else
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3302 $as_echo "no" >&6; }
3306 test -n "$AWK" && break
3307 done
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3310 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3311 set x ${MAKE-make}
3312 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3313 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3314 $as_echo_n "(cached) " >&6
3315 else
3316 cat >conftest.make <<\_ACEOF
3317 SHELL = /bin/sh
3318 all:
3319 @echo '@@@%%%=$(MAKE)=@@@%%%'
3320 _ACEOF
3321 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3322 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3323 *@@@%%%=?*=@@@%%%*)
3324 eval ac_cv_prog_make_${ac_make}_set=yes;;
3326 eval ac_cv_prog_make_${ac_make}_set=no;;
3327 esac
3328 rm -f conftest.make
3330 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3332 $as_echo "yes" >&6; }
3333 SET_MAKE=
3334 else
3335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3336 $as_echo "no" >&6; }
3337 SET_MAKE="MAKE=${MAKE-make}"
3340 rm -rf .tst 2>/dev/null
3341 mkdir .tst 2>/dev/null
3342 if test -d .tst; then
3343 am__leading_dot=.
3344 else
3345 am__leading_dot=_
3347 rmdir .tst 2>/dev/null
3349 # Check whether --enable-silent-rules was given.
3350 if test "${enable_silent_rules+set}" = set; then :
3351 enableval=$enable_silent_rules;
3354 case $enable_silent_rules in # (((
3355 yes) AM_DEFAULT_VERBOSITY=0;;
3356 no) AM_DEFAULT_VERBOSITY=1;;
3357 *) AM_DEFAULT_VERBOSITY=1;;
3358 esac
3359 am_make=${MAKE-make}
3360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3361 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3362 if ${am_cv_make_support_nested_variables+:} false; then :
3363 $as_echo_n "(cached) " >&6
3364 else
3365 if $as_echo 'TRUE=$(BAR$(V))
3366 BAR0=false
3367 BAR1=true
3369 am__doit:
3370 @$(TRUE)
3371 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3372 am_cv_make_support_nested_variables=yes
3373 else
3374 am_cv_make_support_nested_variables=no
3377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3378 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3379 if test $am_cv_make_support_nested_variables = yes; then
3380 AM_V='$(V)'
3381 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3382 else
3383 AM_V=$AM_DEFAULT_VERBOSITY
3384 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3386 AM_BACKSLASH='\'
3388 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3389 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3390 # is not polluted with repeated "-I."
3391 am__isrc=' -I$(srcdir)'
3392 # test to see if srcdir already configured
3393 if test -f $srcdir/config.status; then
3394 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3398 # test whether we have cygpath
3399 if test -z "$CYGPATH_W"; then
3400 if (cygpath --version) >/dev/null 2>/dev/null; then
3401 CYGPATH_W='cygpath -w'
3402 else
3403 CYGPATH_W=echo
3408 # Define the identity of the package.
3409 PACKAGE='libitm'
3410 VERSION='1.0'
3413 cat >>confdefs.h <<_ACEOF
3414 #define PACKAGE "$PACKAGE"
3415 _ACEOF
3418 cat >>confdefs.h <<_ACEOF
3419 #define VERSION "$VERSION"
3420 _ACEOF
3422 # Some tools Automake needs.
3424 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3427 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3430 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3433 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3436 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3438 # For better backward compatibility. To be removed once Automake 1.9.x
3439 # dies out for good. For more background, see:
3440 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3441 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3442 mkdir_p='$(MKDIR_P)'
3444 # We need awk for the "check" target (and possibly the TAP driver). The
3445 # system "awk" is bad on some platforms.
3446 # Always define AMTAR for backward compatibility. Yes, it's still used
3447 # in the wild :-( We should find a proper way to deprecate it ...
3448 AMTAR='$${TAR-tar}'
3451 # We'll loop over all known methods to create a tar archive until one works.
3452 _am_tools='gnutar pax cpio none'
3454 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3461 # POSIX will say in a future version that running "rm -f" with no argument
3462 # is OK; and we want to be able to make that assumption in our Makefile
3463 # recipes. So use an aggressive probe to check that the usage we want is
3464 # actually supported "in the wild" to an acceptable degree.
3465 # See automake bug#10828.
3466 # To make any issue more visible, cause the running configure to be aborted
3467 # by default if the 'rm' program in use doesn't match our expectations; the
3468 # user can still override this though.
3469 if rm -f && rm -fr && rm -rf; then : OK; else
3470 cat >&2 <<'END'
3471 Oops!
3473 Your 'rm' program seems unable to run without file operands specified
3474 on the command line, even when the '-f' option is present. This is contrary
3475 to the behaviour of most rm programs out there, and not conforming with
3476 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3478 Please tell bug-automake@gnu.org about your system, including the value
3479 of your $PATH and any error possibly output before this message. This
3480 can help us improve future automake versions.
3483 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3484 echo 'Configuration will proceed anyway, since you have set the' >&2
3485 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3486 echo >&2
3487 else
3488 cat >&2 <<'END'
3489 Aborting the configuration process, to ensure you take notice of the issue.
3491 You can download and install GNU coreutils to get an 'rm' implementation
3492 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3494 If you want to complete the configuration process using your problematic
3495 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3496 to "yes", and re-run configure.
3499 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3503 # Default to --enable-multilib
3504 # Check whether --enable-multilib was given.
3505 if test "${enable_multilib+set}" = set; then :
3506 enableval=$enable_multilib; case "$enableval" in
3507 yes) multilib=yes ;;
3508 no) multilib=no ;;
3509 *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;;
3510 esac
3511 else
3512 multilib=yes
3516 # We may get other options which we leave undocumented:
3517 # --with-target-subdir, --with-multisrctop, --with-multisubdir
3518 # See config-ml.in if you want the gory details.
3520 if test "$srcdir" = "."; then
3521 if test "$with_target_subdir" != "."; then
3522 multi_basedir="$srcdir/$with_multisrctop../.."
3523 else
3524 multi_basedir="$srcdir/$with_multisrctop.."
3526 else
3527 multi_basedir="$srcdir/.."
3531 # Even if the default multilib is not a cross compilation,
3532 # it may be that some of the other multilibs are.
3533 if test $cross_compiling = no && test $multilib = yes \
3534 && test "x${with_multisubdir}" != x ; then
3535 cross_compiling=maybe
3538 ac_config_commands="$ac_config_commands default-1"
3542 # Check whether --with-toolexeclibdir was given.
3543 if test "${with_toolexeclibdir+set}" = set; then :
3544 withval=$with_toolexeclibdir; case ${with_toolexeclibdir} in
3548 with_toolexeclibdir=`echo $with_toolexeclibdir | sed 's,/$,,'`
3550 esac
3551 else
3552 with_toolexeclibdir=no
3557 # Calculate toolexeclibdir
3558 # Also toolexecdir, though it's only used in toolexeclibdir
3559 case ${enable_version_specific_runtime_libs} in
3560 yes)
3561 # Need the gcc compiler version to know where to install libraries
3562 # and header files if --enable-version-specific-runtime-libs option
3563 # is selected.
3564 toolexecdir='$(libdir)/gcc/$(target_alias)'
3565 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
3568 if test -n "$with_cross_host" &&
3569 test x"$with_cross_host" != x"no"; then
3570 # Install a library built with a cross compiler in tooldir, not libdir.
3571 toolexecdir='$(exec_prefix)/$(target_alias)'
3572 case ${with_toolexeclibdir} in
3574 toolexeclibdir='$(toolexecdir)/lib'
3577 toolexeclibdir=${with_toolexeclibdir}
3579 esac
3580 else
3581 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
3582 toolexeclibdir='$(libdir)'
3584 multi_os_directory=`$CC -print-multi-os-directory`
3585 case $multi_os_directory in
3586 .) ;; # Avoid trailing /.
3587 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
3588 esac
3590 esac
3594 # Check the compiler.
3595 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
3596 # We must force CC to /not/ be precious variables; otherwise
3597 # the wrong, non-multilib-adjusted value will be used in multilibs.
3598 # As a side effect, we have to subst CFLAGS ourselves.
3602 ac_ext=c
3603 ac_cpp='$CPP $CPPFLAGS'
3604 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3605 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3606 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3607 if test -n "$ac_tool_prefix"; then
3608 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3609 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3611 $as_echo_n "checking for $ac_word... " >&6; }
3612 if ${ac_cv_prog_CC+:} false; then :
3613 $as_echo_n "(cached) " >&6
3614 else
3615 if test -n "$CC"; then
3616 ac_cv_prog_CC="$CC" # Let the user override the test.
3617 else
3618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3619 for as_dir in $PATH
3621 IFS=$as_save_IFS
3622 test -z "$as_dir" && as_dir=.
3623 for ac_exec_ext in '' $ac_executable_extensions; do
3624 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3625 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3627 break 2
3629 done
3630 done
3631 IFS=$as_save_IFS
3635 CC=$ac_cv_prog_CC
3636 if test -n "$CC"; then
3637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3638 $as_echo "$CC" >&6; }
3639 else
3640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3641 $as_echo "no" >&6; }
3646 if test -z "$ac_cv_prog_CC"; then
3647 ac_ct_CC=$CC
3648 # Extract the first word of "gcc", so it can be a program name with args.
3649 set dummy gcc; ac_word=$2
3650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3651 $as_echo_n "checking for $ac_word... " >&6; }
3652 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3653 $as_echo_n "(cached) " >&6
3654 else
3655 if test -n "$ac_ct_CC"; then
3656 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3657 else
3658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3659 for as_dir in $PATH
3661 IFS=$as_save_IFS
3662 test -z "$as_dir" && as_dir=.
3663 for ac_exec_ext in '' $ac_executable_extensions; do
3664 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3665 ac_cv_prog_ac_ct_CC="gcc"
3666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3667 break 2
3669 done
3670 done
3671 IFS=$as_save_IFS
3675 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3676 if test -n "$ac_ct_CC"; then
3677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3678 $as_echo "$ac_ct_CC" >&6; }
3679 else
3680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3681 $as_echo "no" >&6; }
3684 if test "x$ac_ct_CC" = x; then
3685 CC=""
3686 else
3687 case $cross_compiling:$ac_tool_warned in
3688 yes:)
3689 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3690 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3691 ac_tool_warned=yes ;;
3692 esac
3693 CC=$ac_ct_CC
3695 else
3696 CC="$ac_cv_prog_CC"
3699 if test -z "$CC"; then
3700 if test -n "$ac_tool_prefix"; then
3701 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3702 set dummy ${ac_tool_prefix}cc; ac_word=$2
3703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3704 $as_echo_n "checking for $ac_word... " >&6; }
3705 if ${ac_cv_prog_CC+:} false; then :
3706 $as_echo_n "(cached) " >&6
3707 else
3708 if test -n "$CC"; then
3709 ac_cv_prog_CC="$CC" # Let the user override the test.
3710 else
3711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3712 for as_dir in $PATH
3714 IFS=$as_save_IFS
3715 test -z "$as_dir" && as_dir=.
3716 for ac_exec_ext in '' $ac_executable_extensions; do
3717 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3718 ac_cv_prog_CC="${ac_tool_prefix}cc"
3719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3720 break 2
3722 done
3723 done
3724 IFS=$as_save_IFS
3728 CC=$ac_cv_prog_CC
3729 if test -n "$CC"; then
3730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3731 $as_echo "$CC" >&6; }
3732 else
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3734 $as_echo "no" >&6; }
3740 if test -z "$CC"; then
3741 # Extract the first word of "cc", so it can be a program name with args.
3742 set dummy cc; ac_word=$2
3743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3744 $as_echo_n "checking for $ac_word... " >&6; }
3745 if ${ac_cv_prog_CC+:} false; then :
3746 $as_echo_n "(cached) " >&6
3747 else
3748 if test -n "$CC"; then
3749 ac_cv_prog_CC="$CC" # Let the user override the test.
3750 else
3751 ac_prog_rejected=no
3752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3753 for as_dir in $PATH
3755 IFS=$as_save_IFS
3756 test -z "$as_dir" && as_dir=.
3757 for ac_exec_ext in '' $ac_executable_extensions; do
3758 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3759 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3760 ac_prog_rejected=yes
3761 continue
3763 ac_cv_prog_CC="cc"
3764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3765 break 2
3767 done
3768 done
3769 IFS=$as_save_IFS
3771 if test $ac_prog_rejected = yes; then
3772 # We found a bogon in the path, so make sure we never use it.
3773 set dummy $ac_cv_prog_CC
3774 shift
3775 if test $# != 0; then
3776 # We chose a different compiler from the bogus one.
3777 # However, it has the same basename, so the bogon will be chosen
3778 # first if we set CC to just the basename; use the full file name.
3779 shift
3780 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3785 CC=$ac_cv_prog_CC
3786 if test -n "$CC"; then
3787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3788 $as_echo "$CC" >&6; }
3789 else
3790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3791 $as_echo "no" >&6; }
3796 if test -z "$CC"; then
3797 if test -n "$ac_tool_prefix"; then
3798 for ac_prog in cl.exe
3800 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3801 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3803 $as_echo_n "checking for $ac_word... " >&6; }
3804 if ${ac_cv_prog_CC+:} false; then :
3805 $as_echo_n "(cached) " >&6
3806 else
3807 if test -n "$CC"; then
3808 ac_cv_prog_CC="$CC" # Let the user override the test.
3809 else
3810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3811 for as_dir in $PATH
3813 IFS=$as_save_IFS
3814 test -z "$as_dir" && as_dir=.
3815 for ac_exec_ext in '' $ac_executable_extensions; do
3816 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3817 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3819 break 2
3821 done
3822 done
3823 IFS=$as_save_IFS
3827 CC=$ac_cv_prog_CC
3828 if test -n "$CC"; then
3829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3830 $as_echo "$CC" >&6; }
3831 else
3832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3833 $as_echo "no" >&6; }
3837 test -n "$CC" && break
3838 done
3840 if test -z "$CC"; then
3841 ac_ct_CC=$CC
3842 for ac_prog in cl.exe
3844 # Extract the first word of "$ac_prog", so it can be a program name with args.
3845 set dummy $ac_prog; ac_word=$2
3846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3847 $as_echo_n "checking for $ac_word... " >&6; }
3848 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3849 $as_echo_n "(cached) " >&6
3850 else
3851 if test -n "$ac_ct_CC"; then
3852 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3853 else
3854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3855 for as_dir in $PATH
3857 IFS=$as_save_IFS
3858 test -z "$as_dir" && as_dir=.
3859 for ac_exec_ext in '' $ac_executable_extensions; do
3860 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3861 ac_cv_prog_ac_ct_CC="$ac_prog"
3862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3863 break 2
3865 done
3866 done
3867 IFS=$as_save_IFS
3871 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3872 if test -n "$ac_ct_CC"; then
3873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3874 $as_echo "$ac_ct_CC" >&6; }
3875 else
3876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3877 $as_echo "no" >&6; }
3881 test -n "$ac_ct_CC" && break
3882 done
3884 if test "x$ac_ct_CC" = x; then
3885 CC=""
3886 else
3887 case $cross_compiling:$ac_tool_warned in
3888 yes:)
3889 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3890 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3891 ac_tool_warned=yes ;;
3892 esac
3893 CC=$ac_ct_CC
3900 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3901 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3902 as_fn_error $? "no acceptable C compiler found in \$PATH
3903 See \`config.log' for more details" "$LINENO" 5; }
3905 # Provide some information about the compiler.
3906 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3907 set X $ac_compile
3908 ac_compiler=$2
3909 for ac_option in --version -v -V -qversion; do
3910 { { ac_try="$ac_compiler $ac_option >&5"
3911 case "(($ac_try" in
3912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3913 *) ac_try_echo=$ac_try;;
3914 esac
3915 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3916 $as_echo "$ac_try_echo"; } >&5
3917 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3918 ac_status=$?
3919 if test -s conftest.err; then
3920 sed '10a\
3921 ... rest of stderr output deleted ...
3922 10q' conftest.err >conftest.er1
3923 cat conftest.er1 >&5
3925 rm -f conftest.er1 conftest.err
3926 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3927 test $ac_status = 0; }
3928 done
3930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3931 /* end confdefs.h. */
3934 main ()
3938 return 0;
3940 _ACEOF
3941 ac_clean_files_save=$ac_clean_files
3942 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3943 # Try to create an executable without -o first, disregard a.out.
3944 # It will help us diagnose broken compilers, and finding out an intuition
3945 # of exeext.
3946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3947 $as_echo_n "checking whether the C compiler works... " >&6; }
3948 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3950 # The possible output files:
3951 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3953 ac_rmfiles=
3954 for ac_file in $ac_files
3956 case $ac_file in
3957 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3958 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3959 esac
3960 done
3961 rm -f $ac_rmfiles
3963 if { { ac_try="$ac_link_default"
3964 case "(($ac_try" in
3965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3966 *) ac_try_echo=$ac_try;;
3967 esac
3968 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3969 $as_echo "$ac_try_echo"; } >&5
3970 (eval "$ac_link_default") 2>&5
3971 ac_status=$?
3972 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3973 test $ac_status = 0; }; then :
3974 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3975 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3976 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3977 # so that the user can short-circuit this test for compilers unknown to
3978 # Autoconf.
3979 for ac_file in $ac_files ''
3981 test -f "$ac_file" || continue
3982 case $ac_file in
3983 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3985 [ab].out )
3986 # We found the default executable, but exeext='' is most
3987 # certainly right.
3988 break;;
3989 *.* )
3990 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3991 then :; else
3992 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3994 # We set ac_cv_exeext here because the later test for it is not
3995 # safe: cross compilers may not add the suffix if given an `-o'
3996 # argument, so we may need to know it at that point already.
3997 # Even if this section looks crufty: it has the advantage of
3998 # actually working.
3999 break;;
4001 break;;
4002 esac
4003 done
4004 test "$ac_cv_exeext" = no && ac_cv_exeext=
4006 else
4007 ac_file=''
4009 if test -z "$ac_file"; then :
4010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4011 $as_echo "no" >&6; }
4012 $as_echo "$as_me: failed program was:" >&5
4013 sed 's/^/| /' conftest.$ac_ext >&5
4015 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4016 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4017 as_fn_error 77 "C compiler cannot create executables
4018 See \`config.log' for more details" "$LINENO" 5; }
4019 else
4020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4021 $as_echo "yes" >&6; }
4023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4024 $as_echo_n "checking for C compiler default output file name... " >&6; }
4025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4026 $as_echo "$ac_file" >&6; }
4027 ac_exeext=$ac_cv_exeext
4029 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4030 ac_clean_files=$ac_clean_files_save
4031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4032 $as_echo_n "checking for suffix of executables... " >&6; }
4033 if { { ac_try="$ac_link"
4034 case "(($ac_try" in
4035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4036 *) ac_try_echo=$ac_try;;
4037 esac
4038 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4039 $as_echo "$ac_try_echo"; } >&5
4040 (eval "$ac_link") 2>&5
4041 ac_status=$?
4042 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4043 test $ac_status = 0; }; then :
4044 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4045 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4046 # work properly (i.e., refer to `conftest.exe'), while it won't with
4047 # `rm'.
4048 for ac_file in conftest.exe conftest conftest.*; do
4049 test -f "$ac_file" || continue
4050 case $ac_file in
4051 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4052 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4053 break;;
4054 * ) break;;
4055 esac
4056 done
4057 else
4058 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4059 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4060 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4061 See \`config.log' for more details" "$LINENO" 5; }
4063 rm -f conftest conftest$ac_cv_exeext
4064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4065 $as_echo "$ac_cv_exeext" >&6; }
4067 rm -f conftest.$ac_ext
4068 EXEEXT=$ac_cv_exeext
4069 ac_exeext=$EXEEXT
4070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4071 /* end confdefs.h. */
4072 #include <stdio.h>
4074 main ()
4076 FILE *f = fopen ("conftest.out", "w");
4077 return ferror (f) || fclose (f) != 0;
4080 return 0;
4082 _ACEOF
4083 ac_clean_files="$ac_clean_files conftest.out"
4084 # Check that the compiler produces executables we can run. If not, either
4085 # the compiler is broken, or we cross compile.
4086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4087 $as_echo_n "checking whether we are cross compiling... " >&6; }
4088 if test "$cross_compiling" != yes; then
4089 { { ac_try="$ac_link"
4090 case "(($ac_try" in
4091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4092 *) ac_try_echo=$ac_try;;
4093 esac
4094 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4095 $as_echo "$ac_try_echo"; } >&5
4096 (eval "$ac_link") 2>&5
4097 ac_status=$?
4098 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4099 test $ac_status = 0; }
4100 if { ac_try='./conftest$ac_cv_exeext'
4101 { { case "(($ac_try" in
4102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4103 *) ac_try_echo=$ac_try;;
4104 esac
4105 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4106 $as_echo "$ac_try_echo"; } >&5
4107 (eval "$ac_try") 2>&5
4108 ac_status=$?
4109 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4110 test $ac_status = 0; }; }; then
4111 cross_compiling=no
4112 else
4113 if test "$cross_compiling" = maybe; then
4114 cross_compiling=yes
4115 else
4116 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4117 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4118 as_fn_error $? "cannot run C compiled programs.
4119 If you meant to cross compile, use \`--host'.
4120 See \`config.log' for more details" "$LINENO" 5; }
4124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4125 $as_echo "$cross_compiling" >&6; }
4127 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4128 ac_clean_files=$ac_clean_files_save
4129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4130 $as_echo_n "checking for suffix of object files... " >&6; }
4131 if ${ac_cv_objext+:} false; then :
4132 $as_echo_n "(cached) " >&6
4133 else
4134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4135 /* end confdefs.h. */
4138 main ()
4142 return 0;
4144 _ACEOF
4145 rm -f conftest.o conftest.obj
4146 if { { ac_try="$ac_compile"
4147 case "(($ac_try" in
4148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4149 *) ac_try_echo=$ac_try;;
4150 esac
4151 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4152 $as_echo "$ac_try_echo"; } >&5
4153 (eval "$ac_compile") 2>&5
4154 ac_status=$?
4155 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4156 test $ac_status = 0; }; then :
4157 for ac_file in conftest.o conftest.obj conftest.*; do
4158 test -f "$ac_file" || continue;
4159 case $ac_file in
4160 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4161 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4162 break;;
4163 esac
4164 done
4165 else
4166 $as_echo "$as_me: failed program was:" >&5
4167 sed 's/^/| /' conftest.$ac_ext >&5
4169 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4170 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4171 as_fn_error $? "cannot compute suffix of object files: cannot compile
4172 See \`config.log' for more details" "$LINENO" 5; }
4174 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4177 $as_echo "$ac_cv_objext" >&6; }
4178 OBJEXT=$ac_cv_objext
4179 ac_objext=$OBJEXT
4180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4181 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4182 if ${ac_cv_c_compiler_gnu+:} false; then :
4183 $as_echo_n "(cached) " >&6
4184 else
4185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4186 /* end confdefs.h. */
4189 main ()
4191 #ifndef __GNUC__
4192 choke me
4193 #endif
4196 return 0;
4198 _ACEOF
4199 if ac_fn_c_try_compile "$LINENO"; then :
4200 ac_compiler_gnu=yes
4201 else
4202 ac_compiler_gnu=no
4204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4205 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4209 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4210 if test $ac_compiler_gnu = yes; then
4211 GCC=yes
4212 else
4213 GCC=
4215 ac_test_CFLAGS=${CFLAGS+set}
4216 ac_save_CFLAGS=$CFLAGS
4217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4218 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4219 if ${ac_cv_prog_cc_g+:} false; then :
4220 $as_echo_n "(cached) " >&6
4221 else
4222 ac_save_c_werror_flag=$ac_c_werror_flag
4223 ac_c_werror_flag=yes
4224 ac_cv_prog_cc_g=no
4225 CFLAGS="-g"
4226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4227 /* end confdefs.h. */
4230 main ()
4234 return 0;
4236 _ACEOF
4237 if ac_fn_c_try_compile "$LINENO"; then :
4238 ac_cv_prog_cc_g=yes
4239 else
4240 CFLAGS=""
4241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4242 /* end confdefs.h. */
4245 main ()
4249 return 0;
4251 _ACEOF
4252 if ac_fn_c_try_compile "$LINENO"; then :
4254 else
4255 ac_c_werror_flag=$ac_save_c_werror_flag
4256 CFLAGS="-g"
4257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4258 /* end confdefs.h. */
4261 main ()
4265 return 0;
4267 _ACEOF
4268 if ac_fn_c_try_compile "$LINENO"; then :
4269 ac_cv_prog_cc_g=yes
4271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4276 ac_c_werror_flag=$ac_save_c_werror_flag
4278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4279 $as_echo "$ac_cv_prog_cc_g" >&6; }
4280 if test "$ac_test_CFLAGS" = set; then
4281 CFLAGS=$ac_save_CFLAGS
4282 elif test $ac_cv_prog_cc_g = yes; then
4283 if test "$GCC" = yes; then
4284 CFLAGS="-g -O2"
4285 else
4286 CFLAGS="-g"
4288 else
4289 if test "$GCC" = yes; then
4290 CFLAGS="-O2"
4291 else
4292 CFLAGS=
4295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4296 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4297 if ${ac_cv_prog_cc_c89+:} false; then :
4298 $as_echo_n "(cached) " >&6
4299 else
4300 ac_cv_prog_cc_c89=no
4301 ac_save_CC=$CC
4302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4303 /* end confdefs.h. */
4304 #include <stdarg.h>
4305 #include <stdio.h>
4306 struct stat;
4307 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4308 struct buf { int x; };
4309 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4310 static char *e (p, i)
4311 char **p;
4312 int i;
4314 return p[i];
4316 static char *f (char * (*g) (char **, int), char **p, ...)
4318 char *s;
4319 va_list v;
4320 va_start (v,p);
4321 s = g (p, va_arg (v,int));
4322 va_end (v);
4323 return s;
4326 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4327 function prototypes and stuff, but not '\xHH' hex character constants.
4328 These don't provoke an error unfortunately, instead are silently treated
4329 as 'x'. The following induces an error, until -std is added to get
4330 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4331 array size at least. It's necessary to write '\x00'==0 to get something
4332 that's true only with -std. */
4333 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4335 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4336 inside strings and character constants. */
4337 #define FOO(x) 'x'
4338 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4340 int test (int i, double x);
4341 struct s1 {int (*f) (int a);};
4342 struct s2 {int (*f) (double a);};
4343 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4344 int argc;
4345 char **argv;
4347 main ()
4349 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4351 return 0;
4353 _ACEOF
4354 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4355 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4357 CC="$ac_save_CC $ac_arg"
4358 if ac_fn_c_try_compile "$LINENO"; then :
4359 ac_cv_prog_cc_c89=$ac_arg
4361 rm -f core conftest.err conftest.$ac_objext
4362 test "x$ac_cv_prog_cc_c89" != "xno" && break
4363 done
4364 rm -f conftest.$ac_ext
4365 CC=$ac_save_CC
4368 # AC_CACHE_VAL
4369 case "x$ac_cv_prog_cc_c89" in
4371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4372 $as_echo "none needed" >&6; } ;;
4373 xno)
4374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4375 $as_echo "unsupported" >&6; } ;;
4377 CC="$CC $ac_cv_prog_cc_c89"
4378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4379 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4380 esac
4381 if test "x$ac_cv_prog_cc_c89" != xno; then :
4385 ac_ext=c
4386 ac_cpp='$CPP $CPPFLAGS'
4387 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4388 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4389 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4391 ac_ext=c
4392 ac_cpp='$CPP $CPPFLAGS'
4393 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4394 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4395 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4397 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4398 if ${am_cv_prog_cc_c_o+:} false; then :
4399 $as_echo_n "(cached) " >&6
4400 else
4401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4402 /* end confdefs.h. */
4405 main ()
4409 return 0;
4411 _ACEOF
4412 # Make sure it works both with $CC and with simple cc.
4413 # Following AC_PROG_CC_C_O, we do the test twice because some
4414 # compilers refuse to overwrite an existing .o file with -o,
4415 # though they will create one.
4416 am_cv_prog_cc_c_o=yes
4417 for am_i in 1 2; do
4418 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4419 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4420 ac_status=$?
4421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4422 (exit $ac_status); } \
4423 && test -f conftest2.$ac_objext; then
4424 : OK
4425 else
4426 am_cv_prog_cc_c_o=no
4427 break
4429 done
4430 rm -f core conftest*
4431 unset am_i
4433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4434 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4435 if test "$am_cv_prog_cc_c_o" != yes; then
4436 # Losing compiler, so override with the script.
4437 # FIXME: It is wrong to rewrite CC.
4438 # But if we don't then we get into trouble of one sort or another.
4439 # A longer-term fix would be to have automake use am__CC in this case,
4440 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4441 CC="$am_aux_dir/compile $CC"
4443 ac_ext=c
4444 ac_cpp='$CPP $CPPFLAGS'
4445 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4446 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4447 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4449 DEPDIR="${am__leading_dot}deps"
4451 ac_config_commands="$ac_config_commands depfiles"
4454 am_make=${MAKE-make}
4455 cat > confinc << 'END'
4456 am__doit:
4457 @echo this is the am__doit target
4458 .PHONY: am__doit
4460 # If we don't find an include directive, just comment out the code.
4461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4462 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4463 am__include="#"
4464 am__quote=
4465 _am_result=none
4466 # First try GNU make style include.
4467 echo "include confinc" > confmf
4468 # Ignore all kinds of additional output from 'make'.
4469 case `$am_make -s -f confmf 2> /dev/null` in #(
4470 *the\ am__doit\ target*)
4471 am__include=include
4472 am__quote=
4473 _am_result=GNU
4475 esac
4476 # Now try BSD make style include.
4477 if test "$am__include" = "#"; then
4478 echo '.include "confinc"' > confmf
4479 case `$am_make -s -f confmf 2> /dev/null` in #(
4480 *the\ am__doit\ target*)
4481 am__include=.include
4482 am__quote="\""
4483 _am_result=BSD
4485 esac
4489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4490 $as_echo "$_am_result" >&6; }
4491 rm -f confinc confmf
4493 # Check whether --enable-dependency-tracking was given.
4494 if test "${enable_dependency_tracking+set}" = set; then :
4495 enableval=$enable_dependency_tracking;
4498 if test "x$enable_dependency_tracking" != xno; then
4499 am_depcomp="$ac_aux_dir/depcomp"
4500 AMDEPBACKSLASH='\'
4501 am__nodep='_no'
4503 if test "x$enable_dependency_tracking" != xno; then
4504 AMDEP_TRUE=
4505 AMDEP_FALSE='#'
4506 else
4507 AMDEP_TRUE='#'
4508 AMDEP_FALSE=
4513 depcc="$CC" am_compiler_list=
4515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4516 $as_echo_n "checking dependency style of $depcc... " >&6; }
4517 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4518 $as_echo_n "(cached) " >&6
4519 else
4520 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4521 # We make a subdir and do the tests there. Otherwise we can end up
4522 # making bogus files that we don't know about and never remove. For
4523 # instance it was reported that on HP-UX the gcc test will end up
4524 # making a dummy file named 'D' -- because '-MD' means "put the output
4525 # in D".
4526 rm -rf conftest.dir
4527 mkdir conftest.dir
4528 # Copy depcomp to subdir because otherwise we won't find it if we're
4529 # using a relative directory.
4530 cp "$am_depcomp" conftest.dir
4531 cd conftest.dir
4532 # We will build objects and dependencies in a subdirectory because
4533 # it helps to detect inapplicable dependency modes. For instance
4534 # both Tru64's cc and ICC support -MD to output dependencies as a
4535 # side effect of compilation, but ICC will put the dependencies in
4536 # the current directory while Tru64 will put them in the object
4537 # directory.
4538 mkdir sub
4540 am_cv_CC_dependencies_compiler_type=none
4541 if test "$am_compiler_list" = ""; then
4542 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4544 am__universal=false
4545 case " $depcc " in #(
4546 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4547 esac
4549 for depmode in $am_compiler_list; do
4550 # Setup a source with many dependencies, because some compilers
4551 # like to wrap large dependency lists on column 80 (with \), and
4552 # we should not choose a depcomp mode which is confused by this.
4554 # We need to recreate these files for each test, as the compiler may
4555 # overwrite some of them when testing with obscure command lines.
4556 # This happens at least with the AIX C compiler.
4557 : > sub/conftest.c
4558 for i in 1 2 3 4 5 6; do
4559 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4560 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4561 # Solaris 10 /bin/sh.
4562 echo '/* dummy */' > sub/conftst$i.h
4563 done
4564 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4566 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4567 # mode. It turns out that the SunPro C++ compiler does not properly
4568 # handle '-M -o', and we need to detect this. Also, some Intel
4569 # versions had trouble with output in subdirs.
4570 am__obj=sub/conftest.${OBJEXT-o}
4571 am__minus_obj="-o $am__obj"
4572 case $depmode in
4573 gcc)
4574 # This depmode causes a compiler race in universal mode.
4575 test "$am__universal" = false || continue
4577 nosideeffect)
4578 # After this tag, mechanisms are not by side-effect, so they'll
4579 # only be used when explicitly requested.
4580 if test "x$enable_dependency_tracking" = xyes; then
4581 continue
4582 else
4583 break
4586 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4587 # This compiler won't grok '-c -o', but also, the minuso test has
4588 # not run yet. These depmodes are late enough in the game, and
4589 # so weak that their functioning should not be impacted.
4590 am__obj=conftest.${OBJEXT-o}
4591 am__minus_obj=
4593 none) break ;;
4594 esac
4595 if depmode=$depmode \
4596 source=sub/conftest.c object=$am__obj \
4597 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4598 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4599 >/dev/null 2>conftest.err &&
4600 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4601 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4602 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4603 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4604 # icc doesn't choke on unknown options, it will just issue warnings
4605 # or remarks (even with -Werror). So we grep stderr for any message
4606 # that says an option was ignored or not supported.
4607 # When given -MP, icc 7.0 and 7.1 complain thusly:
4608 # icc: Command line warning: ignoring option '-M'; no argument required
4609 # The diagnosis changed in icc 8.0:
4610 # icc: Command line remark: option '-MP' not supported
4611 if (grep 'ignoring option' conftest.err ||
4612 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4613 am_cv_CC_dependencies_compiler_type=$depmode
4614 break
4617 done
4619 cd ..
4620 rm -rf conftest.dir
4621 else
4622 am_cv_CC_dependencies_compiler_type=none
4626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4627 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4628 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4631 test "x$enable_dependency_tracking" != xno \
4632 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4633 am__fastdepCC_TRUE=
4634 am__fastdepCC_FALSE='#'
4635 else
4636 am__fastdepCC_TRUE='#'
4637 am__fastdepCC_FALSE=
4641 ac_ext=cpp
4642 ac_cpp='$CXXCPP $CPPFLAGS'
4643 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4644 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4645 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4646 if test -z "$CXX"; then
4647 if test -n "$CCC"; then
4648 CXX=$CCC
4649 else
4650 if test -n "$ac_tool_prefix"; then
4651 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4653 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4654 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4656 $as_echo_n "checking for $ac_word... " >&6; }
4657 if ${ac_cv_prog_CXX+:} false; then :
4658 $as_echo_n "(cached) " >&6
4659 else
4660 if test -n "$CXX"; then
4661 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4662 else
4663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4664 for as_dir in $PATH
4666 IFS=$as_save_IFS
4667 test -z "$as_dir" && as_dir=.
4668 for ac_exec_ext in '' $ac_executable_extensions; do
4669 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4670 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4672 break 2
4674 done
4675 done
4676 IFS=$as_save_IFS
4680 CXX=$ac_cv_prog_CXX
4681 if test -n "$CXX"; then
4682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4683 $as_echo "$CXX" >&6; }
4684 else
4685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4686 $as_echo "no" >&6; }
4690 test -n "$CXX" && break
4691 done
4693 if test -z "$CXX"; then
4694 ac_ct_CXX=$CXX
4695 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4697 # Extract the first word of "$ac_prog", so it can be a program name with args.
4698 set dummy $ac_prog; ac_word=$2
4699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4700 $as_echo_n "checking for $ac_word... " >&6; }
4701 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4702 $as_echo_n "(cached) " >&6
4703 else
4704 if test -n "$ac_ct_CXX"; then
4705 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4706 else
4707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4708 for as_dir in $PATH
4710 IFS=$as_save_IFS
4711 test -z "$as_dir" && as_dir=.
4712 for ac_exec_ext in '' $ac_executable_extensions; do
4713 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4714 ac_cv_prog_ac_ct_CXX="$ac_prog"
4715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4716 break 2
4718 done
4719 done
4720 IFS=$as_save_IFS
4724 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4725 if test -n "$ac_ct_CXX"; then
4726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4727 $as_echo "$ac_ct_CXX" >&6; }
4728 else
4729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4730 $as_echo "no" >&6; }
4734 test -n "$ac_ct_CXX" && break
4735 done
4737 if test "x$ac_ct_CXX" = x; then
4738 CXX="g++"
4739 else
4740 case $cross_compiling:$ac_tool_warned in
4741 yes:)
4742 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4743 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4744 ac_tool_warned=yes ;;
4745 esac
4746 CXX=$ac_ct_CXX
4752 # Provide some information about the compiler.
4753 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4754 set X $ac_compile
4755 ac_compiler=$2
4756 for ac_option in --version -v -V -qversion; do
4757 { { ac_try="$ac_compiler $ac_option >&5"
4758 case "(($ac_try" in
4759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4760 *) ac_try_echo=$ac_try;;
4761 esac
4762 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4763 $as_echo "$ac_try_echo"; } >&5
4764 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4765 ac_status=$?
4766 if test -s conftest.err; then
4767 sed '10a\
4768 ... rest of stderr output deleted ...
4769 10q' conftest.err >conftest.er1
4770 cat conftest.er1 >&5
4772 rm -f conftest.er1 conftest.err
4773 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4774 test $ac_status = 0; }
4775 done
4777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4778 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4779 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4780 $as_echo_n "(cached) " >&6
4781 else
4782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4783 /* end confdefs.h. */
4786 main ()
4788 #ifndef __GNUC__
4789 choke me
4790 #endif
4793 return 0;
4795 _ACEOF
4796 if ac_fn_cxx_try_compile "$LINENO"; then :
4797 ac_compiler_gnu=yes
4798 else
4799 ac_compiler_gnu=no
4801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4802 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4806 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4807 if test $ac_compiler_gnu = yes; then
4808 GXX=yes
4809 else
4810 GXX=
4812 ac_test_CXXFLAGS=${CXXFLAGS+set}
4813 ac_save_CXXFLAGS=$CXXFLAGS
4814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4815 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4816 if ${ac_cv_prog_cxx_g+:} false; then :
4817 $as_echo_n "(cached) " >&6
4818 else
4819 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4820 ac_cxx_werror_flag=yes
4821 ac_cv_prog_cxx_g=no
4822 CXXFLAGS="-g"
4823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4824 /* end confdefs.h. */
4827 main ()
4831 return 0;
4833 _ACEOF
4834 if ac_fn_cxx_try_compile "$LINENO"; then :
4835 ac_cv_prog_cxx_g=yes
4836 else
4837 CXXFLAGS=""
4838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4839 /* end confdefs.h. */
4842 main ()
4846 return 0;
4848 _ACEOF
4849 if ac_fn_cxx_try_compile "$LINENO"; then :
4851 else
4852 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4853 CXXFLAGS="-g"
4854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4855 /* end confdefs.h. */
4858 main ()
4862 return 0;
4864 _ACEOF
4865 if ac_fn_cxx_try_compile "$LINENO"; then :
4866 ac_cv_prog_cxx_g=yes
4868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4873 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4876 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4877 if test "$ac_test_CXXFLAGS" = set; then
4878 CXXFLAGS=$ac_save_CXXFLAGS
4879 elif test $ac_cv_prog_cxx_g = yes; then
4880 if test "$GXX" = yes; then
4881 CXXFLAGS="-g -O2"
4882 else
4883 CXXFLAGS="-g"
4885 else
4886 if test "$GXX" = yes; then
4887 CXXFLAGS="-O2"
4888 else
4889 CXXFLAGS=
4892 ac_ext=c
4893 ac_cpp='$CPP $CPPFLAGS'
4894 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4895 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4896 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4898 depcc="$CXX" am_compiler_list=
4900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4901 $as_echo_n "checking dependency style of $depcc... " >&6; }
4902 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4903 $as_echo_n "(cached) " >&6
4904 else
4905 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4906 # We make a subdir and do the tests there. Otherwise we can end up
4907 # making bogus files that we don't know about and never remove. For
4908 # instance it was reported that on HP-UX the gcc test will end up
4909 # making a dummy file named 'D' -- because '-MD' means "put the output
4910 # in D".
4911 rm -rf conftest.dir
4912 mkdir conftest.dir
4913 # Copy depcomp to subdir because otherwise we won't find it if we're
4914 # using a relative directory.
4915 cp "$am_depcomp" conftest.dir
4916 cd conftest.dir
4917 # We will build objects and dependencies in a subdirectory because
4918 # it helps to detect inapplicable dependency modes. For instance
4919 # both Tru64's cc and ICC support -MD to output dependencies as a
4920 # side effect of compilation, but ICC will put the dependencies in
4921 # the current directory while Tru64 will put them in the object
4922 # directory.
4923 mkdir sub
4925 am_cv_CXX_dependencies_compiler_type=none
4926 if test "$am_compiler_list" = ""; then
4927 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4929 am__universal=false
4930 case " $depcc " in #(
4931 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4932 esac
4934 for depmode in $am_compiler_list; do
4935 # Setup a source with many dependencies, because some compilers
4936 # like to wrap large dependency lists on column 80 (with \), and
4937 # we should not choose a depcomp mode which is confused by this.
4939 # We need to recreate these files for each test, as the compiler may
4940 # overwrite some of them when testing with obscure command lines.
4941 # This happens at least with the AIX C compiler.
4942 : > sub/conftest.c
4943 for i in 1 2 3 4 5 6; do
4944 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4945 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4946 # Solaris 10 /bin/sh.
4947 echo '/* dummy */' > sub/conftst$i.h
4948 done
4949 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4951 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4952 # mode. It turns out that the SunPro C++ compiler does not properly
4953 # handle '-M -o', and we need to detect this. Also, some Intel
4954 # versions had trouble with output in subdirs.
4955 am__obj=sub/conftest.${OBJEXT-o}
4956 am__minus_obj="-o $am__obj"
4957 case $depmode in
4958 gcc)
4959 # This depmode causes a compiler race in universal mode.
4960 test "$am__universal" = false || continue
4962 nosideeffect)
4963 # After this tag, mechanisms are not by side-effect, so they'll
4964 # only be used when explicitly requested.
4965 if test "x$enable_dependency_tracking" = xyes; then
4966 continue
4967 else
4968 break
4971 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4972 # This compiler won't grok '-c -o', but also, the minuso test has
4973 # not run yet. These depmodes are late enough in the game, and
4974 # so weak that their functioning should not be impacted.
4975 am__obj=conftest.${OBJEXT-o}
4976 am__minus_obj=
4978 none) break ;;
4979 esac
4980 if depmode=$depmode \
4981 source=sub/conftest.c object=$am__obj \
4982 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4983 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4984 >/dev/null 2>conftest.err &&
4985 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4986 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4987 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4988 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4989 # icc doesn't choke on unknown options, it will just issue warnings
4990 # or remarks (even with -Werror). So we grep stderr for any message
4991 # that says an option was ignored or not supported.
4992 # When given -MP, icc 7.0 and 7.1 complain thusly:
4993 # icc: Command line warning: ignoring option '-M'; no argument required
4994 # The diagnosis changed in icc 8.0:
4995 # icc: Command line remark: option '-MP' not supported
4996 if (grep 'ignoring option' conftest.err ||
4997 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4998 am_cv_CXX_dependencies_compiler_type=$depmode
4999 break
5002 done
5004 cd ..
5005 rm -rf conftest.dir
5006 else
5007 am_cv_CXX_dependencies_compiler_type=none
5011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5012 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5013 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5016 test "x$enable_dependency_tracking" != xno \
5017 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5018 am__fastdepCXX_TRUE=
5019 am__fastdepCXX_FALSE='#'
5020 else
5021 am__fastdepCXX_TRUE='#'
5022 am__fastdepCXX_FALSE=
5026 # By default we simply use the C compiler to build assembly code.
5028 test "${CCAS+set}" = set || CCAS=$CC
5029 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
5033 depcc="$CCAS" am_compiler_list=
5035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5036 $as_echo_n "checking dependency style of $depcc... " >&6; }
5037 if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
5038 $as_echo_n "(cached) " >&6
5039 else
5040 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5041 # We make a subdir and do the tests there. Otherwise we can end up
5042 # making bogus files that we don't know about and never remove. For
5043 # instance it was reported that on HP-UX the gcc test will end up
5044 # making a dummy file named 'D' -- because '-MD' means "put the output
5045 # in D".
5046 rm -rf conftest.dir
5047 mkdir conftest.dir
5048 # Copy depcomp to subdir because otherwise we won't find it if we're
5049 # using a relative directory.
5050 cp "$am_depcomp" conftest.dir
5051 cd conftest.dir
5052 # We will build objects and dependencies in a subdirectory because
5053 # it helps to detect inapplicable dependency modes. For instance
5054 # both Tru64's cc and ICC support -MD to output dependencies as a
5055 # side effect of compilation, but ICC will put the dependencies in
5056 # the current directory while Tru64 will put them in the object
5057 # directory.
5058 mkdir sub
5060 am_cv_CCAS_dependencies_compiler_type=none
5061 if test "$am_compiler_list" = ""; then
5062 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5064 am__universal=false
5067 for depmode in $am_compiler_list; do
5068 # Setup a source with many dependencies, because some compilers
5069 # like to wrap large dependency lists on column 80 (with \), and
5070 # we should not choose a depcomp mode which is confused by this.
5072 # We need to recreate these files for each test, as the compiler may
5073 # overwrite some of them when testing with obscure command lines.
5074 # This happens at least with the AIX C compiler.
5075 : > sub/conftest.c
5076 for i in 1 2 3 4 5 6; do
5077 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5078 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5079 # Solaris 10 /bin/sh.
5080 echo '/* dummy */' > sub/conftst$i.h
5081 done
5082 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5084 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5085 # mode. It turns out that the SunPro C++ compiler does not properly
5086 # handle '-M -o', and we need to detect this. Also, some Intel
5087 # versions had trouble with output in subdirs.
5088 am__obj=sub/conftest.${OBJEXT-o}
5089 am__minus_obj="-o $am__obj"
5090 case $depmode in
5091 gcc)
5092 # This depmode causes a compiler race in universal mode.
5093 test "$am__universal" = false || continue
5095 nosideeffect)
5096 # After this tag, mechanisms are not by side-effect, so they'll
5097 # only be used when explicitly requested.
5098 if test "x$enable_dependency_tracking" = xyes; then
5099 continue
5100 else
5101 break
5104 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5105 # This compiler won't grok '-c -o', but also, the minuso test has
5106 # not run yet. These depmodes are late enough in the game, and
5107 # so weak that their functioning should not be impacted.
5108 am__obj=conftest.${OBJEXT-o}
5109 am__minus_obj=
5111 none) break ;;
5112 esac
5113 if depmode=$depmode \
5114 source=sub/conftest.c object=$am__obj \
5115 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5116 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5117 >/dev/null 2>conftest.err &&
5118 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5119 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5120 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5121 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5122 # icc doesn't choke on unknown options, it will just issue warnings
5123 # or remarks (even with -Werror). So we grep stderr for any message
5124 # that says an option was ignored or not supported.
5125 # When given -MP, icc 7.0 and 7.1 complain thusly:
5126 # icc: Command line warning: ignoring option '-M'; no argument required
5127 # The diagnosis changed in icc 8.0:
5128 # icc: Command line remark: option '-MP' not supported
5129 if (grep 'ignoring option' conftest.err ||
5130 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5131 am_cv_CCAS_dependencies_compiler_type=$depmode
5132 break
5135 done
5137 cd ..
5138 rm -rf conftest.dir
5139 else
5140 am_cv_CCAS_dependencies_compiler_type=none
5144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
5145 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
5146 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
5149 test "x$enable_dependency_tracking" != xno \
5150 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
5151 am__fastdepCCAS_TRUE=
5152 am__fastdepCCAS_FALSE='#'
5153 else
5154 am__fastdepCCAS_TRUE='#'
5155 am__fastdepCCAS_FALSE=
5163 # In order to override CFLAGS_FOR_TARGET, all of our special flags go
5164 # in XCFLAGS. But we need them in CFLAGS during configury. So put them
5165 # in both places for now and restore CFLAGS at the end of config.
5166 save_CFLAGS="$CFLAGS"
5168 # Find other programs we need.
5169 if test -n "$ac_tool_prefix"; then
5170 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5171 set dummy ${ac_tool_prefix}ar; ac_word=$2
5172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5173 $as_echo_n "checking for $ac_word... " >&6; }
5174 if ${ac_cv_prog_AR+:} false; then :
5175 $as_echo_n "(cached) " >&6
5176 else
5177 if test -n "$AR"; then
5178 ac_cv_prog_AR="$AR" # Let the user override the test.
5179 else
5180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5181 for as_dir in $PATH
5183 IFS=$as_save_IFS
5184 test -z "$as_dir" && as_dir=.
5185 for ac_exec_ext in '' $ac_executable_extensions; do
5186 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5187 ac_cv_prog_AR="${ac_tool_prefix}ar"
5188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5189 break 2
5191 done
5192 done
5193 IFS=$as_save_IFS
5197 AR=$ac_cv_prog_AR
5198 if test -n "$AR"; then
5199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5200 $as_echo "$AR" >&6; }
5201 else
5202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5203 $as_echo "no" >&6; }
5208 if test -z "$ac_cv_prog_AR"; then
5209 ac_ct_AR=$AR
5210 # Extract the first word of "ar", so it can be a program name with args.
5211 set dummy ar; ac_word=$2
5212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5213 $as_echo_n "checking for $ac_word... " >&6; }
5214 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5215 $as_echo_n "(cached) " >&6
5216 else
5217 if test -n "$ac_ct_AR"; then
5218 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5219 else
5220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5221 for as_dir in $PATH
5223 IFS=$as_save_IFS
5224 test -z "$as_dir" && as_dir=.
5225 for ac_exec_ext in '' $ac_executable_extensions; do
5226 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5227 ac_cv_prog_ac_ct_AR="ar"
5228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5229 break 2
5231 done
5232 done
5233 IFS=$as_save_IFS
5237 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5238 if test -n "$ac_ct_AR"; then
5239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5240 $as_echo "$ac_ct_AR" >&6; }
5241 else
5242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5243 $as_echo "no" >&6; }
5246 if test "x$ac_ct_AR" = x; then
5247 AR=""
5248 else
5249 case $cross_compiling:$ac_tool_warned in
5250 yes:)
5251 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5252 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5253 ac_tool_warned=yes ;;
5254 esac
5255 AR=$ac_ct_AR
5257 else
5258 AR="$ac_cv_prog_AR"
5261 if test -n "$ac_tool_prefix"; then
5262 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
5263 set dummy ${ac_tool_prefix}nm; ac_word=$2
5264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5265 $as_echo_n "checking for $ac_word... " >&6; }
5266 if ${ac_cv_prog_NM+:} false; then :
5267 $as_echo_n "(cached) " >&6
5268 else
5269 if test -n "$NM"; then
5270 ac_cv_prog_NM="$NM" # Let the user override the test.
5271 else
5272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5273 for as_dir in $PATH
5275 IFS=$as_save_IFS
5276 test -z "$as_dir" && as_dir=.
5277 for ac_exec_ext in '' $ac_executable_extensions; do
5278 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5279 ac_cv_prog_NM="${ac_tool_prefix}nm"
5280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5281 break 2
5283 done
5284 done
5285 IFS=$as_save_IFS
5289 NM=$ac_cv_prog_NM
5290 if test -n "$NM"; then
5291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
5292 $as_echo "$NM" >&6; }
5293 else
5294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5295 $as_echo "no" >&6; }
5300 if test -z "$ac_cv_prog_NM"; then
5301 ac_ct_NM=$NM
5302 # Extract the first word of "nm", so it can be a program name with args.
5303 set dummy nm; ac_word=$2
5304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5305 $as_echo_n "checking for $ac_word... " >&6; }
5306 if ${ac_cv_prog_ac_ct_NM+:} false; then :
5307 $as_echo_n "(cached) " >&6
5308 else
5309 if test -n "$ac_ct_NM"; then
5310 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
5311 else
5312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5313 for as_dir in $PATH
5315 IFS=$as_save_IFS
5316 test -z "$as_dir" && as_dir=.
5317 for ac_exec_ext in '' $ac_executable_extensions; do
5318 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5319 ac_cv_prog_ac_ct_NM="nm"
5320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5321 break 2
5323 done
5324 done
5325 IFS=$as_save_IFS
5329 ac_ct_NM=$ac_cv_prog_ac_ct_NM
5330 if test -n "$ac_ct_NM"; then
5331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5
5332 $as_echo "$ac_ct_NM" >&6; }
5333 else
5334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5335 $as_echo "no" >&6; }
5338 if test "x$ac_ct_NM" = x; then
5339 NM=""
5340 else
5341 case $cross_compiling:$ac_tool_warned in
5342 yes:)
5343 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5344 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5345 ac_tool_warned=yes ;;
5346 esac
5347 NM=$ac_ct_NM
5349 else
5350 NM="$ac_cv_prog_NM"
5353 if test -n "$ac_tool_prefix"; then
5354 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5355 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5357 $as_echo_n "checking for $ac_word... " >&6; }
5358 if ${ac_cv_prog_RANLIB+:} false; then :
5359 $as_echo_n "(cached) " >&6
5360 else
5361 if test -n "$RANLIB"; then
5362 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5363 else
5364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5365 for as_dir in $PATH
5367 IFS=$as_save_IFS
5368 test -z "$as_dir" && as_dir=.
5369 for ac_exec_ext in '' $ac_executable_extensions; do
5370 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5371 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5373 break 2
5375 done
5376 done
5377 IFS=$as_save_IFS
5381 RANLIB=$ac_cv_prog_RANLIB
5382 if test -n "$RANLIB"; then
5383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5384 $as_echo "$RANLIB" >&6; }
5385 else
5386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5387 $as_echo "no" >&6; }
5392 if test -z "$ac_cv_prog_RANLIB"; then
5393 ac_ct_RANLIB=$RANLIB
5394 # Extract the first word of "ranlib", so it can be a program name with args.
5395 set dummy ranlib; ac_word=$2
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5397 $as_echo_n "checking for $ac_word... " >&6; }
5398 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5399 $as_echo_n "(cached) " >&6
5400 else
5401 if test -n "$ac_ct_RANLIB"; then
5402 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5403 else
5404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5405 for as_dir in $PATH
5407 IFS=$as_save_IFS
5408 test -z "$as_dir" && as_dir=.
5409 for ac_exec_ext in '' $ac_executable_extensions; do
5410 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5411 ac_cv_prog_ac_ct_RANLIB="ranlib"
5412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5413 break 2
5415 done
5416 done
5417 IFS=$as_save_IFS
5421 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5422 if test -n "$ac_ct_RANLIB"; then
5423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5424 $as_echo "$ac_ct_RANLIB" >&6; }
5425 else
5426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5427 $as_echo "no" >&6; }
5430 if test "x$ac_ct_RANLIB" = x; then
5431 RANLIB="ranlib-not-found-in-path-error"
5432 else
5433 case $cross_compiling:$ac_tool_warned in
5434 yes:)
5435 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5436 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5437 ac_tool_warned=yes ;;
5438 esac
5439 RANLIB=$ac_ct_RANLIB
5441 else
5442 RANLIB="$ac_cv_prog_RANLIB"
5445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5446 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5447 set x ${MAKE-make}
5448 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5449 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5450 $as_echo_n "(cached) " >&6
5451 else
5452 cat >conftest.make <<\_ACEOF
5453 SHELL = /bin/sh
5454 all:
5455 @echo '@@@%%%=$(MAKE)=@@@%%%'
5456 _ACEOF
5457 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5458 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5459 *@@@%%%=?*=@@@%%%*)
5460 eval ac_cv_prog_make_${ac_make}_set=yes;;
5462 eval ac_cv_prog_make_${ac_make}_set=no;;
5463 esac
5464 rm -f conftest.make
5466 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5468 $as_echo "yes" >&6; }
5469 SET_MAKE=
5470 else
5471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5472 $as_echo "no" >&6; }
5473 SET_MAKE="MAKE=${MAKE-make}"
5478 # See if makeinfo has been installed and is modern enough
5479 # that we can use it.
5481 # Extract the first word of "makeinfo", so it can be a program name with args.
5482 set dummy makeinfo; ac_word=$2
5483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5484 $as_echo_n "checking for $ac_word... " >&6; }
5485 if ${ac_cv_prog_MAKEINFO+:} false; then :
5486 $as_echo_n "(cached) " >&6
5487 else
5488 if test -n "$MAKEINFO"; then
5489 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
5490 else
5491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5492 for as_dir in $PATH
5494 IFS=$as_save_IFS
5495 test -z "$as_dir" && as_dir=.
5496 for ac_exec_ext in '' $ac_executable_extensions; do
5497 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5498 ac_cv_prog_MAKEINFO="makeinfo"
5499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5500 break 2
5502 done
5503 done
5504 IFS=$as_save_IFS
5508 MAKEINFO=$ac_cv_prog_MAKEINFO
5509 if test -n "$MAKEINFO"; then
5510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
5511 $as_echo "$MAKEINFO" >&6; }
5512 else
5513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5514 $as_echo "no" >&6; }
5518 if test -n "$MAKEINFO"; then
5519 # Found it, now check the version.
5520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
5521 $as_echo_n "checking for modern makeinfo... " >&6; }
5522 if ${gcc_cv_prog_makeinfo_modern+:} false; then :
5523 $as_echo_n "(cached) " >&6
5524 else
5525 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
5526 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
5528 case $ac_prog_version in
5529 '') gcc_cv_prog_makeinfo_modern=no;;
5530 4.[4-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
5531 *) gcc_cv_prog_makeinfo_modern=no;;
5532 esac
5535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
5536 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
5537 else
5538 gcc_cv_prog_makeinfo_modern=no
5540 if test $gcc_cv_prog_makeinfo_modern = no; then
5541 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
5544 if test $gcc_cv_prog_makeinfo_modern = "yes"; then
5545 BUILD_INFO_TRUE=
5546 BUILD_INFO_FALSE='#'
5547 else
5548 BUILD_INFO_TRUE='#'
5549 BUILD_INFO_FALSE=
5554 # Configure libtool
5555 case `pwd` in
5556 *\ * | *\ *)
5557 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5558 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5559 esac
5563 macro_version='2.2.7a'
5564 macro_revision='1.3134'
5578 ltmain="$ac_aux_dir/ltmain.sh"
5580 # Backslashify metacharacters that are still active within
5581 # double-quoted strings.
5582 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5584 # Same as above, but do not quote variable references.
5585 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5587 # Sed substitution to delay expansion of an escaped shell variable in a
5588 # double_quote_subst'ed string.
5589 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5591 # Sed substitution to delay expansion of an escaped single quote.
5592 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5594 # Sed substitution to avoid accidental globbing in evaled expressions
5595 no_glob_subst='s/\*/\\\*/g'
5597 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5598 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5599 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5602 $as_echo_n "checking how to print strings... " >&6; }
5603 # Test print first, because it will be a builtin if present.
5604 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5605 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5606 ECHO='print -r --'
5607 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5608 ECHO='printf %s\n'
5609 else
5610 # Use this function as a fallback that always works.
5611 func_fallback_echo ()
5613 eval 'cat <<_LTECHO_EOF
5615 _LTECHO_EOF'
5617 ECHO='func_fallback_echo'
5620 # func_echo_all arg...
5621 # Invoke $ECHO with all args, space-separated.
5622 func_echo_all ()
5624 $ECHO ""
5627 case "$ECHO" in
5628 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5629 $as_echo "printf" >&6; } ;;
5630 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5631 $as_echo "print -r" >&6; } ;;
5632 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5633 $as_echo "cat" >&6; } ;;
5634 esac
5649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5650 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5651 if ${ac_cv_path_SED+:} false; then :
5652 $as_echo_n "(cached) " >&6
5653 else
5654 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5655 for ac_i in 1 2 3 4 5 6 7; do
5656 ac_script="$ac_script$as_nl$ac_script"
5657 done
5658 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5659 { ac_script=; unset ac_script;}
5660 if test -z "$SED"; then
5661 ac_path_SED_found=false
5662 # Loop through the user's path and test for each of PROGNAME-LIST
5663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5664 for as_dir in $PATH
5666 IFS=$as_save_IFS
5667 test -z "$as_dir" && as_dir=.
5668 for ac_prog in sed gsed; do
5669 for ac_exec_ext in '' $ac_executable_extensions; do
5670 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5671 as_fn_executable_p "$ac_path_SED" || continue
5672 # Check for GNU ac_path_SED and select it if it is found.
5673 # Check for GNU $ac_path_SED
5674 case `"$ac_path_SED" --version 2>&1` in
5675 *GNU*)
5676 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5678 ac_count=0
5679 $as_echo_n 0123456789 >"conftest.in"
5680 while :
5682 cat "conftest.in" "conftest.in" >"conftest.tmp"
5683 mv "conftest.tmp" "conftest.in"
5684 cp "conftest.in" "conftest.nl"
5685 $as_echo '' >> "conftest.nl"
5686 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5687 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5688 as_fn_arith $ac_count + 1 && ac_count=$as_val
5689 if test $ac_count -gt ${ac_path_SED_max-0}; then
5690 # Best one so far, save it but keep looking for a better one
5691 ac_cv_path_SED="$ac_path_SED"
5692 ac_path_SED_max=$ac_count
5694 # 10*(2^10) chars as input seems more than enough
5695 test $ac_count -gt 10 && break
5696 done
5697 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5698 esac
5700 $ac_path_SED_found && break 3
5701 done
5702 done
5703 done
5704 IFS=$as_save_IFS
5705 if test -z "$ac_cv_path_SED"; then
5706 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5708 else
5709 ac_cv_path_SED=$SED
5713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5714 $as_echo "$ac_cv_path_SED" >&6; }
5715 SED="$ac_cv_path_SED"
5716 rm -f conftest.sed
5718 test -z "$SED" && SED=sed
5719 Xsed="$SED -e 1s/^X//"
5731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5732 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5733 if ${ac_cv_path_GREP+:} false; then :
5734 $as_echo_n "(cached) " >&6
5735 else
5736 if test -z "$GREP"; then
5737 ac_path_GREP_found=false
5738 # Loop through the user's path and test for each of PROGNAME-LIST
5739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5740 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5742 IFS=$as_save_IFS
5743 test -z "$as_dir" && as_dir=.
5744 for ac_prog in grep ggrep; do
5745 for ac_exec_ext in '' $ac_executable_extensions; do
5746 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5747 as_fn_executable_p "$ac_path_GREP" || continue
5748 # Check for GNU ac_path_GREP and select it if it is found.
5749 # Check for GNU $ac_path_GREP
5750 case `"$ac_path_GREP" --version 2>&1` in
5751 *GNU*)
5752 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5754 ac_count=0
5755 $as_echo_n 0123456789 >"conftest.in"
5756 while :
5758 cat "conftest.in" "conftest.in" >"conftest.tmp"
5759 mv "conftest.tmp" "conftest.in"
5760 cp "conftest.in" "conftest.nl"
5761 $as_echo 'GREP' >> "conftest.nl"
5762 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5763 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5764 as_fn_arith $ac_count + 1 && ac_count=$as_val
5765 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5766 # Best one so far, save it but keep looking for a better one
5767 ac_cv_path_GREP="$ac_path_GREP"
5768 ac_path_GREP_max=$ac_count
5770 # 10*(2^10) chars as input seems more than enough
5771 test $ac_count -gt 10 && break
5772 done
5773 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5774 esac
5776 $ac_path_GREP_found && break 3
5777 done
5778 done
5779 done
5780 IFS=$as_save_IFS
5781 if test -z "$ac_cv_path_GREP"; then
5782 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5784 else
5785 ac_cv_path_GREP=$GREP
5789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5790 $as_echo "$ac_cv_path_GREP" >&6; }
5791 GREP="$ac_cv_path_GREP"
5794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5795 $as_echo_n "checking for egrep... " >&6; }
5796 if ${ac_cv_path_EGREP+:} false; then :
5797 $as_echo_n "(cached) " >&6
5798 else
5799 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5800 then ac_cv_path_EGREP="$GREP -E"
5801 else
5802 if test -z "$EGREP"; then
5803 ac_path_EGREP_found=false
5804 # Loop through the user's path and test for each of PROGNAME-LIST
5805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5806 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5808 IFS=$as_save_IFS
5809 test -z "$as_dir" && as_dir=.
5810 for ac_prog in egrep; do
5811 for ac_exec_ext in '' $ac_executable_extensions; do
5812 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5813 as_fn_executable_p "$ac_path_EGREP" || continue
5814 # Check for GNU ac_path_EGREP and select it if it is found.
5815 # Check for GNU $ac_path_EGREP
5816 case `"$ac_path_EGREP" --version 2>&1` in
5817 *GNU*)
5818 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5820 ac_count=0
5821 $as_echo_n 0123456789 >"conftest.in"
5822 while :
5824 cat "conftest.in" "conftest.in" >"conftest.tmp"
5825 mv "conftest.tmp" "conftest.in"
5826 cp "conftest.in" "conftest.nl"
5827 $as_echo 'EGREP' >> "conftest.nl"
5828 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5829 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5830 as_fn_arith $ac_count + 1 && ac_count=$as_val
5831 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5832 # Best one so far, save it but keep looking for a better one
5833 ac_cv_path_EGREP="$ac_path_EGREP"
5834 ac_path_EGREP_max=$ac_count
5836 # 10*(2^10) chars as input seems more than enough
5837 test $ac_count -gt 10 && break
5838 done
5839 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5840 esac
5842 $ac_path_EGREP_found && break 3
5843 done
5844 done
5845 done
5846 IFS=$as_save_IFS
5847 if test -z "$ac_cv_path_EGREP"; then
5848 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5850 else
5851 ac_cv_path_EGREP=$EGREP
5856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5857 $as_echo "$ac_cv_path_EGREP" >&6; }
5858 EGREP="$ac_cv_path_EGREP"
5861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5862 $as_echo_n "checking for fgrep... " >&6; }
5863 if ${ac_cv_path_FGREP+:} false; then :
5864 $as_echo_n "(cached) " >&6
5865 else
5866 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5867 then ac_cv_path_FGREP="$GREP -F"
5868 else
5869 if test -z "$FGREP"; then
5870 ac_path_FGREP_found=false
5871 # Loop through the user's path and test for each of PROGNAME-LIST
5872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5873 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5875 IFS=$as_save_IFS
5876 test -z "$as_dir" && as_dir=.
5877 for ac_prog in fgrep; do
5878 for ac_exec_ext in '' $ac_executable_extensions; do
5879 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5880 as_fn_executable_p "$ac_path_FGREP" || continue
5881 # Check for GNU ac_path_FGREP and select it if it is found.
5882 # Check for GNU $ac_path_FGREP
5883 case `"$ac_path_FGREP" --version 2>&1` in
5884 *GNU*)
5885 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5887 ac_count=0
5888 $as_echo_n 0123456789 >"conftest.in"
5889 while :
5891 cat "conftest.in" "conftest.in" >"conftest.tmp"
5892 mv "conftest.tmp" "conftest.in"
5893 cp "conftest.in" "conftest.nl"
5894 $as_echo 'FGREP' >> "conftest.nl"
5895 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5896 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5897 as_fn_arith $ac_count + 1 && ac_count=$as_val
5898 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5899 # Best one so far, save it but keep looking for a better one
5900 ac_cv_path_FGREP="$ac_path_FGREP"
5901 ac_path_FGREP_max=$ac_count
5903 # 10*(2^10) chars as input seems more than enough
5904 test $ac_count -gt 10 && break
5905 done
5906 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5907 esac
5909 $ac_path_FGREP_found && break 3
5910 done
5911 done
5912 done
5913 IFS=$as_save_IFS
5914 if test -z "$ac_cv_path_FGREP"; then
5915 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5917 else
5918 ac_cv_path_FGREP=$FGREP
5923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5924 $as_echo "$ac_cv_path_FGREP" >&6; }
5925 FGREP="$ac_cv_path_FGREP"
5928 test -z "$GREP" && GREP=grep
5948 # Check whether --with-gnu-ld was given.
5949 if test "${with_gnu_ld+set}" = set; then :
5950 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5951 else
5952 with_gnu_ld=no
5955 ac_prog=ld
5956 if test "$GCC" = yes; then
5957 # Check if gcc -print-prog-name=ld gives a path.
5958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5959 $as_echo_n "checking for ld used by $CC... " >&6; }
5960 case $host in
5961 *-*-mingw*)
5962 # gcc leaves a trailing carriage return which upsets mingw
5963 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5965 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5966 esac
5967 case $ac_prog in
5968 # Accept absolute paths.
5969 [\\/]* | ?:[\\/]*)
5970 re_direlt='/[^/][^/]*/\.\./'
5971 # Canonicalize the pathname of ld
5972 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5973 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5974 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5975 done
5976 test -z "$LD" && LD="$ac_prog"
5979 # If it fails, then pretend we aren't using GCC.
5980 ac_prog=ld
5983 # If it is relative, then search for the first ld in PATH.
5984 with_gnu_ld=unknown
5986 esac
5987 elif test "$with_gnu_ld" = yes; then
5988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5989 $as_echo_n "checking for GNU ld... " >&6; }
5990 else
5991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5992 $as_echo_n "checking for non-GNU ld... " >&6; }
5994 if ${lt_cv_path_LD+:} false; then :
5995 $as_echo_n "(cached) " >&6
5996 else
5997 if test -z "$LD"; then
5998 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5999 for ac_dir in $PATH; do
6000 IFS="$lt_save_ifs"
6001 test -z "$ac_dir" && ac_dir=.
6002 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6003 lt_cv_path_LD="$ac_dir/$ac_prog"
6004 # Check to see if the program is GNU ld. I'd rather use --version,
6005 # but apparently some variants of GNU ld only accept -v.
6006 # Break only if it was the GNU/non-GNU ld that we prefer.
6007 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6008 *GNU* | *'with BFD'*)
6009 test "$with_gnu_ld" != no && break
6012 test "$with_gnu_ld" != yes && break
6014 esac
6016 done
6017 IFS="$lt_save_ifs"
6018 else
6019 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6023 LD="$lt_cv_path_LD"
6024 if test -n "$LD"; then
6025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6026 $as_echo "$LD" >&6; }
6027 else
6028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6029 $as_echo "no" >&6; }
6031 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6033 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6034 if ${lt_cv_prog_gnu_ld+:} false; then :
6035 $as_echo_n "(cached) " >&6
6036 else
6037 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6038 case `$LD -v 2>&1 </dev/null` in
6039 *GNU* | *'with BFD'*)
6040 lt_cv_prog_gnu_ld=yes
6043 lt_cv_prog_gnu_ld=no
6045 esac
6047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6048 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6049 with_gnu_ld=$lt_cv_prog_gnu_ld
6059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6060 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6061 if ${lt_cv_path_NM+:} false; then :
6062 $as_echo_n "(cached) " >&6
6063 else
6064 if test -n "$NM"; then
6065 # Let the user override the nm to test.
6066 lt_nm_to_check="$NM"
6067 else
6068 lt_nm_to_check="${ac_tool_prefix}nm"
6069 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6070 lt_nm_to_check="$lt_nm_to_check nm"
6073 for lt_tmp_nm in "$lt_nm_to_check"; do
6074 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6075 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6076 IFS="$lt_save_ifs"
6077 test -z "$ac_dir" && ac_dir=.
6078 # Strip out any user-provided options from the nm to test twice,
6079 # the first time to test to see if nm (rather than its options) has
6080 # an explicit path, the second time to yield a file which can be
6081 # nm'ed itself.
6082 tmp_nm_path="`$ECHO "$lt_tmp_nm" | sed 's, -.*$,,'`"
6083 case "$tmp_nm_path" in
6084 */*|*\\*) tmp_nm="$lt_tmp_nm";;
6085 *) tmp_nm="$ac_dir/$lt_tmp_nm";;
6086 esac
6087 tmp_nm_to_nm="`$ECHO "$tmp_nm" | sed 's, -.*$,,'`"
6088 if test -f "$tmp_nm_to_nm" || test -f "$tmp_nm_to_nm$ac_exeext" ; then
6089 # Check to see if the nm accepts a BSD-compat flag.
6090 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6091 # nm: unknown option "B" ignored
6092 case `"$tmp_nm" -B "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
6093 *$tmp_nm*) lt_cv_path_NM="$tmp_nm -B"
6094 break
6097 case `"$tmp_nm" -p "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
6098 *$tmp_nm*)
6099 lt_cv_path_NM="$tmp_nm -p"
6100 break
6103 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6104 continue # so that we can try to find one that supports BSD flags
6106 esac
6108 esac
6110 done
6111 IFS="$lt_save_ifs"
6112 done
6113 : ${lt_cv_path_NM=no}
6115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6116 $as_echo "$lt_cv_path_NM" >&6; }
6117 if test "$lt_cv_path_NM" != "no"; then
6118 NM="$lt_cv_path_NM"
6119 else
6120 # Didn't find any BSD compatible name lister, look for dumpbin.
6121 if test -n "$DUMPBIN"; then :
6122 # Let the user override the test.
6123 else
6124 if test -n "$ac_tool_prefix"; then
6125 for ac_prog in dumpbin "link -dump"
6127 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6128 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6130 $as_echo_n "checking for $ac_word... " >&6; }
6131 if ${ac_cv_prog_DUMPBIN+:} false; then :
6132 $as_echo_n "(cached) " >&6
6133 else
6134 if test -n "$DUMPBIN"; then
6135 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6136 else
6137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6138 for as_dir in $PATH
6140 IFS=$as_save_IFS
6141 test -z "$as_dir" && as_dir=.
6142 for ac_exec_ext in '' $ac_executable_extensions; do
6143 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6144 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6146 break 2
6148 done
6149 done
6150 IFS=$as_save_IFS
6154 DUMPBIN=$ac_cv_prog_DUMPBIN
6155 if test -n "$DUMPBIN"; then
6156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6157 $as_echo "$DUMPBIN" >&6; }
6158 else
6159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6160 $as_echo "no" >&6; }
6164 test -n "$DUMPBIN" && break
6165 done
6167 if test -z "$DUMPBIN"; then
6168 ac_ct_DUMPBIN=$DUMPBIN
6169 for ac_prog in dumpbin "link -dump"
6171 # Extract the first word of "$ac_prog", so it can be a program name with args.
6172 set dummy $ac_prog; ac_word=$2
6173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6174 $as_echo_n "checking for $ac_word... " >&6; }
6175 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6176 $as_echo_n "(cached) " >&6
6177 else
6178 if test -n "$ac_ct_DUMPBIN"; then
6179 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6180 else
6181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6182 for as_dir in $PATH
6184 IFS=$as_save_IFS
6185 test -z "$as_dir" && as_dir=.
6186 for ac_exec_ext in '' $ac_executable_extensions; do
6187 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6188 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6190 break 2
6192 done
6193 done
6194 IFS=$as_save_IFS
6198 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6199 if test -n "$ac_ct_DUMPBIN"; then
6200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6201 $as_echo "$ac_ct_DUMPBIN" >&6; }
6202 else
6203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6204 $as_echo "no" >&6; }
6208 test -n "$ac_ct_DUMPBIN" && break
6209 done
6211 if test "x$ac_ct_DUMPBIN" = x; then
6212 DUMPBIN=":"
6213 else
6214 case $cross_compiling:$ac_tool_warned in
6215 yes:)
6216 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6217 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6218 ac_tool_warned=yes ;;
6219 esac
6220 DUMPBIN=$ac_ct_DUMPBIN
6224 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6225 *COFF*)
6226 DUMPBIN="$DUMPBIN -symbols"
6229 DUMPBIN=:
6231 esac
6234 if test "$DUMPBIN" != ":"; then
6235 NM="$DUMPBIN"
6238 test -z "$NM" && NM=nm
6245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6246 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6247 if ${lt_cv_nm_interface+:} false; then :
6248 $as_echo_n "(cached) " >&6
6249 else
6250 lt_cv_nm_interface="BSD nm"
6251 echo "int some_variable = 0;" > conftest.$ac_ext
6252 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6253 (eval "$ac_compile" 2>conftest.err)
6254 cat conftest.err >&5
6255 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6256 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6257 cat conftest.err >&5
6258 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6259 cat conftest.out >&5
6260 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6261 lt_cv_nm_interface="MS dumpbin"
6263 rm -f conftest*
6265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6266 $as_echo "$lt_cv_nm_interface" >&6; }
6268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6269 $as_echo_n "checking whether ln -s works... " >&6; }
6270 LN_S=$as_ln_s
6271 if test "$LN_S" = "ln -s"; then
6272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6273 $as_echo "yes" >&6; }
6274 else
6275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6276 $as_echo "no, using $LN_S" >&6; }
6279 # find the maximum length of command line arguments
6280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6281 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6282 if ${lt_cv_sys_max_cmd_len+:} false; then :
6283 $as_echo_n "(cached) " >&6
6284 else
6286 teststring="ABCD"
6288 case $build_os in
6289 msdosdjgpp*)
6290 # On DJGPP, this test can blow up pretty badly due to problems in libc
6291 # (any single argument exceeding 2000 bytes causes a buffer overrun
6292 # during glob expansion). Even if it were fixed, the result of this
6293 # check would be larger than it should be.
6294 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6297 gnu*)
6298 # Under GNU Hurd, this test is not required because there is
6299 # no limit to the length of command line arguments.
6300 # Libtool will interpret -1 as no limit whatsoever
6301 lt_cv_sys_max_cmd_len=-1;
6304 cygwin* | mingw* | cegcc*)
6305 # On Win9x/ME, this test blows up -- it succeeds, but takes
6306 # about 5 minutes as the teststring grows exponentially.
6307 # Worse, since 9x/ME are not pre-emptively multitasking,
6308 # you end up with a "frozen" computer, even though with patience
6309 # the test eventually succeeds (with a max line length of 256k).
6310 # Instead, let's just punt: use the minimum linelength reported by
6311 # all of the supported platforms: 8192 (on NT/2K/XP).
6312 lt_cv_sys_max_cmd_len=8192;
6315 mint*)
6316 # On MiNT this can take a long time and run out of memory.
6317 lt_cv_sys_max_cmd_len=8192;
6320 amigaos*)
6321 # On AmigaOS with pdksh, this test takes hours, literally.
6322 # So we just punt and use a minimum line length of 8192.
6323 lt_cv_sys_max_cmd_len=8192;
6326 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6327 # This has been around since 386BSD, at least. Likely further.
6328 if test -x /sbin/sysctl; then
6329 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6330 elif test -x /usr/sbin/sysctl; then
6331 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6332 else
6333 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6335 # And add a safety zone
6336 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6337 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6340 interix*)
6341 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6342 lt_cv_sys_max_cmd_len=196608
6345 osf*)
6346 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6347 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6348 # nice to cause kernel panics so lets avoid the loop below.
6349 # First set a reasonable default.
6350 lt_cv_sys_max_cmd_len=16384
6352 if test -x /sbin/sysconfig; then
6353 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6354 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6355 esac
6358 sco3.2v5*)
6359 lt_cv_sys_max_cmd_len=102400
6361 sysv5* | sco5v6* | sysv4.2uw2*)
6362 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6363 if test -n "$kargmax"; then
6364 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6365 else
6366 lt_cv_sys_max_cmd_len=32768
6370 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6371 if test -n "$lt_cv_sys_max_cmd_len"; then
6372 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6373 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6374 else
6375 # Make teststring a little bigger before we do anything with it.
6376 # a 1K string should be a reasonable start.
6377 for i in 1 2 3 4 5 6 7 8 ; do
6378 teststring=$teststring$teststring
6379 done
6380 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6381 # If test is not a shell built-in, we'll probably end up computing a
6382 # maximum length that is only half of the actual maximum length, but
6383 # we can't tell.
6384 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6385 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6386 test $i != 17 # 1/2 MB should be enough
6388 i=`expr $i + 1`
6389 teststring=$teststring$teststring
6390 done
6391 # Only check the string length outside the loop.
6392 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6393 teststring=
6394 # Add a significant safety factor because C++ compilers can tack on
6395 # massive amounts of additional arguments before passing them to the
6396 # linker. It appears as though 1/2 is a usable value.
6397 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6400 esac
6404 if test -n $lt_cv_sys_max_cmd_len ; then
6405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6406 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6407 else
6408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6409 $as_echo "none" >&6; }
6411 max_cmd_len=$lt_cv_sys_max_cmd_len
6418 : ${CP="cp -f"}
6419 : ${MV="mv -f"}
6420 : ${RM="rm -f"}
6422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6423 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6424 # Try some XSI features
6425 xsi_shell=no
6426 ( _lt_dummy="a/b/c"
6427 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6428 = c,a/b,, \
6429 && eval 'test $(( 1 + 1 )) -eq 2 \
6430 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6431 && xsi_shell=yes
6432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6433 $as_echo "$xsi_shell" >&6; }
6436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6437 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6438 lt_shell_append=no
6439 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6440 >/dev/null 2>&1 \
6441 && lt_shell_append=yes
6442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6443 $as_echo "$lt_shell_append" >&6; }
6446 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6447 lt_unset=unset
6448 else
6449 lt_unset=false
6456 # test EBCDIC or ASCII
6457 case `echo X|tr X '\101'` in
6458 A) # ASCII based system
6459 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6460 lt_SP2NL='tr \040 \012'
6461 lt_NL2SP='tr \015\012 \040\040'
6463 *) # EBCDIC based system
6464 lt_SP2NL='tr \100 \n'
6465 lt_NL2SP='tr \r\n \100\100'
6467 esac
6477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6478 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6479 if ${lt_cv_ld_reload_flag+:} false; then :
6480 $as_echo_n "(cached) " >&6
6481 else
6482 lt_cv_ld_reload_flag='-r'
6484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6485 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6486 reload_flag=$lt_cv_ld_reload_flag
6487 case $reload_flag in
6488 "" | " "*) ;;
6489 *) reload_flag=" $reload_flag" ;;
6490 esac
6491 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6492 case $host_os in
6493 darwin*)
6494 if test "$GCC" = yes; then
6495 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6496 else
6497 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6500 esac
6510 if test -n "$ac_tool_prefix"; then
6511 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6512 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6514 $as_echo_n "checking for $ac_word... " >&6; }
6515 if ${ac_cv_prog_OBJDUMP+:} false; then :
6516 $as_echo_n "(cached) " >&6
6517 else
6518 if test -n "$OBJDUMP"; then
6519 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6520 else
6521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6522 for as_dir in $PATH
6524 IFS=$as_save_IFS
6525 test -z "$as_dir" && as_dir=.
6526 for ac_exec_ext in '' $ac_executable_extensions; do
6527 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6528 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6530 break 2
6532 done
6533 done
6534 IFS=$as_save_IFS
6538 OBJDUMP=$ac_cv_prog_OBJDUMP
6539 if test -n "$OBJDUMP"; then
6540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6541 $as_echo "$OBJDUMP" >&6; }
6542 else
6543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6544 $as_echo "no" >&6; }
6549 if test -z "$ac_cv_prog_OBJDUMP"; then
6550 ac_ct_OBJDUMP=$OBJDUMP
6551 # Extract the first word of "objdump", so it can be a program name with args.
6552 set dummy objdump; ac_word=$2
6553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6554 $as_echo_n "checking for $ac_word... " >&6; }
6555 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6556 $as_echo_n "(cached) " >&6
6557 else
6558 if test -n "$ac_ct_OBJDUMP"; then
6559 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6560 else
6561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6562 for as_dir in $PATH
6564 IFS=$as_save_IFS
6565 test -z "$as_dir" && as_dir=.
6566 for ac_exec_ext in '' $ac_executable_extensions; do
6567 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6568 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6570 break 2
6572 done
6573 done
6574 IFS=$as_save_IFS
6578 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6579 if test -n "$ac_ct_OBJDUMP"; then
6580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6581 $as_echo "$ac_ct_OBJDUMP" >&6; }
6582 else
6583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6584 $as_echo "no" >&6; }
6587 if test "x$ac_ct_OBJDUMP" = x; then
6588 OBJDUMP="false"
6589 else
6590 case $cross_compiling:$ac_tool_warned in
6591 yes:)
6592 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6593 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6594 ac_tool_warned=yes ;;
6595 esac
6596 OBJDUMP=$ac_ct_OBJDUMP
6598 else
6599 OBJDUMP="$ac_cv_prog_OBJDUMP"
6602 test -z "$OBJDUMP" && OBJDUMP=objdump
6612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6613 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6614 if ${lt_cv_deplibs_check_method+:} false; then :
6615 $as_echo_n "(cached) " >&6
6616 else
6617 lt_cv_file_magic_cmd='$MAGIC_CMD'
6618 lt_cv_file_magic_test_file=
6619 lt_cv_deplibs_check_method='unknown'
6620 # Need to set the preceding variable on all platforms that support
6621 # interlibrary dependencies.
6622 # 'none' -- dependencies not supported.
6623 # `unknown' -- same as none, but documents that we really don't know.
6624 # 'pass_all' -- all dependencies passed with no checks.
6625 # 'test_compile' -- check by making test program.
6626 # 'file_magic [[regex]]' -- check by looking for files in library path
6627 # which responds to the $file_magic_cmd with a given extended regex.
6628 # If you have `file' or equivalent on your system and you're not sure
6629 # whether `pass_all' will *always* work, you probably want this one.
6631 case $host_os in
6632 aix[4-9]*)
6633 lt_cv_deplibs_check_method=pass_all
6636 beos*)
6637 lt_cv_deplibs_check_method=pass_all
6640 bsdi[45]*)
6641 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6642 lt_cv_file_magic_cmd='/usr/bin/file -L'
6643 lt_cv_file_magic_test_file=/shlib/libc.so
6646 cygwin*)
6647 # func_win32_libid is a shell function defined in ltmain.sh
6648 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6649 lt_cv_file_magic_cmd='func_win32_libid'
6652 mingw* | pw32*)
6653 # Base MSYS/MinGW do not provide the 'file' command needed by
6654 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6655 # unless we find 'file', for example because we are cross-compiling.
6656 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6657 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6658 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6659 lt_cv_file_magic_cmd='func_win32_libid'
6660 else
6661 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6662 lt_cv_file_magic_cmd='$OBJDUMP -f'
6666 cegcc*)
6667 # use the weaker test based on 'objdump'. See mingw*.
6668 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6669 lt_cv_file_magic_cmd='$OBJDUMP -f'
6672 darwin* | rhapsody*)
6673 lt_cv_deplibs_check_method=pass_all
6676 freebsd* | dragonfly*)
6677 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6678 case $host_cpu in
6679 i*86 )
6680 # Not sure whether the presence of OpenBSD here was a mistake.
6681 # Let's accept both of them until this is cleared up.
6682 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6683 lt_cv_file_magic_cmd=/usr/bin/file
6684 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6686 esac
6687 else
6688 lt_cv_deplibs_check_method=pass_all
6692 gnu*)
6693 lt_cv_deplibs_check_method=pass_all
6696 haiku*)
6697 lt_cv_deplibs_check_method=pass_all
6700 hpux10.20* | hpux11*)
6701 lt_cv_file_magic_cmd=/usr/bin/file
6702 case $host_cpu in
6703 ia64*)
6704 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6705 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6707 hppa*64*)
6708 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]'
6709 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6712 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6713 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6715 esac
6718 interix[3-9]*)
6719 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6720 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6723 irix5* | irix6* | nonstopux*)
6724 case $LD in
6725 *-32|*"-32 ") libmagic=32-bit;;
6726 *-n32|*"-n32 ") libmagic=N32;;
6727 *-64|*"-64 ") libmagic=64-bit;;
6728 *) libmagic=never-match;;
6729 esac
6730 lt_cv_deplibs_check_method=pass_all
6733 # This must be Linux ELF.
6734 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
6735 lt_cv_deplibs_check_method=pass_all
6738 netbsd*)
6739 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6740 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6741 else
6742 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6746 newos6*)
6747 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6748 lt_cv_file_magic_cmd=/usr/bin/file
6749 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6752 *nto* | *qnx*)
6753 lt_cv_deplibs_check_method=pass_all
6756 openbsd*)
6757 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6758 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6759 else
6760 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6764 osf3* | osf4* | osf5*)
6765 lt_cv_deplibs_check_method=pass_all
6768 rdos*)
6769 lt_cv_deplibs_check_method=pass_all
6772 solaris*)
6773 lt_cv_deplibs_check_method=pass_all
6776 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6777 lt_cv_deplibs_check_method=pass_all
6780 sysv4 | sysv4.3*)
6781 case $host_vendor in
6782 motorola)
6783 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]'
6784 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6786 ncr)
6787 lt_cv_deplibs_check_method=pass_all
6789 sequent)
6790 lt_cv_file_magic_cmd='/bin/file'
6791 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6793 sni)
6794 lt_cv_file_magic_cmd='/bin/file'
6795 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6796 lt_cv_file_magic_test_file=/lib/libc.so
6798 siemens)
6799 lt_cv_deplibs_check_method=pass_all
6802 lt_cv_deplibs_check_method=pass_all
6804 esac
6807 tpf*)
6808 lt_cv_deplibs_check_method=pass_all
6810 vxworks*)
6811 # Assume VxWorks cross toolchains are built on Linux, possibly
6812 # as canadian for Windows hosts.
6813 lt_cv_deplibs_check_method=pass_all
6815 esac
6818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6819 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6820 file_magic_cmd=$lt_cv_file_magic_cmd
6821 deplibs_check_method=$lt_cv_deplibs_check_method
6822 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6835 plugin_option=
6836 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
6837 for plugin in $plugin_names; do
6838 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
6839 if test x$plugin_so = x$plugin; then
6840 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
6842 if test x$plugin_so != x$plugin; then
6843 plugin_option="--plugin $plugin_so"
6844 break
6846 done
6848 if test -n "$ac_tool_prefix"; then
6849 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6850 set dummy ${ac_tool_prefix}ar; ac_word=$2
6851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6852 $as_echo_n "checking for $ac_word... " >&6; }
6853 if ${ac_cv_prog_AR+:} false; then :
6854 $as_echo_n "(cached) " >&6
6855 else
6856 if test -n "$AR"; then
6857 ac_cv_prog_AR="$AR" # Let the user override the test.
6858 else
6859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6860 for as_dir in $PATH
6862 IFS=$as_save_IFS
6863 test -z "$as_dir" && as_dir=.
6864 for ac_exec_ext in '' $ac_executable_extensions; do
6865 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6866 ac_cv_prog_AR="${ac_tool_prefix}ar"
6867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6868 break 2
6870 done
6871 done
6872 IFS=$as_save_IFS
6876 AR=$ac_cv_prog_AR
6877 if test -n "$AR"; then
6878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6879 $as_echo "$AR" >&6; }
6880 else
6881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6882 $as_echo "no" >&6; }
6887 if test -z "$ac_cv_prog_AR"; then
6888 ac_ct_AR=$AR
6889 # Extract the first word of "ar", so it can be a program name with args.
6890 set dummy ar; ac_word=$2
6891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6892 $as_echo_n "checking for $ac_word... " >&6; }
6893 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6894 $as_echo_n "(cached) " >&6
6895 else
6896 if test -n "$ac_ct_AR"; then
6897 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6898 else
6899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6900 for as_dir in $PATH
6902 IFS=$as_save_IFS
6903 test -z "$as_dir" && as_dir=.
6904 for ac_exec_ext in '' $ac_executable_extensions; do
6905 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6906 ac_cv_prog_ac_ct_AR="ar"
6907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6908 break 2
6910 done
6911 done
6912 IFS=$as_save_IFS
6916 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6917 if test -n "$ac_ct_AR"; then
6918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6919 $as_echo "$ac_ct_AR" >&6; }
6920 else
6921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6922 $as_echo "no" >&6; }
6925 if test "x$ac_ct_AR" = x; then
6926 AR="false"
6927 else
6928 case $cross_compiling:$ac_tool_warned in
6929 yes:)
6930 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6931 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6932 ac_tool_warned=yes ;;
6933 esac
6934 AR=$ac_ct_AR
6936 else
6937 AR="$ac_cv_prog_AR"
6940 test -z "$AR" && AR=ar
6941 if test -n "$plugin_option"; then
6942 if $AR --help 2>&1 | grep -q "\--plugin"; then
6943 touch conftest.c
6944 $AR $plugin_option rc conftest.a conftest.c
6945 if test "$?" != 0; then
6946 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
6947 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
6948 else
6949 AR="$AR $plugin_option"
6951 rm -f conftest.*
6954 test -z "$AR_FLAGS" && AR_FLAGS=cru
6966 if test -n "$ac_tool_prefix"; then
6967 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6968 set dummy ${ac_tool_prefix}strip; ac_word=$2
6969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6970 $as_echo_n "checking for $ac_word... " >&6; }
6971 if ${ac_cv_prog_STRIP+:} false; then :
6972 $as_echo_n "(cached) " >&6
6973 else
6974 if test -n "$STRIP"; then
6975 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6976 else
6977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6978 for as_dir in $PATH
6980 IFS=$as_save_IFS
6981 test -z "$as_dir" && as_dir=.
6982 for ac_exec_ext in '' $ac_executable_extensions; do
6983 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6984 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6986 break 2
6988 done
6989 done
6990 IFS=$as_save_IFS
6994 STRIP=$ac_cv_prog_STRIP
6995 if test -n "$STRIP"; then
6996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6997 $as_echo "$STRIP" >&6; }
6998 else
6999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7000 $as_echo "no" >&6; }
7005 if test -z "$ac_cv_prog_STRIP"; then
7006 ac_ct_STRIP=$STRIP
7007 # Extract the first word of "strip", so it can be a program name with args.
7008 set dummy strip; ac_word=$2
7009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7010 $as_echo_n "checking for $ac_word... " >&6; }
7011 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7012 $as_echo_n "(cached) " >&6
7013 else
7014 if test -n "$ac_ct_STRIP"; then
7015 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7016 else
7017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7018 for as_dir in $PATH
7020 IFS=$as_save_IFS
7021 test -z "$as_dir" && as_dir=.
7022 for ac_exec_ext in '' $ac_executable_extensions; do
7023 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7024 ac_cv_prog_ac_ct_STRIP="strip"
7025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7026 break 2
7028 done
7029 done
7030 IFS=$as_save_IFS
7034 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7035 if test -n "$ac_ct_STRIP"; then
7036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7037 $as_echo "$ac_ct_STRIP" >&6; }
7038 else
7039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7040 $as_echo "no" >&6; }
7043 if test "x$ac_ct_STRIP" = x; then
7044 STRIP=":"
7045 else
7046 case $cross_compiling:$ac_tool_warned in
7047 yes:)
7048 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7049 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7050 ac_tool_warned=yes ;;
7051 esac
7052 STRIP=$ac_ct_STRIP
7054 else
7055 STRIP="$ac_cv_prog_STRIP"
7058 test -z "$STRIP" && STRIP=:
7065 if test -n "$ac_tool_prefix"; then
7066 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7067 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7069 $as_echo_n "checking for $ac_word... " >&6; }
7070 if ${ac_cv_prog_RANLIB+:} false; then :
7071 $as_echo_n "(cached) " >&6
7072 else
7073 if test -n "$RANLIB"; then
7074 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7075 else
7076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7077 for as_dir in $PATH
7079 IFS=$as_save_IFS
7080 test -z "$as_dir" && as_dir=.
7081 for ac_exec_ext in '' $ac_executable_extensions; do
7082 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7083 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7085 break 2
7087 done
7088 done
7089 IFS=$as_save_IFS
7093 RANLIB=$ac_cv_prog_RANLIB
7094 if test -n "$RANLIB"; then
7095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7096 $as_echo "$RANLIB" >&6; }
7097 else
7098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7099 $as_echo "no" >&6; }
7104 if test -z "$ac_cv_prog_RANLIB"; then
7105 ac_ct_RANLIB=$RANLIB
7106 # Extract the first word of "ranlib", so it can be a program name with args.
7107 set dummy ranlib; ac_word=$2
7108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7109 $as_echo_n "checking for $ac_word... " >&6; }
7110 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7111 $as_echo_n "(cached) " >&6
7112 else
7113 if test -n "$ac_ct_RANLIB"; then
7114 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7115 else
7116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7117 for as_dir in $PATH
7119 IFS=$as_save_IFS
7120 test -z "$as_dir" && as_dir=.
7121 for ac_exec_ext in '' $ac_executable_extensions; do
7122 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7123 ac_cv_prog_ac_ct_RANLIB="ranlib"
7124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7125 break 2
7127 done
7128 done
7129 IFS=$as_save_IFS
7133 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7134 if test -n "$ac_ct_RANLIB"; then
7135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7136 $as_echo "$ac_ct_RANLIB" >&6; }
7137 else
7138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7139 $as_echo "no" >&6; }
7142 if test "x$ac_ct_RANLIB" = x; then
7143 RANLIB=":"
7144 else
7145 case $cross_compiling:$ac_tool_warned in
7146 yes:)
7147 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7148 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7149 ac_tool_warned=yes ;;
7150 esac
7151 RANLIB=$ac_ct_RANLIB
7153 else
7154 RANLIB="$ac_cv_prog_RANLIB"
7157 test -z "$RANLIB" && RANLIB=:
7158 if test -n "$plugin_option" && test "$RANLIB" != ":"; then
7159 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
7160 RANLIB="$RANLIB $plugin_option"
7169 # Determine commands to create old-style static archives.
7170 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7171 old_postinstall_cmds='chmod 644 $oldlib'
7172 old_postuninstall_cmds=
7174 if test -n "$RANLIB"; then
7175 case $host_os in
7176 openbsd*)
7177 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7180 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7182 esac
7183 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7186 case $host_os in
7187 darwin*)
7188 lock_old_archive_extraction=yes ;;
7190 lock_old_archive_extraction=no ;;
7191 esac
7231 # If no C compiler was specified, use CC.
7232 LTCC=${LTCC-"$CC"}
7234 # If no C compiler flags were specified, use CFLAGS.
7235 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7237 # Allow CC to be a program name with arguments.
7238 compiler=$CC
7241 # Check for command to grab the raw symbol name followed by C symbol from nm.
7242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7243 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7244 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7245 $as_echo_n "(cached) " >&6
7246 else
7248 # These are sane defaults that work on at least a few old systems.
7249 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7251 # Character class describing NM global symbol codes.
7252 symcode='[BCDEGRST]'
7254 # Regexp to match symbols that can be accessed directly from C.
7255 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7257 # Define system-specific variables.
7258 case $host_os in
7259 aix*)
7260 symcode='[BCDT]'
7262 cygwin* | mingw* | pw32* | cegcc*)
7263 symcode='[ABCDGISTW]'
7265 hpux*)
7266 if test "$host_cpu" = ia64; then
7267 symcode='[ABCDEGRST]'
7270 irix* | nonstopux*)
7271 symcode='[BCDEGRST]'
7273 osf*)
7274 symcode='[BCDEGQRST]'
7276 solaris*)
7277 symcode='[BCDRT]'
7279 sco3.2v5*)
7280 symcode='[DT]'
7282 sysv4.2uw2*)
7283 symcode='[DT]'
7285 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7286 symcode='[ABDT]'
7288 sysv4)
7289 symcode='[DFNSTU]'
7291 esac
7293 # If we're using GNU nm, then use its standard symbol codes.
7294 case `$NM -V 2>&1` in
7295 *GNU* | *'with BFD'*)
7296 symcode='[ABCDGIRSTW]' ;;
7297 esac
7299 # Transform an extracted symbol line into a proper C declaration.
7300 # Some systems (esp. on ia64) link data and code symbols differently,
7301 # so use this general approach.
7302 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7304 # Transform an extracted symbol line into symbol name and symbol address
7305 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7306 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'"
7308 # Handle CRLF in mingw tool chain
7309 opt_cr=
7310 case $build_os in
7311 mingw*)
7312 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7314 esac
7316 # Try without a prefix underscore, then with it.
7317 for ac_symprfx in "" "_"; do
7319 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7320 symxfrm="\\1 $ac_symprfx\\2 \\2"
7322 # Write the raw and C identifiers.
7323 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7324 # Fake it for dumpbin and say T for any non-static function
7325 # and D for any global variable.
7326 # Also find C++ and __fastcall symbols from MSVC++,
7327 # which start with @ or ?.
7328 lt_cv_sys_global_symbol_pipe="$AWK '"\
7329 " {last_section=section; section=\$ 3};"\
7330 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7331 " \$ 0!~/External *\|/{next};"\
7332 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7333 " {if(hide[section]) next};"\
7334 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7335 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7336 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7337 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7338 " ' prfx=^$ac_symprfx"
7339 else
7340 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7343 # Check to see that the pipe works correctly.
7344 pipe_works=no
7346 rm -f conftest*
7347 cat > conftest.$ac_ext <<_LT_EOF
7348 #ifdef __cplusplus
7349 extern "C" {
7350 #endif
7351 char nm_test_var;
7352 void nm_test_func(void);
7353 void nm_test_func(void){}
7354 #ifdef __cplusplus
7356 #endif
7357 int main(){nm_test_var='a';nm_test_func();return(0);}
7358 _LT_EOF
7360 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7361 (eval $ac_compile) 2>&5
7362 ac_status=$?
7363 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7364 test $ac_status = 0; }; then
7365 # Now try to grab the symbols.
7366 nlist=conftest.nm
7367 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7368 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7369 ac_status=$?
7370 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7371 test $ac_status = 0; } && test -s "$nlist"; then
7372 # Try sorting and uniquifying the output.
7373 if sort "$nlist" | uniq > "$nlist"T; then
7374 mv -f "$nlist"T "$nlist"
7375 else
7376 rm -f "$nlist"T
7379 # Make sure that we snagged all the symbols we need.
7380 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7381 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7382 cat <<_LT_EOF > conftest.$ac_ext
7383 #ifdef __cplusplus
7384 extern "C" {
7385 #endif
7387 _LT_EOF
7388 # Now generate the symbol file.
7389 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7391 cat <<_LT_EOF >> conftest.$ac_ext
7393 /* The mapping between symbol names and symbols. */
7394 const struct {
7395 const char *name;
7396 void *address;
7398 lt__PROGRAM__LTX_preloaded_symbols[] =
7400 { "@PROGRAM@", (void *) 0 },
7401 _LT_EOF
7402 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7403 cat <<\_LT_EOF >> conftest.$ac_ext
7404 {0, (void *) 0}
7407 /* This works around a problem in FreeBSD linker */
7408 #ifdef FREEBSD_WORKAROUND
7409 static const void *lt_preloaded_setup() {
7410 return lt__PROGRAM__LTX_preloaded_symbols;
7412 #endif
7414 #ifdef __cplusplus
7416 #endif
7417 _LT_EOF
7418 # Now try linking the two files.
7419 mv conftest.$ac_objext conftstm.$ac_objext
7420 lt_save_LIBS="$LIBS"
7421 lt_save_CFLAGS="$CFLAGS"
7422 LIBS="conftstm.$ac_objext"
7423 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7424 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7425 (eval $ac_link) 2>&5
7426 ac_status=$?
7427 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7428 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7429 pipe_works=yes
7431 LIBS="$lt_save_LIBS"
7432 CFLAGS="$lt_save_CFLAGS"
7433 else
7434 echo "cannot find nm_test_func in $nlist" >&5
7436 else
7437 echo "cannot find nm_test_var in $nlist" >&5
7439 else
7440 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7442 else
7443 echo "$progname: failed program was:" >&5
7444 cat conftest.$ac_ext >&5
7446 rm -rf conftest* conftst*
7448 # Do not use the global_symbol_pipe unless it works.
7449 if test "$pipe_works" = yes; then
7450 break
7451 else
7452 lt_cv_sys_global_symbol_pipe=
7454 done
7458 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7459 lt_cv_sys_global_symbol_to_cdecl=
7461 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7463 $as_echo "failed" >&6; }
7464 else
7465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7466 $as_echo "ok" >&6; }
7491 # Check whether --enable-libtool-lock was given.
7492 if test "${enable_libtool_lock+set}" = set; then :
7493 enableval=$enable_libtool_lock;
7496 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7498 # Some flags need to be propagated to the compiler or linker for good
7499 # libtool support.
7500 case $host in
7501 ia64-*-hpux*)
7502 # Find out which ABI we are using.
7503 echo 'int i;' > conftest.$ac_ext
7504 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7505 (eval $ac_compile) 2>&5
7506 ac_status=$?
7507 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7508 test $ac_status = 0; }; then
7509 case `/usr/bin/file conftest.$ac_objext` in
7510 *ELF-32*)
7511 HPUX_IA64_MODE="32"
7513 *ELF-64*)
7514 HPUX_IA64_MODE="64"
7516 esac
7518 rm -rf conftest*
7520 *-*-irix6*)
7521 # Find out which ABI we are using.
7522 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7523 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7524 (eval $ac_compile) 2>&5
7525 ac_status=$?
7526 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7527 test $ac_status = 0; }; then
7528 if test "$lt_cv_prog_gnu_ld" = yes; then
7529 case `/usr/bin/file conftest.$ac_objext` in
7530 *32-bit*)
7531 LD="${LD-ld} -melf32bsmip"
7533 *N32*)
7534 LD="${LD-ld} -melf32bmipn32"
7536 *64-bit*)
7537 LD="${LD-ld} -melf64bmip"
7539 esac
7540 else
7541 case `/usr/bin/file conftest.$ac_objext` in
7542 *32-bit*)
7543 LD="${LD-ld} -32"
7545 *N32*)
7546 LD="${LD-ld} -n32"
7548 *64-bit*)
7549 LD="${LD-ld} -64"
7551 esac
7554 rm -rf conftest*
7557 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7558 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7559 # Find out which ABI we are using.
7560 echo 'int i;' > conftest.$ac_ext
7561 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7562 (eval $ac_compile) 2>&5
7563 ac_status=$?
7564 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7565 test $ac_status = 0; }; then
7566 case `/usr/bin/file conftest.o` in
7567 *32-bit*)
7568 case $host in
7569 x86_64-*kfreebsd*-gnu)
7570 LD="${LD-ld} -m elf_i386_fbsd"
7572 x86_64-*linux*)
7573 case `/usr/bin/file conftest.o` in
7574 *x86-64*)
7575 LD="${LD-ld} -m elf32_x86_64"
7578 LD="${LD-ld} -m elf_i386"
7580 esac
7582 powerpc64le-*linux*)
7583 LD="${LD-ld} -m elf32lppclinux"
7585 powerpc64-*linux*)
7586 LD="${LD-ld} -m elf32ppclinux"
7588 s390x-*linux*)
7589 LD="${LD-ld} -m elf_s390"
7591 sparc64-*linux*)
7592 LD="${LD-ld} -m elf32_sparc"
7594 esac
7596 *64-bit*)
7597 case $host in
7598 x86_64-*kfreebsd*-gnu)
7599 LD="${LD-ld} -m elf_x86_64_fbsd"
7601 x86_64-*linux*)
7602 LD="${LD-ld} -m elf_x86_64"
7604 powerpcle-*linux*)
7605 LD="${LD-ld} -m elf64lppc"
7607 powerpc-*linux*)
7608 LD="${LD-ld} -m elf64ppc"
7610 s390*-*linux*|s390*-*tpf*)
7611 LD="${LD-ld} -m elf64_s390"
7613 sparc*-*linux*)
7614 LD="${LD-ld} -m elf64_sparc"
7616 esac
7618 esac
7620 rm -rf conftest*
7623 *-*-sco3.2v5*)
7624 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7625 SAVE_CFLAGS="$CFLAGS"
7626 CFLAGS="$CFLAGS -belf"
7627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7628 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7629 if ${lt_cv_cc_needs_belf+:} false; then :
7630 $as_echo_n "(cached) " >&6
7631 else
7632 ac_ext=c
7633 ac_cpp='$CPP $CPPFLAGS'
7634 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7635 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7636 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7639 /* end confdefs.h. */
7642 main ()
7646 return 0;
7648 _ACEOF
7649 if ac_fn_c_try_link "$LINENO"; then :
7650 lt_cv_cc_needs_belf=yes
7651 else
7652 lt_cv_cc_needs_belf=no
7654 rm -f core conftest.err conftest.$ac_objext \
7655 conftest$ac_exeext conftest.$ac_ext
7656 ac_ext=c
7657 ac_cpp='$CPP $CPPFLAGS'
7658 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7659 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7660 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7664 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7665 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7666 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7667 CFLAGS="$SAVE_CFLAGS"
7670 sparc*-*solaris*)
7671 # Find out which ABI we are using.
7672 echo 'int i;' > conftest.$ac_ext
7673 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7674 (eval $ac_compile) 2>&5
7675 ac_status=$?
7676 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7677 test $ac_status = 0; }; then
7678 case `/usr/bin/file conftest.o` in
7679 *64-bit*)
7680 case $lt_cv_prog_gnu_ld in
7681 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7683 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7684 LD="${LD-ld} -64"
7687 esac
7689 esac
7691 rm -rf conftest*
7693 esac
7695 need_locks="$enable_libtool_lock"
7698 case $host_os in
7699 rhapsody* | darwin*)
7700 if test -n "$ac_tool_prefix"; then
7701 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7702 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7704 $as_echo_n "checking for $ac_word... " >&6; }
7705 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7706 $as_echo_n "(cached) " >&6
7707 else
7708 if test -n "$DSYMUTIL"; then
7709 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7710 else
7711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7712 for as_dir in $PATH
7714 IFS=$as_save_IFS
7715 test -z "$as_dir" && as_dir=.
7716 for ac_exec_ext in '' $ac_executable_extensions; do
7717 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7718 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7720 break 2
7722 done
7723 done
7724 IFS=$as_save_IFS
7728 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7729 if test -n "$DSYMUTIL"; then
7730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7731 $as_echo "$DSYMUTIL" >&6; }
7732 else
7733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7734 $as_echo "no" >&6; }
7739 if test -z "$ac_cv_prog_DSYMUTIL"; then
7740 ac_ct_DSYMUTIL=$DSYMUTIL
7741 # Extract the first word of "dsymutil", so it can be a program name with args.
7742 set dummy dsymutil; ac_word=$2
7743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7744 $as_echo_n "checking for $ac_word... " >&6; }
7745 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7746 $as_echo_n "(cached) " >&6
7747 else
7748 if test -n "$ac_ct_DSYMUTIL"; then
7749 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7750 else
7751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7752 for as_dir in $PATH
7754 IFS=$as_save_IFS
7755 test -z "$as_dir" && as_dir=.
7756 for ac_exec_ext in '' $ac_executable_extensions; do
7757 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7758 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7760 break 2
7762 done
7763 done
7764 IFS=$as_save_IFS
7768 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7769 if test -n "$ac_ct_DSYMUTIL"; then
7770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7771 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7772 else
7773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7774 $as_echo "no" >&6; }
7777 if test "x$ac_ct_DSYMUTIL" = x; then
7778 DSYMUTIL=":"
7779 else
7780 case $cross_compiling:$ac_tool_warned in
7781 yes:)
7782 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7783 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7784 ac_tool_warned=yes ;;
7785 esac
7786 DSYMUTIL=$ac_ct_DSYMUTIL
7788 else
7789 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7792 if test -n "$ac_tool_prefix"; then
7793 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7794 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7796 $as_echo_n "checking for $ac_word... " >&6; }
7797 if ${ac_cv_prog_NMEDIT+:} false; then :
7798 $as_echo_n "(cached) " >&6
7799 else
7800 if test -n "$NMEDIT"; then
7801 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7802 else
7803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7804 for as_dir in $PATH
7806 IFS=$as_save_IFS
7807 test -z "$as_dir" && as_dir=.
7808 for ac_exec_ext in '' $ac_executable_extensions; do
7809 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7810 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7812 break 2
7814 done
7815 done
7816 IFS=$as_save_IFS
7820 NMEDIT=$ac_cv_prog_NMEDIT
7821 if test -n "$NMEDIT"; then
7822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7823 $as_echo "$NMEDIT" >&6; }
7824 else
7825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7826 $as_echo "no" >&6; }
7831 if test -z "$ac_cv_prog_NMEDIT"; then
7832 ac_ct_NMEDIT=$NMEDIT
7833 # Extract the first word of "nmedit", so it can be a program name with args.
7834 set dummy nmedit; ac_word=$2
7835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7836 $as_echo_n "checking for $ac_word... " >&6; }
7837 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7838 $as_echo_n "(cached) " >&6
7839 else
7840 if test -n "$ac_ct_NMEDIT"; then
7841 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7842 else
7843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7844 for as_dir in $PATH
7846 IFS=$as_save_IFS
7847 test -z "$as_dir" && as_dir=.
7848 for ac_exec_ext in '' $ac_executable_extensions; do
7849 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7850 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7852 break 2
7854 done
7855 done
7856 IFS=$as_save_IFS
7860 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7861 if test -n "$ac_ct_NMEDIT"; then
7862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7863 $as_echo "$ac_ct_NMEDIT" >&6; }
7864 else
7865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7866 $as_echo "no" >&6; }
7869 if test "x$ac_ct_NMEDIT" = x; then
7870 NMEDIT=":"
7871 else
7872 case $cross_compiling:$ac_tool_warned in
7873 yes:)
7874 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7875 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7876 ac_tool_warned=yes ;;
7877 esac
7878 NMEDIT=$ac_ct_NMEDIT
7880 else
7881 NMEDIT="$ac_cv_prog_NMEDIT"
7884 if test -n "$ac_tool_prefix"; then
7885 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7886 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7888 $as_echo_n "checking for $ac_word... " >&6; }
7889 if ${ac_cv_prog_LIPO+:} false; then :
7890 $as_echo_n "(cached) " >&6
7891 else
7892 if test -n "$LIPO"; then
7893 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7894 else
7895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7896 for as_dir in $PATH
7898 IFS=$as_save_IFS
7899 test -z "$as_dir" && as_dir=.
7900 for ac_exec_ext in '' $ac_executable_extensions; do
7901 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7902 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7904 break 2
7906 done
7907 done
7908 IFS=$as_save_IFS
7912 LIPO=$ac_cv_prog_LIPO
7913 if test -n "$LIPO"; then
7914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7915 $as_echo "$LIPO" >&6; }
7916 else
7917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7918 $as_echo "no" >&6; }
7923 if test -z "$ac_cv_prog_LIPO"; then
7924 ac_ct_LIPO=$LIPO
7925 # Extract the first word of "lipo", so it can be a program name with args.
7926 set dummy lipo; ac_word=$2
7927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7928 $as_echo_n "checking for $ac_word... " >&6; }
7929 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7930 $as_echo_n "(cached) " >&6
7931 else
7932 if test -n "$ac_ct_LIPO"; then
7933 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7934 else
7935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7936 for as_dir in $PATH
7938 IFS=$as_save_IFS
7939 test -z "$as_dir" && as_dir=.
7940 for ac_exec_ext in '' $ac_executable_extensions; do
7941 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7942 ac_cv_prog_ac_ct_LIPO="lipo"
7943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7944 break 2
7946 done
7947 done
7948 IFS=$as_save_IFS
7952 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7953 if test -n "$ac_ct_LIPO"; then
7954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7955 $as_echo "$ac_ct_LIPO" >&6; }
7956 else
7957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7958 $as_echo "no" >&6; }
7961 if test "x$ac_ct_LIPO" = x; then
7962 LIPO=":"
7963 else
7964 case $cross_compiling:$ac_tool_warned in
7965 yes:)
7966 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7967 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7968 ac_tool_warned=yes ;;
7969 esac
7970 LIPO=$ac_ct_LIPO
7972 else
7973 LIPO="$ac_cv_prog_LIPO"
7976 if test -n "$ac_tool_prefix"; then
7977 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7978 set dummy ${ac_tool_prefix}otool; ac_word=$2
7979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7980 $as_echo_n "checking for $ac_word... " >&6; }
7981 if ${ac_cv_prog_OTOOL+:} false; then :
7982 $as_echo_n "(cached) " >&6
7983 else
7984 if test -n "$OTOOL"; then
7985 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7986 else
7987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7988 for as_dir in $PATH
7990 IFS=$as_save_IFS
7991 test -z "$as_dir" && as_dir=.
7992 for ac_exec_ext in '' $ac_executable_extensions; do
7993 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7994 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7996 break 2
7998 done
7999 done
8000 IFS=$as_save_IFS
8004 OTOOL=$ac_cv_prog_OTOOL
8005 if test -n "$OTOOL"; then
8006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8007 $as_echo "$OTOOL" >&6; }
8008 else
8009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8010 $as_echo "no" >&6; }
8015 if test -z "$ac_cv_prog_OTOOL"; then
8016 ac_ct_OTOOL=$OTOOL
8017 # Extract the first word of "otool", so it can be a program name with args.
8018 set dummy otool; ac_word=$2
8019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8020 $as_echo_n "checking for $ac_word... " >&6; }
8021 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8022 $as_echo_n "(cached) " >&6
8023 else
8024 if test -n "$ac_ct_OTOOL"; then
8025 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8026 else
8027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8028 for as_dir in $PATH
8030 IFS=$as_save_IFS
8031 test -z "$as_dir" && as_dir=.
8032 for ac_exec_ext in '' $ac_executable_extensions; do
8033 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8034 ac_cv_prog_ac_ct_OTOOL="otool"
8035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8036 break 2
8038 done
8039 done
8040 IFS=$as_save_IFS
8044 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8045 if test -n "$ac_ct_OTOOL"; then
8046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8047 $as_echo "$ac_ct_OTOOL" >&6; }
8048 else
8049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8050 $as_echo "no" >&6; }
8053 if test "x$ac_ct_OTOOL" = x; then
8054 OTOOL=":"
8055 else
8056 case $cross_compiling:$ac_tool_warned in
8057 yes:)
8058 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8059 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8060 ac_tool_warned=yes ;;
8061 esac
8062 OTOOL=$ac_ct_OTOOL
8064 else
8065 OTOOL="$ac_cv_prog_OTOOL"
8068 if test -n "$ac_tool_prefix"; then
8069 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8070 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8072 $as_echo_n "checking for $ac_word... " >&6; }
8073 if ${ac_cv_prog_OTOOL64+:} false; then :
8074 $as_echo_n "(cached) " >&6
8075 else
8076 if test -n "$OTOOL64"; then
8077 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8078 else
8079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8080 for as_dir in $PATH
8082 IFS=$as_save_IFS
8083 test -z "$as_dir" && as_dir=.
8084 for ac_exec_ext in '' $ac_executable_extensions; do
8085 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8086 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8088 break 2
8090 done
8091 done
8092 IFS=$as_save_IFS
8096 OTOOL64=$ac_cv_prog_OTOOL64
8097 if test -n "$OTOOL64"; then
8098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8099 $as_echo "$OTOOL64" >&6; }
8100 else
8101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8102 $as_echo "no" >&6; }
8107 if test -z "$ac_cv_prog_OTOOL64"; then
8108 ac_ct_OTOOL64=$OTOOL64
8109 # Extract the first word of "otool64", so it can be a program name with args.
8110 set dummy otool64; ac_word=$2
8111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8112 $as_echo_n "checking for $ac_word... " >&6; }
8113 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8114 $as_echo_n "(cached) " >&6
8115 else
8116 if test -n "$ac_ct_OTOOL64"; then
8117 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8118 else
8119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8120 for as_dir in $PATH
8122 IFS=$as_save_IFS
8123 test -z "$as_dir" && as_dir=.
8124 for ac_exec_ext in '' $ac_executable_extensions; do
8125 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8126 ac_cv_prog_ac_ct_OTOOL64="otool64"
8127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8128 break 2
8130 done
8131 done
8132 IFS=$as_save_IFS
8136 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8137 if test -n "$ac_ct_OTOOL64"; then
8138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8139 $as_echo "$ac_ct_OTOOL64" >&6; }
8140 else
8141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8142 $as_echo "no" >&6; }
8145 if test "x$ac_ct_OTOOL64" = x; then
8146 OTOOL64=":"
8147 else
8148 case $cross_compiling:$ac_tool_warned in
8149 yes:)
8150 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8151 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8152 ac_tool_warned=yes ;;
8153 esac
8154 OTOOL64=$ac_ct_OTOOL64
8156 else
8157 OTOOL64="$ac_cv_prog_OTOOL64"
8186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8187 $as_echo_n "checking for -single_module linker flag... " >&6; }
8188 if ${lt_cv_apple_cc_single_mod+:} false; then :
8189 $as_echo_n "(cached) " >&6
8190 else
8191 lt_cv_apple_cc_single_mod=no
8192 if test -z "${LT_MULTI_MODULE}"; then
8193 # By default we will add the -single_module flag. You can override
8194 # by either setting the environment variable LT_MULTI_MODULE
8195 # non-empty at configure time, or by adding -multi_module to the
8196 # link flags.
8197 rm -rf libconftest.dylib*
8198 echo "int foo(void){return 1;}" > conftest.c
8199 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8200 -dynamiclib -Wl,-single_module conftest.c" >&5
8201 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8202 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8203 _lt_result=$?
8204 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8205 lt_cv_apple_cc_single_mod=yes
8206 else
8207 cat conftest.err >&5
8209 rm -rf libconftest.dylib*
8210 rm -f conftest.*
8213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8214 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8216 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8217 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8218 $as_echo_n "(cached) " >&6
8219 else
8220 lt_cv_ld_exported_symbols_list=no
8221 save_LDFLAGS=$LDFLAGS
8222 echo "_main" > conftest.sym
8223 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8225 /* end confdefs.h. */
8228 main ()
8232 return 0;
8234 _ACEOF
8235 if ac_fn_c_try_link "$LINENO"; then :
8236 lt_cv_ld_exported_symbols_list=yes
8237 else
8238 lt_cv_ld_exported_symbols_list=no
8240 rm -f core conftest.err conftest.$ac_objext \
8241 conftest$ac_exeext conftest.$ac_ext
8242 LDFLAGS="$save_LDFLAGS"
8245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8246 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8248 $as_echo_n "checking for -force_load linker flag... " >&6; }
8249 if ${lt_cv_ld_force_load+:} false; then :
8250 $as_echo_n "(cached) " >&6
8251 else
8252 lt_cv_ld_force_load=no
8253 cat > conftest.c << _LT_EOF
8254 int forced_loaded() { return 2;}
8255 _LT_EOF
8256 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8257 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8258 echo "$AR cru libconftest.a conftest.o" >&5
8259 $AR cru libconftest.a conftest.o 2>&5
8260 cat > conftest.c << _LT_EOF
8261 int main() { return 0;}
8262 _LT_EOF
8263 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8264 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8265 _lt_result=$?
8266 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8267 lt_cv_ld_force_load=yes
8268 else
8269 cat conftest.err >&5
8271 rm -f conftest.err libconftest.a conftest conftest.c
8272 rm -rf conftest.dSYM
8275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8276 $as_echo "$lt_cv_ld_force_load" >&6; }
8277 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
8278 # build without first building modern cctools / linker.
8279 case $host_cpu-$host_os in
8280 *-rhapsody* | *-darwin1.[012])
8281 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8282 *-darwin1.*)
8283 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8284 *-darwin*)
8285 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
8286 # deployment target is forced to an earlier version.
8287 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
8288 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0-9]*)
8290 10.[012][,.]*)
8291 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8295 esac
8297 esac
8298 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8299 _lt_dar_single_mod='$single_module'
8301 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8302 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8303 else
8304 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8306 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8307 _lt_dsymutil='~$DSYMUTIL $lib || :'
8308 else
8309 _lt_dsymutil=
8312 esac
8314 ac_ext=c
8315 ac_cpp='$CPP $CPPFLAGS'
8316 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8317 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8318 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8320 $as_echo_n "checking how to run the C preprocessor... " >&6; }
8321 # On Suns, sometimes $CPP names a directory.
8322 if test -n "$CPP" && test -d "$CPP"; then
8323 CPP=
8325 if test -z "$CPP"; then
8326 if ${ac_cv_prog_CPP+:} false; then :
8327 $as_echo_n "(cached) " >&6
8328 else
8329 # Double quotes because CPP needs to be expanded
8330 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8332 ac_preproc_ok=false
8333 for ac_c_preproc_warn_flag in '' yes
8335 # Use a header file that comes with gcc, so configuring glibc
8336 # with a fresh cross-compiler works.
8337 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8338 # <limits.h> exists even on freestanding compilers.
8339 # On the NeXT, cc -E runs the code through the compiler's parser,
8340 # not just through cpp. "Syntax error" is here to catch this case.
8341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8342 /* end confdefs.h. */
8343 #ifdef __STDC__
8344 # include <limits.h>
8345 #else
8346 # include <assert.h>
8347 #endif
8348 Syntax error
8349 _ACEOF
8350 if ac_fn_c_try_cpp "$LINENO"; then :
8352 else
8353 # Broken: fails on valid input.
8354 continue
8356 rm -f conftest.err conftest.i conftest.$ac_ext
8358 # OK, works on sane cases. Now check whether nonexistent headers
8359 # can be detected and how.
8360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8361 /* end confdefs.h. */
8362 #include <ac_nonexistent.h>
8363 _ACEOF
8364 if ac_fn_c_try_cpp "$LINENO"; then :
8365 # Broken: success on invalid input.
8366 continue
8367 else
8368 # Passes both tests.
8369 ac_preproc_ok=:
8370 break
8372 rm -f conftest.err conftest.i conftest.$ac_ext
8374 done
8375 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8376 rm -f conftest.i conftest.err conftest.$ac_ext
8377 if $ac_preproc_ok; then :
8378 break
8381 done
8382 ac_cv_prog_CPP=$CPP
8385 CPP=$ac_cv_prog_CPP
8386 else
8387 ac_cv_prog_CPP=$CPP
8389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8390 $as_echo "$CPP" >&6; }
8391 ac_preproc_ok=false
8392 for ac_c_preproc_warn_flag in '' yes
8394 # Use a header file that comes with gcc, so configuring glibc
8395 # with a fresh cross-compiler works.
8396 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8397 # <limits.h> exists even on freestanding compilers.
8398 # On the NeXT, cc -E runs the code through the compiler's parser,
8399 # not just through cpp. "Syntax error" is here to catch this case.
8400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8401 /* end confdefs.h. */
8402 #ifdef __STDC__
8403 # include <limits.h>
8404 #else
8405 # include <assert.h>
8406 #endif
8407 Syntax error
8408 _ACEOF
8409 if ac_fn_c_try_cpp "$LINENO"; then :
8411 else
8412 # Broken: fails on valid input.
8413 continue
8415 rm -f conftest.err conftest.i conftest.$ac_ext
8417 # OK, works on sane cases. Now check whether nonexistent headers
8418 # can be detected and how.
8419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8420 /* end confdefs.h. */
8421 #include <ac_nonexistent.h>
8422 _ACEOF
8423 if ac_fn_c_try_cpp "$LINENO"; then :
8424 # Broken: success on invalid input.
8425 continue
8426 else
8427 # Passes both tests.
8428 ac_preproc_ok=:
8429 break
8431 rm -f conftest.err conftest.i conftest.$ac_ext
8433 done
8434 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8435 rm -f conftest.i conftest.err conftest.$ac_ext
8436 if $ac_preproc_ok; then :
8438 else
8439 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8440 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8441 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8442 See \`config.log' for more details" "$LINENO" 5; }
8445 ac_ext=c
8446 ac_cpp='$CPP $CPPFLAGS'
8447 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8448 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8449 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8453 $as_echo_n "checking for ANSI C header files... " >&6; }
8454 if ${ac_cv_header_stdc+:} false; then :
8455 $as_echo_n "(cached) " >&6
8456 else
8457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8458 /* end confdefs.h. */
8459 #include <stdlib.h>
8460 #include <stdarg.h>
8461 #include <string.h>
8462 #include <float.h>
8465 main ()
8469 return 0;
8471 _ACEOF
8472 if ac_fn_c_try_compile "$LINENO"; then :
8473 ac_cv_header_stdc=yes
8474 else
8475 ac_cv_header_stdc=no
8477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8479 if test $ac_cv_header_stdc = yes; then
8480 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8482 /* end confdefs.h. */
8483 #include <string.h>
8485 _ACEOF
8486 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8487 $EGREP "memchr" >/dev/null 2>&1; then :
8489 else
8490 ac_cv_header_stdc=no
8492 rm -f conftest*
8496 if test $ac_cv_header_stdc = yes; then
8497 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8499 /* end confdefs.h. */
8500 #include <stdlib.h>
8502 _ACEOF
8503 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8504 $EGREP "free" >/dev/null 2>&1; then :
8506 else
8507 ac_cv_header_stdc=no
8509 rm -f conftest*
8513 if test $ac_cv_header_stdc = yes; then
8514 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8515 if test "$cross_compiling" = yes; then :
8517 else
8518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8519 /* end confdefs.h. */
8520 #include <ctype.h>
8521 #include <stdlib.h>
8522 #if ((' ' & 0x0FF) == 0x020)
8523 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8524 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8525 #else
8526 # define ISLOWER(c) \
8527 (('a' <= (c) && (c) <= 'i') \
8528 || ('j' <= (c) && (c) <= 'r') \
8529 || ('s' <= (c) && (c) <= 'z'))
8530 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8531 #endif
8533 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8535 main ()
8537 int i;
8538 for (i = 0; i < 256; i++)
8539 if (XOR (islower (i), ISLOWER (i))
8540 || toupper (i) != TOUPPER (i))
8541 return 2;
8542 return 0;
8544 _ACEOF
8545 if ac_fn_c_try_run "$LINENO"; then :
8547 else
8548 ac_cv_header_stdc=no
8550 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8551 conftest.$ac_objext conftest.beam conftest.$ac_ext
8556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8557 $as_echo "$ac_cv_header_stdc" >&6; }
8558 if test $ac_cv_header_stdc = yes; then
8560 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8564 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8565 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8566 inttypes.h stdint.h unistd.h
8567 do :
8568 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8569 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8571 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8572 cat >>confdefs.h <<_ACEOF
8573 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8574 _ACEOF
8578 done
8581 for ac_header in dlfcn.h
8582 do :
8583 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8585 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8586 cat >>confdefs.h <<_ACEOF
8587 #define HAVE_DLFCN_H 1
8588 _ACEOF
8592 done
8599 # Set options
8603 enable_dlopen=no
8606 enable_win32_dll=no
8609 # Check whether --enable-shared was given.
8610 if test "${enable_shared+set}" = set; then :
8611 enableval=$enable_shared; p=${PACKAGE-default}
8612 case $enableval in
8613 yes) enable_shared=yes ;;
8614 no) enable_shared=no ;;
8616 enable_shared=no
8617 # Look at the argument we got. We use all the common list separators.
8618 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8619 for pkg in $enableval; do
8620 IFS="$lt_save_ifs"
8621 if test "X$pkg" = "X$p"; then
8622 enable_shared=yes
8624 done
8625 IFS="$lt_save_ifs"
8627 esac
8628 else
8629 enable_shared=yes
8640 # Check whether --enable-static was given.
8641 if test "${enable_static+set}" = set; then :
8642 enableval=$enable_static; p=${PACKAGE-default}
8643 case $enableval in
8644 yes) enable_static=yes ;;
8645 no) enable_static=no ;;
8647 enable_static=no
8648 # Look at the argument we got. We use all the common list separators.
8649 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8650 for pkg in $enableval; do
8651 IFS="$lt_save_ifs"
8652 if test "X$pkg" = "X$p"; then
8653 enable_static=yes
8655 done
8656 IFS="$lt_save_ifs"
8658 esac
8659 else
8660 enable_static=yes
8672 # Check whether --with-pic was given.
8673 if test "${with_pic+set}" = set; then :
8674 withval=$with_pic; pic_mode="$withval"
8675 else
8676 pic_mode=default
8680 test -z "$pic_mode" && pic_mode=default
8688 # Check whether --enable-fast-install was given.
8689 if test "${enable_fast_install+set}" = set; then :
8690 enableval=$enable_fast_install; p=${PACKAGE-default}
8691 case $enableval in
8692 yes) enable_fast_install=yes ;;
8693 no) enable_fast_install=no ;;
8695 enable_fast_install=no
8696 # Look at the argument we got. We use all the common list separators.
8697 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8698 for pkg in $enableval; do
8699 IFS="$lt_save_ifs"
8700 if test "X$pkg" = "X$p"; then
8701 enable_fast_install=yes
8703 done
8704 IFS="$lt_save_ifs"
8706 esac
8707 else
8708 enable_fast_install=yes
8721 # This can be used to rebuild libtool when needed
8722 LIBTOOL_DEPS="$ltmain"
8724 # Always use our own libtool.
8725 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8752 test -z "$LN_S" && LN_S="ln -s"
8767 if test -n "${ZSH_VERSION+set}" ; then
8768 setopt NO_GLOB_SUBST
8771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8772 $as_echo_n "checking for objdir... " >&6; }
8773 if ${lt_cv_objdir+:} false; then :
8774 $as_echo_n "(cached) " >&6
8775 else
8776 rm -f .libs 2>/dev/null
8777 mkdir .libs 2>/dev/null
8778 if test -d .libs; then
8779 lt_cv_objdir=.libs
8780 else
8781 # MS-DOS does not allow filenames that begin with a dot.
8782 lt_cv_objdir=_libs
8784 rmdir .libs 2>/dev/null
8786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8787 $as_echo "$lt_cv_objdir" >&6; }
8788 objdir=$lt_cv_objdir
8794 cat >>confdefs.h <<_ACEOF
8795 #define LT_OBJDIR "$lt_cv_objdir/"
8796 _ACEOF
8801 case $host_os in
8802 aix3*)
8803 # AIX sometimes has problems with the GCC collect2 program. For some
8804 # reason, if we set the COLLECT_NAMES environment variable, the problems
8805 # vanish in a puff of smoke.
8806 if test "X${COLLECT_NAMES+set}" != Xset; then
8807 COLLECT_NAMES=
8808 export COLLECT_NAMES
8811 esac
8813 # Global variables:
8814 ofile=libtool
8815 can_build_shared=yes
8817 # All known linkers require a `.a' archive for static linking (except MSVC,
8818 # which needs '.lib').
8819 libext=a
8821 with_gnu_ld="$lt_cv_prog_gnu_ld"
8823 old_CC="$CC"
8824 old_CFLAGS="$CFLAGS"
8826 # Set sane defaults for various variables
8827 test -z "$CC" && CC=cc
8828 test -z "$LTCC" && LTCC=$CC
8829 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8830 test -z "$LD" && LD=ld
8831 test -z "$ac_objext" && ac_objext=o
8833 for cc_temp in $compiler""; do
8834 case $cc_temp in
8835 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8836 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8837 \-*) ;;
8838 *) break;;
8839 esac
8840 done
8841 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8844 # Only perform the check for file, if the check method requires it
8845 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8846 case $deplibs_check_method in
8847 file_magic*)
8848 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8850 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8851 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8852 $as_echo_n "(cached) " >&6
8853 else
8854 case $MAGIC_CMD in
8855 [\\/*] | ?:[\\/]*)
8856 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8859 lt_save_MAGIC_CMD="$MAGIC_CMD"
8860 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8861 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8862 for ac_dir in $ac_dummy; do
8863 IFS="$lt_save_ifs"
8864 test -z "$ac_dir" && ac_dir=.
8865 if test -f $ac_dir/${ac_tool_prefix}file; then
8866 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8867 if test -n "$file_magic_test_file"; then
8868 case $deplibs_check_method in
8869 "file_magic "*)
8870 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8871 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8872 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8873 $EGREP "$file_magic_regex" > /dev/null; then
8875 else
8876 cat <<_LT_EOF 1>&2
8878 *** Warning: the command libtool uses to detect shared libraries,
8879 *** $file_magic_cmd, produces output that libtool cannot recognize.
8880 *** The result is that libtool may fail to recognize shared libraries
8881 *** as such. This will affect the creation of libtool libraries that
8882 *** depend on shared libraries, but programs linked with such libtool
8883 *** libraries will work regardless of this problem. Nevertheless, you
8884 *** may want to report the problem to your system manager and/or to
8885 *** bug-libtool@gnu.org
8887 _LT_EOF
8888 fi ;;
8889 esac
8891 break
8893 done
8894 IFS="$lt_save_ifs"
8895 MAGIC_CMD="$lt_save_MAGIC_CMD"
8897 esac
8900 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8901 if test -n "$MAGIC_CMD"; then
8902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8903 $as_echo "$MAGIC_CMD" >&6; }
8904 else
8905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8906 $as_echo "no" >&6; }
8913 if test -z "$lt_cv_path_MAGIC_CMD"; then
8914 if test -n "$ac_tool_prefix"; then
8915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8916 $as_echo_n "checking for file... " >&6; }
8917 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8918 $as_echo_n "(cached) " >&6
8919 else
8920 case $MAGIC_CMD in
8921 [\\/*] | ?:[\\/]*)
8922 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8925 lt_save_MAGIC_CMD="$MAGIC_CMD"
8926 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8927 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8928 for ac_dir in $ac_dummy; do
8929 IFS="$lt_save_ifs"
8930 test -z "$ac_dir" && ac_dir=.
8931 if test -f $ac_dir/file; then
8932 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8933 if test -n "$file_magic_test_file"; then
8934 case $deplibs_check_method in
8935 "file_magic "*)
8936 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8937 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8938 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8939 $EGREP "$file_magic_regex" > /dev/null; then
8941 else
8942 cat <<_LT_EOF 1>&2
8944 *** Warning: the command libtool uses to detect shared libraries,
8945 *** $file_magic_cmd, produces output that libtool cannot recognize.
8946 *** The result is that libtool may fail to recognize shared libraries
8947 *** as such. This will affect the creation of libtool libraries that
8948 *** depend on shared libraries, but programs linked with such libtool
8949 *** libraries will work regardless of this problem. Nevertheless, you
8950 *** may want to report the problem to your system manager and/or to
8951 *** bug-libtool@gnu.org
8953 _LT_EOF
8954 fi ;;
8955 esac
8957 break
8959 done
8960 IFS="$lt_save_ifs"
8961 MAGIC_CMD="$lt_save_MAGIC_CMD"
8963 esac
8966 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8967 if test -n "$MAGIC_CMD"; then
8968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8969 $as_echo "$MAGIC_CMD" >&6; }
8970 else
8971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8972 $as_echo "no" >&6; }
8976 else
8977 MAGIC_CMD=:
8983 esac
8985 # Use C for the default configuration in the libtool script
8987 lt_save_CC="$CC"
8988 ac_ext=c
8989 ac_cpp='$CPP $CPPFLAGS'
8990 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8991 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8992 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8995 # Source file extension for C test sources.
8996 ac_ext=c
8998 # Object file extension for compiled C test sources.
8999 objext=o
9000 objext=$objext
9002 # Code to be used in simple compile tests
9003 lt_simple_compile_test_code="int some_variable = 0;"
9005 # Code to be used in simple link tests
9006 lt_simple_link_test_code='int main(){return(0);}'
9014 # If no C compiler was specified, use CC.
9015 LTCC=${LTCC-"$CC"}
9017 # If no C compiler flags were specified, use CFLAGS.
9018 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9020 # Allow CC to be a program name with arguments.
9021 compiler=$CC
9023 # Save the default compiler, since it gets overwritten when the other
9024 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9025 compiler_DEFAULT=$CC
9027 # save warnings/boilerplate of simple test code
9028 ac_outfile=conftest.$ac_objext
9029 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9030 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9031 _lt_compiler_boilerplate=`cat conftest.err`
9032 $RM conftest*
9034 ac_outfile=conftest.$ac_objext
9035 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9036 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9037 _lt_linker_boilerplate=`cat conftest.err`
9038 $RM -r conftest*
9041 ## CAVEAT EMPTOR:
9042 ## There is no encapsulation within the following macros, do not change
9043 ## the running order or otherwise move them around unless you know exactly
9044 ## what you are doing...
9045 if test -n "$compiler"; then
9047 lt_prog_compiler_no_builtin_flag=
9049 if test "$GCC" = yes; then
9050 case $cc_basename in
9051 nvcc*)
9052 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9054 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9055 esac
9057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9058 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9059 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9060 $as_echo_n "(cached) " >&6
9061 else
9062 lt_cv_prog_compiler_rtti_exceptions=no
9063 ac_outfile=conftest.$ac_objext
9064 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9065 lt_compiler_flag="-fno-rtti -fno-exceptions"
9066 # Insert the option either (1) after the last *FLAGS variable, or
9067 # (2) before a word containing "conftest.", or (3) at the end.
9068 # Note that $ac_compile itself does not contain backslashes and begins
9069 # with a dollar sign (not a hyphen), so the echo should work correctly.
9070 # The option is referenced via a variable to avoid confusing sed.
9071 lt_compile=`echo "$ac_compile" | $SED \
9072 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9073 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9074 -e 's:$: $lt_compiler_flag:'`
9075 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9076 (eval "$lt_compile" 2>conftest.err)
9077 ac_status=$?
9078 cat conftest.err >&5
9079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9080 if (exit $ac_status) && test -s "$ac_outfile"; then
9081 # The compiler can only warn and ignore the option if not recognized
9082 # So say no if there are warnings other than the usual output.
9083 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9084 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9085 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9086 lt_cv_prog_compiler_rtti_exceptions=yes
9089 $RM conftest*
9092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9093 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9095 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9096 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9097 else
9108 lt_prog_compiler_wl=
9109 lt_prog_compiler_pic=
9110 lt_prog_compiler_static=
9112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9113 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9115 if test "$GCC" = yes; then
9116 lt_prog_compiler_wl='-Wl,'
9117 lt_prog_compiler_static='-static'
9119 case $host_os in
9120 aix*)
9121 # All AIX code is PIC.
9122 if test "$host_cpu" = ia64; then
9123 # AIX 5 now supports IA64 processor
9124 lt_prog_compiler_static='-Bstatic'
9126 lt_prog_compiler_pic='-fPIC'
9129 amigaos*)
9130 case $host_cpu in
9131 powerpc)
9132 # see comment about AmigaOS4 .so support
9133 lt_prog_compiler_pic='-fPIC'
9135 m68k)
9136 # FIXME: we need at least 68020 code to build shared libraries, but
9137 # adding the `-m68020' flag to GCC prevents building anything better,
9138 # like `-m68040'.
9139 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9141 esac
9144 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9145 # PIC is the default for these OSes.
9148 mingw* | cygwin* | pw32* | os2* | cegcc*)
9149 # This hack is so that the source file can tell whether it is being
9150 # built for inclusion in a dll (and should export symbols for example).
9151 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9152 # (--disable-auto-import) libraries
9153 lt_prog_compiler_pic='-DDLL_EXPORT'
9156 darwin* | rhapsody*)
9157 # PIC is the default on this platform
9158 # Common symbols not allowed in MH_DYLIB files
9159 lt_prog_compiler_pic='-fno-common'
9162 haiku*)
9163 # PIC is the default for Haiku.
9164 # The "-static" flag exists, but is broken.
9165 lt_prog_compiler_static=
9168 hpux*)
9169 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9170 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9171 # sets the default TLS model and affects inlining.
9172 case $host_cpu in
9173 hppa*64*)
9174 # +Z the default
9177 lt_prog_compiler_pic='-fPIC'
9179 esac
9182 interix[3-9]*)
9183 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9184 # Instead, we relocate shared libraries at runtime.
9187 msdosdjgpp*)
9188 # Just because we use GCC doesn't mean we suddenly get shared libraries
9189 # on systems that don't support them.
9190 lt_prog_compiler_can_build_shared=no
9191 enable_shared=no
9194 *nto* | *qnx*)
9195 # QNX uses GNU C++, but need to define -shared option too, otherwise
9196 # it will coredump.
9197 lt_prog_compiler_pic='-fPIC -shared'
9200 sysv4*MP*)
9201 if test -d /usr/nec; then
9202 lt_prog_compiler_pic=-Kconform_pic
9207 lt_prog_compiler_pic='-fPIC'
9209 esac
9211 case $cc_basename in
9212 nvcc*) # Cuda Compiler Driver 2.2
9213 lt_prog_compiler_wl='-Xlinker '
9214 lt_prog_compiler_pic='-Xcompiler -fPIC'
9216 esac
9217 else
9218 # PORTME Check for flag to pass linker flags through the system compiler.
9219 case $host_os in
9220 aix*)
9221 lt_prog_compiler_wl='-Wl,'
9222 if test "$host_cpu" = ia64; then
9223 # AIX 5 now supports IA64 processor
9224 lt_prog_compiler_static='-Bstatic'
9225 else
9226 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9230 mingw* | cygwin* | pw32* | os2* | cegcc*)
9231 # This hack is so that the source file can tell whether it is being
9232 # built for inclusion in a dll (and should export symbols for example).
9233 lt_prog_compiler_pic='-DDLL_EXPORT'
9236 hpux9* | hpux10* | hpux11*)
9237 lt_prog_compiler_wl='-Wl,'
9238 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9239 # not for PA HP-UX.
9240 case $host_cpu in
9241 hppa*64*|ia64*)
9242 # +Z the default
9245 lt_prog_compiler_pic='+Z'
9247 esac
9248 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9249 lt_prog_compiler_static='${wl}-a ${wl}archive'
9252 irix5* | irix6* | nonstopux*)
9253 lt_prog_compiler_wl='-Wl,'
9254 # PIC (with -KPIC) is the default.
9255 lt_prog_compiler_static='-non_shared'
9258 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9259 case $cc_basename in
9260 # old Intel for x86_64 which still supported -KPIC.
9261 ecc*)
9262 lt_prog_compiler_wl='-Wl,'
9263 lt_prog_compiler_pic='-KPIC'
9264 lt_prog_compiler_static='-static'
9266 # icc used to be incompatible with GCC.
9267 # ICC 10 doesn't accept -KPIC any more.
9268 icc* | ifort*)
9269 lt_prog_compiler_wl='-Wl,'
9270 lt_prog_compiler_pic='-fPIC'
9271 lt_prog_compiler_static='-static'
9273 # Lahey Fortran 8.1.
9274 lf95*)
9275 lt_prog_compiler_wl='-Wl,'
9276 lt_prog_compiler_pic='--shared'
9277 lt_prog_compiler_static='--static'
9279 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9280 # Portland Group compilers (*not* the Pentium gcc compiler,
9281 # which looks to be a dead project)
9282 lt_prog_compiler_wl='-Wl,'
9283 lt_prog_compiler_pic='-fpic'
9284 lt_prog_compiler_static='-Bstatic'
9286 ccc*)
9287 lt_prog_compiler_wl='-Wl,'
9288 # All Alpha code is PIC.
9289 lt_prog_compiler_static='-non_shared'
9291 xl* | bgxl* | bgf* | mpixl*)
9292 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9293 lt_prog_compiler_wl='-Wl,'
9294 lt_prog_compiler_pic='-qpic'
9295 lt_prog_compiler_static='-qstaticlink'
9298 case `$CC -V 2>&1 | sed 5q` in
9299 *Sun\ F* | *Sun*Fortran*)
9300 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9301 lt_prog_compiler_pic='-KPIC'
9302 lt_prog_compiler_static='-Bstatic'
9303 lt_prog_compiler_wl=''
9305 *Sun\ C*)
9306 # Sun C 5.9
9307 lt_prog_compiler_pic='-KPIC'
9308 lt_prog_compiler_static='-Bstatic'
9309 lt_prog_compiler_wl='-Wl,'
9311 esac
9313 esac
9316 newsos6)
9317 lt_prog_compiler_pic='-KPIC'
9318 lt_prog_compiler_static='-Bstatic'
9321 *nto* | *qnx*)
9322 # QNX uses GNU C++, but need to define -shared option too, otherwise
9323 # it will coredump.
9324 lt_prog_compiler_pic='-fPIC -shared'
9327 osf3* | osf4* | osf5*)
9328 lt_prog_compiler_wl='-Wl,'
9329 # All OSF/1 code is PIC.
9330 lt_prog_compiler_static='-non_shared'
9333 rdos*)
9334 lt_prog_compiler_static='-non_shared'
9337 solaris*)
9338 lt_prog_compiler_pic='-KPIC'
9339 lt_prog_compiler_static='-Bstatic'
9340 case $cc_basename in
9341 f77* | f90* | f95*)
9342 lt_prog_compiler_wl='-Qoption ld ';;
9344 lt_prog_compiler_wl='-Wl,';;
9345 esac
9348 sunos4*)
9349 lt_prog_compiler_wl='-Qoption ld '
9350 lt_prog_compiler_pic='-PIC'
9351 lt_prog_compiler_static='-Bstatic'
9354 sysv4 | sysv4.2uw2* | sysv4.3*)
9355 lt_prog_compiler_wl='-Wl,'
9356 lt_prog_compiler_pic='-KPIC'
9357 lt_prog_compiler_static='-Bstatic'
9360 sysv4*MP*)
9361 if test -d /usr/nec ;then
9362 lt_prog_compiler_pic='-Kconform_pic'
9363 lt_prog_compiler_static='-Bstatic'
9367 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9368 lt_prog_compiler_wl='-Wl,'
9369 lt_prog_compiler_pic='-KPIC'
9370 lt_prog_compiler_static='-Bstatic'
9373 unicos*)
9374 lt_prog_compiler_wl='-Wl,'
9375 lt_prog_compiler_can_build_shared=no
9378 uts4*)
9379 lt_prog_compiler_pic='-pic'
9380 lt_prog_compiler_static='-Bstatic'
9384 lt_prog_compiler_can_build_shared=no
9386 esac
9389 case $host_os in
9390 # For platforms which do not support PIC, -DPIC is meaningless:
9391 *djgpp*)
9392 lt_prog_compiler_pic=
9395 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9397 esac
9398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9399 $as_echo "$lt_prog_compiler_pic" >&6; }
9407 # Check to make sure the PIC flag actually works.
9409 if test -n "$lt_prog_compiler_pic"; then
9410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9411 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9412 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9413 $as_echo_n "(cached) " >&6
9414 else
9415 lt_cv_prog_compiler_pic_works=no
9416 ac_outfile=conftest.$ac_objext
9417 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9418 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9419 # Insert the option either (1) after the last *FLAGS variable, or
9420 # (2) before a word containing "conftest.", or (3) at the end.
9421 # Note that $ac_compile itself does not contain backslashes and begins
9422 # with a dollar sign (not a hyphen), so the echo should work correctly.
9423 # The option is referenced via a variable to avoid confusing sed.
9424 lt_compile=`echo "$ac_compile" | $SED \
9425 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9426 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9427 -e 's:$: $lt_compiler_flag:'`
9428 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9429 (eval "$lt_compile" 2>conftest.err)
9430 ac_status=$?
9431 cat conftest.err >&5
9432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9433 if (exit $ac_status) && test -s "$ac_outfile"; then
9434 # The compiler can only warn and ignore the option if not recognized
9435 # So say no if there are warnings other than the usual output.
9436 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9437 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9438 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9439 lt_cv_prog_compiler_pic_works=yes
9442 $RM conftest*
9445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9446 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9448 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9449 case $lt_prog_compiler_pic in
9450 "" | " "*) ;;
9451 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9452 esac
9453 else
9454 lt_prog_compiler_pic=
9455 lt_prog_compiler_can_build_shared=no
9466 # Check to make sure the static flag actually works.
9468 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9470 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9471 if ${lt_cv_prog_compiler_static_works+:} false; then :
9472 $as_echo_n "(cached) " >&6
9473 else
9474 lt_cv_prog_compiler_static_works=no
9475 save_LDFLAGS="$LDFLAGS"
9476 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9477 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9478 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9479 # The linker can only warn and ignore the option if not recognized
9480 # So say no if there are warnings
9481 if test -s conftest.err; then
9482 # Append any errors to the config.log.
9483 cat conftest.err 1>&5
9484 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9485 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9486 if diff conftest.exp conftest.er2 >/dev/null; then
9487 lt_cv_prog_compiler_static_works=yes
9489 else
9490 lt_cv_prog_compiler_static_works=yes
9493 $RM -r conftest*
9494 LDFLAGS="$save_LDFLAGS"
9497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9498 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9500 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9502 else
9503 lt_prog_compiler_static=
9512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9513 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9514 if ${lt_cv_prog_compiler_c_o+:} false; then :
9515 $as_echo_n "(cached) " >&6
9516 else
9517 lt_cv_prog_compiler_c_o=no
9518 $RM -r conftest 2>/dev/null
9519 mkdir conftest
9520 cd conftest
9521 mkdir out
9522 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9524 lt_compiler_flag="-o out/conftest2.$ac_objext"
9525 # Insert the option either (1) after the last *FLAGS variable, or
9526 # (2) before a word containing "conftest.", or (3) at the end.
9527 # Note that $ac_compile itself does not contain backslashes and begins
9528 # with a dollar sign (not a hyphen), so the echo should work correctly.
9529 lt_compile=`echo "$ac_compile" | $SED \
9530 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9531 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9532 -e 's:$: $lt_compiler_flag:'`
9533 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9534 (eval "$lt_compile" 2>out/conftest.err)
9535 ac_status=$?
9536 cat out/conftest.err >&5
9537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9538 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9539 then
9540 # The compiler can only warn and ignore the option if not recognized
9541 # So say no if there are warnings
9542 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9543 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9544 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9545 lt_cv_prog_compiler_c_o=yes
9548 chmod u+w . 2>&5
9549 $RM conftest*
9550 # SGI C++ compiler will create directory out/ii_files/ for
9551 # template instantiation
9552 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9553 $RM out/* && rmdir out
9554 cd ..
9555 $RM -r conftest
9556 $RM conftest*
9559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9560 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9568 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9569 if ${lt_cv_prog_compiler_c_o+:} false; then :
9570 $as_echo_n "(cached) " >&6
9571 else
9572 lt_cv_prog_compiler_c_o=no
9573 $RM -r conftest 2>/dev/null
9574 mkdir conftest
9575 cd conftest
9576 mkdir out
9577 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9579 lt_compiler_flag="-o out/conftest2.$ac_objext"
9580 # Insert the option either (1) after the last *FLAGS variable, or
9581 # (2) before a word containing "conftest.", or (3) at the end.
9582 # Note that $ac_compile itself does not contain backslashes and begins
9583 # with a dollar sign (not a hyphen), so the echo should work correctly.
9584 lt_compile=`echo "$ac_compile" | $SED \
9585 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9586 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9587 -e 's:$: $lt_compiler_flag:'`
9588 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9589 (eval "$lt_compile" 2>out/conftest.err)
9590 ac_status=$?
9591 cat out/conftest.err >&5
9592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9593 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9594 then
9595 # The compiler can only warn and ignore the option if not recognized
9596 # So say no if there are warnings
9597 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9598 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9599 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9600 lt_cv_prog_compiler_c_o=yes
9603 chmod u+w . 2>&5
9604 $RM conftest*
9605 # SGI C++ compiler will create directory out/ii_files/ for
9606 # template instantiation
9607 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9608 $RM out/* && rmdir out
9609 cd ..
9610 $RM -r conftest
9611 $RM conftest*
9614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9615 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9620 hard_links="nottested"
9621 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9622 # do not overwrite the value of need_locks provided by the user
9623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9624 $as_echo_n "checking if we can lock with hard links... " >&6; }
9625 hard_links=yes
9626 $RM conftest*
9627 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9628 touch conftest.a
9629 ln conftest.a conftest.b 2>&5 || hard_links=no
9630 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9632 $as_echo "$hard_links" >&6; }
9633 if test "$hard_links" = no; then
9634 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9635 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9636 need_locks=warn
9638 else
9639 need_locks=no
9647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9648 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9650 runpath_var=
9651 allow_undefined_flag=
9652 always_export_symbols=no
9653 archive_cmds=
9654 archive_expsym_cmds=
9655 compiler_needs_object=no
9656 enable_shared_with_static_runtimes=no
9657 export_dynamic_flag_spec=
9658 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9659 hardcode_automatic=no
9660 hardcode_direct=no
9661 hardcode_direct_absolute=no
9662 hardcode_libdir_flag_spec=
9663 hardcode_libdir_flag_spec_ld=
9664 hardcode_libdir_separator=
9665 hardcode_minus_L=no
9666 hardcode_shlibpath_var=unsupported
9667 inherit_rpath=no
9668 link_all_deplibs=unknown
9669 module_cmds=
9670 module_expsym_cmds=
9671 old_archive_from_new_cmds=
9672 old_archive_from_expsyms_cmds=
9673 thread_safe_flag_spec=
9674 whole_archive_flag_spec=
9675 # include_expsyms should be a list of space-separated symbols to be *always*
9676 # included in the symbol list
9677 include_expsyms=
9678 # exclude_expsyms can be an extended regexp of symbols to exclude
9679 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9680 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9681 # as well as any symbol that contains `d'.
9682 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9683 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9684 # platforms (ab)use it in PIC code, but their linkers get confused if
9685 # the symbol is explicitly referenced. Since portable code cannot
9686 # rely on this symbol name, it's probably fine to never include it in
9687 # preloaded symbol tables.
9688 # Exclude shared library initialization/finalization symbols.
9689 extract_expsyms_cmds=
9691 case $host_os in
9692 cygwin* | mingw* | pw32* | cegcc*)
9693 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9694 # When not using gcc, we currently assume that we are using
9695 # Microsoft Visual C++.
9696 if test "$GCC" != yes; then
9697 with_gnu_ld=no
9700 interix*)
9701 # we just hope/assume this is gcc and not c89 (= MSVC++)
9702 with_gnu_ld=yes
9704 openbsd*)
9705 with_gnu_ld=no
9707 esac
9709 ld_shlibs=yes
9711 # On some targets, GNU ld is compatible enough with the native linker
9712 # that we're better off using the native interface for both.
9713 lt_use_gnu_ld_interface=no
9714 if test "$with_gnu_ld" = yes; then
9715 case $host_os in
9716 aix*)
9717 # The AIX port of GNU ld has always aspired to compatibility
9718 # with the native linker. However, as the warning in the GNU ld
9719 # block says, versions before 2.19.5* couldn't really create working
9720 # shared libraries, regardless of the interface used.
9721 case `$LD -v 2>&1` in
9722 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9723 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9724 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9726 lt_use_gnu_ld_interface=yes
9728 esac
9731 lt_use_gnu_ld_interface=yes
9733 esac
9736 if test "$lt_use_gnu_ld_interface" = yes; then
9737 # If archive_cmds runs LD, not CC, wlarc should be empty
9738 wlarc='${wl}'
9740 # Set some defaults for GNU ld with shared library support. These
9741 # are reset later if shared libraries are not supported. Putting them
9742 # here allows them to be overridden if necessary.
9743 runpath_var=LD_RUN_PATH
9744 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9745 export_dynamic_flag_spec='${wl}--export-dynamic'
9746 # ancient GNU ld didn't support --whole-archive et. al.
9747 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9748 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9749 else
9750 whole_archive_flag_spec=
9752 supports_anon_versioning=no
9753 case `$LD -v 2>&1` in
9754 *GNU\ gold*) supports_anon_versioning=yes ;;
9755 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9756 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9757 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9758 *\ 2.11.*) ;; # other 2.11 versions
9759 *) supports_anon_versioning=yes ;;
9760 esac
9762 # See if GNU ld supports shared libraries.
9763 case $host_os in
9764 aix[3-9]*)
9765 # On AIX/PPC, the GNU linker is very broken
9766 if test "$host_cpu" != ia64; then
9767 ld_shlibs=no
9768 cat <<_LT_EOF 1>&2
9770 *** Warning: the GNU linker, at least up to release 2.19, is reported
9771 *** to be unable to reliably create shared libraries on AIX.
9772 *** Therefore, libtool is disabling shared libraries support. If you
9773 *** really care for shared libraries, you may want to install binutils
9774 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9775 *** You will then need to restart the configuration process.
9777 _LT_EOF
9781 amigaos*)
9782 case $host_cpu in
9783 powerpc)
9784 # see comment about AmigaOS4 .so support
9785 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9786 archive_expsym_cmds=''
9788 m68k)
9789 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)'
9790 hardcode_libdir_flag_spec='-L$libdir'
9791 hardcode_minus_L=yes
9793 esac
9796 beos*)
9797 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9798 allow_undefined_flag=unsupported
9799 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9800 # support --undefined. This deserves some investigation. FIXME
9801 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9802 else
9803 ld_shlibs=no
9807 cygwin* | mingw* | pw32* | cegcc*)
9808 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9809 # as there is no search path for DLLs.
9810 hardcode_libdir_flag_spec='-L$libdir'
9811 export_dynamic_flag_spec='${wl}--export-all-symbols'
9812 allow_undefined_flag=unsupported
9813 always_export_symbols=no
9814 enable_shared_with_static_runtimes=yes
9815 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9817 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9818 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9819 # If the export-symbols file already is a .def file (1st line
9820 # is EXPORTS), use it as is; otherwise, prepend...
9821 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9822 cp $export_symbols $output_objdir/$soname.def;
9823 else
9824 echo EXPORTS > $output_objdir/$soname.def;
9825 cat $export_symbols >> $output_objdir/$soname.def;
9827 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9828 else
9829 ld_shlibs=no
9833 haiku*)
9834 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9835 link_all_deplibs=yes
9838 interix[3-9]*)
9839 hardcode_direct=no
9840 hardcode_shlibpath_var=no
9841 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9842 export_dynamic_flag_spec='${wl}-E'
9843 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9844 # Instead, shared libraries are loaded at an image base (0x10000000 by
9845 # default) and relocated if they conflict, which is a slow very memory
9846 # consuming and fragmenting process. To avoid this, we pick a random,
9847 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9848 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9849 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9850 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'
9853 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
9854 tmp_diet=no
9855 if test "$host_os" = linux-dietlibc; then
9856 case $cc_basename in
9857 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9858 esac
9860 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9861 && test "$tmp_diet" = no
9862 then
9863 tmp_addflag=' $pic_flag'
9864 tmp_sharedflag='-shared'
9865 case $cc_basename,$host_cpu in
9866 pgcc*) # Portland Group C compiler
9867 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'
9868 tmp_addflag=' $pic_flag'
9870 pgf77* | pgf90* | pgf95* | pgfortran*)
9871 # Portland Group f77 and f90 compilers
9872 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'
9873 tmp_addflag=' $pic_flag -Mnomain' ;;
9874 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9875 tmp_addflag=' -i_dynamic' ;;
9876 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9877 tmp_addflag=' -i_dynamic -nofor_main' ;;
9878 ifc* | ifort*) # Intel Fortran compiler
9879 tmp_addflag=' -nofor_main' ;;
9880 lf95*) # Lahey Fortran 8.1
9881 whole_archive_flag_spec=
9882 tmp_sharedflag='--shared' ;;
9883 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9884 tmp_sharedflag='-qmkshrobj'
9885 tmp_addflag= ;;
9886 nvcc*) # Cuda Compiler Driver 2.2
9887 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'
9888 compiler_needs_object=yes
9890 esac
9891 case `$CC -V 2>&1 | sed 5q` in
9892 *Sun\ C*) # Sun C 5.9
9893 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'
9894 compiler_needs_object=yes
9895 tmp_sharedflag='-G' ;;
9896 *Sun\ F*) # Sun Fortran 8.3
9897 tmp_sharedflag='-G' ;;
9898 esac
9899 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9901 if test "x$supports_anon_versioning" = xyes; then
9902 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9903 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9904 echo "local: *; };" >> $output_objdir/$libname.ver~
9905 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9908 case $cc_basename in
9909 xlf* | bgf* | bgxlf* | mpixlf*)
9910 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9911 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9912 hardcode_libdir_flag_spec=
9913 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9914 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9915 if test "x$supports_anon_versioning" = xyes; then
9916 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9917 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9918 echo "local: *; };" >> $output_objdir/$libname.ver~
9919 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9922 esac
9923 else
9924 ld_shlibs=no
9928 netbsd*)
9929 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9930 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9931 wlarc=
9932 else
9933 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9934 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9938 solaris*)
9939 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9940 ld_shlibs=no
9941 cat <<_LT_EOF 1>&2
9943 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9944 *** create shared libraries on Solaris systems. Therefore, libtool
9945 *** is disabling shared libraries support. We urge you to upgrade GNU
9946 *** binutils to release 2.9.1 or newer. Another option is to modify
9947 *** your PATH or compiler configuration so that the native linker is
9948 *** used, and then restart.
9950 _LT_EOF
9951 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9952 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9953 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9954 else
9955 ld_shlibs=no
9959 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9960 case `$LD -v 2>&1` in
9961 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9962 ld_shlibs=no
9963 cat <<_LT_EOF 1>&2
9965 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9966 *** reliably create shared libraries on SCO systems. Therefore, libtool
9967 *** is disabling shared libraries support. We urge you to upgrade GNU
9968 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9969 *** your PATH or compiler configuration so that the native linker is
9970 *** used, and then restart.
9972 _LT_EOF
9975 # For security reasons, it is highly recommended that you always
9976 # use absolute paths for naming shared libraries, and exclude the
9977 # DT_RUNPATH tag from executables and libraries. But doing so
9978 # requires that you compile everything twice, which is a pain.
9979 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9980 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9981 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9982 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9983 else
9984 ld_shlibs=no
9987 esac
9990 sunos4*)
9991 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9992 wlarc=
9993 hardcode_direct=yes
9994 hardcode_shlibpath_var=no
9998 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9999 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10000 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10001 else
10002 ld_shlibs=no
10005 esac
10007 if test "$ld_shlibs" = no; then
10008 runpath_var=
10009 hardcode_libdir_flag_spec=
10010 export_dynamic_flag_spec=
10011 whole_archive_flag_spec=
10013 else
10014 # PORTME fill in a description of your system's linker (not GNU ld)
10015 case $host_os in
10016 aix3*)
10017 allow_undefined_flag=unsupported
10018 always_export_symbols=yes
10019 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'
10020 # Note: this linker hardcodes the directories in LIBPATH if there
10021 # are no directories specified by -L.
10022 hardcode_minus_L=yes
10023 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10024 # Neither direct hardcoding nor static linking is supported with a
10025 # broken collect2.
10026 hardcode_direct=unsupported
10030 aix[4-9]*)
10031 if test "$host_cpu" = ia64; then
10032 # On IA64, the linker does run time linking by default, so we don't
10033 # have to do anything special.
10034 aix_use_runtimelinking=no
10035 exp_sym_flag='-Bexport'
10036 no_entry_flag=""
10037 else
10038 # If we're using GNU nm, then we don't want the "-C" option.
10039 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10040 # Also, AIX nm treats weak defined symbols like other global
10041 # defined symbols, whereas GNU nm marks them as "W".
10042 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10043 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'
10044 else
10045 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'
10047 aix_use_runtimelinking=no
10049 # Test if we are trying to use run time linking or normal
10050 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10051 # need to do runtime linking.
10052 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10053 for ld_flag in $LDFLAGS; do
10054 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10055 aix_use_runtimelinking=yes
10056 break
10058 done
10060 esac
10062 exp_sym_flag='-bexport'
10063 no_entry_flag='-bnoentry'
10066 # When large executables or shared objects are built, AIX ld can
10067 # have problems creating the table of contents. If linking a library
10068 # or program results in "error TOC overflow" add -mminimal-toc to
10069 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10070 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10072 archive_cmds=''
10073 hardcode_direct=yes
10074 hardcode_direct_absolute=yes
10075 hardcode_libdir_separator=':'
10076 link_all_deplibs=yes
10077 file_list_spec='${wl}-f,'
10079 if test "$GCC" = yes; then
10080 case $host_os in aix4.[012]|aix4.[012].*)
10081 # We only want to do this on AIX 4.2 and lower, the check
10082 # below for broken collect2 doesn't work under 4.3+
10083 collect2name=`${CC} -print-prog-name=collect2`
10084 if test -f "$collect2name" &&
10085 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10086 then
10087 # We have reworked collect2
10089 else
10090 # We have old collect2
10091 hardcode_direct=unsupported
10092 # It fails to find uninstalled libraries when the uninstalled
10093 # path is not listed in the libpath. Setting hardcode_minus_L
10094 # to unsupported forces relinking
10095 hardcode_minus_L=yes
10096 hardcode_libdir_flag_spec='-L$libdir'
10097 hardcode_libdir_separator=
10100 esac
10101 shared_flag='-shared'
10102 if test "$aix_use_runtimelinking" = yes; then
10103 shared_flag="$shared_flag "'${wl}-G'
10105 else
10106 # not using gcc
10107 if test "$host_cpu" = ia64; then
10108 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10109 # chokes on -Wl,-G. The following line is correct:
10110 shared_flag='-G'
10111 else
10112 if test "$aix_use_runtimelinking" = yes; then
10113 shared_flag='${wl}-G'
10114 else
10115 shared_flag='${wl}-bM:SRE'
10120 export_dynamic_flag_spec='${wl}-bexpall'
10121 # It seems that -bexpall does not export symbols beginning with
10122 # underscore (_), so it is better to generate a list of symbols to export.
10123 always_export_symbols=yes
10124 if test "$aix_use_runtimelinking" = yes; then
10125 # Warning - without using the other runtime loading flags (-brtl),
10126 # -berok will link without error, but may produce a broken library.
10127 allow_undefined_flag='-berok'
10128 # Determine the default libpath from the value encoded in an
10129 # empty executable.
10130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10131 /* end confdefs.h. */
10134 main ()
10138 return 0;
10140 _ACEOF
10141 if ac_fn_c_try_link "$LINENO"; then :
10143 lt_aix_libpath_sed='
10144 /Import File Strings/,/^$/ {
10145 /^0/ {
10146 s/^0 *\(.*\)$/\1/
10150 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10151 # Check for a 64-bit object if we didn't find anything.
10152 if test -z "$aix_libpath"; then
10153 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10156 rm -f core conftest.err conftest.$ac_objext \
10157 conftest$ac_exeext conftest.$ac_ext
10158 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10160 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10161 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"
10162 else
10163 if test "$host_cpu" = ia64; then
10164 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10165 allow_undefined_flag="-z nodefs"
10166 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"
10167 else
10168 # Determine the default libpath from the value encoded in an
10169 # empty executable.
10170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10171 /* end confdefs.h. */
10174 main ()
10178 return 0;
10180 _ACEOF
10181 if ac_fn_c_try_link "$LINENO"; then :
10183 lt_aix_libpath_sed='
10184 /Import File Strings/,/^$/ {
10185 /^0/ {
10186 s/^0 *\(.*\)$/\1/
10190 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10191 # Check for a 64-bit object if we didn't find anything.
10192 if test -z "$aix_libpath"; then
10193 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10196 rm -f core conftest.err conftest.$ac_objext \
10197 conftest$ac_exeext conftest.$ac_ext
10198 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10200 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10201 # Warning - without using the other run time loading flags,
10202 # -berok will link without error, but may produce a broken library.
10203 no_undefined_flag=' ${wl}-bernotok'
10204 allow_undefined_flag=' ${wl}-berok'
10205 if test "$with_gnu_ld" = yes; then
10206 # We only use this code for GNU lds that support --whole-archive.
10207 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10208 else
10209 # Exported symbols can be pulled into shared objects from archives
10210 whole_archive_flag_spec='$convenience'
10212 archive_cmds_need_lc=yes
10213 # This is similar to how AIX traditionally builds its shared libraries.
10214 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'
10219 amigaos*)
10220 case $host_cpu in
10221 powerpc)
10222 # see comment about AmigaOS4 .so support
10223 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10224 archive_expsym_cmds=''
10226 m68k)
10227 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)'
10228 hardcode_libdir_flag_spec='-L$libdir'
10229 hardcode_minus_L=yes
10231 esac
10234 bsdi[45]*)
10235 export_dynamic_flag_spec=-rdynamic
10238 cygwin* | mingw* | pw32* | cegcc*)
10239 # When not using gcc, we currently assume that we are using
10240 # Microsoft Visual C++.
10241 # hardcode_libdir_flag_spec is actually meaningless, as there is
10242 # no search path for DLLs.
10243 hardcode_libdir_flag_spec=' '
10244 allow_undefined_flag=unsupported
10245 # Tell ltmain to make .lib files, not .a files.
10246 libext=lib
10247 # Tell ltmain to make .dll files, not .so files.
10248 shrext_cmds=".dll"
10249 # FIXME: Setting linknames here is a bad hack.
10250 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10251 # The linker will automatically build a .lib file if we build a DLL.
10252 old_archive_from_new_cmds='true'
10253 # FIXME: Should let the user specify the lib program.
10254 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10255 fix_srcfile_path='`cygpath -w "$srcfile"`'
10256 enable_shared_with_static_runtimes=yes
10259 darwin* | rhapsody*)
10263 # Publish an arg to allow the user to select that Darwin host (and target)
10264 # libraries should be given install-names like @rpath/libfoo.dylib. This
10265 # requires that the user of the library then adds an 'rpath' to the DSO that
10266 # needs access.
10267 # NOTE: there are defaults below, for systems that support rpaths. The person
10268 # configuring can override the defaults for any system version that supports
10269 # them - they are, however, forced off for system versions without support.
10270 # Check whether --enable-darwin-at-rpath was given.
10271 if test "${enable_darwin_at_rpath+set}" = set; then :
10272 enableval=$enable_darwin_at_rpath; if test "x$enable_darwin_at_rpath" = "xyes"; then
10273 # This is not supported before macOS 10.5 / Darwin9.
10274 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host_os in
10275 UNSET,darwin[4-8]*|UNSET,rhapsody*|10.[0-4][,.]*)
10276 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Darwin @rpath library names are incompatible with OSX versions earlier than 10.5 (rpaths disabled)" >&5
10277 $as_echo "$as_me: WARNING: Darwin @rpath library names are incompatible with OSX versions earlier than 10.5 (rpaths disabled)" >&2;}
10278 enable_darwin_at_rpath=no
10280 esac
10282 else
10283 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host_os in
10284 # As above, before 10.5 / Darwin9 this does not work.
10285 UNSET,darwin[4-8]*|UNSET,rhapsody*|10.[0-4][,.]*)
10286 enable_darwin_at_rpath=no
10289 # We cannot build and test reliably on macOS 10.11+ (Darwin15+) without use
10290 # of rpaths, since runpaths set via DYLD_LIBRARY_PATH are elided by key
10291 # system executables (e.g. /bin/sh). Force rpaths on for these systems.
10292 UNSET,darwin1[5-9]*|UNSET,darwin2*|10.1[1-9][,.]*|1[1-9].*[,.]* )
10293 { $as_echo "$as_me:${as_lineno-$LINENO}: @rpath library names are needed on macOS versions later than 10.11 (rpaths have been enabled)" >&5
10294 $as_echo "$as_me: @rpath library names are needed on macOS versions later than 10.11 (rpaths have been enabled)" >&6;}
10295 enable_darwin_at_rpath=yes
10297 # NOTE: we are not (yet) doing anything for 10.5 .. 10.10, since they can
10298 # work with either DYLD_LIBRARY_PATH or embedded rpaths.
10300 esac
10305 archive_cmds_need_lc=no
10306 hardcode_direct=no
10307 hardcode_automatic=yes
10308 hardcode_shlibpath_var=unsupported
10309 if test "$lt_cv_ld_force_load" = "yes"; then
10310 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\"`'
10311 else
10312 whole_archive_flag_spec=''
10314 link_all_deplibs=yes
10315 allow_undefined_flag="$_lt_dar_allow_undefined"
10316 case $cc_basename in
10317 ifort*) _lt_dar_can_shared=yes ;;
10318 *) _lt_dar_can_shared=$GCC ;;
10319 esac
10320 if test "$_lt_dar_can_shared" = "yes"; then
10321 output_verbose_link_cmd=func_echo_all
10322 _lt_install_name='\$rpath/\$soname'
10323 if test "x$enable_darwin_at_rpath" = "xyes"; then
10324 _lt_install_name='@rpath/\$soname'
10326 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name ${_lt_install_name} \$verstring ${_lt_dsymutil}"
10327 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10328 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 ${_lt_install_name} \$verstring ${_lt_dar_export_syms}${_lt_dsymutil}"
10329 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}"
10331 else
10332 ld_shlibs=no
10337 dgux*)
10338 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10339 hardcode_libdir_flag_spec='-L$libdir'
10340 hardcode_shlibpath_var=no
10343 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10344 # support. Future versions do this automatically, but an explicit c++rt0.o
10345 # does not break anything, and helps significantly (at the cost of a little
10346 # extra space).
10347 freebsd2.2*)
10348 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10349 hardcode_libdir_flag_spec='-R$libdir'
10350 hardcode_direct=yes
10351 hardcode_shlibpath_var=no
10354 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10355 freebsd2.*)
10356 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10357 hardcode_direct=yes
10358 hardcode_minus_L=yes
10359 hardcode_shlibpath_var=no
10362 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10363 freebsd* | dragonfly*)
10364 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10365 hardcode_libdir_flag_spec='-R$libdir'
10366 hardcode_direct=yes
10367 hardcode_shlibpath_var=no
10370 hpux9*)
10371 if test "$GCC" = yes; then
10372 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'
10373 else
10374 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'
10376 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10377 hardcode_libdir_separator=:
10378 hardcode_direct=yes
10380 # hardcode_minus_L: Not really in the search PATH,
10381 # but as the default location of the library.
10382 hardcode_minus_L=yes
10383 export_dynamic_flag_spec='${wl}-E'
10386 hpux10*)
10387 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10388 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10389 else
10390 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10392 if test "$with_gnu_ld" = no; then
10393 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10394 hardcode_libdir_flag_spec_ld='+b $libdir'
10395 hardcode_libdir_separator=:
10396 hardcode_direct=yes
10397 hardcode_direct_absolute=yes
10398 export_dynamic_flag_spec='${wl}-E'
10399 # hardcode_minus_L: Not really in the search PATH,
10400 # but as the default location of the library.
10401 hardcode_minus_L=yes
10405 hpux11*)
10406 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10407 case $host_cpu in
10408 hppa*64*)
10409 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10411 ia64*)
10412 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10415 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10417 esac
10418 else
10419 case $host_cpu in
10420 hppa*64*)
10421 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10423 ia64*)
10424 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10428 # Older versions of the 11.00 compiler do not understand -b yet
10429 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10431 $as_echo_n "checking if $CC understands -b... " >&6; }
10432 if ${lt_cv_prog_compiler__b+:} false; then :
10433 $as_echo_n "(cached) " >&6
10434 else
10435 lt_cv_prog_compiler__b=no
10436 save_LDFLAGS="$LDFLAGS"
10437 LDFLAGS="$LDFLAGS -b"
10438 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10439 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10440 # The linker can only warn and ignore the option if not recognized
10441 # So say no if there are warnings
10442 if test -s conftest.err; then
10443 # Append any errors to the config.log.
10444 cat conftest.err 1>&5
10445 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10446 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10447 if diff conftest.exp conftest.er2 >/dev/null; then
10448 lt_cv_prog_compiler__b=yes
10450 else
10451 lt_cv_prog_compiler__b=yes
10454 $RM -r conftest*
10455 LDFLAGS="$save_LDFLAGS"
10458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10459 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10461 if test x"$lt_cv_prog_compiler__b" = xyes; then
10462 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10463 else
10464 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10468 esac
10470 if test "$with_gnu_ld" = no; then
10471 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10472 hardcode_libdir_separator=:
10474 case $host_cpu in
10475 hppa*64*|ia64*)
10476 hardcode_direct=no
10477 hardcode_shlibpath_var=no
10480 hardcode_direct=yes
10481 hardcode_direct_absolute=yes
10482 export_dynamic_flag_spec='${wl}-E'
10484 # hardcode_minus_L: Not really in the search PATH,
10485 # but as the default location of the library.
10486 hardcode_minus_L=yes
10488 esac
10492 irix5* | irix6* | nonstopux*)
10493 if test "$GCC" = yes; then
10494 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'
10495 # Try to use the -exported_symbol ld option, if it does not
10496 # work, assume that -exports_file does not work either and
10497 # implicitly export all symbols.
10498 save_LDFLAGS="$LDFLAGS"
10499 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10501 /* end confdefs.h. */
10502 int foo(void) {}
10503 _ACEOF
10504 if ac_fn_c_try_link "$LINENO"; then :
10505 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'
10508 rm -f core conftest.err conftest.$ac_objext \
10509 conftest$ac_exeext conftest.$ac_ext
10510 LDFLAGS="$save_LDFLAGS"
10511 else
10512 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'
10513 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'
10515 archive_cmds_need_lc='no'
10516 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10517 hardcode_libdir_separator=:
10518 inherit_rpath=yes
10519 link_all_deplibs=yes
10522 netbsd*)
10523 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10524 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10525 else
10526 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10528 hardcode_libdir_flag_spec='-R$libdir'
10529 hardcode_direct=yes
10530 hardcode_shlibpath_var=no
10533 newsos6)
10534 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10535 hardcode_direct=yes
10536 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10537 hardcode_libdir_separator=:
10538 hardcode_shlibpath_var=no
10541 *nto* | *qnx*)
10544 openbsd*)
10545 if test -f /usr/libexec/ld.so; then
10546 hardcode_direct=yes
10547 hardcode_shlibpath_var=no
10548 hardcode_direct_absolute=yes
10549 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10550 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10551 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10552 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10553 export_dynamic_flag_spec='${wl}-E'
10554 else
10555 case $host_os in
10556 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10557 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10558 hardcode_libdir_flag_spec='-R$libdir'
10561 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10562 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10564 esac
10566 else
10567 ld_shlibs=no
10571 os2*)
10572 hardcode_libdir_flag_spec='-L$libdir'
10573 hardcode_minus_L=yes
10574 allow_undefined_flag=unsupported
10575 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'
10576 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10579 osf3*)
10580 if test "$GCC" = yes; then
10581 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10582 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'
10583 else
10584 allow_undefined_flag=' -expect_unresolved \*'
10585 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'
10587 archive_cmds_need_lc='no'
10588 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10589 hardcode_libdir_separator=:
10592 osf4* | osf5*) # as osf3* with the addition of -msym flag
10593 if test "$GCC" = yes; then
10594 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10595 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'
10596 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10597 else
10598 allow_undefined_flag=' -expect_unresolved \*'
10599 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'
10600 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~
10601 $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'
10603 # Both c and cxx compiler support -rpath directly
10604 hardcode_libdir_flag_spec='-rpath $libdir'
10606 archive_cmds_need_lc='no'
10607 hardcode_libdir_separator=:
10610 solaris*)
10611 no_undefined_flag=' -z defs'
10612 if test "$GCC" = yes; then
10613 wlarc='${wl}'
10614 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10615 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10616 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10617 else
10618 case `$CC -V 2>&1` in
10619 *"Compilers 5.0"*)
10620 wlarc=''
10621 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10622 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10623 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10626 wlarc='${wl}'
10627 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10628 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10629 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10631 esac
10633 hardcode_libdir_flag_spec='-R$libdir'
10634 hardcode_shlibpath_var=no
10635 case $host_os in
10636 solaris2.[0-5] | solaris2.[0-5].*) ;;
10638 # The compiler driver will combine and reorder linker options,
10639 # but understands `-z linker_flag'. GCC discards it without `$wl',
10640 # but is careful enough not to reorder.
10641 # Supported since Solaris 2.6 (maybe 2.5.1?)
10642 if test "$GCC" = yes; then
10643 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10644 else
10645 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10648 esac
10649 link_all_deplibs=yes
10652 sunos4*)
10653 if test "x$host_vendor" = xsequent; then
10654 # Use $CC to link under sequent, because it throws in some extra .o
10655 # files that make .init and .fini sections work.
10656 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10657 else
10658 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10660 hardcode_libdir_flag_spec='-L$libdir'
10661 hardcode_direct=yes
10662 hardcode_minus_L=yes
10663 hardcode_shlibpath_var=no
10666 sysv4)
10667 case $host_vendor in
10668 sni)
10669 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10670 hardcode_direct=yes # is this really true???
10672 siemens)
10673 ## LD is ld it makes a PLAMLIB
10674 ## CC just makes a GrossModule.
10675 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10676 reload_cmds='$CC -r -o $output$reload_objs'
10677 hardcode_direct=no
10679 motorola)
10680 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10681 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10683 esac
10684 runpath_var='LD_RUN_PATH'
10685 hardcode_shlibpath_var=no
10688 sysv4.3*)
10689 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10690 hardcode_shlibpath_var=no
10691 export_dynamic_flag_spec='-Bexport'
10694 sysv4*MP*)
10695 if test -d /usr/nec; then
10696 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10697 hardcode_shlibpath_var=no
10698 runpath_var=LD_RUN_PATH
10699 hardcode_runpath_var=yes
10700 ld_shlibs=yes
10704 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10705 no_undefined_flag='${wl}-z,text'
10706 archive_cmds_need_lc=no
10707 hardcode_shlibpath_var=no
10708 runpath_var='LD_RUN_PATH'
10710 if test "$GCC" = yes; then
10711 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10712 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10713 else
10714 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10715 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10719 sysv5* | sco3.2v5* | sco5v6*)
10720 # Note: We can NOT use -z defs as we might desire, because we do not
10721 # link with -lc, and that would cause any symbols used from libc to
10722 # always be unresolved, which means just about no library would
10723 # ever link correctly. If we're not using GNU ld we use -z text
10724 # though, which does catch some bad symbols but isn't as heavy-handed
10725 # as -z defs.
10726 no_undefined_flag='${wl}-z,text'
10727 allow_undefined_flag='${wl}-z,nodefs'
10728 archive_cmds_need_lc=no
10729 hardcode_shlibpath_var=no
10730 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10731 hardcode_libdir_separator=':'
10732 link_all_deplibs=yes
10733 export_dynamic_flag_spec='${wl}-Bexport'
10734 runpath_var='LD_RUN_PATH'
10736 if test "$GCC" = yes; then
10737 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10738 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10739 else
10740 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10741 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10745 uts4*)
10746 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10747 hardcode_libdir_flag_spec='-L$libdir'
10748 hardcode_shlibpath_var=no
10752 ld_shlibs=no
10754 esac
10756 if test x$host_vendor = xsni; then
10757 case $host in
10758 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10759 export_dynamic_flag_spec='${wl}-Blargedynsym'
10761 esac
10765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10766 $as_echo "$ld_shlibs" >&6; }
10767 test "$ld_shlibs" = no && can_build_shared=no
10769 with_gnu_ld=$with_gnu_ld
10786 # Do we need to explicitly link libc?
10788 case "x$archive_cmds_need_lc" in
10789 x|xyes)
10790 # Assume -lc should be added
10791 archive_cmds_need_lc=yes
10793 if test "$enable_shared" = yes && test "$GCC" = yes; then
10794 case $archive_cmds in
10795 *'~'*)
10796 # FIXME: we may have to deal with multi-command sequences.
10798 '$CC '*)
10799 # Test whether the compiler implicitly links with -lc since on some
10800 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10801 # to ld, don't add -lc before -lgcc.
10802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10803 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10804 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10805 $as_echo_n "(cached) " >&6
10806 else
10807 $RM conftest*
10808 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10810 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10811 (eval $ac_compile) 2>&5
10812 ac_status=$?
10813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10814 test $ac_status = 0; } 2>conftest.err; then
10815 soname=conftest
10816 lib=conftest
10817 libobjs=conftest.$ac_objext
10818 deplibs=
10819 wl=$lt_prog_compiler_wl
10820 pic_flag=$lt_prog_compiler_pic
10821 compiler_flags=-v
10822 linker_flags=-v
10823 verstring=
10824 output_objdir=.
10825 libname=conftest
10826 lt_save_allow_undefined_flag=$allow_undefined_flag
10827 allow_undefined_flag=
10828 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10829 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10830 ac_status=$?
10831 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10832 test $ac_status = 0; }
10833 then
10834 lt_cv_archive_cmds_need_lc=no
10835 else
10836 lt_cv_archive_cmds_need_lc=yes
10838 allow_undefined_flag=$lt_save_allow_undefined_flag
10839 else
10840 cat conftest.err 1>&5
10842 $RM conftest*
10845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10846 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10847 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10849 esac
10852 esac
11010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11011 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11013 if test "$GCC" = yes; then
11014 case $host_os in
11015 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11016 *) lt_awk_arg="/^libraries:/" ;;
11017 esac
11018 case $host_os in
11019 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11020 *) lt_sed_strip_eq="s,=/,/,g" ;;
11021 esac
11022 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11023 case $lt_search_path_spec in
11024 *\;*)
11025 # if the path contains ";" then we assume it to be the separator
11026 # otherwise default to the standard path separator (i.e. ":") - it is
11027 # assumed that no part of a normal pathname contains ";" but that should
11028 # okay in the real world where ";" in dirpaths is itself problematic.
11029 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11032 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11034 esac
11035 # Ok, now we have the path, separated by spaces, we can step through it
11036 # and add multilib dir if necessary.
11037 lt_tmp_lt_search_path_spec=
11038 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11039 for lt_sys_path in $lt_search_path_spec; do
11040 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11041 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11042 else
11043 test -d "$lt_sys_path" && \
11044 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11046 done
11047 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11048 BEGIN {RS=" "; FS="/|\n";} {
11049 lt_foo="";
11050 lt_count=0;
11051 for (lt_i = NF; lt_i > 0; lt_i--) {
11052 if ($lt_i != "" && $lt_i != ".") {
11053 if ($lt_i == "..") {
11054 lt_count++;
11055 } else {
11056 if (lt_count == 0) {
11057 lt_foo="/" $lt_i lt_foo;
11058 } else {
11059 lt_count--;
11064 if (lt_foo != "") { lt_freq[lt_foo]++; }
11065 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11067 # AWK program above erroneously prepends '/' to C:/dos/paths
11068 # for these hosts.
11069 case $host_os in
11070 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11071 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11072 esac
11073 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11074 else
11075 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11077 library_names_spec=
11078 libname_spec='lib$name'
11079 soname_spec=
11080 shrext_cmds=".so"
11081 postinstall_cmds=
11082 postuninstall_cmds=
11083 finish_cmds=
11084 finish_eval=
11085 shlibpath_var=
11086 shlibpath_overrides_runpath=unknown
11087 version_type=none
11088 dynamic_linker="$host_os ld.so"
11089 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11090 need_lib_prefix=unknown
11091 hardcode_into_libs=no
11093 # when you set need_version to no, make sure it does not cause -set_version
11094 # flags to be left without arguments
11095 need_version=unknown
11097 case $host_os in
11098 aix3*)
11099 version_type=linux
11100 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11101 shlibpath_var=LIBPATH
11103 # AIX 3 has no versioning support, so we append a major version to the name.
11104 soname_spec='${libname}${release}${shared_ext}$major'
11107 aix[4-9]*)
11108 version_type=linux
11109 need_lib_prefix=no
11110 need_version=no
11111 hardcode_into_libs=yes
11112 if test "$host_cpu" = ia64; then
11113 # AIX 5 supports IA64
11114 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11115 shlibpath_var=LD_LIBRARY_PATH
11116 else
11117 # With GCC up to 2.95.x, collect2 would create an import file
11118 # for dependence libraries. The import file would start with
11119 # the line `#! .'. This would cause the generated library to
11120 # depend on `.', always an invalid library. This was fixed in
11121 # development snapshots of GCC prior to 3.0.
11122 case $host_os in
11123 aix4 | aix4.[01] | aix4.[01].*)
11124 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11125 echo ' yes '
11126 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11128 else
11129 can_build_shared=no
11132 esac
11133 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11134 # soname into executable. Probably we can add versioning support to
11135 # collect2, so additional links can be useful in future.
11136 if test "$aix_use_runtimelinking" = yes; then
11137 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11138 # instead of lib<name>.a to let people know that these are not
11139 # typical AIX shared libraries.
11140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11141 else
11142 # We preserve .a as extension for shared libraries through AIX4.2
11143 # and later when we are not doing run time linking.
11144 library_names_spec='${libname}${release}.a $libname.a'
11145 soname_spec='${libname}${release}${shared_ext}$major'
11147 shlibpath_var=LIBPATH
11151 amigaos*)
11152 case $host_cpu in
11153 powerpc)
11154 # Since July 2007 AmigaOS4 officially supports .so libraries.
11155 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11158 m68k)
11159 library_names_spec='$libname.ixlibrary $libname.a'
11160 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11161 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'
11163 esac
11166 beos*)
11167 library_names_spec='${libname}${shared_ext}'
11168 dynamic_linker="$host_os ld.so"
11169 shlibpath_var=LIBRARY_PATH
11172 bsdi[45]*)
11173 version_type=linux
11174 need_version=no
11175 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11176 soname_spec='${libname}${release}${shared_ext}$major'
11177 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11178 shlibpath_var=LD_LIBRARY_PATH
11179 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11180 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11181 # the default ld.so.conf also contains /usr/contrib/lib and
11182 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11183 # libtool to hard-code these into programs
11186 cygwin* | mingw* | pw32* | cegcc*)
11187 version_type=windows
11188 shrext_cmds=".dll"
11189 need_version=no
11190 need_lib_prefix=no
11192 case $GCC,$host_os in
11193 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11194 library_names_spec='$libname.dll.a'
11195 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11196 postinstall_cmds='base_file=`basename \${file}`~
11197 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11198 dldir=$destdir/`dirname \$dlpath`~
11199 test -d \$dldir || mkdir -p \$dldir~
11200 $install_prog $dir/$dlname \$dldir/$dlname~
11201 chmod a+x \$dldir/$dlname~
11202 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11203 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11205 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11206 dlpath=$dir/\$dldll~
11207 $RM \$dlpath'
11208 shlibpath_overrides_runpath=yes
11210 case $host_os in
11211 cygwin*)
11212 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11213 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11215 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11217 mingw* | cegcc*)
11218 # MinGW DLLs use traditional 'lib' prefix
11219 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11221 pw32*)
11222 # pw32 DLLs use 'pw' prefix rather than 'lib'
11223 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11225 esac
11229 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11231 esac
11232 dynamic_linker='Win32 ld.exe'
11233 # FIXME: first we should search . and the directory the executable is in
11234 shlibpath_var=PATH
11237 darwin* | rhapsody*)
11238 dynamic_linker="$host_os dyld"
11239 version_type=darwin
11240 need_lib_prefix=no
11241 need_version=no
11242 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11243 soname_spec='${libname}${release}${major}$shared_ext'
11244 shlibpath_overrides_runpath=yes
11245 shlibpath_var=DYLD_LIBRARY_PATH
11246 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11248 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11249 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11252 dgux*)
11253 version_type=linux
11254 need_lib_prefix=no
11255 need_version=no
11256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11257 soname_spec='${libname}${release}${shared_ext}$major'
11258 shlibpath_var=LD_LIBRARY_PATH
11261 freebsd* | dragonfly*)
11262 # DragonFly does not have aout. When/if they implement a new
11263 # versioning mechanism, adjust this.
11264 if test -x /usr/bin/objformat; then
11265 objformat=`/usr/bin/objformat`
11266 else
11267 case $host_os in
11268 freebsd[23].*) objformat=aout ;;
11269 *) objformat=elf ;;
11270 esac
11272 version_type=freebsd-$objformat
11273 case $version_type in
11274 freebsd-elf*)
11275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11276 need_version=no
11277 need_lib_prefix=no
11279 freebsd-*)
11280 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11281 need_version=yes
11283 esac
11284 shlibpath_var=LD_LIBRARY_PATH
11285 case $host_os in
11286 freebsd2.*)
11287 shlibpath_overrides_runpath=yes
11289 freebsd3.[01]* | freebsdelf3.[01]*)
11290 shlibpath_overrides_runpath=yes
11291 hardcode_into_libs=yes
11293 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11294 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11295 shlibpath_overrides_runpath=no
11296 hardcode_into_libs=yes
11298 *) # from 4.6 on, and DragonFly
11299 shlibpath_overrides_runpath=yes
11300 hardcode_into_libs=yes
11302 esac
11305 haiku*)
11306 version_type=linux
11307 need_lib_prefix=no
11308 need_version=no
11309 dynamic_linker="$host_os runtime_loader"
11310 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11311 soname_spec='${libname}${release}${shared_ext}$major'
11312 shlibpath_var=LIBRARY_PATH
11313 shlibpath_overrides_runpath=yes
11314 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11315 hardcode_into_libs=yes
11318 hpux9* | hpux10* | hpux11*)
11319 # Give a soname corresponding to the major version so that dld.sl refuses to
11320 # link against other versions.
11321 version_type=sunos
11322 need_lib_prefix=no
11323 need_version=no
11324 case $host_cpu in
11325 ia64*)
11326 shrext_cmds='.so'
11327 hardcode_into_libs=yes
11328 dynamic_linker="$host_os dld.so"
11329 shlibpath_var=LD_LIBRARY_PATH
11330 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11332 soname_spec='${libname}${release}${shared_ext}$major'
11333 if test "X$HPUX_IA64_MODE" = X32; then
11334 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11335 else
11336 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11338 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11340 hppa*64*)
11341 shrext_cmds='.sl'
11342 hardcode_into_libs=yes
11343 dynamic_linker="$host_os dld.sl"
11344 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11345 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11347 soname_spec='${libname}${release}${shared_ext}$major'
11348 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11349 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11352 shrext_cmds='.sl'
11353 dynamic_linker="$host_os dld.sl"
11354 shlibpath_var=SHLIB_PATH
11355 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11357 soname_spec='${libname}${release}${shared_ext}$major'
11359 esac
11360 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11361 postinstall_cmds='chmod 555 $lib'
11362 # or fails outright, so override atomically:
11363 install_override_mode=555
11366 interix[3-9]*)
11367 version_type=linux
11368 need_lib_prefix=no
11369 need_version=no
11370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11371 soname_spec='${libname}${release}${shared_ext}$major'
11372 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11373 shlibpath_var=LD_LIBRARY_PATH
11374 shlibpath_overrides_runpath=no
11375 hardcode_into_libs=yes
11378 irix5* | irix6* | nonstopux*)
11379 case $host_os in
11380 nonstopux*) version_type=nonstopux ;;
11382 if test "$lt_cv_prog_gnu_ld" = yes; then
11383 version_type=linux
11384 else
11385 version_type=irix
11386 fi ;;
11387 esac
11388 need_lib_prefix=no
11389 need_version=no
11390 soname_spec='${libname}${release}${shared_ext}$major'
11391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11392 case $host_os in
11393 irix5* | nonstopux*)
11394 libsuff= shlibsuff=
11397 case $LD in # libtool.m4 will add one of these switches to LD
11398 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11399 libsuff= shlibsuff= libmagic=32-bit;;
11400 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11401 libsuff=32 shlibsuff=N32 libmagic=N32;;
11402 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11403 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11404 *) libsuff= shlibsuff= libmagic=never-match;;
11405 esac
11407 esac
11408 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11409 shlibpath_overrides_runpath=no
11410 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11411 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11412 hardcode_into_libs=yes
11415 # No shared lib support for Linux oldld, aout, or coff.
11416 linux*oldld* | linux*aout* | linux*coff*)
11417 dynamic_linker=no
11420 # This must be Linux ELF.
11422 # uclinux* changes (here and below) have been submitted to the libtool
11423 # project, but have not yet been accepted: they are GCC-local changes
11424 # for the time being. (See
11425 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
11426 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
11427 version_type=linux
11428 need_lib_prefix=no
11429 need_version=no
11430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11431 soname_spec='${libname}${release}${shared_ext}$major'
11432 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11433 shlibpath_var=LD_LIBRARY_PATH
11434 shlibpath_overrides_runpath=no
11436 # Some binutils ld are patched to set DT_RUNPATH
11437 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11438 $as_echo_n "(cached) " >&6
11439 else
11440 lt_cv_shlibpath_overrides_runpath=no
11441 save_LDFLAGS=$LDFLAGS
11442 save_libdir=$libdir
11443 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11444 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11446 /* end confdefs.h. */
11449 main ()
11453 return 0;
11455 _ACEOF
11456 if ac_fn_c_try_link "$LINENO"; then :
11457 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11458 lt_cv_shlibpath_overrides_runpath=yes
11461 rm -f core conftest.err conftest.$ac_objext \
11462 conftest$ac_exeext conftest.$ac_ext
11463 LDFLAGS=$save_LDFLAGS
11464 libdir=$save_libdir
11468 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11470 # This implies no fast_install, which is unacceptable.
11471 # Some rework will be needed to allow for fast_install
11472 # before this can be enabled.
11473 hardcode_into_libs=yes
11475 # Append ld.so.conf contents to the search path
11476 if test -f /etc/ld.so.conf; then
11477 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' ' '`
11478 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11481 # We used to test for /lib/ld.so.1 and disable shared libraries on
11482 # powerpc, because MkLinux only supported shared libraries with the
11483 # GNU dynamic linker. Since this was broken with cross compilers,
11484 # most powerpc-linux boxes support dynamic linking these days and
11485 # people can always --disable-shared, the test was removed, and we
11486 # assume the GNU/Linux dynamic linker is in use.
11487 dynamic_linker='GNU/Linux ld.so'
11490 netbsd*)
11491 version_type=sunos
11492 need_lib_prefix=no
11493 need_version=no
11494 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11496 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11497 dynamic_linker='NetBSD (a.out) ld.so'
11498 else
11499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11500 soname_spec='${libname}${release}${shared_ext}$major'
11501 dynamic_linker='NetBSD ld.elf_so'
11503 shlibpath_var=LD_LIBRARY_PATH
11504 shlibpath_overrides_runpath=yes
11505 hardcode_into_libs=yes
11508 newsos6)
11509 version_type=linux
11510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11511 shlibpath_var=LD_LIBRARY_PATH
11512 shlibpath_overrides_runpath=yes
11515 *nto* | *qnx*)
11516 version_type=qnx
11517 need_lib_prefix=no
11518 need_version=no
11519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11520 soname_spec='${libname}${release}${shared_ext}$major'
11521 shlibpath_var=LD_LIBRARY_PATH
11522 shlibpath_overrides_runpath=no
11523 hardcode_into_libs=yes
11524 dynamic_linker='ldqnx.so'
11527 openbsd*)
11528 version_type=sunos
11529 sys_lib_dlsearch_path_spec="/usr/lib"
11530 need_lib_prefix=no
11531 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11532 case $host_os in
11533 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11534 *) need_version=no ;;
11535 esac
11536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11537 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11538 shlibpath_var=LD_LIBRARY_PATH
11539 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11540 case $host_os in
11541 openbsd2.[89] | openbsd2.[89].*)
11542 shlibpath_overrides_runpath=no
11545 shlibpath_overrides_runpath=yes
11547 esac
11548 else
11549 shlibpath_overrides_runpath=yes
11553 os2*)
11554 libname_spec='$name'
11555 shrext_cmds=".dll"
11556 need_lib_prefix=no
11557 library_names_spec='$libname${shared_ext} $libname.a'
11558 dynamic_linker='OS/2 ld.exe'
11559 shlibpath_var=LIBPATH
11562 osf3* | osf4* | osf5*)
11563 version_type=osf
11564 need_lib_prefix=no
11565 need_version=no
11566 soname_spec='${libname}${release}${shared_ext}$major'
11567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11568 shlibpath_var=LD_LIBRARY_PATH
11569 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11570 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11573 rdos*)
11574 dynamic_linker=no
11577 solaris*)
11578 version_type=linux
11579 need_lib_prefix=no
11580 need_version=no
11581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11582 soname_spec='${libname}${release}${shared_ext}$major'
11583 shlibpath_var=LD_LIBRARY_PATH
11584 shlibpath_overrides_runpath=yes
11585 hardcode_into_libs=yes
11586 # ldd complains unless libraries are executable
11587 postinstall_cmds='chmod +x $lib'
11590 sunos4*)
11591 version_type=sunos
11592 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11593 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11594 shlibpath_var=LD_LIBRARY_PATH
11595 shlibpath_overrides_runpath=yes
11596 if test "$with_gnu_ld" = yes; then
11597 need_lib_prefix=no
11599 need_version=yes
11602 sysv4 | sysv4.3*)
11603 version_type=linux
11604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11605 soname_spec='${libname}${release}${shared_ext}$major'
11606 shlibpath_var=LD_LIBRARY_PATH
11607 case $host_vendor in
11608 sni)
11609 shlibpath_overrides_runpath=no
11610 need_lib_prefix=no
11611 runpath_var=LD_RUN_PATH
11613 siemens)
11614 need_lib_prefix=no
11616 motorola)
11617 need_lib_prefix=no
11618 need_version=no
11619 shlibpath_overrides_runpath=no
11620 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11622 esac
11625 sysv4*MP*)
11626 if test -d /usr/nec ;then
11627 version_type=linux
11628 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11629 soname_spec='$libname${shared_ext}.$major'
11630 shlibpath_var=LD_LIBRARY_PATH
11634 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11635 version_type=freebsd-elf
11636 need_lib_prefix=no
11637 need_version=no
11638 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11639 soname_spec='${libname}${release}${shared_ext}$major'
11640 shlibpath_var=LD_LIBRARY_PATH
11641 shlibpath_overrides_runpath=yes
11642 hardcode_into_libs=yes
11643 if test "$with_gnu_ld" = yes; then
11644 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11645 else
11646 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11647 case $host_os in
11648 sco3.2v5*)
11649 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11651 esac
11653 sys_lib_dlsearch_path_spec='/usr/lib'
11656 tpf*)
11657 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11658 version_type=linux
11659 need_lib_prefix=no
11660 need_version=no
11661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11662 shlibpath_var=LD_LIBRARY_PATH
11663 shlibpath_overrides_runpath=no
11664 hardcode_into_libs=yes
11667 uts4*)
11668 version_type=linux
11669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11670 soname_spec='${libname}${release}${shared_ext}$major'
11671 shlibpath_var=LD_LIBRARY_PATH
11674 # Shared libraries for VwWorks, >= 7 only at this stage
11675 # and (fpic) still incompatible with "large" code models
11676 # in a few configurations. Only for RTP mode in any case,
11677 # and upon explicit request at configure time.
11678 vxworks7*)
11679 dynamic_linker=no
11680 case ${with_multisubdir}-${enable_shared} in
11681 *large*)
11683 *mrtp*-yes)
11684 version_type=linux
11685 need_lib_prefix=no
11686 need_version=no
11687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11688 soname_spec='${libname}${release}${shared_ext}$major'
11689 dynamic_linker="$host_os module_loader"
11691 esac
11694 dynamic_linker=no
11696 esac
11697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11698 $as_echo "$dynamic_linker" >&6; }
11699 test "$dynamic_linker" = no && can_build_shared=no
11701 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11702 if test "$GCC" = yes; then
11703 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11706 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11707 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11709 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11710 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11805 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11806 hardcode_action=
11807 if test -n "$hardcode_libdir_flag_spec" ||
11808 test -n "$runpath_var" ||
11809 test "X$hardcode_automatic" = "Xyes" ; then
11811 # We can hardcode non-existent directories.
11812 if test "$hardcode_direct" != no &&
11813 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11814 # have to relink, otherwise we might link with an installed library
11815 # when we should be linking with a yet-to-be-installed one
11816 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11817 test "$hardcode_minus_L" != no; then
11818 # Linking always hardcodes the temporary library directory.
11819 hardcode_action=relink
11820 else
11821 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11822 hardcode_action=immediate
11824 else
11825 # We cannot hardcode anything, or else we can only hardcode existing
11826 # directories.
11827 hardcode_action=unsupported
11829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11830 $as_echo "$hardcode_action" >&6; }
11832 if test "$hardcode_action" = relink ||
11833 test "$inherit_rpath" = yes; then
11834 # Fast installation is not supported
11835 enable_fast_install=no
11836 elif test "$shlibpath_overrides_runpath" = yes ||
11837 test "$enable_shared" = no; then
11838 # Fast installation is not necessary
11839 enable_fast_install=needless
11847 if test "x$enable_dlopen" != xyes; then
11848 enable_dlopen=unknown
11849 enable_dlopen_self=unknown
11850 enable_dlopen_self_static=unknown
11851 else
11852 lt_cv_dlopen=no
11853 lt_cv_dlopen_libs=
11855 case $host_os in
11856 beos*)
11857 lt_cv_dlopen="load_add_on"
11858 lt_cv_dlopen_libs=
11859 lt_cv_dlopen_self=yes
11862 mingw* | pw32* | cegcc*)
11863 lt_cv_dlopen="LoadLibrary"
11864 lt_cv_dlopen_libs=
11867 cygwin*)
11868 lt_cv_dlopen="dlopen"
11869 lt_cv_dlopen_libs=
11872 darwin*)
11873 # if libdl is installed we need to link against it
11874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11875 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11876 if ${ac_cv_lib_dl_dlopen+:} false; then :
11877 $as_echo_n "(cached) " >&6
11878 else
11879 ac_check_lib_save_LIBS=$LIBS
11880 LIBS="-ldl $LIBS"
11881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11882 /* end confdefs.h. */
11884 /* Override any GCC internal prototype to avoid an error.
11885 Use char because int might match the return type of a GCC
11886 builtin and then its argument prototype would still apply. */
11887 #ifdef __cplusplus
11888 extern "C"
11889 #endif
11890 char dlopen ();
11892 main ()
11894 return dlopen ();
11896 return 0;
11898 _ACEOF
11899 if ac_fn_c_try_link "$LINENO"; then :
11900 ac_cv_lib_dl_dlopen=yes
11901 else
11902 ac_cv_lib_dl_dlopen=no
11904 rm -f core conftest.err conftest.$ac_objext \
11905 conftest$ac_exeext conftest.$ac_ext
11906 LIBS=$ac_check_lib_save_LIBS
11908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11909 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11910 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11911 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11912 else
11914 lt_cv_dlopen="dyld"
11915 lt_cv_dlopen_libs=
11916 lt_cv_dlopen_self=yes
11923 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11924 if test "x$ac_cv_func_shl_load" = xyes; then :
11925 lt_cv_dlopen="shl_load"
11926 else
11927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11928 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11929 if ${ac_cv_lib_dld_shl_load+:} false; then :
11930 $as_echo_n "(cached) " >&6
11931 else
11932 ac_check_lib_save_LIBS=$LIBS
11933 LIBS="-ldld $LIBS"
11934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11935 /* end confdefs.h. */
11937 /* Override any GCC internal prototype to avoid an error.
11938 Use char because int might match the return type of a GCC
11939 builtin and then its argument prototype would still apply. */
11940 #ifdef __cplusplus
11941 extern "C"
11942 #endif
11943 char shl_load ();
11945 main ()
11947 return shl_load ();
11949 return 0;
11951 _ACEOF
11952 if ac_fn_c_try_link "$LINENO"; then :
11953 ac_cv_lib_dld_shl_load=yes
11954 else
11955 ac_cv_lib_dld_shl_load=no
11957 rm -f core conftest.err conftest.$ac_objext \
11958 conftest$ac_exeext conftest.$ac_ext
11959 LIBS=$ac_check_lib_save_LIBS
11961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11962 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11963 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11964 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11965 else
11966 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11967 if test "x$ac_cv_func_dlopen" = xyes; then :
11968 lt_cv_dlopen="dlopen"
11969 else
11970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11971 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11972 if ${ac_cv_lib_dl_dlopen+:} false; then :
11973 $as_echo_n "(cached) " >&6
11974 else
11975 ac_check_lib_save_LIBS=$LIBS
11976 LIBS="-ldl $LIBS"
11977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11978 /* end confdefs.h. */
11980 /* Override any GCC internal prototype to avoid an error.
11981 Use char because int might match the return type of a GCC
11982 builtin and then its argument prototype would still apply. */
11983 #ifdef __cplusplus
11984 extern "C"
11985 #endif
11986 char dlopen ();
11988 main ()
11990 return dlopen ();
11992 return 0;
11994 _ACEOF
11995 if ac_fn_c_try_link "$LINENO"; then :
11996 ac_cv_lib_dl_dlopen=yes
11997 else
11998 ac_cv_lib_dl_dlopen=no
12000 rm -f core conftest.err conftest.$ac_objext \
12001 conftest$ac_exeext conftest.$ac_ext
12002 LIBS=$ac_check_lib_save_LIBS
12004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12005 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12006 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12007 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12008 else
12009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12010 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12011 if ${ac_cv_lib_svld_dlopen+:} false; then :
12012 $as_echo_n "(cached) " >&6
12013 else
12014 ac_check_lib_save_LIBS=$LIBS
12015 LIBS="-lsvld $LIBS"
12016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12017 /* end confdefs.h. */
12019 /* Override any GCC internal prototype to avoid an error.
12020 Use char because int might match the return type of a GCC
12021 builtin and then its argument prototype would still apply. */
12022 #ifdef __cplusplus
12023 extern "C"
12024 #endif
12025 char dlopen ();
12027 main ()
12029 return dlopen ();
12031 return 0;
12033 _ACEOF
12034 if ac_fn_c_try_link "$LINENO"; then :
12035 ac_cv_lib_svld_dlopen=yes
12036 else
12037 ac_cv_lib_svld_dlopen=no
12039 rm -f core conftest.err conftest.$ac_objext \
12040 conftest$ac_exeext conftest.$ac_ext
12041 LIBS=$ac_check_lib_save_LIBS
12043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12044 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12045 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12046 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12047 else
12048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12049 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12050 if ${ac_cv_lib_dld_dld_link+:} false; then :
12051 $as_echo_n "(cached) " >&6
12052 else
12053 ac_check_lib_save_LIBS=$LIBS
12054 LIBS="-ldld $LIBS"
12055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12056 /* end confdefs.h. */
12058 /* Override any GCC internal prototype to avoid an error.
12059 Use char because int might match the return type of a GCC
12060 builtin and then its argument prototype would still apply. */
12061 #ifdef __cplusplus
12062 extern "C"
12063 #endif
12064 char dld_link ();
12066 main ()
12068 return dld_link ();
12070 return 0;
12072 _ACEOF
12073 if ac_fn_c_try_link "$LINENO"; then :
12074 ac_cv_lib_dld_dld_link=yes
12075 else
12076 ac_cv_lib_dld_dld_link=no
12078 rm -f core conftest.err conftest.$ac_objext \
12079 conftest$ac_exeext conftest.$ac_ext
12080 LIBS=$ac_check_lib_save_LIBS
12082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12083 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12084 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12085 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12104 esac
12106 if test "x$lt_cv_dlopen" != xno; then
12107 enable_dlopen=yes
12108 else
12109 enable_dlopen=no
12112 case $lt_cv_dlopen in
12113 dlopen)
12114 save_CPPFLAGS="$CPPFLAGS"
12115 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12117 save_LDFLAGS="$LDFLAGS"
12118 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12120 save_LIBS="$LIBS"
12121 LIBS="$lt_cv_dlopen_libs $LIBS"
12123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12124 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12125 if ${lt_cv_dlopen_self+:} false; then :
12126 $as_echo_n "(cached) " >&6
12127 else
12128 if test "$cross_compiling" = yes; then :
12129 lt_cv_dlopen_self=cross
12130 else
12131 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12132 lt_status=$lt_dlunknown
12133 cat > conftest.$ac_ext <<_LT_EOF
12134 #line 12134 "configure"
12135 #include "confdefs.h"
12137 #if HAVE_DLFCN_H
12138 #include <dlfcn.h>
12139 #endif
12141 #include <stdio.h>
12143 #ifdef RTLD_GLOBAL
12144 # define LT_DLGLOBAL RTLD_GLOBAL
12145 #else
12146 # ifdef DL_GLOBAL
12147 # define LT_DLGLOBAL DL_GLOBAL
12148 # else
12149 # define LT_DLGLOBAL 0
12150 # endif
12151 #endif
12153 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12154 find out it does not work in some platform. */
12155 #ifndef LT_DLLAZY_OR_NOW
12156 # ifdef RTLD_LAZY
12157 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12158 # else
12159 # ifdef DL_LAZY
12160 # define LT_DLLAZY_OR_NOW DL_LAZY
12161 # else
12162 # ifdef RTLD_NOW
12163 # define LT_DLLAZY_OR_NOW RTLD_NOW
12164 # else
12165 # ifdef DL_NOW
12166 # define LT_DLLAZY_OR_NOW DL_NOW
12167 # else
12168 # define LT_DLLAZY_OR_NOW 0
12169 # endif
12170 # endif
12171 # endif
12172 # endif
12173 #endif
12175 /* When -fvisbility=hidden is used, assume the code has been annotated
12176 correspondingly for the symbols needed. */
12177 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12178 void fnord () __attribute__((visibility("default")));
12179 #endif
12181 void fnord () { int i=42; }
12182 int main ()
12184 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12185 int status = $lt_dlunknown;
12187 if (self)
12189 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12190 else
12192 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12193 else puts (dlerror ());
12195 /* dlclose (self); */
12197 else
12198 puts (dlerror ());
12200 return status;
12202 _LT_EOF
12203 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12204 (eval $ac_link) 2>&5
12205 ac_status=$?
12206 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12207 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12208 (./conftest; exit; ) >&5 2>/dev/null
12209 lt_status=$?
12210 case x$lt_status in
12211 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12212 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12213 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12214 esac
12215 else :
12216 # compilation failed
12217 lt_cv_dlopen_self=no
12220 rm -fr conftest*
12224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12225 $as_echo "$lt_cv_dlopen_self" >&6; }
12227 if test "x$lt_cv_dlopen_self" = xyes; then
12228 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12230 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12231 if ${lt_cv_dlopen_self_static+:} false; then :
12232 $as_echo_n "(cached) " >&6
12233 else
12234 if test "$cross_compiling" = yes; then :
12235 lt_cv_dlopen_self_static=cross
12236 else
12237 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12238 lt_status=$lt_dlunknown
12239 cat > conftest.$ac_ext <<_LT_EOF
12240 #line 12240 "configure"
12241 #include "confdefs.h"
12243 #if HAVE_DLFCN_H
12244 #include <dlfcn.h>
12245 #endif
12247 #include <stdio.h>
12249 #ifdef RTLD_GLOBAL
12250 # define LT_DLGLOBAL RTLD_GLOBAL
12251 #else
12252 # ifdef DL_GLOBAL
12253 # define LT_DLGLOBAL DL_GLOBAL
12254 # else
12255 # define LT_DLGLOBAL 0
12256 # endif
12257 #endif
12259 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12260 find out it does not work in some platform. */
12261 #ifndef LT_DLLAZY_OR_NOW
12262 # ifdef RTLD_LAZY
12263 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12264 # else
12265 # ifdef DL_LAZY
12266 # define LT_DLLAZY_OR_NOW DL_LAZY
12267 # else
12268 # ifdef RTLD_NOW
12269 # define LT_DLLAZY_OR_NOW RTLD_NOW
12270 # else
12271 # ifdef DL_NOW
12272 # define LT_DLLAZY_OR_NOW DL_NOW
12273 # else
12274 # define LT_DLLAZY_OR_NOW 0
12275 # endif
12276 # endif
12277 # endif
12278 # endif
12279 #endif
12281 /* When -fvisbility=hidden is used, assume the code has been annotated
12282 correspondingly for the symbols needed. */
12283 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12284 void fnord () __attribute__((visibility("default")));
12285 #endif
12287 void fnord () { int i=42; }
12288 int main ()
12290 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12291 int status = $lt_dlunknown;
12293 if (self)
12295 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12296 else
12298 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12299 else puts (dlerror ());
12301 /* dlclose (self); */
12303 else
12304 puts (dlerror ());
12306 return status;
12308 _LT_EOF
12309 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12310 (eval $ac_link) 2>&5
12311 ac_status=$?
12312 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12313 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12314 (./conftest; exit; ) >&5 2>/dev/null
12315 lt_status=$?
12316 case x$lt_status in
12317 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12318 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12319 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12320 esac
12321 else :
12322 # compilation failed
12323 lt_cv_dlopen_self_static=no
12326 rm -fr conftest*
12330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12331 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12334 CPPFLAGS="$save_CPPFLAGS"
12335 LDFLAGS="$save_LDFLAGS"
12336 LIBS="$save_LIBS"
12338 esac
12340 case $lt_cv_dlopen_self in
12341 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12342 *) enable_dlopen_self=unknown ;;
12343 esac
12345 case $lt_cv_dlopen_self_static in
12346 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12347 *) enable_dlopen_self_static=unknown ;;
12348 esac
12367 striplib=
12368 old_striplib=
12369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12370 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12371 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12372 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12373 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12375 $as_echo "yes" >&6; }
12376 else
12377 # FIXME - insert some real tests, host_os isn't really good enough
12378 case $host_os in
12379 darwin*)
12380 if test -n "$STRIP" ; then
12381 striplib="$STRIP -x"
12382 old_striplib="$STRIP -S"
12383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12384 $as_echo "yes" >&6; }
12385 else
12386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12387 $as_echo "no" >&6; }
12391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12392 $as_echo "no" >&6; }
12394 esac
12408 # Report which library types will actually be built
12409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12410 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12412 $as_echo "$can_build_shared" >&6; }
12414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12415 $as_echo_n "checking whether to build shared libraries... " >&6; }
12416 test "$can_build_shared" = "no" && enable_shared=no
12418 # On AIX, shared libraries and static libraries use the same namespace, and
12419 # are all built from PIC.
12420 case $host_os in
12421 aix3*)
12422 test "$enable_shared" = yes && enable_static=no
12423 if test -n "$RANLIB"; then
12424 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12425 postinstall_cmds='$RANLIB $lib'
12429 aix[4-9]*)
12430 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12431 test "$enable_shared" = yes && enable_static=no
12434 esac
12435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12436 $as_echo "$enable_shared" >&6; }
12438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12439 $as_echo_n "checking whether to build static libraries... " >&6; }
12440 # Make sure either enable_shared or enable_static is yes.
12441 test "$enable_shared" = yes || enable_static=yes
12442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12443 $as_echo "$enable_static" >&6; }
12449 ac_ext=c
12450 ac_cpp='$CPP $CPPFLAGS'
12451 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12452 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12453 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12455 CC="$lt_save_CC"
12457 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12458 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12459 (test "X$CXX" != "Xg++"))) ; then
12460 ac_ext=cpp
12461 ac_cpp='$CXXCPP $CPPFLAGS'
12462 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12463 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12464 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12466 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12467 if test -z "$CXXCPP"; then
12468 if ${ac_cv_prog_CXXCPP+:} false; then :
12469 $as_echo_n "(cached) " >&6
12470 else
12471 # Double quotes because CXXCPP needs to be expanded
12472 for CXXCPP in "$CXX -E" "/lib/cpp"
12474 ac_preproc_ok=false
12475 for ac_cxx_preproc_warn_flag in '' yes
12477 # Use a header file that comes with gcc, so configuring glibc
12478 # with a fresh cross-compiler works.
12479 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12480 # <limits.h> exists even on freestanding compilers.
12481 # On the NeXT, cc -E runs the code through the compiler's parser,
12482 # not just through cpp. "Syntax error" is here to catch this case.
12483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12484 /* end confdefs.h. */
12485 #ifdef __STDC__
12486 # include <limits.h>
12487 #else
12488 # include <assert.h>
12489 #endif
12490 Syntax error
12491 _ACEOF
12492 if ac_fn_cxx_try_cpp "$LINENO"; then :
12494 else
12495 # Broken: fails on valid input.
12496 continue
12498 rm -f conftest.err conftest.i conftest.$ac_ext
12500 # OK, works on sane cases. Now check whether nonexistent headers
12501 # can be detected and how.
12502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12503 /* end confdefs.h. */
12504 #include <ac_nonexistent.h>
12505 _ACEOF
12506 if ac_fn_cxx_try_cpp "$LINENO"; then :
12507 # Broken: success on invalid input.
12508 continue
12509 else
12510 # Passes both tests.
12511 ac_preproc_ok=:
12512 break
12514 rm -f conftest.err conftest.i conftest.$ac_ext
12516 done
12517 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12518 rm -f conftest.i conftest.err conftest.$ac_ext
12519 if $ac_preproc_ok; then :
12520 break
12523 done
12524 ac_cv_prog_CXXCPP=$CXXCPP
12527 CXXCPP=$ac_cv_prog_CXXCPP
12528 else
12529 ac_cv_prog_CXXCPP=$CXXCPP
12531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12532 $as_echo "$CXXCPP" >&6; }
12533 ac_preproc_ok=false
12534 for ac_cxx_preproc_warn_flag in '' yes
12536 # Use a header file that comes with gcc, so configuring glibc
12537 # with a fresh cross-compiler works.
12538 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12539 # <limits.h> exists even on freestanding compilers.
12540 # On the NeXT, cc -E runs the code through the compiler's parser,
12541 # not just through cpp. "Syntax error" is here to catch this case.
12542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12543 /* end confdefs.h. */
12544 #ifdef __STDC__
12545 # include <limits.h>
12546 #else
12547 # include <assert.h>
12548 #endif
12549 Syntax error
12550 _ACEOF
12551 if ac_fn_cxx_try_cpp "$LINENO"; then :
12553 else
12554 # Broken: fails on valid input.
12555 continue
12557 rm -f conftest.err conftest.i conftest.$ac_ext
12559 # OK, works on sane cases. Now check whether nonexistent headers
12560 # can be detected and how.
12561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12562 /* end confdefs.h. */
12563 #include <ac_nonexistent.h>
12564 _ACEOF
12565 if ac_fn_cxx_try_cpp "$LINENO"; then :
12566 # Broken: success on invalid input.
12567 continue
12568 else
12569 # Passes both tests.
12570 ac_preproc_ok=:
12571 break
12573 rm -f conftest.err conftest.i conftest.$ac_ext
12575 done
12576 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12577 rm -f conftest.i conftest.err conftest.$ac_ext
12578 if $ac_preproc_ok; then :
12580 else
12581 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12582 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12583 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12584 See \`config.log' for more details" "$LINENO" 5; }
12587 ac_ext=c
12588 ac_cpp='$CPP $CPPFLAGS'
12589 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12590 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12591 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12593 else
12594 _lt_caught_CXX_error=yes
12597 ac_ext=cpp
12598 ac_cpp='$CXXCPP $CPPFLAGS'
12599 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12600 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12601 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12603 archive_cmds_need_lc_CXX=no
12604 allow_undefined_flag_CXX=
12605 always_export_symbols_CXX=no
12606 archive_expsym_cmds_CXX=
12607 compiler_needs_object_CXX=no
12608 export_dynamic_flag_spec_CXX=
12609 hardcode_direct_CXX=no
12610 hardcode_direct_absolute_CXX=no
12611 hardcode_libdir_flag_spec_CXX=
12612 hardcode_libdir_flag_spec_ld_CXX=
12613 hardcode_libdir_separator_CXX=
12614 hardcode_minus_L_CXX=no
12615 hardcode_shlibpath_var_CXX=unsupported
12616 hardcode_automatic_CXX=no
12617 inherit_rpath_CXX=no
12618 module_cmds_CXX=
12619 module_expsym_cmds_CXX=
12620 link_all_deplibs_CXX=unknown
12621 old_archive_cmds_CXX=$old_archive_cmds
12622 reload_flag_CXX=$reload_flag
12623 reload_cmds_CXX=$reload_cmds
12624 no_undefined_flag_CXX=
12625 whole_archive_flag_spec_CXX=
12626 enable_shared_with_static_runtimes_CXX=no
12628 # Source file extension for C++ test sources.
12629 ac_ext=cpp
12631 # Object file extension for compiled C++ test sources.
12632 objext=o
12633 objext_CXX=$objext
12635 # No sense in running all these tests if we already determined that
12636 # the CXX compiler isn't working. Some variables (like enable_shared)
12637 # are currently assumed to apply to all compilers on this platform,
12638 # and will be corrupted by setting them based on a non-working compiler.
12639 if test "$_lt_caught_CXX_error" != yes; then
12640 # Code to be used in simple compile tests
12641 lt_simple_compile_test_code="int some_variable = 0;"
12643 # Code to be used in simple link tests
12644 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12646 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12653 # If no C compiler was specified, use CC.
12654 LTCC=${LTCC-"$CC"}
12656 # If no C compiler flags were specified, use CFLAGS.
12657 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12659 # Allow CC to be a program name with arguments.
12660 compiler=$CC
12663 # save warnings/boilerplate of simple test code
12664 ac_outfile=conftest.$ac_objext
12665 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12666 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12667 _lt_compiler_boilerplate=`cat conftest.err`
12668 $RM conftest*
12670 ac_outfile=conftest.$ac_objext
12671 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12672 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12673 _lt_linker_boilerplate=`cat conftest.err`
12674 $RM -r conftest*
12677 # Allow CC to be a program name with arguments.
12678 lt_save_CC=$CC
12679 lt_save_LD=$LD
12680 lt_save_GCC=$GCC
12681 GCC=$GXX
12682 lt_save_with_gnu_ld=$with_gnu_ld
12683 lt_save_path_LD=$lt_cv_path_LD
12684 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12685 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12686 else
12687 $as_unset lt_cv_prog_gnu_ld
12689 if test -n "${lt_cv_path_LDCXX+set}"; then
12690 lt_cv_path_LD=$lt_cv_path_LDCXX
12691 else
12692 $as_unset lt_cv_path_LD
12694 test -z "${LDCXX+set}" || LD=$LDCXX
12695 CC=${CXX-"c++"}
12696 compiler=$CC
12697 compiler_CXX=$CC
12698 for cc_temp in $compiler""; do
12699 case $cc_temp in
12700 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12701 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12702 \-*) ;;
12703 *) break;;
12704 esac
12705 done
12706 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12709 if test -n "$compiler"; then
12710 # We don't want -fno-exception when compiling C++ code, so set the
12711 # no_builtin_flag separately
12712 if test "$GXX" = yes; then
12713 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12714 else
12715 lt_prog_compiler_no_builtin_flag_CXX=
12718 if test "$GXX" = yes; then
12719 # Set up default GNU C++ configuration
12723 # Check whether --with-gnu-ld was given.
12724 if test "${with_gnu_ld+set}" = set; then :
12725 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12726 else
12727 with_gnu_ld=no
12730 ac_prog=ld
12731 if test "$GCC" = yes; then
12732 # Check if gcc -print-prog-name=ld gives a path.
12733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12734 $as_echo_n "checking for ld used by $CC... " >&6; }
12735 case $host in
12736 *-*-mingw*)
12737 # gcc leaves a trailing carriage return which upsets mingw
12738 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12740 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12741 esac
12742 case $ac_prog in
12743 # Accept absolute paths.
12744 [\\/]* | ?:[\\/]*)
12745 re_direlt='/[^/][^/]*/\.\./'
12746 # Canonicalize the pathname of ld
12747 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12748 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12749 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12750 done
12751 test -z "$LD" && LD="$ac_prog"
12754 # If it fails, then pretend we aren't using GCC.
12755 ac_prog=ld
12758 # If it is relative, then search for the first ld in PATH.
12759 with_gnu_ld=unknown
12761 esac
12762 elif test "$with_gnu_ld" = yes; then
12763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12764 $as_echo_n "checking for GNU ld... " >&6; }
12765 else
12766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12767 $as_echo_n "checking for non-GNU ld... " >&6; }
12769 if ${lt_cv_path_LD+:} false; then :
12770 $as_echo_n "(cached) " >&6
12771 else
12772 if test -z "$LD"; then
12773 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12774 for ac_dir in $PATH; do
12775 IFS="$lt_save_ifs"
12776 test -z "$ac_dir" && ac_dir=.
12777 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12778 lt_cv_path_LD="$ac_dir/$ac_prog"
12779 # Check to see if the program is GNU ld. I'd rather use --version,
12780 # but apparently some variants of GNU ld only accept -v.
12781 # Break only if it was the GNU/non-GNU ld that we prefer.
12782 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12783 *GNU* | *'with BFD'*)
12784 test "$with_gnu_ld" != no && break
12787 test "$with_gnu_ld" != yes && break
12789 esac
12791 done
12792 IFS="$lt_save_ifs"
12793 else
12794 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12798 LD="$lt_cv_path_LD"
12799 if test -n "$LD"; then
12800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12801 $as_echo "$LD" >&6; }
12802 else
12803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12804 $as_echo "no" >&6; }
12806 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12808 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12809 if ${lt_cv_prog_gnu_ld+:} false; then :
12810 $as_echo_n "(cached) " >&6
12811 else
12812 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12813 case `$LD -v 2>&1 </dev/null` in
12814 *GNU* | *'with BFD'*)
12815 lt_cv_prog_gnu_ld=yes
12818 lt_cv_prog_gnu_ld=no
12820 esac
12822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12823 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12824 with_gnu_ld=$lt_cv_prog_gnu_ld
12832 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12833 # archiving commands below assume that GNU ld is being used.
12834 if test "$with_gnu_ld" = yes; then
12835 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12836 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'
12838 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12839 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12841 # If archive_cmds runs LD, not CC, wlarc should be empty
12842 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12843 # investigate it a little bit more. (MM)
12844 wlarc='${wl}'
12846 # ancient GNU ld didn't support --whole-archive et. al.
12847 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12848 $GREP 'no-whole-archive' > /dev/null; then
12849 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12850 else
12851 whole_archive_flag_spec_CXX=
12853 else
12854 with_gnu_ld=no
12855 wlarc=
12857 # A generic and very simple default shared library creation
12858 # command for GNU C++ for the case where it uses the native
12859 # linker, instead of GNU ld. If possible, this setting should
12860 # overridden to take advantage of the native linker features on
12861 # the platform it is being used on.
12862 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12865 # Commands to make compiler produce verbose output that lists
12866 # what "hidden" libraries, object files and flags are used when
12867 # linking a shared library.
12868 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12870 else
12871 GXX=no
12872 with_gnu_ld=no
12873 wlarc=
12876 # PORTME: fill in a description of your system's C++ link characteristics
12877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12878 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12879 ld_shlibs_CXX=yes
12880 case $host_os in
12881 aix3*)
12882 # FIXME: insert proper C++ library support
12883 ld_shlibs_CXX=no
12885 aix[4-9]*)
12886 if test "$host_cpu" = ia64; then
12887 # On IA64, the linker does run time linking by default, so we don't
12888 # have to do anything special.
12889 aix_use_runtimelinking=no
12890 exp_sym_flag='-Bexport'
12891 no_entry_flag=""
12892 else
12893 aix_use_runtimelinking=no
12895 # Test if we are trying to use run time linking or normal
12896 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12897 # need to do runtime linking.
12898 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12899 for ld_flag in $LDFLAGS; do
12900 case $ld_flag in
12901 *-brtl*)
12902 aix_use_runtimelinking=yes
12903 break
12905 esac
12906 done
12908 esac
12910 exp_sym_flag='-bexport'
12911 no_entry_flag='-bnoentry'
12914 # When large executables or shared objects are built, AIX ld can
12915 # have problems creating the table of contents. If linking a library
12916 # or program results in "error TOC overflow" add -mminimal-toc to
12917 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12918 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12920 archive_cmds_CXX=''
12921 hardcode_direct_CXX=yes
12922 hardcode_direct_absolute_CXX=yes
12923 hardcode_libdir_separator_CXX=':'
12924 link_all_deplibs_CXX=yes
12925 file_list_spec_CXX='${wl}-f,'
12927 if test "$GXX" = yes; then
12928 case $host_os in aix4.[012]|aix4.[012].*)
12929 # We only want to do this on AIX 4.2 and lower, the check
12930 # below for broken collect2 doesn't work under 4.3+
12931 collect2name=`${CC} -print-prog-name=collect2`
12932 if test -f "$collect2name" &&
12933 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12934 then
12935 # We have reworked collect2
12937 else
12938 # We have old collect2
12939 hardcode_direct_CXX=unsupported
12940 # It fails to find uninstalled libraries when the uninstalled
12941 # path is not listed in the libpath. Setting hardcode_minus_L
12942 # to unsupported forces relinking
12943 hardcode_minus_L_CXX=yes
12944 hardcode_libdir_flag_spec_CXX='-L$libdir'
12945 hardcode_libdir_separator_CXX=
12947 esac
12948 shared_flag='-shared'
12949 if test "$aix_use_runtimelinking" = yes; then
12950 shared_flag="$shared_flag "'${wl}-G'
12952 else
12953 # not using gcc
12954 if test "$host_cpu" = ia64; then
12955 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12956 # chokes on -Wl,-G. The following line is correct:
12957 shared_flag='-G'
12958 else
12959 if test "$aix_use_runtimelinking" = yes; then
12960 shared_flag='${wl}-G'
12961 else
12962 shared_flag='${wl}-bM:SRE'
12967 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12968 # It seems that -bexpall does not export symbols beginning with
12969 # underscore (_), so it is better to generate a list of symbols to
12970 # export.
12971 always_export_symbols_CXX=yes
12972 if test "$aix_use_runtimelinking" = yes; then
12973 # Warning - without using the other runtime loading flags (-brtl),
12974 # -berok will link without error, but may produce a broken library.
12975 allow_undefined_flag_CXX='-berok'
12976 # Determine the default libpath from the value encoded in an empty
12977 # executable.
12978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12979 /* end confdefs.h. */
12982 main ()
12986 return 0;
12988 _ACEOF
12989 if ac_fn_cxx_try_link "$LINENO"; then :
12991 lt_aix_libpath_sed='
12992 /Import File Strings/,/^$/ {
12993 /^0/ {
12994 s/^0 *\(.*\)$/\1/
12998 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12999 # Check for a 64-bit object if we didn't find anything.
13000 if test -z "$aix_libpath"; then
13001 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13004 rm -f core conftest.err conftest.$ac_objext \
13005 conftest$ac_exeext conftest.$ac_ext
13006 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13008 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13010 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"
13011 else
13012 if test "$host_cpu" = ia64; then
13013 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13014 allow_undefined_flag_CXX="-z nodefs"
13015 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"
13016 else
13017 # Determine the default libpath from the value encoded in an
13018 # empty executable.
13019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13020 /* end confdefs.h. */
13023 main ()
13027 return 0;
13029 _ACEOF
13030 if ac_fn_cxx_try_link "$LINENO"; then :
13032 lt_aix_libpath_sed='
13033 /Import File Strings/,/^$/ {
13034 /^0/ {
13035 s/^0 *\(.*\)$/\1/
13039 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13040 # Check for a 64-bit object if we didn't find anything.
13041 if test -z "$aix_libpath"; then
13042 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13045 rm -f core conftest.err conftest.$ac_objext \
13046 conftest$ac_exeext conftest.$ac_ext
13047 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13049 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13050 # Warning - without using the other run time loading flags,
13051 # -berok will link without error, but may produce a broken library.
13052 no_undefined_flag_CXX=' ${wl}-bernotok'
13053 allow_undefined_flag_CXX=' ${wl}-berok'
13054 if test "$with_gnu_ld" = yes; then
13055 # We only use this code for GNU lds that support --whole-archive.
13056 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13057 else
13058 # Exported symbols can be pulled into shared objects from archives
13059 whole_archive_flag_spec_CXX='$convenience'
13061 archive_cmds_need_lc_CXX=yes
13062 # This is similar to how AIX traditionally builds its shared
13063 # libraries.
13064 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'
13069 beos*)
13070 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13071 allow_undefined_flag_CXX=unsupported
13072 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13073 # support --undefined. This deserves some investigation. FIXME
13074 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13075 else
13076 ld_shlibs_CXX=no
13080 chorus*)
13081 case $cc_basename in
13083 # FIXME: insert proper C++ library support
13084 ld_shlibs_CXX=no
13086 esac
13089 cygwin* | mingw* | pw32* | cegcc*)
13090 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13091 # as there is no search path for DLLs.
13092 hardcode_libdir_flag_spec_CXX='-L$libdir'
13093 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13094 allow_undefined_flag_CXX=unsupported
13095 always_export_symbols_CXX=no
13096 enable_shared_with_static_runtimes_CXX=yes
13098 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13099 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'
13100 # If the export-symbols file already is a .def file (1st line
13101 # is EXPORTS), use it as is; otherwise, prepend...
13102 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13103 cp $export_symbols $output_objdir/$soname.def;
13104 else
13105 echo EXPORTS > $output_objdir/$soname.def;
13106 cat $export_symbols >> $output_objdir/$soname.def;
13108 $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'
13109 else
13110 ld_shlibs_CXX=no
13113 darwin* | rhapsody*)
13117 # Publish an arg to allow the user to select that Darwin host (and target)
13118 # libraries should be given install-names like @rpath/libfoo.dylib. This
13119 # requires that the user of the library then adds an 'rpath' to the DSO that
13120 # needs access.
13121 # NOTE: there are defaults below, for systems that support rpaths. The person
13122 # configuring can override the defaults for any system version that supports
13123 # them - they are, however, forced off for system versions without support.
13124 # Check whether --enable-darwin-at-rpath was given.
13125 if test "${enable_darwin_at_rpath+set}" = set; then :
13126 enableval=$enable_darwin_at_rpath; if test "x$enable_darwin_at_rpath" = "xyes"; then
13127 # This is not supported before macOS 10.5 / Darwin9.
13128 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host_os in
13129 UNSET,darwin[4-8]*|UNSET,rhapsody*|10.[0-4][,.]*)
13130 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Darwin @rpath library names are incompatible with OSX versions earlier than 10.5 (rpaths disabled)" >&5
13131 $as_echo "$as_me: WARNING: Darwin @rpath library names are incompatible with OSX versions earlier than 10.5 (rpaths disabled)" >&2;}
13132 enable_darwin_at_rpath=no
13134 esac
13136 else
13137 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host_os in
13138 # As above, before 10.5 / Darwin9 this does not work.
13139 UNSET,darwin[4-8]*|UNSET,rhapsody*|10.[0-4][,.]*)
13140 enable_darwin_at_rpath=no
13143 # We cannot build and test reliably on macOS 10.11+ (Darwin15+) without use
13144 # of rpaths, since runpaths set via DYLD_LIBRARY_PATH are elided by key
13145 # system executables (e.g. /bin/sh). Force rpaths on for these systems.
13146 UNSET,darwin1[5-9]*|UNSET,darwin2*|10.1[1-9][,.]*|1[1-9].*[,.]* )
13147 { $as_echo "$as_me:${as_lineno-$LINENO}: @rpath library names are needed on macOS versions later than 10.11 (rpaths have been enabled)" >&5
13148 $as_echo "$as_me: @rpath library names are needed on macOS versions later than 10.11 (rpaths have been enabled)" >&6;}
13149 enable_darwin_at_rpath=yes
13151 # NOTE: we are not (yet) doing anything for 10.5 .. 10.10, since they can
13152 # work with either DYLD_LIBRARY_PATH or embedded rpaths.
13154 esac
13159 archive_cmds_need_lc_CXX=no
13160 hardcode_direct_CXX=no
13161 hardcode_automatic_CXX=yes
13162 hardcode_shlibpath_var_CXX=unsupported
13163 if test "$lt_cv_ld_force_load" = "yes"; then
13164 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\"`'
13165 else
13166 whole_archive_flag_spec_CXX=''
13168 link_all_deplibs_CXX=yes
13169 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13170 case $cc_basename in
13171 ifort*) _lt_dar_can_shared=yes ;;
13172 *) _lt_dar_can_shared=$GCC ;;
13173 esac
13174 if test "$_lt_dar_can_shared" = "yes"; then
13175 output_verbose_link_cmd=func_echo_all
13176 _lt_install_name='\$rpath/\$soname'
13177 if test "x$enable_darwin_at_rpath" = "xyes"; then
13178 _lt_install_name='@rpath/\$soname'
13180 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name ${_lt_install_name} \$verstring ${_lt_dsymutil}"
13181 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13182 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 ${_lt_install_name} \$verstring ${_lt_dar_export_syms}${_lt_dsymutil}"
13183 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}"
13184 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13185 _lt_install_name='\$rpath/\$soname'
13186 if test "x$enable_darwin_at_rpath" = "xyes"; then
13187 _lt_install_name='@rpath/\$soname'
13189 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 ${_lt_install_name} \$verstring${_lt_dsymutil}"
13190 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}"
13193 else
13194 ld_shlibs_CXX=no
13199 dgux*)
13200 case $cc_basename in
13201 ec++*)
13202 # FIXME: insert proper C++ library support
13203 ld_shlibs_CXX=no
13205 ghcx*)
13206 # Green Hills C++ Compiler
13207 # FIXME: insert proper C++ library support
13208 ld_shlibs_CXX=no
13211 # FIXME: insert proper C++ library support
13212 ld_shlibs_CXX=no
13214 esac
13217 freebsd2.*)
13218 # C++ shared libraries reported to be fairly broken before
13219 # switch to ELF
13220 ld_shlibs_CXX=no
13223 freebsd-elf*)
13224 archive_cmds_need_lc_CXX=no
13227 freebsd* | dragonfly*)
13228 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13229 # conventions
13230 ld_shlibs_CXX=yes
13233 gnu*)
13236 haiku*)
13237 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13238 link_all_deplibs_CXX=yes
13241 hpux9*)
13242 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13243 hardcode_libdir_separator_CXX=:
13244 export_dynamic_flag_spec_CXX='${wl}-E'
13245 hardcode_direct_CXX=yes
13246 hardcode_minus_L_CXX=yes # Not in the search PATH,
13247 # but as the default
13248 # location of the library.
13250 case $cc_basename in
13251 CC*)
13252 # FIXME: insert proper C++ library support
13253 ld_shlibs_CXX=no
13255 aCC*)
13256 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'
13257 # Commands to make compiler produce verbose output that lists
13258 # what "hidden" libraries, object files and flags are used when
13259 # linking a shared library.
13261 # There doesn't appear to be a way to prevent this compiler from
13262 # explicitly linking system object files so we need to strip them
13263 # from the output so that they don't get included in the library
13264 # dependencies.
13265 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"'
13268 if test "$GXX" = yes; then
13269 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'
13270 else
13271 # FIXME: insert proper C++ library support
13272 ld_shlibs_CXX=no
13275 esac
13278 hpux10*|hpux11*)
13279 if test $with_gnu_ld = no; then
13280 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13281 hardcode_libdir_separator_CXX=:
13283 case $host_cpu in
13284 hppa*64*|ia64*)
13287 export_dynamic_flag_spec_CXX='${wl}-E'
13289 esac
13291 case $host_cpu in
13292 hppa*64*|ia64*)
13293 hardcode_direct_CXX=no
13294 hardcode_shlibpath_var_CXX=no
13297 hardcode_direct_CXX=yes
13298 hardcode_direct_absolute_CXX=yes
13299 hardcode_minus_L_CXX=yes # Not in the search PATH,
13300 # but as the default
13301 # location of the library.
13303 esac
13305 case $cc_basename in
13306 CC*)
13307 # FIXME: insert proper C++ library support
13308 ld_shlibs_CXX=no
13310 aCC*)
13311 case $host_cpu in
13312 hppa*64*)
13313 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13315 ia64*)
13316 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13319 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13321 esac
13322 # Commands to make compiler produce verbose output that lists
13323 # what "hidden" libraries, object files and flags are used when
13324 # linking a shared library.
13326 # There doesn't appear to be a way to prevent this compiler from
13327 # explicitly linking system object files so we need to strip them
13328 # from the output so that they don't get included in the library
13329 # dependencies.
13330 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"'
13333 if test "$GXX" = yes; then
13334 if test $with_gnu_ld = no; then
13335 case $host_cpu in
13336 hppa*64*)
13337 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13339 ia64*)
13340 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13343 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'
13345 esac
13347 else
13348 # FIXME: insert proper C++ library support
13349 ld_shlibs_CXX=no
13352 esac
13355 interix[3-9]*)
13356 hardcode_direct_CXX=no
13357 hardcode_shlibpath_var_CXX=no
13358 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13359 export_dynamic_flag_spec_CXX='${wl}-E'
13360 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13361 # Instead, shared libraries are loaded at an image base (0x10000000 by
13362 # default) and relocated if they conflict, which is a slow very memory
13363 # consuming and fragmenting process. To avoid this, we pick a random,
13364 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13365 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13366 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'
13367 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'
13369 irix5* | irix6*)
13370 case $cc_basename in
13371 CC*)
13372 # SGI C++
13373 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'
13375 # Archives containing C++ object files must be created using
13376 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13377 # necessary to make sure instantiated templates are included
13378 # in the archive.
13379 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13382 if test "$GXX" = yes; then
13383 if test "$with_gnu_ld" = no; then
13384 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'
13385 else
13386 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'
13389 link_all_deplibs_CXX=yes
13391 esac
13392 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13393 hardcode_libdir_separator_CXX=:
13394 inherit_rpath_CXX=yes
13397 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13398 case $cc_basename in
13399 KCC*)
13400 # Kuck and Associates, Inc. (KAI) C++ Compiler
13402 # KCC will only create a shared library if the output file
13403 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13404 # to its proper name (with version) after linking.
13405 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'
13406 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'
13407 # Commands to make compiler produce verbose output that lists
13408 # what "hidden" libraries, object files and flags are used when
13409 # linking a shared library.
13411 # There doesn't appear to be a way to prevent this compiler from
13412 # explicitly linking system object files so we need to strip them
13413 # from the output so that they don't get included in the library
13414 # dependencies.
13415 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"'
13417 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13418 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13420 # Archives containing C++ object files must be created using
13421 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13422 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13424 icpc* | ecpc* )
13425 # Intel C++
13426 with_gnu_ld=yes
13427 # version 8.0 and above of icpc choke on multiply defined symbols
13428 # if we add $predep_objects and $postdep_objects, however 7.1 and
13429 # earlier do not add the objects themselves.
13430 case `$CC -V 2>&1` in
13431 *"Version 7."*)
13432 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13433 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'
13435 *) # Version 8.0 or newer
13436 tmp_idyn=
13437 case $host_cpu in
13438 ia64*) tmp_idyn=' -i_dynamic';;
13439 esac
13440 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13441 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'
13443 esac
13444 archive_cmds_need_lc_CXX=no
13445 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13446 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13447 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13449 pgCC* | pgcpp*)
13450 # Portland Group C++ compiler
13451 case `$CC -V` in
13452 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13453 prelink_cmds_CXX='tpldir=Template.dir~
13454 rm -rf $tpldir~
13455 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13456 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13457 old_archive_cmds_CXX='tpldir=Template.dir~
13458 rm -rf $tpldir~
13459 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13460 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13461 $RANLIB $oldlib'
13462 archive_cmds_CXX='tpldir=Template.dir~
13463 rm -rf $tpldir~
13464 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13465 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13466 archive_expsym_cmds_CXX='tpldir=Template.dir~
13467 rm -rf $tpldir~
13468 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13469 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13471 *) # Version 6 and above use weak symbols
13472 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13473 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'
13475 esac
13477 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13478 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13479 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'
13481 cxx*)
13482 # Compaq C++
13483 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13484 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'
13486 runpath_var=LD_RUN_PATH
13487 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13488 hardcode_libdir_separator_CXX=:
13490 # Commands to make compiler produce verbose output that lists
13491 # what "hidden" libraries, object files and flags are used when
13492 # linking a shared library.
13494 # There doesn't appear to be a way to prevent this compiler from
13495 # explicitly linking system object files so we need to strip them
13496 # from the output so that they don't get included in the library
13497 # dependencies.
13498 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'
13500 xl* | mpixl* | bgxl*)
13501 # IBM XL 8.0 on PPC, with GNU ld
13502 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13503 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13504 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13505 if test "x$supports_anon_versioning" = xyes; then
13506 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13507 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13508 echo "local: *; };" >> $output_objdir/$libname.ver~
13509 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13513 case `$CC -V 2>&1 | sed 5q` in
13514 *Sun\ C*)
13515 # Sun C++ 5.9
13516 no_undefined_flag_CXX=' -zdefs'
13517 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13518 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'
13519 hardcode_libdir_flag_spec_CXX='-R$libdir'
13520 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'
13521 compiler_needs_object_CXX=yes
13523 # Not sure whether something based on
13524 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13525 # would be better.
13526 output_verbose_link_cmd='func_echo_all'
13528 # Archives containing C++ object files must be created using
13529 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13530 # necessary to make sure instantiated templates are included
13531 # in the archive.
13532 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13534 esac
13536 esac
13539 lynxos*)
13540 # FIXME: insert proper C++ library support
13541 ld_shlibs_CXX=no
13544 m88k*)
13545 # FIXME: insert proper C++ library support
13546 ld_shlibs_CXX=no
13549 mvs*)
13550 case $cc_basename in
13551 cxx*)
13552 # FIXME: insert proper C++ library support
13553 ld_shlibs_CXX=no
13556 # FIXME: insert proper C++ library support
13557 ld_shlibs_CXX=no
13559 esac
13562 netbsd*)
13563 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13564 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13565 wlarc=
13566 hardcode_libdir_flag_spec_CXX='-R$libdir'
13567 hardcode_direct_CXX=yes
13568 hardcode_shlibpath_var_CXX=no
13570 # Workaround some broken pre-1.5 toolchains
13571 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13574 *nto* | *qnx*)
13575 ld_shlibs_CXX=yes
13578 openbsd2*)
13579 # C++ shared libraries are fairly broken
13580 ld_shlibs_CXX=no
13583 openbsd*)
13584 if test -f /usr/libexec/ld.so; then
13585 hardcode_direct_CXX=yes
13586 hardcode_shlibpath_var_CXX=no
13587 hardcode_direct_absolute_CXX=yes
13588 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13589 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13590 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13591 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13592 export_dynamic_flag_spec_CXX='${wl}-E'
13593 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13595 output_verbose_link_cmd=func_echo_all
13596 else
13597 ld_shlibs_CXX=no
13601 osf3* | osf4* | osf5*)
13602 case $cc_basename in
13603 KCC*)
13604 # Kuck and Associates, Inc. (KAI) C++ Compiler
13606 # KCC will only create a shared library if the output file
13607 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13608 # to its proper name (with version) after linking.
13609 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'
13611 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13612 hardcode_libdir_separator_CXX=:
13614 # Archives containing C++ object files must be created using
13615 # the KAI C++ compiler.
13616 case $host in
13617 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13618 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13619 esac
13621 RCC*)
13622 # Rational C++ 2.4.1
13623 # FIXME: insert proper C++ library support
13624 ld_shlibs_CXX=no
13626 cxx*)
13627 case $host in
13628 osf3*)
13629 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13630 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'
13631 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13634 allow_undefined_flag_CXX=' -expect_unresolved \*'
13635 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'
13636 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13637 echo "-hidden">> $lib.exp~
13638 $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~
13639 $RM $lib.exp'
13640 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13642 esac
13644 hardcode_libdir_separator_CXX=:
13646 # Commands to make compiler produce verbose output that lists
13647 # what "hidden" libraries, object files and flags are used when
13648 # linking a shared library.
13650 # There doesn't appear to be a way to prevent this compiler from
13651 # explicitly linking system object files so we need to strip them
13652 # from the output so that they don't get included in the library
13653 # dependencies.
13654 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"'
13657 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13658 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13659 case $host in
13660 osf3*)
13661 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'
13664 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'
13666 esac
13668 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13669 hardcode_libdir_separator_CXX=:
13671 # Commands to make compiler produce verbose output that lists
13672 # what "hidden" libraries, object files and flags are used when
13673 # linking a shared library.
13674 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13676 else
13677 # FIXME: insert proper C++ library support
13678 ld_shlibs_CXX=no
13681 esac
13684 psos*)
13685 # FIXME: insert proper C++ library support
13686 ld_shlibs_CXX=no
13689 sunos4*)
13690 case $cc_basename in
13691 CC*)
13692 # Sun C++ 4.x
13693 # FIXME: insert proper C++ library support
13694 ld_shlibs_CXX=no
13696 lcc*)
13697 # Lucid
13698 # FIXME: insert proper C++ library support
13699 ld_shlibs_CXX=no
13702 # FIXME: insert proper C++ library support
13703 ld_shlibs_CXX=no
13705 esac
13708 solaris*)
13709 case $cc_basename in
13710 CC*)
13711 # Sun C++ 4.2, 5.x and Centerline C++
13712 archive_cmds_need_lc_CXX=yes
13713 no_undefined_flag_CXX=' -zdefs'
13714 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13715 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13716 $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'
13718 hardcode_libdir_flag_spec_CXX='-R$libdir'
13719 hardcode_shlibpath_var_CXX=no
13720 case $host_os in
13721 solaris2.[0-5] | solaris2.[0-5].*) ;;
13723 # The compiler driver will combine and reorder linker options,
13724 # but understands `-z linker_flag'.
13725 # Supported since Solaris 2.6 (maybe 2.5.1?)
13726 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13728 esac
13729 link_all_deplibs_CXX=yes
13731 output_verbose_link_cmd='func_echo_all'
13733 # Archives containing C++ object files must be created using
13734 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13735 # necessary to make sure instantiated templates are included
13736 # in the archive.
13737 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13739 gcx*)
13740 # Green Hills C++ Compiler
13741 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13743 # The C++ compiler must be used to create the archive.
13744 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13747 # GNU C++ compiler with Solaris linker
13748 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13749 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13750 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13751 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13752 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13753 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13755 # Commands to make compiler produce verbose output that lists
13756 # what "hidden" libraries, object files and flags are used when
13757 # linking a shared library.
13758 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13759 else
13760 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13761 # platform.
13762 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13763 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13764 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13766 # Commands to make compiler produce verbose output that lists
13767 # what "hidden" libraries, object files and flags are used when
13768 # linking a shared library.
13769 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13772 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13773 case $host_os in
13774 solaris2.[0-5] | solaris2.[0-5].*) ;;
13776 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13778 esac
13781 esac
13784 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13785 no_undefined_flag_CXX='${wl}-z,text'
13786 archive_cmds_need_lc_CXX=no
13787 hardcode_shlibpath_var_CXX=no
13788 runpath_var='LD_RUN_PATH'
13790 case $cc_basename in
13791 CC*)
13792 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13793 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13796 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13797 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13799 esac
13802 sysv5* | sco3.2v5* | sco5v6*)
13803 # Note: We can NOT use -z defs as we might desire, because we do not
13804 # link with -lc, and that would cause any symbols used from libc to
13805 # always be unresolved, which means just about no library would
13806 # ever link correctly. If we're not using GNU ld we use -z text
13807 # though, which does catch some bad symbols but isn't as heavy-handed
13808 # as -z defs.
13809 no_undefined_flag_CXX='${wl}-z,text'
13810 allow_undefined_flag_CXX='${wl}-z,nodefs'
13811 archive_cmds_need_lc_CXX=no
13812 hardcode_shlibpath_var_CXX=no
13813 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13814 hardcode_libdir_separator_CXX=':'
13815 link_all_deplibs_CXX=yes
13816 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13817 runpath_var='LD_RUN_PATH'
13819 case $cc_basename in
13820 CC*)
13821 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13822 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13823 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13824 '"$old_archive_cmds_CXX"
13825 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13826 '"$reload_cmds_CXX"
13829 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13830 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13832 esac
13835 tandem*)
13836 case $cc_basename in
13837 NCC*)
13838 # NonStop-UX NCC 3.20
13839 # FIXME: insert proper C++ library support
13840 ld_shlibs_CXX=no
13843 # FIXME: insert proper C++ library support
13844 ld_shlibs_CXX=no
13846 esac
13849 vxworks*)
13850 # For VxWorks ports, we assume the use of a GNU linker with
13851 # standard elf conventions.
13852 ld_shlibs_CXX=yes
13856 # FIXME: insert proper C++ library support
13857 ld_shlibs_CXX=no
13859 esac
13861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13862 $as_echo "$ld_shlibs_CXX" >&6; }
13863 test "$ld_shlibs_CXX" = no && can_build_shared=no
13865 GCC_CXX="$GXX"
13866 LD_CXX="$LD"
13868 ## CAVEAT EMPTOR:
13869 ## There is no encapsulation within the following macros, do not change
13870 ## the running order or otherwise move them around unless you know exactly
13871 ## what you are doing...
13872 # Dependencies to place before and after the object being linked:
13873 predep_objects_CXX=
13874 postdep_objects_CXX=
13875 predeps_CXX=
13876 postdeps_CXX=
13877 compiler_lib_search_path_CXX=
13879 cat > conftest.$ac_ext <<_LT_EOF
13880 class Foo
13882 public:
13883 Foo (void) { a = 0; }
13884 private:
13885 int a;
13887 _LT_EOF
13889 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13890 (eval $ac_compile) 2>&5
13891 ac_status=$?
13892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13893 test $ac_status = 0; }; then
13894 # Parse the compiler output and extract the necessary
13895 # objects, libraries and library flags.
13897 # Sentinel used to keep track of whether or not we are before
13898 # the conftest object file.
13899 pre_test_object_deps_done=no
13901 for p in `eval "$output_verbose_link_cmd"`; do
13902 case $p in
13904 -L* | -R* | -l*)
13905 # Some compilers place space between "-{L,R}" and the path.
13906 # Remove the space.
13907 if test $p = "-L" ||
13908 test $p = "-R"; then
13909 prev=$p
13910 continue
13911 else
13912 prev=
13915 if test "$pre_test_object_deps_done" = no; then
13916 case $p in
13917 -L* | -R*)
13918 # Internal compiler library paths should come after those
13919 # provided the user. The postdeps already come after the
13920 # user supplied libs so there is no need to process them.
13921 if test -z "$compiler_lib_search_path_CXX"; then
13922 compiler_lib_search_path_CXX="${prev}${p}"
13923 else
13924 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13927 # The "-l" case would never come before the object being
13928 # linked, so don't bother handling this case.
13929 esac
13930 else
13931 if test -z "$postdeps_CXX"; then
13932 postdeps_CXX="${prev}${p}"
13933 else
13934 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13939 *.$objext)
13940 # This assumes that the test object file only shows up
13941 # once in the compiler output.
13942 if test "$p" = "conftest.$objext"; then
13943 pre_test_object_deps_done=yes
13944 continue
13947 if test "$pre_test_object_deps_done" = no; then
13948 if test -z "$predep_objects_CXX"; then
13949 predep_objects_CXX="$p"
13950 else
13951 predep_objects_CXX="$predep_objects_CXX $p"
13953 else
13954 if test -z "$postdep_objects_CXX"; then
13955 postdep_objects_CXX="$p"
13956 else
13957 postdep_objects_CXX="$postdep_objects_CXX $p"
13962 *) ;; # Ignore the rest.
13964 esac
13965 done
13967 # Clean up.
13968 rm -f a.out a.exe
13969 else
13970 echo "libtool.m4: error: problem compiling CXX test program"
13973 $RM -f confest.$objext
13975 # PORTME: override above test on systems where it is broken
13976 case $host_os in
13977 interix[3-9]*)
13978 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13979 # hack all around it, let's just trust "g++" to DTRT.
13980 predep_objects_CXX=
13981 postdep_objects_CXX=
13982 postdeps_CXX=
13985 linux*)
13986 case `$CC -V 2>&1 | sed 5q` in
13987 *Sun\ C*)
13988 # Sun C++ 5.9
13990 # The more standards-conforming stlport4 library is
13991 # incompatible with the Cstd library. Avoid specifying
13992 # it if it's in CXXFLAGS. Ignore libCrun as
13993 # -library=stlport4 depends on it.
13994 case " $CXX $CXXFLAGS " in
13995 *" -library=stlport4 "*)
13996 solaris_use_stlport4=yes
13998 esac
14000 if test "$solaris_use_stlport4" != yes; then
14001 postdeps_CXX='-library=Cstd -library=Crun'
14004 esac
14007 solaris*)
14008 case $cc_basename in
14009 CC*)
14010 # The more standards-conforming stlport4 library is
14011 # incompatible with the Cstd library. Avoid specifying
14012 # it if it's in CXXFLAGS. Ignore libCrun as
14013 # -library=stlport4 depends on it.
14014 case " $CXX $CXXFLAGS " in
14015 *" -library=stlport4 "*)
14016 solaris_use_stlport4=yes
14018 esac
14020 # Adding this requires a known-good setup of shared libraries for
14021 # Sun compiler versions before 5.6, else PIC objects from an old
14022 # archive will be linked into the output, leading to subtle bugs.
14023 if test "$solaris_use_stlport4" != yes; then
14024 postdeps_CXX='-library=Cstd -library=Crun'
14027 esac
14029 esac
14032 case " $postdeps_CXX " in
14033 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14034 esac
14035 compiler_lib_search_dirs_CXX=
14036 if test -n "${compiler_lib_search_path_CXX}"; then
14037 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14070 lt_prog_compiler_wl_CXX=
14071 lt_prog_compiler_pic_CXX=
14072 lt_prog_compiler_static_CXX=
14074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14075 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14077 # C++ specific cases for pic, static, wl, etc.
14078 if test "$GXX" = yes; then
14079 lt_prog_compiler_wl_CXX='-Wl,'
14080 lt_prog_compiler_static_CXX='-static'
14082 case $host_os in
14083 aix*)
14084 # All AIX code is PIC.
14085 if test "$host_cpu" = ia64; then
14086 # AIX 5 now supports IA64 processor
14087 lt_prog_compiler_static_CXX='-Bstatic'
14089 lt_prog_compiler_pic_CXX='-fPIC'
14092 amigaos*)
14093 case $host_cpu in
14094 powerpc)
14095 # see comment about AmigaOS4 .so support
14096 lt_prog_compiler_pic_CXX='-fPIC'
14098 m68k)
14099 # FIXME: we need at least 68020 code to build shared libraries, but
14100 # adding the `-m68020' flag to GCC prevents building anything better,
14101 # like `-m68040'.
14102 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14104 esac
14107 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14108 # PIC is the default for these OSes.
14110 mingw* | cygwin* | os2* | pw32* | cegcc*)
14111 # This hack is so that the source file can tell whether it is being
14112 # built for inclusion in a dll (and should export symbols for example).
14113 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14114 # (--disable-auto-import) libraries
14115 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14117 darwin* | rhapsody*)
14118 # PIC is the default on this platform
14119 # Common symbols not allowed in MH_DYLIB files
14120 lt_prog_compiler_pic_CXX='-fno-common'
14122 *djgpp*)
14123 # DJGPP does not support shared libraries at all
14124 lt_prog_compiler_pic_CXX=
14126 haiku*)
14127 # PIC is the default for Haiku.
14128 # The "-static" flag exists, but is broken.
14129 lt_prog_compiler_static_CXX=
14131 interix[3-9]*)
14132 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14133 # Instead, we relocate shared libraries at runtime.
14135 sysv4*MP*)
14136 if test -d /usr/nec; then
14137 lt_prog_compiler_pic_CXX=-Kconform_pic
14140 hpux*)
14141 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14142 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14143 # sets the default TLS model and affects inlining.
14144 case $host_cpu in
14145 hppa*64*)
14148 lt_prog_compiler_pic_CXX='-fPIC'
14150 esac
14152 *qnx* | *nto*)
14153 # QNX uses GNU C++, but need to define -shared option too, otherwise
14154 # it will coredump.
14155 lt_prog_compiler_pic_CXX='-fPIC -shared'
14158 lt_prog_compiler_pic_CXX='-fPIC'
14160 esac
14161 else
14162 case $host_os in
14163 aix[4-9]*)
14164 # All AIX code is PIC.
14165 if test "$host_cpu" = ia64; then
14166 # AIX 5 now supports IA64 processor
14167 lt_prog_compiler_static_CXX='-Bstatic'
14168 else
14169 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14172 chorus*)
14173 case $cc_basename in
14174 cxch68*)
14175 # Green Hills C++ Compiler
14176 # _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"
14178 esac
14180 dgux*)
14181 case $cc_basename in
14182 ec++*)
14183 lt_prog_compiler_pic_CXX='-KPIC'
14185 ghcx*)
14186 # Green Hills C++ Compiler
14187 lt_prog_compiler_pic_CXX='-pic'
14191 esac
14193 freebsd* | dragonfly*)
14194 # FreeBSD uses GNU C++
14196 hpux9* | hpux10* | hpux11*)
14197 case $cc_basename in
14198 CC*)
14199 lt_prog_compiler_wl_CXX='-Wl,'
14200 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14201 if test "$host_cpu" != ia64; then
14202 lt_prog_compiler_pic_CXX='+Z'
14205 aCC*)
14206 lt_prog_compiler_wl_CXX='-Wl,'
14207 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14208 case $host_cpu in
14209 hppa*64*|ia64*)
14210 # +Z the default
14213 lt_prog_compiler_pic_CXX='+Z'
14215 esac
14219 esac
14221 interix*)
14222 # This is c89, which is MS Visual C++ (no shared libs)
14223 # Anyone wants to do a port?
14225 irix5* | irix6* | nonstopux*)
14226 case $cc_basename in
14227 CC*)
14228 lt_prog_compiler_wl_CXX='-Wl,'
14229 lt_prog_compiler_static_CXX='-non_shared'
14230 # CC pic flag -KPIC is the default.
14234 esac
14236 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14237 case $cc_basename in
14238 KCC*)
14239 # KAI C++ Compiler
14240 lt_prog_compiler_wl_CXX='--backend -Wl,'
14241 lt_prog_compiler_pic_CXX='-fPIC'
14243 ecpc* )
14244 # old Intel C++ for x86_64 which still supported -KPIC.
14245 lt_prog_compiler_wl_CXX='-Wl,'
14246 lt_prog_compiler_pic_CXX='-KPIC'
14247 lt_prog_compiler_static_CXX='-static'
14249 icpc* )
14250 # Intel C++, used to be incompatible with GCC.
14251 # ICC 10 doesn't accept -KPIC any more.
14252 lt_prog_compiler_wl_CXX='-Wl,'
14253 lt_prog_compiler_pic_CXX='-fPIC'
14254 lt_prog_compiler_static_CXX='-static'
14256 pgCC* | pgcpp*)
14257 # Portland Group C++ compiler
14258 lt_prog_compiler_wl_CXX='-Wl,'
14259 lt_prog_compiler_pic_CXX='-fpic'
14260 lt_prog_compiler_static_CXX='-Bstatic'
14262 cxx*)
14263 # Compaq C++
14264 # Make sure the PIC flag is empty. It appears that all Alpha
14265 # Linux and Compaq Tru64 Unix objects are PIC.
14266 lt_prog_compiler_pic_CXX=
14267 lt_prog_compiler_static_CXX='-non_shared'
14269 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14270 # IBM XL 8.0, 9.0 on PPC and BlueGene
14271 lt_prog_compiler_wl_CXX='-Wl,'
14272 lt_prog_compiler_pic_CXX='-qpic'
14273 lt_prog_compiler_static_CXX='-qstaticlink'
14276 case `$CC -V 2>&1 | sed 5q` in
14277 *Sun\ C*)
14278 # Sun C++ 5.9
14279 lt_prog_compiler_pic_CXX='-KPIC'
14280 lt_prog_compiler_static_CXX='-Bstatic'
14281 lt_prog_compiler_wl_CXX='-Qoption ld '
14283 esac
14285 esac
14287 lynxos*)
14289 m88k*)
14291 mvs*)
14292 case $cc_basename in
14293 cxx*)
14294 lt_prog_compiler_pic_CXX='-W c,exportall'
14298 esac
14300 netbsd*)
14302 *qnx* | *nto*)
14303 # QNX uses GNU C++, but need to define -shared option too, otherwise
14304 # it will coredump.
14305 lt_prog_compiler_pic_CXX='-fPIC -shared'
14307 osf3* | osf4* | osf5*)
14308 case $cc_basename in
14309 KCC*)
14310 lt_prog_compiler_wl_CXX='--backend -Wl,'
14312 RCC*)
14313 # Rational C++ 2.4.1
14314 lt_prog_compiler_pic_CXX='-pic'
14316 cxx*)
14317 # Digital/Compaq C++
14318 lt_prog_compiler_wl_CXX='-Wl,'
14319 # Make sure the PIC flag is empty. It appears that all Alpha
14320 # Linux and Compaq Tru64 Unix objects are PIC.
14321 lt_prog_compiler_pic_CXX=
14322 lt_prog_compiler_static_CXX='-non_shared'
14326 esac
14328 psos*)
14330 solaris*)
14331 case $cc_basename in
14332 CC*)
14333 # Sun C++ 4.2, 5.x and Centerline C++
14334 lt_prog_compiler_pic_CXX='-KPIC'
14335 lt_prog_compiler_static_CXX='-Bstatic'
14336 lt_prog_compiler_wl_CXX='-Qoption ld '
14338 gcx*)
14339 # Green Hills C++ Compiler
14340 lt_prog_compiler_pic_CXX='-PIC'
14344 esac
14346 sunos4*)
14347 case $cc_basename in
14348 CC*)
14349 # Sun C++ 4.x
14350 lt_prog_compiler_pic_CXX='-pic'
14351 lt_prog_compiler_static_CXX='-Bstatic'
14353 lcc*)
14354 # Lucid
14355 lt_prog_compiler_pic_CXX='-pic'
14359 esac
14361 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14362 case $cc_basename in
14363 CC*)
14364 lt_prog_compiler_wl_CXX='-Wl,'
14365 lt_prog_compiler_pic_CXX='-KPIC'
14366 lt_prog_compiler_static_CXX='-Bstatic'
14368 esac
14370 tandem*)
14371 case $cc_basename in
14372 NCC*)
14373 # NonStop-UX NCC 3.20
14374 lt_prog_compiler_pic_CXX='-KPIC'
14378 esac
14380 vxworks*)
14383 lt_prog_compiler_can_build_shared_CXX=no
14385 esac
14388 case $host_os in
14389 # For platforms which do not support PIC, -DPIC is meaningless:
14390 *djgpp*)
14391 lt_prog_compiler_pic_CXX=
14394 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14396 esac
14397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
14398 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
14403 # Check to make sure the PIC flag actually works.
14405 if test -n "$lt_prog_compiler_pic_CXX"; then
14406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14407 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14408 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14409 $as_echo_n "(cached) " >&6
14410 else
14411 lt_cv_prog_compiler_pic_works_CXX=no
14412 ac_outfile=conftest.$ac_objext
14413 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14414 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14415 # Insert the option either (1) after the last *FLAGS variable, or
14416 # (2) before a word containing "conftest.", or (3) at the end.
14417 # Note that $ac_compile itself does not contain backslashes and begins
14418 # with a dollar sign (not a hyphen), so the echo should work correctly.
14419 # The option is referenced via a variable to avoid confusing sed.
14420 lt_compile=`echo "$ac_compile" | $SED \
14421 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14422 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14423 -e 's:$: $lt_compiler_flag:'`
14424 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14425 (eval "$lt_compile" 2>conftest.err)
14426 ac_status=$?
14427 cat conftest.err >&5
14428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14429 if (exit $ac_status) && test -s "$ac_outfile"; then
14430 # The compiler can only warn and ignore the option if not recognized
14431 # So say no if there are warnings other than the usual output.
14432 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14433 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14434 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14435 lt_cv_prog_compiler_pic_works_CXX=yes
14438 $RM conftest*
14441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14442 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14444 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14445 case $lt_prog_compiler_pic_CXX in
14446 "" | " "*) ;;
14447 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14448 esac
14449 else
14450 lt_prog_compiler_pic_CXX=
14451 lt_prog_compiler_can_build_shared_CXX=no
14459 # Check to make sure the static flag actually works.
14461 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14463 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14464 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14465 $as_echo_n "(cached) " >&6
14466 else
14467 lt_cv_prog_compiler_static_works_CXX=no
14468 save_LDFLAGS="$LDFLAGS"
14469 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14470 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14471 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14472 # The linker can only warn and ignore the option if not recognized
14473 # So say no if there are warnings
14474 if test -s conftest.err; then
14475 # Append any errors to the config.log.
14476 cat conftest.err 1>&5
14477 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14478 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14479 if diff conftest.exp conftest.er2 >/dev/null; then
14480 lt_cv_prog_compiler_static_works_CXX=yes
14482 else
14483 lt_cv_prog_compiler_static_works_CXX=yes
14486 $RM -r conftest*
14487 LDFLAGS="$save_LDFLAGS"
14490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14491 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14493 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14495 else
14496 lt_prog_compiler_static_CXX=
14502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14503 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14504 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14505 $as_echo_n "(cached) " >&6
14506 else
14507 lt_cv_prog_compiler_c_o_CXX=no
14508 $RM -r conftest 2>/dev/null
14509 mkdir conftest
14510 cd conftest
14511 mkdir out
14512 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14514 lt_compiler_flag="-o out/conftest2.$ac_objext"
14515 # Insert the option either (1) after the last *FLAGS variable, or
14516 # (2) before a word containing "conftest.", or (3) at the end.
14517 # Note that $ac_compile itself does not contain backslashes and begins
14518 # with a dollar sign (not a hyphen), so the echo should work correctly.
14519 lt_compile=`echo "$ac_compile" | $SED \
14520 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14521 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14522 -e 's:$: $lt_compiler_flag:'`
14523 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14524 (eval "$lt_compile" 2>out/conftest.err)
14525 ac_status=$?
14526 cat out/conftest.err >&5
14527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14528 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14529 then
14530 # The compiler can only warn and ignore the option if not recognized
14531 # So say no if there are warnings
14532 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14533 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14534 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14535 lt_cv_prog_compiler_c_o_CXX=yes
14538 chmod u+w . 2>&5
14539 $RM conftest*
14540 # SGI C++ compiler will create directory out/ii_files/ for
14541 # template instantiation
14542 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14543 $RM out/* && rmdir out
14544 cd ..
14545 $RM -r conftest
14546 $RM conftest*
14549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14550 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14555 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14556 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14557 $as_echo_n "(cached) " >&6
14558 else
14559 lt_cv_prog_compiler_c_o_CXX=no
14560 $RM -r conftest 2>/dev/null
14561 mkdir conftest
14562 cd conftest
14563 mkdir out
14564 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14566 lt_compiler_flag="-o out/conftest2.$ac_objext"
14567 # Insert the option either (1) after the last *FLAGS variable, or
14568 # (2) before a word containing "conftest.", or (3) at the end.
14569 # Note that $ac_compile itself does not contain backslashes and begins
14570 # with a dollar sign (not a hyphen), so the echo should work correctly.
14571 lt_compile=`echo "$ac_compile" | $SED \
14572 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14573 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14574 -e 's:$: $lt_compiler_flag:'`
14575 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14576 (eval "$lt_compile" 2>out/conftest.err)
14577 ac_status=$?
14578 cat out/conftest.err >&5
14579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14580 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14581 then
14582 # The compiler can only warn and ignore the option if not recognized
14583 # So say no if there are warnings
14584 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14585 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14586 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14587 lt_cv_prog_compiler_c_o_CXX=yes
14590 chmod u+w . 2>&5
14591 $RM conftest*
14592 # SGI C++ compiler will create directory out/ii_files/ for
14593 # template instantiation
14594 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14595 $RM out/* && rmdir out
14596 cd ..
14597 $RM -r conftest
14598 $RM conftest*
14601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14602 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14607 hard_links="nottested"
14608 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14609 # do not overwrite the value of need_locks provided by the user
14610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14611 $as_echo_n "checking if we can lock with hard links... " >&6; }
14612 hard_links=yes
14613 $RM conftest*
14614 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14615 touch conftest.a
14616 ln conftest.a conftest.b 2>&5 || hard_links=no
14617 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14619 $as_echo "$hard_links" >&6; }
14620 if test "$hard_links" = no; then
14621 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14622 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14623 need_locks=warn
14625 else
14626 need_locks=no
14631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14632 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14634 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14635 case $host_os in
14636 aix[4-9]*)
14637 # If we're using GNU nm, then we don't want the "-C" option.
14638 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14639 # Also, AIX nm treats weak defined symbols like other global defined
14640 # symbols, whereas GNU nm marks them as "W".
14641 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14642 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'
14643 else
14644 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'
14647 pw32*)
14648 export_symbols_cmds_CXX="$ltdll_cmds"
14650 cygwin* | mingw* | cegcc*)
14651 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'
14654 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14656 esac
14657 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14660 $as_echo "$ld_shlibs_CXX" >&6; }
14661 test "$ld_shlibs_CXX" = no && can_build_shared=no
14663 with_gnu_ld_CXX=$with_gnu_ld
14671 # Do we need to explicitly link libc?
14673 case "x$archive_cmds_need_lc_CXX" in
14674 x|xyes)
14675 # Assume -lc should be added
14676 archive_cmds_need_lc_CXX=yes
14678 if test "$enable_shared" = yes && test "$GCC" = yes; then
14679 case $archive_cmds_CXX in
14680 *'~'*)
14681 # FIXME: we may have to deal with multi-command sequences.
14683 '$CC '*)
14684 # Test whether the compiler implicitly links with -lc since on some
14685 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14686 # to ld, don't add -lc before -lgcc.
14687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14688 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14689 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14690 $as_echo_n "(cached) " >&6
14691 else
14692 $RM conftest*
14693 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14695 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14696 (eval $ac_compile) 2>&5
14697 ac_status=$?
14698 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14699 test $ac_status = 0; } 2>conftest.err; then
14700 soname=conftest
14701 lib=conftest
14702 libobjs=conftest.$ac_objext
14703 deplibs=
14704 wl=$lt_prog_compiler_wl_CXX
14705 pic_flag=$lt_prog_compiler_pic_CXX
14706 compiler_flags=-v
14707 linker_flags=-v
14708 verstring=
14709 output_objdir=.
14710 libname=conftest
14711 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14712 allow_undefined_flag_CXX=
14713 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14714 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14715 ac_status=$?
14716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14717 test $ac_status = 0; }
14718 then
14719 lt_cv_archive_cmds_need_lc_CXX=no
14720 else
14721 lt_cv_archive_cmds_need_lc_CXX=yes
14723 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14724 else
14725 cat conftest.err 1>&5
14727 $RM conftest*
14730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14731 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14732 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14734 esac
14737 esac
14802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14803 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14805 library_names_spec=
14806 libname_spec='lib$name'
14807 soname_spec=
14808 shrext_cmds=".so"
14809 postinstall_cmds=
14810 postuninstall_cmds=
14811 finish_cmds=
14812 finish_eval=
14813 shlibpath_var=
14814 shlibpath_overrides_runpath=unknown
14815 version_type=none
14816 dynamic_linker="$host_os ld.so"
14817 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14818 need_lib_prefix=unknown
14819 hardcode_into_libs=no
14821 # when you set need_version to no, make sure it does not cause -set_version
14822 # flags to be left without arguments
14823 need_version=unknown
14825 case $host_os in
14826 aix3*)
14827 version_type=linux
14828 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14829 shlibpath_var=LIBPATH
14831 # AIX 3 has no versioning support, so we append a major version to the name.
14832 soname_spec='${libname}${release}${shared_ext}$major'
14835 aix[4-9]*)
14836 version_type=linux
14837 need_lib_prefix=no
14838 need_version=no
14839 hardcode_into_libs=yes
14840 if test "$host_cpu" = ia64; then
14841 # AIX 5 supports IA64
14842 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14843 shlibpath_var=LD_LIBRARY_PATH
14844 else
14845 # With GCC up to 2.95.x, collect2 would create an import file
14846 # for dependence libraries. The import file would start with
14847 # the line `#! .'. This would cause the generated library to
14848 # depend on `.', always an invalid library. This was fixed in
14849 # development snapshots of GCC prior to 3.0.
14850 case $host_os in
14851 aix4 | aix4.[01] | aix4.[01].*)
14852 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14853 echo ' yes '
14854 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14856 else
14857 can_build_shared=no
14860 esac
14861 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14862 # soname into executable. Probably we can add versioning support to
14863 # collect2, so additional links can be useful in future.
14864 if test "$aix_use_runtimelinking" = yes; then
14865 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14866 # instead of lib<name>.a to let people know that these are not
14867 # typical AIX shared libraries.
14868 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14869 else
14870 # We preserve .a as extension for shared libraries through AIX4.2
14871 # and later when we are not doing run time linking.
14872 library_names_spec='${libname}${release}.a $libname.a'
14873 soname_spec='${libname}${release}${shared_ext}$major'
14875 shlibpath_var=LIBPATH
14879 amigaos*)
14880 case $host_cpu in
14881 powerpc)
14882 # Since July 2007 AmigaOS4 officially supports .so libraries.
14883 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14886 m68k)
14887 library_names_spec='$libname.ixlibrary $libname.a'
14888 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14889 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'
14891 esac
14894 beos*)
14895 library_names_spec='${libname}${shared_ext}'
14896 dynamic_linker="$host_os ld.so"
14897 shlibpath_var=LIBRARY_PATH
14900 bsdi[45]*)
14901 version_type=linux
14902 need_version=no
14903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14904 soname_spec='${libname}${release}${shared_ext}$major'
14905 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14906 shlibpath_var=LD_LIBRARY_PATH
14907 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14908 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14909 # the default ld.so.conf also contains /usr/contrib/lib and
14910 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14911 # libtool to hard-code these into programs
14914 cygwin* | mingw* | pw32* | cegcc*)
14915 version_type=windows
14916 shrext_cmds=".dll"
14917 need_version=no
14918 need_lib_prefix=no
14920 case $GCC,$host_os in
14921 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14922 library_names_spec='$libname.dll.a'
14923 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14924 postinstall_cmds='base_file=`basename \${file}`~
14925 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14926 dldir=$destdir/`dirname \$dlpath`~
14927 test -d \$dldir || mkdir -p \$dldir~
14928 $install_prog $dir/$dlname \$dldir/$dlname~
14929 chmod a+x \$dldir/$dlname~
14930 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14931 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14933 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14934 dlpath=$dir/\$dldll~
14935 $RM \$dlpath'
14936 shlibpath_overrides_runpath=yes
14938 case $host_os in
14939 cygwin*)
14940 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14941 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14944 mingw* | cegcc*)
14945 # MinGW DLLs use traditional 'lib' prefix
14946 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14948 pw32*)
14949 # pw32 DLLs use 'pw' prefix rather than 'lib'
14950 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14952 esac
14956 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14958 esac
14959 dynamic_linker='Win32 ld.exe'
14960 # FIXME: first we should search . and the directory the executable is in
14961 shlibpath_var=PATH
14964 darwin* | rhapsody*)
14965 dynamic_linker="$host_os dyld"
14966 version_type=darwin
14967 need_lib_prefix=no
14968 need_version=no
14969 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14970 soname_spec='${libname}${release}${major}$shared_ext'
14971 shlibpath_overrides_runpath=yes
14972 shlibpath_var=DYLD_LIBRARY_PATH
14973 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14975 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14978 dgux*)
14979 version_type=linux
14980 need_lib_prefix=no
14981 need_version=no
14982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14983 soname_spec='${libname}${release}${shared_ext}$major'
14984 shlibpath_var=LD_LIBRARY_PATH
14987 freebsd* | dragonfly*)
14988 # DragonFly does not have aout. When/if they implement a new
14989 # versioning mechanism, adjust this.
14990 if test -x /usr/bin/objformat; then
14991 objformat=`/usr/bin/objformat`
14992 else
14993 case $host_os in
14994 freebsd[23].*) objformat=aout ;;
14995 *) objformat=elf ;;
14996 esac
14998 version_type=freebsd-$objformat
14999 case $version_type in
15000 freebsd-elf*)
15001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15002 need_version=no
15003 need_lib_prefix=no
15005 freebsd-*)
15006 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15007 need_version=yes
15009 esac
15010 shlibpath_var=LD_LIBRARY_PATH
15011 case $host_os in
15012 freebsd2.*)
15013 shlibpath_overrides_runpath=yes
15015 freebsd3.[01]* | freebsdelf3.[01]*)
15016 shlibpath_overrides_runpath=yes
15017 hardcode_into_libs=yes
15019 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15020 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15021 shlibpath_overrides_runpath=no
15022 hardcode_into_libs=yes
15024 *) # from 4.6 on, and DragonFly
15025 shlibpath_overrides_runpath=yes
15026 hardcode_into_libs=yes
15028 esac
15031 haiku*)
15032 version_type=linux
15033 need_lib_prefix=no
15034 need_version=no
15035 dynamic_linker="$host_os runtime_loader"
15036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15037 soname_spec='${libname}${release}${shared_ext}$major'
15038 shlibpath_var=LIBRARY_PATH
15039 shlibpath_overrides_runpath=yes
15040 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15041 hardcode_into_libs=yes
15044 hpux9* | hpux10* | hpux11*)
15045 # Give a soname corresponding to the major version so that dld.sl refuses to
15046 # link against other versions.
15047 version_type=sunos
15048 need_lib_prefix=no
15049 need_version=no
15050 case $host_cpu in
15051 ia64*)
15052 shrext_cmds='.so'
15053 hardcode_into_libs=yes
15054 dynamic_linker="$host_os dld.so"
15055 shlibpath_var=LD_LIBRARY_PATH
15056 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15058 soname_spec='${libname}${release}${shared_ext}$major'
15059 if test "X$HPUX_IA64_MODE" = X32; then
15060 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15061 else
15062 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15064 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15066 hppa*64*)
15067 shrext_cmds='.sl'
15068 hardcode_into_libs=yes
15069 dynamic_linker="$host_os dld.sl"
15070 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15071 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15073 soname_spec='${libname}${release}${shared_ext}$major'
15074 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15075 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15078 shrext_cmds='.sl'
15079 dynamic_linker="$host_os dld.sl"
15080 shlibpath_var=SHLIB_PATH
15081 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15082 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15083 soname_spec='${libname}${release}${shared_ext}$major'
15085 esac
15086 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15087 postinstall_cmds='chmod 555 $lib'
15088 # or fails outright, so override atomically:
15089 install_override_mode=555
15092 interix[3-9]*)
15093 version_type=linux
15094 need_lib_prefix=no
15095 need_version=no
15096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15097 soname_spec='${libname}${release}${shared_ext}$major'
15098 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15099 shlibpath_var=LD_LIBRARY_PATH
15100 shlibpath_overrides_runpath=no
15101 hardcode_into_libs=yes
15104 irix5* | irix6* | nonstopux*)
15105 case $host_os in
15106 nonstopux*) version_type=nonstopux ;;
15108 if test "$lt_cv_prog_gnu_ld" = yes; then
15109 version_type=linux
15110 else
15111 version_type=irix
15112 fi ;;
15113 esac
15114 need_lib_prefix=no
15115 need_version=no
15116 soname_spec='${libname}${release}${shared_ext}$major'
15117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15118 case $host_os in
15119 irix5* | nonstopux*)
15120 libsuff= shlibsuff=
15123 case $LD in # libtool.m4 will add one of these switches to LD
15124 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15125 libsuff= shlibsuff= libmagic=32-bit;;
15126 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15127 libsuff=32 shlibsuff=N32 libmagic=N32;;
15128 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15129 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15130 *) libsuff= shlibsuff= libmagic=never-match;;
15131 esac
15133 esac
15134 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15135 shlibpath_overrides_runpath=no
15136 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15137 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15138 hardcode_into_libs=yes
15141 # No shared lib support for Linux oldld, aout, or coff.
15142 linux*oldld* | linux*aout* | linux*coff*)
15143 dynamic_linker=no
15146 # This must be Linux ELF.
15148 # uclinux* changes (here and below) have been submitted to the libtool
15149 # project, but have not yet been accepted: they are GCC-local changes
15150 # for the time being. (See
15151 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
15152 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
15153 version_type=linux
15154 need_lib_prefix=no
15155 need_version=no
15156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15157 soname_spec='${libname}${release}${shared_ext}$major'
15158 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15159 shlibpath_var=LD_LIBRARY_PATH
15160 shlibpath_overrides_runpath=no
15162 # Some binutils ld are patched to set DT_RUNPATH
15163 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15164 $as_echo_n "(cached) " >&6
15165 else
15166 lt_cv_shlibpath_overrides_runpath=no
15167 save_LDFLAGS=$LDFLAGS
15168 save_libdir=$libdir
15169 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15170 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15172 /* end confdefs.h. */
15175 main ()
15179 return 0;
15181 _ACEOF
15182 if ac_fn_cxx_try_link "$LINENO"; then :
15183 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15184 lt_cv_shlibpath_overrides_runpath=yes
15187 rm -f core conftest.err conftest.$ac_objext \
15188 conftest$ac_exeext conftest.$ac_ext
15189 LDFLAGS=$save_LDFLAGS
15190 libdir=$save_libdir
15194 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15196 # This implies no fast_install, which is unacceptable.
15197 # Some rework will be needed to allow for fast_install
15198 # before this can be enabled.
15199 hardcode_into_libs=yes
15201 # Append ld.so.conf contents to the search path
15202 if test -f /etc/ld.so.conf; then
15203 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' ' '`
15204 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15207 # We used to test for /lib/ld.so.1 and disable shared libraries on
15208 # powerpc, because MkLinux only supported shared libraries with the
15209 # GNU dynamic linker. Since this was broken with cross compilers,
15210 # most powerpc-linux boxes support dynamic linking these days and
15211 # people can always --disable-shared, the test was removed, and we
15212 # assume the GNU/Linux dynamic linker is in use.
15213 dynamic_linker='GNU/Linux ld.so'
15216 netbsd*)
15217 version_type=sunos
15218 need_lib_prefix=no
15219 need_version=no
15220 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15222 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15223 dynamic_linker='NetBSD (a.out) ld.so'
15224 else
15225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15226 soname_spec='${libname}${release}${shared_ext}$major'
15227 dynamic_linker='NetBSD ld.elf_so'
15229 shlibpath_var=LD_LIBRARY_PATH
15230 shlibpath_overrides_runpath=yes
15231 hardcode_into_libs=yes
15234 newsos6)
15235 version_type=linux
15236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15237 shlibpath_var=LD_LIBRARY_PATH
15238 shlibpath_overrides_runpath=yes
15241 *nto* | *qnx*)
15242 version_type=qnx
15243 need_lib_prefix=no
15244 need_version=no
15245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15246 soname_spec='${libname}${release}${shared_ext}$major'
15247 shlibpath_var=LD_LIBRARY_PATH
15248 shlibpath_overrides_runpath=no
15249 hardcode_into_libs=yes
15250 dynamic_linker='ldqnx.so'
15253 openbsd*)
15254 version_type=sunos
15255 sys_lib_dlsearch_path_spec="/usr/lib"
15256 need_lib_prefix=no
15257 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15258 case $host_os in
15259 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15260 *) need_version=no ;;
15261 esac
15262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15263 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15264 shlibpath_var=LD_LIBRARY_PATH
15265 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15266 case $host_os in
15267 openbsd2.[89] | openbsd2.[89].*)
15268 shlibpath_overrides_runpath=no
15271 shlibpath_overrides_runpath=yes
15273 esac
15274 else
15275 shlibpath_overrides_runpath=yes
15279 os2*)
15280 libname_spec='$name'
15281 shrext_cmds=".dll"
15282 need_lib_prefix=no
15283 library_names_spec='$libname${shared_ext} $libname.a'
15284 dynamic_linker='OS/2 ld.exe'
15285 shlibpath_var=LIBPATH
15288 osf3* | osf4* | osf5*)
15289 version_type=osf
15290 need_lib_prefix=no
15291 need_version=no
15292 soname_spec='${libname}${release}${shared_ext}$major'
15293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15294 shlibpath_var=LD_LIBRARY_PATH
15295 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15296 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15299 rdos*)
15300 dynamic_linker=no
15303 solaris*)
15304 version_type=linux
15305 need_lib_prefix=no
15306 need_version=no
15307 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15308 soname_spec='${libname}${release}${shared_ext}$major'
15309 shlibpath_var=LD_LIBRARY_PATH
15310 shlibpath_overrides_runpath=yes
15311 hardcode_into_libs=yes
15312 # ldd complains unless libraries are executable
15313 postinstall_cmds='chmod +x $lib'
15316 sunos4*)
15317 version_type=sunos
15318 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15319 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15320 shlibpath_var=LD_LIBRARY_PATH
15321 shlibpath_overrides_runpath=yes
15322 if test "$with_gnu_ld" = yes; then
15323 need_lib_prefix=no
15325 need_version=yes
15328 sysv4 | sysv4.3*)
15329 version_type=linux
15330 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15331 soname_spec='${libname}${release}${shared_ext}$major'
15332 shlibpath_var=LD_LIBRARY_PATH
15333 case $host_vendor in
15334 sni)
15335 shlibpath_overrides_runpath=no
15336 need_lib_prefix=no
15337 runpath_var=LD_RUN_PATH
15339 siemens)
15340 need_lib_prefix=no
15342 motorola)
15343 need_lib_prefix=no
15344 need_version=no
15345 shlibpath_overrides_runpath=no
15346 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15348 esac
15351 sysv4*MP*)
15352 if test -d /usr/nec ;then
15353 version_type=linux
15354 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15355 soname_spec='$libname${shared_ext}.$major'
15356 shlibpath_var=LD_LIBRARY_PATH
15360 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15361 version_type=freebsd-elf
15362 need_lib_prefix=no
15363 need_version=no
15364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15365 soname_spec='${libname}${release}${shared_ext}$major'
15366 shlibpath_var=LD_LIBRARY_PATH
15367 shlibpath_overrides_runpath=yes
15368 hardcode_into_libs=yes
15369 if test "$with_gnu_ld" = yes; then
15370 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15371 else
15372 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15373 case $host_os in
15374 sco3.2v5*)
15375 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15377 esac
15379 sys_lib_dlsearch_path_spec='/usr/lib'
15382 tpf*)
15383 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15384 version_type=linux
15385 need_lib_prefix=no
15386 need_version=no
15387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15388 shlibpath_var=LD_LIBRARY_PATH
15389 shlibpath_overrides_runpath=no
15390 hardcode_into_libs=yes
15393 uts4*)
15394 version_type=linux
15395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15396 soname_spec='${libname}${release}${shared_ext}$major'
15397 shlibpath_var=LD_LIBRARY_PATH
15400 # Shared libraries for VwWorks, >= 7 only at this stage
15401 # and (fpic) still incompatible with "large" code models
15402 # in a few configurations. Only for RTP mode in any case,
15403 # and upon explicit request at configure time.
15404 vxworks7*)
15405 dynamic_linker=no
15406 case ${with_multisubdir}-${enable_shared} in
15407 *large*)
15409 *mrtp*-yes)
15410 version_type=linux
15411 need_lib_prefix=no
15412 need_version=no
15413 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15414 soname_spec='${libname}${release}${shared_ext}$major'
15415 dynamic_linker="$host_os module_loader"
15417 esac
15420 dynamic_linker=no
15422 esac
15423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15424 $as_echo "$dynamic_linker" >&6; }
15425 test "$dynamic_linker" = no && can_build_shared=no
15427 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15428 if test "$GCC" = yes; then
15429 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15432 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15433 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15435 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15436 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15477 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15478 hardcode_action_CXX=
15479 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15480 test -n "$runpath_var_CXX" ||
15481 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15483 # We can hardcode non-existent directories.
15484 if test "$hardcode_direct_CXX" != no &&
15485 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15486 # have to relink, otherwise we might link with an installed library
15487 # when we should be linking with a yet-to-be-installed one
15488 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15489 test "$hardcode_minus_L_CXX" != no; then
15490 # Linking always hardcodes the temporary library directory.
15491 hardcode_action_CXX=relink
15492 else
15493 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15494 hardcode_action_CXX=immediate
15496 else
15497 # We cannot hardcode anything, or else we can only hardcode existing
15498 # directories.
15499 hardcode_action_CXX=unsupported
15501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15502 $as_echo "$hardcode_action_CXX" >&6; }
15504 if test "$hardcode_action_CXX" = relink ||
15505 test "$inherit_rpath_CXX" = yes; then
15506 # Fast installation is not supported
15507 enable_fast_install=no
15508 elif test "$shlibpath_overrides_runpath" = yes ||
15509 test "$enable_shared" = no; then
15510 # Fast installation is not necessary
15511 enable_fast_install=needless
15520 fi # test -n "$compiler"
15522 CC=$lt_save_CC
15523 LDCXX=$LD
15524 LD=$lt_save_LD
15525 GCC=$lt_save_GCC
15526 with_gnu_ld=$lt_save_with_gnu_ld
15527 lt_cv_path_LDCXX=$lt_cv_path_LD
15528 lt_cv_path_LD=$lt_save_path_LD
15529 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15530 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15531 fi # test "$_lt_caught_CXX_error" != yes
15533 ac_ext=c
15534 ac_cpp='$CPP $CPPFLAGS'
15535 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15536 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15537 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15551 ac_config_commands="$ac_config_commands libtool"
15556 # Only expand once:
15561 if test x$enable_darwin_at_rpath = xyes; then
15562 ENABLE_DARWIN_AT_RPATH_TRUE=
15563 ENABLE_DARWIN_AT_RPATH_FALSE='#'
15564 else
15565 ENABLE_DARWIN_AT_RPATH_TRUE='#'
15566 ENABLE_DARWIN_AT_RPATH_FALSE=
15571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
15572 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
15573 # Check whether --enable-maintainer-mode was given.
15574 if test "${enable_maintainer_mode+set}" = set; then :
15575 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
15576 else
15577 USE_MAINTAINER_MODE=no
15580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
15581 $as_echo "$USE_MAINTAINER_MODE" >&6; }
15582 if test $USE_MAINTAINER_MODE = yes; then
15583 MAINTAINER_MODE_TRUE=
15584 MAINTAINER_MODE_FALSE='#'
15585 else
15586 MAINTAINER_MODE_TRUE='#'
15587 MAINTAINER_MODE_FALSE=
15590 MAINT=$MAINTAINER_MODE_TRUE
15594 # For libtool versioning info, format is CURRENT:REVISION:AGE
15595 libtool_VERSION=1:0:0
15598 # Check header files.
15599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
15600 $as_echo_n "checking for ANSI C header files... " >&6; }
15601 if ${ac_cv_header_stdc+:} false; then :
15602 $as_echo_n "(cached) " >&6
15603 else
15604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15605 /* end confdefs.h. */
15606 #include <stdlib.h>
15607 #include <stdarg.h>
15608 #include <string.h>
15609 #include <float.h>
15612 main ()
15616 return 0;
15618 _ACEOF
15619 if ac_fn_c_try_compile "$LINENO"; then :
15620 ac_cv_header_stdc=yes
15621 else
15622 ac_cv_header_stdc=no
15624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15626 if test $ac_cv_header_stdc = yes; then
15627 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15629 /* end confdefs.h. */
15630 #include <string.h>
15632 _ACEOF
15633 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15634 $EGREP "memchr" >/dev/null 2>&1; then :
15636 else
15637 ac_cv_header_stdc=no
15639 rm -f conftest*
15643 if test $ac_cv_header_stdc = yes; then
15644 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15646 /* end confdefs.h. */
15647 #include <stdlib.h>
15649 _ACEOF
15650 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15651 $EGREP "free" >/dev/null 2>&1; then :
15653 else
15654 ac_cv_header_stdc=no
15656 rm -f conftest*
15660 if test $ac_cv_header_stdc = yes; then
15661 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15662 if test "$cross_compiling" = yes; then :
15664 else
15665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15666 /* end confdefs.h. */
15667 #include <ctype.h>
15668 #include <stdlib.h>
15669 #if ((' ' & 0x0FF) == 0x020)
15670 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15671 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15672 #else
15673 # define ISLOWER(c) \
15674 (('a' <= (c) && (c) <= 'i') \
15675 || ('j' <= (c) && (c) <= 'r') \
15676 || ('s' <= (c) && (c) <= 'z'))
15677 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15678 #endif
15680 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15682 main ()
15684 int i;
15685 for (i = 0; i < 256; i++)
15686 if (XOR (islower (i), ISLOWER (i))
15687 || toupper (i) != TOUPPER (i))
15688 return 2;
15689 return 0;
15691 _ACEOF
15692 if ac_fn_c_try_run "$LINENO"; then :
15694 else
15695 ac_cv_header_stdc=no
15697 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15698 conftest.$ac_objext conftest.beam conftest.$ac_ext
15703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
15704 $as_echo "$ac_cv_header_stdc" >&6; }
15705 if test $ac_cv_header_stdc = yes; then
15707 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
15711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
15712 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
15713 if ${ac_cv_header_time+:} false; then :
15714 $as_echo_n "(cached) " >&6
15715 else
15716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15717 /* end confdefs.h. */
15718 #include <sys/types.h>
15719 #include <sys/time.h>
15720 #include <time.h>
15723 main ()
15725 if ((struct tm *) 0)
15726 return 0;
15728 return 0;
15730 _ACEOF
15731 if ac_fn_c_try_compile "$LINENO"; then :
15732 ac_cv_header_time=yes
15733 else
15734 ac_cv_header_time=no
15736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
15739 $as_echo "$ac_cv_header_time" >&6; }
15740 if test $ac_cv_header_time = yes; then
15742 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
15746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
15747 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
15748 if ${gcc_cv_header_string+:} false; then :
15749 $as_echo_n "(cached) " >&6
15750 else
15751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15752 /* end confdefs.h. */
15753 #include <string.h>
15754 #include <strings.h>
15756 main ()
15760 return 0;
15762 _ACEOF
15763 if ac_fn_c_try_compile "$LINENO"; then :
15764 gcc_cv_header_string=yes
15765 else
15766 gcc_cv_header_string=no
15768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
15771 $as_echo "$gcc_cv_header_string" >&6; }
15772 if test $gcc_cv_header_string = yes; then
15774 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
15778 for ac_header in unistd.h semaphore.h sys/time.h sys/auxv.h malloc.h
15779 do :
15780 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15781 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15782 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15783 cat >>confdefs.h <<_ACEOF
15784 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15785 _ACEOF
15789 done
15794 inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
15796 acx_cv_header_stdint=stddef.h
15797 acx_cv_header_stdint_kind="(already complete)"
15798 for i in stdint.h $inttype_headers; do
15799 unset ac_cv_type_uintptr_t
15800 unset ac_cv_type_uintmax_t
15801 unset ac_cv_type_int_least32_t
15802 unset ac_cv_type_int_fast32_t
15803 unset ac_cv_type_uint64_t
15804 $as_echo_n "looking for a compliant stdint.h in $i, " >&6
15805 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h>
15806 #include <$i>
15808 if test "x$ac_cv_type_uintmax_t" = xyes; then :
15809 acx_cv_header_stdint=$i
15810 else
15811 continue
15814 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
15815 #include <$i>
15817 if test "x$ac_cv_type_uintptr_t" = xyes; then :
15819 else
15820 acx_cv_header_stdint_kind="(mostly complete)"
15823 ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h>
15824 #include <$i>
15826 if test "x$ac_cv_type_int_least32_t" = xyes; then :
15828 else
15829 acx_cv_header_stdint_kind="(mostly complete)"
15832 ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h>
15833 #include <$i>
15835 if test "x$ac_cv_type_int_fast32_t" = xyes; then :
15837 else
15838 acx_cv_header_stdint_kind="(mostly complete)"
15841 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
15842 #include <$i>
15844 if test "x$ac_cv_type_uint64_t" = xyes; then :
15846 else
15847 acx_cv_header_stdint_kind="(lacks uint64_t)"
15850 break
15851 done
15852 if test "$acx_cv_header_stdint" = stddef.h; then
15853 acx_cv_header_stdint_kind="(lacks uintmax_t)"
15854 for i in stdint.h $inttype_headers; do
15855 unset ac_cv_type_uintptr_t
15856 unset ac_cv_type_uint32_t
15857 unset ac_cv_type_uint64_t
15858 $as_echo_n "looking for an incomplete stdint.h in $i, " >&6
15859 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h>
15860 #include <$i>
15862 if test "x$ac_cv_type_uint32_t" = xyes; then :
15863 acx_cv_header_stdint=$i
15864 else
15865 continue
15868 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
15869 #include <$i>
15871 if test "x$ac_cv_type_uint64_t" = xyes; then :
15875 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
15876 #include <$i>
15878 if test "x$ac_cv_type_uintptr_t" = xyes; then :
15882 break
15883 done
15885 if test "$acx_cv_header_stdint" = stddef.h; then
15886 acx_cv_header_stdint_kind="(u_intXX_t style)"
15887 for i in sys/types.h $inttype_headers; do
15888 unset ac_cv_type_u_int32_t
15889 unset ac_cv_type_u_int64_t
15890 $as_echo_n "looking for u_intXX_t types in $i, " >&6
15891 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h>
15892 #include <$i>
15894 if test "x$ac_cv_type_u_int32_t" = xyes; then :
15895 acx_cv_header_stdint=$i
15896 else
15897 continue
15900 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h>
15901 #include <$i>
15903 if test "x$ac_cv_type_u_int64_t" = xyes; then :
15907 break
15908 done
15910 if test "$acx_cv_header_stdint" = stddef.h; then
15911 acx_cv_header_stdint_kind="(using manual detection)"
15914 test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
15915 test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
15916 test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
15917 test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
15918 test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
15920 # ----------------- Summarize what we found so far
15922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5
15923 $as_echo_n "checking what to include in gstdint.h... " >&6; }
15925 case `$as_basename -- gstdint.h ||
15926 $as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
15927 Xgstdint.h : 'X\(//\)$' \| \
15928 Xgstdint.h : 'X\(/\)' \| . 2>/dev/null ||
15929 $as_echo X/gstdint.h |
15930 sed '/^.*\/\([^/][^/]*\)\/*$/{
15931 s//\1/
15934 /^X\/\(\/\/\)$/{
15935 s//\1/
15938 /^X\/\(\/\).*/{
15939 s//\1/
15942 s/.*/./; q'` in
15943 stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
15944 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
15945 inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
15946 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
15947 *) ;;
15948 esac
15950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
15951 $as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; }
15953 # ----------------- done included file, check C basic types --------
15955 # Lacking an uintptr_t? Test size of void *
15956 case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
15957 stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler
15958 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15959 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15960 # This bug is HP SR number 8606223364.
15961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
15962 $as_echo_n "checking size of void *... " >&6; }
15963 if ${ac_cv_sizeof_void_p+:} false; then :
15964 $as_echo_n "(cached) " >&6
15965 else
15966 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
15968 else
15969 if test "$ac_cv_type_void_p" = yes; then
15970 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15971 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15972 as_fn_error 77 "cannot compute sizeof (void *)
15973 See \`config.log' for more details" "$LINENO" 5; }
15974 else
15975 ac_cv_sizeof_void_p=0
15980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
15981 $as_echo "$ac_cv_sizeof_void_p" >&6; }
15985 cat >>confdefs.h <<_ACEOF
15986 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15987 _ACEOF
15990 esac
15992 # Lacking an uint64_t? Test size of long
15993 case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
15994 stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler
15995 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15996 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15997 # This bug is HP SR number 8606223364.
15998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
15999 $as_echo_n "checking size of long... " >&6; }
16000 if ${ac_cv_sizeof_long+:} false; then :
16001 $as_echo_n "(cached) " >&6
16002 else
16003 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
16005 else
16006 if test "$ac_cv_type_long" = yes; then
16007 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16008 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16009 as_fn_error 77 "cannot compute sizeof (long)
16010 See \`config.log' for more details" "$LINENO" 5; }
16011 else
16012 ac_cv_sizeof_long=0
16017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
16018 $as_echo "$ac_cv_sizeof_long" >&6; }
16022 cat >>confdefs.h <<_ACEOF
16023 #define SIZEOF_LONG $ac_cv_sizeof_long
16024 _ACEOF
16027 esac
16029 if test $acx_cv_header_stdint = stddef.h; then
16030 # Lacking a good header? Test size of everything and deduce all types.
16031 # The cast to long int works around a bug in the HP C Compiler
16032 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16033 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16034 # This bug is HP SR number 8606223364.
16035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
16036 $as_echo_n "checking size of int... " >&6; }
16037 if ${ac_cv_sizeof_int+:} false; then :
16038 $as_echo_n "(cached) " >&6
16039 else
16040 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
16042 else
16043 if test "$ac_cv_type_int" = yes; then
16044 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16045 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16046 as_fn_error 77 "cannot compute sizeof (int)
16047 See \`config.log' for more details" "$LINENO" 5; }
16048 else
16049 ac_cv_sizeof_int=0
16054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
16055 $as_echo "$ac_cv_sizeof_int" >&6; }
16059 cat >>confdefs.h <<_ACEOF
16060 #define SIZEOF_INT $ac_cv_sizeof_int
16061 _ACEOF
16064 # The cast to long int works around a bug in the HP C Compiler
16065 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16066 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16067 # This bug is HP SR number 8606223364.
16068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
16069 $as_echo_n "checking size of short... " >&6; }
16070 if ${ac_cv_sizeof_short+:} false; then :
16071 $as_echo_n "(cached) " >&6
16072 else
16073 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
16075 else
16076 if test "$ac_cv_type_short" = yes; then
16077 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16078 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16079 as_fn_error 77 "cannot compute sizeof (short)
16080 See \`config.log' for more details" "$LINENO" 5; }
16081 else
16082 ac_cv_sizeof_short=0
16087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
16088 $as_echo "$ac_cv_sizeof_short" >&6; }
16092 cat >>confdefs.h <<_ACEOF
16093 #define SIZEOF_SHORT $ac_cv_sizeof_short
16094 _ACEOF
16097 # The cast to long int works around a bug in the HP C Compiler
16098 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16099 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16100 # This bug is HP SR number 8606223364.
16101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
16102 $as_echo_n "checking size of char... " >&6; }
16103 if ${ac_cv_sizeof_char+:} false; then :
16104 $as_echo_n "(cached) " >&6
16105 else
16106 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
16108 else
16109 if test "$ac_cv_type_char" = yes; then
16110 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16111 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16112 as_fn_error 77 "cannot compute sizeof (char)
16113 See \`config.log' for more details" "$LINENO" 5; }
16114 else
16115 ac_cv_sizeof_char=0
16120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
16121 $as_echo "$ac_cv_sizeof_char" >&6; }
16125 cat >>confdefs.h <<_ACEOF
16126 #define SIZEOF_CHAR $ac_cv_sizeof_char
16127 _ACEOF
16131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5
16132 $as_echo_n "checking for type equivalent to int8_t... " >&6; }
16133 case "$ac_cv_sizeof_char" in
16134 1) acx_cv_type_int8_t=char ;;
16135 *) as_fn_error $? "no 8-bit type, please report a bug" "$LINENO" 5
16136 esac
16137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
16138 $as_echo "$acx_cv_type_int8_t" >&6; }
16140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5
16141 $as_echo_n "checking for type equivalent to int16_t... " >&6; }
16142 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
16143 2:*) acx_cv_type_int16_t=int ;;
16144 *:2) acx_cv_type_int16_t=short ;;
16145 *) as_fn_error $? "no 16-bit type, please report a bug" "$LINENO" 5
16146 esac
16147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
16148 $as_echo "$acx_cv_type_int16_t" >&6; }
16150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5
16151 $as_echo_n "checking for type equivalent to int32_t... " >&6; }
16152 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
16153 4:*) acx_cv_type_int32_t=int ;;
16154 *:4) acx_cv_type_int32_t=long ;;
16155 *) as_fn_error $? "no 32-bit type, please report a bug" "$LINENO" 5
16156 esac
16157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
16158 $as_echo "$acx_cv_type_int32_t" >&6; }
16161 # These tests are here to make the output prettier
16163 if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
16164 case "$ac_cv_sizeof_long" in
16165 8) acx_cv_type_int64_t=long ;;
16166 esac
16167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5
16168 $as_echo_n "checking for type equivalent to int64_t... " >&6; }
16169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
16170 $as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
16173 # Now we can use the above types
16175 if test "$ac_cv_type_uintptr_t" != yes; then
16176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5
16177 $as_echo_n "checking for type equivalent to intptr_t... " >&6; }
16178 case $ac_cv_sizeof_void_p in
16179 2) acx_cv_type_intptr_t=int16_t ;;
16180 4) acx_cv_type_intptr_t=int32_t ;;
16181 8) acx_cv_type_intptr_t=int64_t ;;
16182 *) as_fn_error $? "no equivalent for intptr_t, please report a bug" "$LINENO" 5
16183 esac
16184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
16185 $as_echo "$acx_cv_type_intptr_t" >&6; }
16188 # ----------------- done all checks, emit header -------------
16189 ac_config_commands="$ac_config_commands gstdint.h"
16195 ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
16196 if test "x$ac_cv_header_sys_mman_h" = xyes; then :
16197 gcc_header_sys_mman_h=yes
16198 else
16199 gcc_header_sys_mman_h=no
16203 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
16204 if test "x$ac_cv_func_mmap" = xyes; then :
16205 gcc_func_mmap=yes
16206 else
16207 gcc_func_mmap=no
16210 if test "$gcc_header_sys_mman_h" != yes \
16211 || test "$gcc_func_mmap" != yes; then
16212 gcc_cv_func_mmap_file=no
16213 gcc_cv_func_mmap_dev_zero=no
16214 gcc_cv_func_mmap_anon=no
16215 else
16216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
16217 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
16218 if ${gcc_cv_func_mmap_file+:} false; then :
16219 $as_echo_n "(cached) " >&6
16220 else
16221 # Add a system to this blacklist if
16222 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
16223 # memory area containing the same data that you'd get if you applied
16224 # read() to the same fd. The only system known to have a problem here
16225 # is VMS, where text files have record structure.
16226 case "$host_os" in
16227 *vms* | ultrix*)
16228 gcc_cv_func_mmap_file=no ;;
16230 gcc_cv_func_mmap_file=yes;;
16231 esac
16233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
16234 $as_echo "$gcc_cv_func_mmap_file" >&6; }
16235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
16236 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
16237 if ${gcc_cv_func_mmap_dev_zero+:} false; then :
16238 $as_echo_n "(cached) " >&6
16239 else
16240 # Add a system to this blacklist if it has mmap() but /dev/zero
16241 # does not exist, or if mmapping /dev/zero does not give anonymous
16242 # zeroed pages with both the following properties:
16243 # 1. If you map N consecutive pages in with one call, and then
16244 # unmap any subset of those pages, the pages that were not
16245 # explicitly unmapped remain accessible.
16246 # 2. If you map two adjacent blocks of memory and then unmap them
16247 # both at once, they must both go away.
16248 # Systems known to be in this category are Windows (all variants),
16249 # VMS, and Darwin.
16250 case "$host_os" in
16251 *vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
16252 gcc_cv_func_mmap_dev_zero=no ;;
16254 gcc_cv_func_mmap_dev_zero=yes;;
16255 esac
16257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
16258 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
16260 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
16261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
16262 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
16263 if ${gcc_cv_decl_map_anon+:} false; then :
16264 $as_echo_n "(cached) " >&6
16265 else
16266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16267 /* end confdefs.h. */
16268 #include <sys/types.h>
16269 #include <sys/mman.h>
16270 #include <unistd.h>
16272 #ifndef MAP_ANONYMOUS
16273 #define MAP_ANONYMOUS MAP_ANON
16274 #endif
16277 main ()
16279 int n = MAP_ANONYMOUS;
16281 return 0;
16283 _ACEOF
16284 if ac_fn_c_try_compile "$LINENO"; then :
16285 gcc_cv_decl_map_anon=yes
16286 else
16287 gcc_cv_decl_map_anon=no
16289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
16292 $as_echo "$gcc_cv_decl_map_anon" >&6; }
16294 if test $gcc_cv_decl_map_anon = no; then
16295 gcc_cv_func_mmap_anon=no
16296 else
16297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
16298 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
16299 if ${gcc_cv_func_mmap_anon+:} false; then :
16300 $as_echo_n "(cached) " >&6
16301 else
16302 # Add a system to this blacklist if it has mmap() and MAP_ANON or
16303 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
16304 # doesn't give anonymous zeroed pages with the same properties listed
16305 # above for use of /dev/zero.
16306 # Systems known to be in this category are Windows, VMS, and SCO Unix.
16307 case "$host_os" in
16308 *vms* | cygwin* | pe | mingw* | sco* | udk* )
16309 gcc_cv_func_mmap_anon=no ;;
16311 gcc_cv_func_mmap_anon=yes;;
16312 esac
16314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
16315 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
16319 if test $gcc_cv_func_mmap_file = yes; then
16321 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
16324 if test $gcc_cv_func_mmap_dev_zero = yes; then
16326 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
16329 if test $gcc_cv_func_mmap_anon = yes; then
16331 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
16336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
16337 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
16338 if ${ac_cv_c_bigendian+:} false; then :
16339 $as_echo_n "(cached) " >&6
16340 else
16341 ac_cv_c_bigendian=unknown
16342 # See if we're dealing with a universal compiler.
16343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16344 /* end confdefs.h. */
16345 #ifndef __APPLE_CC__
16346 not a universal capable compiler
16347 #endif
16348 typedef int dummy;
16350 _ACEOF
16351 if ac_fn_c_try_compile "$LINENO"; then :
16353 # Check for potential -arch flags. It is not universal unless
16354 # there are at least two -arch flags with different values.
16355 ac_arch=
16356 ac_prev=
16357 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
16358 if test -n "$ac_prev"; then
16359 case $ac_word in
16360 i?86 | x86_64 | ppc | ppc64)
16361 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
16362 ac_arch=$ac_word
16363 else
16364 ac_cv_c_bigendian=universal
16365 break
16368 esac
16369 ac_prev=
16370 elif test "x$ac_word" = "x-arch"; then
16371 ac_prev=arch
16373 done
16375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16376 if test $ac_cv_c_bigendian = unknown; then
16377 # See if sys/param.h defines the BYTE_ORDER macro.
16378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16379 /* end confdefs.h. */
16380 #include <sys/types.h>
16381 #include <sys/param.h>
16384 main ()
16386 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
16387 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
16388 && LITTLE_ENDIAN)
16389 bogus endian macros
16390 #endif
16393 return 0;
16395 _ACEOF
16396 if ac_fn_c_try_compile "$LINENO"; then :
16397 # It does; now see whether it defined to BIG_ENDIAN or not.
16398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16399 /* end confdefs.h. */
16400 #include <sys/types.h>
16401 #include <sys/param.h>
16404 main ()
16406 #if BYTE_ORDER != BIG_ENDIAN
16407 not big endian
16408 #endif
16411 return 0;
16413 _ACEOF
16414 if ac_fn_c_try_compile "$LINENO"; then :
16415 ac_cv_c_bigendian=yes
16416 else
16417 ac_cv_c_bigendian=no
16419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16423 if test $ac_cv_c_bigendian = unknown; then
16424 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
16425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16426 /* end confdefs.h. */
16427 #include <limits.h>
16430 main ()
16432 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
16433 bogus endian macros
16434 #endif
16437 return 0;
16439 _ACEOF
16440 if ac_fn_c_try_compile "$LINENO"; then :
16441 # It does; now see whether it defined to _BIG_ENDIAN or not.
16442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16443 /* end confdefs.h. */
16444 #include <limits.h>
16447 main ()
16449 #ifndef _BIG_ENDIAN
16450 not big endian
16451 #endif
16454 return 0;
16456 _ACEOF
16457 if ac_fn_c_try_compile "$LINENO"; then :
16458 ac_cv_c_bigendian=yes
16459 else
16460 ac_cv_c_bigendian=no
16462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16466 if test $ac_cv_c_bigendian = unknown; then
16467 # Compile a test program.
16468 if test "$cross_compiling" = yes; then :
16469 # Try to guess by grepping values from an object file.
16470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16471 /* end confdefs.h. */
16472 short int ascii_mm[] =
16473 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
16474 short int ascii_ii[] =
16475 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
16476 int use_ascii (int i) {
16477 return ascii_mm[i] + ascii_ii[i];
16479 short int ebcdic_ii[] =
16480 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
16481 short int ebcdic_mm[] =
16482 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
16483 int use_ebcdic (int i) {
16484 return ebcdic_mm[i] + ebcdic_ii[i];
16486 extern int foo;
16489 main ()
16491 return use_ascii (foo) == use_ebcdic (foo);
16493 return 0;
16495 _ACEOF
16496 if ac_fn_c_try_compile "$LINENO"; then :
16497 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
16498 ac_cv_c_bigendian=yes
16500 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
16501 if test "$ac_cv_c_bigendian" = unknown; then
16502 ac_cv_c_bigendian=no
16503 else
16504 # finding both strings is unlikely to happen, but who knows?
16505 ac_cv_c_bigendian=unknown
16509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16510 else
16511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16512 /* end confdefs.h. */
16513 $ac_includes_default
16515 main ()
16518 /* Are we little or big endian? From Harbison&Steele. */
16519 union
16521 long int l;
16522 char c[sizeof (long int)];
16523 } u;
16524 u.l = 1;
16525 return u.c[sizeof (long int) - 1] == 1;
16528 return 0;
16530 _ACEOF
16531 if ac_fn_c_try_run "$LINENO"; then :
16532 ac_cv_c_bigendian=no
16533 else
16534 ac_cv_c_bigendian=yes
16536 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16537 conftest.$ac_objext conftest.beam conftest.$ac_ext
16542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
16543 $as_echo "$ac_cv_c_bigendian" >&6; }
16544 case $ac_cv_c_bigendian in #(
16545 yes)
16546 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
16547 ;; #(
16549 ;; #(
16550 universal)
16552 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
16554 ;; #(
16556 as_fn_error $? "unknown endianness
16557 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
16558 esac
16560 # I don't like the default behaviour of WORDS_BIGENDIAN undefined for LE.
16563 # Check to see if -pthread or -lpthread is needed. Prefer the former.
16564 # In case the pthread.h system header is not found, this test will fail.
16565 XPCFLAGS=""
16566 CFLAGS="$CFLAGS -pthread"
16567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16568 /* end confdefs.h. */
16569 #include <pthread.h>
16570 void *g(void *d) { return NULL; }
16572 main ()
16574 pthread_t t; pthread_create(&t,NULL,g,NULL);
16576 return 0;
16578 _ACEOF
16579 if ac_fn_c_try_link "$LINENO"; then :
16580 XPCFLAGS=" -Wc,-pthread"
16581 else
16582 CFLAGS="$save_CFLAGS" LIBS="-lpthread $LIBS"
16583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16584 /* end confdefs.h. */
16585 #include <pthread.h>
16586 void *g(void *d) { return NULL; }
16588 main ()
16590 pthread_t t; pthread_create(&t,NULL,g,NULL);
16592 return 0;
16594 _ACEOF
16595 if ac_fn_c_try_link "$LINENO"; then :
16597 else
16598 as_fn_error $? "Pthreads are required to build libitm" "$LINENO" 5
16600 rm -f core conftest.err conftest.$ac_objext \
16601 conftest$ac_exeext conftest.$ac_ext
16603 rm -f core conftest.err conftest.$ac_objext \
16604 conftest$ac_exeext conftest.$ac_ext
16606 # Check for functions needed.
16607 for ac_func in strtoull memalign posix_memalign getauxval
16608 do :
16609 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16610 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16611 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16612 cat >>confdefs.h <<_ACEOF
16613 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16614 _ACEOF
16617 done
16620 # Check for broken semaphore implementation on darwin.
16621 # sem_init returns: sem_init error: Function not implemented.
16622 case "$host" in
16623 *-darwin*)
16625 $as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h
16628 esac
16630 # Check whether --enable-linux-futex was given.
16631 if test "${enable_linux_futex+set}" = set; then :
16632 enableval=$enable_linux_futex;
16633 case "$enableval" in
16634 yes|no|default) ;;
16635 *) as_fn_error $? "Unknown argument to enable/disable linux-futex" "$LINENO" 5 ;;
16636 esac
16638 else
16639 enable_linux_futex=default
16643 case "$target" in
16644 *-linux* | *-uclinux*)
16645 case "$enable_linux_futex" in
16646 default)
16647 # If headers don't have gettid/futex syscalls definition, then
16648 # default to no, otherwise there will be compile time failures.
16649 # Otherwise, default to yes. If we don't detect we are
16650 # compiled/linked against NPTL and not cross-compiling, check
16651 # if programs are run by default against NPTL and if not, issue
16652 # a warning.
16653 enable_linux_futex=no
16654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16655 /* end confdefs.h. */
16656 #include <sys/syscall.h>
16657 #include <unistd.h>
16658 int lk;
16660 main ()
16662 syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
16664 return 0;
16666 _ACEOF
16667 if ac_fn_c_try_link "$LINENO"; then :
16668 save_LIBS="$LIBS"
16669 LIBS="-lpthread $LIBS"
16670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16671 /* end confdefs.h. */
16672 #ifndef _GNU_SOURCE
16673 #define _GNU_SOURCE 1
16674 #endif
16675 #include <pthread.h>
16676 pthread_t th; void *status;
16678 main ()
16680 pthread_tryjoin_np (th, &status);
16682 return 0;
16684 _ACEOF
16685 if ac_fn_c_try_link "$LINENO"; then :
16686 enable_linux_futex=yes
16687 else
16688 if test x$cross_compiling = xno; then
16689 if getconf GNU_LIBPTHREAD_VERSION 2>/dev/null \
16690 | LC_ALL=C grep -i NPTL > /dev/null 2>/dev/null; then :; else
16691 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The kernel might not support futex or gettid syscalls.
16692 If so, please configure with --disable-linux-futex" >&5
16693 $as_echo "$as_me: WARNING: The kernel might not support futex or gettid syscalls.
16694 If so, please configure with --disable-linux-futex" >&2;}
16697 enable_linux_futex=yes
16699 rm -f core conftest.err conftest.$ac_objext \
16700 conftest$ac_exeext conftest.$ac_ext
16701 LIBS="$save_LIBS"
16703 rm -f core conftest.err conftest.$ac_objext \
16704 conftest$ac_exeext conftest.$ac_ext
16706 yes)
16707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16708 /* end confdefs.h. */
16709 #include <sys/syscall.h>
16710 #include <unistd.h>
16711 int lk;
16713 main ()
16715 syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
16717 return 0;
16719 _ACEOF
16720 if ac_fn_c_try_link "$LINENO"; then :
16722 else
16723 as_fn_error $? "SYS_gettid and SYS_futex required for --enable-linux-futex" "$LINENO" 5
16725 rm -f core conftest.err conftest.$ac_objext \
16726 conftest$ac_exeext conftest.$ac_ext
16728 esac
16731 enable_linux_futex=no
16733 esac
16734 if test x$enable_linux_futex = xyes; then
16739 # See if we support thread-local storage.
16742 # Check whether --enable-tls was given.
16743 if test "${enable_tls+set}" = set; then :
16744 enableval=$enable_tls;
16745 case "$enableval" in
16746 yes|no) ;;
16747 *) as_fn_error $? "Argument to enable/disable tls must be yes or no" "$LINENO" 5 ;;
16748 esac
16750 else
16751 enable_tls=yes
16755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports thread-local storage" >&5
16756 $as_echo_n "checking whether the target supports thread-local storage... " >&6; }
16757 if ${gcc_cv_have_tls+:} false; then :
16758 $as_echo_n "(cached) " >&6
16759 else
16761 if test "$cross_compiling" = yes; then :
16762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16763 /* end confdefs.h. */
16764 __thread int a; int b; int main() { return a = b; }
16765 _ACEOF
16766 if ac_fn_c_try_link "$LINENO"; then :
16767 chktls_save_LDFLAGS="$LDFLAGS"
16768 case $host in
16769 *-*-linux* | -*-uclinuxfdpic*)
16770 LDFLAGS="-shared -Wl,--no-undefined $LDFLAGS"
16772 esac
16773 chktls_save_CFLAGS="$CFLAGS"
16774 CFLAGS="-fPIC $CFLAGS"
16775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16776 /* end confdefs.h. */
16777 int f() { return 0; }
16778 _ACEOF
16779 if ac_fn_c_try_link "$LINENO"; then :
16780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16781 /* end confdefs.h. */
16782 __thread int a; int b; int f() { return a = b; }
16783 _ACEOF
16784 if ac_fn_c_try_link "$LINENO"; then :
16785 gcc_cv_have_tls=yes
16786 else
16787 gcc_cv_have_tls=no
16789 rm -f core conftest.err conftest.$ac_objext \
16790 conftest$ac_exeext conftest.$ac_ext
16791 else
16792 gcc_cv_have_tls=yes
16794 rm -f core conftest.err conftest.$ac_objext \
16795 conftest$ac_exeext conftest.$ac_ext
16796 CFLAGS="$chktls_save_CFLAGS"
16797 LDFLAGS="$chktls_save_LDFLAGS"
16798 else
16799 gcc_cv_have_tls=no
16801 rm -f core conftest.err conftest.$ac_objext \
16802 conftest$ac_exeext conftest.$ac_ext
16805 else
16806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16807 /* end confdefs.h. */
16808 __thread int a; int b; int main() { return a = b; }
16809 _ACEOF
16810 if ac_fn_c_try_run "$LINENO"; then :
16811 chktls_save_LDFLAGS="$LDFLAGS"
16812 LDFLAGS="-static $LDFLAGS"
16813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16814 /* end confdefs.h. */
16815 int main() { return 0; }
16816 _ACEOF
16817 if ac_fn_c_try_link "$LINENO"; then :
16818 if test "$cross_compiling" = yes; then :
16819 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16820 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16821 as_fn_error $? "cannot run test program while cross compiling
16822 See \`config.log' for more details" "$LINENO" 5; }
16823 else
16824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16825 /* end confdefs.h. */
16826 __thread int a; int b; int main() { return a = b; }
16827 _ACEOF
16828 if ac_fn_c_try_run "$LINENO"; then :
16829 gcc_cv_have_tls=yes
16830 else
16831 gcc_cv_have_tls=no
16833 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16834 conftest.$ac_objext conftest.beam conftest.$ac_ext
16837 else
16838 gcc_cv_have_tls=yes
16840 rm -f core conftest.err conftest.$ac_objext \
16841 conftest$ac_exeext conftest.$ac_ext
16842 LDFLAGS="$chktls_save_LDFLAGS"
16843 if test $gcc_cv_have_tls = yes; then
16844 chktls_save_CFLAGS="$CFLAGS"
16845 thread_CFLAGS=failed
16846 for flag in '' '-pthread' '-lpthread'; do
16847 CFLAGS="$flag $chktls_save_CFLAGS"
16848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16849 /* end confdefs.h. */
16850 #include <pthread.h>
16851 void *g(void *d) { return NULL; }
16853 main ()
16855 pthread_t t; pthread_create(&t,NULL,g,NULL);
16857 return 0;
16859 _ACEOF
16860 if ac_fn_c_try_link "$LINENO"; then :
16861 thread_CFLAGS="$flag"
16863 rm -f core conftest.err conftest.$ac_objext \
16864 conftest$ac_exeext conftest.$ac_ext
16865 if test "X$thread_CFLAGS" != Xfailed; then
16866 break
16868 done
16869 CFLAGS="$chktls_save_CFLAGS"
16870 if test "X$thread_CFLAGS" != Xfailed; then
16871 CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS"
16872 if test "$cross_compiling" = yes; then :
16873 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16874 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16875 as_fn_error $? "cannot run test program while cross compiling
16876 See \`config.log' for more details" "$LINENO" 5; }
16877 else
16878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16879 /* end confdefs.h. */
16880 #include <pthread.h>
16881 __thread int a;
16882 static int *volatile a_in_other_thread;
16883 static void *
16884 thread_func (void *arg)
16886 a_in_other_thread = &a;
16887 return (void *)0;
16890 main ()
16892 pthread_t thread;
16893 void *thread_retval;
16894 int *volatile a_in_main_thread;
16895 a_in_main_thread = &a;
16896 if (pthread_create (&thread, (pthread_attr_t *)0,
16897 thread_func, (void *)0))
16898 return 0;
16899 if (pthread_join (thread, &thread_retval))
16900 return 0;
16901 return (a_in_other_thread == a_in_main_thread);
16903 return 0;
16905 _ACEOF
16906 if ac_fn_c_try_run "$LINENO"; then :
16907 gcc_cv_have_tls=yes
16908 else
16909 gcc_cv_have_tls=no
16911 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16912 conftest.$ac_objext conftest.beam conftest.$ac_ext
16915 CFLAGS="$chktls_save_CFLAGS"
16918 else
16919 gcc_cv_have_tls=no
16921 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16922 conftest.$ac_objext conftest.beam conftest.$ac_ext
16926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_have_tls" >&5
16927 $as_echo "$gcc_cv_have_tls" >&6; }
16928 if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then
16930 $as_echo "#define HAVE_TLS 1" >>confdefs.h
16934 # See what sort of export controls are available.
16936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports hidden visibility" >&5
16937 $as_echo_n "checking whether the target supports hidden visibility... " >&6; }
16938 if ${libitm_cv_have_attribute_visibility+:} false; then :
16939 $as_echo_n "(cached) " >&6
16940 else
16942 save_CFLAGS="$CFLAGS"
16943 CFLAGS="$CFLAGS -Werror"
16944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16945 /* end confdefs.h. */
16946 void __attribute__((visibility("hidden"))) foo(void) { }
16948 main ()
16952 return 0;
16954 _ACEOF
16955 if ac_fn_c_try_compile "$LINENO"; then :
16956 libitm_cv_have_attribute_visibility=yes
16957 else
16958 libitm_cv_have_attribute_visibility=no
16960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16961 CFLAGS="$save_CFLAGS"
16963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_have_attribute_visibility" >&5
16964 $as_echo "$libitm_cv_have_attribute_visibility" >&6; }
16965 if test $libitm_cv_have_attribute_visibility = yes; then
16967 $as_echo "#define HAVE_ATTRIBUTE_VISIBILITY 1" >>confdefs.h
16971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports dllexport" >&5
16972 $as_echo_n "checking whether the target supports dllexport... " >&6; }
16973 if ${libitm_cv_have_attribute_dllexport+:} false; then :
16974 $as_echo_n "(cached) " >&6
16975 else
16977 save_CFLAGS="$CFLAGS"
16978 CFLAGS="$CFLAGS -Werror"
16979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16980 /* end confdefs.h. */
16981 void __attribute__((dllexport)) foo(void) { }
16983 main ()
16987 return 0;
16989 _ACEOF
16990 if ac_fn_c_try_compile "$LINENO"; then :
16991 libitm_cv_have_attribute_dllexport=yes
16992 else
16993 libitm_cv_have_attribute_dllexport=no
16995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16996 CFLAGS="$save_CFLAGS"
16998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_have_attribute_dllexport" >&5
16999 $as_echo "$libitm_cv_have_attribute_dllexport" >&6; }
17000 if test $libitm_cv_have_attribute_dllexport = yes; then
17002 $as_echo "#define HAVE_ATTRIBUTE_DLLEXPORT 1" >>confdefs.h
17006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports symbol aliases" >&5
17007 $as_echo_n "checking whether the target supports symbol aliases... " >&6; }
17008 if ${libitm_cv_have_attribute_alias+:} false; then :
17009 $as_echo_n "(cached) " >&6
17010 else
17012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17013 /* end confdefs.h. */
17015 void foo(void) { }
17016 extern void bar(void) __attribute__((alias("foo")));
17018 main ()
17020 bar();
17022 return 0;
17024 _ACEOF
17025 if ac_fn_c_try_link "$LINENO"; then :
17026 libitm_cv_have_attribute_alias=yes
17027 else
17028 libitm_cv_have_attribute_alias=no
17030 rm -f core conftest.err conftest.$ac_objext \
17031 conftest$ac_exeext conftest.$ac_ext
17033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_have_attribute_alias" >&5
17034 $as_echo "$libitm_cv_have_attribute_alias" >&6; }
17035 if test $libitm_cv_have_attribute_alias = yes; then
17037 $as_echo "#define HAVE_ATTRIBUTE_ALIAS 1" >>confdefs.h
17041 # Check linker hardware capability support.
17044 # Check whether --with-gnu-ld was given.
17045 if test "${with_gnu_ld+set}" = set; then :
17046 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17047 else
17048 with_gnu_ld=no
17051 ac_prog=ld
17052 if test "$GCC" = yes; then
17053 # Check if gcc -print-prog-name=ld gives a path.
17054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
17055 $as_echo_n "checking for ld used by $CC... " >&6; }
17056 case $host in
17057 *-*-mingw*)
17058 # gcc leaves a trailing carriage return which upsets mingw
17059 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17061 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17062 esac
17063 case $ac_prog in
17064 # Accept absolute paths.
17065 [\\/]* | ?:[\\/]*)
17066 re_direlt='/[^/][^/]*/\.\./'
17067 # Canonicalize the pathname of ld
17068 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
17069 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
17070 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
17071 done
17072 test -z "$LD" && LD="$ac_prog"
17075 # If it fails, then pretend we aren't using GCC.
17076 ac_prog=ld
17079 # If it is relative, then search for the first ld in PATH.
17080 with_gnu_ld=unknown
17082 esac
17083 elif test "$with_gnu_ld" = yes; then
17084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
17085 $as_echo_n "checking for GNU ld... " >&6; }
17086 else
17087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
17088 $as_echo_n "checking for non-GNU ld... " >&6; }
17090 if ${lt_cv_path_LD+:} false; then :
17091 $as_echo_n "(cached) " >&6
17092 else
17093 if test -z "$LD"; then
17094 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17095 for ac_dir in $PATH; do
17096 IFS="$lt_save_ifs"
17097 test -z "$ac_dir" && ac_dir=.
17098 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17099 lt_cv_path_LD="$ac_dir/$ac_prog"
17100 # Check to see if the program is GNU ld. I'd rather use --version,
17101 # but apparently some variants of GNU ld only accept -v.
17102 # Break only if it was the GNU/non-GNU ld that we prefer.
17103 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
17104 *GNU* | *'with BFD'*)
17105 test "$with_gnu_ld" != no && break
17108 test "$with_gnu_ld" != yes && break
17110 esac
17112 done
17113 IFS="$lt_save_ifs"
17114 else
17115 lt_cv_path_LD="$LD" # Let the user override the test with a path.
17119 LD="$lt_cv_path_LD"
17120 if test -n "$LD"; then
17121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
17122 $as_echo "$LD" >&6; }
17123 else
17124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17125 $as_echo "no" >&6; }
17127 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
17128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
17129 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
17130 if ${lt_cv_prog_gnu_ld+:} false; then :
17131 $as_echo_n "(cached) " >&6
17132 else
17133 # I'd rather use --version here, but apparently some GNU lds only accept -v.
17134 case `$LD -v 2>&1 </dev/null` in
17135 *GNU* | *'with BFD'*)
17136 lt_cv_prog_gnu_ld=yes
17139 lt_cv_prog_gnu_ld=no
17141 esac
17143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
17144 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
17145 with_gnu_ld=$lt_cv_prog_gnu_ld
17153 test -z "$HWCAP_LDFLAGS" && HWCAP_LDFLAGS=''
17156 ac_save_LDFLAGS="$LDFLAGS"
17157 LDFLAGS="$LFLAGS -mclear-hwcap"
17159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -mclear-hwcap" >&5
17160 $as_echo_n "checking for -mclear-hwcap... " >&6; }
17161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17162 /* end confdefs.h. */
17165 main ()
17167 return 0;
17169 return 0;
17171 _ACEOF
17172 if ac_fn_c_try_link "$LINENO"; then :
17173 ac_hwcap_ldflags=yes
17174 else
17175 ac_hwcap_ldflags=no
17177 rm -f core conftest.err conftest.$ac_objext \
17178 conftest$ac_exeext conftest.$ac_ext
17179 if test "$ac_hwcap_ldflags" = "yes"; then
17180 HWCAP_LDFLAGS="-mclear-hwcap $HWCAP_LDFLAGS"
17182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_hwcap_ldflags" >&5
17183 $as_echo "$ac_hwcap_ldflags" >&6; }
17185 LDFLAGS="$ac_save_LDFLAGS"
17189 if test $ac_hwcap_ldflags != no; then
17190 HAVE_HWCAP_TRUE=
17191 HAVE_HWCAP_FALSE='#'
17192 else
17193 HAVE_HWCAP_TRUE='#'
17194 HAVE_HWCAP_FALSE=
17198 # If defaulting to -mavx, don't clear hwcaps.
17199 ac_fn_c_check_decl "$LINENO" "__AVX__" "ac_cv_have_decl___AVX__" "$ac_includes_default"
17200 if test "x$ac_cv_have_decl___AVX__" = xyes; then :
17201 HWCAP_LDFLAGS=''
17206 # If we're not using GNU ld, then there's no point in even trying these
17207 # tests. Check for that first. We should have already tested for gld
17208 # by now (in libtool), but require it now just to be safe...
17209 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
17210 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
17214 # The name set by libtool depends on the version of libtool. Shame on us
17215 # for depending on an impl detail, but c'est la vie. Older versions used
17216 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
17217 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
17218 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
17219 # set (hence we're using an older libtool), then set it.
17220 if test x${with_gnu_ld+set} != xset; then
17221 if test x${ac_cv_prog_gnu_ld+set} != xset; then
17222 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
17223 with_gnu_ld=no
17224 else
17225 with_gnu_ld=$ac_cv_prog_gnu_ld
17229 # Start by getting the version number. I think the libtool test already
17230 # does some of this, but throws away the result.
17231 libitm_ld_is_gold=no
17232 libitm_ld_is_mold=no
17233 if $LD --version 2>/dev/null | grep 'GNU gold'> /dev/null 2>&1; then
17234 libitm_ld_is_gold=yes
17235 elif $LD --version 2>/dev/null | grep 'mold' >/dev/null 2>&1; then
17236 libitm_ld_is_mold=yes
17239 ldver=`$LD --version 2>/dev/null |
17240 sed -e 's/[. ][0-9]\{8\}$//;s/.* \([^ ]\{1,\}\)$/\1/; q'`
17242 libitm_gnu_ld_version=`echo $ldver | \
17243 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
17245 # Set --gc-sections.
17246 if test "$with_gnu_ld" = "notbroken"; then
17247 # GNU ld it is! Joy and bunny rabbits!
17249 # All these tests are for C++; save the language and the compiler flags.
17250 # Need to do this so that g++ won't try to link in libstdc++
17251 ac_test_CFLAGS="${CFLAGS+set}"
17252 ac_save_CFLAGS="$CFLAGS"
17253 CFLAGS='-x c++ -Wl,--gc-sections'
17255 # Check for -Wl,--gc-sections
17256 # XXX This test is broken at the moment, as symbols required for linking
17257 # are now in libsupc++ (not built yet). In addition, this test has
17258 # cored on solaris in the past. In addition, --gc-sections doesn't
17259 # really work at the moment (keeps on discarding used sections, first
17260 # .eh_frame and now some of the glibc sections for iconv).
17261 # Bzzzzt. Thanks for playing, maybe next time.
17262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,--gc-sections" >&5
17263 $as_echo_n "checking for ld that supports -Wl,--gc-sections... " >&6; }
17264 if test "$cross_compiling" = yes; then :
17265 ac_sectionLDflags=yes
17266 else
17267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17268 /* end confdefs.h. */
17270 int main(void)
17272 try { throw 1; }
17273 catch (...) { };
17274 return 0;
17277 _ACEOF
17278 if ac_fn_c_try_run "$LINENO"; then :
17279 ac_sectionLDflags=yes
17280 else
17281 ac_sectionLDflags=no
17283 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17284 conftest.$ac_objext conftest.beam conftest.$ac_ext
17287 if test "$ac_test_CFLAGS" = set; then
17288 CFLAGS="$ac_save_CFLAGS"
17289 else
17290 # this is the suspicious part
17291 CFLAGS=''
17293 if test "$ac_sectionLDflags" = "yes"; then
17294 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
17296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_sectionLDflags" >&5
17297 $as_echo "$ac_sectionLDflags" >&6; }
17300 # Set linker optimization flags.
17301 if test x"$with_gnu_ld" = x"yes"; then
17302 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
17310 # Check whether --enable-symvers was given.
17311 if test "${enable_symvers+set}" = set; then :
17312 enableval=$enable_symvers;
17313 case "$enableval" in
17314 yes|no|gnu*|sun) ;;
17315 *) as_fn_error $? "Unknown argument to enable/disable symvers" "$LINENO" 5 ;;
17316 esac
17318 else
17319 enable_symvers=yes
17324 # If we never went through the LIBITM_CHECK_LINKER_FEATURES macro, then we
17325 # don't know enough about $LD to do tricks...
17328 # Turn a 'yes' into a suitable default.
17329 if test x$enable_symvers = xyes ; then
17330 # FIXME The following test is too strict, in theory.
17331 if test $enable_shared = no || test "x$LD" = x; then
17332 enable_symvers=no
17333 else
17334 if test $with_gnu_ld = yes ; then
17335 enable_symvers=gnu
17336 else
17337 case ${target_os} in
17338 # Sun symbol versioning exists since Solaris 2.5.
17339 solaris2.[5-9]* | solaris2.1[0-9]*)
17340 enable_symvers=sun ;;
17342 enable_symvers=no ;;
17343 esac
17348 # Check if 'sun' was requested on non-Solaris 2 platforms.
17349 if test x$enable_symvers = xsun ; then
17350 case ${target_os} in
17351 solaris2*)
17352 # All fine.
17355 # Unlikely to work.
17356 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested Sun symbol versioning, but" >&5
17357 $as_echo "$as_me: WARNING: === You have requested Sun symbol versioning, but" >&2;}
17358 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === you are not targetting Solaris 2." >&5
17359 $as_echo "$as_me: WARNING: === you are not targetting Solaris 2." >&2;}
17360 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
17361 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
17362 enable_symvers=no
17364 esac
17367 # Check to see if libgcc_s exists, indicating that shared libgcc is possible.
17368 if test $enable_symvers != no; then
17369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared libgcc" >&5
17370 $as_echo_n "checking for shared libgcc... " >&6; }
17371 ac_save_CFLAGS="$CFLAGS"
17372 CFLAGS=' -lgcc_s'
17373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17374 /* end confdefs.h. */
17377 main ()
17379 return 0;
17381 return 0;
17383 _ACEOF
17384 if ac_fn_c_try_link "$LINENO"; then :
17385 libitm_shared_libgcc=yes
17386 else
17387 libitm_shared_libgcc=no
17389 rm -f core conftest.err conftest.$ac_objext \
17390 conftest$ac_exeext conftest.$ac_ext
17391 CFLAGS="$ac_save_CFLAGS"
17392 if test $libitm_shared_libgcc = no; then
17393 cat > conftest.c <<EOF
17394 int main (void) { return 0; }
17396 libitm_libgcc_s_suffix=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
17397 -shared -shared-libgcc -o conftest.so \
17398 conftest.c -v 2>&1 >/dev/null \
17399 | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'`
17400 rm -f conftest.c conftest.so
17401 if test x${libitm_libgcc_s_suffix+set} = xset; then
17402 CFLAGS=" -lgcc_s$libitm_libgcc_s_suffix"
17403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17404 /* end confdefs.h. */
17407 main ()
17409 return 0;
17411 return 0;
17413 _ACEOF
17414 if ac_fn_c_try_link "$LINENO"; then :
17415 libitm_shared_libgcc=yes
17417 rm -f core conftest.err conftest.$ac_objext \
17418 conftest$ac_exeext conftest.$ac_ext
17419 CFLAGS="$ac_save_CFLAGS"
17422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_shared_libgcc" >&5
17423 $as_echo "$libitm_shared_libgcc" >&6; }
17426 # For GNU ld, we need at least this version. The format is described in
17427 # LIBITM_CHECK_LINKER_FEATURES above.
17428 libitm_min_gnu_ld_version=21400
17429 # XXXXXXXXXXX libitm_gnu_ld_version=21390
17431 # Check to see if unspecified "yes" value can win, given results above.
17432 # Change "yes" into either "no" or a style name.
17433 if test $enable_symvers != no && test $libitm_shared_libgcc = yes; then
17434 if test $with_gnu_ld = yes; then
17435 if test $libitm_gnu_ld_version -ge $libitm_min_gnu_ld_version ; then
17436 enable_symvers=gnu
17437 elif test $libitm_ld_is_gold = yes ; then
17438 enable_symvers=gnu
17439 elif test $libitm_ld_is_mold = yes ; then
17440 enable_symvers=gnu
17441 else
17442 # The right tools, the right setup, but too old. Fallbacks?
17443 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Linker version $libitm_gnu_ld_version is too old for" >&5
17444 $as_echo "$as_me: WARNING: === Linker version $libitm_gnu_ld_version is too old for" >&2;}
17445 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === full symbol versioning support in this release of GCC." >&5
17446 $as_echo "$as_me: WARNING: === full symbol versioning support in this release of GCC." >&2;}
17447 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You would need to upgrade your binutils to version" >&5
17448 $as_echo "$as_me: WARNING: === You would need to upgrade your binutils to version" >&2;}
17449 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === $libitm_min_gnu_ld_version or later and rebuild GCC." >&5
17450 $as_echo "$as_me: WARNING: === $libitm_min_gnu_ld_version or later and rebuild GCC." >&2;}
17451 if test $libitm_gnu_ld_version -ge 21200 ; then
17452 # Globbing fix is present, proper block support is not.
17453 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
17454 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
17455 enable_symvers=no
17456 else
17457 # 2.11 or older.
17458 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
17459 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
17460 enable_symvers=no
17463 elif test $enable_symvers = sun; then
17464 : All interesting versions of Sun ld support sun style symbol versioning.
17465 else
17466 # just fail for now
17467 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested some kind of symbol versioning, but" >&5
17468 $as_echo "$as_me: WARNING: === You have requested some kind of symbol versioning, but" >&2;}
17469 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === either you are not using a supported linker, or you are" >&5
17470 $as_echo "$as_me: WARNING: === either you are not using a supported linker, or you are" >&2;}
17471 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === not building a shared libgcc_s (which is required)." >&5
17472 $as_echo "$as_me: WARNING: === not building a shared libgcc_s (which is required)." >&2;}
17473 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
17474 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
17475 enable_symvers=no
17479 if test $enable_symvers != no; then
17480 LIBITM_BUILD_VERSIONED_SHLIB_TRUE=
17481 LIBITM_BUILD_VERSIONED_SHLIB_FALSE='#'
17482 else
17483 LIBITM_BUILD_VERSIONED_SHLIB_TRUE='#'
17484 LIBITM_BUILD_VERSIONED_SHLIB_FALSE=
17487 if test $enable_symvers = gnu; then
17488 LIBITM_BUILD_VERSIONED_SHLIB_GNU_TRUE=
17489 LIBITM_BUILD_VERSIONED_SHLIB_GNU_FALSE='#'
17490 else
17491 LIBITM_BUILD_VERSIONED_SHLIB_GNU_TRUE='#'
17492 LIBITM_BUILD_VERSIONED_SHLIB_GNU_FALSE=
17495 if test $enable_symvers = sun; then
17496 LIBITM_BUILD_VERSIONED_SHLIB_SUN_TRUE=
17497 LIBITM_BUILD_VERSIONED_SHLIB_SUN_FALSE='#'
17498 else
17499 LIBITM_BUILD_VERSIONED_SHLIB_SUN_TRUE='#'
17500 LIBITM_BUILD_VERSIONED_SHLIB_SUN_FALSE=
17503 { $as_echo "$as_me:${as_lineno-$LINENO}: versioning on shared library symbols is $enable_symvers" >&5
17504 $as_echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;}
17506 if test $enable_symvers = gnu; then
17508 $as_echo "#define LIBITM_GNU_SYMBOL_VERSIONING 1" >>confdefs.h
17512 # See if we can emit unwind info in the sjlj stub.
17513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .cfi pseudo-op support" >&5
17514 $as_echo_n "checking assembler .cfi pseudo-op support... " >&6; }
17515 if ${gcc_cv_as_cfi_pseudo_op+:} false; then :
17516 $as_echo_n "(cached) " >&6
17517 else
17519 gcc_cv_as_cfi_pseudo_op=unknown
17520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17521 /* end confdefs.h. */
17522 asm (".cfi_startproc\n\t.cfi_endproc");
17524 main ()
17528 return 0;
17530 _ACEOF
17531 if ac_fn_c_try_compile "$LINENO"; then :
17532 gcc_cv_as_cfi_pseudo_op=yes
17533 else
17534 gcc_cv_as_cfi_pseudo_op=no
17536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_pseudo_op" >&5
17540 $as_echo "$gcc_cv_as_cfi_pseudo_op" >&6; }
17541 if test "x$gcc_cv_as_cfi_pseudo_op" = xyes; then
17543 $as_echo "#define HAVE_AS_CFI_PSEUDO_OP 1" >>confdefs.h
17548 # Determine the proper ABI type for size_t.
17550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how size_t is mangled" >&5
17551 $as_echo_n "checking how size_t is mangled... " >&6; }
17552 if ${libitm_cv_size_t_mangling+:} false; then :
17553 $as_echo_n "(cached) " >&6
17554 else
17556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17557 /* end confdefs.h. */
17560 main ()
17562 extern __SIZE_TYPE__ x; extern unsigned long x;
17564 return 0;
17566 _ACEOF
17567 if ac_fn_c_try_compile "$LINENO"; then :
17568 libitm_cv_size_t_mangling=m
17569 else
17571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17572 /* end confdefs.h. */
17575 main ()
17577 extern __SIZE_TYPE__ x; extern unsigned int x;
17579 return 0;
17581 _ACEOF
17582 if ac_fn_c_try_compile "$LINENO"; then :
17583 libitm_cv_size_t_mangling=j
17584 else
17586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17587 /* end confdefs.h. */
17590 main ()
17592 extern __SIZE_TYPE__ x; extern unsigned long long x;
17594 return 0;
17596 _ACEOF
17597 if ac_fn_c_try_compile "$LINENO"; then :
17598 libitm_cv_size_t_mangling=y
17599 else
17601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17602 /* end confdefs.h. */
17605 main ()
17607 extern __SIZE_TYPE__ x; extern unsigned short x;
17609 return 0;
17611 _ACEOF
17612 if ac_fn_c_try_compile "$LINENO"; then :
17613 libitm_cv_size_t_mangling=t
17614 else
17615 libitm_cv_size_t_mangling=x
17617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_size_t_mangling" >&5
17630 $as_echo "$libitm_cv_size_t_mangling" >&6; }
17631 if test $libitm_cv_size_t_mangling = x; then
17632 as_fn_error $? "Unknown underlying type for size_t" "$LINENO" 5
17635 cat >>confdefs.h <<_ACEOF
17636 #define MANGLE_SIZE_T $libitm_cv_size_t_mangling
17637 _ACEOF
17641 # Get target configury.
17642 . ${srcdir}/configure.tgt
17643 if test -n "$UNSUPPORTED"; then
17644 as_fn_error $? "Configuration ${target} is unsupported." "$LINENO" 5
17647 CFLAGS="$save_CFLAGS $XCFLAGS"
17649 # Check for __sync_val_compare_and_swap, but only after the target has
17650 # had a chance to set XCFLAGS.
17652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __sync_*_compare_and_swap" >&5
17653 $as_echo_n "checking whether the target supports __sync_*_compare_and_swap... " >&6; }
17654 if ${libitm_cv_have_sync_builtins+:} false; then :
17655 $as_echo_n "(cached) " >&6
17656 else
17658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17659 /* end confdefs.h. */
17662 main ()
17664 int foo, bar; bar = __sync_val_compare_and_swap(&foo, 0, 1);
17666 return 0;
17668 _ACEOF
17669 if ac_fn_c_try_link "$LINENO"; then :
17670 libitm_cv_have_sync_builtins=yes
17671 else
17672 libitm_cv_have_sync_builtins=no
17674 rm -f core conftest.err conftest.$ac_objext \
17675 conftest$ac_exeext conftest.$ac_ext
17677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_have_sync_builtins" >&5
17678 $as_echo "$libitm_cv_have_sync_builtins" >&6; }
17679 if test $libitm_cv_have_sync_builtins = yes; then
17681 $as_echo "#define HAVE_SYNC_BUILTINS 1" >>confdefs.h
17685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports 64-bit __sync_*_compare_and_swap" >&5
17686 $as_echo_n "checking whether the target supports 64-bit __sync_*_compare_and_swap... " >&6; }
17687 if ${libitm_cv_have_64bit_sync_builtins+:} false; then :
17688 $as_echo_n "(cached) " >&6
17689 else
17691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17692 /* end confdefs.h. */
17693 #include <stdint.h>
17695 main ()
17697 uint64_t foo, bar;
17698 bar = __sync_val_compare_and_swap(&foo, 0, 1);
17700 return 0;
17702 _ACEOF
17703 if ac_fn_c_try_link "$LINENO"; then :
17704 libitm_cv_have_64bit_sync_builtins=yes
17705 else
17706 libitm_cv_have_64bit_sync_builtins=no
17708 rm -f core conftest.err conftest.$ac_objext \
17709 conftest$ac_exeext conftest.$ac_ext
17711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_have_64bit_sync_builtins" >&5
17712 $as_echo "$libitm_cv_have_64bit_sync_builtins" >&6; }
17713 if test $libitm_cv_have_64bit_sync_builtins = yes; then
17715 $as_echo "#define HAVE_64BIT_SYNC_BUILTINS 1" >>confdefs.h
17719 case "${target_cpu}" in
17720 i[34567]86 | x86_64)
17721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the assembler supports AVX" >&5
17722 $as_echo_n "checking if the assembler supports AVX... " >&6; }
17723 if ${libitm_cv_as_avx+:} false; then :
17724 $as_echo_n "(cached) " >&6
17725 else
17727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17728 /* end confdefs.h. */
17731 main ()
17733 asm("vzeroupper");
17735 return 0;
17737 _ACEOF
17738 if ac_fn_c_try_compile "$LINENO"; then :
17739 libitm_cv_as_avx=yes
17740 else
17741 libitm_cv_as_avx=no
17743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_as_avx" >&5
17747 $as_echo "$libitm_cv_as_avx" >&6; }
17748 if test x$libitm_cv_as_avx = xyes; then
17750 $as_echo "#define HAVE_AS_AVX 1" >>confdefs.h
17754 esac
17756 case "${target_cpu}" in
17757 i[34567]86 | x86_64)
17758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the assembler supports RTM" >&5
17759 $as_echo_n "checking if the assembler supports RTM... " >&6; }
17760 if ${libitm_cv_as_rtm+:} false; then :
17761 $as_echo_n "(cached) " >&6
17762 else
17764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17765 /* end confdefs.h. */
17768 main ()
17770 asm("1: xbegin 1b; xend");
17772 return 0;
17774 _ACEOF
17775 if ac_fn_c_try_compile "$LINENO"; then :
17776 libitm_cv_as_rtm=yes
17777 else
17778 libitm_cv_as_rtm=no
17780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_as_rtm" >&5
17784 $as_echo "$libitm_cv_as_rtm" >&6; }
17785 if test x$libitm_cv_as_rtm = xyes; then
17787 $as_echo "#define HAVE_AS_RTM 1" >>confdefs.h
17791 esac
17793 case "${target_cpu}" in
17794 powerpc*)
17795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the assembler supports HTM" >&5
17796 $as_echo_n "checking if the assembler supports HTM... " >&6; }
17797 if ${libitm_cv_as_htm+:} false; then :
17798 $as_echo_n "(cached) " >&6
17799 else
17801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17802 /* end confdefs.h. */
17805 main ()
17807 asm("tbegin. 0; tend. 0");
17809 return 0;
17811 _ACEOF
17812 if ac_fn_c_try_compile "$LINENO"; then :
17813 libitm_cv_as_htm=yes
17814 else
17815 libitm_cv_as_htm=no
17817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_as_htm" >&5
17821 $as_echo "$libitm_cv_as_htm" >&6; }
17822 if test x$libitm_cv_as_htm = xyes; then
17824 $as_echo "#define HAVE_AS_HTM 1" >>confdefs.h
17828 s390*)
17829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the assembler supports HTM" >&5
17830 $as_echo_n "checking if the assembler supports HTM... " >&6; }
17831 if ${libitm_cv_as_htm+:} false; then :
17832 $as_echo_n "(cached) " >&6
17833 else
17835 save_CFLAGS="$CFLAGS"
17836 CFLAGS="$CFLAGS -march=zEC12"
17837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17838 /* end confdefs.h. */
17841 main ()
17843 asm("tbegin 0,0; tend");
17845 return 0;
17847 _ACEOF
17848 if ac_fn_c_try_compile "$LINENO"; then :
17849 libitm_cv_as_htm=yes
17850 else
17851 libitm_cv_as_htm=no
17853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17854 CFLAGS="$save_CFLAGS"
17856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_as_htm" >&5
17857 $as_echo "$libitm_cv_as_htm" >&6; }
17858 if test x$libitm_cv_as_htm = xyes; then
17860 $as_echo "#define HAVE_AS_HTM 1" >>confdefs.h
17864 esac
17867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether weak refs work like ELF" >&5
17868 $as_echo_n "checking whether weak refs work like ELF... " >&6; }
17869 if ${ac_cv_have_elf_style_weakref+:} false; then :
17870 $as_echo_n "(cached) " >&6
17871 else
17873 weakref_m4_saved_CFLAGS="$CFLAGS"
17874 case "${host}" in
17875 *-apple-darwin*) CFLAGS="$CFLAGS -Wl,-undefined,dynamic_lookup" ;;
17876 *) ;;
17877 esac
17878 if test "$cross_compiling" = yes; then :
17880 case "${host}" in
17881 *-apple-darwin[89]*) ac_cv_have_elf_style_weakref=no ;;
17882 *) ac_cv_have_elf_style_weakref=yes;;
17883 esac
17884 else
17885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17886 /* end confdefs.h. */
17888 extern void fNotToBeFound(void) __attribute__((weak));
17889 int main ()
17891 if (fNotToBeFound)
17892 return 1;
17893 else
17894 return 0;
17897 _ACEOF
17898 if ac_fn_c_try_run "$LINENO"; then :
17899 ac_cv_have_elf_style_weakref=yes
17900 else
17901 ac_cv_have_elf_style_weakref=no
17903 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17904 conftest.$ac_objext conftest.beam conftest.$ac_ext
17906 CFLAGS="$weakref_m4_saved_CFLAGS"
17908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_elf_style_weakref" >&5
17909 $as_echo "$ac_cv_have_elf_style_weakref" >&6; }
17910 if test x"$ac_cv_have_elf_style_weakref" = xyes; then
17912 $as_echo "#define HAVE_ELF_STYLE_WEAKREF 1" >>confdefs.h
17916 # Cleanup and exit.
17917 CFLAGS="$save_CFLAGS"
17918 cat >confcache <<\_ACEOF
17919 # This file is a shell script that caches the results of configure
17920 # tests run on this system so they can be shared between configure
17921 # scripts and configure runs, see configure's option --config-cache.
17922 # It is not useful on other systems. If it contains results you don't
17923 # want to keep, you may remove or edit it.
17925 # config.status only pays attention to the cache file if you give it
17926 # the --recheck option to rerun configure.
17928 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17929 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17930 # following values.
17932 _ACEOF
17934 # The following way of writing the cache mishandles newlines in values,
17935 # but we know of no workaround that is simple, portable, and efficient.
17936 # So, we kill variables containing newlines.
17937 # Ultrix sh set writes to stderr and can't be redirected directly,
17938 # and sets the high bit in the cache file unless we assign to the vars.
17940 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17941 eval ac_val=\$$ac_var
17942 case $ac_val in #(
17943 *${as_nl}*)
17944 case $ac_var in #(
17945 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17946 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17947 esac
17948 case $ac_var in #(
17949 _ | IFS | as_nl) ;; #(
17950 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17951 *) { eval $ac_var=; unset $ac_var;} ;;
17952 esac ;;
17953 esac
17954 done
17956 (set) 2>&1 |
17957 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17958 *${as_nl}ac_space=\ *)
17959 # `set' does not quote correctly, so add quotes: double-quote
17960 # substitution turns \\\\ into \\, and sed turns \\ into \.
17961 sed -n \
17962 "s/'/'\\\\''/g;
17963 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17964 ;; #(
17966 # `set' quotes correctly as required by POSIX, so do not add quotes.
17967 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17969 esac |
17970 sort
17972 sed '
17973 /^ac_cv_env_/b end
17974 t clear
17975 :clear
17976 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17977 t end
17978 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17979 :end' >>confcache
17980 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17981 if test -w "$cache_file"; then
17982 if test "x$cache_file" != "x/dev/null"; then
17983 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17984 $as_echo "$as_me: updating cache $cache_file" >&6;}
17985 if test ! -f "$cache_file" || test -h "$cache_file"; then
17986 cat confcache >"$cache_file"
17987 else
17988 case $cache_file in #(
17989 */* | ?:*)
17990 mv -f confcache "$cache_file"$$ &&
17991 mv -f "$cache_file"$$ "$cache_file" ;; #(
17993 mv -f confcache "$cache_file" ;;
17994 esac
17997 else
17998 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17999 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18002 rm -f confcache
18004 # Check whether --enable-werror was given.
18005 if test "${enable_werror+set}" = set; then :
18006 enableval=$enable_werror;
18009 # Add -Wall -Werror if we are using GCC.
18010 if test "x$GCC" = "xyes"; then :
18011 XCFLAGS="$XCFLAGS -Wall"
18013 if test "x$enable_werror" != "xno" && test "x$GCC" = "xyes"; then :
18014 XCFLAGS="$XCFLAGS -Werror"
18017 XCFLAGS="$XCFLAGS $XPCFLAGS"
18019 # Add CET specific flags if CET is enabled
18020 # Check whether --enable-cet was given.
18021 if test "${enable_cet+set}" = set; then :
18022 enableval=$enable_cet;
18023 case "$enableval" in
18024 yes|no|auto) ;;
18025 *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
18026 esac
18028 else
18029 enable_cet=auto
18033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
18034 $as_echo_n "checking for CET support... " >&6; }
18036 # NB: Avoid nested save_CFLAGS and save_LDFLAGS.
18037 case "$host" in
18038 i[34567]86-*-linux* | x86_64-*-linux*)
18039 case "$enable_cet" in
18040 auto)
18041 # Check if target supports multi-byte NOPs
18042 # and if compiler and assembler support CET insn.
18043 cet_save_CFLAGS="$CFLAGS"
18044 CFLAGS="$CFLAGS -fcf-protection"
18045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18046 /* end confdefs.h. */
18049 main ()
18052 #if !defined(__SSE2__)
18053 #error target does not support multi-byte NOPs
18054 #else
18055 asm ("setssbsy");
18056 #endif
18059 return 0;
18061 _ACEOF
18062 if ac_fn_c_try_compile "$LINENO"; then :
18063 enable_cet=yes
18064 else
18065 enable_cet=no
18067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18068 CFLAGS="$cet_save_CFLAGS"
18070 yes)
18071 # Check if assembler supports CET.
18072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18073 /* end confdefs.h. */
18076 main ()
18078 asm ("setssbsy");
18080 return 0;
18082 _ACEOF
18083 if ac_fn_c_try_compile "$LINENO"; then :
18085 else
18086 as_fn_error $? "assembler with CET support is required for --enable-cet" "$LINENO" 5
18088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18090 esac
18093 enable_cet=no
18095 esac
18096 if test x$enable_cet = xyes; then
18097 CET_FLAGS="-fcf-protection -mshstk"
18098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18099 $as_echo "yes" >&6; }
18100 else
18101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18102 $as_echo "no" >&6; }
18105 XCFLAGS="$XCFLAGS $CET_FLAGS"
18111 if test ${multilib} = yes; then
18112 multilib_arg="--enable-multilib"
18113 else
18114 multilib_arg=
18117 # Set up the set of libraries that we need to link against for libitm.
18118 # Note that the GTM_SELF_SPECS in gcc.c will force -pthread for -fgnu-tm,
18119 # which will force linkage against -lpthread (or equivalent for the system).
18120 # That's not 100% ideal, but about the best we can do easily.
18121 if test $enable_shared = yes; then
18122 link_itm="-litm %{static: $LIBS}"
18123 else
18124 link_itm="-litm $LIBS"
18128 if test "$ARCH" = arm; then
18129 ARCH_ARM_TRUE=
18130 ARCH_ARM_FALSE='#'
18131 else
18132 ARCH_ARM_TRUE='#'
18133 ARCH_ARM_FALSE=
18136 if test "$ARCH" = x86; then
18137 ARCH_X86_TRUE=
18138 ARCH_X86_FALSE='#'
18139 else
18140 ARCH_X86_TRUE='#'
18141 ARCH_X86_FALSE=
18144 if test "$libitm_cv_as_avx" = yes; then
18145 ARCH_X86_AVX_TRUE=
18146 ARCH_X86_AVX_FALSE='#'
18147 else
18148 ARCH_X86_AVX_TRUE='#'
18149 ARCH_X86_AVX_FALSE=
18152 if test $enable_linux_futex = yes; then
18153 ARCH_FUTEX_TRUE=
18154 ARCH_FUTEX_FALSE='#'
18155 else
18156 ARCH_FUTEX_TRUE='#'
18157 ARCH_FUTEX_FALSE=
18161 # Determine what GCC version number to use in filesystem paths.
18163 get_gcc_base_ver="cat"
18165 # Check whether --with-gcc-major-version-only was given.
18166 if test "${with_gcc_major_version_only+set}" = set; then :
18167 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
18168 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
18176 ac_config_files="$ac_config_files Makefile testsuite/Makefile libitm.spec"
18178 cat >confcache <<\_ACEOF
18179 # This file is a shell script that caches the results of configure
18180 # tests run on this system so they can be shared between configure
18181 # scripts and configure runs, see configure's option --config-cache.
18182 # It is not useful on other systems. If it contains results you don't
18183 # want to keep, you may remove or edit it.
18185 # config.status only pays attention to the cache file if you give it
18186 # the --recheck option to rerun configure.
18188 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18189 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18190 # following values.
18192 _ACEOF
18194 # The following way of writing the cache mishandles newlines in values,
18195 # but we know of no workaround that is simple, portable, and efficient.
18196 # So, we kill variables containing newlines.
18197 # Ultrix sh set writes to stderr and can't be redirected directly,
18198 # and sets the high bit in the cache file unless we assign to the vars.
18200 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18201 eval ac_val=\$$ac_var
18202 case $ac_val in #(
18203 *${as_nl}*)
18204 case $ac_var in #(
18205 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18206 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18207 esac
18208 case $ac_var in #(
18209 _ | IFS | as_nl) ;; #(
18210 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18211 *) { eval $ac_var=; unset $ac_var;} ;;
18212 esac ;;
18213 esac
18214 done
18216 (set) 2>&1 |
18217 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18218 *${as_nl}ac_space=\ *)
18219 # `set' does not quote correctly, so add quotes: double-quote
18220 # substitution turns \\\\ into \\, and sed turns \\ into \.
18221 sed -n \
18222 "s/'/'\\\\''/g;
18223 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18224 ;; #(
18226 # `set' quotes correctly as required by POSIX, so do not add quotes.
18227 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18229 esac |
18230 sort
18232 sed '
18233 /^ac_cv_env_/b end
18234 t clear
18235 :clear
18236 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18237 t end
18238 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18239 :end' >>confcache
18240 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18241 if test -w "$cache_file"; then
18242 if test "x$cache_file" != "x/dev/null"; then
18243 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18244 $as_echo "$as_me: updating cache $cache_file" >&6;}
18245 if test ! -f "$cache_file" || test -h "$cache_file"; then
18246 cat confcache >"$cache_file"
18247 else
18248 case $cache_file in #(
18249 */* | ?:*)
18250 mv -f confcache "$cache_file"$$ &&
18251 mv -f "$cache_file"$$ "$cache_file" ;; #(
18253 mv -f confcache "$cache_file" ;;
18254 esac
18257 else
18258 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18259 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18262 rm -f confcache
18264 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18265 # Let make expand exec_prefix.
18266 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18268 DEFS=-DHAVE_CONFIG_H
18270 ac_libobjs=
18271 ac_ltlibobjs=
18273 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18274 # 1. Remove the extension, and $U if already installed.
18275 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18276 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18277 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18278 # will be set to the directory where LIBOBJS objects are built.
18279 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18280 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18281 done
18282 LIBOBJS=$ac_libobjs
18284 LTLIBOBJS=$ac_ltlibobjs
18287 if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then
18288 as_fn_error $? "conditional \"GENINSRC\" was never defined.
18289 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
18292 $as_echo_n "checking that generated files are newer than configure... " >&6; }
18293 if test -n "$am_sleep_pid"; then
18294 # Hide warnings about reused PIDs.
18295 wait $am_sleep_pid 2>/dev/null
18297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
18298 $as_echo "done" >&6; }
18299 if test -n "$EXEEXT"; then
18300 am__EXEEXT_TRUE=
18301 am__EXEEXT_FALSE='#'
18302 else
18303 am__EXEEXT_TRUE='#'
18304 am__EXEEXT_FALSE=
18307 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18308 as_fn_error $? "conditional \"AMDEP\" was never defined.
18309 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18311 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18312 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18313 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18315 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
18316 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
18317 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18319 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
18320 as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
18321 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18323 if test -z "${BUILD_INFO_TRUE}" && test -z "${BUILD_INFO_FALSE}"; then
18324 as_fn_error $? "conditional \"BUILD_INFO\" was never defined.
18325 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18327 if test -z "${ENABLE_DARWIN_AT_RPATH_TRUE}" && test -z "${ENABLE_DARWIN_AT_RPATH_FALSE}"; then
18328 as_fn_error $? "conditional \"ENABLE_DARWIN_AT_RPATH\" was never defined.
18329 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18331 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
18332 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
18333 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18336 if test -z "${HAVE_HWCAP_TRUE}" && test -z "${HAVE_HWCAP_FALSE}"; then
18337 as_fn_error $? "conditional \"HAVE_HWCAP\" was never defined.
18338 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18340 if test -z "${LIBITM_BUILD_VERSIONED_SHLIB_TRUE}" && test -z "${LIBITM_BUILD_VERSIONED_SHLIB_FALSE}"; then
18341 as_fn_error $? "conditional \"LIBITM_BUILD_VERSIONED_SHLIB\" was never defined.
18342 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18344 if test -z "${LIBITM_BUILD_VERSIONED_SHLIB_GNU_TRUE}" && test -z "${LIBITM_BUILD_VERSIONED_SHLIB_GNU_FALSE}"; then
18345 as_fn_error $? "conditional \"LIBITM_BUILD_VERSIONED_SHLIB_GNU\" was never defined.
18346 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18348 if test -z "${LIBITM_BUILD_VERSIONED_SHLIB_SUN_TRUE}" && test -z "${LIBITM_BUILD_VERSIONED_SHLIB_SUN_FALSE}"; then
18349 as_fn_error $? "conditional \"LIBITM_BUILD_VERSIONED_SHLIB_SUN\" was never defined.
18350 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18352 if test -z "${ARCH_ARM_TRUE}" && test -z "${ARCH_ARM_FALSE}"; then
18353 as_fn_error $? "conditional \"ARCH_ARM\" was never defined.
18354 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18356 if test -z "${ARCH_X86_TRUE}" && test -z "${ARCH_X86_FALSE}"; then
18357 as_fn_error $? "conditional \"ARCH_X86\" was never defined.
18358 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18360 if test -z "${ARCH_X86_AVX_TRUE}" && test -z "${ARCH_X86_AVX_FALSE}"; then
18361 as_fn_error $? "conditional \"ARCH_X86_AVX\" was never defined.
18362 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18364 if test -z "${ARCH_FUTEX_TRUE}" && test -z "${ARCH_FUTEX_FALSE}"; then
18365 as_fn_error $? "conditional \"ARCH_FUTEX\" was never defined.
18366 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18369 : "${CONFIG_STATUS=./config.status}"
18370 ac_write_fail=0
18371 ac_clean_files_save=$ac_clean_files
18372 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18373 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18374 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18375 as_write_fail=0
18376 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18377 #! $SHELL
18378 # Generated by $as_me.
18379 # Run this file to recreate the current configuration.
18380 # Compiler output produced by configure, useful for debugging
18381 # configure, is in config.log if it exists.
18383 debug=false
18384 ac_cs_recheck=false
18385 ac_cs_silent=false
18387 SHELL=\${CONFIG_SHELL-$SHELL}
18388 export SHELL
18389 _ASEOF
18390 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18391 ## -------------------- ##
18392 ## M4sh Initialization. ##
18393 ## -------------------- ##
18395 # Be more Bourne compatible
18396 DUALCASE=1; export DUALCASE # for MKS sh
18397 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18398 emulate sh
18399 NULLCMD=:
18400 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18401 # is contrary to our usage. Disable this feature.
18402 alias -g '${1+"$@"}'='"$@"'
18403 setopt NO_GLOB_SUBST
18404 else
18405 case `(set -o) 2>/dev/null` in #(
18406 *posix*) :
18407 set -o posix ;; #(
18408 *) :
18410 esac
18414 as_nl='
18416 export as_nl
18417 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18418 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18419 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18420 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18421 # Prefer a ksh shell builtin over an external printf program on Solaris,
18422 # but without wasting forks for bash or zsh.
18423 if test -z "$BASH_VERSION$ZSH_VERSION" \
18424 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18425 as_echo='print -r --'
18426 as_echo_n='print -rn --'
18427 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18428 as_echo='printf %s\n'
18429 as_echo_n='printf %s'
18430 else
18431 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18432 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18433 as_echo_n='/usr/ucb/echo -n'
18434 else
18435 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18436 as_echo_n_body='eval
18437 arg=$1;
18438 case $arg in #(
18439 *"$as_nl"*)
18440 expr "X$arg" : "X\\(.*\\)$as_nl";
18441 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18442 esac;
18443 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18445 export as_echo_n_body
18446 as_echo_n='sh -c $as_echo_n_body as_echo'
18448 export as_echo_body
18449 as_echo='sh -c $as_echo_body as_echo'
18452 # The user is always right.
18453 if test "${PATH_SEPARATOR+set}" != set; then
18454 PATH_SEPARATOR=:
18455 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18456 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18457 PATH_SEPARATOR=';'
18462 # IFS
18463 # We need space, tab and new line, in precisely that order. Quoting is
18464 # there to prevent editors from complaining about space-tab.
18465 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18466 # splitting by setting IFS to empty value.)
18467 IFS=" "" $as_nl"
18469 # Find who we are. Look in the path if we contain no directory separator.
18470 as_myself=
18471 case $0 in #((
18472 *[\\/]* ) as_myself=$0 ;;
18473 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18474 for as_dir in $PATH
18476 IFS=$as_save_IFS
18477 test -z "$as_dir" && as_dir=.
18478 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18479 done
18480 IFS=$as_save_IFS
18483 esac
18484 # We did not find ourselves, most probably we were run as `sh COMMAND'
18485 # in which case we are not to be found in the path.
18486 if test "x$as_myself" = x; then
18487 as_myself=$0
18489 if test ! -f "$as_myself"; then
18490 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18491 exit 1
18494 # Unset variables that we do not need and which cause bugs (e.g. in
18495 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18496 # suppresses any "Segmentation fault" message there. '((' could
18497 # trigger a bug in pdksh 5.2.14.
18498 for as_var in BASH_ENV ENV MAIL MAILPATH
18499 do eval test x\${$as_var+set} = xset \
18500 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18501 done
18502 PS1='$ '
18503 PS2='> '
18504 PS4='+ '
18506 # NLS nuisances.
18507 LC_ALL=C
18508 export LC_ALL
18509 LANGUAGE=C
18510 export LANGUAGE
18512 # CDPATH.
18513 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18516 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18517 # ----------------------------------------
18518 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18519 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18520 # script with STATUS, using 1 if that was 0.
18521 as_fn_error ()
18523 as_status=$1; test $as_status -eq 0 && as_status=1
18524 if test "$4"; then
18525 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18526 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18528 $as_echo "$as_me: error: $2" >&2
18529 as_fn_exit $as_status
18530 } # as_fn_error
18533 # as_fn_set_status STATUS
18534 # -----------------------
18535 # Set $? to STATUS, without forking.
18536 as_fn_set_status ()
18538 return $1
18539 } # as_fn_set_status
18541 # as_fn_exit STATUS
18542 # -----------------
18543 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18544 as_fn_exit ()
18546 set +e
18547 as_fn_set_status $1
18548 exit $1
18549 } # as_fn_exit
18551 # as_fn_unset VAR
18552 # ---------------
18553 # Portably unset VAR.
18554 as_fn_unset ()
18556 { eval $1=; unset $1;}
18558 as_unset=as_fn_unset
18559 # as_fn_append VAR VALUE
18560 # ----------------------
18561 # Append the text in VALUE to the end of the definition contained in VAR. Take
18562 # advantage of any shell optimizations that allow amortized linear growth over
18563 # repeated appends, instead of the typical quadratic growth present in naive
18564 # implementations.
18565 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18566 eval 'as_fn_append ()
18568 eval $1+=\$2
18570 else
18571 as_fn_append ()
18573 eval $1=\$$1\$2
18575 fi # as_fn_append
18577 # as_fn_arith ARG...
18578 # ------------------
18579 # Perform arithmetic evaluation on the ARGs, and store the result in the
18580 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18581 # must be portable across $(()) and expr.
18582 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18583 eval 'as_fn_arith ()
18585 as_val=$(( $* ))
18587 else
18588 as_fn_arith ()
18590 as_val=`expr "$@" || test $? -eq 1`
18592 fi # as_fn_arith
18595 if expr a : '\(a\)' >/dev/null 2>&1 &&
18596 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18597 as_expr=expr
18598 else
18599 as_expr=false
18602 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18603 as_basename=basename
18604 else
18605 as_basename=false
18608 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18609 as_dirname=dirname
18610 else
18611 as_dirname=false
18614 as_me=`$as_basename -- "$0" ||
18615 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18616 X"$0" : 'X\(//\)$' \| \
18617 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18618 $as_echo X/"$0" |
18619 sed '/^.*\/\([^/][^/]*\)\/*$/{
18620 s//\1/
18623 /^X\/\(\/\/\)$/{
18624 s//\1/
18627 /^X\/\(\/\).*/{
18628 s//\1/
18631 s/.*/./; q'`
18633 # Avoid depending upon Character Ranges.
18634 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18635 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18636 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18637 as_cr_digits='0123456789'
18638 as_cr_alnum=$as_cr_Letters$as_cr_digits
18640 ECHO_C= ECHO_N= ECHO_T=
18641 case `echo -n x` in #(((((
18642 -n*)
18643 case `echo 'xy\c'` in
18644 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18645 xy) ECHO_C='\c';;
18646 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
18647 ECHO_T=' ';;
18648 esac;;
18650 ECHO_N='-n';;
18651 esac
18653 rm -f conf$$ conf$$.exe conf$$.file
18654 if test -d conf$$.dir; then
18655 rm -f conf$$.dir/conf$$.file
18656 else
18657 rm -f conf$$.dir
18658 mkdir conf$$.dir 2>/dev/null
18660 if (echo >conf$$.file) 2>/dev/null; then
18661 if ln -s conf$$.file conf$$ 2>/dev/null; then
18662 as_ln_s='ln -s'
18663 # ... but there are two gotchas:
18664 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18665 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18666 # In both cases, we have to default to `cp -pR'.
18667 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18668 as_ln_s='cp -pR'
18669 elif ln conf$$.file conf$$ 2>/dev/null; then
18670 as_ln_s=ln
18671 else
18672 as_ln_s='cp -pR'
18674 else
18675 as_ln_s='cp -pR'
18677 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18678 rmdir conf$$.dir 2>/dev/null
18681 # as_fn_mkdir_p
18682 # -------------
18683 # Create "$as_dir" as a directory, including parents if necessary.
18684 as_fn_mkdir_p ()
18687 case $as_dir in #(
18688 -*) as_dir=./$as_dir;;
18689 esac
18690 test -d "$as_dir" || eval $as_mkdir_p || {
18691 as_dirs=
18692 while :; do
18693 case $as_dir in #(
18694 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18695 *) as_qdir=$as_dir;;
18696 esac
18697 as_dirs="'$as_qdir' $as_dirs"
18698 as_dir=`$as_dirname -- "$as_dir" ||
18699 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18700 X"$as_dir" : 'X\(//\)[^/]' \| \
18701 X"$as_dir" : 'X\(//\)$' \| \
18702 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18703 $as_echo X"$as_dir" |
18704 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18705 s//\1/
18708 /^X\(\/\/\)[^/].*/{
18709 s//\1/
18712 /^X\(\/\/\)$/{
18713 s//\1/
18716 /^X\(\/\).*/{
18717 s//\1/
18720 s/.*/./; q'`
18721 test -d "$as_dir" && break
18722 done
18723 test -z "$as_dirs" || eval "mkdir $as_dirs"
18724 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18727 } # as_fn_mkdir_p
18728 if mkdir -p . 2>/dev/null; then
18729 as_mkdir_p='mkdir -p "$as_dir"'
18730 else
18731 test -d ./-p && rmdir ./-p
18732 as_mkdir_p=false
18736 # as_fn_executable_p FILE
18737 # -----------------------
18738 # Test if FILE is an executable regular file.
18739 as_fn_executable_p ()
18741 test -f "$1" && test -x "$1"
18742 } # as_fn_executable_p
18743 as_test_x='test -x'
18744 as_executable_p=as_fn_executable_p
18746 # Sed expression to map a string onto a valid CPP name.
18747 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18749 # Sed expression to map a string onto a valid variable name.
18750 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18753 exec 6>&1
18754 ## ----------------------------------- ##
18755 ## Main body of $CONFIG_STATUS script. ##
18756 ## ----------------------------------- ##
18757 _ASEOF
18758 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18760 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18761 # Save the log message, to keep $0 and so on meaningful, and to
18762 # report actual input values of CONFIG_FILES etc. instead of their
18763 # values after options handling.
18764 ac_log="
18765 This file was extended by GNU TM Runtime Library $as_me 1.0, which was
18766 generated by GNU Autoconf 2.69. Invocation command line was
18768 CONFIG_FILES = $CONFIG_FILES
18769 CONFIG_HEADERS = $CONFIG_HEADERS
18770 CONFIG_LINKS = $CONFIG_LINKS
18771 CONFIG_COMMANDS = $CONFIG_COMMANDS
18772 $ $0 $@
18774 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18777 _ACEOF
18779 case $ac_config_files in *"
18780 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18781 esac
18783 case $ac_config_headers in *"
18784 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18785 esac
18788 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18789 # Files that config.status was made for.
18790 config_files="$ac_config_files"
18791 config_headers="$ac_config_headers"
18792 config_commands="$ac_config_commands"
18794 _ACEOF
18796 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18797 ac_cs_usage="\
18798 \`$as_me' instantiates files and other configuration actions
18799 from templates according to the current configuration. Unless the files
18800 and actions are specified as TAGs, all are instantiated by default.
18802 Usage: $0 [OPTION]... [TAG]...
18804 -h, --help print this help, then exit
18805 -V, --version print version number and configuration settings, then exit
18806 --config print configuration, then exit
18807 -q, --quiet, --silent
18808 do not print progress messages
18809 -d, --debug don't remove temporary files
18810 --recheck update $as_me by reconfiguring in the same conditions
18811 --file=FILE[:TEMPLATE]
18812 instantiate the configuration file FILE
18813 --header=FILE[:TEMPLATE]
18814 instantiate the configuration header FILE
18816 Configuration files:
18817 $config_files
18819 Configuration headers:
18820 $config_headers
18822 Configuration commands:
18823 $config_commands
18825 Report bugs to the package provider.
18826 GNU TM Runtime Library home page: <http://www.gnu.org/software/libitm/>.
18827 General help using GNU software: <http://www.gnu.org/gethelp/>."
18829 _ACEOF
18830 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18831 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18832 ac_cs_version="\\
18833 GNU TM Runtime Library config.status 1.0
18834 configured by $0, generated by GNU Autoconf 2.69,
18835 with options \\"\$ac_cs_config\\"
18837 Copyright (C) 2012 Free Software Foundation, Inc.
18838 This config.status script is free software; the Free Software Foundation
18839 gives unlimited permission to copy, distribute and modify it."
18841 ac_pwd='$ac_pwd'
18842 srcdir='$srcdir'
18843 INSTALL='$INSTALL'
18844 MKDIR_P='$MKDIR_P'
18845 AWK='$AWK'
18846 test -n "\$AWK" || AWK=awk
18847 _ACEOF
18849 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18850 # The default lists apply if the user does not specify any file.
18851 ac_need_defaults=:
18852 while test $# != 0
18854 case $1 in
18855 --*=?*)
18856 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18857 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18858 ac_shift=:
18860 --*=)
18861 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18862 ac_optarg=
18863 ac_shift=:
18866 ac_option=$1
18867 ac_optarg=$2
18868 ac_shift=shift
18870 esac
18872 case $ac_option in
18873 # Handling of the options.
18874 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18875 ac_cs_recheck=: ;;
18876 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18877 $as_echo "$ac_cs_version"; exit ;;
18878 --config | --confi | --conf | --con | --co | --c )
18879 $as_echo "$ac_cs_config"; exit ;;
18880 --debug | --debu | --deb | --de | --d | -d )
18881 debug=: ;;
18882 --file | --fil | --fi | --f )
18883 $ac_shift
18884 case $ac_optarg in
18885 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18886 '') as_fn_error $? "missing file argument" ;;
18887 esac
18888 as_fn_append CONFIG_FILES " '$ac_optarg'"
18889 ac_need_defaults=false;;
18890 --header | --heade | --head | --hea )
18891 $ac_shift
18892 case $ac_optarg in
18893 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18894 esac
18895 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18896 ac_need_defaults=false;;
18897 --he | --h)
18898 # Conflict between --help and --header
18899 as_fn_error $? "ambiguous option: \`$1'
18900 Try \`$0 --help' for more information.";;
18901 --help | --hel | -h )
18902 $as_echo "$ac_cs_usage"; exit ;;
18903 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18904 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18905 ac_cs_silent=: ;;
18907 # This is an error.
18908 -*) as_fn_error $? "unrecognized option: \`$1'
18909 Try \`$0 --help' for more information." ;;
18911 *) as_fn_append ac_config_targets " $1"
18912 ac_need_defaults=false ;;
18914 esac
18915 shift
18916 done
18918 ac_configure_extra_args=
18920 if $ac_cs_silent; then
18921 exec 6>/dev/null
18922 ac_configure_extra_args="$ac_configure_extra_args --silent"
18925 _ACEOF
18926 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18927 if \$ac_cs_recheck; then
18928 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18929 shift
18930 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18931 CONFIG_SHELL='$SHELL'
18932 export CONFIG_SHELL
18933 exec "\$@"
18936 _ACEOF
18937 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18938 exec 5>>config.log
18940 echo
18941 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18942 ## Running $as_me. ##
18943 _ASBOX
18944 $as_echo "$ac_log"
18945 } >&5
18947 _ACEOF
18948 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18950 # INIT-COMMANDS
18953 srcdir="$srcdir"
18954 host="$host"
18955 target="$target"
18956 with_multisubdir="$with_multisubdir"
18957 with_multisrctop="$with_multisrctop"
18958 with_target_subdir="$with_target_subdir"
18959 ac_configure_args="${multilib_arg} ${ac_configure_args}"
18960 multi_basedir="$multi_basedir"
18961 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
18962 CC="$CC"
18963 CXX="$CXX"
18964 GFORTRAN="$GFORTRAN"
18965 GDC="$GDC"
18966 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18969 # The HP-UX ksh and POSIX shell print the target directory to stdout
18970 # if CDPATH is set.
18971 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18973 sed_quote_subst='$sed_quote_subst'
18974 double_quote_subst='$double_quote_subst'
18975 delay_variable_subst='$delay_variable_subst'
18976 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18977 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18978 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18979 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18980 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18981 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18982 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18983 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18984 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18985 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18986 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18987 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18988 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18989 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18990 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18991 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18992 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18993 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18994 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18995 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18996 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18997 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18998 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18999 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19000 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19001 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19002 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19003 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19004 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19005 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19006 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
19007 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19008 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19009 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19010 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19011 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19012 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19013 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19014 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19015 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19016 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19017 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19018 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19019 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19020 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19021 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19022 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19023 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19024 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"`'
19025 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19026 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19027 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19028 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19029 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19030 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19031 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19032 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19033 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19034 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19035 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19036 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19037 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19038 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19039 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19040 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19041 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19042 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19043 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19044 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19045 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19046 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19047 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19048 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19049 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19050 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19051 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19052 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19053 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19054 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19055 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19056 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
19057 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19058 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19059 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19060 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19061 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19062 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19063 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19064 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19065 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
19066 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19067 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19068 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19069 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19070 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19071 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19072 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19073 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19074 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19075 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19076 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19077 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19078 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19079 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19080 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19081 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19082 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19083 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19084 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19085 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19086 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19087 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19088 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19089 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
19090 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19091 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19092 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19093 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19094 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19095 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19096 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
19097 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
19098 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
19099 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
19100 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
19101 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
19102 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
19103 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
19104 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19105 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19106 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
19107 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
19108 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
19109 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
19110 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
19111 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
19112 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
19113 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
19114 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
19115 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19116 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19117 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
19118 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19119 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19120 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19121 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19122 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19123 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19124 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
19125 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
19126 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
19127 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19128 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
19129 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
19130 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
19131 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
19132 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
19133 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
19134 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
19135 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
19136 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
19137 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
19138 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
19139 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19140 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
19141 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
19142 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19143 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
19144 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
19145 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
19146 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
19147 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
19148 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
19149 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
19150 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
19152 LTCC='$LTCC'
19153 LTCFLAGS='$LTCFLAGS'
19154 compiler='$compiler_DEFAULT'
19156 # A function that is used when there is no print builtin or printf.
19157 func_fallback_echo ()
19159 eval 'cat <<_LTECHO_EOF
19161 _LTECHO_EOF'
19164 # Quote evaled strings.
19165 for var in SHELL \
19166 ECHO \
19167 SED \
19168 GREP \
19169 EGREP \
19170 FGREP \
19171 LD \
19172 NM \
19173 LN_S \
19174 lt_SP2NL \
19175 lt_NL2SP \
19176 reload_flag \
19177 OBJDUMP \
19178 deplibs_check_method \
19179 file_magic_cmd \
19180 AR \
19181 AR_FLAGS \
19182 STRIP \
19183 RANLIB \
19184 CC \
19185 CFLAGS \
19186 compiler \
19187 lt_cv_sys_global_symbol_pipe \
19188 lt_cv_sys_global_symbol_to_cdecl \
19189 lt_cv_sys_global_symbol_to_c_name_address \
19190 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19191 lt_prog_compiler_no_builtin_flag \
19192 lt_prog_compiler_wl \
19193 lt_prog_compiler_pic \
19194 lt_prog_compiler_static \
19195 lt_cv_prog_compiler_c_o \
19196 need_locks \
19197 DSYMUTIL \
19198 NMEDIT \
19199 LIPO \
19200 OTOOL \
19201 OTOOL64 \
19202 shrext_cmds \
19203 export_dynamic_flag_spec \
19204 whole_archive_flag_spec \
19205 compiler_needs_object \
19206 with_gnu_ld \
19207 allow_undefined_flag \
19208 no_undefined_flag \
19209 hardcode_libdir_flag_spec \
19210 hardcode_libdir_flag_spec_ld \
19211 hardcode_libdir_separator \
19212 fix_srcfile_path \
19213 exclude_expsyms \
19214 include_expsyms \
19215 file_list_spec \
19216 variables_saved_for_relink \
19217 libname_spec \
19218 library_names_spec \
19219 soname_spec \
19220 install_override_mode \
19221 finish_eval \
19222 old_striplib \
19223 striplib \
19224 compiler_lib_search_dirs \
19225 predep_objects \
19226 postdep_objects \
19227 predeps \
19228 postdeps \
19229 compiler_lib_search_path \
19230 LD_CXX \
19231 reload_flag_CXX \
19232 compiler_CXX \
19233 lt_prog_compiler_no_builtin_flag_CXX \
19234 lt_prog_compiler_wl_CXX \
19235 lt_prog_compiler_pic_CXX \
19236 lt_prog_compiler_static_CXX \
19237 lt_cv_prog_compiler_c_o_CXX \
19238 export_dynamic_flag_spec_CXX \
19239 whole_archive_flag_spec_CXX \
19240 compiler_needs_object_CXX \
19241 with_gnu_ld_CXX \
19242 allow_undefined_flag_CXX \
19243 no_undefined_flag_CXX \
19244 hardcode_libdir_flag_spec_CXX \
19245 hardcode_libdir_flag_spec_ld_CXX \
19246 hardcode_libdir_separator_CXX \
19247 fix_srcfile_path_CXX \
19248 exclude_expsyms_CXX \
19249 include_expsyms_CXX \
19250 file_list_spec_CXX \
19251 compiler_lib_search_dirs_CXX \
19252 predep_objects_CXX \
19253 postdep_objects_CXX \
19254 predeps_CXX \
19255 postdeps_CXX \
19256 compiler_lib_search_path_CXX; do
19257 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19258 *[\\\\\\\`\\"\\\$]*)
19259 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
19262 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19264 esac
19265 done
19267 # Double-quote double-evaled strings.
19268 for var in reload_cmds \
19269 old_postinstall_cmds \
19270 old_postuninstall_cmds \
19271 old_archive_cmds \
19272 extract_expsyms_cmds \
19273 old_archive_from_new_cmds \
19274 old_archive_from_expsyms_cmds \
19275 archive_cmds \
19276 archive_expsym_cmds \
19277 module_cmds \
19278 module_expsym_cmds \
19279 export_symbols_cmds \
19280 prelink_cmds \
19281 postinstall_cmds \
19282 postuninstall_cmds \
19283 finish_cmds \
19284 sys_lib_search_path_spec \
19285 sys_lib_dlsearch_path_spec \
19286 reload_cmds_CXX \
19287 old_archive_cmds_CXX \
19288 old_archive_from_new_cmds_CXX \
19289 old_archive_from_expsyms_cmds_CXX \
19290 archive_cmds_CXX \
19291 archive_expsym_cmds_CXX \
19292 module_cmds_CXX \
19293 module_expsym_cmds_CXX \
19294 export_symbols_cmds_CXX \
19295 prelink_cmds_CXX; do
19296 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19297 *[\\\\\\\`\\"\\\$]*)
19298 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
19301 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19303 esac
19304 done
19306 ac_aux_dir='$ac_aux_dir'
19307 xsi_shell='$xsi_shell'
19308 lt_shell_append='$lt_shell_append'
19310 # See if we are running on zsh, and set the options which allow our
19311 # commands through without removal of \ escapes INIT.
19312 if test -n "\${ZSH_VERSION+set}" ; then
19313 setopt NO_GLOB_SUBST
19317 PACKAGE='$PACKAGE'
19318 VERSION='$VERSION'
19319 TIMESTAMP='$TIMESTAMP'
19320 RM='$RM'
19321 ofile='$ofile'
19328 GCC="$GCC"
19329 CC="$CC"
19330 acx_cv_header_stdint="$acx_cv_header_stdint"
19331 acx_cv_type_int8_t="$acx_cv_type_int8_t"
19332 acx_cv_type_int16_t="$acx_cv_type_int16_t"
19333 acx_cv_type_int32_t="$acx_cv_type_int32_t"
19334 acx_cv_type_int64_t="$acx_cv_type_int64_t"
19335 acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
19336 ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
19337 ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
19338 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
19339 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
19340 ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
19341 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
19342 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
19343 ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
19346 _ACEOF
19348 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19350 # Handling of arguments.
19351 for ac_config_target in $ac_config_targets
19353 case $ac_config_target in
19354 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19355 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
19356 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19357 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19358 "gstdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
19359 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19360 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
19361 "libitm.spec") CONFIG_FILES="$CONFIG_FILES libitm.spec" ;;
19363 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19364 esac
19365 done
19368 # If the user did not use the arguments to specify the items to instantiate,
19369 # then the envvar interface is used. Set only those that are not.
19370 # We use the long form for the default assignment because of an extremely
19371 # bizarre bug on SunOS 4.1.3.
19372 if $ac_need_defaults; then
19373 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19374 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19375 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19378 # Have a temporary directory for convenience. Make it in the build tree
19379 # simply because there is no reason against having it here, and in addition,
19380 # creating and moving files from /tmp can sometimes cause problems.
19381 # Hook for its removal unless debugging.
19382 # Note that there is a small window in which the directory will not be cleaned:
19383 # after its creation but before its name has been assigned to `$tmp'.
19384 $debug ||
19386 tmp= ac_tmp=
19387 trap 'exit_status=$?
19388 : "${ac_tmp:=$tmp}"
19389 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19391 trap 'as_fn_exit 1' 1 2 13 15
19393 # Create a (secure) tmp directory for tmp files.
19396 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19397 test -d "$tmp"
19398 } ||
19400 tmp=./conf$$-$RANDOM
19401 (umask 077 && mkdir "$tmp")
19402 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19403 ac_tmp=$tmp
19405 # Set up the scripts for CONFIG_FILES section.
19406 # No need to generate them if there are no CONFIG_FILES.
19407 # This happens for instance with `./config.status config.h'.
19408 if test -n "$CONFIG_FILES"; then
19411 ac_cr=`echo X | tr X '\015'`
19412 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19413 # But we know of no other shell where ac_cr would be empty at this
19414 # point, so we can use a bashism as a fallback.
19415 if test "x$ac_cr" = x; then
19416 eval ac_cr=\$\'\\r\'
19418 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19419 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19420 ac_cs_awk_cr='\\r'
19421 else
19422 ac_cs_awk_cr=$ac_cr
19425 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19426 _ACEOF
19430 echo "cat >conf$$subs.awk <<_ACEOF" &&
19431 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19432 echo "_ACEOF"
19433 } >conf$$subs.sh ||
19434 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19435 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19436 ac_delim='%!_!# '
19437 for ac_last_try in false false false false false :; do
19438 . ./conf$$subs.sh ||
19439 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19441 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19442 if test $ac_delim_n = $ac_delim_num; then
19443 break
19444 elif $ac_last_try; then
19445 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19446 else
19447 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19449 done
19450 rm -f conf$$subs.sh
19452 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19453 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19454 _ACEOF
19455 sed -n '
19457 s/^/S["/; s/!.*/"]=/
19460 s/^[^!]*!//
19461 :repl
19462 t repl
19463 s/'"$ac_delim"'$//
19464 t delim
19467 s/\(.\{148\}\)..*/\1/
19468 t more1
19469 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19472 b repl
19473 :more1
19474 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19477 s/.\{148\}//
19478 t nl
19479 :delim
19481 s/\(.\{148\}\)..*/\1/
19482 t more2
19483 s/["\\]/\\&/g; s/^/"/; s/$/"/
19486 :more2
19487 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19490 s/.\{148\}//
19491 t delim
19492 ' <conf$$subs.awk | sed '
19493 /^[^""]/{
19495 s/\n//
19497 ' >>$CONFIG_STATUS || ac_write_fail=1
19498 rm -f conf$$subs.awk
19499 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19500 _ACAWK
19501 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19502 for (key in S) S_is_set[key] = 1
19503 FS = "\a"
19507 line = $ 0
19508 nfields = split(line, field, "@")
19509 substed = 0
19510 len = length(field[1])
19511 for (i = 2; i < nfields; i++) {
19512 key = field[i]
19513 keylen = length(key)
19514 if (S_is_set[key]) {
19515 value = S[key]
19516 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19517 len += length(value) + length(field[++i])
19518 substed = 1
19519 } else
19520 len += 1 + keylen
19523 print line
19526 _ACAWK
19527 _ACEOF
19528 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19529 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19530 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19531 else
19533 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19534 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19535 _ACEOF
19537 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19538 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19539 # trailing colons and then remove the whole line if VPATH becomes empty
19540 # (actually we leave an empty line to preserve line numbers).
19541 if test "x$srcdir" = x.; then
19542 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19544 s///
19545 s/^/:/
19546 s/[ ]*$/:/
19547 s/:\$(srcdir):/:/g
19548 s/:\${srcdir}:/:/g
19549 s/:@srcdir@:/:/g
19550 s/^:*//
19551 s/:*$//
19553 s/\(=[ ]*\).*/\1/
19555 s/\n//
19556 s/^[^=]*=[ ]*$//
19560 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19561 fi # test -n "$CONFIG_FILES"
19563 # Set up the scripts for CONFIG_HEADERS section.
19564 # No need to generate them if there are no CONFIG_HEADERS.
19565 # This happens for instance with `./config.status Makefile'.
19566 if test -n "$CONFIG_HEADERS"; then
19567 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19568 BEGIN {
19569 _ACEOF
19571 # Transform confdefs.h into an awk script `defines.awk', embedded as
19572 # here-document in config.status, that substitutes the proper values into
19573 # config.h.in to produce config.h.
19575 # Create a delimiter string that does not exist in confdefs.h, to ease
19576 # handling of long lines.
19577 ac_delim='%!_!# '
19578 for ac_last_try in false false :; do
19579 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19580 if test -z "$ac_tt"; then
19581 break
19582 elif $ac_last_try; then
19583 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19584 else
19585 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19587 done
19589 # For the awk script, D is an array of macro values keyed by name,
19590 # likewise P contains macro parameters if any. Preserve backslash
19591 # newline sequences.
19593 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19594 sed -n '
19595 s/.\{148\}/&'"$ac_delim"'/g
19596 t rset
19597 :rset
19598 s/^[ ]*#[ ]*define[ ][ ]*/ /
19599 t def
19601 :def
19602 s/\\$//
19603 t bsnl
19604 s/["\\]/\\&/g
19605 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19606 D["\1"]=" \3"/p
19607 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
19609 :bsnl
19610 s/["\\]/\\&/g
19611 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19612 D["\1"]=" \3\\\\\\n"\\/p
19613 t cont
19614 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19615 t cont
19617 :cont
19619 s/.\{148\}/&'"$ac_delim"'/g
19620 t clear
19621 :clear
19622 s/\\$//
19623 t bsnlc
19624 s/["\\]/\\&/g; s/^/"/; s/$/"/p
19626 :bsnlc
19627 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19628 b cont
19629 ' <confdefs.h | sed '
19630 s/'"$ac_delim"'/"\\\
19631 "/g' >>$CONFIG_STATUS || ac_write_fail=1
19633 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19634 for (key in D) D_is_set[key] = 1
19635 FS = "\a"
19637 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19638 line = \$ 0
19639 split(line, arg, " ")
19640 if (arg[1] == "#") {
19641 defundef = arg[2]
19642 mac1 = arg[3]
19643 } else {
19644 defundef = substr(arg[1], 2)
19645 mac1 = arg[2]
19647 split(mac1, mac2, "(") #)
19648 macro = mac2[1]
19649 prefix = substr(line, 1, index(line, defundef) - 1)
19650 if (D_is_set[macro]) {
19651 # Preserve the white space surrounding the "#".
19652 print prefix "define", macro P[macro] D[macro]
19653 next
19654 } else {
19655 # Replace #undef with comments. This is necessary, for example,
19656 # in the case of _POSIX_SOURCE, which is predefined and required
19657 # on some systems where configure will not decide to define it.
19658 if (defundef == "undef") {
19659 print "/*", prefix defundef, macro, "*/"
19660 next
19664 { print }
19665 _ACAWK
19666 _ACEOF
19667 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19668 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19669 fi # test -n "$CONFIG_HEADERS"
19672 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
19673 shift
19674 for ac_tag
19676 case $ac_tag in
19677 :[FHLC]) ac_mode=$ac_tag; continue;;
19678 esac
19679 case $ac_mode$ac_tag in
19680 :[FHL]*:*);;
19681 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19682 :[FH]-) ac_tag=-:-;;
19683 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19684 esac
19685 ac_save_IFS=$IFS
19686 IFS=:
19687 set x $ac_tag
19688 IFS=$ac_save_IFS
19689 shift
19690 ac_file=$1
19691 shift
19693 case $ac_mode in
19694 :L) ac_source=$1;;
19695 :[FH])
19696 ac_file_inputs=
19697 for ac_f
19699 case $ac_f in
19700 -) ac_f="$ac_tmp/stdin";;
19701 *) # Look for the file first in the build tree, then in the source tree
19702 # (if the path is not absolute). The absolute path cannot be DOS-style,
19703 # because $ac_f cannot contain `:'.
19704 test -f "$ac_f" ||
19705 case $ac_f in
19706 [\\/$]*) false;;
19707 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19708 esac ||
19709 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19710 esac
19711 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19712 as_fn_append ac_file_inputs " '$ac_f'"
19713 done
19715 # Let's still pretend it is `configure' which instantiates (i.e., don't
19716 # use $as_me), people would be surprised to read:
19717 # /* config.h. Generated by config.status. */
19718 configure_input='Generated from '`
19719 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19720 `' by configure.'
19721 if test x"$ac_file" != x-; then
19722 configure_input="$ac_file. $configure_input"
19723 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19724 $as_echo "$as_me: creating $ac_file" >&6;}
19726 # Neutralize special characters interpreted by sed in replacement strings.
19727 case $configure_input in #(
19728 *\&* | *\|* | *\\* )
19729 ac_sed_conf_input=`$as_echo "$configure_input" |
19730 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19731 *) ac_sed_conf_input=$configure_input;;
19732 esac
19734 case $ac_tag in
19735 *:-:* | *:-) cat >"$ac_tmp/stdin" \
19736 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19737 esac
19739 esac
19741 ac_dir=`$as_dirname -- "$ac_file" ||
19742 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19743 X"$ac_file" : 'X\(//\)[^/]' \| \
19744 X"$ac_file" : 'X\(//\)$' \| \
19745 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19746 $as_echo X"$ac_file" |
19747 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19748 s//\1/
19751 /^X\(\/\/\)[^/].*/{
19752 s//\1/
19755 /^X\(\/\/\)$/{
19756 s//\1/
19759 /^X\(\/\).*/{
19760 s//\1/
19763 s/.*/./; q'`
19764 as_dir="$ac_dir"; as_fn_mkdir_p
19765 ac_builddir=.
19767 case "$ac_dir" in
19768 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19770 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19771 # A ".." for each directory in $ac_dir_suffix.
19772 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19773 case $ac_top_builddir_sub in
19774 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19775 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19776 esac ;;
19777 esac
19778 ac_abs_top_builddir=$ac_pwd
19779 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19780 # for backward compatibility:
19781 ac_top_builddir=$ac_top_build_prefix
19783 case $srcdir in
19784 .) # We are building in place.
19785 ac_srcdir=.
19786 ac_top_srcdir=$ac_top_builddir_sub
19787 ac_abs_top_srcdir=$ac_pwd ;;
19788 [\\/]* | ?:[\\/]* ) # Absolute name.
19789 ac_srcdir=$srcdir$ac_dir_suffix;
19790 ac_top_srcdir=$srcdir
19791 ac_abs_top_srcdir=$srcdir ;;
19792 *) # Relative name.
19793 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19794 ac_top_srcdir=$ac_top_build_prefix$srcdir
19795 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19796 esac
19797 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19800 case $ac_mode in
19803 # CONFIG_FILE
19806 case $INSTALL in
19807 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19808 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19809 esac
19810 ac_MKDIR_P=$MKDIR_P
19811 case $MKDIR_P in
19812 [\\/$]* | ?:[\\/]* ) ;;
19813 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19814 esac
19815 _ACEOF
19817 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19818 # If the template does not know about datarootdir, expand it.
19819 # FIXME: This hack should be removed a few years after 2.60.
19820 ac_datarootdir_hack=; ac_datarootdir_seen=
19821 ac_sed_dataroot='
19822 /datarootdir/ {
19826 /@datadir@/p
19827 /@docdir@/p
19828 /@infodir@/p
19829 /@localedir@/p
19830 /@mandir@/p'
19831 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19832 *datarootdir*) ac_datarootdir_seen=yes;;
19833 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19834 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19835 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19836 _ACEOF
19837 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19838 ac_datarootdir_hack='
19839 s&@datadir@&$datadir&g
19840 s&@docdir@&$docdir&g
19841 s&@infodir@&$infodir&g
19842 s&@localedir@&$localedir&g
19843 s&@mandir@&$mandir&g
19844 s&\\\${datarootdir}&$datarootdir&g' ;;
19845 esac
19846 _ACEOF
19848 # Neutralize VPATH when `$srcdir' = `.'.
19849 # Shell code in configure.ac might set extrasub.
19850 # FIXME: do we really want to maintain this feature?
19851 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19852 ac_sed_extra="$ac_vpsub
19853 $extrasub
19854 _ACEOF
19855 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19857 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19858 s|@configure_input@|$ac_sed_conf_input|;t t
19859 s&@top_builddir@&$ac_top_builddir_sub&;t t
19860 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19861 s&@srcdir@&$ac_srcdir&;t t
19862 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19863 s&@top_srcdir@&$ac_top_srcdir&;t t
19864 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19865 s&@builddir@&$ac_builddir&;t t
19866 s&@abs_builddir@&$ac_abs_builddir&;t t
19867 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19868 s&@INSTALL@&$ac_INSTALL&;t t
19869 s&@MKDIR_P@&$ac_MKDIR_P&;t t
19870 $ac_datarootdir_hack
19872 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
19873 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19875 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19876 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19877 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19878 "$ac_tmp/out"`; test -z "$ac_out"; } &&
19879 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19880 which seems to be undefined. Please make sure it is defined" >&5
19881 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19882 which seems to be undefined. Please make sure it is defined" >&2;}
19884 rm -f "$ac_tmp/stdin"
19885 case $ac_file in
19886 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19887 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19888 esac \
19889 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19893 # CONFIG_HEADER
19895 if test x"$ac_file" != x-; then
19897 $as_echo "/* $configure_input */" \
19898 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19899 } >"$ac_tmp/config.h" \
19900 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19901 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19902 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19903 $as_echo "$as_me: $ac_file is unchanged" >&6;}
19904 else
19905 rm -f "$ac_file"
19906 mv "$ac_tmp/config.h" "$ac_file" \
19907 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19909 else
19910 $as_echo "/* $configure_input */" \
19911 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19912 || as_fn_error $? "could not create -" "$LINENO" 5
19914 # Compute "$ac_file"'s index in $config_headers.
19915 _am_arg="$ac_file"
19916 _am_stamp_count=1
19917 for _am_header in $config_headers :; do
19918 case $_am_header in
19919 $_am_arg | $_am_arg:* )
19920 break ;;
19922 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19923 esac
19924 done
19925 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19926 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19927 X"$_am_arg" : 'X\(//\)[^/]' \| \
19928 X"$_am_arg" : 'X\(//\)$' \| \
19929 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19930 $as_echo X"$_am_arg" |
19931 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19932 s//\1/
19935 /^X\(\/\/\)[^/].*/{
19936 s//\1/
19939 /^X\(\/\/\)$/{
19940 s//\1/
19943 /^X\(\/\).*/{
19944 s//\1/
19947 s/.*/./; q'`/stamp-h$_am_stamp_count
19950 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19951 $as_echo "$as_me: executing $ac_file commands" >&6;}
19953 esac
19956 case $ac_file$ac_mode in
19957 "default-1":C)
19958 # Only add multilib support code if we just rebuilt the top-level
19959 # Makefile.
19960 case " $CONFIG_FILES " in
19961 *" Makefile "*)
19962 ac_file=Makefile . ${multi_basedir}/config-ml.in
19964 esac ;;
19965 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19966 # Older Autoconf quotes --file arguments for eval, but not when files
19967 # are listed without --file. Let's play safe and only enable the eval
19968 # if we detect the quoting.
19969 case $CONFIG_FILES in
19970 *\'*) eval set x "$CONFIG_FILES" ;;
19971 *) set x $CONFIG_FILES ;;
19972 esac
19973 shift
19974 for mf
19976 # Strip MF so we end up with the name of the file.
19977 mf=`echo "$mf" | sed -e 's/:.*$//'`
19978 # Check whether this is an Automake generated Makefile or not.
19979 # We used to match only the files named 'Makefile.in', but
19980 # some people rename them; so instead we look at the file content.
19981 # Grep'ing the first line is not enough: some people post-process
19982 # each Makefile.in and add a new line on top of each file to say so.
19983 # Grep'ing the whole file is not good either: AIX grep has a line
19984 # limit of 2048, but all sed's we know have understand at least 4000.
19985 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19986 dirpart=`$as_dirname -- "$mf" ||
19987 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19988 X"$mf" : 'X\(//\)[^/]' \| \
19989 X"$mf" : 'X\(//\)$' \| \
19990 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19991 $as_echo X"$mf" |
19992 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19993 s//\1/
19996 /^X\(\/\/\)[^/].*/{
19997 s//\1/
20000 /^X\(\/\/\)$/{
20001 s//\1/
20004 /^X\(\/\).*/{
20005 s//\1/
20008 s/.*/./; q'`
20009 else
20010 continue
20012 # Extract the definition of DEPDIR, am__include, and am__quote
20013 # from the Makefile without running 'make'.
20014 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20015 test -z "$DEPDIR" && continue
20016 am__include=`sed -n 's/^am__include = //p' < "$mf"`
20017 test -z "$am__include" && continue
20018 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20019 # Find all dependency output files, they are included files with
20020 # $(DEPDIR) in their names. We invoke sed twice because it is the
20021 # simplest approach to changing $(DEPDIR) to its actual value in the
20022 # expansion.
20023 for file in `sed -n "
20024 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20025 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
20026 # Make sure the directory exists.
20027 test -f "$dirpart/$file" && continue
20028 fdir=`$as_dirname -- "$file" ||
20029 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20030 X"$file" : 'X\(//\)[^/]' \| \
20031 X"$file" : 'X\(//\)$' \| \
20032 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20033 $as_echo X"$file" |
20034 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20035 s//\1/
20038 /^X\(\/\/\)[^/].*/{
20039 s//\1/
20042 /^X\(\/\/\)$/{
20043 s//\1/
20046 /^X\(\/\).*/{
20047 s//\1/
20050 s/.*/./; q'`
20051 as_dir=$dirpart/$fdir; as_fn_mkdir_p
20052 # echo "creating $dirpart/$file"
20053 echo '# dummy' > "$dirpart/$file"
20054 done
20055 done
20058 "libtool":C)
20060 # See if we are running on zsh, and set the options which allow our
20061 # commands through without removal of \ escapes.
20062 if test -n "${ZSH_VERSION+set}" ; then
20063 setopt NO_GLOB_SUBST
20066 cfgfile="${ofile}T"
20067 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20068 $RM "$cfgfile"
20070 cat <<_LT_EOF >> "$cfgfile"
20071 #! $SHELL
20073 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
20074 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
20075 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20076 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
20078 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
20079 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
20080 # Written by Gordon Matzigkeit, 1996
20082 # This file is part of GNU Libtool.
20084 # GNU Libtool is free software; you can redistribute it and/or
20085 # modify it under the terms of the GNU General Public License as
20086 # published by the Free Software Foundation; either version 2 of
20087 # the License, or (at your option) any later version.
20089 # As a special exception to the GNU General Public License,
20090 # if you distribute this file as part of a program or library that
20091 # is built using GNU Libtool, you may include this file under the
20092 # same distribution terms that you use for the rest of that program.
20094 # GNU Libtool is distributed in the hope that it will be useful,
20095 # but WITHOUT ANY WARRANTY; without even the implied warranty of
20096 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20097 # GNU General Public License for more details.
20099 # You should have received a copy of the GNU General Public License
20100 # along with GNU Libtool; see the file COPYING. If not, a copy
20101 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
20102 # obtained by writing to the Free Software Foundation, Inc.,
20103 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20106 # The names of the tagged configurations supported by this script.
20107 available_tags="CXX "
20109 # ### BEGIN LIBTOOL CONFIG
20111 # Which release of libtool.m4 was used?
20112 macro_version=$macro_version
20113 macro_revision=$macro_revision
20115 # Whether or not to build shared libraries.
20116 build_libtool_libs=$enable_shared
20118 # Whether or not to build static libraries.
20119 build_old_libs=$enable_static
20121 # What type of objects to build.
20122 pic_mode=$pic_mode
20124 # Whether or not to optimize for fast installation.
20125 fast_install=$enable_fast_install
20127 # Shell to use when invoking shell scripts.
20128 SHELL=$lt_SHELL
20130 # An echo program that protects backslashes.
20131 ECHO=$lt_ECHO
20133 # The host system.
20134 host_alias=$host_alias
20135 host=$host
20136 host_os=$host_os
20138 # The build system.
20139 build_alias=$build_alias
20140 build=$build
20141 build_os=$build_os
20143 # A sed program that does not truncate output.
20144 SED=$lt_SED
20146 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
20147 Xsed="\$SED -e 1s/^X//"
20149 # A grep program that handles long lines.
20150 GREP=$lt_GREP
20152 # An ERE matcher.
20153 EGREP=$lt_EGREP
20155 # A literal string matcher.
20156 FGREP=$lt_FGREP
20158 # A BSD- or MS-compatible name lister.
20159 NM=$lt_NM
20161 # Whether we need soft or hard links.
20162 LN_S=$lt_LN_S
20164 # What is the maximum length of a command?
20165 max_cmd_len=$max_cmd_len
20167 # Object file suffix (normally "o").
20168 objext=$ac_objext
20170 # Executable file suffix (normally "").
20171 exeext=$exeext
20173 # whether the shell understands "unset".
20174 lt_unset=$lt_unset
20176 # turn spaces into newlines.
20177 SP2NL=$lt_lt_SP2NL
20179 # turn newlines into spaces.
20180 NL2SP=$lt_lt_NL2SP
20182 # An object symbol dumper.
20183 OBJDUMP=$lt_OBJDUMP
20185 # Method to check whether dependent libraries are shared objects.
20186 deplibs_check_method=$lt_deplibs_check_method
20188 # Command to use when deplibs_check_method == "file_magic".
20189 file_magic_cmd=$lt_file_magic_cmd
20191 # The archiver.
20192 AR=$lt_AR
20193 AR_FLAGS=$lt_AR_FLAGS
20195 # A symbol stripping program.
20196 STRIP=$lt_STRIP
20198 # Commands used to install an old-style archive.
20199 RANLIB=$lt_RANLIB
20200 old_postinstall_cmds=$lt_old_postinstall_cmds
20201 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20203 # Whether to use a lock for old archive extraction.
20204 lock_old_archive_extraction=$lock_old_archive_extraction
20206 # A C compiler.
20207 LTCC=$lt_CC
20209 # LTCC compiler flags.
20210 LTCFLAGS=$lt_CFLAGS
20212 # Take the output of nm and produce a listing of raw symbols and C names.
20213 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20215 # Transform the output of nm in a proper C declaration.
20216 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20218 # Transform the output of nm in a C name address pair.
20219 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20221 # Transform the output of nm in a C name address pair when lib prefix is needed.
20222 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20224 # The name of the directory that contains temporary libtool files.
20225 objdir=$objdir
20227 # Used to examine libraries when file_magic_cmd begins with "file".
20228 MAGIC_CMD=$MAGIC_CMD
20230 # Must we lock files when doing compilation?
20231 need_locks=$lt_need_locks
20233 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20234 DSYMUTIL=$lt_DSYMUTIL
20236 # Tool to change global to local symbols on Mac OS X.
20237 NMEDIT=$lt_NMEDIT
20239 # Tool to manipulate fat objects and archives on Mac OS X.
20240 LIPO=$lt_LIPO
20242 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
20243 OTOOL=$lt_OTOOL
20245 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20246 OTOOL64=$lt_OTOOL64
20248 # Old archive suffix (normally "a").
20249 libext=$libext
20251 # Shared library suffix (normally ".so").
20252 shrext_cmds=$lt_shrext_cmds
20254 # The commands to extract the exported symbol list from a shared archive.
20255 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20257 # Variables whose values should be saved in libtool wrapper scripts and
20258 # restored at link time.
20259 variables_saved_for_relink=$lt_variables_saved_for_relink
20261 # Do we need the "lib" prefix for modules?
20262 need_lib_prefix=$need_lib_prefix
20264 # Do we need a version for libraries?
20265 need_version=$need_version
20267 # Library versioning type.
20268 version_type=$version_type
20270 # Shared library runtime path variable.
20271 runpath_var=$runpath_var
20273 # Shared library path variable.
20274 shlibpath_var=$shlibpath_var
20276 # Is shlibpath searched before the hard-coded library search path?
20277 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20279 # Format of library name prefix.
20280 libname_spec=$lt_libname_spec
20282 # List of archive names. First name is the real one, the rest are links.
20283 # The last name is the one that the linker finds with -lNAME
20284 library_names_spec=$lt_library_names_spec
20286 # The coded name of the library, if different from the real name.
20287 soname_spec=$lt_soname_spec
20289 # Permission mode override for installation of shared libraries.
20290 install_override_mode=$lt_install_override_mode
20292 # Command to use after installation of a shared archive.
20293 postinstall_cmds=$lt_postinstall_cmds
20295 # Command to use after uninstallation of a shared archive.
20296 postuninstall_cmds=$lt_postuninstall_cmds
20298 # Commands used to finish a libtool library installation in a directory.
20299 finish_cmds=$lt_finish_cmds
20301 # As "finish_cmds", except a single script fragment to be evaled but
20302 # not shown.
20303 finish_eval=$lt_finish_eval
20305 # Whether we should hardcode library paths into libraries.
20306 hardcode_into_libs=$hardcode_into_libs
20308 # Compile-time system search path for libraries.
20309 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20311 # Run-time system search path for libraries.
20312 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20314 # Whether dlopen is supported.
20315 dlopen_support=$enable_dlopen
20317 # Whether dlopen of programs is supported.
20318 dlopen_self=$enable_dlopen_self
20320 # Whether dlopen of statically linked programs is supported.
20321 dlopen_self_static=$enable_dlopen_self_static
20323 # Commands to strip libraries.
20324 old_striplib=$lt_old_striplib
20325 striplib=$lt_striplib
20328 # The linker used to build libraries.
20329 LD=$lt_LD
20331 # How to create reloadable object files.
20332 reload_flag=$lt_reload_flag
20333 reload_cmds=$lt_reload_cmds
20335 # Commands used to build an old-style archive.
20336 old_archive_cmds=$lt_old_archive_cmds
20338 # A language specific compiler.
20339 CC=$lt_compiler
20341 # Is the compiler the GNU compiler?
20342 with_gcc=$GCC
20344 # Compiler flag to turn off builtin functions.
20345 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20347 # How to pass a linker flag through the compiler.
20348 wl=$lt_lt_prog_compiler_wl
20350 # Additional compiler flags for building library objects.
20351 pic_flag=$lt_lt_prog_compiler_pic
20353 # Compiler flag to prevent dynamic linking.
20354 link_static_flag=$lt_lt_prog_compiler_static
20356 # Does compiler simultaneously support -c and -o options?
20357 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20359 # Whether or not to add -lc for building shared libraries.
20360 build_libtool_need_lc=$archive_cmds_need_lc
20362 # Whether or not to disallow shared libs when runtime libs are static.
20363 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20365 # Compiler flag to allow reflexive dlopens.
20366 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20368 # Compiler flag to generate shared objects directly from archives.
20369 whole_archive_flag_spec=$lt_whole_archive_flag_spec
20371 # Whether the compiler copes with passing no objects directly.
20372 compiler_needs_object=$lt_compiler_needs_object
20374 # Create an old-style archive from a shared archive.
20375 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20377 # Create a temporary old-style archive to link instead of a shared archive.
20378 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20380 # Commands used to build a shared archive.
20381 archive_cmds=$lt_archive_cmds
20382 archive_expsym_cmds=$lt_archive_expsym_cmds
20384 # Commands used to build a loadable module if different from building
20385 # a shared archive.
20386 module_cmds=$lt_module_cmds
20387 module_expsym_cmds=$lt_module_expsym_cmds
20389 # Whether we are building with GNU ld or not.
20390 with_gnu_ld=$lt_with_gnu_ld
20392 # Flag that allows shared libraries with undefined symbols to be built.
20393 allow_undefined_flag=$lt_allow_undefined_flag
20395 # Flag that enforces no undefined symbols.
20396 no_undefined_flag=$lt_no_undefined_flag
20398 # Flag to hardcode \$libdir into a binary during linking.
20399 # This must work even if \$libdir does not exist
20400 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20402 # If ld is used when linking, flag to hardcode \$libdir into a binary
20403 # during linking. This must work even if \$libdir does not exist.
20404 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
20406 # Whether we need a single "-rpath" flag with a separated argument.
20407 hardcode_libdir_separator=$lt_hardcode_libdir_separator
20409 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20410 # DIR into the resulting binary.
20411 hardcode_direct=$hardcode_direct
20413 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20414 # DIR into the resulting binary and the resulting library dependency is
20415 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20416 # library is relocated.
20417 hardcode_direct_absolute=$hardcode_direct_absolute
20419 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20420 # into the resulting binary.
20421 hardcode_minus_L=$hardcode_minus_L
20423 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20424 # into the resulting binary.
20425 hardcode_shlibpath_var=$hardcode_shlibpath_var
20427 # Set to "yes" if building a shared library automatically hardcodes DIR
20428 # into the library and all subsequent libraries and executables linked
20429 # against it.
20430 hardcode_automatic=$hardcode_automatic
20432 # Set to yes if linker adds runtime paths of dependent libraries
20433 # to runtime path list.
20434 inherit_rpath=$inherit_rpath
20436 # Whether libtool must link a program against all its dependency libraries.
20437 link_all_deplibs=$link_all_deplibs
20439 # Fix the shell variable \$srcfile for the compiler.
20440 fix_srcfile_path=$lt_fix_srcfile_path
20442 # Set to "yes" if exported symbols are required.
20443 always_export_symbols=$always_export_symbols
20445 # The commands to list exported symbols.
20446 export_symbols_cmds=$lt_export_symbols_cmds
20448 # Symbols that should not be listed in the preloaded symbols.
20449 exclude_expsyms=$lt_exclude_expsyms
20451 # Symbols that must always be exported.
20452 include_expsyms=$lt_include_expsyms
20454 # Commands necessary for linking programs (against libraries) with templates.
20455 prelink_cmds=$lt_prelink_cmds
20457 # Specify filename containing input files.
20458 file_list_spec=$lt_file_list_spec
20460 # How to hardcode a shared library path into an executable.
20461 hardcode_action=$hardcode_action
20463 # The directories searched by this compiler when creating a shared library.
20464 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
20466 # Dependencies to place before and after the objects being linked to
20467 # create a shared library.
20468 predep_objects=$lt_predep_objects
20469 postdep_objects=$lt_postdep_objects
20470 predeps=$lt_predeps
20471 postdeps=$lt_postdeps
20473 # The library search path used internally by the compiler when linking
20474 # a shared library.
20475 compiler_lib_search_path=$lt_compiler_lib_search_path
20477 # ### END LIBTOOL CONFIG
20479 _LT_EOF
20481 case $host_os in
20482 aix3*)
20483 cat <<\_LT_EOF >> "$cfgfile"
20484 # AIX sometimes has problems with the GCC collect2 program. For some
20485 # reason, if we set the COLLECT_NAMES environment variable, the problems
20486 # vanish in a puff of smoke.
20487 if test "X${COLLECT_NAMES+set}" != Xset; then
20488 COLLECT_NAMES=
20489 export COLLECT_NAMES
20491 _LT_EOF
20493 esac
20496 ltmain="$ac_aux_dir/ltmain.sh"
20499 # We use sed instead of cat because bash on DJGPP gets confused if
20500 # if finds mixed CR/LF and LF-only lines. Since sed operates in
20501 # text mode, it properly converts lines to CR/LF. This bash problem
20502 # is reportedly fixed, but why not run on old versions too?
20503 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
20504 || (rm -f "$cfgfile"; exit 1)
20506 case $xsi_shell in
20507 yes)
20508 cat << \_LT_EOF >> "$cfgfile"
20510 # func_dirname file append nondir_replacement
20511 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
20512 # otherwise set result to NONDIR_REPLACEMENT.
20513 func_dirname ()
20515 case ${1} in
20516 */*) func_dirname_result="${1%/*}${2}" ;;
20517 * ) func_dirname_result="${3}" ;;
20518 esac
20521 # func_basename file
20522 func_basename ()
20524 func_basename_result="${1##*/}"
20527 # func_dirname_and_basename file append nondir_replacement
20528 # perform func_basename and func_dirname in a single function
20529 # call:
20530 # dirname: Compute the dirname of FILE. If nonempty,
20531 # add APPEND to the result, otherwise set result
20532 # to NONDIR_REPLACEMENT.
20533 # value returned in "$func_dirname_result"
20534 # basename: Compute filename of FILE.
20535 # value retuned in "$func_basename_result"
20536 # Implementation must be kept synchronized with func_dirname
20537 # and func_basename. For efficiency, we do not delegate to
20538 # those functions but instead duplicate the functionality here.
20539 func_dirname_and_basename ()
20541 case ${1} in
20542 */*) func_dirname_result="${1%/*}${2}" ;;
20543 * ) func_dirname_result="${3}" ;;
20544 esac
20545 func_basename_result="${1##*/}"
20548 # func_stripname prefix suffix name
20549 # strip PREFIX and SUFFIX off of NAME.
20550 # PREFIX and SUFFIX must not contain globbing or regex special
20551 # characters, hashes, percent signs, but SUFFIX may contain a leading
20552 # dot (in which case that matches only a dot).
20553 func_stripname ()
20555 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
20556 # positional parameters, so assign one to ordinary parameter first.
20557 func_stripname_result=${3}
20558 func_stripname_result=${func_stripname_result#"${1}"}
20559 func_stripname_result=${func_stripname_result%"${2}"}
20562 # func_opt_split
20563 func_opt_split ()
20565 func_opt_split_opt=${1%%=*}
20566 func_opt_split_arg=${1#*=}
20569 # func_lo2o object
20570 func_lo2o ()
20572 case ${1} in
20573 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
20574 *) func_lo2o_result=${1} ;;
20575 esac
20578 # func_xform libobj-or-source
20579 func_xform ()
20581 func_xform_result=${1%.*}.lo
20584 # func_arith arithmetic-term...
20585 func_arith ()
20587 func_arith_result=$(( $* ))
20590 # func_len string
20591 # STRING may not start with a hyphen.
20592 func_len ()
20594 func_len_result=${#1}
20597 _LT_EOF
20599 *) # Bourne compatible functions.
20600 cat << \_LT_EOF >> "$cfgfile"
20602 # func_dirname file append nondir_replacement
20603 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
20604 # otherwise set result to NONDIR_REPLACEMENT.
20605 func_dirname ()
20607 # Extract subdirectory from the argument.
20608 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
20609 if test "X$func_dirname_result" = "X${1}"; then
20610 func_dirname_result="${3}"
20611 else
20612 func_dirname_result="$func_dirname_result${2}"
20616 # func_basename file
20617 func_basename ()
20619 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
20623 # func_stripname prefix suffix name
20624 # strip PREFIX and SUFFIX off of NAME.
20625 # PREFIX and SUFFIX must not contain globbing or regex special
20626 # characters, hashes, percent signs, but SUFFIX may contain a leading
20627 # dot (in which case that matches only a dot).
20628 # func_strip_suffix prefix name
20629 func_stripname ()
20631 case ${2} in
20632 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
20633 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
20634 esac
20637 # sed scripts:
20638 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
20639 my_sed_long_arg='1s/^-[^=]*=//'
20641 # func_opt_split
20642 func_opt_split ()
20644 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
20645 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
20648 # func_lo2o object
20649 func_lo2o ()
20651 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
20654 # func_xform libobj-or-source
20655 func_xform ()
20657 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
20660 # func_arith arithmetic-term...
20661 func_arith ()
20663 func_arith_result=`expr "$@"`
20666 # func_len string
20667 # STRING may not start with a hyphen.
20668 func_len ()
20670 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
20673 _LT_EOF
20674 esac
20676 case $lt_shell_append in
20677 yes)
20678 cat << \_LT_EOF >> "$cfgfile"
20680 # func_append var value
20681 # Append VALUE to the end of shell variable VAR.
20682 func_append ()
20684 eval "$1+=\$2"
20686 _LT_EOF
20689 cat << \_LT_EOF >> "$cfgfile"
20691 # func_append var value
20692 # Append VALUE to the end of shell variable VAR.
20693 func_append ()
20695 eval "$1=\$$1\$2"
20698 _LT_EOF
20700 esac
20703 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
20704 || (rm -f "$cfgfile"; exit 1)
20706 mv -f "$cfgfile" "$ofile" ||
20707 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20708 chmod +x "$ofile"
20711 cat <<_LT_EOF >> "$ofile"
20713 # ### BEGIN LIBTOOL TAG CONFIG: CXX
20715 # The linker used to build libraries.
20716 LD=$lt_LD_CXX
20718 # How to create reloadable object files.
20719 reload_flag=$lt_reload_flag_CXX
20720 reload_cmds=$lt_reload_cmds_CXX
20722 # Commands used to build an old-style archive.
20723 old_archive_cmds=$lt_old_archive_cmds_CXX
20725 # A language specific compiler.
20726 CC=$lt_compiler_CXX
20728 # Is the compiler the GNU compiler?
20729 with_gcc=$GCC_CXX
20731 # Compiler flag to turn off builtin functions.
20732 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20734 # How to pass a linker flag through the compiler.
20735 wl=$lt_lt_prog_compiler_wl_CXX
20737 # Additional compiler flags for building library objects.
20738 pic_flag=$lt_lt_prog_compiler_pic_CXX
20740 # Compiler flag to prevent dynamic linking.
20741 link_static_flag=$lt_lt_prog_compiler_static_CXX
20743 # Does compiler simultaneously support -c and -o options?
20744 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20746 # Whether or not to add -lc for building shared libraries.
20747 build_libtool_need_lc=$archive_cmds_need_lc_CXX
20749 # Whether or not to disallow shared libs when runtime libs are static.
20750 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20752 # Compiler flag to allow reflexive dlopens.
20753 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20755 # Compiler flag to generate shared objects directly from archives.
20756 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20758 # Whether the compiler copes with passing no objects directly.
20759 compiler_needs_object=$lt_compiler_needs_object_CXX
20761 # Create an old-style archive from a shared archive.
20762 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20764 # Create a temporary old-style archive to link instead of a shared archive.
20765 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20767 # Commands used to build a shared archive.
20768 archive_cmds=$lt_archive_cmds_CXX
20769 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20771 # Commands used to build a loadable module if different from building
20772 # a shared archive.
20773 module_cmds=$lt_module_cmds_CXX
20774 module_expsym_cmds=$lt_module_expsym_cmds_CXX
20776 # Whether we are building with GNU ld or not.
20777 with_gnu_ld=$lt_with_gnu_ld_CXX
20779 # Flag that allows shared libraries with undefined symbols to be built.
20780 allow_undefined_flag=$lt_allow_undefined_flag_CXX
20782 # Flag that enforces no undefined symbols.
20783 no_undefined_flag=$lt_no_undefined_flag_CXX
20785 # Flag to hardcode \$libdir into a binary during linking.
20786 # This must work even if \$libdir does not exist
20787 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20789 # If ld is used when linking, flag to hardcode \$libdir into a binary
20790 # during linking. This must work even if \$libdir does not exist.
20791 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
20793 # Whether we need a single "-rpath" flag with a separated argument.
20794 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20796 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20797 # DIR into the resulting binary.
20798 hardcode_direct=$hardcode_direct_CXX
20800 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20801 # DIR into the resulting binary and the resulting library dependency is
20802 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20803 # library is relocated.
20804 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
20806 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20807 # into the resulting binary.
20808 hardcode_minus_L=$hardcode_minus_L_CXX
20810 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20811 # into the resulting binary.
20812 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20814 # Set to "yes" if building a shared library automatically hardcodes DIR
20815 # into the library and all subsequent libraries and executables linked
20816 # against it.
20817 hardcode_automatic=$hardcode_automatic_CXX
20819 # Set to yes if linker adds runtime paths of dependent libraries
20820 # to runtime path list.
20821 inherit_rpath=$inherit_rpath_CXX
20823 # Whether libtool must link a program against all its dependency libraries.
20824 link_all_deplibs=$link_all_deplibs_CXX
20826 # Fix the shell variable \$srcfile for the compiler.
20827 fix_srcfile_path=$lt_fix_srcfile_path_CXX
20829 # Set to "yes" if exported symbols are required.
20830 always_export_symbols=$always_export_symbols_CXX
20832 # The commands to list exported symbols.
20833 export_symbols_cmds=$lt_export_symbols_cmds_CXX
20835 # Symbols that should not be listed in the preloaded symbols.
20836 exclude_expsyms=$lt_exclude_expsyms_CXX
20838 # Symbols that must always be exported.
20839 include_expsyms=$lt_include_expsyms_CXX
20841 # Commands necessary for linking programs (against libraries) with templates.
20842 prelink_cmds=$lt_prelink_cmds_CXX
20844 # Specify filename containing input files.
20845 file_list_spec=$lt_file_list_spec_CXX
20847 # How to hardcode a shared library path into an executable.
20848 hardcode_action=$hardcode_action_CXX
20850 # The directories searched by this compiler when creating a shared library.
20851 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
20853 # Dependencies to place before and after the objects being linked to
20854 # create a shared library.
20855 predep_objects=$lt_predep_objects_CXX
20856 postdep_objects=$lt_postdep_objects_CXX
20857 predeps=$lt_predeps_CXX
20858 postdeps=$lt_postdeps_CXX
20860 # The library search path used internally by the compiler when linking
20861 # a shared library.
20862 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20864 # ### END LIBTOOL TAG CONFIG: CXX
20865 _LT_EOF
20868 "gstdint.h":C)
20869 if test "$GCC" = yes; then
20870 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
20871 else
20872 echo "/* generated for $CC */" > tmp-stdint.h
20875 sed 's/^ *//' >> tmp-stdint.h <<EOF
20877 #ifndef GCC_GENERATED_STDINT_H
20878 #define GCC_GENERATED_STDINT_H 1
20880 #include <sys/types.h>
20883 if test "$acx_cv_header_stdint" != stdint.h; then
20884 echo "#include <stddef.h>" >> tmp-stdint.h
20886 if test "$acx_cv_header_stdint" != stddef.h; then
20887 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
20890 sed 's/^ *//' >> tmp-stdint.h <<EOF
20891 /* glibc uses these symbols as guards to prevent redefinitions. */
20892 #ifdef __int8_t_defined
20893 #define _INT8_T
20894 #define _INT16_T
20895 #define _INT32_T
20896 #endif
20897 #ifdef __uint32_t_defined
20898 #define _UINT32_T
20899 #endif
20903 # ----------------- done header, emit basic int types -------------
20904 if test "$acx_cv_header_stdint" = stddef.h; then
20905 sed 's/^ *//' >> tmp-stdint.h <<EOF
20907 #ifndef _UINT8_T
20908 #define _UINT8_T
20909 #ifndef __uint8_t_defined
20910 #define __uint8_t_defined
20911 #ifndef uint8_t
20912 typedef unsigned $acx_cv_type_int8_t uint8_t;
20913 #endif
20914 #endif
20915 #endif
20917 #ifndef _UINT16_T
20918 #define _UINT16_T
20919 #ifndef __uint16_t_defined
20920 #define __uint16_t_defined
20921 #ifndef uint16_t
20922 typedef unsigned $acx_cv_type_int16_t uint16_t;
20923 #endif
20924 #endif
20925 #endif
20927 #ifndef _UINT32_T
20928 #define _UINT32_T
20929 #ifndef __uint32_t_defined
20930 #define __uint32_t_defined
20931 #ifndef uint32_t
20932 typedef unsigned $acx_cv_type_int32_t uint32_t;
20933 #endif
20934 #endif
20935 #endif
20937 #ifndef _INT8_T
20938 #define _INT8_T
20939 #ifndef __int8_t_defined
20940 #define __int8_t_defined
20941 #ifndef int8_t
20942 typedef $acx_cv_type_int8_t int8_t;
20943 #endif
20944 #endif
20945 #endif
20947 #ifndef _INT16_T
20948 #define _INT16_T
20949 #ifndef __int16_t_defined
20950 #define __int16_t_defined
20951 #ifndef int16_t
20952 typedef $acx_cv_type_int16_t int16_t;
20953 #endif
20954 #endif
20955 #endif
20957 #ifndef _INT32_T
20958 #define _INT32_T
20959 #ifndef __int32_t_defined
20960 #define __int32_t_defined
20961 #ifndef int32_t
20962 typedef $acx_cv_type_int32_t int32_t;
20963 #endif
20964 #endif
20965 #endif
20967 elif test "$ac_cv_type_u_int32_t" = yes; then
20968 sed 's/^ *//' >> tmp-stdint.h <<EOF
20970 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
20971 #ifndef _INT8_T
20972 #define _INT8_T
20973 #endif
20974 #ifndef _INT16_T
20975 #define _INT16_T
20976 #endif
20977 #ifndef _INT32_T
20978 #define _INT32_T
20979 #endif
20981 #ifndef _UINT8_T
20982 #define _UINT8_T
20983 #ifndef __uint8_t_defined
20984 #define __uint8_t_defined
20985 #ifndef uint8_t
20986 typedef u_int8_t uint8_t;
20987 #endif
20988 #endif
20989 #endif
20991 #ifndef _UINT16_T
20992 #define _UINT16_T
20993 #ifndef __uint16_t_defined
20994 #define __uint16_t_defined
20995 #ifndef uint16_t
20996 typedef u_int16_t uint16_t;
20997 #endif
20998 #endif
20999 #endif
21001 #ifndef _UINT32_T
21002 #define _UINT32_T
21003 #ifndef __uint32_t_defined
21004 #define __uint32_t_defined
21005 #ifndef uint32_t
21006 typedef u_int32_t uint32_t;
21007 #endif
21008 #endif
21009 #endif
21011 else
21012 sed 's/^ *//' >> tmp-stdint.h <<EOF
21014 /* Some systems have guard macros to prevent redefinitions, define them. */
21015 #ifndef _INT8_T
21016 #define _INT8_T
21017 #endif
21018 #ifndef _INT16_T
21019 #define _INT16_T
21020 #endif
21021 #ifndef _INT32_T
21022 #define _INT32_T
21023 #endif
21024 #ifndef _UINT8_T
21025 #define _UINT8_T
21026 #endif
21027 #ifndef _UINT16_T
21028 #define _UINT16_T
21029 #endif
21030 #ifndef _UINT32_T
21031 #define _UINT32_T
21032 #endif
21036 # ------------- done basic int types, emit int64_t types ------------
21037 if test "$ac_cv_type_uint64_t" = yes; then
21038 sed 's/^ *//' >> tmp-stdint.h <<EOF
21040 /* system headers have good uint64_t and int64_t */
21041 #ifndef _INT64_T
21042 #define _INT64_T
21043 #endif
21044 #ifndef _UINT64_T
21045 #define _UINT64_T
21046 #endif
21048 elif test "$ac_cv_type_u_int64_t" = yes; then
21049 sed 's/^ *//' >> tmp-stdint.h <<EOF
21051 /* system headers have an u_int64_t (and int64_t) */
21052 #ifndef _INT64_T
21053 #define _INT64_T
21054 #endif
21055 #ifndef _UINT64_T
21056 #define _UINT64_T
21057 #ifndef __uint64_t_defined
21058 #define __uint64_t_defined
21059 #ifndef uint64_t
21060 typedef u_int64_t uint64_t;
21061 #endif
21062 #endif
21063 #endif
21065 elif test -n "$acx_cv_type_int64_t"; then
21066 sed 's/^ *//' >> tmp-stdint.h <<EOF
21068 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
21069 #ifndef _INT64_T
21070 #define _INT64_T
21071 #ifndef int64_t
21072 typedef $acx_cv_type_int64_t int64_t;
21073 #endif
21074 #endif
21075 #ifndef _UINT64_T
21076 #define _UINT64_T
21077 #ifndef __uint64_t_defined
21078 #define __uint64_t_defined
21079 #ifndef uint64_t
21080 typedef unsigned $acx_cv_type_int64_t uint64_t;
21081 #endif
21082 #endif
21083 #endif
21085 else
21086 sed 's/^ *//' >> tmp-stdint.h <<EOF
21088 /* some common heuristics for int64_t, using compiler-specific tests */
21089 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
21090 #ifndef _INT64_T
21091 #define _INT64_T
21092 #ifndef __int64_t_defined
21093 #ifndef int64_t
21094 typedef long long int64_t;
21095 #endif
21096 #endif
21097 #endif
21098 #ifndef _UINT64_T
21099 #define _UINT64_T
21100 #ifndef uint64_t
21101 typedef unsigned long long uint64_t;
21102 #endif
21103 #endif
21105 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
21106 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
21107 does not implement __extension__. But that compiler doesn't define
21108 __GNUC_MINOR__. */
21109 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
21110 # define __extension__
21111 # endif
21113 # ifndef _INT64_T
21114 # define _INT64_T
21115 # ifndef int64_t
21116 __extension__ typedef long long int64_t;
21117 # endif
21118 # endif
21119 # ifndef _UINT64_T
21120 # define _UINT64_T
21121 # ifndef uint64_t
21122 __extension__ typedef unsigned long long uint64_t;
21123 # endif
21124 # endif
21126 #elif !defined __STRICT_ANSI__
21127 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
21129 # ifndef _INT64_T
21130 # define _INT64_T
21131 # ifndef int64_t
21132 typedef __int64 int64_t;
21133 # endif
21134 # endif
21135 # ifndef _UINT64_T
21136 # define _UINT64_T
21137 # ifndef uint64_t
21138 typedef unsigned __int64 uint64_t;
21139 # endif
21140 # endif
21141 # endif /* compiler */
21143 #endif /* ANSI version */
21147 # ------------- done int64_t types, emit intptr types ------------
21148 if test "$ac_cv_type_uintptr_t" != yes; then
21149 sed 's/^ *//' >> tmp-stdint.h <<EOF
21151 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
21152 #ifndef __uintptr_t_defined
21153 #ifndef uintptr_t
21154 typedef u$acx_cv_type_intptr_t uintptr_t;
21155 #endif
21156 #endif
21157 #ifndef __intptr_t_defined
21158 #ifndef intptr_t
21159 typedef $acx_cv_type_intptr_t intptr_t;
21160 #endif
21161 #endif
21165 # ------------- done intptr types, emit int_least types ------------
21166 if test "$ac_cv_type_int_least32_t" != yes; then
21167 sed 's/^ *//' >> tmp-stdint.h <<EOF
21169 /* Define int_least types */
21170 typedef int8_t int_least8_t;
21171 typedef int16_t int_least16_t;
21172 typedef int32_t int_least32_t;
21173 #ifdef _INT64_T
21174 typedef int64_t int_least64_t;
21175 #endif
21177 typedef uint8_t uint_least8_t;
21178 typedef uint16_t uint_least16_t;
21179 typedef uint32_t uint_least32_t;
21180 #ifdef _UINT64_T
21181 typedef uint64_t uint_least64_t;
21182 #endif
21186 # ------------- done intptr types, emit int_fast types ------------
21187 if test "$ac_cv_type_int_fast32_t" != yes; then
21188 sed 's/^ *//' >> tmp-stdint.h <<EOF
21190 /* Define int_fast types. short is often slow */
21191 typedef int8_t int_fast8_t;
21192 typedef int int_fast16_t;
21193 typedef int32_t int_fast32_t;
21194 #ifdef _INT64_T
21195 typedef int64_t int_fast64_t;
21196 #endif
21198 typedef uint8_t uint_fast8_t;
21199 typedef unsigned int uint_fast16_t;
21200 typedef uint32_t uint_fast32_t;
21201 #ifdef _UINT64_T
21202 typedef uint64_t uint_fast64_t;
21203 #endif
21207 if test "$ac_cv_type_uintmax_t" != yes; then
21208 sed 's/^ *//' >> tmp-stdint.h <<EOF
21210 /* Define intmax based on what we found */
21211 #ifndef intmax_t
21212 #ifdef _INT64_T
21213 typedef int64_t intmax_t;
21214 #else
21215 typedef long intmax_t;
21216 #endif
21217 #endif
21218 #ifndef uintmax_t
21219 #ifdef _UINT64_T
21220 typedef uint64_t uintmax_t;
21221 #else
21222 typedef unsigned long uintmax_t;
21223 #endif
21224 #endif
21228 sed 's/^ *//' >> tmp-stdint.h <<EOF
21230 #endif /* GCC_GENERATED_STDINT_H */
21233 if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
21234 rm -f tmp-stdint.h
21235 else
21236 mv -f tmp-stdint.h gstdint.h
21241 esac
21242 done # for ac_tag
21245 as_fn_exit 0
21246 _ACEOF
21247 ac_clean_files=$ac_clean_files_save
21249 test $ac_write_fail = 0 ||
21250 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21253 # configure is writing to config.log, and then calls config.status.
21254 # config.status does its own redirection, appending to config.log.
21255 # Unfortunately, on DOS this fails, as config.log is still kept open
21256 # by configure, so config.status won't be able to write to it; its
21257 # output is simply discarded. So we exec the FD to /dev/null,
21258 # effectively closing config.log, so it can be properly (re)opened and
21259 # appended to by config.status. When coming back to configure, we
21260 # need to make the FD available again.
21261 if test "$no_create" != yes; then
21262 ac_cs_success=:
21263 ac_config_status_args=
21264 test "$silent" = yes &&
21265 ac_config_status_args="$ac_config_status_args --quiet"
21266 exec 5>/dev/null
21267 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21268 exec 5>>config.log
21269 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21270 # would make configure fail if this is the last instruction.
21271 $ac_cs_success || as_fn_exit 1
21273 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21274 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21275 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}