compiler: only build thunk struct type when it is needed
[official-gcc.git] / lto-plugin / configure
blobf165eaeb194bad07dee3d0dd9fd6976b259d6cf9
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 esac
7163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7164 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7165 file_magic_cmd=$lt_cv_file_magic_cmd
7166 deplibs_check_method=$lt_cv_deplibs_check_method
7167 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7180 if test -n "$ac_tool_prefix"; then
7181 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7182 set dummy ${ac_tool_prefix}ar; ac_word=$2
7183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7184 $as_echo_n "checking for $ac_word... " >&6; }
7185 if ${ac_cv_prog_AR+:} false; then :
7186 $as_echo_n "(cached) " >&6
7187 else
7188 if test -n "$AR"; then
7189 ac_cv_prog_AR="$AR" # Let the user override the test.
7190 else
7191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7192 for as_dir in $PATH
7194 IFS=$as_save_IFS
7195 test -z "$as_dir" && as_dir=.
7196 for ac_exec_ext in '' $ac_executable_extensions; do
7197 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7198 ac_cv_prog_AR="${ac_tool_prefix}ar"
7199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7200 break 2
7202 done
7203 done
7204 IFS=$as_save_IFS
7208 AR=$ac_cv_prog_AR
7209 if test -n "$AR"; then
7210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7211 $as_echo "$AR" >&6; }
7212 else
7213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7214 $as_echo "no" >&6; }
7219 if test -z "$ac_cv_prog_AR"; then
7220 ac_ct_AR=$AR
7221 # Extract the first word of "ar", so it can be a program name with args.
7222 set dummy ar; ac_word=$2
7223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7224 $as_echo_n "checking for $ac_word... " >&6; }
7225 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7226 $as_echo_n "(cached) " >&6
7227 else
7228 if test -n "$ac_ct_AR"; then
7229 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7230 else
7231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7232 for as_dir in $PATH
7234 IFS=$as_save_IFS
7235 test -z "$as_dir" && as_dir=.
7236 for ac_exec_ext in '' $ac_executable_extensions; do
7237 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7238 ac_cv_prog_ac_ct_AR="ar"
7239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7240 break 2
7242 done
7243 done
7244 IFS=$as_save_IFS
7248 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7249 if test -n "$ac_ct_AR"; then
7250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7251 $as_echo "$ac_ct_AR" >&6; }
7252 else
7253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7254 $as_echo "no" >&6; }
7257 if test "x$ac_ct_AR" = x; then
7258 AR="false"
7259 else
7260 case $cross_compiling:$ac_tool_warned in
7261 yes:)
7262 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7263 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7264 ac_tool_warned=yes ;;
7265 esac
7266 AR=$ac_ct_AR
7268 else
7269 AR="$ac_cv_prog_AR"
7272 test -z "$AR" && AR=ar
7273 test -z "$AR_FLAGS" && AR_FLAGS=cru
7285 if test -n "$ac_tool_prefix"; then
7286 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7287 set dummy ${ac_tool_prefix}strip; ac_word=$2
7288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7289 $as_echo_n "checking for $ac_word... " >&6; }
7290 if ${ac_cv_prog_STRIP+:} false; then :
7291 $as_echo_n "(cached) " >&6
7292 else
7293 if test -n "$STRIP"; then
7294 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7295 else
7296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7297 for as_dir in $PATH
7299 IFS=$as_save_IFS
7300 test -z "$as_dir" && as_dir=.
7301 for ac_exec_ext in '' $ac_executable_extensions; do
7302 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7303 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7305 break 2
7307 done
7308 done
7309 IFS=$as_save_IFS
7313 STRIP=$ac_cv_prog_STRIP
7314 if test -n "$STRIP"; then
7315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7316 $as_echo "$STRIP" >&6; }
7317 else
7318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7319 $as_echo "no" >&6; }
7324 if test -z "$ac_cv_prog_STRIP"; then
7325 ac_ct_STRIP=$STRIP
7326 # Extract the first word of "strip", so it can be a program name with args.
7327 set dummy strip; ac_word=$2
7328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7329 $as_echo_n "checking for $ac_word... " >&6; }
7330 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7331 $as_echo_n "(cached) " >&6
7332 else
7333 if test -n "$ac_ct_STRIP"; then
7334 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7335 else
7336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7337 for as_dir in $PATH
7339 IFS=$as_save_IFS
7340 test -z "$as_dir" && as_dir=.
7341 for ac_exec_ext in '' $ac_executable_extensions; do
7342 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7343 ac_cv_prog_ac_ct_STRIP="strip"
7344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7345 break 2
7347 done
7348 done
7349 IFS=$as_save_IFS
7353 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7354 if test -n "$ac_ct_STRIP"; then
7355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7356 $as_echo "$ac_ct_STRIP" >&6; }
7357 else
7358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7359 $as_echo "no" >&6; }
7362 if test "x$ac_ct_STRIP" = x; then
7363 STRIP=":"
7364 else
7365 case $cross_compiling:$ac_tool_warned in
7366 yes:)
7367 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7368 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7369 ac_tool_warned=yes ;;
7370 esac
7371 STRIP=$ac_ct_STRIP
7373 else
7374 STRIP="$ac_cv_prog_STRIP"
7377 test -z "$STRIP" && STRIP=:
7384 if test -n "$ac_tool_prefix"; then
7385 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7386 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7388 $as_echo_n "checking for $ac_word... " >&6; }
7389 if ${ac_cv_prog_RANLIB+:} false; then :
7390 $as_echo_n "(cached) " >&6
7391 else
7392 if test -n "$RANLIB"; then
7393 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7394 else
7395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7396 for as_dir in $PATH
7398 IFS=$as_save_IFS
7399 test -z "$as_dir" && as_dir=.
7400 for ac_exec_ext in '' $ac_executable_extensions; do
7401 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7402 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7404 break 2
7406 done
7407 done
7408 IFS=$as_save_IFS
7412 RANLIB=$ac_cv_prog_RANLIB
7413 if test -n "$RANLIB"; then
7414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7415 $as_echo "$RANLIB" >&6; }
7416 else
7417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7418 $as_echo "no" >&6; }
7423 if test -z "$ac_cv_prog_RANLIB"; then
7424 ac_ct_RANLIB=$RANLIB
7425 # Extract the first word of "ranlib", so it can be a program name with args.
7426 set dummy ranlib; ac_word=$2
7427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7428 $as_echo_n "checking for $ac_word... " >&6; }
7429 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7430 $as_echo_n "(cached) " >&6
7431 else
7432 if test -n "$ac_ct_RANLIB"; then
7433 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7434 else
7435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7436 for as_dir in $PATH
7438 IFS=$as_save_IFS
7439 test -z "$as_dir" && as_dir=.
7440 for ac_exec_ext in '' $ac_executable_extensions; do
7441 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7442 ac_cv_prog_ac_ct_RANLIB="ranlib"
7443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7444 break 2
7446 done
7447 done
7448 IFS=$as_save_IFS
7452 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7453 if test -n "$ac_ct_RANLIB"; then
7454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7455 $as_echo "$ac_ct_RANLIB" >&6; }
7456 else
7457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7458 $as_echo "no" >&6; }
7461 if test "x$ac_ct_RANLIB" = x; then
7462 RANLIB=":"
7463 else
7464 case $cross_compiling:$ac_tool_warned in
7465 yes:)
7466 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7467 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7468 ac_tool_warned=yes ;;
7469 esac
7470 RANLIB=$ac_ct_RANLIB
7472 else
7473 RANLIB="$ac_cv_prog_RANLIB"
7476 test -z "$RANLIB" && RANLIB=:
7483 # Determine commands to create old-style static archives.
7484 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7485 old_postinstall_cmds='chmod 644 $oldlib'
7486 old_postuninstall_cmds=
7488 if test -n "$RANLIB"; then
7489 case $host_os in
7490 openbsd*)
7491 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7494 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7496 esac
7497 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7500 case $host_os in
7501 darwin*)
7502 lock_old_archive_extraction=yes ;;
7504 lock_old_archive_extraction=no ;;
7505 esac
7545 # If no C compiler was specified, use CC.
7546 LTCC=${LTCC-"$CC"}
7548 # If no C compiler flags were specified, use CFLAGS.
7549 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7551 # Allow CC to be a program name with arguments.
7552 compiler=$CC
7555 # Check for command to grab the raw symbol name followed by C symbol from nm.
7556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7557 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7558 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7559 $as_echo_n "(cached) " >&6
7560 else
7562 # These are sane defaults that work on at least a few old systems.
7563 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7565 # Character class describing NM global symbol codes.
7566 symcode='[BCDEGRST]'
7568 # Regexp to match symbols that can be accessed directly from C.
7569 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7571 # Define system-specific variables.
7572 case $host_os in
7573 aix*)
7574 symcode='[BCDT]'
7576 cygwin* | mingw* | pw32* | cegcc*)
7577 symcode='[ABCDGISTW]'
7579 hpux*)
7580 if test "$host_cpu" = ia64; then
7581 symcode='[ABCDEGRST]'
7584 irix* | nonstopux*)
7585 symcode='[BCDEGRST]'
7587 osf*)
7588 symcode='[BCDEGQRST]'
7590 solaris*)
7591 symcode='[BDRT]'
7593 sco3.2v5*)
7594 symcode='[DT]'
7596 sysv4.2uw2*)
7597 symcode='[DT]'
7599 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7600 symcode='[ABDT]'
7602 sysv4)
7603 symcode='[DFNSTU]'
7605 esac
7607 # If we're using GNU nm, then use its standard symbol codes.
7608 case `$NM -V 2>&1` in
7609 *GNU* | *'with BFD'*)
7610 symcode='[ABCDGIRSTW]' ;;
7611 esac
7613 # Transform an extracted symbol line into a proper C declaration.
7614 # Some systems (esp. on ia64) link data and code symbols differently,
7615 # so use this general approach.
7616 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7618 # Transform an extracted symbol line into symbol name and symbol address
7619 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7620 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'"
7622 # Handle CRLF in mingw tool chain
7623 opt_cr=
7624 case $build_os in
7625 mingw*)
7626 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7628 esac
7630 # Try without a prefix underscore, then with it.
7631 for ac_symprfx in "" "_"; do
7633 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7634 symxfrm="\\1 $ac_symprfx\\2 \\2"
7636 # Write the raw and C identifiers.
7637 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7638 # Fake it for dumpbin and say T for any non-static function
7639 # and D for any global variable.
7640 # Also find C++ and __fastcall symbols from MSVC++,
7641 # which start with @ or ?.
7642 lt_cv_sys_global_symbol_pipe="$AWK '"\
7643 " {last_section=section; section=\$ 3};"\
7644 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7645 " \$ 0!~/External *\|/{next};"\
7646 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7647 " {if(hide[section]) next};"\
7648 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7649 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7650 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7651 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7652 " ' prfx=^$ac_symprfx"
7653 else
7654 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7657 # Check to see that the pipe works correctly.
7658 pipe_works=no
7660 rm -f conftest*
7661 cat > conftest.$ac_ext <<_LT_EOF
7662 #ifdef __cplusplus
7663 extern "C" {
7664 #endif
7665 char nm_test_var;
7666 void nm_test_func(void);
7667 void nm_test_func(void){}
7668 #ifdef __cplusplus
7670 #endif
7671 int main(){nm_test_var='a';nm_test_func();return(0);}
7672 _LT_EOF
7674 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7675 (eval $ac_compile) 2>&5
7676 ac_status=$?
7677 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7678 test $ac_status = 0; }; then
7679 # Now try to grab the symbols.
7680 nlist=conftest.nm
7681 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7682 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7683 ac_status=$?
7684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7685 test $ac_status = 0; } && test -s "$nlist"; then
7686 # Try sorting and uniquifying the output.
7687 if sort "$nlist" | uniq > "$nlist"T; then
7688 mv -f "$nlist"T "$nlist"
7689 else
7690 rm -f "$nlist"T
7693 # Make sure that we snagged all the symbols we need.
7694 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7695 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7696 cat <<_LT_EOF > conftest.$ac_ext
7697 #ifdef __cplusplus
7698 extern "C" {
7699 #endif
7701 _LT_EOF
7702 # Now generate the symbol file.
7703 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7705 cat <<_LT_EOF >> conftest.$ac_ext
7707 /* The mapping between symbol names and symbols. */
7708 const struct {
7709 const char *name;
7710 void *address;
7712 lt__PROGRAM__LTX_preloaded_symbols[] =
7714 { "@PROGRAM@", (void *) 0 },
7715 _LT_EOF
7716 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7717 cat <<\_LT_EOF >> conftest.$ac_ext
7718 {0, (void *) 0}
7721 /* This works around a problem in FreeBSD linker */
7722 #ifdef FREEBSD_WORKAROUND
7723 static const void *lt_preloaded_setup() {
7724 return lt__PROGRAM__LTX_preloaded_symbols;
7726 #endif
7728 #ifdef __cplusplus
7730 #endif
7731 _LT_EOF
7732 # Now try linking the two files.
7733 mv conftest.$ac_objext conftstm.$ac_objext
7734 lt_save_LIBS="$LIBS"
7735 lt_save_CFLAGS="$CFLAGS"
7736 LIBS="conftstm.$ac_objext"
7737 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7738 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7739 (eval $ac_link) 2>&5
7740 ac_status=$?
7741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7742 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7743 pipe_works=yes
7745 LIBS="$lt_save_LIBS"
7746 CFLAGS="$lt_save_CFLAGS"
7747 else
7748 echo "cannot find nm_test_func in $nlist" >&5
7750 else
7751 echo "cannot find nm_test_var in $nlist" >&5
7753 else
7754 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7756 else
7757 echo "$progname: failed program was:" >&5
7758 cat conftest.$ac_ext >&5
7760 rm -rf conftest* conftst*
7762 # Do not use the global_symbol_pipe unless it works.
7763 if test "$pipe_works" = yes; then
7764 break
7765 else
7766 lt_cv_sys_global_symbol_pipe=
7768 done
7772 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7773 lt_cv_sys_global_symbol_to_cdecl=
7775 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7777 $as_echo "failed" >&6; }
7778 else
7779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7780 $as_echo "ok" >&6; }
7804 # Check whether --enable-libtool-lock was given.
7805 if test "${enable_libtool_lock+set}" = set; then :
7806 enableval=$enable_libtool_lock;
7809 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7811 # Some flags need to be propagated to the compiler or linker for good
7812 # libtool support.
7813 case $host in
7814 ia64-*-hpux*)
7815 # Find out which ABI we are using.
7816 echo 'int i;' > conftest.$ac_ext
7817 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7818 (eval $ac_compile) 2>&5
7819 ac_status=$?
7820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7821 test $ac_status = 0; }; then
7822 case `/usr/bin/file conftest.$ac_objext` in
7823 *ELF-32*)
7824 HPUX_IA64_MODE="32"
7826 *ELF-64*)
7827 HPUX_IA64_MODE="64"
7829 esac
7831 rm -rf conftest*
7833 *-*-irix6*)
7834 # Find out which ABI we are using.
7835 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7836 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7837 (eval $ac_compile) 2>&5
7838 ac_status=$?
7839 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7840 test $ac_status = 0; }; then
7841 if test "$lt_cv_prog_gnu_ld" = yes; then
7842 case `/usr/bin/file conftest.$ac_objext` in
7843 *32-bit*)
7844 LD="${LD-ld} -melf32bsmip"
7846 *N32*)
7847 LD="${LD-ld} -melf32bmipn32"
7849 *64-bit*)
7850 LD="${LD-ld} -melf64bmip"
7852 esac
7853 else
7854 case `/usr/bin/file conftest.$ac_objext` in
7855 *32-bit*)
7856 LD="${LD-ld} -32"
7858 *N32*)
7859 LD="${LD-ld} -n32"
7861 *64-bit*)
7862 LD="${LD-ld} -64"
7864 esac
7867 rm -rf conftest*
7870 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7871 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7872 # Find out which ABI we are using.
7873 echo 'int i;' > conftest.$ac_ext
7874 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7875 (eval $ac_compile) 2>&5
7876 ac_status=$?
7877 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7878 test $ac_status = 0; }; then
7879 case `/usr/bin/file conftest.o` in
7880 *32-bit*)
7881 case $host in
7882 x86_64-*kfreebsd*-gnu)
7883 LD="${LD-ld} -m elf_i386_fbsd"
7885 x86_64-*linux*)
7886 case `/usr/bin/file conftest.o` in
7887 *x86-64*)
7888 LD="${LD-ld} -m elf32_x86_64"
7891 LD="${LD-ld} -m elf_i386"
7893 esac
7895 powerpc64le-*linux*)
7896 LD="${LD-ld} -m elf32lppclinux"
7898 powerpc64-*linux*)
7899 LD="${LD-ld} -m elf32ppclinux"
7901 s390x-*linux*)
7902 LD="${LD-ld} -m elf_s390"
7904 sparc64-*linux*)
7905 LD="${LD-ld} -m elf32_sparc"
7907 esac
7909 *64-bit*)
7910 case $host in
7911 x86_64-*kfreebsd*-gnu)
7912 LD="${LD-ld} -m elf_x86_64_fbsd"
7914 x86_64-*linux*)
7915 LD="${LD-ld} -m elf_x86_64"
7917 powerpcle-*linux*)
7918 LD="${LD-ld} -m elf64lppc"
7920 powerpc-*linux*)
7921 LD="${LD-ld} -m elf64ppc"
7923 s390*-*linux*|s390*-*tpf*)
7924 LD="${LD-ld} -m elf64_s390"
7926 sparc*-*linux*)
7927 LD="${LD-ld} -m elf64_sparc"
7929 esac
7931 esac
7933 rm -rf conftest*
7936 *-*-sco3.2v5*)
7937 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7938 SAVE_CFLAGS="$CFLAGS"
7939 CFLAGS="$CFLAGS -belf"
7940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7941 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7942 if ${lt_cv_cc_needs_belf+:} false; then :
7943 $as_echo_n "(cached) " >&6
7944 else
7945 ac_ext=c
7946 ac_cpp='$CPP $CPPFLAGS'
7947 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7948 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7949 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7952 /* end confdefs.h. */
7955 main ()
7959 return 0;
7961 _ACEOF
7962 if ac_fn_c_try_link "$LINENO"; then :
7963 lt_cv_cc_needs_belf=yes
7964 else
7965 lt_cv_cc_needs_belf=no
7967 rm -f core conftest.err conftest.$ac_objext \
7968 conftest$ac_exeext conftest.$ac_ext
7969 ac_ext=c
7970 ac_cpp='$CPP $CPPFLAGS'
7971 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7972 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7973 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7977 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7978 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7979 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7980 CFLAGS="$SAVE_CFLAGS"
7983 sparc*-*solaris*)
7984 # Find out which ABI we are using.
7985 echo 'int i;' > conftest.$ac_ext
7986 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7987 (eval $ac_compile) 2>&5
7988 ac_status=$?
7989 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7990 test $ac_status = 0; }; then
7991 case `/usr/bin/file conftest.o` in
7992 *64-bit*)
7993 case $lt_cv_prog_gnu_ld in
7994 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7996 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7997 LD="${LD-ld} -64"
8000 esac
8002 esac
8004 rm -rf conftest*
8006 esac
8008 need_locks="$enable_libtool_lock"
8011 case $host_os in
8012 rhapsody* | darwin*)
8013 if test -n "$ac_tool_prefix"; then
8014 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8015 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8017 $as_echo_n "checking for $ac_word... " >&6; }
8018 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8019 $as_echo_n "(cached) " >&6
8020 else
8021 if test -n "$DSYMUTIL"; then
8022 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8023 else
8024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8025 for as_dir in $PATH
8027 IFS=$as_save_IFS
8028 test -z "$as_dir" && as_dir=.
8029 for ac_exec_ext in '' $ac_executable_extensions; do
8030 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8031 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8033 break 2
8035 done
8036 done
8037 IFS=$as_save_IFS
8041 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8042 if test -n "$DSYMUTIL"; then
8043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8044 $as_echo "$DSYMUTIL" >&6; }
8045 else
8046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8047 $as_echo "no" >&6; }
8052 if test -z "$ac_cv_prog_DSYMUTIL"; then
8053 ac_ct_DSYMUTIL=$DSYMUTIL
8054 # Extract the first word of "dsymutil", so it can be a program name with args.
8055 set dummy dsymutil; ac_word=$2
8056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8057 $as_echo_n "checking for $ac_word... " >&6; }
8058 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8059 $as_echo_n "(cached) " >&6
8060 else
8061 if test -n "$ac_ct_DSYMUTIL"; then
8062 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8063 else
8064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8065 for as_dir in $PATH
8067 IFS=$as_save_IFS
8068 test -z "$as_dir" && as_dir=.
8069 for ac_exec_ext in '' $ac_executable_extensions; do
8070 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8071 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8073 break 2
8075 done
8076 done
8077 IFS=$as_save_IFS
8081 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8082 if test -n "$ac_ct_DSYMUTIL"; then
8083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8084 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8085 else
8086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8087 $as_echo "no" >&6; }
8090 if test "x$ac_ct_DSYMUTIL" = x; then
8091 DSYMUTIL=":"
8092 else
8093 case $cross_compiling:$ac_tool_warned in
8094 yes:)
8095 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8096 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8097 ac_tool_warned=yes ;;
8098 esac
8099 DSYMUTIL=$ac_ct_DSYMUTIL
8101 else
8102 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8105 if test -n "$ac_tool_prefix"; then
8106 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8107 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8109 $as_echo_n "checking for $ac_word... " >&6; }
8110 if ${ac_cv_prog_NMEDIT+:} false; then :
8111 $as_echo_n "(cached) " >&6
8112 else
8113 if test -n "$NMEDIT"; then
8114 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8115 else
8116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8117 for as_dir in $PATH
8119 IFS=$as_save_IFS
8120 test -z "$as_dir" && as_dir=.
8121 for ac_exec_ext in '' $ac_executable_extensions; do
8122 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8123 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8125 break 2
8127 done
8128 done
8129 IFS=$as_save_IFS
8133 NMEDIT=$ac_cv_prog_NMEDIT
8134 if test -n "$NMEDIT"; then
8135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8136 $as_echo "$NMEDIT" >&6; }
8137 else
8138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8139 $as_echo "no" >&6; }
8144 if test -z "$ac_cv_prog_NMEDIT"; then
8145 ac_ct_NMEDIT=$NMEDIT
8146 # Extract the first word of "nmedit", so it can be a program name with args.
8147 set dummy nmedit; ac_word=$2
8148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8149 $as_echo_n "checking for $ac_word... " >&6; }
8150 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8151 $as_echo_n "(cached) " >&6
8152 else
8153 if test -n "$ac_ct_NMEDIT"; then
8154 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8155 else
8156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8157 for as_dir in $PATH
8159 IFS=$as_save_IFS
8160 test -z "$as_dir" && as_dir=.
8161 for ac_exec_ext in '' $ac_executable_extensions; do
8162 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8163 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8165 break 2
8167 done
8168 done
8169 IFS=$as_save_IFS
8173 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8174 if test -n "$ac_ct_NMEDIT"; then
8175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8176 $as_echo "$ac_ct_NMEDIT" >&6; }
8177 else
8178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8179 $as_echo "no" >&6; }
8182 if test "x$ac_ct_NMEDIT" = x; then
8183 NMEDIT=":"
8184 else
8185 case $cross_compiling:$ac_tool_warned in
8186 yes:)
8187 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8188 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8189 ac_tool_warned=yes ;;
8190 esac
8191 NMEDIT=$ac_ct_NMEDIT
8193 else
8194 NMEDIT="$ac_cv_prog_NMEDIT"
8197 if test -n "$ac_tool_prefix"; then
8198 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8199 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8201 $as_echo_n "checking for $ac_word... " >&6; }
8202 if ${ac_cv_prog_LIPO+:} false; then :
8203 $as_echo_n "(cached) " >&6
8204 else
8205 if test -n "$LIPO"; then
8206 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8207 else
8208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8209 for as_dir in $PATH
8211 IFS=$as_save_IFS
8212 test -z "$as_dir" && as_dir=.
8213 for ac_exec_ext in '' $ac_executable_extensions; do
8214 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8215 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8217 break 2
8219 done
8220 done
8221 IFS=$as_save_IFS
8225 LIPO=$ac_cv_prog_LIPO
8226 if test -n "$LIPO"; then
8227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8228 $as_echo "$LIPO" >&6; }
8229 else
8230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8231 $as_echo "no" >&6; }
8236 if test -z "$ac_cv_prog_LIPO"; then
8237 ac_ct_LIPO=$LIPO
8238 # Extract the first word of "lipo", so it can be a program name with args.
8239 set dummy lipo; ac_word=$2
8240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8241 $as_echo_n "checking for $ac_word... " >&6; }
8242 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8243 $as_echo_n "(cached) " >&6
8244 else
8245 if test -n "$ac_ct_LIPO"; then
8246 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8247 else
8248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8249 for as_dir in $PATH
8251 IFS=$as_save_IFS
8252 test -z "$as_dir" && as_dir=.
8253 for ac_exec_ext in '' $ac_executable_extensions; do
8254 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8255 ac_cv_prog_ac_ct_LIPO="lipo"
8256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8257 break 2
8259 done
8260 done
8261 IFS=$as_save_IFS
8265 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8266 if test -n "$ac_ct_LIPO"; then
8267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8268 $as_echo "$ac_ct_LIPO" >&6; }
8269 else
8270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8271 $as_echo "no" >&6; }
8274 if test "x$ac_ct_LIPO" = x; then
8275 LIPO=":"
8276 else
8277 case $cross_compiling:$ac_tool_warned in
8278 yes:)
8279 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8280 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8281 ac_tool_warned=yes ;;
8282 esac
8283 LIPO=$ac_ct_LIPO
8285 else
8286 LIPO="$ac_cv_prog_LIPO"
8289 if test -n "$ac_tool_prefix"; then
8290 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8291 set dummy ${ac_tool_prefix}otool; ac_word=$2
8292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8293 $as_echo_n "checking for $ac_word... " >&6; }
8294 if ${ac_cv_prog_OTOOL+:} false; then :
8295 $as_echo_n "(cached) " >&6
8296 else
8297 if test -n "$OTOOL"; then
8298 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8299 else
8300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8301 for as_dir in $PATH
8303 IFS=$as_save_IFS
8304 test -z "$as_dir" && as_dir=.
8305 for ac_exec_ext in '' $ac_executable_extensions; do
8306 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8307 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8309 break 2
8311 done
8312 done
8313 IFS=$as_save_IFS
8317 OTOOL=$ac_cv_prog_OTOOL
8318 if test -n "$OTOOL"; then
8319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8320 $as_echo "$OTOOL" >&6; }
8321 else
8322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8323 $as_echo "no" >&6; }
8328 if test -z "$ac_cv_prog_OTOOL"; then
8329 ac_ct_OTOOL=$OTOOL
8330 # Extract the first word of "otool", so it can be a program name with args.
8331 set dummy otool; ac_word=$2
8332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8333 $as_echo_n "checking for $ac_word... " >&6; }
8334 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8335 $as_echo_n "(cached) " >&6
8336 else
8337 if test -n "$ac_ct_OTOOL"; then
8338 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8339 else
8340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8341 for as_dir in $PATH
8343 IFS=$as_save_IFS
8344 test -z "$as_dir" && as_dir=.
8345 for ac_exec_ext in '' $ac_executable_extensions; do
8346 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8347 ac_cv_prog_ac_ct_OTOOL="otool"
8348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8349 break 2
8351 done
8352 done
8353 IFS=$as_save_IFS
8357 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8358 if test -n "$ac_ct_OTOOL"; then
8359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8360 $as_echo "$ac_ct_OTOOL" >&6; }
8361 else
8362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8363 $as_echo "no" >&6; }
8366 if test "x$ac_ct_OTOOL" = x; then
8367 OTOOL=":"
8368 else
8369 case $cross_compiling:$ac_tool_warned in
8370 yes:)
8371 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8372 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8373 ac_tool_warned=yes ;;
8374 esac
8375 OTOOL=$ac_ct_OTOOL
8377 else
8378 OTOOL="$ac_cv_prog_OTOOL"
8381 if test -n "$ac_tool_prefix"; then
8382 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8383 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8385 $as_echo_n "checking for $ac_word... " >&6; }
8386 if ${ac_cv_prog_OTOOL64+:} false; then :
8387 $as_echo_n "(cached) " >&6
8388 else
8389 if test -n "$OTOOL64"; then
8390 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8391 else
8392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8393 for as_dir in $PATH
8395 IFS=$as_save_IFS
8396 test -z "$as_dir" && as_dir=.
8397 for ac_exec_ext in '' $ac_executable_extensions; do
8398 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8399 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8401 break 2
8403 done
8404 done
8405 IFS=$as_save_IFS
8409 OTOOL64=$ac_cv_prog_OTOOL64
8410 if test -n "$OTOOL64"; then
8411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8412 $as_echo "$OTOOL64" >&6; }
8413 else
8414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8415 $as_echo "no" >&6; }
8420 if test -z "$ac_cv_prog_OTOOL64"; then
8421 ac_ct_OTOOL64=$OTOOL64
8422 # Extract the first word of "otool64", so it can be a program name with args.
8423 set dummy otool64; ac_word=$2
8424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8425 $as_echo_n "checking for $ac_word... " >&6; }
8426 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8427 $as_echo_n "(cached) " >&6
8428 else
8429 if test -n "$ac_ct_OTOOL64"; then
8430 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8431 else
8432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8433 for as_dir in $PATH
8435 IFS=$as_save_IFS
8436 test -z "$as_dir" && as_dir=.
8437 for ac_exec_ext in '' $ac_executable_extensions; do
8438 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8439 ac_cv_prog_ac_ct_OTOOL64="otool64"
8440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8441 break 2
8443 done
8444 done
8445 IFS=$as_save_IFS
8449 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8450 if test -n "$ac_ct_OTOOL64"; then
8451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8452 $as_echo "$ac_ct_OTOOL64" >&6; }
8453 else
8454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8455 $as_echo "no" >&6; }
8458 if test "x$ac_ct_OTOOL64" = x; then
8459 OTOOL64=":"
8460 else
8461 case $cross_compiling:$ac_tool_warned in
8462 yes:)
8463 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8464 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8465 ac_tool_warned=yes ;;
8466 esac
8467 OTOOL64=$ac_ct_OTOOL64
8469 else
8470 OTOOL64="$ac_cv_prog_OTOOL64"
8499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8500 $as_echo_n "checking for -single_module linker flag... " >&6; }
8501 if ${lt_cv_apple_cc_single_mod+:} false; then :
8502 $as_echo_n "(cached) " >&6
8503 else
8504 lt_cv_apple_cc_single_mod=no
8505 if test -z "${LT_MULTI_MODULE}"; then
8506 # By default we will add the -single_module flag. You can override
8507 # by either setting the environment variable LT_MULTI_MODULE
8508 # non-empty at configure time, or by adding -multi_module to the
8509 # link flags.
8510 rm -rf libconftest.dylib*
8511 echo "int foo(void){return 1;}" > conftest.c
8512 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8513 -dynamiclib -Wl,-single_module conftest.c" >&5
8514 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8515 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8516 _lt_result=$?
8517 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8518 lt_cv_apple_cc_single_mod=yes
8519 else
8520 cat conftest.err >&5
8522 rm -rf libconftest.dylib*
8523 rm -f conftest.*
8526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8527 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8529 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8530 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8531 $as_echo_n "(cached) " >&6
8532 else
8533 lt_cv_ld_exported_symbols_list=no
8534 save_LDFLAGS=$LDFLAGS
8535 echo "_main" > conftest.sym
8536 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8538 /* end confdefs.h. */
8541 main ()
8545 return 0;
8547 _ACEOF
8548 if ac_fn_c_try_link "$LINENO"; then :
8549 lt_cv_ld_exported_symbols_list=yes
8550 else
8551 lt_cv_ld_exported_symbols_list=no
8553 rm -f core conftest.err conftest.$ac_objext \
8554 conftest$ac_exeext conftest.$ac_ext
8555 LDFLAGS="$save_LDFLAGS"
8558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8559 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8561 $as_echo_n "checking for -force_load linker flag... " >&6; }
8562 if ${lt_cv_ld_force_load+:} false; then :
8563 $as_echo_n "(cached) " >&6
8564 else
8565 lt_cv_ld_force_load=no
8566 cat > conftest.c << _LT_EOF
8567 int forced_loaded() { return 2;}
8568 _LT_EOF
8569 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8570 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8571 echo "$AR cru libconftest.a conftest.o" >&5
8572 $AR cru libconftest.a conftest.o 2>&5
8573 cat > conftest.c << _LT_EOF
8574 int main() { return 0;}
8575 _LT_EOF
8576 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8577 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8578 _lt_result=$?
8579 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8580 lt_cv_ld_force_load=yes
8581 else
8582 cat conftest.err >&5
8584 rm -f conftest.err libconftest.a conftest conftest.c
8585 rm -rf conftest.dSYM
8588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8589 $as_echo "$lt_cv_ld_force_load" >&6; }
8590 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
8591 # build without first building modern cctools / linker.
8592 case $host_cpu-$host_os in
8593 *-rhapsody* | *-darwin1.[012])
8594 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8595 *-darwin1.*)
8596 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8597 *-darwin*)
8598 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
8599 # deployment target is forced to an earlier version.
8600 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
8601 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*)
8603 10.[012][,.]*)
8604 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8608 esac
8610 esac
8611 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8612 _lt_dar_single_mod='$single_module'
8614 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8615 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8616 else
8617 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8619 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8620 _lt_dsymutil='~$DSYMUTIL $lib || :'
8621 else
8622 _lt_dsymutil=
8625 esac
8627 for ac_header in dlfcn.h
8628 do :
8629 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8631 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8632 cat >>confdefs.h <<_ACEOF
8633 #define HAVE_DLFCN_H 1
8634 _ACEOF
8638 done
8644 # Set options
8648 enable_dlopen=no
8651 enable_win32_dll=no
8654 # Check whether --enable-shared was given.
8655 if test "${enable_shared+set}" = set; then :
8656 enableval=$enable_shared; p=${PACKAGE-default}
8657 case $enableval in
8658 yes) enable_shared=yes ;;
8659 no) enable_shared=no ;;
8661 enable_shared=no
8662 # Look at the argument we got. We use all the common list separators.
8663 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8664 for pkg in $enableval; do
8665 IFS="$lt_save_ifs"
8666 if test "X$pkg" = "X$p"; then
8667 enable_shared=yes
8669 done
8670 IFS="$lt_save_ifs"
8672 esac
8673 else
8674 enable_shared=yes
8685 # Check whether --enable-static was given.
8686 if test "${enable_static+set}" = set; then :
8687 enableval=$enable_static; p=${PACKAGE-default}
8688 case $enableval in
8689 yes) enable_static=yes ;;
8690 no) enable_static=no ;;
8692 enable_static=no
8693 # Look at the argument we got. We use all the common list separators.
8694 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8695 for pkg in $enableval; do
8696 IFS="$lt_save_ifs"
8697 if test "X$pkg" = "X$p"; then
8698 enable_static=yes
8700 done
8701 IFS="$lt_save_ifs"
8703 esac
8704 else
8705 enable_static=yes
8717 # Check whether --with-pic was given.
8718 if test "${with_pic+set}" = set; then :
8719 withval=$with_pic; pic_mode="$withval"
8720 else
8721 pic_mode=default
8725 test -z "$pic_mode" && pic_mode=default
8733 # Check whether --enable-fast-install was given.
8734 if test "${enable_fast_install+set}" = set; then :
8735 enableval=$enable_fast_install; p=${PACKAGE-default}
8736 case $enableval in
8737 yes) enable_fast_install=yes ;;
8738 no) enable_fast_install=no ;;
8740 enable_fast_install=no
8741 # Look at the argument we got. We use all the common list separators.
8742 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8743 for pkg in $enableval; do
8744 IFS="$lt_save_ifs"
8745 if test "X$pkg" = "X$p"; then
8746 enable_fast_install=yes
8748 done
8749 IFS="$lt_save_ifs"
8751 esac
8752 else
8753 enable_fast_install=yes
8766 # This can be used to rebuild libtool when needed
8767 LIBTOOL_DEPS="$ltmain"
8769 # Always use our own libtool.
8770 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8797 test -z "$LN_S" && LN_S="ln -s"
8812 if test -n "${ZSH_VERSION+set}" ; then
8813 setopt NO_GLOB_SUBST
8816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8817 $as_echo_n "checking for objdir... " >&6; }
8818 if ${lt_cv_objdir+:} false; then :
8819 $as_echo_n "(cached) " >&6
8820 else
8821 rm -f .libs 2>/dev/null
8822 mkdir .libs 2>/dev/null
8823 if test -d .libs; then
8824 lt_cv_objdir=.libs
8825 else
8826 # MS-DOS does not allow filenames that begin with a dot.
8827 lt_cv_objdir=_libs
8829 rmdir .libs 2>/dev/null
8831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8832 $as_echo "$lt_cv_objdir" >&6; }
8833 objdir=$lt_cv_objdir
8839 cat >>confdefs.h <<_ACEOF
8840 #define LT_OBJDIR "$lt_cv_objdir/"
8841 _ACEOF
8846 case $host_os in
8847 aix3*)
8848 # AIX sometimes has problems with the GCC collect2 program. For some
8849 # reason, if we set the COLLECT_NAMES environment variable, the problems
8850 # vanish in a puff of smoke.
8851 if test "X${COLLECT_NAMES+set}" != Xset; then
8852 COLLECT_NAMES=
8853 export COLLECT_NAMES
8856 esac
8858 # Global variables:
8859 ofile=libtool
8860 can_build_shared=yes
8862 # All known linkers require a `.a' archive for static linking (except MSVC,
8863 # which needs '.lib').
8864 libext=a
8866 with_gnu_ld="$lt_cv_prog_gnu_ld"
8868 old_CC="$CC"
8869 old_CFLAGS="$CFLAGS"
8871 # Set sane defaults for various variables
8872 test -z "$CC" && CC=cc
8873 test -z "$LTCC" && LTCC=$CC
8874 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8875 test -z "$LD" && LD=ld
8876 test -z "$ac_objext" && ac_objext=o
8878 for cc_temp in $compiler""; do
8879 case $cc_temp in
8880 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8881 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8882 \-*) ;;
8883 *) break;;
8884 esac
8885 done
8886 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8889 # Only perform the check for file, if the check method requires it
8890 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8891 case $deplibs_check_method in
8892 file_magic*)
8893 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8895 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8896 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8897 $as_echo_n "(cached) " >&6
8898 else
8899 case $MAGIC_CMD in
8900 [\\/*] | ?:[\\/]*)
8901 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8904 lt_save_MAGIC_CMD="$MAGIC_CMD"
8905 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8906 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8907 for ac_dir in $ac_dummy; do
8908 IFS="$lt_save_ifs"
8909 test -z "$ac_dir" && ac_dir=.
8910 if test -f $ac_dir/${ac_tool_prefix}file; then
8911 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8912 if test -n "$file_magic_test_file"; then
8913 case $deplibs_check_method in
8914 "file_magic "*)
8915 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8916 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8917 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8918 $EGREP "$file_magic_regex" > /dev/null; then
8920 else
8921 cat <<_LT_EOF 1>&2
8923 *** Warning: the command libtool uses to detect shared libraries,
8924 *** $file_magic_cmd, produces output that libtool cannot recognize.
8925 *** The result is that libtool may fail to recognize shared libraries
8926 *** as such. This will affect the creation of libtool libraries that
8927 *** depend on shared libraries, but programs linked with such libtool
8928 *** libraries will work regardless of this problem. Nevertheless, you
8929 *** may want to report the problem to your system manager and/or to
8930 *** bug-libtool@gnu.org
8932 _LT_EOF
8933 fi ;;
8934 esac
8936 break
8938 done
8939 IFS="$lt_save_ifs"
8940 MAGIC_CMD="$lt_save_MAGIC_CMD"
8942 esac
8945 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8946 if test -n "$MAGIC_CMD"; then
8947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8948 $as_echo "$MAGIC_CMD" >&6; }
8949 else
8950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8951 $as_echo "no" >&6; }
8958 if test -z "$lt_cv_path_MAGIC_CMD"; then
8959 if test -n "$ac_tool_prefix"; then
8960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8961 $as_echo_n "checking for file... " >&6; }
8962 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8963 $as_echo_n "(cached) " >&6
8964 else
8965 case $MAGIC_CMD in
8966 [\\/*] | ?:[\\/]*)
8967 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8970 lt_save_MAGIC_CMD="$MAGIC_CMD"
8971 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8972 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8973 for ac_dir in $ac_dummy; do
8974 IFS="$lt_save_ifs"
8975 test -z "$ac_dir" && ac_dir=.
8976 if test -f $ac_dir/file; then
8977 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8978 if test -n "$file_magic_test_file"; then
8979 case $deplibs_check_method in
8980 "file_magic "*)
8981 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8982 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8983 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8984 $EGREP "$file_magic_regex" > /dev/null; then
8986 else
8987 cat <<_LT_EOF 1>&2
8989 *** Warning: the command libtool uses to detect shared libraries,
8990 *** $file_magic_cmd, produces output that libtool cannot recognize.
8991 *** The result is that libtool may fail to recognize shared libraries
8992 *** as such. This will affect the creation of libtool libraries that
8993 *** depend on shared libraries, but programs linked with such libtool
8994 *** libraries will work regardless of this problem. Nevertheless, you
8995 *** may want to report the problem to your system manager and/or to
8996 *** bug-libtool@gnu.org
8998 _LT_EOF
8999 fi ;;
9000 esac
9002 break
9004 done
9005 IFS="$lt_save_ifs"
9006 MAGIC_CMD="$lt_save_MAGIC_CMD"
9008 esac
9011 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9012 if test -n "$MAGIC_CMD"; then
9013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9014 $as_echo "$MAGIC_CMD" >&6; }
9015 else
9016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9017 $as_echo "no" >&6; }
9021 else
9022 MAGIC_CMD=:
9028 esac
9030 # Use C for the default configuration in the libtool script
9032 lt_save_CC="$CC"
9033 ac_ext=c
9034 ac_cpp='$CPP $CPPFLAGS'
9035 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9036 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9037 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9040 # Source file extension for C test sources.
9041 ac_ext=c
9043 # Object file extension for compiled C test sources.
9044 objext=o
9045 objext=$objext
9047 # Code to be used in simple compile tests
9048 lt_simple_compile_test_code="int some_variable = 0;"
9050 # Code to be used in simple link tests
9051 lt_simple_link_test_code='int main(){return(0);}'
9059 # If no C compiler was specified, use CC.
9060 LTCC=${LTCC-"$CC"}
9062 # If no C compiler flags were specified, use CFLAGS.
9063 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9065 # Allow CC to be a program name with arguments.
9066 compiler=$CC
9068 # Save the default compiler, since it gets overwritten when the other
9069 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9070 compiler_DEFAULT=$CC
9072 # save warnings/boilerplate of simple test code
9073 ac_outfile=conftest.$ac_objext
9074 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9075 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9076 _lt_compiler_boilerplate=`cat conftest.err`
9077 $RM conftest*
9079 ac_outfile=conftest.$ac_objext
9080 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9081 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9082 _lt_linker_boilerplate=`cat conftest.err`
9083 $RM -r conftest*
9086 ## CAVEAT EMPTOR:
9087 ## There is no encapsulation within the following macros, do not change
9088 ## the running order or otherwise move them around unless you know exactly
9089 ## what you are doing...
9090 if test -n "$compiler"; then
9092 lt_prog_compiler_no_builtin_flag=
9094 if test "$GCC" = yes; then
9095 case $cc_basename in
9096 nvcc*)
9097 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9099 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9100 esac
9102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9103 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9104 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9105 $as_echo_n "(cached) " >&6
9106 else
9107 lt_cv_prog_compiler_rtti_exceptions=no
9108 ac_outfile=conftest.$ac_objext
9109 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9110 lt_compiler_flag="-fno-rtti -fno-exceptions"
9111 # Insert the option either (1) after the last *FLAGS variable, or
9112 # (2) before a word containing "conftest.", or (3) at the end.
9113 # Note that $ac_compile itself does not contain backslashes and begins
9114 # with a dollar sign (not a hyphen), so the echo should work correctly.
9115 # The option is referenced via a variable to avoid confusing sed.
9116 lt_compile=`echo "$ac_compile" | $SED \
9117 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9118 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9119 -e 's:$: $lt_compiler_flag:'`
9120 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9121 (eval "$lt_compile" 2>conftest.err)
9122 ac_status=$?
9123 cat conftest.err >&5
9124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9125 if (exit $ac_status) && test -s "$ac_outfile"; then
9126 # The compiler can only warn and ignore the option if not recognized
9127 # So say no if there are warnings other than the usual output.
9128 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9129 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9130 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9131 lt_cv_prog_compiler_rtti_exceptions=yes
9134 $RM conftest*
9137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9138 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9140 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9141 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9142 else
9153 lt_prog_compiler_wl=
9154 lt_prog_compiler_pic=
9155 lt_prog_compiler_static=
9157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9158 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9160 if test "$GCC" = yes; then
9161 lt_prog_compiler_wl='-Wl,'
9162 lt_prog_compiler_static='-static'
9164 case $host_os in
9165 aix*)
9166 # All AIX code is PIC.
9167 if test "$host_cpu" = ia64; then
9168 # AIX 5 now supports IA64 processor
9169 lt_prog_compiler_static='-Bstatic'
9171 lt_prog_compiler_pic='-fPIC'
9174 amigaos*)
9175 case $host_cpu in
9176 powerpc)
9177 # see comment about AmigaOS4 .so support
9178 lt_prog_compiler_pic='-fPIC'
9180 m68k)
9181 # FIXME: we need at least 68020 code to build shared libraries, but
9182 # adding the `-m68020' flag to GCC prevents building anything better,
9183 # like `-m68040'.
9184 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9186 esac
9189 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9190 # PIC is the default for these OSes.
9193 mingw* | cygwin* | pw32* | os2* | cegcc*)
9194 # This hack is so that the source file can tell whether it is being
9195 # built for inclusion in a dll (and should export symbols for example).
9196 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9197 # (--disable-auto-import) libraries
9198 lt_prog_compiler_pic='-DDLL_EXPORT'
9201 darwin* | rhapsody*)
9202 # PIC is the default on this platform
9203 # Common symbols not allowed in MH_DYLIB files
9204 lt_prog_compiler_pic='-fno-common'
9207 haiku*)
9208 # PIC is the default for Haiku.
9209 # The "-static" flag exists, but is broken.
9210 lt_prog_compiler_static=
9213 hpux*)
9214 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9215 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9216 # sets the default TLS model and affects inlining.
9217 case $host_cpu in
9218 hppa*64*)
9219 # +Z the default
9222 lt_prog_compiler_pic='-fPIC'
9224 esac
9227 interix[3-9]*)
9228 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9229 # Instead, we relocate shared libraries at runtime.
9232 msdosdjgpp*)
9233 # Just because we use GCC doesn't mean we suddenly get shared libraries
9234 # on systems that don't support them.
9235 lt_prog_compiler_can_build_shared=no
9236 enable_shared=no
9239 *nto* | *qnx*)
9240 # QNX uses GNU C++, but need to define -shared option too, otherwise
9241 # it will coredump.
9242 lt_prog_compiler_pic='-fPIC -shared'
9245 sysv4*MP*)
9246 if test -d /usr/nec; then
9247 lt_prog_compiler_pic=-Kconform_pic
9252 lt_prog_compiler_pic='-fPIC'
9254 esac
9256 case $cc_basename in
9257 nvcc*) # Cuda Compiler Driver 2.2
9258 lt_prog_compiler_wl='-Xlinker '
9259 lt_prog_compiler_pic='-Xcompiler -fPIC'
9261 esac
9262 else
9263 # PORTME Check for flag to pass linker flags through the system compiler.
9264 case $host_os in
9265 aix*)
9266 lt_prog_compiler_wl='-Wl,'
9267 if test "$host_cpu" = ia64; then
9268 # AIX 5 now supports IA64 processor
9269 lt_prog_compiler_static='-Bstatic'
9270 else
9271 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9275 mingw* | cygwin* | pw32* | os2* | cegcc*)
9276 # This hack is so that the source file can tell whether it is being
9277 # built for inclusion in a dll (and should export symbols for example).
9278 lt_prog_compiler_pic='-DDLL_EXPORT'
9281 hpux9* | hpux10* | hpux11*)
9282 lt_prog_compiler_wl='-Wl,'
9283 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9284 # not for PA HP-UX.
9285 case $host_cpu in
9286 hppa*64*|ia64*)
9287 # +Z the default
9290 lt_prog_compiler_pic='+Z'
9292 esac
9293 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9294 lt_prog_compiler_static='${wl}-a ${wl}archive'
9297 irix5* | irix6* | nonstopux*)
9298 lt_prog_compiler_wl='-Wl,'
9299 # PIC (with -KPIC) is the default.
9300 lt_prog_compiler_static='-non_shared'
9303 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9304 case $cc_basename in
9305 # old Intel for x86_64 which still supported -KPIC.
9306 ecc*)
9307 lt_prog_compiler_wl='-Wl,'
9308 lt_prog_compiler_pic='-KPIC'
9309 lt_prog_compiler_static='-static'
9311 # icc used to be incompatible with GCC.
9312 # ICC 10 doesn't accept -KPIC any more.
9313 icc* | ifort*)
9314 lt_prog_compiler_wl='-Wl,'
9315 lt_prog_compiler_pic='-fPIC'
9316 lt_prog_compiler_static='-static'
9318 # Lahey Fortran 8.1.
9319 lf95*)
9320 lt_prog_compiler_wl='-Wl,'
9321 lt_prog_compiler_pic='--shared'
9322 lt_prog_compiler_static='--static'
9324 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9325 # Portland Group compilers (*not* the Pentium gcc compiler,
9326 # which looks to be a dead project)
9327 lt_prog_compiler_wl='-Wl,'
9328 lt_prog_compiler_pic='-fpic'
9329 lt_prog_compiler_static='-Bstatic'
9331 ccc*)
9332 lt_prog_compiler_wl='-Wl,'
9333 # All Alpha code is PIC.
9334 lt_prog_compiler_static='-non_shared'
9336 xl* | bgxl* | bgf* | mpixl*)
9337 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9338 lt_prog_compiler_wl='-Wl,'
9339 lt_prog_compiler_pic='-qpic'
9340 lt_prog_compiler_static='-qstaticlink'
9343 case `$CC -V 2>&1 | sed 5q` in
9344 *Sun\ F* | *Sun*Fortran*)
9345 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9346 lt_prog_compiler_pic='-KPIC'
9347 lt_prog_compiler_static='-Bstatic'
9348 lt_prog_compiler_wl=''
9350 *Sun\ C*)
9351 # Sun C 5.9
9352 lt_prog_compiler_pic='-KPIC'
9353 lt_prog_compiler_static='-Bstatic'
9354 lt_prog_compiler_wl='-Wl,'
9356 esac
9358 esac
9361 newsos6)
9362 lt_prog_compiler_pic='-KPIC'
9363 lt_prog_compiler_static='-Bstatic'
9366 *nto* | *qnx*)
9367 # QNX uses GNU C++, but need to define -shared option too, otherwise
9368 # it will coredump.
9369 lt_prog_compiler_pic='-fPIC -shared'
9372 osf3* | osf4* | osf5*)
9373 lt_prog_compiler_wl='-Wl,'
9374 # All OSF/1 code is PIC.
9375 lt_prog_compiler_static='-non_shared'
9378 rdos*)
9379 lt_prog_compiler_static='-non_shared'
9382 solaris*)
9383 lt_prog_compiler_pic='-KPIC'
9384 lt_prog_compiler_static='-Bstatic'
9385 case $cc_basename in
9386 f77* | f90* | f95*)
9387 lt_prog_compiler_wl='-Qoption ld ';;
9389 lt_prog_compiler_wl='-Wl,';;
9390 esac
9393 sunos4*)
9394 lt_prog_compiler_wl='-Qoption ld '
9395 lt_prog_compiler_pic='-PIC'
9396 lt_prog_compiler_static='-Bstatic'
9399 sysv4 | sysv4.2uw2* | sysv4.3*)
9400 lt_prog_compiler_wl='-Wl,'
9401 lt_prog_compiler_pic='-KPIC'
9402 lt_prog_compiler_static='-Bstatic'
9405 sysv4*MP*)
9406 if test -d /usr/nec ;then
9407 lt_prog_compiler_pic='-Kconform_pic'
9408 lt_prog_compiler_static='-Bstatic'
9412 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9413 lt_prog_compiler_wl='-Wl,'
9414 lt_prog_compiler_pic='-KPIC'
9415 lt_prog_compiler_static='-Bstatic'
9418 unicos*)
9419 lt_prog_compiler_wl='-Wl,'
9420 lt_prog_compiler_can_build_shared=no
9423 uts4*)
9424 lt_prog_compiler_pic='-pic'
9425 lt_prog_compiler_static='-Bstatic'
9429 lt_prog_compiler_can_build_shared=no
9431 esac
9434 case $host_os in
9435 # For platforms which do not support PIC, -DPIC is meaningless:
9436 *djgpp*)
9437 lt_prog_compiler_pic=
9440 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9442 esac
9443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9444 $as_echo "$lt_prog_compiler_pic" >&6; }
9452 # Check to make sure the PIC flag actually works.
9454 if test -n "$lt_prog_compiler_pic"; then
9455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9456 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9457 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9458 $as_echo_n "(cached) " >&6
9459 else
9460 lt_cv_prog_compiler_pic_works=no
9461 ac_outfile=conftest.$ac_objext
9462 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9463 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9464 # Insert the option either (1) after the last *FLAGS variable, or
9465 # (2) before a word containing "conftest.", or (3) at the end.
9466 # Note that $ac_compile itself does not contain backslashes and begins
9467 # with a dollar sign (not a hyphen), so the echo should work correctly.
9468 # The option is referenced via a variable to avoid confusing sed.
9469 lt_compile=`echo "$ac_compile" | $SED \
9470 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9471 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9472 -e 's:$: $lt_compiler_flag:'`
9473 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9474 (eval "$lt_compile" 2>conftest.err)
9475 ac_status=$?
9476 cat conftest.err >&5
9477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9478 if (exit $ac_status) && test -s "$ac_outfile"; then
9479 # The compiler can only warn and ignore the option if not recognized
9480 # So say no if there are warnings other than the usual output.
9481 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9482 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9483 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9484 lt_cv_prog_compiler_pic_works=yes
9487 $RM conftest*
9490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9491 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9493 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9494 case $lt_prog_compiler_pic in
9495 "" | " "*) ;;
9496 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9497 esac
9498 else
9499 lt_prog_compiler_pic=
9500 lt_prog_compiler_can_build_shared=no
9511 # Check to make sure the static flag actually works.
9513 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9515 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9516 if ${lt_cv_prog_compiler_static_works+:} false; then :
9517 $as_echo_n "(cached) " >&6
9518 else
9519 lt_cv_prog_compiler_static_works=no
9520 save_LDFLAGS="$LDFLAGS"
9521 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9522 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9523 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9524 # The linker can only warn and ignore the option if not recognized
9525 # So say no if there are warnings
9526 if test -s conftest.err; then
9527 # Append any errors to the config.log.
9528 cat conftest.err 1>&5
9529 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9530 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9531 if diff conftest.exp conftest.er2 >/dev/null; then
9532 lt_cv_prog_compiler_static_works=yes
9534 else
9535 lt_cv_prog_compiler_static_works=yes
9538 $RM -r conftest*
9539 LDFLAGS="$save_LDFLAGS"
9542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9543 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9545 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9547 else
9548 lt_prog_compiler_static=
9557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9558 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9559 if ${lt_cv_prog_compiler_c_o+:} false; then :
9560 $as_echo_n "(cached) " >&6
9561 else
9562 lt_cv_prog_compiler_c_o=no
9563 $RM -r conftest 2>/dev/null
9564 mkdir conftest
9565 cd conftest
9566 mkdir out
9567 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9569 lt_compiler_flag="-o out/conftest2.$ac_objext"
9570 # Insert the option either (1) after the last *FLAGS variable, or
9571 # (2) before a word containing "conftest.", or (3) at the end.
9572 # Note that $ac_compile itself does not contain backslashes and begins
9573 # with a dollar sign (not a hyphen), so the echo should work correctly.
9574 lt_compile=`echo "$ac_compile" | $SED \
9575 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9576 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9577 -e 's:$: $lt_compiler_flag:'`
9578 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9579 (eval "$lt_compile" 2>out/conftest.err)
9580 ac_status=$?
9581 cat out/conftest.err >&5
9582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9583 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9584 then
9585 # The compiler can only warn and ignore the option if not recognized
9586 # So say no if there are warnings
9587 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9588 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9589 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9590 lt_cv_prog_compiler_c_o=yes
9593 chmod u+w . 2>&5
9594 $RM conftest*
9595 # SGI C++ compiler will create directory out/ii_files/ for
9596 # template instantiation
9597 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9598 $RM out/* && rmdir out
9599 cd ..
9600 $RM -r conftest
9601 $RM conftest*
9604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9605 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9613 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9614 if ${lt_cv_prog_compiler_c_o+:} false; then :
9615 $as_echo_n "(cached) " >&6
9616 else
9617 lt_cv_prog_compiler_c_o=no
9618 $RM -r conftest 2>/dev/null
9619 mkdir conftest
9620 cd conftest
9621 mkdir out
9622 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9624 lt_compiler_flag="-o out/conftest2.$ac_objext"
9625 # Insert the option either (1) after the last *FLAGS variable, or
9626 # (2) before a word containing "conftest.", or (3) at the end.
9627 # Note that $ac_compile itself does not contain backslashes and begins
9628 # with a dollar sign (not a hyphen), so the echo should work correctly.
9629 lt_compile=`echo "$ac_compile" | $SED \
9630 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9631 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9632 -e 's:$: $lt_compiler_flag:'`
9633 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9634 (eval "$lt_compile" 2>out/conftest.err)
9635 ac_status=$?
9636 cat out/conftest.err >&5
9637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9638 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9639 then
9640 # The compiler can only warn and ignore the option if not recognized
9641 # So say no if there are warnings
9642 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9643 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9644 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9645 lt_cv_prog_compiler_c_o=yes
9648 chmod u+w . 2>&5
9649 $RM conftest*
9650 # SGI C++ compiler will create directory out/ii_files/ for
9651 # template instantiation
9652 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9653 $RM out/* && rmdir out
9654 cd ..
9655 $RM -r conftest
9656 $RM conftest*
9659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9660 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9665 hard_links="nottested"
9666 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9667 # do not overwrite the value of need_locks provided by the user
9668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9669 $as_echo_n "checking if we can lock with hard links... " >&6; }
9670 hard_links=yes
9671 $RM conftest*
9672 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9673 touch conftest.a
9674 ln conftest.a conftest.b 2>&5 || hard_links=no
9675 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9677 $as_echo "$hard_links" >&6; }
9678 if test "$hard_links" = no; then
9679 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9680 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9681 need_locks=warn
9683 else
9684 need_locks=no
9692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9693 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9695 runpath_var=
9696 allow_undefined_flag=
9697 always_export_symbols=no
9698 archive_cmds=
9699 archive_expsym_cmds=
9700 compiler_needs_object=no
9701 enable_shared_with_static_runtimes=no
9702 export_dynamic_flag_spec=
9703 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9704 hardcode_automatic=no
9705 hardcode_direct=no
9706 hardcode_direct_absolute=no
9707 hardcode_libdir_flag_spec=
9708 hardcode_libdir_flag_spec_ld=
9709 hardcode_libdir_separator=
9710 hardcode_minus_L=no
9711 hardcode_shlibpath_var=unsupported
9712 inherit_rpath=no
9713 link_all_deplibs=unknown
9714 module_cmds=
9715 module_expsym_cmds=
9716 old_archive_from_new_cmds=
9717 old_archive_from_expsyms_cmds=
9718 thread_safe_flag_spec=
9719 whole_archive_flag_spec=
9720 # include_expsyms should be a list of space-separated symbols to be *always*
9721 # included in the symbol list
9722 include_expsyms=
9723 # exclude_expsyms can be an extended regexp of symbols to exclude
9724 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9725 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9726 # as well as any symbol that contains `d'.
9727 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9728 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9729 # platforms (ab)use it in PIC code, but their linkers get confused if
9730 # the symbol is explicitly referenced. Since portable code cannot
9731 # rely on this symbol name, it's probably fine to never include it in
9732 # preloaded symbol tables.
9733 # Exclude shared library initialization/finalization symbols.
9734 extract_expsyms_cmds=
9736 case $host_os in
9737 cygwin* | mingw* | pw32* | cegcc*)
9738 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9739 # When not using gcc, we currently assume that we are using
9740 # Microsoft Visual C++.
9741 if test "$GCC" != yes; then
9742 with_gnu_ld=no
9745 interix*)
9746 # we just hope/assume this is gcc and not c89 (= MSVC++)
9747 with_gnu_ld=yes
9749 openbsd*)
9750 with_gnu_ld=no
9752 esac
9754 ld_shlibs=yes
9756 # On some targets, GNU ld is compatible enough with the native linker
9757 # that we're better off using the native interface for both.
9758 lt_use_gnu_ld_interface=no
9759 if test "$with_gnu_ld" = yes; then
9760 case $host_os in
9761 aix*)
9762 # The AIX port of GNU ld has always aspired to compatibility
9763 # with the native linker. However, as the warning in the GNU ld
9764 # block says, versions before 2.19.5* couldn't really create working
9765 # shared libraries, regardless of the interface used.
9766 case `$LD -v 2>&1` in
9767 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9768 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9769 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9771 lt_use_gnu_ld_interface=yes
9773 esac
9776 lt_use_gnu_ld_interface=yes
9778 esac
9781 if test "$lt_use_gnu_ld_interface" = yes; then
9782 # If archive_cmds runs LD, not CC, wlarc should be empty
9783 wlarc='${wl}'
9785 # Set some defaults for GNU ld with shared library support. These
9786 # are reset later if shared libraries are not supported. Putting them
9787 # here allows them to be overridden if necessary.
9788 runpath_var=LD_RUN_PATH
9789 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9790 export_dynamic_flag_spec='${wl}--export-dynamic'
9791 # ancient GNU ld didn't support --whole-archive et. al.
9792 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9793 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9794 else
9795 whole_archive_flag_spec=
9797 supports_anon_versioning=no
9798 case `$LD -v 2>&1` in
9799 *GNU\ gold*) supports_anon_versioning=yes ;;
9800 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9801 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9802 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9803 *\ 2.11.*) ;; # other 2.11 versions
9804 *) supports_anon_versioning=yes ;;
9805 esac
9807 # See if GNU ld supports shared libraries.
9808 case $host_os in
9809 aix[3-9]*)
9810 # On AIX/PPC, the GNU linker is very broken
9811 if test "$host_cpu" != ia64; then
9812 ld_shlibs=no
9813 cat <<_LT_EOF 1>&2
9815 *** Warning: the GNU linker, at least up to release 2.19, is reported
9816 *** to be unable to reliably create shared libraries on AIX.
9817 *** Therefore, libtool is disabling shared libraries support. If you
9818 *** really care for shared libraries, you may want to install binutils
9819 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9820 *** You will then need to restart the configuration process.
9822 _LT_EOF
9826 amigaos*)
9827 case $host_cpu in
9828 powerpc)
9829 # see comment about AmigaOS4 .so support
9830 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9831 archive_expsym_cmds=''
9833 m68k)
9834 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)'
9835 hardcode_libdir_flag_spec='-L$libdir'
9836 hardcode_minus_L=yes
9838 esac
9841 beos*)
9842 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9843 allow_undefined_flag=unsupported
9844 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9845 # support --undefined. This deserves some investigation. FIXME
9846 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9847 else
9848 ld_shlibs=no
9852 cygwin* | mingw* | pw32* | cegcc*)
9853 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9854 # as there is no search path for DLLs.
9855 hardcode_libdir_flag_spec='-L$libdir'
9856 export_dynamic_flag_spec='${wl}--export-all-symbols'
9857 allow_undefined_flag=unsupported
9858 always_export_symbols=no
9859 enable_shared_with_static_runtimes=yes
9860 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9862 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9863 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9864 # If the export-symbols file already is a .def file (1st line
9865 # is EXPORTS), use it as is; otherwise, prepend...
9866 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9867 cp $export_symbols $output_objdir/$soname.def;
9868 else
9869 echo EXPORTS > $output_objdir/$soname.def;
9870 cat $export_symbols >> $output_objdir/$soname.def;
9872 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9873 else
9874 ld_shlibs=no
9878 haiku*)
9879 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9880 link_all_deplibs=yes
9883 interix[3-9]*)
9884 hardcode_direct=no
9885 hardcode_shlibpath_var=no
9886 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9887 export_dynamic_flag_spec='${wl}-E'
9888 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9889 # Instead, shared libraries are loaded at an image base (0x10000000 by
9890 # default) and relocated if they conflict, which is a slow very memory
9891 # consuming and fragmenting process. To avoid this, we pick a random,
9892 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9893 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9894 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9895 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'
9898 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
9899 tmp_diet=no
9900 if test "$host_os" = linux-dietlibc; then
9901 case $cc_basename in
9902 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9903 esac
9905 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9906 && test "$tmp_diet" = no
9907 then
9908 tmp_addflag=' $pic_flag'
9909 tmp_sharedflag='-shared'
9910 case $cc_basename,$host_cpu in
9911 pgcc*) # Portland Group C compiler
9912 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'
9913 tmp_addflag=' $pic_flag'
9915 pgf77* | pgf90* | pgf95* | pgfortran*)
9916 # Portland Group f77 and f90 compilers
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 -Mnomain' ;;
9919 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9920 tmp_addflag=' -i_dynamic' ;;
9921 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9922 tmp_addflag=' -i_dynamic -nofor_main' ;;
9923 ifc* | ifort*) # Intel Fortran compiler
9924 tmp_addflag=' -nofor_main' ;;
9925 lf95*) # Lahey Fortran 8.1
9926 whole_archive_flag_spec=
9927 tmp_sharedflag='--shared' ;;
9928 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9929 tmp_sharedflag='-qmkshrobj'
9930 tmp_addflag= ;;
9931 nvcc*) # Cuda Compiler Driver 2.2
9932 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'
9933 compiler_needs_object=yes
9935 esac
9936 case `$CC -V 2>&1 | sed 5q` in
9937 *Sun\ C*) # Sun C 5.9
9938 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'
9939 compiler_needs_object=yes
9940 tmp_sharedflag='-G' ;;
9941 *Sun\ F*) # Sun Fortran 8.3
9942 tmp_sharedflag='-G' ;;
9943 esac
9944 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9946 if test "x$supports_anon_versioning" = xyes; then
9947 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9948 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9949 echo "local: *; };" >> $output_objdir/$libname.ver~
9950 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9953 case $cc_basename in
9954 xlf* | bgf* | bgxlf* | mpixlf*)
9955 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9956 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9957 hardcode_libdir_flag_spec=
9958 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9959 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9960 if test "x$supports_anon_versioning" = xyes; then
9961 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9962 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9963 echo "local: *; };" >> $output_objdir/$libname.ver~
9964 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9967 esac
9968 else
9969 ld_shlibs=no
9973 netbsd*)
9974 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9975 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9976 wlarc=
9977 else
9978 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9979 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9983 solaris*)
9984 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9985 ld_shlibs=no
9986 cat <<_LT_EOF 1>&2
9988 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9989 *** create shared libraries on Solaris systems. Therefore, libtool
9990 *** is disabling shared libraries support. We urge you to upgrade GNU
9991 *** binutils to release 2.9.1 or newer. Another option is to modify
9992 *** your PATH or compiler configuration so that the native linker is
9993 *** used, and then restart.
9995 _LT_EOF
9996 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9997 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9998 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9999 else
10000 ld_shlibs=no
10004 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10005 case `$LD -v 2>&1` in
10006 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10007 ld_shlibs=no
10008 cat <<_LT_EOF 1>&2
10010 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10011 *** reliably create shared libraries on SCO systems. Therefore, libtool
10012 *** is disabling shared libraries support. We urge you to upgrade GNU
10013 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10014 *** your PATH or compiler configuration so that the native linker is
10015 *** used, and then restart.
10017 _LT_EOF
10020 # For security reasons, it is highly recommended that you always
10021 # use absolute paths for naming shared libraries, and exclude the
10022 # DT_RUNPATH tag from executables and libraries. But doing so
10023 # requires that you compile everything twice, which is a pain.
10024 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10025 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10026 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10027 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10028 else
10029 ld_shlibs=no
10032 esac
10035 sunos4*)
10036 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10037 wlarc=
10038 hardcode_direct=yes
10039 hardcode_shlibpath_var=no
10043 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10044 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10045 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10046 else
10047 ld_shlibs=no
10050 esac
10052 if test "$ld_shlibs" = no; then
10053 runpath_var=
10054 hardcode_libdir_flag_spec=
10055 export_dynamic_flag_spec=
10056 whole_archive_flag_spec=
10058 else
10059 # PORTME fill in a description of your system's linker (not GNU ld)
10060 case $host_os in
10061 aix3*)
10062 allow_undefined_flag=unsupported
10063 always_export_symbols=yes
10064 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'
10065 # Note: this linker hardcodes the directories in LIBPATH if there
10066 # are no directories specified by -L.
10067 hardcode_minus_L=yes
10068 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10069 # Neither direct hardcoding nor static linking is supported with a
10070 # broken collect2.
10071 hardcode_direct=unsupported
10075 aix[4-9]*)
10076 if test "$host_cpu" = ia64; then
10077 # On IA64, the linker does run time linking by default, so we don't
10078 # have to do anything special.
10079 aix_use_runtimelinking=no
10080 exp_sym_flag='-Bexport'
10081 no_entry_flag=""
10082 else
10083 # If we're using GNU nm, then we don't want the "-C" option.
10084 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10085 # Also, AIX nm treats weak defined symbols like other global
10086 # defined symbols, whereas GNU nm marks them as "W".
10087 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10088 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'
10089 else
10090 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'
10092 aix_use_runtimelinking=no
10094 # Test if we are trying to use run time linking or normal
10095 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10096 # need to do runtime linking.
10097 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10098 for ld_flag in $LDFLAGS; do
10099 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10100 aix_use_runtimelinking=yes
10101 break
10103 done
10105 esac
10107 exp_sym_flag='-bexport'
10108 no_entry_flag='-bnoentry'
10111 # When large executables or shared objects are built, AIX ld can
10112 # have problems creating the table of contents. If linking a library
10113 # or program results in "error TOC overflow" add -mminimal-toc to
10114 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10115 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10117 archive_cmds=''
10118 hardcode_direct=yes
10119 hardcode_direct_absolute=yes
10120 hardcode_libdir_separator=':'
10121 link_all_deplibs=yes
10122 file_list_spec='${wl}-f,'
10124 if test "$GCC" = yes; then
10125 case $host_os in aix4.[012]|aix4.[012].*)
10126 # We only want to do this on AIX 4.2 and lower, the check
10127 # below for broken collect2 doesn't work under 4.3+
10128 collect2name=`${CC} -print-prog-name=collect2`
10129 if test -f "$collect2name" &&
10130 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10131 then
10132 # We have reworked collect2
10134 else
10135 # We have old collect2
10136 hardcode_direct=unsupported
10137 # It fails to find uninstalled libraries when the uninstalled
10138 # path is not listed in the libpath. Setting hardcode_minus_L
10139 # to unsupported forces relinking
10140 hardcode_minus_L=yes
10141 hardcode_libdir_flag_spec='-L$libdir'
10142 hardcode_libdir_separator=
10145 esac
10146 shared_flag='-shared'
10147 if test "$aix_use_runtimelinking" = yes; then
10148 shared_flag="$shared_flag "'${wl}-G'
10150 else
10151 # not using gcc
10152 if test "$host_cpu" = ia64; then
10153 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10154 # chokes on -Wl,-G. The following line is correct:
10155 shared_flag='-G'
10156 else
10157 if test "$aix_use_runtimelinking" = yes; then
10158 shared_flag='${wl}-G'
10159 else
10160 shared_flag='${wl}-bM:SRE'
10165 export_dynamic_flag_spec='${wl}-bexpall'
10166 # It seems that -bexpall does not export symbols beginning with
10167 # underscore (_), so it is better to generate a list of symbols to export.
10168 always_export_symbols=yes
10169 if test "$aix_use_runtimelinking" = yes; then
10170 # Warning - without using the other runtime loading flags (-brtl),
10171 # -berok will link without error, but may produce a broken library.
10172 allow_undefined_flag='-berok'
10173 # Determine the default libpath from the value encoded in an
10174 # empty executable.
10175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10176 /* end confdefs.h. */
10179 main ()
10183 return 0;
10185 _ACEOF
10186 if ac_fn_c_try_link "$LINENO"; then :
10188 lt_aix_libpath_sed='
10189 /Import File Strings/,/^$/ {
10190 /^0/ {
10191 s/^0 *\(.*\)$/\1/
10195 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10196 # Check for a 64-bit object if we didn't find anything.
10197 if test -z "$aix_libpath"; then
10198 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10201 rm -f core conftest.err conftest.$ac_objext \
10202 conftest$ac_exeext conftest.$ac_ext
10203 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10205 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10206 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"
10207 else
10208 if test "$host_cpu" = ia64; then
10209 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10210 allow_undefined_flag="-z nodefs"
10211 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"
10212 else
10213 # Determine the default libpath from the value encoded in an
10214 # empty executable.
10215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10216 /* end confdefs.h. */
10219 main ()
10223 return 0;
10225 _ACEOF
10226 if ac_fn_c_try_link "$LINENO"; then :
10228 lt_aix_libpath_sed='
10229 /Import File Strings/,/^$/ {
10230 /^0/ {
10231 s/^0 *\(.*\)$/\1/
10235 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10236 # Check for a 64-bit object if we didn't find anything.
10237 if test -z "$aix_libpath"; then
10238 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10241 rm -f core conftest.err conftest.$ac_objext \
10242 conftest$ac_exeext conftest.$ac_ext
10243 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10245 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10246 # Warning - without using the other run time loading flags,
10247 # -berok will link without error, but may produce a broken library.
10248 no_undefined_flag=' ${wl}-bernotok'
10249 allow_undefined_flag=' ${wl}-berok'
10250 if test "$with_gnu_ld" = yes; then
10251 # We only use this code for GNU lds that support --whole-archive.
10252 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10253 else
10254 # Exported symbols can be pulled into shared objects from archives
10255 whole_archive_flag_spec='$convenience'
10257 archive_cmds_need_lc=yes
10258 # This is similar to how AIX traditionally builds its shared libraries.
10259 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'
10264 amigaos*)
10265 case $host_cpu in
10266 powerpc)
10267 # see comment about AmigaOS4 .so support
10268 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10269 archive_expsym_cmds=''
10271 m68k)
10272 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)'
10273 hardcode_libdir_flag_spec='-L$libdir'
10274 hardcode_minus_L=yes
10276 esac
10279 bsdi[45]*)
10280 export_dynamic_flag_spec=-rdynamic
10283 cygwin* | mingw* | pw32* | cegcc*)
10284 # When not using gcc, we currently assume that we are using
10285 # Microsoft Visual C++.
10286 # hardcode_libdir_flag_spec is actually meaningless, as there is
10287 # no search path for DLLs.
10288 hardcode_libdir_flag_spec=' '
10289 allow_undefined_flag=unsupported
10290 # Tell ltmain to make .lib files, not .a files.
10291 libext=lib
10292 # Tell ltmain to make .dll files, not .so files.
10293 shrext_cmds=".dll"
10294 # FIXME: Setting linknames here is a bad hack.
10295 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10296 # The linker will automatically build a .lib file if we build a DLL.
10297 old_archive_from_new_cmds='true'
10298 # FIXME: Should let the user specify the lib program.
10299 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10300 fix_srcfile_path='`cygpath -w "$srcfile"`'
10301 enable_shared_with_static_runtimes=yes
10304 darwin* | rhapsody*)
10307 archive_cmds_need_lc=no
10308 hardcode_direct=no
10309 hardcode_automatic=yes
10310 hardcode_shlibpath_var=unsupported
10311 if test "$lt_cv_ld_force_load" = "yes"; then
10312 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\"`'
10313 else
10314 whole_archive_flag_spec=''
10316 link_all_deplibs=yes
10317 allow_undefined_flag="$_lt_dar_allow_undefined"
10318 case $cc_basename in
10319 ifort*) _lt_dar_can_shared=yes ;;
10320 *) _lt_dar_can_shared=$GCC ;;
10321 esac
10322 if test "$_lt_dar_can_shared" = "yes"; then
10323 output_verbose_link_cmd=func_echo_all
10324 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10325 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10326 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}"
10327 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}"
10329 else
10330 ld_shlibs=no
10335 dgux*)
10336 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10337 hardcode_libdir_flag_spec='-L$libdir'
10338 hardcode_shlibpath_var=no
10341 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10342 # support. Future versions do this automatically, but an explicit c++rt0.o
10343 # does not break anything, and helps significantly (at the cost of a little
10344 # extra space).
10345 freebsd2.2*)
10346 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10347 hardcode_libdir_flag_spec='-R$libdir'
10348 hardcode_direct=yes
10349 hardcode_shlibpath_var=no
10352 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10353 freebsd2.*)
10354 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10355 hardcode_direct=yes
10356 hardcode_minus_L=yes
10357 hardcode_shlibpath_var=no
10360 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10361 freebsd* | dragonfly*)
10362 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10363 hardcode_libdir_flag_spec='-R$libdir'
10364 hardcode_direct=yes
10365 hardcode_shlibpath_var=no
10368 hpux9*)
10369 if test "$GCC" = yes; then
10370 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'
10371 else
10372 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'
10374 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10375 hardcode_libdir_separator=:
10376 hardcode_direct=yes
10378 # hardcode_minus_L: Not really in the search PATH,
10379 # but as the default location of the library.
10380 hardcode_minus_L=yes
10381 export_dynamic_flag_spec='${wl}-E'
10384 hpux10*)
10385 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10386 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10387 else
10388 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10390 if test "$with_gnu_ld" = no; then
10391 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10392 hardcode_libdir_flag_spec_ld='+b $libdir'
10393 hardcode_libdir_separator=:
10394 hardcode_direct=yes
10395 hardcode_direct_absolute=yes
10396 export_dynamic_flag_spec='${wl}-E'
10397 # hardcode_minus_L: Not really in the search PATH,
10398 # but as the default location of the library.
10399 hardcode_minus_L=yes
10403 hpux11*)
10404 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10405 case $host_cpu in
10406 hppa*64*)
10407 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10409 ia64*)
10410 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10413 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10415 esac
10416 else
10417 case $host_cpu in
10418 hppa*64*)
10419 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10421 ia64*)
10422 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10426 # Older versions of the 11.00 compiler do not understand -b yet
10427 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10429 $as_echo_n "checking if $CC understands -b... " >&6; }
10430 if ${lt_cv_prog_compiler__b+:} false; then :
10431 $as_echo_n "(cached) " >&6
10432 else
10433 lt_cv_prog_compiler__b=no
10434 save_LDFLAGS="$LDFLAGS"
10435 LDFLAGS="$LDFLAGS -b"
10436 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10437 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10438 # The linker can only warn and ignore the option if not recognized
10439 # So say no if there are warnings
10440 if test -s conftest.err; then
10441 # Append any errors to the config.log.
10442 cat conftest.err 1>&5
10443 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10444 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10445 if diff conftest.exp conftest.er2 >/dev/null; then
10446 lt_cv_prog_compiler__b=yes
10448 else
10449 lt_cv_prog_compiler__b=yes
10452 $RM -r conftest*
10453 LDFLAGS="$save_LDFLAGS"
10456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10457 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10459 if test x"$lt_cv_prog_compiler__b" = xyes; then
10460 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10461 else
10462 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10466 esac
10468 if test "$with_gnu_ld" = no; then
10469 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10470 hardcode_libdir_separator=:
10472 case $host_cpu in
10473 hppa*64*|ia64*)
10474 hardcode_direct=no
10475 hardcode_shlibpath_var=no
10478 hardcode_direct=yes
10479 hardcode_direct_absolute=yes
10480 export_dynamic_flag_spec='${wl}-E'
10482 # hardcode_minus_L: Not really in the search PATH,
10483 # but as the default location of the library.
10484 hardcode_minus_L=yes
10486 esac
10490 irix5* | irix6* | nonstopux*)
10491 if test "$GCC" = yes; then
10492 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'
10493 # Try to use the -exported_symbol ld option, if it does not
10494 # work, assume that -exports_file does not work either and
10495 # implicitly export all symbols.
10496 save_LDFLAGS="$LDFLAGS"
10497 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10499 /* end confdefs.h. */
10500 int foo(void) {}
10501 _ACEOF
10502 if ac_fn_c_try_link "$LINENO"; then :
10503 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'
10506 rm -f core conftest.err conftest.$ac_objext \
10507 conftest$ac_exeext conftest.$ac_ext
10508 LDFLAGS="$save_LDFLAGS"
10509 else
10510 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'
10511 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'
10513 archive_cmds_need_lc='no'
10514 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10515 hardcode_libdir_separator=:
10516 inherit_rpath=yes
10517 link_all_deplibs=yes
10520 netbsd*)
10521 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10522 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10523 else
10524 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10526 hardcode_libdir_flag_spec='-R$libdir'
10527 hardcode_direct=yes
10528 hardcode_shlibpath_var=no
10531 newsos6)
10532 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10533 hardcode_direct=yes
10534 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10535 hardcode_libdir_separator=:
10536 hardcode_shlibpath_var=no
10539 *nto* | *qnx*)
10542 openbsd*)
10543 if test -f /usr/libexec/ld.so; then
10544 hardcode_direct=yes
10545 hardcode_shlibpath_var=no
10546 hardcode_direct_absolute=yes
10547 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10548 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10549 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10550 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10551 export_dynamic_flag_spec='${wl}-E'
10552 else
10553 case $host_os in
10554 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10555 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10556 hardcode_libdir_flag_spec='-R$libdir'
10559 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10560 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10562 esac
10564 else
10565 ld_shlibs=no
10569 os2*)
10570 hardcode_libdir_flag_spec='-L$libdir'
10571 hardcode_minus_L=yes
10572 allow_undefined_flag=unsupported
10573 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'
10574 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10577 osf3*)
10578 if test "$GCC" = yes; then
10579 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10580 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'
10581 else
10582 allow_undefined_flag=' -expect_unresolved \*'
10583 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'
10585 archive_cmds_need_lc='no'
10586 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10587 hardcode_libdir_separator=:
10590 osf4* | osf5*) # as osf3* with the addition of -msym flag
10591 if test "$GCC" = yes; then
10592 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10593 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'
10594 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10595 else
10596 allow_undefined_flag=' -expect_unresolved \*'
10597 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'
10598 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~
10599 $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'
10601 # Both c and cxx compiler support -rpath directly
10602 hardcode_libdir_flag_spec='-rpath $libdir'
10604 archive_cmds_need_lc='no'
10605 hardcode_libdir_separator=:
10608 solaris*)
10609 no_undefined_flag=' -z defs'
10610 if test "$GCC" = yes; then
10611 wlarc='${wl}'
10612 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10613 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10614 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10615 else
10616 case `$CC -V 2>&1` in
10617 *"Compilers 5.0"*)
10618 wlarc=''
10619 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10620 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10621 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10624 wlarc='${wl}'
10625 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10626 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10627 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10629 esac
10631 hardcode_libdir_flag_spec='-R$libdir'
10632 hardcode_shlibpath_var=no
10633 case $host_os in
10634 solaris2.[0-5] | solaris2.[0-5].*) ;;
10636 # The compiler driver will combine and reorder linker options,
10637 # but understands `-z linker_flag'. GCC discards it without `$wl',
10638 # but is careful enough not to reorder.
10639 # Supported since Solaris 2.6 (maybe 2.5.1?)
10640 if test "$GCC" = yes; then
10641 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10642 else
10643 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10646 esac
10647 link_all_deplibs=yes
10650 sunos4*)
10651 if test "x$host_vendor" = xsequent; then
10652 # Use $CC to link under sequent, because it throws in some extra .o
10653 # files that make .init and .fini sections work.
10654 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10655 else
10656 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10658 hardcode_libdir_flag_spec='-L$libdir'
10659 hardcode_direct=yes
10660 hardcode_minus_L=yes
10661 hardcode_shlibpath_var=no
10664 sysv4)
10665 case $host_vendor in
10666 sni)
10667 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10668 hardcode_direct=yes # is this really true???
10670 siemens)
10671 ## LD is ld it makes a PLAMLIB
10672 ## CC just makes a GrossModule.
10673 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10674 reload_cmds='$CC -r -o $output$reload_objs'
10675 hardcode_direct=no
10677 motorola)
10678 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10679 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10681 esac
10682 runpath_var='LD_RUN_PATH'
10683 hardcode_shlibpath_var=no
10686 sysv4.3*)
10687 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10688 hardcode_shlibpath_var=no
10689 export_dynamic_flag_spec='-Bexport'
10692 sysv4*MP*)
10693 if test -d /usr/nec; then
10694 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10695 hardcode_shlibpath_var=no
10696 runpath_var=LD_RUN_PATH
10697 hardcode_runpath_var=yes
10698 ld_shlibs=yes
10702 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10703 no_undefined_flag='${wl}-z,text'
10704 archive_cmds_need_lc=no
10705 hardcode_shlibpath_var=no
10706 runpath_var='LD_RUN_PATH'
10708 if test "$GCC" = yes; then
10709 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10710 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10711 else
10712 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10713 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10717 sysv5* | sco3.2v5* | sco5v6*)
10718 # Note: We can NOT use -z defs as we might desire, because we do not
10719 # link with -lc, and that would cause any symbols used from libc to
10720 # always be unresolved, which means just about no library would
10721 # ever link correctly. If we're not using GNU ld we use -z text
10722 # though, which does catch some bad symbols but isn't as heavy-handed
10723 # as -z defs.
10724 no_undefined_flag='${wl}-z,text'
10725 allow_undefined_flag='${wl}-z,nodefs'
10726 archive_cmds_need_lc=no
10727 hardcode_shlibpath_var=no
10728 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10729 hardcode_libdir_separator=':'
10730 link_all_deplibs=yes
10731 export_dynamic_flag_spec='${wl}-Bexport'
10732 runpath_var='LD_RUN_PATH'
10734 if test "$GCC" = yes; then
10735 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10736 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10737 else
10738 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10739 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10743 uts4*)
10744 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10745 hardcode_libdir_flag_spec='-L$libdir'
10746 hardcode_shlibpath_var=no
10750 ld_shlibs=no
10752 esac
10754 if test x$host_vendor = xsni; then
10755 case $host in
10756 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10757 export_dynamic_flag_spec='${wl}-Blargedynsym'
10759 esac
10763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10764 $as_echo "$ld_shlibs" >&6; }
10765 test "$ld_shlibs" = no && can_build_shared=no
10767 with_gnu_ld=$with_gnu_ld
10784 # Do we need to explicitly link libc?
10786 case "x$archive_cmds_need_lc" in
10787 x|xyes)
10788 # Assume -lc should be added
10789 archive_cmds_need_lc=yes
10791 if test "$enable_shared" = yes && test "$GCC" = yes; then
10792 case $archive_cmds in
10793 *'~'*)
10794 # FIXME: we may have to deal with multi-command sequences.
10796 '$CC '*)
10797 # Test whether the compiler implicitly links with -lc since on some
10798 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10799 # to ld, don't add -lc before -lgcc.
10800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10801 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10802 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10803 $as_echo_n "(cached) " >&6
10804 else
10805 $RM conftest*
10806 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10808 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10809 (eval $ac_compile) 2>&5
10810 ac_status=$?
10811 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10812 test $ac_status = 0; } 2>conftest.err; then
10813 soname=conftest
10814 lib=conftest
10815 libobjs=conftest.$ac_objext
10816 deplibs=
10817 wl=$lt_prog_compiler_wl
10818 pic_flag=$lt_prog_compiler_pic
10819 compiler_flags=-v
10820 linker_flags=-v
10821 verstring=
10822 output_objdir=.
10823 libname=conftest
10824 lt_save_allow_undefined_flag=$allow_undefined_flag
10825 allow_undefined_flag=
10826 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10827 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10828 ac_status=$?
10829 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10830 test $ac_status = 0; }
10831 then
10832 lt_cv_archive_cmds_need_lc=no
10833 else
10834 lt_cv_archive_cmds_need_lc=yes
10836 allow_undefined_flag=$lt_save_allow_undefined_flag
10837 else
10838 cat conftest.err 1>&5
10840 $RM conftest*
10843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10844 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10845 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10847 esac
10850 esac
11008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11009 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11011 if test "$GCC" = yes; then
11012 case $host_os in
11013 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11014 *) lt_awk_arg="/^libraries:/" ;;
11015 esac
11016 case $host_os in
11017 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11018 *) lt_sed_strip_eq="s,=/,/,g" ;;
11019 esac
11020 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11021 case $lt_search_path_spec in
11022 *\;*)
11023 # if the path contains ";" then we assume it to be the separator
11024 # otherwise default to the standard path separator (i.e. ":") - it is
11025 # assumed that no part of a normal pathname contains ";" but that should
11026 # okay in the real world where ";" in dirpaths is itself problematic.
11027 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11030 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11032 esac
11033 # Ok, now we have the path, separated by spaces, we can step through it
11034 # and add multilib dir if necessary.
11035 lt_tmp_lt_search_path_spec=
11036 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11037 for lt_sys_path in $lt_search_path_spec; do
11038 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11039 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11040 else
11041 test -d "$lt_sys_path" && \
11042 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11044 done
11045 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11046 BEGIN {RS=" "; FS="/|\n";} {
11047 lt_foo="";
11048 lt_count=0;
11049 for (lt_i = NF; lt_i > 0; lt_i--) {
11050 if ($lt_i != "" && $lt_i != ".") {
11051 if ($lt_i == "..") {
11052 lt_count++;
11053 } else {
11054 if (lt_count == 0) {
11055 lt_foo="/" $lt_i lt_foo;
11056 } else {
11057 lt_count--;
11062 if (lt_foo != "") { lt_freq[lt_foo]++; }
11063 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11065 # AWK program above erroneously prepends '/' to C:/dos/paths
11066 # for these hosts.
11067 case $host_os in
11068 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11069 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11070 esac
11071 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11072 else
11073 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11075 library_names_spec=
11076 libname_spec='lib$name'
11077 soname_spec=
11078 shrext_cmds=".so"
11079 postinstall_cmds=
11080 postuninstall_cmds=
11081 finish_cmds=
11082 finish_eval=
11083 shlibpath_var=
11084 shlibpath_overrides_runpath=unknown
11085 version_type=none
11086 dynamic_linker="$host_os ld.so"
11087 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11088 need_lib_prefix=unknown
11089 hardcode_into_libs=no
11091 # when you set need_version to no, make sure it does not cause -set_version
11092 # flags to be left without arguments
11093 need_version=unknown
11095 case $host_os in
11096 aix3*)
11097 version_type=linux
11098 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11099 shlibpath_var=LIBPATH
11101 # AIX 3 has no versioning support, so we append a major version to the name.
11102 soname_spec='${libname}${release}${shared_ext}$major'
11105 aix[4-9]*)
11106 version_type=linux
11107 need_lib_prefix=no
11108 need_version=no
11109 hardcode_into_libs=yes
11110 if test "$host_cpu" = ia64; then
11111 # AIX 5 supports IA64
11112 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11113 shlibpath_var=LD_LIBRARY_PATH
11114 else
11115 # With GCC up to 2.95.x, collect2 would create an import file
11116 # for dependence libraries. The import file would start with
11117 # the line `#! .'. This would cause the generated library to
11118 # depend on `.', always an invalid library. This was fixed in
11119 # development snapshots of GCC prior to 3.0.
11120 case $host_os in
11121 aix4 | aix4.[01] | aix4.[01].*)
11122 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11123 echo ' yes '
11124 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11126 else
11127 can_build_shared=no
11130 esac
11131 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11132 # soname into executable. Probably we can add versioning support to
11133 # collect2, so additional links can be useful in future.
11134 if test "$aix_use_runtimelinking" = yes; then
11135 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11136 # instead of lib<name>.a to let people know that these are not
11137 # typical AIX shared libraries.
11138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11139 else
11140 # We preserve .a as extension for shared libraries through AIX4.2
11141 # and later when we are not doing run time linking.
11142 library_names_spec='${libname}${release}.a $libname.a'
11143 soname_spec='${libname}${release}${shared_ext}$major'
11145 shlibpath_var=LIBPATH
11149 amigaos*)
11150 case $host_cpu in
11151 powerpc)
11152 # Since July 2007 AmigaOS4 officially supports .so libraries.
11153 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11156 m68k)
11157 library_names_spec='$libname.ixlibrary $libname.a'
11158 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11159 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'
11161 esac
11164 beos*)
11165 library_names_spec='${libname}${shared_ext}'
11166 dynamic_linker="$host_os ld.so"
11167 shlibpath_var=LIBRARY_PATH
11170 bsdi[45]*)
11171 version_type=linux
11172 need_version=no
11173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11174 soname_spec='${libname}${release}${shared_ext}$major'
11175 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11176 shlibpath_var=LD_LIBRARY_PATH
11177 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11178 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11179 # the default ld.so.conf also contains /usr/contrib/lib and
11180 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11181 # libtool to hard-code these into programs
11184 cygwin* | mingw* | pw32* | cegcc*)
11185 version_type=windows
11186 shrext_cmds=".dll"
11187 need_version=no
11188 need_lib_prefix=no
11190 case $GCC,$host_os in
11191 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11192 library_names_spec='$libname.dll.a'
11193 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11194 postinstall_cmds='base_file=`basename \${file}`~
11195 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11196 dldir=$destdir/`dirname \$dlpath`~
11197 test -d \$dldir || mkdir -p \$dldir~
11198 $install_prog $dir/$dlname \$dldir/$dlname~
11199 chmod a+x \$dldir/$dlname~
11200 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11201 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11203 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11204 dlpath=$dir/\$dldll~
11205 $RM \$dlpath'
11206 shlibpath_overrides_runpath=yes
11208 case $host_os in
11209 cygwin*)
11210 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11211 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11213 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11215 mingw* | cegcc*)
11216 # MinGW DLLs use traditional 'lib' prefix
11217 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11219 pw32*)
11220 # pw32 DLLs use 'pw' prefix rather than 'lib'
11221 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11223 esac
11227 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11229 esac
11230 dynamic_linker='Win32 ld.exe'
11231 # FIXME: first we should search . and the directory the executable is in
11232 shlibpath_var=PATH
11235 darwin* | rhapsody*)
11236 dynamic_linker="$host_os dyld"
11237 version_type=darwin
11238 need_lib_prefix=no
11239 need_version=no
11240 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11241 soname_spec='${libname}${release}${major}$shared_ext'
11242 shlibpath_overrides_runpath=yes
11243 shlibpath_var=DYLD_LIBRARY_PATH
11244 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11246 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11247 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11250 dgux*)
11251 version_type=linux
11252 need_lib_prefix=no
11253 need_version=no
11254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11255 soname_spec='${libname}${release}${shared_ext}$major'
11256 shlibpath_var=LD_LIBRARY_PATH
11259 freebsd* | dragonfly*)
11260 # DragonFly does not have aout. When/if they implement a new
11261 # versioning mechanism, adjust this.
11262 if test -x /usr/bin/objformat; then
11263 objformat=`/usr/bin/objformat`
11264 else
11265 case $host_os in
11266 freebsd[23].*) objformat=aout ;;
11267 *) objformat=elf ;;
11268 esac
11270 version_type=freebsd-$objformat
11271 case $version_type in
11272 freebsd-elf*)
11273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11274 need_version=no
11275 need_lib_prefix=no
11277 freebsd-*)
11278 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11279 need_version=yes
11281 esac
11282 shlibpath_var=LD_LIBRARY_PATH
11283 case $host_os in
11284 freebsd2.*)
11285 shlibpath_overrides_runpath=yes
11287 freebsd3.[01]* | freebsdelf3.[01]*)
11288 shlibpath_overrides_runpath=yes
11289 hardcode_into_libs=yes
11291 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11292 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11293 shlibpath_overrides_runpath=no
11294 hardcode_into_libs=yes
11296 *) # from 4.6 on, and DragonFly
11297 shlibpath_overrides_runpath=yes
11298 hardcode_into_libs=yes
11300 esac
11303 haiku*)
11304 version_type=linux
11305 need_lib_prefix=no
11306 need_version=no
11307 dynamic_linker="$host_os runtime_loader"
11308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11309 soname_spec='${libname}${release}${shared_ext}$major'
11310 shlibpath_var=LIBRARY_PATH
11311 shlibpath_overrides_runpath=yes
11312 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
11313 hardcode_into_libs=yes
11316 hpux9* | hpux10* | hpux11*)
11317 # Give a soname corresponding to the major version so that dld.sl refuses to
11318 # link against other versions.
11319 version_type=sunos
11320 need_lib_prefix=no
11321 need_version=no
11322 case $host_cpu in
11323 ia64*)
11324 shrext_cmds='.so'
11325 hardcode_into_libs=yes
11326 dynamic_linker="$host_os dld.so"
11327 shlibpath_var=LD_LIBRARY_PATH
11328 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11330 soname_spec='${libname}${release}${shared_ext}$major'
11331 if test "X$HPUX_IA64_MODE" = X32; then
11332 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11333 else
11334 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11336 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11338 hppa*64*)
11339 shrext_cmds='.sl'
11340 hardcode_into_libs=yes
11341 dynamic_linker="$host_os dld.sl"
11342 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11343 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11345 soname_spec='${libname}${release}${shared_ext}$major'
11346 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11347 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11350 shrext_cmds='.sl'
11351 dynamic_linker="$host_os dld.sl"
11352 shlibpath_var=SHLIB_PATH
11353 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11355 soname_spec='${libname}${release}${shared_ext}$major'
11357 esac
11358 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11359 postinstall_cmds='chmod 555 $lib'
11360 # or fails outright, so override atomically:
11361 install_override_mode=555
11364 interix[3-9]*)
11365 version_type=linux
11366 need_lib_prefix=no
11367 need_version=no
11368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11369 soname_spec='${libname}${release}${shared_ext}$major'
11370 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11371 shlibpath_var=LD_LIBRARY_PATH
11372 shlibpath_overrides_runpath=no
11373 hardcode_into_libs=yes
11376 irix5* | irix6* | nonstopux*)
11377 case $host_os in
11378 nonstopux*) version_type=nonstopux ;;
11380 if test "$lt_cv_prog_gnu_ld" = yes; then
11381 version_type=linux
11382 else
11383 version_type=irix
11384 fi ;;
11385 esac
11386 need_lib_prefix=no
11387 need_version=no
11388 soname_spec='${libname}${release}${shared_ext}$major'
11389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11390 case $host_os in
11391 irix5* | nonstopux*)
11392 libsuff= shlibsuff=
11395 case $LD in # libtool.m4 will add one of these switches to LD
11396 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11397 libsuff= shlibsuff= libmagic=32-bit;;
11398 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11399 libsuff=32 shlibsuff=N32 libmagic=N32;;
11400 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11401 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11402 *) libsuff= shlibsuff= libmagic=never-match;;
11403 esac
11405 esac
11406 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11407 shlibpath_overrides_runpath=no
11408 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11409 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11410 hardcode_into_libs=yes
11413 # No shared lib support for Linux oldld, aout, or coff.
11414 linux*oldld* | linux*aout* | linux*coff*)
11415 dynamic_linker=no
11418 # This must be Linux ELF.
11420 # uclinux* changes (here and below) have been submitted to the libtool
11421 # project, but have not yet been accepted: they are GCC-local changes
11422 # for the time being. (See
11423 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
11424 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
11425 version_type=linux
11426 need_lib_prefix=no
11427 need_version=no
11428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11429 soname_spec='${libname}${release}${shared_ext}$major'
11430 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11431 shlibpath_var=LD_LIBRARY_PATH
11432 shlibpath_overrides_runpath=no
11434 # Some binutils ld are patched to set DT_RUNPATH
11435 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11436 $as_echo_n "(cached) " >&6
11437 else
11438 lt_cv_shlibpath_overrides_runpath=no
11439 save_LDFLAGS=$LDFLAGS
11440 save_libdir=$libdir
11441 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11442 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11444 /* end confdefs.h. */
11447 main ()
11451 return 0;
11453 _ACEOF
11454 if ac_fn_c_try_link "$LINENO"; then :
11455 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11456 lt_cv_shlibpath_overrides_runpath=yes
11459 rm -f core conftest.err conftest.$ac_objext \
11460 conftest$ac_exeext conftest.$ac_ext
11461 LDFLAGS=$save_LDFLAGS
11462 libdir=$save_libdir
11466 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11468 # This implies no fast_install, which is unacceptable.
11469 # Some rework will be needed to allow for fast_install
11470 # before this can be enabled.
11471 hardcode_into_libs=yes
11473 # Append ld.so.conf contents to the search path
11474 if test -f /etc/ld.so.conf; then
11475 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' ' '`
11476 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11479 # We used to test for /lib/ld.so.1 and disable shared libraries on
11480 # powerpc, because MkLinux only supported shared libraries with the
11481 # GNU dynamic linker. Since this was broken with cross compilers,
11482 # most powerpc-linux boxes support dynamic linking these days and
11483 # people can always --disable-shared, the test was removed, and we
11484 # assume the GNU/Linux dynamic linker is in use.
11485 dynamic_linker='GNU/Linux ld.so'
11488 netbsd*)
11489 version_type=sunos
11490 need_lib_prefix=no
11491 need_version=no
11492 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11494 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11495 dynamic_linker='NetBSD (a.out) ld.so'
11496 else
11497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11498 soname_spec='${libname}${release}${shared_ext}$major'
11499 dynamic_linker='NetBSD ld.elf_so'
11501 shlibpath_var=LD_LIBRARY_PATH
11502 shlibpath_overrides_runpath=yes
11503 hardcode_into_libs=yes
11506 newsos6)
11507 version_type=linux
11508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11509 shlibpath_var=LD_LIBRARY_PATH
11510 shlibpath_overrides_runpath=yes
11513 *nto* | *qnx*)
11514 version_type=qnx
11515 need_lib_prefix=no
11516 need_version=no
11517 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11518 soname_spec='${libname}${release}${shared_ext}$major'
11519 shlibpath_var=LD_LIBRARY_PATH
11520 shlibpath_overrides_runpath=no
11521 hardcode_into_libs=yes
11522 dynamic_linker='ldqnx.so'
11525 openbsd*)
11526 version_type=sunos
11527 sys_lib_dlsearch_path_spec="/usr/lib"
11528 need_lib_prefix=no
11529 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11530 case $host_os in
11531 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11532 *) need_version=no ;;
11533 esac
11534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11535 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11536 shlibpath_var=LD_LIBRARY_PATH
11537 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11538 case $host_os in
11539 openbsd2.[89] | openbsd2.[89].*)
11540 shlibpath_overrides_runpath=no
11543 shlibpath_overrides_runpath=yes
11545 esac
11546 else
11547 shlibpath_overrides_runpath=yes
11551 os2*)
11552 libname_spec='$name'
11553 shrext_cmds=".dll"
11554 need_lib_prefix=no
11555 library_names_spec='$libname${shared_ext} $libname.a'
11556 dynamic_linker='OS/2 ld.exe'
11557 shlibpath_var=LIBPATH
11560 osf3* | osf4* | osf5*)
11561 version_type=osf
11562 need_lib_prefix=no
11563 need_version=no
11564 soname_spec='${libname}${release}${shared_ext}$major'
11565 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11566 shlibpath_var=LD_LIBRARY_PATH
11567 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11568 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11571 rdos*)
11572 dynamic_linker=no
11575 solaris*)
11576 version_type=linux
11577 need_lib_prefix=no
11578 need_version=no
11579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11580 soname_spec='${libname}${release}${shared_ext}$major'
11581 shlibpath_var=LD_LIBRARY_PATH
11582 shlibpath_overrides_runpath=yes
11583 hardcode_into_libs=yes
11584 # ldd complains unless libraries are executable
11585 postinstall_cmds='chmod +x $lib'
11588 sunos4*)
11589 version_type=sunos
11590 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11591 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11592 shlibpath_var=LD_LIBRARY_PATH
11593 shlibpath_overrides_runpath=yes
11594 if test "$with_gnu_ld" = yes; then
11595 need_lib_prefix=no
11597 need_version=yes
11600 sysv4 | sysv4.3*)
11601 version_type=linux
11602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11603 soname_spec='${libname}${release}${shared_ext}$major'
11604 shlibpath_var=LD_LIBRARY_PATH
11605 case $host_vendor in
11606 sni)
11607 shlibpath_overrides_runpath=no
11608 need_lib_prefix=no
11609 runpath_var=LD_RUN_PATH
11611 siemens)
11612 need_lib_prefix=no
11614 motorola)
11615 need_lib_prefix=no
11616 need_version=no
11617 shlibpath_overrides_runpath=no
11618 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11620 esac
11623 sysv4*MP*)
11624 if test -d /usr/nec ;then
11625 version_type=linux
11626 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11627 soname_spec='$libname${shared_ext}.$major'
11628 shlibpath_var=LD_LIBRARY_PATH
11632 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11633 version_type=freebsd-elf
11634 need_lib_prefix=no
11635 need_version=no
11636 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11637 soname_spec='${libname}${release}${shared_ext}$major'
11638 shlibpath_var=LD_LIBRARY_PATH
11639 shlibpath_overrides_runpath=yes
11640 hardcode_into_libs=yes
11641 if test "$with_gnu_ld" = yes; then
11642 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11643 else
11644 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11645 case $host_os in
11646 sco3.2v5*)
11647 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11649 esac
11651 sys_lib_dlsearch_path_spec='/usr/lib'
11654 tpf*)
11655 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11656 version_type=linux
11657 need_lib_prefix=no
11658 need_version=no
11659 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11660 shlibpath_var=LD_LIBRARY_PATH
11661 shlibpath_overrides_runpath=no
11662 hardcode_into_libs=yes
11665 uts4*)
11666 version_type=linux
11667 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11668 soname_spec='${libname}${release}${shared_ext}$major'
11669 shlibpath_var=LD_LIBRARY_PATH
11673 dynamic_linker=no
11675 esac
11676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11677 $as_echo "$dynamic_linker" >&6; }
11678 test "$dynamic_linker" = no && can_build_shared=no
11680 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11681 if test "$GCC" = yes; then
11682 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11685 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11686 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11688 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11689 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11784 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11785 hardcode_action=
11786 if test -n "$hardcode_libdir_flag_spec" ||
11787 test -n "$runpath_var" ||
11788 test "X$hardcode_automatic" = "Xyes" ; then
11790 # We can hardcode non-existent directories.
11791 if test "$hardcode_direct" != no &&
11792 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11793 # have to relink, otherwise we might link with an installed library
11794 # when we should be linking with a yet-to-be-installed one
11795 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11796 test "$hardcode_minus_L" != no; then
11797 # Linking always hardcodes the temporary library directory.
11798 hardcode_action=relink
11799 else
11800 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11801 hardcode_action=immediate
11803 else
11804 # We cannot hardcode anything, or else we can only hardcode existing
11805 # directories.
11806 hardcode_action=unsupported
11808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11809 $as_echo "$hardcode_action" >&6; }
11811 if test "$hardcode_action" = relink ||
11812 test "$inherit_rpath" = yes; then
11813 # Fast installation is not supported
11814 enable_fast_install=no
11815 elif test "$shlibpath_overrides_runpath" = yes ||
11816 test "$enable_shared" = no; then
11817 # Fast installation is not necessary
11818 enable_fast_install=needless
11826 if test "x$enable_dlopen" != xyes; then
11827 enable_dlopen=unknown
11828 enable_dlopen_self=unknown
11829 enable_dlopen_self_static=unknown
11830 else
11831 lt_cv_dlopen=no
11832 lt_cv_dlopen_libs=
11834 case $host_os in
11835 beos*)
11836 lt_cv_dlopen="load_add_on"
11837 lt_cv_dlopen_libs=
11838 lt_cv_dlopen_self=yes
11841 mingw* | pw32* | cegcc*)
11842 lt_cv_dlopen="LoadLibrary"
11843 lt_cv_dlopen_libs=
11846 cygwin*)
11847 lt_cv_dlopen="dlopen"
11848 lt_cv_dlopen_libs=
11851 darwin*)
11852 # if libdl is installed we need to link against it
11853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11854 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11855 if ${ac_cv_lib_dl_dlopen+:} false; then :
11856 $as_echo_n "(cached) " >&6
11857 else
11858 ac_check_lib_save_LIBS=$LIBS
11859 LIBS="-ldl $LIBS"
11860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11861 /* end confdefs.h. */
11863 /* Override any GCC internal prototype to avoid an error.
11864 Use char because int might match the return type of a GCC
11865 builtin and then its argument prototype would still apply. */
11866 #ifdef __cplusplus
11867 extern "C"
11868 #endif
11869 char dlopen ();
11871 main ()
11873 return dlopen ();
11875 return 0;
11877 _ACEOF
11878 if ac_fn_c_try_link "$LINENO"; then :
11879 ac_cv_lib_dl_dlopen=yes
11880 else
11881 ac_cv_lib_dl_dlopen=no
11883 rm -f core conftest.err conftest.$ac_objext \
11884 conftest$ac_exeext conftest.$ac_ext
11885 LIBS=$ac_check_lib_save_LIBS
11887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11888 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11889 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11890 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11891 else
11893 lt_cv_dlopen="dyld"
11894 lt_cv_dlopen_libs=
11895 lt_cv_dlopen_self=yes
11902 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11903 if test "x$ac_cv_func_shl_load" = xyes; then :
11904 lt_cv_dlopen="shl_load"
11905 else
11906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11907 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11908 if ${ac_cv_lib_dld_shl_load+:} false; then :
11909 $as_echo_n "(cached) " >&6
11910 else
11911 ac_check_lib_save_LIBS=$LIBS
11912 LIBS="-ldld $LIBS"
11913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11914 /* end confdefs.h. */
11916 /* Override any GCC internal prototype to avoid an error.
11917 Use char because int might match the return type of a GCC
11918 builtin and then its argument prototype would still apply. */
11919 #ifdef __cplusplus
11920 extern "C"
11921 #endif
11922 char shl_load ();
11924 main ()
11926 return shl_load ();
11928 return 0;
11930 _ACEOF
11931 if ac_fn_c_try_link "$LINENO"; then :
11932 ac_cv_lib_dld_shl_load=yes
11933 else
11934 ac_cv_lib_dld_shl_load=no
11936 rm -f core conftest.err conftest.$ac_objext \
11937 conftest$ac_exeext conftest.$ac_ext
11938 LIBS=$ac_check_lib_save_LIBS
11940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11941 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11942 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11943 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11944 else
11945 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11946 if test "x$ac_cv_func_dlopen" = xyes; then :
11947 lt_cv_dlopen="dlopen"
11948 else
11949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11950 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11951 if ${ac_cv_lib_dl_dlopen+:} false; then :
11952 $as_echo_n "(cached) " >&6
11953 else
11954 ac_check_lib_save_LIBS=$LIBS
11955 LIBS="-ldl $LIBS"
11956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11957 /* end confdefs.h. */
11959 /* Override any GCC internal prototype to avoid an error.
11960 Use char because int might match the return type of a GCC
11961 builtin and then its argument prototype would still apply. */
11962 #ifdef __cplusplus
11963 extern "C"
11964 #endif
11965 char dlopen ();
11967 main ()
11969 return dlopen ();
11971 return 0;
11973 _ACEOF
11974 if ac_fn_c_try_link "$LINENO"; then :
11975 ac_cv_lib_dl_dlopen=yes
11976 else
11977 ac_cv_lib_dl_dlopen=no
11979 rm -f core conftest.err conftest.$ac_objext \
11980 conftest$ac_exeext conftest.$ac_ext
11981 LIBS=$ac_check_lib_save_LIBS
11983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11984 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11985 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11986 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11987 else
11988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11989 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11990 if ${ac_cv_lib_svld_dlopen+:} false; then :
11991 $as_echo_n "(cached) " >&6
11992 else
11993 ac_check_lib_save_LIBS=$LIBS
11994 LIBS="-lsvld $LIBS"
11995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11996 /* end confdefs.h. */
11998 /* Override any GCC internal prototype to avoid an error.
11999 Use char because int might match the return type of a GCC
12000 builtin and then its argument prototype would still apply. */
12001 #ifdef __cplusplus
12002 extern "C"
12003 #endif
12004 char dlopen ();
12006 main ()
12008 return dlopen ();
12010 return 0;
12012 _ACEOF
12013 if ac_fn_c_try_link "$LINENO"; then :
12014 ac_cv_lib_svld_dlopen=yes
12015 else
12016 ac_cv_lib_svld_dlopen=no
12018 rm -f core conftest.err conftest.$ac_objext \
12019 conftest$ac_exeext conftest.$ac_ext
12020 LIBS=$ac_check_lib_save_LIBS
12022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12023 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12024 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12025 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12026 else
12027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12028 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12029 if ${ac_cv_lib_dld_dld_link+:} false; then :
12030 $as_echo_n "(cached) " >&6
12031 else
12032 ac_check_lib_save_LIBS=$LIBS
12033 LIBS="-ldld $LIBS"
12034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12035 /* end confdefs.h. */
12037 /* Override any GCC internal prototype to avoid an error.
12038 Use char because int might match the return type of a GCC
12039 builtin and then its argument prototype would still apply. */
12040 #ifdef __cplusplus
12041 extern "C"
12042 #endif
12043 char dld_link ();
12045 main ()
12047 return dld_link ();
12049 return 0;
12051 _ACEOF
12052 if ac_fn_c_try_link "$LINENO"; then :
12053 ac_cv_lib_dld_dld_link=yes
12054 else
12055 ac_cv_lib_dld_dld_link=no
12057 rm -f core conftest.err conftest.$ac_objext \
12058 conftest$ac_exeext conftest.$ac_ext
12059 LIBS=$ac_check_lib_save_LIBS
12061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12062 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12063 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12064 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12083 esac
12085 if test "x$lt_cv_dlopen" != xno; then
12086 enable_dlopen=yes
12087 else
12088 enable_dlopen=no
12091 case $lt_cv_dlopen in
12092 dlopen)
12093 save_CPPFLAGS="$CPPFLAGS"
12094 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12096 save_LDFLAGS="$LDFLAGS"
12097 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12099 save_LIBS="$LIBS"
12100 LIBS="$lt_cv_dlopen_libs $LIBS"
12102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12103 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12104 if ${lt_cv_dlopen_self+:} false; then :
12105 $as_echo_n "(cached) " >&6
12106 else
12107 if test "$cross_compiling" = yes; then :
12108 lt_cv_dlopen_self=cross
12109 else
12110 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12111 lt_status=$lt_dlunknown
12112 cat > conftest.$ac_ext <<_LT_EOF
12113 #line 12113 "configure"
12114 #include "confdefs.h"
12116 #if HAVE_DLFCN_H
12117 #include <dlfcn.h>
12118 #endif
12120 #include <stdio.h>
12122 #ifdef RTLD_GLOBAL
12123 # define LT_DLGLOBAL RTLD_GLOBAL
12124 #else
12125 # ifdef DL_GLOBAL
12126 # define LT_DLGLOBAL DL_GLOBAL
12127 # else
12128 # define LT_DLGLOBAL 0
12129 # endif
12130 #endif
12132 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12133 find out it does not work in some platform. */
12134 #ifndef LT_DLLAZY_OR_NOW
12135 # ifdef RTLD_LAZY
12136 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12137 # else
12138 # ifdef DL_LAZY
12139 # define LT_DLLAZY_OR_NOW DL_LAZY
12140 # else
12141 # ifdef RTLD_NOW
12142 # define LT_DLLAZY_OR_NOW RTLD_NOW
12143 # else
12144 # ifdef DL_NOW
12145 # define LT_DLLAZY_OR_NOW DL_NOW
12146 # else
12147 # define LT_DLLAZY_OR_NOW 0
12148 # endif
12149 # endif
12150 # endif
12151 # endif
12152 #endif
12154 /* When -fvisbility=hidden is used, assume the code has been annotated
12155 correspondingly for the symbols needed. */
12156 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12157 void fnord () __attribute__((visibility("default")));
12158 #endif
12160 void fnord () { int i=42; }
12161 int main ()
12163 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12164 int status = $lt_dlunknown;
12166 if (self)
12168 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12169 else
12171 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12172 else puts (dlerror ());
12174 /* dlclose (self); */
12176 else
12177 puts (dlerror ());
12179 return status;
12181 _LT_EOF
12182 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12183 (eval $ac_link) 2>&5
12184 ac_status=$?
12185 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12186 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12187 (./conftest; exit; ) >&5 2>/dev/null
12188 lt_status=$?
12189 case x$lt_status in
12190 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12191 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12192 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12193 esac
12194 else :
12195 # compilation failed
12196 lt_cv_dlopen_self=no
12199 rm -fr conftest*
12203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12204 $as_echo "$lt_cv_dlopen_self" >&6; }
12206 if test "x$lt_cv_dlopen_self" = xyes; then
12207 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12209 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12210 if ${lt_cv_dlopen_self_static+:} false; then :
12211 $as_echo_n "(cached) " >&6
12212 else
12213 if test "$cross_compiling" = yes; then :
12214 lt_cv_dlopen_self_static=cross
12215 else
12216 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12217 lt_status=$lt_dlunknown
12218 cat > conftest.$ac_ext <<_LT_EOF
12219 #line 12219 "configure"
12220 #include "confdefs.h"
12222 #if HAVE_DLFCN_H
12223 #include <dlfcn.h>
12224 #endif
12226 #include <stdio.h>
12228 #ifdef RTLD_GLOBAL
12229 # define LT_DLGLOBAL RTLD_GLOBAL
12230 #else
12231 # ifdef DL_GLOBAL
12232 # define LT_DLGLOBAL DL_GLOBAL
12233 # else
12234 # define LT_DLGLOBAL 0
12235 # endif
12236 #endif
12238 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12239 find out it does not work in some platform. */
12240 #ifndef LT_DLLAZY_OR_NOW
12241 # ifdef RTLD_LAZY
12242 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12243 # else
12244 # ifdef DL_LAZY
12245 # define LT_DLLAZY_OR_NOW DL_LAZY
12246 # else
12247 # ifdef RTLD_NOW
12248 # define LT_DLLAZY_OR_NOW RTLD_NOW
12249 # else
12250 # ifdef DL_NOW
12251 # define LT_DLLAZY_OR_NOW DL_NOW
12252 # else
12253 # define LT_DLLAZY_OR_NOW 0
12254 # endif
12255 # endif
12256 # endif
12257 # endif
12258 #endif
12260 /* When -fvisbility=hidden is used, assume the code has been annotated
12261 correspondingly for the symbols needed. */
12262 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12263 void fnord () __attribute__((visibility("default")));
12264 #endif
12266 void fnord () { int i=42; }
12267 int main ()
12269 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12270 int status = $lt_dlunknown;
12272 if (self)
12274 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12275 else
12277 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12278 else puts (dlerror ());
12280 /* dlclose (self); */
12282 else
12283 puts (dlerror ());
12285 return status;
12287 _LT_EOF
12288 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12289 (eval $ac_link) 2>&5
12290 ac_status=$?
12291 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12292 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12293 (./conftest; exit; ) >&5 2>/dev/null
12294 lt_status=$?
12295 case x$lt_status in
12296 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12297 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12298 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12299 esac
12300 else :
12301 # compilation failed
12302 lt_cv_dlopen_self_static=no
12305 rm -fr conftest*
12309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12310 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12313 CPPFLAGS="$save_CPPFLAGS"
12314 LDFLAGS="$save_LDFLAGS"
12315 LIBS="$save_LIBS"
12317 esac
12319 case $lt_cv_dlopen_self in
12320 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12321 *) enable_dlopen_self=unknown ;;
12322 esac
12324 case $lt_cv_dlopen_self_static in
12325 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12326 *) enable_dlopen_self_static=unknown ;;
12327 esac
12346 striplib=
12347 old_striplib=
12348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12349 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12350 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12351 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12352 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12354 $as_echo "yes" >&6; }
12355 else
12356 # FIXME - insert some real tests, host_os isn't really good enough
12357 case $host_os in
12358 darwin*)
12359 if test -n "$STRIP" ; then
12360 striplib="$STRIP -x"
12361 old_striplib="$STRIP -S"
12362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12363 $as_echo "yes" >&6; }
12364 else
12365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12366 $as_echo "no" >&6; }
12370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12371 $as_echo "no" >&6; }
12373 esac
12387 # Report which library types will actually be built
12388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12389 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12391 $as_echo "$can_build_shared" >&6; }
12393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12394 $as_echo_n "checking whether to build shared libraries... " >&6; }
12395 test "$can_build_shared" = "no" && enable_shared=no
12397 # On AIX, shared libraries and static libraries use the same namespace, and
12398 # are all built from PIC.
12399 case $host_os in
12400 aix3*)
12401 test "$enable_shared" = yes && enable_static=no
12402 if test -n "$RANLIB"; then
12403 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12404 postinstall_cmds='$RANLIB $lib'
12408 aix[4-9]*)
12409 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12410 test "$enable_shared" = yes && enable_static=no
12413 esac
12414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12415 $as_echo "$enable_shared" >&6; }
12417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12418 $as_echo_n "checking whether to build static libraries... " >&6; }
12419 # Make sure either enable_shared or enable_static is yes.
12420 test "$enable_shared" = yes || enable_static=yes
12421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12422 $as_echo "$enable_static" >&6; }
12428 ac_ext=c
12429 ac_cpp='$CPP $CPPFLAGS'
12430 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12431 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12432 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12434 CC="$lt_save_CC"
12448 ac_config_commands="$ac_config_commands libtool"
12453 # Only expand once:
12459 case $host in
12460 *-cygwin* | *-mingw*)
12461 # 'host' will be top-level target in the case of a target lib,
12462 # we must compare to with_cross_host to decide if this is a native
12463 # or cross-compiler and select where to install dlls appropriately.
12464 if test -n "$with_cross_host" &&
12465 test x"$with_cross_host" != x"no"; then
12466 lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"';
12467 else
12468 lt_host_flags='-no-undefined -bindir "$(bindir)"';
12472 lt_host_flags=
12474 esac
12479 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
12480 case $ac_cv_c_int64_t in #(
12481 no|yes) ;; #(
12484 cat >>confdefs.h <<_ACEOF
12485 #define int64_t $ac_cv_c_int64_t
12486 _ACEOF
12488 esac
12490 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
12491 case $ac_cv_c_uint64_t in #(
12492 no|yes) ;; #(
12495 $as_echo "#define _UINT64_T 1" >>confdefs.h
12498 cat >>confdefs.h <<_ACEOF
12499 #define uint64_t $ac_cv_c_uint64_t
12500 _ACEOF
12502 esac
12504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
12505 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
12506 if ${ac_cv_header_sys_wait_h+:} false; then :
12507 $as_echo_n "(cached) " >&6
12508 else
12509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12510 /* end confdefs.h. */
12511 #include <sys/types.h>
12512 #include <sys/wait.h>
12513 #ifndef WEXITSTATUS
12514 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
12515 #endif
12516 #ifndef WIFEXITED
12517 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
12518 #endif
12521 main ()
12523 int s;
12524 wait (&s);
12525 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
12527 return 0;
12529 _ACEOF
12530 if ac_fn_c_try_compile "$LINENO"; then :
12531 ac_cv_header_sys_wait_h=yes
12532 else
12533 ac_cv_header_sys_wait_h=no
12535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
12538 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
12539 if test $ac_cv_header_sys_wait_h = yes; then
12541 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
12545 ac_config_files="$ac_config_files Makefile"
12547 ac_config_headers="$ac_config_headers config.h"
12549 cat >confcache <<\_ACEOF
12550 # This file is a shell script that caches the results of configure
12551 # tests run on this system so they can be shared between configure
12552 # scripts and configure runs, see configure's option --config-cache.
12553 # It is not useful on other systems. If it contains results you don't
12554 # want to keep, you may remove or edit it.
12556 # config.status only pays attention to the cache file if you give it
12557 # the --recheck option to rerun configure.
12559 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12560 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12561 # following values.
12563 _ACEOF
12565 # The following way of writing the cache mishandles newlines in values,
12566 # but we know of no workaround that is simple, portable, and efficient.
12567 # So, we kill variables containing newlines.
12568 # Ultrix sh set writes to stderr and can't be redirected directly,
12569 # and sets the high bit in the cache file unless we assign to the vars.
12571 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12572 eval ac_val=\$$ac_var
12573 case $ac_val in #(
12574 *${as_nl}*)
12575 case $ac_var in #(
12576 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12577 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12578 esac
12579 case $ac_var in #(
12580 _ | IFS | as_nl) ;; #(
12581 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12582 *) { eval $ac_var=; unset $ac_var;} ;;
12583 esac ;;
12584 esac
12585 done
12587 (set) 2>&1 |
12588 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12589 *${as_nl}ac_space=\ *)
12590 # `set' does not quote correctly, so add quotes: double-quote
12591 # substitution turns \\\\ into \\, and sed turns \\ into \.
12592 sed -n \
12593 "s/'/'\\\\''/g;
12594 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12595 ;; #(
12597 # `set' quotes correctly as required by POSIX, so do not add quotes.
12598 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12600 esac |
12601 sort
12603 sed '
12604 /^ac_cv_env_/b end
12605 t clear
12606 :clear
12607 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12608 t end
12609 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12610 :end' >>confcache
12611 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12612 if test -w "$cache_file"; then
12613 if test "x$cache_file" != "x/dev/null"; then
12614 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12615 $as_echo "$as_me: updating cache $cache_file" >&6;}
12616 if test ! -f "$cache_file" || test -h "$cache_file"; then
12617 cat confcache >"$cache_file"
12618 else
12619 case $cache_file in #(
12620 */* | ?:*)
12621 mv -f confcache "$cache_file"$$ &&
12622 mv -f "$cache_file"$$ "$cache_file" ;; #(
12624 mv -f confcache "$cache_file" ;;
12625 esac
12628 else
12629 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12630 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12633 rm -f confcache
12635 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12636 # Let make expand exec_prefix.
12637 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12639 DEFS=-DHAVE_CONFIG_H
12641 ac_libobjs=
12642 ac_ltlibobjs=
12644 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12645 # 1. Remove the extension, and $U if already installed.
12646 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12647 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12648 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12649 # will be set to the directory where LIBOBJS objects are built.
12650 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12651 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12652 done
12653 LIBOBJS=$ac_libobjs
12655 LTLIBOBJS=$ac_ltlibobjs
12658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
12659 $as_echo_n "checking that generated files are newer than configure... " >&6; }
12660 if test -n "$am_sleep_pid"; then
12661 # Hide warnings about reused PIDs.
12662 wait $am_sleep_pid 2>/dev/null
12664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
12665 $as_echo "done" >&6; }
12666 if test -n "$EXEEXT"; then
12667 am__EXEEXT_TRUE=
12668 am__EXEEXT_FALSE='#'
12669 else
12670 am__EXEEXT_TRUE='#'
12671 am__EXEEXT_FALSE=
12674 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12675 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
12676 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12678 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12679 as_fn_error $? "conditional \"AMDEP\" was never defined.
12680 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12682 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12683 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12684 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12686 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12687 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12688 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12690 if test -z "${LTO_PLUGIN_USE_SYMVER_TRUE}" && test -z "${LTO_PLUGIN_USE_SYMVER_FALSE}"; then
12691 as_fn_error $? "conditional \"LTO_PLUGIN_USE_SYMVER\" was never defined.
12692 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12694 if test -z "${LTO_PLUGIN_USE_SYMVER_GNU_TRUE}" && test -z "${LTO_PLUGIN_USE_SYMVER_GNU_FALSE}"; then
12695 as_fn_error $? "conditional \"LTO_PLUGIN_USE_SYMVER_GNU\" was never defined.
12696 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12698 if test -z "${LTO_PLUGIN_USE_SYMVER_SUN_TRUE}" && test -z "${LTO_PLUGIN_USE_SYMVER_SUN_FALSE}"; then
12699 as_fn_error $? "conditional \"LTO_PLUGIN_USE_SYMVER_SUN\" was never defined.
12700 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12703 : "${CONFIG_STATUS=./config.status}"
12704 ac_write_fail=0
12705 ac_clean_files_save=$ac_clean_files
12706 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12707 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12708 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12709 as_write_fail=0
12710 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12711 #! $SHELL
12712 # Generated by $as_me.
12713 # Run this file to recreate the current configuration.
12714 # Compiler output produced by configure, useful for debugging
12715 # configure, is in config.log if it exists.
12717 debug=false
12718 ac_cs_recheck=false
12719 ac_cs_silent=false
12721 SHELL=\${CONFIG_SHELL-$SHELL}
12722 export SHELL
12723 _ASEOF
12724 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12725 ## -------------------- ##
12726 ## M4sh Initialization. ##
12727 ## -------------------- ##
12729 # Be more Bourne compatible
12730 DUALCASE=1; export DUALCASE # for MKS sh
12731 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12732 emulate sh
12733 NULLCMD=:
12734 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12735 # is contrary to our usage. Disable this feature.
12736 alias -g '${1+"$@"}'='"$@"'
12737 setopt NO_GLOB_SUBST
12738 else
12739 case `(set -o) 2>/dev/null` in #(
12740 *posix*) :
12741 set -o posix ;; #(
12742 *) :
12744 esac
12748 as_nl='
12750 export as_nl
12751 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12752 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12753 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12754 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12755 # Prefer a ksh shell builtin over an external printf program on Solaris,
12756 # but without wasting forks for bash or zsh.
12757 if test -z "$BASH_VERSION$ZSH_VERSION" \
12758 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12759 as_echo='print -r --'
12760 as_echo_n='print -rn --'
12761 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12762 as_echo='printf %s\n'
12763 as_echo_n='printf %s'
12764 else
12765 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12766 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12767 as_echo_n='/usr/ucb/echo -n'
12768 else
12769 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12770 as_echo_n_body='eval
12771 arg=$1;
12772 case $arg in #(
12773 *"$as_nl"*)
12774 expr "X$arg" : "X\\(.*\\)$as_nl";
12775 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12776 esac;
12777 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12779 export as_echo_n_body
12780 as_echo_n='sh -c $as_echo_n_body as_echo'
12782 export as_echo_body
12783 as_echo='sh -c $as_echo_body as_echo'
12786 # The user is always right.
12787 if test "${PATH_SEPARATOR+set}" != set; then
12788 PATH_SEPARATOR=:
12789 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12790 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12791 PATH_SEPARATOR=';'
12796 # IFS
12797 # We need space, tab and new line, in precisely that order. Quoting is
12798 # there to prevent editors from complaining about space-tab.
12799 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12800 # splitting by setting IFS to empty value.)
12801 IFS=" "" $as_nl"
12803 # Find who we are. Look in the path if we contain no directory separator.
12804 as_myself=
12805 case $0 in #((
12806 *[\\/]* ) as_myself=$0 ;;
12807 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12808 for as_dir in $PATH
12810 IFS=$as_save_IFS
12811 test -z "$as_dir" && as_dir=.
12812 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12813 done
12814 IFS=$as_save_IFS
12817 esac
12818 # We did not find ourselves, most probably we were run as `sh COMMAND'
12819 # in which case we are not to be found in the path.
12820 if test "x$as_myself" = x; then
12821 as_myself=$0
12823 if test ! -f "$as_myself"; then
12824 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12825 exit 1
12828 # Unset variables that we do not need and which cause bugs (e.g. in
12829 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12830 # suppresses any "Segmentation fault" message there. '((' could
12831 # trigger a bug in pdksh 5.2.14.
12832 for as_var in BASH_ENV ENV MAIL MAILPATH
12833 do eval test x\${$as_var+set} = xset \
12834 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12835 done
12836 PS1='$ '
12837 PS2='> '
12838 PS4='+ '
12840 # NLS nuisances.
12841 LC_ALL=C
12842 export LC_ALL
12843 LANGUAGE=C
12844 export LANGUAGE
12846 # CDPATH.
12847 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12850 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12851 # ----------------------------------------
12852 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12853 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12854 # script with STATUS, using 1 if that was 0.
12855 as_fn_error ()
12857 as_status=$1; test $as_status -eq 0 && as_status=1
12858 if test "$4"; then
12859 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12860 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12862 $as_echo "$as_me: error: $2" >&2
12863 as_fn_exit $as_status
12864 } # as_fn_error
12867 # as_fn_set_status STATUS
12868 # -----------------------
12869 # Set $? to STATUS, without forking.
12870 as_fn_set_status ()
12872 return $1
12873 } # as_fn_set_status
12875 # as_fn_exit STATUS
12876 # -----------------
12877 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12878 as_fn_exit ()
12880 set +e
12881 as_fn_set_status $1
12882 exit $1
12883 } # as_fn_exit
12885 # as_fn_unset VAR
12886 # ---------------
12887 # Portably unset VAR.
12888 as_fn_unset ()
12890 { eval $1=; unset $1;}
12892 as_unset=as_fn_unset
12893 # as_fn_append VAR VALUE
12894 # ----------------------
12895 # Append the text in VALUE to the end of the definition contained in VAR. Take
12896 # advantage of any shell optimizations that allow amortized linear growth over
12897 # repeated appends, instead of the typical quadratic growth present in naive
12898 # implementations.
12899 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12900 eval 'as_fn_append ()
12902 eval $1+=\$2
12904 else
12905 as_fn_append ()
12907 eval $1=\$$1\$2
12909 fi # as_fn_append
12911 # as_fn_arith ARG...
12912 # ------------------
12913 # Perform arithmetic evaluation on the ARGs, and store the result in the
12914 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12915 # must be portable across $(()) and expr.
12916 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12917 eval 'as_fn_arith ()
12919 as_val=$(( $* ))
12921 else
12922 as_fn_arith ()
12924 as_val=`expr "$@" || test $? -eq 1`
12926 fi # as_fn_arith
12929 if expr a : '\(a\)' >/dev/null 2>&1 &&
12930 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12931 as_expr=expr
12932 else
12933 as_expr=false
12936 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12937 as_basename=basename
12938 else
12939 as_basename=false
12942 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12943 as_dirname=dirname
12944 else
12945 as_dirname=false
12948 as_me=`$as_basename -- "$0" ||
12949 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12950 X"$0" : 'X\(//\)$' \| \
12951 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12952 $as_echo X/"$0" |
12953 sed '/^.*\/\([^/][^/]*\)\/*$/{
12954 s//\1/
12957 /^X\/\(\/\/\)$/{
12958 s//\1/
12961 /^X\/\(\/\).*/{
12962 s//\1/
12965 s/.*/./; q'`
12967 # Avoid depending upon Character Ranges.
12968 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12969 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12970 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12971 as_cr_digits='0123456789'
12972 as_cr_alnum=$as_cr_Letters$as_cr_digits
12974 ECHO_C= ECHO_N= ECHO_T=
12975 case `echo -n x` in #(((((
12976 -n*)
12977 case `echo 'xy\c'` in
12978 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12979 xy) ECHO_C='\c';;
12980 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12981 ECHO_T=' ';;
12982 esac;;
12984 ECHO_N='-n';;
12985 esac
12987 rm -f conf$$ conf$$.exe conf$$.file
12988 if test -d conf$$.dir; then
12989 rm -f conf$$.dir/conf$$.file
12990 else
12991 rm -f conf$$.dir
12992 mkdir conf$$.dir 2>/dev/null
12994 if (echo >conf$$.file) 2>/dev/null; then
12995 if ln -s conf$$.file conf$$ 2>/dev/null; then
12996 as_ln_s='ln -s'
12997 # ... but there are two gotchas:
12998 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12999 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13000 # In both cases, we have to default to `cp -pR'.
13001 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13002 as_ln_s='cp -pR'
13003 elif ln conf$$.file conf$$ 2>/dev/null; then
13004 as_ln_s=ln
13005 else
13006 as_ln_s='cp -pR'
13008 else
13009 as_ln_s='cp -pR'
13011 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13012 rmdir conf$$.dir 2>/dev/null
13015 # as_fn_mkdir_p
13016 # -------------
13017 # Create "$as_dir" as a directory, including parents if necessary.
13018 as_fn_mkdir_p ()
13021 case $as_dir in #(
13022 -*) as_dir=./$as_dir;;
13023 esac
13024 test -d "$as_dir" || eval $as_mkdir_p || {
13025 as_dirs=
13026 while :; do
13027 case $as_dir in #(
13028 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13029 *) as_qdir=$as_dir;;
13030 esac
13031 as_dirs="'$as_qdir' $as_dirs"
13032 as_dir=`$as_dirname -- "$as_dir" ||
13033 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13034 X"$as_dir" : 'X\(//\)[^/]' \| \
13035 X"$as_dir" : 'X\(//\)$' \| \
13036 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13037 $as_echo X"$as_dir" |
13038 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13039 s//\1/
13042 /^X\(\/\/\)[^/].*/{
13043 s//\1/
13046 /^X\(\/\/\)$/{
13047 s//\1/
13050 /^X\(\/\).*/{
13051 s//\1/
13054 s/.*/./; q'`
13055 test -d "$as_dir" && break
13056 done
13057 test -z "$as_dirs" || eval "mkdir $as_dirs"
13058 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13061 } # as_fn_mkdir_p
13062 if mkdir -p . 2>/dev/null; then
13063 as_mkdir_p='mkdir -p "$as_dir"'
13064 else
13065 test -d ./-p && rmdir ./-p
13066 as_mkdir_p=false
13070 # as_fn_executable_p FILE
13071 # -----------------------
13072 # Test if FILE is an executable regular file.
13073 as_fn_executable_p ()
13075 test -f "$1" && test -x "$1"
13076 } # as_fn_executable_p
13077 as_test_x='test -x'
13078 as_executable_p=as_fn_executable_p
13080 # Sed expression to map a string onto a valid CPP name.
13081 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13083 # Sed expression to map a string onto a valid variable name.
13084 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13087 exec 6>&1
13088 ## ----------------------------------- ##
13089 ## Main body of $CONFIG_STATUS script. ##
13090 ## ----------------------------------- ##
13091 _ASEOF
13092 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13094 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13095 # Save the log message, to keep $0 and so on meaningful, and to
13096 # report actual input values of CONFIG_FILES etc. instead of their
13097 # values after options handling.
13098 ac_log="
13099 This file was extended by LTO plugin for ld $as_me 0.1, which was
13100 generated by GNU Autoconf 2.69. Invocation command line was
13102 CONFIG_FILES = $CONFIG_FILES
13103 CONFIG_HEADERS = $CONFIG_HEADERS
13104 CONFIG_LINKS = $CONFIG_LINKS
13105 CONFIG_COMMANDS = $CONFIG_COMMANDS
13106 $ $0 $@
13108 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13111 _ACEOF
13113 case $ac_config_files in *"
13114 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13115 esac
13117 case $ac_config_headers in *"
13118 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13119 esac
13122 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13123 # Files that config.status was made for.
13124 config_files="$ac_config_files"
13125 config_headers="$ac_config_headers"
13126 config_commands="$ac_config_commands"
13128 _ACEOF
13130 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13131 ac_cs_usage="\
13132 \`$as_me' instantiates files and other configuration actions
13133 from templates according to the current configuration. Unless the files
13134 and actions are specified as TAGs, all are instantiated by default.
13136 Usage: $0 [OPTION]... [TAG]...
13138 -h, --help print this help, then exit
13139 -V, --version print version number and configuration settings, then exit
13140 --config print configuration, then exit
13141 -q, --quiet, --silent
13142 do not print progress messages
13143 -d, --debug don't remove temporary files
13144 --recheck update $as_me by reconfiguring in the same conditions
13145 --file=FILE[:TEMPLATE]
13146 instantiate the configuration file FILE
13147 --header=FILE[:TEMPLATE]
13148 instantiate the configuration header FILE
13150 Configuration files:
13151 $config_files
13153 Configuration headers:
13154 $config_headers
13156 Configuration commands:
13157 $config_commands
13159 Report bugs to the package provider."
13161 _ACEOF
13162 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13163 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13164 ac_cs_version="\\
13165 LTO plugin for ld config.status 0.1
13166 configured by $0, generated by GNU Autoconf 2.69,
13167 with options \\"\$ac_cs_config\\"
13169 Copyright (C) 2012 Free Software Foundation, Inc.
13170 This config.status script is free software; the Free Software Foundation
13171 gives unlimited permission to copy, distribute and modify it."
13173 ac_pwd='$ac_pwd'
13174 srcdir='$srcdir'
13175 INSTALL='$INSTALL'
13176 MKDIR_P='$MKDIR_P'
13177 AWK='$AWK'
13178 test -n "\$AWK" || AWK=awk
13179 _ACEOF
13181 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13182 # The default lists apply if the user does not specify any file.
13183 ac_need_defaults=:
13184 while test $# != 0
13186 case $1 in
13187 --*=?*)
13188 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13189 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13190 ac_shift=:
13192 --*=)
13193 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13194 ac_optarg=
13195 ac_shift=:
13198 ac_option=$1
13199 ac_optarg=$2
13200 ac_shift=shift
13202 esac
13204 case $ac_option in
13205 # Handling of the options.
13206 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13207 ac_cs_recheck=: ;;
13208 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13209 $as_echo "$ac_cs_version"; exit ;;
13210 --config | --confi | --conf | --con | --co | --c )
13211 $as_echo "$ac_cs_config"; exit ;;
13212 --debug | --debu | --deb | --de | --d | -d )
13213 debug=: ;;
13214 --file | --fil | --fi | --f )
13215 $ac_shift
13216 case $ac_optarg in
13217 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13218 '') as_fn_error $? "missing file argument" ;;
13219 esac
13220 as_fn_append CONFIG_FILES " '$ac_optarg'"
13221 ac_need_defaults=false;;
13222 --header | --heade | --head | --hea )
13223 $ac_shift
13224 case $ac_optarg in
13225 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13226 esac
13227 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13228 ac_need_defaults=false;;
13229 --he | --h)
13230 # Conflict between --help and --header
13231 as_fn_error $? "ambiguous option: \`$1'
13232 Try \`$0 --help' for more information.";;
13233 --help | --hel | -h )
13234 $as_echo "$ac_cs_usage"; exit ;;
13235 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13236 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13237 ac_cs_silent=: ;;
13239 # This is an error.
13240 -*) as_fn_error $? "unrecognized option: \`$1'
13241 Try \`$0 --help' for more information." ;;
13243 *) as_fn_append ac_config_targets " $1"
13244 ac_need_defaults=false ;;
13246 esac
13247 shift
13248 done
13250 ac_configure_extra_args=
13252 if $ac_cs_silent; then
13253 exec 6>/dev/null
13254 ac_configure_extra_args="$ac_configure_extra_args --silent"
13257 _ACEOF
13258 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13259 if \$ac_cs_recheck; then
13260 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13261 shift
13262 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13263 CONFIG_SHELL='$SHELL'
13264 export CONFIG_SHELL
13265 exec "\$@"
13268 _ACEOF
13269 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13270 exec 5>>config.log
13272 echo
13273 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13274 ## Running $as_me. ##
13275 _ASBOX
13276 $as_echo "$ac_log"
13277 } >&5
13279 _ACEOF
13280 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13282 # INIT-COMMANDS
13284 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13287 # The HP-UX ksh and POSIX shell print the target directory to stdout
13288 # if CDPATH is set.
13289 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13291 sed_quote_subst='$sed_quote_subst'
13292 double_quote_subst='$double_quote_subst'
13293 delay_variable_subst='$delay_variable_subst'
13294 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13295 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13296 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13297 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13298 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13299 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13300 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13301 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13302 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13303 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13304 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13305 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13306 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13307 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13308 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13309 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13310 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13311 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13312 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13313 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13314 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13315 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13316 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13317 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13318 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13319 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13320 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13321 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13322 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13323 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13324 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13325 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13326 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13327 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13328 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13329 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13330 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13331 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13332 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13333 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13334 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13335 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13336 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13337 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13338 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13339 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13340 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13341 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13342 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"`'
13343 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13344 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13345 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13346 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13347 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13348 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13349 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13350 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13351 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13352 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13353 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13354 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13355 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13356 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13357 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13358 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13359 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13360 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13361 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13362 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13363 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13364 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13365 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13366 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13367 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13368 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13369 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13370 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13371 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13372 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13373 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13374 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
13375 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13376 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13377 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13378 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13379 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13380 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13381 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13382 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13383 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
13384 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13385 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13386 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13387 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13388 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13389 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13390 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13391 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13392 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13393 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13394 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13395 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13396 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13397 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13398 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13399 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13400 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13401 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13402 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13403 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13404 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13405 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13406 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13407 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13408 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13409 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13410 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13411 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13412 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13413 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13415 LTCC='$LTCC'
13416 LTCFLAGS='$LTCFLAGS'
13417 compiler='$compiler_DEFAULT'
13419 # A function that is used when there is no print builtin or printf.
13420 func_fallback_echo ()
13422 eval 'cat <<_LTECHO_EOF
13424 _LTECHO_EOF'
13427 # Quote evaled strings.
13428 for var in SHELL \
13429 ECHO \
13430 SED \
13431 GREP \
13432 EGREP \
13433 FGREP \
13434 LD \
13435 NM \
13436 LN_S \
13437 lt_SP2NL \
13438 lt_NL2SP \
13439 reload_flag \
13440 OBJDUMP \
13441 deplibs_check_method \
13442 file_magic_cmd \
13443 AR \
13444 AR_FLAGS \
13445 STRIP \
13446 RANLIB \
13447 CC \
13448 CFLAGS \
13449 compiler \
13450 lt_cv_sys_global_symbol_pipe \
13451 lt_cv_sys_global_symbol_to_cdecl \
13452 lt_cv_sys_global_symbol_to_c_name_address \
13453 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13454 lt_prog_compiler_no_builtin_flag \
13455 lt_prog_compiler_wl \
13456 lt_prog_compiler_pic \
13457 lt_prog_compiler_static \
13458 lt_cv_prog_compiler_c_o \
13459 need_locks \
13460 DSYMUTIL \
13461 NMEDIT \
13462 LIPO \
13463 OTOOL \
13464 OTOOL64 \
13465 shrext_cmds \
13466 export_dynamic_flag_spec \
13467 whole_archive_flag_spec \
13468 compiler_needs_object \
13469 with_gnu_ld \
13470 allow_undefined_flag \
13471 no_undefined_flag \
13472 hardcode_libdir_flag_spec \
13473 hardcode_libdir_flag_spec_ld \
13474 hardcode_libdir_separator \
13475 fix_srcfile_path \
13476 exclude_expsyms \
13477 include_expsyms \
13478 file_list_spec \
13479 variables_saved_for_relink \
13480 libname_spec \
13481 library_names_spec \
13482 soname_spec \
13483 install_override_mode \
13484 finish_eval \
13485 old_striplib \
13486 striplib; do
13487 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13488 *[\\\\\\\`\\"\\\$]*)
13489 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13492 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13494 esac
13495 done
13497 # Double-quote double-evaled strings.
13498 for var in reload_cmds \
13499 old_postinstall_cmds \
13500 old_postuninstall_cmds \
13501 old_archive_cmds \
13502 extract_expsyms_cmds \
13503 old_archive_from_new_cmds \
13504 old_archive_from_expsyms_cmds \
13505 archive_cmds \
13506 archive_expsym_cmds \
13507 module_cmds \
13508 module_expsym_cmds \
13509 export_symbols_cmds \
13510 prelink_cmds \
13511 postinstall_cmds \
13512 postuninstall_cmds \
13513 finish_cmds \
13514 sys_lib_search_path_spec \
13515 sys_lib_dlsearch_path_spec; do
13516 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13517 *[\\\\\\\`\\"\\\$]*)
13518 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13521 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13523 esac
13524 done
13526 ac_aux_dir='$ac_aux_dir'
13527 xsi_shell='$xsi_shell'
13528 lt_shell_append='$lt_shell_append'
13530 # See if we are running on zsh, and set the options which allow our
13531 # commands through without removal of \ escapes INIT.
13532 if test -n "\${ZSH_VERSION+set}" ; then
13533 setopt NO_GLOB_SUBST
13537 PACKAGE='$PACKAGE'
13538 VERSION='$VERSION'
13539 TIMESTAMP='$TIMESTAMP'
13540 RM='$RM'
13541 ofile='$ofile'
13546 _ACEOF
13548 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13550 # Handling of arguments.
13551 for ac_config_target in $ac_config_targets
13553 case $ac_config_target in
13554 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13555 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13556 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13557 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13559 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13560 esac
13561 done
13564 # If the user did not use the arguments to specify the items to instantiate,
13565 # then the envvar interface is used. Set only those that are not.
13566 # We use the long form for the default assignment because of an extremely
13567 # bizarre bug on SunOS 4.1.3.
13568 if $ac_need_defaults; then
13569 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13570 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13571 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13574 # Have a temporary directory for convenience. Make it in the build tree
13575 # simply because there is no reason against having it here, and in addition,
13576 # creating and moving files from /tmp can sometimes cause problems.
13577 # Hook for its removal unless debugging.
13578 # Note that there is a small window in which the directory will not be cleaned:
13579 # after its creation but before its name has been assigned to `$tmp'.
13580 $debug ||
13582 tmp= ac_tmp=
13583 trap 'exit_status=$?
13584 : "${ac_tmp:=$tmp}"
13585 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13587 trap 'as_fn_exit 1' 1 2 13 15
13589 # Create a (secure) tmp directory for tmp files.
13592 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13593 test -d "$tmp"
13594 } ||
13596 tmp=./conf$$-$RANDOM
13597 (umask 077 && mkdir "$tmp")
13598 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13599 ac_tmp=$tmp
13601 # Set up the scripts for CONFIG_FILES section.
13602 # No need to generate them if there are no CONFIG_FILES.
13603 # This happens for instance with `./config.status config.h'.
13604 if test -n "$CONFIG_FILES"; then
13607 ac_cr=`echo X | tr X '\015'`
13608 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13609 # But we know of no other shell where ac_cr would be empty at this
13610 # point, so we can use a bashism as a fallback.
13611 if test "x$ac_cr" = x; then
13612 eval ac_cr=\$\'\\r\'
13614 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13615 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13616 ac_cs_awk_cr='\\r'
13617 else
13618 ac_cs_awk_cr=$ac_cr
13621 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13622 _ACEOF
13626 echo "cat >conf$$subs.awk <<_ACEOF" &&
13627 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13628 echo "_ACEOF"
13629 } >conf$$subs.sh ||
13630 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13631 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13632 ac_delim='%!_!# '
13633 for ac_last_try in false false false false false :; do
13634 . ./conf$$subs.sh ||
13635 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13637 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13638 if test $ac_delim_n = $ac_delim_num; then
13639 break
13640 elif $ac_last_try; then
13641 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13642 else
13643 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13645 done
13646 rm -f conf$$subs.sh
13648 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13649 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13650 _ACEOF
13651 sed -n '
13653 s/^/S["/; s/!.*/"]=/
13656 s/^[^!]*!//
13657 :repl
13658 t repl
13659 s/'"$ac_delim"'$//
13660 t delim
13663 s/\(.\{148\}\)..*/\1/
13664 t more1
13665 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13668 b repl
13669 :more1
13670 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13673 s/.\{148\}//
13674 t nl
13675 :delim
13677 s/\(.\{148\}\)..*/\1/
13678 t more2
13679 s/["\\]/\\&/g; s/^/"/; s/$/"/
13682 :more2
13683 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13686 s/.\{148\}//
13687 t delim
13688 ' <conf$$subs.awk | sed '
13689 /^[^""]/{
13691 s/\n//
13693 ' >>$CONFIG_STATUS || ac_write_fail=1
13694 rm -f conf$$subs.awk
13695 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13696 _ACAWK
13697 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13698 for (key in S) S_is_set[key] = 1
13699 FS = "\a"
13703 line = $ 0
13704 nfields = split(line, field, "@")
13705 substed = 0
13706 len = length(field[1])
13707 for (i = 2; i < nfields; i++) {
13708 key = field[i]
13709 keylen = length(key)
13710 if (S_is_set[key]) {
13711 value = S[key]
13712 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13713 len += length(value) + length(field[++i])
13714 substed = 1
13715 } else
13716 len += 1 + keylen
13719 print line
13722 _ACAWK
13723 _ACEOF
13724 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13725 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13726 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13727 else
13729 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13730 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13731 _ACEOF
13733 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13734 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13735 # trailing colons and then remove the whole line if VPATH becomes empty
13736 # (actually we leave an empty line to preserve line numbers).
13737 if test "x$srcdir" = x.; then
13738 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13740 s///
13741 s/^/:/
13742 s/[ ]*$/:/
13743 s/:\$(srcdir):/:/g
13744 s/:\${srcdir}:/:/g
13745 s/:@srcdir@:/:/g
13746 s/^:*//
13747 s/:*$//
13749 s/\(=[ ]*\).*/\1/
13751 s/\n//
13752 s/^[^=]*=[ ]*$//
13756 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13757 fi # test -n "$CONFIG_FILES"
13759 # Set up the scripts for CONFIG_HEADERS section.
13760 # No need to generate them if there are no CONFIG_HEADERS.
13761 # This happens for instance with `./config.status Makefile'.
13762 if test -n "$CONFIG_HEADERS"; then
13763 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13764 BEGIN {
13765 _ACEOF
13767 # Transform confdefs.h into an awk script `defines.awk', embedded as
13768 # here-document in config.status, that substitutes the proper values into
13769 # config.h.in to produce config.h.
13771 # Create a delimiter string that does not exist in confdefs.h, to ease
13772 # handling of long lines.
13773 ac_delim='%!_!# '
13774 for ac_last_try in false false :; do
13775 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13776 if test -z "$ac_tt"; then
13777 break
13778 elif $ac_last_try; then
13779 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13780 else
13781 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13783 done
13785 # For the awk script, D is an array of macro values keyed by name,
13786 # likewise P contains macro parameters if any. Preserve backslash
13787 # newline sequences.
13789 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13790 sed -n '
13791 s/.\{148\}/&'"$ac_delim"'/g
13792 t rset
13793 :rset
13794 s/^[ ]*#[ ]*define[ ][ ]*/ /
13795 t def
13797 :def
13798 s/\\$//
13799 t bsnl
13800 s/["\\]/\\&/g
13801 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13802 D["\1"]=" \3"/p
13803 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13805 :bsnl
13806 s/["\\]/\\&/g
13807 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13808 D["\1"]=" \3\\\\\\n"\\/p
13809 t cont
13810 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13811 t cont
13813 :cont
13815 s/.\{148\}/&'"$ac_delim"'/g
13816 t clear
13817 :clear
13818 s/\\$//
13819 t bsnlc
13820 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13822 :bsnlc
13823 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13824 b cont
13825 ' <confdefs.h | sed '
13826 s/'"$ac_delim"'/"\\\
13827 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13829 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13830 for (key in D) D_is_set[key] = 1
13831 FS = "\a"
13833 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13834 line = \$ 0
13835 split(line, arg, " ")
13836 if (arg[1] == "#") {
13837 defundef = arg[2]
13838 mac1 = arg[3]
13839 } else {
13840 defundef = substr(arg[1], 2)
13841 mac1 = arg[2]
13843 split(mac1, mac2, "(") #)
13844 macro = mac2[1]
13845 prefix = substr(line, 1, index(line, defundef) - 1)
13846 if (D_is_set[macro]) {
13847 # Preserve the white space surrounding the "#".
13848 print prefix "define", macro P[macro] D[macro]
13849 next
13850 } else {
13851 # Replace #undef with comments. This is necessary, for example,
13852 # in the case of _POSIX_SOURCE, which is predefined and required
13853 # on some systems where configure will not decide to define it.
13854 if (defundef == "undef") {
13855 print "/*", prefix defundef, macro, "*/"
13856 next
13860 { print }
13861 _ACAWK
13862 _ACEOF
13863 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13864 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13865 fi # test -n "$CONFIG_HEADERS"
13868 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13869 shift
13870 for ac_tag
13872 case $ac_tag in
13873 :[FHLC]) ac_mode=$ac_tag; continue;;
13874 esac
13875 case $ac_mode$ac_tag in
13876 :[FHL]*:*);;
13877 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13878 :[FH]-) ac_tag=-:-;;
13879 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13880 esac
13881 ac_save_IFS=$IFS
13882 IFS=:
13883 set x $ac_tag
13884 IFS=$ac_save_IFS
13885 shift
13886 ac_file=$1
13887 shift
13889 case $ac_mode in
13890 :L) ac_source=$1;;
13891 :[FH])
13892 ac_file_inputs=
13893 for ac_f
13895 case $ac_f in
13896 -) ac_f="$ac_tmp/stdin";;
13897 *) # Look for the file first in the build tree, then in the source tree
13898 # (if the path is not absolute). The absolute path cannot be DOS-style,
13899 # because $ac_f cannot contain `:'.
13900 test -f "$ac_f" ||
13901 case $ac_f in
13902 [\\/$]*) false;;
13903 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13904 esac ||
13905 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13906 esac
13907 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13908 as_fn_append ac_file_inputs " '$ac_f'"
13909 done
13911 # Let's still pretend it is `configure' which instantiates (i.e., don't
13912 # use $as_me), people would be surprised to read:
13913 # /* config.h. Generated by config.status. */
13914 configure_input='Generated from '`
13915 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13916 `' by configure.'
13917 if test x"$ac_file" != x-; then
13918 configure_input="$ac_file. $configure_input"
13919 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13920 $as_echo "$as_me: creating $ac_file" >&6;}
13922 # Neutralize special characters interpreted by sed in replacement strings.
13923 case $configure_input in #(
13924 *\&* | *\|* | *\\* )
13925 ac_sed_conf_input=`$as_echo "$configure_input" |
13926 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13927 *) ac_sed_conf_input=$configure_input;;
13928 esac
13930 case $ac_tag in
13931 *:-:* | *:-) cat >"$ac_tmp/stdin" \
13932 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13933 esac
13935 esac
13937 ac_dir=`$as_dirname -- "$ac_file" ||
13938 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13939 X"$ac_file" : 'X\(//\)[^/]' \| \
13940 X"$ac_file" : 'X\(//\)$' \| \
13941 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13942 $as_echo X"$ac_file" |
13943 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13944 s//\1/
13947 /^X\(\/\/\)[^/].*/{
13948 s//\1/
13951 /^X\(\/\/\)$/{
13952 s//\1/
13955 /^X\(\/\).*/{
13956 s//\1/
13959 s/.*/./; q'`
13960 as_dir="$ac_dir"; as_fn_mkdir_p
13961 ac_builddir=.
13963 case "$ac_dir" in
13964 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13966 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13967 # A ".." for each directory in $ac_dir_suffix.
13968 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13969 case $ac_top_builddir_sub in
13970 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13971 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13972 esac ;;
13973 esac
13974 ac_abs_top_builddir=$ac_pwd
13975 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13976 # for backward compatibility:
13977 ac_top_builddir=$ac_top_build_prefix
13979 case $srcdir in
13980 .) # We are building in place.
13981 ac_srcdir=.
13982 ac_top_srcdir=$ac_top_builddir_sub
13983 ac_abs_top_srcdir=$ac_pwd ;;
13984 [\\/]* | ?:[\\/]* ) # Absolute name.
13985 ac_srcdir=$srcdir$ac_dir_suffix;
13986 ac_top_srcdir=$srcdir
13987 ac_abs_top_srcdir=$srcdir ;;
13988 *) # Relative name.
13989 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13990 ac_top_srcdir=$ac_top_build_prefix$srcdir
13991 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13992 esac
13993 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13996 case $ac_mode in
13999 # CONFIG_FILE
14002 case $INSTALL in
14003 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14004 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14005 esac
14006 ac_MKDIR_P=$MKDIR_P
14007 case $MKDIR_P in
14008 [\\/$]* | ?:[\\/]* ) ;;
14009 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14010 esac
14011 _ACEOF
14013 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14014 # If the template does not know about datarootdir, expand it.
14015 # FIXME: This hack should be removed a few years after 2.60.
14016 ac_datarootdir_hack=; ac_datarootdir_seen=
14017 ac_sed_dataroot='
14018 /datarootdir/ {
14022 /@datadir@/p
14023 /@docdir@/p
14024 /@infodir@/p
14025 /@localedir@/p
14026 /@mandir@/p'
14027 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14028 *datarootdir*) ac_datarootdir_seen=yes;;
14029 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14030 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14031 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14032 _ACEOF
14033 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14034 ac_datarootdir_hack='
14035 s&@datadir@&$datadir&g
14036 s&@docdir@&$docdir&g
14037 s&@infodir@&$infodir&g
14038 s&@localedir@&$localedir&g
14039 s&@mandir@&$mandir&g
14040 s&\\\${datarootdir}&$datarootdir&g' ;;
14041 esac
14042 _ACEOF
14044 # Neutralize VPATH when `$srcdir' = `.'.
14045 # Shell code in configure.ac might set extrasub.
14046 # FIXME: do we really want to maintain this feature?
14047 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14048 ac_sed_extra="$ac_vpsub
14049 $extrasub
14050 _ACEOF
14051 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14053 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14054 s|@configure_input@|$ac_sed_conf_input|;t t
14055 s&@top_builddir@&$ac_top_builddir_sub&;t t
14056 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14057 s&@srcdir@&$ac_srcdir&;t t
14058 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14059 s&@top_srcdir@&$ac_top_srcdir&;t t
14060 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14061 s&@builddir@&$ac_builddir&;t t
14062 s&@abs_builddir@&$ac_abs_builddir&;t t
14063 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14064 s&@INSTALL@&$ac_INSTALL&;t t
14065 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14066 $ac_datarootdir_hack
14068 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14069 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14071 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14072 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14073 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
14074 "$ac_tmp/out"`; test -z "$ac_out"; } &&
14075 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14076 which seems to be undefined. Please make sure it is defined" >&5
14077 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14078 which seems to be undefined. Please make sure it is defined" >&2;}
14080 rm -f "$ac_tmp/stdin"
14081 case $ac_file in
14082 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14083 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14084 esac \
14085 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14089 # CONFIG_HEADER
14091 if test x"$ac_file" != x-; then
14093 $as_echo "/* $configure_input */" \
14094 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14095 } >"$ac_tmp/config.h" \
14096 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14097 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14098 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14099 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14100 else
14101 rm -f "$ac_file"
14102 mv "$ac_tmp/config.h" "$ac_file" \
14103 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14105 else
14106 $as_echo "/* $configure_input */" \
14107 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14108 || as_fn_error $? "could not create -" "$LINENO" 5
14110 # Compute "$ac_file"'s index in $config_headers.
14111 _am_arg="$ac_file"
14112 _am_stamp_count=1
14113 for _am_header in $config_headers :; do
14114 case $_am_header in
14115 $_am_arg | $_am_arg:* )
14116 break ;;
14118 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14119 esac
14120 done
14121 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14122 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14123 X"$_am_arg" : 'X\(//\)[^/]' \| \
14124 X"$_am_arg" : 'X\(//\)$' \| \
14125 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14126 $as_echo X"$_am_arg" |
14127 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14128 s//\1/
14131 /^X\(\/\/\)[^/].*/{
14132 s//\1/
14135 /^X\(\/\/\)$/{
14136 s//\1/
14139 /^X\(\/\).*/{
14140 s//\1/
14143 s/.*/./; q'`/stamp-h$_am_stamp_count
14146 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14147 $as_echo "$as_me: executing $ac_file commands" >&6;}
14149 esac
14152 case $ac_file$ac_mode in
14153 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14154 # Older Autoconf quotes --file arguments for eval, but not when files
14155 # are listed without --file. Let's play safe and only enable the eval
14156 # if we detect the quoting.
14157 case $CONFIG_FILES in
14158 *\'*) eval set x "$CONFIG_FILES" ;;
14159 *) set x $CONFIG_FILES ;;
14160 esac
14161 shift
14162 for mf
14164 # Strip MF so we end up with the name of the file.
14165 mf=`echo "$mf" | sed -e 's/:.*$//'`
14166 # Check whether this is an Automake generated Makefile or not.
14167 # We used to match only the files named 'Makefile.in', but
14168 # some people rename them; so instead we look at the file content.
14169 # Grep'ing the first line is not enough: some people post-process
14170 # each Makefile.in and add a new line on top of each file to say so.
14171 # Grep'ing the whole file is not good either: AIX grep has a line
14172 # limit of 2048, but all sed's we know have understand at least 4000.
14173 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14174 dirpart=`$as_dirname -- "$mf" ||
14175 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14176 X"$mf" : 'X\(//\)[^/]' \| \
14177 X"$mf" : 'X\(//\)$' \| \
14178 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14179 $as_echo X"$mf" |
14180 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14181 s//\1/
14184 /^X\(\/\/\)[^/].*/{
14185 s//\1/
14188 /^X\(\/\/\)$/{
14189 s//\1/
14192 /^X\(\/\).*/{
14193 s//\1/
14196 s/.*/./; q'`
14197 else
14198 continue
14200 # Extract the definition of DEPDIR, am__include, and am__quote
14201 # from the Makefile without running 'make'.
14202 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14203 test -z "$DEPDIR" && continue
14204 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14205 test -z "$am__include" && continue
14206 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14207 # Find all dependency output files, they are included files with
14208 # $(DEPDIR) in their names. We invoke sed twice because it is the
14209 # simplest approach to changing $(DEPDIR) to its actual value in the
14210 # expansion.
14211 for file in `sed -n "
14212 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14213 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
14214 # Make sure the directory exists.
14215 test -f "$dirpart/$file" && continue
14216 fdir=`$as_dirname -- "$file" ||
14217 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14218 X"$file" : 'X\(//\)[^/]' \| \
14219 X"$file" : 'X\(//\)$' \| \
14220 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14221 $as_echo X"$file" |
14222 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14223 s//\1/
14226 /^X\(\/\/\)[^/].*/{
14227 s//\1/
14230 /^X\(\/\/\)$/{
14231 s//\1/
14234 /^X\(\/\).*/{
14235 s//\1/
14238 s/.*/./; q'`
14239 as_dir=$dirpart/$fdir; as_fn_mkdir_p
14240 # echo "creating $dirpart/$file"
14241 echo '# dummy' > "$dirpart/$file"
14242 done
14243 done
14246 "libtool":C)
14248 # See if we are running on zsh, and set the options which allow our
14249 # commands through without removal of \ escapes.
14250 if test -n "${ZSH_VERSION+set}" ; then
14251 setopt NO_GLOB_SUBST
14254 cfgfile="${ofile}T"
14255 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14256 $RM "$cfgfile"
14258 cat <<_LT_EOF >> "$cfgfile"
14259 #! $SHELL
14261 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14262 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14263 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14264 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14266 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14267 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
14268 # Written by Gordon Matzigkeit, 1996
14270 # This file is part of GNU Libtool.
14272 # GNU Libtool is free software; you can redistribute it and/or
14273 # modify it under the terms of the GNU General Public License as
14274 # published by the Free Software Foundation; either version 2 of
14275 # the License, or (at your option) any later version.
14277 # As a special exception to the GNU General Public License,
14278 # if you distribute this file as part of a program or library that
14279 # is built using GNU Libtool, you may include this file under the
14280 # same distribution terms that you use for the rest of that program.
14282 # GNU Libtool is distributed in the hope that it will be useful,
14283 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14284 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14285 # GNU General Public License for more details.
14287 # You should have received a copy of the GNU General Public License
14288 # along with GNU Libtool; see the file COPYING. If not, a copy
14289 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14290 # obtained by writing to the Free Software Foundation, Inc.,
14291 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14294 # The names of the tagged configurations supported by this script.
14295 available_tags=""
14297 # ### BEGIN LIBTOOL CONFIG
14299 # Which release of libtool.m4 was used?
14300 macro_version=$macro_version
14301 macro_revision=$macro_revision
14303 # Whether or not to build shared libraries.
14304 build_libtool_libs=$enable_shared
14306 # Whether or not to build static libraries.
14307 build_old_libs=$enable_static
14309 # What type of objects to build.
14310 pic_mode=$pic_mode
14312 # Whether or not to optimize for fast installation.
14313 fast_install=$enable_fast_install
14315 # Shell to use when invoking shell scripts.
14316 SHELL=$lt_SHELL
14318 # An echo program that protects backslashes.
14319 ECHO=$lt_ECHO
14321 # The host system.
14322 host_alias=$host_alias
14323 host=$host
14324 host_os=$host_os
14326 # The build system.
14327 build_alias=$build_alias
14328 build=$build
14329 build_os=$build_os
14331 # A sed program that does not truncate output.
14332 SED=$lt_SED
14334 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14335 Xsed="\$SED -e 1s/^X//"
14337 # A grep program that handles long lines.
14338 GREP=$lt_GREP
14340 # An ERE matcher.
14341 EGREP=$lt_EGREP
14343 # A literal string matcher.
14344 FGREP=$lt_FGREP
14346 # A BSD- or MS-compatible name lister.
14347 NM=$lt_NM
14349 # Whether we need soft or hard links.
14350 LN_S=$lt_LN_S
14352 # What is the maximum length of a command?
14353 max_cmd_len=$max_cmd_len
14355 # Object file suffix (normally "o").
14356 objext=$ac_objext
14358 # Executable file suffix (normally "").
14359 exeext=$exeext
14361 # whether the shell understands "unset".
14362 lt_unset=$lt_unset
14364 # turn spaces into newlines.
14365 SP2NL=$lt_lt_SP2NL
14367 # turn newlines into spaces.
14368 NL2SP=$lt_lt_NL2SP
14370 # An object symbol dumper.
14371 OBJDUMP=$lt_OBJDUMP
14373 # Method to check whether dependent libraries are shared objects.
14374 deplibs_check_method=$lt_deplibs_check_method
14376 # Command to use when deplibs_check_method == "file_magic".
14377 file_magic_cmd=$lt_file_magic_cmd
14379 # The archiver.
14380 AR=$lt_AR
14381 AR_FLAGS=$lt_AR_FLAGS
14383 # A symbol stripping program.
14384 STRIP=$lt_STRIP
14386 # Commands used to install an old-style archive.
14387 RANLIB=$lt_RANLIB
14388 old_postinstall_cmds=$lt_old_postinstall_cmds
14389 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14391 # Whether to use a lock for old archive extraction.
14392 lock_old_archive_extraction=$lock_old_archive_extraction
14394 # A C compiler.
14395 LTCC=$lt_CC
14397 # LTCC compiler flags.
14398 LTCFLAGS=$lt_CFLAGS
14400 # Take the output of nm and produce a listing of raw symbols and C names.
14401 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14403 # Transform the output of nm in a proper C declaration.
14404 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14406 # Transform the output of nm in a C name address pair.
14407 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14409 # Transform the output of nm in a C name address pair when lib prefix is needed.
14410 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14412 # The name of the directory that contains temporary libtool files.
14413 objdir=$objdir
14415 # Used to examine libraries when file_magic_cmd begins with "file".
14416 MAGIC_CMD=$MAGIC_CMD
14418 # Must we lock files when doing compilation?
14419 need_locks=$lt_need_locks
14421 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14422 DSYMUTIL=$lt_DSYMUTIL
14424 # Tool to change global to local symbols on Mac OS X.
14425 NMEDIT=$lt_NMEDIT
14427 # Tool to manipulate fat objects and archives on Mac OS X.
14428 LIPO=$lt_LIPO
14430 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14431 OTOOL=$lt_OTOOL
14433 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14434 OTOOL64=$lt_OTOOL64
14436 # Old archive suffix (normally "a").
14437 libext=$libext
14439 # Shared library suffix (normally ".so").
14440 shrext_cmds=$lt_shrext_cmds
14442 # The commands to extract the exported symbol list from a shared archive.
14443 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14445 # Variables whose values should be saved in libtool wrapper scripts and
14446 # restored at link time.
14447 variables_saved_for_relink=$lt_variables_saved_for_relink
14449 # Do we need the "lib" prefix for modules?
14450 need_lib_prefix=$need_lib_prefix
14452 # Do we need a version for libraries?
14453 need_version=$need_version
14455 # Library versioning type.
14456 version_type=$version_type
14458 # Shared library runtime path variable.
14459 runpath_var=$runpath_var
14461 # Shared library path variable.
14462 shlibpath_var=$shlibpath_var
14464 # Is shlibpath searched before the hard-coded library search path?
14465 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14467 # Format of library name prefix.
14468 libname_spec=$lt_libname_spec
14470 # List of archive names. First name is the real one, the rest are links.
14471 # The last name is the one that the linker finds with -lNAME
14472 library_names_spec=$lt_library_names_spec
14474 # The coded name of the library, if different from the real name.
14475 soname_spec=$lt_soname_spec
14477 # Permission mode override for installation of shared libraries.
14478 install_override_mode=$lt_install_override_mode
14480 # Command to use after installation of a shared archive.
14481 postinstall_cmds=$lt_postinstall_cmds
14483 # Command to use after uninstallation of a shared archive.
14484 postuninstall_cmds=$lt_postuninstall_cmds
14486 # Commands used to finish a libtool library installation in a directory.
14487 finish_cmds=$lt_finish_cmds
14489 # As "finish_cmds", except a single script fragment to be evaled but
14490 # not shown.
14491 finish_eval=$lt_finish_eval
14493 # Whether we should hardcode library paths into libraries.
14494 hardcode_into_libs=$hardcode_into_libs
14496 # Compile-time system search path for libraries.
14497 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14499 # Run-time system search path for libraries.
14500 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14502 # Whether dlopen is supported.
14503 dlopen_support=$enable_dlopen
14505 # Whether dlopen of programs is supported.
14506 dlopen_self=$enable_dlopen_self
14508 # Whether dlopen of statically linked programs is supported.
14509 dlopen_self_static=$enable_dlopen_self_static
14511 # Commands to strip libraries.
14512 old_striplib=$lt_old_striplib
14513 striplib=$lt_striplib
14516 # The linker used to build libraries.
14517 LD=$lt_LD
14519 # How to create reloadable object files.
14520 reload_flag=$lt_reload_flag
14521 reload_cmds=$lt_reload_cmds
14523 # Commands used to build an old-style archive.
14524 old_archive_cmds=$lt_old_archive_cmds
14526 # A language specific compiler.
14527 CC=$lt_compiler
14529 # Is the compiler the GNU compiler?
14530 with_gcc=$GCC
14532 # Compiler flag to turn off builtin functions.
14533 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14535 # How to pass a linker flag through the compiler.
14536 wl=$lt_lt_prog_compiler_wl
14538 # Additional compiler flags for building library objects.
14539 pic_flag=$lt_lt_prog_compiler_pic
14541 # Compiler flag to prevent dynamic linking.
14542 link_static_flag=$lt_lt_prog_compiler_static
14544 # Does compiler simultaneously support -c and -o options?
14545 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14547 # Whether or not to add -lc for building shared libraries.
14548 build_libtool_need_lc=$archive_cmds_need_lc
14550 # Whether or not to disallow shared libs when runtime libs are static.
14551 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14553 # Compiler flag to allow reflexive dlopens.
14554 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14556 # Compiler flag to generate shared objects directly from archives.
14557 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14559 # Whether the compiler copes with passing no objects directly.
14560 compiler_needs_object=$lt_compiler_needs_object
14562 # Create an old-style archive from a shared archive.
14563 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14565 # Create a temporary old-style archive to link instead of a shared archive.
14566 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14568 # Commands used to build a shared archive.
14569 archive_cmds=$lt_archive_cmds
14570 archive_expsym_cmds=$lt_archive_expsym_cmds
14572 # Commands used to build a loadable module if different from building
14573 # a shared archive.
14574 module_cmds=$lt_module_cmds
14575 module_expsym_cmds=$lt_module_expsym_cmds
14577 # Whether we are building with GNU ld or not.
14578 with_gnu_ld=$lt_with_gnu_ld
14580 # Flag that allows shared libraries with undefined symbols to be built.
14581 allow_undefined_flag=$lt_allow_undefined_flag
14583 # Flag that enforces no undefined symbols.
14584 no_undefined_flag=$lt_no_undefined_flag
14586 # Flag to hardcode \$libdir into a binary during linking.
14587 # This must work even if \$libdir does not exist
14588 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14590 # If ld is used when linking, flag to hardcode \$libdir into a binary
14591 # during linking. This must work even if \$libdir does not exist.
14592 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14594 # Whether we need a single "-rpath" flag with a separated argument.
14595 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14597 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14598 # DIR into the resulting binary.
14599 hardcode_direct=$hardcode_direct
14601 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14602 # DIR into the resulting binary and the resulting library dependency is
14603 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14604 # library is relocated.
14605 hardcode_direct_absolute=$hardcode_direct_absolute
14607 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14608 # into the resulting binary.
14609 hardcode_minus_L=$hardcode_minus_L
14611 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14612 # into the resulting binary.
14613 hardcode_shlibpath_var=$hardcode_shlibpath_var
14615 # Set to "yes" if building a shared library automatically hardcodes DIR
14616 # into the library and all subsequent libraries and executables linked
14617 # against it.
14618 hardcode_automatic=$hardcode_automatic
14620 # Set to yes if linker adds runtime paths of dependent libraries
14621 # to runtime path list.
14622 inherit_rpath=$inherit_rpath
14624 # Whether libtool must link a program against all its dependency libraries.
14625 link_all_deplibs=$link_all_deplibs
14627 # Fix the shell variable \$srcfile for the compiler.
14628 fix_srcfile_path=$lt_fix_srcfile_path
14630 # Set to "yes" if exported symbols are required.
14631 always_export_symbols=$always_export_symbols
14633 # The commands to list exported symbols.
14634 export_symbols_cmds=$lt_export_symbols_cmds
14636 # Symbols that should not be listed in the preloaded symbols.
14637 exclude_expsyms=$lt_exclude_expsyms
14639 # Symbols that must always be exported.
14640 include_expsyms=$lt_include_expsyms
14642 # Commands necessary for linking programs (against libraries) with templates.
14643 prelink_cmds=$lt_prelink_cmds
14645 # Specify filename containing input files.
14646 file_list_spec=$lt_file_list_spec
14648 # How to hardcode a shared library path into an executable.
14649 hardcode_action=$hardcode_action
14651 # ### END LIBTOOL CONFIG
14653 _LT_EOF
14655 case $host_os in
14656 aix3*)
14657 cat <<\_LT_EOF >> "$cfgfile"
14658 # AIX sometimes has problems with the GCC collect2 program. For some
14659 # reason, if we set the COLLECT_NAMES environment variable, the problems
14660 # vanish in a puff of smoke.
14661 if test "X${COLLECT_NAMES+set}" != Xset; then
14662 COLLECT_NAMES=
14663 export COLLECT_NAMES
14665 _LT_EOF
14667 esac
14670 ltmain="$ac_aux_dir/ltmain.sh"
14673 # We use sed instead of cat because bash on DJGPP gets confused if
14674 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14675 # text mode, it properly converts lines to CR/LF. This bash problem
14676 # is reportedly fixed, but why not run on old versions too?
14677 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
14678 || (rm -f "$cfgfile"; exit 1)
14680 case $xsi_shell in
14681 yes)
14682 cat << \_LT_EOF >> "$cfgfile"
14684 # func_dirname file append nondir_replacement
14685 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
14686 # otherwise set result to NONDIR_REPLACEMENT.
14687 func_dirname ()
14689 case ${1} in
14690 */*) func_dirname_result="${1%/*}${2}" ;;
14691 * ) func_dirname_result="${3}" ;;
14692 esac
14695 # func_basename file
14696 func_basename ()
14698 func_basename_result="${1##*/}"
14701 # func_dirname_and_basename file append nondir_replacement
14702 # perform func_basename and func_dirname in a single function
14703 # call:
14704 # dirname: Compute the dirname of FILE. If nonempty,
14705 # add APPEND to the result, otherwise set result
14706 # to NONDIR_REPLACEMENT.
14707 # value returned in "$func_dirname_result"
14708 # basename: Compute filename of FILE.
14709 # value retuned in "$func_basename_result"
14710 # Implementation must be kept synchronized with func_dirname
14711 # and func_basename. For efficiency, we do not delegate to
14712 # those functions but instead duplicate the functionality here.
14713 func_dirname_and_basename ()
14715 case ${1} in
14716 */*) func_dirname_result="${1%/*}${2}" ;;
14717 * ) func_dirname_result="${3}" ;;
14718 esac
14719 func_basename_result="${1##*/}"
14722 # func_stripname prefix suffix name
14723 # strip PREFIX and SUFFIX off of NAME.
14724 # PREFIX and SUFFIX must not contain globbing or regex special
14725 # characters, hashes, percent signs, but SUFFIX may contain a leading
14726 # dot (in which case that matches only a dot).
14727 func_stripname ()
14729 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
14730 # positional parameters, so assign one to ordinary parameter first.
14731 func_stripname_result=${3}
14732 func_stripname_result=${func_stripname_result#"${1}"}
14733 func_stripname_result=${func_stripname_result%"${2}"}
14736 # func_opt_split
14737 func_opt_split ()
14739 func_opt_split_opt=${1%%=*}
14740 func_opt_split_arg=${1#*=}
14743 # func_lo2o object
14744 func_lo2o ()
14746 case ${1} in
14747 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
14748 *) func_lo2o_result=${1} ;;
14749 esac
14752 # func_xform libobj-or-source
14753 func_xform ()
14755 func_xform_result=${1%.*}.lo
14758 # func_arith arithmetic-term...
14759 func_arith ()
14761 func_arith_result=$(( $* ))
14764 # func_len string
14765 # STRING may not start with a hyphen.
14766 func_len ()
14768 func_len_result=${#1}
14771 _LT_EOF
14773 *) # Bourne compatible functions.
14774 cat << \_LT_EOF >> "$cfgfile"
14776 # func_dirname file append nondir_replacement
14777 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
14778 # otherwise set result to NONDIR_REPLACEMENT.
14779 func_dirname ()
14781 # Extract subdirectory from the argument.
14782 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
14783 if test "X$func_dirname_result" = "X${1}"; then
14784 func_dirname_result="${3}"
14785 else
14786 func_dirname_result="$func_dirname_result${2}"
14790 # func_basename file
14791 func_basename ()
14793 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
14797 # func_stripname prefix suffix name
14798 # strip PREFIX and SUFFIX off of NAME.
14799 # PREFIX and SUFFIX must not contain globbing or regex special
14800 # characters, hashes, percent signs, but SUFFIX may contain a leading
14801 # dot (in which case that matches only a dot).
14802 # func_strip_suffix prefix name
14803 func_stripname ()
14805 case ${2} in
14806 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
14807 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
14808 esac
14811 # sed scripts:
14812 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
14813 my_sed_long_arg='1s/^-[^=]*=//'
14815 # func_opt_split
14816 func_opt_split ()
14818 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
14819 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
14822 # func_lo2o object
14823 func_lo2o ()
14825 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
14828 # func_xform libobj-or-source
14829 func_xform ()
14831 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
14834 # func_arith arithmetic-term...
14835 func_arith ()
14837 func_arith_result=`expr "$@"`
14840 # func_len string
14841 # STRING may not start with a hyphen.
14842 func_len ()
14844 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
14847 _LT_EOF
14848 esac
14850 case $lt_shell_append in
14851 yes)
14852 cat << \_LT_EOF >> "$cfgfile"
14854 # func_append var value
14855 # Append VALUE to the end of shell variable VAR.
14856 func_append ()
14858 eval "$1+=\$2"
14860 _LT_EOF
14863 cat << \_LT_EOF >> "$cfgfile"
14865 # func_append var value
14866 # Append VALUE to the end of shell variable VAR.
14867 func_append ()
14869 eval "$1=\$$1\$2"
14872 _LT_EOF
14874 esac
14877 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
14878 || (rm -f "$cfgfile"; exit 1)
14880 mv -f "$cfgfile" "$ofile" ||
14881 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14882 chmod +x "$ofile"
14886 esac
14887 done # for ac_tag
14890 as_fn_exit 0
14891 _ACEOF
14892 ac_clean_files=$ac_clean_files_save
14894 test $ac_write_fail = 0 ||
14895 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14898 # configure is writing to config.log, and then calls config.status.
14899 # config.status does its own redirection, appending to config.log.
14900 # Unfortunately, on DOS this fails, as config.log is still kept open
14901 # by configure, so config.status won't be able to write to it; its
14902 # output is simply discarded. So we exec the FD to /dev/null,
14903 # effectively closing config.log, so it can be properly (re)opened and
14904 # appended to by config.status. When coming back to configure, we
14905 # need to make the FD available again.
14906 if test "$no_create" != yes; then
14907 ac_cs_success=:
14908 ac_config_status_args=
14909 test "$silent" = yes &&
14910 ac_config_status_args="$ac_config_status_args --quiet"
14911 exec 5>/dev/null
14912 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14913 exec 5>>config.log
14914 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14915 # would make configure fail if this is the last instruction.
14916 $ac_cs_success || as_fn_exit 1
14918 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14919 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14920 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}