Daily bump.
[official-gcc.git] / lto-plugin / configure
blob1265e10c4f9a7a1490030e63973ec17457fc7fa4
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for LTO plugin for ld 0.1.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # 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 case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99 IFS=$as_save_IFS
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106 as_myself=$0
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142 else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
148 esac
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
164 else
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1"
173 if (eval "$as_required") 2>/dev/null; then :
174 as_have_required=yes
175 else
176 as_have_required=no
178 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
180 else
181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
182 as_found=false
183 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
185 IFS=$as_save_IFS
186 test -z "$as_dir" && as_dir=.
187 as_found=:
188 case $as_dir in #(
190 for as_base in sh bash ksh sh5; do
191 # Try only shells that exist, to save several forks.
192 as_shell=$as_dir/$as_base
193 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
194 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
195 CONFIG_SHELL=$as_shell as_have_required=yes
196 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 break 2
200 done;;
201 esac
202 as_found=false
203 done
204 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
206 CONFIG_SHELL=$SHELL as_have_required=yes
207 fi; }
208 IFS=$as_save_IFS
211 if test "x$CONFIG_SHELL" != x; then :
212 # We cannot yet assume a decent shell, so we have to provide a
213 # neutralization value for shells without unset; and this also
214 # works around shells that cannot unset nonexistent variables.
215 BASH_ENV=/dev/null
216 ENV=/dev/null
217 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
218 export CONFIG_SHELL
219 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222 if test x$as_have_required = xno; then :
223 $as_echo "$0: This script requires a shell more modern than all"
224 $as_echo "$0: the shells that I found on your system."
225 if test x${ZSH_VERSION+set} = xset ; then
226 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
228 else
229 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230 $0: including any error possibly output before this
231 $0: message. Then install a modern shell, or manually run
232 $0: the script under such a shell if you do have one."
234 exit 1
238 SHELL=${CONFIG_SHELL-/bin/sh}
239 export SHELL
240 # Unset more variables known to interfere with behavior of common tools.
241 CLICOLOR_FORCE= GREP_OPTIONS=
242 unset CLICOLOR_FORCE GREP_OPTIONS
244 ## --------------------- ##
245 ## M4sh Shell Functions. ##
246 ## --------------------- ##
247 # as_fn_unset VAR
248 # ---------------
249 # Portably unset VAR.
250 as_fn_unset ()
252 { eval $1=; unset $1;}
254 as_unset=as_fn_unset
256 # as_fn_set_status STATUS
257 # -----------------------
258 # Set $? to STATUS, without forking.
259 as_fn_set_status ()
261 return $1
262 } # as_fn_set_status
264 # as_fn_exit STATUS
265 # -----------------
266 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
267 as_fn_exit ()
269 set +e
270 as_fn_set_status $1
271 exit $1
272 } # as_fn_exit
274 # as_fn_mkdir_p
275 # -------------
276 # Create "$as_dir" as a directory, including parents if necessary.
277 as_fn_mkdir_p ()
280 case $as_dir in #(
281 -*) as_dir=./$as_dir;;
282 esac
283 test -d "$as_dir" || eval $as_mkdir_p || {
284 as_dirs=
285 while :; do
286 case $as_dir in #(
287 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
288 *) as_qdir=$as_dir;;
289 esac
290 as_dirs="'$as_qdir' $as_dirs"
291 as_dir=`$as_dirname -- "$as_dir" ||
292 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293 X"$as_dir" : 'X\(//\)[^/]' \| \
294 X"$as_dir" : 'X\(//\)$' \| \
295 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296 $as_echo X"$as_dir" |
297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
298 s//\1/
301 /^X\(\/\/\)[^/].*/{
302 s//\1/
305 /^X\(\/\/\)$/{
306 s//\1/
309 /^X\(\/\).*/{
310 s//\1/
313 s/.*/./; q'`
314 test -d "$as_dir" && break
315 done
316 test -z "$as_dirs" || eval "mkdir $as_dirs"
317 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
320 } # as_fn_mkdir_p
321 # as_fn_append VAR VALUE
322 # ----------------------
323 # Append the text in VALUE to the end of the definition contained in VAR. Take
324 # advantage of any shell optimizations that allow amortized linear growth over
325 # repeated appends, instead of the typical quadratic growth present in naive
326 # implementations.
327 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328 eval 'as_fn_append ()
330 eval $1+=\$2
332 else
333 as_fn_append ()
335 eval $1=\$$1\$2
337 fi # as_fn_append
339 # as_fn_arith ARG...
340 # ------------------
341 # Perform arithmetic evaluation on the ARGs, and store the result in the
342 # global $as_val. Take advantage of shells that can avoid forks. The arguments
343 # must be portable across $(()) and expr.
344 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
345 eval 'as_fn_arith ()
347 as_val=$(( $* ))
349 else
350 as_fn_arith ()
352 as_val=`expr "$@" || test $? -eq 1`
354 fi # as_fn_arith
357 # as_fn_error ERROR [LINENO LOG_FD]
358 # ---------------------------------
359 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361 # script with status $?, using 1 if that was 0.
362 as_fn_error ()
364 as_status=$?; test $as_status -eq 0 && as_status=1
365 if test "$3"; then
366 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
367 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
369 $as_echo "$as_me: error: $1" >&2
370 as_fn_exit $as_status
371 } # as_fn_error
373 if expr a : '\(a\)' >/dev/null 2>&1 &&
374 test "X`expr 00001 : '.*\(...\)'`" = X001; then
375 as_expr=expr
376 else
377 as_expr=false
380 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
381 as_basename=basename
382 else
383 as_basename=false
386 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
387 as_dirname=dirname
388 else
389 as_dirname=false
392 as_me=`$as_basename -- "$0" ||
393 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394 X"$0" : 'X\(//\)$' \| \
395 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
396 $as_echo X/"$0" |
397 sed '/^.*\/\([^/][^/]*\)\/*$/{
398 s//\1/
401 /^X\/\(\/\/\)$/{
402 s//\1/
405 /^X\/\(\/\).*/{
406 s//\1/
409 s/.*/./; q'`
411 # Avoid depending upon Character Ranges.
412 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415 as_cr_digits='0123456789'
416 as_cr_alnum=$as_cr_Letters$as_cr_digits
419 as_lineno_1=$LINENO as_lineno_1a=$LINENO
420 as_lineno_2=$LINENO as_lineno_2a=$LINENO
421 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
423 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
424 sed -n '
426 /[$]LINENO/=
427 ' <$as_myself |
428 sed '
429 s/[$]LINENO.*/&-/
430 t lineno
432 :lineno
434 :loop
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
436 t loop
437 s/-\n.*//
438 ' >$as_me.lineno &&
439 chmod +x "$as_me.lineno" ||
440 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
442 # Don't try to exec as it changes $[0], causing all sort of problems
443 # (the dirname of $[0] is not the place where we might find the
444 # original and so on. Autoconf is especially sensitive to this).
445 . "./$as_me.lineno"
446 # Exit status is that of the last command.
447 exit
450 ECHO_C= ECHO_N= ECHO_T=
451 case `echo -n x` in #(((((
452 -n*)
453 case `echo 'xy\c'` in
454 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
455 xy) ECHO_C='\c';;
456 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
457 ECHO_T=' ';;
458 esac;;
460 ECHO_N='-n';;
461 esac
463 rm -f conf$$ conf$$.exe conf$$.file
464 if test -d conf$$.dir; then
465 rm -f conf$$.dir/conf$$.file
466 else
467 rm -f conf$$.dir
468 mkdir conf$$.dir 2>/dev/null
470 if (echo >conf$$.file) 2>/dev/null; then
471 if ln -s conf$$.file conf$$ 2>/dev/null; then
472 as_ln_s='ln -s'
473 # ... but there are two gotchas:
474 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476 # In both cases, we have to default to `cp -p'.
477 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
478 as_ln_s='cp -p'
479 elif ln conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s=ln
481 else
482 as_ln_s='cp -p'
484 else
485 as_ln_s='cp -p'
487 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488 rmdir conf$$.dir 2>/dev/null
490 if mkdir -p . 2>/dev/null; then
491 as_mkdir_p='mkdir -p "$as_dir"'
492 else
493 test -d ./-p && rmdir ./-p
494 as_mkdir_p=false
497 if test -x / >/dev/null 2>&1; then
498 as_test_x='test -x'
499 else
500 if ls -dL / >/dev/null 2>&1; then
501 as_ls_L_option=L
502 else
503 as_ls_L_option=
505 as_test_x='
506 eval sh -c '\''
507 if test -d "$1"; then
508 test -d "$1/.";
509 else
510 case $1 in #(
511 -*)set "./$1";;
512 esac;
513 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514 ???[sx]*):;;*)false;;esac;fi
515 '\'' sh
518 as_executable_p=$as_test_x
520 # Sed expression to map a string onto a valid CPP name.
521 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
523 # Sed expression to map a string onto a valid variable name.
524 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
528 # Check that we are running under the correct shell.
529 SHELL=${CONFIG_SHELL-/bin/sh}
531 case X$lt_ECHO in
532 X*--fallback-echo)
533 # Remove one level of quotation (which was required for Make).
534 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
536 esac
538 ECHO=${lt_ECHO-echo}
539 if test "X$1" = X--no-reexec; then
540 # Discard the --no-reexec flag, and continue.
541 shift
542 elif test "X$1" = X--fallback-echo; then
543 # Avoid inline document here, it may be left over
545 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
546 # Yippee, $ECHO works!
548 else
549 # Restart under the correct shell.
550 exec $SHELL "$0" --no-reexec ${1+"$@"}
553 if test "X$1" = X--fallback-echo; then
554 # used as fallback echo
555 shift
556 cat <<_LT_EOF
558 _LT_EOF
559 exit 0
562 # The HP-UX ksh and POSIX shell print the target directory to stdout
563 # if CDPATH is set.
564 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
566 if test -z "$lt_ECHO"; then
567 if test "X${echo_test_string+set}" != Xset; then
568 # find a string as large as possible, as long as the shell can cope with it
569 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
570 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
571 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
572 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
573 then
574 break
576 done
579 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
580 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
581 test "X$echo_testing_string" = "X$echo_test_string"; then
583 else
584 # The Solaris, AIX, and Digital Unix default echo programs unquote
585 # backslashes. This makes it impossible to quote backslashes using
586 # echo "$something" | sed 's/\\/\\\\/g'
588 # So, first we look for a working echo in the user's PATH.
590 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
591 for dir in $PATH /usr/ucb; do
592 IFS="$lt_save_ifs"
593 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
594 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
595 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
596 test "X$echo_testing_string" = "X$echo_test_string"; then
597 ECHO="$dir/echo"
598 break
600 done
601 IFS="$lt_save_ifs"
603 if test "X$ECHO" = Xecho; then
604 # We didn't find a better echo, so look for alternatives.
605 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
606 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
607 test "X$echo_testing_string" = "X$echo_test_string"; then
608 # This shell has a builtin print -r that does the trick.
609 ECHO='print -r'
610 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
611 test "X$CONFIG_SHELL" != X/bin/ksh; then
612 # If we have ksh, try running configure again with it.
613 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
614 export ORIGINAL_CONFIG_SHELL
615 CONFIG_SHELL=/bin/ksh
616 export CONFIG_SHELL
617 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
618 else
619 # Try using printf.
620 ECHO='printf %s\n'
621 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
622 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
623 test "X$echo_testing_string" = "X$echo_test_string"; then
624 # Cool, printf works
626 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
627 test "X$echo_testing_string" = 'X\t' &&
628 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
629 test "X$echo_testing_string" = "X$echo_test_string"; then
630 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
631 export CONFIG_SHELL
632 SHELL="$CONFIG_SHELL"
633 export SHELL
634 ECHO="$CONFIG_SHELL $0 --fallback-echo"
635 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
636 test "X$echo_testing_string" = 'X\t' &&
637 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
638 test "X$echo_testing_string" = "X$echo_test_string"; then
639 ECHO="$CONFIG_SHELL $0 --fallback-echo"
640 else
641 # maybe with a smaller string...
642 prev=:
644 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
645 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
646 then
647 break
649 prev="$cmd"
650 done
652 if test "$prev" != 'sed 50q "$0"'; then
653 echo_test_string=`eval $prev`
654 export echo_test_string
655 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
656 else
657 # Oops. We lost completely, so just stick with echo.
658 ECHO=echo
666 # Copy echo and quote the copy suitably for passing to libtool from
667 # the Makefile, instead of quoting the original, which is used later.
668 lt_ECHO=$ECHO
669 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
670 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
676 exec 7<&0 </dev/null 6>&1
678 # Name of the host.
679 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
680 # so uname gets run too.
681 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
684 # Initializations.
686 ac_default_prefix=/usr/local
687 ac_clean_files=
688 ac_config_libobj_dir=.
689 LIBOBJS=
690 cross_compiling=no
691 subdirs=
692 MFLAGS=
693 MAKEFLAGS=
695 # Identity of this package.
696 PACKAGE_NAME='LTO plugin for ld'
697 PACKAGE_TARNAME='lto-plugin'
698 PACKAGE_VERSION='0.1'
699 PACKAGE_STRING='LTO plugin for ld 0.1'
700 PACKAGE_BUGREPORT=''
701 PACKAGE_URL=''
703 # Factoring default headers for most tests.
704 ac_includes_default="\
705 #include <stdio.h>
706 #ifdef HAVE_SYS_TYPES_H
707 # include <sys/types.h>
708 #endif
709 #ifdef HAVE_SYS_STAT_H
710 # include <sys/stat.h>
711 #endif
712 #ifdef STDC_HEADERS
713 # include <stdlib.h>
714 # include <stddef.h>
715 #else
716 # ifdef HAVE_STDLIB_H
717 # include <stdlib.h>
718 # endif
719 #endif
720 #ifdef HAVE_STRING_H
721 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
722 # include <memory.h>
723 # endif
724 # include <string.h>
725 #endif
726 #ifdef HAVE_STRINGS_H
727 # include <strings.h>
728 #endif
729 #ifdef HAVE_INTTYPES_H
730 # include <inttypes.h>
731 #endif
732 #ifdef HAVE_STDINT_H
733 # include <stdint.h>
734 #endif
735 #ifdef HAVE_UNISTD_H
736 # include <unistd.h>
737 #endif"
739 ac_subst_vars='am__EXEEXT_FALSE
740 am__EXEEXT_TRUE
741 LTLIBOBJS
742 LIBOBJS
743 target_noncanonical
745 OTOOL64
746 OTOOL
747 LIPO
748 NMEDIT
749 DSYMUTIL
750 lt_ECHO
751 RANLIB
753 OBJDUMP
754 LN_S
756 ac_ct_DUMPBIN
757 DUMPBIN
759 FGREP
760 EGREP
761 GREP
763 host_os
764 host_vendor
765 host_cpu
766 host
767 LIBTOOL
768 LIBELFINC
769 LIBELFLIBS
770 am__fastdepCC_FALSE
771 am__fastdepCC_TRUE
772 CCDEPMODE
773 AMDEPBACKSLASH
774 AMDEP_FALSE
775 AMDEP_TRUE
776 am__quote
777 am__include
778 DEPDIR
779 OBJEXT
780 EXEEXT
781 ac_ct_CC
782 CPPFLAGS
783 LDFLAGS
784 CFLAGS
786 MAINT
787 MAINTAINER_MODE_FALSE
788 MAINTAINER_MODE_TRUE
789 am__untar
790 am__tar
791 AMTAR
792 am__leading_dot
793 SET_MAKE
795 mkdir_p
796 MKDIR_P
797 INSTALL_STRIP_PROGRAM
798 STRIP
799 install_sh
800 MAKEINFO
801 AUTOHEADER
802 AUTOMAKE
803 AUTOCONF
804 ACLOCAL
805 VERSION
806 PACKAGE
807 CYGPATH_W
808 am__isrc
809 INSTALL_DATA
810 INSTALL_SCRIPT
811 INSTALL_PROGRAM
812 target_subdir
813 host_subdir
814 build_subdir
815 build_libsubdir
816 build_os
817 build_vendor
818 build_cpu
819 build
820 target_alias
821 host_alias
822 build_alias
823 LIBS
824 ECHO_T
825 ECHO_N
826 ECHO_C
827 DEFS
828 mandir
829 localedir
830 libdir
831 psdir
832 pdfdir
833 dvidir
834 htmldir
835 infodir
836 docdir
837 oldincludedir
838 includedir
839 localstatedir
840 sharedstatedir
841 sysconfdir
842 datadir
843 datarootdir
844 libexecdir
845 sbindir
846 bindir
847 program_transform_name
848 prefix
849 exec_prefix
850 PACKAGE_URL
851 PACKAGE_BUGREPORT
852 PACKAGE_STRING
853 PACKAGE_VERSION
854 PACKAGE_TARNAME
855 PACKAGE_NAME
856 PATH_SEPARATOR
857 SHELL'
858 ac_subst_files=''
859 ac_user_opts='
860 enable_option_checking
861 with_build_libsubdir
862 enable_maintainer_mode
863 enable_dependency_tracking
864 enable_largefile
865 enable_shared
866 enable_static
867 with_pic
868 enable_fast_install
869 with_gnu_ld
870 enable_libtool_lock
872 ac_precious_vars='build_alias
873 host_alias
874 target_alias
876 CFLAGS
877 LDFLAGS
878 LIBS
879 CPPFLAGS
880 LIBELFLIBS
881 LIBELFINC
882 CPP'
885 # Initialize some variables set by options.
886 ac_init_help=
887 ac_init_version=false
888 ac_unrecognized_opts=
889 ac_unrecognized_sep=
890 # The variables have the same names as the options, with
891 # dashes changed to underlines.
892 cache_file=/dev/null
893 exec_prefix=NONE
894 no_create=
895 no_recursion=
896 prefix=NONE
897 program_prefix=NONE
898 program_suffix=NONE
899 program_transform_name=s,x,x,
900 silent=
901 site=
902 srcdir=
903 verbose=
904 x_includes=NONE
905 x_libraries=NONE
907 # Installation directory options.
908 # These are left unexpanded so users can "make install exec_prefix=/foo"
909 # and all the variables that are supposed to be based on exec_prefix
910 # by default will actually change.
911 # Use braces instead of parens because sh, perl, etc. also accept them.
912 # (The list follows the same order as the GNU Coding Standards.)
913 bindir='${exec_prefix}/bin'
914 sbindir='${exec_prefix}/sbin'
915 libexecdir='${exec_prefix}/libexec'
916 datarootdir='${prefix}/share'
917 datadir='${datarootdir}'
918 sysconfdir='${prefix}/etc'
919 sharedstatedir='${prefix}/com'
920 localstatedir='${prefix}/var'
921 includedir='${prefix}/include'
922 oldincludedir='/usr/include'
923 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
924 infodir='${datarootdir}/info'
925 htmldir='${docdir}'
926 dvidir='${docdir}'
927 pdfdir='${docdir}'
928 psdir='${docdir}'
929 libdir='${exec_prefix}/lib'
930 localedir='${datarootdir}/locale'
931 mandir='${datarootdir}/man'
933 ac_prev=
934 ac_dashdash=
935 for ac_option
937 # If the previous option needs an argument, assign it.
938 if test -n "$ac_prev"; then
939 eval $ac_prev=\$ac_option
940 ac_prev=
941 continue
944 case $ac_option in
945 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
946 *) ac_optarg=yes ;;
947 esac
949 # Accept the important Cygnus configure options, so we can diagnose typos.
951 case $ac_dashdash$ac_option in
953 ac_dashdash=yes ;;
955 -bindir | --bindir | --bindi | --bind | --bin | --bi)
956 ac_prev=bindir ;;
957 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
958 bindir=$ac_optarg ;;
960 -build | --build | --buil | --bui | --bu)
961 ac_prev=build_alias ;;
962 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
963 build_alias=$ac_optarg ;;
965 -cache-file | --cache-file | --cache-fil | --cache-fi \
966 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
967 ac_prev=cache_file ;;
968 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
969 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
970 cache_file=$ac_optarg ;;
972 --config-cache | -C)
973 cache_file=config.cache ;;
975 -datadir | --datadir | --datadi | --datad)
976 ac_prev=datadir ;;
977 -datadir=* | --datadir=* | --datadi=* | --datad=*)
978 datadir=$ac_optarg ;;
980 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
981 | --dataroo | --dataro | --datar)
982 ac_prev=datarootdir ;;
983 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
984 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
985 datarootdir=$ac_optarg ;;
987 -disable-* | --disable-*)
988 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
989 # Reject names that are not valid shell variable names.
990 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
991 as_fn_error "invalid feature name: $ac_useropt"
992 ac_useropt_orig=$ac_useropt
993 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
994 case $ac_user_opts in
996 "enable_$ac_useropt"
997 "*) ;;
998 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
999 ac_unrecognized_sep=', ';;
1000 esac
1001 eval enable_$ac_useropt=no ;;
1003 -docdir | --docdir | --docdi | --doc | --do)
1004 ac_prev=docdir ;;
1005 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1006 docdir=$ac_optarg ;;
1008 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1009 ac_prev=dvidir ;;
1010 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1011 dvidir=$ac_optarg ;;
1013 -enable-* | --enable-*)
1014 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1015 # Reject names that are not valid shell variable names.
1016 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1017 as_fn_error "invalid feature name: $ac_useropt"
1018 ac_useropt_orig=$ac_useropt
1019 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1020 case $ac_user_opts in
1022 "enable_$ac_useropt"
1023 "*) ;;
1024 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1025 ac_unrecognized_sep=', ';;
1026 esac
1027 eval enable_$ac_useropt=\$ac_optarg ;;
1029 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1030 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1031 | --exec | --exe | --ex)
1032 ac_prev=exec_prefix ;;
1033 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1034 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1035 | --exec=* | --exe=* | --ex=*)
1036 exec_prefix=$ac_optarg ;;
1038 -gas | --gas | --ga | --g)
1039 # Obsolete; use --with-gas.
1040 with_gas=yes ;;
1042 -help | --help | --hel | --he | -h)
1043 ac_init_help=long ;;
1044 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1045 ac_init_help=recursive ;;
1046 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1047 ac_init_help=short ;;
1049 -host | --host | --hos | --ho)
1050 ac_prev=host_alias ;;
1051 -host=* | --host=* | --hos=* | --ho=*)
1052 host_alias=$ac_optarg ;;
1054 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1055 ac_prev=htmldir ;;
1056 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1057 | --ht=*)
1058 htmldir=$ac_optarg ;;
1060 -includedir | --includedir | --includedi | --included | --include \
1061 | --includ | --inclu | --incl | --inc)
1062 ac_prev=includedir ;;
1063 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1064 | --includ=* | --inclu=* | --incl=* | --inc=*)
1065 includedir=$ac_optarg ;;
1067 -infodir | --infodir | --infodi | --infod | --info | --inf)
1068 ac_prev=infodir ;;
1069 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1070 infodir=$ac_optarg ;;
1072 -libdir | --libdir | --libdi | --libd)
1073 ac_prev=libdir ;;
1074 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1075 libdir=$ac_optarg ;;
1077 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1078 | --libexe | --libex | --libe)
1079 ac_prev=libexecdir ;;
1080 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1081 | --libexe=* | --libex=* | --libe=*)
1082 libexecdir=$ac_optarg ;;
1084 -localedir | --localedir | --localedi | --localed | --locale)
1085 ac_prev=localedir ;;
1086 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1087 localedir=$ac_optarg ;;
1089 -localstatedir | --localstatedir | --localstatedi | --localstated \
1090 | --localstate | --localstat | --localsta | --localst | --locals)
1091 ac_prev=localstatedir ;;
1092 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1093 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1094 localstatedir=$ac_optarg ;;
1096 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1097 ac_prev=mandir ;;
1098 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1099 mandir=$ac_optarg ;;
1101 -nfp | --nfp | --nf)
1102 # Obsolete; use --without-fp.
1103 with_fp=no ;;
1105 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1106 | --no-cr | --no-c | -n)
1107 no_create=yes ;;
1109 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1110 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1111 no_recursion=yes ;;
1113 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1114 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1115 | --oldin | --oldi | --old | --ol | --o)
1116 ac_prev=oldincludedir ;;
1117 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1118 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1119 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1120 oldincludedir=$ac_optarg ;;
1122 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1123 ac_prev=prefix ;;
1124 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1125 prefix=$ac_optarg ;;
1127 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1128 | --program-pre | --program-pr | --program-p)
1129 ac_prev=program_prefix ;;
1130 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1131 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1132 program_prefix=$ac_optarg ;;
1134 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1135 | --program-suf | --program-su | --program-s)
1136 ac_prev=program_suffix ;;
1137 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1138 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1139 program_suffix=$ac_optarg ;;
1141 -program-transform-name | --program-transform-name \
1142 | --program-transform-nam | --program-transform-na \
1143 | --program-transform-n | --program-transform- \
1144 | --program-transform | --program-transfor \
1145 | --program-transfo | --program-transf \
1146 | --program-trans | --program-tran \
1147 | --progr-tra | --program-tr | --program-t)
1148 ac_prev=program_transform_name ;;
1149 -program-transform-name=* | --program-transform-name=* \
1150 | --program-transform-nam=* | --program-transform-na=* \
1151 | --program-transform-n=* | --program-transform-=* \
1152 | --program-transform=* | --program-transfor=* \
1153 | --program-transfo=* | --program-transf=* \
1154 | --program-trans=* | --program-tran=* \
1155 | --progr-tra=* | --program-tr=* | --program-t=*)
1156 program_transform_name=$ac_optarg ;;
1158 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1159 ac_prev=pdfdir ;;
1160 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1161 pdfdir=$ac_optarg ;;
1163 -psdir | --psdir | --psdi | --psd | --ps)
1164 ac_prev=psdir ;;
1165 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1166 psdir=$ac_optarg ;;
1168 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1169 | -silent | --silent | --silen | --sile | --sil)
1170 silent=yes ;;
1172 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1173 ac_prev=sbindir ;;
1174 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1175 | --sbi=* | --sb=*)
1176 sbindir=$ac_optarg ;;
1178 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1179 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1180 | --sharedst | --shareds | --shared | --share | --shar \
1181 | --sha | --sh)
1182 ac_prev=sharedstatedir ;;
1183 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1184 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1185 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1186 | --sha=* | --sh=*)
1187 sharedstatedir=$ac_optarg ;;
1189 -site | --site | --sit)
1190 ac_prev=site ;;
1191 -site=* | --site=* | --sit=*)
1192 site=$ac_optarg ;;
1194 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1195 ac_prev=srcdir ;;
1196 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1197 srcdir=$ac_optarg ;;
1199 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1200 | --syscon | --sysco | --sysc | --sys | --sy)
1201 ac_prev=sysconfdir ;;
1202 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1203 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1204 sysconfdir=$ac_optarg ;;
1206 -target | --target | --targe | --targ | --tar | --ta | --t)
1207 ac_prev=target_alias ;;
1208 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1209 target_alias=$ac_optarg ;;
1211 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1212 verbose=yes ;;
1214 -version | --version | --versio | --versi | --vers | -V)
1215 ac_init_version=: ;;
1217 -with-* | --with-*)
1218 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1219 # Reject names that are not valid shell variable names.
1220 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1221 as_fn_error "invalid package name: $ac_useropt"
1222 ac_useropt_orig=$ac_useropt
1223 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1224 case $ac_user_opts in
1226 "with_$ac_useropt"
1227 "*) ;;
1228 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1229 ac_unrecognized_sep=', ';;
1230 esac
1231 eval with_$ac_useropt=\$ac_optarg ;;
1233 -without-* | --without-*)
1234 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1235 # Reject names that are not valid shell variable names.
1236 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1237 as_fn_error "invalid package name: $ac_useropt"
1238 ac_useropt_orig=$ac_useropt
1239 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1240 case $ac_user_opts in
1242 "with_$ac_useropt"
1243 "*) ;;
1244 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1245 ac_unrecognized_sep=', ';;
1246 esac
1247 eval with_$ac_useropt=no ;;
1249 --x)
1250 # Obsolete; use --with-x.
1251 with_x=yes ;;
1253 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1254 | --x-incl | --x-inc | --x-in | --x-i)
1255 ac_prev=x_includes ;;
1256 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1257 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1258 x_includes=$ac_optarg ;;
1260 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1261 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1262 ac_prev=x_libraries ;;
1263 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1264 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1265 x_libraries=$ac_optarg ;;
1267 -*) as_fn_error "unrecognized option: \`$ac_option'
1268 Try \`$0 --help' for more information."
1271 *=*)
1272 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1273 # Reject names that are not valid shell variable names.
1274 case $ac_envvar in #(
1275 '' | [0-9]* | *[!_$as_cr_alnum]* )
1276 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1277 esac
1278 eval $ac_envvar=\$ac_optarg
1279 export $ac_envvar ;;
1282 # FIXME: should be removed in autoconf 3.0.
1283 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1284 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1285 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1286 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1289 esac
1290 done
1292 if test -n "$ac_prev"; then
1293 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1294 as_fn_error "missing argument to $ac_option"
1297 if test -n "$ac_unrecognized_opts"; then
1298 case $enable_option_checking in
1299 no) ;;
1300 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1301 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1302 esac
1305 # Check all directory arguments for consistency.
1306 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1307 datadir sysconfdir sharedstatedir localstatedir includedir \
1308 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1309 libdir localedir mandir
1311 eval ac_val=\$$ac_var
1312 # Remove trailing slashes.
1313 case $ac_val in
1314 */ )
1315 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1316 eval $ac_var=\$ac_val;;
1317 esac
1318 # Be sure to have absolute directory names.
1319 case $ac_val in
1320 [\\/$]* | ?:[\\/]* ) continue;;
1321 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1322 esac
1323 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1324 done
1326 # There might be people who depend on the old broken behavior: `$host'
1327 # used to hold the argument of --host etc.
1328 # FIXME: To remove some day.
1329 build=$build_alias
1330 host=$host_alias
1331 target=$target_alias
1333 # FIXME: To remove some day.
1334 if test "x$host_alias" != x; then
1335 if test "x$build_alias" = x; then
1336 cross_compiling=maybe
1337 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1338 If a cross compiler is detected then cross compile mode will be used." >&2
1339 elif test "x$build_alias" != "x$host_alias"; then
1340 cross_compiling=yes
1344 ac_tool_prefix=
1345 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1347 test "$silent" = yes && exec 6>/dev/null
1350 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1351 ac_ls_di=`ls -di .` &&
1352 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1353 as_fn_error "working directory cannot be determined"
1354 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1355 as_fn_error "pwd does not report name of working directory"
1358 # Find the source files, if location was not specified.
1359 if test -z "$srcdir"; then
1360 ac_srcdir_defaulted=yes
1361 # Try the directory containing this script, then the parent directory.
1362 ac_confdir=`$as_dirname -- "$as_myself" ||
1363 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1364 X"$as_myself" : 'X\(//\)[^/]' \| \
1365 X"$as_myself" : 'X\(//\)$' \| \
1366 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1367 $as_echo X"$as_myself" |
1368 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1369 s//\1/
1372 /^X\(\/\/\)[^/].*/{
1373 s//\1/
1376 /^X\(\/\/\)$/{
1377 s//\1/
1380 /^X\(\/\).*/{
1381 s//\1/
1384 s/.*/./; q'`
1385 srcdir=$ac_confdir
1386 if test ! -r "$srcdir/$ac_unique_file"; then
1387 srcdir=..
1389 else
1390 ac_srcdir_defaulted=no
1392 if test ! -r "$srcdir/$ac_unique_file"; then
1393 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1394 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1396 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1397 ac_abs_confdir=`(
1398 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1399 pwd)`
1400 # When building in place, set srcdir=.
1401 if test "$ac_abs_confdir" = "$ac_pwd"; then
1402 srcdir=.
1404 # Remove unnecessary trailing slashes from srcdir.
1405 # Double slashes in file names in object file debugging info
1406 # mess up M-x gdb in Emacs.
1407 case $srcdir in
1408 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1409 esac
1410 for ac_var in $ac_precious_vars; do
1411 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1412 eval ac_env_${ac_var}_value=\$${ac_var}
1413 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1414 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1415 done
1418 # Report the --help message.
1420 if test "$ac_init_help" = "long"; then
1421 # Omit some internal or obsolete options to make the list less imposing.
1422 # This message is too long to be a string in the A/UX 3.1 sh.
1423 cat <<_ACEOF
1424 \`configure' configures LTO plugin for ld 0.1 to adapt to many kinds of systems.
1426 Usage: $0 [OPTION]... [VAR=VALUE]...
1428 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1429 VAR=VALUE. See below for descriptions of some of the useful variables.
1431 Defaults for the options are specified in brackets.
1433 Configuration:
1434 -h, --help display this help and exit
1435 --help=short display options specific to this package
1436 --help=recursive display the short help of all the included packages
1437 -V, --version display version information and exit
1438 -q, --quiet, --silent do not print \`checking...' messages
1439 --cache-file=FILE cache test results in FILE [disabled]
1440 -C, --config-cache alias for \`--cache-file=config.cache'
1441 -n, --no-create do not create output files
1442 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1444 Installation directories:
1445 --prefix=PREFIX install architecture-independent files in PREFIX
1446 [$ac_default_prefix]
1447 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1448 [PREFIX]
1450 By default, \`make install' will install all the files in
1451 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1452 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1453 for instance \`--prefix=\$HOME'.
1455 For better control, use the options below.
1457 Fine tuning of the installation directories:
1458 --bindir=DIR user executables [EPREFIX/bin]
1459 --sbindir=DIR system admin executables [EPREFIX/sbin]
1460 --libexecdir=DIR program executables [EPREFIX/libexec]
1461 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1462 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1463 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1464 --libdir=DIR object code libraries [EPREFIX/lib]
1465 --includedir=DIR C header files [PREFIX/include]
1466 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1467 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1468 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1469 --infodir=DIR info documentation [DATAROOTDIR/info]
1470 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1471 --mandir=DIR man documentation [DATAROOTDIR/man]
1472 --docdir=DIR documentation root [DATAROOTDIR/doc/lto-plugin]
1473 --htmldir=DIR html documentation [DOCDIR]
1474 --dvidir=DIR dvi documentation [DOCDIR]
1475 --pdfdir=DIR pdf documentation [DOCDIR]
1476 --psdir=DIR ps documentation [DOCDIR]
1477 _ACEOF
1479 cat <<\_ACEOF
1481 Program names:
1482 --program-prefix=PREFIX prepend PREFIX to installed program names
1483 --program-suffix=SUFFIX append SUFFIX to installed program names
1484 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1486 System types:
1487 --build=BUILD configure for building on BUILD [guessed]
1488 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1489 _ACEOF
1492 if test -n "$ac_init_help"; then
1493 case $ac_init_help in
1494 short | recursive ) echo "Configuration of LTO plugin for ld 0.1:";;
1495 esac
1496 cat <<\_ACEOF
1498 Optional Features:
1499 --disable-option-checking ignore unrecognized --enable/--with options
1500 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1501 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1502 --enable-maintainer-mode enable make rules and dependencies not useful
1503 (and sometimes confusing) to the casual installer
1504 --disable-dependency-tracking speeds up one-time build
1505 --enable-dependency-tracking do not reject slow dependency extractors
1506 --disable-largefile omit support for large files
1507 --enable-shared[=PKGS] build shared libraries [default=yes]
1508 --enable-static[=PKGS] build static libraries [default=yes]
1509 --enable-fast-install[=PKGS]
1510 optimize for fast installation [default=yes]
1511 --disable-libtool-lock avoid locking (might break parallel builds)
1513 Optional Packages:
1514 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1515 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1516 --with-build-libsubdir=DIR Directory where to find libraries for build system
1517 --with-pic try to use only PIC/non-PIC objects [default=use
1518 both]
1519 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1521 Some influential environment variables:
1522 CC C compiler command
1523 CFLAGS C compiler flags
1524 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1525 nonstandard directory <lib dir>
1526 LIBS libraries to pass to the linker, e.g. -l<library>
1527 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1528 you have headers in a nonstandard directory <include dir>
1529 LIBELFLIBS How to link libelf
1530 LIBELFINC How to find libelf include files
1531 CPP C preprocessor
1533 Use these variables to override the choices made by `configure' or to help
1534 it to find libraries and programs with nonstandard names/locations.
1536 Report bugs to the package provider.
1537 _ACEOF
1538 ac_status=$?
1541 if test "$ac_init_help" = "recursive"; then
1542 # If there are subdirs, report their specific --help.
1543 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1544 test -d "$ac_dir" ||
1545 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1546 continue
1547 ac_builddir=.
1549 case "$ac_dir" in
1550 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1552 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1553 # A ".." for each directory in $ac_dir_suffix.
1554 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1555 case $ac_top_builddir_sub in
1556 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1557 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1558 esac ;;
1559 esac
1560 ac_abs_top_builddir=$ac_pwd
1561 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1562 # for backward compatibility:
1563 ac_top_builddir=$ac_top_build_prefix
1565 case $srcdir in
1566 .) # We are building in place.
1567 ac_srcdir=.
1568 ac_top_srcdir=$ac_top_builddir_sub
1569 ac_abs_top_srcdir=$ac_pwd ;;
1570 [\\/]* | ?:[\\/]* ) # Absolute name.
1571 ac_srcdir=$srcdir$ac_dir_suffix;
1572 ac_top_srcdir=$srcdir
1573 ac_abs_top_srcdir=$srcdir ;;
1574 *) # Relative name.
1575 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1576 ac_top_srcdir=$ac_top_build_prefix$srcdir
1577 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1578 esac
1579 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1581 cd "$ac_dir" || { ac_status=$?; continue; }
1582 # Check for guested configure.
1583 if test -f "$ac_srcdir/configure.gnu"; then
1584 echo &&
1585 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1586 elif test -f "$ac_srcdir/configure"; then
1587 echo &&
1588 $SHELL "$ac_srcdir/configure" --help=recursive
1589 else
1590 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1591 fi || ac_status=$?
1592 cd "$ac_pwd" || { ac_status=$?; break; }
1593 done
1596 test -n "$ac_init_help" && exit $ac_status
1597 if $ac_init_version; then
1598 cat <<\_ACEOF
1599 LTO plugin for ld configure 0.1
1600 generated by GNU Autoconf 2.64
1602 Copyright (C) 2009 Free Software Foundation, Inc.
1603 This configure script is free software; the Free Software Foundation
1604 gives unlimited permission to copy, distribute and modify it.
1605 _ACEOF
1606 exit
1609 ## ------------------------ ##
1610 ## Autoconf initialization. ##
1611 ## ------------------------ ##
1613 # ac_fn_c_try_compile LINENO
1614 # --------------------------
1615 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1616 ac_fn_c_try_compile ()
1618 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1619 rm -f conftest.$ac_objext
1620 if { { ac_try="$ac_compile"
1621 case "(($ac_try" in
1622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1623 *) ac_try_echo=$ac_try;;
1624 esac
1625 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1626 $as_echo "$ac_try_echo"; } >&5
1627 (eval "$ac_compile") 2>conftest.err
1628 ac_status=$?
1629 if test -s conftest.err; then
1630 grep -v '^ *+' conftest.err >conftest.er1
1631 cat conftest.er1 >&5
1632 mv -f conftest.er1 conftest.err
1634 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1635 test $ac_status = 0; } && {
1636 test -z "$ac_c_werror_flag" ||
1637 test ! -s conftest.err
1638 } && test -s conftest.$ac_objext; then :
1639 ac_retval=0
1640 else
1641 $as_echo "$as_me: failed program was:" >&5
1642 sed 's/^/| /' conftest.$ac_ext >&5
1644 ac_retval=1
1646 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1647 return $ac_retval
1649 } # ac_fn_c_try_compile
1651 # ac_fn_c_try_link LINENO
1652 # -----------------------
1653 # Try to link conftest.$ac_ext, and return whether this succeeded.
1654 ac_fn_c_try_link ()
1656 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1657 rm -f conftest.$ac_objext conftest$ac_exeext
1658 if { { ac_try="$ac_link"
1659 case "(($ac_try" in
1660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1661 *) ac_try_echo=$ac_try;;
1662 esac
1663 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1664 $as_echo "$ac_try_echo"; } >&5
1665 (eval "$ac_link") 2>conftest.err
1666 ac_status=$?
1667 if test -s conftest.err; then
1668 grep -v '^ *+' conftest.err >conftest.er1
1669 cat conftest.er1 >&5
1670 mv -f conftest.er1 conftest.err
1672 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1673 test $ac_status = 0; } && {
1674 test -z "$ac_c_werror_flag" ||
1675 test ! -s conftest.err
1676 } && test -s conftest$ac_exeext && {
1677 test "$cross_compiling" = yes ||
1678 $as_test_x conftest$ac_exeext
1679 }; then :
1680 ac_retval=0
1681 else
1682 $as_echo "$as_me: failed program was:" >&5
1683 sed 's/^/| /' conftest.$ac_ext >&5
1685 ac_retval=1
1687 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1688 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1689 # interfere with the next link command; also delete a directory that is
1690 # left behind by Apple's compiler. We do this before executing the actions.
1691 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1692 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1693 return $ac_retval
1695 } # ac_fn_c_try_link
1697 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1698 # -------------------------------------------------------
1699 # Tests whether HEADER exists and can be compiled using the include files in
1700 # INCLUDES, setting the cache variable VAR accordingly.
1701 ac_fn_c_check_header_compile ()
1703 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1705 $as_echo_n "checking for $2... " >&6; }
1706 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1707 $as_echo_n "(cached) " >&6
1708 else
1709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1710 /* end confdefs.h. */
1712 #include <$2>
1713 _ACEOF
1714 if ac_fn_c_try_compile "$LINENO"; then :
1715 eval "$3=yes"
1716 else
1717 eval "$3=no"
1719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1721 eval ac_res=\$$3
1722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1723 $as_echo "$ac_res" >&6; }
1724 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1726 } # ac_fn_c_check_header_compile
1728 # ac_fn_c_try_cpp LINENO
1729 # ----------------------
1730 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1731 ac_fn_c_try_cpp ()
1733 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1734 if { { ac_try="$ac_cpp conftest.$ac_ext"
1735 case "(($ac_try" in
1736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1737 *) ac_try_echo=$ac_try;;
1738 esac
1739 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1740 $as_echo "$ac_try_echo"; } >&5
1741 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1742 ac_status=$?
1743 if test -s conftest.err; then
1744 grep -v '^ *+' conftest.err >conftest.er1
1745 cat conftest.er1 >&5
1746 mv -f conftest.er1 conftest.err
1748 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1749 test $ac_status = 0; } >/dev/null && {
1750 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1751 test ! -s conftest.err
1752 }; then :
1753 ac_retval=0
1754 else
1755 $as_echo "$as_me: failed program was:" >&5
1756 sed 's/^/| /' conftest.$ac_ext >&5
1758 ac_retval=1
1760 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1761 return $ac_retval
1763 } # ac_fn_c_try_cpp
1765 # ac_fn_c_try_run LINENO
1766 # ----------------------
1767 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1768 # that executables *can* be run.
1769 ac_fn_c_try_run ()
1771 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1772 if { { ac_try="$ac_link"
1773 case "(($ac_try" in
1774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1775 *) ac_try_echo=$ac_try;;
1776 esac
1777 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1778 $as_echo "$ac_try_echo"; } >&5
1779 (eval "$ac_link") 2>&5
1780 ac_status=$?
1781 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1782 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1783 { { case "(($ac_try" in
1784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1785 *) ac_try_echo=$ac_try;;
1786 esac
1787 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1788 $as_echo "$ac_try_echo"; } >&5
1789 (eval "$ac_try") 2>&5
1790 ac_status=$?
1791 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1792 test $ac_status = 0; }; }; then :
1793 ac_retval=0
1794 else
1795 $as_echo "$as_me: program exited with status $ac_status" >&5
1796 $as_echo "$as_me: failed program was:" >&5
1797 sed 's/^/| /' conftest.$ac_ext >&5
1799 ac_retval=$ac_status
1801 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1802 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1803 return $ac_retval
1805 } # ac_fn_c_try_run
1807 # ac_fn_c_check_func LINENO FUNC VAR
1808 # ----------------------------------
1809 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1810 ac_fn_c_check_func ()
1812 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1814 $as_echo_n "checking for $2... " >&6; }
1815 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1816 $as_echo_n "(cached) " >&6
1817 else
1818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1819 /* end confdefs.h. */
1820 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1821 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1822 #define $2 innocuous_$2
1824 /* System header to define __stub macros and hopefully few prototypes,
1825 which can conflict with char $2 (); below.
1826 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1827 <limits.h> exists even on freestanding compilers. */
1829 #ifdef __STDC__
1830 # include <limits.h>
1831 #else
1832 # include <assert.h>
1833 #endif
1835 #undef $2
1837 /* Override any GCC internal prototype to avoid an error.
1838 Use char because int might match the return type of a GCC
1839 builtin and then its argument prototype would still apply. */
1840 #ifdef __cplusplus
1841 extern "C"
1842 #endif
1843 char $2 ();
1844 /* The GNU C library defines this for functions which it implements
1845 to always fail with ENOSYS. Some functions are actually named
1846 something starting with __ and the normal name is an alias. */
1847 #if defined __stub_$2 || defined __stub___$2
1848 choke me
1849 #endif
1852 main ()
1854 return $2 ();
1856 return 0;
1858 _ACEOF
1859 if ac_fn_c_try_link "$LINENO"; then :
1860 eval "$3=yes"
1861 else
1862 eval "$3=no"
1864 rm -f core conftest.err conftest.$ac_objext \
1865 conftest$ac_exeext conftest.$ac_ext
1867 eval ac_res=\$$3
1868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1869 $as_echo "$ac_res" >&6; }
1870 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1872 } # ac_fn_c_check_func
1874 # ac_fn_c_find_uintX_t LINENO BITS VAR
1875 # ------------------------------------
1876 # Finds an unsigned integer type with width BITS, setting cache variable VAR
1877 # accordingly.
1878 ac_fn_c_find_uintX_t ()
1880 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
1882 $as_echo_n "checking for uint$2_t... " >&6; }
1883 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1884 $as_echo_n "(cached) " >&6
1885 else
1886 eval "$3=no"
1887 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
1888 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
1889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1890 /* end confdefs.h. */
1891 $ac_includes_default
1893 main ()
1895 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
1896 test_array [0] = 0
1899 return 0;
1901 _ACEOF
1902 if ac_fn_c_try_compile "$LINENO"; then :
1903 case $ac_type in #(
1904 uint$2_t) :
1905 eval "$3=yes" ;; #(
1906 *) :
1907 eval "$3=\$ac_type" ;;
1908 esac
1910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1911 eval as_val=\$$3
1912 if test "x$as_val" = x""no; then :
1914 else
1915 break
1917 done
1919 eval ac_res=\$$3
1920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1921 $as_echo "$ac_res" >&6; }
1922 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1924 } # ac_fn_c_find_uintX_t
1925 cat >config.log <<_ACEOF
1926 This file contains any messages produced by compilers while
1927 running configure, to aid debugging if configure makes a mistake.
1929 It was created by LTO plugin for ld $as_me 0.1, which was
1930 generated by GNU Autoconf 2.64. Invocation command line was
1932 $ $0 $@
1934 _ACEOF
1935 exec 5>>config.log
1937 cat <<_ASUNAME
1938 ## --------- ##
1939 ## Platform. ##
1940 ## --------- ##
1942 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1943 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1944 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1945 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1946 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1948 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1949 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1951 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1952 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1953 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1954 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1955 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1956 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1957 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1959 _ASUNAME
1961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1962 for as_dir in $PATH
1964 IFS=$as_save_IFS
1965 test -z "$as_dir" && as_dir=.
1966 $as_echo "PATH: $as_dir"
1967 done
1968 IFS=$as_save_IFS
1970 } >&5
1972 cat >&5 <<_ACEOF
1975 ## ----------- ##
1976 ## Core tests. ##
1977 ## ----------- ##
1979 _ACEOF
1982 # Keep a trace of the command line.
1983 # Strip out --no-create and --no-recursion so they do not pile up.
1984 # Strip out --silent because we don't want to record it for future runs.
1985 # Also quote any args containing shell meta-characters.
1986 # Make two passes to allow for proper duplicate-argument suppression.
1987 ac_configure_args=
1988 ac_configure_args0=
1989 ac_configure_args1=
1990 ac_must_keep_next=false
1991 for ac_pass in 1 2
1993 for ac_arg
1995 case $ac_arg in
1996 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1997 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1998 | -silent | --silent | --silen | --sile | --sil)
1999 continue ;;
2000 *\'*)
2001 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2002 esac
2003 case $ac_pass in
2004 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2006 as_fn_append ac_configure_args1 " '$ac_arg'"
2007 if test $ac_must_keep_next = true; then
2008 ac_must_keep_next=false # Got value, back to normal.
2009 else
2010 case $ac_arg in
2011 *=* | --config-cache | -C | -disable-* | --disable-* \
2012 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2013 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2014 | -with-* | --with-* | -without-* | --without-* | --x)
2015 case "$ac_configure_args0 " in
2016 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2017 esac
2019 -* ) ac_must_keep_next=true ;;
2020 esac
2022 as_fn_append ac_configure_args " '$ac_arg'"
2024 esac
2025 done
2026 done
2027 { ac_configure_args0=; unset ac_configure_args0;}
2028 { ac_configure_args1=; unset ac_configure_args1;}
2030 # When interrupted or exit'd, cleanup temporary files, and complete
2031 # config.log. We remove comments because anyway the quotes in there
2032 # would cause problems or look ugly.
2033 # WARNING: Use '\'' to represent an apostrophe within the trap.
2034 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2035 trap 'exit_status=$?
2036 # Save into config.log some information that might help in debugging.
2038 echo
2040 cat <<\_ASBOX
2041 ## ---------------- ##
2042 ## Cache variables. ##
2043 ## ---------------- ##
2044 _ASBOX
2045 echo
2046 # The following way of writing the cache mishandles newlines in values,
2048 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2049 eval ac_val=\$$ac_var
2050 case $ac_val in #(
2051 *${as_nl}*)
2052 case $ac_var in #(
2053 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2054 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2055 esac
2056 case $ac_var in #(
2057 _ | IFS | as_nl) ;; #(
2058 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2059 *) { eval $ac_var=; unset $ac_var;} ;;
2060 esac ;;
2061 esac
2062 done
2063 (set) 2>&1 |
2064 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2065 *${as_nl}ac_space=\ *)
2066 sed -n \
2067 "s/'\''/'\''\\\\'\'''\''/g;
2068 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2069 ;; #(
2071 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2073 esac |
2074 sort
2076 echo
2078 cat <<\_ASBOX
2079 ## ----------------- ##
2080 ## Output variables. ##
2081 ## ----------------- ##
2082 _ASBOX
2083 echo
2084 for ac_var in $ac_subst_vars
2086 eval ac_val=\$$ac_var
2087 case $ac_val in
2088 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2089 esac
2090 $as_echo "$ac_var='\''$ac_val'\''"
2091 done | sort
2092 echo
2094 if test -n "$ac_subst_files"; then
2095 cat <<\_ASBOX
2096 ## ------------------- ##
2097 ## File substitutions. ##
2098 ## ------------------- ##
2099 _ASBOX
2100 echo
2101 for ac_var in $ac_subst_files
2103 eval ac_val=\$$ac_var
2104 case $ac_val in
2105 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2106 esac
2107 $as_echo "$ac_var='\''$ac_val'\''"
2108 done | sort
2109 echo
2112 if test -s confdefs.h; then
2113 cat <<\_ASBOX
2114 ## ----------- ##
2115 ## confdefs.h. ##
2116 ## ----------- ##
2117 _ASBOX
2118 echo
2119 cat confdefs.h
2120 echo
2122 test "$ac_signal" != 0 &&
2123 $as_echo "$as_me: caught signal $ac_signal"
2124 $as_echo "$as_me: exit $exit_status"
2125 } >&5
2126 rm -f core *.core core.conftest.* &&
2127 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2128 exit $exit_status
2130 for ac_signal in 1 2 13 15; do
2131 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2132 done
2133 ac_signal=0
2135 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2136 rm -f -r conftest* confdefs.h
2138 $as_echo "/* confdefs.h */" > confdefs.h
2140 # Predefined preprocessor variables.
2142 cat >>confdefs.h <<_ACEOF
2143 #define PACKAGE_NAME "$PACKAGE_NAME"
2144 _ACEOF
2146 cat >>confdefs.h <<_ACEOF
2147 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2148 _ACEOF
2150 cat >>confdefs.h <<_ACEOF
2151 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2152 _ACEOF
2154 cat >>confdefs.h <<_ACEOF
2155 #define PACKAGE_STRING "$PACKAGE_STRING"
2156 _ACEOF
2158 cat >>confdefs.h <<_ACEOF
2159 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2160 _ACEOF
2162 cat >>confdefs.h <<_ACEOF
2163 #define PACKAGE_URL "$PACKAGE_URL"
2164 _ACEOF
2167 # Let the site file select an alternate cache file if it wants to.
2168 # Prefer an explicitly selected file to automatically selected ones.
2169 ac_site_file1=NONE
2170 ac_site_file2=NONE
2171 if test -n "$CONFIG_SITE"; then
2172 ac_site_file1=$CONFIG_SITE
2173 elif test "x$prefix" != xNONE; then
2174 ac_site_file1=$prefix/share/config.site
2175 ac_site_file2=$prefix/etc/config.site
2176 else
2177 ac_site_file1=$ac_default_prefix/share/config.site
2178 ac_site_file2=$ac_default_prefix/etc/config.site
2180 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2182 test "x$ac_site_file" = xNONE && continue
2183 if test -r "$ac_site_file"; then
2184 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2185 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2186 sed 's/^/| /' "$ac_site_file" >&5
2187 . "$ac_site_file"
2189 done
2191 if test -r "$cache_file"; then
2192 # Some versions of bash will fail to source /dev/null (special
2193 # files actually), so we avoid doing that.
2194 if test -f "$cache_file"; then
2195 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2196 $as_echo "$as_me: loading cache $cache_file" >&6;}
2197 case $cache_file in
2198 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2199 *) . "./$cache_file";;
2200 esac
2202 else
2203 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2204 $as_echo "$as_me: creating cache $cache_file" >&6;}
2205 >$cache_file
2208 # Check that the precious variables saved in the cache have kept the same
2209 # value.
2210 ac_cache_corrupted=false
2211 for ac_var in $ac_precious_vars; do
2212 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2213 eval ac_new_set=\$ac_env_${ac_var}_set
2214 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2215 eval ac_new_val=\$ac_env_${ac_var}_value
2216 case $ac_old_set,$ac_new_set in
2217 set,)
2218 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2219 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2220 ac_cache_corrupted=: ;;
2221 ,set)
2222 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2223 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2224 ac_cache_corrupted=: ;;
2225 ,);;
2227 if test "x$ac_old_val" != "x$ac_new_val"; then
2228 # differences in whitespace do not lead to failure.
2229 ac_old_val_w=`echo x $ac_old_val`
2230 ac_new_val_w=`echo x $ac_new_val`
2231 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2232 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2233 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2234 ac_cache_corrupted=:
2235 else
2236 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2237 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2238 eval $ac_var=\$ac_old_val
2240 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2241 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2242 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2243 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2244 fi;;
2245 esac
2246 # Pass precious variables to config.status.
2247 if test "$ac_new_set" = set; then
2248 case $ac_new_val in
2249 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2250 *) ac_arg=$ac_var=$ac_new_val ;;
2251 esac
2252 case " $ac_configure_args " in
2253 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2254 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2255 esac
2257 done
2258 if $ac_cache_corrupted; then
2259 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2260 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2261 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2262 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2263 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2265 ## -------------------- ##
2266 ## Main body of script. ##
2267 ## -------------------- ##
2269 ac_ext=c
2270 ac_cpp='$CPP $CPPFLAGS'
2271 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2272 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2273 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2279 ac_aux_dir=
2280 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2281 for ac_t in install-sh install.sh shtool; do
2282 if test -f "$ac_dir/$ac_t"; then
2283 ac_aux_dir=$ac_dir
2284 ac_install_sh="$ac_aux_dir/$ac_t -c"
2285 break 2
2287 done
2288 done
2289 if test -z "$ac_aux_dir"; then
2290 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2293 # These three variables are undocumented and unsupported,
2294 # and are intended to be withdrawn in a future Autoconf release.
2295 # They can cause serious problems if a builder's source tree is in a directory
2296 # whose full name contains unusual characters.
2297 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2298 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2299 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2302 # Make sure we can run config.sub.
2303 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2304 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2307 $as_echo_n "checking build system type... " >&6; }
2308 if test "${ac_cv_build+set}" = set; then :
2309 $as_echo_n "(cached) " >&6
2310 else
2311 ac_build_alias=$build_alias
2312 test "x$ac_build_alias" = x &&
2313 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2314 test "x$ac_build_alias" = x &&
2315 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2316 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2317 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2321 $as_echo "$ac_cv_build" >&6; }
2322 case $ac_cv_build in
2323 *-*-*) ;;
2324 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2325 esac
2326 build=$ac_cv_build
2327 ac_save_IFS=$IFS; IFS='-'
2328 set x $ac_cv_build
2329 shift
2330 build_cpu=$1
2331 build_vendor=$2
2332 shift; shift
2333 # Remember, the first character of IFS is used to create $*,
2334 # except with old shells:
2335 build_os=$*
2336 IFS=$ac_save_IFS
2337 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2340 case ${build_alias} in
2341 "") build_noncanonical=${build} ;;
2342 *) build_noncanonical=${build_alias} ;;
2343 esac
2345 case ${host_alias} in
2346 "") host_noncanonical=${build_noncanonical} ;;
2347 *) host_noncanonical=${host_alias} ;;
2348 esac
2350 case ${target_alias} in
2351 "") target_noncanonical=${host_noncanonical} ;;
2352 *) target_noncanonical=${target_alias} ;;
2353 esac
2356 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2357 # have matching libraries, they should use host libraries: Makefile.tpl
2358 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2359 # However, they still use the build modules, because the corresponding
2360 # host modules (e.g. bison) are only built for the host when bootstrap
2361 # finishes. So:
2362 # - build_subdir is where we find build modules, and never changes.
2363 # - build_libsubdir is where we find build libraries, and can be overridden.
2365 # Prefix 'build-' so this never conflicts with target_subdir.
2366 build_subdir="build-${build_noncanonical}"
2368 # Check whether --with-build-libsubdir was given.
2369 if test "${with_build_libsubdir+set}" = set; then :
2370 withval=$with_build_libsubdir; build_libsubdir="$withval"
2371 else
2372 build_libsubdir="$build_subdir"
2375 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2376 if ( test $srcdir = . && test -d gcc ) \
2377 || test -d $srcdir/../host-${host_noncanonical}; then
2378 host_subdir="host-${host_noncanonical}"
2379 else
2380 host_subdir=.
2382 # No prefix.
2383 target_subdir=${target_noncanonical}
2385 am__api_version='1.11'
2387 # Find a good install program. We prefer a C program (faster),
2388 # so one script is as good as another. But avoid the broken or
2389 # incompatible versions:
2390 # SysV /etc/install, /usr/sbin/install
2391 # SunOS /usr/etc/install
2392 # IRIX /sbin/install
2393 # AIX /bin/install
2394 # AmigaOS /C/install, which installs bootblocks on floppy discs
2395 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2396 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2397 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2398 # OS/2's system install, which has a completely different semantic
2399 # ./install, which can be erroneously created by make from ./install.sh.
2400 # Reject install programs that cannot install multiple files.
2401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2402 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2403 if test -z "$INSTALL"; then
2404 if test "${ac_cv_path_install+set}" = set; then :
2405 $as_echo_n "(cached) " >&6
2406 else
2407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2408 for as_dir in $PATH
2410 IFS=$as_save_IFS
2411 test -z "$as_dir" && as_dir=.
2412 # Account for people who put trailing slashes in PATH elements.
2413 case $as_dir/ in #((
2414 ./ | .// | /[cC]/* | \
2415 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2416 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2417 /usr/ucb/* ) ;;
2419 # OSF1 and SCO ODT 3.0 have their own names for install.
2420 # Don't use installbsd from OSF since it installs stuff as root
2421 # by default.
2422 for ac_prog in ginstall scoinst install; do
2423 for ac_exec_ext in '' $ac_executable_extensions; do
2424 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2425 if test $ac_prog = install &&
2426 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2427 # AIX install. It has an incompatible calling convention.
2429 elif test $ac_prog = install &&
2430 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2431 # program-specific install script used by HP pwplus--don't use.
2433 else
2434 rm -rf conftest.one conftest.two conftest.dir
2435 echo one > conftest.one
2436 echo two > conftest.two
2437 mkdir conftest.dir
2438 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2439 test -s conftest.one && test -s conftest.two &&
2440 test -s conftest.dir/conftest.one &&
2441 test -s conftest.dir/conftest.two
2442 then
2443 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2444 break 3
2448 done
2449 done
2451 esac
2453 done
2454 IFS=$as_save_IFS
2456 rm -rf conftest.one conftest.two conftest.dir
2459 if test "${ac_cv_path_install+set}" = set; then
2460 INSTALL=$ac_cv_path_install
2461 else
2462 # As a last resort, use the slow shell script. Don't cache a
2463 # value for INSTALL within a source directory, because that will
2464 # break other packages using the cache if that directory is
2465 # removed, or if the value is a relative name.
2466 INSTALL=$ac_install_sh
2469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2470 $as_echo "$INSTALL" >&6; }
2472 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2473 # It thinks the first close brace ends the variable substitution.
2474 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2476 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2478 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2481 $as_echo_n "checking whether build environment is sane... " >&6; }
2482 # Just in case
2483 sleep 1
2484 echo timestamp > conftest.file
2485 # Reject unsafe characters in $srcdir or the absolute working directory
2486 # name. Accept space and tab only in the latter.
2487 am_lf='
2489 case `pwd` in
2490 *[\\\"\#\$\&\'\`$am_lf]*)
2491 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2492 esac
2493 case $srcdir in
2494 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2495 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2496 esac
2498 # Do `set' in a subshell so we don't clobber the current shell's
2499 # arguments. Must try -L first in case configure is actually a
2500 # symlink; some systems play weird games with the mod time of symlinks
2501 # (eg FreeBSD returns the mod time of the symlink's containing
2502 # directory).
2503 if (
2504 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2505 if test "$*" = "X"; then
2506 # -L didn't work.
2507 set X `ls -t "$srcdir/configure" conftest.file`
2509 rm -f conftest.file
2510 if test "$*" != "X $srcdir/configure conftest.file" \
2511 && test "$*" != "X conftest.file $srcdir/configure"; then
2513 # If neither matched, then we have a broken ls. This can happen
2514 # if, for instance, CONFIG_SHELL is bash and it inherits a
2515 # broken ls alias from the environment. This has actually
2516 # happened. Such a system could not be considered "sane".
2517 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2518 alias in your environment" "$LINENO" 5
2521 test "$2" = conftest.file
2523 then
2524 # Ok.
2526 else
2527 as_fn_error "newly created file is older than distributed files!
2528 Check your system clock" "$LINENO" 5
2530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2531 $as_echo "yes" >&6; }
2532 test "$program_prefix" != NONE &&
2533 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2534 # Use a double $ so make ignores it.
2535 test "$program_suffix" != NONE &&
2536 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2537 # Double any \ or $.
2538 # By default was `s,x,x', remove it if useless.
2539 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2540 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2542 # expand $ac_aux_dir to an absolute path
2543 am_aux_dir=`cd $ac_aux_dir && pwd`
2545 if test x"${MISSING+set}" != xset; then
2546 case $am_aux_dir in
2547 *\ * | *\ *)
2548 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2550 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2551 esac
2553 # Use eval to expand $SHELL
2554 if eval "$MISSING --run true"; then
2555 am_missing_run="$MISSING --run "
2556 else
2557 am_missing_run=
2558 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2559 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2562 if test x"${install_sh}" != xset; then
2563 case $am_aux_dir in
2564 *\ * | *\ *)
2565 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2567 install_sh="\${SHELL} $am_aux_dir/install-sh"
2568 esac
2571 # Installed binaries are usually stripped using `strip' when the user
2572 # run `make install-strip'. However `strip' might not be the right
2573 # tool to use in cross-compilation environments, therefore Automake
2574 # will honor the `STRIP' environment variable to overrule this program.
2575 if test "$cross_compiling" != no; then
2576 if test -n "$ac_tool_prefix"; then
2577 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2578 set dummy ${ac_tool_prefix}strip; ac_word=$2
2579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2580 $as_echo_n "checking for $ac_word... " >&6; }
2581 if test "${ac_cv_prog_STRIP+set}" = set; then :
2582 $as_echo_n "(cached) " >&6
2583 else
2584 if test -n "$STRIP"; then
2585 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2586 else
2587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2588 for as_dir in $PATH
2590 IFS=$as_save_IFS
2591 test -z "$as_dir" && as_dir=.
2592 for ac_exec_ext in '' $ac_executable_extensions; do
2593 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2594 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2596 break 2
2598 done
2599 done
2600 IFS=$as_save_IFS
2604 STRIP=$ac_cv_prog_STRIP
2605 if test -n "$STRIP"; then
2606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2607 $as_echo "$STRIP" >&6; }
2608 else
2609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2610 $as_echo "no" >&6; }
2615 if test -z "$ac_cv_prog_STRIP"; then
2616 ac_ct_STRIP=$STRIP
2617 # Extract the first word of "strip", so it can be a program name with args.
2618 set dummy strip; ac_word=$2
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2620 $as_echo_n "checking for $ac_word... " >&6; }
2621 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2622 $as_echo_n "(cached) " >&6
2623 else
2624 if test -n "$ac_ct_STRIP"; then
2625 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2626 else
2627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2628 for as_dir in $PATH
2630 IFS=$as_save_IFS
2631 test -z "$as_dir" && as_dir=.
2632 for ac_exec_ext in '' $ac_executable_extensions; do
2633 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2634 ac_cv_prog_ac_ct_STRIP="strip"
2635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2636 break 2
2638 done
2639 done
2640 IFS=$as_save_IFS
2644 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2645 if test -n "$ac_ct_STRIP"; then
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2647 $as_echo "$ac_ct_STRIP" >&6; }
2648 else
2649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2650 $as_echo "no" >&6; }
2653 if test "x$ac_ct_STRIP" = x; then
2654 STRIP=":"
2655 else
2656 case $cross_compiling:$ac_tool_warned in
2657 yes:)
2658 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2659 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2660 ac_tool_warned=yes ;;
2661 esac
2662 STRIP=$ac_ct_STRIP
2664 else
2665 STRIP="$ac_cv_prog_STRIP"
2669 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2672 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2673 if test -z "$MKDIR_P"; then
2674 if test "${ac_cv_path_mkdir+set}" = set; then :
2675 $as_echo_n "(cached) " >&6
2676 else
2677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2678 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2680 IFS=$as_save_IFS
2681 test -z "$as_dir" && as_dir=.
2682 for ac_prog in mkdir gmkdir; do
2683 for ac_exec_ext in '' $ac_executable_extensions; do
2684 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2685 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2686 'mkdir (GNU coreutils) '* | \
2687 'mkdir (coreutils) '* | \
2688 'mkdir (fileutils) '4.1*)
2689 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2690 break 3;;
2691 esac
2692 done
2693 done
2694 done
2695 IFS=$as_save_IFS
2699 if test "${ac_cv_path_mkdir+set}" = set; then
2700 MKDIR_P="$ac_cv_path_mkdir -p"
2701 else
2702 # As a last resort, use the slow shell script. Don't cache a
2703 # value for MKDIR_P within a source directory, because that will
2704 # break other packages using the cache if that directory is
2705 # removed, or if the value is a relative name.
2706 test -d ./--version && rmdir ./--version
2707 MKDIR_P="$ac_install_sh -d"
2710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2711 $as_echo "$MKDIR_P" >&6; }
2713 mkdir_p="$MKDIR_P"
2714 case $mkdir_p in
2715 [\\/$]* | ?:[\\/]*) ;;
2716 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2717 esac
2719 for ac_prog in gawk mawk nawk awk
2721 # Extract the first word of "$ac_prog", so it can be a program name with args.
2722 set dummy $ac_prog; ac_word=$2
2723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2724 $as_echo_n "checking for $ac_word... " >&6; }
2725 if test "${ac_cv_prog_AWK+set}" = set; then :
2726 $as_echo_n "(cached) " >&6
2727 else
2728 if test -n "$AWK"; then
2729 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2730 else
2731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2732 for as_dir in $PATH
2734 IFS=$as_save_IFS
2735 test -z "$as_dir" && as_dir=.
2736 for ac_exec_ext in '' $ac_executable_extensions; do
2737 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2738 ac_cv_prog_AWK="$ac_prog"
2739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2740 break 2
2742 done
2743 done
2744 IFS=$as_save_IFS
2748 AWK=$ac_cv_prog_AWK
2749 if test -n "$AWK"; then
2750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2751 $as_echo "$AWK" >&6; }
2752 else
2753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2754 $as_echo "no" >&6; }
2758 test -n "$AWK" && break
2759 done
2761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2762 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2763 set x ${MAKE-make}
2764 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2765 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2766 $as_echo_n "(cached) " >&6
2767 else
2768 cat >conftest.make <<\_ACEOF
2769 SHELL = /bin/sh
2770 all:
2771 @echo '@@@%%%=$(MAKE)=@@@%%%'
2772 _ACEOF
2773 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2774 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2775 *@@@%%%=?*=@@@%%%*)
2776 eval ac_cv_prog_make_${ac_make}_set=yes;;
2778 eval ac_cv_prog_make_${ac_make}_set=no;;
2779 esac
2780 rm -f conftest.make
2782 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2784 $as_echo "yes" >&6; }
2785 SET_MAKE=
2786 else
2787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2788 $as_echo "no" >&6; }
2789 SET_MAKE="MAKE=${MAKE-make}"
2792 rm -rf .tst 2>/dev/null
2793 mkdir .tst 2>/dev/null
2794 if test -d .tst; then
2795 am__leading_dot=.
2796 else
2797 am__leading_dot=_
2799 rmdir .tst 2>/dev/null
2801 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2802 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2803 # is not polluted with repeated "-I."
2804 am__isrc=' -I$(srcdir)'
2805 # test to see if srcdir already configured
2806 if test -f $srcdir/config.status; then
2807 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2811 # test whether we have cygpath
2812 if test -z "$CYGPATH_W"; then
2813 if (cygpath --version) >/dev/null 2>/dev/null; then
2814 CYGPATH_W='cygpath -w'
2815 else
2816 CYGPATH_W=echo
2821 # Define the identity of the package.
2822 PACKAGE='lto-plugin'
2823 VERSION='0.1'
2826 cat >>confdefs.h <<_ACEOF
2827 #define PACKAGE "$PACKAGE"
2828 _ACEOF
2831 cat >>confdefs.h <<_ACEOF
2832 #define VERSION "$VERSION"
2833 _ACEOF
2835 # Some tools Automake needs.
2837 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2840 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2843 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2846 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2849 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2851 # We need awk for the "check" target. The system "awk" is bad on
2852 # some platforms.
2853 # Always define AMTAR for backward compatibility.
2855 AMTAR=${AMTAR-"${am_missing_run}tar"}
2857 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2865 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2866 # Check whether --enable-maintainer-mode was given.
2867 if test "${enable_maintainer_mode+set}" = set; then :
2868 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2869 else
2870 USE_MAINTAINER_MODE=no
2873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2874 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2875 if test $USE_MAINTAINER_MODE = yes; then
2876 MAINTAINER_MODE_TRUE=
2877 MAINTAINER_MODE_FALSE='#'
2878 else
2879 MAINTAINER_MODE_TRUE='#'
2880 MAINTAINER_MODE_FALSE=
2883 MAINT=$MAINTAINER_MODE_TRUE
2886 ac_ext=c
2887 ac_cpp='$CPP $CPPFLAGS'
2888 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2889 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2890 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2891 if test -n "$ac_tool_prefix"; then
2892 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2893 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2895 $as_echo_n "checking for $ac_word... " >&6; }
2896 if test "${ac_cv_prog_CC+set}" = set; then :
2897 $as_echo_n "(cached) " >&6
2898 else
2899 if test -n "$CC"; then
2900 ac_cv_prog_CC="$CC" # Let the user override the test.
2901 else
2902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2903 for as_dir in $PATH
2905 IFS=$as_save_IFS
2906 test -z "$as_dir" && as_dir=.
2907 for ac_exec_ext in '' $ac_executable_extensions; do
2908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2909 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2911 break 2
2913 done
2914 done
2915 IFS=$as_save_IFS
2919 CC=$ac_cv_prog_CC
2920 if test -n "$CC"; then
2921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2922 $as_echo "$CC" >&6; }
2923 else
2924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2925 $as_echo "no" >&6; }
2930 if test -z "$ac_cv_prog_CC"; then
2931 ac_ct_CC=$CC
2932 # Extract the first word of "gcc", so it can be a program name with args.
2933 set dummy gcc; ac_word=$2
2934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2935 $as_echo_n "checking for $ac_word... " >&6; }
2936 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2937 $as_echo_n "(cached) " >&6
2938 else
2939 if test -n "$ac_ct_CC"; then
2940 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2941 else
2942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2943 for as_dir in $PATH
2945 IFS=$as_save_IFS
2946 test -z "$as_dir" && as_dir=.
2947 for ac_exec_ext in '' $ac_executable_extensions; do
2948 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2949 ac_cv_prog_ac_ct_CC="gcc"
2950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2951 break 2
2953 done
2954 done
2955 IFS=$as_save_IFS
2959 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2960 if test -n "$ac_ct_CC"; then
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2962 $as_echo "$ac_ct_CC" >&6; }
2963 else
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2965 $as_echo "no" >&6; }
2968 if test "x$ac_ct_CC" = x; then
2969 CC=""
2970 else
2971 case $cross_compiling:$ac_tool_warned in
2972 yes:)
2973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2974 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2975 ac_tool_warned=yes ;;
2976 esac
2977 CC=$ac_ct_CC
2979 else
2980 CC="$ac_cv_prog_CC"
2983 if test -z "$CC"; then
2984 if test -n "$ac_tool_prefix"; then
2985 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2986 set dummy ${ac_tool_prefix}cc; ac_word=$2
2987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2988 $as_echo_n "checking for $ac_word... " >&6; }
2989 if test "${ac_cv_prog_CC+set}" = set; then :
2990 $as_echo_n "(cached) " >&6
2991 else
2992 if test -n "$CC"; then
2993 ac_cv_prog_CC="$CC" # Let the user override the test.
2994 else
2995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2996 for as_dir in $PATH
2998 IFS=$as_save_IFS
2999 test -z "$as_dir" && as_dir=.
3000 for ac_exec_ext in '' $ac_executable_extensions; do
3001 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3002 ac_cv_prog_CC="${ac_tool_prefix}cc"
3003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3004 break 2
3006 done
3007 done
3008 IFS=$as_save_IFS
3012 CC=$ac_cv_prog_CC
3013 if test -n "$CC"; then
3014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3015 $as_echo "$CC" >&6; }
3016 else
3017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3018 $as_echo "no" >&6; }
3024 if test -z "$CC"; then
3025 # Extract the first word of "cc", so it can be a program name with args.
3026 set dummy cc; ac_word=$2
3027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3028 $as_echo_n "checking for $ac_word... " >&6; }
3029 if test "${ac_cv_prog_CC+set}" = set; then :
3030 $as_echo_n "(cached) " >&6
3031 else
3032 if test -n "$CC"; then
3033 ac_cv_prog_CC="$CC" # Let the user override the test.
3034 else
3035 ac_prog_rejected=no
3036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3037 for as_dir in $PATH
3039 IFS=$as_save_IFS
3040 test -z "$as_dir" && as_dir=.
3041 for ac_exec_ext in '' $ac_executable_extensions; do
3042 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3043 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3044 ac_prog_rejected=yes
3045 continue
3047 ac_cv_prog_CC="cc"
3048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3049 break 2
3051 done
3052 done
3053 IFS=$as_save_IFS
3055 if test $ac_prog_rejected = yes; then
3056 # We found a bogon in the path, so make sure we never use it.
3057 set dummy $ac_cv_prog_CC
3058 shift
3059 if test $# != 0; then
3060 # We chose a different compiler from the bogus one.
3061 # However, it has the same basename, so the bogon will be chosen
3062 # first if we set CC to just the basename; use the full file name.
3063 shift
3064 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3069 CC=$ac_cv_prog_CC
3070 if test -n "$CC"; then
3071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3072 $as_echo "$CC" >&6; }
3073 else
3074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3075 $as_echo "no" >&6; }
3080 if test -z "$CC"; then
3081 if test -n "$ac_tool_prefix"; then
3082 for ac_prog in cl.exe
3084 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3085 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3087 $as_echo_n "checking for $ac_word... " >&6; }
3088 if test "${ac_cv_prog_CC+set}" = set; then :
3089 $as_echo_n "(cached) " >&6
3090 else
3091 if test -n "$CC"; then
3092 ac_cv_prog_CC="$CC" # Let the user override the test.
3093 else
3094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3095 for as_dir in $PATH
3097 IFS=$as_save_IFS
3098 test -z "$as_dir" && as_dir=.
3099 for ac_exec_ext in '' $ac_executable_extensions; do
3100 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3101 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3103 break 2
3105 done
3106 done
3107 IFS=$as_save_IFS
3111 CC=$ac_cv_prog_CC
3112 if test -n "$CC"; then
3113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3114 $as_echo "$CC" >&6; }
3115 else
3116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3117 $as_echo "no" >&6; }
3121 test -n "$CC" && break
3122 done
3124 if test -z "$CC"; then
3125 ac_ct_CC=$CC
3126 for ac_prog in cl.exe
3128 # Extract the first word of "$ac_prog", so it can be a program name with args.
3129 set dummy $ac_prog; ac_word=$2
3130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3131 $as_echo_n "checking for $ac_word... " >&6; }
3132 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3133 $as_echo_n "(cached) " >&6
3134 else
3135 if test -n "$ac_ct_CC"; then
3136 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3137 else
3138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3139 for as_dir in $PATH
3141 IFS=$as_save_IFS
3142 test -z "$as_dir" && as_dir=.
3143 for ac_exec_ext in '' $ac_executable_extensions; do
3144 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3145 ac_cv_prog_ac_ct_CC="$ac_prog"
3146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3147 break 2
3149 done
3150 done
3151 IFS=$as_save_IFS
3155 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3156 if test -n "$ac_ct_CC"; then
3157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3158 $as_echo "$ac_ct_CC" >&6; }
3159 else
3160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3161 $as_echo "no" >&6; }
3165 test -n "$ac_ct_CC" && break
3166 done
3168 if test "x$ac_ct_CC" = x; then
3169 CC=""
3170 else
3171 case $cross_compiling:$ac_tool_warned in
3172 yes:)
3173 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3174 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3175 ac_tool_warned=yes ;;
3176 esac
3177 CC=$ac_ct_CC
3184 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3185 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3186 as_fn_error "no acceptable C compiler found in \$PATH
3187 See \`config.log' for more details." "$LINENO" 5; }
3189 # Provide some information about the compiler.
3190 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3191 set X $ac_compile
3192 ac_compiler=$2
3193 for ac_option in --version -v -V -qversion; do
3194 { { ac_try="$ac_compiler $ac_option >&5"
3195 case "(($ac_try" in
3196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3197 *) ac_try_echo=$ac_try;;
3198 esac
3199 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3200 $as_echo "$ac_try_echo"; } >&5
3201 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3202 ac_status=$?
3203 if test -s conftest.err; then
3204 sed '10a\
3205 ... rest of stderr output deleted ...
3206 10q' conftest.err >conftest.er1
3207 cat conftest.er1 >&5
3208 rm -f conftest.er1 conftest.err
3210 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3211 test $ac_status = 0; }
3212 done
3214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3215 /* end confdefs.h. */
3218 main ()
3222 return 0;
3224 _ACEOF
3225 ac_clean_files_save=$ac_clean_files
3226 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3227 # Try to create an executable without -o first, disregard a.out.
3228 # It will help us diagnose broken compilers, and finding out an intuition
3229 # of exeext.
3230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3231 $as_echo_n "checking for C compiler default output file name... " >&6; }
3232 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3234 # The possible output files:
3235 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3237 ac_rmfiles=
3238 for ac_file in $ac_files
3240 case $ac_file in
3241 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3242 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3243 esac
3244 done
3245 rm -f $ac_rmfiles
3247 if { { ac_try="$ac_link_default"
3248 case "(($ac_try" in
3249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3250 *) ac_try_echo=$ac_try;;
3251 esac
3252 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3253 $as_echo "$ac_try_echo"; } >&5
3254 (eval "$ac_link_default") 2>&5
3255 ac_status=$?
3256 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3257 test $ac_status = 0; }; then :
3258 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3259 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3260 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3261 # so that the user can short-circuit this test for compilers unknown to
3262 # Autoconf.
3263 for ac_file in $ac_files ''
3265 test -f "$ac_file" || continue
3266 case $ac_file in
3267 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3269 [ab].out )
3270 # We found the default executable, but exeext='' is most
3271 # certainly right.
3272 break;;
3273 *.* )
3274 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3275 then :; else
3276 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3278 # We set ac_cv_exeext here because the later test for it is not
3279 # safe: cross compilers may not add the suffix if given an `-o'
3280 # argument, so we may need to know it at that point already.
3281 # Even if this section looks crufty: it has the advantage of
3282 # actually working.
3283 break;;
3285 break;;
3286 esac
3287 done
3288 test "$ac_cv_exeext" = no && ac_cv_exeext=
3290 else
3291 ac_file=''
3293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3294 $as_echo "$ac_file" >&6; }
3295 if test -z "$ac_file"; then :
3296 $as_echo "$as_me: failed program was:" >&5
3297 sed 's/^/| /' conftest.$ac_ext >&5
3299 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3300 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3301 { as_fn_set_status 77
3302 as_fn_error "C compiler cannot create executables
3303 See \`config.log' for more details." "$LINENO" 5; }; }
3305 ac_exeext=$ac_cv_exeext
3307 # Check that the compiler produces executables we can run. If not, either
3308 # the compiler is broken, or we cross compile.
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3310 $as_echo_n "checking whether the C compiler works... " >&6; }
3311 # If not cross compiling, check that we can run a simple program.
3312 if test "$cross_compiling" != yes; then
3313 if { ac_try='./$ac_file'
3314 { { case "(($ac_try" in
3315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3316 *) ac_try_echo=$ac_try;;
3317 esac
3318 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3319 $as_echo "$ac_try_echo"; } >&5
3320 (eval "$ac_try") 2>&5
3321 ac_status=$?
3322 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3323 test $ac_status = 0; }; }; then
3324 cross_compiling=no
3325 else
3326 if test "$cross_compiling" = maybe; then
3327 cross_compiling=yes
3328 else
3329 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3330 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3331 as_fn_error "cannot run C compiled programs.
3332 If you meant to cross compile, use \`--host'.
3333 See \`config.log' for more details." "$LINENO" 5; }
3337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3338 $as_echo "yes" >&6; }
3340 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3341 ac_clean_files=$ac_clean_files_save
3342 # Check that the compiler produces executables we can run. If not, either
3343 # the compiler is broken, or we cross compile.
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3345 $as_echo_n "checking whether we are cross compiling... " >&6; }
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3347 $as_echo "$cross_compiling" >&6; }
3349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3350 $as_echo_n "checking for suffix of executables... " >&6; }
3351 if { { ac_try="$ac_link"
3352 case "(($ac_try" in
3353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3354 *) ac_try_echo=$ac_try;;
3355 esac
3356 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3357 $as_echo "$ac_try_echo"; } >&5
3358 (eval "$ac_link") 2>&5
3359 ac_status=$?
3360 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3361 test $ac_status = 0; }; then :
3362 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3363 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3364 # work properly (i.e., refer to `conftest.exe'), while it won't with
3365 # `rm'.
3366 for ac_file in conftest.exe conftest conftest.*; do
3367 test -f "$ac_file" || continue
3368 case $ac_file in
3369 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3370 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3371 break;;
3372 * ) break;;
3373 esac
3374 done
3375 else
3376 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3377 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3378 as_fn_error "cannot compute suffix of executables: cannot compile and link
3379 See \`config.log' for more details." "$LINENO" 5; }
3381 rm -f conftest$ac_cv_exeext
3382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3383 $as_echo "$ac_cv_exeext" >&6; }
3385 rm -f conftest.$ac_ext
3386 EXEEXT=$ac_cv_exeext
3387 ac_exeext=$EXEEXT
3388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3389 $as_echo_n "checking for suffix of object files... " >&6; }
3390 if test "${ac_cv_objext+set}" = set; then :
3391 $as_echo_n "(cached) " >&6
3392 else
3393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3394 /* end confdefs.h. */
3397 main ()
3401 return 0;
3403 _ACEOF
3404 rm -f conftest.o conftest.obj
3405 if { { ac_try="$ac_compile"
3406 case "(($ac_try" in
3407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3408 *) ac_try_echo=$ac_try;;
3409 esac
3410 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3411 $as_echo "$ac_try_echo"; } >&5
3412 (eval "$ac_compile") 2>&5
3413 ac_status=$?
3414 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3415 test $ac_status = 0; }; then :
3416 for ac_file in conftest.o conftest.obj conftest.*; do
3417 test -f "$ac_file" || continue;
3418 case $ac_file in
3419 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3420 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3421 break;;
3422 esac
3423 done
3424 else
3425 $as_echo "$as_me: failed program was:" >&5
3426 sed 's/^/| /' conftest.$ac_ext >&5
3428 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3429 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3430 as_fn_error "cannot compute suffix of object files: cannot compile
3431 See \`config.log' for more details." "$LINENO" 5; }
3433 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3436 $as_echo "$ac_cv_objext" >&6; }
3437 OBJEXT=$ac_cv_objext
3438 ac_objext=$OBJEXT
3439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3440 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3441 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3442 $as_echo_n "(cached) " >&6
3443 else
3444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3445 /* end confdefs.h. */
3448 main ()
3450 #ifndef __GNUC__
3451 choke me
3452 #endif
3455 return 0;
3457 _ACEOF
3458 if ac_fn_c_try_compile "$LINENO"; then :
3459 ac_compiler_gnu=yes
3460 else
3461 ac_compiler_gnu=no
3463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3464 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3468 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3469 if test $ac_compiler_gnu = yes; then
3470 GCC=yes
3471 else
3472 GCC=
3474 ac_test_CFLAGS=${CFLAGS+set}
3475 ac_save_CFLAGS=$CFLAGS
3476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3477 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3478 if test "${ac_cv_prog_cc_g+set}" = set; then :
3479 $as_echo_n "(cached) " >&6
3480 else
3481 ac_save_c_werror_flag=$ac_c_werror_flag
3482 ac_c_werror_flag=yes
3483 ac_cv_prog_cc_g=no
3484 CFLAGS="-g"
3485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3486 /* end confdefs.h. */
3489 main ()
3493 return 0;
3495 _ACEOF
3496 if ac_fn_c_try_compile "$LINENO"; then :
3497 ac_cv_prog_cc_g=yes
3498 else
3499 CFLAGS=""
3500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3501 /* end confdefs.h. */
3504 main ()
3508 return 0;
3510 _ACEOF
3511 if ac_fn_c_try_compile "$LINENO"; then :
3513 else
3514 ac_c_werror_flag=$ac_save_c_werror_flag
3515 CFLAGS="-g"
3516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3517 /* end confdefs.h. */
3520 main ()
3524 return 0;
3526 _ACEOF
3527 if ac_fn_c_try_compile "$LINENO"; then :
3528 ac_cv_prog_cc_g=yes
3530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3535 ac_c_werror_flag=$ac_save_c_werror_flag
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3538 $as_echo "$ac_cv_prog_cc_g" >&6; }
3539 if test "$ac_test_CFLAGS" = set; then
3540 CFLAGS=$ac_save_CFLAGS
3541 elif test $ac_cv_prog_cc_g = yes; then
3542 if test "$GCC" = yes; then
3543 CFLAGS="-g -O2"
3544 else
3545 CFLAGS="-g"
3547 else
3548 if test "$GCC" = yes; then
3549 CFLAGS="-O2"
3550 else
3551 CFLAGS=
3554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3555 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3556 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3557 $as_echo_n "(cached) " >&6
3558 else
3559 ac_cv_prog_cc_c89=no
3560 ac_save_CC=$CC
3561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3562 /* end confdefs.h. */
3563 #include <stdarg.h>
3564 #include <stdio.h>
3565 #include <sys/types.h>
3566 #include <sys/stat.h>
3567 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3568 struct buf { int x; };
3569 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3570 static char *e (p, i)
3571 char **p;
3572 int i;
3574 return p[i];
3576 static char *f (char * (*g) (char **, int), char **p, ...)
3578 char *s;
3579 va_list v;
3580 va_start (v,p);
3581 s = g (p, va_arg (v,int));
3582 va_end (v);
3583 return s;
3586 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3587 function prototypes and stuff, but not '\xHH' hex character constants.
3588 These don't provoke an error unfortunately, instead are silently treated
3589 as 'x'. The following induces an error, until -std is added to get
3590 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3591 array size at least. It's necessary to write '\x00'==0 to get something
3592 that's true only with -std. */
3593 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3595 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3596 inside strings and character constants. */
3597 #define FOO(x) 'x'
3598 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3600 int test (int i, double x);
3601 struct s1 {int (*f) (int a);};
3602 struct s2 {int (*f) (double a);};
3603 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3604 int argc;
3605 char **argv;
3607 main ()
3609 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3611 return 0;
3613 _ACEOF
3614 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3615 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3617 CC="$ac_save_CC $ac_arg"
3618 if ac_fn_c_try_compile "$LINENO"; then :
3619 ac_cv_prog_cc_c89=$ac_arg
3621 rm -f core conftest.err conftest.$ac_objext
3622 test "x$ac_cv_prog_cc_c89" != "xno" && break
3623 done
3624 rm -f conftest.$ac_ext
3625 CC=$ac_save_CC
3628 # AC_CACHE_VAL
3629 case "x$ac_cv_prog_cc_c89" in
3631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3632 $as_echo "none needed" >&6; } ;;
3633 xno)
3634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3635 $as_echo "unsupported" >&6; } ;;
3637 CC="$CC $ac_cv_prog_cc_c89"
3638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3639 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3640 esac
3641 if test "x$ac_cv_prog_cc_c89" != xno; then :
3645 ac_ext=c
3646 ac_cpp='$CPP $CPPFLAGS'
3647 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3648 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3649 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3650 DEPDIR="${am__leading_dot}deps"
3652 ac_config_commands="$ac_config_commands depfiles"
3655 am_make=${MAKE-make}
3656 cat > confinc << 'END'
3657 am__doit:
3658 @echo this is the am__doit target
3659 .PHONY: am__doit
3661 # If we don't find an include directive, just comment out the code.
3662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3663 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3664 am__include="#"
3665 am__quote=
3666 _am_result=none
3667 # First try GNU make style include.
3668 echo "include confinc" > confmf
3669 # Ignore all kinds of additional output from `make'.
3670 case `$am_make -s -f confmf 2> /dev/null` in #(
3671 *the\ am__doit\ target*)
3672 am__include=include
3673 am__quote=
3674 _am_result=GNU
3676 esac
3677 # Now try BSD make style include.
3678 if test "$am__include" = "#"; then
3679 echo '.include "confinc"' > confmf
3680 case `$am_make -s -f confmf 2> /dev/null` in #(
3681 *the\ am__doit\ target*)
3682 am__include=.include
3683 am__quote="\""
3684 _am_result=BSD
3686 esac
3690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3691 $as_echo "$_am_result" >&6; }
3692 rm -f confinc confmf
3694 # Check whether --enable-dependency-tracking was given.
3695 if test "${enable_dependency_tracking+set}" = set; then :
3696 enableval=$enable_dependency_tracking;
3699 if test "x$enable_dependency_tracking" != xno; then
3700 am_depcomp="$ac_aux_dir/depcomp"
3701 AMDEPBACKSLASH='\'
3703 if test "x$enable_dependency_tracking" != xno; then
3704 AMDEP_TRUE=
3705 AMDEP_FALSE='#'
3706 else
3707 AMDEP_TRUE='#'
3708 AMDEP_FALSE=
3713 depcc="$CC" am_compiler_list=
3715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3716 $as_echo_n "checking dependency style of $depcc... " >&6; }
3717 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3718 $as_echo_n "(cached) " >&6
3719 else
3720 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3721 # We make a subdir and do the tests there. Otherwise we can end up
3722 # making bogus files that we don't know about and never remove. For
3723 # instance it was reported that on HP-UX the gcc test will end up
3724 # making a dummy file named `D' -- because `-MD' means `put the output
3725 # in D'.
3726 mkdir conftest.dir
3727 # Copy depcomp to subdir because otherwise we won't find it if we're
3728 # using a relative directory.
3729 cp "$am_depcomp" conftest.dir
3730 cd conftest.dir
3731 # We will build objects and dependencies in a subdirectory because
3732 # it helps to detect inapplicable dependency modes. For instance
3733 # both Tru64's cc and ICC support -MD to output dependencies as a
3734 # side effect of compilation, but ICC will put the dependencies in
3735 # the current directory while Tru64 will put them in the object
3736 # directory.
3737 mkdir sub
3739 am_cv_CC_dependencies_compiler_type=none
3740 if test "$am_compiler_list" = ""; then
3741 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3743 am__universal=false
3744 case " $depcc " in #(
3745 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3746 esac
3748 for depmode in $am_compiler_list; do
3749 # Setup a source with many dependencies, because some compilers
3750 # like to wrap large dependency lists on column 80 (with \), and
3751 # we should not choose a depcomp mode which is confused by this.
3753 # We need to recreate these files for each test, as the compiler may
3754 # overwrite some of them when testing with obscure command lines.
3755 # This happens at least with the AIX C compiler.
3756 : > sub/conftest.c
3757 for i in 1 2 3 4 5 6; do
3758 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3759 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3760 # Solaris 8's {/usr,}/bin/sh.
3761 touch sub/conftst$i.h
3762 done
3763 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3765 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3766 # mode. It turns out that the SunPro C++ compiler does not properly
3767 # handle `-M -o', and we need to detect this. Also, some Intel
3768 # versions had trouble with output in subdirs
3769 am__obj=sub/conftest.${OBJEXT-o}
3770 am__minus_obj="-o $am__obj"
3771 case $depmode in
3772 gcc)
3773 # This depmode causes a compiler race in universal mode.
3774 test "$am__universal" = false || continue
3776 nosideeffect)
3777 # after this tag, mechanisms are not by side-effect, so they'll
3778 # only be used when explicitly requested
3779 if test "x$enable_dependency_tracking" = xyes; then
3780 continue
3781 else
3782 break
3785 msvisualcpp | msvcmsys)
3786 # This compiler won't grok `-c -o', but also, the minuso test has
3787 # not run yet. These depmodes are late enough in the game, and
3788 # so weak that their functioning should not be impacted.
3789 am__obj=conftest.${OBJEXT-o}
3790 am__minus_obj=
3792 none) break ;;
3793 esac
3794 if depmode=$depmode \
3795 source=sub/conftest.c object=$am__obj \
3796 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3797 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3798 >/dev/null 2>conftest.err &&
3799 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3800 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3801 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3802 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3803 # icc doesn't choke on unknown options, it will just issue warnings
3804 # or remarks (even with -Werror). So we grep stderr for any message
3805 # that says an option was ignored or not supported.
3806 # When given -MP, icc 7.0 and 7.1 complain thusly:
3807 # icc: Command line warning: ignoring option '-M'; no argument required
3808 # The diagnosis changed in icc 8.0:
3809 # icc: Command line remark: option '-MP' not supported
3810 if (grep 'ignoring option' conftest.err ||
3811 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3812 am_cv_CC_dependencies_compiler_type=$depmode
3813 break
3816 done
3818 cd ..
3819 rm -rf conftest.dir
3820 else
3821 am_cv_CC_dependencies_compiler_type=none
3825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3826 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3827 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3830 test "x$enable_dependency_tracking" != xno \
3831 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3832 am__fastdepCC_TRUE=
3833 am__fastdepCC_FALSE='#'
3834 else
3835 am__fastdepCC_TRUE='#'
3836 am__fastdepCC_FALSE=
3841 # Check whether --enable-largefile was given.
3842 if test "${enable_largefile+set}" = set; then :
3843 enableval=$enable_largefile;
3846 if test "$enable_largefile" != no; then
3848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
3849 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
3850 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
3851 $as_echo_n "(cached) " >&6
3852 else
3853 ac_cv_sys_largefile_CC=no
3854 if test "$GCC" != yes; then
3855 ac_save_CC=$CC
3856 while :; do
3857 # IRIX 6.2 and later do not support large files by default,
3858 # so use the C compiler's -n32 option if that helps.
3859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3860 /* end confdefs.h. */
3861 #include <sys/types.h>
3862 /* Check that off_t can represent 2**63 - 1 correctly.
3863 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3864 since some C++ compilers masquerading as C compilers
3865 incorrectly reject 9223372036854775807. */
3866 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3867 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3868 && LARGE_OFF_T % 2147483647 == 1)
3869 ? 1 : -1];
3871 main ()
3875 return 0;
3877 _ACEOF
3878 if ac_fn_c_try_compile "$LINENO"; then :
3879 break
3881 rm -f core conftest.err conftest.$ac_objext
3882 CC="$CC -n32"
3883 if ac_fn_c_try_compile "$LINENO"; then :
3884 ac_cv_sys_largefile_CC=' -n32'; break
3886 rm -f core conftest.err conftest.$ac_objext
3887 break
3888 done
3889 CC=$ac_save_CC
3890 rm -f conftest.$ac_ext
3893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
3894 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
3895 if test "$ac_cv_sys_largefile_CC" != no; then
3896 CC=$CC$ac_cv_sys_largefile_CC
3899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
3900 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
3901 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
3902 $as_echo_n "(cached) " >&6
3903 else
3904 while :; do
3905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3906 /* end confdefs.h. */
3907 #include <sys/types.h>
3908 /* Check that off_t can represent 2**63 - 1 correctly.
3909 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3910 since some C++ compilers masquerading as C compilers
3911 incorrectly reject 9223372036854775807. */
3912 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3913 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3914 && LARGE_OFF_T % 2147483647 == 1)
3915 ? 1 : -1];
3917 main ()
3921 return 0;
3923 _ACEOF
3924 if ac_fn_c_try_compile "$LINENO"; then :
3925 ac_cv_sys_file_offset_bits=no; break
3927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3929 /* end confdefs.h. */
3930 #define _FILE_OFFSET_BITS 64
3931 #include <sys/types.h>
3932 /* Check that off_t can represent 2**63 - 1 correctly.
3933 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3934 since some C++ compilers masquerading as C compilers
3935 incorrectly reject 9223372036854775807. */
3936 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3937 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3938 && LARGE_OFF_T % 2147483647 == 1)
3939 ? 1 : -1];
3941 main ()
3945 return 0;
3947 _ACEOF
3948 if ac_fn_c_try_compile "$LINENO"; then :
3949 ac_cv_sys_file_offset_bits=64; break
3951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3952 ac_cv_sys_file_offset_bits=unknown
3953 break
3954 done
3956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
3957 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
3958 case $ac_cv_sys_file_offset_bits in #(
3959 no | unknown) ;;
3961 cat >>confdefs.h <<_ACEOF
3962 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
3963 _ACEOF
3965 esac
3966 rm -rf conftest*
3967 if test $ac_cv_sys_file_offset_bits = unknown; then
3968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
3969 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
3970 if test "${ac_cv_sys_large_files+set}" = set; then :
3971 $as_echo_n "(cached) " >&6
3972 else
3973 while :; do
3974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3975 /* end confdefs.h. */
3976 #include <sys/types.h>
3977 /* Check that off_t can represent 2**63 - 1 correctly.
3978 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3979 since some C++ compilers masquerading as C compilers
3980 incorrectly reject 9223372036854775807. */
3981 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3982 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3983 && LARGE_OFF_T % 2147483647 == 1)
3984 ? 1 : -1];
3986 main ()
3990 return 0;
3992 _ACEOF
3993 if ac_fn_c_try_compile "$LINENO"; then :
3994 ac_cv_sys_large_files=no; break
3996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3998 /* end confdefs.h. */
3999 #define _LARGE_FILES 1
4000 #include <sys/types.h>
4001 /* Check that off_t can represent 2**63 - 1 correctly.
4002 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4003 since some C++ compilers masquerading as C compilers
4004 incorrectly reject 9223372036854775807. */
4005 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4006 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4007 && LARGE_OFF_T % 2147483647 == 1)
4008 ? 1 : -1];
4010 main ()
4014 return 0;
4016 _ACEOF
4017 if ac_fn_c_try_compile "$LINENO"; then :
4018 ac_cv_sys_large_files=1; break
4020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4021 ac_cv_sys_large_files=unknown
4022 break
4023 done
4025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4026 $as_echo "$ac_cv_sys_large_files" >&6; }
4027 case $ac_cv_sys_large_files in #(
4028 no | unknown) ;;
4030 cat >>confdefs.h <<_ACEOF
4031 #define _LARGE_FILES $ac_cv_sys_large_files
4032 _ACEOF
4034 esac
4035 rm -rf conftest*
4041 case `pwd` in
4042 *\ * | *\ *)
4043 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4044 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4045 esac
4049 macro_version='2.2.6'
4050 macro_revision='1.3012'
4064 ltmain="$ac_aux_dir/ltmain.sh"
4066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4067 $as_echo_n "checking host system type... " >&6; }
4068 if test "${ac_cv_host+set}" = set; then :
4069 $as_echo_n "(cached) " >&6
4070 else
4071 if test "x$host_alias" = x; then
4072 ac_cv_host=$ac_cv_build
4073 else
4074 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4075 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4080 $as_echo "$ac_cv_host" >&6; }
4081 case $ac_cv_host in
4082 *-*-*) ;;
4083 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4084 esac
4085 host=$ac_cv_host
4086 ac_save_IFS=$IFS; IFS='-'
4087 set x $ac_cv_host
4088 shift
4089 host_cpu=$1
4090 host_vendor=$2
4091 shift; shift
4092 # Remember, the first character of IFS is used to create $*,
4093 # except with old shells:
4094 host_os=$*
4095 IFS=$ac_save_IFS
4096 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4100 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4101 if test "${ac_cv_path_SED+set}" = set; then :
4102 $as_echo_n "(cached) " >&6
4103 else
4104 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4105 for ac_i in 1 2 3 4 5 6 7; do
4106 ac_script="$ac_script$as_nl$ac_script"
4107 done
4108 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4109 { ac_script=; unset ac_script;}
4110 if test -z "$SED"; then
4111 ac_path_SED_found=false
4112 # Loop through the user's path and test for each of PROGNAME-LIST
4113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4114 for as_dir in $PATH
4116 IFS=$as_save_IFS
4117 test -z "$as_dir" && as_dir=.
4118 for ac_prog in sed gsed; do
4119 for ac_exec_ext in '' $ac_executable_extensions; do
4120 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4121 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4122 # Check for GNU ac_path_SED and select it if it is found.
4123 # Check for GNU $ac_path_SED
4124 case `"$ac_path_SED" --version 2>&1` in
4125 *GNU*)
4126 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4128 ac_count=0
4129 $as_echo_n 0123456789 >"conftest.in"
4130 while :
4132 cat "conftest.in" "conftest.in" >"conftest.tmp"
4133 mv "conftest.tmp" "conftest.in"
4134 cp "conftest.in" "conftest.nl"
4135 $as_echo '' >> "conftest.nl"
4136 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4137 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4138 as_fn_arith $ac_count + 1 && ac_count=$as_val
4139 if test $ac_count -gt ${ac_path_SED_max-0}; then
4140 # Best one so far, save it but keep looking for a better one
4141 ac_cv_path_SED="$ac_path_SED"
4142 ac_path_SED_max=$ac_count
4144 # 10*(2^10) chars as input seems more than enough
4145 test $ac_count -gt 10 && break
4146 done
4147 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4148 esac
4150 $ac_path_SED_found && break 3
4151 done
4152 done
4153 done
4154 IFS=$as_save_IFS
4155 if test -z "$ac_cv_path_SED"; then
4156 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4158 else
4159 ac_cv_path_SED=$SED
4163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4164 $as_echo "$ac_cv_path_SED" >&6; }
4165 SED="$ac_cv_path_SED"
4166 rm -f conftest.sed
4168 test -z "$SED" && SED=sed
4169 Xsed="$SED -e 1s/^X//"
4181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4182 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4183 if test "${ac_cv_path_GREP+set}" = set; then :
4184 $as_echo_n "(cached) " >&6
4185 else
4186 if test -z "$GREP"; then
4187 ac_path_GREP_found=false
4188 # Loop through the user's path and test for each of PROGNAME-LIST
4189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4190 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4192 IFS=$as_save_IFS
4193 test -z "$as_dir" && as_dir=.
4194 for ac_prog in grep ggrep; do
4195 for ac_exec_ext in '' $ac_executable_extensions; do
4196 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4197 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4198 # Check for GNU ac_path_GREP and select it if it is found.
4199 # Check for GNU $ac_path_GREP
4200 case `"$ac_path_GREP" --version 2>&1` in
4201 *GNU*)
4202 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4204 ac_count=0
4205 $as_echo_n 0123456789 >"conftest.in"
4206 while :
4208 cat "conftest.in" "conftest.in" >"conftest.tmp"
4209 mv "conftest.tmp" "conftest.in"
4210 cp "conftest.in" "conftest.nl"
4211 $as_echo 'GREP' >> "conftest.nl"
4212 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4213 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4214 as_fn_arith $ac_count + 1 && ac_count=$as_val
4215 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4216 # Best one so far, save it but keep looking for a better one
4217 ac_cv_path_GREP="$ac_path_GREP"
4218 ac_path_GREP_max=$ac_count
4220 # 10*(2^10) chars as input seems more than enough
4221 test $ac_count -gt 10 && break
4222 done
4223 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4224 esac
4226 $ac_path_GREP_found && break 3
4227 done
4228 done
4229 done
4230 IFS=$as_save_IFS
4231 if test -z "$ac_cv_path_GREP"; then
4232 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4234 else
4235 ac_cv_path_GREP=$GREP
4239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4240 $as_echo "$ac_cv_path_GREP" >&6; }
4241 GREP="$ac_cv_path_GREP"
4244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4245 $as_echo_n "checking for egrep... " >&6; }
4246 if test "${ac_cv_path_EGREP+set}" = set; then :
4247 $as_echo_n "(cached) " >&6
4248 else
4249 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4250 then ac_cv_path_EGREP="$GREP -E"
4251 else
4252 if test -z "$EGREP"; then
4253 ac_path_EGREP_found=false
4254 # Loop through the user's path and test for each of PROGNAME-LIST
4255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4256 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4258 IFS=$as_save_IFS
4259 test -z "$as_dir" && as_dir=.
4260 for ac_prog in egrep; do
4261 for ac_exec_ext in '' $ac_executable_extensions; do
4262 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4263 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4264 # Check for GNU ac_path_EGREP and select it if it is found.
4265 # Check for GNU $ac_path_EGREP
4266 case `"$ac_path_EGREP" --version 2>&1` in
4267 *GNU*)
4268 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4270 ac_count=0
4271 $as_echo_n 0123456789 >"conftest.in"
4272 while :
4274 cat "conftest.in" "conftest.in" >"conftest.tmp"
4275 mv "conftest.tmp" "conftest.in"
4276 cp "conftest.in" "conftest.nl"
4277 $as_echo 'EGREP' >> "conftest.nl"
4278 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4279 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4280 as_fn_arith $ac_count + 1 && ac_count=$as_val
4281 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4282 # Best one so far, save it but keep looking for a better one
4283 ac_cv_path_EGREP="$ac_path_EGREP"
4284 ac_path_EGREP_max=$ac_count
4286 # 10*(2^10) chars as input seems more than enough
4287 test $ac_count -gt 10 && break
4288 done
4289 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4290 esac
4292 $ac_path_EGREP_found && break 3
4293 done
4294 done
4295 done
4296 IFS=$as_save_IFS
4297 if test -z "$ac_cv_path_EGREP"; then
4298 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4300 else
4301 ac_cv_path_EGREP=$EGREP
4306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4307 $as_echo "$ac_cv_path_EGREP" >&6; }
4308 EGREP="$ac_cv_path_EGREP"
4311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4312 $as_echo_n "checking for fgrep... " >&6; }
4313 if test "${ac_cv_path_FGREP+set}" = set; then :
4314 $as_echo_n "(cached) " >&6
4315 else
4316 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4317 then ac_cv_path_FGREP="$GREP -F"
4318 else
4319 if test -z "$FGREP"; then
4320 ac_path_FGREP_found=false
4321 # Loop through the user's path and test for each of PROGNAME-LIST
4322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4323 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4325 IFS=$as_save_IFS
4326 test -z "$as_dir" && as_dir=.
4327 for ac_prog in fgrep; do
4328 for ac_exec_ext in '' $ac_executable_extensions; do
4329 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4330 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4331 # Check for GNU ac_path_FGREP and select it if it is found.
4332 # Check for GNU $ac_path_FGREP
4333 case `"$ac_path_FGREP" --version 2>&1` in
4334 *GNU*)
4335 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4337 ac_count=0
4338 $as_echo_n 0123456789 >"conftest.in"
4339 while :
4341 cat "conftest.in" "conftest.in" >"conftest.tmp"
4342 mv "conftest.tmp" "conftest.in"
4343 cp "conftest.in" "conftest.nl"
4344 $as_echo 'FGREP' >> "conftest.nl"
4345 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4346 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4347 as_fn_arith $ac_count + 1 && ac_count=$as_val
4348 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4349 # Best one so far, save it but keep looking for a better one
4350 ac_cv_path_FGREP="$ac_path_FGREP"
4351 ac_path_FGREP_max=$ac_count
4353 # 10*(2^10) chars as input seems more than enough
4354 test $ac_count -gt 10 && break
4355 done
4356 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4357 esac
4359 $ac_path_FGREP_found && break 3
4360 done
4361 done
4362 done
4363 IFS=$as_save_IFS
4364 if test -z "$ac_cv_path_FGREP"; then
4365 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4367 else
4368 ac_cv_path_FGREP=$FGREP
4373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4374 $as_echo "$ac_cv_path_FGREP" >&6; }
4375 FGREP="$ac_cv_path_FGREP"
4378 test -z "$GREP" && GREP=grep
4398 # Check whether --with-gnu-ld was given.
4399 if test "${with_gnu_ld+set}" = set; then :
4400 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4401 else
4402 with_gnu_ld=no
4405 ac_prog=ld
4406 if test "$GCC" = yes; then
4407 # Check if gcc -print-prog-name=ld gives a path.
4408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4409 $as_echo_n "checking for ld used by $CC... " >&6; }
4410 case $host in
4411 *-*-mingw*)
4412 # gcc leaves a trailing carriage return which upsets mingw
4413 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4415 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4416 esac
4417 case $ac_prog in
4418 # Accept absolute paths.
4419 [\\/]* | ?:[\\/]*)
4420 re_direlt='/[^/][^/]*/\.\./'
4421 # Canonicalize the pathname of ld
4422 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4423 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4424 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4425 done
4426 test -z "$LD" && LD="$ac_prog"
4429 # If it fails, then pretend we aren't using GCC.
4430 ac_prog=ld
4433 # If it is relative, then search for the first ld in PATH.
4434 with_gnu_ld=unknown
4436 esac
4437 elif test "$with_gnu_ld" = yes; then
4438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4439 $as_echo_n "checking for GNU ld... " >&6; }
4440 else
4441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4442 $as_echo_n "checking for non-GNU ld... " >&6; }
4444 if test "${lt_cv_path_LD+set}" = set; then :
4445 $as_echo_n "(cached) " >&6
4446 else
4447 if test -z "$LD"; then
4448 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4449 for ac_dir in $PATH; do
4450 IFS="$lt_save_ifs"
4451 test -z "$ac_dir" && ac_dir=.
4452 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4453 lt_cv_path_LD="$ac_dir/$ac_prog"
4454 # Check to see if the program is GNU ld. I'd rather use --version,
4455 # but apparently some variants of GNU ld only accept -v.
4456 # Break only if it was the GNU/non-GNU ld that we prefer.
4457 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4458 *GNU* | *'with BFD'*)
4459 test "$with_gnu_ld" != no && break
4462 test "$with_gnu_ld" != yes && break
4464 esac
4466 done
4467 IFS="$lt_save_ifs"
4468 else
4469 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4473 LD="$lt_cv_path_LD"
4474 if test -n "$LD"; then
4475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4476 $as_echo "$LD" >&6; }
4477 else
4478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4479 $as_echo "no" >&6; }
4481 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4483 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4484 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4485 $as_echo_n "(cached) " >&6
4486 else
4487 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4488 case `$LD -v 2>&1 </dev/null` in
4489 *GNU* | *'with BFD'*)
4490 lt_cv_prog_gnu_ld=yes
4493 lt_cv_prog_gnu_ld=no
4495 esac
4497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4498 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4499 with_gnu_ld=$lt_cv_prog_gnu_ld
4509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4510 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4511 if test "${lt_cv_path_NM+set}" = set; then :
4512 $as_echo_n "(cached) " >&6
4513 else
4514 if test -n "$NM"; then
4515 # Let the user override the test.
4516 lt_cv_path_NM="$NM"
4517 else
4518 lt_nm_to_check="${ac_tool_prefix}nm"
4519 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4520 lt_nm_to_check="$lt_nm_to_check nm"
4522 for lt_tmp_nm in $lt_nm_to_check; do
4523 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4524 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4525 IFS="$lt_save_ifs"
4526 test -z "$ac_dir" && ac_dir=.
4527 tmp_nm="$ac_dir/$lt_tmp_nm"
4528 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4529 # Check to see if the nm accepts a BSD-compat flag.
4530 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4531 # nm: unknown option "B" ignored
4532 # Tru64's nm complains that /dev/null is an invalid object file
4533 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4534 */dev/null* | *'Invalid file or object type'*)
4535 lt_cv_path_NM="$tmp_nm -B"
4536 break
4539 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4540 */dev/null*)
4541 lt_cv_path_NM="$tmp_nm -p"
4542 break
4545 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4546 continue # so that we can try to find one that supports BSD flags
4548 esac
4550 esac
4552 done
4553 IFS="$lt_save_ifs"
4554 done
4555 : ${lt_cv_path_NM=no}
4558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4559 $as_echo "$lt_cv_path_NM" >&6; }
4560 if test "$lt_cv_path_NM" != "no"; then
4561 NM="$lt_cv_path_NM"
4562 else
4563 # Didn't find any BSD compatible name lister, look for dumpbin.
4564 if test -n "$ac_tool_prefix"; then
4565 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4567 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4568 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4570 $as_echo_n "checking for $ac_word... " >&6; }
4571 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4572 $as_echo_n "(cached) " >&6
4573 else
4574 if test -n "$DUMPBIN"; then
4575 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4576 else
4577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4578 for as_dir in $PATH
4580 IFS=$as_save_IFS
4581 test -z "$as_dir" && as_dir=.
4582 for ac_exec_ext in '' $ac_executable_extensions; do
4583 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4584 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4586 break 2
4588 done
4589 done
4590 IFS=$as_save_IFS
4594 DUMPBIN=$ac_cv_prog_DUMPBIN
4595 if test -n "$DUMPBIN"; then
4596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4597 $as_echo "$DUMPBIN" >&6; }
4598 else
4599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4600 $as_echo "no" >&6; }
4604 test -n "$DUMPBIN" && break
4605 done
4607 if test -z "$DUMPBIN"; then
4608 ac_ct_DUMPBIN=$DUMPBIN
4609 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4611 # Extract the first word of "$ac_prog", so it can be a program name with args.
4612 set dummy $ac_prog; ac_word=$2
4613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4614 $as_echo_n "checking for $ac_word... " >&6; }
4615 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4616 $as_echo_n "(cached) " >&6
4617 else
4618 if test -n "$ac_ct_DUMPBIN"; then
4619 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4620 else
4621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4622 for as_dir in $PATH
4624 IFS=$as_save_IFS
4625 test -z "$as_dir" && as_dir=.
4626 for ac_exec_ext in '' $ac_executable_extensions; do
4627 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4628 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4630 break 2
4632 done
4633 done
4634 IFS=$as_save_IFS
4638 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4639 if test -n "$ac_ct_DUMPBIN"; then
4640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4641 $as_echo "$ac_ct_DUMPBIN" >&6; }
4642 else
4643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4644 $as_echo "no" >&6; }
4648 test -n "$ac_ct_DUMPBIN" && break
4649 done
4651 if test "x$ac_ct_DUMPBIN" = x; then
4652 DUMPBIN=":"
4653 else
4654 case $cross_compiling:$ac_tool_warned in
4655 yes:)
4656 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4657 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4658 ac_tool_warned=yes ;;
4659 esac
4660 DUMPBIN=$ac_ct_DUMPBIN
4665 if test "$DUMPBIN" != ":"; then
4666 NM="$DUMPBIN"
4669 test -z "$NM" && NM=nm
4676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4677 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4678 if test "${lt_cv_nm_interface+set}" = set; then :
4679 $as_echo_n "(cached) " >&6
4680 else
4681 lt_cv_nm_interface="BSD nm"
4682 echo "int some_variable = 0;" > conftest.$ac_ext
4683 (eval echo "\"\$as_me:4683: $ac_compile\"" >&5)
4684 (eval "$ac_compile" 2>conftest.err)
4685 cat conftest.err >&5
4686 (eval echo "\"\$as_me:4686: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4687 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4688 cat conftest.err >&5
4689 (eval echo "\"\$as_me:4689: output\"" >&5)
4690 cat conftest.out >&5
4691 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4692 lt_cv_nm_interface="MS dumpbin"
4694 rm -f conftest*
4696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4697 $as_echo "$lt_cv_nm_interface" >&6; }
4699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4700 $as_echo_n "checking whether ln -s works... " >&6; }
4701 LN_S=$as_ln_s
4702 if test "$LN_S" = "ln -s"; then
4703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4704 $as_echo "yes" >&6; }
4705 else
4706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4707 $as_echo "no, using $LN_S" >&6; }
4710 # find the maximum length of command line arguments
4711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4712 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4713 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
4714 $as_echo_n "(cached) " >&6
4715 else
4717 teststring="ABCD"
4719 case $build_os in
4720 msdosdjgpp*)
4721 # On DJGPP, this test can blow up pretty badly due to problems in libc
4722 # (any single argument exceeding 2000 bytes causes a buffer overrun
4723 # during glob expansion). Even if it were fixed, the result of this
4724 # check would be larger than it should be.
4725 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4728 gnu*)
4729 # Under GNU Hurd, this test is not required because there is
4730 # no limit to the length of command line arguments.
4731 # Libtool will interpret -1 as no limit whatsoever
4732 lt_cv_sys_max_cmd_len=-1;
4735 cygwin* | mingw* | cegcc*)
4736 # On Win9x/ME, this test blows up -- it succeeds, but takes
4737 # about 5 minutes as the teststring grows exponentially.
4738 # Worse, since 9x/ME are not pre-emptively multitasking,
4739 # you end up with a "frozen" computer, even though with patience
4740 # the test eventually succeeds (with a max line length of 256k).
4741 # Instead, let's just punt: use the minimum linelength reported by
4742 # all of the supported platforms: 8192 (on NT/2K/XP).
4743 lt_cv_sys_max_cmd_len=8192;
4746 amigaos*)
4747 # On AmigaOS with pdksh, this test takes hours, literally.
4748 # So we just punt and use a minimum line length of 8192.
4749 lt_cv_sys_max_cmd_len=8192;
4752 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4753 # This has been around since 386BSD, at least. Likely further.
4754 if test -x /sbin/sysctl; then
4755 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4756 elif test -x /usr/sbin/sysctl; then
4757 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4758 else
4759 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4761 # And add a safety zone
4762 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4763 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4766 interix*)
4767 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4768 lt_cv_sys_max_cmd_len=196608
4771 osf*)
4772 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4773 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4774 # nice to cause kernel panics so lets avoid the loop below.
4775 # First set a reasonable default.
4776 lt_cv_sys_max_cmd_len=16384
4778 if test -x /sbin/sysconfig; then
4779 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4780 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4781 esac
4784 sco3.2v5*)
4785 lt_cv_sys_max_cmd_len=102400
4787 sysv5* | sco5v6* | sysv4.2uw2*)
4788 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4789 if test -n "$kargmax"; then
4790 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4791 else
4792 lt_cv_sys_max_cmd_len=32768
4796 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4797 if test -n "$lt_cv_sys_max_cmd_len"; then
4798 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4799 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4800 else
4801 # Make teststring a little bigger before we do anything with it.
4802 # a 1K string should be a reasonable start.
4803 for i in 1 2 3 4 5 6 7 8 ; do
4804 teststring=$teststring$teststring
4805 done
4806 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4807 # If test is not a shell built-in, we'll probably end up computing a
4808 # maximum length that is only half of the actual maximum length, but
4809 # we can't tell.
4810 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4811 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4812 test $i != 17 # 1/2 MB should be enough
4814 i=`expr $i + 1`
4815 teststring=$teststring$teststring
4816 done
4817 # Only check the string length outside the loop.
4818 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4819 teststring=
4820 # Add a significant safety factor because C++ compilers can tack on
4821 # massive amounts of additional arguments before passing them to the
4822 # linker. It appears as though 1/2 is a usable value.
4823 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4826 esac
4830 if test -n $lt_cv_sys_max_cmd_len ; then
4831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4832 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4833 else
4834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4835 $as_echo "none" >&6; }
4837 max_cmd_len=$lt_cv_sys_max_cmd_len
4844 : ${CP="cp -f"}
4845 : ${MV="mv -f"}
4846 : ${RM="rm -f"}
4848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4849 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4850 # Try some XSI features
4851 xsi_shell=no
4852 ( _lt_dummy="a/b/c"
4853 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4854 = c,a/b,, \
4855 && eval 'test $(( 1 + 1 )) -eq 2 \
4856 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4857 && xsi_shell=yes
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4859 $as_echo "$xsi_shell" >&6; }
4862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4863 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4864 lt_shell_append=no
4865 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4866 >/dev/null 2>&1 \
4867 && lt_shell_append=yes
4868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4869 $as_echo "$lt_shell_append" >&6; }
4872 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4873 lt_unset=unset
4874 else
4875 lt_unset=false
4882 # test EBCDIC or ASCII
4883 case `echo X|tr X '\101'` in
4884 A) # ASCII based system
4885 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4886 lt_SP2NL='tr \040 \012'
4887 lt_NL2SP='tr \015\012 \040\040'
4889 *) # EBCDIC based system
4890 lt_SP2NL='tr \100 \n'
4891 lt_NL2SP='tr \r\n \100\100'
4893 esac
4903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4904 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4905 if test "${lt_cv_ld_reload_flag+set}" = set; then :
4906 $as_echo_n "(cached) " >&6
4907 else
4908 lt_cv_ld_reload_flag='-r'
4910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4911 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4912 reload_flag=$lt_cv_ld_reload_flag
4913 case $reload_flag in
4914 "" | " "*) ;;
4915 *) reload_flag=" $reload_flag" ;;
4916 esac
4917 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4918 case $host_os in
4919 darwin*)
4920 if test "$GCC" = yes; then
4921 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4922 else
4923 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4926 esac
4936 if test -n "$ac_tool_prefix"; then
4937 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4938 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4940 $as_echo_n "checking for $ac_word... " >&6; }
4941 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
4942 $as_echo_n "(cached) " >&6
4943 else
4944 if test -n "$OBJDUMP"; then
4945 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4946 else
4947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4948 for as_dir in $PATH
4950 IFS=$as_save_IFS
4951 test -z "$as_dir" && as_dir=.
4952 for ac_exec_ext in '' $ac_executable_extensions; do
4953 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4954 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4956 break 2
4958 done
4959 done
4960 IFS=$as_save_IFS
4964 OBJDUMP=$ac_cv_prog_OBJDUMP
4965 if test -n "$OBJDUMP"; then
4966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4967 $as_echo "$OBJDUMP" >&6; }
4968 else
4969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4970 $as_echo "no" >&6; }
4975 if test -z "$ac_cv_prog_OBJDUMP"; then
4976 ac_ct_OBJDUMP=$OBJDUMP
4977 # Extract the first word of "objdump", so it can be a program name with args.
4978 set dummy objdump; ac_word=$2
4979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4980 $as_echo_n "checking for $ac_word... " >&6; }
4981 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
4982 $as_echo_n "(cached) " >&6
4983 else
4984 if test -n "$ac_ct_OBJDUMP"; then
4985 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4986 else
4987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4988 for as_dir in $PATH
4990 IFS=$as_save_IFS
4991 test -z "$as_dir" && as_dir=.
4992 for ac_exec_ext in '' $ac_executable_extensions; do
4993 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4994 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4996 break 2
4998 done
4999 done
5000 IFS=$as_save_IFS
5004 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5005 if test -n "$ac_ct_OBJDUMP"; then
5006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5007 $as_echo "$ac_ct_OBJDUMP" >&6; }
5008 else
5009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5010 $as_echo "no" >&6; }
5013 if test "x$ac_ct_OBJDUMP" = x; then
5014 OBJDUMP="false"
5015 else
5016 case $cross_compiling:$ac_tool_warned in
5017 yes:)
5018 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5019 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5020 ac_tool_warned=yes ;;
5021 esac
5022 OBJDUMP=$ac_ct_OBJDUMP
5024 else
5025 OBJDUMP="$ac_cv_prog_OBJDUMP"
5028 test -z "$OBJDUMP" && OBJDUMP=objdump
5038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5039 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5040 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5041 $as_echo_n "(cached) " >&6
5042 else
5043 lt_cv_file_magic_cmd='$MAGIC_CMD'
5044 lt_cv_file_magic_test_file=
5045 lt_cv_deplibs_check_method='unknown'
5046 # Need to set the preceding variable on all platforms that support
5047 # interlibrary dependencies.
5048 # 'none' -- dependencies not supported.
5049 # `unknown' -- same as none, but documents that we really don't know.
5050 # 'pass_all' -- all dependencies passed with no checks.
5051 # 'test_compile' -- check by making test program.
5052 # 'file_magic [[regex]]' -- check by looking for files in library path
5053 # which responds to the $file_magic_cmd with a given extended regex.
5054 # If you have `file' or equivalent on your system and you're not sure
5055 # whether `pass_all' will *always* work, you probably want this one.
5057 case $host_os in
5058 aix[4-9]*)
5059 lt_cv_deplibs_check_method=pass_all
5062 beos*)
5063 lt_cv_deplibs_check_method=pass_all
5066 bsdi[45]*)
5067 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5068 lt_cv_file_magic_cmd='/usr/bin/file -L'
5069 lt_cv_file_magic_test_file=/shlib/libc.so
5072 cygwin*)
5073 # func_win32_libid is a shell function defined in ltmain.sh
5074 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5075 lt_cv_file_magic_cmd='func_win32_libid'
5078 mingw* | pw32*)
5079 # Base MSYS/MinGW do not provide the 'file' command needed by
5080 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5081 # unless we find 'file', for example because we are cross-compiling.
5082 if ( file / ) >/dev/null 2>&1; then
5083 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5084 lt_cv_file_magic_cmd='func_win32_libid'
5085 else
5086 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5087 lt_cv_file_magic_cmd='$OBJDUMP -f'
5091 cegcc)
5092 # use the weaker test based on 'objdump'. See mingw*.
5093 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5094 lt_cv_file_magic_cmd='$OBJDUMP -f'
5097 darwin* | rhapsody*)
5098 lt_cv_deplibs_check_method=pass_all
5101 freebsd* | dragonfly*)
5102 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5103 case $host_cpu in
5104 i*86 )
5105 # Not sure whether the presence of OpenBSD here was a mistake.
5106 # Let's accept both of them until this is cleared up.
5107 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5108 lt_cv_file_magic_cmd=/usr/bin/file
5109 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5111 esac
5112 else
5113 lt_cv_deplibs_check_method=pass_all
5117 gnu*)
5118 lt_cv_deplibs_check_method=pass_all
5121 hpux10.20* | hpux11*)
5122 lt_cv_file_magic_cmd=/usr/bin/file
5123 case $host_cpu in
5124 ia64*)
5125 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5126 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5128 hppa*64*)
5129 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
5130 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5133 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5134 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5136 esac
5139 interix[3-9]*)
5140 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5141 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5144 irix5* | irix6* | nonstopux*)
5145 case $LD in
5146 *-32|*"-32 ") libmagic=32-bit;;
5147 *-n32|*"-n32 ") libmagic=N32;;
5148 *-64|*"-64 ") libmagic=64-bit;;
5149 *) libmagic=never-match;;
5150 esac
5151 lt_cv_deplibs_check_method=pass_all
5154 # This must be Linux ELF.
5155 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5156 lt_cv_deplibs_check_method=pass_all
5159 netbsd*)
5160 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5161 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5162 else
5163 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5167 newos6*)
5168 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5169 lt_cv_file_magic_cmd=/usr/bin/file
5170 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5173 *nto* | *qnx*)
5174 lt_cv_deplibs_check_method=pass_all
5177 openbsd*)
5178 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5179 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5180 else
5181 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5185 osf3* | osf4* | osf5*)
5186 lt_cv_deplibs_check_method=pass_all
5189 rdos*)
5190 lt_cv_deplibs_check_method=pass_all
5193 solaris*)
5194 lt_cv_deplibs_check_method=pass_all
5197 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5198 lt_cv_deplibs_check_method=pass_all
5201 sysv4 | sysv4.3*)
5202 case $host_vendor in
5203 motorola)
5204 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]'
5205 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5207 ncr)
5208 lt_cv_deplibs_check_method=pass_all
5210 sequent)
5211 lt_cv_file_magic_cmd='/bin/file'
5212 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5214 sni)
5215 lt_cv_file_magic_cmd='/bin/file'
5216 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5217 lt_cv_file_magic_test_file=/lib/libc.so
5219 siemens)
5220 lt_cv_deplibs_check_method=pass_all
5223 lt_cv_deplibs_check_method=pass_all
5225 esac
5228 tpf*)
5229 lt_cv_deplibs_check_method=pass_all
5231 esac
5234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5235 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5236 file_magic_cmd=$lt_cv_file_magic_cmd
5237 deplibs_check_method=$lt_cv_deplibs_check_method
5238 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5251 if test -n "$ac_tool_prefix"; then
5252 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5253 set dummy ${ac_tool_prefix}ar; ac_word=$2
5254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5255 $as_echo_n "checking for $ac_word... " >&6; }
5256 if test "${ac_cv_prog_AR+set}" = set; then :
5257 $as_echo_n "(cached) " >&6
5258 else
5259 if test -n "$AR"; then
5260 ac_cv_prog_AR="$AR" # Let the user override the test.
5261 else
5262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5263 for as_dir in $PATH
5265 IFS=$as_save_IFS
5266 test -z "$as_dir" && as_dir=.
5267 for ac_exec_ext in '' $ac_executable_extensions; do
5268 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5269 ac_cv_prog_AR="${ac_tool_prefix}ar"
5270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5271 break 2
5273 done
5274 done
5275 IFS=$as_save_IFS
5279 AR=$ac_cv_prog_AR
5280 if test -n "$AR"; then
5281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5282 $as_echo "$AR" >&6; }
5283 else
5284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5285 $as_echo "no" >&6; }
5290 if test -z "$ac_cv_prog_AR"; then
5291 ac_ct_AR=$AR
5292 # Extract the first word of "ar", so it can be a program name with args.
5293 set dummy ar; ac_word=$2
5294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5295 $as_echo_n "checking for $ac_word... " >&6; }
5296 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5297 $as_echo_n "(cached) " >&6
5298 else
5299 if test -n "$ac_ct_AR"; then
5300 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5301 else
5302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5303 for as_dir in $PATH
5305 IFS=$as_save_IFS
5306 test -z "$as_dir" && as_dir=.
5307 for ac_exec_ext in '' $ac_executable_extensions; do
5308 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5309 ac_cv_prog_ac_ct_AR="ar"
5310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5311 break 2
5313 done
5314 done
5315 IFS=$as_save_IFS
5319 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5320 if test -n "$ac_ct_AR"; then
5321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5322 $as_echo "$ac_ct_AR" >&6; }
5323 else
5324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5325 $as_echo "no" >&6; }
5328 if test "x$ac_ct_AR" = x; then
5329 AR="false"
5330 else
5331 case $cross_compiling:$ac_tool_warned in
5332 yes:)
5333 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5334 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5335 ac_tool_warned=yes ;;
5336 esac
5337 AR=$ac_ct_AR
5339 else
5340 AR="$ac_cv_prog_AR"
5343 test -z "$AR" && AR=ar
5344 test -z "$AR_FLAGS" && AR_FLAGS=cru
5356 if test -n "$ac_tool_prefix"; then
5357 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5358 set dummy ${ac_tool_prefix}strip; ac_word=$2
5359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5360 $as_echo_n "checking for $ac_word... " >&6; }
5361 if test "${ac_cv_prog_STRIP+set}" = set; then :
5362 $as_echo_n "(cached) " >&6
5363 else
5364 if test -n "$STRIP"; then
5365 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5366 else
5367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5368 for as_dir in $PATH
5370 IFS=$as_save_IFS
5371 test -z "$as_dir" && as_dir=.
5372 for ac_exec_ext in '' $ac_executable_extensions; do
5373 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5374 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5376 break 2
5378 done
5379 done
5380 IFS=$as_save_IFS
5384 STRIP=$ac_cv_prog_STRIP
5385 if test -n "$STRIP"; then
5386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5387 $as_echo "$STRIP" >&6; }
5388 else
5389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5390 $as_echo "no" >&6; }
5395 if test -z "$ac_cv_prog_STRIP"; then
5396 ac_ct_STRIP=$STRIP
5397 # Extract the first word of "strip", so it can be a program name with args.
5398 set dummy strip; ac_word=$2
5399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5400 $as_echo_n "checking for $ac_word... " >&6; }
5401 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5402 $as_echo_n "(cached) " >&6
5403 else
5404 if test -n "$ac_ct_STRIP"; then
5405 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5406 else
5407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5408 for as_dir in $PATH
5410 IFS=$as_save_IFS
5411 test -z "$as_dir" && as_dir=.
5412 for ac_exec_ext in '' $ac_executable_extensions; do
5413 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5414 ac_cv_prog_ac_ct_STRIP="strip"
5415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5416 break 2
5418 done
5419 done
5420 IFS=$as_save_IFS
5424 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5425 if test -n "$ac_ct_STRIP"; then
5426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5427 $as_echo "$ac_ct_STRIP" >&6; }
5428 else
5429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5430 $as_echo "no" >&6; }
5433 if test "x$ac_ct_STRIP" = x; then
5434 STRIP=":"
5435 else
5436 case $cross_compiling:$ac_tool_warned in
5437 yes:)
5438 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5439 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5440 ac_tool_warned=yes ;;
5441 esac
5442 STRIP=$ac_ct_STRIP
5444 else
5445 STRIP="$ac_cv_prog_STRIP"
5448 test -z "$STRIP" && STRIP=:
5455 if test -n "$ac_tool_prefix"; then
5456 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5457 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5459 $as_echo_n "checking for $ac_word... " >&6; }
5460 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5461 $as_echo_n "(cached) " >&6
5462 else
5463 if test -n "$RANLIB"; then
5464 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5465 else
5466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5467 for as_dir in $PATH
5469 IFS=$as_save_IFS
5470 test -z "$as_dir" && as_dir=.
5471 for ac_exec_ext in '' $ac_executable_extensions; do
5472 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5473 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5475 break 2
5477 done
5478 done
5479 IFS=$as_save_IFS
5483 RANLIB=$ac_cv_prog_RANLIB
5484 if test -n "$RANLIB"; then
5485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5486 $as_echo "$RANLIB" >&6; }
5487 else
5488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5489 $as_echo "no" >&6; }
5494 if test -z "$ac_cv_prog_RANLIB"; then
5495 ac_ct_RANLIB=$RANLIB
5496 # Extract the first word of "ranlib", so it can be a program name with args.
5497 set dummy ranlib; ac_word=$2
5498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5499 $as_echo_n "checking for $ac_word... " >&6; }
5500 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5501 $as_echo_n "(cached) " >&6
5502 else
5503 if test -n "$ac_ct_RANLIB"; then
5504 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5505 else
5506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5507 for as_dir in $PATH
5509 IFS=$as_save_IFS
5510 test -z "$as_dir" && as_dir=.
5511 for ac_exec_ext in '' $ac_executable_extensions; do
5512 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5513 ac_cv_prog_ac_ct_RANLIB="ranlib"
5514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5515 break 2
5517 done
5518 done
5519 IFS=$as_save_IFS
5523 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5524 if test -n "$ac_ct_RANLIB"; then
5525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5526 $as_echo "$ac_ct_RANLIB" >&6; }
5527 else
5528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5529 $as_echo "no" >&6; }
5532 if test "x$ac_ct_RANLIB" = x; then
5533 RANLIB=":"
5534 else
5535 case $cross_compiling:$ac_tool_warned in
5536 yes:)
5537 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5538 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5539 ac_tool_warned=yes ;;
5540 esac
5541 RANLIB=$ac_ct_RANLIB
5543 else
5544 RANLIB="$ac_cv_prog_RANLIB"
5547 test -z "$RANLIB" && RANLIB=:
5554 # Determine commands to create old-style static archives.
5555 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5556 old_postinstall_cmds='chmod 644 $oldlib'
5557 old_postuninstall_cmds=
5559 if test -n "$RANLIB"; then
5560 case $host_os in
5561 openbsd*)
5562 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5565 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5567 esac
5568 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5604 # If no C compiler was specified, use CC.
5605 LTCC=${LTCC-"$CC"}
5607 # If no C compiler flags were specified, use CFLAGS.
5608 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5610 # Allow CC to be a program name with arguments.
5611 compiler=$CC
5614 # Check for command to grab the raw symbol name followed by C symbol from nm.
5615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5616 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5617 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5618 $as_echo_n "(cached) " >&6
5619 else
5621 # These are sane defaults that work on at least a few old systems.
5622 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5624 # Character class describing NM global symbol codes.
5625 symcode='[BCDEGRST]'
5627 # Regexp to match symbols that can be accessed directly from C.
5628 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5630 # Define system-specific variables.
5631 case $host_os in
5632 aix*)
5633 symcode='[BCDT]'
5635 cygwin* | mingw* | pw32* | cegcc*)
5636 symcode='[ABCDGISTW]'
5638 hpux*)
5639 if test "$host_cpu" = ia64; then
5640 symcode='[ABCDEGRST]'
5643 irix* | nonstopux*)
5644 symcode='[BCDEGRST]'
5646 osf*)
5647 symcode='[BCDEGQRST]'
5649 solaris*)
5650 symcode='[BDRT]'
5652 sco3.2v5*)
5653 symcode='[DT]'
5655 sysv4.2uw2*)
5656 symcode='[DT]'
5658 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5659 symcode='[ABDT]'
5661 sysv4)
5662 symcode='[DFNSTU]'
5664 esac
5666 # If we're using GNU nm, then use its standard symbol codes.
5667 case `$NM -V 2>&1` in
5668 *GNU* | *'with BFD'*)
5669 symcode='[ABCDGIRSTW]' ;;
5670 esac
5672 # Transform an extracted symbol line into a proper C declaration.
5673 # Some systems (esp. on ia64) link data and code symbols differently,
5674 # so use this general approach.
5675 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5677 # Transform an extracted symbol line into symbol name and symbol address
5678 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5679 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'"
5681 # Handle CRLF in mingw tool chain
5682 opt_cr=
5683 case $build_os in
5684 mingw*)
5685 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5687 esac
5689 # Try without a prefix underscore, then with it.
5690 for ac_symprfx in "" "_"; do
5692 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5693 symxfrm="\\1 $ac_symprfx\\2 \\2"
5695 # Write the raw and C identifiers.
5696 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5697 # Fake it for dumpbin and say T for any non-static function
5698 # and D for any global variable.
5699 # Also find C++ and __fastcall symbols from MSVC++,
5700 # which start with @ or ?.
5701 lt_cv_sys_global_symbol_pipe="$AWK '"\
5702 " {last_section=section; section=\$ 3};"\
5703 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5704 " \$ 0!~/External *\|/{next};"\
5705 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5706 " {if(hide[section]) next};"\
5707 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5708 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5709 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5710 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5711 " ' prfx=^$ac_symprfx"
5712 else
5713 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5716 # Check to see that the pipe works correctly.
5717 pipe_works=no
5719 rm -f conftest*
5720 cat > conftest.$ac_ext <<_LT_EOF
5721 #ifdef __cplusplus
5722 extern "C" {
5723 #endif
5724 char nm_test_var;
5725 void nm_test_func(void);
5726 void nm_test_func(void){}
5727 #ifdef __cplusplus
5729 #endif
5730 int main(){nm_test_var='a';nm_test_func();return(0);}
5731 _LT_EOF
5733 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5734 (eval $ac_compile) 2>&5
5735 ac_status=$?
5736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5737 test $ac_status = 0; }; then
5738 # Now try to grab the symbols.
5739 nlist=conftest.nm
5740 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
5741 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5742 ac_status=$?
5743 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5744 test $ac_status = 0; } && test -s "$nlist"; then
5745 # Try sorting and uniquifying the output.
5746 if sort "$nlist" | uniq > "$nlist"T; then
5747 mv -f "$nlist"T "$nlist"
5748 else
5749 rm -f "$nlist"T
5752 # Make sure that we snagged all the symbols we need.
5753 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5754 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5755 cat <<_LT_EOF > conftest.$ac_ext
5756 #ifdef __cplusplus
5757 extern "C" {
5758 #endif
5760 _LT_EOF
5761 # Now generate the symbol file.
5762 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5764 cat <<_LT_EOF >> conftest.$ac_ext
5766 /* The mapping between symbol names and symbols. */
5767 const struct {
5768 const char *name;
5769 void *address;
5771 lt__PROGRAM__LTX_preloaded_symbols[] =
5773 { "@PROGRAM@", (void *) 0 },
5774 _LT_EOF
5775 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5776 cat <<\_LT_EOF >> conftest.$ac_ext
5777 {0, (void *) 0}
5780 /* This works around a problem in FreeBSD linker */
5781 #ifdef FREEBSD_WORKAROUND
5782 static const void *lt_preloaded_setup() {
5783 return lt__PROGRAM__LTX_preloaded_symbols;
5785 #endif
5787 #ifdef __cplusplus
5789 #endif
5790 _LT_EOF
5791 # Now try linking the two files.
5792 mv conftest.$ac_objext conftstm.$ac_objext
5793 lt_save_LIBS="$LIBS"
5794 lt_save_CFLAGS="$CFLAGS"
5795 LIBS="conftstm.$ac_objext"
5796 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5797 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5798 (eval $ac_link) 2>&5
5799 ac_status=$?
5800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5801 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5802 pipe_works=yes
5804 LIBS="$lt_save_LIBS"
5805 CFLAGS="$lt_save_CFLAGS"
5806 else
5807 echo "cannot find nm_test_func in $nlist" >&5
5809 else
5810 echo "cannot find nm_test_var in $nlist" >&5
5812 else
5813 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5815 else
5816 echo "$progname: failed program was:" >&5
5817 cat conftest.$ac_ext >&5
5819 rm -rf conftest* conftst*
5821 # Do not use the global_symbol_pipe unless it works.
5822 if test "$pipe_works" = yes; then
5823 break
5824 else
5825 lt_cv_sys_global_symbol_pipe=
5827 done
5831 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5832 lt_cv_sys_global_symbol_to_cdecl=
5834 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5836 $as_echo "failed" >&6; }
5837 else
5838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5839 $as_echo "ok" >&6; }
5863 # Check whether --enable-libtool-lock was given.
5864 if test "${enable_libtool_lock+set}" = set; then :
5865 enableval=$enable_libtool_lock;
5868 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5870 # Some flags need to be propagated to the compiler or linker for good
5871 # libtool support.
5872 case $host in
5873 ia64-*-hpux*)
5874 # Find out which ABI we are using.
5875 echo 'int i;' > conftest.$ac_ext
5876 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5877 (eval $ac_compile) 2>&5
5878 ac_status=$?
5879 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5880 test $ac_status = 0; }; then
5881 case `/usr/bin/file conftest.$ac_objext` in
5882 *ELF-32*)
5883 HPUX_IA64_MODE="32"
5885 *ELF-64*)
5886 HPUX_IA64_MODE="64"
5888 esac
5890 rm -rf conftest*
5892 *-*-irix6*)
5893 # Find out which ABI we are using.
5894 echo '#line 5894 "configure"' > conftest.$ac_ext
5895 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5896 (eval $ac_compile) 2>&5
5897 ac_status=$?
5898 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5899 test $ac_status = 0; }; then
5900 if test "$lt_cv_prog_gnu_ld" = yes; then
5901 case `/usr/bin/file conftest.$ac_objext` in
5902 *32-bit*)
5903 LD="${LD-ld} -melf32bsmip"
5905 *N32*)
5906 LD="${LD-ld} -melf32bmipn32"
5908 *64-bit*)
5909 LD="${LD-ld} -melf64bmip"
5911 esac
5912 else
5913 case `/usr/bin/file conftest.$ac_objext` in
5914 *32-bit*)
5915 LD="${LD-ld} -32"
5917 *N32*)
5918 LD="${LD-ld} -n32"
5920 *64-bit*)
5921 LD="${LD-ld} -64"
5923 esac
5926 rm -rf conftest*
5929 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5930 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5931 # Find out which ABI we are using.
5932 echo 'int i;' > conftest.$ac_ext
5933 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5934 (eval $ac_compile) 2>&5
5935 ac_status=$?
5936 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5937 test $ac_status = 0; }; then
5938 case `/usr/bin/file conftest.o` in
5939 *32-bit*)
5940 case $host in
5941 x86_64-*kfreebsd*-gnu)
5942 LD="${LD-ld} -m elf_i386_fbsd"
5944 x86_64-*linux*)
5945 LD="${LD-ld} -m elf_i386"
5947 ppc64-*linux*|powerpc64-*linux*)
5948 LD="${LD-ld} -m elf32ppclinux"
5950 s390x-*linux*)
5951 LD="${LD-ld} -m elf_s390"
5953 sparc64-*linux*)
5954 LD="${LD-ld} -m elf32_sparc"
5956 esac
5958 *64-bit*)
5959 case $host in
5960 x86_64-*kfreebsd*-gnu)
5961 LD="${LD-ld} -m elf_x86_64_fbsd"
5963 x86_64-*linux*)
5964 LD="${LD-ld} -m elf_x86_64"
5966 ppc*-*linux*|powerpc*-*linux*)
5967 LD="${LD-ld} -m elf64ppc"
5969 s390*-*linux*|s390*-*tpf*)
5970 LD="${LD-ld} -m elf64_s390"
5972 sparc*-*linux*)
5973 LD="${LD-ld} -m elf64_sparc"
5975 esac
5977 esac
5979 rm -rf conftest*
5982 *-*-sco3.2v5*)
5983 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5984 SAVE_CFLAGS="$CFLAGS"
5985 CFLAGS="$CFLAGS -belf"
5986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5987 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5988 if test "${lt_cv_cc_needs_belf+set}" = set; then :
5989 $as_echo_n "(cached) " >&6
5990 else
5991 ac_ext=c
5992 ac_cpp='$CPP $CPPFLAGS'
5993 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5994 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5995 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5998 /* end confdefs.h. */
6001 main ()
6005 return 0;
6007 _ACEOF
6008 if ac_fn_c_try_link "$LINENO"; then :
6009 lt_cv_cc_needs_belf=yes
6010 else
6011 lt_cv_cc_needs_belf=no
6013 rm -f core conftest.err conftest.$ac_objext \
6014 conftest$ac_exeext conftest.$ac_ext
6015 ac_ext=c
6016 ac_cpp='$CPP $CPPFLAGS'
6017 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6018 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6019 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6023 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6024 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6025 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6026 CFLAGS="$SAVE_CFLAGS"
6029 sparc*-*solaris*)
6030 # Find out which ABI we are using.
6031 echo 'int i;' > conftest.$ac_ext
6032 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6033 (eval $ac_compile) 2>&5
6034 ac_status=$?
6035 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6036 test $ac_status = 0; }; then
6037 case `/usr/bin/file conftest.o` in
6038 *64-bit*)
6039 case $lt_cv_prog_gnu_ld in
6040 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6042 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6043 LD="${LD-ld} -64"
6046 esac
6048 esac
6050 rm -rf conftest*
6052 esac
6054 need_locks="$enable_libtool_lock"
6057 case $host_os in
6058 rhapsody* | darwin*)
6059 if test -n "$ac_tool_prefix"; then
6060 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6061 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6063 $as_echo_n "checking for $ac_word... " >&6; }
6064 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6065 $as_echo_n "(cached) " >&6
6066 else
6067 if test -n "$DSYMUTIL"; then
6068 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6069 else
6070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6071 for as_dir in $PATH
6073 IFS=$as_save_IFS
6074 test -z "$as_dir" && as_dir=.
6075 for ac_exec_ext in '' $ac_executable_extensions; do
6076 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6077 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6079 break 2
6081 done
6082 done
6083 IFS=$as_save_IFS
6087 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6088 if test -n "$DSYMUTIL"; then
6089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6090 $as_echo "$DSYMUTIL" >&6; }
6091 else
6092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6093 $as_echo "no" >&6; }
6098 if test -z "$ac_cv_prog_DSYMUTIL"; then
6099 ac_ct_DSYMUTIL=$DSYMUTIL
6100 # Extract the first word of "dsymutil", so it can be a program name with args.
6101 set dummy dsymutil; ac_word=$2
6102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6103 $as_echo_n "checking for $ac_word... " >&6; }
6104 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6105 $as_echo_n "(cached) " >&6
6106 else
6107 if test -n "$ac_ct_DSYMUTIL"; then
6108 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6109 else
6110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6111 for as_dir in $PATH
6113 IFS=$as_save_IFS
6114 test -z "$as_dir" && as_dir=.
6115 for ac_exec_ext in '' $ac_executable_extensions; do
6116 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6117 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6119 break 2
6121 done
6122 done
6123 IFS=$as_save_IFS
6127 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6128 if test -n "$ac_ct_DSYMUTIL"; then
6129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6130 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6131 else
6132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6133 $as_echo "no" >&6; }
6136 if test "x$ac_ct_DSYMUTIL" = x; then
6137 DSYMUTIL=":"
6138 else
6139 case $cross_compiling:$ac_tool_warned in
6140 yes:)
6141 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6142 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6143 ac_tool_warned=yes ;;
6144 esac
6145 DSYMUTIL=$ac_ct_DSYMUTIL
6147 else
6148 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6151 if test -n "$ac_tool_prefix"; then
6152 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6153 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6155 $as_echo_n "checking for $ac_word... " >&6; }
6156 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6157 $as_echo_n "(cached) " >&6
6158 else
6159 if test -n "$NMEDIT"; then
6160 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6161 else
6162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6163 for as_dir in $PATH
6165 IFS=$as_save_IFS
6166 test -z "$as_dir" && as_dir=.
6167 for ac_exec_ext in '' $ac_executable_extensions; do
6168 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6169 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6171 break 2
6173 done
6174 done
6175 IFS=$as_save_IFS
6179 NMEDIT=$ac_cv_prog_NMEDIT
6180 if test -n "$NMEDIT"; then
6181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6182 $as_echo "$NMEDIT" >&6; }
6183 else
6184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6185 $as_echo "no" >&6; }
6190 if test -z "$ac_cv_prog_NMEDIT"; then
6191 ac_ct_NMEDIT=$NMEDIT
6192 # Extract the first word of "nmedit", so it can be a program name with args.
6193 set dummy nmedit; ac_word=$2
6194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6195 $as_echo_n "checking for $ac_word... " >&6; }
6196 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6197 $as_echo_n "(cached) " >&6
6198 else
6199 if test -n "$ac_ct_NMEDIT"; then
6200 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6201 else
6202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6203 for as_dir in $PATH
6205 IFS=$as_save_IFS
6206 test -z "$as_dir" && as_dir=.
6207 for ac_exec_ext in '' $ac_executable_extensions; do
6208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6209 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6211 break 2
6213 done
6214 done
6215 IFS=$as_save_IFS
6219 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6220 if test -n "$ac_ct_NMEDIT"; then
6221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6222 $as_echo "$ac_ct_NMEDIT" >&6; }
6223 else
6224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6225 $as_echo "no" >&6; }
6228 if test "x$ac_ct_NMEDIT" = x; then
6229 NMEDIT=":"
6230 else
6231 case $cross_compiling:$ac_tool_warned in
6232 yes:)
6233 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6234 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6235 ac_tool_warned=yes ;;
6236 esac
6237 NMEDIT=$ac_ct_NMEDIT
6239 else
6240 NMEDIT="$ac_cv_prog_NMEDIT"
6243 if test -n "$ac_tool_prefix"; then
6244 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6245 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6247 $as_echo_n "checking for $ac_word... " >&6; }
6248 if test "${ac_cv_prog_LIPO+set}" = set; then :
6249 $as_echo_n "(cached) " >&6
6250 else
6251 if test -n "$LIPO"; then
6252 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6253 else
6254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6255 for as_dir in $PATH
6257 IFS=$as_save_IFS
6258 test -z "$as_dir" && as_dir=.
6259 for ac_exec_ext in '' $ac_executable_extensions; do
6260 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6261 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6263 break 2
6265 done
6266 done
6267 IFS=$as_save_IFS
6271 LIPO=$ac_cv_prog_LIPO
6272 if test -n "$LIPO"; then
6273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6274 $as_echo "$LIPO" >&6; }
6275 else
6276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6277 $as_echo "no" >&6; }
6282 if test -z "$ac_cv_prog_LIPO"; then
6283 ac_ct_LIPO=$LIPO
6284 # Extract the first word of "lipo", so it can be a program name with args.
6285 set dummy lipo; ac_word=$2
6286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6287 $as_echo_n "checking for $ac_word... " >&6; }
6288 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6289 $as_echo_n "(cached) " >&6
6290 else
6291 if test -n "$ac_ct_LIPO"; then
6292 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6293 else
6294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6295 for as_dir in $PATH
6297 IFS=$as_save_IFS
6298 test -z "$as_dir" && as_dir=.
6299 for ac_exec_ext in '' $ac_executable_extensions; do
6300 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6301 ac_cv_prog_ac_ct_LIPO="lipo"
6302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6303 break 2
6305 done
6306 done
6307 IFS=$as_save_IFS
6311 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6312 if test -n "$ac_ct_LIPO"; then
6313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6314 $as_echo "$ac_ct_LIPO" >&6; }
6315 else
6316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6317 $as_echo "no" >&6; }
6320 if test "x$ac_ct_LIPO" = x; then
6321 LIPO=":"
6322 else
6323 case $cross_compiling:$ac_tool_warned in
6324 yes:)
6325 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6326 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6327 ac_tool_warned=yes ;;
6328 esac
6329 LIPO=$ac_ct_LIPO
6331 else
6332 LIPO="$ac_cv_prog_LIPO"
6335 if test -n "$ac_tool_prefix"; then
6336 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6337 set dummy ${ac_tool_prefix}otool; ac_word=$2
6338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6339 $as_echo_n "checking for $ac_word... " >&6; }
6340 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6341 $as_echo_n "(cached) " >&6
6342 else
6343 if test -n "$OTOOL"; then
6344 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6345 else
6346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6347 for as_dir in $PATH
6349 IFS=$as_save_IFS
6350 test -z "$as_dir" && as_dir=.
6351 for ac_exec_ext in '' $ac_executable_extensions; do
6352 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6353 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6355 break 2
6357 done
6358 done
6359 IFS=$as_save_IFS
6363 OTOOL=$ac_cv_prog_OTOOL
6364 if test -n "$OTOOL"; then
6365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6366 $as_echo "$OTOOL" >&6; }
6367 else
6368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6369 $as_echo "no" >&6; }
6374 if test -z "$ac_cv_prog_OTOOL"; then
6375 ac_ct_OTOOL=$OTOOL
6376 # Extract the first word of "otool", so it can be a program name with args.
6377 set dummy otool; ac_word=$2
6378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6379 $as_echo_n "checking for $ac_word... " >&6; }
6380 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6381 $as_echo_n "(cached) " >&6
6382 else
6383 if test -n "$ac_ct_OTOOL"; then
6384 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6385 else
6386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6387 for as_dir in $PATH
6389 IFS=$as_save_IFS
6390 test -z "$as_dir" && as_dir=.
6391 for ac_exec_ext in '' $ac_executable_extensions; do
6392 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6393 ac_cv_prog_ac_ct_OTOOL="otool"
6394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6395 break 2
6397 done
6398 done
6399 IFS=$as_save_IFS
6403 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6404 if test -n "$ac_ct_OTOOL"; then
6405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6406 $as_echo "$ac_ct_OTOOL" >&6; }
6407 else
6408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6409 $as_echo "no" >&6; }
6412 if test "x$ac_ct_OTOOL" = x; then
6413 OTOOL=":"
6414 else
6415 case $cross_compiling:$ac_tool_warned in
6416 yes:)
6417 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6418 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6419 ac_tool_warned=yes ;;
6420 esac
6421 OTOOL=$ac_ct_OTOOL
6423 else
6424 OTOOL="$ac_cv_prog_OTOOL"
6427 if test -n "$ac_tool_prefix"; then
6428 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6429 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6431 $as_echo_n "checking for $ac_word... " >&6; }
6432 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6433 $as_echo_n "(cached) " >&6
6434 else
6435 if test -n "$OTOOL64"; then
6436 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6437 else
6438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6439 for as_dir in $PATH
6441 IFS=$as_save_IFS
6442 test -z "$as_dir" && as_dir=.
6443 for ac_exec_ext in '' $ac_executable_extensions; do
6444 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6445 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6447 break 2
6449 done
6450 done
6451 IFS=$as_save_IFS
6455 OTOOL64=$ac_cv_prog_OTOOL64
6456 if test -n "$OTOOL64"; then
6457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6458 $as_echo "$OTOOL64" >&6; }
6459 else
6460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6461 $as_echo "no" >&6; }
6466 if test -z "$ac_cv_prog_OTOOL64"; then
6467 ac_ct_OTOOL64=$OTOOL64
6468 # Extract the first word of "otool64", so it can be a program name with args.
6469 set dummy otool64; ac_word=$2
6470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6471 $as_echo_n "checking for $ac_word... " >&6; }
6472 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6473 $as_echo_n "(cached) " >&6
6474 else
6475 if test -n "$ac_ct_OTOOL64"; then
6476 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6477 else
6478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6479 for as_dir in $PATH
6481 IFS=$as_save_IFS
6482 test -z "$as_dir" && as_dir=.
6483 for ac_exec_ext in '' $ac_executable_extensions; do
6484 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6485 ac_cv_prog_ac_ct_OTOOL64="otool64"
6486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6487 break 2
6489 done
6490 done
6491 IFS=$as_save_IFS
6495 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6496 if test -n "$ac_ct_OTOOL64"; then
6497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6498 $as_echo "$ac_ct_OTOOL64" >&6; }
6499 else
6500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6501 $as_echo "no" >&6; }
6504 if test "x$ac_ct_OTOOL64" = x; then
6505 OTOOL64=":"
6506 else
6507 case $cross_compiling:$ac_tool_warned in
6508 yes:)
6509 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6510 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6511 ac_tool_warned=yes ;;
6512 esac
6513 OTOOL64=$ac_ct_OTOOL64
6515 else
6516 OTOOL64="$ac_cv_prog_OTOOL64"
6545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6546 $as_echo_n "checking for -single_module linker flag... " >&6; }
6547 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6548 $as_echo_n "(cached) " >&6
6549 else
6550 lt_cv_apple_cc_single_mod=no
6551 if test -z "${LT_MULTI_MODULE}"; then
6552 # By default we will add the -single_module flag. You can override
6553 # by either setting the environment variable LT_MULTI_MODULE
6554 # non-empty at configure time, or by adding -multi_module to the
6555 # link flags.
6556 rm -rf libconftest.dylib*
6557 echo "int foo(void){return 1;}" > conftest.c
6558 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6559 -dynamiclib -Wl,-single_module conftest.c" >&5
6560 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6561 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6562 _lt_result=$?
6563 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6564 lt_cv_apple_cc_single_mod=yes
6565 else
6566 cat conftest.err >&5
6568 rm -rf libconftest.dylib*
6569 rm -f conftest.*
6572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6573 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6575 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6576 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6577 $as_echo_n "(cached) " >&6
6578 else
6579 lt_cv_ld_exported_symbols_list=no
6580 save_LDFLAGS=$LDFLAGS
6581 echo "_main" > conftest.sym
6582 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6584 /* end confdefs.h. */
6587 main ()
6591 return 0;
6593 _ACEOF
6594 if ac_fn_c_try_link "$LINENO"; then :
6595 lt_cv_ld_exported_symbols_list=yes
6596 else
6597 lt_cv_ld_exported_symbols_list=no
6599 rm -f core conftest.err conftest.$ac_objext \
6600 conftest$ac_exeext conftest.$ac_ext
6601 LDFLAGS="$save_LDFLAGS"
6604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6605 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6606 case $host_os in
6607 rhapsody* | darwin1.[012])
6608 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6609 darwin1.*)
6610 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6611 darwin*) # darwin 5.x on
6612 # if running on 10.5 or later, the deployment target defaults
6613 # to the OS version, if on x86, and 10.4, the deployment
6614 # target defaults to 10.4. Don't you love it?
6615 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6616 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6617 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6618 10.[012]*)
6619 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6620 10.*)
6621 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6622 esac
6624 esac
6625 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6626 _lt_dar_single_mod='$single_module'
6628 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6629 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6630 else
6631 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6633 if test "$DSYMUTIL" != ":"; then
6634 _lt_dsymutil='~$DSYMUTIL $lib || :'
6635 else
6636 _lt_dsymutil=
6639 esac
6641 ac_ext=c
6642 ac_cpp='$CPP $CPPFLAGS'
6643 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6644 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6645 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6647 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6648 # On Suns, sometimes $CPP names a directory.
6649 if test -n "$CPP" && test -d "$CPP"; then
6650 CPP=
6652 if test -z "$CPP"; then
6653 if test "${ac_cv_prog_CPP+set}" = set; then :
6654 $as_echo_n "(cached) " >&6
6655 else
6656 # Double quotes because CPP needs to be expanded
6657 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6659 ac_preproc_ok=false
6660 for ac_c_preproc_warn_flag in '' yes
6662 # Use a header file that comes with gcc, so configuring glibc
6663 # with a fresh cross-compiler works.
6664 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6665 # <limits.h> exists even on freestanding compilers.
6666 # On the NeXT, cc -E runs the code through the compiler's parser,
6667 # not just through cpp. "Syntax error" is here to catch this case.
6668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6669 /* end confdefs.h. */
6670 #ifdef __STDC__
6671 # include <limits.h>
6672 #else
6673 # include <assert.h>
6674 #endif
6675 Syntax error
6676 _ACEOF
6677 if ac_fn_c_try_cpp "$LINENO"; then :
6679 else
6680 # Broken: fails on valid input.
6681 continue
6683 rm -f conftest.err conftest.$ac_ext
6685 # OK, works on sane cases. Now check whether nonexistent headers
6686 # can be detected and how.
6687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6688 /* end confdefs.h. */
6689 #include <ac_nonexistent.h>
6690 _ACEOF
6691 if ac_fn_c_try_cpp "$LINENO"; then :
6692 # Broken: success on invalid input.
6693 continue
6694 else
6695 # Passes both tests.
6696 ac_preproc_ok=:
6697 break
6699 rm -f conftest.err conftest.$ac_ext
6701 done
6702 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6703 rm -f conftest.err conftest.$ac_ext
6704 if $ac_preproc_ok; then :
6705 break
6708 done
6709 ac_cv_prog_CPP=$CPP
6712 CPP=$ac_cv_prog_CPP
6713 else
6714 ac_cv_prog_CPP=$CPP
6716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6717 $as_echo "$CPP" >&6; }
6718 ac_preproc_ok=false
6719 for ac_c_preproc_warn_flag in '' yes
6721 # Use a header file that comes with gcc, so configuring glibc
6722 # with a fresh cross-compiler works.
6723 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6724 # <limits.h> exists even on freestanding compilers.
6725 # On the NeXT, cc -E runs the code through the compiler's parser,
6726 # not just through cpp. "Syntax error" is here to catch this case.
6727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6728 /* end confdefs.h. */
6729 #ifdef __STDC__
6730 # include <limits.h>
6731 #else
6732 # include <assert.h>
6733 #endif
6734 Syntax error
6735 _ACEOF
6736 if ac_fn_c_try_cpp "$LINENO"; then :
6738 else
6739 # Broken: fails on valid input.
6740 continue
6742 rm -f conftest.err conftest.$ac_ext
6744 # OK, works on sane cases. Now check whether nonexistent headers
6745 # can be detected and how.
6746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6747 /* end confdefs.h. */
6748 #include <ac_nonexistent.h>
6749 _ACEOF
6750 if ac_fn_c_try_cpp "$LINENO"; then :
6751 # Broken: success on invalid input.
6752 continue
6753 else
6754 # Passes both tests.
6755 ac_preproc_ok=:
6756 break
6758 rm -f conftest.err conftest.$ac_ext
6760 done
6761 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6762 rm -f conftest.err conftest.$ac_ext
6763 if $ac_preproc_ok; then :
6765 else
6766 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6767 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6768 as_fn_error "C preprocessor \"$CPP\" fails sanity check
6769 See \`config.log' for more details." "$LINENO" 5; }
6772 ac_ext=c
6773 ac_cpp='$CPP $CPPFLAGS'
6774 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6775 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6776 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6780 $as_echo_n "checking for ANSI C header files... " >&6; }
6781 if test "${ac_cv_header_stdc+set}" = set; then :
6782 $as_echo_n "(cached) " >&6
6783 else
6784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6785 /* end confdefs.h. */
6786 #include <stdlib.h>
6787 #include <stdarg.h>
6788 #include <string.h>
6789 #include <float.h>
6792 main ()
6796 return 0;
6798 _ACEOF
6799 if ac_fn_c_try_compile "$LINENO"; then :
6800 ac_cv_header_stdc=yes
6801 else
6802 ac_cv_header_stdc=no
6804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6806 if test $ac_cv_header_stdc = yes; then
6807 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6809 /* end confdefs.h. */
6810 #include <string.h>
6812 _ACEOF
6813 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6814 $EGREP "memchr" >/dev/null 2>&1; then :
6816 else
6817 ac_cv_header_stdc=no
6819 rm -f conftest*
6823 if test $ac_cv_header_stdc = yes; then
6824 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6826 /* end confdefs.h. */
6827 #include <stdlib.h>
6829 _ACEOF
6830 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6831 $EGREP "free" >/dev/null 2>&1; then :
6833 else
6834 ac_cv_header_stdc=no
6836 rm -f conftest*
6840 if test $ac_cv_header_stdc = yes; then
6841 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6842 if test "$cross_compiling" = yes; then :
6844 else
6845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6846 /* end confdefs.h. */
6847 #include <ctype.h>
6848 #include <stdlib.h>
6849 #if ((' ' & 0x0FF) == 0x020)
6850 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6851 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6852 #else
6853 # define ISLOWER(c) \
6854 (('a' <= (c) && (c) <= 'i') \
6855 || ('j' <= (c) && (c) <= 'r') \
6856 || ('s' <= (c) && (c) <= 'z'))
6857 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6858 #endif
6860 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6862 main ()
6864 int i;
6865 for (i = 0; i < 256; i++)
6866 if (XOR (islower (i), ISLOWER (i))
6867 || toupper (i) != TOUPPER (i))
6868 return 2;
6869 return 0;
6871 _ACEOF
6872 if ac_fn_c_try_run "$LINENO"; then :
6874 else
6875 ac_cv_header_stdc=no
6877 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6878 conftest.$ac_objext conftest.beam conftest.$ac_ext
6883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6884 $as_echo "$ac_cv_header_stdc" >&6; }
6885 if test $ac_cv_header_stdc = yes; then
6887 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6891 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6892 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6893 inttypes.h stdint.h unistd.h
6894 do :
6895 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6896 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6898 eval as_val=\$$as_ac_Header
6899 if test "x$as_val" = x""yes; then :
6900 cat >>confdefs.h <<_ACEOF
6901 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6902 _ACEOF
6906 done
6909 for ac_header in dlfcn.h
6910 do :
6911 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6913 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
6914 cat >>confdefs.h <<_ACEOF
6915 #define HAVE_DLFCN_H 1
6916 _ACEOF
6920 done
6924 # Set options
6928 enable_dlopen=no
6931 enable_win32_dll=no
6934 # Check whether --enable-shared was given.
6935 if test "${enable_shared+set}" = set; then :
6936 enableval=$enable_shared; p=${PACKAGE-default}
6937 case $enableval in
6938 yes) enable_shared=yes ;;
6939 no) enable_shared=no ;;
6941 enable_shared=no
6942 # Look at the argument we got. We use all the common list separators.
6943 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6944 for pkg in $enableval; do
6945 IFS="$lt_save_ifs"
6946 if test "X$pkg" = "X$p"; then
6947 enable_shared=yes
6949 done
6950 IFS="$lt_save_ifs"
6952 esac
6953 else
6954 enable_shared=yes
6965 # Check whether --enable-static was given.
6966 if test "${enable_static+set}" = set; then :
6967 enableval=$enable_static; p=${PACKAGE-default}
6968 case $enableval in
6969 yes) enable_static=yes ;;
6970 no) enable_static=no ;;
6972 enable_static=no
6973 # Look at the argument we got. We use all the common list separators.
6974 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6975 for pkg in $enableval; do
6976 IFS="$lt_save_ifs"
6977 if test "X$pkg" = "X$p"; then
6978 enable_static=yes
6980 done
6981 IFS="$lt_save_ifs"
6983 esac
6984 else
6985 enable_static=yes
6997 # Check whether --with-pic was given.
6998 if test "${with_pic+set}" = set; then :
6999 withval=$with_pic; pic_mode="$withval"
7000 else
7001 pic_mode=default
7005 test -z "$pic_mode" && pic_mode=default
7013 # Check whether --enable-fast-install was given.
7014 if test "${enable_fast_install+set}" = set; then :
7015 enableval=$enable_fast_install; p=${PACKAGE-default}
7016 case $enableval in
7017 yes) enable_fast_install=yes ;;
7018 no) enable_fast_install=no ;;
7020 enable_fast_install=no
7021 # Look at the argument we got. We use all the common list separators.
7022 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7023 for pkg in $enableval; do
7024 IFS="$lt_save_ifs"
7025 if test "X$pkg" = "X$p"; then
7026 enable_fast_install=yes
7028 done
7029 IFS="$lt_save_ifs"
7031 esac
7032 else
7033 enable_fast_install=yes
7046 # This can be used to rebuild libtool when needed
7047 LIBTOOL_DEPS="$ltmain"
7049 # Always use our own libtool.
7050 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7076 test -z "$LN_S" && LN_S="ln -s"
7091 if test -n "${ZSH_VERSION+set}" ; then
7092 setopt NO_GLOB_SUBST
7095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7096 $as_echo_n "checking for objdir... " >&6; }
7097 if test "${lt_cv_objdir+set}" = set; then :
7098 $as_echo_n "(cached) " >&6
7099 else
7100 rm -f .libs 2>/dev/null
7101 mkdir .libs 2>/dev/null
7102 if test -d .libs; then
7103 lt_cv_objdir=.libs
7104 else
7105 # MS-DOS does not allow filenames that begin with a dot.
7106 lt_cv_objdir=_libs
7108 rmdir .libs 2>/dev/null
7110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7111 $as_echo "$lt_cv_objdir" >&6; }
7112 objdir=$lt_cv_objdir
7118 cat >>confdefs.h <<_ACEOF
7119 #define LT_OBJDIR "$lt_cv_objdir/"
7120 _ACEOF
7138 case $host_os in
7139 aix3*)
7140 # AIX sometimes has problems with the GCC collect2 program. For some
7141 # reason, if we set the COLLECT_NAMES environment variable, the problems
7142 # vanish in a puff of smoke.
7143 if test "X${COLLECT_NAMES+set}" != Xset; then
7144 COLLECT_NAMES=
7145 export COLLECT_NAMES
7148 esac
7150 # Sed substitution that helps us do robust quoting. It backslashifies
7151 # metacharacters that are still active within double-quoted strings.
7152 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7154 # Same as above, but do not quote variable references.
7155 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7157 # Sed substitution to delay expansion of an escaped shell variable in a
7158 # double_quote_subst'ed string.
7159 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7161 # Sed substitution to delay expansion of an escaped single quote.
7162 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7164 # Sed substitution to avoid accidental globbing in evaled expressions
7165 no_glob_subst='s/\*/\\\*/g'
7167 # Global variables:
7168 ofile=libtool
7169 can_build_shared=yes
7171 # All known linkers require a `.a' archive for static linking (except MSVC,
7172 # which needs '.lib').
7173 libext=a
7175 with_gnu_ld="$lt_cv_prog_gnu_ld"
7177 old_CC="$CC"
7178 old_CFLAGS="$CFLAGS"
7180 # Set sane defaults for various variables
7181 test -z "$CC" && CC=cc
7182 test -z "$LTCC" && LTCC=$CC
7183 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7184 test -z "$LD" && LD=ld
7185 test -z "$ac_objext" && ac_objext=o
7187 for cc_temp in $compiler""; do
7188 case $cc_temp in
7189 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7190 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7191 \-*) ;;
7192 *) break;;
7193 esac
7194 done
7195 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7198 # Only perform the check for file, if the check method requires it
7199 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7200 case $deplibs_check_method in
7201 file_magic*)
7202 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7204 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7205 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7206 $as_echo_n "(cached) " >&6
7207 else
7208 case $MAGIC_CMD in
7209 [\\/*] | ?:[\\/]*)
7210 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7213 lt_save_MAGIC_CMD="$MAGIC_CMD"
7214 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7215 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7216 for ac_dir in $ac_dummy; do
7217 IFS="$lt_save_ifs"
7218 test -z "$ac_dir" && ac_dir=.
7219 if test -f $ac_dir/${ac_tool_prefix}file; then
7220 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7221 if test -n "$file_magic_test_file"; then
7222 case $deplibs_check_method in
7223 "file_magic "*)
7224 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7225 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7226 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7227 $EGREP "$file_magic_regex" > /dev/null; then
7229 else
7230 cat <<_LT_EOF 1>&2
7232 *** Warning: the command libtool uses to detect shared libraries,
7233 *** $file_magic_cmd, produces output that libtool cannot recognize.
7234 *** The result is that libtool may fail to recognize shared libraries
7235 *** as such. This will affect the creation of libtool libraries that
7236 *** depend on shared libraries, but programs linked with such libtool
7237 *** libraries will work regardless of this problem. Nevertheless, you
7238 *** may want to report the problem to your system manager and/or to
7239 *** bug-libtool@gnu.org
7241 _LT_EOF
7242 fi ;;
7243 esac
7245 break
7247 done
7248 IFS="$lt_save_ifs"
7249 MAGIC_CMD="$lt_save_MAGIC_CMD"
7251 esac
7254 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7255 if test -n "$MAGIC_CMD"; then
7256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7257 $as_echo "$MAGIC_CMD" >&6; }
7258 else
7259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7260 $as_echo "no" >&6; }
7267 if test -z "$lt_cv_path_MAGIC_CMD"; then
7268 if test -n "$ac_tool_prefix"; then
7269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7270 $as_echo_n "checking for file... " >&6; }
7271 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7272 $as_echo_n "(cached) " >&6
7273 else
7274 case $MAGIC_CMD in
7275 [\\/*] | ?:[\\/]*)
7276 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7279 lt_save_MAGIC_CMD="$MAGIC_CMD"
7280 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7281 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7282 for ac_dir in $ac_dummy; do
7283 IFS="$lt_save_ifs"
7284 test -z "$ac_dir" && ac_dir=.
7285 if test -f $ac_dir/file; then
7286 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7287 if test -n "$file_magic_test_file"; then
7288 case $deplibs_check_method in
7289 "file_magic "*)
7290 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7291 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7292 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7293 $EGREP "$file_magic_regex" > /dev/null; then
7295 else
7296 cat <<_LT_EOF 1>&2
7298 *** Warning: the command libtool uses to detect shared libraries,
7299 *** $file_magic_cmd, produces output that libtool cannot recognize.
7300 *** The result is that libtool may fail to recognize shared libraries
7301 *** as such. This will affect the creation of libtool libraries that
7302 *** depend on shared libraries, but programs linked with such libtool
7303 *** libraries will work regardless of this problem. Nevertheless, you
7304 *** may want to report the problem to your system manager and/or to
7305 *** bug-libtool@gnu.org
7307 _LT_EOF
7308 fi ;;
7309 esac
7311 break
7313 done
7314 IFS="$lt_save_ifs"
7315 MAGIC_CMD="$lt_save_MAGIC_CMD"
7317 esac
7320 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7321 if test -n "$MAGIC_CMD"; then
7322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7323 $as_echo "$MAGIC_CMD" >&6; }
7324 else
7325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7326 $as_echo "no" >&6; }
7330 else
7331 MAGIC_CMD=:
7337 esac
7339 # Use C for the default configuration in the libtool script
7341 lt_save_CC="$CC"
7342 ac_ext=c
7343 ac_cpp='$CPP $CPPFLAGS'
7344 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7345 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7346 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7349 # Source file extension for C test sources.
7350 ac_ext=c
7352 # Object file extension for compiled C test sources.
7353 objext=o
7354 objext=$objext
7356 # Code to be used in simple compile tests
7357 lt_simple_compile_test_code="int some_variable = 0;"
7359 # Code to be used in simple link tests
7360 lt_simple_link_test_code='int main(){return(0);}'
7368 # If no C compiler was specified, use CC.
7369 LTCC=${LTCC-"$CC"}
7371 # If no C compiler flags were specified, use CFLAGS.
7372 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7374 # Allow CC to be a program name with arguments.
7375 compiler=$CC
7377 # Save the default compiler, since it gets overwritten when the other
7378 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7379 compiler_DEFAULT=$CC
7381 # save warnings/boilerplate of simple test code
7382 ac_outfile=conftest.$ac_objext
7383 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7384 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7385 _lt_compiler_boilerplate=`cat conftest.err`
7386 $RM conftest*
7388 ac_outfile=conftest.$ac_objext
7389 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7390 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7391 _lt_linker_boilerplate=`cat conftest.err`
7392 $RM -r conftest*
7395 ## CAVEAT EMPTOR:
7396 ## There is no encapsulation within the following macros, do not change
7397 ## the running order or otherwise move them around unless you know exactly
7398 ## what you are doing...
7399 if test -n "$compiler"; then
7401 lt_prog_compiler_no_builtin_flag=
7403 if test "$GCC" = yes; then
7404 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7407 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7408 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7409 $as_echo_n "(cached) " >&6
7410 else
7411 lt_cv_prog_compiler_rtti_exceptions=no
7412 ac_outfile=conftest.$ac_objext
7413 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7414 lt_compiler_flag="-fno-rtti -fno-exceptions"
7415 # Insert the option either (1) after the last *FLAGS variable, or
7416 # (2) before a word containing "conftest.", or (3) at the end.
7417 # Note that $ac_compile itself does not contain backslashes and begins
7418 # with a dollar sign (not a hyphen), so the echo should work correctly.
7419 # The option is referenced via a variable to avoid confusing sed.
7420 lt_compile=`echo "$ac_compile" | $SED \
7421 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7422 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7423 -e 's:$: $lt_compiler_flag:'`
7424 (eval echo "\"\$as_me:7424: $lt_compile\"" >&5)
7425 (eval "$lt_compile" 2>conftest.err)
7426 ac_status=$?
7427 cat conftest.err >&5
7428 echo "$as_me:7428: \$? = $ac_status" >&5
7429 if (exit $ac_status) && test -s "$ac_outfile"; then
7430 # The compiler can only warn and ignore the option if not recognized
7431 # So say no if there are warnings other than the usual output.
7432 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7433 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7434 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7435 lt_cv_prog_compiler_rtti_exceptions=yes
7438 $RM conftest*
7441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7442 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7444 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7445 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7446 else
7457 lt_prog_compiler_wl=
7458 lt_prog_compiler_pic=
7459 lt_prog_compiler_static=
7461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7462 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7464 if test "$GCC" = yes; then
7465 lt_prog_compiler_wl='-Wl,'
7466 lt_prog_compiler_static='-static'
7468 case $host_os in
7469 aix*)
7470 # All AIX code is PIC.
7471 if test "$host_cpu" = ia64; then
7472 # AIX 5 now supports IA64 processor
7473 lt_prog_compiler_static='-Bstatic'
7477 amigaos*)
7478 case $host_cpu in
7479 powerpc)
7480 # see comment about AmigaOS4 .so support
7481 lt_prog_compiler_pic='-fPIC'
7483 m68k)
7484 # FIXME: we need at least 68020 code to build shared libraries, but
7485 # adding the `-m68020' flag to GCC prevents building anything better,
7486 # like `-m68040'.
7487 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7489 esac
7492 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7493 # PIC is the default for these OSes.
7496 mingw* | cygwin* | pw32* | os2* | cegcc*)
7497 # This hack is so that the source file can tell whether it is being
7498 # built for inclusion in a dll (and should export symbols for example).
7499 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7500 # (--disable-auto-import) libraries
7501 lt_prog_compiler_pic='-DDLL_EXPORT'
7504 darwin* | rhapsody*)
7505 # PIC is the default on this platform
7506 # Common symbols not allowed in MH_DYLIB files
7507 lt_prog_compiler_pic='-fno-common'
7510 hpux*)
7511 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7512 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7513 # sets the default TLS model and affects inlining.
7514 case $host_cpu in
7515 hppa*64*)
7516 # +Z the default
7519 lt_prog_compiler_pic='-fPIC'
7521 esac
7524 interix[3-9]*)
7525 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7526 # Instead, we relocate shared libraries at runtime.
7529 msdosdjgpp*)
7530 # Just because we use GCC doesn't mean we suddenly get shared libraries
7531 # on systems that don't support them.
7532 lt_prog_compiler_can_build_shared=no
7533 enable_shared=no
7536 *nto* | *qnx*)
7537 # QNX uses GNU C++, but need to define -shared option too, otherwise
7538 # it will coredump.
7539 lt_prog_compiler_pic='-fPIC -shared'
7542 sysv4*MP*)
7543 if test -d /usr/nec; then
7544 lt_prog_compiler_pic=-Kconform_pic
7549 lt_prog_compiler_pic='-fPIC'
7551 esac
7552 else
7553 # PORTME Check for flag to pass linker flags through the system compiler.
7554 case $host_os in
7555 aix*)
7556 lt_prog_compiler_wl='-Wl,'
7557 if test "$host_cpu" = ia64; then
7558 # AIX 5 now supports IA64 processor
7559 lt_prog_compiler_static='-Bstatic'
7560 else
7561 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7565 mingw* | cygwin* | pw32* | os2* | cegcc*)
7566 # This hack is so that the source file can tell whether it is being
7567 # built for inclusion in a dll (and should export symbols for example).
7568 lt_prog_compiler_pic='-DDLL_EXPORT'
7571 hpux9* | hpux10* | hpux11*)
7572 lt_prog_compiler_wl='-Wl,'
7573 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7574 # not for PA HP-UX.
7575 case $host_cpu in
7576 hppa*64*|ia64*)
7577 # +Z the default
7580 lt_prog_compiler_pic='+Z'
7582 esac
7583 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7584 lt_prog_compiler_static='${wl}-a ${wl}archive'
7587 irix5* | irix6* | nonstopux*)
7588 lt_prog_compiler_wl='-Wl,'
7589 # PIC (with -KPIC) is the default.
7590 lt_prog_compiler_static='-non_shared'
7593 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7594 case $cc_basename in
7595 # old Intel for x86_64 which still supported -KPIC.
7596 ecc*)
7597 lt_prog_compiler_wl='-Wl,'
7598 lt_prog_compiler_pic='-KPIC'
7599 lt_prog_compiler_static='-static'
7601 # icc used to be incompatible with GCC.
7602 # ICC 10 doesn't accept -KPIC any more.
7603 icc* | ifort*)
7604 lt_prog_compiler_wl='-Wl,'
7605 lt_prog_compiler_pic='-fPIC'
7606 lt_prog_compiler_static='-static'
7608 # Lahey Fortran 8.1.
7609 lf95*)
7610 lt_prog_compiler_wl='-Wl,'
7611 lt_prog_compiler_pic='--shared'
7612 lt_prog_compiler_static='--static'
7614 pgcc* | pgf77* | pgf90* | pgf95*)
7615 # Portland Group compilers (*not* the Pentium gcc compiler,
7616 # which looks to be a dead project)
7617 lt_prog_compiler_wl='-Wl,'
7618 lt_prog_compiler_pic='-fpic'
7619 lt_prog_compiler_static='-Bstatic'
7621 ccc*)
7622 lt_prog_compiler_wl='-Wl,'
7623 # All Alpha code is PIC.
7624 lt_prog_compiler_static='-non_shared'
7626 xl*)
7627 # IBM XL C 8.0/Fortran 10.1 on PPC
7628 lt_prog_compiler_wl='-Wl,'
7629 lt_prog_compiler_pic='-qpic'
7630 lt_prog_compiler_static='-qstaticlink'
7633 case `$CC -V 2>&1 | sed 5q` in
7634 *Sun\ C*)
7635 # Sun C 5.9
7636 lt_prog_compiler_pic='-KPIC'
7637 lt_prog_compiler_static='-Bstatic'
7638 lt_prog_compiler_wl='-Wl,'
7640 *Sun\ F*)
7641 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7642 lt_prog_compiler_pic='-KPIC'
7643 lt_prog_compiler_static='-Bstatic'
7644 lt_prog_compiler_wl=''
7646 esac
7648 esac
7651 newsos6)
7652 lt_prog_compiler_pic='-KPIC'
7653 lt_prog_compiler_static='-Bstatic'
7656 *nto* | *qnx*)
7657 # QNX uses GNU C++, but need to define -shared option too, otherwise
7658 # it will coredump.
7659 lt_prog_compiler_pic='-fPIC -shared'
7662 osf3* | osf4* | osf5*)
7663 lt_prog_compiler_wl='-Wl,'
7664 # All OSF/1 code is PIC.
7665 lt_prog_compiler_static='-non_shared'
7668 rdos*)
7669 lt_prog_compiler_static='-non_shared'
7672 solaris*)
7673 lt_prog_compiler_pic='-KPIC'
7674 lt_prog_compiler_static='-Bstatic'
7675 case $cc_basename in
7676 f77* | f90* | f95*)
7677 lt_prog_compiler_wl='-Qoption ld ';;
7679 lt_prog_compiler_wl='-Wl,';;
7680 esac
7683 sunos4*)
7684 lt_prog_compiler_wl='-Qoption ld '
7685 lt_prog_compiler_pic='-PIC'
7686 lt_prog_compiler_static='-Bstatic'
7689 sysv4 | sysv4.2uw2* | sysv4.3*)
7690 lt_prog_compiler_wl='-Wl,'
7691 lt_prog_compiler_pic='-KPIC'
7692 lt_prog_compiler_static='-Bstatic'
7695 sysv4*MP*)
7696 if test -d /usr/nec ;then
7697 lt_prog_compiler_pic='-Kconform_pic'
7698 lt_prog_compiler_static='-Bstatic'
7702 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7703 lt_prog_compiler_wl='-Wl,'
7704 lt_prog_compiler_pic='-KPIC'
7705 lt_prog_compiler_static='-Bstatic'
7708 unicos*)
7709 lt_prog_compiler_wl='-Wl,'
7710 lt_prog_compiler_can_build_shared=no
7713 uts4*)
7714 lt_prog_compiler_pic='-pic'
7715 lt_prog_compiler_static='-Bstatic'
7719 lt_prog_compiler_can_build_shared=no
7721 esac
7724 case $host_os in
7725 # For platforms which do not support PIC, -DPIC is meaningless:
7726 *djgpp*)
7727 lt_prog_compiler_pic=
7730 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7732 esac
7733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7734 $as_echo "$lt_prog_compiler_pic" >&6; }
7742 # Check to make sure the PIC flag actually works.
7744 if test -n "$lt_prog_compiler_pic"; then
7745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7746 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7747 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
7748 $as_echo_n "(cached) " >&6
7749 else
7750 lt_cv_prog_compiler_pic_works=no
7751 ac_outfile=conftest.$ac_objext
7752 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7753 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7754 # Insert the option either (1) after the last *FLAGS variable, or
7755 # (2) before a word containing "conftest.", or (3) at the end.
7756 # Note that $ac_compile itself does not contain backslashes and begins
7757 # with a dollar sign (not a hyphen), so the echo should work correctly.
7758 # The option is referenced via a variable to avoid confusing sed.
7759 lt_compile=`echo "$ac_compile" | $SED \
7760 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7761 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7762 -e 's:$: $lt_compiler_flag:'`
7763 (eval echo "\"\$as_me:7763: $lt_compile\"" >&5)
7764 (eval "$lt_compile" 2>conftest.err)
7765 ac_status=$?
7766 cat conftest.err >&5
7767 echo "$as_me:7767: \$? = $ac_status" >&5
7768 if (exit $ac_status) && test -s "$ac_outfile"; then
7769 # The compiler can only warn and ignore the option if not recognized
7770 # So say no if there are warnings other than the usual output.
7771 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7772 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7773 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7774 lt_cv_prog_compiler_pic_works=yes
7777 $RM conftest*
7780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7781 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7783 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7784 case $lt_prog_compiler_pic in
7785 "" | " "*) ;;
7786 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7787 esac
7788 else
7789 lt_prog_compiler_pic=
7790 lt_prog_compiler_can_build_shared=no
7801 # Check to make sure the static flag actually works.
7803 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7805 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7806 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
7807 $as_echo_n "(cached) " >&6
7808 else
7809 lt_cv_prog_compiler_static_works=no
7810 save_LDFLAGS="$LDFLAGS"
7811 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7812 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7813 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7814 # The linker can only warn and ignore the option if not recognized
7815 # So say no if there are warnings
7816 if test -s conftest.err; then
7817 # Append any errors to the config.log.
7818 cat conftest.err 1>&5
7819 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7820 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7821 if diff conftest.exp conftest.er2 >/dev/null; then
7822 lt_cv_prog_compiler_static_works=yes
7824 else
7825 lt_cv_prog_compiler_static_works=yes
7828 $RM -r conftest*
7829 LDFLAGS="$save_LDFLAGS"
7832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7833 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7835 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7837 else
7838 lt_prog_compiler_static=
7847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7848 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7849 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7850 $as_echo_n "(cached) " >&6
7851 else
7852 lt_cv_prog_compiler_c_o=no
7853 $RM -r conftest 2>/dev/null
7854 mkdir conftest
7855 cd conftest
7856 mkdir out
7857 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7859 lt_compiler_flag="-o out/conftest2.$ac_objext"
7860 # Insert the option either (1) after the last *FLAGS variable, or
7861 # (2) before a word containing "conftest.", or (3) at the end.
7862 # Note that $ac_compile itself does not contain backslashes and begins
7863 # with a dollar sign (not a hyphen), so the echo should work correctly.
7864 lt_compile=`echo "$ac_compile" | $SED \
7865 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7866 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7867 -e 's:$: $lt_compiler_flag:'`
7868 (eval echo "\"\$as_me:7868: $lt_compile\"" >&5)
7869 (eval "$lt_compile" 2>out/conftest.err)
7870 ac_status=$?
7871 cat out/conftest.err >&5
7872 echo "$as_me:7872: \$? = $ac_status" >&5
7873 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7874 then
7875 # The compiler can only warn and ignore the option if not recognized
7876 # So say no if there are warnings
7877 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7878 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7879 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7880 lt_cv_prog_compiler_c_o=yes
7883 chmod u+w . 2>&5
7884 $RM conftest*
7885 # SGI C++ compiler will create directory out/ii_files/ for
7886 # template instantiation
7887 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7888 $RM out/* && rmdir out
7889 cd ..
7890 $RM -r conftest
7891 $RM conftest*
7894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7895 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7903 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7904 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7905 $as_echo_n "(cached) " >&6
7906 else
7907 lt_cv_prog_compiler_c_o=no
7908 $RM -r conftest 2>/dev/null
7909 mkdir conftest
7910 cd conftest
7911 mkdir out
7912 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7914 lt_compiler_flag="-o out/conftest2.$ac_objext"
7915 # Insert the option either (1) after the last *FLAGS variable, or
7916 # (2) before a word containing "conftest.", or (3) at the end.
7917 # Note that $ac_compile itself does not contain backslashes and begins
7918 # with a dollar sign (not a hyphen), so the echo should work correctly.
7919 lt_compile=`echo "$ac_compile" | $SED \
7920 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7921 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7922 -e 's:$: $lt_compiler_flag:'`
7923 (eval echo "\"\$as_me:7923: $lt_compile\"" >&5)
7924 (eval "$lt_compile" 2>out/conftest.err)
7925 ac_status=$?
7926 cat out/conftest.err >&5
7927 echo "$as_me:7927: \$? = $ac_status" >&5
7928 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7929 then
7930 # The compiler can only warn and ignore the option if not recognized
7931 # So say no if there are warnings
7932 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7933 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7934 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7935 lt_cv_prog_compiler_c_o=yes
7938 chmod u+w . 2>&5
7939 $RM conftest*
7940 # SGI C++ compiler will create directory out/ii_files/ for
7941 # template instantiation
7942 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7943 $RM out/* && rmdir out
7944 cd ..
7945 $RM -r conftest
7946 $RM conftest*
7949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7950 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7955 hard_links="nottested"
7956 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7957 # do not overwrite the value of need_locks provided by the user
7958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
7959 $as_echo_n "checking if we can lock with hard links... " >&6; }
7960 hard_links=yes
7961 $RM conftest*
7962 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7963 touch conftest.a
7964 ln conftest.a conftest.b 2>&5 || hard_links=no
7965 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
7967 $as_echo "$hard_links" >&6; }
7968 if test "$hard_links" = no; then
7969 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7970 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7971 need_locks=warn
7973 else
7974 need_locks=no
7982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7983 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7985 runpath_var=
7986 allow_undefined_flag=
7987 always_export_symbols=no
7988 archive_cmds=
7989 archive_expsym_cmds=
7990 compiler_needs_object=no
7991 enable_shared_with_static_runtimes=no
7992 export_dynamic_flag_spec=
7993 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7994 hardcode_automatic=no
7995 hardcode_direct=no
7996 hardcode_direct_absolute=no
7997 hardcode_libdir_flag_spec=
7998 hardcode_libdir_flag_spec_ld=
7999 hardcode_libdir_separator=
8000 hardcode_minus_L=no
8001 hardcode_shlibpath_var=unsupported
8002 inherit_rpath=no
8003 link_all_deplibs=unknown
8004 module_cmds=
8005 module_expsym_cmds=
8006 old_archive_from_new_cmds=
8007 old_archive_from_expsyms_cmds=
8008 thread_safe_flag_spec=
8009 whole_archive_flag_spec=
8010 # include_expsyms should be a list of space-separated symbols to be *always*
8011 # included in the symbol list
8012 include_expsyms=
8013 # exclude_expsyms can be an extended regexp of symbols to exclude
8014 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8015 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8016 # as well as any symbol that contains `d'.
8017 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8018 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8019 # platforms (ab)use it in PIC code, but their linkers get confused if
8020 # the symbol is explicitly referenced. Since portable code cannot
8021 # rely on this symbol name, it's probably fine to never include it in
8022 # preloaded symbol tables.
8023 # Exclude shared library initialization/finalization symbols.
8024 extract_expsyms_cmds=
8026 case $host_os in
8027 cygwin* | mingw* | pw32* | cegcc*)
8028 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8029 # When not using gcc, we currently assume that we are using
8030 # Microsoft Visual C++.
8031 if test "$GCC" != yes; then
8032 with_gnu_ld=no
8035 interix*)
8036 # we just hope/assume this is gcc and not c89 (= MSVC++)
8037 with_gnu_ld=yes
8039 openbsd*)
8040 with_gnu_ld=no
8042 esac
8044 ld_shlibs=yes
8045 if test "$with_gnu_ld" = yes; then
8046 # If archive_cmds runs LD, not CC, wlarc should be empty
8047 wlarc='${wl}'
8049 # Set some defaults for GNU ld with shared library support. These
8050 # are reset later if shared libraries are not supported. Putting them
8051 # here allows them to be overridden if necessary.
8052 runpath_var=LD_RUN_PATH
8053 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8054 export_dynamic_flag_spec='${wl}--export-dynamic'
8055 # ancient GNU ld didn't support --whole-archive et. al.
8056 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8057 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8058 else
8059 whole_archive_flag_spec=
8061 supports_anon_versioning=no
8062 case `$LD -v 2>&1` in
8063 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8064 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8065 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8066 *\ 2.11.*) ;; # other 2.11 versions
8067 *) supports_anon_versioning=yes ;;
8068 esac
8070 # See if GNU ld supports shared libraries.
8071 case $host_os in
8072 aix[3-9]*)
8073 # On AIX/PPC, the GNU linker is very broken
8074 if test "$host_cpu" != ia64; then
8075 ld_shlibs=no
8076 cat <<_LT_EOF 1>&2
8078 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8079 *** to be unable to reliably create shared libraries on AIX.
8080 *** Therefore, libtool is disabling shared libraries support. If you
8081 *** really care for shared libraries, you may want to modify your PATH
8082 *** so that a non-GNU linker is found, and then restart.
8084 _LT_EOF
8088 amigaos*)
8089 case $host_cpu in
8090 powerpc)
8091 # see comment about AmigaOS4 .so support
8092 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8093 archive_expsym_cmds=''
8095 m68k)
8096 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)'
8097 hardcode_libdir_flag_spec='-L$libdir'
8098 hardcode_minus_L=yes
8100 esac
8103 beos*)
8104 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8105 allow_undefined_flag=unsupported
8106 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8107 # support --undefined. This deserves some investigation. FIXME
8108 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8109 else
8110 ld_shlibs=no
8114 cygwin* | mingw* | pw32* | cegcc*)
8115 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8116 # as there is no search path for DLLs.
8117 hardcode_libdir_flag_spec='-L$libdir'
8118 allow_undefined_flag=unsupported
8119 always_export_symbols=no
8120 enable_shared_with_static_runtimes=yes
8121 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8123 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8124 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8125 # If the export-symbols file already is a .def file (1st line
8126 # is EXPORTS), use it as is; otherwise, prepend...
8127 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8128 cp $export_symbols $output_objdir/$soname.def;
8129 else
8130 echo EXPORTS > $output_objdir/$soname.def;
8131 cat $export_symbols >> $output_objdir/$soname.def;
8133 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8134 else
8135 ld_shlibs=no
8139 interix[3-9]*)
8140 hardcode_direct=no
8141 hardcode_shlibpath_var=no
8142 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8143 export_dynamic_flag_spec='${wl}-E'
8144 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8145 # Instead, shared libraries are loaded at an image base (0x10000000 by
8146 # default) and relocated if they conflict, which is a slow very memory
8147 # consuming and fragmenting process. To avoid this, we pick a random,
8148 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8149 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8150 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8151 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'
8154 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8155 tmp_diet=no
8156 if test "$host_os" = linux-dietlibc; then
8157 case $cc_basename in
8158 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8159 esac
8161 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8162 && test "$tmp_diet" = no
8163 then
8164 tmp_addflag=
8165 tmp_sharedflag='-shared'
8166 case $cc_basename,$host_cpu in
8167 pgcc*) # Portland Group C compiler
8168 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8169 tmp_addflag=' $pic_flag'
8171 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8172 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8173 tmp_addflag=' $pic_flag -Mnomain' ;;
8174 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8175 tmp_addflag=' -i_dynamic' ;;
8176 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8177 tmp_addflag=' -i_dynamic -nofor_main' ;;
8178 ifc* | ifort*) # Intel Fortran compiler
8179 tmp_addflag=' -nofor_main' ;;
8180 lf95*) # Lahey Fortran 8.1
8181 whole_archive_flag_spec=
8182 tmp_sharedflag='--shared' ;;
8183 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8184 tmp_sharedflag='-qmkshrobj'
8185 tmp_addflag= ;;
8186 esac
8187 case `$CC -V 2>&1 | sed 5q` in
8188 *Sun\ C*) # Sun C 5.9
8189 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8190 compiler_needs_object=yes
8191 tmp_sharedflag='-G' ;;
8192 *Sun\ F*) # Sun Fortran 8.3
8193 tmp_sharedflag='-G' ;;
8194 esac
8195 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8197 if test "x$supports_anon_versioning" = xyes; then
8198 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8199 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8200 echo "local: *; };" >> $output_objdir/$libname.ver~
8201 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8204 case $cc_basename in
8205 xlf*)
8206 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8207 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8208 hardcode_libdir_flag_spec=
8209 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8210 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8211 if test "x$supports_anon_versioning" = xyes; then
8212 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8213 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8214 echo "local: *; };" >> $output_objdir/$libname.ver~
8215 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8218 esac
8219 else
8220 ld_shlibs=no
8224 netbsd*)
8225 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8226 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8227 wlarc=
8228 else
8229 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8230 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8234 solaris*)
8235 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8236 ld_shlibs=no
8237 cat <<_LT_EOF 1>&2
8239 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8240 *** create shared libraries on Solaris systems. Therefore, libtool
8241 *** is disabling shared libraries support. We urge you to upgrade GNU
8242 *** binutils to release 2.9.1 or newer. Another option is to modify
8243 *** your PATH or compiler configuration so that the native linker is
8244 *** used, and then restart.
8246 _LT_EOF
8247 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8248 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8249 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8250 else
8251 ld_shlibs=no
8255 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8256 case `$LD -v 2>&1` in
8257 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8258 ld_shlibs=no
8259 cat <<_LT_EOF 1>&2
8261 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8262 *** reliably create shared libraries on SCO systems. Therefore, libtool
8263 *** is disabling shared libraries support. We urge you to upgrade GNU
8264 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8265 *** your PATH or compiler configuration so that the native linker is
8266 *** used, and then restart.
8268 _LT_EOF
8271 # For security reasons, it is highly recommended that you always
8272 # use absolute paths for naming shared libraries, and exclude the
8273 # DT_RUNPATH tag from executables and libraries. But doing so
8274 # requires that you compile everything twice, which is a pain.
8275 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8276 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8277 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8278 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8279 else
8280 ld_shlibs=no
8283 esac
8286 sunos4*)
8287 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8288 wlarc=
8289 hardcode_direct=yes
8290 hardcode_shlibpath_var=no
8294 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8295 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8296 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8297 else
8298 ld_shlibs=no
8301 esac
8303 if test "$ld_shlibs" = no; then
8304 runpath_var=
8305 hardcode_libdir_flag_spec=
8306 export_dynamic_flag_spec=
8307 whole_archive_flag_spec=
8309 else
8310 # PORTME fill in a description of your system's linker (not GNU ld)
8311 case $host_os in
8312 aix3*)
8313 allow_undefined_flag=unsupported
8314 always_export_symbols=yes
8315 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'
8316 # Note: this linker hardcodes the directories in LIBPATH if there
8317 # are no directories specified by -L.
8318 hardcode_minus_L=yes
8319 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8320 # Neither direct hardcoding nor static linking is supported with a
8321 # broken collect2.
8322 hardcode_direct=unsupported
8326 aix[4-9]*)
8327 if test "$host_cpu" = ia64; then
8328 # On IA64, the linker does run time linking by default, so we don't
8329 # have to do anything special.
8330 aix_use_runtimelinking=no
8331 exp_sym_flag='-Bexport'
8332 no_entry_flag=""
8333 else
8334 # If we're using GNU nm, then we don't want the "-C" option.
8335 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8336 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8337 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8338 else
8339 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8341 aix_use_runtimelinking=no
8343 # Test if we are trying to use run time linking or normal
8344 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8345 # need to do runtime linking.
8346 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8347 for ld_flag in $LDFLAGS; do
8348 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8349 aix_use_runtimelinking=yes
8350 break
8352 done
8354 esac
8356 exp_sym_flag='-bexport'
8357 no_entry_flag='-bnoentry'
8360 # When large executables or shared objects are built, AIX ld can
8361 # have problems creating the table of contents. If linking a library
8362 # or program results in "error TOC overflow" add -mminimal-toc to
8363 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8364 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8366 archive_cmds=''
8367 hardcode_direct=yes
8368 hardcode_direct_absolute=yes
8369 hardcode_libdir_separator=':'
8370 link_all_deplibs=yes
8371 file_list_spec='${wl}-f,'
8373 if test "$GCC" = yes; then
8374 case $host_os in aix4.[012]|aix4.[012].*)
8375 # We only want to do this on AIX 4.2 and lower, the check
8376 # below for broken collect2 doesn't work under 4.3+
8377 collect2name=`${CC} -print-prog-name=collect2`
8378 if test -f "$collect2name" &&
8379 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8380 then
8381 # We have reworked collect2
8383 else
8384 # We have old collect2
8385 hardcode_direct=unsupported
8386 # It fails to find uninstalled libraries when the uninstalled
8387 # path is not listed in the libpath. Setting hardcode_minus_L
8388 # to unsupported forces relinking
8389 hardcode_minus_L=yes
8390 hardcode_libdir_flag_spec='-L$libdir'
8391 hardcode_libdir_separator=
8394 esac
8395 shared_flag='-shared'
8396 if test "$aix_use_runtimelinking" = yes; then
8397 shared_flag="$shared_flag "'${wl}-G'
8399 else
8400 # not using gcc
8401 if test "$host_cpu" = ia64; then
8402 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8403 # chokes on -Wl,-G. The following line is correct:
8404 shared_flag='-G'
8405 else
8406 if test "$aix_use_runtimelinking" = yes; then
8407 shared_flag='${wl}-G'
8408 else
8409 shared_flag='${wl}-bM:SRE'
8414 export_dynamic_flag_spec='${wl}-bexpall'
8415 # It seems that -bexpall does not export symbols beginning with
8416 # underscore (_), so it is better to generate a list of symbols to export.
8417 always_export_symbols=yes
8418 if test "$aix_use_runtimelinking" = yes; then
8419 # Warning - without using the other runtime loading flags (-brtl),
8420 # -berok will link without error, but may produce a broken library.
8421 allow_undefined_flag='-berok'
8422 # Determine the default libpath from the value encoded in an
8423 # empty executable.
8424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8425 /* end confdefs.h. */
8428 main ()
8432 return 0;
8434 _ACEOF
8435 if ac_fn_c_try_link "$LINENO"; then :
8437 lt_aix_libpath_sed='
8438 /Import File Strings/,/^$/ {
8439 /^0/ {
8440 s/^0 *\(.*\)$/\1/
8444 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8445 # Check for a 64-bit object if we didn't find anything.
8446 if test -z "$aix_libpath"; then
8447 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8450 rm -f core conftest.err conftest.$ac_objext \
8451 conftest$ac_exeext conftest.$ac_ext
8452 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8454 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8455 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8456 else
8457 if test "$host_cpu" = ia64; then
8458 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8459 allow_undefined_flag="-z nodefs"
8460 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"
8461 else
8462 # Determine the default libpath from the value encoded in an
8463 # empty executable.
8464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8465 /* end confdefs.h. */
8468 main ()
8472 return 0;
8474 _ACEOF
8475 if ac_fn_c_try_link "$LINENO"; then :
8477 lt_aix_libpath_sed='
8478 /Import File Strings/,/^$/ {
8479 /^0/ {
8480 s/^0 *\(.*\)$/\1/
8484 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8485 # Check for a 64-bit object if we didn't find anything.
8486 if test -z "$aix_libpath"; then
8487 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8490 rm -f core conftest.err conftest.$ac_objext \
8491 conftest$ac_exeext conftest.$ac_ext
8492 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8494 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8495 # Warning - without using the other run time loading flags,
8496 # -berok will link without error, but may produce a broken library.
8497 no_undefined_flag=' ${wl}-bernotok'
8498 allow_undefined_flag=' ${wl}-berok'
8499 # Exported symbols can be pulled into shared objects from archives
8500 whole_archive_flag_spec='$convenience'
8501 archive_cmds_need_lc=yes
8502 # This is similar to how AIX traditionally builds its shared libraries.
8503 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'
8508 amigaos*)
8509 case $host_cpu in
8510 powerpc)
8511 # see comment about AmigaOS4 .so support
8512 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8513 archive_expsym_cmds=''
8515 m68k)
8516 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)'
8517 hardcode_libdir_flag_spec='-L$libdir'
8518 hardcode_minus_L=yes
8520 esac
8523 bsdi[45]*)
8524 export_dynamic_flag_spec=-rdynamic
8527 cygwin* | mingw* | pw32* | cegcc*)
8528 # When not using gcc, we currently assume that we are using
8529 # Microsoft Visual C++.
8530 # hardcode_libdir_flag_spec is actually meaningless, as there is
8531 # no search path for DLLs.
8532 hardcode_libdir_flag_spec=' '
8533 allow_undefined_flag=unsupported
8534 # Tell ltmain to make .lib files, not .a files.
8535 libext=lib
8536 # Tell ltmain to make .dll files, not .so files.
8537 shrext_cmds=".dll"
8538 # FIXME: Setting linknames here is a bad hack.
8539 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8540 # The linker will automatically build a .lib file if we build a DLL.
8541 old_archive_from_new_cmds='true'
8542 # FIXME: Should let the user specify the lib program.
8543 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8544 fix_srcfile_path='`cygpath -w "$srcfile"`'
8545 enable_shared_with_static_runtimes=yes
8548 darwin* | rhapsody*)
8551 archive_cmds_need_lc=no
8552 hardcode_direct=no
8553 hardcode_automatic=yes
8554 hardcode_shlibpath_var=unsupported
8555 whole_archive_flag_spec=''
8556 link_all_deplibs=yes
8557 allow_undefined_flag="$_lt_dar_allow_undefined"
8558 case $cc_basename in
8559 ifort*) _lt_dar_can_shared=yes ;;
8560 *) _lt_dar_can_shared=$GCC ;;
8561 esac
8562 if test "$_lt_dar_can_shared" = "yes"; then
8563 output_verbose_link_cmd=echo
8564 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8565 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8566 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}"
8567 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}"
8569 else
8570 ld_shlibs=no
8575 dgux*)
8576 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8577 hardcode_libdir_flag_spec='-L$libdir'
8578 hardcode_shlibpath_var=no
8581 freebsd1*)
8582 ld_shlibs=no
8585 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8586 # support. Future versions do this automatically, but an explicit c++rt0.o
8587 # does not break anything, and helps significantly (at the cost of a little
8588 # extra space).
8589 freebsd2.2*)
8590 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8591 hardcode_libdir_flag_spec='-R$libdir'
8592 hardcode_direct=yes
8593 hardcode_shlibpath_var=no
8596 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8597 freebsd2*)
8598 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8599 hardcode_direct=yes
8600 hardcode_minus_L=yes
8601 hardcode_shlibpath_var=no
8604 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8605 freebsd* | dragonfly*)
8606 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8607 hardcode_libdir_flag_spec='-R$libdir'
8608 hardcode_direct=yes
8609 hardcode_shlibpath_var=no
8612 hpux9*)
8613 if test "$GCC" = yes; then
8614 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'
8615 else
8616 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'
8618 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8619 hardcode_libdir_separator=:
8620 hardcode_direct=yes
8622 # hardcode_minus_L: Not really in the search PATH,
8623 # but as the default location of the library.
8624 hardcode_minus_L=yes
8625 export_dynamic_flag_spec='${wl}-E'
8628 hpux10*)
8629 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8630 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8631 else
8632 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8634 if test "$with_gnu_ld" = no; then
8635 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8636 hardcode_libdir_flag_spec_ld='+b $libdir'
8637 hardcode_libdir_separator=:
8638 hardcode_direct=yes
8639 hardcode_direct_absolute=yes
8640 export_dynamic_flag_spec='${wl}-E'
8641 # hardcode_minus_L: Not really in the search PATH,
8642 # but as the default location of the library.
8643 hardcode_minus_L=yes
8647 hpux11*)
8648 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8649 case $host_cpu in
8650 hppa*64*)
8651 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8653 ia64*)
8654 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8657 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8659 esac
8660 else
8661 case $host_cpu in
8662 hppa*64*)
8663 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8665 ia64*)
8666 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8669 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8671 esac
8673 if test "$with_gnu_ld" = no; then
8674 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8675 hardcode_libdir_separator=:
8677 case $host_cpu in
8678 hppa*64*|ia64*)
8679 hardcode_direct=no
8680 hardcode_shlibpath_var=no
8683 hardcode_direct=yes
8684 hardcode_direct_absolute=yes
8685 export_dynamic_flag_spec='${wl}-E'
8687 # hardcode_minus_L: Not really in the search PATH,
8688 # but as the default location of the library.
8689 hardcode_minus_L=yes
8691 esac
8695 irix5* | irix6* | nonstopux*)
8696 if test "$GCC" = yes; then
8697 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8698 # Try to use the -exported_symbol ld option, if it does not
8699 # work, assume that -exports_file does not work either and
8700 # implicitly export all symbols.
8701 save_LDFLAGS="$LDFLAGS"
8702 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8704 /* end confdefs.h. */
8705 int foo(void) {}
8706 _ACEOF
8707 if ac_fn_c_try_link "$LINENO"; then :
8708 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
8711 rm -f core conftest.err conftest.$ac_objext \
8712 conftest$ac_exeext conftest.$ac_ext
8713 LDFLAGS="$save_LDFLAGS"
8714 else
8715 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8716 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
8718 archive_cmds_need_lc='no'
8719 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8720 hardcode_libdir_separator=:
8721 inherit_rpath=yes
8722 link_all_deplibs=yes
8725 netbsd*)
8726 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8727 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8728 else
8729 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8731 hardcode_libdir_flag_spec='-R$libdir'
8732 hardcode_direct=yes
8733 hardcode_shlibpath_var=no
8736 newsos6)
8737 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8738 hardcode_direct=yes
8739 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8740 hardcode_libdir_separator=:
8741 hardcode_shlibpath_var=no
8744 *nto* | *qnx*)
8747 openbsd*)
8748 if test -f /usr/libexec/ld.so; then
8749 hardcode_direct=yes
8750 hardcode_shlibpath_var=no
8751 hardcode_direct_absolute=yes
8752 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8753 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8754 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8755 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8756 export_dynamic_flag_spec='${wl}-E'
8757 else
8758 case $host_os in
8759 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8760 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8761 hardcode_libdir_flag_spec='-R$libdir'
8764 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8765 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8767 esac
8769 else
8770 ld_shlibs=no
8774 os2*)
8775 hardcode_libdir_flag_spec='-L$libdir'
8776 hardcode_minus_L=yes
8777 allow_undefined_flag=unsupported
8778 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'
8779 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8782 osf3*)
8783 if test "$GCC" = yes; then
8784 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8785 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8786 else
8787 allow_undefined_flag=' -expect_unresolved \*'
8788 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8790 archive_cmds_need_lc='no'
8791 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8792 hardcode_libdir_separator=:
8795 osf4* | osf5*) # as osf3* with the addition of -msym flag
8796 if test "$GCC" = yes; then
8797 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8798 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8799 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8800 else
8801 allow_undefined_flag=' -expect_unresolved \*'
8802 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8803 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~
8804 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
8806 # Both c and cxx compiler support -rpath directly
8807 hardcode_libdir_flag_spec='-rpath $libdir'
8809 archive_cmds_need_lc='no'
8810 hardcode_libdir_separator=:
8813 solaris*)
8814 no_undefined_flag=' -z defs'
8815 if test "$GCC" = yes; then
8816 wlarc='${wl}'
8817 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8818 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8819 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8820 else
8821 case `$CC -V 2>&1` in
8822 *"Compilers 5.0"*)
8823 wlarc=''
8824 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8825 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8826 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8829 wlarc='${wl}'
8830 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8831 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8832 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8834 esac
8836 hardcode_libdir_flag_spec='-R$libdir'
8837 hardcode_shlibpath_var=no
8838 case $host_os in
8839 solaris2.[0-5] | solaris2.[0-5].*) ;;
8841 # The compiler driver will combine and reorder linker options,
8842 # but understands `-z linker_flag'. GCC discards it without `$wl',
8843 # but is careful enough not to reorder.
8844 # Supported since Solaris 2.6 (maybe 2.5.1?)
8845 if test "$GCC" = yes; then
8846 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8847 else
8848 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8851 esac
8852 link_all_deplibs=yes
8855 sunos4*)
8856 if test "x$host_vendor" = xsequent; then
8857 # Use $CC to link under sequent, because it throws in some extra .o
8858 # files that make .init and .fini sections work.
8859 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8860 else
8861 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8863 hardcode_libdir_flag_spec='-L$libdir'
8864 hardcode_direct=yes
8865 hardcode_minus_L=yes
8866 hardcode_shlibpath_var=no
8869 sysv4)
8870 case $host_vendor in
8871 sni)
8872 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8873 hardcode_direct=yes # is this really true???
8875 siemens)
8876 ## LD is ld it makes a PLAMLIB
8877 ## CC just makes a GrossModule.
8878 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8879 reload_cmds='$CC -r -o $output$reload_objs'
8880 hardcode_direct=no
8882 motorola)
8883 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8884 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8886 esac
8887 runpath_var='LD_RUN_PATH'
8888 hardcode_shlibpath_var=no
8891 sysv4.3*)
8892 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8893 hardcode_shlibpath_var=no
8894 export_dynamic_flag_spec='-Bexport'
8897 sysv4*MP*)
8898 if test -d /usr/nec; then
8899 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8900 hardcode_shlibpath_var=no
8901 runpath_var=LD_RUN_PATH
8902 hardcode_runpath_var=yes
8903 ld_shlibs=yes
8907 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8908 no_undefined_flag='${wl}-z,text'
8909 archive_cmds_need_lc=no
8910 hardcode_shlibpath_var=no
8911 runpath_var='LD_RUN_PATH'
8913 if test "$GCC" = yes; then
8914 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8915 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8916 else
8917 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8918 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8922 sysv5* | sco3.2v5* | sco5v6*)
8923 # Note: We can NOT use -z defs as we might desire, because we do not
8924 # link with -lc, and that would cause any symbols used from libc to
8925 # always be unresolved, which means just about no library would
8926 # ever link correctly. If we're not using GNU ld we use -z text
8927 # though, which does catch some bad symbols but isn't as heavy-handed
8928 # as -z defs.
8929 no_undefined_flag='${wl}-z,text'
8930 allow_undefined_flag='${wl}-z,nodefs'
8931 archive_cmds_need_lc=no
8932 hardcode_shlibpath_var=no
8933 hardcode_libdir_flag_spec='${wl}-R,$libdir'
8934 hardcode_libdir_separator=':'
8935 link_all_deplibs=yes
8936 export_dynamic_flag_spec='${wl}-Bexport'
8937 runpath_var='LD_RUN_PATH'
8939 if test "$GCC" = yes; then
8940 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8941 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8942 else
8943 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8944 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8948 uts4*)
8949 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8950 hardcode_libdir_flag_spec='-L$libdir'
8951 hardcode_shlibpath_var=no
8955 ld_shlibs=no
8957 esac
8959 if test x$host_vendor = xsni; then
8960 case $host in
8961 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8962 export_dynamic_flag_spec='${wl}-Blargedynsym'
8964 esac
8968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
8969 $as_echo "$ld_shlibs" >&6; }
8970 test "$ld_shlibs" = no && can_build_shared=no
8972 with_gnu_ld=$with_gnu_ld
8989 # Do we need to explicitly link libc?
8991 case "x$archive_cmds_need_lc" in
8992 x|xyes)
8993 # Assume -lc should be added
8994 archive_cmds_need_lc=yes
8996 if test "$enable_shared" = yes && test "$GCC" = yes; then
8997 case $archive_cmds in
8998 *'~'*)
8999 # FIXME: we may have to deal with multi-command sequences.
9001 '$CC '*)
9002 # Test whether the compiler implicitly links with -lc since on some
9003 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9004 # to ld, don't add -lc before -lgcc.
9005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9006 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9007 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9008 $as_echo_n "(cached) " >&6
9009 else
9010 $RM conftest*
9011 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9013 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9014 (eval $ac_compile) 2>&5
9015 ac_status=$?
9016 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9017 test $ac_status = 0; } 2>conftest.err; then
9018 soname=conftest
9019 lib=conftest
9020 libobjs=conftest.$ac_objext
9021 deplibs=
9022 wl=$lt_prog_compiler_wl
9023 pic_flag=$lt_prog_compiler_pic
9024 compiler_flags=-v
9025 linker_flags=-v
9026 verstring=
9027 output_objdir=.
9028 libname=conftest
9029 lt_save_allow_undefined_flag=$allow_undefined_flag
9030 allow_undefined_flag=
9031 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9032 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9033 ac_status=$?
9034 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9035 test $ac_status = 0; }
9036 then
9037 lt_cv_archive_cmds_need_lc=no
9038 else
9039 lt_cv_archive_cmds_need_lc=yes
9041 allow_undefined_flag=$lt_save_allow_undefined_flag
9042 else
9043 cat conftest.err 1>&5
9045 $RM conftest*
9048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9049 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9050 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9052 esac
9055 esac
9213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9214 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9216 if test "$GCC" = yes; then
9217 case $host_os in
9218 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9219 *) lt_awk_arg="/^libraries:/" ;;
9220 esac
9221 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9222 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9223 # if the path contains ";" then we assume it to be the separator
9224 # otherwise default to the standard path separator (i.e. ":") - it is
9225 # assumed that no part of a normal pathname contains ";" but that should
9226 # okay in the real world where ";" in dirpaths is itself problematic.
9227 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9228 else
9229 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9231 # Ok, now we have the path, separated by spaces, we can step through it
9232 # and add multilib dir if necessary.
9233 lt_tmp_lt_search_path_spec=
9234 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9235 for lt_sys_path in $lt_search_path_spec; do
9236 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9237 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9238 else
9239 test -d "$lt_sys_path" && \
9240 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9242 done
9243 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9244 BEGIN {RS=" "; FS="/|\n";} {
9245 lt_foo="";
9246 lt_count=0;
9247 for (lt_i = NF; lt_i > 0; lt_i--) {
9248 if ($lt_i != "" && $lt_i != ".") {
9249 if ($lt_i == "..") {
9250 lt_count++;
9251 } else {
9252 if (lt_count == 0) {
9253 lt_foo="/" $lt_i lt_foo;
9254 } else {
9255 lt_count--;
9260 if (lt_foo != "") { lt_freq[lt_foo]++; }
9261 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9263 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9264 else
9265 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9267 library_names_spec=
9268 libname_spec='lib$name'
9269 soname_spec=
9270 shrext_cmds=".so"
9271 postinstall_cmds=
9272 postuninstall_cmds=
9273 finish_cmds=
9274 finish_eval=
9275 shlibpath_var=
9276 shlibpath_overrides_runpath=unknown
9277 version_type=none
9278 dynamic_linker="$host_os ld.so"
9279 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9280 need_lib_prefix=unknown
9281 hardcode_into_libs=no
9283 # when you set need_version to no, make sure it does not cause -set_version
9284 # flags to be left without arguments
9285 need_version=unknown
9287 case $host_os in
9288 aix3*)
9289 version_type=linux
9290 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9291 shlibpath_var=LIBPATH
9293 # AIX 3 has no versioning support, so we append a major version to the name.
9294 soname_spec='${libname}${release}${shared_ext}$major'
9297 aix[4-9]*)
9298 version_type=linux
9299 need_lib_prefix=no
9300 need_version=no
9301 hardcode_into_libs=yes
9302 if test "$host_cpu" = ia64; then
9303 # AIX 5 supports IA64
9304 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9305 shlibpath_var=LD_LIBRARY_PATH
9306 else
9307 # With GCC up to 2.95.x, collect2 would create an import file
9308 # for dependence libraries. The import file would start with
9309 # the line `#! .'. This would cause the generated library to
9310 # depend on `.', always an invalid library. This was fixed in
9311 # development snapshots of GCC prior to 3.0.
9312 case $host_os in
9313 aix4 | aix4.[01] | aix4.[01].*)
9314 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9315 echo ' yes '
9316 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9318 else
9319 can_build_shared=no
9322 esac
9323 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9324 # soname into executable. Probably we can add versioning support to
9325 # collect2, so additional links can be useful in future.
9326 if test "$aix_use_runtimelinking" = yes; then
9327 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9328 # instead of lib<name>.a to let people know that these are not
9329 # typical AIX shared libraries.
9330 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9331 else
9332 # We preserve .a as extension for shared libraries through AIX4.2
9333 # and later when we are not doing run time linking.
9334 library_names_spec='${libname}${release}.a $libname.a'
9335 soname_spec='${libname}${release}${shared_ext}$major'
9337 shlibpath_var=LIBPATH
9341 amigaos*)
9342 case $host_cpu in
9343 powerpc)
9344 # Since July 2007 AmigaOS4 officially supports .so libraries.
9345 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9348 m68k)
9349 library_names_spec='$libname.ixlibrary $libname.a'
9350 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9351 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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'
9353 esac
9356 beos*)
9357 library_names_spec='${libname}${shared_ext}'
9358 dynamic_linker="$host_os ld.so"
9359 shlibpath_var=LIBRARY_PATH
9362 bsdi[45]*)
9363 version_type=linux
9364 need_version=no
9365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9366 soname_spec='${libname}${release}${shared_ext}$major'
9367 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9368 shlibpath_var=LD_LIBRARY_PATH
9369 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9370 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9371 # the default ld.so.conf also contains /usr/contrib/lib and
9372 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9373 # libtool to hard-code these into programs
9376 cygwin* | mingw* | pw32* | cegcc*)
9377 version_type=windows
9378 shrext_cmds=".dll"
9379 need_version=no
9380 need_lib_prefix=no
9382 case $GCC,$host_os in
9383 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9384 library_names_spec='$libname.dll.a'
9385 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9386 postinstall_cmds='base_file=`basename \${file}`~
9387 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9388 dldir=$destdir/`dirname \$dlpath`~
9389 test -d \$dldir || mkdir -p \$dldir~
9390 $install_prog $dir/$dlname \$dldir/$dlname~
9391 chmod a+x \$dldir/$dlname~
9392 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9393 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9395 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9396 dlpath=$dir/\$dldll~
9397 $RM \$dlpath'
9398 shlibpath_overrides_runpath=yes
9400 case $host_os in
9401 cygwin*)
9402 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9403 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9404 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9406 mingw* | cegcc*)
9407 # MinGW DLLs use traditional 'lib' prefix
9408 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9409 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9410 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9411 # It is most probably a Windows format PATH printed by
9412 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9413 # path with ; separators, and with drive letters. We can handle the
9414 # drive letters (cygwin fileutils understands them), so leave them,
9415 # especially as we might pass files found there to a mingw objdump,
9416 # which wouldn't understand a cygwinified path. Ahh.
9417 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9418 else
9419 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9422 pw32*)
9423 # pw32 DLLs use 'pw' prefix rather than 'lib'
9424 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9426 esac
9430 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9432 esac
9433 dynamic_linker='Win32 ld.exe'
9434 # FIXME: first we should search . and the directory the executable is in
9435 shlibpath_var=PATH
9438 darwin* | rhapsody*)
9439 dynamic_linker="$host_os dyld"
9440 version_type=darwin
9441 need_lib_prefix=no
9442 need_version=no
9443 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9444 soname_spec='${libname}${release}${major}$shared_ext'
9445 shlibpath_overrides_runpath=yes
9446 shlibpath_var=DYLD_LIBRARY_PATH
9447 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9449 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9450 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9453 dgux*)
9454 version_type=linux
9455 need_lib_prefix=no
9456 need_version=no
9457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9458 soname_spec='${libname}${release}${shared_ext}$major'
9459 shlibpath_var=LD_LIBRARY_PATH
9462 freebsd1*)
9463 dynamic_linker=no
9466 freebsd* | dragonfly*)
9467 # DragonFly does not have aout. When/if they implement a new
9468 # versioning mechanism, adjust this.
9469 if test -x /usr/bin/objformat; then
9470 objformat=`/usr/bin/objformat`
9471 else
9472 case $host_os in
9473 freebsd[123]*) objformat=aout ;;
9474 *) objformat=elf ;;
9475 esac
9477 version_type=freebsd-$objformat
9478 case $version_type in
9479 freebsd-elf*)
9480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9481 need_version=no
9482 need_lib_prefix=no
9484 freebsd-*)
9485 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9486 need_version=yes
9488 esac
9489 shlibpath_var=LD_LIBRARY_PATH
9490 case $host_os in
9491 freebsd2*)
9492 shlibpath_overrides_runpath=yes
9494 freebsd3.[01]* | freebsdelf3.[01]*)
9495 shlibpath_overrides_runpath=yes
9496 hardcode_into_libs=yes
9498 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9499 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9500 shlibpath_overrides_runpath=no
9501 hardcode_into_libs=yes
9503 *) # from 4.6 on, and DragonFly
9504 shlibpath_overrides_runpath=yes
9505 hardcode_into_libs=yes
9507 esac
9510 gnu*)
9511 version_type=linux
9512 need_lib_prefix=no
9513 need_version=no
9514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9515 soname_spec='${libname}${release}${shared_ext}$major'
9516 shlibpath_var=LD_LIBRARY_PATH
9517 hardcode_into_libs=yes
9520 hpux9* | hpux10* | hpux11*)
9521 # Give a soname corresponding to the major version so that dld.sl refuses to
9522 # link against other versions.
9523 version_type=sunos
9524 need_lib_prefix=no
9525 need_version=no
9526 case $host_cpu in
9527 ia64*)
9528 shrext_cmds='.so'
9529 hardcode_into_libs=yes
9530 dynamic_linker="$host_os dld.so"
9531 shlibpath_var=LD_LIBRARY_PATH
9532 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9534 soname_spec='${libname}${release}${shared_ext}$major'
9535 if test "X$HPUX_IA64_MODE" = X32; then
9536 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9537 else
9538 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9540 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9542 hppa*64*)
9543 shrext_cmds='.sl'
9544 hardcode_into_libs=yes
9545 dynamic_linker="$host_os dld.sl"
9546 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9547 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9548 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9549 soname_spec='${libname}${release}${shared_ext}$major'
9550 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9551 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9554 shrext_cmds='.sl'
9555 dynamic_linker="$host_os dld.sl"
9556 shlibpath_var=SHLIB_PATH
9557 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9558 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9559 soname_spec='${libname}${release}${shared_ext}$major'
9561 esac
9562 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9563 postinstall_cmds='chmod 555 $lib'
9566 interix[3-9]*)
9567 version_type=linux
9568 need_lib_prefix=no
9569 need_version=no
9570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9571 soname_spec='${libname}${release}${shared_ext}$major'
9572 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9573 shlibpath_var=LD_LIBRARY_PATH
9574 shlibpath_overrides_runpath=no
9575 hardcode_into_libs=yes
9578 irix5* | irix6* | nonstopux*)
9579 case $host_os in
9580 nonstopux*) version_type=nonstopux ;;
9582 if test "$lt_cv_prog_gnu_ld" = yes; then
9583 version_type=linux
9584 else
9585 version_type=irix
9586 fi ;;
9587 esac
9588 need_lib_prefix=no
9589 need_version=no
9590 soname_spec='${libname}${release}${shared_ext}$major'
9591 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9592 case $host_os in
9593 irix5* | nonstopux*)
9594 libsuff= shlibsuff=
9597 case $LD in # libtool.m4 will add one of these switches to LD
9598 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9599 libsuff= shlibsuff= libmagic=32-bit;;
9600 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9601 libsuff=32 shlibsuff=N32 libmagic=N32;;
9602 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9603 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9604 *) libsuff= shlibsuff= libmagic=never-match;;
9605 esac
9607 esac
9608 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9609 shlibpath_overrides_runpath=no
9610 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9611 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9612 hardcode_into_libs=yes
9615 # No shared lib support for Linux oldld, aout, or coff.
9616 linux*oldld* | linux*aout* | linux*coff*)
9617 dynamic_linker=no
9620 # This must be Linux ELF.
9621 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9622 version_type=linux
9623 need_lib_prefix=no
9624 need_version=no
9625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9626 soname_spec='${libname}${release}${shared_ext}$major'
9627 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9628 shlibpath_var=LD_LIBRARY_PATH
9629 shlibpath_overrides_runpath=no
9631 # Some binutils ld are patched to set DT_RUNPATH
9632 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
9633 $as_echo_n "(cached) " >&6
9634 else
9635 lt_cv_shlibpath_overrides_runpath=no
9636 save_LDFLAGS=$LDFLAGS
9637 save_libdir=$libdir
9638 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9639 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9641 /* end confdefs.h. */
9644 main ()
9648 return 0;
9650 _ACEOF
9651 if ac_fn_c_try_link "$LINENO"; then :
9652 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9653 lt_cv_shlibpath_overrides_runpath=yes
9656 rm -f core conftest.err conftest.$ac_objext \
9657 conftest$ac_exeext conftest.$ac_ext
9658 LDFLAGS=$save_LDFLAGS
9659 libdir=$save_libdir
9663 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
9665 # This implies no fast_install, which is unacceptable.
9666 # Some rework will be needed to allow for fast_install
9667 # before this can be enabled.
9668 hardcode_into_libs=yes
9670 # Append ld.so.conf contents to the search path
9671 if test -f /etc/ld.so.conf; then
9672 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;/^$/d' | tr '\n' ' '`
9673 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9676 # We used to test for /lib/ld.so.1 and disable shared libraries on
9677 # powerpc, because MkLinux only supported shared libraries with the
9678 # GNU dynamic linker. Since this was broken with cross compilers,
9679 # most powerpc-linux boxes support dynamic linking these days and
9680 # people can always --disable-shared, the test was removed, and we
9681 # assume the GNU/Linux dynamic linker is in use.
9682 dynamic_linker='GNU/Linux ld.so'
9685 netbsd*)
9686 version_type=sunos
9687 need_lib_prefix=no
9688 need_version=no
9689 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9691 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9692 dynamic_linker='NetBSD (a.out) ld.so'
9693 else
9694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9695 soname_spec='${libname}${release}${shared_ext}$major'
9696 dynamic_linker='NetBSD ld.elf_so'
9698 shlibpath_var=LD_LIBRARY_PATH
9699 shlibpath_overrides_runpath=yes
9700 hardcode_into_libs=yes
9703 newsos6)
9704 version_type=linux
9705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9706 shlibpath_var=LD_LIBRARY_PATH
9707 shlibpath_overrides_runpath=yes
9710 *nto* | *qnx*)
9711 version_type=qnx
9712 need_lib_prefix=no
9713 need_version=no
9714 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9715 soname_spec='${libname}${release}${shared_ext}$major'
9716 shlibpath_var=LD_LIBRARY_PATH
9717 shlibpath_overrides_runpath=no
9718 hardcode_into_libs=yes
9719 dynamic_linker='ldqnx.so'
9722 openbsd*)
9723 version_type=sunos
9724 sys_lib_dlsearch_path_spec="/usr/lib"
9725 need_lib_prefix=no
9726 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9727 case $host_os in
9728 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9729 *) need_version=no ;;
9730 esac
9731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9732 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9733 shlibpath_var=LD_LIBRARY_PATH
9734 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9735 case $host_os in
9736 openbsd2.[89] | openbsd2.[89].*)
9737 shlibpath_overrides_runpath=no
9740 shlibpath_overrides_runpath=yes
9742 esac
9743 else
9744 shlibpath_overrides_runpath=yes
9748 os2*)
9749 libname_spec='$name'
9750 shrext_cmds=".dll"
9751 need_lib_prefix=no
9752 library_names_spec='$libname${shared_ext} $libname.a'
9753 dynamic_linker='OS/2 ld.exe'
9754 shlibpath_var=LIBPATH
9757 osf3* | osf4* | osf5*)
9758 version_type=osf
9759 need_lib_prefix=no
9760 need_version=no
9761 soname_spec='${libname}${release}${shared_ext}$major'
9762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9763 shlibpath_var=LD_LIBRARY_PATH
9764 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9765 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9768 rdos*)
9769 dynamic_linker=no
9772 solaris*)
9773 version_type=linux
9774 need_lib_prefix=no
9775 need_version=no
9776 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9777 soname_spec='${libname}${release}${shared_ext}$major'
9778 shlibpath_var=LD_LIBRARY_PATH
9779 shlibpath_overrides_runpath=yes
9780 hardcode_into_libs=yes
9781 # ldd complains unless libraries are executable
9782 postinstall_cmds='chmod +x $lib'
9785 sunos4*)
9786 version_type=sunos
9787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9788 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9789 shlibpath_var=LD_LIBRARY_PATH
9790 shlibpath_overrides_runpath=yes
9791 if test "$with_gnu_ld" = yes; then
9792 need_lib_prefix=no
9794 need_version=yes
9797 sysv4 | sysv4.3*)
9798 version_type=linux
9799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9800 soname_spec='${libname}${release}${shared_ext}$major'
9801 shlibpath_var=LD_LIBRARY_PATH
9802 case $host_vendor in
9803 sni)
9804 shlibpath_overrides_runpath=no
9805 need_lib_prefix=no
9806 runpath_var=LD_RUN_PATH
9808 siemens)
9809 need_lib_prefix=no
9811 motorola)
9812 need_lib_prefix=no
9813 need_version=no
9814 shlibpath_overrides_runpath=no
9815 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9817 esac
9820 sysv4*MP*)
9821 if test -d /usr/nec ;then
9822 version_type=linux
9823 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9824 soname_spec='$libname${shared_ext}.$major'
9825 shlibpath_var=LD_LIBRARY_PATH
9829 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9830 version_type=freebsd-elf
9831 need_lib_prefix=no
9832 need_version=no
9833 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9834 soname_spec='${libname}${release}${shared_ext}$major'
9835 shlibpath_var=LD_LIBRARY_PATH
9836 shlibpath_overrides_runpath=yes
9837 hardcode_into_libs=yes
9838 if test "$with_gnu_ld" = yes; then
9839 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9840 else
9841 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9842 case $host_os in
9843 sco3.2v5*)
9844 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9846 esac
9848 sys_lib_dlsearch_path_spec='/usr/lib'
9851 tpf*)
9852 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9853 version_type=linux
9854 need_lib_prefix=no
9855 need_version=no
9856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9857 shlibpath_var=LD_LIBRARY_PATH
9858 shlibpath_overrides_runpath=no
9859 hardcode_into_libs=yes
9862 uts4*)
9863 version_type=linux
9864 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9865 soname_spec='${libname}${release}${shared_ext}$major'
9866 shlibpath_var=LD_LIBRARY_PATH
9870 dynamic_linker=no
9872 esac
9873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
9874 $as_echo "$dynamic_linker" >&6; }
9875 test "$dynamic_linker" = no && can_build_shared=no
9877 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9878 if test "$GCC" = yes; then
9879 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9882 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9883 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9885 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9886 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
9976 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9977 hardcode_action=
9978 if test -n "$hardcode_libdir_flag_spec" ||
9979 test -n "$runpath_var" ||
9980 test "X$hardcode_automatic" = "Xyes" ; then
9982 # We can hardcode non-existent directories.
9983 if test "$hardcode_direct" != no &&
9984 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9985 # have to relink, otherwise we might link with an installed library
9986 # when we should be linking with a yet-to-be-installed one
9987 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9988 test "$hardcode_minus_L" != no; then
9989 # Linking always hardcodes the temporary library directory.
9990 hardcode_action=relink
9991 else
9992 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9993 hardcode_action=immediate
9995 else
9996 # We cannot hardcode anything, or else we can only hardcode existing
9997 # directories.
9998 hardcode_action=unsupported
10000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10001 $as_echo "$hardcode_action" >&6; }
10003 if test "$hardcode_action" = relink ||
10004 test "$inherit_rpath" = yes; then
10005 # Fast installation is not supported
10006 enable_fast_install=no
10007 elif test "$shlibpath_overrides_runpath" = yes ||
10008 test "$enable_shared" = no; then
10009 # Fast installation is not necessary
10010 enable_fast_install=needless
10018 if test "x$enable_dlopen" != xyes; then
10019 enable_dlopen=unknown
10020 enable_dlopen_self=unknown
10021 enable_dlopen_self_static=unknown
10022 else
10023 lt_cv_dlopen=no
10024 lt_cv_dlopen_libs=
10026 case $host_os in
10027 beos*)
10028 lt_cv_dlopen="load_add_on"
10029 lt_cv_dlopen_libs=
10030 lt_cv_dlopen_self=yes
10033 mingw* | pw32* | cegcc*)
10034 lt_cv_dlopen="LoadLibrary"
10035 lt_cv_dlopen_libs=
10038 cygwin*)
10039 lt_cv_dlopen="dlopen"
10040 lt_cv_dlopen_libs=
10043 darwin*)
10044 # if libdl is installed we need to link against it
10045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10046 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10047 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10048 $as_echo_n "(cached) " >&6
10049 else
10050 ac_check_lib_save_LIBS=$LIBS
10051 LIBS="-ldl $LIBS"
10052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10053 /* end confdefs.h. */
10055 /* Override any GCC internal prototype to avoid an error.
10056 Use char because int might match the return type of a GCC
10057 builtin and then its argument prototype would still apply. */
10058 #ifdef __cplusplus
10059 extern "C"
10060 #endif
10061 char dlopen ();
10063 main ()
10065 return dlopen ();
10067 return 0;
10069 _ACEOF
10070 if ac_fn_c_try_link "$LINENO"; then :
10071 ac_cv_lib_dl_dlopen=yes
10072 else
10073 ac_cv_lib_dl_dlopen=no
10075 rm -f core conftest.err conftest.$ac_objext \
10076 conftest$ac_exeext conftest.$ac_ext
10077 LIBS=$ac_check_lib_save_LIBS
10079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10080 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10081 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10082 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10083 else
10085 lt_cv_dlopen="dyld"
10086 lt_cv_dlopen_libs=
10087 lt_cv_dlopen_self=yes
10094 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10095 if test "x$ac_cv_func_shl_load" = x""yes; then :
10096 lt_cv_dlopen="shl_load"
10097 else
10098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10099 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10100 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10101 $as_echo_n "(cached) " >&6
10102 else
10103 ac_check_lib_save_LIBS=$LIBS
10104 LIBS="-ldld $LIBS"
10105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10106 /* end confdefs.h. */
10108 /* Override any GCC internal prototype to avoid an error.
10109 Use char because int might match the return type of a GCC
10110 builtin and then its argument prototype would still apply. */
10111 #ifdef __cplusplus
10112 extern "C"
10113 #endif
10114 char shl_load ();
10116 main ()
10118 return shl_load ();
10120 return 0;
10122 _ACEOF
10123 if ac_fn_c_try_link "$LINENO"; then :
10124 ac_cv_lib_dld_shl_load=yes
10125 else
10126 ac_cv_lib_dld_shl_load=no
10128 rm -f core conftest.err conftest.$ac_objext \
10129 conftest$ac_exeext conftest.$ac_ext
10130 LIBS=$ac_check_lib_save_LIBS
10132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10133 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10134 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10135 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10136 else
10137 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10138 if test "x$ac_cv_func_dlopen" = x""yes; then :
10139 lt_cv_dlopen="dlopen"
10140 else
10141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10142 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10143 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10144 $as_echo_n "(cached) " >&6
10145 else
10146 ac_check_lib_save_LIBS=$LIBS
10147 LIBS="-ldl $LIBS"
10148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10149 /* end confdefs.h. */
10151 /* Override any GCC internal prototype to avoid an error.
10152 Use char because int might match the return type of a GCC
10153 builtin and then its argument prototype would still apply. */
10154 #ifdef __cplusplus
10155 extern "C"
10156 #endif
10157 char dlopen ();
10159 main ()
10161 return dlopen ();
10163 return 0;
10165 _ACEOF
10166 if ac_fn_c_try_link "$LINENO"; then :
10167 ac_cv_lib_dl_dlopen=yes
10168 else
10169 ac_cv_lib_dl_dlopen=no
10171 rm -f core conftest.err conftest.$ac_objext \
10172 conftest$ac_exeext conftest.$ac_ext
10173 LIBS=$ac_check_lib_save_LIBS
10175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10176 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10177 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10178 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10179 else
10180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10181 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10182 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10183 $as_echo_n "(cached) " >&6
10184 else
10185 ac_check_lib_save_LIBS=$LIBS
10186 LIBS="-lsvld $LIBS"
10187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10188 /* end confdefs.h. */
10190 /* Override any GCC internal prototype to avoid an error.
10191 Use char because int might match the return type of a GCC
10192 builtin and then its argument prototype would still apply. */
10193 #ifdef __cplusplus
10194 extern "C"
10195 #endif
10196 char dlopen ();
10198 main ()
10200 return dlopen ();
10202 return 0;
10204 _ACEOF
10205 if ac_fn_c_try_link "$LINENO"; then :
10206 ac_cv_lib_svld_dlopen=yes
10207 else
10208 ac_cv_lib_svld_dlopen=no
10210 rm -f core conftest.err conftest.$ac_objext \
10211 conftest$ac_exeext conftest.$ac_ext
10212 LIBS=$ac_check_lib_save_LIBS
10214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10215 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10216 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10217 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10218 else
10219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10220 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10221 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10222 $as_echo_n "(cached) " >&6
10223 else
10224 ac_check_lib_save_LIBS=$LIBS
10225 LIBS="-ldld $LIBS"
10226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10227 /* end confdefs.h. */
10229 /* Override any GCC internal prototype to avoid an error.
10230 Use char because int might match the return type of a GCC
10231 builtin and then its argument prototype would still apply. */
10232 #ifdef __cplusplus
10233 extern "C"
10234 #endif
10235 char dld_link ();
10237 main ()
10239 return dld_link ();
10241 return 0;
10243 _ACEOF
10244 if ac_fn_c_try_link "$LINENO"; then :
10245 ac_cv_lib_dld_dld_link=yes
10246 else
10247 ac_cv_lib_dld_dld_link=no
10249 rm -f core conftest.err conftest.$ac_objext \
10250 conftest$ac_exeext conftest.$ac_ext
10251 LIBS=$ac_check_lib_save_LIBS
10253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10254 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10255 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10256 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10275 esac
10277 if test "x$lt_cv_dlopen" != xno; then
10278 enable_dlopen=yes
10279 else
10280 enable_dlopen=no
10283 case $lt_cv_dlopen in
10284 dlopen)
10285 save_CPPFLAGS="$CPPFLAGS"
10286 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10288 save_LDFLAGS="$LDFLAGS"
10289 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10291 save_LIBS="$LIBS"
10292 LIBS="$lt_cv_dlopen_libs $LIBS"
10294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10295 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10296 if test "${lt_cv_dlopen_self+set}" = set; then :
10297 $as_echo_n "(cached) " >&6
10298 else
10299 if test "$cross_compiling" = yes; then :
10300 lt_cv_dlopen_self=cross
10301 else
10302 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10303 lt_status=$lt_dlunknown
10304 cat > conftest.$ac_ext <<_LT_EOF
10305 #line 10305 "configure"
10306 #include "confdefs.h"
10308 #if HAVE_DLFCN_H
10309 #include <dlfcn.h>
10310 #endif
10312 #include <stdio.h>
10314 #ifdef RTLD_GLOBAL
10315 # define LT_DLGLOBAL RTLD_GLOBAL
10316 #else
10317 # ifdef DL_GLOBAL
10318 # define LT_DLGLOBAL DL_GLOBAL
10319 # else
10320 # define LT_DLGLOBAL 0
10321 # endif
10322 #endif
10324 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10325 find out it does not work in some platform. */
10326 #ifndef LT_DLLAZY_OR_NOW
10327 # ifdef RTLD_LAZY
10328 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10329 # else
10330 # ifdef DL_LAZY
10331 # define LT_DLLAZY_OR_NOW DL_LAZY
10332 # else
10333 # ifdef RTLD_NOW
10334 # define LT_DLLAZY_OR_NOW RTLD_NOW
10335 # else
10336 # ifdef DL_NOW
10337 # define LT_DLLAZY_OR_NOW DL_NOW
10338 # else
10339 # define LT_DLLAZY_OR_NOW 0
10340 # endif
10341 # endif
10342 # endif
10343 # endif
10344 #endif
10346 void fnord() { int i=42;}
10347 int main ()
10349 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10350 int status = $lt_dlunknown;
10352 if (self)
10354 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10355 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10356 /* dlclose (self); */
10358 else
10359 puts (dlerror ());
10361 return status;
10363 _LT_EOF
10364 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10365 (eval $ac_link) 2>&5
10366 ac_status=$?
10367 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10368 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10369 (./conftest; exit; ) >&5 2>/dev/null
10370 lt_status=$?
10371 case x$lt_status in
10372 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10373 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10374 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10375 esac
10376 else :
10377 # compilation failed
10378 lt_cv_dlopen_self=no
10381 rm -fr conftest*
10385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10386 $as_echo "$lt_cv_dlopen_self" >&6; }
10388 if test "x$lt_cv_dlopen_self" = xyes; then
10389 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10391 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10392 if test "${lt_cv_dlopen_self_static+set}" = set; then :
10393 $as_echo_n "(cached) " >&6
10394 else
10395 if test "$cross_compiling" = yes; then :
10396 lt_cv_dlopen_self_static=cross
10397 else
10398 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10399 lt_status=$lt_dlunknown
10400 cat > conftest.$ac_ext <<_LT_EOF
10401 #line 10401 "configure"
10402 #include "confdefs.h"
10404 #if HAVE_DLFCN_H
10405 #include <dlfcn.h>
10406 #endif
10408 #include <stdio.h>
10410 #ifdef RTLD_GLOBAL
10411 # define LT_DLGLOBAL RTLD_GLOBAL
10412 #else
10413 # ifdef DL_GLOBAL
10414 # define LT_DLGLOBAL DL_GLOBAL
10415 # else
10416 # define LT_DLGLOBAL 0
10417 # endif
10418 #endif
10420 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10421 find out it does not work in some platform. */
10422 #ifndef LT_DLLAZY_OR_NOW
10423 # ifdef RTLD_LAZY
10424 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10425 # else
10426 # ifdef DL_LAZY
10427 # define LT_DLLAZY_OR_NOW DL_LAZY
10428 # else
10429 # ifdef RTLD_NOW
10430 # define LT_DLLAZY_OR_NOW RTLD_NOW
10431 # else
10432 # ifdef DL_NOW
10433 # define LT_DLLAZY_OR_NOW DL_NOW
10434 # else
10435 # define LT_DLLAZY_OR_NOW 0
10436 # endif
10437 # endif
10438 # endif
10439 # endif
10440 #endif
10442 void fnord() { int i=42;}
10443 int main ()
10445 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10446 int status = $lt_dlunknown;
10448 if (self)
10450 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10451 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10452 /* dlclose (self); */
10454 else
10455 puts (dlerror ());
10457 return status;
10459 _LT_EOF
10460 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10461 (eval $ac_link) 2>&5
10462 ac_status=$?
10463 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10464 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10465 (./conftest; exit; ) >&5 2>/dev/null
10466 lt_status=$?
10467 case x$lt_status in
10468 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10469 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10470 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10471 esac
10472 else :
10473 # compilation failed
10474 lt_cv_dlopen_self_static=no
10477 rm -fr conftest*
10481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10482 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10485 CPPFLAGS="$save_CPPFLAGS"
10486 LDFLAGS="$save_LDFLAGS"
10487 LIBS="$save_LIBS"
10489 esac
10491 case $lt_cv_dlopen_self in
10492 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10493 *) enable_dlopen_self=unknown ;;
10494 esac
10496 case $lt_cv_dlopen_self_static in
10497 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10498 *) enable_dlopen_self_static=unknown ;;
10499 esac
10518 striplib=
10519 old_striplib=
10520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10521 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
10522 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10523 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10524 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10526 $as_echo "yes" >&6; }
10527 else
10528 # FIXME - insert some real tests, host_os isn't really good enough
10529 case $host_os in
10530 darwin*)
10531 if test -n "$STRIP" ; then
10532 striplib="$STRIP -x"
10533 old_striplib="$STRIP -S"
10534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10535 $as_echo "yes" >&6; }
10536 else
10537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10538 $as_echo "no" >&6; }
10542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10543 $as_echo "no" >&6; }
10545 esac
10559 # Report which library types will actually be built
10560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10561 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10563 $as_echo "$can_build_shared" >&6; }
10565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10566 $as_echo_n "checking whether to build shared libraries... " >&6; }
10567 test "$can_build_shared" = "no" && enable_shared=no
10569 # On AIX, shared libraries and static libraries use the same namespace, and
10570 # are all built from PIC.
10571 case $host_os in
10572 aix3*)
10573 test "$enable_shared" = yes && enable_static=no
10574 if test -n "$RANLIB"; then
10575 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10576 postinstall_cmds='$RANLIB $lib'
10580 aix[4-9]*)
10581 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10582 test "$enable_shared" = yes && enable_static=no
10585 esac
10586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10587 $as_echo "$enable_shared" >&6; }
10589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10590 $as_echo_n "checking whether to build static libraries... " >&6; }
10591 # Make sure either enable_shared or enable_static is yes.
10592 test "$enable_shared" = yes || enable_static=yes
10593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10594 $as_echo "$enable_static" >&6; }
10600 ac_ext=c
10601 ac_cpp='$CPP $CPPFLAGS'
10602 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10603 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10604 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10606 CC="$lt_save_CC"
10620 ac_config_commands="$ac_config_commands libtool"
10625 # Only expand once:
10629 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
10630 case $ac_cv_c_uint64_t in #(
10631 no|yes) ;; #(
10634 $as_echo "#define _UINT64_T 1" >>confdefs.h
10637 cat >>confdefs.h <<_ACEOF
10638 #define uint64_t $ac_cv_c_uint64_t
10639 _ACEOF
10641 esac
10643 ac_config_files="$ac_config_files Makefile"
10645 cat >confcache <<\_ACEOF
10646 # This file is a shell script that caches the results of configure
10647 # tests run on this system so they can be shared between configure
10648 # scripts and configure runs, see configure's option --config-cache.
10649 # It is not useful on other systems. If it contains results you don't
10650 # want to keep, you may remove or edit it.
10652 # config.status only pays attention to the cache file if you give it
10653 # the --recheck option to rerun configure.
10655 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10656 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10657 # following values.
10659 _ACEOF
10661 # The following way of writing the cache mishandles newlines in values,
10662 # but we know of no workaround that is simple, portable, and efficient.
10663 # So, we kill variables containing newlines.
10664 # Ultrix sh set writes to stderr and can't be redirected directly,
10665 # and sets the high bit in the cache file unless we assign to the vars.
10667 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10668 eval ac_val=\$$ac_var
10669 case $ac_val in #(
10670 *${as_nl}*)
10671 case $ac_var in #(
10672 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10673 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10674 esac
10675 case $ac_var in #(
10676 _ | IFS | as_nl) ;; #(
10677 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10678 *) { eval $ac_var=; unset $ac_var;} ;;
10679 esac ;;
10680 esac
10681 done
10683 (set) 2>&1 |
10684 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10685 *${as_nl}ac_space=\ *)
10686 # `set' does not quote correctly, so add quotes: double-quote
10687 # substitution turns \\\\ into \\, and sed turns \\ into \.
10688 sed -n \
10689 "s/'/'\\\\''/g;
10690 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10691 ;; #(
10693 # `set' quotes correctly as required by POSIX, so do not add quotes.
10694 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10696 esac |
10697 sort
10699 sed '
10700 /^ac_cv_env_/b end
10701 t clear
10702 :clear
10703 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10704 t end
10705 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10706 :end' >>confcache
10707 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10708 if test -w "$cache_file"; then
10709 test "x$cache_file" != "x/dev/null" &&
10710 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
10711 $as_echo "$as_me: updating cache $cache_file" >&6;}
10712 cat confcache >$cache_file
10713 else
10714 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
10715 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10718 rm -f confcache
10720 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10721 # Let make expand exec_prefix.
10722 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10724 # Transform confdefs.h into DEFS.
10725 # Protect against shell expansion while executing Makefile rules.
10726 # Protect against Makefile macro expansion.
10728 # If the first sed substitution is executed (which looks for macros that
10729 # take arguments), then branch to the quote section. Otherwise,
10730 # look for a macro that doesn't take arguments.
10731 ac_script='
10732 :mline
10733 /\\$/{
10735 s,\\\n,,
10736 b mline
10738 t clear
10739 :clear
10740 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
10741 t quote
10742 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
10743 t quote
10744 b any
10745 :quote
10746 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
10747 s/\[/\\&/g
10748 s/\]/\\&/g
10749 s/\$/$$/g
10751 :any
10754 s/^\n//
10755 s/\n/ /g
10759 DEFS=`sed -n "$ac_script" confdefs.h`
10762 ac_libobjs=
10763 ac_ltlibobjs=
10764 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10765 # 1. Remove the extension, and $U if already installed.
10766 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10767 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
10768 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10769 # will be set to the directory where LIBOBJS objects are built.
10770 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10771 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
10772 done
10773 LIBOBJS=$ac_libobjs
10775 LTLIBOBJS=$ac_ltlibobjs
10778 if test -n "$EXEEXT"; then
10779 am__EXEEXT_TRUE=
10780 am__EXEEXT_FALSE='#'
10781 else
10782 am__EXEEXT_TRUE='#'
10783 am__EXEEXT_FALSE=
10786 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
10787 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
10788 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10790 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10791 as_fn_error "conditional \"AMDEP\" was never defined.
10792 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10794 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10795 as_fn_error "conditional \"am__fastdepCC\" was never defined.
10796 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10799 : ${CONFIG_STATUS=./config.status}
10800 ac_write_fail=0
10801 ac_clean_files_save=$ac_clean_files
10802 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10803 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
10804 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
10805 as_write_fail=0
10806 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
10807 #! $SHELL
10808 # Generated by $as_me.
10809 # Run this file to recreate the current configuration.
10810 # Compiler output produced by configure, useful for debugging
10811 # configure, is in config.log if it exists.
10813 debug=false
10814 ac_cs_recheck=false
10815 ac_cs_silent=false
10817 SHELL=\${CONFIG_SHELL-$SHELL}
10818 export SHELL
10819 _ASEOF
10820 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
10821 ## -------------------- ##
10822 ## M4sh Initialization. ##
10823 ## -------------------- ##
10825 # Be more Bourne compatible
10826 DUALCASE=1; export DUALCASE # for MKS sh
10827 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
10828 emulate sh
10829 NULLCMD=:
10830 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
10831 # is contrary to our usage. Disable this feature.
10832 alias -g '${1+"$@"}'='"$@"'
10833 setopt NO_GLOB_SUBST
10834 else
10835 case `(set -o) 2>/dev/null` in #(
10836 *posix*) :
10837 set -o posix ;; #(
10838 *) :
10840 esac
10844 as_nl='
10846 export as_nl
10847 # Printing a long string crashes Solaris 7 /usr/bin/printf.
10848 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10849 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10850 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
10851 # Prefer a ksh shell builtin over an external printf program on Solaris,
10852 # but without wasting forks for bash or zsh.
10853 if test -z "$BASH_VERSION$ZSH_VERSION" \
10854 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
10855 as_echo='print -r --'
10856 as_echo_n='print -rn --'
10857 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
10858 as_echo='printf %s\n'
10859 as_echo_n='printf %s'
10860 else
10861 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10862 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
10863 as_echo_n='/usr/ucb/echo -n'
10864 else
10865 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
10866 as_echo_n_body='eval
10867 arg=$1;
10868 case $arg in #(
10869 *"$as_nl"*)
10870 expr "X$arg" : "X\\(.*\\)$as_nl";
10871 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
10872 esac;
10873 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
10875 export as_echo_n_body
10876 as_echo_n='sh -c $as_echo_n_body as_echo'
10878 export as_echo_body
10879 as_echo='sh -c $as_echo_body as_echo'
10882 # The user is always right.
10883 if test "${PATH_SEPARATOR+set}" != set; then
10884 PATH_SEPARATOR=:
10885 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10886 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10887 PATH_SEPARATOR=';'
10892 # IFS
10893 # We need space, tab and new line, in precisely that order. Quoting is
10894 # there to prevent editors from complaining about space-tab.
10895 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
10896 # splitting by setting IFS to empty value.)
10897 IFS=" "" $as_nl"
10899 # Find who we are. Look in the path if we contain no directory separator.
10900 case $0 in #((
10901 *[\\/]* ) as_myself=$0 ;;
10902 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10903 for as_dir in $PATH
10905 IFS=$as_save_IFS
10906 test -z "$as_dir" && as_dir=.
10907 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10908 done
10909 IFS=$as_save_IFS
10912 esac
10913 # We did not find ourselves, most probably we were run as `sh COMMAND'
10914 # in which case we are not to be found in the path.
10915 if test "x$as_myself" = x; then
10916 as_myself=$0
10918 if test ! -f "$as_myself"; then
10919 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10920 exit 1
10923 # Unset variables that we do not need and which cause bugs (e.g. in
10924 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
10925 # suppresses any "Segmentation fault" message there. '((' could
10926 # trigger a bug in pdksh 5.2.14.
10927 for as_var in BASH_ENV ENV MAIL MAILPATH
10928 do eval test x\${$as_var+set} = xset \
10929 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
10930 done
10931 PS1='$ '
10932 PS2='> '
10933 PS4='+ '
10935 # NLS nuisances.
10936 LC_ALL=C
10937 export LC_ALL
10938 LANGUAGE=C
10939 export LANGUAGE
10941 # CDPATH.
10942 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10945 # as_fn_error ERROR [LINENO LOG_FD]
10946 # ---------------------------------
10947 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
10948 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
10949 # script with status $?, using 1 if that was 0.
10950 as_fn_error ()
10952 as_status=$?; test $as_status -eq 0 && as_status=1
10953 if test "$3"; then
10954 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
10955 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
10957 $as_echo "$as_me: error: $1" >&2
10958 as_fn_exit $as_status
10959 } # as_fn_error
10962 # as_fn_set_status STATUS
10963 # -----------------------
10964 # Set $? to STATUS, without forking.
10965 as_fn_set_status ()
10967 return $1
10968 } # as_fn_set_status
10970 # as_fn_exit STATUS
10971 # -----------------
10972 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
10973 as_fn_exit ()
10975 set +e
10976 as_fn_set_status $1
10977 exit $1
10978 } # as_fn_exit
10980 # as_fn_unset VAR
10981 # ---------------
10982 # Portably unset VAR.
10983 as_fn_unset ()
10985 { eval $1=; unset $1;}
10987 as_unset=as_fn_unset
10988 # as_fn_append VAR VALUE
10989 # ----------------------
10990 # Append the text in VALUE to the end of the definition contained in VAR. Take
10991 # advantage of any shell optimizations that allow amortized linear growth over
10992 # repeated appends, instead of the typical quadratic growth present in naive
10993 # implementations.
10994 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
10995 eval 'as_fn_append ()
10997 eval $1+=\$2
10999 else
11000 as_fn_append ()
11002 eval $1=\$$1\$2
11004 fi # as_fn_append
11006 # as_fn_arith ARG...
11007 # ------------------
11008 # Perform arithmetic evaluation on the ARGs, and store the result in the
11009 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11010 # must be portable across $(()) and expr.
11011 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11012 eval 'as_fn_arith ()
11014 as_val=$(( $* ))
11016 else
11017 as_fn_arith ()
11019 as_val=`expr "$@" || test $? -eq 1`
11021 fi # as_fn_arith
11024 if expr a : '\(a\)' >/dev/null 2>&1 &&
11025 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11026 as_expr=expr
11027 else
11028 as_expr=false
11031 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11032 as_basename=basename
11033 else
11034 as_basename=false
11037 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11038 as_dirname=dirname
11039 else
11040 as_dirname=false
11043 as_me=`$as_basename -- "$0" ||
11044 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11045 X"$0" : 'X\(//\)$' \| \
11046 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11047 $as_echo X/"$0" |
11048 sed '/^.*\/\([^/][^/]*\)\/*$/{
11049 s//\1/
11052 /^X\/\(\/\/\)$/{
11053 s//\1/
11056 /^X\/\(\/\).*/{
11057 s//\1/
11060 s/.*/./; q'`
11062 # Avoid depending upon Character Ranges.
11063 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11064 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11065 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11066 as_cr_digits='0123456789'
11067 as_cr_alnum=$as_cr_Letters$as_cr_digits
11069 ECHO_C= ECHO_N= ECHO_T=
11070 case `echo -n x` in #(((((
11071 -n*)
11072 case `echo 'xy\c'` in
11073 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11074 xy) ECHO_C='\c';;
11075 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11076 ECHO_T=' ';;
11077 esac;;
11079 ECHO_N='-n';;
11080 esac
11082 rm -f conf$$ conf$$.exe conf$$.file
11083 if test -d conf$$.dir; then
11084 rm -f conf$$.dir/conf$$.file
11085 else
11086 rm -f conf$$.dir
11087 mkdir conf$$.dir 2>/dev/null
11089 if (echo >conf$$.file) 2>/dev/null; then
11090 if ln -s conf$$.file conf$$ 2>/dev/null; then
11091 as_ln_s='ln -s'
11092 # ... but there are two gotchas:
11093 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11094 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11095 # In both cases, we have to default to `cp -p'.
11096 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11097 as_ln_s='cp -p'
11098 elif ln conf$$.file conf$$ 2>/dev/null; then
11099 as_ln_s=ln
11100 else
11101 as_ln_s='cp -p'
11103 else
11104 as_ln_s='cp -p'
11106 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11107 rmdir conf$$.dir 2>/dev/null
11110 # as_fn_mkdir_p
11111 # -------------
11112 # Create "$as_dir" as a directory, including parents if necessary.
11113 as_fn_mkdir_p ()
11116 case $as_dir in #(
11117 -*) as_dir=./$as_dir;;
11118 esac
11119 test -d "$as_dir" || eval $as_mkdir_p || {
11120 as_dirs=
11121 while :; do
11122 case $as_dir in #(
11123 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11124 *) as_qdir=$as_dir;;
11125 esac
11126 as_dirs="'$as_qdir' $as_dirs"
11127 as_dir=`$as_dirname -- "$as_dir" ||
11128 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11129 X"$as_dir" : 'X\(//\)[^/]' \| \
11130 X"$as_dir" : 'X\(//\)$' \| \
11131 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11132 $as_echo X"$as_dir" |
11133 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11134 s//\1/
11137 /^X\(\/\/\)[^/].*/{
11138 s//\1/
11141 /^X\(\/\/\)$/{
11142 s//\1/
11145 /^X\(\/\).*/{
11146 s//\1/
11149 s/.*/./; q'`
11150 test -d "$as_dir" && break
11151 done
11152 test -z "$as_dirs" || eval "mkdir $as_dirs"
11153 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
11156 } # as_fn_mkdir_p
11157 if mkdir -p . 2>/dev/null; then
11158 as_mkdir_p='mkdir -p "$as_dir"'
11159 else
11160 test -d ./-p && rmdir ./-p
11161 as_mkdir_p=false
11164 if test -x / >/dev/null 2>&1; then
11165 as_test_x='test -x'
11166 else
11167 if ls -dL / >/dev/null 2>&1; then
11168 as_ls_L_option=L
11169 else
11170 as_ls_L_option=
11172 as_test_x='
11173 eval sh -c '\''
11174 if test -d "$1"; then
11175 test -d "$1/.";
11176 else
11177 case $1 in #(
11178 -*)set "./$1";;
11179 esac;
11180 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
11181 ???[sx]*):;;*)false;;esac;fi
11182 '\'' sh
11185 as_executable_p=$as_test_x
11187 # Sed expression to map a string onto a valid CPP name.
11188 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11190 # Sed expression to map a string onto a valid variable name.
11191 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11194 exec 6>&1
11195 ## ----------------------------------- ##
11196 ## Main body of $CONFIG_STATUS script. ##
11197 ## ----------------------------------- ##
11198 _ASEOF
11199 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11201 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11202 # Save the log message, to keep $0 and so on meaningful, and to
11203 # report actual input values of CONFIG_FILES etc. instead of their
11204 # values after options handling.
11205 ac_log="
11206 This file was extended by LTO plugin for ld $as_me 0.1, which was
11207 generated by GNU Autoconf 2.64. Invocation command line was
11209 CONFIG_FILES = $CONFIG_FILES
11210 CONFIG_HEADERS = $CONFIG_HEADERS
11211 CONFIG_LINKS = $CONFIG_LINKS
11212 CONFIG_COMMANDS = $CONFIG_COMMANDS
11213 $ $0 $@
11215 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11218 _ACEOF
11220 case $ac_config_files in *"
11221 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11222 esac
11226 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11227 # Files that config.status was made for.
11228 config_files="$ac_config_files"
11229 config_commands="$ac_config_commands"
11231 _ACEOF
11233 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11234 ac_cs_usage="\
11235 \`$as_me' instantiates files and other configuration actions
11236 from templates according to the current configuration. Unless the files
11237 and actions are specified as TAGs, all are instantiated by default.
11239 Usage: $0 [OPTION]... [TAG]...
11241 -h, --help print this help, then exit
11242 -V, --version print version number and configuration settings, then exit
11243 -q, --quiet, --silent
11244 do not print progress messages
11245 -d, --debug don't remove temporary files
11246 --recheck update $as_me by reconfiguring in the same conditions
11247 --file=FILE[:TEMPLATE]
11248 instantiate the configuration file FILE
11250 Configuration files:
11251 $config_files
11253 Configuration commands:
11254 $config_commands
11256 Report bugs to the package provider."
11258 _ACEOF
11259 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11260 ac_cs_version="\\
11261 LTO plugin for ld config.status 0.1
11262 configured by $0, generated by GNU Autoconf 2.64,
11263 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
11265 Copyright (C) 2009 Free Software Foundation, Inc.
11266 This config.status script is free software; the Free Software Foundation
11267 gives unlimited permission to copy, distribute and modify it."
11269 ac_pwd='$ac_pwd'
11270 srcdir='$srcdir'
11271 INSTALL='$INSTALL'
11272 MKDIR_P='$MKDIR_P'
11273 AWK='$AWK'
11274 test -n "\$AWK" || AWK=awk
11275 _ACEOF
11277 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11278 # The default lists apply if the user does not specify any file.
11279 ac_need_defaults=:
11280 while test $# != 0
11282 case $1 in
11283 --*=*)
11284 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11285 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11286 ac_shift=:
11289 ac_option=$1
11290 ac_optarg=$2
11291 ac_shift=shift
11293 esac
11295 case $ac_option in
11296 # Handling of the options.
11297 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11298 ac_cs_recheck=: ;;
11299 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11300 $as_echo "$ac_cs_version"; exit ;;
11301 --debug | --debu | --deb | --de | --d | -d )
11302 debug=: ;;
11303 --file | --fil | --fi | --f )
11304 $ac_shift
11305 case $ac_optarg in
11306 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11307 esac
11308 as_fn_append CONFIG_FILES " '$ac_optarg'"
11309 ac_need_defaults=false;;
11310 --he | --h | --help | --hel | -h )
11311 $as_echo "$ac_cs_usage"; exit ;;
11312 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11313 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11314 ac_cs_silent=: ;;
11316 # This is an error.
11317 -*) as_fn_error "unrecognized option: \`$1'
11318 Try \`$0 --help' for more information." ;;
11320 *) as_fn_append ac_config_targets " $1"
11321 ac_need_defaults=false ;;
11323 esac
11324 shift
11325 done
11327 ac_configure_extra_args=
11329 if $ac_cs_silent; then
11330 exec 6>/dev/null
11331 ac_configure_extra_args="$ac_configure_extra_args --silent"
11334 _ACEOF
11335 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11336 if \$ac_cs_recheck; then
11337 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11338 shift
11339 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11340 CONFIG_SHELL='$SHELL'
11341 export CONFIG_SHELL
11342 exec "\$@"
11345 _ACEOF
11346 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11347 exec 5>>config.log
11349 echo
11350 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11351 ## Running $as_me. ##
11352 _ASBOX
11353 $as_echo "$ac_log"
11354 } >&5
11356 _ACEOF
11357 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11359 # INIT-COMMANDS
11361 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11364 # The HP-UX ksh and POSIX shell print the target directory to stdout
11365 # if CDPATH is set.
11366 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11368 sed_quote_subst='$sed_quote_subst'
11369 double_quote_subst='$double_quote_subst'
11370 delay_variable_subst='$delay_variable_subst'
11371 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
11372 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
11373 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
11374 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
11375 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
11376 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
11377 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
11378 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
11379 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
11380 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
11381 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
11382 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
11383 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
11384 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
11385 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
11386 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
11387 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
11388 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
11389 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
11390 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
11391 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
11392 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
11393 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
11394 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
11395 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
11396 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
11397 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
11398 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11399 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
11400 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
11401 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
11402 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
11403 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
11404 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
11405 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
11406 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11407 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11408 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11409 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
11410 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
11411 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
11412 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
11413 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
11414 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
11415 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
11416 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
11417 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
11418 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
11419 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
11420 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
11421 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
11422 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
11423 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
11424 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
11425 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
11426 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
11427 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
11428 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
11429 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
11430 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
11431 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
11432 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
11433 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11434 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11435 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
11436 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
11437 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
11438 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
11439 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
11440 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11441 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11442 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11443 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11444 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11445 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11446 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
11447 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
11448 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
11449 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
11450 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
11451 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
11452 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
11453 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
11454 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
11455 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
11456 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
11457 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
11458 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
11459 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
11460 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
11461 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11462 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
11463 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
11464 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11465 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
11466 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
11467 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
11468 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
11469 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
11470 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
11471 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
11472 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
11473 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
11474 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
11475 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
11476 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11477 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11478 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11479 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
11480 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
11481 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
11482 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
11483 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
11484 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
11485 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
11486 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
11487 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
11488 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
11490 LTCC='$LTCC'
11491 LTCFLAGS='$LTCFLAGS'
11492 compiler='$compiler_DEFAULT'
11494 # Quote evaled strings.
11495 for var in SED \
11496 GREP \
11497 EGREP \
11498 FGREP \
11499 LD \
11500 NM \
11501 LN_S \
11502 lt_SP2NL \
11503 lt_NL2SP \
11504 reload_flag \
11505 OBJDUMP \
11506 deplibs_check_method \
11507 file_magic_cmd \
11508 AR \
11509 AR_FLAGS \
11510 STRIP \
11511 RANLIB \
11512 CC \
11513 CFLAGS \
11514 compiler \
11515 lt_cv_sys_global_symbol_pipe \
11516 lt_cv_sys_global_symbol_to_cdecl \
11517 lt_cv_sys_global_symbol_to_c_name_address \
11518 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
11519 SHELL \
11520 ECHO \
11521 lt_prog_compiler_no_builtin_flag \
11522 lt_prog_compiler_wl \
11523 lt_prog_compiler_pic \
11524 lt_prog_compiler_static \
11525 lt_cv_prog_compiler_c_o \
11526 need_locks \
11527 DSYMUTIL \
11528 NMEDIT \
11529 LIPO \
11530 OTOOL \
11531 OTOOL64 \
11532 shrext_cmds \
11533 export_dynamic_flag_spec \
11534 whole_archive_flag_spec \
11535 compiler_needs_object \
11536 with_gnu_ld \
11537 allow_undefined_flag \
11538 no_undefined_flag \
11539 hardcode_libdir_flag_spec \
11540 hardcode_libdir_flag_spec_ld \
11541 hardcode_libdir_separator \
11542 fix_srcfile_path \
11543 exclude_expsyms \
11544 include_expsyms \
11545 file_list_spec \
11546 variables_saved_for_relink \
11547 libname_spec \
11548 library_names_spec \
11549 soname_spec \
11550 finish_eval \
11551 old_striplib \
11552 striplib; do
11553 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
11554 *[\\\\\\\`\\"\\\$]*)
11555 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
11558 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
11560 esac
11561 done
11563 # Double-quote double-evaled strings.
11564 for var in reload_cmds \
11565 old_postinstall_cmds \
11566 old_postuninstall_cmds \
11567 old_archive_cmds \
11568 extract_expsyms_cmds \
11569 old_archive_from_new_cmds \
11570 old_archive_from_expsyms_cmds \
11571 archive_cmds \
11572 archive_expsym_cmds \
11573 module_cmds \
11574 module_expsym_cmds \
11575 export_symbols_cmds \
11576 prelink_cmds \
11577 postinstall_cmds \
11578 postuninstall_cmds \
11579 finish_cmds \
11580 sys_lib_search_path_spec \
11581 sys_lib_dlsearch_path_spec; do
11582 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
11583 *[\\\\\\\`\\"\\\$]*)
11584 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
11587 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
11589 esac
11590 done
11592 # Fix-up fallback echo if it was mangled by the above quoting rules.
11593 case \$lt_ECHO in
11594 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
11596 esac
11598 ac_aux_dir='$ac_aux_dir'
11599 xsi_shell='$xsi_shell'
11600 lt_shell_append='$lt_shell_append'
11602 # See if we are running on zsh, and set the options which allow our
11603 # commands through without removal of \ escapes INIT.
11604 if test -n "\${ZSH_VERSION+set}" ; then
11605 setopt NO_GLOB_SUBST
11609 PACKAGE='$PACKAGE'
11610 VERSION='$VERSION'
11611 TIMESTAMP='$TIMESTAMP'
11612 RM='$RM'
11613 ofile='$ofile'
11618 _ACEOF
11620 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11622 # Handling of arguments.
11623 for ac_config_target in $ac_config_targets
11625 case $ac_config_target in
11626 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11627 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
11628 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11630 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11631 esac
11632 done
11635 # If the user did not use the arguments to specify the items to instantiate,
11636 # then the envvar interface is used. Set only those that are not.
11637 # We use the long form for the default assignment because of an extremely
11638 # bizarre bug on SunOS 4.1.3.
11639 if $ac_need_defaults; then
11640 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11641 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11644 # Have a temporary directory for convenience. Make it in the build tree
11645 # simply because there is no reason against having it here, and in addition,
11646 # creating and moving files from /tmp can sometimes cause problems.
11647 # Hook for its removal unless debugging.
11648 # Note that there is a small window in which the directory will not be cleaned:
11649 # after its creation but before its name has been assigned to `$tmp'.
11650 $debug ||
11652 tmp=
11653 trap 'exit_status=$?
11654 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
11656 trap 'as_fn_exit 1' 1 2 13 15
11658 # Create a (secure) tmp directory for tmp files.
11661 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11662 test -n "$tmp" && test -d "$tmp"
11663 } ||
11665 tmp=./conf$$-$RANDOM
11666 (umask 077 && mkdir "$tmp")
11667 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
11669 # Set up the scripts for CONFIG_FILES section.
11670 # No need to generate them if there are no CONFIG_FILES.
11671 # This happens for instance with `./config.status config.h'.
11672 if test -n "$CONFIG_FILES"; then
11675 ac_cr=`echo X | tr X '\015'`
11676 # On cygwin, bash can eat \r inside `` if the user requested igncr.
11677 # But we know of no other shell where ac_cr would be empty at this
11678 # point, so we can use a bashism as a fallback.
11679 if test "x$ac_cr" = x; then
11680 eval ac_cr=\$\'\\r\'
11682 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11683 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11684 ac_cs_awk_cr='\r'
11685 else
11686 ac_cs_awk_cr=$ac_cr
11689 echo 'BEGIN {' >"$tmp/subs1.awk" &&
11690 _ACEOF
11694 echo "cat >conf$$subs.awk <<_ACEOF" &&
11695 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11696 echo "_ACEOF"
11697 } >conf$$subs.sh ||
11698 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
11699 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
11700 ac_delim='%!_!# '
11701 for ac_last_try in false false false false false :; do
11702 . ./conf$$subs.sh ||
11703 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
11705 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11706 if test $ac_delim_n = $ac_delim_num; then
11707 break
11708 elif $ac_last_try; then
11709 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
11710 else
11711 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11713 done
11714 rm -f conf$$subs.sh
11716 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11717 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
11718 _ACEOF
11719 sed -n '
11721 s/^/S["/; s/!.*/"]=/
11724 s/^[^!]*!//
11725 :repl
11726 t repl
11727 s/'"$ac_delim"'$//
11728 t delim
11731 s/\(.\{148\}\).*/\1/
11732 t more1
11733 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11736 b repl
11737 :more1
11738 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11741 s/.\{148\}//
11742 t nl
11743 :delim
11745 s/\(.\{148\}\).*/\1/
11746 t more2
11747 s/["\\]/\\&/g; s/^/"/; s/$/"/
11750 :more2
11751 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11754 s/.\{148\}//
11755 t delim
11756 ' <conf$$subs.awk | sed '
11757 /^[^""]/{
11759 s/\n//
11761 ' >>$CONFIG_STATUS || ac_write_fail=1
11762 rm -f conf$$subs.awk
11763 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11764 _ACAWK
11765 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
11766 for (key in S) S_is_set[key] = 1
11767 FS = "\a"
11771 line = $ 0
11772 nfields = split(line, field, "@")
11773 substed = 0
11774 len = length(field[1])
11775 for (i = 2; i < nfields; i++) {
11776 key = field[i]
11777 keylen = length(key)
11778 if (S_is_set[key]) {
11779 value = S[key]
11780 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11781 len += length(value) + length(field[++i])
11782 substed = 1
11783 } else
11784 len += 1 + keylen
11787 print line
11790 _ACAWK
11791 _ACEOF
11792 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11793 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11794 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11795 else
11797 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
11798 || as_fn_error "could not setup config files machinery" "$LINENO" 5
11799 _ACEOF
11801 # VPATH may cause trouble with some makes, so we remove $(srcdir),
11802 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11803 # trailing colons and then remove the whole line if VPATH becomes empty
11804 # (actually we leave an empty line to preserve line numbers).
11805 if test "x$srcdir" = x.; then
11806 ac_vpsub='/^[ ]*VPATH[ ]*=/{
11807 s/:*\$(srcdir):*/:/
11808 s/:*\${srcdir}:*/:/
11809 s/:*@srcdir@:*/:/
11810 s/^\([^=]*=[ ]*\):*/\1/
11811 s/:*$//
11812 s/^[^=]*=[ ]*$//
11816 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11817 fi # test -n "$CONFIG_FILES"
11820 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
11821 shift
11822 for ac_tag
11824 case $ac_tag in
11825 :[FHLC]) ac_mode=$ac_tag; continue;;
11826 esac
11827 case $ac_mode$ac_tag in
11828 :[FHL]*:*);;
11829 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
11830 :[FH]-) ac_tag=-:-;;
11831 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11832 esac
11833 ac_save_IFS=$IFS
11834 IFS=:
11835 set x $ac_tag
11836 IFS=$ac_save_IFS
11837 shift
11838 ac_file=$1
11839 shift
11841 case $ac_mode in
11842 :L) ac_source=$1;;
11843 :[FH])
11844 ac_file_inputs=
11845 for ac_f
11847 case $ac_f in
11848 -) ac_f="$tmp/stdin";;
11849 *) # Look for the file first in the build tree, then in the source tree
11850 # (if the path is not absolute). The absolute path cannot be DOS-style,
11851 # because $ac_f cannot contain `:'.
11852 test -f "$ac_f" ||
11853 case $ac_f in
11854 [\\/$]*) false;;
11855 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11856 esac ||
11857 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
11858 esac
11859 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
11860 as_fn_append ac_file_inputs " '$ac_f'"
11861 done
11863 # Let's still pretend it is `configure' which instantiates (i.e., don't
11864 # use $as_me), people would be surprised to read:
11865 # /* config.h. Generated by config.status. */
11866 configure_input='Generated from '`
11867 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11868 `' by configure.'
11869 if test x"$ac_file" != x-; then
11870 configure_input="$ac_file. $configure_input"
11871 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
11872 $as_echo "$as_me: creating $ac_file" >&6;}
11874 # Neutralize special characters interpreted by sed in replacement strings.
11875 case $configure_input in #(
11876 *\&* | *\|* | *\\* )
11877 ac_sed_conf_input=`$as_echo "$configure_input" |
11878 sed 's/[\\\\&|]/\\\\&/g'`;; #(
11879 *) ac_sed_conf_input=$configure_input;;
11880 esac
11882 case $ac_tag in
11883 *:-:* | *:-) cat >"$tmp/stdin" \
11884 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
11885 esac
11887 esac
11889 ac_dir=`$as_dirname -- "$ac_file" ||
11890 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11891 X"$ac_file" : 'X\(//\)[^/]' \| \
11892 X"$ac_file" : 'X\(//\)$' \| \
11893 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11894 $as_echo X"$ac_file" |
11895 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11896 s//\1/
11899 /^X\(\/\/\)[^/].*/{
11900 s//\1/
11903 /^X\(\/\/\)$/{
11904 s//\1/
11907 /^X\(\/\).*/{
11908 s//\1/
11911 s/.*/./; q'`
11912 as_dir="$ac_dir"; as_fn_mkdir_p
11913 ac_builddir=.
11915 case "$ac_dir" in
11916 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11918 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
11919 # A ".." for each directory in $ac_dir_suffix.
11920 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11921 case $ac_top_builddir_sub in
11922 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11923 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11924 esac ;;
11925 esac
11926 ac_abs_top_builddir=$ac_pwd
11927 ac_abs_builddir=$ac_pwd$ac_dir_suffix
11928 # for backward compatibility:
11929 ac_top_builddir=$ac_top_build_prefix
11931 case $srcdir in
11932 .) # We are building in place.
11933 ac_srcdir=.
11934 ac_top_srcdir=$ac_top_builddir_sub
11935 ac_abs_top_srcdir=$ac_pwd ;;
11936 [\\/]* | ?:[\\/]* ) # Absolute name.
11937 ac_srcdir=$srcdir$ac_dir_suffix;
11938 ac_top_srcdir=$srcdir
11939 ac_abs_top_srcdir=$srcdir ;;
11940 *) # Relative name.
11941 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11942 ac_top_srcdir=$ac_top_build_prefix$srcdir
11943 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11944 esac
11945 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11948 case $ac_mode in
11951 # CONFIG_FILE
11954 case $INSTALL in
11955 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11956 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
11957 esac
11958 ac_MKDIR_P=$MKDIR_P
11959 case $MKDIR_P in
11960 [\\/$]* | ?:[\\/]* ) ;;
11961 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
11962 esac
11963 _ACEOF
11965 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11966 # If the template does not know about datarootdir, expand it.
11967 # FIXME: This hack should be removed a few years after 2.60.
11968 ac_datarootdir_hack=; ac_datarootdir_seen=
11969 ac_sed_dataroot='
11970 /datarootdir/ {
11974 /@datadir@/p
11975 /@docdir@/p
11976 /@infodir@/p
11977 /@localedir@/p
11978 /@mandir@/p'
11979 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
11980 *datarootdir*) ac_datarootdir_seen=yes;;
11981 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
11982 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11983 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11984 _ACEOF
11985 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11986 ac_datarootdir_hack='
11987 s&@datadir@&$datadir&g
11988 s&@docdir@&$docdir&g
11989 s&@infodir@&$infodir&g
11990 s&@localedir@&$localedir&g
11991 s&@mandir@&$mandir&g
11992 s&\\\${datarootdir}&$datarootdir&g' ;;
11993 esac
11994 _ACEOF
11996 # Neutralize VPATH when `$srcdir' = `.'.
11997 # Shell code in configure.ac might set extrasub.
11998 # FIXME: do we really want to maintain this feature?
11999 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12000 ac_sed_extra="$ac_vpsub
12001 $extrasub
12002 _ACEOF
12003 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12005 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12006 s|@configure_input@|$ac_sed_conf_input|;t t
12007 s&@top_builddir@&$ac_top_builddir_sub&;t t
12008 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12009 s&@srcdir@&$ac_srcdir&;t t
12010 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12011 s&@top_srcdir@&$ac_top_srcdir&;t t
12012 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12013 s&@builddir@&$ac_builddir&;t t
12014 s&@abs_builddir@&$ac_abs_builddir&;t t
12015 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12016 s&@INSTALL@&$ac_INSTALL&;t t
12017 s&@MKDIR_P@&$ac_MKDIR_P&;t t
12018 $ac_datarootdir_hack
12020 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
12021 || as_fn_error "could not create $ac_file" "$LINENO" 5
12023 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12024 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12025 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
12026 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12027 which seems to be undefined. Please make sure it is defined." >&5
12028 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12029 which seems to be undefined. Please make sure it is defined." >&2;}
12031 rm -f "$tmp/stdin"
12032 case $ac_file in
12033 -) cat "$tmp/out" && rm -f "$tmp/out";;
12034 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
12035 esac \
12036 || as_fn_error "could not create $ac_file" "$LINENO" 5
12040 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12041 $as_echo "$as_me: executing $ac_file commands" >&6;}
12043 esac
12046 case $ac_file$ac_mode in
12047 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12048 # Autoconf 2.62 quotes --file arguments for eval, but not when files
12049 # are listed without --file. Let's play safe and only enable the eval
12050 # if we detect the quoting.
12051 case $CONFIG_FILES in
12052 *\'*) eval set x "$CONFIG_FILES" ;;
12053 *) set x $CONFIG_FILES ;;
12054 esac
12055 shift
12056 for mf
12058 # Strip MF so we end up with the name of the file.
12059 mf=`echo "$mf" | sed -e 's/:.*$//'`
12060 # Check whether this is an Automake generated Makefile or not.
12061 # We used to match only the files named `Makefile.in', but
12062 # some people rename them; so instead we look at the file content.
12063 # Grep'ing the first line is not enough: some people post-process
12064 # each Makefile.in and add a new line on top of each file to say so.
12065 # Grep'ing the whole file is not good either: AIX grep has a line
12066 # limit of 2048, but all sed's we know have understand at least 4000.
12067 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12068 dirpart=`$as_dirname -- "$mf" ||
12069 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12070 X"$mf" : 'X\(//\)[^/]' \| \
12071 X"$mf" : 'X\(//\)$' \| \
12072 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12073 $as_echo X"$mf" |
12074 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12075 s//\1/
12078 /^X\(\/\/\)[^/].*/{
12079 s//\1/
12082 /^X\(\/\/\)$/{
12083 s//\1/
12086 /^X\(\/\).*/{
12087 s//\1/
12090 s/.*/./; q'`
12091 else
12092 continue
12094 # Extract the definition of DEPDIR, am__include, and am__quote
12095 # from the Makefile without running `make'.
12096 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12097 test -z "$DEPDIR" && continue
12098 am__include=`sed -n 's/^am__include = //p' < "$mf"`
12099 test -z "am__include" && continue
12100 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12101 # When using ansi2knr, U may be empty or an underscore; expand it
12102 U=`sed -n 's/^U = //p' < "$mf"`
12103 # Find all dependency output files, they are included files with
12104 # $(DEPDIR) in their names. We invoke sed twice because it is the
12105 # simplest approach to changing $(DEPDIR) to its actual value in the
12106 # expansion.
12107 for file in `sed -n "
12108 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12109 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12110 # Make sure the directory exists.
12111 test -f "$dirpart/$file" && continue
12112 fdir=`$as_dirname -- "$file" ||
12113 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12114 X"$file" : 'X\(//\)[^/]' \| \
12115 X"$file" : 'X\(//\)$' \| \
12116 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12117 $as_echo X"$file" |
12118 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12119 s//\1/
12122 /^X\(\/\/\)[^/].*/{
12123 s//\1/
12126 /^X\(\/\/\)$/{
12127 s//\1/
12130 /^X\(\/\).*/{
12131 s//\1/
12134 s/.*/./; q'`
12135 as_dir=$dirpart/$fdir; as_fn_mkdir_p
12136 # echo "creating $dirpart/$file"
12137 echo '# dummy' > "$dirpart/$file"
12138 done
12139 done
12142 "libtool":C)
12144 # See if we are running on zsh, and set the options which allow our
12145 # commands through without removal of \ escapes.
12146 if test -n "${ZSH_VERSION+set}" ; then
12147 setopt NO_GLOB_SUBST
12150 cfgfile="${ofile}T"
12151 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
12152 $RM "$cfgfile"
12154 cat <<_LT_EOF >> "$cfgfile"
12155 #! $SHELL
12157 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
12158 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
12159 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12160 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
12162 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
12163 # 2006, 2007, 2008 Free Software Foundation, Inc.
12164 # Written by Gordon Matzigkeit, 1996
12166 # This file is part of GNU Libtool.
12168 # GNU Libtool is free software; you can redistribute it and/or
12169 # modify it under the terms of the GNU General Public License as
12170 # published by the Free Software Foundation; either version 2 of
12171 # the License, or (at your option) any later version.
12173 # As a special exception to the GNU General Public License,
12174 # if you distribute this file as part of a program or library that
12175 # is built using GNU Libtool, you may include this file under the
12176 # same distribution terms that you use for the rest of that program.
12178 # GNU Libtool is distributed in the hope that it will be useful,
12179 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12180 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12181 # GNU General Public License for more details.
12183 # You should have received a copy of the GNU General Public License
12184 # along with GNU Libtool; see the file COPYING. If not, a copy
12185 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
12186 # obtained by writing to the Free Software Foundation, Inc.,
12187 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
12190 # The names of the tagged configurations supported by this script.
12191 available_tags=""
12193 # ### BEGIN LIBTOOL CONFIG
12195 # Which release of libtool.m4 was used?
12196 macro_version=$macro_version
12197 macro_revision=$macro_revision
12199 # Whether or not to build shared libraries.
12200 build_libtool_libs=$enable_shared
12202 # Whether or not to build static libraries.
12203 build_old_libs=$enable_static
12205 # What type of objects to build.
12206 pic_mode=$pic_mode
12208 # Whether or not to optimize for fast installation.
12209 fast_install=$enable_fast_install
12211 # The host system.
12212 host_alias=$host_alias
12213 host=$host
12214 host_os=$host_os
12216 # The build system.
12217 build_alias=$build_alias
12218 build=$build
12219 build_os=$build_os
12221 # A sed program that does not truncate output.
12222 SED=$lt_SED
12224 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
12225 Xsed="\$SED -e 1s/^X//"
12227 # A grep program that handles long lines.
12228 GREP=$lt_GREP
12230 # An ERE matcher.
12231 EGREP=$lt_EGREP
12233 # A literal string matcher.
12234 FGREP=$lt_FGREP
12236 # A BSD- or MS-compatible name lister.
12237 NM=$lt_NM
12239 # Whether we need soft or hard links.
12240 LN_S=$lt_LN_S
12242 # What is the maximum length of a command?
12243 max_cmd_len=$max_cmd_len
12245 # Object file suffix (normally "o").
12246 objext=$ac_objext
12248 # Executable file suffix (normally "").
12249 exeext=$exeext
12251 # whether the shell understands "unset".
12252 lt_unset=$lt_unset
12254 # turn spaces into newlines.
12255 SP2NL=$lt_lt_SP2NL
12257 # turn newlines into spaces.
12258 NL2SP=$lt_lt_NL2SP
12260 # How to create reloadable object files.
12261 reload_flag=$lt_reload_flag
12262 reload_cmds=$lt_reload_cmds
12264 # An object symbol dumper.
12265 OBJDUMP=$lt_OBJDUMP
12267 # Method to check whether dependent libraries are shared objects.
12268 deplibs_check_method=$lt_deplibs_check_method
12270 # Command to use when deplibs_check_method == "file_magic".
12271 file_magic_cmd=$lt_file_magic_cmd
12273 # The archiver.
12274 AR=$lt_AR
12275 AR_FLAGS=$lt_AR_FLAGS
12277 # A symbol stripping program.
12278 STRIP=$lt_STRIP
12280 # Commands used to install an old-style archive.
12281 RANLIB=$lt_RANLIB
12282 old_postinstall_cmds=$lt_old_postinstall_cmds
12283 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12285 # A C compiler.
12286 LTCC=$lt_CC
12288 # LTCC compiler flags.
12289 LTCFLAGS=$lt_CFLAGS
12291 # Take the output of nm and produce a listing of raw symbols and C names.
12292 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12294 # Transform the output of nm in a proper C declaration.
12295 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12297 # Transform the output of nm in a C name address pair.
12298 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12300 # Transform the output of nm in a C name address pair when lib prefix is needed.
12301 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
12303 # The name of the directory that contains temporary libtool files.
12304 objdir=$objdir
12306 # Shell to use when invoking shell scripts.
12307 SHELL=$lt_SHELL
12309 # An echo program that does not interpret backslashes.
12310 ECHO=$lt_ECHO
12312 # Used to examine libraries when file_magic_cmd begins with "file".
12313 MAGIC_CMD=$MAGIC_CMD
12315 # Must we lock files when doing compilation?
12316 need_locks=$lt_need_locks
12318 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
12319 DSYMUTIL=$lt_DSYMUTIL
12321 # Tool to change global to local symbols on Mac OS X.
12322 NMEDIT=$lt_NMEDIT
12324 # Tool to manipulate fat objects and archives on Mac OS X.
12325 LIPO=$lt_LIPO
12327 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
12328 OTOOL=$lt_OTOOL
12330 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
12331 OTOOL64=$lt_OTOOL64
12333 # Old archive suffix (normally "a").
12334 libext=$libext
12336 # Shared library suffix (normally ".so").
12337 shrext_cmds=$lt_shrext_cmds
12339 # The commands to extract the exported symbol list from a shared archive.
12340 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12342 # Variables whose values should be saved in libtool wrapper scripts and
12343 # restored at link time.
12344 variables_saved_for_relink=$lt_variables_saved_for_relink
12346 # Do we need the "lib" prefix for modules?
12347 need_lib_prefix=$need_lib_prefix
12349 # Do we need a version for libraries?
12350 need_version=$need_version
12352 # Library versioning type.
12353 version_type=$version_type
12355 # Shared library runtime path variable.
12356 runpath_var=$runpath_var
12358 # Shared library path variable.
12359 shlibpath_var=$shlibpath_var
12361 # Is shlibpath searched before the hard-coded library search path?
12362 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12364 # Format of library name prefix.
12365 libname_spec=$lt_libname_spec
12367 # List of archive names. First name is the real one, the rest are links.
12368 # The last name is the one that the linker finds with -lNAME
12369 library_names_spec=$lt_library_names_spec
12371 # The coded name of the library, if different from the real name.
12372 soname_spec=$lt_soname_spec
12374 # Command to use after installation of a shared archive.
12375 postinstall_cmds=$lt_postinstall_cmds
12377 # Command to use after uninstallation of a shared archive.
12378 postuninstall_cmds=$lt_postuninstall_cmds
12380 # Commands used to finish a libtool library installation in a directory.
12381 finish_cmds=$lt_finish_cmds
12383 # As "finish_cmds", except a single script fragment to be evaled but
12384 # not shown.
12385 finish_eval=$lt_finish_eval
12387 # Whether we should hardcode library paths into libraries.
12388 hardcode_into_libs=$hardcode_into_libs
12390 # Compile-time system search path for libraries.
12391 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12393 # Run-time system search path for libraries.
12394 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12396 # Whether dlopen is supported.
12397 dlopen_support=$enable_dlopen
12399 # Whether dlopen of programs is supported.
12400 dlopen_self=$enable_dlopen_self
12402 # Whether dlopen of statically linked programs is supported.
12403 dlopen_self_static=$enable_dlopen_self_static
12405 # Commands to strip libraries.
12406 old_striplib=$lt_old_striplib
12407 striplib=$lt_striplib
12410 # The linker used to build libraries.
12411 LD=$lt_LD
12413 # Commands used to build an old-style archive.
12414 old_archive_cmds=$lt_old_archive_cmds
12416 # A language specific compiler.
12417 CC=$lt_compiler
12419 # Is the compiler the GNU compiler?
12420 with_gcc=$GCC
12422 # Compiler flag to turn off builtin functions.
12423 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
12425 # How to pass a linker flag through the compiler.
12426 wl=$lt_lt_prog_compiler_wl
12428 # Additional compiler flags for building library objects.
12429 pic_flag=$lt_lt_prog_compiler_pic
12431 # Compiler flag to prevent dynamic linking.
12432 link_static_flag=$lt_lt_prog_compiler_static
12434 # Does compiler simultaneously support -c and -o options?
12435 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
12437 # Whether or not to add -lc for building shared libraries.
12438 build_libtool_need_lc=$archive_cmds_need_lc
12440 # Whether or not to disallow shared libs when runtime libs are static.
12441 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
12443 # Compiler flag to allow reflexive dlopens.
12444 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
12446 # Compiler flag to generate shared objects directly from archives.
12447 whole_archive_flag_spec=$lt_whole_archive_flag_spec
12449 # Whether the compiler copes with passing no objects directly.
12450 compiler_needs_object=$lt_compiler_needs_object
12452 # Create an old-style archive from a shared archive.
12453 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
12455 # Create a temporary old-style archive to link instead of a shared archive.
12456 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
12458 # Commands used to build a shared archive.
12459 archive_cmds=$lt_archive_cmds
12460 archive_expsym_cmds=$lt_archive_expsym_cmds
12462 # Commands used to build a loadable module if different from building
12463 # a shared archive.
12464 module_cmds=$lt_module_cmds
12465 module_expsym_cmds=$lt_module_expsym_cmds
12467 # Whether we are building with GNU ld or not.
12468 with_gnu_ld=$lt_with_gnu_ld
12470 # Flag that allows shared libraries with undefined symbols to be built.
12471 allow_undefined_flag=$lt_allow_undefined_flag
12473 # Flag that enforces no undefined symbols.
12474 no_undefined_flag=$lt_no_undefined_flag
12476 # Flag to hardcode \$libdir into a binary during linking.
12477 # This must work even if \$libdir does not exist
12478 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
12480 # If ld is used when linking, flag to hardcode \$libdir into a binary
12481 # during linking. This must work even if \$libdir does not exist.
12482 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
12484 # Whether we need a single "-rpath" flag with a separated argument.
12485 hardcode_libdir_separator=$lt_hardcode_libdir_separator
12487 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
12488 # DIR into the resulting binary.
12489 hardcode_direct=$hardcode_direct
12491 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
12492 # DIR into the resulting binary and the resulting library dependency is
12493 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
12494 # library is relocated.
12495 hardcode_direct_absolute=$hardcode_direct_absolute
12497 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
12498 # into the resulting binary.
12499 hardcode_minus_L=$hardcode_minus_L
12501 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
12502 # into the resulting binary.
12503 hardcode_shlibpath_var=$hardcode_shlibpath_var
12505 # Set to "yes" if building a shared library automatically hardcodes DIR
12506 # into the library and all subsequent libraries and executables linked
12507 # against it.
12508 hardcode_automatic=$hardcode_automatic
12510 # Set to yes if linker adds runtime paths of dependent libraries
12511 # to runtime path list.
12512 inherit_rpath=$inherit_rpath
12514 # Whether libtool must link a program against all its dependency libraries.
12515 link_all_deplibs=$link_all_deplibs
12517 # Fix the shell variable \$srcfile for the compiler.
12518 fix_srcfile_path=$lt_fix_srcfile_path
12520 # Set to "yes" if exported symbols are required.
12521 always_export_symbols=$always_export_symbols
12523 # The commands to list exported symbols.
12524 export_symbols_cmds=$lt_export_symbols_cmds
12526 # Symbols that should not be listed in the preloaded symbols.
12527 exclude_expsyms=$lt_exclude_expsyms
12529 # Symbols that must always be exported.
12530 include_expsyms=$lt_include_expsyms
12532 # Commands necessary for linking programs (against libraries) with templates.
12533 prelink_cmds=$lt_prelink_cmds
12535 # Specify filename containing input files.
12536 file_list_spec=$lt_file_list_spec
12538 # How to hardcode a shared library path into an executable.
12539 hardcode_action=$hardcode_action
12541 # ### END LIBTOOL CONFIG
12543 _LT_EOF
12545 case $host_os in
12546 aix3*)
12547 cat <<\_LT_EOF >> "$cfgfile"
12548 # AIX sometimes has problems with the GCC collect2 program. For some
12549 # reason, if we set the COLLECT_NAMES environment variable, the problems
12550 # vanish in a puff of smoke.
12551 if test "X${COLLECT_NAMES+set}" != Xset; then
12552 COLLECT_NAMES=
12553 export COLLECT_NAMES
12555 _LT_EOF
12557 esac
12560 ltmain="$ac_aux_dir/ltmain.sh"
12563 # We use sed instead of cat because bash on DJGPP gets confused if
12564 # if finds mixed CR/LF and LF-only lines. Since sed operates in
12565 # text mode, it properly converts lines to CR/LF. This bash problem
12566 # is reportedly fixed, but why not run on old versions too?
12567 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
12568 || (rm -f "$cfgfile"; exit 1)
12570 case $xsi_shell in
12571 yes)
12572 cat << \_LT_EOF >> "$cfgfile"
12574 # func_dirname file append nondir_replacement
12575 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
12576 # otherwise set result to NONDIR_REPLACEMENT.
12577 func_dirname ()
12579 case ${1} in
12580 */*) func_dirname_result="${1%/*}${2}" ;;
12581 * ) func_dirname_result="${3}" ;;
12582 esac
12585 # func_basename file
12586 func_basename ()
12588 func_basename_result="${1##*/}"
12591 # func_dirname_and_basename file append nondir_replacement
12592 # perform func_basename and func_dirname in a single function
12593 # call:
12594 # dirname: Compute the dirname of FILE. If nonempty,
12595 # add APPEND to the result, otherwise set result
12596 # to NONDIR_REPLACEMENT.
12597 # value returned in "$func_dirname_result"
12598 # basename: Compute filename of FILE.
12599 # value retuned in "$func_basename_result"
12600 # Implementation must be kept synchronized with func_dirname
12601 # and func_basename. For efficiency, we do not delegate to
12602 # those functions but instead duplicate the functionality here.
12603 func_dirname_and_basename ()
12605 case ${1} in
12606 */*) func_dirname_result="${1%/*}${2}" ;;
12607 * ) func_dirname_result="${3}" ;;
12608 esac
12609 func_basename_result="${1##*/}"
12612 # func_stripname prefix suffix name
12613 # strip PREFIX and SUFFIX off of NAME.
12614 # PREFIX and SUFFIX must not contain globbing or regex special
12615 # characters, hashes, percent signs, but SUFFIX may contain a leading
12616 # dot (in which case that matches only a dot).
12617 func_stripname ()
12619 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
12620 # positional parameters, so assign one to ordinary parameter first.
12621 func_stripname_result=${3}
12622 func_stripname_result=${func_stripname_result#"${1}"}
12623 func_stripname_result=${func_stripname_result%"${2}"}
12626 # func_opt_split
12627 func_opt_split ()
12629 func_opt_split_opt=${1%%=*}
12630 func_opt_split_arg=${1#*=}
12633 # func_lo2o object
12634 func_lo2o ()
12636 case ${1} in
12637 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
12638 *) func_lo2o_result=${1} ;;
12639 esac
12642 # func_xform libobj-or-source
12643 func_xform ()
12645 func_xform_result=${1%.*}.lo
12648 # func_arith arithmetic-term...
12649 func_arith ()
12651 func_arith_result=$(( $* ))
12654 # func_len string
12655 # STRING may not start with a hyphen.
12656 func_len ()
12658 func_len_result=${#1}
12661 _LT_EOF
12663 *) # Bourne compatible functions.
12664 cat << \_LT_EOF >> "$cfgfile"
12666 # func_dirname file append nondir_replacement
12667 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
12668 # otherwise set result to NONDIR_REPLACEMENT.
12669 func_dirname ()
12671 # Extract subdirectory from the argument.
12672 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
12673 if test "X$func_dirname_result" = "X${1}"; then
12674 func_dirname_result="${3}"
12675 else
12676 func_dirname_result="$func_dirname_result${2}"
12680 # func_basename file
12681 func_basename ()
12683 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
12687 # func_stripname prefix suffix name
12688 # strip PREFIX and SUFFIX off of NAME.
12689 # PREFIX and SUFFIX must not contain globbing or regex special
12690 # characters, hashes, percent signs, but SUFFIX may contain a leading
12691 # dot (in which case that matches only a dot).
12692 # func_strip_suffix prefix name
12693 func_stripname ()
12695 case ${2} in
12696 .*) func_stripname_result=`$ECHO "X${3}" \
12697 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
12698 *) func_stripname_result=`$ECHO "X${3}" \
12699 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
12700 esac
12703 # sed scripts:
12704 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
12705 my_sed_long_arg='1s/^-[^=]*=//'
12707 # func_opt_split
12708 func_opt_split ()
12710 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
12711 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
12714 # func_lo2o object
12715 func_lo2o ()
12717 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
12720 # func_xform libobj-or-source
12721 func_xform ()
12723 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
12726 # func_arith arithmetic-term...
12727 func_arith ()
12729 func_arith_result=`expr "$@"`
12732 # func_len string
12733 # STRING may not start with a hyphen.
12734 func_len ()
12736 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
12739 _LT_EOF
12740 esac
12742 case $lt_shell_append in
12743 yes)
12744 cat << \_LT_EOF >> "$cfgfile"
12746 # func_append var value
12747 # Append VALUE to the end of shell variable VAR.
12748 func_append ()
12750 eval "$1+=\$2"
12752 _LT_EOF
12755 cat << \_LT_EOF >> "$cfgfile"
12757 # func_append var value
12758 # Append VALUE to the end of shell variable VAR.
12759 func_append ()
12761 eval "$1=\$$1\$2"
12764 _LT_EOF
12766 esac
12769 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
12770 || (rm -f "$cfgfile"; exit 1)
12772 mv -f "$cfgfile" "$ofile" ||
12773 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
12774 chmod +x "$ofile"
12778 esac
12779 done # for ac_tag
12782 as_fn_exit 0
12783 _ACEOF
12784 ac_clean_files=$ac_clean_files_save
12786 test $ac_write_fail = 0 ||
12787 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
12790 # configure is writing to config.log, and then calls config.status.
12791 # config.status does its own redirection, appending to config.log.
12792 # Unfortunately, on DOS this fails, as config.log is still kept open
12793 # by configure, so config.status won't be able to write to it; its
12794 # output is simply discarded. So we exec the FD to /dev/null,
12795 # effectively closing config.log, so it can be properly (re)opened and
12796 # appended to by config.status. When coming back to configure, we
12797 # need to make the FD available again.
12798 if test "$no_create" != yes; then
12799 ac_cs_success=:
12800 ac_config_status_args=
12801 test "$silent" = yes &&
12802 ac_config_status_args="$ac_config_status_args --quiet"
12803 exec 5>/dev/null
12804 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12805 exec 5>>config.log
12806 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12807 # would make configure fail if this is the last instruction.
12808 $ac_cs_success || as_fn_exit $?
12810 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12811 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12812 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}