flags: add comment
[official-gcc.git] / libitm / configure
blob18fc2d3a10a782a104ed0c7f0595410b0f43fbdf
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_werror
818 enable_cet
819 with_gcc_major_version_only
821 ac_precious_vars='build_alias
822 host_alias
823 target_alias
825 CPPFLAGS
826 CXXCPP'
829 # Initialize some variables set by options.
830 ac_init_help=
831 ac_init_version=false
832 ac_unrecognized_opts=
833 ac_unrecognized_sep=
834 # The variables have the same names as the options, with
835 # dashes changed to underlines.
836 cache_file=/dev/null
837 exec_prefix=NONE
838 no_create=
839 no_recursion=
840 prefix=NONE
841 program_prefix=NONE
842 program_suffix=NONE
843 program_transform_name=s,x,x,
844 silent=
845 site=
846 srcdir=
847 verbose=
848 x_includes=NONE
849 x_libraries=NONE
851 # Installation directory options.
852 # These are left unexpanded so users can "make install exec_prefix=/foo"
853 # and all the variables that are supposed to be based on exec_prefix
854 # by default will actually change.
855 # Use braces instead of parens because sh, perl, etc. also accept them.
856 # (The list follows the same order as the GNU Coding Standards.)
857 bindir='${exec_prefix}/bin'
858 sbindir='${exec_prefix}/sbin'
859 libexecdir='${exec_prefix}/libexec'
860 datarootdir='${prefix}/share'
861 datadir='${datarootdir}'
862 sysconfdir='${prefix}/etc'
863 sharedstatedir='${prefix}/com'
864 localstatedir='${prefix}/var'
865 includedir='${prefix}/include'
866 oldincludedir='/usr/include'
867 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
868 infodir='${datarootdir}/info'
869 htmldir='${docdir}'
870 dvidir='${docdir}'
871 pdfdir='${docdir}'
872 psdir='${docdir}'
873 libdir='${exec_prefix}/lib'
874 localedir='${datarootdir}/locale'
875 mandir='${datarootdir}/man'
877 ac_prev=
878 ac_dashdash=
879 for ac_option
881 # If the previous option needs an argument, assign it.
882 if test -n "$ac_prev"; then
883 eval $ac_prev=\$ac_option
884 ac_prev=
885 continue
888 case $ac_option in
889 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
890 *=) ac_optarg= ;;
891 *) ac_optarg=yes ;;
892 esac
894 # Accept the important Cygnus configure options, so we can diagnose typos.
896 case $ac_dashdash$ac_option in
898 ac_dashdash=yes ;;
900 -bindir | --bindir | --bindi | --bind | --bin | --bi)
901 ac_prev=bindir ;;
902 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
903 bindir=$ac_optarg ;;
905 -build | --build | --buil | --bui | --bu)
906 ac_prev=build_alias ;;
907 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
908 build_alias=$ac_optarg ;;
910 -cache-file | --cache-file | --cache-fil | --cache-fi \
911 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
912 ac_prev=cache_file ;;
913 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
914 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
915 cache_file=$ac_optarg ;;
917 --config-cache | -C)
918 cache_file=config.cache ;;
920 -datadir | --datadir | --datadi | --datad)
921 ac_prev=datadir ;;
922 -datadir=* | --datadir=* | --datadi=* | --datad=*)
923 datadir=$ac_optarg ;;
925 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
926 | --dataroo | --dataro | --datar)
927 ac_prev=datarootdir ;;
928 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
929 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
930 datarootdir=$ac_optarg ;;
932 -disable-* | --disable-*)
933 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
934 # Reject names that are not valid shell variable names.
935 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
936 as_fn_error $? "invalid feature name: $ac_useropt"
937 ac_useropt_orig=$ac_useropt
938 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
939 case $ac_user_opts in
941 "enable_$ac_useropt"
942 "*) ;;
943 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
944 ac_unrecognized_sep=', ';;
945 esac
946 eval enable_$ac_useropt=no ;;
948 -docdir | --docdir | --docdi | --doc | --do)
949 ac_prev=docdir ;;
950 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
951 docdir=$ac_optarg ;;
953 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
954 ac_prev=dvidir ;;
955 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
956 dvidir=$ac_optarg ;;
958 -enable-* | --enable-*)
959 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
960 # Reject names that are not valid shell variable names.
961 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
962 as_fn_error $? "invalid feature name: $ac_useropt"
963 ac_useropt_orig=$ac_useropt
964 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
965 case $ac_user_opts in
967 "enable_$ac_useropt"
968 "*) ;;
969 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
970 ac_unrecognized_sep=', ';;
971 esac
972 eval enable_$ac_useropt=\$ac_optarg ;;
974 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
975 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
976 | --exec | --exe | --ex)
977 ac_prev=exec_prefix ;;
978 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
979 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
980 | --exec=* | --exe=* | --ex=*)
981 exec_prefix=$ac_optarg ;;
983 -gas | --gas | --ga | --g)
984 # Obsolete; use --with-gas.
985 with_gas=yes ;;
987 -help | --help | --hel | --he | -h)
988 ac_init_help=long ;;
989 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
990 ac_init_help=recursive ;;
991 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
992 ac_init_help=short ;;
994 -host | --host | --hos | --ho)
995 ac_prev=host_alias ;;
996 -host=* | --host=* | --hos=* | --ho=*)
997 host_alias=$ac_optarg ;;
999 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1000 ac_prev=htmldir ;;
1001 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1002 | --ht=*)
1003 htmldir=$ac_optarg ;;
1005 -includedir | --includedir | --includedi | --included | --include \
1006 | --includ | --inclu | --incl | --inc)
1007 ac_prev=includedir ;;
1008 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1009 | --includ=* | --inclu=* | --incl=* | --inc=*)
1010 includedir=$ac_optarg ;;
1012 -infodir | --infodir | --infodi | --infod | --info | --inf)
1013 ac_prev=infodir ;;
1014 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1015 infodir=$ac_optarg ;;
1017 -libdir | --libdir | --libdi | --libd)
1018 ac_prev=libdir ;;
1019 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1020 libdir=$ac_optarg ;;
1022 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1023 | --libexe | --libex | --libe)
1024 ac_prev=libexecdir ;;
1025 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1026 | --libexe=* | --libex=* | --libe=*)
1027 libexecdir=$ac_optarg ;;
1029 -localedir | --localedir | --localedi | --localed | --locale)
1030 ac_prev=localedir ;;
1031 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1032 localedir=$ac_optarg ;;
1034 -localstatedir | --localstatedir | --localstatedi | --localstated \
1035 | --localstate | --localstat | --localsta | --localst | --locals)
1036 ac_prev=localstatedir ;;
1037 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1038 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1039 localstatedir=$ac_optarg ;;
1041 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1042 ac_prev=mandir ;;
1043 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1044 mandir=$ac_optarg ;;
1046 -nfp | --nfp | --nf)
1047 # Obsolete; use --without-fp.
1048 with_fp=no ;;
1050 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1051 | --no-cr | --no-c | -n)
1052 no_create=yes ;;
1054 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1055 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1056 no_recursion=yes ;;
1058 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1059 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1060 | --oldin | --oldi | --old | --ol | --o)
1061 ac_prev=oldincludedir ;;
1062 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1063 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1064 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1065 oldincludedir=$ac_optarg ;;
1067 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1068 ac_prev=prefix ;;
1069 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1070 prefix=$ac_optarg ;;
1072 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1073 | --program-pre | --program-pr | --program-p)
1074 ac_prev=program_prefix ;;
1075 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1076 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1077 program_prefix=$ac_optarg ;;
1079 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1080 | --program-suf | --program-su | --program-s)
1081 ac_prev=program_suffix ;;
1082 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1083 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1084 program_suffix=$ac_optarg ;;
1086 -program-transform-name | --program-transform-name \
1087 | --program-transform-nam | --program-transform-na \
1088 | --program-transform-n | --program-transform- \
1089 | --program-transform | --program-transfor \
1090 | --program-transfo | --program-transf \
1091 | --program-trans | --program-tran \
1092 | --progr-tra | --program-tr | --program-t)
1093 ac_prev=program_transform_name ;;
1094 -program-transform-name=* | --program-transform-name=* \
1095 | --program-transform-nam=* | --program-transform-na=* \
1096 | --program-transform-n=* | --program-transform-=* \
1097 | --program-transform=* | --program-transfor=* \
1098 | --program-transfo=* | --program-transf=* \
1099 | --program-trans=* | --program-tran=* \
1100 | --progr-tra=* | --program-tr=* | --program-t=*)
1101 program_transform_name=$ac_optarg ;;
1103 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1104 ac_prev=pdfdir ;;
1105 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1106 pdfdir=$ac_optarg ;;
1108 -psdir | --psdir | --psdi | --psd | --ps)
1109 ac_prev=psdir ;;
1110 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1111 psdir=$ac_optarg ;;
1113 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1114 | -silent | --silent | --silen | --sile | --sil)
1115 silent=yes ;;
1117 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1118 ac_prev=sbindir ;;
1119 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1120 | --sbi=* | --sb=*)
1121 sbindir=$ac_optarg ;;
1123 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1124 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1125 | --sharedst | --shareds | --shared | --share | --shar \
1126 | --sha | --sh)
1127 ac_prev=sharedstatedir ;;
1128 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1129 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1130 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1131 | --sha=* | --sh=*)
1132 sharedstatedir=$ac_optarg ;;
1134 -site | --site | --sit)
1135 ac_prev=site ;;
1136 -site=* | --site=* | --sit=*)
1137 site=$ac_optarg ;;
1139 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1140 ac_prev=srcdir ;;
1141 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1142 srcdir=$ac_optarg ;;
1144 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1145 | --syscon | --sysco | --sysc | --sys | --sy)
1146 ac_prev=sysconfdir ;;
1147 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1148 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1149 sysconfdir=$ac_optarg ;;
1151 -target | --target | --targe | --targ | --tar | --ta | --t)
1152 ac_prev=target_alias ;;
1153 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1154 target_alias=$ac_optarg ;;
1156 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1157 verbose=yes ;;
1159 -version | --version | --versio | --versi | --vers | -V)
1160 ac_init_version=: ;;
1162 -with-* | --with-*)
1163 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1164 # Reject names that are not valid shell variable names.
1165 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1166 as_fn_error $? "invalid package name: $ac_useropt"
1167 ac_useropt_orig=$ac_useropt
1168 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1169 case $ac_user_opts in
1171 "with_$ac_useropt"
1172 "*) ;;
1173 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1174 ac_unrecognized_sep=', ';;
1175 esac
1176 eval with_$ac_useropt=\$ac_optarg ;;
1178 -without-* | --without-*)
1179 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1180 # Reject names that are not valid shell variable names.
1181 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1182 as_fn_error $? "invalid package name: $ac_useropt"
1183 ac_useropt_orig=$ac_useropt
1184 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1185 case $ac_user_opts in
1187 "with_$ac_useropt"
1188 "*) ;;
1189 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1190 ac_unrecognized_sep=', ';;
1191 esac
1192 eval with_$ac_useropt=no ;;
1194 --x)
1195 # Obsolete; use --with-x.
1196 with_x=yes ;;
1198 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1199 | --x-incl | --x-inc | --x-in | --x-i)
1200 ac_prev=x_includes ;;
1201 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1202 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1203 x_includes=$ac_optarg ;;
1205 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1206 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1207 ac_prev=x_libraries ;;
1208 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1209 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1210 x_libraries=$ac_optarg ;;
1212 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1213 Try \`$0 --help' for more information"
1216 *=*)
1217 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1218 # Reject names that are not valid shell variable names.
1219 case $ac_envvar in #(
1220 '' | [0-9]* | *[!_$as_cr_alnum]* )
1221 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1222 esac
1223 eval $ac_envvar=\$ac_optarg
1224 export $ac_envvar ;;
1227 # FIXME: should be removed in autoconf 3.0.
1228 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1229 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1230 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1231 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1234 esac
1235 done
1237 if test -n "$ac_prev"; then
1238 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1239 as_fn_error $? "missing argument to $ac_option"
1242 if test -n "$ac_unrecognized_opts"; then
1243 case $enable_option_checking in
1244 no) ;;
1245 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1246 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1247 esac
1250 # Check all directory arguments for consistency.
1251 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1252 datadir sysconfdir sharedstatedir localstatedir includedir \
1253 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1254 libdir localedir mandir
1256 eval ac_val=\$$ac_var
1257 # Remove trailing slashes.
1258 case $ac_val in
1259 */ )
1260 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1261 eval $ac_var=\$ac_val;;
1262 esac
1263 # Be sure to have absolute directory names.
1264 case $ac_val in
1265 [\\/$]* | ?:[\\/]* ) continue;;
1266 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1267 esac
1268 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1269 done
1271 # There might be people who depend on the old broken behavior: `$host'
1272 # used to hold the argument of --host etc.
1273 # FIXME: To remove some day.
1274 build=$build_alias
1275 host=$host_alias
1276 target=$target_alias
1278 # FIXME: To remove some day.
1279 if test "x$host_alias" != x; then
1280 if test "x$build_alias" = x; then
1281 cross_compiling=maybe
1282 elif test "x$build_alias" != "x$host_alias"; then
1283 cross_compiling=yes
1287 ac_tool_prefix=
1288 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1290 test "$silent" = yes && exec 6>/dev/null
1293 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1294 ac_ls_di=`ls -di .` &&
1295 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1296 as_fn_error $? "working directory cannot be determined"
1297 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1298 as_fn_error $? "pwd does not report name of working directory"
1301 # Find the source files, if location was not specified.
1302 if test -z "$srcdir"; then
1303 ac_srcdir_defaulted=yes
1304 # Try the directory containing this script, then the parent directory.
1305 ac_confdir=`$as_dirname -- "$as_myself" ||
1306 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1307 X"$as_myself" : 'X\(//\)[^/]' \| \
1308 X"$as_myself" : 'X\(//\)$' \| \
1309 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1310 $as_echo X"$as_myself" |
1311 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1312 s//\1/
1315 /^X\(\/\/\)[^/].*/{
1316 s//\1/
1319 /^X\(\/\/\)$/{
1320 s//\1/
1323 /^X\(\/\).*/{
1324 s//\1/
1327 s/.*/./; q'`
1328 srcdir=$ac_confdir
1329 if test ! -r "$srcdir/$ac_unique_file"; then
1330 srcdir=..
1332 else
1333 ac_srcdir_defaulted=no
1335 if test ! -r "$srcdir/$ac_unique_file"; then
1336 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1337 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1339 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1340 ac_abs_confdir=`(
1341 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1342 pwd)`
1343 # When building in place, set srcdir=.
1344 if test "$ac_abs_confdir" = "$ac_pwd"; then
1345 srcdir=.
1347 # Remove unnecessary trailing slashes from srcdir.
1348 # Double slashes in file names in object file debugging info
1349 # mess up M-x gdb in Emacs.
1350 case $srcdir in
1351 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1352 esac
1353 for ac_var in $ac_precious_vars; do
1354 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1355 eval ac_env_${ac_var}_value=\$${ac_var}
1356 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1357 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1358 done
1361 # Report the --help message.
1363 if test "$ac_init_help" = "long"; then
1364 # Omit some internal or obsolete options to make the list less imposing.
1365 # This message is too long to be a string in the A/UX 3.1 sh.
1366 cat <<_ACEOF
1367 \`configure' configures GNU TM Runtime Library 1.0 to adapt to many kinds of systems.
1369 Usage: $0 [OPTION]... [VAR=VALUE]...
1371 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1372 VAR=VALUE. See below for descriptions of some of the useful variables.
1374 Defaults for the options are specified in brackets.
1376 Configuration:
1377 -h, --help display this help and exit
1378 --help=short display options specific to this package
1379 --help=recursive display the short help of all the included packages
1380 -V, --version display version information and exit
1381 -q, --quiet, --silent do not print \`checking ...' messages
1382 --cache-file=FILE cache test results in FILE [disabled]
1383 -C, --config-cache alias for \`--cache-file=config.cache'
1384 -n, --no-create do not create output files
1385 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1387 Installation directories:
1388 --prefix=PREFIX install architecture-independent files in PREFIX
1389 [$ac_default_prefix]
1390 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1391 [PREFIX]
1393 By default, \`make install' will install all the files in
1394 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1395 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1396 for instance \`--prefix=\$HOME'.
1398 For better control, use the options below.
1400 Fine tuning of the installation directories:
1401 --bindir=DIR user executables [EPREFIX/bin]
1402 --sbindir=DIR system admin executables [EPREFIX/sbin]
1403 --libexecdir=DIR program executables [EPREFIX/libexec]
1404 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1405 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1406 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1407 --libdir=DIR object code libraries [EPREFIX/lib]
1408 --includedir=DIR C header files [PREFIX/include]
1409 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1410 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1411 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1412 --infodir=DIR info documentation [DATAROOTDIR/info]
1413 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1414 --mandir=DIR man documentation [DATAROOTDIR/man]
1415 --docdir=DIR documentation root [DATAROOTDIR/doc/libitm]
1416 --htmldir=DIR html documentation [DOCDIR]
1417 --dvidir=DIR dvi documentation [DOCDIR]
1418 --pdfdir=DIR pdf documentation [DOCDIR]
1419 --psdir=DIR ps documentation [DOCDIR]
1420 _ACEOF
1422 cat <<\_ACEOF
1424 Program names:
1425 --program-prefix=PREFIX prepend PREFIX to installed program names
1426 --program-suffix=SUFFIX append SUFFIX to installed program names
1427 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1429 System types:
1430 --build=BUILD configure for building on BUILD [guessed]
1431 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1432 --target=TARGET configure for building compilers for TARGET [HOST]
1433 _ACEOF
1436 if test -n "$ac_init_help"; then
1437 case $ac_init_help in
1438 short | recursive ) echo "Configuration of GNU TM Runtime Library 1.0:";;
1439 esac
1440 cat <<\_ACEOF
1442 Optional Features:
1443 --disable-option-checking ignore unrecognized --enable/--with options
1444 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1445 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1446 --enable-version-specific-runtime-libs
1447 Specify that runtime libraries should be installed
1448 in a compiler-specific directory [default=no]
1449 --enable-generated-files-in-srcdir
1450 put copies of generated files in source dir intended
1451 for creating source tarballs for users without
1452 texinfo bison or flex. [default=no]
1453 --enable-silent-rules less verbose build output (undo: "make V=1")
1454 --disable-silent-rules verbose build output (undo: "make V=0")
1455 --enable-multilib build many library versions (default)
1456 --enable-dependency-tracking
1457 do not reject slow dependency extractors
1458 --disable-dependency-tracking
1459 speeds up one-time build
1460 --enable-shared[=PKGS] build shared libraries [default=yes]
1461 --enable-static[=PKGS] build static libraries [default=yes]
1462 --enable-fast-install[=PKGS]
1463 optimize for fast installation [default=yes]
1464 --disable-libtool-lock avoid locking (might break parallel builds)
1465 --enable-maintainer-mode
1466 enable make rules and dependencies not useful (and
1467 sometimes confusing) to the casual installer
1468 --enable-linux-futex use the Linux futex system call [default=default]
1469 --enable-tls Use thread-local storage [default=yes]
1470 --enable-symvers=STYLE enables symbol versioning of the shared library
1471 [default=yes]
1472 --disable-werror disable building with -Werror
1473 --enable-cet enable Intel CET in target libraries [default=auto]
1475 Optional Packages:
1476 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1477 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1478 --with-toolexeclibdir=DIR
1479 install libraries built with a cross compiler within
1481 --with-pic try to use only PIC/non-PIC objects [default=use
1482 both]
1483 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1484 --with-gcc-major-version-only
1485 use only GCC major number in filesystem paths
1487 Some influential environment variables:
1488 CC C compiler command
1489 CFLAGS C compiler flags
1490 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1491 nonstandard directory <lib dir>
1492 LIBS libraries to pass to the linker, e.g. -l<library>
1493 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1494 you have headers in a nonstandard directory <include dir>
1495 CXX C++ compiler command
1496 CXXFLAGS C++ compiler flags
1497 CCAS assembler compiler command (defaults to CC)
1498 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1499 CPP C preprocessor
1500 CXXCPP C++ preprocessor
1502 Use these variables to override the choices made by `configure' or to help
1503 it to find libraries and programs with nonstandard names/locations.
1505 Report bugs to the package provider.
1506 GNU TM Runtime Library home page: <http://www.gnu.org/software/libitm/>.
1507 General help using GNU software: <http://www.gnu.org/gethelp/>.
1508 _ACEOF
1509 ac_status=$?
1512 if test "$ac_init_help" = "recursive"; then
1513 # If there are subdirs, report their specific --help.
1514 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1515 test -d "$ac_dir" ||
1516 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1517 continue
1518 ac_builddir=.
1520 case "$ac_dir" in
1521 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1523 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1524 # A ".." for each directory in $ac_dir_suffix.
1525 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1526 case $ac_top_builddir_sub in
1527 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1528 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1529 esac ;;
1530 esac
1531 ac_abs_top_builddir=$ac_pwd
1532 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1533 # for backward compatibility:
1534 ac_top_builddir=$ac_top_build_prefix
1536 case $srcdir in
1537 .) # We are building in place.
1538 ac_srcdir=.
1539 ac_top_srcdir=$ac_top_builddir_sub
1540 ac_abs_top_srcdir=$ac_pwd ;;
1541 [\\/]* | ?:[\\/]* ) # Absolute name.
1542 ac_srcdir=$srcdir$ac_dir_suffix;
1543 ac_top_srcdir=$srcdir
1544 ac_abs_top_srcdir=$srcdir ;;
1545 *) # Relative name.
1546 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1547 ac_top_srcdir=$ac_top_build_prefix$srcdir
1548 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1549 esac
1550 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1552 cd "$ac_dir" || { ac_status=$?; continue; }
1553 # Check for guested configure.
1554 if test -f "$ac_srcdir/configure.gnu"; then
1555 echo &&
1556 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1557 elif test -f "$ac_srcdir/configure"; then
1558 echo &&
1559 $SHELL "$ac_srcdir/configure" --help=recursive
1560 else
1561 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1562 fi || ac_status=$?
1563 cd "$ac_pwd" || { ac_status=$?; break; }
1564 done
1567 test -n "$ac_init_help" && exit $ac_status
1568 if $ac_init_version; then
1569 cat <<\_ACEOF
1570 GNU TM Runtime Library configure 1.0
1571 generated by GNU Autoconf 2.69
1573 Copyright (C) 2012 Free Software Foundation, Inc.
1574 This configure script is free software; the Free Software Foundation
1575 gives unlimited permission to copy, distribute and modify it.
1576 _ACEOF
1577 exit
1580 ## ------------------------ ##
1581 ## Autoconf initialization. ##
1582 ## ------------------------ ##
1584 # ac_fn_c_try_compile LINENO
1585 # --------------------------
1586 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1587 ac_fn_c_try_compile ()
1589 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1590 rm -f conftest.$ac_objext
1591 if { { ac_try="$ac_compile"
1592 case "(($ac_try" in
1593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1594 *) ac_try_echo=$ac_try;;
1595 esac
1596 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1597 $as_echo "$ac_try_echo"; } >&5
1598 (eval "$ac_compile") 2>conftest.err
1599 ac_status=$?
1600 if test -s conftest.err; then
1601 grep -v '^ *+' conftest.err >conftest.er1
1602 cat conftest.er1 >&5
1603 mv -f conftest.er1 conftest.err
1605 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1606 test $ac_status = 0; } && {
1607 test -z "$ac_c_werror_flag" ||
1608 test ! -s conftest.err
1609 } && test -s conftest.$ac_objext; then :
1610 ac_retval=0
1611 else
1612 $as_echo "$as_me: failed program was:" >&5
1613 sed 's/^/| /' conftest.$ac_ext >&5
1615 ac_retval=1
1617 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1618 as_fn_set_status $ac_retval
1620 } # ac_fn_c_try_compile
1622 # ac_fn_cxx_try_compile LINENO
1623 # ----------------------------
1624 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1625 ac_fn_cxx_try_compile ()
1627 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1628 rm -f conftest.$ac_objext
1629 if { { ac_try="$ac_compile"
1630 case "(($ac_try" in
1631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1632 *) ac_try_echo=$ac_try;;
1633 esac
1634 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1635 $as_echo "$ac_try_echo"; } >&5
1636 (eval "$ac_compile") 2>conftest.err
1637 ac_status=$?
1638 if test -s conftest.err; then
1639 grep -v '^ *+' conftest.err >conftest.er1
1640 cat conftest.er1 >&5
1641 mv -f conftest.er1 conftest.err
1643 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1644 test $ac_status = 0; } && {
1645 test -z "$ac_cxx_werror_flag" ||
1646 test ! -s conftest.err
1647 } && test -s conftest.$ac_objext; then :
1648 ac_retval=0
1649 else
1650 $as_echo "$as_me: failed program was:" >&5
1651 sed 's/^/| /' conftest.$ac_ext >&5
1653 ac_retval=1
1655 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1656 as_fn_set_status $ac_retval
1658 } # ac_fn_cxx_try_compile
1660 # ac_fn_c_try_link LINENO
1661 # -----------------------
1662 # Try to link conftest.$ac_ext, and return whether this succeeded.
1663 ac_fn_c_try_link ()
1665 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1666 rm -f conftest.$ac_objext conftest$ac_exeext
1667 if { { ac_try="$ac_link"
1668 case "(($ac_try" in
1669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1670 *) ac_try_echo=$ac_try;;
1671 esac
1672 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1673 $as_echo "$ac_try_echo"; } >&5
1674 (eval "$ac_link") 2>conftest.err
1675 ac_status=$?
1676 if test -s conftest.err; then
1677 grep -v '^ *+' conftest.err >conftest.er1
1678 cat conftest.er1 >&5
1679 mv -f conftest.er1 conftest.err
1681 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1682 test $ac_status = 0; } && {
1683 test -z "$ac_c_werror_flag" ||
1684 test ! -s conftest.err
1685 } && test -s conftest$ac_exeext && {
1686 test "$cross_compiling" = yes ||
1687 test -x conftest$ac_exeext
1688 }; then :
1689 ac_retval=0
1690 else
1691 $as_echo "$as_me: failed program was:" >&5
1692 sed 's/^/| /' conftest.$ac_ext >&5
1694 ac_retval=1
1696 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1697 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1698 # interfere with the next link command; also delete a directory that is
1699 # left behind by Apple's compiler. We do this before executing the actions.
1700 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1701 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1702 as_fn_set_status $ac_retval
1704 } # ac_fn_c_try_link
1706 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1707 # -------------------------------------------------------
1708 # Tests whether HEADER exists and can be compiled using the include files in
1709 # INCLUDES, setting the cache variable VAR accordingly.
1710 ac_fn_c_check_header_compile ()
1712 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1714 $as_echo_n "checking for $2... " >&6; }
1715 if eval \${$3+:} false; then :
1716 $as_echo_n "(cached) " >&6
1717 else
1718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1719 /* end confdefs.h. */
1721 #include <$2>
1722 _ACEOF
1723 if ac_fn_c_try_compile "$LINENO"; then :
1724 eval "$3=yes"
1725 else
1726 eval "$3=no"
1728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1730 eval ac_res=\$$3
1731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1732 $as_echo "$ac_res" >&6; }
1733 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1735 } # ac_fn_c_check_header_compile
1737 # ac_fn_c_try_cpp LINENO
1738 # ----------------------
1739 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1740 ac_fn_c_try_cpp ()
1742 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1743 if { { ac_try="$ac_cpp conftest.$ac_ext"
1744 case "(($ac_try" in
1745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1746 *) ac_try_echo=$ac_try;;
1747 esac
1748 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1749 $as_echo "$ac_try_echo"; } >&5
1750 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1751 ac_status=$?
1752 if test -s conftest.err; then
1753 grep -v '^ *+' conftest.err >conftest.er1
1754 cat conftest.er1 >&5
1755 mv -f conftest.er1 conftest.err
1757 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1758 test $ac_status = 0; } > conftest.i && {
1759 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1760 test ! -s conftest.err
1761 }; then :
1762 ac_retval=0
1763 else
1764 $as_echo "$as_me: failed program was:" >&5
1765 sed 's/^/| /' conftest.$ac_ext >&5
1767 ac_retval=1
1769 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1770 as_fn_set_status $ac_retval
1772 } # ac_fn_c_try_cpp
1774 # ac_fn_c_try_run LINENO
1775 # ----------------------
1776 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1777 # that executables *can* be run.
1778 ac_fn_c_try_run ()
1780 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1781 if { { ac_try="$ac_link"
1782 case "(($ac_try" in
1783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1784 *) ac_try_echo=$ac_try;;
1785 esac
1786 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1787 $as_echo "$ac_try_echo"; } >&5
1788 (eval "$ac_link") 2>&5
1789 ac_status=$?
1790 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1791 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1792 { { case "(($ac_try" in
1793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1794 *) ac_try_echo=$ac_try;;
1795 esac
1796 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1797 $as_echo "$ac_try_echo"; } >&5
1798 (eval "$ac_try") 2>&5
1799 ac_status=$?
1800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1801 test $ac_status = 0; }; }; then :
1802 ac_retval=0
1803 else
1804 $as_echo "$as_me: program exited with status $ac_status" >&5
1805 $as_echo "$as_me: failed program was:" >&5
1806 sed 's/^/| /' conftest.$ac_ext >&5
1808 ac_retval=$ac_status
1810 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1811 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1812 as_fn_set_status $ac_retval
1814 } # ac_fn_c_try_run
1816 # ac_fn_c_check_func LINENO FUNC VAR
1817 # ----------------------------------
1818 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1819 ac_fn_c_check_func ()
1821 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1823 $as_echo_n "checking for $2... " >&6; }
1824 if eval \${$3+:} false; then :
1825 $as_echo_n "(cached) " >&6
1826 else
1827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1828 /* end confdefs.h. */
1829 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1830 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1831 #define $2 innocuous_$2
1833 /* System header to define __stub macros and hopefully few prototypes,
1834 which can conflict with char $2 (); below.
1835 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1836 <limits.h> exists even on freestanding compilers. */
1838 #ifdef __STDC__
1839 # include <limits.h>
1840 #else
1841 # include <assert.h>
1842 #endif
1844 #undef $2
1846 /* Override any GCC internal prototype to avoid an error.
1847 Use char because int might match the return type of a GCC
1848 builtin and then its argument prototype would still apply. */
1849 #ifdef __cplusplus
1850 extern "C"
1851 #endif
1852 char $2 ();
1853 /* The GNU C library defines this for functions which it implements
1854 to always fail with ENOSYS. Some functions are actually named
1855 something starting with __ and the normal name is an alias. */
1856 #if defined __stub_$2 || defined __stub___$2
1857 choke me
1858 #endif
1861 main ()
1863 return $2 ();
1865 return 0;
1867 _ACEOF
1868 if ac_fn_c_try_link "$LINENO"; then :
1869 eval "$3=yes"
1870 else
1871 eval "$3=no"
1873 rm -f core conftest.err conftest.$ac_objext \
1874 conftest$ac_exeext conftest.$ac_ext
1876 eval ac_res=\$$3
1877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1878 $as_echo "$ac_res" >&6; }
1879 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1881 } # ac_fn_c_check_func
1883 # ac_fn_cxx_try_cpp LINENO
1884 # ------------------------
1885 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1886 ac_fn_cxx_try_cpp ()
1888 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1889 if { { ac_try="$ac_cpp conftest.$ac_ext"
1890 case "(($ac_try" in
1891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1892 *) ac_try_echo=$ac_try;;
1893 esac
1894 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1895 $as_echo "$ac_try_echo"; } >&5
1896 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1897 ac_status=$?
1898 if test -s conftest.err; then
1899 grep -v '^ *+' conftest.err >conftest.er1
1900 cat conftest.er1 >&5
1901 mv -f conftest.er1 conftest.err
1903 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1904 test $ac_status = 0; } > conftest.i && {
1905 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1906 test ! -s conftest.err
1907 }; then :
1908 ac_retval=0
1909 else
1910 $as_echo "$as_me: failed program was:" >&5
1911 sed 's/^/| /' conftest.$ac_ext >&5
1913 ac_retval=1
1915 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1916 as_fn_set_status $ac_retval
1918 } # ac_fn_cxx_try_cpp
1920 # ac_fn_cxx_try_link LINENO
1921 # -------------------------
1922 # Try to link conftest.$ac_ext, and return whether this succeeded.
1923 ac_fn_cxx_try_link ()
1925 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1926 rm -f conftest.$ac_objext conftest$ac_exeext
1927 if { { ac_try="$ac_link"
1928 case "(($ac_try" in
1929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1930 *) ac_try_echo=$ac_try;;
1931 esac
1932 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1933 $as_echo "$ac_try_echo"; } >&5
1934 (eval "$ac_link") 2>conftest.err
1935 ac_status=$?
1936 if test -s conftest.err; then
1937 grep -v '^ *+' conftest.err >conftest.er1
1938 cat conftest.er1 >&5
1939 mv -f conftest.er1 conftest.err
1941 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1942 test $ac_status = 0; } && {
1943 test -z "$ac_cxx_werror_flag" ||
1944 test ! -s conftest.err
1945 } && test -s conftest$ac_exeext && {
1946 test "$cross_compiling" = yes ||
1947 test -x conftest$ac_exeext
1948 }; then :
1949 ac_retval=0
1950 else
1951 $as_echo "$as_me: failed program was:" >&5
1952 sed 's/^/| /' conftest.$ac_ext >&5
1954 ac_retval=1
1956 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1957 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1958 # interfere with the next link command; also delete a directory that is
1959 # left behind by Apple's compiler. We do this before executing the actions.
1960 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1961 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1962 as_fn_set_status $ac_retval
1964 } # ac_fn_cxx_try_link
1966 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1967 # -------------------------------------------------------
1968 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1969 # the include files in INCLUDES and setting the cache variable VAR
1970 # accordingly.
1971 ac_fn_c_check_header_mongrel ()
1973 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1974 if eval \${$3+:} false; then :
1975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1976 $as_echo_n "checking for $2... " >&6; }
1977 if eval \${$3+:} false; then :
1978 $as_echo_n "(cached) " >&6
1980 eval ac_res=\$$3
1981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1982 $as_echo "$ac_res" >&6; }
1983 else
1984 # Is the header compilable?
1985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1986 $as_echo_n "checking $2 usability... " >&6; }
1987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1988 /* end confdefs.h. */
1990 #include <$2>
1991 _ACEOF
1992 if ac_fn_c_try_compile "$LINENO"; then :
1993 ac_header_compiler=yes
1994 else
1995 ac_header_compiler=no
1997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1999 $as_echo "$ac_header_compiler" >&6; }
2001 # Is the header present?
2002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2003 $as_echo_n "checking $2 presence... " >&6; }
2004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2005 /* end confdefs.h. */
2006 #include <$2>
2007 _ACEOF
2008 if ac_fn_c_try_cpp "$LINENO"; then :
2009 ac_header_preproc=yes
2010 else
2011 ac_header_preproc=no
2013 rm -f conftest.err conftest.i conftest.$ac_ext
2014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2015 $as_echo "$ac_header_preproc" >&6; }
2017 # So? What about this header?
2018 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2019 yes:no: )
2020 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2021 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2022 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2023 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2025 no:yes:* )
2026 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2027 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2028 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2029 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2030 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2031 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2032 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2033 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2034 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2035 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2037 esac
2038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2039 $as_echo_n "checking for $2... " >&6; }
2040 if eval \${$3+:} false; then :
2041 $as_echo_n "(cached) " >&6
2042 else
2043 eval "$3=\$ac_header_compiler"
2045 eval ac_res=\$$3
2046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2047 $as_echo "$ac_res" >&6; }
2049 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2051 } # ac_fn_c_check_header_mongrel
2053 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2054 # -------------------------------------------
2055 # Tests whether TYPE exists after having included INCLUDES, setting cache
2056 # variable VAR accordingly.
2057 ac_fn_c_check_type ()
2059 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2061 $as_echo_n "checking for $2... " >&6; }
2062 if eval \${$3+:} false; then :
2063 $as_echo_n "(cached) " >&6
2064 else
2065 eval "$3=no"
2066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2067 /* end confdefs.h. */
2070 main ()
2072 if (sizeof ($2))
2073 return 0;
2075 return 0;
2077 _ACEOF
2078 if ac_fn_c_try_compile "$LINENO"; then :
2079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2080 /* end confdefs.h. */
2083 main ()
2085 if (sizeof (($2)))
2086 return 0;
2088 return 0;
2090 _ACEOF
2091 if ac_fn_c_try_compile "$LINENO"; then :
2093 else
2094 eval "$3=yes"
2096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2100 eval ac_res=\$$3
2101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2102 $as_echo "$ac_res" >&6; }
2103 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2105 } # ac_fn_c_check_type
2107 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2108 # --------------------------------------------
2109 # Tries to find the compile-time value of EXPR in a program that includes
2110 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2111 # computed
2112 ac_fn_c_compute_int ()
2114 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2115 if test "$cross_compiling" = yes; then
2116 # Depending upon the size, compute the lo and hi bounds.
2117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2118 /* end confdefs.h. */
2121 main ()
2123 static int test_array [1 - 2 * !(($2) >= 0)];
2124 test_array [0] = 0;
2125 return test_array [0];
2128 return 0;
2130 _ACEOF
2131 if ac_fn_c_try_compile "$LINENO"; then :
2132 ac_lo=0 ac_mid=0
2133 while :; do
2134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2135 /* end confdefs.h. */
2138 main ()
2140 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2141 test_array [0] = 0;
2142 return test_array [0];
2145 return 0;
2147 _ACEOF
2148 if ac_fn_c_try_compile "$LINENO"; then :
2149 ac_hi=$ac_mid; break
2150 else
2151 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2152 if test $ac_lo -le $ac_mid; then
2153 ac_lo= ac_hi=
2154 break
2156 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2159 done
2160 else
2161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2162 /* end confdefs.h. */
2165 main ()
2167 static int test_array [1 - 2 * !(($2) < 0)];
2168 test_array [0] = 0;
2169 return test_array [0];
2172 return 0;
2174 _ACEOF
2175 if ac_fn_c_try_compile "$LINENO"; then :
2176 ac_hi=-1 ac_mid=-1
2177 while :; do
2178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2179 /* end confdefs.h. */
2182 main ()
2184 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2185 test_array [0] = 0;
2186 return test_array [0];
2189 return 0;
2191 _ACEOF
2192 if ac_fn_c_try_compile "$LINENO"; then :
2193 ac_lo=$ac_mid; break
2194 else
2195 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2196 if test $ac_mid -le $ac_hi; then
2197 ac_lo= ac_hi=
2198 break
2200 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2203 done
2204 else
2205 ac_lo= ac_hi=
2207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2210 # Binary search between lo and hi bounds.
2211 while test "x$ac_lo" != "x$ac_hi"; do
2212 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2214 /* end confdefs.h. */
2217 main ()
2219 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2220 test_array [0] = 0;
2221 return test_array [0];
2224 return 0;
2226 _ACEOF
2227 if ac_fn_c_try_compile "$LINENO"; then :
2228 ac_hi=$ac_mid
2229 else
2230 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2233 done
2234 case $ac_lo in #((
2235 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2236 '') ac_retval=1 ;;
2237 esac
2238 else
2239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2240 /* end confdefs.h. */
2242 static long int longval () { return $2; }
2243 static unsigned long int ulongval () { return $2; }
2244 #include <stdio.h>
2245 #include <stdlib.h>
2247 main ()
2250 FILE *f = fopen ("conftest.val", "w");
2251 if (! f)
2252 return 1;
2253 if (($2) < 0)
2255 long int i = longval ();
2256 if (i != ($2))
2257 return 1;
2258 fprintf (f, "%ld", i);
2260 else
2262 unsigned long int i = ulongval ();
2263 if (i != ($2))
2264 return 1;
2265 fprintf (f, "%lu", i);
2267 /* Do not output a trailing newline, as this causes \r\n confusion
2268 on some platforms. */
2269 return ferror (f) || fclose (f) != 0;
2272 return 0;
2274 _ACEOF
2275 if ac_fn_c_try_run "$LINENO"; then :
2276 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2277 else
2278 ac_retval=1
2280 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2281 conftest.$ac_objext conftest.beam conftest.$ac_ext
2282 rm -f conftest.val
2285 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2286 as_fn_set_status $ac_retval
2288 } # ac_fn_c_compute_int
2290 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2291 # ---------------------------------------------
2292 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2293 # accordingly.
2294 ac_fn_c_check_decl ()
2296 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2297 as_decl_name=`echo $2|sed 's/ *(.*//'`
2298 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2300 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2301 if eval \${$3+:} false; then :
2302 $as_echo_n "(cached) " >&6
2303 else
2304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2305 /* end confdefs.h. */
2308 main ()
2310 #ifndef $as_decl_name
2311 #ifdef __cplusplus
2312 (void) $as_decl_use;
2313 #else
2314 (void) $as_decl_name;
2315 #endif
2316 #endif
2319 return 0;
2321 _ACEOF
2322 if ac_fn_c_try_compile "$LINENO"; then :
2323 eval "$3=yes"
2324 else
2325 eval "$3=no"
2327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2329 eval ac_res=\$$3
2330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2331 $as_echo "$ac_res" >&6; }
2332 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2334 } # ac_fn_c_check_decl
2335 cat >config.log <<_ACEOF
2336 This file contains any messages produced by compilers while
2337 running configure, to aid debugging if configure makes a mistake.
2339 It was created by GNU TM Runtime Library $as_me 1.0, which was
2340 generated by GNU Autoconf 2.69. Invocation command line was
2342 $ $0 $@
2344 _ACEOF
2345 exec 5>>config.log
2347 cat <<_ASUNAME
2348 ## --------- ##
2349 ## Platform. ##
2350 ## --------- ##
2352 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2353 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2354 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2355 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2356 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2358 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2359 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2361 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2362 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2363 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2364 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2365 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2366 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2367 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2369 _ASUNAME
2371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2372 for as_dir in $PATH
2374 IFS=$as_save_IFS
2375 test -z "$as_dir" && as_dir=.
2376 $as_echo "PATH: $as_dir"
2377 done
2378 IFS=$as_save_IFS
2380 } >&5
2382 cat >&5 <<_ACEOF
2385 ## ----------- ##
2386 ## Core tests. ##
2387 ## ----------- ##
2389 _ACEOF
2392 # Keep a trace of the command line.
2393 # Strip out --no-create and --no-recursion so they do not pile up.
2394 # Strip out --silent because we don't want to record it for future runs.
2395 # Also quote any args containing shell meta-characters.
2396 # Make two passes to allow for proper duplicate-argument suppression.
2397 ac_configure_args=
2398 ac_configure_args0=
2399 ac_configure_args1=
2400 ac_must_keep_next=false
2401 for ac_pass in 1 2
2403 for ac_arg
2405 case $ac_arg in
2406 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2407 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2408 | -silent | --silent | --silen | --sile | --sil)
2409 continue ;;
2410 *\'*)
2411 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2412 esac
2413 case $ac_pass in
2414 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2416 as_fn_append ac_configure_args1 " '$ac_arg'"
2417 if test $ac_must_keep_next = true; then
2418 ac_must_keep_next=false # Got value, back to normal.
2419 else
2420 case $ac_arg in
2421 *=* | --config-cache | -C | -disable-* | --disable-* \
2422 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2423 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2424 | -with-* | --with-* | -without-* | --without-* | --x)
2425 case "$ac_configure_args0 " in
2426 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2427 esac
2429 -* ) ac_must_keep_next=true ;;
2430 esac
2432 as_fn_append ac_configure_args " '$ac_arg'"
2434 esac
2435 done
2436 done
2437 { ac_configure_args0=; unset ac_configure_args0;}
2438 { ac_configure_args1=; unset ac_configure_args1;}
2440 # When interrupted or exit'd, cleanup temporary files, and complete
2441 # config.log. We remove comments because anyway the quotes in there
2442 # would cause problems or look ugly.
2443 # WARNING: Use '\'' to represent an apostrophe within the trap.
2444 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2445 trap 'exit_status=$?
2446 # Save into config.log some information that might help in debugging.
2448 echo
2450 $as_echo "## ---------------- ##
2451 ## Cache variables. ##
2452 ## ---------------- ##"
2453 echo
2454 # The following way of writing the cache mishandles newlines in values,
2456 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2457 eval ac_val=\$$ac_var
2458 case $ac_val in #(
2459 *${as_nl}*)
2460 case $ac_var in #(
2461 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2462 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2463 esac
2464 case $ac_var in #(
2465 _ | IFS | as_nl) ;; #(
2466 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2467 *) { eval $ac_var=; unset $ac_var;} ;;
2468 esac ;;
2469 esac
2470 done
2471 (set) 2>&1 |
2472 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2473 *${as_nl}ac_space=\ *)
2474 sed -n \
2475 "s/'\''/'\''\\\\'\'''\''/g;
2476 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2477 ;; #(
2479 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2481 esac |
2482 sort
2484 echo
2486 $as_echo "## ----------------- ##
2487 ## Output variables. ##
2488 ## ----------------- ##"
2489 echo
2490 for ac_var in $ac_subst_vars
2492 eval ac_val=\$$ac_var
2493 case $ac_val in
2494 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2495 esac
2496 $as_echo "$ac_var='\''$ac_val'\''"
2497 done | sort
2498 echo
2500 if test -n "$ac_subst_files"; then
2501 $as_echo "## ------------------- ##
2502 ## File substitutions. ##
2503 ## ------------------- ##"
2504 echo
2505 for ac_var in $ac_subst_files
2507 eval ac_val=\$$ac_var
2508 case $ac_val in
2509 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2510 esac
2511 $as_echo "$ac_var='\''$ac_val'\''"
2512 done | sort
2513 echo
2516 if test -s confdefs.h; then
2517 $as_echo "## ----------- ##
2518 ## confdefs.h. ##
2519 ## ----------- ##"
2520 echo
2521 cat confdefs.h
2522 echo
2524 test "$ac_signal" != 0 &&
2525 $as_echo "$as_me: caught signal $ac_signal"
2526 $as_echo "$as_me: exit $exit_status"
2527 } >&5
2528 rm -f core *.core core.conftest.* &&
2529 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2530 exit $exit_status
2532 for ac_signal in 1 2 13 15; do
2533 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2534 done
2535 ac_signal=0
2537 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2538 rm -f -r conftest* confdefs.h
2540 $as_echo "/* confdefs.h */" > confdefs.h
2542 # Predefined preprocessor variables.
2544 cat >>confdefs.h <<_ACEOF
2545 #define PACKAGE_NAME "$PACKAGE_NAME"
2546 _ACEOF
2548 cat >>confdefs.h <<_ACEOF
2549 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2550 _ACEOF
2552 cat >>confdefs.h <<_ACEOF
2553 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2554 _ACEOF
2556 cat >>confdefs.h <<_ACEOF
2557 #define PACKAGE_STRING "$PACKAGE_STRING"
2558 _ACEOF
2560 cat >>confdefs.h <<_ACEOF
2561 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2562 _ACEOF
2564 cat >>confdefs.h <<_ACEOF
2565 #define PACKAGE_URL "$PACKAGE_URL"
2566 _ACEOF
2569 # Let the site file select an alternate cache file if it wants to.
2570 # Prefer an explicitly selected file to automatically selected ones.
2571 ac_site_file1=NONE
2572 ac_site_file2=NONE
2573 if test -n "$CONFIG_SITE"; then
2574 # We do not want a PATH search for config.site.
2575 case $CONFIG_SITE in #((
2576 -*) ac_site_file1=./$CONFIG_SITE;;
2577 */*) ac_site_file1=$CONFIG_SITE;;
2578 *) ac_site_file1=./$CONFIG_SITE;;
2579 esac
2580 elif test "x$prefix" != xNONE; then
2581 ac_site_file1=$prefix/share/config.site
2582 ac_site_file2=$prefix/etc/config.site
2583 else
2584 ac_site_file1=$ac_default_prefix/share/config.site
2585 ac_site_file2=$ac_default_prefix/etc/config.site
2587 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2589 test "x$ac_site_file" = xNONE && continue
2590 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2591 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2592 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2593 sed 's/^/| /' "$ac_site_file" >&5
2594 . "$ac_site_file" \
2595 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2596 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2597 as_fn_error $? "failed to load site script $ac_site_file
2598 See \`config.log' for more details" "$LINENO" 5; }
2600 done
2602 if test -r "$cache_file"; then
2603 # Some versions of bash will fail to source /dev/null (special files
2604 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2605 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2606 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2607 $as_echo "$as_me: loading cache $cache_file" >&6;}
2608 case $cache_file in
2609 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2610 *) . "./$cache_file";;
2611 esac
2613 else
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2615 $as_echo "$as_me: creating cache $cache_file" >&6;}
2616 >$cache_file
2619 # Check that the precious variables saved in the cache have kept the same
2620 # value.
2621 ac_cache_corrupted=false
2622 for ac_var in $ac_precious_vars; do
2623 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2624 eval ac_new_set=\$ac_env_${ac_var}_set
2625 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2626 eval ac_new_val=\$ac_env_${ac_var}_value
2627 case $ac_old_set,$ac_new_set in
2628 set,)
2629 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2630 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2631 ac_cache_corrupted=: ;;
2632 ,set)
2633 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2634 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2635 ac_cache_corrupted=: ;;
2636 ,);;
2638 if test "x$ac_old_val" != "x$ac_new_val"; then
2639 # differences in whitespace do not lead to failure.
2640 ac_old_val_w=`echo x $ac_old_val`
2641 ac_new_val_w=`echo x $ac_new_val`
2642 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2643 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2644 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2645 ac_cache_corrupted=:
2646 else
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2648 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2649 eval $ac_var=\$ac_old_val
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2652 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2653 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2654 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2655 fi;;
2656 esac
2657 # Pass precious variables to config.status.
2658 if test "$ac_new_set" = set; then
2659 case $ac_new_val in
2660 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2661 *) ac_arg=$ac_var=$ac_new_val ;;
2662 esac
2663 case " $ac_configure_args " in
2664 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2665 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2666 esac
2668 done
2669 if $ac_cache_corrupted; then
2670 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2671 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2672 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2673 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2674 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2676 ## -------------------- ##
2677 ## Main body of script. ##
2678 ## -------------------- ##
2680 ac_ext=c
2681 ac_cpp='$CPP $CPPFLAGS'
2682 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2683 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2684 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2690 ac_config_headers="$ac_config_headers config.h"
2693 # -------
2694 # Options
2695 # -------
2697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2698 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2699 # Check whether --enable-version-specific-runtime-libs was given.
2700 if test "${enable_version_specific_runtime_libs+set}" = set; then :
2701 enableval=$enable_version_specific_runtime_libs;
2702 case "$enableval" in
2703 yes|no) ;;
2704 *) as_fn_error $? "Unknown argument to enable/disable version-specific-runtime-libs" "$LINENO" 5 ;;
2705 esac
2707 else
2708 enable_version_specific_runtime_libs=no
2712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_version_specific_runtime_libs" >&5
2713 $as_echo "$enable_version_specific_runtime_libs" >&6; }
2715 # We would like our source tree to be readonly. However when releases or
2716 # pre-releases are generated, the flex/bison generated files as well as the
2717 # various formats of manuals need to be included along with the rest of the
2718 # sources. Therefore we have --enable-generated-files-in-srcdir to do
2719 # just that.
2720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-generated-files-in-srcdir" >&5
2721 $as_echo_n "checking for --enable-generated-files-in-srcdir... " >&6; }
2722 # Check whether --enable-generated-files-in-srcdir was given.
2723 if test "${enable_generated_files_in_srcdir+set}" = set; then :
2724 enableval=$enable_generated_files_in_srcdir;
2725 case "$enableval" in
2726 yes|no) ;;
2727 *) as_fn_error $? "Unknown argument to enable/disable generated-files-in-srcdir" "$LINENO" 5 ;;
2728 esac
2730 else
2731 enable_generated_files_in_srcdir=no
2735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_generated_files_in_srcdir" >&5
2736 $as_echo "$enable_generated_files_in_srcdir" >&6; }
2737 if test "$enable_generated_files_in_srcdir" = yes; then
2738 GENINSRC_TRUE=
2739 GENINSRC_FALSE='#'
2740 else
2741 GENINSRC_TRUE='#'
2742 GENINSRC_FALSE=
2747 # -------
2748 # -------
2750 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
2752 # You will slowly go insane if you do not grok the following fact: when
2753 # building this library, the top-level /target/ becomes the library's /host/.
2755 # configure then causes --target to default to --host, exactly like any
2756 # other package using autoconf. Therefore, 'target' and 'host' will
2757 # always be the same. This makes sense both for native and cross compilers
2758 # just think about it for a little while. :-)
2760 # Also, if this library is being configured as part of a cross compiler, the
2761 # top-level configure script will pass the "real" host as $with_cross_host.
2763 # Do not delete or change the following two lines. For why, see
2764 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
2765 ac_aux_dir=
2766 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2767 if test -f "$ac_dir/install-sh"; then
2768 ac_aux_dir=$ac_dir
2769 ac_install_sh="$ac_aux_dir/install-sh -c"
2770 break
2771 elif test -f "$ac_dir/install.sh"; then
2772 ac_aux_dir=$ac_dir
2773 ac_install_sh="$ac_aux_dir/install.sh -c"
2774 break
2775 elif test -f "$ac_dir/shtool"; then
2776 ac_aux_dir=$ac_dir
2777 ac_install_sh="$ac_aux_dir/shtool install -c"
2778 break
2780 done
2781 if test -z "$ac_aux_dir"; then
2782 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2785 # These three variables are undocumented and unsupported,
2786 # and are intended to be withdrawn in a future Autoconf release.
2787 # They can cause serious problems if a builder's source tree is in a directory
2788 # whose full name contains unusual characters.
2789 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2790 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2791 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2794 # Make sure we can run config.sub.
2795 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2796 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2799 $as_echo_n "checking build system type... " >&6; }
2800 if ${ac_cv_build+:} false; then :
2801 $as_echo_n "(cached) " >&6
2802 else
2803 ac_build_alias=$build_alias
2804 test "x$ac_build_alias" = x &&
2805 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2806 test "x$ac_build_alias" = x &&
2807 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2808 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2809 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2813 $as_echo "$ac_cv_build" >&6; }
2814 case $ac_cv_build in
2815 *-*-*) ;;
2816 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2817 esac
2818 build=$ac_cv_build
2819 ac_save_IFS=$IFS; IFS='-'
2820 set x $ac_cv_build
2821 shift
2822 build_cpu=$1
2823 build_vendor=$2
2824 shift; shift
2825 # Remember, the first character of IFS is used to create $*,
2826 # except with old shells:
2827 build_os=$*
2828 IFS=$ac_save_IFS
2829 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2833 $as_echo_n "checking host system type... " >&6; }
2834 if ${ac_cv_host+:} false; then :
2835 $as_echo_n "(cached) " >&6
2836 else
2837 if test "x$host_alias" = x; then
2838 ac_cv_host=$ac_cv_build
2839 else
2840 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2841 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2846 $as_echo "$ac_cv_host" >&6; }
2847 case $ac_cv_host in
2848 *-*-*) ;;
2849 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2850 esac
2851 host=$ac_cv_host
2852 ac_save_IFS=$IFS; IFS='-'
2853 set x $ac_cv_host
2854 shift
2855 host_cpu=$1
2856 host_vendor=$2
2857 shift; shift
2858 # Remember, the first character of IFS is used to create $*,
2859 # except with old shells:
2860 host_os=$*
2861 IFS=$ac_save_IFS
2862 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2866 $as_echo_n "checking target system type... " >&6; }
2867 if ${ac_cv_target+:} false; then :
2868 $as_echo_n "(cached) " >&6
2869 else
2870 if test "x$target_alias" = x; then
2871 ac_cv_target=$ac_cv_host
2872 else
2873 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2874 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2879 $as_echo "$ac_cv_target" >&6; }
2880 case $ac_cv_target in
2881 *-*-*) ;;
2882 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2883 esac
2884 target=$ac_cv_target
2885 ac_save_IFS=$IFS; IFS='-'
2886 set x $ac_cv_target
2887 shift
2888 target_cpu=$1
2889 target_vendor=$2
2890 shift; shift
2891 # Remember, the first character of IFS is used to create $*,
2892 # except with old shells:
2893 target_os=$*
2894 IFS=$ac_save_IFS
2895 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2898 # The aliases save the names the user supplied, while $host etc.
2899 # will get canonicalized.
2900 test -n "$target_alias" &&
2901 test "$program_prefix$program_suffix$program_transform_name" = \
2902 NONENONEs,x,x, &&
2903 program_prefix=${target_alias}-
2905 target_alias=${target_alias-$host_alias}
2907 # Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
2908 # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
2909 # 1.9.0: minimum required version
2910 # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
2911 # of other PACKAGE_* variables will, however, and there's nothing
2912 # we can do about that; they come from AC_INIT).
2913 # no-dist: we don't want 'dist' and related rules.
2914 # foreign: we don't follow the normal rules for GNU packages (no COPYING
2915 # file in the top srcdir, etc, etc), so stop complaining.
2916 # -Wall: turns on all automake warnings...
2917 # -Wno-portability: ...except this one, since GNU make is required.
2918 # -Wno-override: ... and this one, since we do want this in testsuite.
2919 am__api_version='1.15'
2921 # Find a good install program. We prefer a C program (faster),
2922 # so one script is as good as another. But avoid the broken or
2923 # incompatible versions:
2924 # SysV /etc/install, /usr/sbin/install
2925 # SunOS /usr/etc/install
2926 # IRIX /sbin/install
2927 # AIX /bin/install
2928 # AmigaOS /C/install, which installs bootblocks on floppy discs
2929 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2930 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2931 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2932 # OS/2's system install, which has a completely different semantic
2933 # ./install, which can be erroneously created by make from ./install.sh.
2934 # Reject install programs that cannot install multiple files.
2935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2936 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2937 if test -z "$INSTALL"; then
2938 if ${ac_cv_path_install+:} false; then :
2939 $as_echo_n "(cached) " >&6
2940 else
2941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2942 for as_dir in $PATH
2944 IFS=$as_save_IFS
2945 test -z "$as_dir" && as_dir=.
2946 # Account for people who put trailing slashes in PATH elements.
2947 case $as_dir/ in #((
2948 ./ | .// | /[cC]/* | \
2949 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2950 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2951 /usr/ucb/* ) ;;
2953 # OSF1 and SCO ODT 3.0 have their own names for install.
2954 # Don't use installbsd from OSF since it installs stuff as root
2955 # by default.
2956 for ac_prog in ginstall scoinst install; do
2957 for ac_exec_ext in '' $ac_executable_extensions; do
2958 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2959 if test $ac_prog = install &&
2960 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2961 # AIX install. It has an incompatible calling convention.
2963 elif test $ac_prog = install &&
2964 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2965 # program-specific install script used by HP pwplus--don't use.
2967 else
2968 rm -rf conftest.one conftest.two conftest.dir
2969 echo one > conftest.one
2970 echo two > conftest.two
2971 mkdir conftest.dir
2972 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2973 test -s conftest.one && test -s conftest.two &&
2974 test -s conftest.dir/conftest.one &&
2975 test -s conftest.dir/conftest.two
2976 then
2977 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2978 break 3
2982 done
2983 done
2985 esac
2987 done
2988 IFS=$as_save_IFS
2990 rm -rf conftest.one conftest.two conftest.dir
2993 if test "${ac_cv_path_install+set}" = set; then
2994 INSTALL=$ac_cv_path_install
2995 else
2996 # As a last resort, use the slow shell script. Don't cache a
2997 # value for INSTALL within a source directory, because that will
2998 # break other packages using the cache if that directory is
2999 # removed, or if the value is a relative name.
3000 INSTALL=$ac_install_sh
3003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3004 $as_echo "$INSTALL" >&6; }
3006 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3007 # It thinks the first close brace ends the variable substitution.
3008 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3010 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3012 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3015 $as_echo_n "checking whether build environment is sane... " >&6; }
3016 # Reject unsafe characters in $srcdir or the absolute working directory
3017 # name. Accept space and tab only in the latter.
3018 am_lf='
3020 case `pwd` in
3021 *[\\\"\#\$\&\'\`$am_lf]*)
3022 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3023 esac
3024 case $srcdir in
3025 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3026 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3027 esac
3029 # Do 'set' in a subshell so we don't clobber the current shell's
3030 # arguments. Must try -L first in case configure is actually a
3031 # symlink; some systems play weird games with the mod time of symlinks
3032 # (eg FreeBSD returns the mod time of the symlink's containing
3033 # directory).
3034 if (
3035 am_has_slept=no
3036 for am_try in 1 2; do
3037 echo "timestamp, slept: $am_has_slept" > conftest.file
3038 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3039 if test "$*" = "X"; then
3040 # -L didn't work.
3041 set X `ls -t "$srcdir/configure" conftest.file`
3043 if test "$*" != "X $srcdir/configure conftest.file" \
3044 && test "$*" != "X conftest.file $srcdir/configure"; then
3046 # If neither matched, then we have a broken ls. This can happen
3047 # if, for instance, CONFIG_SHELL is bash and it inherits a
3048 # broken ls alias from the environment. This has actually
3049 # happened. Such a system could not be considered "sane".
3050 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3051 alias in your environment" "$LINENO" 5
3053 if test "$2" = conftest.file || test $am_try -eq 2; then
3054 break
3056 # Just in case.
3057 sleep 1
3058 am_has_slept=yes
3059 done
3060 test "$2" = conftest.file
3062 then
3063 # Ok.
3065 else
3066 as_fn_error $? "newly created file is older than distributed files!
3067 Check your system clock" "$LINENO" 5
3069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3070 $as_echo "yes" >&6; }
3071 # If we didn't sleep, we still need to ensure time stamps of config.status and
3072 # generated files are strictly newer.
3073 am_sleep_pid=
3074 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3075 ( sleep 1 ) &
3076 am_sleep_pid=$!
3079 rm -f conftest.file
3081 test "$program_prefix" != NONE &&
3082 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3083 # Use a double $ so make ignores it.
3084 test "$program_suffix" != NONE &&
3085 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3086 # Double any \ or $.
3087 # By default was `s,x,x', remove it if useless.
3088 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3089 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3091 # Expand $ac_aux_dir to an absolute path.
3092 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3094 if test x"${MISSING+set}" != xset; then
3095 case $am_aux_dir in
3096 *\ * | *\ *)
3097 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3099 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3100 esac
3102 # Use eval to expand $SHELL
3103 if eval "$MISSING --is-lightweight"; then
3104 am_missing_run="$MISSING "
3105 else
3106 am_missing_run=
3107 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3108 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3111 if test x"${install_sh+set}" != xset; then
3112 case $am_aux_dir in
3113 *\ * | *\ *)
3114 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3116 install_sh="\${SHELL} $am_aux_dir/install-sh"
3117 esac
3120 # Installed binaries are usually stripped using 'strip' when the user
3121 # run "make install-strip". However 'strip' might not be the right
3122 # tool to use in cross-compilation environments, therefore Automake
3123 # will honor the 'STRIP' environment variable to overrule this program.
3124 if test "$cross_compiling" != no; then
3125 if test -n "$ac_tool_prefix"; then
3126 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3127 set dummy ${ac_tool_prefix}strip; ac_word=$2
3128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3129 $as_echo_n "checking for $ac_word... " >&6; }
3130 if ${ac_cv_prog_STRIP+:} false; then :
3131 $as_echo_n "(cached) " >&6
3132 else
3133 if test -n "$STRIP"; then
3134 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3135 else
3136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3137 for as_dir in $PATH
3139 IFS=$as_save_IFS
3140 test -z "$as_dir" && as_dir=.
3141 for ac_exec_ext in '' $ac_executable_extensions; do
3142 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3143 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3145 break 2
3147 done
3148 done
3149 IFS=$as_save_IFS
3153 STRIP=$ac_cv_prog_STRIP
3154 if test -n "$STRIP"; then
3155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3156 $as_echo "$STRIP" >&6; }
3157 else
3158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3159 $as_echo "no" >&6; }
3164 if test -z "$ac_cv_prog_STRIP"; then
3165 ac_ct_STRIP=$STRIP
3166 # Extract the first word of "strip", so it can be a program name with args.
3167 set dummy strip; ac_word=$2
3168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3169 $as_echo_n "checking for $ac_word... " >&6; }
3170 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3171 $as_echo_n "(cached) " >&6
3172 else
3173 if test -n "$ac_ct_STRIP"; then
3174 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3175 else
3176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3177 for as_dir in $PATH
3179 IFS=$as_save_IFS
3180 test -z "$as_dir" && as_dir=.
3181 for ac_exec_ext in '' $ac_executable_extensions; do
3182 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3183 ac_cv_prog_ac_ct_STRIP="strip"
3184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3185 break 2
3187 done
3188 done
3189 IFS=$as_save_IFS
3193 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3194 if test -n "$ac_ct_STRIP"; then
3195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3196 $as_echo "$ac_ct_STRIP" >&6; }
3197 else
3198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3199 $as_echo "no" >&6; }
3202 if test "x$ac_ct_STRIP" = x; then
3203 STRIP=":"
3204 else
3205 case $cross_compiling:$ac_tool_warned in
3206 yes:)
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3208 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3209 ac_tool_warned=yes ;;
3210 esac
3211 STRIP=$ac_ct_STRIP
3213 else
3214 STRIP="$ac_cv_prog_STRIP"
3218 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3221 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3222 if test -z "$MKDIR_P"; then
3223 if ${ac_cv_path_mkdir+:} false; then :
3224 $as_echo_n "(cached) " >&6
3225 else
3226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3227 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3229 IFS=$as_save_IFS
3230 test -z "$as_dir" && as_dir=.
3231 for ac_prog in mkdir gmkdir; do
3232 for ac_exec_ext in '' $ac_executable_extensions; do
3233 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3234 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3235 'mkdir (GNU coreutils) '* | \
3236 'mkdir (coreutils) '* | \
3237 'mkdir (fileutils) '4.1*)
3238 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3239 break 3;;
3240 esac
3241 done
3242 done
3243 done
3244 IFS=$as_save_IFS
3248 test -d ./--version && rmdir ./--version
3249 if test "${ac_cv_path_mkdir+set}" = set; then
3250 MKDIR_P="$ac_cv_path_mkdir -p"
3251 else
3252 # As a last resort, use the slow shell script. Don't cache a
3253 # value for MKDIR_P within a source directory, because that will
3254 # break other packages using the cache if that directory is
3255 # removed, or if the value is a relative name.
3256 MKDIR_P="$ac_install_sh -d"
3259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3260 $as_echo "$MKDIR_P" >&6; }
3262 for ac_prog in gawk mawk nawk awk
3264 # Extract the first word of "$ac_prog", so it can be a program name with args.
3265 set dummy $ac_prog; ac_word=$2
3266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3267 $as_echo_n "checking for $ac_word... " >&6; }
3268 if ${ac_cv_prog_AWK+:} false; then :
3269 $as_echo_n "(cached) " >&6
3270 else
3271 if test -n "$AWK"; then
3272 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3273 else
3274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3275 for as_dir in $PATH
3277 IFS=$as_save_IFS
3278 test -z "$as_dir" && as_dir=.
3279 for ac_exec_ext in '' $ac_executable_extensions; do
3280 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3281 ac_cv_prog_AWK="$ac_prog"
3282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3283 break 2
3285 done
3286 done
3287 IFS=$as_save_IFS
3291 AWK=$ac_cv_prog_AWK
3292 if test -n "$AWK"; then
3293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3294 $as_echo "$AWK" >&6; }
3295 else
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3297 $as_echo "no" >&6; }
3301 test -n "$AWK" && break
3302 done
3304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3305 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3306 set x ${MAKE-make}
3307 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3308 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3309 $as_echo_n "(cached) " >&6
3310 else
3311 cat >conftest.make <<\_ACEOF
3312 SHELL = /bin/sh
3313 all:
3314 @echo '@@@%%%=$(MAKE)=@@@%%%'
3315 _ACEOF
3316 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3317 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3318 *@@@%%%=?*=@@@%%%*)
3319 eval ac_cv_prog_make_${ac_make}_set=yes;;
3321 eval ac_cv_prog_make_${ac_make}_set=no;;
3322 esac
3323 rm -f conftest.make
3325 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3327 $as_echo "yes" >&6; }
3328 SET_MAKE=
3329 else
3330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3331 $as_echo "no" >&6; }
3332 SET_MAKE="MAKE=${MAKE-make}"
3335 rm -rf .tst 2>/dev/null
3336 mkdir .tst 2>/dev/null
3337 if test -d .tst; then
3338 am__leading_dot=.
3339 else
3340 am__leading_dot=_
3342 rmdir .tst 2>/dev/null
3344 # Check whether --enable-silent-rules was given.
3345 if test "${enable_silent_rules+set}" = set; then :
3346 enableval=$enable_silent_rules;
3349 case $enable_silent_rules in # (((
3350 yes) AM_DEFAULT_VERBOSITY=0;;
3351 no) AM_DEFAULT_VERBOSITY=1;;
3352 *) AM_DEFAULT_VERBOSITY=1;;
3353 esac
3354 am_make=${MAKE-make}
3355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3356 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3357 if ${am_cv_make_support_nested_variables+:} false; then :
3358 $as_echo_n "(cached) " >&6
3359 else
3360 if $as_echo 'TRUE=$(BAR$(V))
3361 BAR0=false
3362 BAR1=true
3364 am__doit:
3365 @$(TRUE)
3366 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3367 am_cv_make_support_nested_variables=yes
3368 else
3369 am_cv_make_support_nested_variables=no
3372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3373 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3374 if test $am_cv_make_support_nested_variables = yes; then
3375 AM_V='$(V)'
3376 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3377 else
3378 AM_V=$AM_DEFAULT_VERBOSITY
3379 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3381 AM_BACKSLASH='\'
3383 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3384 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3385 # is not polluted with repeated "-I."
3386 am__isrc=' -I$(srcdir)'
3387 # test to see if srcdir already configured
3388 if test -f $srcdir/config.status; then
3389 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3393 # test whether we have cygpath
3394 if test -z "$CYGPATH_W"; then
3395 if (cygpath --version) >/dev/null 2>/dev/null; then
3396 CYGPATH_W='cygpath -w'
3397 else
3398 CYGPATH_W=echo
3403 # Define the identity of the package.
3404 PACKAGE='libitm'
3405 VERSION='1.0'
3408 cat >>confdefs.h <<_ACEOF
3409 #define PACKAGE "$PACKAGE"
3410 _ACEOF
3413 cat >>confdefs.h <<_ACEOF
3414 #define VERSION "$VERSION"
3415 _ACEOF
3417 # Some tools Automake needs.
3419 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3422 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3425 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3428 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3431 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3433 # For better backward compatibility. To be removed once Automake 1.9.x
3434 # dies out for good. For more background, see:
3435 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3436 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3437 mkdir_p='$(MKDIR_P)'
3439 # We need awk for the "check" target (and possibly the TAP driver). The
3440 # system "awk" is bad on some platforms.
3441 # Always define AMTAR for backward compatibility. Yes, it's still used
3442 # in the wild :-( We should find a proper way to deprecate it ...
3443 AMTAR='$${TAR-tar}'
3446 # We'll loop over all known methods to create a tar archive until one works.
3447 _am_tools='gnutar pax cpio none'
3449 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3456 # POSIX will say in a future version that running "rm -f" with no argument
3457 # is OK; and we want to be able to make that assumption in our Makefile
3458 # recipes. So use an aggressive probe to check that the usage we want is
3459 # actually supported "in the wild" to an acceptable degree.
3460 # See automake bug#10828.
3461 # To make any issue more visible, cause the running configure to be aborted
3462 # by default if the 'rm' program in use doesn't match our expectations; the
3463 # user can still override this though.
3464 if rm -f && rm -fr && rm -rf; then : OK; else
3465 cat >&2 <<'END'
3466 Oops!
3468 Your 'rm' program seems unable to run without file operands specified
3469 on the command line, even when the '-f' option is present. This is contrary
3470 to the behaviour of most rm programs out there, and not conforming with
3471 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3473 Please tell bug-automake@gnu.org about your system, including the value
3474 of your $PATH and any error possibly output before this message. This
3475 can help us improve future automake versions.
3478 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3479 echo 'Configuration will proceed anyway, since you have set the' >&2
3480 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3481 echo >&2
3482 else
3483 cat >&2 <<'END'
3484 Aborting the configuration process, to ensure you take notice of the issue.
3486 You can download and install GNU coreutils to get an 'rm' implementation
3487 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3489 If you want to complete the configuration process using your problematic
3490 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3491 to "yes", and re-run configure.
3494 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3498 # Default to --enable-multilib
3499 # Check whether --enable-multilib was given.
3500 if test "${enable_multilib+set}" = set; then :
3501 enableval=$enable_multilib; case "$enableval" in
3502 yes) multilib=yes ;;
3503 no) multilib=no ;;
3504 *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;;
3505 esac
3506 else
3507 multilib=yes
3511 # We may get other options which we leave undocumented:
3512 # --with-target-subdir, --with-multisrctop, --with-multisubdir
3513 # See config-ml.in if you want the gory details.
3515 if test "$srcdir" = "."; then
3516 if test "$with_target_subdir" != "."; then
3517 multi_basedir="$srcdir/$with_multisrctop../.."
3518 else
3519 multi_basedir="$srcdir/$with_multisrctop.."
3521 else
3522 multi_basedir="$srcdir/.."
3526 # Even if the default multilib is not a cross compilation,
3527 # it may be that some of the other multilibs are.
3528 if test $cross_compiling = no && test $multilib = yes \
3529 && test "x${with_multisubdir}" != x ; then
3530 cross_compiling=maybe
3533 ac_config_commands="$ac_config_commands default-1"
3537 # Check whether --with-toolexeclibdir was given.
3538 if test "${with_toolexeclibdir+set}" = set; then :
3539 withval=$with_toolexeclibdir; case ${with_toolexeclibdir} in
3543 with_toolexeclibdir=`echo $with_toolexeclibdir | sed 's,/$,,'`
3545 esac
3546 else
3547 with_toolexeclibdir=no
3552 # Calculate toolexeclibdir
3553 # Also toolexecdir, though it's only used in toolexeclibdir
3554 case ${enable_version_specific_runtime_libs} in
3555 yes)
3556 # Need the gcc compiler version to know where to install libraries
3557 # and header files if --enable-version-specific-runtime-libs option
3558 # is selected.
3559 toolexecdir='$(libdir)/gcc/$(target_alias)'
3560 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
3563 if test -n "$with_cross_host" &&
3564 test x"$with_cross_host" != x"no"; then
3565 # Install a library built with a cross compiler in tooldir, not libdir.
3566 toolexecdir='$(exec_prefix)/$(target_alias)'
3567 case ${with_toolexeclibdir} in
3569 toolexeclibdir='$(toolexecdir)/lib'
3572 toolexeclibdir=${with_toolexeclibdir}
3574 esac
3575 else
3576 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
3577 toolexeclibdir='$(libdir)'
3579 multi_os_directory=`$CC -print-multi-os-directory`
3580 case $multi_os_directory in
3581 .) ;; # Avoid trailing /.
3582 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
3583 esac
3585 esac
3589 # Check the compiler.
3590 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
3591 # We must force CC to /not/ be precious variables; otherwise
3592 # the wrong, non-multilib-adjusted value will be used in multilibs.
3593 # As a side effect, we have to subst CFLAGS ourselves.
3597 ac_ext=c
3598 ac_cpp='$CPP $CPPFLAGS'
3599 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3600 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3601 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3602 if test -n "$ac_tool_prefix"; then
3603 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3604 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3606 $as_echo_n "checking for $ac_word... " >&6; }
3607 if ${ac_cv_prog_CC+:} false; then :
3608 $as_echo_n "(cached) " >&6
3609 else
3610 if test -n "$CC"; then
3611 ac_cv_prog_CC="$CC" # Let the user override the test.
3612 else
3613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3614 for as_dir in $PATH
3616 IFS=$as_save_IFS
3617 test -z "$as_dir" && as_dir=.
3618 for ac_exec_ext in '' $ac_executable_extensions; do
3619 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3620 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3622 break 2
3624 done
3625 done
3626 IFS=$as_save_IFS
3630 CC=$ac_cv_prog_CC
3631 if test -n "$CC"; then
3632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3633 $as_echo "$CC" >&6; }
3634 else
3635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3636 $as_echo "no" >&6; }
3641 if test -z "$ac_cv_prog_CC"; then
3642 ac_ct_CC=$CC
3643 # Extract the first word of "gcc", so it can be a program name with args.
3644 set dummy gcc; ac_word=$2
3645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3646 $as_echo_n "checking for $ac_word... " >&6; }
3647 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3648 $as_echo_n "(cached) " >&6
3649 else
3650 if test -n "$ac_ct_CC"; then
3651 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3652 else
3653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3654 for as_dir in $PATH
3656 IFS=$as_save_IFS
3657 test -z "$as_dir" && as_dir=.
3658 for ac_exec_ext in '' $ac_executable_extensions; do
3659 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3660 ac_cv_prog_ac_ct_CC="gcc"
3661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3662 break 2
3664 done
3665 done
3666 IFS=$as_save_IFS
3670 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3671 if test -n "$ac_ct_CC"; then
3672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3673 $as_echo "$ac_ct_CC" >&6; }
3674 else
3675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3676 $as_echo "no" >&6; }
3679 if test "x$ac_ct_CC" = x; then
3680 CC=""
3681 else
3682 case $cross_compiling:$ac_tool_warned in
3683 yes:)
3684 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3685 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3686 ac_tool_warned=yes ;;
3687 esac
3688 CC=$ac_ct_CC
3690 else
3691 CC="$ac_cv_prog_CC"
3694 if test -z "$CC"; then
3695 if test -n "$ac_tool_prefix"; then
3696 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3697 set dummy ${ac_tool_prefix}cc; ac_word=$2
3698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3699 $as_echo_n "checking for $ac_word... " >&6; }
3700 if ${ac_cv_prog_CC+:} false; then :
3701 $as_echo_n "(cached) " >&6
3702 else
3703 if test -n "$CC"; then
3704 ac_cv_prog_CC="$CC" # Let the user override the test.
3705 else
3706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3707 for as_dir in $PATH
3709 IFS=$as_save_IFS
3710 test -z "$as_dir" && as_dir=.
3711 for ac_exec_ext in '' $ac_executable_extensions; do
3712 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3713 ac_cv_prog_CC="${ac_tool_prefix}cc"
3714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3715 break 2
3717 done
3718 done
3719 IFS=$as_save_IFS
3723 CC=$ac_cv_prog_CC
3724 if test -n "$CC"; then
3725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3726 $as_echo "$CC" >&6; }
3727 else
3728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3729 $as_echo "no" >&6; }
3735 if test -z "$CC"; then
3736 # Extract the first word of "cc", so it can be a program name with args.
3737 set dummy cc; ac_word=$2
3738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3739 $as_echo_n "checking for $ac_word... " >&6; }
3740 if ${ac_cv_prog_CC+:} false; then :
3741 $as_echo_n "(cached) " >&6
3742 else
3743 if test -n "$CC"; then
3744 ac_cv_prog_CC="$CC" # Let the user override the test.
3745 else
3746 ac_prog_rejected=no
3747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3748 for as_dir in $PATH
3750 IFS=$as_save_IFS
3751 test -z "$as_dir" && as_dir=.
3752 for ac_exec_ext in '' $ac_executable_extensions; do
3753 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3754 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3755 ac_prog_rejected=yes
3756 continue
3758 ac_cv_prog_CC="cc"
3759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3760 break 2
3762 done
3763 done
3764 IFS=$as_save_IFS
3766 if test $ac_prog_rejected = yes; then
3767 # We found a bogon in the path, so make sure we never use it.
3768 set dummy $ac_cv_prog_CC
3769 shift
3770 if test $# != 0; then
3771 # We chose a different compiler from the bogus one.
3772 # However, it has the same basename, so the bogon will be chosen
3773 # first if we set CC to just the basename; use the full file name.
3774 shift
3775 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3780 CC=$ac_cv_prog_CC
3781 if test -n "$CC"; then
3782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3783 $as_echo "$CC" >&6; }
3784 else
3785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3786 $as_echo "no" >&6; }
3791 if test -z "$CC"; then
3792 if test -n "$ac_tool_prefix"; then
3793 for ac_prog in cl.exe
3795 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3796 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3798 $as_echo_n "checking for $ac_word... " >&6; }
3799 if ${ac_cv_prog_CC+:} false; then :
3800 $as_echo_n "(cached) " >&6
3801 else
3802 if test -n "$CC"; then
3803 ac_cv_prog_CC="$CC" # Let the user override the test.
3804 else
3805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3806 for as_dir in $PATH
3808 IFS=$as_save_IFS
3809 test -z "$as_dir" && as_dir=.
3810 for ac_exec_ext in '' $ac_executable_extensions; do
3811 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3812 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3814 break 2
3816 done
3817 done
3818 IFS=$as_save_IFS
3822 CC=$ac_cv_prog_CC
3823 if test -n "$CC"; then
3824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3825 $as_echo "$CC" >&6; }
3826 else
3827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3828 $as_echo "no" >&6; }
3832 test -n "$CC" && break
3833 done
3835 if test -z "$CC"; then
3836 ac_ct_CC=$CC
3837 for ac_prog in cl.exe
3839 # Extract the first word of "$ac_prog", so it can be a program name with args.
3840 set dummy $ac_prog; ac_word=$2
3841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3842 $as_echo_n "checking for $ac_word... " >&6; }
3843 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3844 $as_echo_n "(cached) " >&6
3845 else
3846 if test -n "$ac_ct_CC"; then
3847 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3848 else
3849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3850 for as_dir in $PATH
3852 IFS=$as_save_IFS
3853 test -z "$as_dir" && as_dir=.
3854 for ac_exec_ext in '' $ac_executable_extensions; do
3855 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3856 ac_cv_prog_ac_ct_CC="$ac_prog"
3857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3858 break 2
3860 done
3861 done
3862 IFS=$as_save_IFS
3866 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3867 if test -n "$ac_ct_CC"; then
3868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3869 $as_echo "$ac_ct_CC" >&6; }
3870 else
3871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3872 $as_echo "no" >&6; }
3876 test -n "$ac_ct_CC" && break
3877 done
3879 if test "x$ac_ct_CC" = x; then
3880 CC=""
3881 else
3882 case $cross_compiling:$ac_tool_warned in
3883 yes:)
3884 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3885 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3886 ac_tool_warned=yes ;;
3887 esac
3888 CC=$ac_ct_CC
3895 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3896 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3897 as_fn_error $? "no acceptable C compiler found in \$PATH
3898 See \`config.log' for more details" "$LINENO" 5; }
3900 # Provide some information about the compiler.
3901 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3902 set X $ac_compile
3903 ac_compiler=$2
3904 for ac_option in --version -v -V -qversion; do
3905 { { ac_try="$ac_compiler $ac_option >&5"
3906 case "(($ac_try" in
3907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3908 *) ac_try_echo=$ac_try;;
3909 esac
3910 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3911 $as_echo "$ac_try_echo"; } >&5
3912 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3913 ac_status=$?
3914 if test -s conftest.err; then
3915 sed '10a\
3916 ... rest of stderr output deleted ...
3917 10q' conftest.err >conftest.er1
3918 cat conftest.er1 >&5
3920 rm -f conftest.er1 conftest.err
3921 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3922 test $ac_status = 0; }
3923 done
3925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3926 /* end confdefs.h. */
3929 main ()
3933 return 0;
3935 _ACEOF
3936 ac_clean_files_save=$ac_clean_files
3937 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3938 # Try to create an executable without -o first, disregard a.out.
3939 # It will help us diagnose broken compilers, and finding out an intuition
3940 # of exeext.
3941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3942 $as_echo_n "checking whether the C compiler works... " >&6; }
3943 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3945 # The possible output files:
3946 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3948 ac_rmfiles=
3949 for ac_file in $ac_files
3951 case $ac_file in
3952 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3953 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3954 esac
3955 done
3956 rm -f $ac_rmfiles
3958 if { { ac_try="$ac_link_default"
3959 case "(($ac_try" in
3960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3961 *) ac_try_echo=$ac_try;;
3962 esac
3963 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3964 $as_echo "$ac_try_echo"; } >&5
3965 (eval "$ac_link_default") 2>&5
3966 ac_status=$?
3967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3968 test $ac_status = 0; }; then :
3969 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3970 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3971 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3972 # so that the user can short-circuit this test for compilers unknown to
3973 # Autoconf.
3974 for ac_file in $ac_files ''
3976 test -f "$ac_file" || continue
3977 case $ac_file in
3978 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3980 [ab].out )
3981 # We found the default executable, but exeext='' is most
3982 # certainly right.
3983 break;;
3984 *.* )
3985 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3986 then :; else
3987 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3989 # We set ac_cv_exeext here because the later test for it is not
3990 # safe: cross compilers may not add the suffix if given an `-o'
3991 # argument, so we may need to know it at that point already.
3992 # Even if this section looks crufty: it has the advantage of
3993 # actually working.
3994 break;;
3996 break;;
3997 esac
3998 done
3999 test "$ac_cv_exeext" = no && ac_cv_exeext=
4001 else
4002 ac_file=''
4004 if test -z "$ac_file"; then :
4005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4006 $as_echo "no" >&6; }
4007 $as_echo "$as_me: failed program was:" >&5
4008 sed 's/^/| /' conftest.$ac_ext >&5
4010 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4011 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4012 as_fn_error 77 "C compiler cannot create executables
4013 See \`config.log' for more details" "$LINENO" 5; }
4014 else
4015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4016 $as_echo "yes" >&6; }
4018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4019 $as_echo_n "checking for C compiler default output file name... " >&6; }
4020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4021 $as_echo "$ac_file" >&6; }
4022 ac_exeext=$ac_cv_exeext
4024 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4025 ac_clean_files=$ac_clean_files_save
4026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4027 $as_echo_n "checking for suffix of executables... " >&6; }
4028 if { { ac_try="$ac_link"
4029 case "(($ac_try" in
4030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4031 *) ac_try_echo=$ac_try;;
4032 esac
4033 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4034 $as_echo "$ac_try_echo"; } >&5
4035 (eval "$ac_link") 2>&5
4036 ac_status=$?
4037 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4038 test $ac_status = 0; }; then :
4039 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4040 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4041 # work properly (i.e., refer to `conftest.exe'), while it won't with
4042 # `rm'.
4043 for ac_file in conftest.exe conftest conftest.*; do
4044 test -f "$ac_file" || continue
4045 case $ac_file in
4046 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4047 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4048 break;;
4049 * ) break;;
4050 esac
4051 done
4052 else
4053 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4054 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4055 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4056 See \`config.log' for more details" "$LINENO" 5; }
4058 rm -f conftest conftest$ac_cv_exeext
4059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4060 $as_echo "$ac_cv_exeext" >&6; }
4062 rm -f conftest.$ac_ext
4063 EXEEXT=$ac_cv_exeext
4064 ac_exeext=$EXEEXT
4065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4066 /* end confdefs.h. */
4067 #include <stdio.h>
4069 main ()
4071 FILE *f = fopen ("conftest.out", "w");
4072 return ferror (f) || fclose (f) != 0;
4075 return 0;
4077 _ACEOF
4078 ac_clean_files="$ac_clean_files conftest.out"
4079 # Check that the compiler produces executables we can run. If not, either
4080 # the compiler is broken, or we cross compile.
4081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4082 $as_echo_n "checking whether we are cross compiling... " >&6; }
4083 if test "$cross_compiling" != yes; then
4084 { { ac_try="$ac_link"
4085 case "(($ac_try" in
4086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4087 *) ac_try_echo=$ac_try;;
4088 esac
4089 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4090 $as_echo "$ac_try_echo"; } >&5
4091 (eval "$ac_link") 2>&5
4092 ac_status=$?
4093 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4094 test $ac_status = 0; }
4095 if { ac_try='./conftest$ac_cv_exeext'
4096 { { case "(($ac_try" in
4097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4098 *) ac_try_echo=$ac_try;;
4099 esac
4100 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4101 $as_echo "$ac_try_echo"; } >&5
4102 (eval "$ac_try") 2>&5
4103 ac_status=$?
4104 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4105 test $ac_status = 0; }; }; then
4106 cross_compiling=no
4107 else
4108 if test "$cross_compiling" = maybe; then
4109 cross_compiling=yes
4110 else
4111 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4112 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4113 as_fn_error $? "cannot run C compiled programs.
4114 If you meant to cross compile, use \`--host'.
4115 See \`config.log' for more details" "$LINENO" 5; }
4119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4120 $as_echo "$cross_compiling" >&6; }
4122 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4123 ac_clean_files=$ac_clean_files_save
4124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4125 $as_echo_n "checking for suffix of object files... " >&6; }
4126 if ${ac_cv_objext+:} false; then :
4127 $as_echo_n "(cached) " >&6
4128 else
4129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4130 /* end confdefs.h. */
4133 main ()
4137 return 0;
4139 _ACEOF
4140 rm -f conftest.o conftest.obj
4141 if { { ac_try="$ac_compile"
4142 case "(($ac_try" in
4143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4144 *) ac_try_echo=$ac_try;;
4145 esac
4146 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4147 $as_echo "$ac_try_echo"; } >&5
4148 (eval "$ac_compile") 2>&5
4149 ac_status=$?
4150 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4151 test $ac_status = 0; }; then :
4152 for ac_file in conftest.o conftest.obj conftest.*; do
4153 test -f "$ac_file" || continue;
4154 case $ac_file in
4155 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4156 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4157 break;;
4158 esac
4159 done
4160 else
4161 $as_echo "$as_me: failed program was:" >&5
4162 sed 's/^/| /' conftest.$ac_ext >&5
4164 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4165 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4166 as_fn_error $? "cannot compute suffix of object files: cannot compile
4167 See \`config.log' for more details" "$LINENO" 5; }
4169 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4172 $as_echo "$ac_cv_objext" >&6; }
4173 OBJEXT=$ac_cv_objext
4174 ac_objext=$OBJEXT
4175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4176 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4177 if ${ac_cv_c_compiler_gnu+:} false; then :
4178 $as_echo_n "(cached) " >&6
4179 else
4180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4181 /* end confdefs.h. */
4184 main ()
4186 #ifndef __GNUC__
4187 choke me
4188 #endif
4191 return 0;
4193 _ACEOF
4194 if ac_fn_c_try_compile "$LINENO"; then :
4195 ac_compiler_gnu=yes
4196 else
4197 ac_compiler_gnu=no
4199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4200 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4204 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4205 if test $ac_compiler_gnu = yes; then
4206 GCC=yes
4207 else
4208 GCC=
4210 ac_test_CFLAGS=${CFLAGS+set}
4211 ac_save_CFLAGS=$CFLAGS
4212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4213 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4214 if ${ac_cv_prog_cc_g+:} false; then :
4215 $as_echo_n "(cached) " >&6
4216 else
4217 ac_save_c_werror_flag=$ac_c_werror_flag
4218 ac_c_werror_flag=yes
4219 ac_cv_prog_cc_g=no
4220 CFLAGS="-g"
4221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4222 /* end confdefs.h. */
4225 main ()
4229 return 0;
4231 _ACEOF
4232 if ac_fn_c_try_compile "$LINENO"; then :
4233 ac_cv_prog_cc_g=yes
4234 else
4235 CFLAGS=""
4236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4237 /* end confdefs.h. */
4240 main ()
4244 return 0;
4246 _ACEOF
4247 if ac_fn_c_try_compile "$LINENO"; then :
4249 else
4250 ac_c_werror_flag=$ac_save_c_werror_flag
4251 CFLAGS="-g"
4252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4253 /* end confdefs.h. */
4256 main ()
4260 return 0;
4262 _ACEOF
4263 if ac_fn_c_try_compile "$LINENO"; then :
4264 ac_cv_prog_cc_g=yes
4266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4271 ac_c_werror_flag=$ac_save_c_werror_flag
4273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4274 $as_echo "$ac_cv_prog_cc_g" >&6; }
4275 if test "$ac_test_CFLAGS" = set; then
4276 CFLAGS=$ac_save_CFLAGS
4277 elif test $ac_cv_prog_cc_g = yes; then
4278 if test "$GCC" = yes; then
4279 CFLAGS="-g -O2"
4280 else
4281 CFLAGS="-g"
4283 else
4284 if test "$GCC" = yes; then
4285 CFLAGS="-O2"
4286 else
4287 CFLAGS=
4290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4291 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4292 if ${ac_cv_prog_cc_c89+:} false; then :
4293 $as_echo_n "(cached) " >&6
4294 else
4295 ac_cv_prog_cc_c89=no
4296 ac_save_CC=$CC
4297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4298 /* end confdefs.h. */
4299 #include <stdarg.h>
4300 #include <stdio.h>
4301 struct stat;
4302 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4303 struct buf { int x; };
4304 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4305 static char *e (p, i)
4306 char **p;
4307 int i;
4309 return p[i];
4311 static char *f (char * (*g) (char **, int), char **p, ...)
4313 char *s;
4314 va_list v;
4315 va_start (v,p);
4316 s = g (p, va_arg (v,int));
4317 va_end (v);
4318 return s;
4321 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4322 function prototypes and stuff, but not '\xHH' hex character constants.
4323 These don't provoke an error unfortunately, instead are silently treated
4324 as 'x'. The following induces an error, until -std is added to get
4325 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4326 array size at least. It's necessary to write '\x00'==0 to get something
4327 that's true only with -std. */
4328 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4330 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4331 inside strings and character constants. */
4332 #define FOO(x) 'x'
4333 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4335 int test (int i, double x);
4336 struct s1 {int (*f) (int a);};
4337 struct s2 {int (*f) (double a);};
4338 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4339 int argc;
4340 char **argv;
4342 main ()
4344 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4346 return 0;
4348 _ACEOF
4349 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4350 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4352 CC="$ac_save_CC $ac_arg"
4353 if ac_fn_c_try_compile "$LINENO"; then :
4354 ac_cv_prog_cc_c89=$ac_arg
4356 rm -f core conftest.err conftest.$ac_objext
4357 test "x$ac_cv_prog_cc_c89" != "xno" && break
4358 done
4359 rm -f conftest.$ac_ext
4360 CC=$ac_save_CC
4363 # AC_CACHE_VAL
4364 case "x$ac_cv_prog_cc_c89" in
4366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4367 $as_echo "none needed" >&6; } ;;
4368 xno)
4369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4370 $as_echo "unsupported" >&6; } ;;
4372 CC="$CC $ac_cv_prog_cc_c89"
4373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4374 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4375 esac
4376 if test "x$ac_cv_prog_cc_c89" != xno; then :
4380 ac_ext=c
4381 ac_cpp='$CPP $CPPFLAGS'
4382 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4383 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4384 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4386 ac_ext=c
4387 ac_cpp='$CPP $CPPFLAGS'
4388 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4389 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4390 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4392 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4393 if ${am_cv_prog_cc_c_o+:} false; then :
4394 $as_echo_n "(cached) " >&6
4395 else
4396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4397 /* end confdefs.h. */
4400 main ()
4404 return 0;
4406 _ACEOF
4407 # Make sure it works both with $CC and with simple cc.
4408 # Following AC_PROG_CC_C_O, we do the test twice because some
4409 # compilers refuse to overwrite an existing .o file with -o,
4410 # though they will create one.
4411 am_cv_prog_cc_c_o=yes
4412 for am_i in 1 2; do
4413 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4414 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4415 ac_status=$?
4416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4417 (exit $ac_status); } \
4418 && test -f conftest2.$ac_objext; then
4419 : OK
4420 else
4421 am_cv_prog_cc_c_o=no
4422 break
4424 done
4425 rm -f core conftest*
4426 unset am_i
4428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4429 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4430 if test "$am_cv_prog_cc_c_o" != yes; then
4431 # Losing compiler, so override with the script.
4432 # FIXME: It is wrong to rewrite CC.
4433 # But if we don't then we get into trouble of one sort or another.
4434 # A longer-term fix would be to have automake use am__CC in this case,
4435 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4436 CC="$am_aux_dir/compile $CC"
4438 ac_ext=c
4439 ac_cpp='$CPP $CPPFLAGS'
4440 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4441 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4442 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4444 DEPDIR="${am__leading_dot}deps"
4446 ac_config_commands="$ac_config_commands depfiles"
4449 am_make=${MAKE-make}
4450 cat > confinc << 'END'
4451 am__doit:
4452 @echo this is the am__doit target
4453 .PHONY: am__doit
4455 # If we don't find an include directive, just comment out the code.
4456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4457 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4458 am__include="#"
4459 am__quote=
4460 _am_result=none
4461 # First try GNU make style include.
4462 echo "include confinc" > confmf
4463 # Ignore all kinds of additional output from 'make'.
4464 case `$am_make -s -f confmf 2> /dev/null` in #(
4465 *the\ am__doit\ target*)
4466 am__include=include
4467 am__quote=
4468 _am_result=GNU
4470 esac
4471 # Now try BSD make style include.
4472 if test "$am__include" = "#"; then
4473 echo '.include "confinc"' > confmf
4474 case `$am_make -s -f confmf 2> /dev/null` in #(
4475 *the\ am__doit\ target*)
4476 am__include=.include
4477 am__quote="\""
4478 _am_result=BSD
4480 esac
4484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4485 $as_echo "$_am_result" >&6; }
4486 rm -f confinc confmf
4488 # Check whether --enable-dependency-tracking was given.
4489 if test "${enable_dependency_tracking+set}" = set; then :
4490 enableval=$enable_dependency_tracking;
4493 if test "x$enable_dependency_tracking" != xno; then
4494 am_depcomp="$ac_aux_dir/depcomp"
4495 AMDEPBACKSLASH='\'
4496 am__nodep='_no'
4498 if test "x$enable_dependency_tracking" != xno; then
4499 AMDEP_TRUE=
4500 AMDEP_FALSE='#'
4501 else
4502 AMDEP_TRUE='#'
4503 AMDEP_FALSE=
4508 depcc="$CC" am_compiler_list=
4510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4511 $as_echo_n "checking dependency style of $depcc... " >&6; }
4512 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4513 $as_echo_n "(cached) " >&6
4514 else
4515 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4516 # We make a subdir and do the tests there. Otherwise we can end up
4517 # making bogus files that we don't know about and never remove. For
4518 # instance it was reported that on HP-UX the gcc test will end up
4519 # making a dummy file named 'D' -- because '-MD' means "put the output
4520 # in D".
4521 rm -rf conftest.dir
4522 mkdir conftest.dir
4523 # Copy depcomp to subdir because otherwise we won't find it if we're
4524 # using a relative directory.
4525 cp "$am_depcomp" conftest.dir
4526 cd conftest.dir
4527 # We will build objects and dependencies in a subdirectory because
4528 # it helps to detect inapplicable dependency modes. For instance
4529 # both Tru64's cc and ICC support -MD to output dependencies as a
4530 # side effect of compilation, but ICC will put the dependencies in
4531 # the current directory while Tru64 will put them in the object
4532 # directory.
4533 mkdir sub
4535 am_cv_CC_dependencies_compiler_type=none
4536 if test "$am_compiler_list" = ""; then
4537 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4539 am__universal=false
4540 case " $depcc " in #(
4541 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4542 esac
4544 for depmode in $am_compiler_list; do
4545 # Setup a source with many dependencies, because some compilers
4546 # like to wrap large dependency lists on column 80 (with \), and
4547 # we should not choose a depcomp mode which is confused by this.
4549 # We need to recreate these files for each test, as the compiler may
4550 # overwrite some of them when testing with obscure command lines.
4551 # This happens at least with the AIX C compiler.
4552 : > sub/conftest.c
4553 for i in 1 2 3 4 5 6; do
4554 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4555 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4556 # Solaris 10 /bin/sh.
4557 echo '/* dummy */' > sub/conftst$i.h
4558 done
4559 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4561 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4562 # mode. It turns out that the SunPro C++ compiler does not properly
4563 # handle '-M -o', and we need to detect this. Also, some Intel
4564 # versions had trouble with output in subdirs.
4565 am__obj=sub/conftest.${OBJEXT-o}
4566 am__minus_obj="-o $am__obj"
4567 case $depmode in
4568 gcc)
4569 # This depmode causes a compiler race in universal mode.
4570 test "$am__universal" = false || continue
4572 nosideeffect)
4573 # After this tag, mechanisms are not by side-effect, so they'll
4574 # only be used when explicitly requested.
4575 if test "x$enable_dependency_tracking" = xyes; then
4576 continue
4577 else
4578 break
4581 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4582 # This compiler won't grok '-c -o', but also, the minuso test has
4583 # not run yet. These depmodes are late enough in the game, and
4584 # so weak that their functioning should not be impacted.
4585 am__obj=conftest.${OBJEXT-o}
4586 am__minus_obj=
4588 none) break ;;
4589 esac
4590 if depmode=$depmode \
4591 source=sub/conftest.c object=$am__obj \
4592 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4593 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4594 >/dev/null 2>conftest.err &&
4595 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4596 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4597 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4598 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4599 # icc doesn't choke on unknown options, it will just issue warnings
4600 # or remarks (even with -Werror). So we grep stderr for any message
4601 # that says an option was ignored or not supported.
4602 # When given -MP, icc 7.0 and 7.1 complain thusly:
4603 # icc: Command line warning: ignoring option '-M'; no argument required
4604 # The diagnosis changed in icc 8.0:
4605 # icc: Command line remark: option '-MP' not supported
4606 if (grep 'ignoring option' conftest.err ||
4607 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4608 am_cv_CC_dependencies_compiler_type=$depmode
4609 break
4612 done
4614 cd ..
4615 rm -rf conftest.dir
4616 else
4617 am_cv_CC_dependencies_compiler_type=none
4621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4622 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4623 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4626 test "x$enable_dependency_tracking" != xno \
4627 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4628 am__fastdepCC_TRUE=
4629 am__fastdepCC_FALSE='#'
4630 else
4631 am__fastdepCC_TRUE='#'
4632 am__fastdepCC_FALSE=
4636 ac_ext=cpp
4637 ac_cpp='$CXXCPP $CPPFLAGS'
4638 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4639 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4640 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4641 if test -z "$CXX"; then
4642 if test -n "$CCC"; then
4643 CXX=$CCC
4644 else
4645 if test -n "$ac_tool_prefix"; then
4646 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4648 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4649 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4651 $as_echo_n "checking for $ac_word... " >&6; }
4652 if ${ac_cv_prog_CXX+:} false; then :
4653 $as_echo_n "(cached) " >&6
4654 else
4655 if test -n "$CXX"; then
4656 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4657 else
4658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4659 for as_dir in $PATH
4661 IFS=$as_save_IFS
4662 test -z "$as_dir" && as_dir=.
4663 for ac_exec_ext in '' $ac_executable_extensions; do
4664 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4665 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4667 break 2
4669 done
4670 done
4671 IFS=$as_save_IFS
4675 CXX=$ac_cv_prog_CXX
4676 if test -n "$CXX"; then
4677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4678 $as_echo "$CXX" >&6; }
4679 else
4680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4681 $as_echo "no" >&6; }
4685 test -n "$CXX" && break
4686 done
4688 if test -z "$CXX"; then
4689 ac_ct_CXX=$CXX
4690 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4692 # Extract the first word of "$ac_prog", so it can be a program name with args.
4693 set dummy $ac_prog; ac_word=$2
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4695 $as_echo_n "checking for $ac_word... " >&6; }
4696 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4697 $as_echo_n "(cached) " >&6
4698 else
4699 if test -n "$ac_ct_CXX"; then
4700 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4701 else
4702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4703 for as_dir in $PATH
4705 IFS=$as_save_IFS
4706 test -z "$as_dir" && as_dir=.
4707 for ac_exec_ext in '' $ac_executable_extensions; do
4708 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4709 ac_cv_prog_ac_ct_CXX="$ac_prog"
4710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4711 break 2
4713 done
4714 done
4715 IFS=$as_save_IFS
4719 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4720 if test -n "$ac_ct_CXX"; then
4721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4722 $as_echo "$ac_ct_CXX" >&6; }
4723 else
4724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4725 $as_echo "no" >&6; }
4729 test -n "$ac_ct_CXX" && break
4730 done
4732 if test "x$ac_ct_CXX" = x; then
4733 CXX="g++"
4734 else
4735 case $cross_compiling:$ac_tool_warned in
4736 yes:)
4737 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4738 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4739 ac_tool_warned=yes ;;
4740 esac
4741 CXX=$ac_ct_CXX
4747 # Provide some information about the compiler.
4748 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4749 set X $ac_compile
4750 ac_compiler=$2
4751 for ac_option in --version -v -V -qversion; do
4752 { { ac_try="$ac_compiler $ac_option >&5"
4753 case "(($ac_try" in
4754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4755 *) ac_try_echo=$ac_try;;
4756 esac
4757 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4758 $as_echo "$ac_try_echo"; } >&5
4759 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4760 ac_status=$?
4761 if test -s conftest.err; then
4762 sed '10a\
4763 ... rest of stderr output deleted ...
4764 10q' conftest.err >conftest.er1
4765 cat conftest.er1 >&5
4767 rm -f conftest.er1 conftest.err
4768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4769 test $ac_status = 0; }
4770 done
4772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4773 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4774 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4775 $as_echo_n "(cached) " >&6
4776 else
4777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4778 /* end confdefs.h. */
4781 main ()
4783 #ifndef __GNUC__
4784 choke me
4785 #endif
4788 return 0;
4790 _ACEOF
4791 if ac_fn_cxx_try_compile "$LINENO"; then :
4792 ac_compiler_gnu=yes
4793 else
4794 ac_compiler_gnu=no
4796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4797 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4801 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4802 if test $ac_compiler_gnu = yes; then
4803 GXX=yes
4804 else
4805 GXX=
4807 ac_test_CXXFLAGS=${CXXFLAGS+set}
4808 ac_save_CXXFLAGS=$CXXFLAGS
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4810 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4811 if ${ac_cv_prog_cxx_g+:} false; then :
4812 $as_echo_n "(cached) " >&6
4813 else
4814 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4815 ac_cxx_werror_flag=yes
4816 ac_cv_prog_cxx_g=no
4817 CXXFLAGS="-g"
4818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4819 /* end confdefs.h. */
4822 main ()
4826 return 0;
4828 _ACEOF
4829 if ac_fn_cxx_try_compile "$LINENO"; then :
4830 ac_cv_prog_cxx_g=yes
4831 else
4832 CXXFLAGS=""
4833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4834 /* end confdefs.h. */
4837 main ()
4841 return 0;
4843 _ACEOF
4844 if ac_fn_cxx_try_compile "$LINENO"; then :
4846 else
4847 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4848 CXXFLAGS="-g"
4849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4850 /* end confdefs.h. */
4853 main ()
4857 return 0;
4859 _ACEOF
4860 if ac_fn_cxx_try_compile "$LINENO"; then :
4861 ac_cv_prog_cxx_g=yes
4863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4868 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4871 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4872 if test "$ac_test_CXXFLAGS" = set; then
4873 CXXFLAGS=$ac_save_CXXFLAGS
4874 elif test $ac_cv_prog_cxx_g = yes; then
4875 if test "$GXX" = yes; then
4876 CXXFLAGS="-g -O2"
4877 else
4878 CXXFLAGS="-g"
4880 else
4881 if test "$GXX" = yes; then
4882 CXXFLAGS="-O2"
4883 else
4884 CXXFLAGS=
4887 ac_ext=c
4888 ac_cpp='$CPP $CPPFLAGS'
4889 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4890 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4891 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4893 depcc="$CXX" am_compiler_list=
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4896 $as_echo_n "checking dependency style of $depcc... " >&6; }
4897 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4898 $as_echo_n "(cached) " >&6
4899 else
4900 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4901 # We make a subdir and do the tests there. Otherwise we can end up
4902 # making bogus files that we don't know about and never remove. For
4903 # instance it was reported that on HP-UX the gcc test will end up
4904 # making a dummy file named 'D' -- because '-MD' means "put the output
4905 # in D".
4906 rm -rf conftest.dir
4907 mkdir conftest.dir
4908 # Copy depcomp to subdir because otherwise we won't find it if we're
4909 # using a relative directory.
4910 cp "$am_depcomp" conftest.dir
4911 cd conftest.dir
4912 # We will build objects and dependencies in a subdirectory because
4913 # it helps to detect inapplicable dependency modes. For instance
4914 # both Tru64's cc and ICC support -MD to output dependencies as a
4915 # side effect of compilation, but ICC will put the dependencies in
4916 # the current directory while Tru64 will put them in the object
4917 # directory.
4918 mkdir sub
4920 am_cv_CXX_dependencies_compiler_type=none
4921 if test "$am_compiler_list" = ""; then
4922 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4924 am__universal=false
4925 case " $depcc " in #(
4926 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4927 esac
4929 for depmode in $am_compiler_list; do
4930 # Setup a source with many dependencies, because some compilers
4931 # like to wrap large dependency lists on column 80 (with \), and
4932 # we should not choose a depcomp mode which is confused by this.
4934 # We need to recreate these files for each test, as the compiler may
4935 # overwrite some of them when testing with obscure command lines.
4936 # This happens at least with the AIX C compiler.
4937 : > sub/conftest.c
4938 for i in 1 2 3 4 5 6; do
4939 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4940 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4941 # Solaris 10 /bin/sh.
4942 echo '/* dummy */' > sub/conftst$i.h
4943 done
4944 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4946 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4947 # mode. It turns out that the SunPro C++ compiler does not properly
4948 # handle '-M -o', and we need to detect this. Also, some Intel
4949 # versions had trouble with output in subdirs.
4950 am__obj=sub/conftest.${OBJEXT-o}
4951 am__minus_obj="-o $am__obj"
4952 case $depmode in
4953 gcc)
4954 # This depmode causes a compiler race in universal mode.
4955 test "$am__universal" = false || continue
4957 nosideeffect)
4958 # After this tag, mechanisms are not by side-effect, so they'll
4959 # only be used when explicitly requested.
4960 if test "x$enable_dependency_tracking" = xyes; then
4961 continue
4962 else
4963 break
4966 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4967 # This compiler won't grok '-c -o', but also, the minuso test has
4968 # not run yet. These depmodes are late enough in the game, and
4969 # so weak that their functioning should not be impacted.
4970 am__obj=conftest.${OBJEXT-o}
4971 am__minus_obj=
4973 none) break ;;
4974 esac
4975 if depmode=$depmode \
4976 source=sub/conftest.c object=$am__obj \
4977 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4978 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4979 >/dev/null 2>conftest.err &&
4980 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4981 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4982 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4983 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4984 # icc doesn't choke on unknown options, it will just issue warnings
4985 # or remarks (even with -Werror). So we grep stderr for any message
4986 # that says an option was ignored or not supported.
4987 # When given -MP, icc 7.0 and 7.1 complain thusly:
4988 # icc: Command line warning: ignoring option '-M'; no argument required
4989 # The diagnosis changed in icc 8.0:
4990 # icc: Command line remark: option '-MP' not supported
4991 if (grep 'ignoring option' conftest.err ||
4992 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4993 am_cv_CXX_dependencies_compiler_type=$depmode
4994 break
4997 done
4999 cd ..
5000 rm -rf conftest.dir
5001 else
5002 am_cv_CXX_dependencies_compiler_type=none
5006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5007 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5008 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5011 test "x$enable_dependency_tracking" != xno \
5012 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5013 am__fastdepCXX_TRUE=
5014 am__fastdepCXX_FALSE='#'
5015 else
5016 am__fastdepCXX_TRUE='#'
5017 am__fastdepCXX_FALSE=
5021 # By default we simply use the C compiler to build assembly code.
5023 test "${CCAS+set}" = set || CCAS=$CC
5024 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
5028 depcc="$CCAS" am_compiler_list=
5030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5031 $as_echo_n "checking dependency style of $depcc... " >&6; }
5032 if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
5033 $as_echo_n "(cached) " >&6
5034 else
5035 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5036 # We make a subdir and do the tests there. Otherwise we can end up
5037 # making bogus files that we don't know about and never remove. For
5038 # instance it was reported that on HP-UX the gcc test will end up
5039 # making a dummy file named 'D' -- because '-MD' means "put the output
5040 # in D".
5041 rm -rf conftest.dir
5042 mkdir conftest.dir
5043 # Copy depcomp to subdir because otherwise we won't find it if we're
5044 # using a relative directory.
5045 cp "$am_depcomp" conftest.dir
5046 cd conftest.dir
5047 # We will build objects and dependencies in a subdirectory because
5048 # it helps to detect inapplicable dependency modes. For instance
5049 # both Tru64's cc and ICC support -MD to output dependencies as a
5050 # side effect of compilation, but ICC will put the dependencies in
5051 # the current directory while Tru64 will put them in the object
5052 # directory.
5053 mkdir sub
5055 am_cv_CCAS_dependencies_compiler_type=none
5056 if test "$am_compiler_list" = ""; then
5057 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5059 am__universal=false
5062 for depmode in $am_compiler_list; do
5063 # Setup a source with many dependencies, because some compilers
5064 # like to wrap large dependency lists on column 80 (with \), and
5065 # we should not choose a depcomp mode which is confused by this.
5067 # We need to recreate these files for each test, as the compiler may
5068 # overwrite some of them when testing with obscure command lines.
5069 # This happens at least with the AIX C compiler.
5070 : > sub/conftest.c
5071 for i in 1 2 3 4 5 6; do
5072 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5073 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5074 # Solaris 10 /bin/sh.
5075 echo '/* dummy */' > sub/conftst$i.h
5076 done
5077 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5079 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5080 # mode. It turns out that the SunPro C++ compiler does not properly
5081 # handle '-M -o', and we need to detect this. Also, some Intel
5082 # versions had trouble with output in subdirs.
5083 am__obj=sub/conftest.${OBJEXT-o}
5084 am__minus_obj="-o $am__obj"
5085 case $depmode in
5086 gcc)
5087 # This depmode causes a compiler race in universal mode.
5088 test "$am__universal" = false || continue
5090 nosideeffect)
5091 # After this tag, mechanisms are not by side-effect, so they'll
5092 # only be used when explicitly requested.
5093 if test "x$enable_dependency_tracking" = xyes; then
5094 continue
5095 else
5096 break
5099 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5100 # This compiler won't grok '-c -o', but also, the minuso test has
5101 # not run yet. These depmodes are late enough in the game, and
5102 # so weak that their functioning should not be impacted.
5103 am__obj=conftest.${OBJEXT-o}
5104 am__minus_obj=
5106 none) break ;;
5107 esac
5108 if depmode=$depmode \
5109 source=sub/conftest.c object=$am__obj \
5110 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5111 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5112 >/dev/null 2>conftest.err &&
5113 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5114 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5115 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5116 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5117 # icc doesn't choke on unknown options, it will just issue warnings
5118 # or remarks (even with -Werror). So we grep stderr for any message
5119 # that says an option was ignored or not supported.
5120 # When given -MP, icc 7.0 and 7.1 complain thusly:
5121 # icc: Command line warning: ignoring option '-M'; no argument required
5122 # The diagnosis changed in icc 8.0:
5123 # icc: Command line remark: option '-MP' not supported
5124 if (grep 'ignoring option' conftest.err ||
5125 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5126 am_cv_CCAS_dependencies_compiler_type=$depmode
5127 break
5130 done
5132 cd ..
5133 rm -rf conftest.dir
5134 else
5135 am_cv_CCAS_dependencies_compiler_type=none
5139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
5140 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
5141 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
5144 test "x$enable_dependency_tracking" != xno \
5145 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
5146 am__fastdepCCAS_TRUE=
5147 am__fastdepCCAS_FALSE='#'
5148 else
5149 am__fastdepCCAS_TRUE='#'
5150 am__fastdepCCAS_FALSE=
5158 # In order to override CFLAGS_FOR_TARGET, all of our special flags go
5159 # in XCFLAGS. But we need them in CFLAGS during configury. So put them
5160 # in both places for now and restore CFLAGS at the end of config.
5161 save_CFLAGS="$CFLAGS"
5163 # Find other programs we need.
5164 if test -n "$ac_tool_prefix"; then
5165 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5166 set dummy ${ac_tool_prefix}ar; ac_word=$2
5167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5168 $as_echo_n "checking for $ac_word... " >&6; }
5169 if ${ac_cv_prog_AR+:} false; then :
5170 $as_echo_n "(cached) " >&6
5171 else
5172 if test -n "$AR"; then
5173 ac_cv_prog_AR="$AR" # Let the user override the test.
5174 else
5175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5176 for as_dir in $PATH
5178 IFS=$as_save_IFS
5179 test -z "$as_dir" && as_dir=.
5180 for ac_exec_ext in '' $ac_executable_extensions; do
5181 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5182 ac_cv_prog_AR="${ac_tool_prefix}ar"
5183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5184 break 2
5186 done
5187 done
5188 IFS=$as_save_IFS
5192 AR=$ac_cv_prog_AR
5193 if test -n "$AR"; then
5194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5195 $as_echo "$AR" >&6; }
5196 else
5197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5198 $as_echo "no" >&6; }
5203 if test -z "$ac_cv_prog_AR"; then
5204 ac_ct_AR=$AR
5205 # Extract the first word of "ar", so it can be a program name with args.
5206 set dummy ar; ac_word=$2
5207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5208 $as_echo_n "checking for $ac_word... " >&6; }
5209 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5210 $as_echo_n "(cached) " >&6
5211 else
5212 if test -n "$ac_ct_AR"; then
5213 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5214 else
5215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5216 for as_dir in $PATH
5218 IFS=$as_save_IFS
5219 test -z "$as_dir" && as_dir=.
5220 for ac_exec_ext in '' $ac_executable_extensions; do
5221 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5222 ac_cv_prog_ac_ct_AR="ar"
5223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5224 break 2
5226 done
5227 done
5228 IFS=$as_save_IFS
5232 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5233 if test -n "$ac_ct_AR"; then
5234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5235 $as_echo "$ac_ct_AR" >&6; }
5236 else
5237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5238 $as_echo "no" >&6; }
5241 if test "x$ac_ct_AR" = x; then
5242 AR=""
5243 else
5244 case $cross_compiling:$ac_tool_warned in
5245 yes:)
5246 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5247 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5248 ac_tool_warned=yes ;;
5249 esac
5250 AR=$ac_ct_AR
5252 else
5253 AR="$ac_cv_prog_AR"
5256 if test -n "$ac_tool_prefix"; then
5257 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
5258 set dummy ${ac_tool_prefix}nm; ac_word=$2
5259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5260 $as_echo_n "checking for $ac_word... " >&6; }
5261 if ${ac_cv_prog_NM+:} false; then :
5262 $as_echo_n "(cached) " >&6
5263 else
5264 if test -n "$NM"; then
5265 ac_cv_prog_NM="$NM" # Let the user override the test.
5266 else
5267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5268 for as_dir in $PATH
5270 IFS=$as_save_IFS
5271 test -z "$as_dir" && as_dir=.
5272 for ac_exec_ext in '' $ac_executable_extensions; do
5273 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5274 ac_cv_prog_NM="${ac_tool_prefix}nm"
5275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5276 break 2
5278 done
5279 done
5280 IFS=$as_save_IFS
5284 NM=$ac_cv_prog_NM
5285 if test -n "$NM"; then
5286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
5287 $as_echo "$NM" >&6; }
5288 else
5289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5290 $as_echo "no" >&6; }
5295 if test -z "$ac_cv_prog_NM"; then
5296 ac_ct_NM=$NM
5297 # Extract the first word of "nm", so it can be a program name with args.
5298 set dummy nm; ac_word=$2
5299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5300 $as_echo_n "checking for $ac_word... " >&6; }
5301 if ${ac_cv_prog_ac_ct_NM+:} false; then :
5302 $as_echo_n "(cached) " >&6
5303 else
5304 if test -n "$ac_ct_NM"; then
5305 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
5306 else
5307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5308 for as_dir in $PATH
5310 IFS=$as_save_IFS
5311 test -z "$as_dir" && as_dir=.
5312 for ac_exec_ext in '' $ac_executable_extensions; do
5313 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5314 ac_cv_prog_ac_ct_NM="nm"
5315 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5316 break 2
5318 done
5319 done
5320 IFS=$as_save_IFS
5324 ac_ct_NM=$ac_cv_prog_ac_ct_NM
5325 if test -n "$ac_ct_NM"; then
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5
5327 $as_echo "$ac_ct_NM" >&6; }
5328 else
5329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5330 $as_echo "no" >&6; }
5333 if test "x$ac_ct_NM" = x; then
5334 NM=""
5335 else
5336 case $cross_compiling:$ac_tool_warned in
5337 yes:)
5338 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5339 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5340 ac_tool_warned=yes ;;
5341 esac
5342 NM=$ac_ct_NM
5344 else
5345 NM="$ac_cv_prog_NM"
5348 if test -n "$ac_tool_prefix"; then
5349 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5350 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5352 $as_echo_n "checking for $ac_word... " >&6; }
5353 if ${ac_cv_prog_RANLIB+:} false; then :
5354 $as_echo_n "(cached) " >&6
5355 else
5356 if test -n "$RANLIB"; then
5357 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5358 else
5359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5360 for as_dir in $PATH
5362 IFS=$as_save_IFS
5363 test -z "$as_dir" && as_dir=.
5364 for ac_exec_ext in '' $ac_executable_extensions; do
5365 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5366 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5368 break 2
5370 done
5371 done
5372 IFS=$as_save_IFS
5376 RANLIB=$ac_cv_prog_RANLIB
5377 if test -n "$RANLIB"; then
5378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5379 $as_echo "$RANLIB" >&6; }
5380 else
5381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5382 $as_echo "no" >&6; }
5387 if test -z "$ac_cv_prog_RANLIB"; then
5388 ac_ct_RANLIB=$RANLIB
5389 # Extract the first word of "ranlib", so it can be a program name with args.
5390 set dummy ranlib; ac_word=$2
5391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5392 $as_echo_n "checking for $ac_word... " >&6; }
5393 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5394 $as_echo_n "(cached) " >&6
5395 else
5396 if test -n "$ac_ct_RANLIB"; then
5397 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5398 else
5399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5400 for as_dir in $PATH
5402 IFS=$as_save_IFS
5403 test -z "$as_dir" && as_dir=.
5404 for ac_exec_ext in '' $ac_executable_extensions; do
5405 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5406 ac_cv_prog_ac_ct_RANLIB="ranlib"
5407 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5408 break 2
5410 done
5411 done
5412 IFS=$as_save_IFS
5416 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5417 if test -n "$ac_ct_RANLIB"; then
5418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5419 $as_echo "$ac_ct_RANLIB" >&6; }
5420 else
5421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5422 $as_echo "no" >&6; }
5425 if test "x$ac_ct_RANLIB" = x; then
5426 RANLIB="ranlib-not-found-in-path-error"
5427 else
5428 case $cross_compiling:$ac_tool_warned in
5429 yes:)
5430 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5431 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5432 ac_tool_warned=yes ;;
5433 esac
5434 RANLIB=$ac_ct_RANLIB
5436 else
5437 RANLIB="$ac_cv_prog_RANLIB"
5440 # Extract the first word of "perl", so it can be a program name with args.
5441 set dummy perl; ac_word=$2
5442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5443 $as_echo_n "checking for $ac_word... " >&6; }
5444 if ${ac_cv_path_PERL+:} false; then :
5445 $as_echo_n "(cached) " >&6
5446 else
5447 case $PERL in
5448 [\\/]* | ?:[\\/]*)
5449 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
5452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5453 for as_dir in $PATH
5455 IFS=$as_save_IFS
5456 test -z "$as_dir" && as_dir=.
5457 for ac_exec_ext in '' $ac_executable_extensions; do
5458 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5459 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
5460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5461 break 2
5463 done
5464 done
5465 IFS=$as_save_IFS
5467 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl-not-found-in-path-error"
5469 esac
5471 PERL=$ac_cv_path_PERL
5472 if test -n "$PERL"; then
5473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
5474 $as_echo "$PERL" >&6; }
5475 else
5476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5477 $as_echo "no" >&6; }
5481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5482 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5483 set x ${MAKE-make}
5484 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5485 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5486 $as_echo_n "(cached) " >&6
5487 else
5488 cat >conftest.make <<\_ACEOF
5489 SHELL = /bin/sh
5490 all:
5491 @echo '@@@%%%=$(MAKE)=@@@%%%'
5492 _ACEOF
5493 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5494 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5495 *@@@%%%=?*=@@@%%%*)
5496 eval ac_cv_prog_make_${ac_make}_set=yes;;
5498 eval ac_cv_prog_make_${ac_make}_set=no;;
5499 esac
5500 rm -f conftest.make
5502 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5504 $as_echo "yes" >&6; }
5505 SET_MAKE=
5506 else
5507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5508 $as_echo "no" >&6; }
5509 SET_MAKE="MAKE=${MAKE-make}"
5514 # See if makeinfo has been installed and is modern enough
5515 # that we can use it.
5517 # Extract the first word of "makeinfo", so it can be a program name with args.
5518 set dummy makeinfo; ac_word=$2
5519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5520 $as_echo_n "checking for $ac_word... " >&6; }
5521 if ${ac_cv_prog_MAKEINFO+:} false; then :
5522 $as_echo_n "(cached) " >&6
5523 else
5524 if test -n "$MAKEINFO"; then
5525 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
5526 else
5527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5528 for as_dir in $PATH
5530 IFS=$as_save_IFS
5531 test -z "$as_dir" && as_dir=.
5532 for ac_exec_ext in '' $ac_executable_extensions; do
5533 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5534 ac_cv_prog_MAKEINFO="makeinfo"
5535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5536 break 2
5538 done
5539 done
5540 IFS=$as_save_IFS
5544 MAKEINFO=$ac_cv_prog_MAKEINFO
5545 if test -n "$MAKEINFO"; then
5546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
5547 $as_echo "$MAKEINFO" >&6; }
5548 else
5549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5550 $as_echo "no" >&6; }
5554 if test -n "$MAKEINFO"; then
5555 # Found it, now check the version.
5556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
5557 $as_echo_n "checking for modern makeinfo... " >&6; }
5558 if ${gcc_cv_prog_makeinfo_modern+:} false; then :
5559 $as_echo_n "(cached) " >&6
5560 else
5561 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
5562 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
5564 case $ac_prog_version in
5565 '') gcc_cv_prog_makeinfo_modern=no;;
5566 4.[4-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
5567 *) gcc_cv_prog_makeinfo_modern=no;;
5568 esac
5571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
5572 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
5573 else
5574 gcc_cv_prog_makeinfo_modern=no
5576 if test $gcc_cv_prog_makeinfo_modern = no; then
5577 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
5580 if test $gcc_cv_prog_makeinfo_modern = "yes"; then
5581 BUILD_INFO_TRUE=
5582 BUILD_INFO_FALSE='#'
5583 else
5584 BUILD_INFO_TRUE='#'
5585 BUILD_INFO_FALSE=
5590 # Configure libtool
5591 case `pwd` in
5592 *\ * | *\ *)
5593 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5594 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5595 esac
5599 macro_version='2.2.7a'
5600 macro_revision='1.3134'
5614 ltmain="$ac_aux_dir/ltmain.sh"
5616 # Backslashify metacharacters that are still active within
5617 # double-quoted strings.
5618 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5620 # Same as above, but do not quote variable references.
5621 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5623 # Sed substitution to delay expansion of an escaped shell variable in a
5624 # double_quote_subst'ed string.
5625 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5627 # Sed substitution to delay expansion of an escaped single quote.
5628 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5630 # Sed substitution to avoid accidental globbing in evaled expressions
5631 no_glob_subst='s/\*/\\\*/g'
5633 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5634 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5635 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5638 $as_echo_n "checking how to print strings... " >&6; }
5639 # Test print first, because it will be a builtin if present.
5640 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5641 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5642 ECHO='print -r --'
5643 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5644 ECHO='printf %s\n'
5645 else
5646 # Use this function as a fallback that always works.
5647 func_fallback_echo ()
5649 eval 'cat <<_LTECHO_EOF
5651 _LTECHO_EOF'
5653 ECHO='func_fallback_echo'
5656 # func_echo_all arg...
5657 # Invoke $ECHO with all args, space-separated.
5658 func_echo_all ()
5660 $ECHO ""
5663 case "$ECHO" in
5664 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5665 $as_echo "printf" >&6; } ;;
5666 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5667 $as_echo "print -r" >&6; } ;;
5668 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5669 $as_echo "cat" >&6; } ;;
5670 esac
5685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5686 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5687 if ${ac_cv_path_SED+:} false; then :
5688 $as_echo_n "(cached) " >&6
5689 else
5690 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5691 for ac_i in 1 2 3 4 5 6 7; do
5692 ac_script="$ac_script$as_nl$ac_script"
5693 done
5694 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5695 { ac_script=; unset ac_script;}
5696 if test -z "$SED"; then
5697 ac_path_SED_found=false
5698 # Loop through the user's path and test for each of PROGNAME-LIST
5699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5700 for as_dir in $PATH
5702 IFS=$as_save_IFS
5703 test -z "$as_dir" && as_dir=.
5704 for ac_prog in sed gsed; do
5705 for ac_exec_ext in '' $ac_executable_extensions; do
5706 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5707 as_fn_executable_p "$ac_path_SED" || continue
5708 # Check for GNU ac_path_SED and select it if it is found.
5709 # Check for GNU $ac_path_SED
5710 case `"$ac_path_SED" --version 2>&1` in
5711 *GNU*)
5712 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5714 ac_count=0
5715 $as_echo_n 0123456789 >"conftest.in"
5716 while :
5718 cat "conftest.in" "conftest.in" >"conftest.tmp"
5719 mv "conftest.tmp" "conftest.in"
5720 cp "conftest.in" "conftest.nl"
5721 $as_echo '' >> "conftest.nl"
5722 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5723 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5724 as_fn_arith $ac_count + 1 && ac_count=$as_val
5725 if test $ac_count -gt ${ac_path_SED_max-0}; then
5726 # Best one so far, save it but keep looking for a better one
5727 ac_cv_path_SED="$ac_path_SED"
5728 ac_path_SED_max=$ac_count
5730 # 10*(2^10) chars as input seems more than enough
5731 test $ac_count -gt 10 && break
5732 done
5733 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5734 esac
5736 $ac_path_SED_found && break 3
5737 done
5738 done
5739 done
5740 IFS=$as_save_IFS
5741 if test -z "$ac_cv_path_SED"; then
5742 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5744 else
5745 ac_cv_path_SED=$SED
5749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5750 $as_echo "$ac_cv_path_SED" >&6; }
5751 SED="$ac_cv_path_SED"
5752 rm -f conftest.sed
5754 test -z "$SED" && SED=sed
5755 Xsed="$SED -e 1s/^X//"
5767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5768 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5769 if ${ac_cv_path_GREP+:} false; then :
5770 $as_echo_n "(cached) " >&6
5771 else
5772 if test -z "$GREP"; then
5773 ac_path_GREP_found=false
5774 # Loop through the user's path and test for each of PROGNAME-LIST
5775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5776 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5778 IFS=$as_save_IFS
5779 test -z "$as_dir" && as_dir=.
5780 for ac_prog in grep ggrep; do
5781 for ac_exec_ext in '' $ac_executable_extensions; do
5782 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5783 as_fn_executable_p "$ac_path_GREP" || continue
5784 # Check for GNU ac_path_GREP and select it if it is found.
5785 # Check for GNU $ac_path_GREP
5786 case `"$ac_path_GREP" --version 2>&1` in
5787 *GNU*)
5788 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5790 ac_count=0
5791 $as_echo_n 0123456789 >"conftest.in"
5792 while :
5794 cat "conftest.in" "conftest.in" >"conftest.tmp"
5795 mv "conftest.tmp" "conftest.in"
5796 cp "conftest.in" "conftest.nl"
5797 $as_echo 'GREP' >> "conftest.nl"
5798 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5799 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5800 as_fn_arith $ac_count + 1 && ac_count=$as_val
5801 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5802 # Best one so far, save it but keep looking for a better one
5803 ac_cv_path_GREP="$ac_path_GREP"
5804 ac_path_GREP_max=$ac_count
5806 # 10*(2^10) chars as input seems more than enough
5807 test $ac_count -gt 10 && break
5808 done
5809 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5810 esac
5812 $ac_path_GREP_found && break 3
5813 done
5814 done
5815 done
5816 IFS=$as_save_IFS
5817 if test -z "$ac_cv_path_GREP"; then
5818 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5820 else
5821 ac_cv_path_GREP=$GREP
5825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5826 $as_echo "$ac_cv_path_GREP" >&6; }
5827 GREP="$ac_cv_path_GREP"
5830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5831 $as_echo_n "checking for egrep... " >&6; }
5832 if ${ac_cv_path_EGREP+:} false; then :
5833 $as_echo_n "(cached) " >&6
5834 else
5835 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5836 then ac_cv_path_EGREP="$GREP -E"
5837 else
5838 if test -z "$EGREP"; then
5839 ac_path_EGREP_found=false
5840 # Loop through the user's path and test for each of PROGNAME-LIST
5841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5842 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5844 IFS=$as_save_IFS
5845 test -z "$as_dir" && as_dir=.
5846 for ac_prog in egrep; do
5847 for ac_exec_ext in '' $ac_executable_extensions; do
5848 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5849 as_fn_executable_p "$ac_path_EGREP" || continue
5850 # Check for GNU ac_path_EGREP and select it if it is found.
5851 # Check for GNU $ac_path_EGREP
5852 case `"$ac_path_EGREP" --version 2>&1` in
5853 *GNU*)
5854 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5856 ac_count=0
5857 $as_echo_n 0123456789 >"conftest.in"
5858 while :
5860 cat "conftest.in" "conftest.in" >"conftest.tmp"
5861 mv "conftest.tmp" "conftest.in"
5862 cp "conftest.in" "conftest.nl"
5863 $as_echo 'EGREP' >> "conftest.nl"
5864 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5865 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5866 as_fn_arith $ac_count + 1 && ac_count=$as_val
5867 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5868 # Best one so far, save it but keep looking for a better one
5869 ac_cv_path_EGREP="$ac_path_EGREP"
5870 ac_path_EGREP_max=$ac_count
5872 # 10*(2^10) chars as input seems more than enough
5873 test $ac_count -gt 10 && break
5874 done
5875 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5876 esac
5878 $ac_path_EGREP_found && break 3
5879 done
5880 done
5881 done
5882 IFS=$as_save_IFS
5883 if test -z "$ac_cv_path_EGREP"; then
5884 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5886 else
5887 ac_cv_path_EGREP=$EGREP
5892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5893 $as_echo "$ac_cv_path_EGREP" >&6; }
5894 EGREP="$ac_cv_path_EGREP"
5897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5898 $as_echo_n "checking for fgrep... " >&6; }
5899 if ${ac_cv_path_FGREP+:} false; then :
5900 $as_echo_n "(cached) " >&6
5901 else
5902 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5903 then ac_cv_path_FGREP="$GREP -F"
5904 else
5905 if test -z "$FGREP"; then
5906 ac_path_FGREP_found=false
5907 # Loop through the user's path and test for each of PROGNAME-LIST
5908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5909 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5911 IFS=$as_save_IFS
5912 test -z "$as_dir" && as_dir=.
5913 for ac_prog in fgrep; do
5914 for ac_exec_ext in '' $ac_executable_extensions; do
5915 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5916 as_fn_executable_p "$ac_path_FGREP" || continue
5917 # Check for GNU ac_path_FGREP and select it if it is found.
5918 # Check for GNU $ac_path_FGREP
5919 case `"$ac_path_FGREP" --version 2>&1` in
5920 *GNU*)
5921 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5923 ac_count=0
5924 $as_echo_n 0123456789 >"conftest.in"
5925 while :
5927 cat "conftest.in" "conftest.in" >"conftest.tmp"
5928 mv "conftest.tmp" "conftest.in"
5929 cp "conftest.in" "conftest.nl"
5930 $as_echo 'FGREP' >> "conftest.nl"
5931 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5932 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5933 as_fn_arith $ac_count + 1 && ac_count=$as_val
5934 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5935 # Best one so far, save it but keep looking for a better one
5936 ac_cv_path_FGREP="$ac_path_FGREP"
5937 ac_path_FGREP_max=$ac_count
5939 # 10*(2^10) chars as input seems more than enough
5940 test $ac_count -gt 10 && break
5941 done
5942 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5943 esac
5945 $ac_path_FGREP_found && break 3
5946 done
5947 done
5948 done
5949 IFS=$as_save_IFS
5950 if test -z "$ac_cv_path_FGREP"; then
5951 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5953 else
5954 ac_cv_path_FGREP=$FGREP
5959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5960 $as_echo "$ac_cv_path_FGREP" >&6; }
5961 FGREP="$ac_cv_path_FGREP"
5964 test -z "$GREP" && GREP=grep
5984 # Check whether --with-gnu-ld was given.
5985 if test "${with_gnu_ld+set}" = set; then :
5986 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5987 else
5988 with_gnu_ld=no
5991 ac_prog=ld
5992 if test "$GCC" = yes; then
5993 # Check if gcc -print-prog-name=ld gives a path.
5994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5995 $as_echo_n "checking for ld used by $CC... " >&6; }
5996 case $host in
5997 *-*-mingw*)
5998 # gcc leaves a trailing carriage return which upsets mingw
5999 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6001 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6002 esac
6003 case $ac_prog in
6004 # Accept absolute paths.
6005 [\\/]* | ?:[\\/]*)
6006 re_direlt='/[^/][^/]*/\.\./'
6007 # Canonicalize the pathname of ld
6008 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6009 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6010 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6011 done
6012 test -z "$LD" && LD="$ac_prog"
6015 # If it fails, then pretend we aren't using GCC.
6016 ac_prog=ld
6019 # If it is relative, then search for the first ld in PATH.
6020 with_gnu_ld=unknown
6022 esac
6023 elif test "$with_gnu_ld" = yes; then
6024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6025 $as_echo_n "checking for GNU ld... " >&6; }
6026 else
6027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6028 $as_echo_n "checking for non-GNU ld... " >&6; }
6030 if ${lt_cv_path_LD+:} false; then :
6031 $as_echo_n "(cached) " >&6
6032 else
6033 if test -z "$LD"; then
6034 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6035 for ac_dir in $PATH; do
6036 IFS="$lt_save_ifs"
6037 test -z "$ac_dir" && ac_dir=.
6038 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6039 lt_cv_path_LD="$ac_dir/$ac_prog"
6040 # Check to see if the program is GNU ld. I'd rather use --version,
6041 # but apparently some variants of GNU ld only accept -v.
6042 # Break only if it was the GNU/non-GNU ld that we prefer.
6043 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6044 *GNU* | *'with BFD'*)
6045 test "$with_gnu_ld" != no && break
6048 test "$with_gnu_ld" != yes && break
6050 esac
6052 done
6053 IFS="$lt_save_ifs"
6054 else
6055 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6059 LD="$lt_cv_path_LD"
6060 if test -n "$LD"; then
6061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6062 $as_echo "$LD" >&6; }
6063 else
6064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6065 $as_echo "no" >&6; }
6067 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6069 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6070 if ${lt_cv_prog_gnu_ld+:} false; then :
6071 $as_echo_n "(cached) " >&6
6072 else
6073 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6074 case `$LD -v 2>&1 </dev/null` in
6075 *GNU* | *'with BFD'*)
6076 lt_cv_prog_gnu_ld=yes
6079 lt_cv_prog_gnu_ld=no
6081 esac
6083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6084 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6085 with_gnu_ld=$lt_cv_prog_gnu_ld
6095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6096 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6097 if ${lt_cv_path_NM+:} false; then :
6098 $as_echo_n "(cached) " >&6
6099 else
6100 if test -n "$NM"; then
6101 # Let the user override the test.
6102 lt_cv_path_NM="$NM"
6103 else
6104 lt_nm_to_check="${ac_tool_prefix}nm"
6105 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6106 lt_nm_to_check="$lt_nm_to_check nm"
6108 for lt_tmp_nm in $lt_nm_to_check; do
6109 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6110 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6111 IFS="$lt_save_ifs"
6112 test -z "$ac_dir" && ac_dir=.
6113 tmp_nm="$ac_dir/$lt_tmp_nm"
6114 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6115 # Check to see if the nm accepts a BSD-compat flag.
6116 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6117 # nm: unknown option "B" ignored
6118 # Tru64's nm complains that /dev/null is an invalid object file
6119 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6120 */dev/null* | *'Invalid file or object type'*)
6121 lt_cv_path_NM="$tmp_nm -B"
6122 break
6125 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6126 */dev/null*)
6127 lt_cv_path_NM="$tmp_nm -p"
6128 break
6131 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6132 continue # so that we can try to find one that supports BSD flags
6134 esac
6136 esac
6138 done
6139 IFS="$lt_save_ifs"
6140 done
6141 : ${lt_cv_path_NM=no}
6144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6145 $as_echo "$lt_cv_path_NM" >&6; }
6146 if test "$lt_cv_path_NM" != "no"; then
6147 NM="$lt_cv_path_NM"
6148 else
6149 # Didn't find any BSD compatible name lister, look for dumpbin.
6150 if test -n "$DUMPBIN"; then :
6151 # Let the user override the test.
6152 else
6153 if test -n "$ac_tool_prefix"; then
6154 for ac_prog in dumpbin "link -dump"
6156 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6157 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6159 $as_echo_n "checking for $ac_word... " >&6; }
6160 if ${ac_cv_prog_DUMPBIN+:} false; then :
6161 $as_echo_n "(cached) " >&6
6162 else
6163 if test -n "$DUMPBIN"; then
6164 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6165 else
6166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6167 for as_dir in $PATH
6169 IFS=$as_save_IFS
6170 test -z "$as_dir" && as_dir=.
6171 for ac_exec_ext in '' $ac_executable_extensions; do
6172 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6173 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6175 break 2
6177 done
6178 done
6179 IFS=$as_save_IFS
6183 DUMPBIN=$ac_cv_prog_DUMPBIN
6184 if test -n "$DUMPBIN"; then
6185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6186 $as_echo "$DUMPBIN" >&6; }
6187 else
6188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6189 $as_echo "no" >&6; }
6193 test -n "$DUMPBIN" && break
6194 done
6196 if test -z "$DUMPBIN"; then
6197 ac_ct_DUMPBIN=$DUMPBIN
6198 for ac_prog in dumpbin "link -dump"
6200 # Extract the first word of "$ac_prog", so it can be a program name with args.
6201 set dummy $ac_prog; ac_word=$2
6202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6203 $as_echo_n "checking for $ac_word... " >&6; }
6204 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6205 $as_echo_n "(cached) " >&6
6206 else
6207 if test -n "$ac_ct_DUMPBIN"; then
6208 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6209 else
6210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6211 for as_dir in $PATH
6213 IFS=$as_save_IFS
6214 test -z "$as_dir" && as_dir=.
6215 for ac_exec_ext in '' $ac_executable_extensions; do
6216 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6217 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6219 break 2
6221 done
6222 done
6223 IFS=$as_save_IFS
6227 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6228 if test -n "$ac_ct_DUMPBIN"; then
6229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6230 $as_echo "$ac_ct_DUMPBIN" >&6; }
6231 else
6232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6233 $as_echo "no" >&6; }
6237 test -n "$ac_ct_DUMPBIN" && break
6238 done
6240 if test "x$ac_ct_DUMPBIN" = x; then
6241 DUMPBIN=":"
6242 else
6243 case $cross_compiling:$ac_tool_warned in
6244 yes:)
6245 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6246 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6247 ac_tool_warned=yes ;;
6248 esac
6249 DUMPBIN=$ac_ct_DUMPBIN
6253 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6254 *COFF*)
6255 DUMPBIN="$DUMPBIN -symbols"
6258 DUMPBIN=:
6260 esac
6263 if test "$DUMPBIN" != ":"; then
6264 NM="$DUMPBIN"
6267 test -z "$NM" && NM=nm
6274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6275 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6276 if ${lt_cv_nm_interface+:} false; then :
6277 $as_echo_n "(cached) " >&6
6278 else
6279 lt_cv_nm_interface="BSD nm"
6280 echo "int some_variable = 0;" > conftest.$ac_ext
6281 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6282 (eval "$ac_compile" 2>conftest.err)
6283 cat conftest.err >&5
6284 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6285 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6286 cat conftest.err >&5
6287 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6288 cat conftest.out >&5
6289 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6290 lt_cv_nm_interface="MS dumpbin"
6292 rm -f conftest*
6294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6295 $as_echo "$lt_cv_nm_interface" >&6; }
6297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6298 $as_echo_n "checking whether ln -s works... " >&6; }
6299 LN_S=$as_ln_s
6300 if test "$LN_S" = "ln -s"; then
6301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6302 $as_echo "yes" >&6; }
6303 else
6304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6305 $as_echo "no, using $LN_S" >&6; }
6308 # find the maximum length of command line arguments
6309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6310 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6311 if ${lt_cv_sys_max_cmd_len+:} false; then :
6312 $as_echo_n "(cached) " >&6
6313 else
6315 teststring="ABCD"
6317 case $build_os in
6318 msdosdjgpp*)
6319 # On DJGPP, this test can blow up pretty badly due to problems in libc
6320 # (any single argument exceeding 2000 bytes causes a buffer overrun
6321 # during glob expansion). Even if it were fixed, the result of this
6322 # check would be larger than it should be.
6323 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6326 gnu*)
6327 # Under GNU Hurd, this test is not required because there is
6328 # no limit to the length of command line arguments.
6329 # Libtool will interpret -1 as no limit whatsoever
6330 lt_cv_sys_max_cmd_len=-1;
6333 cygwin* | mingw* | cegcc*)
6334 # On Win9x/ME, this test blows up -- it succeeds, but takes
6335 # about 5 minutes as the teststring grows exponentially.
6336 # Worse, since 9x/ME are not pre-emptively multitasking,
6337 # you end up with a "frozen" computer, even though with patience
6338 # the test eventually succeeds (with a max line length of 256k).
6339 # Instead, let's just punt: use the minimum linelength reported by
6340 # all of the supported platforms: 8192 (on NT/2K/XP).
6341 lt_cv_sys_max_cmd_len=8192;
6344 mint*)
6345 # On MiNT this can take a long time and run out of memory.
6346 lt_cv_sys_max_cmd_len=8192;
6349 amigaos*)
6350 # On AmigaOS with pdksh, this test takes hours, literally.
6351 # So we just punt and use a minimum line length of 8192.
6352 lt_cv_sys_max_cmd_len=8192;
6355 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6356 # This has been around since 386BSD, at least. Likely further.
6357 if test -x /sbin/sysctl; then
6358 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6359 elif test -x /usr/sbin/sysctl; then
6360 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6361 else
6362 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6364 # And add a safety zone
6365 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6366 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6369 interix*)
6370 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6371 lt_cv_sys_max_cmd_len=196608
6374 osf*)
6375 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6376 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6377 # nice to cause kernel panics so lets avoid the loop below.
6378 # First set a reasonable default.
6379 lt_cv_sys_max_cmd_len=16384
6381 if test -x /sbin/sysconfig; then
6382 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6383 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6384 esac
6387 sco3.2v5*)
6388 lt_cv_sys_max_cmd_len=102400
6390 sysv5* | sco5v6* | sysv4.2uw2*)
6391 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6392 if test -n "$kargmax"; then
6393 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6394 else
6395 lt_cv_sys_max_cmd_len=32768
6399 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6400 if test -n "$lt_cv_sys_max_cmd_len"; then
6401 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6402 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6403 else
6404 # Make teststring a little bigger before we do anything with it.
6405 # a 1K string should be a reasonable start.
6406 for i in 1 2 3 4 5 6 7 8 ; do
6407 teststring=$teststring$teststring
6408 done
6409 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6410 # If test is not a shell built-in, we'll probably end up computing a
6411 # maximum length that is only half of the actual maximum length, but
6412 # we can't tell.
6413 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6414 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6415 test $i != 17 # 1/2 MB should be enough
6417 i=`expr $i + 1`
6418 teststring=$teststring$teststring
6419 done
6420 # Only check the string length outside the loop.
6421 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6422 teststring=
6423 # Add a significant safety factor because C++ compilers can tack on
6424 # massive amounts of additional arguments before passing them to the
6425 # linker. It appears as though 1/2 is a usable value.
6426 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6429 esac
6433 if test -n $lt_cv_sys_max_cmd_len ; then
6434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6435 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6436 else
6437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6438 $as_echo "none" >&6; }
6440 max_cmd_len=$lt_cv_sys_max_cmd_len
6447 : ${CP="cp -f"}
6448 : ${MV="mv -f"}
6449 : ${RM="rm -f"}
6451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6452 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6453 # Try some XSI features
6454 xsi_shell=no
6455 ( _lt_dummy="a/b/c"
6456 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6457 = c,a/b,, \
6458 && eval 'test $(( 1 + 1 )) -eq 2 \
6459 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6460 && xsi_shell=yes
6461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6462 $as_echo "$xsi_shell" >&6; }
6465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6466 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6467 lt_shell_append=no
6468 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6469 >/dev/null 2>&1 \
6470 && lt_shell_append=yes
6471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6472 $as_echo "$lt_shell_append" >&6; }
6475 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6476 lt_unset=unset
6477 else
6478 lt_unset=false
6485 # test EBCDIC or ASCII
6486 case `echo X|tr X '\101'` in
6487 A) # ASCII based system
6488 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6489 lt_SP2NL='tr \040 \012'
6490 lt_NL2SP='tr \015\012 \040\040'
6492 *) # EBCDIC based system
6493 lt_SP2NL='tr \100 \n'
6494 lt_NL2SP='tr \r\n \100\100'
6496 esac
6506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6507 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6508 if ${lt_cv_ld_reload_flag+:} false; then :
6509 $as_echo_n "(cached) " >&6
6510 else
6511 lt_cv_ld_reload_flag='-r'
6513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6514 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6515 reload_flag=$lt_cv_ld_reload_flag
6516 case $reload_flag in
6517 "" | " "*) ;;
6518 *) reload_flag=" $reload_flag" ;;
6519 esac
6520 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6521 case $host_os in
6522 darwin*)
6523 if test "$GCC" = yes; then
6524 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6525 else
6526 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6529 esac
6539 if test -n "$ac_tool_prefix"; then
6540 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6541 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6543 $as_echo_n "checking for $ac_word... " >&6; }
6544 if ${ac_cv_prog_OBJDUMP+:} false; then :
6545 $as_echo_n "(cached) " >&6
6546 else
6547 if test -n "$OBJDUMP"; then
6548 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6549 else
6550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6551 for as_dir in $PATH
6553 IFS=$as_save_IFS
6554 test -z "$as_dir" && as_dir=.
6555 for ac_exec_ext in '' $ac_executable_extensions; do
6556 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6557 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6559 break 2
6561 done
6562 done
6563 IFS=$as_save_IFS
6567 OBJDUMP=$ac_cv_prog_OBJDUMP
6568 if test -n "$OBJDUMP"; then
6569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6570 $as_echo "$OBJDUMP" >&6; }
6571 else
6572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6573 $as_echo "no" >&6; }
6578 if test -z "$ac_cv_prog_OBJDUMP"; then
6579 ac_ct_OBJDUMP=$OBJDUMP
6580 # Extract the first word of "objdump", so it can be a program name with args.
6581 set dummy objdump; ac_word=$2
6582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6583 $as_echo_n "checking for $ac_word... " >&6; }
6584 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6585 $as_echo_n "(cached) " >&6
6586 else
6587 if test -n "$ac_ct_OBJDUMP"; then
6588 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6589 else
6590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6591 for as_dir in $PATH
6593 IFS=$as_save_IFS
6594 test -z "$as_dir" && as_dir=.
6595 for ac_exec_ext in '' $ac_executable_extensions; do
6596 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6597 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6599 break 2
6601 done
6602 done
6603 IFS=$as_save_IFS
6607 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6608 if test -n "$ac_ct_OBJDUMP"; then
6609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6610 $as_echo "$ac_ct_OBJDUMP" >&6; }
6611 else
6612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6613 $as_echo "no" >&6; }
6616 if test "x$ac_ct_OBJDUMP" = x; then
6617 OBJDUMP="false"
6618 else
6619 case $cross_compiling:$ac_tool_warned in
6620 yes:)
6621 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6622 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6623 ac_tool_warned=yes ;;
6624 esac
6625 OBJDUMP=$ac_ct_OBJDUMP
6627 else
6628 OBJDUMP="$ac_cv_prog_OBJDUMP"
6631 test -z "$OBJDUMP" && OBJDUMP=objdump
6641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6642 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6643 if ${lt_cv_deplibs_check_method+:} false; then :
6644 $as_echo_n "(cached) " >&6
6645 else
6646 lt_cv_file_magic_cmd='$MAGIC_CMD'
6647 lt_cv_file_magic_test_file=
6648 lt_cv_deplibs_check_method='unknown'
6649 # Need to set the preceding variable on all platforms that support
6650 # interlibrary dependencies.
6651 # 'none' -- dependencies not supported.
6652 # `unknown' -- same as none, but documents that we really don't know.
6653 # 'pass_all' -- all dependencies passed with no checks.
6654 # 'test_compile' -- check by making test program.
6655 # 'file_magic [[regex]]' -- check by looking for files in library path
6656 # which responds to the $file_magic_cmd with a given extended regex.
6657 # If you have `file' or equivalent on your system and you're not sure
6658 # whether `pass_all' will *always* work, you probably want this one.
6660 case $host_os in
6661 aix[4-9]*)
6662 lt_cv_deplibs_check_method=pass_all
6665 beos*)
6666 lt_cv_deplibs_check_method=pass_all
6669 bsdi[45]*)
6670 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6671 lt_cv_file_magic_cmd='/usr/bin/file -L'
6672 lt_cv_file_magic_test_file=/shlib/libc.so
6675 cygwin*)
6676 # func_win32_libid is a shell function defined in ltmain.sh
6677 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6678 lt_cv_file_magic_cmd='func_win32_libid'
6681 mingw* | pw32*)
6682 # Base MSYS/MinGW do not provide the 'file' command needed by
6683 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6684 # unless we find 'file', for example because we are cross-compiling.
6685 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6686 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6687 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6688 lt_cv_file_magic_cmd='func_win32_libid'
6689 else
6690 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6691 lt_cv_file_magic_cmd='$OBJDUMP -f'
6695 cegcc*)
6696 # use the weaker test based on 'objdump'. See mingw*.
6697 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6698 lt_cv_file_magic_cmd='$OBJDUMP -f'
6701 darwin* | rhapsody*)
6702 lt_cv_deplibs_check_method=pass_all
6705 freebsd* | dragonfly*)
6706 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6707 case $host_cpu in
6708 i*86 )
6709 # Not sure whether the presence of OpenBSD here was a mistake.
6710 # Let's accept both of them until this is cleared up.
6711 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6712 lt_cv_file_magic_cmd=/usr/bin/file
6713 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6715 esac
6716 else
6717 lt_cv_deplibs_check_method=pass_all
6721 gnu*)
6722 lt_cv_deplibs_check_method=pass_all
6725 haiku*)
6726 lt_cv_deplibs_check_method=pass_all
6729 hpux10.20* | hpux11*)
6730 lt_cv_file_magic_cmd=/usr/bin/file
6731 case $host_cpu in
6732 ia64*)
6733 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6734 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6736 hppa*64*)
6737 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]'
6738 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6741 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6742 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6744 esac
6747 interix[3-9]*)
6748 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6749 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6752 irix5* | irix6* | nonstopux*)
6753 case $LD in
6754 *-32|*"-32 ") libmagic=32-bit;;
6755 *-n32|*"-n32 ") libmagic=N32;;
6756 *-64|*"-64 ") libmagic=64-bit;;
6757 *) libmagic=never-match;;
6758 esac
6759 lt_cv_deplibs_check_method=pass_all
6762 # This must be Linux ELF.
6763 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
6764 lt_cv_deplibs_check_method=pass_all
6767 netbsd*)
6768 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6769 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6770 else
6771 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6775 newos6*)
6776 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6777 lt_cv_file_magic_cmd=/usr/bin/file
6778 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6781 *nto* | *qnx*)
6782 lt_cv_deplibs_check_method=pass_all
6785 openbsd*)
6786 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6787 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6788 else
6789 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6793 osf3* | osf4* | osf5*)
6794 lt_cv_deplibs_check_method=pass_all
6797 rdos*)
6798 lt_cv_deplibs_check_method=pass_all
6801 solaris*)
6802 lt_cv_deplibs_check_method=pass_all
6805 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6806 lt_cv_deplibs_check_method=pass_all
6809 sysv4 | sysv4.3*)
6810 case $host_vendor in
6811 motorola)
6812 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]'
6813 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6815 ncr)
6816 lt_cv_deplibs_check_method=pass_all
6818 sequent)
6819 lt_cv_file_magic_cmd='/bin/file'
6820 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6822 sni)
6823 lt_cv_file_magic_cmd='/bin/file'
6824 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6825 lt_cv_file_magic_test_file=/lib/libc.so
6827 siemens)
6828 lt_cv_deplibs_check_method=pass_all
6831 lt_cv_deplibs_check_method=pass_all
6833 esac
6836 tpf*)
6837 lt_cv_deplibs_check_method=pass_all
6839 esac
6842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6843 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6844 file_magic_cmd=$lt_cv_file_magic_cmd
6845 deplibs_check_method=$lt_cv_deplibs_check_method
6846 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6859 if test -n "$ac_tool_prefix"; then
6860 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6861 set dummy ${ac_tool_prefix}ar; ac_word=$2
6862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6863 $as_echo_n "checking for $ac_word... " >&6; }
6864 if ${ac_cv_prog_AR+:} false; then :
6865 $as_echo_n "(cached) " >&6
6866 else
6867 if test -n "$AR"; then
6868 ac_cv_prog_AR="$AR" # Let the user override the test.
6869 else
6870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6871 for as_dir in $PATH
6873 IFS=$as_save_IFS
6874 test -z "$as_dir" && as_dir=.
6875 for ac_exec_ext in '' $ac_executable_extensions; do
6876 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6877 ac_cv_prog_AR="${ac_tool_prefix}ar"
6878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6879 break 2
6881 done
6882 done
6883 IFS=$as_save_IFS
6887 AR=$ac_cv_prog_AR
6888 if test -n "$AR"; then
6889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6890 $as_echo "$AR" >&6; }
6891 else
6892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6893 $as_echo "no" >&6; }
6898 if test -z "$ac_cv_prog_AR"; then
6899 ac_ct_AR=$AR
6900 # Extract the first word of "ar", so it can be a program name with args.
6901 set dummy ar; ac_word=$2
6902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6903 $as_echo_n "checking for $ac_word... " >&6; }
6904 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6905 $as_echo_n "(cached) " >&6
6906 else
6907 if test -n "$ac_ct_AR"; then
6908 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6909 else
6910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6911 for as_dir in $PATH
6913 IFS=$as_save_IFS
6914 test -z "$as_dir" && as_dir=.
6915 for ac_exec_ext in '' $ac_executable_extensions; do
6916 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6917 ac_cv_prog_ac_ct_AR="ar"
6918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6919 break 2
6921 done
6922 done
6923 IFS=$as_save_IFS
6927 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6928 if test -n "$ac_ct_AR"; then
6929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6930 $as_echo "$ac_ct_AR" >&6; }
6931 else
6932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6933 $as_echo "no" >&6; }
6936 if test "x$ac_ct_AR" = x; then
6937 AR="false"
6938 else
6939 case $cross_compiling:$ac_tool_warned in
6940 yes:)
6941 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6942 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6943 ac_tool_warned=yes ;;
6944 esac
6945 AR=$ac_ct_AR
6947 else
6948 AR="$ac_cv_prog_AR"
6951 test -z "$AR" && AR=ar
6952 test -z "$AR_FLAGS" && AR_FLAGS=cru
6964 if test -n "$ac_tool_prefix"; then
6965 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6966 set dummy ${ac_tool_prefix}strip; ac_word=$2
6967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6968 $as_echo_n "checking for $ac_word... " >&6; }
6969 if ${ac_cv_prog_STRIP+:} false; then :
6970 $as_echo_n "(cached) " >&6
6971 else
6972 if test -n "$STRIP"; then
6973 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6974 else
6975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6976 for as_dir in $PATH
6978 IFS=$as_save_IFS
6979 test -z "$as_dir" && as_dir=.
6980 for ac_exec_ext in '' $ac_executable_extensions; do
6981 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6982 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6984 break 2
6986 done
6987 done
6988 IFS=$as_save_IFS
6992 STRIP=$ac_cv_prog_STRIP
6993 if test -n "$STRIP"; then
6994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6995 $as_echo "$STRIP" >&6; }
6996 else
6997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6998 $as_echo "no" >&6; }
7003 if test -z "$ac_cv_prog_STRIP"; then
7004 ac_ct_STRIP=$STRIP
7005 # Extract the first word of "strip", so it can be a program name with args.
7006 set dummy strip; ac_word=$2
7007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7008 $as_echo_n "checking for $ac_word... " >&6; }
7009 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7010 $as_echo_n "(cached) " >&6
7011 else
7012 if test -n "$ac_ct_STRIP"; then
7013 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7014 else
7015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7016 for as_dir in $PATH
7018 IFS=$as_save_IFS
7019 test -z "$as_dir" && as_dir=.
7020 for ac_exec_ext in '' $ac_executable_extensions; do
7021 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7022 ac_cv_prog_ac_ct_STRIP="strip"
7023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7024 break 2
7026 done
7027 done
7028 IFS=$as_save_IFS
7032 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7033 if test -n "$ac_ct_STRIP"; then
7034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7035 $as_echo "$ac_ct_STRIP" >&6; }
7036 else
7037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7038 $as_echo "no" >&6; }
7041 if test "x$ac_ct_STRIP" = x; then
7042 STRIP=":"
7043 else
7044 case $cross_compiling:$ac_tool_warned in
7045 yes:)
7046 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7047 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7048 ac_tool_warned=yes ;;
7049 esac
7050 STRIP=$ac_ct_STRIP
7052 else
7053 STRIP="$ac_cv_prog_STRIP"
7056 test -z "$STRIP" && STRIP=:
7063 if test -n "$ac_tool_prefix"; then
7064 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7065 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7067 $as_echo_n "checking for $ac_word... " >&6; }
7068 if ${ac_cv_prog_RANLIB+:} false; then :
7069 $as_echo_n "(cached) " >&6
7070 else
7071 if test -n "$RANLIB"; then
7072 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7073 else
7074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7075 for as_dir in $PATH
7077 IFS=$as_save_IFS
7078 test -z "$as_dir" && as_dir=.
7079 for ac_exec_ext in '' $ac_executable_extensions; do
7080 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7081 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7083 break 2
7085 done
7086 done
7087 IFS=$as_save_IFS
7091 RANLIB=$ac_cv_prog_RANLIB
7092 if test -n "$RANLIB"; then
7093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7094 $as_echo "$RANLIB" >&6; }
7095 else
7096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7097 $as_echo "no" >&6; }
7102 if test -z "$ac_cv_prog_RANLIB"; then
7103 ac_ct_RANLIB=$RANLIB
7104 # Extract the first word of "ranlib", so it can be a program name with args.
7105 set dummy ranlib; ac_word=$2
7106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7107 $as_echo_n "checking for $ac_word... " >&6; }
7108 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7109 $as_echo_n "(cached) " >&6
7110 else
7111 if test -n "$ac_ct_RANLIB"; then
7112 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7113 else
7114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7115 for as_dir in $PATH
7117 IFS=$as_save_IFS
7118 test -z "$as_dir" && as_dir=.
7119 for ac_exec_ext in '' $ac_executable_extensions; do
7120 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7121 ac_cv_prog_ac_ct_RANLIB="ranlib"
7122 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7123 break 2
7125 done
7126 done
7127 IFS=$as_save_IFS
7131 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7132 if test -n "$ac_ct_RANLIB"; then
7133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7134 $as_echo "$ac_ct_RANLIB" >&6; }
7135 else
7136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7137 $as_echo "no" >&6; }
7140 if test "x$ac_ct_RANLIB" = x; then
7141 RANLIB=":"
7142 else
7143 case $cross_compiling:$ac_tool_warned in
7144 yes:)
7145 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7146 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7147 ac_tool_warned=yes ;;
7148 esac
7149 RANLIB=$ac_ct_RANLIB
7151 else
7152 RANLIB="$ac_cv_prog_RANLIB"
7155 test -z "$RANLIB" && RANLIB=:
7162 # Determine commands to create old-style static archives.
7163 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7164 old_postinstall_cmds='chmod 644 $oldlib'
7165 old_postuninstall_cmds=
7167 if test -n "$RANLIB"; then
7168 case $host_os in
7169 openbsd*)
7170 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7173 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7175 esac
7176 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7179 case $host_os in
7180 darwin*)
7181 lock_old_archive_extraction=yes ;;
7183 lock_old_archive_extraction=no ;;
7184 esac
7224 # If no C compiler was specified, use CC.
7225 LTCC=${LTCC-"$CC"}
7227 # If no C compiler flags were specified, use CFLAGS.
7228 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7230 # Allow CC to be a program name with arguments.
7231 compiler=$CC
7234 # Check for command to grab the raw symbol name followed by C symbol from nm.
7235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7236 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7237 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7238 $as_echo_n "(cached) " >&6
7239 else
7241 # These are sane defaults that work on at least a few old systems.
7242 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7244 # Character class describing NM global symbol codes.
7245 symcode='[BCDEGRST]'
7247 # Regexp to match symbols that can be accessed directly from C.
7248 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7250 # Define system-specific variables.
7251 case $host_os in
7252 aix*)
7253 symcode='[BCDT]'
7255 cygwin* | mingw* | pw32* | cegcc*)
7256 symcode='[ABCDGISTW]'
7258 hpux*)
7259 if test "$host_cpu" = ia64; then
7260 symcode='[ABCDEGRST]'
7263 irix* | nonstopux*)
7264 symcode='[BCDEGRST]'
7266 osf*)
7267 symcode='[BCDEGQRST]'
7269 solaris*)
7270 symcode='[BDRT]'
7272 sco3.2v5*)
7273 symcode='[DT]'
7275 sysv4.2uw2*)
7276 symcode='[DT]'
7278 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7279 symcode='[ABDT]'
7281 sysv4)
7282 symcode='[DFNSTU]'
7284 esac
7286 # If we're using GNU nm, then use its standard symbol codes.
7287 case `$NM -V 2>&1` in
7288 *GNU* | *'with BFD'*)
7289 symcode='[ABCDGIRSTW]' ;;
7290 esac
7292 # Transform an extracted symbol line into a proper C declaration.
7293 # Some systems (esp. on ia64) link data and code symbols differently,
7294 # so use this general approach.
7295 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7297 # Transform an extracted symbol line into symbol name and symbol address
7298 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7299 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'"
7301 # Handle CRLF in mingw tool chain
7302 opt_cr=
7303 case $build_os in
7304 mingw*)
7305 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7307 esac
7309 # Try without a prefix underscore, then with it.
7310 for ac_symprfx in "" "_"; do
7312 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7313 symxfrm="\\1 $ac_symprfx\\2 \\2"
7315 # Write the raw and C identifiers.
7316 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7317 # Fake it for dumpbin and say T for any non-static function
7318 # and D for any global variable.
7319 # Also find C++ and __fastcall symbols from MSVC++,
7320 # which start with @ or ?.
7321 lt_cv_sys_global_symbol_pipe="$AWK '"\
7322 " {last_section=section; section=\$ 3};"\
7323 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7324 " \$ 0!~/External *\|/{next};"\
7325 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7326 " {if(hide[section]) next};"\
7327 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7328 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7329 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7330 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7331 " ' prfx=^$ac_symprfx"
7332 else
7333 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7336 # Check to see that the pipe works correctly.
7337 pipe_works=no
7339 rm -f conftest*
7340 cat > conftest.$ac_ext <<_LT_EOF
7341 #ifdef __cplusplus
7342 extern "C" {
7343 #endif
7344 char nm_test_var;
7345 void nm_test_func(void);
7346 void nm_test_func(void){}
7347 #ifdef __cplusplus
7349 #endif
7350 int main(){nm_test_var='a';nm_test_func();return(0);}
7351 _LT_EOF
7353 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7354 (eval $ac_compile) 2>&5
7355 ac_status=$?
7356 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7357 test $ac_status = 0; }; then
7358 # Now try to grab the symbols.
7359 nlist=conftest.nm
7360 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7361 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7362 ac_status=$?
7363 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7364 test $ac_status = 0; } && test -s "$nlist"; then
7365 # Try sorting and uniquifying the output.
7366 if sort "$nlist" | uniq > "$nlist"T; then
7367 mv -f "$nlist"T "$nlist"
7368 else
7369 rm -f "$nlist"T
7372 # Make sure that we snagged all the symbols we need.
7373 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7374 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7375 cat <<_LT_EOF > conftest.$ac_ext
7376 #ifdef __cplusplus
7377 extern "C" {
7378 #endif
7380 _LT_EOF
7381 # Now generate the symbol file.
7382 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7384 cat <<_LT_EOF >> conftest.$ac_ext
7386 /* The mapping between symbol names and symbols. */
7387 const struct {
7388 const char *name;
7389 void *address;
7391 lt__PROGRAM__LTX_preloaded_symbols[] =
7393 { "@PROGRAM@", (void *) 0 },
7394 _LT_EOF
7395 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7396 cat <<\_LT_EOF >> conftest.$ac_ext
7397 {0, (void *) 0}
7400 /* This works around a problem in FreeBSD linker */
7401 #ifdef FREEBSD_WORKAROUND
7402 static const void *lt_preloaded_setup() {
7403 return lt__PROGRAM__LTX_preloaded_symbols;
7405 #endif
7407 #ifdef __cplusplus
7409 #endif
7410 _LT_EOF
7411 # Now try linking the two files.
7412 mv conftest.$ac_objext conftstm.$ac_objext
7413 lt_save_LIBS="$LIBS"
7414 lt_save_CFLAGS="$CFLAGS"
7415 LIBS="conftstm.$ac_objext"
7416 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7417 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7418 (eval $ac_link) 2>&5
7419 ac_status=$?
7420 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7421 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7422 pipe_works=yes
7424 LIBS="$lt_save_LIBS"
7425 CFLAGS="$lt_save_CFLAGS"
7426 else
7427 echo "cannot find nm_test_func in $nlist" >&5
7429 else
7430 echo "cannot find nm_test_var in $nlist" >&5
7432 else
7433 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7435 else
7436 echo "$progname: failed program was:" >&5
7437 cat conftest.$ac_ext >&5
7439 rm -rf conftest* conftst*
7441 # Do not use the global_symbol_pipe unless it works.
7442 if test "$pipe_works" = yes; then
7443 break
7444 else
7445 lt_cv_sys_global_symbol_pipe=
7447 done
7451 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7452 lt_cv_sys_global_symbol_to_cdecl=
7454 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7456 $as_echo "failed" >&6; }
7457 else
7458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7459 $as_echo "ok" >&6; }
7484 # Check whether --enable-libtool-lock was given.
7485 if test "${enable_libtool_lock+set}" = set; then :
7486 enableval=$enable_libtool_lock;
7489 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7491 # Some flags need to be propagated to the compiler or linker for good
7492 # libtool support.
7493 case $host in
7494 ia64-*-hpux*)
7495 # Find out which ABI we are using.
7496 echo 'int i;' > conftest.$ac_ext
7497 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7498 (eval $ac_compile) 2>&5
7499 ac_status=$?
7500 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7501 test $ac_status = 0; }; then
7502 case `/usr/bin/file conftest.$ac_objext` in
7503 *ELF-32*)
7504 HPUX_IA64_MODE="32"
7506 *ELF-64*)
7507 HPUX_IA64_MODE="64"
7509 esac
7511 rm -rf conftest*
7513 *-*-irix6*)
7514 # Find out which ABI we are using.
7515 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7516 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7517 (eval $ac_compile) 2>&5
7518 ac_status=$?
7519 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7520 test $ac_status = 0; }; then
7521 if test "$lt_cv_prog_gnu_ld" = yes; then
7522 case `/usr/bin/file conftest.$ac_objext` in
7523 *32-bit*)
7524 LD="${LD-ld} -melf32bsmip"
7526 *N32*)
7527 LD="${LD-ld} -melf32bmipn32"
7529 *64-bit*)
7530 LD="${LD-ld} -melf64bmip"
7532 esac
7533 else
7534 case `/usr/bin/file conftest.$ac_objext` in
7535 *32-bit*)
7536 LD="${LD-ld} -32"
7538 *N32*)
7539 LD="${LD-ld} -n32"
7541 *64-bit*)
7542 LD="${LD-ld} -64"
7544 esac
7547 rm -rf conftest*
7550 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7551 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7552 # Find out which ABI we are using.
7553 echo 'int i;' > conftest.$ac_ext
7554 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7555 (eval $ac_compile) 2>&5
7556 ac_status=$?
7557 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7558 test $ac_status = 0; }; then
7559 case `/usr/bin/file conftest.o` in
7560 *32-bit*)
7561 case $host in
7562 x86_64-*kfreebsd*-gnu)
7563 LD="${LD-ld} -m elf_i386_fbsd"
7565 x86_64-*linux*)
7566 case `/usr/bin/file conftest.o` in
7567 *x86-64*)
7568 LD="${LD-ld} -m elf32_x86_64"
7571 LD="${LD-ld} -m elf_i386"
7573 esac
7575 powerpc64le-*linux*)
7576 LD="${LD-ld} -m elf32lppclinux"
7578 powerpc64-*linux*)
7579 LD="${LD-ld} -m elf32ppclinux"
7581 s390x-*linux*)
7582 LD="${LD-ld} -m elf_s390"
7584 sparc64-*linux*)
7585 LD="${LD-ld} -m elf32_sparc"
7587 esac
7589 *64-bit*)
7590 case $host in
7591 x86_64-*kfreebsd*-gnu)
7592 LD="${LD-ld} -m elf_x86_64_fbsd"
7594 x86_64-*linux*)
7595 LD="${LD-ld} -m elf_x86_64"
7597 powerpcle-*linux*)
7598 LD="${LD-ld} -m elf64lppc"
7600 powerpc-*linux*)
7601 LD="${LD-ld} -m elf64ppc"
7603 s390*-*linux*|s390*-*tpf*)
7604 LD="${LD-ld} -m elf64_s390"
7606 sparc*-*linux*)
7607 LD="${LD-ld} -m elf64_sparc"
7609 esac
7611 esac
7613 rm -rf conftest*
7616 *-*-sco3.2v5*)
7617 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7618 SAVE_CFLAGS="$CFLAGS"
7619 CFLAGS="$CFLAGS -belf"
7620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7621 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7622 if ${lt_cv_cc_needs_belf+:} false; then :
7623 $as_echo_n "(cached) " >&6
7624 else
7625 ac_ext=c
7626 ac_cpp='$CPP $CPPFLAGS'
7627 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7628 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7629 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7632 /* end confdefs.h. */
7635 main ()
7639 return 0;
7641 _ACEOF
7642 if ac_fn_c_try_link "$LINENO"; then :
7643 lt_cv_cc_needs_belf=yes
7644 else
7645 lt_cv_cc_needs_belf=no
7647 rm -f core conftest.err conftest.$ac_objext \
7648 conftest$ac_exeext conftest.$ac_ext
7649 ac_ext=c
7650 ac_cpp='$CPP $CPPFLAGS'
7651 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7652 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7653 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7657 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7658 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7659 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7660 CFLAGS="$SAVE_CFLAGS"
7663 sparc*-*solaris*)
7664 # Find out which ABI we are using.
7665 echo 'int i;' > conftest.$ac_ext
7666 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7667 (eval $ac_compile) 2>&5
7668 ac_status=$?
7669 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7670 test $ac_status = 0; }; then
7671 case `/usr/bin/file conftest.o` in
7672 *64-bit*)
7673 case $lt_cv_prog_gnu_ld in
7674 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7676 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7677 LD="${LD-ld} -64"
7680 esac
7682 esac
7684 rm -rf conftest*
7686 esac
7688 need_locks="$enable_libtool_lock"
7691 case $host_os in
7692 rhapsody* | darwin*)
7693 if test -n "$ac_tool_prefix"; then
7694 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7695 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7697 $as_echo_n "checking for $ac_word... " >&6; }
7698 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7699 $as_echo_n "(cached) " >&6
7700 else
7701 if test -n "$DSYMUTIL"; then
7702 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7703 else
7704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7705 for as_dir in $PATH
7707 IFS=$as_save_IFS
7708 test -z "$as_dir" && as_dir=.
7709 for ac_exec_ext in '' $ac_executable_extensions; do
7710 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7711 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7713 break 2
7715 done
7716 done
7717 IFS=$as_save_IFS
7721 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7722 if test -n "$DSYMUTIL"; then
7723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7724 $as_echo "$DSYMUTIL" >&6; }
7725 else
7726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7727 $as_echo "no" >&6; }
7732 if test -z "$ac_cv_prog_DSYMUTIL"; then
7733 ac_ct_DSYMUTIL=$DSYMUTIL
7734 # Extract the first word of "dsymutil", so it can be a program name with args.
7735 set dummy dsymutil; ac_word=$2
7736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7737 $as_echo_n "checking for $ac_word... " >&6; }
7738 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7739 $as_echo_n "(cached) " >&6
7740 else
7741 if test -n "$ac_ct_DSYMUTIL"; then
7742 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7743 else
7744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7745 for as_dir in $PATH
7747 IFS=$as_save_IFS
7748 test -z "$as_dir" && as_dir=.
7749 for ac_exec_ext in '' $ac_executable_extensions; do
7750 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7751 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7753 break 2
7755 done
7756 done
7757 IFS=$as_save_IFS
7761 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7762 if test -n "$ac_ct_DSYMUTIL"; then
7763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7764 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7765 else
7766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7767 $as_echo "no" >&6; }
7770 if test "x$ac_ct_DSYMUTIL" = x; then
7771 DSYMUTIL=":"
7772 else
7773 case $cross_compiling:$ac_tool_warned in
7774 yes:)
7775 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7776 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7777 ac_tool_warned=yes ;;
7778 esac
7779 DSYMUTIL=$ac_ct_DSYMUTIL
7781 else
7782 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7785 if test -n "$ac_tool_prefix"; then
7786 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7787 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7789 $as_echo_n "checking for $ac_word... " >&6; }
7790 if ${ac_cv_prog_NMEDIT+:} false; then :
7791 $as_echo_n "(cached) " >&6
7792 else
7793 if test -n "$NMEDIT"; then
7794 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7795 else
7796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7797 for as_dir in $PATH
7799 IFS=$as_save_IFS
7800 test -z "$as_dir" && as_dir=.
7801 for ac_exec_ext in '' $ac_executable_extensions; do
7802 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7803 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7805 break 2
7807 done
7808 done
7809 IFS=$as_save_IFS
7813 NMEDIT=$ac_cv_prog_NMEDIT
7814 if test -n "$NMEDIT"; then
7815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7816 $as_echo "$NMEDIT" >&6; }
7817 else
7818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7819 $as_echo "no" >&6; }
7824 if test -z "$ac_cv_prog_NMEDIT"; then
7825 ac_ct_NMEDIT=$NMEDIT
7826 # Extract the first word of "nmedit", so it can be a program name with args.
7827 set dummy nmedit; ac_word=$2
7828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7829 $as_echo_n "checking for $ac_word... " >&6; }
7830 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7831 $as_echo_n "(cached) " >&6
7832 else
7833 if test -n "$ac_ct_NMEDIT"; then
7834 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7835 else
7836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7837 for as_dir in $PATH
7839 IFS=$as_save_IFS
7840 test -z "$as_dir" && as_dir=.
7841 for ac_exec_ext in '' $ac_executable_extensions; do
7842 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7843 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7845 break 2
7847 done
7848 done
7849 IFS=$as_save_IFS
7853 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7854 if test -n "$ac_ct_NMEDIT"; then
7855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7856 $as_echo "$ac_ct_NMEDIT" >&6; }
7857 else
7858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7859 $as_echo "no" >&6; }
7862 if test "x$ac_ct_NMEDIT" = x; then
7863 NMEDIT=":"
7864 else
7865 case $cross_compiling:$ac_tool_warned in
7866 yes:)
7867 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7868 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7869 ac_tool_warned=yes ;;
7870 esac
7871 NMEDIT=$ac_ct_NMEDIT
7873 else
7874 NMEDIT="$ac_cv_prog_NMEDIT"
7877 if test -n "$ac_tool_prefix"; then
7878 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7879 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7881 $as_echo_n "checking for $ac_word... " >&6; }
7882 if ${ac_cv_prog_LIPO+:} false; then :
7883 $as_echo_n "(cached) " >&6
7884 else
7885 if test -n "$LIPO"; then
7886 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7887 else
7888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7889 for as_dir in $PATH
7891 IFS=$as_save_IFS
7892 test -z "$as_dir" && as_dir=.
7893 for ac_exec_ext in '' $ac_executable_extensions; do
7894 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7895 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7897 break 2
7899 done
7900 done
7901 IFS=$as_save_IFS
7905 LIPO=$ac_cv_prog_LIPO
7906 if test -n "$LIPO"; then
7907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7908 $as_echo "$LIPO" >&6; }
7909 else
7910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7911 $as_echo "no" >&6; }
7916 if test -z "$ac_cv_prog_LIPO"; then
7917 ac_ct_LIPO=$LIPO
7918 # Extract the first word of "lipo", so it can be a program name with args.
7919 set dummy lipo; ac_word=$2
7920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7921 $as_echo_n "checking for $ac_word... " >&6; }
7922 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7923 $as_echo_n "(cached) " >&6
7924 else
7925 if test -n "$ac_ct_LIPO"; then
7926 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7927 else
7928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7929 for as_dir in $PATH
7931 IFS=$as_save_IFS
7932 test -z "$as_dir" && as_dir=.
7933 for ac_exec_ext in '' $ac_executable_extensions; do
7934 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7935 ac_cv_prog_ac_ct_LIPO="lipo"
7936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7937 break 2
7939 done
7940 done
7941 IFS=$as_save_IFS
7945 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7946 if test -n "$ac_ct_LIPO"; then
7947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7948 $as_echo "$ac_ct_LIPO" >&6; }
7949 else
7950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7951 $as_echo "no" >&6; }
7954 if test "x$ac_ct_LIPO" = x; then
7955 LIPO=":"
7956 else
7957 case $cross_compiling:$ac_tool_warned in
7958 yes:)
7959 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7960 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7961 ac_tool_warned=yes ;;
7962 esac
7963 LIPO=$ac_ct_LIPO
7965 else
7966 LIPO="$ac_cv_prog_LIPO"
7969 if test -n "$ac_tool_prefix"; then
7970 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7971 set dummy ${ac_tool_prefix}otool; ac_word=$2
7972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7973 $as_echo_n "checking for $ac_word... " >&6; }
7974 if ${ac_cv_prog_OTOOL+:} false; then :
7975 $as_echo_n "(cached) " >&6
7976 else
7977 if test -n "$OTOOL"; then
7978 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7979 else
7980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7981 for as_dir in $PATH
7983 IFS=$as_save_IFS
7984 test -z "$as_dir" && as_dir=.
7985 for ac_exec_ext in '' $ac_executable_extensions; do
7986 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7987 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7989 break 2
7991 done
7992 done
7993 IFS=$as_save_IFS
7997 OTOOL=$ac_cv_prog_OTOOL
7998 if test -n "$OTOOL"; then
7999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8000 $as_echo "$OTOOL" >&6; }
8001 else
8002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8003 $as_echo "no" >&6; }
8008 if test -z "$ac_cv_prog_OTOOL"; then
8009 ac_ct_OTOOL=$OTOOL
8010 # Extract the first word of "otool", so it can be a program name with args.
8011 set dummy otool; ac_word=$2
8012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8013 $as_echo_n "checking for $ac_word... " >&6; }
8014 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8015 $as_echo_n "(cached) " >&6
8016 else
8017 if test -n "$ac_ct_OTOOL"; then
8018 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8019 else
8020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8021 for as_dir in $PATH
8023 IFS=$as_save_IFS
8024 test -z "$as_dir" && as_dir=.
8025 for ac_exec_ext in '' $ac_executable_extensions; do
8026 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8027 ac_cv_prog_ac_ct_OTOOL="otool"
8028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8029 break 2
8031 done
8032 done
8033 IFS=$as_save_IFS
8037 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8038 if test -n "$ac_ct_OTOOL"; then
8039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8040 $as_echo "$ac_ct_OTOOL" >&6; }
8041 else
8042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8043 $as_echo "no" >&6; }
8046 if test "x$ac_ct_OTOOL" = x; then
8047 OTOOL=":"
8048 else
8049 case $cross_compiling:$ac_tool_warned in
8050 yes:)
8051 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8052 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8053 ac_tool_warned=yes ;;
8054 esac
8055 OTOOL=$ac_ct_OTOOL
8057 else
8058 OTOOL="$ac_cv_prog_OTOOL"
8061 if test -n "$ac_tool_prefix"; then
8062 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8063 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8065 $as_echo_n "checking for $ac_word... " >&6; }
8066 if ${ac_cv_prog_OTOOL64+:} false; then :
8067 $as_echo_n "(cached) " >&6
8068 else
8069 if test -n "$OTOOL64"; then
8070 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8071 else
8072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8073 for as_dir in $PATH
8075 IFS=$as_save_IFS
8076 test -z "$as_dir" && as_dir=.
8077 for ac_exec_ext in '' $ac_executable_extensions; do
8078 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8079 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8081 break 2
8083 done
8084 done
8085 IFS=$as_save_IFS
8089 OTOOL64=$ac_cv_prog_OTOOL64
8090 if test -n "$OTOOL64"; then
8091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8092 $as_echo "$OTOOL64" >&6; }
8093 else
8094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8095 $as_echo "no" >&6; }
8100 if test -z "$ac_cv_prog_OTOOL64"; then
8101 ac_ct_OTOOL64=$OTOOL64
8102 # Extract the first word of "otool64", so it can be a program name with args.
8103 set dummy otool64; ac_word=$2
8104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8105 $as_echo_n "checking for $ac_word... " >&6; }
8106 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8107 $as_echo_n "(cached) " >&6
8108 else
8109 if test -n "$ac_ct_OTOOL64"; then
8110 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8111 else
8112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8113 for as_dir in $PATH
8115 IFS=$as_save_IFS
8116 test -z "$as_dir" && as_dir=.
8117 for ac_exec_ext in '' $ac_executable_extensions; do
8118 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8119 ac_cv_prog_ac_ct_OTOOL64="otool64"
8120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8121 break 2
8123 done
8124 done
8125 IFS=$as_save_IFS
8129 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8130 if test -n "$ac_ct_OTOOL64"; then
8131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8132 $as_echo "$ac_ct_OTOOL64" >&6; }
8133 else
8134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8135 $as_echo "no" >&6; }
8138 if test "x$ac_ct_OTOOL64" = x; then
8139 OTOOL64=":"
8140 else
8141 case $cross_compiling:$ac_tool_warned in
8142 yes:)
8143 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8144 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8145 ac_tool_warned=yes ;;
8146 esac
8147 OTOOL64=$ac_ct_OTOOL64
8149 else
8150 OTOOL64="$ac_cv_prog_OTOOL64"
8179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8180 $as_echo_n "checking for -single_module linker flag... " >&6; }
8181 if ${lt_cv_apple_cc_single_mod+:} false; then :
8182 $as_echo_n "(cached) " >&6
8183 else
8184 lt_cv_apple_cc_single_mod=no
8185 if test -z "${LT_MULTI_MODULE}"; then
8186 # By default we will add the -single_module flag. You can override
8187 # by either setting the environment variable LT_MULTI_MODULE
8188 # non-empty at configure time, or by adding -multi_module to the
8189 # link flags.
8190 rm -rf libconftest.dylib*
8191 echo "int foo(void){return 1;}" > conftest.c
8192 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8193 -dynamiclib -Wl,-single_module conftest.c" >&5
8194 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8195 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8196 _lt_result=$?
8197 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8198 lt_cv_apple_cc_single_mod=yes
8199 else
8200 cat conftest.err >&5
8202 rm -rf libconftest.dylib*
8203 rm -f conftest.*
8206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8207 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8209 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8210 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8211 $as_echo_n "(cached) " >&6
8212 else
8213 lt_cv_ld_exported_symbols_list=no
8214 save_LDFLAGS=$LDFLAGS
8215 echo "_main" > conftest.sym
8216 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8218 /* end confdefs.h. */
8221 main ()
8225 return 0;
8227 _ACEOF
8228 if ac_fn_c_try_link "$LINENO"; then :
8229 lt_cv_ld_exported_symbols_list=yes
8230 else
8231 lt_cv_ld_exported_symbols_list=no
8233 rm -f core conftest.err conftest.$ac_objext \
8234 conftest$ac_exeext conftest.$ac_ext
8235 LDFLAGS="$save_LDFLAGS"
8238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8239 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8241 $as_echo_n "checking for -force_load linker flag... " >&6; }
8242 if ${lt_cv_ld_force_load+:} false; then :
8243 $as_echo_n "(cached) " >&6
8244 else
8245 lt_cv_ld_force_load=no
8246 cat > conftest.c << _LT_EOF
8247 int forced_loaded() { return 2;}
8248 _LT_EOF
8249 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8250 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8251 echo "$AR cru libconftest.a conftest.o" >&5
8252 $AR cru libconftest.a conftest.o 2>&5
8253 cat > conftest.c << _LT_EOF
8254 int main() { return 0;}
8255 _LT_EOF
8256 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8257 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8258 _lt_result=$?
8259 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8260 lt_cv_ld_force_load=yes
8261 else
8262 cat conftest.err >&5
8264 rm -f conftest.err libconftest.a conftest conftest.c
8265 rm -rf conftest.dSYM
8268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8269 $as_echo "$lt_cv_ld_force_load" >&6; }
8270 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
8271 # build without first building modern cctools / linker.
8272 case $host_cpu-$host_os in
8273 *-rhapsody* | *-darwin1.[012])
8274 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8275 *-darwin1.*)
8276 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8277 *-darwin*)
8278 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
8279 # deployment target is forced to an earlier version.
8280 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
8281 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*)
8283 10.[012][,.]*)
8284 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8288 esac
8290 esac
8291 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8292 _lt_dar_single_mod='$single_module'
8294 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8295 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8296 else
8297 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8299 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8300 _lt_dsymutil='~$DSYMUTIL $lib || :'
8301 else
8302 _lt_dsymutil=
8305 esac
8307 ac_ext=c
8308 ac_cpp='$CPP $CPPFLAGS'
8309 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8310 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8311 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8313 $as_echo_n "checking how to run the C preprocessor... " >&6; }
8314 # On Suns, sometimes $CPP names a directory.
8315 if test -n "$CPP" && test -d "$CPP"; then
8316 CPP=
8318 if test -z "$CPP"; then
8319 if ${ac_cv_prog_CPP+:} false; then :
8320 $as_echo_n "(cached) " >&6
8321 else
8322 # Double quotes because CPP needs to be expanded
8323 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8325 ac_preproc_ok=false
8326 for ac_c_preproc_warn_flag in '' yes
8328 # Use a header file that comes with gcc, so configuring glibc
8329 # with a fresh cross-compiler works.
8330 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8331 # <limits.h> exists even on freestanding compilers.
8332 # On the NeXT, cc -E runs the code through the compiler's parser,
8333 # not just through cpp. "Syntax error" is here to catch this case.
8334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8335 /* end confdefs.h. */
8336 #ifdef __STDC__
8337 # include <limits.h>
8338 #else
8339 # include <assert.h>
8340 #endif
8341 Syntax error
8342 _ACEOF
8343 if ac_fn_c_try_cpp "$LINENO"; then :
8345 else
8346 # Broken: fails on valid input.
8347 continue
8349 rm -f conftest.err conftest.i conftest.$ac_ext
8351 # OK, works on sane cases. Now check whether nonexistent headers
8352 # can be detected and how.
8353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8354 /* end confdefs.h. */
8355 #include <ac_nonexistent.h>
8356 _ACEOF
8357 if ac_fn_c_try_cpp "$LINENO"; then :
8358 # Broken: success on invalid input.
8359 continue
8360 else
8361 # Passes both tests.
8362 ac_preproc_ok=:
8363 break
8365 rm -f conftest.err conftest.i conftest.$ac_ext
8367 done
8368 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8369 rm -f conftest.i conftest.err conftest.$ac_ext
8370 if $ac_preproc_ok; then :
8371 break
8374 done
8375 ac_cv_prog_CPP=$CPP
8378 CPP=$ac_cv_prog_CPP
8379 else
8380 ac_cv_prog_CPP=$CPP
8382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8383 $as_echo "$CPP" >&6; }
8384 ac_preproc_ok=false
8385 for ac_c_preproc_warn_flag in '' yes
8387 # Use a header file that comes with gcc, so configuring glibc
8388 # with a fresh cross-compiler works.
8389 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8390 # <limits.h> exists even on freestanding compilers.
8391 # On the NeXT, cc -E runs the code through the compiler's parser,
8392 # not just through cpp. "Syntax error" is here to catch this case.
8393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8394 /* end confdefs.h. */
8395 #ifdef __STDC__
8396 # include <limits.h>
8397 #else
8398 # include <assert.h>
8399 #endif
8400 Syntax error
8401 _ACEOF
8402 if ac_fn_c_try_cpp "$LINENO"; then :
8404 else
8405 # Broken: fails on valid input.
8406 continue
8408 rm -f conftest.err conftest.i conftest.$ac_ext
8410 # OK, works on sane cases. Now check whether nonexistent headers
8411 # can be detected and how.
8412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8413 /* end confdefs.h. */
8414 #include <ac_nonexistent.h>
8415 _ACEOF
8416 if ac_fn_c_try_cpp "$LINENO"; then :
8417 # Broken: success on invalid input.
8418 continue
8419 else
8420 # Passes both tests.
8421 ac_preproc_ok=:
8422 break
8424 rm -f conftest.err conftest.i conftest.$ac_ext
8426 done
8427 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8428 rm -f conftest.i conftest.err conftest.$ac_ext
8429 if $ac_preproc_ok; then :
8431 else
8432 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8433 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8434 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8435 See \`config.log' for more details" "$LINENO" 5; }
8438 ac_ext=c
8439 ac_cpp='$CPP $CPPFLAGS'
8440 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8441 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8442 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8446 $as_echo_n "checking for ANSI C header files... " >&6; }
8447 if ${ac_cv_header_stdc+:} false; then :
8448 $as_echo_n "(cached) " >&6
8449 else
8450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8451 /* end confdefs.h. */
8452 #include <stdlib.h>
8453 #include <stdarg.h>
8454 #include <string.h>
8455 #include <float.h>
8458 main ()
8462 return 0;
8464 _ACEOF
8465 if ac_fn_c_try_compile "$LINENO"; then :
8466 ac_cv_header_stdc=yes
8467 else
8468 ac_cv_header_stdc=no
8470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8472 if test $ac_cv_header_stdc = yes; then
8473 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8475 /* end confdefs.h. */
8476 #include <string.h>
8478 _ACEOF
8479 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8480 $EGREP "memchr" >/dev/null 2>&1; then :
8482 else
8483 ac_cv_header_stdc=no
8485 rm -f conftest*
8489 if test $ac_cv_header_stdc = yes; then
8490 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8492 /* end confdefs.h. */
8493 #include <stdlib.h>
8495 _ACEOF
8496 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8497 $EGREP "free" >/dev/null 2>&1; then :
8499 else
8500 ac_cv_header_stdc=no
8502 rm -f conftest*
8506 if test $ac_cv_header_stdc = yes; then
8507 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8508 if test "$cross_compiling" = yes; then :
8510 else
8511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8512 /* end confdefs.h. */
8513 #include <ctype.h>
8514 #include <stdlib.h>
8515 #if ((' ' & 0x0FF) == 0x020)
8516 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8517 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8518 #else
8519 # define ISLOWER(c) \
8520 (('a' <= (c) && (c) <= 'i') \
8521 || ('j' <= (c) && (c) <= 'r') \
8522 || ('s' <= (c) && (c) <= 'z'))
8523 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8524 #endif
8526 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8528 main ()
8530 int i;
8531 for (i = 0; i < 256; i++)
8532 if (XOR (islower (i), ISLOWER (i))
8533 || toupper (i) != TOUPPER (i))
8534 return 2;
8535 return 0;
8537 _ACEOF
8538 if ac_fn_c_try_run "$LINENO"; then :
8540 else
8541 ac_cv_header_stdc=no
8543 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8544 conftest.$ac_objext conftest.beam conftest.$ac_ext
8549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8550 $as_echo "$ac_cv_header_stdc" >&6; }
8551 if test $ac_cv_header_stdc = yes; then
8553 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8557 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8558 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8559 inttypes.h stdint.h unistd.h
8560 do :
8561 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8562 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8564 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8565 cat >>confdefs.h <<_ACEOF
8566 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8567 _ACEOF
8571 done
8574 for ac_header in dlfcn.h
8575 do :
8576 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8578 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8579 cat >>confdefs.h <<_ACEOF
8580 #define HAVE_DLFCN_H 1
8581 _ACEOF
8585 done
8592 # Set options
8596 enable_dlopen=no
8599 enable_win32_dll=no
8602 # Check whether --enable-shared was given.
8603 if test "${enable_shared+set}" = set; then :
8604 enableval=$enable_shared; p=${PACKAGE-default}
8605 case $enableval in
8606 yes) enable_shared=yes ;;
8607 no) enable_shared=no ;;
8609 enable_shared=no
8610 # Look at the argument we got. We use all the common list separators.
8611 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8612 for pkg in $enableval; do
8613 IFS="$lt_save_ifs"
8614 if test "X$pkg" = "X$p"; then
8615 enable_shared=yes
8617 done
8618 IFS="$lt_save_ifs"
8620 esac
8621 else
8622 enable_shared=yes
8633 # Check whether --enable-static was given.
8634 if test "${enable_static+set}" = set; then :
8635 enableval=$enable_static; p=${PACKAGE-default}
8636 case $enableval in
8637 yes) enable_static=yes ;;
8638 no) enable_static=no ;;
8640 enable_static=no
8641 # Look at the argument we got. We use all the common list separators.
8642 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8643 for pkg in $enableval; do
8644 IFS="$lt_save_ifs"
8645 if test "X$pkg" = "X$p"; then
8646 enable_static=yes
8648 done
8649 IFS="$lt_save_ifs"
8651 esac
8652 else
8653 enable_static=yes
8665 # Check whether --with-pic was given.
8666 if test "${with_pic+set}" = set; then :
8667 withval=$with_pic; pic_mode="$withval"
8668 else
8669 pic_mode=default
8673 test -z "$pic_mode" && pic_mode=default
8681 # Check whether --enable-fast-install was given.
8682 if test "${enable_fast_install+set}" = set; then :
8683 enableval=$enable_fast_install; p=${PACKAGE-default}
8684 case $enableval in
8685 yes) enable_fast_install=yes ;;
8686 no) enable_fast_install=no ;;
8688 enable_fast_install=no
8689 # Look at the argument we got. We use all the common list separators.
8690 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8691 for pkg in $enableval; do
8692 IFS="$lt_save_ifs"
8693 if test "X$pkg" = "X$p"; then
8694 enable_fast_install=yes
8696 done
8697 IFS="$lt_save_ifs"
8699 esac
8700 else
8701 enable_fast_install=yes
8714 # This can be used to rebuild libtool when needed
8715 LIBTOOL_DEPS="$ltmain"
8717 # Always use our own libtool.
8718 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8745 test -z "$LN_S" && LN_S="ln -s"
8760 if test -n "${ZSH_VERSION+set}" ; then
8761 setopt NO_GLOB_SUBST
8764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8765 $as_echo_n "checking for objdir... " >&6; }
8766 if ${lt_cv_objdir+:} false; then :
8767 $as_echo_n "(cached) " >&6
8768 else
8769 rm -f .libs 2>/dev/null
8770 mkdir .libs 2>/dev/null
8771 if test -d .libs; then
8772 lt_cv_objdir=.libs
8773 else
8774 # MS-DOS does not allow filenames that begin with a dot.
8775 lt_cv_objdir=_libs
8777 rmdir .libs 2>/dev/null
8779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8780 $as_echo "$lt_cv_objdir" >&6; }
8781 objdir=$lt_cv_objdir
8787 cat >>confdefs.h <<_ACEOF
8788 #define LT_OBJDIR "$lt_cv_objdir/"
8789 _ACEOF
8794 case $host_os in
8795 aix3*)
8796 # AIX sometimes has problems with the GCC collect2 program. For some
8797 # reason, if we set the COLLECT_NAMES environment variable, the problems
8798 # vanish in a puff of smoke.
8799 if test "X${COLLECT_NAMES+set}" != Xset; then
8800 COLLECT_NAMES=
8801 export COLLECT_NAMES
8804 esac
8806 # Global variables:
8807 ofile=libtool
8808 can_build_shared=yes
8810 # All known linkers require a `.a' archive for static linking (except MSVC,
8811 # which needs '.lib').
8812 libext=a
8814 with_gnu_ld="$lt_cv_prog_gnu_ld"
8816 old_CC="$CC"
8817 old_CFLAGS="$CFLAGS"
8819 # Set sane defaults for various variables
8820 test -z "$CC" && CC=cc
8821 test -z "$LTCC" && LTCC=$CC
8822 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8823 test -z "$LD" && LD=ld
8824 test -z "$ac_objext" && ac_objext=o
8826 for cc_temp in $compiler""; do
8827 case $cc_temp in
8828 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8829 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8830 \-*) ;;
8831 *) break;;
8832 esac
8833 done
8834 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8837 # Only perform the check for file, if the check method requires it
8838 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8839 case $deplibs_check_method in
8840 file_magic*)
8841 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8843 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8844 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8845 $as_echo_n "(cached) " >&6
8846 else
8847 case $MAGIC_CMD in
8848 [\\/*] | ?:[\\/]*)
8849 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8852 lt_save_MAGIC_CMD="$MAGIC_CMD"
8853 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8854 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8855 for ac_dir in $ac_dummy; do
8856 IFS="$lt_save_ifs"
8857 test -z "$ac_dir" && ac_dir=.
8858 if test -f $ac_dir/${ac_tool_prefix}file; then
8859 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8860 if test -n "$file_magic_test_file"; then
8861 case $deplibs_check_method in
8862 "file_magic "*)
8863 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8864 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8865 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8866 $EGREP "$file_magic_regex" > /dev/null; then
8868 else
8869 cat <<_LT_EOF 1>&2
8871 *** Warning: the command libtool uses to detect shared libraries,
8872 *** $file_magic_cmd, produces output that libtool cannot recognize.
8873 *** The result is that libtool may fail to recognize shared libraries
8874 *** as such. This will affect the creation of libtool libraries that
8875 *** depend on shared libraries, but programs linked with such libtool
8876 *** libraries will work regardless of this problem. Nevertheless, you
8877 *** may want to report the problem to your system manager and/or to
8878 *** bug-libtool@gnu.org
8880 _LT_EOF
8881 fi ;;
8882 esac
8884 break
8886 done
8887 IFS="$lt_save_ifs"
8888 MAGIC_CMD="$lt_save_MAGIC_CMD"
8890 esac
8893 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8894 if test -n "$MAGIC_CMD"; then
8895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8896 $as_echo "$MAGIC_CMD" >&6; }
8897 else
8898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8899 $as_echo "no" >&6; }
8906 if test -z "$lt_cv_path_MAGIC_CMD"; then
8907 if test -n "$ac_tool_prefix"; then
8908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8909 $as_echo_n "checking for file... " >&6; }
8910 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8911 $as_echo_n "(cached) " >&6
8912 else
8913 case $MAGIC_CMD in
8914 [\\/*] | ?:[\\/]*)
8915 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8918 lt_save_MAGIC_CMD="$MAGIC_CMD"
8919 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8920 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8921 for ac_dir in $ac_dummy; do
8922 IFS="$lt_save_ifs"
8923 test -z "$ac_dir" && ac_dir=.
8924 if test -f $ac_dir/file; then
8925 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8926 if test -n "$file_magic_test_file"; then
8927 case $deplibs_check_method in
8928 "file_magic "*)
8929 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8930 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8931 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8932 $EGREP "$file_magic_regex" > /dev/null; then
8934 else
8935 cat <<_LT_EOF 1>&2
8937 *** Warning: the command libtool uses to detect shared libraries,
8938 *** $file_magic_cmd, produces output that libtool cannot recognize.
8939 *** The result is that libtool may fail to recognize shared libraries
8940 *** as such. This will affect the creation of libtool libraries that
8941 *** depend on shared libraries, but programs linked with such libtool
8942 *** libraries will work regardless of this problem. Nevertheless, you
8943 *** may want to report the problem to your system manager and/or to
8944 *** bug-libtool@gnu.org
8946 _LT_EOF
8947 fi ;;
8948 esac
8950 break
8952 done
8953 IFS="$lt_save_ifs"
8954 MAGIC_CMD="$lt_save_MAGIC_CMD"
8956 esac
8959 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8960 if test -n "$MAGIC_CMD"; then
8961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8962 $as_echo "$MAGIC_CMD" >&6; }
8963 else
8964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8965 $as_echo "no" >&6; }
8969 else
8970 MAGIC_CMD=:
8976 esac
8978 # Use C for the default configuration in the libtool script
8980 lt_save_CC="$CC"
8981 ac_ext=c
8982 ac_cpp='$CPP $CPPFLAGS'
8983 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8984 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8985 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8988 # Source file extension for C test sources.
8989 ac_ext=c
8991 # Object file extension for compiled C test sources.
8992 objext=o
8993 objext=$objext
8995 # Code to be used in simple compile tests
8996 lt_simple_compile_test_code="int some_variable = 0;"
8998 # Code to be used in simple link tests
8999 lt_simple_link_test_code='int main(){return(0);}'
9007 # If no C compiler was specified, use CC.
9008 LTCC=${LTCC-"$CC"}
9010 # If no C compiler flags were specified, use CFLAGS.
9011 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9013 # Allow CC to be a program name with arguments.
9014 compiler=$CC
9016 # Save the default compiler, since it gets overwritten when the other
9017 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9018 compiler_DEFAULT=$CC
9020 # save warnings/boilerplate of simple test code
9021 ac_outfile=conftest.$ac_objext
9022 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9023 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9024 _lt_compiler_boilerplate=`cat conftest.err`
9025 $RM conftest*
9027 ac_outfile=conftest.$ac_objext
9028 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9029 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9030 _lt_linker_boilerplate=`cat conftest.err`
9031 $RM -r conftest*
9034 ## CAVEAT EMPTOR:
9035 ## There is no encapsulation within the following macros, do not change
9036 ## the running order or otherwise move them around unless you know exactly
9037 ## what you are doing...
9038 if test -n "$compiler"; then
9040 lt_prog_compiler_no_builtin_flag=
9042 if test "$GCC" = yes; then
9043 case $cc_basename in
9044 nvcc*)
9045 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9047 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9048 esac
9050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9051 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9052 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9053 $as_echo_n "(cached) " >&6
9054 else
9055 lt_cv_prog_compiler_rtti_exceptions=no
9056 ac_outfile=conftest.$ac_objext
9057 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9058 lt_compiler_flag="-fno-rtti -fno-exceptions"
9059 # Insert the option either (1) after the last *FLAGS variable, or
9060 # (2) before a word containing "conftest.", or (3) at the end.
9061 # Note that $ac_compile itself does not contain backslashes and begins
9062 # with a dollar sign (not a hyphen), so the echo should work correctly.
9063 # The option is referenced via a variable to avoid confusing sed.
9064 lt_compile=`echo "$ac_compile" | $SED \
9065 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9066 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9067 -e 's:$: $lt_compiler_flag:'`
9068 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9069 (eval "$lt_compile" 2>conftest.err)
9070 ac_status=$?
9071 cat conftest.err >&5
9072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9073 if (exit $ac_status) && test -s "$ac_outfile"; then
9074 # The compiler can only warn and ignore the option if not recognized
9075 # So say no if there are warnings other than the usual output.
9076 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9077 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9078 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9079 lt_cv_prog_compiler_rtti_exceptions=yes
9082 $RM conftest*
9085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9086 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9088 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9089 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9090 else
9101 lt_prog_compiler_wl=
9102 lt_prog_compiler_pic=
9103 lt_prog_compiler_static=
9105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9106 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9108 if test "$GCC" = yes; then
9109 lt_prog_compiler_wl='-Wl,'
9110 lt_prog_compiler_static='-static'
9112 case $host_os in
9113 aix*)
9114 # All AIX code is PIC.
9115 if test "$host_cpu" = ia64; then
9116 # AIX 5 now supports IA64 processor
9117 lt_prog_compiler_static='-Bstatic'
9119 lt_prog_compiler_pic='-fPIC'
9122 amigaos*)
9123 case $host_cpu in
9124 powerpc)
9125 # see comment about AmigaOS4 .so support
9126 lt_prog_compiler_pic='-fPIC'
9128 m68k)
9129 # FIXME: we need at least 68020 code to build shared libraries, but
9130 # adding the `-m68020' flag to GCC prevents building anything better,
9131 # like `-m68040'.
9132 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9134 esac
9137 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9138 # PIC is the default for these OSes.
9141 mingw* | cygwin* | pw32* | os2* | cegcc*)
9142 # This hack is so that the source file can tell whether it is being
9143 # built for inclusion in a dll (and should export symbols for example).
9144 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9145 # (--disable-auto-import) libraries
9146 lt_prog_compiler_pic='-DDLL_EXPORT'
9149 darwin* | rhapsody*)
9150 # PIC is the default on this platform
9151 # Common symbols not allowed in MH_DYLIB files
9152 lt_prog_compiler_pic='-fno-common'
9155 haiku*)
9156 # PIC is the default for Haiku.
9157 # The "-static" flag exists, but is broken.
9158 lt_prog_compiler_static=
9161 hpux*)
9162 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9163 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9164 # sets the default TLS model and affects inlining.
9165 case $host_cpu in
9166 hppa*64*)
9167 # +Z the default
9170 lt_prog_compiler_pic='-fPIC'
9172 esac
9175 interix[3-9]*)
9176 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9177 # Instead, we relocate shared libraries at runtime.
9180 msdosdjgpp*)
9181 # Just because we use GCC doesn't mean we suddenly get shared libraries
9182 # on systems that don't support them.
9183 lt_prog_compiler_can_build_shared=no
9184 enable_shared=no
9187 *nto* | *qnx*)
9188 # QNX uses GNU C++, but need to define -shared option too, otherwise
9189 # it will coredump.
9190 lt_prog_compiler_pic='-fPIC -shared'
9193 sysv4*MP*)
9194 if test -d /usr/nec; then
9195 lt_prog_compiler_pic=-Kconform_pic
9200 lt_prog_compiler_pic='-fPIC'
9202 esac
9204 case $cc_basename in
9205 nvcc*) # Cuda Compiler Driver 2.2
9206 lt_prog_compiler_wl='-Xlinker '
9207 lt_prog_compiler_pic='-Xcompiler -fPIC'
9209 esac
9210 else
9211 # PORTME Check for flag to pass linker flags through the system compiler.
9212 case $host_os in
9213 aix*)
9214 lt_prog_compiler_wl='-Wl,'
9215 if test "$host_cpu" = ia64; then
9216 # AIX 5 now supports IA64 processor
9217 lt_prog_compiler_static='-Bstatic'
9218 else
9219 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9223 mingw* | cygwin* | pw32* | os2* | cegcc*)
9224 # This hack is so that the source file can tell whether it is being
9225 # built for inclusion in a dll (and should export symbols for example).
9226 lt_prog_compiler_pic='-DDLL_EXPORT'
9229 hpux9* | hpux10* | hpux11*)
9230 lt_prog_compiler_wl='-Wl,'
9231 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9232 # not for PA HP-UX.
9233 case $host_cpu in
9234 hppa*64*|ia64*)
9235 # +Z the default
9238 lt_prog_compiler_pic='+Z'
9240 esac
9241 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9242 lt_prog_compiler_static='${wl}-a ${wl}archive'
9245 irix5* | irix6* | nonstopux*)
9246 lt_prog_compiler_wl='-Wl,'
9247 # PIC (with -KPIC) is the default.
9248 lt_prog_compiler_static='-non_shared'
9251 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9252 case $cc_basename in
9253 # old Intel for x86_64 which still supported -KPIC.
9254 ecc*)
9255 lt_prog_compiler_wl='-Wl,'
9256 lt_prog_compiler_pic='-KPIC'
9257 lt_prog_compiler_static='-static'
9259 # icc used to be incompatible with GCC.
9260 # ICC 10 doesn't accept -KPIC any more.
9261 icc* | ifort*)
9262 lt_prog_compiler_wl='-Wl,'
9263 lt_prog_compiler_pic='-fPIC'
9264 lt_prog_compiler_static='-static'
9266 # Lahey Fortran 8.1.
9267 lf95*)
9268 lt_prog_compiler_wl='-Wl,'
9269 lt_prog_compiler_pic='--shared'
9270 lt_prog_compiler_static='--static'
9272 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9273 # Portland Group compilers (*not* the Pentium gcc compiler,
9274 # which looks to be a dead project)
9275 lt_prog_compiler_wl='-Wl,'
9276 lt_prog_compiler_pic='-fpic'
9277 lt_prog_compiler_static='-Bstatic'
9279 ccc*)
9280 lt_prog_compiler_wl='-Wl,'
9281 # All Alpha code is PIC.
9282 lt_prog_compiler_static='-non_shared'
9284 xl* | bgxl* | bgf* | mpixl*)
9285 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9286 lt_prog_compiler_wl='-Wl,'
9287 lt_prog_compiler_pic='-qpic'
9288 lt_prog_compiler_static='-qstaticlink'
9291 case `$CC -V 2>&1 | sed 5q` in
9292 *Sun\ F* | *Sun*Fortran*)
9293 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9294 lt_prog_compiler_pic='-KPIC'
9295 lt_prog_compiler_static='-Bstatic'
9296 lt_prog_compiler_wl=''
9298 *Sun\ C*)
9299 # Sun C 5.9
9300 lt_prog_compiler_pic='-KPIC'
9301 lt_prog_compiler_static='-Bstatic'
9302 lt_prog_compiler_wl='-Wl,'
9304 esac
9306 esac
9309 newsos6)
9310 lt_prog_compiler_pic='-KPIC'
9311 lt_prog_compiler_static='-Bstatic'
9314 *nto* | *qnx*)
9315 # QNX uses GNU C++, but need to define -shared option too, otherwise
9316 # it will coredump.
9317 lt_prog_compiler_pic='-fPIC -shared'
9320 osf3* | osf4* | osf5*)
9321 lt_prog_compiler_wl='-Wl,'
9322 # All OSF/1 code is PIC.
9323 lt_prog_compiler_static='-non_shared'
9326 rdos*)
9327 lt_prog_compiler_static='-non_shared'
9330 solaris*)
9331 lt_prog_compiler_pic='-KPIC'
9332 lt_prog_compiler_static='-Bstatic'
9333 case $cc_basename in
9334 f77* | f90* | f95*)
9335 lt_prog_compiler_wl='-Qoption ld ';;
9337 lt_prog_compiler_wl='-Wl,';;
9338 esac
9341 sunos4*)
9342 lt_prog_compiler_wl='-Qoption ld '
9343 lt_prog_compiler_pic='-PIC'
9344 lt_prog_compiler_static='-Bstatic'
9347 sysv4 | sysv4.2uw2* | sysv4.3*)
9348 lt_prog_compiler_wl='-Wl,'
9349 lt_prog_compiler_pic='-KPIC'
9350 lt_prog_compiler_static='-Bstatic'
9353 sysv4*MP*)
9354 if test -d /usr/nec ;then
9355 lt_prog_compiler_pic='-Kconform_pic'
9356 lt_prog_compiler_static='-Bstatic'
9360 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9361 lt_prog_compiler_wl='-Wl,'
9362 lt_prog_compiler_pic='-KPIC'
9363 lt_prog_compiler_static='-Bstatic'
9366 unicos*)
9367 lt_prog_compiler_wl='-Wl,'
9368 lt_prog_compiler_can_build_shared=no
9371 uts4*)
9372 lt_prog_compiler_pic='-pic'
9373 lt_prog_compiler_static='-Bstatic'
9377 lt_prog_compiler_can_build_shared=no
9379 esac
9382 case $host_os in
9383 # For platforms which do not support PIC, -DPIC is meaningless:
9384 *djgpp*)
9385 lt_prog_compiler_pic=
9388 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9390 esac
9391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9392 $as_echo "$lt_prog_compiler_pic" >&6; }
9400 # Check to make sure the PIC flag actually works.
9402 if test -n "$lt_prog_compiler_pic"; then
9403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9404 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9405 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9406 $as_echo_n "(cached) " >&6
9407 else
9408 lt_cv_prog_compiler_pic_works=no
9409 ac_outfile=conftest.$ac_objext
9410 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9411 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9412 # Insert the option either (1) after the last *FLAGS variable, or
9413 # (2) before a word containing "conftest.", or (3) at the end.
9414 # Note that $ac_compile itself does not contain backslashes and begins
9415 # with a dollar sign (not a hyphen), so the echo should work correctly.
9416 # The option is referenced via a variable to avoid confusing sed.
9417 lt_compile=`echo "$ac_compile" | $SED \
9418 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9419 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9420 -e 's:$: $lt_compiler_flag:'`
9421 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9422 (eval "$lt_compile" 2>conftest.err)
9423 ac_status=$?
9424 cat conftest.err >&5
9425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9426 if (exit $ac_status) && test -s "$ac_outfile"; then
9427 # The compiler can only warn and ignore the option if not recognized
9428 # So say no if there are warnings other than the usual output.
9429 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9430 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9431 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9432 lt_cv_prog_compiler_pic_works=yes
9435 $RM conftest*
9438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9439 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9441 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9442 case $lt_prog_compiler_pic in
9443 "" | " "*) ;;
9444 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9445 esac
9446 else
9447 lt_prog_compiler_pic=
9448 lt_prog_compiler_can_build_shared=no
9459 # Check to make sure the static flag actually works.
9461 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9463 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9464 if ${lt_cv_prog_compiler_static_works+:} false; then :
9465 $as_echo_n "(cached) " >&6
9466 else
9467 lt_cv_prog_compiler_static_works=no
9468 save_LDFLAGS="$LDFLAGS"
9469 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9470 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9471 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9472 # The linker can only warn and ignore the option if not recognized
9473 # So say no if there are warnings
9474 if test -s conftest.err; then
9475 # Append any errors to the config.log.
9476 cat conftest.err 1>&5
9477 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9478 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9479 if diff conftest.exp conftest.er2 >/dev/null; then
9480 lt_cv_prog_compiler_static_works=yes
9482 else
9483 lt_cv_prog_compiler_static_works=yes
9486 $RM -r conftest*
9487 LDFLAGS="$save_LDFLAGS"
9490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9491 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9493 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9495 else
9496 lt_prog_compiler_static=
9505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9506 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9507 if ${lt_cv_prog_compiler_c_o+:} false; then :
9508 $as_echo_n "(cached) " >&6
9509 else
9510 lt_cv_prog_compiler_c_o=no
9511 $RM -r conftest 2>/dev/null
9512 mkdir conftest
9513 cd conftest
9514 mkdir out
9515 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9517 lt_compiler_flag="-o out/conftest2.$ac_objext"
9518 # Insert the option either (1) after the last *FLAGS variable, or
9519 # (2) before a word containing "conftest.", or (3) at the end.
9520 # Note that $ac_compile itself does not contain backslashes and begins
9521 # with a dollar sign (not a hyphen), so the echo should work correctly.
9522 lt_compile=`echo "$ac_compile" | $SED \
9523 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9524 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9525 -e 's:$: $lt_compiler_flag:'`
9526 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9527 (eval "$lt_compile" 2>out/conftest.err)
9528 ac_status=$?
9529 cat out/conftest.err >&5
9530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9531 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9532 then
9533 # The compiler can only warn and ignore the option if not recognized
9534 # So say no if there are warnings
9535 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9536 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9537 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9538 lt_cv_prog_compiler_c_o=yes
9541 chmod u+w . 2>&5
9542 $RM conftest*
9543 # SGI C++ compiler will create directory out/ii_files/ for
9544 # template instantiation
9545 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9546 $RM out/* && rmdir out
9547 cd ..
9548 $RM -r conftest
9549 $RM conftest*
9552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9553 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9561 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9562 if ${lt_cv_prog_compiler_c_o+:} false; then :
9563 $as_echo_n "(cached) " >&6
9564 else
9565 lt_cv_prog_compiler_c_o=no
9566 $RM -r conftest 2>/dev/null
9567 mkdir conftest
9568 cd conftest
9569 mkdir out
9570 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9572 lt_compiler_flag="-o out/conftest2.$ac_objext"
9573 # Insert the option either (1) after the last *FLAGS variable, or
9574 # (2) before a word containing "conftest.", or (3) at the end.
9575 # Note that $ac_compile itself does not contain backslashes and begins
9576 # with a dollar sign (not a hyphen), so the echo should work correctly.
9577 lt_compile=`echo "$ac_compile" | $SED \
9578 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9579 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9580 -e 's:$: $lt_compiler_flag:'`
9581 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9582 (eval "$lt_compile" 2>out/conftest.err)
9583 ac_status=$?
9584 cat out/conftest.err >&5
9585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9586 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9587 then
9588 # The compiler can only warn and ignore the option if not recognized
9589 # So say no if there are warnings
9590 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9591 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9592 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9593 lt_cv_prog_compiler_c_o=yes
9596 chmod u+w . 2>&5
9597 $RM conftest*
9598 # SGI C++ compiler will create directory out/ii_files/ for
9599 # template instantiation
9600 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9601 $RM out/* && rmdir out
9602 cd ..
9603 $RM -r conftest
9604 $RM conftest*
9607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9608 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9613 hard_links="nottested"
9614 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9615 # do not overwrite the value of need_locks provided by the user
9616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9617 $as_echo_n "checking if we can lock with hard links... " >&6; }
9618 hard_links=yes
9619 $RM conftest*
9620 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9621 touch conftest.a
9622 ln conftest.a conftest.b 2>&5 || hard_links=no
9623 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9625 $as_echo "$hard_links" >&6; }
9626 if test "$hard_links" = no; then
9627 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9628 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9629 need_locks=warn
9631 else
9632 need_locks=no
9640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9641 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9643 runpath_var=
9644 allow_undefined_flag=
9645 always_export_symbols=no
9646 archive_cmds=
9647 archive_expsym_cmds=
9648 compiler_needs_object=no
9649 enable_shared_with_static_runtimes=no
9650 export_dynamic_flag_spec=
9651 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9652 hardcode_automatic=no
9653 hardcode_direct=no
9654 hardcode_direct_absolute=no
9655 hardcode_libdir_flag_spec=
9656 hardcode_libdir_flag_spec_ld=
9657 hardcode_libdir_separator=
9658 hardcode_minus_L=no
9659 hardcode_shlibpath_var=unsupported
9660 inherit_rpath=no
9661 link_all_deplibs=unknown
9662 module_cmds=
9663 module_expsym_cmds=
9664 old_archive_from_new_cmds=
9665 old_archive_from_expsyms_cmds=
9666 thread_safe_flag_spec=
9667 whole_archive_flag_spec=
9668 # include_expsyms should be a list of space-separated symbols to be *always*
9669 # included in the symbol list
9670 include_expsyms=
9671 # exclude_expsyms can be an extended regexp of symbols to exclude
9672 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9673 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9674 # as well as any symbol that contains `d'.
9675 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9676 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9677 # platforms (ab)use it in PIC code, but their linkers get confused if
9678 # the symbol is explicitly referenced. Since portable code cannot
9679 # rely on this symbol name, it's probably fine to never include it in
9680 # preloaded symbol tables.
9681 # Exclude shared library initialization/finalization symbols.
9682 extract_expsyms_cmds=
9684 case $host_os in
9685 cygwin* | mingw* | pw32* | cegcc*)
9686 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9687 # When not using gcc, we currently assume that we are using
9688 # Microsoft Visual C++.
9689 if test "$GCC" != yes; then
9690 with_gnu_ld=no
9693 interix*)
9694 # we just hope/assume this is gcc and not c89 (= MSVC++)
9695 with_gnu_ld=yes
9697 openbsd*)
9698 with_gnu_ld=no
9700 esac
9702 ld_shlibs=yes
9704 # On some targets, GNU ld is compatible enough with the native linker
9705 # that we're better off using the native interface for both.
9706 lt_use_gnu_ld_interface=no
9707 if test "$with_gnu_ld" = yes; then
9708 case $host_os in
9709 aix*)
9710 # The AIX port of GNU ld has always aspired to compatibility
9711 # with the native linker. However, as the warning in the GNU ld
9712 # block says, versions before 2.19.5* couldn't really create working
9713 # shared libraries, regardless of the interface used.
9714 case `$LD -v 2>&1` in
9715 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9716 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9717 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9719 lt_use_gnu_ld_interface=yes
9721 esac
9724 lt_use_gnu_ld_interface=yes
9726 esac
9729 if test "$lt_use_gnu_ld_interface" = yes; then
9730 # If archive_cmds runs LD, not CC, wlarc should be empty
9731 wlarc='${wl}'
9733 # Set some defaults for GNU ld with shared library support. These
9734 # are reset later if shared libraries are not supported. Putting them
9735 # here allows them to be overridden if necessary.
9736 runpath_var=LD_RUN_PATH
9737 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9738 export_dynamic_flag_spec='${wl}--export-dynamic'
9739 # ancient GNU ld didn't support --whole-archive et. al.
9740 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9741 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9742 else
9743 whole_archive_flag_spec=
9745 supports_anon_versioning=no
9746 case `$LD -v 2>&1` in
9747 *GNU\ gold*) supports_anon_versioning=yes ;;
9748 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9749 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9750 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9751 *\ 2.11.*) ;; # other 2.11 versions
9752 *) supports_anon_versioning=yes ;;
9753 esac
9755 # See if GNU ld supports shared libraries.
9756 case $host_os in
9757 aix[3-9]*)
9758 # On AIX/PPC, the GNU linker is very broken
9759 if test "$host_cpu" != ia64; then
9760 ld_shlibs=no
9761 cat <<_LT_EOF 1>&2
9763 *** Warning: the GNU linker, at least up to release 2.19, is reported
9764 *** to be unable to reliably create shared libraries on AIX.
9765 *** Therefore, libtool is disabling shared libraries support. If you
9766 *** really care for shared libraries, you may want to install binutils
9767 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9768 *** You will then need to restart the configuration process.
9770 _LT_EOF
9774 amigaos*)
9775 case $host_cpu in
9776 powerpc)
9777 # see comment about AmigaOS4 .so support
9778 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9779 archive_expsym_cmds=''
9781 m68k)
9782 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)'
9783 hardcode_libdir_flag_spec='-L$libdir'
9784 hardcode_minus_L=yes
9786 esac
9789 beos*)
9790 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9791 allow_undefined_flag=unsupported
9792 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9793 # support --undefined. This deserves some investigation. FIXME
9794 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9795 else
9796 ld_shlibs=no
9800 cygwin* | mingw* | pw32* | cegcc*)
9801 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9802 # as there is no search path for DLLs.
9803 hardcode_libdir_flag_spec='-L$libdir'
9804 export_dynamic_flag_spec='${wl}--export-all-symbols'
9805 allow_undefined_flag=unsupported
9806 always_export_symbols=no
9807 enable_shared_with_static_runtimes=yes
9808 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9810 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9811 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9812 # If the export-symbols file already is a .def file (1st line
9813 # is EXPORTS), use it as is; otherwise, prepend...
9814 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9815 cp $export_symbols $output_objdir/$soname.def;
9816 else
9817 echo EXPORTS > $output_objdir/$soname.def;
9818 cat $export_symbols >> $output_objdir/$soname.def;
9820 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9821 else
9822 ld_shlibs=no
9826 haiku*)
9827 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9828 link_all_deplibs=yes
9831 interix[3-9]*)
9832 hardcode_direct=no
9833 hardcode_shlibpath_var=no
9834 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9835 export_dynamic_flag_spec='${wl}-E'
9836 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9837 # Instead, shared libraries are loaded at an image base (0x10000000 by
9838 # default) and relocated if they conflict, which is a slow very memory
9839 # consuming and fragmenting process. To avoid this, we pick a random,
9840 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9841 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9842 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9843 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'
9846 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
9847 tmp_diet=no
9848 if test "$host_os" = linux-dietlibc; then
9849 case $cc_basename in
9850 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9851 esac
9853 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9854 && test "$tmp_diet" = no
9855 then
9856 tmp_addflag=' $pic_flag'
9857 tmp_sharedflag='-shared'
9858 case $cc_basename,$host_cpu in
9859 pgcc*) # Portland Group C compiler
9860 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'
9861 tmp_addflag=' $pic_flag'
9863 pgf77* | pgf90* | pgf95* | pgfortran*)
9864 # Portland Group f77 and f90 compilers
9865 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'
9866 tmp_addflag=' $pic_flag -Mnomain' ;;
9867 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9868 tmp_addflag=' -i_dynamic' ;;
9869 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9870 tmp_addflag=' -i_dynamic -nofor_main' ;;
9871 ifc* | ifort*) # Intel Fortran compiler
9872 tmp_addflag=' -nofor_main' ;;
9873 lf95*) # Lahey Fortran 8.1
9874 whole_archive_flag_spec=
9875 tmp_sharedflag='--shared' ;;
9876 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9877 tmp_sharedflag='-qmkshrobj'
9878 tmp_addflag= ;;
9879 nvcc*) # Cuda Compiler Driver 2.2
9880 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'
9881 compiler_needs_object=yes
9883 esac
9884 case `$CC -V 2>&1 | sed 5q` in
9885 *Sun\ C*) # Sun C 5.9
9886 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'
9887 compiler_needs_object=yes
9888 tmp_sharedflag='-G' ;;
9889 *Sun\ F*) # Sun Fortran 8.3
9890 tmp_sharedflag='-G' ;;
9891 esac
9892 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9894 if test "x$supports_anon_versioning" = xyes; then
9895 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9896 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9897 echo "local: *; };" >> $output_objdir/$libname.ver~
9898 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9901 case $cc_basename in
9902 xlf* | bgf* | bgxlf* | mpixlf*)
9903 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9904 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9905 hardcode_libdir_flag_spec=
9906 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9907 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9908 if test "x$supports_anon_versioning" = xyes; then
9909 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9910 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9911 echo "local: *; };" >> $output_objdir/$libname.ver~
9912 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9915 esac
9916 else
9917 ld_shlibs=no
9921 netbsd*)
9922 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9923 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9924 wlarc=
9925 else
9926 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9927 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9931 solaris*)
9932 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9933 ld_shlibs=no
9934 cat <<_LT_EOF 1>&2
9936 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9937 *** create shared libraries on Solaris systems. Therefore, libtool
9938 *** is disabling shared libraries support. We urge you to upgrade GNU
9939 *** binutils to release 2.9.1 or newer. Another option is to modify
9940 *** your PATH or compiler configuration so that the native linker is
9941 *** used, and then restart.
9943 _LT_EOF
9944 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9945 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9946 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9947 else
9948 ld_shlibs=no
9952 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9953 case `$LD -v 2>&1` in
9954 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9955 ld_shlibs=no
9956 cat <<_LT_EOF 1>&2
9958 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9959 *** reliably create shared libraries on SCO systems. Therefore, libtool
9960 *** is disabling shared libraries support. We urge you to upgrade GNU
9961 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9962 *** your PATH or compiler configuration so that the native linker is
9963 *** used, and then restart.
9965 _LT_EOF
9968 # For security reasons, it is highly recommended that you always
9969 # use absolute paths for naming shared libraries, and exclude the
9970 # DT_RUNPATH tag from executables and libraries. But doing so
9971 # requires that you compile everything twice, which is a pain.
9972 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9973 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9974 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9975 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9976 else
9977 ld_shlibs=no
9980 esac
9983 sunos4*)
9984 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9985 wlarc=
9986 hardcode_direct=yes
9987 hardcode_shlibpath_var=no
9991 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9992 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9993 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9994 else
9995 ld_shlibs=no
9998 esac
10000 if test "$ld_shlibs" = no; then
10001 runpath_var=
10002 hardcode_libdir_flag_spec=
10003 export_dynamic_flag_spec=
10004 whole_archive_flag_spec=
10006 else
10007 # PORTME fill in a description of your system's linker (not GNU ld)
10008 case $host_os in
10009 aix3*)
10010 allow_undefined_flag=unsupported
10011 always_export_symbols=yes
10012 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'
10013 # Note: this linker hardcodes the directories in LIBPATH if there
10014 # are no directories specified by -L.
10015 hardcode_minus_L=yes
10016 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10017 # Neither direct hardcoding nor static linking is supported with a
10018 # broken collect2.
10019 hardcode_direct=unsupported
10023 aix[4-9]*)
10024 if test "$host_cpu" = ia64; then
10025 # On IA64, the linker does run time linking by default, so we don't
10026 # have to do anything special.
10027 aix_use_runtimelinking=no
10028 exp_sym_flag='-Bexport'
10029 no_entry_flag=""
10030 else
10031 # If we're using GNU nm, then we don't want the "-C" option.
10032 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10033 # Also, AIX nm treats weak defined symbols like other global
10034 # defined symbols, whereas GNU nm marks them as "W".
10035 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10036 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'
10037 else
10038 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'
10040 aix_use_runtimelinking=no
10042 # Test if we are trying to use run time linking or normal
10043 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10044 # need to do runtime linking.
10045 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10046 for ld_flag in $LDFLAGS; do
10047 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10048 aix_use_runtimelinking=yes
10049 break
10051 done
10053 esac
10055 exp_sym_flag='-bexport'
10056 no_entry_flag='-bnoentry'
10059 # When large executables or shared objects are built, AIX ld can
10060 # have problems creating the table of contents. If linking a library
10061 # or program results in "error TOC overflow" add -mminimal-toc to
10062 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10063 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10065 archive_cmds=''
10066 hardcode_direct=yes
10067 hardcode_direct_absolute=yes
10068 hardcode_libdir_separator=':'
10069 link_all_deplibs=yes
10070 file_list_spec='${wl}-f,'
10072 if test "$GCC" = yes; then
10073 case $host_os in aix4.[012]|aix4.[012].*)
10074 # We only want to do this on AIX 4.2 and lower, the check
10075 # below for broken collect2 doesn't work under 4.3+
10076 collect2name=`${CC} -print-prog-name=collect2`
10077 if test -f "$collect2name" &&
10078 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10079 then
10080 # We have reworked collect2
10082 else
10083 # We have old collect2
10084 hardcode_direct=unsupported
10085 # It fails to find uninstalled libraries when the uninstalled
10086 # path is not listed in the libpath. Setting hardcode_minus_L
10087 # to unsupported forces relinking
10088 hardcode_minus_L=yes
10089 hardcode_libdir_flag_spec='-L$libdir'
10090 hardcode_libdir_separator=
10093 esac
10094 shared_flag='-shared'
10095 if test "$aix_use_runtimelinking" = yes; then
10096 shared_flag="$shared_flag "'${wl}-G'
10098 else
10099 # not using gcc
10100 if test "$host_cpu" = ia64; then
10101 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10102 # chokes on -Wl,-G. The following line is correct:
10103 shared_flag='-G'
10104 else
10105 if test "$aix_use_runtimelinking" = yes; then
10106 shared_flag='${wl}-G'
10107 else
10108 shared_flag='${wl}-bM:SRE'
10113 export_dynamic_flag_spec='${wl}-bexpall'
10114 # It seems that -bexpall does not export symbols beginning with
10115 # underscore (_), so it is better to generate a list of symbols to export.
10116 always_export_symbols=yes
10117 if test "$aix_use_runtimelinking" = yes; then
10118 # Warning - without using the other runtime loading flags (-brtl),
10119 # -berok will link without error, but may produce a broken library.
10120 allow_undefined_flag='-berok'
10121 # Determine the default libpath from the value encoded in an
10122 # empty executable.
10123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10124 /* end confdefs.h. */
10127 main ()
10131 return 0;
10133 _ACEOF
10134 if ac_fn_c_try_link "$LINENO"; then :
10136 lt_aix_libpath_sed='
10137 /Import File Strings/,/^$/ {
10138 /^0/ {
10139 s/^0 *\(.*\)$/\1/
10143 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10144 # Check for a 64-bit object if we didn't find anything.
10145 if test -z "$aix_libpath"; then
10146 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10149 rm -f core conftest.err conftest.$ac_objext \
10150 conftest$ac_exeext conftest.$ac_ext
10151 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10153 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10154 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"
10155 else
10156 if test "$host_cpu" = ia64; then
10157 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10158 allow_undefined_flag="-z nodefs"
10159 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"
10160 else
10161 # Determine the default libpath from the value encoded in an
10162 # empty executable.
10163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10164 /* end confdefs.h. */
10167 main ()
10171 return 0;
10173 _ACEOF
10174 if ac_fn_c_try_link "$LINENO"; then :
10176 lt_aix_libpath_sed='
10177 /Import File Strings/,/^$/ {
10178 /^0/ {
10179 s/^0 *\(.*\)$/\1/
10183 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10184 # Check for a 64-bit object if we didn't find anything.
10185 if test -z "$aix_libpath"; then
10186 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10189 rm -f core conftest.err conftest.$ac_objext \
10190 conftest$ac_exeext conftest.$ac_ext
10191 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10193 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10194 # Warning - without using the other run time loading flags,
10195 # -berok will link without error, but may produce a broken library.
10196 no_undefined_flag=' ${wl}-bernotok'
10197 allow_undefined_flag=' ${wl}-berok'
10198 if test "$with_gnu_ld" = yes; then
10199 # We only use this code for GNU lds that support --whole-archive.
10200 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10201 else
10202 # Exported symbols can be pulled into shared objects from archives
10203 whole_archive_flag_spec='$convenience'
10205 archive_cmds_need_lc=yes
10206 # This is similar to how AIX traditionally builds its shared libraries.
10207 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'
10212 amigaos*)
10213 case $host_cpu in
10214 powerpc)
10215 # see comment about AmigaOS4 .so support
10216 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10217 archive_expsym_cmds=''
10219 m68k)
10220 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)'
10221 hardcode_libdir_flag_spec='-L$libdir'
10222 hardcode_minus_L=yes
10224 esac
10227 bsdi[45]*)
10228 export_dynamic_flag_spec=-rdynamic
10231 cygwin* | mingw* | pw32* | cegcc*)
10232 # When not using gcc, we currently assume that we are using
10233 # Microsoft Visual C++.
10234 # hardcode_libdir_flag_spec is actually meaningless, as there is
10235 # no search path for DLLs.
10236 hardcode_libdir_flag_spec=' '
10237 allow_undefined_flag=unsupported
10238 # Tell ltmain to make .lib files, not .a files.
10239 libext=lib
10240 # Tell ltmain to make .dll files, not .so files.
10241 shrext_cmds=".dll"
10242 # FIXME: Setting linknames here is a bad hack.
10243 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10244 # The linker will automatically build a .lib file if we build a DLL.
10245 old_archive_from_new_cmds='true'
10246 # FIXME: Should let the user specify the lib program.
10247 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10248 fix_srcfile_path='`cygpath -w "$srcfile"`'
10249 enable_shared_with_static_runtimes=yes
10252 darwin* | rhapsody*)
10255 archive_cmds_need_lc=no
10256 hardcode_direct=no
10257 hardcode_automatic=yes
10258 hardcode_shlibpath_var=unsupported
10259 if test "$lt_cv_ld_force_load" = "yes"; then
10260 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\"`'
10261 else
10262 whole_archive_flag_spec=''
10264 link_all_deplibs=yes
10265 allow_undefined_flag="$_lt_dar_allow_undefined"
10266 case $cc_basename in
10267 ifort*) _lt_dar_can_shared=yes ;;
10268 *) _lt_dar_can_shared=$GCC ;;
10269 esac
10270 if test "$_lt_dar_can_shared" = "yes"; then
10271 output_verbose_link_cmd=func_echo_all
10272 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10273 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10274 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}"
10275 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}"
10277 else
10278 ld_shlibs=no
10283 dgux*)
10284 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10285 hardcode_libdir_flag_spec='-L$libdir'
10286 hardcode_shlibpath_var=no
10289 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10290 # support. Future versions do this automatically, but an explicit c++rt0.o
10291 # does not break anything, and helps significantly (at the cost of a little
10292 # extra space).
10293 freebsd2.2*)
10294 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10295 hardcode_libdir_flag_spec='-R$libdir'
10296 hardcode_direct=yes
10297 hardcode_shlibpath_var=no
10300 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10301 freebsd2.*)
10302 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10303 hardcode_direct=yes
10304 hardcode_minus_L=yes
10305 hardcode_shlibpath_var=no
10308 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10309 freebsd* | dragonfly*)
10310 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10311 hardcode_libdir_flag_spec='-R$libdir'
10312 hardcode_direct=yes
10313 hardcode_shlibpath_var=no
10316 hpux9*)
10317 if test "$GCC" = yes; then
10318 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'
10319 else
10320 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'
10322 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10323 hardcode_libdir_separator=:
10324 hardcode_direct=yes
10326 # hardcode_minus_L: Not really in the search PATH,
10327 # but as the default location of the library.
10328 hardcode_minus_L=yes
10329 export_dynamic_flag_spec='${wl}-E'
10332 hpux10*)
10333 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10334 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10335 else
10336 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10338 if test "$with_gnu_ld" = no; then
10339 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10340 hardcode_libdir_flag_spec_ld='+b $libdir'
10341 hardcode_libdir_separator=:
10342 hardcode_direct=yes
10343 hardcode_direct_absolute=yes
10344 export_dynamic_flag_spec='${wl}-E'
10345 # hardcode_minus_L: Not really in the search PATH,
10346 # but as the default location of the library.
10347 hardcode_minus_L=yes
10351 hpux11*)
10352 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10353 case $host_cpu in
10354 hppa*64*)
10355 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10357 ia64*)
10358 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10361 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10363 esac
10364 else
10365 case $host_cpu in
10366 hppa*64*)
10367 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10369 ia64*)
10370 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10374 # Older versions of the 11.00 compiler do not understand -b yet
10375 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10377 $as_echo_n "checking if $CC understands -b... " >&6; }
10378 if ${lt_cv_prog_compiler__b+:} false; then :
10379 $as_echo_n "(cached) " >&6
10380 else
10381 lt_cv_prog_compiler__b=no
10382 save_LDFLAGS="$LDFLAGS"
10383 LDFLAGS="$LDFLAGS -b"
10384 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10385 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10386 # The linker can only warn and ignore the option if not recognized
10387 # So say no if there are warnings
10388 if test -s conftest.err; then
10389 # Append any errors to the config.log.
10390 cat conftest.err 1>&5
10391 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10392 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10393 if diff conftest.exp conftest.er2 >/dev/null; then
10394 lt_cv_prog_compiler__b=yes
10396 else
10397 lt_cv_prog_compiler__b=yes
10400 $RM -r conftest*
10401 LDFLAGS="$save_LDFLAGS"
10404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10405 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10407 if test x"$lt_cv_prog_compiler__b" = xyes; then
10408 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10409 else
10410 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10414 esac
10416 if test "$with_gnu_ld" = no; then
10417 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10418 hardcode_libdir_separator=:
10420 case $host_cpu in
10421 hppa*64*|ia64*)
10422 hardcode_direct=no
10423 hardcode_shlibpath_var=no
10426 hardcode_direct=yes
10427 hardcode_direct_absolute=yes
10428 export_dynamic_flag_spec='${wl}-E'
10430 # hardcode_minus_L: Not really in the search PATH,
10431 # but as the default location of the library.
10432 hardcode_minus_L=yes
10434 esac
10438 irix5* | irix6* | nonstopux*)
10439 if test "$GCC" = yes; then
10440 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'
10441 # Try to use the -exported_symbol ld option, if it does not
10442 # work, assume that -exports_file does not work either and
10443 # implicitly export all symbols.
10444 save_LDFLAGS="$LDFLAGS"
10445 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10447 /* end confdefs.h. */
10448 int foo(void) {}
10449 _ACEOF
10450 if ac_fn_c_try_link "$LINENO"; then :
10451 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'
10454 rm -f core conftest.err conftest.$ac_objext \
10455 conftest$ac_exeext conftest.$ac_ext
10456 LDFLAGS="$save_LDFLAGS"
10457 else
10458 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'
10459 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'
10461 archive_cmds_need_lc='no'
10462 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10463 hardcode_libdir_separator=:
10464 inherit_rpath=yes
10465 link_all_deplibs=yes
10468 netbsd*)
10469 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10470 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10471 else
10472 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10474 hardcode_libdir_flag_spec='-R$libdir'
10475 hardcode_direct=yes
10476 hardcode_shlibpath_var=no
10479 newsos6)
10480 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10481 hardcode_direct=yes
10482 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10483 hardcode_libdir_separator=:
10484 hardcode_shlibpath_var=no
10487 *nto* | *qnx*)
10490 openbsd*)
10491 if test -f /usr/libexec/ld.so; then
10492 hardcode_direct=yes
10493 hardcode_shlibpath_var=no
10494 hardcode_direct_absolute=yes
10495 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10496 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10497 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10498 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10499 export_dynamic_flag_spec='${wl}-E'
10500 else
10501 case $host_os in
10502 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10503 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10504 hardcode_libdir_flag_spec='-R$libdir'
10507 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10508 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10510 esac
10512 else
10513 ld_shlibs=no
10517 os2*)
10518 hardcode_libdir_flag_spec='-L$libdir'
10519 hardcode_minus_L=yes
10520 allow_undefined_flag=unsupported
10521 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'
10522 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10525 osf3*)
10526 if test "$GCC" = yes; then
10527 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10528 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'
10529 else
10530 allow_undefined_flag=' -expect_unresolved \*'
10531 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'
10533 archive_cmds_need_lc='no'
10534 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10535 hardcode_libdir_separator=:
10538 osf4* | osf5*) # as osf3* with the addition of -msym flag
10539 if test "$GCC" = yes; then
10540 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10541 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'
10542 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10543 else
10544 allow_undefined_flag=' -expect_unresolved \*'
10545 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'
10546 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~
10547 $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'
10549 # Both c and cxx compiler support -rpath directly
10550 hardcode_libdir_flag_spec='-rpath $libdir'
10552 archive_cmds_need_lc='no'
10553 hardcode_libdir_separator=:
10556 solaris*)
10557 no_undefined_flag=' -z defs'
10558 if test "$GCC" = yes; then
10559 wlarc='${wl}'
10560 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10561 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10562 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10563 else
10564 case `$CC -V 2>&1` in
10565 *"Compilers 5.0"*)
10566 wlarc=''
10567 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10568 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10569 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10572 wlarc='${wl}'
10573 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10574 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10575 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10577 esac
10579 hardcode_libdir_flag_spec='-R$libdir'
10580 hardcode_shlibpath_var=no
10581 case $host_os in
10582 solaris2.[0-5] | solaris2.[0-5].*) ;;
10584 # The compiler driver will combine and reorder linker options,
10585 # but understands `-z linker_flag'. GCC discards it without `$wl',
10586 # but is careful enough not to reorder.
10587 # Supported since Solaris 2.6 (maybe 2.5.1?)
10588 if test "$GCC" = yes; then
10589 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10590 else
10591 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10594 esac
10595 link_all_deplibs=yes
10598 sunos4*)
10599 if test "x$host_vendor" = xsequent; then
10600 # Use $CC to link under sequent, because it throws in some extra .o
10601 # files that make .init and .fini sections work.
10602 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10603 else
10604 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10606 hardcode_libdir_flag_spec='-L$libdir'
10607 hardcode_direct=yes
10608 hardcode_minus_L=yes
10609 hardcode_shlibpath_var=no
10612 sysv4)
10613 case $host_vendor in
10614 sni)
10615 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10616 hardcode_direct=yes # is this really true???
10618 siemens)
10619 ## LD is ld it makes a PLAMLIB
10620 ## CC just makes a GrossModule.
10621 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10622 reload_cmds='$CC -r -o $output$reload_objs'
10623 hardcode_direct=no
10625 motorola)
10626 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10627 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10629 esac
10630 runpath_var='LD_RUN_PATH'
10631 hardcode_shlibpath_var=no
10634 sysv4.3*)
10635 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10636 hardcode_shlibpath_var=no
10637 export_dynamic_flag_spec='-Bexport'
10640 sysv4*MP*)
10641 if test -d /usr/nec; then
10642 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10643 hardcode_shlibpath_var=no
10644 runpath_var=LD_RUN_PATH
10645 hardcode_runpath_var=yes
10646 ld_shlibs=yes
10650 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10651 no_undefined_flag='${wl}-z,text'
10652 archive_cmds_need_lc=no
10653 hardcode_shlibpath_var=no
10654 runpath_var='LD_RUN_PATH'
10656 if test "$GCC" = yes; then
10657 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10658 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10659 else
10660 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10661 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10665 sysv5* | sco3.2v5* | sco5v6*)
10666 # Note: We can NOT use -z defs as we might desire, because we do not
10667 # link with -lc, and that would cause any symbols used from libc to
10668 # always be unresolved, which means just about no library would
10669 # ever link correctly. If we're not using GNU ld we use -z text
10670 # though, which does catch some bad symbols but isn't as heavy-handed
10671 # as -z defs.
10672 no_undefined_flag='${wl}-z,text'
10673 allow_undefined_flag='${wl}-z,nodefs'
10674 archive_cmds_need_lc=no
10675 hardcode_shlibpath_var=no
10676 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10677 hardcode_libdir_separator=':'
10678 link_all_deplibs=yes
10679 export_dynamic_flag_spec='${wl}-Bexport'
10680 runpath_var='LD_RUN_PATH'
10682 if test "$GCC" = yes; then
10683 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10684 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10685 else
10686 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10687 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10691 uts4*)
10692 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10693 hardcode_libdir_flag_spec='-L$libdir'
10694 hardcode_shlibpath_var=no
10698 ld_shlibs=no
10700 esac
10702 if test x$host_vendor = xsni; then
10703 case $host in
10704 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10705 export_dynamic_flag_spec='${wl}-Blargedynsym'
10707 esac
10711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10712 $as_echo "$ld_shlibs" >&6; }
10713 test "$ld_shlibs" = no && can_build_shared=no
10715 with_gnu_ld=$with_gnu_ld
10732 # Do we need to explicitly link libc?
10734 case "x$archive_cmds_need_lc" in
10735 x|xyes)
10736 # Assume -lc should be added
10737 archive_cmds_need_lc=yes
10739 if test "$enable_shared" = yes && test "$GCC" = yes; then
10740 case $archive_cmds in
10741 *'~'*)
10742 # FIXME: we may have to deal with multi-command sequences.
10744 '$CC '*)
10745 # Test whether the compiler implicitly links with -lc since on some
10746 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10747 # to ld, don't add -lc before -lgcc.
10748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10749 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10750 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10751 $as_echo_n "(cached) " >&6
10752 else
10753 $RM conftest*
10754 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10756 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10757 (eval $ac_compile) 2>&5
10758 ac_status=$?
10759 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10760 test $ac_status = 0; } 2>conftest.err; then
10761 soname=conftest
10762 lib=conftest
10763 libobjs=conftest.$ac_objext
10764 deplibs=
10765 wl=$lt_prog_compiler_wl
10766 pic_flag=$lt_prog_compiler_pic
10767 compiler_flags=-v
10768 linker_flags=-v
10769 verstring=
10770 output_objdir=.
10771 libname=conftest
10772 lt_save_allow_undefined_flag=$allow_undefined_flag
10773 allow_undefined_flag=
10774 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10775 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10776 ac_status=$?
10777 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10778 test $ac_status = 0; }
10779 then
10780 lt_cv_archive_cmds_need_lc=no
10781 else
10782 lt_cv_archive_cmds_need_lc=yes
10784 allow_undefined_flag=$lt_save_allow_undefined_flag
10785 else
10786 cat conftest.err 1>&5
10788 $RM conftest*
10791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10792 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10793 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10795 esac
10798 esac
10956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10957 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10959 if test "$GCC" = yes; then
10960 case $host_os in
10961 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10962 *) lt_awk_arg="/^libraries:/" ;;
10963 esac
10964 case $host_os in
10965 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10966 *) lt_sed_strip_eq="s,=/,/,g" ;;
10967 esac
10968 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10969 case $lt_search_path_spec in
10970 *\;*)
10971 # if the path contains ";" then we assume it to be the separator
10972 # otherwise default to the standard path separator (i.e. ":") - it is
10973 # assumed that no part of a normal pathname contains ";" but that should
10974 # okay in the real world where ";" in dirpaths is itself problematic.
10975 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10978 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10980 esac
10981 # Ok, now we have the path, separated by spaces, we can step through it
10982 # and add multilib dir if necessary.
10983 lt_tmp_lt_search_path_spec=
10984 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10985 for lt_sys_path in $lt_search_path_spec; do
10986 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10987 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10988 else
10989 test -d "$lt_sys_path" && \
10990 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10992 done
10993 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10994 BEGIN {RS=" "; FS="/|\n";} {
10995 lt_foo="";
10996 lt_count=0;
10997 for (lt_i = NF; lt_i > 0; lt_i--) {
10998 if ($lt_i != "" && $lt_i != ".") {
10999 if ($lt_i == "..") {
11000 lt_count++;
11001 } else {
11002 if (lt_count == 0) {
11003 lt_foo="/" $lt_i lt_foo;
11004 } else {
11005 lt_count--;
11010 if (lt_foo != "") { lt_freq[lt_foo]++; }
11011 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11013 # AWK program above erroneously prepends '/' to C:/dos/paths
11014 # for these hosts.
11015 case $host_os in
11016 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11017 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11018 esac
11019 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11020 else
11021 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11023 library_names_spec=
11024 libname_spec='lib$name'
11025 soname_spec=
11026 shrext_cmds=".so"
11027 postinstall_cmds=
11028 postuninstall_cmds=
11029 finish_cmds=
11030 finish_eval=
11031 shlibpath_var=
11032 shlibpath_overrides_runpath=unknown
11033 version_type=none
11034 dynamic_linker="$host_os ld.so"
11035 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11036 need_lib_prefix=unknown
11037 hardcode_into_libs=no
11039 # when you set need_version to no, make sure it does not cause -set_version
11040 # flags to be left without arguments
11041 need_version=unknown
11043 case $host_os in
11044 aix3*)
11045 version_type=linux
11046 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11047 shlibpath_var=LIBPATH
11049 # AIX 3 has no versioning support, so we append a major version to the name.
11050 soname_spec='${libname}${release}${shared_ext}$major'
11053 aix[4-9]*)
11054 version_type=linux
11055 need_lib_prefix=no
11056 need_version=no
11057 hardcode_into_libs=yes
11058 if test "$host_cpu" = ia64; then
11059 # AIX 5 supports IA64
11060 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11061 shlibpath_var=LD_LIBRARY_PATH
11062 else
11063 # With GCC up to 2.95.x, collect2 would create an import file
11064 # for dependence libraries. The import file would start with
11065 # the line `#! .'. This would cause the generated library to
11066 # depend on `.', always an invalid library. This was fixed in
11067 # development snapshots of GCC prior to 3.0.
11068 case $host_os in
11069 aix4 | aix4.[01] | aix4.[01].*)
11070 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11071 echo ' yes '
11072 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11074 else
11075 can_build_shared=no
11078 esac
11079 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11080 # soname into executable. Probably we can add versioning support to
11081 # collect2, so additional links can be useful in future.
11082 if test "$aix_use_runtimelinking" = yes; then
11083 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11084 # instead of lib<name>.a to let people know that these are not
11085 # typical AIX shared libraries.
11086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11087 else
11088 # We preserve .a as extension for shared libraries through AIX4.2
11089 # and later when we are not doing run time linking.
11090 library_names_spec='${libname}${release}.a $libname.a'
11091 soname_spec='${libname}${release}${shared_ext}$major'
11093 shlibpath_var=LIBPATH
11097 amigaos*)
11098 case $host_cpu in
11099 powerpc)
11100 # Since July 2007 AmigaOS4 officially supports .so libraries.
11101 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11104 m68k)
11105 library_names_spec='$libname.ixlibrary $libname.a'
11106 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11107 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'
11109 esac
11112 beos*)
11113 library_names_spec='${libname}${shared_ext}'
11114 dynamic_linker="$host_os ld.so"
11115 shlibpath_var=LIBRARY_PATH
11118 bsdi[45]*)
11119 version_type=linux
11120 need_version=no
11121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11122 soname_spec='${libname}${release}${shared_ext}$major'
11123 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11124 shlibpath_var=LD_LIBRARY_PATH
11125 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11126 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11127 # the default ld.so.conf also contains /usr/contrib/lib and
11128 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11129 # libtool to hard-code these into programs
11132 cygwin* | mingw* | pw32* | cegcc*)
11133 version_type=windows
11134 shrext_cmds=".dll"
11135 need_version=no
11136 need_lib_prefix=no
11138 case $GCC,$host_os in
11139 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11140 library_names_spec='$libname.dll.a'
11141 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11142 postinstall_cmds='base_file=`basename \${file}`~
11143 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11144 dldir=$destdir/`dirname \$dlpath`~
11145 test -d \$dldir || mkdir -p \$dldir~
11146 $install_prog $dir/$dlname \$dldir/$dlname~
11147 chmod a+x \$dldir/$dlname~
11148 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11149 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11151 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11152 dlpath=$dir/\$dldll~
11153 $RM \$dlpath'
11154 shlibpath_overrides_runpath=yes
11156 case $host_os in
11157 cygwin*)
11158 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11159 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11161 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11163 mingw* | cegcc*)
11164 # MinGW DLLs use traditional 'lib' prefix
11165 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11167 pw32*)
11168 # pw32 DLLs use 'pw' prefix rather than 'lib'
11169 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11171 esac
11175 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11177 esac
11178 dynamic_linker='Win32 ld.exe'
11179 # FIXME: first we should search . and the directory the executable is in
11180 shlibpath_var=PATH
11183 darwin* | rhapsody*)
11184 dynamic_linker="$host_os dyld"
11185 version_type=darwin
11186 need_lib_prefix=no
11187 need_version=no
11188 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11189 soname_spec='${libname}${release}${major}$shared_ext'
11190 shlibpath_overrides_runpath=yes
11191 shlibpath_var=DYLD_LIBRARY_PATH
11192 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11194 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11195 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11198 dgux*)
11199 version_type=linux
11200 need_lib_prefix=no
11201 need_version=no
11202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11203 soname_spec='${libname}${release}${shared_ext}$major'
11204 shlibpath_var=LD_LIBRARY_PATH
11207 freebsd* | dragonfly*)
11208 # DragonFly does not have aout. When/if they implement a new
11209 # versioning mechanism, adjust this.
11210 if test -x /usr/bin/objformat; then
11211 objformat=`/usr/bin/objformat`
11212 else
11213 case $host_os in
11214 freebsd[23].*) objformat=aout ;;
11215 *) objformat=elf ;;
11216 esac
11218 version_type=freebsd-$objformat
11219 case $version_type in
11220 freebsd-elf*)
11221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11222 need_version=no
11223 need_lib_prefix=no
11225 freebsd-*)
11226 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11227 need_version=yes
11229 esac
11230 shlibpath_var=LD_LIBRARY_PATH
11231 case $host_os in
11232 freebsd2.*)
11233 shlibpath_overrides_runpath=yes
11235 freebsd3.[01]* | freebsdelf3.[01]*)
11236 shlibpath_overrides_runpath=yes
11237 hardcode_into_libs=yes
11239 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11240 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11241 shlibpath_overrides_runpath=no
11242 hardcode_into_libs=yes
11244 *) # from 4.6 on, and DragonFly
11245 shlibpath_overrides_runpath=yes
11246 hardcode_into_libs=yes
11248 esac
11251 haiku*)
11252 version_type=linux
11253 need_lib_prefix=no
11254 need_version=no
11255 dynamic_linker="$host_os runtime_loader"
11256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11257 soname_spec='${libname}${release}${shared_ext}$major'
11258 shlibpath_var=LIBRARY_PATH
11259 shlibpath_overrides_runpath=yes
11260 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
11261 hardcode_into_libs=yes
11264 hpux9* | hpux10* | hpux11*)
11265 # Give a soname corresponding to the major version so that dld.sl refuses to
11266 # link against other versions.
11267 version_type=sunos
11268 need_lib_prefix=no
11269 need_version=no
11270 case $host_cpu in
11271 ia64*)
11272 shrext_cmds='.so'
11273 hardcode_into_libs=yes
11274 dynamic_linker="$host_os dld.so"
11275 shlibpath_var=LD_LIBRARY_PATH
11276 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11278 soname_spec='${libname}${release}${shared_ext}$major'
11279 if test "X$HPUX_IA64_MODE" = X32; then
11280 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11281 else
11282 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11284 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11286 hppa*64*)
11287 shrext_cmds='.sl'
11288 hardcode_into_libs=yes
11289 dynamic_linker="$host_os dld.sl"
11290 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11291 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11293 soname_spec='${libname}${release}${shared_ext}$major'
11294 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11295 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11298 shrext_cmds='.sl'
11299 dynamic_linker="$host_os dld.sl"
11300 shlibpath_var=SHLIB_PATH
11301 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11302 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11303 soname_spec='${libname}${release}${shared_ext}$major'
11305 esac
11306 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11307 postinstall_cmds='chmod 555 $lib'
11308 # or fails outright, so override atomically:
11309 install_override_mode=555
11312 interix[3-9]*)
11313 version_type=linux
11314 need_lib_prefix=no
11315 need_version=no
11316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11317 soname_spec='${libname}${release}${shared_ext}$major'
11318 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11319 shlibpath_var=LD_LIBRARY_PATH
11320 shlibpath_overrides_runpath=no
11321 hardcode_into_libs=yes
11324 irix5* | irix6* | nonstopux*)
11325 case $host_os in
11326 nonstopux*) version_type=nonstopux ;;
11328 if test "$lt_cv_prog_gnu_ld" = yes; then
11329 version_type=linux
11330 else
11331 version_type=irix
11332 fi ;;
11333 esac
11334 need_lib_prefix=no
11335 need_version=no
11336 soname_spec='${libname}${release}${shared_ext}$major'
11337 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11338 case $host_os in
11339 irix5* | nonstopux*)
11340 libsuff= shlibsuff=
11343 case $LD in # libtool.m4 will add one of these switches to LD
11344 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11345 libsuff= shlibsuff= libmagic=32-bit;;
11346 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11347 libsuff=32 shlibsuff=N32 libmagic=N32;;
11348 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11349 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11350 *) libsuff= shlibsuff= libmagic=never-match;;
11351 esac
11353 esac
11354 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11355 shlibpath_overrides_runpath=no
11356 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11357 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11358 hardcode_into_libs=yes
11361 # No shared lib support for Linux oldld, aout, or coff.
11362 linux*oldld* | linux*aout* | linux*coff*)
11363 dynamic_linker=no
11366 # This must be Linux ELF.
11368 # uclinux* changes (here and below) have been submitted to the libtool
11369 # project, but have not yet been accepted: they are GCC-local changes
11370 # for the time being. (See
11371 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
11372 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
11373 version_type=linux
11374 need_lib_prefix=no
11375 need_version=no
11376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11377 soname_spec='${libname}${release}${shared_ext}$major'
11378 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11379 shlibpath_var=LD_LIBRARY_PATH
11380 shlibpath_overrides_runpath=no
11382 # Some binutils ld are patched to set DT_RUNPATH
11383 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11384 $as_echo_n "(cached) " >&6
11385 else
11386 lt_cv_shlibpath_overrides_runpath=no
11387 save_LDFLAGS=$LDFLAGS
11388 save_libdir=$libdir
11389 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11390 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11392 /* end confdefs.h. */
11395 main ()
11399 return 0;
11401 _ACEOF
11402 if ac_fn_c_try_link "$LINENO"; then :
11403 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11404 lt_cv_shlibpath_overrides_runpath=yes
11407 rm -f core conftest.err conftest.$ac_objext \
11408 conftest$ac_exeext conftest.$ac_ext
11409 LDFLAGS=$save_LDFLAGS
11410 libdir=$save_libdir
11414 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11416 # This implies no fast_install, which is unacceptable.
11417 # Some rework will be needed to allow for fast_install
11418 # before this can be enabled.
11419 hardcode_into_libs=yes
11421 # Append ld.so.conf contents to the search path
11422 if test -f /etc/ld.so.conf; then
11423 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' ' '`
11424 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11427 # We used to test for /lib/ld.so.1 and disable shared libraries on
11428 # powerpc, because MkLinux only supported shared libraries with the
11429 # GNU dynamic linker. Since this was broken with cross compilers,
11430 # most powerpc-linux boxes support dynamic linking these days and
11431 # people can always --disable-shared, the test was removed, and we
11432 # assume the GNU/Linux dynamic linker is in use.
11433 dynamic_linker='GNU/Linux ld.so'
11436 netbsd*)
11437 version_type=sunos
11438 need_lib_prefix=no
11439 need_version=no
11440 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11442 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11443 dynamic_linker='NetBSD (a.out) ld.so'
11444 else
11445 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11446 soname_spec='${libname}${release}${shared_ext}$major'
11447 dynamic_linker='NetBSD ld.elf_so'
11449 shlibpath_var=LD_LIBRARY_PATH
11450 shlibpath_overrides_runpath=yes
11451 hardcode_into_libs=yes
11454 newsos6)
11455 version_type=linux
11456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11457 shlibpath_var=LD_LIBRARY_PATH
11458 shlibpath_overrides_runpath=yes
11461 *nto* | *qnx*)
11462 version_type=qnx
11463 need_lib_prefix=no
11464 need_version=no
11465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11466 soname_spec='${libname}${release}${shared_ext}$major'
11467 shlibpath_var=LD_LIBRARY_PATH
11468 shlibpath_overrides_runpath=no
11469 hardcode_into_libs=yes
11470 dynamic_linker='ldqnx.so'
11473 openbsd*)
11474 version_type=sunos
11475 sys_lib_dlsearch_path_spec="/usr/lib"
11476 need_lib_prefix=no
11477 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11478 case $host_os in
11479 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11480 *) need_version=no ;;
11481 esac
11482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11483 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11484 shlibpath_var=LD_LIBRARY_PATH
11485 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11486 case $host_os in
11487 openbsd2.[89] | openbsd2.[89].*)
11488 shlibpath_overrides_runpath=no
11491 shlibpath_overrides_runpath=yes
11493 esac
11494 else
11495 shlibpath_overrides_runpath=yes
11499 os2*)
11500 libname_spec='$name'
11501 shrext_cmds=".dll"
11502 need_lib_prefix=no
11503 library_names_spec='$libname${shared_ext} $libname.a'
11504 dynamic_linker='OS/2 ld.exe'
11505 shlibpath_var=LIBPATH
11508 osf3* | osf4* | osf5*)
11509 version_type=osf
11510 need_lib_prefix=no
11511 need_version=no
11512 soname_spec='${libname}${release}${shared_ext}$major'
11513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11514 shlibpath_var=LD_LIBRARY_PATH
11515 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11516 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11519 rdos*)
11520 dynamic_linker=no
11523 solaris*)
11524 version_type=linux
11525 need_lib_prefix=no
11526 need_version=no
11527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11528 soname_spec='${libname}${release}${shared_ext}$major'
11529 shlibpath_var=LD_LIBRARY_PATH
11530 shlibpath_overrides_runpath=yes
11531 hardcode_into_libs=yes
11532 # ldd complains unless libraries are executable
11533 postinstall_cmds='chmod +x $lib'
11536 sunos4*)
11537 version_type=sunos
11538 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11539 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11540 shlibpath_var=LD_LIBRARY_PATH
11541 shlibpath_overrides_runpath=yes
11542 if test "$with_gnu_ld" = yes; then
11543 need_lib_prefix=no
11545 need_version=yes
11548 sysv4 | sysv4.3*)
11549 version_type=linux
11550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11551 soname_spec='${libname}${release}${shared_ext}$major'
11552 shlibpath_var=LD_LIBRARY_PATH
11553 case $host_vendor in
11554 sni)
11555 shlibpath_overrides_runpath=no
11556 need_lib_prefix=no
11557 runpath_var=LD_RUN_PATH
11559 siemens)
11560 need_lib_prefix=no
11562 motorola)
11563 need_lib_prefix=no
11564 need_version=no
11565 shlibpath_overrides_runpath=no
11566 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11568 esac
11571 sysv4*MP*)
11572 if test -d /usr/nec ;then
11573 version_type=linux
11574 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11575 soname_spec='$libname${shared_ext}.$major'
11576 shlibpath_var=LD_LIBRARY_PATH
11580 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11581 version_type=freebsd-elf
11582 need_lib_prefix=no
11583 need_version=no
11584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11585 soname_spec='${libname}${release}${shared_ext}$major'
11586 shlibpath_var=LD_LIBRARY_PATH
11587 shlibpath_overrides_runpath=yes
11588 hardcode_into_libs=yes
11589 if test "$with_gnu_ld" = yes; then
11590 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11591 else
11592 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11593 case $host_os in
11594 sco3.2v5*)
11595 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11597 esac
11599 sys_lib_dlsearch_path_spec='/usr/lib'
11602 tpf*)
11603 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11604 version_type=linux
11605 need_lib_prefix=no
11606 need_version=no
11607 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11608 shlibpath_var=LD_LIBRARY_PATH
11609 shlibpath_overrides_runpath=no
11610 hardcode_into_libs=yes
11613 uts4*)
11614 version_type=linux
11615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11616 soname_spec='${libname}${release}${shared_ext}$major'
11617 shlibpath_var=LD_LIBRARY_PATH
11621 dynamic_linker=no
11623 esac
11624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11625 $as_echo "$dynamic_linker" >&6; }
11626 test "$dynamic_linker" = no && can_build_shared=no
11628 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11629 if test "$GCC" = yes; then
11630 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11633 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11634 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11636 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11637 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11732 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11733 hardcode_action=
11734 if test -n "$hardcode_libdir_flag_spec" ||
11735 test -n "$runpath_var" ||
11736 test "X$hardcode_automatic" = "Xyes" ; then
11738 # We can hardcode non-existent directories.
11739 if test "$hardcode_direct" != no &&
11740 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11741 # have to relink, otherwise we might link with an installed library
11742 # when we should be linking with a yet-to-be-installed one
11743 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11744 test "$hardcode_minus_L" != no; then
11745 # Linking always hardcodes the temporary library directory.
11746 hardcode_action=relink
11747 else
11748 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11749 hardcode_action=immediate
11751 else
11752 # We cannot hardcode anything, or else we can only hardcode existing
11753 # directories.
11754 hardcode_action=unsupported
11756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11757 $as_echo "$hardcode_action" >&6; }
11759 if test "$hardcode_action" = relink ||
11760 test "$inherit_rpath" = yes; then
11761 # Fast installation is not supported
11762 enable_fast_install=no
11763 elif test "$shlibpath_overrides_runpath" = yes ||
11764 test "$enable_shared" = no; then
11765 # Fast installation is not necessary
11766 enable_fast_install=needless
11774 if test "x$enable_dlopen" != xyes; then
11775 enable_dlopen=unknown
11776 enable_dlopen_self=unknown
11777 enable_dlopen_self_static=unknown
11778 else
11779 lt_cv_dlopen=no
11780 lt_cv_dlopen_libs=
11782 case $host_os in
11783 beos*)
11784 lt_cv_dlopen="load_add_on"
11785 lt_cv_dlopen_libs=
11786 lt_cv_dlopen_self=yes
11789 mingw* | pw32* | cegcc*)
11790 lt_cv_dlopen="LoadLibrary"
11791 lt_cv_dlopen_libs=
11794 cygwin*)
11795 lt_cv_dlopen="dlopen"
11796 lt_cv_dlopen_libs=
11799 darwin*)
11800 # if libdl is installed we need to link against it
11801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11802 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11803 if ${ac_cv_lib_dl_dlopen+:} false; then :
11804 $as_echo_n "(cached) " >&6
11805 else
11806 ac_check_lib_save_LIBS=$LIBS
11807 LIBS="-ldl $LIBS"
11808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11809 /* end confdefs.h. */
11811 /* Override any GCC internal prototype to avoid an error.
11812 Use char because int might match the return type of a GCC
11813 builtin and then its argument prototype would still apply. */
11814 #ifdef __cplusplus
11815 extern "C"
11816 #endif
11817 char dlopen ();
11819 main ()
11821 return dlopen ();
11823 return 0;
11825 _ACEOF
11826 if ac_fn_c_try_link "$LINENO"; then :
11827 ac_cv_lib_dl_dlopen=yes
11828 else
11829 ac_cv_lib_dl_dlopen=no
11831 rm -f core conftest.err conftest.$ac_objext \
11832 conftest$ac_exeext conftest.$ac_ext
11833 LIBS=$ac_check_lib_save_LIBS
11835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11836 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11837 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11838 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11839 else
11841 lt_cv_dlopen="dyld"
11842 lt_cv_dlopen_libs=
11843 lt_cv_dlopen_self=yes
11850 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11851 if test "x$ac_cv_func_shl_load" = xyes; then :
11852 lt_cv_dlopen="shl_load"
11853 else
11854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11855 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11856 if ${ac_cv_lib_dld_shl_load+:} false; then :
11857 $as_echo_n "(cached) " >&6
11858 else
11859 ac_check_lib_save_LIBS=$LIBS
11860 LIBS="-ldld $LIBS"
11861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11862 /* end confdefs.h. */
11864 /* Override any GCC internal prototype to avoid an error.
11865 Use char because int might match the return type of a GCC
11866 builtin and then its argument prototype would still apply. */
11867 #ifdef __cplusplus
11868 extern "C"
11869 #endif
11870 char shl_load ();
11872 main ()
11874 return shl_load ();
11876 return 0;
11878 _ACEOF
11879 if ac_fn_c_try_link "$LINENO"; then :
11880 ac_cv_lib_dld_shl_load=yes
11881 else
11882 ac_cv_lib_dld_shl_load=no
11884 rm -f core conftest.err conftest.$ac_objext \
11885 conftest$ac_exeext conftest.$ac_ext
11886 LIBS=$ac_check_lib_save_LIBS
11888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11889 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11890 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11891 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11892 else
11893 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11894 if test "x$ac_cv_func_dlopen" = xyes; then :
11895 lt_cv_dlopen="dlopen"
11896 else
11897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11898 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11899 if ${ac_cv_lib_dl_dlopen+:} false; then :
11900 $as_echo_n "(cached) " >&6
11901 else
11902 ac_check_lib_save_LIBS=$LIBS
11903 LIBS="-ldl $LIBS"
11904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11905 /* end confdefs.h. */
11907 /* Override any GCC internal prototype to avoid an error.
11908 Use char because int might match the return type of a GCC
11909 builtin and then its argument prototype would still apply. */
11910 #ifdef __cplusplus
11911 extern "C"
11912 #endif
11913 char dlopen ();
11915 main ()
11917 return dlopen ();
11919 return 0;
11921 _ACEOF
11922 if ac_fn_c_try_link "$LINENO"; then :
11923 ac_cv_lib_dl_dlopen=yes
11924 else
11925 ac_cv_lib_dl_dlopen=no
11927 rm -f core conftest.err conftest.$ac_objext \
11928 conftest$ac_exeext conftest.$ac_ext
11929 LIBS=$ac_check_lib_save_LIBS
11931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11932 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11933 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11934 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11935 else
11936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11937 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11938 if ${ac_cv_lib_svld_dlopen+:} false; then :
11939 $as_echo_n "(cached) " >&6
11940 else
11941 ac_check_lib_save_LIBS=$LIBS
11942 LIBS="-lsvld $LIBS"
11943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11944 /* end confdefs.h. */
11946 /* Override any GCC internal prototype to avoid an error.
11947 Use char because int might match the return type of a GCC
11948 builtin and then its argument prototype would still apply. */
11949 #ifdef __cplusplus
11950 extern "C"
11951 #endif
11952 char dlopen ();
11954 main ()
11956 return dlopen ();
11958 return 0;
11960 _ACEOF
11961 if ac_fn_c_try_link "$LINENO"; then :
11962 ac_cv_lib_svld_dlopen=yes
11963 else
11964 ac_cv_lib_svld_dlopen=no
11966 rm -f core conftest.err conftest.$ac_objext \
11967 conftest$ac_exeext conftest.$ac_ext
11968 LIBS=$ac_check_lib_save_LIBS
11970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11971 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11972 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11973 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11974 else
11975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11976 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11977 if ${ac_cv_lib_dld_dld_link+:} false; then :
11978 $as_echo_n "(cached) " >&6
11979 else
11980 ac_check_lib_save_LIBS=$LIBS
11981 LIBS="-ldld $LIBS"
11982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11983 /* end confdefs.h. */
11985 /* Override any GCC internal prototype to avoid an error.
11986 Use char because int might match the return type of a GCC
11987 builtin and then its argument prototype would still apply. */
11988 #ifdef __cplusplus
11989 extern "C"
11990 #endif
11991 char dld_link ();
11993 main ()
11995 return dld_link ();
11997 return 0;
11999 _ACEOF
12000 if ac_fn_c_try_link "$LINENO"; then :
12001 ac_cv_lib_dld_dld_link=yes
12002 else
12003 ac_cv_lib_dld_dld_link=no
12005 rm -f core conftest.err conftest.$ac_objext \
12006 conftest$ac_exeext conftest.$ac_ext
12007 LIBS=$ac_check_lib_save_LIBS
12009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12010 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12011 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12012 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12031 esac
12033 if test "x$lt_cv_dlopen" != xno; then
12034 enable_dlopen=yes
12035 else
12036 enable_dlopen=no
12039 case $lt_cv_dlopen in
12040 dlopen)
12041 save_CPPFLAGS="$CPPFLAGS"
12042 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12044 save_LDFLAGS="$LDFLAGS"
12045 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12047 save_LIBS="$LIBS"
12048 LIBS="$lt_cv_dlopen_libs $LIBS"
12050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12051 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12052 if ${lt_cv_dlopen_self+:} false; then :
12053 $as_echo_n "(cached) " >&6
12054 else
12055 if test "$cross_compiling" = yes; then :
12056 lt_cv_dlopen_self=cross
12057 else
12058 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12059 lt_status=$lt_dlunknown
12060 cat > conftest.$ac_ext <<_LT_EOF
12061 #line 12061 "configure"
12062 #include "confdefs.h"
12064 #if HAVE_DLFCN_H
12065 #include <dlfcn.h>
12066 #endif
12068 #include <stdio.h>
12070 #ifdef RTLD_GLOBAL
12071 # define LT_DLGLOBAL RTLD_GLOBAL
12072 #else
12073 # ifdef DL_GLOBAL
12074 # define LT_DLGLOBAL DL_GLOBAL
12075 # else
12076 # define LT_DLGLOBAL 0
12077 # endif
12078 #endif
12080 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12081 find out it does not work in some platform. */
12082 #ifndef LT_DLLAZY_OR_NOW
12083 # ifdef RTLD_LAZY
12084 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12085 # else
12086 # ifdef DL_LAZY
12087 # define LT_DLLAZY_OR_NOW DL_LAZY
12088 # else
12089 # ifdef RTLD_NOW
12090 # define LT_DLLAZY_OR_NOW RTLD_NOW
12091 # else
12092 # ifdef DL_NOW
12093 # define LT_DLLAZY_OR_NOW DL_NOW
12094 # else
12095 # define LT_DLLAZY_OR_NOW 0
12096 # endif
12097 # endif
12098 # endif
12099 # endif
12100 #endif
12102 /* When -fvisbility=hidden is used, assume the code has been annotated
12103 correspondingly for the symbols needed. */
12104 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12105 void fnord () __attribute__((visibility("default")));
12106 #endif
12108 void fnord () { int i=42; }
12109 int main ()
12111 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12112 int status = $lt_dlunknown;
12114 if (self)
12116 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12117 else
12119 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12120 else puts (dlerror ());
12122 /* dlclose (self); */
12124 else
12125 puts (dlerror ());
12127 return status;
12129 _LT_EOF
12130 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12131 (eval $ac_link) 2>&5
12132 ac_status=$?
12133 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12134 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12135 (./conftest; exit; ) >&5 2>/dev/null
12136 lt_status=$?
12137 case x$lt_status in
12138 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12139 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12140 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12141 esac
12142 else :
12143 # compilation failed
12144 lt_cv_dlopen_self=no
12147 rm -fr conftest*
12151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12152 $as_echo "$lt_cv_dlopen_self" >&6; }
12154 if test "x$lt_cv_dlopen_self" = xyes; then
12155 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12157 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12158 if ${lt_cv_dlopen_self_static+:} false; then :
12159 $as_echo_n "(cached) " >&6
12160 else
12161 if test "$cross_compiling" = yes; then :
12162 lt_cv_dlopen_self_static=cross
12163 else
12164 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12165 lt_status=$lt_dlunknown
12166 cat > conftest.$ac_ext <<_LT_EOF
12167 #line 12167 "configure"
12168 #include "confdefs.h"
12170 #if HAVE_DLFCN_H
12171 #include <dlfcn.h>
12172 #endif
12174 #include <stdio.h>
12176 #ifdef RTLD_GLOBAL
12177 # define LT_DLGLOBAL RTLD_GLOBAL
12178 #else
12179 # ifdef DL_GLOBAL
12180 # define LT_DLGLOBAL DL_GLOBAL
12181 # else
12182 # define LT_DLGLOBAL 0
12183 # endif
12184 #endif
12186 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12187 find out it does not work in some platform. */
12188 #ifndef LT_DLLAZY_OR_NOW
12189 # ifdef RTLD_LAZY
12190 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12191 # else
12192 # ifdef DL_LAZY
12193 # define LT_DLLAZY_OR_NOW DL_LAZY
12194 # else
12195 # ifdef RTLD_NOW
12196 # define LT_DLLAZY_OR_NOW RTLD_NOW
12197 # else
12198 # ifdef DL_NOW
12199 # define LT_DLLAZY_OR_NOW DL_NOW
12200 # else
12201 # define LT_DLLAZY_OR_NOW 0
12202 # endif
12203 # endif
12204 # endif
12205 # endif
12206 #endif
12208 /* When -fvisbility=hidden is used, assume the code has been annotated
12209 correspondingly for the symbols needed. */
12210 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12211 void fnord () __attribute__((visibility("default")));
12212 #endif
12214 void fnord () { int i=42; }
12215 int main ()
12217 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12218 int status = $lt_dlunknown;
12220 if (self)
12222 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12223 else
12225 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12226 else puts (dlerror ());
12228 /* dlclose (self); */
12230 else
12231 puts (dlerror ());
12233 return status;
12235 _LT_EOF
12236 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12237 (eval $ac_link) 2>&5
12238 ac_status=$?
12239 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12240 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12241 (./conftest; exit; ) >&5 2>/dev/null
12242 lt_status=$?
12243 case x$lt_status in
12244 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12245 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12246 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12247 esac
12248 else :
12249 # compilation failed
12250 lt_cv_dlopen_self_static=no
12253 rm -fr conftest*
12257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12258 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12261 CPPFLAGS="$save_CPPFLAGS"
12262 LDFLAGS="$save_LDFLAGS"
12263 LIBS="$save_LIBS"
12265 esac
12267 case $lt_cv_dlopen_self in
12268 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12269 *) enable_dlopen_self=unknown ;;
12270 esac
12272 case $lt_cv_dlopen_self_static in
12273 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12274 *) enable_dlopen_self_static=unknown ;;
12275 esac
12294 striplib=
12295 old_striplib=
12296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12297 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12298 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12299 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12300 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12302 $as_echo "yes" >&6; }
12303 else
12304 # FIXME - insert some real tests, host_os isn't really good enough
12305 case $host_os in
12306 darwin*)
12307 if test -n "$STRIP" ; then
12308 striplib="$STRIP -x"
12309 old_striplib="$STRIP -S"
12310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12311 $as_echo "yes" >&6; }
12312 else
12313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12314 $as_echo "no" >&6; }
12318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12319 $as_echo "no" >&6; }
12321 esac
12335 # Report which library types will actually be built
12336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12337 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12339 $as_echo "$can_build_shared" >&6; }
12341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12342 $as_echo_n "checking whether to build shared libraries... " >&6; }
12343 test "$can_build_shared" = "no" && enable_shared=no
12345 # On AIX, shared libraries and static libraries use the same namespace, and
12346 # are all built from PIC.
12347 case $host_os in
12348 aix3*)
12349 test "$enable_shared" = yes && enable_static=no
12350 if test -n "$RANLIB"; then
12351 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12352 postinstall_cmds='$RANLIB $lib'
12356 aix[4-9]*)
12357 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12358 test "$enable_shared" = yes && enable_static=no
12361 esac
12362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12363 $as_echo "$enable_shared" >&6; }
12365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12366 $as_echo_n "checking whether to build static libraries... " >&6; }
12367 # Make sure either enable_shared or enable_static is yes.
12368 test "$enable_shared" = yes || enable_static=yes
12369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12370 $as_echo "$enable_static" >&6; }
12376 ac_ext=c
12377 ac_cpp='$CPP $CPPFLAGS'
12378 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12379 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12380 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12382 CC="$lt_save_CC"
12384 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12385 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12386 (test "X$CXX" != "Xg++"))) ; then
12387 ac_ext=cpp
12388 ac_cpp='$CXXCPP $CPPFLAGS'
12389 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12390 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12391 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12393 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12394 if test -z "$CXXCPP"; then
12395 if ${ac_cv_prog_CXXCPP+:} false; then :
12396 $as_echo_n "(cached) " >&6
12397 else
12398 # Double quotes because CXXCPP needs to be expanded
12399 for CXXCPP in "$CXX -E" "/lib/cpp"
12401 ac_preproc_ok=false
12402 for ac_cxx_preproc_warn_flag in '' yes
12404 # Use a header file that comes with gcc, so configuring glibc
12405 # with a fresh cross-compiler works.
12406 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12407 # <limits.h> exists even on freestanding compilers.
12408 # On the NeXT, cc -E runs the code through the compiler's parser,
12409 # not just through cpp. "Syntax error" is here to catch this case.
12410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12411 /* end confdefs.h. */
12412 #ifdef __STDC__
12413 # include <limits.h>
12414 #else
12415 # include <assert.h>
12416 #endif
12417 Syntax error
12418 _ACEOF
12419 if ac_fn_cxx_try_cpp "$LINENO"; then :
12421 else
12422 # Broken: fails on valid input.
12423 continue
12425 rm -f conftest.err conftest.i conftest.$ac_ext
12427 # OK, works on sane cases. Now check whether nonexistent headers
12428 # can be detected and how.
12429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12430 /* end confdefs.h. */
12431 #include <ac_nonexistent.h>
12432 _ACEOF
12433 if ac_fn_cxx_try_cpp "$LINENO"; then :
12434 # Broken: success on invalid input.
12435 continue
12436 else
12437 # Passes both tests.
12438 ac_preproc_ok=:
12439 break
12441 rm -f conftest.err conftest.i conftest.$ac_ext
12443 done
12444 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12445 rm -f conftest.i conftest.err conftest.$ac_ext
12446 if $ac_preproc_ok; then :
12447 break
12450 done
12451 ac_cv_prog_CXXCPP=$CXXCPP
12454 CXXCPP=$ac_cv_prog_CXXCPP
12455 else
12456 ac_cv_prog_CXXCPP=$CXXCPP
12458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12459 $as_echo "$CXXCPP" >&6; }
12460 ac_preproc_ok=false
12461 for ac_cxx_preproc_warn_flag in '' yes
12463 # Use a header file that comes with gcc, so configuring glibc
12464 # with a fresh cross-compiler works.
12465 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12466 # <limits.h> exists even on freestanding compilers.
12467 # On the NeXT, cc -E runs the code through the compiler's parser,
12468 # not just through cpp. "Syntax error" is here to catch this case.
12469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12470 /* end confdefs.h. */
12471 #ifdef __STDC__
12472 # include <limits.h>
12473 #else
12474 # include <assert.h>
12475 #endif
12476 Syntax error
12477 _ACEOF
12478 if ac_fn_cxx_try_cpp "$LINENO"; then :
12480 else
12481 # Broken: fails on valid input.
12482 continue
12484 rm -f conftest.err conftest.i conftest.$ac_ext
12486 # OK, works on sane cases. Now check whether nonexistent headers
12487 # can be detected and how.
12488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12489 /* end confdefs.h. */
12490 #include <ac_nonexistent.h>
12491 _ACEOF
12492 if ac_fn_cxx_try_cpp "$LINENO"; then :
12493 # Broken: success on invalid input.
12494 continue
12495 else
12496 # Passes both tests.
12497 ac_preproc_ok=:
12498 break
12500 rm -f conftest.err conftest.i conftest.$ac_ext
12502 done
12503 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12504 rm -f conftest.i conftest.err conftest.$ac_ext
12505 if $ac_preproc_ok; then :
12507 else
12508 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12509 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12510 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12511 See \`config.log' for more details" "$LINENO" 5; }
12514 ac_ext=c
12515 ac_cpp='$CPP $CPPFLAGS'
12516 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12517 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12518 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12520 else
12521 _lt_caught_CXX_error=yes
12524 ac_ext=cpp
12525 ac_cpp='$CXXCPP $CPPFLAGS'
12526 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12527 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12528 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12530 archive_cmds_need_lc_CXX=no
12531 allow_undefined_flag_CXX=
12532 always_export_symbols_CXX=no
12533 archive_expsym_cmds_CXX=
12534 compiler_needs_object_CXX=no
12535 export_dynamic_flag_spec_CXX=
12536 hardcode_direct_CXX=no
12537 hardcode_direct_absolute_CXX=no
12538 hardcode_libdir_flag_spec_CXX=
12539 hardcode_libdir_flag_spec_ld_CXX=
12540 hardcode_libdir_separator_CXX=
12541 hardcode_minus_L_CXX=no
12542 hardcode_shlibpath_var_CXX=unsupported
12543 hardcode_automatic_CXX=no
12544 inherit_rpath_CXX=no
12545 module_cmds_CXX=
12546 module_expsym_cmds_CXX=
12547 link_all_deplibs_CXX=unknown
12548 old_archive_cmds_CXX=$old_archive_cmds
12549 reload_flag_CXX=$reload_flag
12550 reload_cmds_CXX=$reload_cmds
12551 no_undefined_flag_CXX=
12552 whole_archive_flag_spec_CXX=
12553 enable_shared_with_static_runtimes_CXX=no
12555 # Source file extension for C++ test sources.
12556 ac_ext=cpp
12558 # Object file extension for compiled C++ test sources.
12559 objext=o
12560 objext_CXX=$objext
12562 # No sense in running all these tests if we already determined that
12563 # the CXX compiler isn't working. Some variables (like enable_shared)
12564 # are currently assumed to apply to all compilers on this platform,
12565 # and will be corrupted by setting them based on a non-working compiler.
12566 if test "$_lt_caught_CXX_error" != yes; then
12567 # Code to be used in simple compile tests
12568 lt_simple_compile_test_code="int some_variable = 0;"
12570 # Code to be used in simple link tests
12571 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12573 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12580 # If no C compiler was specified, use CC.
12581 LTCC=${LTCC-"$CC"}
12583 # If no C compiler flags were specified, use CFLAGS.
12584 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12586 # Allow CC to be a program name with arguments.
12587 compiler=$CC
12590 # save warnings/boilerplate of simple test code
12591 ac_outfile=conftest.$ac_objext
12592 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12593 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12594 _lt_compiler_boilerplate=`cat conftest.err`
12595 $RM conftest*
12597 ac_outfile=conftest.$ac_objext
12598 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12599 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12600 _lt_linker_boilerplate=`cat conftest.err`
12601 $RM -r conftest*
12604 # Allow CC to be a program name with arguments.
12605 lt_save_CC=$CC
12606 lt_save_LD=$LD
12607 lt_save_GCC=$GCC
12608 GCC=$GXX
12609 lt_save_with_gnu_ld=$with_gnu_ld
12610 lt_save_path_LD=$lt_cv_path_LD
12611 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12612 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12613 else
12614 $as_unset lt_cv_prog_gnu_ld
12616 if test -n "${lt_cv_path_LDCXX+set}"; then
12617 lt_cv_path_LD=$lt_cv_path_LDCXX
12618 else
12619 $as_unset lt_cv_path_LD
12621 test -z "${LDCXX+set}" || LD=$LDCXX
12622 CC=${CXX-"c++"}
12623 compiler=$CC
12624 compiler_CXX=$CC
12625 for cc_temp in $compiler""; do
12626 case $cc_temp in
12627 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12628 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12629 \-*) ;;
12630 *) break;;
12631 esac
12632 done
12633 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12636 if test -n "$compiler"; then
12637 # We don't want -fno-exception when compiling C++ code, so set the
12638 # no_builtin_flag separately
12639 if test "$GXX" = yes; then
12640 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12641 else
12642 lt_prog_compiler_no_builtin_flag_CXX=
12645 if test "$GXX" = yes; then
12646 # Set up default GNU C++ configuration
12650 # Check whether --with-gnu-ld was given.
12651 if test "${with_gnu_ld+set}" = set; then :
12652 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12653 else
12654 with_gnu_ld=no
12657 ac_prog=ld
12658 if test "$GCC" = yes; then
12659 # Check if gcc -print-prog-name=ld gives a path.
12660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12661 $as_echo_n "checking for ld used by $CC... " >&6; }
12662 case $host in
12663 *-*-mingw*)
12664 # gcc leaves a trailing carriage return which upsets mingw
12665 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12667 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12668 esac
12669 case $ac_prog in
12670 # Accept absolute paths.
12671 [\\/]* | ?:[\\/]*)
12672 re_direlt='/[^/][^/]*/\.\./'
12673 # Canonicalize the pathname of ld
12674 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12675 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12676 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12677 done
12678 test -z "$LD" && LD="$ac_prog"
12681 # If it fails, then pretend we aren't using GCC.
12682 ac_prog=ld
12685 # If it is relative, then search for the first ld in PATH.
12686 with_gnu_ld=unknown
12688 esac
12689 elif test "$with_gnu_ld" = yes; then
12690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12691 $as_echo_n "checking for GNU ld... " >&6; }
12692 else
12693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12694 $as_echo_n "checking for non-GNU ld... " >&6; }
12696 if ${lt_cv_path_LD+:} false; then :
12697 $as_echo_n "(cached) " >&6
12698 else
12699 if test -z "$LD"; then
12700 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12701 for ac_dir in $PATH; do
12702 IFS="$lt_save_ifs"
12703 test -z "$ac_dir" && ac_dir=.
12704 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12705 lt_cv_path_LD="$ac_dir/$ac_prog"
12706 # Check to see if the program is GNU ld. I'd rather use --version,
12707 # but apparently some variants of GNU ld only accept -v.
12708 # Break only if it was the GNU/non-GNU ld that we prefer.
12709 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12710 *GNU* | *'with BFD'*)
12711 test "$with_gnu_ld" != no && break
12714 test "$with_gnu_ld" != yes && break
12716 esac
12718 done
12719 IFS="$lt_save_ifs"
12720 else
12721 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12725 LD="$lt_cv_path_LD"
12726 if test -n "$LD"; then
12727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12728 $as_echo "$LD" >&6; }
12729 else
12730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12731 $as_echo "no" >&6; }
12733 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12735 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12736 if ${lt_cv_prog_gnu_ld+:} false; then :
12737 $as_echo_n "(cached) " >&6
12738 else
12739 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12740 case `$LD -v 2>&1 </dev/null` in
12741 *GNU* | *'with BFD'*)
12742 lt_cv_prog_gnu_ld=yes
12745 lt_cv_prog_gnu_ld=no
12747 esac
12749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12750 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12751 with_gnu_ld=$lt_cv_prog_gnu_ld
12759 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12760 # archiving commands below assume that GNU ld is being used.
12761 if test "$with_gnu_ld" = yes; then
12762 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12763 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'
12765 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12766 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12768 # If archive_cmds runs LD, not CC, wlarc should be empty
12769 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12770 # investigate it a little bit more. (MM)
12771 wlarc='${wl}'
12773 # ancient GNU ld didn't support --whole-archive et. al.
12774 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12775 $GREP 'no-whole-archive' > /dev/null; then
12776 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12777 else
12778 whole_archive_flag_spec_CXX=
12780 else
12781 with_gnu_ld=no
12782 wlarc=
12784 # A generic and very simple default shared library creation
12785 # command for GNU C++ for the case where it uses the native
12786 # linker, instead of GNU ld. If possible, this setting should
12787 # overridden to take advantage of the native linker features on
12788 # the platform it is being used on.
12789 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12792 # Commands to make compiler produce verbose output that lists
12793 # what "hidden" libraries, object files and flags are used when
12794 # linking a shared library.
12795 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12797 else
12798 GXX=no
12799 with_gnu_ld=no
12800 wlarc=
12803 # PORTME: fill in a description of your system's C++ link characteristics
12804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12805 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12806 ld_shlibs_CXX=yes
12807 case $host_os in
12808 aix3*)
12809 # FIXME: insert proper C++ library support
12810 ld_shlibs_CXX=no
12812 aix[4-9]*)
12813 if test "$host_cpu" = ia64; then
12814 # On IA64, the linker does run time linking by default, so we don't
12815 # have to do anything special.
12816 aix_use_runtimelinking=no
12817 exp_sym_flag='-Bexport'
12818 no_entry_flag=""
12819 else
12820 aix_use_runtimelinking=no
12822 # Test if we are trying to use run time linking or normal
12823 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12824 # need to do runtime linking.
12825 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12826 for ld_flag in $LDFLAGS; do
12827 case $ld_flag in
12828 *-brtl*)
12829 aix_use_runtimelinking=yes
12830 break
12832 esac
12833 done
12835 esac
12837 exp_sym_flag='-bexport'
12838 no_entry_flag='-bnoentry'
12841 # When large executables or shared objects are built, AIX ld can
12842 # have problems creating the table of contents. If linking a library
12843 # or program results in "error TOC overflow" add -mminimal-toc to
12844 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12845 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12847 archive_cmds_CXX=''
12848 hardcode_direct_CXX=yes
12849 hardcode_direct_absolute_CXX=yes
12850 hardcode_libdir_separator_CXX=':'
12851 link_all_deplibs_CXX=yes
12852 file_list_spec_CXX='${wl}-f,'
12854 if test "$GXX" = yes; then
12855 case $host_os in aix4.[012]|aix4.[012].*)
12856 # We only want to do this on AIX 4.2 and lower, the check
12857 # below for broken collect2 doesn't work under 4.3+
12858 collect2name=`${CC} -print-prog-name=collect2`
12859 if test -f "$collect2name" &&
12860 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12861 then
12862 # We have reworked collect2
12864 else
12865 # We have old collect2
12866 hardcode_direct_CXX=unsupported
12867 # It fails to find uninstalled libraries when the uninstalled
12868 # path is not listed in the libpath. Setting hardcode_minus_L
12869 # to unsupported forces relinking
12870 hardcode_minus_L_CXX=yes
12871 hardcode_libdir_flag_spec_CXX='-L$libdir'
12872 hardcode_libdir_separator_CXX=
12874 esac
12875 shared_flag='-shared'
12876 if test "$aix_use_runtimelinking" = yes; then
12877 shared_flag="$shared_flag "'${wl}-G'
12879 else
12880 # not using gcc
12881 if test "$host_cpu" = ia64; then
12882 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12883 # chokes on -Wl,-G. The following line is correct:
12884 shared_flag='-G'
12885 else
12886 if test "$aix_use_runtimelinking" = yes; then
12887 shared_flag='${wl}-G'
12888 else
12889 shared_flag='${wl}-bM:SRE'
12894 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12895 # It seems that -bexpall does not export symbols beginning with
12896 # underscore (_), so it is better to generate a list of symbols to
12897 # export.
12898 always_export_symbols_CXX=yes
12899 if test "$aix_use_runtimelinking" = yes; then
12900 # Warning - without using the other runtime loading flags (-brtl),
12901 # -berok will link without error, but may produce a broken library.
12902 allow_undefined_flag_CXX='-berok'
12903 # Determine the default libpath from the value encoded in an empty
12904 # executable.
12905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12906 /* end confdefs.h. */
12909 main ()
12913 return 0;
12915 _ACEOF
12916 if ac_fn_cxx_try_link "$LINENO"; then :
12918 lt_aix_libpath_sed='
12919 /Import File Strings/,/^$/ {
12920 /^0/ {
12921 s/^0 *\(.*\)$/\1/
12925 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12926 # Check for a 64-bit object if we didn't find anything.
12927 if test -z "$aix_libpath"; then
12928 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12931 rm -f core conftest.err conftest.$ac_objext \
12932 conftest$ac_exeext conftest.$ac_ext
12933 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12935 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12937 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"
12938 else
12939 if test "$host_cpu" = ia64; then
12940 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12941 allow_undefined_flag_CXX="-z nodefs"
12942 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"
12943 else
12944 # Determine the default libpath from the value encoded in an
12945 # empty executable.
12946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12947 /* end confdefs.h. */
12950 main ()
12954 return 0;
12956 _ACEOF
12957 if ac_fn_cxx_try_link "$LINENO"; then :
12959 lt_aix_libpath_sed='
12960 /Import File Strings/,/^$/ {
12961 /^0/ {
12962 s/^0 *\(.*\)$/\1/
12966 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12967 # Check for a 64-bit object if we didn't find anything.
12968 if test -z "$aix_libpath"; then
12969 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12972 rm -f core conftest.err conftest.$ac_objext \
12973 conftest$ac_exeext conftest.$ac_ext
12974 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12976 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12977 # Warning - without using the other run time loading flags,
12978 # -berok will link without error, but may produce a broken library.
12979 no_undefined_flag_CXX=' ${wl}-bernotok'
12980 allow_undefined_flag_CXX=' ${wl}-berok'
12981 if test "$with_gnu_ld" = yes; then
12982 # We only use this code for GNU lds that support --whole-archive.
12983 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12984 else
12985 # Exported symbols can be pulled into shared objects from archives
12986 whole_archive_flag_spec_CXX='$convenience'
12988 archive_cmds_need_lc_CXX=yes
12989 # This is similar to how AIX traditionally builds its shared
12990 # libraries.
12991 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'
12996 beos*)
12997 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12998 allow_undefined_flag_CXX=unsupported
12999 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13000 # support --undefined. This deserves some investigation. FIXME
13001 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13002 else
13003 ld_shlibs_CXX=no
13007 chorus*)
13008 case $cc_basename in
13010 # FIXME: insert proper C++ library support
13011 ld_shlibs_CXX=no
13013 esac
13016 cygwin* | mingw* | pw32* | cegcc*)
13017 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13018 # as there is no search path for DLLs.
13019 hardcode_libdir_flag_spec_CXX='-L$libdir'
13020 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13021 allow_undefined_flag_CXX=unsupported
13022 always_export_symbols_CXX=no
13023 enable_shared_with_static_runtimes_CXX=yes
13025 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13026 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'
13027 # If the export-symbols file already is a .def file (1st line
13028 # is EXPORTS), use it as is; otherwise, prepend...
13029 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13030 cp $export_symbols $output_objdir/$soname.def;
13031 else
13032 echo EXPORTS > $output_objdir/$soname.def;
13033 cat $export_symbols >> $output_objdir/$soname.def;
13035 $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'
13036 else
13037 ld_shlibs_CXX=no
13040 darwin* | rhapsody*)
13043 archive_cmds_need_lc_CXX=no
13044 hardcode_direct_CXX=no
13045 hardcode_automatic_CXX=yes
13046 hardcode_shlibpath_var_CXX=unsupported
13047 if test "$lt_cv_ld_force_load" = "yes"; then
13048 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\"`'
13049 else
13050 whole_archive_flag_spec_CXX=''
13052 link_all_deplibs_CXX=yes
13053 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13054 case $cc_basename in
13055 ifort*) _lt_dar_can_shared=yes ;;
13056 *) _lt_dar_can_shared=$GCC ;;
13057 esac
13058 if test "$_lt_dar_can_shared" = "yes"; then
13059 output_verbose_link_cmd=func_echo_all
13060 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}"
13061 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13062 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}"
13063 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}"
13064 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13065 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}"
13066 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}"
13069 else
13070 ld_shlibs_CXX=no
13075 dgux*)
13076 case $cc_basename in
13077 ec++*)
13078 # FIXME: insert proper C++ library support
13079 ld_shlibs_CXX=no
13081 ghcx*)
13082 # Green Hills C++ Compiler
13083 # FIXME: insert proper C++ library support
13084 ld_shlibs_CXX=no
13087 # FIXME: insert proper C++ library support
13088 ld_shlibs_CXX=no
13090 esac
13093 freebsd2.*)
13094 # C++ shared libraries reported to be fairly broken before
13095 # switch to ELF
13096 ld_shlibs_CXX=no
13099 freebsd-elf*)
13100 archive_cmds_need_lc_CXX=no
13103 freebsd* | dragonfly*)
13104 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13105 # conventions
13106 ld_shlibs_CXX=yes
13109 gnu*)
13112 haiku*)
13113 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13114 link_all_deplibs_CXX=yes
13117 hpux9*)
13118 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13119 hardcode_libdir_separator_CXX=:
13120 export_dynamic_flag_spec_CXX='${wl}-E'
13121 hardcode_direct_CXX=yes
13122 hardcode_minus_L_CXX=yes # Not in the search PATH,
13123 # but as the default
13124 # location of the library.
13126 case $cc_basename in
13127 CC*)
13128 # FIXME: insert proper C++ library support
13129 ld_shlibs_CXX=no
13131 aCC*)
13132 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'
13133 # Commands to make compiler produce verbose output that lists
13134 # what "hidden" libraries, object files and flags are used when
13135 # linking a shared library.
13137 # There doesn't appear to be a way to prevent this compiler from
13138 # explicitly linking system object files so we need to strip them
13139 # from the output so that they don't get included in the library
13140 # dependencies.
13141 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"'
13144 if test "$GXX" = yes; then
13145 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'
13146 else
13147 # FIXME: insert proper C++ library support
13148 ld_shlibs_CXX=no
13151 esac
13154 hpux10*|hpux11*)
13155 if test $with_gnu_ld = no; then
13156 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13157 hardcode_libdir_separator_CXX=:
13159 case $host_cpu in
13160 hppa*64*|ia64*)
13163 export_dynamic_flag_spec_CXX='${wl}-E'
13165 esac
13167 case $host_cpu in
13168 hppa*64*|ia64*)
13169 hardcode_direct_CXX=no
13170 hardcode_shlibpath_var_CXX=no
13173 hardcode_direct_CXX=yes
13174 hardcode_direct_absolute_CXX=yes
13175 hardcode_minus_L_CXX=yes # Not in the search PATH,
13176 # but as the default
13177 # location of the library.
13179 esac
13181 case $cc_basename in
13182 CC*)
13183 # FIXME: insert proper C++ library support
13184 ld_shlibs_CXX=no
13186 aCC*)
13187 case $host_cpu in
13188 hppa*64*)
13189 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13191 ia64*)
13192 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13195 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13197 esac
13198 # Commands to make compiler produce verbose output that lists
13199 # what "hidden" libraries, object files and flags are used when
13200 # linking a shared library.
13202 # There doesn't appear to be a way to prevent this compiler from
13203 # explicitly linking system object files so we need to strip them
13204 # from the output so that they don't get included in the library
13205 # dependencies.
13206 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"'
13209 if test "$GXX" = yes; then
13210 if test $with_gnu_ld = no; then
13211 case $host_cpu in
13212 hppa*64*)
13213 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13215 ia64*)
13216 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13219 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'
13221 esac
13223 else
13224 # FIXME: insert proper C++ library support
13225 ld_shlibs_CXX=no
13228 esac
13231 interix[3-9]*)
13232 hardcode_direct_CXX=no
13233 hardcode_shlibpath_var_CXX=no
13234 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13235 export_dynamic_flag_spec_CXX='${wl}-E'
13236 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13237 # Instead, shared libraries are loaded at an image base (0x10000000 by
13238 # default) and relocated if they conflict, which is a slow very memory
13239 # consuming and fragmenting process. To avoid this, we pick a random,
13240 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13241 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13242 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'
13243 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'
13245 irix5* | irix6*)
13246 case $cc_basename in
13247 CC*)
13248 # SGI C++
13249 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'
13251 # Archives containing C++ object files must be created using
13252 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13253 # necessary to make sure instantiated templates are included
13254 # in the archive.
13255 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13258 if test "$GXX" = yes; then
13259 if test "$with_gnu_ld" = no; then
13260 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'
13261 else
13262 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'
13265 link_all_deplibs_CXX=yes
13267 esac
13268 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13269 hardcode_libdir_separator_CXX=:
13270 inherit_rpath_CXX=yes
13273 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13274 case $cc_basename in
13275 KCC*)
13276 # Kuck and Associates, Inc. (KAI) C++ Compiler
13278 # KCC will only create a shared library if the output file
13279 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13280 # to its proper name (with version) after linking.
13281 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'
13282 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'
13283 # Commands to make compiler produce verbose output that lists
13284 # what "hidden" libraries, object files and flags are used when
13285 # linking a shared library.
13287 # There doesn't appear to be a way to prevent this compiler from
13288 # explicitly linking system object files so we need to strip them
13289 # from the output so that they don't get included in the library
13290 # dependencies.
13291 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"'
13293 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13294 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13296 # Archives containing C++ object files must be created using
13297 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13298 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13300 icpc* | ecpc* )
13301 # Intel C++
13302 with_gnu_ld=yes
13303 # version 8.0 and above of icpc choke on multiply defined symbols
13304 # if we add $predep_objects and $postdep_objects, however 7.1 and
13305 # earlier do not add the objects themselves.
13306 case `$CC -V 2>&1` in
13307 *"Version 7."*)
13308 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13309 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'
13311 *) # Version 8.0 or newer
13312 tmp_idyn=
13313 case $host_cpu in
13314 ia64*) tmp_idyn=' -i_dynamic';;
13315 esac
13316 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13317 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'
13319 esac
13320 archive_cmds_need_lc_CXX=no
13321 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13322 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13323 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13325 pgCC* | pgcpp*)
13326 # Portland Group C++ compiler
13327 case `$CC -V` in
13328 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13329 prelink_cmds_CXX='tpldir=Template.dir~
13330 rm -rf $tpldir~
13331 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13332 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13333 old_archive_cmds_CXX='tpldir=Template.dir~
13334 rm -rf $tpldir~
13335 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13336 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13337 $RANLIB $oldlib'
13338 archive_cmds_CXX='tpldir=Template.dir~
13339 rm -rf $tpldir~
13340 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13341 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13342 archive_expsym_cmds_CXX='tpldir=Template.dir~
13343 rm -rf $tpldir~
13344 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13345 $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'
13347 *) # Version 6 and above use weak symbols
13348 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13349 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'
13351 esac
13353 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13354 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13355 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'
13357 cxx*)
13358 # Compaq C++
13359 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13360 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'
13362 runpath_var=LD_RUN_PATH
13363 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13364 hardcode_libdir_separator_CXX=:
13366 # Commands to make compiler produce verbose output that lists
13367 # what "hidden" libraries, object files and flags are used when
13368 # linking a shared library.
13370 # There doesn't appear to be a way to prevent this compiler from
13371 # explicitly linking system object files so we need to strip them
13372 # from the output so that they don't get included in the library
13373 # dependencies.
13374 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'
13376 xl* | mpixl* | bgxl*)
13377 # IBM XL 8.0 on PPC, with GNU ld
13378 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13379 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13380 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13381 if test "x$supports_anon_versioning" = xyes; then
13382 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13383 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13384 echo "local: *; };" >> $output_objdir/$libname.ver~
13385 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13389 case `$CC -V 2>&1 | sed 5q` in
13390 *Sun\ C*)
13391 # Sun C++ 5.9
13392 no_undefined_flag_CXX=' -zdefs'
13393 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13394 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'
13395 hardcode_libdir_flag_spec_CXX='-R$libdir'
13396 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'
13397 compiler_needs_object_CXX=yes
13399 # Not sure whether something based on
13400 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13401 # would be better.
13402 output_verbose_link_cmd='func_echo_all'
13404 # Archives containing C++ object files must be created using
13405 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13406 # necessary to make sure instantiated templates are included
13407 # in the archive.
13408 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13410 esac
13412 esac
13415 lynxos*)
13416 # FIXME: insert proper C++ library support
13417 ld_shlibs_CXX=no
13420 m88k*)
13421 # FIXME: insert proper C++ library support
13422 ld_shlibs_CXX=no
13425 mvs*)
13426 case $cc_basename in
13427 cxx*)
13428 # FIXME: insert proper C++ library support
13429 ld_shlibs_CXX=no
13432 # FIXME: insert proper C++ library support
13433 ld_shlibs_CXX=no
13435 esac
13438 netbsd*)
13439 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13440 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13441 wlarc=
13442 hardcode_libdir_flag_spec_CXX='-R$libdir'
13443 hardcode_direct_CXX=yes
13444 hardcode_shlibpath_var_CXX=no
13446 # Workaround some broken pre-1.5 toolchains
13447 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13450 *nto* | *qnx*)
13451 ld_shlibs_CXX=yes
13454 openbsd2*)
13455 # C++ shared libraries are fairly broken
13456 ld_shlibs_CXX=no
13459 openbsd*)
13460 if test -f /usr/libexec/ld.so; then
13461 hardcode_direct_CXX=yes
13462 hardcode_shlibpath_var_CXX=no
13463 hardcode_direct_absolute_CXX=yes
13464 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13465 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13466 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13467 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13468 export_dynamic_flag_spec_CXX='${wl}-E'
13469 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13471 output_verbose_link_cmd=func_echo_all
13472 else
13473 ld_shlibs_CXX=no
13477 osf3* | osf4* | osf5*)
13478 case $cc_basename in
13479 KCC*)
13480 # Kuck and Associates, Inc. (KAI) C++ Compiler
13482 # KCC will only create a shared library if the output file
13483 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13484 # to its proper name (with version) after linking.
13485 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'
13487 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13488 hardcode_libdir_separator_CXX=:
13490 # Archives containing C++ object files must be created using
13491 # the KAI C++ compiler.
13492 case $host in
13493 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13494 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13495 esac
13497 RCC*)
13498 # Rational C++ 2.4.1
13499 # FIXME: insert proper C++ library support
13500 ld_shlibs_CXX=no
13502 cxx*)
13503 case $host in
13504 osf3*)
13505 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13506 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'
13507 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13510 allow_undefined_flag_CXX=' -expect_unresolved \*'
13511 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'
13512 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13513 echo "-hidden">> $lib.exp~
13514 $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~
13515 $RM $lib.exp'
13516 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13518 esac
13520 hardcode_libdir_separator_CXX=:
13522 # Commands to make compiler produce verbose output that lists
13523 # what "hidden" libraries, object files and flags are used when
13524 # linking a shared library.
13526 # There doesn't appear to be a way to prevent this compiler from
13527 # explicitly linking system object files so we need to strip them
13528 # from the output so that they don't get included in the library
13529 # dependencies.
13530 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"'
13533 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13534 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13535 case $host in
13536 osf3*)
13537 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'
13540 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'
13542 esac
13544 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13545 hardcode_libdir_separator_CXX=:
13547 # Commands to make compiler produce verbose output that lists
13548 # what "hidden" libraries, object files and flags are used when
13549 # linking a shared library.
13550 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13552 else
13553 # FIXME: insert proper C++ library support
13554 ld_shlibs_CXX=no
13557 esac
13560 psos*)
13561 # FIXME: insert proper C++ library support
13562 ld_shlibs_CXX=no
13565 sunos4*)
13566 case $cc_basename in
13567 CC*)
13568 # Sun C++ 4.x
13569 # FIXME: insert proper C++ library support
13570 ld_shlibs_CXX=no
13572 lcc*)
13573 # Lucid
13574 # FIXME: insert proper C++ library support
13575 ld_shlibs_CXX=no
13578 # FIXME: insert proper C++ library support
13579 ld_shlibs_CXX=no
13581 esac
13584 solaris*)
13585 case $cc_basename in
13586 CC*)
13587 # Sun C++ 4.2, 5.x and Centerline C++
13588 archive_cmds_need_lc_CXX=yes
13589 no_undefined_flag_CXX=' -zdefs'
13590 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13591 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13592 $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'
13594 hardcode_libdir_flag_spec_CXX='-R$libdir'
13595 hardcode_shlibpath_var_CXX=no
13596 case $host_os in
13597 solaris2.[0-5] | solaris2.[0-5].*) ;;
13599 # The compiler driver will combine and reorder linker options,
13600 # but understands `-z linker_flag'.
13601 # Supported since Solaris 2.6 (maybe 2.5.1?)
13602 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13604 esac
13605 link_all_deplibs_CXX=yes
13607 output_verbose_link_cmd='func_echo_all'
13609 # Archives containing C++ object files must be created using
13610 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13611 # necessary to make sure instantiated templates are included
13612 # in the archive.
13613 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13615 gcx*)
13616 # Green Hills C++ Compiler
13617 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13619 # The C++ compiler must be used to create the archive.
13620 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13623 # GNU C++ compiler with Solaris linker
13624 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13625 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13626 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13627 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13628 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13629 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13631 # Commands to make compiler produce verbose output that lists
13632 # what "hidden" libraries, object files and flags are used when
13633 # linking a shared library.
13634 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13635 else
13636 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13637 # platform.
13638 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13639 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13640 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13642 # Commands to make compiler produce verbose output that lists
13643 # what "hidden" libraries, object files and flags are used when
13644 # linking a shared library.
13645 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13648 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13649 case $host_os in
13650 solaris2.[0-5] | solaris2.[0-5].*) ;;
13652 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13654 esac
13657 esac
13660 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13661 no_undefined_flag_CXX='${wl}-z,text'
13662 archive_cmds_need_lc_CXX=no
13663 hardcode_shlibpath_var_CXX=no
13664 runpath_var='LD_RUN_PATH'
13666 case $cc_basename in
13667 CC*)
13668 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13669 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13672 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13673 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13675 esac
13678 sysv5* | sco3.2v5* | sco5v6*)
13679 # Note: We can NOT use -z defs as we might desire, because we do not
13680 # link with -lc, and that would cause any symbols used from libc to
13681 # always be unresolved, which means just about no library would
13682 # ever link correctly. If we're not using GNU ld we use -z text
13683 # though, which does catch some bad symbols but isn't as heavy-handed
13684 # as -z defs.
13685 no_undefined_flag_CXX='${wl}-z,text'
13686 allow_undefined_flag_CXX='${wl}-z,nodefs'
13687 archive_cmds_need_lc_CXX=no
13688 hardcode_shlibpath_var_CXX=no
13689 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13690 hardcode_libdir_separator_CXX=':'
13691 link_all_deplibs_CXX=yes
13692 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13693 runpath_var='LD_RUN_PATH'
13695 case $cc_basename in
13696 CC*)
13697 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13698 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13699 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13700 '"$old_archive_cmds_CXX"
13701 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13702 '"$reload_cmds_CXX"
13705 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13706 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13708 esac
13711 tandem*)
13712 case $cc_basename in
13713 NCC*)
13714 # NonStop-UX NCC 3.20
13715 # FIXME: insert proper C++ library support
13716 ld_shlibs_CXX=no
13719 # FIXME: insert proper C++ library support
13720 ld_shlibs_CXX=no
13722 esac
13725 vxworks*)
13726 # FIXME: insert proper C++ library support
13727 ld_shlibs_CXX=no
13731 # FIXME: insert proper C++ library support
13732 ld_shlibs_CXX=no
13734 esac
13736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13737 $as_echo "$ld_shlibs_CXX" >&6; }
13738 test "$ld_shlibs_CXX" = no && can_build_shared=no
13740 GCC_CXX="$GXX"
13741 LD_CXX="$LD"
13743 ## CAVEAT EMPTOR:
13744 ## There is no encapsulation within the following macros, do not change
13745 ## the running order or otherwise move them around unless you know exactly
13746 ## what you are doing...
13747 # Dependencies to place before and after the object being linked:
13748 predep_objects_CXX=
13749 postdep_objects_CXX=
13750 predeps_CXX=
13751 postdeps_CXX=
13752 compiler_lib_search_path_CXX=
13754 cat > conftest.$ac_ext <<_LT_EOF
13755 class Foo
13757 public:
13758 Foo (void) { a = 0; }
13759 private:
13760 int a;
13762 _LT_EOF
13764 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13765 (eval $ac_compile) 2>&5
13766 ac_status=$?
13767 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13768 test $ac_status = 0; }; then
13769 # Parse the compiler output and extract the necessary
13770 # objects, libraries and library flags.
13772 # Sentinel used to keep track of whether or not we are before
13773 # the conftest object file.
13774 pre_test_object_deps_done=no
13776 for p in `eval "$output_verbose_link_cmd"`; do
13777 case $p in
13779 -L* | -R* | -l*)
13780 # Some compilers place space between "-{L,R}" and the path.
13781 # Remove the space.
13782 if test $p = "-L" ||
13783 test $p = "-R"; then
13784 prev=$p
13785 continue
13786 else
13787 prev=
13790 if test "$pre_test_object_deps_done" = no; then
13791 case $p in
13792 -L* | -R*)
13793 # Internal compiler library paths should come after those
13794 # provided the user. The postdeps already come after the
13795 # user supplied libs so there is no need to process them.
13796 if test -z "$compiler_lib_search_path_CXX"; then
13797 compiler_lib_search_path_CXX="${prev}${p}"
13798 else
13799 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13802 # The "-l" case would never come before the object being
13803 # linked, so don't bother handling this case.
13804 esac
13805 else
13806 if test -z "$postdeps_CXX"; then
13807 postdeps_CXX="${prev}${p}"
13808 else
13809 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13814 *.$objext)
13815 # This assumes that the test object file only shows up
13816 # once in the compiler output.
13817 if test "$p" = "conftest.$objext"; then
13818 pre_test_object_deps_done=yes
13819 continue
13822 if test "$pre_test_object_deps_done" = no; then
13823 if test -z "$predep_objects_CXX"; then
13824 predep_objects_CXX="$p"
13825 else
13826 predep_objects_CXX="$predep_objects_CXX $p"
13828 else
13829 if test -z "$postdep_objects_CXX"; then
13830 postdep_objects_CXX="$p"
13831 else
13832 postdep_objects_CXX="$postdep_objects_CXX $p"
13837 *) ;; # Ignore the rest.
13839 esac
13840 done
13842 # Clean up.
13843 rm -f a.out a.exe
13844 else
13845 echo "libtool.m4: error: problem compiling CXX test program"
13848 $RM -f confest.$objext
13850 # PORTME: override above test on systems where it is broken
13851 case $host_os in
13852 interix[3-9]*)
13853 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13854 # hack all around it, let's just trust "g++" to DTRT.
13855 predep_objects_CXX=
13856 postdep_objects_CXX=
13857 postdeps_CXX=
13860 linux*)
13861 case `$CC -V 2>&1 | sed 5q` in
13862 *Sun\ C*)
13863 # Sun C++ 5.9
13865 # The more standards-conforming stlport4 library is
13866 # incompatible with the Cstd library. Avoid specifying
13867 # it if it's in CXXFLAGS. Ignore libCrun as
13868 # -library=stlport4 depends on it.
13869 case " $CXX $CXXFLAGS " in
13870 *" -library=stlport4 "*)
13871 solaris_use_stlport4=yes
13873 esac
13875 if test "$solaris_use_stlport4" != yes; then
13876 postdeps_CXX='-library=Cstd -library=Crun'
13879 esac
13882 solaris*)
13883 case $cc_basename in
13884 CC*)
13885 # The more standards-conforming stlport4 library is
13886 # incompatible with the Cstd library. Avoid specifying
13887 # it if it's in CXXFLAGS. Ignore libCrun as
13888 # -library=stlport4 depends on it.
13889 case " $CXX $CXXFLAGS " in
13890 *" -library=stlport4 "*)
13891 solaris_use_stlport4=yes
13893 esac
13895 # Adding this requires a known-good setup of shared libraries for
13896 # Sun compiler versions before 5.6, else PIC objects from an old
13897 # archive will be linked into the output, leading to subtle bugs.
13898 if test "$solaris_use_stlport4" != yes; then
13899 postdeps_CXX='-library=Cstd -library=Crun'
13902 esac
13904 esac
13907 case " $postdeps_CXX " in
13908 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13909 esac
13910 compiler_lib_search_dirs_CXX=
13911 if test -n "${compiler_lib_search_path_CXX}"; then
13912 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13945 lt_prog_compiler_wl_CXX=
13946 lt_prog_compiler_pic_CXX=
13947 lt_prog_compiler_static_CXX=
13949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13950 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13952 # C++ specific cases for pic, static, wl, etc.
13953 if test "$GXX" = yes; then
13954 lt_prog_compiler_wl_CXX='-Wl,'
13955 lt_prog_compiler_static_CXX='-static'
13957 case $host_os in
13958 aix*)
13959 # All AIX code is PIC.
13960 if test "$host_cpu" = ia64; then
13961 # AIX 5 now supports IA64 processor
13962 lt_prog_compiler_static_CXX='-Bstatic'
13964 lt_prog_compiler_pic_CXX='-fPIC'
13967 amigaos*)
13968 case $host_cpu in
13969 powerpc)
13970 # see comment about AmigaOS4 .so support
13971 lt_prog_compiler_pic_CXX='-fPIC'
13973 m68k)
13974 # FIXME: we need at least 68020 code to build shared libraries, but
13975 # adding the `-m68020' flag to GCC prevents building anything better,
13976 # like `-m68040'.
13977 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13979 esac
13982 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13983 # PIC is the default for these OSes.
13985 mingw* | cygwin* | os2* | pw32* | cegcc*)
13986 # This hack is so that the source file can tell whether it is being
13987 # built for inclusion in a dll (and should export symbols for example).
13988 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13989 # (--disable-auto-import) libraries
13990 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13992 darwin* | rhapsody*)
13993 # PIC is the default on this platform
13994 # Common symbols not allowed in MH_DYLIB files
13995 lt_prog_compiler_pic_CXX='-fno-common'
13997 *djgpp*)
13998 # DJGPP does not support shared libraries at all
13999 lt_prog_compiler_pic_CXX=
14001 haiku*)
14002 # PIC is the default for Haiku.
14003 # The "-static" flag exists, but is broken.
14004 lt_prog_compiler_static_CXX=
14006 interix[3-9]*)
14007 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14008 # Instead, we relocate shared libraries at runtime.
14010 sysv4*MP*)
14011 if test -d /usr/nec; then
14012 lt_prog_compiler_pic_CXX=-Kconform_pic
14015 hpux*)
14016 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14017 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14018 # sets the default TLS model and affects inlining.
14019 case $host_cpu in
14020 hppa*64*)
14023 lt_prog_compiler_pic_CXX='-fPIC'
14025 esac
14027 *qnx* | *nto*)
14028 # QNX uses GNU C++, but need to define -shared option too, otherwise
14029 # it will coredump.
14030 lt_prog_compiler_pic_CXX='-fPIC -shared'
14033 lt_prog_compiler_pic_CXX='-fPIC'
14035 esac
14036 else
14037 case $host_os in
14038 aix[4-9]*)
14039 # All AIX code is PIC.
14040 if test "$host_cpu" = ia64; then
14041 # AIX 5 now supports IA64 processor
14042 lt_prog_compiler_static_CXX='-Bstatic'
14043 else
14044 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14047 chorus*)
14048 case $cc_basename in
14049 cxch68*)
14050 # Green Hills C++ Compiler
14051 # _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"
14053 esac
14055 dgux*)
14056 case $cc_basename in
14057 ec++*)
14058 lt_prog_compiler_pic_CXX='-KPIC'
14060 ghcx*)
14061 # Green Hills C++ Compiler
14062 lt_prog_compiler_pic_CXX='-pic'
14066 esac
14068 freebsd* | dragonfly*)
14069 # FreeBSD uses GNU C++
14071 hpux9* | hpux10* | hpux11*)
14072 case $cc_basename in
14073 CC*)
14074 lt_prog_compiler_wl_CXX='-Wl,'
14075 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14076 if test "$host_cpu" != ia64; then
14077 lt_prog_compiler_pic_CXX='+Z'
14080 aCC*)
14081 lt_prog_compiler_wl_CXX='-Wl,'
14082 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14083 case $host_cpu in
14084 hppa*64*|ia64*)
14085 # +Z the default
14088 lt_prog_compiler_pic_CXX='+Z'
14090 esac
14094 esac
14096 interix*)
14097 # This is c89, which is MS Visual C++ (no shared libs)
14098 # Anyone wants to do a port?
14100 irix5* | irix6* | nonstopux*)
14101 case $cc_basename in
14102 CC*)
14103 lt_prog_compiler_wl_CXX='-Wl,'
14104 lt_prog_compiler_static_CXX='-non_shared'
14105 # CC pic flag -KPIC is the default.
14109 esac
14111 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14112 case $cc_basename in
14113 KCC*)
14114 # KAI C++ Compiler
14115 lt_prog_compiler_wl_CXX='--backend -Wl,'
14116 lt_prog_compiler_pic_CXX='-fPIC'
14118 ecpc* )
14119 # old Intel C++ for x86_64 which still supported -KPIC.
14120 lt_prog_compiler_wl_CXX='-Wl,'
14121 lt_prog_compiler_pic_CXX='-KPIC'
14122 lt_prog_compiler_static_CXX='-static'
14124 icpc* )
14125 # Intel C++, used to be incompatible with GCC.
14126 # ICC 10 doesn't accept -KPIC any more.
14127 lt_prog_compiler_wl_CXX='-Wl,'
14128 lt_prog_compiler_pic_CXX='-fPIC'
14129 lt_prog_compiler_static_CXX='-static'
14131 pgCC* | pgcpp*)
14132 # Portland Group C++ compiler
14133 lt_prog_compiler_wl_CXX='-Wl,'
14134 lt_prog_compiler_pic_CXX='-fpic'
14135 lt_prog_compiler_static_CXX='-Bstatic'
14137 cxx*)
14138 # Compaq C++
14139 # Make sure the PIC flag is empty. It appears that all Alpha
14140 # Linux and Compaq Tru64 Unix objects are PIC.
14141 lt_prog_compiler_pic_CXX=
14142 lt_prog_compiler_static_CXX='-non_shared'
14144 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14145 # IBM XL 8.0, 9.0 on PPC and BlueGene
14146 lt_prog_compiler_wl_CXX='-Wl,'
14147 lt_prog_compiler_pic_CXX='-qpic'
14148 lt_prog_compiler_static_CXX='-qstaticlink'
14151 case `$CC -V 2>&1 | sed 5q` in
14152 *Sun\ C*)
14153 # Sun C++ 5.9
14154 lt_prog_compiler_pic_CXX='-KPIC'
14155 lt_prog_compiler_static_CXX='-Bstatic'
14156 lt_prog_compiler_wl_CXX='-Qoption ld '
14158 esac
14160 esac
14162 lynxos*)
14164 m88k*)
14166 mvs*)
14167 case $cc_basename in
14168 cxx*)
14169 lt_prog_compiler_pic_CXX='-W c,exportall'
14173 esac
14175 netbsd*)
14177 *qnx* | *nto*)
14178 # QNX uses GNU C++, but need to define -shared option too, otherwise
14179 # it will coredump.
14180 lt_prog_compiler_pic_CXX='-fPIC -shared'
14182 osf3* | osf4* | osf5*)
14183 case $cc_basename in
14184 KCC*)
14185 lt_prog_compiler_wl_CXX='--backend -Wl,'
14187 RCC*)
14188 # Rational C++ 2.4.1
14189 lt_prog_compiler_pic_CXX='-pic'
14191 cxx*)
14192 # Digital/Compaq C++
14193 lt_prog_compiler_wl_CXX='-Wl,'
14194 # Make sure the PIC flag is empty. It appears that all Alpha
14195 # Linux and Compaq Tru64 Unix objects are PIC.
14196 lt_prog_compiler_pic_CXX=
14197 lt_prog_compiler_static_CXX='-non_shared'
14201 esac
14203 psos*)
14205 solaris*)
14206 case $cc_basename in
14207 CC*)
14208 # Sun C++ 4.2, 5.x and Centerline C++
14209 lt_prog_compiler_pic_CXX='-KPIC'
14210 lt_prog_compiler_static_CXX='-Bstatic'
14211 lt_prog_compiler_wl_CXX='-Qoption ld '
14213 gcx*)
14214 # Green Hills C++ Compiler
14215 lt_prog_compiler_pic_CXX='-PIC'
14219 esac
14221 sunos4*)
14222 case $cc_basename in
14223 CC*)
14224 # Sun C++ 4.x
14225 lt_prog_compiler_pic_CXX='-pic'
14226 lt_prog_compiler_static_CXX='-Bstatic'
14228 lcc*)
14229 # Lucid
14230 lt_prog_compiler_pic_CXX='-pic'
14234 esac
14236 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14237 case $cc_basename in
14238 CC*)
14239 lt_prog_compiler_wl_CXX='-Wl,'
14240 lt_prog_compiler_pic_CXX='-KPIC'
14241 lt_prog_compiler_static_CXX='-Bstatic'
14243 esac
14245 tandem*)
14246 case $cc_basename in
14247 NCC*)
14248 # NonStop-UX NCC 3.20
14249 lt_prog_compiler_pic_CXX='-KPIC'
14253 esac
14255 vxworks*)
14258 lt_prog_compiler_can_build_shared_CXX=no
14260 esac
14263 case $host_os in
14264 # For platforms which do not support PIC, -DPIC is meaningless:
14265 *djgpp*)
14266 lt_prog_compiler_pic_CXX=
14269 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14271 esac
14272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
14273 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
14278 # Check to make sure the PIC flag actually works.
14280 if test -n "$lt_prog_compiler_pic_CXX"; then
14281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14282 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14283 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14284 $as_echo_n "(cached) " >&6
14285 else
14286 lt_cv_prog_compiler_pic_works_CXX=no
14287 ac_outfile=conftest.$ac_objext
14288 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14289 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14290 # Insert the option either (1) after the last *FLAGS variable, or
14291 # (2) before a word containing "conftest.", or (3) at the end.
14292 # Note that $ac_compile itself does not contain backslashes and begins
14293 # with a dollar sign (not a hyphen), so the echo should work correctly.
14294 # The option is referenced via a variable to avoid confusing sed.
14295 lt_compile=`echo "$ac_compile" | $SED \
14296 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14297 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14298 -e 's:$: $lt_compiler_flag:'`
14299 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14300 (eval "$lt_compile" 2>conftest.err)
14301 ac_status=$?
14302 cat conftest.err >&5
14303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14304 if (exit $ac_status) && test -s "$ac_outfile"; then
14305 # The compiler can only warn and ignore the option if not recognized
14306 # So say no if there are warnings other than the usual output.
14307 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14308 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14309 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14310 lt_cv_prog_compiler_pic_works_CXX=yes
14313 $RM conftest*
14316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14317 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14319 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14320 case $lt_prog_compiler_pic_CXX in
14321 "" | " "*) ;;
14322 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14323 esac
14324 else
14325 lt_prog_compiler_pic_CXX=
14326 lt_prog_compiler_can_build_shared_CXX=no
14334 # Check to make sure the static flag actually works.
14336 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14338 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14339 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14340 $as_echo_n "(cached) " >&6
14341 else
14342 lt_cv_prog_compiler_static_works_CXX=no
14343 save_LDFLAGS="$LDFLAGS"
14344 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14345 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14346 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14347 # The linker can only warn and ignore the option if not recognized
14348 # So say no if there are warnings
14349 if test -s conftest.err; then
14350 # Append any errors to the config.log.
14351 cat conftest.err 1>&5
14352 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14353 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14354 if diff conftest.exp conftest.er2 >/dev/null; then
14355 lt_cv_prog_compiler_static_works_CXX=yes
14357 else
14358 lt_cv_prog_compiler_static_works_CXX=yes
14361 $RM -r conftest*
14362 LDFLAGS="$save_LDFLAGS"
14365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14366 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14368 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14370 else
14371 lt_prog_compiler_static_CXX=
14377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14378 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14379 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14380 $as_echo_n "(cached) " >&6
14381 else
14382 lt_cv_prog_compiler_c_o_CXX=no
14383 $RM -r conftest 2>/dev/null
14384 mkdir conftest
14385 cd conftest
14386 mkdir out
14387 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14389 lt_compiler_flag="-o out/conftest2.$ac_objext"
14390 # Insert the option either (1) after the last *FLAGS variable, or
14391 # (2) before a word containing "conftest.", or (3) at the end.
14392 # Note that $ac_compile itself does not contain backslashes and begins
14393 # with a dollar sign (not a hyphen), so the echo should work correctly.
14394 lt_compile=`echo "$ac_compile" | $SED \
14395 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14396 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14397 -e 's:$: $lt_compiler_flag:'`
14398 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14399 (eval "$lt_compile" 2>out/conftest.err)
14400 ac_status=$?
14401 cat out/conftest.err >&5
14402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14403 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14404 then
14405 # The compiler can only warn and ignore the option if not recognized
14406 # So say no if there are warnings
14407 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14408 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14409 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14410 lt_cv_prog_compiler_c_o_CXX=yes
14413 chmod u+w . 2>&5
14414 $RM conftest*
14415 # SGI C++ compiler will create directory out/ii_files/ for
14416 # template instantiation
14417 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14418 $RM out/* && rmdir out
14419 cd ..
14420 $RM -r conftest
14421 $RM conftest*
14424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14425 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14430 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14431 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14432 $as_echo_n "(cached) " >&6
14433 else
14434 lt_cv_prog_compiler_c_o_CXX=no
14435 $RM -r conftest 2>/dev/null
14436 mkdir conftest
14437 cd conftest
14438 mkdir out
14439 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14441 lt_compiler_flag="-o out/conftest2.$ac_objext"
14442 # Insert the option either (1) after the last *FLAGS variable, or
14443 # (2) before a word containing "conftest.", or (3) at the end.
14444 # Note that $ac_compile itself does not contain backslashes and begins
14445 # with a dollar sign (not a hyphen), so the echo should work correctly.
14446 lt_compile=`echo "$ac_compile" | $SED \
14447 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14448 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14449 -e 's:$: $lt_compiler_flag:'`
14450 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14451 (eval "$lt_compile" 2>out/conftest.err)
14452 ac_status=$?
14453 cat out/conftest.err >&5
14454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14455 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14456 then
14457 # The compiler can only warn and ignore the option if not recognized
14458 # So say no if there are warnings
14459 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14460 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14461 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14462 lt_cv_prog_compiler_c_o_CXX=yes
14465 chmod u+w . 2>&5
14466 $RM conftest*
14467 # SGI C++ compiler will create directory out/ii_files/ for
14468 # template instantiation
14469 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14470 $RM out/* && rmdir out
14471 cd ..
14472 $RM -r conftest
14473 $RM conftest*
14476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14477 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14482 hard_links="nottested"
14483 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14484 # do not overwrite the value of need_locks provided by the user
14485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14486 $as_echo_n "checking if we can lock with hard links... " >&6; }
14487 hard_links=yes
14488 $RM conftest*
14489 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14490 touch conftest.a
14491 ln conftest.a conftest.b 2>&5 || hard_links=no
14492 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14494 $as_echo "$hard_links" >&6; }
14495 if test "$hard_links" = no; then
14496 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14497 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14498 need_locks=warn
14500 else
14501 need_locks=no
14506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14507 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14509 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14510 case $host_os in
14511 aix[4-9]*)
14512 # If we're using GNU nm, then we don't want the "-C" option.
14513 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14514 # Also, AIX nm treats weak defined symbols like other global defined
14515 # symbols, whereas GNU nm marks them as "W".
14516 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14517 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'
14518 else
14519 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'
14522 pw32*)
14523 export_symbols_cmds_CXX="$ltdll_cmds"
14525 cygwin* | mingw* | cegcc*)
14526 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'
14529 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14531 esac
14532 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14535 $as_echo "$ld_shlibs_CXX" >&6; }
14536 test "$ld_shlibs_CXX" = no && can_build_shared=no
14538 with_gnu_ld_CXX=$with_gnu_ld
14546 # Do we need to explicitly link libc?
14548 case "x$archive_cmds_need_lc_CXX" in
14549 x|xyes)
14550 # Assume -lc should be added
14551 archive_cmds_need_lc_CXX=yes
14553 if test "$enable_shared" = yes && test "$GCC" = yes; then
14554 case $archive_cmds_CXX in
14555 *'~'*)
14556 # FIXME: we may have to deal with multi-command sequences.
14558 '$CC '*)
14559 # Test whether the compiler implicitly links with -lc since on some
14560 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14561 # to ld, don't add -lc before -lgcc.
14562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14563 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14564 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14565 $as_echo_n "(cached) " >&6
14566 else
14567 $RM conftest*
14568 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14570 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14571 (eval $ac_compile) 2>&5
14572 ac_status=$?
14573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14574 test $ac_status = 0; } 2>conftest.err; then
14575 soname=conftest
14576 lib=conftest
14577 libobjs=conftest.$ac_objext
14578 deplibs=
14579 wl=$lt_prog_compiler_wl_CXX
14580 pic_flag=$lt_prog_compiler_pic_CXX
14581 compiler_flags=-v
14582 linker_flags=-v
14583 verstring=
14584 output_objdir=.
14585 libname=conftest
14586 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14587 allow_undefined_flag_CXX=
14588 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14589 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14590 ac_status=$?
14591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14592 test $ac_status = 0; }
14593 then
14594 lt_cv_archive_cmds_need_lc_CXX=no
14595 else
14596 lt_cv_archive_cmds_need_lc_CXX=yes
14598 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14599 else
14600 cat conftest.err 1>&5
14602 $RM conftest*
14605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14606 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14607 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14609 esac
14612 esac
14677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14678 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14680 library_names_spec=
14681 libname_spec='lib$name'
14682 soname_spec=
14683 shrext_cmds=".so"
14684 postinstall_cmds=
14685 postuninstall_cmds=
14686 finish_cmds=
14687 finish_eval=
14688 shlibpath_var=
14689 shlibpath_overrides_runpath=unknown
14690 version_type=none
14691 dynamic_linker="$host_os ld.so"
14692 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14693 need_lib_prefix=unknown
14694 hardcode_into_libs=no
14696 # when you set need_version to no, make sure it does not cause -set_version
14697 # flags to be left without arguments
14698 need_version=unknown
14700 case $host_os in
14701 aix3*)
14702 version_type=linux
14703 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14704 shlibpath_var=LIBPATH
14706 # AIX 3 has no versioning support, so we append a major version to the name.
14707 soname_spec='${libname}${release}${shared_ext}$major'
14710 aix[4-9]*)
14711 version_type=linux
14712 need_lib_prefix=no
14713 need_version=no
14714 hardcode_into_libs=yes
14715 if test "$host_cpu" = ia64; then
14716 # AIX 5 supports IA64
14717 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14718 shlibpath_var=LD_LIBRARY_PATH
14719 else
14720 # With GCC up to 2.95.x, collect2 would create an import file
14721 # for dependence libraries. The import file would start with
14722 # the line `#! .'. This would cause the generated library to
14723 # depend on `.', always an invalid library. This was fixed in
14724 # development snapshots of GCC prior to 3.0.
14725 case $host_os in
14726 aix4 | aix4.[01] | aix4.[01].*)
14727 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14728 echo ' yes '
14729 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14731 else
14732 can_build_shared=no
14735 esac
14736 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14737 # soname into executable. Probably we can add versioning support to
14738 # collect2, so additional links can be useful in future.
14739 if test "$aix_use_runtimelinking" = yes; then
14740 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14741 # instead of lib<name>.a to let people know that these are not
14742 # typical AIX shared libraries.
14743 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14744 else
14745 # We preserve .a as extension for shared libraries through AIX4.2
14746 # and later when we are not doing run time linking.
14747 library_names_spec='${libname}${release}.a $libname.a'
14748 soname_spec='${libname}${release}${shared_ext}$major'
14750 shlibpath_var=LIBPATH
14754 amigaos*)
14755 case $host_cpu in
14756 powerpc)
14757 # Since July 2007 AmigaOS4 officially supports .so libraries.
14758 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14761 m68k)
14762 library_names_spec='$libname.ixlibrary $libname.a'
14763 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14764 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'
14766 esac
14769 beos*)
14770 library_names_spec='${libname}${shared_ext}'
14771 dynamic_linker="$host_os ld.so"
14772 shlibpath_var=LIBRARY_PATH
14775 bsdi[45]*)
14776 version_type=linux
14777 need_version=no
14778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14779 soname_spec='${libname}${release}${shared_ext}$major'
14780 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14781 shlibpath_var=LD_LIBRARY_PATH
14782 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14783 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14784 # the default ld.so.conf also contains /usr/contrib/lib and
14785 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14786 # libtool to hard-code these into programs
14789 cygwin* | mingw* | pw32* | cegcc*)
14790 version_type=windows
14791 shrext_cmds=".dll"
14792 need_version=no
14793 need_lib_prefix=no
14795 case $GCC,$host_os in
14796 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14797 library_names_spec='$libname.dll.a'
14798 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14799 postinstall_cmds='base_file=`basename \${file}`~
14800 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14801 dldir=$destdir/`dirname \$dlpath`~
14802 test -d \$dldir || mkdir -p \$dldir~
14803 $install_prog $dir/$dlname \$dldir/$dlname~
14804 chmod a+x \$dldir/$dlname~
14805 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14806 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14808 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14809 dlpath=$dir/\$dldll~
14810 $RM \$dlpath'
14811 shlibpath_overrides_runpath=yes
14813 case $host_os in
14814 cygwin*)
14815 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14816 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14819 mingw* | cegcc*)
14820 # MinGW DLLs use traditional 'lib' prefix
14821 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14823 pw32*)
14824 # pw32 DLLs use 'pw' prefix rather than 'lib'
14825 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14827 esac
14831 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14833 esac
14834 dynamic_linker='Win32 ld.exe'
14835 # FIXME: first we should search . and the directory the executable is in
14836 shlibpath_var=PATH
14839 darwin* | rhapsody*)
14840 dynamic_linker="$host_os dyld"
14841 version_type=darwin
14842 need_lib_prefix=no
14843 need_version=no
14844 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14845 soname_spec='${libname}${release}${major}$shared_ext'
14846 shlibpath_overrides_runpath=yes
14847 shlibpath_var=DYLD_LIBRARY_PATH
14848 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14850 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14853 dgux*)
14854 version_type=linux
14855 need_lib_prefix=no
14856 need_version=no
14857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14858 soname_spec='${libname}${release}${shared_ext}$major'
14859 shlibpath_var=LD_LIBRARY_PATH
14862 freebsd* | dragonfly*)
14863 # DragonFly does not have aout. When/if they implement a new
14864 # versioning mechanism, adjust this.
14865 if test -x /usr/bin/objformat; then
14866 objformat=`/usr/bin/objformat`
14867 else
14868 case $host_os in
14869 freebsd[23].*) objformat=aout ;;
14870 *) objformat=elf ;;
14871 esac
14873 version_type=freebsd-$objformat
14874 case $version_type in
14875 freebsd-elf*)
14876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14877 need_version=no
14878 need_lib_prefix=no
14880 freebsd-*)
14881 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14882 need_version=yes
14884 esac
14885 shlibpath_var=LD_LIBRARY_PATH
14886 case $host_os in
14887 freebsd2.*)
14888 shlibpath_overrides_runpath=yes
14890 freebsd3.[01]* | freebsdelf3.[01]*)
14891 shlibpath_overrides_runpath=yes
14892 hardcode_into_libs=yes
14894 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14895 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14896 shlibpath_overrides_runpath=no
14897 hardcode_into_libs=yes
14899 *) # from 4.6 on, and DragonFly
14900 shlibpath_overrides_runpath=yes
14901 hardcode_into_libs=yes
14903 esac
14906 haiku*)
14907 version_type=linux
14908 need_lib_prefix=no
14909 need_version=no
14910 dynamic_linker="$host_os runtime_loader"
14911 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14912 soname_spec='${libname}${release}${shared_ext}$major'
14913 shlibpath_var=LIBRARY_PATH
14914 shlibpath_overrides_runpath=yes
14915 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
14916 hardcode_into_libs=yes
14919 hpux9* | hpux10* | hpux11*)
14920 # Give a soname corresponding to the major version so that dld.sl refuses to
14921 # link against other versions.
14922 version_type=sunos
14923 need_lib_prefix=no
14924 need_version=no
14925 case $host_cpu in
14926 ia64*)
14927 shrext_cmds='.so'
14928 hardcode_into_libs=yes
14929 dynamic_linker="$host_os dld.so"
14930 shlibpath_var=LD_LIBRARY_PATH
14931 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14933 soname_spec='${libname}${release}${shared_ext}$major'
14934 if test "X$HPUX_IA64_MODE" = X32; then
14935 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14936 else
14937 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14939 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14941 hppa*64*)
14942 shrext_cmds='.sl'
14943 hardcode_into_libs=yes
14944 dynamic_linker="$host_os dld.sl"
14945 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14946 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14948 soname_spec='${libname}${release}${shared_ext}$major'
14949 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14950 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14953 shrext_cmds='.sl'
14954 dynamic_linker="$host_os dld.sl"
14955 shlibpath_var=SHLIB_PATH
14956 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14958 soname_spec='${libname}${release}${shared_ext}$major'
14960 esac
14961 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14962 postinstall_cmds='chmod 555 $lib'
14963 # or fails outright, so override atomically:
14964 install_override_mode=555
14967 interix[3-9]*)
14968 version_type=linux
14969 need_lib_prefix=no
14970 need_version=no
14971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14972 soname_spec='${libname}${release}${shared_ext}$major'
14973 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14974 shlibpath_var=LD_LIBRARY_PATH
14975 shlibpath_overrides_runpath=no
14976 hardcode_into_libs=yes
14979 irix5* | irix6* | nonstopux*)
14980 case $host_os in
14981 nonstopux*) version_type=nonstopux ;;
14983 if test "$lt_cv_prog_gnu_ld" = yes; then
14984 version_type=linux
14985 else
14986 version_type=irix
14987 fi ;;
14988 esac
14989 need_lib_prefix=no
14990 need_version=no
14991 soname_spec='${libname}${release}${shared_ext}$major'
14992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14993 case $host_os in
14994 irix5* | nonstopux*)
14995 libsuff= shlibsuff=
14998 case $LD in # libtool.m4 will add one of these switches to LD
14999 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15000 libsuff= shlibsuff= libmagic=32-bit;;
15001 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15002 libsuff=32 shlibsuff=N32 libmagic=N32;;
15003 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15004 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15005 *) libsuff= shlibsuff= libmagic=never-match;;
15006 esac
15008 esac
15009 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15010 shlibpath_overrides_runpath=no
15011 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15012 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15013 hardcode_into_libs=yes
15016 # No shared lib support for Linux oldld, aout, or coff.
15017 linux*oldld* | linux*aout* | linux*coff*)
15018 dynamic_linker=no
15021 # This must be Linux ELF.
15023 # uclinux* changes (here and below) have been submitted to the libtool
15024 # project, but have not yet been accepted: they are GCC-local changes
15025 # for the time being. (See
15026 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
15027 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
15028 version_type=linux
15029 need_lib_prefix=no
15030 need_version=no
15031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15032 soname_spec='${libname}${release}${shared_ext}$major'
15033 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15034 shlibpath_var=LD_LIBRARY_PATH
15035 shlibpath_overrides_runpath=no
15037 # Some binutils ld are patched to set DT_RUNPATH
15038 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15039 $as_echo_n "(cached) " >&6
15040 else
15041 lt_cv_shlibpath_overrides_runpath=no
15042 save_LDFLAGS=$LDFLAGS
15043 save_libdir=$libdir
15044 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15045 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15047 /* end confdefs.h. */
15050 main ()
15054 return 0;
15056 _ACEOF
15057 if ac_fn_cxx_try_link "$LINENO"; then :
15058 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15059 lt_cv_shlibpath_overrides_runpath=yes
15062 rm -f core conftest.err conftest.$ac_objext \
15063 conftest$ac_exeext conftest.$ac_ext
15064 LDFLAGS=$save_LDFLAGS
15065 libdir=$save_libdir
15069 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15071 # This implies no fast_install, which is unacceptable.
15072 # Some rework will be needed to allow for fast_install
15073 # before this can be enabled.
15074 hardcode_into_libs=yes
15076 # Append ld.so.conf contents to the search path
15077 if test -f /etc/ld.so.conf; then
15078 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' ' '`
15079 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15082 # We used to test for /lib/ld.so.1 and disable shared libraries on
15083 # powerpc, because MkLinux only supported shared libraries with the
15084 # GNU dynamic linker. Since this was broken with cross compilers,
15085 # most powerpc-linux boxes support dynamic linking these days and
15086 # people can always --disable-shared, the test was removed, and we
15087 # assume the GNU/Linux dynamic linker is in use.
15088 dynamic_linker='GNU/Linux ld.so'
15091 netbsd*)
15092 version_type=sunos
15093 need_lib_prefix=no
15094 need_version=no
15095 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15097 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15098 dynamic_linker='NetBSD (a.out) ld.so'
15099 else
15100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15101 soname_spec='${libname}${release}${shared_ext}$major'
15102 dynamic_linker='NetBSD ld.elf_so'
15104 shlibpath_var=LD_LIBRARY_PATH
15105 shlibpath_overrides_runpath=yes
15106 hardcode_into_libs=yes
15109 newsos6)
15110 version_type=linux
15111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15112 shlibpath_var=LD_LIBRARY_PATH
15113 shlibpath_overrides_runpath=yes
15116 *nto* | *qnx*)
15117 version_type=qnx
15118 need_lib_prefix=no
15119 need_version=no
15120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15121 soname_spec='${libname}${release}${shared_ext}$major'
15122 shlibpath_var=LD_LIBRARY_PATH
15123 shlibpath_overrides_runpath=no
15124 hardcode_into_libs=yes
15125 dynamic_linker='ldqnx.so'
15128 openbsd*)
15129 version_type=sunos
15130 sys_lib_dlsearch_path_spec="/usr/lib"
15131 need_lib_prefix=no
15132 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15133 case $host_os in
15134 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15135 *) need_version=no ;;
15136 esac
15137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15138 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15139 shlibpath_var=LD_LIBRARY_PATH
15140 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15141 case $host_os in
15142 openbsd2.[89] | openbsd2.[89].*)
15143 shlibpath_overrides_runpath=no
15146 shlibpath_overrides_runpath=yes
15148 esac
15149 else
15150 shlibpath_overrides_runpath=yes
15154 os2*)
15155 libname_spec='$name'
15156 shrext_cmds=".dll"
15157 need_lib_prefix=no
15158 library_names_spec='$libname${shared_ext} $libname.a'
15159 dynamic_linker='OS/2 ld.exe'
15160 shlibpath_var=LIBPATH
15163 osf3* | osf4* | osf5*)
15164 version_type=osf
15165 need_lib_prefix=no
15166 need_version=no
15167 soname_spec='${libname}${release}${shared_ext}$major'
15168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15169 shlibpath_var=LD_LIBRARY_PATH
15170 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15171 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15174 rdos*)
15175 dynamic_linker=no
15178 solaris*)
15179 version_type=linux
15180 need_lib_prefix=no
15181 need_version=no
15182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15183 soname_spec='${libname}${release}${shared_ext}$major'
15184 shlibpath_var=LD_LIBRARY_PATH
15185 shlibpath_overrides_runpath=yes
15186 hardcode_into_libs=yes
15187 # ldd complains unless libraries are executable
15188 postinstall_cmds='chmod +x $lib'
15191 sunos4*)
15192 version_type=sunos
15193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15194 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15195 shlibpath_var=LD_LIBRARY_PATH
15196 shlibpath_overrides_runpath=yes
15197 if test "$with_gnu_ld" = yes; then
15198 need_lib_prefix=no
15200 need_version=yes
15203 sysv4 | sysv4.3*)
15204 version_type=linux
15205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15206 soname_spec='${libname}${release}${shared_ext}$major'
15207 shlibpath_var=LD_LIBRARY_PATH
15208 case $host_vendor in
15209 sni)
15210 shlibpath_overrides_runpath=no
15211 need_lib_prefix=no
15212 runpath_var=LD_RUN_PATH
15214 siemens)
15215 need_lib_prefix=no
15217 motorola)
15218 need_lib_prefix=no
15219 need_version=no
15220 shlibpath_overrides_runpath=no
15221 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15223 esac
15226 sysv4*MP*)
15227 if test -d /usr/nec ;then
15228 version_type=linux
15229 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15230 soname_spec='$libname${shared_ext}.$major'
15231 shlibpath_var=LD_LIBRARY_PATH
15235 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15236 version_type=freebsd-elf
15237 need_lib_prefix=no
15238 need_version=no
15239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15240 soname_spec='${libname}${release}${shared_ext}$major'
15241 shlibpath_var=LD_LIBRARY_PATH
15242 shlibpath_overrides_runpath=yes
15243 hardcode_into_libs=yes
15244 if test "$with_gnu_ld" = yes; then
15245 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15246 else
15247 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15248 case $host_os in
15249 sco3.2v5*)
15250 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15252 esac
15254 sys_lib_dlsearch_path_spec='/usr/lib'
15257 tpf*)
15258 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15259 version_type=linux
15260 need_lib_prefix=no
15261 need_version=no
15262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15263 shlibpath_var=LD_LIBRARY_PATH
15264 shlibpath_overrides_runpath=no
15265 hardcode_into_libs=yes
15268 uts4*)
15269 version_type=linux
15270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15271 soname_spec='${libname}${release}${shared_ext}$major'
15272 shlibpath_var=LD_LIBRARY_PATH
15276 dynamic_linker=no
15278 esac
15279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15280 $as_echo "$dynamic_linker" >&6; }
15281 test "$dynamic_linker" = no && can_build_shared=no
15283 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15284 if test "$GCC" = yes; then
15285 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15288 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15289 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15291 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15292 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15333 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15334 hardcode_action_CXX=
15335 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15336 test -n "$runpath_var_CXX" ||
15337 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15339 # We can hardcode non-existent directories.
15340 if test "$hardcode_direct_CXX" != no &&
15341 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15342 # have to relink, otherwise we might link with an installed library
15343 # when we should be linking with a yet-to-be-installed one
15344 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15345 test "$hardcode_minus_L_CXX" != no; then
15346 # Linking always hardcodes the temporary library directory.
15347 hardcode_action_CXX=relink
15348 else
15349 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15350 hardcode_action_CXX=immediate
15352 else
15353 # We cannot hardcode anything, or else we can only hardcode existing
15354 # directories.
15355 hardcode_action_CXX=unsupported
15357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15358 $as_echo "$hardcode_action_CXX" >&6; }
15360 if test "$hardcode_action_CXX" = relink ||
15361 test "$inherit_rpath_CXX" = yes; then
15362 # Fast installation is not supported
15363 enable_fast_install=no
15364 elif test "$shlibpath_overrides_runpath" = yes ||
15365 test "$enable_shared" = no; then
15366 # Fast installation is not necessary
15367 enable_fast_install=needless
15376 fi # test -n "$compiler"
15378 CC=$lt_save_CC
15379 LDCXX=$LD
15380 LD=$lt_save_LD
15381 GCC=$lt_save_GCC
15382 with_gnu_ld=$lt_save_with_gnu_ld
15383 lt_cv_path_LDCXX=$lt_cv_path_LD
15384 lt_cv_path_LD=$lt_save_path_LD
15385 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15386 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15387 fi # test "$_lt_caught_CXX_error" != yes
15389 ac_ext=c
15390 ac_cpp='$CPP $CPPFLAGS'
15391 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15392 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15393 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15407 ac_config_commands="$ac_config_commands libtool"
15412 # Only expand once:
15419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
15420 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
15421 # Check whether --enable-maintainer-mode was given.
15422 if test "${enable_maintainer_mode+set}" = set; then :
15423 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
15424 else
15425 USE_MAINTAINER_MODE=no
15428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
15429 $as_echo "$USE_MAINTAINER_MODE" >&6; }
15430 if test $USE_MAINTAINER_MODE = yes; then
15431 MAINTAINER_MODE_TRUE=
15432 MAINTAINER_MODE_FALSE='#'
15433 else
15434 MAINTAINER_MODE_TRUE='#'
15435 MAINTAINER_MODE_FALSE=
15438 MAINT=$MAINTAINER_MODE_TRUE
15442 # For libtool versioning info, format is CURRENT:REVISION:AGE
15443 libtool_VERSION=1:0:0
15446 # Check header files.
15447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
15448 $as_echo_n "checking for ANSI C header files... " >&6; }
15449 if ${ac_cv_header_stdc+:} false; then :
15450 $as_echo_n "(cached) " >&6
15451 else
15452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15453 /* end confdefs.h. */
15454 #include <stdlib.h>
15455 #include <stdarg.h>
15456 #include <string.h>
15457 #include <float.h>
15460 main ()
15464 return 0;
15466 _ACEOF
15467 if ac_fn_c_try_compile "$LINENO"; then :
15468 ac_cv_header_stdc=yes
15469 else
15470 ac_cv_header_stdc=no
15472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15474 if test $ac_cv_header_stdc = yes; then
15475 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15477 /* end confdefs.h. */
15478 #include <string.h>
15480 _ACEOF
15481 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15482 $EGREP "memchr" >/dev/null 2>&1; then :
15484 else
15485 ac_cv_header_stdc=no
15487 rm -f conftest*
15491 if test $ac_cv_header_stdc = yes; then
15492 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15494 /* end confdefs.h. */
15495 #include <stdlib.h>
15497 _ACEOF
15498 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15499 $EGREP "free" >/dev/null 2>&1; then :
15501 else
15502 ac_cv_header_stdc=no
15504 rm -f conftest*
15508 if test $ac_cv_header_stdc = yes; then
15509 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15510 if test "$cross_compiling" = yes; then :
15512 else
15513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15514 /* end confdefs.h. */
15515 #include <ctype.h>
15516 #include <stdlib.h>
15517 #if ((' ' & 0x0FF) == 0x020)
15518 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15519 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15520 #else
15521 # define ISLOWER(c) \
15522 (('a' <= (c) && (c) <= 'i') \
15523 || ('j' <= (c) && (c) <= 'r') \
15524 || ('s' <= (c) && (c) <= 'z'))
15525 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15526 #endif
15528 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15530 main ()
15532 int i;
15533 for (i = 0; i < 256; i++)
15534 if (XOR (islower (i), ISLOWER (i))
15535 || toupper (i) != TOUPPER (i))
15536 return 2;
15537 return 0;
15539 _ACEOF
15540 if ac_fn_c_try_run "$LINENO"; then :
15542 else
15543 ac_cv_header_stdc=no
15545 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15546 conftest.$ac_objext conftest.beam conftest.$ac_ext
15551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
15552 $as_echo "$ac_cv_header_stdc" >&6; }
15553 if test $ac_cv_header_stdc = yes; then
15555 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
15559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
15560 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
15561 if ${ac_cv_header_time+:} false; then :
15562 $as_echo_n "(cached) " >&6
15563 else
15564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15565 /* end confdefs.h. */
15566 #include <sys/types.h>
15567 #include <sys/time.h>
15568 #include <time.h>
15571 main ()
15573 if ((struct tm *) 0)
15574 return 0;
15576 return 0;
15578 _ACEOF
15579 if ac_fn_c_try_compile "$LINENO"; then :
15580 ac_cv_header_time=yes
15581 else
15582 ac_cv_header_time=no
15584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
15587 $as_echo "$ac_cv_header_time" >&6; }
15588 if test $ac_cv_header_time = yes; then
15590 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
15594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
15595 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
15596 if ${gcc_cv_header_string+:} false; then :
15597 $as_echo_n "(cached) " >&6
15598 else
15599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15600 /* end confdefs.h. */
15601 #include <string.h>
15602 #include <strings.h>
15604 main ()
15608 return 0;
15610 _ACEOF
15611 if ac_fn_c_try_compile "$LINENO"; then :
15612 gcc_cv_header_string=yes
15613 else
15614 gcc_cv_header_string=no
15616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
15619 $as_echo "$gcc_cv_header_string" >&6; }
15620 if test $gcc_cv_header_string = yes; then
15622 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
15626 for ac_header in unistd.h semaphore.h sys/time.h sys/auxv.h malloc.h
15627 do :
15628 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15629 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15630 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15631 cat >>confdefs.h <<_ACEOF
15632 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15633 _ACEOF
15637 done
15642 inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
15644 acx_cv_header_stdint=stddef.h
15645 acx_cv_header_stdint_kind="(already complete)"
15646 for i in stdint.h $inttype_headers; do
15647 unset ac_cv_type_uintptr_t
15648 unset ac_cv_type_uintmax_t
15649 unset ac_cv_type_int_least32_t
15650 unset ac_cv_type_int_fast32_t
15651 unset ac_cv_type_uint64_t
15652 $as_echo_n "looking for a compliant stdint.h in $i, " >&6
15653 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h>
15654 #include <$i>
15656 if test "x$ac_cv_type_uintmax_t" = xyes; then :
15657 acx_cv_header_stdint=$i
15658 else
15659 continue
15662 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
15663 #include <$i>
15665 if test "x$ac_cv_type_uintptr_t" = xyes; then :
15667 else
15668 acx_cv_header_stdint_kind="(mostly complete)"
15671 ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h>
15672 #include <$i>
15674 if test "x$ac_cv_type_int_least32_t" = xyes; then :
15676 else
15677 acx_cv_header_stdint_kind="(mostly complete)"
15680 ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h>
15681 #include <$i>
15683 if test "x$ac_cv_type_int_fast32_t" = xyes; then :
15685 else
15686 acx_cv_header_stdint_kind="(mostly complete)"
15689 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
15690 #include <$i>
15692 if test "x$ac_cv_type_uint64_t" = xyes; then :
15694 else
15695 acx_cv_header_stdint_kind="(lacks uint64_t)"
15698 break
15699 done
15700 if test "$acx_cv_header_stdint" = stddef.h; then
15701 acx_cv_header_stdint_kind="(lacks uintmax_t)"
15702 for i in stdint.h $inttype_headers; do
15703 unset ac_cv_type_uintptr_t
15704 unset ac_cv_type_uint32_t
15705 unset ac_cv_type_uint64_t
15706 $as_echo_n "looking for an incomplete stdint.h in $i, " >&6
15707 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h>
15708 #include <$i>
15710 if test "x$ac_cv_type_uint32_t" = xyes; then :
15711 acx_cv_header_stdint=$i
15712 else
15713 continue
15716 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
15717 #include <$i>
15719 if test "x$ac_cv_type_uint64_t" = xyes; then :
15723 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
15724 #include <$i>
15726 if test "x$ac_cv_type_uintptr_t" = xyes; then :
15730 break
15731 done
15733 if test "$acx_cv_header_stdint" = stddef.h; then
15734 acx_cv_header_stdint_kind="(u_intXX_t style)"
15735 for i in sys/types.h $inttype_headers; do
15736 unset ac_cv_type_u_int32_t
15737 unset ac_cv_type_u_int64_t
15738 $as_echo_n "looking for u_intXX_t types in $i, " >&6
15739 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h>
15740 #include <$i>
15742 if test "x$ac_cv_type_u_int32_t" = xyes; then :
15743 acx_cv_header_stdint=$i
15744 else
15745 continue
15748 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h>
15749 #include <$i>
15751 if test "x$ac_cv_type_u_int64_t" = xyes; then :
15755 break
15756 done
15758 if test "$acx_cv_header_stdint" = stddef.h; then
15759 acx_cv_header_stdint_kind="(using manual detection)"
15762 test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
15763 test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
15764 test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
15765 test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
15766 test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
15768 # ----------------- Summarize what we found so far
15770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5
15771 $as_echo_n "checking what to include in gstdint.h... " >&6; }
15773 case `$as_basename -- gstdint.h ||
15774 $as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
15775 Xgstdint.h : 'X\(//\)$' \| \
15776 Xgstdint.h : 'X\(/\)' \| . 2>/dev/null ||
15777 $as_echo X/gstdint.h |
15778 sed '/^.*\/\([^/][^/]*\)\/*$/{
15779 s//\1/
15782 /^X\/\(\/\/\)$/{
15783 s//\1/
15786 /^X\/\(\/\).*/{
15787 s//\1/
15790 s/.*/./; q'` in
15791 stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
15792 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
15793 inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
15794 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
15795 *) ;;
15796 esac
15798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
15799 $as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; }
15801 # ----------------- done included file, check C basic types --------
15803 # Lacking an uintptr_t? Test size of void *
15804 case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
15805 stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler
15806 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15807 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15808 # This bug is HP SR number 8606223364.
15809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
15810 $as_echo_n "checking size of void *... " >&6; }
15811 if ${ac_cv_sizeof_void_p+:} false; then :
15812 $as_echo_n "(cached) " >&6
15813 else
15814 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
15816 else
15817 if test "$ac_cv_type_void_p" = yes; then
15818 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15819 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15820 as_fn_error 77 "cannot compute sizeof (void *)
15821 See \`config.log' for more details" "$LINENO" 5; }
15822 else
15823 ac_cv_sizeof_void_p=0
15828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
15829 $as_echo "$ac_cv_sizeof_void_p" >&6; }
15833 cat >>confdefs.h <<_ACEOF
15834 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15835 _ACEOF
15838 esac
15840 # Lacking an uint64_t? Test size of long
15841 case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
15842 stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler
15843 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15844 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15845 # This bug is HP SR number 8606223364.
15846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
15847 $as_echo_n "checking size of long... " >&6; }
15848 if ${ac_cv_sizeof_long+:} false; then :
15849 $as_echo_n "(cached) " >&6
15850 else
15851 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
15853 else
15854 if test "$ac_cv_type_long" = yes; then
15855 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15856 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15857 as_fn_error 77 "cannot compute sizeof (long)
15858 See \`config.log' for more details" "$LINENO" 5; }
15859 else
15860 ac_cv_sizeof_long=0
15865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
15866 $as_echo "$ac_cv_sizeof_long" >&6; }
15870 cat >>confdefs.h <<_ACEOF
15871 #define SIZEOF_LONG $ac_cv_sizeof_long
15872 _ACEOF
15875 esac
15877 if test $acx_cv_header_stdint = stddef.h; then
15878 # Lacking a good header? Test size of everything and deduce all types.
15879 # The cast to long int works around a bug in the HP C Compiler
15880 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15881 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15882 # This bug is HP SR number 8606223364.
15883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
15884 $as_echo_n "checking size of int... " >&6; }
15885 if ${ac_cv_sizeof_int+:} false; then :
15886 $as_echo_n "(cached) " >&6
15887 else
15888 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
15890 else
15891 if test "$ac_cv_type_int" = yes; then
15892 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15893 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15894 as_fn_error 77 "cannot compute sizeof (int)
15895 See \`config.log' for more details" "$LINENO" 5; }
15896 else
15897 ac_cv_sizeof_int=0
15902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
15903 $as_echo "$ac_cv_sizeof_int" >&6; }
15907 cat >>confdefs.h <<_ACEOF
15908 #define SIZEOF_INT $ac_cv_sizeof_int
15909 _ACEOF
15912 # The cast to long int works around a bug in the HP C Compiler
15913 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15914 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15915 # This bug is HP SR number 8606223364.
15916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
15917 $as_echo_n "checking size of short... " >&6; }
15918 if ${ac_cv_sizeof_short+:} false; then :
15919 $as_echo_n "(cached) " >&6
15920 else
15921 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
15923 else
15924 if test "$ac_cv_type_short" = yes; then
15925 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15926 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15927 as_fn_error 77 "cannot compute sizeof (short)
15928 See \`config.log' for more details" "$LINENO" 5; }
15929 else
15930 ac_cv_sizeof_short=0
15935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
15936 $as_echo "$ac_cv_sizeof_short" >&6; }
15940 cat >>confdefs.h <<_ACEOF
15941 #define SIZEOF_SHORT $ac_cv_sizeof_short
15942 _ACEOF
15945 # The cast to long int works around a bug in the HP C Compiler
15946 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15947 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15948 # This bug is HP SR number 8606223364.
15949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
15950 $as_echo_n "checking size of char... " >&6; }
15951 if ${ac_cv_sizeof_char+:} false; then :
15952 $as_echo_n "(cached) " >&6
15953 else
15954 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
15956 else
15957 if test "$ac_cv_type_char" = yes; then
15958 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15959 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15960 as_fn_error 77 "cannot compute sizeof (char)
15961 See \`config.log' for more details" "$LINENO" 5; }
15962 else
15963 ac_cv_sizeof_char=0
15968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
15969 $as_echo "$ac_cv_sizeof_char" >&6; }
15973 cat >>confdefs.h <<_ACEOF
15974 #define SIZEOF_CHAR $ac_cv_sizeof_char
15975 _ACEOF
15979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5
15980 $as_echo_n "checking for type equivalent to int8_t... " >&6; }
15981 case "$ac_cv_sizeof_char" in
15982 1) acx_cv_type_int8_t=char ;;
15983 *) as_fn_error $? "no 8-bit type, please report a bug" "$LINENO" 5
15984 esac
15985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
15986 $as_echo "$acx_cv_type_int8_t" >&6; }
15988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5
15989 $as_echo_n "checking for type equivalent to int16_t... " >&6; }
15990 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
15991 2:*) acx_cv_type_int16_t=int ;;
15992 *:2) acx_cv_type_int16_t=short ;;
15993 *) as_fn_error $? "no 16-bit type, please report a bug" "$LINENO" 5
15994 esac
15995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
15996 $as_echo "$acx_cv_type_int16_t" >&6; }
15998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5
15999 $as_echo_n "checking for type equivalent to int32_t... " >&6; }
16000 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
16001 4:*) acx_cv_type_int32_t=int ;;
16002 *:4) acx_cv_type_int32_t=long ;;
16003 *) as_fn_error $? "no 32-bit type, please report a bug" "$LINENO" 5
16004 esac
16005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
16006 $as_echo "$acx_cv_type_int32_t" >&6; }
16009 # These tests are here to make the output prettier
16011 if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
16012 case "$ac_cv_sizeof_long" in
16013 8) acx_cv_type_int64_t=long ;;
16014 esac
16015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5
16016 $as_echo_n "checking for type equivalent to int64_t... " >&6; }
16017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
16018 $as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
16021 # Now we can use the above types
16023 if test "$ac_cv_type_uintptr_t" != yes; then
16024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5
16025 $as_echo_n "checking for type equivalent to intptr_t... " >&6; }
16026 case $ac_cv_sizeof_void_p in
16027 2) acx_cv_type_intptr_t=int16_t ;;
16028 4) acx_cv_type_intptr_t=int32_t ;;
16029 8) acx_cv_type_intptr_t=int64_t ;;
16030 *) as_fn_error $? "no equivalent for intptr_t, please report a bug" "$LINENO" 5
16031 esac
16032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
16033 $as_echo "$acx_cv_type_intptr_t" >&6; }
16036 # ----------------- done all checks, emit header -------------
16037 ac_config_commands="$ac_config_commands gstdint.h"
16043 ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
16044 if test "x$ac_cv_header_sys_mman_h" = xyes; then :
16045 gcc_header_sys_mman_h=yes
16046 else
16047 gcc_header_sys_mman_h=no
16051 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
16052 if test "x$ac_cv_func_mmap" = xyes; then :
16053 gcc_func_mmap=yes
16054 else
16055 gcc_func_mmap=no
16058 if test "$gcc_header_sys_mman_h" != yes \
16059 || test "$gcc_func_mmap" != yes; then
16060 gcc_cv_func_mmap_file=no
16061 gcc_cv_func_mmap_dev_zero=no
16062 gcc_cv_func_mmap_anon=no
16063 else
16064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
16065 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
16066 if ${gcc_cv_func_mmap_file+:} false; then :
16067 $as_echo_n "(cached) " >&6
16068 else
16069 # Add a system to this blacklist if
16070 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
16071 # memory area containing the same data that you'd get if you applied
16072 # read() to the same fd. The only system known to have a problem here
16073 # is VMS, where text files have record structure.
16074 case "$host_os" in
16075 *vms* | ultrix*)
16076 gcc_cv_func_mmap_file=no ;;
16078 gcc_cv_func_mmap_file=yes;;
16079 esac
16081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
16082 $as_echo "$gcc_cv_func_mmap_file" >&6; }
16083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
16084 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
16085 if ${gcc_cv_func_mmap_dev_zero+:} false; then :
16086 $as_echo_n "(cached) " >&6
16087 else
16088 # Add a system to this blacklist if it has mmap() but /dev/zero
16089 # does not exist, or if mmapping /dev/zero does not give anonymous
16090 # zeroed pages with both the following properties:
16091 # 1. If you map N consecutive pages in with one call, and then
16092 # unmap any subset of those pages, the pages that were not
16093 # explicitly unmapped remain accessible.
16094 # 2. If you map two adjacent blocks of memory and then unmap them
16095 # both at once, they must both go away.
16096 # Systems known to be in this category are Windows (all variants),
16097 # VMS, and Darwin.
16098 case "$host_os" in
16099 *vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
16100 gcc_cv_func_mmap_dev_zero=no ;;
16102 gcc_cv_func_mmap_dev_zero=yes;;
16103 esac
16105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
16106 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
16108 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
16109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
16110 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
16111 if ${gcc_cv_decl_map_anon+:} false; then :
16112 $as_echo_n "(cached) " >&6
16113 else
16114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16115 /* end confdefs.h. */
16116 #include <sys/types.h>
16117 #include <sys/mman.h>
16118 #include <unistd.h>
16120 #ifndef MAP_ANONYMOUS
16121 #define MAP_ANONYMOUS MAP_ANON
16122 #endif
16125 main ()
16127 int n = MAP_ANONYMOUS;
16129 return 0;
16131 _ACEOF
16132 if ac_fn_c_try_compile "$LINENO"; then :
16133 gcc_cv_decl_map_anon=yes
16134 else
16135 gcc_cv_decl_map_anon=no
16137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
16140 $as_echo "$gcc_cv_decl_map_anon" >&6; }
16142 if test $gcc_cv_decl_map_anon = no; then
16143 gcc_cv_func_mmap_anon=no
16144 else
16145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
16146 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
16147 if ${gcc_cv_func_mmap_anon+:} false; then :
16148 $as_echo_n "(cached) " >&6
16149 else
16150 # Add a system to this blacklist if it has mmap() and MAP_ANON or
16151 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
16152 # doesn't give anonymous zeroed pages with the same properties listed
16153 # above for use of /dev/zero.
16154 # Systems known to be in this category are Windows, VMS, and SCO Unix.
16155 case "$host_os" in
16156 *vms* | cygwin* | pe | mingw* | sco* | udk* )
16157 gcc_cv_func_mmap_anon=no ;;
16159 gcc_cv_func_mmap_anon=yes;;
16160 esac
16162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
16163 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
16167 if test $gcc_cv_func_mmap_file = yes; then
16169 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
16172 if test $gcc_cv_func_mmap_dev_zero = yes; then
16174 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
16177 if test $gcc_cv_func_mmap_anon = yes; then
16179 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
16184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
16185 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
16186 if ${ac_cv_c_bigendian+:} false; then :
16187 $as_echo_n "(cached) " >&6
16188 else
16189 ac_cv_c_bigendian=unknown
16190 # See if we're dealing with a universal compiler.
16191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16192 /* end confdefs.h. */
16193 #ifndef __APPLE_CC__
16194 not a universal capable compiler
16195 #endif
16196 typedef int dummy;
16198 _ACEOF
16199 if ac_fn_c_try_compile "$LINENO"; then :
16201 # Check for potential -arch flags. It is not universal unless
16202 # there are at least two -arch flags with different values.
16203 ac_arch=
16204 ac_prev=
16205 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
16206 if test -n "$ac_prev"; then
16207 case $ac_word in
16208 i?86 | x86_64 | ppc | ppc64)
16209 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
16210 ac_arch=$ac_word
16211 else
16212 ac_cv_c_bigendian=universal
16213 break
16216 esac
16217 ac_prev=
16218 elif test "x$ac_word" = "x-arch"; then
16219 ac_prev=arch
16221 done
16223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16224 if test $ac_cv_c_bigendian = unknown; then
16225 # See if sys/param.h defines the BYTE_ORDER macro.
16226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16227 /* end confdefs.h. */
16228 #include <sys/types.h>
16229 #include <sys/param.h>
16232 main ()
16234 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
16235 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
16236 && LITTLE_ENDIAN)
16237 bogus endian macros
16238 #endif
16241 return 0;
16243 _ACEOF
16244 if ac_fn_c_try_compile "$LINENO"; then :
16245 # It does; now see whether it defined to BIG_ENDIAN or not.
16246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16247 /* end confdefs.h. */
16248 #include <sys/types.h>
16249 #include <sys/param.h>
16252 main ()
16254 #if BYTE_ORDER != BIG_ENDIAN
16255 not big endian
16256 #endif
16259 return 0;
16261 _ACEOF
16262 if ac_fn_c_try_compile "$LINENO"; then :
16263 ac_cv_c_bigendian=yes
16264 else
16265 ac_cv_c_bigendian=no
16267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16271 if test $ac_cv_c_bigendian = unknown; then
16272 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
16273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16274 /* end confdefs.h. */
16275 #include <limits.h>
16278 main ()
16280 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
16281 bogus endian macros
16282 #endif
16285 return 0;
16287 _ACEOF
16288 if ac_fn_c_try_compile "$LINENO"; then :
16289 # It does; now see whether it defined to _BIG_ENDIAN or not.
16290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16291 /* end confdefs.h. */
16292 #include <limits.h>
16295 main ()
16297 #ifndef _BIG_ENDIAN
16298 not big endian
16299 #endif
16302 return 0;
16304 _ACEOF
16305 if ac_fn_c_try_compile "$LINENO"; then :
16306 ac_cv_c_bigendian=yes
16307 else
16308 ac_cv_c_bigendian=no
16310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16314 if test $ac_cv_c_bigendian = unknown; then
16315 # Compile a test program.
16316 if test "$cross_compiling" = yes; then :
16317 # Try to guess by grepping values from an object file.
16318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16319 /* end confdefs.h. */
16320 short int ascii_mm[] =
16321 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
16322 short int ascii_ii[] =
16323 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
16324 int use_ascii (int i) {
16325 return ascii_mm[i] + ascii_ii[i];
16327 short int ebcdic_ii[] =
16328 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
16329 short int ebcdic_mm[] =
16330 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
16331 int use_ebcdic (int i) {
16332 return ebcdic_mm[i] + ebcdic_ii[i];
16334 extern int foo;
16337 main ()
16339 return use_ascii (foo) == use_ebcdic (foo);
16341 return 0;
16343 _ACEOF
16344 if ac_fn_c_try_compile "$LINENO"; then :
16345 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
16346 ac_cv_c_bigendian=yes
16348 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
16349 if test "$ac_cv_c_bigendian" = unknown; then
16350 ac_cv_c_bigendian=no
16351 else
16352 # finding both strings is unlikely to happen, but who knows?
16353 ac_cv_c_bigendian=unknown
16357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16358 else
16359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16360 /* end confdefs.h. */
16361 $ac_includes_default
16363 main ()
16366 /* Are we little or big endian? From Harbison&Steele. */
16367 union
16369 long int l;
16370 char c[sizeof (long int)];
16371 } u;
16372 u.l = 1;
16373 return u.c[sizeof (long int) - 1] == 1;
16376 return 0;
16378 _ACEOF
16379 if ac_fn_c_try_run "$LINENO"; then :
16380 ac_cv_c_bigendian=no
16381 else
16382 ac_cv_c_bigendian=yes
16384 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16385 conftest.$ac_objext conftest.beam conftest.$ac_ext
16390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
16391 $as_echo "$ac_cv_c_bigendian" >&6; }
16392 case $ac_cv_c_bigendian in #(
16393 yes)
16394 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
16395 ;; #(
16397 ;; #(
16398 universal)
16400 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
16402 ;; #(
16404 as_fn_error $? "unknown endianness
16405 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
16406 esac
16408 # I don't like the default behaviour of WORDS_BIGENDIAN undefined for LE.
16411 # Check to see if -pthread or -lpthread is needed. Prefer the former.
16412 # In case the pthread.h system header is not found, this test will fail.
16413 XPCFLAGS=""
16414 CFLAGS="$CFLAGS -pthread"
16415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16416 /* end confdefs.h. */
16417 #include <pthread.h>
16418 void *g(void *d) { return NULL; }
16420 main ()
16422 pthread_t t; pthread_create(&t,NULL,g,NULL);
16424 return 0;
16426 _ACEOF
16427 if ac_fn_c_try_link "$LINENO"; then :
16428 XPCFLAGS=" -Wc,-pthread"
16429 else
16430 CFLAGS="$save_CFLAGS" LIBS="-lpthread $LIBS"
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 :
16445 else
16446 as_fn_error $? "Pthreads are required to build libitm" "$LINENO" 5
16448 rm -f core conftest.err conftest.$ac_objext \
16449 conftest$ac_exeext conftest.$ac_ext
16451 rm -f core conftest.err conftest.$ac_objext \
16452 conftest$ac_exeext conftest.$ac_ext
16454 # Check for functions needed.
16455 for ac_func in strtoull memalign posix_memalign getauxval
16456 do :
16457 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16458 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16459 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16460 cat >>confdefs.h <<_ACEOF
16461 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16462 _ACEOF
16465 done
16468 # Check for broken semaphore implementation on darwin.
16469 # sem_init returns: sem_init error: Function not implemented.
16470 case "$host" in
16471 *-darwin*)
16473 $as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h
16476 esac
16478 # Check whether --enable-linux-futex was given.
16479 if test "${enable_linux_futex+set}" = set; then :
16480 enableval=$enable_linux_futex;
16481 case "$enableval" in
16482 yes|no|default) ;;
16483 *) as_fn_error $? "Unknown argument to enable/disable linux-futex" "$LINENO" 5 ;;
16484 esac
16486 else
16487 enable_linux_futex=default
16491 case "$target" in
16492 *-linux* | *-uclinux*)
16493 case "$enable_linux_futex" in
16494 default)
16495 # If headers don't have gettid/futex syscalls definition, then
16496 # default to no, otherwise there will be compile time failures.
16497 # Otherwise, default to yes. If we don't detect we are
16498 # compiled/linked against NPTL and not cross-compiling, check
16499 # if programs are run by default against NPTL and if not, issue
16500 # a warning.
16501 enable_linux_futex=no
16502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16503 /* end confdefs.h. */
16504 #include <sys/syscall.h>
16505 #include <unistd.h>
16506 int lk;
16508 main ()
16510 syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
16512 return 0;
16514 _ACEOF
16515 if ac_fn_c_try_link "$LINENO"; then :
16516 save_LIBS="$LIBS"
16517 LIBS="-lpthread $LIBS"
16518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16519 /* end confdefs.h. */
16520 #ifndef _GNU_SOURCE
16521 #define _GNU_SOURCE 1
16522 #endif
16523 #include <pthread.h>
16524 pthread_t th; void *status;
16526 main ()
16528 pthread_tryjoin_np (th, &status);
16530 return 0;
16532 _ACEOF
16533 if ac_fn_c_try_link "$LINENO"; then :
16534 enable_linux_futex=yes
16535 else
16536 if test x$cross_compiling = xno; then
16537 if getconf GNU_LIBPTHREAD_VERSION 2>/dev/null \
16538 | LC_ALL=C grep -i NPTL > /dev/null 2>/dev/null; then :; else
16539 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The kernel might not support futex or gettid syscalls.
16540 If so, please configure with --disable-linux-futex" >&5
16541 $as_echo "$as_me: WARNING: The kernel might not support futex or gettid syscalls.
16542 If so, please configure with --disable-linux-futex" >&2;}
16545 enable_linux_futex=yes
16547 rm -f core conftest.err conftest.$ac_objext \
16548 conftest$ac_exeext conftest.$ac_ext
16549 LIBS="$save_LIBS"
16551 rm -f core conftest.err conftest.$ac_objext \
16552 conftest$ac_exeext conftest.$ac_ext
16554 yes)
16555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16556 /* end confdefs.h. */
16557 #include <sys/syscall.h>
16558 #include <unistd.h>
16559 int lk;
16561 main ()
16563 syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
16565 return 0;
16567 _ACEOF
16568 if ac_fn_c_try_link "$LINENO"; then :
16570 else
16571 as_fn_error $? "SYS_gettid and SYS_futex required for --enable-linux-futex" "$LINENO" 5
16573 rm -f core conftest.err conftest.$ac_objext \
16574 conftest$ac_exeext conftest.$ac_ext
16576 esac
16579 enable_linux_futex=no
16581 esac
16582 if test x$enable_linux_futex = xyes; then
16587 # See if we support thread-local storage.
16590 # Check whether --enable-tls was given.
16591 if test "${enable_tls+set}" = set; then :
16592 enableval=$enable_tls;
16593 case "$enableval" in
16594 yes|no) ;;
16595 *) as_fn_error $? "Argument to enable/disable tls must be yes or no" "$LINENO" 5 ;;
16596 esac
16598 else
16599 enable_tls=yes
16603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports thread-local storage" >&5
16604 $as_echo_n "checking whether the target supports thread-local storage... " >&6; }
16605 if ${gcc_cv_have_tls+:} false; then :
16606 $as_echo_n "(cached) " >&6
16607 else
16609 if test "$cross_compiling" = yes; then :
16610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16611 /* end confdefs.h. */
16612 __thread int a; int b; int main() { return a = b; }
16613 _ACEOF
16614 if ac_fn_c_try_link "$LINENO"; then :
16615 chktls_save_LDFLAGS="$LDFLAGS"
16616 case $host in
16617 *-*-linux* | -*-uclinuxfdpic*)
16618 LDFLAGS="-shared -Wl,--no-undefined $LDFLAGS"
16620 esac
16621 chktls_save_CFLAGS="$CFLAGS"
16622 CFLAGS="-fPIC $CFLAGS"
16623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16624 /* end confdefs.h. */
16625 int f() { return 0; }
16626 _ACEOF
16627 if ac_fn_c_try_link "$LINENO"; then :
16628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16629 /* end confdefs.h. */
16630 __thread int a; int b; int f() { return a = b; }
16631 _ACEOF
16632 if ac_fn_c_try_link "$LINENO"; then :
16633 gcc_cv_have_tls=yes
16634 else
16635 gcc_cv_have_tls=no
16637 rm -f core conftest.err conftest.$ac_objext \
16638 conftest$ac_exeext conftest.$ac_ext
16639 else
16640 gcc_cv_have_tls=yes
16642 rm -f core conftest.err conftest.$ac_objext \
16643 conftest$ac_exeext conftest.$ac_ext
16644 CFLAGS="$chktls_save_CFLAGS"
16645 LDFLAGS="$chktls_save_LDFLAGS"
16646 else
16647 gcc_cv_have_tls=no
16649 rm -f core conftest.err conftest.$ac_objext \
16650 conftest$ac_exeext conftest.$ac_ext
16653 else
16654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16655 /* end confdefs.h. */
16656 __thread int a; int b; int main() { return a = b; }
16657 _ACEOF
16658 if ac_fn_c_try_run "$LINENO"; then :
16659 chktls_save_LDFLAGS="$LDFLAGS"
16660 LDFLAGS="-static $LDFLAGS"
16661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16662 /* end confdefs.h. */
16663 int main() { return 0; }
16664 _ACEOF
16665 if ac_fn_c_try_link "$LINENO"; then :
16666 if test "$cross_compiling" = yes; then :
16667 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16668 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16669 as_fn_error $? "cannot run test program while cross compiling
16670 See \`config.log' for more details" "$LINENO" 5; }
16671 else
16672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16673 /* end confdefs.h. */
16674 __thread int a; int b; int main() { return a = b; }
16675 _ACEOF
16676 if ac_fn_c_try_run "$LINENO"; then :
16677 gcc_cv_have_tls=yes
16678 else
16679 gcc_cv_have_tls=no
16681 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16682 conftest.$ac_objext conftest.beam conftest.$ac_ext
16685 else
16686 gcc_cv_have_tls=yes
16688 rm -f core conftest.err conftest.$ac_objext \
16689 conftest$ac_exeext conftest.$ac_ext
16690 LDFLAGS="$chktls_save_LDFLAGS"
16691 if test $gcc_cv_have_tls = yes; then
16692 chktls_save_CFLAGS="$CFLAGS"
16693 thread_CFLAGS=failed
16694 for flag in '' '-pthread' '-lpthread'; do
16695 CFLAGS="$flag $chktls_save_CFLAGS"
16696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16697 /* end confdefs.h. */
16698 #include <pthread.h>
16699 void *g(void *d) { return NULL; }
16701 main ()
16703 pthread_t t; pthread_create(&t,NULL,g,NULL);
16705 return 0;
16707 _ACEOF
16708 if ac_fn_c_try_link "$LINENO"; then :
16709 thread_CFLAGS="$flag"
16711 rm -f core conftest.err conftest.$ac_objext \
16712 conftest$ac_exeext conftest.$ac_ext
16713 if test "X$thread_CFLAGS" != Xfailed; then
16714 break
16716 done
16717 CFLAGS="$chktls_save_CFLAGS"
16718 if test "X$thread_CFLAGS" != Xfailed; then
16719 CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS"
16720 if test "$cross_compiling" = yes; then :
16721 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16722 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16723 as_fn_error $? "cannot run test program while cross compiling
16724 See \`config.log' for more details" "$LINENO" 5; }
16725 else
16726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16727 /* end confdefs.h. */
16728 #include <pthread.h>
16729 __thread int a;
16730 static int *volatile a_in_other_thread;
16731 static void *
16732 thread_func (void *arg)
16734 a_in_other_thread = &a;
16735 return (void *)0;
16738 main ()
16740 pthread_t thread;
16741 void *thread_retval;
16742 int *volatile a_in_main_thread;
16743 a_in_main_thread = &a;
16744 if (pthread_create (&thread, (pthread_attr_t *)0,
16745 thread_func, (void *)0))
16746 return 0;
16747 if (pthread_join (thread, &thread_retval))
16748 return 0;
16749 return (a_in_other_thread == a_in_main_thread);
16751 return 0;
16753 _ACEOF
16754 if ac_fn_c_try_run "$LINENO"; then :
16755 gcc_cv_have_tls=yes
16756 else
16757 gcc_cv_have_tls=no
16759 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16760 conftest.$ac_objext conftest.beam conftest.$ac_ext
16763 CFLAGS="$chktls_save_CFLAGS"
16766 else
16767 gcc_cv_have_tls=no
16769 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16770 conftest.$ac_objext conftest.beam conftest.$ac_ext
16774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_have_tls" >&5
16775 $as_echo "$gcc_cv_have_tls" >&6; }
16776 if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then
16778 $as_echo "#define HAVE_TLS 1" >>confdefs.h
16782 # See what sort of export controls are available.
16784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports hidden visibility" >&5
16785 $as_echo_n "checking whether the target supports hidden visibility... " >&6; }
16786 if ${libitm_cv_have_attribute_visibility+:} false; then :
16787 $as_echo_n "(cached) " >&6
16788 else
16790 save_CFLAGS="$CFLAGS"
16791 CFLAGS="$CFLAGS -Werror"
16792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16793 /* end confdefs.h. */
16794 void __attribute__((visibility("hidden"))) foo(void) { }
16796 main ()
16800 return 0;
16802 _ACEOF
16803 if ac_fn_c_try_compile "$LINENO"; then :
16804 libitm_cv_have_attribute_visibility=yes
16805 else
16806 libitm_cv_have_attribute_visibility=no
16808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16809 CFLAGS="$save_CFLAGS"
16811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_have_attribute_visibility" >&5
16812 $as_echo "$libitm_cv_have_attribute_visibility" >&6; }
16813 if test $libitm_cv_have_attribute_visibility = yes; then
16815 $as_echo "#define HAVE_ATTRIBUTE_VISIBILITY 1" >>confdefs.h
16819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports dllexport" >&5
16820 $as_echo_n "checking whether the target supports dllexport... " >&6; }
16821 if ${libitm_cv_have_attribute_dllexport+:} false; then :
16822 $as_echo_n "(cached) " >&6
16823 else
16825 save_CFLAGS="$CFLAGS"
16826 CFLAGS="$CFLAGS -Werror"
16827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16828 /* end confdefs.h. */
16829 void __attribute__((dllexport)) foo(void) { }
16831 main ()
16835 return 0;
16837 _ACEOF
16838 if ac_fn_c_try_compile "$LINENO"; then :
16839 libitm_cv_have_attribute_dllexport=yes
16840 else
16841 libitm_cv_have_attribute_dllexport=no
16843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16844 CFLAGS="$save_CFLAGS"
16846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_have_attribute_dllexport" >&5
16847 $as_echo "$libitm_cv_have_attribute_dllexport" >&6; }
16848 if test $libitm_cv_have_attribute_dllexport = yes; then
16850 $as_echo "#define HAVE_ATTRIBUTE_DLLEXPORT 1" >>confdefs.h
16854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports symbol aliases" >&5
16855 $as_echo_n "checking whether the target supports symbol aliases... " >&6; }
16856 if ${libitm_cv_have_attribute_alias+:} false; then :
16857 $as_echo_n "(cached) " >&6
16858 else
16860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16861 /* end confdefs.h. */
16863 void foo(void) { }
16864 extern void bar(void) __attribute__((alias("foo")));
16866 main ()
16868 bar();
16870 return 0;
16872 _ACEOF
16873 if ac_fn_c_try_link "$LINENO"; then :
16874 libitm_cv_have_attribute_alias=yes
16875 else
16876 libitm_cv_have_attribute_alias=no
16878 rm -f core conftest.err conftest.$ac_objext \
16879 conftest$ac_exeext conftest.$ac_ext
16881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_have_attribute_alias" >&5
16882 $as_echo "$libitm_cv_have_attribute_alias" >&6; }
16883 if test $libitm_cv_have_attribute_alias = yes; then
16885 $as_echo "#define HAVE_ATTRIBUTE_ALIAS 1" >>confdefs.h
16889 # Check linker hardware capability support.
16892 # Check whether --with-gnu-ld was given.
16893 if test "${with_gnu_ld+set}" = set; then :
16894 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16895 else
16896 with_gnu_ld=no
16899 ac_prog=ld
16900 if test "$GCC" = yes; then
16901 # Check if gcc -print-prog-name=ld gives a path.
16902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
16903 $as_echo_n "checking for ld used by $CC... " >&6; }
16904 case $host in
16905 *-*-mingw*)
16906 # gcc leaves a trailing carriage return which upsets mingw
16907 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16909 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16910 esac
16911 case $ac_prog in
16912 # Accept absolute paths.
16913 [\\/]* | ?:[\\/]*)
16914 re_direlt='/[^/][^/]*/\.\./'
16915 # Canonicalize the pathname of ld
16916 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
16917 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
16918 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
16919 done
16920 test -z "$LD" && LD="$ac_prog"
16923 # If it fails, then pretend we aren't using GCC.
16924 ac_prog=ld
16927 # If it is relative, then search for the first ld in PATH.
16928 with_gnu_ld=unknown
16930 esac
16931 elif test "$with_gnu_ld" = yes; then
16932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16933 $as_echo_n "checking for GNU ld... " >&6; }
16934 else
16935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16936 $as_echo_n "checking for non-GNU ld... " >&6; }
16938 if ${lt_cv_path_LD+:} false; then :
16939 $as_echo_n "(cached) " >&6
16940 else
16941 if test -z "$LD"; then
16942 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16943 for ac_dir in $PATH; do
16944 IFS="$lt_save_ifs"
16945 test -z "$ac_dir" && ac_dir=.
16946 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16947 lt_cv_path_LD="$ac_dir/$ac_prog"
16948 # Check to see if the program is GNU ld. I'd rather use --version,
16949 # but apparently some variants of GNU ld only accept -v.
16950 # Break only if it was the GNU/non-GNU ld that we prefer.
16951 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
16952 *GNU* | *'with BFD'*)
16953 test "$with_gnu_ld" != no && break
16956 test "$with_gnu_ld" != yes && break
16958 esac
16960 done
16961 IFS="$lt_save_ifs"
16962 else
16963 lt_cv_path_LD="$LD" # Let the user override the test with a path.
16967 LD="$lt_cv_path_LD"
16968 if test -n "$LD"; then
16969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16970 $as_echo "$LD" >&6; }
16971 else
16972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16973 $as_echo "no" >&6; }
16975 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
16976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16977 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
16978 if ${lt_cv_prog_gnu_ld+:} false; then :
16979 $as_echo_n "(cached) " >&6
16980 else
16981 # I'd rather use --version here, but apparently some GNU lds only accept -v.
16982 case `$LD -v 2>&1 </dev/null` in
16983 *GNU* | *'with BFD'*)
16984 lt_cv_prog_gnu_ld=yes
16987 lt_cv_prog_gnu_ld=no
16989 esac
16991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
16992 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
16993 with_gnu_ld=$lt_cv_prog_gnu_ld
17001 test -z "$HWCAP_LDFLAGS" && HWCAP_LDFLAGS=''
17004 ac_save_LDFLAGS="$LDFLAGS"
17005 LDFLAGS="$LFLAGS -mclear-hwcap"
17007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -mclear-hwcap" >&5
17008 $as_echo_n "checking for -mclear-hwcap... " >&6; }
17009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17010 /* end confdefs.h. */
17013 main ()
17015 return 0;
17017 return 0;
17019 _ACEOF
17020 if ac_fn_c_try_link "$LINENO"; then :
17021 ac_hwcap_ldflags=yes
17022 else
17023 ac_hwcap_ldflags=no
17025 rm -f core conftest.err conftest.$ac_objext \
17026 conftest$ac_exeext conftest.$ac_ext
17027 if test "$ac_hwcap_ldflags" = "yes"; then
17028 HWCAP_LDFLAGS="-mclear-hwcap $HWCAP_LDFLAGS"
17030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_hwcap_ldflags" >&5
17031 $as_echo "$ac_hwcap_ldflags" >&6; }
17033 LDFLAGS="$ac_save_LDFLAGS"
17037 if test $ac_hwcap_ldflags != no; then
17038 HAVE_HWCAP_TRUE=
17039 HAVE_HWCAP_FALSE='#'
17040 else
17041 HAVE_HWCAP_TRUE='#'
17042 HAVE_HWCAP_FALSE=
17046 # If defaulting to -mavx, don't clear hwcaps.
17047 ac_fn_c_check_decl "$LINENO" "__AVX__" "ac_cv_have_decl___AVX__" "$ac_includes_default"
17048 if test "x$ac_cv_have_decl___AVX__" = xyes; then :
17049 HWCAP_LDFLAGS=''
17054 # If we're not using GNU ld, then there's no point in even trying these
17055 # tests. Check for that first. We should have already tested for gld
17056 # by now (in libtool), but require it now just to be safe...
17057 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
17058 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
17062 # The name set by libtool depends on the version of libtool. Shame on us
17063 # for depending on an impl detail, but c'est la vie. Older versions used
17064 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
17065 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
17066 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
17067 # set (hence we're using an older libtool), then set it.
17068 if test x${with_gnu_ld+set} != xset; then
17069 if test x${ac_cv_prog_gnu_ld+set} != xset; then
17070 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
17071 with_gnu_ld=no
17072 else
17073 with_gnu_ld=$ac_cv_prog_gnu_ld
17077 # Start by getting the version number. I think the libtool test already
17078 # does some of this, but throws away the result.
17079 libitm_ld_is_gold=no
17080 libitm_ld_is_mold=no
17081 if $LD --version 2>/dev/null | grep 'GNU gold'> /dev/null 2>&1; then
17082 libitm_ld_is_gold=yes
17083 elif $LD --version 2>/dev/null | grep 'mold' >/dev/null 2>&1; then
17084 libitm_ld_is_mold=yes
17087 ldver=`$LD --version 2>/dev/null |
17088 sed -e 's/[. ][0-9]\{8\}$//;s/.* \([^ ]\{1,\}\)$/\1/; q'`
17090 libitm_gnu_ld_version=`echo $ldver | \
17091 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
17093 # Set --gc-sections.
17094 if test "$with_gnu_ld" = "notbroken"; then
17095 # GNU ld it is! Joy and bunny rabbits!
17097 # All these tests are for C++; save the language and the compiler flags.
17098 # Need to do this so that g++ won't try to link in libstdc++
17099 ac_test_CFLAGS="${CFLAGS+set}"
17100 ac_save_CFLAGS="$CFLAGS"
17101 CFLAGS='-x c++ -Wl,--gc-sections'
17103 # Check for -Wl,--gc-sections
17104 # XXX This test is broken at the moment, as symbols required for linking
17105 # are now in libsupc++ (not built yet). In addition, this test has
17106 # cored on solaris in the past. In addition, --gc-sections doesn't
17107 # really work at the moment (keeps on discarding used sections, first
17108 # .eh_frame and now some of the glibc sections for iconv).
17109 # Bzzzzt. Thanks for playing, maybe next time.
17110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,--gc-sections" >&5
17111 $as_echo_n "checking for ld that supports -Wl,--gc-sections... " >&6; }
17112 if test "$cross_compiling" = yes; then :
17113 ac_sectionLDflags=yes
17114 else
17115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17116 /* end confdefs.h. */
17118 int main(void)
17120 try { throw 1; }
17121 catch (...) { };
17122 return 0;
17125 _ACEOF
17126 if ac_fn_c_try_run "$LINENO"; then :
17127 ac_sectionLDflags=yes
17128 else
17129 ac_sectionLDflags=no
17131 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17132 conftest.$ac_objext conftest.beam conftest.$ac_ext
17135 if test "$ac_test_CFLAGS" = set; then
17136 CFLAGS="$ac_save_CFLAGS"
17137 else
17138 # this is the suspicious part
17139 CFLAGS=''
17141 if test "$ac_sectionLDflags" = "yes"; then
17142 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
17144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_sectionLDflags" >&5
17145 $as_echo "$ac_sectionLDflags" >&6; }
17148 # Set linker optimization flags.
17149 if test x"$with_gnu_ld" = x"yes"; then
17150 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
17158 # Check whether --enable-symvers was given.
17159 if test "${enable_symvers+set}" = set; then :
17160 enableval=$enable_symvers;
17161 case "$enableval" in
17162 yes|no|gnu*|sun) ;;
17163 *) as_fn_error $? "Unknown argument to enable/disable symvers" "$LINENO" 5 ;;
17164 esac
17166 else
17167 enable_symvers=yes
17172 # If we never went through the LIBITM_CHECK_LINKER_FEATURES macro, then we
17173 # don't know enough about $LD to do tricks...
17176 # Turn a 'yes' into a suitable default.
17177 if test x$enable_symvers = xyes ; then
17178 # FIXME The following test is too strict, in theory.
17179 if test $enable_shared = no || test "x$LD" = x; then
17180 enable_symvers=no
17181 else
17182 if test $with_gnu_ld = yes ; then
17183 enable_symvers=gnu
17184 else
17185 case ${target_os} in
17186 # Sun symbol versioning exists since Solaris 2.5.
17187 solaris2.[5-9]* | solaris2.1[0-9]*)
17188 enable_symvers=sun ;;
17190 enable_symvers=no ;;
17191 esac
17196 # Check if 'sun' was requested on non-Solaris 2 platforms.
17197 if test x$enable_symvers = xsun ; then
17198 case ${target_os} in
17199 solaris2*)
17200 # All fine.
17203 # Unlikely to work.
17204 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested Sun symbol versioning, but" >&5
17205 $as_echo "$as_me: WARNING: === You have requested Sun symbol versioning, but" >&2;}
17206 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === you are not targetting Solaris 2." >&5
17207 $as_echo "$as_me: WARNING: === you are not targetting Solaris 2." >&2;}
17208 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
17209 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
17210 enable_symvers=no
17212 esac
17215 # Check to see if libgcc_s exists, indicating that shared libgcc is possible.
17216 if test $enable_symvers != no; then
17217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared libgcc" >&5
17218 $as_echo_n "checking for shared libgcc... " >&6; }
17219 ac_save_CFLAGS="$CFLAGS"
17220 CFLAGS=' -lgcc_s'
17221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17222 /* end confdefs.h. */
17225 main ()
17227 return 0;
17229 return 0;
17231 _ACEOF
17232 if ac_fn_c_try_link "$LINENO"; then :
17233 libitm_shared_libgcc=yes
17234 else
17235 libitm_shared_libgcc=no
17237 rm -f core conftest.err conftest.$ac_objext \
17238 conftest$ac_exeext conftest.$ac_ext
17239 CFLAGS="$ac_save_CFLAGS"
17240 if test $libitm_shared_libgcc = no; then
17241 cat > conftest.c <<EOF
17242 int main (void) { return 0; }
17244 libitm_libgcc_s_suffix=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
17245 -shared -shared-libgcc -o conftest.so \
17246 conftest.c -v 2>&1 >/dev/null \
17247 | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'`
17248 rm -f conftest.c conftest.so
17249 if test x${libitm_libgcc_s_suffix+set} = xset; then
17250 CFLAGS=" -lgcc_s$libitm_libgcc_s_suffix"
17251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17252 /* end confdefs.h. */
17255 main ()
17257 return 0;
17259 return 0;
17261 _ACEOF
17262 if ac_fn_c_try_link "$LINENO"; then :
17263 libitm_shared_libgcc=yes
17265 rm -f core conftest.err conftest.$ac_objext \
17266 conftest$ac_exeext conftest.$ac_ext
17267 CFLAGS="$ac_save_CFLAGS"
17270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_shared_libgcc" >&5
17271 $as_echo "$libitm_shared_libgcc" >&6; }
17274 # For GNU ld, we need at least this version. The format is described in
17275 # LIBITM_CHECK_LINKER_FEATURES above.
17276 libitm_min_gnu_ld_version=21400
17277 # XXXXXXXXXXX libitm_gnu_ld_version=21390
17279 # Check to see if unspecified "yes" value can win, given results above.
17280 # Change "yes" into either "no" or a style name.
17281 if test $enable_symvers != no && test $libitm_shared_libgcc = yes; then
17282 if test $with_gnu_ld = yes; then
17283 if test $libitm_gnu_ld_version -ge $libitm_min_gnu_ld_version ; then
17284 enable_symvers=gnu
17285 elif test $libitm_ld_is_gold = yes ; then
17286 enable_symvers=gnu
17287 elif test $libitm_ld_is_mold = yes ; then
17288 enable_symvers=gnu
17289 else
17290 # The right tools, the right setup, but too old. Fallbacks?
17291 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Linker version $libitm_gnu_ld_version is too old for" >&5
17292 $as_echo "$as_me: WARNING: === Linker version $libitm_gnu_ld_version is too old for" >&2;}
17293 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === full symbol versioning support in this release of GCC." >&5
17294 $as_echo "$as_me: WARNING: === full symbol versioning support in this release of GCC." >&2;}
17295 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You would need to upgrade your binutils to version" >&5
17296 $as_echo "$as_me: WARNING: === You would need to upgrade your binutils to version" >&2;}
17297 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === $libitm_min_gnu_ld_version or later and rebuild GCC." >&5
17298 $as_echo "$as_me: WARNING: === $libitm_min_gnu_ld_version or later and rebuild GCC." >&2;}
17299 if test $libitm_gnu_ld_version -ge 21200 ; then
17300 # Globbing fix is present, proper block support is not.
17301 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
17302 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
17303 enable_symvers=no
17304 else
17305 # 2.11 or older.
17306 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
17307 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
17308 enable_symvers=no
17311 elif test $enable_symvers = sun; then
17312 : All interesting versions of Sun ld support sun style symbol versioning.
17313 else
17314 # just fail for now
17315 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested some kind of symbol versioning, but" >&5
17316 $as_echo "$as_me: WARNING: === You have requested some kind of symbol versioning, but" >&2;}
17317 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === either you are not using a supported linker, or you are" >&5
17318 $as_echo "$as_me: WARNING: === either you are not using a supported linker, or you are" >&2;}
17319 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === not building a shared libgcc_s (which is required)." >&5
17320 $as_echo "$as_me: WARNING: === not building a shared libgcc_s (which is required)." >&2;}
17321 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
17322 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
17323 enable_symvers=no
17327 if test $enable_symvers != no; then
17328 LIBITM_BUILD_VERSIONED_SHLIB_TRUE=
17329 LIBITM_BUILD_VERSIONED_SHLIB_FALSE='#'
17330 else
17331 LIBITM_BUILD_VERSIONED_SHLIB_TRUE='#'
17332 LIBITM_BUILD_VERSIONED_SHLIB_FALSE=
17335 if test $enable_symvers = gnu; then
17336 LIBITM_BUILD_VERSIONED_SHLIB_GNU_TRUE=
17337 LIBITM_BUILD_VERSIONED_SHLIB_GNU_FALSE='#'
17338 else
17339 LIBITM_BUILD_VERSIONED_SHLIB_GNU_TRUE='#'
17340 LIBITM_BUILD_VERSIONED_SHLIB_GNU_FALSE=
17343 if test $enable_symvers = sun; then
17344 LIBITM_BUILD_VERSIONED_SHLIB_SUN_TRUE=
17345 LIBITM_BUILD_VERSIONED_SHLIB_SUN_FALSE='#'
17346 else
17347 LIBITM_BUILD_VERSIONED_SHLIB_SUN_TRUE='#'
17348 LIBITM_BUILD_VERSIONED_SHLIB_SUN_FALSE=
17351 { $as_echo "$as_me:${as_lineno-$LINENO}: versioning on shared library symbols is $enable_symvers" >&5
17352 $as_echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;}
17354 if test $enable_symvers = gnu; then
17356 $as_echo "#define LIBITM_GNU_SYMBOL_VERSIONING 1" >>confdefs.h
17360 # See if we can emit unwind info in the sjlj stub.
17361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .cfi pseudo-op support" >&5
17362 $as_echo_n "checking assembler .cfi pseudo-op support... " >&6; }
17363 if ${gcc_cv_as_cfi_pseudo_op+:} false; then :
17364 $as_echo_n "(cached) " >&6
17365 else
17367 gcc_cv_as_cfi_pseudo_op=unknown
17368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17369 /* end confdefs.h. */
17370 asm (".cfi_startproc\n\t.cfi_endproc");
17372 main ()
17376 return 0;
17378 _ACEOF
17379 if ac_fn_c_try_compile "$LINENO"; then :
17380 gcc_cv_as_cfi_pseudo_op=yes
17381 else
17382 gcc_cv_as_cfi_pseudo_op=no
17384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_pseudo_op" >&5
17388 $as_echo "$gcc_cv_as_cfi_pseudo_op" >&6; }
17389 if test "x$gcc_cv_as_cfi_pseudo_op" = xyes; then
17391 $as_echo "#define HAVE_AS_CFI_PSEUDO_OP 1" >>confdefs.h
17396 # Determine the proper ABI type for size_t.
17398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how size_t is mangled" >&5
17399 $as_echo_n "checking how size_t is mangled... " >&6; }
17400 if ${libitm_cv_size_t_mangling+:} false; then :
17401 $as_echo_n "(cached) " >&6
17402 else
17404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17405 /* end confdefs.h. */
17408 main ()
17410 extern __SIZE_TYPE__ x; extern unsigned long x;
17412 return 0;
17414 _ACEOF
17415 if ac_fn_c_try_compile "$LINENO"; then :
17416 libitm_cv_size_t_mangling=m
17417 else
17419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17420 /* end confdefs.h. */
17423 main ()
17425 extern __SIZE_TYPE__ x; extern unsigned int x;
17427 return 0;
17429 _ACEOF
17430 if ac_fn_c_try_compile "$LINENO"; then :
17431 libitm_cv_size_t_mangling=j
17432 else
17434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17435 /* end confdefs.h. */
17438 main ()
17440 extern __SIZE_TYPE__ x; extern unsigned long long x;
17442 return 0;
17444 _ACEOF
17445 if ac_fn_c_try_compile "$LINENO"; then :
17446 libitm_cv_size_t_mangling=y
17447 else
17449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17450 /* end confdefs.h. */
17453 main ()
17455 extern __SIZE_TYPE__ x; extern unsigned short x;
17457 return 0;
17459 _ACEOF
17460 if ac_fn_c_try_compile "$LINENO"; then :
17461 libitm_cv_size_t_mangling=t
17462 else
17463 libitm_cv_size_t_mangling=x
17465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_size_t_mangling" >&5
17478 $as_echo "$libitm_cv_size_t_mangling" >&6; }
17479 if test $libitm_cv_size_t_mangling = x; then
17480 as_fn_error $? "Unknown underlying type for size_t" "$LINENO" 5
17483 cat >>confdefs.h <<_ACEOF
17484 #define MANGLE_SIZE_T $libitm_cv_size_t_mangling
17485 _ACEOF
17489 # Get target configury.
17490 . ${srcdir}/configure.tgt
17491 if test -n "$UNSUPPORTED"; then
17492 as_fn_error $? "Configuration ${target} is unsupported." "$LINENO" 5
17495 CFLAGS="$save_CFLAGS $XCFLAGS"
17497 # Check for __sync_val_compare_and_swap, but only after the target has
17498 # had a chance to set XCFLAGS.
17500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __sync_*_compare_and_swap" >&5
17501 $as_echo_n "checking whether the target supports __sync_*_compare_and_swap... " >&6; }
17502 if ${libitm_cv_have_sync_builtins+:} false; then :
17503 $as_echo_n "(cached) " >&6
17504 else
17506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17507 /* end confdefs.h. */
17510 main ()
17512 int foo, bar; bar = __sync_val_compare_and_swap(&foo, 0, 1);
17514 return 0;
17516 _ACEOF
17517 if ac_fn_c_try_link "$LINENO"; then :
17518 libitm_cv_have_sync_builtins=yes
17519 else
17520 libitm_cv_have_sync_builtins=no
17522 rm -f core conftest.err conftest.$ac_objext \
17523 conftest$ac_exeext conftest.$ac_ext
17525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_have_sync_builtins" >&5
17526 $as_echo "$libitm_cv_have_sync_builtins" >&6; }
17527 if test $libitm_cv_have_sync_builtins = yes; then
17529 $as_echo "#define HAVE_SYNC_BUILTINS 1" >>confdefs.h
17533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports 64-bit __sync_*_compare_and_swap" >&5
17534 $as_echo_n "checking whether the target supports 64-bit __sync_*_compare_and_swap... " >&6; }
17535 if ${libitm_cv_have_64bit_sync_builtins+:} false; then :
17536 $as_echo_n "(cached) " >&6
17537 else
17539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17540 /* end confdefs.h. */
17541 #include <stdint.h>
17543 main ()
17545 uint64_t foo, bar;
17546 bar = __sync_val_compare_and_swap(&foo, 0, 1);
17548 return 0;
17550 _ACEOF
17551 if ac_fn_c_try_link "$LINENO"; then :
17552 libitm_cv_have_64bit_sync_builtins=yes
17553 else
17554 libitm_cv_have_64bit_sync_builtins=no
17556 rm -f core conftest.err conftest.$ac_objext \
17557 conftest$ac_exeext conftest.$ac_ext
17559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_have_64bit_sync_builtins" >&5
17560 $as_echo "$libitm_cv_have_64bit_sync_builtins" >&6; }
17561 if test $libitm_cv_have_64bit_sync_builtins = yes; then
17563 $as_echo "#define HAVE_64BIT_SYNC_BUILTINS 1" >>confdefs.h
17567 case "${target_cpu}" in
17568 i[34567]86 | x86_64)
17569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the assembler supports AVX" >&5
17570 $as_echo_n "checking if the assembler supports AVX... " >&6; }
17571 if ${libitm_cv_as_avx+:} false; then :
17572 $as_echo_n "(cached) " >&6
17573 else
17575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17576 /* end confdefs.h. */
17579 main ()
17581 asm("vzeroupper");
17583 return 0;
17585 _ACEOF
17586 if ac_fn_c_try_compile "$LINENO"; then :
17587 libitm_cv_as_avx=yes
17588 else
17589 libitm_cv_as_avx=no
17591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_as_avx" >&5
17595 $as_echo "$libitm_cv_as_avx" >&6; }
17596 if test x$libitm_cv_as_avx = xyes; then
17598 $as_echo "#define HAVE_AS_AVX 1" >>confdefs.h
17602 esac
17604 case "${target_cpu}" in
17605 i[34567]86 | x86_64)
17606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the assembler supports RTM" >&5
17607 $as_echo_n "checking if the assembler supports RTM... " >&6; }
17608 if ${libitm_cv_as_rtm+:} false; then :
17609 $as_echo_n "(cached) " >&6
17610 else
17612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17613 /* end confdefs.h. */
17616 main ()
17618 asm("1: xbegin 1b; xend");
17620 return 0;
17622 _ACEOF
17623 if ac_fn_c_try_compile "$LINENO"; then :
17624 libitm_cv_as_rtm=yes
17625 else
17626 libitm_cv_as_rtm=no
17628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_as_rtm" >&5
17632 $as_echo "$libitm_cv_as_rtm" >&6; }
17633 if test x$libitm_cv_as_rtm = xyes; then
17635 $as_echo "#define HAVE_AS_RTM 1" >>confdefs.h
17639 esac
17641 case "${target_cpu}" in
17642 powerpc*)
17643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the assembler supports HTM" >&5
17644 $as_echo_n "checking if the assembler supports HTM... " >&6; }
17645 if ${libitm_cv_as_htm+:} false; then :
17646 $as_echo_n "(cached) " >&6
17647 else
17649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17650 /* end confdefs.h. */
17653 main ()
17655 asm("tbegin. 0; tend. 0");
17657 return 0;
17659 _ACEOF
17660 if ac_fn_c_try_compile "$LINENO"; then :
17661 libitm_cv_as_htm=yes
17662 else
17663 libitm_cv_as_htm=no
17665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_as_htm" >&5
17669 $as_echo "$libitm_cv_as_htm" >&6; }
17670 if test x$libitm_cv_as_htm = xyes; then
17672 $as_echo "#define HAVE_AS_HTM 1" >>confdefs.h
17676 s390*)
17677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the assembler supports HTM" >&5
17678 $as_echo_n "checking if the assembler supports HTM... " >&6; }
17679 if ${libitm_cv_as_htm+:} false; then :
17680 $as_echo_n "(cached) " >&6
17681 else
17683 save_CFLAGS="$CFLAGS"
17684 CFLAGS="$CFLAGS -march=zEC12"
17685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17686 /* end confdefs.h. */
17689 main ()
17691 asm("tbegin 0,0; tend");
17693 return 0;
17695 _ACEOF
17696 if ac_fn_c_try_compile "$LINENO"; then :
17697 libitm_cv_as_htm=yes
17698 else
17699 libitm_cv_as_htm=no
17701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17702 CFLAGS="$save_CFLAGS"
17704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_as_htm" >&5
17705 $as_echo "$libitm_cv_as_htm" >&6; }
17706 if test x$libitm_cv_as_htm = xyes; then
17708 $as_echo "#define HAVE_AS_HTM 1" >>confdefs.h
17712 esac
17715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether weak refs work like ELF" >&5
17716 $as_echo_n "checking whether weak refs work like ELF... " >&6; }
17717 if ${ac_cv_have_elf_style_weakref+:} false; then :
17718 $as_echo_n "(cached) " >&6
17719 else
17721 weakref_m4_saved_CFLAGS="$CFLAGS"
17722 case "${host}" in
17723 *-apple-darwin*) CFLAGS="$CFLAGS -Wl,-undefined,dynamic_lookup" ;;
17724 *) ;;
17725 esac
17726 if test "$cross_compiling" = yes; then :
17728 case "${host}" in
17729 *-apple-darwin[89]*) ac_cv_have_elf_style_weakref=no ;;
17730 *) ac_cv_have_elf_style_weakref=yes;;
17731 esac
17732 else
17733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17734 /* end confdefs.h. */
17736 extern void fNotToBeFound(void) __attribute__((weak));
17737 int main ()
17739 if (fNotToBeFound)
17740 return 1;
17741 else
17742 return 0;
17745 _ACEOF
17746 if ac_fn_c_try_run "$LINENO"; then :
17747 ac_cv_have_elf_style_weakref=yes
17748 else
17749 ac_cv_have_elf_style_weakref=no
17751 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17752 conftest.$ac_objext conftest.beam conftest.$ac_ext
17754 CFLAGS="$weakref_m4_saved_CFLAGS"
17756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_elf_style_weakref" >&5
17757 $as_echo "$ac_cv_have_elf_style_weakref" >&6; }
17758 if test x"$ac_cv_have_elf_style_weakref" = xyes; then
17760 $as_echo "#define HAVE_ELF_STYLE_WEAKREF 1" >>confdefs.h
17764 # Cleanup and exit.
17765 CFLAGS="$save_CFLAGS"
17766 cat >confcache <<\_ACEOF
17767 # This file is a shell script that caches the results of configure
17768 # tests run on this system so they can be shared between configure
17769 # scripts and configure runs, see configure's option --config-cache.
17770 # It is not useful on other systems. If it contains results you don't
17771 # want to keep, you may remove or edit it.
17773 # config.status only pays attention to the cache file if you give it
17774 # the --recheck option to rerun configure.
17776 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17777 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17778 # following values.
17780 _ACEOF
17782 # The following way of writing the cache mishandles newlines in values,
17783 # but we know of no workaround that is simple, portable, and efficient.
17784 # So, we kill variables containing newlines.
17785 # Ultrix sh set writes to stderr and can't be redirected directly,
17786 # and sets the high bit in the cache file unless we assign to the vars.
17788 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17789 eval ac_val=\$$ac_var
17790 case $ac_val in #(
17791 *${as_nl}*)
17792 case $ac_var in #(
17793 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17794 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17795 esac
17796 case $ac_var in #(
17797 _ | IFS | as_nl) ;; #(
17798 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17799 *) { eval $ac_var=; unset $ac_var;} ;;
17800 esac ;;
17801 esac
17802 done
17804 (set) 2>&1 |
17805 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17806 *${as_nl}ac_space=\ *)
17807 # `set' does not quote correctly, so add quotes: double-quote
17808 # substitution turns \\\\ into \\, and sed turns \\ into \.
17809 sed -n \
17810 "s/'/'\\\\''/g;
17811 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17812 ;; #(
17814 # `set' quotes correctly as required by POSIX, so do not add quotes.
17815 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17817 esac |
17818 sort
17820 sed '
17821 /^ac_cv_env_/b end
17822 t clear
17823 :clear
17824 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17825 t end
17826 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17827 :end' >>confcache
17828 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17829 if test -w "$cache_file"; then
17830 if test "x$cache_file" != "x/dev/null"; then
17831 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17832 $as_echo "$as_me: updating cache $cache_file" >&6;}
17833 if test ! -f "$cache_file" || test -h "$cache_file"; then
17834 cat confcache >"$cache_file"
17835 else
17836 case $cache_file in #(
17837 */* | ?:*)
17838 mv -f confcache "$cache_file"$$ &&
17839 mv -f "$cache_file"$$ "$cache_file" ;; #(
17841 mv -f confcache "$cache_file" ;;
17842 esac
17845 else
17846 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17847 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17850 rm -f confcache
17852 # Check whether --enable-werror was given.
17853 if test "${enable_werror+set}" = set; then :
17854 enableval=$enable_werror;
17857 # Add -Wall -Werror if we are using GCC.
17858 if test "x$GCC" = "xyes"; then :
17859 XCFLAGS="$XCFLAGS -Wall"
17861 if test "x$enable_werror" != "xno" && test "x$GCC" = "xyes"; then :
17862 XCFLAGS="$XCFLAGS -Werror"
17865 XCFLAGS="$XCFLAGS $XPCFLAGS"
17867 # Add CET specific flags if CET is enabled
17868 # Check whether --enable-cet was given.
17869 if test "${enable_cet+set}" = set; then :
17870 enableval=$enable_cet;
17871 case "$enableval" in
17872 yes|no|auto) ;;
17873 *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
17874 esac
17876 else
17877 enable_cet=auto
17881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
17882 $as_echo_n "checking for CET support... " >&6; }
17884 # NB: Avoid nested save_CFLAGS and save_LDFLAGS.
17885 case "$host" in
17886 i[34567]86-*-linux* | x86_64-*-linux*)
17887 case "$enable_cet" in
17888 auto)
17889 # Check if target supports multi-byte NOPs
17890 # and if compiler and assembler support CET insn.
17891 cet_save_CFLAGS="$CFLAGS"
17892 CFLAGS="$CFLAGS -fcf-protection"
17893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17894 /* end confdefs.h. */
17897 main ()
17900 #if !defined(__SSE2__)
17901 #error target does not support multi-byte NOPs
17902 #else
17903 asm ("setssbsy");
17904 #endif
17907 return 0;
17909 _ACEOF
17910 if ac_fn_c_try_compile "$LINENO"; then :
17911 enable_cet=yes
17912 else
17913 enable_cet=no
17915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17916 CFLAGS="$cet_save_CFLAGS"
17918 yes)
17919 # Check if assembler supports CET.
17920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17921 /* end confdefs.h. */
17924 main ()
17926 asm ("setssbsy");
17928 return 0;
17930 _ACEOF
17931 if ac_fn_c_try_compile "$LINENO"; then :
17933 else
17934 as_fn_error $? "assembler with CET support is required for --enable-cet" "$LINENO" 5
17936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17938 esac
17941 enable_cet=no
17943 esac
17944 if test x$enable_cet = xyes; then
17945 CET_FLAGS="-fcf-protection -mshstk"
17946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17947 $as_echo "yes" >&6; }
17948 else
17949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17950 $as_echo "no" >&6; }
17953 XCFLAGS="$XCFLAGS $CET_FLAGS"
17959 if test ${multilib} = yes; then
17960 multilib_arg="--enable-multilib"
17961 else
17962 multilib_arg=
17965 # Set up the set of libraries that we need to link against for libitm.
17966 # Note that the GTM_SELF_SPECS in gcc.c will force -pthread for -fgnu-tm,
17967 # which will force linkage against -lpthread (or equivalent for the system).
17968 # That's not 100% ideal, but about the best we can do easily.
17969 if test $enable_shared = yes; then
17970 link_itm="-litm %{static: $LIBS}"
17971 else
17972 link_itm="-litm $LIBS"
17976 if test "$ARCH" = arm; then
17977 ARCH_ARM_TRUE=
17978 ARCH_ARM_FALSE='#'
17979 else
17980 ARCH_ARM_TRUE='#'
17981 ARCH_ARM_FALSE=
17984 if test "$ARCH" = x86; then
17985 ARCH_X86_TRUE=
17986 ARCH_X86_FALSE='#'
17987 else
17988 ARCH_X86_TRUE='#'
17989 ARCH_X86_FALSE=
17992 if test "$libitm_cv_as_avx" = yes; then
17993 ARCH_X86_AVX_TRUE=
17994 ARCH_X86_AVX_FALSE='#'
17995 else
17996 ARCH_X86_AVX_TRUE='#'
17997 ARCH_X86_AVX_FALSE=
18000 if test $enable_linux_futex = yes; then
18001 ARCH_FUTEX_TRUE=
18002 ARCH_FUTEX_FALSE='#'
18003 else
18004 ARCH_FUTEX_TRUE='#'
18005 ARCH_FUTEX_FALSE=
18009 # Determine what GCC version number to use in filesystem paths.
18011 get_gcc_base_ver="cat"
18013 # Check whether --with-gcc-major-version-only was given.
18014 if test "${with_gcc_major_version_only+set}" = set; then :
18015 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
18016 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
18024 ac_config_files="$ac_config_files Makefile testsuite/Makefile libitm.spec"
18026 cat >confcache <<\_ACEOF
18027 # This file is a shell script that caches the results of configure
18028 # tests run on this system so they can be shared between configure
18029 # scripts and configure runs, see configure's option --config-cache.
18030 # It is not useful on other systems. If it contains results you don't
18031 # want to keep, you may remove or edit it.
18033 # config.status only pays attention to the cache file if you give it
18034 # the --recheck option to rerun configure.
18036 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18037 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18038 # following values.
18040 _ACEOF
18042 # The following way of writing the cache mishandles newlines in values,
18043 # but we know of no workaround that is simple, portable, and efficient.
18044 # So, we kill variables containing newlines.
18045 # Ultrix sh set writes to stderr and can't be redirected directly,
18046 # and sets the high bit in the cache file unless we assign to the vars.
18048 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18049 eval ac_val=\$$ac_var
18050 case $ac_val in #(
18051 *${as_nl}*)
18052 case $ac_var in #(
18053 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18054 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18055 esac
18056 case $ac_var in #(
18057 _ | IFS | as_nl) ;; #(
18058 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18059 *) { eval $ac_var=; unset $ac_var;} ;;
18060 esac ;;
18061 esac
18062 done
18064 (set) 2>&1 |
18065 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18066 *${as_nl}ac_space=\ *)
18067 # `set' does not quote correctly, so add quotes: double-quote
18068 # substitution turns \\\\ into \\, and sed turns \\ into \.
18069 sed -n \
18070 "s/'/'\\\\''/g;
18071 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18072 ;; #(
18074 # `set' quotes correctly as required by POSIX, so do not add quotes.
18075 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18077 esac |
18078 sort
18080 sed '
18081 /^ac_cv_env_/b end
18082 t clear
18083 :clear
18084 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18085 t end
18086 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18087 :end' >>confcache
18088 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18089 if test -w "$cache_file"; then
18090 if test "x$cache_file" != "x/dev/null"; then
18091 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18092 $as_echo "$as_me: updating cache $cache_file" >&6;}
18093 if test ! -f "$cache_file" || test -h "$cache_file"; then
18094 cat confcache >"$cache_file"
18095 else
18096 case $cache_file in #(
18097 */* | ?:*)
18098 mv -f confcache "$cache_file"$$ &&
18099 mv -f "$cache_file"$$ "$cache_file" ;; #(
18101 mv -f confcache "$cache_file" ;;
18102 esac
18105 else
18106 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18107 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18110 rm -f confcache
18112 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18113 # Let make expand exec_prefix.
18114 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18116 DEFS=-DHAVE_CONFIG_H
18118 ac_libobjs=
18119 ac_ltlibobjs=
18121 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18122 # 1. Remove the extension, and $U if already installed.
18123 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18124 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18125 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18126 # will be set to the directory where LIBOBJS objects are built.
18127 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18128 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18129 done
18130 LIBOBJS=$ac_libobjs
18132 LTLIBOBJS=$ac_ltlibobjs
18135 if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then
18136 as_fn_error $? "conditional \"GENINSRC\" was never defined.
18137 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
18140 $as_echo_n "checking that generated files are newer than configure... " >&6; }
18141 if test -n "$am_sleep_pid"; then
18142 # Hide warnings about reused PIDs.
18143 wait $am_sleep_pid 2>/dev/null
18145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
18146 $as_echo "done" >&6; }
18147 if test -n "$EXEEXT"; then
18148 am__EXEEXT_TRUE=
18149 am__EXEEXT_FALSE='#'
18150 else
18151 am__EXEEXT_TRUE='#'
18152 am__EXEEXT_FALSE=
18155 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18156 as_fn_error $? "conditional \"AMDEP\" was never defined.
18157 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18159 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18160 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18161 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18163 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
18164 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
18165 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18167 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
18168 as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
18169 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18171 if test -z "${BUILD_INFO_TRUE}" && test -z "${BUILD_INFO_FALSE}"; then
18172 as_fn_error $? "conditional \"BUILD_INFO\" was never defined.
18173 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18175 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
18176 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
18177 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18180 if test -z "${HAVE_HWCAP_TRUE}" && test -z "${HAVE_HWCAP_FALSE}"; then
18181 as_fn_error $? "conditional \"HAVE_HWCAP\" was never defined.
18182 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18184 if test -z "${LIBITM_BUILD_VERSIONED_SHLIB_TRUE}" && test -z "${LIBITM_BUILD_VERSIONED_SHLIB_FALSE}"; then
18185 as_fn_error $? "conditional \"LIBITM_BUILD_VERSIONED_SHLIB\" was never defined.
18186 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18188 if test -z "${LIBITM_BUILD_VERSIONED_SHLIB_GNU_TRUE}" && test -z "${LIBITM_BUILD_VERSIONED_SHLIB_GNU_FALSE}"; then
18189 as_fn_error $? "conditional \"LIBITM_BUILD_VERSIONED_SHLIB_GNU\" was never defined.
18190 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18192 if test -z "${LIBITM_BUILD_VERSIONED_SHLIB_SUN_TRUE}" && test -z "${LIBITM_BUILD_VERSIONED_SHLIB_SUN_FALSE}"; then
18193 as_fn_error $? "conditional \"LIBITM_BUILD_VERSIONED_SHLIB_SUN\" was never defined.
18194 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18196 if test -z "${ARCH_ARM_TRUE}" && test -z "${ARCH_ARM_FALSE}"; then
18197 as_fn_error $? "conditional \"ARCH_ARM\" was never defined.
18198 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18200 if test -z "${ARCH_X86_TRUE}" && test -z "${ARCH_X86_FALSE}"; then
18201 as_fn_error $? "conditional \"ARCH_X86\" was never defined.
18202 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18204 if test -z "${ARCH_X86_AVX_TRUE}" && test -z "${ARCH_X86_AVX_FALSE}"; then
18205 as_fn_error $? "conditional \"ARCH_X86_AVX\" was never defined.
18206 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18208 if test -z "${ARCH_FUTEX_TRUE}" && test -z "${ARCH_FUTEX_FALSE}"; then
18209 as_fn_error $? "conditional \"ARCH_FUTEX\" was never defined.
18210 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18213 : "${CONFIG_STATUS=./config.status}"
18214 ac_write_fail=0
18215 ac_clean_files_save=$ac_clean_files
18216 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18217 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18218 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18219 as_write_fail=0
18220 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18221 #! $SHELL
18222 # Generated by $as_me.
18223 # Run this file to recreate the current configuration.
18224 # Compiler output produced by configure, useful for debugging
18225 # configure, is in config.log if it exists.
18227 debug=false
18228 ac_cs_recheck=false
18229 ac_cs_silent=false
18231 SHELL=\${CONFIG_SHELL-$SHELL}
18232 export SHELL
18233 _ASEOF
18234 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18235 ## -------------------- ##
18236 ## M4sh Initialization. ##
18237 ## -------------------- ##
18239 # Be more Bourne compatible
18240 DUALCASE=1; export DUALCASE # for MKS sh
18241 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18242 emulate sh
18243 NULLCMD=:
18244 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18245 # is contrary to our usage. Disable this feature.
18246 alias -g '${1+"$@"}'='"$@"'
18247 setopt NO_GLOB_SUBST
18248 else
18249 case `(set -o) 2>/dev/null` in #(
18250 *posix*) :
18251 set -o posix ;; #(
18252 *) :
18254 esac
18258 as_nl='
18260 export as_nl
18261 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18262 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18263 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18264 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18265 # Prefer a ksh shell builtin over an external printf program on Solaris,
18266 # but without wasting forks for bash or zsh.
18267 if test -z "$BASH_VERSION$ZSH_VERSION" \
18268 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18269 as_echo='print -r --'
18270 as_echo_n='print -rn --'
18271 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18272 as_echo='printf %s\n'
18273 as_echo_n='printf %s'
18274 else
18275 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18276 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18277 as_echo_n='/usr/ucb/echo -n'
18278 else
18279 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18280 as_echo_n_body='eval
18281 arg=$1;
18282 case $arg in #(
18283 *"$as_nl"*)
18284 expr "X$arg" : "X\\(.*\\)$as_nl";
18285 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18286 esac;
18287 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18289 export as_echo_n_body
18290 as_echo_n='sh -c $as_echo_n_body as_echo'
18292 export as_echo_body
18293 as_echo='sh -c $as_echo_body as_echo'
18296 # The user is always right.
18297 if test "${PATH_SEPARATOR+set}" != set; then
18298 PATH_SEPARATOR=:
18299 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18300 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18301 PATH_SEPARATOR=';'
18306 # IFS
18307 # We need space, tab and new line, in precisely that order. Quoting is
18308 # there to prevent editors from complaining about space-tab.
18309 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18310 # splitting by setting IFS to empty value.)
18311 IFS=" "" $as_nl"
18313 # Find who we are. Look in the path if we contain no directory separator.
18314 as_myself=
18315 case $0 in #((
18316 *[\\/]* ) as_myself=$0 ;;
18317 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18318 for as_dir in $PATH
18320 IFS=$as_save_IFS
18321 test -z "$as_dir" && as_dir=.
18322 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18323 done
18324 IFS=$as_save_IFS
18327 esac
18328 # We did not find ourselves, most probably we were run as `sh COMMAND'
18329 # in which case we are not to be found in the path.
18330 if test "x$as_myself" = x; then
18331 as_myself=$0
18333 if test ! -f "$as_myself"; then
18334 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18335 exit 1
18338 # Unset variables that we do not need and which cause bugs (e.g. in
18339 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18340 # suppresses any "Segmentation fault" message there. '((' could
18341 # trigger a bug in pdksh 5.2.14.
18342 for as_var in BASH_ENV ENV MAIL MAILPATH
18343 do eval test x\${$as_var+set} = xset \
18344 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18345 done
18346 PS1='$ '
18347 PS2='> '
18348 PS4='+ '
18350 # NLS nuisances.
18351 LC_ALL=C
18352 export LC_ALL
18353 LANGUAGE=C
18354 export LANGUAGE
18356 # CDPATH.
18357 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18360 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18361 # ----------------------------------------
18362 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18363 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18364 # script with STATUS, using 1 if that was 0.
18365 as_fn_error ()
18367 as_status=$1; test $as_status -eq 0 && as_status=1
18368 if test "$4"; then
18369 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18370 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18372 $as_echo "$as_me: error: $2" >&2
18373 as_fn_exit $as_status
18374 } # as_fn_error
18377 # as_fn_set_status STATUS
18378 # -----------------------
18379 # Set $? to STATUS, without forking.
18380 as_fn_set_status ()
18382 return $1
18383 } # as_fn_set_status
18385 # as_fn_exit STATUS
18386 # -----------------
18387 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18388 as_fn_exit ()
18390 set +e
18391 as_fn_set_status $1
18392 exit $1
18393 } # as_fn_exit
18395 # as_fn_unset VAR
18396 # ---------------
18397 # Portably unset VAR.
18398 as_fn_unset ()
18400 { eval $1=; unset $1;}
18402 as_unset=as_fn_unset
18403 # as_fn_append VAR VALUE
18404 # ----------------------
18405 # Append the text in VALUE to the end of the definition contained in VAR. Take
18406 # advantage of any shell optimizations that allow amortized linear growth over
18407 # repeated appends, instead of the typical quadratic growth present in naive
18408 # implementations.
18409 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18410 eval 'as_fn_append ()
18412 eval $1+=\$2
18414 else
18415 as_fn_append ()
18417 eval $1=\$$1\$2
18419 fi # as_fn_append
18421 # as_fn_arith ARG...
18422 # ------------------
18423 # Perform arithmetic evaluation on the ARGs, and store the result in the
18424 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18425 # must be portable across $(()) and expr.
18426 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18427 eval 'as_fn_arith ()
18429 as_val=$(( $* ))
18431 else
18432 as_fn_arith ()
18434 as_val=`expr "$@" || test $? -eq 1`
18436 fi # as_fn_arith
18439 if expr a : '\(a\)' >/dev/null 2>&1 &&
18440 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18441 as_expr=expr
18442 else
18443 as_expr=false
18446 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18447 as_basename=basename
18448 else
18449 as_basename=false
18452 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18453 as_dirname=dirname
18454 else
18455 as_dirname=false
18458 as_me=`$as_basename -- "$0" ||
18459 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18460 X"$0" : 'X\(//\)$' \| \
18461 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18462 $as_echo X/"$0" |
18463 sed '/^.*\/\([^/][^/]*\)\/*$/{
18464 s//\1/
18467 /^X\/\(\/\/\)$/{
18468 s//\1/
18471 /^X\/\(\/\).*/{
18472 s//\1/
18475 s/.*/./; q'`
18477 # Avoid depending upon Character Ranges.
18478 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18479 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18480 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18481 as_cr_digits='0123456789'
18482 as_cr_alnum=$as_cr_Letters$as_cr_digits
18484 ECHO_C= ECHO_N= ECHO_T=
18485 case `echo -n x` in #(((((
18486 -n*)
18487 case `echo 'xy\c'` in
18488 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18489 xy) ECHO_C='\c';;
18490 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
18491 ECHO_T=' ';;
18492 esac;;
18494 ECHO_N='-n';;
18495 esac
18497 rm -f conf$$ conf$$.exe conf$$.file
18498 if test -d conf$$.dir; then
18499 rm -f conf$$.dir/conf$$.file
18500 else
18501 rm -f conf$$.dir
18502 mkdir conf$$.dir 2>/dev/null
18504 if (echo >conf$$.file) 2>/dev/null; then
18505 if ln -s conf$$.file conf$$ 2>/dev/null; then
18506 as_ln_s='ln -s'
18507 # ... but there are two gotchas:
18508 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18509 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18510 # In both cases, we have to default to `cp -pR'.
18511 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18512 as_ln_s='cp -pR'
18513 elif ln conf$$.file conf$$ 2>/dev/null; then
18514 as_ln_s=ln
18515 else
18516 as_ln_s='cp -pR'
18518 else
18519 as_ln_s='cp -pR'
18521 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18522 rmdir conf$$.dir 2>/dev/null
18525 # as_fn_mkdir_p
18526 # -------------
18527 # Create "$as_dir" as a directory, including parents if necessary.
18528 as_fn_mkdir_p ()
18531 case $as_dir in #(
18532 -*) as_dir=./$as_dir;;
18533 esac
18534 test -d "$as_dir" || eval $as_mkdir_p || {
18535 as_dirs=
18536 while :; do
18537 case $as_dir in #(
18538 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18539 *) as_qdir=$as_dir;;
18540 esac
18541 as_dirs="'$as_qdir' $as_dirs"
18542 as_dir=`$as_dirname -- "$as_dir" ||
18543 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18544 X"$as_dir" : 'X\(//\)[^/]' \| \
18545 X"$as_dir" : 'X\(//\)$' \| \
18546 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18547 $as_echo X"$as_dir" |
18548 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18549 s//\1/
18552 /^X\(\/\/\)[^/].*/{
18553 s//\1/
18556 /^X\(\/\/\)$/{
18557 s//\1/
18560 /^X\(\/\).*/{
18561 s//\1/
18564 s/.*/./; q'`
18565 test -d "$as_dir" && break
18566 done
18567 test -z "$as_dirs" || eval "mkdir $as_dirs"
18568 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18571 } # as_fn_mkdir_p
18572 if mkdir -p . 2>/dev/null; then
18573 as_mkdir_p='mkdir -p "$as_dir"'
18574 else
18575 test -d ./-p && rmdir ./-p
18576 as_mkdir_p=false
18580 # as_fn_executable_p FILE
18581 # -----------------------
18582 # Test if FILE is an executable regular file.
18583 as_fn_executable_p ()
18585 test -f "$1" && test -x "$1"
18586 } # as_fn_executable_p
18587 as_test_x='test -x'
18588 as_executable_p=as_fn_executable_p
18590 # Sed expression to map a string onto a valid CPP name.
18591 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18593 # Sed expression to map a string onto a valid variable name.
18594 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18597 exec 6>&1
18598 ## ----------------------------------- ##
18599 ## Main body of $CONFIG_STATUS script. ##
18600 ## ----------------------------------- ##
18601 _ASEOF
18602 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18604 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18605 # Save the log message, to keep $0 and so on meaningful, and to
18606 # report actual input values of CONFIG_FILES etc. instead of their
18607 # values after options handling.
18608 ac_log="
18609 This file was extended by GNU TM Runtime Library $as_me 1.0, which was
18610 generated by GNU Autoconf 2.69. Invocation command line was
18612 CONFIG_FILES = $CONFIG_FILES
18613 CONFIG_HEADERS = $CONFIG_HEADERS
18614 CONFIG_LINKS = $CONFIG_LINKS
18615 CONFIG_COMMANDS = $CONFIG_COMMANDS
18616 $ $0 $@
18618 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18621 _ACEOF
18623 case $ac_config_files in *"
18624 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18625 esac
18627 case $ac_config_headers in *"
18628 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18629 esac
18632 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18633 # Files that config.status was made for.
18634 config_files="$ac_config_files"
18635 config_headers="$ac_config_headers"
18636 config_commands="$ac_config_commands"
18638 _ACEOF
18640 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18641 ac_cs_usage="\
18642 \`$as_me' instantiates files and other configuration actions
18643 from templates according to the current configuration. Unless the files
18644 and actions are specified as TAGs, all are instantiated by default.
18646 Usage: $0 [OPTION]... [TAG]...
18648 -h, --help print this help, then exit
18649 -V, --version print version number and configuration settings, then exit
18650 --config print configuration, then exit
18651 -q, --quiet, --silent
18652 do not print progress messages
18653 -d, --debug don't remove temporary files
18654 --recheck update $as_me by reconfiguring in the same conditions
18655 --file=FILE[:TEMPLATE]
18656 instantiate the configuration file FILE
18657 --header=FILE[:TEMPLATE]
18658 instantiate the configuration header FILE
18660 Configuration files:
18661 $config_files
18663 Configuration headers:
18664 $config_headers
18666 Configuration commands:
18667 $config_commands
18669 Report bugs to the package provider.
18670 GNU TM Runtime Library home page: <http://www.gnu.org/software/libitm/>.
18671 General help using GNU software: <http://www.gnu.org/gethelp/>."
18673 _ACEOF
18674 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18675 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18676 ac_cs_version="\\
18677 GNU TM Runtime Library config.status 1.0
18678 configured by $0, generated by GNU Autoconf 2.69,
18679 with options \\"\$ac_cs_config\\"
18681 Copyright (C) 2012 Free Software Foundation, Inc.
18682 This config.status script is free software; the Free Software Foundation
18683 gives unlimited permission to copy, distribute and modify it."
18685 ac_pwd='$ac_pwd'
18686 srcdir='$srcdir'
18687 INSTALL='$INSTALL'
18688 MKDIR_P='$MKDIR_P'
18689 AWK='$AWK'
18690 test -n "\$AWK" || AWK=awk
18691 _ACEOF
18693 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18694 # The default lists apply if the user does not specify any file.
18695 ac_need_defaults=:
18696 while test $# != 0
18698 case $1 in
18699 --*=?*)
18700 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18701 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18702 ac_shift=:
18704 --*=)
18705 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18706 ac_optarg=
18707 ac_shift=:
18710 ac_option=$1
18711 ac_optarg=$2
18712 ac_shift=shift
18714 esac
18716 case $ac_option in
18717 # Handling of the options.
18718 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18719 ac_cs_recheck=: ;;
18720 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18721 $as_echo "$ac_cs_version"; exit ;;
18722 --config | --confi | --conf | --con | --co | --c )
18723 $as_echo "$ac_cs_config"; exit ;;
18724 --debug | --debu | --deb | --de | --d | -d )
18725 debug=: ;;
18726 --file | --fil | --fi | --f )
18727 $ac_shift
18728 case $ac_optarg in
18729 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18730 '') as_fn_error $? "missing file argument" ;;
18731 esac
18732 as_fn_append CONFIG_FILES " '$ac_optarg'"
18733 ac_need_defaults=false;;
18734 --header | --heade | --head | --hea )
18735 $ac_shift
18736 case $ac_optarg in
18737 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18738 esac
18739 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18740 ac_need_defaults=false;;
18741 --he | --h)
18742 # Conflict between --help and --header
18743 as_fn_error $? "ambiguous option: \`$1'
18744 Try \`$0 --help' for more information.";;
18745 --help | --hel | -h )
18746 $as_echo "$ac_cs_usage"; exit ;;
18747 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18748 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18749 ac_cs_silent=: ;;
18751 # This is an error.
18752 -*) as_fn_error $? "unrecognized option: \`$1'
18753 Try \`$0 --help' for more information." ;;
18755 *) as_fn_append ac_config_targets " $1"
18756 ac_need_defaults=false ;;
18758 esac
18759 shift
18760 done
18762 ac_configure_extra_args=
18764 if $ac_cs_silent; then
18765 exec 6>/dev/null
18766 ac_configure_extra_args="$ac_configure_extra_args --silent"
18769 _ACEOF
18770 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18771 if \$ac_cs_recheck; then
18772 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18773 shift
18774 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18775 CONFIG_SHELL='$SHELL'
18776 export CONFIG_SHELL
18777 exec "\$@"
18780 _ACEOF
18781 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18782 exec 5>>config.log
18784 echo
18785 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18786 ## Running $as_me. ##
18787 _ASBOX
18788 $as_echo "$ac_log"
18789 } >&5
18791 _ACEOF
18792 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18794 # INIT-COMMANDS
18797 srcdir="$srcdir"
18798 host="$host"
18799 target="$target"
18800 with_multisubdir="$with_multisubdir"
18801 with_multisrctop="$with_multisrctop"
18802 with_target_subdir="$with_target_subdir"
18803 ac_configure_args="${multilib_arg} ${ac_configure_args}"
18804 multi_basedir="$multi_basedir"
18805 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
18806 CC="$CC"
18807 CXX="$CXX"
18808 GFORTRAN="$GFORTRAN"
18809 GDC="$GDC"
18810 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18813 # The HP-UX ksh and POSIX shell print the target directory to stdout
18814 # if CDPATH is set.
18815 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18817 sed_quote_subst='$sed_quote_subst'
18818 double_quote_subst='$double_quote_subst'
18819 delay_variable_subst='$delay_variable_subst'
18820 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18821 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18822 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18823 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18824 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18825 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18826 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18827 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18828 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18829 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18830 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18831 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18832 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18833 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18834 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18835 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18836 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18837 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18838 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18839 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18840 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18841 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18842 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18843 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18844 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18845 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18846 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18847 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18848 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18849 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18850 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18851 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18852 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18853 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18854 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18855 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18856 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18857 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18858 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18859 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18860 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18861 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18862 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18863 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18864 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18865 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18866 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18867 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18868 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"`'
18869 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18870 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18871 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18872 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18873 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18874 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18875 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18876 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18877 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18878 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18879 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18880 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18881 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18882 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18883 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18884 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18885 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18886 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18887 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18888 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18889 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18890 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18891 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18892 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18893 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18894 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18895 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18896 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18897 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18898 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18899 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18900 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
18901 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18902 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18903 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18904 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18905 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18906 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18907 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18908 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18909 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
18910 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18911 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18912 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18913 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18914 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18915 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18916 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18917 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18918 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18919 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18920 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18921 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18922 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18923 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18924 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18925 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18926 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18927 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18928 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18929 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18930 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18931 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18932 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18933 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
18934 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18935 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18936 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18937 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18938 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18939 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18940 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
18941 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
18942 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
18943 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
18944 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
18945 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
18946 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
18947 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
18948 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18949 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18950 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
18951 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
18952 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
18953 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
18954 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
18955 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
18956 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
18957 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
18958 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
18959 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18960 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18961 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
18962 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18963 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18964 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18965 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18966 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18967 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18968 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
18969 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18970 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18971 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18972 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
18973 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
18974 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
18975 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
18976 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
18977 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
18978 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
18979 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
18980 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
18981 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
18982 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
18983 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18984 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18985 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18986 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18987 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
18988 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
18989 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
18990 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18991 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18992 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
18993 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
18994 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
18996 LTCC='$LTCC'
18997 LTCFLAGS='$LTCFLAGS'
18998 compiler='$compiler_DEFAULT'
19000 # A function that is used when there is no print builtin or printf.
19001 func_fallback_echo ()
19003 eval 'cat <<_LTECHO_EOF
19005 _LTECHO_EOF'
19008 # Quote evaled strings.
19009 for var in SHELL \
19010 ECHO \
19011 SED \
19012 GREP \
19013 EGREP \
19014 FGREP \
19015 LD \
19016 NM \
19017 LN_S \
19018 lt_SP2NL \
19019 lt_NL2SP \
19020 reload_flag \
19021 OBJDUMP \
19022 deplibs_check_method \
19023 file_magic_cmd \
19024 AR \
19025 AR_FLAGS \
19026 STRIP \
19027 RANLIB \
19028 CC \
19029 CFLAGS \
19030 compiler \
19031 lt_cv_sys_global_symbol_pipe \
19032 lt_cv_sys_global_symbol_to_cdecl \
19033 lt_cv_sys_global_symbol_to_c_name_address \
19034 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19035 lt_prog_compiler_no_builtin_flag \
19036 lt_prog_compiler_wl \
19037 lt_prog_compiler_pic \
19038 lt_prog_compiler_static \
19039 lt_cv_prog_compiler_c_o \
19040 need_locks \
19041 DSYMUTIL \
19042 NMEDIT \
19043 LIPO \
19044 OTOOL \
19045 OTOOL64 \
19046 shrext_cmds \
19047 export_dynamic_flag_spec \
19048 whole_archive_flag_spec \
19049 compiler_needs_object \
19050 with_gnu_ld \
19051 allow_undefined_flag \
19052 no_undefined_flag \
19053 hardcode_libdir_flag_spec \
19054 hardcode_libdir_flag_spec_ld \
19055 hardcode_libdir_separator \
19056 fix_srcfile_path \
19057 exclude_expsyms \
19058 include_expsyms \
19059 file_list_spec \
19060 variables_saved_for_relink \
19061 libname_spec \
19062 library_names_spec \
19063 soname_spec \
19064 install_override_mode \
19065 finish_eval \
19066 old_striplib \
19067 striplib \
19068 compiler_lib_search_dirs \
19069 predep_objects \
19070 postdep_objects \
19071 predeps \
19072 postdeps \
19073 compiler_lib_search_path \
19074 LD_CXX \
19075 reload_flag_CXX \
19076 compiler_CXX \
19077 lt_prog_compiler_no_builtin_flag_CXX \
19078 lt_prog_compiler_wl_CXX \
19079 lt_prog_compiler_pic_CXX \
19080 lt_prog_compiler_static_CXX \
19081 lt_cv_prog_compiler_c_o_CXX \
19082 export_dynamic_flag_spec_CXX \
19083 whole_archive_flag_spec_CXX \
19084 compiler_needs_object_CXX \
19085 with_gnu_ld_CXX \
19086 allow_undefined_flag_CXX \
19087 no_undefined_flag_CXX \
19088 hardcode_libdir_flag_spec_CXX \
19089 hardcode_libdir_flag_spec_ld_CXX \
19090 hardcode_libdir_separator_CXX \
19091 fix_srcfile_path_CXX \
19092 exclude_expsyms_CXX \
19093 include_expsyms_CXX \
19094 file_list_spec_CXX \
19095 compiler_lib_search_dirs_CXX \
19096 predep_objects_CXX \
19097 postdep_objects_CXX \
19098 predeps_CXX \
19099 postdeps_CXX \
19100 compiler_lib_search_path_CXX; do
19101 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19102 *[\\\\\\\`\\"\\\$]*)
19103 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
19106 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19108 esac
19109 done
19111 # Double-quote double-evaled strings.
19112 for var in reload_cmds \
19113 old_postinstall_cmds \
19114 old_postuninstall_cmds \
19115 old_archive_cmds \
19116 extract_expsyms_cmds \
19117 old_archive_from_new_cmds \
19118 old_archive_from_expsyms_cmds \
19119 archive_cmds \
19120 archive_expsym_cmds \
19121 module_cmds \
19122 module_expsym_cmds \
19123 export_symbols_cmds \
19124 prelink_cmds \
19125 postinstall_cmds \
19126 postuninstall_cmds \
19127 finish_cmds \
19128 sys_lib_search_path_spec \
19129 sys_lib_dlsearch_path_spec \
19130 reload_cmds_CXX \
19131 old_archive_cmds_CXX \
19132 old_archive_from_new_cmds_CXX \
19133 old_archive_from_expsyms_cmds_CXX \
19134 archive_cmds_CXX \
19135 archive_expsym_cmds_CXX \
19136 module_cmds_CXX \
19137 module_expsym_cmds_CXX \
19138 export_symbols_cmds_CXX \
19139 prelink_cmds_CXX; do
19140 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19141 *[\\\\\\\`\\"\\\$]*)
19142 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
19145 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19147 esac
19148 done
19150 ac_aux_dir='$ac_aux_dir'
19151 xsi_shell='$xsi_shell'
19152 lt_shell_append='$lt_shell_append'
19154 # See if we are running on zsh, and set the options which allow our
19155 # commands through without removal of \ escapes INIT.
19156 if test -n "\${ZSH_VERSION+set}" ; then
19157 setopt NO_GLOB_SUBST
19161 PACKAGE='$PACKAGE'
19162 VERSION='$VERSION'
19163 TIMESTAMP='$TIMESTAMP'
19164 RM='$RM'
19165 ofile='$ofile'
19172 GCC="$GCC"
19173 CC="$CC"
19174 acx_cv_header_stdint="$acx_cv_header_stdint"
19175 acx_cv_type_int8_t="$acx_cv_type_int8_t"
19176 acx_cv_type_int16_t="$acx_cv_type_int16_t"
19177 acx_cv_type_int32_t="$acx_cv_type_int32_t"
19178 acx_cv_type_int64_t="$acx_cv_type_int64_t"
19179 acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
19180 ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
19181 ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
19182 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
19183 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
19184 ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
19185 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
19186 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
19187 ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
19190 _ACEOF
19192 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19194 # Handling of arguments.
19195 for ac_config_target in $ac_config_targets
19197 case $ac_config_target in
19198 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19199 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
19200 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19201 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19202 "gstdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
19203 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19204 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
19205 "libitm.spec") CONFIG_FILES="$CONFIG_FILES libitm.spec" ;;
19207 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19208 esac
19209 done
19212 # If the user did not use the arguments to specify the items to instantiate,
19213 # then the envvar interface is used. Set only those that are not.
19214 # We use the long form for the default assignment because of an extremely
19215 # bizarre bug on SunOS 4.1.3.
19216 if $ac_need_defaults; then
19217 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19218 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19219 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19222 # Have a temporary directory for convenience. Make it in the build tree
19223 # simply because there is no reason against having it here, and in addition,
19224 # creating and moving files from /tmp can sometimes cause problems.
19225 # Hook for its removal unless debugging.
19226 # Note that there is a small window in which the directory will not be cleaned:
19227 # after its creation but before its name has been assigned to `$tmp'.
19228 $debug ||
19230 tmp= ac_tmp=
19231 trap 'exit_status=$?
19232 : "${ac_tmp:=$tmp}"
19233 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19235 trap 'as_fn_exit 1' 1 2 13 15
19237 # Create a (secure) tmp directory for tmp files.
19240 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19241 test -d "$tmp"
19242 } ||
19244 tmp=./conf$$-$RANDOM
19245 (umask 077 && mkdir "$tmp")
19246 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19247 ac_tmp=$tmp
19249 # Set up the scripts for CONFIG_FILES section.
19250 # No need to generate them if there are no CONFIG_FILES.
19251 # This happens for instance with `./config.status config.h'.
19252 if test -n "$CONFIG_FILES"; then
19255 ac_cr=`echo X | tr X '\015'`
19256 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19257 # But we know of no other shell where ac_cr would be empty at this
19258 # point, so we can use a bashism as a fallback.
19259 if test "x$ac_cr" = x; then
19260 eval ac_cr=\$\'\\r\'
19262 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19263 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19264 ac_cs_awk_cr='\\r'
19265 else
19266 ac_cs_awk_cr=$ac_cr
19269 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19270 _ACEOF
19274 echo "cat >conf$$subs.awk <<_ACEOF" &&
19275 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19276 echo "_ACEOF"
19277 } >conf$$subs.sh ||
19278 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19279 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19280 ac_delim='%!_!# '
19281 for ac_last_try in false false false false false :; do
19282 . ./conf$$subs.sh ||
19283 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19285 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19286 if test $ac_delim_n = $ac_delim_num; then
19287 break
19288 elif $ac_last_try; then
19289 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19290 else
19291 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19293 done
19294 rm -f conf$$subs.sh
19296 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19297 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19298 _ACEOF
19299 sed -n '
19301 s/^/S["/; s/!.*/"]=/
19304 s/^[^!]*!//
19305 :repl
19306 t repl
19307 s/'"$ac_delim"'$//
19308 t delim
19311 s/\(.\{148\}\)..*/\1/
19312 t more1
19313 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19316 b repl
19317 :more1
19318 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19321 s/.\{148\}//
19322 t nl
19323 :delim
19325 s/\(.\{148\}\)..*/\1/
19326 t more2
19327 s/["\\]/\\&/g; s/^/"/; s/$/"/
19330 :more2
19331 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19334 s/.\{148\}//
19335 t delim
19336 ' <conf$$subs.awk | sed '
19337 /^[^""]/{
19339 s/\n//
19341 ' >>$CONFIG_STATUS || ac_write_fail=1
19342 rm -f conf$$subs.awk
19343 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19344 _ACAWK
19345 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19346 for (key in S) S_is_set[key] = 1
19347 FS = "\a"
19351 line = $ 0
19352 nfields = split(line, field, "@")
19353 substed = 0
19354 len = length(field[1])
19355 for (i = 2; i < nfields; i++) {
19356 key = field[i]
19357 keylen = length(key)
19358 if (S_is_set[key]) {
19359 value = S[key]
19360 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19361 len += length(value) + length(field[++i])
19362 substed = 1
19363 } else
19364 len += 1 + keylen
19367 print line
19370 _ACAWK
19371 _ACEOF
19372 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19373 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19374 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19375 else
19377 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19378 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19379 _ACEOF
19381 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19382 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19383 # trailing colons and then remove the whole line if VPATH becomes empty
19384 # (actually we leave an empty line to preserve line numbers).
19385 if test "x$srcdir" = x.; then
19386 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19388 s///
19389 s/^/:/
19390 s/[ ]*$/:/
19391 s/:\$(srcdir):/:/g
19392 s/:\${srcdir}:/:/g
19393 s/:@srcdir@:/:/g
19394 s/^:*//
19395 s/:*$//
19397 s/\(=[ ]*\).*/\1/
19399 s/\n//
19400 s/^[^=]*=[ ]*$//
19404 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19405 fi # test -n "$CONFIG_FILES"
19407 # Set up the scripts for CONFIG_HEADERS section.
19408 # No need to generate them if there are no CONFIG_HEADERS.
19409 # This happens for instance with `./config.status Makefile'.
19410 if test -n "$CONFIG_HEADERS"; then
19411 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19412 BEGIN {
19413 _ACEOF
19415 # Transform confdefs.h into an awk script `defines.awk', embedded as
19416 # here-document in config.status, that substitutes the proper values into
19417 # config.h.in to produce config.h.
19419 # Create a delimiter string that does not exist in confdefs.h, to ease
19420 # handling of long lines.
19421 ac_delim='%!_!# '
19422 for ac_last_try in false false :; do
19423 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19424 if test -z "$ac_tt"; then
19425 break
19426 elif $ac_last_try; then
19427 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19428 else
19429 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19431 done
19433 # For the awk script, D is an array of macro values keyed by name,
19434 # likewise P contains macro parameters if any. Preserve backslash
19435 # newline sequences.
19437 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19438 sed -n '
19439 s/.\{148\}/&'"$ac_delim"'/g
19440 t rset
19441 :rset
19442 s/^[ ]*#[ ]*define[ ][ ]*/ /
19443 t def
19445 :def
19446 s/\\$//
19447 t bsnl
19448 s/["\\]/\\&/g
19449 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19450 D["\1"]=" \3"/p
19451 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
19453 :bsnl
19454 s/["\\]/\\&/g
19455 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19456 D["\1"]=" \3\\\\\\n"\\/p
19457 t cont
19458 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19459 t cont
19461 :cont
19463 s/.\{148\}/&'"$ac_delim"'/g
19464 t clear
19465 :clear
19466 s/\\$//
19467 t bsnlc
19468 s/["\\]/\\&/g; s/^/"/; s/$/"/p
19470 :bsnlc
19471 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19472 b cont
19473 ' <confdefs.h | sed '
19474 s/'"$ac_delim"'/"\\\
19475 "/g' >>$CONFIG_STATUS || ac_write_fail=1
19477 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19478 for (key in D) D_is_set[key] = 1
19479 FS = "\a"
19481 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19482 line = \$ 0
19483 split(line, arg, " ")
19484 if (arg[1] == "#") {
19485 defundef = arg[2]
19486 mac1 = arg[3]
19487 } else {
19488 defundef = substr(arg[1], 2)
19489 mac1 = arg[2]
19491 split(mac1, mac2, "(") #)
19492 macro = mac2[1]
19493 prefix = substr(line, 1, index(line, defundef) - 1)
19494 if (D_is_set[macro]) {
19495 # Preserve the white space surrounding the "#".
19496 print prefix "define", macro P[macro] D[macro]
19497 next
19498 } else {
19499 # Replace #undef with comments. This is necessary, for example,
19500 # in the case of _POSIX_SOURCE, which is predefined and required
19501 # on some systems where configure will not decide to define it.
19502 if (defundef == "undef") {
19503 print "/*", prefix defundef, macro, "*/"
19504 next
19508 { print }
19509 _ACAWK
19510 _ACEOF
19511 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19512 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19513 fi # test -n "$CONFIG_HEADERS"
19516 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
19517 shift
19518 for ac_tag
19520 case $ac_tag in
19521 :[FHLC]) ac_mode=$ac_tag; continue;;
19522 esac
19523 case $ac_mode$ac_tag in
19524 :[FHL]*:*);;
19525 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19526 :[FH]-) ac_tag=-:-;;
19527 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19528 esac
19529 ac_save_IFS=$IFS
19530 IFS=:
19531 set x $ac_tag
19532 IFS=$ac_save_IFS
19533 shift
19534 ac_file=$1
19535 shift
19537 case $ac_mode in
19538 :L) ac_source=$1;;
19539 :[FH])
19540 ac_file_inputs=
19541 for ac_f
19543 case $ac_f in
19544 -) ac_f="$ac_tmp/stdin";;
19545 *) # Look for the file first in the build tree, then in the source tree
19546 # (if the path is not absolute). The absolute path cannot be DOS-style,
19547 # because $ac_f cannot contain `:'.
19548 test -f "$ac_f" ||
19549 case $ac_f in
19550 [\\/$]*) false;;
19551 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19552 esac ||
19553 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19554 esac
19555 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19556 as_fn_append ac_file_inputs " '$ac_f'"
19557 done
19559 # Let's still pretend it is `configure' which instantiates (i.e., don't
19560 # use $as_me), people would be surprised to read:
19561 # /* config.h. Generated by config.status. */
19562 configure_input='Generated from '`
19563 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19564 `' by configure.'
19565 if test x"$ac_file" != x-; then
19566 configure_input="$ac_file. $configure_input"
19567 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19568 $as_echo "$as_me: creating $ac_file" >&6;}
19570 # Neutralize special characters interpreted by sed in replacement strings.
19571 case $configure_input in #(
19572 *\&* | *\|* | *\\* )
19573 ac_sed_conf_input=`$as_echo "$configure_input" |
19574 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19575 *) ac_sed_conf_input=$configure_input;;
19576 esac
19578 case $ac_tag in
19579 *:-:* | *:-) cat >"$ac_tmp/stdin" \
19580 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19581 esac
19583 esac
19585 ac_dir=`$as_dirname -- "$ac_file" ||
19586 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19587 X"$ac_file" : 'X\(//\)[^/]' \| \
19588 X"$ac_file" : 'X\(//\)$' \| \
19589 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19590 $as_echo X"$ac_file" |
19591 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19592 s//\1/
19595 /^X\(\/\/\)[^/].*/{
19596 s//\1/
19599 /^X\(\/\/\)$/{
19600 s//\1/
19603 /^X\(\/\).*/{
19604 s//\1/
19607 s/.*/./; q'`
19608 as_dir="$ac_dir"; as_fn_mkdir_p
19609 ac_builddir=.
19611 case "$ac_dir" in
19612 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19614 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19615 # A ".." for each directory in $ac_dir_suffix.
19616 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19617 case $ac_top_builddir_sub in
19618 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19619 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19620 esac ;;
19621 esac
19622 ac_abs_top_builddir=$ac_pwd
19623 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19624 # for backward compatibility:
19625 ac_top_builddir=$ac_top_build_prefix
19627 case $srcdir in
19628 .) # We are building in place.
19629 ac_srcdir=.
19630 ac_top_srcdir=$ac_top_builddir_sub
19631 ac_abs_top_srcdir=$ac_pwd ;;
19632 [\\/]* | ?:[\\/]* ) # Absolute name.
19633 ac_srcdir=$srcdir$ac_dir_suffix;
19634 ac_top_srcdir=$srcdir
19635 ac_abs_top_srcdir=$srcdir ;;
19636 *) # Relative name.
19637 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19638 ac_top_srcdir=$ac_top_build_prefix$srcdir
19639 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19640 esac
19641 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19644 case $ac_mode in
19647 # CONFIG_FILE
19650 case $INSTALL in
19651 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19652 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19653 esac
19654 ac_MKDIR_P=$MKDIR_P
19655 case $MKDIR_P in
19656 [\\/$]* | ?:[\\/]* ) ;;
19657 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19658 esac
19659 _ACEOF
19661 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19662 # If the template does not know about datarootdir, expand it.
19663 # FIXME: This hack should be removed a few years after 2.60.
19664 ac_datarootdir_hack=; ac_datarootdir_seen=
19665 ac_sed_dataroot='
19666 /datarootdir/ {
19670 /@datadir@/p
19671 /@docdir@/p
19672 /@infodir@/p
19673 /@localedir@/p
19674 /@mandir@/p'
19675 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19676 *datarootdir*) ac_datarootdir_seen=yes;;
19677 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19678 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19679 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19680 _ACEOF
19681 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19682 ac_datarootdir_hack='
19683 s&@datadir@&$datadir&g
19684 s&@docdir@&$docdir&g
19685 s&@infodir@&$infodir&g
19686 s&@localedir@&$localedir&g
19687 s&@mandir@&$mandir&g
19688 s&\\\${datarootdir}&$datarootdir&g' ;;
19689 esac
19690 _ACEOF
19692 # Neutralize VPATH when `$srcdir' = `.'.
19693 # Shell code in configure.ac might set extrasub.
19694 # FIXME: do we really want to maintain this feature?
19695 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19696 ac_sed_extra="$ac_vpsub
19697 $extrasub
19698 _ACEOF
19699 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19701 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19702 s|@configure_input@|$ac_sed_conf_input|;t t
19703 s&@top_builddir@&$ac_top_builddir_sub&;t t
19704 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19705 s&@srcdir@&$ac_srcdir&;t t
19706 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19707 s&@top_srcdir@&$ac_top_srcdir&;t t
19708 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19709 s&@builddir@&$ac_builddir&;t t
19710 s&@abs_builddir@&$ac_abs_builddir&;t t
19711 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19712 s&@INSTALL@&$ac_INSTALL&;t t
19713 s&@MKDIR_P@&$ac_MKDIR_P&;t t
19714 $ac_datarootdir_hack
19716 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
19717 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19719 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19720 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19721 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19722 "$ac_tmp/out"`; test -z "$ac_out"; } &&
19723 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19724 which seems to be undefined. Please make sure it is defined" >&5
19725 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19726 which seems to be undefined. Please make sure it is defined" >&2;}
19728 rm -f "$ac_tmp/stdin"
19729 case $ac_file in
19730 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19731 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19732 esac \
19733 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19737 # CONFIG_HEADER
19739 if test x"$ac_file" != x-; then
19741 $as_echo "/* $configure_input */" \
19742 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19743 } >"$ac_tmp/config.h" \
19744 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19745 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19746 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19747 $as_echo "$as_me: $ac_file is unchanged" >&6;}
19748 else
19749 rm -f "$ac_file"
19750 mv "$ac_tmp/config.h" "$ac_file" \
19751 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19753 else
19754 $as_echo "/* $configure_input */" \
19755 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19756 || as_fn_error $? "could not create -" "$LINENO" 5
19758 # Compute "$ac_file"'s index in $config_headers.
19759 _am_arg="$ac_file"
19760 _am_stamp_count=1
19761 for _am_header in $config_headers :; do
19762 case $_am_header in
19763 $_am_arg | $_am_arg:* )
19764 break ;;
19766 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19767 esac
19768 done
19769 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19770 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19771 X"$_am_arg" : 'X\(//\)[^/]' \| \
19772 X"$_am_arg" : 'X\(//\)$' \| \
19773 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19774 $as_echo X"$_am_arg" |
19775 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19776 s//\1/
19779 /^X\(\/\/\)[^/].*/{
19780 s//\1/
19783 /^X\(\/\/\)$/{
19784 s//\1/
19787 /^X\(\/\).*/{
19788 s//\1/
19791 s/.*/./; q'`/stamp-h$_am_stamp_count
19794 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19795 $as_echo "$as_me: executing $ac_file commands" >&6;}
19797 esac
19800 case $ac_file$ac_mode in
19801 "default-1":C)
19802 # Only add multilib support code if we just rebuilt the top-level
19803 # Makefile.
19804 case " $CONFIG_FILES " in
19805 *" Makefile "*)
19806 ac_file=Makefile . ${multi_basedir}/config-ml.in
19808 esac ;;
19809 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19810 # Older Autoconf quotes --file arguments for eval, but not when files
19811 # are listed without --file. Let's play safe and only enable the eval
19812 # if we detect the quoting.
19813 case $CONFIG_FILES in
19814 *\'*) eval set x "$CONFIG_FILES" ;;
19815 *) set x $CONFIG_FILES ;;
19816 esac
19817 shift
19818 for mf
19820 # Strip MF so we end up with the name of the file.
19821 mf=`echo "$mf" | sed -e 's/:.*$//'`
19822 # Check whether this is an Automake generated Makefile or not.
19823 # We used to match only the files named 'Makefile.in', but
19824 # some people rename them; so instead we look at the file content.
19825 # Grep'ing the first line is not enough: some people post-process
19826 # each Makefile.in and add a new line on top of each file to say so.
19827 # Grep'ing the whole file is not good either: AIX grep has a line
19828 # limit of 2048, but all sed's we know have understand at least 4000.
19829 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19830 dirpart=`$as_dirname -- "$mf" ||
19831 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19832 X"$mf" : 'X\(//\)[^/]' \| \
19833 X"$mf" : 'X\(//\)$' \| \
19834 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19835 $as_echo X"$mf" |
19836 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19837 s//\1/
19840 /^X\(\/\/\)[^/].*/{
19841 s//\1/
19844 /^X\(\/\/\)$/{
19845 s//\1/
19848 /^X\(\/\).*/{
19849 s//\1/
19852 s/.*/./; q'`
19853 else
19854 continue
19856 # Extract the definition of DEPDIR, am__include, and am__quote
19857 # from the Makefile without running 'make'.
19858 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19859 test -z "$DEPDIR" && continue
19860 am__include=`sed -n 's/^am__include = //p' < "$mf"`
19861 test -z "$am__include" && continue
19862 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19863 # Find all dependency output files, they are included files with
19864 # $(DEPDIR) in their names. We invoke sed twice because it is the
19865 # simplest approach to changing $(DEPDIR) to its actual value in the
19866 # expansion.
19867 for file in `sed -n "
19868 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19869 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
19870 # Make sure the directory exists.
19871 test -f "$dirpart/$file" && continue
19872 fdir=`$as_dirname -- "$file" ||
19873 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19874 X"$file" : 'X\(//\)[^/]' \| \
19875 X"$file" : 'X\(//\)$' \| \
19876 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19877 $as_echo X"$file" |
19878 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19879 s//\1/
19882 /^X\(\/\/\)[^/].*/{
19883 s//\1/
19886 /^X\(\/\/\)$/{
19887 s//\1/
19890 /^X\(\/\).*/{
19891 s//\1/
19894 s/.*/./; q'`
19895 as_dir=$dirpart/$fdir; as_fn_mkdir_p
19896 # echo "creating $dirpart/$file"
19897 echo '# dummy' > "$dirpart/$file"
19898 done
19899 done
19902 "libtool":C)
19904 # See if we are running on zsh, and set the options which allow our
19905 # commands through without removal of \ escapes.
19906 if test -n "${ZSH_VERSION+set}" ; then
19907 setopt NO_GLOB_SUBST
19910 cfgfile="${ofile}T"
19911 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19912 $RM "$cfgfile"
19914 cat <<_LT_EOF >> "$cfgfile"
19915 #! $SHELL
19917 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19918 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19919 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19920 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19922 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19923 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
19924 # Written by Gordon Matzigkeit, 1996
19926 # This file is part of GNU Libtool.
19928 # GNU Libtool is free software; you can redistribute it and/or
19929 # modify it under the terms of the GNU General Public License as
19930 # published by the Free Software Foundation; either version 2 of
19931 # the License, or (at your option) any later version.
19933 # As a special exception to the GNU General Public License,
19934 # if you distribute this file as part of a program or library that
19935 # is built using GNU Libtool, you may include this file under the
19936 # same distribution terms that you use for the rest of that program.
19938 # GNU Libtool is distributed in the hope that it will be useful,
19939 # but WITHOUT ANY WARRANTY; without even the implied warranty of
19940 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19941 # GNU General Public License for more details.
19943 # You should have received a copy of the GNU General Public License
19944 # along with GNU Libtool; see the file COPYING. If not, a copy
19945 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19946 # obtained by writing to the Free Software Foundation, Inc.,
19947 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19950 # The names of the tagged configurations supported by this script.
19951 available_tags="CXX "
19953 # ### BEGIN LIBTOOL CONFIG
19955 # Which release of libtool.m4 was used?
19956 macro_version=$macro_version
19957 macro_revision=$macro_revision
19959 # Whether or not to build shared libraries.
19960 build_libtool_libs=$enable_shared
19962 # Whether or not to build static libraries.
19963 build_old_libs=$enable_static
19965 # What type of objects to build.
19966 pic_mode=$pic_mode
19968 # Whether or not to optimize for fast installation.
19969 fast_install=$enable_fast_install
19971 # Shell to use when invoking shell scripts.
19972 SHELL=$lt_SHELL
19974 # An echo program that protects backslashes.
19975 ECHO=$lt_ECHO
19977 # The host system.
19978 host_alias=$host_alias
19979 host=$host
19980 host_os=$host_os
19982 # The build system.
19983 build_alias=$build_alias
19984 build=$build
19985 build_os=$build_os
19987 # A sed program that does not truncate output.
19988 SED=$lt_SED
19990 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19991 Xsed="\$SED -e 1s/^X//"
19993 # A grep program that handles long lines.
19994 GREP=$lt_GREP
19996 # An ERE matcher.
19997 EGREP=$lt_EGREP
19999 # A literal string matcher.
20000 FGREP=$lt_FGREP
20002 # A BSD- or MS-compatible name lister.
20003 NM=$lt_NM
20005 # Whether we need soft or hard links.
20006 LN_S=$lt_LN_S
20008 # What is the maximum length of a command?
20009 max_cmd_len=$max_cmd_len
20011 # Object file suffix (normally "o").
20012 objext=$ac_objext
20014 # Executable file suffix (normally "").
20015 exeext=$exeext
20017 # whether the shell understands "unset".
20018 lt_unset=$lt_unset
20020 # turn spaces into newlines.
20021 SP2NL=$lt_lt_SP2NL
20023 # turn newlines into spaces.
20024 NL2SP=$lt_lt_NL2SP
20026 # An object symbol dumper.
20027 OBJDUMP=$lt_OBJDUMP
20029 # Method to check whether dependent libraries are shared objects.
20030 deplibs_check_method=$lt_deplibs_check_method
20032 # Command to use when deplibs_check_method == "file_magic".
20033 file_magic_cmd=$lt_file_magic_cmd
20035 # The archiver.
20036 AR=$lt_AR
20037 AR_FLAGS=$lt_AR_FLAGS
20039 # A symbol stripping program.
20040 STRIP=$lt_STRIP
20042 # Commands used to install an old-style archive.
20043 RANLIB=$lt_RANLIB
20044 old_postinstall_cmds=$lt_old_postinstall_cmds
20045 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20047 # Whether to use a lock for old archive extraction.
20048 lock_old_archive_extraction=$lock_old_archive_extraction
20050 # A C compiler.
20051 LTCC=$lt_CC
20053 # LTCC compiler flags.
20054 LTCFLAGS=$lt_CFLAGS
20056 # Take the output of nm and produce a listing of raw symbols and C names.
20057 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20059 # Transform the output of nm in a proper C declaration.
20060 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20062 # Transform the output of nm in a C name address pair.
20063 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20065 # Transform the output of nm in a C name address pair when lib prefix is needed.
20066 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20068 # The name of the directory that contains temporary libtool files.
20069 objdir=$objdir
20071 # Used to examine libraries when file_magic_cmd begins with "file".
20072 MAGIC_CMD=$MAGIC_CMD
20074 # Must we lock files when doing compilation?
20075 need_locks=$lt_need_locks
20077 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20078 DSYMUTIL=$lt_DSYMUTIL
20080 # Tool to change global to local symbols on Mac OS X.
20081 NMEDIT=$lt_NMEDIT
20083 # Tool to manipulate fat objects and archives on Mac OS X.
20084 LIPO=$lt_LIPO
20086 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
20087 OTOOL=$lt_OTOOL
20089 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20090 OTOOL64=$lt_OTOOL64
20092 # Old archive suffix (normally "a").
20093 libext=$libext
20095 # Shared library suffix (normally ".so").
20096 shrext_cmds=$lt_shrext_cmds
20098 # The commands to extract the exported symbol list from a shared archive.
20099 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20101 # Variables whose values should be saved in libtool wrapper scripts and
20102 # restored at link time.
20103 variables_saved_for_relink=$lt_variables_saved_for_relink
20105 # Do we need the "lib" prefix for modules?
20106 need_lib_prefix=$need_lib_prefix
20108 # Do we need a version for libraries?
20109 need_version=$need_version
20111 # Library versioning type.
20112 version_type=$version_type
20114 # Shared library runtime path variable.
20115 runpath_var=$runpath_var
20117 # Shared library path variable.
20118 shlibpath_var=$shlibpath_var
20120 # Is shlibpath searched before the hard-coded library search path?
20121 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20123 # Format of library name prefix.
20124 libname_spec=$lt_libname_spec
20126 # List of archive names. First name is the real one, the rest are links.
20127 # The last name is the one that the linker finds with -lNAME
20128 library_names_spec=$lt_library_names_spec
20130 # The coded name of the library, if different from the real name.
20131 soname_spec=$lt_soname_spec
20133 # Permission mode override for installation of shared libraries.
20134 install_override_mode=$lt_install_override_mode
20136 # Command to use after installation of a shared archive.
20137 postinstall_cmds=$lt_postinstall_cmds
20139 # Command to use after uninstallation of a shared archive.
20140 postuninstall_cmds=$lt_postuninstall_cmds
20142 # Commands used to finish a libtool library installation in a directory.
20143 finish_cmds=$lt_finish_cmds
20145 # As "finish_cmds", except a single script fragment to be evaled but
20146 # not shown.
20147 finish_eval=$lt_finish_eval
20149 # Whether we should hardcode library paths into libraries.
20150 hardcode_into_libs=$hardcode_into_libs
20152 # Compile-time system search path for libraries.
20153 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20155 # Run-time system search path for libraries.
20156 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20158 # Whether dlopen is supported.
20159 dlopen_support=$enable_dlopen
20161 # Whether dlopen of programs is supported.
20162 dlopen_self=$enable_dlopen_self
20164 # Whether dlopen of statically linked programs is supported.
20165 dlopen_self_static=$enable_dlopen_self_static
20167 # Commands to strip libraries.
20168 old_striplib=$lt_old_striplib
20169 striplib=$lt_striplib
20172 # The linker used to build libraries.
20173 LD=$lt_LD
20175 # How to create reloadable object files.
20176 reload_flag=$lt_reload_flag
20177 reload_cmds=$lt_reload_cmds
20179 # Commands used to build an old-style archive.
20180 old_archive_cmds=$lt_old_archive_cmds
20182 # A language specific compiler.
20183 CC=$lt_compiler
20185 # Is the compiler the GNU compiler?
20186 with_gcc=$GCC
20188 # Compiler flag to turn off builtin functions.
20189 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20191 # How to pass a linker flag through the compiler.
20192 wl=$lt_lt_prog_compiler_wl
20194 # Additional compiler flags for building library objects.
20195 pic_flag=$lt_lt_prog_compiler_pic
20197 # Compiler flag to prevent dynamic linking.
20198 link_static_flag=$lt_lt_prog_compiler_static
20200 # Does compiler simultaneously support -c and -o options?
20201 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20203 # Whether or not to add -lc for building shared libraries.
20204 build_libtool_need_lc=$archive_cmds_need_lc
20206 # Whether or not to disallow shared libs when runtime libs are static.
20207 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20209 # Compiler flag to allow reflexive dlopens.
20210 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20212 # Compiler flag to generate shared objects directly from archives.
20213 whole_archive_flag_spec=$lt_whole_archive_flag_spec
20215 # Whether the compiler copes with passing no objects directly.
20216 compiler_needs_object=$lt_compiler_needs_object
20218 # Create an old-style archive from a shared archive.
20219 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20221 # Create a temporary old-style archive to link instead of a shared archive.
20222 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20224 # Commands used to build a shared archive.
20225 archive_cmds=$lt_archive_cmds
20226 archive_expsym_cmds=$lt_archive_expsym_cmds
20228 # Commands used to build a loadable module if different from building
20229 # a shared archive.
20230 module_cmds=$lt_module_cmds
20231 module_expsym_cmds=$lt_module_expsym_cmds
20233 # Whether we are building with GNU ld or not.
20234 with_gnu_ld=$lt_with_gnu_ld
20236 # Flag that allows shared libraries with undefined symbols to be built.
20237 allow_undefined_flag=$lt_allow_undefined_flag
20239 # Flag that enforces no undefined symbols.
20240 no_undefined_flag=$lt_no_undefined_flag
20242 # Flag to hardcode \$libdir into a binary during linking.
20243 # This must work even if \$libdir does not exist
20244 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20246 # If ld is used when linking, flag to hardcode \$libdir into a binary
20247 # during linking. This must work even if \$libdir does not exist.
20248 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
20250 # Whether we need a single "-rpath" flag with a separated argument.
20251 hardcode_libdir_separator=$lt_hardcode_libdir_separator
20253 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20254 # DIR into the resulting binary.
20255 hardcode_direct=$hardcode_direct
20257 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20258 # DIR into the resulting binary and the resulting library dependency is
20259 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20260 # library is relocated.
20261 hardcode_direct_absolute=$hardcode_direct_absolute
20263 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20264 # into the resulting binary.
20265 hardcode_minus_L=$hardcode_minus_L
20267 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20268 # into the resulting binary.
20269 hardcode_shlibpath_var=$hardcode_shlibpath_var
20271 # Set to "yes" if building a shared library automatically hardcodes DIR
20272 # into the library and all subsequent libraries and executables linked
20273 # against it.
20274 hardcode_automatic=$hardcode_automatic
20276 # Set to yes if linker adds runtime paths of dependent libraries
20277 # to runtime path list.
20278 inherit_rpath=$inherit_rpath
20280 # Whether libtool must link a program against all its dependency libraries.
20281 link_all_deplibs=$link_all_deplibs
20283 # Fix the shell variable \$srcfile for the compiler.
20284 fix_srcfile_path=$lt_fix_srcfile_path
20286 # Set to "yes" if exported symbols are required.
20287 always_export_symbols=$always_export_symbols
20289 # The commands to list exported symbols.
20290 export_symbols_cmds=$lt_export_symbols_cmds
20292 # Symbols that should not be listed in the preloaded symbols.
20293 exclude_expsyms=$lt_exclude_expsyms
20295 # Symbols that must always be exported.
20296 include_expsyms=$lt_include_expsyms
20298 # Commands necessary for linking programs (against libraries) with templates.
20299 prelink_cmds=$lt_prelink_cmds
20301 # Specify filename containing input files.
20302 file_list_spec=$lt_file_list_spec
20304 # How to hardcode a shared library path into an executable.
20305 hardcode_action=$hardcode_action
20307 # The directories searched by this compiler when creating a shared library.
20308 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
20310 # Dependencies to place before and after the objects being linked to
20311 # create a shared library.
20312 predep_objects=$lt_predep_objects
20313 postdep_objects=$lt_postdep_objects
20314 predeps=$lt_predeps
20315 postdeps=$lt_postdeps
20317 # The library search path used internally by the compiler when linking
20318 # a shared library.
20319 compiler_lib_search_path=$lt_compiler_lib_search_path
20321 # ### END LIBTOOL CONFIG
20323 _LT_EOF
20325 case $host_os in
20326 aix3*)
20327 cat <<\_LT_EOF >> "$cfgfile"
20328 # AIX sometimes has problems with the GCC collect2 program. For some
20329 # reason, if we set the COLLECT_NAMES environment variable, the problems
20330 # vanish in a puff of smoke.
20331 if test "X${COLLECT_NAMES+set}" != Xset; then
20332 COLLECT_NAMES=
20333 export COLLECT_NAMES
20335 _LT_EOF
20337 esac
20340 ltmain="$ac_aux_dir/ltmain.sh"
20343 # We use sed instead of cat because bash on DJGPP gets confused if
20344 # if finds mixed CR/LF and LF-only lines. Since sed operates in
20345 # text mode, it properly converts lines to CR/LF. This bash problem
20346 # is reportedly fixed, but why not run on old versions too?
20347 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
20348 || (rm -f "$cfgfile"; exit 1)
20350 case $xsi_shell in
20351 yes)
20352 cat << \_LT_EOF >> "$cfgfile"
20354 # func_dirname file append nondir_replacement
20355 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
20356 # otherwise set result to NONDIR_REPLACEMENT.
20357 func_dirname ()
20359 case ${1} in
20360 */*) func_dirname_result="${1%/*}${2}" ;;
20361 * ) func_dirname_result="${3}" ;;
20362 esac
20365 # func_basename file
20366 func_basename ()
20368 func_basename_result="${1##*/}"
20371 # func_dirname_and_basename file append nondir_replacement
20372 # perform func_basename and func_dirname in a single function
20373 # call:
20374 # dirname: Compute the dirname of FILE. If nonempty,
20375 # add APPEND to the result, otherwise set result
20376 # to NONDIR_REPLACEMENT.
20377 # value returned in "$func_dirname_result"
20378 # basename: Compute filename of FILE.
20379 # value retuned in "$func_basename_result"
20380 # Implementation must be kept synchronized with func_dirname
20381 # and func_basename. For efficiency, we do not delegate to
20382 # those functions but instead duplicate the functionality here.
20383 func_dirname_and_basename ()
20385 case ${1} in
20386 */*) func_dirname_result="${1%/*}${2}" ;;
20387 * ) func_dirname_result="${3}" ;;
20388 esac
20389 func_basename_result="${1##*/}"
20392 # func_stripname prefix suffix name
20393 # strip PREFIX and SUFFIX off of NAME.
20394 # PREFIX and SUFFIX must not contain globbing or regex special
20395 # characters, hashes, percent signs, but SUFFIX may contain a leading
20396 # dot (in which case that matches only a dot).
20397 func_stripname ()
20399 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
20400 # positional parameters, so assign one to ordinary parameter first.
20401 func_stripname_result=${3}
20402 func_stripname_result=${func_stripname_result#"${1}"}
20403 func_stripname_result=${func_stripname_result%"${2}"}
20406 # func_opt_split
20407 func_opt_split ()
20409 func_opt_split_opt=${1%%=*}
20410 func_opt_split_arg=${1#*=}
20413 # func_lo2o object
20414 func_lo2o ()
20416 case ${1} in
20417 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
20418 *) func_lo2o_result=${1} ;;
20419 esac
20422 # func_xform libobj-or-source
20423 func_xform ()
20425 func_xform_result=${1%.*}.lo
20428 # func_arith arithmetic-term...
20429 func_arith ()
20431 func_arith_result=$(( $* ))
20434 # func_len string
20435 # STRING may not start with a hyphen.
20436 func_len ()
20438 func_len_result=${#1}
20441 _LT_EOF
20443 *) # Bourne compatible functions.
20444 cat << \_LT_EOF >> "$cfgfile"
20446 # func_dirname file append nondir_replacement
20447 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
20448 # otherwise set result to NONDIR_REPLACEMENT.
20449 func_dirname ()
20451 # Extract subdirectory from the argument.
20452 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
20453 if test "X$func_dirname_result" = "X${1}"; then
20454 func_dirname_result="${3}"
20455 else
20456 func_dirname_result="$func_dirname_result${2}"
20460 # func_basename file
20461 func_basename ()
20463 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
20467 # func_stripname prefix suffix name
20468 # strip PREFIX and SUFFIX off of NAME.
20469 # PREFIX and SUFFIX must not contain globbing or regex special
20470 # characters, hashes, percent signs, but SUFFIX may contain a leading
20471 # dot (in which case that matches only a dot).
20472 # func_strip_suffix prefix name
20473 func_stripname ()
20475 case ${2} in
20476 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
20477 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
20478 esac
20481 # sed scripts:
20482 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
20483 my_sed_long_arg='1s/^-[^=]*=//'
20485 # func_opt_split
20486 func_opt_split ()
20488 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
20489 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
20492 # func_lo2o object
20493 func_lo2o ()
20495 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
20498 # func_xform libobj-or-source
20499 func_xform ()
20501 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
20504 # func_arith arithmetic-term...
20505 func_arith ()
20507 func_arith_result=`expr "$@"`
20510 # func_len string
20511 # STRING may not start with a hyphen.
20512 func_len ()
20514 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
20517 _LT_EOF
20518 esac
20520 case $lt_shell_append in
20521 yes)
20522 cat << \_LT_EOF >> "$cfgfile"
20524 # func_append var value
20525 # Append VALUE to the end of shell variable VAR.
20526 func_append ()
20528 eval "$1+=\$2"
20530 _LT_EOF
20533 cat << \_LT_EOF >> "$cfgfile"
20535 # func_append var value
20536 # Append VALUE to the end of shell variable VAR.
20537 func_append ()
20539 eval "$1=\$$1\$2"
20542 _LT_EOF
20544 esac
20547 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
20548 || (rm -f "$cfgfile"; exit 1)
20550 mv -f "$cfgfile" "$ofile" ||
20551 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20552 chmod +x "$ofile"
20555 cat <<_LT_EOF >> "$ofile"
20557 # ### BEGIN LIBTOOL TAG CONFIG: CXX
20559 # The linker used to build libraries.
20560 LD=$lt_LD_CXX
20562 # How to create reloadable object files.
20563 reload_flag=$lt_reload_flag_CXX
20564 reload_cmds=$lt_reload_cmds_CXX
20566 # Commands used to build an old-style archive.
20567 old_archive_cmds=$lt_old_archive_cmds_CXX
20569 # A language specific compiler.
20570 CC=$lt_compiler_CXX
20572 # Is the compiler the GNU compiler?
20573 with_gcc=$GCC_CXX
20575 # Compiler flag to turn off builtin functions.
20576 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20578 # How to pass a linker flag through the compiler.
20579 wl=$lt_lt_prog_compiler_wl_CXX
20581 # Additional compiler flags for building library objects.
20582 pic_flag=$lt_lt_prog_compiler_pic_CXX
20584 # Compiler flag to prevent dynamic linking.
20585 link_static_flag=$lt_lt_prog_compiler_static_CXX
20587 # Does compiler simultaneously support -c and -o options?
20588 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20590 # Whether or not to add -lc for building shared libraries.
20591 build_libtool_need_lc=$archive_cmds_need_lc_CXX
20593 # Whether or not to disallow shared libs when runtime libs are static.
20594 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20596 # Compiler flag to allow reflexive dlopens.
20597 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20599 # Compiler flag to generate shared objects directly from archives.
20600 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20602 # Whether the compiler copes with passing no objects directly.
20603 compiler_needs_object=$lt_compiler_needs_object_CXX
20605 # Create an old-style archive from a shared archive.
20606 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20608 # Create a temporary old-style archive to link instead of a shared archive.
20609 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20611 # Commands used to build a shared archive.
20612 archive_cmds=$lt_archive_cmds_CXX
20613 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20615 # Commands used to build a loadable module if different from building
20616 # a shared archive.
20617 module_cmds=$lt_module_cmds_CXX
20618 module_expsym_cmds=$lt_module_expsym_cmds_CXX
20620 # Whether we are building with GNU ld or not.
20621 with_gnu_ld=$lt_with_gnu_ld_CXX
20623 # Flag that allows shared libraries with undefined symbols to be built.
20624 allow_undefined_flag=$lt_allow_undefined_flag_CXX
20626 # Flag that enforces no undefined symbols.
20627 no_undefined_flag=$lt_no_undefined_flag_CXX
20629 # Flag to hardcode \$libdir into a binary during linking.
20630 # This must work even if \$libdir does not exist
20631 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20633 # If ld is used when linking, flag to hardcode \$libdir into a binary
20634 # during linking. This must work even if \$libdir does not exist.
20635 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
20637 # Whether we need a single "-rpath" flag with a separated argument.
20638 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20640 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20641 # DIR into the resulting binary.
20642 hardcode_direct=$hardcode_direct_CXX
20644 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20645 # DIR into the resulting binary and the resulting library dependency is
20646 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20647 # library is relocated.
20648 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
20650 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20651 # into the resulting binary.
20652 hardcode_minus_L=$hardcode_minus_L_CXX
20654 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20655 # into the resulting binary.
20656 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20658 # Set to "yes" if building a shared library automatically hardcodes DIR
20659 # into the library and all subsequent libraries and executables linked
20660 # against it.
20661 hardcode_automatic=$hardcode_automatic_CXX
20663 # Set to yes if linker adds runtime paths of dependent libraries
20664 # to runtime path list.
20665 inherit_rpath=$inherit_rpath_CXX
20667 # Whether libtool must link a program against all its dependency libraries.
20668 link_all_deplibs=$link_all_deplibs_CXX
20670 # Fix the shell variable \$srcfile for the compiler.
20671 fix_srcfile_path=$lt_fix_srcfile_path_CXX
20673 # Set to "yes" if exported symbols are required.
20674 always_export_symbols=$always_export_symbols_CXX
20676 # The commands to list exported symbols.
20677 export_symbols_cmds=$lt_export_symbols_cmds_CXX
20679 # Symbols that should not be listed in the preloaded symbols.
20680 exclude_expsyms=$lt_exclude_expsyms_CXX
20682 # Symbols that must always be exported.
20683 include_expsyms=$lt_include_expsyms_CXX
20685 # Commands necessary for linking programs (against libraries) with templates.
20686 prelink_cmds=$lt_prelink_cmds_CXX
20688 # Specify filename containing input files.
20689 file_list_spec=$lt_file_list_spec_CXX
20691 # How to hardcode a shared library path into an executable.
20692 hardcode_action=$hardcode_action_CXX
20694 # The directories searched by this compiler when creating a shared library.
20695 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
20697 # Dependencies to place before and after the objects being linked to
20698 # create a shared library.
20699 predep_objects=$lt_predep_objects_CXX
20700 postdep_objects=$lt_postdep_objects_CXX
20701 predeps=$lt_predeps_CXX
20702 postdeps=$lt_postdeps_CXX
20704 # The library search path used internally by the compiler when linking
20705 # a shared library.
20706 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20708 # ### END LIBTOOL TAG CONFIG: CXX
20709 _LT_EOF
20712 "gstdint.h":C)
20713 if test "$GCC" = yes; then
20714 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
20715 else
20716 echo "/* generated for $CC */" > tmp-stdint.h
20719 sed 's/^ *//' >> tmp-stdint.h <<EOF
20721 #ifndef GCC_GENERATED_STDINT_H
20722 #define GCC_GENERATED_STDINT_H 1
20724 #include <sys/types.h>
20727 if test "$acx_cv_header_stdint" != stdint.h; then
20728 echo "#include <stddef.h>" >> tmp-stdint.h
20730 if test "$acx_cv_header_stdint" != stddef.h; then
20731 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
20734 sed 's/^ *//' >> tmp-stdint.h <<EOF
20735 /* glibc uses these symbols as guards to prevent redefinitions. */
20736 #ifdef __int8_t_defined
20737 #define _INT8_T
20738 #define _INT16_T
20739 #define _INT32_T
20740 #endif
20741 #ifdef __uint32_t_defined
20742 #define _UINT32_T
20743 #endif
20747 # ----------------- done header, emit basic int types -------------
20748 if test "$acx_cv_header_stdint" = stddef.h; then
20749 sed 's/^ *//' >> tmp-stdint.h <<EOF
20751 #ifndef _UINT8_T
20752 #define _UINT8_T
20753 #ifndef __uint8_t_defined
20754 #define __uint8_t_defined
20755 #ifndef uint8_t
20756 typedef unsigned $acx_cv_type_int8_t uint8_t;
20757 #endif
20758 #endif
20759 #endif
20761 #ifndef _UINT16_T
20762 #define _UINT16_T
20763 #ifndef __uint16_t_defined
20764 #define __uint16_t_defined
20765 #ifndef uint16_t
20766 typedef unsigned $acx_cv_type_int16_t uint16_t;
20767 #endif
20768 #endif
20769 #endif
20771 #ifndef _UINT32_T
20772 #define _UINT32_T
20773 #ifndef __uint32_t_defined
20774 #define __uint32_t_defined
20775 #ifndef uint32_t
20776 typedef unsigned $acx_cv_type_int32_t uint32_t;
20777 #endif
20778 #endif
20779 #endif
20781 #ifndef _INT8_T
20782 #define _INT8_T
20783 #ifndef __int8_t_defined
20784 #define __int8_t_defined
20785 #ifndef int8_t
20786 typedef $acx_cv_type_int8_t int8_t;
20787 #endif
20788 #endif
20789 #endif
20791 #ifndef _INT16_T
20792 #define _INT16_T
20793 #ifndef __int16_t_defined
20794 #define __int16_t_defined
20795 #ifndef int16_t
20796 typedef $acx_cv_type_int16_t int16_t;
20797 #endif
20798 #endif
20799 #endif
20801 #ifndef _INT32_T
20802 #define _INT32_T
20803 #ifndef __int32_t_defined
20804 #define __int32_t_defined
20805 #ifndef int32_t
20806 typedef $acx_cv_type_int32_t int32_t;
20807 #endif
20808 #endif
20809 #endif
20811 elif test "$ac_cv_type_u_int32_t" = yes; then
20812 sed 's/^ *//' >> tmp-stdint.h <<EOF
20814 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
20815 #ifndef _INT8_T
20816 #define _INT8_T
20817 #endif
20818 #ifndef _INT16_T
20819 #define _INT16_T
20820 #endif
20821 #ifndef _INT32_T
20822 #define _INT32_T
20823 #endif
20825 #ifndef _UINT8_T
20826 #define _UINT8_T
20827 #ifndef __uint8_t_defined
20828 #define __uint8_t_defined
20829 #ifndef uint8_t
20830 typedef u_int8_t uint8_t;
20831 #endif
20832 #endif
20833 #endif
20835 #ifndef _UINT16_T
20836 #define _UINT16_T
20837 #ifndef __uint16_t_defined
20838 #define __uint16_t_defined
20839 #ifndef uint16_t
20840 typedef u_int16_t uint16_t;
20841 #endif
20842 #endif
20843 #endif
20845 #ifndef _UINT32_T
20846 #define _UINT32_T
20847 #ifndef __uint32_t_defined
20848 #define __uint32_t_defined
20849 #ifndef uint32_t
20850 typedef u_int32_t uint32_t;
20851 #endif
20852 #endif
20853 #endif
20855 else
20856 sed 's/^ *//' >> tmp-stdint.h <<EOF
20858 /* Some systems have guard macros to prevent redefinitions, define them. */
20859 #ifndef _INT8_T
20860 #define _INT8_T
20861 #endif
20862 #ifndef _INT16_T
20863 #define _INT16_T
20864 #endif
20865 #ifndef _INT32_T
20866 #define _INT32_T
20867 #endif
20868 #ifndef _UINT8_T
20869 #define _UINT8_T
20870 #endif
20871 #ifndef _UINT16_T
20872 #define _UINT16_T
20873 #endif
20874 #ifndef _UINT32_T
20875 #define _UINT32_T
20876 #endif
20880 # ------------- done basic int types, emit int64_t types ------------
20881 if test "$ac_cv_type_uint64_t" = yes; then
20882 sed 's/^ *//' >> tmp-stdint.h <<EOF
20884 /* system headers have good uint64_t and int64_t */
20885 #ifndef _INT64_T
20886 #define _INT64_T
20887 #endif
20888 #ifndef _UINT64_T
20889 #define _UINT64_T
20890 #endif
20892 elif test "$ac_cv_type_u_int64_t" = yes; then
20893 sed 's/^ *//' >> tmp-stdint.h <<EOF
20895 /* system headers have an u_int64_t (and int64_t) */
20896 #ifndef _INT64_T
20897 #define _INT64_T
20898 #endif
20899 #ifndef _UINT64_T
20900 #define _UINT64_T
20901 #ifndef __uint64_t_defined
20902 #define __uint64_t_defined
20903 #ifndef uint64_t
20904 typedef u_int64_t uint64_t;
20905 #endif
20906 #endif
20907 #endif
20909 elif test -n "$acx_cv_type_int64_t"; then
20910 sed 's/^ *//' >> tmp-stdint.h <<EOF
20912 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
20913 #ifndef _INT64_T
20914 #define _INT64_T
20915 #ifndef int64_t
20916 typedef $acx_cv_type_int64_t int64_t;
20917 #endif
20918 #endif
20919 #ifndef _UINT64_T
20920 #define _UINT64_T
20921 #ifndef __uint64_t_defined
20922 #define __uint64_t_defined
20923 #ifndef uint64_t
20924 typedef unsigned $acx_cv_type_int64_t uint64_t;
20925 #endif
20926 #endif
20927 #endif
20929 else
20930 sed 's/^ *//' >> tmp-stdint.h <<EOF
20932 /* some common heuristics for int64_t, using compiler-specific tests */
20933 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
20934 #ifndef _INT64_T
20935 #define _INT64_T
20936 #ifndef __int64_t_defined
20937 #ifndef int64_t
20938 typedef long long int64_t;
20939 #endif
20940 #endif
20941 #endif
20942 #ifndef _UINT64_T
20943 #define _UINT64_T
20944 #ifndef uint64_t
20945 typedef unsigned long long uint64_t;
20946 #endif
20947 #endif
20949 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
20950 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
20951 does not implement __extension__. But that compiler doesn't define
20952 __GNUC_MINOR__. */
20953 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
20954 # define __extension__
20955 # endif
20957 # ifndef _INT64_T
20958 # define _INT64_T
20959 # ifndef int64_t
20960 __extension__ typedef long long int64_t;
20961 # endif
20962 # endif
20963 # ifndef _UINT64_T
20964 # define _UINT64_T
20965 # ifndef uint64_t
20966 __extension__ typedef unsigned long long uint64_t;
20967 # endif
20968 # endif
20970 #elif !defined __STRICT_ANSI__
20971 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
20973 # ifndef _INT64_T
20974 # define _INT64_T
20975 # ifndef int64_t
20976 typedef __int64 int64_t;
20977 # endif
20978 # endif
20979 # ifndef _UINT64_T
20980 # define _UINT64_T
20981 # ifndef uint64_t
20982 typedef unsigned __int64 uint64_t;
20983 # endif
20984 # endif
20985 # endif /* compiler */
20987 #endif /* ANSI version */
20991 # ------------- done int64_t types, emit intptr types ------------
20992 if test "$ac_cv_type_uintptr_t" != yes; then
20993 sed 's/^ *//' >> tmp-stdint.h <<EOF
20995 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
20996 #ifndef __uintptr_t_defined
20997 #ifndef uintptr_t
20998 typedef u$acx_cv_type_intptr_t uintptr_t;
20999 #endif
21000 #endif
21001 #ifndef __intptr_t_defined
21002 #ifndef intptr_t
21003 typedef $acx_cv_type_intptr_t intptr_t;
21004 #endif
21005 #endif
21009 # ------------- done intptr types, emit int_least types ------------
21010 if test "$ac_cv_type_int_least32_t" != yes; then
21011 sed 's/^ *//' >> tmp-stdint.h <<EOF
21013 /* Define int_least types */
21014 typedef int8_t int_least8_t;
21015 typedef int16_t int_least16_t;
21016 typedef int32_t int_least32_t;
21017 #ifdef _INT64_T
21018 typedef int64_t int_least64_t;
21019 #endif
21021 typedef uint8_t uint_least8_t;
21022 typedef uint16_t uint_least16_t;
21023 typedef uint32_t uint_least32_t;
21024 #ifdef _UINT64_T
21025 typedef uint64_t uint_least64_t;
21026 #endif
21030 # ------------- done intptr types, emit int_fast types ------------
21031 if test "$ac_cv_type_int_fast32_t" != yes; then
21032 sed 's/^ *//' >> tmp-stdint.h <<EOF
21034 /* Define int_fast types. short is often slow */
21035 typedef int8_t int_fast8_t;
21036 typedef int int_fast16_t;
21037 typedef int32_t int_fast32_t;
21038 #ifdef _INT64_T
21039 typedef int64_t int_fast64_t;
21040 #endif
21042 typedef uint8_t uint_fast8_t;
21043 typedef unsigned int uint_fast16_t;
21044 typedef uint32_t uint_fast32_t;
21045 #ifdef _UINT64_T
21046 typedef uint64_t uint_fast64_t;
21047 #endif
21051 if test "$ac_cv_type_uintmax_t" != yes; then
21052 sed 's/^ *//' >> tmp-stdint.h <<EOF
21054 /* Define intmax based on what we found */
21055 #ifndef intmax_t
21056 #ifdef _INT64_T
21057 typedef int64_t intmax_t;
21058 #else
21059 typedef long intmax_t;
21060 #endif
21061 #endif
21062 #ifndef uintmax_t
21063 #ifdef _UINT64_T
21064 typedef uint64_t uintmax_t;
21065 #else
21066 typedef unsigned long uintmax_t;
21067 #endif
21068 #endif
21072 sed 's/^ *//' >> tmp-stdint.h <<EOF
21074 #endif /* GCC_GENERATED_STDINT_H */
21077 if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
21078 rm -f tmp-stdint.h
21079 else
21080 mv -f tmp-stdint.h gstdint.h
21085 esac
21086 done # for ac_tag
21089 as_fn_exit 0
21090 _ACEOF
21091 ac_clean_files=$ac_clean_files_save
21093 test $ac_write_fail = 0 ||
21094 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21097 # configure is writing to config.log, and then calls config.status.
21098 # config.status does its own redirection, appending to config.log.
21099 # Unfortunately, on DOS this fails, as config.log is still kept open
21100 # by configure, so config.status won't be able to write to it; its
21101 # output is simply discarded. So we exec the FD to /dev/null,
21102 # effectively closing config.log, so it can be properly (re)opened and
21103 # appended to by config.status. When coming back to configure, we
21104 # need to make the FD available again.
21105 if test "$no_create" != yes; then
21106 ac_cs_success=:
21107 ac_config_status_args=
21108 test "$silent" = yes &&
21109 ac_config_status_args="$ac_config_status_args --quiet"
21110 exec 5>/dev/null
21111 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21112 exec 5>>config.log
21113 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21114 # would make configure fail if this is the last instruction.
21115 $ac_cs_success || as_fn_exit 1
21117 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21118 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21119 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}