testsuite: Correct vec-rlmi-rlnm.c testsuite expected result
[official-gcc.git] / libitm / configure
blob90965f339fcb8f31d9d5d04cff0e5470244f22a2
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_static
664 enable_shared
665 CXXCPP
667 OTOOL64
668 OTOOL
669 LIPO
670 NMEDIT
671 DSYMUTIL
672 OBJDUMP
673 LN_S
674 ac_ct_DUMPBIN
675 DUMPBIN
677 FGREP
678 EGREP
679 GREP
681 LIBTOOL
682 BUILD_INFO_FALSE
683 BUILD_INFO_TRUE
684 PERL
685 RANLIB
688 am__fastdepCCAS_FALSE
689 am__fastdepCCAS_TRUE
690 CCASDEPMODE
691 CCASFLAGS
692 CCAS
693 am__fastdepCXX_FALSE
694 am__fastdepCXX_TRUE
695 CXXDEPMODE
696 ac_ct_CXX
697 CXXFLAGS
699 am__fastdepCC_FALSE
700 am__fastdepCC_TRUE
701 CCDEPMODE
702 am__nodep
703 AMDEPBACKSLASH
704 AMDEP_FALSE
705 AMDEP_TRUE
706 am__quote
707 am__include
708 DEPDIR
709 OBJEXT
710 EXEEXT
711 ac_ct_CC
712 CPPFLAGS
713 LDFLAGS
714 CFLAGS
716 toolexeclibdir
717 toolexecdir
718 multi_basedir
719 AM_BACKSLASH
720 AM_DEFAULT_VERBOSITY
721 AM_DEFAULT_V
722 AM_V
723 am__untar
724 am__tar
725 AMTAR
726 am__leading_dot
727 SET_MAKE
729 mkdir_p
730 MKDIR_P
731 INSTALL_STRIP_PROGRAM
732 STRIP
733 install_sh
734 MAKEINFO
735 AUTOHEADER
736 AUTOMAKE
737 AUTOCONF
738 ACLOCAL
739 VERSION
740 PACKAGE
741 CYGPATH_W
742 am__isrc
743 INSTALL_DATA
744 INSTALL_SCRIPT
745 INSTALL_PROGRAM
746 target_os
747 target_vendor
748 target_cpu
749 target
750 host_os
751 host_vendor
752 host_cpu
753 host
754 build_os
755 build_vendor
756 build_cpu
757 build
758 GENINSRC_FALSE
759 GENINSRC_TRUE
760 target_alias
761 host_alias
762 build_alias
763 LIBS
764 ECHO_T
765 ECHO_N
766 ECHO_C
767 DEFS
768 mandir
769 localedir
770 libdir
771 psdir
772 pdfdir
773 dvidir
774 htmldir
775 infodir
776 docdir
777 oldincludedir
778 includedir
779 localstatedir
780 sharedstatedir
781 sysconfdir
782 datadir
783 datarootdir
784 libexecdir
785 sbindir
786 bindir
787 program_transform_name
788 prefix
789 exec_prefix
790 PACKAGE_URL
791 PACKAGE_BUGREPORT
792 PACKAGE_STRING
793 PACKAGE_VERSION
794 PACKAGE_TARNAME
795 PACKAGE_NAME
796 PATH_SEPARATOR
797 SHELL'
798 ac_subst_files=''
799 ac_user_opts='
800 enable_option_checking
801 enable_version_specific_runtime_libs
802 enable_generated_files_in_srcdir
803 enable_silent_rules
804 enable_multilib
805 with_toolexeclibdir
806 enable_dependency_tracking
807 enable_shared
808 enable_static
809 with_pic
810 enable_fast_install
811 with_gnu_ld
812 enable_libtool_lock
813 enable_maintainer_mode
814 enable_linux_futex
815 enable_tls
816 enable_symvers
817 enable_cet
818 with_gcc_major_version_only
820 ac_precious_vars='build_alias
821 host_alias
822 target_alias
824 CPPFLAGS
825 CXXCPP'
828 # Initialize some variables set by options.
829 ac_init_help=
830 ac_init_version=false
831 ac_unrecognized_opts=
832 ac_unrecognized_sep=
833 # The variables have the same names as the options, with
834 # dashes changed to underlines.
835 cache_file=/dev/null
836 exec_prefix=NONE
837 no_create=
838 no_recursion=
839 prefix=NONE
840 program_prefix=NONE
841 program_suffix=NONE
842 program_transform_name=s,x,x,
843 silent=
844 site=
845 srcdir=
846 verbose=
847 x_includes=NONE
848 x_libraries=NONE
850 # Installation directory options.
851 # These are left unexpanded so users can "make install exec_prefix=/foo"
852 # and all the variables that are supposed to be based on exec_prefix
853 # by default will actually change.
854 # Use braces instead of parens because sh, perl, etc. also accept them.
855 # (The list follows the same order as the GNU Coding Standards.)
856 bindir='${exec_prefix}/bin'
857 sbindir='${exec_prefix}/sbin'
858 libexecdir='${exec_prefix}/libexec'
859 datarootdir='${prefix}/share'
860 datadir='${datarootdir}'
861 sysconfdir='${prefix}/etc'
862 sharedstatedir='${prefix}/com'
863 localstatedir='${prefix}/var'
864 includedir='${prefix}/include'
865 oldincludedir='/usr/include'
866 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
867 infodir='${datarootdir}/info'
868 htmldir='${docdir}'
869 dvidir='${docdir}'
870 pdfdir='${docdir}'
871 psdir='${docdir}'
872 libdir='${exec_prefix}/lib'
873 localedir='${datarootdir}/locale'
874 mandir='${datarootdir}/man'
876 ac_prev=
877 ac_dashdash=
878 for ac_option
880 # If the previous option needs an argument, assign it.
881 if test -n "$ac_prev"; then
882 eval $ac_prev=\$ac_option
883 ac_prev=
884 continue
887 case $ac_option in
888 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
889 *=) ac_optarg= ;;
890 *) ac_optarg=yes ;;
891 esac
893 # Accept the important Cygnus configure options, so we can diagnose typos.
895 case $ac_dashdash$ac_option in
897 ac_dashdash=yes ;;
899 -bindir | --bindir | --bindi | --bind | --bin | --bi)
900 ac_prev=bindir ;;
901 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
902 bindir=$ac_optarg ;;
904 -build | --build | --buil | --bui | --bu)
905 ac_prev=build_alias ;;
906 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
907 build_alias=$ac_optarg ;;
909 -cache-file | --cache-file | --cache-fil | --cache-fi \
910 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
911 ac_prev=cache_file ;;
912 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
913 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
914 cache_file=$ac_optarg ;;
916 --config-cache | -C)
917 cache_file=config.cache ;;
919 -datadir | --datadir | --datadi | --datad)
920 ac_prev=datadir ;;
921 -datadir=* | --datadir=* | --datadi=* | --datad=*)
922 datadir=$ac_optarg ;;
924 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
925 | --dataroo | --dataro | --datar)
926 ac_prev=datarootdir ;;
927 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
928 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
929 datarootdir=$ac_optarg ;;
931 -disable-* | --disable-*)
932 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
933 # Reject names that are not valid shell variable names.
934 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
935 as_fn_error $? "invalid feature name: $ac_useropt"
936 ac_useropt_orig=$ac_useropt
937 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
938 case $ac_user_opts in
940 "enable_$ac_useropt"
941 "*) ;;
942 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
943 ac_unrecognized_sep=', ';;
944 esac
945 eval enable_$ac_useropt=no ;;
947 -docdir | --docdir | --docdi | --doc | --do)
948 ac_prev=docdir ;;
949 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
950 docdir=$ac_optarg ;;
952 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
953 ac_prev=dvidir ;;
954 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
955 dvidir=$ac_optarg ;;
957 -enable-* | --enable-*)
958 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
959 # Reject names that are not valid shell variable names.
960 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
961 as_fn_error $? "invalid feature name: $ac_useropt"
962 ac_useropt_orig=$ac_useropt
963 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
964 case $ac_user_opts in
966 "enable_$ac_useropt"
967 "*) ;;
968 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
969 ac_unrecognized_sep=', ';;
970 esac
971 eval enable_$ac_useropt=\$ac_optarg ;;
973 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
974 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
975 | --exec | --exe | --ex)
976 ac_prev=exec_prefix ;;
977 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
978 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
979 | --exec=* | --exe=* | --ex=*)
980 exec_prefix=$ac_optarg ;;
982 -gas | --gas | --ga | --g)
983 # Obsolete; use --with-gas.
984 with_gas=yes ;;
986 -help | --help | --hel | --he | -h)
987 ac_init_help=long ;;
988 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
989 ac_init_help=recursive ;;
990 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
991 ac_init_help=short ;;
993 -host | --host | --hos | --ho)
994 ac_prev=host_alias ;;
995 -host=* | --host=* | --hos=* | --ho=*)
996 host_alias=$ac_optarg ;;
998 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
999 ac_prev=htmldir ;;
1000 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1001 | --ht=*)
1002 htmldir=$ac_optarg ;;
1004 -includedir | --includedir | --includedi | --included | --include \
1005 | --includ | --inclu | --incl | --inc)
1006 ac_prev=includedir ;;
1007 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1008 | --includ=* | --inclu=* | --incl=* | --inc=*)
1009 includedir=$ac_optarg ;;
1011 -infodir | --infodir | --infodi | --infod | --info | --inf)
1012 ac_prev=infodir ;;
1013 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1014 infodir=$ac_optarg ;;
1016 -libdir | --libdir | --libdi | --libd)
1017 ac_prev=libdir ;;
1018 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1019 libdir=$ac_optarg ;;
1021 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1022 | --libexe | --libex | --libe)
1023 ac_prev=libexecdir ;;
1024 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1025 | --libexe=* | --libex=* | --libe=*)
1026 libexecdir=$ac_optarg ;;
1028 -localedir | --localedir | --localedi | --localed | --locale)
1029 ac_prev=localedir ;;
1030 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1031 localedir=$ac_optarg ;;
1033 -localstatedir | --localstatedir | --localstatedi | --localstated \
1034 | --localstate | --localstat | --localsta | --localst | --locals)
1035 ac_prev=localstatedir ;;
1036 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1037 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1038 localstatedir=$ac_optarg ;;
1040 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1041 ac_prev=mandir ;;
1042 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1043 mandir=$ac_optarg ;;
1045 -nfp | --nfp | --nf)
1046 # Obsolete; use --without-fp.
1047 with_fp=no ;;
1049 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1050 | --no-cr | --no-c | -n)
1051 no_create=yes ;;
1053 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1054 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1055 no_recursion=yes ;;
1057 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1058 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1059 | --oldin | --oldi | --old | --ol | --o)
1060 ac_prev=oldincludedir ;;
1061 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1062 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1063 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1064 oldincludedir=$ac_optarg ;;
1066 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1067 ac_prev=prefix ;;
1068 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1069 prefix=$ac_optarg ;;
1071 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1072 | --program-pre | --program-pr | --program-p)
1073 ac_prev=program_prefix ;;
1074 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1075 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1076 program_prefix=$ac_optarg ;;
1078 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1079 | --program-suf | --program-su | --program-s)
1080 ac_prev=program_suffix ;;
1081 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1082 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1083 program_suffix=$ac_optarg ;;
1085 -program-transform-name | --program-transform-name \
1086 | --program-transform-nam | --program-transform-na \
1087 | --program-transform-n | --program-transform- \
1088 | --program-transform | --program-transfor \
1089 | --program-transfo | --program-transf \
1090 | --program-trans | --program-tran \
1091 | --progr-tra | --program-tr | --program-t)
1092 ac_prev=program_transform_name ;;
1093 -program-transform-name=* | --program-transform-name=* \
1094 | --program-transform-nam=* | --program-transform-na=* \
1095 | --program-transform-n=* | --program-transform-=* \
1096 | --program-transform=* | --program-transfor=* \
1097 | --program-transfo=* | --program-transf=* \
1098 | --program-trans=* | --program-tran=* \
1099 | --progr-tra=* | --program-tr=* | --program-t=*)
1100 program_transform_name=$ac_optarg ;;
1102 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1103 ac_prev=pdfdir ;;
1104 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1105 pdfdir=$ac_optarg ;;
1107 -psdir | --psdir | --psdi | --psd | --ps)
1108 ac_prev=psdir ;;
1109 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1110 psdir=$ac_optarg ;;
1112 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1113 | -silent | --silent | --silen | --sile | --sil)
1114 silent=yes ;;
1116 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1117 ac_prev=sbindir ;;
1118 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1119 | --sbi=* | --sb=*)
1120 sbindir=$ac_optarg ;;
1122 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1123 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1124 | --sharedst | --shareds | --shared | --share | --shar \
1125 | --sha | --sh)
1126 ac_prev=sharedstatedir ;;
1127 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1128 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1129 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1130 | --sha=* | --sh=*)
1131 sharedstatedir=$ac_optarg ;;
1133 -site | --site | --sit)
1134 ac_prev=site ;;
1135 -site=* | --site=* | --sit=*)
1136 site=$ac_optarg ;;
1138 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1139 ac_prev=srcdir ;;
1140 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1141 srcdir=$ac_optarg ;;
1143 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1144 | --syscon | --sysco | --sysc | --sys | --sy)
1145 ac_prev=sysconfdir ;;
1146 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1147 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1148 sysconfdir=$ac_optarg ;;
1150 -target | --target | --targe | --targ | --tar | --ta | --t)
1151 ac_prev=target_alias ;;
1152 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1153 target_alias=$ac_optarg ;;
1155 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1156 verbose=yes ;;
1158 -version | --version | --versio | --versi | --vers | -V)
1159 ac_init_version=: ;;
1161 -with-* | --with-*)
1162 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1163 # Reject names that are not valid shell variable names.
1164 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1165 as_fn_error $? "invalid package name: $ac_useropt"
1166 ac_useropt_orig=$ac_useropt
1167 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1168 case $ac_user_opts in
1170 "with_$ac_useropt"
1171 "*) ;;
1172 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1173 ac_unrecognized_sep=', ';;
1174 esac
1175 eval with_$ac_useropt=\$ac_optarg ;;
1177 -without-* | --without-*)
1178 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1179 # Reject names that are not valid shell variable names.
1180 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1181 as_fn_error $? "invalid package name: $ac_useropt"
1182 ac_useropt_orig=$ac_useropt
1183 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1184 case $ac_user_opts in
1186 "with_$ac_useropt"
1187 "*) ;;
1188 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1189 ac_unrecognized_sep=', ';;
1190 esac
1191 eval with_$ac_useropt=no ;;
1193 --x)
1194 # Obsolete; use --with-x.
1195 with_x=yes ;;
1197 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1198 | --x-incl | --x-inc | --x-in | --x-i)
1199 ac_prev=x_includes ;;
1200 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1201 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1202 x_includes=$ac_optarg ;;
1204 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1205 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1206 ac_prev=x_libraries ;;
1207 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1208 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1209 x_libraries=$ac_optarg ;;
1211 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1212 Try \`$0 --help' for more information"
1215 *=*)
1216 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1217 # Reject names that are not valid shell variable names.
1218 case $ac_envvar in #(
1219 '' | [0-9]* | *[!_$as_cr_alnum]* )
1220 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1221 esac
1222 eval $ac_envvar=\$ac_optarg
1223 export $ac_envvar ;;
1226 # FIXME: should be removed in autoconf 3.0.
1227 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1228 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1229 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1230 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1233 esac
1234 done
1236 if test -n "$ac_prev"; then
1237 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1238 as_fn_error $? "missing argument to $ac_option"
1241 if test -n "$ac_unrecognized_opts"; then
1242 case $enable_option_checking in
1243 no) ;;
1244 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1245 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1246 esac
1249 # Check all directory arguments for consistency.
1250 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1251 datadir sysconfdir sharedstatedir localstatedir includedir \
1252 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1253 libdir localedir mandir
1255 eval ac_val=\$$ac_var
1256 # Remove trailing slashes.
1257 case $ac_val in
1258 */ )
1259 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1260 eval $ac_var=\$ac_val;;
1261 esac
1262 # Be sure to have absolute directory names.
1263 case $ac_val in
1264 [\\/$]* | ?:[\\/]* ) continue;;
1265 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1266 esac
1267 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1268 done
1270 # There might be people who depend on the old broken behavior: `$host'
1271 # used to hold the argument of --host etc.
1272 # FIXME: To remove some day.
1273 build=$build_alias
1274 host=$host_alias
1275 target=$target_alias
1277 # FIXME: To remove some day.
1278 if test "x$host_alias" != x; then
1279 if test "x$build_alias" = x; then
1280 cross_compiling=maybe
1281 elif test "x$build_alias" != "x$host_alias"; then
1282 cross_compiling=yes
1286 ac_tool_prefix=
1287 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1289 test "$silent" = yes && exec 6>/dev/null
1292 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1293 ac_ls_di=`ls -di .` &&
1294 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1295 as_fn_error $? "working directory cannot be determined"
1296 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1297 as_fn_error $? "pwd does not report name of working directory"
1300 # Find the source files, if location was not specified.
1301 if test -z "$srcdir"; then
1302 ac_srcdir_defaulted=yes
1303 # Try the directory containing this script, then the parent directory.
1304 ac_confdir=`$as_dirname -- "$as_myself" ||
1305 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1306 X"$as_myself" : 'X\(//\)[^/]' \| \
1307 X"$as_myself" : 'X\(//\)$' \| \
1308 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1309 $as_echo X"$as_myself" |
1310 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1311 s//\1/
1314 /^X\(\/\/\)[^/].*/{
1315 s//\1/
1318 /^X\(\/\/\)$/{
1319 s//\1/
1322 /^X\(\/\).*/{
1323 s//\1/
1326 s/.*/./; q'`
1327 srcdir=$ac_confdir
1328 if test ! -r "$srcdir/$ac_unique_file"; then
1329 srcdir=..
1331 else
1332 ac_srcdir_defaulted=no
1334 if test ! -r "$srcdir/$ac_unique_file"; then
1335 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1336 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1338 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1339 ac_abs_confdir=`(
1340 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1341 pwd)`
1342 # When building in place, set srcdir=.
1343 if test "$ac_abs_confdir" = "$ac_pwd"; then
1344 srcdir=.
1346 # Remove unnecessary trailing slashes from srcdir.
1347 # Double slashes in file names in object file debugging info
1348 # mess up M-x gdb in Emacs.
1349 case $srcdir in
1350 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1351 esac
1352 for ac_var in $ac_precious_vars; do
1353 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1354 eval ac_env_${ac_var}_value=\$${ac_var}
1355 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1356 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1357 done
1360 # Report the --help message.
1362 if test "$ac_init_help" = "long"; then
1363 # Omit some internal or obsolete options to make the list less imposing.
1364 # This message is too long to be a string in the A/UX 3.1 sh.
1365 cat <<_ACEOF
1366 \`configure' configures GNU TM Runtime Library 1.0 to adapt to many kinds of systems.
1368 Usage: $0 [OPTION]... [VAR=VALUE]...
1370 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1371 VAR=VALUE. See below for descriptions of some of the useful variables.
1373 Defaults for the options are specified in brackets.
1375 Configuration:
1376 -h, --help display this help and exit
1377 --help=short display options specific to this package
1378 --help=recursive display the short help of all the included packages
1379 -V, --version display version information and exit
1380 -q, --quiet, --silent do not print \`checking ...' messages
1381 --cache-file=FILE cache test results in FILE [disabled]
1382 -C, --config-cache alias for \`--cache-file=config.cache'
1383 -n, --no-create do not create output files
1384 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1386 Installation directories:
1387 --prefix=PREFIX install architecture-independent files in PREFIX
1388 [$ac_default_prefix]
1389 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1390 [PREFIX]
1392 By default, \`make install' will install all the files in
1393 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1394 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1395 for instance \`--prefix=\$HOME'.
1397 For better control, use the options below.
1399 Fine tuning of the installation directories:
1400 --bindir=DIR user executables [EPREFIX/bin]
1401 --sbindir=DIR system admin executables [EPREFIX/sbin]
1402 --libexecdir=DIR program executables [EPREFIX/libexec]
1403 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1404 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1405 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1406 --libdir=DIR object code libraries [EPREFIX/lib]
1407 --includedir=DIR C header files [PREFIX/include]
1408 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1409 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1410 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1411 --infodir=DIR info documentation [DATAROOTDIR/info]
1412 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1413 --mandir=DIR man documentation [DATAROOTDIR/man]
1414 --docdir=DIR documentation root [DATAROOTDIR/doc/libitm]
1415 --htmldir=DIR html documentation [DOCDIR]
1416 --dvidir=DIR dvi documentation [DOCDIR]
1417 --pdfdir=DIR pdf documentation [DOCDIR]
1418 --psdir=DIR ps documentation [DOCDIR]
1419 _ACEOF
1421 cat <<\_ACEOF
1423 Program names:
1424 --program-prefix=PREFIX prepend PREFIX to installed program names
1425 --program-suffix=SUFFIX append SUFFIX to installed program names
1426 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1428 System types:
1429 --build=BUILD configure for building on BUILD [guessed]
1430 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1431 --target=TARGET configure for building compilers for TARGET [HOST]
1432 _ACEOF
1435 if test -n "$ac_init_help"; then
1436 case $ac_init_help in
1437 short | recursive ) echo "Configuration of GNU TM Runtime Library 1.0:";;
1438 esac
1439 cat <<\_ACEOF
1441 Optional Features:
1442 --disable-option-checking ignore unrecognized --enable/--with options
1443 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1444 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1445 --enable-version-specific-runtime-libs
1446 Specify that runtime libraries should be installed
1447 in a compiler-specific directory [default=no]
1448 --enable-generated-files-in-srcdir
1449 put copies of generated files in source dir intended
1450 for creating source tarballs for users without
1451 texinfo bison or flex. [default=no]
1452 --enable-silent-rules less verbose build output (undo: "make V=1")
1453 --disable-silent-rules verbose build output (undo: "make V=0")
1454 --enable-multilib build many library versions (default)
1455 --enable-dependency-tracking
1456 do not reject slow dependency extractors
1457 --disable-dependency-tracking
1458 speeds up one-time build
1459 --enable-shared[=PKGS] build shared libraries [default=yes]
1460 --enable-static[=PKGS] build static libraries [default=yes]
1461 --enable-fast-install[=PKGS]
1462 optimize for fast installation [default=yes]
1463 --disable-libtool-lock avoid locking (might break parallel builds)
1464 --enable-maintainer-mode
1465 enable make rules and dependencies not useful (and
1466 sometimes confusing) to the casual installer
1467 --enable-linux-futex use the Linux futex system call [default=default]
1468 --enable-tls Use thread-local storage [default=yes]
1469 --enable-symvers=STYLE enables symbol versioning of the shared library
1470 [default=yes]
1471 --enable-cet enable Intel CET in target libraries [default=auto]
1473 Optional Packages:
1474 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1475 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1476 --with-toolexeclibdir=DIR
1477 install libraries built with a cross compiler within
1479 --with-pic try to use only PIC/non-PIC objects [default=use
1480 both]
1481 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1482 --with-gcc-major-version-only
1483 use only GCC major number in filesystem paths
1485 Some influential environment variables:
1486 CC C compiler command
1487 CFLAGS C compiler flags
1488 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1489 nonstandard directory <lib dir>
1490 LIBS libraries to pass to the linker, e.g. -l<library>
1491 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1492 you have headers in a nonstandard directory <include dir>
1493 CXX C++ compiler command
1494 CXXFLAGS C++ compiler flags
1495 CCAS assembler compiler command (defaults to CC)
1496 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1497 CPP C preprocessor
1498 CXXCPP C++ preprocessor
1500 Use these variables to override the choices made by `configure' or to help
1501 it to find libraries and programs with nonstandard names/locations.
1503 Report bugs to the package provider.
1504 GNU TM Runtime Library home page: <http://www.gnu.org/software/libitm/>.
1505 General help using GNU software: <http://www.gnu.org/gethelp/>.
1506 _ACEOF
1507 ac_status=$?
1510 if test "$ac_init_help" = "recursive"; then
1511 # If there are subdirs, report their specific --help.
1512 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1513 test -d "$ac_dir" ||
1514 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1515 continue
1516 ac_builddir=.
1518 case "$ac_dir" in
1519 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1521 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1522 # A ".." for each directory in $ac_dir_suffix.
1523 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1524 case $ac_top_builddir_sub in
1525 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1526 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1527 esac ;;
1528 esac
1529 ac_abs_top_builddir=$ac_pwd
1530 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1531 # for backward compatibility:
1532 ac_top_builddir=$ac_top_build_prefix
1534 case $srcdir in
1535 .) # We are building in place.
1536 ac_srcdir=.
1537 ac_top_srcdir=$ac_top_builddir_sub
1538 ac_abs_top_srcdir=$ac_pwd ;;
1539 [\\/]* | ?:[\\/]* ) # Absolute name.
1540 ac_srcdir=$srcdir$ac_dir_suffix;
1541 ac_top_srcdir=$srcdir
1542 ac_abs_top_srcdir=$srcdir ;;
1543 *) # Relative name.
1544 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1545 ac_top_srcdir=$ac_top_build_prefix$srcdir
1546 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1547 esac
1548 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1550 cd "$ac_dir" || { ac_status=$?; continue; }
1551 # Check for guested configure.
1552 if test -f "$ac_srcdir/configure.gnu"; then
1553 echo &&
1554 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1555 elif test -f "$ac_srcdir/configure"; then
1556 echo &&
1557 $SHELL "$ac_srcdir/configure" --help=recursive
1558 else
1559 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1560 fi || ac_status=$?
1561 cd "$ac_pwd" || { ac_status=$?; break; }
1562 done
1565 test -n "$ac_init_help" && exit $ac_status
1566 if $ac_init_version; then
1567 cat <<\_ACEOF
1568 GNU TM Runtime Library configure 1.0
1569 generated by GNU Autoconf 2.69
1571 Copyright (C) 2012 Free Software Foundation, Inc.
1572 This configure script is free software; the Free Software Foundation
1573 gives unlimited permission to copy, distribute and modify it.
1574 _ACEOF
1575 exit
1578 ## ------------------------ ##
1579 ## Autoconf initialization. ##
1580 ## ------------------------ ##
1582 # ac_fn_c_try_compile LINENO
1583 # --------------------------
1584 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1585 ac_fn_c_try_compile ()
1587 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1588 rm -f conftest.$ac_objext
1589 if { { ac_try="$ac_compile"
1590 case "(($ac_try" in
1591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1592 *) ac_try_echo=$ac_try;;
1593 esac
1594 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1595 $as_echo "$ac_try_echo"; } >&5
1596 (eval "$ac_compile") 2>conftest.err
1597 ac_status=$?
1598 if test -s conftest.err; then
1599 grep -v '^ *+' conftest.err >conftest.er1
1600 cat conftest.er1 >&5
1601 mv -f conftest.er1 conftest.err
1603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1604 test $ac_status = 0; } && {
1605 test -z "$ac_c_werror_flag" ||
1606 test ! -s conftest.err
1607 } && test -s conftest.$ac_objext; then :
1608 ac_retval=0
1609 else
1610 $as_echo "$as_me: failed program was:" >&5
1611 sed 's/^/| /' conftest.$ac_ext >&5
1613 ac_retval=1
1615 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1616 as_fn_set_status $ac_retval
1618 } # ac_fn_c_try_compile
1620 # ac_fn_cxx_try_compile LINENO
1621 # ----------------------------
1622 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1623 ac_fn_cxx_try_compile ()
1625 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1626 rm -f conftest.$ac_objext
1627 if { { ac_try="$ac_compile"
1628 case "(($ac_try" in
1629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1630 *) ac_try_echo=$ac_try;;
1631 esac
1632 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1633 $as_echo "$ac_try_echo"; } >&5
1634 (eval "$ac_compile") 2>conftest.err
1635 ac_status=$?
1636 if test -s conftest.err; then
1637 grep -v '^ *+' conftest.err >conftest.er1
1638 cat conftest.er1 >&5
1639 mv -f conftest.er1 conftest.err
1641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1642 test $ac_status = 0; } && {
1643 test -z "$ac_cxx_werror_flag" ||
1644 test ! -s conftest.err
1645 } && test -s conftest.$ac_objext; then :
1646 ac_retval=0
1647 else
1648 $as_echo "$as_me: failed program was:" >&5
1649 sed 's/^/| /' conftest.$ac_ext >&5
1651 ac_retval=1
1653 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1654 as_fn_set_status $ac_retval
1656 } # ac_fn_cxx_try_compile
1658 # ac_fn_c_try_link LINENO
1659 # -----------------------
1660 # Try to link conftest.$ac_ext, and return whether this succeeded.
1661 ac_fn_c_try_link ()
1663 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1664 rm -f conftest.$ac_objext conftest$ac_exeext
1665 if { { ac_try="$ac_link"
1666 case "(($ac_try" in
1667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1668 *) ac_try_echo=$ac_try;;
1669 esac
1670 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1671 $as_echo "$ac_try_echo"; } >&5
1672 (eval "$ac_link") 2>conftest.err
1673 ac_status=$?
1674 if test -s conftest.err; then
1675 grep -v '^ *+' conftest.err >conftest.er1
1676 cat conftest.er1 >&5
1677 mv -f conftest.er1 conftest.err
1679 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1680 test $ac_status = 0; } && {
1681 test -z "$ac_c_werror_flag" ||
1682 test ! -s conftest.err
1683 } && test -s conftest$ac_exeext && {
1684 test "$cross_compiling" = yes ||
1685 test -x conftest$ac_exeext
1686 }; then :
1687 ac_retval=0
1688 else
1689 $as_echo "$as_me: failed program was:" >&5
1690 sed 's/^/| /' conftest.$ac_ext >&5
1692 ac_retval=1
1694 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1695 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1696 # interfere with the next link command; also delete a directory that is
1697 # left behind by Apple's compiler. We do this before executing the actions.
1698 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1699 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1700 as_fn_set_status $ac_retval
1702 } # ac_fn_c_try_link
1704 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1705 # -------------------------------------------------------
1706 # Tests whether HEADER exists and can be compiled using the include files in
1707 # INCLUDES, setting the cache variable VAR accordingly.
1708 ac_fn_c_check_header_compile ()
1710 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1712 $as_echo_n "checking for $2... " >&6; }
1713 if eval \${$3+:} false; then :
1714 $as_echo_n "(cached) " >&6
1715 else
1716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1717 /* end confdefs.h. */
1719 #include <$2>
1720 _ACEOF
1721 if ac_fn_c_try_compile "$LINENO"; then :
1722 eval "$3=yes"
1723 else
1724 eval "$3=no"
1726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1728 eval ac_res=\$$3
1729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1730 $as_echo "$ac_res" >&6; }
1731 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1733 } # ac_fn_c_check_header_compile
1735 # ac_fn_c_try_cpp LINENO
1736 # ----------------------
1737 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1738 ac_fn_c_try_cpp ()
1740 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1741 if { { ac_try="$ac_cpp conftest.$ac_ext"
1742 case "(($ac_try" in
1743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1744 *) ac_try_echo=$ac_try;;
1745 esac
1746 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1747 $as_echo "$ac_try_echo"; } >&5
1748 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1749 ac_status=$?
1750 if test -s conftest.err; then
1751 grep -v '^ *+' conftest.err >conftest.er1
1752 cat conftest.er1 >&5
1753 mv -f conftest.er1 conftest.err
1755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1756 test $ac_status = 0; } > conftest.i && {
1757 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1758 test ! -s conftest.err
1759 }; then :
1760 ac_retval=0
1761 else
1762 $as_echo "$as_me: failed program was:" >&5
1763 sed 's/^/| /' conftest.$ac_ext >&5
1765 ac_retval=1
1767 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1768 as_fn_set_status $ac_retval
1770 } # ac_fn_c_try_cpp
1772 # ac_fn_c_try_run LINENO
1773 # ----------------------
1774 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1775 # that executables *can* be run.
1776 ac_fn_c_try_run ()
1778 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1779 if { { ac_try="$ac_link"
1780 case "(($ac_try" in
1781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1782 *) ac_try_echo=$ac_try;;
1783 esac
1784 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1785 $as_echo "$ac_try_echo"; } >&5
1786 (eval "$ac_link") 2>&5
1787 ac_status=$?
1788 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1789 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1790 { { case "(($ac_try" in
1791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1792 *) ac_try_echo=$ac_try;;
1793 esac
1794 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1795 $as_echo "$ac_try_echo"; } >&5
1796 (eval "$ac_try") 2>&5
1797 ac_status=$?
1798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1799 test $ac_status = 0; }; }; then :
1800 ac_retval=0
1801 else
1802 $as_echo "$as_me: program exited with status $ac_status" >&5
1803 $as_echo "$as_me: failed program was:" >&5
1804 sed 's/^/| /' conftest.$ac_ext >&5
1806 ac_retval=$ac_status
1808 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1809 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1810 as_fn_set_status $ac_retval
1812 } # ac_fn_c_try_run
1814 # ac_fn_c_check_func LINENO FUNC VAR
1815 # ----------------------------------
1816 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1817 ac_fn_c_check_func ()
1819 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1821 $as_echo_n "checking for $2... " >&6; }
1822 if eval \${$3+:} false; then :
1823 $as_echo_n "(cached) " >&6
1824 else
1825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1826 /* end confdefs.h. */
1827 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1828 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1829 #define $2 innocuous_$2
1831 /* System header to define __stub macros and hopefully few prototypes,
1832 which can conflict with char $2 (); below.
1833 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1834 <limits.h> exists even on freestanding compilers. */
1836 #ifdef __STDC__
1837 # include <limits.h>
1838 #else
1839 # include <assert.h>
1840 #endif
1842 #undef $2
1844 /* Override any GCC internal prototype to avoid an error.
1845 Use char because int might match the return type of a GCC
1846 builtin and then its argument prototype would still apply. */
1847 #ifdef __cplusplus
1848 extern "C"
1849 #endif
1850 char $2 ();
1851 /* The GNU C library defines this for functions which it implements
1852 to always fail with ENOSYS. Some functions are actually named
1853 something starting with __ and the normal name is an alias. */
1854 #if defined __stub_$2 || defined __stub___$2
1855 choke me
1856 #endif
1859 main ()
1861 return $2 ();
1863 return 0;
1865 _ACEOF
1866 if ac_fn_c_try_link "$LINENO"; then :
1867 eval "$3=yes"
1868 else
1869 eval "$3=no"
1871 rm -f core conftest.err conftest.$ac_objext \
1872 conftest$ac_exeext conftest.$ac_ext
1874 eval ac_res=\$$3
1875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1876 $as_echo "$ac_res" >&6; }
1877 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1879 } # ac_fn_c_check_func
1881 # ac_fn_cxx_try_cpp LINENO
1882 # ------------------------
1883 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1884 ac_fn_cxx_try_cpp ()
1886 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1887 if { { ac_try="$ac_cpp conftest.$ac_ext"
1888 case "(($ac_try" in
1889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1890 *) ac_try_echo=$ac_try;;
1891 esac
1892 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1893 $as_echo "$ac_try_echo"; } >&5
1894 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1895 ac_status=$?
1896 if test -s conftest.err; then
1897 grep -v '^ *+' conftest.err >conftest.er1
1898 cat conftest.er1 >&5
1899 mv -f conftest.er1 conftest.err
1901 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1902 test $ac_status = 0; } > conftest.i && {
1903 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1904 test ! -s conftest.err
1905 }; then :
1906 ac_retval=0
1907 else
1908 $as_echo "$as_me: failed program was:" >&5
1909 sed 's/^/| /' conftest.$ac_ext >&5
1911 ac_retval=1
1913 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1914 as_fn_set_status $ac_retval
1916 } # ac_fn_cxx_try_cpp
1918 # ac_fn_cxx_try_link LINENO
1919 # -------------------------
1920 # Try to link conftest.$ac_ext, and return whether this succeeded.
1921 ac_fn_cxx_try_link ()
1923 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1924 rm -f conftest.$ac_objext conftest$ac_exeext
1925 if { { ac_try="$ac_link"
1926 case "(($ac_try" in
1927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1928 *) ac_try_echo=$ac_try;;
1929 esac
1930 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1931 $as_echo "$ac_try_echo"; } >&5
1932 (eval "$ac_link") 2>conftest.err
1933 ac_status=$?
1934 if test -s conftest.err; then
1935 grep -v '^ *+' conftest.err >conftest.er1
1936 cat conftest.er1 >&5
1937 mv -f conftest.er1 conftest.err
1939 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1940 test $ac_status = 0; } && {
1941 test -z "$ac_cxx_werror_flag" ||
1942 test ! -s conftest.err
1943 } && test -s conftest$ac_exeext && {
1944 test "$cross_compiling" = yes ||
1945 test -x conftest$ac_exeext
1946 }; then :
1947 ac_retval=0
1948 else
1949 $as_echo "$as_me: failed program was:" >&5
1950 sed 's/^/| /' conftest.$ac_ext >&5
1952 ac_retval=1
1954 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1955 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1956 # interfere with the next link command; also delete a directory that is
1957 # left behind by Apple's compiler. We do this before executing the actions.
1958 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1959 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1960 as_fn_set_status $ac_retval
1962 } # ac_fn_cxx_try_link
1964 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1965 # -------------------------------------------------------
1966 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1967 # the include files in INCLUDES and setting the cache variable VAR
1968 # accordingly.
1969 ac_fn_c_check_header_mongrel ()
1971 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1972 if eval \${$3+:} false; then :
1973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1974 $as_echo_n "checking for $2... " >&6; }
1975 if eval \${$3+:} false; then :
1976 $as_echo_n "(cached) " >&6
1978 eval ac_res=\$$3
1979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1980 $as_echo "$ac_res" >&6; }
1981 else
1982 # Is the header compilable?
1983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1984 $as_echo_n "checking $2 usability... " >&6; }
1985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1986 /* end confdefs.h. */
1988 #include <$2>
1989 _ACEOF
1990 if ac_fn_c_try_compile "$LINENO"; then :
1991 ac_header_compiler=yes
1992 else
1993 ac_header_compiler=no
1995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1997 $as_echo "$ac_header_compiler" >&6; }
1999 # Is the header present?
2000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2001 $as_echo_n "checking $2 presence... " >&6; }
2002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2003 /* end confdefs.h. */
2004 #include <$2>
2005 _ACEOF
2006 if ac_fn_c_try_cpp "$LINENO"; then :
2007 ac_header_preproc=yes
2008 else
2009 ac_header_preproc=no
2011 rm -f conftest.err conftest.i conftest.$ac_ext
2012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2013 $as_echo "$ac_header_preproc" >&6; }
2015 # So? What about this header?
2016 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2017 yes:no: )
2018 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2019 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2020 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2021 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2023 no:yes:* )
2024 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2025 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2026 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2027 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2028 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2029 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2030 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2031 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2032 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2033 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2035 esac
2036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2037 $as_echo_n "checking for $2... " >&6; }
2038 if eval \${$3+:} false; then :
2039 $as_echo_n "(cached) " >&6
2040 else
2041 eval "$3=\$ac_header_compiler"
2043 eval ac_res=\$$3
2044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2045 $as_echo "$ac_res" >&6; }
2047 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2049 } # ac_fn_c_check_header_mongrel
2051 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2052 # -------------------------------------------
2053 # Tests whether TYPE exists after having included INCLUDES, setting cache
2054 # variable VAR accordingly.
2055 ac_fn_c_check_type ()
2057 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2059 $as_echo_n "checking for $2... " >&6; }
2060 if eval \${$3+:} false; then :
2061 $as_echo_n "(cached) " >&6
2062 else
2063 eval "$3=no"
2064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2065 /* end confdefs.h. */
2068 main ()
2070 if (sizeof ($2))
2071 return 0;
2073 return 0;
2075 _ACEOF
2076 if ac_fn_c_try_compile "$LINENO"; then :
2077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2078 /* end confdefs.h. */
2081 main ()
2083 if (sizeof (($2)))
2084 return 0;
2086 return 0;
2088 _ACEOF
2089 if ac_fn_c_try_compile "$LINENO"; then :
2091 else
2092 eval "$3=yes"
2094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2098 eval ac_res=\$$3
2099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2100 $as_echo "$ac_res" >&6; }
2101 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2103 } # ac_fn_c_check_type
2105 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2106 # --------------------------------------------
2107 # Tries to find the compile-time value of EXPR in a program that includes
2108 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2109 # computed
2110 ac_fn_c_compute_int ()
2112 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2113 if test "$cross_compiling" = yes; then
2114 # Depending upon the size, compute the lo and hi bounds.
2115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2116 /* end confdefs.h. */
2119 main ()
2121 static int test_array [1 - 2 * !(($2) >= 0)];
2122 test_array [0] = 0;
2123 return test_array [0];
2126 return 0;
2128 _ACEOF
2129 if ac_fn_c_try_compile "$LINENO"; then :
2130 ac_lo=0 ac_mid=0
2131 while :; do
2132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2133 /* end confdefs.h. */
2136 main ()
2138 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2139 test_array [0] = 0;
2140 return test_array [0];
2143 return 0;
2145 _ACEOF
2146 if ac_fn_c_try_compile "$LINENO"; then :
2147 ac_hi=$ac_mid; break
2148 else
2149 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2150 if test $ac_lo -le $ac_mid; then
2151 ac_lo= ac_hi=
2152 break
2154 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2157 done
2158 else
2159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2160 /* end confdefs.h. */
2163 main ()
2165 static int test_array [1 - 2 * !(($2) < 0)];
2166 test_array [0] = 0;
2167 return test_array [0];
2170 return 0;
2172 _ACEOF
2173 if ac_fn_c_try_compile "$LINENO"; then :
2174 ac_hi=-1 ac_mid=-1
2175 while :; do
2176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2177 /* end confdefs.h. */
2180 main ()
2182 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2183 test_array [0] = 0;
2184 return test_array [0];
2187 return 0;
2189 _ACEOF
2190 if ac_fn_c_try_compile "$LINENO"; then :
2191 ac_lo=$ac_mid; break
2192 else
2193 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2194 if test $ac_mid -le $ac_hi; then
2195 ac_lo= ac_hi=
2196 break
2198 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2201 done
2202 else
2203 ac_lo= ac_hi=
2205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2208 # Binary search between lo and hi bounds.
2209 while test "x$ac_lo" != "x$ac_hi"; do
2210 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2212 /* end confdefs.h. */
2215 main ()
2217 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2218 test_array [0] = 0;
2219 return test_array [0];
2222 return 0;
2224 _ACEOF
2225 if ac_fn_c_try_compile "$LINENO"; then :
2226 ac_hi=$ac_mid
2227 else
2228 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2231 done
2232 case $ac_lo in #((
2233 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2234 '') ac_retval=1 ;;
2235 esac
2236 else
2237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2238 /* end confdefs.h. */
2240 static long int longval () { return $2; }
2241 static unsigned long int ulongval () { return $2; }
2242 #include <stdio.h>
2243 #include <stdlib.h>
2245 main ()
2248 FILE *f = fopen ("conftest.val", "w");
2249 if (! f)
2250 return 1;
2251 if (($2) < 0)
2253 long int i = longval ();
2254 if (i != ($2))
2255 return 1;
2256 fprintf (f, "%ld", i);
2258 else
2260 unsigned long int i = ulongval ();
2261 if (i != ($2))
2262 return 1;
2263 fprintf (f, "%lu", i);
2265 /* Do not output a trailing newline, as this causes \r\n confusion
2266 on some platforms. */
2267 return ferror (f) || fclose (f) != 0;
2270 return 0;
2272 _ACEOF
2273 if ac_fn_c_try_run "$LINENO"; then :
2274 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2275 else
2276 ac_retval=1
2278 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2279 conftest.$ac_objext conftest.beam conftest.$ac_ext
2280 rm -f conftest.val
2283 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2284 as_fn_set_status $ac_retval
2286 } # ac_fn_c_compute_int
2288 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2289 # ---------------------------------------------
2290 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2291 # accordingly.
2292 ac_fn_c_check_decl ()
2294 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2295 as_decl_name=`echo $2|sed 's/ *(.*//'`
2296 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2298 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2299 if eval \${$3+:} false; then :
2300 $as_echo_n "(cached) " >&6
2301 else
2302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2303 /* end confdefs.h. */
2306 main ()
2308 #ifndef $as_decl_name
2309 #ifdef __cplusplus
2310 (void) $as_decl_use;
2311 #else
2312 (void) $as_decl_name;
2313 #endif
2314 #endif
2317 return 0;
2319 _ACEOF
2320 if ac_fn_c_try_compile "$LINENO"; then :
2321 eval "$3=yes"
2322 else
2323 eval "$3=no"
2325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2327 eval ac_res=\$$3
2328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2329 $as_echo "$ac_res" >&6; }
2330 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2332 } # ac_fn_c_check_decl
2333 cat >config.log <<_ACEOF
2334 This file contains any messages produced by compilers while
2335 running configure, to aid debugging if configure makes a mistake.
2337 It was created by GNU TM Runtime Library $as_me 1.0, which was
2338 generated by GNU Autoconf 2.69. Invocation command line was
2340 $ $0 $@
2342 _ACEOF
2343 exec 5>>config.log
2345 cat <<_ASUNAME
2346 ## --------- ##
2347 ## Platform. ##
2348 ## --------- ##
2350 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2351 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2352 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2353 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2354 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2356 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2357 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2359 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2360 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2361 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2362 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2363 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2364 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2365 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2367 _ASUNAME
2369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2370 for as_dir in $PATH
2372 IFS=$as_save_IFS
2373 test -z "$as_dir" && as_dir=.
2374 $as_echo "PATH: $as_dir"
2375 done
2376 IFS=$as_save_IFS
2378 } >&5
2380 cat >&5 <<_ACEOF
2383 ## ----------- ##
2384 ## Core tests. ##
2385 ## ----------- ##
2387 _ACEOF
2390 # Keep a trace of the command line.
2391 # Strip out --no-create and --no-recursion so they do not pile up.
2392 # Strip out --silent because we don't want to record it for future runs.
2393 # Also quote any args containing shell meta-characters.
2394 # Make two passes to allow for proper duplicate-argument suppression.
2395 ac_configure_args=
2396 ac_configure_args0=
2397 ac_configure_args1=
2398 ac_must_keep_next=false
2399 for ac_pass in 1 2
2401 for ac_arg
2403 case $ac_arg in
2404 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2405 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2406 | -silent | --silent | --silen | --sile | --sil)
2407 continue ;;
2408 *\'*)
2409 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2410 esac
2411 case $ac_pass in
2412 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2414 as_fn_append ac_configure_args1 " '$ac_arg'"
2415 if test $ac_must_keep_next = true; then
2416 ac_must_keep_next=false # Got value, back to normal.
2417 else
2418 case $ac_arg in
2419 *=* | --config-cache | -C | -disable-* | --disable-* \
2420 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2421 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2422 | -with-* | --with-* | -without-* | --without-* | --x)
2423 case "$ac_configure_args0 " in
2424 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2425 esac
2427 -* ) ac_must_keep_next=true ;;
2428 esac
2430 as_fn_append ac_configure_args " '$ac_arg'"
2432 esac
2433 done
2434 done
2435 { ac_configure_args0=; unset ac_configure_args0;}
2436 { ac_configure_args1=; unset ac_configure_args1;}
2438 # When interrupted or exit'd, cleanup temporary files, and complete
2439 # config.log. We remove comments because anyway the quotes in there
2440 # would cause problems or look ugly.
2441 # WARNING: Use '\'' to represent an apostrophe within the trap.
2442 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2443 trap 'exit_status=$?
2444 # Save into config.log some information that might help in debugging.
2446 echo
2448 $as_echo "## ---------------- ##
2449 ## Cache variables. ##
2450 ## ---------------- ##"
2451 echo
2452 # The following way of writing the cache mishandles newlines in values,
2454 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2455 eval ac_val=\$$ac_var
2456 case $ac_val in #(
2457 *${as_nl}*)
2458 case $ac_var in #(
2459 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2460 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2461 esac
2462 case $ac_var in #(
2463 _ | IFS | as_nl) ;; #(
2464 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2465 *) { eval $ac_var=; unset $ac_var;} ;;
2466 esac ;;
2467 esac
2468 done
2469 (set) 2>&1 |
2470 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2471 *${as_nl}ac_space=\ *)
2472 sed -n \
2473 "s/'\''/'\''\\\\'\'''\''/g;
2474 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2475 ;; #(
2477 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2479 esac |
2480 sort
2482 echo
2484 $as_echo "## ----------------- ##
2485 ## Output variables. ##
2486 ## ----------------- ##"
2487 echo
2488 for ac_var in $ac_subst_vars
2490 eval ac_val=\$$ac_var
2491 case $ac_val in
2492 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2493 esac
2494 $as_echo "$ac_var='\''$ac_val'\''"
2495 done | sort
2496 echo
2498 if test -n "$ac_subst_files"; then
2499 $as_echo "## ------------------- ##
2500 ## File substitutions. ##
2501 ## ------------------- ##"
2502 echo
2503 for ac_var in $ac_subst_files
2505 eval ac_val=\$$ac_var
2506 case $ac_val in
2507 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2508 esac
2509 $as_echo "$ac_var='\''$ac_val'\''"
2510 done | sort
2511 echo
2514 if test -s confdefs.h; then
2515 $as_echo "## ----------- ##
2516 ## confdefs.h. ##
2517 ## ----------- ##"
2518 echo
2519 cat confdefs.h
2520 echo
2522 test "$ac_signal" != 0 &&
2523 $as_echo "$as_me: caught signal $ac_signal"
2524 $as_echo "$as_me: exit $exit_status"
2525 } >&5
2526 rm -f core *.core core.conftest.* &&
2527 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2528 exit $exit_status
2530 for ac_signal in 1 2 13 15; do
2531 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2532 done
2533 ac_signal=0
2535 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2536 rm -f -r conftest* confdefs.h
2538 $as_echo "/* confdefs.h */" > confdefs.h
2540 # Predefined preprocessor variables.
2542 cat >>confdefs.h <<_ACEOF
2543 #define PACKAGE_NAME "$PACKAGE_NAME"
2544 _ACEOF
2546 cat >>confdefs.h <<_ACEOF
2547 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2548 _ACEOF
2550 cat >>confdefs.h <<_ACEOF
2551 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2552 _ACEOF
2554 cat >>confdefs.h <<_ACEOF
2555 #define PACKAGE_STRING "$PACKAGE_STRING"
2556 _ACEOF
2558 cat >>confdefs.h <<_ACEOF
2559 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2560 _ACEOF
2562 cat >>confdefs.h <<_ACEOF
2563 #define PACKAGE_URL "$PACKAGE_URL"
2564 _ACEOF
2567 # Let the site file select an alternate cache file if it wants to.
2568 # Prefer an explicitly selected file to automatically selected ones.
2569 ac_site_file1=NONE
2570 ac_site_file2=NONE
2571 if test -n "$CONFIG_SITE"; then
2572 # We do not want a PATH search for config.site.
2573 case $CONFIG_SITE in #((
2574 -*) ac_site_file1=./$CONFIG_SITE;;
2575 */*) ac_site_file1=$CONFIG_SITE;;
2576 *) ac_site_file1=./$CONFIG_SITE;;
2577 esac
2578 elif test "x$prefix" != xNONE; then
2579 ac_site_file1=$prefix/share/config.site
2580 ac_site_file2=$prefix/etc/config.site
2581 else
2582 ac_site_file1=$ac_default_prefix/share/config.site
2583 ac_site_file2=$ac_default_prefix/etc/config.site
2585 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2587 test "x$ac_site_file" = xNONE && continue
2588 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2589 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2590 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2591 sed 's/^/| /' "$ac_site_file" >&5
2592 . "$ac_site_file" \
2593 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2594 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2595 as_fn_error $? "failed to load site script $ac_site_file
2596 See \`config.log' for more details" "$LINENO" 5; }
2598 done
2600 if test -r "$cache_file"; then
2601 # Some versions of bash will fail to source /dev/null (special files
2602 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2603 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2605 $as_echo "$as_me: loading cache $cache_file" >&6;}
2606 case $cache_file in
2607 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2608 *) . "./$cache_file";;
2609 esac
2611 else
2612 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2613 $as_echo "$as_me: creating cache $cache_file" >&6;}
2614 >$cache_file
2617 # Check that the precious variables saved in the cache have kept the same
2618 # value.
2619 ac_cache_corrupted=false
2620 for ac_var in $ac_precious_vars; do
2621 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2622 eval ac_new_set=\$ac_env_${ac_var}_set
2623 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2624 eval ac_new_val=\$ac_env_${ac_var}_value
2625 case $ac_old_set,$ac_new_set in
2626 set,)
2627 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2628 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2629 ac_cache_corrupted=: ;;
2630 ,set)
2631 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2632 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2633 ac_cache_corrupted=: ;;
2634 ,);;
2636 if test "x$ac_old_val" != "x$ac_new_val"; then
2637 # differences in whitespace do not lead to failure.
2638 ac_old_val_w=`echo x $ac_old_val`
2639 ac_new_val_w=`echo x $ac_new_val`
2640 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2642 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2643 ac_cache_corrupted=:
2644 else
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2646 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2647 eval $ac_var=\$ac_old_val
2649 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2650 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2652 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2653 fi;;
2654 esac
2655 # Pass precious variables to config.status.
2656 if test "$ac_new_set" = set; then
2657 case $ac_new_val in
2658 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2659 *) ac_arg=$ac_var=$ac_new_val ;;
2660 esac
2661 case " $ac_configure_args " in
2662 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2663 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2664 esac
2666 done
2667 if $ac_cache_corrupted; then
2668 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2669 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2670 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2671 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2672 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2674 ## -------------------- ##
2675 ## Main body of script. ##
2676 ## -------------------- ##
2678 ac_ext=c
2679 ac_cpp='$CPP $CPPFLAGS'
2680 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2681 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2682 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2688 ac_config_headers="$ac_config_headers config.h"
2691 # -------
2692 # Options
2693 # -------
2695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2696 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2697 # Check whether --enable-version-specific-runtime-libs was given.
2698 if test "${enable_version_specific_runtime_libs+set}" = set; then :
2699 enableval=$enable_version_specific_runtime_libs;
2700 case "$enableval" in
2701 yes|no) ;;
2702 *) as_fn_error $? "Unknown argument to enable/disable version-specific-runtime-libs" "$LINENO" 5 ;;
2703 esac
2705 else
2706 enable_version_specific_runtime_libs=no
2710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_version_specific_runtime_libs" >&5
2711 $as_echo "$enable_version_specific_runtime_libs" >&6; }
2713 # We would like our source tree to be readonly. However when releases or
2714 # pre-releases are generated, the flex/bison generated files as well as the
2715 # various formats of manuals need to be included along with the rest of the
2716 # sources. Therefore we have --enable-generated-files-in-srcdir to do
2717 # just that.
2718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-generated-files-in-srcdir" >&5
2719 $as_echo_n "checking for --enable-generated-files-in-srcdir... " >&6; }
2720 # Check whether --enable-generated-files-in-srcdir was given.
2721 if test "${enable_generated_files_in_srcdir+set}" = set; then :
2722 enableval=$enable_generated_files_in_srcdir;
2723 case "$enableval" in
2724 yes|no) ;;
2725 *) as_fn_error $? "Unknown argument to enable/disable generated-files-in-srcdir" "$LINENO" 5 ;;
2726 esac
2728 else
2729 enable_generated_files_in_srcdir=no
2733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_generated_files_in_srcdir" >&5
2734 $as_echo "$enable_generated_files_in_srcdir" >&6; }
2735 if test "$enable_generated_files_in_srcdir" = yes; then
2736 GENINSRC_TRUE=
2737 GENINSRC_FALSE='#'
2738 else
2739 GENINSRC_TRUE='#'
2740 GENINSRC_FALSE=
2745 # -------
2746 # -------
2748 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
2750 # You will slowly go insane if you do not grok the following fact: when
2751 # building this library, the top-level /target/ becomes the library's /host/.
2753 # configure then causes --target to default to --host, exactly like any
2754 # other package using autoconf. Therefore, 'target' and 'host' will
2755 # always be the same. This makes sense both for native and cross compilers
2756 # just think about it for a little while. :-)
2758 # Also, if this library is being configured as part of a cross compiler, the
2759 # top-level configure script will pass the "real" host as $with_cross_host.
2761 # Do not delete or change the following two lines. For why, see
2762 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
2763 ac_aux_dir=
2764 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2765 if test -f "$ac_dir/install-sh"; then
2766 ac_aux_dir=$ac_dir
2767 ac_install_sh="$ac_aux_dir/install-sh -c"
2768 break
2769 elif test -f "$ac_dir/install.sh"; then
2770 ac_aux_dir=$ac_dir
2771 ac_install_sh="$ac_aux_dir/install.sh -c"
2772 break
2773 elif test -f "$ac_dir/shtool"; then
2774 ac_aux_dir=$ac_dir
2775 ac_install_sh="$ac_aux_dir/shtool install -c"
2776 break
2778 done
2779 if test -z "$ac_aux_dir"; then
2780 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2783 # These three variables are undocumented and unsupported,
2784 # and are intended to be withdrawn in a future Autoconf release.
2785 # They can cause serious problems if a builder's source tree is in a directory
2786 # whose full name contains unusual characters.
2787 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2788 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2789 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2792 # Make sure we can run config.sub.
2793 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2794 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2797 $as_echo_n "checking build system type... " >&6; }
2798 if ${ac_cv_build+:} false; then :
2799 $as_echo_n "(cached) " >&6
2800 else
2801 ac_build_alias=$build_alias
2802 test "x$ac_build_alias" = x &&
2803 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2804 test "x$ac_build_alias" = x &&
2805 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2806 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2807 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2811 $as_echo "$ac_cv_build" >&6; }
2812 case $ac_cv_build in
2813 *-*-*) ;;
2814 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2815 esac
2816 build=$ac_cv_build
2817 ac_save_IFS=$IFS; IFS='-'
2818 set x $ac_cv_build
2819 shift
2820 build_cpu=$1
2821 build_vendor=$2
2822 shift; shift
2823 # Remember, the first character of IFS is used to create $*,
2824 # except with old shells:
2825 build_os=$*
2826 IFS=$ac_save_IFS
2827 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2831 $as_echo_n "checking host system type... " >&6; }
2832 if ${ac_cv_host+:} false; then :
2833 $as_echo_n "(cached) " >&6
2834 else
2835 if test "x$host_alias" = x; then
2836 ac_cv_host=$ac_cv_build
2837 else
2838 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2839 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2844 $as_echo "$ac_cv_host" >&6; }
2845 case $ac_cv_host in
2846 *-*-*) ;;
2847 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2848 esac
2849 host=$ac_cv_host
2850 ac_save_IFS=$IFS; IFS='-'
2851 set x $ac_cv_host
2852 shift
2853 host_cpu=$1
2854 host_vendor=$2
2855 shift; shift
2856 # Remember, the first character of IFS is used to create $*,
2857 # except with old shells:
2858 host_os=$*
2859 IFS=$ac_save_IFS
2860 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2864 $as_echo_n "checking target system type... " >&6; }
2865 if ${ac_cv_target+:} false; then :
2866 $as_echo_n "(cached) " >&6
2867 else
2868 if test "x$target_alias" = x; then
2869 ac_cv_target=$ac_cv_host
2870 else
2871 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2872 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2877 $as_echo "$ac_cv_target" >&6; }
2878 case $ac_cv_target in
2879 *-*-*) ;;
2880 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2881 esac
2882 target=$ac_cv_target
2883 ac_save_IFS=$IFS; IFS='-'
2884 set x $ac_cv_target
2885 shift
2886 target_cpu=$1
2887 target_vendor=$2
2888 shift; shift
2889 # Remember, the first character of IFS is used to create $*,
2890 # except with old shells:
2891 target_os=$*
2892 IFS=$ac_save_IFS
2893 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2896 # The aliases save the names the user supplied, while $host etc.
2897 # will get canonicalized.
2898 test -n "$target_alias" &&
2899 test "$program_prefix$program_suffix$program_transform_name" = \
2900 NONENONEs,x,x, &&
2901 program_prefix=${target_alias}-
2903 target_alias=${target_alias-$host_alias}
2905 # Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
2906 # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
2907 # 1.9.0: minimum required version
2908 # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
2909 # of other PACKAGE_* variables will, however, and there's nothing
2910 # we can do about that; they come from AC_INIT).
2911 # no-dist: we don't want 'dist' and related rules.
2912 # foreign: we don't follow the normal rules for GNU packages (no COPYING
2913 # file in the top srcdir, etc, etc), so stop complaining.
2914 # -Wall: turns on all automake warnings...
2915 # -Wno-portability: ...except this one, since GNU make is required.
2916 # -Wno-override: ... and this one, since we do want this in testsuite.
2917 am__api_version='1.15'
2919 # Find a good install program. We prefer a C program (faster),
2920 # so one script is as good as another. But avoid the broken or
2921 # incompatible versions:
2922 # SysV /etc/install, /usr/sbin/install
2923 # SunOS /usr/etc/install
2924 # IRIX /sbin/install
2925 # AIX /bin/install
2926 # AmigaOS /C/install, which installs bootblocks on floppy discs
2927 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2928 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2929 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2930 # OS/2's system install, which has a completely different semantic
2931 # ./install, which can be erroneously created by make from ./install.sh.
2932 # Reject install programs that cannot install multiple files.
2933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2934 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2935 if test -z "$INSTALL"; then
2936 if ${ac_cv_path_install+:} false; then :
2937 $as_echo_n "(cached) " >&6
2938 else
2939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2940 for as_dir in $PATH
2942 IFS=$as_save_IFS
2943 test -z "$as_dir" && as_dir=.
2944 # Account for people who put trailing slashes in PATH elements.
2945 case $as_dir/ in #((
2946 ./ | .// | /[cC]/* | \
2947 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2948 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2949 /usr/ucb/* ) ;;
2951 # OSF1 and SCO ODT 3.0 have their own names for install.
2952 # Don't use installbsd from OSF since it installs stuff as root
2953 # by default.
2954 for ac_prog in ginstall scoinst install; do
2955 for ac_exec_ext in '' $ac_executable_extensions; do
2956 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2957 if test $ac_prog = install &&
2958 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2959 # AIX install. It has an incompatible calling convention.
2961 elif test $ac_prog = install &&
2962 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2963 # program-specific install script used by HP pwplus--don't use.
2965 else
2966 rm -rf conftest.one conftest.two conftest.dir
2967 echo one > conftest.one
2968 echo two > conftest.two
2969 mkdir conftest.dir
2970 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2971 test -s conftest.one && test -s conftest.two &&
2972 test -s conftest.dir/conftest.one &&
2973 test -s conftest.dir/conftest.two
2974 then
2975 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2976 break 3
2980 done
2981 done
2983 esac
2985 done
2986 IFS=$as_save_IFS
2988 rm -rf conftest.one conftest.two conftest.dir
2991 if test "${ac_cv_path_install+set}" = set; then
2992 INSTALL=$ac_cv_path_install
2993 else
2994 # As a last resort, use the slow shell script. Don't cache a
2995 # value for INSTALL within a source directory, because that will
2996 # break other packages using the cache if that directory is
2997 # removed, or if the value is a relative name.
2998 INSTALL=$ac_install_sh
3001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3002 $as_echo "$INSTALL" >&6; }
3004 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3005 # It thinks the first close brace ends the variable substitution.
3006 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3008 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3010 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3013 $as_echo_n "checking whether build environment is sane... " >&6; }
3014 # Reject unsafe characters in $srcdir or the absolute working directory
3015 # name. Accept space and tab only in the latter.
3016 am_lf='
3018 case `pwd` in
3019 *[\\\"\#\$\&\'\`$am_lf]*)
3020 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3021 esac
3022 case $srcdir in
3023 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3024 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3025 esac
3027 # Do 'set' in a subshell so we don't clobber the current shell's
3028 # arguments. Must try -L first in case configure is actually a
3029 # symlink; some systems play weird games with the mod time of symlinks
3030 # (eg FreeBSD returns the mod time of the symlink's containing
3031 # directory).
3032 if (
3033 am_has_slept=no
3034 for am_try in 1 2; do
3035 echo "timestamp, slept: $am_has_slept" > conftest.file
3036 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3037 if test "$*" = "X"; then
3038 # -L didn't work.
3039 set X `ls -t "$srcdir/configure" conftest.file`
3041 if test "$*" != "X $srcdir/configure conftest.file" \
3042 && test "$*" != "X conftest.file $srcdir/configure"; then
3044 # If neither matched, then we have a broken ls. This can happen
3045 # if, for instance, CONFIG_SHELL is bash and it inherits a
3046 # broken ls alias from the environment. This has actually
3047 # happened. Such a system could not be considered "sane".
3048 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3049 alias in your environment" "$LINENO" 5
3051 if test "$2" = conftest.file || test $am_try -eq 2; then
3052 break
3054 # Just in case.
3055 sleep 1
3056 am_has_slept=yes
3057 done
3058 test "$2" = conftest.file
3060 then
3061 # Ok.
3063 else
3064 as_fn_error $? "newly created file is older than distributed files!
3065 Check your system clock" "$LINENO" 5
3067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3068 $as_echo "yes" >&6; }
3069 # If we didn't sleep, we still need to ensure time stamps of config.status and
3070 # generated files are strictly newer.
3071 am_sleep_pid=
3072 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3073 ( sleep 1 ) &
3074 am_sleep_pid=$!
3077 rm -f conftest.file
3079 test "$program_prefix" != NONE &&
3080 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3081 # Use a double $ so make ignores it.
3082 test "$program_suffix" != NONE &&
3083 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3084 # Double any \ or $.
3085 # By default was `s,x,x', remove it if useless.
3086 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3087 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3089 # Expand $ac_aux_dir to an absolute path.
3090 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3092 if test x"${MISSING+set}" != xset; then
3093 case $am_aux_dir in
3094 *\ * | *\ *)
3095 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3097 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3098 esac
3100 # Use eval to expand $SHELL
3101 if eval "$MISSING --is-lightweight"; then
3102 am_missing_run="$MISSING "
3103 else
3104 am_missing_run=
3105 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3106 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3109 if test x"${install_sh+set}" != xset; then
3110 case $am_aux_dir in
3111 *\ * | *\ *)
3112 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3114 install_sh="\${SHELL} $am_aux_dir/install-sh"
3115 esac
3118 # Installed binaries are usually stripped using 'strip' when the user
3119 # run "make install-strip". However 'strip' might not be the right
3120 # tool to use in cross-compilation environments, therefore Automake
3121 # will honor the 'STRIP' environment variable to overrule this program.
3122 if test "$cross_compiling" != no; then
3123 if test -n "$ac_tool_prefix"; then
3124 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3125 set dummy ${ac_tool_prefix}strip; ac_word=$2
3126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3127 $as_echo_n "checking for $ac_word... " >&6; }
3128 if ${ac_cv_prog_STRIP+:} false; then :
3129 $as_echo_n "(cached) " >&6
3130 else
3131 if test -n "$STRIP"; then
3132 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3133 else
3134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3135 for as_dir in $PATH
3137 IFS=$as_save_IFS
3138 test -z "$as_dir" && as_dir=.
3139 for ac_exec_ext in '' $ac_executable_extensions; do
3140 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3141 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3143 break 2
3145 done
3146 done
3147 IFS=$as_save_IFS
3151 STRIP=$ac_cv_prog_STRIP
3152 if test -n "$STRIP"; then
3153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3154 $as_echo "$STRIP" >&6; }
3155 else
3156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3157 $as_echo "no" >&6; }
3162 if test -z "$ac_cv_prog_STRIP"; then
3163 ac_ct_STRIP=$STRIP
3164 # Extract the first word of "strip", so it can be a program name with args.
3165 set dummy strip; ac_word=$2
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3167 $as_echo_n "checking for $ac_word... " >&6; }
3168 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3169 $as_echo_n "(cached) " >&6
3170 else
3171 if test -n "$ac_ct_STRIP"; then
3172 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3173 else
3174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3175 for as_dir in $PATH
3177 IFS=$as_save_IFS
3178 test -z "$as_dir" && as_dir=.
3179 for ac_exec_ext in '' $ac_executable_extensions; do
3180 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3181 ac_cv_prog_ac_ct_STRIP="strip"
3182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3183 break 2
3185 done
3186 done
3187 IFS=$as_save_IFS
3191 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3192 if test -n "$ac_ct_STRIP"; then
3193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3194 $as_echo "$ac_ct_STRIP" >&6; }
3195 else
3196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3197 $as_echo "no" >&6; }
3200 if test "x$ac_ct_STRIP" = x; then
3201 STRIP=":"
3202 else
3203 case $cross_compiling:$ac_tool_warned in
3204 yes:)
3205 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3206 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3207 ac_tool_warned=yes ;;
3208 esac
3209 STRIP=$ac_ct_STRIP
3211 else
3212 STRIP="$ac_cv_prog_STRIP"
3216 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3219 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3220 if test -z "$MKDIR_P"; then
3221 if ${ac_cv_path_mkdir+:} false; then :
3222 $as_echo_n "(cached) " >&6
3223 else
3224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3225 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3227 IFS=$as_save_IFS
3228 test -z "$as_dir" && as_dir=.
3229 for ac_prog in mkdir gmkdir; do
3230 for ac_exec_ext in '' $ac_executable_extensions; do
3231 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3232 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3233 'mkdir (GNU coreutils) '* | \
3234 'mkdir (coreutils) '* | \
3235 'mkdir (fileutils) '4.1*)
3236 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3237 break 3;;
3238 esac
3239 done
3240 done
3241 done
3242 IFS=$as_save_IFS
3246 test -d ./--version && rmdir ./--version
3247 if test "${ac_cv_path_mkdir+set}" = set; then
3248 MKDIR_P="$ac_cv_path_mkdir -p"
3249 else
3250 # As a last resort, use the slow shell script. Don't cache a
3251 # value for MKDIR_P within a source directory, because that will
3252 # break other packages using the cache if that directory is
3253 # removed, or if the value is a relative name.
3254 MKDIR_P="$ac_install_sh -d"
3257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3258 $as_echo "$MKDIR_P" >&6; }
3260 for ac_prog in gawk mawk nawk awk
3262 # Extract the first word of "$ac_prog", so it can be a program name with args.
3263 set dummy $ac_prog; ac_word=$2
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3265 $as_echo_n "checking for $ac_word... " >&6; }
3266 if ${ac_cv_prog_AWK+:} false; then :
3267 $as_echo_n "(cached) " >&6
3268 else
3269 if test -n "$AWK"; then
3270 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3271 else
3272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3273 for as_dir in $PATH
3275 IFS=$as_save_IFS
3276 test -z "$as_dir" && as_dir=.
3277 for ac_exec_ext in '' $ac_executable_extensions; do
3278 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3279 ac_cv_prog_AWK="$ac_prog"
3280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3281 break 2
3283 done
3284 done
3285 IFS=$as_save_IFS
3289 AWK=$ac_cv_prog_AWK
3290 if test -n "$AWK"; then
3291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3292 $as_echo "$AWK" >&6; }
3293 else
3294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3295 $as_echo "no" >&6; }
3299 test -n "$AWK" && break
3300 done
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3303 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3304 set x ${MAKE-make}
3305 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3306 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3307 $as_echo_n "(cached) " >&6
3308 else
3309 cat >conftest.make <<\_ACEOF
3310 SHELL = /bin/sh
3311 all:
3312 @echo '@@@%%%=$(MAKE)=@@@%%%'
3313 _ACEOF
3314 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3315 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3316 *@@@%%%=?*=@@@%%%*)
3317 eval ac_cv_prog_make_${ac_make}_set=yes;;
3319 eval ac_cv_prog_make_${ac_make}_set=no;;
3320 esac
3321 rm -f conftest.make
3323 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3325 $as_echo "yes" >&6; }
3326 SET_MAKE=
3327 else
3328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3329 $as_echo "no" >&6; }
3330 SET_MAKE="MAKE=${MAKE-make}"
3333 rm -rf .tst 2>/dev/null
3334 mkdir .tst 2>/dev/null
3335 if test -d .tst; then
3336 am__leading_dot=.
3337 else
3338 am__leading_dot=_
3340 rmdir .tst 2>/dev/null
3342 # Check whether --enable-silent-rules was given.
3343 if test "${enable_silent_rules+set}" = set; then :
3344 enableval=$enable_silent_rules;
3347 case $enable_silent_rules in # (((
3348 yes) AM_DEFAULT_VERBOSITY=0;;
3349 no) AM_DEFAULT_VERBOSITY=1;;
3350 *) AM_DEFAULT_VERBOSITY=1;;
3351 esac
3352 am_make=${MAKE-make}
3353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3354 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3355 if ${am_cv_make_support_nested_variables+:} false; then :
3356 $as_echo_n "(cached) " >&6
3357 else
3358 if $as_echo 'TRUE=$(BAR$(V))
3359 BAR0=false
3360 BAR1=true
3362 am__doit:
3363 @$(TRUE)
3364 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3365 am_cv_make_support_nested_variables=yes
3366 else
3367 am_cv_make_support_nested_variables=no
3370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3371 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3372 if test $am_cv_make_support_nested_variables = yes; then
3373 AM_V='$(V)'
3374 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3375 else
3376 AM_V=$AM_DEFAULT_VERBOSITY
3377 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3379 AM_BACKSLASH='\'
3381 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3382 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3383 # is not polluted with repeated "-I."
3384 am__isrc=' -I$(srcdir)'
3385 # test to see if srcdir already configured
3386 if test -f $srcdir/config.status; then
3387 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3391 # test whether we have cygpath
3392 if test -z "$CYGPATH_W"; then
3393 if (cygpath --version) >/dev/null 2>/dev/null; then
3394 CYGPATH_W='cygpath -w'
3395 else
3396 CYGPATH_W=echo
3401 # Define the identity of the package.
3402 PACKAGE='libitm'
3403 VERSION='1.0'
3406 cat >>confdefs.h <<_ACEOF
3407 #define PACKAGE "$PACKAGE"
3408 _ACEOF
3411 cat >>confdefs.h <<_ACEOF
3412 #define VERSION "$VERSION"
3413 _ACEOF
3415 # Some tools Automake needs.
3417 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3420 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3423 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3426 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3429 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3431 # For better backward compatibility. To be removed once Automake 1.9.x
3432 # dies out for good. For more background, see:
3433 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3434 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3435 mkdir_p='$(MKDIR_P)'
3437 # We need awk for the "check" target (and possibly the TAP driver). The
3438 # system "awk" is bad on some platforms.
3439 # Always define AMTAR for backward compatibility. Yes, it's still used
3440 # in the wild :-( We should find a proper way to deprecate it ...
3441 AMTAR='$${TAR-tar}'
3444 # We'll loop over all known methods to create a tar archive until one works.
3445 _am_tools='gnutar pax cpio none'
3447 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3454 # POSIX will say in a future version that running "rm -f" with no argument
3455 # is OK; and we want to be able to make that assumption in our Makefile
3456 # recipes. So use an aggressive probe to check that the usage we want is
3457 # actually supported "in the wild" to an acceptable degree.
3458 # See automake bug#10828.
3459 # To make any issue more visible, cause the running configure to be aborted
3460 # by default if the 'rm' program in use doesn't match our expectations; the
3461 # user can still override this though.
3462 if rm -f && rm -fr && rm -rf; then : OK; else
3463 cat >&2 <<'END'
3464 Oops!
3466 Your 'rm' program seems unable to run without file operands specified
3467 on the command line, even when the '-f' option is present. This is contrary
3468 to the behaviour of most rm programs out there, and not conforming with
3469 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3471 Please tell bug-automake@gnu.org about your system, including the value
3472 of your $PATH and any error possibly output before this message. This
3473 can help us improve future automake versions.
3476 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3477 echo 'Configuration will proceed anyway, since you have set the' >&2
3478 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3479 echo >&2
3480 else
3481 cat >&2 <<'END'
3482 Aborting the configuration process, to ensure you take notice of the issue.
3484 You can download and install GNU coreutils to get an 'rm' implementation
3485 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3487 If you want to complete the configuration process using your problematic
3488 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3489 to "yes", and re-run configure.
3492 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3496 # Default to --enable-multilib
3497 # Check whether --enable-multilib was given.
3498 if test "${enable_multilib+set}" = set; then :
3499 enableval=$enable_multilib; case "$enableval" in
3500 yes) multilib=yes ;;
3501 no) multilib=no ;;
3502 *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;;
3503 esac
3504 else
3505 multilib=yes
3509 # We may get other options which we leave undocumented:
3510 # --with-target-subdir, --with-multisrctop, --with-multisubdir
3511 # See config-ml.in if you want the gory details.
3513 if test "$srcdir" = "."; then
3514 if test "$with_target_subdir" != "."; then
3515 multi_basedir="$srcdir/$with_multisrctop../.."
3516 else
3517 multi_basedir="$srcdir/$with_multisrctop.."
3519 else
3520 multi_basedir="$srcdir/.."
3524 # Even if the default multilib is not a cross compilation,
3525 # it may be that some of the other multilibs are.
3526 if test $cross_compiling = no && test $multilib = yes \
3527 && test "x${with_multisubdir}" != x ; then
3528 cross_compiling=maybe
3531 ac_config_commands="$ac_config_commands default-1"
3535 # Check whether --with-toolexeclibdir was given.
3536 if test "${with_toolexeclibdir+set}" = set; then :
3537 withval=$with_toolexeclibdir; case ${with_toolexeclibdir} in
3541 with_toolexeclibdir=`echo $with_toolexeclibdir | sed 's,/$,,'`
3543 esac
3544 else
3545 with_toolexeclibdir=no
3550 # Calculate toolexeclibdir
3551 # Also toolexecdir, though it's only used in toolexeclibdir
3552 case ${enable_version_specific_runtime_libs} in
3553 yes)
3554 # Need the gcc compiler version to know where to install libraries
3555 # and header files if --enable-version-specific-runtime-libs option
3556 # is selected.
3557 toolexecdir='$(libdir)/gcc/$(target_alias)'
3558 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
3561 if test -n "$with_cross_host" &&
3562 test x"$with_cross_host" != x"no"; then
3563 # Install a library built with a cross compiler in tooldir, not libdir.
3564 toolexecdir='$(exec_prefix)/$(target_alias)'
3565 case ${with_toolexeclibdir} in
3567 toolexeclibdir='$(toolexecdir)/lib'
3570 toolexeclibdir=${with_toolexeclibdir}
3572 esac
3573 else
3574 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
3575 toolexeclibdir='$(libdir)'
3577 multi_os_directory=`$CC -print-multi-os-directory`
3578 case $multi_os_directory in
3579 .) ;; # Avoid trailing /.
3580 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
3581 esac
3583 esac
3587 # Check the compiler.
3588 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
3589 # We must force CC to /not/ be precious variables; otherwise
3590 # the wrong, non-multilib-adjusted value will be used in multilibs.
3591 # As a side effect, we have to subst CFLAGS ourselves.
3595 ac_ext=c
3596 ac_cpp='$CPP $CPPFLAGS'
3597 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3598 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3599 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3600 if test -n "$ac_tool_prefix"; then
3601 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3602 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3604 $as_echo_n "checking for $ac_word... " >&6; }
3605 if ${ac_cv_prog_CC+:} false; then :
3606 $as_echo_n "(cached) " >&6
3607 else
3608 if test -n "$CC"; then
3609 ac_cv_prog_CC="$CC" # Let the user override the test.
3610 else
3611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3612 for as_dir in $PATH
3614 IFS=$as_save_IFS
3615 test -z "$as_dir" && as_dir=.
3616 for ac_exec_ext in '' $ac_executable_extensions; do
3617 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3618 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3620 break 2
3622 done
3623 done
3624 IFS=$as_save_IFS
3628 CC=$ac_cv_prog_CC
3629 if test -n "$CC"; then
3630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3631 $as_echo "$CC" >&6; }
3632 else
3633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3634 $as_echo "no" >&6; }
3639 if test -z "$ac_cv_prog_CC"; then
3640 ac_ct_CC=$CC
3641 # Extract the first word of "gcc", so it can be a program name with args.
3642 set dummy gcc; ac_word=$2
3643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3644 $as_echo_n "checking for $ac_word... " >&6; }
3645 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3646 $as_echo_n "(cached) " >&6
3647 else
3648 if test -n "$ac_ct_CC"; then
3649 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3650 else
3651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3652 for as_dir in $PATH
3654 IFS=$as_save_IFS
3655 test -z "$as_dir" && as_dir=.
3656 for ac_exec_ext in '' $ac_executable_extensions; do
3657 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3658 ac_cv_prog_ac_ct_CC="gcc"
3659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3660 break 2
3662 done
3663 done
3664 IFS=$as_save_IFS
3668 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3669 if test -n "$ac_ct_CC"; then
3670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3671 $as_echo "$ac_ct_CC" >&6; }
3672 else
3673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3674 $as_echo "no" >&6; }
3677 if test "x$ac_ct_CC" = x; then
3678 CC=""
3679 else
3680 case $cross_compiling:$ac_tool_warned in
3681 yes:)
3682 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3683 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3684 ac_tool_warned=yes ;;
3685 esac
3686 CC=$ac_ct_CC
3688 else
3689 CC="$ac_cv_prog_CC"
3692 if test -z "$CC"; then
3693 if test -n "$ac_tool_prefix"; then
3694 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3695 set dummy ${ac_tool_prefix}cc; ac_word=$2
3696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3697 $as_echo_n "checking for $ac_word... " >&6; }
3698 if ${ac_cv_prog_CC+:} false; then :
3699 $as_echo_n "(cached) " >&6
3700 else
3701 if test -n "$CC"; then
3702 ac_cv_prog_CC="$CC" # Let the user override the test.
3703 else
3704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3705 for as_dir in $PATH
3707 IFS=$as_save_IFS
3708 test -z "$as_dir" && as_dir=.
3709 for ac_exec_ext in '' $ac_executable_extensions; do
3710 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3711 ac_cv_prog_CC="${ac_tool_prefix}cc"
3712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3713 break 2
3715 done
3716 done
3717 IFS=$as_save_IFS
3721 CC=$ac_cv_prog_CC
3722 if test -n "$CC"; then
3723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3724 $as_echo "$CC" >&6; }
3725 else
3726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3727 $as_echo "no" >&6; }
3733 if test -z "$CC"; then
3734 # Extract the first word of "cc", so it can be a program name with args.
3735 set dummy cc; ac_word=$2
3736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3737 $as_echo_n "checking for $ac_word... " >&6; }
3738 if ${ac_cv_prog_CC+:} false; then :
3739 $as_echo_n "(cached) " >&6
3740 else
3741 if test -n "$CC"; then
3742 ac_cv_prog_CC="$CC" # Let the user override the test.
3743 else
3744 ac_prog_rejected=no
3745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3746 for as_dir in $PATH
3748 IFS=$as_save_IFS
3749 test -z "$as_dir" && as_dir=.
3750 for ac_exec_ext in '' $ac_executable_extensions; do
3751 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3752 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3753 ac_prog_rejected=yes
3754 continue
3756 ac_cv_prog_CC="cc"
3757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3758 break 2
3760 done
3761 done
3762 IFS=$as_save_IFS
3764 if test $ac_prog_rejected = yes; then
3765 # We found a bogon in the path, so make sure we never use it.
3766 set dummy $ac_cv_prog_CC
3767 shift
3768 if test $# != 0; then
3769 # We chose a different compiler from the bogus one.
3770 # However, it has the same basename, so the bogon will be chosen
3771 # first if we set CC to just the basename; use the full file name.
3772 shift
3773 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3778 CC=$ac_cv_prog_CC
3779 if test -n "$CC"; then
3780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3781 $as_echo "$CC" >&6; }
3782 else
3783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3784 $as_echo "no" >&6; }
3789 if test -z "$CC"; then
3790 if test -n "$ac_tool_prefix"; then
3791 for ac_prog in cl.exe
3793 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3794 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3796 $as_echo_n "checking for $ac_word... " >&6; }
3797 if ${ac_cv_prog_CC+:} false; then :
3798 $as_echo_n "(cached) " >&6
3799 else
3800 if test -n "$CC"; then
3801 ac_cv_prog_CC="$CC" # Let the user override the test.
3802 else
3803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3804 for as_dir in $PATH
3806 IFS=$as_save_IFS
3807 test -z "$as_dir" && as_dir=.
3808 for ac_exec_ext in '' $ac_executable_extensions; do
3809 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3810 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3812 break 2
3814 done
3815 done
3816 IFS=$as_save_IFS
3820 CC=$ac_cv_prog_CC
3821 if test -n "$CC"; then
3822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3823 $as_echo "$CC" >&6; }
3824 else
3825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3826 $as_echo "no" >&6; }
3830 test -n "$CC" && break
3831 done
3833 if test -z "$CC"; then
3834 ac_ct_CC=$CC
3835 for ac_prog in cl.exe
3837 # Extract the first word of "$ac_prog", so it can be a program name with args.
3838 set dummy $ac_prog; ac_word=$2
3839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3840 $as_echo_n "checking for $ac_word... " >&6; }
3841 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3842 $as_echo_n "(cached) " >&6
3843 else
3844 if test -n "$ac_ct_CC"; then
3845 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3846 else
3847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3848 for as_dir in $PATH
3850 IFS=$as_save_IFS
3851 test -z "$as_dir" && as_dir=.
3852 for ac_exec_ext in '' $ac_executable_extensions; do
3853 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3854 ac_cv_prog_ac_ct_CC="$ac_prog"
3855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3856 break 2
3858 done
3859 done
3860 IFS=$as_save_IFS
3864 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3865 if test -n "$ac_ct_CC"; then
3866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3867 $as_echo "$ac_ct_CC" >&6; }
3868 else
3869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3870 $as_echo "no" >&6; }
3874 test -n "$ac_ct_CC" && break
3875 done
3877 if test "x$ac_ct_CC" = x; then
3878 CC=""
3879 else
3880 case $cross_compiling:$ac_tool_warned in
3881 yes:)
3882 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3883 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3884 ac_tool_warned=yes ;;
3885 esac
3886 CC=$ac_ct_CC
3893 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3894 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3895 as_fn_error $? "no acceptable C compiler found in \$PATH
3896 See \`config.log' for more details" "$LINENO" 5; }
3898 # Provide some information about the compiler.
3899 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3900 set X $ac_compile
3901 ac_compiler=$2
3902 for ac_option in --version -v -V -qversion; do
3903 { { ac_try="$ac_compiler $ac_option >&5"
3904 case "(($ac_try" in
3905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3906 *) ac_try_echo=$ac_try;;
3907 esac
3908 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3909 $as_echo "$ac_try_echo"; } >&5
3910 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3911 ac_status=$?
3912 if test -s conftest.err; then
3913 sed '10a\
3914 ... rest of stderr output deleted ...
3915 10q' conftest.err >conftest.er1
3916 cat conftest.er1 >&5
3918 rm -f conftest.er1 conftest.err
3919 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3920 test $ac_status = 0; }
3921 done
3923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3924 /* end confdefs.h. */
3927 main ()
3931 return 0;
3933 _ACEOF
3934 ac_clean_files_save=$ac_clean_files
3935 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3936 # Try to create an executable without -o first, disregard a.out.
3937 # It will help us diagnose broken compilers, and finding out an intuition
3938 # of exeext.
3939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3940 $as_echo_n "checking whether the C compiler works... " >&6; }
3941 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3943 # The possible output files:
3944 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3946 ac_rmfiles=
3947 for ac_file in $ac_files
3949 case $ac_file in
3950 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3951 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3952 esac
3953 done
3954 rm -f $ac_rmfiles
3956 if { { ac_try="$ac_link_default"
3957 case "(($ac_try" in
3958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3959 *) ac_try_echo=$ac_try;;
3960 esac
3961 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3962 $as_echo "$ac_try_echo"; } >&5
3963 (eval "$ac_link_default") 2>&5
3964 ac_status=$?
3965 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3966 test $ac_status = 0; }; then :
3967 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3968 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3969 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3970 # so that the user can short-circuit this test for compilers unknown to
3971 # Autoconf.
3972 for ac_file in $ac_files ''
3974 test -f "$ac_file" || continue
3975 case $ac_file in
3976 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3978 [ab].out )
3979 # We found the default executable, but exeext='' is most
3980 # certainly right.
3981 break;;
3982 *.* )
3983 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3984 then :; else
3985 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3987 # We set ac_cv_exeext here because the later test for it is not
3988 # safe: cross compilers may not add the suffix if given an `-o'
3989 # argument, so we may need to know it at that point already.
3990 # Even if this section looks crufty: it has the advantage of
3991 # actually working.
3992 break;;
3994 break;;
3995 esac
3996 done
3997 test "$ac_cv_exeext" = no && ac_cv_exeext=
3999 else
4000 ac_file=''
4002 if test -z "$ac_file"; then :
4003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4004 $as_echo "no" >&6; }
4005 $as_echo "$as_me: failed program was:" >&5
4006 sed 's/^/| /' conftest.$ac_ext >&5
4008 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4009 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4010 as_fn_error 77 "C compiler cannot create executables
4011 See \`config.log' for more details" "$LINENO" 5; }
4012 else
4013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4014 $as_echo "yes" >&6; }
4016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4017 $as_echo_n "checking for C compiler default output file name... " >&6; }
4018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4019 $as_echo "$ac_file" >&6; }
4020 ac_exeext=$ac_cv_exeext
4022 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4023 ac_clean_files=$ac_clean_files_save
4024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4025 $as_echo_n "checking for suffix of executables... " >&6; }
4026 if { { ac_try="$ac_link"
4027 case "(($ac_try" in
4028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4029 *) ac_try_echo=$ac_try;;
4030 esac
4031 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4032 $as_echo "$ac_try_echo"; } >&5
4033 (eval "$ac_link") 2>&5
4034 ac_status=$?
4035 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4036 test $ac_status = 0; }; then :
4037 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4038 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4039 # work properly (i.e., refer to `conftest.exe'), while it won't with
4040 # `rm'.
4041 for ac_file in conftest.exe conftest conftest.*; do
4042 test -f "$ac_file" || continue
4043 case $ac_file in
4044 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4045 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4046 break;;
4047 * ) break;;
4048 esac
4049 done
4050 else
4051 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4052 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4053 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4054 See \`config.log' for more details" "$LINENO" 5; }
4056 rm -f conftest conftest$ac_cv_exeext
4057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4058 $as_echo "$ac_cv_exeext" >&6; }
4060 rm -f conftest.$ac_ext
4061 EXEEXT=$ac_cv_exeext
4062 ac_exeext=$EXEEXT
4063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4064 /* end confdefs.h. */
4065 #include <stdio.h>
4067 main ()
4069 FILE *f = fopen ("conftest.out", "w");
4070 return ferror (f) || fclose (f) != 0;
4073 return 0;
4075 _ACEOF
4076 ac_clean_files="$ac_clean_files conftest.out"
4077 # Check that the compiler produces executables we can run. If not, either
4078 # the compiler is broken, or we cross compile.
4079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4080 $as_echo_n "checking whether we are cross compiling... " >&6; }
4081 if test "$cross_compiling" != yes; then
4082 { { ac_try="$ac_link"
4083 case "(($ac_try" in
4084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4085 *) ac_try_echo=$ac_try;;
4086 esac
4087 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4088 $as_echo "$ac_try_echo"; } >&5
4089 (eval "$ac_link") 2>&5
4090 ac_status=$?
4091 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4092 test $ac_status = 0; }
4093 if { ac_try='./conftest$ac_cv_exeext'
4094 { { case "(($ac_try" in
4095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4096 *) ac_try_echo=$ac_try;;
4097 esac
4098 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4099 $as_echo "$ac_try_echo"; } >&5
4100 (eval "$ac_try") 2>&5
4101 ac_status=$?
4102 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4103 test $ac_status = 0; }; }; then
4104 cross_compiling=no
4105 else
4106 if test "$cross_compiling" = maybe; then
4107 cross_compiling=yes
4108 else
4109 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4110 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4111 as_fn_error $? "cannot run C compiled programs.
4112 If you meant to cross compile, use \`--host'.
4113 See \`config.log' for more details" "$LINENO" 5; }
4117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4118 $as_echo "$cross_compiling" >&6; }
4120 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4121 ac_clean_files=$ac_clean_files_save
4122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4123 $as_echo_n "checking for suffix of object files... " >&6; }
4124 if ${ac_cv_objext+:} false; then :
4125 $as_echo_n "(cached) " >&6
4126 else
4127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4128 /* end confdefs.h. */
4131 main ()
4135 return 0;
4137 _ACEOF
4138 rm -f conftest.o conftest.obj
4139 if { { ac_try="$ac_compile"
4140 case "(($ac_try" in
4141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4142 *) ac_try_echo=$ac_try;;
4143 esac
4144 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4145 $as_echo "$ac_try_echo"; } >&5
4146 (eval "$ac_compile") 2>&5
4147 ac_status=$?
4148 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4149 test $ac_status = 0; }; then :
4150 for ac_file in conftest.o conftest.obj conftest.*; do
4151 test -f "$ac_file" || continue;
4152 case $ac_file in
4153 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4154 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4155 break;;
4156 esac
4157 done
4158 else
4159 $as_echo "$as_me: failed program was:" >&5
4160 sed 's/^/| /' conftest.$ac_ext >&5
4162 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4163 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4164 as_fn_error $? "cannot compute suffix of object files: cannot compile
4165 See \`config.log' for more details" "$LINENO" 5; }
4167 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4170 $as_echo "$ac_cv_objext" >&6; }
4171 OBJEXT=$ac_cv_objext
4172 ac_objext=$OBJEXT
4173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4174 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4175 if ${ac_cv_c_compiler_gnu+:} false; then :
4176 $as_echo_n "(cached) " >&6
4177 else
4178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4179 /* end confdefs.h. */
4182 main ()
4184 #ifndef __GNUC__
4185 choke me
4186 #endif
4189 return 0;
4191 _ACEOF
4192 if ac_fn_c_try_compile "$LINENO"; then :
4193 ac_compiler_gnu=yes
4194 else
4195 ac_compiler_gnu=no
4197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4198 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4202 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4203 if test $ac_compiler_gnu = yes; then
4204 GCC=yes
4205 else
4206 GCC=
4208 ac_test_CFLAGS=${CFLAGS+set}
4209 ac_save_CFLAGS=$CFLAGS
4210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4211 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4212 if ${ac_cv_prog_cc_g+:} false; then :
4213 $as_echo_n "(cached) " >&6
4214 else
4215 ac_save_c_werror_flag=$ac_c_werror_flag
4216 ac_c_werror_flag=yes
4217 ac_cv_prog_cc_g=no
4218 CFLAGS="-g"
4219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4220 /* end confdefs.h. */
4223 main ()
4227 return 0;
4229 _ACEOF
4230 if ac_fn_c_try_compile "$LINENO"; then :
4231 ac_cv_prog_cc_g=yes
4232 else
4233 CFLAGS=""
4234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4235 /* end confdefs.h. */
4238 main ()
4242 return 0;
4244 _ACEOF
4245 if ac_fn_c_try_compile "$LINENO"; then :
4247 else
4248 ac_c_werror_flag=$ac_save_c_werror_flag
4249 CFLAGS="-g"
4250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4251 /* end confdefs.h. */
4254 main ()
4258 return 0;
4260 _ACEOF
4261 if ac_fn_c_try_compile "$LINENO"; then :
4262 ac_cv_prog_cc_g=yes
4264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4269 ac_c_werror_flag=$ac_save_c_werror_flag
4271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4272 $as_echo "$ac_cv_prog_cc_g" >&6; }
4273 if test "$ac_test_CFLAGS" = set; then
4274 CFLAGS=$ac_save_CFLAGS
4275 elif test $ac_cv_prog_cc_g = yes; then
4276 if test "$GCC" = yes; then
4277 CFLAGS="-g -O2"
4278 else
4279 CFLAGS="-g"
4281 else
4282 if test "$GCC" = yes; then
4283 CFLAGS="-O2"
4284 else
4285 CFLAGS=
4288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4289 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4290 if ${ac_cv_prog_cc_c89+:} false; then :
4291 $as_echo_n "(cached) " >&6
4292 else
4293 ac_cv_prog_cc_c89=no
4294 ac_save_CC=$CC
4295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4296 /* end confdefs.h. */
4297 #include <stdarg.h>
4298 #include <stdio.h>
4299 struct stat;
4300 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4301 struct buf { int x; };
4302 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4303 static char *e (p, i)
4304 char **p;
4305 int i;
4307 return p[i];
4309 static char *f (char * (*g) (char **, int), char **p, ...)
4311 char *s;
4312 va_list v;
4313 va_start (v,p);
4314 s = g (p, va_arg (v,int));
4315 va_end (v);
4316 return s;
4319 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4320 function prototypes and stuff, but not '\xHH' hex character constants.
4321 These don't provoke an error unfortunately, instead are silently treated
4322 as 'x'. The following induces an error, until -std is added to get
4323 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4324 array size at least. It's necessary to write '\x00'==0 to get something
4325 that's true only with -std. */
4326 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4328 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4329 inside strings and character constants. */
4330 #define FOO(x) 'x'
4331 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4333 int test (int i, double x);
4334 struct s1 {int (*f) (int a);};
4335 struct s2 {int (*f) (double a);};
4336 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4337 int argc;
4338 char **argv;
4340 main ()
4342 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4344 return 0;
4346 _ACEOF
4347 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4348 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4350 CC="$ac_save_CC $ac_arg"
4351 if ac_fn_c_try_compile "$LINENO"; then :
4352 ac_cv_prog_cc_c89=$ac_arg
4354 rm -f core conftest.err conftest.$ac_objext
4355 test "x$ac_cv_prog_cc_c89" != "xno" && break
4356 done
4357 rm -f conftest.$ac_ext
4358 CC=$ac_save_CC
4361 # AC_CACHE_VAL
4362 case "x$ac_cv_prog_cc_c89" in
4364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4365 $as_echo "none needed" >&6; } ;;
4366 xno)
4367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4368 $as_echo "unsupported" >&6; } ;;
4370 CC="$CC $ac_cv_prog_cc_c89"
4371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4372 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4373 esac
4374 if test "x$ac_cv_prog_cc_c89" != xno; then :
4378 ac_ext=c
4379 ac_cpp='$CPP $CPPFLAGS'
4380 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4381 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4382 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4384 ac_ext=c
4385 ac_cpp='$CPP $CPPFLAGS'
4386 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4387 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4388 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4390 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4391 if ${am_cv_prog_cc_c_o+:} false; then :
4392 $as_echo_n "(cached) " >&6
4393 else
4394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4395 /* end confdefs.h. */
4398 main ()
4402 return 0;
4404 _ACEOF
4405 # Make sure it works both with $CC and with simple cc.
4406 # Following AC_PROG_CC_C_O, we do the test twice because some
4407 # compilers refuse to overwrite an existing .o file with -o,
4408 # though they will create one.
4409 am_cv_prog_cc_c_o=yes
4410 for am_i in 1 2; do
4411 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4412 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4413 ac_status=$?
4414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4415 (exit $ac_status); } \
4416 && test -f conftest2.$ac_objext; then
4417 : OK
4418 else
4419 am_cv_prog_cc_c_o=no
4420 break
4422 done
4423 rm -f core conftest*
4424 unset am_i
4426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4427 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4428 if test "$am_cv_prog_cc_c_o" != yes; then
4429 # Losing compiler, so override with the script.
4430 # FIXME: It is wrong to rewrite CC.
4431 # But if we don't then we get into trouble of one sort or another.
4432 # A longer-term fix would be to have automake use am__CC in this case,
4433 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4434 CC="$am_aux_dir/compile $CC"
4436 ac_ext=c
4437 ac_cpp='$CPP $CPPFLAGS'
4438 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4439 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4440 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4442 DEPDIR="${am__leading_dot}deps"
4444 ac_config_commands="$ac_config_commands depfiles"
4447 am_make=${MAKE-make}
4448 cat > confinc << 'END'
4449 am__doit:
4450 @echo this is the am__doit target
4451 .PHONY: am__doit
4453 # If we don't find an include directive, just comment out the code.
4454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4455 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4456 am__include="#"
4457 am__quote=
4458 _am_result=none
4459 # First try GNU make style include.
4460 echo "include confinc" > confmf
4461 # Ignore all kinds of additional output from 'make'.
4462 case `$am_make -s -f confmf 2> /dev/null` in #(
4463 *the\ am__doit\ target*)
4464 am__include=include
4465 am__quote=
4466 _am_result=GNU
4468 esac
4469 # Now try BSD make style include.
4470 if test "$am__include" = "#"; then
4471 echo '.include "confinc"' > confmf
4472 case `$am_make -s -f confmf 2> /dev/null` in #(
4473 *the\ am__doit\ target*)
4474 am__include=.include
4475 am__quote="\""
4476 _am_result=BSD
4478 esac
4482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4483 $as_echo "$_am_result" >&6; }
4484 rm -f confinc confmf
4486 # Check whether --enable-dependency-tracking was given.
4487 if test "${enable_dependency_tracking+set}" = set; then :
4488 enableval=$enable_dependency_tracking;
4491 if test "x$enable_dependency_tracking" != xno; then
4492 am_depcomp="$ac_aux_dir/depcomp"
4493 AMDEPBACKSLASH='\'
4494 am__nodep='_no'
4496 if test "x$enable_dependency_tracking" != xno; then
4497 AMDEP_TRUE=
4498 AMDEP_FALSE='#'
4499 else
4500 AMDEP_TRUE='#'
4501 AMDEP_FALSE=
4506 depcc="$CC" am_compiler_list=
4508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4509 $as_echo_n "checking dependency style of $depcc... " >&6; }
4510 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4511 $as_echo_n "(cached) " >&6
4512 else
4513 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4514 # We make a subdir and do the tests there. Otherwise we can end up
4515 # making bogus files that we don't know about and never remove. For
4516 # instance it was reported that on HP-UX the gcc test will end up
4517 # making a dummy file named 'D' -- because '-MD' means "put the output
4518 # in D".
4519 rm -rf conftest.dir
4520 mkdir conftest.dir
4521 # Copy depcomp to subdir because otherwise we won't find it if we're
4522 # using a relative directory.
4523 cp "$am_depcomp" conftest.dir
4524 cd conftest.dir
4525 # We will build objects and dependencies in a subdirectory because
4526 # it helps to detect inapplicable dependency modes. For instance
4527 # both Tru64's cc and ICC support -MD to output dependencies as a
4528 # side effect of compilation, but ICC will put the dependencies in
4529 # the current directory while Tru64 will put them in the object
4530 # directory.
4531 mkdir sub
4533 am_cv_CC_dependencies_compiler_type=none
4534 if test "$am_compiler_list" = ""; then
4535 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4537 am__universal=false
4538 case " $depcc " in #(
4539 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4540 esac
4542 for depmode in $am_compiler_list; do
4543 # Setup a source with many dependencies, because some compilers
4544 # like to wrap large dependency lists on column 80 (with \), and
4545 # we should not choose a depcomp mode which is confused by this.
4547 # We need to recreate these files for each test, as the compiler may
4548 # overwrite some of them when testing with obscure command lines.
4549 # This happens at least with the AIX C compiler.
4550 : > sub/conftest.c
4551 for i in 1 2 3 4 5 6; do
4552 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4553 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4554 # Solaris 10 /bin/sh.
4555 echo '/* dummy */' > sub/conftst$i.h
4556 done
4557 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4559 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4560 # mode. It turns out that the SunPro C++ compiler does not properly
4561 # handle '-M -o', and we need to detect this. Also, some Intel
4562 # versions had trouble with output in subdirs.
4563 am__obj=sub/conftest.${OBJEXT-o}
4564 am__minus_obj="-o $am__obj"
4565 case $depmode in
4566 gcc)
4567 # This depmode causes a compiler race in universal mode.
4568 test "$am__universal" = false || continue
4570 nosideeffect)
4571 # After this tag, mechanisms are not by side-effect, so they'll
4572 # only be used when explicitly requested.
4573 if test "x$enable_dependency_tracking" = xyes; then
4574 continue
4575 else
4576 break
4579 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4580 # This compiler won't grok '-c -o', but also, the minuso test has
4581 # not run yet. These depmodes are late enough in the game, and
4582 # so weak that their functioning should not be impacted.
4583 am__obj=conftest.${OBJEXT-o}
4584 am__minus_obj=
4586 none) break ;;
4587 esac
4588 if depmode=$depmode \
4589 source=sub/conftest.c object=$am__obj \
4590 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4591 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4592 >/dev/null 2>conftest.err &&
4593 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4594 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4595 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4596 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4597 # icc doesn't choke on unknown options, it will just issue warnings
4598 # or remarks (even with -Werror). So we grep stderr for any message
4599 # that says an option was ignored or not supported.
4600 # When given -MP, icc 7.0 and 7.1 complain thusly:
4601 # icc: Command line warning: ignoring option '-M'; no argument required
4602 # The diagnosis changed in icc 8.0:
4603 # icc: Command line remark: option '-MP' not supported
4604 if (grep 'ignoring option' conftest.err ||
4605 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4606 am_cv_CC_dependencies_compiler_type=$depmode
4607 break
4610 done
4612 cd ..
4613 rm -rf conftest.dir
4614 else
4615 am_cv_CC_dependencies_compiler_type=none
4619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4620 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4621 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4624 test "x$enable_dependency_tracking" != xno \
4625 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4626 am__fastdepCC_TRUE=
4627 am__fastdepCC_FALSE='#'
4628 else
4629 am__fastdepCC_TRUE='#'
4630 am__fastdepCC_FALSE=
4634 ac_ext=cpp
4635 ac_cpp='$CXXCPP $CPPFLAGS'
4636 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4637 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4638 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4639 if test -z "$CXX"; then
4640 if test -n "$CCC"; then
4641 CXX=$CCC
4642 else
4643 if test -n "$ac_tool_prefix"; then
4644 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4646 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4647 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4649 $as_echo_n "checking for $ac_word... " >&6; }
4650 if ${ac_cv_prog_CXX+:} false; then :
4651 $as_echo_n "(cached) " >&6
4652 else
4653 if test -n "$CXX"; then
4654 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4655 else
4656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4657 for as_dir in $PATH
4659 IFS=$as_save_IFS
4660 test -z "$as_dir" && as_dir=.
4661 for ac_exec_ext in '' $ac_executable_extensions; do
4662 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4663 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4665 break 2
4667 done
4668 done
4669 IFS=$as_save_IFS
4673 CXX=$ac_cv_prog_CXX
4674 if test -n "$CXX"; then
4675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4676 $as_echo "$CXX" >&6; }
4677 else
4678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4679 $as_echo "no" >&6; }
4683 test -n "$CXX" && break
4684 done
4686 if test -z "$CXX"; then
4687 ac_ct_CXX=$CXX
4688 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4690 # Extract the first word of "$ac_prog", so it can be a program name with args.
4691 set dummy $ac_prog; ac_word=$2
4692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4693 $as_echo_n "checking for $ac_word... " >&6; }
4694 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4695 $as_echo_n "(cached) " >&6
4696 else
4697 if test -n "$ac_ct_CXX"; then
4698 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4699 else
4700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4701 for as_dir in $PATH
4703 IFS=$as_save_IFS
4704 test -z "$as_dir" && as_dir=.
4705 for ac_exec_ext in '' $ac_executable_extensions; do
4706 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4707 ac_cv_prog_ac_ct_CXX="$ac_prog"
4708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4709 break 2
4711 done
4712 done
4713 IFS=$as_save_IFS
4717 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4718 if test -n "$ac_ct_CXX"; then
4719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4720 $as_echo "$ac_ct_CXX" >&6; }
4721 else
4722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4723 $as_echo "no" >&6; }
4727 test -n "$ac_ct_CXX" && break
4728 done
4730 if test "x$ac_ct_CXX" = x; then
4731 CXX="g++"
4732 else
4733 case $cross_compiling:$ac_tool_warned in
4734 yes:)
4735 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4736 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4737 ac_tool_warned=yes ;;
4738 esac
4739 CXX=$ac_ct_CXX
4745 # Provide some information about the compiler.
4746 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4747 set X $ac_compile
4748 ac_compiler=$2
4749 for ac_option in --version -v -V -qversion; do
4750 { { ac_try="$ac_compiler $ac_option >&5"
4751 case "(($ac_try" in
4752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4753 *) ac_try_echo=$ac_try;;
4754 esac
4755 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4756 $as_echo "$ac_try_echo"; } >&5
4757 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4758 ac_status=$?
4759 if test -s conftest.err; then
4760 sed '10a\
4761 ... rest of stderr output deleted ...
4762 10q' conftest.err >conftest.er1
4763 cat conftest.er1 >&5
4765 rm -f conftest.er1 conftest.err
4766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4767 test $ac_status = 0; }
4768 done
4770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4771 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4772 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4773 $as_echo_n "(cached) " >&6
4774 else
4775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4776 /* end confdefs.h. */
4779 main ()
4781 #ifndef __GNUC__
4782 choke me
4783 #endif
4786 return 0;
4788 _ACEOF
4789 if ac_fn_cxx_try_compile "$LINENO"; then :
4790 ac_compiler_gnu=yes
4791 else
4792 ac_compiler_gnu=no
4794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4795 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4799 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4800 if test $ac_compiler_gnu = yes; then
4801 GXX=yes
4802 else
4803 GXX=
4805 ac_test_CXXFLAGS=${CXXFLAGS+set}
4806 ac_save_CXXFLAGS=$CXXFLAGS
4807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4808 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4809 if ${ac_cv_prog_cxx_g+:} false; then :
4810 $as_echo_n "(cached) " >&6
4811 else
4812 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4813 ac_cxx_werror_flag=yes
4814 ac_cv_prog_cxx_g=no
4815 CXXFLAGS="-g"
4816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4817 /* end confdefs.h. */
4820 main ()
4824 return 0;
4826 _ACEOF
4827 if ac_fn_cxx_try_compile "$LINENO"; then :
4828 ac_cv_prog_cxx_g=yes
4829 else
4830 CXXFLAGS=""
4831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4832 /* end confdefs.h. */
4835 main ()
4839 return 0;
4841 _ACEOF
4842 if ac_fn_cxx_try_compile "$LINENO"; then :
4844 else
4845 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4846 CXXFLAGS="-g"
4847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4848 /* end confdefs.h. */
4851 main ()
4855 return 0;
4857 _ACEOF
4858 if ac_fn_cxx_try_compile "$LINENO"; then :
4859 ac_cv_prog_cxx_g=yes
4861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4866 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4869 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4870 if test "$ac_test_CXXFLAGS" = set; then
4871 CXXFLAGS=$ac_save_CXXFLAGS
4872 elif test $ac_cv_prog_cxx_g = yes; then
4873 if test "$GXX" = yes; then
4874 CXXFLAGS="-g -O2"
4875 else
4876 CXXFLAGS="-g"
4878 else
4879 if test "$GXX" = yes; then
4880 CXXFLAGS="-O2"
4881 else
4882 CXXFLAGS=
4885 ac_ext=c
4886 ac_cpp='$CPP $CPPFLAGS'
4887 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4888 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4889 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4891 depcc="$CXX" am_compiler_list=
4893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4894 $as_echo_n "checking dependency style of $depcc... " >&6; }
4895 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4896 $as_echo_n "(cached) " >&6
4897 else
4898 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4899 # We make a subdir and do the tests there. Otherwise we can end up
4900 # making bogus files that we don't know about and never remove. For
4901 # instance it was reported that on HP-UX the gcc test will end up
4902 # making a dummy file named 'D' -- because '-MD' means "put the output
4903 # in D".
4904 rm -rf conftest.dir
4905 mkdir conftest.dir
4906 # Copy depcomp to subdir because otherwise we won't find it if we're
4907 # using a relative directory.
4908 cp "$am_depcomp" conftest.dir
4909 cd conftest.dir
4910 # We will build objects and dependencies in a subdirectory because
4911 # it helps to detect inapplicable dependency modes. For instance
4912 # both Tru64's cc and ICC support -MD to output dependencies as a
4913 # side effect of compilation, but ICC will put the dependencies in
4914 # the current directory while Tru64 will put them in the object
4915 # directory.
4916 mkdir sub
4918 am_cv_CXX_dependencies_compiler_type=none
4919 if test "$am_compiler_list" = ""; then
4920 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4922 am__universal=false
4923 case " $depcc " in #(
4924 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4925 esac
4927 for depmode in $am_compiler_list; do
4928 # Setup a source with many dependencies, because some compilers
4929 # like to wrap large dependency lists on column 80 (with \), and
4930 # we should not choose a depcomp mode which is confused by this.
4932 # We need to recreate these files for each test, as the compiler may
4933 # overwrite some of them when testing with obscure command lines.
4934 # This happens at least with the AIX C compiler.
4935 : > sub/conftest.c
4936 for i in 1 2 3 4 5 6; do
4937 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4938 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4939 # Solaris 10 /bin/sh.
4940 echo '/* dummy */' > sub/conftst$i.h
4941 done
4942 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4944 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4945 # mode. It turns out that the SunPro C++ compiler does not properly
4946 # handle '-M -o', and we need to detect this. Also, some Intel
4947 # versions had trouble with output in subdirs.
4948 am__obj=sub/conftest.${OBJEXT-o}
4949 am__minus_obj="-o $am__obj"
4950 case $depmode in
4951 gcc)
4952 # This depmode causes a compiler race in universal mode.
4953 test "$am__universal" = false || continue
4955 nosideeffect)
4956 # After this tag, mechanisms are not by side-effect, so they'll
4957 # only be used when explicitly requested.
4958 if test "x$enable_dependency_tracking" = xyes; then
4959 continue
4960 else
4961 break
4964 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4965 # This compiler won't grok '-c -o', but also, the minuso test has
4966 # not run yet. These depmodes are late enough in the game, and
4967 # so weak that their functioning should not be impacted.
4968 am__obj=conftest.${OBJEXT-o}
4969 am__minus_obj=
4971 none) break ;;
4972 esac
4973 if depmode=$depmode \
4974 source=sub/conftest.c object=$am__obj \
4975 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4976 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4977 >/dev/null 2>conftest.err &&
4978 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4979 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4980 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4981 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4982 # icc doesn't choke on unknown options, it will just issue warnings
4983 # or remarks (even with -Werror). So we grep stderr for any message
4984 # that says an option was ignored or not supported.
4985 # When given -MP, icc 7.0 and 7.1 complain thusly:
4986 # icc: Command line warning: ignoring option '-M'; no argument required
4987 # The diagnosis changed in icc 8.0:
4988 # icc: Command line remark: option '-MP' not supported
4989 if (grep 'ignoring option' conftest.err ||
4990 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4991 am_cv_CXX_dependencies_compiler_type=$depmode
4992 break
4995 done
4997 cd ..
4998 rm -rf conftest.dir
4999 else
5000 am_cv_CXX_dependencies_compiler_type=none
5004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5005 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5006 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5009 test "x$enable_dependency_tracking" != xno \
5010 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5011 am__fastdepCXX_TRUE=
5012 am__fastdepCXX_FALSE='#'
5013 else
5014 am__fastdepCXX_TRUE='#'
5015 am__fastdepCXX_FALSE=
5019 # By default we simply use the C compiler to build assembly code.
5021 test "${CCAS+set}" = set || CCAS=$CC
5022 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
5026 depcc="$CCAS" am_compiler_list=
5028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5029 $as_echo_n "checking dependency style of $depcc... " >&6; }
5030 if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
5031 $as_echo_n "(cached) " >&6
5032 else
5033 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5034 # We make a subdir and do the tests there. Otherwise we can end up
5035 # making bogus files that we don't know about and never remove. For
5036 # instance it was reported that on HP-UX the gcc test will end up
5037 # making a dummy file named 'D' -- because '-MD' means "put the output
5038 # in D".
5039 rm -rf conftest.dir
5040 mkdir conftest.dir
5041 # Copy depcomp to subdir because otherwise we won't find it if we're
5042 # using a relative directory.
5043 cp "$am_depcomp" conftest.dir
5044 cd conftest.dir
5045 # We will build objects and dependencies in a subdirectory because
5046 # it helps to detect inapplicable dependency modes. For instance
5047 # both Tru64's cc and ICC support -MD to output dependencies as a
5048 # side effect of compilation, but ICC will put the dependencies in
5049 # the current directory while Tru64 will put them in the object
5050 # directory.
5051 mkdir sub
5053 am_cv_CCAS_dependencies_compiler_type=none
5054 if test "$am_compiler_list" = ""; then
5055 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5057 am__universal=false
5060 for depmode in $am_compiler_list; do
5061 # Setup a source with many dependencies, because some compilers
5062 # like to wrap large dependency lists on column 80 (with \), and
5063 # we should not choose a depcomp mode which is confused by this.
5065 # We need to recreate these files for each test, as the compiler may
5066 # overwrite some of them when testing with obscure command lines.
5067 # This happens at least with the AIX C compiler.
5068 : > sub/conftest.c
5069 for i in 1 2 3 4 5 6; do
5070 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5071 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5072 # Solaris 10 /bin/sh.
5073 echo '/* dummy */' > sub/conftst$i.h
5074 done
5075 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5077 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5078 # mode. It turns out that the SunPro C++ compiler does not properly
5079 # handle '-M -o', and we need to detect this. Also, some Intel
5080 # versions had trouble with output in subdirs.
5081 am__obj=sub/conftest.${OBJEXT-o}
5082 am__minus_obj="-o $am__obj"
5083 case $depmode in
5084 gcc)
5085 # This depmode causes a compiler race in universal mode.
5086 test "$am__universal" = false || continue
5088 nosideeffect)
5089 # After this tag, mechanisms are not by side-effect, so they'll
5090 # only be used when explicitly requested.
5091 if test "x$enable_dependency_tracking" = xyes; then
5092 continue
5093 else
5094 break
5097 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5098 # This compiler won't grok '-c -o', but also, the minuso test has
5099 # not run yet. These depmodes are late enough in the game, and
5100 # so weak that their functioning should not be impacted.
5101 am__obj=conftest.${OBJEXT-o}
5102 am__minus_obj=
5104 none) break ;;
5105 esac
5106 if depmode=$depmode \
5107 source=sub/conftest.c object=$am__obj \
5108 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5109 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5110 >/dev/null 2>conftest.err &&
5111 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5112 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5113 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5114 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5115 # icc doesn't choke on unknown options, it will just issue warnings
5116 # or remarks (even with -Werror). So we grep stderr for any message
5117 # that says an option was ignored or not supported.
5118 # When given -MP, icc 7.0 and 7.1 complain thusly:
5119 # icc: Command line warning: ignoring option '-M'; no argument required
5120 # The diagnosis changed in icc 8.0:
5121 # icc: Command line remark: option '-MP' not supported
5122 if (grep 'ignoring option' conftest.err ||
5123 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5124 am_cv_CCAS_dependencies_compiler_type=$depmode
5125 break
5128 done
5130 cd ..
5131 rm -rf conftest.dir
5132 else
5133 am_cv_CCAS_dependencies_compiler_type=none
5137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
5138 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
5139 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
5142 test "x$enable_dependency_tracking" != xno \
5143 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
5144 am__fastdepCCAS_TRUE=
5145 am__fastdepCCAS_FALSE='#'
5146 else
5147 am__fastdepCCAS_TRUE='#'
5148 am__fastdepCCAS_FALSE=
5156 # In order to override CFLAGS_FOR_TARGET, all of our special flags go
5157 # in XCFLAGS. But we need them in CFLAGS during configury. So put them
5158 # in both places for now and restore CFLAGS at the end of config.
5159 save_CFLAGS="$CFLAGS"
5161 # Find other programs we need.
5162 if test -n "$ac_tool_prefix"; then
5163 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5164 set dummy ${ac_tool_prefix}ar; ac_word=$2
5165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5166 $as_echo_n "checking for $ac_word... " >&6; }
5167 if ${ac_cv_prog_AR+:} false; then :
5168 $as_echo_n "(cached) " >&6
5169 else
5170 if test -n "$AR"; then
5171 ac_cv_prog_AR="$AR" # Let the user override the test.
5172 else
5173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5174 for as_dir in $PATH
5176 IFS=$as_save_IFS
5177 test -z "$as_dir" && as_dir=.
5178 for ac_exec_ext in '' $ac_executable_extensions; do
5179 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5180 ac_cv_prog_AR="${ac_tool_prefix}ar"
5181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5182 break 2
5184 done
5185 done
5186 IFS=$as_save_IFS
5190 AR=$ac_cv_prog_AR
5191 if test -n "$AR"; then
5192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5193 $as_echo "$AR" >&6; }
5194 else
5195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5196 $as_echo "no" >&6; }
5201 if test -z "$ac_cv_prog_AR"; then
5202 ac_ct_AR=$AR
5203 # Extract the first word of "ar", so it can be a program name with args.
5204 set dummy ar; ac_word=$2
5205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5206 $as_echo_n "checking for $ac_word... " >&6; }
5207 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5208 $as_echo_n "(cached) " >&6
5209 else
5210 if test -n "$ac_ct_AR"; then
5211 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5212 else
5213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5214 for as_dir in $PATH
5216 IFS=$as_save_IFS
5217 test -z "$as_dir" && as_dir=.
5218 for ac_exec_ext in '' $ac_executable_extensions; do
5219 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5220 ac_cv_prog_ac_ct_AR="ar"
5221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5222 break 2
5224 done
5225 done
5226 IFS=$as_save_IFS
5230 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5231 if test -n "$ac_ct_AR"; then
5232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5233 $as_echo "$ac_ct_AR" >&6; }
5234 else
5235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5236 $as_echo "no" >&6; }
5239 if test "x$ac_ct_AR" = x; then
5240 AR=""
5241 else
5242 case $cross_compiling:$ac_tool_warned in
5243 yes:)
5244 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5245 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5246 ac_tool_warned=yes ;;
5247 esac
5248 AR=$ac_ct_AR
5250 else
5251 AR="$ac_cv_prog_AR"
5254 if test -n "$ac_tool_prefix"; then
5255 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
5256 set dummy ${ac_tool_prefix}nm; ac_word=$2
5257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5258 $as_echo_n "checking for $ac_word... " >&6; }
5259 if ${ac_cv_prog_NM+:} false; then :
5260 $as_echo_n "(cached) " >&6
5261 else
5262 if test -n "$NM"; then
5263 ac_cv_prog_NM="$NM" # Let the user override the test.
5264 else
5265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5266 for as_dir in $PATH
5268 IFS=$as_save_IFS
5269 test -z "$as_dir" && as_dir=.
5270 for ac_exec_ext in '' $ac_executable_extensions; do
5271 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5272 ac_cv_prog_NM="${ac_tool_prefix}nm"
5273 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5274 break 2
5276 done
5277 done
5278 IFS=$as_save_IFS
5282 NM=$ac_cv_prog_NM
5283 if test -n "$NM"; then
5284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
5285 $as_echo "$NM" >&6; }
5286 else
5287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5288 $as_echo "no" >&6; }
5293 if test -z "$ac_cv_prog_NM"; then
5294 ac_ct_NM=$NM
5295 # Extract the first word of "nm", so it can be a program name with args.
5296 set dummy nm; ac_word=$2
5297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5298 $as_echo_n "checking for $ac_word... " >&6; }
5299 if ${ac_cv_prog_ac_ct_NM+:} false; then :
5300 $as_echo_n "(cached) " >&6
5301 else
5302 if test -n "$ac_ct_NM"; then
5303 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
5304 else
5305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5306 for as_dir in $PATH
5308 IFS=$as_save_IFS
5309 test -z "$as_dir" && as_dir=.
5310 for ac_exec_ext in '' $ac_executable_extensions; do
5311 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5312 ac_cv_prog_ac_ct_NM="nm"
5313 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5314 break 2
5316 done
5317 done
5318 IFS=$as_save_IFS
5322 ac_ct_NM=$ac_cv_prog_ac_ct_NM
5323 if test -n "$ac_ct_NM"; then
5324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5
5325 $as_echo "$ac_ct_NM" >&6; }
5326 else
5327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5328 $as_echo "no" >&6; }
5331 if test "x$ac_ct_NM" = x; then
5332 NM=""
5333 else
5334 case $cross_compiling:$ac_tool_warned in
5335 yes:)
5336 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5337 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5338 ac_tool_warned=yes ;;
5339 esac
5340 NM=$ac_ct_NM
5342 else
5343 NM="$ac_cv_prog_NM"
5346 if test -n "$ac_tool_prefix"; then
5347 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5348 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5350 $as_echo_n "checking for $ac_word... " >&6; }
5351 if ${ac_cv_prog_RANLIB+:} false; then :
5352 $as_echo_n "(cached) " >&6
5353 else
5354 if test -n "$RANLIB"; then
5355 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5356 else
5357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5358 for as_dir in $PATH
5360 IFS=$as_save_IFS
5361 test -z "$as_dir" && as_dir=.
5362 for ac_exec_ext in '' $ac_executable_extensions; do
5363 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5364 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5366 break 2
5368 done
5369 done
5370 IFS=$as_save_IFS
5374 RANLIB=$ac_cv_prog_RANLIB
5375 if test -n "$RANLIB"; then
5376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5377 $as_echo "$RANLIB" >&6; }
5378 else
5379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5380 $as_echo "no" >&6; }
5385 if test -z "$ac_cv_prog_RANLIB"; then
5386 ac_ct_RANLIB=$RANLIB
5387 # Extract the first word of "ranlib", so it can be a program name with args.
5388 set dummy ranlib; ac_word=$2
5389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5390 $as_echo_n "checking for $ac_word... " >&6; }
5391 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5392 $as_echo_n "(cached) " >&6
5393 else
5394 if test -n "$ac_ct_RANLIB"; then
5395 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5396 else
5397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5398 for as_dir in $PATH
5400 IFS=$as_save_IFS
5401 test -z "$as_dir" && as_dir=.
5402 for ac_exec_ext in '' $ac_executable_extensions; do
5403 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5404 ac_cv_prog_ac_ct_RANLIB="ranlib"
5405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5406 break 2
5408 done
5409 done
5410 IFS=$as_save_IFS
5414 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5415 if test -n "$ac_ct_RANLIB"; then
5416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5417 $as_echo "$ac_ct_RANLIB" >&6; }
5418 else
5419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5420 $as_echo "no" >&6; }
5423 if test "x$ac_ct_RANLIB" = x; then
5424 RANLIB="ranlib-not-found-in-path-error"
5425 else
5426 case $cross_compiling:$ac_tool_warned in
5427 yes:)
5428 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5429 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5430 ac_tool_warned=yes ;;
5431 esac
5432 RANLIB=$ac_ct_RANLIB
5434 else
5435 RANLIB="$ac_cv_prog_RANLIB"
5438 # Extract the first word of "perl", so it can be a program name with args.
5439 set dummy perl; ac_word=$2
5440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5441 $as_echo_n "checking for $ac_word... " >&6; }
5442 if ${ac_cv_path_PERL+:} false; then :
5443 $as_echo_n "(cached) " >&6
5444 else
5445 case $PERL in
5446 [\\/]* | ?:[\\/]*)
5447 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
5450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5451 for as_dir in $PATH
5453 IFS=$as_save_IFS
5454 test -z "$as_dir" && as_dir=.
5455 for ac_exec_ext in '' $ac_executable_extensions; do
5456 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5457 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
5458 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5459 break 2
5461 done
5462 done
5463 IFS=$as_save_IFS
5465 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl-not-found-in-path-error"
5467 esac
5469 PERL=$ac_cv_path_PERL
5470 if test -n "$PERL"; then
5471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
5472 $as_echo "$PERL" >&6; }
5473 else
5474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5475 $as_echo "no" >&6; }
5479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5480 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5481 set x ${MAKE-make}
5482 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5483 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5484 $as_echo_n "(cached) " >&6
5485 else
5486 cat >conftest.make <<\_ACEOF
5487 SHELL = /bin/sh
5488 all:
5489 @echo '@@@%%%=$(MAKE)=@@@%%%'
5490 _ACEOF
5491 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5492 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5493 *@@@%%%=?*=@@@%%%*)
5494 eval ac_cv_prog_make_${ac_make}_set=yes;;
5496 eval ac_cv_prog_make_${ac_make}_set=no;;
5497 esac
5498 rm -f conftest.make
5500 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5502 $as_echo "yes" >&6; }
5503 SET_MAKE=
5504 else
5505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5506 $as_echo "no" >&6; }
5507 SET_MAKE="MAKE=${MAKE-make}"
5512 # See if makeinfo has been installed and is modern enough
5513 # that we can use it.
5515 # Extract the first word of "makeinfo", so it can be a program name with args.
5516 set dummy makeinfo; ac_word=$2
5517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5518 $as_echo_n "checking for $ac_word... " >&6; }
5519 if ${ac_cv_prog_MAKEINFO+:} false; then :
5520 $as_echo_n "(cached) " >&6
5521 else
5522 if test -n "$MAKEINFO"; then
5523 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
5524 else
5525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5526 for as_dir in $PATH
5528 IFS=$as_save_IFS
5529 test -z "$as_dir" && as_dir=.
5530 for ac_exec_ext in '' $ac_executable_extensions; do
5531 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5532 ac_cv_prog_MAKEINFO="makeinfo"
5533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5534 break 2
5536 done
5537 done
5538 IFS=$as_save_IFS
5542 MAKEINFO=$ac_cv_prog_MAKEINFO
5543 if test -n "$MAKEINFO"; then
5544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
5545 $as_echo "$MAKEINFO" >&6; }
5546 else
5547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5548 $as_echo "no" >&6; }
5552 if test -n "$MAKEINFO"; then
5553 # Found it, now check the version.
5554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
5555 $as_echo_n "checking for modern makeinfo... " >&6; }
5556 if ${gcc_cv_prog_makeinfo_modern+:} false; then :
5557 $as_echo_n "(cached) " >&6
5558 else
5559 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
5560 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
5562 case $ac_prog_version in
5563 '') gcc_cv_prog_makeinfo_modern=no;;
5564 4.[4-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
5565 *) gcc_cv_prog_makeinfo_modern=no;;
5566 esac
5569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
5570 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
5571 else
5572 gcc_cv_prog_makeinfo_modern=no
5574 if test $gcc_cv_prog_makeinfo_modern = no; then
5575 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
5578 if test $gcc_cv_prog_makeinfo_modern = "yes"; then
5579 BUILD_INFO_TRUE=
5580 BUILD_INFO_FALSE='#'
5581 else
5582 BUILD_INFO_TRUE='#'
5583 BUILD_INFO_FALSE=
5588 # Configure libtool
5589 case `pwd` in
5590 *\ * | *\ *)
5591 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5592 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5593 esac
5597 macro_version='2.2.7a'
5598 macro_revision='1.3134'
5612 ltmain="$ac_aux_dir/ltmain.sh"
5614 # Backslashify metacharacters that are still active within
5615 # double-quoted strings.
5616 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5618 # Same as above, but do not quote variable references.
5619 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5621 # Sed substitution to delay expansion of an escaped shell variable in a
5622 # double_quote_subst'ed string.
5623 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5625 # Sed substitution to delay expansion of an escaped single quote.
5626 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5628 # Sed substitution to avoid accidental globbing in evaled expressions
5629 no_glob_subst='s/\*/\\\*/g'
5631 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5632 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5633 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5636 $as_echo_n "checking how to print strings... " >&6; }
5637 # Test print first, because it will be a builtin if present.
5638 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5639 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5640 ECHO='print -r --'
5641 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5642 ECHO='printf %s\n'
5643 else
5644 # Use this function as a fallback that always works.
5645 func_fallback_echo ()
5647 eval 'cat <<_LTECHO_EOF
5649 _LTECHO_EOF'
5651 ECHO='func_fallback_echo'
5654 # func_echo_all arg...
5655 # Invoke $ECHO with all args, space-separated.
5656 func_echo_all ()
5658 $ECHO ""
5661 case "$ECHO" in
5662 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5663 $as_echo "printf" >&6; } ;;
5664 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5665 $as_echo "print -r" >&6; } ;;
5666 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5667 $as_echo "cat" >&6; } ;;
5668 esac
5683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5684 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5685 if ${ac_cv_path_SED+:} false; then :
5686 $as_echo_n "(cached) " >&6
5687 else
5688 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5689 for ac_i in 1 2 3 4 5 6 7; do
5690 ac_script="$ac_script$as_nl$ac_script"
5691 done
5692 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5693 { ac_script=; unset ac_script;}
5694 if test -z "$SED"; then
5695 ac_path_SED_found=false
5696 # Loop through the user's path and test for each of PROGNAME-LIST
5697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5698 for as_dir in $PATH
5700 IFS=$as_save_IFS
5701 test -z "$as_dir" && as_dir=.
5702 for ac_prog in sed gsed; do
5703 for ac_exec_ext in '' $ac_executable_extensions; do
5704 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5705 as_fn_executable_p "$ac_path_SED" || continue
5706 # Check for GNU ac_path_SED and select it if it is found.
5707 # Check for GNU $ac_path_SED
5708 case `"$ac_path_SED" --version 2>&1` in
5709 *GNU*)
5710 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5712 ac_count=0
5713 $as_echo_n 0123456789 >"conftest.in"
5714 while :
5716 cat "conftest.in" "conftest.in" >"conftest.tmp"
5717 mv "conftest.tmp" "conftest.in"
5718 cp "conftest.in" "conftest.nl"
5719 $as_echo '' >> "conftest.nl"
5720 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5721 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5722 as_fn_arith $ac_count + 1 && ac_count=$as_val
5723 if test $ac_count -gt ${ac_path_SED_max-0}; then
5724 # Best one so far, save it but keep looking for a better one
5725 ac_cv_path_SED="$ac_path_SED"
5726 ac_path_SED_max=$ac_count
5728 # 10*(2^10) chars as input seems more than enough
5729 test $ac_count -gt 10 && break
5730 done
5731 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5732 esac
5734 $ac_path_SED_found && break 3
5735 done
5736 done
5737 done
5738 IFS=$as_save_IFS
5739 if test -z "$ac_cv_path_SED"; then
5740 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5742 else
5743 ac_cv_path_SED=$SED
5747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5748 $as_echo "$ac_cv_path_SED" >&6; }
5749 SED="$ac_cv_path_SED"
5750 rm -f conftest.sed
5752 test -z "$SED" && SED=sed
5753 Xsed="$SED -e 1s/^X//"
5765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5766 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5767 if ${ac_cv_path_GREP+:} false; then :
5768 $as_echo_n "(cached) " >&6
5769 else
5770 if test -z "$GREP"; then
5771 ac_path_GREP_found=false
5772 # Loop through the user's path and test for each of PROGNAME-LIST
5773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5774 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5776 IFS=$as_save_IFS
5777 test -z "$as_dir" && as_dir=.
5778 for ac_prog in grep ggrep; do
5779 for ac_exec_ext in '' $ac_executable_extensions; do
5780 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5781 as_fn_executable_p "$ac_path_GREP" || continue
5782 # Check for GNU ac_path_GREP and select it if it is found.
5783 # Check for GNU $ac_path_GREP
5784 case `"$ac_path_GREP" --version 2>&1` in
5785 *GNU*)
5786 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5788 ac_count=0
5789 $as_echo_n 0123456789 >"conftest.in"
5790 while :
5792 cat "conftest.in" "conftest.in" >"conftest.tmp"
5793 mv "conftest.tmp" "conftest.in"
5794 cp "conftest.in" "conftest.nl"
5795 $as_echo 'GREP' >> "conftest.nl"
5796 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5797 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5798 as_fn_arith $ac_count + 1 && ac_count=$as_val
5799 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5800 # Best one so far, save it but keep looking for a better one
5801 ac_cv_path_GREP="$ac_path_GREP"
5802 ac_path_GREP_max=$ac_count
5804 # 10*(2^10) chars as input seems more than enough
5805 test $ac_count -gt 10 && break
5806 done
5807 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5808 esac
5810 $ac_path_GREP_found && break 3
5811 done
5812 done
5813 done
5814 IFS=$as_save_IFS
5815 if test -z "$ac_cv_path_GREP"; then
5816 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5818 else
5819 ac_cv_path_GREP=$GREP
5823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5824 $as_echo "$ac_cv_path_GREP" >&6; }
5825 GREP="$ac_cv_path_GREP"
5828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5829 $as_echo_n "checking for egrep... " >&6; }
5830 if ${ac_cv_path_EGREP+:} false; then :
5831 $as_echo_n "(cached) " >&6
5832 else
5833 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5834 then ac_cv_path_EGREP="$GREP -E"
5835 else
5836 if test -z "$EGREP"; then
5837 ac_path_EGREP_found=false
5838 # Loop through the user's path and test for each of PROGNAME-LIST
5839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5840 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5842 IFS=$as_save_IFS
5843 test -z "$as_dir" && as_dir=.
5844 for ac_prog in egrep; do
5845 for ac_exec_ext in '' $ac_executable_extensions; do
5846 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5847 as_fn_executable_p "$ac_path_EGREP" || continue
5848 # Check for GNU ac_path_EGREP and select it if it is found.
5849 # Check for GNU $ac_path_EGREP
5850 case `"$ac_path_EGREP" --version 2>&1` in
5851 *GNU*)
5852 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5854 ac_count=0
5855 $as_echo_n 0123456789 >"conftest.in"
5856 while :
5858 cat "conftest.in" "conftest.in" >"conftest.tmp"
5859 mv "conftest.tmp" "conftest.in"
5860 cp "conftest.in" "conftest.nl"
5861 $as_echo 'EGREP' >> "conftest.nl"
5862 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5863 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5864 as_fn_arith $ac_count + 1 && ac_count=$as_val
5865 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5866 # Best one so far, save it but keep looking for a better one
5867 ac_cv_path_EGREP="$ac_path_EGREP"
5868 ac_path_EGREP_max=$ac_count
5870 # 10*(2^10) chars as input seems more than enough
5871 test $ac_count -gt 10 && break
5872 done
5873 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5874 esac
5876 $ac_path_EGREP_found && break 3
5877 done
5878 done
5879 done
5880 IFS=$as_save_IFS
5881 if test -z "$ac_cv_path_EGREP"; then
5882 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5884 else
5885 ac_cv_path_EGREP=$EGREP
5890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5891 $as_echo "$ac_cv_path_EGREP" >&6; }
5892 EGREP="$ac_cv_path_EGREP"
5895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5896 $as_echo_n "checking for fgrep... " >&6; }
5897 if ${ac_cv_path_FGREP+:} false; then :
5898 $as_echo_n "(cached) " >&6
5899 else
5900 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5901 then ac_cv_path_FGREP="$GREP -F"
5902 else
5903 if test -z "$FGREP"; then
5904 ac_path_FGREP_found=false
5905 # Loop through the user's path and test for each of PROGNAME-LIST
5906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5907 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5909 IFS=$as_save_IFS
5910 test -z "$as_dir" && as_dir=.
5911 for ac_prog in fgrep; do
5912 for ac_exec_ext in '' $ac_executable_extensions; do
5913 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5914 as_fn_executable_p "$ac_path_FGREP" || continue
5915 # Check for GNU ac_path_FGREP and select it if it is found.
5916 # Check for GNU $ac_path_FGREP
5917 case `"$ac_path_FGREP" --version 2>&1` in
5918 *GNU*)
5919 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5921 ac_count=0
5922 $as_echo_n 0123456789 >"conftest.in"
5923 while :
5925 cat "conftest.in" "conftest.in" >"conftest.tmp"
5926 mv "conftest.tmp" "conftest.in"
5927 cp "conftest.in" "conftest.nl"
5928 $as_echo 'FGREP' >> "conftest.nl"
5929 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5930 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5931 as_fn_arith $ac_count + 1 && ac_count=$as_val
5932 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5933 # Best one so far, save it but keep looking for a better one
5934 ac_cv_path_FGREP="$ac_path_FGREP"
5935 ac_path_FGREP_max=$ac_count
5937 # 10*(2^10) chars as input seems more than enough
5938 test $ac_count -gt 10 && break
5939 done
5940 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5941 esac
5943 $ac_path_FGREP_found && break 3
5944 done
5945 done
5946 done
5947 IFS=$as_save_IFS
5948 if test -z "$ac_cv_path_FGREP"; then
5949 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5951 else
5952 ac_cv_path_FGREP=$FGREP
5957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5958 $as_echo "$ac_cv_path_FGREP" >&6; }
5959 FGREP="$ac_cv_path_FGREP"
5962 test -z "$GREP" && GREP=grep
5982 # Check whether --with-gnu-ld was given.
5983 if test "${with_gnu_ld+set}" = set; then :
5984 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5985 else
5986 with_gnu_ld=no
5989 ac_prog=ld
5990 if test "$GCC" = yes; then
5991 # Check if gcc -print-prog-name=ld gives a path.
5992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5993 $as_echo_n "checking for ld used by $CC... " >&6; }
5994 case $host in
5995 *-*-mingw*)
5996 # gcc leaves a trailing carriage return which upsets mingw
5997 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5999 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6000 esac
6001 case $ac_prog in
6002 # Accept absolute paths.
6003 [\\/]* | ?:[\\/]*)
6004 re_direlt='/[^/][^/]*/\.\./'
6005 # Canonicalize the pathname of ld
6006 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6007 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6008 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6009 done
6010 test -z "$LD" && LD="$ac_prog"
6013 # If it fails, then pretend we aren't using GCC.
6014 ac_prog=ld
6017 # If it is relative, then search for the first ld in PATH.
6018 with_gnu_ld=unknown
6020 esac
6021 elif test "$with_gnu_ld" = yes; then
6022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6023 $as_echo_n "checking for GNU ld... " >&6; }
6024 else
6025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6026 $as_echo_n "checking for non-GNU ld... " >&6; }
6028 if ${lt_cv_path_LD+:} false; then :
6029 $as_echo_n "(cached) " >&6
6030 else
6031 if test -z "$LD"; then
6032 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6033 for ac_dir in $PATH; do
6034 IFS="$lt_save_ifs"
6035 test -z "$ac_dir" && ac_dir=.
6036 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6037 lt_cv_path_LD="$ac_dir/$ac_prog"
6038 # Check to see if the program is GNU ld. I'd rather use --version,
6039 # but apparently some variants of GNU ld only accept -v.
6040 # Break only if it was the GNU/non-GNU ld that we prefer.
6041 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6042 *GNU* | *'with BFD'*)
6043 test "$with_gnu_ld" != no && break
6046 test "$with_gnu_ld" != yes && break
6048 esac
6050 done
6051 IFS="$lt_save_ifs"
6052 else
6053 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6057 LD="$lt_cv_path_LD"
6058 if test -n "$LD"; then
6059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6060 $as_echo "$LD" >&6; }
6061 else
6062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6063 $as_echo "no" >&6; }
6065 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6067 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6068 if ${lt_cv_prog_gnu_ld+:} false; then :
6069 $as_echo_n "(cached) " >&6
6070 else
6071 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6072 case `$LD -v 2>&1 </dev/null` in
6073 *GNU* | *'with BFD'*)
6074 lt_cv_prog_gnu_ld=yes
6077 lt_cv_prog_gnu_ld=no
6079 esac
6081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6082 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6083 with_gnu_ld=$lt_cv_prog_gnu_ld
6093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6094 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6095 if ${lt_cv_path_NM+:} false; then :
6096 $as_echo_n "(cached) " >&6
6097 else
6098 if test -n "$NM"; then
6099 # Let the user override the test.
6100 lt_cv_path_NM="$NM"
6101 else
6102 lt_nm_to_check="${ac_tool_prefix}nm"
6103 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6104 lt_nm_to_check="$lt_nm_to_check nm"
6106 for lt_tmp_nm in $lt_nm_to_check; do
6107 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6108 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6109 IFS="$lt_save_ifs"
6110 test -z "$ac_dir" && ac_dir=.
6111 tmp_nm="$ac_dir/$lt_tmp_nm"
6112 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6113 # Check to see if the nm accepts a BSD-compat flag.
6114 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6115 # nm: unknown option "B" ignored
6116 # Tru64's nm complains that /dev/null is an invalid object file
6117 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6118 */dev/null* | *'Invalid file or object type'*)
6119 lt_cv_path_NM="$tmp_nm -B"
6120 break
6123 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6124 */dev/null*)
6125 lt_cv_path_NM="$tmp_nm -p"
6126 break
6129 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6130 continue # so that we can try to find one that supports BSD flags
6132 esac
6134 esac
6136 done
6137 IFS="$lt_save_ifs"
6138 done
6139 : ${lt_cv_path_NM=no}
6142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6143 $as_echo "$lt_cv_path_NM" >&6; }
6144 if test "$lt_cv_path_NM" != "no"; then
6145 NM="$lt_cv_path_NM"
6146 else
6147 # Didn't find any BSD compatible name lister, look for dumpbin.
6148 if test -n "$DUMPBIN"; then :
6149 # Let the user override the test.
6150 else
6151 if test -n "$ac_tool_prefix"; then
6152 for ac_prog in dumpbin "link -dump"
6154 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6155 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6157 $as_echo_n "checking for $ac_word... " >&6; }
6158 if ${ac_cv_prog_DUMPBIN+:} false; then :
6159 $as_echo_n "(cached) " >&6
6160 else
6161 if test -n "$DUMPBIN"; then
6162 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6163 else
6164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6165 for as_dir in $PATH
6167 IFS=$as_save_IFS
6168 test -z "$as_dir" && as_dir=.
6169 for ac_exec_ext in '' $ac_executable_extensions; do
6170 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6171 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6173 break 2
6175 done
6176 done
6177 IFS=$as_save_IFS
6181 DUMPBIN=$ac_cv_prog_DUMPBIN
6182 if test -n "$DUMPBIN"; then
6183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6184 $as_echo "$DUMPBIN" >&6; }
6185 else
6186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6187 $as_echo "no" >&6; }
6191 test -n "$DUMPBIN" && break
6192 done
6194 if test -z "$DUMPBIN"; then
6195 ac_ct_DUMPBIN=$DUMPBIN
6196 for ac_prog in dumpbin "link -dump"
6198 # Extract the first word of "$ac_prog", so it can be a program name with args.
6199 set dummy $ac_prog; ac_word=$2
6200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6201 $as_echo_n "checking for $ac_word... " >&6; }
6202 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6203 $as_echo_n "(cached) " >&6
6204 else
6205 if test -n "$ac_ct_DUMPBIN"; then
6206 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6207 else
6208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6209 for as_dir in $PATH
6211 IFS=$as_save_IFS
6212 test -z "$as_dir" && as_dir=.
6213 for ac_exec_ext in '' $ac_executable_extensions; do
6214 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6215 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6217 break 2
6219 done
6220 done
6221 IFS=$as_save_IFS
6225 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6226 if test -n "$ac_ct_DUMPBIN"; then
6227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6228 $as_echo "$ac_ct_DUMPBIN" >&6; }
6229 else
6230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6231 $as_echo "no" >&6; }
6235 test -n "$ac_ct_DUMPBIN" && break
6236 done
6238 if test "x$ac_ct_DUMPBIN" = x; then
6239 DUMPBIN=":"
6240 else
6241 case $cross_compiling:$ac_tool_warned in
6242 yes:)
6243 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6244 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6245 ac_tool_warned=yes ;;
6246 esac
6247 DUMPBIN=$ac_ct_DUMPBIN
6251 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6252 *COFF*)
6253 DUMPBIN="$DUMPBIN -symbols"
6256 DUMPBIN=:
6258 esac
6261 if test "$DUMPBIN" != ":"; then
6262 NM="$DUMPBIN"
6265 test -z "$NM" && NM=nm
6272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6273 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6274 if ${lt_cv_nm_interface+:} false; then :
6275 $as_echo_n "(cached) " >&6
6276 else
6277 lt_cv_nm_interface="BSD nm"
6278 echo "int some_variable = 0;" > conftest.$ac_ext
6279 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6280 (eval "$ac_compile" 2>conftest.err)
6281 cat conftest.err >&5
6282 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6283 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6284 cat conftest.err >&5
6285 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6286 cat conftest.out >&5
6287 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6288 lt_cv_nm_interface="MS dumpbin"
6290 rm -f conftest*
6292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6293 $as_echo "$lt_cv_nm_interface" >&6; }
6295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6296 $as_echo_n "checking whether ln -s works... " >&6; }
6297 LN_S=$as_ln_s
6298 if test "$LN_S" = "ln -s"; then
6299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6300 $as_echo "yes" >&6; }
6301 else
6302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6303 $as_echo "no, using $LN_S" >&6; }
6306 # find the maximum length of command line arguments
6307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6308 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6309 if ${lt_cv_sys_max_cmd_len+:} false; then :
6310 $as_echo_n "(cached) " >&6
6311 else
6313 teststring="ABCD"
6315 case $build_os in
6316 msdosdjgpp*)
6317 # On DJGPP, this test can blow up pretty badly due to problems in libc
6318 # (any single argument exceeding 2000 bytes causes a buffer overrun
6319 # during glob expansion). Even if it were fixed, the result of this
6320 # check would be larger than it should be.
6321 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6324 gnu*)
6325 # Under GNU Hurd, this test is not required because there is
6326 # no limit to the length of command line arguments.
6327 # Libtool will interpret -1 as no limit whatsoever
6328 lt_cv_sys_max_cmd_len=-1;
6331 cygwin* | mingw* | cegcc*)
6332 # On Win9x/ME, this test blows up -- it succeeds, but takes
6333 # about 5 minutes as the teststring grows exponentially.
6334 # Worse, since 9x/ME are not pre-emptively multitasking,
6335 # you end up with a "frozen" computer, even though with patience
6336 # the test eventually succeeds (with a max line length of 256k).
6337 # Instead, let's just punt: use the minimum linelength reported by
6338 # all of the supported platforms: 8192 (on NT/2K/XP).
6339 lt_cv_sys_max_cmd_len=8192;
6342 mint*)
6343 # On MiNT this can take a long time and run out of memory.
6344 lt_cv_sys_max_cmd_len=8192;
6347 amigaos*)
6348 # On AmigaOS with pdksh, this test takes hours, literally.
6349 # So we just punt and use a minimum line length of 8192.
6350 lt_cv_sys_max_cmd_len=8192;
6353 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6354 # This has been around since 386BSD, at least. Likely further.
6355 if test -x /sbin/sysctl; then
6356 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6357 elif test -x /usr/sbin/sysctl; then
6358 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6359 else
6360 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6362 # And add a safety zone
6363 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6364 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6367 interix*)
6368 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6369 lt_cv_sys_max_cmd_len=196608
6372 osf*)
6373 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6374 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6375 # nice to cause kernel panics so lets avoid the loop below.
6376 # First set a reasonable default.
6377 lt_cv_sys_max_cmd_len=16384
6379 if test -x /sbin/sysconfig; then
6380 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6381 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6382 esac
6385 sco3.2v5*)
6386 lt_cv_sys_max_cmd_len=102400
6388 sysv5* | sco5v6* | sysv4.2uw2*)
6389 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6390 if test -n "$kargmax"; then
6391 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6392 else
6393 lt_cv_sys_max_cmd_len=32768
6397 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6398 if test -n "$lt_cv_sys_max_cmd_len"; then
6399 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6400 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6401 else
6402 # Make teststring a little bigger before we do anything with it.
6403 # a 1K string should be a reasonable start.
6404 for i in 1 2 3 4 5 6 7 8 ; do
6405 teststring=$teststring$teststring
6406 done
6407 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6408 # If test is not a shell built-in, we'll probably end up computing a
6409 # maximum length that is only half of the actual maximum length, but
6410 # we can't tell.
6411 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6412 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6413 test $i != 17 # 1/2 MB should be enough
6415 i=`expr $i + 1`
6416 teststring=$teststring$teststring
6417 done
6418 # Only check the string length outside the loop.
6419 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6420 teststring=
6421 # Add a significant safety factor because C++ compilers can tack on
6422 # massive amounts of additional arguments before passing them to the
6423 # linker. It appears as though 1/2 is a usable value.
6424 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6427 esac
6431 if test -n $lt_cv_sys_max_cmd_len ; then
6432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6433 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6434 else
6435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6436 $as_echo "none" >&6; }
6438 max_cmd_len=$lt_cv_sys_max_cmd_len
6445 : ${CP="cp -f"}
6446 : ${MV="mv -f"}
6447 : ${RM="rm -f"}
6449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6450 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6451 # Try some XSI features
6452 xsi_shell=no
6453 ( _lt_dummy="a/b/c"
6454 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6455 = c,a/b,, \
6456 && eval 'test $(( 1 + 1 )) -eq 2 \
6457 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6458 && xsi_shell=yes
6459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6460 $as_echo "$xsi_shell" >&6; }
6463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6464 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6465 lt_shell_append=no
6466 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6467 >/dev/null 2>&1 \
6468 && lt_shell_append=yes
6469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6470 $as_echo "$lt_shell_append" >&6; }
6473 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6474 lt_unset=unset
6475 else
6476 lt_unset=false
6483 # test EBCDIC or ASCII
6484 case `echo X|tr X '\101'` in
6485 A) # ASCII based system
6486 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6487 lt_SP2NL='tr \040 \012'
6488 lt_NL2SP='tr \015\012 \040\040'
6490 *) # EBCDIC based system
6491 lt_SP2NL='tr \100 \n'
6492 lt_NL2SP='tr \r\n \100\100'
6494 esac
6504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6505 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6506 if ${lt_cv_ld_reload_flag+:} false; then :
6507 $as_echo_n "(cached) " >&6
6508 else
6509 lt_cv_ld_reload_flag='-r'
6511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6512 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6513 reload_flag=$lt_cv_ld_reload_flag
6514 case $reload_flag in
6515 "" | " "*) ;;
6516 *) reload_flag=" $reload_flag" ;;
6517 esac
6518 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6519 case $host_os in
6520 darwin*)
6521 if test "$GCC" = yes; then
6522 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6523 else
6524 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6527 esac
6537 if test -n "$ac_tool_prefix"; then
6538 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6539 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6541 $as_echo_n "checking for $ac_word... " >&6; }
6542 if ${ac_cv_prog_OBJDUMP+:} false; then :
6543 $as_echo_n "(cached) " >&6
6544 else
6545 if test -n "$OBJDUMP"; then
6546 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6547 else
6548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6549 for as_dir in $PATH
6551 IFS=$as_save_IFS
6552 test -z "$as_dir" && as_dir=.
6553 for ac_exec_ext in '' $ac_executable_extensions; do
6554 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6555 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6557 break 2
6559 done
6560 done
6561 IFS=$as_save_IFS
6565 OBJDUMP=$ac_cv_prog_OBJDUMP
6566 if test -n "$OBJDUMP"; then
6567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6568 $as_echo "$OBJDUMP" >&6; }
6569 else
6570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6571 $as_echo "no" >&6; }
6576 if test -z "$ac_cv_prog_OBJDUMP"; then
6577 ac_ct_OBJDUMP=$OBJDUMP
6578 # Extract the first word of "objdump", so it can be a program name with args.
6579 set dummy objdump; ac_word=$2
6580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6581 $as_echo_n "checking for $ac_word... " >&6; }
6582 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6583 $as_echo_n "(cached) " >&6
6584 else
6585 if test -n "$ac_ct_OBJDUMP"; then
6586 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6587 else
6588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6589 for as_dir in $PATH
6591 IFS=$as_save_IFS
6592 test -z "$as_dir" && as_dir=.
6593 for ac_exec_ext in '' $ac_executable_extensions; do
6594 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6595 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6597 break 2
6599 done
6600 done
6601 IFS=$as_save_IFS
6605 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6606 if test -n "$ac_ct_OBJDUMP"; then
6607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6608 $as_echo "$ac_ct_OBJDUMP" >&6; }
6609 else
6610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6611 $as_echo "no" >&6; }
6614 if test "x$ac_ct_OBJDUMP" = x; then
6615 OBJDUMP="false"
6616 else
6617 case $cross_compiling:$ac_tool_warned in
6618 yes:)
6619 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6620 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6621 ac_tool_warned=yes ;;
6622 esac
6623 OBJDUMP=$ac_ct_OBJDUMP
6625 else
6626 OBJDUMP="$ac_cv_prog_OBJDUMP"
6629 test -z "$OBJDUMP" && OBJDUMP=objdump
6639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6640 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6641 if ${lt_cv_deplibs_check_method+:} false; then :
6642 $as_echo_n "(cached) " >&6
6643 else
6644 lt_cv_file_magic_cmd='$MAGIC_CMD'
6645 lt_cv_file_magic_test_file=
6646 lt_cv_deplibs_check_method='unknown'
6647 # Need to set the preceding variable on all platforms that support
6648 # interlibrary dependencies.
6649 # 'none' -- dependencies not supported.
6650 # `unknown' -- same as none, but documents that we really don't know.
6651 # 'pass_all' -- all dependencies passed with no checks.
6652 # 'test_compile' -- check by making test program.
6653 # 'file_magic [[regex]]' -- check by looking for files in library path
6654 # which responds to the $file_magic_cmd with a given extended regex.
6655 # If you have `file' or equivalent on your system and you're not sure
6656 # whether `pass_all' will *always* work, you probably want this one.
6658 case $host_os in
6659 aix[4-9]*)
6660 lt_cv_deplibs_check_method=pass_all
6663 beos*)
6664 lt_cv_deplibs_check_method=pass_all
6667 bsdi[45]*)
6668 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6669 lt_cv_file_magic_cmd='/usr/bin/file -L'
6670 lt_cv_file_magic_test_file=/shlib/libc.so
6673 cygwin*)
6674 # func_win32_libid is a shell function defined in ltmain.sh
6675 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6676 lt_cv_file_magic_cmd='func_win32_libid'
6679 mingw* | pw32*)
6680 # Base MSYS/MinGW do not provide the 'file' command needed by
6681 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6682 # unless we find 'file', for example because we are cross-compiling.
6683 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6684 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6685 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6686 lt_cv_file_magic_cmd='func_win32_libid'
6687 else
6688 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6689 lt_cv_file_magic_cmd='$OBJDUMP -f'
6693 cegcc*)
6694 # use the weaker test based on 'objdump'. See mingw*.
6695 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6696 lt_cv_file_magic_cmd='$OBJDUMP -f'
6699 darwin* | rhapsody*)
6700 lt_cv_deplibs_check_method=pass_all
6703 freebsd* | dragonfly*)
6704 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6705 case $host_cpu in
6706 i*86 )
6707 # Not sure whether the presence of OpenBSD here was a mistake.
6708 # Let's accept both of them until this is cleared up.
6709 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6710 lt_cv_file_magic_cmd=/usr/bin/file
6711 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6713 esac
6714 else
6715 lt_cv_deplibs_check_method=pass_all
6719 gnu*)
6720 lt_cv_deplibs_check_method=pass_all
6723 haiku*)
6724 lt_cv_deplibs_check_method=pass_all
6727 hpux10.20* | hpux11*)
6728 lt_cv_file_magic_cmd=/usr/bin/file
6729 case $host_cpu in
6730 ia64*)
6731 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6732 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6734 hppa*64*)
6735 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]'
6736 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6739 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6740 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6742 esac
6745 interix[3-9]*)
6746 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6747 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6750 irix5* | irix6* | nonstopux*)
6751 case $LD in
6752 *-32|*"-32 ") libmagic=32-bit;;
6753 *-n32|*"-n32 ") libmagic=N32;;
6754 *-64|*"-64 ") libmagic=64-bit;;
6755 *) libmagic=never-match;;
6756 esac
6757 lt_cv_deplibs_check_method=pass_all
6760 # This must be Linux ELF.
6761 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
6762 lt_cv_deplibs_check_method=pass_all
6765 netbsd*)
6766 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6767 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6768 else
6769 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6773 newos6*)
6774 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6775 lt_cv_file_magic_cmd=/usr/bin/file
6776 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6779 *nto* | *qnx*)
6780 lt_cv_deplibs_check_method=pass_all
6783 openbsd*)
6784 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6785 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6786 else
6787 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6791 osf3* | osf4* | osf5*)
6792 lt_cv_deplibs_check_method=pass_all
6795 rdos*)
6796 lt_cv_deplibs_check_method=pass_all
6799 solaris*)
6800 lt_cv_deplibs_check_method=pass_all
6803 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6804 lt_cv_deplibs_check_method=pass_all
6807 sysv4 | sysv4.3*)
6808 case $host_vendor in
6809 motorola)
6810 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]'
6811 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6813 ncr)
6814 lt_cv_deplibs_check_method=pass_all
6816 sequent)
6817 lt_cv_file_magic_cmd='/bin/file'
6818 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6820 sni)
6821 lt_cv_file_magic_cmd='/bin/file'
6822 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6823 lt_cv_file_magic_test_file=/lib/libc.so
6825 siemens)
6826 lt_cv_deplibs_check_method=pass_all
6829 lt_cv_deplibs_check_method=pass_all
6831 esac
6834 tpf*)
6835 lt_cv_deplibs_check_method=pass_all
6837 esac
6840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6841 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6842 file_magic_cmd=$lt_cv_file_magic_cmd
6843 deplibs_check_method=$lt_cv_deplibs_check_method
6844 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6857 if test -n "$ac_tool_prefix"; then
6858 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6859 set dummy ${ac_tool_prefix}ar; ac_word=$2
6860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6861 $as_echo_n "checking for $ac_word... " >&6; }
6862 if ${ac_cv_prog_AR+:} false; then :
6863 $as_echo_n "(cached) " >&6
6864 else
6865 if test -n "$AR"; then
6866 ac_cv_prog_AR="$AR" # Let the user override the test.
6867 else
6868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6869 for as_dir in $PATH
6871 IFS=$as_save_IFS
6872 test -z "$as_dir" && as_dir=.
6873 for ac_exec_ext in '' $ac_executable_extensions; do
6874 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6875 ac_cv_prog_AR="${ac_tool_prefix}ar"
6876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6877 break 2
6879 done
6880 done
6881 IFS=$as_save_IFS
6885 AR=$ac_cv_prog_AR
6886 if test -n "$AR"; then
6887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6888 $as_echo "$AR" >&6; }
6889 else
6890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6891 $as_echo "no" >&6; }
6896 if test -z "$ac_cv_prog_AR"; then
6897 ac_ct_AR=$AR
6898 # Extract the first word of "ar", so it can be a program name with args.
6899 set dummy ar; ac_word=$2
6900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6901 $as_echo_n "checking for $ac_word... " >&6; }
6902 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6903 $as_echo_n "(cached) " >&6
6904 else
6905 if test -n "$ac_ct_AR"; then
6906 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6907 else
6908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6909 for as_dir in $PATH
6911 IFS=$as_save_IFS
6912 test -z "$as_dir" && as_dir=.
6913 for ac_exec_ext in '' $ac_executable_extensions; do
6914 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6915 ac_cv_prog_ac_ct_AR="ar"
6916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6917 break 2
6919 done
6920 done
6921 IFS=$as_save_IFS
6925 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6926 if test -n "$ac_ct_AR"; then
6927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6928 $as_echo "$ac_ct_AR" >&6; }
6929 else
6930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6931 $as_echo "no" >&6; }
6934 if test "x$ac_ct_AR" = x; then
6935 AR="false"
6936 else
6937 case $cross_compiling:$ac_tool_warned in
6938 yes:)
6939 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6940 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6941 ac_tool_warned=yes ;;
6942 esac
6943 AR=$ac_ct_AR
6945 else
6946 AR="$ac_cv_prog_AR"
6949 test -z "$AR" && AR=ar
6950 test -z "$AR_FLAGS" && AR_FLAGS=cru
6962 if test -n "$ac_tool_prefix"; then
6963 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6964 set dummy ${ac_tool_prefix}strip; ac_word=$2
6965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6966 $as_echo_n "checking for $ac_word... " >&6; }
6967 if ${ac_cv_prog_STRIP+:} false; then :
6968 $as_echo_n "(cached) " >&6
6969 else
6970 if test -n "$STRIP"; then
6971 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6972 else
6973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6974 for as_dir in $PATH
6976 IFS=$as_save_IFS
6977 test -z "$as_dir" && as_dir=.
6978 for ac_exec_ext in '' $ac_executable_extensions; do
6979 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6980 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6982 break 2
6984 done
6985 done
6986 IFS=$as_save_IFS
6990 STRIP=$ac_cv_prog_STRIP
6991 if test -n "$STRIP"; then
6992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6993 $as_echo "$STRIP" >&6; }
6994 else
6995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6996 $as_echo "no" >&6; }
7001 if test -z "$ac_cv_prog_STRIP"; then
7002 ac_ct_STRIP=$STRIP
7003 # Extract the first word of "strip", so it can be a program name with args.
7004 set dummy strip; ac_word=$2
7005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7006 $as_echo_n "checking for $ac_word... " >&6; }
7007 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7008 $as_echo_n "(cached) " >&6
7009 else
7010 if test -n "$ac_ct_STRIP"; then
7011 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7012 else
7013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7014 for as_dir in $PATH
7016 IFS=$as_save_IFS
7017 test -z "$as_dir" && as_dir=.
7018 for ac_exec_ext in '' $ac_executable_extensions; do
7019 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7020 ac_cv_prog_ac_ct_STRIP="strip"
7021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7022 break 2
7024 done
7025 done
7026 IFS=$as_save_IFS
7030 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7031 if test -n "$ac_ct_STRIP"; then
7032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7033 $as_echo "$ac_ct_STRIP" >&6; }
7034 else
7035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7036 $as_echo "no" >&6; }
7039 if test "x$ac_ct_STRIP" = x; then
7040 STRIP=":"
7041 else
7042 case $cross_compiling:$ac_tool_warned in
7043 yes:)
7044 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7045 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7046 ac_tool_warned=yes ;;
7047 esac
7048 STRIP=$ac_ct_STRIP
7050 else
7051 STRIP="$ac_cv_prog_STRIP"
7054 test -z "$STRIP" && STRIP=:
7061 if test -n "$ac_tool_prefix"; then
7062 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7063 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7065 $as_echo_n "checking for $ac_word... " >&6; }
7066 if ${ac_cv_prog_RANLIB+:} false; then :
7067 $as_echo_n "(cached) " >&6
7068 else
7069 if test -n "$RANLIB"; then
7070 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7071 else
7072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7073 for as_dir in $PATH
7075 IFS=$as_save_IFS
7076 test -z "$as_dir" && as_dir=.
7077 for ac_exec_ext in '' $ac_executable_extensions; do
7078 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7079 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7081 break 2
7083 done
7084 done
7085 IFS=$as_save_IFS
7089 RANLIB=$ac_cv_prog_RANLIB
7090 if test -n "$RANLIB"; then
7091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7092 $as_echo "$RANLIB" >&6; }
7093 else
7094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7095 $as_echo "no" >&6; }
7100 if test -z "$ac_cv_prog_RANLIB"; then
7101 ac_ct_RANLIB=$RANLIB
7102 # Extract the first word of "ranlib", so it can be a program name with args.
7103 set dummy ranlib; ac_word=$2
7104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7105 $as_echo_n "checking for $ac_word... " >&6; }
7106 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7107 $as_echo_n "(cached) " >&6
7108 else
7109 if test -n "$ac_ct_RANLIB"; then
7110 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7111 else
7112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7113 for as_dir in $PATH
7115 IFS=$as_save_IFS
7116 test -z "$as_dir" && as_dir=.
7117 for ac_exec_ext in '' $ac_executable_extensions; do
7118 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7119 ac_cv_prog_ac_ct_RANLIB="ranlib"
7120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7121 break 2
7123 done
7124 done
7125 IFS=$as_save_IFS
7129 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7130 if test -n "$ac_ct_RANLIB"; then
7131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7132 $as_echo "$ac_ct_RANLIB" >&6; }
7133 else
7134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7135 $as_echo "no" >&6; }
7138 if test "x$ac_ct_RANLIB" = x; then
7139 RANLIB=":"
7140 else
7141 case $cross_compiling:$ac_tool_warned in
7142 yes:)
7143 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7144 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7145 ac_tool_warned=yes ;;
7146 esac
7147 RANLIB=$ac_ct_RANLIB
7149 else
7150 RANLIB="$ac_cv_prog_RANLIB"
7153 test -z "$RANLIB" && RANLIB=:
7160 # Determine commands to create old-style static archives.
7161 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7162 old_postinstall_cmds='chmod 644 $oldlib'
7163 old_postuninstall_cmds=
7165 if test -n "$RANLIB"; then
7166 case $host_os in
7167 openbsd*)
7168 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7171 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7173 esac
7174 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7177 case $host_os in
7178 darwin*)
7179 lock_old_archive_extraction=yes ;;
7181 lock_old_archive_extraction=no ;;
7182 esac
7222 # If no C compiler was specified, use CC.
7223 LTCC=${LTCC-"$CC"}
7225 # If no C compiler flags were specified, use CFLAGS.
7226 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7228 # Allow CC to be a program name with arguments.
7229 compiler=$CC
7232 # Check for command to grab the raw symbol name followed by C symbol from nm.
7233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7234 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7235 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7236 $as_echo_n "(cached) " >&6
7237 else
7239 # These are sane defaults that work on at least a few old systems.
7240 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7242 # Character class describing NM global symbol codes.
7243 symcode='[BCDEGRST]'
7245 # Regexp to match symbols that can be accessed directly from C.
7246 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7248 # Define system-specific variables.
7249 case $host_os in
7250 aix*)
7251 symcode='[BCDT]'
7253 cygwin* | mingw* | pw32* | cegcc*)
7254 symcode='[ABCDGISTW]'
7256 hpux*)
7257 if test "$host_cpu" = ia64; then
7258 symcode='[ABCDEGRST]'
7261 irix* | nonstopux*)
7262 symcode='[BCDEGRST]'
7264 osf*)
7265 symcode='[BCDEGQRST]'
7267 solaris*)
7268 symcode='[BDRT]'
7270 sco3.2v5*)
7271 symcode='[DT]'
7273 sysv4.2uw2*)
7274 symcode='[DT]'
7276 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7277 symcode='[ABDT]'
7279 sysv4)
7280 symcode='[DFNSTU]'
7282 esac
7284 # If we're using GNU nm, then use its standard symbol codes.
7285 case `$NM -V 2>&1` in
7286 *GNU* | *'with BFD'*)
7287 symcode='[ABCDGIRSTW]' ;;
7288 esac
7290 # Transform an extracted symbol line into a proper C declaration.
7291 # Some systems (esp. on ia64) link data and code symbols differently,
7292 # so use this general approach.
7293 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7295 # Transform an extracted symbol line into symbol name and symbol address
7296 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7297 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'"
7299 # Handle CRLF in mingw tool chain
7300 opt_cr=
7301 case $build_os in
7302 mingw*)
7303 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7305 esac
7307 # Try without a prefix underscore, then with it.
7308 for ac_symprfx in "" "_"; do
7310 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7311 symxfrm="\\1 $ac_symprfx\\2 \\2"
7313 # Write the raw and C identifiers.
7314 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7315 # Fake it for dumpbin and say T for any non-static function
7316 # and D for any global variable.
7317 # Also find C++ and __fastcall symbols from MSVC++,
7318 # which start with @ or ?.
7319 lt_cv_sys_global_symbol_pipe="$AWK '"\
7320 " {last_section=section; section=\$ 3};"\
7321 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7322 " \$ 0!~/External *\|/{next};"\
7323 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7324 " {if(hide[section]) next};"\
7325 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7326 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7327 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7328 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7329 " ' prfx=^$ac_symprfx"
7330 else
7331 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7334 # Check to see that the pipe works correctly.
7335 pipe_works=no
7337 rm -f conftest*
7338 cat > conftest.$ac_ext <<_LT_EOF
7339 #ifdef __cplusplus
7340 extern "C" {
7341 #endif
7342 char nm_test_var;
7343 void nm_test_func(void);
7344 void nm_test_func(void){}
7345 #ifdef __cplusplus
7347 #endif
7348 int main(){nm_test_var='a';nm_test_func();return(0);}
7349 _LT_EOF
7351 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7352 (eval $ac_compile) 2>&5
7353 ac_status=$?
7354 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7355 test $ac_status = 0; }; then
7356 # Now try to grab the symbols.
7357 nlist=conftest.nm
7358 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7359 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7360 ac_status=$?
7361 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7362 test $ac_status = 0; } && test -s "$nlist"; then
7363 # Try sorting and uniquifying the output.
7364 if sort "$nlist" | uniq > "$nlist"T; then
7365 mv -f "$nlist"T "$nlist"
7366 else
7367 rm -f "$nlist"T
7370 # Make sure that we snagged all the symbols we need.
7371 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7372 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7373 cat <<_LT_EOF > conftest.$ac_ext
7374 #ifdef __cplusplus
7375 extern "C" {
7376 #endif
7378 _LT_EOF
7379 # Now generate the symbol file.
7380 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7382 cat <<_LT_EOF >> conftest.$ac_ext
7384 /* The mapping between symbol names and symbols. */
7385 const struct {
7386 const char *name;
7387 void *address;
7389 lt__PROGRAM__LTX_preloaded_symbols[] =
7391 { "@PROGRAM@", (void *) 0 },
7392 _LT_EOF
7393 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7394 cat <<\_LT_EOF >> conftest.$ac_ext
7395 {0, (void *) 0}
7398 /* This works around a problem in FreeBSD linker */
7399 #ifdef FREEBSD_WORKAROUND
7400 static const void *lt_preloaded_setup() {
7401 return lt__PROGRAM__LTX_preloaded_symbols;
7403 #endif
7405 #ifdef __cplusplus
7407 #endif
7408 _LT_EOF
7409 # Now try linking the two files.
7410 mv conftest.$ac_objext conftstm.$ac_objext
7411 lt_save_LIBS="$LIBS"
7412 lt_save_CFLAGS="$CFLAGS"
7413 LIBS="conftstm.$ac_objext"
7414 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7415 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7416 (eval $ac_link) 2>&5
7417 ac_status=$?
7418 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7419 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7420 pipe_works=yes
7422 LIBS="$lt_save_LIBS"
7423 CFLAGS="$lt_save_CFLAGS"
7424 else
7425 echo "cannot find nm_test_func in $nlist" >&5
7427 else
7428 echo "cannot find nm_test_var in $nlist" >&5
7430 else
7431 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7433 else
7434 echo "$progname: failed program was:" >&5
7435 cat conftest.$ac_ext >&5
7437 rm -rf conftest* conftst*
7439 # Do not use the global_symbol_pipe unless it works.
7440 if test "$pipe_works" = yes; then
7441 break
7442 else
7443 lt_cv_sys_global_symbol_pipe=
7445 done
7449 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7450 lt_cv_sys_global_symbol_to_cdecl=
7452 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7454 $as_echo "failed" >&6; }
7455 else
7456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7457 $as_echo "ok" >&6; }
7482 # Check whether --enable-libtool-lock was given.
7483 if test "${enable_libtool_lock+set}" = set; then :
7484 enableval=$enable_libtool_lock;
7487 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7489 # Some flags need to be propagated to the compiler or linker for good
7490 # libtool support.
7491 case $host in
7492 ia64-*-hpux*)
7493 # Find out which ABI we are using.
7494 echo 'int i;' > conftest.$ac_ext
7495 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7496 (eval $ac_compile) 2>&5
7497 ac_status=$?
7498 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7499 test $ac_status = 0; }; then
7500 case `/usr/bin/file conftest.$ac_objext` in
7501 *ELF-32*)
7502 HPUX_IA64_MODE="32"
7504 *ELF-64*)
7505 HPUX_IA64_MODE="64"
7507 esac
7509 rm -rf conftest*
7511 *-*-irix6*)
7512 # Find out which ABI we are using.
7513 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7514 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7515 (eval $ac_compile) 2>&5
7516 ac_status=$?
7517 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7518 test $ac_status = 0; }; then
7519 if test "$lt_cv_prog_gnu_ld" = yes; then
7520 case `/usr/bin/file conftest.$ac_objext` in
7521 *32-bit*)
7522 LD="${LD-ld} -melf32bsmip"
7524 *N32*)
7525 LD="${LD-ld} -melf32bmipn32"
7527 *64-bit*)
7528 LD="${LD-ld} -melf64bmip"
7530 esac
7531 else
7532 case `/usr/bin/file conftest.$ac_objext` in
7533 *32-bit*)
7534 LD="${LD-ld} -32"
7536 *N32*)
7537 LD="${LD-ld} -n32"
7539 *64-bit*)
7540 LD="${LD-ld} -64"
7542 esac
7545 rm -rf conftest*
7548 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7549 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7550 # Find out which ABI we are using.
7551 echo 'int i;' > conftest.$ac_ext
7552 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7553 (eval $ac_compile) 2>&5
7554 ac_status=$?
7555 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7556 test $ac_status = 0; }; then
7557 case `/usr/bin/file conftest.o` in
7558 *32-bit*)
7559 case $host in
7560 x86_64-*kfreebsd*-gnu)
7561 LD="${LD-ld} -m elf_i386_fbsd"
7563 x86_64-*linux*)
7564 case `/usr/bin/file conftest.o` in
7565 *x86-64*)
7566 LD="${LD-ld} -m elf32_x86_64"
7569 LD="${LD-ld} -m elf_i386"
7571 esac
7573 powerpc64le-*linux*)
7574 LD="${LD-ld} -m elf32lppclinux"
7576 powerpc64-*linux*)
7577 LD="${LD-ld} -m elf32ppclinux"
7579 s390x-*linux*)
7580 LD="${LD-ld} -m elf_s390"
7582 sparc64-*linux*)
7583 LD="${LD-ld} -m elf32_sparc"
7585 esac
7587 *64-bit*)
7588 case $host in
7589 x86_64-*kfreebsd*-gnu)
7590 LD="${LD-ld} -m elf_x86_64_fbsd"
7592 x86_64-*linux*)
7593 LD="${LD-ld} -m elf_x86_64"
7595 powerpcle-*linux*)
7596 LD="${LD-ld} -m elf64lppc"
7598 powerpc-*linux*)
7599 LD="${LD-ld} -m elf64ppc"
7601 s390*-*linux*|s390*-*tpf*)
7602 LD="${LD-ld} -m elf64_s390"
7604 sparc*-*linux*)
7605 LD="${LD-ld} -m elf64_sparc"
7607 esac
7609 esac
7611 rm -rf conftest*
7614 *-*-sco3.2v5*)
7615 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7616 SAVE_CFLAGS="$CFLAGS"
7617 CFLAGS="$CFLAGS -belf"
7618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7619 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7620 if ${lt_cv_cc_needs_belf+:} false; then :
7621 $as_echo_n "(cached) " >&6
7622 else
7623 ac_ext=c
7624 ac_cpp='$CPP $CPPFLAGS'
7625 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7626 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7627 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7630 /* end confdefs.h. */
7633 main ()
7637 return 0;
7639 _ACEOF
7640 if ac_fn_c_try_link "$LINENO"; then :
7641 lt_cv_cc_needs_belf=yes
7642 else
7643 lt_cv_cc_needs_belf=no
7645 rm -f core conftest.err conftest.$ac_objext \
7646 conftest$ac_exeext conftest.$ac_ext
7647 ac_ext=c
7648 ac_cpp='$CPP $CPPFLAGS'
7649 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7650 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7651 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7655 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7656 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7657 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7658 CFLAGS="$SAVE_CFLAGS"
7661 sparc*-*solaris*)
7662 # Find out which ABI we are using.
7663 echo 'int i;' > conftest.$ac_ext
7664 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7665 (eval $ac_compile) 2>&5
7666 ac_status=$?
7667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7668 test $ac_status = 0; }; then
7669 case `/usr/bin/file conftest.o` in
7670 *64-bit*)
7671 case $lt_cv_prog_gnu_ld in
7672 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7674 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7675 LD="${LD-ld} -64"
7678 esac
7680 esac
7682 rm -rf conftest*
7684 esac
7686 need_locks="$enable_libtool_lock"
7689 case $host_os in
7690 rhapsody* | darwin*)
7691 if test -n "$ac_tool_prefix"; then
7692 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7693 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7695 $as_echo_n "checking for $ac_word... " >&6; }
7696 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7697 $as_echo_n "(cached) " >&6
7698 else
7699 if test -n "$DSYMUTIL"; then
7700 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7701 else
7702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7703 for as_dir in $PATH
7705 IFS=$as_save_IFS
7706 test -z "$as_dir" && as_dir=.
7707 for ac_exec_ext in '' $ac_executable_extensions; do
7708 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7709 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7711 break 2
7713 done
7714 done
7715 IFS=$as_save_IFS
7719 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7720 if test -n "$DSYMUTIL"; then
7721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7722 $as_echo "$DSYMUTIL" >&6; }
7723 else
7724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7725 $as_echo "no" >&6; }
7730 if test -z "$ac_cv_prog_DSYMUTIL"; then
7731 ac_ct_DSYMUTIL=$DSYMUTIL
7732 # Extract the first word of "dsymutil", so it can be a program name with args.
7733 set dummy dsymutil; ac_word=$2
7734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7735 $as_echo_n "checking for $ac_word... " >&6; }
7736 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7737 $as_echo_n "(cached) " >&6
7738 else
7739 if test -n "$ac_ct_DSYMUTIL"; then
7740 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7741 else
7742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7743 for as_dir in $PATH
7745 IFS=$as_save_IFS
7746 test -z "$as_dir" && as_dir=.
7747 for ac_exec_ext in '' $ac_executable_extensions; do
7748 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7749 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7751 break 2
7753 done
7754 done
7755 IFS=$as_save_IFS
7759 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7760 if test -n "$ac_ct_DSYMUTIL"; then
7761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7762 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7763 else
7764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7765 $as_echo "no" >&6; }
7768 if test "x$ac_ct_DSYMUTIL" = x; then
7769 DSYMUTIL=":"
7770 else
7771 case $cross_compiling:$ac_tool_warned in
7772 yes:)
7773 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7774 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7775 ac_tool_warned=yes ;;
7776 esac
7777 DSYMUTIL=$ac_ct_DSYMUTIL
7779 else
7780 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7783 if test -n "$ac_tool_prefix"; then
7784 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7785 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7787 $as_echo_n "checking for $ac_word... " >&6; }
7788 if ${ac_cv_prog_NMEDIT+:} false; then :
7789 $as_echo_n "(cached) " >&6
7790 else
7791 if test -n "$NMEDIT"; then
7792 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7793 else
7794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7795 for as_dir in $PATH
7797 IFS=$as_save_IFS
7798 test -z "$as_dir" && as_dir=.
7799 for ac_exec_ext in '' $ac_executable_extensions; do
7800 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7801 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7803 break 2
7805 done
7806 done
7807 IFS=$as_save_IFS
7811 NMEDIT=$ac_cv_prog_NMEDIT
7812 if test -n "$NMEDIT"; then
7813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7814 $as_echo "$NMEDIT" >&6; }
7815 else
7816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7817 $as_echo "no" >&6; }
7822 if test -z "$ac_cv_prog_NMEDIT"; then
7823 ac_ct_NMEDIT=$NMEDIT
7824 # Extract the first word of "nmedit", so it can be a program name with args.
7825 set dummy nmedit; ac_word=$2
7826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7827 $as_echo_n "checking for $ac_word... " >&6; }
7828 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7829 $as_echo_n "(cached) " >&6
7830 else
7831 if test -n "$ac_ct_NMEDIT"; then
7832 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7833 else
7834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7835 for as_dir in $PATH
7837 IFS=$as_save_IFS
7838 test -z "$as_dir" && as_dir=.
7839 for ac_exec_ext in '' $ac_executable_extensions; do
7840 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7841 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7843 break 2
7845 done
7846 done
7847 IFS=$as_save_IFS
7851 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7852 if test -n "$ac_ct_NMEDIT"; then
7853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7854 $as_echo "$ac_ct_NMEDIT" >&6; }
7855 else
7856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7857 $as_echo "no" >&6; }
7860 if test "x$ac_ct_NMEDIT" = x; then
7861 NMEDIT=":"
7862 else
7863 case $cross_compiling:$ac_tool_warned in
7864 yes:)
7865 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7866 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7867 ac_tool_warned=yes ;;
7868 esac
7869 NMEDIT=$ac_ct_NMEDIT
7871 else
7872 NMEDIT="$ac_cv_prog_NMEDIT"
7875 if test -n "$ac_tool_prefix"; then
7876 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7877 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7879 $as_echo_n "checking for $ac_word... " >&6; }
7880 if ${ac_cv_prog_LIPO+:} false; then :
7881 $as_echo_n "(cached) " >&6
7882 else
7883 if test -n "$LIPO"; then
7884 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7885 else
7886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7887 for as_dir in $PATH
7889 IFS=$as_save_IFS
7890 test -z "$as_dir" && as_dir=.
7891 for ac_exec_ext in '' $ac_executable_extensions; do
7892 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7893 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7895 break 2
7897 done
7898 done
7899 IFS=$as_save_IFS
7903 LIPO=$ac_cv_prog_LIPO
7904 if test -n "$LIPO"; then
7905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7906 $as_echo "$LIPO" >&6; }
7907 else
7908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7909 $as_echo "no" >&6; }
7914 if test -z "$ac_cv_prog_LIPO"; then
7915 ac_ct_LIPO=$LIPO
7916 # Extract the first word of "lipo", so it can be a program name with args.
7917 set dummy lipo; ac_word=$2
7918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7919 $as_echo_n "checking for $ac_word... " >&6; }
7920 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7921 $as_echo_n "(cached) " >&6
7922 else
7923 if test -n "$ac_ct_LIPO"; then
7924 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7925 else
7926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7927 for as_dir in $PATH
7929 IFS=$as_save_IFS
7930 test -z "$as_dir" && as_dir=.
7931 for ac_exec_ext in '' $ac_executable_extensions; do
7932 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7933 ac_cv_prog_ac_ct_LIPO="lipo"
7934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7935 break 2
7937 done
7938 done
7939 IFS=$as_save_IFS
7943 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7944 if test -n "$ac_ct_LIPO"; then
7945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7946 $as_echo "$ac_ct_LIPO" >&6; }
7947 else
7948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7949 $as_echo "no" >&6; }
7952 if test "x$ac_ct_LIPO" = x; then
7953 LIPO=":"
7954 else
7955 case $cross_compiling:$ac_tool_warned in
7956 yes:)
7957 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7958 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7959 ac_tool_warned=yes ;;
7960 esac
7961 LIPO=$ac_ct_LIPO
7963 else
7964 LIPO="$ac_cv_prog_LIPO"
7967 if test -n "$ac_tool_prefix"; then
7968 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7969 set dummy ${ac_tool_prefix}otool; ac_word=$2
7970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7971 $as_echo_n "checking for $ac_word... " >&6; }
7972 if ${ac_cv_prog_OTOOL+:} false; then :
7973 $as_echo_n "(cached) " >&6
7974 else
7975 if test -n "$OTOOL"; then
7976 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7977 else
7978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7979 for as_dir in $PATH
7981 IFS=$as_save_IFS
7982 test -z "$as_dir" && as_dir=.
7983 for ac_exec_ext in '' $ac_executable_extensions; do
7984 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7985 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7987 break 2
7989 done
7990 done
7991 IFS=$as_save_IFS
7995 OTOOL=$ac_cv_prog_OTOOL
7996 if test -n "$OTOOL"; then
7997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7998 $as_echo "$OTOOL" >&6; }
7999 else
8000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8001 $as_echo "no" >&6; }
8006 if test -z "$ac_cv_prog_OTOOL"; then
8007 ac_ct_OTOOL=$OTOOL
8008 # Extract the first word of "otool", so it can be a program name with args.
8009 set dummy otool; ac_word=$2
8010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8011 $as_echo_n "checking for $ac_word... " >&6; }
8012 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8013 $as_echo_n "(cached) " >&6
8014 else
8015 if test -n "$ac_ct_OTOOL"; then
8016 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8017 else
8018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8019 for as_dir in $PATH
8021 IFS=$as_save_IFS
8022 test -z "$as_dir" && as_dir=.
8023 for ac_exec_ext in '' $ac_executable_extensions; do
8024 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8025 ac_cv_prog_ac_ct_OTOOL="otool"
8026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8027 break 2
8029 done
8030 done
8031 IFS=$as_save_IFS
8035 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8036 if test -n "$ac_ct_OTOOL"; then
8037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8038 $as_echo "$ac_ct_OTOOL" >&6; }
8039 else
8040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8041 $as_echo "no" >&6; }
8044 if test "x$ac_ct_OTOOL" = x; then
8045 OTOOL=":"
8046 else
8047 case $cross_compiling:$ac_tool_warned in
8048 yes:)
8049 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8050 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8051 ac_tool_warned=yes ;;
8052 esac
8053 OTOOL=$ac_ct_OTOOL
8055 else
8056 OTOOL="$ac_cv_prog_OTOOL"
8059 if test -n "$ac_tool_prefix"; then
8060 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8061 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8063 $as_echo_n "checking for $ac_word... " >&6; }
8064 if ${ac_cv_prog_OTOOL64+:} false; then :
8065 $as_echo_n "(cached) " >&6
8066 else
8067 if test -n "$OTOOL64"; then
8068 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8069 else
8070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8071 for as_dir in $PATH
8073 IFS=$as_save_IFS
8074 test -z "$as_dir" && as_dir=.
8075 for ac_exec_ext in '' $ac_executable_extensions; do
8076 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8077 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8079 break 2
8081 done
8082 done
8083 IFS=$as_save_IFS
8087 OTOOL64=$ac_cv_prog_OTOOL64
8088 if test -n "$OTOOL64"; then
8089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8090 $as_echo "$OTOOL64" >&6; }
8091 else
8092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8093 $as_echo "no" >&6; }
8098 if test -z "$ac_cv_prog_OTOOL64"; then
8099 ac_ct_OTOOL64=$OTOOL64
8100 # Extract the first word of "otool64", so it can be a program name with args.
8101 set dummy otool64; ac_word=$2
8102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8103 $as_echo_n "checking for $ac_word... " >&6; }
8104 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8105 $as_echo_n "(cached) " >&6
8106 else
8107 if test -n "$ac_ct_OTOOL64"; then
8108 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8109 else
8110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8111 for as_dir in $PATH
8113 IFS=$as_save_IFS
8114 test -z "$as_dir" && as_dir=.
8115 for ac_exec_ext in '' $ac_executable_extensions; do
8116 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8117 ac_cv_prog_ac_ct_OTOOL64="otool64"
8118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8119 break 2
8121 done
8122 done
8123 IFS=$as_save_IFS
8127 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8128 if test -n "$ac_ct_OTOOL64"; then
8129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8130 $as_echo "$ac_ct_OTOOL64" >&6; }
8131 else
8132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8133 $as_echo "no" >&6; }
8136 if test "x$ac_ct_OTOOL64" = x; then
8137 OTOOL64=":"
8138 else
8139 case $cross_compiling:$ac_tool_warned in
8140 yes:)
8141 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8142 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8143 ac_tool_warned=yes ;;
8144 esac
8145 OTOOL64=$ac_ct_OTOOL64
8147 else
8148 OTOOL64="$ac_cv_prog_OTOOL64"
8177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8178 $as_echo_n "checking for -single_module linker flag... " >&6; }
8179 if ${lt_cv_apple_cc_single_mod+:} false; then :
8180 $as_echo_n "(cached) " >&6
8181 else
8182 lt_cv_apple_cc_single_mod=no
8183 if test -z "${LT_MULTI_MODULE}"; then
8184 # By default we will add the -single_module flag. You can override
8185 # by either setting the environment variable LT_MULTI_MODULE
8186 # non-empty at configure time, or by adding -multi_module to the
8187 # link flags.
8188 rm -rf libconftest.dylib*
8189 echo "int foo(void){return 1;}" > conftest.c
8190 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8191 -dynamiclib -Wl,-single_module conftest.c" >&5
8192 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8193 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8194 _lt_result=$?
8195 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8196 lt_cv_apple_cc_single_mod=yes
8197 else
8198 cat conftest.err >&5
8200 rm -rf libconftest.dylib*
8201 rm -f conftest.*
8204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8205 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8207 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8208 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8209 $as_echo_n "(cached) " >&6
8210 else
8211 lt_cv_ld_exported_symbols_list=no
8212 save_LDFLAGS=$LDFLAGS
8213 echo "_main" > conftest.sym
8214 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8216 /* end confdefs.h. */
8219 main ()
8223 return 0;
8225 _ACEOF
8226 if ac_fn_c_try_link "$LINENO"; then :
8227 lt_cv_ld_exported_symbols_list=yes
8228 else
8229 lt_cv_ld_exported_symbols_list=no
8231 rm -f core conftest.err conftest.$ac_objext \
8232 conftest$ac_exeext conftest.$ac_ext
8233 LDFLAGS="$save_LDFLAGS"
8236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8237 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8239 $as_echo_n "checking for -force_load linker flag... " >&6; }
8240 if ${lt_cv_ld_force_load+:} false; then :
8241 $as_echo_n "(cached) " >&6
8242 else
8243 lt_cv_ld_force_load=no
8244 cat > conftest.c << _LT_EOF
8245 int forced_loaded() { return 2;}
8246 _LT_EOF
8247 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8248 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8249 echo "$AR cru libconftest.a conftest.o" >&5
8250 $AR cru libconftest.a conftest.o 2>&5
8251 cat > conftest.c << _LT_EOF
8252 int main() { return 0;}
8253 _LT_EOF
8254 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8255 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8256 _lt_result=$?
8257 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8258 lt_cv_ld_force_load=yes
8259 else
8260 cat conftest.err >&5
8262 rm -f conftest.err libconftest.a conftest conftest.c
8263 rm -rf conftest.dSYM
8266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8267 $as_echo "$lt_cv_ld_force_load" >&6; }
8268 case $host_os in
8269 rhapsody* | darwin1.[012])
8270 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8271 darwin1.*)
8272 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8273 darwin*) # darwin 5.x on
8274 # if running on 10.5 or later, the deployment target defaults
8275 # to the OS version, if on x86, and 10.4, the deployment
8276 # target defaults to 10.4. Don't you love it?
8277 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8278 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8279 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8280 10.[012][,.]*)
8281 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8282 10.*)
8283 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8284 esac
8286 esac
8287 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8288 _lt_dar_single_mod='$single_module'
8290 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8291 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8292 else
8293 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8295 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8296 _lt_dsymutil='~$DSYMUTIL $lib || :'
8297 else
8298 _lt_dsymutil=
8301 esac
8303 ac_ext=c
8304 ac_cpp='$CPP $CPPFLAGS'
8305 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8306 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8307 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8309 $as_echo_n "checking how to run the C preprocessor... " >&6; }
8310 # On Suns, sometimes $CPP names a directory.
8311 if test -n "$CPP" && test -d "$CPP"; then
8312 CPP=
8314 if test -z "$CPP"; then
8315 if ${ac_cv_prog_CPP+:} false; then :
8316 $as_echo_n "(cached) " >&6
8317 else
8318 # Double quotes because CPP needs to be expanded
8319 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8321 ac_preproc_ok=false
8322 for ac_c_preproc_warn_flag in '' yes
8324 # Use a header file that comes with gcc, so configuring glibc
8325 # with a fresh cross-compiler works.
8326 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8327 # <limits.h> exists even on freestanding compilers.
8328 # On the NeXT, cc -E runs the code through the compiler's parser,
8329 # not just through cpp. "Syntax error" is here to catch this case.
8330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8331 /* end confdefs.h. */
8332 #ifdef __STDC__
8333 # include <limits.h>
8334 #else
8335 # include <assert.h>
8336 #endif
8337 Syntax error
8338 _ACEOF
8339 if ac_fn_c_try_cpp "$LINENO"; then :
8341 else
8342 # Broken: fails on valid input.
8343 continue
8345 rm -f conftest.err conftest.i conftest.$ac_ext
8347 # OK, works on sane cases. Now check whether nonexistent headers
8348 # can be detected and how.
8349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8350 /* end confdefs.h. */
8351 #include <ac_nonexistent.h>
8352 _ACEOF
8353 if ac_fn_c_try_cpp "$LINENO"; then :
8354 # Broken: success on invalid input.
8355 continue
8356 else
8357 # Passes both tests.
8358 ac_preproc_ok=:
8359 break
8361 rm -f conftest.err conftest.i conftest.$ac_ext
8363 done
8364 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8365 rm -f conftest.i conftest.err conftest.$ac_ext
8366 if $ac_preproc_ok; then :
8367 break
8370 done
8371 ac_cv_prog_CPP=$CPP
8374 CPP=$ac_cv_prog_CPP
8375 else
8376 ac_cv_prog_CPP=$CPP
8378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8379 $as_echo "$CPP" >&6; }
8380 ac_preproc_ok=false
8381 for ac_c_preproc_warn_flag in '' yes
8383 # Use a header file that comes with gcc, so configuring glibc
8384 # with a fresh cross-compiler works.
8385 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8386 # <limits.h> exists even on freestanding compilers.
8387 # On the NeXT, cc -E runs the code through the compiler's parser,
8388 # not just through cpp. "Syntax error" is here to catch this case.
8389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8390 /* end confdefs.h. */
8391 #ifdef __STDC__
8392 # include <limits.h>
8393 #else
8394 # include <assert.h>
8395 #endif
8396 Syntax error
8397 _ACEOF
8398 if ac_fn_c_try_cpp "$LINENO"; then :
8400 else
8401 # Broken: fails on valid input.
8402 continue
8404 rm -f conftest.err conftest.i conftest.$ac_ext
8406 # OK, works on sane cases. Now check whether nonexistent headers
8407 # can be detected and how.
8408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8409 /* end confdefs.h. */
8410 #include <ac_nonexistent.h>
8411 _ACEOF
8412 if ac_fn_c_try_cpp "$LINENO"; then :
8413 # Broken: success on invalid input.
8414 continue
8415 else
8416 # Passes both tests.
8417 ac_preproc_ok=:
8418 break
8420 rm -f conftest.err conftest.i conftest.$ac_ext
8422 done
8423 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8424 rm -f conftest.i conftest.err conftest.$ac_ext
8425 if $ac_preproc_ok; then :
8427 else
8428 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8429 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8430 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8431 See \`config.log' for more details" "$LINENO" 5; }
8434 ac_ext=c
8435 ac_cpp='$CPP $CPPFLAGS'
8436 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8437 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8438 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8442 $as_echo_n "checking for ANSI C header files... " >&6; }
8443 if ${ac_cv_header_stdc+:} false; then :
8444 $as_echo_n "(cached) " >&6
8445 else
8446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8447 /* end confdefs.h. */
8448 #include <stdlib.h>
8449 #include <stdarg.h>
8450 #include <string.h>
8451 #include <float.h>
8454 main ()
8458 return 0;
8460 _ACEOF
8461 if ac_fn_c_try_compile "$LINENO"; then :
8462 ac_cv_header_stdc=yes
8463 else
8464 ac_cv_header_stdc=no
8466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8468 if test $ac_cv_header_stdc = yes; then
8469 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8471 /* end confdefs.h. */
8472 #include <string.h>
8474 _ACEOF
8475 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8476 $EGREP "memchr" >/dev/null 2>&1; then :
8478 else
8479 ac_cv_header_stdc=no
8481 rm -f conftest*
8485 if test $ac_cv_header_stdc = yes; then
8486 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8488 /* end confdefs.h. */
8489 #include <stdlib.h>
8491 _ACEOF
8492 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8493 $EGREP "free" >/dev/null 2>&1; then :
8495 else
8496 ac_cv_header_stdc=no
8498 rm -f conftest*
8502 if test $ac_cv_header_stdc = yes; then
8503 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8504 if test "$cross_compiling" = yes; then :
8506 else
8507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8508 /* end confdefs.h. */
8509 #include <ctype.h>
8510 #include <stdlib.h>
8511 #if ((' ' & 0x0FF) == 0x020)
8512 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8513 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8514 #else
8515 # define ISLOWER(c) \
8516 (('a' <= (c) && (c) <= 'i') \
8517 || ('j' <= (c) && (c) <= 'r') \
8518 || ('s' <= (c) && (c) <= 'z'))
8519 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8520 #endif
8522 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8524 main ()
8526 int i;
8527 for (i = 0; i < 256; i++)
8528 if (XOR (islower (i), ISLOWER (i))
8529 || toupper (i) != TOUPPER (i))
8530 return 2;
8531 return 0;
8533 _ACEOF
8534 if ac_fn_c_try_run "$LINENO"; then :
8536 else
8537 ac_cv_header_stdc=no
8539 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8540 conftest.$ac_objext conftest.beam conftest.$ac_ext
8545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8546 $as_echo "$ac_cv_header_stdc" >&6; }
8547 if test $ac_cv_header_stdc = yes; then
8549 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8553 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8554 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8555 inttypes.h stdint.h unistd.h
8556 do :
8557 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8558 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8560 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8561 cat >>confdefs.h <<_ACEOF
8562 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8563 _ACEOF
8567 done
8570 for ac_header in dlfcn.h
8571 do :
8572 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8574 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8575 cat >>confdefs.h <<_ACEOF
8576 #define HAVE_DLFCN_H 1
8577 _ACEOF
8581 done
8588 # Set options
8592 enable_dlopen=no
8595 enable_win32_dll=no
8598 # Check whether --enable-shared was given.
8599 if test "${enable_shared+set}" = set; then :
8600 enableval=$enable_shared; p=${PACKAGE-default}
8601 case $enableval in
8602 yes) enable_shared=yes ;;
8603 no) enable_shared=no ;;
8605 enable_shared=no
8606 # Look at the argument we got. We use all the common list separators.
8607 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8608 for pkg in $enableval; do
8609 IFS="$lt_save_ifs"
8610 if test "X$pkg" = "X$p"; then
8611 enable_shared=yes
8613 done
8614 IFS="$lt_save_ifs"
8616 esac
8617 else
8618 enable_shared=yes
8629 # Check whether --enable-static was given.
8630 if test "${enable_static+set}" = set; then :
8631 enableval=$enable_static; p=${PACKAGE-default}
8632 case $enableval in
8633 yes) enable_static=yes ;;
8634 no) enable_static=no ;;
8636 enable_static=no
8637 # Look at the argument we got. We use all the common list separators.
8638 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8639 for pkg in $enableval; do
8640 IFS="$lt_save_ifs"
8641 if test "X$pkg" = "X$p"; then
8642 enable_static=yes
8644 done
8645 IFS="$lt_save_ifs"
8647 esac
8648 else
8649 enable_static=yes
8661 # Check whether --with-pic was given.
8662 if test "${with_pic+set}" = set; then :
8663 withval=$with_pic; pic_mode="$withval"
8664 else
8665 pic_mode=default
8669 test -z "$pic_mode" && pic_mode=default
8677 # Check whether --enable-fast-install was given.
8678 if test "${enable_fast_install+set}" = set; then :
8679 enableval=$enable_fast_install; p=${PACKAGE-default}
8680 case $enableval in
8681 yes) enable_fast_install=yes ;;
8682 no) enable_fast_install=no ;;
8684 enable_fast_install=no
8685 # Look at the argument we got. We use all the common list separators.
8686 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8687 for pkg in $enableval; do
8688 IFS="$lt_save_ifs"
8689 if test "X$pkg" = "X$p"; then
8690 enable_fast_install=yes
8692 done
8693 IFS="$lt_save_ifs"
8695 esac
8696 else
8697 enable_fast_install=yes
8710 # This can be used to rebuild libtool when needed
8711 LIBTOOL_DEPS="$ltmain"
8713 # Always use our own libtool.
8714 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8741 test -z "$LN_S" && LN_S="ln -s"
8756 if test -n "${ZSH_VERSION+set}" ; then
8757 setopt NO_GLOB_SUBST
8760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8761 $as_echo_n "checking for objdir... " >&6; }
8762 if ${lt_cv_objdir+:} false; then :
8763 $as_echo_n "(cached) " >&6
8764 else
8765 rm -f .libs 2>/dev/null
8766 mkdir .libs 2>/dev/null
8767 if test -d .libs; then
8768 lt_cv_objdir=.libs
8769 else
8770 # MS-DOS does not allow filenames that begin with a dot.
8771 lt_cv_objdir=_libs
8773 rmdir .libs 2>/dev/null
8775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8776 $as_echo "$lt_cv_objdir" >&6; }
8777 objdir=$lt_cv_objdir
8783 cat >>confdefs.h <<_ACEOF
8784 #define LT_OBJDIR "$lt_cv_objdir/"
8785 _ACEOF
8790 case $host_os in
8791 aix3*)
8792 # AIX sometimes has problems with the GCC collect2 program. For some
8793 # reason, if we set the COLLECT_NAMES environment variable, the problems
8794 # vanish in a puff of smoke.
8795 if test "X${COLLECT_NAMES+set}" != Xset; then
8796 COLLECT_NAMES=
8797 export COLLECT_NAMES
8800 esac
8802 # Global variables:
8803 ofile=libtool
8804 can_build_shared=yes
8806 # All known linkers require a `.a' archive for static linking (except MSVC,
8807 # which needs '.lib').
8808 libext=a
8810 with_gnu_ld="$lt_cv_prog_gnu_ld"
8812 old_CC="$CC"
8813 old_CFLAGS="$CFLAGS"
8815 # Set sane defaults for various variables
8816 test -z "$CC" && CC=cc
8817 test -z "$LTCC" && LTCC=$CC
8818 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8819 test -z "$LD" && LD=ld
8820 test -z "$ac_objext" && ac_objext=o
8822 for cc_temp in $compiler""; do
8823 case $cc_temp in
8824 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8825 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8826 \-*) ;;
8827 *) break;;
8828 esac
8829 done
8830 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8833 # Only perform the check for file, if the check method requires it
8834 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8835 case $deplibs_check_method in
8836 file_magic*)
8837 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8839 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8840 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8841 $as_echo_n "(cached) " >&6
8842 else
8843 case $MAGIC_CMD in
8844 [\\/*] | ?:[\\/]*)
8845 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8848 lt_save_MAGIC_CMD="$MAGIC_CMD"
8849 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8850 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8851 for ac_dir in $ac_dummy; do
8852 IFS="$lt_save_ifs"
8853 test -z "$ac_dir" && ac_dir=.
8854 if test -f $ac_dir/${ac_tool_prefix}file; then
8855 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8856 if test -n "$file_magic_test_file"; then
8857 case $deplibs_check_method in
8858 "file_magic "*)
8859 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8860 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8861 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8862 $EGREP "$file_magic_regex" > /dev/null; then
8864 else
8865 cat <<_LT_EOF 1>&2
8867 *** Warning: the command libtool uses to detect shared libraries,
8868 *** $file_magic_cmd, produces output that libtool cannot recognize.
8869 *** The result is that libtool may fail to recognize shared libraries
8870 *** as such. This will affect the creation of libtool libraries that
8871 *** depend on shared libraries, but programs linked with such libtool
8872 *** libraries will work regardless of this problem. Nevertheless, you
8873 *** may want to report the problem to your system manager and/or to
8874 *** bug-libtool@gnu.org
8876 _LT_EOF
8877 fi ;;
8878 esac
8880 break
8882 done
8883 IFS="$lt_save_ifs"
8884 MAGIC_CMD="$lt_save_MAGIC_CMD"
8886 esac
8889 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8890 if test -n "$MAGIC_CMD"; then
8891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8892 $as_echo "$MAGIC_CMD" >&6; }
8893 else
8894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8895 $as_echo "no" >&6; }
8902 if test -z "$lt_cv_path_MAGIC_CMD"; then
8903 if test -n "$ac_tool_prefix"; then
8904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8905 $as_echo_n "checking for file... " >&6; }
8906 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8907 $as_echo_n "(cached) " >&6
8908 else
8909 case $MAGIC_CMD in
8910 [\\/*] | ?:[\\/]*)
8911 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8914 lt_save_MAGIC_CMD="$MAGIC_CMD"
8915 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8916 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8917 for ac_dir in $ac_dummy; do
8918 IFS="$lt_save_ifs"
8919 test -z "$ac_dir" && ac_dir=.
8920 if test -f $ac_dir/file; then
8921 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8922 if test -n "$file_magic_test_file"; then
8923 case $deplibs_check_method in
8924 "file_magic "*)
8925 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8926 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8927 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8928 $EGREP "$file_magic_regex" > /dev/null; then
8930 else
8931 cat <<_LT_EOF 1>&2
8933 *** Warning: the command libtool uses to detect shared libraries,
8934 *** $file_magic_cmd, produces output that libtool cannot recognize.
8935 *** The result is that libtool may fail to recognize shared libraries
8936 *** as such. This will affect the creation of libtool libraries that
8937 *** depend on shared libraries, but programs linked with such libtool
8938 *** libraries will work regardless of this problem. Nevertheless, you
8939 *** may want to report the problem to your system manager and/or to
8940 *** bug-libtool@gnu.org
8942 _LT_EOF
8943 fi ;;
8944 esac
8946 break
8948 done
8949 IFS="$lt_save_ifs"
8950 MAGIC_CMD="$lt_save_MAGIC_CMD"
8952 esac
8955 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8956 if test -n "$MAGIC_CMD"; then
8957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8958 $as_echo "$MAGIC_CMD" >&6; }
8959 else
8960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8961 $as_echo "no" >&6; }
8965 else
8966 MAGIC_CMD=:
8972 esac
8974 # Use C for the default configuration in the libtool script
8976 lt_save_CC="$CC"
8977 ac_ext=c
8978 ac_cpp='$CPP $CPPFLAGS'
8979 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8980 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8981 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8984 # Source file extension for C test sources.
8985 ac_ext=c
8987 # Object file extension for compiled C test sources.
8988 objext=o
8989 objext=$objext
8991 # Code to be used in simple compile tests
8992 lt_simple_compile_test_code="int some_variable = 0;"
8994 # Code to be used in simple link tests
8995 lt_simple_link_test_code='int main(){return(0);}'
9003 # If no C compiler was specified, use CC.
9004 LTCC=${LTCC-"$CC"}
9006 # If no C compiler flags were specified, use CFLAGS.
9007 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9009 # Allow CC to be a program name with arguments.
9010 compiler=$CC
9012 # Save the default compiler, since it gets overwritten when the other
9013 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9014 compiler_DEFAULT=$CC
9016 # save warnings/boilerplate of simple test code
9017 ac_outfile=conftest.$ac_objext
9018 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9019 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9020 _lt_compiler_boilerplate=`cat conftest.err`
9021 $RM conftest*
9023 ac_outfile=conftest.$ac_objext
9024 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9025 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9026 _lt_linker_boilerplate=`cat conftest.err`
9027 $RM -r conftest*
9030 ## CAVEAT EMPTOR:
9031 ## There is no encapsulation within the following macros, do not change
9032 ## the running order or otherwise move them around unless you know exactly
9033 ## what you are doing...
9034 if test -n "$compiler"; then
9036 lt_prog_compiler_no_builtin_flag=
9038 if test "$GCC" = yes; then
9039 case $cc_basename in
9040 nvcc*)
9041 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9043 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9044 esac
9046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9047 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9048 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9049 $as_echo_n "(cached) " >&6
9050 else
9051 lt_cv_prog_compiler_rtti_exceptions=no
9052 ac_outfile=conftest.$ac_objext
9053 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9054 lt_compiler_flag="-fno-rtti -fno-exceptions"
9055 # Insert the option either (1) after the last *FLAGS variable, or
9056 # (2) before a word containing "conftest.", or (3) at the end.
9057 # Note that $ac_compile itself does not contain backslashes and begins
9058 # with a dollar sign (not a hyphen), so the echo should work correctly.
9059 # The option is referenced via a variable to avoid confusing sed.
9060 lt_compile=`echo "$ac_compile" | $SED \
9061 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9062 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9063 -e 's:$: $lt_compiler_flag:'`
9064 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9065 (eval "$lt_compile" 2>conftest.err)
9066 ac_status=$?
9067 cat conftest.err >&5
9068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9069 if (exit $ac_status) && test -s "$ac_outfile"; then
9070 # The compiler can only warn and ignore the option if not recognized
9071 # So say no if there are warnings other than the usual output.
9072 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9073 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9074 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9075 lt_cv_prog_compiler_rtti_exceptions=yes
9078 $RM conftest*
9081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9082 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9084 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9085 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9086 else
9097 lt_prog_compiler_wl=
9098 lt_prog_compiler_pic=
9099 lt_prog_compiler_static=
9101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9102 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9104 if test "$GCC" = yes; then
9105 lt_prog_compiler_wl='-Wl,'
9106 lt_prog_compiler_static='-static'
9108 case $host_os in
9109 aix*)
9110 # All AIX code is PIC.
9111 if test "$host_cpu" = ia64; then
9112 # AIX 5 now supports IA64 processor
9113 lt_prog_compiler_static='-Bstatic'
9115 lt_prog_compiler_pic='-fPIC'
9118 amigaos*)
9119 case $host_cpu in
9120 powerpc)
9121 # see comment about AmigaOS4 .so support
9122 lt_prog_compiler_pic='-fPIC'
9124 m68k)
9125 # FIXME: we need at least 68020 code to build shared libraries, but
9126 # adding the `-m68020' flag to GCC prevents building anything better,
9127 # like `-m68040'.
9128 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9130 esac
9133 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9134 # PIC is the default for these OSes.
9137 mingw* | cygwin* | pw32* | os2* | cegcc*)
9138 # This hack is so that the source file can tell whether it is being
9139 # built for inclusion in a dll (and should export symbols for example).
9140 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9141 # (--disable-auto-import) libraries
9142 lt_prog_compiler_pic='-DDLL_EXPORT'
9145 darwin* | rhapsody*)
9146 # PIC is the default on this platform
9147 # Common symbols not allowed in MH_DYLIB files
9148 lt_prog_compiler_pic='-fno-common'
9151 haiku*)
9152 # PIC is the default for Haiku.
9153 # The "-static" flag exists, but is broken.
9154 lt_prog_compiler_static=
9157 hpux*)
9158 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9159 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9160 # sets the default TLS model and affects inlining.
9161 case $host_cpu in
9162 hppa*64*)
9163 # +Z the default
9166 lt_prog_compiler_pic='-fPIC'
9168 esac
9171 interix[3-9]*)
9172 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9173 # Instead, we relocate shared libraries at runtime.
9176 msdosdjgpp*)
9177 # Just because we use GCC doesn't mean we suddenly get shared libraries
9178 # on systems that don't support them.
9179 lt_prog_compiler_can_build_shared=no
9180 enable_shared=no
9183 *nto* | *qnx*)
9184 # QNX uses GNU C++, but need to define -shared option too, otherwise
9185 # it will coredump.
9186 lt_prog_compiler_pic='-fPIC -shared'
9189 sysv4*MP*)
9190 if test -d /usr/nec; then
9191 lt_prog_compiler_pic=-Kconform_pic
9196 lt_prog_compiler_pic='-fPIC'
9198 esac
9200 case $cc_basename in
9201 nvcc*) # Cuda Compiler Driver 2.2
9202 lt_prog_compiler_wl='-Xlinker '
9203 lt_prog_compiler_pic='-Xcompiler -fPIC'
9205 esac
9206 else
9207 # PORTME Check for flag to pass linker flags through the system compiler.
9208 case $host_os in
9209 aix*)
9210 lt_prog_compiler_wl='-Wl,'
9211 if test "$host_cpu" = ia64; then
9212 # AIX 5 now supports IA64 processor
9213 lt_prog_compiler_static='-Bstatic'
9214 else
9215 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9219 mingw* | cygwin* | pw32* | os2* | cegcc*)
9220 # This hack is so that the source file can tell whether it is being
9221 # built for inclusion in a dll (and should export symbols for example).
9222 lt_prog_compiler_pic='-DDLL_EXPORT'
9225 hpux9* | hpux10* | hpux11*)
9226 lt_prog_compiler_wl='-Wl,'
9227 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9228 # not for PA HP-UX.
9229 case $host_cpu in
9230 hppa*64*|ia64*)
9231 # +Z the default
9234 lt_prog_compiler_pic='+Z'
9236 esac
9237 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9238 lt_prog_compiler_static='${wl}-a ${wl}archive'
9241 irix5* | irix6* | nonstopux*)
9242 lt_prog_compiler_wl='-Wl,'
9243 # PIC (with -KPIC) is the default.
9244 lt_prog_compiler_static='-non_shared'
9247 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9248 case $cc_basename in
9249 # old Intel for x86_64 which still supported -KPIC.
9250 ecc*)
9251 lt_prog_compiler_wl='-Wl,'
9252 lt_prog_compiler_pic='-KPIC'
9253 lt_prog_compiler_static='-static'
9255 # icc used to be incompatible with GCC.
9256 # ICC 10 doesn't accept -KPIC any more.
9257 icc* | ifort*)
9258 lt_prog_compiler_wl='-Wl,'
9259 lt_prog_compiler_pic='-fPIC'
9260 lt_prog_compiler_static='-static'
9262 # Lahey Fortran 8.1.
9263 lf95*)
9264 lt_prog_compiler_wl='-Wl,'
9265 lt_prog_compiler_pic='--shared'
9266 lt_prog_compiler_static='--static'
9268 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9269 # Portland Group compilers (*not* the Pentium gcc compiler,
9270 # which looks to be a dead project)
9271 lt_prog_compiler_wl='-Wl,'
9272 lt_prog_compiler_pic='-fpic'
9273 lt_prog_compiler_static='-Bstatic'
9275 ccc*)
9276 lt_prog_compiler_wl='-Wl,'
9277 # All Alpha code is PIC.
9278 lt_prog_compiler_static='-non_shared'
9280 xl* | bgxl* | bgf* | mpixl*)
9281 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9282 lt_prog_compiler_wl='-Wl,'
9283 lt_prog_compiler_pic='-qpic'
9284 lt_prog_compiler_static='-qstaticlink'
9287 case `$CC -V 2>&1 | sed 5q` in
9288 *Sun\ F* | *Sun*Fortran*)
9289 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9290 lt_prog_compiler_pic='-KPIC'
9291 lt_prog_compiler_static='-Bstatic'
9292 lt_prog_compiler_wl=''
9294 *Sun\ C*)
9295 # Sun C 5.9
9296 lt_prog_compiler_pic='-KPIC'
9297 lt_prog_compiler_static='-Bstatic'
9298 lt_prog_compiler_wl='-Wl,'
9300 esac
9302 esac
9305 newsos6)
9306 lt_prog_compiler_pic='-KPIC'
9307 lt_prog_compiler_static='-Bstatic'
9310 *nto* | *qnx*)
9311 # QNX uses GNU C++, but need to define -shared option too, otherwise
9312 # it will coredump.
9313 lt_prog_compiler_pic='-fPIC -shared'
9316 osf3* | osf4* | osf5*)
9317 lt_prog_compiler_wl='-Wl,'
9318 # All OSF/1 code is PIC.
9319 lt_prog_compiler_static='-non_shared'
9322 rdos*)
9323 lt_prog_compiler_static='-non_shared'
9326 solaris*)
9327 lt_prog_compiler_pic='-KPIC'
9328 lt_prog_compiler_static='-Bstatic'
9329 case $cc_basename in
9330 f77* | f90* | f95*)
9331 lt_prog_compiler_wl='-Qoption ld ';;
9333 lt_prog_compiler_wl='-Wl,';;
9334 esac
9337 sunos4*)
9338 lt_prog_compiler_wl='-Qoption ld '
9339 lt_prog_compiler_pic='-PIC'
9340 lt_prog_compiler_static='-Bstatic'
9343 sysv4 | sysv4.2uw2* | sysv4.3*)
9344 lt_prog_compiler_wl='-Wl,'
9345 lt_prog_compiler_pic='-KPIC'
9346 lt_prog_compiler_static='-Bstatic'
9349 sysv4*MP*)
9350 if test -d /usr/nec ;then
9351 lt_prog_compiler_pic='-Kconform_pic'
9352 lt_prog_compiler_static='-Bstatic'
9356 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9357 lt_prog_compiler_wl='-Wl,'
9358 lt_prog_compiler_pic='-KPIC'
9359 lt_prog_compiler_static='-Bstatic'
9362 unicos*)
9363 lt_prog_compiler_wl='-Wl,'
9364 lt_prog_compiler_can_build_shared=no
9367 uts4*)
9368 lt_prog_compiler_pic='-pic'
9369 lt_prog_compiler_static='-Bstatic'
9373 lt_prog_compiler_can_build_shared=no
9375 esac
9378 case $host_os in
9379 # For platforms which do not support PIC, -DPIC is meaningless:
9380 *djgpp*)
9381 lt_prog_compiler_pic=
9384 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9386 esac
9387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9388 $as_echo "$lt_prog_compiler_pic" >&6; }
9396 # Check to make sure the PIC flag actually works.
9398 if test -n "$lt_prog_compiler_pic"; then
9399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9400 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9401 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9402 $as_echo_n "(cached) " >&6
9403 else
9404 lt_cv_prog_compiler_pic_works=no
9405 ac_outfile=conftest.$ac_objext
9406 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9407 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9408 # Insert the option either (1) after the last *FLAGS variable, or
9409 # (2) before a word containing "conftest.", or (3) at the end.
9410 # Note that $ac_compile itself does not contain backslashes and begins
9411 # with a dollar sign (not a hyphen), so the echo should work correctly.
9412 # The option is referenced via a variable to avoid confusing sed.
9413 lt_compile=`echo "$ac_compile" | $SED \
9414 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9415 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9416 -e 's:$: $lt_compiler_flag:'`
9417 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9418 (eval "$lt_compile" 2>conftest.err)
9419 ac_status=$?
9420 cat conftest.err >&5
9421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9422 if (exit $ac_status) && test -s "$ac_outfile"; then
9423 # The compiler can only warn and ignore the option if not recognized
9424 # So say no if there are warnings other than the usual output.
9425 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9426 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9427 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9428 lt_cv_prog_compiler_pic_works=yes
9431 $RM conftest*
9434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9435 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9437 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9438 case $lt_prog_compiler_pic in
9439 "" | " "*) ;;
9440 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9441 esac
9442 else
9443 lt_prog_compiler_pic=
9444 lt_prog_compiler_can_build_shared=no
9455 # Check to make sure the static flag actually works.
9457 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9459 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9460 if ${lt_cv_prog_compiler_static_works+:} false; then :
9461 $as_echo_n "(cached) " >&6
9462 else
9463 lt_cv_prog_compiler_static_works=no
9464 save_LDFLAGS="$LDFLAGS"
9465 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9466 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9467 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9468 # The linker can only warn and ignore the option if not recognized
9469 # So say no if there are warnings
9470 if test -s conftest.err; then
9471 # Append any errors to the config.log.
9472 cat conftest.err 1>&5
9473 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9474 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9475 if diff conftest.exp conftest.er2 >/dev/null; then
9476 lt_cv_prog_compiler_static_works=yes
9478 else
9479 lt_cv_prog_compiler_static_works=yes
9482 $RM -r conftest*
9483 LDFLAGS="$save_LDFLAGS"
9486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9487 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9489 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9491 else
9492 lt_prog_compiler_static=
9501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9502 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9503 if ${lt_cv_prog_compiler_c_o+:} false; then :
9504 $as_echo_n "(cached) " >&6
9505 else
9506 lt_cv_prog_compiler_c_o=no
9507 $RM -r conftest 2>/dev/null
9508 mkdir conftest
9509 cd conftest
9510 mkdir out
9511 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9513 lt_compiler_flag="-o out/conftest2.$ac_objext"
9514 # Insert the option either (1) after the last *FLAGS variable, or
9515 # (2) before a word containing "conftest.", or (3) at the end.
9516 # Note that $ac_compile itself does not contain backslashes and begins
9517 # with a dollar sign (not a hyphen), so the echo should work correctly.
9518 lt_compile=`echo "$ac_compile" | $SED \
9519 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9520 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9521 -e 's:$: $lt_compiler_flag:'`
9522 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9523 (eval "$lt_compile" 2>out/conftest.err)
9524 ac_status=$?
9525 cat out/conftest.err >&5
9526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9527 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9528 then
9529 # The compiler can only warn and ignore the option if not recognized
9530 # So say no if there are warnings
9531 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9532 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9533 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9534 lt_cv_prog_compiler_c_o=yes
9537 chmod u+w . 2>&5
9538 $RM conftest*
9539 # SGI C++ compiler will create directory out/ii_files/ for
9540 # template instantiation
9541 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9542 $RM out/* && rmdir out
9543 cd ..
9544 $RM -r conftest
9545 $RM conftest*
9548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9549 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9557 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9558 if ${lt_cv_prog_compiler_c_o+:} false; then :
9559 $as_echo_n "(cached) " >&6
9560 else
9561 lt_cv_prog_compiler_c_o=no
9562 $RM -r conftest 2>/dev/null
9563 mkdir conftest
9564 cd conftest
9565 mkdir out
9566 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9568 lt_compiler_flag="-o out/conftest2.$ac_objext"
9569 # Insert the option either (1) after the last *FLAGS variable, or
9570 # (2) before a word containing "conftest.", or (3) at the end.
9571 # Note that $ac_compile itself does not contain backslashes and begins
9572 # with a dollar sign (not a hyphen), so the echo should work correctly.
9573 lt_compile=`echo "$ac_compile" | $SED \
9574 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9575 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9576 -e 's:$: $lt_compiler_flag:'`
9577 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9578 (eval "$lt_compile" 2>out/conftest.err)
9579 ac_status=$?
9580 cat out/conftest.err >&5
9581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9582 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9583 then
9584 # The compiler can only warn and ignore the option if not recognized
9585 # So say no if there are warnings
9586 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9587 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9588 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9589 lt_cv_prog_compiler_c_o=yes
9592 chmod u+w . 2>&5
9593 $RM conftest*
9594 # SGI C++ compiler will create directory out/ii_files/ for
9595 # template instantiation
9596 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9597 $RM out/* && rmdir out
9598 cd ..
9599 $RM -r conftest
9600 $RM conftest*
9603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9604 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9609 hard_links="nottested"
9610 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9611 # do not overwrite the value of need_locks provided by the user
9612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9613 $as_echo_n "checking if we can lock with hard links... " >&6; }
9614 hard_links=yes
9615 $RM conftest*
9616 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9617 touch conftest.a
9618 ln conftest.a conftest.b 2>&5 || hard_links=no
9619 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9621 $as_echo "$hard_links" >&6; }
9622 if test "$hard_links" = no; then
9623 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9624 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9625 need_locks=warn
9627 else
9628 need_locks=no
9636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9637 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9639 runpath_var=
9640 allow_undefined_flag=
9641 always_export_symbols=no
9642 archive_cmds=
9643 archive_expsym_cmds=
9644 compiler_needs_object=no
9645 enable_shared_with_static_runtimes=no
9646 export_dynamic_flag_spec=
9647 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9648 hardcode_automatic=no
9649 hardcode_direct=no
9650 hardcode_direct_absolute=no
9651 hardcode_libdir_flag_spec=
9652 hardcode_libdir_flag_spec_ld=
9653 hardcode_libdir_separator=
9654 hardcode_minus_L=no
9655 hardcode_shlibpath_var=unsupported
9656 inherit_rpath=no
9657 link_all_deplibs=unknown
9658 module_cmds=
9659 module_expsym_cmds=
9660 old_archive_from_new_cmds=
9661 old_archive_from_expsyms_cmds=
9662 thread_safe_flag_spec=
9663 whole_archive_flag_spec=
9664 # include_expsyms should be a list of space-separated symbols to be *always*
9665 # included in the symbol list
9666 include_expsyms=
9667 # exclude_expsyms can be an extended regexp of symbols to exclude
9668 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9669 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9670 # as well as any symbol that contains `d'.
9671 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9672 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9673 # platforms (ab)use it in PIC code, but their linkers get confused if
9674 # the symbol is explicitly referenced. Since portable code cannot
9675 # rely on this symbol name, it's probably fine to never include it in
9676 # preloaded symbol tables.
9677 # Exclude shared library initialization/finalization symbols.
9678 extract_expsyms_cmds=
9680 case $host_os in
9681 cygwin* | mingw* | pw32* | cegcc*)
9682 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9683 # When not using gcc, we currently assume that we are using
9684 # Microsoft Visual C++.
9685 if test "$GCC" != yes; then
9686 with_gnu_ld=no
9689 interix*)
9690 # we just hope/assume this is gcc and not c89 (= MSVC++)
9691 with_gnu_ld=yes
9693 openbsd*)
9694 with_gnu_ld=no
9696 esac
9698 ld_shlibs=yes
9700 # On some targets, GNU ld is compatible enough with the native linker
9701 # that we're better off using the native interface for both.
9702 lt_use_gnu_ld_interface=no
9703 if test "$with_gnu_ld" = yes; then
9704 case $host_os in
9705 aix*)
9706 # The AIX port of GNU ld has always aspired to compatibility
9707 # with the native linker. However, as the warning in the GNU ld
9708 # block says, versions before 2.19.5* couldn't really create working
9709 # shared libraries, regardless of the interface used.
9710 case `$LD -v 2>&1` in
9711 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9712 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9713 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9715 lt_use_gnu_ld_interface=yes
9717 esac
9720 lt_use_gnu_ld_interface=yes
9722 esac
9725 if test "$lt_use_gnu_ld_interface" = yes; then
9726 # If archive_cmds runs LD, not CC, wlarc should be empty
9727 wlarc='${wl}'
9729 # Set some defaults for GNU ld with shared library support. These
9730 # are reset later if shared libraries are not supported. Putting them
9731 # here allows them to be overridden if necessary.
9732 runpath_var=LD_RUN_PATH
9733 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9734 export_dynamic_flag_spec='${wl}--export-dynamic'
9735 # ancient GNU ld didn't support --whole-archive et. al.
9736 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9737 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9738 else
9739 whole_archive_flag_spec=
9741 supports_anon_versioning=no
9742 case `$LD -v 2>&1` in
9743 *GNU\ gold*) supports_anon_versioning=yes ;;
9744 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9745 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9746 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9747 *\ 2.11.*) ;; # other 2.11 versions
9748 *) supports_anon_versioning=yes ;;
9749 esac
9751 # See if GNU ld supports shared libraries.
9752 case $host_os in
9753 aix[3-9]*)
9754 # On AIX/PPC, the GNU linker is very broken
9755 if test "$host_cpu" != ia64; then
9756 ld_shlibs=no
9757 cat <<_LT_EOF 1>&2
9759 *** Warning: the GNU linker, at least up to release 2.19, is reported
9760 *** to be unable to reliably create shared libraries on AIX.
9761 *** Therefore, libtool is disabling shared libraries support. If you
9762 *** really care for shared libraries, you may want to install binutils
9763 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9764 *** You will then need to restart the configuration process.
9766 _LT_EOF
9770 amigaos*)
9771 case $host_cpu in
9772 powerpc)
9773 # see comment about AmigaOS4 .so support
9774 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9775 archive_expsym_cmds=''
9777 m68k)
9778 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)'
9779 hardcode_libdir_flag_spec='-L$libdir'
9780 hardcode_minus_L=yes
9782 esac
9785 beos*)
9786 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9787 allow_undefined_flag=unsupported
9788 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9789 # support --undefined. This deserves some investigation. FIXME
9790 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9791 else
9792 ld_shlibs=no
9796 cygwin* | mingw* | pw32* | cegcc*)
9797 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9798 # as there is no search path for DLLs.
9799 hardcode_libdir_flag_spec='-L$libdir'
9800 export_dynamic_flag_spec='${wl}--export-all-symbols'
9801 allow_undefined_flag=unsupported
9802 always_export_symbols=no
9803 enable_shared_with_static_runtimes=yes
9804 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9806 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9807 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9808 # If the export-symbols file already is a .def file (1st line
9809 # is EXPORTS), use it as is; otherwise, prepend...
9810 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9811 cp $export_symbols $output_objdir/$soname.def;
9812 else
9813 echo EXPORTS > $output_objdir/$soname.def;
9814 cat $export_symbols >> $output_objdir/$soname.def;
9816 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9817 else
9818 ld_shlibs=no
9822 haiku*)
9823 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9824 link_all_deplibs=yes
9827 interix[3-9]*)
9828 hardcode_direct=no
9829 hardcode_shlibpath_var=no
9830 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9831 export_dynamic_flag_spec='${wl}-E'
9832 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9833 # Instead, shared libraries are loaded at an image base (0x10000000 by
9834 # default) and relocated if they conflict, which is a slow very memory
9835 # consuming and fragmenting process. To avoid this, we pick a random,
9836 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9837 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9838 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9839 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'
9842 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
9843 tmp_diet=no
9844 if test "$host_os" = linux-dietlibc; then
9845 case $cc_basename in
9846 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9847 esac
9849 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9850 && test "$tmp_diet" = no
9851 then
9852 tmp_addflag=' $pic_flag'
9853 tmp_sharedflag='-shared'
9854 case $cc_basename,$host_cpu in
9855 pgcc*) # Portland Group C compiler
9856 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'
9857 tmp_addflag=' $pic_flag'
9859 pgf77* | pgf90* | pgf95* | pgfortran*)
9860 # Portland Group f77 and f90 compilers
9861 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'
9862 tmp_addflag=' $pic_flag -Mnomain' ;;
9863 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9864 tmp_addflag=' -i_dynamic' ;;
9865 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9866 tmp_addflag=' -i_dynamic -nofor_main' ;;
9867 ifc* | ifort*) # Intel Fortran compiler
9868 tmp_addflag=' -nofor_main' ;;
9869 lf95*) # Lahey Fortran 8.1
9870 whole_archive_flag_spec=
9871 tmp_sharedflag='--shared' ;;
9872 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9873 tmp_sharedflag='-qmkshrobj'
9874 tmp_addflag= ;;
9875 nvcc*) # Cuda Compiler Driver 2.2
9876 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'
9877 compiler_needs_object=yes
9879 esac
9880 case `$CC -V 2>&1 | sed 5q` in
9881 *Sun\ C*) # Sun C 5.9
9882 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'
9883 compiler_needs_object=yes
9884 tmp_sharedflag='-G' ;;
9885 *Sun\ F*) # Sun Fortran 8.3
9886 tmp_sharedflag='-G' ;;
9887 esac
9888 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9890 if test "x$supports_anon_versioning" = xyes; then
9891 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9892 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9893 echo "local: *; };" >> $output_objdir/$libname.ver~
9894 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9897 case $cc_basename in
9898 xlf* | bgf* | bgxlf* | mpixlf*)
9899 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9900 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9901 hardcode_libdir_flag_spec=
9902 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9903 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9904 if test "x$supports_anon_versioning" = xyes; then
9905 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9906 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9907 echo "local: *; };" >> $output_objdir/$libname.ver~
9908 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9911 esac
9912 else
9913 ld_shlibs=no
9917 netbsd*)
9918 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9919 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9920 wlarc=
9921 else
9922 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9923 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9927 solaris*)
9928 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9929 ld_shlibs=no
9930 cat <<_LT_EOF 1>&2
9932 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9933 *** create shared libraries on Solaris systems. Therefore, libtool
9934 *** is disabling shared libraries support. We urge you to upgrade GNU
9935 *** binutils to release 2.9.1 or newer. Another option is to modify
9936 *** your PATH or compiler configuration so that the native linker is
9937 *** used, and then restart.
9939 _LT_EOF
9940 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9941 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9942 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9943 else
9944 ld_shlibs=no
9948 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9949 case `$LD -v 2>&1` in
9950 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9951 ld_shlibs=no
9952 cat <<_LT_EOF 1>&2
9954 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9955 *** reliably create shared libraries on SCO systems. Therefore, libtool
9956 *** is disabling shared libraries support. We urge you to upgrade GNU
9957 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9958 *** your PATH or compiler configuration so that the native linker is
9959 *** used, and then restart.
9961 _LT_EOF
9964 # For security reasons, it is highly recommended that you always
9965 # use absolute paths for naming shared libraries, and exclude the
9966 # DT_RUNPATH tag from executables and libraries. But doing so
9967 # requires that you compile everything twice, which is a pain.
9968 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9969 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9970 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9971 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9972 else
9973 ld_shlibs=no
9976 esac
9979 sunos4*)
9980 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9981 wlarc=
9982 hardcode_direct=yes
9983 hardcode_shlibpath_var=no
9987 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9988 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9989 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9990 else
9991 ld_shlibs=no
9994 esac
9996 if test "$ld_shlibs" = no; then
9997 runpath_var=
9998 hardcode_libdir_flag_spec=
9999 export_dynamic_flag_spec=
10000 whole_archive_flag_spec=
10002 else
10003 # PORTME fill in a description of your system's linker (not GNU ld)
10004 case $host_os in
10005 aix3*)
10006 allow_undefined_flag=unsupported
10007 always_export_symbols=yes
10008 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'
10009 # Note: this linker hardcodes the directories in LIBPATH if there
10010 # are no directories specified by -L.
10011 hardcode_minus_L=yes
10012 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10013 # Neither direct hardcoding nor static linking is supported with a
10014 # broken collect2.
10015 hardcode_direct=unsupported
10019 aix[4-9]*)
10020 if test "$host_cpu" = ia64; then
10021 # On IA64, the linker does run time linking by default, so we don't
10022 # have to do anything special.
10023 aix_use_runtimelinking=no
10024 exp_sym_flag='-Bexport'
10025 no_entry_flag=""
10026 else
10027 # If we're using GNU nm, then we don't want the "-C" option.
10028 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10029 # Also, AIX nm treats weak defined symbols like other global
10030 # defined symbols, whereas GNU nm marks them as "W".
10031 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10032 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'
10033 else
10034 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'
10036 aix_use_runtimelinking=no
10038 # Test if we are trying to use run time linking or normal
10039 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10040 # need to do runtime linking.
10041 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10042 for ld_flag in $LDFLAGS; do
10043 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10044 aix_use_runtimelinking=yes
10045 break
10047 done
10049 esac
10051 exp_sym_flag='-bexport'
10052 no_entry_flag='-bnoentry'
10055 # When large executables or shared objects are built, AIX ld can
10056 # have problems creating the table of contents. If linking a library
10057 # or program results in "error TOC overflow" add -mminimal-toc to
10058 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10059 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10061 archive_cmds=''
10062 hardcode_direct=yes
10063 hardcode_direct_absolute=yes
10064 hardcode_libdir_separator=':'
10065 link_all_deplibs=yes
10066 file_list_spec='${wl}-f,'
10068 if test "$GCC" = yes; then
10069 case $host_os in aix4.[012]|aix4.[012].*)
10070 # We only want to do this on AIX 4.2 and lower, the check
10071 # below for broken collect2 doesn't work under 4.3+
10072 collect2name=`${CC} -print-prog-name=collect2`
10073 if test -f "$collect2name" &&
10074 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10075 then
10076 # We have reworked collect2
10078 else
10079 # We have old collect2
10080 hardcode_direct=unsupported
10081 # It fails to find uninstalled libraries when the uninstalled
10082 # path is not listed in the libpath. Setting hardcode_minus_L
10083 # to unsupported forces relinking
10084 hardcode_minus_L=yes
10085 hardcode_libdir_flag_spec='-L$libdir'
10086 hardcode_libdir_separator=
10089 esac
10090 shared_flag='-shared'
10091 if test "$aix_use_runtimelinking" = yes; then
10092 shared_flag="$shared_flag "'${wl}-G'
10094 else
10095 # not using gcc
10096 if test "$host_cpu" = ia64; then
10097 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10098 # chokes on -Wl,-G. The following line is correct:
10099 shared_flag='-G'
10100 else
10101 if test "$aix_use_runtimelinking" = yes; then
10102 shared_flag='${wl}-G'
10103 else
10104 shared_flag='${wl}-bM:SRE'
10109 export_dynamic_flag_spec='${wl}-bexpall'
10110 # It seems that -bexpall does not export symbols beginning with
10111 # underscore (_), so it is better to generate a list of symbols to export.
10112 always_export_symbols=yes
10113 if test "$aix_use_runtimelinking" = yes; then
10114 # Warning - without using the other runtime loading flags (-brtl),
10115 # -berok will link without error, but may produce a broken library.
10116 allow_undefined_flag='-berok'
10117 # Determine the default libpath from the value encoded in an
10118 # empty executable.
10119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10120 /* end confdefs.h. */
10123 main ()
10127 return 0;
10129 _ACEOF
10130 if ac_fn_c_try_link "$LINENO"; then :
10132 lt_aix_libpath_sed='
10133 /Import File Strings/,/^$/ {
10134 /^0/ {
10135 s/^0 *\(.*\)$/\1/
10139 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10140 # Check for a 64-bit object if we didn't find anything.
10141 if test -z "$aix_libpath"; then
10142 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10145 rm -f core conftest.err conftest.$ac_objext \
10146 conftest$ac_exeext conftest.$ac_ext
10147 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10149 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10150 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"
10151 else
10152 if test "$host_cpu" = ia64; then
10153 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10154 allow_undefined_flag="-z nodefs"
10155 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"
10156 else
10157 # Determine the default libpath from the value encoded in an
10158 # empty executable.
10159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10160 /* end confdefs.h. */
10163 main ()
10167 return 0;
10169 _ACEOF
10170 if ac_fn_c_try_link "$LINENO"; then :
10172 lt_aix_libpath_sed='
10173 /Import File Strings/,/^$/ {
10174 /^0/ {
10175 s/^0 *\(.*\)$/\1/
10179 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10180 # Check for a 64-bit object if we didn't find anything.
10181 if test -z "$aix_libpath"; then
10182 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10185 rm -f core conftest.err conftest.$ac_objext \
10186 conftest$ac_exeext conftest.$ac_ext
10187 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10189 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10190 # Warning - without using the other run time loading flags,
10191 # -berok will link without error, but may produce a broken library.
10192 no_undefined_flag=' ${wl}-bernotok'
10193 allow_undefined_flag=' ${wl}-berok'
10194 if test "$with_gnu_ld" = yes; then
10195 # We only use this code for GNU lds that support --whole-archive.
10196 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10197 else
10198 # Exported symbols can be pulled into shared objects from archives
10199 whole_archive_flag_spec='$convenience'
10201 archive_cmds_need_lc=yes
10202 # This is similar to how AIX traditionally builds its shared libraries.
10203 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'
10208 amigaos*)
10209 case $host_cpu in
10210 powerpc)
10211 # see comment about AmigaOS4 .so support
10212 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10213 archive_expsym_cmds=''
10215 m68k)
10216 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)'
10217 hardcode_libdir_flag_spec='-L$libdir'
10218 hardcode_minus_L=yes
10220 esac
10223 bsdi[45]*)
10224 export_dynamic_flag_spec=-rdynamic
10227 cygwin* | mingw* | pw32* | cegcc*)
10228 # When not using gcc, we currently assume that we are using
10229 # Microsoft Visual C++.
10230 # hardcode_libdir_flag_spec is actually meaningless, as there is
10231 # no search path for DLLs.
10232 hardcode_libdir_flag_spec=' '
10233 allow_undefined_flag=unsupported
10234 # Tell ltmain to make .lib files, not .a files.
10235 libext=lib
10236 # Tell ltmain to make .dll files, not .so files.
10237 shrext_cmds=".dll"
10238 # FIXME: Setting linknames here is a bad hack.
10239 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10240 # The linker will automatically build a .lib file if we build a DLL.
10241 old_archive_from_new_cmds='true'
10242 # FIXME: Should let the user specify the lib program.
10243 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10244 fix_srcfile_path='`cygpath -w "$srcfile"`'
10245 enable_shared_with_static_runtimes=yes
10248 darwin* | rhapsody*)
10251 archive_cmds_need_lc=no
10252 hardcode_direct=no
10253 hardcode_automatic=yes
10254 hardcode_shlibpath_var=unsupported
10255 if test "$lt_cv_ld_force_load" = "yes"; then
10256 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\"`'
10257 else
10258 whole_archive_flag_spec=''
10260 link_all_deplibs=yes
10261 allow_undefined_flag="$_lt_dar_allow_undefined"
10262 case $cc_basename in
10263 ifort*) _lt_dar_can_shared=yes ;;
10264 *) _lt_dar_can_shared=$GCC ;;
10265 esac
10266 if test "$_lt_dar_can_shared" = "yes"; then
10267 output_verbose_link_cmd=func_echo_all
10268 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10269 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10270 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
10271 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}"
10273 else
10274 ld_shlibs=no
10279 dgux*)
10280 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10281 hardcode_libdir_flag_spec='-L$libdir'
10282 hardcode_shlibpath_var=no
10285 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10286 # support. Future versions do this automatically, but an explicit c++rt0.o
10287 # does not break anything, and helps significantly (at the cost of a little
10288 # extra space).
10289 freebsd2.2*)
10290 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10291 hardcode_libdir_flag_spec='-R$libdir'
10292 hardcode_direct=yes
10293 hardcode_shlibpath_var=no
10296 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10297 freebsd2.*)
10298 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10299 hardcode_direct=yes
10300 hardcode_minus_L=yes
10301 hardcode_shlibpath_var=no
10304 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10305 freebsd* | dragonfly*)
10306 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10307 hardcode_libdir_flag_spec='-R$libdir'
10308 hardcode_direct=yes
10309 hardcode_shlibpath_var=no
10312 hpux9*)
10313 if test "$GCC" = yes; then
10314 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'
10315 else
10316 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'
10318 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10319 hardcode_libdir_separator=:
10320 hardcode_direct=yes
10322 # hardcode_minus_L: Not really in the search PATH,
10323 # but as the default location of the library.
10324 hardcode_minus_L=yes
10325 export_dynamic_flag_spec='${wl}-E'
10328 hpux10*)
10329 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10330 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10331 else
10332 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10334 if test "$with_gnu_ld" = no; then
10335 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10336 hardcode_libdir_flag_spec_ld='+b $libdir'
10337 hardcode_libdir_separator=:
10338 hardcode_direct=yes
10339 hardcode_direct_absolute=yes
10340 export_dynamic_flag_spec='${wl}-E'
10341 # hardcode_minus_L: Not really in the search PATH,
10342 # but as the default location of the library.
10343 hardcode_minus_L=yes
10347 hpux11*)
10348 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10349 case $host_cpu in
10350 hppa*64*)
10351 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10353 ia64*)
10354 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10357 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10359 esac
10360 else
10361 case $host_cpu in
10362 hppa*64*)
10363 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10365 ia64*)
10366 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10370 # Older versions of the 11.00 compiler do not understand -b yet
10371 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10373 $as_echo_n "checking if $CC understands -b... " >&6; }
10374 if ${lt_cv_prog_compiler__b+:} false; then :
10375 $as_echo_n "(cached) " >&6
10376 else
10377 lt_cv_prog_compiler__b=no
10378 save_LDFLAGS="$LDFLAGS"
10379 LDFLAGS="$LDFLAGS -b"
10380 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10381 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10382 # The linker can only warn and ignore the option if not recognized
10383 # So say no if there are warnings
10384 if test -s conftest.err; then
10385 # Append any errors to the config.log.
10386 cat conftest.err 1>&5
10387 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10388 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10389 if diff conftest.exp conftest.er2 >/dev/null; then
10390 lt_cv_prog_compiler__b=yes
10392 else
10393 lt_cv_prog_compiler__b=yes
10396 $RM -r conftest*
10397 LDFLAGS="$save_LDFLAGS"
10400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10401 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10403 if test x"$lt_cv_prog_compiler__b" = xyes; then
10404 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10405 else
10406 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10410 esac
10412 if test "$with_gnu_ld" = no; then
10413 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10414 hardcode_libdir_separator=:
10416 case $host_cpu in
10417 hppa*64*|ia64*)
10418 hardcode_direct=no
10419 hardcode_shlibpath_var=no
10422 hardcode_direct=yes
10423 hardcode_direct_absolute=yes
10424 export_dynamic_flag_spec='${wl}-E'
10426 # hardcode_minus_L: Not really in the search PATH,
10427 # but as the default location of the library.
10428 hardcode_minus_L=yes
10430 esac
10434 irix5* | irix6* | nonstopux*)
10435 if test "$GCC" = yes; then
10436 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'
10437 # Try to use the -exported_symbol ld option, if it does not
10438 # work, assume that -exports_file does not work either and
10439 # implicitly export all symbols.
10440 save_LDFLAGS="$LDFLAGS"
10441 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10443 /* end confdefs.h. */
10444 int foo(void) {}
10445 _ACEOF
10446 if ac_fn_c_try_link "$LINENO"; then :
10447 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'
10450 rm -f core conftest.err conftest.$ac_objext \
10451 conftest$ac_exeext conftest.$ac_ext
10452 LDFLAGS="$save_LDFLAGS"
10453 else
10454 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'
10455 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'
10457 archive_cmds_need_lc='no'
10458 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10459 hardcode_libdir_separator=:
10460 inherit_rpath=yes
10461 link_all_deplibs=yes
10464 netbsd*)
10465 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10466 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10467 else
10468 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10470 hardcode_libdir_flag_spec='-R$libdir'
10471 hardcode_direct=yes
10472 hardcode_shlibpath_var=no
10475 newsos6)
10476 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10477 hardcode_direct=yes
10478 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10479 hardcode_libdir_separator=:
10480 hardcode_shlibpath_var=no
10483 *nto* | *qnx*)
10486 openbsd*)
10487 if test -f /usr/libexec/ld.so; then
10488 hardcode_direct=yes
10489 hardcode_shlibpath_var=no
10490 hardcode_direct_absolute=yes
10491 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10492 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10493 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10494 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10495 export_dynamic_flag_spec='${wl}-E'
10496 else
10497 case $host_os in
10498 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10499 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10500 hardcode_libdir_flag_spec='-R$libdir'
10503 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10504 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10506 esac
10508 else
10509 ld_shlibs=no
10513 os2*)
10514 hardcode_libdir_flag_spec='-L$libdir'
10515 hardcode_minus_L=yes
10516 allow_undefined_flag=unsupported
10517 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'
10518 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10521 osf3*)
10522 if test "$GCC" = yes; then
10523 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10524 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'
10525 else
10526 allow_undefined_flag=' -expect_unresolved \*'
10527 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'
10529 archive_cmds_need_lc='no'
10530 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10531 hardcode_libdir_separator=:
10534 osf4* | osf5*) # as osf3* with the addition of -msym flag
10535 if test "$GCC" = yes; then
10536 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10537 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'
10538 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10539 else
10540 allow_undefined_flag=' -expect_unresolved \*'
10541 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'
10542 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~
10543 $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'
10545 # Both c and cxx compiler support -rpath directly
10546 hardcode_libdir_flag_spec='-rpath $libdir'
10548 archive_cmds_need_lc='no'
10549 hardcode_libdir_separator=:
10552 solaris*)
10553 no_undefined_flag=' -z defs'
10554 if test "$GCC" = yes; then
10555 wlarc='${wl}'
10556 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10557 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10558 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10559 else
10560 case `$CC -V 2>&1` in
10561 *"Compilers 5.0"*)
10562 wlarc=''
10563 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10564 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10565 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10568 wlarc='${wl}'
10569 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10570 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10571 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10573 esac
10575 hardcode_libdir_flag_spec='-R$libdir'
10576 hardcode_shlibpath_var=no
10577 case $host_os in
10578 solaris2.[0-5] | solaris2.[0-5].*) ;;
10580 # The compiler driver will combine and reorder linker options,
10581 # but understands `-z linker_flag'. GCC discards it without `$wl',
10582 # but is careful enough not to reorder.
10583 # Supported since Solaris 2.6 (maybe 2.5.1?)
10584 if test "$GCC" = yes; then
10585 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10586 else
10587 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10590 esac
10591 link_all_deplibs=yes
10594 sunos4*)
10595 if test "x$host_vendor" = xsequent; then
10596 # Use $CC to link under sequent, because it throws in some extra .o
10597 # files that make .init and .fini sections work.
10598 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10599 else
10600 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10602 hardcode_libdir_flag_spec='-L$libdir'
10603 hardcode_direct=yes
10604 hardcode_minus_L=yes
10605 hardcode_shlibpath_var=no
10608 sysv4)
10609 case $host_vendor in
10610 sni)
10611 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10612 hardcode_direct=yes # is this really true???
10614 siemens)
10615 ## LD is ld it makes a PLAMLIB
10616 ## CC just makes a GrossModule.
10617 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10618 reload_cmds='$CC -r -o $output$reload_objs'
10619 hardcode_direct=no
10621 motorola)
10622 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10623 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10625 esac
10626 runpath_var='LD_RUN_PATH'
10627 hardcode_shlibpath_var=no
10630 sysv4.3*)
10631 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10632 hardcode_shlibpath_var=no
10633 export_dynamic_flag_spec='-Bexport'
10636 sysv4*MP*)
10637 if test -d /usr/nec; then
10638 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10639 hardcode_shlibpath_var=no
10640 runpath_var=LD_RUN_PATH
10641 hardcode_runpath_var=yes
10642 ld_shlibs=yes
10646 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10647 no_undefined_flag='${wl}-z,text'
10648 archive_cmds_need_lc=no
10649 hardcode_shlibpath_var=no
10650 runpath_var='LD_RUN_PATH'
10652 if test "$GCC" = yes; then
10653 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10654 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10655 else
10656 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10657 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10661 sysv5* | sco3.2v5* | sco5v6*)
10662 # Note: We can NOT use -z defs as we might desire, because we do not
10663 # link with -lc, and that would cause any symbols used from libc to
10664 # always be unresolved, which means just about no library would
10665 # ever link correctly. If we're not using GNU ld we use -z text
10666 # though, which does catch some bad symbols but isn't as heavy-handed
10667 # as -z defs.
10668 no_undefined_flag='${wl}-z,text'
10669 allow_undefined_flag='${wl}-z,nodefs'
10670 archive_cmds_need_lc=no
10671 hardcode_shlibpath_var=no
10672 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10673 hardcode_libdir_separator=':'
10674 link_all_deplibs=yes
10675 export_dynamic_flag_spec='${wl}-Bexport'
10676 runpath_var='LD_RUN_PATH'
10678 if test "$GCC" = yes; then
10679 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10680 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10681 else
10682 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10683 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10687 uts4*)
10688 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10689 hardcode_libdir_flag_spec='-L$libdir'
10690 hardcode_shlibpath_var=no
10694 ld_shlibs=no
10696 esac
10698 if test x$host_vendor = xsni; then
10699 case $host in
10700 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10701 export_dynamic_flag_spec='${wl}-Blargedynsym'
10703 esac
10707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10708 $as_echo "$ld_shlibs" >&6; }
10709 test "$ld_shlibs" = no && can_build_shared=no
10711 with_gnu_ld=$with_gnu_ld
10728 # Do we need to explicitly link libc?
10730 case "x$archive_cmds_need_lc" in
10731 x|xyes)
10732 # Assume -lc should be added
10733 archive_cmds_need_lc=yes
10735 if test "$enable_shared" = yes && test "$GCC" = yes; then
10736 case $archive_cmds in
10737 *'~'*)
10738 # FIXME: we may have to deal with multi-command sequences.
10740 '$CC '*)
10741 # Test whether the compiler implicitly links with -lc since on some
10742 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10743 # to ld, don't add -lc before -lgcc.
10744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10745 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10746 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10747 $as_echo_n "(cached) " >&6
10748 else
10749 $RM conftest*
10750 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10752 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10753 (eval $ac_compile) 2>&5
10754 ac_status=$?
10755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10756 test $ac_status = 0; } 2>conftest.err; then
10757 soname=conftest
10758 lib=conftest
10759 libobjs=conftest.$ac_objext
10760 deplibs=
10761 wl=$lt_prog_compiler_wl
10762 pic_flag=$lt_prog_compiler_pic
10763 compiler_flags=-v
10764 linker_flags=-v
10765 verstring=
10766 output_objdir=.
10767 libname=conftest
10768 lt_save_allow_undefined_flag=$allow_undefined_flag
10769 allow_undefined_flag=
10770 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10771 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10772 ac_status=$?
10773 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10774 test $ac_status = 0; }
10775 then
10776 lt_cv_archive_cmds_need_lc=no
10777 else
10778 lt_cv_archive_cmds_need_lc=yes
10780 allow_undefined_flag=$lt_save_allow_undefined_flag
10781 else
10782 cat conftest.err 1>&5
10784 $RM conftest*
10787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10788 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10789 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10791 esac
10794 esac
10952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10953 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10955 if test "$GCC" = yes; then
10956 case $host_os in
10957 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10958 *) lt_awk_arg="/^libraries:/" ;;
10959 esac
10960 case $host_os in
10961 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10962 *) lt_sed_strip_eq="s,=/,/,g" ;;
10963 esac
10964 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10965 case $lt_search_path_spec in
10966 *\;*)
10967 # if the path contains ";" then we assume it to be the separator
10968 # otherwise default to the standard path separator (i.e. ":") - it is
10969 # assumed that no part of a normal pathname contains ";" but that should
10970 # okay in the real world where ";" in dirpaths is itself problematic.
10971 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10974 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10976 esac
10977 # Ok, now we have the path, separated by spaces, we can step through it
10978 # and add multilib dir if necessary.
10979 lt_tmp_lt_search_path_spec=
10980 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10981 for lt_sys_path in $lt_search_path_spec; do
10982 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10983 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10984 else
10985 test -d "$lt_sys_path" && \
10986 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10988 done
10989 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10990 BEGIN {RS=" "; FS="/|\n";} {
10991 lt_foo="";
10992 lt_count=0;
10993 for (lt_i = NF; lt_i > 0; lt_i--) {
10994 if ($lt_i != "" && $lt_i != ".") {
10995 if ($lt_i == "..") {
10996 lt_count++;
10997 } else {
10998 if (lt_count == 0) {
10999 lt_foo="/" $lt_i lt_foo;
11000 } else {
11001 lt_count--;
11006 if (lt_foo != "") { lt_freq[lt_foo]++; }
11007 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11009 # AWK program above erroneously prepends '/' to C:/dos/paths
11010 # for these hosts.
11011 case $host_os in
11012 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11013 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11014 esac
11015 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11016 else
11017 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11019 library_names_spec=
11020 libname_spec='lib$name'
11021 soname_spec=
11022 shrext_cmds=".so"
11023 postinstall_cmds=
11024 postuninstall_cmds=
11025 finish_cmds=
11026 finish_eval=
11027 shlibpath_var=
11028 shlibpath_overrides_runpath=unknown
11029 version_type=none
11030 dynamic_linker="$host_os ld.so"
11031 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11032 need_lib_prefix=unknown
11033 hardcode_into_libs=no
11035 # when you set need_version to no, make sure it does not cause -set_version
11036 # flags to be left without arguments
11037 need_version=unknown
11039 case $host_os in
11040 aix3*)
11041 version_type=linux
11042 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11043 shlibpath_var=LIBPATH
11045 # AIX 3 has no versioning support, so we append a major version to the name.
11046 soname_spec='${libname}${release}${shared_ext}$major'
11049 aix[4-9]*)
11050 version_type=linux
11051 need_lib_prefix=no
11052 need_version=no
11053 hardcode_into_libs=yes
11054 if test "$host_cpu" = ia64; then
11055 # AIX 5 supports IA64
11056 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11057 shlibpath_var=LD_LIBRARY_PATH
11058 else
11059 # With GCC up to 2.95.x, collect2 would create an import file
11060 # for dependence libraries. The import file would start with
11061 # the line `#! .'. This would cause the generated library to
11062 # depend on `.', always an invalid library. This was fixed in
11063 # development snapshots of GCC prior to 3.0.
11064 case $host_os in
11065 aix4 | aix4.[01] | aix4.[01].*)
11066 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11067 echo ' yes '
11068 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11070 else
11071 can_build_shared=no
11074 esac
11075 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11076 # soname into executable. Probably we can add versioning support to
11077 # collect2, so additional links can be useful in future.
11078 if test "$aix_use_runtimelinking" = yes; then
11079 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11080 # instead of lib<name>.a to let people know that these are not
11081 # typical AIX shared libraries.
11082 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11083 else
11084 # We preserve .a as extension for shared libraries through AIX4.2
11085 # and later when we are not doing run time linking.
11086 library_names_spec='${libname}${release}.a $libname.a'
11087 soname_spec='${libname}${release}${shared_ext}$major'
11089 shlibpath_var=LIBPATH
11093 amigaos*)
11094 case $host_cpu in
11095 powerpc)
11096 # Since July 2007 AmigaOS4 officially supports .so libraries.
11097 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11100 m68k)
11101 library_names_spec='$libname.ixlibrary $libname.a'
11102 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11103 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'
11105 esac
11108 beos*)
11109 library_names_spec='${libname}${shared_ext}'
11110 dynamic_linker="$host_os ld.so"
11111 shlibpath_var=LIBRARY_PATH
11114 bsdi[45]*)
11115 version_type=linux
11116 need_version=no
11117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11118 soname_spec='${libname}${release}${shared_ext}$major'
11119 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11120 shlibpath_var=LD_LIBRARY_PATH
11121 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11122 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11123 # the default ld.so.conf also contains /usr/contrib/lib and
11124 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11125 # libtool to hard-code these into programs
11128 cygwin* | mingw* | pw32* | cegcc*)
11129 version_type=windows
11130 shrext_cmds=".dll"
11131 need_version=no
11132 need_lib_prefix=no
11134 case $GCC,$host_os in
11135 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11136 library_names_spec='$libname.dll.a'
11137 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11138 postinstall_cmds='base_file=`basename \${file}`~
11139 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11140 dldir=$destdir/`dirname \$dlpath`~
11141 test -d \$dldir || mkdir -p \$dldir~
11142 $install_prog $dir/$dlname \$dldir/$dlname~
11143 chmod a+x \$dldir/$dlname~
11144 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11145 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11147 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11148 dlpath=$dir/\$dldll~
11149 $RM \$dlpath'
11150 shlibpath_overrides_runpath=yes
11152 case $host_os in
11153 cygwin*)
11154 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11155 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11157 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11159 mingw* | cegcc*)
11160 # MinGW DLLs use traditional 'lib' prefix
11161 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11163 pw32*)
11164 # pw32 DLLs use 'pw' prefix rather than 'lib'
11165 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11167 esac
11171 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11173 esac
11174 dynamic_linker='Win32 ld.exe'
11175 # FIXME: first we should search . and the directory the executable is in
11176 shlibpath_var=PATH
11179 darwin* | rhapsody*)
11180 dynamic_linker="$host_os dyld"
11181 version_type=darwin
11182 need_lib_prefix=no
11183 need_version=no
11184 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11185 soname_spec='${libname}${release}${major}$shared_ext'
11186 shlibpath_overrides_runpath=yes
11187 shlibpath_var=DYLD_LIBRARY_PATH
11188 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11190 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11191 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11194 dgux*)
11195 version_type=linux
11196 need_lib_prefix=no
11197 need_version=no
11198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11199 soname_spec='${libname}${release}${shared_ext}$major'
11200 shlibpath_var=LD_LIBRARY_PATH
11203 freebsd* | dragonfly*)
11204 # DragonFly does not have aout. When/if they implement a new
11205 # versioning mechanism, adjust this.
11206 if test -x /usr/bin/objformat; then
11207 objformat=`/usr/bin/objformat`
11208 else
11209 case $host_os in
11210 freebsd[23].*) objformat=aout ;;
11211 *) objformat=elf ;;
11212 esac
11214 version_type=freebsd-$objformat
11215 case $version_type in
11216 freebsd-elf*)
11217 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11218 need_version=no
11219 need_lib_prefix=no
11221 freebsd-*)
11222 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11223 need_version=yes
11225 esac
11226 shlibpath_var=LD_LIBRARY_PATH
11227 case $host_os in
11228 freebsd2.*)
11229 shlibpath_overrides_runpath=yes
11231 freebsd3.[01]* | freebsdelf3.[01]*)
11232 shlibpath_overrides_runpath=yes
11233 hardcode_into_libs=yes
11235 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11236 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11237 shlibpath_overrides_runpath=no
11238 hardcode_into_libs=yes
11240 *) # from 4.6 on, and DragonFly
11241 shlibpath_overrides_runpath=yes
11242 hardcode_into_libs=yes
11244 esac
11247 gnu*)
11248 version_type=linux
11249 need_lib_prefix=no
11250 need_version=no
11251 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11252 soname_spec='${libname}${release}${shared_ext}$major'
11253 shlibpath_var=LD_LIBRARY_PATH
11254 hardcode_into_libs=yes
11257 haiku*)
11258 version_type=linux
11259 need_lib_prefix=no
11260 need_version=no
11261 dynamic_linker="$host_os runtime_loader"
11262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11263 soname_spec='${libname}${release}${shared_ext}$major'
11264 shlibpath_var=LIBRARY_PATH
11265 shlibpath_overrides_runpath=yes
11266 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
11267 hardcode_into_libs=yes
11270 hpux9* | hpux10* | hpux11*)
11271 # Give a soname corresponding to the major version so that dld.sl refuses to
11272 # link against other versions.
11273 version_type=sunos
11274 need_lib_prefix=no
11275 need_version=no
11276 case $host_cpu in
11277 ia64*)
11278 shrext_cmds='.so'
11279 hardcode_into_libs=yes
11280 dynamic_linker="$host_os dld.so"
11281 shlibpath_var=LD_LIBRARY_PATH
11282 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11284 soname_spec='${libname}${release}${shared_ext}$major'
11285 if test "X$HPUX_IA64_MODE" = X32; then
11286 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11287 else
11288 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11290 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11292 hppa*64*)
11293 shrext_cmds='.sl'
11294 hardcode_into_libs=yes
11295 dynamic_linker="$host_os dld.sl"
11296 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11297 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11299 soname_spec='${libname}${release}${shared_ext}$major'
11300 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11301 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11304 shrext_cmds='.sl'
11305 dynamic_linker="$host_os dld.sl"
11306 shlibpath_var=SHLIB_PATH
11307 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11309 soname_spec='${libname}${release}${shared_ext}$major'
11311 esac
11312 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11313 postinstall_cmds='chmod 555 $lib'
11314 # or fails outright, so override atomically:
11315 install_override_mode=555
11318 interix[3-9]*)
11319 version_type=linux
11320 need_lib_prefix=no
11321 need_version=no
11322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11323 soname_spec='${libname}${release}${shared_ext}$major'
11324 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11325 shlibpath_var=LD_LIBRARY_PATH
11326 shlibpath_overrides_runpath=no
11327 hardcode_into_libs=yes
11330 irix5* | irix6* | nonstopux*)
11331 case $host_os in
11332 nonstopux*) version_type=nonstopux ;;
11334 if test "$lt_cv_prog_gnu_ld" = yes; then
11335 version_type=linux
11336 else
11337 version_type=irix
11338 fi ;;
11339 esac
11340 need_lib_prefix=no
11341 need_version=no
11342 soname_spec='${libname}${release}${shared_ext}$major'
11343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11344 case $host_os in
11345 irix5* | nonstopux*)
11346 libsuff= shlibsuff=
11349 case $LD in # libtool.m4 will add one of these switches to LD
11350 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11351 libsuff= shlibsuff= libmagic=32-bit;;
11352 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11353 libsuff=32 shlibsuff=N32 libmagic=N32;;
11354 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11355 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11356 *) libsuff= shlibsuff= libmagic=never-match;;
11357 esac
11359 esac
11360 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11361 shlibpath_overrides_runpath=no
11362 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11363 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11364 hardcode_into_libs=yes
11367 # No shared lib support for Linux oldld, aout, or coff.
11368 linux*oldld* | linux*aout* | linux*coff*)
11369 dynamic_linker=no
11372 # This must be Linux ELF.
11374 # uclinux* changes (here and below) have been submitted to the libtool
11375 # project, but have not yet been accepted: they are GCC-local changes
11376 # for the time being. (See
11377 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
11378 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
11379 version_type=linux
11380 need_lib_prefix=no
11381 need_version=no
11382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11383 soname_spec='${libname}${release}${shared_ext}$major'
11384 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11385 shlibpath_var=LD_LIBRARY_PATH
11386 shlibpath_overrides_runpath=no
11388 # Some binutils ld are patched to set DT_RUNPATH
11389 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11390 $as_echo_n "(cached) " >&6
11391 else
11392 lt_cv_shlibpath_overrides_runpath=no
11393 save_LDFLAGS=$LDFLAGS
11394 save_libdir=$libdir
11395 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11396 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11398 /* end confdefs.h. */
11401 main ()
11405 return 0;
11407 _ACEOF
11408 if ac_fn_c_try_link "$LINENO"; then :
11409 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11410 lt_cv_shlibpath_overrides_runpath=yes
11413 rm -f core conftest.err conftest.$ac_objext \
11414 conftest$ac_exeext conftest.$ac_ext
11415 LDFLAGS=$save_LDFLAGS
11416 libdir=$save_libdir
11420 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11422 # This implies no fast_install, which is unacceptable.
11423 # Some rework will be needed to allow for fast_install
11424 # before this can be enabled.
11425 hardcode_into_libs=yes
11427 # Append ld.so.conf contents to the search path
11428 if test -f /etc/ld.so.conf; then
11429 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' ' '`
11430 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11433 # We used to test for /lib/ld.so.1 and disable shared libraries on
11434 # powerpc, because MkLinux only supported shared libraries with the
11435 # GNU dynamic linker. Since this was broken with cross compilers,
11436 # most powerpc-linux boxes support dynamic linking these days and
11437 # people can always --disable-shared, the test was removed, and we
11438 # assume the GNU/Linux dynamic linker is in use.
11439 dynamic_linker='GNU/Linux ld.so'
11442 netbsd*)
11443 version_type=sunos
11444 need_lib_prefix=no
11445 need_version=no
11446 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11447 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11448 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11449 dynamic_linker='NetBSD (a.out) ld.so'
11450 else
11451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11452 soname_spec='${libname}${release}${shared_ext}$major'
11453 dynamic_linker='NetBSD ld.elf_so'
11455 shlibpath_var=LD_LIBRARY_PATH
11456 shlibpath_overrides_runpath=yes
11457 hardcode_into_libs=yes
11460 newsos6)
11461 version_type=linux
11462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11463 shlibpath_var=LD_LIBRARY_PATH
11464 shlibpath_overrides_runpath=yes
11467 *nto* | *qnx*)
11468 version_type=qnx
11469 need_lib_prefix=no
11470 need_version=no
11471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11472 soname_spec='${libname}${release}${shared_ext}$major'
11473 shlibpath_var=LD_LIBRARY_PATH
11474 shlibpath_overrides_runpath=no
11475 hardcode_into_libs=yes
11476 dynamic_linker='ldqnx.so'
11479 openbsd*)
11480 version_type=sunos
11481 sys_lib_dlsearch_path_spec="/usr/lib"
11482 need_lib_prefix=no
11483 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11484 case $host_os in
11485 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11486 *) need_version=no ;;
11487 esac
11488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11489 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11490 shlibpath_var=LD_LIBRARY_PATH
11491 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11492 case $host_os in
11493 openbsd2.[89] | openbsd2.[89].*)
11494 shlibpath_overrides_runpath=no
11497 shlibpath_overrides_runpath=yes
11499 esac
11500 else
11501 shlibpath_overrides_runpath=yes
11505 os2*)
11506 libname_spec='$name'
11507 shrext_cmds=".dll"
11508 need_lib_prefix=no
11509 library_names_spec='$libname${shared_ext} $libname.a'
11510 dynamic_linker='OS/2 ld.exe'
11511 shlibpath_var=LIBPATH
11514 osf3* | osf4* | osf5*)
11515 version_type=osf
11516 need_lib_prefix=no
11517 need_version=no
11518 soname_spec='${libname}${release}${shared_ext}$major'
11519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11520 shlibpath_var=LD_LIBRARY_PATH
11521 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11522 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11525 rdos*)
11526 dynamic_linker=no
11529 solaris*)
11530 version_type=linux
11531 need_lib_prefix=no
11532 need_version=no
11533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11534 soname_spec='${libname}${release}${shared_ext}$major'
11535 shlibpath_var=LD_LIBRARY_PATH
11536 shlibpath_overrides_runpath=yes
11537 hardcode_into_libs=yes
11538 # ldd complains unless libraries are executable
11539 postinstall_cmds='chmod +x $lib'
11542 sunos4*)
11543 version_type=sunos
11544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11545 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11546 shlibpath_var=LD_LIBRARY_PATH
11547 shlibpath_overrides_runpath=yes
11548 if test "$with_gnu_ld" = yes; then
11549 need_lib_prefix=no
11551 need_version=yes
11554 sysv4 | sysv4.3*)
11555 version_type=linux
11556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11557 soname_spec='${libname}${release}${shared_ext}$major'
11558 shlibpath_var=LD_LIBRARY_PATH
11559 case $host_vendor in
11560 sni)
11561 shlibpath_overrides_runpath=no
11562 need_lib_prefix=no
11563 runpath_var=LD_RUN_PATH
11565 siemens)
11566 need_lib_prefix=no
11568 motorola)
11569 need_lib_prefix=no
11570 need_version=no
11571 shlibpath_overrides_runpath=no
11572 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11574 esac
11577 sysv4*MP*)
11578 if test -d /usr/nec ;then
11579 version_type=linux
11580 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11581 soname_spec='$libname${shared_ext}.$major'
11582 shlibpath_var=LD_LIBRARY_PATH
11586 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11587 version_type=freebsd-elf
11588 need_lib_prefix=no
11589 need_version=no
11590 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11591 soname_spec='${libname}${release}${shared_ext}$major'
11592 shlibpath_var=LD_LIBRARY_PATH
11593 shlibpath_overrides_runpath=yes
11594 hardcode_into_libs=yes
11595 if test "$with_gnu_ld" = yes; then
11596 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11597 else
11598 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11599 case $host_os in
11600 sco3.2v5*)
11601 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11603 esac
11605 sys_lib_dlsearch_path_spec='/usr/lib'
11608 tpf*)
11609 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11610 version_type=linux
11611 need_lib_prefix=no
11612 need_version=no
11613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11614 shlibpath_var=LD_LIBRARY_PATH
11615 shlibpath_overrides_runpath=no
11616 hardcode_into_libs=yes
11619 uts4*)
11620 version_type=linux
11621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11622 soname_spec='${libname}${release}${shared_ext}$major'
11623 shlibpath_var=LD_LIBRARY_PATH
11627 dynamic_linker=no
11629 esac
11630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11631 $as_echo "$dynamic_linker" >&6; }
11632 test "$dynamic_linker" = no && can_build_shared=no
11634 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11635 if test "$GCC" = yes; then
11636 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11639 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11640 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11642 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11643 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11738 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11739 hardcode_action=
11740 if test -n "$hardcode_libdir_flag_spec" ||
11741 test -n "$runpath_var" ||
11742 test "X$hardcode_automatic" = "Xyes" ; then
11744 # We can hardcode non-existent directories.
11745 if test "$hardcode_direct" != no &&
11746 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11747 # have to relink, otherwise we might link with an installed library
11748 # when we should be linking with a yet-to-be-installed one
11749 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11750 test "$hardcode_minus_L" != no; then
11751 # Linking always hardcodes the temporary library directory.
11752 hardcode_action=relink
11753 else
11754 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11755 hardcode_action=immediate
11757 else
11758 # We cannot hardcode anything, or else we can only hardcode existing
11759 # directories.
11760 hardcode_action=unsupported
11762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11763 $as_echo "$hardcode_action" >&6; }
11765 if test "$hardcode_action" = relink ||
11766 test "$inherit_rpath" = yes; then
11767 # Fast installation is not supported
11768 enable_fast_install=no
11769 elif test "$shlibpath_overrides_runpath" = yes ||
11770 test "$enable_shared" = no; then
11771 # Fast installation is not necessary
11772 enable_fast_install=needless
11780 if test "x$enable_dlopen" != xyes; then
11781 enable_dlopen=unknown
11782 enable_dlopen_self=unknown
11783 enable_dlopen_self_static=unknown
11784 else
11785 lt_cv_dlopen=no
11786 lt_cv_dlopen_libs=
11788 case $host_os in
11789 beos*)
11790 lt_cv_dlopen="load_add_on"
11791 lt_cv_dlopen_libs=
11792 lt_cv_dlopen_self=yes
11795 mingw* | pw32* | cegcc*)
11796 lt_cv_dlopen="LoadLibrary"
11797 lt_cv_dlopen_libs=
11800 cygwin*)
11801 lt_cv_dlopen="dlopen"
11802 lt_cv_dlopen_libs=
11805 darwin*)
11806 # if libdl is installed we need to link against it
11807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11808 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11809 if ${ac_cv_lib_dl_dlopen+:} false; then :
11810 $as_echo_n "(cached) " >&6
11811 else
11812 ac_check_lib_save_LIBS=$LIBS
11813 LIBS="-ldl $LIBS"
11814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11815 /* end confdefs.h. */
11817 /* Override any GCC internal prototype to avoid an error.
11818 Use char because int might match the return type of a GCC
11819 builtin and then its argument prototype would still apply. */
11820 #ifdef __cplusplus
11821 extern "C"
11822 #endif
11823 char dlopen ();
11825 main ()
11827 return dlopen ();
11829 return 0;
11831 _ACEOF
11832 if ac_fn_c_try_link "$LINENO"; then :
11833 ac_cv_lib_dl_dlopen=yes
11834 else
11835 ac_cv_lib_dl_dlopen=no
11837 rm -f core conftest.err conftest.$ac_objext \
11838 conftest$ac_exeext conftest.$ac_ext
11839 LIBS=$ac_check_lib_save_LIBS
11841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11842 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11843 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11844 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11845 else
11847 lt_cv_dlopen="dyld"
11848 lt_cv_dlopen_libs=
11849 lt_cv_dlopen_self=yes
11856 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11857 if test "x$ac_cv_func_shl_load" = xyes; then :
11858 lt_cv_dlopen="shl_load"
11859 else
11860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11861 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11862 if ${ac_cv_lib_dld_shl_load+:} false; then :
11863 $as_echo_n "(cached) " >&6
11864 else
11865 ac_check_lib_save_LIBS=$LIBS
11866 LIBS="-ldld $LIBS"
11867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11868 /* end confdefs.h. */
11870 /* Override any GCC internal prototype to avoid an error.
11871 Use char because int might match the return type of a GCC
11872 builtin and then its argument prototype would still apply. */
11873 #ifdef __cplusplus
11874 extern "C"
11875 #endif
11876 char shl_load ();
11878 main ()
11880 return shl_load ();
11882 return 0;
11884 _ACEOF
11885 if ac_fn_c_try_link "$LINENO"; then :
11886 ac_cv_lib_dld_shl_load=yes
11887 else
11888 ac_cv_lib_dld_shl_load=no
11890 rm -f core conftest.err conftest.$ac_objext \
11891 conftest$ac_exeext conftest.$ac_ext
11892 LIBS=$ac_check_lib_save_LIBS
11894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11895 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11896 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11897 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11898 else
11899 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11900 if test "x$ac_cv_func_dlopen" = xyes; then :
11901 lt_cv_dlopen="dlopen"
11902 else
11903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11904 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11905 if ${ac_cv_lib_dl_dlopen+:} false; then :
11906 $as_echo_n "(cached) " >&6
11907 else
11908 ac_check_lib_save_LIBS=$LIBS
11909 LIBS="-ldl $LIBS"
11910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11911 /* end confdefs.h. */
11913 /* Override any GCC internal prototype to avoid an error.
11914 Use char because int might match the return type of a GCC
11915 builtin and then its argument prototype would still apply. */
11916 #ifdef __cplusplus
11917 extern "C"
11918 #endif
11919 char dlopen ();
11921 main ()
11923 return dlopen ();
11925 return 0;
11927 _ACEOF
11928 if ac_fn_c_try_link "$LINENO"; then :
11929 ac_cv_lib_dl_dlopen=yes
11930 else
11931 ac_cv_lib_dl_dlopen=no
11933 rm -f core conftest.err conftest.$ac_objext \
11934 conftest$ac_exeext conftest.$ac_ext
11935 LIBS=$ac_check_lib_save_LIBS
11937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11938 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11939 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11940 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11941 else
11942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11943 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11944 if ${ac_cv_lib_svld_dlopen+:} false; then :
11945 $as_echo_n "(cached) " >&6
11946 else
11947 ac_check_lib_save_LIBS=$LIBS
11948 LIBS="-lsvld $LIBS"
11949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11950 /* end confdefs.h. */
11952 /* Override any GCC internal prototype to avoid an error.
11953 Use char because int might match the return type of a GCC
11954 builtin and then its argument prototype would still apply. */
11955 #ifdef __cplusplus
11956 extern "C"
11957 #endif
11958 char dlopen ();
11960 main ()
11962 return dlopen ();
11964 return 0;
11966 _ACEOF
11967 if ac_fn_c_try_link "$LINENO"; then :
11968 ac_cv_lib_svld_dlopen=yes
11969 else
11970 ac_cv_lib_svld_dlopen=no
11972 rm -f core conftest.err conftest.$ac_objext \
11973 conftest$ac_exeext conftest.$ac_ext
11974 LIBS=$ac_check_lib_save_LIBS
11976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11977 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11978 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11979 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11980 else
11981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11982 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11983 if ${ac_cv_lib_dld_dld_link+:} false; then :
11984 $as_echo_n "(cached) " >&6
11985 else
11986 ac_check_lib_save_LIBS=$LIBS
11987 LIBS="-ldld $LIBS"
11988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11989 /* end confdefs.h. */
11991 /* Override any GCC internal prototype to avoid an error.
11992 Use char because int might match the return type of a GCC
11993 builtin and then its argument prototype would still apply. */
11994 #ifdef __cplusplus
11995 extern "C"
11996 #endif
11997 char dld_link ();
11999 main ()
12001 return dld_link ();
12003 return 0;
12005 _ACEOF
12006 if ac_fn_c_try_link "$LINENO"; then :
12007 ac_cv_lib_dld_dld_link=yes
12008 else
12009 ac_cv_lib_dld_dld_link=no
12011 rm -f core conftest.err conftest.$ac_objext \
12012 conftest$ac_exeext conftest.$ac_ext
12013 LIBS=$ac_check_lib_save_LIBS
12015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12016 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12017 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12018 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12037 esac
12039 if test "x$lt_cv_dlopen" != xno; then
12040 enable_dlopen=yes
12041 else
12042 enable_dlopen=no
12045 case $lt_cv_dlopen in
12046 dlopen)
12047 save_CPPFLAGS="$CPPFLAGS"
12048 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12050 save_LDFLAGS="$LDFLAGS"
12051 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12053 save_LIBS="$LIBS"
12054 LIBS="$lt_cv_dlopen_libs $LIBS"
12056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12057 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12058 if ${lt_cv_dlopen_self+:} false; then :
12059 $as_echo_n "(cached) " >&6
12060 else
12061 if test "$cross_compiling" = yes; then :
12062 lt_cv_dlopen_self=cross
12063 else
12064 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12065 lt_status=$lt_dlunknown
12066 cat > conftest.$ac_ext <<_LT_EOF
12067 #line 12067 "configure"
12068 #include "confdefs.h"
12070 #if HAVE_DLFCN_H
12071 #include <dlfcn.h>
12072 #endif
12074 #include <stdio.h>
12076 #ifdef RTLD_GLOBAL
12077 # define LT_DLGLOBAL RTLD_GLOBAL
12078 #else
12079 # ifdef DL_GLOBAL
12080 # define LT_DLGLOBAL DL_GLOBAL
12081 # else
12082 # define LT_DLGLOBAL 0
12083 # endif
12084 #endif
12086 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12087 find out it does not work in some platform. */
12088 #ifndef LT_DLLAZY_OR_NOW
12089 # ifdef RTLD_LAZY
12090 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12091 # else
12092 # ifdef DL_LAZY
12093 # define LT_DLLAZY_OR_NOW DL_LAZY
12094 # else
12095 # ifdef RTLD_NOW
12096 # define LT_DLLAZY_OR_NOW RTLD_NOW
12097 # else
12098 # ifdef DL_NOW
12099 # define LT_DLLAZY_OR_NOW DL_NOW
12100 # else
12101 # define LT_DLLAZY_OR_NOW 0
12102 # endif
12103 # endif
12104 # endif
12105 # endif
12106 #endif
12108 /* When -fvisbility=hidden is used, assume the code has been annotated
12109 correspondingly for the symbols needed. */
12110 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12111 void fnord () __attribute__((visibility("default")));
12112 #endif
12114 void fnord () { int i=42; }
12115 int main ()
12117 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12118 int status = $lt_dlunknown;
12120 if (self)
12122 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12123 else
12125 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12126 else puts (dlerror ());
12128 /* dlclose (self); */
12130 else
12131 puts (dlerror ());
12133 return status;
12135 _LT_EOF
12136 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12137 (eval $ac_link) 2>&5
12138 ac_status=$?
12139 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12140 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12141 (./conftest; exit; ) >&5 2>/dev/null
12142 lt_status=$?
12143 case x$lt_status in
12144 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12145 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12146 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12147 esac
12148 else :
12149 # compilation failed
12150 lt_cv_dlopen_self=no
12153 rm -fr conftest*
12157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12158 $as_echo "$lt_cv_dlopen_self" >&6; }
12160 if test "x$lt_cv_dlopen_self" = xyes; then
12161 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12163 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12164 if ${lt_cv_dlopen_self_static+:} false; then :
12165 $as_echo_n "(cached) " >&6
12166 else
12167 if test "$cross_compiling" = yes; then :
12168 lt_cv_dlopen_self_static=cross
12169 else
12170 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12171 lt_status=$lt_dlunknown
12172 cat > conftest.$ac_ext <<_LT_EOF
12173 #line 12173 "configure"
12174 #include "confdefs.h"
12176 #if HAVE_DLFCN_H
12177 #include <dlfcn.h>
12178 #endif
12180 #include <stdio.h>
12182 #ifdef RTLD_GLOBAL
12183 # define LT_DLGLOBAL RTLD_GLOBAL
12184 #else
12185 # ifdef DL_GLOBAL
12186 # define LT_DLGLOBAL DL_GLOBAL
12187 # else
12188 # define LT_DLGLOBAL 0
12189 # endif
12190 #endif
12192 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12193 find out it does not work in some platform. */
12194 #ifndef LT_DLLAZY_OR_NOW
12195 # ifdef RTLD_LAZY
12196 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12197 # else
12198 # ifdef DL_LAZY
12199 # define LT_DLLAZY_OR_NOW DL_LAZY
12200 # else
12201 # ifdef RTLD_NOW
12202 # define LT_DLLAZY_OR_NOW RTLD_NOW
12203 # else
12204 # ifdef DL_NOW
12205 # define LT_DLLAZY_OR_NOW DL_NOW
12206 # else
12207 # define LT_DLLAZY_OR_NOW 0
12208 # endif
12209 # endif
12210 # endif
12211 # endif
12212 #endif
12214 /* When -fvisbility=hidden is used, assume the code has been annotated
12215 correspondingly for the symbols needed. */
12216 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12217 void fnord () __attribute__((visibility("default")));
12218 #endif
12220 void fnord () { int i=42; }
12221 int main ()
12223 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12224 int status = $lt_dlunknown;
12226 if (self)
12228 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12229 else
12231 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12232 else puts (dlerror ());
12234 /* dlclose (self); */
12236 else
12237 puts (dlerror ());
12239 return status;
12241 _LT_EOF
12242 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12243 (eval $ac_link) 2>&5
12244 ac_status=$?
12245 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12246 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12247 (./conftest; exit; ) >&5 2>/dev/null
12248 lt_status=$?
12249 case x$lt_status in
12250 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12251 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12252 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12253 esac
12254 else :
12255 # compilation failed
12256 lt_cv_dlopen_self_static=no
12259 rm -fr conftest*
12263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12264 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12267 CPPFLAGS="$save_CPPFLAGS"
12268 LDFLAGS="$save_LDFLAGS"
12269 LIBS="$save_LIBS"
12271 esac
12273 case $lt_cv_dlopen_self in
12274 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12275 *) enable_dlopen_self=unknown ;;
12276 esac
12278 case $lt_cv_dlopen_self_static in
12279 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12280 *) enable_dlopen_self_static=unknown ;;
12281 esac
12300 striplib=
12301 old_striplib=
12302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12303 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12304 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12305 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12306 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12308 $as_echo "yes" >&6; }
12309 else
12310 # FIXME - insert some real tests, host_os isn't really good enough
12311 case $host_os in
12312 darwin*)
12313 if test -n "$STRIP" ; then
12314 striplib="$STRIP -x"
12315 old_striplib="$STRIP -S"
12316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12317 $as_echo "yes" >&6; }
12318 else
12319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12320 $as_echo "no" >&6; }
12324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12325 $as_echo "no" >&6; }
12327 esac
12341 # Report which library types will actually be built
12342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12343 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12345 $as_echo "$can_build_shared" >&6; }
12347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12348 $as_echo_n "checking whether to build shared libraries... " >&6; }
12349 test "$can_build_shared" = "no" && enable_shared=no
12351 # On AIX, shared libraries and static libraries use the same namespace, and
12352 # are all built from PIC.
12353 case $host_os in
12354 aix3*)
12355 test "$enable_shared" = yes && enable_static=no
12356 if test -n "$RANLIB"; then
12357 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12358 postinstall_cmds='$RANLIB $lib'
12362 aix[4-9]*)
12363 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12364 test "$enable_shared" = yes && enable_static=no
12367 esac
12368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12369 $as_echo "$enable_shared" >&6; }
12371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12372 $as_echo_n "checking whether to build static libraries... " >&6; }
12373 # Make sure either enable_shared or enable_static is yes.
12374 test "$enable_shared" = yes || enable_static=yes
12375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12376 $as_echo "$enable_static" >&6; }
12382 ac_ext=c
12383 ac_cpp='$CPP $CPPFLAGS'
12384 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12385 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12386 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12388 CC="$lt_save_CC"
12390 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12391 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12392 (test "X$CXX" != "Xg++"))) ; then
12393 ac_ext=cpp
12394 ac_cpp='$CXXCPP $CPPFLAGS'
12395 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12396 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12397 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12399 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12400 if test -z "$CXXCPP"; then
12401 if ${ac_cv_prog_CXXCPP+:} false; then :
12402 $as_echo_n "(cached) " >&6
12403 else
12404 # Double quotes because CXXCPP needs to be expanded
12405 for CXXCPP in "$CXX -E" "/lib/cpp"
12407 ac_preproc_ok=false
12408 for ac_cxx_preproc_warn_flag in '' yes
12410 # Use a header file that comes with gcc, so configuring glibc
12411 # with a fresh cross-compiler works.
12412 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12413 # <limits.h> exists even on freestanding compilers.
12414 # On the NeXT, cc -E runs the code through the compiler's parser,
12415 # not just through cpp. "Syntax error" is here to catch this case.
12416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12417 /* end confdefs.h. */
12418 #ifdef __STDC__
12419 # include <limits.h>
12420 #else
12421 # include <assert.h>
12422 #endif
12423 Syntax error
12424 _ACEOF
12425 if ac_fn_cxx_try_cpp "$LINENO"; then :
12427 else
12428 # Broken: fails on valid input.
12429 continue
12431 rm -f conftest.err conftest.i conftest.$ac_ext
12433 # OK, works on sane cases. Now check whether nonexistent headers
12434 # can be detected and how.
12435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12436 /* end confdefs.h. */
12437 #include <ac_nonexistent.h>
12438 _ACEOF
12439 if ac_fn_cxx_try_cpp "$LINENO"; then :
12440 # Broken: success on invalid input.
12441 continue
12442 else
12443 # Passes both tests.
12444 ac_preproc_ok=:
12445 break
12447 rm -f conftest.err conftest.i conftest.$ac_ext
12449 done
12450 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12451 rm -f conftest.i conftest.err conftest.$ac_ext
12452 if $ac_preproc_ok; then :
12453 break
12456 done
12457 ac_cv_prog_CXXCPP=$CXXCPP
12460 CXXCPP=$ac_cv_prog_CXXCPP
12461 else
12462 ac_cv_prog_CXXCPP=$CXXCPP
12464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12465 $as_echo "$CXXCPP" >&6; }
12466 ac_preproc_ok=false
12467 for ac_cxx_preproc_warn_flag in '' yes
12469 # Use a header file that comes with gcc, so configuring glibc
12470 # with a fresh cross-compiler works.
12471 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12472 # <limits.h> exists even on freestanding compilers.
12473 # On the NeXT, cc -E runs the code through the compiler's parser,
12474 # not just through cpp. "Syntax error" is here to catch this case.
12475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12476 /* end confdefs.h. */
12477 #ifdef __STDC__
12478 # include <limits.h>
12479 #else
12480 # include <assert.h>
12481 #endif
12482 Syntax error
12483 _ACEOF
12484 if ac_fn_cxx_try_cpp "$LINENO"; then :
12486 else
12487 # Broken: fails on valid input.
12488 continue
12490 rm -f conftest.err conftest.i conftest.$ac_ext
12492 # OK, works on sane cases. Now check whether nonexistent headers
12493 # can be detected and how.
12494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12495 /* end confdefs.h. */
12496 #include <ac_nonexistent.h>
12497 _ACEOF
12498 if ac_fn_cxx_try_cpp "$LINENO"; then :
12499 # Broken: success on invalid input.
12500 continue
12501 else
12502 # Passes both tests.
12503 ac_preproc_ok=:
12504 break
12506 rm -f conftest.err conftest.i conftest.$ac_ext
12508 done
12509 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12510 rm -f conftest.i conftest.err conftest.$ac_ext
12511 if $ac_preproc_ok; then :
12513 else
12514 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12515 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12516 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12517 See \`config.log' for more details" "$LINENO" 5; }
12520 ac_ext=c
12521 ac_cpp='$CPP $CPPFLAGS'
12522 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12523 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12524 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12526 else
12527 _lt_caught_CXX_error=yes
12530 ac_ext=cpp
12531 ac_cpp='$CXXCPP $CPPFLAGS'
12532 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12533 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12534 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12536 archive_cmds_need_lc_CXX=no
12537 allow_undefined_flag_CXX=
12538 always_export_symbols_CXX=no
12539 archive_expsym_cmds_CXX=
12540 compiler_needs_object_CXX=no
12541 export_dynamic_flag_spec_CXX=
12542 hardcode_direct_CXX=no
12543 hardcode_direct_absolute_CXX=no
12544 hardcode_libdir_flag_spec_CXX=
12545 hardcode_libdir_flag_spec_ld_CXX=
12546 hardcode_libdir_separator_CXX=
12547 hardcode_minus_L_CXX=no
12548 hardcode_shlibpath_var_CXX=unsupported
12549 hardcode_automatic_CXX=no
12550 inherit_rpath_CXX=no
12551 module_cmds_CXX=
12552 module_expsym_cmds_CXX=
12553 link_all_deplibs_CXX=unknown
12554 old_archive_cmds_CXX=$old_archive_cmds
12555 reload_flag_CXX=$reload_flag
12556 reload_cmds_CXX=$reload_cmds
12557 no_undefined_flag_CXX=
12558 whole_archive_flag_spec_CXX=
12559 enable_shared_with_static_runtimes_CXX=no
12561 # Source file extension for C++ test sources.
12562 ac_ext=cpp
12564 # Object file extension for compiled C++ test sources.
12565 objext=o
12566 objext_CXX=$objext
12568 # No sense in running all these tests if we already determined that
12569 # the CXX compiler isn't working. Some variables (like enable_shared)
12570 # are currently assumed to apply to all compilers on this platform,
12571 # and will be corrupted by setting them based on a non-working compiler.
12572 if test "$_lt_caught_CXX_error" != yes; then
12573 # Code to be used in simple compile tests
12574 lt_simple_compile_test_code="int some_variable = 0;"
12576 # Code to be used in simple link tests
12577 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12579 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12586 # If no C compiler was specified, use CC.
12587 LTCC=${LTCC-"$CC"}
12589 # If no C compiler flags were specified, use CFLAGS.
12590 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12592 # Allow CC to be a program name with arguments.
12593 compiler=$CC
12596 # save warnings/boilerplate of simple test code
12597 ac_outfile=conftest.$ac_objext
12598 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12599 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12600 _lt_compiler_boilerplate=`cat conftest.err`
12601 $RM conftest*
12603 ac_outfile=conftest.$ac_objext
12604 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12605 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12606 _lt_linker_boilerplate=`cat conftest.err`
12607 $RM -r conftest*
12610 # Allow CC to be a program name with arguments.
12611 lt_save_CC=$CC
12612 lt_save_LD=$LD
12613 lt_save_GCC=$GCC
12614 GCC=$GXX
12615 lt_save_with_gnu_ld=$with_gnu_ld
12616 lt_save_path_LD=$lt_cv_path_LD
12617 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12618 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12619 else
12620 $as_unset lt_cv_prog_gnu_ld
12622 if test -n "${lt_cv_path_LDCXX+set}"; then
12623 lt_cv_path_LD=$lt_cv_path_LDCXX
12624 else
12625 $as_unset lt_cv_path_LD
12627 test -z "${LDCXX+set}" || LD=$LDCXX
12628 CC=${CXX-"c++"}
12629 compiler=$CC
12630 compiler_CXX=$CC
12631 for cc_temp in $compiler""; do
12632 case $cc_temp in
12633 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12634 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12635 \-*) ;;
12636 *) break;;
12637 esac
12638 done
12639 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12642 if test -n "$compiler"; then
12643 # We don't want -fno-exception when compiling C++ code, so set the
12644 # no_builtin_flag separately
12645 if test "$GXX" = yes; then
12646 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12647 else
12648 lt_prog_compiler_no_builtin_flag_CXX=
12651 if test "$GXX" = yes; then
12652 # Set up default GNU C++ configuration
12656 # Check whether --with-gnu-ld was given.
12657 if test "${with_gnu_ld+set}" = set; then :
12658 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12659 else
12660 with_gnu_ld=no
12663 ac_prog=ld
12664 if test "$GCC" = yes; then
12665 # Check if gcc -print-prog-name=ld gives a path.
12666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12667 $as_echo_n "checking for ld used by $CC... " >&6; }
12668 case $host in
12669 *-*-mingw*)
12670 # gcc leaves a trailing carriage return which upsets mingw
12671 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12673 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12674 esac
12675 case $ac_prog in
12676 # Accept absolute paths.
12677 [\\/]* | ?:[\\/]*)
12678 re_direlt='/[^/][^/]*/\.\./'
12679 # Canonicalize the pathname of ld
12680 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12681 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12682 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12683 done
12684 test -z "$LD" && LD="$ac_prog"
12687 # If it fails, then pretend we aren't using GCC.
12688 ac_prog=ld
12691 # If it is relative, then search for the first ld in PATH.
12692 with_gnu_ld=unknown
12694 esac
12695 elif test "$with_gnu_ld" = yes; then
12696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12697 $as_echo_n "checking for GNU ld... " >&6; }
12698 else
12699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12700 $as_echo_n "checking for non-GNU ld... " >&6; }
12702 if ${lt_cv_path_LD+:} false; then :
12703 $as_echo_n "(cached) " >&6
12704 else
12705 if test -z "$LD"; then
12706 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12707 for ac_dir in $PATH; do
12708 IFS="$lt_save_ifs"
12709 test -z "$ac_dir" && ac_dir=.
12710 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12711 lt_cv_path_LD="$ac_dir/$ac_prog"
12712 # Check to see if the program is GNU ld. I'd rather use --version,
12713 # but apparently some variants of GNU ld only accept -v.
12714 # Break only if it was the GNU/non-GNU ld that we prefer.
12715 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12716 *GNU* | *'with BFD'*)
12717 test "$with_gnu_ld" != no && break
12720 test "$with_gnu_ld" != yes && break
12722 esac
12724 done
12725 IFS="$lt_save_ifs"
12726 else
12727 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12731 LD="$lt_cv_path_LD"
12732 if test -n "$LD"; then
12733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12734 $as_echo "$LD" >&6; }
12735 else
12736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12737 $as_echo "no" >&6; }
12739 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12741 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12742 if ${lt_cv_prog_gnu_ld+:} false; then :
12743 $as_echo_n "(cached) " >&6
12744 else
12745 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12746 case `$LD -v 2>&1 </dev/null` in
12747 *GNU* | *'with BFD'*)
12748 lt_cv_prog_gnu_ld=yes
12751 lt_cv_prog_gnu_ld=no
12753 esac
12755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12756 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12757 with_gnu_ld=$lt_cv_prog_gnu_ld
12765 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12766 # archiving commands below assume that GNU ld is being used.
12767 if test "$with_gnu_ld" = yes; then
12768 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12769 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'
12771 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12772 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12774 # If archive_cmds runs LD, not CC, wlarc should be empty
12775 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12776 # investigate it a little bit more. (MM)
12777 wlarc='${wl}'
12779 # ancient GNU ld didn't support --whole-archive et. al.
12780 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12781 $GREP 'no-whole-archive' > /dev/null; then
12782 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12783 else
12784 whole_archive_flag_spec_CXX=
12786 else
12787 with_gnu_ld=no
12788 wlarc=
12790 # A generic and very simple default shared library creation
12791 # command for GNU C++ for the case where it uses the native
12792 # linker, instead of GNU ld. If possible, this setting should
12793 # overridden to take advantage of the native linker features on
12794 # the platform it is being used on.
12795 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12798 # Commands to make compiler produce verbose output that lists
12799 # what "hidden" libraries, object files and flags are used when
12800 # linking a shared library.
12801 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12803 else
12804 GXX=no
12805 with_gnu_ld=no
12806 wlarc=
12809 # PORTME: fill in a description of your system's C++ link characteristics
12810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12811 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12812 ld_shlibs_CXX=yes
12813 case $host_os in
12814 aix3*)
12815 # FIXME: insert proper C++ library support
12816 ld_shlibs_CXX=no
12818 aix[4-9]*)
12819 if test "$host_cpu" = ia64; then
12820 # On IA64, the linker does run time linking by default, so we don't
12821 # have to do anything special.
12822 aix_use_runtimelinking=no
12823 exp_sym_flag='-Bexport'
12824 no_entry_flag=""
12825 else
12826 aix_use_runtimelinking=no
12828 # Test if we are trying to use run time linking or normal
12829 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12830 # need to do runtime linking.
12831 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12832 for ld_flag in $LDFLAGS; do
12833 case $ld_flag in
12834 *-brtl*)
12835 aix_use_runtimelinking=yes
12836 break
12838 esac
12839 done
12841 esac
12843 exp_sym_flag='-bexport'
12844 no_entry_flag='-bnoentry'
12847 # When large executables or shared objects are built, AIX ld can
12848 # have problems creating the table of contents. If linking a library
12849 # or program results in "error TOC overflow" add -mminimal-toc to
12850 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12851 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12853 archive_cmds_CXX=''
12854 hardcode_direct_CXX=yes
12855 hardcode_direct_absolute_CXX=yes
12856 hardcode_libdir_separator_CXX=':'
12857 link_all_deplibs_CXX=yes
12858 file_list_spec_CXX='${wl}-f,'
12860 if test "$GXX" = yes; then
12861 case $host_os in aix4.[012]|aix4.[012].*)
12862 # We only want to do this on AIX 4.2 and lower, the check
12863 # below for broken collect2 doesn't work under 4.3+
12864 collect2name=`${CC} -print-prog-name=collect2`
12865 if test -f "$collect2name" &&
12866 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12867 then
12868 # We have reworked collect2
12870 else
12871 # We have old collect2
12872 hardcode_direct_CXX=unsupported
12873 # It fails to find uninstalled libraries when the uninstalled
12874 # path is not listed in the libpath. Setting hardcode_minus_L
12875 # to unsupported forces relinking
12876 hardcode_minus_L_CXX=yes
12877 hardcode_libdir_flag_spec_CXX='-L$libdir'
12878 hardcode_libdir_separator_CXX=
12880 esac
12881 shared_flag='-shared'
12882 if test "$aix_use_runtimelinking" = yes; then
12883 shared_flag="$shared_flag "'${wl}-G'
12885 else
12886 # not using gcc
12887 if test "$host_cpu" = ia64; then
12888 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12889 # chokes on -Wl,-G. The following line is correct:
12890 shared_flag='-G'
12891 else
12892 if test "$aix_use_runtimelinking" = yes; then
12893 shared_flag='${wl}-G'
12894 else
12895 shared_flag='${wl}-bM:SRE'
12900 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12901 # It seems that -bexpall does not export symbols beginning with
12902 # underscore (_), so it is better to generate a list of symbols to
12903 # export.
12904 always_export_symbols_CXX=yes
12905 if test "$aix_use_runtimelinking" = yes; then
12906 # Warning - without using the other runtime loading flags (-brtl),
12907 # -berok will link without error, but may produce a broken library.
12908 allow_undefined_flag_CXX='-berok'
12909 # Determine the default libpath from the value encoded in an empty
12910 # executable.
12911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12912 /* end confdefs.h. */
12915 main ()
12919 return 0;
12921 _ACEOF
12922 if ac_fn_cxx_try_link "$LINENO"; then :
12924 lt_aix_libpath_sed='
12925 /Import File Strings/,/^$/ {
12926 /^0/ {
12927 s/^0 *\(.*\)$/\1/
12931 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12932 # Check for a 64-bit object if we didn't find anything.
12933 if test -z "$aix_libpath"; then
12934 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12937 rm -f core conftest.err conftest.$ac_objext \
12938 conftest$ac_exeext conftest.$ac_ext
12939 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12941 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12943 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"
12944 else
12945 if test "$host_cpu" = ia64; then
12946 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12947 allow_undefined_flag_CXX="-z nodefs"
12948 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"
12949 else
12950 # Determine the default libpath from the value encoded in an
12951 # empty executable.
12952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12953 /* end confdefs.h. */
12956 main ()
12960 return 0;
12962 _ACEOF
12963 if ac_fn_cxx_try_link "$LINENO"; then :
12965 lt_aix_libpath_sed='
12966 /Import File Strings/,/^$/ {
12967 /^0/ {
12968 s/^0 *\(.*\)$/\1/
12972 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12973 # Check for a 64-bit object if we didn't find anything.
12974 if test -z "$aix_libpath"; then
12975 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12978 rm -f core conftest.err conftest.$ac_objext \
12979 conftest$ac_exeext conftest.$ac_ext
12980 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12982 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12983 # Warning - without using the other run time loading flags,
12984 # -berok will link without error, but may produce a broken library.
12985 no_undefined_flag_CXX=' ${wl}-bernotok'
12986 allow_undefined_flag_CXX=' ${wl}-berok'
12987 if test "$with_gnu_ld" = yes; then
12988 # We only use this code for GNU lds that support --whole-archive.
12989 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12990 else
12991 # Exported symbols can be pulled into shared objects from archives
12992 whole_archive_flag_spec_CXX='$convenience'
12994 archive_cmds_need_lc_CXX=yes
12995 # This is similar to how AIX traditionally builds its shared
12996 # libraries.
12997 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'
13002 beos*)
13003 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13004 allow_undefined_flag_CXX=unsupported
13005 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13006 # support --undefined. This deserves some investigation. FIXME
13007 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13008 else
13009 ld_shlibs_CXX=no
13013 chorus*)
13014 case $cc_basename in
13016 # FIXME: insert proper C++ library support
13017 ld_shlibs_CXX=no
13019 esac
13022 cygwin* | mingw* | pw32* | cegcc*)
13023 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13024 # as there is no search path for DLLs.
13025 hardcode_libdir_flag_spec_CXX='-L$libdir'
13026 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13027 allow_undefined_flag_CXX=unsupported
13028 always_export_symbols_CXX=no
13029 enable_shared_with_static_runtimes_CXX=yes
13031 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13032 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'
13033 # If the export-symbols file already is a .def file (1st line
13034 # is EXPORTS), use it as is; otherwise, prepend...
13035 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13036 cp $export_symbols $output_objdir/$soname.def;
13037 else
13038 echo EXPORTS > $output_objdir/$soname.def;
13039 cat $export_symbols >> $output_objdir/$soname.def;
13041 $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'
13042 else
13043 ld_shlibs_CXX=no
13046 darwin* | rhapsody*)
13049 archive_cmds_need_lc_CXX=no
13050 hardcode_direct_CXX=no
13051 hardcode_automatic_CXX=yes
13052 hardcode_shlibpath_var_CXX=unsupported
13053 if test "$lt_cv_ld_force_load" = "yes"; then
13054 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\"`'
13055 else
13056 whole_archive_flag_spec_CXX=''
13058 link_all_deplibs_CXX=yes
13059 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13060 case $cc_basename in
13061 ifort*) _lt_dar_can_shared=yes ;;
13062 *) _lt_dar_can_shared=$GCC ;;
13063 esac
13064 if test "$_lt_dar_can_shared" = "yes"; then
13065 output_verbose_link_cmd=func_echo_all
13066 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
13067 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13068 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
13069 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}"
13070 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13071 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
13072 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}"
13075 else
13076 ld_shlibs_CXX=no
13081 dgux*)
13082 case $cc_basename in
13083 ec++*)
13084 # FIXME: insert proper C++ library support
13085 ld_shlibs_CXX=no
13087 ghcx*)
13088 # Green Hills C++ Compiler
13089 # FIXME: insert proper C++ library support
13090 ld_shlibs_CXX=no
13093 # FIXME: insert proper C++ library support
13094 ld_shlibs_CXX=no
13096 esac
13099 freebsd2.*)
13100 # C++ shared libraries reported to be fairly broken before
13101 # switch to ELF
13102 ld_shlibs_CXX=no
13105 freebsd-elf*)
13106 archive_cmds_need_lc_CXX=no
13109 freebsd* | dragonfly*)
13110 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13111 # conventions
13112 ld_shlibs_CXX=yes
13115 gnu*)
13118 haiku*)
13119 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13120 link_all_deplibs_CXX=yes
13123 hpux9*)
13124 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13125 hardcode_libdir_separator_CXX=:
13126 export_dynamic_flag_spec_CXX='${wl}-E'
13127 hardcode_direct_CXX=yes
13128 hardcode_minus_L_CXX=yes # Not in the search PATH,
13129 # but as the default
13130 # location of the library.
13132 case $cc_basename in
13133 CC*)
13134 # FIXME: insert proper C++ library support
13135 ld_shlibs_CXX=no
13137 aCC*)
13138 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'
13139 # Commands to make compiler produce verbose output that lists
13140 # what "hidden" libraries, object files and flags are used when
13141 # linking a shared library.
13143 # There doesn't appear to be a way to prevent this compiler from
13144 # explicitly linking system object files so we need to strip them
13145 # from the output so that they don't get included in the library
13146 # dependencies.
13147 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"'
13150 if test "$GXX" = yes; then
13151 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'
13152 else
13153 # FIXME: insert proper C++ library support
13154 ld_shlibs_CXX=no
13157 esac
13160 hpux10*|hpux11*)
13161 if test $with_gnu_ld = no; then
13162 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13163 hardcode_libdir_separator_CXX=:
13165 case $host_cpu in
13166 hppa*64*|ia64*)
13169 export_dynamic_flag_spec_CXX='${wl}-E'
13171 esac
13173 case $host_cpu in
13174 hppa*64*|ia64*)
13175 hardcode_direct_CXX=no
13176 hardcode_shlibpath_var_CXX=no
13179 hardcode_direct_CXX=yes
13180 hardcode_direct_absolute_CXX=yes
13181 hardcode_minus_L_CXX=yes # Not in the search PATH,
13182 # but as the default
13183 # location of the library.
13185 esac
13187 case $cc_basename in
13188 CC*)
13189 # FIXME: insert proper C++ library support
13190 ld_shlibs_CXX=no
13192 aCC*)
13193 case $host_cpu in
13194 hppa*64*)
13195 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13197 ia64*)
13198 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13201 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13203 esac
13204 # Commands to make compiler produce verbose output that lists
13205 # what "hidden" libraries, object files and flags are used when
13206 # linking a shared library.
13208 # There doesn't appear to be a way to prevent this compiler from
13209 # explicitly linking system object files so we need to strip them
13210 # from the output so that they don't get included in the library
13211 # dependencies.
13212 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"'
13215 if test "$GXX" = yes; then
13216 if test $with_gnu_ld = no; then
13217 case $host_cpu in
13218 hppa*64*)
13219 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13221 ia64*)
13222 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13225 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'
13227 esac
13229 else
13230 # FIXME: insert proper C++ library support
13231 ld_shlibs_CXX=no
13234 esac
13237 interix[3-9]*)
13238 hardcode_direct_CXX=no
13239 hardcode_shlibpath_var_CXX=no
13240 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13241 export_dynamic_flag_spec_CXX='${wl}-E'
13242 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13243 # Instead, shared libraries are loaded at an image base (0x10000000 by
13244 # default) and relocated if they conflict, which is a slow very memory
13245 # consuming and fragmenting process. To avoid this, we pick a random,
13246 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13247 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13248 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'
13249 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'
13251 irix5* | irix6*)
13252 case $cc_basename in
13253 CC*)
13254 # SGI C++
13255 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'
13257 # Archives containing C++ object files must be created using
13258 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13259 # necessary to make sure instantiated templates are included
13260 # in the archive.
13261 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13264 if test "$GXX" = yes; then
13265 if test "$with_gnu_ld" = no; then
13266 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'
13267 else
13268 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'
13271 link_all_deplibs_CXX=yes
13273 esac
13274 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13275 hardcode_libdir_separator_CXX=:
13276 inherit_rpath_CXX=yes
13279 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13280 case $cc_basename in
13281 KCC*)
13282 # Kuck and Associates, Inc. (KAI) C++ Compiler
13284 # KCC will only create a shared library if the output file
13285 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13286 # to its proper name (with version) after linking.
13287 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'
13288 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'
13289 # Commands to make compiler produce verbose output that lists
13290 # what "hidden" libraries, object files and flags are used when
13291 # linking a shared library.
13293 # There doesn't appear to be a way to prevent this compiler from
13294 # explicitly linking system object files so we need to strip them
13295 # from the output so that they don't get included in the library
13296 # dependencies.
13297 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"'
13299 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13300 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13302 # Archives containing C++ object files must be created using
13303 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13304 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13306 icpc* | ecpc* )
13307 # Intel C++
13308 with_gnu_ld=yes
13309 # version 8.0 and above of icpc choke on multiply defined symbols
13310 # if we add $predep_objects and $postdep_objects, however 7.1 and
13311 # earlier do not add the objects themselves.
13312 case `$CC -V 2>&1` in
13313 *"Version 7."*)
13314 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13315 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'
13317 *) # Version 8.0 or newer
13318 tmp_idyn=
13319 case $host_cpu in
13320 ia64*) tmp_idyn=' -i_dynamic';;
13321 esac
13322 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13323 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'
13325 esac
13326 archive_cmds_need_lc_CXX=no
13327 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13328 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13329 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13331 pgCC* | pgcpp*)
13332 # Portland Group C++ compiler
13333 case `$CC -V` in
13334 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13335 prelink_cmds_CXX='tpldir=Template.dir~
13336 rm -rf $tpldir~
13337 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13338 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13339 old_archive_cmds_CXX='tpldir=Template.dir~
13340 rm -rf $tpldir~
13341 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13342 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13343 $RANLIB $oldlib'
13344 archive_cmds_CXX='tpldir=Template.dir~
13345 rm -rf $tpldir~
13346 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13347 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13348 archive_expsym_cmds_CXX='tpldir=Template.dir~
13349 rm -rf $tpldir~
13350 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13351 $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'
13353 *) # Version 6 and above use weak symbols
13354 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13355 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'
13357 esac
13359 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13360 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13361 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'
13363 cxx*)
13364 # Compaq C++
13365 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13366 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'
13368 runpath_var=LD_RUN_PATH
13369 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13370 hardcode_libdir_separator_CXX=:
13372 # Commands to make compiler produce verbose output that lists
13373 # what "hidden" libraries, object files and flags are used when
13374 # linking a shared library.
13376 # There doesn't appear to be a way to prevent this compiler from
13377 # explicitly linking system object files so we need to strip them
13378 # from the output so that they don't get included in the library
13379 # dependencies.
13380 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'
13382 xl* | mpixl* | bgxl*)
13383 # IBM XL 8.0 on PPC, with GNU ld
13384 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13385 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13386 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13387 if test "x$supports_anon_versioning" = xyes; then
13388 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13389 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13390 echo "local: *; };" >> $output_objdir/$libname.ver~
13391 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13395 case `$CC -V 2>&1 | sed 5q` in
13396 *Sun\ C*)
13397 # Sun C++ 5.9
13398 no_undefined_flag_CXX=' -zdefs'
13399 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13400 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'
13401 hardcode_libdir_flag_spec_CXX='-R$libdir'
13402 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'
13403 compiler_needs_object_CXX=yes
13405 # Not sure whether something based on
13406 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13407 # would be better.
13408 output_verbose_link_cmd='func_echo_all'
13410 # Archives containing C++ object files must be created using
13411 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13412 # necessary to make sure instantiated templates are included
13413 # in the archive.
13414 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13416 esac
13418 esac
13421 lynxos*)
13422 # FIXME: insert proper C++ library support
13423 ld_shlibs_CXX=no
13426 m88k*)
13427 # FIXME: insert proper C++ library support
13428 ld_shlibs_CXX=no
13431 mvs*)
13432 case $cc_basename in
13433 cxx*)
13434 # FIXME: insert proper C++ library support
13435 ld_shlibs_CXX=no
13438 # FIXME: insert proper C++ library support
13439 ld_shlibs_CXX=no
13441 esac
13444 netbsd*)
13445 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13446 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13447 wlarc=
13448 hardcode_libdir_flag_spec_CXX='-R$libdir'
13449 hardcode_direct_CXX=yes
13450 hardcode_shlibpath_var_CXX=no
13452 # Workaround some broken pre-1.5 toolchains
13453 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13456 *nto* | *qnx*)
13457 ld_shlibs_CXX=yes
13460 openbsd2*)
13461 # C++ shared libraries are fairly broken
13462 ld_shlibs_CXX=no
13465 openbsd*)
13466 if test -f /usr/libexec/ld.so; then
13467 hardcode_direct_CXX=yes
13468 hardcode_shlibpath_var_CXX=no
13469 hardcode_direct_absolute_CXX=yes
13470 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13471 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13472 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13473 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13474 export_dynamic_flag_spec_CXX='${wl}-E'
13475 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13477 output_verbose_link_cmd=func_echo_all
13478 else
13479 ld_shlibs_CXX=no
13483 osf3* | osf4* | osf5*)
13484 case $cc_basename in
13485 KCC*)
13486 # Kuck and Associates, Inc. (KAI) C++ Compiler
13488 # KCC will only create a shared library if the output file
13489 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13490 # to its proper name (with version) after linking.
13491 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'
13493 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13494 hardcode_libdir_separator_CXX=:
13496 # Archives containing C++ object files must be created using
13497 # the KAI C++ compiler.
13498 case $host in
13499 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13500 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13501 esac
13503 RCC*)
13504 # Rational C++ 2.4.1
13505 # FIXME: insert proper C++ library support
13506 ld_shlibs_CXX=no
13508 cxx*)
13509 case $host in
13510 osf3*)
13511 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13512 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'
13513 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13516 allow_undefined_flag_CXX=' -expect_unresolved \*'
13517 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'
13518 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13519 echo "-hidden">> $lib.exp~
13520 $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~
13521 $RM $lib.exp'
13522 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13524 esac
13526 hardcode_libdir_separator_CXX=:
13528 # Commands to make compiler produce verbose output that lists
13529 # what "hidden" libraries, object files and flags are used when
13530 # linking a shared library.
13532 # There doesn't appear to be a way to prevent this compiler from
13533 # explicitly linking system object files so we need to strip them
13534 # from the output so that they don't get included in the library
13535 # dependencies.
13536 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"'
13539 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13540 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13541 case $host in
13542 osf3*)
13543 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'
13546 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'
13548 esac
13550 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13551 hardcode_libdir_separator_CXX=:
13553 # Commands to make compiler produce verbose output that lists
13554 # what "hidden" libraries, object files and flags are used when
13555 # linking a shared library.
13556 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13558 else
13559 # FIXME: insert proper C++ library support
13560 ld_shlibs_CXX=no
13563 esac
13566 psos*)
13567 # FIXME: insert proper C++ library support
13568 ld_shlibs_CXX=no
13571 sunos4*)
13572 case $cc_basename in
13573 CC*)
13574 # Sun C++ 4.x
13575 # FIXME: insert proper C++ library support
13576 ld_shlibs_CXX=no
13578 lcc*)
13579 # Lucid
13580 # FIXME: insert proper C++ library support
13581 ld_shlibs_CXX=no
13584 # FIXME: insert proper C++ library support
13585 ld_shlibs_CXX=no
13587 esac
13590 solaris*)
13591 case $cc_basename in
13592 CC*)
13593 # Sun C++ 4.2, 5.x and Centerline C++
13594 archive_cmds_need_lc_CXX=yes
13595 no_undefined_flag_CXX=' -zdefs'
13596 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13597 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13598 $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'
13600 hardcode_libdir_flag_spec_CXX='-R$libdir'
13601 hardcode_shlibpath_var_CXX=no
13602 case $host_os in
13603 solaris2.[0-5] | solaris2.[0-5].*) ;;
13605 # The compiler driver will combine and reorder linker options,
13606 # but understands `-z linker_flag'.
13607 # Supported since Solaris 2.6 (maybe 2.5.1?)
13608 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13610 esac
13611 link_all_deplibs_CXX=yes
13613 output_verbose_link_cmd='func_echo_all'
13615 # Archives containing C++ object files must be created using
13616 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13617 # necessary to make sure instantiated templates are included
13618 # in the archive.
13619 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13621 gcx*)
13622 # Green Hills C++ Compiler
13623 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13625 # The C++ compiler must be used to create the archive.
13626 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13629 # GNU C++ compiler with Solaris linker
13630 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13631 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13632 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13633 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13634 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13635 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13637 # Commands to make compiler produce verbose output that lists
13638 # what "hidden" libraries, object files and flags are used when
13639 # linking a shared library.
13640 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13641 else
13642 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13643 # platform.
13644 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13645 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13646 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13648 # Commands to make compiler produce verbose output that lists
13649 # what "hidden" libraries, object files and flags are used when
13650 # linking a shared library.
13651 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13654 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13655 case $host_os in
13656 solaris2.[0-5] | solaris2.[0-5].*) ;;
13658 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13660 esac
13663 esac
13666 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13667 no_undefined_flag_CXX='${wl}-z,text'
13668 archive_cmds_need_lc_CXX=no
13669 hardcode_shlibpath_var_CXX=no
13670 runpath_var='LD_RUN_PATH'
13672 case $cc_basename in
13673 CC*)
13674 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13675 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13678 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13679 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13681 esac
13684 sysv5* | sco3.2v5* | sco5v6*)
13685 # Note: We can NOT use -z defs as we might desire, because we do not
13686 # link with -lc, and that would cause any symbols used from libc to
13687 # always be unresolved, which means just about no library would
13688 # ever link correctly. If we're not using GNU ld we use -z text
13689 # though, which does catch some bad symbols but isn't as heavy-handed
13690 # as -z defs.
13691 no_undefined_flag_CXX='${wl}-z,text'
13692 allow_undefined_flag_CXX='${wl}-z,nodefs'
13693 archive_cmds_need_lc_CXX=no
13694 hardcode_shlibpath_var_CXX=no
13695 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13696 hardcode_libdir_separator_CXX=':'
13697 link_all_deplibs_CXX=yes
13698 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13699 runpath_var='LD_RUN_PATH'
13701 case $cc_basename in
13702 CC*)
13703 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13704 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13705 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13706 '"$old_archive_cmds_CXX"
13707 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13708 '"$reload_cmds_CXX"
13711 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13712 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13714 esac
13717 tandem*)
13718 case $cc_basename in
13719 NCC*)
13720 # NonStop-UX NCC 3.20
13721 # FIXME: insert proper C++ library support
13722 ld_shlibs_CXX=no
13725 # FIXME: insert proper C++ library support
13726 ld_shlibs_CXX=no
13728 esac
13731 vxworks*)
13732 # FIXME: insert proper C++ library support
13733 ld_shlibs_CXX=no
13737 # FIXME: insert proper C++ library support
13738 ld_shlibs_CXX=no
13740 esac
13742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13743 $as_echo "$ld_shlibs_CXX" >&6; }
13744 test "$ld_shlibs_CXX" = no && can_build_shared=no
13746 GCC_CXX="$GXX"
13747 LD_CXX="$LD"
13749 ## CAVEAT EMPTOR:
13750 ## There is no encapsulation within the following macros, do not change
13751 ## the running order or otherwise move them around unless you know exactly
13752 ## what you are doing...
13753 # Dependencies to place before and after the object being linked:
13754 predep_objects_CXX=
13755 postdep_objects_CXX=
13756 predeps_CXX=
13757 postdeps_CXX=
13758 compiler_lib_search_path_CXX=
13760 cat > conftest.$ac_ext <<_LT_EOF
13761 class Foo
13763 public:
13764 Foo (void) { a = 0; }
13765 private:
13766 int a;
13768 _LT_EOF
13770 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13771 (eval $ac_compile) 2>&5
13772 ac_status=$?
13773 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13774 test $ac_status = 0; }; then
13775 # Parse the compiler output and extract the necessary
13776 # objects, libraries and library flags.
13778 # Sentinel used to keep track of whether or not we are before
13779 # the conftest object file.
13780 pre_test_object_deps_done=no
13782 for p in `eval "$output_verbose_link_cmd"`; do
13783 case $p in
13785 -L* | -R* | -l*)
13786 # Some compilers place space between "-{L,R}" and the path.
13787 # Remove the space.
13788 if test $p = "-L" ||
13789 test $p = "-R"; then
13790 prev=$p
13791 continue
13792 else
13793 prev=
13796 if test "$pre_test_object_deps_done" = no; then
13797 case $p in
13798 -L* | -R*)
13799 # Internal compiler library paths should come after those
13800 # provided the user. The postdeps already come after the
13801 # user supplied libs so there is no need to process them.
13802 if test -z "$compiler_lib_search_path_CXX"; then
13803 compiler_lib_search_path_CXX="${prev}${p}"
13804 else
13805 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13808 # The "-l" case would never come before the object being
13809 # linked, so don't bother handling this case.
13810 esac
13811 else
13812 if test -z "$postdeps_CXX"; then
13813 postdeps_CXX="${prev}${p}"
13814 else
13815 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13820 *.$objext)
13821 # This assumes that the test object file only shows up
13822 # once in the compiler output.
13823 if test "$p" = "conftest.$objext"; then
13824 pre_test_object_deps_done=yes
13825 continue
13828 if test "$pre_test_object_deps_done" = no; then
13829 if test -z "$predep_objects_CXX"; then
13830 predep_objects_CXX="$p"
13831 else
13832 predep_objects_CXX="$predep_objects_CXX $p"
13834 else
13835 if test -z "$postdep_objects_CXX"; then
13836 postdep_objects_CXX="$p"
13837 else
13838 postdep_objects_CXX="$postdep_objects_CXX $p"
13843 *) ;; # Ignore the rest.
13845 esac
13846 done
13848 # Clean up.
13849 rm -f a.out a.exe
13850 else
13851 echo "libtool.m4: error: problem compiling CXX test program"
13854 $RM -f confest.$objext
13856 # PORTME: override above test on systems where it is broken
13857 case $host_os in
13858 interix[3-9]*)
13859 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13860 # hack all around it, let's just trust "g++" to DTRT.
13861 predep_objects_CXX=
13862 postdep_objects_CXX=
13863 postdeps_CXX=
13866 linux*)
13867 case `$CC -V 2>&1 | sed 5q` in
13868 *Sun\ C*)
13869 # Sun C++ 5.9
13871 # The more standards-conforming stlport4 library is
13872 # incompatible with the Cstd library. Avoid specifying
13873 # it if it's in CXXFLAGS. Ignore libCrun as
13874 # -library=stlport4 depends on it.
13875 case " $CXX $CXXFLAGS " in
13876 *" -library=stlport4 "*)
13877 solaris_use_stlport4=yes
13879 esac
13881 if test "$solaris_use_stlport4" != yes; then
13882 postdeps_CXX='-library=Cstd -library=Crun'
13885 esac
13888 solaris*)
13889 case $cc_basename in
13890 CC*)
13891 # The more standards-conforming stlport4 library is
13892 # incompatible with the Cstd library. Avoid specifying
13893 # it if it's in CXXFLAGS. Ignore libCrun as
13894 # -library=stlport4 depends on it.
13895 case " $CXX $CXXFLAGS " in
13896 *" -library=stlport4 "*)
13897 solaris_use_stlport4=yes
13899 esac
13901 # Adding this requires a known-good setup of shared libraries for
13902 # Sun compiler versions before 5.6, else PIC objects from an old
13903 # archive will be linked into the output, leading to subtle bugs.
13904 if test "$solaris_use_stlport4" != yes; then
13905 postdeps_CXX='-library=Cstd -library=Crun'
13908 esac
13910 esac
13913 case " $postdeps_CXX " in
13914 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13915 esac
13916 compiler_lib_search_dirs_CXX=
13917 if test -n "${compiler_lib_search_path_CXX}"; then
13918 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13951 lt_prog_compiler_wl_CXX=
13952 lt_prog_compiler_pic_CXX=
13953 lt_prog_compiler_static_CXX=
13955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13956 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13958 # C++ specific cases for pic, static, wl, etc.
13959 if test "$GXX" = yes; then
13960 lt_prog_compiler_wl_CXX='-Wl,'
13961 lt_prog_compiler_static_CXX='-static'
13963 case $host_os in
13964 aix*)
13965 # All AIX code is PIC.
13966 if test "$host_cpu" = ia64; then
13967 # AIX 5 now supports IA64 processor
13968 lt_prog_compiler_static_CXX='-Bstatic'
13970 lt_prog_compiler_pic_CXX='-fPIC'
13973 amigaos*)
13974 case $host_cpu in
13975 powerpc)
13976 # see comment about AmigaOS4 .so support
13977 lt_prog_compiler_pic_CXX='-fPIC'
13979 m68k)
13980 # FIXME: we need at least 68020 code to build shared libraries, but
13981 # adding the `-m68020' flag to GCC prevents building anything better,
13982 # like `-m68040'.
13983 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13985 esac
13988 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13989 # PIC is the default for these OSes.
13991 mingw* | cygwin* | os2* | pw32* | cegcc*)
13992 # This hack is so that the source file can tell whether it is being
13993 # built for inclusion in a dll (and should export symbols for example).
13994 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13995 # (--disable-auto-import) libraries
13996 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13998 darwin* | rhapsody*)
13999 # PIC is the default on this platform
14000 # Common symbols not allowed in MH_DYLIB files
14001 lt_prog_compiler_pic_CXX='-fno-common'
14003 *djgpp*)
14004 # DJGPP does not support shared libraries at all
14005 lt_prog_compiler_pic_CXX=
14007 haiku*)
14008 # PIC is the default for Haiku.
14009 # The "-static" flag exists, but is broken.
14010 lt_prog_compiler_static_CXX=
14012 interix[3-9]*)
14013 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14014 # Instead, we relocate shared libraries at runtime.
14016 sysv4*MP*)
14017 if test -d /usr/nec; then
14018 lt_prog_compiler_pic_CXX=-Kconform_pic
14021 hpux*)
14022 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14023 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14024 # sets the default TLS model and affects inlining.
14025 case $host_cpu in
14026 hppa*64*)
14029 lt_prog_compiler_pic_CXX='-fPIC'
14031 esac
14033 *qnx* | *nto*)
14034 # QNX uses GNU C++, but need to define -shared option too, otherwise
14035 # it will coredump.
14036 lt_prog_compiler_pic_CXX='-fPIC -shared'
14039 lt_prog_compiler_pic_CXX='-fPIC'
14041 esac
14042 else
14043 case $host_os in
14044 aix[4-9]*)
14045 # All AIX code is PIC.
14046 if test "$host_cpu" = ia64; then
14047 # AIX 5 now supports IA64 processor
14048 lt_prog_compiler_static_CXX='-Bstatic'
14049 else
14050 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14053 chorus*)
14054 case $cc_basename in
14055 cxch68*)
14056 # Green Hills C++ Compiler
14057 # _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"
14059 esac
14061 dgux*)
14062 case $cc_basename in
14063 ec++*)
14064 lt_prog_compiler_pic_CXX='-KPIC'
14066 ghcx*)
14067 # Green Hills C++ Compiler
14068 lt_prog_compiler_pic_CXX='-pic'
14072 esac
14074 freebsd* | dragonfly*)
14075 # FreeBSD uses GNU C++
14077 hpux9* | hpux10* | hpux11*)
14078 case $cc_basename in
14079 CC*)
14080 lt_prog_compiler_wl_CXX='-Wl,'
14081 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14082 if test "$host_cpu" != ia64; then
14083 lt_prog_compiler_pic_CXX='+Z'
14086 aCC*)
14087 lt_prog_compiler_wl_CXX='-Wl,'
14088 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14089 case $host_cpu in
14090 hppa*64*|ia64*)
14091 # +Z the default
14094 lt_prog_compiler_pic_CXX='+Z'
14096 esac
14100 esac
14102 interix*)
14103 # This is c89, which is MS Visual C++ (no shared libs)
14104 # Anyone wants to do a port?
14106 irix5* | irix6* | nonstopux*)
14107 case $cc_basename in
14108 CC*)
14109 lt_prog_compiler_wl_CXX='-Wl,'
14110 lt_prog_compiler_static_CXX='-non_shared'
14111 # CC pic flag -KPIC is the default.
14115 esac
14117 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14118 case $cc_basename in
14119 KCC*)
14120 # KAI C++ Compiler
14121 lt_prog_compiler_wl_CXX='--backend -Wl,'
14122 lt_prog_compiler_pic_CXX='-fPIC'
14124 ecpc* )
14125 # old Intel C++ for x86_64 which still supported -KPIC.
14126 lt_prog_compiler_wl_CXX='-Wl,'
14127 lt_prog_compiler_pic_CXX='-KPIC'
14128 lt_prog_compiler_static_CXX='-static'
14130 icpc* )
14131 # Intel C++, used to be incompatible with GCC.
14132 # ICC 10 doesn't accept -KPIC any more.
14133 lt_prog_compiler_wl_CXX='-Wl,'
14134 lt_prog_compiler_pic_CXX='-fPIC'
14135 lt_prog_compiler_static_CXX='-static'
14137 pgCC* | pgcpp*)
14138 # Portland Group C++ compiler
14139 lt_prog_compiler_wl_CXX='-Wl,'
14140 lt_prog_compiler_pic_CXX='-fpic'
14141 lt_prog_compiler_static_CXX='-Bstatic'
14143 cxx*)
14144 # Compaq C++
14145 # Make sure the PIC flag is empty. It appears that all Alpha
14146 # Linux and Compaq Tru64 Unix objects are PIC.
14147 lt_prog_compiler_pic_CXX=
14148 lt_prog_compiler_static_CXX='-non_shared'
14150 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14151 # IBM XL 8.0, 9.0 on PPC and BlueGene
14152 lt_prog_compiler_wl_CXX='-Wl,'
14153 lt_prog_compiler_pic_CXX='-qpic'
14154 lt_prog_compiler_static_CXX='-qstaticlink'
14157 case `$CC -V 2>&1 | sed 5q` in
14158 *Sun\ C*)
14159 # Sun C++ 5.9
14160 lt_prog_compiler_pic_CXX='-KPIC'
14161 lt_prog_compiler_static_CXX='-Bstatic'
14162 lt_prog_compiler_wl_CXX='-Qoption ld '
14164 esac
14166 esac
14168 lynxos*)
14170 m88k*)
14172 mvs*)
14173 case $cc_basename in
14174 cxx*)
14175 lt_prog_compiler_pic_CXX='-W c,exportall'
14179 esac
14181 netbsd*)
14183 *qnx* | *nto*)
14184 # QNX uses GNU C++, but need to define -shared option too, otherwise
14185 # it will coredump.
14186 lt_prog_compiler_pic_CXX='-fPIC -shared'
14188 osf3* | osf4* | osf5*)
14189 case $cc_basename in
14190 KCC*)
14191 lt_prog_compiler_wl_CXX='--backend -Wl,'
14193 RCC*)
14194 # Rational C++ 2.4.1
14195 lt_prog_compiler_pic_CXX='-pic'
14197 cxx*)
14198 # Digital/Compaq C++
14199 lt_prog_compiler_wl_CXX='-Wl,'
14200 # Make sure the PIC flag is empty. It appears that all Alpha
14201 # Linux and Compaq Tru64 Unix objects are PIC.
14202 lt_prog_compiler_pic_CXX=
14203 lt_prog_compiler_static_CXX='-non_shared'
14207 esac
14209 psos*)
14211 solaris*)
14212 case $cc_basename in
14213 CC*)
14214 # Sun C++ 4.2, 5.x and Centerline C++
14215 lt_prog_compiler_pic_CXX='-KPIC'
14216 lt_prog_compiler_static_CXX='-Bstatic'
14217 lt_prog_compiler_wl_CXX='-Qoption ld '
14219 gcx*)
14220 # Green Hills C++ Compiler
14221 lt_prog_compiler_pic_CXX='-PIC'
14225 esac
14227 sunos4*)
14228 case $cc_basename in
14229 CC*)
14230 # Sun C++ 4.x
14231 lt_prog_compiler_pic_CXX='-pic'
14232 lt_prog_compiler_static_CXX='-Bstatic'
14234 lcc*)
14235 # Lucid
14236 lt_prog_compiler_pic_CXX='-pic'
14240 esac
14242 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14243 case $cc_basename in
14244 CC*)
14245 lt_prog_compiler_wl_CXX='-Wl,'
14246 lt_prog_compiler_pic_CXX='-KPIC'
14247 lt_prog_compiler_static_CXX='-Bstatic'
14249 esac
14251 tandem*)
14252 case $cc_basename in
14253 NCC*)
14254 # NonStop-UX NCC 3.20
14255 lt_prog_compiler_pic_CXX='-KPIC'
14259 esac
14261 vxworks*)
14264 lt_prog_compiler_can_build_shared_CXX=no
14266 esac
14269 case $host_os in
14270 # For platforms which do not support PIC, -DPIC is meaningless:
14271 *djgpp*)
14272 lt_prog_compiler_pic_CXX=
14275 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14277 esac
14278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
14279 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
14284 # Check to make sure the PIC flag actually works.
14286 if test -n "$lt_prog_compiler_pic_CXX"; then
14287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14288 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14289 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14290 $as_echo_n "(cached) " >&6
14291 else
14292 lt_cv_prog_compiler_pic_works_CXX=no
14293 ac_outfile=conftest.$ac_objext
14294 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14295 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14296 # Insert the option either (1) after the last *FLAGS variable, or
14297 # (2) before a word containing "conftest.", or (3) at the end.
14298 # Note that $ac_compile itself does not contain backslashes and begins
14299 # with a dollar sign (not a hyphen), so the echo should work correctly.
14300 # The option is referenced via a variable to avoid confusing sed.
14301 lt_compile=`echo "$ac_compile" | $SED \
14302 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14303 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14304 -e 's:$: $lt_compiler_flag:'`
14305 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14306 (eval "$lt_compile" 2>conftest.err)
14307 ac_status=$?
14308 cat conftest.err >&5
14309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14310 if (exit $ac_status) && test -s "$ac_outfile"; then
14311 # The compiler can only warn and ignore the option if not recognized
14312 # So say no if there are warnings other than the usual output.
14313 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14314 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14315 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14316 lt_cv_prog_compiler_pic_works_CXX=yes
14319 $RM conftest*
14322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14323 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14325 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14326 case $lt_prog_compiler_pic_CXX in
14327 "" | " "*) ;;
14328 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14329 esac
14330 else
14331 lt_prog_compiler_pic_CXX=
14332 lt_prog_compiler_can_build_shared_CXX=no
14340 # Check to make sure the static flag actually works.
14342 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14344 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14345 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14346 $as_echo_n "(cached) " >&6
14347 else
14348 lt_cv_prog_compiler_static_works_CXX=no
14349 save_LDFLAGS="$LDFLAGS"
14350 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14351 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14352 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14353 # The linker can only warn and ignore the option if not recognized
14354 # So say no if there are warnings
14355 if test -s conftest.err; then
14356 # Append any errors to the config.log.
14357 cat conftest.err 1>&5
14358 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14359 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14360 if diff conftest.exp conftest.er2 >/dev/null; then
14361 lt_cv_prog_compiler_static_works_CXX=yes
14363 else
14364 lt_cv_prog_compiler_static_works_CXX=yes
14367 $RM -r conftest*
14368 LDFLAGS="$save_LDFLAGS"
14371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14372 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14374 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14376 else
14377 lt_prog_compiler_static_CXX=
14383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14384 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14385 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14386 $as_echo_n "(cached) " >&6
14387 else
14388 lt_cv_prog_compiler_c_o_CXX=no
14389 $RM -r conftest 2>/dev/null
14390 mkdir conftest
14391 cd conftest
14392 mkdir out
14393 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14395 lt_compiler_flag="-o out/conftest2.$ac_objext"
14396 # Insert the option either (1) after the last *FLAGS variable, or
14397 # (2) before a word containing "conftest.", or (3) at the end.
14398 # Note that $ac_compile itself does not contain backslashes and begins
14399 # with a dollar sign (not a hyphen), so the echo should work correctly.
14400 lt_compile=`echo "$ac_compile" | $SED \
14401 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14402 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14403 -e 's:$: $lt_compiler_flag:'`
14404 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14405 (eval "$lt_compile" 2>out/conftest.err)
14406 ac_status=$?
14407 cat out/conftest.err >&5
14408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14409 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14410 then
14411 # The compiler can only warn and ignore the option if not recognized
14412 # So say no if there are warnings
14413 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14414 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14415 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14416 lt_cv_prog_compiler_c_o_CXX=yes
14419 chmod u+w . 2>&5
14420 $RM conftest*
14421 # SGI C++ compiler will create directory out/ii_files/ for
14422 # template instantiation
14423 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14424 $RM out/* && rmdir out
14425 cd ..
14426 $RM -r conftest
14427 $RM conftest*
14430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14431 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14436 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14437 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14438 $as_echo_n "(cached) " >&6
14439 else
14440 lt_cv_prog_compiler_c_o_CXX=no
14441 $RM -r conftest 2>/dev/null
14442 mkdir conftest
14443 cd conftest
14444 mkdir out
14445 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14447 lt_compiler_flag="-o out/conftest2.$ac_objext"
14448 # Insert the option either (1) after the last *FLAGS variable, or
14449 # (2) before a word containing "conftest.", or (3) at the end.
14450 # Note that $ac_compile itself does not contain backslashes and begins
14451 # with a dollar sign (not a hyphen), so the echo should work correctly.
14452 lt_compile=`echo "$ac_compile" | $SED \
14453 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14454 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14455 -e 's:$: $lt_compiler_flag:'`
14456 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14457 (eval "$lt_compile" 2>out/conftest.err)
14458 ac_status=$?
14459 cat out/conftest.err >&5
14460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14461 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14462 then
14463 # The compiler can only warn and ignore the option if not recognized
14464 # So say no if there are warnings
14465 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14466 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14467 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14468 lt_cv_prog_compiler_c_o_CXX=yes
14471 chmod u+w . 2>&5
14472 $RM conftest*
14473 # SGI C++ compiler will create directory out/ii_files/ for
14474 # template instantiation
14475 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14476 $RM out/* && rmdir out
14477 cd ..
14478 $RM -r conftest
14479 $RM conftest*
14482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14483 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14488 hard_links="nottested"
14489 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14490 # do not overwrite the value of need_locks provided by the user
14491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14492 $as_echo_n "checking if we can lock with hard links... " >&6; }
14493 hard_links=yes
14494 $RM conftest*
14495 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14496 touch conftest.a
14497 ln conftest.a conftest.b 2>&5 || hard_links=no
14498 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14500 $as_echo "$hard_links" >&6; }
14501 if test "$hard_links" = no; then
14502 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14503 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14504 need_locks=warn
14506 else
14507 need_locks=no
14512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14513 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14515 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14516 case $host_os in
14517 aix[4-9]*)
14518 # If we're using GNU nm, then we don't want the "-C" option.
14519 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14520 # Also, AIX nm treats weak defined symbols like other global defined
14521 # symbols, whereas GNU nm marks them as "W".
14522 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14523 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'
14524 else
14525 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'
14528 pw32*)
14529 export_symbols_cmds_CXX="$ltdll_cmds"
14531 cygwin* | mingw* | cegcc*)
14532 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'
14535 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14537 esac
14538 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14541 $as_echo "$ld_shlibs_CXX" >&6; }
14542 test "$ld_shlibs_CXX" = no && can_build_shared=no
14544 with_gnu_ld_CXX=$with_gnu_ld
14552 # Do we need to explicitly link libc?
14554 case "x$archive_cmds_need_lc_CXX" in
14555 x|xyes)
14556 # Assume -lc should be added
14557 archive_cmds_need_lc_CXX=yes
14559 if test "$enable_shared" = yes && test "$GCC" = yes; then
14560 case $archive_cmds_CXX in
14561 *'~'*)
14562 # FIXME: we may have to deal with multi-command sequences.
14564 '$CC '*)
14565 # Test whether the compiler implicitly links with -lc since on some
14566 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14567 # to ld, don't add -lc before -lgcc.
14568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14569 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14570 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14571 $as_echo_n "(cached) " >&6
14572 else
14573 $RM conftest*
14574 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14576 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14577 (eval $ac_compile) 2>&5
14578 ac_status=$?
14579 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14580 test $ac_status = 0; } 2>conftest.err; then
14581 soname=conftest
14582 lib=conftest
14583 libobjs=conftest.$ac_objext
14584 deplibs=
14585 wl=$lt_prog_compiler_wl_CXX
14586 pic_flag=$lt_prog_compiler_pic_CXX
14587 compiler_flags=-v
14588 linker_flags=-v
14589 verstring=
14590 output_objdir=.
14591 libname=conftest
14592 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14593 allow_undefined_flag_CXX=
14594 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14595 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14596 ac_status=$?
14597 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14598 test $ac_status = 0; }
14599 then
14600 lt_cv_archive_cmds_need_lc_CXX=no
14601 else
14602 lt_cv_archive_cmds_need_lc_CXX=yes
14604 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14605 else
14606 cat conftest.err 1>&5
14608 $RM conftest*
14611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14612 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14613 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14615 esac
14618 esac
14683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14684 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14686 library_names_spec=
14687 libname_spec='lib$name'
14688 soname_spec=
14689 shrext_cmds=".so"
14690 postinstall_cmds=
14691 postuninstall_cmds=
14692 finish_cmds=
14693 finish_eval=
14694 shlibpath_var=
14695 shlibpath_overrides_runpath=unknown
14696 version_type=none
14697 dynamic_linker="$host_os ld.so"
14698 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14699 need_lib_prefix=unknown
14700 hardcode_into_libs=no
14702 # when you set need_version to no, make sure it does not cause -set_version
14703 # flags to be left without arguments
14704 need_version=unknown
14706 case $host_os in
14707 aix3*)
14708 version_type=linux
14709 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14710 shlibpath_var=LIBPATH
14712 # AIX 3 has no versioning support, so we append a major version to the name.
14713 soname_spec='${libname}${release}${shared_ext}$major'
14716 aix[4-9]*)
14717 version_type=linux
14718 need_lib_prefix=no
14719 need_version=no
14720 hardcode_into_libs=yes
14721 if test "$host_cpu" = ia64; then
14722 # AIX 5 supports IA64
14723 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14724 shlibpath_var=LD_LIBRARY_PATH
14725 else
14726 # With GCC up to 2.95.x, collect2 would create an import file
14727 # for dependence libraries. The import file would start with
14728 # the line `#! .'. This would cause the generated library to
14729 # depend on `.', always an invalid library. This was fixed in
14730 # development snapshots of GCC prior to 3.0.
14731 case $host_os in
14732 aix4 | aix4.[01] | aix4.[01].*)
14733 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14734 echo ' yes '
14735 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14737 else
14738 can_build_shared=no
14741 esac
14742 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14743 # soname into executable. Probably we can add versioning support to
14744 # collect2, so additional links can be useful in future.
14745 if test "$aix_use_runtimelinking" = yes; then
14746 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14747 # instead of lib<name>.a to let people know that these are not
14748 # typical AIX shared libraries.
14749 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14750 else
14751 # We preserve .a as extension for shared libraries through AIX4.2
14752 # and later when we are not doing run time linking.
14753 library_names_spec='${libname}${release}.a $libname.a'
14754 soname_spec='${libname}${release}${shared_ext}$major'
14756 shlibpath_var=LIBPATH
14760 amigaos*)
14761 case $host_cpu in
14762 powerpc)
14763 # Since July 2007 AmigaOS4 officially supports .so libraries.
14764 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14765 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14767 m68k)
14768 library_names_spec='$libname.ixlibrary $libname.a'
14769 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14770 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'
14772 esac
14775 beos*)
14776 library_names_spec='${libname}${shared_ext}'
14777 dynamic_linker="$host_os ld.so"
14778 shlibpath_var=LIBRARY_PATH
14781 bsdi[45]*)
14782 version_type=linux
14783 need_version=no
14784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14785 soname_spec='${libname}${release}${shared_ext}$major'
14786 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14787 shlibpath_var=LD_LIBRARY_PATH
14788 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14789 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14790 # the default ld.so.conf also contains /usr/contrib/lib and
14791 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14792 # libtool to hard-code these into programs
14795 cygwin* | mingw* | pw32* | cegcc*)
14796 version_type=windows
14797 shrext_cmds=".dll"
14798 need_version=no
14799 need_lib_prefix=no
14801 case $GCC,$host_os in
14802 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14803 library_names_spec='$libname.dll.a'
14804 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14805 postinstall_cmds='base_file=`basename \${file}`~
14806 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14807 dldir=$destdir/`dirname \$dlpath`~
14808 test -d \$dldir || mkdir -p \$dldir~
14809 $install_prog $dir/$dlname \$dldir/$dlname~
14810 chmod a+x \$dldir/$dlname~
14811 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14812 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14814 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14815 dlpath=$dir/\$dldll~
14816 $RM \$dlpath'
14817 shlibpath_overrides_runpath=yes
14819 case $host_os in
14820 cygwin*)
14821 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14822 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14825 mingw* | cegcc*)
14826 # MinGW DLLs use traditional 'lib' prefix
14827 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14829 pw32*)
14830 # pw32 DLLs use 'pw' prefix rather than 'lib'
14831 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14833 esac
14837 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14839 esac
14840 dynamic_linker='Win32 ld.exe'
14841 # FIXME: first we should search . and the directory the executable is in
14842 shlibpath_var=PATH
14845 darwin* | rhapsody*)
14846 dynamic_linker="$host_os dyld"
14847 version_type=darwin
14848 need_lib_prefix=no
14849 need_version=no
14850 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14851 soname_spec='${libname}${release}${major}$shared_ext'
14852 shlibpath_overrides_runpath=yes
14853 shlibpath_var=DYLD_LIBRARY_PATH
14854 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14856 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14859 dgux*)
14860 version_type=linux
14861 need_lib_prefix=no
14862 need_version=no
14863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14864 soname_spec='${libname}${release}${shared_ext}$major'
14865 shlibpath_var=LD_LIBRARY_PATH
14868 freebsd* | dragonfly*)
14869 # DragonFly does not have aout. When/if they implement a new
14870 # versioning mechanism, adjust this.
14871 if test -x /usr/bin/objformat; then
14872 objformat=`/usr/bin/objformat`
14873 else
14874 case $host_os in
14875 freebsd[23].*) objformat=aout ;;
14876 *) objformat=elf ;;
14877 esac
14879 version_type=freebsd-$objformat
14880 case $version_type in
14881 freebsd-elf*)
14882 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14883 need_version=no
14884 need_lib_prefix=no
14886 freebsd-*)
14887 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14888 need_version=yes
14890 esac
14891 shlibpath_var=LD_LIBRARY_PATH
14892 case $host_os in
14893 freebsd2.*)
14894 shlibpath_overrides_runpath=yes
14896 freebsd3.[01]* | freebsdelf3.[01]*)
14897 shlibpath_overrides_runpath=yes
14898 hardcode_into_libs=yes
14900 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14901 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14902 shlibpath_overrides_runpath=no
14903 hardcode_into_libs=yes
14905 *) # from 4.6 on, and DragonFly
14906 shlibpath_overrides_runpath=yes
14907 hardcode_into_libs=yes
14909 esac
14912 gnu*)
14913 version_type=linux
14914 need_lib_prefix=no
14915 need_version=no
14916 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14917 soname_spec='${libname}${release}${shared_ext}$major'
14918 shlibpath_var=LD_LIBRARY_PATH
14919 hardcode_into_libs=yes
14922 haiku*)
14923 version_type=linux
14924 need_lib_prefix=no
14925 need_version=no
14926 dynamic_linker="$host_os runtime_loader"
14927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14928 soname_spec='${libname}${release}${shared_ext}$major'
14929 shlibpath_var=LIBRARY_PATH
14930 shlibpath_overrides_runpath=yes
14931 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
14932 hardcode_into_libs=yes
14935 hpux9* | hpux10* | hpux11*)
14936 # Give a soname corresponding to the major version so that dld.sl refuses to
14937 # link against other versions.
14938 version_type=sunos
14939 need_lib_prefix=no
14940 need_version=no
14941 case $host_cpu in
14942 ia64*)
14943 shrext_cmds='.so'
14944 hardcode_into_libs=yes
14945 dynamic_linker="$host_os dld.so"
14946 shlibpath_var=LD_LIBRARY_PATH
14947 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14949 soname_spec='${libname}${release}${shared_ext}$major'
14950 if test "X$HPUX_IA64_MODE" = X32; then
14951 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14952 else
14953 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14955 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14957 hppa*64*)
14958 shrext_cmds='.sl'
14959 hardcode_into_libs=yes
14960 dynamic_linker="$host_os dld.sl"
14961 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14962 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14964 soname_spec='${libname}${release}${shared_ext}$major'
14965 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14966 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14969 shrext_cmds='.sl'
14970 dynamic_linker="$host_os dld.sl"
14971 shlibpath_var=SHLIB_PATH
14972 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14974 soname_spec='${libname}${release}${shared_ext}$major'
14976 esac
14977 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14978 postinstall_cmds='chmod 555 $lib'
14979 # or fails outright, so override atomically:
14980 install_override_mode=555
14983 interix[3-9]*)
14984 version_type=linux
14985 need_lib_prefix=no
14986 need_version=no
14987 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14988 soname_spec='${libname}${release}${shared_ext}$major'
14989 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14990 shlibpath_var=LD_LIBRARY_PATH
14991 shlibpath_overrides_runpath=no
14992 hardcode_into_libs=yes
14995 irix5* | irix6* | nonstopux*)
14996 case $host_os in
14997 nonstopux*) version_type=nonstopux ;;
14999 if test "$lt_cv_prog_gnu_ld" = yes; then
15000 version_type=linux
15001 else
15002 version_type=irix
15003 fi ;;
15004 esac
15005 need_lib_prefix=no
15006 need_version=no
15007 soname_spec='${libname}${release}${shared_ext}$major'
15008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15009 case $host_os in
15010 irix5* | nonstopux*)
15011 libsuff= shlibsuff=
15014 case $LD in # libtool.m4 will add one of these switches to LD
15015 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15016 libsuff= shlibsuff= libmagic=32-bit;;
15017 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15018 libsuff=32 shlibsuff=N32 libmagic=N32;;
15019 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15020 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15021 *) libsuff= shlibsuff= libmagic=never-match;;
15022 esac
15024 esac
15025 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15026 shlibpath_overrides_runpath=no
15027 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15028 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15029 hardcode_into_libs=yes
15032 # No shared lib support for Linux oldld, aout, or coff.
15033 linux*oldld* | linux*aout* | linux*coff*)
15034 dynamic_linker=no
15037 # This must be Linux ELF.
15039 # uclinux* changes (here and below) have been submitted to the libtool
15040 # project, but have not yet been accepted: they are GCC-local changes
15041 # for the time being. (See
15042 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
15043 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
15044 version_type=linux
15045 need_lib_prefix=no
15046 need_version=no
15047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15048 soname_spec='${libname}${release}${shared_ext}$major'
15049 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15050 shlibpath_var=LD_LIBRARY_PATH
15051 shlibpath_overrides_runpath=no
15053 # Some binutils ld are patched to set DT_RUNPATH
15054 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15055 $as_echo_n "(cached) " >&6
15056 else
15057 lt_cv_shlibpath_overrides_runpath=no
15058 save_LDFLAGS=$LDFLAGS
15059 save_libdir=$libdir
15060 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15061 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15063 /* end confdefs.h. */
15066 main ()
15070 return 0;
15072 _ACEOF
15073 if ac_fn_cxx_try_link "$LINENO"; then :
15074 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15075 lt_cv_shlibpath_overrides_runpath=yes
15078 rm -f core conftest.err conftest.$ac_objext \
15079 conftest$ac_exeext conftest.$ac_ext
15080 LDFLAGS=$save_LDFLAGS
15081 libdir=$save_libdir
15085 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15087 # This implies no fast_install, which is unacceptable.
15088 # Some rework will be needed to allow for fast_install
15089 # before this can be enabled.
15090 hardcode_into_libs=yes
15092 # Append ld.so.conf contents to the search path
15093 if test -f /etc/ld.so.conf; then
15094 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' ' '`
15095 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15098 # We used to test for /lib/ld.so.1 and disable shared libraries on
15099 # powerpc, because MkLinux only supported shared libraries with the
15100 # GNU dynamic linker. Since this was broken with cross compilers,
15101 # most powerpc-linux boxes support dynamic linking these days and
15102 # people can always --disable-shared, the test was removed, and we
15103 # assume the GNU/Linux dynamic linker is in use.
15104 dynamic_linker='GNU/Linux ld.so'
15107 netbsd*)
15108 version_type=sunos
15109 need_lib_prefix=no
15110 need_version=no
15111 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15112 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15113 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15114 dynamic_linker='NetBSD (a.out) ld.so'
15115 else
15116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15117 soname_spec='${libname}${release}${shared_ext}$major'
15118 dynamic_linker='NetBSD ld.elf_so'
15120 shlibpath_var=LD_LIBRARY_PATH
15121 shlibpath_overrides_runpath=yes
15122 hardcode_into_libs=yes
15125 newsos6)
15126 version_type=linux
15127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15128 shlibpath_var=LD_LIBRARY_PATH
15129 shlibpath_overrides_runpath=yes
15132 *nto* | *qnx*)
15133 version_type=qnx
15134 need_lib_prefix=no
15135 need_version=no
15136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15137 soname_spec='${libname}${release}${shared_ext}$major'
15138 shlibpath_var=LD_LIBRARY_PATH
15139 shlibpath_overrides_runpath=no
15140 hardcode_into_libs=yes
15141 dynamic_linker='ldqnx.so'
15144 openbsd*)
15145 version_type=sunos
15146 sys_lib_dlsearch_path_spec="/usr/lib"
15147 need_lib_prefix=no
15148 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15149 case $host_os in
15150 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15151 *) need_version=no ;;
15152 esac
15153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15154 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15155 shlibpath_var=LD_LIBRARY_PATH
15156 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15157 case $host_os in
15158 openbsd2.[89] | openbsd2.[89].*)
15159 shlibpath_overrides_runpath=no
15162 shlibpath_overrides_runpath=yes
15164 esac
15165 else
15166 shlibpath_overrides_runpath=yes
15170 os2*)
15171 libname_spec='$name'
15172 shrext_cmds=".dll"
15173 need_lib_prefix=no
15174 library_names_spec='$libname${shared_ext} $libname.a'
15175 dynamic_linker='OS/2 ld.exe'
15176 shlibpath_var=LIBPATH
15179 osf3* | osf4* | osf5*)
15180 version_type=osf
15181 need_lib_prefix=no
15182 need_version=no
15183 soname_spec='${libname}${release}${shared_ext}$major'
15184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15185 shlibpath_var=LD_LIBRARY_PATH
15186 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15187 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15190 rdos*)
15191 dynamic_linker=no
15194 solaris*)
15195 version_type=linux
15196 need_lib_prefix=no
15197 need_version=no
15198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15199 soname_spec='${libname}${release}${shared_ext}$major'
15200 shlibpath_var=LD_LIBRARY_PATH
15201 shlibpath_overrides_runpath=yes
15202 hardcode_into_libs=yes
15203 # ldd complains unless libraries are executable
15204 postinstall_cmds='chmod +x $lib'
15207 sunos4*)
15208 version_type=sunos
15209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15210 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15211 shlibpath_var=LD_LIBRARY_PATH
15212 shlibpath_overrides_runpath=yes
15213 if test "$with_gnu_ld" = yes; then
15214 need_lib_prefix=no
15216 need_version=yes
15219 sysv4 | sysv4.3*)
15220 version_type=linux
15221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15222 soname_spec='${libname}${release}${shared_ext}$major'
15223 shlibpath_var=LD_LIBRARY_PATH
15224 case $host_vendor in
15225 sni)
15226 shlibpath_overrides_runpath=no
15227 need_lib_prefix=no
15228 runpath_var=LD_RUN_PATH
15230 siemens)
15231 need_lib_prefix=no
15233 motorola)
15234 need_lib_prefix=no
15235 need_version=no
15236 shlibpath_overrides_runpath=no
15237 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15239 esac
15242 sysv4*MP*)
15243 if test -d /usr/nec ;then
15244 version_type=linux
15245 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15246 soname_spec='$libname${shared_ext}.$major'
15247 shlibpath_var=LD_LIBRARY_PATH
15251 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15252 version_type=freebsd-elf
15253 need_lib_prefix=no
15254 need_version=no
15255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15256 soname_spec='${libname}${release}${shared_ext}$major'
15257 shlibpath_var=LD_LIBRARY_PATH
15258 shlibpath_overrides_runpath=yes
15259 hardcode_into_libs=yes
15260 if test "$with_gnu_ld" = yes; then
15261 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15262 else
15263 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15264 case $host_os in
15265 sco3.2v5*)
15266 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15268 esac
15270 sys_lib_dlsearch_path_spec='/usr/lib'
15273 tpf*)
15274 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15275 version_type=linux
15276 need_lib_prefix=no
15277 need_version=no
15278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15279 shlibpath_var=LD_LIBRARY_PATH
15280 shlibpath_overrides_runpath=no
15281 hardcode_into_libs=yes
15284 uts4*)
15285 version_type=linux
15286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15287 soname_spec='${libname}${release}${shared_ext}$major'
15288 shlibpath_var=LD_LIBRARY_PATH
15292 dynamic_linker=no
15294 esac
15295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15296 $as_echo "$dynamic_linker" >&6; }
15297 test "$dynamic_linker" = no && can_build_shared=no
15299 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15300 if test "$GCC" = yes; then
15301 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15304 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15305 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15307 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15308 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15349 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15350 hardcode_action_CXX=
15351 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15352 test -n "$runpath_var_CXX" ||
15353 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15355 # We can hardcode non-existent directories.
15356 if test "$hardcode_direct_CXX" != no &&
15357 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15358 # have to relink, otherwise we might link with an installed library
15359 # when we should be linking with a yet-to-be-installed one
15360 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15361 test "$hardcode_minus_L_CXX" != no; then
15362 # Linking always hardcodes the temporary library directory.
15363 hardcode_action_CXX=relink
15364 else
15365 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15366 hardcode_action_CXX=immediate
15368 else
15369 # We cannot hardcode anything, or else we can only hardcode existing
15370 # directories.
15371 hardcode_action_CXX=unsupported
15373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15374 $as_echo "$hardcode_action_CXX" >&6; }
15376 if test "$hardcode_action_CXX" = relink ||
15377 test "$inherit_rpath_CXX" = yes; then
15378 # Fast installation is not supported
15379 enable_fast_install=no
15380 elif test "$shlibpath_overrides_runpath" = yes ||
15381 test "$enable_shared" = no; then
15382 # Fast installation is not necessary
15383 enable_fast_install=needless
15392 fi # test -n "$compiler"
15394 CC=$lt_save_CC
15395 LDCXX=$LD
15396 LD=$lt_save_LD
15397 GCC=$lt_save_GCC
15398 with_gnu_ld=$lt_save_with_gnu_ld
15399 lt_cv_path_LDCXX=$lt_cv_path_LD
15400 lt_cv_path_LD=$lt_save_path_LD
15401 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15402 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15403 fi # test "$_lt_caught_CXX_error" != yes
15405 ac_ext=c
15406 ac_cpp='$CPP $CPPFLAGS'
15407 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15408 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15409 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15423 ac_config_commands="$ac_config_commands libtool"
15428 # Only expand once:
15435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
15436 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
15437 # Check whether --enable-maintainer-mode was given.
15438 if test "${enable_maintainer_mode+set}" = set; then :
15439 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
15440 else
15441 USE_MAINTAINER_MODE=no
15444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
15445 $as_echo "$USE_MAINTAINER_MODE" >&6; }
15446 if test $USE_MAINTAINER_MODE = yes; then
15447 MAINTAINER_MODE_TRUE=
15448 MAINTAINER_MODE_FALSE='#'
15449 else
15450 MAINTAINER_MODE_TRUE='#'
15451 MAINTAINER_MODE_FALSE=
15454 MAINT=$MAINTAINER_MODE_TRUE
15458 # For libtool versioning info, format is CURRENT:REVISION:AGE
15459 libtool_VERSION=1:0:0
15462 # Check header files.
15463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
15464 $as_echo_n "checking for ANSI C header files... " >&6; }
15465 if ${ac_cv_header_stdc+:} false; then :
15466 $as_echo_n "(cached) " >&6
15467 else
15468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15469 /* end confdefs.h. */
15470 #include <stdlib.h>
15471 #include <stdarg.h>
15472 #include <string.h>
15473 #include <float.h>
15476 main ()
15480 return 0;
15482 _ACEOF
15483 if ac_fn_c_try_compile "$LINENO"; then :
15484 ac_cv_header_stdc=yes
15485 else
15486 ac_cv_header_stdc=no
15488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15490 if test $ac_cv_header_stdc = yes; then
15491 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15493 /* end confdefs.h. */
15494 #include <string.h>
15496 _ACEOF
15497 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15498 $EGREP "memchr" >/dev/null 2>&1; then :
15500 else
15501 ac_cv_header_stdc=no
15503 rm -f conftest*
15507 if test $ac_cv_header_stdc = yes; then
15508 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15510 /* end confdefs.h. */
15511 #include <stdlib.h>
15513 _ACEOF
15514 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15515 $EGREP "free" >/dev/null 2>&1; then :
15517 else
15518 ac_cv_header_stdc=no
15520 rm -f conftest*
15524 if test $ac_cv_header_stdc = yes; then
15525 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15526 if test "$cross_compiling" = yes; then :
15528 else
15529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15530 /* end confdefs.h. */
15531 #include <ctype.h>
15532 #include <stdlib.h>
15533 #if ((' ' & 0x0FF) == 0x020)
15534 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15535 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15536 #else
15537 # define ISLOWER(c) \
15538 (('a' <= (c) && (c) <= 'i') \
15539 || ('j' <= (c) && (c) <= 'r') \
15540 || ('s' <= (c) && (c) <= 'z'))
15541 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15542 #endif
15544 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15546 main ()
15548 int i;
15549 for (i = 0; i < 256; i++)
15550 if (XOR (islower (i), ISLOWER (i))
15551 || toupper (i) != TOUPPER (i))
15552 return 2;
15553 return 0;
15555 _ACEOF
15556 if ac_fn_c_try_run "$LINENO"; then :
15558 else
15559 ac_cv_header_stdc=no
15561 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15562 conftest.$ac_objext conftest.beam conftest.$ac_ext
15567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
15568 $as_echo "$ac_cv_header_stdc" >&6; }
15569 if test $ac_cv_header_stdc = yes; then
15571 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
15575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
15576 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
15577 if ${ac_cv_header_time+:} false; then :
15578 $as_echo_n "(cached) " >&6
15579 else
15580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15581 /* end confdefs.h. */
15582 #include <sys/types.h>
15583 #include <sys/time.h>
15584 #include <time.h>
15587 main ()
15589 if ((struct tm *) 0)
15590 return 0;
15592 return 0;
15594 _ACEOF
15595 if ac_fn_c_try_compile "$LINENO"; then :
15596 ac_cv_header_time=yes
15597 else
15598 ac_cv_header_time=no
15600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
15603 $as_echo "$ac_cv_header_time" >&6; }
15604 if test $ac_cv_header_time = yes; then
15606 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
15610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
15611 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
15612 if ${gcc_cv_header_string+:} false; then :
15613 $as_echo_n "(cached) " >&6
15614 else
15615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15616 /* end confdefs.h. */
15617 #include <string.h>
15618 #include <strings.h>
15620 main ()
15624 return 0;
15626 _ACEOF
15627 if ac_fn_c_try_compile "$LINENO"; then :
15628 gcc_cv_header_string=yes
15629 else
15630 gcc_cv_header_string=no
15632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
15635 $as_echo "$gcc_cv_header_string" >&6; }
15636 if test $gcc_cv_header_string = yes; then
15638 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
15642 for ac_header in unistd.h semaphore.h sys/time.h sys/auxv.h malloc.h
15643 do :
15644 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15645 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15646 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15647 cat >>confdefs.h <<_ACEOF
15648 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15649 _ACEOF
15653 done
15658 inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
15660 acx_cv_header_stdint=stddef.h
15661 acx_cv_header_stdint_kind="(already complete)"
15662 for i in stdint.h $inttype_headers; do
15663 unset ac_cv_type_uintptr_t
15664 unset ac_cv_type_uintmax_t
15665 unset ac_cv_type_int_least32_t
15666 unset ac_cv_type_int_fast32_t
15667 unset ac_cv_type_uint64_t
15668 $as_echo_n "looking for a compliant stdint.h in $i, " >&6
15669 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h>
15670 #include <$i>
15672 if test "x$ac_cv_type_uintmax_t" = xyes; then :
15673 acx_cv_header_stdint=$i
15674 else
15675 continue
15678 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
15679 #include <$i>
15681 if test "x$ac_cv_type_uintptr_t" = xyes; then :
15683 else
15684 acx_cv_header_stdint_kind="(mostly complete)"
15687 ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h>
15688 #include <$i>
15690 if test "x$ac_cv_type_int_least32_t" = xyes; then :
15692 else
15693 acx_cv_header_stdint_kind="(mostly complete)"
15696 ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h>
15697 #include <$i>
15699 if test "x$ac_cv_type_int_fast32_t" = xyes; then :
15701 else
15702 acx_cv_header_stdint_kind="(mostly complete)"
15705 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
15706 #include <$i>
15708 if test "x$ac_cv_type_uint64_t" = xyes; then :
15710 else
15711 acx_cv_header_stdint_kind="(lacks uint64_t)"
15714 break
15715 done
15716 if test "$acx_cv_header_stdint" = stddef.h; then
15717 acx_cv_header_stdint_kind="(lacks uintmax_t)"
15718 for i in stdint.h $inttype_headers; do
15719 unset ac_cv_type_uintptr_t
15720 unset ac_cv_type_uint32_t
15721 unset ac_cv_type_uint64_t
15722 $as_echo_n "looking for an incomplete stdint.h in $i, " >&6
15723 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h>
15724 #include <$i>
15726 if test "x$ac_cv_type_uint32_t" = xyes; then :
15727 acx_cv_header_stdint=$i
15728 else
15729 continue
15732 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
15733 #include <$i>
15735 if test "x$ac_cv_type_uint64_t" = xyes; then :
15739 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
15740 #include <$i>
15742 if test "x$ac_cv_type_uintptr_t" = xyes; then :
15746 break
15747 done
15749 if test "$acx_cv_header_stdint" = stddef.h; then
15750 acx_cv_header_stdint_kind="(u_intXX_t style)"
15751 for i in sys/types.h $inttype_headers; do
15752 unset ac_cv_type_u_int32_t
15753 unset ac_cv_type_u_int64_t
15754 $as_echo_n "looking for u_intXX_t types in $i, " >&6
15755 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h>
15756 #include <$i>
15758 if test "x$ac_cv_type_u_int32_t" = xyes; then :
15759 acx_cv_header_stdint=$i
15760 else
15761 continue
15764 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h>
15765 #include <$i>
15767 if test "x$ac_cv_type_u_int64_t" = xyes; then :
15771 break
15772 done
15774 if test "$acx_cv_header_stdint" = stddef.h; then
15775 acx_cv_header_stdint_kind="(using manual detection)"
15778 test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
15779 test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
15780 test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
15781 test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
15782 test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
15784 # ----------------- Summarize what we found so far
15786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5
15787 $as_echo_n "checking what to include in gstdint.h... " >&6; }
15789 case `$as_basename -- gstdint.h ||
15790 $as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
15791 Xgstdint.h : 'X\(//\)$' \| \
15792 Xgstdint.h : 'X\(/\)' \| . 2>/dev/null ||
15793 $as_echo X/gstdint.h |
15794 sed '/^.*\/\([^/][^/]*\)\/*$/{
15795 s//\1/
15798 /^X\/\(\/\/\)$/{
15799 s//\1/
15802 /^X\/\(\/\).*/{
15803 s//\1/
15806 s/.*/./; q'` in
15807 stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
15808 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
15809 inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
15810 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
15811 *) ;;
15812 esac
15814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
15815 $as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; }
15817 # ----------------- done included file, check C basic types --------
15819 # Lacking an uintptr_t? Test size of void *
15820 case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
15821 stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler
15822 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15823 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15824 # This bug is HP SR number 8606223364.
15825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
15826 $as_echo_n "checking size of void *... " >&6; }
15827 if ${ac_cv_sizeof_void_p+:} false; then :
15828 $as_echo_n "(cached) " >&6
15829 else
15830 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
15832 else
15833 if test "$ac_cv_type_void_p" = yes; then
15834 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15835 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15836 as_fn_error 77 "cannot compute sizeof (void *)
15837 See \`config.log' for more details" "$LINENO" 5; }
15838 else
15839 ac_cv_sizeof_void_p=0
15844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
15845 $as_echo "$ac_cv_sizeof_void_p" >&6; }
15849 cat >>confdefs.h <<_ACEOF
15850 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15851 _ACEOF
15854 esac
15856 # Lacking an uint64_t? Test size of long
15857 case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
15858 stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler
15859 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15860 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15861 # This bug is HP SR number 8606223364.
15862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
15863 $as_echo_n "checking size of long... " >&6; }
15864 if ${ac_cv_sizeof_long+:} false; then :
15865 $as_echo_n "(cached) " >&6
15866 else
15867 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
15869 else
15870 if test "$ac_cv_type_long" = yes; then
15871 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15872 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15873 as_fn_error 77 "cannot compute sizeof (long)
15874 See \`config.log' for more details" "$LINENO" 5; }
15875 else
15876 ac_cv_sizeof_long=0
15881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
15882 $as_echo "$ac_cv_sizeof_long" >&6; }
15886 cat >>confdefs.h <<_ACEOF
15887 #define SIZEOF_LONG $ac_cv_sizeof_long
15888 _ACEOF
15891 esac
15893 if test $acx_cv_header_stdint = stddef.h; then
15894 # Lacking a good header? Test size of everything and deduce all types.
15895 # The cast to long int works around a bug in the HP C Compiler
15896 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15897 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15898 # This bug is HP SR number 8606223364.
15899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
15900 $as_echo_n "checking size of int... " >&6; }
15901 if ${ac_cv_sizeof_int+:} false; then :
15902 $as_echo_n "(cached) " >&6
15903 else
15904 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
15906 else
15907 if test "$ac_cv_type_int" = yes; then
15908 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15909 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15910 as_fn_error 77 "cannot compute sizeof (int)
15911 See \`config.log' for more details" "$LINENO" 5; }
15912 else
15913 ac_cv_sizeof_int=0
15918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
15919 $as_echo "$ac_cv_sizeof_int" >&6; }
15923 cat >>confdefs.h <<_ACEOF
15924 #define SIZEOF_INT $ac_cv_sizeof_int
15925 _ACEOF
15928 # The cast to long int works around a bug in the HP C Compiler
15929 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15930 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15931 # This bug is HP SR number 8606223364.
15932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
15933 $as_echo_n "checking size of short... " >&6; }
15934 if ${ac_cv_sizeof_short+:} false; then :
15935 $as_echo_n "(cached) " >&6
15936 else
15937 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
15939 else
15940 if test "$ac_cv_type_short" = yes; then
15941 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15942 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15943 as_fn_error 77 "cannot compute sizeof (short)
15944 See \`config.log' for more details" "$LINENO" 5; }
15945 else
15946 ac_cv_sizeof_short=0
15951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
15952 $as_echo "$ac_cv_sizeof_short" >&6; }
15956 cat >>confdefs.h <<_ACEOF
15957 #define SIZEOF_SHORT $ac_cv_sizeof_short
15958 _ACEOF
15961 # The cast to long int works around a bug in the HP C Compiler
15962 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15963 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15964 # This bug is HP SR number 8606223364.
15965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
15966 $as_echo_n "checking size of char... " >&6; }
15967 if ${ac_cv_sizeof_char+:} false; then :
15968 $as_echo_n "(cached) " >&6
15969 else
15970 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
15972 else
15973 if test "$ac_cv_type_char" = yes; then
15974 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15975 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15976 as_fn_error 77 "cannot compute sizeof (char)
15977 See \`config.log' for more details" "$LINENO" 5; }
15978 else
15979 ac_cv_sizeof_char=0
15984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
15985 $as_echo "$ac_cv_sizeof_char" >&6; }
15989 cat >>confdefs.h <<_ACEOF
15990 #define SIZEOF_CHAR $ac_cv_sizeof_char
15991 _ACEOF
15995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5
15996 $as_echo_n "checking for type equivalent to int8_t... " >&6; }
15997 case "$ac_cv_sizeof_char" in
15998 1) acx_cv_type_int8_t=char ;;
15999 *) as_fn_error $? "no 8-bit type, please report a bug" "$LINENO" 5
16000 esac
16001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
16002 $as_echo "$acx_cv_type_int8_t" >&6; }
16004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5
16005 $as_echo_n "checking for type equivalent to int16_t... " >&6; }
16006 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
16007 2:*) acx_cv_type_int16_t=int ;;
16008 *:2) acx_cv_type_int16_t=short ;;
16009 *) as_fn_error $? "no 16-bit type, please report a bug" "$LINENO" 5
16010 esac
16011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
16012 $as_echo "$acx_cv_type_int16_t" >&6; }
16014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5
16015 $as_echo_n "checking for type equivalent to int32_t... " >&6; }
16016 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
16017 4:*) acx_cv_type_int32_t=int ;;
16018 *:4) acx_cv_type_int32_t=long ;;
16019 *) as_fn_error $? "no 32-bit type, please report a bug" "$LINENO" 5
16020 esac
16021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
16022 $as_echo "$acx_cv_type_int32_t" >&6; }
16025 # These tests are here to make the output prettier
16027 if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
16028 case "$ac_cv_sizeof_long" in
16029 8) acx_cv_type_int64_t=long ;;
16030 esac
16031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5
16032 $as_echo_n "checking for type equivalent to int64_t... " >&6; }
16033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
16034 $as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
16037 # Now we can use the above types
16039 if test "$ac_cv_type_uintptr_t" != yes; then
16040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5
16041 $as_echo_n "checking for type equivalent to intptr_t... " >&6; }
16042 case $ac_cv_sizeof_void_p in
16043 2) acx_cv_type_intptr_t=int16_t ;;
16044 4) acx_cv_type_intptr_t=int32_t ;;
16045 8) acx_cv_type_intptr_t=int64_t ;;
16046 *) as_fn_error $? "no equivalent for intptr_t, please report a bug" "$LINENO" 5
16047 esac
16048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
16049 $as_echo "$acx_cv_type_intptr_t" >&6; }
16052 # ----------------- done all checks, emit header -------------
16053 ac_config_commands="$ac_config_commands gstdint.h"
16059 ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
16060 if test "x$ac_cv_header_sys_mman_h" = xyes; then :
16061 gcc_header_sys_mman_h=yes
16062 else
16063 gcc_header_sys_mman_h=no
16067 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
16068 if test "x$ac_cv_func_mmap" = xyes; then :
16069 gcc_func_mmap=yes
16070 else
16071 gcc_func_mmap=no
16074 if test "$gcc_header_sys_mman_h" != yes \
16075 || test "$gcc_func_mmap" != yes; then
16076 gcc_cv_func_mmap_file=no
16077 gcc_cv_func_mmap_dev_zero=no
16078 gcc_cv_func_mmap_anon=no
16079 else
16080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
16081 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
16082 if ${gcc_cv_func_mmap_file+:} false; then :
16083 $as_echo_n "(cached) " >&6
16084 else
16085 # Add a system to this blacklist if
16086 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
16087 # memory area containing the same data that you'd get if you applied
16088 # read() to the same fd. The only system known to have a problem here
16089 # is VMS, where text files have record structure.
16090 case "$host_os" in
16091 *vms* | ultrix*)
16092 gcc_cv_func_mmap_file=no ;;
16094 gcc_cv_func_mmap_file=yes;;
16095 esac
16097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
16098 $as_echo "$gcc_cv_func_mmap_file" >&6; }
16099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
16100 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
16101 if ${gcc_cv_func_mmap_dev_zero+:} false; then :
16102 $as_echo_n "(cached) " >&6
16103 else
16104 # Add a system to this blacklist if it has mmap() but /dev/zero
16105 # does not exist, or if mmapping /dev/zero does not give anonymous
16106 # zeroed pages with both the following properties:
16107 # 1. If you map N consecutive pages in with one call, and then
16108 # unmap any subset of those pages, the pages that were not
16109 # explicitly unmapped remain accessible.
16110 # 2. If you map two adjacent blocks of memory and then unmap them
16111 # both at once, they must both go away.
16112 # Systems known to be in this category are Windows (all variants),
16113 # VMS, and Darwin.
16114 case "$host_os" in
16115 *vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
16116 gcc_cv_func_mmap_dev_zero=no ;;
16118 gcc_cv_func_mmap_dev_zero=yes;;
16119 esac
16121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
16122 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
16124 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
16125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
16126 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
16127 if ${gcc_cv_decl_map_anon+:} false; then :
16128 $as_echo_n "(cached) " >&6
16129 else
16130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16131 /* end confdefs.h. */
16132 #include <sys/types.h>
16133 #include <sys/mman.h>
16134 #include <unistd.h>
16136 #ifndef MAP_ANONYMOUS
16137 #define MAP_ANONYMOUS MAP_ANON
16138 #endif
16141 main ()
16143 int n = MAP_ANONYMOUS;
16145 return 0;
16147 _ACEOF
16148 if ac_fn_c_try_compile "$LINENO"; then :
16149 gcc_cv_decl_map_anon=yes
16150 else
16151 gcc_cv_decl_map_anon=no
16153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
16156 $as_echo "$gcc_cv_decl_map_anon" >&6; }
16158 if test $gcc_cv_decl_map_anon = no; then
16159 gcc_cv_func_mmap_anon=no
16160 else
16161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
16162 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
16163 if ${gcc_cv_func_mmap_anon+:} false; then :
16164 $as_echo_n "(cached) " >&6
16165 else
16166 # Add a system to this blacklist if it has mmap() and MAP_ANON or
16167 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
16168 # doesn't give anonymous zeroed pages with the same properties listed
16169 # above for use of /dev/zero.
16170 # Systems known to be in this category are Windows, VMS, and SCO Unix.
16171 case "$host_os" in
16172 *vms* | cygwin* | pe | mingw* | sco* | udk* )
16173 gcc_cv_func_mmap_anon=no ;;
16175 gcc_cv_func_mmap_anon=yes;;
16176 esac
16178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
16179 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
16183 if test $gcc_cv_func_mmap_file = yes; then
16185 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
16188 if test $gcc_cv_func_mmap_dev_zero = yes; then
16190 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
16193 if test $gcc_cv_func_mmap_anon = yes; then
16195 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
16200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
16201 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
16202 if ${ac_cv_c_bigendian+:} false; then :
16203 $as_echo_n "(cached) " >&6
16204 else
16205 ac_cv_c_bigendian=unknown
16206 # See if we're dealing with a universal compiler.
16207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16208 /* end confdefs.h. */
16209 #ifndef __APPLE_CC__
16210 not a universal capable compiler
16211 #endif
16212 typedef int dummy;
16214 _ACEOF
16215 if ac_fn_c_try_compile "$LINENO"; then :
16217 # Check for potential -arch flags. It is not universal unless
16218 # there are at least two -arch flags with different values.
16219 ac_arch=
16220 ac_prev=
16221 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
16222 if test -n "$ac_prev"; then
16223 case $ac_word in
16224 i?86 | x86_64 | ppc | ppc64)
16225 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
16226 ac_arch=$ac_word
16227 else
16228 ac_cv_c_bigendian=universal
16229 break
16232 esac
16233 ac_prev=
16234 elif test "x$ac_word" = "x-arch"; then
16235 ac_prev=arch
16237 done
16239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16240 if test $ac_cv_c_bigendian = unknown; then
16241 # See if sys/param.h defines the BYTE_ORDER macro.
16242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16243 /* end confdefs.h. */
16244 #include <sys/types.h>
16245 #include <sys/param.h>
16248 main ()
16250 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
16251 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
16252 && LITTLE_ENDIAN)
16253 bogus endian macros
16254 #endif
16257 return 0;
16259 _ACEOF
16260 if ac_fn_c_try_compile "$LINENO"; then :
16261 # It does; now see whether it defined to BIG_ENDIAN or not.
16262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16263 /* end confdefs.h. */
16264 #include <sys/types.h>
16265 #include <sys/param.h>
16268 main ()
16270 #if BYTE_ORDER != BIG_ENDIAN
16271 not big endian
16272 #endif
16275 return 0;
16277 _ACEOF
16278 if ac_fn_c_try_compile "$LINENO"; then :
16279 ac_cv_c_bigendian=yes
16280 else
16281 ac_cv_c_bigendian=no
16283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16287 if test $ac_cv_c_bigendian = unknown; then
16288 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
16289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16290 /* end confdefs.h. */
16291 #include <limits.h>
16294 main ()
16296 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
16297 bogus endian macros
16298 #endif
16301 return 0;
16303 _ACEOF
16304 if ac_fn_c_try_compile "$LINENO"; then :
16305 # It does; now see whether it defined to _BIG_ENDIAN or not.
16306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16307 /* end confdefs.h. */
16308 #include <limits.h>
16311 main ()
16313 #ifndef _BIG_ENDIAN
16314 not big endian
16315 #endif
16318 return 0;
16320 _ACEOF
16321 if ac_fn_c_try_compile "$LINENO"; then :
16322 ac_cv_c_bigendian=yes
16323 else
16324 ac_cv_c_bigendian=no
16326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16330 if test $ac_cv_c_bigendian = unknown; then
16331 # Compile a test program.
16332 if test "$cross_compiling" = yes; then :
16333 # Try to guess by grepping values from an object file.
16334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16335 /* end confdefs.h. */
16336 short int ascii_mm[] =
16337 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
16338 short int ascii_ii[] =
16339 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
16340 int use_ascii (int i) {
16341 return ascii_mm[i] + ascii_ii[i];
16343 short int ebcdic_ii[] =
16344 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
16345 short int ebcdic_mm[] =
16346 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
16347 int use_ebcdic (int i) {
16348 return ebcdic_mm[i] + ebcdic_ii[i];
16350 extern int foo;
16353 main ()
16355 return use_ascii (foo) == use_ebcdic (foo);
16357 return 0;
16359 _ACEOF
16360 if ac_fn_c_try_compile "$LINENO"; then :
16361 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
16362 ac_cv_c_bigendian=yes
16364 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
16365 if test "$ac_cv_c_bigendian" = unknown; then
16366 ac_cv_c_bigendian=no
16367 else
16368 # finding both strings is unlikely to happen, but who knows?
16369 ac_cv_c_bigendian=unknown
16373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16374 else
16375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16376 /* end confdefs.h. */
16377 $ac_includes_default
16379 main ()
16382 /* Are we little or big endian? From Harbison&Steele. */
16383 union
16385 long int l;
16386 char c[sizeof (long int)];
16387 } u;
16388 u.l = 1;
16389 return u.c[sizeof (long int) - 1] == 1;
16392 return 0;
16394 _ACEOF
16395 if ac_fn_c_try_run "$LINENO"; then :
16396 ac_cv_c_bigendian=no
16397 else
16398 ac_cv_c_bigendian=yes
16400 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16401 conftest.$ac_objext conftest.beam conftest.$ac_ext
16406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
16407 $as_echo "$ac_cv_c_bigendian" >&6; }
16408 case $ac_cv_c_bigendian in #(
16409 yes)
16410 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
16411 ;; #(
16413 ;; #(
16414 universal)
16416 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
16418 ;; #(
16420 as_fn_error $? "unknown endianness
16421 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
16422 esac
16424 # I don't like the default behaviour of WORDS_BIGENDIAN undefined for LE.
16427 # Check to see if -pthread or -lpthread is needed. Prefer the former.
16428 # In case the pthread.h system header is not found, this test will fail.
16429 XPCFLAGS=""
16430 CFLAGS="$CFLAGS -pthread"
16431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16432 /* end confdefs.h. */
16433 #include <pthread.h>
16434 void *g(void *d) { return NULL; }
16436 main ()
16438 pthread_t t; pthread_create(&t,NULL,g,NULL);
16440 return 0;
16442 _ACEOF
16443 if ac_fn_c_try_link "$LINENO"; then :
16444 XPCFLAGS=" -Wc,-pthread"
16445 else
16446 CFLAGS="$save_CFLAGS" LIBS="-lpthread $LIBS"
16447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16448 /* end confdefs.h. */
16449 #include <pthread.h>
16450 void *g(void *d) { return NULL; }
16452 main ()
16454 pthread_t t; pthread_create(&t,NULL,g,NULL);
16456 return 0;
16458 _ACEOF
16459 if ac_fn_c_try_link "$LINENO"; then :
16461 else
16462 as_fn_error $? "Pthreads are required to build libitm" "$LINENO" 5
16464 rm -f core conftest.err conftest.$ac_objext \
16465 conftest$ac_exeext conftest.$ac_ext
16467 rm -f core conftest.err conftest.$ac_objext \
16468 conftest$ac_exeext conftest.$ac_ext
16470 # Check for functions needed.
16471 for ac_func in strtoull memalign posix_memalign getauxval
16472 do :
16473 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16474 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16475 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16476 cat >>confdefs.h <<_ACEOF
16477 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16478 _ACEOF
16481 done
16484 # Check for broken semaphore implementation on darwin.
16485 # sem_init returns: sem_init error: Function not implemented.
16486 case "$host" in
16487 *-darwin*)
16489 $as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h
16492 esac
16494 # Check whether --enable-linux-futex was given.
16495 if test "${enable_linux_futex+set}" = set; then :
16496 enableval=$enable_linux_futex;
16497 case "$enableval" in
16498 yes|no|default) ;;
16499 *) as_fn_error $? "Unknown argument to enable/disable linux-futex" "$LINENO" 5 ;;
16500 esac
16502 else
16503 enable_linux_futex=default
16507 case "$target" in
16508 *-linux* | *-uclinux*)
16509 case "$enable_linux_futex" in
16510 default)
16511 # If headers don't have gettid/futex syscalls definition, then
16512 # default to no, otherwise there will be compile time failures.
16513 # Otherwise, default to yes. If we don't detect we are
16514 # compiled/linked against NPTL and not cross-compiling, check
16515 # if programs are run by default against NPTL and if not, issue
16516 # a warning.
16517 enable_linux_futex=no
16518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16519 /* end confdefs.h. */
16520 #include <sys/syscall.h>
16521 #include <unistd.h>
16522 int lk;
16524 main ()
16526 syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
16528 return 0;
16530 _ACEOF
16531 if ac_fn_c_try_link "$LINENO"; then :
16532 save_LIBS="$LIBS"
16533 LIBS="-lpthread $LIBS"
16534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16535 /* end confdefs.h. */
16536 #ifndef _GNU_SOURCE
16537 #define _GNU_SOURCE 1
16538 #endif
16539 #include <pthread.h>
16540 pthread_t th; void *status;
16542 main ()
16544 pthread_tryjoin_np (th, &status);
16546 return 0;
16548 _ACEOF
16549 if ac_fn_c_try_link "$LINENO"; then :
16550 enable_linux_futex=yes
16551 else
16552 if test x$cross_compiling = xno; then
16553 if getconf GNU_LIBPTHREAD_VERSION 2>/dev/null \
16554 | LC_ALL=C grep -i NPTL > /dev/null 2>/dev/null; then :; else
16555 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The kernel might not support futex or gettid syscalls.
16556 If so, please configure with --disable-linux-futex" >&5
16557 $as_echo "$as_me: WARNING: The kernel might not support futex or gettid syscalls.
16558 If so, please configure with --disable-linux-futex" >&2;}
16561 enable_linux_futex=yes
16563 rm -f core conftest.err conftest.$ac_objext \
16564 conftest$ac_exeext conftest.$ac_ext
16565 LIBS="$save_LIBS"
16567 rm -f core conftest.err conftest.$ac_objext \
16568 conftest$ac_exeext conftest.$ac_ext
16570 yes)
16571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16572 /* end confdefs.h. */
16573 #include <sys/syscall.h>
16574 #include <unistd.h>
16575 int lk;
16577 main ()
16579 syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
16581 return 0;
16583 _ACEOF
16584 if ac_fn_c_try_link "$LINENO"; then :
16586 else
16587 as_fn_error $? "SYS_gettid and SYS_futex required for --enable-linux-futex" "$LINENO" 5
16589 rm -f core conftest.err conftest.$ac_objext \
16590 conftest$ac_exeext conftest.$ac_ext
16592 esac
16595 enable_linux_futex=no
16597 esac
16598 if test x$enable_linux_futex = xyes; then
16603 # See if we support thread-local storage.
16606 # Check whether --enable-tls was given.
16607 if test "${enable_tls+set}" = set; then :
16608 enableval=$enable_tls;
16609 case "$enableval" in
16610 yes|no) ;;
16611 *) as_fn_error $? "Argument to enable/disable tls must be yes or no" "$LINENO" 5 ;;
16612 esac
16614 else
16615 enable_tls=yes
16619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports thread-local storage" >&5
16620 $as_echo_n "checking whether the target supports thread-local storage... " >&6; }
16621 if ${gcc_cv_have_tls+:} false; then :
16622 $as_echo_n "(cached) " >&6
16623 else
16625 if test "$cross_compiling" = yes; then :
16626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16627 /* end confdefs.h. */
16628 __thread int a; int b; int main() { return a = b; }
16629 _ACEOF
16630 if ac_fn_c_try_link "$LINENO"; then :
16631 chktls_save_LDFLAGS="$LDFLAGS"
16632 case $host in
16633 *-*-linux* | -*-uclinuxfdpic*)
16634 LDFLAGS="-shared -Wl,--no-undefined $LDFLAGS"
16636 esac
16637 chktls_save_CFLAGS="$CFLAGS"
16638 CFLAGS="-fPIC $CFLAGS"
16639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16640 /* end confdefs.h. */
16641 int f() { return 0; }
16642 _ACEOF
16643 if ac_fn_c_try_link "$LINENO"; then :
16644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16645 /* end confdefs.h. */
16646 __thread int a; int b; int f() { return a = b; }
16647 _ACEOF
16648 if ac_fn_c_try_link "$LINENO"; then :
16649 gcc_cv_have_tls=yes
16650 else
16651 gcc_cv_have_tls=no
16653 rm -f core conftest.err conftest.$ac_objext \
16654 conftest$ac_exeext conftest.$ac_ext
16655 else
16656 gcc_cv_have_tls=yes
16658 rm -f core conftest.err conftest.$ac_objext \
16659 conftest$ac_exeext conftest.$ac_ext
16660 CFLAGS="$chktls_save_CFLAGS"
16661 LDFLAGS="$chktls_save_LDFLAGS"
16662 else
16663 gcc_cv_have_tls=no
16665 rm -f core conftest.err conftest.$ac_objext \
16666 conftest$ac_exeext conftest.$ac_ext
16669 else
16670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16671 /* end confdefs.h. */
16672 __thread int a; int b; int main() { return a = b; }
16673 _ACEOF
16674 if ac_fn_c_try_run "$LINENO"; then :
16675 chktls_save_LDFLAGS="$LDFLAGS"
16676 LDFLAGS="-static $LDFLAGS"
16677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16678 /* end confdefs.h. */
16679 int main() { return 0; }
16680 _ACEOF
16681 if ac_fn_c_try_link "$LINENO"; then :
16682 if test "$cross_compiling" = yes; then :
16683 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16684 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16685 as_fn_error $? "cannot run test program while cross compiling
16686 See \`config.log' for more details" "$LINENO" 5; }
16687 else
16688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16689 /* end confdefs.h. */
16690 __thread int a; int b; int main() { return a = b; }
16691 _ACEOF
16692 if ac_fn_c_try_run "$LINENO"; then :
16693 gcc_cv_have_tls=yes
16694 else
16695 gcc_cv_have_tls=no
16697 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16698 conftest.$ac_objext conftest.beam conftest.$ac_ext
16701 else
16702 gcc_cv_have_tls=yes
16704 rm -f core conftest.err conftest.$ac_objext \
16705 conftest$ac_exeext conftest.$ac_ext
16706 LDFLAGS="$chktls_save_LDFLAGS"
16707 if test $gcc_cv_have_tls = yes; then
16708 chktls_save_CFLAGS="$CFLAGS"
16709 thread_CFLAGS=failed
16710 for flag in '' '-pthread' '-lpthread'; do
16711 CFLAGS="$flag $chktls_save_CFLAGS"
16712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16713 /* end confdefs.h. */
16714 #include <pthread.h>
16715 void *g(void *d) { return NULL; }
16717 main ()
16719 pthread_t t; pthread_create(&t,NULL,g,NULL);
16721 return 0;
16723 _ACEOF
16724 if ac_fn_c_try_link "$LINENO"; then :
16725 thread_CFLAGS="$flag"
16727 rm -f core conftest.err conftest.$ac_objext \
16728 conftest$ac_exeext conftest.$ac_ext
16729 if test "X$thread_CFLAGS" != Xfailed; then
16730 break
16732 done
16733 CFLAGS="$chktls_save_CFLAGS"
16734 if test "X$thread_CFLAGS" != Xfailed; then
16735 CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS"
16736 if test "$cross_compiling" = yes; then :
16737 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16738 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16739 as_fn_error $? "cannot run test program while cross compiling
16740 See \`config.log' for more details" "$LINENO" 5; }
16741 else
16742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16743 /* end confdefs.h. */
16744 #include <pthread.h>
16745 __thread int a;
16746 static int *volatile a_in_other_thread;
16747 static void *
16748 thread_func (void *arg)
16750 a_in_other_thread = &a;
16751 return (void *)0;
16754 main ()
16756 pthread_t thread;
16757 void *thread_retval;
16758 int *volatile a_in_main_thread;
16759 a_in_main_thread = &a;
16760 if (pthread_create (&thread, (pthread_attr_t *)0,
16761 thread_func, (void *)0))
16762 return 0;
16763 if (pthread_join (thread, &thread_retval))
16764 return 0;
16765 return (a_in_other_thread == a_in_main_thread);
16767 return 0;
16769 _ACEOF
16770 if ac_fn_c_try_run "$LINENO"; then :
16771 gcc_cv_have_tls=yes
16772 else
16773 gcc_cv_have_tls=no
16775 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16776 conftest.$ac_objext conftest.beam conftest.$ac_ext
16779 CFLAGS="$chktls_save_CFLAGS"
16782 else
16783 gcc_cv_have_tls=no
16785 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16786 conftest.$ac_objext conftest.beam conftest.$ac_ext
16790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_have_tls" >&5
16791 $as_echo "$gcc_cv_have_tls" >&6; }
16792 if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then
16794 $as_echo "#define HAVE_TLS 1" >>confdefs.h
16798 # See what sort of export controls are available.
16800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports hidden visibility" >&5
16801 $as_echo_n "checking whether the target supports hidden visibility... " >&6; }
16802 if ${libitm_cv_have_attribute_visibility+:} false; then :
16803 $as_echo_n "(cached) " >&6
16804 else
16806 save_CFLAGS="$CFLAGS"
16807 CFLAGS="$CFLAGS -Werror"
16808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16809 /* end confdefs.h. */
16810 void __attribute__((visibility("hidden"))) foo(void) { }
16812 main ()
16816 return 0;
16818 _ACEOF
16819 if ac_fn_c_try_compile "$LINENO"; then :
16820 libitm_cv_have_attribute_visibility=yes
16821 else
16822 libitm_cv_have_attribute_visibility=no
16824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16825 CFLAGS="$save_CFLAGS"
16827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_have_attribute_visibility" >&5
16828 $as_echo "$libitm_cv_have_attribute_visibility" >&6; }
16829 if test $libitm_cv_have_attribute_visibility = yes; then
16831 $as_echo "#define HAVE_ATTRIBUTE_VISIBILITY 1" >>confdefs.h
16835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports dllexport" >&5
16836 $as_echo_n "checking whether the target supports dllexport... " >&6; }
16837 if ${libitm_cv_have_attribute_dllexport+:} false; then :
16838 $as_echo_n "(cached) " >&6
16839 else
16841 save_CFLAGS="$CFLAGS"
16842 CFLAGS="$CFLAGS -Werror"
16843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16844 /* end confdefs.h. */
16845 void __attribute__((dllexport)) foo(void) { }
16847 main ()
16851 return 0;
16853 _ACEOF
16854 if ac_fn_c_try_compile "$LINENO"; then :
16855 libitm_cv_have_attribute_dllexport=yes
16856 else
16857 libitm_cv_have_attribute_dllexport=no
16859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16860 CFLAGS="$save_CFLAGS"
16862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_have_attribute_dllexport" >&5
16863 $as_echo "$libitm_cv_have_attribute_dllexport" >&6; }
16864 if test $libitm_cv_have_attribute_dllexport = yes; then
16866 $as_echo "#define HAVE_ATTRIBUTE_DLLEXPORT 1" >>confdefs.h
16870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports symbol aliases" >&5
16871 $as_echo_n "checking whether the target supports symbol aliases... " >&6; }
16872 if ${libitm_cv_have_attribute_alias+:} false; then :
16873 $as_echo_n "(cached) " >&6
16874 else
16876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16877 /* end confdefs.h. */
16879 void foo(void) { }
16880 extern void bar(void) __attribute__((alias("foo")));
16882 main ()
16884 bar();
16886 return 0;
16888 _ACEOF
16889 if ac_fn_c_try_link "$LINENO"; then :
16890 libitm_cv_have_attribute_alias=yes
16891 else
16892 libitm_cv_have_attribute_alias=no
16894 rm -f core conftest.err conftest.$ac_objext \
16895 conftest$ac_exeext conftest.$ac_ext
16897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_have_attribute_alias" >&5
16898 $as_echo "$libitm_cv_have_attribute_alias" >&6; }
16899 if test $libitm_cv_have_attribute_alias = yes; then
16901 $as_echo "#define HAVE_ATTRIBUTE_ALIAS 1" >>confdefs.h
16905 # Check linker hardware capability support.
16908 # Check whether --with-gnu-ld was given.
16909 if test "${with_gnu_ld+set}" = set; then :
16910 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16911 else
16912 with_gnu_ld=no
16915 ac_prog=ld
16916 if test "$GCC" = yes; then
16917 # Check if gcc -print-prog-name=ld gives a path.
16918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
16919 $as_echo_n "checking for ld used by $CC... " >&6; }
16920 case $host in
16921 *-*-mingw*)
16922 # gcc leaves a trailing carriage return which upsets mingw
16923 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16925 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16926 esac
16927 case $ac_prog in
16928 # Accept absolute paths.
16929 [\\/]* | ?:[\\/]*)
16930 re_direlt='/[^/][^/]*/\.\./'
16931 # Canonicalize the pathname of ld
16932 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
16933 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
16934 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
16935 done
16936 test -z "$LD" && LD="$ac_prog"
16939 # If it fails, then pretend we aren't using GCC.
16940 ac_prog=ld
16943 # If it is relative, then search for the first ld in PATH.
16944 with_gnu_ld=unknown
16946 esac
16947 elif test "$with_gnu_ld" = yes; then
16948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16949 $as_echo_n "checking for GNU ld... " >&6; }
16950 else
16951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16952 $as_echo_n "checking for non-GNU ld... " >&6; }
16954 if ${lt_cv_path_LD+:} false; then :
16955 $as_echo_n "(cached) " >&6
16956 else
16957 if test -z "$LD"; then
16958 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16959 for ac_dir in $PATH; do
16960 IFS="$lt_save_ifs"
16961 test -z "$ac_dir" && ac_dir=.
16962 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16963 lt_cv_path_LD="$ac_dir/$ac_prog"
16964 # Check to see if the program is GNU ld. I'd rather use --version,
16965 # but apparently some variants of GNU ld only accept -v.
16966 # Break only if it was the GNU/non-GNU ld that we prefer.
16967 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
16968 *GNU* | *'with BFD'*)
16969 test "$with_gnu_ld" != no && break
16972 test "$with_gnu_ld" != yes && break
16974 esac
16976 done
16977 IFS="$lt_save_ifs"
16978 else
16979 lt_cv_path_LD="$LD" # Let the user override the test with a path.
16983 LD="$lt_cv_path_LD"
16984 if test -n "$LD"; then
16985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16986 $as_echo "$LD" >&6; }
16987 else
16988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16989 $as_echo "no" >&6; }
16991 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
16992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16993 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
16994 if ${lt_cv_prog_gnu_ld+:} false; then :
16995 $as_echo_n "(cached) " >&6
16996 else
16997 # I'd rather use --version here, but apparently some GNU lds only accept -v.
16998 case `$LD -v 2>&1 </dev/null` in
16999 *GNU* | *'with BFD'*)
17000 lt_cv_prog_gnu_ld=yes
17003 lt_cv_prog_gnu_ld=no
17005 esac
17007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
17008 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
17009 with_gnu_ld=$lt_cv_prog_gnu_ld
17017 test -z "$HWCAP_LDFLAGS" && HWCAP_LDFLAGS=''
17020 ac_save_LDFLAGS="$LDFLAGS"
17021 LDFLAGS="$LFLAGS -mclear-hwcap"
17023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -mclear-hwcap" >&5
17024 $as_echo_n "checking for -mclear-hwcap... " >&6; }
17025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17026 /* end confdefs.h. */
17029 main ()
17031 return 0;
17033 return 0;
17035 _ACEOF
17036 if ac_fn_c_try_link "$LINENO"; then :
17037 ac_hwcap_ldflags=yes
17038 else
17039 ac_hwcap_ldflags=no
17041 rm -f core conftest.err conftest.$ac_objext \
17042 conftest$ac_exeext conftest.$ac_ext
17043 if test "$ac_hwcap_ldflags" = "yes"; then
17044 HWCAP_LDFLAGS="-mclear-hwcap $HWCAP_LDFLAGS"
17046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_hwcap_ldflags" >&5
17047 $as_echo "$ac_hwcap_ldflags" >&6; }
17049 LDFLAGS="$ac_save_LDFLAGS"
17053 if test $ac_hwcap_ldflags != no; then
17054 HAVE_HWCAP_TRUE=
17055 HAVE_HWCAP_FALSE='#'
17056 else
17057 HAVE_HWCAP_TRUE='#'
17058 HAVE_HWCAP_FALSE=
17062 # If defaulting to -mavx, don't clear hwcaps.
17063 ac_fn_c_check_decl "$LINENO" "__AVX__" "ac_cv_have_decl___AVX__" "$ac_includes_default"
17064 if test "x$ac_cv_have_decl___AVX__" = xyes; then :
17065 HWCAP_LDFLAGS=''
17070 # If we're not using GNU ld, then there's no point in even trying these
17071 # tests. Check for that first. We should have already tested for gld
17072 # by now (in libtool), but require it now just to be safe...
17073 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
17074 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
17078 # The name set by libtool depends on the version of libtool. Shame on us
17079 # for depending on an impl detail, but c'est la vie. Older versions used
17080 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
17081 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
17082 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
17083 # set (hence we're using an older libtool), then set it.
17084 if test x${with_gnu_ld+set} != xset; then
17085 if test x${ac_cv_prog_gnu_ld+set} != xset; then
17086 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
17087 with_gnu_ld=no
17088 else
17089 with_gnu_ld=$ac_cv_prog_gnu_ld
17093 # Start by getting the version number. I think the libtool test already
17094 # does some of this, but throws away the result.
17095 libitm_ld_is_gold=no
17096 if $LD --version 2>/dev/null | grep 'GNU gold'> /dev/null 2>&1; then
17097 libitm_ld_is_gold=yes
17100 ldver=`$LD --version 2>/dev/null |
17101 sed -e 's/[. ][0-9]\{8\}$//;s/.* \([^ ]\{1,\}\)$/\1/; q'`
17103 libitm_gnu_ld_version=`echo $ldver | \
17104 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
17106 # Set --gc-sections.
17107 if test "$with_gnu_ld" = "notbroken"; then
17108 # GNU ld it is! Joy and bunny rabbits!
17110 # All these tests are for C++; save the language and the compiler flags.
17111 # Need to do this so that g++ won't try to link in libstdc++
17112 ac_test_CFLAGS="${CFLAGS+set}"
17113 ac_save_CFLAGS="$CFLAGS"
17114 CFLAGS='-x c++ -Wl,--gc-sections'
17116 # Check for -Wl,--gc-sections
17117 # XXX This test is broken at the moment, as symbols required for linking
17118 # are now in libsupc++ (not built yet). In addition, this test has
17119 # cored on solaris in the past. In addition, --gc-sections doesn't
17120 # really work at the moment (keeps on discarding used sections, first
17121 # .eh_frame and now some of the glibc sections for iconv).
17122 # Bzzzzt. Thanks for playing, maybe next time.
17123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,--gc-sections" >&5
17124 $as_echo_n "checking for ld that supports -Wl,--gc-sections... " >&6; }
17125 if test "$cross_compiling" = yes; then :
17126 ac_sectionLDflags=yes
17127 else
17128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17129 /* end confdefs.h. */
17131 int main(void)
17133 try { throw 1; }
17134 catch (...) { };
17135 return 0;
17138 _ACEOF
17139 if ac_fn_c_try_run "$LINENO"; then :
17140 ac_sectionLDflags=yes
17141 else
17142 ac_sectionLDflags=no
17144 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17145 conftest.$ac_objext conftest.beam conftest.$ac_ext
17148 if test "$ac_test_CFLAGS" = set; then
17149 CFLAGS="$ac_save_CFLAGS"
17150 else
17151 # this is the suspicious part
17152 CFLAGS=''
17154 if test "$ac_sectionLDflags" = "yes"; then
17155 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
17157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_sectionLDflags" >&5
17158 $as_echo "$ac_sectionLDflags" >&6; }
17161 # Set linker optimization flags.
17162 if test x"$with_gnu_ld" = x"yes"; then
17163 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
17171 # Check whether --enable-symvers was given.
17172 if test "${enable_symvers+set}" = set; then :
17173 enableval=$enable_symvers;
17174 case "$enableval" in
17175 yes|no|gnu*|sun) ;;
17176 *) as_fn_error $? "Unknown argument to enable/disable symvers" "$LINENO" 5 ;;
17177 esac
17179 else
17180 enable_symvers=yes
17185 # If we never went through the LIBITM_CHECK_LINKER_FEATURES macro, then we
17186 # don't know enough about $LD to do tricks...
17189 # Turn a 'yes' into a suitable default.
17190 if test x$enable_symvers = xyes ; then
17191 # FIXME The following test is too strict, in theory.
17192 if test $enable_shared = no || test "x$LD" = x; then
17193 enable_symvers=no
17194 else
17195 if test $with_gnu_ld = yes ; then
17196 enable_symvers=gnu
17197 else
17198 case ${target_os} in
17199 # Sun symbol versioning exists since Solaris 2.5.
17200 solaris2.[5-9]* | solaris2.1[0-9]*)
17201 enable_symvers=sun ;;
17203 enable_symvers=no ;;
17204 esac
17209 # Check if 'sun' was requested on non-Solaris 2 platforms.
17210 if test x$enable_symvers = xsun ; then
17211 case ${target_os} in
17212 solaris2*)
17213 # All fine.
17216 # Unlikely to work.
17217 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested Sun symbol versioning, but" >&5
17218 $as_echo "$as_me: WARNING: === You have requested Sun symbol versioning, but" >&2;}
17219 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === you are not targetting Solaris 2." >&5
17220 $as_echo "$as_me: WARNING: === you are not targetting Solaris 2." >&2;}
17221 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
17222 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
17223 enable_symvers=no
17225 esac
17228 # Check to see if libgcc_s exists, indicating that shared libgcc is possible.
17229 if test $enable_symvers != no; then
17230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared libgcc" >&5
17231 $as_echo_n "checking for shared libgcc... " >&6; }
17232 ac_save_CFLAGS="$CFLAGS"
17233 CFLAGS=' -lgcc_s'
17234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17235 /* end confdefs.h. */
17238 main ()
17240 return 0;
17242 return 0;
17244 _ACEOF
17245 if ac_fn_c_try_link "$LINENO"; then :
17246 libitm_shared_libgcc=yes
17247 else
17248 libitm_shared_libgcc=no
17250 rm -f core conftest.err conftest.$ac_objext \
17251 conftest$ac_exeext conftest.$ac_ext
17252 CFLAGS="$ac_save_CFLAGS"
17253 if test $libitm_shared_libgcc = no; then
17254 cat > conftest.c <<EOF
17255 int main (void) { return 0; }
17257 libitm_libgcc_s_suffix=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
17258 -shared -shared-libgcc -o conftest.so \
17259 conftest.c -v 2>&1 >/dev/null \
17260 | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'`
17261 rm -f conftest.c conftest.so
17262 if test x${libitm_libgcc_s_suffix+set} = xset; then
17263 CFLAGS=" -lgcc_s$libitm_libgcc_s_suffix"
17264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17265 /* end confdefs.h. */
17268 main ()
17270 return 0;
17272 return 0;
17274 _ACEOF
17275 if ac_fn_c_try_link "$LINENO"; then :
17276 libitm_shared_libgcc=yes
17278 rm -f core conftest.err conftest.$ac_objext \
17279 conftest$ac_exeext conftest.$ac_ext
17280 CFLAGS="$ac_save_CFLAGS"
17283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_shared_libgcc" >&5
17284 $as_echo "$libitm_shared_libgcc" >&6; }
17287 # For GNU ld, we need at least this version. The format is described in
17288 # LIBITM_CHECK_LINKER_FEATURES above.
17289 libitm_min_gnu_ld_version=21400
17290 # XXXXXXXXXXX libitm_gnu_ld_version=21390
17292 # Check to see if unspecified "yes" value can win, given results above.
17293 # Change "yes" into either "no" or a style name.
17294 if test $enable_symvers != no && test $libitm_shared_libgcc = yes; then
17295 if test $with_gnu_ld = yes; then
17296 if test $libitm_gnu_ld_version -ge $libitm_min_gnu_ld_version ; then
17297 enable_symvers=gnu
17298 elif test $libitm_ld_is_gold = yes ; then
17299 enable_symvers=gnu
17300 else
17301 # The right tools, the right setup, but too old. Fallbacks?
17302 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Linker version $libitm_gnu_ld_version is too old for" >&5
17303 $as_echo "$as_me: WARNING: === Linker version $libitm_gnu_ld_version is too old for" >&2;}
17304 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === full symbol versioning support in this release of GCC." >&5
17305 $as_echo "$as_me: WARNING: === full symbol versioning support in this release of GCC." >&2;}
17306 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You would need to upgrade your binutils to version" >&5
17307 $as_echo "$as_me: WARNING: === You would need to upgrade your binutils to version" >&2;}
17308 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === $libitm_min_gnu_ld_version or later and rebuild GCC." >&5
17309 $as_echo "$as_me: WARNING: === $libitm_min_gnu_ld_version or later and rebuild GCC." >&2;}
17310 if test $libitm_gnu_ld_version -ge 21200 ; then
17311 # Globbing fix is present, proper block support is not.
17312 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
17313 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
17314 enable_symvers=no
17315 else
17316 # 2.11 or older.
17317 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
17318 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
17319 enable_symvers=no
17322 elif test $enable_symvers = sun; then
17323 : All interesting versions of Sun ld support sun style symbol versioning.
17324 else
17325 # just fail for now
17326 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested some kind of symbol versioning, but" >&5
17327 $as_echo "$as_me: WARNING: === You have requested some kind of symbol versioning, but" >&2;}
17328 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === either you are not using a supported linker, or you are" >&5
17329 $as_echo "$as_me: WARNING: === either you are not using a supported linker, or you are" >&2;}
17330 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === not building a shared libgcc_s (which is required)." >&5
17331 $as_echo "$as_me: WARNING: === not building a shared libgcc_s (which is required)." >&2;}
17332 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
17333 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
17334 enable_symvers=no
17338 if test $enable_symvers != no; then
17339 LIBITM_BUILD_VERSIONED_SHLIB_TRUE=
17340 LIBITM_BUILD_VERSIONED_SHLIB_FALSE='#'
17341 else
17342 LIBITM_BUILD_VERSIONED_SHLIB_TRUE='#'
17343 LIBITM_BUILD_VERSIONED_SHLIB_FALSE=
17346 if test $enable_symvers = gnu; then
17347 LIBITM_BUILD_VERSIONED_SHLIB_GNU_TRUE=
17348 LIBITM_BUILD_VERSIONED_SHLIB_GNU_FALSE='#'
17349 else
17350 LIBITM_BUILD_VERSIONED_SHLIB_GNU_TRUE='#'
17351 LIBITM_BUILD_VERSIONED_SHLIB_GNU_FALSE=
17354 if test $enable_symvers = sun; then
17355 LIBITM_BUILD_VERSIONED_SHLIB_SUN_TRUE=
17356 LIBITM_BUILD_VERSIONED_SHLIB_SUN_FALSE='#'
17357 else
17358 LIBITM_BUILD_VERSIONED_SHLIB_SUN_TRUE='#'
17359 LIBITM_BUILD_VERSIONED_SHLIB_SUN_FALSE=
17362 { $as_echo "$as_me:${as_lineno-$LINENO}: versioning on shared library symbols is $enable_symvers" >&5
17363 $as_echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;}
17365 if test $enable_symvers = gnu; then
17367 $as_echo "#define LIBITM_GNU_SYMBOL_VERSIONING 1" >>confdefs.h
17371 # See if we can emit unwind info in the sjlj stub.
17372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .cfi pseudo-op support" >&5
17373 $as_echo_n "checking assembler .cfi pseudo-op support... " >&6; }
17374 if ${gcc_cv_as_cfi_pseudo_op+:} false; then :
17375 $as_echo_n "(cached) " >&6
17376 else
17378 gcc_cv_as_cfi_pseudo_op=unknown
17379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17380 /* end confdefs.h. */
17381 asm (".cfi_startproc\n\t.cfi_endproc");
17383 main ()
17387 return 0;
17389 _ACEOF
17390 if ac_fn_c_try_compile "$LINENO"; then :
17391 gcc_cv_as_cfi_pseudo_op=yes
17392 else
17393 gcc_cv_as_cfi_pseudo_op=no
17395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_pseudo_op" >&5
17399 $as_echo "$gcc_cv_as_cfi_pseudo_op" >&6; }
17400 if test "x$gcc_cv_as_cfi_pseudo_op" = xyes; then
17402 $as_echo "#define HAVE_AS_CFI_PSEUDO_OP 1" >>confdefs.h
17407 # Determine the proper ABI type for size_t.
17409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how size_t is mangled" >&5
17410 $as_echo_n "checking how size_t is mangled... " >&6; }
17411 if ${libitm_cv_size_t_mangling+:} false; then :
17412 $as_echo_n "(cached) " >&6
17413 else
17415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17416 /* end confdefs.h. */
17419 main ()
17421 extern __SIZE_TYPE__ x; extern unsigned long x;
17423 return 0;
17425 _ACEOF
17426 if ac_fn_c_try_compile "$LINENO"; then :
17427 libitm_cv_size_t_mangling=m
17428 else
17430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17431 /* end confdefs.h. */
17434 main ()
17436 extern __SIZE_TYPE__ x; extern unsigned int x;
17438 return 0;
17440 _ACEOF
17441 if ac_fn_c_try_compile "$LINENO"; then :
17442 libitm_cv_size_t_mangling=j
17443 else
17445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17446 /* end confdefs.h. */
17449 main ()
17451 extern __SIZE_TYPE__ x; extern unsigned long long x;
17453 return 0;
17455 _ACEOF
17456 if ac_fn_c_try_compile "$LINENO"; then :
17457 libitm_cv_size_t_mangling=y
17458 else
17460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17461 /* end confdefs.h. */
17464 main ()
17466 extern __SIZE_TYPE__ x; extern unsigned short x;
17468 return 0;
17470 _ACEOF
17471 if ac_fn_c_try_compile "$LINENO"; then :
17472 libitm_cv_size_t_mangling=t
17473 else
17474 libitm_cv_size_t_mangling=x
17476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_size_t_mangling" >&5
17489 $as_echo "$libitm_cv_size_t_mangling" >&6; }
17490 if test $libitm_cv_size_t_mangling = x; then
17491 as_fn_error $? "Unknown underlying type for size_t" "$LINENO" 5
17494 cat >>confdefs.h <<_ACEOF
17495 #define MANGLE_SIZE_T $libitm_cv_size_t_mangling
17496 _ACEOF
17500 # Get target configury.
17501 . ${srcdir}/configure.tgt
17502 if test -n "$UNSUPPORTED"; then
17503 as_fn_error $? "Configuration ${target} is unsupported." "$LINENO" 5
17506 CFLAGS="$save_CFLAGS $XCFLAGS"
17508 # Check for __sync_val_compare_and_swap, but only after the target has
17509 # had a chance to set XCFLAGS.
17511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __sync_*_compare_and_swap" >&5
17512 $as_echo_n "checking whether the target supports __sync_*_compare_and_swap... " >&6; }
17513 if ${libitm_cv_have_sync_builtins+:} false; then :
17514 $as_echo_n "(cached) " >&6
17515 else
17517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17518 /* end confdefs.h. */
17521 main ()
17523 int foo, bar; bar = __sync_val_compare_and_swap(&foo, 0, 1);
17525 return 0;
17527 _ACEOF
17528 if ac_fn_c_try_link "$LINENO"; then :
17529 libitm_cv_have_sync_builtins=yes
17530 else
17531 libitm_cv_have_sync_builtins=no
17533 rm -f core conftest.err conftest.$ac_objext \
17534 conftest$ac_exeext conftest.$ac_ext
17536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_have_sync_builtins" >&5
17537 $as_echo "$libitm_cv_have_sync_builtins" >&6; }
17538 if test $libitm_cv_have_sync_builtins = yes; then
17540 $as_echo "#define HAVE_SYNC_BUILTINS 1" >>confdefs.h
17544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports 64-bit __sync_*_compare_and_swap" >&5
17545 $as_echo_n "checking whether the target supports 64-bit __sync_*_compare_and_swap... " >&6; }
17546 if ${libitm_cv_have_64bit_sync_builtins+:} false; then :
17547 $as_echo_n "(cached) " >&6
17548 else
17550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17551 /* end confdefs.h. */
17552 #include <stdint.h>
17554 main ()
17556 uint64_t foo, bar;
17557 bar = __sync_val_compare_and_swap(&foo, 0, 1);
17559 return 0;
17561 _ACEOF
17562 if ac_fn_c_try_link "$LINENO"; then :
17563 libitm_cv_have_64bit_sync_builtins=yes
17564 else
17565 libitm_cv_have_64bit_sync_builtins=no
17567 rm -f core conftest.err conftest.$ac_objext \
17568 conftest$ac_exeext conftest.$ac_ext
17570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_have_64bit_sync_builtins" >&5
17571 $as_echo "$libitm_cv_have_64bit_sync_builtins" >&6; }
17572 if test $libitm_cv_have_64bit_sync_builtins = yes; then
17574 $as_echo "#define HAVE_64BIT_SYNC_BUILTINS 1" >>confdefs.h
17578 case "${target_cpu}" in
17579 i[34567]86 | x86_64)
17580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the assembler supports AVX" >&5
17581 $as_echo_n "checking if the assembler supports AVX... " >&6; }
17582 if ${libitm_cv_as_avx+:} false; then :
17583 $as_echo_n "(cached) " >&6
17584 else
17586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17587 /* end confdefs.h. */
17590 main ()
17592 asm("vzeroupper");
17594 return 0;
17596 _ACEOF
17597 if ac_fn_c_try_compile "$LINENO"; then :
17598 libitm_cv_as_avx=yes
17599 else
17600 libitm_cv_as_avx=no
17602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_as_avx" >&5
17606 $as_echo "$libitm_cv_as_avx" >&6; }
17607 if test x$libitm_cv_as_avx = xyes; then
17609 $as_echo "#define HAVE_AS_AVX 1" >>confdefs.h
17613 esac
17615 case "${target_cpu}" in
17616 i[34567]86 | x86_64)
17617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the assembler supports RTM" >&5
17618 $as_echo_n "checking if the assembler supports RTM... " >&6; }
17619 if ${libitm_cv_as_rtm+:} false; then :
17620 $as_echo_n "(cached) " >&6
17621 else
17623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17624 /* end confdefs.h. */
17627 main ()
17629 asm("1: xbegin 1b; xend");
17631 return 0;
17633 _ACEOF
17634 if ac_fn_c_try_compile "$LINENO"; then :
17635 libitm_cv_as_rtm=yes
17636 else
17637 libitm_cv_as_rtm=no
17639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_as_rtm" >&5
17643 $as_echo "$libitm_cv_as_rtm" >&6; }
17644 if test x$libitm_cv_as_rtm = xyes; then
17646 $as_echo "#define HAVE_AS_RTM 1" >>confdefs.h
17650 esac
17652 case "${target_cpu}" in
17653 powerpc*)
17654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the assembler supports HTM" >&5
17655 $as_echo_n "checking if the assembler supports HTM... " >&6; }
17656 if ${libitm_cv_as_htm+:} false; then :
17657 $as_echo_n "(cached) " >&6
17658 else
17660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17661 /* end confdefs.h. */
17664 main ()
17666 asm("tbegin. 0; tend. 0");
17668 return 0;
17670 _ACEOF
17671 if ac_fn_c_try_compile "$LINENO"; then :
17672 libitm_cv_as_htm=yes
17673 else
17674 libitm_cv_as_htm=no
17676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_as_htm" >&5
17680 $as_echo "$libitm_cv_as_htm" >&6; }
17681 if test x$libitm_cv_as_htm = xyes; then
17683 $as_echo "#define HAVE_AS_HTM 1" >>confdefs.h
17687 s390*)
17688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the assembler supports HTM" >&5
17689 $as_echo_n "checking if the assembler supports HTM... " >&6; }
17690 if ${libitm_cv_as_htm+:} false; then :
17691 $as_echo_n "(cached) " >&6
17692 else
17694 save_CFLAGS="$CFLAGS"
17695 CFLAGS="$CFLAGS -march=zEC12"
17696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17697 /* end confdefs.h. */
17700 main ()
17702 asm("tbegin 0,0; tend");
17704 return 0;
17706 _ACEOF
17707 if ac_fn_c_try_compile "$LINENO"; then :
17708 libitm_cv_as_htm=yes
17709 else
17710 libitm_cv_as_htm=no
17712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17713 CFLAGS="$save_CFLAGS"
17715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_as_htm" >&5
17716 $as_echo "$libitm_cv_as_htm" >&6; }
17717 if test x$libitm_cv_as_htm = xyes; then
17719 $as_echo "#define HAVE_AS_HTM 1" >>confdefs.h
17723 esac
17726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether weak refs work like ELF" >&5
17727 $as_echo_n "checking whether weak refs work like ELF... " >&6; }
17728 if ${ac_cv_have_elf_style_weakref+:} false; then :
17729 $as_echo_n "(cached) " >&6
17730 else
17732 weakref_m4_saved_CFLAGS="$CFLAGS"
17733 case "${host}" in
17734 *-apple-darwin*) CFLAGS="$CFLAGS -Wl,-undefined,dynamic_lookup" ;;
17735 *) ;;
17736 esac
17737 if test "$cross_compiling" = yes; then :
17739 case "${host}" in
17740 *-apple-darwin[89]*) ac_cv_have_elf_style_weakref=no ;;
17741 *) ac_cv_have_elf_style_weakref=yes;;
17742 esac
17743 else
17744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17745 /* end confdefs.h. */
17747 extern void fNotToBeFound(void) __attribute__((weak));
17748 int main ()
17750 if (fNotToBeFound)
17751 return 1;
17752 else
17753 return 0;
17756 _ACEOF
17757 if ac_fn_c_try_run "$LINENO"; then :
17758 ac_cv_have_elf_style_weakref=yes
17759 else
17760 ac_cv_have_elf_style_weakref=no
17762 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17763 conftest.$ac_objext conftest.beam conftest.$ac_ext
17765 CFLAGS="$weakref_m4_saved_CFLAGS"
17767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_elf_style_weakref" >&5
17768 $as_echo "$ac_cv_have_elf_style_weakref" >&6; }
17769 if test x"$ac_cv_have_elf_style_weakref" = xyes; then
17771 $as_echo "#define HAVE_ELF_STYLE_WEAKREF 1" >>confdefs.h
17775 # Cleanup and exit.
17776 CFLAGS="$save_CFLAGS"
17777 cat >confcache <<\_ACEOF
17778 # This file is a shell script that caches the results of configure
17779 # tests run on this system so they can be shared between configure
17780 # scripts and configure runs, see configure's option --config-cache.
17781 # It is not useful on other systems. If it contains results you don't
17782 # want to keep, you may remove or edit it.
17784 # config.status only pays attention to the cache file if you give it
17785 # the --recheck option to rerun configure.
17787 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17788 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17789 # following values.
17791 _ACEOF
17793 # The following way of writing the cache mishandles newlines in values,
17794 # but we know of no workaround that is simple, portable, and efficient.
17795 # So, we kill variables containing newlines.
17796 # Ultrix sh set writes to stderr and can't be redirected directly,
17797 # and sets the high bit in the cache file unless we assign to the vars.
17799 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17800 eval ac_val=\$$ac_var
17801 case $ac_val in #(
17802 *${as_nl}*)
17803 case $ac_var in #(
17804 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17805 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17806 esac
17807 case $ac_var in #(
17808 _ | IFS | as_nl) ;; #(
17809 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17810 *) { eval $ac_var=; unset $ac_var;} ;;
17811 esac ;;
17812 esac
17813 done
17815 (set) 2>&1 |
17816 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17817 *${as_nl}ac_space=\ *)
17818 # `set' does not quote correctly, so add quotes: double-quote
17819 # substitution turns \\\\ into \\, and sed turns \\ into \.
17820 sed -n \
17821 "s/'/'\\\\''/g;
17822 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17823 ;; #(
17825 # `set' quotes correctly as required by POSIX, so do not add quotes.
17826 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17828 esac |
17829 sort
17831 sed '
17832 /^ac_cv_env_/b end
17833 t clear
17834 :clear
17835 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17836 t end
17837 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17838 :end' >>confcache
17839 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17840 if test -w "$cache_file"; then
17841 if test "x$cache_file" != "x/dev/null"; then
17842 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17843 $as_echo "$as_me: updating cache $cache_file" >&6;}
17844 if test ! -f "$cache_file" || test -h "$cache_file"; then
17845 cat confcache >"$cache_file"
17846 else
17847 case $cache_file in #(
17848 */* | ?:*)
17849 mv -f confcache "$cache_file"$$ &&
17850 mv -f "$cache_file"$$ "$cache_file" ;; #(
17852 mv -f confcache "$cache_file" ;;
17853 esac
17856 else
17857 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17858 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17861 rm -f confcache
17863 # Add -Wall -Werror if we are using GCC.
17864 if test "x$GCC" = "xyes"; then
17865 XCFLAGS="$XCFLAGS -Wall -Werror"
17868 XCFLAGS="$XCFLAGS $XPCFLAGS"
17870 # Add CET specific flags if CET is enabled
17871 # Check whether --enable-cet was given.
17872 if test "${enable_cet+set}" = set; then :
17873 enableval=$enable_cet;
17874 case "$enableval" in
17875 yes|no|auto) ;;
17876 *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
17877 esac
17879 else
17880 enable_cet=auto
17884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
17885 $as_echo_n "checking for CET support... " >&6; }
17887 # NB: Avoid nested save_CFLAGS and save_LDFLAGS.
17888 case "$host" in
17889 i[34567]86-*-linux* | x86_64-*-linux*)
17890 case "$enable_cet" in
17891 auto)
17892 # Check if target supports multi-byte NOPs
17893 # and if assembler supports CET insn.
17894 cet_save_CFLAGS="$CFLAGS"
17895 CFLAGS="$CFLAGS -fcf-protection"
17896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17897 /* end confdefs.h. */
17900 main ()
17903 #if !defined(__SSE2__)
17904 #error target does not support multi-byte NOPs
17905 #else
17906 asm ("setssbsy");
17907 #endif
17910 return 0;
17912 _ACEOF
17913 if ac_fn_c_try_compile "$LINENO"; then :
17914 enable_cet=yes
17915 else
17916 enable_cet=no
17918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17919 CFLAGS="$cet_save_CFLAGS"
17921 yes)
17922 # Check if assembler supports CET.
17923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17924 /* end confdefs.h. */
17927 main ()
17929 asm ("setssbsy");
17931 return 0;
17933 _ACEOF
17934 if ac_fn_c_try_compile "$LINENO"; then :
17936 else
17937 as_fn_error $? "assembler with CET support is required for --enable-cet" "$LINENO" 5
17939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17941 esac
17944 enable_cet=no
17946 esac
17947 if test x$enable_cet = xyes; then
17948 CET_FLAGS="-fcf-protection -mshstk"
17949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17950 $as_echo "yes" >&6; }
17951 else
17952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17953 $as_echo "no" >&6; }
17956 XCFLAGS="$XCFLAGS $CET_FLAGS"
17962 if test ${multilib} = yes; then
17963 multilib_arg="--enable-multilib"
17964 else
17965 multilib_arg=
17968 # Set up the set of libraries that we need to link against for libitm.
17969 # Note that the GTM_SELF_SPECS in gcc.c will force -pthread for -fgnu-tm,
17970 # which will force linkage against -lpthread (or equivalent for the system).
17971 # That's not 100% ideal, but about the best we can do easily.
17972 if test $enable_shared = yes; then
17973 link_itm="-litm %{static: $LIBS}"
17974 else
17975 link_itm="-litm $LIBS"
17979 if test "$ARCH" = arm; then
17980 ARCH_ARM_TRUE=
17981 ARCH_ARM_FALSE='#'
17982 else
17983 ARCH_ARM_TRUE='#'
17984 ARCH_ARM_FALSE=
17987 if test "$ARCH" = x86; then
17988 ARCH_X86_TRUE=
17989 ARCH_X86_FALSE='#'
17990 else
17991 ARCH_X86_TRUE='#'
17992 ARCH_X86_FALSE=
17995 if test "$libitm_cv_as_avx" = yes; then
17996 ARCH_X86_AVX_TRUE=
17997 ARCH_X86_AVX_FALSE='#'
17998 else
17999 ARCH_X86_AVX_TRUE='#'
18000 ARCH_X86_AVX_FALSE=
18003 if test $enable_linux_futex = yes; then
18004 ARCH_FUTEX_TRUE=
18005 ARCH_FUTEX_FALSE='#'
18006 else
18007 ARCH_FUTEX_TRUE='#'
18008 ARCH_FUTEX_FALSE=
18012 # Determine what GCC version number to use in filesystem paths.
18014 get_gcc_base_ver="cat"
18016 # Check whether --with-gcc-major-version-only was given.
18017 if test "${with_gcc_major_version_only+set}" = set; then :
18018 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
18019 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
18027 ac_config_files="$ac_config_files Makefile testsuite/Makefile libitm.spec"
18029 cat >confcache <<\_ACEOF
18030 # This file is a shell script that caches the results of configure
18031 # tests run on this system so they can be shared between configure
18032 # scripts and configure runs, see configure's option --config-cache.
18033 # It is not useful on other systems. If it contains results you don't
18034 # want to keep, you may remove or edit it.
18036 # config.status only pays attention to the cache file if you give it
18037 # the --recheck option to rerun configure.
18039 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18040 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18041 # following values.
18043 _ACEOF
18045 # The following way of writing the cache mishandles newlines in values,
18046 # but we know of no workaround that is simple, portable, and efficient.
18047 # So, we kill variables containing newlines.
18048 # Ultrix sh set writes to stderr and can't be redirected directly,
18049 # and sets the high bit in the cache file unless we assign to the vars.
18051 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18052 eval ac_val=\$$ac_var
18053 case $ac_val in #(
18054 *${as_nl}*)
18055 case $ac_var in #(
18056 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18057 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18058 esac
18059 case $ac_var in #(
18060 _ | IFS | as_nl) ;; #(
18061 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18062 *) { eval $ac_var=; unset $ac_var;} ;;
18063 esac ;;
18064 esac
18065 done
18067 (set) 2>&1 |
18068 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18069 *${as_nl}ac_space=\ *)
18070 # `set' does not quote correctly, so add quotes: double-quote
18071 # substitution turns \\\\ into \\, and sed turns \\ into \.
18072 sed -n \
18073 "s/'/'\\\\''/g;
18074 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18075 ;; #(
18077 # `set' quotes correctly as required by POSIX, so do not add quotes.
18078 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18080 esac |
18081 sort
18083 sed '
18084 /^ac_cv_env_/b end
18085 t clear
18086 :clear
18087 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18088 t end
18089 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18090 :end' >>confcache
18091 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18092 if test -w "$cache_file"; then
18093 if test "x$cache_file" != "x/dev/null"; then
18094 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18095 $as_echo "$as_me: updating cache $cache_file" >&6;}
18096 if test ! -f "$cache_file" || test -h "$cache_file"; then
18097 cat confcache >"$cache_file"
18098 else
18099 case $cache_file in #(
18100 */* | ?:*)
18101 mv -f confcache "$cache_file"$$ &&
18102 mv -f "$cache_file"$$ "$cache_file" ;; #(
18104 mv -f confcache "$cache_file" ;;
18105 esac
18108 else
18109 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18110 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18113 rm -f confcache
18115 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18116 # Let make expand exec_prefix.
18117 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18119 DEFS=-DHAVE_CONFIG_H
18121 ac_libobjs=
18122 ac_ltlibobjs=
18124 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18125 # 1. Remove the extension, and $U if already installed.
18126 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18127 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18128 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18129 # will be set to the directory where LIBOBJS objects are built.
18130 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18131 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18132 done
18133 LIBOBJS=$ac_libobjs
18135 LTLIBOBJS=$ac_ltlibobjs
18138 if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then
18139 as_fn_error $? "conditional \"GENINSRC\" was never defined.
18140 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
18143 $as_echo_n "checking that generated files are newer than configure... " >&6; }
18144 if test -n "$am_sleep_pid"; then
18145 # Hide warnings about reused PIDs.
18146 wait $am_sleep_pid 2>/dev/null
18148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
18149 $as_echo "done" >&6; }
18150 if test -n "$EXEEXT"; then
18151 am__EXEEXT_TRUE=
18152 am__EXEEXT_FALSE='#'
18153 else
18154 am__EXEEXT_TRUE='#'
18155 am__EXEEXT_FALSE=
18158 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18159 as_fn_error $? "conditional \"AMDEP\" was never defined.
18160 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18162 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18163 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18164 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18166 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
18167 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
18168 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18170 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
18171 as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
18172 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18174 if test -z "${BUILD_INFO_TRUE}" && test -z "${BUILD_INFO_FALSE}"; then
18175 as_fn_error $? "conditional \"BUILD_INFO\" was never defined.
18176 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18178 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
18179 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
18180 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18183 if test -z "${HAVE_HWCAP_TRUE}" && test -z "${HAVE_HWCAP_FALSE}"; then
18184 as_fn_error $? "conditional \"HAVE_HWCAP\" was never defined.
18185 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18187 if test -z "${LIBITM_BUILD_VERSIONED_SHLIB_TRUE}" && test -z "${LIBITM_BUILD_VERSIONED_SHLIB_FALSE}"; then
18188 as_fn_error $? "conditional \"LIBITM_BUILD_VERSIONED_SHLIB\" was never defined.
18189 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18191 if test -z "${LIBITM_BUILD_VERSIONED_SHLIB_GNU_TRUE}" && test -z "${LIBITM_BUILD_VERSIONED_SHLIB_GNU_FALSE}"; then
18192 as_fn_error $? "conditional \"LIBITM_BUILD_VERSIONED_SHLIB_GNU\" was never defined.
18193 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18195 if test -z "${LIBITM_BUILD_VERSIONED_SHLIB_SUN_TRUE}" && test -z "${LIBITM_BUILD_VERSIONED_SHLIB_SUN_FALSE}"; then
18196 as_fn_error $? "conditional \"LIBITM_BUILD_VERSIONED_SHLIB_SUN\" was never defined.
18197 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18199 if test -z "${ARCH_ARM_TRUE}" && test -z "${ARCH_ARM_FALSE}"; then
18200 as_fn_error $? "conditional \"ARCH_ARM\" was never defined.
18201 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18203 if test -z "${ARCH_X86_TRUE}" && test -z "${ARCH_X86_FALSE}"; then
18204 as_fn_error $? "conditional \"ARCH_X86\" was never defined.
18205 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18207 if test -z "${ARCH_X86_AVX_TRUE}" && test -z "${ARCH_X86_AVX_FALSE}"; then
18208 as_fn_error $? "conditional \"ARCH_X86_AVX\" was never defined.
18209 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18211 if test -z "${ARCH_FUTEX_TRUE}" && test -z "${ARCH_FUTEX_FALSE}"; then
18212 as_fn_error $? "conditional \"ARCH_FUTEX\" was never defined.
18213 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18216 : "${CONFIG_STATUS=./config.status}"
18217 ac_write_fail=0
18218 ac_clean_files_save=$ac_clean_files
18219 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18220 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18221 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18222 as_write_fail=0
18223 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18224 #! $SHELL
18225 # Generated by $as_me.
18226 # Run this file to recreate the current configuration.
18227 # Compiler output produced by configure, useful for debugging
18228 # configure, is in config.log if it exists.
18230 debug=false
18231 ac_cs_recheck=false
18232 ac_cs_silent=false
18234 SHELL=\${CONFIG_SHELL-$SHELL}
18235 export SHELL
18236 _ASEOF
18237 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18238 ## -------------------- ##
18239 ## M4sh Initialization. ##
18240 ## -------------------- ##
18242 # Be more Bourne compatible
18243 DUALCASE=1; export DUALCASE # for MKS sh
18244 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18245 emulate sh
18246 NULLCMD=:
18247 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18248 # is contrary to our usage. Disable this feature.
18249 alias -g '${1+"$@"}'='"$@"'
18250 setopt NO_GLOB_SUBST
18251 else
18252 case `(set -o) 2>/dev/null` in #(
18253 *posix*) :
18254 set -o posix ;; #(
18255 *) :
18257 esac
18261 as_nl='
18263 export as_nl
18264 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18265 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18266 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18267 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18268 # Prefer a ksh shell builtin over an external printf program on Solaris,
18269 # but without wasting forks for bash or zsh.
18270 if test -z "$BASH_VERSION$ZSH_VERSION" \
18271 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18272 as_echo='print -r --'
18273 as_echo_n='print -rn --'
18274 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18275 as_echo='printf %s\n'
18276 as_echo_n='printf %s'
18277 else
18278 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18279 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18280 as_echo_n='/usr/ucb/echo -n'
18281 else
18282 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18283 as_echo_n_body='eval
18284 arg=$1;
18285 case $arg in #(
18286 *"$as_nl"*)
18287 expr "X$arg" : "X\\(.*\\)$as_nl";
18288 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18289 esac;
18290 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18292 export as_echo_n_body
18293 as_echo_n='sh -c $as_echo_n_body as_echo'
18295 export as_echo_body
18296 as_echo='sh -c $as_echo_body as_echo'
18299 # The user is always right.
18300 if test "${PATH_SEPARATOR+set}" != set; then
18301 PATH_SEPARATOR=:
18302 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18303 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18304 PATH_SEPARATOR=';'
18309 # IFS
18310 # We need space, tab and new line, in precisely that order. Quoting is
18311 # there to prevent editors from complaining about space-tab.
18312 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18313 # splitting by setting IFS to empty value.)
18314 IFS=" "" $as_nl"
18316 # Find who we are. Look in the path if we contain no directory separator.
18317 as_myself=
18318 case $0 in #((
18319 *[\\/]* ) as_myself=$0 ;;
18320 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18321 for as_dir in $PATH
18323 IFS=$as_save_IFS
18324 test -z "$as_dir" && as_dir=.
18325 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18326 done
18327 IFS=$as_save_IFS
18330 esac
18331 # We did not find ourselves, most probably we were run as `sh COMMAND'
18332 # in which case we are not to be found in the path.
18333 if test "x$as_myself" = x; then
18334 as_myself=$0
18336 if test ! -f "$as_myself"; then
18337 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18338 exit 1
18341 # Unset variables that we do not need and which cause bugs (e.g. in
18342 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18343 # suppresses any "Segmentation fault" message there. '((' could
18344 # trigger a bug in pdksh 5.2.14.
18345 for as_var in BASH_ENV ENV MAIL MAILPATH
18346 do eval test x\${$as_var+set} = xset \
18347 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18348 done
18349 PS1='$ '
18350 PS2='> '
18351 PS4='+ '
18353 # NLS nuisances.
18354 LC_ALL=C
18355 export LC_ALL
18356 LANGUAGE=C
18357 export LANGUAGE
18359 # CDPATH.
18360 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18363 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18364 # ----------------------------------------
18365 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18366 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18367 # script with STATUS, using 1 if that was 0.
18368 as_fn_error ()
18370 as_status=$1; test $as_status -eq 0 && as_status=1
18371 if test "$4"; then
18372 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18373 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18375 $as_echo "$as_me: error: $2" >&2
18376 as_fn_exit $as_status
18377 } # as_fn_error
18380 # as_fn_set_status STATUS
18381 # -----------------------
18382 # Set $? to STATUS, without forking.
18383 as_fn_set_status ()
18385 return $1
18386 } # as_fn_set_status
18388 # as_fn_exit STATUS
18389 # -----------------
18390 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18391 as_fn_exit ()
18393 set +e
18394 as_fn_set_status $1
18395 exit $1
18396 } # as_fn_exit
18398 # as_fn_unset VAR
18399 # ---------------
18400 # Portably unset VAR.
18401 as_fn_unset ()
18403 { eval $1=; unset $1;}
18405 as_unset=as_fn_unset
18406 # as_fn_append VAR VALUE
18407 # ----------------------
18408 # Append the text in VALUE to the end of the definition contained in VAR. Take
18409 # advantage of any shell optimizations that allow amortized linear growth over
18410 # repeated appends, instead of the typical quadratic growth present in naive
18411 # implementations.
18412 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18413 eval 'as_fn_append ()
18415 eval $1+=\$2
18417 else
18418 as_fn_append ()
18420 eval $1=\$$1\$2
18422 fi # as_fn_append
18424 # as_fn_arith ARG...
18425 # ------------------
18426 # Perform arithmetic evaluation on the ARGs, and store the result in the
18427 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18428 # must be portable across $(()) and expr.
18429 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18430 eval 'as_fn_arith ()
18432 as_val=$(( $* ))
18434 else
18435 as_fn_arith ()
18437 as_val=`expr "$@" || test $? -eq 1`
18439 fi # as_fn_arith
18442 if expr a : '\(a\)' >/dev/null 2>&1 &&
18443 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18444 as_expr=expr
18445 else
18446 as_expr=false
18449 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18450 as_basename=basename
18451 else
18452 as_basename=false
18455 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18456 as_dirname=dirname
18457 else
18458 as_dirname=false
18461 as_me=`$as_basename -- "$0" ||
18462 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18463 X"$0" : 'X\(//\)$' \| \
18464 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18465 $as_echo X/"$0" |
18466 sed '/^.*\/\([^/][^/]*\)\/*$/{
18467 s//\1/
18470 /^X\/\(\/\/\)$/{
18471 s//\1/
18474 /^X\/\(\/\).*/{
18475 s//\1/
18478 s/.*/./; q'`
18480 # Avoid depending upon Character Ranges.
18481 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18482 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18483 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18484 as_cr_digits='0123456789'
18485 as_cr_alnum=$as_cr_Letters$as_cr_digits
18487 ECHO_C= ECHO_N= ECHO_T=
18488 case `echo -n x` in #(((((
18489 -n*)
18490 case `echo 'xy\c'` in
18491 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18492 xy) ECHO_C='\c';;
18493 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
18494 ECHO_T=' ';;
18495 esac;;
18497 ECHO_N='-n';;
18498 esac
18500 rm -f conf$$ conf$$.exe conf$$.file
18501 if test -d conf$$.dir; then
18502 rm -f conf$$.dir/conf$$.file
18503 else
18504 rm -f conf$$.dir
18505 mkdir conf$$.dir 2>/dev/null
18507 if (echo >conf$$.file) 2>/dev/null; then
18508 if ln -s conf$$.file conf$$ 2>/dev/null; then
18509 as_ln_s='ln -s'
18510 # ... but there are two gotchas:
18511 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18512 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18513 # In both cases, we have to default to `cp -pR'.
18514 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18515 as_ln_s='cp -pR'
18516 elif ln conf$$.file conf$$ 2>/dev/null; then
18517 as_ln_s=ln
18518 else
18519 as_ln_s='cp -pR'
18521 else
18522 as_ln_s='cp -pR'
18524 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18525 rmdir conf$$.dir 2>/dev/null
18528 # as_fn_mkdir_p
18529 # -------------
18530 # Create "$as_dir" as a directory, including parents if necessary.
18531 as_fn_mkdir_p ()
18534 case $as_dir in #(
18535 -*) as_dir=./$as_dir;;
18536 esac
18537 test -d "$as_dir" || eval $as_mkdir_p || {
18538 as_dirs=
18539 while :; do
18540 case $as_dir in #(
18541 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18542 *) as_qdir=$as_dir;;
18543 esac
18544 as_dirs="'$as_qdir' $as_dirs"
18545 as_dir=`$as_dirname -- "$as_dir" ||
18546 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18547 X"$as_dir" : 'X\(//\)[^/]' \| \
18548 X"$as_dir" : 'X\(//\)$' \| \
18549 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18550 $as_echo X"$as_dir" |
18551 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18552 s//\1/
18555 /^X\(\/\/\)[^/].*/{
18556 s//\1/
18559 /^X\(\/\/\)$/{
18560 s//\1/
18563 /^X\(\/\).*/{
18564 s//\1/
18567 s/.*/./; q'`
18568 test -d "$as_dir" && break
18569 done
18570 test -z "$as_dirs" || eval "mkdir $as_dirs"
18571 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18574 } # as_fn_mkdir_p
18575 if mkdir -p . 2>/dev/null; then
18576 as_mkdir_p='mkdir -p "$as_dir"'
18577 else
18578 test -d ./-p && rmdir ./-p
18579 as_mkdir_p=false
18583 # as_fn_executable_p FILE
18584 # -----------------------
18585 # Test if FILE is an executable regular file.
18586 as_fn_executable_p ()
18588 test -f "$1" && test -x "$1"
18589 } # as_fn_executable_p
18590 as_test_x='test -x'
18591 as_executable_p=as_fn_executable_p
18593 # Sed expression to map a string onto a valid CPP name.
18594 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18596 # Sed expression to map a string onto a valid variable name.
18597 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18600 exec 6>&1
18601 ## ----------------------------------- ##
18602 ## Main body of $CONFIG_STATUS script. ##
18603 ## ----------------------------------- ##
18604 _ASEOF
18605 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18607 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18608 # Save the log message, to keep $0 and so on meaningful, and to
18609 # report actual input values of CONFIG_FILES etc. instead of their
18610 # values after options handling.
18611 ac_log="
18612 This file was extended by GNU TM Runtime Library $as_me 1.0, which was
18613 generated by GNU Autoconf 2.69. Invocation command line was
18615 CONFIG_FILES = $CONFIG_FILES
18616 CONFIG_HEADERS = $CONFIG_HEADERS
18617 CONFIG_LINKS = $CONFIG_LINKS
18618 CONFIG_COMMANDS = $CONFIG_COMMANDS
18619 $ $0 $@
18621 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18624 _ACEOF
18626 case $ac_config_files in *"
18627 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18628 esac
18630 case $ac_config_headers in *"
18631 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18632 esac
18635 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18636 # Files that config.status was made for.
18637 config_files="$ac_config_files"
18638 config_headers="$ac_config_headers"
18639 config_commands="$ac_config_commands"
18641 _ACEOF
18643 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18644 ac_cs_usage="\
18645 \`$as_me' instantiates files and other configuration actions
18646 from templates according to the current configuration. Unless the files
18647 and actions are specified as TAGs, all are instantiated by default.
18649 Usage: $0 [OPTION]... [TAG]...
18651 -h, --help print this help, then exit
18652 -V, --version print version number and configuration settings, then exit
18653 --config print configuration, then exit
18654 -q, --quiet, --silent
18655 do not print progress messages
18656 -d, --debug don't remove temporary files
18657 --recheck update $as_me by reconfiguring in the same conditions
18658 --file=FILE[:TEMPLATE]
18659 instantiate the configuration file FILE
18660 --header=FILE[:TEMPLATE]
18661 instantiate the configuration header FILE
18663 Configuration files:
18664 $config_files
18666 Configuration headers:
18667 $config_headers
18669 Configuration commands:
18670 $config_commands
18672 Report bugs to the package provider.
18673 GNU TM Runtime Library home page: <http://www.gnu.org/software/libitm/>.
18674 General help using GNU software: <http://www.gnu.org/gethelp/>."
18676 _ACEOF
18677 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18678 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18679 ac_cs_version="\\
18680 GNU TM Runtime Library config.status 1.0
18681 configured by $0, generated by GNU Autoconf 2.69,
18682 with options \\"\$ac_cs_config\\"
18684 Copyright (C) 2012 Free Software Foundation, Inc.
18685 This config.status script is free software; the Free Software Foundation
18686 gives unlimited permission to copy, distribute and modify it."
18688 ac_pwd='$ac_pwd'
18689 srcdir='$srcdir'
18690 INSTALL='$INSTALL'
18691 MKDIR_P='$MKDIR_P'
18692 AWK='$AWK'
18693 test -n "\$AWK" || AWK=awk
18694 _ACEOF
18696 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18697 # The default lists apply if the user does not specify any file.
18698 ac_need_defaults=:
18699 while test $# != 0
18701 case $1 in
18702 --*=?*)
18703 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18704 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18705 ac_shift=:
18707 --*=)
18708 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18709 ac_optarg=
18710 ac_shift=:
18713 ac_option=$1
18714 ac_optarg=$2
18715 ac_shift=shift
18717 esac
18719 case $ac_option in
18720 # Handling of the options.
18721 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18722 ac_cs_recheck=: ;;
18723 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18724 $as_echo "$ac_cs_version"; exit ;;
18725 --config | --confi | --conf | --con | --co | --c )
18726 $as_echo "$ac_cs_config"; exit ;;
18727 --debug | --debu | --deb | --de | --d | -d )
18728 debug=: ;;
18729 --file | --fil | --fi | --f )
18730 $ac_shift
18731 case $ac_optarg in
18732 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18733 '') as_fn_error $? "missing file argument" ;;
18734 esac
18735 as_fn_append CONFIG_FILES " '$ac_optarg'"
18736 ac_need_defaults=false;;
18737 --header | --heade | --head | --hea )
18738 $ac_shift
18739 case $ac_optarg in
18740 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18741 esac
18742 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18743 ac_need_defaults=false;;
18744 --he | --h)
18745 # Conflict between --help and --header
18746 as_fn_error $? "ambiguous option: \`$1'
18747 Try \`$0 --help' for more information.";;
18748 --help | --hel | -h )
18749 $as_echo "$ac_cs_usage"; exit ;;
18750 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18751 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18752 ac_cs_silent=: ;;
18754 # This is an error.
18755 -*) as_fn_error $? "unrecognized option: \`$1'
18756 Try \`$0 --help' for more information." ;;
18758 *) as_fn_append ac_config_targets " $1"
18759 ac_need_defaults=false ;;
18761 esac
18762 shift
18763 done
18765 ac_configure_extra_args=
18767 if $ac_cs_silent; then
18768 exec 6>/dev/null
18769 ac_configure_extra_args="$ac_configure_extra_args --silent"
18772 _ACEOF
18773 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18774 if \$ac_cs_recheck; then
18775 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18776 shift
18777 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18778 CONFIG_SHELL='$SHELL'
18779 export CONFIG_SHELL
18780 exec "\$@"
18783 _ACEOF
18784 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18785 exec 5>>config.log
18787 echo
18788 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18789 ## Running $as_me. ##
18790 _ASBOX
18791 $as_echo "$ac_log"
18792 } >&5
18794 _ACEOF
18795 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18797 # INIT-COMMANDS
18800 srcdir="$srcdir"
18801 host="$host"
18802 target="$target"
18803 with_multisubdir="$with_multisubdir"
18804 with_multisrctop="$with_multisrctop"
18805 with_target_subdir="$with_target_subdir"
18806 ac_configure_args="${multilib_arg} ${ac_configure_args}"
18807 multi_basedir="$multi_basedir"
18808 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
18809 CC="$CC"
18810 CXX="$CXX"
18811 GFORTRAN="$GFORTRAN"
18812 GDC="$GDC"
18813 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18816 # The HP-UX ksh and POSIX shell print the target directory to stdout
18817 # if CDPATH is set.
18818 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18820 sed_quote_subst='$sed_quote_subst'
18821 double_quote_subst='$double_quote_subst'
18822 delay_variable_subst='$delay_variable_subst'
18823 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18824 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18825 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18826 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18827 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18828 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18829 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18830 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18831 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18832 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18833 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18834 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18835 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18836 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18837 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18838 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18839 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18840 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18841 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18842 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18843 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18844 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18845 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18846 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18847 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18848 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18849 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18850 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18851 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18852 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18853 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18854 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18855 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18856 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18857 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18858 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18859 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18860 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18861 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18862 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18863 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18864 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18865 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18866 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18867 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18868 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18869 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18870 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18871 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"`'
18872 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18873 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18874 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18875 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18876 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18877 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18878 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18879 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18880 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18881 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18882 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18883 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18884 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18885 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18886 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18887 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18888 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18889 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18890 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18891 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18892 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18893 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18894 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18895 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18896 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18897 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18898 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18899 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18900 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18901 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18902 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18903 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
18904 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18905 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18906 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18907 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18908 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18909 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18910 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18911 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18912 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
18913 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18914 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18915 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18916 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18917 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18918 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18919 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18920 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18921 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18922 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18923 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18924 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18925 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18926 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18927 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18928 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18929 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18930 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18931 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18932 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18933 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18934 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18935 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18936 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
18937 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18938 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18939 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18940 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18941 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18942 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18943 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
18944 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
18945 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
18946 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
18947 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
18948 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
18949 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
18950 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
18951 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18952 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18953 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
18954 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
18955 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
18956 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
18957 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
18958 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
18959 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
18960 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
18961 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
18962 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18963 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18964 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
18965 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18966 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18967 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18968 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18969 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18970 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18971 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
18972 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18973 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18974 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18975 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
18976 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
18977 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
18978 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
18979 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
18980 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
18981 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
18982 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
18983 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
18984 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
18985 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
18986 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18987 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18988 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18989 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18990 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
18991 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
18992 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
18993 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18994 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18995 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
18996 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
18997 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
18999 LTCC='$LTCC'
19000 LTCFLAGS='$LTCFLAGS'
19001 compiler='$compiler_DEFAULT'
19003 # A function that is used when there is no print builtin or printf.
19004 func_fallback_echo ()
19006 eval 'cat <<_LTECHO_EOF
19008 _LTECHO_EOF'
19011 # Quote evaled strings.
19012 for var in SHELL \
19013 ECHO \
19014 SED \
19015 GREP \
19016 EGREP \
19017 FGREP \
19018 LD \
19019 NM \
19020 LN_S \
19021 lt_SP2NL \
19022 lt_NL2SP \
19023 reload_flag \
19024 OBJDUMP \
19025 deplibs_check_method \
19026 file_magic_cmd \
19027 AR \
19028 AR_FLAGS \
19029 STRIP \
19030 RANLIB \
19031 CC \
19032 CFLAGS \
19033 compiler \
19034 lt_cv_sys_global_symbol_pipe \
19035 lt_cv_sys_global_symbol_to_cdecl \
19036 lt_cv_sys_global_symbol_to_c_name_address \
19037 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19038 lt_prog_compiler_no_builtin_flag \
19039 lt_prog_compiler_wl \
19040 lt_prog_compiler_pic \
19041 lt_prog_compiler_static \
19042 lt_cv_prog_compiler_c_o \
19043 need_locks \
19044 DSYMUTIL \
19045 NMEDIT \
19046 LIPO \
19047 OTOOL \
19048 OTOOL64 \
19049 shrext_cmds \
19050 export_dynamic_flag_spec \
19051 whole_archive_flag_spec \
19052 compiler_needs_object \
19053 with_gnu_ld \
19054 allow_undefined_flag \
19055 no_undefined_flag \
19056 hardcode_libdir_flag_spec \
19057 hardcode_libdir_flag_spec_ld \
19058 hardcode_libdir_separator \
19059 fix_srcfile_path \
19060 exclude_expsyms \
19061 include_expsyms \
19062 file_list_spec \
19063 variables_saved_for_relink \
19064 libname_spec \
19065 library_names_spec \
19066 soname_spec \
19067 install_override_mode \
19068 finish_eval \
19069 old_striplib \
19070 striplib \
19071 compiler_lib_search_dirs \
19072 predep_objects \
19073 postdep_objects \
19074 predeps \
19075 postdeps \
19076 compiler_lib_search_path \
19077 LD_CXX \
19078 reload_flag_CXX \
19079 compiler_CXX \
19080 lt_prog_compiler_no_builtin_flag_CXX \
19081 lt_prog_compiler_wl_CXX \
19082 lt_prog_compiler_pic_CXX \
19083 lt_prog_compiler_static_CXX \
19084 lt_cv_prog_compiler_c_o_CXX \
19085 export_dynamic_flag_spec_CXX \
19086 whole_archive_flag_spec_CXX \
19087 compiler_needs_object_CXX \
19088 with_gnu_ld_CXX \
19089 allow_undefined_flag_CXX \
19090 no_undefined_flag_CXX \
19091 hardcode_libdir_flag_spec_CXX \
19092 hardcode_libdir_flag_spec_ld_CXX \
19093 hardcode_libdir_separator_CXX \
19094 fix_srcfile_path_CXX \
19095 exclude_expsyms_CXX \
19096 include_expsyms_CXX \
19097 file_list_spec_CXX \
19098 compiler_lib_search_dirs_CXX \
19099 predep_objects_CXX \
19100 postdep_objects_CXX \
19101 predeps_CXX \
19102 postdeps_CXX \
19103 compiler_lib_search_path_CXX; do
19104 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19105 *[\\\\\\\`\\"\\\$]*)
19106 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
19109 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19111 esac
19112 done
19114 # Double-quote double-evaled strings.
19115 for var in reload_cmds \
19116 old_postinstall_cmds \
19117 old_postuninstall_cmds \
19118 old_archive_cmds \
19119 extract_expsyms_cmds \
19120 old_archive_from_new_cmds \
19121 old_archive_from_expsyms_cmds \
19122 archive_cmds \
19123 archive_expsym_cmds \
19124 module_cmds \
19125 module_expsym_cmds \
19126 export_symbols_cmds \
19127 prelink_cmds \
19128 postinstall_cmds \
19129 postuninstall_cmds \
19130 finish_cmds \
19131 sys_lib_search_path_spec \
19132 sys_lib_dlsearch_path_spec \
19133 reload_cmds_CXX \
19134 old_archive_cmds_CXX \
19135 old_archive_from_new_cmds_CXX \
19136 old_archive_from_expsyms_cmds_CXX \
19137 archive_cmds_CXX \
19138 archive_expsym_cmds_CXX \
19139 module_cmds_CXX \
19140 module_expsym_cmds_CXX \
19141 export_symbols_cmds_CXX \
19142 prelink_cmds_CXX; do
19143 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19144 *[\\\\\\\`\\"\\\$]*)
19145 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
19148 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19150 esac
19151 done
19153 ac_aux_dir='$ac_aux_dir'
19154 xsi_shell='$xsi_shell'
19155 lt_shell_append='$lt_shell_append'
19157 # See if we are running on zsh, and set the options which allow our
19158 # commands through without removal of \ escapes INIT.
19159 if test -n "\${ZSH_VERSION+set}" ; then
19160 setopt NO_GLOB_SUBST
19164 PACKAGE='$PACKAGE'
19165 VERSION='$VERSION'
19166 TIMESTAMP='$TIMESTAMP'
19167 RM='$RM'
19168 ofile='$ofile'
19175 GCC="$GCC"
19176 CC="$CC"
19177 acx_cv_header_stdint="$acx_cv_header_stdint"
19178 acx_cv_type_int8_t="$acx_cv_type_int8_t"
19179 acx_cv_type_int16_t="$acx_cv_type_int16_t"
19180 acx_cv_type_int32_t="$acx_cv_type_int32_t"
19181 acx_cv_type_int64_t="$acx_cv_type_int64_t"
19182 acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
19183 ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
19184 ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
19185 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
19186 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
19187 ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
19188 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
19189 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
19190 ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
19193 _ACEOF
19195 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19197 # Handling of arguments.
19198 for ac_config_target in $ac_config_targets
19200 case $ac_config_target in
19201 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19202 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
19203 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19204 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19205 "gstdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
19206 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19207 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
19208 "libitm.spec") CONFIG_FILES="$CONFIG_FILES libitm.spec" ;;
19210 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19211 esac
19212 done
19215 # If the user did not use the arguments to specify the items to instantiate,
19216 # then the envvar interface is used. Set only those that are not.
19217 # We use the long form for the default assignment because of an extremely
19218 # bizarre bug on SunOS 4.1.3.
19219 if $ac_need_defaults; then
19220 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19221 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19222 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19225 # Have a temporary directory for convenience. Make it in the build tree
19226 # simply because there is no reason against having it here, and in addition,
19227 # creating and moving files from /tmp can sometimes cause problems.
19228 # Hook for its removal unless debugging.
19229 # Note that there is a small window in which the directory will not be cleaned:
19230 # after its creation but before its name has been assigned to `$tmp'.
19231 $debug ||
19233 tmp= ac_tmp=
19234 trap 'exit_status=$?
19235 : "${ac_tmp:=$tmp}"
19236 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19238 trap 'as_fn_exit 1' 1 2 13 15
19240 # Create a (secure) tmp directory for tmp files.
19243 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19244 test -d "$tmp"
19245 } ||
19247 tmp=./conf$$-$RANDOM
19248 (umask 077 && mkdir "$tmp")
19249 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19250 ac_tmp=$tmp
19252 # Set up the scripts for CONFIG_FILES section.
19253 # No need to generate them if there are no CONFIG_FILES.
19254 # This happens for instance with `./config.status config.h'.
19255 if test -n "$CONFIG_FILES"; then
19258 ac_cr=`echo X | tr X '\015'`
19259 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19260 # But we know of no other shell where ac_cr would be empty at this
19261 # point, so we can use a bashism as a fallback.
19262 if test "x$ac_cr" = x; then
19263 eval ac_cr=\$\'\\r\'
19265 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19266 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19267 ac_cs_awk_cr='\\r'
19268 else
19269 ac_cs_awk_cr=$ac_cr
19272 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19273 _ACEOF
19277 echo "cat >conf$$subs.awk <<_ACEOF" &&
19278 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19279 echo "_ACEOF"
19280 } >conf$$subs.sh ||
19281 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19282 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19283 ac_delim='%!_!# '
19284 for ac_last_try in false false false false false :; do
19285 . ./conf$$subs.sh ||
19286 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19288 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19289 if test $ac_delim_n = $ac_delim_num; then
19290 break
19291 elif $ac_last_try; then
19292 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19293 else
19294 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19296 done
19297 rm -f conf$$subs.sh
19299 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19300 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19301 _ACEOF
19302 sed -n '
19304 s/^/S["/; s/!.*/"]=/
19307 s/^[^!]*!//
19308 :repl
19309 t repl
19310 s/'"$ac_delim"'$//
19311 t delim
19314 s/\(.\{148\}\)..*/\1/
19315 t more1
19316 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19319 b repl
19320 :more1
19321 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19324 s/.\{148\}//
19325 t nl
19326 :delim
19328 s/\(.\{148\}\)..*/\1/
19329 t more2
19330 s/["\\]/\\&/g; s/^/"/; s/$/"/
19333 :more2
19334 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19337 s/.\{148\}//
19338 t delim
19339 ' <conf$$subs.awk | sed '
19340 /^[^""]/{
19342 s/\n//
19344 ' >>$CONFIG_STATUS || ac_write_fail=1
19345 rm -f conf$$subs.awk
19346 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19347 _ACAWK
19348 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19349 for (key in S) S_is_set[key] = 1
19350 FS = "\a"
19354 line = $ 0
19355 nfields = split(line, field, "@")
19356 substed = 0
19357 len = length(field[1])
19358 for (i = 2; i < nfields; i++) {
19359 key = field[i]
19360 keylen = length(key)
19361 if (S_is_set[key]) {
19362 value = S[key]
19363 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19364 len += length(value) + length(field[++i])
19365 substed = 1
19366 } else
19367 len += 1 + keylen
19370 print line
19373 _ACAWK
19374 _ACEOF
19375 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19376 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19377 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19378 else
19380 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19381 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19382 _ACEOF
19384 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19385 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19386 # trailing colons and then remove the whole line if VPATH becomes empty
19387 # (actually we leave an empty line to preserve line numbers).
19388 if test "x$srcdir" = x.; then
19389 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19391 s///
19392 s/^/:/
19393 s/[ ]*$/:/
19394 s/:\$(srcdir):/:/g
19395 s/:\${srcdir}:/:/g
19396 s/:@srcdir@:/:/g
19397 s/^:*//
19398 s/:*$//
19400 s/\(=[ ]*\).*/\1/
19402 s/\n//
19403 s/^[^=]*=[ ]*$//
19407 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19408 fi # test -n "$CONFIG_FILES"
19410 # Set up the scripts for CONFIG_HEADERS section.
19411 # No need to generate them if there are no CONFIG_HEADERS.
19412 # This happens for instance with `./config.status Makefile'.
19413 if test -n "$CONFIG_HEADERS"; then
19414 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19415 BEGIN {
19416 _ACEOF
19418 # Transform confdefs.h into an awk script `defines.awk', embedded as
19419 # here-document in config.status, that substitutes the proper values into
19420 # config.h.in to produce config.h.
19422 # Create a delimiter string that does not exist in confdefs.h, to ease
19423 # handling of long lines.
19424 ac_delim='%!_!# '
19425 for ac_last_try in false false :; do
19426 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19427 if test -z "$ac_tt"; then
19428 break
19429 elif $ac_last_try; then
19430 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19431 else
19432 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19434 done
19436 # For the awk script, D is an array of macro values keyed by name,
19437 # likewise P contains macro parameters if any. Preserve backslash
19438 # newline sequences.
19440 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19441 sed -n '
19442 s/.\{148\}/&'"$ac_delim"'/g
19443 t rset
19444 :rset
19445 s/^[ ]*#[ ]*define[ ][ ]*/ /
19446 t def
19448 :def
19449 s/\\$//
19450 t bsnl
19451 s/["\\]/\\&/g
19452 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19453 D["\1"]=" \3"/p
19454 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
19456 :bsnl
19457 s/["\\]/\\&/g
19458 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19459 D["\1"]=" \3\\\\\\n"\\/p
19460 t cont
19461 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19462 t cont
19464 :cont
19466 s/.\{148\}/&'"$ac_delim"'/g
19467 t clear
19468 :clear
19469 s/\\$//
19470 t bsnlc
19471 s/["\\]/\\&/g; s/^/"/; s/$/"/p
19473 :bsnlc
19474 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19475 b cont
19476 ' <confdefs.h | sed '
19477 s/'"$ac_delim"'/"\\\
19478 "/g' >>$CONFIG_STATUS || ac_write_fail=1
19480 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19481 for (key in D) D_is_set[key] = 1
19482 FS = "\a"
19484 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19485 line = \$ 0
19486 split(line, arg, " ")
19487 if (arg[1] == "#") {
19488 defundef = arg[2]
19489 mac1 = arg[3]
19490 } else {
19491 defundef = substr(arg[1], 2)
19492 mac1 = arg[2]
19494 split(mac1, mac2, "(") #)
19495 macro = mac2[1]
19496 prefix = substr(line, 1, index(line, defundef) - 1)
19497 if (D_is_set[macro]) {
19498 # Preserve the white space surrounding the "#".
19499 print prefix "define", macro P[macro] D[macro]
19500 next
19501 } else {
19502 # Replace #undef with comments. This is necessary, for example,
19503 # in the case of _POSIX_SOURCE, which is predefined and required
19504 # on some systems where configure will not decide to define it.
19505 if (defundef == "undef") {
19506 print "/*", prefix defundef, macro, "*/"
19507 next
19511 { print }
19512 _ACAWK
19513 _ACEOF
19514 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19515 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19516 fi # test -n "$CONFIG_HEADERS"
19519 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
19520 shift
19521 for ac_tag
19523 case $ac_tag in
19524 :[FHLC]) ac_mode=$ac_tag; continue;;
19525 esac
19526 case $ac_mode$ac_tag in
19527 :[FHL]*:*);;
19528 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19529 :[FH]-) ac_tag=-:-;;
19530 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19531 esac
19532 ac_save_IFS=$IFS
19533 IFS=:
19534 set x $ac_tag
19535 IFS=$ac_save_IFS
19536 shift
19537 ac_file=$1
19538 shift
19540 case $ac_mode in
19541 :L) ac_source=$1;;
19542 :[FH])
19543 ac_file_inputs=
19544 for ac_f
19546 case $ac_f in
19547 -) ac_f="$ac_tmp/stdin";;
19548 *) # Look for the file first in the build tree, then in the source tree
19549 # (if the path is not absolute). The absolute path cannot be DOS-style,
19550 # because $ac_f cannot contain `:'.
19551 test -f "$ac_f" ||
19552 case $ac_f in
19553 [\\/$]*) false;;
19554 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19555 esac ||
19556 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19557 esac
19558 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19559 as_fn_append ac_file_inputs " '$ac_f'"
19560 done
19562 # Let's still pretend it is `configure' which instantiates (i.e., don't
19563 # use $as_me), people would be surprised to read:
19564 # /* config.h. Generated by config.status. */
19565 configure_input='Generated from '`
19566 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19567 `' by configure.'
19568 if test x"$ac_file" != x-; then
19569 configure_input="$ac_file. $configure_input"
19570 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19571 $as_echo "$as_me: creating $ac_file" >&6;}
19573 # Neutralize special characters interpreted by sed in replacement strings.
19574 case $configure_input in #(
19575 *\&* | *\|* | *\\* )
19576 ac_sed_conf_input=`$as_echo "$configure_input" |
19577 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19578 *) ac_sed_conf_input=$configure_input;;
19579 esac
19581 case $ac_tag in
19582 *:-:* | *:-) cat >"$ac_tmp/stdin" \
19583 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19584 esac
19586 esac
19588 ac_dir=`$as_dirname -- "$ac_file" ||
19589 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19590 X"$ac_file" : 'X\(//\)[^/]' \| \
19591 X"$ac_file" : 'X\(//\)$' \| \
19592 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19593 $as_echo X"$ac_file" |
19594 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19595 s//\1/
19598 /^X\(\/\/\)[^/].*/{
19599 s//\1/
19602 /^X\(\/\/\)$/{
19603 s//\1/
19606 /^X\(\/\).*/{
19607 s//\1/
19610 s/.*/./; q'`
19611 as_dir="$ac_dir"; as_fn_mkdir_p
19612 ac_builddir=.
19614 case "$ac_dir" in
19615 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19617 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19618 # A ".." for each directory in $ac_dir_suffix.
19619 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19620 case $ac_top_builddir_sub in
19621 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19622 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19623 esac ;;
19624 esac
19625 ac_abs_top_builddir=$ac_pwd
19626 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19627 # for backward compatibility:
19628 ac_top_builddir=$ac_top_build_prefix
19630 case $srcdir in
19631 .) # We are building in place.
19632 ac_srcdir=.
19633 ac_top_srcdir=$ac_top_builddir_sub
19634 ac_abs_top_srcdir=$ac_pwd ;;
19635 [\\/]* | ?:[\\/]* ) # Absolute name.
19636 ac_srcdir=$srcdir$ac_dir_suffix;
19637 ac_top_srcdir=$srcdir
19638 ac_abs_top_srcdir=$srcdir ;;
19639 *) # Relative name.
19640 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19641 ac_top_srcdir=$ac_top_build_prefix$srcdir
19642 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19643 esac
19644 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19647 case $ac_mode in
19650 # CONFIG_FILE
19653 case $INSTALL in
19654 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19655 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19656 esac
19657 ac_MKDIR_P=$MKDIR_P
19658 case $MKDIR_P in
19659 [\\/$]* | ?:[\\/]* ) ;;
19660 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19661 esac
19662 _ACEOF
19664 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19665 # If the template does not know about datarootdir, expand it.
19666 # FIXME: This hack should be removed a few years after 2.60.
19667 ac_datarootdir_hack=; ac_datarootdir_seen=
19668 ac_sed_dataroot='
19669 /datarootdir/ {
19673 /@datadir@/p
19674 /@docdir@/p
19675 /@infodir@/p
19676 /@localedir@/p
19677 /@mandir@/p'
19678 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19679 *datarootdir*) ac_datarootdir_seen=yes;;
19680 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19681 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19682 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19683 _ACEOF
19684 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19685 ac_datarootdir_hack='
19686 s&@datadir@&$datadir&g
19687 s&@docdir@&$docdir&g
19688 s&@infodir@&$infodir&g
19689 s&@localedir@&$localedir&g
19690 s&@mandir@&$mandir&g
19691 s&\\\${datarootdir}&$datarootdir&g' ;;
19692 esac
19693 _ACEOF
19695 # Neutralize VPATH when `$srcdir' = `.'.
19696 # Shell code in configure.ac might set extrasub.
19697 # FIXME: do we really want to maintain this feature?
19698 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19699 ac_sed_extra="$ac_vpsub
19700 $extrasub
19701 _ACEOF
19702 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19704 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19705 s|@configure_input@|$ac_sed_conf_input|;t t
19706 s&@top_builddir@&$ac_top_builddir_sub&;t t
19707 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19708 s&@srcdir@&$ac_srcdir&;t t
19709 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19710 s&@top_srcdir@&$ac_top_srcdir&;t t
19711 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19712 s&@builddir@&$ac_builddir&;t t
19713 s&@abs_builddir@&$ac_abs_builddir&;t t
19714 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19715 s&@INSTALL@&$ac_INSTALL&;t t
19716 s&@MKDIR_P@&$ac_MKDIR_P&;t t
19717 $ac_datarootdir_hack
19719 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
19720 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19722 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19723 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19724 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19725 "$ac_tmp/out"`; test -z "$ac_out"; } &&
19726 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19727 which seems to be undefined. Please make sure it is defined" >&5
19728 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19729 which seems to be undefined. Please make sure it is defined" >&2;}
19731 rm -f "$ac_tmp/stdin"
19732 case $ac_file in
19733 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19734 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19735 esac \
19736 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19740 # CONFIG_HEADER
19742 if test x"$ac_file" != x-; then
19744 $as_echo "/* $configure_input */" \
19745 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19746 } >"$ac_tmp/config.h" \
19747 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19748 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19749 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19750 $as_echo "$as_me: $ac_file is unchanged" >&6;}
19751 else
19752 rm -f "$ac_file"
19753 mv "$ac_tmp/config.h" "$ac_file" \
19754 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19756 else
19757 $as_echo "/* $configure_input */" \
19758 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19759 || as_fn_error $? "could not create -" "$LINENO" 5
19761 # Compute "$ac_file"'s index in $config_headers.
19762 _am_arg="$ac_file"
19763 _am_stamp_count=1
19764 for _am_header in $config_headers :; do
19765 case $_am_header in
19766 $_am_arg | $_am_arg:* )
19767 break ;;
19769 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19770 esac
19771 done
19772 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19773 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19774 X"$_am_arg" : 'X\(//\)[^/]' \| \
19775 X"$_am_arg" : 'X\(//\)$' \| \
19776 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19777 $as_echo X"$_am_arg" |
19778 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19779 s//\1/
19782 /^X\(\/\/\)[^/].*/{
19783 s//\1/
19786 /^X\(\/\/\)$/{
19787 s//\1/
19790 /^X\(\/\).*/{
19791 s//\1/
19794 s/.*/./; q'`/stamp-h$_am_stamp_count
19797 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19798 $as_echo "$as_me: executing $ac_file commands" >&6;}
19800 esac
19803 case $ac_file$ac_mode in
19804 "default-1":C)
19805 # Only add multilib support code if we just rebuilt the top-level
19806 # Makefile.
19807 case " $CONFIG_FILES " in
19808 *" Makefile "*)
19809 ac_file=Makefile . ${multi_basedir}/config-ml.in
19811 esac ;;
19812 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19813 # Older Autoconf quotes --file arguments for eval, but not when files
19814 # are listed without --file. Let's play safe and only enable the eval
19815 # if we detect the quoting.
19816 case $CONFIG_FILES in
19817 *\'*) eval set x "$CONFIG_FILES" ;;
19818 *) set x $CONFIG_FILES ;;
19819 esac
19820 shift
19821 for mf
19823 # Strip MF so we end up with the name of the file.
19824 mf=`echo "$mf" | sed -e 's/:.*$//'`
19825 # Check whether this is an Automake generated Makefile or not.
19826 # We used to match only the files named 'Makefile.in', but
19827 # some people rename them; so instead we look at the file content.
19828 # Grep'ing the first line is not enough: some people post-process
19829 # each Makefile.in and add a new line on top of each file to say so.
19830 # Grep'ing the whole file is not good either: AIX grep has a line
19831 # limit of 2048, but all sed's we know have understand at least 4000.
19832 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19833 dirpart=`$as_dirname -- "$mf" ||
19834 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19835 X"$mf" : 'X\(//\)[^/]' \| \
19836 X"$mf" : 'X\(//\)$' \| \
19837 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19838 $as_echo X"$mf" |
19839 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19840 s//\1/
19843 /^X\(\/\/\)[^/].*/{
19844 s//\1/
19847 /^X\(\/\/\)$/{
19848 s//\1/
19851 /^X\(\/\).*/{
19852 s//\1/
19855 s/.*/./; q'`
19856 else
19857 continue
19859 # Extract the definition of DEPDIR, am__include, and am__quote
19860 # from the Makefile without running 'make'.
19861 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19862 test -z "$DEPDIR" && continue
19863 am__include=`sed -n 's/^am__include = //p' < "$mf"`
19864 test -z "$am__include" && continue
19865 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19866 # Find all dependency output files, they are included files with
19867 # $(DEPDIR) in their names. We invoke sed twice because it is the
19868 # simplest approach to changing $(DEPDIR) to its actual value in the
19869 # expansion.
19870 for file in `sed -n "
19871 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19872 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
19873 # Make sure the directory exists.
19874 test -f "$dirpart/$file" && continue
19875 fdir=`$as_dirname -- "$file" ||
19876 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19877 X"$file" : 'X\(//\)[^/]' \| \
19878 X"$file" : 'X\(//\)$' \| \
19879 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19880 $as_echo X"$file" |
19881 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19882 s//\1/
19885 /^X\(\/\/\)[^/].*/{
19886 s//\1/
19889 /^X\(\/\/\)$/{
19890 s//\1/
19893 /^X\(\/\).*/{
19894 s//\1/
19897 s/.*/./; q'`
19898 as_dir=$dirpart/$fdir; as_fn_mkdir_p
19899 # echo "creating $dirpart/$file"
19900 echo '# dummy' > "$dirpart/$file"
19901 done
19902 done
19905 "libtool":C)
19907 # See if we are running on zsh, and set the options which allow our
19908 # commands through without removal of \ escapes.
19909 if test -n "${ZSH_VERSION+set}" ; then
19910 setopt NO_GLOB_SUBST
19913 cfgfile="${ofile}T"
19914 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19915 $RM "$cfgfile"
19917 cat <<_LT_EOF >> "$cfgfile"
19918 #! $SHELL
19920 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19921 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19922 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19923 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19925 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19926 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
19927 # Written by Gordon Matzigkeit, 1996
19929 # This file is part of GNU Libtool.
19931 # GNU Libtool is free software; you can redistribute it and/or
19932 # modify it under the terms of the GNU General Public License as
19933 # published by the Free Software Foundation; either version 2 of
19934 # the License, or (at your option) any later version.
19936 # As a special exception to the GNU General Public License,
19937 # if you distribute this file as part of a program or library that
19938 # is built using GNU Libtool, you may include this file under the
19939 # same distribution terms that you use for the rest of that program.
19941 # GNU Libtool is distributed in the hope that it will be useful,
19942 # but WITHOUT ANY WARRANTY; without even the implied warranty of
19943 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19944 # GNU General Public License for more details.
19946 # You should have received a copy of the GNU General Public License
19947 # along with GNU Libtool; see the file COPYING. If not, a copy
19948 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19949 # obtained by writing to the Free Software Foundation, Inc.,
19950 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19953 # The names of the tagged configurations supported by this script.
19954 available_tags="CXX "
19956 # ### BEGIN LIBTOOL CONFIG
19958 # Which release of libtool.m4 was used?
19959 macro_version=$macro_version
19960 macro_revision=$macro_revision
19962 # Whether or not to build shared libraries.
19963 build_libtool_libs=$enable_shared
19965 # Whether or not to build static libraries.
19966 build_old_libs=$enable_static
19968 # What type of objects to build.
19969 pic_mode=$pic_mode
19971 # Whether or not to optimize for fast installation.
19972 fast_install=$enable_fast_install
19974 # Shell to use when invoking shell scripts.
19975 SHELL=$lt_SHELL
19977 # An echo program that protects backslashes.
19978 ECHO=$lt_ECHO
19980 # The host system.
19981 host_alias=$host_alias
19982 host=$host
19983 host_os=$host_os
19985 # The build system.
19986 build_alias=$build_alias
19987 build=$build
19988 build_os=$build_os
19990 # A sed program that does not truncate output.
19991 SED=$lt_SED
19993 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19994 Xsed="\$SED -e 1s/^X//"
19996 # A grep program that handles long lines.
19997 GREP=$lt_GREP
19999 # An ERE matcher.
20000 EGREP=$lt_EGREP
20002 # A literal string matcher.
20003 FGREP=$lt_FGREP
20005 # A BSD- or MS-compatible name lister.
20006 NM=$lt_NM
20008 # Whether we need soft or hard links.
20009 LN_S=$lt_LN_S
20011 # What is the maximum length of a command?
20012 max_cmd_len=$max_cmd_len
20014 # Object file suffix (normally "o").
20015 objext=$ac_objext
20017 # Executable file suffix (normally "").
20018 exeext=$exeext
20020 # whether the shell understands "unset".
20021 lt_unset=$lt_unset
20023 # turn spaces into newlines.
20024 SP2NL=$lt_lt_SP2NL
20026 # turn newlines into spaces.
20027 NL2SP=$lt_lt_NL2SP
20029 # An object symbol dumper.
20030 OBJDUMP=$lt_OBJDUMP
20032 # Method to check whether dependent libraries are shared objects.
20033 deplibs_check_method=$lt_deplibs_check_method
20035 # Command to use when deplibs_check_method == "file_magic".
20036 file_magic_cmd=$lt_file_magic_cmd
20038 # The archiver.
20039 AR=$lt_AR
20040 AR_FLAGS=$lt_AR_FLAGS
20042 # A symbol stripping program.
20043 STRIP=$lt_STRIP
20045 # Commands used to install an old-style archive.
20046 RANLIB=$lt_RANLIB
20047 old_postinstall_cmds=$lt_old_postinstall_cmds
20048 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20050 # Whether to use a lock for old archive extraction.
20051 lock_old_archive_extraction=$lock_old_archive_extraction
20053 # A C compiler.
20054 LTCC=$lt_CC
20056 # LTCC compiler flags.
20057 LTCFLAGS=$lt_CFLAGS
20059 # Take the output of nm and produce a listing of raw symbols and C names.
20060 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20062 # Transform the output of nm in a proper C declaration.
20063 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20065 # Transform the output of nm in a C name address pair.
20066 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20068 # Transform the output of nm in a C name address pair when lib prefix is needed.
20069 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20071 # The name of the directory that contains temporary libtool files.
20072 objdir=$objdir
20074 # Used to examine libraries when file_magic_cmd begins with "file".
20075 MAGIC_CMD=$MAGIC_CMD
20077 # Must we lock files when doing compilation?
20078 need_locks=$lt_need_locks
20080 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20081 DSYMUTIL=$lt_DSYMUTIL
20083 # Tool to change global to local symbols on Mac OS X.
20084 NMEDIT=$lt_NMEDIT
20086 # Tool to manipulate fat objects and archives on Mac OS X.
20087 LIPO=$lt_LIPO
20089 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
20090 OTOOL=$lt_OTOOL
20092 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20093 OTOOL64=$lt_OTOOL64
20095 # Old archive suffix (normally "a").
20096 libext=$libext
20098 # Shared library suffix (normally ".so").
20099 shrext_cmds=$lt_shrext_cmds
20101 # The commands to extract the exported symbol list from a shared archive.
20102 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20104 # Variables whose values should be saved in libtool wrapper scripts and
20105 # restored at link time.
20106 variables_saved_for_relink=$lt_variables_saved_for_relink
20108 # Do we need the "lib" prefix for modules?
20109 need_lib_prefix=$need_lib_prefix
20111 # Do we need a version for libraries?
20112 need_version=$need_version
20114 # Library versioning type.
20115 version_type=$version_type
20117 # Shared library runtime path variable.
20118 runpath_var=$runpath_var
20120 # Shared library path variable.
20121 shlibpath_var=$shlibpath_var
20123 # Is shlibpath searched before the hard-coded library search path?
20124 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20126 # Format of library name prefix.
20127 libname_spec=$lt_libname_spec
20129 # List of archive names. First name is the real one, the rest are links.
20130 # The last name is the one that the linker finds with -lNAME
20131 library_names_spec=$lt_library_names_spec
20133 # The coded name of the library, if different from the real name.
20134 soname_spec=$lt_soname_spec
20136 # Permission mode override for installation of shared libraries.
20137 install_override_mode=$lt_install_override_mode
20139 # Command to use after installation of a shared archive.
20140 postinstall_cmds=$lt_postinstall_cmds
20142 # Command to use after uninstallation of a shared archive.
20143 postuninstall_cmds=$lt_postuninstall_cmds
20145 # Commands used to finish a libtool library installation in a directory.
20146 finish_cmds=$lt_finish_cmds
20148 # As "finish_cmds", except a single script fragment to be evaled but
20149 # not shown.
20150 finish_eval=$lt_finish_eval
20152 # Whether we should hardcode library paths into libraries.
20153 hardcode_into_libs=$hardcode_into_libs
20155 # Compile-time system search path for libraries.
20156 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20158 # Run-time system search path for libraries.
20159 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20161 # Whether dlopen is supported.
20162 dlopen_support=$enable_dlopen
20164 # Whether dlopen of programs is supported.
20165 dlopen_self=$enable_dlopen_self
20167 # Whether dlopen of statically linked programs is supported.
20168 dlopen_self_static=$enable_dlopen_self_static
20170 # Commands to strip libraries.
20171 old_striplib=$lt_old_striplib
20172 striplib=$lt_striplib
20175 # The linker used to build libraries.
20176 LD=$lt_LD
20178 # How to create reloadable object files.
20179 reload_flag=$lt_reload_flag
20180 reload_cmds=$lt_reload_cmds
20182 # Commands used to build an old-style archive.
20183 old_archive_cmds=$lt_old_archive_cmds
20185 # A language specific compiler.
20186 CC=$lt_compiler
20188 # Is the compiler the GNU compiler?
20189 with_gcc=$GCC
20191 # Compiler flag to turn off builtin functions.
20192 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20194 # How to pass a linker flag through the compiler.
20195 wl=$lt_lt_prog_compiler_wl
20197 # Additional compiler flags for building library objects.
20198 pic_flag=$lt_lt_prog_compiler_pic
20200 # Compiler flag to prevent dynamic linking.
20201 link_static_flag=$lt_lt_prog_compiler_static
20203 # Does compiler simultaneously support -c and -o options?
20204 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20206 # Whether or not to add -lc for building shared libraries.
20207 build_libtool_need_lc=$archive_cmds_need_lc
20209 # Whether or not to disallow shared libs when runtime libs are static.
20210 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20212 # Compiler flag to allow reflexive dlopens.
20213 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20215 # Compiler flag to generate shared objects directly from archives.
20216 whole_archive_flag_spec=$lt_whole_archive_flag_spec
20218 # Whether the compiler copes with passing no objects directly.
20219 compiler_needs_object=$lt_compiler_needs_object
20221 # Create an old-style archive from a shared archive.
20222 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20224 # Create a temporary old-style archive to link instead of a shared archive.
20225 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20227 # Commands used to build a shared archive.
20228 archive_cmds=$lt_archive_cmds
20229 archive_expsym_cmds=$lt_archive_expsym_cmds
20231 # Commands used to build a loadable module if different from building
20232 # a shared archive.
20233 module_cmds=$lt_module_cmds
20234 module_expsym_cmds=$lt_module_expsym_cmds
20236 # Whether we are building with GNU ld or not.
20237 with_gnu_ld=$lt_with_gnu_ld
20239 # Flag that allows shared libraries with undefined symbols to be built.
20240 allow_undefined_flag=$lt_allow_undefined_flag
20242 # Flag that enforces no undefined symbols.
20243 no_undefined_flag=$lt_no_undefined_flag
20245 # Flag to hardcode \$libdir into a binary during linking.
20246 # This must work even if \$libdir does not exist
20247 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20249 # If ld is used when linking, flag to hardcode \$libdir into a binary
20250 # during linking. This must work even if \$libdir does not exist.
20251 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
20253 # Whether we need a single "-rpath" flag with a separated argument.
20254 hardcode_libdir_separator=$lt_hardcode_libdir_separator
20256 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20257 # DIR into the resulting binary.
20258 hardcode_direct=$hardcode_direct
20260 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20261 # DIR into the resulting binary and the resulting library dependency is
20262 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20263 # library is relocated.
20264 hardcode_direct_absolute=$hardcode_direct_absolute
20266 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20267 # into the resulting binary.
20268 hardcode_minus_L=$hardcode_minus_L
20270 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20271 # into the resulting binary.
20272 hardcode_shlibpath_var=$hardcode_shlibpath_var
20274 # Set to "yes" if building a shared library automatically hardcodes DIR
20275 # into the library and all subsequent libraries and executables linked
20276 # against it.
20277 hardcode_automatic=$hardcode_automatic
20279 # Set to yes if linker adds runtime paths of dependent libraries
20280 # to runtime path list.
20281 inherit_rpath=$inherit_rpath
20283 # Whether libtool must link a program against all its dependency libraries.
20284 link_all_deplibs=$link_all_deplibs
20286 # Fix the shell variable \$srcfile for the compiler.
20287 fix_srcfile_path=$lt_fix_srcfile_path
20289 # Set to "yes" if exported symbols are required.
20290 always_export_symbols=$always_export_symbols
20292 # The commands to list exported symbols.
20293 export_symbols_cmds=$lt_export_symbols_cmds
20295 # Symbols that should not be listed in the preloaded symbols.
20296 exclude_expsyms=$lt_exclude_expsyms
20298 # Symbols that must always be exported.
20299 include_expsyms=$lt_include_expsyms
20301 # Commands necessary for linking programs (against libraries) with templates.
20302 prelink_cmds=$lt_prelink_cmds
20304 # Specify filename containing input files.
20305 file_list_spec=$lt_file_list_spec
20307 # How to hardcode a shared library path into an executable.
20308 hardcode_action=$hardcode_action
20310 # The directories searched by this compiler when creating a shared library.
20311 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
20313 # Dependencies to place before and after the objects being linked to
20314 # create a shared library.
20315 predep_objects=$lt_predep_objects
20316 postdep_objects=$lt_postdep_objects
20317 predeps=$lt_predeps
20318 postdeps=$lt_postdeps
20320 # The library search path used internally by the compiler when linking
20321 # a shared library.
20322 compiler_lib_search_path=$lt_compiler_lib_search_path
20324 # ### END LIBTOOL CONFIG
20326 _LT_EOF
20328 case $host_os in
20329 aix3*)
20330 cat <<\_LT_EOF >> "$cfgfile"
20331 # AIX sometimes has problems with the GCC collect2 program. For some
20332 # reason, if we set the COLLECT_NAMES environment variable, the problems
20333 # vanish in a puff of smoke.
20334 if test "X${COLLECT_NAMES+set}" != Xset; then
20335 COLLECT_NAMES=
20336 export COLLECT_NAMES
20338 _LT_EOF
20340 esac
20343 ltmain="$ac_aux_dir/ltmain.sh"
20346 # We use sed instead of cat because bash on DJGPP gets confused if
20347 # if finds mixed CR/LF and LF-only lines. Since sed operates in
20348 # text mode, it properly converts lines to CR/LF. This bash problem
20349 # is reportedly fixed, but why not run on old versions too?
20350 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
20351 || (rm -f "$cfgfile"; exit 1)
20353 case $xsi_shell in
20354 yes)
20355 cat << \_LT_EOF >> "$cfgfile"
20357 # func_dirname file append nondir_replacement
20358 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
20359 # otherwise set result to NONDIR_REPLACEMENT.
20360 func_dirname ()
20362 case ${1} in
20363 */*) func_dirname_result="${1%/*}${2}" ;;
20364 * ) func_dirname_result="${3}" ;;
20365 esac
20368 # func_basename file
20369 func_basename ()
20371 func_basename_result="${1##*/}"
20374 # func_dirname_and_basename file append nondir_replacement
20375 # perform func_basename and func_dirname in a single function
20376 # call:
20377 # dirname: Compute the dirname of FILE. If nonempty,
20378 # add APPEND to the result, otherwise set result
20379 # to NONDIR_REPLACEMENT.
20380 # value returned in "$func_dirname_result"
20381 # basename: Compute filename of FILE.
20382 # value retuned in "$func_basename_result"
20383 # Implementation must be kept synchronized with func_dirname
20384 # and func_basename. For efficiency, we do not delegate to
20385 # those functions but instead duplicate the functionality here.
20386 func_dirname_and_basename ()
20388 case ${1} in
20389 */*) func_dirname_result="${1%/*}${2}" ;;
20390 * ) func_dirname_result="${3}" ;;
20391 esac
20392 func_basename_result="${1##*/}"
20395 # func_stripname prefix suffix name
20396 # strip PREFIX and SUFFIX off of NAME.
20397 # PREFIX and SUFFIX must not contain globbing or regex special
20398 # characters, hashes, percent signs, but SUFFIX may contain a leading
20399 # dot (in which case that matches only a dot).
20400 func_stripname ()
20402 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
20403 # positional parameters, so assign one to ordinary parameter first.
20404 func_stripname_result=${3}
20405 func_stripname_result=${func_stripname_result#"${1}"}
20406 func_stripname_result=${func_stripname_result%"${2}"}
20409 # func_opt_split
20410 func_opt_split ()
20412 func_opt_split_opt=${1%%=*}
20413 func_opt_split_arg=${1#*=}
20416 # func_lo2o object
20417 func_lo2o ()
20419 case ${1} in
20420 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
20421 *) func_lo2o_result=${1} ;;
20422 esac
20425 # func_xform libobj-or-source
20426 func_xform ()
20428 func_xform_result=${1%.*}.lo
20431 # func_arith arithmetic-term...
20432 func_arith ()
20434 func_arith_result=$(( $* ))
20437 # func_len string
20438 # STRING may not start with a hyphen.
20439 func_len ()
20441 func_len_result=${#1}
20444 _LT_EOF
20446 *) # Bourne compatible functions.
20447 cat << \_LT_EOF >> "$cfgfile"
20449 # func_dirname file append nondir_replacement
20450 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
20451 # otherwise set result to NONDIR_REPLACEMENT.
20452 func_dirname ()
20454 # Extract subdirectory from the argument.
20455 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
20456 if test "X$func_dirname_result" = "X${1}"; then
20457 func_dirname_result="${3}"
20458 else
20459 func_dirname_result="$func_dirname_result${2}"
20463 # func_basename file
20464 func_basename ()
20466 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
20470 # func_stripname prefix suffix name
20471 # strip PREFIX and SUFFIX off of NAME.
20472 # PREFIX and SUFFIX must not contain globbing or regex special
20473 # characters, hashes, percent signs, but SUFFIX may contain a leading
20474 # dot (in which case that matches only a dot).
20475 # func_strip_suffix prefix name
20476 func_stripname ()
20478 case ${2} in
20479 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
20480 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
20481 esac
20484 # sed scripts:
20485 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
20486 my_sed_long_arg='1s/^-[^=]*=//'
20488 # func_opt_split
20489 func_opt_split ()
20491 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
20492 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
20495 # func_lo2o object
20496 func_lo2o ()
20498 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
20501 # func_xform libobj-or-source
20502 func_xform ()
20504 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
20507 # func_arith arithmetic-term...
20508 func_arith ()
20510 func_arith_result=`expr "$@"`
20513 # func_len string
20514 # STRING may not start with a hyphen.
20515 func_len ()
20517 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
20520 _LT_EOF
20521 esac
20523 case $lt_shell_append in
20524 yes)
20525 cat << \_LT_EOF >> "$cfgfile"
20527 # func_append var value
20528 # Append VALUE to the end of shell variable VAR.
20529 func_append ()
20531 eval "$1+=\$2"
20533 _LT_EOF
20536 cat << \_LT_EOF >> "$cfgfile"
20538 # func_append var value
20539 # Append VALUE to the end of shell variable VAR.
20540 func_append ()
20542 eval "$1=\$$1\$2"
20545 _LT_EOF
20547 esac
20550 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
20551 || (rm -f "$cfgfile"; exit 1)
20553 mv -f "$cfgfile" "$ofile" ||
20554 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20555 chmod +x "$ofile"
20558 cat <<_LT_EOF >> "$ofile"
20560 # ### BEGIN LIBTOOL TAG CONFIG: CXX
20562 # The linker used to build libraries.
20563 LD=$lt_LD_CXX
20565 # How to create reloadable object files.
20566 reload_flag=$lt_reload_flag_CXX
20567 reload_cmds=$lt_reload_cmds_CXX
20569 # Commands used to build an old-style archive.
20570 old_archive_cmds=$lt_old_archive_cmds_CXX
20572 # A language specific compiler.
20573 CC=$lt_compiler_CXX
20575 # Is the compiler the GNU compiler?
20576 with_gcc=$GCC_CXX
20578 # Compiler flag to turn off builtin functions.
20579 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20581 # How to pass a linker flag through the compiler.
20582 wl=$lt_lt_prog_compiler_wl_CXX
20584 # Additional compiler flags for building library objects.
20585 pic_flag=$lt_lt_prog_compiler_pic_CXX
20587 # Compiler flag to prevent dynamic linking.
20588 link_static_flag=$lt_lt_prog_compiler_static_CXX
20590 # Does compiler simultaneously support -c and -o options?
20591 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20593 # Whether or not to add -lc for building shared libraries.
20594 build_libtool_need_lc=$archive_cmds_need_lc_CXX
20596 # Whether or not to disallow shared libs when runtime libs are static.
20597 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20599 # Compiler flag to allow reflexive dlopens.
20600 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20602 # Compiler flag to generate shared objects directly from archives.
20603 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20605 # Whether the compiler copes with passing no objects directly.
20606 compiler_needs_object=$lt_compiler_needs_object_CXX
20608 # Create an old-style archive from a shared archive.
20609 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20611 # Create a temporary old-style archive to link instead of a shared archive.
20612 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20614 # Commands used to build a shared archive.
20615 archive_cmds=$lt_archive_cmds_CXX
20616 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20618 # Commands used to build a loadable module if different from building
20619 # a shared archive.
20620 module_cmds=$lt_module_cmds_CXX
20621 module_expsym_cmds=$lt_module_expsym_cmds_CXX
20623 # Whether we are building with GNU ld or not.
20624 with_gnu_ld=$lt_with_gnu_ld_CXX
20626 # Flag that allows shared libraries with undefined symbols to be built.
20627 allow_undefined_flag=$lt_allow_undefined_flag_CXX
20629 # Flag that enforces no undefined symbols.
20630 no_undefined_flag=$lt_no_undefined_flag_CXX
20632 # Flag to hardcode \$libdir into a binary during linking.
20633 # This must work even if \$libdir does not exist
20634 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20636 # If ld is used when linking, flag to hardcode \$libdir into a binary
20637 # during linking. This must work even if \$libdir does not exist.
20638 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
20640 # Whether we need a single "-rpath" flag with a separated argument.
20641 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20643 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20644 # DIR into the resulting binary.
20645 hardcode_direct=$hardcode_direct_CXX
20647 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20648 # DIR into the resulting binary and the resulting library dependency is
20649 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20650 # library is relocated.
20651 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
20653 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20654 # into the resulting binary.
20655 hardcode_minus_L=$hardcode_minus_L_CXX
20657 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20658 # into the resulting binary.
20659 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20661 # Set to "yes" if building a shared library automatically hardcodes DIR
20662 # into the library and all subsequent libraries and executables linked
20663 # against it.
20664 hardcode_automatic=$hardcode_automatic_CXX
20666 # Set to yes if linker adds runtime paths of dependent libraries
20667 # to runtime path list.
20668 inherit_rpath=$inherit_rpath_CXX
20670 # Whether libtool must link a program against all its dependency libraries.
20671 link_all_deplibs=$link_all_deplibs_CXX
20673 # Fix the shell variable \$srcfile for the compiler.
20674 fix_srcfile_path=$lt_fix_srcfile_path_CXX
20676 # Set to "yes" if exported symbols are required.
20677 always_export_symbols=$always_export_symbols_CXX
20679 # The commands to list exported symbols.
20680 export_symbols_cmds=$lt_export_symbols_cmds_CXX
20682 # Symbols that should not be listed in the preloaded symbols.
20683 exclude_expsyms=$lt_exclude_expsyms_CXX
20685 # Symbols that must always be exported.
20686 include_expsyms=$lt_include_expsyms_CXX
20688 # Commands necessary for linking programs (against libraries) with templates.
20689 prelink_cmds=$lt_prelink_cmds_CXX
20691 # Specify filename containing input files.
20692 file_list_spec=$lt_file_list_spec_CXX
20694 # How to hardcode a shared library path into an executable.
20695 hardcode_action=$hardcode_action_CXX
20697 # The directories searched by this compiler when creating a shared library.
20698 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
20700 # Dependencies to place before and after the objects being linked to
20701 # create a shared library.
20702 predep_objects=$lt_predep_objects_CXX
20703 postdep_objects=$lt_postdep_objects_CXX
20704 predeps=$lt_predeps_CXX
20705 postdeps=$lt_postdeps_CXX
20707 # The library search path used internally by the compiler when linking
20708 # a shared library.
20709 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20711 # ### END LIBTOOL TAG CONFIG: CXX
20712 _LT_EOF
20715 "gstdint.h":C)
20716 if test "$GCC" = yes; then
20717 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
20718 else
20719 echo "/* generated for $CC */" > tmp-stdint.h
20722 sed 's/^ *//' >> tmp-stdint.h <<EOF
20724 #ifndef GCC_GENERATED_STDINT_H
20725 #define GCC_GENERATED_STDINT_H 1
20727 #include <sys/types.h>
20730 if test "$acx_cv_header_stdint" != stdint.h; then
20731 echo "#include <stddef.h>" >> tmp-stdint.h
20733 if test "$acx_cv_header_stdint" != stddef.h; then
20734 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
20737 sed 's/^ *//' >> tmp-stdint.h <<EOF
20738 /* glibc uses these symbols as guards to prevent redefinitions. */
20739 #ifdef __int8_t_defined
20740 #define _INT8_T
20741 #define _INT16_T
20742 #define _INT32_T
20743 #endif
20744 #ifdef __uint32_t_defined
20745 #define _UINT32_T
20746 #endif
20750 # ----------------- done header, emit basic int types -------------
20751 if test "$acx_cv_header_stdint" = stddef.h; then
20752 sed 's/^ *//' >> tmp-stdint.h <<EOF
20754 #ifndef _UINT8_T
20755 #define _UINT8_T
20756 #ifndef __uint8_t_defined
20757 #define __uint8_t_defined
20758 #ifndef uint8_t
20759 typedef unsigned $acx_cv_type_int8_t uint8_t;
20760 #endif
20761 #endif
20762 #endif
20764 #ifndef _UINT16_T
20765 #define _UINT16_T
20766 #ifndef __uint16_t_defined
20767 #define __uint16_t_defined
20768 #ifndef uint16_t
20769 typedef unsigned $acx_cv_type_int16_t uint16_t;
20770 #endif
20771 #endif
20772 #endif
20774 #ifndef _UINT32_T
20775 #define _UINT32_T
20776 #ifndef __uint32_t_defined
20777 #define __uint32_t_defined
20778 #ifndef uint32_t
20779 typedef unsigned $acx_cv_type_int32_t uint32_t;
20780 #endif
20781 #endif
20782 #endif
20784 #ifndef _INT8_T
20785 #define _INT8_T
20786 #ifndef __int8_t_defined
20787 #define __int8_t_defined
20788 #ifndef int8_t
20789 typedef $acx_cv_type_int8_t int8_t;
20790 #endif
20791 #endif
20792 #endif
20794 #ifndef _INT16_T
20795 #define _INT16_T
20796 #ifndef __int16_t_defined
20797 #define __int16_t_defined
20798 #ifndef int16_t
20799 typedef $acx_cv_type_int16_t int16_t;
20800 #endif
20801 #endif
20802 #endif
20804 #ifndef _INT32_T
20805 #define _INT32_T
20806 #ifndef __int32_t_defined
20807 #define __int32_t_defined
20808 #ifndef int32_t
20809 typedef $acx_cv_type_int32_t int32_t;
20810 #endif
20811 #endif
20812 #endif
20814 elif test "$ac_cv_type_u_int32_t" = yes; then
20815 sed 's/^ *//' >> tmp-stdint.h <<EOF
20817 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
20818 #ifndef _INT8_T
20819 #define _INT8_T
20820 #endif
20821 #ifndef _INT16_T
20822 #define _INT16_T
20823 #endif
20824 #ifndef _INT32_T
20825 #define _INT32_T
20826 #endif
20828 #ifndef _UINT8_T
20829 #define _UINT8_T
20830 #ifndef __uint8_t_defined
20831 #define __uint8_t_defined
20832 #ifndef uint8_t
20833 typedef u_int8_t uint8_t;
20834 #endif
20835 #endif
20836 #endif
20838 #ifndef _UINT16_T
20839 #define _UINT16_T
20840 #ifndef __uint16_t_defined
20841 #define __uint16_t_defined
20842 #ifndef uint16_t
20843 typedef u_int16_t uint16_t;
20844 #endif
20845 #endif
20846 #endif
20848 #ifndef _UINT32_T
20849 #define _UINT32_T
20850 #ifndef __uint32_t_defined
20851 #define __uint32_t_defined
20852 #ifndef uint32_t
20853 typedef u_int32_t uint32_t;
20854 #endif
20855 #endif
20856 #endif
20858 else
20859 sed 's/^ *//' >> tmp-stdint.h <<EOF
20861 /* Some systems have guard macros to prevent redefinitions, define them. */
20862 #ifndef _INT8_T
20863 #define _INT8_T
20864 #endif
20865 #ifndef _INT16_T
20866 #define _INT16_T
20867 #endif
20868 #ifndef _INT32_T
20869 #define _INT32_T
20870 #endif
20871 #ifndef _UINT8_T
20872 #define _UINT8_T
20873 #endif
20874 #ifndef _UINT16_T
20875 #define _UINT16_T
20876 #endif
20877 #ifndef _UINT32_T
20878 #define _UINT32_T
20879 #endif
20883 # ------------- done basic int types, emit int64_t types ------------
20884 if test "$ac_cv_type_uint64_t" = yes; then
20885 sed 's/^ *//' >> tmp-stdint.h <<EOF
20887 /* system headers have good uint64_t and int64_t */
20888 #ifndef _INT64_T
20889 #define _INT64_T
20890 #endif
20891 #ifndef _UINT64_T
20892 #define _UINT64_T
20893 #endif
20895 elif test "$ac_cv_type_u_int64_t" = yes; then
20896 sed 's/^ *//' >> tmp-stdint.h <<EOF
20898 /* system headers have an u_int64_t (and int64_t) */
20899 #ifndef _INT64_T
20900 #define _INT64_T
20901 #endif
20902 #ifndef _UINT64_T
20903 #define _UINT64_T
20904 #ifndef __uint64_t_defined
20905 #define __uint64_t_defined
20906 #ifndef uint64_t
20907 typedef u_int64_t uint64_t;
20908 #endif
20909 #endif
20910 #endif
20912 elif test -n "$acx_cv_type_int64_t"; then
20913 sed 's/^ *//' >> tmp-stdint.h <<EOF
20915 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
20916 #ifndef _INT64_T
20917 #define _INT64_T
20918 #ifndef int64_t
20919 typedef $acx_cv_type_int64_t int64_t;
20920 #endif
20921 #endif
20922 #ifndef _UINT64_T
20923 #define _UINT64_T
20924 #ifndef __uint64_t_defined
20925 #define __uint64_t_defined
20926 #ifndef uint64_t
20927 typedef unsigned $acx_cv_type_int64_t uint64_t;
20928 #endif
20929 #endif
20930 #endif
20932 else
20933 sed 's/^ *//' >> tmp-stdint.h <<EOF
20935 /* some common heuristics for int64_t, using compiler-specific tests */
20936 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
20937 #ifndef _INT64_T
20938 #define _INT64_T
20939 #ifndef __int64_t_defined
20940 #ifndef int64_t
20941 typedef long long int64_t;
20942 #endif
20943 #endif
20944 #endif
20945 #ifndef _UINT64_T
20946 #define _UINT64_T
20947 #ifndef uint64_t
20948 typedef unsigned long long uint64_t;
20949 #endif
20950 #endif
20952 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
20953 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
20954 does not implement __extension__. But that compiler doesn't define
20955 __GNUC_MINOR__. */
20956 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
20957 # define __extension__
20958 # endif
20960 # ifndef _INT64_T
20961 # define _INT64_T
20962 # ifndef int64_t
20963 __extension__ typedef long long int64_t;
20964 # endif
20965 # endif
20966 # ifndef _UINT64_T
20967 # define _UINT64_T
20968 # ifndef uint64_t
20969 __extension__ typedef unsigned long long uint64_t;
20970 # endif
20971 # endif
20973 #elif !defined __STRICT_ANSI__
20974 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
20976 # ifndef _INT64_T
20977 # define _INT64_T
20978 # ifndef int64_t
20979 typedef __int64 int64_t;
20980 # endif
20981 # endif
20982 # ifndef _UINT64_T
20983 # define _UINT64_T
20984 # ifndef uint64_t
20985 typedef unsigned __int64 uint64_t;
20986 # endif
20987 # endif
20988 # endif /* compiler */
20990 #endif /* ANSI version */
20994 # ------------- done int64_t types, emit intptr types ------------
20995 if test "$ac_cv_type_uintptr_t" != yes; then
20996 sed 's/^ *//' >> tmp-stdint.h <<EOF
20998 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
20999 #ifndef __uintptr_t_defined
21000 #ifndef uintptr_t
21001 typedef u$acx_cv_type_intptr_t uintptr_t;
21002 #endif
21003 #endif
21004 #ifndef __intptr_t_defined
21005 #ifndef intptr_t
21006 typedef $acx_cv_type_intptr_t intptr_t;
21007 #endif
21008 #endif
21012 # ------------- done intptr types, emit int_least types ------------
21013 if test "$ac_cv_type_int_least32_t" != yes; then
21014 sed 's/^ *//' >> tmp-stdint.h <<EOF
21016 /* Define int_least types */
21017 typedef int8_t int_least8_t;
21018 typedef int16_t int_least16_t;
21019 typedef int32_t int_least32_t;
21020 #ifdef _INT64_T
21021 typedef int64_t int_least64_t;
21022 #endif
21024 typedef uint8_t uint_least8_t;
21025 typedef uint16_t uint_least16_t;
21026 typedef uint32_t uint_least32_t;
21027 #ifdef _UINT64_T
21028 typedef uint64_t uint_least64_t;
21029 #endif
21033 # ------------- done intptr types, emit int_fast types ------------
21034 if test "$ac_cv_type_int_fast32_t" != yes; then
21035 sed 's/^ *//' >> tmp-stdint.h <<EOF
21037 /* Define int_fast types. short is often slow */
21038 typedef int8_t int_fast8_t;
21039 typedef int int_fast16_t;
21040 typedef int32_t int_fast32_t;
21041 #ifdef _INT64_T
21042 typedef int64_t int_fast64_t;
21043 #endif
21045 typedef uint8_t uint_fast8_t;
21046 typedef unsigned int uint_fast16_t;
21047 typedef uint32_t uint_fast32_t;
21048 #ifdef _UINT64_T
21049 typedef uint64_t uint_fast64_t;
21050 #endif
21054 if test "$ac_cv_type_uintmax_t" != yes; then
21055 sed 's/^ *//' >> tmp-stdint.h <<EOF
21057 /* Define intmax based on what we found */
21058 #ifndef intmax_t
21059 #ifdef _INT64_T
21060 typedef int64_t intmax_t;
21061 #else
21062 typedef long intmax_t;
21063 #endif
21064 #endif
21065 #ifndef uintmax_t
21066 #ifdef _UINT64_T
21067 typedef uint64_t uintmax_t;
21068 #else
21069 typedef unsigned long uintmax_t;
21070 #endif
21071 #endif
21075 sed 's/^ *//' >> tmp-stdint.h <<EOF
21077 #endif /* GCC_GENERATED_STDINT_H */
21080 if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
21081 rm -f tmp-stdint.h
21082 else
21083 mv -f tmp-stdint.h gstdint.h
21088 esac
21089 done # for ac_tag
21092 as_fn_exit 0
21093 _ACEOF
21094 ac_clean_files=$ac_clean_files_save
21096 test $ac_write_fail = 0 ||
21097 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21100 # configure is writing to config.log, and then calls config.status.
21101 # config.status does its own redirection, appending to config.log.
21102 # Unfortunately, on DOS this fails, as config.log is still kept open
21103 # by configure, so config.status won't be able to write to it; its
21104 # output is simply discarded. So we exec the FD to /dev/null,
21105 # effectively closing config.log, so it can be properly (re)opened and
21106 # appended to by config.status. When coming back to configure, we
21107 # need to make the FD available again.
21108 if test "$no_create" != yes; then
21109 ac_cs_success=:
21110 ac_config_status_args=
21111 test "$silent" = yes &&
21112 ac_config_status_args="$ac_config_status_args --quiet"
21113 exec 5>/dev/null
21114 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21115 exec 5>>config.log
21116 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21117 # would make configure fail if this is the last instruction.
21118 $ac_cs_success || as_fn_exit 1
21120 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21121 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21122 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}