Fix build on sparc64-linux-gnu.
[official-gcc.git] / lto-plugin / configure
blob8fdcab96d209b790dea0716414924852082558bd
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 get_gcc_base_ver
654 real_target_noncanonical
655 accel_dir_suffix
656 gcc_build_dir
657 ac_lto_plugin_ldflags
658 ac_lto_plugin_warn_cflags
659 EGREP
660 GREP
662 am__fastdepCC_FALSE
663 am__fastdepCC_TRUE
664 CCDEPMODE
665 am__nodep
666 AMDEPBACKSLASH
667 AMDEP_FALSE
668 AMDEP_TRUE
669 am__quote
670 am__include
671 DEPDIR
672 OBJEXT
673 EXEEXT
674 ac_ct_CC
675 CPPFLAGS
676 LDFLAGS
677 CFLAGS
679 with_libiberty
680 MAINT
681 MAINTAINER_MODE_FALSE
682 MAINTAINER_MODE_TRUE
683 AM_BACKSLASH
684 AM_DEFAULT_VERBOSITY
685 AM_DEFAULT_V
686 AM_V
687 am__untar
688 am__tar
689 AMTAR
690 am__leading_dot
691 SET_MAKE
693 mkdir_p
694 MKDIR_P
695 INSTALL_STRIP_PROGRAM
696 STRIP
697 install_sh
698 MAKEINFO
699 AUTOHEADER
700 AUTOMAKE
701 AUTOCONF
702 ACLOCAL
703 VERSION
704 PACKAGE
705 CYGPATH_W
706 am__isrc
707 INSTALL_DATA
708 INSTALL_SCRIPT
709 INSTALL_PROGRAM
710 target_subdir
711 host_subdir
712 build_subdir
713 build_libsubdir
714 target_os
715 target_vendor
716 target_cpu
717 target
718 host_os
719 host_vendor
720 host_cpu
721 host
722 build_os
723 build_vendor
724 build_cpu
725 build
726 target_alias
727 host_alias
728 build_alias
729 LIBS
730 ECHO_T
731 ECHO_N
732 ECHO_C
733 DEFS
734 mandir
735 localedir
736 libdir
737 psdir
738 pdfdir
739 dvidir
740 htmldir
741 infodir
742 docdir
743 oldincludedir
744 includedir
745 localstatedir
746 sharedstatedir
747 sysconfdir
748 datadir
749 datarootdir
750 libexecdir
751 sbindir
752 bindir
753 program_transform_name
754 prefix
755 exec_prefix
756 PACKAGE_URL
757 PACKAGE_BUGREPORT
758 PACKAGE_STRING
759 PACKAGE_VERSION
760 PACKAGE_TARNAME
761 PACKAGE_NAME
762 PATH_SEPARATOR
763 SHELL'
764 ac_subst_files=''
765 ac_user_opts='
766 enable_option_checking
767 with_build_libsubdir
768 enable_silent_rules
769 enable_maintainer_mode
770 with_libiberty
771 enable_dependency_tracking
772 enable_largefile
773 with_gcc_major_version_only
774 enable_shared
775 enable_static
776 with_pic
777 enable_fast_install
778 with_gnu_ld
779 enable_libtool_lock
781 ac_precious_vars='build_alias
782 host_alias
783 target_alias
785 CFLAGS
786 LDFLAGS
787 LIBS
788 CPPFLAGS
789 CPP'
792 # Initialize some variables set by options.
793 ac_init_help=
794 ac_init_version=false
795 ac_unrecognized_opts=
796 ac_unrecognized_sep=
797 # The variables have the same names as the options, with
798 # dashes changed to underlines.
799 cache_file=/dev/null
800 exec_prefix=NONE
801 no_create=
802 no_recursion=
803 prefix=NONE
804 program_prefix=NONE
805 program_suffix=NONE
806 program_transform_name=s,x,x,
807 silent=
808 site=
809 srcdir=
810 verbose=
811 x_includes=NONE
812 x_libraries=NONE
814 # Installation directory options.
815 # These are left unexpanded so users can "make install exec_prefix=/foo"
816 # and all the variables that are supposed to be based on exec_prefix
817 # by default will actually change.
818 # Use braces instead of parens because sh, perl, etc. also accept them.
819 # (The list follows the same order as the GNU Coding Standards.)
820 bindir='${exec_prefix}/bin'
821 sbindir='${exec_prefix}/sbin'
822 libexecdir='${exec_prefix}/libexec'
823 datarootdir='${prefix}/share'
824 datadir='${datarootdir}'
825 sysconfdir='${prefix}/etc'
826 sharedstatedir='${prefix}/com'
827 localstatedir='${prefix}/var'
828 includedir='${prefix}/include'
829 oldincludedir='/usr/include'
830 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
831 infodir='${datarootdir}/info'
832 htmldir='${docdir}'
833 dvidir='${docdir}'
834 pdfdir='${docdir}'
835 psdir='${docdir}'
836 libdir='${exec_prefix}/lib'
837 localedir='${datarootdir}/locale'
838 mandir='${datarootdir}/man'
840 ac_prev=
841 ac_dashdash=
842 for ac_option
844 # If the previous option needs an argument, assign it.
845 if test -n "$ac_prev"; then
846 eval $ac_prev=\$ac_option
847 ac_prev=
848 continue
851 case $ac_option in
852 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
853 *=) ac_optarg= ;;
854 *) ac_optarg=yes ;;
855 esac
857 # Accept the important Cygnus configure options, so we can diagnose typos.
859 case $ac_dashdash$ac_option in
861 ac_dashdash=yes ;;
863 -bindir | --bindir | --bindi | --bind | --bin | --bi)
864 ac_prev=bindir ;;
865 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
866 bindir=$ac_optarg ;;
868 -build | --build | --buil | --bui | --bu)
869 ac_prev=build_alias ;;
870 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
871 build_alias=$ac_optarg ;;
873 -cache-file | --cache-file | --cache-fil | --cache-fi \
874 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
875 ac_prev=cache_file ;;
876 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
877 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
878 cache_file=$ac_optarg ;;
880 --config-cache | -C)
881 cache_file=config.cache ;;
883 -datadir | --datadir | --datadi | --datad)
884 ac_prev=datadir ;;
885 -datadir=* | --datadir=* | --datadi=* | --datad=*)
886 datadir=$ac_optarg ;;
888 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
889 | --dataroo | --dataro | --datar)
890 ac_prev=datarootdir ;;
891 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
892 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
893 datarootdir=$ac_optarg ;;
895 -disable-* | --disable-*)
896 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
897 # Reject names that are not valid shell variable names.
898 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
899 as_fn_error $? "invalid feature name: $ac_useropt"
900 ac_useropt_orig=$ac_useropt
901 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
902 case $ac_user_opts in
904 "enable_$ac_useropt"
905 "*) ;;
906 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
907 ac_unrecognized_sep=', ';;
908 esac
909 eval enable_$ac_useropt=no ;;
911 -docdir | --docdir | --docdi | --doc | --do)
912 ac_prev=docdir ;;
913 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
914 docdir=$ac_optarg ;;
916 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
917 ac_prev=dvidir ;;
918 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
919 dvidir=$ac_optarg ;;
921 -enable-* | --enable-*)
922 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
923 # Reject names that are not valid shell variable names.
924 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
925 as_fn_error $? "invalid feature name: $ac_useropt"
926 ac_useropt_orig=$ac_useropt
927 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
928 case $ac_user_opts in
930 "enable_$ac_useropt"
931 "*) ;;
932 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
933 ac_unrecognized_sep=', ';;
934 esac
935 eval enable_$ac_useropt=\$ac_optarg ;;
937 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
938 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
939 | --exec | --exe | --ex)
940 ac_prev=exec_prefix ;;
941 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
942 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
943 | --exec=* | --exe=* | --ex=*)
944 exec_prefix=$ac_optarg ;;
946 -gas | --gas | --ga | --g)
947 # Obsolete; use --with-gas.
948 with_gas=yes ;;
950 -help | --help | --hel | --he | -h)
951 ac_init_help=long ;;
952 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
953 ac_init_help=recursive ;;
954 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
955 ac_init_help=short ;;
957 -host | --host | --hos | --ho)
958 ac_prev=host_alias ;;
959 -host=* | --host=* | --hos=* | --ho=*)
960 host_alias=$ac_optarg ;;
962 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
963 ac_prev=htmldir ;;
964 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
965 | --ht=*)
966 htmldir=$ac_optarg ;;
968 -includedir | --includedir | --includedi | --included | --include \
969 | --includ | --inclu | --incl | --inc)
970 ac_prev=includedir ;;
971 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
972 | --includ=* | --inclu=* | --incl=* | --inc=*)
973 includedir=$ac_optarg ;;
975 -infodir | --infodir | --infodi | --infod | --info | --inf)
976 ac_prev=infodir ;;
977 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
978 infodir=$ac_optarg ;;
980 -libdir | --libdir | --libdi | --libd)
981 ac_prev=libdir ;;
982 -libdir=* | --libdir=* | --libdi=* | --libd=*)
983 libdir=$ac_optarg ;;
985 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
986 | --libexe | --libex | --libe)
987 ac_prev=libexecdir ;;
988 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
989 | --libexe=* | --libex=* | --libe=*)
990 libexecdir=$ac_optarg ;;
992 -localedir | --localedir | --localedi | --localed | --locale)
993 ac_prev=localedir ;;
994 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
995 localedir=$ac_optarg ;;
997 -localstatedir | --localstatedir | --localstatedi | --localstated \
998 | --localstate | --localstat | --localsta | --localst | --locals)
999 ac_prev=localstatedir ;;
1000 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1001 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1002 localstatedir=$ac_optarg ;;
1004 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1005 ac_prev=mandir ;;
1006 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1007 mandir=$ac_optarg ;;
1009 -nfp | --nfp | --nf)
1010 # Obsolete; use --without-fp.
1011 with_fp=no ;;
1013 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1014 | --no-cr | --no-c | -n)
1015 no_create=yes ;;
1017 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1018 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1019 no_recursion=yes ;;
1021 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1022 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1023 | --oldin | --oldi | --old | --ol | --o)
1024 ac_prev=oldincludedir ;;
1025 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1026 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1027 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1028 oldincludedir=$ac_optarg ;;
1030 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1031 ac_prev=prefix ;;
1032 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1033 prefix=$ac_optarg ;;
1035 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1036 | --program-pre | --program-pr | --program-p)
1037 ac_prev=program_prefix ;;
1038 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1039 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1040 program_prefix=$ac_optarg ;;
1042 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1043 | --program-suf | --program-su | --program-s)
1044 ac_prev=program_suffix ;;
1045 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1046 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1047 program_suffix=$ac_optarg ;;
1049 -program-transform-name | --program-transform-name \
1050 | --program-transform-nam | --program-transform-na \
1051 | --program-transform-n | --program-transform- \
1052 | --program-transform | --program-transfor \
1053 | --program-transfo | --program-transf \
1054 | --program-trans | --program-tran \
1055 | --progr-tra | --program-tr | --program-t)
1056 ac_prev=program_transform_name ;;
1057 -program-transform-name=* | --program-transform-name=* \
1058 | --program-transform-nam=* | --program-transform-na=* \
1059 | --program-transform-n=* | --program-transform-=* \
1060 | --program-transform=* | --program-transfor=* \
1061 | --program-transfo=* | --program-transf=* \
1062 | --program-trans=* | --program-tran=* \
1063 | --progr-tra=* | --program-tr=* | --program-t=*)
1064 program_transform_name=$ac_optarg ;;
1066 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1067 ac_prev=pdfdir ;;
1068 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1069 pdfdir=$ac_optarg ;;
1071 -psdir | --psdir | --psdi | --psd | --ps)
1072 ac_prev=psdir ;;
1073 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1074 psdir=$ac_optarg ;;
1076 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1077 | -silent | --silent | --silen | --sile | --sil)
1078 silent=yes ;;
1080 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1081 ac_prev=sbindir ;;
1082 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1083 | --sbi=* | --sb=*)
1084 sbindir=$ac_optarg ;;
1086 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1087 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1088 | --sharedst | --shareds | --shared | --share | --shar \
1089 | --sha | --sh)
1090 ac_prev=sharedstatedir ;;
1091 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1092 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1093 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1094 | --sha=* | --sh=*)
1095 sharedstatedir=$ac_optarg ;;
1097 -site | --site | --sit)
1098 ac_prev=site ;;
1099 -site=* | --site=* | --sit=*)
1100 site=$ac_optarg ;;
1102 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1103 ac_prev=srcdir ;;
1104 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1105 srcdir=$ac_optarg ;;
1107 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1108 | --syscon | --sysco | --sysc | --sys | --sy)
1109 ac_prev=sysconfdir ;;
1110 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1111 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1112 sysconfdir=$ac_optarg ;;
1114 -target | --target | --targe | --targ | --tar | --ta | --t)
1115 ac_prev=target_alias ;;
1116 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1117 target_alias=$ac_optarg ;;
1119 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1120 verbose=yes ;;
1122 -version | --version | --versio | --versi | --vers | -V)
1123 ac_init_version=: ;;
1125 -with-* | --with-*)
1126 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1127 # Reject names that are not valid shell variable names.
1128 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1129 as_fn_error $? "invalid package name: $ac_useropt"
1130 ac_useropt_orig=$ac_useropt
1131 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1132 case $ac_user_opts in
1134 "with_$ac_useropt"
1135 "*) ;;
1136 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1137 ac_unrecognized_sep=', ';;
1138 esac
1139 eval with_$ac_useropt=\$ac_optarg ;;
1141 -without-* | --without-*)
1142 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1143 # Reject names that are not valid shell variable names.
1144 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1145 as_fn_error $? "invalid package name: $ac_useropt"
1146 ac_useropt_orig=$ac_useropt
1147 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1148 case $ac_user_opts in
1150 "with_$ac_useropt"
1151 "*) ;;
1152 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1153 ac_unrecognized_sep=', ';;
1154 esac
1155 eval with_$ac_useropt=no ;;
1157 --x)
1158 # Obsolete; use --with-x.
1159 with_x=yes ;;
1161 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1162 | --x-incl | --x-inc | --x-in | --x-i)
1163 ac_prev=x_includes ;;
1164 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1165 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1166 x_includes=$ac_optarg ;;
1168 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1169 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1170 ac_prev=x_libraries ;;
1171 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1172 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1173 x_libraries=$ac_optarg ;;
1175 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1176 Try \`$0 --help' for more information"
1179 *=*)
1180 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1181 # Reject names that are not valid shell variable names.
1182 case $ac_envvar in #(
1183 '' | [0-9]* | *[!_$as_cr_alnum]* )
1184 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1185 esac
1186 eval $ac_envvar=\$ac_optarg
1187 export $ac_envvar ;;
1190 # FIXME: should be removed in autoconf 3.0.
1191 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1192 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1193 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1194 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1197 esac
1198 done
1200 if test -n "$ac_prev"; then
1201 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1202 as_fn_error $? "missing argument to $ac_option"
1205 if test -n "$ac_unrecognized_opts"; then
1206 case $enable_option_checking in
1207 no) ;;
1208 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1209 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1210 esac
1213 # Check all directory arguments for consistency.
1214 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1215 datadir sysconfdir sharedstatedir localstatedir includedir \
1216 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1217 libdir localedir mandir
1219 eval ac_val=\$$ac_var
1220 # Remove trailing slashes.
1221 case $ac_val in
1222 */ )
1223 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1224 eval $ac_var=\$ac_val;;
1225 esac
1226 # Be sure to have absolute directory names.
1227 case $ac_val in
1228 [\\/$]* | ?:[\\/]* ) continue;;
1229 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1230 esac
1231 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1232 done
1234 # There might be people who depend on the old broken behavior: `$host'
1235 # used to hold the argument of --host etc.
1236 # FIXME: To remove some day.
1237 build=$build_alias
1238 host=$host_alias
1239 target=$target_alias
1241 # FIXME: To remove some day.
1242 if test "x$host_alias" != x; then
1243 if test "x$build_alias" = x; then
1244 cross_compiling=maybe
1245 elif test "x$build_alias" != "x$host_alias"; then
1246 cross_compiling=yes
1250 ac_tool_prefix=
1251 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1253 test "$silent" = yes && exec 6>/dev/null
1256 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1257 ac_ls_di=`ls -di .` &&
1258 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1259 as_fn_error $? "working directory cannot be determined"
1260 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1261 as_fn_error $? "pwd does not report name of working directory"
1264 # Find the source files, if location was not specified.
1265 if test -z "$srcdir"; then
1266 ac_srcdir_defaulted=yes
1267 # Try the directory containing this script, then the parent directory.
1268 ac_confdir=`$as_dirname -- "$as_myself" ||
1269 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1270 X"$as_myself" : 'X\(//\)[^/]' \| \
1271 X"$as_myself" : 'X\(//\)$' \| \
1272 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1273 $as_echo X"$as_myself" |
1274 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1275 s//\1/
1278 /^X\(\/\/\)[^/].*/{
1279 s//\1/
1282 /^X\(\/\/\)$/{
1283 s//\1/
1286 /^X\(\/\).*/{
1287 s//\1/
1290 s/.*/./; q'`
1291 srcdir=$ac_confdir
1292 if test ! -r "$srcdir/$ac_unique_file"; then
1293 srcdir=..
1295 else
1296 ac_srcdir_defaulted=no
1298 if test ! -r "$srcdir/$ac_unique_file"; then
1299 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1300 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1302 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1303 ac_abs_confdir=`(
1304 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1305 pwd)`
1306 # When building in place, set srcdir=.
1307 if test "$ac_abs_confdir" = "$ac_pwd"; then
1308 srcdir=.
1310 # Remove unnecessary trailing slashes from srcdir.
1311 # Double slashes in file names in object file debugging info
1312 # mess up M-x gdb in Emacs.
1313 case $srcdir in
1314 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1315 esac
1316 for ac_var in $ac_precious_vars; do
1317 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1318 eval ac_env_${ac_var}_value=\$${ac_var}
1319 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1320 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1321 done
1324 # Report the --help message.
1326 if test "$ac_init_help" = "long"; then
1327 # Omit some internal or obsolete options to make the list less imposing.
1328 # This message is too long to be a string in the A/UX 3.1 sh.
1329 cat <<_ACEOF
1330 \`configure' configures LTO plugin for ld 0.1 to adapt to many kinds of systems.
1332 Usage: $0 [OPTION]... [VAR=VALUE]...
1334 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1335 VAR=VALUE. See below for descriptions of some of the useful variables.
1337 Defaults for the options are specified in brackets.
1339 Configuration:
1340 -h, --help display this help and exit
1341 --help=short display options specific to this package
1342 --help=recursive display the short help of all the included packages
1343 -V, --version display version information and exit
1344 -q, --quiet, --silent do not print \`checking ...' messages
1345 --cache-file=FILE cache test results in FILE [disabled]
1346 -C, --config-cache alias for \`--cache-file=config.cache'
1347 -n, --no-create do not create output files
1348 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1350 Installation directories:
1351 --prefix=PREFIX install architecture-independent files in PREFIX
1352 [$ac_default_prefix]
1353 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1354 [PREFIX]
1356 By default, \`make install' will install all the files in
1357 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1358 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1359 for instance \`--prefix=\$HOME'.
1361 For better control, use the options below.
1363 Fine tuning of the installation directories:
1364 --bindir=DIR user executables [EPREFIX/bin]
1365 --sbindir=DIR system admin executables [EPREFIX/sbin]
1366 --libexecdir=DIR program executables [EPREFIX/libexec]
1367 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1368 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1369 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1370 --libdir=DIR object code libraries [EPREFIX/lib]
1371 --includedir=DIR C header files [PREFIX/include]
1372 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1373 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1374 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1375 --infodir=DIR info documentation [DATAROOTDIR/info]
1376 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1377 --mandir=DIR man documentation [DATAROOTDIR/man]
1378 --docdir=DIR documentation root [DATAROOTDIR/doc/lto-plugin]
1379 --htmldir=DIR html documentation [DOCDIR]
1380 --dvidir=DIR dvi documentation [DOCDIR]
1381 --pdfdir=DIR pdf documentation [DOCDIR]
1382 --psdir=DIR ps documentation [DOCDIR]
1383 _ACEOF
1385 cat <<\_ACEOF
1387 Program names:
1388 --program-prefix=PREFIX prepend PREFIX to installed program names
1389 --program-suffix=SUFFIX append SUFFIX to installed program names
1390 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1392 System types:
1393 --build=BUILD configure for building on BUILD [guessed]
1394 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1395 --target=TARGET configure for building compilers for TARGET [HOST]
1396 _ACEOF
1399 if test -n "$ac_init_help"; then
1400 case $ac_init_help in
1401 short | recursive ) echo "Configuration of LTO plugin for ld 0.1:";;
1402 esac
1403 cat <<\_ACEOF
1405 Optional Features:
1406 --disable-option-checking ignore unrecognized --enable/--with options
1407 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1408 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1409 --enable-silent-rules less verbose build output (undo: "make V=1")
1410 --disable-silent-rules verbose build output (undo: "make V=0")
1411 --enable-maintainer-mode
1412 enable make rules and dependencies not useful (and
1413 sometimes confusing) to the casual installer
1414 --enable-dependency-tracking
1415 do not reject slow dependency extractors
1416 --disable-dependency-tracking
1417 speeds up one-time build
1418 --disable-largefile omit support for large files
1419 --enable-shared[=PKGS] build shared libraries [default=yes]
1420 --enable-static[=PKGS] build static libraries [default=yes]
1421 --enable-fast-install[=PKGS]
1422 optimize for fast installation [default=yes]
1423 --disable-libtool-lock avoid locking (might break parallel builds)
1425 Optional Packages:
1426 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1427 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1428 --with-build-libsubdir=DIR Directory where to find libraries for build system
1429 --with-libiberty=PATH specify the directory where to find libiberty
1430 [../libiberty]
1431 --with-gcc-major-version-only
1432 use only GCC major number in filesystem paths
1433 --with-pic try to use only PIC/non-PIC objects [default=use
1434 both]
1435 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1437 Some influential environment variables:
1438 CC C compiler command
1439 CFLAGS C compiler flags
1440 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1441 nonstandard directory <lib dir>
1442 LIBS libraries to pass to the linker, e.g. -l<library>
1443 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1444 you have headers in a nonstandard directory <include dir>
1445 CPP C preprocessor
1447 Use these variables to override the choices made by `configure' or to help
1448 it to find libraries and programs with nonstandard names/locations.
1450 Report bugs to the package provider.
1451 _ACEOF
1452 ac_status=$?
1455 if test "$ac_init_help" = "recursive"; then
1456 # If there are subdirs, report their specific --help.
1457 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1458 test -d "$ac_dir" ||
1459 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1460 continue
1461 ac_builddir=.
1463 case "$ac_dir" in
1464 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1466 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1467 # A ".." for each directory in $ac_dir_suffix.
1468 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1469 case $ac_top_builddir_sub in
1470 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1471 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1472 esac ;;
1473 esac
1474 ac_abs_top_builddir=$ac_pwd
1475 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1476 # for backward compatibility:
1477 ac_top_builddir=$ac_top_build_prefix
1479 case $srcdir in
1480 .) # We are building in place.
1481 ac_srcdir=.
1482 ac_top_srcdir=$ac_top_builddir_sub
1483 ac_abs_top_srcdir=$ac_pwd ;;
1484 [\\/]* | ?:[\\/]* ) # Absolute name.
1485 ac_srcdir=$srcdir$ac_dir_suffix;
1486 ac_top_srcdir=$srcdir
1487 ac_abs_top_srcdir=$srcdir ;;
1488 *) # Relative name.
1489 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1490 ac_top_srcdir=$ac_top_build_prefix$srcdir
1491 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1492 esac
1493 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1495 cd "$ac_dir" || { ac_status=$?; continue; }
1496 # Check for guested configure.
1497 if test -f "$ac_srcdir/configure.gnu"; then
1498 echo &&
1499 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1500 elif test -f "$ac_srcdir/configure"; then
1501 echo &&
1502 $SHELL "$ac_srcdir/configure" --help=recursive
1503 else
1504 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1505 fi || ac_status=$?
1506 cd "$ac_pwd" || { ac_status=$?; break; }
1507 done
1510 test -n "$ac_init_help" && exit $ac_status
1511 if $ac_init_version; then
1512 cat <<\_ACEOF
1513 LTO plugin for ld configure 0.1
1514 generated by GNU Autoconf 2.69
1516 Copyright (C) 2012 Free Software Foundation, Inc.
1517 This configure script is free software; the Free Software Foundation
1518 gives unlimited permission to copy, distribute and modify it.
1519 _ACEOF
1520 exit
1523 ## ------------------------ ##
1524 ## Autoconf initialization. ##
1525 ## ------------------------ ##
1527 # ac_fn_c_try_compile LINENO
1528 # --------------------------
1529 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1530 ac_fn_c_try_compile ()
1532 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1533 rm -f conftest.$ac_objext
1534 if { { ac_try="$ac_compile"
1535 case "(($ac_try" in
1536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1537 *) ac_try_echo=$ac_try;;
1538 esac
1539 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1540 $as_echo "$ac_try_echo"; } >&5
1541 (eval "$ac_compile") 2>conftest.err
1542 ac_status=$?
1543 if test -s conftest.err; then
1544 grep -v '^ *+' conftest.err >conftest.er1
1545 cat conftest.er1 >&5
1546 mv -f conftest.er1 conftest.err
1548 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1549 test $ac_status = 0; } && {
1550 test -z "$ac_c_werror_flag" ||
1551 test ! -s conftest.err
1552 } && test -s conftest.$ac_objext; then :
1553 ac_retval=0
1554 else
1555 $as_echo "$as_me: failed program was:" >&5
1556 sed 's/^/| /' conftest.$ac_ext >&5
1558 ac_retval=1
1560 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1561 as_fn_set_status $ac_retval
1563 } # ac_fn_c_try_compile
1565 # ac_fn_c_try_cpp LINENO
1566 # ----------------------
1567 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1568 ac_fn_c_try_cpp ()
1570 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1571 if { { ac_try="$ac_cpp conftest.$ac_ext"
1572 case "(($ac_try" in
1573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1574 *) ac_try_echo=$ac_try;;
1575 esac
1576 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1577 $as_echo "$ac_try_echo"; } >&5
1578 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1579 ac_status=$?
1580 if test -s conftest.err; then
1581 grep -v '^ *+' conftest.err >conftest.er1
1582 cat conftest.er1 >&5
1583 mv -f conftest.er1 conftest.err
1585 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1586 test $ac_status = 0; } > conftest.i && {
1587 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1588 test ! -s conftest.err
1589 }; then :
1590 ac_retval=0
1591 else
1592 $as_echo "$as_me: failed program was:" >&5
1593 sed 's/^/| /' conftest.$ac_ext >&5
1595 ac_retval=1
1597 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1598 as_fn_set_status $ac_retval
1600 } # ac_fn_c_try_cpp
1602 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1603 # -------------------------------------------------------
1604 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1605 # the include files in INCLUDES and setting the cache variable VAR
1606 # accordingly.
1607 ac_fn_c_check_header_mongrel ()
1609 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1610 if eval \${$3+:} false; then :
1611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1612 $as_echo_n "checking for $2... " >&6; }
1613 if eval \${$3+:} false; then :
1614 $as_echo_n "(cached) " >&6
1616 eval ac_res=\$$3
1617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1618 $as_echo "$ac_res" >&6; }
1619 else
1620 # Is the header compilable?
1621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1622 $as_echo_n "checking $2 usability... " >&6; }
1623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1624 /* end confdefs.h. */
1626 #include <$2>
1627 _ACEOF
1628 if ac_fn_c_try_compile "$LINENO"; then :
1629 ac_header_compiler=yes
1630 else
1631 ac_header_compiler=no
1633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1635 $as_echo "$ac_header_compiler" >&6; }
1637 # Is the header present?
1638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1639 $as_echo_n "checking $2 presence... " >&6; }
1640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1641 /* end confdefs.h. */
1642 #include <$2>
1643 _ACEOF
1644 if ac_fn_c_try_cpp "$LINENO"; then :
1645 ac_header_preproc=yes
1646 else
1647 ac_header_preproc=no
1649 rm -f conftest.err conftest.i conftest.$ac_ext
1650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1651 $as_echo "$ac_header_preproc" >&6; }
1653 # So? What about this header?
1654 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1655 yes:no: )
1656 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1657 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1658 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1659 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1661 no:yes:* )
1662 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1663 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1664 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1665 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1666 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1667 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1668 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1669 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1670 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1671 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1673 esac
1674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1675 $as_echo_n "checking for $2... " >&6; }
1676 if eval \${$3+:} false; then :
1677 $as_echo_n "(cached) " >&6
1678 else
1679 eval "$3=\$ac_header_compiler"
1681 eval ac_res=\$$3
1682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1683 $as_echo "$ac_res" >&6; }
1685 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1687 } # ac_fn_c_check_header_mongrel
1689 # ac_fn_c_try_run LINENO
1690 # ----------------------
1691 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1692 # that executables *can* be run.
1693 ac_fn_c_try_run ()
1695 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1696 if { { ac_try="$ac_link"
1697 case "(($ac_try" in
1698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1699 *) ac_try_echo=$ac_try;;
1700 esac
1701 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1702 $as_echo "$ac_try_echo"; } >&5
1703 (eval "$ac_link") 2>&5
1704 ac_status=$?
1705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1706 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
1714 ac_status=$?
1715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1716 test $ac_status = 0; }; }; then :
1717 ac_retval=0
1718 else
1719 $as_echo "$as_me: program exited with status $ac_status" >&5
1720 $as_echo "$as_me: failed program was:" >&5
1721 sed 's/^/| /' conftest.$ac_ext >&5
1723 ac_retval=$ac_status
1725 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1726 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1727 as_fn_set_status $ac_retval
1729 } # ac_fn_c_try_run
1731 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1732 # -------------------------------------------------------
1733 # Tests whether HEADER exists and can be compiled using the include files in
1734 # INCLUDES, setting the cache variable VAR accordingly.
1735 ac_fn_c_check_header_compile ()
1737 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1739 $as_echo_n "checking for $2... " >&6; }
1740 if eval \${$3+:} false; then :
1741 $as_echo_n "(cached) " >&6
1742 else
1743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1744 /* end confdefs.h. */
1746 #include <$2>
1747 _ACEOF
1748 if ac_fn_c_try_compile "$LINENO"; then :
1749 eval "$3=yes"
1750 else
1751 eval "$3=no"
1753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1755 eval ac_res=\$$3
1756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1757 $as_echo "$ac_res" >&6; }
1758 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1760 } # ac_fn_c_check_header_compile
1762 # ac_fn_c_try_link LINENO
1763 # -----------------------
1764 # Try to link conftest.$ac_ext, and return whether this succeeded.
1765 ac_fn_c_try_link ()
1767 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1768 rm -f conftest.$ac_objext conftest$ac_exeext
1769 if { { ac_try="$ac_link"
1770 case "(($ac_try" in
1771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1772 *) ac_try_echo=$ac_try;;
1773 esac
1774 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1775 $as_echo "$ac_try_echo"; } >&5
1776 (eval "$ac_link") 2>conftest.err
1777 ac_status=$?
1778 if test -s conftest.err; then
1779 grep -v '^ *+' conftest.err >conftest.er1
1780 cat conftest.er1 >&5
1781 mv -f conftest.er1 conftest.err
1783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1784 test $ac_status = 0; } && {
1785 test -z "$ac_c_werror_flag" ||
1786 test ! -s conftest.err
1787 } && test -s conftest$ac_exeext && {
1788 test "$cross_compiling" = yes ||
1789 test -x conftest$ac_exeext
1790 }; then :
1791 ac_retval=0
1792 else
1793 $as_echo "$as_me: failed program was:" >&5
1794 sed 's/^/| /' conftest.$ac_ext >&5
1796 ac_retval=1
1798 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1799 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1800 # interfere with the next link command; also delete a directory that is
1801 # left behind by Apple's compiler. We do this before executing the actions.
1802 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1803 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1804 as_fn_set_status $ac_retval
1806 } # ac_fn_c_try_link
1808 # ac_fn_c_check_func LINENO FUNC VAR
1809 # ----------------------------------
1810 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1811 ac_fn_c_check_func ()
1813 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1815 $as_echo_n "checking for $2... " >&6; }
1816 if eval \${$3+:} false; then :
1817 $as_echo_n "(cached) " >&6
1818 else
1819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1820 /* end confdefs.h. */
1821 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1822 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1823 #define $2 innocuous_$2
1825 /* System header to define __stub macros and hopefully few prototypes,
1826 which can conflict with char $2 (); below.
1827 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1828 <limits.h> exists even on freestanding compilers. */
1830 #ifdef __STDC__
1831 # include <limits.h>
1832 #else
1833 # include <assert.h>
1834 #endif
1836 #undef $2
1838 /* Override any GCC internal prototype to avoid an error.
1839 Use char because int might match the return type of a GCC
1840 builtin and then its argument prototype would still apply. */
1841 #ifdef __cplusplus
1842 extern "C"
1843 #endif
1844 char $2 ();
1845 /* The GNU C library defines this for functions which it implements
1846 to always fail with ENOSYS. Some functions are actually named
1847 something starting with __ and the normal name is an alias. */
1848 #if defined __stub_$2 || defined __stub___$2
1849 choke me
1850 #endif
1853 main ()
1855 return $2 ();
1857 return 0;
1859 _ACEOF
1860 if ac_fn_c_try_link "$LINENO"; then :
1861 eval "$3=yes"
1862 else
1863 eval "$3=no"
1865 rm -f core conftest.err conftest.$ac_objext \
1866 conftest$ac_exeext conftest.$ac_ext
1868 eval ac_res=\$$3
1869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1870 $as_echo "$ac_res" >&6; }
1871 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1873 } # ac_fn_c_check_func
1875 # ac_fn_c_find_intX_t LINENO BITS VAR
1876 # -----------------------------------
1877 # Finds a signed integer type with width BITS, setting cache variable VAR
1878 # accordingly.
1879 ac_fn_c_find_intX_t ()
1881 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
1883 $as_echo_n "checking for int$2_t... " >&6; }
1884 if eval \${$3+:} false; then :
1885 $as_echo_n "(cached) " >&6
1886 else
1887 eval "$3=no"
1888 # Order is important - never check a type that is potentially smaller
1889 # than half of the expected target width.
1890 for ac_type in int$2_t 'int' 'long int' \
1891 'long long int' 'short int' 'signed char'; do
1892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1893 /* end confdefs.h. */
1894 $ac_includes_default
1895 enum { N = $2 / 2 - 1 };
1897 main ()
1899 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
1900 test_array [0] = 0;
1901 return test_array [0];
1904 return 0;
1906 _ACEOF
1907 if ac_fn_c_try_compile "$LINENO"; then :
1908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1909 /* end confdefs.h. */
1910 $ac_includes_default
1911 enum { N = $2 / 2 - 1 };
1913 main ()
1915 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
1916 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
1917 test_array [0] = 0;
1918 return test_array [0];
1921 return 0;
1923 _ACEOF
1924 if ac_fn_c_try_compile "$LINENO"; then :
1926 else
1927 case $ac_type in #(
1928 int$2_t) :
1929 eval "$3=yes" ;; #(
1930 *) :
1931 eval "$3=\$ac_type" ;;
1932 esac
1934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1937 if eval test \"x\$"$3"\" = x"no"; then :
1939 else
1940 break
1942 done
1944 eval ac_res=\$$3
1945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1946 $as_echo "$ac_res" >&6; }
1947 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1949 } # ac_fn_c_find_intX_t
1951 # ac_fn_c_find_uintX_t LINENO BITS VAR
1952 # ------------------------------------
1953 # Finds an unsigned integer type with width BITS, setting cache variable VAR
1954 # accordingly.
1955 ac_fn_c_find_uintX_t ()
1957 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
1959 $as_echo_n "checking for uint$2_t... " >&6; }
1960 if eval \${$3+:} false; then :
1961 $as_echo_n "(cached) " >&6
1962 else
1963 eval "$3=no"
1964 # Order is important - never check a type that is potentially smaller
1965 # than half of the expected target width.
1966 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
1967 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
1968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1969 /* end confdefs.h. */
1970 $ac_includes_default
1972 main ()
1974 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
1975 test_array [0] = 0;
1976 return test_array [0];
1979 return 0;
1981 _ACEOF
1982 if ac_fn_c_try_compile "$LINENO"; then :
1983 case $ac_type in #(
1984 uint$2_t) :
1985 eval "$3=yes" ;; #(
1986 *) :
1987 eval "$3=\$ac_type" ;;
1988 esac
1990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1991 if eval test \"x\$"$3"\" = x"no"; then :
1993 else
1994 break
1996 done
1998 eval ac_res=\$$3
1999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2000 $as_echo "$ac_res" >&6; }
2001 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2003 } # ac_fn_c_find_uintX_t
2004 cat >config.log <<_ACEOF
2005 This file contains any messages produced by compilers while
2006 running configure, to aid debugging if configure makes a mistake.
2008 It was created by LTO plugin for ld $as_me 0.1, which was
2009 generated by GNU Autoconf 2.69. Invocation command line was
2011 $ $0 $@
2013 _ACEOF
2014 exec 5>>config.log
2016 cat <<_ASUNAME
2017 ## --------- ##
2018 ## Platform. ##
2019 ## --------- ##
2021 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2022 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2023 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2024 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2025 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2027 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2028 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2030 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2031 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2032 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2033 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2034 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2035 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2036 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2038 _ASUNAME
2040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2041 for as_dir in $PATH
2043 IFS=$as_save_IFS
2044 test -z "$as_dir" && as_dir=.
2045 $as_echo "PATH: $as_dir"
2046 done
2047 IFS=$as_save_IFS
2049 } >&5
2051 cat >&5 <<_ACEOF
2054 ## ----------- ##
2055 ## Core tests. ##
2056 ## ----------- ##
2058 _ACEOF
2061 # Keep a trace of the command line.
2062 # Strip out --no-create and --no-recursion so they do not pile up.
2063 # Strip out --silent because we don't want to record it for future runs.
2064 # Also quote any args containing shell meta-characters.
2065 # Make two passes to allow for proper duplicate-argument suppression.
2066 ac_configure_args=
2067 ac_configure_args0=
2068 ac_configure_args1=
2069 ac_must_keep_next=false
2070 for ac_pass in 1 2
2072 for ac_arg
2074 case $ac_arg in
2075 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2076 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2077 | -silent | --silent | --silen | --sile | --sil)
2078 continue ;;
2079 *\'*)
2080 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2081 esac
2082 case $ac_pass in
2083 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2085 as_fn_append ac_configure_args1 " '$ac_arg'"
2086 if test $ac_must_keep_next = true; then
2087 ac_must_keep_next=false # Got value, back to normal.
2088 else
2089 case $ac_arg in
2090 *=* | --config-cache | -C | -disable-* | --disable-* \
2091 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2092 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2093 | -with-* | --with-* | -without-* | --without-* | --x)
2094 case "$ac_configure_args0 " in
2095 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2096 esac
2098 -* ) ac_must_keep_next=true ;;
2099 esac
2101 as_fn_append ac_configure_args " '$ac_arg'"
2103 esac
2104 done
2105 done
2106 { ac_configure_args0=; unset ac_configure_args0;}
2107 { ac_configure_args1=; unset ac_configure_args1;}
2109 # When interrupted or exit'd, cleanup temporary files, and complete
2110 # config.log. We remove comments because anyway the quotes in there
2111 # would cause problems or look ugly.
2112 # WARNING: Use '\'' to represent an apostrophe within the trap.
2113 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2114 trap 'exit_status=$?
2115 # Save into config.log some information that might help in debugging.
2117 echo
2119 $as_echo "## ---------------- ##
2120 ## Cache variables. ##
2121 ## ---------------- ##"
2122 echo
2123 # The following way of writing the cache mishandles newlines in values,
2125 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2126 eval ac_val=\$$ac_var
2127 case $ac_val in #(
2128 *${as_nl}*)
2129 case $ac_var in #(
2130 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2131 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2132 esac
2133 case $ac_var in #(
2134 _ | IFS | as_nl) ;; #(
2135 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2136 *) { eval $ac_var=; unset $ac_var;} ;;
2137 esac ;;
2138 esac
2139 done
2140 (set) 2>&1 |
2141 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2142 *${as_nl}ac_space=\ *)
2143 sed -n \
2144 "s/'\''/'\''\\\\'\'''\''/g;
2145 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2146 ;; #(
2148 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2150 esac |
2151 sort
2153 echo
2155 $as_echo "## ----------------- ##
2156 ## Output variables. ##
2157 ## ----------------- ##"
2158 echo
2159 for ac_var in $ac_subst_vars
2161 eval ac_val=\$$ac_var
2162 case $ac_val in
2163 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2164 esac
2165 $as_echo "$ac_var='\''$ac_val'\''"
2166 done | sort
2167 echo
2169 if test -n "$ac_subst_files"; then
2170 $as_echo "## ------------------- ##
2171 ## File substitutions. ##
2172 ## ------------------- ##"
2173 echo
2174 for ac_var in $ac_subst_files
2176 eval ac_val=\$$ac_var
2177 case $ac_val in
2178 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2179 esac
2180 $as_echo "$ac_var='\''$ac_val'\''"
2181 done | sort
2182 echo
2185 if test -s confdefs.h; then
2186 $as_echo "## ----------- ##
2187 ## confdefs.h. ##
2188 ## ----------- ##"
2189 echo
2190 cat confdefs.h
2191 echo
2193 test "$ac_signal" != 0 &&
2194 $as_echo "$as_me: caught signal $ac_signal"
2195 $as_echo "$as_me: exit $exit_status"
2196 } >&5
2197 rm -f core *.core core.conftest.* &&
2198 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2199 exit $exit_status
2201 for ac_signal in 1 2 13 15; do
2202 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2203 done
2204 ac_signal=0
2206 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2207 rm -f -r conftest* confdefs.h
2209 $as_echo "/* confdefs.h */" > confdefs.h
2211 # Predefined preprocessor variables.
2213 cat >>confdefs.h <<_ACEOF
2214 #define PACKAGE_NAME "$PACKAGE_NAME"
2215 _ACEOF
2217 cat >>confdefs.h <<_ACEOF
2218 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2219 _ACEOF
2221 cat >>confdefs.h <<_ACEOF
2222 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2223 _ACEOF
2225 cat >>confdefs.h <<_ACEOF
2226 #define PACKAGE_STRING "$PACKAGE_STRING"
2227 _ACEOF
2229 cat >>confdefs.h <<_ACEOF
2230 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2231 _ACEOF
2233 cat >>confdefs.h <<_ACEOF
2234 #define PACKAGE_URL "$PACKAGE_URL"
2235 _ACEOF
2238 # Let the site file select an alternate cache file if it wants to.
2239 # Prefer an explicitly selected file to automatically selected ones.
2240 ac_site_file1=NONE
2241 ac_site_file2=NONE
2242 if test -n "$CONFIG_SITE"; then
2243 # We do not want a PATH search for config.site.
2244 case $CONFIG_SITE in #((
2245 -*) ac_site_file1=./$CONFIG_SITE;;
2246 */*) ac_site_file1=$CONFIG_SITE;;
2247 *) ac_site_file1=./$CONFIG_SITE;;
2248 esac
2249 elif test "x$prefix" != xNONE; then
2250 ac_site_file1=$prefix/share/config.site
2251 ac_site_file2=$prefix/etc/config.site
2252 else
2253 ac_site_file1=$ac_default_prefix/share/config.site
2254 ac_site_file2=$ac_default_prefix/etc/config.site
2256 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2258 test "x$ac_site_file" = xNONE && continue
2259 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2260 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2261 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2262 sed 's/^/| /' "$ac_site_file" >&5
2263 . "$ac_site_file" \
2264 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2265 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2266 as_fn_error $? "failed to load site script $ac_site_file
2267 See \`config.log' for more details" "$LINENO" 5; }
2269 done
2271 if test -r "$cache_file"; then
2272 # Some versions of bash will fail to source /dev/null (special files
2273 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2274 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2275 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2276 $as_echo "$as_me: loading cache $cache_file" >&6;}
2277 case $cache_file in
2278 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2279 *) . "./$cache_file";;
2280 esac
2282 else
2283 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2284 $as_echo "$as_me: creating cache $cache_file" >&6;}
2285 >$cache_file
2288 # Check that the precious variables saved in the cache have kept the same
2289 # value.
2290 ac_cache_corrupted=false
2291 for ac_var in $ac_precious_vars; do
2292 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2293 eval ac_new_set=\$ac_env_${ac_var}_set
2294 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2295 eval ac_new_val=\$ac_env_${ac_var}_value
2296 case $ac_old_set,$ac_new_set in
2297 set,)
2298 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2299 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2300 ac_cache_corrupted=: ;;
2301 ,set)
2302 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2303 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2304 ac_cache_corrupted=: ;;
2305 ,);;
2307 if test "x$ac_old_val" != "x$ac_new_val"; then
2308 # differences in whitespace do not lead to failure.
2309 ac_old_val_w=`echo x $ac_old_val`
2310 ac_new_val_w=`echo x $ac_new_val`
2311 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2312 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2313 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2314 ac_cache_corrupted=:
2315 else
2316 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2317 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2318 eval $ac_var=\$ac_old_val
2320 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2321 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2322 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2323 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2324 fi;;
2325 esac
2326 # Pass precious variables to config.status.
2327 if test "$ac_new_set" = set; then
2328 case $ac_new_val in
2329 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2330 *) ac_arg=$ac_var=$ac_new_val ;;
2331 esac
2332 case " $ac_configure_args " in
2333 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2334 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2335 esac
2337 done
2338 if $ac_cache_corrupted; then
2339 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2340 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2341 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2342 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2343 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2345 ## -------------------- ##
2346 ## Main body of script. ##
2347 ## -------------------- ##
2349 ac_ext=c
2350 ac_cpp='$CPP $CPPFLAGS'
2351 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2352 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2353 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2359 ac_aux_dir=
2360 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2361 if test -f "$ac_dir/install-sh"; then
2362 ac_aux_dir=$ac_dir
2363 ac_install_sh="$ac_aux_dir/install-sh -c"
2364 break
2365 elif test -f "$ac_dir/install.sh"; then
2366 ac_aux_dir=$ac_dir
2367 ac_install_sh="$ac_aux_dir/install.sh -c"
2368 break
2369 elif test -f "$ac_dir/shtool"; then
2370 ac_aux_dir=$ac_dir
2371 ac_install_sh="$ac_aux_dir/shtool install -c"
2372 break
2374 done
2375 if test -z "$ac_aux_dir"; then
2376 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2379 # These three variables are undocumented and unsupported,
2380 # and are intended to be withdrawn in a future Autoconf release.
2381 # They can cause serious problems if a builder's source tree is in a directory
2382 # whose full name contains unusual characters.
2383 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2384 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2385 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2388 # Make sure we can run config.sub.
2389 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2390 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2393 $as_echo_n "checking build system type... " >&6; }
2394 if ${ac_cv_build+:} false; then :
2395 $as_echo_n "(cached) " >&6
2396 else
2397 ac_build_alias=$build_alias
2398 test "x$ac_build_alias" = x &&
2399 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2400 test "x$ac_build_alias" = x &&
2401 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2402 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2403 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2407 $as_echo "$ac_cv_build" >&6; }
2408 case $ac_cv_build in
2409 *-*-*) ;;
2410 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2411 esac
2412 build=$ac_cv_build
2413 ac_save_IFS=$IFS; IFS='-'
2414 set x $ac_cv_build
2415 shift
2416 build_cpu=$1
2417 build_vendor=$2
2418 shift; shift
2419 # Remember, the first character of IFS is used to create $*,
2420 # except with old shells:
2421 build_os=$*
2422 IFS=$ac_save_IFS
2423 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2427 $as_echo_n "checking host system type... " >&6; }
2428 if ${ac_cv_host+:} false; then :
2429 $as_echo_n "(cached) " >&6
2430 else
2431 if test "x$host_alias" = x; then
2432 ac_cv_host=$ac_cv_build
2433 else
2434 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2435 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2440 $as_echo "$ac_cv_host" >&6; }
2441 case $ac_cv_host in
2442 *-*-*) ;;
2443 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2444 esac
2445 host=$ac_cv_host
2446 ac_save_IFS=$IFS; IFS='-'
2447 set x $ac_cv_host
2448 shift
2449 host_cpu=$1
2450 host_vendor=$2
2451 shift; shift
2452 # Remember, the first character of IFS is used to create $*,
2453 # except with old shells:
2454 host_os=$*
2455 IFS=$ac_save_IFS
2456 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2460 $as_echo_n "checking target system type... " >&6; }
2461 if ${ac_cv_target+:} false; then :
2462 $as_echo_n "(cached) " >&6
2463 else
2464 if test "x$target_alias" = x; then
2465 ac_cv_target=$ac_cv_host
2466 else
2467 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2468 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2473 $as_echo "$ac_cv_target" >&6; }
2474 case $ac_cv_target in
2475 *-*-*) ;;
2476 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2477 esac
2478 target=$ac_cv_target
2479 ac_save_IFS=$IFS; IFS='-'
2480 set x $ac_cv_target
2481 shift
2482 target_cpu=$1
2483 target_vendor=$2
2484 shift; shift
2485 # Remember, the first character of IFS is used to create $*,
2486 # except with old shells:
2487 target_os=$*
2488 IFS=$ac_save_IFS
2489 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2492 # The aliases save the names the user supplied, while $host etc.
2493 # will get canonicalized.
2494 test -n "$target_alias" &&
2495 test "$program_prefix$program_suffix$program_transform_name" = \
2496 NONENONEs,x,x, &&
2497 program_prefix=${target_alias}-
2499 case ${build_alias} in
2500 "") build_noncanonical=${build} ;;
2501 *) build_noncanonical=${build_alias} ;;
2502 esac
2504 case ${host_alias} in
2505 "") host_noncanonical=${build_noncanonical} ;;
2506 *) host_noncanonical=${host_alias} ;;
2507 esac
2509 case ${target_alias} in
2510 "") target_noncanonical=${host_noncanonical} ;;
2511 *) target_noncanonical=${target_alias} ;;
2512 esac
2515 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2516 # have matching libraries, they should use host libraries: Makefile.tpl
2517 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2518 # However, they still use the build modules, because the corresponding
2519 # host modules (e.g. bison) are only built for the host when bootstrap
2520 # finishes. So:
2521 # - build_subdir is where we find build modules, and never changes.
2522 # - build_libsubdir is where we find build libraries, and can be overridden.
2524 # Prefix 'build-' so this never conflicts with target_subdir.
2525 build_subdir="build-${build_noncanonical}"
2527 # Check whether --with-build-libsubdir was given.
2528 if test "${with_build_libsubdir+set}" = set; then :
2529 withval=$with_build_libsubdir; build_libsubdir="$withval"
2530 else
2531 build_libsubdir="$build_subdir"
2534 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2535 if ( test $srcdir = . && test -d gcc ) \
2536 || test -d $srcdir/../host-${host_noncanonical}; then
2537 host_subdir="host-${host_noncanonical}"
2538 else
2539 host_subdir=.
2541 # No prefix.
2542 target_subdir=${target_noncanonical}
2544 am__api_version='1.15'
2546 # Find a good install program. We prefer a C program (faster),
2547 # so one script is as good as another. But avoid the broken or
2548 # incompatible versions:
2549 # SysV /etc/install, /usr/sbin/install
2550 # SunOS /usr/etc/install
2551 # IRIX /sbin/install
2552 # AIX /bin/install
2553 # AmigaOS /C/install, which installs bootblocks on floppy discs
2554 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2555 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2556 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2557 # OS/2's system install, which has a completely different semantic
2558 # ./install, which can be erroneously created by make from ./install.sh.
2559 # Reject install programs that cannot install multiple files.
2560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2561 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2562 if test -z "$INSTALL"; then
2563 if ${ac_cv_path_install+:} false; then :
2564 $as_echo_n "(cached) " >&6
2565 else
2566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2567 for as_dir in $PATH
2569 IFS=$as_save_IFS
2570 test -z "$as_dir" && as_dir=.
2571 # Account for people who put trailing slashes in PATH elements.
2572 case $as_dir/ in #((
2573 ./ | .// | /[cC]/* | \
2574 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2575 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2576 /usr/ucb/* ) ;;
2578 # OSF1 and SCO ODT 3.0 have their own names for install.
2579 # Don't use installbsd from OSF since it installs stuff as root
2580 # by default.
2581 for ac_prog in ginstall scoinst install; do
2582 for ac_exec_ext in '' $ac_executable_extensions; do
2583 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2584 if test $ac_prog = install &&
2585 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2586 # AIX install. It has an incompatible calling convention.
2588 elif test $ac_prog = install &&
2589 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2590 # program-specific install script used by HP pwplus--don't use.
2592 else
2593 rm -rf conftest.one conftest.two conftest.dir
2594 echo one > conftest.one
2595 echo two > conftest.two
2596 mkdir conftest.dir
2597 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2598 test -s conftest.one && test -s conftest.two &&
2599 test -s conftest.dir/conftest.one &&
2600 test -s conftest.dir/conftest.two
2601 then
2602 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2603 break 3
2607 done
2608 done
2610 esac
2612 done
2613 IFS=$as_save_IFS
2615 rm -rf conftest.one conftest.two conftest.dir
2618 if test "${ac_cv_path_install+set}" = set; then
2619 INSTALL=$ac_cv_path_install
2620 else
2621 # As a last resort, use the slow shell script. Don't cache a
2622 # value for INSTALL within a source directory, because that will
2623 # break other packages using the cache if that directory is
2624 # removed, or if the value is a relative name.
2625 INSTALL=$ac_install_sh
2628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2629 $as_echo "$INSTALL" >&6; }
2631 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2632 # It thinks the first close brace ends the variable substitution.
2633 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2635 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2637 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2640 $as_echo_n "checking whether build environment is sane... " >&6; }
2641 # Reject unsafe characters in $srcdir or the absolute working directory
2642 # name. Accept space and tab only in the latter.
2643 am_lf='
2645 case `pwd` in
2646 *[\\\"\#\$\&\'\`$am_lf]*)
2647 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2648 esac
2649 case $srcdir in
2650 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2651 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2652 esac
2654 # Do 'set' in a subshell so we don't clobber the current shell's
2655 # arguments. Must try -L first in case configure is actually a
2656 # symlink; some systems play weird games with the mod time of symlinks
2657 # (eg FreeBSD returns the mod time of the symlink's containing
2658 # directory).
2659 if (
2660 am_has_slept=no
2661 for am_try in 1 2; do
2662 echo "timestamp, slept: $am_has_slept" > conftest.file
2663 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2664 if test "$*" = "X"; then
2665 # -L didn't work.
2666 set X `ls -t "$srcdir/configure" conftest.file`
2668 if test "$*" != "X $srcdir/configure conftest.file" \
2669 && test "$*" != "X conftest.file $srcdir/configure"; then
2671 # If neither matched, then we have a broken ls. This can happen
2672 # if, for instance, CONFIG_SHELL is bash and it inherits a
2673 # broken ls alias from the environment. This has actually
2674 # happened. Such a system could not be considered "sane".
2675 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2676 alias in your environment" "$LINENO" 5
2678 if test "$2" = conftest.file || test $am_try -eq 2; then
2679 break
2681 # Just in case.
2682 sleep 1
2683 am_has_slept=yes
2684 done
2685 test "$2" = conftest.file
2687 then
2688 # Ok.
2690 else
2691 as_fn_error $? "newly created file is older than distributed files!
2692 Check your system clock" "$LINENO" 5
2694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2695 $as_echo "yes" >&6; }
2696 # If we didn't sleep, we still need to ensure time stamps of config.status and
2697 # generated files are strictly newer.
2698 am_sleep_pid=
2699 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2700 ( sleep 1 ) &
2701 am_sleep_pid=$!
2704 rm -f conftest.file
2706 test "$program_prefix" != NONE &&
2707 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2708 # Use a double $ so make ignores it.
2709 test "$program_suffix" != NONE &&
2710 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2711 # Double any \ or $.
2712 # By default was `s,x,x', remove it if useless.
2713 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2714 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2716 # Expand $ac_aux_dir to an absolute path.
2717 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2719 if test x"${MISSING+set}" != xset; then
2720 case $am_aux_dir in
2721 *\ * | *\ *)
2722 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2724 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2725 esac
2727 # Use eval to expand $SHELL
2728 if eval "$MISSING --is-lightweight"; then
2729 am_missing_run="$MISSING "
2730 else
2731 am_missing_run=
2732 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2733 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2736 if test x"${install_sh+set}" != xset; then
2737 case $am_aux_dir in
2738 *\ * | *\ *)
2739 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2741 install_sh="\${SHELL} $am_aux_dir/install-sh"
2742 esac
2745 # Installed binaries are usually stripped using 'strip' when the user
2746 # run "make install-strip". However 'strip' might not be the right
2747 # tool to use in cross-compilation environments, therefore Automake
2748 # will honor the 'STRIP' environment variable to overrule this program.
2749 if test "$cross_compiling" != no; then
2750 if test -n "$ac_tool_prefix"; then
2751 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2752 set dummy ${ac_tool_prefix}strip; ac_word=$2
2753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2754 $as_echo_n "checking for $ac_word... " >&6; }
2755 if ${ac_cv_prog_STRIP+:} false; then :
2756 $as_echo_n "(cached) " >&6
2757 else
2758 if test -n "$STRIP"; then
2759 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2760 else
2761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2762 for as_dir in $PATH
2764 IFS=$as_save_IFS
2765 test -z "$as_dir" && as_dir=.
2766 for ac_exec_ext in '' $ac_executable_extensions; do
2767 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2768 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2770 break 2
2772 done
2773 done
2774 IFS=$as_save_IFS
2778 STRIP=$ac_cv_prog_STRIP
2779 if test -n "$STRIP"; then
2780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2781 $as_echo "$STRIP" >&6; }
2782 else
2783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2784 $as_echo "no" >&6; }
2789 if test -z "$ac_cv_prog_STRIP"; then
2790 ac_ct_STRIP=$STRIP
2791 # Extract the first word of "strip", so it can be a program name with args.
2792 set dummy strip; ac_word=$2
2793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2794 $as_echo_n "checking for $ac_word... " >&6; }
2795 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2796 $as_echo_n "(cached) " >&6
2797 else
2798 if test -n "$ac_ct_STRIP"; then
2799 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2800 else
2801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2802 for as_dir in $PATH
2804 IFS=$as_save_IFS
2805 test -z "$as_dir" && as_dir=.
2806 for ac_exec_ext in '' $ac_executable_extensions; do
2807 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2808 ac_cv_prog_ac_ct_STRIP="strip"
2809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2810 break 2
2812 done
2813 done
2814 IFS=$as_save_IFS
2818 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2819 if test -n "$ac_ct_STRIP"; then
2820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2821 $as_echo "$ac_ct_STRIP" >&6; }
2822 else
2823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2824 $as_echo "no" >&6; }
2827 if test "x$ac_ct_STRIP" = x; then
2828 STRIP=":"
2829 else
2830 case $cross_compiling:$ac_tool_warned in
2831 yes:)
2832 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2833 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2834 ac_tool_warned=yes ;;
2835 esac
2836 STRIP=$ac_ct_STRIP
2838 else
2839 STRIP="$ac_cv_prog_STRIP"
2843 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2846 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2847 if test -z "$MKDIR_P"; then
2848 if ${ac_cv_path_mkdir+:} false; then :
2849 $as_echo_n "(cached) " >&6
2850 else
2851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2852 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2854 IFS=$as_save_IFS
2855 test -z "$as_dir" && as_dir=.
2856 for ac_prog in mkdir gmkdir; do
2857 for ac_exec_ext in '' $ac_executable_extensions; do
2858 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2859 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2860 'mkdir (GNU coreutils) '* | \
2861 'mkdir (coreutils) '* | \
2862 'mkdir (fileutils) '4.1*)
2863 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2864 break 3;;
2865 esac
2866 done
2867 done
2868 done
2869 IFS=$as_save_IFS
2873 test -d ./--version && rmdir ./--version
2874 if test "${ac_cv_path_mkdir+set}" = set; then
2875 MKDIR_P="$ac_cv_path_mkdir -p"
2876 else
2877 # As a last resort, use the slow shell script. Don't cache a
2878 # value for MKDIR_P within a source directory, because that will
2879 # break other packages using the cache if that directory is
2880 # removed, or if the value is a relative name.
2881 MKDIR_P="$ac_install_sh -d"
2884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2885 $as_echo "$MKDIR_P" >&6; }
2887 for ac_prog in gawk mawk nawk awk
2889 # Extract the first word of "$ac_prog", so it can be a program name with args.
2890 set dummy $ac_prog; ac_word=$2
2891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2892 $as_echo_n "checking for $ac_word... " >&6; }
2893 if ${ac_cv_prog_AWK+:} false; then :
2894 $as_echo_n "(cached) " >&6
2895 else
2896 if test -n "$AWK"; then
2897 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2898 else
2899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2900 for as_dir in $PATH
2902 IFS=$as_save_IFS
2903 test -z "$as_dir" && as_dir=.
2904 for ac_exec_ext in '' $ac_executable_extensions; do
2905 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2906 ac_cv_prog_AWK="$ac_prog"
2907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2908 break 2
2910 done
2911 done
2912 IFS=$as_save_IFS
2916 AWK=$ac_cv_prog_AWK
2917 if test -n "$AWK"; then
2918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2919 $as_echo "$AWK" >&6; }
2920 else
2921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2922 $as_echo "no" >&6; }
2926 test -n "$AWK" && break
2927 done
2929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2930 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2931 set x ${MAKE-make}
2932 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2933 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2934 $as_echo_n "(cached) " >&6
2935 else
2936 cat >conftest.make <<\_ACEOF
2937 SHELL = /bin/sh
2938 all:
2939 @echo '@@@%%%=$(MAKE)=@@@%%%'
2940 _ACEOF
2941 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2942 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2943 *@@@%%%=?*=@@@%%%*)
2944 eval ac_cv_prog_make_${ac_make}_set=yes;;
2946 eval ac_cv_prog_make_${ac_make}_set=no;;
2947 esac
2948 rm -f conftest.make
2950 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2952 $as_echo "yes" >&6; }
2953 SET_MAKE=
2954 else
2955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2956 $as_echo "no" >&6; }
2957 SET_MAKE="MAKE=${MAKE-make}"
2960 rm -rf .tst 2>/dev/null
2961 mkdir .tst 2>/dev/null
2962 if test -d .tst; then
2963 am__leading_dot=.
2964 else
2965 am__leading_dot=_
2967 rmdir .tst 2>/dev/null
2969 # Check whether --enable-silent-rules was given.
2970 if test "${enable_silent_rules+set}" = set; then :
2971 enableval=$enable_silent_rules;
2974 case $enable_silent_rules in # (((
2975 yes) AM_DEFAULT_VERBOSITY=0;;
2976 no) AM_DEFAULT_VERBOSITY=1;;
2977 *) AM_DEFAULT_VERBOSITY=1;;
2978 esac
2979 am_make=${MAKE-make}
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2981 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2982 if ${am_cv_make_support_nested_variables+:} false; then :
2983 $as_echo_n "(cached) " >&6
2984 else
2985 if $as_echo 'TRUE=$(BAR$(V))
2986 BAR0=false
2987 BAR1=true
2989 am__doit:
2990 @$(TRUE)
2991 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2992 am_cv_make_support_nested_variables=yes
2993 else
2994 am_cv_make_support_nested_variables=no
2997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2998 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2999 if test $am_cv_make_support_nested_variables = yes; then
3000 AM_V='$(V)'
3001 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3002 else
3003 AM_V=$AM_DEFAULT_VERBOSITY
3004 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3006 AM_BACKSLASH='\'
3008 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3009 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3010 # is not polluted with repeated "-I."
3011 am__isrc=' -I$(srcdir)'
3012 # test to see if srcdir already configured
3013 if test -f $srcdir/config.status; then
3014 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3018 # test whether we have cygpath
3019 if test -z "$CYGPATH_W"; then
3020 if (cygpath --version) >/dev/null 2>/dev/null; then
3021 CYGPATH_W='cygpath -w'
3022 else
3023 CYGPATH_W=echo
3028 # Define the identity of the package.
3029 PACKAGE='lto-plugin'
3030 VERSION='0.1'
3033 cat >>confdefs.h <<_ACEOF
3034 #define PACKAGE "$PACKAGE"
3035 _ACEOF
3038 cat >>confdefs.h <<_ACEOF
3039 #define VERSION "$VERSION"
3040 _ACEOF
3042 # Some tools Automake needs.
3044 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3047 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3050 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3053 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3056 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3058 # For better backward compatibility. To be removed once Automake 1.9.x
3059 # dies out for good. For more background, see:
3060 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3061 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3062 mkdir_p='$(MKDIR_P)'
3064 # We need awk for the "check" target (and possibly the TAP driver). The
3065 # system "awk" is bad on some platforms.
3066 # Always define AMTAR for backward compatibility. Yes, it's still used
3067 # in the wild :-( We should find a proper way to deprecate it ...
3068 AMTAR='$${TAR-tar}'
3071 # We'll loop over all known methods to create a tar archive until one works.
3072 _am_tools='gnutar pax cpio none'
3074 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3081 # POSIX will say in a future version that running "rm -f" with no argument
3082 # is OK; and we want to be able to make that assumption in our Makefile
3083 # recipes. So use an aggressive probe to check that the usage we want is
3084 # actually supported "in the wild" to an acceptable degree.
3085 # See automake bug#10828.
3086 # To make any issue more visible, cause the running configure to be aborted
3087 # by default if the 'rm' program in use doesn't match our expectations; the
3088 # user can still override this though.
3089 if rm -f && rm -fr && rm -rf; then : OK; else
3090 cat >&2 <<'END'
3091 Oops!
3093 Your 'rm' program seems unable to run without file operands specified
3094 on the command line, even when the '-f' option is present. This is contrary
3095 to the behaviour of most rm programs out there, and not conforming with
3096 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3098 Please tell bug-automake@gnu.org about your system, including the value
3099 of your $PATH and any error possibly output before this message. This
3100 can help us improve future automake versions.
3103 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3104 echo 'Configuration will proceed anyway, since you have set the' >&2
3105 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3106 echo >&2
3107 else
3108 cat >&2 <<'END'
3109 Aborting the configuration process, to ensure you take notice of the issue.
3111 You can download and install GNU coreutils to get an 'rm' implementation
3112 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3114 If you want to complete the configuration process using your problematic
3115 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3116 to "yes", and re-run configure.
3119 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3125 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3126 # Check whether --enable-maintainer-mode was given.
3127 if test "${enable_maintainer_mode+set}" = set; then :
3128 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3129 else
3130 USE_MAINTAINER_MODE=no
3133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3134 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3135 if test $USE_MAINTAINER_MODE = yes; then
3136 MAINTAINER_MODE_TRUE=
3137 MAINTAINER_MODE_FALSE='#'
3138 else
3139 MAINTAINER_MODE_TRUE='#'
3140 MAINTAINER_MODE_FALSE=
3143 MAINT=$MAINTAINER_MODE_TRUE
3147 # Check whether --with-libiberty was given.
3148 if test "${with_libiberty+set}" = set; then :
3149 withval=$with_libiberty;
3150 else
3151 with_libiberty=../libiberty
3155 DEPDIR="${am__leading_dot}deps"
3157 ac_config_commands="$ac_config_commands depfiles"
3160 am_make=${MAKE-make}
3161 cat > confinc << 'END'
3162 am__doit:
3163 @echo this is the am__doit target
3164 .PHONY: am__doit
3166 # If we don't find an include directive, just comment out the code.
3167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3168 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3169 am__include="#"
3170 am__quote=
3171 _am_result=none
3172 # First try GNU make style include.
3173 echo "include confinc" > confmf
3174 # Ignore all kinds of additional output from 'make'.
3175 case `$am_make -s -f confmf 2> /dev/null` in #(
3176 *the\ am__doit\ target*)
3177 am__include=include
3178 am__quote=
3179 _am_result=GNU
3181 esac
3182 # Now try BSD make style include.
3183 if test "$am__include" = "#"; then
3184 echo '.include "confinc"' > confmf
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=BSD
3191 esac
3195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3196 $as_echo "$_am_result" >&6; }
3197 rm -f confinc confmf
3199 # Check whether --enable-dependency-tracking was given.
3200 if test "${enable_dependency_tracking+set}" = set; then :
3201 enableval=$enable_dependency_tracking;
3204 if test "x$enable_dependency_tracking" != xno; then
3205 am_depcomp="$ac_aux_dir/depcomp"
3206 AMDEPBACKSLASH='\'
3207 am__nodep='_no'
3209 if test "x$enable_dependency_tracking" != xno; then
3210 AMDEP_TRUE=
3211 AMDEP_FALSE='#'
3212 else
3213 AMDEP_TRUE='#'
3214 AMDEP_FALSE=
3218 ac_ext=c
3219 ac_cpp='$CPP $CPPFLAGS'
3220 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3221 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3222 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3223 if test -n "$ac_tool_prefix"; then
3224 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3225 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3227 $as_echo_n "checking for $ac_word... " >&6; }
3228 if ${ac_cv_prog_CC+:} false; then :
3229 $as_echo_n "(cached) " >&6
3230 else
3231 if test -n "$CC"; then
3232 ac_cv_prog_CC="$CC" # Let the user override the test.
3233 else
3234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3235 for as_dir in $PATH
3237 IFS=$as_save_IFS
3238 test -z "$as_dir" && as_dir=.
3239 for ac_exec_ext in '' $ac_executable_extensions; do
3240 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3241 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3243 break 2
3245 done
3246 done
3247 IFS=$as_save_IFS
3251 CC=$ac_cv_prog_CC
3252 if test -n "$CC"; then
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3254 $as_echo "$CC" >&6; }
3255 else
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3257 $as_echo "no" >&6; }
3262 if test -z "$ac_cv_prog_CC"; then
3263 ac_ct_CC=$CC
3264 # Extract the first word of "gcc", so it can be a program name with args.
3265 set dummy gcc; ac_word=$2
3266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3267 $as_echo_n "checking for $ac_word... " >&6; }
3268 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3269 $as_echo_n "(cached) " >&6
3270 else
3271 if test -n "$ac_ct_CC"; then
3272 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3273 else
3274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3275 for as_dir in $PATH
3277 IFS=$as_save_IFS
3278 test -z "$as_dir" && as_dir=.
3279 for ac_exec_ext in '' $ac_executable_extensions; do
3280 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3281 ac_cv_prog_ac_ct_CC="gcc"
3282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3283 break 2
3285 done
3286 done
3287 IFS=$as_save_IFS
3291 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3292 if test -n "$ac_ct_CC"; then
3293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3294 $as_echo "$ac_ct_CC" >&6; }
3295 else
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3297 $as_echo "no" >&6; }
3300 if test "x$ac_ct_CC" = x; then
3301 CC=""
3302 else
3303 case $cross_compiling:$ac_tool_warned in
3304 yes:)
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3306 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3307 ac_tool_warned=yes ;;
3308 esac
3309 CC=$ac_ct_CC
3311 else
3312 CC="$ac_cv_prog_CC"
3315 if test -z "$CC"; then
3316 if test -n "$ac_tool_prefix"; then
3317 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3318 set dummy ${ac_tool_prefix}cc; ac_word=$2
3319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3320 $as_echo_n "checking for $ac_word... " >&6; }
3321 if ${ac_cv_prog_CC+:} false; then :
3322 $as_echo_n "(cached) " >&6
3323 else
3324 if test -n "$CC"; then
3325 ac_cv_prog_CC="$CC" # Let the user override the test.
3326 else
3327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3328 for as_dir in $PATH
3330 IFS=$as_save_IFS
3331 test -z "$as_dir" && as_dir=.
3332 for ac_exec_ext in '' $ac_executable_extensions; do
3333 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3334 ac_cv_prog_CC="${ac_tool_prefix}cc"
3335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3336 break 2
3338 done
3339 done
3340 IFS=$as_save_IFS
3344 CC=$ac_cv_prog_CC
3345 if test -n "$CC"; then
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3347 $as_echo "$CC" >&6; }
3348 else
3349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3350 $as_echo "no" >&6; }
3356 if test -z "$CC"; then
3357 # Extract the first word of "cc", so it can be a program name with args.
3358 set dummy cc; ac_word=$2
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3360 $as_echo_n "checking for $ac_word... " >&6; }
3361 if ${ac_cv_prog_CC+:} false; then :
3362 $as_echo_n "(cached) " >&6
3363 else
3364 if test -n "$CC"; then
3365 ac_cv_prog_CC="$CC" # Let the user override the test.
3366 else
3367 ac_prog_rejected=no
3368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3369 for as_dir in $PATH
3371 IFS=$as_save_IFS
3372 test -z "$as_dir" && as_dir=.
3373 for ac_exec_ext in '' $ac_executable_extensions; do
3374 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3375 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3376 ac_prog_rejected=yes
3377 continue
3379 ac_cv_prog_CC="cc"
3380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3381 break 2
3383 done
3384 done
3385 IFS=$as_save_IFS
3387 if test $ac_prog_rejected = yes; then
3388 # We found a bogon in the path, so make sure we never use it.
3389 set dummy $ac_cv_prog_CC
3390 shift
3391 if test $# != 0; then
3392 # We chose a different compiler from the bogus one.
3393 # However, it has the same basename, so the bogon will be chosen
3394 # first if we set CC to just the basename; use the full file name.
3395 shift
3396 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3401 CC=$ac_cv_prog_CC
3402 if test -n "$CC"; then
3403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3404 $as_echo "$CC" >&6; }
3405 else
3406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3407 $as_echo "no" >&6; }
3412 if test -z "$CC"; then
3413 if test -n "$ac_tool_prefix"; then
3414 for ac_prog in cl.exe
3416 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3417 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3419 $as_echo_n "checking for $ac_word... " >&6; }
3420 if ${ac_cv_prog_CC+:} false; then :
3421 $as_echo_n "(cached) " >&6
3422 else
3423 if test -n "$CC"; then
3424 ac_cv_prog_CC="$CC" # Let the user override the test.
3425 else
3426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3427 for as_dir in $PATH
3429 IFS=$as_save_IFS
3430 test -z "$as_dir" && as_dir=.
3431 for ac_exec_ext in '' $ac_executable_extensions; do
3432 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3433 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3435 break 2
3437 done
3438 done
3439 IFS=$as_save_IFS
3443 CC=$ac_cv_prog_CC
3444 if test -n "$CC"; then
3445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3446 $as_echo "$CC" >&6; }
3447 else
3448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3449 $as_echo "no" >&6; }
3453 test -n "$CC" && break
3454 done
3456 if test -z "$CC"; then
3457 ac_ct_CC=$CC
3458 for ac_prog in cl.exe
3460 # Extract the first word of "$ac_prog", so it can be a program name with args.
3461 set dummy $ac_prog; ac_word=$2
3462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3463 $as_echo_n "checking for $ac_word... " >&6; }
3464 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3465 $as_echo_n "(cached) " >&6
3466 else
3467 if test -n "$ac_ct_CC"; then
3468 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3469 else
3470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3471 for as_dir in $PATH
3473 IFS=$as_save_IFS
3474 test -z "$as_dir" && as_dir=.
3475 for ac_exec_ext in '' $ac_executable_extensions; do
3476 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3477 ac_cv_prog_ac_ct_CC="$ac_prog"
3478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3479 break 2
3481 done
3482 done
3483 IFS=$as_save_IFS
3487 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3488 if test -n "$ac_ct_CC"; then
3489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3490 $as_echo "$ac_ct_CC" >&6; }
3491 else
3492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3493 $as_echo "no" >&6; }
3497 test -n "$ac_ct_CC" && break
3498 done
3500 if test "x$ac_ct_CC" = x; then
3501 CC=""
3502 else
3503 case $cross_compiling:$ac_tool_warned in
3504 yes:)
3505 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3506 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3507 ac_tool_warned=yes ;;
3508 esac
3509 CC=$ac_ct_CC
3516 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3517 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3518 as_fn_error $? "no acceptable C compiler found in \$PATH
3519 See \`config.log' for more details" "$LINENO" 5; }
3521 # Provide some information about the compiler.
3522 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3523 set X $ac_compile
3524 ac_compiler=$2
3525 for ac_option in --version -v -V -qversion; do
3526 { { ac_try="$ac_compiler $ac_option >&5"
3527 case "(($ac_try" in
3528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3529 *) ac_try_echo=$ac_try;;
3530 esac
3531 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3532 $as_echo "$ac_try_echo"; } >&5
3533 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3534 ac_status=$?
3535 if test -s conftest.err; then
3536 sed '10a\
3537 ... rest of stderr output deleted ...
3538 10q' conftest.err >conftest.er1
3539 cat conftest.er1 >&5
3541 rm -f conftest.er1 conftest.err
3542 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3543 test $ac_status = 0; }
3544 done
3546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3547 /* end confdefs.h. */
3550 main ()
3554 return 0;
3556 _ACEOF
3557 ac_clean_files_save=$ac_clean_files
3558 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3559 # Try to create an executable without -o first, disregard a.out.
3560 # It will help us diagnose broken compilers, and finding out an intuition
3561 # of exeext.
3562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3563 $as_echo_n "checking whether the C compiler works... " >&6; }
3564 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3566 # The possible output files:
3567 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3569 ac_rmfiles=
3570 for ac_file in $ac_files
3572 case $ac_file in
3573 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3574 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3575 esac
3576 done
3577 rm -f $ac_rmfiles
3579 if { { ac_try="$ac_link_default"
3580 case "(($ac_try" in
3581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3582 *) ac_try_echo=$ac_try;;
3583 esac
3584 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3585 $as_echo "$ac_try_echo"; } >&5
3586 (eval "$ac_link_default") 2>&5
3587 ac_status=$?
3588 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3589 test $ac_status = 0; }; then :
3590 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3591 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3592 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3593 # so that the user can short-circuit this test for compilers unknown to
3594 # Autoconf.
3595 for ac_file in $ac_files ''
3597 test -f "$ac_file" || continue
3598 case $ac_file in
3599 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3601 [ab].out )
3602 # We found the default executable, but exeext='' is most
3603 # certainly right.
3604 break;;
3605 *.* )
3606 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3607 then :; else
3608 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3610 # We set ac_cv_exeext here because the later test for it is not
3611 # safe: cross compilers may not add the suffix if given an `-o'
3612 # argument, so we may need to know it at that point already.
3613 # Even if this section looks crufty: it has the advantage of
3614 # actually working.
3615 break;;
3617 break;;
3618 esac
3619 done
3620 test "$ac_cv_exeext" = no && ac_cv_exeext=
3622 else
3623 ac_file=''
3625 if test -z "$ac_file"; then :
3626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3627 $as_echo "no" >&6; }
3628 $as_echo "$as_me: failed program was:" >&5
3629 sed 's/^/| /' conftest.$ac_ext >&5
3631 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3632 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3633 as_fn_error 77 "C compiler cannot create executables
3634 See \`config.log' for more details" "$LINENO" 5; }
3635 else
3636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3637 $as_echo "yes" >&6; }
3639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3640 $as_echo_n "checking for C compiler default output file name... " >&6; }
3641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3642 $as_echo "$ac_file" >&6; }
3643 ac_exeext=$ac_cv_exeext
3645 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3646 ac_clean_files=$ac_clean_files_save
3647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3648 $as_echo_n "checking for suffix of executables... " >&6; }
3649 if { { ac_try="$ac_link"
3650 case "(($ac_try" in
3651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3652 *) ac_try_echo=$ac_try;;
3653 esac
3654 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3655 $as_echo "$ac_try_echo"; } >&5
3656 (eval "$ac_link") 2>&5
3657 ac_status=$?
3658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3659 test $ac_status = 0; }; then :
3660 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3661 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3662 # work properly (i.e., refer to `conftest.exe'), while it won't with
3663 # `rm'.
3664 for ac_file in conftest.exe conftest conftest.*; do
3665 test -f "$ac_file" || continue
3666 case $ac_file in
3667 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3668 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3669 break;;
3670 * ) break;;
3671 esac
3672 done
3673 else
3674 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3675 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3676 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3677 See \`config.log' for more details" "$LINENO" 5; }
3679 rm -f conftest conftest$ac_cv_exeext
3680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3681 $as_echo "$ac_cv_exeext" >&6; }
3683 rm -f conftest.$ac_ext
3684 EXEEXT=$ac_cv_exeext
3685 ac_exeext=$EXEEXT
3686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3687 /* end confdefs.h. */
3688 #include <stdio.h>
3690 main ()
3692 FILE *f = fopen ("conftest.out", "w");
3693 return ferror (f) || fclose (f) != 0;
3696 return 0;
3698 _ACEOF
3699 ac_clean_files="$ac_clean_files conftest.out"
3700 # Check that the compiler produces executables we can run. If not, either
3701 # the compiler is broken, or we cross compile.
3702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3703 $as_echo_n "checking whether we are cross compiling... " >&6; }
3704 if test "$cross_compiling" != yes; then
3705 { { ac_try="$ac_link"
3706 case "(($ac_try" in
3707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3708 *) ac_try_echo=$ac_try;;
3709 esac
3710 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3711 $as_echo "$ac_try_echo"; } >&5
3712 (eval "$ac_link") 2>&5
3713 ac_status=$?
3714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3715 test $ac_status = 0; }
3716 if { ac_try='./conftest$ac_cv_exeext'
3717 { { case "(($ac_try" in
3718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3719 *) ac_try_echo=$ac_try;;
3720 esac
3721 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3722 $as_echo "$ac_try_echo"; } >&5
3723 (eval "$ac_try") 2>&5
3724 ac_status=$?
3725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3726 test $ac_status = 0; }; }; then
3727 cross_compiling=no
3728 else
3729 if test "$cross_compiling" = maybe; then
3730 cross_compiling=yes
3731 else
3732 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3733 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3734 as_fn_error $? "cannot run C compiled programs.
3735 If you meant to cross compile, use \`--host'.
3736 See \`config.log' for more details" "$LINENO" 5; }
3740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3741 $as_echo "$cross_compiling" >&6; }
3743 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3744 ac_clean_files=$ac_clean_files_save
3745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3746 $as_echo_n "checking for suffix of object files... " >&6; }
3747 if ${ac_cv_objext+:} false; then :
3748 $as_echo_n "(cached) " >&6
3749 else
3750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3751 /* end confdefs.h. */
3754 main ()
3758 return 0;
3760 _ACEOF
3761 rm -f conftest.o conftest.obj
3762 if { { ac_try="$ac_compile"
3763 case "(($ac_try" in
3764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3765 *) ac_try_echo=$ac_try;;
3766 esac
3767 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3768 $as_echo "$ac_try_echo"; } >&5
3769 (eval "$ac_compile") 2>&5
3770 ac_status=$?
3771 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3772 test $ac_status = 0; }; then :
3773 for ac_file in conftest.o conftest.obj conftest.*; do
3774 test -f "$ac_file" || continue;
3775 case $ac_file in
3776 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3777 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3778 break;;
3779 esac
3780 done
3781 else
3782 $as_echo "$as_me: failed program was:" >&5
3783 sed 's/^/| /' conftest.$ac_ext >&5
3785 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3786 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3787 as_fn_error $? "cannot compute suffix of object files: cannot compile
3788 See \`config.log' for more details" "$LINENO" 5; }
3790 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3793 $as_echo "$ac_cv_objext" >&6; }
3794 OBJEXT=$ac_cv_objext
3795 ac_objext=$OBJEXT
3796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3797 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3798 if ${ac_cv_c_compiler_gnu+:} false; then :
3799 $as_echo_n "(cached) " >&6
3800 else
3801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3802 /* end confdefs.h. */
3805 main ()
3807 #ifndef __GNUC__
3808 choke me
3809 #endif
3812 return 0;
3814 _ACEOF
3815 if ac_fn_c_try_compile "$LINENO"; then :
3816 ac_compiler_gnu=yes
3817 else
3818 ac_compiler_gnu=no
3820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3821 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3825 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3826 if test $ac_compiler_gnu = yes; then
3827 GCC=yes
3828 else
3829 GCC=
3831 ac_test_CFLAGS=${CFLAGS+set}
3832 ac_save_CFLAGS=$CFLAGS
3833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3834 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3835 if ${ac_cv_prog_cc_g+:} false; then :
3836 $as_echo_n "(cached) " >&6
3837 else
3838 ac_save_c_werror_flag=$ac_c_werror_flag
3839 ac_c_werror_flag=yes
3840 ac_cv_prog_cc_g=no
3841 CFLAGS="-g"
3842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3843 /* end confdefs.h. */
3846 main ()
3850 return 0;
3852 _ACEOF
3853 if ac_fn_c_try_compile "$LINENO"; then :
3854 ac_cv_prog_cc_g=yes
3855 else
3856 CFLAGS=""
3857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3858 /* end confdefs.h. */
3861 main ()
3865 return 0;
3867 _ACEOF
3868 if ac_fn_c_try_compile "$LINENO"; then :
3870 else
3871 ac_c_werror_flag=$ac_save_c_werror_flag
3872 CFLAGS="-g"
3873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3874 /* end confdefs.h. */
3877 main ()
3881 return 0;
3883 _ACEOF
3884 if ac_fn_c_try_compile "$LINENO"; then :
3885 ac_cv_prog_cc_g=yes
3887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3892 ac_c_werror_flag=$ac_save_c_werror_flag
3894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3895 $as_echo "$ac_cv_prog_cc_g" >&6; }
3896 if test "$ac_test_CFLAGS" = set; then
3897 CFLAGS=$ac_save_CFLAGS
3898 elif test $ac_cv_prog_cc_g = yes; then
3899 if test "$GCC" = yes; then
3900 CFLAGS="-g -O2"
3901 else
3902 CFLAGS="-g"
3904 else
3905 if test "$GCC" = yes; then
3906 CFLAGS="-O2"
3907 else
3908 CFLAGS=
3911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3912 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3913 if ${ac_cv_prog_cc_c89+:} false; then :
3914 $as_echo_n "(cached) " >&6
3915 else
3916 ac_cv_prog_cc_c89=no
3917 ac_save_CC=$CC
3918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3919 /* end confdefs.h. */
3920 #include <stdarg.h>
3921 #include <stdio.h>
3922 struct stat;
3923 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3924 struct buf { int x; };
3925 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3926 static char *e (p, i)
3927 char **p;
3928 int i;
3930 return p[i];
3932 static char *f (char * (*g) (char **, int), char **p, ...)
3934 char *s;
3935 va_list v;
3936 va_start (v,p);
3937 s = g (p, va_arg (v,int));
3938 va_end (v);
3939 return s;
3942 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3943 function prototypes and stuff, but not '\xHH' hex character constants.
3944 These don't provoke an error unfortunately, instead are silently treated
3945 as 'x'. The following induces an error, until -std is added to get
3946 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3947 array size at least. It's necessary to write '\x00'==0 to get something
3948 that's true only with -std. */
3949 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3951 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3952 inside strings and character constants. */
3953 #define FOO(x) 'x'
3954 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3956 int test (int i, double x);
3957 struct s1 {int (*f) (int a);};
3958 struct s2 {int (*f) (double a);};
3959 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3960 int argc;
3961 char **argv;
3963 main ()
3965 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3967 return 0;
3969 _ACEOF
3970 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3971 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3973 CC="$ac_save_CC $ac_arg"
3974 if ac_fn_c_try_compile "$LINENO"; then :
3975 ac_cv_prog_cc_c89=$ac_arg
3977 rm -f core conftest.err conftest.$ac_objext
3978 test "x$ac_cv_prog_cc_c89" != "xno" && break
3979 done
3980 rm -f conftest.$ac_ext
3981 CC=$ac_save_CC
3984 # AC_CACHE_VAL
3985 case "x$ac_cv_prog_cc_c89" in
3987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3988 $as_echo "none needed" >&6; } ;;
3989 xno)
3990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3991 $as_echo "unsupported" >&6; } ;;
3993 CC="$CC $ac_cv_prog_cc_c89"
3994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3995 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3996 esac
3997 if test "x$ac_cv_prog_cc_c89" != xno; then :
4001 ac_ext=c
4002 ac_cpp='$CPP $CPPFLAGS'
4003 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4004 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4005 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4007 ac_ext=c
4008 ac_cpp='$CPP $CPPFLAGS'
4009 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4010 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4011 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4013 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4014 if ${am_cv_prog_cc_c_o+:} false; then :
4015 $as_echo_n "(cached) " >&6
4016 else
4017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4018 /* end confdefs.h. */
4021 main ()
4025 return 0;
4027 _ACEOF
4028 # Make sure it works both with $CC and with simple cc.
4029 # Following AC_PROG_CC_C_O, we do the test twice because some
4030 # compilers refuse to overwrite an existing .o file with -o,
4031 # though they will create one.
4032 am_cv_prog_cc_c_o=yes
4033 for am_i in 1 2; do
4034 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4035 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4036 ac_status=$?
4037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4038 (exit $ac_status); } \
4039 && test -f conftest2.$ac_objext; then
4040 : OK
4041 else
4042 am_cv_prog_cc_c_o=no
4043 break
4045 done
4046 rm -f core conftest*
4047 unset am_i
4049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4050 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4051 if test "$am_cv_prog_cc_c_o" != yes; then
4052 # Losing compiler, so override with the script.
4053 # FIXME: It is wrong to rewrite CC.
4054 # But if we don't then we get into trouble of one sort or another.
4055 # A longer-term fix would be to have automake use am__CC in this case,
4056 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4057 CC="$am_aux_dir/compile $CC"
4059 ac_ext=c
4060 ac_cpp='$CPP $CPPFLAGS'
4061 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4062 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4063 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4066 depcc="$CC" am_compiler_list=
4068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4069 $as_echo_n "checking dependency style of $depcc... " >&6; }
4070 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4071 $as_echo_n "(cached) " >&6
4072 else
4073 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4074 # We make a subdir and do the tests there. Otherwise we can end up
4075 # making bogus files that we don't know about and never remove. For
4076 # instance it was reported that on HP-UX the gcc test will end up
4077 # making a dummy file named 'D' -- because '-MD' means "put the output
4078 # in D".
4079 rm -rf conftest.dir
4080 mkdir conftest.dir
4081 # Copy depcomp to subdir because otherwise we won't find it if we're
4082 # using a relative directory.
4083 cp "$am_depcomp" conftest.dir
4084 cd conftest.dir
4085 # We will build objects and dependencies in a subdirectory because
4086 # it helps to detect inapplicable dependency modes. For instance
4087 # both Tru64's cc and ICC support -MD to output dependencies as a
4088 # side effect of compilation, but ICC will put the dependencies in
4089 # the current directory while Tru64 will put them in the object
4090 # directory.
4091 mkdir sub
4093 am_cv_CC_dependencies_compiler_type=none
4094 if test "$am_compiler_list" = ""; then
4095 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4097 am__universal=false
4098 case " $depcc " in #(
4099 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4100 esac
4102 for depmode in $am_compiler_list; do
4103 # Setup a source with many dependencies, because some compilers
4104 # like to wrap large dependency lists on column 80 (with \), and
4105 # we should not choose a depcomp mode which is confused by this.
4107 # We need to recreate these files for each test, as the compiler may
4108 # overwrite some of them when testing with obscure command lines.
4109 # This happens at least with the AIX C compiler.
4110 : > sub/conftest.c
4111 for i in 1 2 3 4 5 6; do
4112 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4113 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4114 # Solaris 10 /bin/sh.
4115 echo '/* dummy */' > sub/conftst$i.h
4116 done
4117 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4119 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4120 # mode. It turns out that the SunPro C++ compiler does not properly
4121 # handle '-M -o', and we need to detect this. Also, some Intel
4122 # versions had trouble with output in subdirs.
4123 am__obj=sub/conftest.${OBJEXT-o}
4124 am__minus_obj="-o $am__obj"
4125 case $depmode in
4126 gcc)
4127 # This depmode causes a compiler race in universal mode.
4128 test "$am__universal" = false || continue
4130 nosideeffect)
4131 # After this tag, mechanisms are not by side-effect, so they'll
4132 # only be used when explicitly requested.
4133 if test "x$enable_dependency_tracking" = xyes; then
4134 continue
4135 else
4136 break
4139 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4140 # This compiler won't grok '-c -o', but also, the minuso test has
4141 # not run yet. These depmodes are late enough in the game, and
4142 # so weak that their functioning should not be impacted.
4143 am__obj=conftest.${OBJEXT-o}
4144 am__minus_obj=
4146 none) break ;;
4147 esac
4148 if depmode=$depmode \
4149 source=sub/conftest.c object=$am__obj \
4150 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4151 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4152 >/dev/null 2>conftest.err &&
4153 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4154 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4155 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4156 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4157 # icc doesn't choke on unknown options, it will just issue warnings
4158 # or remarks (even with -Werror). So we grep stderr for any message
4159 # that says an option was ignored or not supported.
4160 # When given -MP, icc 7.0 and 7.1 complain thusly:
4161 # icc: Command line warning: ignoring option '-M'; no argument required
4162 # The diagnosis changed in icc 8.0:
4163 # icc: Command line remark: option '-MP' not supported
4164 if (grep 'ignoring option' conftest.err ||
4165 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4166 am_cv_CC_dependencies_compiler_type=$depmode
4167 break
4170 done
4172 cd ..
4173 rm -rf conftest.dir
4174 else
4175 am_cv_CC_dependencies_compiler_type=none
4179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4180 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4181 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4184 test "x$enable_dependency_tracking" != xno \
4185 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4186 am__fastdepCC_TRUE=
4187 am__fastdepCC_FALSE='#'
4188 else
4189 am__fastdepCC_TRUE='#'
4190 am__fastdepCC_FALSE=
4195 ac_ext=c
4196 ac_cpp='$CPP $CPPFLAGS'
4197 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4198 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4199 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4201 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4202 # On Suns, sometimes $CPP names a directory.
4203 if test -n "$CPP" && test -d "$CPP"; then
4204 CPP=
4206 if test -z "$CPP"; then
4207 if ${ac_cv_prog_CPP+:} false; then :
4208 $as_echo_n "(cached) " >&6
4209 else
4210 # Double quotes because CPP needs to be expanded
4211 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4213 ac_preproc_ok=false
4214 for ac_c_preproc_warn_flag in '' yes
4216 # Use a header file that comes with gcc, so configuring glibc
4217 # with a fresh cross-compiler works.
4218 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4219 # <limits.h> exists even on freestanding compilers.
4220 # On the NeXT, cc -E runs the code through the compiler's parser,
4221 # not just through cpp. "Syntax error" is here to catch this case.
4222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4223 /* end confdefs.h. */
4224 #ifdef __STDC__
4225 # include <limits.h>
4226 #else
4227 # include <assert.h>
4228 #endif
4229 Syntax error
4230 _ACEOF
4231 if ac_fn_c_try_cpp "$LINENO"; then :
4233 else
4234 # Broken: fails on valid input.
4235 continue
4237 rm -f conftest.err conftest.i conftest.$ac_ext
4239 # OK, works on sane cases. Now check whether nonexistent headers
4240 # can be detected and how.
4241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4242 /* end confdefs.h. */
4243 #include <ac_nonexistent.h>
4244 _ACEOF
4245 if ac_fn_c_try_cpp "$LINENO"; then :
4246 # Broken: success on invalid input.
4247 continue
4248 else
4249 # Passes both tests.
4250 ac_preproc_ok=:
4251 break
4253 rm -f conftest.err conftest.i conftest.$ac_ext
4255 done
4256 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4257 rm -f conftest.i conftest.err conftest.$ac_ext
4258 if $ac_preproc_ok; then :
4259 break
4262 done
4263 ac_cv_prog_CPP=$CPP
4266 CPP=$ac_cv_prog_CPP
4267 else
4268 ac_cv_prog_CPP=$CPP
4270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4271 $as_echo "$CPP" >&6; }
4272 ac_preproc_ok=false
4273 for ac_c_preproc_warn_flag in '' yes
4275 # Use a header file that comes with gcc, so configuring glibc
4276 # with a fresh cross-compiler works.
4277 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4278 # <limits.h> exists even on freestanding compilers.
4279 # On the NeXT, cc -E runs the code through the compiler's parser,
4280 # not just through cpp. "Syntax error" is here to catch this case.
4281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4282 /* end confdefs.h. */
4283 #ifdef __STDC__
4284 # include <limits.h>
4285 #else
4286 # include <assert.h>
4287 #endif
4288 Syntax error
4289 _ACEOF
4290 if ac_fn_c_try_cpp "$LINENO"; then :
4292 else
4293 # Broken: fails on valid input.
4294 continue
4296 rm -f conftest.err conftest.i conftest.$ac_ext
4298 # OK, works on sane cases. Now check whether nonexistent headers
4299 # can be detected and how.
4300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4301 /* end confdefs.h. */
4302 #include <ac_nonexistent.h>
4303 _ACEOF
4304 if ac_fn_c_try_cpp "$LINENO"; then :
4305 # Broken: success on invalid input.
4306 continue
4307 else
4308 # Passes both tests.
4309 ac_preproc_ok=:
4310 break
4312 rm -f conftest.err conftest.i conftest.$ac_ext
4314 done
4315 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4316 rm -f conftest.i conftest.err conftest.$ac_ext
4317 if $ac_preproc_ok; then :
4319 else
4320 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4321 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4322 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4323 See \`config.log' for more details" "$LINENO" 5; }
4326 ac_ext=c
4327 ac_cpp='$CPP $CPPFLAGS'
4328 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4329 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4330 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4334 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4335 if ${ac_cv_path_GREP+:} false; then :
4336 $as_echo_n "(cached) " >&6
4337 else
4338 if test -z "$GREP"; then
4339 ac_path_GREP_found=false
4340 # Loop through the user's path and test for each of PROGNAME-LIST
4341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4342 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4344 IFS=$as_save_IFS
4345 test -z "$as_dir" && as_dir=.
4346 for ac_prog in grep ggrep; do
4347 for ac_exec_ext in '' $ac_executable_extensions; do
4348 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4349 as_fn_executable_p "$ac_path_GREP" || continue
4350 # Check for GNU ac_path_GREP and select it if it is found.
4351 # Check for GNU $ac_path_GREP
4352 case `"$ac_path_GREP" --version 2>&1` in
4353 *GNU*)
4354 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4356 ac_count=0
4357 $as_echo_n 0123456789 >"conftest.in"
4358 while :
4360 cat "conftest.in" "conftest.in" >"conftest.tmp"
4361 mv "conftest.tmp" "conftest.in"
4362 cp "conftest.in" "conftest.nl"
4363 $as_echo 'GREP' >> "conftest.nl"
4364 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4365 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4366 as_fn_arith $ac_count + 1 && ac_count=$as_val
4367 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4368 # Best one so far, save it but keep looking for a better one
4369 ac_cv_path_GREP="$ac_path_GREP"
4370 ac_path_GREP_max=$ac_count
4372 # 10*(2^10) chars as input seems more than enough
4373 test $ac_count -gt 10 && break
4374 done
4375 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4376 esac
4378 $ac_path_GREP_found && break 3
4379 done
4380 done
4381 done
4382 IFS=$as_save_IFS
4383 if test -z "$ac_cv_path_GREP"; then
4384 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4386 else
4387 ac_cv_path_GREP=$GREP
4391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4392 $as_echo "$ac_cv_path_GREP" >&6; }
4393 GREP="$ac_cv_path_GREP"
4396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4397 $as_echo_n "checking for egrep... " >&6; }
4398 if ${ac_cv_path_EGREP+:} false; then :
4399 $as_echo_n "(cached) " >&6
4400 else
4401 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4402 then ac_cv_path_EGREP="$GREP -E"
4403 else
4404 if test -z "$EGREP"; then
4405 ac_path_EGREP_found=false
4406 # Loop through the user's path and test for each of PROGNAME-LIST
4407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4408 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4410 IFS=$as_save_IFS
4411 test -z "$as_dir" && as_dir=.
4412 for ac_prog in egrep; do
4413 for ac_exec_ext in '' $ac_executable_extensions; do
4414 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4415 as_fn_executable_p "$ac_path_EGREP" || continue
4416 # Check for GNU ac_path_EGREP and select it if it is found.
4417 # Check for GNU $ac_path_EGREP
4418 case `"$ac_path_EGREP" --version 2>&1` in
4419 *GNU*)
4420 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4422 ac_count=0
4423 $as_echo_n 0123456789 >"conftest.in"
4424 while :
4426 cat "conftest.in" "conftest.in" >"conftest.tmp"
4427 mv "conftest.tmp" "conftest.in"
4428 cp "conftest.in" "conftest.nl"
4429 $as_echo 'EGREP' >> "conftest.nl"
4430 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4431 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4432 as_fn_arith $ac_count + 1 && ac_count=$as_val
4433 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4434 # Best one so far, save it but keep looking for a better one
4435 ac_cv_path_EGREP="$ac_path_EGREP"
4436 ac_path_EGREP_max=$ac_count
4438 # 10*(2^10) chars as input seems more than enough
4439 test $ac_count -gt 10 && break
4440 done
4441 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4442 esac
4444 $ac_path_EGREP_found && break 3
4445 done
4446 done
4447 done
4448 IFS=$as_save_IFS
4449 if test -z "$ac_cv_path_EGREP"; then
4450 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4452 else
4453 ac_cv_path_EGREP=$EGREP
4458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4459 $as_echo "$ac_cv_path_EGREP" >&6; }
4460 EGREP="$ac_cv_path_EGREP"
4463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4464 $as_echo_n "checking for ANSI C header files... " >&6; }
4465 if ${ac_cv_header_stdc+:} false; then :
4466 $as_echo_n "(cached) " >&6
4467 else
4468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4469 /* end confdefs.h. */
4470 #include <stdlib.h>
4471 #include <stdarg.h>
4472 #include <string.h>
4473 #include <float.h>
4476 main ()
4480 return 0;
4482 _ACEOF
4483 if ac_fn_c_try_compile "$LINENO"; then :
4484 ac_cv_header_stdc=yes
4485 else
4486 ac_cv_header_stdc=no
4488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4490 if test $ac_cv_header_stdc = yes; then
4491 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4493 /* end confdefs.h. */
4494 #include <string.h>
4496 _ACEOF
4497 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4498 $EGREP "memchr" >/dev/null 2>&1; then :
4500 else
4501 ac_cv_header_stdc=no
4503 rm -f conftest*
4507 if test $ac_cv_header_stdc = yes; then
4508 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4510 /* end confdefs.h. */
4511 #include <stdlib.h>
4513 _ACEOF
4514 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4515 $EGREP "free" >/dev/null 2>&1; then :
4517 else
4518 ac_cv_header_stdc=no
4520 rm -f conftest*
4524 if test $ac_cv_header_stdc = yes; then
4525 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4526 if test "$cross_compiling" = yes; then :
4528 else
4529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4530 /* end confdefs.h. */
4531 #include <ctype.h>
4532 #include <stdlib.h>
4533 #if ((' ' & 0x0FF) == 0x020)
4534 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4535 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4536 #else
4537 # define ISLOWER(c) \
4538 (('a' <= (c) && (c) <= 'i') \
4539 || ('j' <= (c) && (c) <= 'r') \
4540 || ('s' <= (c) && (c) <= 'z'))
4541 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4542 #endif
4544 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4546 main ()
4548 int i;
4549 for (i = 0; i < 256; i++)
4550 if (XOR (islower (i), ISLOWER (i))
4551 || toupper (i) != TOUPPER (i))
4552 return 2;
4553 return 0;
4555 _ACEOF
4556 if ac_fn_c_try_run "$LINENO"; then :
4558 else
4559 ac_cv_header_stdc=no
4561 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4562 conftest.$ac_objext conftest.beam conftest.$ac_ext
4567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4568 $as_echo "$ac_cv_header_stdc" >&6; }
4569 if test $ac_cv_header_stdc = yes; then
4571 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4575 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4576 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4577 inttypes.h stdint.h unistd.h
4578 do :
4579 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4580 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4582 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4583 cat >>confdefs.h <<_ACEOF
4584 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4585 _ACEOF
4589 done
4593 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4594 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4595 MINIX=yes
4596 else
4597 MINIX=
4601 if test "$MINIX" = yes; then
4603 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4606 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4609 $as_echo "#define _MINIX 1" >>confdefs.h
4614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4615 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4616 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4617 $as_echo_n "(cached) " >&6
4618 else
4619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4620 /* end confdefs.h. */
4622 # define __EXTENSIONS__ 1
4623 $ac_includes_default
4625 main ()
4629 return 0;
4631 _ACEOF
4632 if ac_fn_c_try_compile "$LINENO"; then :
4633 ac_cv_safe_to_define___extensions__=yes
4634 else
4635 ac_cv_safe_to_define___extensions__=no
4637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4640 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4641 test $ac_cv_safe_to_define___extensions__ = yes &&
4642 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4644 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4646 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4648 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4650 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4653 ac_ext=c
4654 ac_cpp='$CPP $CPPFLAGS'
4655 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4656 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4657 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4658 if test -n "$ac_tool_prefix"; then
4659 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4660 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4662 $as_echo_n "checking for $ac_word... " >&6; }
4663 if ${ac_cv_prog_CC+:} false; then :
4664 $as_echo_n "(cached) " >&6
4665 else
4666 if test -n "$CC"; then
4667 ac_cv_prog_CC="$CC" # Let the user override the test.
4668 else
4669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4670 for as_dir in $PATH
4672 IFS=$as_save_IFS
4673 test -z "$as_dir" && as_dir=.
4674 for ac_exec_ext in '' $ac_executable_extensions; do
4675 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4676 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4678 break 2
4680 done
4681 done
4682 IFS=$as_save_IFS
4686 CC=$ac_cv_prog_CC
4687 if test -n "$CC"; then
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4689 $as_echo "$CC" >&6; }
4690 else
4691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4692 $as_echo "no" >&6; }
4697 if test -z "$ac_cv_prog_CC"; then
4698 ac_ct_CC=$CC
4699 # Extract the first word of "gcc", so it can be a program name with args.
4700 set dummy gcc; ac_word=$2
4701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4702 $as_echo_n "checking for $ac_word... " >&6; }
4703 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4704 $as_echo_n "(cached) " >&6
4705 else
4706 if test -n "$ac_ct_CC"; then
4707 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4708 else
4709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4710 for as_dir in $PATH
4712 IFS=$as_save_IFS
4713 test -z "$as_dir" && as_dir=.
4714 for ac_exec_ext in '' $ac_executable_extensions; do
4715 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4716 ac_cv_prog_ac_ct_CC="gcc"
4717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4718 break 2
4720 done
4721 done
4722 IFS=$as_save_IFS
4726 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4727 if test -n "$ac_ct_CC"; then
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4729 $as_echo "$ac_ct_CC" >&6; }
4730 else
4731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4732 $as_echo "no" >&6; }
4735 if test "x$ac_ct_CC" = x; then
4736 CC=""
4737 else
4738 case $cross_compiling:$ac_tool_warned in
4739 yes:)
4740 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4741 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4742 ac_tool_warned=yes ;;
4743 esac
4744 CC=$ac_ct_CC
4746 else
4747 CC="$ac_cv_prog_CC"
4750 if test -z "$CC"; then
4751 if test -n "$ac_tool_prefix"; then
4752 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4753 set dummy ${ac_tool_prefix}cc; ac_word=$2
4754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4755 $as_echo_n "checking for $ac_word... " >&6; }
4756 if ${ac_cv_prog_CC+:} false; then :
4757 $as_echo_n "(cached) " >&6
4758 else
4759 if test -n "$CC"; then
4760 ac_cv_prog_CC="$CC" # Let the user override the test.
4761 else
4762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4763 for as_dir in $PATH
4765 IFS=$as_save_IFS
4766 test -z "$as_dir" && as_dir=.
4767 for ac_exec_ext in '' $ac_executable_extensions; do
4768 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4769 ac_cv_prog_CC="${ac_tool_prefix}cc"
4770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4771 break 2
4773 done
4774 done
4775 IFS=$as_save_IFS
4779 CC=$ac_cv_prog_CC
4780 if test -n "$CC"; then
4781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4782 $as_echo "$CC" >&6; }
4783 else
4784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4785 $as_echo "no" >&6; }
4791 if test -z "$CC"; then
4792 # Extract the first word of "cc", so it can be a program name with args.
4793 set dummy cc; ac_word=$2
4794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4795 $as_echo_n "checking for $ac_word... " >&6; }
4796 if ${ac_cv_prog_CC+:} false; then :
4797 $as_echo_n "(cached) " >&6
4798 else
4799 if test -n "$CC"; then
4800 ac_cv_prog_CC="$CC" # Let the user override the test.
4801 else
4802 ac_prog_rejected=no
4803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4804 for as_dir in $PATH
4806 IFS=$as_save_IFS
4807 test -z "$as_dir" && as_dir=.
4808 for ac_exec_ext in '' $ac_executable_extensions; do
4809 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4810 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4811 ac_prog_rejected=yes
4812 continue
4814 ac_cv_prog_CC="cc"
4815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4816 break 2
4818 done
4819 done
4820 IFS=$as_save_IFS
4822 if test $ac_prog_rejected = yes; then
4823 # We found a bogon in the path, so make sure we never use it.
4824 set dummy $ac_cv_prog_CC
4825 shift
4826 if test $# != 0; then
4827 # We chose a different compiler from the bogus one.
4828 # However, it has the same basename, so the bogon will be chosen
4829 # first if we set CC to just the basename; use the full file name.
4830 shift
4831 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4836 CC=$ac_cv_prog_CC
4837 if test -n "$CC"; then
4838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4839 $as_echo "$CC" >&6; }
4840 else
4841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4842 $as_echo "no" >&6; }
4847 if test -z "$CC"; then
4848 if test -n "$ac_tool_prefix"; then
4849 for ac_prog in cl.exe
4851 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4852 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4854 $as_echo_n "checking for $ac_word... " >&6; }
4855 if ${ac_cv_prog_CC+:} false; then :
4856 $as_echo_n "(cached) " >&6
4857 else
4858 if test -n "$CC"; then
4859 ac_cv_prog_CC="$CC" # Let the user override the test.
4860 else
4861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4862 for as_dir in $PATH
4864 IFS=$as_save_IFS
4865 test -z "$as_dir" && as_dir=.
4866 for ac_exec_ext in '' $ac_executable_extensions; do
4867 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4868 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4870 break 2
4872 done
4873 done
4874 IFS=$as_save_IFS
4878 CC=$ac_cv_prog_CC
4879 if test -n "$CC"; then
4880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4881 $as_echo "$CC" >&6; }
4882 else
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4884 $as_echo "no" >&6; }
4888 test -n "$CC" && break
4889 done
4891 if test -z "$CC"; then
4892 ac_ct_CC=$CC
4893 for ac_prog in cl.exe
4895 # Extract the first word of "$ac_prog", so it can be a program name with args.
4896 set dummy $ac_prog; ac_word=$2
4897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4898 $as_echo_n "checking for $ac_word... " >&6; }
4899 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4900 $as_echo_n "(cached) " >&6
4901 else
4902 if test -n "$ac_ct_CC"; then
4903 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4904 else
4905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4906 for as_dir in $PATH
4908 IFS=$as_save_IFS
4909 test -z "$as_dir" && as_dir=.
4910 for ac_exec_ext in '' $ac_executable_extensions; do
4911 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4912 ac_cv_prog_ac_ct_CC="$ac_prog"
4913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4914 break 2
4916 done
4917 done
4918 IFS=$as_save_IFS
4922 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4923 if test -n "$ac_ct_CC"; then
4924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4925 $as_echo "$ac_ct_CC" >&6; }
4926 else
4927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4928 $as_echo "no" >&6; }
4932 test -n "$ac_ct_CC" && break
4933 done
4935 if test "x$ac_ct_CC" = x; then
4936 CC=""
4937 else
4938 case $cross_compiling:$ac_tool_warned in
4939 yes:)
4940 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4941 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4942 ac_tool_warned=yes ;;
4943 esac
4944 CC=$ac_ct_CC
4951 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4952 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4953 as_fn_error $? "no acceptable C compiler found in \$PATH
4954 See \`config.log' for more details" "$LINENO" 5; }
4956 # Provide some information about the compiler.
4957 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4958 set X $ac_compile
4959 ac_compiler=$2
4960 for ac_option in --version -v -V -qversion; do
4961 { { ac_try="$ac_compiler $ac_option >&5"
4962 case "(($ac_try" in
4963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4964 *) ac_try_echo=$ac_try;;
4965 esac
4966 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4967 $as_echo "$ac_try_echo"; } >&5
4968 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4969 ac_status=$?
4970 if test -s conftest.err; then
4971 sed '10a\
4972 ... rest of stderr output deleted ...
4973 10q' conftest.err >conftest.er1
4974 cat conftest.er1 >&5
4976 rm -f conftest.er1 conftest.err
4977 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4978 test $ac_status = 0; }
4979 done
4981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4982 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4983 if ${ac_cv_c_compiler_gnu+:} false; then :
4984 $as_echo_n "(cached) " >&6
4985 else
4986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4987 /* end confdefs.h. */
4990 main ()
4992 #ifndef __GNUC__
4993 choke me
4994 #endif
4997 return 0;
4999 _ACEOF
5000 if ac_fn_c_try_compile "$LINENO"; then :
5001 ac_compiler_gnu=yes
5002 else
5003 ac_compiler_gnu=no
5005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5006 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5010 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5011 if test $ac_compiler_gnu = yes; then
5012 GCC=yes
5013 else
5014 GCC=
5016 ac_test_CFLAGS=${CFLAGS+set}
5017 ac_save_CFLAGS=$CFLAGS
5018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5019 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5020 if ${ac_cv_prog_cc_g+:} false; then :
5021 $as_echo_n "(cached) " >&6
5022 else
5023 ac_save_c_werror_flag=$ac_c_werror_flag
5024 ac_c_werror_flag=yes
5025 ac_cv_prog_cc_g=no
5026 CFLAGS="-g"
5027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5028 /* end confdefs.h. */
5031 main ()
5035 return 0;
5037 _ACEOF
5038 if ac_fn_c_try_compile "$LINENO"; then :
5039 ac_cv_prog_cc_g=yes
5040 else
5041 CFLAGS=""
5042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5043 /* end confdefs.h. */
5046 main ()
5050 return 0;
5052 _ACEOF
5053 if ac_fn_c_try_compile "$LINENO"; then :
5055 else
5056 ac_c_werror_flag=$ac_save_c_werror_flag
5057 CFLAGS="-g"
5058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5059 /* end confdefs.h. */
5062 main ()
5066 return 0;
5068 _ACEOF
5069 if ac_fn_c_try_compile "$LINENO"; then :
5070 ac_cv_prog_cc_g=yes
5072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5077 ac_c_werror_flag=$ac_save_c_werror_flag
5079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5080 $as_echo "$ac_cv_prog_cc_g" >&6; }
5081 if test "$ac_test_CFLAGS" = set; then
5082 CFLAGS=$ac_save_CFLAGS
5083 elif test $ac_cv_prog_cc_g = yes; then
5084 if test "$GCC" = yes; then
5085 CFLAGS="-g -O2"
5086 else
5087 CFLAGS="-g"
5089 else
5090 if test "$GCC" = yes; then
5091 CFLAGS="-O2"
5092 else
5093 CFLAGS=
5096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5097 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5098 if ${ac_cv_prog_cc_c89+:} false; then :
5099 $as_echo_n "(cached) " >&6
5100 else
5101 ac_cv_prog_cc_c89=no
5102 ac_save_CC=$CC
5103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5104 /* end confdefs.h. */
5105 #include <stdarg.h>
5106 #include <stdio.h>
5107 struct stat;
5108 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5109 struct buf { int x; };
5110 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5111 static char *e (p, i)
5112 char **p;
5113 int i;
5115 return p[i];
5117 static char *f (char * (*g) (char **, int), char **p, ...)
5119 char *s;
5120 va_list v;
5121 va_start (v,p);
5122 s = g (p, va_arg (v,int));
5123 va_end (v);
5124 return s;
5127 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5128 function prototypes and stuff, but not '\xHH' hex character constants.
5129 These don't provoke an error unfortunately, instead are silently treated
5130 as 'x'. The following induces an error, until -std is added to get
5131 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5132 array size at least. It's necessary to write '\x00'==0 to get something
5133 that's true only with -std. */
5134 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5136 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5137 inside strings and character constants. */
5138 #define FOO(x) 'x'
5139 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5141 int test (int i, double x);
5142 struct s1 {int (*f) (int a);};
5143 struct s2 {int (*f) (double a);};
5144 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5145 int argc;
5146 char **argv;
5148 main ()
5150 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5152 return 0;
5154 _ACEOF
5155 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5156 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5158 CC="$ac_save_CC $ac_arg"
5159 if ac_fn_c_try_compile "$LINENO"; then :
5160 ac_cv_prog_cc_c89=$ac_arg
5162 rm -f core conftest.err conftest.$ac_objext
5163 test "x$ac_cv_prog_cc_c89" != "xno" && break
5164 done
5165 rm -f conftest.$ac_ext
5166 CC=$ac_save_CC
5169 # AC_CACHE_VAL
5170 case "x$ac_cv_prog_cc_c89" in
5172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5173 $as_echo "none needed" >&6; } ;;
5174 xno)
5175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5176 $as_echo "unsupported" >&6; } ;;
5178 CC="$CC $ac_cv_prog_cc_c89"
5179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5180 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5181 esac
5182 if test "x$ac_cv_prog_cc_c89" != xno; then :
5186 ac_ext=c
5187 ac_cpp='$CPP $CPPFLAGS'
5188 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5189 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5190 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5192 ac_ext=c
5193 ac_cpp='$CPP $CPPFLAGS'
5194 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5195 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5196 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5198 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5199 if ${am_cv_prog_cc_c_o+:} false; then :
5200 $as_echo_n "(cached) " >&6
5201 else
5202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5203 /* end confdefs.h. */
5206 main ()
5210 return 0;
5212 _ACEOF
5213 # Make sure it works both with $CC and with simple cc.
5214 # Following AC_PROG_CC_C_O, we do the test twice because some
5215 # compilers refuse to overwrite an existing .o file with -o,
5216 # though they will create one.
5217 am_cv_prog_cc_c_o=yes
5218 for am_i in 1 2; do
5219 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5220 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5221 ac_status=$?
5222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5223 (exit $ac_status); } \
5224 && test -f conftest2.$ac_objext; then
5225 : OK
5226 else
5227 am_cv_prog_cc_c_o=no
5228 break
5230 done
5231 rm -f core conftest*
5232 unset am_i
5234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5235 $as_echo "$am_cv_prog_cc_c_o" >&6; }
5236 if test "$am_cv_prog_cc_c_o" != yes; then
5237 # Losing compiler, so override with the script.
5238 # FIXME: It is wrong to rewrite CC.
5239 # But if we don't then we get into trouble of one sort or another.
5240 # A longer-term fix would be to have automake use am__CC in this case,
5241 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5242 CC="$am_aux_dir/compile $CC"
5244 ac_ext=c
5245 ac_cpp='$CPP $CPPFLAGS'
5246 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5247 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5248 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5251 depcc="$CC" am_compiler_list=
5253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5254 $as_echo_n "checking dependency style of $depcc... " >&6; }
5255 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5256 $as_echo_n "(cached) " >&6
5257 else
5258 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5259 # We make a subdir and do the tests there. Otherwise we can end up
5260 # making bogus files that we don't know about and never remove. For
5261 # instance it was reported that on HP-UX the gcc test will end up
5262 # making a dummy file named 'D' -- because '-MD' means "put the output
5263 # in D".
5264 rm -rf conftest.dir
5265 mkdir conftest.dir
5266 # Copy depcomp to subdir because otherwise we won't find it if we're
5267 # using a relative directory.
5268 cp "$am_depcomp" conftest.dir
5269 cd conftest.dir
5270 # We will build objects and dependencies in a subdirectory because
5271 # it helps to detect inapplicable dependency modes. For instance
5272 # both Tru64's cc and ICC support -MD to output dependencies as a
5273 # side effect of compilation, but ICC will put the dependencies in
5274 # the current directory while Tru64 will put them in the object
5275 # directory.
5276 mkdir sub
5278 am_cv_CC_dependencies_compiler_type=none
5279 if test "$am_compiler_list" = ""; then
5280 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5282 am__universal=false
5283 case " $depcc " in #(
5284 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5285 esac
5287 for depmode in $am_compiler_list; do
5288 # Setup a source with many dependencies, because some compilers
5289 # like to wrap large dependency lists on column 80 (with \), and
5290 # we should not choose a depcomp mode which is confused by this.
5292 # We need to recreate these files for each test, as the compiler may
5293 # overwrite some of them when testing with obscure command lines.
5294 # This happens at least with the AIX C compiler.
5295 : > sub/conftest.c
5296 for i in 1 2 3 4 5 6; do
5297 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5298 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5299 # Solaris 10 /bin/sh.
5300 echo '/* dummy */' > sub/conftst$i.h
5301 done
5302 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5304 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5305 # mode. It turns out that the SunPro C++ compiler does not properly
5306 # handle '-M -o', and we need to detect this. Also, some Intel
5307 # versions had trouble with output in subdirs.
5308 am__obj=sub/conftest.${OBJEXT-o}
5309 am__minus_obj="-o $am__obj"
5310 case $depmode in
5311 gcc)
5312 # This depmode causes a compiler race in universal mode.
5313 test "$am__universal" = false || continue
5315 nosideeffect)
5316 # After this tag, mechanisms are not by side-effect, so they'll
5317 # only be used when explicitly requested.
5318 if test "x$enable_dependency_tracking" = xyes; then
5319 continue
5320 else
5321 break
5324 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5325 # This compiler won't grok '-c -o', but also, the minuso test has
5326 # not run yet. These depmodes are late enough in the game, and
5327 # so weak that their functioning should not be impacted.
5328 am__obj=conftest.${OBJEXT-o}
5329 am__minus_obj=
5331 none) break ;;
5332 esac
5333 if depmode=$depmode \
5334 source=sub/conftest.c object=$am__obj \
5335 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5336 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5337 >/dev/null 2>conftest.err &&
5338 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5339 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5340 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5341 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5342 # icc doesn't choke on unknown options, it will just issue warnings
5343 # or remarks (even with -Werror). So we grep stderr for any message
5344 # that says an option was ignored or not supported.
5345 # When given -MP, icc 7.0 and 7.1 complain thusly:
5346 # icc: Command line warning: ignoring option '-M'; no argument required
5347 # The diagnosis changed in icc 8.0:
5348 # icc: Command line remark: option '-MP' not supported
5349 if (grep 'ignoring option' conftest.err ||
5350 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5351 am_cv_CC_dependencies_compiler_type=$depmode
5352 break
5355 done
5357 cd ..
5358 rm -rf conftest.dir
5359 else
5360 am_cv_CC_dependencies_compiler_type=none
5364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5365 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5366 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5369 test "x$enable_dependency_tracking" != xno \
5370 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5371 am__fastdepCC_TRUE=
5372 am__fastdepCC_FALSE='#'
5373 else
5374 am__fastdepCC_TRUE='#'
5375 am__fastdepCC_FALSE=
5379 # Check whether --enable-largefile was given.
5380 if test "${enable_largefile+set}" = set; then :
5381 enableval=$enable_largefile;
5384 if test "$enable_largefile" != no; then
5386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5387 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5388 if ${ac_cv_sys_largefile_CC+:} false; then :
5389 $as_echo_n "(cached) " >&6
5390 else
5391 ac_cv_sys_largefile_CC=no
5392 if test "$GCC" != yes; then
5393 ac_save_CC=$CC
5394 while :; do
5395 # IRIX 6.2 and later do not support large files by default,
5396 # so use the C compiler's -n32 option if that helps.
5397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5398 /* end confdefs.h. */
5399 #include <sys/types.h>
5400 /* Check that off_t can represent 2**63 - 1 correctly.
5401 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5402 since some C++ compilers masquerading as C compilers
5403 incorrectly reject 9223372036854775807. */
5404 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5405 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5406 && LARGE_OFF_T % 2147483647 == 1)
5407 ? 1 : -1];
5409 main ()
5413 return 0;
5415 _ACEOF
5416 if ac_fn_c_try_compile "$LINENO"; then :
5417 break
5419 rm -f core conftest.err conftest.$ac_objext
5420 CC="$CC -n32"
5421 if ac_fn_c_try_compile "$LINENO"; then :
5422 ac_cv_sys_largefile_CC=' -n32'; break
5424 rm -f core conftest.err conftest.$ac_objext
5425 break
5426 done
5427 CC=$ac_save_CC
5428 rm -f conftest.$ac_ext
5431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5432 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5433 if test "$ac_cv_sys_largefile_CC" != no; then
5434 CC=$CC$ac_cv_sys_largefile_CC
5437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5438 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5439 if ${ac_cv_sys_file_offset_bits+:} false; then :
5440 $as_echo_n "(cached) " >&6
5441 else
5442 while :; do
5443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5444 /* end confdefs.h. */
5445 #include <sys/types.h>
5446 /* Check that off_t can represent 2**63 - 1 correctly.
5447 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5448 since some C++ compilers masquerading as C compilers
5449 incorrectly reject 9223372036854775807. */
5450 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5451 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5452 && LARGE_OFF_T % 2147483647 == 1)
5453 ? 1 : -1];
5455 main ()
5459 return 0;
5461 _ACEOF
5462 if ac_fn_c_try_compile "$LINENO"; then :
5463 ac_cv_sys_file_offset_bits=no; break
5465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5467 /* end confdefs.h. */
5468 #define _FILE_OFFSET_BITS 64
5469 #include <sys/types.h>
5470 /* Check that off_t can represent 2**63 - 1 correctly.
5471 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5472 since some C++ compilers masquerading as C compilers
5473 incorrectly reject 9223372036854775807. */
5474 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5475 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5476 && LARGE_OFF_T % 2147483647 == 1)
5477 ? 1 : -1];
5479 main ()
5483 return 0;
5485 _ACEOF
5486 if ac_fn_c_try_compile "$LINENO"; then :
5487 ac_cv_sys_file_offset_bits=64; break
5489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5490 ac_cv_sys_file_offset_bits=unknown
5491 break
5492 done
5494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5495 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5496 case $ac_cv_sys_file_offset_bits in #(
5497 no | unknown) ;;
5499 cat >>confdefs.h <<_ACEOF
5500 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5501 _ACEOF
5503 esac
5504 rm -rf conftest*
5505 if test $ac_cv_sys_file_offset_bits = unknown; then
5506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5507 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5508 if ${ac_cv_sys_large_files+:} false; then :
5509 $as_echo_n "(cached) " >&6
5510 else
5511 while :; do
5512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5513 /* end confdefs.h. */
5514 #include <sys/types.h>
5515 /* Check that off_t can represent 2**63 - 1 correctly.
5516 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5517 since some C++ compilers masquerading as C compilers
5518 incorrectly reject 9223372036854775807. */
5519 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5520 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5521 && LARGE_OFF_T % 2147483647 == 1)
5522 ? 1 : -1];
5524 main ()
5528 return 0;
5530 _ACEOF
5531 if ac_fn_c_try_compile "$LINENO"; then :
5532 ac_cv_sys_large_files=no; break
5534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5536 /* end confdefs.h. */
5537 #define _LARGE_FILES 1
5538 #include <sys/types.h>
5539 /* Check that off_t can represent 2**63 - 1 correctly.
5540 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5541 since some C++ compilers masquerading as C compilers
5542 incorrectly reject 9223372036854775807. */
5543 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5544 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5545 && LARGE_OFF_T % 2147483647 == 1)
5546 ? 1 : -1];
5548 main ()
5552 return 0;
5554 _ACEOF
5555 if ac_fn_c_try_compile "$LINENO"; then :
5556 ac_cv_sys_large_files=1; break
5558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5559 ac_cv_sys_large_files=unknown
5560 break
5561 done
5563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5564 $as_echo "$ac_cv_sys_large_files" >&6; }
5565 case $ac_cv_sys_large_files in #(
5566 no | unknown) ;;
5568 cat >>confdefs.h <<_ACEOF
5569 #define _LARGE_FILES $ac_cv_sys_large_files
5570 _ACEOF
5572 esac
5573 rm -rf conftest*
5579 ac_ext=c
5580 ac_cpp='$CPP $CPPFLAGS'
5581 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5582 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5583 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5585 ac_lto_plugin_warn_cflags=
5586 save_CFLAGS="$CFLAGS"
5587 for real_option in -Wall; do
5588 # Do the check with the no- prefix removed since gcc silently
5589 # accepts any -Wno-* option on purpose
5590 case $real_option in
5591 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
5592 *) option=$real_option ;;
5593 esac
5594 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
5596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
5597 $as_echo_n "checking whether $CC supports $option... " >&6; }
5598 if eval \${$as_acx_Woption+:} false; then :
5599 $as_echo_n "(cached) " >&6
5600 else
5601 CFLAGS="$option"
5602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5603 /* end confdefs.h. */
5606 main ()
5610 return 0;
5612 _ACEOF
5613 if ac_fn_c_try_compile "$LINENO"; then :
5614 eval "$as_acx_Woption=yes"
5615 else
5616 eval "$as_acx_Woption=no"
5618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5621 eval ac_res=\$$as_acx_Woption
5622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5623 $as_echo "$ac_res" >&6; }
5624 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
5625 ac_lto_plugin_warn_cflags="$ac_lto_plugin_warn_cflags${ac_lto_plugin_warn_cflags:+ }$real_option"
5627 done
5628 CFLAGS="$save_CFLAGS"
5629 ac_ext=c
5630 ac_cpp='$CPP $CPPFLAGS'
5631 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5632 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5633 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5637 # Check whether -static-libgcc is supported.
5638 saved_LDFLAGS="$LDFLAGS"
5639 LDFLAGS="$LDFLAGS -static-libgcc"
5640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -static-libgcc" >&5
5641 $as_echo_n "checking for -static-libgcc... " >&6; }
5642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5643 /* end confdefs.h. */
5645 int main() {}
5646 _ACEOF
5647 if ac_fn_c_try_link "$LINENO"; then :
5648 have_static_libgcc=yes
5649 else
5650 have_static_libgcc=no
5652 rm -f core conftest.err conftest.$ac_objext \
5653 conftest$ac_exeext conftest.$ac_ext
5654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_static_libgcc" >&5
5655 $as_echo "$have_static_libgcc" >&6; };
5656 LDFLAGS="$saved_LDFLAGS"
5657 # Need -Wc to get it through libtool.
5658 if test "x$have_static_libgcc" = xyes; then
5659 ac_lto_plugin_ldflags="-Wc,-static-libgcc"
5663 if test x"$host_subdir" = x.; then
5664 gcc_build_dir=../gcc
5665 else
5666 gcc_build_dir=../../$host_subdir/gcc
5670 # Used for constructing correct paths for offload compilers.
5671 accel_dir_suffix=
5672 real_target_noncanonical=${target_noncanonical}
5673 if test x"$enable_as_accelerator_for" != x; then
5674 accel_dir_suffix=/accel/${target_noncanonical}
5675 real_target_noncanonical=${enable_as_accelerator_for}
5680 # Determine what GCC version number to use in filesystem paths.
5682 get_gcc_base_ver="cat"
5684 # Check whether --with-gcc-major-version-only was given.
5685 if test "${with_gcc_major_version_only+set}" = set; then :
5686 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
5687 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
5695 case `pwd` in
5696 *\ * | *\ *)
5697 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5698 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5699 esac
5703 macro_version='2.2.7a'
5704 macro_revision='1.3134'
5718 ltmain="$ac_aux_dir/ltmain.sh"
5720 # Backslashify metacharacters that are still active within
5721 # double-quoted strings.
5722 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5724 # Same as above, but do not quote variable references.
5725 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5727 # Sed substitution to delay expansion of an escaped shell variable in a
5728 # double_quote_subst'ed string.
5729 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5731 # Sed substitution to delay expansion of an escaped single quote.
5732 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5734 # Sed substitution to avoid accidental globbing in evaled expressions
5735 no_glob_subst='s/\*/\\\*/g'
5737 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5738 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5739 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5742 $as_echo_n "checking how to print strings... " >&6; }
5743 # Test print first, because it will be a builtin if present.
5744 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5745 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5746 ECHO='print -r --'
5747 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5748 ECHO='printf %s\n'
5749 else
5750 # Use this function as a fallback that always works.
5751 func_fallback_echo ()
5753 eval 'cat <<_LTECHO_EOF
5755 _LTECHO_EOF'
5757 ECHO='func_fallback_echo'
5760 # func_echo_all arg...
5761 # Invoke $ECHO with all args, space-separated.
5762 func_echo_all ()
5764 $ECHO ""
5767 case "$ECHO" in
5768 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5769 $as_echo "printf" >&6; } ;;
5770 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5771 $as_echo "print -r" >&6; } ;;
5772 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5773 $as_echo "cat" >&6; } ;;
5774 esac
5789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5790 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5791 if ${ac_cv_path_SED+:} false; then :
5792 $as_echo_n "(cached) " >&6
5793 else
5794 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5795 for ac_i in 1 2 3 4 5 6 7; do
5796 ac_script="$ac_script$as_nl$ac_script"
5797 done
5798 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5799 { ac_script=; unset ac_script;}
5800 if test -z "$SED"; then
5801 ac_path_SED_found=false
5802 # Loop through the user's path and test for each of PROGNAME-LIST
5803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5804 for as_dir in $PATH
5806 IFS=$as_save_IFS
5807 test -z "$as_dir" && as_dir=.
5808 for ac_prog in sed gsed; do
5809 for ac_exec_ext in '' $ac_executable_extensions; do
5810 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5811 as_fn_executable_p "$ac_path_SED" || continue
5812 # Check for GNU ac_path_SED and select it if it is found.
5813 # Check for GNU $ac_path_SED
5814 case `"$ac_path_SED" --version 2>&1` in
5815 *GNU*)
5816 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5818 ac_count=0
5819 $as_echo_n 0123456789 >"conftest.in"
5820 while :
5822 cat "conftest.in" "conftest.in" >"conftest.tmp"
5823 mv "conftest.tmp" "conftest.in"
5824 cp "conftest.in" "conftest.nl"
5825 $as_echo '' >> "conftest.nl"
5826 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5827 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5828 as_fn_arith $ac_count + 1 && ac_count=$as_val
5829 if test $ac_count -gt ${ac_path_SED_max-0}; then
5830 # Best one so far, save it but keep looking for a better one
5831 ac_cv_path_SED="$ac_path_SED"
5832 ac_path_SED_max=$ac_count
5834 # 10*(2^10) chars as input seems more than enough
5835 test $ac_count -gt 10 && break
5836 done
5837 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5838 esac
5840 $ac_path_SED_found && break 3
5841 done
5842 done
5843 done
5844 IFS=$as_save_IFS
5845 if test -z "$ac_cv_path_SED"; then
5846 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5848 else
5849 ac_cv_path_SED=$SED
5853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5854 $as_echo "$ac_cv_path_SED" >&6; }
5855 SED="$ac_cv_path_SED"
5856 rm -f conftest.sed
5858 test -z "$SED" && SED=sed
5859 Xsed="$SED -e 1s/^X//"
5871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5872 $as_echo_n "checking for fgrep... " >&6; }
5873 if ${ac_cv_path_FGREP+:} false; then :
5874 $as_echo_n "(cached) " >&6
5875 else
5876 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5877 then ac_cv_path_FGREP="$GREP -F"
5878 else
5879 if test -z "$FGREP"; then
5880 ac_path_FGREP_found=false
5881 # Loop through the user's path and test for each of PROGNAME-LIST
5882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5883 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5885 IFS=$as_save_IFS
5886 test -z "$as_dir" && as_dir=.
5887 for ac_prog in fgrep; do
5888 for ac_exec_ext in '' $ac_executable_extensions; do
5889 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5890 as_fn_executable_p "$ac_path_FGREP" || continue
5891 # Check for GNU ac_path_FGREP and select it if it is found.
5892 # Check for GNU $ac_path_FGREP
5893 case `"$ac_path_FGREP" --version 2>&1` in
5894 *GNU*)
5895 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5897 ac_count=0
5898 $as_echo_n 0123456789 >"conftest.in"
5899 while :
5901 cat "conftest.in" "conftest.in" >"conftest.tmp"
5902 mv "conftest.tmp" "conftest.in"
5903 cp "conftest.in" "conftest.nl"
5904 $as_echo 'FGREP' >> "conftest.nl"
5905 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5906 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5907 as_fn_arith $ac_count + 1 && ac_count=$as_val
5908 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5909 # Best one so far, save it but keep looking for a better one
5910 ac_cv_path_FGREP="$ac_path_FGREP"
5911 ac_path_FGREP_max=$ac_count
5913 # 10*(2^10) chars as input seems more than enough
5914 test $ac_count -gt 10 && break
5915 done
5916 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5917 esac
5919 $ac_path_FGREP_found && break 3
5920 done
5921 done
5922 done
5923 IFS=$as_save_IFS
5924 if test -z "$ac_cv_path_FGREP"; then
5925 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5927 else
5928 ac_cv_path_FGREP=$FGREP
5933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5934 $as_echo "$ac_cv_path_FGREP" >&6; }
5935 FGREP="$ac_cv_path_FGREP"
5938 test -z "$GREP" && GREP=grep
5958 # Check whether --with-gnu-ld was given.
5959 if test "${with_gnu_ld+set}" = set; then :
5960 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5961 else
5962 with_gnu_ld=no
5965 ac_prog=ld
5966 if test "$GCC" = yes; then
5967 # Check if gcc -print-prog-name=ld gives a path.
5968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5969 $as_echo_n "checking for ld used by $CC... " >&6; }
5970 case $host in
5971 *-*-mingw*)
5972 # gcc leaves a trailing carriage return which upsets mingw
5973 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5975 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5976 esac
5977 case $ac_prog in
5978 # Accept absolute paths.
5979 [\\/]* | ?:[\\/]*)
5980 re_direlt='/[^/][^/]*/\.\./'
5981 # Canonicalize the pathname of ld
5982 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5983 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5984 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5985 done
5986 test -z "$LD" && LD="$ac_prog"
5989 # If it fails, then pretend we aren't using GCC.
5990 ac_prog=ld
5993 # If it is relative, then search for the first ld in PATH.
5994 with_gnu_ld=unknown
5996 esac
5997 elif test "$with_gnu_ld" = yes; then
5998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5999 $as_echo_n "checking for GNU ld... " >&6; }
6000 else
6001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6002 $as_echo_n "checking for non-GNU ld... " >&6; }
6004 if ${lt_cv_path_LD+:} false; then :
6005 $as_echo_n "(cached) " >&6
6006 else
6007 if test -z "$LD"; then
6008 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6009 for ac_dir in $PATH; do
6010 IFS="$lt_save_ifs"
6011 test -z "$ac_dir" && ac_dir=.
6012 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6013 lt_cv_path_LD="$ac_dir/$ac_prog"
6014 # Check to see if the program is GNU ld. I'd rather use --version,
6015 # but apparently some variants of GNU ld only accept -v.
6016 # Break only if it was the GNU/non-GNU ld that we prefer.
6017 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6018 *GNU* | *'with BFD'*)
6019 test "$with_gnu_ld" != no && break
6022 test "$with_gnu_ld" != yes && break
6024 esac
6026 done
6027 IFS="$lt_save_ifs"
6028 else
6029 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6033 LD="$lt_cv_path_LD"
6034 if test -n "$LD"; then
6035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6036 $as_echo "$LD" >&6; }
6037 else
6038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6039 $as_echo "no" >&6; }
6041 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6043 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6044 if ${lt_cv_prog_gnu_ld+:} false; then :
6045 $as_echo_n "(cached) " >&6
6046 else
6047 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6048 case `$LD -v 2>&1 </dev/null` in
6049 *GNU* | *'with BFD'*)
6050 lt_cv_prog_gnu_ld=yes
6053 lt_cv_prog_gnu_ld=no
6055 esac
6057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6058 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6059 with_gnu_ld=$lt_cv_prog_gnu_ld
6069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6070 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6071 if ${lt_cv_path_NM+:} false; then :
6072 $as_echo_n "(cached) " >&6
6073 else
6074 if test -n "$NM"; then
6075 # Let the user override the test.
6076 lt_cv_path_NM="$NM"
6077 else
6078 lt_nm_to_check="${ac_tool_prefix}nm"
6079 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6080 lt_nm_to_check="$lt_nm_to_check nm"
6082 for lt_tmp_nm in $lt_nm_to_check; do
6083 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6084 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6085 IFS="$lt_save_ifs"
6086 test -z "$ac_dir" && ac_dir=.
6087 tmp_nm="$ac_dir/$lt_tmp_nm"
6088 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6089 # Check to see if the nm accepts a BSD-compat flag.
6090 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6091 # nm: unknown option "B" ignored
6092 # Tru64's nm complains that /dev/null is an invalid object file
6093 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6094 */dev/null* | *'Invalid file or object type'*)
6095 lt_cv_path_NM="$tmp_nm -B"
6096 break
6099 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6100 */dev/null*)
6101 lt_cv_path_NM="$tmp_nm -p"
6102 break
6105 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6106 continue # so that we can try to find one that supports BSD flags
6108 esac
6110 esac
6112 done
6113 IFS="$lt_save_ifs"
6114 done
6115 : ${lt_cv_path_NM=no}
6118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6119 $as_echo "$lt_cv_path_NM" >&6; }
6120 if test "$lt_cv_path_NM" != "no"; then
6121 NM="$lt_cv_path_NM"
6122 else
6123 # Didn't find any BSD compatible name lister, look for dumpbin.
6124 if test -n "$DUMPBIN"; then :
6125 # Let the user override the test.
6126 else
6127 if test -n "$ac_tool_prefix"; then
6128 for ac_prog in dumpbin "link -dump"
6130 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6131 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6133 $as_echo_n "checking for $ac_word... " >&6; }
6134 if ${ac_cv_prog_DUMPBIN+:} false; then :
6135 $as_echo_n "(cached) " >&6
6136 else
6137 if test -n "$DUMPBIN"; then
6138 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6139 else
6140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6141 for as_dir in $PATH
6143 IFS=$as_save_IFS
6144 test -z "$as_dir" && as_dir=.
6145 for ac_exec_ext in '' $ac_executable_extensions; do
6146 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6147 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6149 break 2
6151 done
6152 done
6153 IFS=$as_save_IFS
6157 DUMPBIN=$ac_cv_prog_DUMPBIN
6158 if test -n "$DUMPBIN"; then
6159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6160 $as_echo "$DUMPBIN" >&6; }
6161 else
6162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6163 $as_echo "no" >&6; }
6167 test -n "$DUMPBIN" && break
6168 done
6170 if test -z "$DUMPBIN"; then
6171 ac_ct_DUMPBIN=$DUMPBIN
6172 for ac_prog in dumpbin "link -dump"
6174 # Extract the first word of "$ac_prog", so it can be a program name with args.
6175 set dummy $ac_prog; ac_word=$2
6176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6177 $as_echo_n "checking for $ac_word... " >&6; }
6178 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6179 $as_echo_n "(cached) " >&6
6180 else
6181 if test -n "$ac_ct_DUMPBIN"; then
6182 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6183 else
6184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6185 for as_dir in $PATH
6187 IFS=$as_save_IFS
6188 test -z "$as_dir" && as_dir=.
6189 for ac_exec_ext in '' $ac_executable_extensions; do
6190 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6191 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6193 break 2
6195 done
6196 done
6197 IFS=$as_save_IFS
6201 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6202 if test -n "$ac_ct_DUMPBIN"; then
6203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6204 $as_echo "$ac_ct_DUMPBIN" >&6; }
6205 else
6206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6207 $as_echo "no" >&6; }
6211 test -n "$ac_ct_DUMPBIN" && break
6212 done
6214 if test "x$ac_ct_DUMPBIN" = x; then
6215 DUMPBIN=":"
6216 else
6217 case $cross_compiling:$ac_tool_warned in
6218 yes:)
6219 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6220 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6221 ac_tool_warned=yes ;;
6222 esac
6223 DUMPBIN=$ac_ct_DUMPBIN
6227 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6228 *COFF*)
6229 DUMPBIN="$DUMPBIN -symbols"
6232 DUMPBIN=:
6234 esac
6237 if test "$DUMPBIN" != ":"; then
6238 NM="$DUMPBIN"
6241 test -z "$NM" && NM=nm
6248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6249 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6250 if ${lt_cv_nm_interface+:} false; then :
6251 $as_echo_n "(cached) " >&6
6252 else
6253 lt_cv_nm_interface="BSD nm"
6254 echo "int some_variable = 0;" > conftest.$ac_ext
6255 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6256 (eval "$ac_compile" 2>conftest.err)
6257 cat conftest.err >&5
6258 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6259 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6260 cat conftest.err >&5
6261 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6262 cat conftest.out >&5
6263 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6264 lt_cv_nm_interface="MS dumpbin"
6266 rm -f conftest*
6268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6269 $as_echo "$lt_cv_nm_interface" >&6; }
6271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6272 $as_echo_n "checking whether ln -s works... " >&6; }
6273 LN_S=$as_ln_s
6274 if test "$LN_S" = "ln -s"; then
6275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6276 $as_echo "yes" >&6; }
6277 else
6278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6279 $as_echo "no, using $LN_S" >&6; }
6282 # find the maximum length of command line arguments
6283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6284 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6285 if ${lt_cv_sys_max_cmd_len+:} false; then :
6286 $as_echo_n "(cached) " >&6
6287 else
6289 teststring="ABCD"
6291 case $build_os in
6292 msdosdjgpp*)
6293 # On DJGPP, this test can blow up pretty badly due to problems in libc
6294 # (any single argument exceeding 2000 bytes causes a buffer overrun
6295 # during glob expansion). Even if it were fixed, the result of this
6296 # check would be larger than it should be.
6297 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6300 gnu*)
6301 # Under GNU Hurd, this test is not required because there is
6302 # no limit to the length of command line arguments.
6303 # Libtool will interpret -1 as no limit whatsoever
6304 lt_cv_sys_max_cmd_len=-1;
6307 cygwin* | mingw* | cegcc*)
6308 # On Win9x/ME, this test blows up -- it succeeds, but takes
6309 # about 5 minutes as the teststring grows exponentially.
6310 # Worse, since 9x/ME are not pre-emptively multitasking,
6311 # you end up with a "frozen" computer, even though with patience
6312 # the test eventually succeeds (with a max line length of 256k).
6313 # Instead, let's just punt: use the minimum linelength reported by
6314 # all of the supported platforms: 8192 (on NT/2K/XP).
6315 lt_cv_sys_max_cmd_len=8192;
6318 mint*)
6319 # On MiNT this can take a long time and run out of memory.
6320 lt_cv_sys_max_cmd_len=8192;
6323 amigaos*)
6324 # On AmigaOS with pdksh, this test takes hours, literally.
6325 # So we just punt and use a minimum line length of 8192.
6326 lt_cv_sys_max_cmd_len=8192;
6329 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6330 # This has been around since 386BSD, at least. Likely further.
6331 if test -x /sbin/sysctl; then
6332 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6333 elif test -x /usr/sbin/sysctl; then
6334 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6335 else
6336 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6338 # And add a safety zone
6339 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6340 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6343 interix*)
6344 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6345 lt_cv_sys_max_cmd_len=196608
6348 osf*)
6349 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6350 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6351 # nice to cause kernel panics so lets avoid the loop below.
6352 # First set a reasonable default.
6353 lt_cv_sys_max_cmd_len=16384
6355 if test -x /sbin/sysconfig; then
6356 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6357 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6358 esac
6361 sco3.2v5*)
6362 lt_cv_sys_max_cmd_len=102400
6364 sysv5* | sco5v6* | sysv4.2uw2*)
6365 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6366 if test -n "$kargmax"; then
6367 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6368 else
6369 lt_cv_sys_max_cmd_len=32768
6373 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6374 if test -n "$lt_cv_sys_max_cmd_len"; then
6375 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6376 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6377 else
6378 # Make teststring a little bigger before we do anything with it.
6379 # a 1K string should be a reasonable start.
6380 for i in 1 2 3 4 5 6 7 8 ; do
6381 teststring=$teststring$teststring
6382 done
6383 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6384 # If test is not a shell built-in, we'll probably end up computing a
6385 # maximum length that is only half of the actual maximum length, but
6386 # we can't tell.
6387 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6388 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6389 test $i != 17 # 1/2 MB should be enough
6391 i=`expr $i + 1`
6392 teststring=$teststring$teststring
6393 done
6394 # Only check the string length outside the loop.
6395 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6396 teststring=
6397 # Add a significant safety factor because C++ compilers can tack on
6398 # massive amounts of additional arguments before passing them to the
6399 # linker. It appears as though 1/2 is a usable value.
6400 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6403 esac
6407 if test -n $lt_cv_sys_max_cmd_len ; then
6408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6409 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6410 else
6411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6412 $as_echo "none" >&6; }
6414 max_cmd_len=$lt_cv_sys_max_cmd_len
6421 : ${CP="cp -f"}
6422 : ${MV="mv -f"}
6423 : ${RM="rm -f"}
6425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6426 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6427 # Try some XSI features
6428 xsi_shell=no
6429 ( _lt_dummy="a/b/c"
6430 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6431 = c,a/b,, \
6432 && eval 'test $(( 1 + 1 )) -eq 2 \
6433 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6434 && xsi_shell=yes
6435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6436 $as_echo "$xsi_shell" >&6; }
6439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6440 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6441 lt_shell_append=no
6442 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6443 >/dev/null 2>&1 \
6444 && lt_shell_append=yes
6445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6446 $as_echo "$lt_shell_append" >&6; }
6449 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6450 lt_unset=unset
6451 else
6452 lt_unset=false
6459 # test EBCDIC or ASCII
6460 case `echo X|tr X '\101'` in
6461 A) # ASCII based system
6462 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6463 lt_SP2NL='tr \040 \012'
6464 lt_NL2SP='tr \015\012 \040\040'
6466 *) # EBCDIC based system
6467 lt_SP2NL='tr \100 \n'
6468 lt_NL2SP='tr \r\n \100\100'
6470 esac
6480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6481 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6482 if ${lt_cv_ld_reload_flag+:} false; then :
6483 $as_echo_n "(cached) " >&6
6484 else
6485 lt_cv_ld_reload_flag='-r'
6487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6488 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6489 reload_flag=$lt_cv_ld_reload_flag
6490 case $reload_flag in
6491 "" | " "*) ;;
6492 *) reload_flag=" $reload_flag" ;;
6493 esac
6494 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6495 case $host_os in
6496 darwin*)
6497 if test "$GCC" = yes; then
6498 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6499 else
6500 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6503 esac
6513 if test -n "$ac_tool_prefix"; then
6514 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6515 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6517 $as_echo_n "checking for $ac_word... " >&6; }
6518 if ${ac_cv_prog_OBJDUMP+:} false; then :
6519 $as_echo_n "(cached) " >&6
6520 else
6521 if test -n "$OBJDUMP"; then
6522 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6523 else
6524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6525 for as_dir in $PATH
6527 IFS=$as_save_IFS
6528 test -z "$as_dir" && as_dir=.
6529 for ac_exec_ext in '' $ac_executable_extensions; do
6530 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6531 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6533 break 2
6535 done
6536 done
6537 IFS=$as_save_IFS
6541 OBJDUMP=$ac_cv_prog_OBJDUMP
6542 if test -n "$OBJDUMP"; then
6543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6544 $as_echo "$OBJDUMP" >&6; }
6545 else
6546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6547 $as_echo "no" >&6; }
6552 if test -z "$ac_cv_prog_OBJDUMP"; then
6553 ac_ct_OBJDUMP=$OBJDUMP
6554 # Extract the first word of "objdump", so it can be a program name with args.
6555 set dummy objdump; ac_word=$2
6556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6557 $as_echo_n "checking for $ac_word... " >&6; }
6558 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6559 $as_echo_n "(cached) " >&6
6560 else
6561 if test -n "$ac_ct_OBJDUMP"; then
6562 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6563 else
6564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6565 for as_dir in $PATH
6567 IFS=$as_save_IFS
6568 test -z "$as_dir" && as_dir=.
6569 for ac_exec_ext in '' $ac_executable_extensions; do
6570 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6571 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6573 break 2
6575 done
6576 done
6577 IFS=$as_save_IFS
6581 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6582 if test -n "$ac_ct_OBJDUMP"; then
6583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6584 $as_echo "$ac_ct_OBJDUMP" >&6; }
6585 else
6586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6587 $as_echo "no" >&6; }
6590 if test "x$ac_ct_OBJDUMP" = x; then
6591 OBJDUMP="false"
6592 else
6593 case $cross_compiling:$ac_tool_warned in
6594 yes:)
6595 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6596 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6597 ac_tool_warned=yes ;;
6598 esac
6599 OBJDUMP=$ac_ct_OBJDUMP
6601 else
6602 OBJDUMP="$ac_cv_prog_OBJDUMP"
6605 test -z "$OBJDUMP" && OBJDUMP=objdump
6615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6616 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6617 if ${lt_cv_deplibs_check_method+:} false; then :
6618 $as_echo_n "(cached) " >&6
6619 else
6620 lt_cv_file_magic_cmd='$MAGIC_CMD'
6621 lt_cv_file_magic_test_file=
6622 lt_cv_deplibs_check_method='unknown'
6623 # Need to set the preceding variable on all platforms that support
6624 # interlibrary dependencies.
6625 # 'none' -- dependencies not supported.
6626 # `unknown' -- same as none, but documents that we really don't know.
6627 # 'pass_all' -- all dependencies passed with no checks.
6628 # 'test_compile' -- check by making test program.
6629 # 'file_magic [[regex]]' -- check by looking for files in library path
6630 # which responds to the $file_magic_cmd with a given extended regex.
6631 # If you have `file' or equivalent on your system and you're not sure
6632 # whether `pass_all' will *always* work, you probably want this one.
6634 case $host_os in
6635 aix[4-9]*)
6636 lt_cv_deplibs_check_method=pass_all
6639 beos*)
6640 lt_cv_deplibs_check_method=pass_all
6643 bsdi[45]*)
6644 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6645 lt_cv_file_magic_cmd='/usr/bin/file -L'
6646 lt_cv_file_magic_test_file=/shlib/libc.so
6649 cygwin*)
6650 # func_win32_libid is a shell function defined in ltmain.sh
6651 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6652 lt_cv_file_magic_cmd='func_win32_libid'
6655 mingw* | pw32*)
6656 # Base MSYS/MinGW do not provide the 'file' command needed by
6657 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6658 # unless we find 'file', for example because we are cross-compiling.
6659 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6660 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6661 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6662 lt_cv_file_magic_cmd='func_win32_libid'
6663 else
6664 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6665 lt_cv_file_magic_cmd='$OBJDUMP -f'
6669 cegcc*)
6670 # use the weaker test based on 'objdump'. See mingw*.
6671 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6672 lt_cv_file_magic_cmd='$OBJDUMP -f'
6675 darwin* | rhapsody*)
6676 lt_cv_deplibs_check_method=pass_all
6679 freebsd* | dragonfly*)
6680 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6681 case $host_cpu in
6682 i*86 )
6683 # Not sure whether the presence of OpenBSD here was a mistake.
6684 # Let's accept both of them until this is cleared up.
6685 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6686 lt_cv_file_magic_cmd=/usr/bin/file
6687 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6689 esac
6690 else
6691 lt_cv_deplibs_check_method=pass_all
6695 gnu*)
6696 lt_cv_deplibs_check_method=pass_all
6699 haiku*)
6700 lt_cv_deplibs_check_method=pass_all
6703 hpux10.20* | hpux11*)
6704 lt_cv_file_magic_cmd=/usr/bin/file
6705 case $host_cpu in
6706 ia64*)
6707 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6708 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6710 hppa*64*)
6711 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]'
6712 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6715 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6716 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6718 esac
6721 interix[3-9]*)
6722 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6723 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6726 irix5* | irix6* | nonstopux*)
6727 case $LD in
6728 *-32|*"-32 ") libmagic=32-bit;;
6729 *-n32|*"-n32 ") libmagic=N32;;
6730 *-64|*"-64 ") libmagic=64-bit;;
6731 *) libmagic=never-match;;
6732 esac
6733 lt_cv_deplibs_check_method=pass_all
6736 # This must be Linux ELF.
6737 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6738 lt_cv_deplibs_check_method=pass_all
6741 netbsd*)
6742 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6743 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6744 else
6745 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6749 newos6*)
6750 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6751 lt_cv_file_magic_cmd=/usr/bin/file
6752 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6755 *nto* | *qnx*)
6756 lt_cv_deplibs_check_method=pass_all
6759 openbsd*)
6760 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6761 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6762 else
6763 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6767 osf3* | osf4* | osf5*)
6768 lt_cv_deplibs_check_method=pass_all
6771 rdos*)
6772 lt_cv_deplibs_check_method=pass_all
6775 solaris*)
6776 lt_cv_deplibs_check_method=pass_all
6779 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6780 lt_cv_deplibs_check_method=pass_all
6783 sysv4 | sysv4.3*)
6784 case $host_vendor in
6785 motorola)
6786 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]'
6787 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6789 ncr)
6790 lt_cv_deplibs_check_method=pass_all
6792 sequent)
6793 lt_cv_file_magic_cmd='/bin/file'
6794 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6796 sni)
6797 lt_cv_file_magic_cmd='/bin/file'
6798 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6799 lt_cv_file_magic_test_file=/lib/libc.so
6801 siemens)
6802 lt_cv_deplibs_check_method=pass_all
6805 lt_cv_deplibs_check_method=pass_all
6807 esac
6810 tpf*)
6811 lt_cv_deplibs_check_method=pass_all
6813 esac
6816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6817 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6818 file_magic_cmd=$lt_cv_file_magic_cmd
6819 deplibs_check_method=$lt_cv_deplibs_check_method
6820 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6833 if test -n "$ac_tool_prefix"; then
6834 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6835 set dummy ${ac_tool_prefix}ar; ac_word=$2
6836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6837 $as_echo_n "checking for $ac_word... " >&6; }
6838 if ${ac_cv_prog_AR+:} false; then :
6839 $as_echo_n "(cached) " >&6
6840 else
6841 if test -n "$AR"; then
6842 ac_cv_prog_AR="$AR" # Let the user override the test.
6843 else
6844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6845 for as_dir in $PATH
6847 IFS=$as_save_IFS
6848 test -z "$as_dir" && as_dir=.
6849 for ac_exec_ext in '' $ac_executable_extensions; do
6850 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6851 ac_cv_prog_AR="${ac_tool_prefix}ar"
6852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6853 break 2
6855 done
6856 done
6857 IFS=$as_save_IFS
6861 AR=$ac_cv_prog_AR
6862 if test -n "$AR"; then
6863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6864 $as_echo "$AR" >&6; }
6865 else
6866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6867 $as_echo "no" >&6; }
6872 if test -z "$ac_cv_prog_AR"; then
6873 ac_ct_AR=$AR
6874 # Extract the first word of "ar", so it can be a program name with args.
6875 set dummy ar; ac_word=$2
6876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6877 $as_echo_n "checking for $ac_word... " >&6; }
6878 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6879 $as_echo_n "(cached) " >&6
6880 else
6881 if test -n "$ac_ct_AR"; then
6882 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6883 else
6884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6885 for as_dir in $PATH
6887 IFS=$as_save_IFS
6888 test -z "$as_dir" && as_dir=.
6889 for ac_exec_ext in '' $ac_executable_extensions; do
6890 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6891 ac_cv_prog_ac_ct_AR="ar"
6892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6893 break 2
6895 done
6896 done
6897 IFS=$as_save_IFS
6901 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6902 if test -n "$ac_ct_AR"; then
6903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6904 $as_echo "$ac_ct_AR" >&6; }
6905 else
6906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6907 $as_echo "no" >&6; }
6910 if test "x$ac_ct_AR" = x; then
6911 AR="false"
6912 else
6913 case $cross_compiling:$ac_tool_warned in
6914 yes:)
6915 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6916 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6917 ac_tool_warned=yes ;;
6918 esac
6919 AR=$ac_ct_AR
6921 else
6922 AR="$ac_cv_prog_AR"
6925 test -z "$AR" && AR=ar
6926 test -z "$AR_FLAGS" && AR_FLAGS=cru
6938 if test -n "$ac_tool_prefix"; then
6939 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6940 set dummy ${ac_tool_prefix}strip; ac_word=$2
6941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6942 $as_echo_n "checking for $ac_word... " >&6; }
6943 if ${ac_cv_prog_STRIP+:} false; then :
6944 $as_echo_n "(cached) " >&6
6945 else
6946 if test -n "$STRIP"; then
6947 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6948 else
6949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6950 for as_dir in $PATH
6952 IFS=$as_save_IFS
6953 test -z "$as_dir" && as_dir=.
6954 for ac_exec_ext in '' $ac_executable_extensions; do
6955 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6956 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6958 break 2
6960 done
6961 done
6962 IFS=$as_save_IFS
6966 STRIP=$ac_cv_prog_STRIP
6967 if test -n "$STRIP"; then
6968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6969 $as_echo "$STRIP" >&6; }
6970 else
6971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6972 $as_echo "no" >&6; }
6977 if test -z "$ac_cv_prog_STRIP"; then
6978 ac_ct_STRIP=$STRIP
6979 # Extract the first word of "strip", so it can be a program name with args.
6980 set dummy strip; ac_word=$2
6981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6982 $as_echo_n "checking for $ac_word... " >&6; }
6983 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6984 $as_echo_n "(cached) " >&6
6985 else
6986 if test -n "$ac_ct_STRIP"; then
6987 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6988 else
6989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6990 for as_dir in $PATH
6992 IFS=$as_save_IFS
6993 test -z "$as_dir" && as_dir=.
6994 for ac_exec_ext in '' $ac_executable_extensions; do
6995 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6996 ac_cv_prog_ac_ct_STRIP="strip"
6997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6998 break 2
7000 done
7001 done
7002 IFS=$as_save_IFS
7006 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7007 if test -n "$ac_ct_STRIP"; then
7008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7009 $as_echo "$ac_ct_STRIP" >&6; }
7010 else
7011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7012 $as_echo "no" >&6; }
7015 if test "x$ac_ct_STRIP" = x; then
7016 STRIP=":"
7017 else
7018 case $cross_compiling:$ac_tool_warned in
7019 yes:)
7020 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7021 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7022 ac_tool_warned=yes ;;
7023 esac
7024 STRIP=$ac_ct_STRIP
7026 else
7027 STRIP="$ac_cv_prog_STRIP"
7030 test -z "$STRIP" && STRIP=:
7037 if test -n "$ac_tool_prefix"; then
7038 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7039 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7041 $as_echo_n "checking for $ac_word... " >&6; }
7042 if ${ac_cv_prog_RANLIB+:} false; then :
7043 $as_echo_n "(cached) " >&6
7044 else
7045 if test -n "$RANLIB"; then
7046 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7047 else
7048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7049 for as_dir in $PATH
7051 IFS=$as_save_IFS
7052 test -z "$as_dir" && as_dir=.
7053 for ac_exec_ext in '' $ac_executable_extensions; do
7054 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7055 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7057 break 2
7059 done
7060 done
7061 IFS=$as_save_IFS
7065 RANLIB=$ac_cv_prog_RANLIB
7066 if test -n "$RANLIB"; then
7067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7068 $as_echo "$RANLIB" >&6; }
7069 else
7070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7071 $as_echo "no" >&6; }
7076 if test -z "$ac_cv_prog_RANLIB"; then
7077 ac_ct_RANLIB=$RANLIB
7078 # Extract the first word of "ranlib", so it can be a program name with args.
7079 set dummy ranlib; ac_word=$2
7080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7081 $as_echo_n "checking for $ac_word... " >&6; }
7082 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7083 $as_echo_n "(cached) " >&6
7084 else
7085 if test -n "$ac_ct_RANLIB"; then
7086 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7087 else
7088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7089 for as_dir in $PATH
7091 IFS=$as_save_IFS
7092 test -z "$as_dir" && as_dir=.
7093 for ac_exec_ext in '' $ac_executable_extensions; do
7094 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7095 ac_cv_prog_ac_ct_RANLIB="ranlib"
7096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7097 break 2
7099 done
7100 done
7101 IFS=$as_save_IFS
7105 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7106 if test -n "$ac_ct_RANLIB"; then
7107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7108 $as_echo "$ac_ct_RANLIB" >&6; }
7109 else
7110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7111 $as_echo "no" >&6; }
7114 if test "x$ac_ct_RANLIB" = x; then
7115 RANLIB=":"
7116 else
7117 case $cross_compiling:$ac_tool_warned in
7118 yes:)
7119 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7120 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7121 ac_tool_warned=yes ;;
7122 esac
7123 RANLIB=$ac_ct_RANLIB
7125 else
7126 RANLIB="$ac_cv_prog_RANLIB"
7129 test -z "$RANLIB" && RANLIB=:
7136 # Determine commands to create old-style static archives.
7137 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7138 old_postinstall_cmds='chmod 644 $oldlib'
7139 old_postuninstall_cmds=
7141 if test -n "$RANLIB"; then
7142 case $host_os in
7143 openbsd*)
7144 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7147 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7149 esac
7150 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7153 case $host_os in
7154 darwin*)
7155 lock_old_archive_extraction=yes ;;
7157 lock_old_archive_extraction=no ;;
7158 esac
7198 # If no C compiler was specified, use CC.
7199 LTCC=${LTCC-"$CC"}
7201 # If no C compiler flags were specified, use CFLAGS.
7202 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7204 # Allow CC to be a program name with arguments.
7205 compiler=$CC
7208 # Check for command to grab the raw symbol name followed by C symbol from nm.
7209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7210 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7211 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7212 $as_echo_n "(cached) " >&6
7213 else
7215 # These are sane defaults that work on at least a few old systems.
7216 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7218 # Character class describing NM global symbol codes.
7219 symcode='[BCDEGRST]'
7221 # Regexp to match symbols that can be accessed directly from C.
7222 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7224 # Define system-specific variables.
7225 case $host_os in
7226 aix*)
7227 symcode='[BCDT]'
7229 cygwin* | mingw* | pw32* | cegcc*)
7230 symcode='[ABCDGISTW]'
7232 hpux*)
7233 if test "$host_cpu" = ia64; then
7234 symcode='[ABCDEGRST]'
7237 irix* | nonstopux*)
7238 symcode='[BCDEGRST]'
7240 osf*)
7241 symcode='[BCDEGQRST]'
7243 solaris*)
7244 symcode='[BDRT]'
7246 sco3.2v5*)
7247 symcode='[DT]'
7249 sysv4.2uw2*)
7250 symcode='[DT]'
7252 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7253 symcode='[ABDT]'
7255 sysv4)
7256 symcode='[DFNSTU]'
7258 esac
7260 # If we're using GNU nm, then use its standard symbol codes.
7261 case `$NM -V 2>&1` in
7262 *GNU* | *'with BFD'*)
7263 symcode='[ABCDGIRSTW]' ;;
7264 esac
7266 # Transform an extracted symbol line into a proper C declaration.
7267 # Some systems (esp. on ia64) link data and code symbols differently,
7268 # so use this general approach.
7269 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7271 # Transform an extracted symbol line into symbol name and symbol address
7272 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7273 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'"
7275 # Handle CRLF in mingw tool chain
7276 opt_cr=
7277 case $build_os in
7278 mingw*)
7279 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7281 esac
7283 # Try without a prefix underscore, then with it.
7284 for ac_symprfx in "" "_"; do
7286 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7287 symxfrm="\\1 $ac_symprfx\\2 \\2"
7289 # Write the raw and C identifiers.
7290 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7291 # Fake it for dumpbin and say T for any non-static function
7292 # and D for any global variable.
7293 # Also find C++ and __fastcall symbols from MSVC++,
7294 # which start with @ or ?.
7295 lt_cv_sys_global_symbol_pipe="$AWK '"\
7296 " {last_section=section; section=\$ 3};"\
7297 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7298 " \$ 0!~/External *\|/{next};"\
7299 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7300 " {if(hide[section]) next};"\
7301 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7302 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7303 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7304 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7305 " ' prfx=^$ac_symprfx"
7306 else
7307 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7310 # Check to see that the pipe works correctly.
7311 pipe_works=no
7313 rm -f conftest*
7314 cat > conftest.$ac_ext <<_LT_EOF
7315 #ifdef __cplusplus
7316 extern "C" {
7317 #endif
7318 char nm_test_var;
7319 void nm_test_func(void);
7320 void nm_test_func(void){}
7321 #ifdef __cplusplus
7323 #endif
7324 int main(){nm_test_var='a';nm_test_func();return(0);}
7325 _LT_EOF
7327 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7328 (eval $ac_compile) 2>&5
7329 ac_status=$?
7330 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7331 test $ac_status = 0; }; then
7332 # Now try to grab the symbols.
7333 nlist=conftest.nm
7334 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7335 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7336 ac_status=$?
7337 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7338 test $ac_status = 0; } && test -s "$nlist"; then
7339 # Try sorting and uniquifying the output.
7340 if sort "$nlist" | uniq > "$nlist"T; then
7341 mv -f "$nlist"T "$nlist"
7342 else
7343 rm -f "$nlist"T
7346 # Make sure that we snagged all the symbols we need.
7347 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7348 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7349 cat <<_LT_EOF > conftest.$ac_ext
7350 #ifdef __cplusplus
7351 extern "C" {
7352 #endif
7354 _LT_EOF
7355 # Now generate the symbol file.
7356 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7358 cat <<_LT_EOF >> conftest.$ac_ext
7360 /* The mapping between symbol names and symbols. */
7361 const struct {
7362 const char *name;
7363 void *address;
7365 lt__PROGRAM__LTX_preloaded_symbols[] =
7367 { "@PROGRAM@", (void *) 0 },
7368 _LT_EOF
7369 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7370 cat <<\_LT_EOF >> conftest.$ac_ext
7371 {0, (void *) 0}
7374 /* This works around a problem in FreeBSD linker */
7375 #ifdef FREEBSD_WORKAROUND
7376 static const void *lt_preloaded_setup() {
7377 return lt__PROGRAM__LTX_preloaded_symbols;
7379 #endif
7381 #ifdef __cplusplus
7383 #endif
7384 _LT_EOF
7385 # Now try linking the two files.
7386 mv conftest.$ac_objext conftstm.$ac_objext
7387 lt_save_LIBS="$LIBS"
7388 lt_save_CFLAGS="$CFLAGS"
7389 LIBS="conftstm.$ac_objext"
7390 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7391 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7392 (eval $ac_link) 2>&5
7393 ac_status=$?
7394 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7395 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7396 pipe_works=yes
7398 LIBS="$lt_save_LIBS"
7399 CFLAGS="$lt_save_CFLAGS"
7400 else
7401 echo "cannot find nm_test_func in $nlist" >&5
7403 else
7404 echo "cannot find nm_test_var in $nlist" >&5
7406 else
7407 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7409 else
7410 echo "$progname: failed program was:" >&5
7411 cat conftest.$ac_ext >&5
7413 rm -rf conftest* conftst*
7415 # Do not use the global_symbol_pipe unless it works.
7416 if test "$pipe_works" = yes; then
7417 break
7418 else
7419 lt_cv_sys_global_symbol_pipe=
7421 done
7425 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7426 lt_cv_sys_global_symbol_to_cdecl=
7428 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7430 $as_echo "failed" >&6; }
7431 else
7432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7433 $as_echo "ok" >&6; }
7457 # Check whether --enable-libtool-lock was given.
7458 if test "${enable_libtool_lock+set}" = set; then :
7459 enableval=$enable_libtool_lock;
7462 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7464 # Some flags need to be propagated to the compiler or linker for good
7465 # libtool support.
7466 case $host in
7467 ia64-*-hpux*)
7468 # Find out which ABI we are using.
7469 echo 'int i;' > conftest.$ac_ext
7470 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7471 (eval $ac_compile) 2>&5
7472 ac_status=$?
7473 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7474 test $ac_status = 0; }; then
7475 case `/usr/bin/file conftest.$ac_objext` in
7476 *ELF-32*)
7477 HPUX_IA64_MODE="32"
7479 *ELF-64*)
7480 HPUX_IA64_MODE="64"
7482 esac
7484 rm -rf conftest*
7486 *-*-irix6*)
7487 # Find out which ABI we are using.
7488 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7489 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7490 (eval $ac_compile) 2>&5
7491 ac_status=$?
7492 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7493 test $ac_status = 0; }; then
7494 if test "$lt_cv_prog_gnu_ld" = yes; then
7495 case `/usr/bin/file conftest.$ac_objext` in
7496 *32-bit*)
7497 LD="${LD-ld} -melf32bsmip"
7499 *N32*)
7500 LD="${LD-ld} -melf32bmipn32"
7502 *64-bit*)
7503 LD="${LD-ld} -melf64bmip"
7505 esac
7506 else
7507 case `/usr/bin/file conftest.$ac_objext` in
7508 *32-bit*)
7509 LD="${LD-ld} -32"
7511 *N32*)
7512 LD="${LD-ld} -n32"
7514 *64-bit*)
7515 LD="${LD-ld} -64"
7517 esac
7520 rm -rf conftest*
7523 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7524 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7525 # Find out which ABI we are using.
7526 echo 'int i;' > conftest.$ac_ext
7527 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7528 (eval $ac_compile) 2>&5
7529 ac_status=$?
7530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7531 test $ac_status = 0; }; then
7532 case `/usr/bin/file conftest.o` in
7533 *32-bit*)
7534 case $host in
7535 x86_64-*kfreebsd*-gnu)
7536 LD="${LD-ld} -m elf_i386_fbsd"
7538 x86_64-*linux*)
7539 case `/usr/bin/file conftest.o` in
7540 *x86-64*)
7541 LD="${LD-ld} -m elf32_x86_64"
7544 LD="${LD-ld} -m elf_i386"
7546 esac
7548 powerpc64le-*linux*)
7549 LD="${LD-ld} -m elf32lppclinux"
7551 powerpc64-*linux*)
7552 LD="${LD-ld} -m elf32ppclinux"
7554 s390x-*linux*)
7555 LD="${LD-ld} -m elf_s390"
7557 sparc64-*linux*)
7558 LD="${LD-ld} -m elf32_sparc"
7560 esac
7562 *64-bit*)
7563 case $host in
7564 x86_64-*kfreebsd*-gnu)
7565 LD="${LD-ld} -m elf_x86_64_fbsd"
7567 x86_64-*linux*)
7568 LD="${LD-ld} -m elf_x86_64"
7570 powerpcle-*linux*)
7571 LD="${LD-ld} -m elf64lppc"
7573 powerpc-*linux*)
7574 LD="${LD-ld} -m elf64ppc"
7576 s390*-*linux*|s390*-*tpf*)
7577 LD="${LD-ld} -m elf64_s390"
7579 sparc*-*linux*)
7580 LD="${LD-ld} -m elf64_sparc"
7582 esac
7584 esac
7586 rm -rf conftest*
7589 *-*-sco3.2v5*)
7590 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7591 SAVE_CFLAGS="$CFLAGS"
7592 CFLAGS="$CFLAGS -belf"
7593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7594 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7595 if ${lt_cv_cc_needs_belf+:} false; then :
7596 $as_echo_n "(cached) " >&6
7597 else
7598 ac_ext=c
7599 ac_cpp='$CPP $CPPFLAGS'
7600 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7601 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7602 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7605 /* end confdefs.h. */
7608 main ()
7612 return 0;
7614 _ACEOF
7615 if ac_fn_c_try_link "$LINENO"; then :
7616 lt_cv_cc_needs_belf=yes
7617 else
7618 lt_cv_cc_needs_belf=no
7620 rm -f core conftest.err conftest.$ac_objext \
7621 conftest$ac_exeext conftest.$ac_ext
7622 ac_ext=c
7623 ac_cpp='$CPP $CPPFLAGS'
7624 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7625 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7626 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7630 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7631 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7632 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7633 CFLAGS="$SAVE_CFLAGS"
7636 sparc*-*solaris*)
7637 # Find out which ABI we are using.
7638 echo 'int i;' > conftest.$ac_ext
7639 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7640 (eval $ac_compile) 2>&5
7641 ac_status=$?
7642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7643 test $ac_status = 0; }; then
7644 case `/usr/bin/file conftest.o` in
7645 *64-bit*)
7646 case $lt_cv_prog_gnu_ld in
7647 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7649 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7650 LD="${LD-ld} -64"
7653 esac
7655 esac
7657 rm -rf conftest*
7659 esac
7661 need_locks="$enable_libtool_lock"
7664 case $host_os in
7665 rhapsody* | darwin*)
7666 if test -n "$ac_tool_prefix"; then
7667 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7668 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7670 $as_echo_n "checking for $ac_word... " >&6; }
7671 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7672 $as_echo_n "(cached) " >&6
7673 else
7674 if test -n "$DSYMUTIL"; then
7675 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7676 else
7677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7678 for as_dir in $PATH
7680 IFS=$as_save_IFS
7681 test -z "$as_dir" && as_dir=.
7682 for ac_exec_ext in '' $ac_executable_extensions; do
7683 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7684 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7686 break 2
7688 done
7689 done
7690 IFS=$as_save_IFS
7694 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7695 if test -n "$DSYMUTIL"; then
7696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7697 $as_echo "$DSYMUTIL" >&6; }
7698 else
7699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7700 $as_echo "no" >&6; }
7705 if test -z "$ac_cv_prog_DSYMUTIL"; then
7706 ac_ct_DSYMUTIL=$DSYMUTIL
7707 # Extract the first word of "dsymutil", so it can be a program name with args.
7708 set dummy dsymutil; ac_word=$2
7709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7710 $as_echo_n "checking for $ac_word... " >&6; }
7711 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7712 $as_echo_n "(cached) " >&6
7713 else
7714 if test -n "$ac_ct_DSYMUTIL"; then
7715 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7716 else
7717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7718 for as_dir in $PATH
7720 IFS=$as_save_IFS
7721 test -z "$as_dir" && as_dir=.
7722 for ac_exec_ext in '' $ac_executable_extensions; do
7723 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7724 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7726 break 2
7728 done
7729 done
7730 IFS=$as_save_IFS
7734 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7735 if test -n "$ac_ct_DSYMUTIL"; then
7736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7737 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7738 else
7739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7740 $as_echo "no" >&6; }
7743 if test "x$ac_ct_DSYMUTIL" = x; then
7744 DSYMUTIL=":"
7745 else
7746 case $cross_compiling:$ac_tool_warned in
7747 yes:)
7748 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7749 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7750 ac_tool_warned=yes ;;
7751 esac
7752 DSYMUTIL=$ac_ct_DSYMUTIL
7754 else
7755 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7758 if test -n "$ac_tool_prefix"; then
7759 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7760 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7762 $as_echo_n "checking for $ac_word... " >&6; }
7763 if ${ac_cv_prog_NMEDIT+:} false; then :
7764 $as_echo_n "(cached) " >&6
7765 else
7766 if test -n "$NMEDIT"; then
7767 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7768 else
7769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7770 for as_dir in $PATH
7772 IFS=$as_save_IFS
7773 test -z "$as_dir" && as_dir=.
7774 for ac_exec_ext in '' $ac_executable_extensions; do
7775 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7776 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7778 break 2
7780 done
7781 done
7782 IFS=$as_save_IFS
7786 NMEDIT=$ac_cv_prog_NMEDIT
7787 if test -n "$NMEDIT"; then
7788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7789 $as_echo "$NMEDIT" >&6; }
7790 else
7791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7792 $as_echo "no" >&6; }
7797 if test -z "$ac_cv_prog_NMEDIT"; then
7798 ac_ct_NMEDIT=$NMEDIT
7799 # Extract the first word of "nmedit", so it can be a program name with args.
7800 set dummy nmedit; ac_word=$2
7801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7802 $as_echo_n "checking for $ac_word... " >&6; }
7803 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7804 $as_echo_n "(cached) " >&6
7805 else
7806 if test -n "$ac_ct_NMEDIT"; then
7807 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7808 else
7809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7810 for as_dir in $PATH
7812 IFS=$as_save_IFS
7813 test -z "$as_dir" && as_dir=.
7814 for ac_exec_ext in '' $ac_executable_extensions; do
7815 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7816 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7818 break 2
7820 done
7821 done
7822 IFS=$as_save_IFS
7826 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7827 if test -n "$ac_ct_NMEDIT"; then
7828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7829 $as_echo "$ac_ct_NMEDIT" >&6; }
7830 else
7831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7832 $as_echo "no" >&6; }
7835 if test "x$ac_ct_NMEDIT" = x; then
7836 NMEDIT=":"
7837 else
7838 case $cross_compiling:$ac_tool_warned in
7839 yes:)
7840 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7841 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7842 ac_tool_warned=yes ;;
7843 esac
7844 NMEDIT=$ac_ct_NMEDIT
7846 else
7847 NMEDIT="$ac_cv_prog_NMEDIT"
7850 if test -n "$ac_tool_prefix"; then
7851 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7852 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7854 $as_echo_n "checking for $ac_word... " >&6; }
7855 if ${ac_cv_prog_LIPO+:} false; then :
7856 $as_echo_n "(cached) " >&6
7857 else
7858 if test -n "$LIPO"; then
7859 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7860 else
7861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7862 for as_dir in $PATH
7864 IFS=$as_save_IFS
7865 test -z "$as_dir" && as_dir=.
7866 for ac_exec_ext in '' $ac_executable_extensions; do
7867 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7868 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7870 break 2
7872 done
7873 done
7874 IFS=$as_save_IFS
7878 LIPO=$ac_cv_prog_LIPO
7879 if test -n "$LIPO"; then
7880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7881 $as_echo "$LIPO" >&6; }
7882 else
7883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7884 $as_echo "no" >&6; }
7889 if test -z "$ac_cv_prog_LIPO"; then
7890 ac_ct_LIPO=$LIPO
7891 # Extract the first word of "lipo", so it can be a program name with args.
7892 set dummy lipo; ac_word=$2
7893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7894 $as_echo_n "checking for $ac_word... " >&6; }
7895 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7896 $as_echo_n "(cached) " >&6
7897 else
7898 if test -n "$ac_ct_LIPO"; then
7899 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7900 else
7901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7902 for as_dir in $PATH
7904 IFS=$as_save_IFS
7905 test -z "$as_dir" && as_dir=.
7906 for ac_exec_ext in '' $ac_executable_extensions; do
7907 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7908 ac_cv_prog_ac_ct_LIPO="lipo"
7909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7910 break 2
7912 done
7913 done
7914 IFS=$as_save_IFS
7918 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7919 if test -n "$ac_ct_LIPO"; then
7920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7921 $as_echo "$ac_ct_LIPO" >&6; }
7922 else
7923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7924 $as_echo "no" >&6; }
7927 if test "x$ac_ct_LIPO" = x; then
7928 LIPO=":"
7929 else
7930 case $cross_compiling:$ac_tool_warned in
7931 yes:)
7932 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7933 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7934 ac_tool_warned=yes ;;
7935 esac
7936 LIPO=$ac_ct_LIPO
7938 else
7939 LIPO="$ac_cv_prog_LIPO"
7942 if test -n "$ac_tool_prefix"; then
7943 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7944 set dummy ${ac_tool_prefix}otool; ac_word=$2
7945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7946 $as_echo_n "checking for $ac_word... " >&6; }
7947 if ${ac_cv_prog_OTOOL+:} false; then :
7948 $as_echo_n "(cached) " >&6
7949 else
7950 if test -n "$OTOOL"; then
7951 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7952 else
7953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7954 for as_dir in $PATH
7956 IFS=$as_save_IFS
7957 test -z "$as_dir" && as_dir=.
7958 for ac_exec_ext in '' $ac_executable_extensions; do
7959 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7960 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7962 break 2
7964 done
7965 done
7966 IFS=$as_save_IFS
7970 OTOOL=$ac_cv_prog_OTOOL
7971 if test -n "$OTOOL"; then
7972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7973 $as_echo "$OTOOL" >&6; }
7974 else
7975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7976 $as_echo "no" >&6; }
7981 if test -z "$ac_cv_prog_OTOOL"; then
7982 ac_ct_OTOOL=$OTOOL
7983 # Extract the first word of "otool", so it can be a program name with args.
7984 set dummy otool; ac_word=$2
7985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7986 $as_echo_n "checking for $ac_word... " >&6; }
7987 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7988 $as_echo_n "(cached) " >&6
7989 else
7990 if test -n "$ac_ct_OTOOL"; then
7991 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7992 else
7993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7994 for as_dir in $PATH
7996 IFS=$as_save_IFS
7997 test -z "$as_dir" && as_dir=.
7998 for ac_exec_ext in '' $ac_executable_extensions; do
7999 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8000 ac_cv_prog_ac_ct_OTOOL="otool"
8001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8002 break 2
8004 done
8005 done
8006 IFS=$as_save_IFS
8010 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8011 if test -n "$ac_ct_OTOOL"; then
8012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8013 $as_echo "$ac_ct_OTOOL" >&6; }
8014 else
8015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8016 $as_echo "no" >&6; }
8019 if test "x$ac_ct_OTOOL" = x; then
8020 OTOOL=":"
8021 else
8022 case $cross_compiling:$ac_tool_warned in
8023 yes:)
8024 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8025 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8026 ac_tool_warned=yes ;;
8027 esac
8028 OTOOL=$ac_ct_OTOOL
8030 else
8031 OTOOL="$ac_cv_prog_OTOOL"
8034 if test -n "$ac_tool_prefix"; then
8035 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8036 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8038 $as_echo_n "checking for $ac_word... " >&6; }
8039 if ${ac_cv_prog_OTOOL64+:} false; then :
8040 $as_echo_n "(cached) " >&6
8041 else
8042 if test -n "$OTOOL64"; then
8043 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8044 else
8045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8046 for as_dir in $PATH
8048 IFS=$as_save_IFS
8049 test -z "$as_dir" && as_dir=.
8050 for ac_exec_ext in '' $ac_executable_extensions; do
8051 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8052 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8054 break 2
8056 done
8057 done
8058 IFS=$as_save_IFS
8062 OTOOL64=$ac_cv_prog_OTOOL64
8063 if test -n "$OTOOL64"; then
8064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8065 $as_echo "$OTOOL64" >&6; }
8066 else
8067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8068 $as_echo "no" >&6; }
8073 if test -z "$ac_cv_prog_OTOOL64"; then
8074 ac_ct_OTOOL64=$OTOOL64
8075 # Extract the first word of "otool64", so it can be a program name with args.
8076 set dummy otool64; ac_word=$2
8077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8078 $as_echo_n "checking for $ac_word... " >&6; }
8079 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8080 $as_echo_n "(cached) " >&6
8081 else
8082 if test -n "$ac_ct_OTOOL64"; then
8083 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8084 else
8085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8086 for as_dir in $PATH
8088 IFS=$as_save_IFS
8089 test -z "$as_dir" && as_dir=.
8090 for ac_exec_ext in '' $ac_executable_extensions; do
8091 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8092 ac_cv_prog_ac_ct_OTOOL64="otool64"
8093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8094 break 2
8096 done
8097 done
8098 IFS=$as_save_IFS
8102 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8103 if test -n "$ac_ct_OTOOL64"; then
8104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8105 $as_echo "$ac_ct_OTOOL64" >&6; }
8106 else
8107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8108 $as_echo "no" >&6; }
8111 if test "x$ac_ct_OTOOL64" = x; then
8112 OTOOL64=":"
8113 else
8114 case $cross_compiling:$ac_tool_warned in
8115 yes:)
8116 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8117 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8118 ac_tool_warned=yes ;;
8119 esac
8120 OTOOL64=$ac_ct_OTOOL64
8122 else
8123 OTOOL64="$ac_cv_prog_OTOOL64"
8152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8153 $as_echo_n "checking for -single_module linker flag... " >&6; }
8154 if ${lt_cv_apple_cc_single_mod+:} false; then :
8155 $as_echo_n "(cached) " >&6
8156 else
8157 lt_cv_apple_cc_single_mod=no
8158 if test -z "${LT_MULTI_MODULE}"; then
8159 # By default we will add the -single_module flag. You can override
8160 # by either setting the environment variable LT_MULTI_MODULE
8161 # non-empty at configure time, or by adding -multi_module to the
8162 # link flags.
8163 rm -rf libconftest.dylib*
8164 echo "int foo(void){return 1;}" > conftest.c
8165 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8166 -dynamiclib -Wl,-single_module conftest.c" >&5
8167 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8168 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8169 _lt_result=$?
8170 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8171 lt_cv_apple_cc_single_mod=yes
8172 else
8173 cat conftest.err >&5
8175 rm -rf libconftest.dylib*
8176 rm -f conftest.*
8179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8180 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8182 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8183 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8184 $as_echo_n "(cached) " >&6
8185 else
8186 lt_cv_ld_exported_symbols_list=no
8187 save_LDFLAGS=$LDFLAGS
8188 echo "_main" > conftest.sym
8189 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8191 /* end confdefs.h. */
8194 main ()
8198 return 0;
8200 _ACEOF
8201 if ac_fn_c_try_link "$LINENO"; then :
8202 lt_cv_ld_exported_symbols_list=yes
8203 else
8204 lt_cv_ld_exported_symbols_list=no
8206 rm -f core conftest.err conftest.$ac_objext \
8207 conftest$ac_exeext conftest.$ac_ext
8208 LDFLAGS="$save_LDFLAGS"
8211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8212 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8214 $as_echo_n "checking for -force_load linker flag... " >&6; }
8215 if ${lt_cv_ld_force_load+:} false; then :
8216 $as_echo_n "(cached) " >&6
8217 else
8218 lt_cv_ld_force_load=no
8219 cat > conftest.c << _LT_EOF
8220 int forced_loaded() { return 2;}
8221 _LT_EOF
8222 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8223 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8224 echo "$AR cru libconftest.a conftest.o" >&5
8225 $AR cru libconftest.a conftest.o 2>&5
8226 cat > conftest.c << _LT_EOF
8227 int main() { return 0;}
8228 _LT_EOF
8229 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8230 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8231 _lt_result=$?
8232 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8233 lt_cv_ld_force_load=yes
8234 else
8235 cat conftest.err >&5
8237 rm -f conftest.err libconftest.a conftest conftest.c
8238 rm -rf conftest.dSYM
8241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8242 $as_echo "$lt_cv_ld_force_load" >&6; }
8243 case $host_os in
8244 rhapsody* | darwin1.[012])
8245 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8246 darwin1.*)
8247 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8248 darwin*) # darwin 5.x on
8249 # if running on 10.5 or later, the deployment target defaults
8250 # to the OS version, if on x86, and 10.4, the deployment
8251 # target defaults to 10.4. Don't you love it?
8252 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8253 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8254 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8255 10.[012][,.]*)
8256 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8257 10.*)
8258 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8259 esac
8261 esac
8262 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8263 _lt_dar_single_mod='$single_module'
8265 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8266 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8267 else
8268 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8270 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8271 _lt_dsymutil='~$DSYMUTIL $lib || :'
8272 else
8273 _lt_dsymutil=
8276 esac
8278 for ac_header in dlfcn.h
8279 do :
8280 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8282 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8283 cat >>confdefs.h <<_ACEOF
8284 #define HAVE_DLFCN_H 1
8285 _ACEOF
8289 done
8295 # Set options
8299 enable_dlopen=no
8302 enable_win32_dll=no
8305 # Check whether --enable-shared was given.
8306 if test "${enable_shared+set}" = set; then :
8307 enableval=$enable_shared; p=${PACKAGE-default}
8308 case $enableval in
8309 yes) enable_shared=yes ;;
8310 no) enable_shared=no ;;
8312 enable_shared=no
8313 # Look at the argument we got. We use all the common list separators.
8314 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8315 for pkg in $enableval; do
8316 IFS="$lt_save_ifs"
8317 if test "X$pkg" = "X$p"; then
8318 enable_shared=yes
8320 done
8321 IFS="$lt_save_ifs"
8323 esac
8324 else
8325 enable_shared=yes
8336 # Check whether --enable-static was given.
8337 if test "${enable_static+set}" = set; then :
8338 enableval=$enable_static; p=${PACKAGE-default}
8339 case $enableval in
8340 yes) enable_static=yes ;;
8341 no) enable_static=no ;;
8343 enable_static=no
8344 # Look at the argument we got. We use all the common list separators.
8345 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8346 for pkg in $enableval; do
8347 IFS="$lt_save_ifs"
8348 if test "X$pkg" = "X$p"; then
8349 enable_static=yes
8351 done
8352 IFS="$lt_save_ifs"
8354 esac
8355 else
8356 enable_static=yes
8368 # Check whether --with-pic was given.
8369 if test "${with_pic+set}" = set; then :
8370 withval=$with_pic; pic_mode="$withval"
8371 else
8372 pic_mode=default
8376 test -z "$pic_mode" && pic_mode=default
8384 # Check whether --enable-fast-install was given.
8385 if test "${enable_fast_install+set}" = set; then :
8386 enableval=$enable_fast_install; p=${PACKAGE-default}
8387 case $enableval in
8388 yes) enable_fast_install=yes ;;
8389 no) enable_fast_install=no ;;
8391 enable_fast_install=no
8392 # Look at the argument we got. We use all the common list separators.
8393 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8394 for pkg in $enableval; do
8395 IFS="$lt_save_ifs"
8396 if test "X$pkg" = "X$p"; then
8397 enable_fast_install=yes
8399 done
8400 IFS="$lt_save_ifs"
8402 esac
8403 else
8404 enable_fast_install=yes
8417 # This can be used to rebuild libtool when needed
8418 LIBTOOL_DEPS="$ltmain"
8420 # Always use our own libtool.
8421 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8448 test -z "$LN_S" && LN_S="ln -s"
8463 if test -n "${ZSH_VERSION+set}" ; then
8464 setopt NO_GLOB_SUBST
8467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8468 $as_echo_n "checking for objdir... " >&6; }
8469 if ${lt_cv_objdir+:} false; then :
8470 $as_echo_n "(cached) " >&6
8471 else
8472 rm -f .libs 2>/dev/null
8473 mkdir .libs 2>/dev/null
8474 if test -d .libs; then
8475 lt_cv_objdir=.libs
8476 else
8477 # MS-DOS does not allow filenames that begin with a dot.
8478 lt_cv_objdir=_libs
8480 rmdir .libs 2>/dev/null
8482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8483 $as_echo "$lt_cv_objdir" >&6; }
8484 objdir=$lt_cv_objdir
8490 cat >>confdefs.h <<_ACEOF
8491 #define LT_OBJDIR "$lt_cv_objdir/"
8492 _ACEOF
8497 case $host_os in
8498 aix3*)
8499 # AIX sometimes has problems with the GCC collect2 program. For some
8500 # reason, if we set the COLLECT_NAMES environment variable, the problems
8501 # vanish in a puff of smoke.
8502 if test "X${COLLECT_NAMES+set}" != Xset; then
8503 COLLECT_NAMES=
8504 export COLLECT_NAMES
8507 esac
8509 # Global variables:
8510 ofile=libtool
8511 can_build_shared=yes
8513 # All known linkers require a `.a' archive for static linking (except MSVC,
8514 # which needs '.lib').
8515 libext=a
8517 with_gnu_ld="$lt_cv_prog_gnu_ld"
8519 old_CC="$CC"
8520 old_CFLAGS="$CFLAGS"
8522 # Set sane defaults for various variables
8523 test -z "$CC" && CC=cc
8524 test -z "$LTCC" && LTCC=$CC
8525 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8526 test -z "$LD" && LD=ld
8527 test -z "$ac_objext" && ac_objext=o
8529 for cc_temp in $compiler""; do
8530 case $cc_temp in
8531 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8532 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8533 \-*) ;;
8534 *) break;;
8535 esac
8536 done
8537 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8540 # Only perform the check for file, if the check method requires it
8541 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8542 case $deplibs_check_method in
8543 file_magic*)
8544 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8546 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8547 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8548 $as_echo_n "(cached) " >&6
8549 else
8550 case $MAGIC_CMD in
8551 [\\/*] | ?:[\\/]*)
8552 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8555 lt_save_MAGIC_CMD="$MAGIC_CMD"
8556 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8557 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8558 for ac_dir in $ac_dummy; do
8559 IFS="$lt_save_ifs"
8560 test -z "$ac_dir" && ac_dir=.
8561 if test -f $ac_dir/${ac_tool_prefix}file; then
8562 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8563 if test -n "$file_magic_test_file"; then
8564 case $deplibs_check_method in
8565 "file_magic "*)
8566 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8567 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8568 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8569 $EGREP "$file_magic_regex" > /dev/null; then
8571 else
8572 cat <<_LT_EOF 1>&2
8574 *** Warning: the command libtool uses to detect shared libraries,
8575 *** $file_magic_cmd, produces output that libtool cannot recognize.
8576 *** The result is that libtool may fail to recognize shared libraries
8577 *** as such. This will affect the creation of libtool libraries that
8578 *** depend on shared libraries, but programs linked with such libtool
8579 *** libraries will work regardless of this problem. Nevertheless, you
8580 *** may want to report the problem to your system manager and/or to
8581 *** bug-libtool@gnu.org
8583 _LT_EOF
8584 fi ;;
8585 esac
8587 break
8589 done
8590 IFS="$lt_save_ifs"
8591 MAGIC_CMD="$lt_save_MAGIC_CMD"
8593 esac
8596 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8597 if test -n "$MAGIC_CMD"; then
8598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8599 $as_echo "$MAGIC_CMD" >&6; }
8600 else
8601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8602 $as_echo "no" >&6; }
8609 if test -z "$lt_cv_path_MAGIC_CMD"; then
8610 if test -n "$ac_tool_prefix"; then
8611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8612 $as_echo_n "checking for file... " >&6; }
8613 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8614 $as_echo_n "(cached) " >&6
8615 else
8616 case $MAGIC_CMD in
8617 [\\/*] | ?:[\\/]*)
8618 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8621 lt_save_MAGIC_CMD="$MAGIC_CMD"
8622 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8623 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8624 for ac_dir in $ac_dummy; do
8625 IFS="$lt_save_ifs"
8626 test -z "$ac_dir" && ac_dir=.
8627 if test -f $ac_dir/file; then
8628 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8629 if test -n "$file_magic_test_file"; then
8630 case $deplibs_check_method in
8631 "file_magic "*)
8632 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8633 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8634 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8635 $EGREP "$file_magic_regex" > /dev/null; then
8637 else
8638 cat <<_LT_EOF 1>&2
8640 *** Warning: the command libtool uses to detect shared libraries,
8641 *** $file_magic_cmd, produces output that libtool cannot recognize.
8642 *** The result is that libtool may fail to recognize shared libraries
8643 *** as such. This will affect the creation of libtool libraries that
8644 *** depend on shared libraries, but programs linked with such libtool
8645 *** libraries will work regardless of this problem. Nevertheless, you
8646 *** may want to report the problem to your system manager and/or to
8647 *** bug-libtool@gnu.org
8649 _LT_EOF
8650 fi ;;
8651 esac
8653 break
8655 done
8656 IFS="$lt_save_ifs"
8657 MAGIC_CMD="$lt_save_MAGIC_CMD"
8659 esac
8662 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8663 if test -n "$MAGIC_CMD"; then
8664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8665 $as_echo "$MAGIC_CMD" >&6; }
8666 else
8667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8668 $as_echo "no" >&6; }
8672 else
8673 MAGIC_CMD=:
8679 esac
8681 # Use C for the default configuration in the libtool script
8683 lt_save_CC="$CC"
8684 ac_ext=c
8685 ac_cpp='$CPP $CPPFLAGS'
8686 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8687 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8688 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8691 # Source file extension for C test sources.
8692 ac_ext=c
8694 # Object file extension for compiled C test sources.
8695 objext=o
8696 objext=$objext
8698 # Code to be used in simple compile tests
8699 lt_simple_compile_test_code="int some_variable = 0;"
8701 # Code to be used in simple link tests
8702 lt_simple_link_test_code='int main(){return(0);}'
8710 # If no C compiler was specified, use CC.
8711 LTCC=${LTCC-"$CC"}
8713 # If no C compiler flags were specified, use CFLAGS.
8714 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8716 # Allow CC to be a program name with arguments.
8717 compiler=$CC
8719 # Save the default compiler, since it gets overwritten when the other
8720 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8721 compiler_DEFAULT=$CC
8723 # save warnings/boilerplate of simple test code
8724 ac_outfile=conftest.$ac_objext
8725 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8726 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8727 _lt_compiler_boilerplate=`cat conftest.err`
8728 $RM conftest*
8730 ac_outfile=conftest.$ac_objext
8731 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8732 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8733 _lt_linker_boilerplate=`cat conftest.err`
8734 $RM -r conftest*
8737 ## CAVEAT EMPTOR:
8738 ## There is no encapsulation within the following macros, do not change
8739 ## the running order or otherwise move them around unless you know exactly
8740 ## what you are doing...
8741 if test -n "$compiler"; then
8743 lt_prog_compiler_no_builtin_flag=
8745 if test "$GCC" = yes; then
8746 case $cc_basename in
8747 nvcc*)
8748 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8750 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8751 esac
8753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8754 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8755 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8756 $as_echo_n "(cached) " >&6
8757 else
8758 lt_cv_prog_compiler_rtti_exceptions=no
8759 ac_outfile=conftest.$ac_objext
8760 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8761 lt_compiler_flag="-fno-rtti -fno-exceptions"
8762 # Insert the option either (1) after the last *FLAGS variable, or
8763 # (2) before a word containing "conftest.", or (3) at the end.
8764 # Note that $ac_compile itself does not contain backslashes and begins
8765 # with a dollar sign (not a hyphen), so the echo should work correctly.
8766 # The option is referenced via a variable to avoid confusing sed.
8767 lt_compile=`echo "$ac_compile" | $SED \
8768 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8769 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8770 -e 's:$: $lt_compiler_flag:'`
8771 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8772 (eval "$lt_compile" 2>conftest.err)
8773 ac_status=$?
8774 cat conftest.err >&5
8775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8776 if (exit $ac_status) && test -s "$ac_outfile"; then
8777 # The compiler can only warn and ignore the option if not recognized
8778 # So say no if there are warnings other than the usual output.
8779 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8780 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8781 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8782 lt_cv_prog_compiler_rtti_exceptions=yes
8785 $RM conftest*
8788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8789 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8791 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8792 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8793 else
8804 lt_prog_compiler_wl=
8805 lt_prog_compiler_pic=
8806 lt_prog_compiler_static=
8808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8809 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8811 if test "$GCC" = yes; then
8812 lt_prog_compiler_wl='-Wl,'
8813 lt_prog_compiler_static='-static'
8815 case $host_os in
8816 aix*)
8817 # All AIX code is PIC.
8818 if test "$host_cpu" = ia64; then
8819 # AIX 5 now supports IA64 processor
8820 lt_prog_compiler_static='-Bstatic'
8822 lt_prog_compiler_pic='-fPIC'
8825 amigaos*)
8826 case $host_cpu in
8827 powerpc)
8828 # see comment about AmigaOS4 .so support
8829 lt_prog_compiler_pic='-fPIC'
8831 m68k)
8832 # FIXME: we need at least 68020 code to build shared libraries, but
8833 # adding the `-m68020' flag to GCC prevents building anything better,
8834 # like `-m68040'.
8835 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8837 esac
8840 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8841 # PIC is the default for these OSes.
8844 mingw* | cygwin* | pw32* | os2* | cegcc*)
8845 # This hack is so that the source file can tell whether it is being
8846 # built for inclusion in a dll (and should export symbols for example).
8847 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8848 # (--disable-auto-import) libraries
8849 lt_prog_compiler_pic='-DDLL_EXPORT'
8852 darwin* | rhapsody*)
8853 # PIC is the default on this platform
8854 # Common symbols not allowed in MH_DYLIB files
8855 lt_prog_compiler_pic='-fno-common'
8858 haiku*)
8859 # PIC is the default for Haiku.
8860 # The "-static" flag exists, but is broken.
8861 lt_prog_compiler_static=
8864 hpux*)
8865 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8866 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8867 # sets the default TLS model and affects inlining.
8868 case $host_cpu in
8869 hppa*64*)
8870 # +Z the default
8873 lt_prog_compiler_pic='-fPIC'
8875 esac
8878 interix[3-9]*)
8879 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8880 # Instead, we relocate shared libraries at runtime.
8883 msdosdjgpp*)
8884 # Just because we use GCC doesn't mean we suddenly get shared libraries
8885 # on systems that don't support them.
8886 lt_prog_compiler_can_build_shared=no
8887 enable_shared=no
8890 *nto* | *qnx*)
8891 # QNX uses GNU C++, but need to define -shared option too, otherwise
8892 # it will coredump.
8893 lt_prog_compiler_pic='-fPIC -shared'
8896 sysv4*MP*)
8897 if test -d /usr/nec; then
8898 lt_prog_compiler_pic=-Kconform_pic
8903 lt_prog_compiler_pic='-fPIC'
8905 esac
8907 case $cc_basename in
8908 nvcc*) # Cuda Compiler Driver 2.2
8909 lt_prog_compiler_wl='-Xlinker '
8910 lt_prog_compiler_pic='-Xcompiler -fPIC'
8912 esac
8913 else
8914 # PORTME Check for flag to pass linker flags through the system compiler.
8915 case $host_os in
8916 aix*)
8917 lt_prog_compiler_wl='-Wl,'
8918 if test "$host_cpu" = ia64; then
8919 # AIX 5 now supports IA64 processor
8920 lt_prog_compiler_static='-Bstatic'
8921 else
8922 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8926 mingw* | cygwin* | pw32* | os2* | cegcc*)
8927 # This hack is so that the source file can tell whether it is being
8928 # built for inclusion in a dll (and should export symbols for example).
8929 lt_prog_compiler_pic='-DDLL_EXPORT'
8932 hpux9* | hpux10* | hpux11*)
8933 lt_prog_compiler_wl='-Wl,'
8934 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8935 # not for PA HP-UX.
8936 case $host_cpu in
8937 hppa*64*|ia64*)
8938 # +Z the default
8941 lt_prog_compiler_pic='+Z'
8943 esac
8944 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8945 lt_prog_compiler_static='${wl}-a ${wl}archive'
8948 irix5* | irix6* | nonstopux*)
8949 lt_prog_compiler_wl='-Wl,'
8950 # PIC (with -KPIC) is the default.
8951 lt_prog_compiler_static='-non_shared'
8954 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8955 case $cc_basename in
8956 # old Intel for x86_64 which still supported -KPIC.
8957 ecc*)
8958 lt_prog_compiler_wl='-Wl,'
8959 lt_prog_compiler_pic='-KPIC'
8960 lt_prog_compiler_static='-static'
8962 # icc used to be incompatible with GCC.
8963 # ICC 10 doesn't accept -KPIC any more.
8964 icc* | ifort*)
8965 lt_prog_compiler_wl='-Wl,'
8966 lt_prog_compiler_pic='-fPIC'
8967 lt_prog_compiler_static='-static'
8969 # Lahey Fortran 8.1.
8970 lf95*)
8971 lt_prog_compiler_wl='-Wl,'
8972 lt_prog_compiler_pic='--shared'
8973 lt_prog_compiler_static='--static'
8975 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8976 # Portland Group compilers (*not* the Pentium gcc compiler,
8977 # which looks to be a dead project)
8978 lt_prog_compiler_wl='-Wl,'
8979 lt_prog_compiler_pic='-fpic'
8980 lt_prog_compiler_static='-Bstatic'
8982 ccc*)
8983 lt_prog_compiler_wl='-Wl,'
8984 # All Alpha code is PIC.
8985 lt_prog_compiler_static='-non_shared'
8987 xl* | bgxl* | bgf* | mpixl*)
8988 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8989 lt_prog_compiler_wl='-Wl,'
8990 lt_prog_compiler_pic='-qpic'
8991 lt_prog_compiler_static='-qstaticlink'
8994 case `$CC -V 2>&1 | sed 5q` in
8995 *Sun\ F* | *Sun*Fortran*)
8996 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8997 lt_prog_compiler_pic='-KPIC'
8998 lt_prog_compiler_static='-Bstatic'
8999 lt_prog_compiler_wl=''
9001 *Sun\ C*)
9002 # Sun C 5.9
9003 lt_prog_compiler_pic='-KPIC'
9004 lt_prog_compiler_static='-Bstatic'
9005 lt_prog_compiler_wl='-Wl,'
9007 esac
9009 esac
9012 newsos6)
9013 lt_prog_compiler_pic='-KPIC'
9014 lt_prog_compiler_static='-Bstatic'
9017 *nto* | *qnx*)
9018 # QNX uses GNU C++, but need to define -shared option too, otherwise
9019 # it will coredump.
9020 lt_prog_compiler_pic='-fPIC -shared'
9023 osf3* | osf4* | osf5*)
9024 lt_prog_compiler_wl='-Wl,'
9025 # All OSF/1 code is PIC.
9026 lt_prog_compiler_static='-non_shared'
9029 rdos*)
9030 lt_prog_compiler_static='-non_shared'
9033 solaris*)
9034 lt_prog_compiler_pic='-KPIC'
9035 lt_prog_compiler_static='-Bstatic'
9036 case $cc_basename in
9037 f77* | f90* | f95*)
9038 lt_prog_compiler_wl='-Qoption ld ';;
9040 lt_prog_compiler_wl='-Wl,';;
9041 esac
9044 sunos4*)
9045 lt_prog_compiler_wl='-Qoption ld '
9046 lt_prog_compiler_pic='-PIC'
9047 lt_prog_compiler_static='-Bstatic'
9050 sysv4 | sysv4.2uw2* | sysv4.3*)
9051 lt_prog_compiler_wl='-Wl,'
9052 lt_prog_compiler_pic='-KPIC'
9053 lt_prog_compiler_static='-Bstatic'
9056 sysv4*MP*)
9057 if test -d /usr/nec ;then
9058 lt_prog_compiler_pic='-Kconform_pic'
9059 lt_prog_compiler_static='-Bstatic'
9063 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9064 lt_prog_compiler_wl='-Wl,'
9065 lt_prog_compiler_pic='-KPIC'
9066 lt_prog_compiler_static='-Bstatic'
9069 unicos*)
9070 lt_prog_compiler_wl='-Wl,'
9071 lt_prog_compiler_can_build_shared=no
9074 uts4*)
9075 lt_prog_compiler_pic='-pic'
9076 lt_prog_compiler_static='-Bstatic'
9080 lt_prog_compiler_can_build_shared=no
9082 esac
9085 case $host_os in
9086 # For platforms which do not support PIC, -DPIC is meaningless:
9087 *djgpp*)
9088 lt_prog_compiler_pic=
9091 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9093 esac
9094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9095 $as_echo "$lt_prog_compiler_pic" >&6; }
9103 # Check to make sure the PIC flag actually works.
9105 if test -n "$lt_prog_compiler_pic"; then
9106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9107 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9108 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9109 $as_echo_n "(cached) " >&6
9110 else
9111 lt_cv_prog_compiler_pic_works=no
9112 ac_outfile=conftest.$ac_objext
9113 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9114 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9115 # Insert the option either (1) after the last *FLAGS variable, or
9116 # (2) before a word containing "conftest.", or (3) at the end.
9117 # Note that $ac_compile itself does not contain backslashes and begins
9118 # with a dollar sign (not a hyphen), so the echo should work correctly.
9119 # The option is referenced via a variable to avoid confusing sed.
9120 lt_compile=`echo "$ac_compile" | $SED \
9121 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9122 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9123 -e 's:$: $lt_compiler_flag:'`
9124 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9125 (eval "$lt_compile" 2>conftest.err)
9126 ac_status=$?
9127 cat conftest.err >&5
9128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9129 if (exit $ac_status) && test -s "$ac_outfile"; then
9130 # The compiler can only warn and ignore the option if not recognized
9131 # So say no if there are warnings other than the usual output.
9132 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9133 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9134 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9135 lt_cv_prog_compiler_pic_works=yes
9138 $RM conftest*
9141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9142 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9144 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9145 case $lt_prog_compiler_pic in
9146 "" | " "*) ;;
9147 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9148 esac
9149 else
9150 lt_prog_compiler_pic=
9151 lt_prog_compiler_can_build_shared=no
9162 # Check to make sure the static flag actually works.
9164 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9166 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9167 if ${lt_cv_prog_compiler_static_works+:} false; then :
9168 $as_echo_n "(cached) " >&6
9169 else
9170 lt_cv_prog_compiler_static_works=no
9171 save_LDFLAGS="$LDFLAGS"
9172 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9173 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9174 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9175 # The linker can only warn and ignore the option if not recognized
9176 # So say no if there are warnings
9177 if test -s conftest.err; then
9178 # Append any errors to the config.log.
9179 cat conftest.err 1>&5
9180 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9181 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9182 if diff conftest.exp conftest.er2 >/dev/null; then
9183 lt_cv_prog_compiler_static_works=yes
9185 else
9186 lt_cv_prog_compiler_static_works=yes
9189 $RM -r conftest*
9190 LDFLAGS="$save_LDFLAGS"
9193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9194 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9196 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9198 else
9199 lt_prog_compiler_static=
9208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9209 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9210 if ${lt_cv_prog_compiler_c_o+:} false; then :
9211 $as_echo_n "(cached) " >&6
9212 else
9213 lt_cv_prog_compiler_c_o=no
9214 $RM -r conftest 2>/dev/null
9215 mkdir conftest
9216 cd conftest
9217 mkdir out
9218 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9220 lt_compiler_flag="-o out/conftest2.$ac_objext"
9221 # Insert the option either (1) after the last *FLAGS variable, or
9222 # (2) before a word containing "conftest.", or (3) at the end.
9223 # Note that $ac_compile itself does not contain backslashes and begins
9224 # with a dollar sign (not a hyphen), so the echo should work correctly.
9225 lt_compile=`echo "$ac_compile" | $SED \
9226 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9227 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9228 -e 's:$: $lt_compiler_flag:'`
9229 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9230 (eval "$lt_compile" 2>out/conftest.err)
9231 ac_status=$?
9232 cat out/conftest.err >&5
9233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9234 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9235 then
9236 # The compiler can only warn and ignore the option if not recognized
9237 # So say no if there are warnings
9238 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9239 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9240 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9241 lt_cv_prog_compiler_c_o=yes
9244 chmod u+w . 2>&5
9245 $RM conftest*
9246 # SGI C++ compiler will create directory out/ii_files/ for
9247 # template instantiation
9248 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9249 $RM out/* && rmdir out
9250 cd ..
9251 $RM -r conftest
9252 $RM conftest*
9255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9256 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9264 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9265 if ${lt_cv_prog_compiler_c_o+:} false; then :
9266 $as_echo_n "(cached) " >&6
9267 else
9268 lt_cv_prog_compiler_c_o=no
9269 $RM -r conftest 2>/dev/null
9270 mkdir conftest
9271 cd conftest
9272 mkdir out
9273 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9275 lt_compiler_flag="-o out/conftest2.$ac_objext"
9276 # Insert the option either (1) after the last *FLAGS variable, or
9277 # (2) before a word containing "conftest.", or (3) at the end.
9278 # Note that $ac_compile itself does not contain backslashes and begins
9279 # with a dollar sign (not a hyphen), so the echo should work correctly.
9280 lt_compile=`echo "$ac_compile" | $SED \
9281 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9282 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9283 -e 's:$: $lt_compiler_flag:'`
9284 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9285 (eval "$lt_compile" 2>out/conftest.err)
9286 ac_status=$?
9287 cat out/conftest.err >&5
9288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9289 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9290 then
9291 # The compiler can only warn and ignore the option if not recognized
9292 # So say no if there are warnings
9293 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9294 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9295 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9296 lt_cv_prog_compiler_c_o=yes
9299 chmod u+w . 2>&5
9300 $RM conftest*
9301 # SGI C++ compiler will create directory out/ii_files/ for
9302 # template instantiation
9303 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9304 $RM out/* && rmdir out
9305 cd ..
9306 $RM -r conftest
9307 $RM conftest*
9310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9311 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9316 hard_links="nottested"
9317 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9318 # do not overwrite the value of need_locks provided by the user
9319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9320 $as_echo_n "checking if we can lock with hard links... " >&6; }
9321 hard_links=yes
9322 $RM conftest*
9323 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9324 touch conftest.a
9325 ln conftest.a conftest.b 2>&5 || hard_links=no
9326 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9328 $as_echo "$hard_links" >&6; }
9329 if test "$hard_links" = no; then
9330 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9331 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9332 need_locks=warn
9334 else
9335 need_locks=no
9343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9344 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9346 runpath_var=
9347 allow_undefined_flag=
9348 always_export_symbols=no
9349 archive_cmds=
9350 archive_expsym_cmds=
9351 compiler_needs_object=no
9352 enable_shared_with_static_runtimes=no
9353 export_dynamic_flag_spec=
9354 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9355 hardcode_automatic=no
9356 hardcode_direct=no
9357 hardcode_direct_absolute=no
9358 hardcode_libdir_flag_spec=
9359 hardcode_libdir_flag_spec_ld=
9360 hardcode_libdir_separator=
9361 hardcode_minus_L=no
9362 hardcode_shlibpath_var=unsupported
9363 inherit_rpath=no
9364 link_all_deplibs=unknown
9365 module_cmds=
9366 module_expsym_cmds=
9367 old_archive_from_new_cmds=
9368 old_archive_from_expsyms_cmds=
9369 thread_safe_flag_spec=
9370 whole_archive_flag_spec=
9371 # include_expsyms should be a list of space-separated symbols to be *always*
9372 # included in the symbol list
9373 include_expsyms=
9374 # exclude_expsyms can be an extended regexp of symbols to exclude
9375 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9376 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9377 # as well as any symbol that contains `d'.
9378 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9379 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9380 # platforms (ab)use it in PIC code, but their linkers get confused if
9381 # the symbol is explicitly referenced. Since portable code cannot
9382 # rely on this symbol name, it's probably fine to never include it in
9383 # preloaded symbol tables.
9384 # Exclude shared library initialization/finalization symbols.
9385 extract_expsyms_cmds=
9387 case $host_os in
9388 cygwin* | mingw* | pw32* | cegcc*)
9389 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9390 # When not using gcc, we currently assume that we are using
9391 # Microsoft Visual C++.
9392 if test "$GCC" != yes; then
9393 with_gnu_ld=no
9396 interix*)
9397 # we just hope/assume this is gcc and not c89 (= MSVC++)
9398 with_gnu_ld=yes
9400 openbsd*)
9401 with_gnu_ld=no
9403 esac
9405 ld_shlibs=yes
9407 # On some targets, GNU ld is compatible enough with the native linker
9408 # that we're better off using the native interface for both.
9409 lt_use_gnu_ld_interface=no
9410 if test "$with_gnu_ld" = yes; then
9411 case $host_os in
9412 aix*)
9413 # The AIX port of GNU ld has always aspired to compatibility
9414 # with the native linker. However, as the warning in the GNU ld
9415 # block says, versions before 2.19.5* couldn't really create working
9416 # shared libraries, regardless of the interface used.
9417 case `$LD -v 2>&1` in
9418 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9419 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9420 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9422 lt_use_gnu_ld_interface=yes
9424 esac
9427 lt_use_gnu_ld_interface=yes
9429 esac
9432 if test "$lt_use_gnu_ld_interface" = yes; then
9433 # If archive_cmds runs LD, not CC, wlarc should be empty
9434 wlarc='${wl}'
9436 # Set some defaults for GNU ld with shared library support. These
9437 # are reset later if shared libraries are not supported. Putting them
9438 # here allows them to be overridden if necessary.
9439 runpath_var=LD_RUN_PATH
9440 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9441 export_dynamic_flag_spec='${wl}--export-dynamic'
9442 # ancient GNU ld didn't support --whole-archive et. al.
9443 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9444 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9445 else
9446 whole_archive_flag_spec=
9448 supports_anon_versioning=no
9449 case `$LD -v 2>&1` in
9450 *GNU\ gold*) supports_anon_versioning=yes ;;
9451 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9452 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9453 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9454 *\ 2.11.*) ;; # other 2.11 versions
9455 *) supports_anon_versioning=yes ;;
9456 esac
9458 # See if GNU ld supports shared libraries.
9459 case $host_os in
9460 aix[3-9]*)
9461 # On AIX/PPC, the GNU linker is very broken
9462 if test "$host_cpu" != ia64; then
9463 ld_shlibs=no
9464 cat <<_LT_EOF 1>&2
9466 *** Warning: the GNU linker, at least up to release 2.19, is reported
9467 *** to be unable to reliably create shared libraries on AIX.
9468 *** Therefore, libtool is disabling shared libraries support. If you
9469 *** really care for shared libraries, you may want to install binutils
9470 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9471 *** You will then need to restart the configuration process.
9473 _LT_EOF
9477 amigaos*)
9478 case $host_cpu in
9479 powerpc)
9480 # see comment about AmigaOS4 .so support
9481 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9482 archive_expsym_cmds=''
9484 m68k)
9485 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)'
9486 hardcode_libdir_flag_spec='-L$libdir'
9487 hardcode_minus_L=yes
9489 esac
9492 beos*)
9493 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9494 allow_undefined_flag=unsupported
9495 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9496 # support --undefined. This deserves some investigation. FIXME
9497 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9498 else
9499 ld_shlibs=no
9503 cygwin* | mingw* | pw32* | cegcc*)
9504 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9505 # as there is no search path for DLLs.
9506 hardcode_libdir_flag_spec='-L$libdir'
9507 export_dynamic_flag_spec='${wl}--export-all-symbols'
9508 allow_undefined_flag=unsupported
9509 always_export_symbols=no
9510 enable_shared_with_static_runtimes=yes
9511 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9513 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9514 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9515 # If the export-symbols file already is a .def file (1st line
9516 # is EXPORTS), use it as is; otherwise, prepend...
9517 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9518 cp $export_symbols $output_objdir/$soname.def;
9519 else
9520 echo EXPORTS > $output_objdir/$soname.def;
9521 cat $export_symbols >> $output_objdir/$soname.def;
9523 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9524 else
9525 ld_shlibs=no
9529 haiku*)
9530 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9531 link_all_deplibs=yes
9534 interix[3-9]*)
9535 hardcode_direct=no
9536 hardcode_shlibpath_var=no
9537 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9538 export_dynamic_flag_spec='${wl}-E'
9539 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9540 # Instead, shared libraries are loaded at an image base (0x10000000 by
9541 # default) and relocated if they conflict, which is a slow very memory
9542 # consuming and fragmenting process. To avoid this, we pick a random,
9543 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9544 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9545 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9546 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'
9549 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9550 tmp_diet=no
9551 if test "$host_os" = linux-dietlibc; then
9552 case $cc_basename in
9553 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9554 esac
9556 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9557 && test "$tmp_diet" = no
9558 then
9559 tmp_addflag=' $pic_flag'
9560 tmp_sharedflag='-shared'
9561 case $cc_basename,$host_cpu in
9562 pgcc*) # Portland Group C compiler
9563 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'
9564 tmp_addflag=' $pic_flag'
9566 pgf77* | pgf90* | pgf95* | pgfortran*)
9567 # Portland Group f77 and f90 compilers
9568 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'
9569 tmp_addflag=' $pic_flag -Mnomain' ;;
9570 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9571 tmp_addflag=' -i_dynamic' ;;
9572 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9573 tmp_addflag=' -i_dynamic -nofor_main' ;;
9574 ifc* | ifort*) # Intel Fortran compiler
9575 tmp_addflag=' -nofor_main' ;;
9576 lf95*) # Lahey Fortran 8.1
9577 whole_archive_flag_spec=
9578 tmp_sharedflag='--shared' ;;
9579 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9580 tmp_sharedflag='-qmkshrobj'
9581 tmp_addflag= ;;
9582 nvcc*) # Cuda Compiler Driver 2.2
9583 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'
9584 compiler_needs_object=yes
9586 esac
9587 case `$CC -V 2>&1 | sed 5q` in
9588 *Sun\ C*) # Sun C 5.9
9589 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'
9590 compiler_needs_object=yes
9591 tmp_sharedflag='-G' ;;
9592 *Sun\ F*) # Sun Fortran 8.3
9593 tmp_sharedflag='-G' ;;
9594 esac
9595 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9597 if test "x$supports_anon_versioning" = xyes; then
9598 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9599 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9600 echo "local: *; };" >> $output_objdir/$libname.ver~
9601 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9604 case $cc_basename in
9605 xlf* | bgf* | bgxlf* | mpixlf*)
9606 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9607 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9608 hardcode_libdir_flag_spec=
9609 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9610 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9611 if test "x$supports_anon_versioning" = xyes; then
9612 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9613 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9614 echo "local: *; };" >> $output_objdir/$libname.ver~
9615 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9618 esac
9619 else
9620 ld_shlibs=no
9624 netbsd*)
9625 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9626 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9627 wlarc=
9628 else
9629 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9630 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9634 solaris*)
9635 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9636 ld_shlibs=no
9637 cat <<_LT_EOF 1>&2
9639 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9640 *** create shared libraries on Solaris systems. Therefore, libtool
9641 *** is disabling shared libraries support. We urge you to upgrade GNU
9642 *** binutils to release 2.9.1 or newer. Another option is to modify
9643 *** your PATH or compiler configuration so that the native linker is
9644 *** used, and then restart.
9646 _LT_EOF
9647 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9648 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9649 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9650 else
9651 ld_shlibs=no
9655 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9656 case `$LD -v 2>&1` in
9657 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9658 ld_shlibs=no
9659 cat <<_LT_EOF 1>&2
9661 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9662 *** reliably create shared libraries on SCO systems. Therefore, libtool
9663 *** is disabling shared libraries support. We urge you to upgrade GNU
9664 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9665 *** your PATH or compiler configuration so that the native linker is
9666 *** used, and then restart.
9668 _LT_EOF
9671 # For security reasons, it is highly recommended that you always
9672 # use absolute paths for naming shared libraries, and exclude the
9673 # DT_RUNPATH tag from executables and libraries. But doing so
9674 # requires that you compile everything twice, which is a pain.
9675 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9676 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9677 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9678 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9679 else
9680 ld_shlibs=no
9683 esac
9686 sunos4*)
9687 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9688 wlarc=
9689 hardcode_direct=yes
9690 hardcode_shlibpath_var=no
9694 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9695 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9696 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9697 else
9698 ld_shlibs=no
9701 esac
9703 if test "$ld_shlibs" = no; then
9704 runpath_var=
9705 hardcode_libdir_flag_spec=
9706 export_dynamic_flag_spec=
9707 whole_archive_flag_spec=
9709 else
9710 # PORTME fill in a description of your system's linker (not GNU ld)
9711 case $host_os in
9712 aix3*)
9713 allow_undefined_flag=unsupported
9714 always_export_symbols=yes
9715 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'
9716 # Note: this linker hardcodes the directories in LIBPATH if there
9717 # are no directories specified by -L.
9718 hardcode_minus_L=yes
9719 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9720 # Neither direct hardcoding nor static linking is supported with a
9721 # broken collect2.
9722 hardcode_direct=unsupported
9726 aix[4-9]*)
9727 if test "$host_cpu" = ia64; then
9728 # On IA64, the linker does run time linking by default, so we don't
9729 # have to do anything special.
9730 aix_use_runtimelinking=no
9731 exp_sym_flag='-Bexport'
9732 no_entry_flag=""
9733 else
9734 # If we're using GNU nm, then we don't want the "-C" option.
9735 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9736 # Also, AIX nm treats weak defined symbols like other global
9737 # defined symbols, whereas GNU nm marks them as "W".
9738 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9739 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'
9740 else
9741 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'
9743 aix_use_runtimelinking=no
9745 # Test if we are trying to use run time linking or normal
9746 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9747 # need to do runtime linking.
9748 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9749 for ld_flag in $LDFLAGS; do
9750 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9751 aix_use_runtimelinking=yes
9752 break
9754 done
9756 esac
9758 exp_sym_flag='-bexport'
9759 no_entry_flag='-bnoentry'
9762 # When large executables or shared objects are built, AIX ld can
9763 # have problems creating the table of contents. If linking a library
9764 # or program results in "error TOC overflow" add -mminimal-toc to
9765 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9766 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9768 archive_cmds=''
9769 hardcode_direct=yes
9770 hardcode_direct_absolute=yes
9771 hardcode_libdir_separator=':'
9772 link_all_deplibs=yes
9773 file_list_spec='${wl}-f,'
9775 if test "$GCC" = yes; then
9776 case $host_os in aix4.[012]|aix4.[012].*)
9777 # We only want to do this on AIX 4.2 and lower, the check
9778 # below for broken collect2 doesn't work under 4.3+
9779 collect2name=`${CC} -print-prog-name=collect2`
9780 if test -f "$collect2name" &&
9781 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9782 then
9783 # We have reworked collect2
9785 else
9786 # We have old collect2
9787 hardcode_direct=unsupported
9788 # It fails to find uninstalled libraries when the uninstalled
9789 # path is not listed in the libpath. Setting hardcode_minus_L
9790 # to unsupported forces relinking
9791 hardcode_minus_L=yes
9792 hardcode_libdir_flag_spec='-L$libdir'
9793 hardcode_libdir_separator=
9796 esac
9797 shared_flag='-shared'
9798 if test "$aix_use_runtimelinking" = yes; then
9799 shared_flag="$shared_flag "'${wl}-G'
9801 else
9802 # not using gcc
9803 if test "$host_cpu" = ia64; then
9804 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9805 # chokes on -Wl,-G. The following line is correct:
9806 shared_flag='-G'
9807 else
9808 if test "$aix_use_runtimelinking" = yes; then
9809 shared_flag='${wl}-G'
9810 else
9811 shared_flag='${wl}-bM:SRE'
9816 export_dynamic_flag_spec='${wl}-bexpall'
9817 # It seems that -bexpall does not export symbols beginning with
9818 # underscore (_), so it is better to generate a list of symbols to export.
9819 always_export_symbols=yes
9820 if test "$aix_use_runtimelinking" = yes; then
9821 # Warning - without using the other runtime loading flags (-brtl),
9822 # -berok will link without error, but may produce a broken library.
9823 allow_undefined_flag='-berok'
9824 # Determine the default libpath from the value encoded in an
9825 # empty executable.
9826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9827 /* end confdefs.h. */
9830 main ()
9834 return 0;
9836 _ACEOF
9837 if ac_fn_c_try_link "$LINENO"; then :
9839 lt_aix_libpath_sed='
9840 /Import File Strings/,/^$/ {
9841 /^0/ {
9842 s/^0 *\(.*\)$/\1/
9846 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9847 # Check for a 64-bit object if we didn't find anything.
9848 if test -z "$aix_libpath"; then
9849 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9852 rm -f core conftest.err conftest.$ac_objext \
9853 conftest$ac_exeext conftest.$ac_ext
9854 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9856 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9857 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"
9858 else
9859 if test "$host_cpu" = ia64; then
9860 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9861 allow_undefined_flag="-z nodefs"
9862 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"
9863 else
9864 # Determine the default libpath from the value encoded in an
9865 # empty executable.
9866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9867 /* end confdefs.h. */
9870 main ()
9874 return 0;
9876 _ACEOF
9877 if ac_fn_c_try_link "$LINENO"; then :
9879 lt_aix_libpath_sed='
9880 /Import File Strings/,/^$/ {
9881 /^0/ {
9882 s/^0 *\(.*\)$/\1/
9886 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9887 # Check for a 64-bit object if we didn't find anything.
9888 if test -z "$aix_libpath"; then
9889 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9892 rm -f core conftest.err conftest.$ac_objext \
9893 conftest$ac_exeext conftest.$ac_ext
9894 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9896 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9897 # Warning - without using the other run time loading flags,
9898 # -berok will link without error, but may produce a broken library.
9899 no_undefined_flag=' ${wl}-bernotok'
9900 allow_undefined_flag=' ${wl}-berok'
9901 if test "$with_gnu_ld" = yes; then
9902 # We only use this code for GNU lds that support --whole-archive.
9903 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9904 else
9905 # Exported symbols can be pulled into shared objects from archives
9906 whole_archive_flag_spec='$convenience'
9908 archive_cmds_need_lc=yes
9909 # This is similar to how AIX traditionally builds its shared libraries.
9910 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'
9915 amigaos*)
9916 case $host_cpu in
9917 powerpc)
9918 # see comment about AmigaOS4 .so support
9919 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9920 archive_expsym_cmds=''
9922 m68k)
9923 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)'
9924 hardcode_libdir_flag_spec='-L$libdir'
9925 hardcode_minus_L=yes
9927 esac
9930 bsdi[45]*)
9931 export_dynamic_flag_spec=-rdynamic
9934 cygwin* | mingw* | pw32* | cegcc*)
9935 # When not using gcc, we currently assume that we are using
9936 # Microsoft Visual C++.
9937 # hardcode_libdir_flag_spec is actually meaningless, as there is
9938 # no search path for DLLs.
9939 hardcode_libdir_flag_spec=' '
9940 allow_undefined_flag=unsupported
9941 # Tell ltmain to make .lib files, not .a files.
9942 libext=lib
9943 # Tell ltmain to make .dll files, not .so files.
9944 shrext_cmds=".dll"
9945 # FIXME: Setting linknames here is a bad hack.
9946 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9947 # The linker will automatically build a .lib file if we build a DLL.
9948 old_archive_from_new_cmds='true'
9949 # FIXME: Should let the user specify the lib program.
9950 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9951 fix_srcfile_path='`cygpath -w "$srcfile"`'
9952 enable_shared_with_static_runtimes=yes
9955 darwin* | rhapsody*)
9958 archive_cmds_need_lc=no
9959 hardcode_direct=no
9960 hardcode_automatic=yes
9961 hardcode_shlibpath_var=unsupported
9962 if test "$lt_cv_ld_force_load" = "yes"; then
9963 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\"`'
9964 else
9965 whole_archive_flag_spec=''
9967 link_all_deplibs=yes
9968 allow_undefined_flag="$_lt_dar_allow_undefined"
9969 case $cc_basename in
9970 ifort*) _lt_dar_can_shared=yes ;;
9971 *) _lt_dar_can_shared=$GCC ;;
9972 esac
9973 if test "$_lt_dar_can_shared" = "yes"; then
9974 output_verbose_link_cmd=func_echo_all
9975 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9976 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9977 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}"
9978 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}"
9980 else
9981 ld_shlibs=no
9986 dgux*)
9987 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9988 hardcode_libdir_flag_spec='-L$libdir'
9989 hardcode_shlibpath_var=no
9992 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9993 # support. Future versions do this automatically, but an explicit c++rt0.o
9994 # does not break anything, and helps significantly (at the cost of a little
9995 # extra space).
9996 freebsd2.2*)
9997 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9998 hardcode_libdir_flag_spec='-R$libdir'
9999 hardcode_direct=yes
10000 hardcode_shlibpath_var=no
10003 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10004 freebsd2.*)
10005 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10006 hardcode_direct=yes
10007 hardcode_minus_L=yes
10008 hardcode_shlibpath_var=no
10011 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10012 freebsd* | dragonfly*)
10013 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10014 hardcode_libdir_flag_spec='-R$libdir'
10015 hardcode_direct=yes
10016 hardcode_shlibpath_var=no
10019 hpux9*)
10020 if test "$GCC" = yes; then
10021 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'
10022 else
10023 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'
10025 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10026 hardcode_libdir_separator=:
10027 hardcode_direct=yes
10029 # hardcode_minus_L: Not really in the search PATH,
10030 # but as the default location of the library.
10031 hardcode_minus_L=yes
10032 export_dynamic_flag_spec='${wl}-E'
10035 hpux10*)
10036 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10037 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10038 else
10039 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10041 if test "$with_gnu_ld" = no; then
10042 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10043 hardcode_libdir_flag_spec_ld='+b $libdir'
10044 hardcode_libdir_separator=:
10045 hardcode_direct=yes
10046 hardcode_direct_absolute=yes
10047 export_dynamic_flag_spec='${wl}-E'
10048 # hardcode_minus_L: Not really in the search PATH,
10049 # but as the default location of the library.
10050 hardcode_minus_L=yes
10054 hpux11*)
10055 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10056 case $host_cpu in
10057 hppa*64*)
10058 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10060 ia64*)
10061 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10064 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10066 esac
10067 else
10068 case $host_cpu in
10069 hppa*64*)
10070 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10072 ia64*)
10073 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10077 # Older versions of the 11.00 compiler do not understand -b yet
10078 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10080 $as_echo_n "checking if $CC understands -b... " >&6; }
10081 if ${lt_cv_prog_compiler__b+:} false; then :
10082 $as_echo_n "(cached) " >&6
10083 else
10084 lt_cv_prog_compiler__b=no
10085 save_LDFLAGS="$LDFLAGS"
10086 LDFLAGS="$LDFLAGS -b"
10087 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10088 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10089 # The linker can only warn and ignore the option if not recognized
10090 # So say no if there are warnings
10091 if test -s conftest.err; then
10092 # Append any errors to the config.log.
10093 cat conftest.err 1>&5
10094 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10095 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10096 if diff conftest.exp conftest.er2 >/dev/null; then
10097 lt_cv_prog_compiler__b=yes
10099 else
10100 lt_cv_prog_compiler__b=yes
10103 $RM -r conftest*
10104 LDFLAGS="$save_LDFLAGS"
10107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10108 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10110 if test x"$lt_cv_prog_compiler__b" = xyes; then
10111 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10112 else
10113 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10117 esac
10119 if test "$with_gnu_ld" = no; then
10120 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10121 hardcode_libdir_separator=:
10123 case $host_cpu in
10124 hppa*64*|ia64*)
10125 hardcode_direct=no
10126 hardcode_shlibpath_var=no
10129 hardcode_direct=yes
10130 hardcode_direct_absolute=yes
10131 export_dynamic_flag_spec='${wl}-E'
10133 # hardcode_minus_L: Not really in the search PATH,
10134 # but as the default location of the library.
10135 hardcode_minus_L=yes
10137 esac
10141 irix5* | irix6* | nonstopux*)
10142 if test "$GCC" = yes; then
10143 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'
10144 # Try to use the -exported_symbol ld option, if it does not
10145 # work, assume that -exports_file does not work either and
10146 # implicitly export all symbols.
10147 save_LDFLAGS="$LDFLAGS"
10148 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10150 /* end confdefs.h. */
10151 int foo(void) {}
10152 _ACEOF
10153 if ac_fn_c_try_link "$LINENO"; then :
10154 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'
10157 rm -f core conftest.err conftest.$ac_objext \
10158 conftest$ac_exeext conftest.$ac_ext
10159 LDFLAGS="$save_LDFLAGS"
10160 else
10161 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'
10162 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'
10164 archive_cmds_need_lc='no'
10165 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10166 hardcode_libdir_separator=:
10167 inherit_rpath=yes
10168 link_all_deplibs=yes
10171 netbsd*)
10172 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10173 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10174 else
10175 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10177 hardcode_libdir_flag_spec='-R$libdir'
10178 hardcode_direct=yes
10179 hardcode_shlibpath_var=no
10182 newsos6)
10183 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10184 hardcode_direct=yes
10185 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10186 hardcode_libdir_separator=:
10187 hardcode_shlibpath_var=no
10190 *nto* | *qnx*)
10193 openbsd*)
10194 if test -f /usr/libexec/ld.so; then
10195 hardcode_direct=yes
10196 hardcode_shlibpath_var=no
10197 hardcode_direct_absolute=yes
10198 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10199 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10200 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10201 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10202 export_dynamic_flag_spec='${wl}-E'
10203 else
10204 case $host_os in
10205 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10206 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10207 hardcode_libdir_flag_spec='-R$libdir'
10210 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10211 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10213 esac
10215 else
10216 ld_shlibs=no
10220 os2*)
10221 hardcode_libdir_flag_spec='-L$libdir'
10222 hardcode_minus_L=yes
10223 allow_undefined_flag=unsupported
10224 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'
10225 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10228 osf3*)
10229 if test "$GCC" = yes; then
10230 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10231 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'
10232 else
10233 allow_undefined_flag=' -expect_unresolved \*'
10234 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'
10236 archive_cmds_need_lc='no'
10237 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10238 hardcode_libdir_separator=:
10241 osf4* | osf5*) # as osf3* with the addition of -msym flag
10242 if test "$GCC" = yes; then
10243 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10244 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'
10245 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10246 else
10247 allow_undefined_flag=' -expect_unresolved \*'
10248 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'
10249 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~
10250 $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'
10252 # Both c and cxx compiler support -rpath directly
10253 hardcode_libdir_flag_spec='-rpath $libdir'
10255 archive_cmds_need_lc='no'
10256 hardcode_libdir_separator=:
10259 solaris*)
10260 no_undefined_flag=' -z defs'
10261 if test "$GCC" = yes; then
10262 wlarc='${wl}'
10263 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10264 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10265 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10266 else
10267 case `$CC -V 2>&1` in
10268 *"Compilers 5.0"*)
10269 wlarc=''
10270 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10271 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10272 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10275 wlarc='${wl}'
10276 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10277 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10278 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10280 esac
10282 hardcode_libdir_flag_spec='-R$libdir'
10283 hardcode_shlibpath_var=no
10284 case $host_os in
10285 solaris2.[0-5] | solaris2.[0-5].*) ;;
10287 # The compiler driver will combine and reorder linker options,
10288 # but understands `-z linker_flag'. GCC discards it without `$wl',
10289 # but is careful enough not to reorder.
10290 # Supported since Solaris 2.6 (maybe 2.5.1?)
10291 if test "$GCC" = yes; then
10292 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10293 else
10294 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10297 esac
10298 link_all_deplibs=yes
10301 sunos4*)
10302 if test "x$host_vendor" = xsequent; then
10303 # Use $CC to link under sequent, because it throws in some extra .o
10304 # files that make .init and .fini sections work.
10305 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10306 else
10307 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10309 hardcode_libdir_flag_spec='-L$libdir'
10310 hardcode_direct=yes
10311 hardcode_minus_L=yes
10312 hardcode_shlibpath_var=no
10315 sysv4)
10316 case $host_vendor in
10317 sni)
10318 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10319 hardcode_direct=yes # is this really true???
10321 siemens)
10322 ## LD is ld it makes a PLAMLIB
10323 ## CC just makes a GrossModule.
10324 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10325 reload_cmds='$CC -r -o $output$reload_objs'
10326 hardcode_direct=no
10328 motorola)
10329 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10330 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10332 esac
10333 runpath_var='LD_RUN_PATH'
10334 hardcode_shlibpath_var=no
10337 sysv4.3*)
10338 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10339 hardcode_shlibpath_var=no
10340 export_dynamic_flag_spec='-Bexport'
10343 sysv4*MP*)
10344 if test -d /usr/nec; then
10345 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10346 hardcode_shlibpath_var=no
10347 runpath_var=LD_RUN_PATH
10348 hardcode_runpath_var=yes
10349 ld_shlibs=yes
10353 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10354 no_undefined_flag='${wl}-z,text'
10355 archive_cmds_need_lc=no
10356 hardcode_shlibpath_var=no
10357 runpath_var='LD_RUN_PATH'
10359 if test "$GCC" = yes; then
10360 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10361 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10362 else
10363 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10364 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10368 sysv5* | sco3.2v5* | sco5v6*)
10369 # Note: We can NOT use -z defs as we might desire, because we do not
10370 # link with -lc, and that would cause any symbols used from libc to
10371 # always be unresolved, which means just about no library would
10372 # ever link correctly. If we're not using GNU ld we use -z text
10373 # though, which does catch some bad symbols but isn't as heavy-handed
10374 # as -z defs.
10375 no_undefined_flag='${wl}-z,text'
10376 allow_undefined_flag='${wl}-z,nodefs'
10377 archive_cmds_need_lc=no
10378 hardcode_shlibpath_var=no
10379 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10380 hardcode_libdir_separator=':'
10381 link_all_deplibs=yes
10382 export_dynamic_flag_spec='${wl}-Bexport'
10383 runpath_var='LD_RUN_PATH'
10385 if test "$GCC" = yes; then
10386 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10387 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10388 else
10389 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10390 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10394 uts4*)
10395 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10396 hardcode_libdir_flag_spec='-L$libdir'
10397 hardcode_shlibpath_var=no
10401 ld_shlibs=no
10403 esac
10405 if test x$host_vendor = xsni; then
10406 case $host in
10407 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10408 export_dynamic_flag_spec='${wl}-Blargedynsym'
10410 esac
10414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10415 $as_echo "$ld_shlibs" >&6; }
10416 test "$ld_shlibs" = no && can_build_shared=no
10418 with_gnu_ld=$with_gnu_ld
10435 # Do we need to explicitly link libc?
10437 case "x$archive_cmds_need_lc" in
10438 x|xyes)
10439 # Assume -lc should be added
10440 archive_cmds_need_lc=yes
10442 if test "$enable_shared" = yes && test "$GCC" = yes; then
10443 case $archive_cmds in
10444 *'~'*)
10445 # FIXME: we may have to deal with multi-command sequences.
10447 '$CC '*)
10448 # Test whether the compiler implicitly links with -lc since on some
10449 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10450 # to ld, don't add -lc before -lgcc.
10451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10452 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10453 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10454 $as_echo_n "(cached) " >&6
10455 else
10456 $RM conftest*
10457 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10459 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10460 (eval $ac_compile) 2>&5
10461 ac_status=$?
10462 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10463 test $ac_status = 0; } 2>conftest.err; then
10464 soname=conftest
10465 lib=conftest
10466 libobjs=conftest.$ac_objext
10467 deplibs=
10468 wl=$lt_prog_compiler_wl
10469 pic_flag=$lt_prog_compiler_pic
10470 compiler_flags=-v
10471 linker_flags=-v
10472 verstring=
10473 output_objdir=.
10474 libname=conftest
10475 lt_save_allow_undefined_flag=$allow_undefined_flag
10476 allow_undefined_flag=
10477 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10478 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10479 ac_status=$?
10480 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10481 test $ac_status = 0; }
10482 then
10483 lt_cv_archive_cmds_need_lc=no
10484 else
10485 lt_cv_archive_cmds_need_lc=yes
10487 allow_undefined_flag=$lt_save_allow_undefined_flag
10488 else
10489 cat conftest.err 1>&5
10491 $RM conftest*
10494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10495 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10496 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10498 esac
10501 esac
10659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10660 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10662 if test "$GCC" = yes; then
10663 case $host_os in
10664 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10665 *) lt_awk_arg="/^libraries:/" ;;
10666 esac
10667 case $host_os in
10668 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10669 *) lt_sed_strip_eq="s,=/,/,g" ;;
10670 esac
10671 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10672 case $lt_search_path_spec in
10673 *\;*)
10674 # if the path contains ";" then we assume it to be the separator
10675 # otherwise default to the standard path separator (i.e. ":") - it is
10676 # assumed that no part of a normal pathname contains ";" but that should
10677 # okay in the real world where ";" in dirpaths is itself problematic.
10678 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10681 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10683 esac
10684 # Ok, now we have the path, separated by spaces, we can step through it
10685 # and add multilib dir if necessary.
10686 lt_tmp_lt_search_path_spec=
10687 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10688 for lt_sys_path in $lt_search_path_spec; do
10689 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10690 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10691 else
10692 test -d "$lt_sys_path" && \
10693 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10695 done
10696 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10697 BEGIN {RS=" "; FS="/|\n";} {
10698 lt_foo="";
10699 lt_count=0;
10700 for (lt_i = NF; lt_i > 0; lt_i--) {
10701 if ($lt_i != "" && $lt_i != ".") {
10702 if ($lt_i == "..") {
10703 lt_count++;
10704 } else {
10705 if (lt_count == 0) {
10706 lt_foo="/" $lt_i lt_foo;
10707 } else {
10708 lt_count--;
10713 if (lt_foo != "") { lt_freq[lt_foo]++; }
10714 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10716 # AWK program above erroneously prepends '/' to C:/dos/paths
10717 # for these hosts.
10718 case $host_os in
10719 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10720 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10721 esac
10722 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10723 else
10724 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10726 library_names_spec=
10727 libname_spec='lib$name'
10728 soname_spec=
10729 shrext_cmds=".so"
10730 postinstall_cmds=
10731 postuninstall_cmds=
10732 finish_cmds=
10733 finish_eval=
10734 shlibpath_var=
10735 shlibpath_overrides_runpath=unknown
10736 version_type=none
10737 dynamic_linker="$host_os ld.so"
10738 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10739 need_lib_prefix=unknown
10740 hardcode_into_libs=no
10742 # when you set need_version to no, make sure it does not cause -set_version
10743 # flags to be left without arguments
10744 need_version=unknown
10746 case $host_os in
10747 aix3*)
10748 version_type=linux
10749 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10750 shlibpath_var=LIBPATH
10752 # AIX 3 has no versioning support, so we append a major version to the name.
10753 soname_spec='${libname}${release}${shared_ext}$major'
10756 aix[4-9]*)
10757 version_type=linux
10758 need_lib_prefix=no
10759 need_version=no
10760 hardcode_into_libs=yes
10761 if test "$host_cpu" = ia64; then
10762 # AIX 5 supports IA64
10763 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10764 shlibpath_var=LD_LIBRARY_PATH
10765 else
10766 # With GCC up to 2.95.x, collect2 would create an import file
10767 # for dependence libraries. The import file would start with
10768 # the line `#! .'. This would cause the generated library to
10769 # depend on `.', always an invalid library. This was fixed in
10770 # development snapshots of GCC prior to 3.0.
10771 case $host_os in
10772 aix4 | aix4.[01] | aix4.[01].*)
10773 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10774 echo ' yes '
10775 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10777 else
10778 can_build_shared=no
10781 esac
10782 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10783 # soname into executable. Probably we can add versioning support to
10784 # collect2, so additional links can be useful in future.
10785 if test "$aix_use_runtimelinking" = yes; then
10786 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10787 # instead of lib<name>.a to let people know that these are not
10788 # typical AIX shared libraries.
10789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10790 else
10791 # We preserve .a as extension for shared libraries through AIX4.2
10792 # and later when we are not doing run time linking.
10793 library_names_spec='${libname}${release}.a $libname.a'
10794 soname_spec='${libname}${release}${shared_ext}$major'
10796 shlibpath_var=LIBPATH
10800 amigaos*)
10801 case $host_cpu in
10802 powerpc)
10803 # Since July 2007 AmigaOS4 officially supports .so libraries.
10804 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10805 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10807 m68k)
10808 library_names_spec='$libname.ixlibrary $libname.a'
10809 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10810 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'
10812 esac
10815 beos*)
10816 library_names_spec='${libname}${shared_ext}'
10817 dynamic_linker="$host_os ld.so"
10818 shlibpath_var=LIBRARY_PATH
10821 bsdi[45]*)
10822 version_type=linux
10823 need_version=no
10824 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10825 soname_spec='${libname}${release}${shared_ext}$major'
10826 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10827 shlibpath_var=LD_LIBRARY_PATH
10828 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10829 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10830 # the default ld.so.conf also contains /usr/contrib/lib and
10831 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10832 # libtool to hard-code these into programs
10835 cygwin* | mingw* | pw32* | cegcc*)
10836 version_type=windows
10837 shrext_cmds=".dll"
10838 need_version=no
10839 need_lib_prefix=no
10841 case $GCC,$host_os in
10842 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10843 library_names_spec='$libname.dll.a'
10844 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10845 postinstall_cmds='base_file=`basename \${file}`~
10846 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10847 dldir=$destdir/`dirname \$dlpath`~
10848 test -d \$dldir || mkdir -p \$dldir~
10849 $install_prog $dir/$dlname \$dldir/$dlname~
10850 chmod a+x \$dldir/$dlname~
10851 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10852 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10854 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10855 dlpath=$dir/\$dldll~
10856 $RM \$dlpath'
10857 shlibpath_overrides_runpath=yes
10859 case $host_os in
10860 cygwin*)
10861 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10862 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10864 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10866 mingw* | cegcc*)
10867 # MinGW DLLs use traditional 'lib' prefix
10868 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10870 pw32*)
10871 # pw32 DLLs use 'pw' prefix rather than 'lib'
10872 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10874 esac
10878 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10880 esac
10881 dynamic_linker='Win32 ld.exe'
10882 # FIXME: first we should search . and the directory the executable is in
10883 shlibpath_var=PATH
10886 darwin* | rhapsody*)
10887 dynamic_linker="$host_os dyld"
10888 version_type=darwin
10889 need_lib_prefix=no
10890 need_version=no
10891 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10892 soname_spec='${libname}${release}${major}$shared_ext'
10893 shlibpath_overrides_runpath=yes
10894 shlibpath_var=DYLD_LIBRARY_PATH
10895 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10897 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10898 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10901 dgux*)
10902 version_type=linux
10903 need_lib_prefix=no
10904 need_version=no
10905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10906 soname_spec='${libname}${release}${shared_ext}$major'
10907 shlibpath_var=LD_LIBRARY_PATH
10910 freebsd* | dragonfly*)
10911 # DragonFly does not have aout. When/if they implement a new
10912 # versioning mechanism, adjust this.
10913 if test -x /usr/bin/objformat; then
10914 objformat=`/usr/bin/objformat`
10915 else
10916 case $host_os in
10917 freebsd[23].*) objformat=aout ;;
10918 *) objformat=elf ;;
10919 esac
10921 version_type=freebsd-$objformat
10922 case $version_type in
10923 freebsd-elf*)
10924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10925 need_version=no
10926 need_lib_prefix=no
10928 freebsd-*)
10929 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10930 need_version=yes
10932 esac
10933 shlibpath_var=LD_LIBRARY_PATH
10934 case $host_os in
10935 freebsd2.*)
10936 shlibpath_overrides_runpath=yes
10938 freebsd3.[01]* | freebsdelf3.[01]*)
10939 shlibpath_overrides_runpath=yes
10940 hardcode_into_libs=yes
10942 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10943 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10944 shlibpath_overrides_runpath=no
10945 hardcode_into_libs=yes
10947 *) # from 4.6 on, and DragonFly
10948 shlibpath_overrides_runpath=yes
10949 hardcode_into_libs=yes
10951 esac
10954 gnu*)
10955 version_type=linux
10956 need_lib_prefix=no
10957 need_version=no
10958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10959 soname_spec='${libname}${release}${shared_ext}$major'
10960 shlibpath_var=LD_LIBRARY_PATH
10961 hardcode_into_libs=yes
10964 haiku*)
10965 version_type=linux
10966 need_lib_prefix=no
10967 need_version=no
10968 dynamic_linker="$host_os runtime_loader"
10969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10970 soname_spec='${libname}${release}${shared_ext}$major'
10971 shlibpath_var=LIBRARY_PATH
10972 shlibpath_overrides_runpath=yes
10973 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10974 hardcode_into_libs=yes
10977 hpux9* | hpux10* | hpux11*)
10978 # Give a soname corresponding to the major version so that dld.sl refuses to
10979 # link against other versions.
10980 version_type=sunos
10981 need_lib_prefix=no
10982 need_version=no
10983 case $host_cpu in
10984 ia64*)
10985 shrext_cmds='.so'
10986 hardcode_into_libs=yes
10987 dynamic_linker="$host_os dld.so"
10988 shlibpath_var=LD_LIBRARY_PATH
10989 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10991 soname_spec='${libname}${release}${shared_ext}$major'
10992 if test "X$HPUX_IA64_MODE" = X32; then
10993 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10994 else
10995 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10997 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10999 hppa*64*)
11000 shrext_cmds='.sl'
11001 hardcode_into_libs=yes
11002 dynamic_linker="$host_os dld.sl"
11003 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11004 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11006 soname_spec='${libname}${release}${shared_ext}$major'
11007 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11008 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11011 shrext_cmds='.sl'
11012 dynamic_linker="$host_os dld.sl"
11013 shlibpath_var=SHLIB_PATH
11014 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11015 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11016 soname_spec='${libname}${release}${shared_ext}$major'
11018 esac
11019 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11020 postinstall_cmds='chmod 555 $lib'
11021 # or fails outright, so override atomically:
11022 install_override_mode=555
11025 interix[3-9]*)
11026 version_type=linux
11027 need_lib_prefix=no
11028 need_version=no
11029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11030 soname_spec='${libname}${release}${shared_ext}$major'
11031 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11032 shlibpath_var=LD_LIBRARY_PATH
11033 shlibpath_overrides_runpath=no
11034 hardcode_into_libs=yes
11037 irix5* | irix6* | nonstopux*)
11038 case $host_os in
11039 nonstopux*) version_type=nonstopux ;;
11041 if test "$lt_cv_prog_gnu_ld" = yes; then
11042 version_type=linux
11043 else
11044 version_type=irix
11045 fi ;;
11046 esac
11047 need_lib_prefix=no
11048 need_version=no
11049 soname_spec='${libname}${release}${shared_ext}$major'
11050 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11051 case $host_os in
11052 irix5* | nonstopux*)
11053 libsuff= shlibsuff=
11056 case $LD in # libtool.m4 will add one of these switches to LD
11057 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11058 libsuff= shlibsuff= libmagic=32-bit;;
11059 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11060 libsuff=32 shlibsuff=N32 libmagic=N32;;
11061 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11062 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11063 *) libsuff= shlibsuff= libmagic=never-match;;
11064 esac
11066 esac
11067 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11068 shlibpath_overrides_runpath=no
11069 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11070 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11071 hardcode_into_libs=yes
11074 # No shared lib support for Linux oldld, aout, or coff.
11075 linux*oldld* | linux*aout* | linux*coff*)
11076 dynamic_linker=no
11079 # This must be Linux ELF.
11080 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11081 version_type=linux
11082 need_lib_prefix=no
11083 need_version=no
11084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11085 soname_spec='${libname}${release}${shared_ext}$major'
11086 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11087 shlibpath_var=LD_LIBRARY_PATH
11088 shlibpath_overrides_runpath=no
11090 # Some binutils ld are patched to set DT_RUNPATH
11091 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11092 $as_echo_n "(cached) " >&6
11093 else
11094 lt_cv_shlibpath_overrides_runpath=no
11095 save_LDFLAGS=$LDFLAGS
11096 save_libdir=$libdir
11097 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11098 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11100 /* end confdefs.h. */
11103 main ()
11107 return 0;
11109 _ACEOF
11110 if ac_fn_c_try_link "$LINENO"; then :
11111 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11112 lt_cv_shlibpath_overrides_runpath=yes
11115 rm -f core conftest.err conftest.$ac_objext \
11116 conftest$ac_exeext conftest.$ac_ext
11117 LDFLAGS=$save_LDFLAGS
11118 libdir=$save_libdir
11122 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11124 # This implies no fast_install, which is unacceptable.
11125 # Some rework will be needed to allow for fast_install
11126 # before this can be enabled.
11127 hardcode_into_libs=yes
11129 # Append ld.so.conf contents to the search path
11130 if test -f /etc/ld.so.conf; then
11131 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' ' '`
11132 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11135 # We used to test for /lib/ld.so.1 and disable shared libraries on
11136 # powerpc, because MkLinux only supported shared libraries with the
11137 # GNU dynamic linker. Since this was broken with cross compilers,
11138 # most powerpc-linux boxes support dynamic linking these days and
11139 # people can always --disable-shared, the test was removed, and we
11140 # assume the GNU/Linux dynamic linker is in use.
11141 dynamic_linker='GNU/Linux ld.so'
11144 netbsd*)
11145 version_type=sunos
11146 need_lib_prefix=no
11147 need_version=no
11148 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11150 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11151 dynamic_linker='NetBSD (a.out) ld.so'
11152 else
11153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11154 soname_spec='${libname}${release}${shared_ext}$major'
11155 dynamic_linker='NetBSD ld.elf_so'
11157 shlibpath_var=LD_LIBRARY_PATH
11158 shlibpath_overrides_runpath=yes
11159 hardcode_into_libs=yes
11162 newsos6)
11163 version_type=linux
11164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11165 shlibpath_var=LD_LIBRARY_PATH
11166 shlibpath_overrides_runpath=yes
11169 *nto* | *qnx*)
11170 version_type=qnx
11171 need_lib_prefix=no
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 shlibpath_var=LD_LIBRARY_PATH
11176 shlibpath_overrides_runpath=no
11177 hardcode_into_libs=yes
11178 dynamic_linker='ldqnx.so'
11181 openbsd*)
11182 version_type=sunos
11183 sys_lib_dlsearch_path_spec="/usr/lib"
11184 need_lib_prefix=no
11185 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11186 case $host_os in
11187 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11188 *) need_version=no ;;
11189 esac
11190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11191 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11192 shlibpath_var=LD_LIBRARY_PATH
11193 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11194 case $host_os in
11195 openbsd2.[89] | openbsd2.[89].*)
11196 shlibpath_overrides_runpath=no
11199 shlibpath_overrides_runpath=yes
11201 esac
11202 else
11203 shlibpath_overrides_runpath=yes
11207 os2*)
11208 libname_spec='$name'
11209 shrext_cmds=".dll"
11210 need_lib_prefix=no
11211 library_names_spec='$libname${shared_ext} $libname.a'
11212 dynamic_linker='OS/2 ld.exe'
11213 shlibpath_var=LIBPATH
11216 osf3* | osf4* | osf5*)
11217 version_type=osf
11218 need_lib_prefix=no
11219 need_version=no
11220 soname_spec='${libname}${release}${shared_ext}$major'
11221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11222 shlibpath_var=LD_LIBRARY_PATH
11223 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11224 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11227 rdos*)
11228 dynamic_linker=no
11231 solaris*)
11232 version_type=linux
11233 need_lib_prefix=no
11234 need_version=no
11235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11236 soname_spec='${libname}${release}${shared_ext}$major'
11237 shlibpath_var=LD_LIBRARY_PATH
11238 shlibpath_overrides_runpath=yes
11239 hardcode_into_libs=yes
11240 # ldd complains unless libraries are executable
11241 postinstall_cmds='chmod +x $lib'
11244 sunos4*)
11245 version_type=sunos
11246 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11247 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11248 shlibpath_var=LD_LIBRARY_PATH
11249 shlibpath_overrides_runpath=yes
11250 if test "$with_gnu_ld" = yes; then
11251 need_lib_prefix=no
11253 need_version=yes
11256 sysv4 | sysv4.3*)
11257 version_type=linux
11258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11259 soname_spec='${libname}${release}${shared_ext}$major'
11260 shlibpath_var=LD_LIBRARY_PATH
11261 case $host_vendor in
11262 sni)
11263 shlibpath_overrides_runpath=no
11264 need_lib_prefix=no
11265 runpath_var=LD_RUN_PATH
11267 siemens)
11268 need_lib_prefix=no
11270 motorola)
11271 need_lib_prefix=no
11272 need_version=no
11273 shlibpath_overrides_runpath=no
11274 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11276 esac
11279 sysv4*MP*)
11280 if test -d /usr/nec ;then
11281 version_type=linux
11282 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11283 soname_spec='$libname${shared_ext}.$major'
11284 shlibpath_var=LD_LIBRARY_PATH
11288 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11289 version_type=freebsd-elf
11290 need_lib_prefix=no
11291 need_version=no
11292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11293 soname_spec='${libname}${release}${shared_ext}$major'
11294 shlibpath_var=LD_LIBRARY_PATH
11295 shlibpath_overrides_runpath=yes
11296 hardcode_into_libs=yes
11297 if test "$with_gnu_ld" = yes; then
11298 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11299 else
11300 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11301 case $host_os in
11302 sco3.2v5*)
11303 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11305 esac
11307 sys_lib_dlsearch_path_spec='/usr/lib'
11310 tpf*)
11311 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11312 version_type=linux
11313 need_lib_prefix=no
11314 need_version=no
11315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11316 shlibpath_var=LD_LIBRARY_PATH
11317 shlibpath_overrides_runpath=no
11318 hardcode_into_libs=yes
11321 uts4*)
11322 version_type=linux
11323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11324 soname_spec='${libname}${release}${shared_ext}$major'
11325 shlibpath_var=LD_LIBRARY_PATH
11329 dynamic_linker=no
11331 esac
11332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11333 $as_echo "$dynamic_linker" >&6; }
11334 test "$dynamic_linker" = no && can_build_shared=no
11336 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11337 if test "$GCC" = yes; then
11338 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11341 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11342 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11344 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11345 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11440 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11441 hardcode_action=
11442 if test -n "$hardcode_libdir_flag_spec" ||
11443 test -n "$runpath_var" ||
11444 test "X$hardcode_automatic" = "Xyes" ; then
11446 # We can hardcode non-existent directories.
11447 if test "$hardcode_direct" != no &&
11448 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11449 # have to relink, otherwise we might link with an installed library
11450 # when we should be linking with a yet-to-be-installed one
11451 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11452 test "$hardcode_minus_L" != no; then
11453 # Linking always hardcodes the temporary library directory.
11454 hardcode_action=relink
11455 else
11456 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11457 hardcode_action=immediate
11459 else
11460 # We cannot hardcode anything, or else we can only hardcode existing
11461 # directories.
11462 hardcode_action=unsupported
11464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11465 $as_echo "$hardcode_action" >&6; }
11467 if test "$hardcode_action" = relink ||
11468 test "$inherit_rpath" = yes; then
11469 # Fast installation is not supported
11470 enable_fast_install=no
11471 elif test "$shlibpath_overrides_runpath" = yes ||
11472 test "$enable_shared" = no; then
11473 # Fast installation is not necessary
11474 enable_fast_install=needless
11482 if test "x$enable_dlopen" != xyes; then
11483 enable_dlopen=unknown
11484 enable_dlopen_self=unknown
11485 enable_dlopen_self_static=unknown
11486 else
11487 lt_cv_dlopen=no
11488 lt_cv_dlopen_libs=
11490 case $host_os in
11491 beos*)
11492 lt_cv_dlopen="load_add_on"
11493 lt_cv_dlopen_libs=
11494 lt_cv_dlopen_self=yes
11497 mingw* | pw32* | cegcc*)
11498 lt_cv_dlopen="LoadLibrary"
11499 lt_cv_dlopen_libs=
11502 cygwin*)
11503 lt_cv_dlopen="dlopen"
11504 lt_cv_dlopen_libs=
11507 darwin*)
11508 # if libdl is installed we need to link against it
11509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11510 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11511 if ${ac_cv_lib_dl_dlopen+:} false; then :
11512 $as_echo_n "(cached) " >&6
11513 else
11514 ac_check_lib_save_LIBS=$LIBS
11515 LIBS="-ldl $LIBS"
11516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11517 /* end confdefs.h. */
11519 /* Override any GCC internal prototype to avoid an error.
11520 Use char because int might match the return type of a GCC
11521 builtin and then its argument prototype would still apply. */
11522 #ifdef __cplusplus
11523 extern "C"
11524 #endif
11525 char dlopen ();
11527 main ()
11529 return dlopen ();
11531 return 0;
11533 _ACEOF
11534 if ac_fn_c_try_link "$LINENO"; then :
11535 ac_cv_lib_dl_dlopen=yes
11536 else
11537 ac_cv_lib_dl_dlopen=no
11539 rm -f core conftest.err conftest.$ac_objext \
11540 conftest$ac_exeext conftest.$ac_ext
11541 LIBS=$ac_check_lib_save_LIBS
11543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11544 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11545 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11546 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11547 else
11549 lt_cv_dlopen="dyld"
11550 lt_cv_dlopen_libs=
11551 lt_cv_dlopen_self=yes
11558 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11559 if test "x$ac_cv_func_shl_load" = xyes; then :
11560 lt_cv_dlopen="shl_load"
11561 else
11562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11563 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11564 if ${ac_cv_lib_dld_shl_load+:} false; then :
11565 $as_echo_n "(cached) " >&6
11566 else
11567 ac_check_lib_save_LIBS=$LIBS
11568 LIBS="-ldld $LIBS"
11569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11570 /* end confdefs.h. */
11572 /* Override any GCC internal prototype to avoid an error.
11573 Use char because int might match the return type of a GCC
11574 builtin and then its argument prototype would still apply. */
11575 #ifdef __cplusplus
11576 extern "C"
11577 #endif
11578 char shl_load ();
11580 main ()
11582 return shl_load ();
11584 return 0;
11586 _ACEOF
11587 if ac_fn_c_try_link "$LINENO"; then :
11588 ac_cv_lib_dld_shl_load=yes
11589 else
11590 ac_cv_lib_dld_shl_load=no
11592 rm -f core conftest.err conftest.$ac_objext \
11593 conftest$ac_exeext conftest.$ac_ext
11594 LIBS=$ac_check_lib_save_LIBS
11596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11597 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11598 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11599 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11600 else
11601 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11602 if test "x$ac_cv_func_dlopen" = xyes; then :
11603 lt_cv_dlopen="dlopen"
11604 else
11605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11606 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11607 if ${ac_cv_lib_dl_dlopen+:} false; then :
11608 $as_echo_n "(cached) " >&6
11609 else
11610 ac_check_lib_save_LIBS=$LIBS
11611 LIBS="-ldl $LIBS"
11612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11613 /* end confdefs.h. */
11615 /* Override any GCC internal prototype to avoid an error.
11616 Use char because int might match the return type of a GCC
11617 builtin and then its argument prototype would still apply. */
11618 #ifdef __cplusplus
11619 extern "C"
11620 #endif
11621 char dlopen ();
11623 main ()
11625 return dlopen ();
11627 return 0;
11629 _ACEOF
11630 if ac_fn_c_try_link "$LINENO"; then :
11631 ac_cv_lib_dl_dlopen=yes
11632 else
11633 ac_cv_lib_dl_dlopen=no
11635 rm -f core conftest.err conftest.$ac_objext \
11636 conftest$ac_exeext conftest.$ac_ext
11637 LIBS=$ac_check_lib_save_LIBS
11639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11640 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11641 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11642 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11643 else
11644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11645 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11646 if ${ac_cv_lib_svld_dlopen+:} false; then :
11647 $as_echo_n "(cached) " >&6
11648 else
11649 ac_check_lib_save_LIBS=$LIBS
11650 LIBS="-lsvld $LIBS"
11651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11652 /* end confdefs.h. */
11654 /* Override any GCC internal prototype to avoid an error.
11655 Use char because int might match the return type of a GCC
11656 builtin and then its argument prototype would still apply. */
11657 #ifdef __cplusplus
11658 extern "C"
11659 #endif
11660 char dlopen ();
11662 main ()
11664 return dlopen ();
11666 return 0;
11668 _ACEOF
11669 if ac_fn_c_try_link "$LINENO"; then :
11670 ac_cv_lib_svld_dlopen=yes
11671 else
11672 ac_cv_lib_svld_dlopen=no
11674 rm -f core conftest.err conftest.$ac_objext \
11675 conftest$ac_exeext conftest.$ac_ext
11676 LIBS=$ac_check_lib_save_LIBS
11678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11679 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11680 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11681 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11682 else
11683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11684 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11685 if ${ac_cv_lib_dld_dld_link+:} false; then :
11686 $as_echo_n "(cached) " >&6
11687 else
11688 ac_check_lib_save_LIBS=$LIBS
11689 LIBS="-ldld $LIBS"
11690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11691 /* end confdefs.h. */
11693 /* Override any GCC internal prototype to avoid an error.
11694 Use char because int might match the return type of a GCC
11695 builtin and then its argument prototype would still apply. */
11696 #ifdef __cplusplus
11697 extern "C"
11698 #endif
11699 char dld_link ();
11701 main ()
11703 return dld_link ();
11705 return 0;
11707 _ACEOF
11708 if ac_fn_c_try_link "$LINENO"; then :
11709 ac_cv_lib_dld_dld_link=yes
11710 else
11711 ac_cv_lib_dld_dld_link=no
11713 rm -f core conftest.err conftest.$ac_objext \
11714 conftest$ac_exeext conftest.$ac_ext
11715 LIBS=$ac_check_lib_save_LIBS
11717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11718 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11719 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11720 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11739 esac
11741 if test "x$lt_cv_dlopen" != xno; then
11742 enable_dlopen=yes
11743 else
11744 enable_dlopen=no
11747 case $lt_cv_dlopen in
11748 dlopen)
11749 save_CPPFLAGS="$CPPFLAGS"
11750 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11752 save_LDFLAGS="$LDFLAGS"
11753 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11755 save_LIBS="$LIBS"
11756 LIBS="$lt_cv_dlopen_libs $LIBS"
11758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11759 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11760 if ${lt_cv_dlopen_self+:} false; then :
11761 $as_echo_n "(cached) " >&6
11762 else
11763 if test "$cross_compiling" = yes; then :
11764 lt_cv_dlopen_self=cross
11765 else
11766 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11767 lt_status=$lt_dlunknown
11768 cat > conftest.$ac_ext <<_LT_EOF
11769 #line 11769 "configure"
11770 #include "confdefs.h"
11772 #if HAVE_DLFCN_H
11773 #include <dlfcn.h>
11774 #endif
11776 #include <stdio.h>
11778 #ifdef RTLD_GLOBAL
11779 # define LT_DLGLOBAL RTLD_GLOBAL
11780 #else
11781 # ifdef DL_GLOBAL
11782 # define LT_DLGLOBAL DL_GLOBAL
11783 # else
11784 # define LT_DLGLOBAL 0
11785 # endif
11786 #endif
11788 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11789 find out it does not work in some platform. */
11790 #ifndef LT_DLLAZY_OR_NOW
11791 # ifdef RTLD_LAZY
11792 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11793 # else
11794 # ifdef DL_LAZY
11795 # define LT_DLLAZY_OR_NOW DL_LAZY
11796 # else
11797 # ifdef RTLD_NOW
11798 # define LT_DLLAZY_OR_NOW RTLD_NOW
11799 # else
11800 # ifdef DL_NOW
11801 # define LT_DLLAZY_OR_NOW DL_NOW
11802 # else
11803 # define LT_DLLAZY_OR_NOW 0
11804 # endif
11805 # endif
11806 # endif
11807 # endif
11808 #endif
11810 /* When -fvisbility=hidden is used, assume the code has been annotated
11811 correspondingly for the symbols needed. */
11812 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11813 void fnord () __attribute__((visibility("default")));
11814 #endif
11816 void fnord () { int i=42; }
11817 int main ()
11819 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11820 int status = $lt_dlunknown;
11822 if (self)
11824 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11825 else
11827 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11828 else puts (dlerror ());
11830 /* dlclose (self); */
11832 else
11833 puts (dlerror ());
11835 return status;
11837 _LT_EOF
11838 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11839 (eval $ac_link) 2>&5
11840 ac_status=$?
11841 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11842 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11843 (./conftest; exit; ) >&5 2>/dev/null
11844 lt_status=$?
11845 case x$lt_status in
11846 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11847 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11848 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11849 esac
11850 else :
11851 # compilation failed
11852 lt_cv_dlopen_self=no
11855 rm -fr conftest*
11859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11860 $as_echo "$lt_cv_dlopen_self" >&6; }
11862 if test "x$lt_cv_dlopen_self" = xyes; then
11863 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11865 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11866 if ${lt_cv_dlopen_self_static+:} false; then :
11867 $as_echo_n "(cached) " >&6
11868 else
11869 if test "$cross_compiling" = yes; then :
11870 lt_cv_dlopen_self_static=cross
11871 else
11872 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11873 lt_status=$lt_dlunknown
11874 cat > conftest.$ac_ext <<_LT_EOF
11875 #line 11875 "configure"
11876 #include "confdefs.h"
11878 #if HAVE_DLFCN_H
11879 #include <dlfcn.h>
11880 #endif
11882 #include <stdio.h>
11884 #ifdef RTLD_GLOBAL
11885 # define LT_DLGLOBAL RTLD_GLOBAL
11886 #else
11887 # ifdef DL_GLOBAL
11888 # define LT_DLGLOBAL DL_GLOBAL
11889 # else
11890 # define LT_DLGLOBAL 0
11891 # endif
11892 #endif
11894 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11895 find out it does not work in some platform. */
11896 #ifndef LT_DLLAZY_OR_NOW
11897 # ifdef RTLD_LAZY
11898 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11899 # else
11900 # ifdef DL_LAZY
11901 # define LT_DLLAZY_OR_NOW DL_LAZY
11902 # else
11903 # ifdef RTLD_NOW
11904 # define LT_DLLAZY_OR_NOW RTLD_NOW
11905 # else
11906 # ifdef DL_NOW
11907 # define LT_DLLAZY_OR_NOW DL_NOW
11908 # else
11909 # define LT_DLLAZY_OR_NOW 0
11910 # endif
11911 # endif
11912 # endif
11913 # endif
11914 #endif
11916 /* When -fvisbility=hidden is used, assume the code has been annotated
11917 correspondingly for the symbols needed. */
11918 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11919 void fnord () __attribute__((visibility("default")));
11920 #endif
11922 void fnord () { int i=42; }
11923 int main ()
11925 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11926 int status = $lt_dlunknown;
11928 if (self)
11930 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11931 else
11933 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11934 else puts (dlerror ());
11936 /* dlclose (self); */
11938 else
11939 puts (dlerror ());
11941 return status;
11943 _LT_EOF
11944 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11945 (eval $ac_link) 2>&5
11946 ac_status=$?
11947 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11948 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11949 (./conftest; exit; ) >&5 2>/dev/null
11950 lt_status=$?
11951 case x$lt_status in
11952 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11953 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11954 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11955 esac
11956 else :
11957 # compilation failed
11958 lt_cv_dlopen_self_static=no
11961 rm -fr conftest*
11965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11966 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11969 CPPFLAGS="$save_CPPFLAGS"
11970 LDFLAGS="$save_LDFLAGS"
11971 LIBS="$save_LIBS"
11973 esac
11975 case $lt_cv_dlopen_self in
11976 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11977 *) enable_dlopen_self=unknown ;;
11978 esac
11980 case $lt_cv_dlopen_self_static in
11981 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11982 *) enable_dlopen_self_static=unknown ;;
11983 esac
12002 striplib=
12003 old_striplib=
12004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12005 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12006 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12007 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12008 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12010 $as_echo "yes" >&6; }
12011 else
12012 # FIXME - insert some real tests, host_os isn't really good enough
12013 case $host_os in
12014 darwin*)
12015 if test -n "$STRIP" ; then
12016 striplib="$STRIP -x"
12017 old_striplib="$STRIP -S"
12018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12019 $as_echo "yes" >&6; }
12020 else
12021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12022 $as_echo "no" >&6; }
12026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12027 $as_echo "no" >&6; }
12029 esac
12043 # Report which library types will actually be built
12044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12045 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12047 $as_echo "$can_build_shared" >&6; }
12049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12050 $as_echo_n "checking whether to build shared libraries... " >&6; }
12051 test "$can_build_shared" = "no" && enable_shared=no
12053 # On AIX, shared libraries and static libraries use the same namespace, and
12054 # are all built from PIC.
12055 case $host_os in
12056 aix3*)
12057 test "$enable_shared" = yes && enable_static=no
12058 if test -n "$RANLIB"; then
12059 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12060 postinstall_cmds='$RANLIB $lib'
12064 aix[4-9]*)
12065 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12066 test "$enable_shared" = yes && enable_static=no
12069 esac
12070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12071 $as_echo "$enable_shared" >&6; }
12073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12074 $as_echo_n "checking whether to build static libraries... " >&6; }
12075 # Make sure either enable_shared or enable_static is yes.
12076 test "$enable_shared" = yes || enable_static=yes
12077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12078 $as_echo "$enable_static" >&6; }
12084 ac_ext=c
12085 ac_cpp='$CPP $CPPFLAGS'
12086 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12087 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12088 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12090 CC="$lt_save_CC"
12104 ac_config_commands="$ac_config_commands libtool"
12109 # Only expand once:
12115 case $host in
12116 *-cygwin* | *-mingw*)
12117 # 'host' will be top-level target in the case of a target lib,
12118 # we must compare to with_cross_host to decide if this is a native
12119 # or cross-compiler and select where to install dlls appropriately.
12120 if test -n "$with_cross_host" &&
12121 test x"$with_cross_host" != x"no"; then
12122 lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"';
12123 else
12124 lt_host_flags='-no-undefined -bindir "$(bindir)"';
12128 lt_host_flags=
12130 esac
12135 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
12136 case $ac_cv_c_int64_t in #(
12137 no|yes) ;; #(
12140 cat >>confdefs.h <<_ACEOF
12141 #define int64_t $ac_cv_c_int64_t
12142 _ACEOF
12144 esac
12146 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
12147 case $ac_cv_c_uint64_t in #(
12148 no|yes) ;; #(
12151 $as_echo "#define _UINT64_T 1" >>confdefs.h
12154 cat >>confdefs.h <<_ACEOF
12155 #define uint64_t $ac_cv_c_uint64_t
12156 _ACEOF
12158 esac
12160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
12161 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
12162 if ${ac_cv_header_sys_wait_h+:} false; then :
12163 $as_echo_n "(cached) " >&6
12164 else
12165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12166 /* end confdefs.h. */
12167 #include <sys/types.h>
12168 #include <sys/wait.h>
12169 #ifndef WEXITSTATUS
12170 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
12171 #endif
12172 #ifndef WIFEXITED
12173 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
12174 #endif
12177 main ()
12179 int s;
12180 wait (&s);
12181 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
12183 return 0;
12185 _ACEOF
12186 if ac_fn_c_try_compile "$LINENO"; then :
12187 ac_cv_header_sys_wait_h=yes
12188 else
12189 ac_cv_header_sys_wait_h=no
12191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
12194 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
12195 if test $ac_cv_header_sys_wait_h = yes; then
12197 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
12201 ac_config_files="$ac_config_files Makefile"
12203 ac_config_headers="$ac_config_headers config.h"
12205 cat >confcache <<\_ACEOF
12206 # This file is a shell script that caches the results of configure
12207 # tests run on this system so they can be shared between configure
12208 # scripts and configure runs, see configure's option --config-cache.
12209 # It is not useful on other systems. If it contains results you don't
12210 # want to keep, you may remove or edit it.
12212 # config.status only pays attention to the cache file if you give it
12213 # the --recheck option to rerun configure.
12215 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12216 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12217 # following values.
12219 _ACEOF
12221 # The following way of writing the cache mishandles newlines in values,
12222 # but we know of no workaround that is simple, portable, and efficient.
12223 # So, we kill variables containing newlines.
12224 # Ultrix sh set writes to stderr and can't be redirected directly,
12225 # and sets the high bit in the cache file unless we assign to the vars.
12227 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12228 eval ac_val=\$$ac_var
12229 case $ac_val in #(
12230 *${as_nl}*)
12231 case $ac_var in #(
12232 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12233 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12234 esac
12235 case $ac_var in #(
12236 _ | IFS | as_nl) ;; #(
12237 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12238 *) { eval $ac_var=; unset $ac_var;} ;;
12239 esac ;;
12240 esac
12241 done
12243 (set) 2>&1 |
12244 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12245 *${as_nl}ac_space=\ *)
12246 # `set' does not quote correctly, so add quotes: double-quote
12247 # substitution turns \\\\ into \\, and sed turns \\ into \.
12248 sed -n \
12249 "s/'/'\\\\''/g;
12250 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12251 ;; #(
12253 # `set' quotes correctly as required by POSIX, so do not add quotes.
12254 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12256 esac |
12257 sort
12259 sed '
12260 /^ac_cv_env_/b end
12261 t clear
12262 :clear
12263 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12264 t end
12265 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12266 :end' >>confcache
12267 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12268 if test -w "$cache_file"; then
12269 if test "x$cache_file" != "x/dev/null"; then
12270 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12271 $as_echo "$as_me: updating cache $cache_file" >&6;}
12272 if test ! -f "$cache_file" || test -h "$cache_file"; then
12273 cat confcache >"$cache_file"
12274 else
12275 case $cache_file in #(
12276 */* | ?:*)
12277 mv -f confcache "$cache_file"$$ &&
12278 mv -f "$cache_file"$$ "$cache_file" ;; #(
12280 mv -f confcache "$cache_file" ;;
12281 esac
12284 else
12285 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12286 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12289 rm -f confcache
12291 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12292 # Let make expand exec_prefix.
12293 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12295 DEFS=-DHAVE_CONFIG_H
12297 ac_libobjs=
12298 ac_ltlibobjs=
12300 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12301 # 1. Remove the extension, and $U if already installed.
12302 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12303 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12304 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12305 # will be set to the directory where LIBOBJS objects are built.
12306 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12307 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12308 done
12309 LIBOBJS=$ac_libobjs
12311 LTLIBOBJS=$ac_ltlibobjs
12314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
12315 $as_echo_n "checking that generated files are newer than configure... " >&6; }
12316 if test -n "$am_sleep_pid"; then
12317 # Hide warnings about reused PIDs.
12318 wait $am_sleep_pid 2>/dev/null
12320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
12321 $as_echo "done" >&6; }
12322 if test -n "$EXEEXT"; then
12323 am__EXEEXT_TRUE=
12324 am__EXEEXT_FALSE='#'
12325 else
12326 am__EXEEXT_TRUE='#'
12327 am__EXEEXT_FALSE=
12330 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12331 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
12332 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12334 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12335 as_fn_error $? "conditional \"AMDEP\" was never defined.
12336 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12338 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12339 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12340 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12342 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12343 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12344 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12347 : "${CONFIG_STATUS=./config.status}"
12348 ac_write_fail=0
12349 ac_clean_files_save=$ac_clean_files
12350 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12351 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12352 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12353 as_write_fail=0
12354 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12355 #! $SHELL
12356 # Generated by $as_me.
12357 # Run this file to recreate the current configuration.
12358 # Compiler output produced by configure, useful for debugging
12359 # configure, is in config.log if it exists.
12361 debug=false
12362 ac_cs_recheck=false
12363 ac_cs_silent=false
12365 SHELL=\${CONFIG_SHELL-$SHELL}
12366 export SHELL
12367 _ASEOF
12368 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12369 ## -------------------- ##
12370 ## M4sh Initialization. ##
12371 ## -------------------- ##
12373 # Be more Bourne compatible
12374 DUALCASE=1; export DUALCASE # for MKS sh
12375 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12376 emulate sh
12377 NULLCMD=:
12378 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12379 # is contrary to our usage. Disable this feature.
12380 alias -g '${1+"$@"}'='"$@"'
12381 setopt NO_GLOB_SUBST
12382 else
12383 case `(set -o) 2>/dev/null` in #(
12384 *posix*) :
12385 set -o posix ;; #(
12386 *) :
12388 esac
12392 as_nl='
12394 export as_nl
12395 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12396 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12397 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12398 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12399 # Prefer a ksh shell builtin over an external printf program on Solaris,
12400 # but without wasting forks for bash or zsh.
12401 if test -z "$BASH_VERSION$ZSH_VERSION" \
12402 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12403 as_echo='print -r --'
12404 as_echo_n='print -rn --'
12405 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12406 as_echo='printf %s\n'
12407 as_echo_n='printf %s'
12408 else
12409 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12410 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12411 as_echo_n='/usr/ucb/echo -n'
12412 else
12413 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12414 as_echo_n_body='eval
12415 arg=$1;
12416 case $arg in #(
12417 *"$as_nl"*)
12418 expr "X$arg" : "X\\(.*\\)$as_nl";
12419 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12420 esac;
12421 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12423 export as_echo_n_body
12424 as_echo_n='sh -c $as_echo_n_body as_echo'
12426 export as_echo_body
12427 as_echo='sh -c $as_echo_body as_echo'
12430 # The user is always right.
12431 if test "${PATH_SEPARATOR+set}" != set; then
12432 PATH_SEPARATOR=:
12433 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12434 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12435 PATH_SEPARATOR=';'
12440 # IFS
12441 # We need space, tab and new line, in precisely that order. Quoting is
12442 # there to prevent editors from complaining about space-tab.
12443 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12444 # splitting by setting IFS to empty value.)
12445 IFS=" "" $as_nl"
12447 # Find who we are. Look in the path if we contain no directory separator.
12448 as_myself=
12449 case $0 in #((
12450 *[\\/]* ) as_myself=$0 ;;
12451 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12452 for as_dir in $PATH
12454 IFS=$as_save_IFS
12455 test -z "$as_dir" && as_dir=.
12456 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12457 done
12458 IFS=$as_save_IFS
12461 esac
12462 # We did not find ourselves, most probably we were run as `sh COMMAND'
12463 # in which case we are not to be found in the path.
12464 if test "x$as_myself" = x; then
12465 as_myself=$0
12467 if test ! -f "$as_myself"; then
12468 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12469 exit 1
12472 # Unset variables that we do not need and which cause bugs (e.g. in
12473 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12474 # suppresses any "Segmentation fault" message there. '((' could
12475 # trigger a bug in pdksh 5.2.14.
12476 for as_var in BASH_ENV ENV MAIL MAILPATH
12477 do eval test x\${$as_var+set} = xset \
12478 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12479 done
12480 PS1='$ '
12481 PS2='> '
12482 PS4='+ '
12484 # NLS nuisances.
12485 LC_ALL=C
12486 export LC_ALL
12487 LANGUAGE=C
12488 export LANGUAGE
12490 # CDPATH.
12491 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12494 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12495 # ----------------------------------------
12496 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12497 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12498 # script with STATUS, using 1 if that was 0.
12499 as_fn_error ()
12501 as_status=$1; test $as_status -eq 0 && as_status=1
12502 if test "$4"; then
12503 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12504 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12506 $as_echo "$as_me: error: $2" >&2
12507 as_fn_exit $as_status
12508 } # as_fn_error
12511 # as_fn_set_status STATUS
12512 # -----------------------
12513 # Set $? to STATUS, without forking.
12514 as_fn_set_status ()
12516 return $1
12517 } # as_fn_set_status
12519 # as_fn_exit STATUS
12520 # -----------------
12521 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12522 as_fn_exit ()
12524 set +e
12525 as_fn_set_status $1
12526 exit $1
12527 } # as_fn_exit
12529 # as_fn_unset VAR
12530 # ---------------
12531 # Portably unset VAR.
12532 as_fn_unset ()
12534 { eval $1=; unset $1;}
12536 as_unset=as_fn_unset
12537 # as_fn_append VAR VALUE
12538 # ----------------------
12539 # Append the text in VALUE to the end of the definition contained in VAR. Take
12540 # advantage of any shell optimizations that allow amortized linear growth over
12541 # repeated appends, instead of the typical quadratic growth present in naive
12542 # implementations.
12543 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12544 eval 'as_fn_append ()
12546 eval $1+=\$2
12548 else
12549 as_fn_append ()
12551 eval $1=\$$1\$2
12553 fi # as_fn_append
12555 # as_fn_arith ARG...
12556 # ------------------
12557 # Perform arithmetic evaluation on the ARGs, and store the result in the
12558 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12559 # must be portable across $(()) and expr.
12560 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12561 eval 'as_fn_arith ()
12563 as_val=$(( $* ))
12565 else
12566 as_fn_arith ()
12568 as_val=`expr "$@" || test $? -eq 1`
12570 fi # as_fn_arith
12573 if expr a : '\(a\)' >/dev/null 2>&1 &&
12574 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12575 as_expr=expr
12576 else
12577 as_expr=false
12580 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12581 as_basename=basename
12582 else
12583 as_basename=false
12586 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12587 as_dirname=dirname
12588 else
12589 as_dirname=false
12592 as_me=`$as_basename -- "$0" ||
12593 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12594 X"$0" : 'X\(//\)$' \| \
12595 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12596 $as_echo X/"$0" |
12597 sed '/^.*\/\([^/][^/]*\)\/*$/{
12598 s//\1/
12601 /^X\/\(\/\/\)$/{
12602 s//\1/
12605 /^X\/\(\/\).*/{
12606 s//\1/
12609 s/.*/./; q'`
12611 # Avoid depending upon Character Ranges.
12612 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12613 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12614 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12615 as_cr_digits='0123456789'
12616 as_cr_alnum=$as_cr_Letters$as_cr_digits
12618 ECHO_C= ECHO_N= ECHO_T=
12619 case `echo -n x` in #(((((
12620 -n*)
12621 case `echo 'xy\c'` in
12622 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12623 xy) ECHO_C='\c';;
12624 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12625 ECHO_T=' ';;
12626 esac;;
12628 ECHO_N='-n';;
12629 esac
12631 rm -f conf$$ conf$$.exe conf$$.file
12632 if test -d conf$$.dir; then
12633 rm -f conf$$.dir/conf$$.file
12634 else
12635 rm -f conf$$.dir
12636 mkdir conf$$.dir 2>/dev/null
12638 if (echo >conf$$.file) 2>/dev/null; then
12639 if ln -s conf$$.file conf$$ 2>/dev/null; then
12640 as_ln_s='ln -s'
12641 # ... but there are two gotchas:
12642 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12643 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12644 # In both cases, we have to default to `cp -pR'.
12645 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12646 as_ln_s='cp -pR'
12647 elif ln conf$$.file conf$$ 2>/dev/null; then
12648 as_ln_s=ln
12649 else
12650 as_ln_s='cp -pR'
12652 else
12653 as_ln_s='cp -pR'
12655 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12656 rmdir conf$$.dir 2>/dev/null
12659 # as_fn_mkdir_p
12660 # -------------
12661 # Create "$as_dir" as a directory, including parents if necessary.
12662 as_fn_mkdir_p ()
12665 case $as_dir in #(
12666 -*) as_dir=./$as_dir;;
12667 esac
12668 test -d "$as_dir" || eval $as_mkdir_p || {
12669 as_dirs=
12670 while :; do
12671 case $as_dir in #(
12672 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12673 *) as_qdir=$as_dir;;
12674 esac
12675 as_dirs="'$as_qdir' $as_dirs"
12676 as_dir=`$as_dirname -- "$as_dir" ||
12677 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12678 X"$as_dir" : 'X\(//\)[^/]' \| \
12679 X"$as_dir" : 'X\(//\)$' \| \
12680 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12681 $as_echo X"$as_dir" |
12682 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12683 s//\1/
12686 /^X\(\/\/\)[^/].*/{
12687 s//\1/
12690 /^X\(\/\/\)$/{
12691 s//\1/
12694 /^X\(\/\).*/{
12695 s//\1/
12698 s/.*/./; q'`
12699 test -d "$as_dir" && break
12700 done
12701 test -z "$as_dirs" || eval "mkdir $as_dirs"
12702 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12705 } # as_fn_mkdir_p
12706 if mkdir -p . 2>/dev/null; then
12707 as_mkdir_p='mkdir -p "$as_dir"'
12708 else
12709 test -d ./-p && rmdir ./-p
12710 as_mkdir_p=false
12714 # as_fn_executable_p FILE
12715 # -----------------------
12716 # Test if FILE is an executable regular file.
12717 as_fn_executable_p ()
12719 test -f "$1" && test -x "$1"
12720 } # as_fn_executable_p
12721 as_test_x='test -x'
12722 as_executable_p=as_fn_executable_p
12724 # Sed expression to map a string onto a valid CPP name.
12725 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12727 # Sed expression to map a string onto a valid variable name.
12728 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12731 exec 6>&1
12732 ## ----------------------------------- ##
12733 ## Main body of $CONFIG_STATUS script. ##
12734 ## ----------------------------------- ##
12735 _ASEOF
12736 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12738 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12739 # Save the log message, to keep $0 and so on meaningful, and to
12740 # report actual input values of CONFIG_FILES etc. instead of their
12741 # values after options handling.
12742 ac_log="
12743 This file was extended by LTO plugin for ld $as_me 0.1, which was
12744 generated by GNU Autoconf 2.69. Invocation command line was
12746 CONFIG_FILES = $CONFIG_FILES
12747 CONFIG_HEADERS = $CONFIG_HEADERS
12748 CONFIG_LINKS = $CONFIG_LINKS
12749 CONFIG_COMMANDS = $CONFIG_COMMANDS
12750 $ $0 $@
12752 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12755 _ACEOF
12757 case $ac_config_files in *"
12758 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12759 esac
12761 case $ac_config_headers in *"
12762 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12763 esac
12766 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12767 # Files that config.status was made for.
12768 config_files="$ac_config_files"
12769 config_headers="$ac_config_headers"
12770 config_commands="$ac_config_commands"
12772 _ACEOF
12774 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12775 ac_cs_usage="\
12776 \`$as_me' instantiates files and other configuration actions
12777 from templates according to the current configuration. Unless the files
12778 and actions are specified as TAGs, all are instantiated by default.
12780 Usage: $0 [OPTION]... [TAG]...
12782 -h, --help print this help, then exit
12783 -V, --version print version number and configuration settings, then exit
12784 --config print configuration, then exit
12785 -q, --quiet, --silent
12786 do not print progress messages
12787 -d, --debug don't remove temporary files
12788 --recheck update $as_me by reconfiguring in the same conditions
12789 --file=FILE[:TEMPLATE]
12790 instantiate the configuration file FILE
12791 --header=FILE[:TEMPLATE]
12792 instantiate the configuration header FILE
12794 Configuration files:
12795 $config_files
12797 Configuration headers:
12798 $config_headers
12800 Configuration commands:
12801 $config_commands
12803 Report bugs to the package provider."
12805 _ACEOF
12806 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12807 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12808 ac_cs_version="\\
12809 LTO plugin for ld config.status 0.1
12810 configured by $0, generated by GNU Autoconf 2.69,
12811 with options \\"\$ac_cs_config\\"
12813 Copyright (C) 2012 Free Software Foundation, Inc.
12814 This config.status script is free software; the Free Software Foundation
12815 gives unlimited permission to copy, distribute and modify it."
12817 ac_pwd='$ac_pwd'
12818 srcdir='$srcdir'
12819 INSTALL='$INSTALL'
12820 MKDIR_P='$MKDIR_P'
12821 AWK='$AWK'
12822 test -n "\$AWK" || AWK=awk
12823 _ACEOF
12825 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12826 # The default lists apply if the user does not specify any file.
12827 ac_need_defaults=:
12828 while test $# != 0
12830 case $1 in
12831 --*=?*)
12832 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12833 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12834 ac_shift=:
12836 --*=)
12837 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12838 ac_optarg=
12839 ac_shift=:
12842 ac_option=$1
12843 ac_optarg=$2
12844 ac_shift=shift
12846 esac
12848 case $ac_option in
12849 # Handling of the options.
12850 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12851 ac_cs_recheck=: ;;
12852 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12853 $as_echo "$ac_cs_version"; exit ;;
12854 --config | --confi | --conf | --con | --co | --c )
12855 $as_echo "$ac_cs_config"; exit ;;
12856 --debug | --debu | --deb | --de | --d | -d )
12857 debug=: ;;
12858 --file | --fil | --fi | --f )
12859 $ac_shift
12860 case $ac_optarg in
12861 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12862 '') as_fn_error $? "missing file argument" ;;
12863 esac
12864 as_fn_append CONFIG_FILES " '$ac_optarg'"
12865 ac_need_defaults=false;;
12866 --header | --heade | --head | --hea )
12867 $ac_shift
12868 case $ac_optarg in
12869 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12870 esac
12871 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12872 ac_need_defaults=false;;
12873 --he | --h)
12874 # Conflict between --help and --header
12875 as_fn_error $? "ambiguous option: \`$1'
12876 Try \`$0 --help' for more information.";;
12877 --help | --hel | -h )
12878 $as_echo "$ac_cs_usage"; exit ;;
12879 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12880 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12881 ac_cs_silent=: ;;
12883 # This is an error.
12884 -*) as_fn_error $? "unrecognized option: \`$1'
12885 Try \`$0 --help' for more information." ;;
12887 *) as_fn_append ac_config_targets " $1"
12888 ac_need_defaults=false ;;
12890 esac
12891 shift
12892 done
12894 ac_configure_extra_args=
12896 if $ac_cs_silent; then
12897 exec 6>/dev/null
12898 ac_configure_extra_args="$ac_configure_extra_args --silent"
12901 _ACEOF
12902 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12903 if \$ac_cs_recheck; then
12904 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12905 shift
12906 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12907 CONFIG_SHELL='$SHELL'
12908 export CONFIG_SHELL
12909 exec "\$@"
12912 _ACEOF
12913 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12914 exec 5>>config.log
12916 echo
12917 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12918 ## Running $as_me. ##
12919 _ASBOX
12920 $as_echo "$ac_log"
12921 } >&5
12923 _ACEOF
12924 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12926 # INIT-COMMANDS
12928 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12931 # The HP-UX ksh and POSIX shell print the target directory to stdout
12932 # if CDPATH is set.
12933 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12935 sed_quote_subst='$sed_quote_subst'
12936 double_quote_subst='$double_quote_subst'
12937 delay_variable_subst='$delay_variable_subst'
12938 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
12939 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
12940 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
12941 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
12942 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
12943 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
12944 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
12945 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
12946 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
12947 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
12948 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
12949 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
12950 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
12951 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
12952 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
12953 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
12954 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
12955 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
12956 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
12957 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
12958 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
12959 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
12960 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
12961 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
12962 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
12963 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
12964 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
12965 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
12966 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
12967 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
12968 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
12969 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
12970 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
12971 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
12972 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
12973 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
12974 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
12975 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12976 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12977 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
12978 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
12979 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
12980 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
12981 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
12982 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
12983 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
12984 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
12985 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
12986 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"`'
12987 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
12988 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
12989 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
12990 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
12991 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
12992 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
12993 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
12994 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
12995 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
12996 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
12997 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
12998 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
12999 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13000 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13001 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13002 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13003 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13004 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13005 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13006 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13007 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13008 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13009 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13010 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13011 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13012 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13013 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13014 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13015 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13016 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13017 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13018 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
13019 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13020 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13021 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13022 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13023 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13024 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13025 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13026 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13027 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
13028 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13029 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13030 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13031 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13032 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13033 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13034 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13035 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13036 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13037 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13038 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13039 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13040 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13041 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13042 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13043 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13044 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13045 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13046 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13047 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13048 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13049 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13050 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13051 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13052 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13053 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13054 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13055 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13056 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13057 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13059 LTCC='$LTCC'
13060 LTCFLAGS='$LTCFLAGS'
13061 compiler='$compiler_DEFAULT'
13063 # A function that is used when there is no print builtin or printf.
13064 func_fallback_echo ()
13066 eval 'cat <<_LTECHO_EOF
13068 _LTECHO_EOF'
13071 # Quote evaled strings.
13072 for var in SHELL \
13073 ECHO \
13074 SED \
13075 GREP \
13076 EGREP \
13077 FGREP \
13078 LD \
13079 NM \
13080 LN_S \
13081 lt_SP2NL \
13082 lt_NL2SP \
13083 reload_flag \
13084 OBJDUMP \
13085 deplibs_check_method \
13086 file_magic_cmd \
13087 AR \
13088 AR_FLAGS \
13089 STRIP \
13090 RANLIB \
13091 CC \
13092 CFLAGS \
13093 compiler \
13094 lt_cv_sys_global_symbol_pipe \
13095 lt_cv_sys_global_symbol_to_cdecl \
13096 lt_cv_sys_global_symbol_to_c_name_address \
13097 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13098 lt_prog_compiler_no_builtin_flag \
13099 lt_prog_compiler_wl \
13100 lt_prog_compiler_pic \
13101 lt_prog_compiler_static \
13102 lt_cv_prog_compiler_c_o \
13103 need_locks \
13104 DSYMUTIL \
13105 NMEDIT \
13106 LIPO \
13107 OTOOL \
13108 OTOOL64 \
13109 shrext_cmds \
13110 export_dynamic_flag_spec \
13111 whole_archive_flag_spec \
13112 compiler_needs_object \
13113 with_gnu_ld \
13114 allow_undefined_flag \
13115 no_undefined_flag \
13116 hardcode_libdir_flag_spec \
13117 hardcode_libdir_flag_spec_ld \
13118 hardcode_libdir_separator \
13119 fix_srcfile_path \
13120 exclude_expsyms \
13121 include_expsyms \
13122 file_list_spec \
13123 variables_saved_for_relink \
13124 libname_spec \
13125 library_names_spec \
13126 soname_spec \
13127 install_override_mode \
13128 finish_eval \
13129 old_striplib \
13130 striplib; do
13131 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13132 *[\\\\\\\`\\"\\\$]*)
13133 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13136 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13138 esac
13139 done
13141 # Double-quote double-evaled strings.
13142 for var in reload_cmds \
13143 old_postinstall_cmds \
13144 old_postuninstall_cmds \
13145 old_archive_cmds \
13146 extract_expsyms_cmds \
13147 old_archive_from_new_cmds \
13148 old_archive_from_expsyms_cmds \
13149 archive_cmds \
13150 archive_expsym_cmds \
13151 module_cmds \
13152 module_expsym_cmds \
13153 export_symbols_cmds \
13154 prelink_cmds \
13155 postinstall_cmds \
13156 postuninstall_cmds \
13157 finish_cmds \
13158 sys_lib_search_path_spec \
13159 sys_lib_dlsearch_path_spec; do
13160 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13161 *[\\\\\\\`\\"\\\$]*)
13162 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13165 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13167 esac
13168 done
13170 ac_aux_dir='$ac_aux_dir'
13171 xsi_shell='$xsi_shell'
13172 lt_shell_append='$lt_shell_append'
13174 # See if we are running on zsh, and set the options which allow our
13175 # commands through without removal of \ escapes INIT.
13176 if test -n "\${ZSH_VERSION+set}" ; then
13177 setopt NO_GLOB_SUBST
13181 PACKAGE='$PACKAGE'
13182 VERSION='$VERSION'
13183 TIMESTAMP='$TIMESTAMP'
13184 RM='$RM'
13185 ofile='$ofile'
13190 _ACEOF
13192 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13194 # Handling of arguments.
13195 for ac_config_target in $ac_config_targets
13197 case $ac_config_target in
13198 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13199 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13200 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13201 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13203 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13204 esac
13205 done
13208 # If the user did not use the arguments to specify the items to instantiate,
13209 # then the envvar interface is used. Set only those that are not.
13210 # We use the long form for the default assignment because of an extremely
13211 # bizarre bug on SunOS 4.1.3.
13212 if $ac_need_defaults; then
13213 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13214 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13215 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13218 # Have a temporary directory for convenience. Make it in the build tree
13219 # simply because there is no reason against having it here, and in addition,
13220 # creating and moving files from /tmp can sometimes cause problems.
13221 # Hook for its removal unless debugging.
13222 # Note that there is a small window in which the directory will not be cleaned:
13223 # after its creation but before its name has been assigned to `$tmp'.
13224 $debug ||
13226 tmp= ac_tmp=
13227 trap 'exit_status=$?
13228 : "${ac_tmp:=$tmp}"
13229 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13231 trap 'as_fn_exit 1' 1 2 13 15
13233 # Create a (secure) tmp directory for tmp files.
13236 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13237 test -d "$tmp"
13238 } ||
13240 tmp=./conf$$-$RANDOM
13241 (umask 077 && mkdir "$tmp")
13242 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13243 ac_tmp=$tmp
13245 # Set up the scripts for CONFIG_FILES section.
13246 # No need to generate them if there are no CONFIG_FILES.
13247 # This happens for instance with `./config.status config.h'.
13248 if test -n "$CONFIG_FILES"; then
13251 ac_cr=`echo X | tr X '\015'`
13252 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13253 # But we know of no other shell where ac_cr would be empty at this
13254 # point, so we can use a bashism as a fallback.
13255 if test "x$ac_cr" = x; then
13256 eval ac_cr=\$\'\\r\'
13258 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13259 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13260 ac_cs_awk_cr='\\r'
13261 else
13262 ac_cs_awk_cr=$ac_cr
13265 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13266 _ACEOF
13270 echo "cat >conf$$subs.awk <<_ACEOF" &&
13271 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13272 echo "_ACEOF"
13273 } >conf$$subs.sh ||
13274 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13275 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13276 ac_delim='%!_!# '
13277 for ac_last_try in false false false false false :; do
13278 . ./conf$$subs.sh ||
13279 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13281 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13282 if test $ac_delim_n = $ac_delim_num; then
13283 break
13284 elif $ac_last_try; then
13285 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13286 else
13287 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13289 done
13290 rm -f conf$$subs.sh
13292 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13293 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13294 _ACEOF
13295 sed -n '
13297 s/^/S["/; s/!.*/"]=/
13300 s/^[^!]*!//
13301 :repl
13302 t repl
13303 s/'"$ac_delim"'$//
13304 t delim
13307 s/\(.\{148\}\)..*/\1/
13308 t more1
13309 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13312 b repl
13313 :more1
13314 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13317 s/.\{148\}//
13318 t nl
13319 :delim
13321 s/\(.\{148\}\)..*/\1/
13322 t more2
13323 s/["\\]/\\&/g; s/^/"/; s/$/"/
13326 :more2
13327 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13330 s/.\{148\}//
13331 t delim
13332 ' <conf$$subs.awk | sed '
13333 /^[^""]/{
13335 s/\n//
13337 ' >>$CONFIG_STATUS || ac_write_fail=1
13338 rm -f conf$$subs.awk
13339 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13340 _ACAWK
13341 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13342 for (key in S) S_is_set[key] = 1
13343 FS = "\a"
13347 line = $ 0
13348 nfields = split(line, field, "@")
13349 substed = 0
13350 len = length(field[1])
13351 for (i = 2; i < nfields; i++) {
13352 key = field[i]
13353 keylen = length(key)
13354 if (S_is_set[key]) {
13355 value = S[key]
13356 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13357 len += length(value) + length(field[++i])
13358 substed = 1
13359 } else
13360 len += 1 + keylen
13363 print line
13366 _ACAWK
13367 _ACEOF
13368 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13369 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13370 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13371 else
13373 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13374 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13375 _ACEOF
13377 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13378 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13379 # trailing colons and then remove the whole line if VPATH becomes empty
13380 # (actually we leave an empty line to preserve line numbers).
13381 if test "x$srcdir" = x.; then
13382 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13384 s///
13385 s/^/:/
13386 s/[ ]*$/:/
13387 s/:\$(srcdir):/:/g
13388 s/:\${srcdir}:/:/g
13389 s/:@srcdir@:/:/g
13390 s/^:*//
13391 s/:*$//
13393 s/\(=[ ]*\).*/\1/
13395 s/\n//
13396 s/^[^=]*=[ ]*$//
13400 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13401 fi # test -n "$CONFIG_FILES"
13403 # Set up the scripts for CONFIG_HEADERS section.
13404 # No need to generate them if there are no CONFIG_HEADERS.
13405 # This happens for instance with `./config.status Makefile'.
13406 if test -n "$CONFIG_HEADERS"; then
13407 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13408 BEGIN {
13409 _ACEOF
13411 # Transform confdefs.h into an awk script `defines.awk', embedded as
13412 # here-document in config.status, that substitutes the proper values into
13413 # config.h.in to produce config.h.
13415 # Create a delimiter string that does not exist in confdefs.h, to ease
13416 # handling of long lines.
13417 ac_delim='%!_!# '
13418 for ac_last_try in false false :; do
13419 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13420 if test -z "$ac_tt"; then
13421 break
13422 elif $ac_last_try; then
13423 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13424 else
13425 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13427 done
13429 # For the awk script, D is an array of macro values keyed by name,
13430 # likewise P contains macro parameters if any. Preserve backslash
13431 # newline sequences.
13433 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13434 sed -n '
13435 s/.\{148\}/&'"$ac_delim"'/g
13436 t rset
13437 :rset
13438 s/^[ ]*#[ ]*define[ ][ ]*/ /
13439 t def
13441 :def
13442 s/\\$//
13443 t bsnl
13444 s/["\\]/\\&/g
13445 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13446 D["\1"]=" \3"/p
13447 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13449 :bsnl
13450 s/["\\]/\\&/g
13451 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13452 D["\1"]=" \3\\\\\\n"\\/p
13453 t cont
13454 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13455 t cont
13457 :cont
13459 s/.\{148\}/&'"$ac_delim"'/g
13460 t clear
13461 :clear
13462 s/\\$//
13463 t bsnlc
13464 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13466 :bsnlc
13467 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13468 b cont
13469 ' <confdefs.h | sed '
13470 s/'"$ac_delim"'/"\\\
13471 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13473 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13474 for (key in D) D_is_set[key] = 1
13475 FS = "\a"
13477 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13478 line = \$ 0
13479 split(line, arg, " ")
13480 if (arg[1] == "#") {
13481 defundef = arg[2]
13482 mac1 = arg[3]
13483 } else {
13484 defundef = substr(arg[1], 2)
13485 mac1 = arg[2]
13487 split(mac1, mac2, "(") #)
13488 macro = mac2[1]
13489 prefix = substr(line, 1, index(line, defundef) - 1)
13490 if (D_is_set[macro]) {
13491 # Preserve the white space surrounding the "#".
13492 print prefix "define", macro P[macro] D[macro]
13493 next
13494 } else {
13495 # Replace #undef with comments. This is necessary, for example,
13496 # in the case of _POSIX_SOURCE, which is predefined and required
13497 # on some systems where configure will not decide to define it.
13498 if (defundef == "undef") {
13499 print "/*", prefix defundef, macro, "*/"
13500 next
13504 { print }
13505 _ACAWK
13506 _ACEOF
13507 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13508 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13509 fi # test -n "$CONFIG_HEADERS"
13512 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13513 shift
13514 for ac_tag
13516 case $ac_tag in
13517 :[FHLC]) ac_mode=$ac_tag; continue;;
13518 esac
13519 case $ac_mode$ac_tag in
13520 :[FHL]*:*);;
13521 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13522 :[FH]-) ac_tag=-:-;;
13523 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13524 esac
13525 ac_save_IFS=$IFS
13526 IFS=:
13527 set x $ac_tag
13528 IFS=$ac_save_IFS
13529 shift
13530 ac_file=$1
13531 shift
13533 case $ac_mode in
13534 :L) ac_source=$1;;
13535 :[FH])
13536 ac_file_inputs=
13537 for ac_f
13539 case $ac_f in
13540 -) ac_f="$ac_tmp/stdin";;
13541 *) # Look for the file first in the build tree, then in the source tree
13542 # (if the path is not absolute). The absolute path cannot be DOS-style,
13543 # because $ac_f cannot contain `:'.
13544 test -f "$ac_f" ||
13545 case $ac_f in
13546 [\\/$]*) false;;
13547 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13548 esac ||
13549 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13550 esac
13551 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13552 as_fn_append ac_file_inputs " '$ac_f'"
13553 done
13555 # Let's still pretend it is `configure' which instantiates (i.e., don't
13556 # use $as_me), people would be surprised to read:
13557 # /* config.h. Generated by config.status. */
13558 configure_input='Generated from '`
13559 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13560 `' by configure.'
13561 if test x"$ac_file" != x-; then
13562 configure_input="$ac_file. $configure_input"
13563 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13564 $as_echo "$as_me: creating $ac_file" >&6;}
13566 # Neutralize special characters interpreted by sed in replacement strings.
13567 case $configure_input in #(
13568 *\&* | *\|* | *\\* )
13569 ac_sed_conf_input=`$as_echo "$configure_input" |
13570 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13571 *) ac_sed_conf_input=$configure_input;;
13572 esac
13574 case $ac_tag in
13575 *:-:* | *:-) cat >"$ac_tmp/stdin" \
13576 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13577 esac
13579 esac
13581 ac_dir=`$as_dirname -- "$ac_file" ||
13582 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13583 X"$ac_file" : 'X\(//\)[^/]' \| \
13584 X"$ac_file" : 'X\(//\)$' \| \
13585 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13586 $as_echo X"$ac_file" |
13587 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13588 s//\1/
13591 /^X\(\/\/\)[^/].*/{
13592 s//\1/
13595 /^X\(\/\/\)$/{
13596 s//\1/
13599 /^X\(\/\).*/{
13600 s//\1/
13603 s/.*/./; q'`
13604 as_dir="$ac_dir"; as_fn_mkdir_p
13605 ac_builddir=.
13607 case "$ac_dir" in
13608 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13610 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13611 # A ".." for each directory in $ac_dir_suffix.
13612 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13613 case $ac_top_builddir_sub in
13614 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13615 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13616 esac ;;
13617 esac
13618 ac_abs_top_builddir=$ac_pwd
13619 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13620 # for backward compatibility:
13621 ac_top_builddir=$ac_top_build_prefix
13623 case $srcdir in
13624 .) # We are building in place.
13625 ac_srcdir=.
13626 ac_top_srcdir=$ac_top_builddir_sub
13627 ac_abs_top_srcdir=$ac_pwd ;;
13628 [\\/]* | ?:[\\/]* ) # Absolute name.
13629 ac_srcdir=$srcdir$ac_dir_suffix;
13630 ac_top_srcdir=$srcdir
13631 ac_abs_top_srcdir=$srcdir ;;
13632 *) # Relative name.
13633 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13634 ac_top_srcdir=$ac_top_build_prefix$srcdir
13635 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13636 esac
13637 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13640 case $ac_mode in
13643 # CONFIG_FILE
13646 case $INSTALL in
13647 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13648 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13649 esac
13650 ac_MKDIR_P=$MKDIR_P
13651 case $MKDIR_P in
13652 [\\/$]* | ?:[\\/]* ) ;;
13653 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13654 esac
13655 _ACEOF
13657 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13658 # If the template does not know about datarootdir, expand it.
13659 # FIXME: This hack should be removed a few years after 2.60.
13660 ac_datarootdir_hack=; ac_datarootdir_seen=
13661 ac_sed_dataroot='
13662 /datarootdir/ {
13666 /@datadir@/p
13667 /@docdir@/p
13668 /@infodir@/p
13669 /@localedir@/p
13670 /@mandir@/p'
13671 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13672 *datarootdir*) ac_datarootdir_seen=yes;;
13673 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13674 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13675 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13676 _ACEOF
13677 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13678 ac_datarootdir_hack='
13679 s&@datadir@&$datadir&g
13680 s&@docdir@&$docdir&g
13681 s&@infodir@&$infodir&g
13682 s&@localedir@&$localedir&g
13683 s&@mandir@&$mandir&g
13684 s&\\\${datarootdir}&$datarootdir&g' ;;
13685 esac
13686 _ACEOF
13688 # Neutralize VPATH when `$srcdir' = `.'.
13689 # Shell code in configure.ac might set extrasub.
13690 # FIXME: do we really want to maintain this feature?
13691 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13692 ac_sed_extra="$ac_vpsub
13693 $extrasub
13694 _ACEOF
13695 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13697 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13698 s|@configure_input@|$ac_sed_conf_input|;t t
13699 s&@top_builddir@&$ac_top_builddir_sub&;t t
13700 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13701 s&@srcdir@&$ac_srcdir&;t t
13702 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13703 s&@top_srcdir@&$ac_top_srcdir&;t t
13704 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13705 s&@builddir@&$ac_builddir&;t t
13706 s&@abs_builddir@&$ac_abs_builddir&;t t
13707 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13708 s&@INSTALL@&$ac_INSTALL&;t t
13709 s&@MKDIR_P@&$ac_MKDIR_P&;t t
13710 $ac_datarootdir_hack
13712 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13713 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13715 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13716 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13717 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
13718 "$ac_tmp/out"`; test -z "$ac_out"; } &&
13719 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13720 which seems to be undefined. Please make sure it is defined" >&5
13721 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13722 which seems to be undefined. Please make sure it is defined" >&2;}
13724 rm -f "$ac_tmp/stdin"
13725 case $ac_file in
13726 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13727 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13728 esac \
13729 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13733 # CONFIG_HEADER
13735 if test x"$ac_file" != x-; then
13737 $as_echo "/* $configure_input */" \
13738 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13739 } >"$ac_tmp/config.h" \
13740 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13741 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13742 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13743 $as_echo "$as_me: $ac_file is unchanged" >&6;}
13744 else
13745 rm -f "$ac_file"
13746 mv "$ac_tmp/config.h" "$ac_file" \
13747 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13749 else
13750 $as_echo "/* $configure_input */" \
13751 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13752 || as_fn_error $? "could not create -" "$LINENO" 5
13754 # Compute "$ac_file"'s index in $config_headers.
13755 _am_arg="$ac_file"
13756 _am_stamp_count=1
13757 for _am_header in $config_headers :; do
13758 case $_am_header in
13759 $_am_arg | $_am_arg:* )
13760 break ;;
13762 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13763 esac
13764 done
13765 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13766 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13767 X"$_am_arg" : 'X\(//\)[^/]' \| \
13768 X"$_am_arg" : 'X\(//\)$' \| \
13769 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13770 $as_echo X"$_am_arg" |
13771 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13772 s//\1/
13775 /^X\(\/\/\)[^/].*/{
13776 s//\1/
13779 /^X\(\/\/\)$/{
13780 s//\1/
13783 /^X\(\/\).*/{
13784 s//\1/
13787 s/.*/./; q'`/stamp-h$_am_stamp_count
13790 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13791 $as_echo "$as_me: executing $ac_file commands" >&6;}
13793 esac
13796 case $ac_file$ac_mode in
13797 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13798 # Older Autoconf quotes --file arguments for eval, but not when files
13799 # are listed without --file. Let's play safe and only enable the eval
13800 # if we detect the quoting.
13801 case $CONFIG_FILES in
13802 *\'*) eval set x "$CONFIG_FILES" ;;
13803 *) set x $CONFIG_FILES ;;
13804 esac
13805 shift
13806 for mf
13808 # Strip MF so we end up with the name of the file.
13809 mf=`echo "$mf" | sed -e 's/:.*$//'`
13810 # Check whether this is an Automake generated Makefile or not.
13811 # We used to match only the files named 'Makefile.in', but
13812 # some people rename them; so instead we look at the file content.
13813 # Grep'ing the first line is not enough: some people post-process
13814 # each Makefile.in and add a new line on top of each file to say so.
13815 # Grep'ing the whole file is not good either: AIX grep has a line
13816 # limit of 2048, but all sed's we know have understand at least 4000.
13817 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
13818 dirpart=`$as_dirname -- "$mf" ||
13819 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13820 X"$mf" : 'X\(//\)[^/]' \| \
13821 X"$mf" : 'X\(//\)$' \| \
13822 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13823 $as_echo X"$mf" |
13824 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13825 s//\1/
13828 /^X\(\/\/\)[^/].*/{
13829 s//\1/
13832 /^X\(\/\/\)$/{
13833 s//\1/
13836 /^X\(\/\).*/{
13837 s//\1/
13840 s/.*/./; q'`
13841 else
13842 continue
13844 # Extract the definition of DEPDIR, am__include, and am__quote
13845 # from the Makefile without running 'make'.
13846 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13847 test -z "$DEPDIR" && continue
13848 am__include=`sed -n 's/^am__include = //p' < "$mf"`
13849 test -z "$am__include" && continue
13850 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13851 # Find all dependency output files, they are included files with
13852 # $(DEPDIR) in their names. We invoke sed twice because it is the
13853 # simplest approach to changing $(DEPDIR) to its actual value in the
13854 # expansion.
13855 for file in `sed -n "
13856 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13857 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
13858 # Make sure the directory exists.
13859 test -f "$dirpart/$file" && continue
13860 fdir=`$as_dirname -- "$file" ||
13861 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13862 X"$file" : 'X\(//\)[^/]' \| \
13863 X"$file" : 'X\(//\)$' \| \
13864 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
13865 $as_echo X"$file" |
13866 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13867 s//\1/
13870 /^X\(\/\/\)[^/].*/{
13871 s//\1/
13874 /^X\(\/\/\)$/{
13875 s//\1/
13878 /^X\(\/\).*/{
13879 s//\1/
13882 s/.*/./; q'`
13883 as_dir=$dirpart/$fdir; as_fn_mkdir_p
13884 # echo "creating $dirpart/$file"
13885 echo '# dummy' > "$dirpart/$file"
13886 done
13887 done
13890 "libtool":C)
13892 # See if we are running on zsh, and set the options which allow our
13893 # commands through without removal of \ escapes.
13894 if test -n "${ZSH_VERSION+set}" ; then
13895 setopt NO_GLOB_SUBST
13898 cfgfile="${ofile}T"
13899 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13900 $RM "$cfgfile"
13902 cat <<_LT_EOF >> "$cfgfile"
13903 #! $SHELL
13905 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13906 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13907 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13908 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
13910 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13911 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
13912 # Written by Gordon Matzigkeit, 1996
13914 # This file is part of GNU Libtool.
13916 # GNU Libtool is free software; you can redistribute it and/or
13917 # modify it under the terms of the GNU General Public License as
13918 # published by the Free Software Foundation; either version 2 of
13919 # the License, or (at your option) any later version.
13921 # As a special exception to the GNU General Public License,
13922 # if you distribute this file as part of a program or library that
13923 # is built using GNU Libtool, you may include this file under the
13924 # same distribution terms that you use for the rest of that program.
13926 # GNU Libtool is distributed in the hope that it will be useful,
13927 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13928 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13929 # GNU General Public License for more details.
13931 # You should have received a copy of the GNU General Public License
13932 # along with GNU Libtool; see the file COPYING. If not, a copy
13933 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13934 # obtained by writing to the Free Software Foundation, Inc.,
13935 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13938 # The names of the tagged configurations supported by this script.
13939 available_tags=""
13941 # ### BEGIN LIBTOOL CONFIG
13943 # Which release of libtool.m4 was used?
13944 macro_version=$macro_version
13945 macro_revision=$macro_revision
13947 # Whether or not to build shared libraries.
13948 build_libtool_libs=$enable_shared
13950 # Whether or not to build static libraries.
13951 build_old_libs=$enable_static
13953 # What type of objects to build.
13954 pic_mode=$pic_mode
13956 # Whether or not to optimize for fast installation.
13957 fast_install=$enable_fast_install
13959 # Shell to use when invoking shell scripts.
13960 SHELL=$lt_SHELL
13962 # An echo program that protects backslashes.
13963 ECHO=$lt_ECHO
13965 # The host system.
13966 host_alias=$host_alias
13967 host=$host
13968 host_os=$host_os
13970 # The build system.
13971 build_alias=$build_alias
13972 build=$build
13973 build_os=$build_os
13975 # A sed program that does not truncate output.
13976 SED=$lt_SED
13978 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
13979 Xsed="\$SED -e 1s/^X//"
13981 # A grep program that handles long lines.
13982 GREP=$lt_GREP
13984 # An ERE matcher.
13985 EGREP=$lt_EGREP
13987 # A literal string matcher.
13988 FGREP=$lt_FGREP
13990 # A BSD- or MS-compatible name lister.
13991 NM=$lt_NM
13993 # Whether we need soft or hard links.
13994 LN_S=$lt_LN_S
13996 # What is the maximum length of a command?
13997 max_cmd_len=$max_cmd_len
13999 # Object file suffix (normally "o").
14000 objext=$ac_objext
14002 # Executable file suffix (normally "").
14003 exeext=$exeext
14005 # whether the shell understands "unset".
14006 lt_unset=$lt_unset
14008 # turn spaces into newlines.
14009 SP2NL=$lt_lt_SP2NL
14011 # turn newlines into spaces.
14012 NL2SP=$lt_lt_NL2SP
14014 # An object symbol dumper.
14015 OBJDUMP=$lt_OBJDUMP
14017 # Method to check whether dependent libraries are shared objects.
14018 deplibs_check_method=$lt_deplibs_check_method
14020 # Command to use when deplibs_check_method == "file_magic".
14021 file_magic_cmd=$lt_file_magic_cmd
14023 # The archiver.
14024 AR=$lt_AR
14025 AR_FLAGS=$lt_AR_FLAGS
14027 # A symbol stripping program.
14028 STRIP=$lt_STRIP
14030 # Commands used to install an old-style archive.
14031 RANLIB=$lt_RANLIB
14032 old_postinstall_cmds=$lt_old_postinstall_cmds
14033 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14035 # Whether to use a lock for old archive extraction.
14036 lock_old_archive_extraction=$lock_old_archive_extraction
14038 # A C compiler.
14039 LTCC=$lt_CC
14041 # LTCC compiler flags.
14042 LTCFLAGS=$lt_CFLAGS
14044 # Take the output of nm and produce a listing of raw symbols and C names.
14045 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14047 # Transform the output of nm in a proper C declaration.
14048 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14050 # Transform the output of nm in a C name address pair.
14051 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14053 # Transform the output of nm in a C name address pair when lib prefix is needed.
14054 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14056 # The name of the directory that contains temporary libtool files.
14057 objdir=$objdir
14059 # Used to examine libraries when file_magic_cmd begins with "file".
14060 MAGIC_CMD=$MAGIC_CMD
14062 # Must we lock files when doing compilation?
14063 need_locks=$lt_need_locks
14065 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14066 DSYMUTIL=$lt_DSYMUTIL
14068 # Tool to change global to local symbols on Mac OS X.
14069 NMEDIT=$lt_NMEDIT
14071 # Tool to manipulate fat objects and archives on Mac OS X.
14072 LIPO=$lt_LIPO
14074 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14075 OTOOL=$lt_OTOOL
14077 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14078 OTOOL64=$lt_OTOOL64
14080 # Old archive suffix (normally "a").
14081 libext=$libext
14083 # Shared library suffix (normally ".so").
14084 shrext_cmds=$lt_shrext_cmds
14086 # The commands to extract the exported symbol list from a shared archive.
14087 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14089 # Variables whose values should be saved in libtool wrapper scripts and
14090 # restored at link time.
14091 variables_saved_for_relink=$lt_variables_saved_for_relink
14093 # Do we need the "lib" prefix for modules?
14094 need_lib_prefix=$need_lib_prefix
14096 # Do we need a version for libraries?
14097 need_version=$need_version
14099 # Library versioning type.
14100 version_type=$version_type
14102 # Shared library runtime path variable.
14103 runpath_var=$runpath_var
14105 # Shared library path variable.
14106 shlibpath_var=$shlibpath_var
14108 # Is shlibpath searched before the hard-coded library search path?
14109 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14111 # Format of library name prefix.
14112 libname_spec=$lt_libname_spec
14114 # List of archive names. First name is the real one, the rest are links.
14115 # The last name is the one that the linker finds with -lNAME
14116 library_names_spec=$lt_library_names_spec
14118 # The coded name of the library, if different from the real name.
14119 soname_spec=$lt_soname_spec
14121 # Permission mode override for installation of shared libraries.
14122 install_override_mode=$lt_install_override_mode
14124 # Command to use after installation of a shared archive.
14125 postinstall_cmds=$lt_postinstall_cmds
14127 # Command to use after uninstallation of a shared archive.
14128 postuninstall_cmds=$lt_postuninstall_cmds
14130 # Commands used to finish a libtool library installation in a directory.
14131 finish_cmds=$lt_finish_cmds
14133 # As "finish_cmds", except a single script fragment to be evaled but
14134 # not shown.
14135 finish_eval=$lt_finish_eval
14137 # Whether we should hardcode library paths into libraries.
14138 hardcode_into_libs=$hardcode_into_libs
14140 # Compile-time system search path for libraries.
14141 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14143 # Run-time system search path for libraries.
14144 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14146 # Whether dlopen is supported.
14147 dlopen_support=$enable_dlopen
14149 # Whether dlopen of programs is supported.
14150 dlopen_self=$enable_dlopen_self
14152 # Whether dlopen of statically linked programs is supported.
14153 dlopen_self_static=$enable_dlopen_self_static
14155 # Commands to strip libraries.
14156 old_striplib=$lt_old_striplib
14157 striplib=$lt_striplib
14160 # The linker used to build libraries.
14161 LD=$lt_LD
14163 # How to create reloadable object files.
14164 reload_flag=$lt_reload_flag
14165 reload_cmds=$lt_reload_cmds
14167 # Commands used to build an old-style archive.
14168 old_archive_cmds=$lt_old_archive_cmds
14170 # A language specific compiler.
14171 CC=$lt_compiler
14173 # Is the compiler the GNU compiler?
14174 with_gcc=$GCC
14176 # Compiler flag to turn off builtin functions.
14177 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14179 # How to pass a linker flag through the compiler.
14180 wl=$lt_lt_prog_compiler_wl
14182 # Additional compiler flags for building library objects.
14183 pic_flag=$lt_lt_prog_compiler_pic
14185 # Compiler flag to prevent dynamic linking.
14186 link_static_flag=$lt_lt_prog_compiler_static
14188 # Does compiler simultaneously support -c and -o options?
14189 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14191 # Whether or not to add -lc for building shared libraries.
14192 build_libtool_need_lc=$archive_cmds_need_lc
14194 # Whether or not to disallow shared libs when runtime libs are static.
14195 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14197 # Compiler flag to allow reflexive dlopens.
14198 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14200 # Compiler flag to generate shared objects directly from archives.
14201 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14203 # Whether the compiler copes with passing no objects directly.
14204 compiler_needs_object=$lt_compiler_needs_object
14206 # Create an old-style archive from a shared archive.
14207 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14209 # Create a temporary old-style archive to link instead of a shared archive.
14210 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14212 # Commands used to build a shared archive.
14213 archive_cmds=$lt_archive_cmds
14214 archive_expsym_cmds=$lt_archive_expsym_cmds
14216 # Commands used to build a loadable module if different from building
14217 # a shared archive.
14218 module_cmds=$lt_module_cmds
14219 module_expsym_cmds=$lt_module_expsym_cmds
14221 # Whether we are building with GNU ld or not.
14222 with_gnu_ld=$lt_with_gnu_ld
14224 # Flag that allows shared libraries with undefined symbols to be built.
14225 allow_undefined_flag=$lt_allow_undefined_flag
14227 # Flag that enforces no undefined symbols.
14228 no_undefined_flag=$lt_no_undefined_flag
14230 # Flag to hardcode \$libdir into a binary during linking.
14231 # This must work even if \$libdir does not exist
14232 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14234 # If ld is used when linking, flag to hardcode \$libdir into a binary
14235 # during linking. This must work even if \$libdir does not exist.
14236 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14238 # Whether we need a single "-rpath" flag with a separated argument.
14239 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14241 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14242 # DIR into the resulting binary.
14243 hardcode_direct=$hardcode_direct
14245 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14246 # DIR into the resulting binary and the resulting library dependency is
14247 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14248 # library is relocated.
14249 hardcode_direct_absolute=$hardcode_direct_absolute
14251 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14252 # into the resulting binary.
14253 hardcode_minus_L=$hardcode_minus_L
14255 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14256 # into the resulting binary.
14257 hardcode_shlibpath_var=$hardcode_shlibpath_var
14259 # Set to "yes" if building a shared library automatically hardcodes DIR
14260 # into the library and all subsequent libraries and executables linked
14261 # against it.
14262 hardcode_automatic=$hardcode_automatic
14264 # Set to yes if linker adds runtime paths of dependent libraries
14265 # to runtime path list.
14266 inherit_rpath=$inherit_rpath
14268 # Whether libtool must link a program against all its dependency libraries.
14269 link_all_deplibs=$link_all_deplibs
14271 # Fix the shell variable \$srcfile for the compiler.
14272 fix_srcfile_path=$lt_fix_srcfile_path
14274 # Set to "yes" if exported symbols are required.
14275 always_export_symbols=$always_export_symbols
14277 # The commands to list exported symbols.
14278 export_symbols_cmds=$lt_export_symbols_cmds
14280 # Symbols that should not be listed in the preloaded symbols.
14281 exclude_expsyms=$lt_exclude_expsyms
14283 # Symbols that must always be exported.
14284 include_expsyms=$lt_include_expsyms
14286 # Commands necessary for linking programs (against libraries) with templates.
14287 prelink_cmds=$lt_prelink_cmds
14289 # Specify filename containing input files.
14290 file_list_spec=$lt_file_list_spec
14292 # How to hardcode a shared library path into an executable.
14293 hardcode_action=$hardcode_action
14295 # ### END LIBTOOL CONFIG
14297 _LT_EOF
14299 case $host_os in
14300 aix3*)
14301 cat <<\_LT_EOF >> "$cfgfile"
14302 # AIX sometimes has problems with the GCC collect2 program. For some
14303 # reason, if we set the COLLECT_NAMES environment variable, the problems
14304 # vanish in a puff of smoke.
14305 if test "X${COLLECT_NAMES+set}" != Xset; then
14306 COLLECT_NAMES=
14307 export COLLECT_NAMES
14309 _LT_EOF
14311 esac
14314 ltmain="$ac_aux_dir/ltmain.sh"
14317 # We use sed instead of cat because bash on DJGPP gets confused if
14318 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14319 # text mode, it properly converts lines to CR/LF. This bash problem
14320 # is reportedly fixed, but why not run on old versions too?
14321 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
14322 || (rm -f "$cfgfile"; exit 1)
14324 case $xsi_shell in
14325 yes)
14326 cat << \_LT_EOF >> "$cfgfile"
14328 # func_dirname file append nondir_replacement
14329 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
14330 # otherwise set result to NONDIR_REPLACEMENT.
14331 func_dirname ()
14333 case ${1} in
14334 */*) func_dirname_result="${1%/*}${2}" ;;
14335 * ) func_dirname_result="${3}" ;;
14336 esac
14339 # func_basename file
14340 func_basename ()
14342 func_basename_result="${1##*/}"
14345 # func_dirname_and_basename file append nondir_replacement
14346 # perform func_basename and func_dirname in a single function
14347 # call:
14348 # dirname: Compute the dirname of FILE. If nonempty,
14349 # add APPEND to the result, otherwise set result
14350 # to NONDIR_REPLACEMENT.
14351 # value returned in "$func_dirname_result"
14352 # basename: Compute filename of FILE.
14353 # value retuned in "$func_basename_result"
14354 # Implementation must be kept synchronized with func_dirname
14355 # and func_basename. For efficiency, we do not delegate to
14356 # those functions but instead duplicate the functionality here.
14357 func_dirname_and_basename ()
14359 case ${1} in
14360 */*) func_dirname_result="${1%/*}${2}" ;;
14361 * ) func_dirname_result="${3}" ;;
14362 esac
14363 func_basename_result="${1##*/}"
14366 # func_stripname prefix suffix name
14367 # strip PREFIX and SUFFIX off of NAME.
14368 # PREFIX and SUFFIX must not contain globbing or regex special
14369 # characters, hashes, percent signs, but SUFFIX may contain a leading
14370 # dot (in which case that matches only a dot).
14371 func_stripname ()
14373 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
14374 # positional parameters, so assign one to ordinary parameter first.
14375 func_stripname_result=${3}
14376 func_stripname_result=${func_stripname_result#"${1}"}
14377 func_stripname_result=${func_stripname_result%"${2}"}
14380 # func_opt_split
14381 func_opt_split ()
14383 func_opt_split_opt=${1%%=*}
14384 func_opt_split_arg=${1#*=}
14387 # func_lo2o object
14388 func_lo2o ()
14390 case ${1} in
14391 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
14392 *) func_lo2o_result=${1} ;;
14393 esac
14396 # func_xform libobj-or-source
14397 func_xform ()
14399 func_xform_result=${1%.*}.lo
14402 # func_arith arithmetic-term...
14403 func_arith ()
14405 func_arith_result=$(( $* ))
14408 # func_len string
14409 # STRING may not start with a hyphen.
14410 func_len ()
14412 func_len_result=${#1}
14415 _LT_EOF
14417 *) # Bourne compatible functions.
14418 cat << \_LT_EOF >> "$cfgfile"
14420 # func_dirname file append nondir_replacement
14421 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
14422 # otherwise set result to NONDIR_REPLACEMENT.
14423 func_dirname ()
14425 # Extract subdirectory from the argument.
14426 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
14427 if test "X$func_dirname_result" = "X${1}"; then
14428 func_dirname_result="${3}"
14429 else
14430 func_dirname_result="$func_dirname_result${2}"
14434 # func_basename file
14435 func_basename ()
14437 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
14441 # func_stripname prefix suffix name
14442 # strip PREFIX and SUFFIX off of NAME.
14443 # PREFIX and SUFFIX must not contain globbing or regex special
14444 # characters, hashes, percent signs, but SUFFIX may contain a leading
14445 # dot (in which case that matches only a dot).
14446 # func_strip_suffix prefix name
14447 func_stripname ()
14449 case ${2} in
14450 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
14451 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
14452 esac
14455 # sed scripts:
14456 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
14457 my_sed_long_arg='1s/^-[^=]*=//'
14459 # func_opt_split
14460 func_opt_split ()
14462 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
14463 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
14466 # func_lo2o object
14467 func_lo2o ()
14469 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
14472 # func_xform libobj-or-source
14473 func_xform ()
14475 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
14478 # func_arith arithmetic-term...
14479 func_arith ()
14481 func_arith_result=`expr "$@"`
14484 # func_len string
14485 # STRING may not start with a hyphen.
14486 func_len ()
14488 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
14491 _LT_EOF
14492 esac
14494 case $lt_shell_append in
14495 yes)
14496 cat << \_LT_EOF >> "$cfgfile"
14498 # func_append var value
14499 # Append VALUE to the end of shell variable VAR.
14500 func_append ()
14502 eval "$1+=\$2"
14504 _LT_EOF
14507 cat << \_LT_EOF >> "$cfgfile"
14509 # func_append var value
14510 # Append VALUE to the end of shell variable VAR.
14511 func_append ()
14513 eval "$1=\$$1\$2"
14516 _LT_EOF
14518 esac
14521 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
14522 || (rm -f "$cfgfile"; exit 1)
14524 mv -f "$cfgfile" "$ofile" ||
14525 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14526 chmod +x "$ofile"
14530 esac
14531 done # for ac_tag
14534 as_fn_exit 0
14535 _ACEOF
14536 ac_clean_files=$ac_clean_files_save
14538 test $ac_write_fail = 0 ||
14539 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14542 # configure is writing to config.log, and then calls config.status.
14543 # config.status does its own redirection, appending to config.log.
14544 # Unfortunately, on DOS this fails, as config.log is still kept open
14545 # by configure, so config.status won't be able to write to it; its
14546 # output is simply discarded. So we exec the FD to /dev/null,
14547 # effectively closing config.log, so it can be properly (re)opened and
14548 # appended to by config.status. When coming back to configure, we
14549 # need to make the FD available again.
14550 if test "$no_create" != yes; then
14551 ac_cs_success=:
14552 ac_config_status_args=
14553 test "$silent" = yes &&
14554 ac_config_status_args="$ac_config_status_args --quiet"
14555 exec 5>/dev/null
14556 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14557 exec 5>>config.log
14558 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14559 # would make configure fail if this is the last instruction.
14560 $ac_cs_success || as_fn_exit 1
14562 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14563 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14564 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}