Suppress -fstack-protector warning on hppa.
[official-gcc.git] / lto-plugin / configure
blobd522bd24c9575910b31c717d8f3a98fa6a1083af
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for LTO plugin for ld 0.1.
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='LTO plugin for ld'
589 PACKAGE_TARNAME='lto-plugin'
590 PACKAGE_VERSION='0.1'
591 PACKAGE_STRING='LTO plugin for ld 0.1'
592 PACKAGE_BUGREPORT=''
593 PACKAGE_URL=''
595 # Factoring default headers for most tests.
596 ac_includes_default="\
597 #include <stdio.h>
598 #ifdef HAVE_SYS_TYPES_H
599 # include <sys/types.h>
600 #endif
601 #ifdef HAVE_SYS_STAT_H
602 # include <sys/stat.h>
603 #endif
604 #ifdef STDC_HEADERS
605 # include <stdlib.h>
606 # include <stddef.h>
607 #else
608 # ifdef HAVE_STDLIB_H
609 # include <stdlib.h>
610 # endif
611 #endif
612 #ifdef HAVE_STRING_H
613 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
614 # include <memory.h>
615 # endif
616 # include <string.h>
617 #endif
618 #ifdef HAVE_STRINGS_H
619 # include <strings.h>
620 #endif
621 #ifdef HAVE_INTTYPES_H
622 # include <inttypes.h>
623 #endif
624 #ifdef HAVE_STDINT_H
625 # include <stdint.h>
626 #endif
627 #ifdef HAVE_UNISTD_H
628 # include <unistd.h>
629 #endif"
631 ac_subst_vars='am__EXEEXT_FALSE
632 am__EXEEXT_TRUE
633 LTLIBOBJS
634 LIBOBJS
635 target_noncanonical
636 lt_host_flags
637 OTOOL64
638 OTOOL
639 LIPO
640 NMEDIT
641 DSYMUTIL
642 RANLIB
644 OBJDUMP
645 LN_S
647 ac_ct_DUMPBIN
648 DUMPBIN
650 FGREP
652 LIBTOOL
653 ac_lto_plugin_extra_ldflags
654 LTO_PLUGIN_USE_SYMVER_SUN_FALSE
655 LTO_PLUGIN_USE_SYMVER_SUN_TRUE
656 LTO_PLUGIN_USE_SYMVER_GNU_FALSE
657 LTO_PLUGIN_USE_SYMVER_GNU_TRUE
658 LTO_PLUGIN_USE_SYMVER_FALSE
659 LTO_PLUGIN_USE_SYMVER_TRUE
660 get_gcc_base_ver
661 real_target_noncanonical
662 accel_dir_suffix
663 gcc_build_dir
664 CET_HOST_FLAGS
665 ac_lto_plugin_ldflags
666 ac_lto_plugin_warn_cflags
667 EGREP
668 GREP
670 am__fastdepCC_FALSE
671 am__fastdepCC_TRUE
672 CCDEPMODE
673 am__nodep
674 AMDEPBACKSLASH
675 AMDEP_FALSE
676 AMDEP_TRUE
677 am__quote
678 am__include
679 DEPDIR
680 OBJEXT
681 EXEEXT
682 ac_ct_CC
683 CPPFLAGS
684 LDFLAGS
685 CFLAGS
687 with_libiberty
688 MAINT
689 MAINTAINER_MODE_FALSE
690 MAINTAINER_MODE_TRUE
691 AM_BACKSLASH
692 AM_DEFAULT_VERBOSITY
693 AM_DEFAULT_V
694 AM_V
695 am__untar
696 am__tar
697 AMTAR
698 am__leading_dot
699 SET_MAKE
701 mkdir_p
702 MKDIR_P
703 INSTALL_STRIP_PROGRAM
704 STRIP
705 install_sh
706 MAKEINFO
707 AUTOHEADER
708 AUTOMAKE
709 AUTOCONF
710 ACLOCAL
711 VERSION
712 PACKAGE
713 CYGPATH_W
714 am__isrc
715 INSTALL_DATA
716 INSTALL_SCRIPT
717 INSTALL_PROGRAM
718 target_subdir
719 host_subdir
720 build_subdir
721 build_libsubdir
722 target_os
723 target_vendor
724 target_cpu
725 target
726 host_os
727 host_vendor
728 host_cpu
729 host
730 build_os
731 build_vendor
732 build_cpu
733 build
734 target_alias
735 host_alias
736 build_alias
737 LIBS
738 ECHO_T
739 ECHO_N
740 ECHO_C
741 DEFS
742 mandir
743 localedir
744 libdir
745 psdir
746 pdfdir
747 dvidir
748 htmldir
749 infodir
750 docdir
751 oldincludedir
752 includedir
753 localstatedir
754 sharedstatedir
755 sysconfdir
756 datadir
757 datarootdir
758 libexecdir
759 sbindir
760 bindir
761 program_transform_name
762 prefix
763 exec_prefix
764 PACKAGE_URL
765 PACKAGE_BUGREPORT
766 PACKAGE_STRING
767 PACKAGE_VERSION
768 PACKAGE_TARNAME
769 PACKAGE_NAME
770 PATH_SEPARATOR
771 SHELL'
772 ac_subst_files=''
773 ac_user_opts='
774 enable_option_checking
775 with_build_libsubdir
776 enable_silent_rules
777 enable_maintainer_mode
778 with_libiberty
779 enable_dependency_tracking
780 enable_largefile
781 enable_cet
782 with_gcc_major_version_only
783 enable_shared
784 enable_static
785 with_pic
786 enable_fast_install
787 with_gnu_ld
788 enable_libtool_lock
790 ac_precious_vars='build_alias
791 host_alias
792 target_alias
794 CFLAGS
795 LDFLAGS
796 LIBS
797 CPPFLAGS
798 CPP'
801 # Initialize some variables set by options.
802 ac_init_help=
803 ac_init_version=false
804 ac_unrecognized_opts=
805 ac_unrecognized_sep=
806 # The variables have the same names as the options, with
807 # dashes changed to underlines.
808 cache_file=/dev/null
809 exec_prefix=NONE
810 no_create=
811 no_recursion=
812 prefix=NONE
813 program_prefix=NONE
814 program_suffix=NONE
815 program_transform_name=s,x,x,
816 silent=
817 site=
818 srcdir=
819 verbose=
820 x_includes=NONE
821 x_libraries=NONE
823 # Installation directory options.
824 # These are left unexpanded so users can "make install exec_prefix=/foo"
825 # and all the variables that are supposed to be based on exec_prefix
826 # by default will actually change.
827 # Use braces instead of parens because sh, perl, etc. also accept them.
828 # (The list follows the same order as the GNU Coding Standards.)
829 bindir='${exec_prefix}/bin'
830 sbindir='${exec_prefix}/sbin'
831 libexecdir='${exec_prefix}/libexec'
832 datarootdir='${prefix}/share'
833 datadir='${datarootdir}'
834 sysconfdir='${prefix}/etc'
835 sharedstatedir='${prefix}/com'
836 localstatedir='${prefix}/var'
837 includedir='${prefix}/include'
838 oldincludedir='/usr/include'
839 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
840 infodir='${datarootdir}/info'
841 htmldir='${docdir}'
842 dvidir='${docdir}'
843 pdfdir='${docdir}'
844 psdir='${docdir}'
845 libdir='${exec_prefix}/lib'
846 localedir='${datarootdir}/locale'
847 mandir='${datarootdir}/man'
849 ac_prev=
850 ac_dashdash=
851 for ac_option
853 # If the previous option needs an argument, assign it.
854 if test -n "$ac_prev"; then
855 eval $ac_prev=\$ac_option
856 ac_prev=
857 continue
860 case $ac_option in
861 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
862 *=) ac_optarg= ;;
863 *) ac_optarg=yes ;;
864 esac
866 # Accept the important Cygnus configure options, so we can diagnose typos.
868 case $ac_dashdash$ac_option in
870 ac_dashdash=yes ;;
872 -bindir | --bindir | --bindi | --bind | --bin | --bi)
873 ac_prev=bindir ;;
874 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
875 bindir=$ac_optarg ;;
877 -build | --build | --buil | --bui | --bu)
878 ac_prev=build_alias ;;
879 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
880 build_alias=$ac_optarg ;;
882 -cache-file | --cache-file | --cache-fil | --cache-fi \
883 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
884 ac_prev=cache_file ;;
885 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
886 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
887 cache_file=$ac_optarg ;;
889 --config-cache | -C)
890 cache_file=config.cache ;;
892 -datadir | --datadir | --datadi | --datad)
893 ac_prev=datadir ;;
894 -datadir=* | --datadir=* | --datadi=* | --datad=*)
895 datadir=$ac_optarg ;;
897 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
898 | --dataroo | --dataro | --datar)
899 ac_prev=datarootdir ;;
900 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
901 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
902 datarootdir=$ac_optarg ;;
904 -disable-* | --disable-*)
905 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
906 # Reject names that are not valid shell variable names.
907 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
908 as_fn_error $? "invalid feature name: $ac_useropt"
909 ac_useropt_orig=$ac_useropt
910 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
911 case $ac_user_opts in
913 "enable_$ac_useropt"
914 "*) ;;
915 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
916 ac_unrecognized_sep=', ';;
917 esac
918 eval enable_$ac_useropt=no ;;
920 -docdir | --docdir | --docdi | --doc | --do)
921 ac_prev=docdir ;;
922 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
923 docdir=$ac_optarg ;;
925 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
926 ac_prev=dvidir ;;
927 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
928 dvidir=$ac_optarg ;;
930 -enable-* | --enable-*)
931 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
932 # Reject names that are not valid shell variable names.
933 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
934 as_fn_error $? "invalid feature name: $ac_useropt"
935 ac_useropt_orig=$ac_useropt
936 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
937 case $ac_user_opts in
939 "enable_$ac_useropt"
940 "*) ;;
941 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
942 ac_unrecognized_sep=', ';;
943 esac
944 eval enable_$ac_useropt=\$ac_optarg ;;
946 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
947 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
948 | --exec | --exe | --ex)
949 ac_prev=exec_prefix ;;
950 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
951 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
952 | --exec=* | --exe=* | --ex=*)
953 exec_prefix=$ac_optarg ;;
955 -gas | --gas | --ga | --g)
956 # Obsolete; use --with-gas.
957 with_gas=yes ;;
959 -help | --help | --hel | --he | -h)
960 ac_init_help=long ;;
961 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
962 ac_init_help=recursive ;;
963 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
964 ac_init_help=short ;;
966 -host | --host | --hos | --ho)
967 ac_prev=host_alias ;;
968 -host=* | --host=* | --hos=* | --ho=*)
969 host_alias=$ac_optarg ;;
971 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
972 ac_prev=htmldir ;;
973 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
974 | --ht=*)
975 htmldir=$ac_optarg ;;
977 -includedir | --includedir | --includedi | --included | --include \
978 | --includ | --inclu | --incl | --inc)
979 ac_prev=includedir ;;
980 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
981 | --includ=* | --inclu=* | --incl=* | --inc=*)
982 includedir=$ac_optarg ;;
984 -infodir | --infodir | --infodi | --infod | --info | --inf)
985 ac_prev=infodir ;;
986 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
987 infodir=$ac_optarg ;;
989 -libdir | --libdir | --libdi | --libd)
990 ac_prev=libdir ;;
991 -libdir=* | --libdir=* | --libdi=* | --libd=*)
992 libdir=$ac_optarg ;;
994 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
995 | --libexe | --libex | --libe)
996 ac_prev=libexecdir ;;
997 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
998 | --libexe=* | --libex=* | --libe=*)
999 libexecdir=$ac_optarg ;;
1001 -localedir | --localedir | --localedi | --localed | --locale)
1002 ac_prev=localedir ;;
1003 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1004 localedir=$ac_optarg ;;
1006 -localstatedir | --localstatedir | --localstatedi | --localstated \
1007 | --localstate | --localstat | --localsta | --localst | --locals)
1008 ac_prev=localstatedir ;;
1009 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1010 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1011 localstatedir=$ac_optarg ;;
1013 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1014 ac_prev=mandir ;;
1015 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1016 mandir=$ac_optarg ;;
1018 -nfp | --nfp | --nf)
1019 # Obsolete; use --without-fp.
1020 with_fp=no ;;
1022 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1023 | --no-cr | --no-c | -n)
1024 no_create=yes ;;
1026 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1027 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1028 no_recursion=yes ;;
1030 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1031 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1032 | --oldin | --oldi | --old | --ol | --o)
1033 ac_prev=oldincludedir ;;
1034 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1035 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1036 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1037 oldincludedir=$ac_optarg ;;
1039 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1040 ac_prev=prefix ;;
1041 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1042 prefix=$ac_optarg ;;
1044 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1045 | --program-pre | --program-pr | --program-p)
1046 ac_prev=program_prefix ;;
1047 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1048 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1049 program_prefix=$ac_optarg ;;
1051 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1052 | --program-suf | --program-su | --program-s)
1053 ac_prev=program_suffix ;;
1054 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1055 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1056 program_suffix=$ac_optarg ;;
1058 -program-transform-name | --program-transform-name \
1059 | --program-transform-nam | --program-transform-na \
1060 | --program-transform-n | --program-transform- \
1061 | --program-transform | --program-transfor \
1062 | --program-transfo | --program-transf \
1063 | --program-trans | --program-tran \
1064 | --progr-tra | --program-tr | --program-t)
1065 ac_prev=program_transform_name ;;
1066 -program-transform-name=* | --program-transform-name=* \
1067 | --program-transform-nam=* | --program-transform-na=* \
1068 | --program-transform-n=* | --program-transform-=* \
1069 | --program-transform=* | --program-transfor=* \
1070 | --program-transfo=* | --program-transf=* \
1071 | --program-trans=* | --program-tran=* \
1072 | --progr-tra=* | --program-tr=* | --program-t=*)
1073 program_transform_name=$ac_optarg ;;
1075 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1076 ac_prev=pdfdir ;;
1077 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1078 pdfdir=$ac_optarg ;;
1080 -psdir | --psdir | --psdi | --psd | --ps)
1081 ac_prev=psdir ;;
1082 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1083 psdir=$ac_optarg ;;
1085 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1086 | -silent | --silent | --silen | --sile | --sil)
1087 silent=yes ;;
1089 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1090 ac_prev=sbindir ;;
1091 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1092 | --sbi=* | --sb=*)
1093 sbindir=$ac_optarg ;;
1095 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1096 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1097 | --sharedst | --shareds | --shared | --share | --shar \
1098 | --sha | --sh)
1099 ac_prev=sharedstatedir ;;
1100 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1101 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1102 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1103 | --sha=* | --sh=*)
1104 sharedstatedir=$ac_optarg ;;
1106 -site | --site | --sit)
1107 ac_prev=site ;;
1108 -site=* | --site=* | --sit=*)
1109 site=$ac_optarg ;;
1111 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1112 ac_prev=srcdir ;;
1113 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1114 srcdir=$ac_optarg ;;
1116 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1117 | --syscon | --sysco | --sysc | --sys | --sy)
1118 ac_prev=sysconfdir ;;
1119 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1120 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1121 sysconfdir=$ac_optarg ;;
1123 -target | --target | --targe | --targ | --tar | --ta | --t)
1124 ac_prev=target_alias ;;
1125 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1126 target_alias=$ac_optarg ;;
1128 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1129 verbose=yes ;;
1131 -version | --version | --versio | --versi | --vers | -V)
1132 ac_init_version=: ;;
1134 -with-* | --with-*)
1135 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1136 # Reject names that are not valid shell variable names.
1137 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1138 as_fn_error $? "invalid package name: $ac_useropt"
1139 ac_useropt_orig=$ac_useropt
1140 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1141 case $ac_user_opts in
1143 "with_$ac_useropt"
1144 "*) ;;
1145 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1146 ac_unrecognized_sep=', ';;
1147 esac
1148 eval with_$ac_useropt=\$ac_optarg ;;
1150 -without-* | --without-*)
1151 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1152 # Reject names that are not valid shell variable names.
1153 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1154 as_fn_error $? "invalid package name: $ac_useropt"
1155 ac_useropt_orig=$ac_useropt
1156 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1157 case $ac_user_opts in
1159 "with_$ac_useropt"
1160 "*) ;;
1161 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1162 ac_unrecognized_sep=', ';;
1163 esac
1164 eval with_$ac_useropt=no ;;
1166 --x)
1167 # Obsolete; use --with-x.
1168 with_x=yes ;;
1170 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1171 | --x-incl | --x-inc | --x-in | --x-i)
1172 ac_prev=x_includes ;;
1173 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1174 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1175 x_includes=$ac_optarg ;;
1177 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1178 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1179 ac_prev=x_libraries ;;
1180 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1181 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1182 x_libraries=$ac_optarg ;;
1184 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1185 Try \`$0 --help' for more information"
1188 *=*)
1189 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1190 # Reject names that are not valid shell variable names.
1191 case $ac_envvar in #(
1192 '' | [0-9]* | *[!_$as_cr_alnum]* )
1193 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1194 esac
1195 eval $ac_envvar=\$ac_optarg
1196 export $ac_envvar ;;
1199 # FIXME: should be removed in autoconf 3.0.
1200 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1201 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1202 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1203 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1206 esac
1207 done
1209 if test -n "$ac_prev"; then
1210 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1211 as_fn_error $? "missing argument to $ac_option"
1214 if test -n "$ac_unrecognized_opts"; then
1215 case $enable_option_checking in
1216 no) ;;
1217 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1218 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1219 esac
1222 # Check all directory arguments for consistency.
1223 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1224 datadir sysconfdir sharedstatedir localstatedir includedir \
1225 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1226 libdir localedir mandir
1228 eval ac_val=\$$ac_var
1229 # Remove trailing slashes.
1230 case $ac_val in
1231 */ )
1232 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1233 eval $ac_var=\$ac_val;;
1234 esac
1235 # Be sure to have absolute directory names.
1236 case $ac_val in
1237 [\\/$]* | ?:[\\/]* ) continue;;
1238 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1239 esac
1240 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1241 done
1243 # There might be people who depend on the old broken behavior: `$host'
1244 # used to hold the argument of --host etc.
1245 # FIXME: To remove some day.
1246 build=$build_alias
1247 host=$host_alias
1248 target=$target_alias
1250 # FIXME: To remove some day.
1251 if test "x$host_alias" != x; then
1252 if test "x$build_alias" = x; then
1253 cross_compiling=maybe
1254 elif test "x$build_alias" != "x$host_alias"; then
1255 cross_compiling=yes
1259 ac_tool_prefix=
1260 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1262 test "$silent" = yes && exec 6>/dev/null
1265 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1266 ac_ls_di=`ls -di .` &&
1267 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1268 as_fn_error $? "working directory cannot be determined"
1269 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1270 as_fn_error $? "pwd does not report name of working directory"
1273 # Find the source files, if location was not specified.
1274 if test -z "$srcdir"; then
1275 ac_srcdir_defaulted=yes
1276 # Try the directory containing this script, then the parent directory.
1277 ac_confdir=`$as_dirname -- "$as_myself" ||
1278 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1279 X"$as_myself" : 'X\(//\)[^/]' \| \
1280 X"$as_myself" : 'X\(//\)$' \| \
1281 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1282 $as_echo X"$as_myself" |
1283 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1284 s//\1/
1287 /^X\(\/\/\)[^/].*/{
1288 s//\1/
1291 /^X\(\/\/\)$/{
1292 s//\1/
1295 /^X\(\/\).*/{
1296 s//\1/
1299 s/.*/./; q'`
1300 srcdir=$ac_confdir
1301 if test ! -r "$srcdir/$ac_unique_file"; then
1302 srcdir=..
1304 else
1305 ac_srcdir_defaulted=no
1307 if test ! -r "$srcdir/$ac_unique_file"; then
1308 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1309 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1311 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1312 ac_abs_confdir=`(
1313 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1314 pwd)`
1315 # When building in place, set srcdir=.
1316 if test "$ac_abs_confdir" = "$ac_pwd"; then
1317 srcdir=.
1319 # Remove unnecessary trailing slashes from srcdir.
1320 # Double slashes in file names in object file debugging info
1321 # mess up M-x gdb in Emacs.
1322 case $srcdir in
1323 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1324 esac
1325 for ac_var in $ac_precious_vars; do
1326 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1327 eval ac_env_${ac_var}_value=\$${ac_var}
1328 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1329 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1330 done
1333 # Report the --help message.
1335 if test "$ac_init_help" = "long"; then
1336 # Omit some internal or obsolete options to make the list less imposing.
1337 # This message is too long to be a string in the A/UX 3.1 sh.
1338 cat <<_ACEOF
1339 \`configure' configures LTO plugin for ld 0.1 to adapt to many kinds of systems.
1341 Usage: $0 [OPTION]... [VAR=VALUE]...
1343 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1344 VAR=VALUE. See below for descriptions of some of the useful variables.
1346 Defaults for the options are specified in brackets.
1348 Configuration:
1349 -h, --help display this help and exit
1350 --help=short display options specific to this package
1351 --help=recursive display the short help of all the included packages
1352 -V, --version display version information and exit
1353 -q, --quiet, --silent do not print \`checking ...' messages
1354 --cache-file=FILE cache test results in FILE [disabled]
1355 -C, --config-cache alias for \`--cache-file=config.cache'
1356 -n, --no-create do not create output files
1357 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1359 Installation directories:
1360 --prefix=PREFIX install architecture-independent files in PREFIX
1361 [$ac_default_prefix]
1362 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1363 [PREFIX]
1365 By default, \`make install' will install all the files in
1366 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1367 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1368 for instance \`--prefix=\$HOME'.
1370 For better control, use the options below.
1372 Fine tuning of the installation directories:
1373 --bindir=DIR user executables [EPREFIX/bin]
1374 --sbindir=DIR system admin executables [EPREFIX/sbin]
1375 --libexecdir=DIR program executables [EPREFIX/libexec]
1376 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1377 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1378 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1379 --libdir=DIR object code libraries [EPREFIX/lib]
1380 --includedir=DIR C header files [PREFIX/include]
1381 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1382 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1383 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1384 --infodir=DIR info documentation [DATAROOTDIR/info]
1385 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1386 --mandir=DIR man documentation [DATAROOTDIR/man]
1387 --docdir=DIR documentation root [DATAROOTDIR/doc/lto-plugin]
1388 --htmldir=DIR html documentation [DOCDIR]
1389 --dvidir=DIR dvi documentation [DOCDIR]
1390 --pdfdir=DIR pdf documentation [DOCDIR]
1391 --psdir=DIR ps documentation [DOCDIR]
1392 _ACEOF
1394 cat <<\_ACEOF
1396 Program names:
1397 --program-prefix=PREFIX prepend PREFIX to installed program names
1398 --program-suffix=SUFFIX append SUFFIX to installed program names
1399 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1401 System types:
1402 --build=BUILD configure for building on BUILD [guessed]
1403 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1404 --target=TARGET configure for building compilers for TARGET [HOST]
1405 _ACEOF
1408 if test -n "$ac_init_help"; then
1409 case $ac_init_help in
1410 short | recursive ) echo "Configuration of LTO plugin for ld 0.1:";;
1411 esac
1412 cat <<\_ACEOF
1414 Optional Features:
1415 --disable-option-checking ignore unrecognized --enable/--with options
1416 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1417 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1418 --enable-silent-rules less verbose build output (undo: "make V=1")
1419 --disable-silent-rules verbose build output (undo: "make V=0")
1420 --enable-maintainer-mode
1421 enable make rules and dependencies not useful (and
1422 sometimes confusing) to the casual installer
1423 --enable-dependency-tracking
1424 do not reject slow dependency extractors
1425 --disable-dependency-tracking
1426 speeds up one-time build
1427 --disable-largefile omit support for large files
1428 --enable-cet enable Intel CET in host libraries [default=auto]
1429 --enable-shared[=PKGS] build shared libraries [default=yes]
1430 --enable-static[=PKGS] build static libraries [default=yes]
1431 --enable-fast-install[=PKGS]
1432 optimize for fast installation [default=yes]
1433 --disable-libtool-lock avoid locking (might break parallel builds)
1435 Optional Packages:
1436 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1437 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1438 --with-build-libsubdir=DIR Directory where to find libraries for build system
1439 --with-libiberty=PATH specify the directory where to find libiberty
1440 [../libiberty]
1441 --with-gcc-major-version-only
1442 use only GCC major number in filesystem paths
1443 --with-pic try to use only PIC/non-PIC objects [default=use
1444 both]
1445 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1447 Some influential environment variables:
1448 CC C compiler command
1449 CFLAGS C compiler flags
1450 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1451 nonstandard directory <lib dir>
1452 LIBS libraries to pass to the linker, e.g. -l<library>
1453 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1454 you have headers in a nonstandard directory <include dir>
1455 CPP C preprocessor
1457 Use these variables to override the choices made by `configure' or to help
1458 it to find libraries and programs with nonstandard names/locations.
1460 Report bugs to the package provider.
1461 _ACEOF
1462 ac_status=$?
1465 if test "$ac_init_help" = "recursive"; then
1466 # If there are subdirs, report their specific --help.
1467 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1468 test -d "$ac_dir" ||
1469 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1470 continue
1471 ac_builddir=.
1473 case "$ac_dir" in
1474 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1476 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1477 # A ".." for each directory in $ac_dir_suffix.
1478 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1479 case $ac_top_builddir_sub in
1480 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1481 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1482 esac ;;
1483 esac
1484 ac_abs_top_builddir=$ac_pwd
1485 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1486 # for backward compatibility:
1487 ac_top_builddir=$ac_top_build_prefix
1489 case $srcdir in
1490 .) # We are building in place.
1491 ac_srcdir=.
1492 ac_top_srcdir=$ac_top_builddir_sub
1493 ac_abs_top_srcdir=$ac_pwd ;;
1494 [\\/]* | ?:[\\/]* ) # Absolute name.
1495 ac_srcdir=$srcdir$ac_dir_suffix;
1496 ac_top_srcdir=$srcdir
1497 ac_abs_top_srcdir=$srcdir ;;
1498 *) # Relative name.
1499 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1500 ac_top_srcdir=$ac_top_build_prefix$srcdir
1501 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1502 esac
1503 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1505 cd "$ac_dir" || { ac_status=$?; continue; }
1506 # Check for guested configure.
1507 if test -f "$ac_srcdir/configure.gnu"; then
1508 echo &&
1509 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1510 elif test -f "$ac_srcdir/configure"; then
1511 echo &&
1512 $SHELL "$ac_srcdir/configure" --help=recursive
1513 else
1514 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1515 fi || ac_status=$?
1516 cd "$ac_pwd" || { ac_status=$?; break; }
1517 done
1520 test -n "$ac_init_help" && exit $ac_status
1521 if $ac_init_version; then
1522 cat <<\_ACEOF
1523 LTO plugin for ld configure 0.1
1524 generated by GNU Autoconf 2.69
1526 Copyright (C) 2012 Free Software Foundation, Inc.
1527 This configure script is free software; the Free Software Foundation
1528 gives unlimited permission to copy, distribute and modify it.
1529 _ACEOF
1530 exit
1533 ## ------------------------ ##
1534 ## Autoconf initialization. ##
1535 ## ------------------------ ##
1537 # ac_fn_c_try_compile LINENO
1538 # --------------------------
1539 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1540 ac_fn_c_try_compile ()
1542 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1543 rm -f conftest.$ac_objext
1544 if { { ac_try="$ac_compile"
1545 case "(($ac_try" in
1546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1547 *) ac_try_echo=$ac_try;;
1548 esac
1549 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1550 $as_echo "$ac_try_echo"; } >&5
1551 (eval "$ac_compile") 2>conftest.err
1552 ac_status=$?
1553 if test -s conftest.err; then
1554 grep -v '^ *+' conftest.err >conftest.er1
1555 cat conftest.er1 >&5
1556 mv -f conftest.er1 conftest.err
1558 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1559 test $ac_status = 0; } && {
1560 test -z "$ac_c_werror_flag" ||
1561 test ! -s conftest.err
1562 } && test -s conftest.$ac_objext; then :
1563 ac_retval=0
1564 else
1565 $as_echo "$as_me: failed program was:" >&5
1566 sed 's/^/| /' conftest.$ac_ext >&5
1568 ac_retval=1
1570 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1571 as_fn_set_status $ac_retval
1573 } # ac_fn_c_try_compile
1575 # ac_fn_c_try_cpp LINENO
1576 # ----------------------
1577 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1578 ac_fn_c_try_cpp ()
1580 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1581 if { { ac_try="$ac_cpp conftest.$ac_ext"
1582 case "(($ac_try" in
1583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1584 *) ac_try_echo=$ac_try;;
1585 esac
1586 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1587 $as_echo "$ac_try_echo"; } >&5
1588 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1589 ac_status=$?
1590 if test -s conftest.err; then
1591 grep -v '^ *+' conftest.err >conftest.er1
1592 cat conftest.er1 >&5
1593 mv -f conftest.er1 conftest.err
1595 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1596 test $ac_status = 0; } > conftest.i && {
1597 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1598 test ! -s conftest.err
1599 }; then :
1600 ac_retval=0
1601 else
1602 $as_echo "$as_me: failed program was:" >&5
1603 sed 's/^/| /' conftest.$ac_ext >&5
1605 ac_retval=1
1607 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1608 as_fn_set_status $ac_retval
1610 } # ac_fn_c_try_cpp
1612 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1613 # -------------------------------------------------------
1614 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1615 # the include files in INCLUDES and setting the cache variable VAR
1616 # accordingly.
1617 ac_fn_c_check_header_mongrel ()
1619 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1620 if eval \${$3+:} false; then :
1621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1622 $as_echo_n "checking for $2... " >&6; }
1623 if eval \${$3+:} false; then :
1624 $as_echo_n "(cached) " >&6
1626 eval ac_res=\$$3
1627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1628 $as_echo "$ac_res" >&6; }
1629 else
1630 # Is the header compilable?
1631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1632 $as_echo_n "checking $2 usability... " >&6; }
1633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1634 /* end confdefs.h. */
1636 #include <$2>
1637 _ACEOF
1638 if ac_fn_c_try_compile "$LINENO"; then :
1639 ac_header_compiler=yes
1640 else
1641 ac_header_compiler=no
1643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1645 $as_echo "$ac_header_compiler" >&6; }
1647 # Is the header present?
1648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1649 $as_echo_n "checking $2 presence... " >&6; }
1650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1651 /* end confdefs.h. */
1652 #include <$2>
1653 _ACEOF
1654 if ac_fn_c_try_cpp "$LINENO"; then :
1655 ac_header_preproc=yes
1656 else
1657 ac_header_preproc=no
1659 rm -f conftest.err conftest.i conftest.$ac_ext
1660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1661 $as_echo "$ac_header_preproc" >&6; }
1663 # So? What about this header?
1664 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1665 yes:no: )
1666 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1667 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1668 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1669 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1671 no:yes:* )
1672 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1673 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1674 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1675 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1676 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1677 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1678 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1679 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1680 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1681 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1683 esac
1684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1685 $as_echo_n "checking for $2... " >&6; }
1686 if eval \${$3+:} false; then :
1687 $as_echo_n "(cached) " >&6
1688 else
1689 eval "$3=\$ac_header_compiler"
1691 eval ac_res=\$$3
1692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1693 $as_echo "$ac_res" >&6; }
1695 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1697 } # ac_fn_c_check_header_mongrel
1699 # ac_fn_c_try_run LINENO
1700 # ----------------------
1701 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1702 # that executables *can* be run.
1703 ac_fn_c_try_run ()
1705 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1706 if { { ac_try="$ac_link"
1707 case "(($ac_try" in
1708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1709 *) ac_try_echo=$ac_try;;
1710 esac
1711 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1712 $as_echo "$ac_try_echo"; } >&5
1713 (eval "$ac_link") 2>&5
1714 ac_status=$?
1715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1716 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1717 { { case "(($ac_try" in
1718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1719 *) ac_try_echo=$ac_try;;
1720 esac
1721 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1722 $as_echo "$ac_try_echo"; } >&5
1723 (eval "$ac_try") 2>&5
1724 ac_status=$?
1725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1726 test $ac_status = 0; }; }; then :
1727 ac_retval=0
1728 else
1729 $as_echo "$as_me: program exited with status $ac_status" >&5
1730 $as_echo "$as_me: failed program was:" >&5
1731 sed 's/^/| /' conftest.$ac_ext >&5
1733 ac_retval=$ac_status
1735 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1736 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1737 as_fn_set_status $ac_retval
1739 } # ac_fn_c_try_run
1741 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1742 # -------------------------------------------------------
1743 # Tests whether HEADER exists and can be compiled using the include files in
1744 # INCLUDES, setting the cache variable VAR accordingly.
1745 ac_fn_c_check_header_compile ()
1747 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1749 $as_echo_n "checking for $2... " >&6; }
1750 if eval \${$3+:} false; then :
1751 $as_echo_n "(cached) " >&6
1752 else
1753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1754 /* end confdefs.h. */
1756 #include <$2>
1757 _ACEOF
1758 if ac_fn_c_try_compile "$LINENO"; then :
1759 eval "$3=yes"
1760 else
1761 eval "$3=no"
1763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1765 eval ac_res=\$$3
1766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1767 $as_echo "$ac_res" >&6; }
1768 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1770 } # ac_fn_c_check_header_compile
1772 # ac_fn_c_try_link LINENO
1773 # -----------------------
1774 # Try to link conftest.$ac_ext, and return whether this succeeded.
1775 ac_fn_c_try_link ()
1777 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1778 rm -f conftest.$ac_objext conftest$ac_exeext
1779 if { { ac_try="$ac_link"
1780 case "(($ac_try" in
1781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1782 *) ac_try_echo=$ac_try;;
1783 esac
1784 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1785 $as_echo "$ac_try_echo"; } >&5
1786 (eval "$ac_link") 2>conftest.err
1787 ac_status=$?
1788 if test -s conftest.err; then
1789 grep -v '^ *+' conftest.err >conftest.er1
1790 cat conftest.er1 >&5
1791 mv -f conftest.er1 conftest.err
1793 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1794 test $ac_status = 0; } && {
1795 test -z "$ac_c_werror_flag" ||
1796 test ! -s conftest.err
1797 } && test -s conftest$ac_exeext && {
1798 test "$cross_compiling" = yes ||
1799 test -x conftest$ac_exeext
1800 }; then :
1801 ac_retval=0
1802 else
1803 $as_echo "$as_me: failed program was:" >&5
1804 sed 's/^/| /' conftest.$ac_ext >&5
1806 ac_retval=1
1808 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1809 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1810 # interfere with the next link command; also delete a directory that is
1811 # left behind by Apple's compiler. We do this before executing the actions.
1812 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1813 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1814 as_fn_set_status $ac_retval
1816 } # ac_fn_c_try_link
1818 # ac_fn_c_check_func LINENO FUNC VAR
1819 # ----------------------------------
1820 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1821 ac_fn_c_check_func ()
1823 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1825 $as_echo_n "checking for $2... " >&6; }
1826 if eval \${$3+:} false; then :
1827 $as_echo_n "(cached) " >&6
1828 else
1829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1830 /* end confdefs.h. */
1831 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1832 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1833 #define $2 innocuous_$2
1835 /* System header to define __stub macros and hopefully few prototypes,
1836 which can conflict with char $2 (); below.
1837 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1838 <limits.h> exists even on freestanding compilers. */
1840 #ifdef __STDC__
1841 # include <limits.h>
1842 #else
1843 # include <assert.h>
1844 #endif
1846 #undef $2
1848 /* Override any GCC internal prototype to avoid an error.
1849 Use char because int might match the return type of a GCC
1850 builtin and then its argument prototype would still apply. */
1851 #ifdef __cplusplus
1852 extern "C"
1853 #endif
1854 char $2 ();
1855 /* The GNU C library defines this for functions which it implements
1856 to always fail with ENOSYS. Some functions are actually named
1857 something starting with __ and the normal name is an alias. */
1858 #if defined __stub_$2 || defined __stub___$2
1859 choke me
1860 #endif
1863 main ()
1865 return $2 ();
1867 return 0;
1869 _ACEOF
1870 if ac_fn_c_try_link "$LINENO"; then :
1871 eval "$3=yes"
1872 else
1873 eval "$3=no"
1875 rm -f core conftest.err conftest.$ac_objext \
1876 conftest$ac_exeext conftest.$ac_ext
1878 eval ac_res=\$$3
1879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1880 $as_echo "$ac_res" >&6; }
1881 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1883 } # ac_fn_c_check_func
1885 # ac_fn_c_find_intX_t LINENO BITS VAR
1886 # -----------------------------------
1887 # Finds a signed integer type with width BITS, setting cache variable VAR
1888 # accordingly.
1889 ac_fn_c_find_intX_t ()
1891 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
1893 $as_echo_n "checking for int$2_t... " >&6; }
1894 if eval \${$3+:} false; then :
1895 $as_echo_n "(cached) " >&6
1896 else
1897 eval "$3=no"
1898 # Order is important - never check a type that is potentially smaller
1899 # than half of the expected target width.
1900 for ac_type in int$2_t 'int' 'long int' \
1901 'long long int' 'short int' 'signed char'; do
1902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1903 /* end confdefs.h. */
1904 $ac_includes_default
1905 enum { N = $2 / 2 - 1 };
1907 main ()
1909 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
1910 test_array [0] = 0;
1911 return test_array [0];
1914 return 0;
1916 _ACEOF
1917 if ac_fn_c_try_compile "$LINENO"; then :
1918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1919 /* end confdefs.h. */
1920 $ac_includes_default
1921 enum { N = $2 / 2 - 1 };
1923 main ()
1925 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
1926 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
1927 test_array [0] = 0;
1928 return test_array [0];
1931 return 0;
1933 _ACEOF
1934 if ac_fn_c_try_compile "$LINENO"; then :
1936 else
1937 case $ac_type in #(
1938 int$2_t) :
1939 eval "$3=yes" ;; #(
1940 *) :
1941 eval "$3=\$ac_type" ;;
1942 esac
1944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1947 if eval test \"x\$"$3"\" = x"no"; then :
1949 else
1950 break
1952 done
1954 eval ac_res=\$$3
1955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1956 $as_echo "$ac_res" >&6; }
1957 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1959 } # ac_fn_c_find_intX_t
1961 # ac_fn_c_find_uintX_t LINENO BITS VAR
1962 # ------------------------------------
1963 # Finds an unsigned integer type with width BITS, setting cache variable VAR
1964 # accordingly.
1965 ac_fn_c_find_uintX_t ()
1967 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
1969 $as_echo_n "checking for uint$2_t... " >&6; }
1970 if eval \${$3+:} false; then :
1971 $as_echo_n "(cached) " >&6
1972 else
1973 eval "$3=no"
1974 # Order is important - never check a type that is potentially smaller
1975 # than half of the expected target width.
1976 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
1977 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
1978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1979 /* end confdefs.h. */
1980 $ac_includes_default
1982 main ()
1984 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
1985 test_array [0] = 0;
1986 return test_array [0];
1989 return 0;
1991 _ACEOF
1992 if ac_fn_c_try_compile "$LINENO"; then :
1993 case $ac_type in #(
1994 uint$2_t) :
1995 eval "$3=yes" ;; #(
1996 *) :
1997 eval "$3=\$ac_type" ;;
1998 esac
2000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2001 if eval test \"x\$"$3"\" = x"no"; then :
2003 else
2004 break
2006 done
2008 eval ac_res=\$$3
2009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2010 $as_echo "$ac_res" >&6; }
2011 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2013 } # ac_fn_c_find_uintX_t
2014 cat >config.log <<_ACEOF
2015 This file contains any messages produced by compilers while
2016 running configure, to aid debugging if configure makes a mistake.
2018 It was created by LTO plugin for ld $as_me 0.1, which was
2019 generated by GNU Autoconf 2.69. Invocation command line was
2021 $ $0 $@
2023 _ACEOF
2024 exec 5>>config.log
2026 cat <<_ASUNAME
2027 ## --------- ##
2028 ## Platform. ##
2029 ## --------- ##
2031 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2032 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2033 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2034 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2035 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2037 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2038 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2040 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2041 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2042 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2043 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2044 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2045 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2046 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2048 _ASUNAME
2050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2051 for as_dir in $PATH
2053 IFS=$as_save_IFS
2054 test -z "$as_dir" && as_dir=.
2055 $as_echo "PATH: $as_dir"
2056 done
2057 IFS=$as_save_IFS
2059 } >&5
2061 cat >&5 <<_ACEOF
2064 ## ----------- ##
2065 ## Core tests. ##
2066 ## ----------- ##
2068 _ACEOF
2071 # Keep a trace of the command line.
2072 # Strip out --no-create and --no-recursion so they do not pile up.
2073 # Strip out --silent because we don't want to record it for future runs.
2074 # Also quote any args containing shell meta-characters.
2075 # Make two passes to allow for proper duplicate-argument suppression.
2076 ac_configure_args=
2077 ac_configure_args0=
2078 ac_configure_args1=
2079 ac_must_keep_next=false
2080 for ac_pass in 1 2
2082 for ac_arg
2084 case $ac_arg in
2085 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2086 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2087 | -silent | --silent | --silen | --sile | --sil)
2088 continue ;;
2089 *\'*)
2090 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2091 esac
2092 case $ac_pass in
2093 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2095 as_fn_append ac_configure_args1 " '$ac_arg'"
2096 if test $ac_must_keep_next = true; then
2097 ac_must_keep_next=false # Got value, back to normal.
2098 else
2099 case $ac_arg in
2100 *=* | --config-cache | -C | -disable-* | --disable-* \
2101 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2102 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2103 | -with-* | --with-* | -without-* | --without-* | --x)
2104 case "$ac_configure_args0 " in
2105 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2106 esac
2108 -* ) ac_must_keep_next=true ;;
2109 esac
2111 as_fn_append ac_configure_args " '$ac_arg'"
2113 esac
2114 done
2115 done
2116 { ac_configure_args0=; unset ac_configure_args0;}
2117 { ac_configure_args1=; unset ac_configure_args1;}
2119 # When interrupted or exit'd, cleanup temporary files, and complete
2120 # config.log. We remove comments because anyway the quotes in there
2121 # would cause problems or look ugly.
2122 # WARNING: Use '\'' to represent an apostrophe within the trap.
2123 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2124 trap 'exit_status=$?
2125 # Save into config.log some information that might help in debugging.
2127 echo
2129 $as_echo "## ---------------- ##
2130 ## Cache variables. ##
2131 ## ---------------- ##"
2132 echo
2133 # The following way of writing the cache mishandles newlines in values,
2135 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2136 eval ac_val=\$$ac_var
2137 case $ac_val in #(
2138 *${as_nl}*)
2139 case $ac_var in #(
2140 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2141 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2142 esac
2143 case $ac_var in #(
2144 _ | IFS | as_nl) ;; #(
2145 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2146 *) { eval $ac_var=; unset $ac_var;} ;;
2147 esac ;;
2148 esac
2149 done
2150 (set) 2>&1 |
2151 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2152 *${as_nl}ac_space=\ *)
2153 sed -n \
2154 "s/'\''/'\''\\\\'\'''\''/g;
2155 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2156 ;; #(
2158 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2160 esac |
2161 sort
2163 echo
2165 $as_echo "## ----------------- ##
2166 ## Output variables. ##
2167 ## ----------------- ##"
2168 echo
2169 for ac_var in $ac_subst_vars
2171 eval ac_val=\$$ac_var
2172 case $ac_val in
2173 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2174 esac
2175 $as_echo "$ac_var='\''$ac_val'\''"
2176 done | sort
2177 echo
2179 if test -n "$ac_subst_files"; then
2180 $as_echo "## ------------------- ##
2181 ## File substitutions. ##
2182 ## ------------------- ##"
2183 echo
2184 for ac_var in $ac_subst_files
2186 eval ac_val=\$$ac_var
2187 case $ac_val in
2188 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2189 esac
2190 $as_echo "$ac_var='\''$ac_val'\''"
2191 done | sort
2192 echo
2195 if test -s confdefs.h; then
2196 $as_echo "## ----------- ##
2197 ## confdefs.h. ##
2198 ## ----------- ##"
2199 echo
2200 cat confdefs.h
2201 echo
2203 test "$ac_signal" != 0 &&
2204 $as_echo "$as_me: caught signal $ac_signal"
2205 $as_echo "$as_me: exit $exit_status"
2206 } >&5
2207 rm -f core *.core core.conftest.* &&
2208 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2209 exit $exit_status
2211 for ac_signal in 1 2 13 15; do
2212 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2213 done
2214 ac_signal=0
2216 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2217 rm -f -r conftest* confdefs.h
2219 $as_echo "/* confdefs.h */" > confdefs.h
2221 # Predefined preprocessor variables.
2223 cat >>confdefs.h <<_ACEOF
2224 #define PACKAGE_NAME "$PACKAGE_NAME"
2225 _ACEOF
2227 cat >>confdefs.h <<_ACEOF
2228 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2229 _ACEOF
2231 cat >>confdefs.h <<_ACEOF
2232 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2233 _ACEOF
2235 cat >>confdefs.h <<_ACEOF
2236 #define PACKAGE_STRING "$PACKAGE_STRING"
2237 _ACEOF
2239 cat >>confdefs.h <<_ACEOF
2240 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2241 _ACEOF
2243 cat >>confdefs.h <<_ACEOF
2244 #define PACKAGE_URL "$PACKAGE_URL"
2245 _ACEOF
2248 # Let the site file select an alternate cache file if it wants to.
2249 # Prefer an explicitly selected file to automatically selected ones.
2250 ac_site_file1=NONE
2251 ac_site_file2=NONE
2252 if test -n "$CONFIG_SITE"; then
2253 # We do not want a PATH search for config.site.
2254 case $CONFIG_SITE in #((
2255 -*) ac_site_file1=./$CONFIG_SITE;;
2256 */*) ac_site_file1=$CONFIG_SITE;;
2257 *) ac_site_file1=./$CONFIG_SITE;;
2258 esac
2259 elif test "x$prefix" != xNONE; then
2260 ac_site_file1=$prefix/share/config.site
2261 ac_site_file2=$prefix/etc/config.site
2262 else
2263 ac_site_file1=$ac_default_prefix/share/config.site
2264 ac_site_file2=$ac_default_prefix/etc/config.site
2266 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2268 test "x$ac_site_file" = xNONE && continue
2269 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2270 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2271 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2272 sed 's/^/| /' "$ac_site_file" >&5
2273 . "$ac_site_file" \
2274 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2275 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2276 as_fn_error $? "failed to load site script $ac_site_file
2277 See \`config.log' for more details" "$LINENO" 5; }
2279 done
2281 if test -r "$cache_file"; then
2282 # Some versions of bash will fail to source /dev/null (special files
2283 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2284 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2285 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2286 $as_echo "$as_me: loading cache $cache_file" >&6;}
2287 case $cache_file in
2288 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2289 *) . "./$cache_file";;
2290 esac
2292 else
2293 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2294 $as_echo "$as_me: creating cache $cache_file" >&6;}
2295 >$cache_file
2298 # Check that the precious variables saved in the cache have kept the same
2299 # value.
2300 ac_cache_corrupted=false
2301 for ac_var in $ac_precious_vars; do
2302 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2303 eval ac_new_set=\$ac_env_${ac_var}_set
2304 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2305 eval ac_new_val=\$ac_env_${ac_var}_value
2306 case $ac_old_set,$ac_new_set in
2307 set,)
2308 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2309 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2310 ac_cache_corrupted=: ;;
2311 ,set)
2312 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2313 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2314 ac_cache_corrupted=: ;;
2315 ,);;
2317 if test "x$ac_old_val" != "x$ac_new_val"; then
2318 # differences in whitespace do not lead to failure.
2319 ac_old_val_w=`echo x $ac_old_val`
2320 ac_new_val_w=`echo x $ac_new_val`
2321 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2322 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2323 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2324 ac_cache_corrupted=:
2325 else
2326 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2327 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2328 eval $ac_var=\$ac_old_val
2330 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2331 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2332 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2333 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2334 fi;;
2335 esac
2336 # Pass precious variables to config.status.
2337 if test "$ac_new_set" = set; then
2338 case $ac_new_val in
2339 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2340 *) ac_arg=$ac_var=$ac_new_val ;;
2341 esac
2342 case " $ac_configure_args " in
2343 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2344 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2345 esac
2347 done
2348 if $ac_cache_corrupted; then
2349 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2350 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2351 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2352 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2353 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2355 ## -------------------- ##
2356 ## Main body of script. ##
2357 ## -------------------- ##
2359 ac_ext=c
2360 ac_cpp='$CPP $CPPFLAGS'
2361 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2362 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2363 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2369 ac_aux_dir=
2370 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2371 if test -f "$ac_dir/install-sh"; then
2372 ac_aux_dir=$ac_dir
2373 ac_install_sh="$ac_aux_dir/install-sh -c"
2374 break
2375 elif test -f "$ac_dir/install.sh"; then
2376 ac_aux_dir=$ac_dir
2377 ac_install_sh="$ac_aux_dir/install.sh -c"
2378 break
2379 elif test -f "$ac_dir/shtool"; then
2380 ac_aux_dir=$ac_dir
2381 ac_install_sh="$ac_aux_dir/shtool install -c"
2382 break
2384 done
2385 if test -z "$ac_aux_dir"; then
2386 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2389 # These three variables are undocumented and unsupported,
2390 # and are intended to be withdrawn in a future Autoconf release.
2391 # They can cause serious problems if a builder's source tree is in a directory
2392 # whose full name contains unusual characters.
2393 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2394 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2395 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2398 # Make sure we can run config.sub.
2399 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2400 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2403 $as_echo_n "checking build system type... " >&6; }
2404 if ${ac_cv_build+:} false; then :
2405 $as_echo_n "(cached) " >&6
2406 else
2407 ac_build_alias=$build_alias
2408 test "x$ac_build_alias" = x &&
2409 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2410 test "x$ac_build_alias" = x &&
2411 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2412 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2413 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2417 $as_echo "$ac_cv_build" >&6; }
2418 case $ac_cv_build in
2419 *-*-*) ;;
2420 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2421 esac
2422 build=$ac_cv_build
2423 ac_save_IFS=$IFS; IFS='-'
2424 set x $ac_cv_build
2425 shift
2426 build_cpu=$1
2427 build_vendor=$2
2428 shift; shift
2429 # Remember, the first character of IFS is used to create $*,
2430 # except with old shells:
2431 build_os=$*
2432 IFS=$ac_save_IFS
2433 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2437 $as_echo_n "checking host system type... " >&6; }
2438 if ${ac_cv_host+:} false; then :
2439 $as_echo_n "(cached) " >&6
2440 else
2441 if test "x$host_alias" = x; then
2442 ac_cv_host=$ac_cv_build
2443 else
2444 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2445 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2450 $as_echo "$ac_cv_host" >&6; }
2451 case $ac_cv_host in
2452 *-*-*) ;;
2453 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2454 esac
2455 host=$ac_cv_host
2456 ac_save_IFS=$IFS; IFS='-'
2457 set x $ac_cv_host
2458 shift
2459 host_cpu=$1
2460 host_vendor=$2
2461 shift; shift
2462 # Remember, the first character of IFS is used to create $*,
2463 # except with old shells:
2464 host_os=$*
2465 IFS=$ac_save_IFS
2466 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2470 $as_echo_n "checking target system type... " >&6; }
2471 if ${ac_cv_target+:} false; then :
2472 $as_echo_n "(cached) " >&6
2473 else
2474 if test "x$target_alias" = x; then
2475 ac_cv_target=$ac_cv_host
2476 else
2477 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2478 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2483 $as_echo "$ac_cv_target" >&6; }
2484 case $ac_cv_target in
2485 *-*-*) ;;
2486 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2487 esac
2488 target=$ac_cv_target
2489 ac_save_IFS=$IFS; IFS='-'
2490 set x $ac_cv_target
2491 shift
2492 target_cpu=$1
2493 target_vendor=$2
2494 shift; shift
2495 # Remember, the first character of IFS is used to create $*,
2496 # except with old shells:
2497 target_os=$*
2498 IFS=$ac_save_IFS
2499 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2502 # The aliases save the names the user supplied, while $host etc.
2503 # will get canonicalized.
2504 test -n "$target_alias" &&
2505 test "$program_prefix$program_suffix$program_transform_name" = \
2506 NONENONEs,x,x, &&
2507 program_prefix=${target_alias}-
2509 case ${build_alias} in
2510 "") build_noncanonical=${build} ;;
2511 *) build_noncanonical=${build_alias} ;;
2512 esac
2514 case ${host_alias} in
2515 "") host_noncanonical=${build_noncanonical} ;;
2516 *) host_noncanonical=${host_alias} ;;
2517 esac
2519 case ${target_alias} in
2520 "") target_noncanonical=${host_noncanonical} ;;
2521 *) target_noncanonical=${target_alias} ;;
2522 esac
2525 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2526 # have matching libraries, they should use host libraries: Makefile.tpl
2527 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2528 # However, they still use the build modules, because the corresponding
2529 # host modules (e.g. bison) are only built for the host when bootstrap
2530 # finishes. So:
2531 # - build_subdir is where we find build modules, and never changes.
2532 # - build_libsubdir is where we find build libraries, and can be overridden.
2534 # Prefix 'build-' so this never conflicts with target_subdir.
2535 build_subdir="build-${build_noncanonical}"
2537 # Check whether --with-build-libsubdir was given.
2538 if test "${with_build_libsubdir+set}" = set; then :
2539 withval=$with_build_libsubdir; build_libsubdir="$withval"
2540 else
2541 build_libsubdir="$build_subdir"
2544 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2545 if ( test $srcdir = . && test -d gcc ) \
2546 || test -d $srcdir/../host-${host_noncanonical}; then
2547 host_subdir="host-${host_noncanonical}"
2548 else
2549 host_subdir=.
2551 # No prefix.
2552 target_subdir=${target_noncanonical}
2554 am__api_version='1.15'
2556 # Find a good install program. We prefer a C program (faster),
2557 # so one script is as good as another. But avoid the broken or
2558 # incompatible versions:
2559 # SysV /etc/install, /usr/sbin/install
2560 # SunOS /usr/etc/install
2561 # IRIX /sbin/install
2562 # AIX /bin/install
2563 # AmigaOS /C/install, which installs bootblocks on floppy discs
2564 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2565 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2566 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2567 # OS/2's system install, which has a completely different semantic
2568 # ./install, which can be erroneously created by make from ./install.sh.
2569 # Reject install programs that cannot install multiple files.
2570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2571 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2572 if test -z "$INSTALL"; then
2573 if ${ac_cv_path_install+:} false; then :
2574 $as_echo_n "(cached) " >&6
2575 else
2576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2577 for as_dir in $PATH
2579 IFS=$as_save_IFS
2580 test -z "$as_dir" && as_dir=.
2581 # Account for people who put trailing slashes in PATH elements.
2582 case $as_dir/ in #((
2583 ./ | .// | /[cC]/* | \
2584 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2585 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2586 /usr/ucb/* ) ;;
2588 # OSF1 and SCO ODT 3.0 have their own names for install.
2589 # Don't use installbsd from OSF since it installs stuff as root
2590 # by default.
2591 for ac_prog in ginstall scoinst install; do
2592 for ac_exec_ext in '' $ac_executable_extensions; do
2593 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2594 if test $ac_prog = install &&
2595 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2596 # AIX install. It has an incompatible calling convention.
2598 elif test $ac_prog = install &&
2599 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2600 # program-specific install script used by HP pwplus--don't use.
2602 else
2603 rm -rf conftest.one conftest.two conftest.dir
2604 echo one > conftest.one
2605 echo two > conftest.two
2606 mkdir conftest.dir
2607 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2608 test -s conftest.one && test -s conftest.two &&
2609 test -s conftest.dir/conftest.one &&
2610 test -s conftest.dir/conftest.two
2611 then
2612 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2613 break 3
2617 done
2618 done
2620 esac
2622 done
2623 IFS=$as_save_IFS
2625 rm -rf conftest.one conftest.two conftest.dir
2628 if test "${ac_cv_path_install+set}" = set; then
2629 INSTALL=$ac_cv_path_install
2630 else
2631 # As a last resort, use the slow shell script. Don't cache a
2632 # value for INSTALL within a source directory, because that will
2633 # break other packages using the cache if that directory is
2634 # removed, or if the value is a relative name.
2635 INSTALL=$ac_install_sh
2638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2639 $as_echo "$INSTALL" >&6; }
2641 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2642 # It thinks the first close brace ends the variable substitution.
2643 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2645 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2647 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2650 $as_echo_n "checking whether build environment is sane... " >&6; }
2651 # Reject unsafe characters in $srcdir or the absolute working directory
2652 # name. Accept space and tab only in the latter.
2653 am_lf='
2655 case `pwd` in
2656 *[\\\"\#\$\&\'\`$am_lf]*)
2657 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2658 esac
2659 case $srcdir in
2660 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2661 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2662 esac
2664 # Do 'set' in a subshell so we don't clobber the current shell's
2665 # arguments. Must try -L first in case configure is actually a
2666 # symlink; some systems play weird games with the mod time of symlinks
2667 # (eg FreeBSD returns the mod time of the symlink's containing
2668 # directory).
2669 if (
2670 am_has_slept=no
2671 for am_try in 1 2; do
2672 echo "timestamp, slept: $am_has_slept" > conftest.file
2673 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2674 if test "$*" = "X"; then
2675 # -L didn't work.
2676 set X `ls -t "$srcdir/configure" conftest.file`
2678 if test "$*" != "X $srcdir/configure conftest.file" \
2679 && test "$*" != "X conftest.file $srcdir/configure"; then
2681 # If neither matched, then we have a broken ls. This can happen
2682 # if, for instance, CONFIG_SHELL is bash and it inherits a
2683 # broken ls alias from the environment. This has actually
2684 # happened. Such a system could not be considered "sane".
2685 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2686 alias in your environment" "$LINENO" 5
2688 if test "$2" = conftest.file || test $am_try -eq 2; then
2689 break
2691 # Just in case.
2692 sleep 1
2693 am_has_slept=yes
2694 done
2695 test "$2" = conftest.file
2697 then
2698 # Ok.
2700 else
2701 as_fn_error $? "newly created file is older than distributed files!
2702 Check your system clock" "$LINENO" 5
2704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2705 $as_echo "yes" >&6; }
2706 # If we didn't sleep, we still need to ensure time stamps of config.status and
2707 # generated files are strictly newer.
2708 am_sleep_pid=
2709 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2710 ( sleep 1 ) &
2711 am_sleep_pid=$!
2714 rm -f conftest.file
2716 test "$program_prefix" != NONE &&
2717 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2718 # Use a double $ so make ignores it.
2719 test "$program_suffix" != NONE &&
2720 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2721 # Double any \ or $.
2722 # By default was `s,x,x', remove it if useless.
2723 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2724 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2726 # Expand $ac_aux_dir to an absolute path.
2727 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2729 if test x"${MISSING+set}" != xset; then
2730 case $am_aux_dir in
2731 *\ * | *\ *)
2732 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2734 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2735 esac
2737 # Use eval to expand $SHELL
2738 if eval "$MISSING --is-lightweight"; then
2739 am_missing_run="$MISSING "
2740 else
2741 am_missing_run=
2742 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2743 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2746 if test x"${install_sh+set}" != xset; then
2747 case $am_aux_dir in
2748 *\ * | *\ *)
2749 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2751 install_sh="\${SHELL} $am_aux_dir/install-sh"
2752 esac
2755 # Installed binaries are usually stripped using 'strip' when the user
2756 # run "make install-strip". However 'strip' might not be the right
2757 # tool to use in cross-compilation environments, therefore Automake
2758 # will honor the 'STRIP' environment variable to overrule this program.
2759 if test "$cross_compiling" != no; then
2760 if test -n "$ac_tool_prefix"; then
2761 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2762 set dummy ${ac_tool_prefix}strip; ac_word=$2
2763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2764 $as_echo_n "checking for $ac_word... " >&6; }
2765 if ${ac_cv_prog_STRIP+:} false; then :
2766 $as_echo_n "(cached) " >&6
2767 else
2768 if test -n "$STRIP"; then
2769 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2770 else
2771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2772 for as_dir in $PATH
2774 IFS=$as_save_IFS
2775 test -z "$as_dir" && as_dir=.
2776 for ac_exec_ext in '' $ac_executable_extensions; do
2777 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2778 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2780 break 2
2782 done
2783 done
2784 IFS=$as_save_IFS
2788 STRIP=$ac_cv_prog_STRIP
2789 if test -n "$STRIP"; then
2790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2791 $as_echo "$STRIP" >&6; }
2792 else
2793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2794 $as_echo "no" >&6; }
2799 if test -z "$ac_cv_prog_STRIP"; then
2800 ac_ct_STRIP=$STRIP
2801 # Extract the first word of "strip", so it can be a program name with args.
2802 set dummy strip; ac_word=$2
2803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2804 $as_echo_n "checking for $ac_word... " >&6; }
2805 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2806 $as_echo_n "(cached) " >&6
2807 else
2808 if test -n "$ac_ct_STRIP"; then
2809 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2810 else
2811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2812 for as_dir in $PATH
2814 IFS=$as_save_IFS
2815 test -z "$as_dir" && as_dir=.
2816 for ac_exec_ext in '' $ac_executable_extensions; do
2817 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2818 ac_cv_prog_ac_ct_STRIP="strip"
2819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2820 break 2
2822 done
2823 done
2824 IFS=$as_save_IFS
2828 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2829 if test -n "$ac_ct_STRIP"; then
2830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2831 $as_echo "$ac_ct_STRIP" >&6; }
2832 else
2833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2834 $as_echo "no" >&6; }
2837 if test "x$ac_ct_STRIP" = x; then
2838 STRIP=":"
2839 else
2840 case $cross_compiling:$ac_tool_warned in
2841 yes:)
2842 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2843 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2844 ac_tool_warned=yes ;;
2845 esac
2846 STRIP=$ac_ct_STRIP
2848 else
2849 STRIP="$ac_cv_prog_STRIP"
2853 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2856 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2857 if test -z "$MKDIR_P"; then
2858 if ${ac_cv_path_mkdir+:} false; then :
2859 $as_echo_n "(cached) " >&6
2860 else
2861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2862 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2864 IFS=$as_save_IFS
2865 test -z "$as_dir" && as_dir=.
2866 for ac_prog in mkdir gmkdir; do
2867 for ac_exec_ext in '' $ac_executable_extensions; do
2868 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2869 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2870 'mkdir (GNU coreutils) '* | \
2871 'mkdir (coreutils) '* | \
2872 'mkdir (fileutils) '4.1*)
2873 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2874 break 3;;
2875 esac
2876 done
2877 done
2878 done
2879 IFS=$as_save_IFS
2883 test -d ./--version && rmdir ./--version
2884 if test "${ac_cv_path_mkdir+set}" = set; then
2885 MKDIR_P="$ac_cv_path_mkdir -p"
2886 else
2887 # As a last resort, use the slow shell script. Don't cache a
2888 # value for MKDIR_P within a source directory, because that will
2889 # break other packages using the cache if that directory is
2890 # removed, or if the value is a relative name.
2891 MKDIR_P="$ac_install_sh -d"
2894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2895 $as_echo "$MKDIR_P" >&6; }
2897 for ac_prog in gawk mawk nawk awk
2899 # Extract the first word of "$ac_prog", so it can be a program name with args.
2900 set dummy $ac_prog; ac_word=$2
2901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2902 $as_echo_n "checking for $ac_word... " >&6; }
2903 if ${ac_cv_prog_AWK+:} false; then :
2904 $as_echo_n "(cached) " >&6
2905 else
2906 if test -n "$AWK"; then
2907 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2908 else
2909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2910 for as_dir in $PATH
2912 IFS=$as_save_IFS
2913 test -z "$as_dir" && as_dir=.
2914 for ac_exec_ext in '' $ac_executable_extensions; do
2915 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2916 ac_cv_prog_AWK="$ac_prog"
2917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2918 break 2
2920 done
2921 done
2922 IFS=$as_save_IFS
2926 AWK=$ac_cv_prog_AWK
2927 if test -n "$AWK"; then
2928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2929 $as_echo "$AWK" >&6; }
2930 else
2931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2932 $as_echo "no" >&6; }
2936 test -n "$AWK" && break
2937 done
2939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2940 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2941 set x ${MAKE-make}
2942 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2943 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2944 $as_echo_n "(cached) " >&6
2945 else
2946 cat >conftest.make <<\_ACEOF
2947 SHELL = /bin/sh
2948 all:
2949 @echo '@@@%%%=$(MAKE)=@@@%%%'
2950 _ACEOF
2951 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2952 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2953 *@@@%%%=?*=@@@%%%*)
2954 eval ac_cv_prog_make_${ac_make}_set=yes;;
2956 eval ac_cv_prog_make_${ac_make}_set=no;;
2957 esac
2958 rm -f conftest.make
2960 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2962 $as_echo "yes" >&6; }
2963 SET_MAKE=
2964 else
2965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2966 $as_echo "no" >&6; }
2967 SET_MAKE="MAKE=${MAKE-make}"
2970 rm -rf .tst 2>/dev/null
2971 mkdir .tst 2>/dev/null
2972 if test -d .tst; then
2973 am__leading_dot=.
2974 else
2975 am__leading_dot=_
2977 rmdir .tst 2>/dev/null
2979 # Check whether --enable-silent-rules was given.
2980 if test "${enable_silent_rules+set}" = set; then :
2981 enableval=$enable_silent_rules;
2984 case $enable_silent_rules in # (((
2985 yes) AM_DEFAULT_VERBOSITY=0;;
2986 no) AM_DEFAULT_VERBOSITY=1;;
2987 *) AM_DEFAULT_VERBOSITY=1;;
2988 esac
2989 am_make=${MAKE-make}
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2991 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2992 if ${am_cv_make_support_nested_variables+:} false; then :
2993 $as_echo_n "(cached) " >&6
2994 else
2995 if $as_echo 'TRUE=$(BAR$(V))
2996 BAR0=false
2997 BAR1=true
2999 am__doit:
3000 @$(TRUE)
3001 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3002 am_cv_make_support_nested_variables=yes
3003 else
3004 am_cv_make_support_nested_variables=no
3007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3008 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3009 if test $am_cv_make_support_nested_variables = yes; then
3010 AM_V='$(V)'
3011 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3012 else
3013 AM_V=$AM_DEFAULT_VERBOSITY
3014 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3016 AM_BACKSLASH='\'
3018 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3019 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3020 # is not polluted with repeated "-I."
3021 am__isrc=' -I$(srcdir)'
3022 # test to see if srcdir already configured
3023 if test -f $srcdir/config.status; then
3024 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3028 # test whether we have cygpath
3029 if test -z "$CYGPATH_W"; then
3030 if (cygpath --version) >/dev/null 2>/dev/null; then
3031 CYGPATH_W='cygpath -w'
3032 else
3033 CYGPATH_W=echo
3038 # Define the identity of the package.
3039 PACKAGE='lto-plugin'
3040 VERSION='0.1'
3043 cat >>confdefs.h <<_ACEOF
3044 #define PACKAGE "$PACKAGE"
3045 _ACEOF
3048 cat >>confdefs.h <<_ACEOF
3049 #define VERSION "$VERSION"
3050 _ACEOF
3052 # Some tools Automake needs.
3054 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3057 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3060 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3063 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3066 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3068 # For better backward compatibility. To be removed once Automake 1.9.x
3069 # dies out for good. For more background, see:
3070 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3071 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3072 mkdir_p='$(MKDIR_P)'
3074 # We need awk for the "check" target (and possibly the TAP driver). The
3075 # system "awk" is bad on some platforms.
3076 # Always define AMTAR for backward compatibility. Yes, it's still used
3077 # in the wild :-( We should find a proper way to deprecate it ...
3078 AMTAR='$${TAR-tar}'
3081 # We'll loop over all known methods to create a tar archive until one works.
3082 _am_tools='gnutar pax cpio none'
3084 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3091 # POSIX will say in a future version that running "rm -f" with no argument
3092 # is OK; and we want to be able to make that assumption in our Makefile
3093 # recipes. So use an aggressive probe to check that the usage we want is
3094 # actually supported "in the wild" to an acceptable degree.
3095 # See automake bug#10828.
3096 # To make any issue more visible, cause the running configure to be aborted
3097 # by default if the 'rm' program in use doesn't match our expectations; the
3098 # user can still override this though.
3099 if rm -f && rm -fr && rm -rf; then : OK; else
3100 cat >&2 <<'END'
3101 Oops!
3103 Your 'rm' program seems unable to run without file operands specified
3104 on the command line, even when the '-f' option is present. This is contrary
3105 to the behaviour of most rm programs out there, and not conforming with
3106 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3108 Please tell bug-automake@gnu.org about your system, including the value
3109 of your $PATH and any error possibly output before this message. This
3110 can help us improve future automake versions.
3113 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3114 echo 'Configuration will proceed anyway, since you have set the' >&2
3115 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3116 echo >&2
3117 else
3118 cat >&2 <<'END'
3119 Aborting the configuration process, to ensure you take notice of the issue.
3121 You can download and install GNU coreutils to get an 'rm' implementation
3122 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3124 If you want to complete the configuration process using your problematic
3125 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3126 to "yes", and re-run configure.
3129 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3135 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3136 # Check whether --enable-maintainer-mode was given.
3137 if test "${enable_maintainer_mode+set}" = set; then :
3138 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3139 else
3140 USE_MAINTAINER_MODE=no
3143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3144 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3145 if test $USE_MAINTAINER_MODE = yes; then
3146 MAINTAINER_MODE_TRUE=
3147 MAINTAINER_MODE_FALSE='#'
3148 else
3149 MAINTAINER_MODE_TRUE='#'
3150 MAINTAINER_MODE_FALSE=
3153 MAINT=$MAINTAINER_MODE_TRUE
3157 # Check whether --with-libiberty was given.
3158 if test "${with_libiberty+set}" = set; then :
3159 withval=$with_libiberty;
3160 else
3161 with_libiberty=../libiberty
3165 DEPDIR="${am__leading_dot}deps"
3167 ac_config_commands="$ac_config_commands depfiles"
3170 am_make=${MAKE-make}
3171 cat > confinc << 'END'
3172 am__doit:
3173 @echo this is the am__doit target
3174 .PHONY: am__doit
3176 # If we don't find an include directive, just comment out the code.
3177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3178 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3179 am__include="#"
3180 am__quote=
3181 _am_result=none
3182 # First try GNU make style include.
3183 echo "include confinc" > confmf
3184 # Ignore all kinds of additional output from 'make'.
3185 case `$am_make -s -f confmf 2> /dev/null` in #(
3186 *the\ am__doit\ target*)
3187 am__include=include
3188 am__quote=
3189 _am_result=GNU
3191 esac
3192 # Now try BSD make style include.
3193 if test "$am__include" = "#"; then
3194 echo '.include "confinc"' > confmf
3195 case `$am_make -s -f confmf 2> /dev/null` in #(
3196 *the\ am__doit\ target*)
3197 am__include=.include
3198 am__quote="\""
3199 _am_result=BSD
3201 esac
3205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3206 $as_echo "$_am_result" >&6; }
3207 rm -f confinc confmf
3209 # Check whether --enable-dependency-tracking was given.
3210 if test "${enable_dependency_tracking+set}" = set; then :
3211 enableval=$enable_dependency_tracking;
3214 if test "x$enable_dependency_tracking" != xno; then
3215 am_depcomp="$ac_aux_dir/depcomp"
3216 AMDEPBACKSLASH='\'
3217 am__nodep='_no'
3219 if test "x$enable_dependency_tracking" != xno; then
3220 AMDEP_TRUE=
3221 AMDEP_FALSE='#'
3222 else
3223 AMDEP_TRUE='#'
3224 AMDEP_FALSE=
3228 ac_ext=c
3229 ac_cpp='$CPP $CPPFLAGS'
3230 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3231 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3232 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3233 if test -n "$ac_tool_prefix"; then
3234 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3235 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3237 $as_echo_n "checking for $ac_word... " >&6; }
3238 if ${ac_cv_prog_CC+:} false; then :
3239 $as_echo_n "(cached) " >&6
3240 else
3241 if test -n "$CC"; then
3242 ac_cv_prog_CC="$CC" # Let the user override the test.
3243 else
3244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3245 for as_dir in $PATH
3247 IFS=$as_save_IFS
3248 test -z "$as_dir" && as_dir=.
3249 for ac_exec_ext in '' $ac_executable_extensions; do
3250 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3251 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3253 break 2
3255 done
3256 done
3257 IFS=$as_save_IFS
3261 CC=$ac_cv_prog_CC
3262 if test -n "$CC"; then
3263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3264 $as_echo "$CC" >&6; }
3265 else
3266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3267 $as_echo "no" >&6; }
3272 if test -z "$ac_cv_prog_CC"; then
3273 ac_ct_CC=$CC
3274 # Extract the first word of "gcc", so it can be a program name with args.
3275 set dummy gcc; ac_word=$2
3276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3277 $as_echo_n "checking for $ac_word... " >&6; }
3278 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3279 $as_echo_n "(cached) " >&6
3280 else
3281 if test -n "$ac_ct_CC"; then
3282 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3283 else
3284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3285 for as_dir in $PATH
3287 IFS=$as_save_IFS
3288 test -z "$as_dir" && as_dir=.
3289 for ac_exec_ext in '' $ac_executable_extensions; do
3290 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3291 ac_cv_prog_ac_ct_CC="gcc"
3292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3293 break 2
3295 done
3296 done
3297 IFS=$as_save_IFS
3301 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3302 if test -n "$ac_ct_CC"; then
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3304 $as_echo "$ac_ct_CC" >&6; }
3305 else
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3307 $as_echo "no" >&6; }
3310 if test "x$ac_ct_CC" = x; then
3311 CC=""
3312 else
3313 case $cross_compiling:$ac_tool_warned in
3314 yes:)
3315 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3316 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3317 ac_tool_warned=yes ;;
3318 esac
3319 CC=$ac_ct_CC
3321 else
3322 CC="$ac_cv_prog_CC"
3325 if test -z "$CC"; then
3326 if test -n "$ac_tool_prefix"; then
3327 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3328 set dummy ${ac_tool_prefix}cc; ac_word=$2
3329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3330 $as_echo_n "checking for $ac_word... " >&6; }
3331 if ${ac_cv_prog_CC+:} false; then :
3332 $as_echo_n "(cached) " >&6
3333 else
3334 if test -n "$CC"; then
3335 ac_cv_prog_CC="$CC" # Let the user override the test.
3336 else
3337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3338 for as_dir in $PATH
3340 IFS=$as_save_IFS
3341 test -z "$as_dir" && as_dir=.
3342 for ac_exec_ext in '' $ac_executable_extensions; do
3343 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3344 ac_cv_prog_CC="${ac_tool_prefix}cc"
3345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3346 break 2
3348 done
3349 done
3350 IFS=$as_save_IFS
3354 CC=$ac_cv_prog_CC
3355 if test -n "$CC"; then
3356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3357 $as_echo "$CC" >&6; }
3358 else
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3360 $as_echo "no" >&6; }
3366 if test -z "$CC"; then
3367 # Extract the first word of "cc", so it can be a program name with args.
3368 set dummy cc; ac_word=$2
3369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3370 $as_echo_n "checking for $ac_word... " >&6; }
3371 if ${ac_cv_prog_CC+:} false; then :
3372 $as_echo_n "(cached) " >&6
3373 else
3374 if test -n "$CC"; then
3375 ac_cv_prog_CC="$CC" # Let the user override the test.
3376 else
3377 ac_prog_rejected=no
3378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3379 for as_dir in $PATH
3381 IFS=$as_save_IFS
3382 test -z "$as_dir" && as_dir=.
3383 for ac_exec_ext in '' $ac_executable_extensions; do
3384 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3385 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3386 ac_prog_rejected=yes
3387 continue
3389 ac_cv_prog_CC="cc"
3390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3391 break 2
3393 done
3394 done
3395 IFS=$as_save_IFS
3397 if test $ac_prog_rejected = yes; then
3398 # We found a bogon in the path, so make sure we never use it.
3399 set dummy $ac_cv_prog_CC
3400 shift
3401 if test $# != 0; then
3402 # We chose a different compiler from the bogus one.
3403 # However, it has the same basename, so the bogon will be chosen
3404 # first if we set CC to just the basename; use the full file name.
3405 shift
3406 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3411 CC=$ac_cv_prog_CC
3412 if test -n "$CC"; then
3413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3414 $as_echo "$CC" >&6; }
3415 else
3416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3417 $as_echo "no" >&6; }
3422 if test -z "$CC"; then
3423 if test -n "$ac_tool_prefix"; then
3424 for ac_prog in cl.exe
3426 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3427 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3429 $as_echo_n "checking for $ac_word... " >&6; }
3430 if ${ac_cv_prog_CC+:} false; then :
3431 $as_echo_n "(cached) " >&6
3432 else
3433 if test -n "$CC"; then
3434 ac_cv_prog_CC="$CC" # Let the user override the test.
3435 else
3436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3437 for as_dir in $PATH
3439 IFS=$as_save_IFS
3440 test -z "$as_dir" && as_dir=.
3441 for ac_exec_ext in '' $ac_executable_extensions; do
3442 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3443 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3445 break 2
3447 done
3448 done
3449 IFS=$as_save_IFS
3453 CC=$ac_cv_prog_CC
3454 if test -n "$CC"; then
3455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3456 $as_echo "$CC" >&6; }
3457 else
3458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3459 $as_echo "no" >&6; }
3463 test -n "$CC" && break
3464 done
3466 if test -z "$CC"; then
3467 ac_ct_CC=$CC
3468 for ac_prog in cl.exe
3470 # Extract the first word of "$ac_prog", so it can be a program name with args.
3471 set dummy $ac_prog; ac_word=$2
3472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3473 $as_echo_n "checking for $ac_word... " >&6; }
3474 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3475 $as_echo_n "(cached) " >&6
3476 else
3477 if test -n "$ac_ct_CC"; then
3478 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3479 else
3480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3481 for as_dir in $PATH
3483 IFS=$as_save_IFS
3484 test -z "$as_dir" && as_dir=.
3485 for ac_exec_ext in '' $ac_executable_extensions; do
3486 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3487 ac_cv_prog_ac_ct_CC="$ac_prog"
3488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3489 break 2
3491 done
3492 done
3493 IFS=$as_save_IFS
3497 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3498 if test -n "$ac_ct_CC"; then
3499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3500 $as_echo "$ac_ct_CC" >&6; }
3501 else
3502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3503 $as_echo "no" >&6; }
3507 test -n "$ac_ct_CC" && break
3508 done
3510 if test "x$ac_ct_CC" = x; then
3511 CC=""
3512 else
3513 case $cross_compiling:$ac_tool_warned in
3514 yes:)
3515 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3516 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3517 ac_tool_warned=yes ;;
3518 esac
3519 CC=$ac_ct_CC
3526 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3527 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3528 as_fn_error $? "no acceptable C compiler found in \$PATH
3529 See \`config.log' for more details" "$LINENO" 5; }
3531 # Provide some information about the compiler.
3532 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3533 set X $ac_compile
3534 ac_compiler=$2
3535 for ac_option in --version -v -V -qversion; do
3536 { { ac_try="$ac_compiler $ac_option >&5"
3537 case "(($ac_try" in
3538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3539 *) ac_try_echo=$ac_try;;
3540 esac
3541 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3542 $as_echo "$ac_try_echo"; } >&5
3543 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3544 ac_status=$?
3545 if test -s conftest.err; then
3546 sed '10a\
3547 ... rest of stderr output deleted ...
3548 10q' conftest.err >conftest.er1
3549 cat conftest.er1 >&5
3551 rm -f conftest.er1 conftest.err
3552 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3553 test $ac_status = 0; }
3554 done
3556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3557 /* end confdefs.h. */
3560 main ()
3564 return 0;
3566 _ACEOF
3567 ac_clean_files_save=$ac_clean_files
3568 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3569 # Try to create an executable without -o first, disregard a.out.
3570 # It will help us diagnose broken compilers, and finding out an intuition
3571 # of exeext.
3572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3573 $as_echo_n "checking whether the C compiler works... " >&6; }
3574 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3576 # The possible output files:
3577 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3579 ac_rmfiles=
3580 for ac_file in $ac_files
3582 case $ac_file in
3583 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3584 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3585 esac
3586 done
3587 rm -f $ac_rmfiles
3589 if { { ac_try="$ac_link_default"
3590 case "(($ac_try" in
3591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3592 *) ac_try_echo=$ac_try;;
3593 esac
3594 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3595 $as_echo "$ac_try_echo"; } >&5
3596 (eval "$ac_link_default") 2>&5
3597 ac_status=$?
3598 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3599 test $ac_status = 0; }; then :
3600 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3601 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3602 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3603 # so that the user can short-circuit this test for compilers unknown to
3604 # Autoconf.
3605 for ac_file in $ac_files ''
3607 test -f "$ac_file" || continue
3608 case $ac_file in
3609 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3611 [ab].out )
3612 # We found the default executable, but exeext='' is most
3613 # certainly right.
3614 break;;
3615 *.* )
3616 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3617 then :; else
3618 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3620 # We set ac_cv_exeext here because the later test for it is not
3621 # safe: cross compilers may not add the suffix if given an `-o'
3622 # argument, so we may need to know it at that point already.
3623 # Even if this section looks crufty: it has the advantage of
3624 # actually working.
3625 break;;
3627 break;;
3628 esac
3629 done
3630 test "$ac_cv_exeext" = no && ac_cv_exeext=
3632 else
3633 ac_file=''
3635 if test -z "$ac_file"; then :
3636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3637 $as_echo "no" >&6; }
3638 $as_echo "$as_me: failed program was:" >&5
3639 sed 's/^/| /' conftest.$ac_ext >&5
3641 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3642 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3643 as_fn_error 77 "C compiler cannot create executables
3644 See \`config.log' for more details" "$LINENO" 5; }
3645 else
3646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3647 $as_echo "yes" >&6; }
3649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3650 $as_echo_n "checking for C compiler default output file name... " >&6; }
3651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3652 $as_echo "$ac_file" >&6; }
3653 ac_exeext=$ac_cv_exeext
3655 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3656 ac_clean_files=$ac_clean_files_save
3657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3658 $as_echo_n "checking for suffix of executables... " >&6; }
3659 if { { ac_try="$ac_link"
3660 case "(($ac_try" in
3661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3662 *) ac_try_echo=$ac_try;;
3663 esac
3664 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3665 $as_echo "$ac_try_echo"; } >&5
3666 (eval "$ac_link") 2>&5
3667 ac_status=$?
3668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3669 test $ac_status = 0; }; then :
3670 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3671 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3672 # work properly (i.e., refer to `conftest.exe'), while it won't with
3673 # `rm'.
3674 for ac_file in conftest.exe conftest conftest.*; do
3675 test -f "$ac_file" || continue
3676 case $ac_file in
3677 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3678 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3679 break;;
3680 * ) break;;
3681 esac
3682 done
3683 else
3684 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3685 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3686 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3687 See \`config.log' for more details" "$LINENO" 5; }
3689 rm -f conftest conftest$ac_cv_exeext
3690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3691 $as_echo "$ac_cv_exeext" >&6; }
3693 rm -f conftest.$ac_ext
3694 EXEEXT=$ac_cv_exeext
3695 ac_exeext=$EXEEXT
3696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3697 /* end confdefs.h. */
3698 #include <stdio.h>
3700 main ()
3702 FILE *f = fopen ("conftest.out", "w");
3703 return ferror (f) || fclose (f) != 0;
3706 return 0;
3708 _ACEOF
3709 ac_clean_files="$ac_clean_files conftest.out"
3710 # Check that the compiler produces executables we can run. If not, either
3711 # the compiler is broken, or we cross compile.
3712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3713 $as_echo_n "checking whether we are cross compiling... " >&6; }
3714 if test "$cross_compiling" != yes; then
3715 { { ac_try="$ac_link"
3716 case "(($ac_try" in
3717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3718 *) ac_try_echo=$ac_try;;
3719 esac
3720 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3721 $as_echo "$ac_try_echo"; } >&5
3722 (eval "$ac_link") 2>&5
3723 ac_status=$?
3724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3725 test $ac_status = 0; }
3726 if { ac_try='./conftest$ac_cv_exeext'
3727 { { case "(($ac_try" in
3728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3729 *) ac_try_echo=$ac_try;;
3730 esac
3731 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3732 $as_echo "$ac_try_echo"; } >&5
3733 (eval "$ac_try") 2>&5
3734 ac_status=$?
3735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3736 test $ac_status = 0; }; }; then
3737 cross_compiling=no
3738 else
3739 if test "$cross_compiling" = maybe; then
3740 cross_compiling=yes
3741 else
3742 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3743 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3744 as_fn_error $? "cannot run C compiled programs.
3745 If you meant to cross compile, use \`--host'.
3746 See \`config.log' for more details" "$LINENO" 5; }
3750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3751 $as_echo "$cross_compiling" >&6; }
3753 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3754 ac_clean_files=$ac_clean_files_save
3755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3756 $as_echo_n "checking for suffix of object files... " >&6; }
3757 if ${ac_cv_objext+:} false; then :
3758 $as_echo_n "(cached) " >&6
3759 else
3760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3761 /* end confdefs.h. */
3764 main ()
3768 return 0;
3770 _ACEOF
3771 rm -f conftest.o conftest.obj
3772 if { { ac_try="$ac_compile"
3773 case "(($ac_try" in
3774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3775 *) ac_try_echo=$ac_try;;
3776 esac
3777 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3778 $as_echo "$ac_try_echo"; } >&5
3779 (eval "$ac_compile") 2>&5
3780 ac_status=$?
3781 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3782 test $ac_status = 0; }; then :
3783 for ac_file in conftest.o conftest.obj conftest.*; do
3784 test -f "$ac_file" || continue;
3785 case $ac_file in
3786 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3787 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3788 break;;
3789 esac
3790 done
3791 else
3792 $as_echo "$as_me: failed program was:" >&5
3793 sed 's/^/| /' conftest.$ac_ext >&5
3795 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3796 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3797 as_fn_error $? "cannot compute suffix of object files: cannot compile
3798 See \`config.log' for more details" "$LINENO" 5; }
3800 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3803 $as_echo "$ac_cv_objext" >&6; }
3804 OBJEXT=$ac_cv_objext
3805 ac_objext=$OBJEXT
3806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3807 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3808 if ${ac_cv_c_compiler_gnu+:} false; then :
3809 $as_echo_n "(cached) " >&6
3810 else
3811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3812 /* end confdefs.h. */
3815 main ()
3817 #ifndef __GNUC__
3818 choke me
3819 #endif
3822 return 0;
3824 _ACEOF
3825 if ac_fn_c_try_compile "$LINENO"; then :
3826 ac_compiler_gnu=yes
3827 else
3828 ac_compiler_gnu=no
3830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3831 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3835 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3836 if test $ac_compiler_gnu = yes; then
3837 GCC=yes
3838 else
3839 GCC=
3841 ac_test_CFLAGS=${CFLAGS+set}
3842 ac_save_CFLAGS=$CFLAGS
3843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3844 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3845 if ${ac_cv_prog_cc_g+:} false; then :
3846 $as_echo_n "(cached) " >&6
3847 else
3848 ac_save_c_werror_flag=$ac_c_werror_flag
3849 ac_c_werror_flag=yes
3850 ac_cv_prog_cc_g=no
3851 CFLAGS="-g"
3852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3853 /* end confdefs.h. */
3856 main ()
3860 return 0;
3862 _ACEOF
3863 if ac_fn_c_try_compile "$LINENO"; then :
3864 ac_cv_prog_cc_g=yes
3865 else
3866 CFLAGS=""
3867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3868 /* end confdefs.h. */
3871 main ()
3875 return 0;
3877 _ACEOF
3878 if ac_fn_c_try_compile "$LINENO"; then :
3880 else
3881 ac_c_werror_flag=$ac_save_c_werror_flag
3882 CFLAGS="-g"
3883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3884 /* end confdefs.h. */
3887 main ()
3891 return 0;
3893 _ACEOF
3894 if ac_fn_c_try_compile "$LINENO"; then :
3895 ac_cv_prog_cc_g=yes
3897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3902 ac_c_werror_flag=$ac_save_c_werror_flag
3904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3905 $as_echo "$ac_cv_prog_cc_g" >&6; }
3906 if test "$ac_test_CFLAGS" = set; then
3907 CFLAGS=$ac_save_CFLAGS
3908 elif test $ac_cv_prog_cc_g = yes; then
3909 if test "$GCC" = yes; then
3910 CFLAGS="-g -O2"
3911 else
3912 CFLAGS="-g"
3914 else
3915 if test "$GCC" = yes; then
3916 CFLAGS="-O2"
3917 else
3918 CFLAGS=
3921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3922 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3923 if ${ac_cv_prog_cc_c89+:} false; then :
3924 $as_echo_n "(cached) " >&6
3925 else
3926 ac_cv_prog_cc_c89=no
3927 ac_save_CC=$CC
3928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3929 /* end confdefs.h. */
3930 #include <stdarg.h>
3931 #include <stdio.h>
3932 struct stat;
3933 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3934 struct buf { int x; };
3935 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3936 static char *e (p, i)
3937 char **p;
3938 int i;
3940 return p[i];
3942 static char *f (char * (*g) (char **, int), char **p, ...)
3944 char *s;
3945 va_list v;
3946 va_start (v,p);
3947 s = g (p, va_arg (v,int));
3948 va_end (v);
3949 return s;
3952 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3953 function prototypes and stuff, but not '\xHH' hex character constants.
3954 These don't provoke an error unfortunately, instead are silently treated
3955 as 'x'. The following induces an error, until -std is added to get
3956 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3957 array size at least. It's necessary to write '\x00'==0 to get something
3958 that's true only with -std. */
3959 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3961 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3962 inside strings and character constants. */
3963 #define FOO(x) 'x'
3964 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3966 int test (int i, double x);
3967 struct s1 {int (*f) (int a);};
3968 struct s2 {int (*f) (double a);};
3969 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3970 int argc;
3971 char **argv;
3973 main ()
3975 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3977 return 0;
3979 _ACEOF
3980 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3981 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3983 CC="$ac_save_CC $ac_arg"
3984 if ac_fn_c_try_compile "$LINENO"; then :
3985 ac_cv_prog_cc_c89=$ac_arg
3987 rm -f core conftest.err conftest.$ac_objext
3988 test "x$ac_cv_prog_cc_c89" != "xno" && break
3989 done
3990 rm -f conftest.$ac_ext
3991 CC=$ac_save_CC
3994 # AC_CACHE_VAL
3995 case "x$ac_cv_prog_cc_c89" in
3997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3998 $as_echo "none needed" >&6; } ;;
3999 xno)
4000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4001 $as_echo "unsupported" >&6; } ;;
4003 CC="$CC $ac_cv_prog_cc_c89"
4004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4005 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4006 esac
4007 if test "x$ac_cv_prog_cc_c89" != xno; then :
4011 ac_ext=c
4012 ac_cpp='$CPP $CPPFLAGS'
4013 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4014 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4015 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4017 ac_ext=c
4018 ac_cpp='$CPP $CPPFLAGS'
4019 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4020 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4021 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4023 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4024 if ${am_cv_prog_cc_c_o+:} false; then :
4025 $as_echo_n "(cached) " >&6
4026 else
4027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4028 /* end confdefs.h. */
4031 main ()
4035 return 0;
4037 _ACEOF
4038 # Make sure it works both with $CC and with simple cc.
4039 # Following AC_PROG_CC_C_O, we do the test twice because some
4040 # compilers refuse to overwrite an existing .o file with -o,
4041 # though they will create one.
4042 am_cv_prog_cc_c_o=yes
4043 for am_i in 1 2; do
4044 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4045 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4046 ac_status=$?
4047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4048 (exit $ac_status); } \
4049 && test -f conftest2.$ac_objext; then
4050 : OK
4051 else
4052 am_cv_prog_cc_c_o=no
4053 break
4055 done
4056 rm -f core conftest*
4057 unset am_i
4059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4060 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4061 if test "$am_cv_prog_cc_c_o" != yes; then
4062 # Losing compiler, so override with the script.
4063 # FIXME: It is wrong to rewrite CC.
4064 # But if we don't then we get into trouble of one sort or another.
4065 # A longer-term fix would be to have automake use am__CC in this case,
4066 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4067 CC="$am_aux_dir/compile $CC"
4069 ac_ext=c
4070 ac_cpp='$CPP $CPPFLAGS'
4071 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4072 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4073 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4076 depcc="$CC" am_compiler_list=
4078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4079 $as_echo_n "checking dependency style of $depcc... " >&6; }
4080 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4081 $as_echo_n "(cached) " >&6
4082 else
4083 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4084 # We make a subdir and do the tests there. Otherwise we can end up
4085 # making bogus files that we don't know about and never remove. For
4086 # instance it was reported that on HP-UX the gcc test will end up
4087 # making a dummy file named 'D' -- because '-MD' means "put the output
4088 # in D".
4089 rm -rf conftest.dir
4090 mkdir conftest.dir
4091 # Copy depcomp to subdir because otherwise we won't find it if we're
4092 # using a relative directory.
4093 cp "$am_depcomp" conftest.dir
4094 cd conftest.dir
4095 # We will build objects and dependencies in a subdirectory because
4096 # it helps to detect inapplicable dependency modes. For instance
4097 # both Tru64's cc and ICC support -MD to output dependencies as a
4098 # side effect of compilation, but ICC will put the dependencies in
4099 # the current directory while Tru64 will put them in the object
4100 # directory.
4101 mkdir sub
4103 am_cv_CC_dependencies_compiler_type=none
4104 if test "$am_compiler_list" = ""; then
4105 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4107 am__universal=false
4108 case " $depcc " in #(
4109 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4110 esac
4112 for depmode in $am_compiler_list; do
4113 # Setup a source with many dependencies, because some compilers
4114 # like to wrap large dependency lists on column 80 (with \), and
4115 # we should not choose a depcomp mode which is confused by this.
4117 # We need to recreate these files for each test, as the compiler may
4118 # overwrite some of them when testing with obscure command lines.
4119 # This happens at least with the AIX C compiler.
4120 : > sub/conftest.c
4121 for i in 1 2 3 4 5 6; do
4122 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4123 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4124 # Solaris 10 /bin/sh.
4125 echo '/* dummy */' > sub/conftst$i.h
4126 done
4127 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4129 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4130 # mode. It turns out that the SunPro C++ compiler does not properly
4131 # handle '-M -o', and we need to detect this. Also, some Intel
4132 # versions had trouble with output in subdirs.
4133 am__obj=sub/conftest.${OBJEXT-o}
4134 am__minus_obj="-o $am__obj"
4135 case $depmode in
4136 gcc)
4137 # This depmode causes a compiler race in universal mode.
4138 test "$am__universal" = false || continue
4140 nosideeffect)
4141 # After this tag, mechanisms are not by side-effect, so they'll
4142 # only be used when explicitly requested.
4143 if test "x$enable_dependency_tracking" = xyes; then
4144 continue
4145 else
4146 break
4149 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4150 # This compiler won't grok '-c -o', but also, the minuso test has
4151 # not run yet. These depmodes are late enough in the game, and
4152 # so weak that their functioning should not be impacted.
4153 am__obj=conftest.${OBJEXT-o}
4154 am__minus_obj=
4156 none) break ;;
4157 esac
4158 if depmode=$depmode \
4159 source=sub/conftest.c object=$am__obj \
4160 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4161 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4162 >/dev/null 2>conftest.err &&
4163 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4164 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4165 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4166 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4167 # icc doesn't choke on unknown options, it will just issue warnings
4168 # or remarks (even with -Werror). So we grep stderr for any message
4169 # that says an option was ignored or not supported.
4170 # When given -MP, icc 7.0 and 7.1 complain thusly:
4171 # icc: Command line warning: ignoring option '-M'; no argument required
4172 # The diagnosis changed in icc 8.0:
4173 # icc: Command line remark: option '-MP' not supported
4174 if (grep 'ignoring option' conftest.err ||
4175 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4176 am_cv_CC_dependencies_compiler_type=$depmode
4177 break
4180 done
4182 cd ..
4183 rm -rf conftest.dir
4184 else
4185 am_cv_CC_dependencies_compiler_type=none
4189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4190 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4191 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4194 test "x$enable_dependency_tracking" != xno \
4195 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4196 am__fastdepCC_TRUE=
4197 am__fastdepCC_FALSE='#'
4198 else
4199 am__fastdepCC_TRUE='#'
4200 am__fastdepCC_FALSE=
4205 ac_ext=c
4206 ac_cpp='$CPP $CPPFLAGS'
4207 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4208 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4209 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4211 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4212 # On Suns, sometimes $CPP names a directory.
4213 if test -n "$CPP" && test -d "$CPP"; then
4214 CPP=
4216 if test -z "$CPP"; then
4217 if ${ac_cv_prog_CPP+:} false; then :
4218 $as_echo_n "(cached) " >&6
4219 else
4220 # Double quotes because CPP needs to be expanded
4221 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4223 ac_preproc_ok=false
4224 for ac_c_preproc_warn_flag in '' yes
4226 # Use a header file that comes with gcc, so configuring glibc
4227 # with a fresh cross-compiler works.
4228 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4229 # <limits.h> exists even on freestanding compilers.
4230 # On the NeXT, cc -E runs the code through the compiler's parser,
4231 # not just through cpp. "Syntax error" is here to catch this case.
4232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4233 /* end confdefs.h. */
4234 #ifdef __STDC__
4235 # include <limits.h>
4236 #else
4237 # include <assert.h>
4238 #endif
4239 Syntax error
4240 _ACEOF
4241 if ac_fn_c_try_cpp "$LINENO"; then :
4243 else
4244 # Broken: fails on valid input.
4245 continue
4247 rm -f conftest.err conftest.i conftest.$ac_ext
4249 # OK, works on sane cases. Now check whether nonexistent headers
4250 # can be detected and how.
4251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4252 /* end confdefs.h. */
4253 #include <ac_nonexistent.h>
4254 _ACEOF
4255 if ac_fn_c_try_cpp "$LINENO"; then :
4256 # Broken: success on invalid input.
4257 continue
4258 else
4259 # Passes both tests.
4260 ac_preproc_ok=:
4261 break
4263 rm -f conftest.err conftest.i conftest.$ac_ext
4265 done
4266 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4267 rm -f conftest.i conftest.err conftest.$ac_ext
4268 if $ac_preproc_ok; then :
4269 break
4272 done
4273 ac_cv_prog_CPP=$CPP
4276 CPP=$ac_cv_prog_CPP
4277 else
4278 ac_cv_prog_CPP=$CPP
4280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4281 $as_echo "$CPP" >&6; }
4282 ac_preproc_ok=false
4283 for ac_c_preproc_warn_flag in '' yes
4285 # Use a header file that comes with gcc, so configuring glibc
4286 # with a fresh cross-compiler works.
4287 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4288 # <limits.h> exists even on freestanding compilers.
4289 # On the NeXT, cc -E runs the code through the compiler's parser,
4290 # not just through cpp. "Syntax error" is here to catch this case.
4291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4292 /* end confdefs.h. */
4293 #ifdef __STDC__
4294 # include <limits.h>
4295 #else
4296 # include <assert.h>
4297 #endif
4298 Syntax error
4299 _ACEOF
4300 if ac_fn_c_try_cpp "$LINENO"; then :
4302 else
4303 # Broken: fails on valid input.
4304 continue
4306 rm -f conftest.err conftest.i conftest.$ac_ext
4308 # OK, works on sane cases. Now check whether nonexistent headers
4309 # can be detected and how.
4310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4311 /* end confdefs.h. */
4312 #include <ac_nonexistent.h>
4313 _ACEOF
4314 if ac_fn_c_try_cpp "$LINENO"; then :
4315 # Broken: success on invalid input.
4316 continue
4317 else
4318 # Passes both tests.
4319 ac_preproc_ok=:
4320 break
4322 rm -f conftest.err conftest.i conftest.$ac_ext
4324 done
4325 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4326 rm -f conftest.i conftest.err conftest.$ac_ext
4327 if $ac_preproc_ok; then :
4329 else
4330 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4331 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4332 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4333 See \`config.log' for more details" "$LINENO" 5; }
4336 ac_ext=c
4337 ac_cpp='$CPP $CPPFLAGS'
4338 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4339 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4340 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4344 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4345 if ${ac_cv_path_GREP+:} false; then :
4346 $as_echo_n "(cached) " >&6
4347 else
4348 if test -z "$GREP"; then
4349 ac_path_GREP_found=false
4350 # Loop through the user's path and test for each of PROGNAME-LIST
4351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4352 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4354 IFS=$as_save_IFS
4355 test -z "$as_dir" && as_dir=.
4356 for ac_prog in grep ggrep; do
4357 for ac_exec_ext in '' $ac_executable_extensions; do
4358 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4359 as_fn_executable_p "$ac_path_GREP" || continue
4360 # Check for GNU ac_path_GREP and select it if it is found.
4361 # Check for GNU $ac_path_GREP
4362 case `"$ac_path_GREP" --version 2>&1` in
4363 *GNU*)
4364 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4366 ac_count=0
4367 $as_echo_n 0123456789 >"conftest.in"
4368 while :
4370 cat "conftest.in" "conftest.in" >"conftest.tmp"
4371 mv "conftest.tmp" "conftest.in"
4372 cp "conftest.in" "conftest.nl"
4373 $as_echo 'GREP' >> "conftest.nl"
4374 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4375 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4376 as_fn_arith $ac_count + 1 && ac_count=$as_val
4377 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4378 # Best one so far, save it but keep looking for a better one
4379 ac_cv_path_GREP="$ac_path_GREP"
4380 ac_path_GREP_max=$ac_count
4382 # 10*(2^10) chars as input seems more than enough
4383 test $ac_count -gt 10 && break
4384 done
4385 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4386 esac
4388 $ac_path_GREP_found && break 3
4389 done
4390 done
4391 done
4392 IFS=$as_save_IFS
4393 if test -z "$ac_cv_path_GREP"; then
4394 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4396 else
4397 ac_cv_path_GREP=$GREP
4401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4402 $as_echo "$ac_cv_path_GREP" >&6; }
4403 GREP="$ac_cv_path_GREP"
4406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4407 $as_echo_n "checking for egrep... " >&6; }
4408 if ${ac_cv_path_EGREP+:} false; then :
4409 $as_echo_n "(cached) " >&6
4410 else
4411 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4412 then ac_cv_path_EGREP="$GREP -E"
4413 else
4414 if test -z "$EGREP"; then
4415 ac_path_EGREP_found=false
4416 # Loop through the user's path and test for each of PROGNAME-LIST
4417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4418 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4420 IFS=$as_save_IFS
4421 test -z "$as_dir" && as_dir=.
4422 for ac_prog in egrep; do
4423 for ac_exec_ext in '' $ac_executable_extensions; do
4424 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4425 as_fn_executable_p "$ac_path_EGREP" || continue
4426 # Check for GNU ac_path_EGREP and select it if it is found.
4427 # Check for GNU $ac_path_EGREP
4428 case `"$ac_path_EGREP" --version 2>&1` in
4429 *GNU*)
4430 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4432 ac_count=0
4433 $as_echo_n 0123456789 >"conftest.in"
4434 while :
4436 cat "conftest.in" "conftest.in" >"conftest.tmp"
4437 mv "conftest.tmp" "conftest.in"
4438 cp "conftest.in" "conftest.nl"
4439 $as_echo 'EGREP' >> "conftest.nl"
4440 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4441 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4442 as_fn_arith $ac_count + 1 && ac_count=$as_val
4443 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4444 # Best one so far, save it but keep looking for a better one
4445 ac_cv_path_EGREP="$ac_path_EGREP"
4446 ac_path_EGREP_max=$ac_count
4448 # 10*(2^10) chars as input seems more than enough
4449 test $ac_count -gt 10 && break
4450 done
4451 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4452 esac
4454 $ac_path_EGREP_found && break 3
4455 done
4456 done
4457 done
4458 IFS=$as_save_IFS
4459 if test -z "$ac_cv_path_EGREP"; then
4460 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4462 else
4463 ac_cv_path_EGREP=$EGREP
4468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4469 $as_echo "$ac_cv_path_EGREP" >&6; }
4470 EGREP="$ac_cv_path_EGREP"
4473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4474 $as_echo_n "checking for ANSI C header files... " >&6; }
4475 if ${ac_cv_header_stdc+:} false; then :
4476 $as_echo_n "(cached) " >&6
4477 else
4478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4479 /* end confdefs.h. */
4480 #include <stdlib.h>
4481 #include <stdarg.h>
4482 #include <string.h>
4483 #include <float.h>
4486 main ()
4490 return 0;
4492 _ACEOF
4493 if ac_fn_c_try_compile "$LINENO"; then :
4494 ac_cv_header_stdc=yes
4495 else
4496 ac_cv_header_stdc=no
4498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4500 if test $ac_cv_header_stdc = yes; then
4501 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4503 /* end confdefs.h. */
4504 #include <string.h>
4506 _ACEOF
4507 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4508 $EGREP "memchr" >/dev/null 2>&1; then :
4510 else
4511 ac_cv_header_stdc=no
4513 rm -f conftest*
4517 if test $ac_cv_header_stdc = yes; then
4518 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4520 /* end confdefs.h. */
4521 #include <stdlib.h>
4523 _ACEOF
4524 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4525 $EGREP "free" >/dev/null 2>&1; then :
4527 else
4528 ac_cv_header_stdc=no
4530 rm -f conftest*
4534 if test $ac_cv_header_stdc = yes; then
4535 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4536 if test "$cross_compiling" = yes; then :
4538 else
4539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4540 /* end confdefs.h. */
4541 #include <ctype.h>
4542 #include <stdlib.h>
4543 #if ((' ' & 0x0FF) == 0x020)
4544 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4545 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4546 #else
4547 # define ISLOWER(c) \
4548 (('a' <= (c) && (c) <= 'i') \
4549 || ('j' <= (c) && (c) <= 'r') \
4550 || ('s' <= (c) && (c) <= 'z'))
4551 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4552 #endif
4554 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4556 main ()
4558 int i;
4559 for (i = 0; i < 256; i++)
4560 if (XOR (islower (i), ISLOWER (i))
4561 || toupper (i) != TOUPPER (i))
4562 return 2;
4563 return 0;
4565 _ACEOF
4566 if ac_fn_c_try_run "$LINENO"; then :
4568 else
4569 ac_cv_header_stdc=no
4571 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4572 conftest.$ac_objext conftest.beam conftest.$ac_ext
4577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4578 $as_echo "$ac_cv_header_stdc" >&6; }
4579 if test $ac_cv_header_stdc = yes; then
4581 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4585 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4586 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4587 inttypes.h stdint.h unistd.h
4588 do :
4589 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4590 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4592 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4593 cat >>confdefs.h <<_ACEOF
4594 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4595 _ACEOF
4599 done
4603 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4604 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4605 MINIX=yes
4606 else
4607 MINIX=
4611 if test "$MINIX" = yes; then
4613 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4616 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4619 $as_echo "#define _MINIX 1" >>confdefs.h
4624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4625 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4626 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4627 $as_echo_n "(cached) " >&6
4628 else
4629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4630 /* end confdefs.h. */
4632 # define __EXTENSIONS__ 1
4633 $ac_includes_default
4635 main ()
4639 return 0;
4641 _ACEOF
4642 if ac_fn_c_try_compile "$LINENO"; then :
4643 ac_cv_safe_to_define___extensions__=yes
4644 else
4645 ac_cv_safe_to_define___extensions__=no
4647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4650 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4651 test $ac_cv_safe_to_define___extensions__ = yes &&
4652 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4654 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4656 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4658 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4660 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4663 ac_ext=c
4664 ac_cpp='$CPP $CPPFLAGS'
4665 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4666 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4667 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4668 if test -n "$ac_tool_prefix"; then
4669 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4670 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4672 $as_echo_n "checking for $ac_word... " >&6; }
4673 if ${ac_cv_prog_CC+:} false; then :
4674 $as_echo_n "(cached) " >&6
4675 else
4676 if test -n "$CC"; then
4677 ac_cv_prog_CC="$CC" # Let the user override the test.
4678 else
4679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4680 for as_dir in $PATH
4682 IFS=$as_save_IFS
4683 test -z "$as_dir" && as_dir=.
4684 for ac_exec_ext in '' $ac_executable_extensions; do
4685 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4686 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4688 break 2
4690 done
4691 done
4692 IFS=$as_save_IFS
4696 CC=$ac_cv_prog_CC
4697 if test -n "$CC"; then
4698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4699 $as_echo "$CC" >&6; }
4700 else
4701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4702 $as_echo "no" >&6; }
4707 if test -z "$ac_cv_prog_CC"; then
4708 ac_ct_CC=$CC
4709 # Extract the first word of "gcc", so it can be a program name with args.
4710 set dummy gcc; ac_word=$2
4711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4712 $as_echo_n "checking for $ac_word... " >&6; }
4713 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4714 $as_echo_n "(cached) " >&6
4715 else
4716 if test -n "$ac_ct_CC"; then
4717 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4718 else
4719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4720 for as_dir in $PATH
4722 IFS=$as_save_IFS
4723 test -z "$as_dir" && as_dir=.
4724 for ac_exec_ext in '' $ac_executable_extensions; do
4725 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4726 ac_cv_prog_ac_ct_CC="gcc"
4727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4728 break 2
4730 done
4731 done
4732 IFS=$as_save_IFS
4736 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4737 if test -n "$ac_ct_CC"; then
4738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4739 $as_echo "$ac_ct_CC" >&6; }
4740 else
4741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4742 $as_echo "no" >&6; }
4745 if test "x$ac_ct_CC" = x; then
4746 CC=""
4747 else
4748 case $cross_compiling:$ac_tool_warned in
4749 yes:)
4750 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4751 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4752 ac_tool_warned=yes ;;
4753 esac
4754 CC=$ac_ct_CC
4756 else
4757 CC="$ac_cv_prog_CC"
4760 if test -z "$CC"; then
4761 if test -n "$ac_tool_prefix"; then
4762 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4763 set dummy ${ac_tool_prefix}cc; ac_word=$2
4764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4765 $as_echo_n "checking for $ac_word... " >&6; }
4766 if ${ac_cv_prog_CC+:} false; then :
4767 $as_echo_n "(cached) " >&6
4768 else
4769 if test -n "$CC"; then
4770 ac_cv_prog_CC="$CC" # Let the user override the test.
4771 else
4772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4773 for as_dir in $PATH
4775 IFS=$as_save_IFS
4776 test -z "$as_dir" && as_dir=.
4777 for ac_exec_ext in '' $ac_executable_extensions; do
4778 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4779 ac_cv_prog_CC="${ac_tool_prefix}cc"
4780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4781 break 2
4783 done
4784 done
4785 IFS=$as_save_IFS
4789 CC=$ac_cv_prog_CC
4790 if test -n "$CC"; then
4791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4792 $as_echo "$CC" >&6; }
4793 else
4794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4795 $as_echo "no" >&6; }
4801 if test -z "$CC"; then
4802 # Extract the first word of "cc", so it can be a program name with args.
4803 set dummy cc; ac_word=$2
4804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4805 $as_echo_n "checking for $ac_word... " >&6; }
4806 if ${ac_cv_prog_CC+:} false; then :
4807 $as_echo_n "(cached) " >&6
4808 else
4809 if test -n "$CC"; then
4810 ac_cv_prog_CC="$CC" # Let the user override the test.
4811 else
4812 ac_prog_rejected=no
4813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4814 for as_dir in $PATH
4816 IFS=$as_save_IFS
4817 test -z "$as_dir" && as_dir=.
4818 for ac_exec_ext in '' $ac_executable_extensions; do
4819 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4820 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4821 ac_prog_rejected=yes
4822 continue
4824 ac_cv_prog_CC="cc"
4825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4826 break 2
4828 done
4829 done
4830 IFS=$as_save_IFS
4832 if test $ac_prog_rejected = yes; then
4833 # We found a bogon in the path, so make sure we never use it.
4834 set dummy $ac_cv_prog_CC
4835 shift
4836 if test $# != 0; then
4837 # We chose a different compiler from the bogus one.
4838 # However, it has the same basename, so the bogon will be chosen
4839 # first if we set CC to just the basename; use the full file name.
4840 shift
4841 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4846 CC=$ac_cv_prog_CC
4847 if test -n "$CC"; then
4848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4849 $as_echo "$CC" >&6; }
4850 else
4851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4852 $as_echo "no" >&6; }
4857 if test -z "$CC"; then
4858 if test -n "$ac_tool_prefix"; then
4859 for ac_prog in cl.exe
4861 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4862 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4864 $as_echo_n "checking for $ac_word... " >&6; }
4865 if ${ac_cv_prog_CC+:} false; then :
4866 $as_echo_n "(cached) " >&6
4867 else
4868 if test -n "$CC"; then
4869 ac_cv_prog_CC="$CC" # Let the user override the test.
4870 else
4871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4872 for as_dir in $PATH
4874 IFS=$as_save_IFS
4875 test -z "$as_dir" && as_dir=.
4876 for ac_exec_ext in '' $ac_executable_extensions; do
4877 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4878 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4879 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4880 break 2
4882 done
4883 done
4884 IFS=$as_save_IFS
4888 CC=$ac_cv_prog_CC
4889 if test -n "$CC"; then
4890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4891 $as_echo "$CC" >&6; }
4892 else
4893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4894 $as_echo "no" >&6; }
4898 test -n "$CC" && break
4899 done
4901 if test -z "$CC"; then
4902 ac_ct_CC=$CC
4903 for ac_prog in cl.exe
4905 # Extract the first word of "$ac_prog", so it can be a program name with args.
4906 set dummy $ac_prog; ac_word=$2
4907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4908 $as_echo_n "checking for $ac_word... " >&6; }
4909 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4910 $as_echo_n "(cached) " >&6
4911 else
4912 if test -n "$ac_ct_CC"; then
4913 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4914 else
4915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4916 for as_dir in $PATH
4918 IFS=$as_save_IFS
4919 test -z "$as_dir" && as_dir=.
4920 for ac_exec_ext in '' $ac_executable_extensions; do
4921 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4922 ac_cv_prog_ac_ct_CC="$ac_prog"
4923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4924 break 2
4926 done
4927 done
4928 IFS=$as_save_IFS
4932 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4933 if test -n "$ac_ct_CC"; then
4934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4935 $as_echo "$ac_ct_CC" >&6; }
4936 else
4937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4938 $as_echo "no" >&6; }
4942 test -n "$ac_ct_CC" && break
4943 done
4945 if test "x$ac_ct_CC" = x; then
4946 CC=""
4947 else
4948 case $cross_compiling:$ac_tool_warned in
4949 yes:)
4950 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4951 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4952 ac_tool_warned=yes ;;
4953 esac
4954 CC=$ac_ct_CC
4961 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4962 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4963 as_fn_error $? "no acceptable C compiler found in \$PATH
4964 See \`config.log' for more details" "$LINENO" 5; }
4966 # Provide some information about the compiler.
4967 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4968 set X $ac_compile
4969 ac_compiler=$2
4970 for ac_option in --version -v -V -qversion; do
4971 { { ac_try="$ac_compiler $ac_option >&5"
4972 case "(($ac_try" in
4973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4974 *) ac_try_echo=$ac_try;;
4975 esac
4976 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4977 $as_echo "$ac_try_echo"; } >&5
4978 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4979 ac_status=$?
4980 if test -s conftest.err; then
4981 sed '10a\
4982 ... rest of stderr output deleted ...
4983 10q' conftest.err >conftest.er1
4984 cat conftest.er1 >&5
4986 rm -f conftest.er1 conftest.err
4987 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4988 test $ac_status = 0; }
4989 done
4991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4992 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4993 if ${ac_cv_c_compiler_gnu+:} false; then :
4994 $as_echo_n "(cached) " >&6
4995 else
4996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4997 /* end confdefs.h. */
5000 main ()
5002 #ifndef __GNUC__
5003 choke me
5004 #endif
5007 return 0;
5009 _ACEOF
5010 if ac_fn_c_try_compile "$LINENO"; then :
5011 ac_compiler_gnu=yes
5012 else
5013 ac_compiler_gnu=no
5015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5016 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5020 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5021 if test $ac_compiler_gnu = yes; then
5022 GCC=yes
5023 else
5024 GCC=
5026 ac_test_CFLAGS=${CFLAGS+set}
5027 ac_save_CFLAGS=$CFLAGS
5028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5029 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5030 if ${ac_cv_prog_cc_g+:} false; then :
5031 $as_echo_n "(cached) " >&6
5032 else
5033 ac_save_c_werror_flag=$ac_c_werror_flag
5034 ac_c_werror_flag=yes
5035 ac_cv_prog_cc_g=no
5036 CFLAGS="-g"
5037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5038 /* end confdefs.h. */
5041 main ()
5045 return 0;
5047 _ACEOF
5048 if ac_fn_c_try_compile "$LINENO"; then :
5049 ac_cv_prog_cc_g=yes
5050 else
5051 CFLAGS=""
5052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5053 /* end confdefs.h. */
5056 main ()
5060 return 0;
5062 _ACEOF
5063 if ac_fn_c_try_compile "$LINENO"; then :
5065 else
5066 ac_c_werror_flag=$ac_save_c_werror_flag
5067 CFLAGS="-g"
5068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5069 /* end confdefs.h. */
5072 main ()
5076 return 0;
5078 _ACEOF
5079 if ac_fn_c_try_compile "$LINENO"; then :
5080 ac_cv_prog_cc_g=yes
5082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5087 ac_c_werror_flag=$ac_save_c_werror_flag
5089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5090 $as_echo "$ac_cv_prog_cc_g" >&6; }
5091 if test "$ac_test_CFLAGS" = set; then
5092 CFLAGS=$ac_save_CFLAGS
5093 elif test $ac_cv_prog_cc_g = yes; then
5094 if test "$GCC" = yes; then
5095 CFLAGS="-g -O2"
5096 else
5097 CFLAGS="-g"
5099 else
5100 if test "$GCC" = yes; then
5101 CFLAGS="-O2"
5102 else
5103 CFLAGS=
5106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5107 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5108 if ${ac_cv_prog_cc_c89+:} false; then :
5109 $as_echo_n "(cached) " >&6
5110 else
5111 ac_cv_prog_cc_c89=no
5112 ac_save_CC=$CC
5113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5114 /* end confdefs.h. */
5115 #include <stdarg.h>
5116 #include <stdio.h>
5117 struct stat;
5118 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5119 struct buf { int x; };
5120 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5121 static char *e (p, i)
5122 char **p;
5123 int i;
5125 return p[i];
5127 static char *f (char * (*g) (char **, int), char **p, ...)
5129 char *s;
5130 va_list v;
5131 va_start (v,p);
5132 s = g (p, va_arg (v,int));
5133 va_end (v);
5134 return s;
5137 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5138 function prototypes and stuff, but not '\xHH' hex character constants.
5139 These don't provoke an error unfortunately, instead are silently treated
5140 as 'x'. The following induces an error, until -std is added to get
5141 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5142 array size at least. It's necessary to write '\x00'==0 to get something
5143 that's true only with -std. */
5144 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5146 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5147 inside strings and character constants. */
5148 #define FOO(x) 'x'
5149 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5151 int test (int i, double x);
5152 struct s1 {int (*f) (int a);};
5153 struct s2 {int (*f) (double a);};
5154 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5155 int argc;
5156 char **argv;
5158 main ()
5160 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5162 return 0;
5164 _ACEOF
5165 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5166 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5168 CC="$ac_save_CC $ac_arg"
5169 if ac_fn_c_try_compile "$LINENO"; then :
5170 ac_cv_prog_cc_c89=$ac_arg
5172 rm -f core conftest.err conftest.$ac_objext
5173 test "x$ac_cv_prog_cc_c89" != "xno" && break
5174 done
5175 rm -f conftest.$ac_ext
5176 CC=$ac_save_CC
5179 # AC_CACHE_VAL
5180 case "x$ac_cv_prog_cc_c89" in
5182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5183 $as_echo "none needed" >&6; } ;;
5184 xno)
5185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5186 $as_echo "unsupported" >&6; } ;;
5188 CC="$CC $ac_cv_prog_cc_c89"
5189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5190 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5191 esac
5192 if test "x$ac_cv_prog_cc_c89" != xno; then :
5196 ac_ext=c
5197 ac_cpp='$CPP $CPPFLAGS'
5198 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5199 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5200 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5202 ac_ext=c
5203 ac_cpp='$CPP $CPPFLAGS'
5204 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5205 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5206 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5208 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5209 if ${am_cv_prog_cc_c_o+:} false; then :
5210 $as_echo_n "(cached) " >&6
5211 else
5212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5213 /* end confdefs.h. */
5216 main ()
5220 return 0;
5222 _ACEOF
5223 # Make sure it works both with $CC and with simple cc.
5224 # Following AC_PROG_CC_C_O, we do the test twice because some
5225 # compilers refuse to overwrite an existing .o file with -o,
5226 # though they will create one.
5227 am_cv_prog_cc_c_o=yes
5228 for am_i in 1 2; do
5229 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5230 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5231 ac_status=$?
5232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5233 (exit $ac_status); } \
5234 && test -f conftest2.$ac_objext; then
5235 : OK
5236 else
5237 am_cv_prog_cc_c_o=no
5238 break
5240 done
5241 rm -f core conftest*
5242 unset am_i
5244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5245 $as_echo "$am_cv_prog_cc_c_o" >&6; }
5246 if test "$am_cv_prog_cc_c_o" != yes; then
5247 # Losing compiler, so override with the script.
5248 # FIXME: It is wrong to rewrite CC.
5249 # But if we don't then we get into trouble of one sort or another.
5250 # A longer-term fix would be to have automake use am__CC in this case,
5251 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5252 CC="$am_aux_dir/compile $CC"
5254 ac_ext=c
5255 ac_cpp='$CPP $CPPFLAGS'
5256 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5257 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5258 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5261 depcc="$CC" am_compiler_list=
5263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5264 $as_echo_n "checking dependency style of $depcc... " >&6; }
5265 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5266 $as_echo_n "(cached) " >&6
5267 else
5268 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5269 # We make a subdir and do the tests there. Otherwise we can end up
5270 # making bogus files that we don't know about and never remove. For
5271 # instance it was reported that on HP-UX the gcc test will end up
5272 # making a dummy file named 'D' -- because '-MD' means "put the output
5273 # in D".
5274 rm -rf conftest.dir
5275 mkdir conftest.dir
5276 # Copy depcomp to subdir because otherwise we won't find it if we're
5277 # using a relative directory.
5278 cp "$am_depcomp" conftest.dir
5279 cd conftest.dir
5280 # We will build objects and dependencies in a subdirectory because
5281 # it helps to detect inapplicable dependency modes. For instance
5282 # both Tru64's cc and ICC support -MD to output dependencies as a
5283 # side effect of compilation, but ICC will put the dependencies in
5284 # the current directory while Tru64 will put them in the object
5285 # directory.
5286 mkdir sub
5288 am_cv_CC_dependencies_compiler_type=none
5289 if test "$am_compiler_list" = ""; then
5290 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5292 am__universal=false
5293 case " $depcc " in #(
5294 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5295 esac
5297 for depmode in $am_compiler_list; do
5298 # Setup a source with many dependencies, because some compilers
5299 # like to wrap large dependency lists on column 80 (with \), and
5300 # we should not choose a depcomp mode which is confused by this.
5302 # We need to recreate these files for each test, as the compiler may
5303 # overwrite some of them when testing with obscure command lines.
5304 # This happens at least with the AIX C compiler.
5305 : > sub/conftest.c
5306 for i in 1 2 3 4 5 6; do
5307 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5308 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5309 # Solaris 10 /bin/sh.
5310 echo '/* dummy */' > sub/conftst$i.h
5311 done
5312 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5314 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5315 # mode. It turns out that the SunPro C++ compiler does not properly
5316 # handle '-M -o', and we need to detect this. Also, some Intel
5317 # versions had trouble with output in subdirs.
5318 am__obj=sub/conftest.${OBJEXT-o}
5319 am__minus_obj="-o $am__obj"
5320 case $depmode in
5321 gcc)
5322 # This depmode causes a compiler race in universal mode.
5323 test "$am__universal" = false || continue
5325 nosideeffect)
5326 # After this tag, mechanisms are not by side-effect, so they'll
5327 # only be used when explicitly requested.
5328 if test "x$enable_dependency_tracking" = xyes; then
5329 continue
5330 else
5331 break
5334 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5335 # This compiler won't grok '-c -o', but also, the minuso test has
5336 # not run yet. These depmodes are late enough in the game, and
5337 # so weak that their functioning should not be impacted.
5338 am__obj=conftest.${OBJEXT-o}
5339 am__minus_obj=
5341 none) break ;;
5342 esac
5343 if depmode=$depmode \
5344 source=sub/conftest.c object=$am__obj \
5345 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5346 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5347 >/dev/null 2>conftest.err &&
5348 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5349 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5350 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5351 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5352 # icc doesn't choke on unknown options, it will just issue warnings
5353 # or remarks (even with -Werror). So we grep stderr for any message
5354 # that says an option was ignored or not supported.
5355 # When given -MP, icc 7.0 and 7.1 complain thusly:
5356 # icc: Command line warning: ignoring option '-M'; no argument required
5357 # The diagnosis changed in icc 8.0:
5358 # icc: Command line remark: option '-MP' not supported
5359 if (grep 'ignoring option' conftest.err ||
5360 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5361 am_cv_CC_dependencies_compiler_type=$depmode
5362 break
5365 done
5367 cd ..
5368 rm -rf conftest.dir
5369 else
5370 am_cv_CC_dependencies_compiler_type=none
5374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5375 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5376 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5379 test "x$enable_dependency_tracking" != xno \
5380 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5381 am__fastdepCC_TRUE=
5382 am__fastdepCC_FALSE='#'
5383 else
5384 am__fastdepCC_TRUE='#'
5385 am__fastdepCC_FALSE=
5389 # Check whether --enable-largefile was given.
5390 if test "${enable_largefile+set}" = set; then :
5391 enableval=$enable_largefile;
5394 if test "$enable_largefile" != no; then
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5397 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5398 if ${ac_cv_sys_largefile_CC+:} false; then :
5399 $as_echo_n "(cached) " >&6
5400 else
5401 ac_cv_sys_largefile_CC=no
5402 if test "$GCC" != yes; then
5403 ac_save_CC=$CC
5404 while :; do
5405 # IRIX 6.2 and later do not support large files by default,
5406 # so use the C compiler's -n32 option if that helps.
5407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5408 /* end confdefs.h. */
5409 #include <sys/types.h>
5410 /* Check that off_t can represent 2**63 - 1 correctly.
5411 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5412 since some C++ compilers masquerading as C compilers
5413 incorrectly reject 9223372036854775807. */
5414 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5415 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5416 && LARGE_OFF_T % 2147483647 == 1)
5417 ? 1 : -1];
5419 main ()
5423 return 0;
5425 _ACEOF
5426 if ac_fn_c_try_compile "$LINENO"; then :
5427 break
5429 rm -f core conftest.err conftest.$ac_objext
5430 CC="$CC -n32"
5431 if ac_fn_c_try_compile "$LINENO"; then :
5432 ac_cv_sys_largefile_CC=' -n32'; break
5434 rm -f core conftest.err conftest.$ac_objext
5435 break
5436 done
5437 CC=$ac_save_CC
5438 rm -f conftest.$ac_ext
5441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5442 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5443 if test "$ac_cv_sys_largefile_CC" != no; then
5444 CC=$CC$ac_cv_sys_largefile_CC
5447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5448 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5449 if ${ac_cv_sys_file_offset_bits+:} false; then :
5450 $as_echo_n "(cached) " >&6
5451 else
5452 while :; do
5453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5454 /* end confdefs.h. */
5455 #include <sys/types.h>
5456 /* Check that off_t can represent 2**63 - 1 correctly.
5457 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5458 since some C++ compilers masquerading as C compilers
5459 incorrectly reject 9223372036854775807. */
5460 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5461 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5462 && LARGE_OFF_T % 2147483647 == 1)
5463 ? 1 : -1];
5465 main ()
5469 return 0;
5471 _ACEOF
5472 if ac_fn_c_try_compile "$LINENO"; then :
5473 ac_cv_sys_file_offset_bits=no; break
5475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5477 /* end confdefs.h. */
5478 #define _FILE_OFFSET_BITS 64
5479 #include <sys/types.h>
5480 /* Check that off_t can represent 2**63 - 1 correctly.
5481 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5482 since some C++ compilers masquerading as C compilers
5483 incorrectly reject 9223372036854775807. */
5484 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5485 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5486 && LARGE_OFF_T % 2147483647 == 1)
5487 ? 1 : -1];
5489 main ()
5493 return 0;
5495 _ACEOF
5496 if ac_fn_c_try_compile "$LINENO"; then :
5497 ac_cv_sys_file_offset_bits=64; break
5499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5500 ac_cv_sys_file_offset_bits=unknown
5501 break
5502 done
5504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5505 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5506 case $ac_cv_sys_file_offset_bits in #(
5507 no | unknown) ;;
5509 cat >>confdefs.h <<_ACEOF
5510 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5511 _ACEOF
5513 esac
5514 rm -rf conftest*
5515 if test $ac_cv_sys_file_offset_bits = unknown; then
5516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5517 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5518 if ${ac_cv_sys_large_files+:} false; then :
5519 $as_echo_n "(cached) " >&6
5520 else
5521 while :; do
5522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5523 /* end confdefs.h. */
5524 #include <sys/types.h>
5525 /* Check that off_t can represent 2**63 - 1 correctly.
5526 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5527 since some C++ compilers masquerading as C compilers
5528 incorrectly reject 9223372036854775807. */
5529 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5530 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5531 && LARGE_OFF_T % 2147483647 == 1)
5532 ? 1 : -1];
5534 main ()
5538 return 0;
5540 _ACEOF
5541 if ac_fn_c_try_compile "$LINENO"; then :
5542 ac_cv_sys_large_files=no; break
5544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5546 /* end confdefs.h. */
5547 #define _LARGE_FILES 1
5548 #include <sys/types.h>
5549 /* Check that off_t can represent 2**63 - 1 correctly.
5550 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5551 since some C++ compilers masquerading as C compilers
5552 incorrectly reject 9223372036854775807. */
5553 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5554 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5555 && LARGE_OFF_T % 2147483647 == 1)
5556 ? 1 : -1];
5558 main ()
5562 return 0;
5564 _ACEOF
5565 if ac_fn_c_try_compile "$LINENO"; then :
5566 ac_cv_sys_large_files=1; break
5568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5569 ac_cv_sys_large_files=unknown
5570 break
5571 done
5573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5574 $as_echo "$ac_cv_sys_large_files" >&6; }
5575 case $ac_cv_sys_large_files in #(
5576 no | unknown) ;;
5578 cat >>confdefs.h <<_ACEOF
5579 #define _LARGE_FILES $ac_cv_sys_large_files
5580 _ACEOF
5582 esac
5583 rm -rf conftest*
5589 ac_ext=c
5590 ac_cpp='$CPP $CPPFLAGS'
5591 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5592 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5593 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5595 ac_lto_plugin_warn_cflags=
5596 save_CFLAGS="$CFLAGS"
5597 for real_option in -Wall; do
5598 # Do the check with the no- prefix removed since gcc silently
5599 # accepts any -Wno-* option on purpose
5600 case $real_option in
5601 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
5602 *) option=$real_option ;;
5603 esac
5604 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
5606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
5607 $as_echo_n "checking whether $CC supports $option... " >&6; }
5608 if eval \${$as_acx_Woption+:} false; then :
5609 $as_echo_n "(cached) " >&6
5610 else
5611 CFLAGS="$option"
5612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5613 /* end confdefs.h. */
5616 main ()
5620 return 0;
5622 _ACEOF
5623 if ac_fn_c_try_compile "$LINENO"; then :
5624 eval "$as_acx_Woption=yes"
5625 else
5626 eval "$as_acx_Woption=no"
5628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5631 eval ac_res=\$$as_acx_Woption
5632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5633 $as_echo "$ac_res" >&6; }
5634 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
5635 ac_lto_plugin_warn_cflags="$ac_lto_plugin_warn_cflags${ac_lto_plugin_warn_cflags:+ }$real_option"
5637 done
5638 CFLAGS="$save_CFLAGS"
5639 ac_ext=c
5640 ac_cpp='$CPP $CPPFLAGS'
5641 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5642 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5643 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5647 # Check whether -static-libgcc is supported.
5648 saved_LDFLAGS="$LDFLAGS"
5649 LDFLAGS="$LDFLAGS -static-libgcc"
5650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -static-libgcc" >&5
5651 $as_echo_n "checking for -static-libgcc... " >&6; }
5652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5653 /* end confdefs.h. */
5655 int main() {}
5656 _ACEOF
5657 if ac_fn_c_try_link "$LINENO"; then :
5658 have_static_libgcc=yes
5659 else
5660 have_static_libgcc=no
5662 rm -f core conftest.err conftest.$ac_objext \
5663 conftest$ac_exeext conftest.$ac_ext
5664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_static_libgcc" >&5
5665 $as_echo "$have_static_libgcc" >&6; };
5666 LDFLAGS="$saved_LDFLAGS"
5667 # Need -Wc to get it through libtool.
5668 if test "x$have_static_libgcc" = xyes; then
5669 ac_lto_plugin_ldflags="-Wc,-static-libgcc"
5673 # Check whether --enable-cet was given.
5674 if test "${enable_cet+set}" = set; then :
5675 enableval=$enable_cet;
5676 case "$enableval" in
5677 yes|no|auto) ;;
5678 *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
5679 esac
5681 else
5682 enable_cet=auto
5686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
5687 $as_echo_n "checking for CET support... " >&6; }
5689 case "$host" in
5690 i[34567]86-*-linux* | x86_64-*-linux*)
5691 may_have_cet=yes
5692 cet_save_CFLAGS="$CFLAGS"
5693 CFLAGS="$CFLAGS -fcf-protection"
5694 case "$enable_cet" in
5695 auto)
5696 # Check if target supports multi-byte NOPs
5697 # and if compiler and assembler support CET.
5698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5699 /* end confdefs.h. */
5702 main ()
5705 #if !defined(__SSE2__)
5706 #error target does not support multi-byte NOPs
5707 #else
5708 asm ("setssbsy");
5709 #endif
5712 return 0;
5714 _ACEOF
5715 if ac_fn_c_try_compile "$LINENO"; then :
5716 enable_cet=yes
5717 else
5718 enable_cet=no
5720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5722 yes)
5723 # Check if compiler and assembler support CET.
5724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5725 /* end confdefs.h. */
5728 main ()
5730 asm ("setssbsy");
5732 return 0;
5734 _ACEOF
5735 if ac_fn_c_try_compile "$LINENO"; then :
5736 support_cet=yes
5737 else
5738 support_cet=no
5740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5741 if test $support_cet = "no"; then
5742 if test x$enable_bootstrap != xno \
5743 && test -z "${with_build_subdir}" \
5744 && (test ! -f ../stage_current \
5745 || test `cat ../stage_current` != "stage1"); then
5746 # Require CET support only for the final GCC build.
5747 as_fn_error $? "compiler and assembler with CET support are required for --enable-cet" "$LINENO" 5
5748 else
5749 # Don't enable CET without CET support for non-bootstrap
5750 # build, in stage1 nor for build support.
5751 enable_cet=no
5755 esac
5756 CFLAGS="$cet_save_CFLAGS"
5759 may_have_cet=no
5760 enable_cet=no
5762 esac
5764 cet_save_CFLAGS="$CFLAGS"
5765 CFLAGS="$CFLAGS -fcf-protection=none"
5766 cet_save_LDFLAGS="$LDFLAGS"
5767 LDFLAGS="$LDFLAGS -Wl,-z,ibt,-z,shstk"
5768 if test x$may_have_cet = xyes; then
5769 # Check whether -fcf-protection=none -Wl,-z,ibt,-z,shstk work.
5770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5771 /* end confdefs.h. */
5774 main ()
5776 return 0;
5778 return 0;
5780 _ACEOF
5781 if ac_fn_c_try_link "$LINENO"; then :
5782 may_have_cet=yes
5783 else
5784 may_have_cet=no
5786 rm -f core conftest.err conftest.$ac_objext \
5787 conftest$ac_exeext conftest.$ac_ext
5790 if test x$may_have_cet = xyes; then
5791 if test x$cross_compiling = xno; then
5792 if test "$cross_compiling" = yes; then :
5793 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5794 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5795 as_fn_error $? "cannot run test program while cross compiling
5796 See \`config.log' for more details" "$LINENO" 5; }
5797 else
5798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5799 /* end confdefs.h. */
5802 main ()
5804 asm ("endbr32");
5805 return 0;
5808 _ACEOF
5809 if ac_fn_c_try_run "$LINENO"; then :
5810 have_multi_byte_nop=yes
5811 else
5812 have_multi_byte_nop=no
5814 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5815 conftest.$ac_objext conftest.beam conftest.$ac_ext
5818 have_cet=no
5819 if test x$have_multi_byte_nop = xyes; then
5820 if test "$cross_compiling" = yes; then :
5821 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5822 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5823 as_fn_error $? "cannot run test program while cross compiling
5824 See \`config.log' for more details" "$LINENO" 5; }
5825 else
5826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5827 /* end confdefs.h. */
5829 static void
5830 foo (void)
5834 static void
5835 __attribute__ ((noinline, noclone))
5836 xxx (void (*f) (void))
5838 f ();
5841 static void
5842 __attribute__ ((noinline, noclone))
5843 bar (void)
5845 xxx (foo);
5849 main ()
5851 bar ();
5852 return 0;
5855 _ACEOF
5856 if ac_fn_c_try_run "$LINENO"; then :
5857 have_cet=no
5858 else
5859 have_cet=yes
5861 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5862 conftest.$ac_objext conftest.beam conftest.$ac_ext
5866 if test x$enable_cet = xno -a x$have_cet = xyes; then
5867 as_fn_error $? "Intel CET must be enabled on Intel CET enabled host" "$LINENO" 5
5870 else
5871 # Enable CET in cross compiler if possible so that it will run on both
5872 # CET and non-CET hosts.
5873 have_cet=yes
5875 if test x$enable_cet = xyes; then
5876 CET_HOST_FLAGS="-fcf-protection"
5877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5878 $as_echo "yes" >&6; }
5879 else
5880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5881 $as_echo "no" >&6; }
5883 CFLAGS="$cet_save_CFLAGS"
5884 LDFLAGS="$cet_save_LDFLAGS"
5888 if test x"$host_subdir" = x.; then
5889 gcc_build_dir=../gcc
5890 else
5891 gcc_build_dir=../../$host_subdir/gcc
5895 # Used for constructing correct paths for offload compilers.
5896 accel_dir_suffix=
5897 real_target_noncanonical=${target_noncanonical}
5898 if test x"$enable_as_accelerator_for" != x; then
5899 accel_dir_suffix=/accel/${target_noncanonical}
5900 real_target_noncanonical=${enable_as_accelerator_for}
5905 # Determine what GCC version number to use in filesystem paths.
5907 get_gcc_base_ver="cat"
5909 # Check whether --with-gcc-major-version-only was given.
5910 if test "${with_gcc_major_version_only+set}" = set; then :
5911 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
5912 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
5920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symbol versioning is supported" >&5
5921 $as_echo_n "checking whether symbol versioning is supported... " >&6; }
5922 lto_plugin_use_symver=no
5923 if test x$gcc_no_link = xyes; then
5924 # If we cannot link, we cannot build shared libraries, so do not use
5925 # symbol versioning.
5926 lto_plugin_use_symver=no
5927 else
5928 save_LDFLAGS="$LDFLAGS"
5929 LDFLAGS="$LDFLAGS -fPIC -shared -Wl,--version-script,./conftest.map"
5930 cat > conftest.map <<EOF
5932 global: *foo*; bar; local: *;
5935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5936 /* end confdefs.h. */
5937 int foo;
5939 main ()
5943 return 0;
5945 _ACEOF
5946 if ac_fn_c_try_link "$LINENO"; then :
5947 lto_plugin_use_symver=gnu
5948 else
5949 lto_plugin_use_symver=no
5951 rm -f core conftest.err conftest.$ac_objext \
5952 conftest$ac_exeext conftest.$ac_ext
5953 if test x$lto_plugin_use_symver = xno; then
5954 case "$target_os" in
5955 solaris2*)
5956 LDFLAGS="$save_LDFLAGS"
5957 LDFLAGS="$LDFLAGS -fPIC -shared -Wl,-M,./conftest.map"
5958 # Sun ld cannot handle wildcards and treats all entries as undefined.
5959 cat > conftest.map <<EOF
5961 global: foo; local: *;
5964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5965 /* end confdefs.h. */
5966 int foo;
5968 main ()
5972 return 0;
5974 _ACEOF
5975 if ac_fn_c_try_link "$LINENO"; then :
5976 lto_plugin_use_symver=sun
5977 else
5978 lto_plugin_use_symver=no
5980 rm -f core conftest.err conftest.$ac_objext \
5981 conftest$ac_exeext conftest.$ac_ext
5983 esac
5985 LDFLAGS="$save_LDFLAGS"
5987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lto_plugin_use_symver" >&5
5988 $as_echo "$lto_plugin_use_symver" >&6; }
5989 if test "x$lto_plugin_use_symver" != xno; then
5990 LTO_PLUGIN_USE_SYMVER_TRUE=
5991 LTO_PLUGIN_USE_SYMVER_FALSE='#'
5992 else
5993 LTO_PLUGIN_USE_SYMVER_TRUE='#'
5994 LTO_PLUGIN_USE_SYMVER_FALSE=
5997 if test "x$lto_plugin_use_symver" = xgnu; then
5998 LTO_PLUGIN_USE_SYMVER_GNU_TRUE=
5999 LTO_PLUGIN_USE_SYMVER_GNU_FALSE='#'
6000 else
6001 LTO_PLUGIN_USE_SYMVER_GNU_TRUE='#'
6002 LTO_PLUGIN_USE_SYMVER_GNU_FALSE=
6005 if test "x$lto_plugin_use_symver" = xsun; then
6006 LTO_PLUGIN_USE_SYMVER_SUN_TRUE=
6007 LTO_PLUGIN_USE_SYMVER_SUN_FALSE='#'
6008 else
6009 LTO_PLUGIN_USE_SYMVER_SUN_TRUE='#'
6010 LTO_PLUGIN_USE_SYMVER_SUN_FALSE=
6014 # Check for thread headers.
6015 use_locking=no
6016 ac_lto_plugin_extra_ldflags=
6018 case $host in
6019 riscv*)
6020 # do not use locking as pthread depends on libatomic
6022 *-linux*)
6023 use_locking=yes
6025 esac
6027 if test x$use_locking = xyes; then
6028 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
6029 if test "x$ac_cv_header_pthread_h" = xyes; then :
6031 $as_echo "#define HAVE_PTHREAD_LOCKING 1" >>confdefs.h
6037 ac_lto_plugin_extra_ldflags="-pthread"
6042 case `pwd` in
6043 *\ * | *\ *)
6044 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6045 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6046 esac
6050 macro_version='2.2.7a'
6051 macro_revision='1.3134'
6065 ltmain="$ac_aux_dir/ltmain.sh"
6067 # Backslashify metacharacters that are still active within
6068 # double-quoted strings.
6069 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6071 # Same as above, but do not quote variable references.
6072 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6074 # Sed substitution to delay expansion of an escaped shell variable in a
6075 # double_quote_subst'ed string.
6076 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6078 # Sed substitution to delay expansion of an escaped single quote.
6079 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6081 # Sed substitution to avoid accidental globbing in evaled expressions
6082 no_glob_subst='s/\*/\\\*/g'
6084 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6085 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6086 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6089 $as_echo_n "checking how to print strings... " >&6; }
6090 # Test print first, because it will be a builtin if present.
6091 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
6092 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6093 ECHO='print -r --'
6094 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6095 ECHO='printf %s\n'
6096 else
6097 # Use this function as a fallback that always works.
6098 func_fallback_echo ()
6100 eval 'cat <<_LTECHO_EOF
6102 _LTECHO_EOF'
6104 ECHO='func_fallback_echo'
6107 # func_echo_all arg...
6108 # Invoke $ECHO with all args, space-separated.
6109 func_echo_all ()
6111 $ECHO ""
6114 case "$ECHO" in
6115 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6116 $as_echo "printf" >&6; } ;;
6117 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6118 $as_echo "print -r" >&6; } ;;
6119 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6120 $as_echo "cat" >&6; } ;;
6121 esac
6136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6137 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6138 if ${ac_cv_path_SED+:} false; then :
6139 $as_echo_n "(cached) " >&6
6140 else
6141 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6142 for ac_i in 1 2 3 4 5 6 7; do
6143 ac_script="$ac_script$as_nl$ac_script"
6144 done
6145 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6146 { ac_script=; unset ac_script;}
6147 if test -z "$SED"; then
6148 ac_path_SED_found=false
6149 # Loop through the user's path and test for each of PROGNAME-LIST
6150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6151 for as_dir in $PATH
6153 IFS=$as_save_IFS
6154 test -z "$as_dir" && as_dir=.
6155 for ac_prog in sed gsed; do
6156 for ac_exec_ext in '' $ac_executable_extensions; do
6157 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6158 as_fn_executable_p "$ac_path_SED" || continue
6159 # Check for GNU ac_path_SED and select it if it is found.
6160 # Check for GNU $ac_path_SED
6161 case `"$ac_path_SED" --version 2>&1` in
6162 *GNU*)
6163 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6165 ac_count=0
6166 $as_echo_n 0123456789 >"conftest.in"
6167 while :
6169 cat "conftest.in" "conftest.in" >"conftest.tmp"
6170 mv "conftest.tmp" "conftest.in"
6171 cp "conftest.in" "conftest.nl"
6172 $as_echo '' >> "conftest.nl"
6173 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6174 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6175 as_fn_arith $ac_count + 1 && ac_count=$as_val
6176 if test $ac_count -gt ${ac_path_SED_max-0}; then
6177 # Best one so far, save it but keep looking for a better one
6178 ac_cv_path_SED="$ac_path_SED"
6179 ac_path_SED_max=$ac_count
6181 # 10*(2^10) chars as input seems more than enough
6182 test $ac_count -gt 10 && break
6183 done
6184 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6185 esac
6187 $ac_path_SED_found && break 3
6188 done
6189 done
6190 done
6191 IFS=$as_save_IFS
6192 if test -z "$ac_cv_path_SED"; then
6193 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6195 else
6196 ac_cv_path_SED=$SED
6200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6201 $as_echo "$ac_cv_path_SED" >&6; }
6202 SED="$ac_cv_path_SED"
6203 rm -f conftest.sed
6205 test -z "$SED" && SED=sed
6206 Xsed="$SED -e 1s/^X//"
6218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6219 $as_echo_n "checking for fgrep... " >&6; }
6220 if ${ac_cv_path_FGREP+:} false; then :
6221 $as_echo_n "(cached) " >&6
6222 else
6223 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6224 then ac_cv_path_FGREP="$GREP -F"
6225 else
6226 if test -z "$FGREP"; then
6227 ac_path_FGREP_found=false
6228 # Loop through the user's path and test for each of PROGNAME-LIST
6229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6230 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6232 IFS=$as_save_IFS
6233 test -z "$as_dir" && as_dir=.
6234 for ac_prog in fgrep; do
6235 for ac_exec_ext in '' $ac_executable_extensions; do
6236 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6237 as_fn_executable_p "$ac_path_FGREP" || continue
6238 # Check for GNU ac_path_FGREP and select it if it is found.
6239 # Check for GNU $ac_path_FGREP
6240 case `"$ac_path_FGREP" --version 2>&1` in
6241 *GNU*)
6242 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6244 ac_count=0
6245 $as_echo_n 0123456789 >"conftest.in"
6246 while :
6248 cat "conftest.in" "conftest.in" >"conftest.tmp"
6249 mv "conftest.tmp" "conftest.in"
6250 cp "conftest.in" "conftest.nl"
6251 $as_echo 'FGREP' >> "conftest.nl"
6252 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6253 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6254 as_fn_arith $ac_count + 1 && ac_count=$as_val
6255 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6256 # Best one so far, save it but keep looking for a better one
6257 ac_cv_path_FGREP="$ac_path_FGREP"
6258 ac_path_FGREP_max=$ac_count
6260 # 10*(2^10) chars as input seems more than enough
6261 test $ac_count -gt 10 && break
6262 done
6263 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6264 esac
6266 $ac_path_FGREP_found && break 3
6267 done
6268 done
6269 done
6270 IFS=$as_save_IFS
6271 if test -z "$ac_cv_path_FGREP"; then
6272 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6274 else
6275 ac_cv_path_FGREP=$FGREP
6280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6281 $as_echo "$ac_cv_path_FGREP" >&6; }
6282 FGREP="$ac_cv_path_FGREP"
6285 test -z "$GREP" && GREP=grep
6305 # Check whether --with-gnu-ld was given.
6306 if test "${with_gnu_ld+set}" = set; then :
6307 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6308 else
6309 with_gnu_ld=no
6312 ac_prog=ld
6313 if test "$GCC" = yes; then
6314 # Check if gcc -print-prog-name=ld gives a path.
6315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6316 $as_echo_n "checking for ld used by $CC... " >&6; }
6317 case $host in
6318 *-*-mingw*)
6319 # gcc leaves a trailing carriage return which upsets mingw
6320 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6322 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6323 esac
6324 case $ac_prog in
6325 # Accept absolute paths.
6326 [\\/]* | ?:[\\/]*)
6327 re_direlt='/[^/][^/]*/\.\./'
6328 # Canonicalize the pathname of ld
6329 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6330 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6331 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6332 done
6333 test -z "$LD" && LD="$ac_prog"
6336 # If it fails, then pretend we aren't using GCC.
6337 ac_prog=ld
6340 # If it is relative, then search for the first ld in PATH.
6341 with_gnu_ld=unknown
6343 esac
6344 elif test "$with_gnu_ld" = yes; then
6345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6346 $as_echo_n "checking for GNU ld... " >&6; }
6347 else
6348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6349 $as_echo_n "checking for non-GNU ld... " >&6; }
6351 if ${lt_cv_path_LD+:} false; then :
6352 $as_echo_n "(cached) " >&6
6353 else
6354 if test -z "$LD"; then
6355 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6356 for ac_dir in $PATH; do
6357 IFS="$lt_save_ifs"
6358 test -z "$ac_dir" && ac_dir=.
6359 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6360 lt_cv_path_LD="$ac_dir/$ac_prog"
6361 # Check to see if the program is GNU ld. I'd rather use --version,
6362 # but apparently some variants of GNU ld only accept -v.
6363 # Break only if it was the GNU/non-GNU ld that we prefer.
6364 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6365 *GNU* | *'with BFD'*)
6366 test "$with_gnu_ld" != no && break
6369 test "$with_gnu_ld" != yes && break
6371 esac
6373 done
6374 IFS="$lt_save_ifs"
6375 else
6376 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6380 LD="$lt_cv_path_LD"
6381 if test -n "$LD"; then
6382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6383 $as_echo "$LD" >&6; }
6384 else
6385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6386 $as_echo "no" >&6; }
6388 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6390 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6391 if ${lt_cv_prog_gnu_ld+:} false; then :
6392 $as_echo_n "(cached) " >&6
6393 else
6394 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6395 case `$LD -v 2>&1 </dev/null` in
6396 *GNU* | *'with BFD'*)
6397 lt_cv_prog_gnu_ld=yes
6400 lt_cv_prog_gnu_ld=no
6402 esac
6404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6405 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6406 with_gnu_ld=$lt_cv_prog_gnu_ld
6416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6417 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6418 if ${lt_cv_path_NM+:} false; then :
6419 $as_echo_n "(cached) " >&6
6420 else
6421 if test -n "$NM"; then
6422 # Let the user override the test.
6423 lt_cv_path_NM="$NM"
6424 else
6425 lt_nm_to_check="${ac_tool_prefix}nm"
6426 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6427 lt_nm_to_check="$lt_nm_to_check nm"
6429 for lt_tmp_nm in $lt_nm_to_check; do
6430 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6431 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6432 IFS="$lt_save_ifs"
6433 test -z "$ac_dir" && ac_dir=.
6434 tmp_nm="$ac_dir/$lt_tmp_nm"
6435 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6436 # Check to see if the nm accepts a BSD-compat flag.
6437 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6438 # nm: unknown option "B" ignored
6439 # Tru64's nm complains that /dev/null is an invalid object file
6440 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6441 */dev/null* | *'Invalid file or object type'*)
6442 lt_cv_path_NM="$tmp_nm -B"
6443 break
6446 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6447 */dev/null*)
6448 lt_cv_path_NM="$tmp_nm -p"
6449 break
6452 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6453 continue # so that we can try to find one that supports BSD flags
6455 esac
6457 esac
6459 done
6460 IFS="$lt_save_ifs"
6461 done
6462 : ${lt_cv_path_NM=no}
6465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6466 $as_echo "$lt_cv_path_NM" >&6; }
6467 if test "$lt_cv_path_NM" != "no"; then
6468 NM="$lt_cv_path_NM"
6469 else
6470 # Didn't find any BSD compatible name lister, look for dumpbin.
6471 if test -n "$DUMPBIN"; then :
6472 # Let the user override the test.
6473 else
6474 if test -n "$ac_tool_prefix"; then
6475 for ac_prog in dumpbin "link -dump"
6477 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6478 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6480 $as_echo_n "checking for $ac_word... " >&6; }
6481 if ${ac_cv_prog_DUMPBIN+:} false; then :
6482 $as_echo_n "(cached) " >&6
6483 else
6484 if test -n "$DUMPBIN"; then
6485 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6486 else
6487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6488 for as_dir in $PATH
6490 IFS=$as_save_IFS
6491 test -z "$as_dir" && as_dir=.
6492 for ac_exec_ext in '' $ac_executable_extensions; do
6493 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6494 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6496 break 2
6498 done
6499 done
6500 IFS=$as_save_IFS
6504 DUMPBIN=$ac_cv_prog_DUMPBIN
6505 if test -n "$DUMPBIN"; then
6506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6507 $as_echo "$DUMPBIN" >&6; }
6508 else
6509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6510 $as_echo "no" >&6; }
6514 test -n "$DUMPBIN" && break
6515 done
6517 if test -z "$DUMPBIN"; then
6518 ac_ct_DUMPBIN=$DUMPBIN
6519 for ac_prog in dumpbin "link -dump"
6521 # Extract the first word of "$ac_prog", so it can be a program name with args.
6522 set dummy $ac_prog; ac_word=$2
6523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6524 $as_echo_n "checking for $ac_word... " >&6; }
6525 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6526 $as_echo_n "(cached) " >&6
6527 else
6528 if test -n "$ac_ct_DUMPBIN"; then
6529 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6530 else
6531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6532 for as_dir in $PATH
6534 IFS=$as_save_IFS
6535 test -z "$as_dir" && as_dir=.
6536 for ac_exec_ext in '' $ac_executable_extensions; do
6537 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6538 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6540 break 2
6542 done
6543 done
6544 IFS=$as_save_IFS
6548 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6549 if test -n "$ac_ct_DUMPBIN"; then
6550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6551 $as_echo "$ac_ct_DUMPBIN" >&6; }
6552 else
6553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6554 $as_echo "no" >&6; }
6558 test -n "$ac_ct_DUMPBIN" && break
6559 done
6561 if test "x$ac_ct_DUMPBIN" = x; then
6562 DUMPBIN=":"
6563 else
6564 case $cross_compiling:$ac_tool_warned in
6565 yes:)
6566 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6567 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6568 ac_tool_warned=yes ;;
6569 esac
6570 DUMPBIN=$ac_ct_DUMPBIN
6574 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6575 *COFF*)
6576 DUMPBIN="$DUMPBIN -symbols"
6579 DUMPBIN=:
6581 esac
6584 if test "$DUMPBIN" != ":"; then
6585 NM="$DUMPBIN"
6588 test -z "$NM" && NM=nm
6595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6596 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6597 if ${lt_cv_nm_interface+:} false; then :
6598 $as_echo_n "(cached) " >&6
6599 else
6600 lt_cv_nm_interface="BSD nm"
6601 echo "int some_variable = 0;" > conftest.$ac_ext
6602 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6603 (eval "$ac_compile" 2>conftest.err)
6604 cat conftest.err >&5
6605 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6606 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6607 cat conftest.err >&5
6608 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6609 cat conftest.out >&5
6610 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6611 lt_cv_nm_interface="MS dumpbin"
6613 rm -f conftest*
6615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6616 $as_echo "$lt_cv_nm_interface" >&6; }
6618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6619 $as_echo_n "checking whether ln -s works... " >&6; }
6620 LN_S=$as_ln_s
6621 if test "$LN_S" = "ln -s"; then
6622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6623 $as_echo "yes" >&6; }
6624 else
6625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6626 $as_echo "no, using $LN_S" >&6; }
6629 # find the maximum length of command line arguments
6630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6631 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6632 if ${lt_cv_sys_max_cmd_len+:} false; then :
6633 $as_echo_n "(cached) " >&6
6634 else
6636 teststring="ABCD"
6638 case $build_os in
6639 msdosdjgpp*)
6640 # On DJGPP, this test can blow up pretty badly due to problems in libc
6641 # (any single argument exceeding 2000 bytes causes a buffer overrun
6642 # during glob expansion). Even if it were fixed, the result of this
6643 # check would be larger than it should be.
6644 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6647 gnu*)
6648 # Under GNU Hurd, this test is not required because there is
6649 # no limit to the length of command line arguments.
6650 # Libtool will interpret -1 as no limit whatsoever
6651 lt_cv_sys_max_cmd_len=-1;
6654 cygwin* | mingw* | cegcc*)
6655 # On Win9x/ME, this test blows up -- it succeeds, but takes
6656 # about 5 minutes as the teststring grows exponentially.
6657 # Worse, since 9x/ME are not pre-emptively multitasking,
6658 # you end up with a "frozen" computer, even though with patience
6659 # the test eventually succeeds (with a max line length of 256k).
6660 # Instead, let's just punt: use the minimum linelength reported by
6661 # all of the supported platforms: 8192 (on NT/2K/XP).
6662 lt_cv_sys_max_cmd_len=8192;
6665 mint*)
6666 # On MiNT this can take a long time and run out of memory.
6667 lt_cv_sys_max_cmd_len=8192;
6670 amigaos*)
6671 # On AmigaOS with pdksh, this test takes hours, literally.
6672 # So we just punt and use a minimum line length of 8192.
6673 lt_cv_sys_max_cmd_len=8192;
6676 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6677 # This has been around since 386BSD, at least. Likely further.
6678 if test -x /sbin/sysctl; then
6679 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6680 elif test -x /usr/sbin/sysctl; then
6681 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6682 else
6683 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6685 # And add a safety zone
6686 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6687 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6690 interix*)
6691 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6692 lt_cv_sys_max_cmd_len=196608
6695 osf*)
6696 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6697 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6698 # nice to cause kernel panics so lets avoid the loop below.
6699 # First set a reasonable default.
6700 lt_cv_sys_max_cmd_len=16384
6702 if test -x /sbin/sysconfig; then
6703 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6704 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6705 esac
6708 sco3.2v5*)
6709 lt_cv_sys_max_cmd_len=102400
6711 sysv5* | sco5v6* | sysv4.2uw2*)
6712 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6713 if test -n "$kargmax"; then
6714 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6715 else
6716 lt_cv_sys_max_cmd_len=32768
6720 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6721 if test -n "$lt_cv_sys_max_cmd_len"; then
6722 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6723 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6724 else
6725 # Make teststring a little bigger before we do anything with it.
6726 # a 1K string should be a reasonable start.
6727 for i in 1 2 3 4 5 6 7 8 ; do
6728 teststring=$teststring$teststring
6729 done
6730 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6731 # If test is not a shell built-in, we'll probably end up computing a
6732 # maximum length that is only half of the actual maximum length, but
6733 # we can't tell.
6734 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6735 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6736 test $i != 17 # 1/2 MB should be enough
6738 i=`expr $i + 1`
6739 teststring=$teststring$teststring
6740 done
6741 # Only check the string length outside the loop.
6742 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6743 teststring=
6744 # Add a significant safety factor because C++ compilers can tack on
6745 # massive amounts of additional arguments before passing them to the
6746 # linker. It appears as though 1/2 is a usable value.
6747 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6750 esac
6754 if test -n $lt_cv_sys_max_cmd_len ; then
6755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6756 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6757 else
6758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6759 $as_echo "none" >&6; }
6761 max_cmd_len=$lt_cv_sys_max_cmd_len
6768 : ${CP="cp -f"}
6769 : ${MV="mv -f"}
6770 : ${RM="rm -f"}
6772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6773 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6774 # Try some XSI features
6775 xsi_shell=no
6776 ( _lt_dummy="a/b/c"
6777 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6778 = c,a/b,, \
6779 && eval 'test $(( 1 + 1 )) -eq 2 \
6780 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6781 && xsi_shell=yes
6782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6783 $as_echo "$xsi_shell" >&6; }
6786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6787 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6788 lt_shell_append=no
6789 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6790 >/dev/null 2>&1 \
6791 && lt_shell_append=yes
6792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6793 $as_echo "$lt_shell_append" >&6; }
6796 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6797 lt_unset=unset
6798 else
6799 lt_unset=false
6806 # test EBCDIC or ASCII
6807 case `echo X|tr X '\101'` in
6808 A) # ASCII based system
6809 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6810 lt_SP2NL='tr \040 \012'
6811 lt_NL2SP='tr \015\012 \040\040'
6813 *) # EBCDIC based system
6814 lt_SP2NL='tr \100 \n'
6815 lt_NL2SP='tr \r\n \100\100'
6817 esac
6827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6828 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6829 if ${lt_cv_ld_reload_flag+:} false; then :
6830 $as_echo_n "(cached) " >&6
6831 else
6832 lt_cv_ld_reload_flag='-r'
6834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6835 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6836 reload_flag=$lt_cv_ld_reload_flag
6837 case $reload_flag in
6838 "" | " "*) ;;
6839 *) reload_flag=" $reload_flag" ;;
6840 esac
6841 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6842 case $host_os in
6843 darwin*)
6844 if test "$GCC" = yes; then
6845 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6846 else
6847 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6850 esac
6860 if test -n "$ac_tool_prefix"; then
6861 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6862 set dummy ${ac_tool_prefix}objdump; 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_OBJDUMP+:} false; then :
6866 $as_echo_n "(cached) " >&6
6867 else
6868 if test -n "$OBJDUMP"; then
6869 ac_cv_prog_OBJDUMP="$OBJDUMP" # 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_OBJDUMP="${ac_tool_prefix}objdump"
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 OBJDUMP=$ac_cv_prog_OBJDUMP
6889 if test -n "$OBJDUMP"; then
6890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6891 $as_echo "$OBJDUMP" >&6; }
6892 else
6893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6894 $as_echo "no" >&6; }
6899 if test -z "$ac_cv_prog_OBJDUMP"; then
6900 ac_ct_OBJDUMP=$OBJDUMP
6901 # Extract the first word of "objdump", so it can be a program name with args.
6902 set dummy objdump; ac_word=$2
6903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6904 $as_echo_n "checking for $ac_word... " >&6; }
6905 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6906 $as_echo_n "(cached) " >&6
6907 else
6908 if test -n "$ac_ct_OBJDUMP"; then
6909 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6910 else
6911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6912 for as_dir in $PATH
6914 IFS=$as_save_IFS
6915 test -z "$as_dir" && as_dir=.
6916 for ac_exec_ext in '' $ac_executable_extensions; do
6917 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6918 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6920 break 2
6922 done
6923 done
6924 IFS=$as_save_IFS
6928 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6929 if test -n "$ac_ct_OBJDUMP"; then
6930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6931 $as_echo "$ac_ct_OBJDUMP" >&6; }
6932 else
6933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6934 $as_echo "no" >&6; }
6937 if test "x$ac_ct_OBJDUMP" = x; then
6938 OBJDUMP="false"
6939 else
6940 case $cross_compiling:$ac_tool_warned in
6941 yes:)
6942 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6943 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6944 ac_tool_warned=yes ;;
6945 esac
6946 OBJDUMP=$ac_ct_OBJDUMP
6948 else
6949 OBJDUMP="$ac_cv_prog_OBJDUMP"
6952 test -z "$OBJDUMP" && OBJDUMP=objdump
6962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6963 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6964 if ${lt_cv_deplibs_check_method+:} false; then :
6965 $as_echo_n "(cached) " >&6
6966 else
6967 lt_cv_file_magic_cmd='$MAGIC_CMD'
6968 lt_cv_file_magic_test_file=
6969 lt_cv_deplibs_check_method='unknown'
6970 # Need to set the preceding variable on all platforms that support
6971 # interlibrary dependencies.
6972 # 'none' -- dependencies not supported.
6973 # `unknown' -- same as none, but documents that we really don't know.
6974 # 'pass_all' -- all dependencies passed with no checks.
6975 # 'test_compile' -- check by making test program.
6976 # 'file_magic [[regex]]' -- check by looking for files in library path
6977 # which responds to the $file_magic_cmd with a given extended regex.
6978 # If you have `file' or equivalent on your system and you're not sure
6979 # whether `pass_all' will *always* work, you probably want this one.
6981 case $host_os in
6982 aix[4-9]*)
6983 lt_cv_deplibs_check_method=pass_all
6986 beos*)
6987 lt_cv_deplibs_check_method=pass_all
6990 bsdi[45]*)
6991 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6992 lt_cv_file_magic_cmd='/usr/bin/file -L'
6993 lt_cv_file_magic_test_file=/shlib/libc.so
6996 cygwin*)
6997 # func_win32_libid is a shell function defined in ltmain.sh
6998 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6999 lt_cv_file_magic_cmd='func_win32_libid'
7002 mingw* | pw32*)
7003 # Base MSYS/MinGW do not provide the 'file' command needed by
7004 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7005 # unless we find 'file', for example because we are cross-compiling.
7006 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7007 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7008 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7009 lt_cv_file_magic_cmd='func_win32_libid'
7010 else
7011 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7012 lt_cv_file_magic_cmd='$OBJDUMP -f'
7016 cegcc*)
7017 # use the weaker test based on 'objdump'. See mingw*.
7018 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7019 lt_cv_file_magic_cmd='$OBJDUMP -f'
7022 darwin* | rhapsody*)
7023 lt_cv_deplibs_check_method=pass_all
7026 freebsd* | dragonfly*)
7027 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7028 case $host_cpu in
7029 i*86 )
7030 # Not sure whether the presence of OpenBSD here was a mistake.
7031 # Let's accept both of them until this is cleared up.
7032 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7033 lt_cv_file_magic_cmd=/usr/bin/file
7034 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7036 esac
7037 else
7038 lt_cv_deplibs_check_method=pass_all
7042 gnu*)
7043 lt_cv_deplibs_check_method=pass_all
7046 haiku*)
7047 lt_cv_deplibs_check_method=pass_all
7050 hpux10.20* | hpux11*)
7051 lt_cv_file_magic_cmd=/usr/bin/file
7052 case $host_cpu in
7053 ia64*)
7054 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7055 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7057 hppa*64*)
7058 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]'
7059 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7062 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7063 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7065 esac
7068 interix[3-9]*)
7069 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7070 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7073 irix5* | irix6* | nonstopux*)
7074 case $LD in
7075 *-32|*"-32 ") libmagic=32-bit;;
7076 *-n32|*"-n32 ") libmagic=N32;;
7077 *-64|*"-64 ") libmagic=64-bit;;
7078 *) libmagic=never-match;;
7079 esac
7080 lt_cv_deplibs_check_method=pass_all
7083 # This must be Linux ELF.
7084 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
7085 lt_cv_deplibs_check_method=pass_all
7088 netbsd*)
7089 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7090 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7091 else
7092 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7096 newos6*)
7097 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7098 lt_cv_file_magic_cmd=/usr/bin/file
7099 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7102 *nto* | *qnx*)
7103 lt_cv_deplibs_check_method=pass_all
7106 openbsd*)
7107 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7108 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7109 else
7110 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7114 osf3* | osf4* | osf5*)
7115 lt_cv_deplibs_check_method=pass_all
7118 rdos*)
7119 lt_cv_deplibs_check_method=pass_all
7122 solaris*)
7123 lt_cv_deplibs_check_method=pass_all
7126 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7127 lt_cv_deplibs_check_method=pass_all
7130 sysv4 | sysv4.3*)
7131 case $host_vendor in
7132 motorola)
7133 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]'
7134 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7136 ncr)
7137 lt_cv_deplibs_check_method=pass_all
7139 sequent)
7140 lt_cv_file_magic_cmd='/bin/file'
7141 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7143 sni)
7144 lt_cv_file_magic_cmd='/bin/file'
7145 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7146 lt_cv_file_magic_test_file=/lib/libc.so
7148 siemens)
7149 lt_cv_deplibs_check_method=pass_all
7152 lt_cv_deplibs_check_method=pass_all
7154 esac
7157 tpf*)
7158 lt_cv_deplibs_check_method=pass_all
7160 vxworks*)
7161 # Assume VxWorks cross toolchains are built on Linux, possibly
7162 # as canadian for Windows hosts.
7163 lt_cv_deplibs_check_method=pass_all
7165 esac
7168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7169 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7170 file_magic_cmd=$lt_cv_file_magic_cmd
7171 deplibs_check_method=$lt_cv_deplibs_check_method
7172 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7185 if test -n "$ac_tool_prefix"; then
7186 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7187 set dummy ${ac_tool_prefix}ar; ac_word=$2
7188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7189 $as_echo_n "checking for $ac_word... " >&6; }
7190 if ${ac_cv_prog_AR+:} false; then :
7191 $as_echo_n "(cached) " >&6
7192 else
7193 if test -n "$AR"; then
7194 ac_cv_prog_AR="$AR" # Let the user override the test.
7195 else
7196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7197 for as_dir in $PATH
7199 IFS=$as_save_IFS
7200 test -z "$as_dir" && as_dir=.
7201 for ac_exec_ext in '' $ac_executable_extensions; do
7202 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7203 ac_cv_prog_AR="${ac_tool_prefix}ar"
7204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7205 break 2
7207 done
7208 done
7209 IFS=$as_save_IFS
7213 AR=$ac_cv_prog_AR
7214 if test -n "$AR"; then
7215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7216 $as_echo "$AR" >&6; }
7217 else
7218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7219 $as_echo "no" >&6; }
7224 if test -z "$ac_cv_prog_AR"; then
7225 ac_ct_AR=$AR
7226 # Extract the first word of "ar", so it can be a program name with args.
7227 set dummy ar; ac_word=$2
7228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7229 $as_echo_n "checking for $ac_word... " >&6; }
7230 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7231 $as_echo_n "(cached) " >&6
7232 else
7233 if test -n "$ac_ct_AR"; then
7234 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7235 else
7236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7237 for as_dir in $PATH
7239 IFS=$as_save_IFS
7240 test -z "$as_dir" && as_dir=.
7241 for ac_exec_ext in '' $ac_executable_extensions; do
7242 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7243 ac_cv_prog_ac_ct_AR="ar"
7244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7245 break 2
7247 done
7248 done
7249 IFS=$as_save_IFS
7253 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7254 if test -n "$ac_ct_AR"; then
7255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7256 $as_echo "$ac_ct_AR" >&6; }
7257 else
7258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7259 $as_echo "no" >&6; }
7262 if test "x$ac_ct_AR" = x; then
7263 AR="false"
7264 else
7265 case $cross_compiling:$ac_tool_warned in
7266 yes:)
7267 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7268 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7269 ac_tool_warned=yes ;;
7270 esac
7271 AR=$ac_ct_AR
7273 else
7274 AR="$ac_cv_prog_AR"
7277 test -z "$AR" && AR=ar
7278 test -z "$AR_FLAGS" && AR_FLAGS=cru
7290 if test -n "$ac_tool_prefix"; then
7291 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7292 set dummy ${ac_tool_prefix}strip; ac_word=$2
7293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7294 $as_echo_n "checking for $ac_word... " >&6; }
7295 if ${ac_cv_prog_STRIP+:} false; then :
7296 $as_echo_n "(cached) " >&6
7297 else
7298 if test -n "$STRIP"; then
7299 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7300 else
7301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7302 for as_dir in $PATH
7304 IFS=$as_save_IFS
7305 test -z "$as_dir" && as_dir=.
7306 for ac_exec_ext in '' $ac_executable_extensions; do
7307 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7308 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7310 break 2
7312 done
7313 done
7314 IFS=$as_save_IFS
7318 STRIP=$ac_cv_prog_STRIP
7319 if test -n "$STRIP"; then
7320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7321 $as_echo "$STRIP" >&6; }
7322 else
7323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7324 $as_echo "no" >&6; }
7329 if test -z "$ac_cv_prog_STRIP"; then
7330 ac_ct_STRIP=$STRIP
7331 # Extract the first word of "strip", so it can be a program name with args.
7332 set dummy strip; ac_word=$2
7333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7334 $as_echo_n "checking for $ac_word... " >&6; }
7335 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7336 $as_echo_n "(cached) " >&6
7337 else
7338 if test -n "$ac_ct_STRIP"; then
7339 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7340 else
7341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7342 for as_dir in $PATH
7344 IFS=$as_save_IFS
7345 test -z "$as_dir" && as_dir=.
7346 for ac_exec_ext in '' $ac_executable_extensions; do
7347 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7348 ac_cv_prog_ac_ct_STRIP="strip"
7349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7350 break 2
7352 done
7353 done
7354 IFS=$as_save_IFS
7358 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7359 if test -n "$ac_ct_STRIP"; then
7360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7361 $as_echo "$ac_ct_STRIP" >&6; }
7362 else
7363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7364 $as_echo "no" >&6; }
7367 if test "x$ac_ct_STRIP" = x; then
7368 STRIP=":"
7369 else
7370 case $cross_compiling:$ac_tool_warned in
7371 yes:)
7372 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7373 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7374 ac_tool_warned=yes ;;
7375 esac
7376 STRIP=$ac_ct_STRIP
7378 else
7379 STRIP="$ac_cv_prog_STRIP"
7382 test -z "$STRIP" && STRIP=:
7389 if test -n "$ac_tool_prefix"; then
7390 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7391 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7393 $as_echo_n "checking for $ac_word... " >&6; }
7394 if ${ac_cv_prog_RANLIB+:} false; then :
7395 $as_echo_n "(cached) " >&6
7396 else
7397 if test -n "$RANLIB"; then
7398 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7399 else
7400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7401 for as_dir in $PATH
7403 IFS=$as_save_IFS
7404 test -z "$as_dir" && as_dir=.
7405 for ac_exec_ext in '' $ac_executable_extensions; do
7406 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7407 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7409 break 2
7411 done
7412 done
7413 IFS=$as_save_IFS
7417 RANLIB=$ac_cv_prog_RANLIB
7418 if test -n "$RANLIB"; then
7419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7420 $as_echo "$RANLIB" >&6; }
7421 else
7422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7423 $as_echo "no" >&6; }
7428 if test -z "$ac_cv_prog_RANLIB"; then
7429 ac_ct_RANLIB=$RANLIB
7430 # Extract the first word of "ranlib", so it can be a program name with args.
7431 set dummy ranlib; ac_word=$2
7432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7433 $as_echo_n "checking for $ac_word... " >&6; }
7434 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7435 $as_echo_n "(cached) " >&6
7436 else
7437 if test -n "$ac_ct_RANLIB"; then
7438 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7439 else
7440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7441 for as_dir in $PATH
7443 IFS=$as_save_IFS
7444 test -z "$as_dir" && as_dir=.
7445 for ac_exec_ext in '' $ac_executable_extensions; do
7446 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7447 ac_cv_prog_ac_ct_RANLIB="ranlib"
7448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7449 break 2
7451 done
7452 done
7453 IFS=$as_save_IFS
7457 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7458 if test -n "$ac_ct_RANLIB"; then
7459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7460 $as_echo "$ac_ct_RANLIB" >&6; }
7461 else
7462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7463 $as_echo "no" >&6; }
7466 if test "x$ac_ct_RANLIB" = x; then
7467 RANLIB=":"
7468 else
7469 case $cross_compiling:$ac_tool_warned in
7470 yes:)
7471 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7472 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7473 ac_tool_warned=yes ;;
7474 esac
7475 RANLIB=$ac_ct_RANLIB
7477 else
7478 RANLIB="$ac_cv_prog_RANLIB"
7481 test -z "$RANLIB" && RANLIB=:
7488 # Determine commands to create old-style static archives.
7489 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7490 old_postinstall_cmds='chmod 644 $oldlib'
7491 old_postuninstall_cmds=
7493 if test -n "$RANLIB"; then
7494 case $host_os in
7495 openbsd*)
7496 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7499 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7501 esac
7502 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7505 case $host_os in
7506 darwin*)
7507 lock_old_archive_extraction=yes ;;
7509 lock_old_archive_extraction=no ;;
7510 esac
7550 # If no C compiler was specified, use CC.
7551 LTCC=${LTCC-"$CC"}
7553 # If no C compiler flags were specified, use CFLAGS.
7554 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7556 # Allow CC to be a program name with arguments.
7557 compiler=$CC
7560 # Check for command to grab the raw symbol name followed by C symbol from nm.
7561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7562 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7563 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7564 $as_echo_n "(cached) " >&6
7565 else
7567 # These are sane defaults that work on at least a few old systems.
7568 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7570 # Character class describing NM global symbol codes.
7571 symcode='[BCDEGRST]'
7573 # Regexp to match symbols that can be accessed directly from C.
7574 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7576 # Define system-specific variables.
7577 case $host_os in
7578 aix*)
7579 symcode='[BCDT]'
7581 cygwin* | mingw* | pw32* | cegcc*)
7582 symcode='[ABCDGISTW]'
7584 hpux*)
7585 if test "$host_cpu" = ia64; then
7586 symcode='[ABCDEGRST]'
7589 irix* | nonstopux*)
7590 symcode='[BCDEGRST]'
7592 osf*)
7593 symcode='[BCDEGQRST]'
7595 solaris*)
7596 symcode='[BDRT]'
7598 sco3.2v5*)
7599 symcode='[DT]'
7601 sysv4.2uw2*)
7602 symcode='[DT]'
7604 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7605 symcode='[ABDT]'
7607 sysv4)
7608 symcode='[DFNSTU]'
7610 esac
7612 # If we're using GNU nm, then use its standard symbol codes.
7613 case `$NM -V 2>&1` in
7614 *GNU* | *'with BFD'*)
7615 symcode='[ABCDGIRSTW]' ;;
7616 esac
7618 # Transform an extracted symbol line into a proper C declaration.
7619 # Some systems (esp. on ia64) link data and code symbols differently,
7620 # so use this general approach.
7621 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7623 # Transform an extracted symbol line into symbol name and symbol address
7624 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7625 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'"
7627 # Handle CRLF in mingw tool chain
7628 opt_cr=
7629 case $build_os in
7630 mingw*)
7631 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7633 esac
7635 # Try without a prefix underscore, then with it.
7636 for ac_symprfx in "" "_"; do
7638 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7639 symxfrm="\\1 $ac_symprfx\\2 \\2"
7641 # Write the raw and C identifiers.
7642 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7643 # Fake it for dumpbin and say T for any non-static function
7644 # and D for any global variable.
7645 # Also find C++ and __fastcall symbols from MSVC++,
7646 # which start with @ or ?.
7647 lt_cv_sys_global_symbol_pipe="$AWK '"\
7648 " {last_section=section; section=\$ 3};"\
7649 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7650 " \$ 0!~/External *\|/{next};"\
7651 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7652 " {if(hide[section]) next};"\
7653 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7654 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7655 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7656 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7657 " ' prfx=^$ac_symprfx"
7658 else
7659 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7662 # Check to see that the pipe works correctly.
7663 pipe_works=no
7665 rm -f conftest*
7666 cat > conftest.$ac_ext <<_LT_EOF
7667 #ifdef __cplusplus
7668 extern "C" {
7669 #endif
7670 char nm_test_var;
7671 void nm_test_func(void);
7672 void nm_test_func(void){}
7673 #ifdef __cplusplus
7675 #endif
7676 int main(){nm_test_var='a';nm_test_func();return(0);}
7677 _LT_EOF
7679 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7680 (eval $ac_compile) 2>&5
7681 ac_status=$?
7682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7683 test $ac_status = 0; }; then
7684 # Now try to grab the symbols.
7685 nlist=conftest.nm
7686 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7687 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7688 ac_status=$?
7689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7690 test $ac_status = 0; } && test -s "$nlist"; then
7691 # Try sorting and uniquifying the output.
7692 if sort "$nlist" | uniq > "$nlist"T; then
7693 mv -f "$nlist"T "$nlist"
7694 else
7695 rm -f "$nlist"T
7698 # Make sure that we snagged all the symbols we need.
7699 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7700 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7701 cat <<_LT_EOF > conftest.$ac_ext
7702 #ifdef __cplusplus
7703 extern "C" {
7704 #endif
7706 _LT_EOF
7707 # Now generate the symbol file.
7708 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7710 cat <<_LT_EOF >> conftest.$ac_ext
7712 /* The mapping between symbol names and symbols. */
7713 const struct {
7714 const char *name;
7715 void *address;
7717 lt__PROGRAM__LTX_preloaded_symbols[] =
7719 { "@PROGRAM@", (void *) 0 },
7720 _LT_EOF
7721 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7722 cat <<\_LT_EOF >> conftest.$ac_ext
7723 {0, (void *) 0}
7726 /* This works around a problem in FreeBSD linker */
7727 #ifdef FREEBSD_WORKAROUND
7728 static const void *lt_preloaded_setup() {
7729 return lt__PROGRAM__LTX_preloaded_symbols;
7731 #endif
7733 #ifdef __cplusplus
7735 #endif
7736 _LT_EOF
7737 # Now try linking the two files.
7738 mv conftest.$ac_objext conftstm.$ac_objext
7739 lt_save_LIBS="$LIBS"
7740 lt_save_CFLAGS="$CFLAGS"
7741 LIBS="conftstm.$ac_objext"
7742 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7743 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7744 (eval $ac_link) 2>&5
7745 ac_status=$?
7746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7747 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7748 pipe_works=yes
7750 LIBS="$lt_save_LIBS"
7751 CFLAGS="$lt_save_CFLAGS"
7752 else
7753 echo "cannot find nm_test_func in $nlist" >&5
7755 else
7756 echo "cannot find nm_test_var in $nlist" >&5
7758 else
7759 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7761 else
7762 echo "$progname: failed program was:" >&5
7763 cat conftest.$ac_ext >&5
7765 rm -rf conftest* conftst*
7767 # Do not use the global_symbol_pipe unless it works.
7768 if test "$pipe_works" = yes; then
7769 break
7770 else
7771 lt_cv_sys_global_symbol_pipe=
7773 done
7777 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7778 lt_cv_sys_global_symbol_to_cdecl=
7780 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7782 $as_echo "failed" >&6; }
7783 else
7784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7785 $as_echo "ok" >&6; }
7809 # Check whether --enable-libtool-lock was given.
7810 if test "${enable_libtool_lock+set}" = set; then :
7811 enableval=$enable_libtool_lock;
7814 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7816 # Some flags need to be propagated to the compiler or linker for good
7817 # libtool support.
7818 case $host in
7819 ia64-*-hpux*)
7820 # Find out which ABI we are using.
7821 echo 'int i;' > conftest.$ac_ext
7822 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7823 (eval $ac_compile) 2>&5
7824 ac_status=$?
7825 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7826 test $ac_status = 0; }; then
7827 case `/usr/bin/file conftest.$ac_objext` in
7828 *ELF-32*)
7829 HPUX_IA64_MODE="32"
7831 *ELF-64*)
7832 HPUX_IA64_MODE="64"
7834 esac
7836 rm -rf conftest*
7838 *-*-irix6*)
7839 # Find out which ABI we are using.
7840 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7841 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7842 (eval $ac_compile) 2>&5
7843 ac_status=$?
7844 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7845 test $ac_status = 0; }; then
7846 if test "$lt_cv_prog_gnu_ld" = yes; then
7847 case `/usr/bin/file conftest.$ac_objext` in
7848 *32-bit*)
7849 LD="${LD-ld} -melf32bsmip"
7851 *N32*)
7852 LD="${LD-ld} -melf32bmipn32"
7854 *64-bit*)
7855 LD="${LD-ld} -melf64bmip"
7857 esac
7858 else
7859 case `/usr/bin/file conftest.$ac_objext` in
7860 *32-bit*)
7861 LD="${LD-ld} -32"
7863 *N32*)
7864 LD="${LD-ld} -n32"
7866 *64-bit*)
7867 LD="${LD-ld} -64"
7869 esac
7872 rm -rf conftest*
7875 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7876 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7877 # Find out which ABI we are using.
7878 echo 'int i;' > conftest.$ac_ext
7879 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7880 (eval $ac_compile) 2>&5
7881 ac_status=$?
7882 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7883 test $ac_status = 0; }; then
7884 case `/usr/bin/file conftest.o` in
7885 *32-bit*)
7886 case $host in
7887 x86_64-*kfreebsd*-gnu)
7888 LD="${LD-ld} -m elf_i386_fbsd"
7890 x86_64-*linux*)
7891 case `/usr/bin/file conftest.o` in
7892 *x86-64*)
7893 LD="${LD-ld} -m elf32_x86_64"
7896 LD="${LD-ld} -m elf_i386"
7898 esac
7900 powerpc64le-*linux*)
7901 LD="${LD-ld} -m elf32lppclinux"
7903 powerpc64-*linux*)
7904 LD="${LD-ld} -m elf32ppclinux"
7906 s390x-*linux*)
7907 LD="${LD-ld} -m elf_s390"
7909 sparc64-*linux*)
7910 LD="${LD-ld} -m elf32_sparc"
7912 esac
7914 *64-bit*)
7915 case $host in
7916 x86_64-*kfreebsd*-gnu)
7917 LD="${LD-ld} -m elf_x86_64_fbsd"
7919 x86_64-*linux*)
7920 LD="${LD-ld} -m elf_x86_64"
7922 powerpcle-*linux*)
7923 LD="${LD-ld} -m elf64lppc"
7925 powerpc-*linux*)
7926 LD="${LD-ld} -m elf64ppc"
7928 s390*-*linux*|s390*-*tpf*)
7929 LD="${LD-ld} -m elf64_s390"
7931 sparc*-*linux*)
7932 LD="${LD-ld} -m elf64_sparc"
7934 esac
7936 esac
7938 rm -rf conftest*
7941 *-*-sco3.2v5*)
7942 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7943 SAVE_CFLAGS="$CFLAGS"
7944 CFLAGS="$CFLAGS -belf"
7945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7946 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7947 if ${lt_cv_cc_needs_belf+:} false; then :
7948 $as_echo_n "(cached) " >&6
7949 else
7950 ac_ext=c
7951 ac_cpp='$CPP $CPPFLAGS'
7952 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7953 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7954 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7957 /* end confdefs.h. */
7960 main ()
7964 return 0;
7966 _ACEOF
7967 if ac_fn_c_try_link "$LINENO"; then :
7968 lt_cv_cc_needs_belf=yes
7969 else
7970 lt_cv_cc_needs_belf=no
7972 rm -f core conftest.err conftest.$ac_objext \
7973 conftest$ac_exeext conftest.$ac_ext
7974 ac_ext=c
7975 ac_cpp='$CPP $CPPFLAGS'
7976 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7977 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7978 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7982 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7983 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7984 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7985 CFLAGS="$SAVE_CFLAGS"
7988 sparc*-*solaris*)
7989 # Find out which ABI we are using.
7990 echo 'int i;' > conftest.$ac_ext
7991 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7992 (eval $ac_compile) 2>&5
7993 ac_status=$?
7994 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7995 test $ac_status = 0; }; then
7996 case `/usr/bin/file conftest.o` in
7997 *64-bit*)
7998 case $lt_cv_prog_gnu_ld in
7999 yes*) LD="${LD-ld} -m elf64_sparc" ;;
8001 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8002 LD="${LD-ld} -64"
8005 esac
8007 esac
8009 rm -rf conftest*
8011 esac
8013 need_locks="$enable_libtool_lock"
8016 case $host_os in
8017 rhapsody* | darwin*)
8018 if test -n "$ac_tool_prefix"; then
8019 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8020 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8022 $as_echo_n "checking for $ac_word... " >&6; }
8023 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8024 $as_echo_n "(cached) " >&6
8025 else
8026 if test -n "$DSYMUTIL"; then
8027 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8028 else
8029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8030 for as_dir in $PATH
8032 IFS=$as_save_IFS
8033 test -z "$as_dir" && as_dir=.
8034 for ac_exec_ext in '' $ac_executable_extensions; do
8035 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8036 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8038 break 2
8040 done
8041 done
8042 IFS=$as_save_IFS
8046 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8047 if test -n "$DSYMUTIL"; then
8048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8049 $as_echo "$DSYMUTIL" >&6; }
8050 else
8051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8052 $as_echo "no" >&6; }
8057 if test -z "$ac_cv_prog_DSYMUTIL"; then
8058 ac_ct_DSYMUTIL=$DSYMUTIL
8059 # Extract the first word of "dsymutil", so it can be a program name with args.
8060 set dummy dsymutil; ac_word=$2
8061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8062 $as_echo_n "checking for $ac_word... " >&6; }
8063 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8064 $as_echo_n "(cached) " >&6
8065 else
8066 if test -n "$ac_ct_DSYMUTIL"; then
8067 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8068 else
8069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8070 for as_dir in $PATH
8072 IFS=$as_save_IFS
8073 test -z "$as_dir" && as_dir=.
8074 for ac_exec_ext in '' $ac_executable_extensions; do
8075 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8076 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8078 break 2
8080 done
8081 done
8082 IFS=$as_save_IFS
8086 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8087 if test -n "$ac_ct_DSYMUTIL"; then
8088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8089 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8090 else
8091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8092 $as_echo "no" >&6; }
8095 if test "x$ac_ct_DSYMUTIL" = x; then
8096 DSYMUTIL=":"
8097 else
8098 case $cross_compiling:$ac_tool_warned in
8099 yes:)
8100 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8101 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8102 ac_tool_warned=yes ;;
8103 esac
8104 DSYMUTIL=$ac_ct_DSYMUTIL
8106 else
8107 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8110 if test -n "$ac_tool_prefix"; then
8111 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8112 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8114 $as_echo_n "checking for $ac_word... " >&6; }
8115 if ${ac_cv_prog_NMEDIT+:} false; then :
8116 $as_echo_n "(cached) " >&6
8117 else
8118 if test -n "$NMEDIT"; then
8119 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8120 else
8121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8122 for as_dir in $PATH
8124 IFS=$as_save_IFS
8125 test -z "$as_dir" && as_dir=.
8126 for ac_exec_ext in '' $ac_executable_extensions; do
8127 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8128 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8130 break 2
8132 done
8133 done
8134 IFS=$as_save_IFS
8138 NMEDIT=$ac_cv_prog_NMEDIT
8139 if test -n "$NMEDIT"; then
8140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8141 $as_echo "$NMEDIT" >&6; }
8142 else
8143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8144 $as_echo "no" >&6; }
8149 if test -z "$ac_cv_prog_NMEDIT"; then
8150 ac_ct_NMEDIT=$NMEDIT
8151 # Extract the first word of "nmedit", so it can be a program name with args.
8152 set dummy nmedit; ac_word=$2
8153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8154 $as_echo_n "checking for $ac_word... " >&6; }
8155 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8156 $as_echo_n "(cached) " >&6
8157 else
8158 if test -n "$ac_ct_NMEDIT"; then
8159 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8160 else
8161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8162 for as_dir in $PATH
8164 IFS=$as_save_IFS
8165 test -z "$as_dir" && as_dir=.
8166 for ac_exec_ext in '' $ac_executable_extensions; do
8167 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8168 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8170 break 2
8172 done
8173 done
8174 IFS=$as_save_IFS
8178 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8179 if test -n "$ac_ct_NMEDIT"; then
8180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8181 $as_echo "$ac_ct_NMEDIT" >&6; }
8182 else
8183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8184 $as_echo "no" >&6; }
8187 if test "x$ac_ct_NMEDIT" = x; then
8188 NMEDIT=":"
8189 else
8190 case $cross_compiling:$ac_tool_warned in
8191 yes:)
8192 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8193 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8194 ac_tool_warned=yes ;;
8195 esac
8196 NMEDIT=$ac_ct_NMEDIT
8198 else
8199 NMEDIT="$ac_cv_prog_NMEDIT"
8202 if test -n "$ac_tool_prefix"; then
8203 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8204 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8206 $as_echo_n "checking for $ac_word... " >&6; }
8207 if ${ac_cv_prog_LIPO+:} false; then :
8208 $as_echo_n "(cached) " >&6
8209 else
8210 if test -n "$LIPO"; then
8211 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8212 else
8213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8214 for as_dir in $PATH
8216 IFS=$as_save_IFS
8217 test -z "$as_dir" && as_dir=.
8218 for ac_exec_ext in '' $ac_executable_extensions; do
8219 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8220 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8222 break 2
8224 done
8225 done
8226 IFS=$as_save_IFS
8230 LIPO=$ac_cv_prog_LIPO
8231 if test -n "$LIPO"; then
8232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8233 $as_echo "$LIPO" >&6; }
8234 else
8235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8236 $as_echo "no" >&6; }
8241 if test -z "$ac_cv_prog_LIPO"; then
8242 ac_ct_LIPO=$LIPO
8243 # Extract the first word of "lipo", so it can be a program name with args.
8244 set dummy lipo; ac_word=$2
8245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8246 $as_echo_n "checking for $ac_word... " >&6; }
8247 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8248 $as_echo_n "(cached) " >&6
8249 else
8250 if test -n "$ac_ct_LIPO"; then
8251 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8252 else
8253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8254 for as_dir in $PATH
8256 IFS=$as_save_IFS
8257 test -z "$as_dir" && as_dir=.
8258 for ac_exec_ext in '' $ac_executable_extensions; do
8259 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8260 ac_cv_prog_ac_ct_LIPO="lipo"
8261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8262 break 2
8264 done
8265 done
8266 IFS=$as_save_IFS
8270 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8271 if test -n "$ac_ct_LIPO"; then
8272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8273 $as_echo "$ac_ct_LIPO" >&6; }
8274 else
8275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8276 $as_echo "no" >&6; }
8279 if test "x$ac_ct_LIPO" = x; then
8280 LIPO=":"
8281 else
8282 case $cross_compiling:$ac_tool_warned in
8283 yes:)
8284 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8285 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8286 ac_tool_warned=yes ;;
8287 esac
8288 LIPO=$ac_ct_LIPO
8290 else
8291 LIPO="$ac_cv_prog_LIPO"
8294 if test -n "$ac_tool_prefix"; then
8295 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8296 set dummy ${ac_tool_prefix}otool; ac_word=$2
8297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8298 $as_echo_n "checking for $ac_word... " >&6; }
8299 if ${ac_cv_prog_OTOOL+:} false; then :
8300 $as_echo_n "(cached) " >&6
8301 else
8302 if test -n "$OTOOL"; then
8303 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8304 else
8305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8306 for as_dir in $PATH
8308 IFS=$as_save_IFS
8309 test -z "$as_dir" && as_dir=.
8310 for ac_exec_ext in '' $ac_executable_extensions; do
8311 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8312 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8313 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8314 break 2
8316 done
8317 done
8318 IFS=$as_save_IFS
8322 OTOOL=$ac_cv_prog_OTOOL
8323 if test -n "$OTOOL"; then
8324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8325 $as_echo "$OTOOL" >&6; }
8326 else
8327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8328 $as_echo "no" >&6; }
8333 if test -z "$ac_cv_prog_OTOOL"; then
8334 ac_ct_OTOOL=$OTOOL
8335 # Extract the first word of "otool", so it can be a program name with args.
8336 set dummy otool; ac_word=$2
8337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8338 $as_echo_n "checking for $ac_word... " >&6; }
8339 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8340 $as_echo_n "(cached) " >&6
8341 else
8342 if test -n "$ac_ct_OTOOL"; then
8343 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8344 else
8345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8346 for as_dir in $PATH
8348 IFS=$as_save_IFS
8349 test -z "$as_dir" && as_dir=.
8350 for ac_exec_ext in '' $ac_executable_extensions; do
8351 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8352 ac_cv_prog_ac_ct_OTOOL="otool"
8353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8354 break 2
8356 done
8357 done
8358 IFS=$as_save_IFS
8362 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8363 if test -n "$ac_ct_OTOOL"; then
8364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8365 $as_echo "$ac_ct_OTOOL" >&6; }
8366 else
8367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8368 $as_echo "no" >&6; }
8371 if test "x$ac_ct_OTOOL" = x; then
8372 OTOOL=":"
8373 else
8374 case $cross_compiling:$ac_tool_warned in
8375 yes:)
8376 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8377 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8378 ac_tool_warned=yes ;;
8379 esac
8380 OTOOL=$ac_ct_OTOOL
8382 else
8383 OTOOL="$ac_cv_prog_OTOOL"
8386 if test -n "$ac_tool_prefix"; then
8387 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8388 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8390 $as_echo_n "checking for $ac_word... " >&6; }
8391 if ${ac_cv_prog_OTOOL64+:} false; then :
8392 $as_echo_n "(cached) " >&6
8393 else
8394 if test -n "$OTOOL64"; then
8395 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8396 else
8397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8398 for as_dir in $PATH
8400 IFS=$as_save_IFS
8401 test -z "$as_dir" && as_dir=.
8402 for ac_exec_ext in '' $ac_executable_extensions; do
8403 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8404 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8406 break 2
8408 done
8409 done
8410 IFS=$as_save_IFS
8414 OTOOL64=$ac_cv_prog_OTOOL64
8415 if test -n "$OTOOL64"; then
8416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8417 $as_echo "$OTOOL64" >&6; }
8418 else
8419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8420 $as_echo "no" >&6; }
8425 if test -z "$ac_cv_prog_OTOOL64"; then
8426 ac_ct_OTOOL64=$OTOOL64
8427 # Extract the first word of "otool64", so it can be a program name with args.
8428 set dummy otool64; ac_word=$2
8429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8430 $as_echo_n "checking for $ac_word... " >&6; }
8431 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8432 $as_echo_n "(cached) " >&6
8433 else
8434 if test -n "$ac_ct_OTOOL64"; then
8435 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8436 else
8437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8438 for as_dir in $PATH
8440 IFS=$as_save_IFS
8441 test -z "$as_dir" && as_dir=.
8442 for ac_exec_ext in '' $ac_executable_extensions; do
8443 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8444 ac_cv_prog_ac_ct_OTOOL64="otool64"
8445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8446 break 2
8448 done
8449 done
8450 IFS=$as_save_IFS
8454 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8455 if test -n "$ac_ct_OTOOL64"; then
8456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8457 $as_echo "$ac_ct_OTOOL64" >&6; }
8458 else
8459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8460 $as_echo "no" >&6; }
8463 if test "x$ac_ct_OTOOL64" = x; then
8464 OTOOL64=":"
8465 else
8466 case $cross_compiling:$ac_tool_warned in
8467 yes:)
8468 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8469 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8470 ac_tool_warned=yes ;;
8471 esac
8472 OTOOL64=$ac_ct_OTOOL64
8474 else
8475 OTOOL64="$ac_cv_prog_OTOOL64"
8504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8505 $as_echo_n "checking for -single_module linker flag... " >&6; }
8506 if ${lt_cv_apple_cc_single_mod+:} false; then :
8507 $as_echo_n "(cached) " >&6
8508 else
8509 lt_cv_apple_cc_single_mod=no
8510 if test -z "${LT_MULTI_MODULE}"; then
8511 # By default we will add the -single_module flag. You can override
8512 # by either setting the environment variable LT_MULTI_MODULE
8513 # non-empty at configure time, or by adding -multi_module to the
8514 # link flags.
8515 rm -rf libconftest.dylib*
8516 echo "int foo(void){return 1;}" > conftest.c
8517 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8518 -dynamiclib -Wl,-single_module conftest.c" >&5
8519 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8520 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8521 _lt_result=$?
8522 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8523 lt_cv_apple_cc_single_mod=yes
8524 else
8525 cat conftest.err >&5
8527 rm -rf libconftest.dylib*
8528 rm -f conftest.*
8531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8532 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8534 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8535 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8536 $as_echo_n "(cached) " >&6
8537 else
8538 lt_cv_ld_exported_symbols_list=no
8539 save_LDFLAGS=$LDFLAGS
8540 echo "_main" > conftest.sym
8541 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8543 /* end confdefs.h. */
8546 main ()
8550 return 0;
8552 _ACEOF
8553 if ac_fn_c_try_link "$LINENO"; then :
8554 lt_cv_ld_exported_symbols_list=yes
8555 else
8556 lt_cv_ld_exported_symbols_list=no
8558 rm -f core conftest.err conftest.$ac_objext \
8559 conftest$ac_exeext conftest.$ac_ext
8560 LDFLAGS="$save_LDFLAGS"
8563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8564 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8566 $as_echo_n "checking for -force_load linker flag... " >&6; }
8567 if ${lt_cv_ld_force_load+:} false; then :
8568 $as_echo_n "(cached) " >&6
8569 else
8570 lt_cv_ld_force_load=no
8571 cat > conftest.c << _LT_EOF
8572 int forced_loaded() { return 2;}
8573 _LT_EOF
8574 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8575 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8576 echo "$AR cru libconftest.a conftest.o" >&5
8577 $AR cru libconftest.a conftest.o 2>&5
8578 cat > conftest.c << _LT_EOF
8579 int main() { return 0;}
8580 _LT_EOF
8581 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8582 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8583 _lt_result=$?
8584 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8585 lt_cv_ld_force_load=yes
8586 else
8587 cat conftest.err >&5
8589 rm -f conftest.err libconftest.a conftest conftest.c
8590 rm -rf conftest.dSYM
8593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8594 $as_echo "$lt_cv_ld_force_load" >&6; }
8595 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
8596 # build without first building modern cctools / linker.
8597 case $host_cpu-$host_os in
8598 *-rhapsody* | *-darwin1.[012])
8599 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8600 *-darwin1.*)
8601 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8602 *-darwin*)
8603 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
8604 # deployment target is forced to an earlier version.
8605 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
8606 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*)
8608 10.[012][,.]*)
8609 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8613 esac
8615 esac
8616 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8617 _lt_dar_single_mod='$single_module'
8619 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8620 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8621 else
8622 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8624 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8625 _lt_dsymutil='~$DSYMUTIL $lib || :'
8626 else
8627 _lt_dsymutil=
8630 esac
8632 for ac_header in dlfcn.h
8633 do :
8634 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8636 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8637 cat >>confdefs.h <<_ACEOF
8638 #define HAVE_DLFCN_H 1
8639 _ACEOF
8643 done
8649 # Set options
8653 enable_dlopen=no
8656 enable_win32_dll=no
8659 # Check whether --enable-shared was given.
8660 if test "${enable_shared+set}" = set; then :
8661 enableval=$enable_shared; p=${PACKAGE-default}
8662 case $enableval in
8663 yes) enable_shared=yes ;;
8664 no) enable_shared=no ;;
8666 enable_shared=no
8667 # Look at the argument we got. We use all the common list separators.
8668 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8669 for pkg in $enableval; do
8670 IFS="$lt_save_ifs"
8671 if test "X$pkg" = "X$p"; then
8672 enable_shared=yes
8674 done
8675 IFS="$lt_save_ifs"
8677 esac
8678 else
8679 enable_shared=yes
8690 # Check whether --enable-static was given.
8691 if test "${enable_static+set}" = set; then :
8692 enableval=$enable_static; p=${PACKAGE-default}
8693 case $enableval in
8694 yes) enable_static=yes ;;
8695 no) enable_static=no ;;
8697 enable_static=no
8698 # Look at the argument we got. We use all the common list separators.
8699 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8700 for pkg in $enableval; do
8701 IFS="$lt_save_ifs"
8702 if test "X$pkg" = "X$p"; then
8703 enable_static=yes
8705 done
8706 IFS="$lt_save_ifs"
8708 esac
8709 else
8710 enable_static=yes
8722 # Check whether --with-pic was given.
8723 if test "${with_pic+set}" = set; then :
8724 withval=$with_pic; pic_mode="$withval"
8725 else
8726 pic_mode=default
8730 test -z "$pic_mode" && pic_mode=default
8738 # Check whether --enable-fast-install was given.
8739 if test "${enable_fast_install+set}" = set; then :
8740 enableval=$enable_fast_install; p=${PACKAGE-default}
8741 case $enableval in
8742 yes) enable_fast_install=yes ;;
8743 no) enable_fast_install=no ;;
8745 enable_fast_install=no
8746 # Look at the argument we got. We use all the common list separators.
8747 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8748 for pkg in $enableval; do
8749 IFS="$lt_save_ifs"
8750 if test "X$pkg" = "X$p"; then
8751 enable_fast_install=yes
8753 done
8754 IFS="$lt_save_ifs"
8756 esac
8757 else
8758 enable_fast_install=yes
8771 # This can be used to rebuild libtool when needed
8772 LIBTOOL_DEPS="$ltmain"
8774 # Always use our own libtool.
8775 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8802 test -z "$LN_S" && LN_S="ln -s"
8817 if test -n "${ZSH_VERSION+set}" ; then
8818 setopt NO_GLOB_SUBST
8821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8822 $as_echo_n "checking for objdir... " >&6; }
8823 if ${lt_cv_objdir+:} false; then :
8824 $as_echo_n "(cached) " >&6
8825 else
8826 rm -f .libs 2>/dev/null
8827 mkdir .libs 2>/dev/null
8828 if test -d .libs; then
8829 lt_cv_objdir=.libs
8830 else
8831 # MS-DOS does not allow filenames that begin with a dot.
8832 lt_cv_objdir=_libs
8834 rmdir .libs 2>/dev/null
8836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8837 $as_echo "$lt_cv_objdir" >&6; }
8838 objdir=$lt_cv_objdir
8844 cat >>confdefs.h <<_ACEOF
8845 #define LT_OBJDIR "$lt_cv_objdir/"
8846 _ACEOF
8851 case $host_os in
8852 aix3*)
8853 # AIX sometimes has problems with the GCC collect2 program. For some
8854 # reason, if we set the COLLECT_NAMES environment variable, the problems
8855 # vanish in a puff of smoke.
8856 if test "X${COLLECT_NAMES+set}" != Xset; then
8857 COLLECT_NAMES=
8858 export COLLECT_NAMES
8861 esac
8863 # Global variables:
8864 ofile=libtool
8865 can_build_shared=yes
8867 # All known linkers require a `.a' archive for static linking (except MSVC,
8868 # which needs '.lib').
8869 libext=a
8871 with_gnu_ld="$lt_cv_prog_gnu_ld"
8873 old_CC="$CC"
8874 old_CFLAGS="$CFLAGS"
8876 # Set sane defaults for various variables
8877 test -z "$CC" && CC=cc
8878 test -z "$LTCC" && LTCC=$CC
8879 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8880 test -z "$LD" && LD=ld
8881 test -z "$ac_objext" && ac_objext=o
8883 for cc_temp in $compiler""; do
8884 case $cc_temp in
8885 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8886 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8887 \-*) ;;
8888 *) break;;
8889 esac
8890 done
8891 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8894 # Only perform the check for file, if the check method requires it
8895 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8896 case $deplibs_check_method in
8897 file_magic*)
8898 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8900 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8901 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8902 $as_echo_n "(cached) " >&6
8903 else
8904 case $MAGIC_CMD in
8905 [\\/*] | ?:[\\/]*)
8906 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8909 lt_save_MAGIC_CMD="$MAGIC_CMD"
8910 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8911 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8912 for ac_dir in $ac_dummy; do
8913 IFS="$lt_save_ifs"
8914 test -z "$ac_dir" && ac_dir=.
8915 if test -f $ac_dir/${ac_tool_prefix}file; then
8916 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8917 if test -n "$file_magic_test_file"; then
8918 case $deplibs_check_method in
8919 "file_magic "*)
8920 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8921 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8922 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8923 $EGREP "$file_magic_regex" > /dev/null; then
8925 else
8926 cat <<_LT_EOF 1>&2
8928 *** Warning: the command libtool uses to detect shared libraries,
8929 *** $file_magic_cmd, produces output that libtool cannot recognize.
8930 *** The result is that libtool may fail to recognize shared libraries
8931 *** as such. This will affect the creation of libtool libraries that
8932 *** depend on shared libraries, but programs linked with such libtool
8933 *** libraries will work regardless of this problem. Nevertheless, you
8934 *** may want to report the problem to your system manager and/or to
8935 *** bug-libtool@gnu.org
8937 _LT_EOF
8938 fi ;;
8939 esac
8941 break
8943 done
8944 IFS="$lt_save_ifs"
8945 MAGIC_CMD="$lt_save_MAGIC_CMD"
8947 esac
8950 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8951 if test -n "$MAGIC_CMD"; then
8952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8953 $as_echo "$MAGIC_CMD" >&6; }
8954 else
8955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8956 $as_echo "no" >&6; }
8963 if test -z "$lt_cv_path_MAGIC_CMD"; then
8964 if test -n "$ac_tool_prefix"; then
8965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8966 $as_echo_n "checking for file... " >&6; }
8967 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8968 $as_echo_n "(cached) " >&6
8969 else
8970 case $MAGIC_CMD in
8971 [\\/*] | ?:[\\/]*)
8972 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8975 lt_save_MAGIC_CMD="$MAGIC_CMD"
8976 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8977 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8978 for ac_dir in $ac_dummy; do
8979 IFS="$lt_save_ifs"
8980 test -z "$ac_dir" && ac_dir=.
8981 if test -f $ac_dir/file; then
8982 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8983 if test -n "$file_magic_test_file"; then
8984 case $deplibs_check_method in
8985 "file_magic "*)
8986 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8987 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8988 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8989 $EGREP "$file_magic_regex" > /dev/null; then
8991 else
8992 cat <<_LT_EOF 1>&2
8994 *** Warning: the command libtool uses to detect shared libraries,
8995 *** $file_magic_cmd, produces output that libtool cannot recognize.
8996 *** The result is that libtool may fail to recognize shared libraries
8997 *** as such. This will affect the creation of libtool libraries that
8998 *** depend on shared libraries, but programs linked with such libtool
8999 *** libraries will work regardless of this problem. Nevertheless, you
9000 *** may want to report the problem to your system manager and/or to
9001 *** bug-libtool@gnu.org
9003 _LT_EOF
9004 fi ;;
9005 esac
9007 break
9009 done
9010 IFS="$lt_save_ifs"
9011 MAGIC_CMD="$lt_save_MAGIC_CMD"
9013 esac
9016 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9017 if test -n "$MAGIC_CMD"; then
9018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9019 $as_echo "$MAGIC_CMD" >&6; }
9020 else
9021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9022 $as_echo "no" >&6; }
9026 else
9027 MAGIC_CMD=:
9033 esac
9035 # Use C for the default configuration in the libtool script
9037 lt_save_CC="$CC"
9038 ac_ext=c
9039 ac_cpp='$CPP $CPPFLAGS'
9040 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9041 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9042 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9045 # Source file extension for C test sources.
9046 ac_ext=c
9048 # Object file extension for compiled C test sources.
9049 objext=o
9050 objext=$objext
9052 # Code to be used in simple compile tests
9053 lt_simple_compile_test_code="int some_variable = 0;"
9055 # Code to be used in simple link tests
9056 lt_simple_link_test_code='int main(){return(0);}'
9064 # If no C compiler was specified, use CC.
9065 LTCC=${LTCC-"$CC"}
9067 # If no C compiler flags were specified, use CFLAGS.
9068 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9070 # Allow CC to be a program name with arguments.
9071 compiler=$CC
9073 # Save the default compiler, since it gets overwritten when the other
9074 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9075 compiler_DEFAULT=$CC
9077 # save warnings/boilerplate of simple test code
9078 ac_outfile=conftest.$ac_objext
9079 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9080 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9081 _lt_compiler_boilerplate=`cat conftest.err`
9082 $RM conftest*
9084 ac_outfile=conftest.$ac_objext
9085 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9086 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9087 _lt_linker_boilerplate=`cat conftest.err`
9088 $RM -r conftest*
9091 ## CAVEAT EMPTOR:
9092 ## There is no encapsulation within the following macros, do not change
9093 ## the running order or otherwise move them around unless you know exactly
9094 ## what you are doing...
9095 if test -n "$compiler"; then
9097 lt_prog_compiler_no_builtin_flag=
9099 if test "$GCC" = yes; then
9100 case $cc_basename in
9101 nvcc*)
9102 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9104 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9105 esac
9107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9108 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9109 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9110 $as_echo_n "(cached) " >&6
9111 else
9112 lt_cv_prog_compiler_rtti_exceptions=no
9113 ac_outfile=conftest.$ac_objext
9114 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9115 lt_compiler_flag="-fno-rtti -fno-exceptions"
9116 # Insert the option either (1) after the last *FLAGS variable, or
9117 # (2) before a word containing "conftest.", or (3) at the end.
9118 # Note that $ac_compile itself does not contain backslashes and begins
9119 # with a dollar sign (not a hyphen), so the echo should work correctly.
9120 # The option is referenced via a variable to avoid confusing sed.
9121 lt_compile=`echo "$ac_compile" | $SED \
9122 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9123 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9124 -e 's:$: $lt_compiler_flag:'`
9125 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9126 (eval "$lt_compile" 2>conftest.err)
9127 ac_status=$?
9128 cat conftest.err >&5
9129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9130 if (exit $ac_status) && test -s "$ac_outfile"; then
9131 # The compiler can only warn and ignore the option if not recognized
9132 # So say no if there are warnings other than the usual output.
9133 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9134 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9135 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9136 lt_cv_prog_compiler_rtti_exceptions=yes
9139 $RM conftest*
9142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9143 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9145 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9146 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9147 else
9158 lt_prog_compiler_wl=
9159 lt_prog_compiler_pic=
9160 lt_prog_compiler_static=
9162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9163 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9165 if test "$GCC" = yes; then
9166 lt_prog_compiler_wl='-Wl,'
9167 lt_prog_compiler_static='-static'
9169 case $host_os in
9170 aix*)
9171 # All AIX code is PIC.
9172 if test "$host_cpu" = ia64; then
9173 # AIX 5 now supports IA64 processor
9174 lt_prog_compiler_static='-Bstatic'
9176 lt_prog_compiler_pic='-fPIC'
9179 amigaos*)
9180 case $host_cpu in
9181 powerpc)
9182 # see comment about AmigaOS4 .so support
9183 lt_prog_compiler_pic='-fPIC'
9185 m68k)
9186 # FIXME: we need at least 68020 code to build shared libraries, but
9187 # adding the `-m68020' flag to GCC prevents building anything better,
9188 # like `-m68040'.
9189 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9191 esac
9194 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9195 # PIC is the default for these OSes.
9198 mingw* | cygwin* | pw32* | os2* | cegcc*)
9199 # This hack is so that the source file can tell whether it is being
9200 # built for inclusion in a dll (and should export symbols for example).
9201 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9202 # (--disable-auto-import) libraries
9203 lt_prog_compiler_pic='-DDLL_EXPORT'
9206 darwin* | rhapsody*)
9207 # PIC is the default on this platform
9208 # Common symbols not allowed in MH_DYLIB files
9209 lt_prog_compiler_pic='-fno-common'
9212 haiku*)
9213 # PIC is the default for Haiku.
9214 # The "-static" flag exists, but is broken.
9215 lt_prog_compiler_static=
9218 hpux*)
9219 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9220 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9221 # sets the default TLS model and affects inlining.
9222 case $host_cpu in
9223 hppa*64*)
9224 # +Z the default
9227 lt_prog_compiler_pic='-fPIC'
9229 esac
9232 interix[3-9]*)
9233 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9234 # Instead, we relocate shared libraries at runtime.
9237 msdosdjgpp*)
9238 # Just because we use GCC doesn't mean we suddenly get shared libraries
9239 # on systems that don't support them.
9240 lt_prog_compiler_can_build_shared=no
9241 enable_shared=no
9244 *nto* | *qnx*)
9245 # QNX uses GNU C++, but need to define -shared option too, otherwise
9246 # it will coredump.
9247 lt_prog_compiler_pic='-fPIC -shared'
9250 sysv4*MP*)
9251 if test -d /usr/nec; then
9252 lt_prog_compiler_pic=-Kconform_pic
9257 lt_prog_compiler_pic='-fPIC'
9259 esac
9261 case $cc_basename in
9262 nvcc*) # Cuda Compiler Driver 2.2
9263 lt_prog_compiler_wl='-Xlinker '
9264 lt_prog_compiler_pic='-Xcompiler -fPIC'
9266 esac
9267 else
9268 # PORTME Check for flag to pass linker flags through the system compiler.
9269 case $host_os in
9270 aix*)
9271 lt_prog_compiler_wl='-Wl,'
9272 if test "$host_cpu" = ia64; then
9273 # AIX 5 now supports IA64 processor
9274 lt_prog_compiler_static='-Bstatic'
9275 else
9276 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9280 mingw* | cygwin* | pw32* | os2* | cegcc*)
9281 # This hack is so that the source file can tell whether it is being
9282 # built for inclusion in a dll (and should export symbols for example).
9283 lt_prog_compiler_pic='-DDLL_EXPORT'
9286 hpux9* | hpux10* | hpux11*)
9287 lt_prog_compiler_wl='-Wl,'
9288 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9289 # not for PA HP-UX.
9290 case $host_cpu in
9291 hppa*64*|ia64*)
9292 # +Z the default
9295 lt_prog_compiler_pic='+Z'
9297 esac
9298 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9299 lt_prog_compiler_static='${wl}-a ${wl}archive'
9302 irix5* | irix6* | nonstopux*)
9303 lt_prog_compiler_wl='-Wl,'
9304 # PIC (with -KPIC) is the default.
9305 lt_prog_compiler_static='-non_shared'
9308 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9309 case $cc_basename in
9310 # old Intel for x86_64 which still supported -KPIC.
9311 ecc*)
9312 lt_prog_compiler_wl='-Wl,'
9313 lt_prog_compiler_pic='-KPIC'
9314 lt_prog_compiler_static='-static'
9316 # icc used to be incompatible with GCC.
9317 # ICC 10 doesn't accept -KPIC any more.
9318 icc* | ifort*)
9319 lt_prog_compiler_wl='-Wl,'
9320 lt_prog_compiler_pic='-fPIC'
9321 lt_prog_compiler_static='-static'
9323 # Lahey Fortran 8.1.
9324 lf95*)
9325 lt_prog_compiler_wl='-Wl,'
9326 lt_prog_compiler_pic='--shared'
9327 lt_prog_compiler_static='--static'
9329 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9330 # Portland Group compilers (*not* the Pentium gcc compiler,
9331 # which looks to be a dead project)
9332 lt_prog_compiler_wl='-Wl,'
9333 lt_prog_compiler_pic='-fpic'
9334 lt_prog_compiler_static='-Bstatic'
9336 ccc*)
9337 lt_prog_compiler_wl='-Wl,'
9338 # All Alpha code is PIC.
9339 lt_prog_compiler_static='-non_shared'
9341 xl* | bgxl* | bgf* | mpixl*)
9342 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9343 lt_prog_compiler_wl='-Wl,'
9344 lt_prog_compiler_pic='-qpic'
9345 lt_prog_compiler_static='-qstaticlink'
9348 case `$CC -V 2>&1 | sed 5q` in
9349 *Sun\ F* | *Sun*Fortran*)
9350 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9351 lt_prog_compiler_pic='-KPIC'
9352 lt_prog_compiler_static='-Bstatic'
9353 lt_prog_compiler_wl=''
9355 *Sun\ C*)
9356 # Sun C 5.9
9357 lt_prog_compiler_pic='-KPIC'
9358 lt_prog_compiler_static='-Bstatic'
9359 lt_prog_compiler_wl='-Wl,'
9361 esac
9363 esac
9366 newsos6)
9367 lt_prog_compiler_pic='-KPIC'
9368 lt_prog_compiler_static='-Bstatic'
9371 *nto* | *qnx*)
9372 # QNX uses GNU C++, but need to define -shared option too, otherwise
9373 # it will coredump.
9374 lt_prog_compiler_pic='-fPIC -shared'
9377 osf3* | osf4* | osf5*)
9378 lt_prog_compiler_wl='-Wl,'
9379 # All OSF/1 code is PIC.
9380 lt_prog_compiler_static='-non_shared'
9383 rdos*)
9384 lt_prog_compiler_static='-non_shared'
9387 solaris*)
9388 lt_prog_compiler_pic='-KPIC'
9389 lt_prog_compiler_static='-Bstatic'
9390 case $cc_basename in
9391 f77* | f90* | f95*)
9392 lt_prog_compiler_wl='-Qoption ld ';;
9394 lt_prog_compiler_wl='-Wl,';;
9395 esac
9398 sunos4*)
9399 lt_prog_compiler_wl='-Qoption ld '
9400 lt_prog_compiler_pic='-PIC'
9401 lt_prog_compiler_static='-Bstatic'
9404 sysv4 | sysv4.2uw2* | sysv4.3*)
9405 lt_prog_compiler_wl='-Wl,'
9406 lt_prog_compiler_pic='-KPIC'
9407 lt_prog_compiler_static='-Bstatic'
9410 sysv4*MP*)
9411 if test -d /usr/nec ;then
9412 lt_prog_compiler_pic='-Kconform_pic'
9413 lt_prog_compiler_static='-Bstatic'
9417 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9418 lt_prog_compiler_wl='-Wl,'
9419 lt_prog_compiler_pic='-KPIC'
9420 lt_prog_compiler_static='-Bstatic'
9423 unicos*)
9424 lt_prog_compiler_wl='-Wl,'
9425 lt_prog_compiler_can_build_shared=no
9428 uts4*)
9429 lt_prog_compiler_pic='-pic'
9430 lt_prog_compiler_static='-Bstatic'
9434 lt_prog_compiler_can_build_shared=no
9436 esac
9439 case $host_os in
9440 # For platforms which do not support PIC, -DPIC is meaningless:
9441 *djgpp*)
9442 lt_prog_compiler_pic=
9445 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9447 esac
9448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9449 $as_echo "$lt_prog_compiler_pic" >&6; }
9457 # Check to make sure the PIC flag actually works.
9459 if test -n "$lt_prog_compiler_pic"; then
9460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9461 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9462 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9463 $as_echo_n "(cached) " >&6
9464 else
9465 lt_cv_prog_compiler_pic_works=no
9466 ac_outfile=conftest.$ac_objext
9467 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9468 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9469 # Insert the option either (1) after the last *FLAGS variable, or
9470 # (2) before a word containing "conftest.", or (3) at the end.
9471 # Note that $ac_compile itself does not contain backslashes and begins
9472 # with a dollar sign (not a hyphen), so the echo should work correctly.
9473 # The option is referenced via a variable to avoid confusing sed.
9474 lt_compile=`echo "$ac_compile" | $SED \
9475 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9476 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9477 -e 's:$: $lt_compiler_flag:'`
9478 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9479 (eval "$lt_compile" 2>conftest.err)
9480 ac_status=$?
9481 cat conftest.err >&5
9482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9483 if (exit $ac_status) && test -s "$ac_outfile"; then
9484 # The compiler can only warn and ignore the option if not recognized
9485 # So say no if there are warnings other than the usual output.
9486 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9487 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9488 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9489 lt_cv_prog_compiler_pic_works=yes
9492 $RM conftest*
9495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9496 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9498 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9499 case $lt_prog_compiler_pic in
9500 "" | " "*) ;;
9501 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9502 esac
9503 else
9504 lt_prog_compiler_pic=
9505 lt_prog_compiler_can_build_shared=no
9516 # Check to make sure the static flag actually works.
9518 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9520 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9521 if ${lt_cv_prog_compiler_static_works+:} false; then :
9522 $as_echo_n "(cached) " >&6
9523 else
9524 lt_cv_prog_compiler_static_works=no
9525 save_LDFLAGS="$LDFLAGS"
9526 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9527 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9528 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9529 # The linker can only warn and ignore the option if not recognized
9530 # So say no if there are warnings
9531 if test -s conftest.err; then
9532 # Append any errors to the config.log.
9533 cat conftest.err 1>&5
9534 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9535 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9536 if diff conftest.exp conftest.er2 >/dev/null; then
9537 lt_cv_prog_compiler_static_works=yes
9539 else
9540 lt_cv_prog_compiler_static_works=yes
9543 $RM -r conftest*
9544 LDFLAGS="$save_LDFLAGS"
9547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9548 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9550 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9552 else
9553 lt_prog_compiler_static=
9562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9563 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9564 if ${lt_cv_prog_compiler_c_o+:} false; then :
9565 $as_echo_n "(cached) " >&6
9566 else
9567 lt_cv_prog_compiler_c_o=no
9568 $RM -r conftest 2>/dev/null
9569 mkdir conftest
9570 cd conftest
9571 mkdir out
9572 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9574 lt_compiler_flag="-o out/conftest2.$ac_objext"
9575 # Insert the option either (1) after the last *FLAGS variable, or
9576 # (2) before a word containing "conftest.", or (3) at the end.
9577 # Note that $ac_compile itself does not contain backslashes and begins
9578 # with a dollar sign (not a hyphen), so the echo should work correctly.
9579 lt_compile=`echo "$ac_compile" | $SED \
9580 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9581 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9582 -e 's:$: $lt_compiler_flag:'`
9583 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9584 (eval "$lt_compile" 2>out/conftest.err)
9585 ac_status=$?
9586 cat out/conftest.err >&5
9587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9588 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9589 then
9590 # The compiler can only warn and ignore the option if not recognized
9591 # So say no if there are warnings
9592 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9593 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9594 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9595 lt_cv_prog_compiler_c_o=yes
9598 chmod u+w . 2>&5
9599 $RM conftest*
9600 # SGI C++ compiler will create directory out/ii_files/ for
9601 # template instantiation
9602 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9603 $RM out/* && rmdir out
9604 cd ..
9605 $RM -r conftest
9606 $RM conftest*
9609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9610 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9618 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9619 if ${lt_cv_prog_compiler_c_o+:} false; then :
9620 $as_echo_n "(cached) " >&6
9621 else
9622 lt_cv_prog_compiler_c_o=no
9623 $RM -r conftest 2>/dev/null
9624 mkdir conftest
9625 cd conftest
9626 mkdir out
9627 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9629 lt_compiler_flag="-o out/conftest2.$ac_objext"
9630 # Insert the option either (1) after the last *FLAGS variable, or
9631 # (2) before a word containing "conftest.", or (3) at the end.
9632 # Note that $ac_compile itself does not contain backslashes and begins
9633 # with a dollar sign (not a hyphen), so the echo should work correctly.
9634 lt_compile=`echo "$ac_compile" | $SED \
9635 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9636 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9637 -e 's:$: $lt_compiler_flag:'`
9638 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9639 (eval "$lt_compile" 2>out/conftest.err)
9640 ac_status=$?
9641 cat out/conftest.err >&5
9642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9643 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9644 then
9645 # The compiler can only warn and ignore the option if not recognized
9646 # So say no if there are warnings
9647 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9648 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9649 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9650 lt_cv_prog_compiler_c_o=yes
9653 chmod u+w . 2>&5
9654 $RM conftest*
9655 # SGI C++ compiler will create directory out/ii_files/ for
9656 # template instantiation
9657 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9658 $RM out/* && rmdir out
9659 cd ..
9660 $RM -r conftest
9661 $RM conftest*
9664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9665 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9670 hard_links="nottested"
9671 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9672 # do not overwrite the value of need_locks provided by the user
9673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9674 $as_echo_n "checking if we can lock with hard links... " >&6; }
9675 hard_links=yes
9676 $RM conftest*
9677 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9678 touch conftest.a
9679 ln conftest.a conftest.b 2>&5 || hard_links=no
9680 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9682 $as_echo "$hard_links" >&6; }
9683 if test "$hard_links" = no; then
9684 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9685 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9686 need_locks=warn
9688 else
9689 need_locks=no
9697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9698 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9700 runpath_var=
9701 allow_undefined_flag=
9702 always_export_symbols=no
9703 archive_cmds=
9704 archive_expsym_cmds=
9705 compiler_needs_object=no
9706 enable_shared_with_static_runtimes=no
9707 export_dynamic_flag_spec=
9708 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9709 hardcode_automatic=no
9710 hardcode_direct=no
9711 hardcode_direct_absolute=no
9712 hardcode_libdir_flag_spec=
9713 hardcode_libdir_flag_spec_ld=
9714 hardcode_libdir_separator=
9715 hardcode_minus_L=no
9716 hardcode_shlibpath_var=unsupported
9717 inherit_rpath=no
9718 link_all_deplibs=unknown
9719 module_cmds=
9720 module_expsym_cmds=
9721 old_archive_from_new_cmds=
9722 old_archive_from_expsyms_cmds=
9723 thread_safe_flag_spec=
9724 whole_archive_flag_spec=
9725 # include_expsyms should be a list of space-separated symbols to be *always*
9726 # included in the symbol list
9727 include_expsyms=
9728 # exclude_expsyms can be an extended regexp of symbols to exclude
9729 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9730 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9731 # as well as any symbol that contains `d'.
9732 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9733 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9734 # platforms (ab)use it in PIC code, but their linkers get confused if
9735 # the symbol is explicitly referenced. Since portable code cannot
9736 # rely on this symbol name, it's probably fine to never include it in
9737 # preloaded symbol tables.
9738 # Exclude shared library initialization/finalization symbols.
9739 extract_expsyms_cmds=
9741 case $host_os in
9742 cygwin* | mingw* | pw32* | cegcc*)
9743 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9744 # When not using gcc, we currently assume that we are using
9745 # Microsoft Visual C++.
9746 if test "$GCC" != yes; then
9747 with_gnu_ld=no
9750 interix*)
9751 # we just hope/assume this is gcc and not c89 (= MSVC++)
9752 with_gnu_ld=yes
9754 openbsd*)
9755 with_gnu_ld=no
9757 esac
9759 ld_shlibs=yes
9761 # On some targets, GNU ld is compatible enough with the native linker
9762 # that we're better off using the native interface for both.
9763 lt_use_gnu_ld_interface=no
9764 if test "$with_gnu_ld" = yes; then
9765 case $host_os in
9766 aix*)
9767 # The AIX port of GNU ld has always aspired to compatibility
9768 # with the native linker. However, as the warning in the GNU ld
9769 # block says, versions before 2.19.5* couldn't really create working
9770 # shared libraries, regardless of the interface used.
9771 case `$LD -v 2>&1` in
9772 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9773 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9774 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9776 lt_use_gnu_ld_interface=yes
9778 esac
9781 lt_use_gnu_ld_interface=yes
9783 esac
9786 if test "$lt_use_gnu_ld_interface" = yes; then
9787 # If archive_cmds runs LD, not CC, wlarc should be empty
9788 wlarc='${wl}'
9790 # Set some defaults for GNU ld with shared library support. These
9791 # are reset later if shared libraries are not supported. Putting them
9792 # here allows them to be overridden if necessary.
9793 runpath_var=LD_RUN_PATH
9794 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9795 export_dynamic_flag_spec='${wl}--export-dynamic'
9796 # ancient GNU ld didn't support --whole-archive et. al.
9797 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9798 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9799 else
9800 whole_archive_flag_spec=
9802 supports_anon_versioning=no
9803 case `$LD -v 2>&1` in
9804 *GNU\ gold*) supports_anon_versioning=yes ;;
9805 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9806 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9807 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9808 *\ 2.11.*) ;; # other 2.11 versions
9809 *) supports_anon_versioning=yes ;;
9810 esac
9812 # See if GNU ld supports shared libraries.
9813 case $host_os in
9814 aix[3-9]*)
9815 # On AIX/PPC, the GNU linker is very broken
9816 if test "$host_cpu" != ia64; then
9817 ld_shlibs=no
9818 cat <<_LT_EOF 1>&2
9820 *** Warning: the GNU linker, at least up to release 2.19, is reported
9821 *** to be unable to reliably create shared libraries on AIX.
9822 *** Therefore, libtool is disabling shared libraries support. If you
9823 *** really care for shared libraries, you may want to install binutils
9824 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9825 *** You will then need to restart the configuration process.
9827 _LT_EOF
9831 amigaos*)
9832 case $host_cpu in
9833 powerpc)
9834 # see comment about AmigaOS4 .so support
9835 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9836 archive_expsym_cmds=''
9838 m68k)
9839 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)'
9840 hardcode_libdir_flag_spec='-L$libdir'
9841 hardcode_minus_L=yes
9843 esac
9846 beos*)
9847 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9848 allow_undefined_flag=unsupported
9849 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9850 # support --undefined. This deserves some investigation. FIXME
9851 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9852 else
9853 ld_shlibs=no
9857 cygwin* | mingw* | pw32* | cegcc*)
9858 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9859 # as there is no search path for DLLs.
9860 hardcode_libdir_flag_spec='-L$libdir'
9861 export_dynamic_flag_spec='${wl}--export-all-symbols'
9862 allow_undefined_flag=unsupported
9863 always_export_symbols=no
9864 enable_shared_with_static_runtimes=yes
9865 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9867 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9868 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9869 # If the export-symbols file already is a .def file (1st line
9870 # is EXPORTS), use it as is; otherwise, prepend...
9871 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9872 cp $export_symbols $output_objdir/$soname.def;
9873 else
9874 echo EXPORTS > $output_objdir/$soname.def;
9875 cat $export_symbols >> $output_objdir/$soname.def;
9877 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9878 else
9879 ld_shlibs=no
9883 haiku*)
9884 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9885 link_all_deplibs=yes
9888 interix[3-9]*)
9889 hardcode_direct=no
9890 hardcode_shlibpath_var=no
9891 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9892 export_dynamic_flag_spec='${wl}-E'
9893 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9894 # Instead, shared libraries are loaded at an image base (0x10000000 by
9895 # default) and relocated if they conflict, which is a slow very memory
9896 # consuming and fragmenting process. To avoid this, we pick a random,
9897 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9898 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9899 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9900 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'
9903 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
9904 tmp_diet=no
9905 if test "$host_os" = linux-dietlibc; then
9906 case $cc_basename in
9907 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9908 esac
9910 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9911 && test "$tmp_diet" = no
9912 then
9913 tmp_addflag=' $pic_flag'
9914 tmp_sharedflag='-shared'
9915 case $cc_basename,$host_cpu in
9916 pgcc*) # Portland Group C compiler
9917 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'
9918 tmp_addflag=' $pic_flag'
9920 pgf77* | pgf90* | pgf95* | pgfortran*)
9921 # Portland Group f77 and f90 compilers
9922 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'
9923 tmp_addflag=' $pic_flag -Mnomain' ;;
9924 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9925 tmp_addflag=' -i_dynamic' ;;
9926 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9927 tmp_addflag=' -i_dynamic -nofor_main' ;;
9928 ifc* | ifort*) # Intel Fortran compiler
9929 tmp_addflag=' -nofor_main' ;;
9930 lf95*) # Lahey Fortran 8.1
9931 whole_archive_flag_spec=
9932 tmp_sharedflag='--shared' ;;
9933 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9934 tmp_sharedflag='-qmkshrobj'
9935 tmp_addflag= ;;
9936 nvcc*) # Cuda Compiler Driver 2.2
9937 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'
9938 compiler_needs_object=yes
9940 esac
9941 case `$CC -V 2>&1 | sed 5q` in
9942 *Sun\ C*) # Sun C 5.9
9943 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'
9944 compiler_needs_object=yes
9945 tmp_sharedflag='-G' ;;
9946 *Sun\ F*) # Sun Fortran 8.3
9947 tmp_sharedflag='-G' ;;
9948 esac
9949 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9951 if test "x$supports_anon_versioning" = xyes; then
9952 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9953 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9954 echo "local: *; };" >> $output_objdir/$libname.ver~
9955 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9958 case $cc_basename in
9959 xlf* | bgf* | bgxlf* | mpixlf*)
9960 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9961 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9962 hardcode_libdir_flag_spec=
9963 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9964 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9965 if test "x$supports_anon_versioning" = xyes; then
9966 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9967 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9968 echo "local: *; };" >> $output_objdir/$libname.ver~
9969 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9972 esac
9973 else
9974 ld_shlibs=no
9978 netbsd*)
9979 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9980 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9981 wlarc=
9982 else
9983 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9984 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9988 solaris*)
9989 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9990 ld_shlibs=no
9991 cat <<_LT_EOF 1>&2
9993 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9994 *** create shared libraries on Solaris systems. Therefore, libtool
9995 *** is disabling shared libraries support. We urge you to upgrade GNU
9996 *** binutils to release 2.9.1 or newer. Another option is to modify
9997 *** your PATH or compiler configuration so that the native linker is
9998 *** used, and then restart.
10000 _LT_EOF
10001 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10002 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10003 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10004 else
10005 ld_shlibs=no
10009 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10010 case `$LD -v 2>&1` in
10011 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10012 ld_shlibs=no
10013 cat <<_LT_EOF 1>&2
10015 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10016 *** reliably create shared libraries on SCO systems. Therefore, libtool
10017 *** is disabling shared libraries support. We urge you to upgrade GNU
10018 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10019 *** your PATH or compiler configuration so that the native linker is
10020 *** used, and then restart.
10022 _LT_EOF
10025 # For security reasons, it is highly recommended that you always
10026 # use absolute paths for naming shared libraries, and exclude the
10027 # DT_RUNPATH tag from executables and libraries. But doing so
10028 # requires that you compile everything twice, which is a pain.
10029 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10030 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10031 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10032 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10033 else
10034 ld_shlibs=no
10037 esac
10040 sunos4*)
10041 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10042 wlarc=
10043 hardcode_direct=yes
10044 hardcode_shlibpath_var=no
10048 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10049 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10050 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10051 else
10052 ld_shlibs=no
10055 esac
10057 if test "$ld_shlibs" = no; then
10058 runpath_var=
10059 hardcode_libdir_flag_spec=
10060 export_dynamic_flag_spec=
10061 whole_archive_flag_spec=
10063 else
10064 # PORTME fill in a description of your system's linker (not GNU ld)
10065 case $host_os in
10066 aix3*)
10067 allow_undefined_flag=unsupported
10068 always_export_symbols=yes
10069 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'
10070 # Note: this linker hardcodes the directories in LIBPATH if there
10071 # are no directories specified by -L.
10072 hardcode_minus_L=yes
10073 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10074 # Neither direct hardcoding nor static linking is supported with a
10075 # broken collect2.
10076 hardcode_direct=unsupported
10080 aix[4-9]*)
10081 if test "$host_cpu" = ia64; then
10082 # On IA64, the linker does run time linking by default, so we don't
10083 # have to do anything special.
10084 aix_use_runtimelinking=no
10085 exp_sym_flag='-Bexport'
10086 no_entry_flag=""
10087 else
10088 # If we're using GNU nm, then we don't want the "-C" option.
10089 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10090 # Also, AIX nm treats weak defined symbols like other global
10091 # defined symbols, whereas GNU nm marks them as "W".
10092 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10093 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'
10094 else
10095 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'
10097 aix_use_runtimelinking=no
10099 # Test if we are trying to use run time linking or normal
10100 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10101 # need to do runtime linking.
10102 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10103 for ld_flag in $LDFLAGS; do
10104 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10105 aix_use_runtimelinking=yes
10106 break
10108 done
10110 esac
10112 exp_sym_flag='-bexport'
10113 no_entry_flag='-bnoentry'
10116 # When large executables or shared objects are built, AIX ld can
10117 # have problems creating the table of contents. If linking a library
10118 # or program results in "error TOC overflow" add -mminimal-toc to
10119 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10120 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10122 archive_cmds=''
10123 hardcode_direct=yes
10124 hardcode_direct_absolute=yes
10125 hardcode_libdir_separator=':'
10126 link_all_deplibs=yes
10127 file_list_spec='${wl}-f,'
10129 if test "$GCC" = yes; then
10130 case $host_os in aix4.[012]|aix4.[012].*)
10131 # We only want to do this on AIX 4.2 and lower, the check
10132 # below for broken collect2 doesn't work under 4.3+
10133 collect2name=`${CC} -print-prog-name=collect2`
10134 if test -f "$collect2name" &&
10135 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10136 then
10137 # We have reworked collect2
10139 else
10140 # We have old collect2
10141 hardcode_direct=unsupported
10142 # It fails to find uninstalled libraries when the uninstalled
10143 # path is not listed in the libpath. Setting hardcode_minus_L
10144 # to unsupported forces relinking
10145 hardcode_minus_L=yes
10146 hardcode_libdir_flag_spec='-L$libdir'
10147 hardcode_libdir_separator=
10150 esac
10151 shared_flag='-shared'
10152 if test "$aix_use_runtimelinking" = yes; then
10153 shared_flag="$shared_flag "'${wl}-G'
10155 else
10156 # not using gcc
10157 if test "$host_cpu" = ia64; then
10158 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10159 # chokes on -Wl,-G. The following line is correct:
10160 shared_flag='-G'
10161 else
10162 if test "$aix_use_runtimelinking" = yes; then
10163 shared_flag='${wl}-G'
10164 else
10165 shared_flag='${wl}-bM:SRE'
10170 export_dynamic_flag_spec='${wl}-bexpall'
10171 # It seems that -bexpall does not export symbols beginning with
10172 # underscore (_), so it is better to generate a list of symbols to export.
10173 always_export_symbols=yes
10174 if test "$aix_use_runtimelinking" = yes; then
10175 # Warning - without using the other runtime loading flags (-brtl),
10176 # -berok will link without error, but may produce a broken library.
10177 allow_undefined_flag='-berok'
10178 # Determine the default libpath from the value encoded in an
10179 # empty executable.
10180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10181 /* end confdefs.h. */
10184 main ()
10188 return 0;
10190 _ACEOF
10191 if ac_fn_c_try_link "$LINENO"; then :
10193 lt_aix_libpath_sed='
10194 /Import File Strings/,/^$/ {
10195 /^0/ {
10196 s/^0 *\(.*\)$/\1/
10200 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10201 # Check for a 64-bit object if we didn't find anything.
10202 if test -z "$aix_libpath"; then
10203 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10206 rm -f core conftest.err conftest.$ac_objext \
10207 conftest$ac_exeext conftest.$ac_ext
10208 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10210 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10211 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"
10212 else
10213 if test "$host_cpu" = ia64; then
10214 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10215 allow_undefined_flag="-z nodefs"
10216 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"
10217 else
10218 # Determine the default libpath from the value encoded in an
10219 # empty executable.
10220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10221 /* end confdefs.h. */
10224 main ()
10228 return 0;
10230 _ACEOF
10231 if ac_fn_c_try_link "$LINENO"; then :
10233 lt_aix_libpath_sed='
10234 /Import File Strings/,/^$/ {
10235 /^0/ {
10236 s/^0 *\(.*\)$/\1/
10240 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10241 # Check for a 64-bit object if we didn't find anything.
10242 if test -z "$aix_libpath"; then
10243 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10246 rm -f core conftest.err conftest.$ac_objext \
10247 conftest$ac_exeext conftest.$ac_ext
10248 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10250 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10251 # Warning - without using the other run time loading flags,
10252 # -berok will link without error, but may produce a broken library.
10253 no_undefined_flag=' ${wl}-bernotok'
10254 allow_undefined_flag=' ${wl}-berok'
10255 if test "$with_gnu_ld" = yes; then
10256 # We only use this code for GNU lds that support --whole-archive.
10257 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10258 else
10259 # Exported symbols can be pulled into shared objects from archives
10260 whole_archive_flag_spec='$convenience'
10262 archive_cmds_need_lc=yes
10263 # This is similar to how AIX traditionally builds its shared libraries.
10264 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'
10269 amigaos*)
10270 case $host_cpu in
10271 powerpc)
10272 # see comment about AmigaOS4 .so support
10273 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10274 archive_expsym_cmds=''
10276 m68k)
10277 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)'
10278 hardcode_libdir_flag_spec='-L$libdir'
10279 hardcode_minus_L=yes
10281 esac
10284 bsdi[45]*)
10285 export_dynamic_flag_spec=-rdynamic
10288 cygwin* | mingw* | pw32* | cegcc*)
10289 # When not using gcc, we currently assume that we are using
10290 # Microsoft Visual C++.
10291 # hardcode_libdir_flag_spec is actually meaningless, as there is
10292 # no search path for DLLs.
10293 hardcode_libdir_flag_spec=' '
10294 allow_undefined_flag=unsupported
10295 # Tell ltmain to make .lib files, not .a files.
10296 libext=lib
10297 # Tell ltmain to make .dll files, not .so files.
10298 shrext_cmds=".dll"
10299 # FIXME: Setting linknames here is a bad hack.
10300 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10301 # The linker will automatically build a .lib file if we build a DLL.
10302 old_archive_from_new_cmds='true'
10303 # FIXME: Should let the user specify the lib program.
10304 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10305 fix_srcfile_path='`cygpath -w "$srcfile"`'
10306 enable_shared_with_static_runtimes=yes
10309 darwin* | rhapsody*)
10312 archive_cmds_need_lc=no
10313 hardcode_direct=no
10314 hardcode_automatic=yes
10315 hardcode_shlibpath_var=unsupported
10316 if test "$lt_cv_ld_force_load" = "yes"; then
10317 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\"`'
10318 else
10319 whole_archive_flag_spec=''
10321 link_all_deplibs=yes
10322 allow_undefined_flag="$_lt_dar_allow_undefined"
10323 case $cc_basename in
10324 ifort*) _lt_dar_can_shared=yes ;;
10325 *) _lt_dar_can_shared=$GCC ;;
10326 esac
10327 if test "$_lt_dar_can_shared" = "yes"; then
10328 output_verbose_link_cmd=func_echo_all
10329 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10330 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10331 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
10332 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}"
10334 else
10335 ld_shlibs=no
10340 dgux*)
10341 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10342 hardcode_libdir_flag_spec='-L$libdir'
10343 hardcode_shlibpath_var=no
10346 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10347 # support. Future versions do this automatically, but an explicit c++rt0.o
10348 # does not break anything, and helps significantly (at the cost of a little
10349 # extra space).
10350 freebsd2.2*)
10351 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10352 hardcode_libdir_flag_spec='-R$libdir'
10353 hardcode_direct=yes
10354 hardcode_shlibpath_var=no
10357 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10358 freebsd2.*)
10359 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10360 hardcode_direct=yes
10361 hardcode_minus_L=yes
10362 hardcode_shlibpath_var=no
10365 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10366 freebsd* | dragonfly*)
10367 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10368 hardcode_libdir_flag_spec='-R$libdir'
10369 hardcode_direct=yes
10370 hardcode_shlibpath_var=no
10373 hpux9*)
10374 if test "$GCC" = yes; then
10375 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'
10376 else
10377 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'
10379 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10380 hardcode_libdir_separator=:
10381 hardcode_direct=yes
10383 # hardcode_minus_L: Not really in the search PATH,
10384 # but as the default location of the library.
10385 hardcode_minus_L=yes
10386 export_dynamic_flag_spec='${wl}-E'
10389 hpux10*)
10390 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10391 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10392 else
10393 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10395 if test "$with_gnu_ld" = no; then
10396 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10397 hardcode_libdir_flag_spec_ld='+b $libdir'
10398 hardcode_libdir_separator=:
10399 hardcode_direct=yes
10400 hardcode_direct_absolute=yes
10401 export_dynamic_flag_spec='${wl}-E'
10402 # hardcode_minus_L: Not really in the search PATH,
10403 # but as the default location of the library.
10404 hardcode_minus_L=yes
10408 hpux11*)
10409 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10410 case $host_cpu in
10411 hppa*64*)
10412 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10414 ia64*)
10415 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10418 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10420 esac
10421 else
10422 case $host_cpu in
10423 hppa*64*)
10424 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10426 ia64*)
10427 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10431 # Older versions of the 11.00 compiler do not understand -b yet
10432 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10434 $as_echo_n "checking if $CC understands -b... " >&6; }
10435 if ${lt_cv_prog_compiler__b+:} false; then :
10436 $as_echo_n "(cached) " >&6
10437 else
10438 lt_cv_prog_compiler__b=no
10439 save_LDFLAGS="$LDFLAGS"
10440 LDFLAGS="$LDFLAGS -b"
10441 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10442 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10443 # The linker can only warn and ignore the option if not recognized
10444 # So say no if there are warnings
10445 if test -s conftest.err; then
10446 # Append any errors to the config.log.
10447 cat conftest.err 1>&5
10448 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10449 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10450 if diff conftest.exp conftest.er2 >/dev/null; then
10451 lt_cv_prog_compiler__b=yes
10453 else
10454 lt_cv_prog_compiler__b=yes
10457 $RM -r conftest*
10458 LDFLAGS="$save_LDFLAGS"
10461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10462 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10464 if test x"$lt_cv_prog_compiler__b" = xyes; then
10465 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10466 else
10467 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10471 esac
10473 if test "$with_gnu_ld" = no; then
10474 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10475 hardcode_libdir_separator=:
10477 case $host_cpu in
10478 hppa*64*|ia64*)
10479 hardcode_direct=no
10480 hardcode_shlibpath_var=no
10483 hardcode_direct=yes
10484 hardcode_direct_absolute=yes
10485 export_dynamic_flag_spec='${wl}-E'
10487 # hardcode_minus_L: Not really in the search PATH,
10488 # but as the default location of the library.
10489 hardcode_minus_L=yes
10491 esac
10495 irix5* | irix6* | nonstopux*)
10496 if test "$GCC" = yes; then
10497 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'
10498 # Try to use the -exported_symbol ld option, if it does not
10499 # work, assume that -exports_file does not work either and
10500 # implicitly export all symbols.
10501 save_LDFLAGS="$LDFLAGS"
10502 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10504 /* end confdefs.h. */
10505 int foo(void) {}
10506 _ACEOF
10507 if ac_fn_c_try_link "$LINENO"; then :
10508 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'
10511 rm -f core conftest.err conftest.$ac_objext \
10512 conftest$ac_exeext conftest.$ac_ext
10513 LDFLAGS="$save_LDFLAGS"
10514 else
10515 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'
10516 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'
10518 archive_cmds_need_lc='no'
10519 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10520 hardcode_libdir_separator=:
10521 inherit_rpath=yes
10522 link_all_deplibs=yes
10525 netbsd*)
10526 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10527 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10528 else
10529 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10531 hardcode_libdir_flag_spec='-R$libdir'
10532 hardcode_direct=yes
10533 hardcode_shlibpath_var=no
10536 newsos6)
10537 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10538 hardcode_direct=yes
10539 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10540 hardcode_libdir_separator=:
10541 hardcode_shlibpath_var=no
10544 *nto* | *qnx*)
10547 openbsd*)
10548 if test -f /usr/libexec/ld.so; then
10549 hardcode_direct=yes
10550 hardcode_shlibpath_var=no
10551 hardcode_direct_absolute=yes
10552 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10553 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10554 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10555 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10556 export_dynamic_flag_spec='${wl}-E'
10557 else
10558 case $host_os in
10559 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10560 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10561 hardcode_libdir_flag_spec='-R$libdir'
10564 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10565 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10567 esac
10569 else
10570 ld_shlibs=no
10574 os2*)
10575 hardcode_libdir_flag_spec='-L$libdir'
10576 hardcode_minus_L=yes
10577 allow_undefined_flag=unsupported
10578 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'
10579 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10582 osf3*)
10583 if test "$GCC" = yes; then
10584 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10585 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'
10586 else
10587 allow_undefined_flag=' -expect_unresolved \*'
10588 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'
10590 archive_cmds_need_lc='no'
10591 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10592 hardcode_libdir_separator=:
10595 osf4* | osf5*) # as osf3* with the addition of -msym flag
10596 if test "$GCC" = yes; then
10597 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10598 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'
10599 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10600 else
10601 allow_undefined_flag=' -expect_unresolved \*'
10602 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'
10603 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~
10604 $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'
10606 # Both c and cxx compiler support -rpath directly
10607 hardcode_libdir_flag_spec='-rpath $libdir'
10609 archive_cmds_need_lc='no'
10610 hardcode_libdir_separator=:
10613 solaris*)
10614 no_undefined_flag=' -z defs'
10615 if test "$GCC" = yes; then
10616 wlarc='${wl}'
10617 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10618 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10619 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10620 else
10621 case `$CC -V 2>&1` in
10622 *"Compilers 5.0"*)
10623 wlarc=''
10624 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10625 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10626 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10629 wlarc='${wl}'
10630 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10631 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10632 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10634 esac
10636 hardcode_libdir_flag_spec='-R$libdir'
10637 hardcode_shlibpath_var=no
10638 case $host_os in
10639 solaris2.[0-5] | solaris2.[0-5].*) ;;
10641 # The compiler driver will combine and reorder linker options,
10642 # but understands `-z linker_flag'. GCC discards it without `$wl',
10643 # but is careful enough not to reorder.
10644 # Supported since Solaris 2.6 (maybe 2.5.1?)
10645 if test "$GCC" = yes; then
10646 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10647 else
10648 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10651 esac
10652 link_all_deplibs=yes
10655 sunos4*)
10656 if test "x$host_vendor" = xsequent; then
10657 # Use $CC to link under sequent, because it throws in some extra .o
10658 # files that make .init and .fini sections work.
10659 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10660 else
10661 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10663 hardcode_libdir_flag_spec='-L$libdir'
10664 hardcode_direct=yes
10665 hardcode_minus_L=yes
10666 hardcode_shlibpath_var=no
10669 sysv4)
10670 case $host_vendor in
10671 sni)
10672 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10673 hardcode_direct=yes # is this really true???
10675 siemens)
10676 ## LD is ld it makes a PLAMLIB
10677 ## CC just makes a GrossModule.
10678 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10679 reload_cmds='$CC -r -o $output$reload_objs'
10680 hardcode_direct=no
10682 motorola)
10683 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10684 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10686 esac
10687 runpath_var='LD_RUN_PATH'
10688 hardcode_shlibpath_var=no
10691 sysv4.3*)
10692 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10693 hardcode_shlibpath_var=no
10694 export_dynamic_flag_spec='-Bexport'
10697 sysv4*MP*)
10698 if test -d /usr/nec; then
10699 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10700 hardcode_shlibpath_var=no
10701 runpath_var=LD_RUN_PATH
10702 hardcode_runpath_var=yes
10703 ld_shlibs=yes
10707 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10708 no_undefined_flag='${wl}-z,text'
10709 archive_cmds_need_lc=no
10710 hardcode_shlibpath_var=no
10711 runpath_var='LD_RUN_PATH'
10713 if test "$GCC" = yes; then
10714 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10715 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10716 else
10717 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10718 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10722 sysv5* | sco3.2v5* | sco5v6*)
10723 # Note: We can NOT use -z defs as we might desire, because we do not
10724 # link with -lc, and that would cause any symbols used from libc to
10725 # always be unresolved, which means just about no library would
10726 # ever link correctly. If we're not using GNU ld we use -z text
10727 # though, which does catch some bad symbols but isn't as heavy-handed
10728 # as -z defs.
10729 no_undefined_flag='${wl}-z,text'
10730 allow_undefined_flag='${wl}-z,nodefs'
10731 archive_cmds_need_lc=no
10732 hardcode_shlibpath_var=no
10733 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10734 hardcode_libdir_separator=':'
10735 link_all_deplibs=yes
10736 export_dynamic_flag_spec='${wl}-Bexport'
10737 runpath_var='LD_RUN_PATH'
10739 if test "$GCC" = yes; then
10740 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10741 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10742 else
10743 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10744 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10748 uts4*)
10749 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10750 hardcode_libdir_flag_spec='-L$libdir'
10751 hardcode_shlibpath_var=no
10755 ld_shlibs=no
10757 esac
10759 if test x$host_vendor = xsni; then
10760 case $host in
10761 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10762 export_dynamic_flag_spec='${wl}-Blargedynsym'
10764 esac
10768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10769 $as_echo "$ld_shlibs" >&6; }
10770 test "$ld_shlibs" = no && can_build_shared=no
10772 with_gnu_ld=$with_gnu_ld
10789 # Do we need to explicitly link libc?
10791 case "x$archive_cmds_need_lc" in
10792 x|xyes)
10793 # Assume -lc should be added
10794 archive_cmds_need_lc=yes
10796 if test "$enable_shared" = yes && test "$GCC" = yes; then
10797 case $archive_cmds in
10798 *'~'*)
10799 # FIXME: we may have to deal with multi-command sequences.
10801 '$CC '*)
10802 # Test whether the compiler implicitly links with -lc since on some
10803 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10804 # to ld, don't add -lc before -lgcc.
10805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10806 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10807 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10808 $as_echo_n "(cached) " >&6
10809 else
10810 $RM conftest*
10811 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10813 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10814 (eval $ac_compile) 2>&5
10815 ac_status=$?
10816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10817 test $ac_status = 0; } 2>conftest.err; then
10818 soname=conftest
10819 lib=conftest
10820 libobjs=conftest.$ac_objext
10821 deplibs=
10822 wl=$lt_prog_compiler_wl
10823 pic_flag=$lt_prog_compiler_pic
10824 compiler_flags=-v
10825 linker_flags=-v
10826 verstring=
10827 output_objdir=.
10828 libname=conftest
10829 lt_save_allow_undefined_flag=$allow_undefined_flag
10830 allow_undefined_flag=
10831 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10832 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10833 ac_status=$?
10834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10835 test $ac_status = 0; }
10836 then
10837 lt_cv_archive_cmds_need_lc=no
10838 else
10839 lt_cv_archive_cmds_need_lc=yes
10841 allow_undefined_flag=$lt_save_allow_undefined_flag
10842 else
10843 cat conftest.err 1>&5
10845 $RM conftest*
10848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10849 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10850 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10852 esac
10855 esac
11013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11014 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11016 if test "$GCC" = yes; then
11017 case $host_os in
11018 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11019 *) lt_awk_arg="/^libraries:/" ;;
11020 esac
11021 case $host_os in
11022 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11023 *) lt_sed_strip_eq="s,=/,/,g" ;;
11024 esac
11025 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11026 case $lt_search_path_spec in
11027 *\;*)
11028 # if the path contains ";" then we assume it to be the separator
11029 # otherwise default to the standard path separator (i.e. ":") - it is
11030 # assumed that no part of a normal pathname contains ";" but that should
11031 # okay in the real world where ";" in dirpaths is itself problematic.
11032 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11035 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11037 esac
11038 # Ok, now we have the path, separated by spaces, we can step through it
11039 # and add multilib dir if necessary.
11040 lt_tmp_lt_search_path_spec=
11041 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11042 for lt_sys_path in $lt_search_path_spec; do
11043 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11044 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11045 else
11046 test -d "$lt_sys_path" && \
11047 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11049 done
11050 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11051 BEGIN {RS=" "; FS="/|\n";} {
11052 lt_foo="";
11053 lt_count=0;
11054 for (lt_i = NF; lt_i > 0; lt_i--) {
11055 if ($lt_i != "" && $lt_i != ".") {
11056 if ($lt_i == "..") {
11057 lt_count++;
11058 } else {
11059 if (lt_count == 0) {
11060 lt_foo="/" $lt_i lt_foo;
11061 } else {
11062 lt_count--;
11067 if (lt_foo != "") { lt_freq[lt_foo]++; }
11068 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11070 # AWK program above erroneously prepends '/' to C:/dos/paths
11071 # for these hosts.
11072 case $host_os in
11073 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11074 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11075 esac
11076 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11077 else
11078 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11080 library_names_spec=
11081 libname_spec='lib$name'
11082 soname_spec=
11083 shrext_cmds=".so"
11084 postinstall_cmds=
11085 postuninstall_cmds=
11086 finish_cmds=
11087 finish_eval=
11088 shlibpath_var=
11089 shlibpath_overrides_runpath=unknown
11090 version_type=none
11091 dynamic_linker="$host_os ld.so"
11092 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11093 need_lib_prefix=unknown
11094 hardcode_into_libs=no
11096 # when you set need_version to no, make sure it does not cause -set_version
11097 # flags to be left without arguments
11098 need_version=unknown
11100 case $host_os in
11101 aix3*)
11102 version_type=linux
11103 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11104 shlibpath_var=LIBPATH
11106 # AIX 3 has no versioning support, so we append a major version to the name.
11107 soname_spec='${libname}${release}${shared_ext}$major'
11110 aix[4-9]*)
11111 version_type=linux
11112 need_lib_prefix=no
11113 need_version=no
11114 hardcode_into_libs=yes
11115 if test "$host_cpu" = ia64; then
11116 # AIX 5 supports IA64
11117 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11118 shlibpath_var=LD_LIBRARY_PATH
11119 else
11120 # With GCC up to 2.95.x, collect2 would create an import file
11121 # for dependence libraries. The import file would start with
11122 # the line `#! .'. This would cause the generated library to
11123 # depend on `.', always an invalid library. This was fixed in
11124 # development snapshots of GCC prior to 3.0.
11125 case $host_os in
11126 aix4 | aix4.[01] | aix4.[01].*)
11127 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11128 echo ' yes '
11129 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11131 else
11132 can_build_shared=no
11135 esac
11136 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11137 # soname into executable. Probably we can add versioning support to
11138 # collect2, so additional links can be useful in future.
11139 if test "$aix_use_runtimelinking" = yes; then
11140 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11141 # instead of lib<name>.a to let people know that these are not
11142 # typical AIX shared libraries.
11143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11144 else
11145 # We preserve .a as extension for shared libraries through AIX4.2
11146 # and later when we are not doing run time linking.
11147 library_names_spec='${libname}${release}.a $libname.a'
11148 soname_spec='${libname}${release}${shared_ext}$major'
11150 shlibpath_var=LIBPATH
11154 amigaos*)
11155 case $host_cpu in
11156 powerpc)
11157 # Since July 2007 AmigaOS4 officially supports .so libraries.
11158 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11161 m68k)
11162 library_names_spec='$libname.ixlibrary $libname.a'
11163 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11164 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'
11166 esac
11169 beos*)
11170 library_names_spec='${libname}${shared_ext}'
11171 dynamic_linker="$host_os ld.so"
11172 shlibpath_var=LIBRARY_PATH
11175 bsdi[45]*)
11176 version_type=linux
11177 need_version=no
11178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11179 soname_spec='${libname}${release}${shared_ext}$major'
11180 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11181 shlibpath_var=LD_LIBRARY_PATH
11182 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11183 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11184 # the default ld.so.conf also contains /usr/contrib/lib and
11185 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11186 # libtool to hard-code these into programs
11189 cygwin* | mingw* | pw32* | cegcc*)
11190 version_type=windows
11191 shrext_cmds=".dll"
11192 need_version=no
11193 need_lib_prefix=no
11195 case $GCC,$host_os in
11196 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11197 library_names_spec='$libname.dll.a'
11198 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11199 postinstall_cmds='base_file=`basename \${file}`~
11200 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11201 dldir=$destdir/`dirname \$dlpath`~
11202 test -d \$dldir || mkdir -p \$dldir~
11203 $install_prog $dir/$dlname \$dldir/$dlname~
11204 chmod a+x \$dldir/$dlname~
11205 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11206 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11208 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11209 dlpath=$dir/\$dldll~
11210 $RM \$dlpath'
11211 shlibpath_overrides_runpath=yes
11213 case $host_os in
11214 cygwin*)
11215 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11216 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11218 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11220 mingw* | cegcc*)
11221 # MinGW DLLs use traditional 'lib' prefix
11222 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11224 pw32*)
11225 # pw32 DLLs use 'pw' prefix rather than 'lib'
11226 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11228 esac
11232 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11234 esac
11235 dynamic_linker='Win32 ld.exe'
11236 # FIXME: first we should search . and the directory the executable is in
11237 shlibpath_var=PATH
11240 darwin* | rhapsody*)
11241 dynamic_linker="$host_os dyld"
11242 version_type=darwin
11243 need_lib_prefix=no
11244 need_version=no
11245 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11246 soname_spec='${libname}${release}${major}$shared_ext'
11247 shlibpath_overrides_runpath=yes
11248 shlibpath_var=DYLD_LIBRARY_PATH
11249 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11251 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11252 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11255 dgux*)
11256 version_type=linux
11257 need_lib_prefix=no
11258 need_version=no
11259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11260 soname_spec='${libname}${release}${shared_ext}$major'
11261 shlibpath_var=LD_LIBRARY_PATH
11264 freebsd* | dragonfly*)
11265 # DragonFly does not have aout. When/if they implement a new
11266 # versioning mechanism, adjust this.
11267 if test -x /usr/bin/objformat; then
11268 objformat=`/usr/bin/objformat`
11269 else
11270 case $host_os in
11271 freebsd[23].*) objformat=aout ;;
11272 *) objformat=elf ;;
11273 esac
11275 version_type=freebsd-$objformat
11276 case $version_type in
11277 freebsd-elf*)
11278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11279 need_version=no
11280 need_lib_prefix=no
11282 freebsd-*)
11283 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11284 need_version=yes
11286 esac
11287 shlibpath_var=LD_LIBRARY_PATH
11288 case $host_os in
11289 freebsd2.*)
11290 shlibpath_overrides_runpath=yes
11292 freebsd3.[01]* | freebsdelf3.[01]*)
11293 shlibpath_overrides_runpath=yes
11294 hardcode_into_libs=yes
11296 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11297 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11298 shlibpath_overrides_runpath=no
11299 hardcode_into_libs=yes
11301 *) # from 4.6 on, and DragonFly
11302 shlibpath_overrides_runpath=yes
11303 hardcode_into_libs=yes
11305 esac
11308 haiku*)
11309 version_type=linux
11310 need_lib_prefix=no
11311 need_version=no
11312 dynamic_linker="$host_os runtime_loader"
11313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11314 soname_spec='${libname}${release}${shared_ext}$major'
11315 shlibpath_var=LIBRARY_PATH
11316 shlibpath_overrides_runpath=yes
11317 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
11318 hardcode_into_libs=yes
11321 hpux9* | hpux10* | hpux11*)
11322 # Give a soname corresponding to the major version so that dld.sl refuses to
11323 # link against other versions.
11324 version_type=sunos
11325 need_lib_prefix=no
11326 need_version=no
11327 case $host_cpu in
11328 ia64*)
11329 shrext_cmds='.so'
11330 hardcode_into_libs=yes
11331 dynamic_linker="$host_os dld.so"
11332 shlibpath_var=LD_LIBRARY_PATH
11333 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11335 soname_spec='${libname}${release}${shared_ext}$major'
11336 if test "X$HPUX_IA64_MODE" = X32; then
11337 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11338 else
11339 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11341 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11343 hppa*64*)
11344 shrext_cmds='.sl'
11345 hardcode_into_libs=yes
11346 dynamic_linker="$host_os dld.sl"
11347 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11348 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11350 soname_spec='${libname}${release}${shared_ext}$major'
11351 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11352 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11355 shrext_cmds='.sl'
11356 dynamic_linker="$host_os dld.sl"
11357 shlibpath_var=SHLIB_PATH
11358 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11360 soname_spec='${libname}${release}${shared_ext}$major'
11362 esac
11363 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11364 postinstall_cmds='chmod 555 $lib'
11365 # or fails outright, so override atomically:
11366 install_override_mode=555
11369 interix[3-9]*)
11370 version_type=linux
11371 need_lib_prefix=no
11372 need_version=no
11373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11374 soname_spec='${libname}${release}${shared_ext}$major'
11375 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11376 shlibpath_var=LD_LIBRARY_PATH
11377 shlibpath_overrides_runpath=no
11378 hardcode_into_libs=yes
11381 irix5* | irix6* | nonstopux*)
11382 case $host_os in
11383 nonstopux*) version_type=nonstopux ;;
11385 if test "$lt_cv_prog_gnu_ld" = yes; then
11386 version_type=linux
11387 else
11388 version_type=irix
11389 fi ;;
11390 esac
11391 need_lib_prefix=no
11392 need_version=no
11393 soname_spec='${libname}${release}${shared_ext}$major'
11394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11395 case $host_os in
11396 irix5* | nonstopux*)
11397 libsuff= shlibsuff=
11400 case $LD in # libtool.m4 will add one of these switches to LD
11401 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11402 libsuff= shlibsuff= libmagic=32-bit;;
11403 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11404 libsuff=32 shlibsuff=N32 libmagic=N32;;
11405 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11406 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11407 *) libsuff= shlibsuff= libmagic=never-match;;
11408 esac
11410 esac
11411 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11412 shlibpath_overrides_runpath=no
11413 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11414 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11415 hardcode_into_libs=yes
11418 # No shared lib support for Linux oldld, aout, or coff.
11419 linux*oldld* | linux*aout* | linux*coff*)
11420 dynamic_linker=no
11423 # This must be Linux ELF.
11425 # uclinux* changes (here and below) have been submitted to the libtool
11426 # project, but have not yet been accepted: they are GCC-local changes
11427 # for the time being. (See
11428 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
11429 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
11430 version_type=linux
11431 need_lib_prefix=no
11432 need_version=no
11433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11434 soname_spec='${libname}${release}${shared_ext}$major'
11435 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11436 shlibpath_var=LD_LIBRARY_PATH
11437 shlibpath_overrides_runpath=no
11439 # Some binutils ld are patched to set DT_RUNPATH
11440 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11441 $as_echo_n "(cached) " >&6
11442 else
11443 lt_cv_shlibpath_overrides_runpath=no
11444 save_LDFLAGS=$LDFLAGS
11445 save_libdir=$libdir
11446 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11447 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11449 /* end confdefs.h. */
11452 main ()
11456 return 0;
11458 _ACEOF
11459 if ac_fn_c_try_link "$LINENO"; then :
11460 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11461 lt_cv_shlibpath_overrides_runpath=yes
11464 rm -f core conftest.err conftest.$ac_objext \
11465 conftest$ac_exeext conftest.$ac_ext
11466 LDFLAGS=$save_LDFLAGS
11467 libdir=$save_libdir
11471 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11473 # This implies no fast_install, which is unacceptable.
11474 # Some rework will be needed to allow for fast_install
11475 # before this can be enabled.
11476 hardcode_into_libs=yes
11478 # Append ld.so.conf contents to the search path
11479 if test -f /etc/ld.so.conf; then
11480 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' ' '`
11481 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11484 # We used to test for /lib/ld.so.1 and disable shared libraries on
11485 # powerpc, because MkLinux only supported shared libraries with the
11486 # GNU dynamic linker. Since this was broken with cross compilers,
11487 # most powerpc-linux boxes support dynamic linking these days and
11488 # people can always --disable-shared, the test was removed, and we
11489 # assume the GNU/Linux dynamic linker is in use.
11490 dynamic_linker='GNU/Linux ld.so'
11493 netbsd*)
11494 version_type=sunos
11495 need_lib_prefix=no
11496 need_version=no
11497 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11499 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11500 dynamic_linker='NetBSD (a.out) ld.so'
11501 else
11502 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11503 soname_spec='${libname}${release}${shared_ext}$major'
11504 dynamic_linker='NetBSD ld.elf_so'
11506 shlibpath_var=LD_LIBRARY_PATH
11507 shlibpath_overrides_runpath=yes
11508 hardcode_into_libs=yes
11511 newsos6)
11512 version_type=linux
11513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11514 shlibpath_var=LD_LIBRARY_PATH
11515 shlibpath_overrides_runpath=yes
11518 *nto* | *qnx*)
11519 version_type=qnx
11520 need_lib_prefix=no
11521 need_version=no
11522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11523 soname_spec='${libname}${release}${shared_ext}$major'
11524 shlibpath_var=LD_LIBRARY_PATH
11525 shlibpath_overrides_runpath=no
11526 hardcode_into_libs=yes
11527 dynamic_linker='ldqnx.so'
11530 openbsd*)
11531 version_type=sunos
11532 sys_lib_dlsearch_path_spec="/usr/lib"
11533 need_lib_prefix=no
11534 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11535 case $host_os in
11536 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11537 *) need_version=no ;;
11538 esac
11539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11540 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11541 shlibpath_var=LD_LIBRARY_PATH
11542 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11543 case $host_os in
11544 openbsd2.[89] | openbsd2.[89].*)
11545 shlibpath_overrides_runpath=no
11548 shlibpath_overrides_runpath=yes
11550 esac
11551 else
11552 shlibpath_overrides_runpath=yes
11556 os2*)
11557 libname_spec='$name'
11558 shrext_cmds=".dll"
11559 need_lib_prefix=no
11560 library_names_spec='$libname${shared_ext} $libname.a'
11561 dynamic_linker='OS/2 ld.exe'
11562 shlibpath_var=LIBPATH
11565 osf3* | osf4* | osf5*)
11566 version_type=osf
11567 need_lib_prefix=no
11568 need_version=no
11569 soname_spec='${libname}${release}${shared_ext}$major'
11570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11571 shlibpath_var=LD_LIBRARY_PATH
11572 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11573 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11576 rdos*)
11577 dynamic_linker=no
11580 solaris*)
11581 version_type=linux
11582 need_lib_prefix=no
11583 need_version=no
11584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11585 soname_spec='${libname}${release}${shared_ext}$major'
11586 shlibpath_var=LD_LIBRARY_PATH
11587 shlibpath_overrides_runpath=yes
11588 hardcode_into_libs=yes
11589 # ldd complains unless libraries are executable
11590 postinstall_cmds='chmod +x $lib'
11593 sunos4*)
11594 version_type=sunos
11595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11596 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11597 shlibpath_var=LD_LIBRARY_PATH
11598 shlibpath_overrides_runpath=yes
11599 if test "$with_gnu_ld" = yes; then
11600 need_lib_prefix=no
11602 need_version=yes
11605 sysv4 | sysv4.3*)
11606 version_type=linux
11607 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11608 soname_spec='${libname}${release}${shared_ext}$major'
11609 shlibpath_var=LD_LIBRARY_PATH
11610 case $host_vendor in
11611 sni)
11612 shlibpath_overrides_runpath=no
11613 need_lib_prefix=no
11614 runpath_var=LD_RUN_PATH
11616 siemens)
11617 need_lib_prefix=no
11619 motorola)
11620 need_lib_prefix=no
11621 need_version=no
11622 shlibpath_overrides_runpath=no
11623 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11625 esac
11628 sysv4*MP*)
11629 if test -d /usr/nec ;then
11630 version_type=linux
11631 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11632 soname_spec='$libname${shared_ext}.$major'
11633 shlibpath_var=LD_LIBRARY_PATH
11637 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11638 version_type=freebsd-elf
11639 need_lib_prefix=no
11640 need_version=no
11641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11642 soname_spec='${libname}${release}${shared_ext}$major'
11643 shlibpath_var=LD_LIBRARY_PATH
11644 shlibpath_overrides_runpath=yes
11645 hardcode_into_libs=yes
11646 if test "$with_gnu_ld" = yes; then
11647 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11648 else
11649 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11650 case $host_os in
11651 sco3.2v5*)
11652 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11654 esac
11656 sys_lib_dlsearch_path_spec='/usr/lib'
11659 tpf*)
11660 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11661 version_type=linux
11662 need_lib_prefix=no
11663 need_version=no
11664 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11665 shlibpath_var=LD_LIBRARY_PATH
11666 shlibpath_overrides_runpath=no
11667 hardcode_into_libs=yes
11670 uts4*)
11671 version_type=linux
11672 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11673 soname_spec='${libname}${release}${shared_ext}$major'
11674 shlibpath_var=LD_LIBRARY_PATH
11677 # Shared libraries for VwWorks, >= 7 only at this stage
11678 # and (fpic) still incompatible with "large" code models
11679 # in a few configurations. Only for RTP mode in any case,
11680 # and upon explicit request at configure time.
11681 vxworks7*)
11682 dynamic_linker=no
11683 case ${with_multisubdir}-${enable_shared} in
11684 *large*)
11686 *mrtp*-yes)
11687 version_type=linux
11688 need_lib_prefix=no
11689 need_version=no
11690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11691 soname_spec='${libname}${release}${shared_ext}$major'
11692 dynamic_linker="$host_os module_loader"
11694 esac
11697 dynamic_linker=no
11699 esac
11700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11701 $as_echo "$dynamic_linker" >&6; }
11702 test "$dynamic_linker" = no && can_build_shared=no
11704 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11705 if test "$GCC" = yes; then
11706 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11709 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11710 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11712 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11713 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11808 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11809 hardcode_action=
11810 if test -n "$hardcode_libdir_flag_spec" ||
11811 test -n "$runpath_var" ||
11812 test "X$hardcode_automatic" = "Xyes" ; then
11814 # We can hardcode non-existent directories.
11815 if test "$hardcode_direct" != no &&
11816 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11817 # have to relink, otherwise we might link with an installed library
11818 # when we should be linking with a yet-to-be-installed one
11819 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11820 test "$hardcode_minus_L" != no; then
11821 # Linking always hardcodes the temporary library directory.
11822 hardcode_action=relink
11823 else
11824 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11825 hardcode_action=immediate
11827 else
11828 # We cannot hardcode anything, or else we can only hardcode existing
11829 # directories.
11830 hardcode_action=unsupported
11832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11833 $as_echo "$hardcode_action" >&6; }
11835 if test "$hardcode_action" = relink ||
11836 test "$inherit_rpath" = yes; then
11837 # Fast installation is not supported
11838 enable_fast_install=no
11839 elif test "$shlibpath_overrides_runpath" = yes ||
11840 test "$enable_shared" = no; then
11841 # Fast installation is not necessary
11842 enable_fast_install=needless
11850 if test "x$enable_dlopen" != xyes; then
11851 enable_dlopen=unknown
11852 enable_dlopen_self=unknown
11853 enable_dlopen_self_static=unknown
11854 else
11855 lt_cv_dlopen=no
11856 lt_cv_dlopen_libs=
11858 case $host_os in
11859 beos*)
11860 lt_cv_dlopen="load_add_on"
11861 lt_cv_dlopen_libs=
11862 lt_cv_dlopen_self=yes
11865 mingw* | pw32* | cegcc*)
11866 lt_cv_dlopen="LoadLibrary"
11867 lt_cv_dlopen_libs=
11870 cygwin*)
11871 lt_cv_dlopen="dlopen"
11872 lt_cv_dlopen_libs=
11875 darwin*)
11876 # if libdl is installed we need to link against it
11877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11878 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11879 if ${ac_cv_lib_dl_dlopen+:} false; then :
11880 $as_echo_n "(cached) " >&6
11881 else
11882 ac_check_lib_save_LIBS=$LIBS
11883 LIBS="-ldl $LIBS"
11884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11885 /* end confdefs.h. */
11887 /* Override any GCC internal prototype to avoid an error.
11888 Use char because int might match the return type of a GCC
11889 builtin and then its argument prototype would still apply. */
11890 #ifdef __cplusplus
11891 extern "C"
11892 #endif
11893 char dlopen ();
11895 main ()
11897 return dlopen ();
11899 return 0;
11901 _ACEOF
11902 if ac_fn_c_try_link "$LINENO"; then :
11903 ac_cv_lib_dl_dlopen=yes
11904 else
11905 ac_cv_lib_dl_dlopen=no
11907 rm -f core conftest.err conftest.$ac_objext \
11908 conftest$ac_exeext conftest.$ac_ext
11909 LIBS=$ac_check_lib_save_LIBS
11911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11912 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11913 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11914 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11915 else
11917 lt_cv_dlopen="dyld"
11918 lt_cv_dlopen_libs=
11919 lt_cv_dlopen_self=yes
11926 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11927 if test "x$ac_cv_func_shl_load" = xyes; then :
11928 lt_cv_dlopen="shl_load"
11929 else
11930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11931 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11932 if ${ac_cv_lib_dld_shl_load+:} false; then :
11933 $as_echo_n "(cached) " >&6
11934 else
11935 ac_check_lib_save_LIBS=$LIBS
11936 LIBS="-ldld $LIBS"
11937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11938 /* end confdefs.h. */
11940 /* Override any GCC internal prototype to avoid an error.
11941 Use char because int might match the return type of a GCC
11942 builtin and then its argument prototype would still apply. */
11943 #ifdef __cplusplus
11944 extern "C"
11945 #endif
11946 char shl_load ();
11948 main ()
11950 return shl_load ();
11952 return 0;
11954 _ACEOF
11955 if ac_fn_c_try_link "$LINENO"; then :
11956 ac_cv_lib_dld_shl_load=yes
11957 else
11958 ac_cv_lib_dld_shl_load=no
11960 rm -f core conftest.err conftest.$ac_objext \
11961 conftest$ac_exeext conftest.$ac_ext
11962 LIBS=$ac_check_lib_save_LIBS
11964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11965 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11966 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11967 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11968 else
11969 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11970 if test "x$ac_cv_func_dlopen" = xyes; then :
11971 lt_cv_dlopen="dlopen"
11972 else
11973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11974 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11975 if ${ac_cv_lib_dl_dlopen+:} false; then :
11976 $as_echo_n "(cached) " >&6
11977 else
11978 ac_check_lib_save_LIBS=$LIBS
11979 LIBS="-ldl $LIBS"
11980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11981 /* end confdefs.h. */
11983 /* Override any GCC internal prototype to avoid an error.
11984 Use char because int might match the return type of a GCC
11985 builtin and then its argument prototype would still apply. */
11986 #ifdef __cplusplus
11987 extern "C"
11988 #endif
11989 char dlopen ();
11991 main ()
11993 return dlopen ();
11995 return 0;
11997 _ACEOF
11998 if ac_fn_c_try_link "$LINENO"; then :
11999 ac_cv_lib_dl_dlopen=yes
12000 else
12001 ac_cv_lib_dl_dlopen=no
12003 rm -f core conftest.err conftest.$ac_objext \
12004 conftest$ac_exeext conftest.$ac_ext
12005 LIBS=$ac_check_lib_save_LIBS
12007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12008 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12009 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12010 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12011 else
12012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12013 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12014 if ${ac_cv_lib_svld_dlopen+:} false; then :
12015 $as_echo_n "(cached) " >&6
12016 else
12017 ac_check_lib_save_LIBS=$LIBS
12018 LIBS="-lsvld $LIBS"
12019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12020 /* end confdefs.h. */
12022 /* Override any GCC internal prototype to avoid an error.
12023 Use char because int might match the return type of a GCC
12024 builtin and then its argument prototype would still apply. */
12025 #ifdef __cplusplus
12026 extern "C"
12027 #endif
12028 char dlopen ();
12030 main ()
12032 return dlopen ();
12034 return 0;
12036 _ACEOF
12037 if ac_fn_c_try_link "$LINENO"; then :
12038 ac_cv_lib_svld_dlopen=yes
12039 else
12040 ac_cv_lib_svld_dlopen=no
12042 rm -f core conftest.err conftest.$ac_objext \
12043 conftest$ac_exeext conftest.$ac_ext
12044 LIBS=$ac_check_lib_save_LIBS
12046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12047 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12048 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12049 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12050 else
12051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12052 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12053 if ${ac_cv_lib_dld_dld_link+:} false; then :
12054 $as_echo_n "(cached) " >&6
12055 else
12056 ac_check_lib_save_LIBS=$LIBS
12057 LIBS="-ldld $LIBS"
12058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12059 /* end confdefs.h. */
12061 /* Override any GCC internal prototype to avoid an error.
12062 Use char because int might match the return type of a GCC
12063 builtin and then its argument prototype would still apply. */
12064 #ifdef __cplusplus
12065 extern "C"
12066 #endif
12067 char dld_link ();
12069 main ()
12071 return dld_link ();
12073 return 0;
12075 _ACEOF
12076 if ac_fn_c_try_link "$LINENO"; then :
12077 ac_cv_lib_dld_dld_link=yes
12078 else
12079 ac_cv_lib_dld_dld_link=no
12081 rm -f core conftest.err conftest.$ac_objext \
12082 conftest$ac_exeext conftest.$ac_ext
12083 LIBS=$ac_check_lib_save_LIBS
12085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12086 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12087 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12088 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12107 esac
12109 if test "x$lt_cv_dlopen" != xno; then
12110 enable_dlopen=yes
12111 else
12112 enable_dlopen=no
12115 case $lt_cv_dlopen in
12116 dlopen)
12117 save_CPPFLAGS="$CPPFLAGS"
12118 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12120 save_LDFLAGS="$LDFLAGS"
12121 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12123 save_LIBS="$LIBS"
12124 LIBS="$lt_cv_dlopen_libs $LIBS"
12126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12127 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12128 if ${lt_cv_dlopen_self+:} false; then :
12129 $as_echo_n "(cached) " >&6
12130 else
12131 if test "$cross_compiling" = yes; then :
12132 lt_cv_dlopen_self=cross
12133 else
12134 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12135 lt_status=$lt_dlunknown
12136 cat > conftest.$ac_ext <<_LT_EOF
12137 #line 12137 "configure"
12138 #include "confdefs.h"
12140 #if HAVE_DLFCN_H
12141 #include <dlfcn.h>
12142 #endif
12144 #include <stdio.h>
12146 #ifdef RTLD_GLOBAL
12147 # define LT_DLGLOBAL RTLD_GLOBAL
12148 #else
12149 # ifdef DL_GLOBAL
12150 # define LT_DLGLOBAL DL_GLOBAL
12151 # else
12152 # define LT_DLGLOBAL 0
12153 # endif
12154 #endif
12156 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12157 find out it does not work in some platform. */
12158 #ifndef LT_DLLAZY_OR_NOW
12159 # ifdef RTLD_LAZY
12160 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12161 # else
12162 # ifdef DL_LAZY
12163 # define LT_DLLAZY_OR_NOW DL_LAZY
12164 # else
12165 # ifdef RTLD_NOW
12166 # define LT_DLLAZY_OR_NOW RTLD_NOW
12167 # else
12168 # ifdef DL_NOW
12169 # define LT_DLLAZY_OR_NOW DL_NOW
12170 # else
12171 # define LT_DLLAZY_OR_NOW 0
12172 # endif
12173 # endif
12174 # endif
12175 # endif
12176 #endif
12178 /* When -fvisbility=hidden is used, assume the code has been annotated
12179 correspondingly for the symbols needed. */
12180 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12181 void fnord () __attribute__((visibility("default")));
12182 #endif
12184 void fnord () { int i=42; }
12185 int main ()
12187 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12188 int status = $lt_dlunknown;
12190 if (self)
12192 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12193 else
12195 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12196 else puts (dlerror ());
12198 /* dlclose (self); */
12200 else
12201 puts (dlerror ());
12203 return status;
12205 _LT_EOF
12206 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12207 (eval $ac_link) 2>&5
12208 ac_status=$?
12209 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12210 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12211 (./conftest; exit; ) >&5 2>/dev/null
12212 lt_status=$?
12213 case x$lt_status in
12214 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12215 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12216 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12217 esac
12218 else :
12219 # compilation failed
12220 lt_cv_dlopen_self=no
12223 rm -fr conftest*
12227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12228 $as_echo "$lt_cv_dlopen_self" >&6; }
12230 if test "x$lt_cv_dlopen_self" = xyes; then
12231 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12233 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12234 if ${lt_cv_dlopen_self_static+:} false; then :
12235 $as_echo_n "(cached) " >&6
12236 else
12237 if test "$cross_compiling" = yes; then :
12238 lt_cv_dlopen_self_static=cross
12239 else
12240 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12241 lt_status=$lt_dlunknown
12242 cat > conftest.$ac_ext <<_LT_EOF
12243 #line 12243 "configure"
12244 #include "confdefs.h"
12246 #if HAVE_DLFCN_H
12247 #include <dlfcn.h>
12248 #endif
12250 #include <stdio.h>
12252 #ifdef RTLD_GLOBAL
12253 # define LT_DLGLOBAL RTLD_GLOBAL
12254 #else
12255 # ifdef DL_GLOBAL
12256 # define LT_DLGLOBAL DL_GLOBAL
12257 # else
12258 # define LT_DLGLOBAL 0
12259 # endif
12260 #endif
12262 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12263 find out it does not work in some platform. */
12264 #ifndef LT_DLLAZY_OR_NOW
12265 # ifdef RTLD_LAZY
12266 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12267 # else
12268 # ifdef DL_LAZY
12269 # define LT_DLLAZY_OR_NOW DL_LAZY
12270 # else
12271 # ifdef RTLD_NOW
12272 # define LT_DLLAZY_OR_NOW RTLD_NOW
12273 # else
12274 # ifdef DL_NOW
12275 # define LT_DLLAZY_OR_NOW DL_NOW
12276 # else
12277 # define LT_DLLAZY_OR_NOW 0
12278 # endif
12279 # endif
12280 # endif
12281 # endif
12282 #endif
12284 /* When -fvisbility=hidden is used, assume the code has been annotated
12285 correspondingly for the symbols needed. */
12286 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12287 void fnord () __attribute__((visibility("default")));
12288 #endif
12290 void fnord () { int i=42; }
12291 int main ()
12293 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12294 int status = $lt_dlunknown;
12296 if (self)
12298 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12299 else
12301 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12302 else puts (dlerror ());
12304 /* dlclose (self); */
12306 else
12307 puts (dlerror ());
12309 return status;
12311 _LT_EOF
12312 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12313 (eval $ac_link) 2>&5
12314 ac_status=$?
12315 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12316 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12317 (./conftest; exit; ) >&5 2>/dev/null
12318 lt_status=$?
12319 case x$lt_status in
12320 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12321 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12322 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12323 esac
12324 else :
12325 # compilation failed
12326 lt_cv_dlopen_self_static=no
12329 rm -fr conftest*
12333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12334 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12337 CPPFLAGS="$save_CPPFLAGS"
12338 LDFLAGS="$save_LDFLAGS"
12339 LIBS="$save_LIBS"
12341 esac
12343 case $lt_cv_dlopen_self in
12344 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12345 *) enable_dlopen_self=unknown ;;
12346 esac
12348 case $lt_cv_dlopen_self_static in
12349 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12350 *) enable_dlopen_self_static=unknown ;;
12351 esac
12370 striplib=
12371 old_striplib=
12372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12373 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12374 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12375 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12376 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12378 $as_echo "yes" >&6; }
12379 else
12380 # FIXME - insert some real tests, host_os isn't really good enough
12381 case $host_os in
12382 darwin*)
12383 if test -n "$STRIP" ; then
12384 striplib="$STRIP -x"
12385 old_striplib="$STRIP -S"
12386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12387 $as_echo "yes" >&6; }
12388 else
12389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12390 $as_echo "no" >&6; }
12394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12395 $as_echo "no" >&6; }
12397 esac
12411 # Report which library types will actually be built
12412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12413 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12415 $as_echo "$can_build_shared" >&6; }
12417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12418 $as_echo_n "checking whether to build shared libraries... " >&6; }
12419 test "$can_build_shared" = "no" && enable_shared=no
12421 # On AIX, shared libraries and static libraries use the same namespace, and
12422 # are all built from PIC.
12423 case $host_os in
12424 aix3*)
12425 test "$enable_shared" = yes && enable_static=no
12426 if test -n "$RANLIB"; then
12427 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12428 postinstall_cmds='$RANLIB $lib'
12432 aix[4-9]*)
12433 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12434 test "$enable_shared" = yes && enable_static=no
12437 esac
12438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12439 $as_echo "$enable_shared" >&6; }
12441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12442 $as_echo_n "checking whether to build static libraries... " >&6; }
12443 # Make sure either enable_shared or enable_static is yes.
12444 test "$enable_shared" = yes || enable_static=yes
12445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12446 $as_echo "$enable_static" >&6; }
12452 ac_ext=c
12453 ac_cpp='$CPP $CPPFLAGS'
12454 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12455 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12456 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12458 CC="$lt_save_CC"
12472 ac_config_commands="$ac_config_commands libtool"
12477 # Only expand once:
12483 case $host in
12484 *-cygwin* | *-mingw*)
12485 # 'host' will be top-level target in the case of a target lib,
12486 # we must compare to with_cross_host to decide if this is a native
12487 # or cross-compiler and select where to install dlls appropriately.
12488 if test -n "$with_cross_host" &&
12489 test x"$with_cross_host" != x"no"; then
12490 lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"';
12491 else
12492 lt_host_flags='-no-undefined -bindir "$(bindir)"';
12496 lt_host_flags=
12498 esac
12503 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
12504 case $ac_cv_c_int64_t in #(
12505 no|yes) ;; #(
12508 cat >>confdefs.h <<_ACEOF
12509 #define int64_t $ac_cv_c_int64_t
12510 _ACEOF
12512 esac
12514 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
12515 case $ac_cv_c_uint64_t in #(
12516 no|yes) ;; #(
12519 $as_echo "#define _UINT64_T 1" >>confdefs.h
12522 cat >>confdefs.h <<_ACEOF
12523 #define uint64_t $ac_cv_c_uint64_t
12524 _ACEOF
12526 esac
12528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
12529 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
12530 if ${ac_cv_header_sys_wait_h+:} false; then :
12531 $as_echo_n "(cached) " >&6
12532 else
12533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12534 /* end confdefs.h. */
12535 #include <sys/types.h>
12536 #include <sys/wait.h>
12537 #ifndef WEXITSTATUS
12538 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
12539 #endif
12540 #ifndef WIFEXITED
12541 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
12542 #endif
12545 main ()
12547 int s;
12548 wait (&s);
12549 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
12551 return 0;
12553 _ACEOF
12554 if ac_fn_c_try_compile "$LINENO"; then :
12555 ac_cv_header_sys_wait_h=yes
12556 else
12557 ac_cv_header_sys_wait_h=no
12559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
12562 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
12563 if test $ac_cv_header_sys_wait_h = yes; then
12565 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
12569 ac_config_files="$ac_config_files Makefile"
12571 ac_config_headers="$ac_config_headers config.h"
12573 cat >confcache <<\_ACEOF
12574 # This file is a shell script that caches the results of configure
12575 # tests run on this system so they can be shared between configure
12576 # scripts and configure runs, see configure's option --config-cache.
12577 # It is not useful on other systems. If it contains results you don't
12578 # want to keep, you may remove or edit it.
12580 # config.status only pays attention to the cache file if you give it
12581 # the --recheck option to rerun configure.
12583 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12584 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12585 # following values.
12587 _ACEOF
12589 # The following way of writing the cache mishandles newlines in values,
12590 # but we know of no workaround that is simple, portable, and efficient.
12591 # So, we kill variables containing newlines.
12592 # Ultrix sh set writes to stderr and can't be redirected directly,
12593 # and sets the high bit in the cache file unless we assign to the vars.
12595 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12596 eval ac_val=\$$ac_var
12597 case $ac_val in #(
12598 *${as_nl}*)
12599 case $ac_var in #(
12600 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12601 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12602 esac
12603 case $ac_var in #(
12604 _ | IFS | as_nl) ;; #(
12605 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12606 *) { eval $ac_var=; unset $ac_var;} ;;
12607 esac ;;
12608 esac
12609 done
12611 (set) 2>&1 |
12612 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12613 *${as_nl}ac_space=\ *)
12614 # `set' does not quote correctly, so add quotes: double-quote
12615 # substitution turns \\\\ into \\, and sed turns \\ into \.
12616 sed -n \
12617 "s/'/'\\\\''/g;
12618 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12619 ;; #(
12621 # `set' quotes correctly as required by POSIX, so do not add quotes.
12622 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12624 esac |
12625 sort
12627 sed '
12628 /^ac_cv_env_/b end
12629 t clear
12630 :clear
12631 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12632 t end
12633 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12634 :end' >>confcache
12635 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12636 if test -w "$cache_file"; then
12637 if test "x$cache_file" != "x/dev/null"; then
12638 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12639 $as_echo "$as_me: updating cache $cache_file" >&6;}
12640 if test ! -f "$cache_file" || test -h "$cache_file"; then
12641 cat confcache >"$cache_file"
12642 else
12643 case $cache_file in #(
12644 */* | ?:*)
12645 mv -f confcache "$cache_file"$$ &&
12646 mv -f "$cache_file"$$ "$cache_file" ;; #(
12648 mv -f confcache "$cache_file" ;;
12649 esac
12652 else
12653 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12654 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12657 rm -f confcache
12659 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12660 # Let make expand exec_prefix.
12661 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12663 DEFS=-DHAVE_CONFIG_H
12665 ac_libobjs=
12666 ac_ltlibobjs=
12668 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12669 # 1. Remove the extension, and $U if already installed.
12670 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12671 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12672 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12673 # will be set to the directory where LIBOBJS objects are built.
12674 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12675 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12676 done
12677 LIBOBJS=$ac_libobjs
12679 LTLIBOBJS=$ac_ltlibobjs
12682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
12683 $as_echo_n "checking that generated files are newer than configure... " >&6; }
12684 if test -n "$am_sleep_pid"; then
12685 # Hide warnings about reused PIDs.
12686 wait $am_sleep_pid 2>/dev/null
12688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
12689 $as_echo "done" >&6; }
12690 if test -n "$EXEEXT"; then
12691 am__EXEEXT_TRUE=
12692 am__EXEEXT_FALSE='#'
12693 else
12694 am__EXEEXT_TRUE='#'
12695 am__EXEEXT_FALSE=
12698 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12699 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
12700 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12702 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12703 as_fn_error $? "conditional \"AMDEP\" was never defined.
12704 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12706 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12707 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12708 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12710 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12711 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12712 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12714 if test -z "${LTO_PLUGIN_USE_SYMVER_TRUE}" && test -z "${LTO_PLUGIN_USE_SYMVER_FALSE}"; then
12715 as_fn_error $? "conditional \"LTO_PLUGIN_USE_SYMVER\" was never defined.
12716 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12718 if test -z "${LTO_PLUGIN_USE_SYMVER_GNU_TRUE}" && test -z "${LTO_PLUGIN_USE_SYMVER_GNU_FALSE}"; then
12719 as_fn_error $? "conditional \"LTO_PLUGIN_USE_SYMVER_GNU\" was never defined.
12720 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12722 if test -z "${LTO_PLUGIN_USE_SYMVER_SUN_TRUE}" && test -z "${LTO_PLUGIN_USE_SYMVER_SUN_FALSE}"; then
12723 as_fn_error $? "conditional \"LTO_PLUGIN_USE_SYMVER_SUN\" was never defined.
12724 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12727 : "${CONFIG_STATUS=./config.status}"
12728 ac_write_fail=0
12729 ac_clean_files_save=$ac_clean_files
12730 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12731 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12732 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12733 as_write_fail=0
12734 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12735 #! $SHELL
12736 # Generated by $as_me.
12737 # Run this file to recreate the current configuration.
12738 # Compiler output produced by configure, useful for debugging
12739 # configure, is in config.log if it exists.
12741 debug=false
12742 ac_cs_recheck=false
12743 ac_cs_silent=false
12745 SHELL=\${CONFIG_SHELL-$SHELL}
12746 export SHELL
12747 _ASEOF
12748 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12749 ## -------------------- ##
12750 ## M4sh Initialization. ##
12751 ## -------------------- ##
12753 # Be more Bourne compatible
12754 DUALCASE=1; export DUALCASE # for MKS sh
12755 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12756 emulate sh
12757 NULLCMD=:
12758 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12759 # is contrary to our usage. Disable this feature.
12760 alias -g '${1+"$@"}'='"$@"'
12761 setopt NO_GLOB_SUBST
12762 else
12763 case `(set -o) 2>/dev/null` in #(
12764 *posix*) :
12765 set -o posix ;; #(
12766 *) :
12768 esac
12772 as_nl='
12774 export as_nl
12775 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12776 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12777 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12778 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12779 # Prefer a ksh shell builtin over an external printf program on Solaris,
12780 # but without wasting forks for bash or zsh.
12781 if test -z "$BASH_VERSION$ZSH_VERSION" \
12782 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12783 as_echo='print -r --'
12784 as_echo_n='print -rn --'
12785 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12786 as_echo='printf %s\n'
12787 as_echo_n='printf %s'
12788 else
12789 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12790 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12791 as_echo_n='/usr/ucb/echo -n'
12792 else
12793 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12794 as_echo_n_body='eval
12795 arg=$1;
12796 case $arg in #(
12797 *"$as_nl"*)
12798 expr "X$arg" : "X\\(.*\\)$as_nl";
12799 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12800 esac;
12801 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12803 export as_echo_n_body
12804 as_echo_n='sh -c $as_echo_n_body as_echo'
12806 export as_echo_body
12807 as_echo='sh -c $as_echo_body as_echo'
12810 # The user is always right.
12811 if test "${PATH_SEPARATOR+set}" != set; then
12812 PATH_SEPARATOR=:
12813 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12814 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12815 PATH_SEPARATOR=';'
12820 # IFS
12821 # We need space, tab and new line, in precisely that order. Quoting is
12822 # there to prevent editors from complaining about space-tab.
12823 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12824 # splitting by setting IFS to empty value.)
12825 IFS=" "" $as_nl"
12827 # Find who we are. Look in the path if we contain no directory separator.
12828 as_myself=
12829 case $0 in #((
12830 *[\\/]* ) as_myself=$0 ;;
12831 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12832 for as_dir in $PATH
12834 IFS=$as_save_IFS
12835 test -z "$as_dir" && as_dir=.
12836 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12837 done
12838 IFS=$as_save_IFS
12841 esac
12842 # We did not find ourselves, most probably we were run as `sh COMMAND'
12843 # in which case we are not to be found in the path.
12844 if test "x$as_myself" = x; then
12845 as_myself=$0
12847 if test ! -f "$as_myself"; then
12848 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12849 exit 1
12852 # Unset variables that we do not need and which cause bugs (e.g. in
12853 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12854 # suppresses any "Segmentation fault" message there. '((' could
12855 # trigger a bug in pdksh 5.2.14.
12856 for as_var in BASH_ENV ENV MAIL MAILPATH
12857 do eval test x\${$as_var+set} = xset \
12858 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12859 done
12860 PS1='$ '
12861 PS2='> '
12862 PS4='+ '
12864 # NLS nuisances.
12865 LC_ALL=C
12866 export LC_ALL
12867 LANGUAGE=C
12868 export LANGUAGE
12870 # CDPATH.
12871 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12874 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12875 # ----------------------------------------
12876 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12877 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12878 # script with STATUS, using 1 if that was 0.
12879 as_fn_error ()
12881 as_status=$1; test $as_status -eq 0 && as_status=1
12882 if test "$4"; then
12883 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12884 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12886 $as_echo "$as_me: error: $2" >&2
12887 as_fn_exit $as_status
12888 } # as_fn_error
12891 # as_fn_set_status STATUS
12892 # -----------------------
12893 # Set $? to STATUS, without forking.
12894 as_fn_set_status ()
12896 return $1
12897 } # as_fn_set_status
12899 # as_fn_exit STATUS
12900 # -----------------
12901 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12902 as_fn_exit ()
12904 set +e
12905 as_fn_set_status $1
12906 exit $1
12907 } # as_fn_exit
12909 # as_fn_unset VAR
12910 # ---------------
12911 # Portably unset VAR.
12912 as_fn_unset ()
12914 { eval $1=; unset $1;}
12916 as_unset=as_fn_unset
12917 # as_fn_append VAR VALUE
12918 # ----------------------
12919 # Append the text in VALUE to the end of the definition contained in VAR. Take
12920 # advantage of any shell optimizations that allow amortized linear growth over
12921 # repeated appends, instead of the typical quadratic growth present in naive
12922 # implementations.
12923 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12924 eval 'as_fn_append ()
12926 eval $1+=\$2
12928 else
12929 as_fn_append ()
12931 eval $1=\$$1\$2
12933 fi # as_fn_append
12935 # as_fn_arith ARG...
12936 # ------------------
12937 # Perform arithmetic evaluation on the ARGs, and store the result in the
12938 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12939 # must be portable across $(()) and expr.
12940 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12941 eval 'as_fn_arith ()
12943 as_val=$(( $* ))
12945 else
12946 as_fn_arith ()
12948 as_val=`expr "$@" || test $? -eq 1`
12950 fi # as_fn_arith
12953 if expr a : '\(a\)' >/dev/null 2>&1 &&
12954 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12955 as_expr=expr
12956 else
12957 as_expr=false
12960 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12961 as_basename=basename
12962 else
12963 as_basename=false
12966 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12967 as_dirname=dirname
12968 else
12969 as_dirname=false
12972 as_me=`$as_basename -- "$0" ||
12973 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12974 X"$0" : 'X\(//\)$' \| \
12975 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12976 $as_echo X/"$0" |
12977 sed '/^.*\/\([^/][^/]*\)\/*$/{
12978 s//\1/
12981 /^X\/\(\/\/\)$/{
12982 s//\1/
12985 /^X\/\(\/\).*/{
12986 s//\1/
12989 s/.*/./; q'`
12991 # Avoid depending upon Character Ranges.
12992 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12993 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12994 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12995 as_cr_digits='0123456789'
12996 as_cr_alnum=$as_cr_Letters$as_cr_digits
12998 ECHO_C= ECHO_N= ECHO_T=
12999 case `echo -n x` in #(((((
13000 -n*)
13001 case `echo 'xy\c'` in
13002 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13003 xy) ECHO_C='\c';;
13004 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13005 ECHO_T=' ';;
13006 esac;;
13008 ECHO_N='-n';;
13009 esac
13011 rm -f conf$$ conf$$.exe conf$$.file
13012 if test -d conf$$.dir; then
13013 rm -f conf$$.dir/conf$$.file
13014 else
13015 rm -f conf$$.dir
13016 mkdir conf$$.dir 2>/dev/null
13018 if (echo >conf$$.file) 2>/dev/null; then
13019 if ln -s conf$$.file conf$$ 2>/dev/null; then
13020 as_ln_s='ln -s'
13021 # ... but there are two gotchas:
13022 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13023 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13024 # In both cases, we have to default to `cp -pR'.
13025 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13026 as_ln_s='cp -pR'
13027 elif ln conf$$.file conf$$ 2>/dev/null; then
13028 as_ln_s=ln
13029 else
13030 as_ln_s='cp -pR'
13032 else
13033 as_ln_s='cp -pR'
13035 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13036 rmdir conf$$.dir 2>/dev/null
13039 # as_fn_mkdir_p
13040 # -------------
13041 # Create "$as_dir" as a directory, including parents if necessary.
13042 as_fn_mkdir_p ()
13045 case $as_dir in #(
13046 -*) as_dir=./$as_dir;;
13047 esac
13048 test -d "$as_dir" || eval $as_mkdir_p || {
13049 as_dirs=
13050 while :; do
13051 case $as_dir in #(
13052 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13053 *) as_qdir=$as_dir;;
13054 esac
13055 as_dirs="'$as_qdir' $as_dirs"
13056 as_dir=`$as_dirname -- "$as_dir" ||
13057 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13058 X"$as_dir" : 'X\(//\)[^/]' \| \
13059 X"$as_dir" : 'X\(//\)$' \| \
13060 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13061 $as_echo X"$as_dir" |
13062 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13063 s//\1/
13066 /^X\(\/\/\)[^/].*/{
13067 s//\1/
13070 /^X\(\/\/\)$/{
13071 s//\1/
13074 /^X\(\/\).*/{
13075 s//\1/
13078 s/.*/./; q'`
13079 test -d "$as_dir" && break
13080 done
13081 test -z "$as_dirs" || eval "mkdir $as_dirs"
13082 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13085 } # as_fn_mkdir_p
13086 if mkdir -p . 2>/dev/null; then
13087 as_mkdir_p='mkdir -p "$as_dir"'
13088 else
13089 test -d ./-p && rmdir ./-p
13090 as_mkdir_p=false
13094 # as_fn_executable_p FILE
13095 # -----------------------
13096 # Test if FILE is an executable regular file.
13097 as_fn_executable_p ()
13099 test -f "$1" && test -x "$1"
13100 } # as_fn_executable_p
13101 as_test_x='test -x'
13102 as_executable_p=as_fn_executable_p
13104 # Sed expression to map a string onto a valid CPP name.
13105 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13107 # Sed expression to map a string onto a valid variable name.
13108 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13111 exec 6>&1
13112 ## ----------------------------------- ##
13113 ## Main body of $CONFIG_STATUS script. ##
13114 ## ----------------------------------- ##
13115 _ASEOF
13116 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13118 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13119 # Save the log message, to keep $0 and so on meaningful, and to
13120 # report actual input values of CONFIG_FILES etc. instead of their
13121 # values after options handling.
13122 ac_log="
13123 This file was extended by LTO plugin for ld $as_me 0.1, which was
13124 generated by GNU Autoconf 2.69. Invocation command line was
13126 CONFIG_FILES = $CONFIG_FILES
13127 CONFIG_HEADERS = $CONFIG_HEADERS
13128 CONFIG_LINKS = $CONFIG_LINKS
13129 CONFIG_COMMANDS = $CONFIG_COMMANDS
13130 $ $0 $@
13132 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13135 _ACEOF
13137 case $ac_config_files in *"
13138 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13139 esac
13141 case $ac_config_headers in *"
13142 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13143 esac
13146 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13147 # Files that config.status was made for.
13148 config_files="$ac_config_files"
13149 config_headers="$ac_config_headers"
13150 config_commands="$ac_config_commands"
13152 _ACEOF
13154 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13155 ac_cs_usage="\
13156 \`$as_me' instantiates files and other configuration actions
13157 from templates according to the current configuration. Unless the files
13158 and actions are specified as TAGs, all are instantiated by default.
13160 Usage: $0 [OPTION]... [TAG]...
13162 -h, --help print this help, then exit
13163 -V, --version print version number and configuration settings, then exit
13164 --config print configuration, then exit
13165 -q, --quiet, --silent
13166 do not print progress messages
13167 -d, --debug don't remove temporary files
13168 --recheck update $as_me by reconfiguring in the same conditions
13169 --file=FILE[:TEMPLATE]
13170 instantiate the configuration file FILE
13171 --header=FILE[:TEMPLATE]
13172 instantiate the configuration header FILE
13174 Configuration files:
13175 $config_files
13177 Configuration headers:
13178 $config_headers
13180 Configuration commands:
13181 $config_commands
13183 Report bugs to the package provider."
13185 _ACEOF
13186 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13187 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13188 ac_cs_version="\\
13189 LTO plugin for ld config.status 0.1
13190 configured by $0, generated by GNU Autoconf 2.69,
13191 with options \\"\$ac_cs_config\\"
13193 Copyright (C) 2012 Free Software Foundation, Inc.
13194 This config.status script is free software; the Free Software Foundation
13195 gives unlimited permission to copy, distribute and modify it."
13197 ac_pwd='$ac_pwd'
13198 srcdir='$srcdir'
13199 INSTALL='$INSTALL'
13200 MKDIR_P='$MKDIR_P'
13201 AWK='$AWK'
13202 test -n "\$AWK" || AWK=awk
13203 _ACEOF
13205 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13206 # The default lists apply if the user does not specify any file.
13207 ac_need_defaults=:
13208 while test $# != 0
13210 case $1 in
13211 --*=?*)
13212 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13213 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13214 ac_shift=:
13216 --*=)
13217 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13218 ac_optarg=
13219 ac_shift=:
13222 ac_option=$1
13223 ac_optarg=$2
13224 ac_shift=shift
13226 esac
13228 case $ac_option in
13229 # Handling of the options.
13230 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13231 ac_cs_recheck=: ;;
13232 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13233 $as_echo "$ac_cs_version"; exit ;;
13234 --config | --confi | --conf | --con | --co | --c )
13235 $as_echo "$ac_cs_config"; exit ;;
13236 --debug | --debu | --deb | --de | --d | -d )
13237 debug=: ;;
13238 --file | --fil | --fi | --f )
13239 $ac_shift
13240 case $ac_optarg in
13241 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13242 '') as_fn_error $? "missing file argument" ;;
13243 esac
13244 as_fn_append CONFIG_FILES " '$ac_optarg'"
13245 ac_need_defaults=false;;
13246 --header | --heade | --head | --hea )
13247 $ac_shift
13248 case $ac_optarg in
13249 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13250 esac
13251 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13252 ac_need_defaults=false;;
13253 --he | --h)
13254 # Conflict between --help and --header
13255 as_fn_error $? "ambiguous option: \`$1'
13256 Try \`$0 --help' for more information.";;
13257 --help | --hel | -h )
13258 $as_echo "$ac_cs_usage"; exit ;;
13259 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13260 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13261 ac_cs_silent=: ;;
13263 # This is an error.
13264 -*) as_fn_error $? "unrecognized option: \`$1'
13265 Try \`$0 --help' for more information." ;;
13267 *) as_fn_append ac_config_targets " $1"
13268 ac_need_defaults=false ;;
13270 esac
13271 shift
13272 done
13274 ac_configure_extra_args=
13276 if $ac_cs_silent; then
13277 exec 6>/dev/null
13278 ac_configure_extra_args="$ac_configure_extra_args --silent"
13281 _ACEOF
13282 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13283 if \$ac_cs_recheck; then
13284 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13285 shift
13286 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13287 CONFIG_SHELL='$SHELL'
13288 export CONFIG_SHELL
13289 exec "\$@"
13292 _ACEOF
13293 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13294 exec 5>>config.log
13296 echo
13297 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13298 ## Running $as_me. ##
13299 _ASBOX
13300 $as_echo "$ac_log"
13301 } >&5
13303 _ACEOF
13304 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13306 # INIT-COMMANDS
13308 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13311 # The HP-UX ksh and POSIX shell print the target directory to stdout
13312 # if CDPATH is set.
13313 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13315 sed_quote_subst='$sed_quote_subst'
13316 double_quote_subst='$double_quote_subst'
13317 delay_variable_subst='$delay_variable_subst'
13318 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13319 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13320 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13321 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13322 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13323 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13324 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13325 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13326 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13327 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13328 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13329 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13330 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13331 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13332 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13333 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13334 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13335 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13336 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13337 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13338 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13339 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13340 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13341 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13342 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13343 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13344 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13345 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13346 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13347 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13348 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13349 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13350 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13351 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13352 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13353 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13354 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13355 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13356 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13357 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13358 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13359 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13360 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13361 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13362 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13363 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13364 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13365 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13366 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"`'
13367 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13368 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13369 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13370 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13371 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13372 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13373 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13374 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13375 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13376 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13377 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13378 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13379 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13380 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13381 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13382 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13383 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13384 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13385 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13386 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13387 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13388 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13389 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13390 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13391 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13392 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13393 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13394 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13395 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13396 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13397 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13398 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
13399 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13400 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13401 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13402 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13403 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13404 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13405 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13406 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13407 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
13408 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13409 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13410 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13411 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13412 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13413 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13414 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13415 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13416 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13417 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13418 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13419 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13420 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13421 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13422 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13423 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13424 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13425 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13426 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13427 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13428 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13429 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13430 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13431 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13432 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13433 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13434 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13435 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13436 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13437 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13439 LTCC='$LTCC'
13440 LTCFLAGS='$LTCFLAGS'
13441 compiler='$compiler_DEFAULT'
13443 # A function that is used when there is no print builtin or printf.
13444 func_fallback_echo ()
13446 eval 'cat <<_LTECHO_EOF
13448 _LTECHO_EOF'
13451 # Quote evaled strings.
13452 for var in SHELL \
13453 ECHO \
13454 SED \
13455 GREP \
13456 EGREP \
13457 FGREP \
13458 LD \
13459 NM \
13460 LN_S \
13461 lt_SP2NL \
13462 lt_NL2SP \
13463 reload_flag \
13464 OBJDUMP \
13465 deplibs_check_method \
13466 file_magic_cmd \
13467 AR \
13468 AR_FLAGS \
13469 STRIP \
13470 RANLIB \
13471 CC \
13472 CFLAGS \
13473 compiler \
13474 lt_cv_sys_global_symbol_pipe \
13475 lt_cv_sys_global_symbol_to_cdecl \
13476 lt_cv_sys_global_symbol_to_c_name_address \
13477 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13478 lt_prog_compiler_no_builtin_flag \
13479 lt_prog_compiler_wl \
13480 lt_prog_compiler_pic \
13481 lt_prog_compiler_static \
13482 lt_cv_prog_compiler_c_o \
13483 need_locks \
13484 DSYMUTIL \
13485 NMEDIT \
13486 LIPO \
13487 OTOOL \
13488 OTOOL64 \
13489 shrext_cmds \
13490 export_dynamic_flag_spec \
13491 whole_archive_flag_spec \
13492 compiler_needs_object \
13493 with_gnu_ld \
13494 allow_undefined_flag \
13495 no_undefined_flag \
13496 hardcode_libdir_flag_spec \
13497 hardcode_libdir_flag_spec_ld \
13498 hardcode_libdir_separator \
13499 fix_srcfile_path \
13500 exclude_expsyms \
13501 include_expsyms \
13502 file_list_spec \
13503 variables_saved_for_relink \
13504 libname_spec \
13505 library_names_spec \
13506 soname_spec \
13507 install_override_mode \
13508 finish_eval \
13509 old_striplib \
13510 striplib; do
13511 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13512 *[\\\\\\\`\\"\\\$]*)
13513 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13516 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13518 esac
13519 done
13521 # Double-quote double-evaled strings.
13522 for var in reload_cmds \
13523 old_postinstall_cmds \
13524 old_postuninstall_cmds \
13525 old_archive_cmds \
13526 extract_expsyms_cmds \
13527 old_archive_from_new_cmds \
13528 old_archive_from_expsyms_cmds \
13529 archive_cmds \
13530 archive_expsym_cmds \
13531 module_cmds \
13532 module_expsym_cmds \
13533 export_symbols_cmds \
13534 prelink_cmds \
13535 postinstall_cmds \
13536 postuninstall_cmds \
13537 finish_cmds \
13538 sys_lib_search_path_spec \
13539 sys_lib_dlsearch_path_spec; do
13540 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13541 *[\\\\\\\`\\"\\\$]*)
13542 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13545 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13547 esac
13548 done
13550 ac_aux_dir='$ac_aux_dir'
13551 xsi_shell='$xsi_shell'
13552 lt_shell_append='$lt_shell_append'
13554 # See if we are running on zsh, and set the options which allow our
13555 # commands through without removal of \ escapes INIT.
13556 if test -n "\${ZSH_VERSION+set}" ; then
13557 setopt NO_GLOB_SUBST
13561 PACKAGE='$PACKAGE'
13562 VERSION='$VERSION'
13563 TIMESTAMP='$TIMESTAMP'
13564 RM='$RM'
13565 ofile='$ofile'
13570 _ACEOF
13572 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13574 # Handling of arguments.
13575 for ac_config_target in $ac_config_targets
13577 case $ac_config_target in
13578 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13579 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13580 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13581 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13583 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13584 esac
13585 done
13588 # If the user did not use the arguments to specify the items to instantiate,
13589 # then the envvar interface is used. Set only those that are not.
13590 # We use the long form for the default assignment because of an extremely
13591 # bizarre bug on SunOS 4.1.3.
13592 if $ac_need_defaults; then
13593 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13594 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13595 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13598 # Have a temporary directory for convenience. Make it in the build tree
13599 # simply because there is no reason against having it here, and in addition,
13600 # creating and moving files from /tmp can sometimes cause problems.
13601 # Hook for its removal unless debugging.
13602 # Note that there is a small window in which the directory will not be cleaned:
13603 # after its creation but before its name has been assigned to `$tmp'.
13604 $debug ||
13606 tmp= ac_tmp=
13607 trap 'exit_status=$?
13608 : "${ac_tmp:=$tmp}"
13609 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13611 trap 'as_fn_exit 1' 1 2 13 15
13613 # Create a (secure) tmp directory for tmp files.
13616 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13617 test -d "$tmp"
13618 } ||
13620 tmp=./conf$$-$RANDOM
13621 (umask 077 && mkdir "$tmp")
13622 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13623 ac_tmp=$tmp
13625 # Set up the scripts for CONFIG_FILES section.
13626 # No need to generate them if there are no CONFIG_FILES.
13627 # This happens for instance with `./config.status config.h'.
13628 if test -n "$CONFIG_FILES"; then
13631 ac_cr=`echo X | tr X '\015'`
13632 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13633 # But we know of no other shell where ac_cr would be empty at this
13634 # point, so we can use a bashism as a fallback.
13635 if test "x$ac_cr" = x; then
13636 eval ac_cr=\$\'\\r\'
13638 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13639 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13640 ac_cs_awk_cr='\\r'
13641 else
13642 ac_cs_awk_cr=$ac_cr
13645 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13646 _ACEOF
13650 echo "cat >conf$$subs.awk <<_ACEOF" &&
13651 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13652 echo "_ACEOF"
13653 } >conf$$subs.sh ||
13654 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13655 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13656 ac_delim='%!_!# '
13657 for ac_last_try in false false false false false :; do
13658 . ./conf$$subs.sh ||
13659 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13661 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13662 if test $ac_delim_n = $ac_delim_num; then
13663 break
13664 elif $ac_last_try; then
13665 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13666 else
13667 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13669 done
13670 rm -f conf$$subs.sh
13672 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13673 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13674 _ACEOF
13675 sed -n '
13677 s/^/S["/; s/!.*/"]=/
13680 s/^[^!]*!//
13681 :repl
13682 t repl
13683 s/'"$ac_delim"'$//
13684 t delim
13687 s/\(.\{148\}\)..*/\1/
13688 t more1
13689 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13692 b repl
13693 :more1
13694 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13697 s/.\{148\}//
13698 t nl
13699 :delim
13701 s/\(.\{148\}\)..*/\1/
13702 t more2
13703 s/["\\]/\\&/g; s/^/"/; s/$/"/
13706 :more2
13707 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13710 s/.\{148\}//
13711 t delim
13712 ' <conf$$subs.awk | sed '
13713 /^[^""]/{
13715 s/\n//
13717 ' >>$CONFIG_STATUS || ac_write_fail=1
13718 rm -f conf$$subs.awk
13719 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13720 _ACAWK
13721 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13722 for (key in S) S_is_set[key] = 1
13723 FS = "\a"
13727 line = $ 0
13728 nfields = split(line, field, "@")
13729 substed = 0
13730 len = length(field[1])
13731 for (i = 2; i < nfields; i++) {
13732 key = field[i]
13733 keylen = length(key)
13734 if (S_is_set[key]) {
13735 value = S[key]
13736 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13737 len += length(value) + length(field[++i])
13738 substed = 1
13739 } else
13740 len += 1 + keylen
13743 print line
13746 _ACAWK
13747 _ACEOF
13748 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13749 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13750 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13751 else
13753 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13754 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13755 _ACEOF
13757 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13758 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13759 # trailing colons and then remove the whole line if VPATH becomes empty
13760 # (actually we leave an empty line to preserve line numbers).
13761 if test "x$srcdir" = x.; then
13762 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13764 s///
13765 s/^/:/
13766 s/[ ]*$/:/
13767 s/:\$(srcdir):/:/g
13768 s/:\${srcdir}:/:/g
13769 s/:@srcdir@:/:/g
13770 s/^:*//
13771 s/:*$//
13773 s/\(=[ ]*\).*/\1/
13775 s/\n//
13776 s/^[^=]*=[ ]*$//
13780 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13781 fi # test -n "$CONFIG_FILES"
13783 # Set up the scripts for CONFIG_HEADERS section.
13784 # No need to generate them if there are no CONFIG_HEADERS.
13785 # This happens for instance with `./config.status Makefile'.
13786 if test -n "$CONFIG_HEADERS"; then
13787 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13788 BEGIN {
13789 _ACEOF
13791 # Transform confdefs.h into an awk script `defines.awk', embedded as
13792 # here-document in config.status, that substitutes the proper values into
13793 # config.h.in to produce config.h.
13795 # Create a delimiter string that does not exist in confdefs.h, to ease
13796 # handling of long lines.
13797 ac_delim='%!_!# '
13798 for ac_last_try in false false :; do
13799 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13800 if test -z "$ac_tt"; then
13801 break
13802 elif $ac_last_try; then
13803 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13804 else
13805 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13807 done
13809 # For the awk script, D is an array of macro values keyed by name,
13810 # likewise P contains macro parameters if any. Preserve backslash
13811 # newline sequences.
13813 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13814 sed -n '
13815 s/.\{148\}/&'"$ac_delim"'/g
13816 t rset
13817 :rset
13818 s/^[ ]*#[ ]*define[ ][ ]*/ /
13819 t def
13821 :def
13822 s/\\$//
13823 t bsnl
13824 s/["\\]/\\&/g
13825 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13826 D["\1"]=" \3"/p
13827 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13829 :bsnl
13830 s/["\\]/\\&/g
13831 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13832 D["\1"]=" \3\\\\\\n"\\/p
13833 t cont
13834 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13835 t cont
13837 :cont
13839 s/.\{148\}/&'"$ac_delim"'/g
13840 t clear
13841 :clear
13842 s/\\$//
13843 t bsnlc
13844 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13846 :bsnlc
13847 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13848 b cont
13849 ' <confdefs.h | sed '
13850 s/'"$ac_delim"'/"\\\
13851 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13853 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13854 for (key in D) D_is_set[key] = 1
13855 FS = "\a"
13857 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13858 line = \$ 0
13859 split(line, arg, " ")
13860 if (arg[1] == "#") {
13861 defundef = arg[2]
13862 mac1 = arg[3]
13863 } else {
13864 defundef = substr(arg[1], 2)
13865 mac1 = arg[2]
13867 split(mac1, mac2, "(") #)
13868 macro = mac2[1]
13869 prefix = substr(line, 1, index(line, defundef) - 1)
13870 if (D_is_set[macro]) {
13871 # Preserve the white space surrounding the "#".
13872 print prefix "define", macro P[macro] D[macro]
13873 next
13874 } else {
13875 # Replace #undef with comments. This is necessary, for example,
13876 # in the case of _POSIX_SOURCE, which is predefined and required
13877 # on some systems where configure will not decide to define it.
13878 if (defundef == "undef") {
13879 print "/*", prefix defundef, macro, "*/"
13880 next
13884 { print }
13885 _ACAWK
13886 _ACEOF
13887 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13888 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13889 fi # test -n "$CONFIG_HEADERS"
13892 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13893 shift
13894 for ac_tag
13896 case $ac_tag in
13897 :[FHLC]) ac_mode=$ac_tag; continue;;
13898 esac
13899 case $ac_mode$ac_tag in
13900 :[FHL]*:*);;
13901 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13902 :[FH]-) ac_tag=-:-;;
13903 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13904 esac
13905 ac_save_IFS=$IFS
13906 IFS=:
13907 set x $ac_tag
13908 IFS=$ac_save_IFS
13909 shift
13910 ac_file=$1
13911 shift
13913 case $ac_mode in
13914 :L) ac_source=$1;;
13915 :[FH])
13916 ac_file_inputs=
13917 for ac_f
13919 case $ac_f in
13920 -) ac_f="$ac_tmp/stdin";;
13921 *) # Look for the file first in the build tree, then in the source tree
13922 # (if the path is not absolute). The absolute path cannot be DOS-style,
13923 # because $ac_f cannot contain `:'.
13924 test -f "$ac_f" ||
13925 case $ac_f in
13926 [\\/$]*) false;;
13927 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13928 esac ||
13929 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13930 esac
13931 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13932 as_fn_append ac_file_inputs " '$ac_f'"
13933 done
13935 # Let's still pretend it is `configure' which instantiates (i.e., don't
13936 # use $as_me), people would be surprised to read:
13937 # /* config.h. Generated by config.status. */
13938 configure_input='Generated from '`
13939 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13940 `' by configure.'
13941 if test x"$ac_file" != x-; then
13942 configure_input="$ac_file. $configure_input"
13943 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13944 $as_echo "$as_me: creating $ac_file" >&6;}
13946 # Neutralize special characters interpreted by sed in replacement strings.
13947 case $configure_input in #(
13948 *\&* | *\|* | *\\* )
13949 ac_sed_conf_input=`$as_echo "$configure_input" |
13950 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13951 *) ac_sed_conf_input=$configure_input;;
13952 esac
13954 case $ac_tag in
13955 *:-:* | *:-) cat >"$ac_tmp/stdin" \
13956 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13957 esac
13959 esac
13961 ac_dir=`$as_dirname -- "$ac_file" ||
13962 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13963 X"$ac_file" : 'X\(//\)[^/]' \| \
13964 X"$ac_file" : 'X\(//\)$' \| \
13965 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13966 $as_echo X"$ac_file" |
13967 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13968 s//\1/
13971 /^X\(\/\/\)[^/].*/{
13972 s//\1/
13975 /^X\(\/\/\)$/{
13976 s//\1/
13979 /^X\(\/\).*/{
13980 s//\1/
13983 s/.*/./; q'`
13984 as_dir="$ac_dir"; as_fn_mkdir_p
13985 ac_builddir=.
13987 case "$ac_dir" in
13988 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13990 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13991 # A ".." for each directory in $ac_dir_suffix.
13992 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13993 case $ac_top_builddir_sub in
13994 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13995 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13996 esac ;;
13997 esac
13998 ac_abs_top_builddir=$ac_pwd
13999 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14000 # for backward compatibility:
14001 ac_top_builddir=$ac_top_build_prefix
14003 case $srcdir in
14004 .) # We are building in place.
14005 ac_srcdir=.
14006 ac_top_srcdir=$ac_top_builddir_sub
14007 ac_abs_top_srcdir=$ac_pwd ;;
14008 [\\/]* | ?:[\\/]* ) # Absolute name.
14009 ac_srcdir=$srcdir$ac_dir_suffix;
14010 ac_top_srcdir=$srcdir
14011 ac_abs_top_srcdir=$srcdir ;;
14012 *) # Relative name.
14013 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14014 ac_top_srcdir=$ac_top_build_prefix$srcdir
14015 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14016 esac
14017 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14020 case $ac_mode in
14023 # CONFIG_FILE
14026 case $INSTALL in
14027 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14028 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14029 esac
14030 ac_MKDIR_P=$MKDIR_P
14031 case $MKDIR_P in
14032 [\\/$]* | ?:[\\/]* ) ;;
14033 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14034 esac
14035 _ACEOF
14037 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14038 # If the template does not know about datarootdir, expand it.
14039 # FIXME: This hack should be removed a few years after 2.60.
14040 ac_datarootdir_hack=; ac_datarootdir_seen=
14041 ac_sed_dataroot='
14042 /datarootdir/ {
14046 /@datadir@/p
14047 /@docdir@/p
14048 /@infodir@/p
14049 /@localedir@/p
14050 /@mandir@/p'
14051 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14052 *datarootdir*) ac_datarootdir_seen=yes;;
14053 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14054 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14055 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14056 _ACEOF
14057 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14058 ac_datarootdir_hack='
14059 s&@datadir@&$datadir&g
14060 s&@docdir@&$docdir&g
14061 s&@infodir@&$infodir&g
14062 s&@localedir@&$localedir&g
14063 s&@mandir@&$mandir&g
14064 s&\\\${datarootdir}&$datarootdir&g' ;;
14065 esac
14066 _ACEOF
14068 # Neutralize VPATH when `$srcdir' = `.'.
14069 # Shell code in configure.ac might set extrasub.
14070 # FIXME: do we really want to maintain this feature?
14071 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14072 ac_sed_extra="$ac_vpsub
14073 $extrasub
14074 _ACEOF
14075 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14077 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14078 s|@configure_input@|$ac_sed_conf_input|;t t
14079 s&@top_builddir@&$ac_top_builddir_sub&;t t
14080 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14081 s&@srcdir@&$ac_srcdir&;t t
14082 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14083 s&@top_srcdir@&$ac_top_srcdir&;t t
14084 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14085 s&@builddir@&$ac_builddir&;t t
14086 s&@abs_builddir@&$ac_abs_builddir&;t t
14087 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14088 s&@INSTALL@&$ac_INSTALL&;t t
14089 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14090 $ac_datarootdir_hack
14092 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14093 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14095 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14096 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14097 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
14098 "$ac_tmp/out"`; test -z "$ac_out"; } &&
14099 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14100 which seems to be undefined. Please make sure it is defined" >&5
14101 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14102 which seems to be undefined. Please make sure it is defined" >&2;}
14104 rm -f "$ac_tmp/stdin"
14105 case $ac_file in
14106 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14107 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14108 esac \
14109 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14113 # CONFIG_HEADER
14115 if test x"$ac_file" != x-; then
14117 $as_echo "/* $configure_input */" \
14118 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14119 } >"$ac_tmp/config.h" \
14120 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14121 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14122 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14123 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14124 else
14125 rm -f "$ac_file"
14126 mv "$ac_tmp/config.h" "$ac_file" \
14127 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14129 else
14130 $as_echo "/* $configure_input */" \
14131 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14132 || as_fn_error $? "could not create -" "$LINENO" 5
14134 # Compute "$ac_file"'s index in $config_headers.
14135 _am_arg="$ac_file"
14136 _am_stamp_count=1
14137 for _am_header in $config_headers :; do
14138 case $_am_header in
14139 $_am_arg | $_am_arg:* )
14140 break ;;
14142 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14143 esac
14144 done
14145 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14146 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14147 X"$_am_arg" : 'X\(//\)[^/]' \| \
14148 X"$_am_arg" : 'X\(//\)$' \| \
14149 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14150 $as_echo X"$_am_arg" |
14151 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14152 s//\1/
14155 /^X\(\/\/\)[^/].*/{
14156 s//\1/
14159 /^X\(\/\/\)$/{
14160 s//\1/
14163 /^X\(\/\).*/{
14164 s//\1/
14167 s/.*/./; q'`/stamp-h$_am_stamp_count
14170 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14171 $as_echo "$as_me: executing $ac_file commands" >&6;}
14173 esac
14176 case $ac_file$ac_mode in
14177 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14178 # Older Autoconf quotes --file arguments for eval, but not when files
14179 # are listed without --file. Let's play safe and only enable the eval
14180 # if we detect the quoting.
14181 case $CONFIG_FILES in
14182 *\'*) eval set x "$CONFIG_FILES" ;;
14183 *) set x $CONFIG_FILES ;;
14184 esac
14185 shift
14186 for mf
14188 # Strip MF so we end up with the name of the file.
14189 mf=`echo "$mf" | sed -e 's/:.*$//'`
14190 # Check whether this is an Automake generated Makefile or not.
14191 # We used to match only the files named 'Makefile.in', but
14192 # some people rename them; so instead we look at the file content.
14193 # Grep'ing the first line is not enough: some people post-process
14194 # each Makefile.in and add a new line on top of each file to say so.
14195 # Grep'ing the whole file is not good either: AIX grep has a line
14196 # limit of 2048, but all sed's we know have understand at least 4000.
14197 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14198 dirpart=`$as_dirname -- "$mf" ||
14199 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14200 X"$mf" : 'X\(//\)[^/]' \| \
14201 X"$mf" : 'X\(//\)$' \| \
14202 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14203 $as_echo X"$mf" |
14204 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14205 s//\1/
14208 /^X\(\/\/\)[^/].*/{
14209 s//\1/
14212 /^X\(\/\/\)$/{
14213 s//\1/
14216 /^X\(\/\).*/{
14217 s//\1/
14220 s/.*/./; q'`
14221 else
14222 continue
14224 # Extract the definition of DEPDIR, am__include, and am__quote
14225 # from the Makefile without running 'make'.
14226 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14227 test -z "$DEPDIR" && continue
14228 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14229 test -z "$am__include" && continue
14230 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14231 # Find all dependency output files, they are included files with
14232 # $(DEPDIR) in their names. We invoke sed twice because it is the
14233 # simplest approach to changing $(DEPDIR) to its actual value in the
14234 # expansion.
14235 for file in `sed -n "
14236 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14237 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
14238 # Make sure the directory exists.
14239 test -f "$dirpart/$file" && continue
14240 fdir=`$as_dirname -- "$file" ||
14241 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14242 X"$file" : 'X\(//\)[^/]' \| \
14243 X"$file" : 'X\(//\)$' \| \
14244 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14245 $as_echo X"$file" |
14246 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14247 s//\1/
14250 /^X\(\/\/\)[^/].*/{
14251 s//\1/
14254 /^X\(\/\/\)$/{
14255 s//\1/
14258 /^X\(\/\).*/{
14259 s//\1/
14262 s/.*/./; q'`
14263 as_dir=$dirpart/$fdir; as_fn_mkdir_p
14264 # echo "creating $dirpart/$file"
14265 echo '# dummy' > "$dirpart/$file"
14266 done
14267 done
14270 "libtool":C)
14272 # See if we are running on zsh, and set the options which allow our
14273 # commands through without removal of \ escapes.
14274 if test -n "${ZSH_VERSION+set}" ; then
14275 setopt NO_GLOB_SUBST
14278 cfgfile="${ofile}T"
14279 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14280 $RM "$cfgfile"
14282 cat <<_LT_EOF >> "$cfgfile"
14283 #! $SHELL
14285 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14286 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14287 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14288 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14290 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14291 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
14292 # Written by Gordon Matzigkeit, 1996
14294 # This file is part of GNU Libtool.
14296 # GNU Libtool is free software; you can redistribute it and/or
14297 # modify it under the terms of the GNU General Public License as
14298 # published by the Free Software Foundation; either version 2 of
14299 # the License, or (at your option) any later version.
14301 # As a special exception to the GNU General Public License,
14302 # if you distribute this file as part of a program or library that
14303 # is built using GNU Libtool, you may include this file under the
14304 # same distribution terms that you use for the rest of that program.
14306 # GNU Libtool is distributed in the hope that it will be useful,
14307 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14308 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14309 # GNU General Public License for more details.
14311 # You should have received a copy of the GNU General Public License
14312 # along with GNU Libtool; see the file COPYING. If not, a copy
14313 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14314 # obtained by writing to the Free Software Foundation, Inc.,
14315 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14318 # The names of the tagged configurations supported by this script.
14319 available_tags=""
14321 # ### BEGIN LIBTOOL CONFIG
14323 # Which release of libtool.m4 was used?
14324 macro_version=$macro_version
14325 macro_revision=$macro_revision
14327 # Whether or not to build shared libraries.
14328 build_libtool_libs=$enable_shared
14330 # Whether or not to build static libraries.
14331 build_old_libs=$enable_static
14333 # What type of objects to build.
14334 pic_mode=$pic_mode
14336 # Whether or not to optimize for fast installation.
14337 fast_install=$enable_fast_install
14339 # Shell to use when invoking shell scripts.
14340 SHELL=$lt_SHELL
14342 # An echo program that protects backslashes.
14343 ECHO=$lt_ECHO
14345 # The host system.
14346 host_alias=$host_alias
14347 host=$host
14348 host_os=$host_os
14350 # The build system.
14351 build_alias=$build_alias
14352 build=$build
14353 build_os=$build_os
14355 # A sed program that does not truncate output.
14356 SED=$lt_SED
14358 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14359 Xsed="\$SED -e 1s/^X//"
14361 # A grep program that handles long lines.
14362 GREP=$lt_GREP
14364 # An ERE matcher.
14365 EGREP=$lt_EGREP
14367 # A literal string matcher.
14368 FGREP=$lt_FGREP
14370 # A BSD- or MS-compatible name lister.
14371 NM=$lt_NM
14373 # Whether we need soft or hard links.
14374 LN_S=$lt_LN_S
14376 # What is the maximum length of a command?
14377 max_cmd_len=$max_cmd_len
14379 # Object file suffix (normally "o").
14380 objext=$ac_objext
14382 # Executable file suffix (normally "").
14383 exeext=$exeext
14385 # whether the shell understands "unset".
14386 lt_unset=$lt_unset
14388 # turn spaces into newlines.
14389 SP2NL=$lt_lt_SP2NL
14391 # turn newlines into spaces.
14392 NL2SP=$lt_lt_NL2SP
14394 # An object symbol dumper.
14395 OBJDUMP=$lt_OBJDUMP
14397 # Method to check whether dependent libraries are shared objects.
14398 deplibs_check_method=$lt_deplibs_check_method
14400 # Command to use when deplibs_check_method == "file_magic".
14401 file_magic_cmd=$lt_file_magic_cmd
14403 # The archiver.
14404 AR=$lt_AR
14405 AR_FLAGS=$lt_AR_FLAGS
14407 # A symbol stripping program.
14408 STRIP=$lt_STRIP
14410 # Commands used to install an old-style archive.
14411 RANLIB=$lt_RANLIB
14412 old_postinstall_cmds=$lt_old_postinstall_cmds
14413 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14415 # Whether to use a lock for old archive extraction.
14416 lock_old_archive_extraction=$lock_old_archive_extraction
14418 # A C compiler.
14419 LTCC=$lt_CC
14421 # LTCC compiler flags.
14422 LTCFLAGS=$lt_CFLAGS
14424 # Take the output of nm and produce a listing of raw symbols and C names.
14425 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14427 # Transform the output of nm in a proper C declaration.
14428 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14430 # Transform the output of nm in a C name address pair.
14431 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14433 # Transform the output of nm in a C name address pair when lib prefix is needed.
14434 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14436 # The name of the directory that contains temporary libtool files.
14437 objdir=$objdir
14439 # Used to examine libraries when file_magic_cmd begins with "file".
14440 MAGIC_CMD=$MAGIC_CMD
14442 # Must we lock files when doing compilation?
14443 need_locks=$lt_need_locks
14445 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14446 DSYMUTIL=$lt_DSYMUTIL
14448 # Tool to change global to local symbols on Mac OS X.
14449 NMEDIT=$lt_NMEDIT
14451 # Tool to manipulate fat objects and archives on Mac OS X.
14452 LIPO=$lt_LIPO
14454 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14455 OTOOL=$lt_OTOOL
14457 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14458 OTOOL64=$lt_OTOOL64
14460 # Old archive suffix (normally "a").
14461 libext=$libext
14463 # Shared library suffix (normally ".so").
14464 shrext_cmds=$lt_shrext_cmds
14466 # The commands to extract the exported symbol list from a shared archive.
14467 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14469 # Variables whose values should be saved in libtool wrapper scripts and
14470 # restored at link time.
14471 variables_saved_for_relink=$lt_variables_saved_for_relink
14473 # Do we need the "lib" prefix for modules?
14474 need_lib_prefix=$need_lib_prefix
14476 # Do we need a version for libraries?
14477 need_version=$need_version
14479 # Library versioning type.
14480 version_type=$version_type
14482 # Shared library runtime path variable.
14483 runpath_var=$runpath_var
14485 # Shared library path variable.
14486 shlibpath_var=$shlibpath_var
14488 # Is shlibpath searched before the hard-coded library search path?
14489 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14491 # Format of library name prefix.
14492 libname_spec=$lt_libname_spec
14494 # List of archive names. First name is the real one, the rest are links.
14495 # The last name is the one that the linker finds with -lNAME
14496 library_names_spec=$lt_library_names_spec
14498 # The coded name of the library, if different from the real name.
14499 soname_spec=$lt_soname_spec
14501 # Permission mode override for installation of shared libraries.
14502 install_override_mode=$lt_install_override_mode
14504 # Command to use after installation of a shared archive.
14505 postinstall_cmds=$lt_postinstall_cmds
14507 # Command to use after uninstallation of a shared archive.
14508 postuninstall_cmds=$lt_postuninstall_cmds
14510 # Commands used to finish a libtool library installation in a directory.
14511 finish_cmds=$lt_finish_cmds
14513 # As "finish_cmds", except a single script fragment to be evaled but
14514 # not shown.
14515 finish_eval=$lt_finish_eval
14517 # Whether we should hardcode library paths into libraries.
14518 hardcode_into_libs=$hardcode_into_libs
14520 # Compile-time system search path for libraries.
14521 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14523 # Run-time system search path for libraries.
14524 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14526 # Whether dlopen is supported.
14527 dlopen_support=$enable_dlopen
14529 # Whether dlopen of programs is supported.
14530 dlopen_self=$enable_dlopen_self
14532 # Whether dlopen of statically linked programs is supported.
14533 dlopen_self_static=$enable_dlopen_self_static
14535 # Commands to strip libraries.
14536 old_striplib=$lt_old_striplib
14537 striplib=$lt_striplib
14540 # The linker used to build libraries.
14541 LD=$lt_LD
14543 # How to create reloadable object files.
14544 reload_flag=$lt_reload_flag
14545 reload_cmds=$lt_reload_cmds
14547 # Commands used to build an old-style archive.
14548 old_archive_cmds=$lt_old_archive_cmds
14550 # A language specific compiler.
14551 CC=$lt_compiler
14553 # Is the compiler the GNU compiler?
14554 with_gcc=$GCC
14556 # Compiler flag to turn off builtin functions.
14557 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14559 # How to pass a linker flag through the compiler.
14560 wl=$lt_lt_prog_compiler_wl
14562 # Additional compiler flags for building library objects.
14563 pic_flag=$lt_lt_prog_compiler_pic
14565 # Compiler flag to prevent dynamic linking.
14566 link_static_flag=$lt_lt_prog_compiler_static
14568 # Does compiler simultaneously support -c and -o options?
14569 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14571 # Whether or not to add -lc for building shared libraries.
14572 build_libtool_need_lc=$archive_cmds_need_lc
14574 # Whether or not to disallow shared libs when runtime libs are static.
14575 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14577 # Compiler flag to allow reflexive dlopens.
14578 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14580 # Compiler flag to generate shared objects directly from archives.
14581 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14583 # Whether the compiler copes with passing no objects directly.
14584 compiler_needs_object=$lt_compiler_needs_object
14586 # Create an old-style archive from a shared archive.
14587 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14589 # Create a temporary old-style archive to link instead of a shared archive.
14590 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14592 # Commands used to build a shared archive.
14593 archive_cmds=$lt_archive_cmds
14594 archive_expsym_cmds=$lt_archive_expsym_cmds
14596 # Commands used to build a loadable module if different from building
14597 # a shared archive.
14598 module_cmds=$lt_module_cmds
14599 module_expsym_cmds=$lt_module_expsym_cmds
14601 # Whether we are building with GNU ld or not.
14602 with_gnu_ld=$lt_with_gnu_ld
14604 # Flag that allows shared libraries with undefined symbols to be built.
14605 allow_undefined_flag=$lt_allow_undefined_flag
14607 # Flag that enforces no undefined symbols.
14608 no_undefined_flag=$lt_no_undefined_flag
14610 # Flag to hardcode \$libdir into a binary during linking.
14611 # This must work even if \$libdir does not exist
14612 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14614 # If ld is used when linking, flag to hardcode \$libdir into a binary
14615 # during linking. This must work even if \$libdir does not exist.
14616 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14618 # Whether we need a single "-rpath" flag with a separated argument.
14619 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14621 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14622 # DIR into the resulting binary.
14623 hardcode_direct=$hardcode_direct
14625 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14626 # DIR into the resulting binary and the resulting library dependency is
14627 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14628 # library is relocated.
14629 hardcode_direct_absolute=$hardcode_direct_absolute
14631 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14632 # into the resulting binary.
14633 hardcode_minus_L=$hardcode_minus_L
14635 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14636 # into the resulting binary.
14637 hardcode_shlibpath_var=$hardcode_shlibpath_var
14639 # Set to "yes" if building a shared library automatically hardcodes DIR
14640 # into the library and all subsequent libraries and executables linked
14641 # against it.
14642 hardcode_automatic=$hardcode_automatic
14644 # Set to yes if linker adds runtime paths of dependent libraries
14645 # to runtime path list.
14646 inherit_rpath=$inherit_rpath
14648 # Whether libtool must link a program against all its dependency libraries.
14649 link_all_deplibs=$link_all_deplibs
14651 # Fix the shell variable \$srcfile for the compiler.
14652 fix_srcfile_path=$lt_fix_srcfile_path
14654 # Set to "yes" if exported symbols are required.
14655 always_export_symbols=$always_export_symbols
14657 # The commands to list exported symbols.
14658 export_symbols_cmds=$lt_export_symbols_cmds
14660 # Symbols that should not be listed in the preloaded symbols.
14661 exclude_expsyms=$lt_exclude_expsyms
14663 # Symbols that must always be exported.
14664 include_expsyms=$lt_include_expsyms
14666 # Commands necessary for linking programs (against libraries) with templates.
14667 prelink_cmds=$lt_prelink_cmds
14669 # Specify filename containing input files.
14670 file_list_spec=$lt_file_list_spec
14672 # How to hardcode a shared library path into an executable.
14673 hardcode_action=$hardcode_action
14675 # ### END LIBTOOL CONFIG
14677 _LT_EOF
14679 case $host_os in
14680 aix3*)
14681 cat <<\_LT_EOF >> "$cfgfile"
14682 # AIX sometimes has problems with the GCC collect2 program. For some
14683 # reason, if we set the COLLECT_NAMES environment variable, the problems
14684 # vanish in a puff of smoke.
14685 if test "X${COLLECT_NAMES+set}" != Xset; then
14686 COLLECT_NAMES=
14687 export COLLECT_NAMES
14689 _LT_EOF
14691 esac
14694 ltmain="$ac_aux_dir/ltmain.sh"
14697 # We use sed instead of cat because bash on DJGPP gets confused if
14698 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14699 # text mode, it properly converts lines to CR/LF. This bash problem
14700 # is reportedly fixed, but why not run on old versions too?
14701 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
14702 || (rm -f "$cfgfile"; exit 1)
14704 case $xsi_shell in
14705 yes)
14706 cat << \_LT_EOF >> "$cfgfile"
14708 # func_dirname file append nondir_replacement
14709 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
14710 # otherwise set result to NONDIR_REPLACEMENT.
14711 func_dirname ()
14713 case ${1} in
14714 */*) func_dirname_result="${1%/*}${2}" ;;
14715 * ) func_dirname_result="${3}" ;;
14716 esac
14719 # func_basename file
14720 func_basename ()
14722 func_basename_result="${1##*/}"
14725 # func_dirname_and_basename file append nondir_replacement
14726 # perform func_basename and func_dirname in a single function
14727 # call:
14728 # dirname: Compute the dirname of FILE. If nonempty,
14729 # add APPEND to the result, otherwise set result
14730 # to NONDIR_REPLACEMENT.
14731 # value returned in "$func_dirname_result"
14732 # basename: Compute filename of FILE.
14733 # value retuned in "$func_basename_result"
14734 # Implementation must be kept synchronized with func_dirname
14735 # and func_basename. For efficiency, we do not delegate to
14736 # those functions but instead duplicate the functionality here.
14737 func_dirname_and_basename ()
14739 case ${1} in
14740 */*) func_dirname_result="${1%/*}${2}" ;;
14741 * ) func_dirname_result="${3}" ;;
14742 esac
14743 func_basename_result="${1##*/}"
14746 # func_stripname prefix suffix name
14747 # strip PREFIX and SUFFIX off of NAME.
14748 # PREFIX and SUFFIX must not contain globbing or regex special
14749 # characters, hashes, percent signs, but SUFFIX may contain a leading
14750 # dot (in which case that matches only a dot).
14751 func_stripname ()
14753 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
14754 # positional parameters, so assign one to ordinary parameter first.
14755 func_stripname_result=${3}
14756 func_stripname_result=${func_stripname_result#"${1}"}
14757 func_stripname_result=${func_stripname_result%"${2}"}
14760 # func_opt_split
14761 func_opt_split ()
14763 func_opt_split_opt=${1%%=*}
14764 func_opt_split_arg=${1#*=}
14767 # func_lo2o object
14768 func_lo2o ()
14770 case ${1} in
14771 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
14772 *) func_lo2o_result=${1} ;;
14773 esac
14776 # func_xform libobj-or-source
14777 func_xform ()
14779 func_xform_result=${1%.*}.lo
14782 # func_arith arithmetic-term...
14783 func_arith ()
14785 func_arith_result=$(( $* ))
14788 # func_len string
14789 # STRING may not start with a hyphen.
14790 func_len ()
14792 func_len_result=${#1}
14795 _LT_EOF
14797 *) # Bourne compatible functions.
14798 cat << \_LT_EOF >> "$cfgfile"
14800 # func_dirname file append nondir_replacement
14801 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
14802 # otherwise set result to NONDIR_REPLACEMENT.
14803 func_dirname ()
14805 # Extract subdirectory from the argument.
14806 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
14807 if test "X$func_dirname_result" = "X${1}"; then
14808 func_dirname_result="${3}"
14809 else
14810 func_dirname_result="$func_dirname_result${2}"
14814 # func_basename file
14815 func_basename ()
14817 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
14821 # func_stripname prefix suffix name
14822 # strip PREFIX and SUFFIX off of NAME.
14823 # PREFIX and SUFFIX must not contain globbing or regex special
14824 # characters, hashes, percent signs, but SUFFIX may contain a leading
14825 # dot (in which case that matches only a dot).
14826 # func_strip_suffix prefix name
14827 func_stripname ()
14829 case ${2} in
14830 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
14831 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
14832 esac
14835 # sed scripts:
14836 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
14837 my_sed_long_arg='1s/^-[^=]*=//'
14839 # func_opt_split
14840 func_opt_split ()
14842 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
14843 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
14846 # func_lo2o object
14847 func_lo2o ()
14849 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
14852 # func_xform libobj-or-source
14853 func_xform ()
14855 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
14858 # func_arith arithmetic-term...
14859 func_arith ()
14861 func_arith_result=`expr "$@"`
14864 # func_len string
14865 # STRING may not start with a hyphen.
14866 func_len ()
14868 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
14871 _LT_EOF
14872 esac
14874 case $lt_shell_append in
14875 yes)
14876 cat << \_LT_EOF >> "$cfgfile"
14878 # func_append var value
14879 # Append VALUE to the end of shell variable VAR.
14880 func_append ()
14882 eval "$1+=\$2"
14884 _LT_EOF
14887 cat << \_LT_EOF >> "$cfgfile"
14889 # func_append var value
14890 # Append VALUE to the end of shell variable VAR.
14891 func_append ()
14893 eval "$1=\$$1\$2"
14896 _LT_EOF
14898 esac
14901 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
14902 || (rm -f "$cfgfile"; exit 1)
14904 mv -f "$cfgfile" "$ofile" ||
14905 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14906 chmod +x "$ofile"
14910 esac
14911 done # for ac_tag
14914 as_fn_exit 0
14915 _ACEOF
14916 ac_clean_files=$ac_clean_files_save
14918 test $ac_write_fail = 0 ||
14919 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14922 # configure is writing to config.log, and then calls config.status.
14923 # config.status does its own redirection, appending to config.log.
14924 # Unfortunately, on DOS this fails, as config.log is still kept open
14925 # by configure, so config.status won't be able to write to it; its
14926 # output is simply discarded. So we exec the FD to /dev/null,
14927 # effectively closing config.log, so it can be properly (re)opened and
14928 # appended to by config.status. When coming back to configure, we
14929 # need to make the FD available again.
14930 if test "$no_create" != yes; then
14931 ac_cs_success=:
14932 ac_config_status_args=
14933 test "$silent" = yes &&
14934 ac_config_status_args="$ac_config_status_args --quiet"
14935 exec 5>/dev/null
14936 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14937 exec 5>>config.log
14938 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14939 # would make configure fail if this is the last instruction.
14940 $ac_cs_success || as_fn_exit 1
14942 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14943 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14944 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}