* ld-elf/extract-symbol-1sec.d: Expect to fail for the RX target.
[binutils.git] / ld / configure
blobf51af71f2f8a42f556dc742671bf00908b37387b
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
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=
697 PACKAGE_TARNAME=
698 PACKAGE_VERSION=
699 PACKAGE_STRING=
700 PACKAGE_BUGREPORT=
701 PACKAGE_URL=
703 ac_unique_file="ldmain.c"
704 # Factoring default headers for most tests.
705 ac_includes_default="\
706 #include <stdio.h>
707 #ifdef HAVE_SYS_TYPES_H
708 # include <sys/types.h>
709 #endif
710 #ifdef HAVE_SYS_STAT_H
711 # include <sys/stat.h>
712 #endif
713 #ifdef STDC_HEADERS
714 # include <stdlib.h>
715 # include <stddef.h>
716 #else
717 # ifdef HAVE_STDLIB_H
718 # include <stdlib.h>
719 # endif
720 #endif
721 #ifdef HAVE_STRING_H
722 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
723 # include <memory.h>
724 # endif
725 # include <string.h>
726 #endif
727 #ifdef HAVE_STRINGS_H
728 # include <strings.h>
729 #endif
730 #ifdef HAVE_INTTYPES_H
731 # include <inttypes.h>
732 #endif
733 #ifdef HAVE_STDINT_H
734 # include <stdint.h>
735 #endif
736 #ifdef HAVE_UNISTD_H
737 # include <unistd.h>
738 #endif"
740 ac_subst_vars='am__EXEEXT_FALSE
741 am__EXEEXT_TRUE
742 LTLIBOBJS
743 LIBOBJS
744 TESTBFDLIB
745 EMULATION_LIBPATH
746 LIB_PATH
747 EMUL_EXTRA_OFILES
748 EMULATION_OFILES
749 EMUL
750 STRINGIFY
751 NATIVE_LIB_DIRS
752 HOSTING_LIBS
753 HOSTING_CRT0
754 HDEFINES
755 do_compare
756 GENINSRC_NEVER_FALSE
757 GENINSRC_NEVER_TRUE
758 LEXLIB
759 LEX_OUTPUT_ROOT
761 YFLAGS
762 YACC
763 MSGMERGE
764 MSGFMT
765 MKINSTALLDIRS
766 CATOBJEXT
767 GENCAT
768 INSTOBJEXT
769 DATADIRNAME
770 CATALOGS
771 POSUB
772 GMSGFMT
773 XGETTEXT
774 INCINTL
775 LIBINTL_DEP
776 LIBINTL
777 USE_NLS
778 OTOOL64
779 OTOOL
780 LIPO
781 NMEDIT
782 DSYMUTIL
783 lt_ECHO
784 RANLIB
786 OBJDUMP
787 LN_S
789 ac_ct_DUMPBIN
790 DUMPBIN
792 FGREP
794 LIBTOOL
795 EGREP
796 GREP
798 NO_WERROR
799 WARN_CFLAGS
800 TARGET_SYSTEM_ROOT_DEFINE
801 TARGET_SYSTEM_ROOT
802 use_sysroot
803 MAINT
804 MAINTAINER_MODE_FALSE
805 MAINTAINER_MODE_TRUE
806 am__fastdepCC_FALSE
807 am__fastdepCC_TRUE
808 CCDEPMODE
809 AMDEPBACKSLASH
810 AMDEP_FALSE
811 AMDEP_TRUE
812 am__quote
813 am__include
814 DEPDIR
815 am__untar
816 am__tar
817 AMTAR
818 am__leading_dot
819 SET_MAKE
821 mkdir_p
822 MKDIR_P
823 INSTALL_STRIP_PROGRAM
824 STRIP
825 install_sh
826 MAKEINFO
827 AUTOHEADER
828 AUTOMAKE
829 AUTOCONF
830 ACLOCAL
831 VERSION
832 PACKAGE
833 CYGPATH_W
834 am__isrc
835 INSTALL_DATA
836 INSTALL_SCRIPT
837 INSTALL_PROGRAM
838 OBJEXT
839 EXEEXT
840 ac_ct_CC
841 CPPFLAGS
842 LDFLAGS
843 CFLAGS
845 target_os
846 target_vendor
847 target_cpu
848 target
849 host_os
850 host_vendor
851 host_cpu
852 host
853 build_os
854 build_vendor
855 build_cpu
856 build
857 target_alias
858 host_alias
859 build_alias
860 LIBS
861 ECHO_T
862 ECHO_N
863 ECHO_C
864 DEFS
865 mandir
866 localedir
867 libdir
868 psdir
869 pdfdir
870 dvidir
871 htmldir
872 infodir
873 docdir
874 oldincludedir
875 includedir
876 localstatedir
877 sharedstatedir
878 sysconfdir
879 datadir
880 datarootdir
881 libexecdir
882 sbindir
883 bindir
884 program_transform_name
885 prefix
886 exec_prefix
887 PACKAGE_URL
888 PACKAGE_BUGREPORT
889 PACKAGE_STRING
890 PACKAGE_VERSION
891 PACKAGE_TARNAME
892 PACKAGE_NAME
893 PATH_SEPARATOR
894 SHELL'
895 ac_subst_files='TDIRS'
896 ac_user_opts='
897 enable_option_checking
898 enable_dependency_tracking
899 enable_maintainer_mode
900 with_lib_path
901 enable_targets
902 enable_64_bit_bfd
903 with_sysroot
904 enable_got
905 enable_werror
906 enable_build_warnings
907 enable_plugins
908 enable_largefile
909 enable_shared
910 enable_static
911 with_pic
912 enable_fast_install
913 with_gnu_ld
914 enable_libtool_lock
915 enable_nls
917 ac_precious_vars='build_alias
918 host_alias
919 target_alias
921 CFLAGS
922 LDFLAGS
923 LIBS
924 CPPFLAGS
926 YACC
927 YFLAGS'
930 # Initialize some variables set by options.
931 ac_init_help=
932 ac_init_version=false
933 ac_unrecognized_opts=
934 ac_unrecognized_sep=
935 # The variables have the same names as the options, with
936 # dashes changed to underlines.
937 cache_file=/dev/null
938 exec_prefix=NONE
939 no_create=
940 no_recursion=
941 prefix=NONE
942 program_prefix=NONE
943 program_suffix=NONE
944 program_transform_name=s,x,x,
945 silent=
946 site=
947 srcdir=
948 verbose=
949 x_includes=NONE
950 x_libraries=NONE
952 # Installation directory options.
953 # These are left unexpanded so users can "make install exec_prefix=/foo"
954 # and all the variables that are supposed to be based on exec_prefix
955 # by default will actually change.
956 # Use braces instead of parens because sh, perl, etc. also accept them.
957 # (The list follows the same order as the GNU Coding Standards.)
958 bindir='${exec_prefix}/bin'
959 sbindir='${exec_prefix}/sbin'
960 libexecdir='${exec_prefix}/libexec'
961 datarootdir='${prefix}/share'
962 datadir='${datarootdir}'
963 sysconfdir='${prefix}/etc'
964 sharedstatedir='${prefix}/com'
965 localstatedir='${prefix}/var'
966 includedir='${prefix}/include'
967 oldincludedir='/usr/include'
968 docdir='${datarootdir}/doc/${PACKAGE}'
969 infodir='${datarootdir}/info'
970 htmldir='${docdir}'
971 dvidir='${docdir}'
972 pdfdir='${docdir}'
973 psdir='${docdir}'
974 libdir='${exec_prefix}/lib'
975 localedir='${datarootdir}/locale'
976 mandir='${datarootdir}/man'
978 ac_prev=
979 ac_dashdash=
980 for ac_option
982 # If the previous option needs an argument, assign it.
983 if test -n "$ac_prev"; then
984 eval $ac_prev=\$ac_option
985 ac_prev=
986 continue
989 case $ac_option in
990 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
991 *) ac_optarg=yes ;;
992 esac
994 # Accept the important Cygnus configure options, so we can diagnose typos.
996 case $ac_dashdash$ac_option in
998 ac_dashdash=yes ;;
1000 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1001 ac_prev=bindir ;;
1002 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1003 bindir=$ac_optarg ;;
1005 -build | --build | --buil | --bui | --bu)
1006 ac_prev=build_alias ;;
1007 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1008 build_alias=$ac_optarg ;;
1010 -cache-file | --cache-file | --cache-fil | --cache-fi \
1011 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1012 ac_prev=cache_file ;;
1013 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1014 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1015 cache_file=$ac_optarg ;;
1017 --config-cache | -C)
1018 cache_file=config.cache ;;
1020 -datadir | --datadir | --datadi | --datad)
1021 ac_prev=datadir ;;
1022 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1023 datadir=$ac_optarg ;;
1025 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1026 | --dataroo | --dataro | --datar)
1027 ac_prev=datarootdir ;;
1028 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1029 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1030 datarootdir=$ac_optarg ;;
1032 -disable-* | --disable-*)
1033 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1034 # Reject names that are not valid shell variable names.
1035 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1036 as_fn_error "invalid feature name: $ac_useropt"
1037 ac_useropt_orig=$ac_useropt
1038 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1039 case $ac_user_opts in
1041 "enable_$ac_useropt"
1042 "*) ;;
1043 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1044 ac_unrecognized_sep=', ';;
1045 esac
1046 eval enable_$ac_useropt=no ;;
1048 -docdir | --docdir | --docdi | --doc | --do)
1049 ac_prev=docdir ;;
1050 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1051 docdir=$ac_optarg ;;
1053 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1054 ac_prev=dvidir ;;
1055 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1056 dvidir=$ac_optarg ;;
1058 -enable-* | --enable-*)
1059 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1060 # Reject names that are not valid shell variable names.
1061 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1062 as_fn_error "invalid feature name: $ac_useropt"
1063 ac_useropt_orig=$ac_useropt
1064 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1065 case $ac_user_opts in
1067 "enable_$ac_useropt"
1068 "*) ;;
1069 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1070 ac_unrecognized_sep=', ';;
1071 esac
1072 eval enable_$ac_useropt=\$ac_optarg ;;
1074 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1075 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1076 | --exec | --exe | --ex)
1077 ac_prev=exec_prefix ;;
1078 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1079 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1080 | --exec=* | --exe=* | --ex=*)
1081 exec_prefix=$ac_optarg ;;
1083 -gas | --gas | --ga | --g)
1084 # Obsolete; use --with-gas.
1085 with_gas=yes ;;
1087 -help | --help | --hel | --he | -h)
1088 ac_init_help=long ;;
1089 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1090 ac_init_help=recursive ;;
1091 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1092 ac_init_help=short ;;
1094 -host | --host | --hos | --ho)
1095 ac_prev=host_alias ;;
1096 -host=* | --host=* | --hos=* | --ho=*)
1097 host_alias=$ac_optarg ;;
1099 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1100 ac_prev=htmldir ;;
1101 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1102 | --ht=*)
1103 htmldir=$ac_optarg ;;
1105 -includedir | --includedir | --includedi | --included | --include \
1106 | --includ | --inclu | --incl | --inc)
1107 ac_prev=includedir ;;
1108 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1109 | --includ=* | --inclu=* | --incl=* | --inc=*)
1110 includedir=$ac_optarg ;;
1112 -infodir | --infodir | --infodi | --infod | --info | --inf)
1113 ac_prev=infodir ;;
1114 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1115 infodir=$ac_optarg ;;
1117 -libdir | --libdir | --libdi | --libd)
1118 ac_prev=libdir ;;
1119 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1120 libdir=$ac_optarg ;;
1122 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1123 | --libexe | --libex | --libe)
1124 ac_prev=libexecdir ;;
1125 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1126 | --libexe=* | --libex=* | --libe=*)
1127 libexecdir=$ac_optarg ;;
1129 -localedir | --localedir | --localedi | --localed | --locale)
1130 ac_prev=localedir ;;
1131 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1132 localedir=$ac_optarg ;;
1134 -localstatedir | --localstatedir | --localstatedi | --localstated \
1135 | --localstate | --localstat | --localsta | --localst | --locals)
1136 ac_prev=localstatedir ;;
1137 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1138 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1139 localstatedir=$ac_optarg ;;
1141 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1142 ac_prev=mandir ;;
1143 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1144 mandir=$ac_optarg ;;
1146 -nfp | --nfp | --nf)
1147 # Obsolete; use --without-fp.
1148 with_fp=no ;;
1150 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1151 | --no-cr | --no-c | -n)
1152 no_create=yes ;;
1154 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1155 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1156 no_recursion=yes ;;
1158 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1159 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1160 | --oldin | --oldi | --old | --ol | --o)
1161 ac_prev=oldincludedir ;;
1162 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1163 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1164 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1165 oldincludedir=$ac_optarg ;;
1167 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1168 ac_prev=prefix ;;
1169 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1170 prefix=$ac_optarg ;;
1172 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1173 | --program-pre | --program-pr | --program-p)
1174 ac_prev=program_prefix ;;
1175 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1176 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1177 program_prefix=$ac_optarg ;;
1179 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1180 | --program-suf | --program-su | --program-s)
1181 ac_prev=program_suffix ;;
1182 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1183 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1184 program_suffix=$ac_optarg ;;
1186 -program-transform-name | --program-transform-name \
1187 | --program-transform-nam | --program-transform-na \
1188 | --program-transform-n | --program-transform- \
1189 | --program-transform | --program-transfor \
1190 | --program-transfo | --program-transf \
1191 | --program-trans | --program-tran \
1192 | --progr-tra | --program-tr | --program-t)
1193 ac_prev=program_transform_name ;;
1194 -program-transform-name=* | --program-transform-name=* \
1195 | --program-transform-nam=* | --program-transform-na=* \
1196 | --program-transform-n=* | --program-transform-=* \
1197 | --program-transform=* | --program-transfor=* \
1198 | --program-transfo=* | --program-transf=* \
1199 | --program-trans=* | --program-tran=* \
1200 | --progr-tra=* | --program-tr=* | --program-t=*)
1201 program_transform_name=$ac_optarg ;;
1203 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1204 ac_prev=pdfdir ;;
1205 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1206 pdfdir=$ac_optarg ;;
1208 -psdir | --psdir | --psdi | --psd | --ps)
1209 ac_prev=psdir ;;
1210 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1211 psdir=$ac_optarg ;;
1213 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1214 | -silent | --silent | --silen | --sile | --sil)
1215 silent=yes ;;
1217 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1218 ac_prev=sbindir ;;
1219 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1220 | --sbi=* | --sb=*)
1221 sbindir=$ac_optarg ;;
1223 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1224 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1225 | --sharedst | --shareds | --shared | --share | --shar \
1226 | --sha | --sh)
1227 ac_prev=sharedstatedir ;;
1228 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1229 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1230 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1231 | --sha=* | --sh=*)
1232 sharedstatedir=$ac_optarg ;;
1234 -site | --site | --sit)
1235 ac_prev=site ;;
1236 -site=* | --site=* | --sit=*)
1237 site=$ac_optarg ;;
1239 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1240 ac_prev=srcdir ;;
1241 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1242 srcdir=$ac_optarg ;;
1244 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1245 | --syscon | --sysco | --sysc | --sys | --sy)
1246 ac_prev=sysconfdir ;;
1247 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1248 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1249 sysconfdir=$ac_optarg ;;
1251 -target | --target | --targe | --targ | --tar | --ta | --t)
1252 ac_prev=target_alias ;;
1253 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1254 target_alias=$ac_optarg ;;
1256 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1257 verbose=yes ;;
1259 -version | --version | --versio | --versi | --vers | -V)
1260 ac_init_version=: ;;
1262 -with-* | --with-*)
1263 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1264 # Reject names that are not valid shell variable names.
1265 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1266 as_fn_error "invalid package name: $ac_useropt"
1267 ac_useropt_orig=$ac_useropt
1268 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1269 case $ac_user_opts in
1271 "with_$ac_useropt"
1272 "*) ;;
1273 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1274 ac_unrecognized_sep=', ';;
1275 esac
1276 eval with_$ac_useropt=\$ac_optarg ;;
1278 -without-* | --without-*)
1279 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1280 # Reject names that are not valid shell variable names.
1281 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1282 as_fn_error "invalid package name: $ac_useropt"
1283 ac_useropt_orig=$ac_useropt
1284 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1285 case $ac_user_opts in
1287 "with_$ac_useropt"
1288 "*) ;;
1289 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1290 ac_unrecognized_sep=', ';;
1291 esac
1292 eval with_$ac_useropt=no ;;
1294 --x)
1295 # Obsolete; use --with-x.
1296 with_x=yes ;;
1298 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1299 | --x-incl | --x-inc | --x-in | --x-i)
1300 ac_prev=x_includes ;;
1301 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1302 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1303 x_includes=$ac_optarg ;;
1305 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1306 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1307 ac_prev=x_libraries ;;
1308 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1309 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1310 x_libraries=$ac_optarg ;;
1312 -*) as_fn_error "unrecognized option: \`$ac_option'
1313 Try \`$0 --help' for more information."
1316 *=*)
1317 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1318 # Reject names that are not valid shell variable names.
1319 case $ac_envvar in #(
1320 '' | [0-9]* | *[!_$as_cr_alnum]* )
1321 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1322 esac
1323 eval $ac_envvar=\$ac_optarg
1324 export $ac_envvar ;;
1327 # FIXME: should be removed in autoconf 3.0.
1328 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1329 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1330 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1331 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1334 esac
1335 done
1337 if test -n "$ac_prev"; then
1338 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1339 as_fn_error "missing argument to $ac_option"
1342 if test -n "$ac_unrecognized_opts"; then
1343 case $enable_option_checking in
1344 no) ;;
1345 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1346 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1347 esac
1350 # Check all directory arguments for consistency.
1351 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1352 datadir sysconfdir sharedstatedir localstatedir includedir \
1353 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1354 libdir localedir mandir
1356 eval ac_val=\$$ac_var
1357 # Remove trailing slashes.
1358 case $ac_val in
1359 */ )
1360 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1361 eval $ac_var=\$ac_val;;
1362 esac
1363 # Be sure to have absolute directory names.
1364 case $ac_val in
1365 [\\/$]* | ?:[\\/]* ) continue;;
1366 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1367 esac
1368 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1369 done
1371 # There might be people who depend on the old broken behavior: `$host'
1372 # used to hold the argument of --host etc.
1373 # FIXME: To remove some day.
1374 build=$build_alias
1375 host=$host_alias
1376 target=$target_alias
1378 # FIXME: To remove some day.
1379 if test "x$host_alias" != x; then
1380 if test "x$build_alias" = x; then
1381 cross_compiling=maybe
1382 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1383 If a cross compiler is detected then cross compile mode will be used." >&2
1384 elif test "x$build_alias" != "x$host_alias"; then
1385 cross_compiling=yes
1389 ac_tool_prefix=
1390 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1392 test "$silent" = yes && exec 6>/dev/null
1395 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1396 ac_ls_di=`ls -di .` &&
1397 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1398 as_fn_error "working directory cannot be determined"
1399 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1400 as_fn_error "pwd does not report name of working directory"
1403 # Find the source files, if location was not specified.
1404 if test -z "$srcdir"; then
1405 ac_srcdir_defaulted=yes
1406 # Try the directory containing this script, then the parent directory.
1407 ac_confdir=`$as_dirname -- "$as_myself" ||
1408 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1409 X"$as_myself" : 'X\(//\)[^/]' \| \
1410 X"$as_myself" : 'X\(//\)$' \| \
1411 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1412 $as_echo X"$as_myself" |
1413 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1414 s//\1/
1417 /^X\(\/\/\)[^/].*/{
1418 s//\1/
1421 /^X\(\/\/\)$/{
1422 s//\1/
1425 /^X\(\/\).*/{
1426 s//\1/
1429 s/.*/./; q'`
1430 srcdir=$ac_confdir
1431 if test ! -r "$srcdir/$ac_unique_file"; then
1432 srcdir=..
1434 else
1435 ac_srcdir_defaulted=no
1437 if test ! -r "$srcdir/$ac_unique_file"; then
1438 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1439 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1441 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1442 ac_abs_confdir=`(
1443 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1444 pwd)`
1445 # When building in place, set srcdir=.
1446 if test "$ac_abs_confdir" = "$ac_pwd"; then
1447 srcdir=.
1449 # Remove unnecessary trailing slashes from srcdir.
1450 # Double slashes in file names in object file debugging info
1451 # mess up M-x gdb in Emacs.
1452 case $srcdir in
1453 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1454 esac
1455 for ac_var in $ac_precious_vars; do
1456 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1457 eval ac_env_${ac_var}_value=\$${ac_var}
1458 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1459 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1460 done
1463 # Report the --help message.
1465 if test "$ac_init_help" = "long"; then
1466 # Omit some internal or obsolete options to make the list less imposing.
1467 # This message is too long to be a string in the A/UX 3.1 sh.
1468 cat <<_ACEOF
1469 \`configure' configures this package to adapt to many kinds of systems.
1471 Usage: $0 [OPTION]... [VAR=VALUE]...
1473 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1474 VAR=VALUE. See below for descriptions of some of the useful variables.
1476 Defaults for the options are specified in brackets.
1478 Configuration:
1479 -h, --help display this help and exit
1480 --help=short display options specific to this package
1481 --help=recursive display the short help of all the included packages
1482 -V, --version display version information and exit
1483 -q, --quiet, --silent do not print \`checking...' messages
1484 --cache-file=FILE cache test results in FILE [disabled]
1485 -C, --config-cache alias for \`--cache-file=config.cache'
1486 -n, --no-create do not create output files
1487 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1489 Installation directories:
1490 --prefix=PREFIX install architecture-independent files in PREFIX
1491 [$ac_default_prefix]
1492 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1493 [PREFIX]
1495 By default, \`make install' will install all the files in
1496 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1497 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1498 for instance \`--prefix=\$HOME'.
1500 For better control, use the options below.
1502 Fine tuning of the installation directories:
1503 --bindir=DIR user executables [EPREFIX/bin]
1504 --sbindir=DIR system admin executables [EPREFIX/sbin]
1505 --libexecdir=DIR program executables [EPREFIX/libexec]
1506 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1507 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1508 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1509 --libdir=DIR object code libraries [EPREFIX/lib]
1510 --includedir=DIR C header files [PREFIX/include]
1511 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1512 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1513 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1514 --infodir=DIR info documentation [DATAROOTDIR/info]
1515 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1516 --mandir=DIR man documentation [DATAROOTDIR/man]
1517 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1518 --htmldir=DIR html documentation [DOCDIR]
1519 --dvidir=DIR dvi documentation [DOCDIR]
1520 --pdfdir=DIR pdf documentation [DOCDIR]
1521 --psdir=DIR ps documentation [DOCDIR]
1522 _ACEOF
1524 cat <<\_ACEOF
1526 Program names:
1527 --program-prefix=PREFIX prepend PREFIX to installed program names
1528 --program-suffix=SUFFIX append SUFFIX to installed program names
1529 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1531 System types:
1532 --build=BUILD configure for building on BUILD [guessed]
1533 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1534 --target=TARGET configure for building compilers for TARGET [HOST]
1535 _ACEOF
1538 if test -n "$ac_init_help"; then
1540 cat <<\_ACEOF
1542 Optional Features:
1543 --disable-option-checking ignore unrecognized --enable/--with options
1544 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1545 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1546 --disable-dependency-tracking speeds up one-time build
1547 --enable-dependency-tracking do not reject slow dependency extractors
1548 --enable-maintainer-mode enable make rules and dependencies not useful
1549 (and sometimes confusing) to the casual installer
1550 --enable-targets alternative target configurations
1551 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
1552 --enable-got=<type> GOT handling scheme (target, single, negative,
1553 multigot)
1554 --enable-werror treat compile warnings as errors
1555 --enable-build-warnings enable build-time compiler warnings
1556 --enable-plugins Enable support for plugins (defaults no)
1557 --disable-largefile omit support for large files
1558 --enable-shared[=PKGS] build shared libraries [default=yes]
1559 --enable-static[=PKGS] build static libraries [default=yes]
1560 --enable-fast-install[=PKGS]
1561 optimize for fast installation [default=yes]
1562 --disable-libtool-lock avoid locking (might break parallel builds)
1563 --disable-nls do not use Native Language Support
1565 Optional Packages:
1566 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1567 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1568 --with-lib-path=dir1:dir2... set default LIB_PATH
1569 --with-sysroot=DIR Search for usr/lib et al within DIR.
1570 --with-pic try to use only PIC/non-PIC objects [default=use
1571 both]
1572 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1574 Some influential environment variables:
1575 CC C compiler command
1576 CFLAGS C compiler flags
1577 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1578 nonstandard directory <lib dir>
1579 LIBS libraries to pass to the linker, e.g. -l<library>
1580 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1581 you have headers in a nonstandard directory <include dir>
1582 CPP C preprocessor
1583 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1584 the first program found out of: `bison -y', `byacc', `yacc'.
1585 YFLAGS The list of arguments that will be passed by default to $YACC.
1586 This script will default YFLAGS to the empty string to avoid a
1587 default value of `-d' given by some make applications.
1589 Use these variables to override the choices made by `configure' or to help
1590 it to find libraries and programs with nonstandard names/locations.
1592 Report bugs to the package provider.
1593 _ACEOF
1594 ac_status=$?
1597 if test "$ac_init_help" = "recursive"; then
1598 # If there are subdirs, report their specific --help.
1599 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1600 test -d "$ac_dir" ||
1601 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1602 continue
1603 ac_builddir=.
1605 case "$ac_dir" in
1606 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1608 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1609 # A ".." for each directory in $ac_dir_suffix.
1610 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1611 case $ac_top_builddir_sub in
1612 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1613 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1614 esac ;;
1615 esac
1616 ac_abs_top_builddir=$ac_pwd
1617 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1618 # for backward compatibility:
1619 ac_top_builddir=$ac_top_build_prefix
1621 case $srcdir in
1622 .) # We are building in place.
1623 ac_srcdir=.
1624 ac_top_srcdir=$ac_top_builddir_sub
1625 ac_abs_top_srcdir=$ac_pwd ;;
1626 [\\/]* | ?:[\\/]* ) # Absolute name.
1627 ac_srcdir=$srcdir$ac_dir_suffix;
1628 ac_top_srcdir=$srcdir
1629 ac_abs_top_srcdir=$srcdir ;;
1630 *) # Relative name.
1631 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1632 ac_top_srcdir=$ac_top_build_prefix$srcdir
1633 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1634 esac
1635 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1637 cd "$ac_dir" || { ac_status=$?; continue; }
1638 # Check for guested configure.
1639 if test -f "$ac_srcdir/configure.gnu"; then
1640 echo &&
1641 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1642 elif test -f "$ac_srcdir/configure"; then
1643 echo &&
1644 $SHELL "$ac_srcdir/configure" --help=recursive
1645 else
1646 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1647 fi || ac_status=$?
1648 cd "$ac_pwd" || { ac_status=$?; break; }
1649 done
1652 test -n "$ac_init_help" && exit $ac_status
1653 if $ac_init_version; then
1654 cat <<\_ACEOF
1655 configure
1656 generated by GNU Autoconf 2.64
1658 Copyright (C) 2009 Free Software Foundation, Inc.
1659 This configure script is free software; the Free Software Foundation
1660 gives unlimited permission to copy, distribute and modify it.
1661 _ACEOF
1662 exit
1665 ## ------------------------ ##
1666 ## Autoconf initialization. ##
1667 ## ------------------------ ##
1669 # ac_fn_c_try_compile LINENO
1670 # --------------------------
1671 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1672 ac_fn_c_try_compile ()
1674 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1675 rm -f conftest.$ac_objext
1676 if { { ac_try="$ac_compile"
1677 case "(($ac_try" in
1678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1679 *) ac_try_echo=$ac_try;;
1680 esac
1681 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1682 $as_echo "$ac_try_echo"; } >&5
1683 (eval "$ac_compile") 2>conftest.err
1684 ac_status=$?
1685 if test -s conftest.err; then
1686 grep -v '^ *+' conftest.err >conftest.er1
1687 cat conftest.er1 >&5
1688 mv -f conftest.er1 conftest.err
1690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1691 test $ac_status = 0; } && {
1692 test -z "$ac_c_werror_flag" ||
1693 test ! -s conftest.err
1694 } && test -s conftest.$ac_objext; then :
1695 ac_retval=0
1696 else
1697 $as_echo "$as_me: failed program was:" >&5
1698 sed 's/^/| /' conftest.$ac_ext >&5
1700 ac_retval=1
1702 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1703 return $ac_retval
1705 } # ac_fn_c_try_compile
1707 # ac_fn_c_try_link LINENO
1708 # -----------------------
1709 # Try to link conftest.$ac_ext, and return whether this succeeded.
1710 ac_fn_c_try_link ()
1712 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1713 rm -f conftest.$ac_objext conftest$ac_exeext
1714 if { { ac_try="$ac_link"
1715 case "(($ac_try" in
1716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1717 *) ac_try_echo=$ac_try;;
1718 esac
1719 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1720 $as_echo "$ac_try_echo"; } >&5
1721 (eval "$ac_link") 2>conftest.err
1722 ac_status=$?
1723 if test -s conftest.err; then
1724 grep -v '^ *+' conftest.err >conftest.er1
1725 cat conftest.er1 >&5
1726 mv -f conftest.er1 conftest.err
1728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1729 test $ac_status = 0; } && {
1730 test -z "$ac_c_werror_flag" ||
1731 test ! -s conftest.err
1732 } && test -s conftest$ac_exeext && {
1733 test "$cross_compiling" = yes ||
1734 $as_test_x conftest$ac_exeext
1735 }; then :
1736 ac_retval=0
1737 else
1738 $as_echo "$as_me: failed program was:" >&5
1739 sed 's/^/| /' conftest.$ac_ext >&5
1741 ac_retval=1
1743 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1744 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1745 # interfere with the next link command; also delete a directory that is
1746 # left behind by Apple's compiler. We do this before executing the actions.
1747 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1748 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1749 return $ac_retval
1751 } # ac_fn_c_try_link
1753 # ac_fn_c_try_cpp LINENO
1754 # ----------------------
1755 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1756 ac_fn_c_try_cpp ()
1758 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1759 if { { ac_try="$ac_cpp conftest.$ac_ext"
1760 case "(($ac_try" in
1761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1762 *) ac_try_echo=$ac_try;;
1763 esac
1764 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1765 $as_echo "$ac_try_echo"; } >&5
1766 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1767 ac_status=$?
1768 if test -s conftest.err; then
1769 grep -v '^ *+' conftest.err >conftest.er1
1770 cat conftest.er1 >&5
1771 mv -f conftest.er1 conftest.err
1773 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1774 test $ac_status = 0; } >/dev/null && {
1775 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1776 test ! -s conftest.err
1777 }; then :
1778 ac_retval=0
1779 else
1780 $as_echo "$as_me: failed program was:" >&5
1781 sed 's/^/| /' conftest.$ac_ext >&5
1783 ac_retval=1
1785 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1786 return $ac_retval
1788 } # ac_fn_c_try_cpp
1790 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1791 # -------------------------------------------------------
1792 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1793 # the include files in INCLUDES and setting the cache variable VAR
1794 # accordingly.
1795 ac_fn_c_check_header_mongrel ()
1797 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1798 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1800 $as_echo_n "checking for $2... " >&6; }
1801 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1802 $as_echo_n "(cached) " >&6
1804 eval ac_res=\$$3
1805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1806 $as_echo "$ac_res" >&6; }
1807 else
1808 # Is the header compilable?
1809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1810 $as_echo_n "checking $2 usability... " >&6; }
1811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1812 /* end confdefs.h. */
1814 #include <$2>
1815 _ACEOF
1816 if ac_fn_c_try_compile "$LINENO"; then :
1817 ac_header_compiler=yes
1818 else
1819 ac_header_compiler=no
1821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1823 $as_echo "$ac_header_compiler" >&6; }
1825 # Is the header present?
1826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1827 $as_echo_n "checking $2 presence... " >&6; }
1828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1829 /* end confdefs.h. */
1830 #include <$2>
1831 _ACEOF
1832 if ac_fn_c_try_cpp "$LINENO"; then :
1833 ac_header_preproc=yes
1834 else
1835 ac_header_preproc=no
1837 rm -f conftest.err conftest.$ac_ext
1838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1839 $as_echo "$ac_header_preproc" >&6; }
1841 # So? What about this header?
1842 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1843 yes:no: )
1844 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1845 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1846 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1847 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1849 no:yes:* )
1850 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1851 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1852 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1853 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1854 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1855 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1856 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1857 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1858 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1859 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1861 esac
1862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1863 $as_echo_n "checking for $2... " >&6; }
1864 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1865 $as_echo_n "(cached) " >&6
1866 else
1867 eval "$3=\$ac_header_compiler"
1869 eval ac_res=\$$3
1870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1871 $as_echo "$ac_res" >&6; }
1873 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1875 } # ac_fn_c_check_header_mongrel
1877 # ac_fn_c_try_run LINENO
1878 # ----------------------
1879 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1880 # that executables *can* be run.
1881 ac_fn_c_try_run ()
1883 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1884 if { { ac_try="$ac_link"
1885 case "(($ac_try" in
1886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1887 *) ac_try_echo=$ac_try;;
1888 esac
1889 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1890 $as_echo "$ac_try_echo"; } >&5
1891 (eval "$ac_link") 2>&5
1892 ac_status=$?
1893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1894 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1895 { { case "(($ac_try" in
1896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1897 *) ac_try_echo=$ac_try;;
1898 esac
1899 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1900 $as_echo "$ac_try_echo"; } >&5
1901 (eval "$ac_try") 2>&5
1902 ac_status=$?
1903 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1904 test $ac_status = 0; }; }; then :
1905 ac_retval=0
1906 else
1907 $as_echo "$as_me: program exited with status $ac_status" >&5
1908 $as_echo "$as_me: failed program was:" >&5
1909 sed 's/^/| /' conftest.$ac_ext >&5
1911 ac_retval=$ac_status
1913 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1914 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1915 return $ac_retval
1917 } # ac_fn_c_try_run
1919 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1920 # -------------------------------------------------------
1921 # Tests whether HEADER exists and can be compiled using the include files in
1922 # INCLUDES, setting the cache variable VAR accordingly.
1923 ac_fn_c_check_header_compile ()
1925 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1927 $as_echo_n "checking for $2... " >&6; }
1928 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1929 $as_echo_n "(cached) " >&6
1930 else
1931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1932 /* end confdefs.h. */
1934 #include <$2>
1935 _ACEOF
1936 if ac_fn_c_try_compile "$LINENO"; then :
1937 eval "$3=yes"
1938 else
1939 eval "$3=no"
1941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1943 eval ac_res=\$$3
1944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1945 $as_echo "$ac_res" >&6; }
1946 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1948 } # ac_fn_c_check_header_compile
1950 # ac_fn_c_check_func LINENO FUNC VAR
1951 # ----------------------------------
1952 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1953 ac_fn_c_check_func ()
1955 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1957 $as_echo_n "checking for $2... " >&6; }
1958 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1959 $as_echo_n "(cached) " >&6
1960 else
1961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1962 /* end confdefs.h. */
1963 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1964 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1965 #define $2 innocuous_$2
1967 /* System header to define __stub macros and hopefully few prototypes,
1968 which can conflict with char $2 (); below.
1969 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1970 <limits.h> exists even on freestanding compilers. */
1972 #ifdef __STDC__
1973 # include <limits.h>
1974 #else
1975 # include <assert.h>
1976 #endif
1978 #undef $2
1980 /* Override any GCC internal prototype to avoid an error.
1981 Use char because int might match the return type of a GCC
1982 builtin and then its argument prototype would still apply. */
1983 #ifdef __cplusplus
1984 extern "C"
1985 #endif
1986 char $2 ();
1987 /* The GNU C library defines this for functions which it implements
1988 to always fail with ENOSYS. Some functions are actually named
1989 something starting with __ and the normal name is an alias. */
1990 #if defined __stub_$2 || defined __stub___$2
1991 choke me
1992 #endif
1995 main ()
1997 return $2 ();
1999 return 0;
2001 _ACEOF
2002 if ac_fn_c_try_link "$LINENO"; then :
2003 eval "$3=yes"
2004 else
2005 eval "$3=no"
2007 rm -f core conftest.err conftest.$ac_objext \
2008 conftest$ac_exeext conftest.$ac_ext
2010 eval ac_res=\$$3
2011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2012 $as_echo "$ac_res" >&6; }
2013 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2015 } # ac_fn_c_check_func
2017 # ac_fn_c_check_decl LINENO SYMBOL VAR
2018 # ------------------------------------
2019 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2020 ac_fn_c_check_decl ()
2022 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2024 $as_echo_n "checking whether $2 is declared... " >&6; }
2025 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2026 $as_echo_n "(cached) " >&6
2027 else
2028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2029 /* end confdefs.h. */
2032 main ()
2034 #ifndef $2
2035 (void) $2;
2036 #endif
2039 return 0;
2041 _ACEOF
2042 if ac_fn_c_try_compile "$LINENO"; then :
2043 eval "$3=yes"
2044 else
2045 eval "$3=no"
2047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2049 eval ac_res=\$$3
2050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2051 $as_echo "$ac_res" >&6; }
2052 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2054 } # ac_fn_c_check_decl
2056 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2057 # --------------------------------------------
2058 # Tries to find the compile-time value of EXPR in a program that includes
2059 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2060 # computed
2061 ac_fn_c_compute_int ()
2063 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2064 if test "$cross_compiling" = yes; then
2065 # Depending upon the size, compute the lo and hi bounds.
2066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2067 /* end confdefs.h. */
2070 main ()
2072 static int test_array [1 - 2 * !(($2) >= 0)];
2073 test_array [0] = 0
2076 return 0;
2078 _ACEOF
2079 if ac_fn_c_try_compile "$LINENO"; then :
2080 ac_lo=0 ac_mid=0
2081 while :; do
2082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2083 /* end confdefs.h. */
2086 main ()
2088 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2089 test_array [0] = 0
2092 return 0;
2094 _ACEOF
2095 if ac_fn_c_try_compile "$LINENO"; then :
2096 ac_hi=$ac_mid; break
2097 else
2098 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2099 if test $ac_lo -le $ac_mid; then
2100 ac_lo= ac_hi=
2101 break
2103 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2106 done
2107 else
2108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2109 /* end confdefs.h. */
2112 main ()
2114 static int test_array [1 - 2 * !(($2) < 0)];
2115 test_array [0] = 0
2118 return 0;
2120 _ACEOF
2121 if ac_fn_c_try_compile "$LINENO"; then :
2122 ac_hi=-1 ac_mid=-1
2123 while :; do
2124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2125 /* end confdefs.h. */
2128 main ()
2130 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2131 test_array [0] = 0
2134 return 0;
2136 _ACEOF
2137 if ac_fn_c_try_compile "$LINENO"; then :
2138 ac_lo=$ac_mid; break
2139 else
2140 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2141 if test $ac_mid -le $ac_hi; then
2142 ac_lo= ac_hi=
2143 break
2145 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2148 done
2149 else
2150 ac_lo= ac_hi=
2152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2155 # Binary search between lo and hi bounds.
2156 while test "x$ac_lo" != "x$ac_hi"; do
2157 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2159 /* end confdefs.h. */
2162 main ()
2164 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2165 test_array [0] = 0
2168 return 0;
2170 _ACEOF
2171 if ac_fn_c_try_compile "$LINENO"; then :
2172 ac_hi=$ac_mid
2173 else
2174 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2177 done
2178 case $ac_lo in #((
2179 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2180 '') ac_retval=1 ;;
2181 esac
2182 else
2183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2184 /* end confdefs.h. */
2186 static long int longval () { return $2; }
2187 static unsigned long int ulongval () { return $2; }
2188 #include <stdio.h>
2189 #include <stdlib.h>
2191 main ()
2194 FILE *f = fopen ("conftest.val", "w");
2195 if (! f)
2196 return 1;
2197 if (($2) < 0)
2199 long int i = longval ();
2200 if (i != ($2))
2201 return 1;
2202 fprintf (f, "%ld", i);
2204 else
2206 unsigned long int i = ulongval ();
2207 if (i != ($2))
2208 return 1;
2209 fprintf (f, "%lu", i);
2211 /* Do not output a trailing newline, as this causes \r\n confusion
2212 on some platforms. */
2213 return ferror (f) || fclose (f) != 0;
2216 return 0;
2218 _ACEOF
2219 if ac_fn_c_try_run "$LINENO"; then :
2220 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2221 else
2222 ac_retval=1
2224 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2225 conftest.$ac_objext conftest.beam conftest.$ac_ext
2226 rm -f conftest.val
2229 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2230 return $ac_retval
2232 } # ac_fn_c_compute_int
2233 cat >config.log <<_ACEOF
2234 This file contains any messages produced by compilers while
2235 running configure, to aid debugging if configure makes a mistake.
2237 It was created by $as_me, which was
2238 generated by GNU Autoconf 2.64. Invocation command line was
2240 $ $0 $@
2242 _ACEOF
2243 exec 5>>config.log
2245 cat <<_ASUNAME
2246 ## --------- ##
2247 ## Platform. ##
2248 ## --------- ##
2250 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2251 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2252 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2253 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2254 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2256 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2257 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2259 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2260 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2261 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2262 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2263 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2264 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2265 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2267 _ASUNAME
2269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2270 for as_dir in $PATH
2272 IFS=$as_save_IFS
2273 test -z "$as_dir" && as_dir=.
2274 $as_echo "PATH: $as_dir"
2275 done
2276 IFS=$as_save_IFS
2278 } >&5
2280 cat >&5 <<_ACEOF
2283 ## ----------- ##
2284 ## Core tests. ##
2285 ## ----------- ##
2287 _ACEOF
2290 # Keep a trace of the command line.
2291 # Strip out --no-create and --no-recursion so they do not pile up.
2292 # Strip out --silent because we don't want to record it for future runs.
2293 # Also quote any args containing shell meta-characters.
2294 # Make two passes to allow for proper duplicate-argument suppression.
2295 ac_configure_args=
2296 ac_configure_args0=
2297 ac_configure_args1=
2298 ac_must_keep_next=false
2299 for ac_pass in 1 2
2301 for ac_arg
2303 case $ac_arg in
2304 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2305 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2306 | -silent | --silent | --silen | --sile | --sil)
2307 continue ;;
2308 *\'*)
2309 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2310 esac
2311 case $ac_pass in
2312 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2314 as_fn_append ac_configure_args1 " '$ac_arg'"
2315 if test $ac_must_keep_next = true; then
2316 ac_must_keep_next=false # Got value, back to normal.
2317 else
2318 case $ac_arg in
2319 *=* | --config-cache | -C | -disable-* | --disable-* \
2320 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2321 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2322 | -with-* | --with-* | -without-* | --without-* | --x)
2323 case "$ac_configure_args0 " in
2324 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2325 esac
2327 -* ) ac_must_keep_next=true ;;
2328 esac
2330 as_fn_append ac_configure_args " '$ac_arg'"
2332 esac
2333 done
2334 done
2335 { ac_configure_args0=; unset ac_configure_args0;}
2336 { ac_configure_args1=; unset ac_configure_args1;}
2338 # When interrupted or exit'd, cleanup temporary files, and complete
2339 # config.log. We remove comments because anyway the quotes in there
2340 # would cause problems or look ugly.
2341 # WARNING: Use '\'' to represent an apostrophe within the trap.
2342 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2343 trap 'exit_status=$?
2344 # Save into config.log some information that might help in debugging.
2346 echo
2348 cat <<\_ASBOX
2349 ## ---------------- ##
2350 ## Cache variables. ##
2351 ## ---------------- ##
2352 _ASBOX
2353 echo
2354 # The following way of writing the cache mishandles newlines in values,
2356 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2357 eval ac_val=\$$ac_var
2358 case $ac_val in #(
2359 *${as_nl}*)
2360 case $ac_var in #(
2361 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2362 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2363 esac
2364 case $ac_var in #(
2365 _ | IFS | as_nl) ;; #(
2366 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2367 *) { eval $ac_var=; unset $ac_var;} ;;
2368 esac ;;
2369 esac
2370 done
2371 (set) 2>&1 |
2372 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2373 *${as_nl}ac_space=\ *)
2374 sed -n \
2375 "s/'\''/'\''\\\\'\'''\''/g;
2376 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2377 ;; #(
2379 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2381 esac |
2382 sort
2384 echo
2386 cat <<\_ASBOX
2387 ## ----------------- ##
2388 ## Output variables. ##
2389 ## ----------------- ##
2390 _ASBOX
2391 echo
2392 for ac_var in $ac_subst_vars
2394 eval ac_val=\$$ac_var
2395 case $ac_val in
2396 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2397 esac
2398 $as_echo "$ac_var='\''$ac_val'\''"
2399 done | sort
2400 echo
2402 if test -n "$ac_subst_files"; then
2403 cat <<\_ASBOX
2404 ## ------------------- ##
2405 ## File substitutions. ##
2406 ## ------------------- ##
2407 _ASBOX
2408 echo
2409 for ac_var in $ac_subst_files
2411 eval ac_val=\$$ac_var
2412 case $ac_val in
2413 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2414 esac
2415 $as_echo "$ac_var='\''$ac_val'\''"
2416 done | sort
2417 echo
2420 if test -s confdefs.h; then
2421 cat <<\_ASBOX
2422 ## ----------- ##
2423 ## confdefs.h. ##
2424 ## ----------- ##
2425 _ASBOX
2426 echo
2427 cat confdefs.h
2428 echo
2430 test "$ac_signal" != 0 &&
2431 $as_echo "$as_me: caught signal $ac_signal"
2432 $as_echo "$as_me: exit $exit_status"
2433 } >&5
2434 rm -f core *.core core.conftest.* &&
2435 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2436 exit $exit_status
2438 for ac_signal in 1 2 13 15; do
2439 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2440 done
2441 ac_signal=0
2443 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2444 rm -f -r conftest* confdefs.h
2446 $as_echo "/* confdefs.h */" > confdefs.h
2448 # Predefined preprocessor variables.
2450 cat >>confdefs.h <<_ACEOF
2451 #define PACKAGE_NAME "$PACKAGE_NAME"
2452 _ACEOF
2454 cat >>confdefs.h <<_ACEOF
2455 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2456 _ACEOF
2458 cat >>confdefs.h <<_ACEOF
2459 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2460 _ACEOF
2462 cat >>confdefs.h <<_ACEOF
2463 #define PACKAGE_STRING "$PACKAGE_STRING"
2464 _ACEOF
2466 cat >>confdefs.h <<_ACEOF
2467 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2468 _ACEOF
2470 cat >>confdefs.h <<_ACEOF
2471 #define PACKAGE_URL "$PACKAGE_URL"
2472 _ACEOF
2475 # Let the site file select an alternate cache file if it wants to.
2476 # Prefer an explicitly selected file to automatically selected ones.
2477 ac_site_file1=NONE
2478 ac_site_file2=NONE
2479 if test -n "$CONFIG_SITE"; then
2480 ac_site_file1=$CONFIG_SITE
2481 elif test "x$prefix" != xNONE; then
2482 ac_site_file1=$prefix/share/config.site
2483 ac_site_file2=$prefix/etc/config.site
2484 else
2485 ac_site_file1=$ac_default_prefix/share/config.site
2486 ac_site_file2=$ac_default_prefix/etc/config.site
2488 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2490 test "x$ac_site_file" = xNONE && continue
2491 if test -r "$ac_site_file"; then
2492 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2493 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2494 sed 's/^/| /' "$ac_site_file" >&5
2495 . "$ac_site_file"
2497 done
2499 if test -r "$cache_file"; then
2500 # Some versions of bash will fail to source /dev/null (special
2501 # files actually), so we avoid doing that.
2502 if test -f "$cache_file"; then
2503 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2504 $as_echo "$as_me: loading cache $cache_file" >&6;}
2505 case $cache_file in
2506 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2507 *) . "./$cache_file";;
2508 esac
2510 else
2511 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2512 $as_echo "$as_me: creating cache $cache_file" >&6;}
2513 >$cache_file
2516 # Check that the precious variables saved in the cache have kept the same
2517 # value.
2518 ac_cache_corrupted=false
2519 for ac_var in $ac_precious_vars; do
2520 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2521 eval ac_new_set=\$ac_env_${ac_var}_set
2522 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2523 eval ac_new_val=\$ac_env_${ac_var}_value
2524 case $ac_old_set,$ac_new_set in
2525 set,)
2526 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2527 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2528 ac_cache_corrupted=: ;;
2529 ,set)
2530 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2531 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2532 ac_cache_corrupted=: ;;
2533 ,);;
2535 if test "x$ac_old_val" != "x$ac_new_val"; then
2536 # differences in whitespace do not lead to failure.
2537 ac_old_val_w=`echo x $ac_old_val`
2538 ac_new_val_w=`echo x $ac_new_val`
2539 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2540 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2541 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2542 ac_cache_corrupted=:
2543 else
2544 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2545 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2546 eval $ac_var=\$ac_old_val
2548 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2549 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2550 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2551 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2552 fi;;
2553 esac
2554 # Pass precious variables to config.status.
2555 if test "$ac_new_set" = set; then
2556 case $ac_new_val in
2557 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2558 *) ac_arg=$ac_var=$ac_new_val ;;
2559 esac
2560 case " $ac_configure_args " in
2561 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2562 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2563 esac
2565 done
2566 if $ac_cache_corrupted; then
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2568 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2569 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2570 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2571 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2573 ## -------------------- ##
2574 ## Main body of script. ##
2575 ## -------------------- ##
2577 ac_ext=c
2578 ac_cpp='$CPP $CPPFLAGS'
2579 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2580 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2581 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2589 ac_aux_dir=
2590 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2591 for ac_t in install-sh install.sh shtool; do
2592 if test -f "$ac_dir/$ac_t"; then
2593 ac_aux_dir=$ac_dir
2594 ac_install_sh="$ac_aux_dir/$ac_t -c"
2595 break 2
2597 done
2598 done
2599 if test -z "$ac_aux_dir"; then
2600 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2603 # These three variables are undocumented and unsupported,
2604 # and are intended to be withdrawn in a future Autoconf release.
2605 # They can cause serious problems if a builder's source tree is in a directory
2606 # whose full name contains unusual characters.
2607 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2608 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2609 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2612 # Make sure we can run config.sub.
2613 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2614 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2617 $as_echo_n "checking build system type... " >&6; }
2618 if test "${ac_cv_build+set}" = set; then :
2619 $as_echo_n "(cached) " >&6
2620 else
2621 ac_build_alias=$build_alias
2622 test "x$ac_build_alias" = x &&
2623 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2624 test "x$ac_build_alias" = x &&
2625 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2626 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2627 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2631 $as_echo "$ac_cv_build" >&6; }
2632 case $ac_cv_build in
2633 *-*-*) ;;
2634 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2635 esac
2636 build=$ac_cv_build
2637 ac_save_IFS=$IFS; IFS='-'
2638 set x $ac_cv_build
2639 shift
2640 build_cpu=$1
2641 build_vendor=$2
2642 shift; shift
2643 # Remember, the first character of IFS is used to create $*,
2644 # except with old shells:
2645 build_os=$*
2646 IFS=$ac_save_IFS
2647 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2651 $as_echo_n "checking host system type... " >&6; }
2652 if test "${ac_cv_host+set}" = set; then :
2653 $as_echo_n "(cached) " >&6
2654 else
2655 if test "x$host_alias" = x; then
2656 ac_cv_host=$ac_cv_build
2657 else
2658 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2659 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2664 $as_echo "$ac_cv_host" >&6; }
2665 case $ac_cv_host in
2666 *-*-*) ;;
2667 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2668 esac
2669 host=$ac_cv_host
2670 ac_save_IFS=$IFS; IFS='-'
2671 set x $ac_cv_host
2672 shift
2673 host_cpu=$1
2674 host_vendor=$2
2675 shift; shift
2676 # Remember, the first character of IFS is used to create $*,
2677 # except with old shells:
2678 host_os=$*
2679 IFS=$ac_save_IFS
2680 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2684 $as_echo_n "checking target system type... " >&6; }
2685 if test "${ac_cv_target+set}" = set; then :
2686 $as_echo_n "(cached) " >&6
2687 else
2688 if test "x$target_alias" = x; then
2689 ac_cv_target=$ac_cv_host
2690 else
2691 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2692 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2697 $as_echo "$ac_cv_target" >&6; }
2698 case $ac_cv_target in
2699 *-*-*) ;;
2700 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2701 esac
2702 target=$ac_cv_target
2703 ac_save_IFS=$IFS; IFS='-'
2704 set x $ac_cv_target
2705 shift
2706 target_cpu=$1
2707 target_vendor=$2
2708 shift; shift
2709 # Remember, the first character of IFS is used to create $*,
2710 # except with old shells:
2711 target_os=$*
2712 IFS=$ac_save_IFS
2713 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2716 # The aliases save the names the user supplied, while $host etc.
2717 # will get canonicalized.
2718 test -n "$target_alias" &&
2719 test "$program_prefix$program_suffix$program_transform_name" = \
2720 NONENONEs,x,x, &&
2721 program_prefix=${target_alias}-
2722 ac_ext=c
2723 ac_cpp='$CPP $CPPFLAGS'
2724 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2725 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2726 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2727 if test -n "$ac_tool_prefix"; then
2728 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2729 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2731 $as_echo_n "checking for $ac_word... " >&6; }
2732 if test "${ac_cv_prog_CC+set}" = set; then :
2733 $as_echo_n "(cached) " >&6
2734 else
2735 if test -n "$CC"; then
2736 ac_cv_prog_CC="$CC" # Let the user override the test.
2737 else
2738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2739 for as_dir in $PATH
2741 IFS=$as_save_IFS
2742 test -z "$as_dir" && as_dir=.
2743 for ac_exec_ext in '' $ac_executable_extensions; do
2744 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2745 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2747 break 2
2749 done
2750 done
2751 IFS=$as_save_IFS
2755 CC=$ac_cv_prog_CC
2756 if test -n "$CC"; then
2757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2758 $as_echo "$CC" >&6; }
2759 else
2760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2761 $as_echo "no" >&6; }
2766 if test -z "$ac_cv_prog_CC"; then
2767 ac_ct_CC=$CC
2768 # Extract the first word of "gcc", so it can be a program name with args.
2769 set dummy gcc; ac_word=$2
2770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2771 $as_echo_n "checking for $ac_word... " >&6; }
2772 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2773 $as_echo_n "(cached) " >&6
2774 else
2775 if test -n "$ac_ct_CC"; then
2776 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2777 else
2778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2779 for as_dir in $PATH
2781 IFS=$as_save_IFS
2782 test -z "$as_dir" && as_dir=.
2783 for ac_exec_ext in '' $ac_executable_extensions; do
2784 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2785 ac_cv_prog_ac_ct_CC="gcc"
2786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2787 break 2
2789 done
2790 done
2791 IFS=$as_save_IFS
2795 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2796 if test -n "$ac_ct_CC"; then
2797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2798 $as_echo "$ac_ct_CC" >&6; }
2799 else
2800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2801 $as_echo "no" >&6; }
2804 if test "x$ac_ct_CC" = x; then
2805 CC=""
2806 else
2807 case $cross_compiling:$ac_tool_warned in
2808 yes:)
2809 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2810 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2811 ac_tool_warned=yes ;;
2812 esac
2813 CC=$ac_ct_CC
2815 else
2816 CC="$ac_cv_prog_CC"
2819 if test -z "$CC"; then
2820 if test -n "$ac_tool_prefix"; then
2821 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2822 set dummy ${ac_tool_prefix}cc; ac_word=$2
2823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2824 $as_echo_n "checking for $ac_word... " >&6; }
2825 if test "${ac_cv_prog_CC+set}" = set; then :
2826 $as_echo_n "(cached) " >&6
2827 else
2828 if test -n "$CC"; then
2829 ac_cv_prog_CC="$CC" # Let the user override the test.
2830 else
2831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2832 for as_dir in $PATH
2834 IFS=$as_save_IFS
2835 test -z "$as_dir" && as_dir=.
2836 for ac_exec_ext in '' $ac_executable_extensions; do
2837 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2838 ac_cv_prog_CC="${ac_tool_prefix}cc"
2839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2840 break 2
2842 done
2843 done
2844 IFS=$as_save_IFS
2848 CC=$ac_cv_prog_CC
2849 if test -n "$CC"; then
2850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2851 $as_echo "$CC" >&6; }
2852 else
2853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2854 $as_echo "no" >&6; }
2860 if test -z "$CC"; then
2861 # Extract the first word of "cc", so it can be a program name with args.
2862 set dummy cc; ac_word=$2
2863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2864 $as_echo_n "checking for $ac_word... " >&6; }
2865 if test "${ac_cv_prog_CC+set}" = set; then :
2866 $as_echo_n "(cached) " >&6
2867 else
2868 if test -n "$CC"; then
2869 ac_cv_prog_CC="$CC" # Let the user override the test.
2870 else
2871 ac_prog_rejected=no
2872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2873 for as_dir in $PATH
2875 IFS=$as_save_IFS
2876 test -z "$as_dir" && as_dir=.
2877 for ac_exec_ext in '' $ac_executable_extensions; do
2878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2879 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2880 ac_prog_rejected=yes
2881 continue
2883 ac_cv_prog_CC="cc"
2884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2885 break 2
2887 done
2888 done
2889 IFS=$as_save_IFS
2891 if test $ac_prog_rejected = yes; then
2892 # We found a bogon in the path, so make sure we never use it.
2893 set dummy $ac_cv_prog_CC
2894 shift
2895 if test $# != 0; then
2896 # We chose a different compiler from the bogus one.
2897 # However, it has the same basename, so the bogon will be chosen
2898 # first if we set CC to just the basename; use the full file name.
2899 shift
2900 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2905 CC=$ac_cv_prog_CC
2906 if test -n "$CC"; then
2907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2908 $as_echo "$CC" >&6; }
2909 else
2910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2911 $as_echo "no" >&6; }
2916 if test -z "$CC"; then
2917 if test -n "$ac_tool_prefix"; then
2918 for ac_prog in cl.exe
2920 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2921 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2923 $as_echo_n "checking for $ac_word... " >&6; }
2924 if test "${ac_cv_prog_CC+set}" = set; then :
2925 $as_echo_n "(cached) " >&6
2926 else
2927 if test -n "$CC"; then
2928 ac_cv_prog_CC="$CC" # Let the user override the test.
2929 else
2930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2931 for as_dir in $PATH
2933 IFS=$as_save_IFS
2934 test -z "$as_dir" && as_dir=.
2935 for ac_exec_ext in '' $ac_executable_extensions; do
2936 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2937 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2939 break 2
2941 done
2942 done
2943 IFS=$as_save_IFS
2947 CC=$ac_cv_prog_CC
2948 if test -n "$CC"; then
2949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2950 $as_echo "$CC" >&6; }
2951 else
2952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2953 $as_echo "no" >&6; }
2957 test -n "$CC" && break
2958 done
2960 if test -z "$CC"; then
2961 ac_ct_CC=$CC
2962 for ac_prog in cl.exe
2964 # Extract the first word of "$ac_prog", so it can be a program name with args.
2965 set dummy $ac_prog; ac_word=$2
2966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2967 $as_echo_n "checking for $ac_word... " >&6; }
2968 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2969 $as_echo_n "(cached) " >&6
2970 else
2971 if test -n "$ac_ct_CC"; then
2972 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2973 else
2974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2975 for as_dir in $PATH
2977 IFS=$as_save_IFS
2978 test -z "$as_dir" && as_dir=.
2979 for ac_exec_ext in '' $ac_executable_extensions; do
2980 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2981 ac_cv_prog_ac_ct_CC="$ac_prog"
2982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2983 break 2
2985 done
2986 done
2987 IFS=$as_save_IFS
2991 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2992 if test -n "$ac_ct_CC"; then
2993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2994 $as_echo "$ac_ct_CC" >&6; }
2995 else
2996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2997 $as_echo "no" >&6; }
3001 test -n "$ac_ct_CC" && break
3002 done
3004 if test "x$ac_ct_CC" = x; then
3005 CC=""
3006 else
3007 case $cross_compiling:$ac_tool_warned in
3008 yes:)
3009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3010 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3011 ac_tool_warned=yes ;;
3012 esac
3013 CC=$ac_ct_CC
3020 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3021 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3022 as_fn_error "no acceptable C compiler found in \$PATH
3023 See \`config.log' for more details." "$LINENO" 5; }
3025 # Provide some information about the compiler.
3026 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3027 set X $ac_compile
3028 ac_compiler=$2
3029 for ac_option in --version -v -V -qversion; do
3030 { { ac_try="$ac_compiler $ac_option >&5"
3031 case "(($ac_try" in
3032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3033 *) ac_try_echo=$ac_try;;
3034 esac
3035 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3036 $as_echo "$ac_try_echo"; } >&5
3037 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3038 ac_status=$?
3039 if test -s conftest.err; then
3040 sed '10a\
3041 ... rest of stderr output deleted ...
3042 10q' conftest.err >conftest.er1
3043 cat conftest.er1 >&5
3044 rm -f conftest.er1 conftest.err
3046 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3047 test $ac_status = 0; }
3048 done
3050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3051 /* end confdefs.h. */
3054 main ()
3058 return 0;
3060 _ACEOF
3061 ac_clean_files_save=$ac_clean_files
3062 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3063 # Try to create an executable without -o first, disregard a.out.
3064 # It will help us diagnose broken compilers, and finding out an intuition
3065 # of exeext.
3066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3067 $as_echo_n "checking for C compiler default output file name... " >&6; }
3068 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3070 # The possible output files:
3071 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3073 ac_rmfiles=
3074 for ac_file in $ac_files
3076 case $ac_file in
3077 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3078 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3079 esac
3080 done
3081 rm -f $ac_rmfiles
3083 if { { ac_try="$ac_link_default"
3084 case "(($ac_try" in
3085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3086 *) ac_try_echo=$ac_try;;
3087 esac
3088 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3089 $as_echo "$ac_try_echo"; } >&5
3090 (eval "$ac_link_default") 2>&5
3091 ac_status=$?
3092 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3093 test $ac_status = 0; }; then :
3094 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3095 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3096 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3097 # so that the user can short-circuit this test for compilers unknown to
3098 # Autoconf.
3099 for ac_file in $ac_files ''
3101 test -f "$ac_file" || continue
3102 case $ac_file in
3103 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3105 [ab].out )
3106 # We found the default executable, but exeext='' is most
3107 # certainly right.
3108 break;;
3109 *.* )
3110 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3111 then :; else
3112 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3114 # We set ac_cv_exeext here because the later test for it is not
3115 # safe: cross compilers may not add the suffix if given an `-o'
3116 # argument, so we may need to know it at that point already.
3117 # Even if this section looks crufty: it has the advantage of
3118 # actually working.
3119 break;;
3121 break;;
3122 esac
3123 done
3124 test "$ac_cv_exeext" = no && ac_cv_exeext=
3126 else
3127 ac_file=''
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3130 $as_echo "$ac_file" >&6; }
3131 if test -z "$ac_file"; then :
3132 $as_echo "$as_me: failed program was:" >&5
3133 sed 's/^/| /' conftest.$ac_ext >&5
3135 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3136 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3137 { as_fn_set_status 77
3138 as_fn_error "C compiler cannot create executables
3139 See \`config.log' for more details." "$LINENO" 5; }; }
3141 ac_exeext=$ac_cv_exeext
3143 # Check that the compiler produces executables we can run. If not, either
3144 # the compiler is broken, or we cross compile.
3145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3146 $as_echo_n "checking whether the C compiler works... " >&6; }
3147 # If not cross compiling, check that we can run a simple program.
3148 if test "$cross_compiling" != yes; then
3149 if { ac_try='./$ac_file'
3150 { { case "(($ac_try" in
3151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3152 *) ac_try_echo=$ac_try;;
3153 esac
3154 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3155 $as_echo "$ac_try_echo"; } >&5
3156 (eval "$ac_try") 2>&5
3157 ac_status=$?
3158 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3159 test $ac_status = 0; }; }; then
3160 cross_compiling=no
3161 else
3162 if test "$cross_compiling" = maybe; then
3163 cross_compiling=yes
3164 else
3165 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3166 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3167 as_fn_error "cannot run C compiled programs.
3168 If you meant to cross compile, use \`--host'.
3169 See \`config.log' for more details." "$LINENO" 5; }
3173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3174 $as_echo "yes" >&6; }
3176 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3177 ac_clean_files=$ac_clean_files_save
3178 # Check that the compiler produces executables we can run. If not, either
3179 # the compiler is broken, or we cross compile.
3180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3181 $as_echo_n "checking whether we are cross compiling... " >&6; }
3182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3183 $as_echo "$cross_compiling" >&6; }
3185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3186 $as_echo_n "checking for suffix of executables... " >&6; }
3187 if { { ac_try="$ac_link"
3188 case "(($ac_try" in
3189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3190 *) ac_try_echo=$ac_try;;
3191 esac
3192 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3193 $as_echo "$ac_try_echo"; } >&5
3194 (eval "$ac_link") 2>&5
3195 ac_status=$?
3196 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3197 test $ac_status = 0; }; then :
3198 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3199 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3200 # work properly (i.e., refer to `conftest.exe'), while it won't with
3201 # `rm'.
3202 for ac_file in conftest.exe conftest conftest.*; do
3203 test -f "$ac_file" || continue
3204 case $ac_file in
3205 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3206 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3207 break;;
3208 * ) break;;
3209 esac
3210 done
3211 else
3212 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3213 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3214 as_fn_error "cannot compute suffix of executables: cannot compile and link
3215 See \`config.log' for more details." "$LINENO" 5; }
3217 rm -f conftest$ac_cv_exeext
3218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3219 $as_echo "$ac_cv_exeext" >&6; }
3221 rm -f conftest.$ac_ext
3222 EXEEXT=$ac_cv_exeext
3223 ac_exeext=$EXEEXT
3224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3225 $as_echo_n "checking for suffix of object files... " >&6; }
3226 if test "${ac_cv_objext+set}" = set; then :
3227 $as_echo_n "(cached) " >&6
3228 else
3229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3230 /* end confdefs.h. */
3233 main ()
3237 return 0;
3239 _ACEOF
3240 rm -f conftest.o conftest.obj
3241 if { { ac_try="$ac_compile"
3242 case "(($ac_try" in
3243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3244 *) ac_try_echo=$ac_try;;
3245 esac
3246 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3247 $as_echo "$ac_try_echo"; } >&5
3248 (eval "$ac_compile") 2>&5
3249 ac_status=$?
3250 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3251 test $ac_status = 0; }; then :
3252 for ac_file in conftest.o conftest.obj conftest.*; do
3253 test -f "$ac_file" || continue;
3254 case $ac_file in
3255 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3256 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3257 break;;
3258 esac
3259 done
3260 else
3261 $as_echo "$as_me: failed program was:" >&5
3262 sed 's/^/| /' conftest.$ac_ext >&5
3264 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3265 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3266 as_fn_error "cannot compute suffix of object files: cannot compile
3267 See \`config.log' for more details." "$LINENO" 5; }
3269 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3272 $as_echo "$ac_cv_objext" >&6; }
3273 OBJEXT=$ac_cv_objext
3274 ac_objext=$OBJEXT
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3276 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3277 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3278 $as_echo_n "(cached) " >&6
3279 else
3280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3281 /* end confdefs.h. */
3284 main ()
3286 #ifndef __GNUC__
3287 choke me
3288 #endif
3291 return 0;
3293 _ACEOF
3294 if ac_fn_c_try_compile "$LINENO"; then :
3295 ac_compiler_gnu=yes
3296 else
3297 ac_compiler_gnu=no
3299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3300 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3304 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3305 if test $ac_compiler_gnu = yes; then
3306 GCC=yes
3307 else
3308 GCC=
3310 ac_test_CFLAGS=${CFLAGS+set}
3311 ac_save_CFLAGS=$CFLAGS
3312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3313 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3314 if test "${ac_cv_prog_cc_g+set}" = set; then :
3315 $as_echo_n "(cached) " >&6
3316 else
3317 ac_save_c_werror_flag=$ac_c_werror_flag
3318 ac_c_werror_flag=yes
3319 ac_cv_prog_cc_g=no
3320 CFLAGS="-g"
3321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3322 /* end confdefs.h. */
3325 main ()
3329 return 0;
3331 _ACEOF
3332 if ac_fn_c_try_compile "$LINENO"; then :
3333 ac_cv_prog_cc_g=yes
3334 else
3335 CFLAGS=""
3336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3337 /* end confdefs.h. */
3340 main ()
3344 return 0;
3346 _ACEOF
3347 if ac_fn_c_try_compile "$LINENO"; then :
3349 else
3350 ac_c_werror_flag=$ac_save_c_werror_flag
3351 CFLAGS="-g"
3352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3353 /* end confdefs.h. */
3356 main ()
3360 return 0;
3362 _ACEOF
3363 if ac_fn_c_try_compile "$LINENO"; then :
3364 ac_cv_prog_cc_g=yes
3366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3371 ac_c_werror_flag=$ac_save_c_werror_flag
3373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3374 $as_echo "$ac_cv_prog_cc_g" >&6; }
3375 if test "$ac_test_CFLAGS" = set; then
3376 CFLAGS=$ac_save_CFLAGS
3377 elif test $ac_cv_prog_cc_g = yes; then
3378 if test "$GCC" = yes; then
3379 CFLAGS="-g -O2"
3380 else
3381 CFLAGS="-g"
3383 else
3384 if test "$GCC" = yes; then
3385 CFLAGS="-O2"
3386 else
3387 CFLAGS=
3390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3391 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3392 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3393 $as_echo_n "(cached) " >&6
3394 else
3395 ac_cv_prog_cc_c89=no
3396 ac_save_CC=$CC
3397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3398 /* end confdefs.h. */
3399 #include <stdarg.h>
3400 #include <stdio.h>
3401 #include <sys/types.h>
3402 #include <sys/stat.h>
3403 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3404 struct buf { int x; };
3405 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3406 static char *e (p, i)
3407 char **p;
3408 int i;
3410 return p[i];
3412 static char *f (char * (*g) (char **, int), char **p, ...)
3414 char *s;
3415 va_list v;
3416 va_start (v,p);
3417 s = g (p, va_arg (v,int));
3418 va_end (v);
3419 return s;
3422 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3423 function prototypes and stuff, but not '\xHH' hex character constants.
3424 These don't provoke an error unfortunately, instead are silently treated
3425 as 'x'. The following induces an error, until -std is added to get
3426 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3427 array size at least. It's necessary to write '\x00'==0 to get something
3428 that's true only with -std. */
3429 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3431 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3432 inside strings and character constants. */
3433 #define FOO(x) 'x'
3434 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3436 int test (int i, double x);
3437 struct s1 {int (*f) (int a);};
3438 struct s2 {int (*f) (double a);};
3439 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3440 int argc;
3441 char **argv;
3443 main ()
3445 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3447 return 0;
3449 _ACEOF
3450 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3451 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3453 CC="$ac_save_CC $ac_arg"
3454 if ac_fn_c_try_compile "$LINENO"; then :
3455 ac_cv_prog_cc_c89=$ac_arg
3457 rm -f core conftest.err conftest.$ac_objext
3458 test "x$ac_cv_prog_cc_c89" != "xno" && break
3459 done
3460 rm -f conftest.$ac_ext
3461 CC=$ac_save_CC
3464 # AC_CACHE_VAL
3465 case "x$ac_cv_prog_cc_c89" in
3467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3468 $as_echo "none needed" >&6; } ;;
3469 xno)
3470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3471 $as_echo "unsupported" >&6; } ;;
3473 CC="$CC $ac_cv_prog_cc_c89"
3474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3475 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3476 esac
3477 if test "x$ac_cv_prog_cc_c89" != xno; then :
3481 ac_ext=c
3482 ac_cpp='$CPP $CPPFLAGS'
3483 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3484 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3485 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
3489 $as_echo_n "checking for library containing strerror... " >&6; }
3490 if test "${ac_cv_search_strerror+set}" = set; then :
3491 $as_echo_n "(cached) " >&6
3492 else
3493 ac_func_search_save_LIBS=$LIBS
3494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3495 /* end confdefs.h. */
3497 /* Override any GCC internal prototype to avoid an error.
3498 Use char because int might match the return type of a GCC
3499 builtin and then its argument prototype would still apply. */
3500 #ifdef __cplusplus
3501 extern "C"
3502 #endif
3503 char strerror ();
3505 main ()
3507 return strerror ();
3509 return 0;
3511 _ACEOF
3512 for ac_lib in '' cposix; do
3513 if test -z "$ac_lib"; then
3514 ac_res="none required"
3515 else
3516 ac_res=-l$ac_lib
3517 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3519 if ac_fn_c_try_link "$LINENO"; then :
3520 ac_cv_search_strerror=$ac_res
3522 rm -f core conftest.err conftest.$ac_objext \
3523 conftest$ac_exeext
3524 if test "${ac_cv_search_strerror+set}" = set; then :
3525 break
3527 done
3528 if test "${ac_cv_search_strerror+set}" = set; then :
3530 else
3531 ac_cv_search_strerror=no
3533 rm conftest.$ac_ext
3534 LIBS=$ac_func_search_save_LIBS
3536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
3537 $as_echo "$ac_cv_search_strerror" >&6; }
3538 ac_res=$ac_cv_search_strerror
3539 if test "$ac_res" != no; then :
3540 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3545 BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
3546 am__api_version='1.11'
3548 # Find a good install program. We prefer a C program (faster),
3549 # so one script is as good as another. But avoid the broken or
3550 # incompatible versions:
3551 # SysV /etc/install, /usr/sbin/install
3552 # SunOS /usr/etc/install
3553 # IRIX /sbin/install
3554 # AIX /bin/install
3555 # AmigaOS /C/install, which installs bootblocks on floppy discs
3556 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3557 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3558 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3559 # OS/2's system install, which has a completely different semantic
3560 # ./install, which can be erroneously created by make from ./install.sh.
3561 # Reject install programs that cannot install multiple files.
3562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3563 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3564 if test -z "$INSTALL"; then
3565 if test "${ac_cv_path_install+set}" = set; then :
3566 $as_echo_n "(cached) " >&6
3567 else
3568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3569 for as_dir in $PATH
3571 IFS=$as_save_IFS
3572 test -z "$as_dir" && as_dir=.
3573 # Account for people who put trailing slashes in PATH elements.
3574 case $as_dir/ in #((
3575 ./ | .// | /[cC]/* | \
3576 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3577 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3578 /usr/ucb/* ) ;;
3580 # OSF1 and SCO ODT 3.0 have their own names for install.
3581 # Don't use installbsd from OSF since it installs stuff as root
3582 # by default.
3583 for ac_prog in ginstall scoinst install; do
3584 for ac_exec_ext in '' $ac_executable_extensions; do
3585 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3586 if test $ac_prog = install &&
3587 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3588 # AIX install. It has an incompatible calling convention.
3590 elif test $ac_prog = install &&
3591 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3592 # program-specific install script used by HP pwplus--don't use.
3594 else
3595 rm -rf conftest.one conftest.two conftest.dir
3596 echo one > conftest.one
3597 echo two > conftest.two
3598 mkdir conftest.dir
3599 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3600 test -s conftest.one && test -s conftest.two &&
3601 test -s conftest.dir/conftest.one &&
3602 test -s conftest.dir/conftest.two
3603 then
3604 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3605 break 3
3609 done
3610 done
3612 esac
3614 done
3615 IFS=$as_save_IFS
3617 rm -rf conftest.one conftest.two conftest.dir
3620 if test "${ac_cv_path_install+set}" = set; then
3621 INSTALL=$ac_cv_path_install
3622 else
3623 # As a last resort, use the slow shell script. Don't cache a
3624 # value for INSTALL within a source directory, because that will
3625 # break other packages using the cache if that directory is
3626 # removed, or if the value is a relative name.
3627 INSTALL=$ac_install_sh
3630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3631 $as_echo "$INSTALL" >&6; }
3633 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3634 # It thinks the first close brace ends the variable substitution.
3635 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3637 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3639 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3642 $as_echo_n "checking whether build environment is sane... " >&6; }
3643 # Just in case
3644 sleep 1
3645 echo timestamp > conftest.file
3646 # Reject unsafe characters in $srcdir or the absolute working directory
3647 # name. Accept space and tab only in the latter.
3648 am_lf='
3650 case `pwd` in
3651 *[\\\"\#\$\&\'\`$am_lf]*)
3652 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3653 esac
3654 case $srcdir in
3655 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3656 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3657 esac
3659 # Do `set' in a subshell so we don't clobber the current shell's
3660 # arguments. Must try -L first in case configure is actually a
3661 # symlink; some systems play weird games with the mod time of symlinks
3662 # (eg FreeBSD returns the mod time of the symlink's containing
3663 # directory).
3664 if (
3665 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3666 if test "$*" = "X"; then
3667 # -L didn't work.
3668 set X `ls -t "$srcdir/configure" conftest.file`
3670 rm -f conftest.file
3671 if test "$*" != "X $srcdir/configure conftest.file" \
3672 && test "$*" != "X conftest.file $srcdir/configure"; then
3674 # If neither matched, then we have a broken ls. This can happen
3675 # if, for instance, CONFIG_SHELL is bash and it inherits a
3676 # broken ls alias from the environment. This has actually
3677 # happened. Such a system could not be considered "sane".
3678 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3679 alias in your environment" "$LINENO" 5
3682 test "$2" = conftest.file
3684 then
3685 # Ok.
3687 else
3688 as_fn_error "newly created file is older than distributed files!
3689 Check your system clock" "$LINENO" 5
3691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3692 $as_echo "yes" >&6; }
3693 test "$program_prefix" != NONE &&
3694 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3695 # Use a double $ so make ignores it.
3696 test "$program_suffix" != NONE &&
3697 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3698 # Double any \ or $.
3699 # By default was `s,x,x', remove it if useless.
3700 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3701 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3703 # expand $ac_aux_dir to an absolute path
3704 am_aux_dir=`cd $ac_aux_dir && pwd`
3706 if test x"${MISSING+set}" != xset; then
3707 case $am_aux_dir in
3708 *\ * | *\ *)
3709 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3711 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3712 esac
3714 # Use eval to expand $SHELL
3715 if eval "$MISSING --run true"; then
3716 am_missing_run="$MISSING --run "
3717 else
3718 am_missing_run=
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3720 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3723 if test x"${install_sh}" != xset; then
3724 case $am_aux_dir in
3725 *\ * | *\ *)
3726 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3728 install_sh="\${SHELL} $am_aux_dir/install-sh"
3729 esac
3732 # Installed binaries are usually stripped using `strip' when the user
3733 # run `make install-strip'. However `strip' might not be the right
3734 # tool to use in cross-compilation environments, therefore Automake
3735 # will honor the `STRIP' environment variable to overrule this program.
3736 if test "$cross_compiling" != no; then
3737 if test -n "$ac_tool_prefix"; then
3738 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3739 set dummy ${ac_tool_prefix}strip; ac_word=$2
3740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3741 $as_echo_n "checking for $ac_word... " >&6; }
3742 if test "${ac_cv_prog_STRIP+set}" = set; then :
3743 $as_echo_n "(cached) " >&6
3744 else
3745 if test -n "$STRIP"; then
3746 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3747 else
3748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3749 for as_dir in $PATH
3751 IFS=$as_save_IFS
3752 test -z "$as_dir" && as_dir=.
3753 for ac_exec_ext in '' $ac_executable_extensions; do
3754 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3755 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3757 break 2
3759 done
3760 done
3761 IFS=$as_save_IFS
3765 STRIP=$ac_cv_prog_STRIP
3766 if test -n "$STRIP"; then
3767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3768 $as_echo "$STRIP" >&6; }
3769 else
3770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3771 $as_echo "no" >&6; }
3776 if test -z "$ac_cv_prog_STRIP"; then
3777 ac_ct_STRIP=$STRIP
3778 # Extract the first word of "strip", so it can be a program name with args.
3779 set dummy strip; ac_word=$2
3780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3781 $as_echo_n "checking for $ac_word... " >&6; }
3782 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3783 $as_echo_n "(cached) " >&6
3784 else
3785 if test -n "$ac_ct_STRIP"; then
3786 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3787 else
3788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3789 for as_dir in $PATH
3791 IFS=$as_save_IFS
3792 test -z "$as_dir" && as_dir=.
3793 for ac_exec_ext in '' $ac_executable_extensions; do
3794 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3795 ac_cv_prog_ac_ct_STRIP="strip"
3796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3797 break 2
3799 done
3800 done
3801 IFS=$as_save_IFS
3805 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3806 if test -n "$ac_ct_STRIP"; then
3807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3808 $as_echo "$ac_ct_STRIP" >&6; }
3809 else
3810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3811 $as_echo "no" >&6; }
3814 if test "x$ac_ct_STRIP" = x; then
3815 STRIP=":"
3816 else
3817 case $cross_compiling:$ac_tool_warned in
3818 yes:)
3819 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3820 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3821 ac_tool_warned=yes ;;
3822 esac
3823 STRIP=$ac_ct_STRIP
3825 else
3826 STRIP="$ac_cv_prog_STRIP"
3830 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3833 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3834 if test -z "$MKDIR_P"; then
3835 if test "${ac_cv_path_mkdir+set}" = set; then :
3836 $as_echo_n "(cached) " >&6
3837 else
3838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3839 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3841 IFS=$as_save_IFS
3842 test -z "$as_dir" && as_dir=.
3843 for ac_prog in mkdir gmkdir; do
3844 for ac_exec_ext in '' $ac_executable_extensions; do
3845 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3846 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3847 'mkdir (GNU coreutils) '* | \
3848 'mkdir (coreutils) '* | \
3849 'mkdir (fileutils) '4.1*)
3850 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3851 break 3;;
3852 esac
3853 done
3854 done
3855 done
3856 IFS=$as_save_IFS
3860 if test "${ac_cv_path_mkdir+set}" = set; then
3861 MKDIR_P="$ac_cv_path_mkdir -p"
3862 else
3863 # As a last resort, use the slow shell script. Don't cache a
3864 # value for MKDIR_P within a source directory, because that will
3865 # break other packages using the cache if that directory is
3866 # removed, or if the value is a relative name.
3867 test -d ./--version && rmdir ./--version
3868 MKDIR_P="$ac_install_sh -d"
3871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3872 $as_echo "$MKDIR_P" >&6; }
3874 mkdir_p="$MKDIR_P"
3875 case $mkdir_p in
3876 [\\/$]* | ?:[\\/]*) ;;
3877 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3878 esac
3880 for ac_prog in gawk mawk nawk awk
3882 # Extract the first word of "$ac_prog", so it can be a program name with args.
3883 set dummy $ac_prog; ac_word=$2
3884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3885 $as_echo_n "checking for $ac_word... " >&6; }
3886 if test "${ac_cv_prog_AWK+set}" = set; then :
3887 $as_echo_n "(cached) " >&6
3888 else
3889 if test -n "$AWK"; then
3890 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3891 else
3892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3893 for as_dir in $PATH
3895 IFS=$as_save_IFS
3896 test -z "$as_dir" && as_dir=.
3897 for ac_exec_ext in '' $ac_executable_extensions; do
3898 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3899 ac_cv_prog_AWK="$ac_prog"
3900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3901 break 2
3903 done
3904 done
3905 IFS=$as_save_IFS
3909 AWK=$ac_cv_prog_AWK
3910 if test -n "$AWK"; then
3911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3912 $as_echo "$AWK" >&6; }
3913 else
3914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3915 $as_echo "no" >&6; }
3919 test -n "$AWK" && break
3920 done
3922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3923 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3924 set x ${MAKE-make}
3925 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3926 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3927 $as_echo_n "(cached) " >&6
3928 else
3929 cat >conftest.make <<\_ACEOF
3930 SHELL = /bin/sh
3931 all:
3932 @echo '@@@%%%=$(MAKE)=@@@%%%'
3933 _ACEOF
3934 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3935 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3936 *@@@%%%=?*=@@@%%%*)
3937 eval ac_cv_prog_make_${ac_make}_set=yes;;
3939 eval ac_cv_prog_make_${ac_make}_set=no;;
3940 esac
3941 rm -f conftest.make
3943 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3945 $as_echo "yes" >&6; }
3946 SET_MAKE=
3947 else
3948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3949 $as_echo "no" >&6; }
3950 SET_MAKE="MAKE=${MAKE-make}"
3953 rm -rf .tst 2>/dev/null
3954 mkdir .tst 2>/dev/null
3955 if test -d .tst; then
3956 am__leading_dot=.
3957 else
3958 am__leading_dot=_
3960 rmdir .tst 2>/dev/null
3962 DEPDIR="${am__leading_dot}deps"
3964 ac_config_commands="$ac_config_commands depfiles"
3967 am_make=${MAKE-make}
3968 cat > confinc << 'END'
3969 am__doit:
3970 @echo this is the am__doit target
3971 .PHONY: am__doit
3973 # If we don't find an include directive, just comment out the code.
3974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3975 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3976 am__include="#"
3977 am__quote=
3978 _am_result=none
3979 # First try GNU make style include.
3980 echo "include confinc" > confmf
3981 # Ignore all kinds of additional output from `make'.
3982 case `$am_make -s -f confmf 2> /dev/null` in #(
3983 *the\ am__doit\ target*)
3984 am__include=include
3985 am__quote=
3986 _am_result=GNU
3988 esac
3989 # Now try BSD make style include.
3990 if test "$am__include" = "#"; then
3991 echo '.include "confinc"' > confmf
3992 case `$am_make -s -f confmf 2> /dev/null` in #(
3993 *the\ am__doit\ target*)
3994 am__include=.include
3995 am__quote="\""
3996 _am_result=BSD
3998 esac
4002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4003 $as_echo "$_am_result" >&6; }
4004 rm -f confinc confmf
4006 # Check whether --enable-dependency-tracking was given.
4007 if test "${enable_dependency_tracking+set}" = set; then :
4008 enableval=$enable_dependency_tracking;
4011 if test "x$enable_dependency_tracking" != xno; then
4012 am_depcomp="$ac_aux_dir/depcomp"
4013 AMDEPBACKSLASH='\'
4015 if test "x$enable_dependency_tracking" != xno; then
4016 AMDEP_TRUE=
4017 AMDEP_FALSE='#'
4018 else
4019 AMDEP_TRUE='#'
4020 AMDEP_FALSE=
4024 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4025 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4026 # is not polluted with repeated "-I."
4027 am__isrc=' -I$(srcdir)'
4028 # test to see if srcdir already configured
4029 if test -f $srcdir/config.status; then
4030 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4034 # test whether we have cygpath
4035 if test -z "$CYGPATH_W"; then
4036 if (cygpath --version) >/dev/null 2>/dev/null; then
4037 CYGPATH_W='cygpath -w'
4038 else
4039 CYGPATH_W=echo
4044 # Define the identity of the package.
4045 PACKAGE=ld
4046 VERSION=${BFD_VERSION}
4049 cat >>confdefs.h <<_ACEOF
4050 #define PACKAGE "$PACKAGE"
4051 _ACEOF
4054 cat >>confdefs.h <<_ACEOF
4055 #define VERSION "$VERSION"
4056 _ACEOF
4058 # Some tools Automake needs.
4060 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4063 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4066 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4069 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4072 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4074 # We need awk for the "check" target. The system "awk" is bad on
4075 # some platforms.
4076 # Always define AMTAR for backward compatibility.
4078 AMTAR=${AMTAR-"${am_missing_run}tar"}
4080 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4085 depcc="$CC" am_compiler_list=
4087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4088 $as_echo_n "checking dependency style of $depcc... " >&6; }
4089 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4090 $as_echo_n "(cached) " >&6
4091 else
4092 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4093 # We make a subdir and do the tests there. Otherwise we can end up
4094 # making bogus files that we don't know about and never remove. For
4095 # instance it was reported that on HP-UX the gcc test will end up
4096 # making a dummy file named `D' -- because `-MD' means `put the output
4097 # in D'.
4098 mkdir conftest.dir
4099 # Copy depcomp to subdir because otherwise we won't find it if we're
4100 # using a relative directory.
4101 cp "$am_depcomp" conftest.dir
4102 cd conftest.dir
4103 # We will build objects and dependencies in a subdirectory because
4104 # it helps to detect inapplicable dependency modes. For instance
4105 # both Tru64's cc and ICC support -MD to output dependencies as a
4106 # side effect of compilation, but ICC will put the dependencies in
4107 # the current directory while Tru64 will put them in the object
4108 # directory.
4109 mkdir sub
4111 am_cv_CC_dependencies_compiler_type=none
4112 if test "$am_compiler_list" = ""; then
4113 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4115 am__universal=false
4116 case " $depcc " in #(
4117 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4118 esac
4120 for depmode in $am_compiler_list; do
4121 # Setup a source with many dependencies, because some compilers
4122 # like to wrap large dependency lists on column 80 (with \), and
4123 # we should not choose a depcomp mode which is confused by this.
4125 # We need to recreate these files for each test, as the compiler may
4126 # overwrite some of them when testing with obscure command lines.
4127 # This happens at least with the AIX C compiler.
4128 : > sub/conftest.c
4129 for i in 1 2 3 4 5 6; do
4130 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4131 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4132 # Solaris 8's {/usr,}/bin/sh.
4133 touch sub/conftst$i.h
4134 done
4135 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4137 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4138 # mode. It turns out that the SunPro C++ compiler does not properly
4139 # handle `-M -o', and we need to detect this. Also, some Intel
4140 # versions had trouble with output in subdirs
4141 am__obj=sub/conftest.${OBJEXT-o}
4142 am__minus_obj="-o $am__obj"
4143 case $depmode in
4144 gcc)
4145 # This depmode causes a compiler race in universal mode.
4146 test "$am__universal" = false || continue
4148 nosideeffect)
4149 # after this tag, mechanisms are not by side-effect, so they'll
4150 # only be used when explicitly requested
4151 if test "x$enable_dependency_tracking" = xyes; then
4152 continue
4153 else
4154 break
4157 msvisualcpp | msvcmsys)
4158 # This compiler won't grok `-c -o', but also, the minuso test has
4159 # not run yet. These depmodes are late enough in the game, and
4160 # so weak that their functioning should not be impacted.
4161 am__obj=conftest.${OBJEXT-o}
4162 am__minus_obj=
4164 none) break ;;
4165 esac
4166 if depmode=$depmode \
4167 source=sub/conftest.c object=$am__obj \
4168 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4169 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4170 >/dev/null 2>conftest.err &&
4171 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4172 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4173 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4174 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4175 # icc doesn't choke on unknown options, it will just issue warnings
4176 # or remarks (even with -Werror). So we grep stderr for any message
4177 # that says an option was ignored or not supported.
4178 # When given -MP, icc 7.0 and 7.1 complain thusly:
4179 # icc: Command line warning: ignoring option '-M'; no argument required
4180 # The diagnosis changed in icc 8.0:
4181 # icc: Command line remark: option '-MP' not supported
4182 if (grep 'ignoring option' conftest.err ||
4183 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4184 am_cv_CC_dependencies_compiler_type=$depmode
4185 break
4188 done
4190 cd ..
4191 rm -rf conftest.dir
4192 else
4193 am_cv_CC_dependencies_compiler_type=none
4197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4198 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4199 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4202 test "x$enable_dependency_tracking" != xno \
4203 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4204 am__fastdepCC_TRUE=
4205 am__fastdepCC_FALSE='#'
4206 else
4207 am__fastdepCC_TRUE='#'
4208 am__fastdepCC_FALSE=
4214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4215 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4216 # Check whether --enable-maintainer-mode was given.
4217 if test "${enable_maintainer_mode+set}" = set; then :
4218 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4219 else
4220 USE_MAINTAINER_MODE=no
4223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4224 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4225 if test $USE_MAINTAINER_MODE = yes; then
4226 MAINTAINER_MODE_TRUE=
4227 MAINTAINER_MODE_FALSE='#'
4228 else
4229 MAINTAINER_MODE_TRUE='#'
4230 MAINTAINER_MODE_FALSE=
4233 MAINT=$MAINTAINER_MODE_TRUE
4238 # Check whether --with-lib-path was given.
4239 if test "${with_lib_path+set}" = set; then :
4240 withval=$with_lib_path; LIB_PATH=$withval
4243 # Check whether --enable-targets was given.
4244 if test "${enable_targets+set}" = set; then :
4245 enableval=$enable_targets; case "${enableval}" in
4246 yes | "") as_fn_error "enable-targets option must specify target names or 'all'" "$LINENO" 5
4248 no) enable_targets= ;;
4249 *) enable_targets=$enableval ;;
4250 esac
4252 # Check whether --enable-64-bit-bfd was given.
4253 if test "${enable_64_bit_bfd+set}" = set; then :
4254 enableval=$enable_64_bit_bfd; case "${enableval}" in
4255 yes) want64=true ;;
4256 no) want64=false ;;
4257 *) as_fn_error "bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;;
4258 esac
4259 else
4260 want64=false
4264 # Check whether --with-sysroot was given.
4265 if test "${with_sysroot+set}" = set; then :
4266 withval=$with_sysroot;
4267 case ${with_sysroot} in
4268 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
4269 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
4270 esac
4272 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
4273 use_sysroot=yes
4275 if test "x$prefix" = xNONE; then
4276 test_prefix=/usr/local
4277 else
4278 test_prefix=$prefix
4280 if test "x$exec_prefix" = xNONE; then
4281 test_exec_prefix=$test_prefix
4282 else
4283 test_exec_prefix=$exec_prefix
4285 case ${TARGET_SYSTEM_ROOT} in
4286 "${test_prefix}"|"${test_prefix}/"*|\
4287 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
4288 '${prefix}'|'${prefix}/'*|\
4289 '${exec_prefix}'|'${exec_prefix}/'*)
4290 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
4291 TARGET_SYSTEM_ROOT_DEFINE="$t"
4293 esac
4295 else
4297 use_sysroot=no
4298 TARGET_SYSTEM_ROOT=
4299 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
4307 # Check whether --enable-got was given.
4308 if test "${enable_got+set}" = set; then :
4309 enableval=$enable_got; case "${enableval}" in
4310 target | single | negative | multigot) got_handling=$enableval ;;
4311 *) as_fn_error "bad value ${enableval} for --enable-got option" "$LINENO" 5 ;;
4312 esac
4313 else
4314 got_handling=target
4318 case "${got_handling}" in
4319 target)
4321 $as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_TARGET_DEFAULT" >>confdefs.h
4323 single)
4325 $as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_SINGLE" >>confdefs.h
4327 negative)
4329 $as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_NEGATIVE" >>confdefs.h
4331 multigot)
4333 $as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_MULTIGOT" >>confdefs.h
4335 *) as_fn_error "bad value ${got_handling} for --enable-got option" "$LINENO" 5 ;;
4336 esac
4339 GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
4341 # Check whether --enable-werror was given.
4342 if test "${enable_werror+set}" = set; then :
4343 enableval=$enable_werror; case "${enableval}" in
4344 yes | y) ERROR_ON_WARNING="yes" ;;
4345 no | n) ERROR_ON_WARNING="no" ;;
4346 *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
4347 esac
4351 # Enable -Wno-format by default when using gcc on mingw
4352 case "${host}" in
4353 *-*-mingw32*)
4354 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
4355 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
4358 *) ;;
4359 esac
4361 # Enable -Werror by default when using gcc
4362 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
4363 ERROR_ON_WARNING=yes
4366 NO_WERROR=
4367 if test "${ERROR_ON_WARNING}" = yes ; then
4368 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
4369 NO_WERROR="-Wno-error"
4372 if test "${GCC}" = yes ; then
4373 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
4376 # Check whether --enable-build-warnings was given.
4377 if test "${enable_build_warnings+set}" = set; then :
4378 enableval=$enable_build_warnings; case "${enableval}" in
4379 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
4380 no) if test "${GCC}" = yes ; then
4381 WARN_CFLAGS="-w"
4382 fi;;
4383 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
4384 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
4385 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
4386 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
4387 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
4388 esac
4392 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
4393 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
4400 ac_config_headers="$ac_config_headers config.h:config.in"
4403 if test -z "$target" ; then
4404 as_fn_error "Unrecognized target system type; please check config.sub." "$LINENO" 5
4406 if test -z "$host" ; then
4407 as_fn_error "Unrecognized host system type; please check config.sub." "$LINENO" 5
4410 # host-specific stuff:
4412 ac_ext=c
4413 ac_cpp='$CPP $CPPFLAGS'
4414 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4415 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4416 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4417 if test -n "$ac_tool_prefix"; then
4418 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4419 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4421 $as_echo_n "checking for $ac_word... " >&6; }
4422 if test "${ac_cv_prog_CC+set}" = set; then :
4423 $as_echo_n "(cached) " >&6
4424 else
4425 if test -n "$CC"; then
4426 ac_cv_prog_CC="$CC" # Let the user override the test.
4427 else
4428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4429 for as_dir in $PATH
4431 IFS=$as_save_IFS
4432 test -z "$as_dir" && as_dir=.
4433 for ac_exec_ext in '' $ac_executable_extensions; do
4434 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4435 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4436 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4437 break 2
4439 done
4440 done
4441 IFS=$as_save_IFS
4445 CC=$ac_cv_prog_CC
4446 if test -n "$CC"; then
4447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4448 $as_echo "$CC" >&6; }
4449 else
4450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4451 $as_echo "no" >&6; }
4456 if test -z "$ac_cv_prog_CC"; then
4457 ac_ct_CC=$CC
4458 # Extract the first word of "gcc", so it can be a program name with args.
4459 set dummy gcc; ac_word=$2
4460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4461 $as_echo_n "checking for $ac_word... " >&6; }
4462 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4463 $as_echo_n "(cached) " >&6
4464 else
4465 if test -n "$ac_ct_CC"; then
4466 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4467 else
4468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4469 for as_dir in $PATH
4471 IFS=$as_save_IFS
4472 test -z "$as_dir" && as_dir=.
4473 for ac_exec_ext in '' $ac_executable_extensions; do
4474 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4475 ac_cv_prog_ac_ct_CC="gcc"
4476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4477 break 2
4479 done
4480 done
4481 IFS=$as_save_IFS
4485 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4486 if test -n "$ac_ct_CC"; then
4487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4488 $as_echo "$ac_ct_CC" >&6; }
4489 else
4490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4491 $as_echo "no" >&6; }
4494 if test "x$ac_ct_CC" = x; then
4495 CC=""
4496 else
4497 case $cross_compiling:$ac_tool_warned in
4498 yes:)
4499 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4500 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4501 ac_tool_warned=yes ;;
4502 esac
4503 CC=$ac_ct_CC
4505 else
4506 CC="$ac_cv_prog_CC"
4509 if test -z "$CC"; then
4510 if test -n "$ac_tool_prefix"; then
4511 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4512 set dummy ${ac_tool_prefix}cc; ac_word=$2
4513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4514 $as_echo_n "checking for $ac_word... " >&6; }
4515 if test "${ac_cv_prog_CC+set}" = set; then :
4516 $as_echo_n "(cached) " >&6
4517 else
4518 if test -n "$CC"; then
4519 ac_cv_prog_CC="$CC" # Let the user override the test.
4520 else
4521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4522 for as_dir in $PATH
4524 IFS=$as_save_IFS
4525 test -z "$as_dir" && as_dir=.
4526 for ac_exec_ext in '' $ac_executable_extensions; do
4527 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4528 ac_cv_prog_CC="${ac_tool_prefix}cc"
4529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4530 break 2
4532 done
4533 done
4534 IFS=$as_save_IFS
4538 CC=$ac_cv_prog_CC
4539 if test -n "$CC"; then
4540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4541 $as_echo "$CC" >&6; }
4542 else
4543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4544 $as_echo "no" >&6; }
4550 if test -z "$CC"; then
4551 # Extract the first word of "cc", so it can be a program name with args.
4552 set dummy cc; ac_word=$2
4553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4554 $as_echo_n "checking for $ac_word... " >&6; }
4555 if test "${ac_cv_prog_CC+set}" = set; then :
4556 $as_echo_n "(cached) " >&6
4557 else
4558 if test -n "$CC"; then
4559 ac_cv_prog_CC="$CC" # Let the user override the test.
4560 else
4561 ac_prog_rejected=no
4562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4563 for as_dir in $PATH
4565 IFS=$as_save_IFS
4566 test -z "$as_dir" && as_dir=.
4567 for ac_exec_ext in '' $ac_executable_extensions; do
4568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4569 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4570 ac_prog_rejected=yes
4571 continue
4573 ac_cv_prog_CC="cc"
4574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4575 break 2
4577 done
4578 done
4579 IFS=$as_save_IFS
4581 if test $ac_prog_rejected = yes; then
4582 # We found a bogon in the path, so make sure we never use it.
4583 set dummy $ac_cv_prog_CC
4584 shift
4585 if test $# != 0; then
4586 # We chose a different compiler from the bogus one.
4587 # However, it has the same basename, so the bogon will be chosen
4588 # first if we set CC to just the basename; use the full file name.
4589 shift
4590 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4595 CC=$ac_cv_prog_CC
4596 if test -n "$CC"; then
4597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4598 $as_echo "$CC" >&6; }
4599 else
4600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4601 $as_echo "no" >&6; }
4606 if test -z "$CC"; then
4607 if test -n "$ac_tool_prefix"; then
4608 for ac_prog in cl.exe
4610 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4611 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4613 $as_echo_n "checking for $ac_word... " >&6; }
4614 if test "${ac_cv_prog_CC+set}" = set; then :
4615 $as_echo_n "(cached) " >&6
4616 else
4617 if test -n "$CC"; then
4618 ac_cv_prog_CC="$CC" # Let the user override the test.
4619 else
4620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4621 for as_dir in $PATH
4623 IFS=$as_save_IFS
4624 test -z "$as_dir" && as_dir=.
4625 for ac_exec_ext in '' $ac_executable_extensions; do
4626 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4627 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4629 break 2
4631 done
4632 done
4633 IFS=$as_save_IFS
4637 CC=$ac_cv_prog_CC
4638 if test -n "$CC"; then
4639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4640 $as_echo "$CC" >&6; }
4641 else
4642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4643 $as_echo "no" >&6; }
4647 test -n "$CC" && break
4648 done
4650 if test -z "$CC"; then
4651 ac_ct_CC=$CC
4652 for ac_prog in cl.exe
4654 # Extract the first word of "$ac_prog", so it can be a program name with args.
4655 set dummy $ac_prog; ac_word=$2
4656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4657 $as_echo_n "checking for $ac_word... " >&6; }
4658 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4659 $as_echo_n "(cached) " >&6
4660 else
4661 if test -n "$ac_ct_CC"; then
4662 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4663 else
4664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4665 for as_dir in $PATH
4667 IFS=$as_save_IFS
4668 test -z "$as_dir" && as_dir=.
4669 for ac_exec_ext in '' $ac_executable_extensions; do
4670 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4671 ac_cv_prog_ac_ct_CC="$ac_prog"
4672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4673 break 2
4675 done
4676 done
4677 IFS=$as_save_IFS
4681 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4682 if test -n "$ac_ct_CC"; then
4683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4684 $as_echo "$ac_ct_CC" >&6; }
4685 else
4686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4687 $as_echo "no" >&6; }
4691 test -n "$ac_ct_CC" && break
4692 done
4694 if test "x$ac_ct_CC" = x; then
4695 CC=""
4696 else
4697 case $cross_compiling:$ac_tool_warned in
4698 yes:)
4699 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4700 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4701 ac_tool_warned=yes ;;
4702 esac
4703 CC=$ac_ct_CC
4710 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4711 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4712 as_fn_error "no acceptable C compiler found in \$PATH
4713 See \`config.log' for more details." "$LINENO" 5; }
4715 # Provide some information about the compiler.
4716 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4717 set X $ac_compile
4718 ac_compiler=$2
4719 for ac_option in --version -v -V -qversion; do
4720 { { ac_try="$ac_compiler $ac_option >&5"
4721 case "(($ac_try" in
4722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4723 *) ac_try_echo=$ac_try;;
4724 esac
4725 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4726 $as_echo "$ac_try_echo"; } >&5
4727 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4728 ac_status=$?
4729 if test -s conftest.err; then
4730 sed '10a\
4731 ... rest of stderr output deleted ...
4732 10q' conftest.err >conftest.er1
4733 cat conftest.er1 >&5
4734 rm -f conftest.er1 conftest.err
4736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4737 test $ac_status = 0; }
4738 done
4740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4741 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4742 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4743 $as_echo_n "(cached) " >&6
4744 else
4745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4746 /* end confdefs.h. */
4749 main ()
4751 #ifndef __GNUC__
4752 choke me
4753 #endif
4756 return 0;
4758 _ACEOF
4759 if ac_fn_c_try_compile "$LINENO"; then :
4760 ac_compiler_gnu=yes
4761 else
4762 ac_compiler_gnu=no
4764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4765 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4769 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4770 if test $ac_compiler_gnu = yes; then
4771 GCC=yes
4772 else
4773 GCC=
4775 ac_test_CFLAGS=${CFLAGS+set}
4776 ac_save_CFLAGS=$CFLAGS
4777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4778 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4779 if test "${ac_cv_prog_cc_g+set}" = set; then :
4780 $as_echo_n "(cached) " >&6
4781 else
4782 ac_save_c_werror_flag=$ac_c_werror_flag
4783 ac_c_werror_flag=yes
4784 ac_cv_prog_cc_g=no
4785 CFLAGS="-g"
4786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4787 /* end confdefs.h. */
4790 main ()
4794 return 0;
4796 _ACEOF
4797 if ac_fn_c_try_compile "$LINENO"; then :
4798 ac_cv_prog_cc_g=yes
4799 else
4800 CFLAGS=""
4801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4802 /* end confdefs.h. */
4805 main ()
4809 return 0;
4811 _ACEOF
4812 if ac_fn_c_try_compile "$LINENO"; then :
4814 else
4815 ac_c_werror_flag=$ac_save_c_werror_flag
4816 CFLAGS="-g"
4817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4818 /* end confdefs.h. */
4821 main ()
4825 return 0;
4827 _ACEOF
4828 if ac_fn_c_try_compile "$LINENO"; then :
4829 ac_cv_prog_cc_g=yes
4831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4836 ac_c_werror_flag=$ac_save_c_werror_flag
4838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4839 $as_echo "$ac_cv_prog_cc_g" >&6; }
4840 if test "$ac_test_CFLAGS" = set; then
4841 CFLAGS=$ac_save_CFLAGS
4842 elif test $ac_cv_prog_cc_g = yes; then
4843 if test "$GCC" = yes; then
4844 CFLAGS="-g -O2"
4845 else
4846 CFLAGS="-g"
4848 else
4849 if test "$GCC" = yes; then
4850 CFLAGS="-O2"
4851 else
4852 CFLAGS=
4855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4856 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4857 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4858 $as_echo_n "(cached) " >&6
4859 else
4860 ac_cv_prog_cc_c89=no
4861 ac_save_CC=$CC
4862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4863 /* end confdefs.h. */
4864 #include <stdarg.h>
4865 #include <stdio.h>
4866 #include <sys/types.h>
4867 #include <sys/stat.h>
4868 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4869 struct buf { int x; };
4870 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4871 static char *e (p, i)
4872 char **p;
4873 int i;
4875 return p[i];
4877 static char *f (char * (*g) (char **, int), char **p, ...)
4879 char *s;
4880 va_list v;
4881 va_start (v,p);
4882 s = g (p, va_arg (v,int));
4883 va_end (v);
4884 return s;
4887 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4888 function prototypes and stuff, but not '\xHH' hex character constants.
4889 These don't provoke an error unfortunately, instead are silently treated
4890 as 'x'. The following induces an error, until -std is added to get
4891 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4892 array size at least. It's necessary to write '\x00'==0 to get something
4893 that's true only with -std. */
4894 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4896 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4897 inside strings and character constants. */
4898 #define FOO(x) 'x'
4899 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4901 int test (int i, double x);
4902 struct s1 {int (*f) (int a);};
4903 struct s2 {int (*f) (double a);};
4904 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4905 int argc;
4906 char **argv;
4908 main ()
4910 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4912 return 0;
4914 _ACEOF
4915 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4916 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4918 CC="$ac_save_CC $ac_arg"
4919 if ac_fn_c_try_compile "$LINENO"; then :
4920 ac_cv_prog_cc_c89=$ac_arg
4922 rm -f core conftest.err conftest.$ac_objext
4923 test "x$ac_cv_prog_cc_c89" != "xno" && break
4924 done
4925 rm -f conftest.$ac_ext
4926 CC=$ac_save_CC
4929 # AC_CACHE_VAL
4930 case "x$ac_cv_prog_cc_c89" in
4932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4933 $as_echo "none needed" >&6; } ;;
4934 xno)
4935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4936 $as_echo "unsupported" >&6; } ;;
4938 CC="$CC $ac_cv_prog_cc_c89"
4939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4940 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4941 esac
4942 if test "x$ac_cv_prog_cc_c89" != xno; then :
4946 ac_ext=c
4947 ac_cpp='$CPP $CPPFLAGS'
4948 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4949 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4950 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4952 ac_ext=c
4953 ac_cpp='$CPP $CPPFLAGS'
4954 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4955 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4956 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4958 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4959 # On Suns, sometimes $CPP names a directory.
4960 if test -n "$CPP" && test -d "$CPP"; then
4961 CPP=
4963 if test -z "$CPP"; then
4964 if test "${ac_cv_prog_CPP+set}" = set; then :
4965 $as_echo_n "(cached) " >&6
4966 else
4967 # Double quotes because CPP needs to be expanded
4968 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4970 ac_preproc_ok=false
4971 for ac_c_preproc_warn_flag in '' yes
4973 # Use a header file that comes with gcc, so configuring glibc
4974 # with a fresh cross-compiler works.
4975 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4976 # <limits.h> exists even on freestanding compilers.
4977 # On the NeXT, cc -E runs the code through the compiler's parser,
4978 # not just through cpp. "Syntax error" is here to catch this case.
4979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4980 /* end confdefs.h. */
4981 #ifdef __STDC__
4982 # include <limits.h>
4983 #else
4984 # include <assert.h>
4985 #endif
4986 Syntax error
4987 _ACEOF
4988 if ac_fn_c_try_cpp "$LINENO"; then :
4990 else
4991 # Broken: fails on valid input.
4992 continue
4994 rm -f conftest.err conftest.$ac_ext
4996 # OK, works on sane cases. Now check whether nonexistent headers
4997 # can be detected and how.
4998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4999 /* end confdefs.h. */
5000 #include <ac_nonexistent.h>
5001 _ACEOF
5002 if ac_fn_c_try_cpp "$LINENO"; then :
5003 # Broken: success on invalid input.
5004 continue
5005 else
5006 # Passes both tests.
5007 ac_preproc_ok=:
5008 break
5010 rm -f conftest.err conftest.$ac_ext
5012 done
5013 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5014 rm -f conftest.err conftest.$ac_ext
5015 if $ac_preproc_ok; then :
5016 break
5019 done
5020 ac_cv_prog_CPP=$CPP
5023 CPP=$ac_cv_prog_CPP
5024 else
5025 ac_cv_prog_CPP=$CPP
5027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5028 $as_echo "$CPP" >&6; }
5029 ac_preproc_ok=false
5030 for ac_c_preproc_warn_flag in '' yes
5032 # Use a header file that comes with gcc, so configuring glibc
5033 # with a fresh cross-compiler works.
5034 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5035 # <limits.h> exists even on freestanding compilers.
5036 # On the NeXT, cc -E runs the code through the compiler's parser,
5037 # not just through cpp. "Syntax error" is here to catch this case.
5038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5039 /* end confdefs.h. */
5040 #ifdef __STDC__
5041 # include <limits.h>
5042 #else
5043 # include <assert.h>
5044 #endif
5045 Syntax error
5046 _ACEOF
5047 if ac_fn_c_try_cpp "$LINENO"; then :
5049 else
5050 # Broken: fails on valid input.
5051 continue
5053 rm -f conftest.err conftest.$ac_ext
5055 # OK, works on sane cases. Now check whether nonexistent headers
5056 # can be detected and how.
5057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5058 /* end confdefs.h. */
5059 #include <ac_nonexistent.h>
5060 _ACEOF
5061 if ac_fn_c_try_cpp "$LINENO"; then :
5062 # Broken: success on invalid input.
5063 continue
5064 else
5065 # Passes both tests.
5066 ac_preproc_ok=:
5067 break
5069 rm -f conftest.err conftest.$ac_ext
5071 done
5072 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5073 rm -f conftest.err conftest.$ac_ext
5074 if $ac_preproc_ok; then :
5076 else
5077 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5078 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5079 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5080 See \`config.log' for more details." "$LINENO" 5; }
5083 ac_ext=c
5084 ac_cpp='$CPP $CPPFLAGS'
5085 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5086 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5087 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5091 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5092 if test "${ac_cv_path_GREP+set}" = set; then :
5093 $as_echo_n "(cached) " >&6
5094 else
5095 if test -z "$GREP"; then
5096 ac_path_GREP_found=false
5097 # Loop through the user's path and test for each of PROGNAME-LIST
5098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5099 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5101 IFS=$as_save_IFS
5102 test -z "$as_dir" && as_dir=.
5103 for ac_prog in grep ggrep; do
5104 for ac_exec_ext in '' $ac_executable_extensions; do
5105 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5106 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5107 # Check for GNU ac_path_GREP and select it if it is found.
5108 # Check for GNU $ac_path_GREP
5109 case `"$ac_path_GREP" --version 2>&1` in
5110 *GNU*)
5111 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5113 ac_count=0
5114 $as_echo_n 0123456789 >"conftest.in"
5115 while :
5117 cat "conftest.in" "conftest.in" >"conftest.tmp"
5118 mv "conftest.tmp" "conftest.in"
5119 cp "conftest.in" "conftest.nl"
5120 $as_echo 'GREP' >> "conftest.nl"
5121 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5122 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5123 as_fn_arith $ac_count + 1 && ac_count=$as_val
5124 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5125 # Best one so far, save it but keep looking for a better one
5126 ac_cv_path_GREP="$ac_path_GREP"
5127 ac_path_GREP_max=$ac_count
5129 # 10*(2^10) chars as input seems more than enough
5130 test $ac_count -gt 10 && break
5131 done
5132 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5133 esac
5135 $ac_path_GREP_found && break 3
5136 done
5137 done
5138 done
5139 IFS=$as_save_IFS
5140 if test -z "$ac_cv_path_GREP"; then
5141 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5143 else
5144 ac_cv_path_GREP=$GREP
5148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5149 $as_echo "$ac_cv_path_GREP" >&6; }
5150 GREP="$ac_cv_path_GREP"
5153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5154 $as_echo_n "checking for egrep... " >&6; }
5155 if test "${ac_cv_path_EGREP+set}" = set; then :
5156 $as_echo_n "(cached) " >&6
5157 else
5158 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5159 then ac_cv_path_EGREP="$GREP -E"
5160 else
5161 if test -z "$EGREP"; then
5162 ac_path_EGREP_found=false
5163 # Loop through the user's path and test for each of PROGNAME-LIST
5164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5165 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5167 IFS=$as_save_IFS
5168 test -z "$as_dir" && as_dir=.
5169 for ac_prog in egrep; do
5170 for ac_exec_ext in '' $ac_executable_extensions; do
5171 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5172 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5173 # Check for GNU ac_path_EGREP and select it if it is found.
5174 # Check for GNU $ac_path_EGREP
5175 case `"$ac_path_EGREP" --version 2>&1` in
5176 *GNU*)
5177 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5179 ac_count=0
5180 $as_echo_n 0123456789 >"conftest.in"
5181 while :
5183 cat "conftest.in" "conftest.in" >"conftest.tmp"
5184 mv "conftest.tmp" "conftest.in"
5185 cp "conftest.in" "conftest.nl"
5186 $as_echo 'EGREP' >> "conftest.nl"
5187 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5188 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5189 as_fn_arith $ac_count + 1 && ac_count=$as_val
5190 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5191 # Best one so far, save it but keep looking for a better one
5192 ac_cv_path_EGREP="$ac_path_EGREP"
5193 ac_path_EGREP_max=$ac_count
5195 # 10*(2^10) chars as input seems more than enough
5196 test $ac_count -gt 10 && break
5197 done
5198 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5199 esac
5201 $ac_path_EGREP_found && break 3
5202 done
5203 done
5204 done
5205 IFS=$as_save_IFS
5206 if test -z "$ac_cv_path_EGREP"; then
5207 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5209 else
5210 ac_cv_path_EGREP=$EGREP
5215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5216 $as_echo "$ac_cv_path_EGREP" >&6; }
5217 EGREP="$ac_cv_path_EGREP"
5220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5221 $as_echo_n "checking for ANSI C header files... " >&6; }
5222 if test "${ac_cv_header_stdc+set}" = set; then :
5223 $as_echo_n "(cached) " >&6
5224 else
5225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5226 /* end confdefs.h. */
5227 #include <stdlib.h>
5228 #include <stdarg.h>
5229 #include <string.h>
5230 #include <float.h>
5233 main ()
5237 return 0;
5239 _ACEOF
5240 if ac_fn_c_try_compile "$LINENO"; then :
5241 ac_cv_header_stdc=yes
5242 else
5243 ac_cv_header_stdc=no
5245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5247 if test $ac_cv_header_stdc = yes; then
5248 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5250 /* end confdefs.h. */
5251 #include <string.h>
5253 _ACEOF
5254 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5255 $EGREP "memchr" >/dev/null 2>&1; then :
5257 else
5258 ac_cv_header_stdc=no
5260 rm -f conftest*
5264 if test $ac_cv_header_stdc = yes; then
5265 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5267 /* end confdefs.h. */
5268 #include <stdlib.h>
5270 _ACEOF
5271 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5272 $EGREP "free" >/dev/null 2>&1; then :
5274 else
5275 ac_cv_header_stdc=no
5277 rm -f conftest*
5281 if test $ac_cv_header_stdc = yes; then
5282 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5283 if test "$cross_compiling" = yes; then :
5285 else
5286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5287 /* end confdefs.h. */
5288 #include <ctype.h>
5289 #include <stdlib.h>
5290 #if ((' ' & 0x0FF) == 0x020)
5291 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5292 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5293 #else
5294 # define ISLOWER(c) \
5295 (('a' <= (c) && (c) <= 'i') \
5296 || ('j' <= (c) && (c) <= 'r') \
5297 || ('s' <= (c) && (c) <= 'z'))
5298 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5299 #endif
5301 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5303 main ()
5305 int i;
5306 for (i = 0; i < 256; i++)
5307 if (XOR (islower (i), ISLOWER (i))
5308 || toupper (i) != TOUPPER (i))
5309 return 2;
5310 return 0;
5312 _ACEOF
5313 if ac_fn_c_try_run "$LINENO"; then :
5315 else
5316 ac_cv_header_stdc=no
5318 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5319 conftest.$ac_objext conftest.beam conftest.$ac_ext
5324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5325 $as_echo "$ac_cv_header_stdc" >&6; }
5326 if test $ac_cv_header_stdc = yes; then
5328 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5332 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5333 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5334 inttypes.h stdint.h unistd.h
5335 do :
5336 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5337 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5339 eval as_val=\$$as_ac_Header
5340 if test "x$as_val" = x""yes; then :
5341 cat >>confdefs.h <<_ACEOF
5342 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5343 _ACEOF
5347 done
5351 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5352 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5353 MINIX=yes
5354 else
5355 MINIX=
5359 if test "$MINIX" = yes; then
5361 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5364 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5367 $as_echo "#define _MINIX 1" >>confdefs.h
5372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5373 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5374 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5375 $as_echo_n "(cached) " >&6
5376 else
5377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5378 /* end confdefs.h. */
5380 # define __EXTENSIONS__ 1
5381 $ac_includes_default
5383 main ()
5387 return 0;
5389 _ACEOF
5390 if ac_fn_c_try_compile "$LINENO"; then :
5391 ac_cv_safe_to_define___extensions__=yes
5392 else
5393 ac_cv_safe_to_define___extensions__=no
5395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5398 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5399 test $ac_cv_safe_to_define___extensions__ = yes &&
5400 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5402 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5404 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5406 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5408 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5414 # As the $enable_largefile decision depends on --enable-plugins we must set it
5415 # even in directories otherwise not depending on the $plugins option.
5418 # Check whether --enable-plugins was given.
5419 if test "${enable_plugins+set}" = set; then :
5420 enableval=$enable_plugins; case "${enableval}" in
5421 yes | "") plugins=yes ;;
5422 no) plugins=no ;;
5423 *) plugins=yes ;;
5424 esac
5425 else
5426 plugins=no
5431 case "${host}" in
5432 sparc-*-solaris*|i[3-7]86-*-solaris*)
5433 # On native 32bit sparc and ia32 solaris, large-file and procfs support
5434 # are mutually exclusive; and without procfs support, the bfd/ elf module
5435 # cannot provide certain routines such as elfcore_write_prpsinfo
5436 # or elfcore_write_prstatus. So unless the user explicitly requested
5437 # large-file support through the --enable-largefile switch, disable
5438 # large-file support in favor of procfs support.
5439 test "${target}" = "${host}" -a "x$plugins" = xno \
5440 && : ${enable_largefile="no"}
5442 esac
5444 # Check whether --enable-largefile was given.
5445 if test "${enable_largefile+set}" = set; then :
5446 enableval=$enable_largefile;
5449 if test "$enable_largefile" != no; then
5451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5452 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5453 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5454 $as_echo_n "(cached) " >&6
5455 else
5456 ac_cv_sys_largefile_CC=no
5457 if test "$GCC" != yes; then
5458 ac_save_CC=$CC
5459 while :; do
5460 # IRIX 6.2 and later do not support large files by default,
5461 # so use the C compiler's -n32 option if that helps.
5462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5463 /* end confdefs.h. */
5464 #include <sys/types.h>
5465 /* Check that off_t can represent 2**63 - 1 correctly.
5466 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5467 since some C++ compilers masquerading as C compilers
5468 incorrectly reject 9223372036854775807. */
5469 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5470 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5471 && LARGE_OFF_T % 2147483647 == 1)
5472 ? 1 : -1];
5474 main ()
5478 return 0;
5480 _ACEOF
5481 if ac_fn_c_try_compile "$LINENO"; then :
5482 break
5484 rm -f core conftest.err conftest.$ac_objext
5485 CC="$CC -n32"
5486 if ac_fn_c_try_compile "$LINENO"; then :
5487 ac_cv_sys_largefile_CC=' -n32'; break
5489 rm -f core conftest.err conftest.$ac_objext
5490 break
5491 done
5492 CC=$ac_save_CC
5493 rm -f conftest.$ac_ext
5496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5497 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5498 if test "$ac_cv_sys_largefile_CC" != no; then
5499 CC=$CC$ac_cv_sys_largefile_CC
5502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5503 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5504 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5505 $as_echo_n "(cached) " >&6
5506 else
5507 while :; do
5508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5509 /* end confdefs.h. */
5510 #include <sys/types.h>
5511 /* Check that off_t can represent 2**63 - 1 correctly.
5512 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5513 since some C++ compilers masquerading as C compilers
5514 incorrectly reject 9223372036854775807. */
5515 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5516 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5517 && LARGE_OFF_T % 2147483647 == 1)
5518 ? 1 : -1];
5520 main ()
5524 return 0;
5526 _ACEOF
5527 if ac_fn_c_try_compile "$LINENO"; then :
5528 ac_cv_sys_file_offset_bits=no; break
5530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5532 /* end confdefs.h. */
5533 #define _FILE_OFFSET_BITS 64
5534 #include <sys/types.h>
5535 /* Check that off_t can represent 2**63 - 1 correctly.
5536 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5537 since some C++ compilers masquerading as C compilers
5538 incorrectly reject 9223372036854775807. */
5539 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5540 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5541 && LARGE_OFF_T % 2147483647 == 1)
5542 ? 1 : -1];
5544 main ()
5548 return 0;
5550 _ACEOF
5551 if ac_fn_c_try_compile "$LINENO"; then :
5552 ac_cv_sys_file_offset_bits=64; break
5554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5555 ac_cv_sys_file_offset_bits=unknown
5556 break
5557 done
5559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5560 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5561 case $ac_cv_sys_file_offset_bits in #(
5562 no | unknown) ;;
5564 cat >>confdefs.h <<_ACEOF
5565 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5566 _ACEOF
5568 esac
5569 rm -rf conftest*
5570 if test $ac_cv_sys_file_offset_bits = unknown; then
5571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5572 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5573 if test "${ac_cv_sys_large_files+set}" = set; then :
5574 $as_echo_n "(cached) " >&6
5575 else
5576 while :; do
5577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5578 /* end confdefs.h. */
5579 #include <sys/types.h>
5580 /* Check that off_t can represent 2**63 - 1 correctly.
5581 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5582 since some C++ compilers masquerading as C compilers
5583 incorrectly reject 9223372036854775807. */
5584 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5585 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5586 && LARGE_OFF_T % 2147483647 == 1)
5587 ? 1 : -1];
5589 main ()
5593 return 0;
5595 _ACEOF
5596 if ac_fn_c_try_compile "$LINENO"; then :
5597 ac_cv_sys_large_files=no; break
5599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5601 /* end confdefs.h. */
5602 #define _LARGE_FILES 1
5603 #include <sys/types.h>
5604 /* Check that off_t can represent 2**63 - 1 correctly.
5605 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5606 since some C++ compilers masquerading as C compilers
5607 incorrectly reject 9223372036854775807. */
5608 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5609 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5610 && LARGE_OFF_T % 2147483647 == 1)
5611 ? 1 : -1];
5613 main ()
5617 return 0;
5619 _ACEOF
5620 if ac_fn_c_try_compile "$LINENO"; then :
5621 ac_cv_sys_large_files=1; break
5623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5624 ac_cv_sys_large_files=unknown
5625 break
5626 done
5628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5629 $as_echo "$ac_cv_sys_large_files" >&6; }
5630 case $ac_cv_sys_large_files in #(
5631 no | unknown) ;;
5633 cat >>confdefs.h <<_ACEOF
5634 #define _LARGE_FILES $ac_cv_sys_large_files
5635 _ACEOF
5637 esac
5638 rm -rf conftest*
5645 case `pwd` in
5646 *\ * | *\ *)
5647 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5648 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5649 esac
5653 macro_version='2.2.6'
5654 macro_revision='1.3012'
5668 ltmain="$ac_aux_dir/ltmain.sh"
5670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5671 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5672 if test "${ac_cv_path_SED+set}" = set; then :
5673 $as_echo_n "(cached) " >&6
5674 else
5675 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5676 for ac_i in 1 2 3 4 5 6 7; do
5677 ac_script="$ac_script$as_nl$ac_script"
5678 done
5679 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5680 { ac_script=; unset ac_script;}
5681 if test -z "$SED"; then
5682 ac_path_SED_found=false
5683 # Loop through the user's path and test for each of PROGNAME-LIST
5684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5685 for as_dir in $PATH
5687 IFS=$as_save_IFS
5688 test -z "$as_dir" && as_dir=.
5689 for ac_prog in sed gsed; do
5690 for ac_exec_ext in '' $ac_executable_extensions; do
5691 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5692 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5693 # Check for GNU ac_path_SED and select it if it is found.
5694 # Check for GNU $ac_path_SED
5695 case `"$ac_path_SED" --version 2>&1` in
5696 *GNU*)
5697 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5699 ac_count=0
5700 $as_echo_n 0123456789 >"conftest.in"
5701 while :
5703 cat "conftest.in" "conftest.in" >"conftest.tmp"
5704 mv "conftest.tmp" "conftest.in"
5705 cp "conftest.in" "conftest.nl"
5706 $as_echo '' >> "conftest.nl"
5707 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5708 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5709 as_fn_arith $ac_count + 1 && ac_count=$as_val
5710 if test $ac_count -gt ${ac_path_SED_max-0}; then
5711 # Best one so far, save it but keep looking for a better one
5712 ac_cv_path_SED="$ac_path_SED"
5713 ac_path_SED_max=$ac_count
5715 # 10*(2^10) chars as input seems more than enough
5716 test $ac_count -gt 10 && break
5717 done
5718 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5719 esac
5721 $ac_path_SED_found && break 3
5722 done
5723 done
5724 done
5725 IFS=$as_save_IFS
5726 if test -z "$ac_cv_path_SED"; then
5727 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
5729 else
5730 ac_cv_path_SED=$SED
5734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5735 $as_echo "$ac_cv_path_SED" >&6; }
5736 SED="$ac_cv_path_SED"
5737 rm -f conftest.sed
5739 test -z "$SED" && SED=sed
5740 Xsed="$SED -e 1s/^X//"
5752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5753 $as_echo_n "checking for fgrep... " >&6; }
5754 if test "${ac_cv_path_FGREP+set}" = set; then :
5755 $as_echo_n "(cached) " >&6
5756 else
5757 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5758 then ac_cv_path_FGREP="$GREP -F"
5759 else
5760 if test -z "$FGREP"; then
5761 ac_path_FGREP_found=false
5762 # Loop through the user's path and test for each of PROGNAME-LIST
5763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5764 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5766 IFS=$as_save_IFS
5767 test -z "$as_dir" && as_dir=.
5768 for ac_prog in fgrep; do
5769 for ac_exec_ext in '' $ac_executable_extensions; do
5770 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5771 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5772 # Check for GNU ac_path_FGREP and select it if it is found.
5773 # Check for GNU $ac_path_FGREP
5774 case `"$ac_path_FGREP" --version 2>&1` in
5775 *GNU*)
5776 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5778 ac_count=0
5779 $as_echo_n 0123456789 >"conftest.in"
5780 while :
5782 cat "conftest.in" "conftest.in" >"conftest.tmp"
5783 mv "conftest.tmp" "conftest.in"
5784 cp "conftest.in" "conftest.nl"
5785 $as_echo 'FGREP' >> "conftest.nl"
5786 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5787 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5788 as_fn_arith $ac_count + 1 && ac_count=$as_val
5789 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5790 # Best one so far, save it but keep looking for a better one
5791 ac_cv_path_FGREP="$ac_path_FGREP"
5792 ac_path_FGREP_max=$ac_count
5794 # 10*(2^10) chars as input seems more than enough
5795 test $ac_count -gt 10 && break
5796 done
5797 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5798 esac
5800 $ac_path_FGREP_found && break 3
5801 done
5802 done
5803 done
5804 IFS=$as_save_IFS
5805 if test -z "$ac_cv_path_FGREP"; then
5806 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5808 else
5809 ac_cv_path_FGREP=$FGREP
5814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5815 $as_echo "$ac_cv_path_FGREP" >&6; }
5816 FGREP="$ac_cv_path_FGREP"
5819 test -z "$GREP" && GREP=grep
5839 # Check whether --with-gnu-ld was given.
5840 if test "${with_gnu_ld+set}" = set; then :
5841 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5842 else
5843 with_gnu_ld=no
5846 ac_prog=ld
5847 if test "$GCC" = yes; then
5848 # Check if gcc -print-prog-name=ld gives a path.
5849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5850 $as_echo_n "checking for ld used by $CC... " >&6; }
5851 case $host in
5852 *-*-mingw*)
5853 # gcc leaves a trailing carriage return which upsets mingw
5854 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5856 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5857 esac
5858 case $ac_prog in
5859 # Accept absolute paths.
5860 [\\/]* | ?:[\\/]*)
5861 re_direlt='/[^/][^/]*/\.\./'
5862 # Canonicalize the pathname of ld
5863 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5864 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5865 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5866 done
5867 test -z "$LD" && LD="$ac_prog"
5870 # If it fails, then pretend we aren't using GCC.
5871 ac_prog=ld
5874 # If it is relative, then search for the first ld in PATH.
5875 with_gnu_ld=unknown
5877 esac
5878 elif test "$with_gnu_ld" = yes; then
5879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5880 $as_echo_n "checking for GNU ld... " >&6; }
5881 else
5882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5883 $as_echo_n "checking for non-GNU ld... " >&6; }
5885 if test "${lt_cv_path_LD+set}" = set; then :
5886 $as_echo_n "(cached) " >&6
5887 else
5888 if test -z "$LD"; then
5889 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5890 for ac_dir in $PATH; do
5891 IFS="$lt_save_ifs"
5892 test -z "$ac_dir" && ac_dir=.
5893 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5894 lt_cv_path_LD="$ac_dir/$ac_prog"
5895 # Check to see if the program is GNU ld. I'd rather use --version,
5896 # but apparently some variants of GNU ld only accept -v.
5897 # Break only if it was the GNU/non-GNU ld that we prefer.
5898 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5899 *GNU* | *'with BFD'*)
5900 test "$with_gnu_ld" != no && break
5903 test "$with_gnu_ld" != yes && break
5905 esac
5907 done
5908 IFS="$lt_save_ifs"
5909 else
5910 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5914 LD="$lt_cv_path_LD"
5915 if test -n "$LD"; then
5916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5917 $as_echo "$LD" >&6; }
5918 else
5919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5920 $as_echo "no" >&6; }
5922 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5924 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5925 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5926 $as_echo_n "(cached) " >&6
5927 else
5928 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5929 case `$LD -v 2>&1 </dev/null` in
5930 *GNU* | *'with BFD'*)
5931 lt_cv_prog_gnu_ld=yes
5934 lt_cv_prog_gnu_ld=no
5936 esac
5938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5939 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5940 with_gnu_ld=$lt_cv_prog_gnu_ld
5950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5951 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5952 if test "${lt_cv_path_NM+set}" = set; then :
5953 $as_echo_n "(cached) " >&6
5954 else
5955 if test -n "$NM"; then
5956 # Let the user override the test.
5957 lt_cv_path_NM="$NM"
5958 else
5959 lt_nm_to_check="${ac_tool_prefix}nm"
5960 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5961 lt_nm_to_check="$lt_nm_to_check nm"
5963 for lt_tmp_nm in $lt_nm_to_check; do
5964 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5965 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5966 IFS="$lt_save_ifs"
5967 test -z "$ac_dir" && ac_dir=.
5968 tmp_nm="$ac_dir/$lt_tmp_nm"
5969 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5970 # Check to see if the nm accepts a BSD-compat flag.
5971 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5972 # nm: unknown option "B" ignored
5973 # Tru64's nm complains that /dev/null is an invalid object file
5974 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5975 */dev/null* | *'Invalid file or object type'*)
5976 lt_cv_path_NM="$tmp_nm -B"
5977 break
5980 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5981 */dev/null*)
5982 lt_cv_path_NM="$tmp_nm -p"
5983 break
5986 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5987 continue # so that we can try to find one that supports BSD flags
5989 esac
5991 esac
5993 done
5994 IFS="$lt_save_ifs"
5995 done
5996 : ${lt_cv_path_NM=no}
5999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6000 $as_echo "$lt_cv_path_NM" >&6; }
6001 if test "$lt_cv_path_NM" != "no"; then
6002 NM="$lt_cv_path_NM"
6003 else
6004 # Didn't find any BSD compatible name lister, look for dumpbin.
6005 if test -n "$ac_tool_prefix"; then
6006 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6008 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6009 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6011 $as_echo_n "checking for $ac_word... " >&6; }
6012 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
6013 $as_echo_n "(cached) " >&6
6014 else
6015 if test -n "$DUMPBIN"; then
6016 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6017 else
6018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6019 for as_dir in $PATH
6021 IFS=$as_save_IFS
6022 test -z "$as_dir" && as_dir=.
6023 for ac_exec_ext in '' $ac_executable_extensions; do
6024 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6025 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6027 break 2
6029 done
6030 done
6031 IFS=$as_save_IFS
6035 DUMPBIN=$ac_cv_prog_DUMPBIN
6036 if test -n "$DUMPBIN"; then
6037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6038 $as_echo "$DUMPBIN" >&6; }
6039 else
6040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6041 $as_echo "no" >&6; }
6045 test -n "$DUMPBIN" && break
6046 done
6048 if test -z "$DUMPBIN"; then
6049 ac_ct_DUMPBIN=$DUMPBIN
6050 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6052 # Extract the first word of "$ac_prog", so it can be a program name with args.
6053 set dummy $ac_prog; ac_word=$2
6054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6055 $as_echo_n "checking for $ac_word... " >&6; }
6056 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
6057 $as_echo_n "(cached) " >&6
6058 else
6059 if test -n "$ac_ct_DUMPBIN"; then
6060 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6061 else
6062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6063 for as_dir in $PATH
6065 IFS=$as_save_IFS
6066 test -z "$as_dir" && as_dir=.
6067 for ac_exec_ext in '' $ac_executable_extensions; do
6068 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6069 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6071 break 2
6073 done
6074 done
6075 IFS=$as_save_IFS
6079 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6080 if test -n "$ac_ct_DUMPBIN"; then
6081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6082 $as_echo "$ac_ct_DUMPBIN" >&6; }
6083 else
6084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6085 $as_echo "no" >&6; }
6089 test -n "$ac_ct_DUMPBIN" && break
6090 done
6092 if test "x$ac_ct_DUMPBIN" = x; then
6093 DUMPBIN=":"
6094 else
6095 case $cross_compiling:$ac_tool_warned in
6096 yes:)
6097 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6098 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6099 ac_tool_warned=yes ;;
6100 esac
6101 DUMPBIN=$ac_ct_DUMPBIN
6106 if test "$DUMPBIN" != ":"; then
6107 NM="$DUMPBIN"
6110 test -z "$NM" && NM=nm
6117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6118 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6119 if test "${lt_cv_nm_interface+set}" = set; then :
6120 $as_echo_n "(cached) " >&6
6121 else
6122 lt_cv_nm_interface="BSD nm"
6123 echo "int some_variable = 0;" > conftest.$ac_ext
6124 (eval echo "\"\$as_me:6124: $ac_compile\"" >&5)
6125 (eval "$ac_compile" 2>conftest.err)
6126 cat conftest.err >&5
6127 (eval echo "\"\$as_me:6127: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6128 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6129 cat conftest.err >&5
6130 (eval echo "\"\$as_me:6130: output\"" >&5)
6131 cat conftest.out >&5
6132 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6133 lt_cv_nm_interface="MS dumpbin"
6135 rm -f conftest*
6137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6138 $as_echo "$lt_cv_nm_interface" >&6; }
6140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6141 $as_echo_n "checking whether ln -s works... " >&6; }
6142 LN_S=$as_ln_s
6143 if test "$LN_S" = "ln -s"; then
6144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6145 $as_echo "yes" >&6; }
6146 else
6147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6148 $as_echo "no, using $LN_S" >&6; }
6151 # find the maximum length of command line arguments
6152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6153 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6154 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
6155 $as_echo_n "(cached) " >&6
6156 else
6158 teststring="ABCD"
6160 case $build_os in
6161 msdosdjgpp*)
6162 # On DJGPP, this test can blow up pretty badly due to problems in libc
6163 # (any single argument exceeding 2000 bytes causes a buffer overrun
6164 # during glob expansion). Even if it were fixed, the result of this
6165 # check would be larger than it should be.
6166 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6169 gnu*)
6170 # Under GNU Hurd, this test is not required because there is
6171 # no limit to the length of command line arguments.
6172 # Libtool will interpret -1 as no limit whatsoever
6173 lt_cv_sys_max_cmd_len=-1;
6176 cygwin* | mingw* | cegcc*)
6177 # On Win9x/ME, this test blows up -- it succeeds, but takes
6178 # about 5 minutes as the teststring grows exponentially.
6179 # Worse, since 9x/ME are not pre-emptively multitasking,
6180 # you end up with a "frozen" computer, even though with patience
6181 # the test eventually succeeds (with a max line length of 256k).
6182 # Instead, let's just punt: use the minimum linelength reported by
6183 # all of the supported platforms: 8192 (on NT/2K/XP).
6184 lt_cv_sys_max_cmd_len=8192;
6187 amigaos*)
6188 # On AmigaOS with pdksh, this test takes hours, literally.
6189 # So we just punt and use a minimum line length of 8192.
6190 lt_cv_sys_max_cmd_len=8192;
6193 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6194 # This has been around since 386BSD, at least. Likely further.
6195 if test -x /sbin/sysctl; then
6196 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6197 elif test -x /usr/sbin/sysctl; then
6198 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6199 else
6200 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6202 # And add a safety zone
6203 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6204 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6207 interix*)
6208 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6209 lt_cv_sys_max_cmd_len=196608
6212 osf*)
6213 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6214 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6215 # nice to cause kernel panics so lets avoid the loop below.
6216 # First set a reasonable default.
6217 lt_cv_sys_max_cmd_len=16384
6219 if test -x /sbin/sysconfig; then
6220 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6221 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6222 esac
6225 sco3.2v5*)
6226 lt_cv_sys_max_cmd_len=102400
6228 sysv5* | sco5v6* | sysv4.2uw2*)
6229 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6230 if test -n "$kargmax"; then
6231 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6232 else
6233 lt_cv_sys_max_cmd_len=32768
6237 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6238 if test -n "$lt_cv_sys_max_cmd_len"; then
6239 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6240 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6241 else
6242 # Make teststring a little bigger before we do anything with it.
6243 # a 1K string should be a reasonable start.
6244 for i in 1 2 3 4 5 6 7 8 ; do
6245 teststring=$teststring$teststring
6246 done
6247 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6248 # If test is not a shell built-in, we'll probably end up computing a
6249 # maximum length that is only half of the actual maximum length, but
6250 # we can't tell.
6251 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6252 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6253 test $i != 17 # 1/2 MB should be enough
6255 i=`expr $i + 1`
6256 teststring=$teststring$teststring
6257 done
6258 # Only check the string length outside the loop.
6259 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6260 teststring=
6261 # Add a significant safety factor because C++ compilers can tack on
6262 # massive amounts of additional arguments before passing them to the
6263 # linker. It appears as though 1/2 is a usable value.
6264 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6267 esac
6271 if test -n $lt_cv_sys_max_cmd_len ; then
6272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6273 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6274 else
6275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6276 $as_echo "none" >&6; }
6278 max_cmd_len=$lt_cv_sys_max_cmd_len
6285 : ${CP="cp -f"}
6286 : ${MV="mv -f"}
6287 : ${RM="rm -f"}
6289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6290 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6291 # Try some XSI features
6292 xsi_shell=no
6293 ( _lt_dummy="a/b/c"
6294 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6295 = c,a/b,, \
6296 && eval 'test $(( 1 + 1 )) -eq 2 \
6297 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6298 && xsi_shell=yes
6299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6300 $as_echo "$xsi_shell" >&6; }
6303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6304 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6305 lt_shell_append=no
6306 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6307 >/dev/null 2>&1 \
6308 && lt_shell_append=yes
6309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6310 $as_echo "$lt_shell_append" >&6; }
6313 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6314 lt_unset=unset
6315 else
6316 lt_unset=false
6323 # test EBCDIC or ASCII
6324 case `echo X|tr X '\101'` in
6325 A) # ASCII based system
6326 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6327 lt_SP2NL='tr \040 \012'
6328 lt_NL2SP='tr \015\012 \040\040'
6330 *) # EBCDIC based system
6331 lt_SP2NL='tr \100 \n'
6332 lt_NL2SP='tr \r\n \100\100'
6334 esac
6344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6345 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6346 if test "${lt_cv_ld_reload_flag+set}" = set; then :
6347 $as_echo_n "(cached) " >&6
6348 else
6349 lt_cv_ld_reload_flag='-r'
6351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6352 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6353 reload_flag=$lt_cv_ld_reload_flag
6354 case $reload_flag in
6355 "" | " "*) ;;
6356 *) reload_flag=" $reload_flag" ;;
6357 esac
6358 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6359 case $host_os in
6360 darwin*)
6361 if test "$GCC" = yes; then
6362 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6363 else
6364 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6367 esac
6377 if test -n "$ac_tool_prefix"; then
6378 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6379 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6381 $as_echo_n "checking for $ac_word... " >&6; }
6382 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6383 $as_echo_n "(cached) " >&6
6384 else
6385 if test -n "$OBJDUMP"; then
6386 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6387 else
6388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6389 for as_dir in $PATH
6391 IFS=$as_save_IFS
6392 test -z "$as_dir" && as_dir=.
6393 for ac_exec_ext in '' $ac_executable_extensions; do
6394 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6395 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6397 break 2
6399 done
6400 done
6401 IFS=$as_save_IFS
6405 OBJDUMP=$ac_cv_prog_OBJDUMP
6406 if test -n "$OBJDUMP"; then
6407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6408 $as_echo "$OBJDUMP" >&6; }
6409 else
6410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6411 $as_echo "no" >&6; }
6416 if test -z "$ac_cv_prog_OBJDUMP"; then
6417 ac_ct_OBJDUMP=$OBJDUMP
6418 # Extract the first word of "objdump", so it can be a program name with args.
6419 set dummy objdump; ac_word=$2
6420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6421 $as_echo_n "checking for $ac_word... " >&6; }
6422 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6423 $as_echo_n "(cached) " >&6
6424 else
6425 if test -n "$ac_ct_OBJDUMP"; then
6426 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6427 else
6428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6429 for as_dir in $PATH
6431 IFS=$as_save_IFS
6432 test -z "$as_dir" && as_dir=.
6433 for ac_exec_ext in '' $ac_executable_extensions; do
6434 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6435 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6436 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6437 break 2
6439 done
6440 done
6441 IFS=$as_save_IFS
6445 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6446 if test -n "$ac_ct_OBJDUMP"; then
6447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6448 $as_echo "$ac_ct_OBJDUMP" >&6; }
6449 else
6450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6451 $as_echo "no" >&6; }
6454 if test "x$ac_ct_OBJDUMP" = x; then
6455 OBJDUMP="false"
6456 else
6457 case $cross_compiling:$ac_tool_warned in
6458 yes:)
6459 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6460 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6461 ac_tool_warned=yes ;;
6462 esac
6463 OBJDUMP=$ac_ct_OBJDUMP
6465 else
6466 OBJDUMP="$ac_cv_prog_OBJDUMP"
6469 test -z "$OBJDUMP" && OBJDUMP=objdump
6479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6480 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6481 if test "${lt_cv_deplibs_check_method+set}" = set; then :
6482 $as_echo_n "(cached) " >&6
6483 else
6484 lt_cv_file_magic_cmd='$MAGIC_CMD'
6485 lt_cv_file_magic_test_file=
6486 lt_cv_deplibs_check_method='unknown'
6487 # Need to set the preceding variable on all platforms that support
6488 # interlibrary dependencies.
6489 # 'none' -- dependencies not supported.
6490 # `unknown' -- same as none, but documents that we really don't know.
6491 # 'pass_all' -- all dependencies passed with no checks.
6492 # 'test_compile' -- check by making test program.
6493 # 'file_magic [[regex]]' -- check by looking for files in library path
6494 # which responds to the $file_magic_cmd with a given extended regex.
6495 # If you have `file' or equivalent on your system and you're not sure
6496 # whether `pass_all' will *always* work, you probably want this one.
6498 case $host_os in
6499 aix[4-9]*)
6500 lt_cv_deplibs_check_method=pass_all
6503 beos*)
6504 lt_cv_deplibs_check_method=pass_all
6507 bsdi[45]*)
6508 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6509 lt_cv_file_magic_cmd='/usr/bin/file -L'
6510 lt_cv_file_magic_test_file=/shlib/libc.so
6513 cygwin*)
6514 # func_win32_libid is a shell function defined in ltmain.sh
6515 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6516 lt_cv_file_magic_cmd='func_win32_libid'
6519 mingw* | pw32*)
6520 # Base MSYS/MinGW do not provide the 'file' command needed by
6521 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6522 # unless we find 'file', for example because we are cross-compiling.
6523 if ( file / ) >/dev/null 2>&1; then
6524 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6525 lt_cv_file_magic_cmd='func_win32_libid'
6526 else
6527 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6528 lt_cv_file_magic_cmd='$OBJDUMP -f'
6532 cegcc)
6533 # use the weaker test based on 'objdump'. See mingw*.
6534 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6535 lt_cv_file_magic_cmd='$OBJDUMP -f'
6538 darwin* | rhapsody*)
6539 lt_cv_deplibs_check_method=pass_all
6542 freebsd* | dragonfly*)
6543 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6544 case $host_cpu in
6545 i*86 )
6546 # Not sure whether the presence of OpenBSD here was a mistake.
6547 # Let's accept both of them until this is cleared up.
6548 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6549 lt_cv_file_magic_cmd=/usr/bin/file
6550 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6552 esac
6553 else
6554 lt_cv_deplibs_check_method=pass_all
6558 gnu*)
6559 lt_cv_deplibs_check_method=pass_all
6562 hpux10.20* | hpux11*)
6563 lt_cv_file_magic_cmd=/usr/bin/file
6564 case $host_cpu in
6565 ia64*)
6566 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6567 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6569 hppa*64*)
6570 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]'
6571 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6574 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6575 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6577 esac
6580 interix[3-9]*)
6581 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6582 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6585 irix5* | irix6* | nonstopux*)
6586 case $LD in
6587 *-32|*"-32 ") libmagic=32-bit;;
6588 *-n32|*"-n32 ") libmagic=N32;;
6589 *-64|*"-64 ") libmagic=64-bit;;
6590 *) libmagic=never-match;;
6591 esac
6592 lt_cv_deplibs_check_method=pass_all
6595 # This must be Linux ELF.
6596 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6597 lt_cv_deplibs_check_method=pass_all
6600 netbsd*)
6601 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6602 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6603 else
6604 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6608 newos6*)
6609 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6610 lt_cv_file_magic_cmd=/usr/bin/file
6611 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6614 *nto* | *qnx*)
6615 lt_cv_deplibs_check_method=pass_all
6618 openbsd*)
6619 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6620 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6621 else
6622 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6626 osf3* | osf4* | osf5*)
6627 lt_cv_deplibs_check_method=pass_all
6630 rdos*)
6631 lt_cv_deplibs_check_method=pass_all
6634 solaris*)
6635 lt_cv_deplibs_check_method=pass_all
6638 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6639 lt_cv_deplibs_check_method=pass_all
6642 sysv4 | sysv4.3*)
6643 case $host_vendor in
6644 motorola)
6645 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]'
6646 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6648 ncr)
6649 lt_cv_deplibs_check_method=pass_all
6651 sequent)
6652 lt_cv_file_magic_cmd='/bin/file'
6653 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6655 sni)
6656 lt_cv_file_magic_cmd='/bin/file'
6657 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6658 lt_cv_file_magic_test_file=/lib/libc.so
6660 siemens)
6661 lt_cv_deplibs_check_method=pass_all
6664 lt_cv_deplibs_check_method=pass_all
6666 esac
6669 tpf*)
6670 lt_cv_deplibs_check_method=pass_all
6672 esac
6675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6676 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6677 file_magic_cmd=$lt_cv_file_magic_cmd
6678 deplibs_check_method=$lt_cv_deplibs_check_method
6679 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6692 if test -n "$ac_tool_prefix"; then
6693 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6694 set dummy ${ac_tool_prefix}ar; ac_word=$2
6695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6696 $as_echo_n "checking for $ac_word... " >&6; }
6697 if test "${ac_cv_prog_AR+set}" = set; then :
6698 $as_echo_n "(cached) " >&6
6699 else
6700 if test -n "$AR"; then
6701 ac_cv_prog_AR="$AR" # Let the user override the test.
6702 else
6703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6704 for as_dir in $PATH
6706 IFS=$as_save_IFS
6707 test -z "$as_dir" && as_dir=.
6708 for ac_exec_ext in '' $ac_executable_extensions; do
6709 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6710 ac_cv_prog_AR="${ac_tool_prefix}ar"
6711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6712 break 2
6714 done
6715 done
6716 IFS=$as_save_IFS
6720 AR=$ac_cv_prog_AR
6721 if test -n "$AR"; then
6722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6723 $as_echo "$AR" >&6; }
6724 else
6725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6726 $as_echo "no" >&6; }
6731 if test -z "$ac_cv_prog_AR"; then
6732 ac_ct_AR=$AR
6733 # Extract the first word of "ar", so it can be a program name with args.
6734 set dummy ar; ac_word=$2
6735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6736 $as_echo_n "checking for $ac_word... " >&6; }
6737 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6738 $as_echo_n "(cached) " >&6
6739 else
6740 if test -n "$ac_ct_AR"; then
6741 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6742 else
6743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6744 for as_dir in $PATH
6746 IFS=$as_save_IFS
6747 test -z "$as_dir" && as_dir=.
6748 for ac_exec_ext in '' $ac_executable_extensions; do
6749 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6750 ac_cv_prog_ac_ct_AR="ar"
6751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6752 break 2
6754 done
6755 done
6756 IFS=$as_save_IFS
6760 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6761 if test -n "$ac_ct_AR"; then
6762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6763 $as_echo "$ac_ct_AR" >&6; }
6764 else
6765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6766 $as_echo "no" >&6; }
6769 if test "x$ac_ct_AR" = x; then
6770 AR="false"
6771 else
6772 case $cross_compiling:$ac_tool_warned in
6773 yes:)
6774 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6775 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6776 ac_tool_warned=yes ;;
6777 esac
6778 AR=$ac_ct_AR
6780 else
6781 AR="$ac_cv_prog_AR"
6784 test -z "$AR" && AR=ar
6785 test -z "$AR_FLAGS" && AR_FLAGS=cru
6797 if test -n "$ac_tool_prefix"; then
6798 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6799 set dummy ${ac_tool_prefix}strip; ac_word=$2
6800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6801 $as_echo_n "checking for $ac_word... " >&6; }
6802 if test "${ac_cv_prog_STRIP+set}" = set; then :
6803 $as_echo_n "(cached) " >&6
6804 else
6805 if test -n "$STRIP"; then
6806 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6807 else
6808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6809 for as_dir in $PATH
6811 IFS=$as_save_IFS
6812 test -z "$as_dir" && as_dir=.
6813 for ac_exec_ext in '' $ac_executable_extensions; do
6814 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6815 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6817 break 2
6819 done
6820 done
6821 IFS=$as_save_IFS
6825 STRIP=$ac_cv_prog_STRIP
6826 if test -n "$STRIP"; then
6827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6828 $as_echo "$STRIP" >&6; }
6829 else
6830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6831 $as_echo "no" >&6; }
6836 if test -z "$ac_cv_prog_STRIP"; then
6837 ac_ct_STRIP=$STRIP
6838 # Extract the first word of "strip", so it can be a program name with args.
6839 set dummy strip; ac_word=$2
6840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6841 $as_echo_n "checking for $ac_word... " >&6; }
6842 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6843 $as_echo_n "(cached) " >&6
6844 else
6845 if test -n "$ac_ct_STRIP"; then
6846 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6847 else
6848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6849 for as_dir in $PATH
6851 IFS=$as_save_IFS
6852 test -z "$as_dir" && as_dir=.
6853 for ac_exec_ext in '' $ac_executable_extensions; do
6854 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6855 ac_cv_prog_ac_ct_STRIP="strip"
6856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6857 break 2
6859 done
6860 done
6861 IFS=$as_save_IFS
6865 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6866 if test -n "$ac_ct_STRIP"; then
6867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6868 $as_echo "$ac_ct_STRIP" >&6; }
6869 else
6870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6871 $as_echo "no" >&6; }
6874 if test "x$ac_ct_STRIP" = x; then
6875 STRIP=":"
6876 else
6877 case $cross_compiling:$ac_tool_warned in
6878 yes:)
6879 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6880 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6881 ac_tool_warned=yes ;;
6882 esac
6883 STRIP=$ac_ct_STRIP
6885 else
6886 STRIP="$ac_cv_prog_STRIP"
6889 test -z "$STRIP" && STRIP=:
6896 if test -n "$ac_tool_prefix"; then
6897 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6898 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6900 $as_echo_n "checking for $ac_word... " >&6; }
6901 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6902 $as_echo_n "(cached) " >&6
6903 else
6904 if test -n "$RANLIB"; then
6905 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6906 else
6907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6908 for as_dir in $PATH
6910 IFS=$as_save_IFS
6911 test -z "$as_dir" && as_dir=.
6912 for ac_exec_ext in '' $ac_executable_extensions; do
6913 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6914 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6916 break 2
6918 done
6919 done
6920 IFS=$as_save_IFS
6924 RANLIB=$ac_cv_prog_RANLIB
6925 if test -n "$RANLIB"; then
6926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6927 $as_echo "$RANLIB" >&6; }
6928 else
6929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6930 $as_echo "no" >&6; }
6935 if test -z "$ac_cv_prog_RANLIB"; then
6936 ac_ct_RANLIB=$RANLIB
6937 # Extract the first word of "ranlib", so it can be a program name with args.
6938 set dummy ranlib; ac_word=$2
6939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6940 $as_echo_n "checking for $ac_word... " >&6; }
6941 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6942 $as_echo_n "(cached) " >&6
6943 else
6944 if test -n "$ac_ct_RANLIB"; then
6945 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6946 else
6947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6948 for as_dir in $PATH
6950 IFS=$as_save_IFS
6951 test -z "$as_dir" && as_dir=.
6952 for ac_exec_ext in '' $ac_executable_extensions; do
6953 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6954 ac_cv_prog_ac_ct_RANLIB="ranlib"
6955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6956 break 2
6958 done
6959 done
6960 IFS=$as_save_IFS
6964 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6965 if test -n "$ac_ct_RANLIB"; then
6966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6967 $as_echo "$ac_ct_RANLIB" >&6; }
6968 else
6969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6970 $as_echo "no" >&6; }
6973 if test "x$ac_ct_RANLIB" = x; then
6974 RANLIB=":"
6975 else
6976 case $cross_compiling:$ac_tool_warned in
6977 yes:)
6978 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6979 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6980 ac_tool_warned=yes ;;
6981 esac
6982 RANLIB=$ac_ct_RANLIB
6984 else
6985 RANLIB="$ac_cv_prog_RANLIB"
6988 test -z "$RANLIB" && RANLIB=:
6995 # Determine commands to create old-style static archives.
6996 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6997 old_postinstall_cmds='chmod 644 $oldlib'
6998 old_postuninstall_cmds=
7000 if test -n "$RANLIB"; then
7001 case $host_os in
7002 openbsd*)
7003 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7006 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7008 esac
7009 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7045 # If no C compiler was specified, use CC.
7046 LTCC=${LTCC-"$CC"}
7048 # If no C compiler flags were specified, use CFLAGS.
7049 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7051 # Allow CC to be a program name with arguments.
7052 compiler=$CC
7055 # Check for command to grab the raw symbol name followed by C symbol from nm.
7056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7057 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7058 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
7059 $as_echo_n "(cached) " >&6
7060 else
7062 # These are sane defaults that work on at least a few old systems.
7063 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7065 # Character class describing NM global symbol codes.
7066 symcode='[BCDEGRST]'
7068 # Regexp to match symbols that can be accessed directly from C.
7069 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7071 # Define system-specific variables.
7072 case $host_os in
7073 aix*)
7074 symcode='[BCDT]'
7076 cygwin* | mingw* | pw32* | cegcc*)
7077 symcode='[ABCDGISTW]'
7079 hpux*)
7080 if test "$host_cpu" = ia64; then
7081 symcode='[ABCDEGRST]'
7084 irix* | nonstopux*)
7085 symcode='[BCDEGRST]'
7087 osf*)
7088 symcode='[BCDEGQRST]'
7090 solaris*)
7091 symcode='[BDRT]'
7093 sco3.2v5*)
7094 symcode='[DT]'
7096 sysv4.2uw2*)
7097 symcode='[DT]'
7099 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7100 symcode='[ABDT]'
7102 sysv4)
7103 symcode='[DFNSTU]'
7105 esac
7107 # If we're using GNU nm, then use its standard symbol codes.
7108 case `$NM -V 2>&1` in
7109 *GNU* | *'with BFD'*)
7110 symcode='[ABCDGIRSTW]' ;;
7111 esac
7113 # Transform an extracted symbol line into a proper C declaration.
7114 # Some systems (esp. on ia64) link data and code symbols differently,
7115 # so use this general approach.
7116 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7118 # Transform an extracted symbol line into symbol name and symbol address
7119 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7120 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'"
7122 # Handle CRLF in mingw tool chain
7123 opt_cr=
7124 case $build_os in
7125 mingw*)
7126 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7128 esac
7130 # Try without a prefix underscore, then with it.
7131 for ac_symprfx in "" "_"; do
7133 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7134 symxfrm="\\1 $ac_symprfx\\2 \\2"
7136 # Write the raw and C identifiers.
7137 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7138 # Fake it for dumpbin and say T for any non-static function
7139 # and D for any global variable.
7140 # Also find C++ and __fastcall symbols from MSVC++,
7141 # which start with @ or ?.
7142 lt_cv_sys_global_symbol_pipe="$AWK '"\
7143 " {last_section=section; section=\$ 3};"\
7144 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7145 " \$ 0!~/External *\|/{next};"\
7146 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7147 " {if(hide[section]) next};"\
7148 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7149 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7150 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7151 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7152 " ' prfx=^$ac_symprfx"
7153 else
7154 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7157 # Check to see that the pipe works correctly.
7158 pipe_works=no
7160 rm -f conftest*
7161 cat > conftest.$ac_ext <<_LT_EOF
7162 #ifdef __cplusplus
7163 extern "C" {
7164 #endif
7165 char nm_test_var;
7166 void nm_test_func(void);
7167 void nm_test_func(void){}
7168 #ifdef __cplusplus
7170 #endif
7171 int main(){nm_test_var='a';nm_test_func();return(0);}
7172 _LT_EOF
7174 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7175 (eval $ac_compile) 2>&5
7176 ac_status=$?
7177 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7178 test $ac_status = 0; }; then
7179 # Now try to grab the symbols.
7180 nlist=conftest.nm
7181 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
7182 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7183 ac_status=$?
7184 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7185 test $ac_status = 0; } && test -s "$nlist"; then
7186 # Try sorting and uniquifying the output.
7187 if sort "$nlist" | uniq > "$nlist"T; then
7188 mv -f "$nlist"T "$nlist"
7189 else
7190 rm -f "$nlist"T
7193 # Make sure that we snagged all the symbols we need.
7194 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7195 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7196 cat <<_LT_EOF > conftest.$ac_ext
7197 #ifdef __cplusplus
7198 extern "C" {
7199 #endif
7201 _LT_EOF
7202 # Now generate the symbol file.
7203 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7205 cat <<_LT_EOF >> conftest.$ac_ext
7207 /* The mapping between symbol names and symbols. */
7208 const struct {
7209 const char *name;
7210 void *address;
7212 lt__PROGRAM__LTX_preloaded_symbols[] =
7214 { "@PROGRAM@", (void *) 0 },
7215 _LT_EOF
7216 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7217 cat <<\_LT_EOF >> conftest.$ac_ext
7218 {0, (void *) 0}
7221 /* This works around a problem in FreeBSD linker */
7222 #ifdef FREEBSD_WORKAROUND
7223 static const void *lt_preloaded_setup() {
7224 return lt__PROGRAM__LTX_preloaded_symbols;
7226 #endif
7228 #ifdef __cplusplus
7230 #endif
7231 _LT_EOF
7232 # Now try linking the two files.
7233 mv conftest.$ac_objext conftstm.$ac_objext
7234 lt_save_LIBS="$LIBS"
7235 lt_save_CFLAGS="$CFLAGS"
7236 LIBS="conftstm.$ac_objext"
7237 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7238 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7239 (eval $ac_link) 2>&5
7240 ac_status=$?
7241 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7242 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7243 pipe_works=yes
7245 LIBS="$lt_save_LIBS"
7246 CFLAGS="$lt_save_CFLAGS"
7247 else
7248 echo "cannot find nm_test_func in $nlist" >&5
7250 else
7251 echo "cannot find nm_test_var in $nlist" >&5
7253 else
7254 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7256 else
7257 echo "$progname: failed program was:" >&5
7258 cat conftest.$ac_ext >&5
7260 rm -rf conftest* conftst*
7262 # Do not use the global_symbol_pipe unless it works.
7263 if test "$pipe_works" = yes; then
7264 break
7265 else
7266 lt_cv_sys_global_symbol_pipe=
7268 done
7272 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7273 lt_cv_sys_global_symbol_to_cdecl=
7275 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7277 $as_echo "failed" >&6; }
7278 else
7279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7280 $as_echo "ok" >&6; }
7304 # Check whether --enable-libtool-lock was given.
7305 if test "${enable_libtool_lock+set}" = set; then :
7306 enableval=$enable_libtool_lock;
7309 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7311 # Some flags need to be propagated to the compiler or linker for good
7312 # libtool support.
7313 case $host in
7314 ia64-*-hpux*)
7315 # Find out which ABI we are using.
7316 echo 'int i;' > conftest.$ac_ext
7317 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7318 (eval $ac_compile) 2>&5
7319 ac_status=$?
7320 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7321 test $ac_status = 0; }; then
7322 case `/usr/bin/file conftest.$ac_objext` in
7323 *ELF-32*)
7324 HPUX_IA64_MODE="32"
7326 *ELF-64*)
7327 HPUX_IA64_MODE="64"
7329 esac
7331 rm -rf conftest*
7333 *-*-irix6*)
7334 # Find out which ABI we are using.
7335 echo '#line 7335 "configure"' > conftest.$ac_ext
7336 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7337 (eval $ac_compile) 2>&5
7338 ac_status=$?
7339 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7340 test $ac_status = 0; }; then
7341 if test "$lt_cv_prog_gnu_ld" = yes; then
7342 case `/usr/bin/file conftest.$ac_objext` in
7343 *32-bit*)
7344 LD="${LD-ld} -melf32bsmip"
7346 *N32*)
7347 LD="${LD-ld} -melf32bmipn32"
7349 *64-bit*)
7350 LD="${LD-ld} -melf64bmip"
7352 esac
7353 else
7354 case `/usr/bin/file conftest.$ac_objext` in
7355 *32-bit*)
7356 LD="${LD-ld} -32"
7358 *N32*)
7359 LD="${LD-ld} -n32"
7361 *64-bit*)
7362 LD="${LD-ld} -64"
7364 esac
7367 rm -rf conftest*
7370 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7371 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7372 # Find out which ABI we are using.
7373 echo 'int i;' > conftest.$ac_ext
7374 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7375 (eval $ac_compile) 2>&5
7376 ac_status=$?
7377 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7378 test $ac_status = 0; }; then
7379 case `/usr/bin/file conftest.o` in
7380 *32-bit*)
7381 case $host in
7382 x86_64-*kfreebsd*-gnu)
7383 LD="${LD-ld} -m elf_i386_fbsd"
7385 x86_64-*linux*)
7386 LD="${LD-ld} -m elf_i386"
7388 ppc64-*linux*|powerpc64-*linux*)
7389 LD="${LD-ld} -m elf32ppclinux"
7391 s390x-*linux*)
7392 LD="${LD-ld} -m elf_s390"
7394 sparc64-*linux*)
7395 LD="${LD-ld} -m elf32_sparc"
7397 esac
7399 *64-bit*)
7400 case $host in
7401 x86_64-*kfreebsd*-gnu)
7402 LD="${LD-ld} -m elf_x86_64_fbsd"
7404 x86_64-*linux*)
7405 LD="${LD-ld} -m elf_x86_64"
7407 ppc*-*linux*|powerpc*-*linux*)
7408 LD="${LD-ld} -m elf64ppc"
7410 s390*-*linux*|s390*-*tpf*)
7411 LD="${LD-ld} -m elf64_s390"
7413 sparc*-*linux*)
7414 LD="${LD-ld} -m elf64_sparc"
7416 esac
7418 esac
7420 rm -rf conftest*
7423 *-*-sco3.2v5*)
7424 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7425 SAVE_CFLAGS="$CFLAGS"
7426 CFLAGS="$CFLAGS -belf"
7427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7428 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7429 if test "${lt_cv_cc_needs_belf+set}" = set; then :
7430 $as_echo_n "(cached) " >&6
7431 else
7432 ac_ext=c
7433 ac_cpp='$CPP $CPPFLAGS'
7434 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7435 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7436 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7439 /* end confdefs.h. */
7442 main ()
7446 return 0;
7448 _ACEOF
7449 if ac_fn_c_try_link "$LINENO"; then :
7450 lt_cv_cc_needs_belf=yes
7451 else
7452 lt_cv_cc_needs_belf=no
7454 rm -f core conftest.err conftest.$ac_objext \
7455 conftest$ac_exeext conftest.$ac_ext
7456 ac_ext=c
7457 ac_cpp='$CPP $CPPFLAGS'
7458 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7459 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7460 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7464 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7465 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7466 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7467 CFLAGS="$SAVE_CFLAGS"
7470 sparc*-*solaris*)
7471 # Find out which ABI we are using.
7472 echo 'int i;' > conftest.$ac_ext
7473 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7474 (eval $ac_compile) 2>&5
7475 ac_status=$?
7476 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7477 test $ac_status = 0; }; then
7478 case `/usr/bin/file conftest.o` in
7479 *64-bit*)
7480 case $lt_cv_prog_gnu_ld in
7481 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7483 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7484 LD="${LD-ld} -64"
7487 esac
7489 esac
7491 rm -rf conftest*
7493 esac
7495 need_locks="$enable_libtool_lock"
7498 case $host_os in
7499 rhapsody* | darwin*)
7500 if test -n "$ac_tool_prefix"; then
7501 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7502 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7504 $as_echo_n "checking for $ac_word... " >&6; }
7505 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7506 $as_echo_n "(cached) " >&6
7507 else
7508 if test -n "$DSYMUTIL"; then
7509 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7510 else
7511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7512 for as_dir in $PATH
7514 IFS=$as_save_IFS
7515 test -z "$as_dir" && as_dir=.
7516 for ac_exec_ext in '' $ac_executable_extensions; do
7517 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7518 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7520 break 2
7522 done
7523 done
7524 IFS=$as_save_IFS
7528 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7529 if test -n "$DSYMUTIL"; then
7530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7531 $as_echo "$DSYMUTIL" >&6; }
7532 else
7533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7534 $as_echo "no" >&6; }
7539 if test -z "$ac_cv_prog_DSYMUTIL"; then
7540 ac_ct_DSYMUTIL=$DSYMUTIL
7541 # Extract the first word of "dsymutil", so it can be a program name with args.
7542 set dummy dsymutil; ac_word=$2
7543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7544 $as_echo_n "checking for $ac_word... " >&6; }
7545 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7546 $as_echo_n "(cached) " >&6
7547 else
7548 if test -n "$ac_ct_DSYMUTIL"; then
7549 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7550 else
7551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7552 for as_dir in $PATH
7554 IFS=$as_save_IFS
7555 test -z "$as_dir" && as_dir=.
7556 for ac_exec_ext in '' $ac_executable_extensions; do
7557 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7558 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7560 break 2
7562 done
7563 done
7564 IFS=$as_save_IFS
7568 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7569 if test -n "$ac_ct_DSYMUTIL"; then
7570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7571 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7572 else
7573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7574 $as_echo "no" >&6; }
7577 if test "x$ac_ct_DSYMUTIL" = x; then
7578 DSYMUTIL=":"
7579 else
7580 case $cross_compiling:$ac_tool_warned in
7581 yes:)
7582 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7583 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7584 ac_tool_warned=yes ;;
7585 esac
7586 DSYMUTIL=$ac_ct_DSYMUTIL
7588 else
7589 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7592 if test -n "$ac_tool_prefix"; then
7593 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7594 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7596 $as_echo_n "checking for $ac_word... " >&6; }
7597 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7598 $as_echo_n "(cached) " >&6
7599 else
7600 if test -n "$NMEDIT"; then
7601 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7602 else
7603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7604 for as_dir in $PATH
7606 IFS=$as_save_IFS
7607 test -z "$as_dir" && as_dir=.
7608 for ac_exec_ext in '' $ac_executable_extensions; do
7609 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7610 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7612 break 2
7614 done
7615 done
7616 IFS=$as_save_IFS
7620 NMEDIT=$ac_cv_prog_NMEDIT
7621 if test -n "$NMEDIT"; then
7622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7623 $as_echo "$NMEDIT" >&6; }
7624 else
7625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7626 $as_echo "no" >&6; }
7631 if test -z "$ac_cv_prog_NMEDIT"; then
7632 ac_ct_NMEDIT=$NMEDIT
7633 # Extract the first word of "nmedit", so it can be a program name with args.
7634 set dummy nmedit; ac_word=$2
7635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7636 $as_echo_n "checking for $ac_word... " >&6; }
7637 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7638 $as_echo_n "(cached) " >&6
7639 else
7640 if test -n "$ac_ct_NMEDIT"; then
7641 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7642 else
7643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7644 for as_dir in $PATH
7646 IFS=$as_save_IFS
7647 test -z "$as_dir" && as_dir=.
7648 for ac_exec_ext in '' $ac_executable_extensions; do
7649 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7650 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7652 break 2
7654 done
7655 done
7656 IFS=$as_save_IFS
7660 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7661 if test -n "$ac_ct_NMEDIT"; then
7662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7663 $as_echo "$ac_ct_NMEDIT" >&6; }
7664 else
7665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7666 $as_echo "no" >&6; }
7669 if test "x$ac_ct_NMEDIT" = x; then
7670 NMEDIT=":"
7671 else
7672 case $cross_compiling:$ac_tool_warned in
7673 yes:)
7674 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7675 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7676 ac_tool_warned=yes ;;
7677 esac
7678 NMEDIT=$ac_ct_NMEDIT
7680 else
7681 NMEDIT="$ac_cv_prog_NMEDIT"
7684 if test -n "$ac_tool_prefix"; then
7685 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7686 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7688 $as_echo_n "checking for $ac_word... " >&6; }
7689 if test "${ac_cv_prog_LIPO+set}" = set; then :
7690 $as_echo_n "(cached) " >&6
7691 else
7692 if test -n "$LIPO"; then
7693 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7694 else
7695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7696 for as_dir in $PATH
7698 IFS=$as_save_IFS
7699 test -z "$as_dir" && as_dir=.
7700 for ac_exec_ext in '' $ac_executable_extensions; do
7701 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7702 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7704 break 2
7706 done
7707 done
7708 IFS=$as_save_IFS
7712 LIPO=$ac_cv_prog_LIPO
7713 if test -n "$LIPO"; then
7714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7715 $as_echo "$LIPO" >&6; }
7716 else
7717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7718 $as_echo "no" >&6; }
7723 if test -z "$ac_cv_prog_LIPO"; then
7724 ac_ct_LIPO=$LIPO
7725 # Extract the first word of "lipo", so it can be a program name with args.
7726 set dummy lipo; ac_word=$2
7727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7728 $as_echo_n "checking for $ac_word... " >&6; }
7729 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7730 $as_echo_n "(cached) " >&6
7731 else
7732 if test -n "$ac_ct_LIPO"; then
7733 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7734 else
7735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7736 for as_dir in $PATH
7738 IFS=$as_save_IFS
7739 test -z "$as_dir" && as_dir=.
7740 for ac_exec_ext in '' $ac_executable_extensions; do
7741 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7742 ac_cv_prog_ac_ct_LIPO="lipo"
7743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7744 break 2
7746 done
7747 done
7748 IFS=$as_save_IFS
7752 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7753 if test -n "$ac_ct_LIPO"; then
7754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7755 $as_echo "$ac_ct_LIPO" >&6; }
7756 else
7757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7758 $as_echo "no" >&6; }
7761 if test "x$ac_ct_LIPO" = x; then
7762 LIPO=":"
7763 else
7764 case $cross_compiling:$ac_tool_warned in
7765 yes:)
7766 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7767 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7768 ac_tool_warned=yes ;;
7769 esac
7770 LIPO=$ac_ct_LIPO
7772 else
7773 LIPO="$ac_cv_prog_LIPO"
7776 if test -n "$ac_tool_prefix"; then
7777 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7778 set dummy ${ac_tool_prefix}otool; ac_word=$2
7779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7780 $as_echo_n "checking for $ac_word... " >&6; }
7781 if test "${ac_cv_prog_OTOOL+set}" = set; then :
7782 $as_echo_n "(cached) " >&6
7783 else
7784 if test -n "$OTOOL"; then
7785 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7786 else
7787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7788 for as_dir in $PATH
7790 IFS=$as_save_IFS
7791 test -z "$as_dir" && as_dir=.
7792 for ac_exec_ext in '' $ac_executable_extensions; do
7793 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7794 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7796 break 2
7798 done
7799 done
7800 IFS=$as_save_IFS
7804 OTOOL=$ac_cv_prog_OTOOL
7805 if test -n "$OTOOL"; then
7806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7807 $as_echo "$OTOOL" >&6; }
7808 else
7809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7810 $as_echo "no" >&6; }
7815 if test -z "$ac_cv_prog_OTOOL"; then
7816 ac_ct_OTOOL=$OTOOL
7817 # Extract the first word of "otool", so it can be a program name with args.
7818 set dummy otool; ac_word=$2
7819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7820 $as_echo_n "checking for $ac_word... " >&6; }
7821 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7822 $as_echo_n "(cached) " >&6
7823 else
7824 if test -n "$ac_ct_OTOOL"; then
7825 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7826 else
7827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7828 for as_dir in $PATH
7830 IFS=$as_save_IFS
7831 test -z "$as_dir" && as_dir=.
7832 for ac_exec_ext in '' $ac_executable_extensions; do
7833 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7834 ac_cv_prog_ac_ct_OTOOL="otool"
7835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7836 break 2
7838 done
7839 done
7840 IFS=$as_save_IFS
7844 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7845 if test -n "$ac_ct_OTOOL"; then
7846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7847 $as_echo "$ac_ct_OTOOL" >&6; }
7848 else
7849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7850 $as_echo "no" >&6; }
7853 if test "x$ac_ct_OTOOL" = x; then
7854 OTOOL=":"
7855 else
7856 case $cross_compiling:$ac_tool_warned in
7857 yes:)
7858 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7859 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7860 ac_tool_warned=yes ;;
7861 esac
7862 OTOOL=$ac_ct_OTOOL
7864 else
7865 OTOOL="$ac_cv_prog_OTOOL"
7868 if test -n "$ac_tool_prefix"; then
7869 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7870 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7872 $as_echo_n "checking for $ac_word... " >&6; }
7873 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7874 $as_echo_n "(cached) " >&6
7875 else
7876 if test -n "$OTOOL64"; then
7877 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7878 else
7879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7880 for as_dir in $PATH
7882 IFS=$as_save_IFS
7883 test -z "$as_dir" && as_dir=.
7884 for ac_exec_ext in '' $ac_executable_extensions; do
7885 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7886 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7888 break 2
7890 done
7891 done
7892 IFS=$as_save_IFS
7896 OTOOL64=$ac_cv_prog_OTOOL64
7897 if test -n "$OTOOL64"; then
7898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7899 $as_echo "$OTOOL64" >&6; }
7900 else
7901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7902 $as_echo "no" >&6; }
7907 if test -z "$ac_cv_prog_OTOOL64"; then
7908 ac_ct_OTOOL64=$OTOOL64
7909 # Extract the first word of "otool64", so it can be a program name with args.
7910 set dummy otool64; ac_word=$2
7911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7912 $as_echo_n "checking for $ac_word... " >&6; }
7913 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7914 $as_echo_n "(cached) " >&6
7915 else
7916 if test -n "$ac_ct_OTOOL64"; then
7917 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7918 else
7919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7920 for as_dir in $PATH
7922 IFS=$as_save_IFS
7923 test -z "$as_dir" && as_dir=.
7924 for ac_exec_ext in '' $ac_executable_extensions; do
7925 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7926 ac_cv_prog_ac_ct_OTOOL64="otool64"
7927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7928 break 2
7930 done
7931 done
7932 IFS=$as_save_IFS
7936 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7937 if test -n "$ac_ct_OTOOL64"; then
7938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7939 $as_echo "$ac_ct_OTOOL64" >&6; }
7940 else
7941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7942 $as_echo "no" >&6; }
7945 if test "x$ac_ct_OTOOL64" = x; then
7946 OTOOL64=":"
7947 else
7948 case $cross_compiling:$ac_tool_warned in
7949 yes:)
7950 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7951 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7952 ac_tool_warned=yes ;;
7953 esac
7954 OTOOL64=$ac_ct_OTOOL64
7956 else
7957 OTOOL64="$ac_cv_prog_OTOOL64"
7986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7987 $as_echo_n "checking for -single_module linker flag... " >&6; }
7988 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7989 $as_echo_n "(cached) " >&6
7990 else
7991 lt_cv_apple_cc_single_mod=no
7992 if test -z "${LT_MULTI_MODULE}"; then
7993 # By default we will add the -single_module flag. You can override
7994 # by either setting the environment variable LT_MULTI_MODULE
7995 # non-empty at configure time, or by adding -multi_module to the
7996 # link flags.
7997 rm -rf libconftest.dylib*
7998 echo "int foo(void){return 1;}" > conftest.c
7999 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8000 -dynamiclib -Wl,-single_module conftest.c" >&5
8001 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8002 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8003 _lt_result=$?
8004 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8005 lt_cv_apple_cc_single_mod=yes
8006 else
8007 cat conftest.err >&5
8009 rm -rf libconftest.dylib*
8010 rm -f conftest.*
8013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8014 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8016 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8017 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
8018 $as_echo_n "(cached) " >&6
8019 else
8020 lt_cv_ld_exported_symbols_list=no
8021 save_LDFLAGS=$LDFLAGS
8022 echo "_main" > conftest.sym
8023 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8025 /* end confdefs.h. */
8028 main ()
8032 return 0;
8034 _ACEOF
8035 if ac_fn_c_try_link "$LINENO"; then :
8036 lt_cv_ld_exported_symbols_list=yes
8037 else
8038 lt_cv_ld_exported_symbols_list=no
8040 rm -f core conftest.err conftest.$ac_objext \
8041 conftest$ac_exeext conftest.$ac_ext
8042 LDFLAGS="$save_LDFLAGS"
8045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8046 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8047 case $host_os in
8048 rhapsody* | darwin1.[012])
8049 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8050 darwin1.*)
8051 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8052 darwin*) # darwin 5.x on
8053 # if running on 10.5 or later, the deployment target defaults
8054 # to the OS version, if on x86, and 10.4, the deployment
8055 # target defaults to 10.4. Don't you love it?
8056 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8057 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8058 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8059 10.[012]*)
8060 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8061 10.*)
8062 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8063 esac
8065 esac
8066 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8067 _lt_dar_single_mod='$single_module'
8069 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8070 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8071 else
8072 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8074 if test "$DSYMUTIL" != ":"; then
8075 _lt_dsymutil='~$DSYMUTIL $lib || :'
8076 else
8077 _lt_dsymutil=
8080 esac
8082 for ac_header in dlfcn.h
8083 do :
8084 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8086 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
8087 cat >>confdefs.h <<_ACEOF
8088 #define HAVE_DLFCN_H 1
8089 _ACEOF
8093 done
8097 # Set options
8101 enable_dlopen=no
8104 enable_win32_dll=no
8107 # Check whether --enable-shared was given.
8108 if test "${enable_shared+set}" = set; then :
8109 enableval=$enable_shared; p=${PACKAGE-default}
8110 case $enableval in
8111 yes) enable_shared=yes ;;
8112 no) enable_shared=no ;;
8114 enable_shared=no
8115 # Look at the argument we got. We use all the common list separators.
8116 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8117 for pkg in $enableval; do
8118 IFS="$lt_save_ifs"
8119 if test "X$pkg" = "X$p"; then
8120 enable_shared=yes
8122 done
8123 IFS="$lt_save_ifs"
8125 esac
8126 else
8127 enable_shared=yes
8138 # Check whether --enable-static was given.
8139 if test "${enable_static+set}" = set; then :
8140 enableval=$enable_static; p=${PACKAGE-default}
8141 case $enableval in
8142 yes) enable_static=yes ;;
8143 no) enable_static=no ;;
8145 enable_static=no
8146 # Look at the argument we got. We use all the common list separators.
8147 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8148 for pkg in $enableval; do
8149 IFS="$lt_save_ifs"
8150 if test "X$pkg" = "X$p"; then
8151 enable_static=yes
8153 done
8154 IFS="$lt_save_ifs"
8156 esac
8157 else
8158 enable_static=yes
8170 # Check whether --with-pic was given.
8171 if test "${with_pic+set}" = set; then :
8172 withval=$with_pic; pic_mode="$withval"
8173 else
8174 pic_mode=default
8178 test -z "$pic_mode" && pic_mode=default
8186 # Check whether --enable-fast-install was given.
8187 if test "${enable_fast_install+set}" = set; then :
8188 enableval=$enable_fast_install; p=${PACKAGE-default}
8189 case $enableval in
8190 yes) enable_fast_install=yes ;;
8191 no) enable_fast_install=no ;;
8193 enable_fast_install=no
8194 # Look at the argument we got. We use all the common list separators.
8195 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8196 for pkg in $enableval; do
8197 IFS="$lt_save_ifs"
8198 if test "X$pkg" = "X$p"; then
8199 enable_fast_install=yes
8201 done
8202 IFS="$lt_save_ifs"
8204 esac
8205 else
8206 enable_fast_install=yes
8219 # This can be used to rebuild libtool when needed
8220 LIBTOOL_DEPS="$ltmain"
8222 # Always use our own libtool.
8223 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8249 test -z "$LN_S" && LN_S="ln -s"
8264 if test -n "${ZSH_VERSION+set}" ; then
8265 setopt NO_GLOB_SUBST
8268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8269 $as_echo_n "checking for objdir... " >&6; }
8270 if test "${lt_cv_objdir+set}" = set; then :
8271 $as_echo_n "(cached) " >&6
8272 else
8273 rm -f .libs 2>/dev/null
8274 mkdir .libs 2>/dev/null
8275 if test -d .libs; then
8276 lt_cv_objdir=.libs
8277 else
8278 # MS-DOS does not allow filenames that begin with a dot.
8279 lt_cv_objdir=_libs
8281 rmdir .libs 2>/dev/null
8283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8284 $as_echo "$lt_cv_objdir" >&6; }
8285 objdir=$lt_cv_objdir
8291 cat >>confdefs.h <<_ACEOF
8292 #define LT_OBJDIR "$lt_cv_objdir/"
8293 _ACEOF
8311 case $host_os in
8312 aix3*)
8313 # AIX sometimes has problems with the GCC collect2 program. For some
8314 # reason, if we set the COLLECT_NAMES environment variable, the problems
8315 # vanish in a puff of smoke.
8316 if test "X${COLLECT_NAMES+set}" != Xset; then
8317 COLLECT_NAMES=
8318 export COLLECT_NAMES
8321 esac
8323 # Sed substitution that helps us do robust quoting. It backslashifies
8324 # metacharacters that are still active within double-quoted strings.
8325 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8327 # Same as above, but do not quote variable references.
8328 double_quote_subst='s/\(["`\\]\)/\\\1/g'
8330 # Sed substitution to delay expansion of an escaped shell variable in a
8331 # double_quote_subst'ed string.
8332 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8334 # Sed substitution to delay expansion of an escaped single quote.
8335 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8337 # Sed substitution to avoid accidental globbing in evaled expressions
8338 no_glob_subst='s/\*/\\\*/g'
8340 # Global variables:
8341 ofile=libtool
8342 can_build_shared=yes
8344 # All known linkers require a `.a' archive for static linking (except MSVC,
8345 # which needs '.lib').
8346 libext=a
8348 with_gnu_ld="$lt_cv_prog_gnu_ld"
8350 old_CC="$CC"
8351 old_CFLAGS="$CFLAGS"
8353 # Set sane defaults for various variables
8354 test -z "$CC" && CC=cc
8355 test -z "$LTCC" && LTCC=$CC
8356 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8357 test -z "$LD" && LD=ld
8358 test -z "$ac_objext" && ac_objext=o
8360 for cc_temp in $compiler""; do
8361 case $cc_temp in
8362 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8363 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8364 \-*) ;;
8365 *) break;;
8366 esac
8367 done
8368 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8371 # Only perform the check for file, if the check method requires it
8372 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8373 case $deplibs_check_method in
8374 file_magic*)
8375 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8377 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8378 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8379 $as_echo_n "(cached) " >&6
8380 else
8381 case $MAGIC_CMD in
8382 [\\/*] | ?:[\\/]*)
8383 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8386 lt_save_MAGIC_CMD="$MAGIC_CMD"
8387 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8388 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8389 for ac_dir in $ac_dummy; do
8390 IFS="$lt_save_ifs"
8391 test -z "$ac_dir" && ac_dir=.
8392 if test -f $ac_dir/${ac_tool_prefix}file; then
8393 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8394 if test -n "$file_magic_test_file"; then
8395 case $deplibs_check_method in
8396 "file_magic "*)
8397 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8398 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8399 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8400 $EGREP "$file_magic_regex" > /dev/null; then
8402 else
8403 cat <<_LT_EOF 1>&2
8405 *** Warning: the command libtool uses to detect shared libraries,
8406 *** $file_magic_cmd, produces output that libtool cannot recognize.
8407 *** The result is that libtool may fail to recognize shared libraries
8408 *** as such. This will affect the creation of libtool libraries that
8409 *** depend on shared libraries, but programs linked with such libtool
8410 *** libraries will work regardless of this problem. Nevertheless, you
8411 *** may want to report the problem to your system manager and/or to
8412 *** bug-libtool@gnu.org
8414 _LT_EOF
8415 fi ;;
8416 esac
8418 break
8420 done
8421 IFS="$lt_save_ifs"
8422 MAGIC_CMD="$lt_save_MAGIC_CMD"
8424 esac
8427 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8428 if test -n "$MAGIC_CMD"; then
8429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8430 $as_echo "$MAGIC_CMD" >&6; }
8431 else
8432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8433 $as_echo "no" >&6; }
8440 if test -z "$lt_cv_path_MAGIC_CMD"; then
8441 if test -n "$ac_tool_prefix"; then
8442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8443 $as_echo_n "checking for file... " >&6; }
8444 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8445 $as_echo_n "(cached) " >&6
8446 else
8447 case $MAGIC_CMD in
8448 [\\/*] | ?:[\\/]*)
8449 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8452 lt_save_MAGIC_CMD="$MAGIC_CMD"
8453 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8454 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8455 for ac_dir in $ac_dummy; do
8456 IFS="$lt_save_ifs"
8457 test -z "$ac_dir" && ac_dir=.
8458 if test -f $ac_dir/file; then
8459 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8460 if test -n "$file_magic_test_file"; then
8461 case $deplibs_check_method in
8462 "file_magic "*)
8463 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8464 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8465 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8466 $EGREP "$file_magic_regex" > /dev/null; then
8468 else
8469 cat <<_LT_EOF 1>&2
8471 *** Warning: the command libtool uses to detect shared libraries,
8472 *** $file_magic_cmd, produces output that libtool cannot recognize.
8473 *** The result is that libtool may fail to recognize shared libraries
8474 *** as such. This will affect the creation of libtool libraries that
8475 *** depend on shared libraries, but programs linked with such libtool
8476 *** libraries will work regardless of this problem. Nevertheless, you
8477 *** may want to report the problem to your system manager and/or to
8478 *** bug-libtool@gnu.org
8480 _LT_EOF
8481 fi ;;
8482 esac
8484 break
8486 done
8487 IFS="$lt_save_ifs"
8488 MAGIC_CMD="$lt_save_MAGIC_CMD"
8490 esac
8493 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8494 if test -n "$MAGIC_CMD"; then
8495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8496 $as_echo "$MAGIC_CMD" >&6; }
8497 else
8498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8499 $as_echo "no" >&6; }
8503 else
8504 MAGIC_CMD=:
8510 esac
8512 # Use C for the default configuration in the libtool script
8514 lt_save_CC="$CC"
8515 ac_ext=c
8516 ac_cpp='$CPP $CPPFLAGS'
8517 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8518 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8519 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8522 # Source file extension for C test sources.
8523 ac_ext=c
8525 # Object file extension for compiled C test sources.
8526 objext=o
8527 objext=$objext
8529 # Code to be used in simple compile tests
8530 lt_simple_compile_test_code="int some_variable = 0;"
8532 # Code to be used in simple link tests
8533 lt_simple_link_test_code='int main(){return(0);}'
8541 # If no C compiler was specified, use CC.
8542 LTCC=${LTCC-"$CC"}
8544 # If no C compiler flags were specified, use CFLAGS.
8545 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8547 # Allow CC to be a program name with arguments.
8548 compiler=$CC
8550 # Save the default compiler, since it gets overwritten when the other
8551 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8552 compiler_DEFAULT=$CC
8554 # save warnings/boilerplate of simple test code
8555 ac_outfile=conftest.$ac_objext
8556 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8557 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8558 _lt_compiler_boilerplate=`cat conftest.err`
8559 $RM conftest*
8561 ac_outfile=conftest.$ac_objext
8562 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8563 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8564 _lt_linker_boilerplate=`cat conftest.err`
8565 $RM -r conftest*
8568 ## CAVEAT EMPTOR:
8569 ## There is no encapsulation within the following macros, do not change
8570 ## the running order or otherwise move them around unless you know exactly
8571 ## what you are doing...
8572 if test -n "$compiler"; then
8574 lt_prog_compiler_no_builtin_flag=
8576 if test "$GCC" = yes; then
8577 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8580 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8581 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8582 $as_echo_n "(cached) " >&6
8583 else
8584 lt_cv_prog_compiler_rtti_exceptions=no
8585 ac_outfile=conftest.$ac_objext
8586 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8587 lt_compiler_flag="-fno-rtti -fno-exceptions"
8588 # Insert the option either (1) after the last *FLAGS variable, or
8589 # (2) before a word containing "conftest.", or (3) at the end.
8590 # Note that $ac_compile itself does not contain backslashes and begins
8591 # with a dollar sign (not a hyphen), so the echo should work correctly.
8592 # The option is referenced via a variable to avoid confusing sed.
8593 lt_compile=`echo "$ac_compile" | $SED \
8594 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8595 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8596 -e 's:$: $lt_compiler_flag:'`
8597 (eval echo "\"\$as_me:8597: $lt_compile\"" >&5)
8598 (eval "$lt_compile" 2>conftest.err)
8599 ac_status=$?
8600 cat conftest.err >&5
8601 echo "$as_me:8601: \$? = $ac_status" >&5
8602 if (exit $ac_status) && test -s "$ac_outfile"; then
8603 # The compiler can only warn and ignore the option if not recognized
8604 # So say no if there are warnings other than the usual output.
8605 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8606 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8607 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8608 lt_cv_prog_compiler_rtti_exceptions=yes
8611 $RM conftest*
8614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8615 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8617 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8618 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8619 else
8630 lt_prog_compiler_wl=
8631 lt_prog_compiler_pic=
8632 lt_prog_compiler_static=
8634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8635 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8637 if test "$GCC" = yes; then
8638 lt_prog_compiler_wl='-Wl,'
8639 lt_prog_compiler_static='-static'
8641 case $host_os in
8642 aix*)
8643 # All AIX code is PIC.
8644 if test "$host_cpu" = ia64; then
8645 # AIX 5 now supports IA64 processor
8646 lt_prog_compiler_static='-Bstatic'
8650 amigaos*)
8651 case $host_cpu in
8652 powerpc)
8653 # see comment about AmigaOS4 .so support
8654 lt_prog_compiler_pic='-fPIC'
8656 m68k)
8657 # FIXME: we need at least 68020 code to build shared libraries, but
8658 # adding the `-m68020' flag to GCC prevents building anything better,
8659 # like `-m68040'.
8660 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8662 esac
8665 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8666 # PIC is the default for these OSes.
8669 mingw* | cygwin* | pw32* | os2* | cegcc*)
8670 # This hack is so that the source file can tell whether it is being
8671 # built for inclusion in a dll (and should export symbols for example).
8672 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8673 # (--disable-auto-import) libraries
8674 lt_prog_compiler_pic='-DDLL_EXPORT'
8677 darwin* | rhapsody*)
8678 # PIC is the default on this platform
8679 # Common symbols not allowed in MH_DYLIB files
8680 lt_prog_compiler_pic='-fno-common'
8683 hpux*)
8684 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8685 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8686 # sets the default TLS model and affects inlining.
8687 case $host_cpu in
8688 hppa*64*)
8689 # +Z the default
8692 lt_prog_compiler_pic='-fPIC'
8694 esac
8697 interix[3-9]*)
8698 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8699 # Instead, we relocate shared libraries at runtime.
8702 msdosdjgpp*)
8703 # Just because we use GCC doesn't mean we suddenly get shared libraries
8704 # on systems that don't support them.
8705 lt_prog_compiler_can_build_shared=no
8706 enable_shared=no
8709 *nto* | *qnx*)
8710 # QNX uses GNU C++, but need to define -shared option too, otherwise
8711 # it will coredump.
8712 lt_prog_compiler_pic='-fPIC -shared'
8715 sysv4*MP*)
8716 if test -d /usr/nec; then
8717 lt_prog_compiler_pic=-Kconform_pic
8722 lt_prog_compiler_pic='-fPIC'
8724 esac
8725 else
8726 # PORTME Check for flag to pass linker flags through the system compiler.
8727 case $host_os in
8728 aix*)
8729 lt_prog_compiler_wl='-Wl,'
8730 if test "$host_cpu" = ia64; then
8731 # AIX 5 now supports IA64 processor
8732 lt_prog_compiler_static='-Bstatic'
8733 else
8734 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8738 mingw* | cygwin* | pw32* | os2* | cegcc*)
8739 # This hack is so that the source file can tell whether it is being
8740 # built for inclusion in a dll (and should export symbols for example).
8741 lt_prog_compiler_pic='-DDLL_EXPORT'
8744 hpux9* | hpux10* | hpux11*)
8745 lt_prog_compiler_wl='-Wl,'
8746 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8747 # not for PA HP-UX.
8748 case $host_cpu in
8749 hppa*64*|ia64*)
8750 # +Z the default
8753 lt_prog_compiler_pic='+Z'
8755 esac
8756 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8757 lt_prog_compiler_static='${wl}-a ${wl}archive'
8760 irix5* | irix6* | nonstopux*)
8761 lt_prog_compiler_wl='-Wl,'
8762 # PIC (with -KPIC) is the default.
8763 lt_prog_compiler_static='-non_shared'
8766 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8767 case $cc_basename in
8768 # old Intel for x86_64 which still supported -KPIC.
8769 ecc*)
8770 lt_prog_compiler_wl='-Wl,'
8771 lt_prog_compiler_pic='-KPIC'
8772 lt_prog_compiler_static='-static'
8774 # icc used to be incompatible with GCC.
8775 # ICC 10 doesn't accept -KPIC any more.
8776 icc* | ifort*)
8777 lt_prog_compiler_wl='-Wl,'
8778 lt_prog_compiler_pic='-fPIC'
8779 lt_prog_compiler_static='-static'
8781 # Lahey Fortran 8.1.
8782 lf95*)
8783 lt_prog_compiler_wl='-Wl,'
8784 lt_prog_compiler_pic='--shared'
8785 lt_prog_compiler_static='--static'
8787 pgcc* | pgf77* | pgf90* | pgf95*)
8788 # Portland Group compilers (*not* the Pentium gcc compiler,
8789 # which looks to be a dead project)
8790 lt_prog_compiler_wl='-Wl,'
8791 lt_prog_compiler_pic='-fpic'
8792 lt_prog_compiler_static='-Bstatic'
8794 ccc*)
8795 lt_prog_compiler_wl='-Wl,'
8796 # All Alpha code is PIC.
8797 lt_prog_compiler_static='-non_shared'
8799 xl*)
8800 # IBM XL C 8.0/Fortran 10.1 on PPC
8801 lt_prog_compiler_wl='-Wl,'
8802 lt_prog_compiler_pic='-qpic'
8803 lt_prog_compiler_static='-qstaticlink'
8806 case `$CC -V 2>&1 | sed 5q` in
8807 *Sun\ C*)
8808 # Sun C 5.9
8809 lt_prog_compiler_pic='-KPIC'
8810 lt_prog_compiler_static='-Bstatic'
8811 lt_prog_compiler_wl='-Wl,'
8813 *Sun\ F*)
8814 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8815 lt_prog_compiler_pic='-KPIC'
8816 lt_prog_compiler_static='-Bstatic'
8817 lt_prog_compiler_wl=''
8819 esac
8821 esac
8824 newsos6)
8825 lt_prog_compiler_pic='-KPIC'
8826 lt_prog_compiler_static='-Bstatic'
8829 *nto* | *qnx*)
8830 # QNX uses GNU C++, but need to define -shared option too, otherwise
8831 # it will coredump.
8832 lt_prog_compiler_pic='-fPIC -shared'
8835 osf3* | osf4* | osf5*)
8836 lt_prog_compiler_wl='-Wl,'
8837 # All OSF/1 code is PIC.
8838 lt_prog_compiler_static='-non_shared'
8841 rdos*)
8842 lt_prog_compiler_static='-non_shared'
8845 solaris*)
8846 lt_prog_compiler_pic='-KPIC'
8847 lt_prog_compiler_static='-Bstatic'
8848 case $cc_basename in
8849 f77* | f90* | f95*)
8850 lt_prog_compiler_wl='-Qoption ld ';;
8852 lt_prog_compiler_wl='-Wl,';;
8853 esac
8856 sunos4*)
8857 lt_prog_compiler_wl='-Qoption ld '
8858 lt_prog_compiler_pic='-PIC'
8859 lt_prog_compiler_static='-Bstatic'
8862 sysv4 | sysv4.2uw2* | sysv4.3*)
8863 lt_prog_compiler_wl='-Wl,'
8864 lt_prog_compiler_pic='-KPIC'
8865 lt_prog_compiler_static='-Bstatic'
8868 sysv4*MP*)
8869 if test -d /usr/nec ;then
8870 lt_prog_compiler_pic='-Kconform_pic'
8871 lt_prog_compiler_static='-Bstatic'
8875 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8876 lt_prog_compiler_wl='-Wl,'
8877 lt_prog_compiler_pic='-KPIC'
8878 lt_prog_compiler_static='-Bstatic'
8881 unicos*)
8882 lt_prog_compiler_wl='-Wl,'
8883 lt_prog_compiler_can_build_shared=no
8886 uts4*)
8887 lt_prog_compiler_pic='-pic'
8888 lt_prog_compiler_static='-Bstatic'
8892 lt_prog_compiler_can_build_shared=no
8894 esac
8897 case $host_os in
8898 # For platforms which do not support PIC, -DPIC is meaningless:
8899 *djgpp*)
8900 lt_prog_compiler_pic=
8903 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8905 esac
8906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8907 $as_echo "$lt_prog_compiler_pic" >&6; }
8915 # Check to make sure the PIC flag actually works.
8917 if test -n "$lt_prog_compiler_pic"; then
8918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8919 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8920 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8921 $as_echo_n "(cached) " >&6
8922 else
8923 lt_cv_prog_compiler_pic_works=no
8924 ac_outfile=conftest.$ac_objext
8925 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8926 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8927 # Insert the option either (1) after the last *FLAGS variable, or
8928 # (2) before a word containing "conftest.", or (3) at the end.
8929 # Note that $ac_compile itself does not contain backslashes and begins
8930 # with a dollar sign (not a hyphen), so the echo should work correctly.
8931 # The option is referenced via a variable to avoid confusing sed.
8932 lt_compile=`echo "$ac_compile" | $SED \
8933 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8934 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8935 -e 's:$: $lt_compiler_flag:'`
8936 (eval echo "\"\$as_me:8936: $lt_compile\"" >&5)
8937 (eval "$lt_compile" 2>conftest.err)
8938 ac_status=$?
8939 cat conftest.err >&5
8940 echo "$as_me:8940: \$? = $ac_status" >&5
8941 if (exit $ac_status) && test -s "$ac_outfile"; then
8942 # The compiler can only warn and ignore the option if not recognized
8943 # So say no if there are warnings other than the usual output.
8944 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8945 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8946 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8947 lt_cv_prog_compiler_pic_works=yes
8950 $RM conftest*
8953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8954 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8956 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8957 case $lt_prog_compiler_pic in
8958 "" | " "*) ;;
8959 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8960 esac
8961 else
8962 lt_prog_compiler_pic=
8963 lt_prog_compiler_can_build_shared=no
8974 # Check to make sure the static flag actually works.
8976 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8978 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8979 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8980 $as_echo_n "(cached) " >&6
8981 else
8982 lt_cv_prog_compiler_static_works=no
8983 save_LDFLAGS="$LDFLAGS"
8984 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8985 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8986 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8987 # The linker can only warn and ignore the option if not recognized
8988 # So say no if there are warnings
8989 if test -s conftest.err; then
8990 # Append any errors to the config.log.
8991 cat conftest.err 1>&5
8992 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8993 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8994 if diff conftest.exp conftest.er2 >/dev/null; then
8995 lt_cv_prog_compiler_static_works=yes
8997 else
8998 lt_cv_prog_compiler_static_works=yes
9001 $RM -r conftest*
9002 LDFLAGS="$save_LDFLAGS"
9005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9006 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9008 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9010 else
9011 lt_prog_compiler_static=
9020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9021 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9022 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9023 $as_echo_n "(cached) " >&6
9024 else
9025 lt_cv_prog_compiler_c_o=no
9026 $RM -r conftest 2>/dev/null
9027 mkdir conftest
9028 cd conftest
9029 mkdir out
9030 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9032 lt_compiler_flag="-o out/conftest2.$ac_objext"
9033 # Insert the option either (1) after the last *FLAGS variable, or
9034 # (2) before a word containing "conftest.", or (3) at the end.
9035 # Note that $ac_compile itself does not contain backslashes and begins
9036 # with a dollar sign (not a hyphen), so the echo should work correctly.
9037 lt_compile=`echo "$ac_compile" | $SED \
9038 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9039 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9040 -e 's:$: $lt_compiler_flag:'`
9041 (eval echo "\"\$as_me:9041: $lt_compile\"" >&5)
9042 (eval "$lt_compile" 2>out/conftest.err)
9043 ac_status=$?
9044 cat out/conftest.err >&5
9045 echo "$as_me:9045: \$? = $ac_status" >&5
9046 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9047 then
9048 # The compiler can only warn and ignore the option if not recognized
9049 # So say no if there are warnings
9050 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9051 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9052 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9053 lt_cv_prog_compiler_c_o=yes
9056 chmod u+w . 2>&5
9057 $RM conftest*
9058 # SGI C++ compiler will create directory out/ii_files/ for
9059 # template instantiation
9060 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9061 $RM out/* && rmdir out
9062 cd ..
9063 $RM -r conftest
9064 $RM conftest*
9067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9068 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9076 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9077 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9078 $as_echo_n "(cached) " >&6
9079 else
9080 lt_cv_prog_compiler_c_o=no
9081 $RM -r conftest 2>/dev/null
9082 mkdir conftest
9083 cd conftest
9084 mkdir out
9085 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9087 lt_compiler_flag="-o out/conftest2.$ac_objext"
9088 # Insert the option either (1) after the last *FLAGS variable, or
9089 # (2) before a word containing "conftest.", or (3) at the end.
9090 # Note that $ac_compile itself does not contain backslashes and begins
9091 # with a dollar sign (not a hyphen), so the echo should work correctly.
9092 lt_compile=`echo "$ac_compile" | $SED \
9093 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9094 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9095 -e 's:$: $lt_compiler_flag:'`
9096 (eval echo "\"\$as_me:9096: $lt_compile\"" >&5)
9097 (eval "$lt_compile" 2>out/conftest.err)
9098 ac_status=$?
9099 cat out/conftest.err >&5
9100 echo "$as_me:9100: \$? = $ac_status" >&5
9101 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9102 then
9103 # The compiler can only warn and ignore the option if not recognized
9104 # So say no if there are warnings
9105 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9106 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9107 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9108 lt_cv_prog_compiler_c_o=yes
9111 chmod u+w . 2>&5
9112 $RM conftest*
9113 # SGI C++ compiler will create directory out/ii_files/ for
9114 # template instantiation
9115 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9116 $RM out/* && rmdir out
9117 cd ..
9118 $RM -r conftest
9119 $RM conftest*
9122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9123 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9128 hard_links="nottested"
9129 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9130 # do not overwrite the value of need_locks provided by the user
9131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9132 $as_echo_n "checking if we can lock with hard links... " >&6; }
9133 hard_links=yes
9134 $RM conftest*
9135 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9136 touch conftest.a
9137 ln conftest.a conftest.b 2>&5 || hard_links=no
9138 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9140 $as_echo "$hard_links" >&6; }
9141 if test "$hard_links" = no; then
9142 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9143 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9144 need_locks=warn
9146 else
9147 need_locks=no
9155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9156 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9158 runpath_var=
9159 allow_undefined_flag=
9160 always_export_symbols=no
9161 archive_cmds=
9162 archive_expsym_cmds=
9163 compiler_needs_object=no
9164 enable_shared_with_static_runtimes=no
9165 export_dynamic_flag_spec=
9166 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9167 hardcode_automatic=no
9168 hardcode_direct=no
9169 hardcode_direct_absolute=no
9170 hardcode_libdir_flag_spec=
9171 hardcode_libdir_flag_spec_ld=
9172 hardcode_libdir_separator=
9173 hardcode_minus_L=no
9174 hardcode_shlibpath_var=unsupported
9175 inherit_rpath=no
9176 link_all_deplibs=unknown
9177 module_cmds=
9178 module_expsym_cmds=
9179 old_archive_from_new_cmds=
9180 old_archive_from_expsyms_cmds=
9181 thread_safe_flag_spec=
9182 whole_archive_flag_spec=
9183 # include_expsyms should be a list of space-separated symbols to be *always*
9184 # included in the symbol list
9185 include_expsyms=
9186 # exclude_expsyms can be an extended regexp of symbols to exclude
9187 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9188 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9189 # as well as any symbol that contains `d'.
9190 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9191 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9192 # platforms (ab)use it in PIC code, but their linkers get confused if
9193 # the symbol is explicitly referenced. Since portable code cannot
9194 # rely on this symbol name, it's probably fine to never include it in
9195 # preloaded symbol tables.
9196 # Exclude shared library initialization/finalization symbols.
9197 extract_expsyms_cmds=
9199 case $host_os in
9200 cygwin* | mingw* | pw32* | cegcc*)
9201 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9202 # When not using gcc, we currently assume that we are using
9203 # Microsoft Visual C++.
9204 if test "$GCC" != yes; then
9205 with_gnu_ld=no
9208 interix*)
9209 # we just hope/assume this is gcc and not c89 (= MSVC++)
9210 with_gnu_ld=yes
9212 openbsd*)
9213 with_gnu_ld=no
9215 esac
9217 ld_shlibs=yes
9218 if test "$with_gnu_ld" = yes; then
9219 # If archive_cmds runs LD, not CC, wlarc should be empty
9220 wlarc='${wl}'
9222 # Set some defaults for GNU ld with shared library support. These
9223 # are reset later if shared libraries are not supported. Putting them
9224 # here allows them to be overridden if necessary.
9225 runpath_var=LD_RUN_PATH
9226 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9227 export_dynamic_flag_spec='${wl}--export-dynamic'
9228 # ancient GNU ld didn't support --whole-archive et. al.
9229 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9230 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9231 else
9232 whole_archive_flag_spec=
9234 supports_anon_versioning=no
9235 case `$LD -v 2>&1` in
9236 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9237 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9238 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9239 *\ 2.11.*) ;; # other 2.11 versions
9240 *) supports_anon_versioning=yes ;;
9241 esac
9243 # See if GNU ld supports shared libraries.
9244 case $host_os in
9245 aix[3-9]*)
9246 # On AIX/PPC, the GNU linker is very broken
9247 if test "$host_cpu" != ia64; then
9248 ld_shlibs=no
9249 cat <<_LT_EOF 1>&2
9251 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
9252 *** to be unable to reliably create shared libraries on AIX.
9253 *** Therefore, libtool is disabling shared libraries support. If you
9254 *** really care for shared libraries, you may want to modify your PATH
9255 *** so that a non-GNU linker is found, and then restart.
9257 _LT_EOF
9261 amigaos*)
9262 case $host_cpu in
9263 powerpc)
9264 # see comment about AmigaOS4 .so support
9265 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9266 archive_expsym_cmds=''
9268 m68k)
9269 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)'
9270 hardcode_libdir_flag_spec='-L$libdir'
9271 hardcode_minus_L=yes
9273 esac
9276 beos*)
9277 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9278 allow_undefined_flag=unsupported
9279 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9280 # support --undefined. This deserves some investigation. FIXME
9281 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9282 else
9283 ld_shlibs=no
9287 cygwin* | mingw* | pw32* | cegcc*)
9288 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9289 # as there is no search path for DLLs.
9290 hardcode_libdir_flag_spec='-L$libdir'
9291 allow_undefined_flag=unsupported
9292 always_export_symbols=no
9293 enable_shared_with_static_runtimes=yes
9294 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9296 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9297 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9298 # If the export-symbols file already is a .def file (1st line
9299 # is EXPORTS), use it as is; otherwise, prepend...
9300 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9301 cp $export_symbols $output_objdir/$soname.def;
9302 else
9303 echo EXPORTS > $output_objdir/$soname.def;
9304 cat $export_symbols >> $output_objdir/$soname.def;
9306 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9307 else
9308 ld_shlibs=no
9312 interix[3-9]*)
9313 hardcode_direct=no
9314 hardcode_shlibpath_var=no
9315 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9316 export_dynamic_flag_spec='${wl}-E'
9317 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9318 # Instead, shared libraries are loaded at an image base (0x10000000 by
9319 # default) and relocated if they conflict, which is a slow very memory
9320 # consuming and fragmenting process. To avoid this, we pick a random,
9321 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9322 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9323 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9324 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'
9327 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9328 tmp_diet=no
9329 if test "$host_os" = linux-dietlibc; then
9330 case $cc_basename in
9331 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9332 esac
9334 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9335 && test "$tmp_diet" = no
9336 then
9337 tmp_addflag=
9338 tmp_sharedflag='-shared'
9339 case $cc_basename,$host_cpu in
9340 pgcc*) # Portland Group C compiler
9341 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'
9342 tmp_addflag=' $pic_flag'
9344 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
9345 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'
9346 tmp_addflag=' $pic_flag -Mnomain' ;;
9347 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9348 tmp_addflag=' -i_dynamic' ;;
9349 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9350 tmp_addflag=' -i_dynamic -nofor_main' ;;
9351 ifc* | ifort*) # Intel Fortran compiler
9352 tmp_addflag=' -nofor_main' ;;
9353 lf95*) # Lahey Fortran 8.1
9354 whole_archive_flag_spec=
9355 tmp_sharedflag='--shared' ;;
9356 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9357 tmp_sharedflag='-qmkshrobj'
9358 tmp_addflag= ;;
9359 esac
9360 case `$CC -V 2>&1 | sed 5q` in
9361 *Sun\ C*) # Sun C 5.9
9362 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'
9363 compiler_needs_object=yes
9364 tmp_sharedflag='-G' ;;
9365 *Sun\ F*) # Sun Fortran 8.3
9366 tmp_sharedflag='-G' ;;
9367 esac
9368 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9370 if test "x$supports_anon_versioning" = xyes; then
9371 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9372 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9373 echo "local: *; };" >> $output_objdir/$libname.ver~
9374 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9377 case $cc_basename in
9378 xlf*)
9379 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9380 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9381 hardcode_libdir_flag_spec=
9382 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9383 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9384 if test "x$supports_anon_versioning" = xyes; then
9385 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9386 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9387 echo "local: *; };" >> $output_objdir/$libname.ver~
9388 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9391 esac
9392 else
9393 ld_shlibs=no
9397 netbsd*)
9398 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9399 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9400 wlarc=
9401 else
9402 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9403 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9407 solaris*)
9408 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9409 ld_shlibs=no
9410 cat <<_LT_EOF 1>&2
9412 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9413 *** create shared libraries on Solaris systems. Therefore, libtool
9414 *** is disabling shared libraries support. We urge you to upgrade GNU
9415 *** binutils to release 2.9.1 or newer. Another option is to modify
9416 *** your PATH or compiler configuration so that the native linker is
9417 *** used, and then restart.
9419 _LT_EOF
9420 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9421 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9422 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9423 else
9424 ld_shlibs=no
9428 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9429 case `$LD -v 2>&1` in
9430 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9431 ld_shlibs=no
9432 cat <<_LT_EOF 1>&2
9434 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9435 *** reliably create shared libraries on SCO systems. Therefore, libtool
9436 *** is disabling shared libraries support. We urge you to upgrade GNU
9437 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9438 *** your PATH or compiler configuration so that the native linker is
9439 *** used, and then restart.
9441 _LT_EOF
9444 # For security reasons, it is highly recommended that you always
9445 # use absolute paths for naming shared libraries, and exclude the
9446 # DT_RUNPATH tag from executables and libraries. But doing so
9447 # requires that you compile everything twice, which is a pain.
9448 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9449 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9450 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9451 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9452 else
9453 ld_shlibs=no
9456 esac
9459 sunos4*)
9460 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9461 wlarc=
9462 hardcode_direct=yes
9463 hardcode_shlibpath_var=no
9467 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9468 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9469 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9470 else
9471 ld_shlibs=no
9474 esac
9476 if test "$ld_shlibs" = no; then
9477 runpath_var=
9478 hardcode_libdir_flag_spec=
9479 export_dynamic_flag_spec=
9480 whole_archive_flag_spec=
9482 else
9483 # PORTME fill in a description of your system's linker (not GNU ld)
9484 case $host_os in
9485 aix3*)
9486 allow_undefined_flag=unsupported
9487 always_export_symbols=yes
9488 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'
9489 # Note: this linker hardcodes the directories in LIBPATH if there
9490 # are no directories specified by -L.
9491 hardcode_minus_L=yes
9492 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9493 # Neither direct hardcoding nor static linking is supported with a
9494 # broken collect2.
9495 hardcode_direct=unsupported
9499 aix[4-9]*)
9500 if test "$host_cpu" = ia64; then
9501 # On IA64, the linker does run time linking by default, so we don't
9502 # have to do anything special.
9503 aix_use_runtimelinking=no
9504 exp_sym_flag='-Bexport'
9505 no_entry_flag=""
9506 else
9507 # If we're using GNU nm, then we don't want the "-C" option.
9508 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9509 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9510 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'
9511 else
9512 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'
9514 aix_use_runtimelinking=no
9516 # Test if we are trying to use run time linking or normal
9517 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9518 # need to do runtime linking.
9519 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9520 for ld_flag in $LDFLAGS; do
9521 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9522 aix_use_runtimelinking=yes
9523 break
9525 done
9527 esac
9529 exp_sym_flag='-bexport'
9530 no_entry_flag='-bnoentry'
9533 # When large executables or shared objects are built, AIX ld can
9534 # have problems creating the table of contents. If linking a library
9535 # or program results in "error TOC overflow" add -mminimal-toc to
9536 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9537 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9539 archive_cmds=''
9540 hardcode_direct=yes
9541 hardcode_direct_absolute=yes
9542 hardcode_libdir_separator=':'
9543 link_all_deplibs=yes
9544 file_list_spec='${wl}-f,'
9546 if test "$GCC" = yes; then
9547 case $host_os in aix4.[012]|aix4.[012].*)
9548 # We only want to do this on AIX 4.2 and lower, the check
9549 # below for broken collect2 doesn't work under 4.3+
9550 collect2name=`${CC} -print-prog-name=collect2`
9551 if test -f "$collect2name" &&
9552 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9553 then
9554 # We have reworked collect2
9556 else
9557 # We have old collect2
9558 hardcode_direct=unsupported
9559 # It fails to find uninstalled libraries when the uninstalled
9560 # path is not listed in the libpath. Setting hardcode_minus_L
9561 # to unsupported forces relinking
9562 hardcode_minus_L=yes
9563 hardcode_libdir_flag_spec='-L$libdir'
9564 hardcode_libdir_separator=
9567 esac
9568 shared_flag='-shared'
9569 if test "$aix_use_runtimelinking" = yes; then
9570 shared_flag="$shared_flag "'${wl}-G'
9572 else
9573 # not using gcc
9574 if test "$host_cpu" = ia64; then
9575 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9576 # chokes on -Wl,-G. The following line is correct:
9577 shared_flag='-G'
9578 else
9579 if test "$aix_use_runtimelinking" = yes; then
9580 shared_flag='${wl}-G'
9581 else
9582 shared_flag='${wl}-bM:SRE'
9587 export_dynamic_flag_spec='${wl}-bexpall'
9588 # It seems that -bexpall does not export symbols beginning with
9589 # underscore (_), so it is better to generate a list of symbols to export.
9590 always_export_symbols=yes
9591 if test "$aix_use_runtimelinking" = yes; then
9592 # Warning - without using the other runtime loading flags (-brtl),
9593 # -berok will link without error, but may produce a broken library.
9594 allow_undefined_flag='-berok'
9595 # Determine the default libpath from the value encoded in an
9596 # empty executable.
9597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9598 /* end confdefs.h. */
9601 main ()
9605 return 0;
9607 _ACEOF
9608 if ac_fn_c_try_link "$LINENO"; then :
9610 lt_aix_libpath_sed='
9611 /Import File Strings/,/^$/ {
9612 /^0/ {
9613 s/^0 *\(.*\)$/\1/
9617 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9618 # Check for a 64-bit object if we didn't find anything.
9619 if test -z "$aix_libpath"; then
9620 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9623 rm -f core conftest.err conftest.$ac_objext \
9624 conftest$ac_exeext conftest.$ac_ext
9625 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9627 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9628 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"
9629 else
9630 if test "$host_cpu" = ia64; then
9631 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9632 allow_undefined_flag="-z nodefs"
9633 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"
9634 else
9635 # Determine the default libpath from the value encoded in an
9636 # empty executable.
9637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9638 /* end confdefs.h. */
9641 main ()
9645 return 0;
9647 _ACEOF
9648 if ac_fn_c_try_link "$LINENO"; then :
9650 lt_aix_libpath_sed='
9651 /Import File Strings/,/^$/ {
9652 /^0/ {
9653 s/^0 *\(.*\)$/\1/
9657 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9658 # Check for a 64-bit object if we didn't find anything.
9659 if test -z "$aix_libpath"; then
9660 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9663 rm -f core conftest.err conftest.$ac_objext \
9664 conftest$ac_exeext conftest.$ac_ext
9665 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9667 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9668 # Warning - without using the other run time loading flags,
9669 # -berok will link without error, but may produce a broken library.
9670 no_undefined_flag=' ${wl}-bernotok'
9671 allow_undefined_flag=' ${wl}-berok'
9672 # Exported symbols can be pulled into shared objects from archives
9673 whole_archive_flag_spec='$convenience'
9674 archive_cmds_need_lc=yes
9675 # This is similar to how AIX traditionally builds its shared libraries.
9676 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'
9681 amigaos*)
9682 case $host_cpu in
9683 powerpc)
9684 # see comment about AmigaOS4 .so support
9685 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9686 archive_expsym_cmds=''
9688 m68k)
9689 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)'
9690 hardcode_libdir_flag_spec='-L$libdir'
9691 hardcode_minus_L=yes
9693 esac
9696 bsdi[45]*)
9697 export_dynamic_flag_spec=-rdynamic
9700 cygwin* | mingw* | pw32* | cegcc*)
9701 # When not using gcc, we currently assume that we are using
9702 # Microsoft Visual C++.
9703 # hardcode_libdir_flag_spec is actually meaningless, as there is
9704 # no search path for DLLs.
9705 hardcode_libdir_flag_spec=' '
9706 allow_undefined_flag=unsupported
9707 # Tell ltmain to make .lib files, not .a files.
9708 libext=lib
9709 # Tell ltmain to make .dll files, not .so files.
9710 shrext_cmds=".dll"
9711 # FIXME: Setting linknames here is a bad hack.
9712 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9713 # The linker will automatically build a .lib file if we build a DLL.
9714 old_archive_from_new_cmds='true'
9715 # FIXME: Should let the user specify the lib program.
9716 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9717 fix_srcfile_path='`cygpath -w "$srcfile"`'
9718 enable_shared_with_static_runtimes=yes
9721 darwin* | rhapsody*)
9724 archive_cmds_need_lc=no
9725 hardcode_direct=no
9726 hardcode_automatic=yes
9727 hardcode_shlibpath_var=unsupported
9728 whole_archive_flag_spec=''
9729 link_all_deplibs=yes
9730 allow_undefined_flag="$_lt_dar_allow_undefined"
9731 case $cc_basename in
9732 ifort*) _lt_dar_can_shared=yes ;;
9733 *) _lt_dar_can_shared=$GCC ;;
9734 esac
9735 if test "$_lt_dar_can_shared" = "yes"; then
9736 output_verbose_link_cmd=echo
9737 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9738 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9739 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}"
9740 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}"
9742 else
9743 ld_shlibs=no
9748 dgux*)
9749 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9750 hardcode_libdir_flag_spec='-L$libdir'
9751 hardcode_shlibpath_var=no
9754 freebsd1*)
9755 ld_shlibs=no
9758 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9759 # support. Future versions do this automatically, but an explicit c++rt0.o
9760 # does not break anything, and helps significantly (at the cost of a little
9761 # extra space).
9762 freebsd2.2*)
9763 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9764 hardcode_libdir_flag_spec='-R$libdir'
9765 hardcode_direct=yes
9766 hardcode_shlibpath_var=no
9769 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9770 freebsd2*)
9771 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9772 hardcode_direct=yes
9773 hardcode_minus_L=yes
9774 hardcode_shlibpath_var=no
9777 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9778 freebsd* | dragonfly*)
9779 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9780 hardcode_libdir_flag_spec='-R$libdir'
9781 hardcode_direct=yes
9782 hardcode_shlibpath_var=no
9785 hpux9*)
9786 if test "$GCC" = yes; then
9787 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'
9788 else
9789 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'
9791 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9792 hardcode_libdir_separator=:
9793 hardcode_direct=yes
9795 # hardcode_minus_L: Not really in the search PATH,
9796 # but as the default location of the library.
9797 hardcode_minus_L=yes
9798 export_dynamic_flag_spec='${wl}-E'
9801 hpux10*)
9802 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9803 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9804 else
9805 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9807 if test "$with_gnu_ld" = no; then
9808 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9809 hardcode_libdir_flag_spec_ld='+b $libdir'
9810 hardcode_libdir_separator=:
9811 hardcode_direct=yes
9812 hardcode_direct_absolute=yes
9813 export_dynamic_flag_spec='${wl}-E'
9814 # hardcode_minus_L: Not really in the search PATH,
9815 # but as the default location of the library.
9816 hardcode_minus_L=yes
9820 hpux11*)
9821 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9822 case $host_cpu in
9823 hppa*64*)
9824 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9826 ia64*)
9827 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9830 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9832 esac
9833 else
9834 case $host_cpu in
9835 hppa*64*)
9836 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9838 ia64*)
9839 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9842 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9844 esac
9846 if test "$with_gnu_ld" = no; then
9847 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9848 hardcode_libdir_separator=:
9850 case $host_cpu in
9851 hppa*64*|ia64*)
9852 hardcode_direct=no
9853 hardcode_shlibpath_var=no
9856 hardcode_direct=yes
9857 hardcode_direct_absolute=yes
9858 export_dynamic_flag_spec='${wl}-E'
9860 # hardcode_minus_L: Not really in the search PATH,
9861 # but as the default location of the library.
9862 hardcode_minus_L=yes
9864 esac
9868 irix5* | irix6* | nonstopux*)
9869 if test "$GCC" = yes; then
9870 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'
9871 # Try to use the -exported_symbol ld option, if it does not
9872 # work, assume that -exports_file does not work either and
9873 # implicitly export all symbols.
9874 save_LDFLAGS="$LDFLAGS"
9875 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9877 /* end confdefs.h. */
9878 int foo(void) {}
9879 _ACEOF
9880 if ac_fn_c_try_link "$LINENO"; then :
9881 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'
9884 rm -f core conftest.err conftest.$ac_objext \
9885 conftest$ac_exeext conftest.$ac_ext
9886 LDFLAGS="$save_LDFLAGS"
9887 else
9888 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'
9889 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'
9891 archive_cmds_need_lc='no'
9892 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9893 hardcode_libdir_separator=:
9894 inherit_rpath=yes
9895 link_all_deplibs=yes
9898 netbsd*)
9899 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9900 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9901 else
9902 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9904 hardcode_libdir_flag_spec='-R$libdir'
9905 hardcode_direct=yes
9906 hardcode_shlibpath_var=no
9909 newsos6)
9910 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9911 hardcode_direct=yes
9912 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9913 hardcode_libdir_separator=:
9914 hardcode_shlibpath_var=no
9917 *nto* | *qnx*)
9920 openbsd*)
9921 if test -f /usr/libexec/ld.so; then
9922 hardcode_direct=yes
9923 hardcode_shlibpath_var=no
9924 hardcode_direct_absolute=yes
9925 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9926 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9927 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9928 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9929 export_dynamic_flag_spec='${wl}-E'
9930 else
9931 case $host_os in
9932 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9933 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9934 hardcode_libdir_flag_spec='-R$libdir'
9937 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9938 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9940 esac
9942 else
9943 ld_shlibs=no
9947 os2*)
9948 hardcode_libdir_flag_spec='-L$libdir'
9949 hardcode_minus_L=yes
9950 allow_undefined_flag=unsupported
9951 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'
9952 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9955 osf3*)
9956 if test "$GCC" = yes; then
9957 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9958 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'
9959 else
9960 allow_undefined_flag=' -expect_unresolved \*'
9961 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'
9963 archive_cmds_need_lc='no'
9964 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9965 hardcode_libdir_separator=:
9968 osf4* | osf5*) # as osf3* with the addition of -msym flag
9969 if test "$GCC" = yes; then
9970 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9971 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'
9972 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9973 else
9974 allow_undefined_flag=' -expect_unresolved \*'
9975 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'
9976 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~
9977 $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'
9979 # Both c and cxx compiler support -rpath directly
9980 hardcode_libdir_flag_spec='-rpath $libdir'
9982 archive_cmds_need_lc='no'
9983 hardcode_libdir_separator=:
9986 solaris*)
9987 no_undefined_flag=' -z defs'
9988 if test "$GCC" = yes; then
9989 wlarc='${wl}'
9990 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9991 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9992 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9993 else
9994 case `$CC -V 2>&1` in
9995 *"Compilers 5.0"*)
9996 wlarc=''
9997 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9998 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9999 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10002 wlarc='${wl}'
10003 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10004 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10005 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10007 esac
10009 hardcode_libdir_flag_spec='-R$libdir'
10010 hardcode_shlibpath_var=no
10011 case $host_os in
10012 solaris2.[0-5] | solaris2.[0-5].*) ;;
10014 # The compiler driver will combine and reorder linker options,
10015 # but understands `-z linker_flag'. GCC discards it without `$wl',
10016 # but is careful enough not to reorder.
10017 # Supported since Solaris 2.6 (maybe 2.5.1?)
10018 if test "$GCC" = yes; then
10019 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10020 else
10021 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10024 esac
10025 link_all_deplibs=yes
10028 sunos4*)
10029 if test "x$host_vendor" = xsequent; then
10030 # Use $CC to link under sequent, because it throws in some extra .o
10031 # files that make .init and .fini sections work.
10032 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10033 else
10034 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10036 hardcode_libdir_flag_spec='-L$libdir'
10037 hardcode_direct=yes
10038 hardcode_minus_L=yes
10039 hardcode_shlibpath_var=no
10042 sysv4)
10043 case $host_vendor in
10044 sni)
10045 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10046 hardcode_direct=yes # is this really true???
10048 siemens)
10049 ## LD is ld it makes a PLAMLIB
10050 ## CC just makes a GrossModule.
10051 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10052 reload_cmds='$CC -r -o $output$reload_objs'
10053 hardcode_direct=no
10055 motorola)
10056 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10057 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10059 esac
10060 runpath_var='LD_RUN_PATH'
10061 hardcode_shlibpath_var=no
10064 sysv4.3*)
10065 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10066 hardcode_shlibpath_var=no
10067 export_dynamic_flag_spec='-Bexport'
10070 sysv4*MP*)
10071 if test -d /usr/nec; then
10072 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10073 hardcode_shlibpath_var=no
10074 runpath_var=LD_RUN_PATH
10075 hardcode_runpath_var=yes
10076 ld_shlibs=yes
10080 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10081 no_undefined_flag='${wl}-z,text'
10082 archive_cmds_need_lc=no
10083 hardcode_shlibpath_var=no
10084 runpath_var='LD_RUN_PATH'
10086 if test "$GCC" = yes; then
10087 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10088 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10089 else
10090 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10091 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10095 sysv5* | sco3.2v5* | sco5v6*)
10096 # Note: We can NOT use -z defs as we might desire, because we do not
10097 # link with -lc, and that would cause any symbols used from libc to
10098 # always be unresolved, which means just about no library would
10099 # ever link correctly. If we're not using GNU ld we use -z text
10100 # though, which does catch some bad symbols but isn't as heavy-handed
10101 # as -z defs.
10102 no_undefined_flag='${wl}-z,text'
10103 allow_undefined_flag='${wl}-z,nodefs'
10104 archive_cmds_need_lc=no
10105 hardcode_shlibpath_var=no
10106 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10107 hardcode_libdir_separator=':'
10108 link_all_deplibs=yes
10109 export_dynamic_flag_spec='${wl}-Bexport'
10110 runpath_var='LD_RUN_PATH'
10112 if test "$GCC" = yes; then
10113 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10114 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10115 else
10116 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10117 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10121 uts4*)
10122 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10123 hardcode_libdir_flag_spec='-L$libdir'
10124 hardcode_shlibpath_var=no
10128 ld_shlibs=no
10130 esac
10132 if test x$host_vendor = xsni; then
10133 case $host in
10134 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10135 export_dynamic_flag_spec='${wl}-Blargedynsym'
10137 esac
10141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10142 $as_echo "$ld_shlibs" >&6; }
10143 test "$ld_shlibs" = no && can_build_shared=no
10145 with_gnu_ld=$with_gnu_ld
10162 # Do we need to explicitly link libc?
10164 case "x$archive_cmds_need_lc" in
10165 x|xyes)
10166 # Assume -lc should be added
10167 archive_cmds_need_lc=yes
10169 if test "$enable_shared" = yes && test "$GCC" = yes; then
10170 case $archive_cmds in
10171 *'~'*)
10172 # FIXME: we may have to deal with multi-command sequences.
10174 '$CC '*)
10175 # Test whether the compiler implicitly links with -lc since on some
10176 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10177 # to ld, don't add -lc before -lgcc.
10178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10179 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10180 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
10181 $as_echo_n "(cached) " >&6
10182 else
10183 $RM conftest*
10184 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10186 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10187 (eval $ac_compile) 2>&5
10188 ac_status=$?
10189 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10190 test $ac_status = 0; } 2>conftest.err; then
10191 soname=conftest
10192 lib=conftest
10193 libobjs=conftest.$ac_objext
10194 deplibs=
10195 wl=$lt_prog_compiler_wl
10196 pic_flag=$lt_prog_compiler_pic
10197 compiler_flags=-v
10198 linker_flags=-v
10199 verstring=
10200 output_objdir=.
10201 libname=conftest
10202 lt_save_allow_undefined_flag=$allow_undefined_flag
10203 allow_undefined_flag=
10204 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10205 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10206 ac_status=$?
10207 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10208 test $ac_status = 0; }
10209 then
10210 lt_cv_archive_cmds_need_lc=no
10211 else
10212 lt_cv_archive_cmds_need_lc=yes
10214 allow_undefined_flag=$lt_save_allow_undefined_flag
10215 else
10216 cat conftest.err 1>&5
10218 $RM conftest*
10221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10222 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10223 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10225 esac
10228 esac
10386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10387 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10389 if test "$GCC" = yes; then
10390 case $host_os in
10391 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10392 *) lt_awk_arg="/^libraries:/" ;;
10393 esac
10394 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10395 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10396 # if the path contains ";" then we assume it to be the separator
10397 # otherwise default to the standard path separator (i.e. ":") - it is
10398 # assumed that no part of a normal pathname contains ";" but that should
10399 # okay in the real world where ";" in dirpaths is itself problematic.
10400 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10401 else
10402 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10404 # Ok, now we have the path, separated by spaces, we can step through it
10405 # and add multilib dir if necessary.
10406 lt_tmp_lt_search_path_spec=
10407 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10408 for lt_sys_path in $lt_search_path_spec; do
10409 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10410 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10411 else
10412 test -d "$lt_sys_path" && \
10413 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10415 done
10416 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10417 BEGIN {RS=" "; FS="/|\n";} {
10418 lt_foo="";
10419 lt_count=0;
10420 for (lt_i = NF; lt_i > 0; lt_i--) {
10421 if ($lt_i != "" && $lt_i != ".") {
10422 if ($lt_i == "..") {
10423 lt_count++;
10424 } else {
10425 if (lt_count == 0) {
10426 lt_foo="/" $lt_i lt_foo;
10427 } else {
10428 lt_count--;
10433 if (lt_foo != "") { lt_freq[lt_foo]++; }
10434 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10436 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10437 else
10438 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10440 library_names_spec=
10441 libname_spec='lib$name'
10442 soname_spec=
10443 shrext_cmds=".so"
10444 postinstall_cmds=
10445 postuninstall_cmds=
10446 finish_cmds=
10447 finish_eval=
10448 shlibpath_var=
10449 shlibpath_overrides_runpath=unknown
10450 version_type=none
10451 dynamic_linker="$host_os ld.so"
10452 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10453 need_lib_prefix=unknown
10454 hardcode_into_libs=no
10456 # when you set need_version to no, make sure it does not cause -set_version
10457 # flags to be left without arguments
10458 need_version=unknown
10460 case $host_os in
10461 aix3*)
10462 version_type=linux
10463 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10464 shlibpath_var=LIBPATH
10466 # AIX 3 has no versioning support, so we append a major version to the name.
10467 soname_spec='${libname}${release}${shared_ext}$major'
10470 aix[4-9]*)
10471 version_type=linux
10472 need_lib_prefix=no
10473 need_version=no
10474 hardcode_into_libs=yes
10475 if test "$host_cpu" = ia64; then
10476 # AIX 5 supports IA64
10477 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10478 shlibpath_var=LD_LIBRARY_PATH
10479 else
10480 # With GCC up to 2.95.x, collect2 would create an import file
10481 # for dependence libraries. The import file would start with
10482 # the line `#! .'. This would cause the generated library to
10483 # depend on `.', always an invalid library. This was fixed in
10484 # development snapshots of GCC prior to 3.0.
10485 case $host_os in
10486 aix4 | aix4.[01] | aix4.[01].*)
10487 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10488 echo ' yes '
10489 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10491 else
10492 can_build_shared=no
10495 esac
10496 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10497 # soname into executable. Probably we can add versioning support to
10498 # collect2, so additional links can be useful in future.
10499 if test "$aix_use_runtimelinking" = yes; then
10500 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10501 # instead of lib<name>.a to let people know that these are not
10502 # typical AIX shared libraries.
10503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10504 else
10505 # We preserve .a as extension for shared libraries through AIX4.2
10506 # and later when we are not doing run time linking.
10507 library_names_spec='${libname}${release}.a $libname.a'
10508 soname_spec='${libname}${release}${shared_ext}$major'
10510 shlibpath_var=LIBPATH
10514 amigaos*)
10515 case $host_cpu in
10516 powerpc)
10517 # Since July 2007 AmigaOS4 officially supports .so libraries.
10518 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10521 m68k)
10522 library_names_spec='$libname.ixlibrary $libname.a'
10523 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10524 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'
10526 esac
10529 beos*)
10530 library_names_spec='${libname}${shared_ext}'
10531 dynamic_linker="$host_os ld.so"
10532 shlibpath_var=LIBRARY_PATH
10535 bsdi[45]*)
10536 version_type=linux
10537 need_version=no
10538 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10539 soname_spec='${libname}${release}${shared_ext}$major'
10540 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10541 shlibpath_var=LD_LIBRARY_PATH
10542 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10543 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10544 # the default ld.so.conf also contains /usr/contrib/lib and
10545 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10546 # libtool to hard-code these into programs
10549 cygwin* | mingw* | pw32* | cegcc*)
10550 version_type=windows
10551 shrext_cmds=".dll"
10552 need_version=no
10553 need_lib_prefix=no
10555 case $GCC,$host_os in
10556 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10557 library_names_spec='$libname.dll.a'
10558 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10559 postinstall_cmds='base_file=`basename \${file}`~
10560 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10561 dldir=$destdir/`dirname \$dlpath`~
10562 test -d \$dldir || mkdir -p \$dldir~
10563 $install_prog $dir/$dlname \$dldir/$dlname~
10564 chmod a+x \$dldir/$dlname~
10565 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10566 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10568 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10569 dlpath=$dir/\$dldll~
10570 $RM \$dlpath'
10571 shlibpath_overrides_runpath=yes
10573 case $host_os in
10574 cygwin*)
10575 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10576 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10577 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10579 mingw* | cegcc*)
10580 # MinGW DLLs use traditional 'lib' prefix
10581 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10582 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10583 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10584 # It is most probably a Windows format PATH printed by
10585 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10586 # path with ; separators, and with drive letters. We can handle the
10587 # drive letters (cygwin fileutils understands them), so leave them,
10588 # especially as we might pass files found there to a mingw objdump,
10589 # which wouldn't understand a cygwinified path. Ahh.
10590 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10591 else
10592 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10595 pw32*)
10596 # pw32 DLLs use 'pw' prefix rather than 'lib'
10597 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10599 esac
10603 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10605 esac
10606 dynamic_linker='Win32 ld.exe'
10607 # FIXME: first we should search . and the directory the executable is in
10608 shlibpath_var=PATH
10611 darwin* | rhapsody*)
10612 dynamic_linker="$host_os dyld"
10613 version_type=darwin
10614 need_lib_prefix=no
10615 need_version=no
10616 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10617 soname_spec='${libname}${release}${major}$shared_ext'
10618 shlibpath_overrides_runpath=yes
10619 shlibpath_var=DYLD_LIBRARY_PATH
10620 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10622 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10623 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10626 dgux*)
10627 version_type=linux
10628 need_lib_prefix=no
10629 need_version=no
10630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10631 soname_spec='${libname}${release}${shared_ext}$major'
10632 shlibpath_var=LD_LIBRARY_PATH
10635 freebsd1*)
10636 dynamic_linker=no
10639 freebsd* | dragonfly*)
10640 # DragonFly does not have aout. When/if they implement a new
10641 # versioning mechanism, adjust this.
10642 if test -x /usr/bin/objformat; then
10643 objformat=`/usr/bin/objformat`
10644 else
10645 case $host_os in
10646 freebsd[123]*) objformat=aout ;;
10647 *) objformat=elf ;;
10648 esac
10650 version_type=freebsd-$objformat
10651 case $version_type in
10652 freebsd-elf*)
10653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10654 need_version=no
10655 need_lib_prefix=no
10657 freebsd-*)
10658 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10659 need_version=yes
10661 esac
10662 shlibpath_var=LD_LIBRARY_PATH
10663 case $host_os in
10664 freebsd2*)
10665 shlibpath_overrides_runpath=yes
10667 freebsd3.[01]* | freebsdelf3.[01]*)
10668 shlibpath_overrides_runpath=yes
10669 hardcode_into_libs=yes
10671 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10672 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10673 shlibpath_overrides_runpath=no
10674 hardcode_into_libs=yes
10676 *) # from 4.6 on, and DragonFly
10677 shlibpath_overrides_runpath=yes
10678 hardcode_into_libs=yes
10680 esac
10683 gnu*)
10684 version_type=linux
10685 need_lib_prefix=no
10686 need_version=no
10687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10688 soname_spec='${libname}${release}${shared_ext}$major'
10689 shlibpath_var=LD_LIBRARY_PATH
10690 hardcode_into_libs=yes
10693 hpux9* | hpux10* | hpux11*)
10694 # Give a soname corresponding to the major version so that dld.sl refuses to
10695 # link against other versions.
10696 version_type=sunos
10697 need_lib_prefix=no
10698 need_version=no
10699 case $host_cpu in
10700 ia64*)
10701 shrext_cmds='.so'
10702 hardcode_into_libs=yes
10703 dynamic_linker="$host_os dld.so"
10704 shlibpath_var=LD_LIBRARY_PATH
10705 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10707 soname_spec='${libname}${release}${shared_ext}$major'
10708 if test "X$HPUX_IA64_MODE" = X32; then
10709 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10710 else
10711 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10713 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10715 hppa*64*)
10716 shrext_cmds='.sl'
10717 hardcode_into_libs=yes
10718 dynamic_linker="$host_os dld.sl"
10719 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10720 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10721 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10722 soname_spec='${libname}${release}${shared_ext}$major'
10723 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10724 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10727 shrext_cmds='.sl'
10728 dynamic_linker="$host_os dld.sl"
10729 shlibpath_var=SHLIB_PATH
10730 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10732 soname_spec='${libname}${release}${shared_ext}$major'
10734 esac
10735 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10736 postinstall_cmds='chmod 555 $lib'
10739 interix[3-9]*)
10740 version_type=linux
10741 need_lib_prefix=no
10742 need_version=no
10743 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10744 soname_spec='${libname}${release}${shared_ext}$major'
10745 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10746 shlibpath_var=LD_LIBRARY_PATH
10747 shlibpath_overrides_runpath=no
10748 hardcode_into_libs=yes
10751 irix5* | irix6* | nonstopux*)
10752 case $host_os in
10753 nonstopux*) version_type=nonstopux ;;
10755 if test "$lt_cv_prog_gnu_ld" = yes; then
10756 version_type=linux
10757 else
10758 version_type=irix
10759 fi ;;
10760 esac
10761 need_lib_prefix=no
10762 need_version=no
10763 soname_spec='${libname}${release}${shared_ext}$major'
10764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10765 case $host_os in
10766 irix5* | nonstopux*)
10767 libsuff= shlibsuff=
10770 case $LD in # libtool.m4 will add one of these switches to LD
10771 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10772 libsuff= shlibsuff= libmagic=32-bit;;
10773 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10774 libsuff=32 shlibsuff=N32 libmagic=N32;;
10775 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10776 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10777 *) libsuff= shlibsuff= libmagic=never-match;;
10778 esac
10780 esac
10781 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10782 shlibpath_overrides_runpath=no
10783 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10784 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10785 hardcode_into_libs=yes
10788 # No shared lib support for Linux oldld, aout, or coff.
10789 linux*oldld* | linux*aout* | linux*coff*)
10790 dynamic_linker=no
10793 # This must be Linux ELF.
10794 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10795 version_type=linux
10796 need_lib_prefix=no
10797 need_version=no
10798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10799 soname_spec='${libname}${release}${shared_ext}$major'
10800 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10801 shlibpath_var=LD_LIBRARY_PATH
10802 shlibpath_overrides_runpath=no
10804 # Some binutils ld are patched to set DT_RUNPATH
10805 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10806 $as_echo_n "(cached) " >&6
10807 else
10808 lt_cv_shlibpath_overrides_runpath=no
10809 save_LDFLAGS=$LDFLAGS
10810 save_libdir=$libdir
10811 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10812 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10814 /* end confdefs.h. */
10817 main ()
10821 return 0;
10823 _ACEOF
10824 if ac_fn_c_try_link "$LINENO"; then :
10825 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10826 lt_cv_shlibpath_overrides_runpath=yes
10829 rm -f core conftest.err conftest.$ac_objext \
10830 conftest$ac_exeext conftest.$ac_ext
10831 LDFLAGS=$save_LDFLAGS
10832 libdir=$save_libdir
10836 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10838 # This implies no fast_install, which is unacceptable.
10839 # Some rework will be needed to allow for fast_install
10840 # before this can be enabled.
10841 hardcode_into_libs=yes
10843 # Append ld.so.conf contents to the search path
10844 if test -f /etc/ld.so.conf; then
10845 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' ' '`
10846 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10849 # We used to test for /lib/ld.so.1 and disable shared libraries on
10850 # powerpc, because MkLinux only supported shared libraries with the
10851 # GNU dynamic linker. Since this was broken with cross compilers,
10852 # most powerpc-linux boxes support dynamic linking these days and
10853 # people can always --disable-shared, the test was removed, and we
10854 # assume the GNU/Linux dynamic linker is in use.
10855 dynamic_linker='GNU/Linux ld.so'
10858 netbsd*)
10859 version_type=sunos
10860 need_lib_prefix=no
10861 need_version=no
10862 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10864 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10865 dynamic_linker='NetBSD (a.out) ld.so'
10866 else
10867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10868 soname_spec='${libname}${release}${shared_ext}$major'
10869 dynamic_linker='NetBSD ld.elf_so'
10871 shlibpath_var=LD_LIBRARY_PATH
10872 shlibpath_overrides_runpath=yes
10873 hardcode_into_libs=yes
10876 newsos6)
10877 version_type=linux
10878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10879 shlibpath_var=LD_LIBRARY_PATH
10880 shlibpath_overrides_runpath=yes
10883 *nto* | *qnx*)
10884 version_type=qnx
10885 need_lib_prefix=no
10886 need_version=no
10887 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10888 soname_spec='${libname}${release}${shared_ext}$major'
10889 shlibpath_var=LD_LIBRARY_PATH
10890 shlibpath_overrides_runpath=no
10891 hardcode_into_libs=yes
10892 dynamic_linker='ldqnx.so'
10895 openbsd*)
10896 version_type=sunos
10897 sys_lib_dlsearch_path_spec="/usr/lib"
10898 need_lib_prefix=no
10899 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10900 case $host_os in
10901 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10902 *) need_version=no ;;
10903 esac
10904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10905 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10906 shlibpath_var=LD_LIBRARY_PATH
10907 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10908 case $host_os in
10909 openbsd2.[89] | openbsd2.[89].*)
10910 shlibpath_overrides_runpath=no
10913 shlibpath_overrides_runpath=yes
10915 esac
10916 else
10917 shlibpath_overrides_runpath=yes
10921 os2*)
10922 libname_spec='$name'
10923 shrext_cmds=".dll"
10924 need_lib_prefix=no
10925 library_names_spec='$libname${shared_ext} $libname.a'
10926 dynamic_linker='OS/2 ld.exe'
10927 shlibpath_var=LIBPATH
10930 osf3* | osf4* | osf5*)
10931 version_type=osf
10932 need_lib_prefix=no
10933 need_version=no
10934 soname_spec='${libname}${release}${shared_ext}$major'
10935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10936 shlibpath_var=LD_LIBRARY_PATH
10937 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10938 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10941 rdos*)
10942 dynamic_linker=no
10945 solaris*)
10946 version_type=linux
10947 need_lib_prefix=no
10948 need_version=no
10949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10950 soname_spec='${libname}${release}${shared_ext}$major'
10951 shlibpath_var=LD_LIBRARY_PATH
10952 shlibpath_overrides_runpath=yes
10953 hardcode_into_libs=yes
10954 # ldd complains unless libraries are executable
10955 postinstall_cmds='chmod +x $lib'
10958 sunos4*)
10959 version_type=sunos
10960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10961 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10962 shlibpath_var=LD_LIBRARY_PATH
10963 shlibpath_overrides_runpath=yes
10964 if test "$with_gnu_ld" = yes; then
10965 need_lib_prefix=no
10967 need_version=yes
10970 sysv4 | sysv4.3*)
10971 version_type=linux
10972 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10973 soname_spec='${libname}${release}${shared_ext}$major'
10974 shlibpath_var=LD_LIBRARY_PATH
10975 case $host_vendor in
10976 sni)
10977 shlibpath_overrides_runpath=no
10978 need_lib_prefix=no
10979 runpath_var=LD_RUN_PATH
10981 siemens)
10982 need_lib_prefix=no
10984 motorola)
10985 need_lib_prefix=no
10986 need_version=no
10987 shlibpath_overrides_runpath=no
10988 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10990 esac
10993 sysv4*MP*)
10994 if test -d /usr/nec ;then
10995 version_type=linux
10996 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10997 soname_spec='$libname${shared_ext}.$major'
10998 shlibpath_var=LD_LIBRARY_PATH
11002 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11003 version_type=freebsd-elf
11004 need_lib_prefix=no
11005 need_version=no
11006 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11007 soname_spec='${libname}${release}${shared_ext}$major'
11008 shlibpath_var=LD_LIBRARY_PATH
11009 shlibpath_overrides_runpath=yes
11010 hardcode_into_libs=yes
11011 if test "$with_gnu_ld" = yes; then
11012 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11013 else
11014 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11015 case $host_os in
11016 sco3.2v5*)
11017 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11019 esac
11021 sys_lib_dlsearch_path_spec='/usr/lib'
11024 tpf*)
11025 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11026 version_type=linux
11027 need_lib_prefix=no
11028 need_version=no
11029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11030 shlibpath_var=LD_LIBRARY_PATH
11031 shlibpath_overrides_runpath=no
11032 hardcode_into_libs=yes
11035 uts4*)
11036 version_type=linux
11037 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11038 soname_spec='${libname}${release}${shared_ext}$major'
11039 shlibpath_var=LD_LIBRARY_PATH
11043 dynamic_linker=no
11045 esac
11046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11047 $as_echo "$dynamic_linker" >&6; }
11048 test "$dynamic_linker" = no && can_build_shared=no
11050 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11051 if test "$GCC" = yes; then
11052 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11055 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11056 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11058 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11059 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11149 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11150 hardcode_action=
11151 if test -n "$hardcode_libdir_flag_spec" ||
11152 test -n "$runpath_var" ||
11153 test "X$hardcode_automatic" = "Xyes" ; then
11155 # We can hardcode non-existent directories.
11156 if test "$hardcode_direct" != no &&
11157 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11158 # have to relink, otherwise we might link with an installed library
11159 # when we should be linking with a yet-to-be-installed one
11160 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11161 test "$hardcode_minus_L" != no; then
11162 # Linking always hardcodes the temporary library directory.
11163 hardcode_action=relink
11164 else
11165 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11166 hardcode_action=immediate
11168 else
11169 # We cannot hardcode anything, or else we can only hardcode existing
11170 # directories.
11171 hardcode_action=unsupported
11173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11174 $as_echo "$hardcode_action" >&6; }
11176 if test "$hardcode_action" = relink ||
11177 test "$inherit_rpath" = yes; then
11178 # Fast installation is not supported
11179 enable_fast_install=no
11180 elif test "$shlibpath_overrides_runpath" = yes ||
11181 test "$enable_shared" = no; then
11182 # Fast installation is not necessary
11183 enable_fast_install=needless
11191 if test "x$enable_dlopen" != xyes; then
11192 enable_dlopen=unknown
11193 enable_dlopen_self=unknown
11194 enable_dlopen_self_static=unknown
11195 else
11196 lt_cv_dlopen=no
11197 lt_cv_dlopen_libs=
11199 case $host_os in
11200 beos*)
11201 lt_cv_dlopen="load_add_on"
11202 lt_cv_dlopen_libs=
11203 lt_cv_dlopen_self=yes
11206 mingw* | pw32* | cegcc*)
11207 lt_cv_dlopen="LoadLibrary"
11208 lt_cv_dlopen_libs=
11211 cygwin*)
11212 lt_cv_dlopen="dlopen"
11213 lt_cv_dlopen_libs=
11216 darwin*)
11217 # if libdl is installed we need to link against it
11218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11219 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11220 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11221 $as_echo_n "(cached) " >&6
11222 else
11223 ac_check_lib_save_LIBS=$LIBS
11224 LIBS="-ldl $LIBS"
11225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11226 /* end confdefs.h. */
11228 /* Override any GCC internal prototype to avoid an error.
11229 Use char because int might match the return type of a GCC
11230 builtin and then its argument prototype would still apply. */
11231 #ifdef __cplusplus
11232 extern "C"
11233 #endif
11234 char dlopen ();
11236 main ()
11238 return dlopen ();
11240 return 0;
11242 _ACEOF
11243 if ac_fn_c_try_link "$LINENO"; then :
11244 ac_cv_lib_dl_dlopen=yes
11245 else
11246 ac_cv_lib_dl_dlopen=no
11248 rm -f core conftest.err conftest.$ac_objext \
11249 conftest$ac_exeext conftest.$ac_ext
11250 LIBS=$ac_check_lib_save_LIBS
11252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11253 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11254 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11255 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11256 else
11258 lt_cv_dlopen="dyld"
11259 lt_cv_dlopen_libs=
11260 lt_cv_dlopen_self=yes
11267 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11268 if test "x$ac_cv_func_shl_load" = x""yes; then :
11269 lt_cv_dlopen="shl_load"
11270 else
11271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11272 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11273 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11274 $as_echo_n "(cached) " >&6
11275 else
11276 ac_check_lib_save_LIBS=$LIBS
11277 LIBS="-ldld $LIBS"
11278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11279 /* end confdefs.h. */
11281 /* Override any GCC internal prototype to avoid an error.
11282 Use char because int might match the return type of a GCC
11283 builtin and then its argument prototype would still apply. */
11284 #ifdef __cplusplus
11285 extern "C"
11286 #endif
11287 char shl_load ();
11289 main ()
11291 return shl_load ();
11293 return 0;
11295 _ACEOF
11296 if ac_fn_c_try_link "$LINENO"; then :
11297 ac_cv_lib_dld_shl_load=yes
11298 else
11299 ac_cv_lib_dld_shl_load=no
11301 rm -f core conftest.err conftest.$ac_objext \
11302 conftest$ac_exeext conftest.$ac_ext
11303 LIBS=$ac_check_lib_save_LIBS
11305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11306 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11307 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11308 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11309 else
11310 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11311 if test "x$ac_cv_func_dlopen" = x""yes; then :
11312 lt_cv_dlopen="dlopen"
11313 else
11314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11315 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11316 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11317 $as_echo_n "(cached) " >&6
11318 else
11319 ac_check_lib_save_LIBS=$LIBS
11320 LIBS="-ldl $LIBS"
11321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11322 /* end confdefs.h. */
11324 /* Override any GCC internal prototype to avoid an error.
11325 Use char because int might match the return type of a GCC
11326 builtin and then its argument prototype would still apply. */
11327 #ifdef __cplusplus
11328 extern "C"
11329 #endif
11330 char dlopen ();
11332 main ()
11334 return dlopen ();
11336 return 0;
11338 _ACEOF
11339 if ac_fn_c_try_link "$LINENO"; then :
11340 ac_cv_lib_dl_dlopen=yes
11341 else
11342 ac_cv_lib_dl_dlopen=no
11344 rm -f core conftest.err conftest.$ac_objext \
11345 conftest$ac_exeext conftest.$ac_ext
11346 LIBS=$ac_check_lib_save_LIBS
11348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11349 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11350 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11351 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11352 else
11353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11354 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11355 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11356 $as_echo_n "(cached) " >&6
11357 else
11358 ac_check_lib_save_LIBS=$LIBS
11359 LIBS="-lsvld $LIBS"
11360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11361 /* end confdefs.h. */
11363 /* Override any GCC internal prototype to avoid an error.
11364 Use char because int might match the return type of a GCC
11365 builtin and then its argument prototype would still apply. */
11366 #ifdef __cplusplus
11367 extern "C"
11368 #endif
11369 char dlopen ();
11371 main ()
11373 return dlopen ();
11375 return 0;
11377 _ACEOF
11378 if ac_fn_c_try_link "$LINENO"; then :
11379 ac_cv_lib_svld_dlopen=yes
11380 else
11381 ac_cv_lib_svld_dlopen=no
11383 rm -f core conftest.err conftest.$ac_objext \
11384 conftest$ac_exeext conftest.$ac_ext
11385 LIBS=$ac_check_lib_save_LIBS
11387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11388 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11389 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11390 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11391 else
11392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11393 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11394 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11395 $as_echo_n "(cached) " >&6
11396 else
11397 ac_check_lib_save_LIBS=$LIBS
11398 LIBS="-ldld $LIBS"
11399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11400 /* end confdefs.h. */
11402 /* Override any GCC internal prototype to avoid an error.
11403 Use char because int might match the return type of a GCC
11404 builtin and then its argument prototype would still apply. */
11405 #ifdef __cplusplus
11406 extern "C"
11407 #endif
11408 char dld_link ();
11410 main ()
11412 return dld_link ();
11414 return 0;
11416 _ACEOF
11417 if ac_fn_c_try_link "$LINENO"; then :
11418 ac_cv_lib_dld_dld_link=yes
11419 else
11420 ac_cv_lib_dld_dld_link=no
11422 rm -f core conftest.err conftest.$ac_objext \
11423 conftest$ac_exeext conftest.$ac_ext
11424 LIBS=$ac_check_lib_save_LIBS
11426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11427 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11428 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11429 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11448 esac
11450 if test "x$lt_cv_dlopen" != xno; then
11451 enable_dlopen=yes
11452 else
11453 enable_dlopen=no
11456 case $lt_cv_dlopen in
11457 dlopen)
11458 save_CPPFLAGS="$CPPFLAGS"
11459 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11461 save_LDFLAGS="$LDFLAGS"
11462 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11464 save_LIBS="$LIBS"
11465 LIBS="$lt_cv_dlopen_libs $LIBS"
11467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11468 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11469 if test "${lt_cv_dlopen_self+set}" = set; then :
11470 $as_echo_n "(cached) " >&6
11471 else
11472 if test "$cross_compiling" = yes; then :
11473 lt_cv_dlopen_self=cross
11474 else
11475 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11476 lt_status=$lt_dlunknown
11477 cat > conftest.$ac_ext <<_LT_EOF
11478 #line 11478 "configure"
11479 #include "confdefs.h"
11481 #if HAVE_DLFCN_H
11482 #include <dlfcn.h>
11483 #endif
11485 #include <stdio.h>
11487 #ifdef RTLD_GLOBAL
11488 # define LT_DLGLOBAL RTLD_GLOBAL
11489 #else
11490 # ifdef DL_GLOBAL
11491 # define LT_DLGLOBAL DL_GLOBAL
11492 # else
11493 # define LT_DLGLOBAL 0
11494 # endif
11495 #endif
11497 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11498 find out it does not work in some platform. */
11499 #ifndef LT_DLLAZY_OR_NOW
11500 # ifdef RTLD_LAZY
11501 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11502 # else
11503 # ifdef DL_LAZY
11504 # define LT_DLLAZY_OR_NOW DL_LAZY
11505 # else
11506 # ifdef RTLD_NOW
11507 # define LT_DLLAZY_OR_NOW RTLD_NOW
11508 # else
11509 # ifdef DL_NOW
11510 # define LT_DLLAZY_OR_NOW DL_NOW
11511 # else
11512 # define LT_DLLAZY_OR_NOW 0
11513 # endif
11514 # endif
11515 # endif
11516 # endif
11517 #endif
11519 void fnord() { int i=42;}
11520 int main ()
11522 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11523 int status = $lt_dlunknown;
11525 if (self)
11527 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11528 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11529 /* dlclose (self); */
11531 else
11532 puts (dlerror ());
11534 return status;
11536 _LT_EOF
11537 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11538 (eval $ac_link) 2>&5
11539 ac_status=$?
11540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11541 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11542 (./conftest; exit; ) >&5 2>/dev/null
11543 lt_status=$?
11544 case x$lt_status in
11545 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11546 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11547 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11548 esac
11549 else :
11550 # compilation failed
11551 lt_cv_dlopen_self=no
11554 rm -fr conftest*
11558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11559 $as_echo "$lt_cv_dlopen_self" >&6; }
11561 if test "x$lt_cv_dlopen_self" = xyes; then
11562 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11564 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11565 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11566 $as_echo_n "(cached) " >&6
11567 else
11568 if test "$cross_compiling" = yes; then :
11569 lt_cv_dlopen_self_static=cross
11570 else
11571 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11572 lt_status=$lt_dlunknown
11573 cat > conftest.$ac_ext <<_LT_EOF
11574 #line 11574 "configure"
11575 #include "confdefs.h"
11577 #if HAVE_DLFCN_H
11578 #include <dlfcn.h>
11579 #endif
11581 #include <stdio.h>
11583 #ifdef RTLD_GLOBAL
11584 # define LT_DLGLOBAL RTLD_GLOBAL
11585 #else
11586 # ifdef DL_GLOBAL
11587 # define LT_DLGLOBAL DL_GLOBAL
11588 # else
11589 # define LT_DLGLOBAL 0
11590 # endif
11591 #endif
11593 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11594 find out it does not work in some platform. */
11595 #ifndef LT_DLLAZY_OR_NOW
11596 # ifdef RTLD_LAZY
11597 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11598 # else
11599 # ifdef DL_LAZY
11600 # define LT_DLLAZY_OR_NOW DL_LAZY
11601 # else
11602 # ifdef RTLD_NOW
11603 # define LT_DLLAZY_OR_NOW RTLD_NOW
11604 # else
11605 # ifdef DL_NOW
11606 # define LT_DLLAZY_OR_NOW DL_NOW
11607 # else
11608 # define LT_DLLAZY_OR_NOW 0
11609 # endif
11610 # endif
11611 # endif
11612 # endif
11613 #endif
11615 void fnord() { int i=42;}
11616 int main ()
11618 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11619 int status = $lt_dlunknown;
11621 if (self)
11623 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11624 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11625 /* dlclose (self); */
11627 else
11628 puts (dlerror ());
11630 return status;
11632 _LT_EOF
11633 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11634 (eval $ac_link) 2>&5
11635 ac_status=$?
11636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11637 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11638 (./conftest; exit; ) >&5 2>/dev/null
11639 lt_status=$?
11640 case x$lt_status in
11641 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11642 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11643 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11644 esac
11645 else :
11646 # compilation failed
11647 lt_cv_dlopen_self_static=no
11650 rm -fr conftest*
11654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11655 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11658 CPPFLAGS="$save_CPPFLAGS"
11659 LDFLAGS="$save_LDFLAGS"
11660 LIBS="$save_LIBS"
11662 esac
11664 case $lt_cv_dlopen_self in
11665 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11666 *) enable_dlopen_self=unknown ;;
11667 esac
11669 case $lt_cv_dlopen_self_static in
11670 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11671 *) enable_dlopen_self_static=unknown ;;
11672 esac
11691 striplib=
11692 old_striplib=
11693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11694 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11695 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11696 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11697 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11699 $as_echo "yes" >&6; }
11700 else
11701 # FIXME - insert some real tests, host_os isn't really good enough
11702 case $host_os in
11703 darwin*)
11704 if test -n "$STRIP" ; then
11705 striplib="$STRIP -x"
11706 old_striplib="$STRIP -S"
11707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11708 $as_echo "yes" >&6; }
11709 else
11710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11711 $as_echo "no" >&6; }
11715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11716 $as_echo "no" >&6; }
11718 esac
11732 # Report which library types will actually be built
11733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11734 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11736 $as_echo "$can_build_shared" >&6; }
11738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11739 $as_echo_n "checking whether to build shared libraries... " >&6; }
11740 test "$can_build_shared" = "no" && enable_shared=no
11742 # On AIX, shared libraries and static libraries use the same namespace, and
11743 # are all built from PIC.
11744 case $host_os in
11745 aix3*)
11746 test "$enable_shared" = yes && enable_static=no
11747 if test -n "$RANLIB"; then
11748 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11749 postinstall_cmds='$RANLIB $lib'
11753 aix[4-9]*)
11754 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11755 test "$enable_shared" = yes && enable_static=no
11758 esac
11759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11760 $as_echo "$enable_shared" >&6; }
11762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11763 $as_echo_n "checking whether to build static libraries... " >&6; }
11764 # Make sure either enable_shared or enable_static is yes.
11765 test "$enable_shared" = yes || enable_static=yes
11766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11767 $as_echo "$enable_static" >&6; }
11773 ac_ext=c
11774 ac_cpp='$CPP $CPPFLAGS'
11775 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11776 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11777 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11779 CC="$lt_save_CC"
11793 ac_config_commands="$ac_config_commands libtool"
11798 # Only expand once:
11802 ALL_LINGUAS="fr sv tr es da vi zh_CN zh_TW ga fi id"
11803 # If we haven't got the data from the intl directory,
11804 # assume NLS is disabled.
11805 USE_NLS=no
11806 LIBINTL=
11807 LIBINTL_DEP=
11808 INCINTL=
11809 XGETTEXT=
11810 GMSGFMT=
11811 POSUB=
11813 if test -f ../intl/config.intl; then
11814 . ../intl/config.intl
11816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11817 $as_echo_n "checking whether NLS is requested... " >&6; }
11818 if test x"$USE_NLS" != xyes; then
11819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11820 $as_echo "no" >&6; }
11821 else
11822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11823 $as_echo "yes" >&6; }
11825 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11829 $as_echo_n "checking for catalogs to be installed... " >&6; }
11830 # Look for .po and .gmo files in the source directory.
11831 CATALOGS=
11832 XLINGUAS=
11833 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11834 # If there aren't any .gmo files the shell will give us the
11835 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11836 # weeded out.
11837 case "$cat" in *\**)
11838 continue;;
11839 esac
11840 # The quadruple backslash is collapsed to a double backslash
11841 # by the backticks, then collapsed again by the double quotes,
11842 # leaving us with one backslash in the sed expression (right
11843 # before the dot that mustn't act as a wildcard).
11844 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11845 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11846 # The user is allowed to set LINGUAS to a list of languages to
11847 # install catalogs for. If it's empty that means "all of them."
11848 if test "x$LINGUAS" = x; then
11849 CATALOGS="$CATALOGS $cat"
11850 XLINGUAS="$XLINGUAS $lang"
11851 else
11852 case "$LINGUAS" in *$lang*)
11853 CATALOGS="$CATALOGS $cat"
11854 XLINGUAS="$XLINGUAS $lang"
11856 esac
11858 done
11859 LINGUAS="$XLINGUAS"
11860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11861 $as_echo "$LINGUAS" >&6; }
11864 DATADIRNAME=share
11866 INSTOBJEXT=.mo
11868 GENCAT=gencat
11870 CATOBJEXT=.gmo
11874 MKINSTALLDIRS=
11875 if test -n "$ac_aux_dir"; then
11876 case "$ac_aux_dir" in
11877 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
11878 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
11879 esac
11881 if test -z "$MKINSTALLDIRS"; then
11882 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
11887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11888 $as_echo_n "checking whether NLS is requested... " >&6; }
11889 # Check whether --enable-nls was given.
11890 if test "${enable_nls+set}" = set; then :
11891 enableval=$enable_nls; USE_NLS=$enableval
11892 else
11893 USE_NLS=yes
11896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
11897 $as_echo "$USE_NLS" >&6; }
11904 # Prepare PATH_SEPARATOR.
11905 # The user is always right.
11906 if test "${PATH_SEPARATOR+set}" != set; then
11907 echo "#! /bin/sh" >conf$$.sh
11908 echo "exit 0" >>conf$$.sh
11909 chmod +x conf$$.sh
11910 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11911 PATH_SEPARATOR=';'
11912 else
11913 PATH_SEPARATOR=:
11915 rm -f conf$$.sh
11918 # Find out how to test for executable files. Don't use a zero-byte file,
11919 # as systems may use methods other than mode bits to determine executability.
11920 cat >conf$$.file <<_ASEOF
11921 #! /bin/sh
11922 exit 0
11923 _ASEOF
11924 chmod +x conf$$.file
11925 if test -x conf$$.file >/dev/null 2>&1; then
11926 ac_executable_p="test -x"
11927 else
11928 ac_executable_p="test -f"
11930 rm -f conf$$.file
11932 # Extract the first word of "msgfmt", so it can be a program name with args.
11933 set dummy msgfmt; ac_word=$2
11934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11935 $as_echo_n "checking for $ac_word... " >&6; }
11936 if test "${ac_cv_path_MSGFMT+set}" = set; then :
11937 $as_echo_n "(cached) " >&6
11938 else
11939 case "$MSGFMT" in
11940 [\\/]* | ?:[\\/]*)
11941 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
11944 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11945 for ac_dir in $PATH; do
11946 IFS="$ac_save_IFS"
11947 test -z "$ac_dir" && ac_dir=.
11948 for ac_exec_ext in '' $ac_executable_extensions; do
11949 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11950 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
11951 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11952 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
11953 break 2
11956 done
11957 done
11958 IFS="$ac_save_IFS"
11959 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
11961 esac
11963 MSGFMT="$ac_cv_path_MSGFMT"
11964 if test "$MSGFMT" != ":"; then
11965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
11966 $as_echo "$MSGFMT" >&6; }
11967 else
11968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11969 $as_echo "no" >&6; }
11972 # Extract the first word of "gmsgfmt", so it can be a program name with args.
11973 set dummy gmsgfmt; ac_word=$2
11974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11975 $as_echo_n "checking for $ac_word... " >&6; }
11976 if test "${ac_cv_path_GMSGFMT+set}" = set; then :
11977 $as_echo_n "(cached) " >&6
11978 else
11979 case $GMSGFMT in
11980 [\\/]* | ?:[\\/]*)
11981 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
11984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11985 for as_dir in $PATH
11987 IFS=$as_save_IFS
11988 test -z "$as_dir" && as_dir=.
11989 for ac_exec_ext in '' $ac_executable_extensions; do
11990 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11991 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
11992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11993 break 2
11995 done
11996 done
11997 IFS=$as_save_IFS
11999 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
12001 esac
12003 GMSGFMT=$ac_cv_path_GMSGFMT
12004 if test -n "$GMSGFMT"; then
12005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
12006 $as_echo "$GMSGFMT" >&6; }
12007 else
12008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12009 $as_echo "no" >&6; }
12015 # Prepare PATH_SEPARATOR.
12016 # The user is always right.
12017 if test "${PATH_SEPARATOR+set}" != set; then
12018 echo "#! /bin/sh" >conf$$.sh
12019 echo "exit 0" >>conf$$.sh
12020 chmod +x conf$$.sh
12021 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12022 PATH_SEPARATOR=';'
12023 else
12024 PATH_SEPARATOR=:
12026 rm -f conf$$.sh
12029 # Find out how to test for executable files. Don't use a zero-byte file,
12030 # as systems may use methods other than mode bits to determine executability.
12031 cat >conf$$.file <<_ASEOF
12032 #! /bin/sh
12033 exit 0
12034 _ASEOF
12035 chmod +x conf$$.file
12036 if test -x conf$$.file >/dev/null 2>&1; then
12037 ac_executable_p="test -x"
12038 else
12039 ac_executable_p="test -f"
12041 rm -f conf$$.file
12043 # Extract the first word of "xgettext", so it can be a program name with args.
12044 set dummy xgettext; ac_word=$2
12045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12046 $as_echo_n "checking for $ac_word... " >&6; }
12047 if test "${ac_cv_path_XGETTEXT+set}" = set; then :
12048 $as_echo_n "(cached) " >&6
12049 else
12050 case "$XGETTEXT" in
12051 [\\/]* | ?:[\\/]*)
12052 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
12055 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12056 for ac_dir in $PATH; do
12057 IFS="$ac_save_IFS"
12058 test -z "$ac_dir" && ac_dir=.
12059 for ac_exec_ext in '' $ac_executable_extensions; do
12060 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12061 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
12062 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12063 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
12064 break 2
12067 done
12068 done
12069 IFS="$ac_save_IFS"
12070 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
12072 esac
12074 XGETTEXT="$ac_cv_path_XGETTEXT"
12075 if test "$XGETTEXT" != ":"; then
12076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
12077 $as_echo "$XGETTEXT" >&6; }
12078 else
12079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12080 $as_echo "no" >&6; }
12083 rm -f messages.po
12086 # Prepare PATH_SEPARATOR.
12087 # The user is always right.
12088 if test "${PATH_SEPARATOR+set}" != set; then
12089 echo "#! /bin/sh" >conf$$.sh
12090 echo "exit 0" >>conf$$.sh
12091 chmod +x conf$$.sh
12092 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12093 PATH_SEPARATOR=';'
12094 else
12095 PATH_SEPARATOR=:
12097 rm -f conf$$.sh
12100 # Find out how to test for executable files. Don't use a zero-byte file,
12101 # as systems may use methods other than mode bits to determine executability.
12102 cat >conf$$.file <<_ASEOF
12103 #! /bin/sh
12104 exit 0
12105 _ASEOF
12106 chmod +x conf$$.file
12107 if test -x conf$$.file >/dev/null 2>&1; then
12108 ac_executable_p="test -x"
12109 else
12110 ac_executable_p="test -f"
12112 rm -f conf$$.file
12114 # Extract the first word of "msgmerge", so it can be a program name with args.
12115 set dummy msgmerge; ac_word=$2
12116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12117 $as_echo_n "checking for $ac_word... " >&6; }
12118 if test "${ac_cv_path_MSGMERGE+set}" = set; then :
12119 $as_echo_n "(cached) " >&6
12120 else
12121 case "$MSGMERGE" in
12122 [\\/]* | ?:[\\/]*)
12123 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
12126 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12127 for ac_dir in $PATH; do
12128 IFS="$ac_save_IFS"
12129 test -z "$ac_dir" && ac_dir=.
12130 for ac_exec_ext in '' $ac_executable_extensions; do
12131 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12132 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
12133 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
12134 break 2
12137 done
12138 done
12139 IFS="$ac_save_IFS"
12140 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
12142 esac
12144 MSGMERGE="$ac_cv_path_MSGMERGE"
12145 if test "$MSGMERGE" != ":"; then
12146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
12147 $as_echo "$MSGMERGE" >&6; }
12148 else
12149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12150 $as_echo "no" >&6; }
12154 if test "$GMSGFMT" != ":"; then
12155 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
12156 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12158 else
12159 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
12160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
12161 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
12162 GMSGFMT=":"
12166 if test "$XGETTEXT" != ":"; then
12167 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
12168 (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12170 else
12171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
12172 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
12173 XGETTEXT=":"
12175 rm -f messages.po
12178 ac_config_commands="$ac_config_commands default-1"
12184 for ac_prog in 'bison -y' byacc
12186 # Extract the first word of "$ac_prog", so it can be a program name with args.
12187 set dummy $ac_prog; ac_word=$2
12188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12189 $as_echo_n "checking for $ac_word... " >&6; }
12190 if test "${ac_cv_prog_YACC+set}" = set; then :
12191 $as_echo_n "(cached) " >&6
12192 else
12193 if test -n "$YACC"; then
12194 ac_cv_prog_YACC="$YACC" # Let the user override the test.
12195 else
12196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12197 for as_dir in $PATH
12199 IFS=$as_save_IFS
12200 test -z "$as_dir" && as_dir=.
12201 for ac_exec_ext in '' $ac_executable_extensions; do
12202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12203 ac_cv_prog_YACC="$ac_prog"
12204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12205 break 2
12207 done
12208 done
12209 IFS=$as_save_IFS
12213 YACC=$ac_cv_prog_YACC
12214 if test -n "$YACC"; then
12215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
12216 $as_echo "$YACC" >&6; }
12217 else
12218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12219 $as_echo "no" >&6; }
12223 test -n "$YACC" && break
12224 done
12225 test -n "$YACC" || YACC="yacc"
12227 for ac_prog in flex lex
12229 # Extract the first word of "$ac_prog", so it can be a program name with args.
12230 set dummy $ac_prog; ac_word=$2
12231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12232 $as_echo_n "checking for $ac_word... " >&6; }
12233 if test "${ac_cv_prog_LEX+set}" = set; then :
12234 $as_echo_n "(cached) " >&6
12235 else
12236 if test -n "$LEX"; then
12237 ac_cv_prog_LEX="$LEX" # Let the user override the test.
12238 else
12239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12240 for as_dir in $PATH
12242 IFS=$as_save_IFS
12243 test -z "$as_dir" && as_dir=.
12244 for ac_exec_ext in '' $ac_executable_extensions; do
12245 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12246 ac_cv_prog_LEX="$ac_prog"
12247 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12248 break 2
12250 done
12251 done
12252 IFS=$as_save_IFS
12256 LEX=$ac_cv_prog_LEX
12257 if test -n "$LEX"; then
12258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
12259 $as_echo "$LEX" >&6; }
12260 else
12261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12262 $as_echo "no" >&6; }
12266 test -n "$LEX" && break
12267 done
12268 test -n "$LEX" || LEX=":"
12270 if test "x$LEX" != "x:"; then
12271 cat >conftest.l <<_ACEOF
12273 a { ECHO; }
12274 b { REJECT; }
12275 c { yymore (); }
12276 d { yyless (1); }
12277 e { yyless (input () != 0); }
12278 f { unput (yytext[0]); }
12279 . { BEGIN INITIAL; }
12281 #ifdef YYTEXT_POINTER
12282 extern char *yytext;
12283 #endif
12285 main (void)
12287 return ! yylex () + ! yywrap ();
12289 _ACEOF
12290 { { ac_try="$LEX conftest.l"
12291 case "(($ac_try" in
12292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12293 *) ac_try_echo=$ac_try;;
12294 esac
12295 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12296 $as_echo "$ac_try_echo"; } >&5
12297 (eval "$LEX conftest.l") 2>&5
12298 ac_status=$?
12299 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12300 test $ac_status = 0; }
12301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
12302 $as_echo_n "checking lex output file root... " >&6; }
12303 if test "${ac_cv_prog_lex_root+set}" = set; then :
12304 $as_echo_n "(cached) " >&6
12305 else
12307 if test -f lex.yy.c; then
12308 ac_cv_prog_lex_root=lex.yy
12309 elif test -f lexyy.c; then
12310 ac_cv_prog_lex_root=lexyy
12311 else
12312 as_fn_error "cannot find output from $LEX; giving up" "$LINENO" 5
12315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
12316 $as_echo "$ac_cv_prog_lex_root" >&6; }
12317 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
12319 if test -z "${LEXLIB+set}"; then
12320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
12321 $as_echo_n "checking lex library... " >&6; }
12322 if test "${ac_cv_lib_lex+set}" = set; then :
12323 $as_echo_n "(cached) " >&6
12324 else
12326 ac_save_LIBS=$LIBS
12327 ac_cv_lib_lex='none needed'
12328 for ac_lib in '' -lfl -ll; do
12329 LIBS="$ac_lib $ac_save_LIBS"
12330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12331 /* end confdefs.h. */
12332 `cat $LEX_OUTPUT_ROOT.c`
12333 _ACEOF
12334 if ac_fn_c_try_link "$LINENO"; then :
12335 ac_cv_lib_lex=$ac_lib
12337 rm -f core conftest.err conftest.$ac_objext \
12338 conftest$ac_exeext conftest.$ac_ext
12339 test "$ac_cv_lib_lex" != 'none needed' && break
12340 done
12341 LIBS=$ac_save_LIBS
12344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
12345 $as_echo "$ac_cv_lib_lex" >&6; }
12346 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
12350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
12351 $as_echo_n "checking whether yytext is a pointer... " >&6; }
12352 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then :
12353 $as_echo_n "(cached) " >&6
12354 else
12355 # POSIX says lex can declare yytext either as a pointer or an array; the
12356 # default is implementation-dependent. Figure out which it is, since
12357 # not all implementations provide the %pointer and %array declarations.
12358 ac_cv_prog_lex_yytext_pointer=no
12359 ac_save_LIBS=$LIBS
12360 LIBS="$LEXLIB $ac_save_LIBS"
12361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12362 /* end confdefs.h. */
12363 #define YYTEXT_POINTER 1
12364 `cat $LEX_OUTPUT_ROOT.c`
12365 _ACEOF
12366 if ac_fn_c_try_link "$LINENO"; then :
12367 ac_cv_prog_lex_yytext_pointer=yes
12369 rm -f core conftest.err conftest.$ac_objext \
12370 conftest$ac_exeext conftest.$ac_ext
12371 LIBS=$ac_save_LIBS
12374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
12375 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
12376 if test $ac_cv_prog_lex_yytext_pointer = yes; then
12378 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
12381 rm -f conftest.l $LEX_OUTPUT_ROOT.c
12384 if test "$LEX" = :; then
12385 LEX=${am_missing_run}flex
12389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
12390 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
12391 # Check whether --enable-maintainer-mode was given.
12392 if test "${enable_maintainer_mode+set}" = set; then :
12393 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
12394 else
12395 USE_MAINTAINER_MODE=no
12398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
12399 $as_echo "$USE_MAINTAINER_MODE" >&6; }
12400 if test $USE_MAINTAINER_MODE = yes; then
12401 MAINTAINER_MODE_TRUE=
12402 MAINTAINER_MODE_FALSE='#'
12403 else
12404 MAINTAINER_MODE_TRUE='#'
12405 MAINTAINER_MODE_FALSE=
12408 MAINT=$MAINTAINER_MODE_TRUE
12411 if false; then
12412 GENINSRC_NEVER_TRUE=
12413 GENINSRC_NEVER_FALSE='#'
12414 else
12415 GENINSRC_NEVER_TRUE='#'
12416 GENINSRC_NEVER_FALSE=
12419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
12420 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
12421 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
12422 $as_echo_n "(cached) " >&6
12423 else
12424 echo abfoo >t1
12425 echo cdfoo >t2
12426 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
12427 if cmp t1 t2 2 2 > /dev/null 2>&1; then
12428 if cmp t1 t2 1 1 > /dev/null 2>&1; then
12430 else
12431 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
12434 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
12435 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
12437 else
12438 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
12441 rm t1 t2
12444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
12445 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
12446 do_compare="$gcc_cv_prog_cmp_skip"
12450 . ${srcdir}/configure.host
12457 for ac_header in string.h strings.h stdlib.h unistd.h elf-hints.h limits.h sys/param.h
12458 do :
12459 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12460 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12461 eval as_val=\$$as_ac_Header
12462 if test "x$as_val" = x""yes; then :
12463 cat >>confdefs.h <<_ACEOF
12464 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12465 _ACEOF
12469 done
12471 for ac_func in glob mkstemp realpath sbrk waitpid
12472 do :
12473 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12474 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12475 eval as_val=\$$as_ac_var
12476 if test "x$as_val" = x""yes; then :
12477 cat >>confdefs.h <<_ACEOF
12478 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12479 _ACEOF
12482 done
12484 ac_header_dirent=no
12485 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
12486 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
12487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
12488 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
12489 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
12490 $as_echo_n "(cached) " >&6
12491 else
12492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12493 /* end confdefs.h. */
12494 #include <sys/types.h>
12495 #include <$ac_hdr>
12498 main ()
12500 if ((DIR *) 0)
12501 return 0;
12503 return 0;
12505 _ACEOF
12506 if ac_fn_c_try_compile "$LINENO"; then :
12507 eval "$as_ac_Header=yes"
12508 else
12509 eval "$as_ac_Header=no"
12511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12513 eval ac_res=\$$as_ac_Header
12514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12515 $as_echo "$ac_res" >&6; }
12516 eval as_val=\$$as_ac_Header
12517 if test "x$as_val" = x""yes; then :
12518 cat >>confdefs.h <<_ACEOF
12519 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
12520 _ACEOF
12522 ac_header_dirent=$ac_hdr; break
12525 done
12526 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
12527 if test $ac_header_dirent = dirent.h; then
12528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
12529 $as_echo_n "checking for library containing opendir... " >&6; }
12530 if test "${ac_cv_search_opendir+set}" = set; then :
12531 $as_echo_n "(cached) " >&6
12532 else
12533 ac_func_search_save_LIBS=$LIBS
12534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12535 /* end confdefs.h. */
12537 /* Override any GCC internal prototype to avoid an error.
12538 Use char because int might match the return type of a GCC
12539 builtin and then its argument prototype would still apply. */
12540 #ifdef __cplusplus
12541 extern "C"
12542 #endif
12543 char opendir ();
12545 main ()
12547 return opendir ();
12549 return 0;
12551 _ACEOF
12552 for ac_lib in '' dir; do
12553 if test -z "$ac_lib"; then
12554 ac_res="none required"
12555 else
12556 ac_res=-l$ac_lib
12557 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12559 if ac_fn_c_try_link "$LINENO"; then :
12560 ac_cv_search_opendir=$ac_res
12562 rm -f core conftest.err conftest.$ac_objext \
12563 conftest$ac_exeext
12564 if test "${ac_cv_search_opendir+set}" = set; then :
12565 break
12567 done
12568 if test "${ac_cv_search_opendir+set}" = set; then :
12570 else
12571 ac_cv_search_opendir=no
12573 rm conftest.$ac_ext
12574 LIBS=$ac_func_search_save_LIBS
12576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
12577 $as_echo "$ac_cv_search_opendir" >&6; }
12578 ac_res=$ac_cv_search_opendir
12579 if test "$ac_res" != no; then :
12580 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12584 else
12585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
12586 $as_echo_n "checking for library containing opendir... " >&6; }
12587 if test "${ac_cv_search_opendir+set}" = set; then :
12588 $as_echo_n "(cached) " >&6
12589 else
12590 ac_func_search_save_LIBS=$LIBS
12591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12592 /* end confdefs.h. */
12594 /* Override any GCC internal prototype to avoid an error.
12595 Use char because int might match the return type of a GCC
12596 builtin and then its argument prototype would still apply. */
12597 #ifdef __cplusplus
12598 extern "C"
12599 #endif
12600 char opendir ();
12602 main ()
12604 return opendir ();
12606 return 0;
12608 _ACEOF
12609 for ac_lib in '' x; do
12610 if test -z "$ac_lib"; then
12611 ac_res="none required"
12612 else
12613 ac_res=-l$ac_lib
12614 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12616 if ac_fn_c_try_link "$LINENO"; then :
12617 ac_cv_search_opendir=$ac_res
12619 rm -f core conftest.err conftest.$ac_objext \
12620 conftest$ac_exeext
12621 if test "${ac_cv_search_opendir+set}" = set; then :
12622 break
12624 done
12625 if test "${ac_cv_search_opendir+set}" = set; then :
12627 else
12628 ac_cv_search_opendir=no
12630 rm conftest.$ac_ext
12631 LIBS=$ac_func_search_save_LIBS
12633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
12634 $as_echo "$ac_cv_search_opendir" >&6; }
12635 ac_res=$ac_cv_search_opendir
12636 if test "$ac_res" != no; then :
12637 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a known getopt prototype in unistd.h" >&5
12645 $as_echo_n "checking for a known getopt prototype in unistd.h... " >&6; }
12646 if test "${ld_cv_decl_getopt_unistd_h+set}" = set; then :
12647 $as_echo_n "(cached) " >&6
12648 else
12649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12650 /* end confdefs.h. */
12651 #include <unistd.h>
12653 main ()
12655 extern int getopt (int, char *const*, const char *);
12657 return 0;
12659 _ACEOF
12660 if ac_fn_c_try_compile "$LINENO"; then :
12661 ld_cv_decl_getopt_unistd_h=yes
12662 else
12663 ld_cv_decl_getopt_unistd_h=no
12665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_cv_decl_getopt_unistd_h" >&5
12669 $as_echo "$ld_cv_decl_getopt_unistd_h" >&6; }
12670 if test $ld_cv_decl_getopt_unistd_h = yes; then
12672 $as_echo "#define HAVE_DECL_GETOPT 1" >>confdefs.h
12677 case "${host}" in
12678 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
12680 $as_echo "#define USE_BINARY_FOPEN 1" >>confdefs.h
12682 esac
12684 ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
12685 if test "x$ac_cv_have_decl_strstr" = x""yes; then :
12686 ac_have_decl=1
12687 else
12688 ac_have_decl=0
12691 cat >>confdefs.h <<_ACEOF
12692 #define HAVE_DECL_STRSTR $ac_have_decl
12693 _ACEOF
12694 ac_fn_c_check_decl "$LINENO" "free" "ac_cv_have_decl_free" "$ac_includes_default"
12695 if test "x$ac_cv_have_decl_free" = x""yes; then :
12696 ac_have_decl=1
12697 else
12698 ac_have_decl=0
12701 cat >>confdefs.h <<_ACEOF
12702 #define HAVE_DECL_FREE $ac_have_decl
12703 _ACEOF
12704 ac_fn_c_check_decl "$LINENO" "sbrk" "ac_cv_have_decl_sbrk" "$ac_includes_default"
12705 if test "x$ac_cv_have_decl_sbrk" = x""yes; then :
12706 ac_have_decl=1
12707 else
12708 ac_have_decl=0
12711 cat >>confdefs.h <<_ACEOF
12712 #define HAVE_DECL_SBRK $ac_have_decl
12713 _ACEOF
12714 ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
12715 if test "x$ac_cv_have_decl_getenv" = x""yes; then :
12716 ac_have_decl=1
12717 else
12718 ac_have_decl=0
12721 cat >>confdefs.h <<_ACEOF
12722 #define HAVE_DECL_GETENV $ac_have_decl
12723 _ACEOF
12724 ac_fn_c_check_decl "$LINENO" "environ" "ac_cv_have_decl_environ" "$ac_includes_default"
12725 if test "x$ac_cv_have_decl_environ" = x""yes; then :
12726 ac_have_decl=1
12727 else
12728 ac_have_decl=0
12731 cat >>confdefs.h <<_ACEOF
12732 #define HAVE_DECL_ENVIRON $ac_have_decl
12733 _ACEOF
12736 # Link in zlib if we can. This is needed only for the bootstrap tests
12737 # right now, since those tests use libbfd, which depends on zlib.
12738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing zlibVersion" >&5
12739 $as_echo_n "checking for library containing zlibVersion... " >&6; }
12740 if test "${ac_cv_search_zlibVersion+set}" = set; then :
12741 $as_echo_n "(cached) " >&6
12742 else
12743 ac_func_search_save_LIBS=$LIBS
12744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12745 /* end confdefs.h. */
12747 /* Override any GCC internal prototype to avoid an error.
12748 Use char because int might match the return type of a GCC
12749 builtin and then its argument prototype would still apply. */
12750 #ifdef __cplusplus
12751 extern "C"
12752 #endif
12753 char zlibVersion ();
12755 main ()
12757 return zlibVersion ();
12759 return 0;
12761 _ACEOF
12762 for ac_lib in '' z; do
12763 if test -z "$ac_lib"; then
12764 ac_res="none required"
12765 else
12766 ac_res=-l$ac_lib
12767 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12769 if ac_fn_c_try_link "$LINENO"; then :
12770 ac_cv_search_zlibVersion=$ac_res
12772 rm -f core conftest.err conftest.$ac_objext \
12773 conftest$ac_exeext
12774 if test "${ac_cv_search_zlibVersion+set}" = set; then :
12775 break
12777 done
12778 if test "${ac_cv_search_zlibVersion+set}" = set; then :
12780 else
12781 ac_cv_search_zlibVersion=no
12783 rm conftest.$ac_ext
12784 LIBS=$ac_func_search_save_LIBS
12786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_zlibVersion" >&5
12787 $as_echo "$ac_cv_search_zlibVersion" >&6; }
12788 ac_res=$ac_cv_search_zlibVersion
12789 if test "$ac_res" != no; then :
12790 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12791 for ac_header in zlib.h
12792 do :
12793 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
12794 if test "x$ac_cv_header_zlib_h" = x""yes; then :
12795 cat >>confdefs.h <<_ACEOF
12796 #define HAVE_ZLIB_H 1
12797 _ACEOF
12801 done
12806 # When converting linker scripts into strings for use in emulation
12807 # files, use astring.sed if the compiler supports ANSI string
12808 # concatenation, or ostring.sed otherwise. This is to support the
12809 # broken Microsoft MSVC compiler, which limits the length of string
12810 # constants, while still supporting pre-ANSI compilers which do not
12811 # support string concatenation.
12812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ANSI C string concatenation works" >&5
12813 $as_echo_n "checking whether ANSI C string concatenation works... " >&6; }
12814 if test "${ld_cv_string_concatenation+set}" = set; then :
12815 $as_echo_n "(cached) " >&6
12816 else
12817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12818 /* end confdefs.h. */
12821 main ()
12823 char *a = "a" "a";
12825 return 0;
12827 _ACEOF
12828 if ac_fn_c_try_compile "$LINENO"; then :
12829 ld_cv_string_concatenation=yes
12830 else
12831 ld_cv_string_concatenation=no
12833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_cv_string_concatenation" >&5
12837 $as_echo "$ld_cv_string_concatenation" >&6; }
12838 if test "$ld_cv_string_concatenation" = "yes"; then
12839 STRINGIFY=astring.sed
12840 else
12841 STRINGIFY=ostring.sed
12845 # target-specific stuff:
12847 all_targets=
12848 EMUL=
12849 all_emuls=
12850 all_emul_extras=
12851 all_libpath=
12853 rm -f tdirs
12855 for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
12857 if test "$targ_alias" = "all"; then
12858 all_targets=true
12859 else
12860 # Canonicalize the secondary target names.
12861 result=`$ac_config_sub $targ_alias 2>/dev/null`
12862 if test -n "$result"; then
12863 targ=$result
12864 else
12865 targ=$targ_alias
12868 . ${srcdir}/configure.tgt
12870 if test "$targ" = "$target"; then
12871 EMUL=$targ_emul
12874 if test x${want64} = xfalse; then
12875 . ${srcdir}/../bfd/config.bfd
12878 if test x${want64} = xtrue; then
12879 targ_extra_emuls="$targ_extra_emuls $targ64_extra_emuls"
12880 targ_extra_libpath="$targ_extra_libpath $targ64_extra_libpath"
12883 for i in $targ_emul $targ_extra_emuls $targ_extra_libpath; do
12884 case " $all_emuls " in
12885 *" e${i}.o "*) ;;
12887 all_emuls="$all_emuls e${i}.o"
12888 eval result=\$tdir_$i
12889 test -z "$result" && result=$targ_alias
12890 echo tdir_$i=$result >> tdirs
12892 esac
12893 done
12895 for i in $targ_emul $targ_extra_libpath; do
12896 case " $all_libpath " in
12897 *" ${i} "*) ;;
12899 if test -z "$all_libpath"; then
12900 all_libpath=${i}
12901 else
12902 all_libpath="$all_libpath ${i}"
12905 esac
12906 done
12908 for i in $targ_extra_ofiles; do
12909 case " $all_emul_extras " in
12910 *" ${i} "*) ;;
12912 all_emul_extras="$all_emul_extras ${i}"
12914 esac
12915 done
12917 done
12921 TDIRS=tdirs
12924 if test x${all_targets} = xtrue; then
12925 if test x${want64} = xfalse; then
12926 # The cast to long int works around a bug in the HP C Compiler
12927 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12928 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12929 # This bug is HP SR number 8606223364.
12930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
12931 $as_echo_n "checking size of long... " >&6; }
12932 if test "${ac_cv_sizeof_long+set}" = set; then :
12933 $as_echo_n "(cached) " >&6
12934 else
12935 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
12937 else
12938 if test "$ac_cv_type_long" = yes; then
12939 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12940 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12941 { as_fn_set_status 77
12942 as_fn_error "cannot compute sizeof (long)
12943 See \`config.log' for more details." "$LINENO" 5; }; }
12944 else
12945 ac_cv_sizeof_long=0
12950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
12951 $as_echo "$ac_cv_sizeof_long" >&6; }
12955 cat >>confdefs.h <<_ACEOF
12956 #define SIZEOF_LONG $ac_cv_sizeof_long
12957 _ACEOF
12960 if test "x${ac_cv_sizeof_long}" = "x8"; then
12961 want64=true
12964 if test x${want64} = xtrue; then
12965 EMULATION_OFILES='$(ALL_EMULATIONS) $(ALL_64_EMULATIONS)'
12966 else
12967 EMULATION_OFILES='$(ALL_EMULATIONS)'
12969 EMUL_EXTRA_OFILES='$(ALL_EMUL_EXTRA_OFILES)'
12970 else
12971 EMULATION_OFILES=$all_emuls
12972 EMUL_EXTRA_OFILES=$all_emul_extras
12978 EMULATION_LIBPATH=$all_libpath
12981 if test x${enable_static} = xno; then
12982 TESTBFDLIB="--rpath ../bfd/.libs ../bfd/.libs/libbfd.so"
12983 else
12984 TESTBFDLIB="../bfd/.libs/libbfd.a"
12988 target_vendor=${target_vendor=$host_vendor}
12989 case "$target_vendor" in
12990 hp) EXTRA_SHLIB_EXTENSION=".sl" ;;
12991 *) EXTRA_SHLIB_EXTENSION= ;;
12992 esac
12994 case "$target_os" in
12995 lynxos) EXTRA_SHLIB_EXTENSION=".a" ;;
12996 esac
12998 if test x${EXTRA_SHLIB_EXTENSION} != x ; then
13000 cat >>confdefs.h <<_ACEOF
13001 #define EXTRA_SHLIB_EXTENSION "$EXTRA_SHLIB_EXTENSION"
13002 _ACEOF
13011 ac_config_files="$ac_config_files Makefile po/Makefile.in:po/Make-in"
13013 cat >confcache <<\_ACEOF
13014 # This file is a shell script that caches the results of configure
13015 # tests run on this system so they can be shared between configure
13016 # scripts and configure runs, see configure's option --config-cache.
13017 # It is not useful on other systems. If it contains results you don't
13018 # want to keep, you may remove or edit it.
13020 # config.status only pays attention to the cache file if you give it
13021 # the --recheck option to rerun configure.
13023 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13024 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13025 # following values.
13027 _ACEOF
13029 # The following way of writing the cache mishandles newlines in values,
13030 # but we know of no workaround that is simple, portable, and efficient.
13031 # So, we kill variables containing newlines.
13032 # Ultrix sh set writes to stderr and can't be redirected directly,
13033 # and sets the high bit in the cache file unless we assign to the vars.
13035 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13036 eval ac_val=\$$ac_var
13037 case $ac_val in #(
13038 *${as_nl}*)
13039 case $ac_var in #(
13040 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13041 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13042 esac
13043 case $ac_var in #(
13044 _ | IFS | as_nl) ;; #(
13045 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13046 *) { eval $ac_var=; unset $ac_var;} ;;
13047 esac ;;
13048 esac
13049 done
13051 (set) 2>&1 |
13052 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13053 *${as_nl}ac_space=\ *)
13054 # `set' does not quote correctly, so add quotes: double-quote
13055 # substitution turns \\\\ into \\, and sed turns \\ into \.
13056 sed -n \
13057 "s/'/'\\\\''/g;
13058 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13059 ;; #(
13061 # `set' quotes correctly as required by POSIX, so do not add quotes.
13062 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13064 esac |
13065 sort
13067 sed '
13068 /^ac_cv_env_/b end
13069 t clear
13070 :clear
13071 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13072 t end
13073 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13074 :end' >>confcache
13075 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13076 if test -w "$cache_file"; then
13077 test "x$cache_file" != "x/dev/null" &&
13078 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13079 $as_echo "$as_me: updating cache $cache_file" >&6;}
13080 cat confcache >$cache_file
13081 else
13082 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13083 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13086 rm -f confcache
13088 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13089 # Let make expand exec_prefix.
13090 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13092 DEFS=-DHAVE_CONFIG_H
13094 ac_libobjs=
13095 ac_ltlibobjs=
13096 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13097 # 1. Remove the extension, and $U if already installed.
13098 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13099 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13100 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13101 # will be set to the directory where LIBOBJS objects are built.
13102 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13103 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13104 done
13105 LIBOBJS=$ac_libobjs
13107 LTLIBOBJS=$ac_ltlibobjs
13110 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13111 as_fn_error "conditional \"AMDEP\" was never defined.
13112 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13114 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13115 as_fn_error "conditional \"am__fastdepCC\" was never defined.
13116 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13118 if test -n "$EXEEXT"; then
13119 am__EXEEXT_TRUE=
13120 am__EXEEXT_FALSE='#'
13121 else
13122 am__EXEEXT_TRUE='#'
13123 am__EXEEXT_FALSE=
13126 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13127 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
13128 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13130 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13131 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
13132 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13134 if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
13135 as_fn_error "conditional \"GENINSRC_NEVER\" was never defined.
13136 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13139 : ${CONFIG_STATUS=./config.status}
13140 ac_write_fail=0
13141 ac_clean_files_save=$ac_clean_files
13142 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13143 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13144 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13145 as_write_fail=0
13146 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13147 #! $SHELL
13148 # Generated by $as_me.
13149 # Run this file to recreate the current configuration.
13150 # Compiler output produced by configure, useful for debugging
13151 # configure, is in config.log if it exists.
13153 debug=false
13154 ac_cs_recheck=false
13155 ac_cs_silent=false
13157 SHELL=\${CONFIG_SHELL-$SHELL}
13158 export SHELL
13159 _ASEOF
13160 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13161 ## -------------------- ##
13162 ## M4sh Initialization. ##
13163 ## -------------------- ##
13165 # Be more Bourne compatible
13166 DUALCASE=1; export DUALCASE # for MKS sh
13167 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13168 emulate sh
13169 NULLCMD=:
13170 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13171 # is contrary to our usage. Disable this feature.
13172 alias -g '${1+"$@"}'='"$@"'
13173 setopt NO_GLOB_SUBST
13174 else
13175 case `(set -o) 2>/dev/null` in #(
13176 *posix*) :
13177 set -o posix ;; #(
13178 *) :
13180 esac
13184 as_nl='
13186 export as_nl
13187 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13188 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13189 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13190 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13191 # Prefer a ksh shell builtin over an external printf program on Solaris,
13192 # but without wasting forks for bash or zsh.
13193 if test -z "$BASH_VERSION$ZSH_VERSION" \
13194 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13195 as_echo='print -r --'
13196 as_echo_n='print -rn --'
13197 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13198 as_echo='printf %s\n'
13199 as_echo_n='printf %s'
13200 else
13201 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13202 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13203 as_echo_n='/usr/ucb/echo -n'
13204 else
13205 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13206 as_echo_n_body='eval
13207 arg=$1;
13208 case $arg in #(
13209 *"$as_nl"*)
13210 expr "X$arg" : "X\\(.*\\)$as_nl";
13211 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13212 esac;
13213 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13215 export as_echo_n_body
13216 as_echo_n='sh -c $as_echo_n_body as_echo'
13218 export as_echo_body
13219 as_echo='sh -c $as_echo_body as_echo'
13222 # The user is always right.
13223 if test "${PATH_SEPARATOR+set}" != set; then
13224 PATH_SEPARATOR=:
13225 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13226 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13227 PATH_SEPARATOR=';'
13232 # IFS
13233 # We need space, tab and new line, in precisely that order. Quoting is
13234 # there to prevent editors from complaining about space-tab.
13235 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13236 # splitting by setting IFS to empty value.)
13237 IFS=" "" $as_nl"
13239 # Find who we are. Look in the path if we contain no directory separator.
13240 case $0 in #((
13241 *[\\/]* ) as_myself=$0 ;;
13242 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13243 for as_dir in $PATH
13245 IFS=$as_save_IFS
13246 test -z "$as_dir" && as_dir=.
13247 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13248 done
13249 IFS=$as_save_IFS
13252 esac
13253 # We did not find ourselves, most probably we were run as `sh COMMAND'
13254 # in which case we are not to be found in the path.
13255 if test "x$as_myself" = x; then
13256 as_myself=$0
13258 if test ! -f "$as_myself"; then
13259 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13260 exit 1
13263 # Unset variables that we do not need and which cause bugs (e.g. in
13264 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13265 # suppresses any "Segmentation fault" message there. '((' could
13266 # trigger a bug in pdksh 5.2.14.
13267 for as_var in BASH_ENV ENV MAIL MAILPATH
13268 do eval test x\${$as_var+set} = xset \
13269 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13270 done
13271 PS1='$ '
13272 PS2='> '
13273 PS4='+ '
13275 # NLS nuisances.
13276 LC_ALL=C
13277 export LC_ALL
13278 LANGUAGE=C
13279 export LANGUAGE
13281 # CDPATH.
13282 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13285 # as_fn_error ERROR [LINENO LOG_FD]
13286 # ---------------------------------
13287 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13288 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13289 # script with status $?, using 1 if that was 0.
13290 as_fn_error ()
13292 as_status=$?; test $as_status -eq 0 && as_status=1
13293 if test "$3"; then
13294 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13295 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
13297 $as_echo "$as_me: error: $1" >&2
13298 as_fn_exit $as_status
13299 } # as_fn_error
13302 # as_fn_set_status STATUS
13303 # -----------------------
13304 # Set $? to STATUS, without forking.
13305 as_fn_set_status ()
13307 return $1
13308 } # as_fn_set_status
13310 # as_fn_exit STATUS
13311 # -----------------
13312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13313 as_fn_exit ()
13315 set +e
13316 as_fn_set_status $1
13317 exit $1
13318 } # as_fn_exit
13320 # as_fn_unset VAR
13321 # ---------------
13322 # Portably unset VAR.
13323 as_fn_unset ()
13325 { eval $1=; unset $1;}
13327 as_unset=as_fn_unset
13328 # as_fn_append VAR VALUE
13329 # ----------------------
13330 # Append the text in VALUE to the end of the definition contained in VAR. Take
13331 # advantage of any shell optimizations that allow amortized linear growth over
13332 # repeated appends, instead of the typical quadratic growth present in naive
13333 # implementations.
13334 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13335 eval 'as_fn_append ()
13337 eval $1+=\$2
13339 else
13340 as_fn_append ()
13342 eval $1=\$$1\$2
13344 fi # as_fn_append
13346 # as_fn_arith ARG...
13347 # ------------------
13348 # Perform arithmetic evaluation on the ARGs, and store the result in the
13349 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13350 # must be portable across $(()) and expr.
13351 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13352 eval 'as_fn_arith ()
13354 as_val=$(( $* ))
13356 else
13357 as_fn_arith ()
13359 as_val=`expr "$@" || test $? -eq 1`
13361 fi # as_fn_arith
13364 if expr a : '\(a\)' >/dev/null 2>&1 &&
13365 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13366 as_expr=expr
13367 else
13368 as_expr=false
13371 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13372 as_basename=basename
13373 else
13374 as_basename=false
13377 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13378 as_dirname=dirname
13379 else
13380 as_dirname=false
13383 as_me=`$as_basename -- "$0" ||
13384 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13385 X"$0" : 'X\(//\)$' \| \
13386 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13387 $as_echo X/"$0" |
13388 sed '/^.*\/\([^/][^/]*\)\/*$/{
13389 s//\1/
13392 /^X\/\(\/\/\)$/{
13393 s//\1/
13396 /^X\/\(\/\).*/{
13397 s//\1/
13400 s/.*/./; q'`
13402 # Avoid depending upon Character Ranges.
13403 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13404 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13405 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13406 as_cr_digits='0123456789'
13407 as_cr_alnum=$as_cr_Letters$as_cr_digits
13409 ECHO_C= ECHO_N= ECHO_T=
13410 case `echo -n x` in #(((((
13411 -n*)
13412 case `echo 'xy\c'` in
13413 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13414 xy) ECHO_C='\c';;
13415 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13416 ECHO_T=' ';;
13417 esac;;
13419 ECHO_N='-n';;
13420 esac
13422 rm -f conf$$ conf$$.exe conf$$.file
13423 if test -d conf$$.dir; then
13424 rm -f conf$$.dir/conf$$.file
13425 else
13426 rm -f conf$$.dir
13427 mkdir conf$$.dir 2>/dev/null
13429 if (echo >conf$$.file) 2>/dev/null; then
13430 if ln -s conf$$.file conf$$ 2>/dev/null; then
13431 as_ln_s='ln -s'
13432 # ... but there are two gotchas:
13433 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13434 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13435 # In both cases, we have to default to `cp -p'.
13436 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13437 as_ln_s='cp -p'
13438 elif ln conf$$.file conf$$ 2>/dev/null; then
13439 as_ln_s=ln
13440 else
13441 as_ln_s='cp -p'
13443 else
13444 as_ln_s='cp -p'
13446 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13447 rmdir conf$$.dir 2>/dev/null
13450 # as_fn_mkdir_p
13451 # -------------
13452 # Create "$as_dir" as a directory, including parents if necessary.
13453 as_fn_mkdir_p ()
13456 case $as_dir in #(
13457 -*) as_dir=./$as_dir;;
13458 esac
13459 test -d "$as_dir" || eval $as_mkdir_p || {
13460 as_dirs=
13461 while :; do
13462 case $as_dir in #(
13463 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13464 *) as_qdir=$as_dir;;
13465 esac
13466 as_dirs="'$as_qdir' $as_dirs"
13467 as_dir=`$as_dirname -- "$as_dir" ||
13468 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13469 X"$as_dir" : 'X\(//\)[^/]' \| \
13470 X"$as_dir" : 'X\(//\)$' \| \
13471 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13472 $as_echo X"$as_dir" |
13473 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13474 s//\1/
13477 /^X\(\/\/\)[^/].*/{
13478 s//\1/
13481 /^X\(\/\/\)$/{
13482 s//\1/
13485 /^X\(\/\).*/{
13486 s//\1/
13489 s/.*/./; q'`
13490 test -d "$as_dir" && break
13491 done
13492 test -z "$as_dirs" || eval "mkdir $as_dirs"
13493 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
13496 } # as_fn_mkdir_p
13497 if mkdir -p . 2>/dev/null; then
13498 as_mkdir_p='mkdir -p "$as_dir"'
13499 else
13500 test -d ./-p && rmdir ./-p
13501 as_mkdir_p=false
13504 if test -x / >/dev/null 2>&1; then
13505 as_test_x='test -x'
13506 else
13507 if ls -dL / >/dev/null 2>&1; then
13508 as_ls_L_option=L
13509 else
13510 as_ls_L_option=
13512 as_test_x='
13513 eval sh -c '\''
13514 if test -d "$1"; then
13515 test -d "$1/.";
13516 else
13517 case $1 in #(
13518 -*)set "./$1";;
13519 esac;
13520 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
13521 ???[sx]*):;;*)false;;esac;fi
13522 '\'' sh
13525 as_executable_p=$as_test_x
13527 # Sed expression to map a string onto a valid CPP name.
13528 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13530 # Sed expression to map a string onto a valid variable name.
13531 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13534 exec 6>&1
13535 ## ----------------------------------- ##
13536 ## Main body of $CONFIG_STATUS script. ##
13537 ## ----------------------------------- ##
13538 _ASEOF
13539 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13541 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13542 # Save the log message, to keep $0 and so on meaningful, and to
13543 # report actual input values of CONFIG_FILES etc. instead of their
13544 # values after options handling.
13545 ac_log="
13546 This file was extended by $as_me, which was
13547 generated by GNU Autoconf 2.64. Invocation command line was
13549 CONFIG_FILES = $CONFIG_FILES
13550 CONFIG_HEADERS = $CONFIG_HEADERS
13551 CONFIG_LINKS = $CONFIG_LINKS
13552 CONFIG_COMMANDS = $CONFIG_COMMANDS
13553 $ $0 $@
13555 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13558 _ACEOF
13560 case $ac_config_files in *"
13561 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13562 esac
13564 case $ac_config_headers in *"
13565 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13566 esac
13569 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13570 # Files that config.status was made for.
13571 config_files="$ac_config_files"
13572 config_headers="$ac_config_headers"
13573 config_commands="$ac_config_commands"
13575 _ACEOF
13577 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13578 ac_cs_usage="\
13579 \`$as_me' instantiates files and other configuration actions
13580 from templates according to the current configuration. Unless the files
13581 and actions are specified as TAGs, all are instantiated by default.
13583 Usage: $0 [OPTION]... [TAG]...
13585 -h, --help print this help, then exit
13586 -V, --version print version number and configuration settings, then exit
13587 -q, --quiet, --silent
13588 do not print progress messages
13589 -d, --debug don't remove temporary files
13590 --recheck update $as_me by reconfiguring in the same conditions
13591 --file=FILE[:TEMPLATE]
13592 instantiate the configuration file FILE
13593 --header=FILE[:TEMPLATE]
13594 instantiate the configuration header FILE
13596 Configuration files:
13597 $config_files
13599 Configuration headers:
13600 $config_headers
13602 Configuration commands:
13603 $config_commands
13605 Report bugs to the package provider."
13607 _ACEOF
13608 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13609 ac_cs_version="\\
13610 config.status
13611 configured by $0, generated by GNU Autoconf 2.64,
13612 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
13614 Copyright (C) 2009 Free Software Foundation, Inc.
13615 This config.status script is free software; the Free Software Foundation
13616 gives unlimited permission to copy, distribute and modify it."
13618 ac_pwd='$ac_pwd'
13619 srcdir='$srcdir'
13620 INSTALL='$INSTALL'
13621 MKDIR_P='$MKDIR_P'
13622 AWK='$AWK'
13623 test -n "\$AWK" || AWK=awk
13624 _ACEOF
13626 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13627 # The default lists apply if the user does not specify any file.
13628 ac_need_defaults=:
13629 while test $# != 0
13631 case $1 in
13632 --*=*)
13633 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13634 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13635 ac_shift=:
13638 ac_option=$1
13639 ac_optarg=$2
13640 ac_shift=shift
13642 esac
13644 case $ac_option in
13645 # Handling of the options.
13646 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13647 ac_cs_recheck=: ;;
13648 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13649 $as_echo "$ac_cs_version"; exit ;;
13650 --debug | --debu | --deb | --de | --d | -d )
13651 debug=: ;;
13652 --file | --fil | --fi | --f )
13653 $ac_shift
13654 case $ac_optarg in
13655 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13656 esac
13657 as_fn_append CONFIG_FILES " '$ac_optarg'"
13658 ac_need_defaults=false;;
13659 --header | --heade | --head | --hea )
13660 $ac_shift
13661 case $ac_optarg in
13662 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13663 esac
13664 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13665 ac_need_defaults=false;;
13666 --he | --h)
13667 # Conflict between --help and --header
13668 as_fn_error "ambiguous option: \`$1'
13669 Try \`$0 --help' for more information.";;
13670 --help | --hel | -h )
13671 $as_echo "$ac_cs_usage"; exit ;;
13672 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13673 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13674 ac_cs_silent=: ;;
13676 # This is an error.
13677 -*) as_fn_error "unrecognized option: \`$1'
13678 Try \`$0 --help' for more information." ;;
13680 *) as_fn_append ac_config_targets " $1"
13681 ac_need_defaults=false ;;
13683 esac
13684 shift
13685 done
13687 ac_configure_extra_args=
13689 if $ac_cs_silent; then
13690 exec 6>/dev/null
13691 ac_configure_extra_args="$ac_configure_extra_args --silent"
13694 _ACEOF
13695 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13696 if \$ac_cs_recheck; then
13697 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13698 shift
13699 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13700 CONFIG_SHELL='$SHELL'
13701 export CONFIG_SHELL
13702 exec "\$@"
13705 _ACEOF
13706 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13707 exec 5>>config.log
13709 echo
13710 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13711 ## Running $as_me. ##
13712 _ASBOX
13713 $as_echo "$ac_log"
13714 } >&5
13716 _ACEOF
13717 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13719 # INIT-COMMANDS
13721 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13724 # The HP-UX ksh and POSIX shell print the target directory to stdout
13725 # if CDPATH is set.
13726 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13728 sed_quote_subst='$sed_quote_subst'
13729 double_quote_subst='$double_quote_subst'
13730 delay_variable_subst='$delay_variable_subst'
13731 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
13732 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
13733 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
13734 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
13735 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
13736 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
13737 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
13738 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
13739 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
13740 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
13741 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
13742 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
13743 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
13744 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
13745 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
13746 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
13747 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
13748 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
13749 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
13750 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
13751 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
13752 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
13753 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
13754 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
13755 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
13756 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
13757 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
13758 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13759 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
13760 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
13761 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
13762 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
13763 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13764 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
13765 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
13766 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13767 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13768 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13769 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
13770 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13771 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
13772 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
13773 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
13774 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
13775 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"`'
13776 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"`'
13777 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
13778 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
13779 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
13780 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
13781 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
13782 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
13783 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
13784 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
13785 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
13786 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
13787 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
13788 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
13789 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
13790 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
13791 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
13792 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
13793 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13794 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13795 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
13796 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
13797 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13798 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13799 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
13800 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13801 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13802 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13803 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13804 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13805 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13806 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
13807 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13808 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13809 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13810 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
13811 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
13812 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
13813 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
13814 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
13815 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13816 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
13817 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
13818 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
13819 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
13820 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
13821 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13822 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13823 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13824 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13825 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
13826 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
13827 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
13828 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
13829 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
13830 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13831 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13832 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
13833 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13834 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
13835 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13836 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13837 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13838 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13839 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
13840 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
13841 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13842 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13843 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
13844 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
13845 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
13846 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
13847 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
13848 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
13850 LTCC='$LTCC'
13851 LTCFLAGS='$LTCFLAGS'
13852 compiler='$compiler_DEFAULT'
13854 # Quote evaled strings.
13855 for var in SED \
13856 GREP \
13857 EGREP \
13858 FGREP \
13859 LD \
13860 NM \
13861 LN_S \
13862 lt_SP2NL \
13863 lt_NL2SP \
13864 reload_flag \
13865 OBJDUMP \
13866 deplibs_check_method \
13867 file_magic_cmd \
13868 AR \
13869 AR_FLAGS \
13870 STRIP \
13871 RANLIB \
13872 CC \
13873 CFLAGS \
13874 compiler \
13875 lt_cv_sys_global_symbol_pipe \
13876 lt_cv_sys_global_symbol_to_cdecl \
13877 lt_cv_sys_global_symbol_to_c_name_address \
13878 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13879 SHELL \
13880 ECHO \
13881 lt_prog_compiler_no_builtin_flag \
13882 lt_prog_compiler_wl \
13883 lt_prog_compiler_pic \
13884 lt_prog_compiler_static \
13885 lt_cv_prog_compiler_c_o \
13886 need_locks \
13887 DSYMUTIL \
13888 NMEDIT \
13889 LIPO \
13890 OTOOL \
13891 OTOOL64 \
13892 shrext_cmds \
13893 export_dynamic_flag_spec \
13894 whole_archive_flag_spec \
13895 compiler_needs_object \
13896 with_gnu_ld \
13897 allow_undefined_flag \
13898 no_undefined_flag \
13899 hardcode_libdir_flag_spec \
13900 hardcode_libdir_flag_spec_ld \
13901 hardcode_libdir_separator \
13902 fix_srcfile_path \
13903 exclude_expsyms \
13904 include_expsyms \
13905 file_list_spec \
13906 variables_saved_for_relink \
13907 libname_spec \
13908 library_names_spec \
13909 soname_spec \
13910 finish_eval \
13911 old_striplib \
13912 striplib; do
13913 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13914 *[\\\\\\\`\\"\\\$]*)
13915 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13918 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13920 esac
13921 done
13923 # Double-quote double-evaled strings.
13924 for var in reload_cmds \
13925 old_postinstall_cmds \
13926 old_postuninstall_cmds \
13927 old_archive_cmds \
13928 extract_expsyms_cmds \
13929 old_archive_from_new_cmds \
13930 old_archive_from_expsyms_cmds \
13931 archive_cmds \
13932 archive_expsym_cmds \
13933 module_cmds \
13934 module_expsym_cmds \
13935 export_symbols_cmds \
13936 prelink_cmds \
13937 postinstall_cmds \
13938 postuninstall_cmds \
13939 finish_cmds \
13940 sys_lib_search_path_spec \
13941 sys_lib_dlsearch_path_spec; do
13942 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13943 *[\\\\\\\`\\"\\\$]*)
13944 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13947 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13949 esac
13950 done
13952 # Fix-up fallback echo if it was mangled by the above quoting rules.
13953 case \$lt_ECHO in
13954 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
13956 esac
13958 ac_aux_dir='$ac_aux_dir'
13959 xsi_shell='$xsi_shell'
13960 lt_shell_append='$lt_shell_append'
13962 # See if we are running on zsh, and set the options which allow our
13963 # commands through without removal of \ escapes INIT.
13964 if test -n "\${ZSH_VERSION+set}" ; then
13965 setopt NO_GLOB_SUBST
13969 PACKAGE='$PACKAGE'
13970 VERSION='$VERSION'
13971 TIMESTAMP='$TIMESTAMP'
13972 RM='$RM'
13973 ofile='$ofile'
13977 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
13978 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
13979 # from automake.
13980 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
13981 # Capture the value of LINGUAS because we need it to compute CATALOGS.
13982 LINGUAS="${LINGUAS-%UNSET%}"
13985 _ACEOF
13987 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13989 # Handling of arguments.
13990 for ac_config_target in $ac_config_targets
13992 case $ac_config_target in
13993 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13994 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
13995 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13996 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
13997 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13998 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
14000 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14001 esac
14002 done
14005 # If the user did not use the arguments to specify the items to instantiate,
14006 # then the envvar interface is used. Set only those that are not.
14007 # We use the long form for the default assignment because of an extremely
14008 # bizarre bug on SunOS 4.1.3.
14009 if $ac_need_defaults; then
14010 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14011 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14012 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14015 # Have a temporary directory for convenience. Make it in the build tree
14016 # simply because there is no reason against having it here, and in addition,
14017 # creating and moving files from /tmp can sometimes cause problems.
14018 # Hook for its removal unless debugging.
14019 # Note that there is a small window in which the directory will not be cleaned:
14020 # after its creation but before its name has been assigned to `$tmp'.
14021 $debug ||
14023 tmp=
14024 trap 'exit_status=$?
14025 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14027 trap 'as_fn_exit 1' 1 2 13 15
14029 # Create a (secure) tmp directory for tmp files.
14032 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14033 test -n "$tmp" && test -d "$tmp"
14034 } ||
14036 tmp=./conf$$-$RANDOM
14037 (umask 077 && mkdir "$tmp")
14038 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
14040 # Set up the scripts for CONFIG_FILES section.
14041 # No need to generate them if there are no CONFIG_FILES.
14042 # This happens for instance with `./config.status config.h'.
14043 if test -n "$CONFIG_FILES"; then
14045 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
14046 ac_cs_awk_getline=:
14047 ac_cs_awk_pipe_init=
14048 ac_cs_awk_read_file='
14049 while ((getline aline < (F[key])) > 0)
14050 print(aline)
14051 close(F[key])'
14052 ac_cs_awk_pipe_fini=
14053 else
14054 ac_cs_awk_getline=false
14055 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
14056 ac_cs_awk_read_file='
14057 print "|#_!!_#|"
14058 print "cat " F[key] " &&"
14059 '$ac_cs_awk_pipe_init
14060 # The final `:' finishes the AND list.
14061 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
14063 ac_cr=`echo X | tr X '\015'`
14064 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14065 # But we know of no other shell where ac_cr would be empty at this
14066 # point, so we can use a bashism as a fallback.
14067 if test "x$ac_cr" = x; then
14068 eval ac_cr=\$\'\\r\'
14070 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14071 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14072 ac_cs_awk_cr='\r'
14073 else
14074 ac_cs_awk_cr=$ac_cr
14077 echo 'BEGIN {' >"$tmp/subs1.awk" &&
14078 _ACEOF
14080 # Create commands to substitute file output variables.
14082 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
14083 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
14084 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
14085 echo "_ACAWK" &&
14086 echo "_ACEOF"
14087 } >conf$$files.sh &&
14088 . ./conf$$files.sh ||
14089 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14090 rm -f conf$$files.sh
14093 echo "cat >conf$$subs.awk <<_ACEOF" &&
14094 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14095 echo "_ACEOF"
14096 } >conf$$subs.sh ||
14097 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14098 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14099 ac_delim='%!_!# '
14100 for ac_last_try in false false false false false :; do
14101 . ./conf$$subs.sh ||
14102 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14104 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14105 if test $ac_delim_n = $ac_delim_num; then
14106 break
14107 elif $ac_last_try; then
14108 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14109 else
14110 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14112 done
14113 rm -f conf$$subs.sh
14115 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14116 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
14117 _ACEOF
14118 sed -n '
14120 s/^/S["/; s/!.*/"]=/
14123 s/^[^!]*!//
14124 :repl
14125 t repl
14126 s/'"$ac_delim"'$//
14127 t delim
14130 s/\(.\{148\}\).*/\1/
14131 t more1
14132 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14135 b repl
14136 :more1
14137 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14140 s/.\{148\}//
14141 t nl
14142 :delim
14144 s/\(.\{148\}\).*/\1/
14145 t more2
14146 s/["\\]/\\&/g; s/^/"/; s/$/"/
14149 :more2
14150 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14153 s/.\{148\}//
14154 t delim
14155 ' <conf$$subs.awk | sed '
14156 /^[^""]/{
14158 s/\n//
14160 ' >>$CONFIG_STATUS || ac_write_fail=1
14161 rm -f conf$$subs.awk
14162 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14163 _ACAWK
14164 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
14165 for (key in S) S_is_set[key] = 1
14166 FS = "\a"
14167 \$ac_cs_awk_pipe_init
14170 line = $ 0
14171 nfields = split(line, field, "@")
14172 substed = 0
14173 len = length(field[1])
14174 for (i = 2; i < nfields; i++) {
14175 key = field[i]
14176 keylen = length(key)
14177 if (S_is_set[key]) {
14178 value = S[key]
14179 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14180 len += length(value) + length(field[++i])
14181 substed = 1
14182 } else
14183 len += 1 + keylen
14185 if (nfields == 3 && !substed) {
14186 key = field[2]
14187 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
14188 \$ac_cs_awk_read_file
14189 next
14192 print line
14194 \$ac_cs_awk_pipe_fini
14195 _ACAWK
14196 _ACEOF
14197 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14198 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14199 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14200 else
14202 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14203 || as_fn_error "could not setup config files machinery" "$LINENO" 5
14204 _ACEOF
14206 # VPATH may cause trouble with some makes, so we remove $(srcdir),
14207 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14208 # trailing colons and then remove the whole line if VPATH becomes empty
14209 # (actually we leave an empty line to preserve line numbers).
14210 if test "x$srcdir" = x.; then
14211 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14212 s/:*\$(srcdir):*/:/
14213 s/:*\${srcdir}:*/:/
14214 s/:*@srcdir@:*/:/
14215 s/^\([^=]*=[ ]*\):*/\1/
14216 s/:*$//
14217 s/^[^=]*=[ ]*$//
14221 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14222 fi # test -n "$CONFIG_FILES"
14224 # Set up the scripts for CONFIG_HEADERS section.
14225 # No need to generate them if there are no CONFIG_HEADERS.
14226 # This happens for instance with `./config.status Makefile'.
14227 if test -n "$CONFIG_HEADERS"; then
14228 cat >"$tmp/defines.awk" <<\_ACAWK ||
14229 BEGIN {
14230 _ACEOF
14232 # Transform confdefs.h into an awk script `defines.awk', embedded as
14233 # here-document in config.status, that substitutes the proper values into
14234 # config.h.in to produce config.h.
14236 # Create a delimiter string that does not exist in confdefs.h, to ease
14237 # handling of long lines.
14238 ac_delim='%!_!# '
14239 for ac_last_try in false false :; do
14240 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
14241 if test -z "$ac_t"; then
14242 break
14243 elif $ac_last_try; then
14244 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
14245 else
14246 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14248 done
14250 # For the awk script, D is an array of macro values keyed by name,
14251 # likewise P contains macro parameters if any. Preserve backslash
14252 # newline sequences.
14254 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14255 sed -n '
14256 s/.\{148\}/&'"$ac_delim"'/g
14257 t rset
14258 :rset
14259 s/^[ ]*#[ ]*define[ ][ ]*/ /
14260 t def
14262 :def
14263 s/\\$//
14264 t bsnl
14265 s/["\\]/\\&/g
14266 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14267 D["\1"]=" \3"/p
14268 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14270 :bsnl
14271 s/["\\]/\\&/g
14272 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14273 D["\1"]=" \3\\\\\\n"\\/p
14274 t cont
14275 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14276 t cont
14278 :cont
14280 s/.\{148\}/&'"$ac_delim"'/g
14281 t clear
14282 :clear
14283 s/\\$//
14284 t bsnlc
14285 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14287 :bsnlc
14288 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14289 b cont
14290 ' <confdefs.h | sed '
14291 s/'"$ac_delim"'/"\\\
14292 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14294 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14295 for (key in D) D_is_set[key] = 1
14296 FS = "\a"
14298 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14299 line = \$ 0
14300 split(line, arg, " ")
14301 if (arg[1] == "#") {
14302 defundef = arg[2]
14303 mac1 = arg[3]
14304 } else {
14305 defundef = substr(arg[1], 2)
14306 mac1 = arg[2]
14308 split(mac1, mac2, "(") #)
14309 macro = mac2[1]
14310 prefix = substr(line, 1, index(line, defundef) - 1)
14311 if (D_is_set[macro]) {
14312 # Preserve the white space surrounding the "#".
14313 print prefix "define", macro P[macro] D[macro]
14314 next
14315 } else {
14316 # Replace #undef with comments. This is necessary, for example,
14317 # in the case of _POSIX_SOURCE, which is predefined and required
14318 # on some systems where configure will not decide to define it.
14319 if (defundef == "undef") {
14320 print "/*", prefix defundef, macro, "*/"
14321 next
14325 { print }
14326 _ACAWK
14327 _ACEOF
14328 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14329 as_fn_error "could not setup config headers machinery" "$LINENO" 5
14330 fi # test -n "$CONFIG_HEADERS"
14333 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14334 shift
14335 for ac_tag
14337 case $ac_tag in
14338 :[FHLC]) ac_mode=$ac_tag; continue;;
14339 esac
14340 case $ac_mode$ac_tag in
14341 :[FHL]*:*);;
14342 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
14343 :[FH]-) ac_tag=-:-;;
14344 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14345 esac
14346 ac_save_IFS=$IFS
14347 IFS=:
14348 set x $ac_tag
14349 IFS=$ac_save_IFS
14350 shift
14351 ac_file=$1
14352 shift
14354 case $ac_mode in
14355 :L) ac_source=$1;;
14356 :[FH])
14357 ac_file_inputs=
14358 for ac_f
14360 case $ac_f in
14361 -) ac_f="$tmp/stdin";;
14362 *) # Look for the file first in the build tree, then in the source tree
14363 # (if the path is not absolute). The absolute path cannot be DOS-style,
14364 # because $ac_f cannot contain `:'.
14365 test -f "$ac_f" ||
14366 case $ac_f in
14367 [\\/$]*) false;;
14368 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14369 esac ||
14370 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14371 esac
14372 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14373 as_fn_append ac_file_inputs " '$ac_f'"
14374 done
14376 # Let's still pretend it is `configure' which instantiates (i.e., don't
14377 # use $as_me), people would be surprised to read:
14378 # /* config.h. Generated by config.status. */
14379 configure_input='Generated from '`
14380 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14381 `' by configure.'
14382 if test x"$ac_file" != x-; then
14383 configure_input="$ac_file. $configure_input"
14384 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14385 $as_echo "$as_me: creating $ac_file" >&6;}
14387 # Neutralize special characters interpreted by sed in replacement strings.
14388 case $configure_input in #(
14389 *\&* | *\|* | *\\* )
14390 ac_sed_conf_input=`$as_echo "$configure_input" |
14391 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14392 *) ac_sed_conf_input=$configure_input;;
14393 esac
14395 case $ac_tag in
14396 *:-:* | *:-) cat >"$tmp/stdin" \
14397 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
14398 esac
14400 esac
14402 ac_dir=`$as_dirname -- "$ac_file" ||
14403 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14404 X"$ac_file" : 'X\(//\)[^/]' \| \
14405 X"$ac_file" : 'X\(//\)$' \| \
14406 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14407 $as_echo X"$ac_file" |
14408 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14409 s//\1/
14412 /^X\(\/\/\)[^/].*/{
14413 s//\1/
14416 /^X\(\/\/\)$/{
14417 s//\1/
14420 /^X\(\/\).*/{
14421 s//\1/
14424 s/.*/./; q'`
14425 as_dir="$ac_dir"; as_fn_mkdir_p
14426 ac_builddir=.
14428 case "$ac_dir" in
14429 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14431 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14432 # A ".." for each directory in $ac_dir_suffix.
14433 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14434 case $ac_top_builddir_sub in
14435 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14436 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14437 esac ;;
14438 esac
14439 ac_abs_top_builddir=$ac_pwd
14440 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14441 # for backward compatibility:
14442 ac_top_builddir=$ac_top_build_prefix
14444 case $srcdir in
14445 .) # We are building in place.
14446 ac_srcdir=.
14447 ac_top_srcdir=$ac_top_builddir_sub
14448 ac_abs_top_srcdir=$ac_pwd ;;
14449 [\\/]* | ?:[\\/]* ) # Absolute name.
14450 ac_srcdir=$srcdir$ac_dir_suffix;
14451 ac_top_srcdir=$srcdir
14452 ac_abs_top_srcdir=$srcdir ;;
14453 *) # Relative name.
14454 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14455 ac_top_srcdir=$ac_top_build_prefix$srcdir
14456 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14457 esac
14458 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14461 case $ac_mode in
14464 # CONFIG_FILE
14467 case $INSTALL in
14468 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14469 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14470 esac
14471 ac_MKDIR_P=$MKDIR_P
14472 case $MKDIR_P in
14473 [\\/$]* | ?:[\\/]* ) ;;
14474 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14475 esac
14476 _ACEOF
14478 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14479 # If the template does not know about datarootdir, expand it.
14480 # FIXME: This hack should be removed a few years after 2.60.
14481 ac_datarootdir_hack=; ac_datarootdir_seen=
14482 ac_sed_dataroot='
14483 /datarootdir/ {
14487 /@datadir@/p
14488 /@docdir@/p
14489 /@infodir@/p
14490 /@localedir@/p
14491 /@mandir@/p'
14492 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14493 *datarootdir*) ac_datarootdir_seen=yes;;
14494 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14495 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14496 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14497 _ACEOF
14498 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14499 ac_datarootdir_hack='
14500 s&@datadir@&$datadir&g
14501 s&@docdir@&$docdir&g
14502 s&@infodir@&$infodir&g
14503 s&@localedir@&$localedir&g
14504 s&@mandir@&$mandir&g
14505 s&\\\${datarootdir}&$datarootdir&g' ;;
14506 esac
14507 _ACEOF
14509 # Neutralize VPATH when `$srcdir' = `.'.
14510 # Shell code in configure.ac might set extrasub.
14511 # FIXME: do we really want to maintain this feature?
14512 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14513 ac_sed_extra="$ac_vpsub
14514 $extrasub
14515 _ACEOF
14516 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14518 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14519 s|@configure_input@|$ac_sed_conf_input|;t t
14520 s&@top_builddir@&$ac_top_builddir_sub&;t t
14521 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14522 s&@srcdir@&$ac_srcdir&;t t
14523 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14524 s&@top_srcdir@&$ac_top_srcdir&;t t
14525 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14526 s&@builddir@&$ac_builddir&;t t
14527 s&@abs_builddir@&$ac_abs_builddir&;t t
14528 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14529 s&@INSTALL@&$ac_INSTALL&;t t
14530 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14531 $ac_datarootdir_hack
14533 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
14534 if $ac_cs_awk_getline; then
14535 $AWK -f "$tmp/subs.awk"
14536 else
14537 $AWK -f "$tmp/subs.awk" | $SHELL
14538 fi >$tmp/out \
14539 || as_fn_error "could not create $ac_file" "$LINENO" 5
14541 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14542 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14543 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14544 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14545 which seems to be undefined. Please make sure it is defined." >&5
14546 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14547 which seems to be undefined. Please make sure it is defined." >&2;}
14549 rm -f "$tmp/stdin"
14550 case $ac_file in
14551 -) cat "$tmp/out" && rm -f "$tmp/out";;
14552 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14553 esac \
14554 || as_fn_error "could not create $ac_file" "$LINENO" 5
14558 # CONFIG_HEADER
14560 if test x"$ac_file" != x-; then
14562 $as_echo "/* $configure_input */" \
14563 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
14564 } >"$tmp/config.h" \
14565 || as_fn_error "could not create $ac_file" "$LINENO" 5
14566 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
14567 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14568 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14569 else
14570 rm -f "$ac_file"
14571 mv "$tmp/config.h" "$ac_file" \
14572 || as_fn_error "could not create $ac_file" "$LINENO" 5
14574 else
14575 $as_echo "/* $configure_input */" \
14576 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
14577 || as_fn_error "could not create -" "$LINENO" 5
14579 # Compute "$ac_file"'s index in $config_headers.
14580 _am_arg="$ac_file"
14581 _am_stamp_count=1
14582 for _am_header in $config_headers :; do
14583 case $_am_header in
14584 $_am_arg | $_am_arg:* )
14585 break ;;
14587 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14588 esac
14589 done
14590 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14591 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14592 X"$_am_arg" : 'X\(//\)[^/]' \| \
14593 X"$_am_arg" : 'X\(//\)$' \| \
14594 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14595 $as_echo X"$_am_arg" |
14596 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14597 s//\1/
14600 /^X\(\/\/\)[^/].*/{
14601 s//\1/
14604 /^X\(\/\/\)$/{
14605 s//\1/
14608 /^X\(\/\).*/{
14609 s//\1/
14612 s/.*/./; q'`/stamp-h$_am_stamp_count
14615 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14616 $as_echo "$as_me: executing $ac_file commands" >&6;}
14618 esac
14621 case $ac_file$ac_mode in
14622 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14623 # Autoconf 2.62 quotes --file arguments for eval, but not when files
14624 # are listed without --file. Let's play safe and only enable the eval
14625 # if we detect the quoting.
14626 case $CONFIG_FILES in
14627 *\'*) eval set x "$CONFIG_FILES" ;;
14628 *) set x $CONFIG_FILES ;;
14629 esac
14630 shift
14631 for mf
14633 # Strip MF so we end up with the name of the file.
14634 mf=`echo "$mf" | sed -e 's/:.*$//'`
14635 # Check whether this is an Automake generated Makefile or not.
14636 # We used to match only the files named `Makefile.in', but
14637 # some people rename them; so instead we look at the file content.
14638 # Grep'ing the first line is not enough: some people post-process
14639 # each Makefile.in and add a new line on top of each file to say so.
14640 # Grep'ing the whole file is not good either: AIX grep has a line
14641 # limit of 2048, but all sed's we know have understand at least 4000.
14642 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14643 dirpart=`$as_dirname -- "$mf" ||
14644 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14645 X"$mf" : 'X\(//\)[^/]' \| \
14646 X"$mf" : 'X\(//\)$' \| \
14647 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14648 $as_echo X"$mf" |
14649 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14650 s//\1/
14653 /^X\(\/\/\)[^/].*/{
14654 s//\1/
14657 /^X\(\/\/\)$/{
14658 s//\1/
14661 /^X\(\/\).*/{
14662 s//\1/
14665 s/.*/./; q'`
14666 else
14667 continue
14669 # Extract the definition of DEPDIR, am__include, and am__quote
14670 # from the Makefile without running `make'.
14671 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14672 test -z "$DEPDIR" && continue
14673 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14674 test -z "am__include" && continue
14675 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14676 # When using ansi2knr, U may be empty or an underscore; expand it
14677 U=`sed -n 's/^U = //p' < "$mf"`
14678 # Find all dependency output files, they are included files with
14679 # $(DEPDIR) in their names. We invoke sed twice because it is the
14680 # simplest approach to changing $(DEPDIR) to its actual value in the
14681 # expansion.
14682 for file in `sed -n "
14683 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14684 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14685 # Make sure the directory exists.
14686 test -f "$dirpart/$file" && continue
14687 fdir=`$as_dirname -- "$file" ||
14688 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14689 X"$file" : 'X\(//\)[^/]' \| \
14690 X"$file" : 'X\(//\)$' \| \
14691 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14692 $as_echo X"$file" |
14693 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14694 s//\1/
14697 /^X\(\/\/\)[^/].*/{
14698 s//\1/
14701 /^X\(\/\/\)$/{
14702 s//\1/
14705 /^X\(\/\).*/{
14706 s//\1/
14709 s/.*/./; q'`
14710 as_dir=$dirpart/$fdir; as_fn_mkdir_p
14711 # echo "creating $dirpart/$file"
14712 echo '# dummy' > "$dirpart/$file"
14713 done
14714 done
14717 "libtool":C)
14719 # See if we are running on zsh, and set the options which allow our
14720 # commands through without removal of \ escapes.
14721 if test -n "${ZSH_VERSION+set}" ; then
14722 setopt NO_GLOB_SUBST
14725 cfgfile="${ofile}T"
14726 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14727 $RM "$cfgfile"
14729 cat <<_LT_EOF >> "$cfgfile"
14730 #! $SHELL
14732 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14733 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14734 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14735 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14737 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14738 # 2006, 2007, 2008 Free Software Foundation, Inc.
14739 # Written by Gordon Matzigkeit, 1996
14741 # This file is part of GNU Libtool.
14743 # GNU Libtool is free software; you can redistribute it and/or
14744 # modify it under the terms of the GNU General Public License as
14745 # published by the Free Software Foundation; either version 2 of
14746 # the License, or (at your option) any later version.
14748 # As a special exception to the GNU General Public License,
14749 # if you distribute this file as part of a program or library that
14750 # is built using GNU Libtool, you may include this file under the
14751 # same distribution terms that you use for the rest of that program.
14753 # GNU Libtool is distributed in the hope that it will be useful,
14754 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14755 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14756 # GNU General Public License for more details.
14758 # You should have received a copy of the GNU General Public License
14759 # along with GNU Libtool; see the file COPYING. If not, a copy
14760 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14761 # obtained by writing to the Free Software Foundation, Inc.,
14762 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14765 # The names of the tagged configurations supported by this script.
14766 available_tags=""
14768 # ### BEGIN LIBTOOL CONFIG
14770 # Which release of libtool.m4 was used?
14771 macro_version=$macro_version
14772 macro_revision=$macro_revision
14774 # Whether or not to build shared libraries.
14775 build_libtool_libs=$enable_shared
14777 # Whether or not to build static libraries.
14778 build_old_libs=$enable_static
14780 # What type of objects to build.
14781 pic_mode=$pic_mode
14783 # Whether or not to optimize for fast installation.
14784 fast_install=$enable_fast_install
14786 # The host system.
14787 host_alias=$host_alias
14788 host=$host
14789 host_os=$host_os
14791 # The build system.
14792 build_alias=$build_alias
14793 build=$build
14794 build_os=$build_os
14796 # A sed program that does not truncate output.
14797 SED=$lt_SED
14799 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14800 Xsed="\$SED -e 1s/^X//"
14802 # A grep program that handles long lines.
14803 GREP=$lt_GREP
14805 # An ERE matcher.
14806 EGREP=$lt_EGREP
14808 # A literal string matcher.
14809 FGREP=$lt_FGREP
14811 # A BSD- or MS-compatible name lister.
14812 NM=$lt_NM
14814 # Whether we need soft or hard links.
14815 LN_S=$lt_LN_S
14817 # What is the maximum length of a command?
14818 max_cmd_len=$max_cmd_len
14820 # Object file suffix (normally "o").
14821 objext=$ac_objext
14823 # Executable file suffix (normally "").
14824 exeext=$exeext
14826 # whether the shell understands "unset".
14827 lt_unset=$lt_unset
14829 # turn spaces into newlines.
14830 SP2NL=$lt_lt_SP2NL
14832 # turn newlines into spaces.
14833 NL2SP=$lt_lt_NL2SP
14835 # How to create reloadable object files.
14836 reload_flag=$lt_reload_flag
14837 reload_cmds=$lt_reload_cmds
14839 # An object symbol dumper.
14840 OBJDUMP=$lt_OBJDUMP
14842 # Method to check whether dependent libraries are shared objects.
14843 deplibs_check_method=$lt_deplibs_check_method
14845 # Command to use when deplibs_check_method == "file_magic".
14846 file_magic_cmd=$lt_file_magic_cmd
14848 # The archiver.
14849 AR=$lt_AR
14850 AR_FLAGS=$lt_AR_FLAGS
14852 # A symbol stripping program.
14853 STRIP=$lt_STRIP
14855 # Commands used to install an old-style archive.
14856 RANLIB=$lt_RANLIB
14857 old_postinstall_cmds=$lt_old_postinstall_cmds
14858 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14860 # A C compiler.
14861 LTCC=$lt_CC
14863 # LTCC compiler flags.
14864 LTCFLAGS=$lt_CFLAGS
14866 # Take the output of nm and produce a listing of raw symbols and C names.
14867 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14869 # Transform the output of nm in a proper C declaration.
14870 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14872 # Transform the output of nm in a C name address pair.
14873 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14875 # Transform the output of nm in a C name address pair when lib prefix is needed.
14876 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14878 # The name of the directory that contains temporary libtool files.
14879 objdir=$objdir
14881 # Shell to use when invoking shell scripts.
14882 SHELL=$lt_SHELL
14884 # An echo program that does not interpret backslashes.
14885 ECHO=$lt_ECHO
14887 # Used to examine libraries when file_magic_cmd begins with "file".
14888 MAGIC_CMD=$MAGIC_CMD
14890 # Must we lock files when doing compilation?
14891 need_locks=$lt_need_locks
14893 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14894 DSYMUTIL=$lt_DSYMUTIL
14896 # Tool to change global to local symbols on Mac OS X.
14897 NMEDIT=$lt_NMEDIT
14899 # Tool to manipulate fat objects and archives on Mac OS X.
14900 LIPO=$lt_LIPO
14902 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14903 OTOOL=$lt_OTOOL
14905 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14906 OTOOL64=$lt_OTOOL64
14908 # Old archive suffix (normally "a").
14909 libext=$libext
14911 # Shared library suffix (normally ".so").
14912 shrext_cmds=$lt_shrext_cmds
14914 # The commands to extract the exported symbol list from a shared archive.
14915 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14917 # Variables whose values should be saved in libtool wrapper scripts and
14918 # restored at link time.
14919 variables_saved_for_relink=$lt_variables_saved_for_relink
14921 # Do we need the "lib" prefix for modules?
14922 need_lib_prefix=$need_lib_prefix
14924 # Do we need a version for libraries?
14925 need_version=$need_version
14927 # Library versioning type.
14928 version_type=$version_type
14930 # Shared library runtime path variable.
14931 runpath_var=$runpath_var
14933 # Shared library path variable.
14934 shlibpath_var=$shlibpath_var
14936 # Is shlibpath searched before the hard-coded library search path?
14937 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14939 # Format of library name prefix.
14940 libname_spec=$lt_libname_spec
14942 # List of archive names. First name is the real one, the rest are links.
14943 # The last name is the one that the linker finds with -lNAME
14944 library_names_spec=$lt_library_names_spec
14946 # The coded name of the library, if different from the real name.
14947 soname_spec=$lt_soname_spec
14949 # Command to use after installation of a shared archive.
14950 postinstall_cmds=$lt_postinstall_cmds
14952 # Command to use after uninstallation of a shared archive.
14953 postuninstall_cmds=$lt_postuninstall_cmds
14955 # Commands used to finish a libtool library installation in a directory.
14956 finish_cmds=$lt_finish_cmds
14958 # As "finish_cmds", except a single script fragment to be evaled but
14959 # not shown.
14960 finish_eval=$lt_finish_eval
14962 # Whether we should hardcode library paths into libraries.
14963 hardcode_into_libs=$hardcode_into_libs
14965 # Compile-time system search path for libraries.
14966 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14968 # Run-time system search path for libraries.
14969 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14971 # Whether dlopen is supported.
14972 dlopen_support=$enable_dlopen
14974 # Whether dlopen of programs is supported.
14975 dlopen_self=$enable_dlopen_self
14977 # Whether dlopen of statically linked programs is supported.
14978 dlopen_self_static=$enable_dlopen_self_static
14980 # Commands to strip libraries.
14981 old_striplib=$lt_old_striplib
14982 striplib=$lt_striplib
14985 # The linker used to build libraries.
14986 LD=$lt_LD
14988 # Commands used to build an old-style archive.
14989 old_archive_cmds=$lt_old_archive_cmds
14991 # A language specific compiler.
14992 CC=$lt_compiler
14994 # Is the compiler the GNU compiler?
14995 with_gcc=$GCC
14997 # Compiler flag to turn off builtin functions.
14998 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15000 # How to pass a linker flag through the compiler.
15001 wl=$lt_lt_prog_compiler_wl
15003 # Additional compiler flags for building library objects.
15004 pic_flag=$lt_lt_prog_compiler_pic
15006 # Compiler flag to prevent dynamic linking.
15007 link_static_flag=$lt_lt_prog_compiler_static
15009 # Does compiler simultaneously support -c and -o options?
15010 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15012 # Whether or not to add -lc for building shared libraries.
15013 build_libtool_need_lc=$archive_cmds_need_lc
15015 # Whether or not to disallow shared libs when runtime libs are static.
15016 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15018 # Compiler flag to allow reflexive dlopens.
15019 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15021 # Compiler flag to generate shared objects directly from archives.
15022 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15024 # Whether the compiler copes with passing no objects directly.
15025 compiler_needs_object=$lt_compiler_needs_object
15027 # Create an old-style archive from a shared archive.
15028 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15030 # Create a temporary old-style archive to link instead of a shared archive.
15031 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15033 # Commands used to build a shared archive.
15034 archive_cmds=$lt_archive_cmds
15035 archive_expsym_cmds=$lt_archive_expsym_cmds
15037 # Commands used to build a loadable module if different from building
15038 # a shared archive.
15039 module_cmds=$lt_module_cmds
15040 module_expsym_cmds=$lt_module_expsym_cmds
15042 # Whether we are building with GNU ld or not.
15043 with_gnu_ld=$lt_with_gnu_ld
15045 # Flag that allows shared libraries with undefined symbols to be built.
15046 allow_undefined_flag=$lt_allow_undefined_flag
15048 # Flag that enforces no undefined symbols.
15049 no_undefined_flag=$lt_no_undefined_flag
15051 # Flag to hardcode \$libdir into a binary during linking.
15052 # This must work even if \$libdir does not exist
15053 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15055 # If ld is used when linking, flag to hardcode \$libdir into a binary
15056 # during linking. This must work even if \$libdir does not exist.
15057 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15059 # Whether we need a single "-rpath" flag with a separated argument.
15060 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15062 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15063 # DIR into the resulting binary.
15064 hardcode_direct=$hardcode_direct
15066 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15067 # DIR into the resulting binary and the resulting library dependency is
15068 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15069 # library is relocated.
15070 hardcode_direct_absolute=$hardcode_direct_absolute
15072 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15073 # into the resulting binary.
15074 hardcode_minus_L=$hardcode_minus_L
15076 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15077 # into the resulting binary.
15078 hardcode_shlibpath_var=$hardcode_shlibpath_var
15080 # Set to "yes" if building a shared library automatically hardcodes DIR
15081 # into the library and all subsequent libraries and executables linked
15082 # against it.
15083 hardcode_automatic=$hardcode_automatic
15085 # Set to yes if linker adds runtime paths of dependent libraries
15086 # to runtime path list.
15087 inherit_rpath=$inherit_rpath
15089 # Whether libtool must link a program against all its dependency libraries.
15090 link_all_deplibs=$link_all_deplibs
15092 # Fix the shell variable \$srcfile for the compiler.
15093 fix_srcfile_path=$lt_fix_srcfile_path
15095 # Set to "yes" if exported symbols are required.
15096 always_export_symbols=$always_export_symbols
15098 # The commands to list exported symbols.
15099 export_symbols_cmds=$lt_export_symbols_cmds
15101 # Symbols that should not be listed in the preloaded symbols.
15102 exclude_expsyms=$lt_exclude_expsyms
15104 # Symbols that must always be exported.
15105 include_expsyms=$lt_include_expsyms
15107 # Commands necessary for linking programs (against libraries) with templates.
15108 prelink_cmds=$lt_prelink_cmds
15110 # Specify filename containing input files.
15111 file_list_spec=$lt_file_list_spec
15113 # How to hardcode a shared library path into an executable.
15114 hardcode_action=$hardcode_action
15116 # ### END LIBTOOL CONFIG
15118 _LT_EOF
15120 case $host_os in
15121 aix3*)
15122 cat <<\_LT_EOF >> "$cfgfile"
15123 # AIX sometimes has problems with the GCC collect2 program. For some
15124 # reason, if we set the COLLECT_NAMES environment variable, the problems
15125 # vanish in a puff of smoke.
15126 if test "X${COLLECT_NAMES+set}" != Xset; then
15127 COLLECT_NAMES=
15128 export COLLECT_NAMES
15130 _LT_EOF
15132 esac
15135 ltmain="$ac_aux_dir/ltmain.sh"
15138 # We use sed instead of cat because bash on DJGPP gets confused if
15139 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15140 # text mode, it properly converts lines to CR/LF. This bash problem
15141 # is reportedly fixed, but why not run on old versions too?
15142 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
15143 || (rm -f "$cfgfile"; exit 1)
15145 case $xsi_shell in
15146 yes)
15147 cat << \_LT_EOF >> "$cfgfile"
15149 # func_dirname file append nondir_replacement
15150 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
15151 # otherwise set result to NONDIR_REPLACEMENT.
15152 func_dirname ()
15154 case ${1} in
15155 */*) func_dirname_result="${1%/*}${2}" ;;
15156 * ) func_dirname_result="${3}" ;;
15157 esac
15160 # func_basename file
15161 func_basename ()
15163 func_basename_result="${1##*/}"
15166 # func_dirname_and_basename file append nondir_replacement
15167 # perform func_basename and func_dirname in a single function
15168 # call:
15169 # dirname: Compute the dirname of FILE. If nonempty,
15170 # add APPEND to the result, otherwise set result
15171 # to NONDIR_REPLACEMENT.
15172 # value returned in "$func_dirname_result"
15173 # basename: Compute filename of FILE.
15174 # value retuned in "$func_basename_result"
15175 # Implementation must be kept synchronized with func_dirname
15176 # and func_basename. For efficiency, we do not delegate to
15177 # those functions but instead duplicate the functionality here.
15178 func_dirname_and_basename ()
15180 case ${1} in
15181 */*) func_dirname_result="${1%/*}${2}" ;;
15182 * ) func_dirname_result="${3}" ;;
15183 esac
15184 func_basename_result="${1##*/}"
15187 # func_stripname prefix suffix name
15188 # strip PREFIX and SUFFIX off of NAME.
15189 # PREFIX and SUFFIX must not contain globbing or regex special
15190 # characters, hashes, percent signs, but SUFFIX may contain a leading
15191 # dot (in which case that matches only a dot).
15192 func_stripname ()
15194 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
15195 # positional parameters, so assign one to ordinary parameter first.
15196 func_stripname_result=${3}
15197 func_stripname_result=${func_stripname_result#"${1}"}
15198 func_stripname_result=${func_stripname_result%"${2}"}
15201 # func_opt_split
15202 func_opt_split ()
15204 func_opt_split_opt=${1%%=*}
15205 func_opt_split_arg=${1#*=}
15208 # func_lo2o object
15209 func_lo2o ()
15211 case ${1} in
15212 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
15213 *) func_lo2o_result=${1} ;;
15214 esac
15217 # func_xform libobj-or-source
15218 func_xform ()
15220 func_xform_result=${1%.*}.lo
15223 # func_arith arithmetic-term...
15224 func_arith ()
15226 func_arith_result=$(( $* ))
15229 # func_len string
15230 # STRING may not start with a hyphen.
15231 func_len ()
15233 func_len_result=${#1}
15236 _LT_EOF
15238 *) # Bourne compatible functions.
15239 cat << \_LT_EOF >> "$cfgfile"
15241 # func_dirname file append nondir_replacement
15242 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
15243 # otherwise set result to NONDIR_REPLACEMENT.
15244 func_dirname ()
15246 # Extract subdirectory from the argument.
15247 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
15248 if test "X$func_dirname_result" = "X${1}"; then
15249 func_dirname_result="${3}"
15250 else
15251 func_dirname_result="$func_dirname_result${2}"
15255 # func_basename file
15256 func_basename ()
15258 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
15262 # func_stripname prefix suffix name
15263 # strip PREFIX and SUFFIX off of NAME.
15264 # PREFIX and SUFFIX must not contain globbing or regex special
15265 # characters, hashes, percent signs, but SUFFIX may contain a leading
15266 # dot (in which case that matches only a dot).
15267 # func_strip_suffix prefix name
15268 func_stripname ()
15270 case ${2} in
15271 .*) func_stripname_result=`$ECHO "X${3}" \
15272 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
15273 *) func_stripname_result=`$ECHO "X${3}" \
15274 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
15275 esac
15278 # sed scripts:
15279 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
15280 my_sed_long_arg='1s/^-[^=]*=//'
15282 # func_opt_split
15283 func_opt_split ()
15285 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
15286 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
15289 # func_lo2o object
15290 func_lo2o ()
15292 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
15295 # func_xform libobj-or-source
15296 func_xform ()
15298 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
15301 # func_arith arithmetic-term...
15302 func_arith ()
15304 func_arith_result=`expr "$@"`
15307 # func_len string
15308 # STRING may not start with a hyphen.
15309 func_len ()
15311 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
15314 _LT_EOF
15315 esac
15317 case $lt_shell_append in
15318 yes)
15319 cat << \_LT_EOF >> "$cfgfile"
15321 # func_append var value
15322 # Append VALUE to the end of shell variable VAR.
15323 func_append ()
15325 eval "$1+=\$2"
15327 _LT_EOF
15330 cat << \_LT_EOF >> "$cfgfile"
15332 # func_append var value
15333 # Append VALUE to the end of shell variable VAR.
15334 func_append ()
15336 eval "$1=\$$1\$2"
15339 _LT_EOF
15341 esac
15344 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
15345 || (rm -f "$cfgfile"; exit 1)
15347 mv -f "$cfgfile" "$ofile" ||
15348 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15349 chmod +x "$ofile"
15352 "default-1":C)
15353 for ac_file in $CONFIG_FILES; do
15354 # Support "outfile[:infile[:infile...]]"
15355 case "$ac_file" in
15356 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
15357 esac
15358 # PO directories have a Makefile.in generated from Makefile.in.in.
15359 case "$ac_file" in */Makefile.in)
15360 # Adjust a relative srcdir.
15361 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
15362 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
15363 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
15364 # In autoconf-2.13 it is called $ac_given_srcdir.
15365 # In autoconf-2.50 it is called $srcdir.
15366 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
15367 case "$ac_given_srcdir" in
15368 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
15369 /*) top_srcdir="$ac_given_srcdir" ;;
15370 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
15371 esac
15372 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
15373 rm -f "$ac_dir/POTFILES"
15374 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
15375 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
15376 POMAKEFILEDEPS="POTFILES.in"
15377 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
15378 # on $ac_dir but don't depend on user-specified configuration
15379 # parameters.
15380 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
15381 # The LINGUAS file contains the set of available languages.
15382 if test -n "$OBSOLETE_ALL_LINGUAS"; then
15383 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
15385 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
15386 # Hide the ALL_LINGUAS assigment from automake.
15387 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
15388 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
15389 else
15390 # The set of available languages was given in configure.in.
15391 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
15393 case "$ac_given_srcdir" in
15394 .) srcdirpre= ;;
15395 *) srcdirpre='$(srcdir)/' ;;
15396 esac
15397 POFILES=
15398 GMOFILES=
15399 UPDATEPOFILES=
15400 DUMMYPOFILES=
15401 for lang in $ALL_LINGUAS; do
15402 POFILES="$POFILES $srcdirpre$lang.po"
15403 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
15404 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
15405 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
15406 done
15407 # CATALOGS depends on both $ac_dir and the user's LINGUAS
15408 # environment variable.
15409 INST_LINGUAS=
15410 if test -n "$ALL_LINGUAS"; then
15411 for presentlang in $ALL_LINGUAS; do
15412 useit=no
15413 if test "%UNSET%" != "$LINGUAS"; then
15414 desiredlanguages="$LINGUAS"
15415 else
15416 desiredlanguages="$ALL_LINGUAS"
15418 for desiredlang in $desiredlanguages; do
15419 # Use the presentlang catalog if desiredlang is
15420 # a. equal to presentlang, or
15421 # b. a variant of presentlang (because in this case,
15422 # presentlang can be used as a fallback for messages
15423 # which are not translated in the desiredlang catalog).
15424 case "$desiredlang" in
15425 "$presentlang"*) useit=yes;;
15426 esac
15427 done
15428 if test $useit = yes; then
15429 INST_LINGUAS="$INST_LINGUAS $presentlang"
15431 done
15433 CATALOGS=
15434 if test -n "$INST_LINGUAS"; then
15435 for lang in $INST_LINGUAS; do
15436 CATALOGS="$CATALOGS $lang.gmo"
15437 done
15439 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
15440 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
15441 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
15442 if test -f "$f"; then
15443 case "$f" in
15444 *.orig | *.bak | *~) ;;
15445 *) cat "$f" >> "$ac_dir/Makefile" ;;
15446 esac
15448 done
15451 esac
15452 done ;;
15454 esac
15455 done # for ac_tag
15458 as_fn_exit 0
15459 _ACEOF
15460 ac_clean_files=$ac_clean_files_save
15462 test $ac_write_fail = 0 ||
15463 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15466 # configure is writing to config.log, and then calls config.status.
15467 # config.status does its own redirection, appending to config.log.
15468 # Unfortunately, on DOS this fails, as config.log is still kept open
15469 # by configure, so config.status won't be able to write to it; its
15470 # output is simply discarded. So we exec the FD to /dev/null,
15471 # effectively closing config.log, so it can be properly (re)opened and
15472 # appended to by config.status. When coming back to configure, we
15473 # need to make the FD available again.
15474 if test "$no_create" != yes; then
15475 ac_cs_success=:
15476 ac_config_status_args=
15477 test "$silent" = yes &&
15478 ac_config_status_args="$ac_config_status_args --quiet"
15479 exec 5>/dev/null
15480 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15481 exec 5>>config.log
15482 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15483 # would make configure fail if this is the last instruction.
15484 $ac_cs_success || as_fn_exit $?
15486 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15487 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15488 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}