testsuite: fix anon6 mangling [PR112846]
[official-gcc.git] / libcc1 / configure
blobea689a353c8e562c7ef1036f395bca0b7a1fe619
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for libcc1 version-unused.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
30 esac
34 as_nl='
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
174 esac
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
190 else
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1
201 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 PATH=/empty FPATH=/empty; export PATH FPATH
206 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
207 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
208 if (eval "$as_required") 2>/dev/null; then :
209 as_have_required=yes
210 else
211 as_have_required=no
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
215 else
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217 as_found=false
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
222 as_found=:
223 case $as_dir in #(
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 break 2
235 done;;
236 esac
237 as_found=false
238 done
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
242 fi; }
243 IFS=$as_save_IFS
246 if test "x$CONFIG_SHELL" != x; then :
247 export CONFIG_SHELL
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
252 BASH_ENV=/dev/null
253 ENV=/dev/null
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255 case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260 esac
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265 exit 255
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274 else
275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
280 exit 1
284 SHELL=${CONFIG_SHELL-/bin/sh}
285 export SHELL
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
293 # as_fn_unset VAR
294 # ---------------
295 # Portably unset VAR.
296 as_fn_unset ()
298 { eval $1=; unset $1;}
300 as_unset=as_fn_unset
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
305 as_fn_set_status ()
307 return $1
308 } # as_fn_set_status
310 # as_fn_exit STATUS
311 # -----------------
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313 as_fn_exit ()
315 set +e
316 as_fn_set_status $1
317 exit $1
318 } # as_fn_exit
320 # as_fn_mkdir_p
321 # -------------
322 # Create "$as_dir" as a directory, including parents if necessary.
323 as_fn_mkdir_p ()
326 case $as_dir in #(
327 -*) as_dir=./$as_dir;;
328 esac
329 test -d "$as_dir" || eval $as_mkdir_p || {
330 as_dirs=
331 while :; do
332 case $as_dir in #(
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334 *) as_qdir=$as_dir;;
335 esac
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344 s//\1/
347 /^X\(\/\/\)[^/].*/{
348 s//\1/
351 /^X\(\/\/\)$/{
352 s//\1/
355 /^X\(\/\).*/{
356 s//\1/
359 s/.*/./; q'`
360 test -d "$as_dir" && break
361 done
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
366 } # as_fn_mkdir_p
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
380 # implementations.
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
384 eval $1+=\$2
386 else
387 as_fn_append ()
389 eval $1=\$$1\$2
391 fi # as_fn_append
393 # as_fn_arith ARG...
394 # ------------------
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399 eval 'as_fn_arith ()
401 as_val=$(( $* ))
403 else
404 as_fn_arith ()
406 as_val=`expr "$@" || test $? -eq 1`
408 fi # as_fn_arith
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
416 as_fn_error ()
418 as_status=$1; test $as_status -eq 0 && as_status=1
419 if test "$4"; then
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit $as_status
425 } # as_fn_error
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 as_expr=expr
430 else
431 as_expr=false
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 as_basename=basename
436 else
437 as_basename=false
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_dirname=dirname
442 else
443 as_dirname=false
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450 $as_echo X/"$0" |
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
452 s//\1/
455 /^X\/\(\/\/\)$/{
456 s//\1/
459 /^X\/\(\/\).*/{
460 s//\1/
463 s/.*/./; q'`
465 # Avoid depending upon Character Ranges.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_cr_alnum=$as_cr_Letters$as_cr_digits
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
478 sed -n '
480 /[$]LINENO/=
481 ' <$as_myself |
482 sed '
483 s/[$]LINENO.*/&-/
484 t lineno
486 :lineno
488 :loop
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490 t loop
491 s/-\n.*//
492 ' >$as_me.lineno &&
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
503 . "./$as_me.lineno"
504 # Exit status is that of the last command.
505 exit
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
510 -n*)
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
513 xy) ECHO_C='\c';;
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
515 ECHO_T=' ';;
516 esac;;
518 ECHO_N='-n';;
519 esac
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
524 else
525 rm -f conf$$.dir
526 mkdir conf$$.dir 2>/dev/null
528 if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s='ln -s'
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536 as_ln_s='cp -pR'
537 elif ln conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s=ln
539 else
540 as_ln_s='cp -pR'
542 else
543 as_ln_s='cp -pR'
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
548 if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
550 else
551 test -d ./-p && rmdir ./-p
552 as_mkdir_p=false
555 as_test_x='test -x'
556 as_executable_p=as_fn_executable_p
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
564 SHELL=${CONFIG_SHELL-/bin/sh}
567 test -n "$DJDIR" || exec 7<&0 </dev/null
568 exec 6>&1
570 # Name of the host.
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
576 # Initializations.
578 ac_default_prefix=/usr/local
579 ac_clean_files=
580 ac_config_libobj_dir=.
581 LIBOBJS=
582 cross_compiling=no
583 subdirs=
584 MFLAGS=
585 MAKEFLAGS=
587 # Identity of this package.
588 PACKAGE_NAME='libcc1'
589 PACKAGE_TARNAME='libcc1'
590 PACKAGE_VERSION='version-unused'
591 PACKAGE_STRING='libcc1 version-unused'
592 PACKAGE_BUGREPORT=''
593 PACKAGE_URL=''
595 ac_unique_file="libcc1.cc"
596 # Factoring default headers for most tests.
597 ac_includes_default="\
598 #include <stdio.h>
599 #ifdef HAVE_SYS_TYPES_H
600 # include <sys/types.h>
601 #endif
602 #ifdef HAVE_SYS_STAT_H
603 # include <sys/stat.h>
604 #endif
605 #ifdef STDC_HEADERS
606 # include <stdlib.h>
607 # include <stddef.h>
608 #else
609 # ifdef HAVE_STDLIB_H
610 # include <stdlib.h>
611 # endif
612 #endif
613 #ifdef HAVE_STRING_H
614 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
615 # include <memory.h>
616 # endif
617 # include <string.h>
618 #endif
619 #ifdef HAVE_STRINGS_H
620 # include <strings.h>
621 #endif
622 #ifdef HAVE_INTTYPES_H
623 # include <inttypes.h>
624 #endif
625 #ifdef HAVE_STDINT_H
626 # include <stdint.h>
627 #endif
628 #ifdef HAVE_UNISTD_H
629 # include <unistd.h>
630 #endif"
632 ac_subst_vars='am__EXEEXT_FALSE
633 am__EXEEXT_TRUE
634 LTLIBOBJS
635 LIBOBJS
636 ENABLE_PLUGIN_FALSE
637 ENABLE_PLUGIN_TRUE
638 DARWIN_DYNAMIC_LOOKUP_FALSE
639 DARWIN_DYNAMIC_LOOKUP_TRUE
640 libsuffix
641 GMPINC
642 WERROR
643 WARN_FLAGS
644 CONFIG_STATUS_DEPENDENCIES
645 gcc_version
646 get_gcc_base_ver
647 CET_HOST_FLAGS
648 visibility
649 CXXCPP
650 am__fastdepCXX_FALSE
651 am__fastdepCXX_TRUE
652 CXXDEPMODE
653 ac_ct_CXX
654 CXXFLAGS
656 OTOOL64
657 OTOOL
658 LIPO
659 NMEDIT
660 DSYMUTIL
661 RANLIB
663 OBJDUMP
664 LN_S
666 ac_ct_DUMPBIN
667 DUMPBIN
669 FGREP
671 LIBTOOL
672 MAINT
673 MAINTAINER_MODE_FALSE
674 MAINTAINER_MODE_TRUE
675 AM_BACKSLASH
676 AM_DEFAULT_VERBOSITY
677 AM_DEFAULT_V
678 AM_V
679 am__fastdepCC_FALSE
680 am__fastdepCC_TRUE
681 CCDEPMODE
682 am__nodep
683 AMDEPBACKSLASH
684 AMDEP_FALSE
685 AMDEP_TRUE
686 am__quote
687 am__include
688 DEPDIR
689 am__untar
690 am__tar
691 AMTAR
692 am__leading_dot
693 SET_MAKE
695 mkdir_p
696 MKDIR_P
697 INSTALL_STRIP_PROGRAM
698 STRIP
699 install_sh
700 MAKEINFO
701 AUTOHEADER
702 AUTOMAKE
703 AUTOCONF
704 ACLOCAL
705 VERSION
706 PACKAGE
707 CYGPATH_W
708 am__isrc
709 INSTALL_DATA
710 INSTALL_SCRIPT
711 INSTALL_PROGRAM
712 target_subdir
713 host_subdir
714 build_subdir
715 build_libsubdir
716 target_noncanonical
717 EGREP
718 GREP
720 OBJEXT
721 EXEEXT
722 ac_ct_CC
723 CPPFLAGS
724 LDFLAGS
725 CFLAGS
727 target_os
728 target_vendor
729 target_cpu
730 target
731 host_os
732 host_vendor
733 host_cpu
734 host
735 build_os
736 build_vendor
737 build_cpu
738 build
739 target_alias
740 host_alias
741 build_alias
742 LIBS
743 ECHO_T
744 ECHO_N
745 ECHO_C
746 DEFS
747 mandir
748 localedir
749 libdir
750 psdir
751 pdfdir
752 dvidir
753 htmldir
754 infodir
755 docdir
756 oldincludedir
757 includedir
758 localstatedir
759 sharedstatedir
760 sysconfdir
761 datadir
762 datarootdir
763 libexecdir
764 sbindir
765 bindir
766 program_transform_name
767 prefix
768 exec_prefix
769 PACKAGE_URL
770 PACKAGE_BUGREPORT
771 PACKAGE_STRING
772 PACKAGE_VERSION
773 PACKAGE_TARNAME
774 PACKAGE_NAME
775 PATH_SEPARATOR
776 SHELL'
777 ac_subst_files=''
778 ac_user_opts='
779 enable_option_checking
780 with_build_libsubdir
781 enable_dependency_tracking
782 enable_silent_rules
783 enable_maintainer_mode
784 enable_static
785 enable_shared
786 with_pic
787 enable_fast_install
788 with_gnu_ld
789 enable_libtool_lock
790 enable_darwin_at_rpath
791 enable_cet
792 with_gcc_major_version_only
793 enable_werror_always
794 enable_plugin
796 ac_precious_vars='build_alias
797 host_alias
798 target_alias
800 CFLAGS
801 LDFLAGS
802 LIBS
803 CPPFLAGS
806 CXXFLAGS
808 CXXCPP
809 GMPINC'
812 # Initialize some variables set by options.
813 ac_init_help=
814 ac_init_version=false
815 ac_unrecognized_opts=
816 ac_unrecognized_sep=
817 # The variables have the same names as the options, with
818 # dashes changed to underlines.
819 cache_file=/dev/null
820 exec_prefix=NONE
821 no_create=
822 no_recursion=
823 prefix=NONE
824 program_prefix=NONE
825 program_suffix=NONE
826 program_transform_name=s,x,x,
827 silent=
828 site=
829 srcdir=
830 verbose=
831 x_includes=NONE
832 x_libraries=NONE
834 # Installation directory options.
835 # These are left unexpanded so users can "make install exec_prefix=/foo"
836 # and all the variables that are supposed to be based on exec_prefix
837 # by default will actually change.
838 # Use braces instead of parens because sh, perl, etc. also accept them.
839 # (The list follows the same order as the GNU Coding Standards.)
840 bindir='${exec_prefix}/bin'
841 sbindir='${exec_prefix}/sbin'
842 libexecdir='${exec_prefix}/libexec'
843 datarootdir='${prefix}/share'
844 datadir='${datarootdir}'
845 sysconfdir='${prefix}/etc'
846 sharedstatedir='${prefix}/com'
847 localstatedir='${prefix}/var'
848 includedir='${prefix}/include'
849 oldincludedir='/usr/include'
850 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
851 infodir='${datarootdir}/info'
852 htmldir='${docdir}'
853 dvidir='${docdir}'
854 pdfdir='${docdir}'
855 psdir='${docdir}'
856 libdir='${exec_prefix}/lib'
857 localedir='${datarootdir}/locale'
858 mandir='${datarootdir}/man'
860 ac_prev=
861 ac_dashdash=
862 for ac_option
864 # If the previous option needs an argument, assign it.
865 if test -n "$ac_prev"; then
866 eval $ac_prev=\$ac_option
867 ac_prev=
868 continue
871 case $ac_option in
872 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
873 *=) ac_optarg= ;;
874 *) ac_optarg=yes ;;
875 esac
877 # Accept the important Cygnus configure options, so we can diagnose typos.
879 case $ac_dashdash$ac_option in
881 ac_dashdash=yes ;;
883 -bindir | --bindir | --bindi | --bind | --bin | --bi)
884 ac_prev=bindir ;;
885 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
886 bindir=$ac_optarg ;;
888 -build | --build | --buil | --bui | --bu)
889 ac_prev=build_alias ;;
890 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
891 build_alias=$ac_optarg ;;
893 -cache-file | --cache-file | --cache-fil | --cache-fi \
894 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
895 ac_prev=cache_file ;;
896 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
897 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
898 cache_file=$ac_optarg ;;
900 --config-cache | -C)
901 cache_file=config.cache ;;
903 -datadir | --datadir | --datadi | --datad)
904 ac_prev=datadir ;;
905 -datadir=* | --datadir=* | --datadi=* | --datad=*)
906 datadir=$ac_optarg ;;
908 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
909 | --dataroo | --dataro | --datar)
910 ac_prev=datarootdir ;;
911 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
912 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
913 datarootdir=$ac_optarg ;;
915 -disable-* | --disable-*)
916 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
917 # Reject names that are not valid shell variable names.
918 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
919 as_fn_error $? "invalid feature name: $ac_useropt"
920 ac_useropt_orig=$ac_useropt
921 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
922 case $ac_user_opts in
924 "enable_$ac_useropt"
925 "*) ;;
926 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
927 ac_unrecognized_sep=', ';;
928 esac
929 eval enable_$ac_useropt=no ;;
931 -docdir | --docdir | --docdi | --doc | --do)
932 ac_prev=docdir ;;
933 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
934 docdir=$ac_optarg ;;
936 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
937 ac_prev=dvidir ;;
938 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
939 dvidir=$ac_optarg ;;
941 -enable-* | --enable-*)
942 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
943 # Reject names that are not valid shell variable names.
944 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
945 as_fn_error $? "invalid feature name: $ac_useropt"
946 ac_useropt_orig=$ac_useropt
947 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
948 case $ac_user_opts in
950 "enable_$ac_useropt"
951 "*) ;;
952 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
953 ac_unrecognized_sep=', ';;
954 esac
955 eval enable_$ac_useropt=\$ac_optarg ;;
957 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
958 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
959 | --exec | --exe | --ex)
960 ac_prev=exec_prefix ;;
961 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
962 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
963 | --exec=* | --exe=* | --ex=*)
964 exec_prefix=$ac_optarg ;;
966 -gas | --gas | --ga | --g)
967 # Obsolete; use --with-gas.
968 with_gas=yes ;;
970 -help | --help | --hel | --he | -h)
971 ac_init_help=long ;;
972 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
973 ac_init_help=recursive ;;
974 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
975 ac_init_help=short ;;
977 -host | --host | --hos | --ho)
978 ac_prev=host_alias ;;
979 -host=* | --host=* | --hos=* | --ho=*)
980 host_alias=$ac_optarg ;;
982 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
983 ac_prev=htmldir ;;
984 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
985 | --ht=*)
986 htmldir=$ac_optarg ;;
988 -includedir | --includedir | --includedi | --included | --include \
989 | --includ | --inclu | --incl | --inc)
990 ac_prev=includedir ;;
991 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
992 | --includ=* | --inclu=* | --incl=* | --inc=*)
993 includedir=$ac_optarg ;;
995 -infodir | --infodir | --infodi | --infod | --info | --inf)
996 ac_prev=infodir ;;
997 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
998 infodir=$ac_optarg ;;
1000 -libdir | --libdir | --libdi | --libd)
1001 ac_prev=libdir ;;
1002 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1003 libdir=$ac_optarg ;;
1005 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1006 | --libexe | --libex | --libe)
1007 ac_prev=libexecdir ;;
1008 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1009 | --libexe=* | --libex=* | --libe=*)
1010 libexecdir=$ac_optarg ;;
1012 -localedir | --localedir | --localedi | --localed | --locale)
1013 ac_prev=localedir ;;
1014 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1015 localedir=$ac_optarg ;;
1017 -localstatedir | --localstatedir | --localstatedi | --localstated \
1018 | --localstate | --localstat | --localsta | --localst | --locals)
1019 ac_prev=localstatedir ;;
1020 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1021 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1022 localstatedir=$ac_optarg ;;
1024 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1025 ac_prev=mandir ;;
1026 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1027 mandir=$ac_optarg ;;
1029 -nfp | --nfp | --nf)
1030 # Obsolete; use --without-fp.
1031 with_fp=no ;;
1033 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1034 | --no-cr | --no-c | -n)
1035 no_create=yes ;;
1037 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1038 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1039 no_recursion=yes ;;
1041 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1042 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1043 | --oldin | --oldi | --old | --ol | --o)
1044 ac_prev=oldincludedir ;;
1045 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1046 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1047 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1048 oldincludedir=$ac_optarg ;;
1050 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1051 ac_prev=prefix ;;
1052 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1053 prefix=$ac_optarg ;;
1055 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1056 | --program-pre | --program-pr | --program-p)
1057 ac_prev=program_prefix ;;
1058 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1059 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1060 program_prefix=$ac_optarg ;;
1062 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1063 | --program-suf | --program-su | --program-s)
1064 ac_prev=program_suffix ;;
1065 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1066 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1067 program_suffix=$ac_optarg ;;
1069 -program-transform-name | --program-transform-name \
1070 | --program-transform-nam | --program-transform-na \
1071 | --program-transform-n | --program-transform- \
1072 | --program-transform | --program-transfor \
1073 | --program-transfo | --program-transf \
1074 | --program-trans | --program-tran \
1075 | --progr-tra | --program-tr | --program-t)
1076 ac_prev=program_transform_name ;;
1077 -program-transform-name=* | --program-transform-name=* \
1078 | --program-transform-nam=* | --program-transform-na=* \
1079 | --program-transform-n=* | --program-transform-=* \
1080 | --program-transform=* | --program-transfor=* \
1081 | --program-transfo=* | --program-transf=* \
1082 | --program-trans=* | --program-tran=* \
1083 | --progr-tra=* | --program-tr=* | --program-t=*)
1084 program_transform_name=$ac_optarg ;;
1086 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1087 ac_prev=pdfdir ;;
1088 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1089 pdfdir=$ac_optarg ;;
1091 -psdir | --psdir | --psdi | --psd | --ps)
1092 ac_prev=psdir ;;
1093 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1094 psdir=$ac_optarg ;;
1096 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1097 | -silent | --silent | --silen | --sile | --sil)
1098 silent=yes ;;
1100 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1101 ac_prev=sbindir ;;
1102 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1103 | --sbi=* | --sb=*)
1104 sbindir=$ac_optarg ;;
1106 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1107 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1108 | --sharedst | --shareds | --shared | --share | --shar \
1109 | --sha | --sh)
1110 ac_prev=sharedstatedir ;;
1111 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1112 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1113 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1114 | --sha=* | --sh=*)
1115 sharedstatedir=$ac_optarg ;;
1117 -site | --site | --sit)
1118 ac_prev=site ;;
1119 -site=* | --site=* | --sit=*)
1120 site=$ac_optarg ;;
1122 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1123 ac_prev=srcdir ;;
1124 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1125 srcdir=$ac_optarg ;;
1127 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1128 | --syscon | --sysco | --sysc | --sys | --sy)
1129 ac_prev=sysconfdir ;;
1130 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1131 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1132 sysconfdir=$ac_optarg ;;
1134 -target | --target | --targe | --targ | --tar | --ta | --t)
1135 ac_prev=target_alias ;;
1136 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1137 target_alias=$ac_optarg ;;
1139 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1140 verbose=yes ;;
1142 -version | --version | --versio | --versi | --vers | -V)
1143 ac_init_version=: ;;
1145 -with-* | --with-*)
1146 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1147 # Reject names that are not valid shell variable names.
1148 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1149 as_fn_error $? "invalid package name: $ac_useropt"
1150 ac_useropt_orig=$ac_useropt
1151 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1152 case $ac_user_opts in
1154 "with_$ac_useropt"
1155 "*) ;;
1156 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1157 ac_unrecognized_sep=', ';;
1158 esac
1159 eval with_$ac_useropt=\$ac_optarg ;;
1161 -without-* | --without-*)
1162 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1163 # Reject names that are not valid shell variable names.
1164 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1165 as_fn_error $? "invalid package name: $ac_useropt"
1166 ac_useropt_orig=$ac_useropt
1167 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1168 case $ac_user_opts in
1170 "with_$ac_useropt"
1171 "*) ;;
1172 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1173 ac_unrecognized_sep=', ';;
1174 esac
1175 eval with_$ac_useropt=no ;;
1177 --x)
1178 # Obsolete; use --with-x.
1179 with_x=yes ;;
1181 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1182 | --x-incl | --x-inc | --x-in | --x-i)
1183 ac_prev=x_includes ;;
1184 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1185 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1186 x_includes=$ac_optarg ;;
1188 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1189 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1190 ac_prev=x_libraries ;;
1191 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1192 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1193 x_libraries=$ac_optarg ;;
1195 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1196 Try \`$0 --help' for more information"
1199 *=*)
1200 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1201 # Reject names that are not valid shell variable names.
1202 case $ac_envvar in #(
1203 '' | [0-9]* | *[!_$as_cr_alnum]* )
1204 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1205 esac
1206 eval $ac_envvar=\$ac_optarg
1207 export $ac_envvar ;;
1210 # FIXME: should be removed in autoconf 3.0.
1211 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1212 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1213 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1214 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1217 esac
1218 done
1220 if test -n "$ac_prev"; then
1221 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1222 as_fn_error $? "missing argument to $ac_option"
1225 if test -n "$ac_unrecognized_opts"; then
1226 case $enable_option_checking in
1227 no) ;;
1228 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1229 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1230 esac
1233 # Check all directory arguments for consistency.
1234 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1235 datadir sysconfdir sharedstatedir localstatedir includedir \
1236 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1237 libdir localedir mandir
1239 eval ac_val=\$$ac_var
1240 # Remove trailing slashes.
1241 case $ac_val in
1242 */ )
1243 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1244 eval $ac_var=\$ac_val;;
1245 esac
1246 # Be sure to have absolute directory names.
1247 case $ac_val in
1248 [\\/$]* | ?:[\\/]* ) continue;;
1249 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1250 esac
1251 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1252 done
1254 # There might be people who depend on the old broken behavior: `$host'
1255 # used to hold the argument of --host etc.
1256 # FIXME: To remove some day.
1257 build=$build_alias
1258 host=$host_alias
1259 target=$target_alias
1261 # FIXME: To remove some day.
1262 if test "x$host_alias" != x; then
1263 if test "x$build_alias" = x; then
1264 cross_compiling=maybe
1265 elif test "x$build_alias" != "x$host_alias"; then
1266 cross_compiling=yes
1270 ac_tool_prefix=
1271 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1273 test "$silent" = yes && exec 6>/dev/null
1276 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1277 ac_ls_di=`ls -di .` &&
1278 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1279 as_fn_error $? "working directory cannot be determined"
1280 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1281 as_fn_error $? "pwd does not report name of working directory"
1284 # Find the source files, if location was not specified.
1285 if test -z "$srcdir"; then
1286 ac_srcdir_defaulted=yes
1287 # Try the directory containing this script, then the parent directory.
1288 ac_confdir=`$as_dirname -- "$as_myself" ||
1289 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1290 X"$as_myself" : 'X\(//\)[^/]' \| \
1291 X"$as_myself" : 'X\(//\)$' \| \
1292 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1293 $as_echo X"$as_myself" |
1294 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1295 s//\1/
1298 /^X\(\/\/\)[^/].*/{
1299 s//\1/
1302 /^X\(\/\/\)$/{
1303 s//\1/
1306 /^X\(\/\).*/{
1307 s//\1/
1310 s/.*/./; q'`
1311 srcdir=$ac_confdir
1312 if test ! -r "$srcdir/$ac_unique_file"; then
1313 srcdir=..
1315 else
1316 ac_srcdir_defaulted=no
1318 if test ! -r "$srcdir/$ac_unique_file"; then
1319 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1320 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1322 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1323 ac_abs_confdir=`(
1324 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1325 pwd)`
1326 # When building in place, set srcdir=.
1327 if test "$ac_abs_confdir" = "$ac_pwd"; then
1328 srcdir=.
1330 # Remove unnecessary trailing slashes from srcdir.
1331 # Double slashes in file names in object file debugging info
1332 # mess up M-x gdb in Emacs.
1333 case $srcdir in
1334 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1335 esac
1336 for ac_var in $ac_precious_vars; do
1337 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1338 eval ac_env_${ac_var}_value=\$${ac_var}
1339 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1340 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1341 done
1344 # Report the --help message.
1346 if test "$ac_init_help" = "long"; then
1347 # Omit some internal or obsolete options to make the list less imposing.
1348 # This message is too long to be a string in the A/UX 3.1 sh.
1349 cat <<_ACEOF
1350 \`configure' configures libcc1 version-unused to adapt to many kinds of systems.
1352 Usage: $0 [OPTION]... [VAR=VALUE]...
1354 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1355 VAR=VALUE. See below for descriptions of some of the useful variables.
1357 Defaults for the options are specified in brackets.
1359 Configuration:
1360 -h, --help display this help and exit
1361 --help=short display options specific to this package
1362 --help=recursive display the short help of all the included packages
1363 -V, --version display version information and exit
1364 -q, --quiet, --silent do not print \`checking ...' messages
1365 --cache-file=FILE cache test results in FILE [disabled]
1366 -C, --config-cache alias for \`--cache-file=config.cache'
1367 -n, --no-create do not create output files
1368 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1370 Installation directories:
1371 --prefix=PREFIX install architecture-independent files in PREFIX
1372 [$ac_default_prefix]
1373 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1374 [PREFIX]
1376 By default, \`make install' will install all the files in
1377 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1378 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1379 for instance \`--prefix=\$HOME'.
1381 For better control, use the options below.
1383 Fine tuning of the installation directories:
1384 --bindir=DIR user executables [EPREFIX/bin]
1385 --sbindir=DIR system admin executables [EPREFIX/sbin]
1386 --libexecdir=DIR program executables [EPREFIX/libexec]
1387 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1388 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1389 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1390 --libdir=DIR object code libraries [EPREFIX/lib]
1391 --includedir=DIR C header files [PREFIX/include]
1392 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1393 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1394 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1395 --infodir=DIR info documentation [DATAROOTDIR/info]
1396 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1397 --mandir=DIR man documentation [DATAROOTDIR/man]
1398 --docdir=DIR documentation root [DATAROOTDIR/doc/libcc1]
1399 --htmldir=DIR html documentation [DOCDIR]
1400 --dvidir=DIR dvi documentation [DOCDIR]
1401 --pdfdir=DIR pdf documentation [DOCDIR]
1402 --psdir=DIR ps documentation [DOCDIR]
1403 _ACEOF
1405 cat <<\_ACEOF
1407 Program names:
1408 --program-prefix=PREFIX prepend PREFIX to installed program names
1409 --program-suffix=SUFFIX append SUFFIX to installed program names
1410 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1412 System types:
1413 --build=BUILD configure for building on BUILD [guessed]
1414 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1415 --target=TARGET configure for building compilers for TARGET [HOST]
1416 _ACEOF
1419 if test -n "$ac_init_help"; then
1420 case $ac_init_help in
1421 short | recursive ) echo "Configuration of libcc1 version-unused:";;
1422 esac
1423 cat <<\_ACEOF
1425 Optional Features:
1426 --disable-option-checking ignore unrecognized --enable/--with options
1427 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1428 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1429 --enable-dependency-tracking
1430 do not reject slow dependency extractors
1431 --disable-dependency-tracking
1432 speeds up one-time build
1433 --enable-silent-rules less verbose build output (undo: "make V=1")
1434 --disable-silent-rules verbose build output (undo: "make V=0")
1435 --enable-maintainer-mode
1436 enable make rules and dependencies not useful (and
1437 sometimes confusing) to the casual installer
1438 --enable-static[=PKGS] build static libraries [default=no]
1439 --enable-shared[=PKGS] build shared libraries [default=yes]
1440 --enable-fast-install[=PKGS]
1441 optimize for fast installation [default=yes]
1442 --disable-libtool-lock avoid locking (might break parallel builds)
1443 --enable-darwin-at-rpath
1444 install libraries with @rpath/library-name, requires
1445 rpaths to be added to executables
1446 --enable-cet enable Intel CET in host libraries [default=auto]
1447 --enable-werror-always enable -Werror despite compiler version
1448 --enable-plugin enable plugin support
1450 Optional Packages:
1451 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1452 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1453 --with-build-libsubdir=DIR Directory where to find libraries for build system
1454 --with-pic try to use only PIC/non-PIC objects [default=use
1455 both]
1456 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1457 --with-gcc-major-version-only
1458 use only GCC major number in filesystem paths
1460 Some influential environment variables:
1461 CC C compiler command
1462 CFLAGS C compiler flags
1463 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1464 nonstandard directory <lib dir>
1465 LIBS libraries to pass to the linker, e.g. -l<library>
1466 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1467 you have headers in a nonstandard directory <include dir>
1468 CPP C preprocessor
1469 CXX C++ compiler command
1470 CXXFLAGS C++ compiler flags
1471 CXXCPP C++ preprocessor
1472 GMPINC How to find GMP include files
1474 Use these variables to override the choices made by `configure' or to help
1475 it to find libraries and programs with nonstandard names/locations.
1477 Report bugs to the package provider.
1478 _ACEOF
1479 ac_status=$?
1482 if test "$ac_init_help" = "recursive"; then
1483 # If there are subdirs, report their specific --help.
1484 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1485 test -d "$ac_dir" ||
1486 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1487 continue
1488 ac_builddir=.
1490 case "$ac_dir" in
1491 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1493 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1494 # A ".." for each directory in $ac_dir_suffix.
1495 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1496 case $ac_top_builddir_sub in
1497 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1498 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1499 esac ;;
1500 esac
1501 ac_abs_top_builddir=$ac_pwd
1502 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1503 # for backward compatibility:
1504 ac_top_builddir=$ac_top_build_prefix
1506 case $srcdir in
1507 .) # We are building in place.
1508 ac_srcdir=.
1509 ac_top_srcdir=$ac_top_builddir_sub
1510 ac_abs_top_srcdir=$ac_pwd ;;
1511 [\\/]* | ?:[\\/]* ) # Absolute name.
1512 ac_srcdir=$srcdir$ac_dir_suffix;
1513 ac_top_srcdir=$srcdir
1514 ac_abs_top_srcdir=$srcdir ;;
1515 *) # Relative name.
1516 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1517 ac_top_srcdir=$ac_top_build_prefix$srcdir
1518 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1519 esac
1520 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1522 cd "$ac_dir" || { ac_status=$?; continue; }
1523 # Check for guested configure.
1524 if test -f "$ac_srcdir/configure.gnu"; then
1525 echo &&
1526 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1527 elif test -f "$ac_srcdir/configure"; then
1528 echo &&
1529 $SHELL "$ac_srcdir/configure" --help=recursive
1530 else
1531 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1532 fi || ac_status=$?
1533 cd "$ac_pwd" || { ac_status=$?; break; }
1534 done
1537 test -n "$ac_init_help" && exit $ac_status
1538 if $ac_init_version; then
1539 cat <<\_ACEOF
1540 libcc1 configure version-unused
1541 generated by GNU Autoconf 2.69
1543 Copyright (C) 2012 Free Software Foundation, Inc.
1544 This configure script is free software; the Free Software Foundation
1545 gives unlimited permission to copy, distribute and modify it.
1546 _ACEOF
1547 exit
1550 ## ------------------------ ##
1551 ## Autoconf initialization. ##
1552 ## ------------------------ ##
1554 # ac_fn_c_try_compile LINENO
1555 # --------------------------
1556 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1557 ac_fn_c_try_compile ()
1559 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1560 rm -f conftest.$ac_objext
1561 if { { ac_try="$ac_compile"
1562 case "(($ac_try" in
1563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1564 *) ac_try_echo=$ac_try;;
1565 esac
1566 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1567 $as_echo "$ac_try_echo"; } >&5
1568 (eval "$ac_compile") 2>conftest.err
1569 ac_status=$?
1570 if test -s conftest.err; then
1571 grep -v '^ *+' conftest.err >conftest.er1
1572 cat conftest.er1 >&5
1573 mv -f conftest.er1 conftest.err
1575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1576 test $ac_status = 0; } && {
1577 test -z "$ac_c_werror_flag" ||
1578 test ! -s conftest.err
1579 } && test -s conftest.$ac_objext; then :
1580 ac_retval=0
1581 else
1582 $as_echo "$as_me: failed program was:" >&5
1583 sed 's/^/| /' conftest.$ac_ext >&5
1585 ac_retval=1
1587 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1588 as_fn_set_status $ac_retval
1590 } # ac_fn_c_try_compile
1592 # ac_fn_c_try_cpp LINENO
1593 # ----------------------
1594 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1595 ac_fn_c_try_cpp ()
1597 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1598 if { { ac_try="$ac_cpp conftest.$ac_ext"
1599 case "(($ac_try" in
1600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1601 *) ac_try_echo=$ac_try;;
1602 esac
1603 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1604 $as_echo "$ac_try_echo"; } >&5
1605 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1606 ac_status=$?
1607 if test -s conftest.err; then
1608 grep -v '^ *+' conftest.err >conftest.er1
1609 cat conftest.er1 >&5
1610 mv -f conftest.er1 conftest.err
1612 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1613 test $ac_status = 0; } > conftest.i && {
1614 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1615 test ! -s conftest.err
1616 }; then :
1617 ac_retval=0
1618 else
1619 $as_echo "$as_me: failed program was:" >&5
1620 sed 's/^/| /' conftest.$ac_ext >&5
1622 ac_retval=1
1624 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1625 as_fn_set_status $ac_retval
1627 } # ac_fn_c_try_cpp
1629 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1630 # -------------------------------------------------------
1631 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1632 # the include files in INCLUDES and setting the cache variable VAR
1633 # accordingly.
1634 ac_fn_c_check_header_mongrel ()
1636 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1637 if eval \${$3+:} false; then :
1638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1639 $as_echo_n "checking for $2... " >&6; }
1640 if eval \${$3+:} false; then :
1641 $as_echo_n "(cached) " >&6
1643 eval ac_res=\$$3
1644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1645 $as_echo "$ac_res" >&6; }
1646 else
1647 # Is the header compilable?
1648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1649 $as_echo_n "checking $2 usability... " >&6; }
1650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1651 /* end confdefs.h. */
1653 #include <$2>
1654 _ACEOF
1655 if ac_fn_c_try_compile "$LINENO"; then :
1656 ac_header_compiler=yes
1657 else
1658 ac_header_compiler=no
1660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1662 $as_echo "$ac_header_compiler" >&6; }
1664 # Is the header present?
1665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1666 $as_echo_n "checking $2 presence... " >&6; }
1667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1668 /* end confdefs.h. */
1669 #include <$2>
1670 _ACEOF
1671 if ac_fn_c_try_cpp "$LINENO"; then :
1672 ac_header_preproc=yes
1673 else
1674 ac_header_preproc=no
1676 rm -f conftest.err conftest.i conftest.$ac_ext
1677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1678 $as_echo "$ac_header_preproc" >&6; }
1680 # So? What about this header?
1681 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1682 yes:no: )
1683 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1684 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1685 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1686 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1688 no:yes:* )
1689 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1690 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1691 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1692 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1693 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1694 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1695 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1696 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1697 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1698 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1700 esac
1701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1702 $as_echo_n "checking for $2... " >&6; }
1703 if eval \${$3+:} false; then :
1704 $as_echo_n "(cached) " >&6
1705 else
1706 eval "$3=\$ac_header_compiler"
1708 eval ac_res=\$$3
1709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1710 $as_echo "$ac_res" >&6; }
1712 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1714 } # ac_fn_c_check_header_mongrel
1716 # ac_fn_c_try_run LINENO
1717 # ----------------------
1718 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1719 # that executables *can* be run.
1720 ac_fn_c_try_run ()
1722 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1723 if { { ac_try="$ac_link"
1724 case "(($ac_try" in
1725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1726 *) ac_try_echo=$ac_try;;
1727 esac
1728 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1729 $as_echo "$ac_try_echo"; } >&5
1730 (eval "$ac_link") 2>&5
1731 ac_status=$?
1732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1733 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1734 { { case "(($ac_try" in
1735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1736 *) ac_try_echo=$ac_try;;
1737 esac
1738 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1739 $as_echo "$ac_try_echo"; } >&5
1740 (eval "$ac_try") 2>&5
1741 ac_status=$?
1742 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1743 test $ac_status = 0; }; }; then :
1744 ac_retval=0
1745 else
1746 $as_echo "$as_me: program exited with status $ac_status" >&5
1747 $as_echo "$as_me: failed program was:" >&5
1748 sed 's/^/| /' conftest.$ac_ext >&5
1750 ac_retval=$ac_status
1752 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1753 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1754 as_fn_set_status $ac_retval
1756 } # ac_fn_c_try_run
1758 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1759 # -------------------------------------------------------
1760 # Tests whether HEADER exists and can be compiled using the include files in
1761 # INCLUDES, setting the cache variable VAR accordingly.
1762 ac_fn_c_check_header_compile ()
1764 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1766 $as_echo_n "checking for $2... " >&6; }
1767 if eval \${$3+:} false; then :
1768 $as_echo_n "(cached) " >&6
1769 else
1770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1771 /* end confdefs.h. */
1773 #include <$2>
1774 _ACEOF
1775 if ac_fn_c_try_compile "$LINENO"; then :
1776 eval "$3=yes"
1777 else
1778 eval "$3=no"
1780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1782 eval ac_res=\$$3
1783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1784 $as_echo "$ac_res" >&6; }
1785 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1787 } # ac_fn_c_check_header_compile
1789 # ac_fn_c_try_link LINENO
1790 # -----------------------
1791 # Try to link conftest.$ac_ext, and return whether this succeeded.
1792 ac_fn_c_try_link ()
1794 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1795 rm -f conftest.$ac_objext conftest$ac_exeext
1796 if { { ac_try="$ac_link"
1797 case "(($ac_try" in
1798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1799 *) ac_try_echo=$ac_try;;
1800 esac
1801 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1802 $as_echo "$ac_try_echo"; } >&5
1803 (eval "$ac_link") 2>conftest.err
1804 ac_status=$?
1805 if test -s conftest.err; then
1806 grep -v '^ *+' conftest.err >conftest.er1
1807 cat conftest.er1 >&5
1808 mv -f conftest.er1 conftest.err
1810 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1811 test $ac_status = 0; } && {
1812 test -z "$ac_c_werror_flag" ||
1813 test ! -s conftest.err
1814 } && test -s conftest$ac_exeext && {
1815 test "$cross_compiling" = yes ||
1816 test -x conftest$ac_exeext
1817 }; then :
1818 ac_retval=0
1819 else
1820 $as_echo "$as_me: failed program was:" >&5
1821 sed 's/^/| /' conftest.$ac_ext >&5
1823 ac_retval=1
1825 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1826 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1827 # interfere with the next link command; also delete a directory that is
1828 # left behind by Apple's compiler. We do this before executing the actions.
1829 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1830 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1831 as_fn_set_status $ac_retval
1833 } # ac_fn_c_try_link
1835 # ac_fn_c_check_func LINENO FUNC VAR
1836 # ----------------------------------
1837 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1838 ac_fn_c_check_func ()
1840 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1842 $as_echo_n "checking for $2... " >&6; }
1843 if eval \${$3+:} false; then :
1844 $as_echo_n "(cached) " >&6
1845 else
1846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1847 /* end confdefs.h. */
1848 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1849 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1850 #define $2 innocuous_$2
1852 /* System header to define __stub macros and hopefully few prototypes,
1853 which can conflict with char $2 (); below.
1854 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1855 <limits.h> exists even on freestanding compilers. */
1857 #ifdef __STDC__
1858 # include <limits.h>
1859 #else
1860 # include <assert.h>
1861 #endif
1863 #undef $2
1865 /* Override any GCC internal prototype to avoid an error.
1866 Use char because int might match the return type of a GCC
1867 builtin and then its argument prototype would still apply. */
1868 #ifdef __cplusplus
1869 extern "C"
1870 #endif
1871 char $2 ();
1872 /* The GNU C library defines this for functions which it implements
1873 to always fail with ENOSYS. Some functions are actually named
1874 something starting with __ and the normal name is an alias. */
1875 #if defined __stub_$2 || defined __stub___$2
1876 choke me
1877 #endif
1880 main ()
1882 return $2 ();
1884 return 0;
1886 _ACEOF
1887 if ac_fn_c_try_link "$LINENO"; then :
1888 eval "$3=yes"
1889 else
1890 eval "$3=no"
1892 rm -f core conftest.err conftest.$ac_objext \
1893 conftest$ac_exeext conftest.$ac_ext
1895 eval ac_res=\$$3
1896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1897 $as_echo "$ac_res" >&6; }
1898 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1900 } # ac_fn_c_check_func
1902 # ac_fn_cxx_try_compile LINENO
1903 # ----------------------------
1904 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1905 ac_fn_cxx_try_compile ()
1907 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1908 rm -f conftest.$ac_objext
1909 if { { ac_try="$ac_compile"
1910 case "(($ac_try" in
1911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1912 *) ac_try_echo=$ac_try;;
1913 esac
1914 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1915 $as_echo "$ac_try_echo"; } >&5
1916 (eval "$ac_compile") 2>conftest.err
1917 ac_status=$?
1918 if test -s conftest.err; then
1919 grep -v '^ *+' conftest.err >conftest.er1
1920 cat conftest.er1 >&5
1921 mv -f conftest.er1 conftest.err
1923 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1924 test $ac_status = 0; } && {
1925 test -z "$ac_cxx_werror_flag" ||
1926 test ! -s conftest.err
1927 } && test -s conftest.$ac_objext; then :
1928 ac_retval=0
1929 else
1930 $as_echo "$as_me: failed program was:" >&5
1931 sed 's/^/| /' conftest.$ac_ext >&5
1933 ac_retval=1
1935 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1936 as_fn_set_status $ac_retval
1938 } # ac_fn_cxx_try_compile
1940 # ac_fn_cxx_try_cpp LINENO
1941 # ------------------------
1942 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1943 ac_fn_cxx_try_cpp ()
1945 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1946 if { { ac_try="$ac_cpp conftest.$ac_ext"
1947 case "(($ac_try" in
1948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1949 *) ac_try_echo=$ac_try;;
1950 esac
1951 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1952 $as_echo "$ac_try_echo"; } >&5
1953 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1954 ac_status=$?
1955 if test -s conftest.err; then
1956 grep -v '^ *+' conftest.err >conftest.er1
1957 cat conftest.er1 >&5
1958 mv -f conftest.er1 conftest.err
1960 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1961 test $ac_status = 0; } > conftest.i && {
1962 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1963 test ! -s conftest.err
1964 }; then :
1965 ac_retval=0
1966 else
1967 $as_echo "$as_me: failed program was:" >&5
1968 sed 's/^/| /' conftest.$ac_ext >&5
1970 ac_retval=1
1972 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1973 as_fn_set_status $ac_retval
1975 } # ac_fn_cxx_try_cpp
1977 # ac_fn_cxx_try_link LINENO
1978 # -------------------------
1979 # Try to link conftest.$ac_ext, and return whether this succeeded.
1980 ac_fn_cxx_try_link ()
1982 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1983 rm -f conftest.$ac_objext conftest$ac_exeext
1984 if { { ac_try="$ac_link"
1985 case "(($ac_try" in
1986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1987 *) ac_try_echo=$ac_try;;
1988 esac
1989 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1990 $as_echo "$ac_try_echo"; } >&5
1991 (eval "$ac_link") 2>conftest.err
1992 ac_status=$?
1993 if test -s conftest.err; then
1994 grep -v '^ *+' conftest.err >conftest.er1
1995 cat conftest.er1 >&5
1996 mv -f conftest.er1 conftest.err
1998 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1999 test $ac_status = 0; } && {
2000 test -z "$ac_cxx_werror_flag" ||
2001 test ! -s conftest.err
2002 } && test -s conftest$ac_exeext && {
2003 test "$cross_compiling" = yes ||
2004 test -x conftest$ac_exeext
2005 }; then :
2006 ac_retval=0
2007 else
2008 $as_echo "$as_me: failed program was:" >&5
2009 sed 's/^/| /' conftest.$ac_ext >&5
2011 ac_retval=1
2013 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2014 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2015 # interfere with the next link command; also delete a directory that is
2016 # left behind by Apple's compiler. We do this before executing the actions.
2017 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2018 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2019 as_fn_set_status $ac_retval
2021 } # ac_fn_cxx_try_link
2023 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2024 # ---------------------------------------------
2025 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2026 # accordingly.
2027 ac_fn_c_check_decl ()
2029 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2030 as_decl_name=`echo $2|sed 's/ *(.*//'`
2031 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2033 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2034 if eval \${$3+:} false; then :
2035 $as_echo_n "(cached) " >&6
2036 else
2037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2038 /* end confdefs.h. */
2041 main ()
2043 #ifndef $as_decl_name
2044 #ifdef __cplusplus
2045 (void) $as_decl_use;
2046 #else
2047 (void) $as_decl_name;
2048 #endif
2049 #endif
2052 return 0;
2054 _ACEOF
2055 if ac_fn_c_try_compile "$LINENO"; then :
2056 eval "$3=yes"
2057 else
2058 eval "$3=no"
2060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2062 eval ac_res=\$$3
2063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2064 $as_echo "$ac_res" >&6; }
2065 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2067 } # ac_fn_c_check_decl
2068 cat >config.log <<_ACEOF
2069 This file contains any messages produced by compilers while
2070 running configure, to aid debugging if configure makes a mistake.
2072 It was created by libcc1 $as_me version-unused, which was
2073 generated by GNU Autoconf 2.69. Invocation command line was
2075 $ $0 $@
2077 _ACEOF
2078 exec 5>>config.log
2080 cat <<_ASUNAME
2081 ## --------- ##
2082 ## Platform. ##
2083 ## --------- ##
2085 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2086 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2087 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2088 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2089 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2091 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2092 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2094 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2095 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2096 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2097 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2098 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2099 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2100 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2102 _ASUNAME
2104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2105 for as_dir in $PATH
2107 IFS=$as_save_IFS
2108 test -z "$as_dir" && as_dir=.
2109 $as_echo "PATH: $as_dir"
2110 done
2111 IFS=$as_save_IFS
2113 } >&5
2115 cat >&5 <<_ACEOF
2118 ## ----------- ##
2119 ## Core tests. ##
2120 ## ----------- ##
2122 _ACEOF
2125 # Keep a trace of the command line.
2126 # Strip out --no-create and --no-recursion so they do not pile up.
2127 # Strip out --silent because we don't want to record it for future runs.
2128 # Also quote any args containing shell meta-characters.
2129 # Make two passes to allow for proper duplicate-argument suppression.
2130 ac_configure_args=
2131 ac_configure_args0=
2132 ac_configure_args1=
2133 ac_must_keep_next=false
2134 for ac_pass in 1 2
2136 for ac_arg
2138 case $ac_arg in
2139 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2140 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2141 | -silent | --silent | --silen | --sile | --sil)
2142 continue ;;
2143 *\'*)
2144 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2145 esac
2146 case $ac_pass in
2147 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2149 as_fn_append ac_configure_args1 " '$ac_arg'"
2150 if test $ac_must_keep_next = true; then
2151 ac_must_keep_next=false # Got value, back to normal.
2152 else
2153 case $ac_arg in
2154 *=* | --config-cache | -C | -disable-* | --disable-* \
2155 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2156 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2157 | -with-* | --with-* | -without-* | --without-* | --x)
2158 case "$ac_configure_args0 " in
2159 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2160 esac
2162 -* ) ac_must_keep_next=true ;;
2163 esac
2165 as_fn_append ac_configure_args " '$ac_arg'"
2167 esac
2168 done
2169 done
2170 { ac_configure_args0=; unset ac_configure_args0;}
2171 { ac_configure_args1=; unset ac_configure_args1;}
2173 # When interrupted or exit'd, cleanup temporary files, and complete
2174 # config.log. We remove comments because anyway the quotes in there
2175 # would cause problems or look ugly.
2176 # WARNING: Use '\'' to represent an apostrophe within the trap.
2177 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2178 trap 'exit_status=$?
2179 # Save into config.log some information that might help in debugging.
2181 echo
2183 $as_echo "## ---------------- ##
2184 ## Cache variables. ##
2185 ## ---------------- ##"
2186 echo
2187 # The following way of writing the cache mishandles newlines in values,
2189 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2190 eval ac_val=\$$ac_var
2191 case $ac_val in #(
2192 *${as_nl}*)
2193 case $ac_var in #(
2194 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2195 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2196 esac
2197 case $ac_var in #(
2198 _ | IFS | as_nl) ;; #(
2199 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2200 *) { eval $ac_var=; unset $ac_var;} ;;
2201 esac ;;
2202 esac
2203 done
2204 (set) 2>&1 |
2205 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2206 *${as_nl}ac_space=\ *)
2207 sed -n \
2208 "s/'\''/'\''\\\\'\'''\''/g;
2209 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2210 ;; #(
2212 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2214 esac |
2215 sort
2217 echo
2219 $as_echo "## ----------------- ##
2220 ## Output variables. ##
2221 ## ----------------- ##"
2222 echo
2223 for ac_var in $ac_subst_vars
2225 eval ac_val=\$$ac_var
2226 case $ac_val in
2227 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2228 esac
2229 $as_echo "$ac_var='\''$ac_val'\''"
2230 done | sort
2231 echo
2233 if test -n "$ac_subst_files"; then
2234 $as_echo "## ------------------- ##
2235 ## File substitutions. ##
2236 ## ------------------- ##"
2237 echo
2238 for ac_var in $ac_subst_files
2240 eval ac_val=\$$ac_var
2241 case $ac_val in
2242 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2243 esac
2244 $as_echo "$ac_var='\''$ac_val'\''"
2245 done | sort
2246 echo
2249 if test -s confdefs.h; then
2250 $as_echo "## ----------- ##
2251 ## confdefs.h. ##
2252 ## ----------- ##"
2253 echo
2254 cat confdefs.h
2255 echo
2257 test "$ac_signal" != 0 &&
2258 $as_echo "$as_me: caught signal $ac_signal"
2259 $as_echo "$as_me: exit $exit_status"
2260 } >&5
2261 rm -f core *.core core.conftest.* &&
2262 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2263 exit $exit_status
2265 for ac_signal in 1 2 13 15; do
2266 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2267 done
2268 ac_signal=0
2270 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2271 rm -f -r conftest* confdefs.h
2273 $as_echo "/* confdefs.h */" > confdefs.h
2275 # Predefined preprocessor variables.
2277 cat >>confdefs.h <<_ACEOF
2278 #define PACKAGE_NAME "$PACKAGE_NAME"
2279 _ACEOF
2281 cat >>confdefs.h <<_ACEOF
2282 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2283 _ACEOF
2285 cat >>confdefs.h <<_ACEOF
2286 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2287 _ACEOF
2289 cat >>confdefs.h <<_ACEOF
2290 #define PACKAGE_STRING "$PACKAGE_STRING"
2291 _ACEOF
2293 cat >>confdefs.h <<_ACEOF
2294 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2295 _ACEOF
2297 cat >>confdefs.h <<_ACEOF
2298 #define PACKAGE_URL "$PACKAGE_URL"
2299 _ACEOF
2302 # Let the site file select an alternate cache file if it wants to.
2303 # Prefer an explicitly selected file to automatically selected ones.
2304 ac_site_file1=NONE
2305 ac_site_file2=NONE
2306 if test -n "$CONFIG_SITE"; then
2307 # We do not want a PATH search for config.site.
2308 case $CONFIG_SITE in #((
2309 -*) ac_site_file1=./$CONFIG_SITE;;
2310 */*) ac_site_file1=$CONFIG_SITE;;
2311 *) ac_site_file1=./$CONFIG_SITE;;
2312 esac
2313 elif test "x$prefix" != xNONE; then
2314 ac_site_file1=$prefix/share/config.site
2315 ac_site_file2=$prefix/etc/config.site
2316 else
2317 ac_site_file1=$ac_default_prefix/share/config.site
2318 ac_site_file2=$ac_default_prefix/etc/config.site
2320 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2322 test "x$ac_site_file" = xNONE && continue
2323 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2324 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2325 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2326 sed 's/^/| /' "$ac_site_file" >&5
2327 . "$ac_site_file" \
2328 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2329 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2330 as_fn_error $? "failed to load site script $ac_site_file
2331 See \`config.log' for more details" "$LINENO" 5; }
2333 done
2335 if test -r "$cache_file"; then
2336 # Some versions of bash will fail to source /dev/null (special files
2337 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2338 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2339 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2340 $as_echo "$as_me: loading cache $cache_file" >&6;}
2341 case $cache_file in
2342 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2343 *) . "./$cache_file";;
2344 esac
2346 else
2347 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2348 $as_echo "$as_me: creating cache $cache_file" >&6;}
2349 >$cache_file
2352 # Check that the precious variables saved in the cache have kept the same
2353 # value.
2354 ac_cache_corrupted=false
2355 for ac_var in $ac_precious_vars; do
2356 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2357 eval ac_new_set=\$ac_env_${ac_var}_set
2358 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2359 eval ac_new_val=\$ac_env_${ac_var}_value
2360 case $ac_old_set,$ac_new_set in
2361 set,)
2362 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2363 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2364 ac_cache_corrupted=: ;;
2365 ,set)
2366 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2367 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2368 ac_cache_corrupted=: ;;
2369 ,);;
2371 if test "x$ac_old_val" != "x$ac_new_val"; then
2372 # differences in whitespace do not lead to failure.
2373 ac_old_val_w=`echo x $ac_old_val`
2374 ac_new_val_w=`echo x $ac_new_val`
2375 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2376 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2377 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2378 ac_cache_corrupted=:
2379 else
2380 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2381 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2382 eval $ac_var=\$ac_old_val
2384 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2385 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2386 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2387 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2388 fi;;
2389 esac
2390 # Pass precious variables to config.status.
2391 if test "$ac_new_set" = set; then
2392 case $ac_new_val in
2393 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2394 *) ac_arg=$ac_var=$ac_new_val ;;
2395 esac
2396 case " $ac_configure_args " in
2397 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2398 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2399 esac
2401 done
2402 if $ac_cache_corrupted; then
2403 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2404 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2405 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2406 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2407 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2409 ## -------------------- ##
2410 ## Main body of script. ##
2411 ## -------------------- ##
2413 ac_ext=c
2414 ac_cpp='$CPP $CPPFLAGS'
2415 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2416 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2417 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2424 ac_config_headers="$ac_config_headers cc1plugin-config.h"
2427 ac_aux_dir=
2428 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2429 if test -f "$ac_dir/install-sh"; then
2430 ac_aux_dir=$ac_dir
2431 ac_install_sh="$ac_aux_dir/install-sh -c"
2432 break
2433 elif test -f "$ac_dir/install.sh"; then
2434 ac_aux_dir=$ac_dir
2435 ac_install_sh="$ac_aux_dir/install.sh -c"
2436 break
2437 elif test -f "$ac_dir/shtool"; then
2438 ac_aux_dir=$ac_dir
2439 ac_install_sh="$ac_aux_dir/shtool install -c"
2440 break
2442 done
2443 if test -z "$ac_aux_dir"; then
2444 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2447 # These three variables are undocumented and unsupported,
2448 # and are intended to be withdrawn in a future Autoconf release.
2449 # They can cause serious problems if a builder's source tree is in a directory
2450 # whose full name contains unusual characters.
2451 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2452 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2453 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2456 # Make sure we can run config.sub.
2457 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2458 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2461 $as_echo_n "checking build system type... " >&6; }
2462 if ${ac_cv_build+:} false; then :
2463 $as_echo_n "(cached) " >&6
2464 else
2465 ac_build_alias=$build_alias
2466 test "x$ac_build_alias" = x &&
2467 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2468 test "x$ac_build_alias" = x &&
2469 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2470 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2471 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2475 $as_echo "$ac_cv_build" >&6; }
2476 case $ac_cv_build in
2477 *-*-*) ;;
2478 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2479 esac
2480 build=$ac_cv_build
2481 ac_save_IFS=$IFS; IFS='-'
2482 set x $ac_cv_build
2483 shift
2484 build_cpu=$1
2485 build_vendor=$2
2486 shift; shift
2487 # Remember, the first character of IFS is used to create $*,
2488 # except with old shells:
2489 build_os=$*
2490 IFS=$ac_save_IFS
2491 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2495 $as_echo_n "checking host system type... " >&6; }
2496 if ${ac_cv_host+:} false; then :
2497 $as_echo_n "(cached) " >&6
2498 else
2499 if test "x$host_alias" = x; then
2500 ac_cv_host=$ac_cv_build
2501 else
2502 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2503 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2508 $as_echo "$ac_cv_host" >&6; }
2509 case $ac_cv_host in
2510 *-*-*) ;;
2511 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2512 esac
2513 host=$ac_cv_host
2514 ac_save_IFS=$IFS; IFS='-'
2515 set x $ac_cv_host
2516 shift
2517 host_cpu=$1
2518 host_vendor=$2
2519 shift; shift
2520 # Remember, the first character of IFS is used to create $*,
2521 # except with old shells:
2522 host_os=$*
2523 IFS=$ac_save_IFS
2524 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2528 $as_echo_n "checking target system type... " >&6; }
2529 if ${ac_cv_target+:} false; then :
2530 $as_echo_n "(cached) " >&6
2531 else
2532 if test "x$target_alias" = x; then
2533 ac_cv_target=$ac_cv_host
2534 else
2535 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2536 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2541 $as_echo "$ac_cv_target" >&6; }
2542 case $ac_cv_target in
2543 *-*-*) ;;
2544 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2545 esac
2546 target=$ac_cv_target
2547 ac_save_IFS=$IFS; IFS='-'
2548 set x $ac_cv_target
2549 shift
2550 target_cpu=$1
2551 target_vendor=$2
2552 shift; shift
2553 # Remember, the first character of IFS is used to create $*,
2554 # except with old shells:
2555 target_os=$*
2556 IFS=$ac_save_IFS
2557 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2560 # The aliases save the names the user supplied, while $host etc.
2561 # will get canonicalized.
2562 test -n "$target_alias" &&
2563 test "$program_prefix$program_suffix$program_transform_name" = \
2564 NONENONEs,x,x, &&
2565 program_prefix=${target_alias}-
2567 # Expand $ac_aux_dir to an absolute path.
2568 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2570 ac_ext=c
2571 ac_cpp='$CPP $CPPFLAGS'
2572 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2573 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2574 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2575 if test -n "$ac_tool_prefix"; then
2576 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2577 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2579 $as_echo_n "checking for $ac_word... " >&6; }
2580 if ${ac_cv_prog_CC+:} false; then :
2581 $as_echo_n "(cached) " >&6
2582 else
2583 if test -n "$CC"; then
2584 ac_cv_prog_CC="$CC" # Let the user override the test.
2585 else
2586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2587 for as_dir in $PATH
2589 IFS=$as_save_IFS
2590 test -z "$as_dir" && as_dir=.
2591 for ac_exec_ext in '' $ac_executable_extensions; do
2592 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2593 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2595 break 2
2597 done
2598 done
2599 IFS=$as_save_IFS
2603 CC=$ac_cv_prog_CC
2604 if test -n "$CC"; then
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2606 $as_echo "$CC" >&6; }
2607 else
2608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2609 $as_echo "no" >&6; }
2614 if test -z "$ac_cv_prog_CC"; then
2615 ac_ct_CC=$CC
2616 # Extract the first word of "gcc", so it can be a program name with args.
2617 set dummy gcc; ac_word=$2
2618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2619 $as_echo_n "checking for $ac_word... " >&6; }
2620 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2621 $as_echo_n "(cached) " >&6
2622 else
2623 if test -n "$ac_ct_CC"; then
2624 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2625 else
2626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2627 for as_dir in $PATH
2629 IFS=$as_save_IFS
2630 test -z "$as_dir" && as_dir=.
2631 for ac_exec_ext in '' $ac_executable_extensions; do
2632 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2633 ac_cv_prog_ac_ct_CC="gcc"
2634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2635 break 2
2637 done
2638 done
2639 IFS=$as_save_IFS
2643 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2644 if test -n "$ac_ct_CC"; then
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2646 $as_echo "$ac_ct_CC" >&6; }
2647 else
2648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2649 $as_echo "no" >&6; }
2652 if test "x$ac_ct_CC" = x; then
2653 CC=""
2654 else
2655 case $cross_compiling:$ac_tool_warned in
2656 yes:)
2657 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2658 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2659 ac_tool_warned=yes ;;
2660 esac
2661 CC=$ac_ct_CC
2663 else
2664 CC="$ac_cv_prog_CC"
2667 if test -z "$CC"; then
2668 if test -n "$ac_tool_prefix"; then
2669 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2670 set dummy ${ac_tool_prefix}cc; ac_word=$2
2671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2672 $as_echo_n "checking for $ac_word... " >&6; }
2673 if ${ac_cv_prog_CC+:} false; then :
2674 $as_echo_n "(cached) " >&6
2675 else
2676 if test -n "$CC"; then
2677 ac_cv_prog_CC="$CC" # Let the user override the test.
2678 else
2679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2680 for as_dir in $PATH
2682 IFS=$as_save_IFS
2683 test -z "$as_dir" && as_dir=.
2684 for ac_exec_ext in '' $ac_executable_extensions; do
2685 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2686 ac_cv_prog_CC="${ac_tool_prefix}cc"
2687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2688 break 2
2690 done
2691 done
2692 IFS=$as_save_IFS
2696 CC=$ac_cv_prog_CC
2697 if test -n "$CC"; then
2698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2699 $as_echo "$CC" >&6; }
2700 else
2701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2702 $as_echo "no" >&6; }
2708 if test -z "$CC"; then
2709 # Extract the first word of "cc", so it can be a program name with args.
2710 set dummy cc; ac_word=$2
2711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2712 $as_echo_n "checking for $ac_word... " >&6; }
2713 if ${ac_cv_prog_CC+:} false; then :
2714 $as_echo_n "(cached) " >&6
2715 else
2716 if test -n "$CC"; then
2717 ac_cv_prog_CC="$CC" # Let the user override the test.
2718 else
2719 ac_prog_rejected=no
2720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2721 for as_dir in $PATH
2723 IFS=$as_save_IFS
2724 test -z "$as_dir" && as_dir=.
2725 for ac_exec_ext in '' $ac_executable_extensions; do
2726 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2727 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2728 ac_prog_rejected=yes
2729 continue
2731 ac_cv_prog_CC="cc"
2732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2733 break 2
2735 done
2736 done
2737 IFS=$as_save_IFS
2739 if test $ac_prog_rejected = yes; then
2740 # We found a bogon in the path, so make sure we never use it.
2741 set dummy $ac_cv_prog_CC
2742 shift
2743 if test $# != 0; then
2744 # We chose a different compiler from the bogus one.
2745 # However, it has the same basename, so the bogon will be chosen
2746 # first if we set CC to just the basename; use the full file name.
2747 shift
2748 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2753 CC=$ac_cv_prog_CC
2754 if test -n "$CC"; then
2755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2756 $as_echo "$CC" >&6; }
2757 else
2758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2759 $as_echo "no" >&6; }
2764 if test -z "$CC"; then
2765 if test -n "$ac_tool_prefix"; then
2766 for ac_prog in cl.exe
2768 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2769 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2771 $as_echo_n "checking for $ac_word... " >&6; }
2772 if ${ac_cv_prog_CC+:} false; then :
2773 $as_echo_n "(cached) " >&6
2774 else
2775 if test -n "$CC"; then
2776 ac_cv_prog_CC="$CC" # Let the user override the test.
2777 else
2778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2779 for as_dir in $PATH
2781 IFS=$as_save_IFS
2782 test -z "$as_dir" && as_dir=.
2783 for ac_exec_ext in '' $ac_executable_extensions; do
2784 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2785 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2787 break 2
2789 done
2790 done
2791 IFS=$as_save_IFS
2795 CC=$ac_cv_prog_CC
2796 if test -n "$CC"; then
2797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2798 $as_echo "$CC" >&6; }
2799 else
2800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2801 $as_echo "no" >&6; }
2805 test -n "$CC" && break
2806 done
2808 if test -z "$CC"; then
2809 ac_ct_CC=$CC
2810 for ac_prog in cl.exe
2812 # Extract the first word of "$ac_prog", so it can be a program name with args.
2813 set dummy $ac_prog; ac_word=$2
2814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2815 $as_echo_n "checking for $ac_word... " >&6; }
2816 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2817 $as_echo_n "(cached) " >&6
2818 else
2819 if test -n "$ac_ct_CC"; then
2820 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2821 else
2822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2823 for as_dir in $PATH
2825 IFS=$as_save_IFS
2826 test -z "$as_dir" && as_dir=.
2827 for ac_exec_ext in '' $ac_executable_extensions; do
2828 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2829 ac_cv_prog_ac_ct_CC="$ac_prog"
2830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2831 break 2
2833 done
2834 done
2835 IFS=$as_save_IFS
2839 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2840 if test -n "$ac_ct_CC"; then
2841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2842 $as_echo "$ac_ct_CC" >&6; }
2843 else
2844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2845 $as_echo "no" >&6; }
2849 test -n "$ac_ct_CC" && break
2850 done
2852 if test "x$ac_ct_CC" = x; then
2853 CC=""
2854 else
2855 case $cross_compiling:$ac_tool_warned in
2856 yes:)
2857 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2858 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2859 ac_tool_warned=yes ;;
2860 esac
2861 CC=$ac_ct_CC
2868 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2869 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2870 as_fn_error $? "no acceptable C compiler found in \$PATH
2871 See \`config.log' for more details" "$LINENO" 5; }
2873 # Provide some information about the compiler.
2874 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2875 set X $ac_compile
2876 ac_compiler=$2
2877 for ac_option in --version -v -V -qversion; do
2878 { { ac_try="$ac_compiler $ac_option >&5"
2879 case "(($ac_try" in
2880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2881 *) ac_try_echo=$ac_try;;
2882 esac
2883 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2884 $as_echo "$ac_try_echo"; } >&5
2885 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2886 ac_status=$?
2887 if test -s conftest.err; then
2888 sed '10a\
2889 ... rest of stderr output deleted ...
2890 10q' conftest.err >conftest.er1
2891 cat conftest.er1 >&5
2893 rm -f conftest.er1 conftest.err
2894 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2895 test $ac_status = 0; }
2896 done
2898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2899 /* end confdefs.h. */
2902 main ()
2906 return 0;
2908 _ACEOF
2909 ac_clean_files_save=$ac_clean_files
2910 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2911 # Try to create an executable without -o first, disregard a.out.
2912 # It will help us diagnose broken compilers, and finding out an intuition
2913 # of exeext.
2914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2915 $as_echo_n "checking whether the C compiler works... " >&6; }
2916 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2918 # The possible output files:
2919 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2921 ac_rmfiles=
2922 for ac_file in $ac_files
2924 case $ac_file in
2925 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2926 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2927 esac
2928 done
2929 rm -f $ac_rmfiles
2931 if { { ac_try="$ac_link_default"
2932 case "(($ac_try" in
2933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2934 *) ac_try_echo=$ac_try;;
2935 esac
2936 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2937 $as_echo "$ac_try_echo"; } >&5
2938 (eval "$ac_link_default") 2>&5
2939 ac_status=$?
2940 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2941 test $ac_status = 0; }; then :
2942 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2943 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2944 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2945 # so that the user can short-circuit this test for compilers unknown to
2946 # Autoconf.
2947 for ac_file in $ac_files ''
2949 test -f "$ac_file" || continue
2950 case $ac_file in
2951 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2953 [ab].out )
2954 # We found the default executable, but exeext='' is most
2955 # certainly right.
2956 break;;
2957 *.* )
2958 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2959 then :; else
2960 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2962 # We set ac_cv_exeext here because the later test for it is not
2963 # safe: cross compilers may not add the suffix if given an `-o'
2964 # argument, so we may need to know it at that point already.
2965 # Even if this section looks crufty: it has the advantage of
2966 # actually working.
2967 break;;
2969 break;;
2970 esac
2971 done
2972 test "$ac_cv_exeext" = no && ac_cv_exeext=
2974 else
2975 ac_file=''
2977 if test -z "$ac_file"; then :
2978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2979 $as_echo "no" >&6; }
2980 $as_echo "$as_me: failed program was:" >&5
2981 sed 's/^/| /' conftest.$ac_ext >&5
2983 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2984 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2985 as_fn_error 77 "C compiler cannot create executables
2986 See \`config.log' for more details" "$LINENO" 5; }
2987 else
2988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2989 $as_echo "yes" >&6; }
2991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2992 $as_echo_n "checking for C compiler default output file name... " >&6; }
2993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2994 $as_echo "$ac_file" >&6; }
2995 ac_exeext=$ac_cv_exeext
2997 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2998 ac_clean_files=$ac_clean_files_save
2999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3000 $as_echo_n "checking for suffix of executables... " >&6; }
3001 if { { ac_try="$ac_link"
3002 case "(($ac_try" in
3003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3004 *) ac_try_echo=$ac_try;;
3005 esac
3006 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3007 $as_echo "$ac_try_echo"; } >&5
3008 (eval "$ac_link") 2>&5
3009 ac_status=$?
3010 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3011 test $ac_status = 0; }; then :
3012 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3013 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3014 # work properly (i.e., refer to `conftest.exe'), while it won't with
3015 # `rm'.
3016 for ac_file in conftest.exe conftest conftest.*; do
3017 test -f "$ac_file" || continue
3018 case $ac_file in
3019 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3020 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3021 break;;
3022 * ) break;;
3023 esac
3024 done
3025 else
3026 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3027 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3028 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3029 See \`config.log' for more details" "$LINENO" 5; }
3031 rm -f conftest conftest$ac_cv_exeext
3032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3033 $as_echo "$ac_cv_exeext" >&6; }
3035 rm -f conftest.$ac_ext
3036 EXEEXT=$ac_cv_exeext
3037 ac_exeext=$EXEEXT
3038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3039 /* end confdefs.h. */
3040 #include <stdio.h>
3042 main ()
3044 FILE *f = fopen ("conftest.out", "w");
3045 return ferror (f) || fclose (f) != 0;
3048 return 0;
3050 _ACEOF
3051 ac_clean_files="$ac_clean_files conftest.out"
3052 # Check that the compiler produces executables we can run. If not, either
3053 # the compiler is broken, or we cross compile.
3054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3055 $as_echo_n "checking whether we are cross compiling... " >&6; }
3056 if test "$cross_compiling" != yes; then
3057 { { ac_try="$ac_link"
3058 case "(($ac_try" in
3059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3060 *) ac_try_echo=$ac_try;;
3061 esac
3062 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3063 $as_echo "$ac_try_echo"; } >&5
3064 (eval "$ac_link") 2>&5
3065 ac_status=$?
3066 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3067 test $ac_status = 0; }
3068 if { ac_try='./conftest$ac_cv_exeext'
3069 { { case "(($ac_try" in
3070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3071 *) ac_try_echo=$ac_try;;
3072 esac
3073 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3074 $as_echo "$ac_try_echo"; } >&5
3075 (eval "$ac_try") 2>&5
3076 ac_status=$?
3077 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3078 test $ac_status = 0; }; }; then
3079 cross_compiling=no
3080 else
3081 if test "$cross_compiling" = maybe; then
3082 cross_compiling=yes
3083 else
3084 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3085 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3086 as_fn_error $? "cannot run C compiled programs.
3087 If you meant to cross compile, use \`--host'.
3088 See \`config.log' for more details" "$LINENO" 5; }
3092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3093 $as_echo "$cross_compiling" >&6; }
3095 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3096 ac_clean_files=$ac_clean_files_save
3097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3098 $as_echo_n "checking for suffix of object files... " >&6; }
3099 if ${ac_cv_objext+:} false; then :
3100 $as_echo_n "(cached) " >&6
3101 else
3102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3103 /* end confdefs.h. */
3106 main ()
3110 return 0;
3112 _ACEOF
3113 rm -f conftest.o conftest.obj
3114 if { { ac_try="$ac_compile"
3115 case "(($ac_try" in
3116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3117 *) ac_try_echo=$ac_try;;
3118 esac
3119 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3120 $as_echo "$ac_try_echo"; } >&5
3121 (eval "$ac_compile") 2>&5
3122 ac_status=$?
3123 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3124 test $ac_status = 0; }; then :
3125 for ac_file in conftest.o conftest.obj conftest.*; do
3126 test -f "$ac_file" || continue;
3127 case $ac_file in
3128 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3129 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3130 break;;
3131 esac
3132 done
3133 else
3134 $as_echo "$as_me: failed program was:" >&5
3135 sed 's/^/| /' conftest.$ac_ext >&5
3137 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3138 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3139 as_fn_error $? "cannot compute suffix of object files: cannot compile
3140 See \`config.log' for more details" "$LINENO" 5; }
3142 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3145 $as_echo "$ac_cv_objext" >&6; }
3146 OBJEXT=$ac_cv_objext
3147 ac_objext=$OBJEXT
3148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3149 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3150 if ${ac_cv_c_compiler_gnu+:} false; then :
3151 $as_echo_n "(cached) " >&6
3152 else
3153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3154 /* end confdefs.h. */
3157 main ()
3159 #ifndef __GNUC__
3160 choke me
3161 #endif
3164 return 0;
3166 _ACEOF
3167 if ac_fn_c_try_compile "$LINENO"; then :
3168 ac_compiler_gnu=yes
3169 else
3170 ac_compiler_gnu=no
3172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3173 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3177 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3178 if test $ac_compiler_gnu = yes; then
3179 GCC=yes
3180 else
3181 GCC=
3183 ac_test_CFLAGS=${CFLAGS+set}
3184 ac_save_CFLAGS=$CFLAGS
3185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3186 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3187 if ${ac_cv_prog_cc_g+:} false; then :
3188 $as_echo_n "(cached) " >&6
3189 else
3190 ac_save_c_werror_flag=$ac_c_werror_flag
3191 ac_c_werror_flag=yes
3192 ac_cv_prog_cc_g=no
3193 CFLAGS="-g"
3194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3195 /* end confdefs.h. */
3198 main ()
3202 return 0;
3204 _ACEOF
3205 if ac_fn_c_try_compile "$LINENO"; then :
3206 ac_cv_prog_cc_g=yes
3207 else
3208 CFLAGS=""
3209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3210 /* end confdefs.h. */
3213 main ()
3217 return 0;
3219 _ACEOF
3220 if ac_fn_c_try_compile "$LINENO"; then :
3222 else
3223 ac_c_werror_flag=$ac_save_c_werror_flag
3224 CFLAGS="-g"
3225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3226 /* end confdefs.h. */
3229 main ()
3233 return 0;
3235 _ACEOF
3236 if ac_fn_c_try_compile "$LINENO"; then :
3237 ac_cv_prog_cc_g=yes
3239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3244 ac_c_werror_flag=$ac_save_c_werror_flag
3246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3247 $as_echo "$ac_cv_prog_cc_g" >&6; }
3248 if test "$ac_test_CFLAGS" = set; then
3249 CFLAGS=$ac_save_CFLAGS
3250 elif test $ac_cv_prog_cc_g = yes; then
3251 if test "$GCC" = yes; then
3252 CFLAGS="-g -O2"
3253 else
3254 CFLAGS="-g"
3256 else
3257 if test "$GCC" = yes; then
3258 CFLAGS="-O2"
3259 else
3260 CFLAGS=
3263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3264 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3265 if ${ac_cv_prog_cc_c89+:} false; then :
3266 $as_echo_n "(cached) " >&6
3267 else
3268 ac_cv_prog_cc_c89=no
3269 ac_save_CC=$CC
3270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3271 /* end confdefs.h. */
3272 #include <stdarg.h>
3273 #include <stdio.h>
3274 struct stat;
3275 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3276 struct buf { int x; };
3277 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3278 static char *e (p, i)
3279 char **p;
3280 int i;
3282 return p[i];
3284 static char *f (char * (*g) (char **, int), char **p, ...)
3286 char *s;
3287 va_list v;
3288 va_start (v,p);
3289 s = g (p, va_arg (v,int));
3290 va_end (v);
3291 return s;
3294 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3295 function prototypes and stuff, but not '\xHH' hex character constants.
3296 These don't provoke an error unfortunately, instead are silently treated
3297 as 'x'. The following induces an error, until -std is added to get
3298 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3299 array size at least. It's necessary to write '\x00'==0 to get something
3300 that's true only with -std. */
3301 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3303 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3304 inside strings and character constants. */
3305 #define FOO(x) 'x'
3306 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3308 int test (int i, double x);
3309 struct s1 {int (*f) (int a);};
3310 struct s2 {int (*f) (double a);};
3311 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3312 int argc;
3313 char **argv;
3315 main ()
3317 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3319 return 0;
3321 _ACEOF
3322 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3323 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3325 CC="$ac_save_CC $ac_arg"
3326 if ac_fn_c_try_compile "$LINENO"; then :
3327 ac_cv_prog_cc_c89=$ac_arg
3329 rm -f core conftest.err conftest.$ac_objext
3330 test "x$ac_cv_prog_cc_c89" != "xno" && break
3331 done
3332 rm -f conftest.$ac_ext
3333 CC=$ac_save_CC
3336 # AC_CACHE_VAL
3337 case "x$ac_cv_prog_cc_c89" in
3339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3340 $as_echo "none needed" >&6; } ;;
3341 xno)
3342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3343 $as_echo "unsupported" >&6; } ;;
3345 CC="$CC $ac_cv_prog_cc_c89"
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3347 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3348 esac
3349 if test "x$ac_cv_prog_cc_c89" != xno; then :
3353 ac_ext=c
3354 ac_cpp='$CPP $CPPFLAGS'
3355 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3356 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3357 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3359 ac_ext=c
3360 ac_cpp='$CPP $CPPFLAGS'
3361 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3362 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3363 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3365 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3366 if ${am_cv_prog_cc_c_o+:} false; then :
3367 $as_echo_n "(cached) " >&6
3368 else
3369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3370 /* end confdefs.h. */
3373 main ()
3377 return 0;
3379 _ACEOF
3380 # Make sure it works both with $CC and with simple cc.
3381 # Following AC_PROG_CC_C_O, we do the test twice because some
3382 # compilers refuse to overwrite an existing .o file with -o,
3383 # though they will create one.
3384 am_cv_prog_cc_c_o=yes
3385 for am_i in 1 2; do
3386 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3387 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3388 ac_status=$?
3389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3390 (exit $ac_status); } \
3391 && test -f conftest2.$ac_objext; then
3392 : OK
3393 else
3394 am_cv_prog_cc_c_o=no
3395 break
3397 done
3398 rm -f core conftest*
3399 unset am_i
3401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3402 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3403 if test "$am_cv_prog_cc_c_o" != yes; then
3404 # Losing compiler, so override with the script.
3405 # FIXME: It is wrong to rewrite CC.
3406 # But if we don't then we get into trouble of one sort or another.
3407 # A longer-term fix would be to have automake use am__CC in this case,
3408 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3409 CC="$am_aux_dir/compile $CC"
3411 ac_ext=c
3412 ac_cpp='$CPP $CPPFLAGS'
3413 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3414 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3415 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3419 ac_ext=c
3420 ac_cpp='$CPP $CPPFLAGS'
3421 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3422 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3423 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3425 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3426 # On Suns, sometimes $CPP names a directory.
3427 if test -n "$CPP" && test -d "$CPP"; then
3428 CPP=
3430 if test -z "$CPP"; then
3431 if ${ac_cv_prog_CPP+:} false; then :
3432 $as_echo_n "(cached) " >&6
3433 else
3434 # Double quotes because CPP needs to be expanded
3435 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3437 ac_preproc_ok=false
3438 for ac_c_preproc_warn_flag in '' yes
3440 # Use a header file that comes with gcc, so configuring glibc
3441 # with a fresh cross-compiler works.
3442 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3443 # <limits.h> exists even on freestanding compilers.
3444 # On the NeXT, cc -E runs the code through the compiler's parser,
3445 # not just through cpp. "Syntax error" is here to catch this case.
3446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3447 /* end confdefs.h. */
3448 #ifdef __STDC__
3449 # include <limits.h>
3450 #else
3451 # include <assert.h>
3452 #endif
3453 Syntax error
3454 _ACEOF
3455 if ac_fn_c_try_cpp "$LINENO"; then :
3457 else
3458 # Broken: fails on valid input.
3459 continue
3461 rm -f conftest.err conftest.i conftest.$ac_ext
3463 # OK, works on sane cases. Now check whether nonexistent headers
3464 # can be detected and how.
3465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3466 /* end confdefs.h. */
3467 #include <ac_nonexistent.h>
3468 _ACEOF
3469 if ac_fn_c_try_cpp "$LINENO"; then :
3470 # Broken: success on invalid input.
3471 continue
3472 else
3473 # Passes both tests.
3474 ac_preproc_ok=:
3475 break
3477 rm -f conftest.err conftest.i conftest.$ac_ext
3479 done
3480 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3481 rm -f conftest.i conftest.err conftest.$ac_ext
3482 if $ac_preproc_ok; then :
3483 break
3486 done
3487 ac_cv_prog_CPP=$CPP
3490 CPP=$ac_cv_prog_CPP
3491 else
3492 ac_cv_prog_CPP=$CPP
3494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3495 $as_echo "$CPP" >&6; }
3496 ac_preproc_ok=false
3497 for ac_c_preproc_warn_flag in '' yes
3499 # Use a header file that comes with gcc, so configuring glibc
3500 # with a fresh cross-compiler works.
3501 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3502 # <limits.h> exists even on freestanding compilers.
3503 # On the NeXT, cc -E runs the code through the compiler's parser,
3504 # not just through cpp. "Syntax error" is here to catch this case.
3505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3506 /* end confdefs.h. */
3507 #ifdef __STDC__
3508 # include <limits.h>
3509 #else
3510 # include <assert.h>
3511 #endif
3512 Syntax error
3513 _ACEOF
3514 if ac_fn_c_try_cpp "$LINENO"; then :
3516 else
3517 # Broken: fails on valid input.
3518 continue
3520 rm -f conftest.err conftest.i conftest.$ac_ext
3522 # OK, works on sane cases. Now check whether nonexistent headers
3523 # can be detected and how.
3524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3525 /* end confdefs.h. */
3526 #include <ac_nonexistent.h>
3527 _ACEOF
3528 if ac_fn_c_try_cpp "$LINENO"; then :
3529 # Broken: success on invalid input.
3530 continue
3531 else
3532 # Passes both tests.
3533 ac_preproc_ok=:
3534 break
3536 rm -f conftest.err conftest.i conftest.$ac_ext
3538 done
3539 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3540 rm -f conftest.i conftest.err conftest.$ac_ext
3541 if $ac_preproc_ok; then :
3543 else
3544 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3545 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3546 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3547 See \`config.log' for more details" "$LINENO" 5; }
3550 ac_ext=c
3551 ac_cpp='$CPP $CPPFLAGS'
3552 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3553 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3554 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3558 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3559 if ${ac_cv_path_GREP+:} false; then :
3560 $as_echo_n "(cached) " >&6
3561 else
3562 if test -z "$GREP"; then
3563 ac_path_GREP_found=false
3564 # Loop through the user's path and test for each of PROGNAME-LIST
3565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3566 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3568 IFS=$as_save_IFS
3569 test -z "$as_dir" && as_dir=.
3570 for ac_prog in grep ggrep; do
3571 for ac_exec_ext in '' $ac_executable_extensions; do
3572 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3573 as_fn_executable_p "$ac_path_GREP" || continue
3574 # Check for GNU ac_path_GREP and select it if it is found.
3575 # Check for GNU $ac_path_GREP
3576 case `"$ac_path_GREP" --version 2>&1` in
3577 *GNU*)
3578 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3580 ac_count=0
3581 $as_echo_n 0123456789 >"conftest.in"
3582 while :
3584 cat "conftest.in" "conftest.in" >"conftest.tmp"
3585 mv "conftest.tmp" "conftest.in"
3586 cp "conftest.in" "conftest.nl"
3587 $as_echo 'GREP' >> "conftest.nl"
3588 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3589 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3590 as_fn_arith $ac_count + 1 && ac_count=$as_val
3591 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3592 # Best one so far, save it but keep looking for a better one
3593 ac_cv_path_GREP="$ac_path_GREP"
3594 ac_path_GREP_max=$ac_count
3596 # 10*(2^10) chars as input seems more than enough
3597 test $ac_count -gt 10 && break
3598 done
3599 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3600 esac
3602 $ac_path_GREP_found && break 3
3603 done
3604 done
3605 done
3606 IFS=$as_save_IFS
3607 if test -z "$ac_cv_path_GREP"; then
3608 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3610 else
3611 ac_cv_path_GREP=$GREP
3615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3616 $as_echo "$ac_cv_path_GREP" >&6; }
3617 GREP="$ac_cv_path_GREP"
3620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3621 $as_echo_n "checking for egrep... " >&6; }
3622 if ${ac_cv_path_EGREP+:} false; then :
3623 $as_echo_n "(cached) " >&6
3624 else
3625 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3626 then ac_cv_path_EGREP="$GREP -E"
3627 else
3628 if test -z "$EGREP"; then
3629 ac_path_EGREP_found=false
3630 # Loop through the user's path and test for each of PROGNAME-LIST
3631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3632 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3634 IFS=$as_save_IFS
3635 test -z "$as_dir" && as_dir=.
3636 for ac_prog in egrep; do
3637 for ac_exec_ext in '' $ac_executable_extensions; do
3638 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3639 as_fn_executable_p "$ac_path_EGREP" || continue
3640 # Check for GNU ac_path_EGREP and select it if it is found.
3641 # Check for GNU $ac_path_EGREP
3642 case `"$ac_path_EGREP" --version 2>&1` in
3643 *GNU*)
3644 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3646 ac_count=0
3647 $as_echo_n 0123456789 >"conftest.in"
3648 while :
3650 cat "conftest.in" "conftest.in" >"conftest.tmp"
3651 mv "conftest.tmp" "conftest.in"
3652 cp "conftest.in" "conftest.nl"
3653 $as_echo 'EGREP' >> "conftest.nl"
3654 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3655 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3656 as_fn_arith $ac_count + 1 && ac_count=$as_val
3657 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3658 # Best one so far, save it but keep looking for a better one
3659 ac_cv_path_EGREP="$ac_path_EGREP"
3660 ac_path_EGREP_max=$ac_count
3662 # 10*(2^10) chars as input seems more than enough
3663 test $ac_count -gt 10 && break
3664 done
3665 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3666 esac
3668 $ac_path_EGREP_found && break 3
3669 done
3670 done
3671 done
3672 IFS=$as_save_IFS
3673 if test -z "$ac_cv_path_EGREP"; then
3674 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3676 else
3677 ac_cv_path_EGREP=$EGREP
3682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3683 $as_echo "$ac_cv_path_EGREP" >&6; }
3684 EGREP="$ac_cv_path_EGREP"
3687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3688 $as_echo_n "checking for ANSI C header files... " >&6; }
3689 if ${ac_cv_header_stdc+:} false; then :
3690 $as_echo_n "(cached) " >&6
3691 else
3692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3693 /* end confdefs.h. */
3694 #include <stdlib.h>
3695 #include <stdarg.h>
3696 #include <string.h>
3697 #include <float.h>
3700 main ()
3704 return 0;
3706 _ACEOF
3707 if ac_fn_c_try_compile "$LINENO"; then :
3708 ac_cv_header_stdc=yes
3709 else
3710 ac_cv_header_stdc=no
3712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3714 if test $ac_cv_header_stdc = yes; then
3715 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3717 /* end confdefs.h. */
3718 #include <string.h>
3720 _ACEOF
3721 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3722 $EGREP "memchr" >/dev/null 2>&1; then :
3724 else
3725 ac_cv_header_stdc=no
3727 rm -f conftest*
3731 if test $ac_cv_header_stdc = yes; then
3732 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3734 /* end confdefs.h. */
3735 #include <stdlib.h>
3737 _ACEOF
3738 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3739 $EGREP "free" >/dev/null 2>&1; then :
3741 else
3742 ac_cv_header_stdc=no
3744 rm -f conftest*
3748 if test $ac_cv_header_stdc = yes; then
3749 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3750 if test "$cross_compiling" = yes; then :
3752 else
3753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3754 /* end confdefs.h. */
3755 #include <ctype.h>
3756 #include <stdlib.h>
3757 #if ((' ' & 0x0FF) == 0x020)
3758 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3759 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3760 #else
3761 # define ISLOWER(c) \
3762 (('a' <= (c) && (c) <= 'i') \
3763 || ('j' <= (c) && (c) <= 'r') \
3764 || ('s' <= (c) && (c) <= 'z'))
3765 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3766 #endif
3768 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3770 main ()
3772 int i;
3773 for (i = 0; i < 256; i++)
3774 if (XOR (islower (i), ISLOWER (i))
3775 || toupper (i) != TOUPPER (i))
3776 return 2;
3777 return 0;
3779 _ACEOF
3780 if ac_fn_c_try_run "$LINENO"; then :
3782 else
3783 ac_cv_header_stdc=no
3785 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3786 conftest.$ac_objext conftest.beam conftest.$ac_ext
3791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3792 $as_echo "$ac_cv_header_stdc" >&6; }
3793 if test $ac_cv_header_stdc = yes; then
3795 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3799 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3800 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3801 inttypes.h stdint.h unistd.h
3802 do :
3803 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3804 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3806 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3807 cat >>confdefs.h <<_ACEOF
3808 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3809 _ACEOF
3813 done
3817 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3818 if test "x$ac_cv_header_minix_config_h" = xyes; then :
3819 MINIX=yes
3820 else
3821 MINIX=
3825 if test "$MINIX" = yes; then
3827 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3830 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3833 $as_echo "#define _MINIX 1" >>confdefs.h
3838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3839 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3840 if ${ac_cv_safe_to_define___extensions__+:} false; then :
3841 $as_echo_n "(cached) " >&6
3842 else
3843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3844 /* end confdefs.h. */
3846 # define __EXTENSIONS__ 1
3847 $ac_includes_default
3849 main ()
3853 return 0;
3855 _ACEOF
3856 if ac_fn_c_try_compile "$LINENO"; then :
3857 ac_cv_safe_to_define___extensions__=yes
3858 else
3859 ac_cv_safe_to_define___extensions__=no
3861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3864 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3865 test $ac_cv_safe_to_define___extensions__ = yes &&
3866 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3868 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3870 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3872 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3874 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3877 # Determine the noncanonical target name, for directory use.
3878 case ${build_alias} in
3879 "") build_noncanonical=${build} ;;
3880 *) build_noncanonical=${build_alias} ;;
3881 esac
3883 case ${host_alias} in
3884 "") host_noncanonical=${build_noncanonical} ;;
3885 *) host_noncanonical=${host_alias} ;;
3886 esac
3888 case ${target_alias} in
3889 "") target_noncanonical=${host_noncanonical} ;;
3890 *) target_noncanonical=${target_alias} ;;
3891 esac
3896 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3897 # have matching libraries, they should use host libraries: Makefile.tpl
3898 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3899 # However, they still use the build modules, because the corresponding
3900 # host modules (e.g. bison) are only built for the host when bootstrap
3901 # finishes. So:
3902 # - build_subdir is where we find build modules, and never changes.
3903 # - build_libsubdir is where we find build libraries, and can be overridden.
3905 # Prefix 'build-' so this never conflicts with target_subdir.
3906 build_subdir="build-${build_noncanonical}"
3908 # Check whether --with-build-libsubdir was given.
3909 if test "${with_build_libsubdir+set}" = set; then :
3910 withval=$with_build_libsubdir; build_libsubdir="$withval"
3911 else
3912 build_libsubdir="$build_subdir"
3915 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3916 if ( test $srcdir = . && test -d gcc ) \
3917 || test -d $srcdir/../host-${host_noncanonical}; then
3918 host_subdir="host-${host_noncanonical}"
3919 else
3920 host_subdir=.
3922 # No prefix.
3923 target_subdir=${target_noncanonical}
3926 # 1.11.1: Require that version of automake.
3927 # foreign: Don't require README, INSTALL, NEWS, etc.
3928 # no-define: Don't define PACKAGE and VERSION.
3929 # -Wall: Issue all automake warnings.
3930 # -Wno-portability: Don't warn about constructs supported by GNU make.
3931 # (because GCC requires GNU make anyhow).
3932 am__api_version='1.15'
3934 # Find a good install program. We prefer a C program (faster),
3935 # so one script is as good as another. But avoid the broken or
3936 # incompatible versions:
3937 # SysV /etc/install, /usr/sbin/install
3938 # SunOS /usr/etc/install
3939 # IRIX /sbin/install
3940 # AIX /bin/install
3941 # AmigaOS /C/install, which installs bootblocks on floppy discs
3942 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3943 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3944 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3945 # OS/2's system install, which has a completely different semantic
3946 # ./install, which can be erroneously created by make from ./install.sh.
3947 # Reject install programs that cannot install multiple files.
3948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3949 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3950 if test -z "$INSTALL"; then
3951 if ${ac_cv_path_install+:} false; then :
3952 $as_echo_n "(cached) " >&6
3953 else
3954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3955 for as_dir in $PATH
3957 IFS=$as_save_IFS
3958 test -z "$as_dir" && as_dir=.
3959 # Account for people who put trailing slashes in PATH elements.
3960 case $as_dir/ in #((
3961 ./ | .// | /[cC]/* | \
3962 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3963 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3964 /usr/ucb/* ) ;;
3966 # OSF1 and SCO ODT 3.0 have their own names for install.
3967 # Don't use installbsd from OSF since it installs stuff as root
3968 # by default.
3969 for ac_prog in ginstall scoinst install; do
3970 for ac_exec_ext in '' $ac_executable_extensions; do
3971 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3972 if test $ac_prog = install &&
3973 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3974 # AIX install. It has an incompatible calling convention.
3976 elif test $ac_prog = install &&
3977 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3978 # program-specific install script used by HP pwplus--don't use.
3980 else
3981 rm -rf conftest.one conftest.two conftest.dir
3982 echo one > conftest.one
3983 echo two > conftest.two
3984 mkdir conftest.dir
3985 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3986 test -s conftest.one && test -s conftest.two &&
3987 test -s conftest.dir/conftest.one &&
3988 test -s conftest.dir/conftest.two
3989 then
3990 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3991 break 3
3995 done
3996 done
3998 esac
4000 done
4001 IFS=$as_save_IFS
4003 rm -rf conftest.one conftest.two conftest.dir
4006 if test "${ac_cv_path_install+set}" = set; then
4007 INSTALL=$ac_cv_path_install
4008 else
4009 # As a last resort, use the slow shell script. Don't cache a
4010 # value for INSTALL within a source directory, because that will
4011 # break other packages using the cache if that directory is
4012 # removed, or if the value is a relative name.
4013 INSTALL=$ac_install_sh
4016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4017 $as_echo "$INSTALL" >&6; }
4019 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4020 # It thinks the first close brace ends the variable substitution.
4021 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4023 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4025 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4028 $as_echo_n "checking whether build environment is sane... " >&6; }
4029 # Reject unsafe characters in $srcdir or the absolute working directory
4030 # name. Accept space and tab only in the latter.
4031 am_lf='
4033 case `pwd` in
4034 *[\\\"\#\$\&\'\`$am_lf]*)
4035 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4036 esac
4037 case $srcdir in
4038 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
4039 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4040 esac
4042 # Do 'set' in a subshell so we don't clobber the current shell's
4043 # arguments. Must try -L first in case configure is actually a
4044 # symlink; some systems play weird games with the mod time of symlinks
4045 # (eg FreeBSD returns the mod time of the symlink's containing
4046 # directory).
4047 if (
4048 am_has_slept=no
4049 for am_try in 1 2; do
4050 echo "timestamp, slept: $am_has_slept" > conftest.file
4051 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4052 if test "$*" = "X"; then
4053 # -L didn't work.
4054 set X `ls -t "$srcdir/configure" conftest.file`
4056 if test "$*" != "X $srcdir/configure conftest.file" \
4057 && test "$*" != "X conftest.file $srcdir/configure"; then
4059 # If neither matched, then we have a broken ls. This can happen
4060 # if, for instance, CONFIG_SHELL is bash and it inherits a
4061 # broken ls alias from the environment. This has actually
4062 # happened. Such a system could not be considered "sane".
4063 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
4064 alias in your environment" "$LINENO" 5
4066 if test "$2" = conftest.file || test $am_try -eq 2; then
4067 break
4069 # Just in case.
4070 sleep 1
4071 am_has_slept=yes
4072 done
4073 test "$2" = conftest.file
4075 then
4076 # Ok.
4078 else
4079 as_fn_error $? "newly created file is older than distributed files!
4080 Check your system clock" "$LINENO" 5
4082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4083 $as_echo "yes" >&6; }
4084 # If we didn't sleep, we still need to ensure time stamps of config.status and
4085 # generated files are strictly newer.
4086 am_sleep_pid=
4087 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4088 ( sleep 1 ) &
4089 am_sleep_pid=$!
4092 rm -f conftest.file
4094 test "$program_prefix" != NONE &&
4095 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4096 # Use a double $ so make ignores it.
4097 test "$program_suffix" != NONE &&
4098 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4099 # Double any \ or $.
4100 # By default was `s,x,x', remove it if useless.
4101 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4102 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4104 if test x"${MISSING+set}" != xset; then
4105 case $am_aux_dir in
4106 *\ * | *\ *)
4107 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4109 MISSING="\${SHELL} $am_aux_dir/missing" ;;
4110 esac
4112 # Use eval to expand $SHELL
4113 if eval "$MISSING --is-lightweight"; then
4114 am_missing_run="$MISSING "
4115 else
4116 am_missing_run=
4117 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4118 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4121 if test x"${install_sh+set}" != xset; then
4122 case $am_aux_dir in
4123 *\ * | *\ *)
4124 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4126 install_sh="\${SHELL} $am_aux_dir/install-sh"
4127 esac
4130 # Installed binaries are usually stripped using 'strip' when the user
4131 # run "make install-strip". However 'strip' might not be the right
4132 # tool to use in cross-compilation environments, therefore Automake
4133 # will honor the 'STRIP' environment variable to overrule this program.
4134 if test "$cross_compiling" != no; then
4135 if test -n "$ac_tool_prefix"; then
4136 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4137 set dummy ${ac_tool_prefix}strip; ac_word=$2
4138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4139 $as_echo_n "checking for $ac_word... " >&6; }
4140 if ${ac_cv_prog_STRIP+:} false; then :
4141 $as_echo_n "(cached) " >&6
4142 else
4143 if test -n "$STRIP"; then
4144 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4145 else
4146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4147 for as_dir in $PATH
4149 IFS=$as_save_IFS
4150 test -z "$as_dir" && as_dir=.
4151 for ac_exec_ext in '' $ac_executable_extensions; do
4152 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4153 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4155 break 2
4157 done
4158 done
4159 IFS=$as_save_IFS
4163 STRIP=$ac_cv_prog_STRIP
4164 if test -n "$STRIP"; then
4165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4166 $as_echo "$STRIP" >&6; }
4167 else
4168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4169 $as_echo "no" >&6; }
4174 if test -z "$ac_cv_prog_STRIP"; then
4175 ac_ct_STRIP=$STRIP
4176 # Extract the first word of "strip", so it can be a program name with args.
4177 set dummy strip; ac_word=$2
4178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4179 $as_echo_n "checking for $ac_word... " >&6; }
4180 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
4181 $as_echo_n "(cached) " >&6
4182 else
4183 if test -n "$ac_ct_STRIP"; then
4184 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4185 else
4186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4187 for as_dir in $PATH
4189 IFS=$as_save_IFS
4190 test -z "$as_dir" && as_dir=.
4191 for ac_exec_ext in '' $ac_executable_extensions; do
4192 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4193 ac_cv_prog_ac_ct_STRIP="strip"
4194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4195 break 2
4197 done
4198 done
4199 IFS=$as_save_IFS
4203 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4204 if test -n "$ac_ct_STRIP"; then
4205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4206 $as_echo "$ac_ct_STRIP" >&6; }
4207 else
4208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4209 $as_echo "no" >&6; }
4212 if test "x$ac_ct_STRIP" = x; then
4213 STRIP=":"
4214 else
4215 case $cross_compiling:$ac_tool_warned in
4216 yes:)
4217 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4218 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4219 ac_tool_warned=yes ;;
4220 esac
4221 STRIP=$ac_ct_STRIP
4223 else
4224 STRIP="$ac_cv_prog_STRIP"
4228 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4231 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4232 if test -z "$MKDIR_P"; then
4233 if ${ac_cv_path_mkdir+:} false; then :
4234 $as_echo_n "(cached) " >&6
4235 else
4236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4237 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4239 IFS=$as_save_IFS
4240 test -z "$as_dir" && as_dir=.
4241 for ac_prog in mkdir gmkdir; do
4242 for ac_exec_ext in '' $ac_executable_extensions; do
4243 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
4244 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4245 'mkdir (GNU coreutils) '* | \
4246 'mkdir (coreutils) '* | \
4247 'mkdir (fileutils) '4.1*)
4248 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4249 break 3;;
4250 esac
4251 done
4252 done
4253 done
4254 IFS=$as_save_IFS
4258 test -d ./--version && rmdir ./--version
4259 if test "${ac_cv_path_mkdir+set}" = set; then
4260 MKDIR_P="$ac_cv_path_mkdir -p"
4261 else
4262 # As a last resort, use the slow shell script. Don't cache a
4263 # value for MKDIR_P within a source directory, because that will
4264 # break other packages using the cache if that directory is
4265 # removed, or if the value is a relative name.
4266 MKDIR_P="$ac_install_sh -d"
4269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4270 $as_echo "$MKDIR_P" >&6; }
4272 for ac_prog in gawk mawk nawk awk
4274 # Extract the first word of "$ac_prog", so it can be a program name with args.
4275 set dummy $ac_prog; ac_word=$2
4276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4277 $as_echo_n "checking for $ac_word... " >&6; }
4278 if ${ac_cv_prog_AWK+:} false; then :
4279 $as_echo_n "(cached) " >&6
4280 else
4281 if test -n "$AWK"; then
4282 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4283 else
4284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4285 for as_dir in $PATH
4287 IFS=$as_save_IFS
4288 test -z "$as_dir" && as_dir=.
4289 for ac_exec_ext in '' $ac_executable_extensions; do
4290 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4291 ac_cv_prog_AWK="$ac_prog"
4292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4293 break 2
4295 done
4296 done
4297 IFS=$as_save_IFS
4301 AWK=$ac_cv_prog_AWK
4302 if test -n "$AWK"; then
4303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4304 $as_echo "$AWK" >&6; }
4305 else
4306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4307 $as_echo "no" >&6; }
4311 test -n "$AWK" && break
4312 done
4314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4315 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4316 set x ${MAKE-make}
4317 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4318 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4319 $as_echo_n "(cached) " >&6
4320 else
4321 cat >conftest.make <<\_ACEOF
4322 SHELL = /bin/sh
4323 all:
4324 @echo '@@@%%%=$(MAKE)=@@@%%%'
4325 _ACEOF
4326 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4327 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4328 *@@@%%%=?*=@@@%%%*)
4329 eval ac_cv_prog_make_${ac_make}_set=yes;;
4331 eval ac_cv_prog_make_${ac_make}_set=no;;
4332 esac
4333 rm -f conftest.make
4335 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4337 $as_echo "yes" >&6; }
4338 SET_MAKE=
4339 else
4340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4341 $as_echo "no" >&6; }
4342 SET_MAKE="MAKE=${MAKE-make}"
4345 rm -rf .tst 2>/dev/null
4346 mkdir .tst 2>/dev/null
4347 if test -d .tst; then
4348 am__leading_dot=.
4349 else
4350 am__leading_dot=_
4352 rmdir .tst 2>/dev/null
4354 DEPDIR="${am__leading_dot}deps"
4356 ac_config_commands="$ac_config_commands depfiles"
4359 am_make=${MAKE-make}
4360 cat > confinc << 'END'
4361 am__doit:
4362 @echo this is the am__doit target
4363 .PHONY: am__doit
4365 # If we don't find an include directive, just comment out the code.
4366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4367 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4368 am__include="#"
4369 am__quote=
4370 _am_result=none
4371 # First try GNU make style include.
4372 echo "include confinc" > confmf
4373 # Ignore all kinds of additional output from 'make'.
4374 case `$am_make -s -f confmf 2> /dev/null` in #(
4375 *the\ am__doit\ target*)
4376 am__include=include
4377 am__quote=
4378 _am_result=GNU
4380 esac
4381 # Now try BSD make style include.
4382 if test "$am__include" = "#"; then
4383 echo '.include "confinc"' > confmf
4384 case `$am_make -s -f confmf 2> /dev/null` in #(
4385 *the\ am__doit\ target*)
4386 am__include=.include
4387 am__quote="\""
4388 _am_result=BSD
4390 esac
4394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4395 $as_echo "$_am_result" >&6; }
4396 rm -f confinc confmf
4398 # Check whether --enable-dependency-tracking was given.
4399 if test "${enable_dependency_tracking+set}" = set; then :
4400 enableval=$enable_dependency_tracking;
4403 if test "x$enable_dependency_tracking" != xno; then
4404 am_depcomp="$ac_aux_dir/depcomp"
4405 AMDEPBACKSLASH='\'
4406 am__nodep='_no'
4408 if test "x$enable_dependency_tracking" != xno; then
4409 AMDEP_TRUE=
4410 AMDEP_FALSE='#'
4411 else
4412 AMDEP_TRUE='#'
4413 AMDEP_FALSE=
4417 # Check whether --enable-silent-rules was given.
4418 if test "${enable_silent_rules+set}" = set; then :
4419 enableval=$enable_silent_rules;
4422 case $enable_silent_rules in # (((
4423 yes) AM_DEFAULT_VERBOSITY=0;;
4424 no) AM_DEFAULT_VERBOSITY=1;;
4425 *) AM_DEFAULT_VERBOSITY=1;;
4426 esac
4427 am_make=${MAKE-make}
4428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4429 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4430 if ${am_cv_make_support_nested_variables+:} false; then :
4431 $as_echo_n "(cached) " >&6
4432 else
4433 if $as_echo 'TRUE=$(BAR$(V))
4434 BAR0=false
4435 BAR1=true
4437 am__doit:
4438 @$(TRUE)
4439 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4440 am_cv_make_support_nested_variables=yes
4441 else
4442 am_cv_make_support_nested_variables=no
4445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4446 $as_echo "$am_cv_make_support_nested_variables" >&6; }
4447 if test $am_cv_make_support_nested_variables = yes; then
4448 AM_V='$(V)'
4449 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4450 else
4451 AM_V=$AM_DEFAULT_VERBOSITY
4452 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4454 AM_BACKSLASH='\'
4456 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4457 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4458 # is not polluted with repeated "-I."
4459 am__isrc=' -I$(srcdir)'
4460 # test to see if srcdir already configured
4461 if test -f $srcdir/config.status; then
4462 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4466 # test whether we have cygpath
4467 if test -z "$CYGPATH_W"; then
4468 if (cygpath --version) >/dev/null 2>/dev/null; then
4469 CYGPATH_W='cygpath -w'
4470 else
4471 CYGPATH_W=echo
4476 # Define the identity of the package.
4477 PACKAGE='libcc1'
4478 VERSION='version-unused'
4481 # Some tools Automake needs.
4483 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4486 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4489 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4492 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4495 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4497 # For better backward compatibility. To be removed once Automake 1.9.x
4498 # dies out for good. For more background, see:
4499 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4500 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4501 mkdir_p='$(MKDIR_P)'
4503 # We need awk for the "check" target (and possibly the TAP driver). The
4504 # system "awk" is bad on some platforms.
4505 # Always define AMTAR for backward compatibility. Yes, it's still used
4506 # in the wild :-( We should find a proper way to deprecate it ...
4507 AMTAR='$${TAR-tar}'
4510 # We'll loop over all known methods to create a tar archive until one works.
4511 _am_tools='gnutar pax cpio none'
4513 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4519 depcc="$CC" am_compiler_list=
4521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4522 $as_echo_n "checking dependency style of $depcc... " >&6; }
4523 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4524 $as_echo_n "(cached) " >&6
4525 else
4526 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4527 # We make a subdir and do the tests there. Otherwise we can end up
4528 # making bogus files that we don't know about and never remove. For
4529 # instance it was reported that on HP-UX the gcc test will end up
4530 # making a dummy file named 'D' -- because '-MD' means "put the output
4531 # in D".
4532 rm -rf conftest.dir
4533 mkdir conftest.dir
4534 # Copy depcomp to subdir because otherwise we won't find it if we're
4535 # using a relative directory.
4536 cp "$am_depcomp" conftest.dir
4537 cd conftest.dir
4538 # We will build objects and dependencies in a subdirectory because
4539 # it helps to detect inapplicable dependency modes. For instance
4540 # both Tru64's cc and ICC support -MD to output dependencies as a
4541 # side effect of compilation, but ICC will put the dependencies in
4542 # the current directory while Tru64 will put them in the object
4543 # directory.
4544 mkdir sub
4546 am_cv_CC_dependencies_compiler_type=none
4547 if test "$am_compiler_list" = ""; then
4548 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4550 am__universal=false
4551 case " $depcc " in #(
4552 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4553 esac
4555 for depmode in $am_compiler_list; do
4556 # Setup a source with many dependencies, because some compilers
4557 # like to wrap large dependency lists on column 80 (with \), and
4558 # we should not choose a depcomp mode which is confused by this.
4560 # We need to recreate these files for each test, as the compiler may
4561 # overwrite some of them when testing with obscure command lines.
4562 # This happens at least with the AIX C compiler.
4563 : > sub/conftest.c
4564 for i in 1 2 3 4 5 6; do
4565 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4566 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4567 # Solaris 10 /bin/sh.
4568 echo '/* dummy */' > sub/conftst$i.h
4569 done
4570 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4572 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4573 # mode. It turns out that the SunPro C++ compiler does not properly
4574 # handle '-M -o', and we need to detect this. Also, some Intel
4575 # versions had trouble with output in subdirs.
4576 am__obj=sub/conftest.${OBJEXT-o}
4577 am__minus_obj="-o $am__obj"
4578 case $depmode in
4579 gcc)
4580 # This depmode causes a compiler race in universal mode.
4581 test "$am__universal" = false || continue
4583 nosideeffect)
4584 # After this tag, mechanisms are not by side-effect, so they'll
4585 # only be used when explicitly requested.
4586 if test "x$enable_dependency_tracking" = xyes; then
4587 continue
4588 else
4589 break
4592 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4593 # This compiler won't grok '-c -o', but also, the minuso test has
4594 # not run yet. These depmodes are late enough in the game, and
4595 # so weak that their functioning should not be impacted.
4596 am__obj=conftest.${OBJEXT-o}
4597 am__minus_obj=
4599 none) break ;;
4600 esac
4601 if depmode=$depmode \
4602 source=sub/conftest.c object=$am__obj \
4603 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4604 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4605 >/dev/null 2>conftest.err &&
4606 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4607 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4608 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4609 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4610 # icc doesn't choke on unknown options, it will just issue warnings
4611 # or remarks (even with -Werror). So we grep stderr for any message
4612 # that says an option was ignored or not supported.
4613 # When given -MP, icc 7.0 and 7.1 complain thusly:
4614 # icc: Command line warning: ignoring option '-M'; no argument required
4615 # The diagnosis changed in icc 8.0:
4616 # icc: Command line remark: option '-MP' not supported
4617 if (grep 'ignoring option' conftest.err ||
4618 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4619 am_cv_CC_dependencies_compiler_type=$depmode
4620 break
4623 done
4625 cd ..
4626 rm -rf conftest.dir
4627 else
4628 am_cv_CC_dependencies_compiler_type=none
4632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4633 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4634 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4637 test "x$enable_dependency_tracking" != xno \
4638 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4639 am__fastdepCC_TRUE=
4640 am__fastdepCC_FALSE='#'
4641 else
4642 am__fastdepCC_TRUE='#'
4643 am__fastdepCC_FALSE=
4648 # POSIX will say in a future version that running "rm -f" with no argument
4649 # is OK; and we want to be able to make that assumption in our Makefile
4650 # recipes. So use an aggressive probe to check that the usage we want is
4651 # actually supported "in the wild" to an acceptable degree.
4652 # See automake bug#10828.
4653 # To make any issue more visible, cause the running configure to be aborted
4654 # by default if the 'rm' program in use doesn't match our expectations; the
4655 # user can still override this though.
4656 if rm -f && rm -fr && rm -rf; then : OK; else
4657 cat >&2 <<'END'
4658 Oops!
4660 Your 'rm' program seems unable to run without file operands specified
4661 on the command line, even when the '-f' option is present. This is contrary
4662 to the behaviour of most rm programs out there, and not conforming with
4663 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4665 Please tell bug-automake@gnu.org about your system, including the value
4666 of your $PATH and any error possibly output before this message. This
4667 can help us improve future automake versions.
4670 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4671 echo 'Configuration will proceed anyway, since you have set the' >&2
4672 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4673 echo >&2
4674 else
4675 cat >&2 <<'END'
4676 Aborting the configuration process, to ensure you take notice of the issue.
4678 You can download and install GNU coreutils to get an 'rm' implementation
4679 that behaves properly: <http://www.gnu.org/software/coreutils/>.
4681 If you want to complete the configuration process using your problematic
4682 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4683 to "yes", and re-run configure.
4686 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4692 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4693 # Check whether --enable-maintainer-mode was given.
4694 if test "${enable_maintainer_mode+set}" = set; then :
4695 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4696 else
4697 USE_MAINTAINER_MODE=no
4700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4701 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4702 if test $USE_MAINTAINER_MODE = yes; then
4703 MAINTAINER_MODE_TRUE=
4704 MAINTAINER_MODE_FALSE='#'
4705 else
4706 MAINTAINER_MODE_TRUE='#'
4707 MAINTAINER_MODE_FALSE=
4710 MAINT=$MAINTAINER_MODE_TRUE
4714 case `pwd` in
4715 *\ * | *\ *)
4716 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4717 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4718 esac
4722 macro_version='2.2.7a'
4723 macro_revision='1.3134'
4737 ltmain="$ac_aux_dir/ltmain.sh"
4739 # Backslashify metacharacters that are still active within
4740 # double-quoted strings.
4741 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4743 # Same as above, but do not quote variable references.
4744 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4746 # Sed substitution to delay expansion of an escaped shell variable in a
4747 # double_quote_subst'ed string.
4748 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4750 # Sed substitution to delay expansion of an escaped single quote.
4751 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4753 # Sed substitution to avoid accidental globbing in evaled expressions
4754 no_glob_subst='s/\*/\\\*/g'
4756 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4757 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4758 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4761 $as_echo_n "checking how to print strings... " >&6; }
4762 # Test print first, because it will be a builtin if present.
4763 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4764 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4765 ECHO='print -r --'
4766 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4767 ECHO='printf %s\n'
4768 else
4769 # Use this function as a fallback that always works.
4770 func_fallback_echo ()
4772 eval 'cat <<_LTECHO_EOF
4774 _LTECHO_EOF'
4776 ECHO='func_fallback_echo'
4779 # func_echo_all arg...
4780 # Invoke $ECHO with all args, space-separated.
4781 func_echo_all ()
4783 $ECHO ""
4786 case "$ECHO" in
4787 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4788 $as_echo "printf" >&6; } ;;
4789 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4790 $as_echo "print -r" >&6; } ;;
4791 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4792 $as_echo "cat" >&6; } ;;
4793 esac
4808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4809 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4810 if ${ac_cv_path_SED+:} false; then :
4811 $as_echo_n "(cached) " >&6
4812 else
4813 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4814 for ac_i in 1 2 3 4 5 6 7; do
4815 ac_script="$ac_script$as_nl$ac_script"
4816 done
4817 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4818 { ac_script=; unset ac_script;}
4819 if test -z "$SED"; then
4820 ac_path_SED_found=false
4821 # Loop through the user's path and test for each of PROGNAME-LIST
4822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4823 for as_dir in $PATH
4825 IFS=$as_save_IFS
4826 test -z "$as_dir" && as_dir=.
4827 for ac_prog in sed gsed; do
4828 for ac_exec_ext in '' $ac_executable_extensions; do
4829 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4830 as_fn_executable_p "$ac_path_SED" || continue
4831 # Check for GNU ac_path_SED and select it if it is found.
4832 # Check for GNU $ac_path_SED
4833 case `"$ac_path_SED" --version 2>&1` in
4834 *GNU*)
4835 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4837 ac_count=0
4838 $as_echo_n 0123456789 >"conftest.in"
4839 while :
4841 cat "conftest.in" "conftest.in" >"conftest.tmp"
4842 mv "conftest.tmp" "conftest.in"
4843 cp "conftest.in" "conftest.nl"
4844 $as_echo '' >> "conftest.nl"
4845 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4846 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4847 as_fn_arith $ac_count + 1 && ac_count=$as_val
4848 if test $ac_count -gt ${ac_path_SED_max-0}; then
4849 # Best one so far, save it but keep looking for a better one
4850 ac_cv_path_SED="$ac_path_SED"
4851 ac_path_SED_max=$ac_count
4853 # 10*(2^10) chars as input seems more than enough
4854 test $ac_count -gt 10 && break
4855 done
4856 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4857 esac
4859 $ac_path_SED_found && break 3
4860 done
4861 done
4862 done
4863 IFS=$as_save_IFS
4864 if test -z "$ac_cv_path_SED"; then
4865 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4867 else
4868 ac_cv_path_SED=$SED
4872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4873 $as_echo "$ac_cv_path_SED" >&6; }
4874 SED="$ac_cv_path_SED"
4875 rm -f conftest.sed
4877 test -z "$SED" && SED=sed
4878 Xsed="$SED -e 1s/^X//"
4890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4891 $as_echo_n "checking for fgrep... " >&6; }
4892 if ${ac_cv_path_FGREP+:} false; then :
4893 $as_echo_n "(cached) " >&6
4894 else
4895 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4896 then ac_cv_path_FGREP="$GREP -F"
4897 else
4898 if test -z "$FGREP"; then
4899 ac_path_FGREP_found=false
4900 # Loop through the user's path and test for each of PROGNAME-LIST
4901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4902 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4904 IFS=$as_save_IFS
4905 test -z "$as_dir" && as_dir=.
4906 for ac_prog in fgrep; do
4907 for ac_exec_ext in '' $ac_executable_extensions; do
4908 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4909 as_fn_executable_p "$ac_path_FGREP" || continue
4910 # Check for GNU ac_path_FGREP and select it if it is found.
4911 # Check for GNU $ac_path_FGREP
4912 case `"$ac_path_FGREP" --version 2>&1` in
4913 *GNU*)
4914 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4916 ac_count=0
4917 $as_echo_n 0123456789 >"conftest.in"
4918 while :
4920 cat "conftest.in" "conftest.in" >"conftest.tmp"
4921 mv "conftest.tmp" "conftest.in"
4922 cp "conftest.in" "conftest.nl"
4923 $as_echo 'FGREP' >> "conftest.nl"
4924 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4925 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4926 as_fn_arith $ac_count + 1 && ac_count=$as_val
4927 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4928 # Best one so far, save it but keep looking for a better one
4929 ac_cv_path_FGREP="$ac_path_FGREP"
4930 ac_path_FGREP_max=$ac_count
4932 # 10*(2^10) chars as input seems more than enough
4933 test $ac_count -gt 10 && break
4934 done
4935 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4936 esac
4938 $ac_path_FGREP_found && break 3
4939 done
4940 done
4941 done
4942 IFS=$as_save_IFS
4943 if test -z "$ac_cv_path_FGREP"; then
4944 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4946 else
4947 ac_cv_path_FGREP=$FGREP
4952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4953 $as_echo "$ac_cv_path_FGREP" >&6; }
4954 FGREP="$ac_cv_path_FGREP"
4957 test -z "$GREP" && GREP=grep
4977 # Check whether --with-gnu-ld was given.
4978 if test "${with_gnu_ld+set}" = set; then :
4979 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4980 else
4981 with_gnu_ld=no
4984 ac_prog=ld
4985 if test "$GCC" = yes; then
4986 # Check if gcc -print-prog-name=ld gives a path.
4987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4988 $as_echo_n "checking for ld used by $CC... " >&6; }
4989 case $host in
4990 *-*-mingw*)
4991 # gcc leaves a trailing carriage return which upsets mingw
4992 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4994 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4995 esac
4996 case $ac_prog in
4997 # Accept absolute paths.
4998 [\\/]* | ?:[\\/]*)
4999 re_direlt='/[^/][^/]*/\.\./'
5000 # Canonicalize the pathname of ld
5001 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5002 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5003 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5004 done
5005 test -z "$LD" && LD="$ac_prog"
5008 # If it fails, then pretend we aren't using GCC.
5009 ac_prog=ld
5012 # If it is relative, then search for the first ld in PATH.
5013 with_gnu_ld=unknown
5015 esac
5016 elif test "$with_gnu_ld" = yes; then
5017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5018 $as_echo_n "checking for GNU ld... " >&6; }
5019 else
5020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5021 $as_echo_n "checking for non-GNU ld... " >&6; }
5023 if ${lt_cv_path_LD+:} false; then :
5024 $as_echo_n "(cached) " >&6
5025 else
5026 if test -z "$LD"; then
5027 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5028 for ac_dir in $PATH; do
5029 IFS="$lt_save_ifs"
5030 test -z "$ac_dir" && ac_dir=.
5031 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5032 lt_cv_path_LD="$ac_dir/$ac_prog"
5033 # Check to see if the program is GNU ld. I'd rather use --version,
5034 # but apparently some variants of GNU ld only accept -v.
5035 # Break only if it was the GNU/non-GNU ld that we prefer.
5036 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5037 *GNU* | *'with BFD'*)
5038 test "$with_gnu_ld" != no && break
5041 test "$with_gnu_ld" != yes && break
5043 esac
5045 done
5046 IFS="$lt_save_ifs"
5047 else
5048 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5052 LD="$lt_cv_path_LD"
5053 if test -n "$LD"; then
5054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5055 $as_echo "$LD" >&6; }
5056 else
5057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5058 $as_echo "no" >&6; }
5060 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5062 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5063 if ${lt_cv_prog_gnu_ld+:} false; then :
5064 $as_echo_n "(cached) " >&6
5065 else
5066 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5067 case `$LD -v 2>&1 </dev/null` in
5068 *GNU* | *'with BFD'*)
5069 lt_cv_prog_gnu_ld=yes
5072 lt_cv_prog_gnu_ld=no
5074 esac
5076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5077 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5078 with_gnu_ld=$lt_cv_prog_gnu_ld
5088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5089 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5090 if ${lt_cv_path_NM+:} false; then :
5091 $as_echo_n "(cached) " >&6
5092 else
5093 if test -n "$NM"; then
5094 # Let the user override the nm to test.
5095 lt_nm_to_check="$NM"
5096 else
5097 lt_nm_to_check="${ac_tool_prefix}nm"
5098 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5099 lt_nm_to_check="$lt_nm_to_check nm"
5102 for lt_tmp_nm in "$lt_nm_to_check"; do
5103 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5104 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5105 IFS="$lt_save_ifs"
5106 test -z "$ac_dir" && ac_dir=.
5107 # Strip out any user-provided options from the nm to test twice,
5108 # the first time to test to see if nm (rather than its options) has
5109 # an explicit path, the second time to yield a file which can be
5110 # nm'ed itself.
5111 tmp_nm_path="`$ECHO "$lt_tmp_nm" | sed 's, -.*$,,'`"
5112 case "$tmp_nm_path" in
5113 */*|*\\*) tmp_nm="$lt_tmp_nm";;
5114 *) tmp_nm="$ac_dir/$lt_tmp_nm";;
5115 esac
5116 tmp_nm_to_nm="`$ECHO "$tmp_nm" | sed 's, -.*$,,'`"
5117 if test -f "$tmp_nm_to_nm" || test -f "$tmp_nm_to_nm$ac_exeext" ; then
5118 # Check to see if the nm accepts a BSD-compat flag.
5119 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5120 # nm: unknown option "B" ignored
5121 case `"$tmp_nm" -B "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
5122 *$tmp_nm*) lt_cv_path_NM="$tmp_nm -B"
5123 break
5126 case `"$tmp_nm" -p "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
5127 *$tmp_nm*)
5128 lt_cv_path_NM="$tmp_nm -p"
5129 break
5132 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5133 continue # so that we can try to find one that supports BSD flags
5135 esac
5137 esac
5139 done
5140 IFS="$lt_save_ifs"
5141 done
5142 : ${lt_cv_path_NM=no}
5144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5145 $as_echo "$lt_cv_path_NM" >&6; }
5146 if test "$lt_cv_path_NM" != "no"; then
5147 NM="$lt_cv_path_NM"
5148 else
5149 # Didn't find any BSD compatible name lister, look for dumpbin.
5150 if test -n "$DUMPBIN"; then :
5151 # Let the user override the test.
5152 else
5153 if test -n "$ac_tool_prefix"; then
5154 for ac_prog in dumpbin "link -dump"
5156 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5157 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5159 $as_echo_n "checking for $ac_word... " >&6; }
5160 if ${ac_cv_prog_DUMPBIN+:} false; then :
5161 $as_echo_n "(cached) " >&6
5162 else
5163 if test -n "$DUMPBIN"; then
5164 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5165 else
5166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5167 for as_dir in $PATH
5169 IFS=$as_save_IFS
5170 test -z "$as_dir" && as_dir=.
5171 for ac_exec_ext in '' $ac_executable_extensions; do
5172 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5173 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5175 break 2
5177 done
5178 done
5179 IFS=$as_save_IFS
5183 DUMPBIN=$ac_cv_prog_DUMPBIN
5184 if test -n "$DUMPBIN"; then
5185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5186 $as_echo "$DUMPBIN" >&6; }
5187 else
5188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5189 $as_echo "no" >&6; }
5193 test -n "$DUMPBIN" && break
5194 done
5196 if test -z "$DUMPBIN"; then
5197 ac_ct_DUMPBIN=$DUMPBIN
5198 for ac_prog in dumpbin "link -dump"
5200 # Extract the first word of "$ac_prog", so it can be a program name with args.
5201 set dummy $ac_prog; ac_word=$2
5202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5203 $as_echo_n "checking for $ac_word... " >&6; }
5204 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5205 $as_echo_n "(cached) " >&6
5206 else
5207 if test -n "$ac_ct_DUMPBIN"; then
5208 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5209 else
5210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5211 for as_dir in $PATH
5213 IFS=$as_save_IFS
5214 test -z "$as_dir" && as_dir=.
5215 for ac_exec_ext in '' $ac_executable_extensions; do
5216 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5217 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5219 break 2
5221 done
5222 done
5223 IFS=$as_save_IFS
5227 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5228 if test -n "$ac_ct_DUMPBIN"; then
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5230 $as_echo "$ac_ct_DUMPBIN" >&6; }
5231 else
5232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5233 $as_echo "no" >&6; }
5237 test -n "$ac_ct_DUMPBIN" && break
5238 done
5240 if test "x$ac_ct_DUMPBIN" = x; then
5241 DUMPBIN=":"
5242 else
5243 case $cross_compiling:$ac_tool_warned in
5244 yes:)
5245 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5246 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5247 ac_tool_warned=yes ;;
5248 esac
5249 DUMPBIN=$ac_ct_DUMPBIN
5253 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5254 *COFF*)
5255 DUMPBIN="$DUMPBIN -symbols"
5258 DUMPBIN=:
5260 esac
5263 if test "$DUMPBIN" != ":"; then
5264 NM="$DUMPBIN"
5267 test -z "$NM" && NM=nm
5274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5275 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5276 if ${lt_cv_nm_interface+:} false; then :
5277 $as_echo_n "(cached) " >&6
5278 else
5279 lt_cv_nm_interface="BSD nm"
5280 echo "int some_variable = 0;" > conftest.$ac_ext
5281 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5282 (eval "$ac_compile" 2>conftest.err)
5283 cat conftest.err >&5
5284 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5285 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5286 cat conftest.err >&5
5287 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5288 cat conftest.out >&5
5289 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5290 lt_cv_nm_interface="MS dumpbin"
5292 rm -f conftest*
5294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5295 $as_echo "$lt_cv_nm_interface" >&6; }
5297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5298 $as_echo_n "checking whether ln -s works... " >&6; }
5299 LN_S=$as_ln_s
5300 if test "$LN_S" = "ln -s"; then
5301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5302 $as_echo "yes" >&6; }
5303 else
5304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5305 $as_echo "no, using $LN_S" >&6; }
5308 # find the maximum length of command line arguments
5309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5310 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5311 if ${lt_cv_sys_max_cmd_len+:} false; then :
5312 $as_echo_n "(cached) " >&6
5313 else
5315 teststring="ABCD"
5317 case $build_os in
5318 msdosdjgpp*)
5319 # On DJGPP, this test can blow up pretty badly due to problems in libc
5320 # (any single argument exceeding 2000 bytes causes a buffer overrun
5321 # during glob expansion). Even if it were fixed, the result of this
5322 # check would be larger than it should be.
5323 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5326 gnu*)
5327 # Under GNU Hurd, this test is not required because there is
5328 # no limit to the length of command line arguments.
5329 # Libtool will interpret -1 as no limit whatsoever
5330 lt_cv_sys_max_cmd_len=-1;
5333 cygwin* | mingw* | cegcc*)
5334 # On Win9x/ME, this test blows up -- it succeeds, but takes
5335 # about 5 minutes as the teststring grows exponentially.
5336 # Worse, since 9x/ME are not pre-emptively multitasking,
5337 # you end up with a "frozen" computer, even though with patience
5338 # the test eventually succeeds (with a max line length of 256k).
5339 # Instead, let's just punt: use the minimum linelength reported by
5340 # all of the supported platforms: 8192 (on NT/2K/XP).
5341 lt_cv_sys_max_cmd_len=8192;
5344 mint*)
5345 # On MiNT this can take a long time and run out of memory.
5346 lt_cv_sys_max_cmd_len=8192;
5349 amigaos*)
5350 # On AmigaOS with pdksh, this test takes hours, literally.
5351 # So we just punt and use a minimum line length of 8192.
5352 lt_cv_sys_max_cmd_len=8192;
5355 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5356 # This has been around since 386BSD, at least. Likely further.
5357 if test -x /sbin/sysctl; then
5358 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5359 elif test -x /usr/sbin/sysctl; then
5360 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5361 else
5362 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5364 # And add a safety zone
5365 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5366 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5369 interix*)
5370 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5371 lt_cv_sys_max_cmd_len=196608
5374 osf*)
5375 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5376 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5377 # nice to cause kernel panics so lets avoid the loop below.
5378 # First set a reasonable default.
5379 lt_cv_sys_max_cmd_len=16384
5381 if test -x /sbin/sysconfig; then
5382 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5383 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5384 esac
5387 sco3.2v5*)
5388 lt_cv_sys_max_cmd_len=102400
5390 sysv5* | sco5v6* | sysv4.2uw2*)
5391 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5392 if test -n "$kargmax"; then
5393 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5394 else
5395 lt_cv_sys_max_cmd_len=32768
5399 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5400 if test -n "$lt_cv_sys_max_cmd_len"; then
5401 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5402 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5403 else
5404 # Make teststring a little bigger before we do anything with it.
5405 # a 1K string should be a reasonable start.
5406 for i in 1 2 3 4 5 6 7 8 ; do
5407 teststring=$teststring$teststring
5408 done
5409 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5410 # If test is not a shell built-in, we'll probably end up computing a
5411 # maximum length that is only half of the actual maximum length, but
5412 # we can't tell.
5413 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5414 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5415 test $i != 17 # 1/2 MB should be enough
5417 i=`expr $i + 1`
5418 teststring=$teststring$teststring
5419 done
5420 # Only check the string length outside the loop.
5421 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5422 teststring=
5423 # Add a significant safety factor because C++ compilers can tack on
5424 # massive amounts of additional arguments before passing them to the
5425 # linker. It appears as though 1/2 is a usable value.
5426 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5429 esac
5433 if test -n $lt_cv_sys_max_cmd_len ; then
5434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5435 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5436 else
5437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5438 $as_echo "none" >&6; }
5440 max_cmd_len=$lt_cv_sys_max_cmd_len
5447 : ${CP="cp -f"}
5448 : ${MV="mv -f"}
5449 : ${RM="rm -f"}
5451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5452 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5453 # Try some XSI features
5454 xsi_shell=no
5455 ( _lt_dummy="a/b/c"
5456 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5457 = c,a/b,, \
5458 && eval 'test $(( 1 + 1 )) -eq 2 \
5459 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5460 && xsi_shell=yes
5461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5462 $as_echo "$xsi_shell" >&6; }
5465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5466 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5467 lt_shell_append=no
5468 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5469 >/dev/null 2>&1 \
5470 && lt_shell_append=yes
5471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5472 $as_echo "$lt_shell_append" >&6; }
5475 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5476 lt_unset=unset
5477 else
5478 lt_unset=false
5485 # test EBCDIC or ASCII
5486 case `echo X|tr X '\101'` in
5487 A) # ASCII based system
5488 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5489 lt_SP2NL='tr \040 \012'
5490 lt_NL2SP='tr \015\012 \040\040'
5492 *) # EBCDIC based system
5493 lt_SP2NL='tr \100 \n'
5494 lt_NL2SP='tr \r\n \100\100'
5496 esac
5506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5507 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5508 if ${lt_cv_ld_reload_flag+:} false; then :
5509 $as_echo_n "(cached) " >&6
5510 else
5511 lt_cv_ld_reload_flag='-r'
5513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5514 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5515 reload_flag=$lt_cv_ld_reload_flag
5516 case $reload_flag in
5517 "" | " "*) ;;
5518 *) reload_flag=" $reload_flag" ;;
5519 esac
5520 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5521 case $host_os in
5522 darwin*)
5523 if test "$GCC" = yes; then
5524 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5525 else
5526 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5529 esac
5539 if test -n "$ac_tool_prefix"; then
5540 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5541 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5543 $as_echo_n "checking for $ac_word... " >&6; }
5544 if ${ac_cv_prog_OBJDUMP+:} false; then :
5545 $as_echo_n "(cached) " >&6
5546 else
5547 if test -n "$OBJDUMP"; then
5548 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5549 else
5550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5551 for as_dir in $PATH
5553 IFS=$as_save_IFS
5554 test -z "$as_dir" && as_dir=.
5555 for ac_exec_ext in '' $ac_executable_extensions; do
5556 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5557 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5559 break 2
5561 done
5562 done
5563 IFS=$as_save_IFS
5567 OBJDUMP=$ac_cv_prog_OBJDUMP
5568 if test -n "$OBJDUMP"; then
5569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5570 $as_echo "$OBJDUMP" >&6; }
5571 else
5572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5573 $as_echo "no" >&6; }
5578 if test -z "$ac_cv_prog_OBJDUMP"; then
5579 ac_ct_OBJDUMP=$OBJDUMP
5580 # Extract the first word of "objdump", so it can be a program name with args.
5581 set dummy objdump; ac_word=$2
5582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5583 $as_echo_n "checking for $ac_word... " >&6; }
5584 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5585 $as_echo_n "(cached) " >&6
5586 else
5587 if test -n "$ac_ct_OBJDUMP"; then
5588 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5589 else
5590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5591 for as_dir in $PATH
5593 IFS=$as_save_IFS
5594 test -z "$as_dir" && as_dir=.
5595 for ac_exec_ext in '' $ac_executable_extensions; do
5596 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5597 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5599 break 2
5601 done
5602 done
5603 IFS=$as_save_IFS
5607 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5608 if test -n "$ac_ct_OBJDUMP"; then
5609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5610 $as_echo "$ac_ct_OBJDUMP" >&6; }
5611 else
5612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5613 $as_echo "no" >&6; }
5616 if test "x$ac_ct_OBJDUMP" = x; then
5617 OBJDUMP="false"
5618 else
5619 case $cross_compiling:$ac_tool_warned in
5620 yes:)
5621 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5622 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5623 ac_tool_warned=yes ;;
5624 esac
5625 OBJDUMP=$ac_ct_OBJDUMP
5627 else
5628 OBJDUMP="$ac_cv_prog_OBJDUMP"
5631 test -z "$OBJDUMP" && OBJDUMP=objdump
5641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5642 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5643 if ${lt_cv_deplibs_check_method+:} false; then :
5644 $as_echo_n "(cached) " >&6
5645 else
5646 lt_cv_file_magic_cmd='$MAGIC_CMD'
5647 lt_cv_file_magic_test_file=
5648 lt_cv_deplibs_check_method='unknown'
5649 # Need to set the preceding variable on all platforms that support
5650 # interlibrary dependencies.
5651 # 'none' -- dependencies not supported.
5652 # `unknown' -- same as none, but documents that we really don't know.
5653 # 'pass_all' -- all dependencies passed with no checks.
5654 # 'test_compile' -- check by making test program.
5655 # 'file_magic [[regex]]' -- check by looking for files in library path
5656 # which responds to the $file_magic_cmd with a given extended regex.
5657 # If you have `file' or equivalent on your system and you're not sure
5658 # whether `pass_all' will *always* work, you probably want this one.
5660 case $host_os in
5661 aix[4-9]*)
5662 lt_cv_deplibs_check_method=pass_all
5665 beos*)
5666 lt_cv_deplibs_check_method=pass_all
5669 bsdi[45]*)
5670 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5671 lt_cv_file_magic_cmd='/usr/bin/file -L'
5672 lt_cv_file_magic_test_file=/shlib/libc.so
5675 cygwin*)
5676 # func_win32_libid is a shell function defined in ltmain.sh
5677 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5678 lt_cv_file_magic_cmd='func_win32_libid'
5681 mingw* | pw32*)
5682 # Base MSYS/MinGW do not provide the 'file' command needed by
5683 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5684 # unless we find 'file', for example because we are cross-compiling.
5685 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5686 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5687 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5688 lt_cv_file_magic_cmd='func_win32_libid'
5689 else
5690 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5691 lt_cv_file_magic_cmd='$OBJDUMP -f'
5695 cegcc*)
5696 # use the weaker test based on 'objdump'. See mingw*.
5697 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5698 lt_cv_file_magic_cmd='$OBJDUMP -f'
5701 darwin* | rhapsody*)
5702 lt_cv_deplibs_check_method=pass_all
5705 freebsd* | dragonfly*)
5706 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5707 case $host_cpu in
5708 i*86 )
5709 # Not sure whether the presence of OpenBSD here was a mistake.
5710 # Let's accept both of them until this is cleared up.
5711 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5712 lt_cv_file_magic_cmd=/usr/bin/file
5713 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5715 esac
5716 else
5717 lt_cv_deplibs_check_method=pass_all
5721 gnu*)
5722 lt_cv_deplibs_check_method=pass_all
5725 haiku*)
5726 lt_cv_deplibs_check_method=pass_all
5729 hpux10.20* | hpux11*)
5730 lt_cv_file_magic_cmd=/usr/bin/file
5731 case $host_cpu in
5732 ia64*)
5733 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5734 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5736 hppa*64*)
5737 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]'
5738 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5741 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5742 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5744 esac
5747 interix[3-9]*)
5748 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5749 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5752 irix5* | irix6* | nonstopux*)
5753 case $LD in
5754 *-32|*"-32 ") libmagic=32-bit;;
5755 *-n32|*"-n32 ") libmagic=N32;;
5756 *-64|*"-64 ") libmagic=64-bit;;
5757 *) libmagic=never-match;;
5758 esac
5759 lt_cv_deplibs_check_method=pass_all
5762 # This must be Linux ELF.
5763 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
5764 lt_cv_deplibs_check_method=pass_all
5767 netbsd*)
5768 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5769 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5770 else
5771 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5775 newos6*)
5776 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5777 lt_cv_file_magic_cmd=/usr/bin/file
5778 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5781 *nto* | *qnx*)
5782 lt_cv_deplibs_check_method=pass_all
5785 openbsd*)
5786 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5787 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5788 else
5789 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5793 osf3* | osf4* | osf5*)
5794 lt_cv_deplibs_check_method=pass_all
5797 rdos*)
5798 lt_cv_deplibs_check_method=pass_all
5801 solaris*)
5802 lt_cv_deplibs_check_method=pass_all
5805 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5806 lt_cv_deplibs_check_method=pass_all
5809 sysv4 | sysv4.3*)
5810 case $host_vendor in
5811 motorola)
5812 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]'
5813 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5815 ncr)
5816 lt_cv_deplibs_check_method=pass_all
5818 sequent)
5819 lt_cv_file_magic_cmd='/bin/file'
5820 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5822 sni)
5823 lt_cv_file_magic_cmd='/bin/file'
5824 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5825 lt_cv_file_magic_test_file=/lib/libc.so
5827 siemens)
5828 lt_cv_deplibs_check_method=pass_all
5831 lt_cv_deplibs_check_method=pass_all
5833 esac
5836 tpf*)
5837 lt_cv_deplibs_check_method=pass_all
5839 vxworks*)
5840 # Assume VxWorks cross toolchains are built on Linux, possibly
5841 # as canadian for Windows hosts.
5842 lt_cv_deplibs_check_method=pass_all
5844 esac
5847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5848 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5849 file_magic_cmd=$lt_cv_file_magic_cmd
5850 deplibs_check_method=$lt_cv_deplibs_check_method
5851 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5864 plugin_option=
5865 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
5866 for plugin in $plugin_names; do
5867 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
5868 if test x$plugin_so = x$plugin; then
5869 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
5871 if test x$plugin_so != x$plugin; then
5872 plugin_option="--plugin $plugin_so"
5873 break
5875 done
5877 if test -n "$ac_tool_prefix"; then
5878 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5879 set dummy ${ac_tool_prefix}ar; ac_word=$2
5880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5881 $as_echo_n "checking for $ac_word... " >&6; }
5882 if ${ac_cv_prog_AR+:} false; then :
5883 $as_echo_n "(cached) " >&6
5884 else
5885 if test -n "$AR"; then
5886 ac_cv_prog_AR="$AR" # Let the user override the test.
5887 else
5888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5889 for as_dir in $PATH
5891 IFS=$as_save_IFS
5892 test -z "$as_dir" && as_dir=.
5893 for ac_exec_ext in '' $ac_executable_extensions; do
5894 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5895 ac_cv_prog_AR="${ac_tool_prefix}ar"
5896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5897 break 2
5899 done
5900 done
5901 IFS=$as_save_IFS
5905 AR=$ac_cv_prog_AR
5906 if test -n "$AR"; then
5907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5908 $as_echo "$AR" >&6; }
5909 else
5910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5911 $as_echo "no" >&6; }
5916 if test -z "$ac_cv_prog_AR"; then
5917 ac_ct_AR=$AR
5918 # Extract the first word of "ar", so it can be a program name with args.
5919 set dummy ar; ac_word=$2
5920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5921 $as_echo_n "checking for $ac_word... " >&6; }
5922 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5923 $as_echo_n "(cached) " >&6
5924 else
5925 if test -n "$ac_ct_AR"; then
5926 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5927 else
5928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5929 for as_dir in $PATH
5931 IFS=$as_save_IFS
5932 test -z "$as_dir" && as_dir=.
5933 for ac_exec_ext in '' $ac_executable_extensions; do
5934 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5935 ac_cv_prog_ac_ct_AR="ar"
5936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5937 break 2
5939 done
5940 done
5941 IFS=$as_save_IFS
5945 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5946 if test -n "$ac_ct_AR"; then
5947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5948 $as_echo "$ac_ct_AR" >&6; }
5949 else
5950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5951 $as_echo "no" >&6; }
5954 if test "x$ac_ct_AR" = x; then
5955 AR="false"
5956 else
5957 case $cross_compiling:$ac_tool_warned in
5958 yes:)
5959 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5960 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5961 ac_tool_warned=yes ;;
5962 esac
5963 AR=$ac_ct_AR
5965 else
5966 AR="$ac_cv_prog_AR"
5969 test -z "$AR" && AR=ar
5970 if test -n "$plugin_option"; then
5971 if $AR --help 2>&1 | grep -q "\--plugin"; then
5972 touch conftest.c
5973 $AR $plugin_option rc conftest.a conftest.c
5974 if test "$?" != 0; then
5975 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
5976 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
5977 else
5978 AR="$AR $plugin_option"
5980 rm -f conftest.*
5983 test -z "$AR_FLAGS" && AR_FLAGS=cru
5995 if test -n "$ac_tool_prefix"; then
5996 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5997 set dummy ${ac_tool_prefix}strip; ac_word=$2
5998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5999 $as_echo_n "checking for $ac_word... " >&6; }
6000 if ${ac_cv_prog_STRIP+:} false; then :
6001 $as_echo_n "(cached) " >&6
6002 else
6003 if test -n "$STRIP"; then
6004 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6005 else
6006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6007 for as_dir in $PATH
6009 IFS=$as_save_IFS
6010 test -z "$as_dir" && as_dir=.
6011 for ac_exec_ext in '' $ac_executable_extensions; do
6012 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6013 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6015 break 2
6017 done
6018 done
6019 IFS=$as_save_IFS
6023 STRIP=$ac_cv_prog_STRIP
6024 if test -n "$STRIP"; then
6025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6026 $as_echo "$STRIP" >&6; }
6027 else
6028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6029 $as_echo "no" >&6; }
6034 if test -z "$ac_cv_prog_STRIP"; then
6035 ac_ct_STRIP=$STRIP
6036 # Extract the first word of "strip", so it can be a program name with args.
6037 set dummy strip; ac_word=$2
6038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6039 $as_echo_n "checking for $ac_word... " >&6; }
6040 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6041 $as_echo_n "(cached) " >&6
6042 else
6043 if test -n "$ac_ct_STRIP"; then
6044 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6045 else
6046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6047 for as_dir in $PATH
6049 IFS=$as_save_IFS
6050 test -z "$as_dir" && as_dir=.
6051 for ac_exec_ext in '' $ac_executable_extensions; do
6052 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6053 ac_cv_prog_ac_ct_STRIP="strip"
6054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6055 break 2
6057 done
6058 done
6059 IFS=$as_save_IFS
6063 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6064 if test -n "$ac_ct_STRIP"; then
6065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6066 $as_echo "$ac_ct_STRIP" >&6; }
6067 else
6068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6069 $as_echo "no" >&6; }
6072 if test "x$ac_ct_STRIP" = x; then
6073 STRIP=":"
6074 else
6075 case $cross_compiling:$ac_tool_warned in
6076 yes:)
6077 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6078 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6079 ac_tool_warned=yes ;;
6080 esac
6081 STRIP=$ac_ct_STRIP
6083 else
6084 STRIP="$ac_cv_prog_STRIP"
6087 test -z "$STRIP" && STRIP=:
6094 if test -n "$ac_tool_prefix"; then
6095 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6096 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6098 $as_echo_n "checking for $ac_word... " >&6; }
6099 if ${ac_cv_prog_RANLIB+:} false; then :
6100 $as_echo_n "(cached) " >&6
6101 else
6102 if test -n "$RANLIB"; then
6103 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6104 else
6105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6106 for as_dir in $PATH
6108 IFS=$as_save_IFS
6109 test -z "$as_dir" && as_dir=.
6110 for ac_exec_ext in '' $ac_executable_extensions; do
6111 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6112 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6114 break 2
6116 done
6117 done
6118 IFS=$as_save_IFS
6122 RANLIB=$ac_cv_prog_RANLIB
6123 if test -n "$RANLIB"; then
6124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6125 $as_echo "$RANLIB" >&6; }
6126 else
6127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6128 $as_echo "no" >&6; }
6133 if test -z "$ac_cv_prog_RANLIB"; then
6134 ac_ct_RANLIB=$RANLIB
6135 # Extract the first word of "ranlib", so it can be a program name with args.
6136 set dummy ranlib; ac_word=$2
6137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6138 $as_echo_n "checking for $ac_word... " >&6; }
6139 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6140 $as_echo_n "(cached) " >&6
6141 else
6142 if test -n "$ac_ct_RANLIB"; then
6143 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6144 else
6145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6146 for as_dir in $PATH
6148 IFS=$as_save_IFS
6149 test -z "$as_dir" && as_dir=.
6150 for ac_exec_ext in '' $ac_executable_extensions; do
6151 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6152 ac_cv_prog_ac_ct_RANLIB="ranlib"
6153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6154 break 2
6156 done
6157 done
6158 IFS=$as_save_IFS
6162 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6163 if test -n "$ac_ct_RANLIB"; then
6164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6165 $as_echo "$ac_ct_RANLIB" >&6; }
6166 else
6167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6168 $as_echo "no" >&6; }
6171 if test "x$ac_ct_RANLIB" = x; then
6172 RANLIB=":"
6173 else
6174 case $cross_compiling:$ac_tool_warned in
6175 yes:)
6176 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6177 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6178 ac_tool_warned=yes ;;
6179 esac
6180 RANLIB=$ac_ct_RANLIB
6182 else
6183 RANLIB="$ac_cv_prog_RANLIB"
6186 test -z "$RANLIB" && RANLIB=:
6187 if test -n "$plugin_option" && test "$RANLIB" != ":"; then
6188 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
6189 RANLIB="$RANLIB $plugin_option"
6198 # Determine commands to create old-style static archives.
6199 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6200 old_postinstall_cmds='chmod 644 $oldlib'
6201 old_postuninstall_cmds=
6203 if test -n "$RANLIB"; then
6204 case $host_os in
6205 openbsd*)
6206 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6209 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6211 esac
6212 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6215 case $host_os in
6216 darwin*)
6217 lock_old_archive_extraction=yes ;;
6219 lock_old_archive_extraction=no ;;
6220 esac
6260 # If no C compiler was specified, use CC.
6261 LTCC=${LTCC-"$CC"}
6263 # If no C compiler flags were specified, use CFLAGS.
6264 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6266 # Allow CC to be a program name with arguments.
6267 compiler=$CC
6270 # Check for command to grab the raw symbol name followed by C symbol from nm.
6271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6272 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6273 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6274 $as_echo_n "(cached) " >&6
6275 else
6277 # These are sane defaults that work on at least a few old systems.
6278 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6280 # Character class describing NM global symbol codes.
6281 symcode='[BCDEGRST]'
6283 # Regexp to match symbols that can be accessed directly from C.
6284 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6286 # Define system-specific variables.
6287 case $host_os in
6288 aix*)
6289 symcode='[BCDT]'
6291 cygwin* | mingw* | pw32* | cegcc*)
6292 symcode='[ABCDGISTW]'
6294 hpux*)
6295 if test "$host_cpu" = ia64; then
6296 symcode='[ABCDEGRST]'
6299 irix* | nonstopux*)
6300 symcode='[BCDEGRST]'
6302 osf*)
6303 symcode='[BCDEGQRST]'
6305 solaris*)
6306 symcode='[BCDRT]'
6308 sco3.2v5*)
6309 symcode='[DT]'
6311 sysv4.2uw2*)
6312 symcode='[DT]'
6314 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6315 symcode='[ABDT]'
6317 sysv4)
6318 symcode='[DFNSTU]'
6320 esac
6322 # If we're using GNU nm, then use its standard symbol codes.
6323 case `$NM -V 2>&1` in
6324 *GNU* | *'with BFD'*)
6325 symcode='[ABCDGIRSTW]' ;;
6326 esac
6328 # Transform an extracted symbol line into a proper C declaration.
6329 # Some systems (esp. on ia64) link data and code symbols differently,
6330 # so use this general approach.
6331 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6333 # Transform an extracted symbol line into symbol name and symbol address
6334 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6335 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'"
6337 # Handle CRLF in mingw tool chain
6338 opt_cr=
6339 case $build_os in
6340 mingw*)
6341 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6343 esac
6345 # Try without a prefix underscore, then with it.
6346 for ac_symprfx in "" "_"; do
6348 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6349 symxfrm="\\1 $ac_symprfx\\2 \\2"
6351 # Write the raw and C identifiers.
6352 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6353 # Fake it for dumpbin and say T for any non-static function
6354 # and D for any global variable.
6355 # Also find C++ and __fastcall symbols from MSVC++,
6356 # which start with @ or ?.
6357 lt_cv_sys_global_symbol_pipe="$AWK '"\
6358 " {last_section=section; section=\$ 3};"\
6359 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6360 " \$ 0!~/External *\|/{next};"\
6361 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6362 " {if(hide[section]) next};"\
6363 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6364 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6365 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6366 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6367 " ' prfx=^$ac_symprfx"
6368 else
6369 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6372 # Check to see that the pipe works correctly.
6373 pipe_works=no
6375 rm -f conftest*
6376 cat > conftest.$ac_ext <<_LT_EOF
6377 #ifdef __cplusplus
6378 extern "C" {
6379 #endif
6380 char nm_test_var;
6381 void nm_test_func(void);
6382 void nm_test_func(void){}
6383 #ifdef __cplusplus
6385 #endif
6386 int main(){nm_test_var='a';nm_test_func();return(0);}
6387 _LT_EOF
6389 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6390 (eval $ac_compile) 2>&5
6391 ac_status=$?
6392 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6393 test $ac_status = 0; }; then
6394 # Now try to grab the symbols.
6395 nlist=conftest.nm
6396 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6397 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6398 ac_status=$?
6399 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6400 test $ac_status = 0; } && test -s "$nlist"; then
6401 # Try sorting and uniquifying the output.
6402 if sort "$nlist" | uniq > "$nlist"T; then
6403 mv -f "$nlist"T "$nlist"
6404 else
6405 rm -f "$nlist"T
6408 # Make sure that we snagged all the symbols we need.
6409 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6410 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6411 cat <<_LT_EOF > conftest.$ac_ext
6412 #ifdef __cplusplus
6413 extern "C" {
6414 #endif
6416 _LT_EOF
6417 # Now generate the symbol file.
6418 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6420 cat <<_LT_EOF >> conftest.$ac_ext
6422 /* The mapping between symbol names and symbols. */
6423 const struct {
6424 const char *name;
6425 void *address;
6427 lt__PROGRAM__LTX_preloaded_symbols[] =
6429 { "@PROGRAM@", (void *) 0 },
6430 _LT_EOF
6431 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6432 cat <<\_LT_EOF >> conftest.$ac_ext
6433 {0, (void *) 0}
6436 /* This works around a problem in FreeBSD linker */
6437 #ifdef FREEBSD_WORKAROUND
6438 static const void *lt_preloaded_setup() {
6439 return lt__PROGRAM__LTX_preloaded_symbols;
6441 #endif
6443 #ifdef __cplusplus
6445 #endif
6446 _LT_EOF
6447 # Now try linking the two files.
6448 mv conftest.$ac_objext conftstm.$ac_objext
6449 lt_save_LIBS="$LIBS"
6450 lt_save_CFLAGS="$CFLAGS"
6451 LIBS="conftstm.$ac_objext"
6452 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6453 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6454 (eval $ac_link) 2>&5
6455 ac_status=$?
6456 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6457 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6458 pipe_works=yes
6460 LIBS="$lt_save_LIBS"
6461 CFLAGS="$lt_save_CFLAGS"
6462 else
6463 echo "cannot find nm_test_func in $nlist" >&5
6465 else
6466 echo "cannot find nm_test_var in $nlist" >&5
6468 else
6469 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6471 else
6472 echo "$progname: failed program was:" >&5
6473 cat conftest.$ac_ext >&5
6475 rm -rf conftest* conftst*
6477 # Do not use the global_symbol_pipe unless it works.
6478 if test "$pipe_works" = yes; then
6479 break
6480 else
6481 lt_cv_sys_global_symbol_pipe=
6483 done
6487 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6488 lt_cv_sys_global_symbol_to_cdecl=
6490 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6492 $as_echo "failed" >&6; }
6493 else
6494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6495 $as_echo "ok" >&6; }
6519 # Check whether --enable-libtool-lock was given.
6520 if test "${enable_libtool_lock+set}" = set; then :
6521 enableval=$enable_libtool_lock;
6524 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6526 # Some flags need to be propagated to the compiler or linker for good
6527 # libtool support.
6528 case $host in
6529 ia64-*-hpux*)
6530 # Find out which ABI we are using.
6531 echo 'int i;' > conftest.$ac_ext
6532 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6533 (eval $ac_compile) 2>&5
6534 ac_status=$?
6535 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6536 test $ac_status = 0; }; then
6537 case `/usr/bin/file conftest.$ac_objext` in
6538 *ELF-32*)
6539 HPUX_IA64_MODE="32"
6541 *ELF-64*)
6542 HPUX_IA64_MODE="64"
6544 esac
6546 rm -rf conftest*
6548 *-*-irix6*)
6549 # Find out which ABI we are using.
6550 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6551 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6552 (eval $ac_compile) 2>&5
6553 ac_status=$?
6554 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6555 test $ac_status = 0; }; then
6556 if test "$lt_cv_prog_gnu_ld" = yes; then
6557 case `/usr/bin/file conftest.$ac_objext` in
6558 *32-bit*)
6559 LD="${LD-ld} -melf32bsmip"
6561 *N32*)
6562 LD="${LD-ld} -melf32bmipn32"
6564 *64-bit*)
6565 LD="${LD-ld} -melf64bmip"
6567 esac
6568 else
6569 case `/usr/bin/file conftest.$ac_objext` in
6570 *32-bit*)
6571 LD="${LD-ld} -32"
6573 *N32*)
6574 LD="${LD-ld} -n32"
6576 *64-bit*)
6577 LD="${LD-ld} -64"
6579 esac
6582 rm -rf conftest*
6585 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6586 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6587 # Find out which ABI we are using.
6588 echo 'int i;' > conftest.$ac_ext
6589 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6590 (eval $ac_compile) 2>&5
6591 ac_status=$?
6592 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6593 test $ac_status = 0; }; then
6594 case `/usr/bin/file conftest.o` in
6595 *32-bit*)
6596 case $host in
6597 x86_64-*kfreebsd*-gnu)
6598 LD="${LD-ld} -m elf_i386_fbsd"
6600 x86_64-*linux*)
6601 case `/usr/bin/file conftest.o` in
6602 *x86-64*)
6603 LD="${LD-ld} -m elf32_x86_64"
6606 LD="${LD-ld} -m elf_i386"
6608 esac
6610 powerpc64le-*linux*)
6611 LD="${LD-ld} -m elf32lppclinux"
6613 powerpc64-*linux*)
6614 LD="${LD-ld} -m elf32ppclinux"
6616 s390x-*linux*)
6617 LD="${LD-ld} -m elf_s390"
6619 sparc64-*linux*)
6620 LD="${LD-ld} -m elf32_sparc"
6622 esac
6624 *64-bit*)
6625 case $host in
6626 x86_64-*kfreebsd*-gnu)
6627 LD="${LD-ld} -m elf_x86_64_fbsd"
6629 x86_64-*linux*)
6630 LD="${LD-ld} -m elf_x86_64"
6632 powerpcle-*linux*)
6633 LD="${LD-ld} -m elf64lppc"
6635 powerpc-*linux*)
6636 LD="${LD-ld} -m elf64ppc"
6638 s390*-*linux*|s390*-*tpf*)
6639 LD="${LD-ld} -m elf64_s390"
6641 sparc*-*linux*)
6642 LD="${LD-ld} -m elf64_sparc"
6644 esac
6646 esac
6648 rm -rf conftest*
6651 *-*-sco3.2v5*)
6652 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6653 SAVE_CFLAGS="$CFLAGS"
6654 CFLAGS="$CFLAGS -belf"
6655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6656 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6657 if ${lt_cv_cc_needs_belf+:} false; then :
6658 $as_echo_n "(cached) " >&6
6659 else
6660 ac_ext=c
6661 ac_cpp='$CPP $CPPFLAGS'
6662 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6663 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6664 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6667 /* end confdefs.h. */
6670 main ()
6674 return 0;
6676 _ACEOF
6677 if ac_fn_c_try_link "$LINENO"; then :
6678 lt_cv_cc_needs_belf=yes
6679 else
6680 lt_cv_cc_needs_belf=no
6682 rm -f core conftest.err conftest.$ac_objext \
6683 conftest$ac_exeext conftest.$ac_ext
6684 ac_ext=c
6685 ac_cpp='$CPP $CPPFLAGS'
6686 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6687 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6688 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6692 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6693 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6694 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6695 CFLAGS="$SAVE_CFLAGS"
6698 sparc*-*solaris*)
6699 # Find out which ABI we are using.
6700 echo 'int i;' > conftest.$ac_ext
6701 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6702 (eval $ac_compile) 2>&5
6703 ac_status=$?
6704 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6705 test $ac_status = 0; }; then
6706 case `/usr/bin/file conftest.o` in
6707 *64-bit*)
6708 case $lt_cv_prog_gnu_ld in
6709 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6711 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6712 LD="${LD-ld} -64"
6715 esac
6717 esac
6719 rm -rf conftest*
6721 esac
6723 need_locks="$enable_libtool_lock"
6726 case $host_os in
6727 rhapsody* | darwin*)
6728 if test -n "$ac_tool_prefix"; then
6729 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6730 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6732 $as_echo_n "checking for $ac_word... " >&6; }
6733 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6734 $as_echo_n "(cached) " >&6
6735 else
6736 if test -n "$DSYMUTIL"; then
6737 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6738 else
6739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6740 for as_dir in $PATH
6742 IFS=$as_save_IFS
6743 test -z "$as_dir" && as_dir=.
6744 for ac_exec_ext in '' $ac_executable_extensions; do
6745 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6746 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6748 break 2
6750 done
6751 done
6752 IFS=$as_save_IFS
6756 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6757 if test -n "$DSYMUTIL"; then
6758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6759 $as_echo "$DSYMUTIL" >&6; }
6760 else
6761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6762 $as_echo "no" >&6; }
6767 if test -z "$ac_cv_prog_DSYMUTIL"; then
6768 ac_ct_DSYMUTIL=$DSYMUTIL
6769 # Extract the first word of "dsymutil", so it can be a program name with args.
6770 set dummy dsymutil; ac_word=$2
6771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6772 $as_echo_n "checking for $ac_word... " >&6; }
6773 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6774 $as_echo_n "(cached) " >&6
6775 else
6776 if test -n "$ac_ct_DSYMUTIL"; then
6777 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6778 else
6779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6780 for as_dir in $PATH
6782 IFS=$as_save_IFS
6783 test -z "$as_dir" && as_dir=.
6784 for ac_exec_ext in '' $ac_executable_extensions; do
6785 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6786 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6788 break 2
6790 done
6791 done
6792 IFS=$as_save_IFS
6796 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6797 if test -n "$ac_ct_DSYMUTIL"; then
6798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6799 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6800 else
6801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6802 $as_echo "no" >&6; }
6805 if test "x$ac_ct_DSYMUTIL" = x; then
6806 DSYMUTIL=":"
6807 else
6808 case $cross_compiling:$ac_tool_warned in
6809 yes:)
6810 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6811 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6812 ac_tool_warned=yes ;;
6813 esac
6814 DSYMUTIL=$ac_ct_DSYMUTIL
6816 else
6817 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6820 if test -n "$ac_tool_prefix"; then
6821 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6822 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6824 $as_echo_n "checking for $ac_word... " >&6; }
6825 if ${ac_cv_prog_NMEDIT+:} false; then :
6826 $as_echo_n "(cached) " >&6
6827 else
6828 if test -n "$NMEDIT"; then
6829 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6830 else
6831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6832 for as_dir in $PATH
6834 IFS=$as_save_IFS
6835 test -z "$as_dir" && as_dir=.
6836 for ac_exec_ext in '' $ac_executable_extensions; do
6837 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6838 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6840 break 2
6842 done
6843 done
6844 IFS=$as_save_IFS
6848 NMEDIT=$ac_cv_prog_NMEDIT
6849 if test -n "$NMEDIT"; then
6850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6851 $as_echo "$NMEDIT" >&6; }
6852 else
6853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6854 $as_echo "no" >&6; }
6859 if test -z "$ac_cv_prog_NMEDIT"; then
6860 ac_ct_NMEDIT=$NMEDIT
6861 # Extract the first word of "nmedit", so it can be a program name with args.
6862 set dummy nmedit; ac_word=$2
6863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6864 $as_echo_n "checking for $ac_word... " >&6; }
6865 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6866 $as_echo_n "(cached) " >&6
6867 else
6868 if test -n "$ac_ct_NMEDIT"; then
6869 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6870 else
6871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6872 for as_dir in $PATH
6874 IFS=$as_save_IFS
6875 test -z "$as_dir" && as_dir=.
6876 for ac_exec_ext in '' $ac_executable_extensions; do
6877 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6878 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6879 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6880 break 2
6882 done
6883 done
6884 IFS=$as_save_IFS
6888 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6889 if test -n "$ac_ct_NMEDIT"; then
6890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6891 $as_echo "$ac_ct_NMEDIT" >&6; }
6892 else
6893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6894 $as_echo "no" >&6; }
6897 if test "x$ac_ct_NMEDIT" = x; then
6898 NMEDIT=":"
6899 else
6900 case $cross_compiling:$ac_tool_warned in
6901 yes:)
6902 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6903 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6904 ac_tool_warned=yes ;;
6905 esac
6906 NMEDIT=$ac_ct_NMEDIT
6908 else
6909 NMEDIT="$ac_cv_prog_NMEDIT"
6912 if test -n "$ac_tool_prefix"; then
6913 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6914 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6916 $as_echo_n "checking for $ac_word... " >&6; }
6917 if ${ac_cv_prog_LIPO+:} false; then :
6918 $as_echo_n "(cached) " >&6
6919 else
6920 if test -n "$LIPO"; then
6921 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6922 else
6923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6924 for as_dir in $PATH
6926 IFS=$as_save_IFS
6927 test -z "$as_dir" && as_dir=.
6928 for ac_exec_ext in '' $ac_executable_extensions; do
6929 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6930 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6932 break 2
6934 done
6935 done
6936 IFS=$as_save_IFS
6940 LIPO=$ac_cv_prog_LIPO
6941 if test -n "$LIPO"; then
6942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6943 $as_echo "$LIPO" >&6; }
6944 else
6945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6946 $as_echo "no" >&6; }
6951 if test -z "$ac_cv_prog_LIPO"; then
6952 ac_ct_LIPO=$LIPO
6953 # Extract the first word of "lipo", so it can be a program name with args.
6954 set dummy lipo; ac_word=$2
6955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6956 $as_echo_n "checking for $ac_word... " >&6; }
6957 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6958 $as_echo_n "(cached) " >&6
6959 else
6960 if test -n "$ac_ct_LIPO"; then
6961 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6962 else
6963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6964 for as_dir in $PATH
6966 IFS=$as_save_IFS
6967 test -z "$as_dir" && as_dir=.
6968 for ac_exec_ext in '' $ac_executable_extensions; do
6969 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6970 ac_cv_prog_ac_ct_LIPO="lipo"
6971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6972 break 2
6974 done
6975 done
6976 IFS=$as_save_IFS
6980 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6981 if test -n "$ac_ct_LIPO"; then
6982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6983 $as_echo "$ac_ct_LIPO" >&6; }
6984 else
6985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6986 $as_echo "no" >&6; }
6989 if test "x$ac_ct_LIPO" = x; then
6990 LIPO=":"
6991 else
6992 case $cross_compiling:$ac_tool_warned in
6993 yes:)
6994 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6995 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6996 ac_tool_warned=yes ;;
6997 esac
6998 LIPO=$ac_ct_LIPO
7000 else
7001 LIPO="$ac_cv_prog_LIPO"
7004 if test -n "$ac_tool_prefix"; then
7005 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7006 set dummy ${ac_tool_prefix}otool; 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_OTOOL+:} false; then :
7010 $as_echo_n "(cached) " >&6
7011 else
7012 if test -n "$OTOOL"; then
7013 ac_cv_prog_OTOOL="$OTOOL" # 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_OTOOL="${ac_tool_prefix}otool"
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 OTOOL=$ac_cv_prog_OTOOL
7033 if test -n "$OTOOL"; then
7034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7035 $as_echo "$OTOOL" >&6; }
7036 else
7037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7038 $as_echo "no" >&6; }
7043 if test -z "$ac_cv_prog_OTOOL"; then
7044 ac_ct_OTOOL=$OTOOL
7045 # Extract the first word of "otool", so it can be a program name with args.
7046 set dummy otool; ac_word=$2
7047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7048 $as_echo_n "checking for $ac_word... " >&6; }
7049 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7050 $as_echo_n "(cached) " >&6
7051 else
7052 if test -n "$ac_ct_OTOOL"; then
7053 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7054 else
7055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7056 for as_dir in $PATH
7058 IFS=$as_save_IFS
7059 test -z "$as_dir" && as_dir=.
7060 for ac_exec_ext in '' $ac_executable_extensions; do
7061 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7062 ac_cv_prog_ac_ct_OTOOL="otool"
7063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7064 break 2
7066 done
7067 done
7068 IFS=$as_save_IFS
7072 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7073 if test -n "$ac_ct_OTOOL"; then
7074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7075 $as_echo "$ac_ct_OTOOL" >&6; }
7076 else
7077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7078 $as_echo "no" >&6; }
7081 if test "x$ac_ct_OTOOL" = x; then
7082 OTOOL=":"
7083 else
7084 case $cross_compiling:$ac_tool_warned in
7085 yes:)
7086 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7087 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7088 ac_tool_warned=yes ;;
7089 esac
7090 OTOOL=$ac_ct_OTOOL
7092 else
7093 OTOOL="$ac_cv_prog_OTOOL"
7096 if test -n "$ac_tool_prefix"; then
7097 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7098 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7100 $as_echo_n "checking for $ac_word... " >&6; }
7101 if ${ac_cv_prog_OTOOL64+:} false; then :
7102 $as_echo_n "(cached) " >&6
7103 else
7104 if test -n "$OTOOL64"; then
7105 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7106 else
7107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7108 for as_dir in $PATH
7110 IFS=$as_save_IFS
7111 test -z "$as_dir" && as_dir=.
7112 for ac_exec_ext in '' $ac_executable_extensions; do
7113 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7114 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7116 break 2
7118 done
7119 done
7120 IFS=$as_save_IFS
7124 OTOOL64=$ac_cv_prog_OTOOL64
7125 if test -n "$OTOOL64"; then
7126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7127 $as_echo "$OTOOL64" >&6; }
7128 else
7129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7130 $as_echo "no" >&6; }
7135 if test -z "$ac_cv_prog_OTOOL64"; then
7136 ac_ct_OTOOL64=$OTOOL64
7137 # Extract the first word of "otool64", so it can be a program name with args.
7138 set dummy otool64; ac_word=$2
7139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7140 $as_echo_n "checking for $ac_word... " >&6; }
7141 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7142 $as_echo_n "(cached) " >&6
7143 else
7144 if test -n "$ac_ct_OTOOL64"; then
7145 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7146 else
7147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7148 for as_dir in $PATH
7150 IFS=$as_save_IFS
7151 test -z "$as_dir" && as_dir=.
7152 for ac_exec_ext in '' $ac_executable_extensions; do
7153 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7154 ac_cv_prog_ac_ct_OTOOL64="otool64"
7155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7156 break 2
7158 done
7159 done
7160 IFS=$as_save_IFS
7164 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7165 if test -n "$ac_ct_OTOOL64"; then
7166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7167 $as_echo "$ac_ct_OTOOL64" >&6; }
7168 else
7169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7170 $as_echo "no" >&6; }
7173 if test "x$ac_ct_OTOOL64" = x; then
7174 OTOOL64=":"
7175 else
7176 case $cross_compiling:$ac_tool_warned in
7177 yes:)
7178 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7179 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7180 ac_tool_warned=yes ;;
7181 esac
7182 OTOOL64=$ac_ct_OTOOL64
7184 else
7185 OTOOL64="$ac_cv_prog_OTOOL64"
7214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7215 $as_echo_n "checking for -single_module linker flag... " >&6; }
7216 if ${lt_cv_apple_cc_single_mod+:} false; then :
7217 $as_echo_n "(cached) " >&6
7218 else
7219 lt_cv_apple_cc_single_mod=no
7220 if test -z "${LT_MULTI_MODULE}"; then
7221 # By default we will add the -single_module flag. You can override
7222 # by either setting the environment variable LT_MULTI_MODULE
7223 # non-empty at configure time, or by adding -multi_module to the
7224 # link flags.
7225 rm -rf libconftest.dylib*
7226 echo "int foo(void){return 1;}" > conftest.c
7227 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7228 -dynamiclib -Wl,-single_module conftest.c" >&5
7229 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7230 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7231 _lt_result=$?
7232 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7233 lt_cv_apple_cc_single_mod=yes
7234 else
7235 cat conftest.err >&5
7237 rm -rf libconftest.dylib*
7238 rm -f conftest.*
7241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7242 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7244 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7245 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7246 $as_echo_n "(cached) " >&6
7247 else
7248 lt_cv_ld_exported_symbols_list=no
7249 save_LDFLAGS=$LDFLAGS
7250 echo "_main" > conftest.sym
7251 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7253 /* end confdefs.h. */
7256 main ()
7260 return 0;
7262 _ACEOF
7263 if ac_fn_c_try_link "$LINENO"; then :
7264 lt_cv_ld_exported_symbols_list=yes
7265 else
7266 lt_cv_ld_exported_symbols_list=no
7268 rm -f core conftest.err conftest.$ac_objext \
7269 conftest$ac_exeext conftest.$ac_ext
7270 LDFLAGS="$save_LDFLAGS"
7273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7274 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7276 $as_echo_n "checking for -force_load linker flag... " >&6; }
7277 if ${lt_cv_ld_force_load+:} false; then :
7278 $as_echo_n "(cached) " >&6
7279 else
7280 lt_cv_ld_force_load=no
7281 cat > conftest.c << _LT_EOF
7282 int forced_loaded() { return 2;}
7283 _LT_EOF
7284 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7285 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7286 echo "$AR cru libconftest.a conftest.o" >&5
7287 $AR cru libconftest.a conftest.o 2>&5
7288 cat > conftest.c << _LT_EOF
7289 int main() { return 0;}
7290 _LT_EOF
7291 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7292 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7293 _lt_result=$?
7294 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7295 lt_cv_ld_force_load=yes
7296 else
7297 cat conftest.err >&5
7299 rm -f conftest.err libconftest.a conftest conftest.c
7300 rm -rf conftest.dSYM
7303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7304 $as_echo "$lt_cv_ld_force_load" >&6; }
7305 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
7306 # build without first building modern cctools / linker.
7307 case $host_cpu-$host_os in
7308 *-rhapsody* | *-darwin1.[012])
7309 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7310 *-darwin1.*)
7311 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7312 *-darwin*)
7313 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
7314 # deployment target is forced to an earlier version.
7315 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
7316 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0-9]*)
7318 10.[012][,.]*)
7319 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7323 esac
7325 esac
7326 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7327 _lt_dar_single_mod='$single_module'
7329 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7330 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7331 else
7332 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7334 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7335 _lt_dsymutil='~$DSYMUTIL $lib || :'
7336 else
7337 _lt_dsymutil=
7340 esac
7342 for ac_header in dlfcn.h
7343 do :
7344 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7346 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7347 cat >>confdefs.h <<_ACEOF
7348 #define HAVE_DLFCN_H 1
7349 _ACEOF
7353 done
7359 # Set options
7360 # Check whether --enable-static was given.
7361 if test "${enable_static+set}" = set; then :
7362 enableval=$enable_static; p=${PACKAGE-default}
7363 case $enableval in
7364 yes) enable_static=yes ;;
7365 no) enable_static=no ;;
7367 enable_static=no
7368 # Look at the argument we got. We use all the common list separators.
7369 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7370 for pkg in $enableval; do
7371 IFS="$lt_save_ifs"
7372 if test "X$pkg" = "X$p"; then
7373 enable_static=yes
7375 done
7376 IFS="$lt_save_ifs"
7378 esac
7379 else
7380 enable_static=no
7392 enable_dlopen=no
7395 enable_win32_dll=no
7398 # Check whether --enable-shared was given.
7399 if test "${enable_shared+set}" = set; then :
7400 enableval=$enable_shared; p=${PACKAGE-default}
7401 case $enableval in
7402 yes) enable_shared=yes ;;
7403 no) enable_shared=no ;;
7405 enable_shared=no
7406 # Look at the argument we got. We use all the common list separators.
7407 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7408 for pkg in $enableval; do
7409 IFS="$lt_save_ifs"
7410 if test "X$pkg" = "X$p"; then
7411 enable_shared=yes
7413 done
7414 IFS="$lt_save_ifs"
7416 esac
7417 else
7418 enable_shared=yes
7431 # Check whether --with-pic was given.
7432 if test "${with_pic+set}" = set; then :
7433 withval=$with_pic; pic_mode="$withval"
7434 else
7435 pic_mode=default
7439 test -z "$pic_mode" && pic_mode=default
7447 # Check whether --enable-fast-install was given.
7448 if test "${enable_fast_install+set}" = set; then :
7449 enableval=$enable_fast_install; p=${PACKAGE-default}
7450 case $enableval in
7451 yes) enable_fast_install=yes ;;
7452 no) enable_fast_install=no ;;
7454 enable_fast_install=no
7455 # Look at the argument we got. We use all the common list separators.
7456 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7457 for pkg in $enableval; do
7458 IFS="$lt_save_ifs"
7459 if test "X$pkg" = "X$p"; then
7460 enable_fast_install=yes
7462 done
7463 IFS="$lt_save_ifs"
7465 esac
7466 else
7467 enable_fast_install=yes
7480 # This can be used to rebuild libtool when needed
7481 LIBTOOL_DEPS="$ltmain"
7483 # Always use our own libtool.
7484 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7511 test -z "$LN_S" && LN_S="ln -s"
7526 if test -n "${ZSH_VERSION+set}" ; then
7527 setopt NO_GLOB_SUBST
7530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7531 $as_echo_n "checking for objdir... " >&6; }
7532 if ${lt_cv_objdir+:} false; then :
7533 $as_echo_n "(cached) " >&6
7534 else
7535 rm -f .libs 2>/dev/null
7536 mkdir .libs 2>/dev/null
7537 if test -d .libs; then
7538 lt_cv_objdir=.libs
7539 else
7540 # MS-DOS does not allow filenames that begin with a dot.
7541 lt_cv_objdir=_libs
7543 rmdir .libs 2>/dev/null
7545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7546 $as_echo "$lt_cv_objdir" >&6; }
7547 objdir=$lt_cv_objdir
7553 cat >>confdefs.h <<_ACEOF
7554 #define LT_OBJDIR "$lt_cv_objdir/"
7555 _ACEOF
7560 case $host_os in
7561 aix3*)
7562 # AIX sometimes has problems with the GCC collect2 program. For some
7563 # reason, if we set the COLLECT_NAMES environment variable, the problems
7564 # vanish in a puff of smoke.
7565 if test "X${COLLECT_NAMES+set}" != Xset; then
7566 COLLECT_NAMES=
7567 export COLLECT_NAMES
7570 esac
7572 # Global variables:
7573 ofile=libtool
7574 can_build_shared=yes
7576 # All known linkers require a `.a' archive for static linking (except MSVC,
7577 # which needs '.lib').
7578 libext=a
7580 with_gnu_ld="$lt_cv_prog_gnu_ld"
7582 old_CC="$CC"
7583 old_CFLAGS="$CFLAGS"
7585 # Set sane defaults for various variables
7586 test -z "$CC" && CC=cc
7587 test -z "$LTCC" && LTCC=$CC
7588 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7589 test -z "$LD" && LD=ld
7590 test -z "$ac_objext" && ac_objext=o
7592 for cc_temp in $compiler""; do
7593 case $cc_temp in
7594 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7595 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7596 \-*) ;;
7597 *) break;;
7598 esac
7599 done
7600 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7603 # Only perform the check for file, if the check method requires it
7604 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7605 case $deplibs_check_method in
7606 file_magic*)
7607 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7609 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7610 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7611 $as_echo_n "(cached) " >&6
7612 else
7613 case $MAGIC_CMD in
7614 [\\/*] | ?:[\\/]*)
7615 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7618 lt_save_MAGIC_CMD="$MAGIC_CMD"
7619 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7620 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7621 for ac_dir in $ac_dummy; do
7622 IFS="$lt_save_ifs"
7623 test -z "$ac_dir" && ac_dir=.
7624 if test -f $ac_dir/${ac_tool_prefix}file; then
7625 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7626 if test -n "$file_magic_test_file"; then
7627 case $deplibs_check_method in
7628 "file_magic "*)
7629 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7630 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7631 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7632 $EGREP "$file_magic_regex" > /dev/null; then
7634 else
7635 cat <<_LT_EOF 1>&2
7637 *** Warning: the command libtool uses to detect shared libraries,
7638 *** $file_magic_cmd, produces output that libtool cannot recognize.
7639 *** The result is that libtool may fail to recognize shared libraries
7640 *** as such. This will affect the creation of libtool libraries that
7641 *** depend on shared libraries, but programs linked with such libtool
7642 *** libraries will work regardless of this problem. Nevertheless, you
7643 *** may want to report the problem to your system manager and/or to
7644 *** bug-libtool@gnu.org
7646 _LT_EOF
7647 fi ;;
7648 esac
7650 break
7652 done
7653 IFS="$lt_save_ifs"
7654 MAGIC_CMD="$lt_save_MAGIC_CMD"
7656 esac
7659 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7660 if test -n "$MAGIC_CMD"; then
7661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7662 $as_echo "$MAGIC_CMD" >&6; }
7663 else
7664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7665 $as_echo "no" >&6; }
7672 if test -z "$lt_cv_path_MAGIC_CMD"; then
7673 if test -n "$ac_tool_prefix"; then
7674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7675 $as_echo_n "checking for file... " >&6; }
7676 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7677 $as_echo_n "(cached) " >&6
7678 else
7679 case $MAGIC_CMD in
7680 [\\/*] | ?:[\\/]*)
7681 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7684 lt_save_MAGIC_CMD="$MAGIC_CMD"
7685 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7686 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7687 for ac_dir in $ac_dummy; do
7688 IFS="$lt_save_ifs"
7689 test -z "$ac_dir" && ac_dir=.
7690 if test -f $ac_dir/file; then
7691 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7692 if test -n "$file_magic_test_file"; then
7693 case $deplibs_check_method in
7694 "file_magic "*)
7695 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7696 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7697 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7698 $EGREP "$file_magic_regex" > /dev/null; then
7700 else
7701 cat <<_LT_EOF 1>&2
7703 *** Warning: the command libtool uses to detect shared libraries,
7704 *** $file_magic_cmd, produces output that libtool cannot recognize.
7705 *** The result is that libtool may fail to recognize shared libraries
7706 *** as such. This will affect the creation of libtool libraries that
7707 *** depend on shared libraries, but programs linked with such libtool
7708 *** libraries will work regardless of this problem. Nevertheless, you
7709 *** may want to report the problem to your system manager and/or to
7710 *** bug-libtool@gnu.org
7712 _LT_EOF
7713 fi ;;
7714 esac
7716 break
7718 done
7719 IFS="$lt_save_ifs"
7720 MAGIC_CMD="$lt_save_MAGIC_CMD"
7722 esac
7725 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7726 if test -n "$MAGIC_CMD"; then
7727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7728 $as_echo "$MAGIC_CMD" >&6; }
7729 else
7730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7731 $as_echo "no" >&6; }
7735 else
7736 MAGIC_CMD=:
7742 esac
7744 # Use C for the default configuration in the libtool script
7746 lt_save_CC="$CC"
7747 ac_ext=c
7748 ac_cpp='$CPP $CPPFLAGS'
7749 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7750 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7751 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7754 # Source file extension for C test sources.
7755 ac_ext=c
7757 # Object file extension for compiled C test sources.
7758 objext=o
7759 objext=$objext
7761 # Code to be used in simple compile tests
7762 lt_simple_compile_test_code="int some_variable = 0;"
7764 # Code to be used in simple link tests
7765 lt_simple_link_test_code='int main(){return(0);}'
7773 # If no C compiler was specified, use CC.
7774 LTCC=${LTCC-"$CC"}
7776 # If no C compiler flags were specified, use CFLAGS.
7777 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7779 # Allow CC to be a program name with arguments.
7780 compiler=$CC
7782 # Save the default compiler, since it gets overwritten when the other
7783 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7784 compiler_DEFAULT=$CC
7786 # save warnings/boilerplate of simple test code
7787 ac_outfile=conftest.$ac_objext
7788 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7789 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7790 _lt_compiler_boilerplate=`cat conftest.err`
7791 $RM conftest*
7793 ac_outfile=conftest.$ac_objext
7794 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7795 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7796 _lt_linker_boilerplate=`cat conftest.err`
7797 $RM -r conftest*
7800 ## CAVEAT EMPTOR:
7801 ## There is no encapsulation within the following macros, do not change
7802 ## the running order or otherwise move them around unless you know exactly
7803 ## what you are doing...
7804 if test -n "$compiler"; then
7806 lt_prog_compiler_no_builtin_flag=
7808 if test "$GCC" = yes; then
7809 case $cc_basename in
7810 nvcc*)
7811 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7813 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7814 esac
7816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7817 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7818 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7819 $as_echo_n "(cached) " >&6
7820 else
7821 lt_cv_prog_compiler_rtti_exceptions=no
7822 ac_outfile=conftest.$ac_objext
7823 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7824 lt_compiler_flag="-fno-rtti -fno-exceptions"
7825 # Insert the option either (1) after the last *FLAGS variable, or
7826 # (2) before a word containing "conftest.", or (3) at the end.
7827 # Note that $ac_compile itself does not contain backslashes and begins
7828 # with a dollar sign (not a hyphen), so the echo should work correctly.
7829 # The option is referenced via a variable to avoid confusing sed.
7830 lt_compile=`echo "$ac_compile" | $SED \
7831 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7832 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7833 -e 's:$: $lt_compiler_flag:'`
7834 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7835 (eval "$lt_compile" 2>conftest.err)
7836 ac_status=$?
7837 cat conftest.err >&5
7838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7839 if (exit $ac_status) && test -s "$ac_outfile"; then
7840 # The compiler can only warn and ignore the option if not recognized
7841 # So say no if there are warnings other than the usual output.
7842 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7843 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7844 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7845 lt_cv_prog_compiler_rtti_exceptions=yes
7848 $RM conftest*
7851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7852 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7854 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7855 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7856 else
7867 lt_prog_compiler_wl=
7868 lt_prog_compiler_pic=
7869 lt_prog_compiler_static=
7871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7872 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7874 if test "$GCC" = yes; then
7875 lt_prog_compiler_wl='-Wl,'
7876 lt_prog_compiler_static='-static'
7878 case $host_os in
7879 aix*)
7880 # All AIX code is PIC.
7881 if test "$host_cpu" = ia64; then
7882 # AIX 5 now supports IA64 processor
7883 lt_prog_compiler_static='-Bstatic'
7885 lt_prog_compiler_pic='-fPIC'
7888 amigaos*)
7889 case $host_cpu in
7890 powerpc)
7891 # see comment about AmigaOS4 .so support
7892 lt_prog_compiler_pic='-fPIC'
7894 m68k)
7895 # FIXME: we need at least 68020 code to build shared libraries, but
7896 # adding the `-m68020' flag to GCC prevents building anything better,
7897 # like `-m68040'.
7898 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7900 esac
7903 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7904 # PIC is the default for these OSes.
7907 mingw* | cygwin* | pw32* | os2* | cegcc*)
7908 # This hack is so that the source file can tell whether it is being
7909 # built for inclusion in a dll (and should export symbols for example).
7910 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7911 # (--disable-auto-import) libraries
7912 lt_prog_compiler_pic='-DDLL_EXPORT'
7915 darwin* | rhapsody*)
7916 # PIC is the default on this platform
7917 # Common symbols not allowed in MH_DYLIB files
7918 lt_prog_compiler_pic='-fno-common'
7921 haiku*)
7922 # PIC is the default for Haiku.
7923 # The "-static" flag exists, but is broken.
7924 lt_prog_compiler_static=
7927 hpux*)
7928 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7929 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7930 # sets the default TLS model and affects inlining.
7931 case $host_cpu in
7932 hppa*64*)
7933 # +Z the default
7936 lt_prog_compiler_pic='-fPIC'
7938 esac
7941 interix[3-9]*)
7942 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7943 # Instead, we relocate shared libraries at runtime.
7946 msdosdjgpp*)
7947 # Just because we use GCC doesn't mean we suddenly get shared libraries
7948 # on systems that don't support them.
7949 lt_prog_compiler_can_build_shared=no
7950 enable_shared=no
7953 *nto* | *qnx*)
7954 # QNX uses GNU C++, but need to define -shared option too, otherwise
7955 # it will coredump.
7956 lt_prog_compiler_pic='-fPIC -shared'
7959 sysv4*MP*)
7960 if test -d /usr/nec; then
7961 lt_prog_compiler_pic=-Kconform_pic
7966 lt_prog_compiler_pic='-fPIC'
7968 esac
7970 case $cc_basename in
7971 nvcc*) # Cuda Compiler Driver 2.2
7972 lt_prog_compiler_wl='-Xlinker '
7973 lt_prog_compiler_pic='-Xcompiler -fPIC'
7975 esac
7976 else
7977 # PORTME Check for flag to pass linker flags through the system compiler.
7978 case $host_os in
7979 aix*)
7980 lt_prog_compiler_wl='-Wl,'
7981 if test "$host_cpu" = ia64; then
7982 # AIX 5 now supports IA64 processor
7983 lt_prog_compiler_static='-Bstatic'
7984 else
7985 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7989 mingw* | cygwin* | pw32* | os2* | cegcc*)
7990 # This hack is so that the source file can tell whether it is being
7991 # built for inclusion in a dll (and should export symbols for example).
7992 lt_prog_compiler_pic='-DDLL_EXPORT'
7995 hpux9* | hpux10* | hpux11*)
7996 lt_prog_compiler_wl='-Wl,'
7997 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7998 # not for PA HP-UX.
7999 case $host_cpu in
8000 hppa*64*|ia64*)
8001 # +Z the default
8004 lt_prog_compiler_pic='+Z'
8006 esac
8007 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8008 lt_prog_compiler_static='${wl}-a ${wl}archive'
8011 irix5* | irix6* | nonstopux*)
8012 lt_prog_compiler_wl='-Wl,'
8013 # PIC (with -KPIC) is the default.
8014 lt_prog_compiler_static='-non_shared'
8017 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8018 case $cc_basename in
8019 # old Intel for x86_64 which still supported -KPIC.
8020 ecc*)
8021 lt_prog_compiler_wl='-Wl,'
8022 lt_prog_compiler_pic='-KPIC'
8023 lt_prog_compiler_static='-static'
8025 # icc used to be incompatible with GCC.
8026 # ICC 10 doesn't accept -KPIC any more.
8027 icc* | ifort*)
8028 lt_prog_compiler_wl='-Wl,'
8029 lt_prog_compiler_pic='-fPIC'
8030 lt_prog_compiler_static='-static'
8032 # Lahey Fortran 8.1.
8033 lf95*)
8034 lt_prog_compiler_wl='-Wl,'
8035 lt_prog_compiler_pic='--shared'
8036 lt_prog_compiler_static='--static'
8038 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8039 # Portland Group compilers (*not* the Pentium gcc compiler,
8040 # which looks to be a dead project)
8041 lt_prog_compiler_wl='-Wl,'
8042 lt_prog_compiler_pic='-fpic'
8043 lt_prog_compiler_static='-Bstatic'
8045 ccc*)
8046 lt_prog_compiler_wl='-Wl,'
8047 # All Alpha code is PIC.
8048 lt_prog_compiler_static='-non_shared'
8050 xl* | bgxl* | bgf* | mpixl*)
8051 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8052 lt_prog_compiler_wl='-Wl,'
8053 lt_prog_compiler_pic='-qpic'
8054 lt_prog_compiler_static='-qstaticlink'
8057 case `$CC -V 2>&1 | sed 5q` in
8058 *Sun\ F* | *Sun*Fortran*)
8059 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8060 lt_prog_compiler_pic='-KPIC'
8061 lt_prog_compiler_static='-Bstatic'
8062 lt_prog_compiler_wl=''
8064 *Sun\ C*)
8065 # Sun C 5.9
8066 lt_prog_compiler_pic='-KPIC'
8067 lt_prog_compiler_static='-Bstatic'
8068 lt_prog_compiler_wl='-Wl,'
8070 esac
8072 esac
8075 newsos6)
8076 lt_prog_compiler_pic='-KPIC'
8077 lt_prog_compiler_static='-Bstatic'
8080 *nto* | *qnx*)
8081 # QNX uses GNU C++, but need to define -shared option too, otherwise
8082 # it will coredump.
8083 lt_prog_compiler_pic='-fPIC -shared'
8086 osf3* | osf4* | osf5*)
8087 lt_prog_compiler_wl='-Wl,'
8088 # All OSF/1 code is PIC.
8089 lt_prog_compiler_static='-non_shared'
8092 rdos*)
8093 lt_prog_compiler_static='-non_shared'
8096 solaris*)
8097 lt_prog_compiler_pic='-KPIC'
8098 lt_prog_compiler_static='-Bstatic'
8099 case $cc_basename in
8100 f77* | f90* | f95*)
8101 lt_prog_compiler_wl='-Qoption ld ';;
8103 lt_prog_compiler_wl='-Wl,';;
8104 esac
8107 sunos4*)
8108 lt_prog_compiler_wl='-Qoption ld '
8109 lt_prog_compiler_pic='-PIC'
8110 lt_prog_compiler_static='-Bstatic'
8113 sysv4 | sysv4.2uw2* | sysv4.3*)
8114 lt_prog_compiler_wl='-Wl,'
8115 lt_prog_compiler_pic='-KPIC'
8116 lt_prog_compiler_static='-Bstatic'
8119 sysv4*MP*)
8120 if test -d /usr/nec ;then
8121 lt_prog_compiler_pic='-Kconform_pic'
8122 lt_prog_compiler_static='-Bstatic'
8126 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8127 lt_prog_compiler_wl='-Wl,'
8128 lt_prog_compiler_pic='-KPIC'
8129 lt_prog_compiler_static='-Bstatic'
8132 unicos*)
8133 lt_prog_compiler_wl='-Wl,'
8134 lt_prog_compiler_can_build_shared=no
8137 uts4*)
8138 lt_prog_compiler_pic='-pic'
8139 lt_prog_compiler_static='-Bstatic'
8143 lt_prog_compiler_can_build_shared=no
8145 esac
8148 case $host_os in
8149 # For platforms which do not support PIC, -DPIC is meaningless:
8150 *djgpp*)
8151 lt_prog_compiler_pic=
8154 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8156 esac
8157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8158 $as_echo "$lt_prog_compiler_pic" >&6; }
8166 # Check to make sure the PIC flag actually works.
8168 if test -n "$lt_prog_compiler_pic"; then
8169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8170 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8171 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8172 $as_echo_n "(cached) " >&6
8173 else
8174 lt_cv_prog_compiler_pic_works=no
8175 ac_outfile=conftest.$ac_objext
8176 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8177 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8178 # Insert the option either (1) after the last *FLAGS variable, or
8179 # (2) before a word containing "conftest.", or (3) at the end.
8180 # Note that $ac_compile itself does not contain backslashes and begins
8181 # with a dollar sign (not a hyphen), so the echo should work correctly.
8182 # The option is referenced via a variable to avoid confusing sed.
8183 lt_compile=`echo "$ac_compile" | $SED \
8184 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8185 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8186 -e 's:$: $lt_compiler_flag:'`
8187 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8188 (eval "$lt_compile" 2>conftest.err)
8189 ac_status=$?
8190 cat conftest.err >&5
8191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8192 if (exit $ac_status) && test -s "$ac_outfile"; then
8193 # The compiler can only warn and ignore the option if not recognized
8194 # So say no if there are warnings other than the usual output.
8195 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8196 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8197 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8198 lt_cv_prog_compiler_pic_works=yes
8201 $RM conftest*
8204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8205 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8207 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8208 case $lt_prog_compiler_pic in
8209 "" | " "*) ;;
8210 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8211 esac
8212 else
8213 lt_prog_compiler_pic=
8214 lt_prog_compiler_can_build_shared=no
8225 # Check to make sure the static flag actually works.
8227 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8229 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8230 if ${lt_cv_prog_compiler_static_works+:} false; then :
8231 $as_echo_n "(cached) " >&6
8232 else
8233 lt_cv_prog_compiler_static_works=no
8234 save_LDFLAGS="$LDFLAGS"
8235 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8236 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8237 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8238 # The linker can only warn and ignore the option if not recognized
8239 # So say no if there are warnings
8240 if test -s conftest.err; then
8241 # Append any errors to the config.log.
8242 cat conftest.err 1>&5
8243 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8244 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8245 if diff conftest.exp conftest.er2 >/dev/null; then
8246 lt_cv_prog_compiler_static_works=yes
8248 else
8249 lt_cv_prog_compiler_static_works=yes
8252 $RM -r conftest*
8253 LDFLAGS="$save_LDFLAGS"
8256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8257 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8259 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8261 else
8262 lt_prog_compiler_static=
8271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8272 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8273 if ${lt_cv_prog_compiler_c_o+:} false; then :
8274 $as_echo_n "(cached) " >&6
8275 else
8276 lt_cv_prog_compiler_c_o=no
8277 $RM -r conftest 2>/dev/null
8278 mkdir conftest
8279 cd conftest
8280 mkdir out
8281 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8283 lt_compiler_flag="-o out/conftest2.$ac_objext"
8284 # Insert the option either (1) after the last *FLAGS variable, or
8285 # (2) before a word containing "conftest.", or (3) at the end.
8286 # Note that $ac_compile itself does not contain backslashes and begins
8287 # with a dollar sign (not a hyphen), so the echo should work correctly.
8288 lt_compile=`echo "$ac_compile" | $SED \
8289 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8290 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8291 -e 's:$: $lt_compiler_flag:'`
8292 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8293 (eval "$lt_compile" 2>out/conftest.err)
8294 ac_status=$?
8295 cat out/conftest.err >&5
8296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8297 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8298 then
8299 # The compiler can only warn and ignore the option if not recognized
8300 # So say no if there are warnings
8301 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8302 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8303 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8304 lt_cv_prog_compiler_c_o=yes
8307 chmod u+w . 2>&5
8308 $RM conftest*
8309 # SGI C++ compiler will create directory out/ii_files/ for
8310 # template instantiation
8311 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8312 $RM out/* && rmdir out
8313 cd ..
8314 $RM -r conftest
8315 $RM conftest*
8318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8319 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8327 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8328 if ${lt_cv_prog_compiler_c_o+:} false; then :
8329 $as_echo_n "(cached) " >&6
8330 else
8331 lt_cv_prog_compiler_c_o=no
8332 $RM -r conftest 2>/dev/null
8333 mkdir conftest
8334 cd conftest
8335 mkdir out
8336 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8338 lt_compiler_flag="-o out/conftest2.$ac_objext"
8339 # Insert the option either (1) after the last *FLAGS variable, or
8340 # (2) before a word containing "conftest.", or (3) at the end.
8341 # Note that $ac_compile itself does not contain backslashes and begins
8342 # with a dollar sign (not a hyphen), so the echo should work correctly.
8343 lt_compile=`echo "$ac_compile" | $SED \
8344 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8345 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8346 -e 's:$: $lt_compiler_flag:'`
8347 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8348 (eval "$lt_compile" 2>out/conftest.err)
8349 ac_status=$?
8350 cat out/conftest.err >&5
8351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8352 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8353 then
8354 # The compiler can only warn and ignore the option if not recognized
8355 # So say no if there are warnings
8356 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8357 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8358 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8359 lt_cv_prog_compiler_c_o=yes
8362 chmod u+w . 2>&5
8363 $RM conftest*
8364 # SGI C++ compiler will create directory out/ii_files/ for
8365 # template instantiation
8366 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8367 $RM out/* && rmdir out
8368 cd ..
8369 $RM -r conftest
8370 $RM conftest*
8373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8374 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8379 hard_links="nottested"
8380 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8381 # do not overwrite the value of need_locks provided by the user
8382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8383 $as_echo_n "checking if we can lock with hard links... " >&6; }
8384 hard_links=yes
8385 $RM conftest*
8386 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8387 touch conftest.a
8388 ln conftest.a conftest.b 2>&5 || hard_links=no
8389 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8391 $as_echo "$hard_links" >&6; }
8392 if test "$hard_links" = no; then
8393 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8394 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8395 need_locks=warn
8397 else
8398 need_locks=no
8406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8407 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8409 runpath_var=
8410 allow_undefined_flag=
8411 always_export_symbols=no
8412 archive_cmds=
8413 archive_expsym_cmds=
8414 compiler_needs_object=no
8415 enable_shared_with_static_runtimes=no
8416 export_dynamic_flag_spec=
8417 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8418 hardcode_automatic=no
8419 hardcode_direct=no
8420 hardcode_direct_absolute=no
8421 hardcode_libdir_flag_spec=
8422 hardcode_libdir_flag_spec_ld=
8423 hardcode_libdir_separator=
8424 hardcode_minus_L=no
8425 hardcode_shlibpath_var=unsupported
8426 inherit_rpath=no
8427 link_all_deplibs=unknown
8428 module_cmds=
8429 module_expsym_cmds=
8430 old_archive_from_new_cmds=
8431 old_archive_from_expsyms_cmds=
8432 thread_safe_flag_spec=
8433 whole_archive_flag_spec=
8434 # include_expsyms should be a list of space-separated symbols to be *always*
8435 # included in the symbol list
8436 include_expsyms=
8437 # exclude_expsyms can be an extended regexp of symbols to exclude
8438 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8439 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8440 # as well as any symbol that contains `d'.
8441 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8442 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8443 # platforms (ab)use it in PIC code, but their linkers get confused if
8444 # the symbol is explicitly referenced. Since portable code cannot
8445 # rely on this symbol name, it's probably fine to never include it in
8446 # preloaded symbol tables.
8447 # Exclude shared library initialization/finalization symbols.
8448 extract_expsyms_cmds=
8450 case $host_os in
8451 cygwin* | mingw* | pw32* | cegcc*)
8452 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8453 # When not using gcc, we currently assume that we are using
8454 # Microsoft Visual C++.
8455 if test "$GCC" != yes; then
8456 with_gnu_ld=no
8459 interix*)
8460 # we just hope/assume this is gcc and not c89 (= MSVC++)
8461 with_gnu_ld=yes
8463 openbsd*)
8464 with_gnu_ld=no
8466 esac
8468 ld_shlibs=yes
8470 # On some targets, GNU ld is compatible enough with the native linker
8471 # that we're better off using the native interface for both.
8472 lt_use_gnu_ld_interface=no
8473 if test "$with_gnu_ld" = yes; then
8474 case $host_os in
8475 aix*)
8476 # The AIX port of GNU ld has always aspired to compatibility
8477 # with the native linker. However, as the warning in the GNU ld
8478 # block says, versions before 2.19.5* couldn't really create working
8479 # shared libraries, regardless of the interface used.
8480 case `$LD -v 2>&1` in
8481 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8482 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8483 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8485 lt_use_gnu_ld_interface=yes
8487 esac
8490 lt_use_gnu_ld_interface=yes
8492 esac
8495 if test "$lt_use_gnu_ld_interface" = yes; then
8496 # If archive_cmds runs LD, not CC, wlarc should be empty
8497 wlarc='${wl}'
8499 # Set some defaults for GNU ld with shared library support. These
8500 # are reset later if shared libraries are not supported. Putting them
8501 # here allows them to be overridden if necessary.
8502 runpath_var=LD_RUN_PATH
8503 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8504 export_dynamic_flag_spec='${wl}--export-dynamic'
8505 # ancient GNU ld didn't support --whole-archive et. al.
8506 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8507 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8508 else
8509 whole_archive_flag_spec=
8511 supports_anon_versioning=no
8512 case `$LD -v 2>&1` in
8513 *GNU\ gold*) supports_anon_versioning=yes ;;
8514 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8515 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8516 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8517 *\ 2.11.*) ;; # other 2.11 versions
8518 *) supports_anon_versioning=yes ;;
8519 esac
8521 # See if GNU ld supports shared libraries.
8522 case $host_os in
8523 aix[3-9]*)
8524 # On AIX/PPC, the GNU linker is very broken
8525 if test "$host_cpu" != ia64; then
8526 ld_shlibs=no
8527 cat <<_LT_EOF 1>&2
8529 *** Warning: the GNU linker, at least up to release 2.19, is reported
8530 *** to be unable to reliably create shared libraries on AIX.
8531 *** Therefore, libtool is disabling shared libraries support. If you
8532 *** really care for shared libraries, you may want to install binutils
8533 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8534 *** You will then need to restart the configuration process.
8536 _LT_EOF
8540 amigaos*)
8541 case $host_cpu in
8542 powerpc)
8543 # see comment about AmigaOS4 .so support
8544 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8545 archive_expsym_cmds=''
8547 m68k)
8548 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)'
8549 hardcode_libdir_flag_spec='-L$libdir'
8550 hardcode_minus_L=yes
8552 esac
8555 beos*)
8556 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8557 allow_undefined_flag=unsupported
8558 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8559 # support --undefined. This deserves some investigation. FIXME
8560 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8561 else
8562 ld_shlibs=no
8566 cygwin* | mingw* | pw32* | cegcc*)
8567 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8568 # as there is no search path for DLLs.
8569 hardcode_libdir_flag_spec='-L$libdir'
8570 export_dynamic_flag_spec='${wl}--export-all-symbols'
8571 allow_undefined_flag=unsupported
8572 always_export_symbols=no
8573 enable_shared_with_static_runtimes=yes
8574 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8576 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8577 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8578 # If the export-symbols file already is a .def file (1st line
8579 # is EXPORTS), use it as is; otherwise, prepend...
8580 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8581 cp $export_symbols $output_objdir/$soname.def;
8582 else
8583 echo EXPORTS > $output_objdir/$soname.def;
8584 cat $export_symbols >> $output_objdir/$soname.def;
8586 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8587 else
8588 ld_shlibs=no
8592 haiku*)
8593 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8594 link_all_deplibs=yes
8597 interix[3-9]*)
8598 hardcode_direct=no
8599 hardcode_shlibpath_var=no
8600 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8601 export_dynamic_flag_spec='${wl}-E'
8602 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8603 # Instead, shared libraries are loaded at an image base (0x10000000 by
8604 # default) and relocated if they conflict, which is a slow very memory
8605 # consuming and fragmenting process. To avoid this, we pick a random,
8606 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8607 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8608 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8609 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'
8612 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
8613 tmp_diet=no
8614 if test "$host_os" = linux-dietlibc; then
8615 case $cc_basename in
8616 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8617 esac
8619 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8620 && test "$tmp_diet" = no
8621 then
8622 tmp_addflag=' $pic_flag'
8623 tmp_sharedflag='-shared'
8624 case $cc_basename,$host_cpu in
8625 pgcc*) # Portland Group C compiler
8626 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'
8627 tmp_addflag=' $pic_flag'
8629 pgf77* | pgf90* | pgf95* | pgfortran*)
8630 # Portland Group f77 and f90 compilers
8631 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'
8632 tmp_addflag=' $pic_flag -Mnomain' ;;
8633 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8634 tmp_addflag=' -i_dynamic' ;;
8635 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8636 tmp_addflag=' -i_dynamic -nofor_main' ;;
8637 ifc* | ifort*) # Intel Fortran compiler
8638 tmp_addflag=' -nofor_main' ;;
8639 lf95*) # Lahey Fortran 8.1
8640 whole_archive_flag_spec=
8641 tmp_sharedflag='--shared' ;;
8642 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8643 tmp_sharedflag='-qmkshrobj'
8644 tmp_addflag= ;;
8645 nvcc*) # Cuda Compiler Driver 2.2
8646 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'
8647 compiler_needs_object=yes
8649 esac
8650 case `$CC -V 2>&1 | sed 5q` in
8651 *Sun\ C*) # Sun C 5.9
8652 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'
8653 compiler_needs_object=yes
8654 tmp_sharedflag='-G' ;;
8655 *Sun\ F*) # Sun Fortran 8.3
8656 tmp_sharedflag='-G' ;;
8657 esac
8658 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8660 if test "x$supports_anon_versioning" = xyes; then
8661 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8662 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8663 echo "local: *; };" >> $output_objdir/$libname.ver~
8664 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8667 case $cc_basename in
8668 xlf* | bgf* | bgxlf* | mpixlf*)
8669 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8670 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8671 hardcode_libdir_flag_spec=
8672 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8673 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8674 if test "x$supports_anon_versioning" = xyes; then
8675 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8676 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8677 echo "local: *; };" >> $output_objdir/$libname.ver~
8678 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8681 esac
8682 else
8683 ld_shlibs=no
8687 netbsd*)
8688 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8689 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8690 wlarc=
8691 else
8692 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8693 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8697 solaris*)
8698 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8699 ld_shlibs=no
8700 cat <<_LT_EOF 1>&2
8702 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8703 *** create shared libraries on Solaris systems. Therefore, libtool
8704 *** is disabling shared libraries support. We urge you to upgrade GNU
8705 *** binutils to release 2.9.1 or newer. Another option is to modify
8706 *** your PATH or compiler configuration so that the native linker is
8707 *** used, and then restart.
8709 _LT_EOF
8710 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8711 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8712 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8713 else
8714 ld_shlibs=no
8718 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8719 case `$LD -v 2>&1` in
8720 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8721 ld_shlibs=no
8722 cat <<_LT_EOF 1>&2
8724 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8725 *** reliably create shared libraries on SCO systems. Therefore, libtool
8726 *** is disabling shared libraries support. We urge you to upgrade GNU
8727 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8728 *** your PATH or compiler configuration so that the native linker is
8729 *** used, and then restart.
8731 _LT_EOF
8734 # For security reasons, it is highly recommended that you always
8735 # use absolute paths for naming shared libraries, and exclude the
8736 # DT_RUNPATH tag from executables and libraries. But doing so
8737 # requires that you compile everything twice, which is a pain.
8738 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8739 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8740 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8741 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8742 else
8743 ld_shlibs=no
8746 esac
8749 sunos4*)
8750 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8751 wlarc=
8752 hardcode_direct=yes
8753 hardcode_shlibpath_var=no
8757 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8758 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8759 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8760 else
8761 ld_shlibs=no
8764 esac
8766 if test "$ld_shlibs" = no; then
8767 runpath_var=
8768 hardcode_libdir_flag_spec=
8769 export_dynamic_flag_spec=
8770 whole_archive_flag_spec=
8772 else
8773 # PORTME fill in a description of your system's linker (not GNU ld)
8774 case $host_os in
8775 aix3*)
8776 allow_undefined_flag=unsupported
8777 always_export_symbols=yes
8778 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'
8779 # Note: this linker hardcodes the directories in LIBPATH if there
8780 # are no directories specified by -L.
8781 hardcode_minus_L=yes
8782 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8783 # Neither direct hardcoding nor static linking is supported with a
8784 # broken collect2.
8785 hardcode_direct=unsupported
8789 aix[4-9]*)
8790 if test "$host_cpu" = ia64; then
8791 # On IA64, the linker does run time linking by default, so we don't
8792 # have to do anything special.
8793 aix_use_runtimelinking=no
8794 exp_sym_flag='-Bexport'
8795 no_entry_flag=""
8796 else
8797 # If we're using GNU nm, then we don't want the "-C" option.
8798 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8799 # Also, AIX nm treats weak defined symbols like other global
8800 # defined symbols, whereas GNU nm marks them as "W".
8801 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8802 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'
8803 else
8804 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'
8806 aix_use_runtimelinking=no
8808 # Test if we are trying to use run time linking or normal
8809 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8810 # need to do runtime linking.
8811 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8812 for ld_flag in $LDFLAGS; do
8813 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8814 aix_use_runtimelinking=yes
8815 break
8817 done
8819 esac
8821 exp_sym_flag='-bexport'
8822 no_entry_flag='-bnoentry'
8825 # When large executables or shared objects are built, AIX ld can
8826 # have problems creating the table of contents. If linking a library
8827 # or program results in "error TOC overflow" add -mminimal-toc to
8828 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8829 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8831 archive_cmds=''
8832 hardcode_direct=yes
8833 hardcode_direct_absolute=yes
8834 hardcode_libdir_separator=':'
8835 link_all_deplibs=yes
8836 file_list_spec='${wl}-f,'
8838 if test "$GCC" = yes; then
8839 case $host_os in aix4.[012]|aix4.[012].*)
8840 # We only want to do this on AIX 4.2 and lower, the check
8841 # below for broken collect2 doesn't work under 4.3+
8842 collect2name=`${CC} -print-prog-name=collect2`
8843 if test -f "$collect2name" &&
8844 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8845 then
8846 # We have reworked collect2
8848 else
8849 # We have old collect2
8850 hardcode_direct=unsupported
8851 # It fails to find uninstalled libraries when the uninstalled
8852 # path is not listed in the libpath. Setting hardcode_minus_L
8853 # to unsupported forces relinking
8854 hardcode_minus_L=yes
8855 hardcode_libdir_flag_spec='-L$libdir'
8856 hardcode_libdir_separator=
8859 esac
8860 shared_flag='-shared'
8861 if test "$aix_use_runtimelinking" = yes; then
8862 shared_flag="$shared_flag "'${wl}-G'
8864 else
8865 # not using gcc
8866 if test "$host_cpu" = ia64; then
8867 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8868 # chokes on -Wl,-G. The following line is correct:
8869 shared_flag='-G'
8870 else
8871 if test "$aix_use_runtimelinking" = yes; then
8872 shared_flag='${wl}-G'
8873 else
8874 shared_flag='${wl}-bM:SRE'
8879 export_dynamic_flag_spec='${wl}-bexpall'
8880 # It seems that -bexpall does not export symbols beginning with
8881 # underscore (_), so it is better to generate a list of symbols to export.
8882 always_export_symbols=yes
8883 if test "$aix_use_runtimelinking" = yes; then
8884 # Warning - without using the other runtime loading flags (-brtl),
8885 # -berok will link without error, but may produce a broken library.
8886 allow_undefined_flag='-berok'
8887 # Determine the default libpath from the value encoded in an
8888 # empty executable.
8889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8890 /* end confdefs.h. */
8893 main ()
8897 return 0;
8899 _ACEOF
8900 if ac_fn_c_try_link "$LINENO"; then :
8902 lt_aix_libpath_sed='
8903 /Import File Strings/,/^$/ {
8904 /^0/ {
8905 s/^0 *\(.*\)$/\1/
8909 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8910 # Check for a 64-bit object if we didn't find anything.
8911 if test -z "$aix_libpath"; then
8912 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8915 rm -f core conftest.err conftest.$ac_objext \
8916 conftest$ac_exeext conftest.$ac_ext
8917 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8919 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8920 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"
8921 else
8922 if test "$host_cpu" = ia64; then
8923 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8924 allow_undefined_flag="-z nodefs"
8925 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"
8926 else
8927 # Determine the default libpath from the value encoded in an
8928 # empty executable.
8929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8930 /* end confdefs.h. */
8933 main ()
8937 return 0;
8939 _ACEOF
8940 if ac_fn_c_try_link "$LINENO"; then :
8942 lt_aix_libpath_sed='
8943 /Import File Strings/,/^$/ {
8944 /^0/ {
8945 s/^0 *\(.*\)$/\1/
8949 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8950 # Check for a 64-bit object if we didn't find anything.
8951 if test -z "$aix_libpath"; then
8952 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8955 rm -f core conftest.err conftest.$ac_objext \
8956 conftest$ac_exeext conftest.$ac_ext
8957 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8959 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8960 # Warning - without using the other run time loading flags,
8961 # -berok will link without error, but may produce a broken library.
8962 no_undefined_flag=' ${wl}-bernotok'
8963 allow_undefined_flag=' ${wl}-berok'
8964 if test "$with_gnu_ld" = yes; then
8965 # We only use this code for GNU lds that support --whole-archive.
8966 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8967 else
8968 # Exported symbols can be pulled into shared objects from archives
8969 whole_archive_flag_spec='$convenience'
8971 archive_cmds_need_lc=yes
8972 # This is similar to how AIX traditionally builds its shared libraries.
8973 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'
8978 amigaos*)
8979 case $host_cpu in
8980 powerpc)
8981 # see comment about AmigaOS4 .so support
8982 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8983 archive_expsym_cmds=''
8985 m68k)
8986 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)'
8987 hardcode_libdir_flag_spec='-L$libdir'
8988 hardcode_minus_L=yes
8990 esac
8993 bsdi[45]*)
8994 export_dynamic_flag_spec=-rdynamic
8997 cygwin* | mingw* | pw32* | cegcc*)
8998 # When not using gcc, we currently assume that we are using
8999 # Microsoft Visual C++.
9000 # hardcode_libdir_flag_spec is actually meaningless, as there is
9001 # no search path for DLLs.
9002 hardcode_libdir_flag_spec=' '
9003 allow_undefined_flag=unsupported
9004 # Tell ltmain to make .lib files, not .a files.
9005 libext=lib
9006 # Tell ltmain to make .dll files, not .so files.
9007 shrext_cmds=".dll"
9008 # FIXME: Setting linknames here is a bad hack.
9009 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9010 # The linker will automatically build a .lib file if we build a DLL.
9011 old_archive_from_new_cmds='true'
9012 # FIXME: Should let the user specify the lib program.
9013 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9014 fix_srcfile_path='`cygpath -w "$srcfile"`'
9015 enable_shared_with_static_runtimes=yes
9018 darwin* | rhapsody*)
9022 # Publish an arg to allow the user to select that Darwin host (and target)
9023 # libraries should be given install-names like @rpath/libfoo.dylib. This
9024 # requires that the user of the library then adds an 'rpath' to the DSO that
9025 # needs access.
9026 # NOTE: there are defaults below, for systems that support rpaths. The person
9027 # configuring can override the defaults for any system version that supports
9028 # them - they are, however, forced off for system versions without support.
9029 # Check whether --enable-darwin-at-rpath was given.
9030 if test "${enable_darwin_at_rpath+set}" = set; then :
9031 enableval=$enable_darwin_at_rpath; if test "x$enable_darwin_at_rpath" = "xyes"; then
9032 # This is not supported before macOS 10.5 / Darwin9.
9033 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host_os in
9034 UNSET,darwin[4-8]*|UNSET,rhapsody*|10.[0-4][,.]*)
9035 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Darwin @rpath library names are incompatible with OSX versions earlier than 10.5 (rpaths disabled)" >&5
9036 $as_echo "$as_me: WARNING: Darwin @rpath library names are incompatible with OSX versions earlier than 10.5 (rpaths disabled)" >&2;}
9037 enable_darwin_at_rpath=no
9039 esac
9041 else
9042 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host_os in
9043 # As above, before 10.5 / Darwin9 this does not work.
9044 UNSET,darwin[4-8]*|UNSET,rhapsody*|10.[0-4][,.]*)
9045 enable_darwin_at_rpath=no
9048 # We cannot build and test reliably on macOS 10.11+ (Darwin15+) without use
9049 # of rpaths, since runpaths set via DYLD_LIBRARY_PATH are elided by key
9050 # system executables (e.g. /bin/sh). Force rpaths on for these systems.
9051 UNSET,darwin1[5-9]*|UNSET,darwin2*|10.1[1-9][,.]*|1[1-9].*[,.]* )
9052 { $as_echo "$as_me:${as_lineno-$LINENO}: @rpath library names are needed on macOS versions later than 10.11 (rpaths have been enabled)" >&5
9053 $as_echo "$as_me: @rpath library names are needed on macOS versions later than 10.11 (rpaths have been enabled)" >&6;}
9054 enable_darwin_at_rpath=yes
9056 # NOTE: we are not (yet) doing anything for 10.5 .. 10.10, since they can
9057 # work with either DYLD_LIBRARY_PATH or embedded rpaths.
9059 esac
9064 archive_cmds_need_lc=no
9065 hardcode_direct=no
9066 hardcode_automatic=yes
9067 hardcode_shlibpath_var=unsupported
9068 if test "$lt_cv_ld_force_load" = "yes"; then
9069 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\"`'
9070 else
9071 whole_archive_flag_spec=''
9073 link_all_deplibs=yes
9074 allow_undefined_flag="$_lt_dar_allow_undefined"
9075 case $cc_basename in
9076 ifort*) _lt_dar_can_shared=yes ;;
9077 *) _lt_dar_can_shared=$GCC ;;
9078 esac
9079 if test "$_lt_dar_can_shared" = "yes"; then
9080 output_verbose_link_cmd=func_echo_all
9081 _lt_install_name='\$rpath/\$soname'
9082 if test "x$enable_darwin_at_rpath" = "xyes"; then
9083 _lt_install_name='@rpath/\$soname'
9085 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name ${_lt_install_name} \$verstring ${_lt_dsymutil}"
9086 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9087 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name ${_lt_install_name} \$verstring ${_lt_dar_export_syms}${_lt_dsymutil}"
9088 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}"
9090 else
9091 ld_shlibs=no
9096 dgux*)
9097 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9098 hardcode_libdir_flag_spec='-L$libdir'
9099 hardcode_shlibpath_var=no
9102 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9103 # support. Future versions do this automatically, but an explicit c++rt0.o
9104 # does not break anything, and helps significantly (at the cost of a little
9105 # extra space).
9106 freebsd2.2*)
9107 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9108 hardcode_libdir_flag_spec='-R$libdir'
9109 hardcode_direct=yes
9110 hardcode_shlibpath_var=no
9113 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9114 freebsd2.*)
9115 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9116 hardcode_direct=yes
9117 hardcode_minus_L=yes
9118 hardcode_shlibpath_var=no
9121 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9122 freebsd* | dragonfly*)
9123 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9124 hardcode_libdir_flag_spec='-R$libdir'
9125 hardcode_direct=yes
9126 hardcode_shlibpath_var=no
9129 hpux9*)
9130 if test "$GCC" = yes; then
9131 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'
9132 else
9133 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'
9135 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9136 hardcode_libdir_separator=:
9137 hardcode_direct=yes
9139 # hardcode_minus_L: Not really in the search PATH,
9140 # but as the default location of the library.
9141 hardcode_minus_L=yes
9142 export_dynamic_flag_spec='${wl}-E'
9145 hpux10*)
9146 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9147 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9148 else
9149 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9151 if test "$with_gnu_ld" = no; then
9152 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9153 hardcode_libdir_flag_spec_ld='+b $libdir'
9154 hardcode_libdir_separator=:
9155 hardcode_direct=yes
9156 hardcode_direct_absolute=yes
9157 export_dynamic_flag_spec='${wl}-E'
9158 # hardcode_minus_L: Not really in the search PATH,
9159 # but as the default location of the library.
9160 hardcode_minus_L=yes
9164 hpux11*)
9165 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9166 case $host_cpu in
9167 hppa*64*)
9168 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9170 ia64*)
9171 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9174 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9176 esac
9177 else
9178 case $host_cpu in
9179 hppa*64*)
9180 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9182 ia64*)
9183 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9187 # Older versions of the 11.00 compiler do not understand -b yet
9188 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9190 $as_echo_n "checking if $CC understands -b... " >&6; }
9191 if ${lt_cv_prog_compiler__b+:} false; then :
9192 $as_echo_n "(cached) " >&6
9193 else
9194 lt_cv_prog_compiler__b=no
9195 save_LDFLAGS="$LDFLAGS"
9196 LDFLAGS="$LDFLAGS -b"
9197 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9198 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9199 # The linker can only warn and ignore the option if not recognized
9200 # So say no if there are warnings
9201 if test -s conftest.err; then
9202 # Append any errors to the config.log.
9203 cat conftest.err 1>&5
9204 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9205 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9206 if diff conftest.exp conftest.er2 >/dev/null; then
9207 lt_cv_prog_compiler__b=yes
9209 else
9210 lt_cv_prog_compiler__b=yes
9213 $RM -r conftest*
9214 LDFLAGS="$save_LDFLAGS"
9217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9218 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9220 if test x"$lt_cv_prog_compiler__b" = xyes; then
9221 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9222 else
9223 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9227 esac
9229 if test "$with_gnu_ld" = no; then
9230 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9231 hardcode_libdir_separator=:
9233 case $host_cpu in
9234 hppa*64*|ia64*)
9235 hardcode_direct=no
9236 hardcode_shlibpath_var=no
9239 hardcode_direct=yes
9240 hardcode_direct_absolute=yes
9241 export_dynamic_flag_spec='${wl}-E'
9243 # hardcode_minus_L: Not really in the search PATH,
9244 # but as the default location of the library.
9245 hardcode_minus_L=yes
9247 esac
9251 irix5* | irix6* | nonstopux*)
9252 if test "$GCC" = yes; then
9253 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'
9254 # Try to use the -exported_symbol ld option, if it does not
9255 # work, assume that -exports_file does not work either and
9256 # implicitly export all symbols.
9257 save_LDFLAGS="$LDFLAGS"
9258 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9260 /* end confdefs.h. */
9261 int foo(void) {}
9262 _ACEOF
9263 if ac_fn_c_try_link "$LINENO"; then :
9264 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'
9267 rm -f core conftest.err conftest.$ac_objext \
9268 conftest$ac_exeext conftest.$ac_ext
9269 LDFLAGS="$save_LDFLAGS"
9270 else
9271 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'
9272 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'
9274 archive_cmds_need_lc='no'
9275 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9276 hardcode_libdir_separator=:
9277 inherit_rpath=yes
9278 link_all_deplibs=yes
9281 netbsd*)
9282 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9283 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9284 else
9285 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9287 hardcode_libdir_flag_spec='-R$libdir'
9288 hardcode_direct=yes
9289 hardcode_shlibpath_var=no
9292 newsos6)
9293 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9294 hardcode_direct=yes
9295 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9296 hardcode_libdir_separator=:
9297 hardcode_shlibpath_var=no
9300 *nto* | *qnx*)
9303 openbsd*)
9304 if test -f /usr/libexec/ld.so; then
9305 hardcode_direct=yes
9306 hardcode_shlibpath_var=no
9307 hardcode_direct_absolute=yes
9308 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9309 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9310 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9311 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9312 export_dynamic_flag_spec='${wl}-E'
9313 else
9314 case $host_os in
9315 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9316 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9317 hardcode_libdir_flag_spec='-R$libdir'
9320 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9321 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9323 esac
9325 else
9326 ld_shlibs=no
9330 os2*)
9331 hardcode_libdir_flag_spec='-L$libdir'
9332 hardcode_minus_L=yes
9333 allow_undefined_flag=unsupported
9334 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'
9335 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9338 osf3*)
9339 if test "$GCC" = yes; then
9340 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9341 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'
9342 else
9343 allow_undefined_flag=' -expect_unresolved \*'
9344 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'
9346 archive_cmds_need_lc='no'
9347 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9348 hardcode_libdir_separator=:
9351 osf4* | osf5*) # as osf3* with the addition of -msym flag
9352 if test "$GCC" = yes; then
9353 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9354 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'
9355 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9356 else
9357 allow_undefined_flag=' -expect_unresolved \*'
9358 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'
9359 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~
9360 $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'
9362 # Both c and cxx compiler support -rpath directly
9363 hardcode_libdir_flag_spec='-rpath $libdir'
9365 archive_cmds_need_lc='no'
9366 hardcode_libdir_separator=:
9369 solaris*)
9370 no_undefined_flag=' -z defs'
9371 if test "$GCC" = yes; then
9372 wlarc='${wl}'
9373 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9374 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9375 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9376 else
9377 case `$CC -V 2>&1` in
9378 *"Compilers 5.0"*)
9379 wlarc=''
9380 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9381 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9382 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9385 wlarc='${wl}'
9386 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9387 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9388 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9390 esac
9392 hardcode_libdir_flag_spec='-R$libdir'
9393 hardcode_shlibpath_var=no
9394 case $host_os in
9395 solaris2.[0-5] | solaris2.[0-5].*) ;;
9397 # The compiler driver will combine and reorder linker options,
9398 # but understands `-z linker_flag'. GCC discards it without `$wl',
9399 # but is careful enough not to reorder.
9400 # Supported since Solaris 2.6 (maybe 2.5.1?)
9401 if test "$GCC" = yes; then
9402 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9403 else
9404 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9407 esac
9408 link_all_deplibs=yes
9411 sunos4*)
9412 if test "x$host_vendor" = xsequent; then
9413 # Use $CC to link under sequent, because it throws in some extra .o
9414 # files that make .init and .fini sections work.
9415 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9416 else
9417 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9419 hardcode_libdir_flag_spec='-L$libdir'
9420 hardcode_direct=yes
9421 hardcode_minus_L=yes
9422 hardcode_shlibpath_var=no
9425 sysv4)
9426 case $host_vendor in
9427 sni)
9428 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9429 hardcode_direct=yes # is this really true???
9431 siemens)
9432 ## LD is ld it makes a PLAMLIB
9433 ## CC just makes a GrossModule.
9434 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9435 reload_cmds='$CC -r -o $output$reload_objs'
9436 hardcode_direct=no
9438 motorola)
9439 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9440 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9442 esac
9443 runpath_var='LD_RUN_PATH'
9444 hardcode_shlibpath_var=no
9447 sysv4.3*)
9448 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9449 hardcode_shlibpath_var=no
9450 export_dynamic_flag_spec='-Bexport'
9453 sysv4*MP*)
9454 if test -d /usr/nec; then
9455 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9456 hardcode_shlibpath_var=no
9457 runpath_var=LD_RUN_PATH
9458 hardcode_runpath_var=yes
9459 ld_shlibs=yes
9463 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9464 no_undefined_flag='${wl}-z,text'
9465 archive_cmds_need_lc=no
9466 hardcode_shlibpath_var=no
9467 runpath_var='LD_RUN_PATH'
9469 if test "$GCC" = yes; then
9470 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9471 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9472 else
9473 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9474 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9478 sysv5* | sco3.2v5* | sco5v6*)
9479 # Note: We can NOT use -z defs as we might desire, because we do not
9480 # link with -lc, and that would cause any symbols used from libc to
9481 # always be unresolved, which means just about no library would
9482 # ever link correctly. If we're not using GNU ld we use -z text
9483 # though, which does catch some bad symbols but isn't as heavy-handed
9484 # as -z defs.
9485 no_undefined_flag='${wl}-z,text'
9486 allow_undefined_flag='${wl}-z,nodefs'
9487 archive_cmds_need_lc=no
9488 hardcode_shlibpath_var=no
9489 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9490 hardcode_libdir_separator=':'
9491 link_all_deplibs=yes
9492 export_dynamic_flag_spec='${wl}-Bexport'
9493 runpath_var='LD_RUN_PATH'
9495 if test "$GCC" = yes; then
9496 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9497 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9498 else
9499 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9500 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9504 uts4*)
9505 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9506 hardcode_libdir_flag_spec='-L$libdir'
9507 hardcode_shlibpath_var=no
9511 ld_shlibs=no
9513 esac
9515 if test x$host_vendor = xsni; then
9516 case $host in
9517 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9518 export_dynamic_flag_spec='${wl}-Blargedynsym'
9520 esac
9524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9525 $as_echo "$ld_shlibs" >&6; }
9526 test "$ld_shlibs" = no && can_build_shared=no
9528 with_gnu_ld=$with_gnu_ld
9545 # Do we need to explicitly link libc?
9547 case "x$archive_cmds_need_lc" in
9548 x|xyes)
9549 # Assume -lc should be added
9550 archive_cmds_need_lc=yes
9552 if test "$enable_shared" = yes && test "$GCC" = yes; then
9553 case $archive_cmds in
9554 *'~'*)
9555 # FIXME: we may have to deal with multi-command sequences.
9557 '$CC '*)
9558 # Test whether the compiler implicitly links with -lc since on some
9559 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9560 # to ld, don't add -lc before -lgcc.
9561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9562 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9563 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9564 $as_echo_n "(cached) " >&6
9565 else
9566 $RM conftest*
9567 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9569 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9570 (eval $ac_compile) 2>&5
9571 ac_status=$?
9572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9573 test $ac_status = 0; } 2>conftest.err; then
9574 soname=conftest
9575 lib=conftest
9576 libobjs=conftest.$ac_objext
9577 deplibs=
9578 wl=$lt_prog_compiler_wl
9579 pic_flag=$lt_prog_compiler_pic
9580 compiler_flags=-v
9581 linker_flags=-v
9582 verstring=
9583 output_objdir=.
9584 libname=conftest
9585 lt_save_allow_undefined_flag=$allow_undefined_flag
9586 allow_undefined_flag=
9587 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9588 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9589 ac_status=$?
9590 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9591 test $ac_status = 0; }
9592 then
9593 lt_cv_archive_cmds_need_lc=no
9594 else
9595 lt_cv_archive_cmds_need_lc=yes
9597 allow_undefined_flag=$lt_save_allow_undefined_flag
9598 else
9599 cat conftest.err 1>&5
9601 $RM conftest*
9604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9605 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9606 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9608 esac
9611 esac
9769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9770 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9772 if test "$GCC" = yes; then
9773 case $host_os in
9774 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9775 *) lt_awk_arg="/^libraries:/" ;;
9776 esac
9777 case $host_os in
9778 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9779 *) lt_sed_strip_eq="s,=/,/,g" ;;
9780 esac
9781 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9782 case $lt_search_path_spec in
9783 *\;*)
9784 # if the path contains ";" then we assume it to be the separator
9785 # otherwise default to the standard path separator (i.e. ":") - it is
9786 # assumed that no part of a normal pathname contains ";" but that should
9787 # okay in the real world where ";" in dirpaths is itself problematic.
9788 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9791 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9793 esac
9794 # Ok, now we have the path, separated by spaces, we can step through it
9795 # and add multilib dir if necessary.
9796 lt_tmp_lt_search_path_spec=
9797 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9798 for lt_sys_path in $lt_search_path_spec; do
9799 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9800 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9801 else
9802 test -d "$lt_sys_path" && \
9803 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9805 done
9806 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9807 BEGIN {RS=" "; FS="/|\n";} {
9808 lt_foo="";
9809 lt_count=0;
9810 for (lt_i = NF; lt_i > 0; lt_i--) {
9811 if ($lt_i != "" && $lt_i != ".") {
9812 if ($lt_i == "..") {
9813 lt_count++;
9814 } else {
9815 if (lt_count == 0) {
9816 lt_foo="/" $lt_i lt_foo;
9817 } else {
9818 lt_count--;
9823 if (lt_foo != "") { lt_freq[lt_foo]++; }
9824 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9826 # AWK program above erroneously prepends '/' to C:/dos/paths
9827 # for these hosts.
9828 case $host_os in
9829 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9830 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9831 esac
9832 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9833 else
9834 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9836 library_names_spec=
9837 libname_spec='lib$name'
9838 soname_spec=
9839 shrext_cmds=".so"
9840 postinstall_cmds=
9841 postuninstall_cmds=
9842 finish_cmds=
9843 finish_eval=
9844 shlibpath_var=
9845 shlibpath_overrides_runpath=unknown
9846 version_type=none
9847 dynamic_linker="$host_os ld.so"
9848 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9849 need_lib_prefix=unknown
9850 hardcode_into_libs=no
9852 # when you set need_version to no, make sure it does not cause -set_version
9853 # flags to be left without arguments
9854 need_version=unknown
9856 case $host_os in
9857 aix3*)
9858 version_type=linux
9859 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9860 shlibpath_var=LIBPATH
9862 # AIX 3 has no versioning support, so we append a major version to the name.
9863 soname_spec='${libname}${release}${shared_ext}$major'
9866 aix[4-9]*)
9867 version_type=linux
9868 need_lib_prefix=no
9869 need_version=no
9870 hardcode_into_libs=yes
9871 if test "$host_cpu" = ia64; then
9872 # AIX 5 supports IA64
9873 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9874 shlibpath_var=LD_LIBRARY_PATH
9875 else
9876 # With GCC up to 2.95.x, collect2 would create an import file
9877 # for dependence libraries. The import file would start with
9878 # the line `#! .'. This would cause the generated library to
9879 # depend on `.', always an invalid library. This was fixed in
9880 # development snapshots of GCC prior to 3.0.
9881 case $host_os in
9882 aix4 | aix4.[01] | aix4.[01].*)
9883 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9884 echo ' yes '
9885 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9887 else
9888 can_build_shared=no
9891 esac
9892 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9893 # soname into executable. Probably we can add versioning support to
9894 # collect2, so additional links can be useful in future.
9895 if test "$aix_use_runtimelinking" = yes; then
9896 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9897 # instead of lib<name>.a to let people know that these are not
9898 # typical AIX shared libraries.
9899 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9900 else
9901 # We preserve .a as extension for shared libraries through AIX4.2
9902 # and later when we are not doing run time linking.
9903 library_names_spec='${libname}${release}.a $libname.a'
9904 soname_spec='${libname}${release}${shared_ext}$major'
9906 shlibpath_var=LIBPATH
9910 amigaos*)
9911 case $host_cpu in
9912 powerpc)
9913 # Since July 2007 AmigaOS4 officially supports .so libraries.
9914 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9917 m68k)
9918 library_names_spec='$libname.ixlibrary $libname.a'
9919 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9920 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'
9922 esac
9925 beos*)
9926 library_names_spec='${libname}${shared_ext}'
9927 dynamic_linker="$host_os ld.so"
9928 shlibpath_var=LIBRARY_PATH
9931 bsdi[45]*)
9932 version_type=linux
9933 need_version=no
9934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9935 soname_spec='${libname}${release}${shared_ext}$major'
9936 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9937 shlibpath_var=LD_LIBRARY_PATH
9938 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9939 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9940 # the default ld.so.conf also contains /usr/contrib/lib and
9941 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9942 # libtool to hard-code these into programs
9945 cygwin* | mingw* | pw32* | cegcc*)
9946 version_type=windows
9947 shrext_cmds=".dll"
9948 need_version=no
9949 need_lib_prefix=no
9951 case $GCC,$host_os in
9952 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9953 library_names_spec='$libname.dll.a'
9954 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9955 postinstall_cmds='base_file=`basename \${file}`~
9956 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9957 dldir=$destdir/`dirname \$dlpath`~
9958 test -d \$dldir || mkdir -p \$dldir~
9959 $install_prog $dir/$dlname \$dldir/$dlname~
9960 chmod a+x \$dldir/$dlname~
9961 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9962 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9964 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9965 dlpath=$dir/\$dldll~
9966 $RM \$dlpath'
9967 shlibpath_overrides_runpath=yes
9969 case $host_os in
9970 cygwin*)
9971 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9972 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9974 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9976 mingw* | cegcc*)
9977 # MinGW DLLs use traditional 'lib' prefix
9978 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9980 pw32*)
9981 # pw32 DLLs use 'pw' prefix rather than 'lib'
9982 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9984 esac
9988 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9990 esac
9991 dynamic_linker='Win32 ld.exe'
9992 # FIXME: first we should search . and the directory the executable is in
9993 shlibpath_var=PATH
9996 darwin* | rhapsody*)
9997 dynamic_linker="$host_os dyld"
9998 version_type=darwin
9999 need_lib_prefix=no
10000 need_version=no
10001 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10002 soname_spec='${libname}${release}${major}$shared_ext'
10003 shlibpath_overrides_runpath=yes
10004 shlibpath_var=DYLD_LIBRARY_PATH
10005 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10007 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10008 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10011 dgux*)
10012 version_type=linux
10013 need_lib_prefix=no
10014 need_version=no
10015 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10016 soname_spec='${libname}${release}${shared_ext}$major'
10017 shlibpath_var=LD_LIBRARY_PATH
10020 freebsd* | dragonfly*)
10021 # DragonFly does not have aout. When/if they implement a new
10022 # versioning mechanism, adjust this.
10023 if test -x /usr/bin/objformat; then
10024 objformat=`/usr/bin/objformat`
10025 else
10026 case $host_os in
10027 freebsd[23].*) objformat=aout ;;
10028 *) objformat=elf ;;
10029 esac
10031 version_type=freebsd-$objformat
10032 case $version_type in
10033 freebsd-elf*)
10034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10035 need_version=no
10036 need_lib_prefix=no
10038 freebsd-*)
10039 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10040 need_version=yes
10042 esac
10043 shlibpath_var=LD_LIBRARY_PATH
10044 case $host_os in
10045 freebsd2.*)
10046 shlibpath_overrides_runpath=yes
10048 freebsd3.[01]* | freebsdelf3.[01]*)
10049 shlibpath_overrides_runpath=yes
10050 hardcode_into_libs=yes
10052 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10053 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10054 shlibpath_overrides_runpath=no
10055 hardcode_into_libs=yes
10057 *) # from 4.6 on, and DragonFly
10058 shlibpath_overrides_runpath=yes
10059 hardcode_into_libs=yes
10061 esac
10064 haiku*)
10065 version_type=linux
10066 need_lib_prefix=no
10067 need_version=no
10068 dynamic_linker="$host_os runtime_loader"
10069 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10070 soname_spec='${libname}${release}${shared_ext}$major'
10071 shlibpath_var=LIBRARY_PATH
10072 shlibpath_overrides_runpath=yes
10073 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10074 hardcode_into_libs=yes
10077 hpux9* | hpux10* | hpux11*)
10078 # Give a soname corresponding to the major version so that dld.sl refuses to
10079 # link against other versions.
10080 version_type=sunos
10081 need_lib_prefix=no
10082 need_version=no
10083 case $host_cpu in
10084 ia64*)
10085 shrext_cmds='.so'
10086 hardcode_into_libs=yes
10087 dynamic_linker="$host_os dld.so"
10088 shlibpath_var=LD_LIBRARY_PATH
10089 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10091 soname_spec='${libname}${release}${shared_ext}$major'
10092 if test "X$HPUX_IA64_MODE" = X32; then
10093 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10094 else
10095 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10097 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10099 hppa*64*)
10100 shrext_cmds='.sl'
10101 hardcode_into_libs=yes
10102 dynamic_linker="$host_os dld.sl"
10103 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10104 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10106 soname_spec='${libname}${release}${shared_ext}$major'
10107 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10108 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10111 shrext_cmds='.sl'
10112 dynamic_linker="$host_os dld.sl"
10113 shlibpath_var=SHLIB_PATH
10114 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10116 soname_spec='${libname}${release}${shared_ext}$major'
10118 esac
10119 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10120 postinstall_cmds='chmod 555 $lib'
10121 # or fails outright, so override atomically:
10122 install_override_mode=555
10125 interix[3-9]*)
10126 version_type=linux
10127 need_lib_prefix=no
10128 need_version=no
10129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10130 soname_spec='${libname}${release}${shared_ext}$major'
10131 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10132 shlibpath_var=LD_LIBRARY_PATH
10133 shlibpath_overrides_runpath=no
10134 hardcode_into_libs=yes
10137 irix5* | irix6* | nonstopux*)
10138 case $host_os in
10139 nonstopux*) version_type=nonstopux ;;
10141 if test "$lt_cv_prog_gnu_ld" = yes; then
10142 version_type=linux
10143 else
10144 version_type=irix
10145 fi ;;
10146 esac
10147 need_lib_prefix=no
10148 need_version=no
10149 soname_spec='${libname}${release}${shared_ext}$major'
10150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10151 case $host_os in
10152 irix5* | nonstopux*)
10153 libsuff= shlibsuff=
10156 case $LD in # libtool.m4 will add one of these switches to LD
10157 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10158 libsuff= shlibsuff= libmagic=32-bit;;
10159 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10160 libsuff=32 shlibsuff=N32 libmagic=N32;;
10161 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10162 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10163 *) libsuff= shlibsuff= libmagic=never-match;;
10164 esac
10166 esac
10167 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10168 shlibpath_overrides_runpath=no
10169 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10170 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10171 hardcode_into_libs=yes
10174 # No shared lib support for Linux oldld, aout, or coff.
10175 linux*oldld* | linux*aout* | linux*coff*)
10176 dynamic_linker=no
10179 # This must be Linux ELF.
10181 # uclinux* changes (here and below) have been submitted to the libtool
10182 # project, but have not yet been accepted: they are GCC-local changes
10183 # for the time being. (See
10184 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
10185 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
10186 version_type=linux
10187 need_lib_prefix=no
10188 need_version=no
10189 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10190 soname_spec='${libname}${release}${shared_ext}$major'
10191 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10192 shlibpath_var=LD_LIBRARY_PATH
10193 shlibpath_overrides_runpath=no
10195 # Some binutils ld are patched to set DT_RUNPATH
10196 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10197 $as_echo_n "(cached) " >&6
10198 else
10199 lt_cv_shlibpath_overrides_runpath=no
10200 save_LDFLAGS=$LDFLAGS
10201 save_libdir=$libdir
10202 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10203 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10205 /* end confdefs.h. */
10208 main ()
10212 return 0;
10214 _ACEOF
10215 if ac_fn_c_try_link "$LINENO"; then :
10216 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10217 lt_cv_shlibpath_overrides_runpath=yes
10220 rm -f core conftest.err conftest.$ac_objext \
10221 conftest$ac_exeext conftest.$ac_ext
10222 LDFLAGS=$save_LDFLAGS
10223 libdir=$save_libdir
10227 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10229 # This implies no fast_install, which is unacceptable.
10230 # Some rework will be needed to allow for fast_install
10231 # before this can be enabled.
10232 hardcode_into_libs=yes
10234 # Append ld.so.conf contents to the search path
10235 if test -f /etc/ld.so.conf; then
10236 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' ' '`
10237 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10240 # We used to test for /lib/ld.so.1 and disable shared libraries on
10241 # powerpc, because MkLinux only supported shared libraries with the
10242 # GNU dynamic linker. Since this was broken with cross compilers,
10243 # most powerpc-linux boxes support dynamic linking these days and
10244 # people can always --disable-shared, the test was removed, and we
10245 # assume the GNU/Linux dynamic linker is in use.
10246 dynamic_linker='GNU/Linux ld.so'
10249 netbsd*)
10250 version_type=sunos
10251 need_lib_prefix=no
10252 need_version=no
10253 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10255 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10256 dynamic_linker='NetBSD (a.out) ld.so'
10257 else
10258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10259 soname_spec='${libname}${release}${shared_ext}$major'
10260 dynamic_linker='NetBSD ld.elf_so'
10262 shlibpath_var=LD_LIBRARY_PATH
10263 shlibpath_overrides_runpath=yes
10264 hardcode_into_libs=yes
10267 newsos6)
10268 version_type=linux
10269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10270 shlibpath_var=LD_LIBRARY_PATH
10271 shlibpath_overrides_runpath=yes
10274 *nto* | *qnx*)
10275 version_type=qnx
10276 need_lib_prefix=no
10277 need_version=no
10278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10279 soname_spec='${libname}${release}${shared_ext}$major'
10280 shlibpath_var=LD_LIBRARY_PATH
10281 shlibpath_overrides_runpath=no
10282 hardcode_into_libs=yes
10283 dynamic_linker='ldqnx.so'
10286 openbsd*)
10287 version_type=sunos
10288 sys_lib_dlsearch_path_spec="/usr/lib"
10289 need_lib_prefix=no
10290 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10291 case $host_os in
10292 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10293 *) need_version=no ;;
10294 esac
10295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10296 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10297 shlibpath_var=LD_LIBRARY_PATH
10298 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10299 case $host_os in
10300 openbsd2.[89] | openbsd2.[89].*)
10301 shlibpath_overrides_runpath=no
10304 shlibpath_overrides_runpath=yes
10306 esac
10307 else
10308 shlibpath_overrides_runpath=yes
10312 os2*)
10313 libname_spec='$name'
10314 shrext_cmds=".dll"
10315 need_lib_prefix=no
10316 library_names_spec='$libname${shared_ext} $libname.a'
10317 dynamic_linker='OS/2 ld.exe'
10318 shlibpath_var=LIBPATH
10321 osf3* | osf4* | osf5*)
10322 version_type=osf
10323 need_lib_prefix=no
10324 need_version=no
10325 soname_spec='${libname}${release}${shared_ext}$major'
10326 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10327 shlibpath_var=LD_LIBRARY_PATH
10328 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10329 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10332 rdos*)
10333 dynamic_linker=no
10336 solaris*)
10337 version_type=linux
10338 need_lib_prefix=no
10339 need_version=no
10340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10341 soname_spec='${libname}${release}${shared_ext}$major'
10342 shlibpath_var=LD_LIBRARY_PATH
10343 shlibpath_overrides_runpath=yes
10344 hardcode_into_libs=yes
10345 # ldd complains unless libraries are executable
10346 postinstall_cmds='chmod +x $lib'
10349 sunos4*)
10350 version_type=sunos
10351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10352 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10353 shlibpath_var=LD_LIBRARY_PATH
10354 shlibpath_overrides_runpath=yes
10355 if test "$with_gnu_ld" = yes; then
10356 need_lib_prefix=no
10358 need_version=yes
10361 sysv4 | sysv4.3*)
10362 version_type=linux
10363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10364 soname_spec='${libname}${release}${shared_ext}$major'
10365 shlibpath_var=LD_LIBRARY_PATH
10366 case $host_vendor in
10367 sni)
10368 shlibpath_overrides_runpath=no
10369 need_lib_prefix=no
10370 runpath_var=LD_RUN_PATH
10372 siemens)
10373 need_lib_prefix=no
10375 motorola)
10376 need_lib_prefix=no
10377 need_version=no
10378 shlibpath_overrides_runpath=no
10379 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10381 esac
10384 sysv4*MP*)
10385 if test -d /usr/nec ;then
10386 version_type=linux
10387 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10388 soname_spec='$libname${shared_ext}.$major'
10389 shlibpath_var=LD_LIBRARY_PATH
10393 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10394 version_type=freebsd-elf
10395 need_lib_prefix=no
10396 need_version=no
10397 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10398 soname_spec='${libname}${release}${shared_ext}$major'
10399 shlibpath_var=LD_LIBRARY_PATH
10400 shlibpath_overrides_runpath=yes
10401 hardcode_into_libs=yes
10402 if test "$with_gnu_ld" = yes; then
10403 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10404 else
10405 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10406 case $host_os in
10407 sco3.2v5*)
10408 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10410 esac
10412 sys_lib_dlsearch_path_spec='/usr/lib'
10415 tpf*)
10416 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10417 version_type=linux
10418 need_lib_prefix=no
10419 need_version=no
10420 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10421 shlibpath_var=LD_LIBRARY_PATH
10422 shlibpath_overrides_runpath=no
10423 hardcode_into_libs=yes
10426 uts4*)
10427 version_type=linux
10428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10429 soname_spec='${libname}${release}${shared_ext}$major'
10430 shlibpath_var=LD_LIBRARY_PATH
10433 # Shared libraries for VwWorks, >= 7 only at this stage
10434 # and (fpic) still incompatible with "large" code models
10435 # in a few configurations. Only for RTP mode in any case,
10436 # and upon explicit request at configure time.
10437 vxworks7*)
10438 dynamic_linker=no
10439 case ${with_multisubdir}-${enable_shared} in
10440 *large*)
10442 *mrtp*-yes)
10443 version_type=linux
10444 need_lib_prefix=no
10445 need_version=no
10446 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10447 soname_spec='${libname}${release}${shared_ext}$major'
10448 dynamic_linker="$host_os module_loader"
10450 esac
10453 dynamic_linker=no
10455 esac
10456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10457 $as_echo "$dynamic_linker" >&6; }
10458 test "$dynamic_linker" = no && can_build_shared=no
10460 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10461 if test "$GCC" = yes; then
10462 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10465 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10466 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10468 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10469 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10564 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10565 hardcode_action=
10566 if test -n "$hardcode_libdir_flag_spec" ||
10567 test -n "$runpath_var" ||
10568 test "X$hardcode_automatic" = "Xyes" ; then
10570 # We can hardcode non-existent directories.
10571 if test "$hardcode_direct" != no &&
10572 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10573 # have to relink, otherwise we might link with an installed library
10574 # when we should be linking with a yet-to-be-installed one
10575 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10576 test "$hardcode_minus_L" != no; then
10577 # Linking always hardcodes the temporary library directory.
10578 hardcode_action=relink
10579 else
10580 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10581 hardcode_action=immediate
10583 else
10584 # We cannot hardcode anything, or else we can only hardcode existing
10585 # directories.
10586 hardcode_action=unsupported
10588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10589 $as_echo "$hardcode_action" >&6; }
10591 if test "$hardcode_action" = relink ||
10592 test "$inherit_rpath" = yes; then
10593 # Fast installation is not supported
10594 enable_fast_install=no
10595 elif test "$shlibpath_overrides_runpath" = yes ||
10596 test "$enable_shared" = no; then
10597 # Fast installation is not necessary
10598 enable_fast_install=needless
10606 if test "x$enable_dlopen" != xyes; then
10607 enable_dlopen=unknown
10608 enable_dlopen_self=unknown
10609 enable_dlopen_self_static=unknown
10610 else
10611 lt_cv_dlopen=no
10612 lt_cv_dlopen_libs=
10614 case $host_os in
10615 beos*)
10616 lt_cv_dlopen="load_add_on"
10617 lt_cv_dlopen_libs=
10618 lt_cv_dlopen_self=yes
10621 mingw* | pw32* | cegcc*)
10622 lt_cv_dlopen="LoadLibrary"
10623 lt_cv_dlopen_libs=
10626 cygwin*)
10627 lt_cv_dlopen="dlopen"
10628 lt_cv_dlopen_libs=
10631 darwin*)
10632 # if libdl is installed we need to link against it
10633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10634 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10635 if ${ac_cv_lib_dl_dlopen+:} false; then :
10636 $as_echo_n "(cached) " >&6
10637 else
10638 ac_check_lib_save_LIBS=$LIBS
10639 LIBS="-ldl $LIBS"
10640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10641 /* end confdefs.h. */
10643 /* Override any GCC internal prototype to avoid an error.
10644 Use char because int might match the return type of a GCC
10645 builtin and then its argument prototype would still apply. */
10646 #ifdef __cplusplus
10647 extern "C"
10648 #endif
10649 char dlopen ();
10651 main ()
10653 return dlopen ();
10655 return 0;
10657 _ACEOF
10658 if ac_fn_c_try_link "$LINENO"; then :
10659 ac_cv_lib_dl_dlopen=yes
10660 else
10661 ac_cv_lib_dl_dlopen=no
10663 rm -f core conftest.err conftest.$ac_objext \
10664 conftest$ac_exeext conftest.$ac_ext
10665 LIBS=$ac_check_lib_save_LIBS
10667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10668 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10669 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10670 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10671 else
10673 lt_cv_dlopen="dyld"
10674 lt_cv_dlopen_libs=
10675 lt_cv_dlopen_self=yes
10682 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10683 if test "x$ac_cv_func_shl_load" = xyes; then :
10684 lt_cv_dlopen="shl_load"
10685 else
10686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10687 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10688 if ${ac_cv_lib_dld_shl_load+:} false; then :
10689 $as_echo_n "(cached) " >&6
10690 else
10691 ac_check_lib_save_LIBS=$LIBS
10692 LIBS="-ldld $LIBS"
10693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10694 /* end confdefs.h. */
10696 /* Override any GCC internal prototype to avoid an error.
10697 Use char because int might match the return type of a GCC
10698 builtin and then its argument prototype would still apply. */
10699 #ifdef __cplusplus
10700 extern "C"
10701 #endif
10702 char shl_load ();
10704 main ()
10706 return shl_load ();
10708 return 0;
10710 _ACEOF
10711 if ac_fn_c_try_link "$LINENO"; then :
10712 ac_cv_lib_dld_shl_load=yes
10713 else
10714 ac_cv_lib_dld_shl_load=no
10716 rm -f core conftest.err conftest.$ac_objext \
10717 conftest$ac_exeext conftest.$ac_ext
10718 LIBS=$ac_check_lib_save_LIBS
10720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10721 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10722 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10723 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10724 else
10725 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10726 if test "x$ac_cv_func_dlopen" = xyes; then :
10727 lt_cv_dlopen="dlopen"
10728 else
10729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10730 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10731 if ${ac_cv_lib_dl_dlopen+:} false; then :
10732 $as_echo_n "(cached) " >&6
10733 else
10734 ac_check_lib_save_LIBS=$LIBS
10735 LIBS="-ldl $LIBS"
10736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10737 /* end confdefs.h. */
10739 /* Override any GCC internal prototype to avoid an error.
10740 Use char because int might match the return type of a GCC
10741 builtin and then its argument prototype would still apply. */
10742 #ifdef __cplusplus
10743 extern "C"
10744 #endif
10745 char dlopen ();
10747 main ()
10749 return dlopen ();
10751 return 0;
10753 _ACEOF
10754 if ac_fn_c_try_link "$LINENO"; then :
10755 ac_cv_lib_dl_dlopen=yes
10756 else
10757 ac_cv_lib_dl_dlopen=no
10759 rm -f core conftest.err conftest.$ac_objext \
10760 conftest$ac_exeext conftest.$ac_ext
10761 LIBS=$ac_check_lib_save_LIBS
10763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10764 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10765 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10766 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10767 else
10768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10769 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10770 if ${ac_cv_lib_svld_dlopen+:} false; then :
10771 $as_echo_n "(cached) " >&6
10772 else
10773 ac_check_lib_save_LIBS=$LIBS
10774 LIBS="-lsvld $LIBS"
10775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10776 /* end confdefs.h. */
10778 /* Override any GCC internal prototype to avoid an error.
10779 Use char because int might match the return type of a GCC
10780 builtin and then its argument prototype would still apply. */
10781 #ifdef __cplusplus
10782 extern "C"
10783 #endif
10784 char dlopen ();
10786 main ()
10788 return dlopen ();
10790 return 0;
10792 _ACEOF
10793 if ac_fn_c_try_link "$LINENO"; then :
10794 ac_cv_lib_svld_dlopen=yes
10795 else
10796 ac_cv_lib_svld_dlopen=no
10798 rm -f core conftest.err conftest.$ac_objext \
10799 conftest$ac_exeext conftest.$ac_ext
10800 LIBS=$ac_check_lib_save_LIBS
10802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10803 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10804 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10805 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10806 else
10807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10808 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10809 if ${ac_cv_lib_dld_dld_link+:} false; then :
10810 $as_echo_n "(cached) " >&6
10811 else
10812 ac_check_lib_save_LIBS=$LIBS
10813 LIBS="-ldld $LIBS"
10814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10815 /* end confdefs.h. */
10817 /* Override any GCC internal prototype to avoid an error.
10818 Use char because int might match the return type of a GCC
10819 builtin and then its argument prototype would still apply. */
10820 #ifdef __cplusplus
10821 extern "C"
10822 #endif
10823 char dld_link ();
10825 main ()
10827 return dld_link ();
10829 return 0;
10831 _ACEOF
10832 if ac_fn_c_try_link "$LINENO"; then :
10833 ac_cv_lib_dld_dld_link=yes
10834 else
10835 ac_cv_lib_dld_dld_link=no
10837 rm -f core conftest.err conftest.$ac_objext \
10838 conftest$ac_exeext conftest.$ac_ext
10839 LIBS=$ac_check_lib_save_LIBS
10841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10842 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10843 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10844 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10863 esac
10865 if test "x$lt_cv_dlopen" != xno; then
10866 enable_dlopen=yes
10867 else
10868 enable_dlopen=no
10871 case $lt_cv_dlopen in
10872 dlopen)
10873 save_CPPFLAGS="$CPPFLAGS"
10874 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10876 save_LDFLAGS="$LDFLAGS"
10877 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10879 save_LIBS="$LIBS"
10880 LIBS="$lt_cv_dlopen_libs $LIBS"
10882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10883 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10884 if ${lt_cv_dlopen_self+:} false; then :
10885 $as_echo_n "(cached) " >&6
10886 else
10887 if test "$cross_compiling" = yes; then :
10888 lt_cv_dlopen_self=cross
10889 else
10890 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10891 lt_status=$lt_dlunknown
10892 cat > conftest.$ac_ext <<_LT_EOF
10893 #line 10893 "configure"
10894 #include "confdefs.h"
10896 #if HAVE_DLFCN_H
10897 #include <dlfcn.h>
10898 #endif
10900 #include <stdio.h>
10902 #ifdef RTLD_GLOBAL
10903 # define LT_DLGLOBAL RTLD_GLOBAL
10904 #else
10905 # ifdef DL_GLOBAL
10906 # define LT_DLGLOBAL DL_GLOBAL
10907 # else
10908 # define LT_DLGLOBAL 0
10909 # endif
10910 #endif
10912 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10913 find out it does not work in some platform. */
10914 #ifndef LT_DLLAZY_OR_NOW
10915 # ifdef RTLD_LAZY
10916 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10917 # else
10918 # ifdef DL_LAZY
10919 # define LT_DLLAZY_OR_NOW DL_LAZY
10920 # else
10921 # ifdef RTLD_NOW
10922 # define LT_DLLAZY_OR_NOW RTLD_NOW
10923 # else
10924 # ifdef DL_NOW
10925 # define LT_DLLAZY_OR_NOW DL_NOW
10926 # else
10927 # define LT_DLLAZY_OR_NOW 0
10928 # endif
10929 # endif
10930 # endif
10931 # endif
10932 #endif
10934 /* When -fvisbility=hidden is used, assume the code has been annotated
10935 correspondingly for the symbols needed. */
10936 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10937 void fnord () __attribute__((visibility("default")));
10938 #endif
10940 void fnord () { int i=42; }
10941 int main ()
10943 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10944 int status = $lt_dlunknown;
10946 if (self)
10948 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10949 else
10951 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10952 else puts (dlerror ());
10954 /* dlclose (self); */
10956 else
10957 puts (dlerror ());
10959 return status;
10961 _LT_EOF
10962 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10963 (eval $ac_link) 2>&5
10964 ac_status=$?
10965 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10966 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10967 (./conftest; exit; ) >&5 2>/dev/null
10968 lt_status=$?
10969 case x$lt_status in
10970 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10971 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10972 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10973 esac
10974 else :
10975 # compilation failed
10976 lt_cv_dlopen_self=no
10979 rm -fr conftest*
10983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10984 $as_echo "$lt_cv_dlopen_self" >&6; }
10986 if test "x$lt_cv_dlopen_self" = xyes; then
10987 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10989 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10990 if ${lt_cv_dlopen_self_static+:} false; then :
10991 $as_echo_n "(cached) " >&6
10992 else
10993 if test "$cross_compiling" = yes; then :
10994 lt_cv_dlopen_self_static=cross
10995 else
10996 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10997 lt_status=$lt_dlunknown
10998 cat > conftest.$ac_ext <<_LT_EOF
10999 #line 10999 "configure"
11000 #include "confdefs.h"
11002 #if HAVE_DLFCN_H
11003 #include <dlfcn.h>
11004 #endif
11006 #include <stdio.h>
11008 #ifdef RTLD_GLOBAL
11009 # define LT_DLGLOBAL RTLD_GLOBAL
11010 #else
11011 # ifdef DL_GLOBAL
11012 # define LT_DLGLOBAL DL_GLOBAL
11013 # else
11014 # define LT_DLGLOBAL 0
11015 # endif
11016 #endif
11018 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11019 find out it does not work in some platform. */
11020 #ifndef LT_DLLAZY_OR_NOW
11021 # ifdef RTLD_LAZY
11022 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11023 # else
11024 # ifdef DL_LAZY
11025 # define LT_DLLAZY_OR_NOW DL_LAZY
11026 # else
11027 # ifdef RTLD_NOW
11028 # define LT_DLLAZY_OR_NOW RTLD_NOW
11029 # else
11030 # ifdef DL_NOW
11031 # define LT_DLLAZY_OR_NOW DL_NOW
11032 # else
11033 # define LT_DLLAZY_OR_NOW 0
11034 # endif
11035 # endif
11036 # endif
11037 # endif
11038 #endif
11040 /* When -fvisbility=hidden is used, assume the code has been annotated
11041 correspondingly for the symbols needed. */
11042 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11043 void fnord () __attribute__((visibility("default")));
11044 #endif
11046 void fnord () { int i=42; }
11047 int main ()
11049 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11050 int status = $lt_dlunknown;
11052 if (self)
11054 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11055 else
11057 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11058 else puts (dlerror ());
11060 /* dlclose (self); */
11062 else
11063 puts (dlerror ());
11065 return status;
11067 _LT_EOF
11068 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11069 (eval $ac_link) 2>&5
11070 ac_status=$?
11071 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11072 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11073 (./conftest; exit; ) >&5 2>/dev/null
11074 lt_status=$?
11075 case x$lt_status in
11076 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11077 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11078 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11079 esac
11080 else :
11081 # compilation failed
11082 lt_cv_dlopen_self_static=no
11085 rm -fr conftest*
11089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11090 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11093 CPPFLAGS="$save_CPPFLAGS"
11094 LDFLAGS="$save_LDFLAGS"
11095 LIBS="$save_LIBS"
11097 esac
11099 case $lt_cv_dlopen_self in
11100 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11101 *) enable_dlopen_self=unknown ;;
11102 esac
11104 case $lt_cv_dlopen_self_static in
11105 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11106 *) enable_dlopen_self_static=unknown ;;
11107 esac
11126 striplib=
11127 old_striplib=
11128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11129 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11130 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11131 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11132 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11134 $as_echo "yes" >&6; }
11135 else
11136 # FIXME - insert some real tests, host_os isn't really good enough
11137 case $host_os in
11138 darwin*)
11139 if test -n "$STRIP" ; then
11140 striplib="$STRIP -x"
11141 old_striplib="$STRIP -S"
11142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11143 $as_echo "yes" >&6; }
11144 else
11145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11146 $as_echo "no" >&6; }
11150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11151 $as_echo "no" >&6; }
11153 esac
11167 # Report which library types will actually be built
11168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11169 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11171 $as_echo "$can_build_shared" >&6; }
11173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11174 $as_echo_n "checking whether to build shared libraries... " >&6; }
11175 test "$can_build_shared" = "no" && enable_shared=no
11177 # On AIX, shared libraries and static libraries use the same namespace, and
11178 # are all built from PIC.
11179 case $host_os in
11180 aix3*)
11181 test "$enable_shared" = yes && enable_static=no
11182 if test -n "$RANLIB"; then
11183 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11184 postinstall_cmds='$RANLIB $lib'
11188 aix[4-9]*)
11189 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11190 test "$enable_shared" = yes && enable_static=no
11193 esac
11194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11195 $as_echo "$enable_shared" >&6; }
11197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11198 $as_echo_n "checking whether to build static libraries... " >&6; }
11199 # Make sure either enable_shared or enable_static is yes.
11200 test "$enable_shared" = yes || enable_static=yes
11201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11202 $as_echo "$enable_static" >&6; }
11208 ac_ext=c
11209 ac_cpp='$CPP $CPPFLAGS'
11210 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11211 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11212 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11214 CC="$lt_save_CC"
11228 ac_config_commands="$ac_config_commands libtool"
11233 # Only expand once:
11237 ac_ext=cpp
11238 ac_cpp='$CXXCPP $CPPFLAGS'
11239 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11240 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11241 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11242 if test -z "$CXX"; then
11243 if test -n "$CCC"; then
11244 CXX=$CCC
11245 else
11246 if test -n "$ac_tool_prefix"; then
11247 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11249 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11250 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11252 $as_echo_n "checking for $ac_word... " >&6; }
11253 if ${ac_cv_prog_CXX+:} false; then :
11254 $as_echo_n "(cached) " >&6
11255 else
11256 if test -n "$CXX"; then
11257 ac_cv_prog_CXX="$CXX" # Let the user override the test.
11258 else
11259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11260 for as_dir in $PATH
11262 IFS=$as_save_IFS
11263 test -z "$as_dir" && as_dir=.
11264 for ac_exec_ext in '' $ac_executable_extensions; do
11265 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11266 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
11267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11268 break 2
11270 done
11271 done
11272 IFS=$as_save_IFS
11276 CXX=$ac_cv_prog_CXX
11277 if test -n "$CXX"; then
11278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
11279 $as_echo "$CXX" >&6; }
11280 else
11281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11282 $as_echo "no" >&6; }
11286 test -n "$CXX" && break
11287 done
11289 if test -z "$CXX"; then
11290 ac_ct_CXX=$CXX
11291 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11293 # Extract the first word of "$ac_prog", so it can be a program name with args.
11294 set dummy $ac_prog; ac_word=$2
11295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11296 $as_echo_n "checking for $ac_word... " >&6; }
11297 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
11298 $as_echo_n "(cached) " >&6
11299 else
11300 if test -n "$ac_ct_CXX"; then
11301 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11302 else
11303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11304 for as_dir in $PATH
11306 IFS=$as_save_IFS
11307 test -z "$as_dir" && as_dir=.
11308 for ac_exec_ext in '' $ac_executable_extensions; do
11309 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11310 ac_cv_prog_ac_ct_CXX="$ac_prog"
11311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11312 break 2
11314 done
11315 done
11316 IFS=$as_save_IFS
11320 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11321 if test -n "$ac_ct_CXX"; then
11322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
11323 $as_echo "$ac_ct_CXX" >&6; }
11324 else
11325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11326 $as_echo "no" >&6; }
11330 test -n "$ac_ct_CXX" && break
11331 done
11333 if test "x$ac_ct_CXX" = x; then
11334 CXX="g++"
11335 else
11336 case $cross_compiling:$ac_tool_warned in
11337 yes:)
11338 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11339 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11340 ac_tool_warned=yes ;;
11341 esac
11342 CXX=$ac_ct_CXX
11348 # Provide some information about the compiler.
11349 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
11350 set X $ac_compile
11351 ac_compiler=$2
11352 for ac_option in --version -v -V -qversion; do
11353 { { ac_try="$ac_compiler $ac_option >&5"
11354 case "(($ac_try" in
11355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11356 *) ac_try_echo=$ac_try;;
11357 esac
11358 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11359 $as_echo "$ac_try_echo"; } >&5
11360 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11361 ac_status=$?
11362 if test -s conftest.err; then
11363 sed '10a\
11364 ... rest of stderr output deleted ...
11365 10q' conftest.err >conftest.er1
11366 cat conftest.er1 >&5
11368 rm -f conftest.er1 conftest.err
11369 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11370 test $ac_status = 0; }
11371 done
11373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
11374 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
11375 if ${ac_cv_cxx_compiler_gnu+:} false; then :
11376 $as_echo_n "(cached) " >&6
11377 else
11378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11379 /* end confdefs.h. */
11382 main ()
11384 #ifndef __GNUC__
11385 choke me
11386 #endif
11389 return 0;
11391 _ACEOF
11392 if ac_fn_cxx_try_compile "$LINENO"; then :
11393 ac_compiler_gnu=yes
11394 else
11395 ac_compiler_gnu=no
11397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11398 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
11402 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
11403 if test $ac_compiler_gnu = yes; then
11404 GXX=yes
11405 else
11406 GXX=
11408 ac_test_CXXFLAGS=${CXXFLAGS+set}
11409 ac_save_CXXFLAGS=$CXXFLAGS
11410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
11411 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
11412 if ${ac_cv_prog_cxx_g+:} false; then :
11413 $as_echo_n "(cached) " >&6
11414 else
11415 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
11416 ac_cxx_werror_flag=yes
11417 ac_cv_prog_cxx_g=no
11418 CXXFLAGS="-g"
11419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11420 /* end confdefs.h. */
11423 main ()
11427 return 0;
11429 _ACEOF
11430 if ac_fn_cxx_try_compile "$LINENO"; then :
11431 ac_cv_prog_cxx_g=yes
11432 else
11433 CXXFLAGS=""
11434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11435 /* end confdefs.h. */
11438 main ()
11442 return 0;
11444 _ACEOF
11445 if ac_fn_cxx_try_compile "$LINENO"; then :
11447 else
11448 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11449 CXXFLAGS="-g"
11450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11451 /* end confdefs.h. */
11454 main ()
11458 return 0;
11460 _ACEOF
11461 if ac_fn_cxx_try_compile "$LINENO"; then :
11462 ac_cv_prog_cxx_g=yes
11464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11469 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
11472 $as_echo "$ac_cv_prog_cxx_g" >&6; }
11473 if test "$ac_test_CXXFLAGS" = set; then
11474 CXXFLAGS=$ac_save_CXXFLAGS
11475 elif test $ac_cv_prog_cxx_g = yes; then
11476 if test "$GXX" = yes; then
11477 CXXFLAGS="-g -O2"
11478 else
11479 CXXFLAGS="-g"
11481 else
11482 if test "$GXX" = yes; then
11483 CXXFLAGS="-O2"
11484 else
11485 CXXFLAGS=
11488 ac_ext=c
11489 ac_cpp='$CPP $CPPFLAGS'
11490 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11491 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11492 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11494 depcc="$CXX" am_compiler_list=
11496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11497 $as_echo_n "checking dependency style of $depcc... " >&6; }
11498 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
11499 $as_echo_n "(cached) " >&6
11500 else
11501 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11502 # We make a subdir and do the tests there. Otherwise we can end up
11503 # making bogus files that we don't know about and never remove. For
11504 # instance it was reported that on HP-UX the gcc test will end up
11505 # making a dummy file named 'D' -- because '-MD' means "put the output
11506 # in D".
11507 rm -rf conftest.dir
11508 mkdir conftest.dir
11509 # Copy depcomp to subdir because otherwise we won't find it if we're
11510 # using a relative directory.
11511 cp "$am_depcomp" conftest.dir
11512 cd conftest.dir
11513 # We will build objects and dependencies in a subdirectory because
11514 # it helps to detect inapplicable dependency modes. For instance
11515 # both Tru64's cc and ICC support -MD to output dependencies as a
11516 # side effect of compilation, but ICC will put the dependencies in
11517 # the current directory while Tru64 will put them in the object
11518 # directory.
11519 mkdir sub
11521 am_cv_CXX_dependencies_compiler_type=none
11522 if test "$am_compiler_list" = ""; then
11523 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11525 am__universal=false
11526 case " $depcc " in #(
11527 *\ -arch\ *\ -arch\ *) am__universal=true ;;
11528 esac
11530 for depmode in $am_compiler_list; do
11531 # Setup a source with many dependencies, because some compilers
11532 # like to wrap large dependency lists on column 80 (with \), and
11533 # we should not choose a depcomp mode which is confused by this.
11535 # We need to recreate these files for each test, as the compiler may
11536 # overwrite some of them when testing with obscure command lines.
11537 # This happens at least with the AIX C compiler.
11538 : > sub/conftest.c
11539 for i in 1 2 3 4 5 6; do
11540 echo '#include "conftst'$i'.h"' >> sub/conftest.c
11541 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
11542 # Solaris 10 /bin/sh.
11543 echo '/* dummy */' > sub/conftst$i.h
11544 done
11545 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11547 # We check with '-c' and '-o' for the sake of the "dashmstdout"
11548 # mode. It turns out that the SunPro C++ compiler does not properly
11549 # handle '-M -o', and we need to detect this. Also, some Intel
11550 # versions had trouble with output in subdirs.
11551 am__obj=sub/conftest.${OBJEXT-o}
11552 am__minus_obj="-o $am__obj"
11553 case $depmode in
11554 gcc)
11555 # This depmode causes a compiler race in universal mode.
11556 test "$am__universal" = false || continue
11558 nosideeffect)
11559 # After this tag, mechanisms are not by side-effect, so they'll
11560 # only be used when explicitly requested.
11561 if test "x$enable_dependency_tracking" = xyes; then
11562 continue
11563 else
11564 break
11567 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
11568 # This compiler won't grok '-c -o', but also, the minuso test has
11569 # not run yet. These depmodes are late enough in the game, and
11570 # so weak that their functioning should not be impacted.
11571 am__obj=conftest.${OBJEXT-o}
11572 am__minus_obj=
11574 none) break ;;
11575 esac
11576 if depmode=$depmode \
11577 source=sub/conftest.c object=$am__obj \
11578 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11579 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11580 >/dev/null 2>conftest.err &&
11581 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11582 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11583 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11584 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11585 # icc doesn't choke on unknown options, it will just issue warnings
11586 # or remarks (even with -Werror). So we grep stderr for any message
11587 # that says an option was ignored or not supported.
11588 # When given -MP, icc 7.0 and 7.1 complain thusly:
11589 # icc: Command line warning: ignoring option '-M'; no argument required
11590 # The diagnosis changed in icc 8.0:
11591 # icc: Command line remark: option '-MP' not supported
11592 if (grep 'ignoring option' conftest.err ||
11593 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11594 am_cv_CXX_dependencies_compiler_type=$depmode
11595 break
11598 done
11600 cd ..
11601 rm -rf conftest.dir
11602 else
11603 am_cv_CXX_dependencies_compiler_type=none
11607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
11608 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
11609 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
11612 test "x$enable_dependency_tracking" != xno \
11613 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
11614 am__fastdepCXX_TRUE=
11615 am__fastdepCXX_FALSE='#'
11616 else
11617 am__fastdepCXX_TRUE='#'
11618 am__fastdepCXX_FALSE=
11622 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11623 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11624 (test "X$CXX" != "Xg++"))) ; then
11625 ac_ext=cpp
11626 ac_cpp='$CXXCPP $CPPFLAGS'
11627 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11628 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11629 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
11631 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
11632 if test -z "$CXXCPP"; then
11633 if ${ac_cv_prog_CXXCPP+:} false; then :
11634 $as_echo_n "(cached) " >&6
11635 else
11636 # Double quotes because CXXCPP needs to be expanded
11637 for CXXCPP in "$CXX -E" "/lib/cpp"
11639 ac_preproc_ok=false
11640 for ac_cxx_preproc_warn_flag in '' yes
11642 # Use a header file that comes with gcc, so configuring glibc
11643 # with a fresh cross-compiler works.
11644 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11645 # <limits.h> exists even on freestanding compilers.
11646 # On the NeXT, cc -E runs the code through the compiler's parser,
11647 # not just through cpp. "Syntax error" is here to catch this case.
11648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11649 /* end confdefs.h. */
11650 #ifdef __STDC__
11651 # include <limits.h>
11652 #else
11653 # include <assert.h>
11654 #endif
11655 Syntax error
11656 _ACEOF
11657 if ac_fn_cxx_try_cpp "$LINENO"; then :
11659 else
11660 # Broken: fails on valid input.
11661 continue
11663 rm -f conftest.err conftest.i conftest.$ac_ext
11665 # OK, works on sane cases. Now check whether nonexistent headers
11666 # can be detected and how.
11667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11668 /* end confdefs.h. */
11669 #include <ac_nonexistent.h>
11670 _ACEOF
11671 if ac_fn_cxx_try_cpp "$LINENO"; then :
11672 # Broken: success on invalid input.
11673 continue
11674 else
11675 # Passes both tests.
11676 ac_preproc_ok=:
11677 break
11679 rm -f conftest.err conftest.i conftest.$ac_ext
11681 done
11682 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11683 rm -f conftest.i conftest.err conftest.$ac_ext
11684 if $ac_preproc_ok; then :
11685 break
11688 done
11689 ac_cv_prog_CXXCPP=$CXXCPP
11692 CXXCPP=$ac_cv_prog_CXXCPP
11693 else
11694 ac_cv_prog_CXXCPP=$CXXCPP
11696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
11697 $as_echo "$CXXCPP" >&6; }
11698 ac_preproc_ok=false
11699 for ac_cxx_preproc_warn_flag in '' yes
11701 # Use a header file that comes with gcc, so configuring glibc
11702 # with a fresh cross-compiler works.
11703 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11704 # <limits.h> exists even on freestanding compilers.
11705 # On the NeXT, cc -E runs the code through the compiler's parser,
11706 # not just through cpp. "Syntax error" is here to catch this case.
11707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11708 /* end confdefs.h. */
11709 #ifdef __STDC__
11710 # include <limits.h>
11711 #else
11712 # include <assert.h>
11713 #endif
11714 Syntax error
11715 _ACEOF
11716 if ac_fn_cxx_try_cpp "$LINENO"; then :
11718 else
11719 # Broken: fails on valid input.
11720 continue
11722 rm -f conftest.err conftest.i conftest.$ac_ext
11724 # OK, works on sane cases. Now check whether nonexistent headers
11725 # can be detected and how.
11726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11727 /* end confdefs.h. */
11728 #include <ac_nonexistent.h>
11729 _ACEOF
11730 if ac_fn_cxx_try_cpp "$LINENO"; then :
11731 # Broken: success on invalid input.
11732 continue
11733 else
11734 # Passes both tests.
11735 ac_preproc_ok=:
11736 break
11738 rm -f conftest.err conftest.i conftest.$ac_ext
11740 done
11741 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11742 rm -f conftest.i conftest.err conftest.$ac_ext
11743 if $ac_preproc_ok; then :
11745 else
11746 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11747 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11748 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
11749 See \`config.log' for more details" "$LINENO" 5; }
11752 ac_ext=c
11753 ac_cpp='$CPP $CPPFLAGS'
11754 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11755 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11756 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11758 else
11759 _lt_caught_CXX_error=yes
11762 ac_ext=cpp
11763 ac_cpp='$CXXCPP $CPPFLAGS'
11764 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11765 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11766 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11768 archive_cmds_need_lc_CXX=no
11769 allow_undefined_flag_CXX=
11770 always_export_symbols_CXX=no
11771 archive_expsym_cmds_CXX=
11772 compiler_needs_object_CXX=no
11773 export_dynamic_flag_spec_CXX=
11774 hardcode_direct_CXX=no
11775 hardcode_direct_absolute_CXX=no
11776 hardcode_libdir_flag_spec_CXX=
11777 hardcode_libdir_flag_spec_ld_CXX=
11778 hardcode_libdir_separator_CXX=
11779 hardcode_minus_L_CXX=no
11780 hardcode_shlibpath_var_CXX=unsupported
11781 hardcode_automatic_CXX=no
11782 inherit_rpath_CXX=no
11783 module_cmds_CXX=
11784 module_expsym_cmds_CXX=
11785 link_all_deplibs_CXX=unknown
11786 old_archive_cmds_CXX=$old_archive_cmds
11787 reload_flag_CXX=$reload_flag
11788 reload_cmds_CXX=$reload_cmds
11789 no_undefined_flag_CXX=
11790 whole_archive_flag_spec_CXX=
11791 enable_shared_with_static_runtimes_CXX=no
11793 # Source file extension for C++ test sources.
11794 ac_ext=cpp
11796 # Object file extension for compiled C++ test sources.
11797 objext=o
11798 objext_CXX=$objext
11800 # No sense in running all these tests if we already determined that
11801 # the CXX compiler isn't working. Some variables (like enable_shared)
11802 # are currently assumed to apply to all compilers on this platform,
11803 # and will be corrupted by setting them based on a non-working compiler.
11804 if test "$_lt_caught_CXX_error" != yes; then
11805 # Code to be used in simple compile tests
11806 lt_simple_compile_test_code="int some_variable = 0;"
11808 # Code to be used in simple link tests
11809 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11811 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11818 # If no C compiler was specified, use CC.
11819 LTCC=${LTCC-"$CC"}
11821 # If no C compiler flags were specified, use CFLAGS.
11822 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11824 # Allow CC to be a program name with arguments.
11825 compiler=$CC
11828 # save warnings/boilerplate of simple test code
11829 ac_outfile=conftest.$ac_objext
11830 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11831 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11832 _lt_compiler_boilerplate=`cat conftest.err`
11833 $RM conftest*
11835 ac_outfile=conftest.$ac_objext
11836 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11837 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11838 _lt_linker_boilerplate=`cat conftest.err`
11839 $RM -r conftest*
11842 # Allow CC to be a program name with arguments.
11843 lt_save_CC=$CC
11844 lt_save_LD=$LD
11845 lt_save_GCC=$GCC
11846 GCC=$GXX
11847 lt_save_with_gnu_ld=$with_gnu_ld
11848 lt_save_path_LD=$lt_cv_path_LD
11849 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11850 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11851 else
11852 $as_unset lt_cv_prog_gnu_ld
11854 if test -n "${lt_cv_path_LDCXX+set}"; then
11855 lt_cv_path_LD=$lt_cv_path_LDCXX
11856 else
11857 $as_unset lt_cv_path_LD
11859 test -z "${LDCXX+set}" || LD=$LDCXX
11860 CC=${CXX-"c++"}
11861 compiler=$CC
11862 compiler_CXX=$CC
11863 for cc_temp in $compiler""; do
11864 case $cc_temp in
11865 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11866 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11867 \-*) ;;
11868 *) break;;
11869 esac
11870 done
11871 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11874 if test -n "$compiler"; then
11875 # We don't want -fno-exception when compiling C++ code, so set the
11876 # no_builtin_flag separately
11877 if test "$GXX" = yes; then
11878 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11879 else
11880 lt_prog_compiler_no_builtin_flag_CXX=
11883 if test "$GXX" = yes; then
11884 # Set up default GNU C++ configuration
11888 # Check whether --with-gnu-ld was given.
11889 if test "${with_gnu_ld+set}" = set; then :
11890 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11891 else
11892 with_gnu_ld=no
11895 ac_prog=ld
11896 if test "$GCC" = yes; then
11897 # Check if gcc -print-prog-name=ld gives a path.
11898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11899 $as_echo_n "checking for ld used by $CC... " >&6; }
11900 case $host in
11901 *-*-mingw*)
11902 # gcc leaves a trailing carriage return which upsets mingw
11903 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11905 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11906 esac
11907 case $ac_prog in
11908 # Accept absolute paths.
11909 [\\/]* | ?:[\\/]*)
11910 re_direlt='/[^/][^/]*/\.\./'
11911 # Canonicalize the pathname of ld
11912 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11913 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11914 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11915 done
11916 test -z "$LD" && LD="$ac_prog"
11919 # If it fails, then pretend we aren't using GCC.
11920 ac_prog=ld
11923 # If it is relative, then search for the first ld in PATH.
11924 with_gnu_ld=unknown
11926 esac
11927 elif test "$with_gnu_ld" = yes; then
11928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11929 $as_echo_n "checking for GNU ld... " >&6; }
11930 else
11931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11932 $as_echo_n "checking for non-GNU ld... " >&6; }
11934 if ${lt_cv_path_LD+:} false; then :
11935 $as_echo_n "(cached) " >&6
11936 else
11937 if test -z "$LD"; then
11938 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11939 for ac_dir in $PATH; do
11940 IFS="$lt_save_ifs"
11941 test -z "$ac_dir" && ac_dir=.
11942 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11943 lt_cv_path_LD="$ac_dir/$ac_prog"
11944 # Check to see if the program is GNU ld. I'd rather use --version,
11945 # but apparently some variants of GNU ld only accept -v.
11946 # Break only if it was the GNU/non-GNU ld that we prefer.
11947 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11948 *GNU* | *'with BFD'*)
11949 test "$with_gnu_ld" != no && break
11952 test "$with_gnu_ld" != yes && break
11954 esac
11956 done
11957 IFS="$lt_save_ifs"
11958 else
11959 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11963 LD="$lt_cv_path_LD"
11964 if test -n "$LD"; then
11965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11966 $as_echo "$LD" >&6; }
11967 else
11968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11969 $as_echo "no" >&6; }
11971 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
11972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11973 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11974 if ${lt_cv_prog_gnu_ld+:} false; then :
11975 $as_echo_n "(cached) " >&6
11976 else
11977 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11978 case `$LD -v 2>&1 </dev/null` in
11979 *GNU* | *'with BFD'*)
11980 lt_cv_prog_gnu_ld=yes
11983 lt_cv_prog_gnu_ld=no
11985 esac
11987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11988 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
11989 with_gnu_ld=$lt_cv_prog_gnu_ld
11997 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11998 # archiving commands below assume that GNU ld is being used.
11999 if test "$with_gnu_ld" = yes; then
12000 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12001 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'
12003 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12004 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12006 # If archive_cmds runs LD, not CC, wlarc should be empty
12007 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12008 # investigate it a little bit more. (MM)
12009 wlarc='${wl}'
12011 # ancient GNU ld didn't support --whole-archive et. al.
12012 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12013 $GREP 'no-whole-archive' > /dev/null; then
12014 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12015 else
12016 whole_archive_flag_spec_CXX=
12018 else
12019 with_gnu_ld=no
12020 wlarc=
12022 # A generic and very simple default shared library creation
12023 # command for GNU C++ for the case where it uses the native
12024 # linker, instead of GNU ld. If possible, this setting should
12025 # overridden to take advantage of the native linker features on
12026 # the platform it is being used on.
12027 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12030 # Commands to make compiler produce verbose output that lists
12031 # what "hidden" libraries, object files and flags are used when
12032 # linking a shared library.
12033 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12035 else
12036 GXX=no
12037 with_gnu_ld=no
12038 wlarc=
12041 # PORTME: fill in a description of your system's C++ link characteristics
12042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12043 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12044 ld_shlibs_CXX=yes
12045 case $host_os in
12046 aix3*)
12047 # FIXME: insert proper C++ library support
12048 ld_shlibs_CXX=no
12050 aix[4-9]*)
12051 if test "$host_cpu" = ia64; then
12052 # On IA64, the linker does run time linking by default, so we don't
12053 # have to do anything special.
12054 aix_use_runtimelinking=no
12055 exp_sym_flag='-Bexport'
12056 no_entry_flag=""
12057 else
12058 aix_use_runtimelinking=no
12060 # Test if we are trying to use run time linking or normal
12061 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12062 # need to do runtime linking.
12063 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12064 for ld_flag in $LDFLAGS; do
12065 case $ld_flag in
12066 *-brtl*)
12067 aix_use_runtimelinking=yes
12068 break
12070 esac
12071 done
12073 esac
12075 exp_sym_flag='-bexport'
12076 no_entry_flag='-bnoentry'
12079 # When large executables or shared objects are built, AIX ld can
12080 # have problems creating the table of contents. If linking a library
12081 # or program results in "error TOC overflow" add -mminimal-toc to
12082 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12083 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12085 archive_cmds_CXX=''
12086 hardcode_direct_CXX=yes
12087 hardcode_direct_absolute_CXX=yes
12088 hardcode_libdir_separator_CXX=':'
12089 link_all_deplibs_CXX=yes
12090 file_list_spec_CXX='${wl}-f,'
12092 if test "$GXX" = yes; then
12093 case $host_os in aix4.[012]|aix4.[012].*)
12094 # We only want to do this on AIX 4.2 and lower, the check
12095 # below for broken collect2 doesn't work under 4.3+
12096 collect2name=`${CC} -print-prog-name=collect2`
12097 if test -f "$collect2name" &&
12098 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12099 then
12100 # We have reworked collect2
12102 else
12103 # We have old collect2
12104 hardcode_direct_CXX=unsupported
12105 # It fails to find uninstalled libraries when the uninstalled
12106 # path is not listed in the libpath. Setting hardcode_minus_L
12107 # to unsupported forces relinking
12108 hardcode_minus_L_CXX=yes
12109 hardcode_libdir_flag_spec_CXX='-L$libdir'
12110 hardcode_libdir_separator_CXX=
12112 esac
12113 shared_flag='-shared'
12114 if test "$aix_use_runtimelinking" = yes; then
12115 shared_flag="$shared_flag "'${wl}-G'
12117 else
12118 # not using gcc
12119 if test "$host_cpu" = ia64; then
12120 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12121 # chokes on -Wl,-G. The following line is correct:
12122 shared_flag='-G'
12123 else
12124 if test "$aix_use_runtimelinking" = yes; then
12125 shared_flag='${wl}-G'
12126 else
12127 shared_flag='${wl}-bM:SRE'
12132 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12133 # It seems that -bexpall does not export symbols beginning with
12134 # underscore (_), so it is better to generate a list of symbols to
12135 # export.
12136 always_export_symbols_CXX=yes
12137 if test "$aix_use_runtimelinking" = yes; then
12138 # Warning - without using the other runtime loading flags (-brtl),
12139 # -berok will link without error, but may produce a broken library.
12140 allow_undefined_flag_CXX='-berok'
12141 # Determine the default libpath from the value encoded in an empty
12142 # executable.
12143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12144 /* end confdefs.h. */
12147 main ()
12151 return 0;
12153 _ACEOF
12154 if ac_fn_cxx_try_link "$LINENO"; then :
12156 lt_aix_libpath_sed='
12157 /Import File Strings/,/^$/ {
12158 /^0/ {
12159 s/^0 *\(.*\)$/\1/
12163 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12164 # Check for a 64-bit object if we didn't find anything.
12165 if test -z "$aix_libpath"; then
12166 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12169 rm -f core conftest.err conftest.$ac_objext \
12170 conftest$ac_exeext conftest.$ac_ext
12171 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12173 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12175 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"
12176 else
12177 if test "$host_cpu" = ia64; then
12178 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12179 allow_undefined_flag_CXX="-z nodefs"
12180 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"
12181 else
12182 # Determine the default libpath from the value encoded in an
12183 # empty executable.
12184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12185 /* end confdefs.h. */
12188 main ()
12192 return 0;
12194 _ACEOF
12195 if ac_fn_cxx_try_link "$LINENO"; then :
12197 lt_aix_libpath_sed='
12198 /Import File Strings/,/^$/ {
12199 /^0/ {
12200 s/^0 *\(.*\)$/\1/
12204 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12205 # Check for a 64-bit object if we didn't find anything.
12206 if test -z "$aix_libpath"; then
12207 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12210 rm -f core conftest.err conftest.$ac_objext \
12211 conftest$ac_exeext conftest.$ac_ext
12212 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12214 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12215 # Warning - without using the other run time loading flags,
12216 # -berok will link without error, but may produce a broken library.
12217 no_undefined_flag_CXX=' ${wl}-bernotok'
12218 allow_undefined_flag_CXX=' ${wl}-berok'
12219 if test "$with_gnu_ld" = yes; then
12220 # We only use this code for GNU lds that support --whole-archive.
12221 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12222 else
12223 # Exported symbols can be pulled into shared objects from archives
12224 whole_archive_flag_spec_CXX='$convenience'
12226 archive_cmds_need_lc_CXX=yes
12227 # This is similar to how AIX traditionally builds its shared
12228 # libraries.
12229 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'
12234 beos*)
12235 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12236 allow_undefined_flag_CXX=unsupported
12237 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12238 # support --undefined. This deserves some investigation. FIXME
12239 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12240 else
12241 ld_shlibs_CXX=no
12245 chorus*)
12246 case $cc_basename in
12248 # FIXME: insert proper C++ library support
12249 ld_shlibs_CXX=no
12251 esac
12254 cygwin* | mingw* | pw32* | cegcc*)
12255 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12256 # as there is no search path for DLLs.
12257 hardcode_libdir_flag_spec_CXX='-L$libdir'
12258 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12259 allow_undefined_flag_CXX=unsupported
12260 always_export_symbols_CXX=no
12261 enable_shared_with_static_runtimes_CXX=yes
12263 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12264 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'
12265 # If the export-symbols file already is a .def file (1st line
12266 # is EXPORTS), use it as is; otherwise, prepend...
12267 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12268 cp $export_symbols $output_objdir/$soname.def;
12269 else
12270 echo EXPORTS > $output_objdir/$soname.def;
12271 cat $export_symbols >> $output_objdir/$soname.def;
12273 $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'
12274 else
12275 ld_shlibs_CXX=no
12278 darwin* | rhapsody*)
12282 # Publish an arg to allow the user to select that Darwin host (and target)
12283 # libraries should be given install-names like @rpath/libfoo.dylib. This
12284 # requires that the user of the library then adds an 'rpath' to the DSO that
12285 # needs access.
12286 # NOTE: there are defaults below, for systems that support rpaths. The person
12287 # configuring can override the defaults for any system version that supports
12288 # them - they are, however, forced off for system versions without support.
12289 # Check whether --enable-darwin-at-rpath was given.
12290 if test "${enable_darwin_at_rpath+set}" = set; then :
12291 enableval=$enable_darwin_at_rpath; if test "x$enable_darwin_at_rpath" = "xyes"; then
12292 # This is not supported before macOS 10.5 / Darwin9.
12293 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host_os in
12294 UNSET,darwin[4-8]*|UNSET,rhapsody*|10.[0-4][,.]*)
12295 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Darwin @rpath library names are incompatible with OSX versions earlier than 10.5 (rpaths disabled)" >&5
12296 $as_echo "$as_me: WARNING: Darwin @rpath library names are incompatible with OSX versions earlier than 10.5 (rpaths disabled)" >&2;}
12297 enable_darwin_at_rpath=no
12299 esac
12301 else
12302 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host_os in
12303 # As above, before 10.5 / Darwin9 this does not work.
12304 UNSET,darwin[4-8]*|UNSET,rhapsody*|10.[0-4][,.]*)
12305 enable_darwin_at_rpath=no
12308 # We cannot build and test reliably on macOS 10.11+ (Darwin15+) without use
12309 # of rpaths, since runpaths set via DYLD_LIBRARY_PATH are elided by key
12310 # system executables (e.g. /bin/sh). Force rpaths on for these systems.
12311 UNSET,darwin1[5-9]*|UNSET,darwin2*|10.1[1-9][,.]*|1[1-9].*[,.]* )
12312 { $as_echo "$as_me:${as_lineno-$LINENO}: @rpath library names are needed on macOS versions later than 10.11 (rpaths have been enabled)" >&5
12313 $as_echo "$as_me: @rpath library names are needed on macOS versions later than 10.11 (rpaths have been enabled)" >&6;}
12314 enable_darwin_at_rpath=yes
12316 # NOTE: we are not (yet) doing anything for 10.5 .. 10.10, since they can
12317 # work with either DYLD_LIBRARY_PATH or embedded rpaths.
12319 esac
12324 archive_cmds_need_lc_CXX=no
12325 hardcode_direct_CXX=no
12326 hardcode_automatic_CXX=yes
12327 hardcode_shlibpath_var_CXX=unsupported
12328 if test "$lt_cv_ld_force_load" = "yes"; then
12329 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\"`'
12330 else
12331 whole_archive_flag_spec_CXX=''
12333 link_all_deplibs_CXX=yes
12334 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12335 case $cc_basename in
12336 ifort*) _lt_dar_can_shared=yes ;;
12337 *) _lt_dar_can_shared=$GCC ;;
12338 esac
12339 if test "$_lt_dar_can_shared" = "yes"; then
12340 output_verbose_link_cmd=func_echo_all
12341 _lt_install_name='\$rpath/\$soname'
12342 if test "x$enable_darwin_at_rpath" = "xyes"; then
12343 _lt_install_name='@rpath/\$soname'
12345 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name ${_lt_install_name} \$verstring ${_lt_dsymutil}"
12346 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12347 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name ${_lt_install_name} \$verstring ${_lt_dar_export_syms}${_lt_dsymutil}"
12348 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}"
12349 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12350 _lt_install_name='\$rpath/\$soname'
12351 if test "x$enable_darwin_at_rpath" = "xyes"; then
12352 _lt_install_name='@rpath/\$soname'
12354 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name ${_lt_install_name} \$verstring${_lt_dsymutil}"
12355 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}"
12358 else
12359 ld_shlibs_CXX=no
12364 dgux*)
12365 case $cc_basename in
12366 ec++*)
12367 # FIXME: insert proper C++ library support
12368 ld_shlibs_CXX=no
12370 ghcx*)
12371 # Green Hills C++ Compiler
12372 # FIXME: insert proper C++ library support
12373 ld_shlibs_CXX=no
12376 # FIXME: insert proper C++ library support
12377 ld_shlibs_CXX=no
12379 esac
12382 freebsd2.*)
12383 # C++ shared libraries reported to be fairly broken before
12384 # switch to ELF
12385 ld_shlibs_CXX=no
12388 freebsd-elf*)
12389 archive_cmds_need_lc_CXX=no
12392 freebsd* | dragonfly*)
12393 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12394 # conventions
12395 ld_shlibs_CXX=yes
12398 gnu*)
12401 haiku*)
12402 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12403 link_all_deplibs_CXX=yes
12406 hpux9*)
12407 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12408 hardcode_libdir_separator_CXX=:
12409 export_dynamic_flag_spec_CXX='${wl}-E'
12410 hardcode_direct_CXX=yes
12411 hardcode_minus_L_CXX=yes # Not in the search PATH,
12412 # but as the default
12413 # location of the library.
12415 case $cc_basename in
12416 CC*)
12417 # FIXME: insert proper C++ library support
12418 ld_shlibs_CXX=no
12420 aCC*)
12421 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'
12422 # Commands to make compiler produce verbose output that lists
12423 # what "hidden" libraries, object files and flags are used when
12424 # linking a shared library.
12426 # There doesn't appear to be a way to prevent this compiler from
12427 # explicitly linking system object files so we need to strip them
12428 # from the output so that they don't get included in the library
12429 # dependencies.
12430 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"'
12433 if test "$GXX" = yes; then
12434 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'
12435 else
12436 # FIXME: insert proper C++ library support
12437 ld_shlibs_CXX=no
12440 esac
12443 hpux10*|hpux11*)
12444 if test $with_gnu_ld = no; then
12445 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12446 hardcode_libdir_separator_CXX=:
12448 case $host_cpu in
12449 hppa*64*|ia64*)
12452 export_dynamic_flag_spec_CXX='${wl}-E'
12454 esac
12456 case $host_cpu in
12457 hppa*64*|ia64*)
12458 hardcode_direct_CXX=no
12459 hardcode_shlibpath_var_CXX=no
12462 hardcode_direct_CXX=yes
12463 hardcode_direct_absolute_CXX=yes
12464 hardcode_minus_L_CXX=yes # Not in the search PATH,
12465 # but as the default
12466 # location of the library.
12468 esac
12470 case $cc_basename in
12471 CC*)
12472 # FIXME: insert proper C++ library support
12473 ld_shlibs_CXX=no
12475 aCC*)
12476 case $host_cpu in
12477 hppa*64*)
12478 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12480 ia64*)
12481 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12484 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12486 esac
12487 # Commands to make compiler produce verbose output that lists
12488 # what "hidden" libraries, object files and flags are used when
12489 # linking a shared library.
12491 # There doesn't appear to be a way to prevent this compiler from
12492 # explicitly linking system object files so we need to strip them
12493 # from the output so that they don't get included in the library
12494 # dependencies.
12495 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"'
12498 if test "$GXX" = yes; then
12499 if test $with_gnu_ld = no; then
12500 case $host_cpu in
12501 hppa*64*)
12502 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12504 ia64*)
12505 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12508 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'
12510 esac
12512 else
12513 # FIXME: insert proper C++ library support
12514 ld_shlibs_CXX=no
12517 esac
12520 interix[3-9]*)
12521 hardcode_direct_CXX=no
12522 hardcode_shlibpath_var_CXX=no
12523 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12524 export_dynamic_flag_spec_CXX='${wl}-E'
12525 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12526 # Instead, shared libraries are loaded at an image base (0x10000000 by
12527 # default) and relocated if they conflict, which is a slow very memory
12528 # consuming and fragmenting process. To avoid this, we pick a random,
12529 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12530 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12531 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'
12532 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'
12534 irix5* | irix6*)
12535 case $cc_basename in
12536 CC*)
12537 # SGI C++
12538 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'
12540 # Archives containing C++ object files must be created using
12541 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12542 # necessary to make sure instantiated templates are included
12543 # in the archive.
12544 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12547 if test "$GXX" = yes; then
12548 if test "$with_gnu_ld" = no; then
12549 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'
12550 else
12551 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'
12554 link_all_deplibs_CXX=yes
12556 esac
12557 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12558 hardcode_libdir_separator_CXX=:
12559 inherit_rpath_CXX=yes
12562 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12563 case $cc_basename in
12564 KCC*)
12565 # Kuck and Associates, Inc. (KAI) C++ Compiler
12567 # KCC will only create a shared library if the output file
12568 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12569 # to its proper name (with version) after linking.
12570 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'
12571 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'
12572 # Commands to make compiler produce verbose output that lists
12573 # what "hidden" libraries, object files and flags are used when
12574 # linking a shared library.
12576 # There doesn't appear to be a way to prevent this compiler from
12577 # explicitly linking system object files so we need to strip them
12578 # from the output so that they don't get included in the library
12579 # dependencies.
12580 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"'
12582 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12583 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12585 # Archives containing C++ object files must be created using
12586 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12587 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12589 icpc* | ecpc* )
12590 # Intel C++
12591 with_gnu_ld=yes
12592 # version 8.0 and above of icpc choke on multiply defined symbols
12593 # if we add $predep_objects and $postdep_objects, however 7.1 and
12594 # earlier do not add the objects themselves.
12595 case `$CC -V 2>&1` in
12596 *"Version 7."*)
12597 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12598 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'
12600 *) # Version 8.0 or newer
12601 tmp_idyn=
12602 case $host_cpu in
12603 ia64*) tmp_idyn=' -i_dynamic';;
12604 esac
12605 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12606 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'
12608 esac
12609 archive_cmds_need_lc_CXX=no
12610 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12611 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12612 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12614 pgCC* | pgcpp*)
12615 # Portland Group C++ compiler
12616 case `$CC -V` in
12617 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
12618 prelink_cmds_CXX='tpldir=Template.dir~
12619 rm -rf $tpldir~
12620 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12621 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
12622 old_archive_cmds_CXX='tpldir=Template.dir~
12623 rm -rf $tpldir~
12624 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12625 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
12626 $RANLIB $oldlib'
12627 archive_cmds_CXX='tpldir=Template.dir~
12628 rm -rf $tpldir~
12629 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12630 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12631 archive_expsym_cmds_CXX='tpldir=Template.dir~
12632 rm -rf $tpldir~
12633 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12634 $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'
12636 *) # Version 6 and above use weak symbols
12637 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12638 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'
12640 esac
12642 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12643 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12644 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'
12646 cxx*)
12647 # Compaq C++
12648 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12649 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'
12651 runpath_var=LD_RUN_PATH
12652 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12653 hardcode_libdir_separator_CXX=:
12655 # Commands to make compiler produce verbose output that lists
12656 # what "hidden" libraries, object files and flags are used when
12657 # linking a shared library.
12659 # There doesn't appear to be a way to prevent this compiler from
12660 # explicitly linking system object files so we need to strip them
12661 # from the output so that they don't get included in the library
12662 # dependencies.
12663 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'
12665 xl* | mpixl* | bgxl*)
12666 # IBM XL 8.0 on PPC, with GNU ld
12667 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12668 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12669 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12670 if test "x$supports_anon_versioning" = xyes; then
12671 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12672 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12673 echo "local: *; };" >> $output_objdir/$libname.ver~
12674 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12678 case `$CC -V 2>&1 | sed 5q` in
12679 *Sun\ C*)
12680 # Sun C++ 5.9
12681 no_undefined_flag_CXX=' -zdefs'
12682 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12683 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'
12684 hardcode_libdir_flag_spec_CXX='-R$libdir'
12685 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'
12686 compiler_needs_object_CXX=yes
12688 # Not sure whether something based on
12689 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12690 # would be better.
12691 output_verbose_link_cmd='func_echo_all'
12693 # Archives containing C++ object files must be created using
12694 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12695 # necessary to make sure instantiated templates are included
12696 # in the archive.
12697 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12699 esac
12701 esac
12704 lynxos*)
12705 # FIXME: insert proper C++ library support
12706 ld_shlibs_CXX=no
12709 m88k*)
12710 # FIXME: insert proper C++ library support
12711 ld_shlibs_CXX=no
12714 mvs*)
12715 case $cc_basename in
12716 cxx*)
12717 # FIXME: insert proper C++ library support
12718 ld_shlibs_CXX=no
12721 # FIXME: insert proper C++ library support
12722 ld_shlibs_CXX=no
12724 esac
12727 netbsd*)
12728 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12729 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12730 wlarc=
12731 hardcode_libdir_flag_spec_CXX='-R$libdir'
12732 hardcode_direct_CXX=yes
12733 hardcode_shlibpath_var_CXX=no
12735 # Workaround some broken pre-1.5 toolchains
12736 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12739 *nto* | *qnx*)
12740 ld_shlibs_CXX=yes
12743 openbsd2*)
12744 # C++ shared libraries are fairly broken
12745 ld_shlibs_CXX=no
12748 openbsd*)
12749 if test -f /usr/libexec/ld.so; then
12750 hardcode_direct_CXX=yes
12751 hardcode_shlibpath_var_CXX=no
12752 hardcode_direct_absolute_CXX=yes
12753 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12754 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12755 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12756 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12757 export_dynamic_flag_spec_CXX='${wl}-E'
12758 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12760 output_verbose_link_cmd=func_echo_all
12761 else
12762 ld_shlibs_CXX=no
12766 osf3* | osf4* | osf5*)
12767 case $cc_basename in
12768 KCC*)
12769 # Kuck and Associates, Inc. (KAI) C++ Compiler
12771 # KCC will only create a shared library if the output file
12772 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12773 # to its proper name (with version) after linking.
12774 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'
12776 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12777 hardcode_libdir_separator_CXX=:
12779 # Archives containing C++ object files must be created using
12780 # the KAI C++ compiler.
12781 case $host in
12782 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
12783 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
12784 esac
12786 RCC*)
12787 # Rational C++ 2.4.1
12788 # FIXME: insert proper C++ library support
12789 ld_shlibs_CXX=no
12791 cxx*)
12792 case $host in
12793 osf3*)
12794 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12795 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'
12796 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12799 allow_undefined_flag_CXX=' -expect_unresolved \*'
12800 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'
12801 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12802 echo "-hidden">> $lib.exp~
12803 $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~
12804 $RM $lib.exp'
12805 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12807 esac
12809 hardcode_libdir_separator_CXX=:
12811 # Commands to make compiler produce verbose output that lists
12812 # what "hidden" libraries, object files and flags are used when
12813 # linking a shared library.
12815 # There doesn't appear to be a way to prevent this compiler from
12816 # explicitly linking system object files so we need to strip them
12817 # from the output so that they don't get included in the library
12818 # dependencies.
12819 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"'
12822 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12823 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12824 case $host in
12825 osf3*)
12826 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'
12829 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'
12831 esac
12833 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12834 hardcode_libdir_separator_CXX=:
12836 # Commands to make compiler produce verbose output that lists
12837 # what "hidden" libraries, object files and flags are used when
12838 # linking a shared library.
12839 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12841 else
12842 # FIXME: insert proper C++ library support
12843 ld_shlibs_CXX=no
12846 esac
12849 psos*)
12850 # FIXME: insert proper C++ library support
12851 ld_shlibs_CXX=no
12854 sunos4*)
12855 case $cc_basename in
12856 CC*)
12857 # Sun C++ 4.x
12858 # FIXME: insert proper C++ library support
12859 ld_shlibs_CXX=no
12861 lcc*)
12862 # Lucid
12863 # FIXME: insert proper C++ library support
12864 ld_shlibs_CXX=no
12867 # FIXME: insert proper C++ library support
12868 ld_shlibs_CXX=no
12870 esac
12873 solaris*)
12874 case $cc_basename in
12875 CC*)
12876 # Sun C++ 4.2, 5.x and Centerline C++
12877 archive_cmds_need_lc_CXX=yes
12878 no_undefined_flag_CXX=' -zdefs'
12879 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12880 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12881 $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'
12883 hardcode_libdir_flag_spec_CXX='-R$libdir'
12884 hardcode_shlibpath_var_CXX=no
12885 case $host_os in
12886 solaris2.[0-5] | solaris2.[0-5].*) ;;
12888 # The compiler driver will combine and reorder linker options,
12889 # but understands `-z linker_flag'.
12890 # Supported since Solaris 2.6 (maybe 2.5.1?)
12891 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12893 esac
12894 link_all_deplibs_CXX=yes
12896 output_verbose_link_cmd='func_echo_all'
12898 # Archives containing C++ object files must be created using
12899 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12900 # necessary to make sure instantiated templates are included
12901 # in the archive.
12902 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12904 gcx*)
12905 # Green Hills C++ Compiler
12906 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12908 # The C++ compiler must be used to create the archive.
12909 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12912 # GNU C++ compiler with Solaris linker
12913 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12914 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12915 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
12916 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12917 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12918 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12920 # Commands to make compiler produce verbose output that lists
12921 # what "hidden" libraries, object files and flags are used when
12922 # linking a shared library.
12923 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12924 else
12925 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12926 # platform.
12927 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12928 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12929 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12931 # Commands to make compiler produce verbose output that lists
12932 # what "hidden" libraries, object files and flags are used when
12933 # linking a shared library.
12934 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12937 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12938 case $host_os in
12939 solaris2.[0-5] | solaris2.[0-5].*) ;;
12941 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12943 esac
12946 esac
12949 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12950 no_undefined_flag_CXX='${wl}-z,text'
12951 archive_cmds_need_lc_CXX=no
12952 hardcode_shlibpath_var_CXX=no
12953 runpath_var='LD_RUN_PATH'
12955 case $cc_basename in
12956 CC*)
12957 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12958 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12961 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12962 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12964 esac
12967 sysv5* | sco3.2v5* | sco5v6*)
12968 # Note: We can NOT use -z defs as we might desire, because we do not
12969 # link with -lc, and that would cause any symbols used from libc to
12970 # always be unresolved, which means just about no library would
12971 # ever link correctly. If we're not using GNU ld we use -z text
12972 # though, which does catch some bad symbols but isn't as heavy-handed
12973 # as -z defs.
12974 no_undefined_flag_CXX='${wl}-z,text'
12975 allow_undefined_flag_CXX='${wl}-z,nodefs'
12976 archive_cmds_need_lc_CXX=no
12977 hardcode_shlibpath_var_CXX=no
12978 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
12979 hardcode_libdir_separator_CXX=':'
12980 link_all_deplibs_CXX=yes
12981 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12982 runpath_var='LD_RUN_PATH'
12984 case $cc_basename in
12985 CC*)
12986 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12987 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12988 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
12989 '"$old_archive_cmds_CXX"
12990 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
12991 '"$reload_cmds_CXX"
12994 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12995 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12997 esac
13000 tandem*)
13001 case $cc_basename in
13002 NCC*)
13003 # NonStop-UX NCC 3.20
13004 # FIXME: insert proper C++ library support
13005 ld_shlibs_CXX=no
13008 # FIXME: insert proper C++ library support
13009 ld_shlibs_CXX=no
13011 esac
13014 vxworks*)
13015 # For VxWorks ports, we assume the use of a GNU linker with
13016 # standard elf conventions.
13017 ld_shlibs_CXX=yes
13021 # FIXME: insert proper C++ library support
13022 ld_shlibs_CXX=no
13024 esac
13026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13027 $as_echo "$ld_shlibs_CXX" >&6; }
13028 test "$ld_shlibs_CXX" = no && can_build_shared=no
13030 GCC_CXX="$GXX"
13031 LD_CXX="$LD"
13033 ## CAVEAT EMPTOR:
13034 ## There is no encapsulation within the following macros, do not change
13035 ## the running order or otherwise move them around unless you know exactly
13036 ## what you are doing...
13037 # Dependencies to place before and after the object being linked:
13038 predep_objects_CXX=
13039 postdep_objects_CXX=
13040 predeps_CXX=
13041 postdeps_CXX=
13042 compiler_lib_search_path_CXX=
13044 cat > conftest.$ac_ext <<_LT_EOF
13045 class Foo
13047 public:
13048 Foo (void) { a = 0; }
13049 private:
13050 int a;
13052 _LT_EOF
13054 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13055 (eval $ac_compile) 2>&5
13056 ac_status=$?
13057 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13058 test $ac_status = 0; }; then
13059 # Parse the compiler output and extract the necessary
13060 # objects, libraries and library flags.
13062 # Sentinel used to keep track of whether or not we are before
13063 # the conftest object file.
13064 pre_test_object_deps_done=no
13066 for p in `eval "$output_verbose_link_cmd"`; do
13067 case $p in
13069 -L* | -R* | -l*)
13070 # Some compilers place space between "-{L,R}" and the path.
13071 # Remove the space.
13072 if test $p = "-L" ||
13073 test $p = "-R"; then
13074 prev=$p
13075 continue
13076 else
13077 prev=
13080 if test "$pre_test_object_deps_done" = no; then
13081 case $p in
13082 -L* | -R*)
13083 # Internal compiler library paths should come after those
13084 # provided the user. The postdeps already come after the
13085 # user supplied libs so there is no need to process them.
13086 if test -z "$compiler_lib_search_path_CXX"; then
13087 compiler_lib_search_path_CXX="${prev}${p}"
13088 else
13089 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13092 # The "-l" case would never come before the object being
13093 # linked, so don't bother handling this case.
13094 esac
13095 else
13096 if test -z "$postdeps_CXX"; then
13097 postdeps_CXX="${prev}${p}"
13098 else
13099 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13104 *.$objext)
13105 # This assumes that the test object file only shows up
13106 # once in the compiler output.
13107 if test "$p" = "conftest.$objext"; then
13108 pre_test_object_deps_done=yes
13109 continue
13112 if test "$pre_test_object_deps_done" = no; then
13113 if test -z "$predep_objects_CXX"; then
13114 predep_objects_CXX="$p"
13115 else
13116 predep_objects_CXX="$predep_objects_CXX $p"
13118 else
13119 if test -z "$postdep_objects_CXX"; then
13120 postdep_objects_CXX="$p"
13121 else
13122 postdep_objects_CXX="$postdep_objects_CXX $p"
13127 *) ;; # Ignore the rest.
13129 esac
13130 done
13132 # Clean up.
13133 rm -f a.out a.exe
13134 else
13135 echo "libtool.m4: error: problem compiling CXX test program"
13138 $RM -f confest.$objext
13140 # PORTME: override above test on systems where it is broken
13141 case $host_os in
13142 interix[3-9]*)
13143 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13144 # hack all around it, let's just trust "g++" to DTRT.
13145 predep_objects_CXX=
13146 postdep_objects_CXX=
13147 postdeps_CXX=
13150 linux*)
13151 case `$CC -V 2>&1 | sed 5q` in
13152 *Sun\ C*)
13153 # Sun C++ 5.9
13155 # The more standards-conforming stlport4 library is
13156 # incompatible with the Cstd library. Avoid specifying
13157 # it if it's in CXXFLAGS. Ignore libCrun as
13158 # -library=stlport4 depends on it.
13159 case " $CXX $CXXFLAGS " in
13160 *" -library=stlport4 "*)
13161 solaris_use_stlport4=yes
13163 esac
13165 if test "$solaris_use_stlport4" != yes; then
13166 postdeps_CXX='-library=Cstd -library=Crun'
13169 esac
13172 solaris*)
13173 case $cc_basename in
13174 CC*)
13175 # The more standards-conforming stlport4 library is
13176 # incompatible with the Cstd library. Avoid specifying
13177 # it if it's in CXXFLAGS. Ignore libCrun as
13178 # -library=stlport4 depends on it.
13179 case " $CXX $CXXFLAGS " in
13180 *" -library=stlport4 "*)
13181 solaris_use_stlport4=yes
13183 esac
13185 # Adding this requires a known-good setup of shared libraries for
13186 # Sun compiler versions before 5.6, else PIC objects from an old
13187 # archive will be linked into the output, leading to subtle bugs.
13188 if test "$solaris_use_stlport4" != yes; then
13189 postdeps_CXX='-library=Cstd -library=Crun'
13192 esac
13194 esac
13197 case " $postdeps_CXX " in
13198 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13199 esac
13200 compiler_lib_search_dirs_CXX=
13201 if test -n "${compiler_lib_search_path_CXX}"; then
13202 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13235 lt_prog_compiler_wl_CXX=
13236 lt_prog_compiler_pic_CXX=
13237 lt_prog_compiler_static_CXX=
13239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13240 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13242 # C++ specific cases for pic, static, wl, etc.
13243 if test "$GXX" = yes; then
13244 lt_prog_compiler_wl_CXX='-Wl,'
13245 lt_prog_compiler_static_CXX='-static'
13247 case $host_os in
13248 aix*)
13249 # All AIX code is PIC.
13250 if test "$host_cpu" = ia64; then
13251 # AIX 5 now supports IA64 processor
13252 lt_prog_compiler_static_CXX='-Bstatic'
13254 lt_prog_compiler_pic_CXX='-fPIC'
13257 amigaos*)
13258 case $host_cpu in
13259 powerpc)
13260 # see comment about AmigaOS4 .so support
13261 lt_prog_compiler_pic_CXX='-fPIC'
13263 m68k)
13264 # FIXME: we need at least 68020 code to build shared libraries, but
13265 # adding the `-m68020' flag to GCC prevents building anything better,
13266 # like `-m68040'.
13267 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13269 esac
13272 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13273 # PIC is the default for these OSes.
13275 mingw* | cygwin* | os2* | pw32* | cegcc*)
13276 # This hack is so that the source file can tell whether it is being
13277 # built for inclusion in a dll (and should export symbols for example).
13278 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13279 # (--disable-auto-import) libraries
13280 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13282 darwin* | rhapsody*)
13283 # PIC is the default on this platform
13284 # Common symbols not allowed in MH_DYLIB files
13285 lt_prog_compiler_pic_CXX='-fno-common'
13287 *djgpp*)
13288 # DJGPP does not support shared libraries at all
13289 lt_prog_compiler_pic_CXX=
13291 haiku*)
13292 # PIC is the default for Haiku.
13293 # The "-static" flag exists, but is broken.
13294 lt_prog_compiler_static_CXX=
13296 interix[3-9]*)
13297 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13298 # Instead, we relocate shared libraries at runtime.
13300 sysv4*MP*)
13301 if test -d /usr/nec; then
13302 lt_prog_compiler_pic_CXX=-Kconform_pic
13305 hpux*)
13306 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13307 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13308 # sets the default TLS model and affects inlining.
13309 case $host_cpu in
13310 hppa*64*)
13313 lt_prog_compiler_pic_CXX='-fPIC'
13315 esac
13317 *qnx* | *nto*)
13318 # QNX uses GNU C++, but need to define -shared option too, otherwise
13319 # it will coredump.
13320 lt_prog_compiler_pic_CXX='-fPIC -shared'
13323 lt_prog_compiler_pic_CXX='-fPIC'
13325 esac
13326 else
13327 case $host_os in
13328 aix[4-9]*)
13329 # All AIX code is PIC.
13330 if test "$host_cpu" = ia64; then
13331 # AIX 5 now supports IA64 processor
13332 lt_prog_compiler_static_CXX='-Bstatic'
13333 else
13334 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13337 chorus*)
13338 case $cc_basename in
13339 cxch68*)
13340 # Green Hills C++ Compiler
13341 # _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"
13343 esac
13345 dgux*)
13346 case $cc_basename in
13347 ec++*)
13348 lt_prog_compiler_pic_CXX='-KPIC'
13350 ghcx*)
13351 # Green Hills C++ Compiler
13352 lt_prog_compiler_pic_CXX='-pic'
13356 esac
13358 freebsd* | dragonfly*)
13359 # FreeBSD uses GNU C++
13361 hpux9* | hpux10* | hpux11*)
13362 case $cc_basename in
13363 CC*)
13364 lt_prog_compiler_wl_CXX='-Wl,'
13365 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13366 if test "$host_cpu" != ia64; then
13367 lt_prog_compiler_pic_CXX='+Z'
13370 aCC*)
13371 lt_prog_compiler_wl_CXX='-Wl,'
13372 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13373 case $host_cpu in
13374 hppa*64*|ia64*)
13375 # +Z the default
13378 lt_prog_compiler_pic_CXX='+Z'
13380 esac
13384 esac
13386 interix*)
13387 # This is c89, which is MS Visual C++ (no shared libs)
13388 # Anyone wants to do a port?
13390 irix5* | irix6* | nonstopux*)
13391 case $cc_basename in
13392 CC*)
13393 lt_prog_compiler_wl_CXX='-Wl,'
13394 lt_prog_compiler_static_CXX='-non_shared'
13395 # CC pic flag -KPIC is the default.
13399 esac
13401 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13402 case $cc_basename in
13403 KCC*)
13404 # KAI C++ Compiler
13405 lt_prog_compiler_wl_CXX='--backend -Wl,'
13406 lt_prog_compiler_pic_CXX='-fPIC'
13408 ecpc* )
13409 # old Intel C++ for x86_64 which still supported -KPIC.
13410 lt_prog_compiler_wl_CXX='-Wl,'
13411 lt_prog_compiler_pic_CXX='-KPIC'
13412 lt_prog_compiler_static_CXX='-static'
13414 icpc* )
13415 # Intel C++, used to be incompatible with GCC.
13416 # ICC 10 doesn't accept -KPIC any more.
13417 lt_prog_compiler_wl_CXX='-Wl,'
13418 lt_prog_compiler_pic_CXX='-fPIC'
13419 lt_prog_compiler_static_CXX='-static'
13421 pgCC* | pgcpp*)
13422 # Portland Group C++ compiler
13423 lt_prog_compiler_wl_CXX='-Wl,'
13424 lt_prog_compiler_pic_CXX='-fpic'
13425 lt_prog_compiler_static_CXX='-Bstatic'
13427 cxx*)
13428 # Compaq C++
13429 # Make sure the PIC flag is empty. It appears that all Alpha
13430 # Linux and Compaq Tru64 Unix objects are PIC.
13431 lt_prog_compiler_pic_CXX=
13432 lt_prog_compiler_static_CXX='-non_shared'
13434 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13435 # IBM XL 8.0, 9.0 on PPC and BlueGene
13436 lt_prog_compiler_wl_CXX='-Wl,'
13437 lt_prog_compiler_pic_CXX='-qpic'
13438 lt_prog_compiler_static_CXX='-qstaticlink'
13441 case `$CC -V 2>&1 | sed 5q` in
13442 *Sun\ C*)
13443 # Sun C++ 5.9
13444 lt_prog_compiler_pic_CXX='-KPIC'
13445 lt_prog_compiler_static_CXX='-Bstatic'
13446 lt_prog_compiler_wl_CXX='-Qoption ld '
13448 esac
13450 esac
13452 lynxos*)
13454 m88k*)
13456 mvs*)
13457 case $cc_basename in
13458 cxx*)
13459 lt_prog_compiler_pic_CXX='-W c,exportall'
13463 esac
13465 netbsd*)
13467 *qnx* | *nto*)
13468 # QNX uses GNU C++, but need to define -shared option too, otherwise
13469 # it will coredump.
13470 lt_prog_compiler_pic_CXX='-fPIC -shared'
13472 osf3* | osf4* | osf5*)
13473 case $cc_basename in
13474 KCC*)
13475 lt_prog_compiler_wl_CXX='--backend -Wl,'
13477 RCC*)
13478 # Rational C++ 2.4.1
13479 lt_prog_compiler_pic_CXX='-pic'
13481 cxx*)
13482 # Digital/Compaq C++
13483 lt_prog_compiler_wl_CXX='-Wl,'
13484 # Make sure the PIC flag is empty. It appears that all Alpha
13485 # Linux and Compaq Tru64 Unix objects are PIC.
13486 lt_prog_compiler_pic_CXX=
13487 lt_prog_compiler_static_CXX='-non_shared'
13491 esac
13493 psos*)
13495 solaris*)
13496 case $cc_basename in
13497 CC*)
13498 # Sun C++ 4.2, 5.x and Centerline C++
13499 lt_prog_compiler_pic_CXX='-KPIC'
13500 lt_prog_compiler_static_CXX='-Bstatic'
13501 lt_prog_compiler_wl_CXX='-Qoption ld '
13503 gcx*)
13504 # Green Hills C++ Compiler
13505 lt_prog_compiler_pic_CXX='-PIC'
13509 esac
13511 sunos4*)
13512 case $cc_basename in
13513 CC*)
13514 # Sun C++ 4.x
13515 lt_prog_compiler_pic_CXX='-pic'
13516 lt_prog_compiler_static_CXX='-Bstatic'
13518 lcc*)
13519 # Lucid
13520 lt_prog_compiler_pic_CXX='-pic'
13524 esac
13526 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13527 case $cc_basename in
13528 CC*)
13529 lt_prog_compiler_wl_CXX='-Wl,'
13530 lt_prog_compiler_pic_CXX='-KPIC'
13531 lt_prog_compiler_static_CXX='-Bstatic'
13533 esac
13535 tandem*)
13536 case $cc_basename in
13537 NCC*)
13538 # NonStop-UX NCC 3.20
13539 lt_prog_compiler_pic_CXX='-KPIC'
13543 esac
13545 vxworks*)
13548 lt_prog_compiler_can_build_shared_CXX=no
13550 esac
13553 case $host_os in
13554 # For platforms which do not support PIC, -DPIC is meaningless:
13555 *djgpp*)
13556 lt_prog_compiler_pic_CXX=
13559 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13561 esac
13562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13563 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13568 # Check to make sure the PIC flag actually works.
13570 if test -n "$lt_prog_compiler_pic_CXX"; then
13571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13572 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13573 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
13574 $as_echo_n "(cached) " >&6
13575 else
13576 lt_cv_prog_compiler_pic_works_CXX=no
13577 ac_outfile=conftest.$ac_objext
13578 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13579 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13580 # Insert the option either (1) after the last *FLAGS variable, or
13581 # (2) before a word containing "conftest.", or (3) at the end.
13582 # Note that $ac_compile itself does not contain backslashes and begins
13583 # with a dollar sign (not a hyphen), so the echo should work correctly.
13584 # The option is referenced via a variable to avoid confusing sed.
13585 lt_compile=`echo "$ac_compile" | $SED \
13586 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13587 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13588 -e 's:$: $lt_compiler_flag:'`
13589 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13590 (eval "$lt_compile" 2>conftest.err)
13591 ac_status=$?
13592 cat conftest.err >&5
13593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13594 if (exit $ac_status) && test -s "$ac_outfile"; then
13595 # The compiler can only warn and ignore the option if not recognized
13596 # So say no if there are warnings other than the usual output.
13597 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13598 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13599 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13600 lt_cv_prog_compiler_pic_works_CXX=yes
13603 $RM conftest*
13606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13607 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13609 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13610 case $lt_prog_compiler_pic_CXX in
13611 "" | " "*) ;;
13612 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13613 esac
13614 else
13615 lt_prog_compiler_pic_CXX=
13616 lt_prog_compiler_can_build_shared_CXX=no
13624 # Check to make sure the static flag actually works.
13626 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13628 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13629 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
13630 $as_echo_n "(cached) " >&6
13631 else
13632 lt_cv_prog_compiler_static_works_CXX=no
13633 save_LDFLAGS="$LDFLAGS"
13634 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13635 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13636 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13637 # The linker can only warn and ignore the option if not recognized
13638 # So say no if there are warnings
13639 if test -s conftest.err; then
13640 # Append any errors to the config.log.
13641 cat conftest.err 1>&5
13642 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13643 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13644 if diff conftest.exp conftest.er2 >/dev/null; then
13645 lt_cv_prog_compiler_static_works_CXX=yes
13647 else
13648 lt_cv_prog_compiler_static_works_CXX=yes
13651 $RM -r conftest*
13652 LDFLAGS="$save_LDFLAGS"
13655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13656 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13658 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13660 else
13661 lt_prog_compiler_static_CXX=
13667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13668 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13669 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
13670 $as_echo_n "(cached) " >&6
13671 else
13672 lt_cv_prog_compiler_c_o_CXX=no
13673 $RM -r conftest 2>/dev/null
13674 mkdir conftest
13675 cd conftest
13676 mkdir out
13677 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13679 lt_compiler_flag="-o out/conftest2.$ac_objext"
13680 # Insert the option either (1) after the last *FLAGS variable, or
13681 # (2) before a word containing "conftest.", or (3) at the end.
13682 # Note that $ac_compile itself does not contain backslashes and begins
13683 # with a dollar sign (not a hyphen), so the echo should work correctly.
13684 lt_compile=`echo "$ac_compile" | $SED \
13685 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13686 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13687 -e 's:$: $lt_compiler_flag:'`
13688 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13689 (eval "$lt_compile" 2>out/conftest.err)
13690 ac_status=$?
13691 cat out/conftest.err >&5
13692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13693 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13694 then
13695 # The compiler can only warn and ignore the option if not recognized
13696 # So say no if there are warnings
13697 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13698 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13699 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13700 lt_cv_prog_compiler_c_o_CXX=yes
13703 chmod u+w . 2>&5
13704 $RM conftest*
13705 # SGI C++ compiler will create directory out/ii_files/ for
13706 # template instantiation
13707 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13708 $RM out/* && rmdir out
13709 cd ..
13710 $RM -r conftest
13711 $RM conftest*
13714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13715 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13720 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13721 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
13722 $as_echo_n "(cached) " >&6
13723 else
13724 lt_cv_prog_compiler_c_o_CXX=no
13725 $RM -r conftest 2>/dev/null
13726 mkdir conftest
13727 cd conftest
13728 mkdir out
13729 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13731 lt_compiler_flag="-o out/conftest2.$ac_objext"
13732 # Insert the option either (1) after the last *FLAGS variable, or
13733 # (2) before a word containing "conftest.", or (3) at the end.
13734 # Note that $ac_compile itself does not contain backslashes and begins
13735 # with a dollar sign (not a hyphen), so the echo should work correctly.
13736 lt_compile=`echo "$ac_compile" | $SED \
13737 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13738 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13739 -e 's:$: $lt_compiler_flag:'`
13740 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13741 (eval "$lt_compile" 2>out/conftest.err)
13742 ac_status=$?
13743 cat out/conftest.err >&5
13744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13745 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13746 then
13747 # The compiler can only warn and ignore the option if not recognized
13748 # So say no if there are warnings
13749 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13750 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13751 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13752 lt_cv_prog_compiler_c_o_CXX=yes
13755 chmod u+w . 2>&5
13756 $RM conftest*
13757 # SGI C++ compiler will create directory out/ii_files/ for
13758 # template instantiation
13759 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13760 $RM out/* && rmdir out
13761 cd ..
13762 $RM -r conftest
13763 $RM conftest*
13766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13767 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13772 hard_links="nottested"
13773 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13774 # do not overwrite the value of need_locks provided by the user
13775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13776 $as_echo_n "checking if we can lock with hard links... " >&6; }
13777 hard_links=yes
13778 $RM conftest*
13779 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13780 touch conftest.a
13781 ln conftest.a conftest.b 2>&5 || hard_links=no
13782 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13784 $as_echo "$hard_links" >&6; }
13785 if test "$hard_links" = no; then
13786 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13787 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13788 need_locks=warn
13790 else
13791 need_locks=no
13796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13797 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13799 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13800 case $host_os in
13801 aix[4-9]*)
13802 # If we're using GNU nm, then we don't want the "-C" option.
13803 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13804 # Also, AIX nm treats weak defined symbols like other global defined
13805 # symbols, whereas GNU nm marks them as "W".
13806 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13807 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'
13808 else
13809 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'
13812 pw32*)
13813 export_symbols_cmds_CXX="$ltdll_cmds"
13815 cygwin* | mingw* | cegcc*)
13816 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'
13819 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13821 esac
13822 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13825 $as_echo "$ld_shlibs_CXX" >&6; }
13826 test "$ld_shlibs_CXX" = no && can_build_shared=no
13828 with_gnu_ld_CXX=$with_gnu_ld
13836 # Do we need to explicitly link libc?
13838 case "x$archive_cmds_need_lc_CXX" in
13839 x|xyes)
13840 # Assume -lc should be added
13841 archive_cmds_need_lc_CXX=yes
13843 if test "$enable_shared" = yes && test "$GCC" = yes; then
13844 case $archive_cmds_CXX in
13845 *'~'*)
13846 # FIXME: we may have to deal with multi-command sequences.
13848 '$CC '*)
13849 # Test whether the compiler implicitly links with -lc since on some
13850 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13851 # to ld, don't add -lc before -lgcc.
13852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13853 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13854 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
13855 $as_echo_n "(cached) " >&6
13856 else
13857 $RM conftest*
13858 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13860 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13861 (eval $ac_compile) 2>&5
13862 ac_status=$?
13863 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13864 test $ac_status = 0; } 2>conftest.err; then
13865 soname=conftest
13866 lib=conftest
13867 libobjs=conftest.$ac_objext
13868 deplibs=
13869 wl=$lt_prog_compiler_wl_CXX
13870 pic_flag=$lt_prog_compiler_pic_CXX
13871 compiler_flags=-v
13872 linker_flags=-v
13873 verstring=
13874 output_objdir=.
13875 libname=conftest
13876 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13877 allow_undefined_flag_CXX=
13878 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13879 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13880 ac_status=$?
13881 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13882 test $ac_status = 0; }
13883 then
13884 lt_cv_archive_cmds_need_lc_CXX=no
13885 else
13886 lt_cv_archive_cmds_need_lc_CXX=yes
13888 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13889 else
13890 cat conftest.err 1>&5
13892 $RM conftest*
13895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
13896 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
13897 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
13899 esac
13902 esac
13967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13968 $as_echo_n "checking dynamic linker characteristics... " >&6; }
13970 library_names_spec=
13971 libname_spec='lib$name'
13972 soname_spec=
13973 shrext_cmds=".so"
13974 postinstall_cmds=
13975 postuninstall_cmds=
13976 finish_cmds=
13977 finish_eval=
13978 shlibpath_var=
13979 shlibpath_overrides_runpath=unknown
13980 version_type=none
13981 dynamic_linker="$host_os ld.so"
13982 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13983 need_lib_prefix=unknown
13984 hardcode_into_libs=no
13986 # when you set need_version to no, make sure it does not cause -set_version
13987 # flags to be left without arguments
13988 need_version=unknown
13990 case $host_os in
13991 aix3*)
13992 version_type=linux
13993 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13994 shlibpath_var=LIBPATH
13996 # AIX 3 has no versioning support, so we append a major version to the name.
13997 soname_spec='${libname}${release}${shared_ext}$major'
14000 aix[4-9]*)
14001 version_type=linux
14002 need_lib_prefix=no
14003 need_version=no
14004 hardcode_into_libs=yes
14005 if test "$host_cpu" = ia64; then
14006 # AIX 5 supports IA64
14007 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14008 shlibpath_var=LD_LIBRARY_PATH
14009 else
14010 # With GCC up to 2.95.x, collect2 would create an import file
14011 # for dependence libraries. The import file would start with
14012 # the line `#! .'. This would cause the generated library to
14013 # depend on `.', always an invalid library. This was fixed in
14014 # development snapshots of GCC prior to 3.0.
14015 case $host_os in
14016 aix4 | aix4.[01] | aix4.[01].*)
14017 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14018 echo ' yes '
14019 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14021 else
14022 can_build_shared=no
14025 esac
14026 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14027 # soname into executable. Probably we can add versioning support to
14028 # collect2, so additional links can be useful in future.
14029 if test "$aix_use_runtimelinking" = yes; then
14030 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14031 # instead of lib<name>.a to let people know that these are not
14032 # typical AIX shared libraries.
14033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14034 else
14035 # We preserve .a as extension for shared libraries through AIX4.2
14036 # and later when we are not doing run time linking.
14037 library_names_spec='${libname}${release}.a $libname.a'
14038 soname_spec='${libname}${release}${shared_ext}$major'
14040 shlibpath_var=LIBPATH
14044 amigaos*)
14045 case $host_cpu in
14046 powerpc)
14047 # Since July 2007 AmigaOS4 officially supports .so libraries.
14048 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14051 m68k)
14052 library_names_spec='$libname.ixlibrary $libname.a'
14053 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14054 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'
14056 esac
14059 beos*)
14060 library_names_spec='${libname}${shared_ext}'
14061 dynamic_linker="$host_os ld.so"
14062 shlibpath_var=LIBRARY_PATH
14065 bsdi[45]*)
14066 version_type=linux
14067 need_version=no
14068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14069 soname_spec='${libname}${release}${shared_ext}$major'
14070 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14071 shlibpath_var=LD_LIBRARY_PATH
14072 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14073 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14074 # the default ld.so.conf also contains /usr/contrib/lib and
14075 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14076 # libtool to hard-code these into programs
14079 cygwin* | mingw* | pw32* | cegcc*)
14080 version_type=windows
14081 shrext_cmds=".dll"
14082 need_version=no
14083 need_lib_prefix=no
14085 case $GCC,$host_os in
14086 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14087 library_names_spec='$libname.dll.a'
14088 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14089 postinstall_cmds='base_file=`basename \${file}`~
14090 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14091 dldir=$destdir/`dirname \$dlpath`~
14092 test -d \$dldir || mkdir -p \$dldir~
14093 $install_prog $dir/$dlname \$dldir/$dlname~
14094 chmod a+x \$dldir/$dlname~
14095 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14096 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14098 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14099 dlpath=$dir/\$dldll~
14100 $RM \$dlpath'
14101 shlibpath_overrides_runpath=yes
14103 case $host_os in
14104 cygwin*)
14105 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14106 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14109 mingw* | cegcc*)
14110 # MinGW DLLs use traditional 'lib' prefix
14111 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14113 pw32*)
14114 # pw32 DLLs use 'pw' prefix rather than 'lib'
14115 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14117 esac
14121 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14123 esac
14124 dynamic_linker='Win32 ld.exe'
14125 # FIXME: first we should search . and the directory the executable is in
14126 shlibpath_var=PATH
14129 darwin* | rhapsody*)
14130 dynamic_linker="$host_os dyld"
14131 version_type=darwin
14132 need_lib_prefix=no
14133 need_version=no
14134 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14135 soname_spec='${libname}${release}${major}$shared_ext'
14136 shlibpath_overrides_runpath=yes
14137 shlibpath_var=DYLD_LIBRARY_PATH
14138 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14140 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14143 dgux*)
14144 version_type=linux
14145 need_lib_prefix=no
14146 need_version=no
14147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14148 soname_spec='${libname}${release}${shared_ext}$major'
14149 shlibpath_var=LD_LIBRARY_PATH
14152 freebsd* | dragonfly*)
14153 # DragonFly does not have aout. When/if they implement a new
14154 # versioning mechanism, adjust this.
14155 if test -x /usr/bin/objformat; then
14156 objformat=`/usr/bin/objformat`
14157 else
14158 case $host_os in
14159 freebsd[23].*) objformat=aout ;;
14160 *) objformat=elf ;;
14161 esac
14163 version_type=freebsd-$objformat
14164 case $version_type in
14165 freebsd-elf*)
14166 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14167 need_version=no
14168 need_lib_prefix=no
14170 freebsd-*)
14171 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14172 need_version=yes
14174 esac
14175 shlibpath_var=LD_LIBRARY_PATH
14176 case $host_os in
14177 freebsd2.*)
14178 shlibpath_overrides_runpath=yes
14180 freebsd3.[01]* | freebsdelf3.[01]*)
14181 shlibpath_overrides_runpath=yes
14182 hardcode_into_libs=yes
14184 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14185 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14186 shlibpath_overrides_runpath=no
14187 hardcode_into_libs=yes
14189 *) # from 4.6 on, and DragonFly
14190 shlibpath_overrides_runpath=yes
14191 hardcode_into_libs=yes
14193 esac
14196 haiku*)
14197 version_type=linux
14198 need_lib_prefix=no
14199 need_version=no
14200 dynamic_linker="$host_os runtime_loader"
14201 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14202 soname_spec='${libname}${release}${shared_ext}$major'
14203 shlibpath_var=LIBRARY_PATH
14204 shlibpath_overrides_runpath=yes
14205 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14206 hardcode_into_libs=yes
14209 hpux9* | hpux10* | hpux11*)
14210 # Give a soname corresponding to the major version so that dld.sl refuses to
14211 # link against other versions.
14212 version_type=sunos
14213 need_lib_prefix=no
14214 need_version=no
14215 case $host_cpu in
14216 ia64*)
14217 shrext_cmds='.so'
14218 hardcode_into_libs=yes
14219 dynamic_linker="$host_os dld.so"
14220 shlibpath_var=LD_LIBRARY_PATH
14221 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14223 soname_spec='${libname}${release}${shared_ext}$major'
14224 if test "X$HPUX_IA64_MODE" = X32; then
14225 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14226 else
14227 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14229 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14231 hppa*64*)
14232 shrext_cmds='.sl'
14233 hardcode_into_libs=yes
14234 dynamic_linker="$host_os dld.sl"
14235 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14236 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14238 soname_spec='${libname}${release}${shared_ext}$major'
14239 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14240 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14243 shrext_cmds='.sl'
14244 dynamic_linker="$host_os dld.sl"
14245 shlibpath_var=SHLIB_PATH
14246 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14248 soname_spec='${libname}${release}${shared_ext}$major'
14250 esac
14251 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14252 postinstall_cmds='chmod 555 $lib'
14253 # or fails outright, so override atomically:
14254 install_override_mode=555
14257 interix[3-9]*)
14258 version_type=linux
14259 need_lib_prefix=no
14260 need_version=no
14261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14262 soname_spec='${libname}${release}${shared_ext}$major'
14263 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14264 shlibpath_var=LD_LIBRARY_PATH
14265 shlibpath_overrides_runpath=no
14266 hardcode_into_libs=yes
14269 irix5* | irix6* | nonstopux*)
14270 case $host_os in
14271 nonstopux*) version_type=nonstopux ;;
14273 if test "$lt_cv_prog_gnu_ld" = yes; then
14274 version_type=linux
14275 else
14276 version_type=irix
14277 fi ;;
14278 esac
14279 need_lib_prefix=no
14280 need_version=no
14281 soname_spec='${libname}${release}${shared_ext}$major'
14282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14283 case $host_os in
14284 irix5* | nonstopux*)
14285 libsuff= shlibsuff=
14288 case $LD in # libtool.m4 will add one of these switches to LD
14289 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14290 libsuff= shlibsuff= libmagic=32-bit;;
14291 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14292 libsuff=32 shlibsuff=N32 libmagic=N32;;
14293 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14294 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14295 *) libsuff= shlibsuff= libmagic=never-match;;
14296 esac
14298 esac
14299 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14300 shlibpath_overrides_runpath=no
14301 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14302 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14303 hardcode_into_libs=yes
14306 # No shared lib support for Linux oldld, aout, or coff.
14307 linux*oldld* | linux*aout* | linux*coff*)
14308 dynamic_linker=no
14311 # This must be Linux ELF.
14313 # uclinux* changes (here and below) have been submitted to the libtool
14314 # project, but have not yet been accepted: they are GCC-local changes
14315 # for the time being. (See
14316 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
14317 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
14318 version_type=linux
14319 need_lib_prefix=no
14320 need_version=no
14321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14322 soname_spec='${libname}${release}${shared_ext}$major'
14323 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14324 shlibpath_var=LD_LIBRARY_PATH
14325 shlibpath_overrides_runpath=no
14327 # Some binutils ld are patched to set DT_RUNPATH
14328 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14329 $as_echo_n "(cached) " >&6
14330 else
14331 lt_cv_shlibpath_overrides_runpath=no
14332 save_LDFLAGS=$LDFLAGS
14333 save_libdir=$libdir
14334 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14335 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14337 /* end confdefs.h. */
14340 main ()
14344 return 0;
14346 _ACEOF
14347 if ac_fn_cxx_try_link "$LINENO"; then :
14348 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14349 lt_cv_shlibpath_overrides_runpath=yes
14352 rm -f core conftest.err conftest.$ac_objext \
14353 conftest$ac_exeext conftest.$ac_ext
14354 LDFLAGS=$save_LDFLAGS
14355 libdir=$save_libdir
14359 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14361 # This implies no fast_install, which is unacceptable.
14362 # Some rework will be needed to allow for fast_install
14363 # before this can be enabled.
14364 hardcode_into_libs=yes
14366 # Append ld.so.conf contents to the search path
14367 if test -f /etc/ld.so.conf; then
14368 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' ' '`
14369 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14372 # We used to test for /lib/ld.so.1 and disable shared libraries on
14373 # powerpc, because MkLinux only supported shared libraries with the
14374 # GNU dynamic linker. Since this was broken with cross compilers,
14375 # most powerpc-linux boxes support dynamic linking these days and
14376 # people can always --disable-shared, the test was removed, and we
14377 # assume the GNU/Linux dynamic linker is in use.
14378 dynamic_linker='GNU/Linux ld.so'
14381 netbsd*)
14382 version_type=sunos
14383 need_lib_prefix=no
14384 need_version=no
14385 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14387 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14388 dynamic_linker='NetBSD (a.out) ld.so'
14389 else
14390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14391 soname_spec='${libname}${release}${shared_ext}$major'
14392 dynamic_linker='NetBSD ld.elf_so'
14394 shlibpath_var=LD_LIBRARY_PATH
14395 shlibpath_overrides_runpath=yes
14396 hardcode_into_libs=yes
14399 newsos6)
14400 version_type=linux
14401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14402 shlibpath_var=LD_LIBRARY_PATH
14403 shlibpath_overrides_runpath=yes
14406 *nto* | *qnx*)
14407 version_type=qnx
14408 need_lib_prefix=no
14409 need_version=no
14410 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14411 soname_spec='${libname}${release}${shared_ext}$major'
14412 shlibpath_var=LD_LIBRARY_PATH
14413 shlibpath_overrides_runpath=no
14414 hardcode_into_libs=yes
14415 dynamic_linker='ldqnx.so'
14418 openbsd*)
14419 version_type=sunos
14420 sys_lib_dlsearch_path_spec="/usr/lib"
14421 need_lib_prefix=no
14422 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14423 case $host_os in
14424 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14425 *) need_version=no ;;
14426 esac
14427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14428 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14429 shlibpath_var=LD_LIBRARY_PATH
14430 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14431 case $host_os in
14432 openbsd2.[89] | openbsd2.[89].*)
14433 shlibpath_overrides_runpath=no
14436 shlibpath_overrides_runpath=yes
14438 esac
14439 else
14440 shlibpath_overrides_runpath=yes
14444 os2*)
14445 libname_spec='$name'
14446 shrext_cmds=".dll"
14447 need_lib_prefix=no
14448 library_names_spec='$libname${shared_ext} $libname.a'
14449 dynamic_linker='OS/2 ld.exe'
14450 shlibpath_var=LIBPATH
14453 osf3* | osf4* | osf5*)
14454 version_type=osf
14455 need_lib_prefix=no
14456 need_version=no
14457 soname_spec='${libname}${release}${shared_ext}$major'
14458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14459 shlibpath_var=LD_LIBRARY_PATH
14460 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14461 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14464 rdos*)
14465 dynamic_linker=no
14468 solaris*)
14469 version_type=linux
14470 need_lib_prefix=no
14471 need_version=no
14472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14473 soname_spec='${libname}${release}${shared_ext}$major'
14474 shlibpath_var=LD_LIBRARY_PATH
14475 shlibpath_overrides_runpath=yes
14476 hardcode_into_libs=yes
14477 # ldd complains unless libraries are executable
14478 postinstall_cmds='chmod +x $lib'
14481 sunos4*)
14482 version_type=sunos
14483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14484 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14485 shlibpath_var=LD_LIBRARY_PATH
14486 shlibpath_overrides_runpath=yes
14487 if test "$with_gnu_ld" = yes; then
14488 need_lib_prefix=no
14490 need_version=yes
14493 sysv4 | sysv4.3*)
14494 version_type=linux
14495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14496 soname_spec='${libname}${release}${shared_ext}$major'
14497 shlibpath_var=LD_LIBRARY_PATH
14498 case $host_vendor in
14499 sni)
14500 shlibpath_overrides_runpath=no
14501 need_lib_prefix=no
14502 runpath_var=LD_RUN_PATH
14504 siemens)
14505 need_lib_prefix=no
14507 motorola)
14508 need_lib_prefix=no
14509 need_version=no
14510 shlibpath_overrides_runpath=no
14511 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14513 esac
14516 sysv4*MP*)
14517 if test -d /usr/nec ;then
14518 version_type=linux
14519 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14520 soname_spec='$libname${shared_ext}.$major'
14521 shlibpath_var=LD_LIBRARY_PATH
14525 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14526 version_type=freebsd-elf
14527 need_lib_prefix=no
14528 need_version=no
14529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14530 soname_spec='${libname}${release}${shared_ext}$major'
14531 shlibpath_var=LD_LIBRARY_PATH
14532 shlibpath_overrides_runpath=yes
14533 hardcode_into_libs=yes
14534 if test "$with_gnu_ld" = yes; then
14535 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14536 else
14537 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14538 case $host_os in
14539 sco3.2v5*)
14540 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14542 esac
14544 sys_lib_dlsearch_path_spec='/usr/lib'
14547 tpf*)
14548 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14549 version_type=linux
14550 need_lib_prefix=no
14551 need_version=no
14552 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14553 shlibpath_var=LD_LIBRARY_PATH
14554 shlibpath_overrides_runpath=no
14555 hardcode_into_libs=yes
14558 uts4*)
14559 version_type=linux
14560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14561 soname_spec='${libname}${release}${shared_ext}$major'
14562 shlibpath_var=LD_LIBRARY_PATH
14565 # Shared libraries for VwWorks, >= 7 only at this stage
14566 # and (fpic) still incompatible with "large" code models
14567 # in a few configurations. Only for RTP mode in any case,
14568 # and upon explicit request at configure time.
14569 vxworks7*)
14570 dynamic_linker=no
14571 case ${with_multisubdir}-${enable_shared} in
14572 *large*)
14574 *mrtp*-yes)
14575 version_type=linux
14576 need_lib_prefix=no
14577 need_version=no
14578 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14579 soname_spec='${libname}${release}${shared_ext}$major'
14580 dynamic_linker="$host_os module_loader"
14582 esac
14585 dynamic_linker=no
14587 esac
14588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14589 $as_echo "$dynamic_linker" >&6; }
14590 test "$dynamic_linker" = no && can_build_shared=no
14592 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14593 if test "$GCC" = yes; then
14594 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14597 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14598 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14600 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14601 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14642 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14643 hardcode_action_CXX=
14644 if test -n "$hardcode_libdir_flag_spec_CXX" ||
14645 test -n "$runpath_var_CXX" ||
14646 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14648 # We can hardcode non-existent directories.
14649 if test "$hardcode_direct_CXX" != no &&
14650 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14651 # have to relink, otherwise we might link with an installed library
14652 # when we should be linking with a yet-to-be-installed one
14653 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14654 test "$hardcode_minus_L_CXX" != no; then
14655 # Linking always hardcodes the temporary library directory.
14656 hardcode_action_CXX=relink
14657 else
14658 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14659 hardcode_action_CXX=immediate
14661 else
14662 # We cannot hardcode anything, or else we can only hardcode existing
14663 # directories.
14664 hardcode_action_CXX=unsupported
14666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14667 $as_echo "$hardcode_action_CXX" >&6; }
14669 if test "$hardcode_action_CXX" = relink ||
14670 test "$inherit_rpath_CXX" = yes; then
14671 # Fast installation is not supported
14672 enable_fast_install=no
14673 elif test "$shlibpath_overrides_runpath" = yes ||
14674 test "$enable_shared" = no; then
14675 # Fast installation is not necessary
14676 enable_fast_install=needless
14685 fi # test -n "$compiler"
14687 CC=$lt_save_CC
14688 LDCXX=$LD
14689 LD=$lt_save_LD
14690 GCC=$lt_save_GCC
14691 with_gnu_ld=$lt_save_with_gnu_ld
14692 lt_cv_path_LDCXX=$lt_cv_path_LD
14693 lt_cv_path_LD=$lt_save_path_LD
14694 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14695 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14696 fi # test "$_lt_caught_CXX_error" != yes
14698 ac_ext=c
14699 ac_cpp='$CPP $CPPFLAGS'
14700 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14701 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14702 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14706 visibility=
14707 if test "$GXX" = yes; then
14708 visibility=-fvisibility=hidden
14712 # Check whether --enable-cet was given.
14713 if test "${enable_cet+set}" = set; then :
14714 enableval=$enable_cet;
14715 case "$enableval" in
14716 yes|no|auto) ;;
14717 *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
14718 esac
14720 else
14721 enable_cet=auto
14725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
14726 $as_echo_n "checking for CET support... " >&6; }
14728 case "$host" in
14729 i[34567]86-*-linux* | x86_64-*-linux*)
14730 may_have_cet=yes
14731 cet_save_CFLAGS="$CFLAGS"
14732 CFLAGS="$CFLAGS -fcf-protection"
14733 case "$enable_cet" in
14734 auto)
14735 # Check if target supports multi-byte NOPs
14736 # and if compiler and assembler support CET.
14737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14738 /* end confdefs.h. */
14741 main ()
14744 #if !defined(__SSE2__)
14745 #error target does not support multi-byte NOPs
14746 #else
14747 asm ("setssbsy");
14748 #endif
14751 return 0;
14753 _ACEOF
14754 if ac_fn_c_try_compile "$LINENO"; then :
14755 enable_cet=yes
14756 else
14757 enable_cet=no
14759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14761 yes)
14762 # Check if compiler and assembler support CET.
14763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14764 /* end confdefs.h. */
14767 main ()
14769 asm ("setssbsy");
14771 return 0;
14773 _ACEOF
14774 if ac_fn_c_try_compile "$LINENO"; then :
14775 support_cet=yes
14776 else
14777 support_cet=no
14779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14780 if test $support_cet = "no"; then
14781 if test x$enable_bootstrap != xno \
14782 && test -z "${with_build_subdir}" \
14783 && (test ! -f ../stage_current \
14784 || test `cat ../stage_current` != "stage1"); then
14785 # Require CET support only for the final GCC build.
14786 as_fn_error $? "compiler and assembler with CET support are required for --enable-cet" "$LINENO" 5
14787 else
14788 # Don't enable CET without CET support for non-bootstrap
14789 # build, in stage1 nor for build support.
14790 enable_cet=no
14794 esac
14795 CFLAGS="$cet_save_CFLAGS"
14798 may_have_cet=no
14799 enable_cet=no
14801 esac
14803 cet_save_CFLAGS="$CFLAGS"
14804 CFLAGS="$CFLAGS -fcf-protection=none"
14805 cet_save_LDFLAGS="$LDFLAGS"
14806 LDFLAGS="$LDFLAGS -Wl,-z,ibt,-z,shstk"
14807 if test x$may_have_cet = xyes; then
14808 # Check whether -fcf-protection=none -Wl,-z,ibt,-z,shstk work.
14809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14810 /* end confdefs.h. */
14813 main ()
14815 return 0;
14817 return 0;
14819 _ACEOF
14820 if ac_fn_c_try_link "$LINENO"; then :
14821 may_have_cet=yes
14822 else
14823 may_have_cet=no
14825 rm -f core conftest.err conftest.$ac_objext \
14826 conftest$ac_exeext conftest.$ac_ext
14829 if test x$may_have_cet = xyes; then
14830 if test x$cross_compiling = xno; then
14831 if test "$cross_compiling" = yes; then :
14832 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14833 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14834 as_fn_error $? "cannot run test program while cross compiling
14835 See \`config.log' for more details" "$LINENO" 5; }
14836 else
14837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14838 /* end confdefs.h. */
14841 main ()
14843 asm ("endbr32");
14844 return 0;
14847 _ACEOF
14848 if ac_fn_c_try_run "$LINENO"; then :
14849 have_multi_byte_nop=yes
14850 else
14851 have_multi_byte_nop=no
14853 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14854 conftest.$ac_objext conftest.beam conftest.$ac_ext
14857 have_cet=no
14858 if test x$have_multi_byte_nop = xyes; then
14859 if test "$cross_compiling" = yes; then :
14860 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14861 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14862 as_fn_error $? "cannot run test program while cross compiling
14863 See \`config.log' for more details" "$LINENO" 5; }
14864 else
14865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14866 /* end confdefs.h. */
14868 static void
14869 foo (void)
14873 static void
14874 __attribute__ ((noinline, noclone))
14875 xxx (void (*f) (void))
14877 f ();
14880 static void
14881 __attribute__ ((noinline, noclone))
14882 bar (void)
14884 xxx (foo);
14888 main ()
14890 bar ();
14891 return 0;
14894 _ACEOF
14895 if ac_fn_c_try_run "$LINENO"; then :
14896 have_cet=no
14897 else
14898 have_cet=yes
14900 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14901 conftest.$ac_objext conftest.beam conftest.$ac_ext
14905 if test x$enable_cet = xno -a x$have_cet = xyes; then
14906 as_fn_error $? "Intel CET must be enabled on Intel CET enabled host" "$LINENO" 5
14909 else
14910 # Enable CET in cross compiler if possible so that it will run on both
14911 # CET and non-CET hosts.
14912 have_cet=yes
14914 if test x$enable_cet = xyes; then
14915 CET_HOST_FLAGS="-fcf-protection"
14916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14917 $as_echo "yes" >&6; }
14918 else
14919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14920 $as_echo "no" >&6; }
14922 CFLAGS="$cet_save_CFLAGS"
14923 LDFLAGS="$cet_save_LDFLAGS"
14927 ac_fn_c_check_decl "$LINENO" "basename" "ac_cv_have_decl_basename" "$ac_includes_default"
14928 if test "x$ac_cv_have_decl_basename" = xyes; then :
14929 ac_have_decl=1
14930 else
14931 ac_have_decl=0
14934 cat >>confdefs.h <<_ACEOF
14935 #define HAVE_DECL_BASENAME $ac_have_decl
14936 _ACEOF
14940 get_gcc_base_ver="cat"
14942 # Check whether --with-gcc-major-version-only was given.
14943 if test "${with_gcc_major_version_only+set}" = set; then :
14944 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
14945 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
14953 if test x$with_gcc_major_version_only = xyes ; then
14954 gcc_version=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/../gcc/BASE-VER`
14955 else
14956 gcc_version=`cat $srcdir/../gcc/BASE-VER`
14959 CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/../gcc/BASE-VER'
14962 ac_ext=c
14963 ac_cpp='$CPP $CPPFLAGS'
14964 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14965 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14966 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14968 WARN_FLAGS=
14969 save_CFLAGS="$CFLAGS"
14970 for real_option in -W -Wall; do
14971 # Do the check with the no- prefix removed since gcc silently
14972 # accepts any -Wno-* option on purpose
14973 case $real_option in
14974 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
14975 *) option=$real_option ;;
14976 esac
14977 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
14979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
14980 $as_echo_n "checking whether $CC supports $option... " >&6; }
14981 if eval \${$as_acx_Woption+:} false; then :
14982 $as_echo_n "(cached) " >&6
14983 else
14984 CFLAGS="$option"
14985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14986 /* end confdefs.h. */
14989 main ()
14993 return 0;
14995 _ACEOF
14996 if ac_fn_c_try_compile "$LINENO"; then :
14997 eval "$as_acx_Woption=yes"
14998 else
14999 eval "$as_acx_Woption=no"
15001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15004 eval ac_res=\$$as_acx_Woption
15005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15006 $as_echo "$ac_res" >&6; }
15007 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
15008 WARN_FLAGS="$WARN_FLAGS${WARN_FLAGS:+ }$real_option"
15010 done
15011 CFLAGS="$save_CFLAGS"
15012 ac_ext=c
15013 ac_cpp='$CPP $CPPFLAGS'
15014 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15015 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15016 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15020 ac_ext=c
15021 ac_cpp='$CPP $CPPFLAGS'
15022 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15023 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15024 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15026 WERROR=
15027 # Check whether --enable-werror-always was given.
15028 if test "${enable_werror_always+set}" = set; then :
15029 enableval=$enable_werror_always;
15030 else
15031 enable_werror_always=no
15034 if test $enable_werror_always = yes; then :
15035 WERROR="$WERROR${WERROR:+ }-Werror"
15038 ac_ext=c
15039 ac_cpp='$CPP $CPPFLAGS'
15040 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15041 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15042 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15048 libsuffix=
15049 if test "$GXX" = yes; then
15050 libsuffix=`$CXX -print-multi-os-directory`
15054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket libraries" >&5
15055 $as_echo_n "checking for socket libraries... " >&6; }
15056 if ${libcc1_cv_lib_sockets+:} false; then :
15057 $as_echo_n "(cached) " >&6
15058 else
15059 libcc1_cv_lib_sockets=
15060 libcc1_check_both=no
15061 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
15062 if test "x$ac_cv_func_connect" = xyes; then :
15063 libcc1_check_socket=no
15064 else
15065 libcc1_check_socket=yes
15068 if test "$libcc1_check_socket" = "yes"; then
15069 unset ac_cv_func_connect
15070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
15071 $as_echo_n "checking for main in -lsocket... " >&6; }
15072 if ${ac_cv_lib_socket_main+:} false; then :
15073 $as_echo_n "(cached) " >&6
15074 else
15075 ac_check_lib_save_LIBS=$LIBS
15076 LIBS="-lsocket $LIBS"
15077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15078 /* end confdefs.h. */
15082 main ()
15084 return main ();
15086 return 0;
15088 _ACEOF
15089 if ac_fn_c_try_link "$LINENO"; then :
15090 ac_cv_lib_socket_main=yes
15091 else
15092 ac_cv_lib_socket_main=no
15094 rm -f core conftest.err conftest.$ac_objext \
15095 conftest$ac_exeext conftest.$ac_ext
15096 LIBS=$ac_check_lib_save_LIBS
15098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
15099 $as_echo "$ac_cv_lib_socket_main" >&6; }
15100 if test "x$ac_cv_lib_socket_main" = xyes; then :
15101 libcc1_cv_lib_sockets="-lsocket"
15102 else
15103 libcc1_check_both=yes
15107 if test "$libcc1_check_both" = "yes"; then
15108 libcc1_old_libs=$LIBS
15109 LIBS="$LIBS -lsocket -lnsl"
15110 unset ac_cv_func_accept
15111 ac_fn_c_check_func "$LINENO" "accept" "ac_cv_func_accept"
15112 if test "x$ac_cv_func_accept" = xyes; then :
15113 libcc1_check_nsl=no
15114 libcc1_cv_lib_sockets="-lsocket -lnsl"
15117 unset ac_cv_func_accept
15118 LIBS=$libcc1_old_libs
15120 unset ac_cv_func_gethostbyname
15121 libcc1_old_libs="$LIBS"
15122 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
15123 if test "x$ac_cv_func_gethostbyname" = xyes; then :
15125 else
15126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
15127 $as_echo_n "checking for main in -lnsl... " >&6; }
15128 if ${ac_cv_lib_nsl_main+:} false; then :
15129 $as_echo_n "(cached) " >&6
15130 else
15131 ac_check_lib_save_LIBS=$LIBS
15132 LIBS="-lnsl $LIBS"
15133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15134 /* end confdefs.h. */
15138 main ()
15140 return main ();
15142 return 0;
15144 _ACEOF
15145 if ac_fn_c_try_link "$LINENO"; then :
15146 ac_cv_lib_nsl_main=yes
15147 else
15148 ac_cv_lib_nsl_main=no
15150 rm -f core conftest.err conftest.$ac_objext \
15151 conftest$ac_exeext conftest.$ac_ext
15152 LIBS=$ac_check_lib_save_LIBS
15154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
15155 $as_echo "$ac_cv_lib_nsl_main" >&6; }
15156 if test "x$ac_cv_lib_nsl_main" = xyes; then :
15157 libcc1_cv_lib_sockets="$libcc1_cv_lib_sockets -lnsl"
15162 unset ac_cv_func_gethostbyname
15163 LIBS=$libcc1_old_libs
15166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libcc1_cv_lib_sockets" >&5
15167 $as_echo "$libcc1_cv_lib_sockets" >&6; }
15168 LIBS="$LIBS $libcc1_cv_lib_sockets"
15170 case "$host" in
15171 *-*-darwin*) darwin_dynamic_lookup=yes ;;
15172 *) darwin_dynamic_lookup=no ;;
15173 esac
15174 if test $darwin_dynamic_lookup = yes; then
15175 DARWIN_DYNAMIC_LOOKUP_TRUE=
15176 DARWIN_DYNAMIC_LOOKUP_FALSE='#'
15177 else
15178 DARWIN_DYNAMIC_LOOKUP_TRUE='#'
15179 DARWIN_DYNAMIC_LOOKUP_FALSE=
15183 # If any of these functions are missing, simply don't bother building
15184 # this plugin.
15185 # Check for plugin support
15186 # Check whether --enable-plugin was given.
15187 if test "${enable_plugin+set}" = set; then :
15188 enableval=$enable_plugin; enable_plugin=$enableval
15189 else
15190 enable_plugin=yes; default_plugin=yes
15194 pluginlibs=
15195 plugin_check=yes
15197 case "${host}" in
15198 *-*-mingw*)
15199 # Since plugin support under MinGW is not as straightforward as on
15200 # other platforms (e.g., we have to link import library, etc), we
15201 # only enable it if explicitly requested.
15202 if test x"$default_plugin" = x"yes"; then
15203 enable_plugin=no
15204 elif test x"$enable_plugin" = x"yes"; then
15205 # Use make's target variable to derive import library name.
15206 pluginlibs='-Wl,--export-all-symbols -Wl,--out-implib=$@.a'
15207 plugin_check=no
15210 *-*-darwin*)
15211 if test x$build = x$host; then
15212 export_sym_check="nm${exeext} -g"
15213 elif test x$host = x$target; then
15214 export_sym_check="$gcc_cv_nm -g"
15215 else
15216 export_sym_check=
15220 if test x$build = x$host; then
15221 export_sym_check="$ac_cv_prog_OBJDUMP -T"
15222 elif test x$host = x$target; then
15223 export_sym_check="$gcc_cv_objdump -T"
15224 else
15225 export_sym_check="$ac_cv_prog_OBJDUMP -T"
15228 esac
15230 if test x"$enable_plugin" = x"yes" -a x"$plugin_check" = x"yes"; then
15232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
15233 $as_echo_n "checking for exported symbols... " >&6; }
15234 if test "x$export_sym_check" != x; then
15235 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
15236 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest$ac_exeext > /dev/null 2>&1
15237 if $export_sym_check conftest$ac_exeext | grep foobar > /dev/null; then
15238 : # No need to use a flag
15239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15240 $as_echo "yes" >&6; }
15241 else
15242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15243 $as_echo "yes" >&6; }
15244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
15245 $as_echo_n "checking for -rdynamic... " >&6; }
15246 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest$ac_exeext > /dev/null 2>&1
15247 if $export_sym_check conftest$ac_exeext | grep foobar > /dev/null; then
15248 plugin_rdynamic=yes
15249 pluginlibs="-rdynamic"
15250 else
15251 plugin_rdynamic=no
15252 enable_plugin=no
15254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
15255 $as_echo "$plugin_rdynamic" >&6; }
15257 else
15258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
15259 $as_echo "unable to check" >&6; }
15262 # Check -ldl
15263 saved_LIBS="$LIBS"
15264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
15265 $as_echo_n "checking for library containing dlopen... " >&6; }
15266 if ${ac_cv_search_dlopen+:} false; then :
15267 $as_echo_n "(cached) " >&6
15268 else
15269 ac_func_search_save_LIBS=$LIBS
15270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15271 /* end confdefs.h. */
15273 /* Override any GCC internal prototype to avoid an error.
15274 Use char because int might match the return type of a GCC
15275 builtin and then its argument prototype would still apply. */
15276 #ifdef __cplusplus
15277 extern "C"
15278 #endif
15279 char dlopen ();
15281 main ()
15283 return dlopen ();
15285 return 0;
15287 _ACEOF
15288 for ac_lib in '' dl; do
15289 if test -z "$ac_lib"; then
15290 ac_res="none required"
15291 else
15292 ac_res=-l$ac_lib
15293 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15295 if ac_fn_c_try_link "$LINENO"; then :
15296 ac_cv_search_dlopen=$ac_res
15298 rm -f core conftest.err conftest.$ac_objext \
15299 conftest$ac_exeext
15300 if ${ac_cv_search_dlopen+:} false; then :
15301 break
15303 done
15304 if ${ac_cv_search_dlopen+:} false; then :
15306 else
15307 ac_cv_search_dlopen=no
15309 rm conftest.$ac_ext
15310 LIBS=$ac_func_search_save_LIBS
15312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
15313 $as_echo "$ac_cv_search_dlopen" >&6; }
15314 ac_res=$ac_cv_search_dlopen
15315 if test "$ac_res" != no; then :
15316 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15320 if test x"$ac_cv_search_dlopen" = x"-ldl"; then
15321 pluginlibs="$pluginlibs -ldl"
15323 LIBS="$saved_LIBS"
15325 # Check that we can build shared objects with -fPIC -shared
15326 saved_LDFLAGS="$LDFLAGS"
15327 saved_CFLAGS="$CFLAGS"
15328 saved_CXXFLAGS="$CXXFLAGS"
15329 case "${host}" in
15330 *-*-darwin*)
15331 CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
15332 CFLAGS="$CFLAGS -fPIC"
15333 CXXFLAGS=`echo $CXXFLAGS | sed s/-mdynamic-no-pic//g`
15334 CXXFLAGS="$CXXFLAGS -fPIC"
15335 LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
15338 CFLAGS="$CFLAGS -fPIC"
15339 CXXFLAGS="$CXXFLAGS -fPIC"
15340 LDFLAGS="$LDFLAGS -fPIC -shared"
15342 esac
15343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
15344 $as_echo_n "checking for -fPIC -shared... " >&6; }
15345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15346 /* end confdefs.h. */
15347 extern int X;
15349 main ()
15351 return X == 0;
15353 return 0;
15355 _ACEOF
15356 if ac_fn_c_try_link "$LINENO"; then :
15357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15358 $as_echo "yes" >&6; }; have_pic_shared=yes
15359 else
15360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15361 $as_echo "no" >&6; }; have_pic_shared=no
15363 rm -f core conftest.err conftest.$ac_objext \
15364 conftest$ac_exeext conftest.$ac_ext
15365 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
15366 pluginlibs=
15367 enable_plugin=no
15369 LDFLAGS="$saved_LDFLAGS"
15370 CFLAGS="$saved_CFLAGS"
15371 CXXFLAGS="$saved_CXXFLAGS"
15373 # If plugin support had been requested but not available, fail.
15374 if test x"$enable_plugin" = x"no" ; then
15375 if test x"$default_plugin" != x"yes"; then
15376 as_fn_error $? "
15377 Building GCC with plugin support requires a host that supports
15378 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
15383 ac_fn_c_check_func "$LINENO" "socketpair" "ac_cv_func_socketpair"
15384 if test "x$ac_cv_func_socketpair" = xyes; then :
15386 else
15387 enable_plugin=no
15390 ac_fn_c_check_func "$LINENO" "select" "ac_cv_func_select"
15391 if test "x$ac_cv_func_select" = xyes; then :
15393 else
15394 enable_plugin=no
15397 ac_fn_c_check_func "$LINENO" "fork" "ac_cv_func_fork"
15398 if test "x$ac_cv_func_fork" = xyes; then :
15400 else
15401 enable_plugin=no
15404 if test $enable_plugin = yes; then
15405 ENABLE_PLUGIN_TRUE=
15406 ENABLE_PLUGIN_FALSE='#'
15407 else
15408 ENABLE_PLUGIN_TRUE='#'
15409 ENABLE_PLUGIN_FALSE=
15413 ac_config_files="$ac_config_files Makefile"
15415 cat >confcache <<\_ACEOF
15416 # This file is a shell script that caches the results of configure
15417 # tests run on this system so they can be shared between configure
15418 # scripts and configure runs, see configure's option --config-cache.
15419 # It is not useful on other systems. If it contains results you don't
15420 # want to keep, you may remove or edit it.
15422 # config.status only pays attention to the cache file if you give it
15423 # the --recheck option to rerun configure.
15425 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15426 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15427 # following values.
15429 _ACEOF
15431 # The following way of writing the cache mishandles newlines in values,
15432 # but we know of no workaround that is simple, portable, and efficient.
15433 # So, we kill variables containing newlines.
15434 # Ultrix sh set writes to stderr and can't be redirected directly,
15435 # and sets the high bit in the cache file unless we assign to the vars.
15437 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15438 eval ac_val=\$$ac_var
15439 case $ac_val in #(
15440 *${as_nl}*)
15441 case $ac_var in #(
15442 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15443 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15444 esac
15445 case $ac_var in #(
15446 _ | IFS | as_nl) ;; #(
15447 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15448 *) { eval $ac_var=; unset $ac_var;} ;;
15449 esac ;;
15450 esac
15451 done
15453 (set) 2>&1 |
15454 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15455 *${as_nl}ac_space=\ *)
15456 # `set' does not quote correctly, so add quotes: double-quote
15457 # substitution turns \\\\ into \\, and sed turns \\ into \.
15458 sed -n \
15459 "s/'/'\\\\''/g;
15460 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15461 ;; #(
15463 # `set' quotes correctly as required by POSIX, so do not add quotes.
15464 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15466 esac |
15467 sort
15469 sed '
15470 /^ac_cv_env_/b end
15471 t clear
15472 :clear
15473 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15474 t end
15475 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15476 :end' >>confcache
15477 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15478 if test -w "$cache_file"; then
15479 if test "x$cache_file" != "x/dev/null"; then
15480 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15481 $as_echo "$as_me: updating cache $cache_file" >&6;}
15482 if test ! -f "$cache_file" || test -h "$cache_file"; then
15483 cat confcache >"$cache_file"
15484 else
15485 case $cache_file in #(
15486 */* | ?:*)
15487 mv -f confcache "$cache_file"$$ &&
15488 mv -f "$cache_file"$$ "$cache_file" ;; #(
15490 mv -f confcache "$cache_file" ;;
15491 esac
15494 else
15495 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15496 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15499 rm -f confcache
15501 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15502 # Let make expand exec_prefix.
15503 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15505 DEFS=-DHAVE_CONFIG_H
15507 ac_libobjs=
15508 ac_ltlibobjs=
15510 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15511 # 1. Remove the extension, and $U if already installed.
15512 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15513 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15514 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15515 # will be set to the directory where LIBOBJS objects are built.
15516 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15517 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15518 done
15519 LIBOBJS=$ac_libobjs
15521 LTLIBOBJS=$ac_ltlibobjs
15524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15525 $as_echo_n "checking that generated files are newer than configure... " >&6; }
15526 if test -n "$am_sleep_pid"; then
15527 # Hide warnings about reused PIDs.
15528 wait $am_sleep_pid 2>/dev/null
15530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15531 $as_echo "done" >&6; }
15532 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15533 as_fn_error $? "conditional \"AMDEP\" was never defined.
15534 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15536 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15537 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15538 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15540 if test -n "$EXEEXT"; then
15541 am__EXEEXT_TRUE=
15542 am__EXEEXT_FALSE='#'
15543 else
15544 am__EXEEXT_TRUE='#'
15545 am__EXEEXT_FALSE=
15548 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15549 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
15550 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15552 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
15553 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
15554 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15556 if test -z "${DARWIN_DYNAMIC_LOOKUP_TRUE}" && test -z "${DARWIN_DYNAMIC_LOOKUP_FALSE}"; then
15557 as_fn_error $? "conditional \"DARWIN_DYNAMIC_LOOKUP\" was never defined.
15558 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15560 if test -z "${ENABLE_PLUGIN_TRUE}" && test -z "${ENABLE_PLUGIN_FALSE}"; then
15561 as_fn_error $? "conditional \"ENABLE_PLUGIN\" was never defined.
15562 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15565 : "${CONFIG_STATUS=./config.status}"
15566 ac_write_fail=0
15567 ac_clean_files_save=$ac_clean_files
15568 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15569 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15570 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15571 as_write_fail=0
15572 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15573 #! $SHELL
15574 # Generated by $as_me.
15575 # Run this file to recreate the current configuration.
15576 # Compiler output produced by configure, useful for debugging
15577 # configure, is in config.log if it exists.
15579 debug=false
15580 ac_cs_recheck=false
15581 ac_cs_silent=false
15583 SHELL=\${CONFIG_SHELL-$SHELL}
15584 export SHELL
15585 _ASEOF
15586 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15587 ## -------------------- ##
15588 ## M4sh Initialization. ##
15589 ## -------------------- ##
15591 # Be more Bourne compatible
15592 DUALCASE=1; export DUALCASE # for MKS sh
15593 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15594 emulate sh
15595 NULLCMD=:
15596 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15597 # is contrary to our usage. Disable this feature.
15598 alias -g '${1+"$@"}'='"$@"'
15599 setopt NO_GLOB_SUBST
15600 else
15601 case `(set -o) 2>/dev/null` in #(
15602 *posix*) :
15603 set -o posix ;; #(
15604 *) :
15606 esac
15610 as_nl='
15612 export as_nl
15613 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15614 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15615 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15616 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15617 # Prefer a ksh shell builtin over an external printf program on Solaris,
15618 # but without wasting forks for bash or zsh.
15619 if test -z "$BASH_VERSION$ZSH_VERSION" \
15620 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15621 as_echo='print -r --'
15622 as_echo_n='print -rn --'
15623 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15624 as_echo='printf %s\n'
15625 as_echo_n='printf %s'
15626 else
15627 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15628 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15629 as_echo_n='/usr/ucb/echo -n'
15630 else
15631 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15632 as_echo_n_body='eval
15633 arg=$1;
15634 case $arg in #(
15635 *"$as_nl"*)
15636 expr "X$arg" : "X\\(.*\\)$as_nl";
15637 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15638 esac;
15639 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15641 export as_echo_n_body
15642 as_echo_n='sh -c $as_echo_n_body as_echo'
15644 export as_echo_body
15645 as_echo='sh -c $as_echo_body as_echo'
15648 # The user is always right.
15649 if test "${PATH_SEPARATOR+set}" != set; then
15650 PATH_SEPARATOR=:
15651 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15652 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15653 PATH_SEPARATOR=';'
15658 # IFS
15659 # We need space, tab and new line, in precisely that order. Quoting is
15660 # there to prevent editors from complaining about space-tab.
15661 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15662 # splitting by setting IFS to empty value.)
15663 IFS=" "" $as_nl"
15665 # Find who we are. Look in the path if we contain no directory separator.
15666 as_myself=
15667 case $0 in #((
15668 *[\\/]* ) as_myself=$0 ;;
15669 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15670 for as_dir in $PATH
15672 IFS=$as_save_IFS
15673 test -z "$as_dir" && as_dir=.
15674 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15675 done
15676 IFS=$as_save_IFS
15679 esac
15680 # We did not find ourselves, most probably we were run as `sh COMMAND'
15681 # in which case we are not to be found in the path.
15682 if test "x$as_myself" = x; then
15683 as_myself=$0
15685 if test ! -f "$as_myself"; then
15686 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15687 exit 1
15690 # Unset variables that we do not need and which cause bugs (e.g. in
15691 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15692 # suppresses any "Segmentation fault" message there. '((' could
15693 # trigger a bug in pdksh 5.2.14.
15694 for as_var in BASH_ENV ENV MAIL MAILPATH
15695 do eval test x\${$as_var+set} = xset \
15696 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15697 done
15698 PS1='$ '
15699 PS2='> '
15700 PS4='+ '
15702 # NLS nuisances.
15703 LC_ALL=C
15704 export LC_ALL
15705 LANGUAGE=C
15706 export LANGUAGE
15708 # CDPATH.
15709 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15712 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15713 # ----------------------------------------
15714 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15715 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15716 # script with STATUS, using 1 if that was 0.
15717 as_fn_error ()
15719 as_status=$1; test $as_status -eq 0 && as_status=1
15720 if test "$4"; then
15721 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15722 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15724 $as_echo "$as_me: error: $2" >&2
15725 as_fn_exit $as_status
15726 } # as_fn_error
15729 # as_fn_set_status STATUS
15730 # -----------------------
15731 # Set $? to STATUS, without forking.
15732 as_fn_set_status ()
15734 return $1
15735 } # as_fn_set_status
15737 # as_fn_exit STATUS
15738 # -----------------
15739 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15740 as_fn_exit ()
15742 set +e
15743 as_fn_set_status $1
15744 exit $1
15745 } # as_fn_exit
15747 # as_fn_unset VAR
15748 # ---------------
15749 # Portably unset VAR.
15750 as_fn_unset ()
15752 { eval $1=; unset $1;}
15754 as_unset=as_fn_unset
15755 # as_fn_append VAR VALUE
15756 # ----------------------
15757 # Append the text in VALUE to the end of the definition contained in VAR. Take
15758 # advantage of any shell optimizations that allow amortized linear growth over
15759 # repeated appends, instead of the typical quadratic growth present in naive
15760 # implementations.
15761 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15762 eval 'as_fn_append ()
15764 eval $1+=\$2
15766 else
15767 as_fn_append ()
15769 eval $1=\$$1\$2
15771 fi # as_fn_append
15773 # as_fn_arith ARG...
15774 # ------------------
15775 # Perform arithmetic evaluation on the ARGs, and store the result in the
15776 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15777 # must be portable across $(()) and expr.
15778 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15779 eval 'as_fn_arith ()
15781 as_val=$(( $* ))
15783 else
15784 as_fn_arith ()
15786 as_val=`expr "$@" || test $? -eq 1`
15788 fi # as_fn_arith
15791 if expr a : '\(a\)' >/dev/null 2>&1 &&
15792 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15793 as_expr=expr
15794 else
15795 as_expr=false
15798 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15799 as_basename=basename
15800 else
15801 as_basename=false
15804 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15805 as_dirname=dirname
15806 else
15807 as_dirname=false
15810 as_me=`$as_basename -- "$0" ||
15811 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15812 X"$0" : 'X\(//\)$' \| \
15813 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15814 $as_echo X/"$0" |
15815 sed '/^.*\/\([^/][^/]*\)\/*$/{
15816 s//\1/
15819 /^X\/\(\/\/\)$/{
15820 s//\1/
15823 /^X\/\(\/\).*/{
15824 s//\1/
15827 s/.*/./; q'`
15829 # Avoid depending upon Character Ranges.
15830 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15831 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15832 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15833 as_cr_digits='0123456789'
15834 as_cr_alnum=$as_cr_Letters$as_cr_digits
15836 ECHO_C= ECHO_N= ECHO_T=
15837 case `echo -n x` in #(((((
15838 -n*)
15839 case `echo 'xy\c'` in
15840 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15841 xy) ECHO_C='\c';;
15842 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15843 ECHO_T=' ';;
15844 esac;;
15846 ECHO_N='-n';;
15847 esac
15849 rm -f conf$$ conf$$.exe conf$$.file
15850 if test -d conf$$.dir; then
15851 rm -f conf$$.dir/conf$$.file
15852 else
15853 rm -f conf$$.dir
15854 mkdir conf$$.dir 2>/dev/null
15856 if (echo >conf$$.file) 2>/dev/null; then
15857 if ln -s conf$$.file conf$$ 2>/dev/null; then
15858 as_ln_s='ln -s'
15859 # ... but there are two gotchas:
15860 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15861 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15862 # In both cases, we have to default to `cp -pR'.
15863 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15864 as_ln_s='cp -pR'
15865 elif ln conf$$.file conf$$ 2>/dev/null; then
15866 as_ln_s=ln
15867 else
15868 as_ln_s='cp -pR'
15870 else
15871 as_ln_s='cp -pR'
15873 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15874 rmdir conf$$.dir 2>/dev/null
15877 # as_fn_mkdir_p
15878 # -------------
15879 # Create "$as_dir" as a directory, including parents if necessary.
15880 as_fn_mkdir_p ()
15883 case $as_dir in #(
15884 -*) as_dir=./$as_dir;;
15885 esac
15886 test -d "$as_dir" || eval $as_mkdir_p || {
15887 as_dirs=
15888 while :; do
15889 case $as_dir in #(
15890 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15891 *) as_qdir=$as_dir;;
15892 esac
15893 as_dirs="'$as_qdir' $as_dirs"
15894 as_dir=`$as_dirname -- "$as_dir" ||
15895 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15896 X"$as_dir" : 'X\(//\)[^/]' \| \
15897 X"$as_dir" : 'X\(//\)$' \| \
15898 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15899 $as_echo X"$as_dir" |
15900 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15901 s//\1/
15904 /^X\(\/\/\)[^/].*/{
15905 s//\1/
15908 /^X\(\/\/\)$/{
15909 s//\1/
15912 /^X\(\/\).*/{
15913 s//\1/
15916 s/.*/./; q'`
15917 test -d "$as_dir" && break
15918 done
15919 test -z "$as_dirs" || eval "mkdir $as_dirs"
15920 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15923 } # as_fn_mkdir_p
15924 if mkdir -p . 2>/dev/null; then
15925 as_mkdir_p='mkdir -p "$as_dir"'
15926 else
15927 test -d ./-p && rmdir ./-p
15928 as_mkdir_p=false
15932 # as_fn_executable_p FILE
15933 # -----------------------
15934 # Test if FILE is an executable regular file.
15935 as_fn_executable_p ()
15937 test -f "$1" && test -x "$1"
15938 } # as_fn_executable_p
15939 as_test_x='test -x'
15940 as_executable_p=as_fn_executable_p
15942 # Sed expression to map a string onto a valid CPP name.
15943 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15945 # Sed expression to map a string onto a valid variable name.
15946 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15949 exec 6>&1
15950 ## ----------------------------------- ##
15951 ## Main body of $CONFIG_STATUS script. ##
15952 ## ----------------------------------- ##
15953 _ASEOF
15954 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15956 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15957 # Save the log message, to keep $0 and so on meaningful, and to
15958 # report actual input values of CONFIG_FILES etc. instead of their
15959 # values after options handling.
15960 ac_log="
15961 This file was extended by libcc1 $as_me version-unused, which was
15962 generated by GNU Autoconf 2.69. Invocation command line was
15964 CONFIG_FILES = $CONFIG_FILES
15965 CONFIG_HEADERS = $CONFIG_HEADERS
15966 CONFIG_LINKS = $CONFIG_LINKS
15967 CONFIG_COMMANDS = $CONFIG_COMMANDS
15968 $ $0 $@
15970 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15973 _ACEOF
15975 case $ac_config_files in *"
15976 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15977 esac
15979 case $ac_config_headers in *"
15980 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15981 esac
15984 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15985 # Files that config.status was made for.
15986 config_files="$ac_config_files"
15987 config_headers="$ac_config_headers"
15988 config_commands="$ac_config_commands"
15990 _ACEOF
15992 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15993 ac_cs_usage="\
15994 \`$as_me' instantiates files and other configuration actions
15995 from templates according to the current configuration. Unless the files
15996 and actions are specified as TAGs, all are instantiated by default.
15998 Usage: $0 [OPTION]... [TAG]...
16000 -h, --help print this help, then exit
16001 -V, --version print version number and configuration settings, then exit
16002 --config print configuration, then exit
16003 -q, --quiet, --silent
16004 do not print progress messages
16005 -d, --debug don't remove temporary files
16006 --recheck update $as_me by reconfiguring in the same conditions
16007 --file=FILE[:TEMPLATE]
16008 instantiate the configuration file FILE
16009 --header=FILE[:TEMPLATE]
16010 instantiate the configuration header FILE
16012 Configuration files:
16013 $config_files
16015 Configuration headers:
16016 $config_headers
16018 Configuration commands:
16019 $config_commands
16021 Report bugs to the package provider."
16023 _ACEOF
16024 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16025 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16026 ac_cs_version="\\
16027 libcc1 config.status version-unused
16028 configured by $0, generated by GNU Autoconf 2.69,
16029 with options \\"\$ac_cs_config\\"
16031 Copyright (C) 2012 Free Software Foundation, Inc.
16032 This config.status script is free software; the Free Software Foundation
16033 gives unlimited permission to copy, distribute and modify it."
16035 ac_pwd='$ac_pwd'
16036 srcdir='$srcdir'
16037 INSTALL='$INSTALL'
16038 MKDIR_P='$MKDIR_P'
16039 AWK='$AWK'
16040 test -n "\$AWK" || AWK=awk
16041 _ACEOF
16043 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16044 # The default lists apply if the user does not specify any file.
16045 ac_need_defaults=:
16046 while test $# != 0
16048 case $1 in
16049 --*=?*)
16050 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16051 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16052 ac_shift=:
16054 --*=)
16055 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16056 ac_optarg=
16057 ac_shift=:
16060 ac_option=$1
16061 ac_optarg=$2
16062 ac_shift=shift
16064 esac
16066 case $ac_option in
16067 # Handling of the options.
16068 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16069 ac_cs_recheck=: ;;
16070 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16071 $as_echo "$ac_cs_version"; exit ;;
16072 --config | --confi | --conf | --con | --co | --c )
16073 $as_echo "$ac_cs_config"; exit ;;
16074 --debug | --debu | --deb | --de | --d | -d )
16075 debug=: ;;
16076 --file | --fil | --fi | --f )
16077 $ac_shift
16078 case $ac_optarg in
16079 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16080 '') as_fn_error $? "missing file argument" ;;
16081 esac
16082 as_fn_append CONFIG_FILES " '$ac_optarg'"
16083 ac_need_defaults=false;;
16084 --header | --heade | --head | --hea )
16085 $ac_shift
16086 case $ac_optarg in
16087 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16088 esac
16089 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16090 ac_need_defaults=false;;
16091 --he | --h)
16092 # Conflict between --help and --header
16093 as_fn_error $? "ambiguous option: \`$1'
16094 Try \`$0 --help' for more information.";;
16095 --help | --hel | -h )
16096 $as_echo "$ac_cs_usage"; exit ;;
16097 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16098 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16099 ac_cs_silent=: ;;
16101 # This is an error.
16102 -*) as_fn_error $? "unrecognized option: \`$1'
16103 Try \`$0 --help' for more information." ;;
16105 *) as_fn_append ac_config_targets " $1"
16106 ac_need_defaults=false ;;
16108 esac
16109 shift
16110 done
16112 ac_configure_extra_args=
16114 if $ac_cs_silent; then
16115 exec 6>/dev/null
16116 ac_configure_extra_args="$ac_configure_extra_args --silent"
16119 _ACEOF
16120 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16121 if \$ac_cs_recheck; then
16122 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16123 shift
16124 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16125 CONFIG_SHELL='$SHELL'
16126 export CONFIG_SHELL
16127 exec "\$@"
16130 _ACEOF
16131 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16132 exec 5>>config.log
16134 echo
16135 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16136 ## Running $as_me. ##
16137 _ASBOX
16138 $as_echo "$ac_log"
16139 } >&5
16141 _ACEOF
16142 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16144 # INIT-COMMANDS
16146 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16149 # The HP-UX ksh and POSIX shell print the target directory to stdout
16150 # if CDPATH is set.
16151 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16153 sed_quote_subst='$sed_quote_subst'
16154 double_quote_subst='$double_quote_subst'
16155 delay_variable_subst='$delay_variable_subst'
16156 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16157 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16158 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16159 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16160 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16161 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16162 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16163 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16164 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16165 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16166 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16167 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16168 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16169 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16170 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16171 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16172 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16173 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16174 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16175 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16176 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16177 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16178 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16179 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16180 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16181 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16182 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16183 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16184 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16185 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16186 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16187 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16188 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16189 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16190 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16191 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16192 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16193 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16194 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16195 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16196 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16197 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16198 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16199 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16200 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16201 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16202 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16203 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16204 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"`'
16205 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16206 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16207 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16208 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16209 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16210 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16211 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16212 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16213 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16214 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16215 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16216 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16217 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16218 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16219 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16220 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16221 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16222 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16223 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16224 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16225 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16226 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16227 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16228 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16229 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16230 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16231 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16232 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16233 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16234 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16235 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16236 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
16237 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16238 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16239 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16240 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16241 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16242 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16243 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16244 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16245 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
16246 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16247 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16248 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16249 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16250 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16251 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16252 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16253 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16254 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16255 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16256 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16257 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16258 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16259 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16260 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16261 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16262 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16263 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16264 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16265 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16266 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16267 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16268 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16269 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16270 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16271 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16272 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16273 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16274 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16275 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16276 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
16277 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
16278 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
16279 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
16280 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
16281 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
16282 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
16283 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
16284 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16285 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16286 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
16287 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
16288 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
16289 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
16290 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
16291 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
16292 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
16293 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
16294 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
16295 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16296 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16297 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
16298 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16299 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16300 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16301 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16302 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16303 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16304 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
16305 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
16306 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
16307 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16308 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
16309 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
16310 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
16311 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
16312 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
16313 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
16314 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
16315 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
16316 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
16317 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
16318 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
16319 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16320 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
16321 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
16322 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16323 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
16324 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
16325 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
16326 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
16327 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
16328 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
16329 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
16330 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
16332 LTCC='$LTCC'
16333 LTCFLAGS='$LTCFLAGS'
16334 compiler='$compiler_DEFAULT'
16336 # A function that is used when there is no print builtin or printf.
16337 func_fallback_echo ()
16339 eval 'cat <<_LTECHO_EOF
16341 _LTECHO_EOF'
16344 # Quote evaled strings.
16345 for var in SHELL \
16346 ECHO \
16347 SED \
16348 GREP \
16349 EGREP \
16350 FGREP \
16351 LD \
16352 NM \
16353 LN_S \
16354 lt_SP2NL \
16355 lt_NL2SP \
16356 reload_flag \
16357 OBJDUMP \
16358 deplibs_check_method \
16359 file_magic_cmd \
16360 AR \
16361 AR_FLAGS \
16362 STRIP \
16363 RANLIB \
16364 CC \
16365 CFLAGS \
16366 compiler \
16367 lt_cv_sys_global_symbol_pipe \
16368 lt_cv_sys_global_symbol_to_cdecl \
16369 lt_cv_sys_global_symbol_to_c_name_address \
16370 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16371 lt_prog_compiler_no_builtin_flag \
16372 lt_prog_compiler_wl \
16373 lt_prog_compiler_pic \
16374 lt_prog_compiler_static \
16375 lt_cv_prog_compiler_c_o \
16376 need_locks \
16377 DSYMUTIL \
16378 NMEDIT \
16379 LIPO \
16380 OTOOL \
16381 OTOOL64 \
16382 shrext_cmds \
16383 export_dynamic_flag_spec \
16384 whole_archive_flag_spec \
16385 compiler_needs_object \
16386 with_gnu_ld \
16387 allow_undefined_flag \
16388 no_undefined_flag \
16389 hardcode_libdir_flag_spec \
16390 hardcode_libdir_flag_spec_ld \
16391 hardcode_libdir_separator \
16392 fix_srcfile_path \
16393 exclude_expsyms \
16394 include_expsyms \
16395 file_list_spec \
16396 variables_saved_for_relink \
16397 libname_spec \
16398 library_names_spec \
16399 soname_spec \
16400 install_override_mode \
16401 finish_eval \
16402 old_striplib \
16403 striplib \
16404 compiler_lib_search_dirs \
16405 predep_objects \
16406 postdep_objects \
16407 predeps \
16408 postdeps \
16409 compiler_lib_search_path \
16410 LD_CXX \
16411 reload_flag_CXX \
16412 compiler_CXX \
16413 lt_prog_compiler_no_builtin_flag_CXX \
16414 lt_prog_compiler_wl_CXX \
16415 lt_prog_compiler_pic_CXX \
16416 lt_prog_compiler_static_CXX \
16417 lt_cv_prog_compiler_c_o_CXX \
16418 export_dynamic_flag_spec_CXX \
16419 whole_archive_flag_spec_CXX \
16420 compiler_needs_object_CXX \
16421 with_gnu_ld_CXX \
16422 allow_undefined_flag_CXX \
16423 no_undefined_flag_CXX \
16424 hardcode_libdir_flag_spec_CXX \
16425 hardcode_libdir_flag_spec_ld_CXX \
16426 hardcode_libdir_separator_CXX \
16427 fix_srcfile_path_CXX \
16428 exclude_expsyms_CXX \
16429 include_expsyms_CXX \
16430 file_list_spec_CXX \
16431 compiler_lib_search_dirs_CXX \
16432 predep_objects_CXX \
16433 postdep_objects_CXX \
16434 predeps_CXX \
16435 postdeps_CXX \
16436 compiler_lib_search_path_CXX; do
16437 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16438 *[\\\\\\\`\\"\\\$]*)
16439 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16442 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16444 esac
16445 done
16447 # Double-quote double-evaled strings.
16448 for var in reload_cmds \
16449 old_postinstall_cmds \
16450 old_postuninstall_cmds \
16451 old_archive_cmds \
16452 extract_expsyms_cmds \
16453 old_archive_from_new_cmds \
16454 old_archive_from_expsyms_cmds \
16455 archive_cmds \
16456 archive_expsym_cmds \
16457 module_cmds \
16458 module_expsym_cmds \
16459 export_symbols_cmds \
16460 prelink_cmds \
16461 postinstall_cmds \
16462 postuninstall_cmds \
16463 finish_cmds \
16464 sys_lib_search_path_spec \
16465 sys_lib_dlsearch_path_spec \
16466 reload_cmds_CXX \
16467 old_archive_cmds_CXX \
16468 old_archive_from_new_cmds_CXX \
16469 old_archive_from_expsyms_cmds_CXX \
16470 archive_cmds_CXX \
16471 archive_expsym_cmds_CXX \
16472 module_cmds_CXX \
16473 module_expsym_cmds_CXX \
16474 export_symbols_cmds_CXX \
16475 prelink_cmds_CXX; do
16476 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16477 *[\\\\\\\`\\"\\\$]*)
16478 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16481 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16483 esac
16484 done
16486 ac_aux_dir='$ac_aux_dir'
16487 xsi_shell='$xsi_shell'
16488 lt_shell_append='$lt_shell_append'
16490 # See if we are running on zsh, and set the options which allow our
16491 # commands through without removal of \ escapes INIT.
16492 if test -n "\${ZSH_VERSION+set}" ; then
16493 setopt NO_GLOB_SUBST
16497 PACKAGE='$PACKAGE'
16498 VERSION='$VERSION'
16499 TIMESTAMP='$TIMESTAMP'
16500 RM='$RM'
16501 ofile='$ofile'
16508 _ACEOF
16510 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16512 # Handling of arguments.
16513 for ac_config_target in $ac_config_targets
16515 case $ac_config_target in
16516 "cc1plugin-config.h") CONFIG_HEADERS="$CONFIG_HEADERS cc1plugin-config.h" ;;
16517 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16518 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16519 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16521 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16522 esac
16523 done
16526 # If the user did not use the arguments to specify the items to instantiate,
16527 # then the envvar interface is used. Set only those that are not.
16528 # We use the long form for the default assignment because of an extremely
16529 # bizarre bug on SunOS 4.1.3.
16530 if $ac_need_defaults; then
16531 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16532 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16533 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16536 # Have a temporary directory for convenience. Make it in the build tree
16537 # simply because there is no reason against having it here, and in addition,
16538 # creating and moving files from /tmp can sometimes cause problems.
16539 # Hook for its removal unless debugging.
16540 # Note that there is a small window in which the directory will not be cleaned:
16541 # after its creation but before its name has been assigned to `$tmp'.
16542 $debug ||
16544 tmp= ac_tmp=
16545 trap 'exit_status=$?
16546 : "${ac_tmp:=$tmp}"
16547 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16549 trap 'as_fn_exit 1' 1 2 13 15
16551 # Create a (secure) tmp directory for tmp files.
16554 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16555 test -d "$tmp"
16556 } ||
16558 tmp=./conf$$-$RANDOM
16559 (umask 077 && mkdir "$tmp")
16560 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16561 ac_tmp=$tmp
16563 # Set up the scripts for CONFIG_FILES section.
16564 # No need to generate them if there are no CONFIG_FILES.
16565 # This happens for instance with `./config.status config.h'.
16566 if test -n "$CONFIG_FILES"; then
16569 ac_cr=`echo X | tr X '\015'`
16570 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16571 # But we know of no other shell where ac_cr would be empty at this
16572 # point, so we can use a bashism as a fallback.
16573 if test "x$ac_cr" = x; then
16574 eval ac_cr=\$\'\\r\'
16576 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16577 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16578 ac_cs_awk_cr='\\r'
16579 else
16580 ac_cs_awk_cr=$ac_cr
16583 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16584 _ACEOF
16588 echo "cat >conf$$subs.awk <<_ACEOF" &&
16589 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16590 echo "_ACEOF"
16591 } >conf$$subs.sh ||
16592 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16593 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16594 ac_delim='%!_!# '
16595 for ac_last_try in false false false false false :; do
16596 . ./conf$$subs.sh ||
16597 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16599 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16600 if test $ac_delim_n = $ac_delim_num; then
16601 break
16602 elif $ac_last_try; then
16603 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16604 else
16605 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16607 done
16608 rm -f conf$$subs.sh
16610 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16611 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16612 _ACEOF
16613 sed -n '
16615 s/^/S["/; s/!.*/"]=/
16618 s/^[^!]*!//
16619 :repl
16620 t repl
16621 s/'"$ac_delim"'$//
16622 t delim
16625 s/\(.\{148\}\)..*/\1/
16626 t more1
16627 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16630 b repl
16631 :more1
16632 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16635 s/.\{148\}//
16636 t nl
16637 :delim
16639 s/\(.\{148\}\)..*/\1/
16640 t more2
16641 s/["\\]/\\&/g; s/^/"/; s/$/"/
16644 :more2
16645 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16648 s/.\{148\}//
16649 t delim
16650 ' <conf$$subs.awk | sed '
16651 /^[^""]/{
16653 s/\n//
16655 ' >>$CONFIG_STATUS || ac_write_fail=1
16656 rm -f conf$$subs.awk
16657 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16658 _ACAWK
16659 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16660 for (key in S) S_is_set[key] = 1
16661 FS = "\a"
16665 line = $ 0
16666 nfields = split(line, field, "@")
16667 substed = 0
16668 len = length(field[1])
16669 for (i = 2; i < nfields; i++) {
16670 key = field[i]
16671 keylen = length(key)
16672 if (S_is_set[key]) {
16673 value = S[key]
16674 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16675 len += length(value) + length(field[++i])
16676 substed = 1
16677 } else
16678 len += 1 + keylen
16681 print line
16684 _ACAWK
16685 _ACEOF
16686 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16687 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16688 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16689 else
16691 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16692 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16693 _ACEOF
16695 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16696 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16697 # trailing colons and then remove the whole line if VPATH becomes empty
16698 # (actually we leave an empty line to preserve line numbers).
16699 if test "x$srcdir" = x.; then
16700 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16702 s///
16703 s/^/:/
16704 s/[ ]*$/:/
16705 s/:\$(srcdir):/:/g
16706 s/:\${srcdir}:/:/g
16707 s/:@srcdir@:/:/g
16708 s/^:*//
16709 s/:*$//
16711 s/\(=[ ]*\).*/\1/
16713 s/\n//
16714 s/^[^=]*=[ ]*$//
16718 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16719 fi # test -n "$CONFIG_FILES"
16721 # Set up the scripts for CONFIG_HEADERS section.
16722 # No need to generate them if there are no CONFIG_HEADERS.
16723 # This happens for instance with `./config.status Makefile'.
16724 if test -n "$CONFIG_HEADERS"; then
16725 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16726 BEGIN {
16727 _ACEOF
16729 # Transform confdefs.h into an awk script `defines.awk', embedded as
16730 # here-document in config.status, that substitutes the proper values into
16731 # config.h.in to produce config.h.
16733 # Create a delimiter string that does not exist in confdefs.h, to ease
16734 # handling of long lines.
16735 ac_delim='%!_!# '
16736 for ac_last_try in false false :; do
16737 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16738 if test -z "$ac_tt"; then
16739 break
16740 elif $ac_last_try; then
16741 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16742 else
16743 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16745 done
16747 # For the awk script, D is an array of macro values keyed by name,
16748 # likewise P contains macro parameters if any. Preserve backslash
16749 # newline sequences.
16751 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16752 sed -n '
16753 s/.\{148\}/&'"$ac_delim"'/g
16754 t rset
16755 :rset
16756 s/^[ ]*#[ ]*define[ ][ ]*/ /
16757 t def
16759 :def
16760 s/\\$//
16761 t bsnl
16762 s/["\\]/\\&/g
16763 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16764 D["\1"]=" \3"/p
16765 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16767 :bsnl
16768 s/["\\]/\\&/g
16769 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16770 D["\1"]=" \3\\\\\\n"\\/p
16771 t cont
16772 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16773 t cont
16775 :cont
16777 s/.\{148\}/&'"$ac_delim"'/g
16778 t clear
16779 :clear
16780 s/\\$//
16781 t bsnlc
16782 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16784 :bsnlc
16785 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16786 b cont
16787 ' <confdefs.h | sed '
16788 s/'"$ac_delim"'/"\\\
16789 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16791 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16792 for (key in D) D_is_set[key] = 1
16793 FS = "\a"
16795 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16796 line = \$ 0
16797 split(line, arg, " ")
16798 if (arg[1] == "#") {
16799 defundef = arg[2]
16800 mac1 = arg[3]
16801 } else {
16802 defundef = substr(arg[1], 2)
16803 mac1 = arg[2]
16805 split(mac1, mac2, "(") #)
16806 macro = mac2[1]
16807 prefix = substr(line, 1, index(line, defundef) - 1)
16808 if (D_is_set[macro]) {
16809 # Preserve the white space surrounding the "#".
16810 print prefix "define", macro P[macro] D[macro]
16811 next
16812 } else {
16813 # Replace #undef with comments. This is necessary, for example,
16814 # in the case of _POSIX_SOURCE, which is predefined and required
16815 # on some systems where configure will not decide to define it.
16816 if (defundef == "undef") {
16817 print "/*", prefix defundef, macro, "*/"
16818 next
16822 { print }
16823 _ACAWK
16824 _ACEOF
16825 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16826 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16827 fi # test -n "$CONFIG_HEADERS"
16830 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16831 shift
16832 for ac_tag
16834 case $ac_tag in
16835 :[FHLC]) ac_mode=$ac_tag; continue;;
16836 esac
16837 case $ac_mode$ac_tag in
16838 :[FHL]*:*);;
16839 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16840 :[FH]-) ac_tag=-:-;;
16841 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16842 esac
16843 ac_save_IFS=$IFS
16844 IFS=:
16845 set x $ac_tag
16846 IFS=$ac_save_IFS
16847 shift
16848 ac_file=$1
16849 shift
16851 case $ac_mode in
16852 :L) ac_source=$1;;
16853 :[FH])
16854 ac_file_inputs=
16855 for ac_f
16857 case $ac_f in
16858 -) ac_f="$ac_tmp/stdin";;
16859 *) # Look for the file first in the build tree, then in the source tree
16860 # (if the path is not absolute). The absolute path cannot be DOS-style,
16861 # because $ac_f cannot contain `:'.
16862 test -f "$ac_f" ||
16863 case $ac_f in
16864 [\\/$]*) false;;
16865 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16866 esac ||
16867 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16868 esac
16869 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16870 as_fn_append ac_file_inputs " '$ac_f'"
16871 done
16873 # Let's still pretend it is `configure' which instantiates (i.e., don't
16874 # use $as_me), people would be surprised to read:
16875 # /* config.h. Generated by config.status. */
16876 configure_input='Generated from '`
16877 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16878 `' by configure.'
16879 if test x"$ac_file" != x-; then
16880 configure_input="$ac_file. $configure_input"
16881 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16882 $as_echo "$as_me: creating $ac_file" >&6;}
16884 # Neutralize special characters interpreted by sed in replacement strings.
16885 case $configure_input in #(
16886 *\&* | *\|* | *\\* )
16887 ac_sed_conf_input=`$as_echo "$configure_input" |
16888 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16889 *) ac_sed_conf_input=$configure_input;;
16890 esac
16892 case $ac_tag in
16893 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16894 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16895 esac
16897 esac
16899 ac_dir=`$as_dirname -- "$ac_file" ||
16900 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16901 X"$ac_file" : 'X\(//\)[^/]' \| \
16902 X"$ac_file" : 'X\(//\)$' \| \
16903 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16904 $as_echo X"$ac_file" |
16905 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16906 s//\1/
16909 /^X\(\/\/\)[^/].*/{
16910 s//\1/
16913 /^X\(\/\/\)$/{
16914 s//\1/
16917 /^X\(\/\).*/{
16918 s//\1/
16921 s/.*/./; q'`
16922 as_dir="$ac_dir"; as_fn_mkdir_p
16923 ac_builddir=.
16925 case "$ac_dir" in
16926 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16928 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16929 # A ".." for each directory in $ac_dir_suffix.
16930 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16931 case $ac_top_builddir_sub in
16932 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16933 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16934 esac ;;
16935 esac
16936 ac_abs_top_builddir=$ac_pwd
16937 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16938 # for backward compatibility:
16939 ac_top_builddir=$ac_top_build_prefix
16941 case $srcdir in
16942 .) # We are building in place.
16943 ac_srcdir=.
16944 ac_top_srcdir=$ac_top_builddir_sub
16945 ac_abs_top_srcdir=$ac_pwd ;;
16946 [\\/]* | ?:[\\/]* ) # Absolute name.
16947 ac_srcdir=$srcdir$ac_dir_suffix;
16948 ac_top_srcdir=$srcdir
16949 ac_abs_top_srcdir=$srcdir ;;
16950 *) # Relative name.
16951 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16952 ac_top_srcdir=$ac_top_build_prefix$srcdir
16953 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16954 esac
16955 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16958 case $ac_mode in
16961 # CONFIG_FILE
16964 case $INSTALL in
16965 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16966 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16967 esac
16968 ac_MKDIR_P=$MKDIR_P
16969 case $MKDIR_P in
16970 [\\/$]* | ?:[\\/]* ) ;;
16971 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16972 esac
16973 _ACEOF
16975 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16976 # If the template does not know about datarootdir, expand it.
16977 # FIXME: This hack should be removed a few years after 2.60.
16978 ac_datarootdir_hack=; ac_datarootdir_seen=
16979 ac_sed_dataroot='
16980 /datarootdir/ {
16984 /@datadir@/p
16985 /@docdir@/p
16986 /@infodir@/p
16987 /@localedir@/p
16988 /@mandir@/p'
16989 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16990 *datarootdir*) ac_datarootdir_seen=yes;;
16991 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16993 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16994 _ACEOF
16995 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16996 ac_datarootdir_hack='
16997 s&@datadir@&$datadir&g
16998 s&@docdir@&$docdir&g
16999 s&@infodir@&$infodir&g
17000 s&@localedir@&$localedir&g
17001 s&@mandir@&$mandir&g
17002 s&\\\${datarootdir}&$datarootdir&g' ;;
17003 esac
17004 _ACEOF
17006 # Neutralize VPATH when `$srcdir' = `.'.
17007 # Shell code in configure.ac might set extrasub.
17008 # FIXME: do we really want to maintain this feature?
17009 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17010 ac_sed_extra="$ac_vpsub
17011 $extrasub
17012 _ACEOF
17013 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17015 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17016 s|@configure_input@|$ac_sed_conf_input|;t t
17017 s&@top_builddir@&$ac_top_builddir_sub&;t t
17018 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17019 s&@srcdir@&$ac_srcdir&;t t
17020 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17021 s&@top_srcdir@&$ac_top_srcdir&;t t
17022 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17023 s&@builddir@&$ac_builddir&;t t
17024 s&@abs_builddir@&$ac_abs_builddir&;t t
17025 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17026 s&@INSTALL@&$ac_INSTALL&;t t
17027 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17028 $ac_datarootdir_hack
17030 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17031 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17033 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17034 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17035 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17036 "$ac_tmp/out"`; test -z "$ac_out"; } &&
17037 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17038 which seems to be undefined. Please make sure it is defined" >&5
17039 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17040 which seems to be undefined. Please make sure it is defined" >&2;}
17042 rm -f "$ac_tmp/stdin"
17043 case $ac_file in
17044 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17045 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17046 esac \
17047 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17051 # CONFIG_HEADER
17053 if test x"$ac_file" != x-; then
17055 $as_echo "/* $configure_input */" \
17056 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17057 } >"$ac_tmp/config.h" \
17058 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17059 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17060 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17061 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17062 else
17063 rm -f "$ac_file"
17064 mv "$ac_tmp/config.h" "$ac_file" \
17065 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17067 else
17068 $as_echo "/* $configure_input */" \
17069 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17070 || as_fn_error $? "could not create -" "$LINENO" 5
17072 # Compute "$ac_file"'s index in $config_headers.
17073 _am_arg="$ac_file"
17074 _am_stamp_count=1
17075 for _am_header in $config_headers :; do
17076 case $_am_header in
17077 $_am_arg | $_am_arg:* )
17078 break ;;
17080 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17081 esac
17082 done
17083 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17084 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17085 X"$_am_arg" : 'X\(//\)[^/]' \| \
17086 X"$_am_arg" : 'X\(//\)$' \| \
17087 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17088 $as_echo X"$_am_arg" |
17089 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17090 s//\1/
17093 /^X\(\/\/\)[^/].*/{
17094 s//\1/
17097 /^X\(\/\/\)$/{
17098 s//\1/
17101 /^X\(\/\).*/{
17102 s//\1/
17105 s/.*/./; q'`/stamp-h$_am_stamp_count
17108 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17109 $as_echo "$as_me: executing $ac_file commands" >&6;}
17111 esac
17114 case $ac_file$ac_mode in
17115 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17116 # Older Autoconf quotes --file arguments for eval, but not when files
17117 # are listed without --file. Let's play safe and only enable the eval
17118 # if we detect the quoting.
17119 case $CONFIG_FILES in
17120 *\'*) eval set x "$CONFIG_FILES" ;;
17121 *) set x $CONFIG_FILES ;;
17122 esac
17123 shift
17124 for mf
17126 # Strip MF so we end up with the name of the file.
17127 mf=`echo "$mf" | sed -e 's/:.*$//'`
17128 # Check whether this is an Automake generated Makefile or not.
17129 # We used to match only the files named 'Makefile.in', but
17130 # some people rename them; so instead we look at the file content.
17131 # Grep'ing the first line is not enough: some people post-process
17132 # each Makefile.in and add a new line on top of each file to say so.
17133 # Grep'ing the whole file is not good either: AIX grep has a line
17134 # limit of 2048, but all sed's we know have understand at least 4000.
17135 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17136 dirpart=`$as_dirname -- "$mf" ||
17137 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17138 X"$mf" : 'X\(//\)[^/]' \| \
17139 X"$mf" : 'X\(//\)$' \| \
17140 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17141 $as_echo X"$mf" |
17142 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17143 s//\1/
17146 /^X\(\/\/\)[^/].*/{
17147 s//\1/
17150 /^X\(\/\/\)$/{
17151 s//\1/
17154 /^X\(\/\).*/{
17155 s//\1/
17158 s/.*/./; q'`
17159 else
17160 continue
17162 # Extract the definition of DEPDIR, am__include, and am__quote
17163 # from the Makefile without running 'make'.
17164 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17165 test -z "$DEPDIR" && continue
17166 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17167 test -z "$am__include" && continue
17168 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17169 # Find all dependency output files, they are included files with
17170 # $(DEPDIR) in their names. We invoke sed twice because it is the
17171 # simplest approach to changing $(DEPDIR) to its actual value in the
17172 # expansion.
17173 for file in `sed -n "
17174 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17175 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
17176 # Make sure the directory exists.
17177 test -f "$dirpart/$file" && continue
17178 fdir=`$as_dirname -- "$file" ||
17179 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17180 X"$file" : 'X\(//\)[^/]' \| \
17181 X"$file" : 'X\(//\)$' \| \
17182 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17183 $as_echo X"$file" |
17184 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17185 s//\1/
17188 /^X\(\/\/\)[^/].*/{
17189 s//\1/
17192 /^X\(\/\/\)$/{
17193 s//\1/
17196 /^X\(\/\).*/{
17197 s//\1/
17200 s/.*/./; q'`
17201 as_dir=$dirpart/$fdir; as_fn_mkdir_p
17202 # echo "creating $dirpart/$file"
17203 echo '# dummy' > "$dirpart/$file"
17204 done
17205 done
17208 "libtool":C)
17210 # See if we are running on zsh, and set the options which allow our
17211 # commands through without removal of \ escapes.
17212 if test -n "${ZSH_VERSION+set}" ; then
17213 setopt NO_GLOB_SUBST
17216 cfgfile="${ofile}T"
17217 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17218 $RM "$cfgfile"
17220 cat <<_LT_EOF >> "$cfgfile"
17221 #! $SHELL
17223 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17224 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17225 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17226 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17228 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17229 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
17230 # Written by Gordon Matzigkeit, 1996
17232 # This file is part of GNU Libtool.
17234 # GNU Libtool is free software; you can redistribute it and/or
17235 # modify it under the terms of the GNU General Public License as
17236 # published by the Free Software Foundation; either version 2 of
17237 # the License, or (at your option) any later version.
17239 # As a special exception to the GNU General Public License,
17240 # if you distribute this file as part of a program or library that
17241 # is built using GNU Libtool, you may include this file under the
17242 # same distribution terms that you use for the rest of that program.
17244 # GNU Libtool is distributed in the hope that it will be useful,
17245 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17246 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17247 # GNU General Public License for more details.
17249 # You should have received a copy of the GNU General Public License
17250 # along with GNU Libtool; see the file COPYING. If not, a copy
17251 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17252 # obtained by writing to the Free Software Foundation, Inc.,
17253 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17256 # The names of the tagged configurations supported by this script.
17257 available_tags="CXX "
17259 # ### BEGIN LIBTOOL CONFIG
17261 # Which release of libtool.m4 was used?
17262 macro_version=$macro_version
17263 macro_revision=$macro_revision
17265 # Whether or not to build static libraries.
17266 build_old_libs=$enable_static
17268 # Whether or not to build shared libraries.
17269 build_libtool_libs=$enable_shared
17271 # What type of objects to build.
17272 pic_mode=$pic_mode
17274 # Whether or not to optimize for fast installation.
17275 fast_install=$enable_fast_install
17277 # Shell to use when invoking shell scripts.
17278 SHELL=$lt_SHELL
17280 # An echo program that protects backslashes.
17281 ECHO=$lt_ECHO
17283 # The host system.
17284 host_alias=$host_alias
17285 host=$host
17286 host_os=$host_os
17288 # The build system.
17289 build_alias=$build_alias
17290 build=$build
17291 build_os=$build_os
17293 # A sed program that does not truncate output.
17294 SED=$lt_SED
17296 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17297 Xsed="\$SED -e 1s/^X//"
17299 # A grep program that handles long lines.
17300 GREP=$lt_GREP
17302 # An ERE matcher.
17303 EGREP=$lt_EGREP
17305 # A literal string matcher.
17306 FGREP=$lt_FGREP
17308 # A BSD- or MS-compatible name lister.
17309 NM=$lt_NM
17311 # Whether we need soft or hard links.
17312 LN_S=$lt_LN_S
17314 # What is the maximum length of a command?
17315 max_cmd_len=$max_cmd_len
17317 # Object file suffix (normally "o").
17318 objext=$ac_objext
17320 # Executable file suffix (normally "").
17321 exeext=$exeext
17323 # whether the shell understands "unset".
17324 lt_unset=$lt_unset
17326 # turn spaces into newlines.
17327 SP2NL=$lt_lt_SP2NL
17329 # turn newlines into spaces.
17330 NL2SP=$lt_lt_NL2SP
17332 # An object symbol dumper.
17333 OBJDUMP=$lt_OBJDUMP
17335 # Method to check whether dependent libraries are shared objects.
17336 deplibs_check_method=$lt_deplibs_check_method
17338 # Command to use when deplibs_check_method == "file_magic".
17339 file_magic_cmd=$lt_file_magic_cmd
17341 # The archiver.
17342 AR=$lt_AR
17343 AR_FLAGS=$lt_AR_FLAGS
17345 # A symbol stripping program.
17346 STRIP=$lt_STRIP
17348 # Commands used to install an old-style archive.
17349 RANLIB=$lt_RANLIB
17350 old_postinstall_cmds=$lt_old_postinstall_cmds
17351 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17353 # Whether to use a lock for old archive extraction.
17354 lock_old_archive_extraction=$lock_old_archive_extraction
17356 # A C compiler.
17357 LTCC=$lt_CC
17359 # LTCC compiler flags.
17360 LTCFLAGS=$lt_CFLAGS
17362 # Take the output of nm and produce a listing of raw symbols and C names.
17363 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17365 # Transform the output of nm in a proper C declaration.
17366 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17368 # Transform the output of nm in a C name address pair.
17369 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17371 # Transform the output of nm in a C name address pair when lib prefix is needed.
17372 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17374 # The name of the directory that contains temporary libtool files.
17375 objdir=$objdir
17377 # Used to examine libraries when file_magic_cmd begins with "file".
17378 MAGIC_CMD=$MAGIC_CMD
17380 # Must we lock files when doing compilation?
17381 need_locks=$lt_need_locks
17383 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17384 DSYMUTIL=$lt_DSYMUTIL
17386 # Tool to change global to local symbols on Mac OS X.
17387 NMEDIT=$lt_NMEDIT
17389 # Tool to manipulate fat objects and archives on Mac OS X.
17390 LIPO=$lt_LIPO
17392 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17393 OTOOL=$lt_OTOOL
17395 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17396 OTOOL64=$lt_OTOOL64
17398 # Old archive suffix (normally "a").
17399 libext=$libext
17401 # Shared library suffix (normally ".so").
17402 shrext_cmds=$lt_shrext_cmds
17404 # The commands to extract the exported symbol list from a shared archive.
17405 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17407 # Variables whose values should be saved in libtool wrapper scripts and
17408 # restored at link time.
17409 variables_saved_for_relink=$lt_variables_saved_for_relink
17411 # Do we need the "lib" prefix for modules?
17412 need_lib_prefix=$need_lib_prefix
17414 # Do we need a version for libraries?
17415 need_version=$need_version
17417 # Library versioning type.
17418 version_type=$version_type
17420 # Shared library runtime path variable.
17421 runpath_var=$runpath_var
17423 # Shared library path variable.
17424 shlibpath_var=$shlibpath_var
17426 # Is shlibpath searched before the hard-coded library search path?
17427 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17429 # Format of library name prefix.
17430 libname_spec=$lt_libname_spec
17432 # List of archive names. First name is the real one, the rest are links.
17433 # The last name is the one that the linker finds with -lNAME
17434 library_names_spec=$lt_library_names_spec
17436 # The coded name of the library, if different from the real name.
17437 soname_spec=$lt_soname_spec
17439 # Permission mode override for installation of shared libraries.
17440 install_override_mode=$lt_install_override_mode
17442 # Command to use after installation of a shared archive.
17443 postinstall_cmds=$lt_postinstall_cmds
17445 # Command to use after uninstallation of a shared archive.
17446 postuninstall_cmds=$lt_postuninstall_cmds
17448 # Commands used to finish a libtool library installation in a directory.
17449 finish_cmds=$lt_finish_cmds
17451 # As "finish_cmds", except a single script fragment to be evaled but
17452 # not shown.
17453 finish_eval=$lt_finish_eval
17455 # Whether we should hardcode library paths into libraries.
17456 hardcode_into_libs=$hardcode_into_libs
17458 # Compile-time system search path for libraries.
17459 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17461 # Run-time system search path for libraries.
17462 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17464 # Whether dlopen is supported.
17465 dlopen_support=$enable_dlopen
17467 # Whether dlopen of programs is supported.
17468 dlopen_self=$enable_dlopen_self
17470 # Whether dlopen of statically linked programs is supported.
17471 dlopen_self_static=$enable_dlopen_self_static
17473 # Commands to strip libraries.
17474 old_striplib=$lt_old_striplib
17475 striplib=$lt_striplib
17478 # The linker used to build libraries.
17479 LD=$lt_LD
17481 # How to create reloadable object files.
17482 reload_flag=$lt_reload_flag
17483 reload_cmds=$lt_reload_cmds
17485 # Commands used to build an old-style archive.
17486 old_archive_cmds=$lt_old_archive_cmds
17488 # A language specific compiler.
17489 CC=$lt_compiler
17491 # Is the compiler the GNU compiler?
17492 with_gcc=$GCC
17494 # Compiler flag to turn off builtin functions.
17495 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17497 # How to pass a linker flag through the compiler.
17498 wl=$lt_lt_prog_compiler_wl
17500 # Additional compiler flags for building library objects.
17501 pic_flag=$lt_lt_prog_compiler_pic
17503 # Compiler flag to prevent dynamic linking.
17504 link_static_flag=$lt_lt_prog_compiler_static
17506 # Does compiler simultaneously support -c and -o options?
17507 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17509 # Whether or not to add -lc for building shared libraries.
17510 build_libtool_need_lc=$archive_cmds_need_lc
17512 # Whether or not to disallow shared libs when runtime libs are static.
17513 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17515 # Compiler flag to allow reflexive dlopens.
17516 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17518 # Compiler flag to generate shared objects directly from archives.
17519 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17521 # Whether the compiler copes with passing no objects directly.
17522 compiler_needs_object=$lt_compiler_needs_object
17524 # Create an old-style archive from a shared archive.
17525 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17527 # Create a temporary old-style archive to link instead of a shared archive.
17528 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17530 # Commands used to build a shared archive.
17531 archive_cmds=$lt_archive_cmds
17532 archive_expsym_cmds=$lt_archive_expsym_cmds
17534 # Commands used to build a loadable module if different from building
17535 # a shared archive.
17536 module_cmds=$lt_module_cmds
17537 module_expsym_cmds=$lt_module_expsym_cmds
17539 # Whether we are building with GNU ld or not.
17540 with_gnu_ld=$lt_with_gnu_ld
17542 # Flag that allows shared libraries with undefined symbols to be built.
17543 allow_undefined_flag=$lt_allow_undefined_flag
17545 # Flag that enforces no undefined symbols.
17546 no_undefined_flag=$lt_no_undefined_flag
17548 # Flag to hardcode \$libdir into a binary during linking.
17549 # This must work even if \$libdir does not exist
17550 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17552 # If ld is used when linking, flag to hardcode \$libdir into a binary
17553 # during linking. This must work even if \$libdir does not exist.
17554 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17556 # Whether we need a single "-rpath" flag with a separated argument.
17557 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17559 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17560 # DIR into the resulting binary.
17561 hardcode_direct=$hardcode_direct
17563 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17564 # DIR into the resulting binary and the resulting library dependency is
17565 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17566 # library is relocated.
17567 hardcode_direct_absolute=$hardcode_direct_absolute
17569 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17570 # into the resulting binary.
17571 hardcode_minus_L=$hardcode_minus_L
17573 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17574 # into the resulting binary.
17575 hardcode_shlibpath_var=$hardcode_shlibpath_var
17577 # Set to "yes" if building a shared library automatically hardcodes DIR
17578 # into the library and all subsequent libraries and executables linked
17579 # against it.
17580 hardcode_automatic=$hardcode_automatic
17582 # Set to yes if linker adds runtime paths of dependent libraries
17583 # to runtime path list.
17584 inherit_rpath=$inherit_rpath
17586 # Whether libtool must link a program against all its dependency libraries.
17587 link_all_deplibs=$link_all_deplibs
17589 # Fix the shell variable \$srcfile for the compiler.
17590 fix_srcfile_path=$lt_fix_srcfile_path
17592 # Set to "yes" if exported symbols are required.
17593 always_export_symbols=$always_export_symbols
17595 # The commands to list exported symbols.
17596 export_symbols_cmds=$lt_export_symbols_cmds
17598 # Symbols that should not be listed in the preloaded symbols.
17599 exclude_expsyms=$lt_exclude_expsyms
17601 # Symbols that must always be exported.
17602 include_expsyms=$lt_include_expsyms
17604 # Commands necessary for linking programs (against libraries) with templates.
17605 prelink_cmds=$lt_prelink_cmds
17607 # Specify filename containing input files.
17608 file_list_spec=$lt_file_list_spec
17610 # How to hardcode a shared library path into an executable.
17611 hardcode_action=$hardcode_action
17613 # The directories searched by this compiler when creating a shared library.
17614 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
17616 # Dependencies to place before and after the objects being linked to
17617 # create a shared library.
17618 predep_objects=$lt_predep_objects
17619 postdep_objects=$lt_postdep_objects
17620 predeps=$lt_predeps
17621 postdeps=$lt_postdeps
17623 # The library search path used internally by the compiler when linking
17624 # a shared library.
17625 compiler_lib_search_path=$lt_compiler_lib_search_path
17627 # ### END LIBTOOL CONFIG
17629 _LT_EOF
17631 case $host_os in
17632 aix3*)
17633 cat <<\_LT_EOF >> "$cfgfile"
17634 # AIX sometimes has problems with the GCC collect2 program. For some
17635 # reason, if we set the COLLECT_NAMES environment variable, the problems
17636 # vanish in a puff of smoke.
17637 if test "X${COLLECT_NAMES+set}" != Xset; then
17638 COLLECT_NAMES=
17639 export COLLECT_NAMES
17641 _LT_EOF
17643 esac
17646 ltmain="$ac_aux_dir/ltmain.sh"
17649 # We use sed instead of cat because bash on DJGPP gets confused if
17650 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17651 # text mode, it properly converts lines to CR/LF. This bash problem
17652 # is reportedly fixed, but why not run on old versions too?
17653 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17654 || (rm -f "$cfgfile"; exit 1)
17656 case $xsi_shell in
17657 yes)
17658 cat << \_LT_EOF >> "$cfgfile"
17660 # func_dirname file append nondir_replacement
17661 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17662 # otherwise set result to NONDIR_REPLACEMENT.
17663 func_dirname ()
17665 case ${1} in
17666 */*) func_dirname_result="${1%/*}${2}" ;;
17667 * ) func_dirname_result="${3}" ;;
17668 esac
17671 # func_basename file
17672 func_basename ()
17674 func_basename_result="${1##*/}"
17677 # func_dirname_and_basename file append nondir_replacement
17678 # perform func_basename and func_dirname in a single function
17679 # call:
17680 # dirname: Compute the dirname of FILE. If nonempty,
17681 # add APPEND to the result, otherwise set result
17682 # to NONDIR_REPLACEMENT.
17683 # value returned in "$func_dirname_result"
17684 # basename: Compute filename of FILE.
17685 # value retuned in "$func_basename_result"
17686 # Implementation must be kept synchronized with func_dirname
17687 # and func_basename. For efficiency, we do not delegate to
17688 # those functions but instead duplicate the functionality here.
17689 func_dirname_and_basename ()
17691 case ${1} in
17692 */*) func_dirname_result="${1%/*}${2}" ;;
17693 * ) func_dirname_result="${3}" ;;
17694 esac
17695 func_basename_result="${1##*/}"
17698 # func_stripname prefix suffix name
17699 # strip PREFIX and SUFFIX off of NAME.
17700 # PREFIX and SUFFIX must not contain globbing or regex special
17701 # characters, hashes, percent signs, but SUFFIX may contain a leading
17702 # dot (in which case that matches only a dot).
17703 func_stripname ()
17705 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17706 # positional parameters, so assign one to ordinary parameter first.
17707 func_stripname_result=${3}
17708 func_stripname_result=${func_stripname_result#"${1}"}
17709 func_stripname_result=${func_stripname_result%"${2}"}
17712 # func_opt_split
17713 func_opt_split ()
17715 func_opt_split_opt=${1%%=*}
17716 func_opt_split_arg=${1#*=}
17719 # func_lo2o object
17720 func_lo2o ()
17722 case ${1} in
17723 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17724 *) func_lo2o_result=${1} ;;
17725 esac
17728 # func_xform libobj-or-source
17729 func_xform ()
17731 func_xform_result=${1%.*}.lo
17734 # func_arith arithmetic-term...
17735 func_arith ()
17737 func_arith_result=$(( $* ))
17740 # func_len string
17741 # STRING may not start with a hyphen.
17742 func_len ()
17744 func_len_result=${#1}
17747 _LT_EOF
17749 *) # Bourne compatible functions.
17750 cat << \_LT_EOF >> "$cfgfile"
17752 # func_dirname file append nondir_replacement
17753 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17754 # otherwise set result to NONDIR_REPLACEMENT.
17755 func_dirname ()
17757 # Extract subdirectory from the argument.
17758 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
17759 if test "X$func_dirname_result" = "X${1}"; then
17760 func_dirname_result="${3}"
17761 else
17762 func_dirname_result="$func_dirname_result${2}"
17766 # func_basename file
17767 func_basename ()
17769 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
17773 # func_stripname prefix suffix name
17774 # strip PREFIX and SUFFIX off of NAME.
17775 # PREFIX and SUFFIX must not contain globbing or regex special
17776 # characters, hashes, percent signs, but SUFFIX may contain a leading
17777 # dot (in which case that matches only a dot).
17778 # func_strip_suffix prefix name
17779 func_stripname ()
17781 case ${2} in
17782 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
17783 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
17784 esac
17787 # sed scripts:
17788 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17789 my_sed_long_arg='1s/^-[^=]*=//'
17791 # func_opt_split
17792 func_opt_split ()
17794 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
17795 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
17798 # func_lo2o object
17799 func_lo2o ()
17801 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
17804 # func_xform libobj-or-source
17805 func_xform ()
17807 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
17810 # func_arith arithmetic-term...
17811 func_arith ()
17813 func_arith_result=`expr "$@"`
17816 # func_len string
17817 # STRING may not start with a hyphen.
17818 func_len ()
17820 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17823 _LT_EOF
17824 esac
17826 case $lt_shell_append in
17827 yes)
17828 cat << \_LT_EOF >> "$cfgfile"
17830 # func_append var value
17831 # Append VALUE to the end of shell variable VAR.
17832 func_append ()
17834 eval "$1+=\$2"
17836 _LT_EOF
17839 cat << \_LT_EOF >> "$cfgfile"
17841 # func_append var value
17842 # Append VALUE to the end of shell variable VAR.
17843 func_append ()
17845 eval "$1=\$$1\$2"
17848 _LT_EOF
17850 esac
17853 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17854 || (rm -f "$cfgfile"; exit 1)
17856 mv -f "$cfgfile" "$ofile" ||
17857 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17858 chmod +x "$ofile"
17861 cat <<_LT_EOF >> "$ofile"
17863 # ### BEGIN LIBTOOL TAG CONFIG: CXX
17865 # The linker used to build libraries.
17866 LD=$lt_LD_CXX
17868 # How to create reloadable object files.
17869 reload_flag=$lt_reload_flag_CXX
17870 reload_cmds=$lt_reload_cmds_CXX
17872 # Commands used to build an old-style archive.
17873 old_archive_cmds=$lt_old_archive_cmds_CXX
17875 # A language specific compiler.
17876 CC=$lt_compiler_CXX
17878 # Is the compiler the GNU compiler?
17879 with_gcc=$GCC_CXX
17881 # Compiler flag to turn off builtin functions.
17882 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
17884 # How to pass a linker flag through the compiler.
17885 wl=$lt_lt_prog_compiler_wl_CXX
17887 # Additional compiler flags for building library objects.
17888 pic_flag=$lt_lt_prog_compiler_pic_CXX
17890 # Compiler flag to prevent dynamic linking.
17891 link_static_flag=$lt_lt_prog_compiler_static_CXX
17893 # Does compiler simultaneously support -c and -o options?
17894 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
17896 # Whether or not to add -lc for building shared libraries.
17897 build_libtool_need_lc=$archive_cmds_need_lc_CXX
17899 # Whether or not to disallow shared libs when runtime libs are static.
17900 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
17902 # Compiler flag to allow reflexive dlopens.
17903 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
17905 # Compiler flag to generate shared objects directly from archives.
17906 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
17908 # Whether the compiler copes with passing no objects directly.
17909 compiler_needs_object=$lt_compiler_needs_object_CXX
17911 # Create an old-style archive from a shared archive.
17912 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
17914 # Create a temporary old-style archive to link instead of a shared archive.
17915 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
17917 # Commands used to build a shared archive.
17918 archive_cmds=$lt_archive_cmds_CXX
17919 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
17921 # Commands used to build a loadable module if different from building
17922 # a shared archive.
17923 module_cmds=$lt_module_cmds_CXX
17924 module_expsym_cmds=$lt_module_expsym_cmds_CXX
17926 # Whether we are building with GNU ld or not.
17927 with_gnu_ld=$lt_with_gnu_ld_CXX
17929 # Flag that allows shared libraries with undefined symbols to be built.
17930 allow_undefined_flag=$lt_allow_undefined_flag_CXX
17932 # Flag that enforces no undefined symbols.
17933 no_undefined_flag=$lt_no_undefined_flag_CXX
17935 # Flag to hardcode \$libdir into a binary during linking.
17936 # This must work even if \$libdir does not exist
17937 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
17939 # If ld is used when linking, flag to hardcode \$libdir into a binary
17940 # during linking. This must work even if \$libdir does not exist.
17941 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
17943 # Whether we need a single "-rpath" flag with a separated argument.
17944 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
17946 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17947 # DIR into the resulting binary.
17948 hardcode_direct=$hardcode_direct_CXX
17950 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17951 # DIR into the resulting binary and the resulting library dependency is
17952 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17953 # library is relocated.
17954 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
17956 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17957 # into the resulting binary.
17958 hardcode_minus_L=$hardcode_minus_L_CXX
17960 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17961 # into the resulting binary.
17962 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
17964 # Set to "yes" if building a shared library automatically hardcodes DIR
17965 # into the library and all subsequent libraries and executables linked
17966 # against it.
17967 hardcode_automatic=$hardcode_automatic_CXX
17969 # Set to yes if linker adds runtime paths of dependent libraries
17970 # to runtime path list.
17971 inherit_rpath=$inherit_rpath_CXX
17973 # Whether libtool must link a program against all its dependency libraries.
17974 link_all_deplibs=$link_all_deplibs_CXX
17976 # Fix the shell variable \$srcfile for the compiler.
17977 fix_srcfile_path=$lt_fix_srcfile_path_CXX
17979 # Set to "yes" if exported symbols are required.
17980 always_export_symbols=$always_export_symbols_CXX
17982 # The commands to list exported symbols.
17983 export_symbols_cmds=$lt_export_symbols_cmds_CXX
17985 # Symbols that should not be listed in the preloaded symbols.
17986 exclude_expsyms=$lt_exclude_expsyms_CXX
17988 # Symbols that must always be exported.
17989 include_expsyms=$lt_include_expsyms_CXX
17991 # Commands necessary for linking programs (against libraries) with templates.
17992 prelink_cmds=$lt_prelink_cmds_CXX
17994 # Specify filename containing input files.
17995 file_list_spec=$lt_file_list_spec_CXX
17997 # How to hardcode a shared library path into an executable.
17998 hardcode_action=$hardcode_action_CXX
18000 # The directories searched by this compiler when creating a shared library.
18001 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
18003 # Dependencies to place before and after the objects being linked to
18004 # create a shared library.
18005 predep_objects=$lt_predep_objects_CXX
18006 postdep_objects=$lt_postdep_objects_CXX
18007 predeps=$lt_predeps_CXX
18008 postdeps=$lt_postdeps_CXX
18010 # The library search path used internally by the compiler when linking
18011 # a shared library.
18012 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18014 # ### END LIBTOOL TAG CONFIG: CXX
18015 _LT_EOF
18019 esac
18020 done # for ac_tag
18023 as_fn_exit 0
18024 _ACEOF
18025 ac_clean_files=$ac_clean_files_save
18027 test $ac_write_fail = 0 ||
18028 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18031 # configure is writing to config.log, and then calls config.status.
18032 # config.status does its own redirection, appending to config.log.
18033 # Unfortunately, on DOS this fails, as config.log is still kept open
18034 # by configure, so config.status won't be able to write to it; its
18035 # output is simply discarded. So we exec the FD to /dev/null,
18036 # effectively closing config.log, so it can be properly (re)opened and
18037 # appended to by config.status. When coming back to configure, we
18038 # need to make the FD available again.
18039 if test "$no_create" != yes; then
18040 ac_cs_success=:
18041 ac_config_status_args=
18042 test "$silent" = yes &&
18043 ac_config_status_args="$ac_config_status_args --quiet"
18044 exec 5>/dev/null
18045 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18046 exec 5>>config.log
18047 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18048 # would make configure fail if this is the last instruction.
18049 $ac_cs_success || as_fn_exit 1
18051 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18052 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18053 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}